/* Viralni studio — vmesnik */
:root {
  --bg: #f5f3ef; --panel: #ffffff; --panel-2: #faf8f5; --ink: #18161d; --ink-2: #3b3842; --muted: #736e7a; --line: #e7e2db; --line-2: #d9d3ca;
  --accent: #ff3d6e; --accent-2: #ff7a45; --accent-soft: #ffe4eb; --accent-ink: #fff;
  --ok: #0f9d58; --ok-soft: #dcf5e7; --warn: #c77700; --warn-soft: #fff1d6; --err: #d92d20; --err-soft: #fde4e1; --info: #3a63d8; --info-soft: #e3eaff;
  --side: #14121a; --side-ink: #e9e6ef; --side-muted: #8e8899; --side-hover: #221f2a;
  --shadow: 0 1px 2px rgba(20, 16, 30, .05), 0 8px 24px -12px rgba(20, 16, 30, .18);
  --radius: 16px; --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, sans-serif; --display: "Montserrat", "Inter", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d12; --panel: #17151d; --panel-2: #1c1a23; --ink: #f1eff5; --ink-2: #d5d1dc; --muted: #9b96a5; --line: #2a2731; --line-2: #3a3642;
    --accent-soft: #3a1622; --ok-soft: #10301f; --warn-soft: #33260b; --err-soft: #3b1512; --info-soft: #18213d;
    --side: #0a090d; --side-hover: #1b1921; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 15px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- ogrodje ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; box-shadow: 0 6px 18px -6px var(--accent); }
.brand-mark svg { width: 18px; height: 18px; }
.brand b { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: -.01em; display: block; }
.brand small { color: var(--side-muted); font-size: 11.5px; display: block; margin-top: -2px; }
.nav-a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.nav-a:hover { background: var(--side-hover); }
.nav-a.on { background: var(--side-hover); box-shadow: inset 3px 0 0 var(--accent); }
.nav-a svg { width: 18px; height: 18px; opacity: .85; flex: none; }
.nav-a .badge { margin-left: auto; }
.nav-sec { color: var(--side-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 16px 10px 6px; font-weight: 600; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin: 0 4px; }
.side-foot { margin-top: auto; padding: 10px; color: var(--side-muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.side-foot button { background: none; border: 0; color: var(--side-muted); padding: 0; cursor: pointer; text-align: left; text-decoration: underline; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.crumbs { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }

.bottom-nav { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px 96px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--side); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { color: var(--side-muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; padding: 4px; position: relative; }
  .bottom-nav a.on { color: #fff; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .badge { position: absolute; top: 0; right: calc(50% - 22px); }
  h1 { font-size: 22px; }
}

/* ---------- gradniki ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .sub { color: var(--muted); font-size: 13.5px; }
.section { margin-top: 28px; }
.section > .card-head { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { margin-left: auto; }
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.pre { white-space: pre-wrap; word-break: break-word; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s; line-height: 1.2; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -8px var(--accent); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.btn.danger:hover { background: var(--err-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.lg { padding: 11px 20px; font-size: 15px; }
.btn.icon { padding: 7px; border-radius: 10px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.pulse i { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* obrazci */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: 13.5px; }
.field > small, .hint { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea, textarea.input {
  width: 100%; border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--radius-sm); padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea, textarea.input { resize: vertical; min-height: 76px; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
input[type=color] { width: 44px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: var(--panel); cursor: pointer; }
input[type=range] { accent-color: var(--accent); width: 100%; }

.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg.mode button.on.m-autopilot { background: var(--ok); color: #fff; }
.seg.mode button.on.m-approval { background: var(--info); color: #fff; }
.seg.mode button.on.m-paused { background: var(--ink-2); color: var(--bg); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }

.times { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.time-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 4px 3px 10px; }
.time-chip input { border: 0 !important; background: transparent !important; padding: 2px !important; width: 74px !important; box-shadow: none !important; }
.time-chip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 2px 6px; border-radius: 999px; font-size: 16px; line-height: 1; }
.time-chip button:hover { background: var(--err-soft); color: var(--err); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days button { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.days button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* zavihki */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--accent); }

/* statistične ploščice */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; display: block; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin-top: 2px; }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat .d { color: var(--muted); font-size: 12.5px; }
.meter { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

.health { display: flex; gap: 8px; flex-wrap: wrap; }

/* video kartice (telefon) */
.phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.phones.lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.vcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(20, 16, 30, .35); }
.vcard .media { aspect-ratio: 9 / 16; background: #111 center/cover no-repeat; position: relative; display: block; }
.vcard .media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.vcard .media .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; color: #fff;
  background: radial-gradient(120% 80% at 30% 10%, color-mix(in srgb, var(--c, var(--accent)) 70%, #000) 0%, #120f18 70%); }
.vcard .media .ph b { font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1.15; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.vcard .media .top { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.vcard .media .top .chip { backdrop-filter: blur(6px); background: rgba(20, 18, 26, .72); color: #fff; border-color: transparent; }
.vcard .media .top .chip.ok { background: rgba(15, 157, 88, .9); }
.vcard .media .top .chip.err { background: rgba(217, 45, 32, .9); }
.vcard .media .top .chip.info { background: rgba(58, 99, 216, .9); }
.vcard .media .top .chip.warn { background: rgba(199, 119, 0, .92); }
.vcard .media .top .chip.accent { background: rgba(255, 61, 110, .92); }
.vcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vcard .t { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .m { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vcard .actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.vcard .actions .btn { flex: 1; }
.plat-icons { display: inline-flex; gap: 4px; }
.plat-icons i { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); }
.plat-icons i svg { width: 11px; height: 11px; }
.plat-icons i.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plat-icons i.okp { background: var(--ok); color: #fff; border-color: var(--ok); }
.plat-icons i.errp { background: var(--err); color: #fff; border-color: var(--err); }

/* kanali */
.ch-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; position: relative; overflow: hidden; }
.ch-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.ch-card .name { display: flex; align-items: center; gap: 10px; }
.ch-card .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 17px; flex: none; }
.ch-card .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-card .kv div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; }
.ch-card .kv b { display: block; font-family: var(--display); font-size: 17px; }
.ch-card .kv span { color: var(--muted); font-size: 12px; }

/* seznam / časovnica */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-item:first-child { border-top: 0; }
.list-item .thumb { width: 40px; height: 64px; border-radius: 8px; background: #222 center/cover; flex: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 74px; font-size: 13.5px; }
.log { font-size: 13px; }
.log-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.log-row:first-child { border-top: 0; }
.log-row .at { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-row.error .msg { color: var(--err); }
.log-row.warn .msg { color: var(--warn); }
.log-row .ch { font-weight: 600; margin-right: 6px; }
@media (max-width: 600px) { .log-row { grid-template-columns: 1fr; gap: 0; } }

/* ideje */
.idea { display: flex; flex-direction: column; gap: 10px; }
.idea .hook { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.idea .hook em { font-style: normal; color: var(--accent); }
.idea .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.idea details summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.idea details[open] summary { margin-bottom: 6px; }
.idea .prompt { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }

/* video podrobnosti */
.vdetail { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .vdetail { grid-template-columns: 1fr; } }
.player { position: sticky; top: 20px; }
.player .frame { aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000; border: 6px solid #111; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); position: relative; }
.player .frame video, .player .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .frame .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; background: radial-gradient(120% 80% at 30% 10%, color-mix(in srgb, var(--c, var(--accent)) 70%, #000), #0d0b12 70%); }
.steps { display: flex; gap: 0; margin: 4px 0 2px; }
.steps .s { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; padding-top: 18px; font-weight: 600; }
.steps .s::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 3px; background: var(--line); }
.steps .s::after { content: ""; position: absolute; top: 0; left: calc(50% - 6.5px); width: 13px; height: 13px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); }
.steps .s.done::before, .steps .s.done::after { background: var(--ok); border-color: var(--ok); }
.steps .s.cur { color: var(--ink); }
.steps .s.cur::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.steps .s.cur.bad::after { background: var(--err); border-color: var(--err); }
.cap-row { display: grid; grid-template-columns: 1fr 72px 72px 34px; gap: 8px; align-items: center; }
.cap-row input { padding: 7px 9px !important; }
.post-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-row:first-child { border-top: 0; }
.post-row .pi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.post-row .pi svg { width: 17px; height: 17px; }

/* povezave */
.conn { display: flex; flex-direction: column; gap: 12px; }
.conn .head { display: flex; align-items: center; gap: 12px; }
.conn .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.conn .logo svg { width: 22px; height: 22px; }
.conn .acct { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.conn .acct img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--line); }
.note { background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.note.warn { background: var(--warn-soft); border-color: transparent; }
.note.info { background: var(--info-soft); border-color: transparent; }
.note.err { background: var(--err-soft); border-color: transparent; color: var(--err); }
.note b { color: var(--ink); }
ol.steps-list { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.copy { display: flex; gap: 6px; align-items: center; }
.copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line); padding: 6px 9px; border-radius: 8px; font-size: 12.5px; }

/* predogled napisov */
.ov-preview { width: 180px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; border: 4px solid #111; position: relative; background: #000; flex: none; }
.ov-preview iframe { width: 1080px; height: 1920px; border: 0; transform: scale(calc(172 / 1080)); transform-origin: 0 0; position: absolute; top: 0; left: 0; pointer-events: none; }

/* modalno okno + obvestila */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 8, 14, .55); z-index: 60; display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); animation: fade .15s; }
.modal { background: var(--panel); border-radius: 20px; max-width: 640px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
@media (max-width: 860px) { .toasts { bottom: 84px; } }
.toast { background: var(--ink); color: var(--bg); padding: 11px 15px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; font-size: 14px; animation: pop .2s; }
.toast.err { background: var(--err); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; font-family: var(--display); }
.empty .btn { margin-top: 14px; }
.skel { background: linear-gradient(90deg, var(--panel-2), var(--line), var(--panel-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* prijava */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background:
  radial-gradient(60% 50% at 15% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
  radial-gradient(50% 40% at 90% 90%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent), var(--bg); }
.login .card { width: 100%; max-width: 400px; padding: 28px; }
.login .brand { padding: 0 0 18px; color: var(--ink); }
.login .brand small { color: var(--muted); }

/* čarovnik */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 16px; }
.wizard-steps span { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.wizard-steps span.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ai-box { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(135deg, var(--accent-soft), transparent 60%); border-radius: 14px; padding: 12px 14px; }

.cost { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.cost b { font-family: var(--display); font-size: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

/* popravki postavitve */
.grid > .card, .grid > .stat { margin-top: 0 !important; }
.switch svg { width: 18px; height: 18px; flex: none; }
.nav-a .right svg { width: 14px; height: 14px; }
.conn > .btn { align-self: flex-start; }
.time-chip input { width: 104px !important; }
.savebar { position: sticky; bottom: 12px; z-index: 5; margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; padding: 8px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .savebar { bottom: 84px; } }
/* privzeta velikost ikon (ničelna specifičnost — posebna pravila jo prepišejo) */
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
h3 > svg { margin-right: 4px; }
@media (max-width: 600px) { .phones:not(.lg) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .vcard .actions { flex-wrap: wrap; } }
