/* Archivo (OFL) z lastnega strežnika: brskalnik ne kliče Googla. Ista pisava kot studiomodra.si. */
@font-face { font-family: "Archivo"; font-weight: 400 600; font-display: swap; src: url(/fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 400 600; font-display: swap; src: url(/fonts/archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Modra poteza: Instagram logika (profil, mreža, kartice objav) v podobi Studia Modra:
   kremna podlaga, Archivo, ravni robovi, brez prelivov. Modra iz znaka ž je barva glavnih dejanj, črna je za besedilo.
   Okrogle ostanejo samo profilne slike. */
:root {
  --bg: #FAF8F5; --surface: #FFFFFF; --soft: #EFEBE6; --line: #E4DFD8; --line-strong: #CBC4BA;
  --ink: #000000; --on-ink: #FAF8F5; --muted: #6B655E; --link: #000000;
  --accent: #0E13EB; --accent-hover: #0A0EBD; --on-accent: #FFFFFF; --accent-soft: #E8E9FD;
  --ok: #2E6B3F; --ok-soft: #E3ECE2; --warn: #8A5A12; --warn-soft: #F4EBDC; --err: #B3261E; --err-soft: #F6E3E0; --info: var(--accent); --info-soft: var(--accent-soft);
  --radius: 0px; --side: 244px;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand: var(--font);
  color-scheme: light;
}
/* Studio Modra je svetla podoba, zato aplikacija ne sledi temnemu načinu telefona. Temna paleta ostane samo za data-theme="dark". */
:root[data-theme="dark"] {
  --bg: #0D0C0B; --surface: #161412; --soft: #211F1C; --line: #2C2925; --line-strong: #3E3A35;
  --ink: #F4F1EC; --on-ink: #0D0C0B; --muted: #A69F96; --link: #F4F1EC;
  --accent: #8287FF; --accent-hover: #A0A4FF; --on-accent: #0D0C0B; --accent-soft: #1B1D42;
  --ok: #7CC492; --ok-soft: #142419; --warn: #E3A857; --warn-soft: #2B2112; --err: #F2877C; --err-soft: #331815;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--on-accent); }
html { scrollbar-color: var(--line-strong) transparent; caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ogrodje ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 28px 12px 20px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.wordmark { display: flex; align-items: center; gap: 9px; padding: 4px 12px 32px; font-family: var(--brand); font-weight: 600; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.wordmark .mark { height: 1em; width: auto; flex: none; fill: var(--accent); margin-right: 2px; }
.zmark { height: 1.05em; width: auto; flex: none; fill: currentColor; }
.wordmark:hover { text-decoration: none; }
.wordmark small { font: 500 11px var(--font); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 1px 5px; }
.nav { display: flex; align-items: center; gap: 14px; padding: 11px 12px; color: var(--ink); font-size: 15px; }
.nav:hover { background: var(--soft); text-decoration: none; }
.nav.on { font-weight: 600; }
.side .nav.on { box-shadow: inset 2px 0 0 var(--accent); }
.nav svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav.on svg { stroke-width: 2.2; }
.side .grow { flex: 1; }
.side .who { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.side .who b { display: block; color: var(--ink); font-size: 14px; font-weight: 500; }
.main { min-width: 0; padding: 32px 40px 80px; }
.topbar, .tabbar { display: none; }
.page { max-width: 1060px; margin: 0 auto; }
.page.narrow { max-width: 640px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar .wordmark { padding: 0; font-size: 16px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabbar .nav { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 10px; }
  .main { padding: 20px 16px 96px; }
}

/* ---------- osnovni elementi ---------- */
h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.015em; font-weight: 500; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -.005em; }
h3 { font-size: 15px; font-weight: 600; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head p { margin-top: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 18px; border-radius: var(--radius); font-weight: 500; font-size: 14px; background: var(--soft); color: var(--ink); border: 1px solid transparent; transition: background .15s, opacity .15s; white-space: nowrap; }
.btn:hover { background: var(--line); text-decoration: none; }
.btn.primary, .btn.ok { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover, .btn.ok:hover { background: var(--accent-hover); }
.btn.primary:active, .btn.ok:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.btn.danger:hover { background: var(--err-soft); }
.btn.sm { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sm-select { width: auto; min-height: 30px; padding: 4px 10px; font-size: 13px; }
.linkbtn { color: var(--link); font-weight: 500; font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-strong); }
.linkbtn:hover { text-decoration-color: currentColor; }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
label.f span.hint { font-weight: 400; color: var(--muted); }
.input, textarea.input, select.input { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 12px; font-size: 15px; font-weight: 400; line-height: 1.4; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
textarea.input { resize: vertical; min-height: 80px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 20px; }
.note { padding: 12px 14px; font-size: 14px; background: var(--soft); }
.note.err { background: var(--err-soft); color: var(--err); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note ul { margin: 6px 0 0 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 12px; font-weight: 500; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.pregled { background: var(--info-soft); color: var(--info); }
.chip.popravek { background: var(--warn-soft); color: var(--warn); }
.chip.potrjeno { background: var(--ok-soft); color: var(--ok); }
.chip.objavljanje { background: var(--info-soft); color: var(--info); }
.chip.objavljeno { background: var(--accent); color: var(--on-accent); }
.chip.napaka { background: var(--err-soft); color: var(--err); }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--soft); flex: none; display: grid; place-items: center; font-weight: 500; font-size: 13px; color: var(--muted); border: 1px solid var(--line); overflow: hidden; }
.avatar.lg { width: 86px; height: 86px; font-size: 28px; }
.avatar.md { width: 56px; height: 56px; font-size: 20px; }
.ring { padding: 2px; border-radius: 50%; background: var(--line-strong); display: inline-grid; }
.ring.live { background: var(--ink); }
.ring > .avatar { border: 3px solid var(--bg); }

.progress { height: 3px; background: var(--soft); overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; width: 0; }
.progress i.ok { background: var(--ok); }
.progress i.done { background: var(--accent); }
.progress i.fix { background: var(--warn); }

/* ---------- prijava ---------- */
/* Prvi zaslon je obrnjen: modra plošča z belim znakom MP, razrezanim čez šest objav (kot sestavljen profil na Instagramu),
   besedilo in modri gumb pa na kremni podlagi. Na računalniku sta plošči druga ob drugi, na telefonu ena pod drugo. */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--bg); }
.auth-art { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 32px 40px; background: var(--accent); color: var(--on-accent); }
.auth-art .wordmark { padding: 0; color: inherit; }
.auth-art .mark { fill: currentColor; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: min(100%, 520px); margin: auto; }
.tiles i { aspect-ratio: 1; background: rgb(255 255 255 / .1) url(/mreza.svg) no-repeat; background-size: 300% 200%; animation: tile-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.tiles i:nth-child(1) { background-position: 0 0; }
.tiles i:nth-child(2) { background-position: 50% 0; animation-delay: 70ms; }
.tiles i:nth-child(3) { background-position: 100% 0; animation-delay: 140ms; }
.tiles i:nth-child(4) { background-position: 0 100%; animation-delay: 210ms; }
.tiles i:nth-child(5) { background-position: 50% 100%; animation-delay: 280ms; }
.tiles i:nth-child(6) { background-position: 100% 100%; animation-delay: 350ms; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } }
.auth-in { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-body { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.03em; }
.auth h1 em { font-style: normal; color: var(--accent); }
.auth p.lead { color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.auth .btn.big { width: 100%; }
.auth .linkbtn.alt { align-self: center; font-weight: 400; color: var(--muted); }
.auth .foot { font-size: 13px; color: var(--muted); }
.auth .foot.legal { display: flex; gap: 18px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.auth .foot.legal a { color: inherit; }
.auth .foot.legal a:first-child { color: var(--ink); margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.auth .foot.legal .zmark { fill: var(--accent); }
@media (max-width: 800px) {
  .auth { grid-template-columns: 1fr; align-content: start; }
  .auth-art { position: static; height: auto; gap: 22px; padding: max(18px, env(safe-area-inset-top)) 16px 16px; }
  .tiles { width: 100%; margin: 0; }
  .auth-in { display: block; padding: 26px 20px max(24px, env(safe-area-inset-bottom)); }
  .auth-body { width: 100%; max-width: 440px; }
  .auth h1 { font-size: 34px; }
}
.note.install { background: var(--info-soft); color: var(--ink); }
.note.install ol { margin: 8px 0 0 20px; display: grid; gap: 4px; }
.note.install svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- domov: zgodbe + plani ---------- */
.stories { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 80px; flex: none; font-size: 12px; color: var(--ink); text-align: center; }
.story:hover { text-decoration: none; }
.story span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .ring > .avatar { width: 66px; height: 66px; font-size: 22px; }
.story.add .avatar { border: 1px dashed var(--line-strong); }
.story.add svg { width: 26px; height: 26px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.plan-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; color: var(--ink); align-items: start; }
.plan-card:hover { text-decoration: none; border-color: var(--ink); }
.plan-card .thumb { width: 96px; aspect-ratio: 4/5; object-fit: cover; background: var(--soft); }
.plan-card h3 { margin: 2px 0 2px; }
.plan-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.plan-card .progress { margin-top: 12px; }
.client-block { margin-bottom: 36px; }
.client-block > .row { margin-bottom: 14px; }
.client-block .igstate { font-size: 13px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- plan ---------- */
.plan-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-bottom: 24px; }
.plan-head .meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plan-head .handle { font-size: 20px; font-weight: 400; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-head .stats { display: flex; gap: 22px; font-size: 15px; flex-wrap: wrap; }
.plan-head .stats b { font-weight: 600; }
.plan-head .bio { font-size: 14px; }
.plan-head .bio b { display: block; }
.presence { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.presence .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.presence b { color: var(--ink); font-weight: 500; }
.actions-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.toggle input { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-strong); position: relative; transition: background .15s; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(16px); }
.tabs { display: flex; justify-content: center; gap: 44px; border-top: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 14px 0 12px; margin-top: -1px; border-top: 1px solid transparent; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { color: var(--ink); border-top-color: var(--ink); }
.tabs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 700px) {
  /* kot Instagram na telefonu: slika in številke v vrsti, ime, opis in gumbi pod njima čez celo širino */
  .plan-head { grid-template-columns: auto 1fr; gap: 10px 22px; align-items: center; }
  .plan-head .meta { display: contents; }
  .plan-head > .ring { grid-row: span 2; }
  .plan-head .meta > :not(.handle):not(.stats) { grid-column: 1 / -1; }
  .plan-head .handle { font-size: 17px; align-self: end; }
  .plan-head .avatar.lg { width: 76px; height: 76px; }
  .plan-head .stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; font-size: 11px; color: var(--muted); align-self: start; }
  .plan-head .stats span { display: flex; flex-direction: column; align-items: center; line-height: 1.25; text-align: center; }
  .plan-head .stats b { font-size: 16px; color: var(--ink); }
  .tabs { gap: 24px; justify-content: flex-start; }
}

/* mreža profila */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 935px; margin: 0 auto; }
.grid a { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--soft); display: block; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.grid a:hover img { filter: brightness(.82); }
.grid .ico { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.grid .st { position: absolute; left: 6px; top: 6px; }
.grid .st .chip { font-size: 11px; padding: 2px 7px; }
.grid .when { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; font-size: 11px; font-weight: 500; color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; }

/* objave */
.feed { display: flex; flex-direction: column; }
.post { display: grid; grid-template-columns: 150px minmax(0, 470px) minmax(0, 1fr); gap: 36px; padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.post.flash .ig { box-shadow: 0 0 0 2px var(--accent); }
.post .when { position: sticky; top: 24px; align-self: start; }
.post .when .wd { font-size: 14px; color: var(--muted); }
.post .when .day { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -.035em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.post .when .mo { font-size: 16px; margin-top: 2px; }
.post .when .hr { font-size: 16px; color: var(--muted); }
.post .when .fmt { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.post .when .rel { font-size: 13px; color: var(--muted); margin-top: 4px; }
.when-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.when-edit .input { padding: 6px 8px; font-size: 14px; }
@media (max-width: 1100px) {
  .post { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 24px; }
  .post .when { grid-column: 1 / -1; position: static; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .post .when .day { font-size: 32px; }
  .post .when .fmt { border: 0; margin: 0; padding: 0; }
  .when-edit { flex-direction: row; margin: 0; }
}
@media (max-width: 760px) {
  .post { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
}

.ig { background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.ig .top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
.ig .top b { font-weight: 600; letter-spacing: .005em; }
.ig .top .sub { font-size: 12px; color: var(--muted); display: block; font-weight: 400; }
.ig .top .more { margin-left: auto; width: 24px; height: 24px; fill: var(--ink); }
.media { position: relative; background: #000; }
.media.r45 { aspect-ratio: 4/5; }
.media.r916 { aspect-ratio: 9/16; max-height: 720px; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { flex: 0 0 100%; scroll-snap-align: start; height: 100%; position: relative; }
.count { position: absolute; top: 12px; right: 12px; background: rgba(13,12,11,.72); color: #FAF8F5; font-size: 12px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 68px; height: 68px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; transition: opacity .2s; }
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.play.on span { opacity: 0; }
.reeltag { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.reeltag svg { width: 16px; height: 16px; fill: #fff; }
.media .swap { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.media .swap .btn { background: rgba(13,12,11,.78); color: #FAF8F5; }
.acts { display: flex; align-items: center; gap: 16px; padding: 10px 12px 4px; position: relative; }
.acts svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.acts .save { margin-left: auto; }
.dots { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--ink); }
.cap { padding: 4px 12px 14px; font-size: 14px; line-height: 1.45; }
.cap .text { white-space: pre-wrap; word-wrap: break-word; }
.cap .text b { font-weight: 600; margin-right: 5px; }
.cap .tags { color: #00376B; margin-top: 8px; word-wrap: break-word; }
.cap .date { font-size: 11px; color: var(--muted); margin-top: 10px; letter-spacing: .03em; text-transform: uppercase; }
.cap .editable { margin: -4px -6px; padding: 4px 6px; cursor: text; transition: background .15s; }
.cap .editable:hover { background: var(--soft); }
.cap textarea { width: 100%; border: 1px solid var(--ink); background: var(--surface); padding: 8px; line-height: 1.45; font-size: 14px; resize: none; overflow: hidden; display: block; }
.cap textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cap .edit-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.cap .edit-meta .over { color: var(--err); font-weight: 600; }
.editing-by { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; margin: 0 0 8px; }
.conflict { margin: 8px 0; padding: 10px 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.conflict .row .btn { background: var(--surface); }

.review { display: flex; flex-direction: column; gap: 14px; align-self: start; max-width: 380px; }
.review .why { font-size: 14px; color: var(--muted); }
.review .why b { color: var(--ink); font-weight: 600; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.review .statusline { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; color: var(--muted); }
.review .err { color: var(--err); font-size: 13px; }
.thread { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.thread h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmt { font-size: 14px; }
.cmt b { font-weight: 600; margin-right: 6px; }
.cmt .t { white-space: pre-wrap; }
.cmt .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cmt.popravek { border-left: 1px solid var(--warn); padding-left: 10px; }
.addc { display: flex; gap: 8px; align-items: flex-end; }
.addc textarea { min-height: 38px; height: 38px; resize: none; font-size: 14px; padding: 8px 10px; }
.fixbox { display: flex; flex-direction: column; gap: 8px; }

/* koledar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dh { padding: 8px; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.cal .d { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.cal .d.out { background: var(--soft); }
.cal .d .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal .d.today .n { color: var(--on-accent); background: var(--accent); padding: 0 6px; align-self: flex-start; font-weight: 600; }
.cal .ev { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: center; font-size: 12px; color: var(--ink); padding: 2px; }
.cal .ev:hover { background: var(--soft); text-decoration: none; }
.cal .ev img { width: 34px; height: 42px; object-fit: cover; }
.cal .ev .chip { padding: 1px 6px; font-size: 10px; margin-top: 2px; }
@media (max-width: 700px) {
  .cal .d { min-height: 74px; padding: 3px; }
  .cal .ev { grid-template-columns: 1fr; }
  .cal .ev span { display: none; }
  .cal .ev img { width: 100%; height: auto; aspect-ratio: 4/5; }
}

/* opombe, zgodovina, nastavitve */
.prose { max-width: 66ch; }
.prose p + p { margin-top: 10px; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 10px 24px; font-size: 14px; margin-top: 14px; }
.facts dt { color: var(--muted); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.log { display: flex; flex-direction: column; }
.log .it { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log .it time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.log .it .d { color: var(--muted); white-space: pre-wrap; }
@media (max-width: 600px) { .log .it { grid-template-columns: 1fr; gap: 2px; } }
.list { display: flex; flex-direction: column; }
.list .it { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list .it .grow { flex: 1; min-width: 160px; }
.section { margin-top: 32px; }
.section > h2 { margin-bottom: 12px; }
.linkbox { display: flex; gap: 8px; margin-top: 8px; }
.linkbox .input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* uvoz */
.drop { border: 1px dashed var(--ink); padding: 44px 20px; text-align: center; background: var(--surface); transition: border-color .15s, background .15s; cursor: pointer; display: block; }
.drop.over { border-style: solid; background: var(--soft); }
.drop svg { width: 44px; height: 44px; stroke: var(--ink); fill: none; stroke-width: 1.2; margin: 0 auto 12px; }
.drop b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.preview-list { display: flex; flex-direction: column; margin-top: 12px; }
.preview-list .it { display: grid; grid-template-columns: 54px 120px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.preview-list img, .preview-list .ph { width: 54px; aspect-ratio: 4/5; object-fit: cover; background: var(--soft); }
.preview-list .c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-big { height: 8px; }

/* dialogi, obvestila */
dialog { margin: auto; border: 0; background: var(--surface); color: var(--ink); width: min(420px, calc(100% - 32px)); padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog .dh { padding: 22px 22px 6px; text-align: center; }
dialog .db { padding: 6px 22px 18px; text-align: center; color: var(--muted); font-size: 14px; }
dialog .db ul { text-align: left; margin: 10px 0 0 18px; }
dialog .df { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
dialog .df button { padding: 13px; font-size: 14px; border-top: 1px solid var(--line); }
dialog .df button:first-child { border-top: 0; }
dialog .df button:hover { background: var(--soft); }
dialog .df .go { color: var(--accent); font-weight: 600; }
dialog .df .bad { color: var(--err); font-weight: 600; }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--on-ink); padding: 11px 16px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); animation: tin .2s ease; pointer-events: auto; }
.toast.err { background: var(--err); color: var(--on-ink); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { #toasts { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* prazni sloti računa brez plana */
.btn.big { min-height: 52px; padding: 12px 24px; font-size: 15px; }
.btn.big svg { width: 18px; height: 18px; stroke-width: 1.8; }
.story.on > span:last-child { font-weight: 600; }
.slots { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 935px; margin: 0 auto; }
.slots > span { aspect-ratio: 4/5; background: var(--soft); }
.slots-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--ink); }
.slots-cta:hover { text-decoration: none; }
.slots-cta b { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.slots-cta > span:not(.btn) { color: var(--muted); max-width: 30ch; }
.slots-cta .btn { margin-top: 8px; }
