/* AI pisarna – barve in pisava kot spletna stran SmartOffer (bela, črna, signalno rumena; Geist) */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f7f8f9;
  --text: #16181b;
  --muted: #5f6672;
  --line: #e6e8eb;
  --line-strong: #cfd2d7;
  --accent: #f6c21c;
  --accent-text: #7a5900;
  --accent-hover: #ffcf2e;
  --accent-ink: #0b0b0c;
  --accent-soft: #fff7d6;
  --ok: #15803d; --ok-soft: #ecfdf3;
  --warn: #b45309; --warn-soft: #fffbeb;
  --err: #dc2626; --err-soft: #fef2f2;
  --info: #2563eb; --info-soft: #eff6ff;
  --side-bg: #0b0b0c; --side-text: #c9ccd2; --side-muted: #8a909a; --side-hover: rgba(255,255,255,.06);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 30px -12px rgba(15,23,42,.18);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --panel: #111827; --panel-2: #0f172a; --text: #e5e7eb; --muted: #94a3b8;
    --line: #1f2937; --line-strong: #334155; --accent: #f6c21c; --accent-hover: #ffcf2e; --accent-ink: #0b0b0c; --accent-text: #f6c21c;
    --accent-soft: rgba(246,194,28,.12); --ok: #4ade80; --ok-soft: rgba(74,222,128,.1); --warn: #fbbf24;
    --warn-soft: rgba(251,191,36,.1); --err: #f87171; --err-soft: rgba(248,113,113,.1); --info: #60a5fa;
    --info-soft: rgba(96,165,250,.1); --side-bg: #050506; --shadow: none; --shadow-lg: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14.5px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #4d3800; }
h1 { font-size: 1.6rem; margin: 0 0 .2rem; line-height: 1.2; font-weight: 640; letter-spacing: -.03em; }
h2 { font-size: 1.02rem; margin: 0 0 .8rem; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: .92rem; margin: 1.1rem 0 .5rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.sm { width: 15px; height: 15px; vertical-align: -2px; }

/* Postavitev */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-text); padding: 1.1rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; gap: .7rem; align-items: center; padding: .2rem .55rem 1.3rem; font-weight: 700; color: #fff; font-size: 1rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 750; font-size: .85rem; }
.brand small { display: block; font-weight: 500; font-size: .74rem; color: var(--side-muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); padding: .9rem .75rem .35rem; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 8px; color: var(--side-text); font-weight: 500; position: relative; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.on { background: rgba(246,194,28,.12); color: #f6c21c; }
.nav a.on::before { content: ""; position: absolute; left: -.8rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #f6c21c; }
.nav .ico { display: inline-flex; opacity: .9; }
.nav .count { margin-left: auto; background: #f6c21c; color: #0b0b0c; border-radius: 99px; font-size: .7rem; padding: .05rem .5rem; font-weight: 700; }
.nav-sep { height: 1px; background: rgba(255,255,255,.07); margin: .7rem .5rem; }
.side-foot { margin-top: auto; padding: .9rem .6rem .2rem; font-size: .82rem; color: var(--side-muted); border-top: 1px solid rgba(255,255,255,.07); }
.side-foot .who { color: var(--side-text); font-weight: 600; display: block; margin-bottom: .35rem; overflow: hidden; text-overflow: ellipsis; }
.side-foot a, .side-foot .linkbtn { color: var(--side-muted); background: none; border: 0; font: inherit; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.side-foot a:hover, .side-foot .linkbtn:hover { color: #fff; }
.side-foot .ai-tag { border-color: rgba(255,255,255,.15); color: var(--side-muted); }
.main { padding: 2rem 2.4rem 4rem; max-width: 1240px; width: 100%; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.topbar .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.topbar p.muted { margin: .15rem 0 0; }
.mobile-bar { display: none; }
.banner { background: #1e293b; color: #fde68a; padding: .55rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .88rem; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 1.1rem 1rem 6rem; }
  .mobile-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; padding: .5rem 0 .55rem; font-size: .68rem; color: var(--muted); gap: 3px; font-weight: 500; }
  .mobile-bar a.on { color: var(--accent-text); font-weight: 650; }
  .mobile-bar .ico { display: inline-flex; }
  h1 { font-size: 1.35rem; }
}

/* Kartice in mreže */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head a { font-size: .85rem; font-weight: 600; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .split, .g3 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2 { grid-template-columns: minmax(0, 1fr); } .kpi .v { font-size: 1.3rem; } .kpi { padding: .8rem .9rem; } }

.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); position: relative; }
.kpi .l { color: var(--muted); font-size: .8rem; font-weight: 550; display: flex; align-items: center; gap: .45rem; }
.kpi .l .icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.kpi .v { font-size: 1.75rem; font-weight: 700; line-height: 1.1; margin-top: .55rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--muted); font-size: .78rem; margin-top: .25rem; }

/* Gumbi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .95rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: background .12s, border-color .12s, color .12s; }
.btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { filter: brightness(1.08); color: #fff; }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.btn.danger:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: .3rem .65rem; min-height: 30px; font-size: .8rem; }
.btn.lg { padding: .75rem 1.3rem; font-size: 1rem; min-height: 48px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.inline { display: inline; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* Obrazci */
label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: .35rem; color: var(--text); }
.field { margin-bottom: 1rem; }
.hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; min-height: 40px; transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-text); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type=file] { font: inherit; font-size: .85rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { margin-top: .2rem; width: 17px; height: 17px; flex: none; accent-color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line-strong); border-radius: 99px; padding: .25rem .75rem; font-size: .8rem; background: var(--panel); cursor: pointer; font-weight: 550; margin: 0; }
.chip input { margin: 0; accent-color: var(--accent-text); }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-text); color: var(--accent-text); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .35rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filters input[type=search] { max-width: 300px; }
.filters select { width: auto; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: 1rem; background: var(--panel); border: 1px solid var(--line); padding: .25rem; border-radius: 10px; width: fit-content; max-width: 100%; }
.tabs a { padding: .4rem .8rem; color: var(--muted); border-radius: 7px; font-weight: 600; font-size: .84rem; }
.tabs a.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a:hover { color: var(--text); }

/* Tabele */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; white-space: nowrap; background: var(--panel-2); }
.card[style*="padding:0"] table th:first-child { border-top-left-radius: var(--radius); }
.card[style*="padding:0"] table th:last-child { border-top-right-radius: var(--radius); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--panel-2); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tfoot td { font-weight: 700; }

/* Oznake */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 650; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.novo, .badge.poslana, .badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.v_obdelavi, .badge.osnutek, .badge.warn, .badge.normalna { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.ponudba { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge.dobljeno, .badge.sprejeta, .badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.izgubljeno, .badge.zavrnjena, .badge.spam, .badge.err, .badge.visoka { background: var(--err-soft); color: var(--err); border-color: transparent; }
.badge.potekla, .badge.nizka { background: var(--panel-2); color: var(--muted); }
.badge.normalna { display: none; }
.ai-tag { font-size: .68rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 .4rem; font-weight: 600; letter-spacing: .02em; }

/* Sporočila */
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: .9rem; font-weight: 500; border: 1px solid transparent; font-size: .9rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.flash.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 20%, transparent); }
.flash.err { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 20%, transparent); }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .big { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: .7rem; color: var(--muted); }
.empty .big .icon { width: 24px; height: 24px; }

/* Seznami */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .8rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .8rem; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; }
.list a.title:hover { color: var(--accent-text); }
.list .meta { font-size: .8rem; color: var(--muted); }
.src { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.timeline li { padding: .45rem 0 .45rem 1.1rem; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .9rem; width: 8px; height: 8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.timeline .when { color: var(--muted); font-size: .74rem; display: block; }
.timeline a { color: var(--text); }
.timeline a:hover { color: var(--accent-text); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .84rem; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.quote-text { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; font-size: .9rem; max-height: 340px; overflow: auto; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumbs a { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; font-size: .72rem; text-align: center; color: var(--muted); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bar { height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.missing { padding-left: 1.1rem; }
.missing li { color: var(--warn); margin-bottom: .2rem; }

/* Urejevalnik ponudbe */
.lines input, .lines select { min-height: 36px; padding: .35rem .55rem; }
.lines td { padding: .4rem .35rem; vertical-align: middle; }
.lines .c-desc { min-width: 260px; }
.lines .c-qty input { width: 92px; text-align: right; }
.lines .c-unit select { width: 84px; }
.lines .c-price input { width: 104px; text-align: right; }
.lines .c-sum { width: 112px; font-weight: 600; }
.lines tr.review { background: var(--warn-soft); }
.lines .drag { cursor: grab; color: var(--line-strong); user-select: none; padding: 0 .2rem; width: 20px; }
.lines .drag:hover { color: var(--muted); }
.totals { margin-left: auto; max-width: 360px; }
.totals div { display: flex; justify-content: space-between; padding: .3rem 0; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.3rem; font-weight: 800; border-top: 2px solid var(--text); margin-top: .35rem; padding-top: .55rem; letter-spacing: -.01em; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); padding: .8rem 0; border-top: 1px solid var(--line); margin-top: 1rem; z-index: 5; }
@media (max-width: 900px) { .sticky-actions { bottom: 58px; } }

/* Teren */
.mic { width: 100%; padding: 1.15rem; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); color: var(--accent-text); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .5rem; }
.mic .icon { width: 22px; height: 22px; }
.mic.rec { background: var(--err); border-color: var(--err); border-style: solid; color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .82; } }
.room { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .85rem; background: var(--panel); box-shadow: var(--shadow); }
.room-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.room-head input { font-weight: 700; }
.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.dims label { font-size: .72rem; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
@media (max-width: 560px) { .dims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metrics { display: flex; gap: .4rem; flex-wrap: wrap; margin: .7rem 0; }
.metrics span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: .2rem .6rem; font-size: .8rem; }
.metrics b { font-variant-numeric: tabular-nums; }
.room.deleted { opacity: .45; }
details summary { cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--accent-text); margin: .3rem 0; }

/* Javne strani */
.public { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.public.embed { padding: .5rem; max-width: none; }
.public-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.public-head img { max-height: 56px; max-width: 160px; }
.public-head .who { font-weight: 700; font-size: 1.15rem; }
.notice { font-size: .78rem; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .85rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Prijava */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), var(--bg); }
.auth .card { width: 100%; max-width: 410px; padding: 2rem; box-shadow: var(--shadow-lg); }
.auth .brand { color: var(--text); padding: 0 0 1.3rem; }
.auth .brand small { color: var(--muted); }

.secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.02rem; background: var(--panel-2); padding: .35rem .6rem; border-radius: 6px; border: 1px dashed var(--accent); user-select: all; display: inline-block; }
.copy { cursor: pointer; }
@media print { .side, .mobile-bar, .sticky-actions, .topbar .actions { display: none !important; } .shell { display: block; } }

/* Postavke ponudbe na telefonu: vsaka postavka kot kartica */
@media (max-width: 700px) {
  .lines thead { display: none; }
  .lines, .lines tbody { display: block; }
  .lines tr { display: grid; grid-template-columns: 1fr 84px 1fr; gap: .45rem; padding: .75rem 0; border-bottom: 1px solid var(--line); position: relative; }
  .lines td { border: 0; padding: 0; }
  .lines td.drag { display: none; }
  .lines td.c-desc { grid-column: 1 / -1; padding-right: 42px; min-width: 0; }
  .lines .c-qty input, .lines .c-price input, .lines .c-unit select { width: 100%; }
  .lines td.c-qty::before, .lines td.c-unit::before, .lines td.c-price::before { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
  .lines td.c-qty::before { content: "Količina"; }
  .lines td.c-unit::before { content: "Enota"; }
  .lines td.c-price::before { content: "Cena €"; }
  .lines td.c-sum { grid-column: 1 / -1; text-align: right; font-weight: 700; width: auto; }
  .lines td:last-child { position: absolute; top: .75rem; right: 0; }
  .lines tr.review { background: var(--warn-soft); padding: .75rem .5rem; border-radius: 10px; }
  .lines tr.review td:last-child { right: .5rem; }
}

@media (max-width: 560px) { .list li { flex-wrap: wrap; } .list li .grow { flex-basis: calc(100% - 50px); } .list li > .row { margin-left: 46px; } }

/* Koledar: teden v 7 stolpcih, na telefonu dnevi drug pod drugim */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; min-height: 160px; box-shadow: var(--shadow); }
.day header { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .5rem; font-size: .85rem; }
.day .dname { color: var(--muted); text-transform: capitalize; }
.day .add { margin-left: auto; color: var(--muted); display: inline-flex; padding: 2px; border-radius: 6px; }
.day .add:hover { background: var(--panel-2); color: var(--accent-text); }
.day.today { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent); }
.day.today header b { color: var(--accent-text); }
.day.past { opacity: .7; }
.day .free { color: var(--muted); font-size: .78rem; margin: 0; }
.event { display: block; padding: .4rem .5rem; border-radius: 8px; margin-bottom: .35rem; font-size: .8rem; background: var(--info-soft); color: var(--text); border-left: 3px solid var(--info); }
.event:hover { filter: brightness(.97); color: var(--text); }
.event.izvedba { background: var(--accent-soft); border-left-color: var(--accent-text); }
.event.drugo { background: var(--panel-2); border-left-color: var(--line-strong); }
.event .t { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.event .n { display: block; font-weight: 550; }
.event .l { display: block; color: var(--muted); font-size: .74rem; }
@media (max-width: 1100px) { .week { grid-template-columns: minmax(0, 1fr); } .day { min-height: 0; } .day .free { display: none; } }
.day header { white-space: nowrap; }

/* Naslednji korak pri povpraševanju */
.next-step { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.next-step .what { flex: 1; min-width: 220px; }
.next-step .what b { display: block; }
.next-step .what span { color: var(--muted); font-size: .86rem; }

/* Paketi, registracija, naročnina */
.flash.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 20%, transparent); }
.small { font-size: .82rem; }
.lead { font-size: 1.05rem; max-width: 56ch; margin: .3rem auto 1.6rem; }
.auth .card.wide { max-width: 620px; }
.plans-page { place-items: start center; padding-top: 3rem; }
.plans-wrap { max-width: 1000px; width: 100%; text-align: center; }
.plans-wrap .brand { justify-content: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; text-align: left; }
.auth .plan { max-width: none; padding: 1.5rem; position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-lg); }
.plan .badge { position: absolute; top: -.7rem; right: 1rem; background: var(--accent); color: #fff; border: 0; }
.plan .badge::before { display: none; }
.plan h2 { margin: 0; }
.plan .price b { font-size: 1.9rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.3rem; flex: 1; display: grid; gap: .45rem; }
.plan li { display: flex; gap: .45rem; align-items: center; }
.plan li .icon { color: var(--ok); flex: none; }
.plan-pick { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.plan-pick legend { font-weight: 600; margin-bottom: .4rem; }
.plan-opt { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.plan-opt:has(input:checked) { border-color: var(--accent-text); background: var(--accent-soft); }
.plan-opt input { accent-color: var(--accent-text); width: 17px; height: 17px; }
.plan-opt small { display: block; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 1rem 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-row.on b { color: var(--accent-text); }

/* ===== Sodoben videz (jezik spletne strani SmartOffer) ===== */
:root { --radius: 16px; --shadow: none; --shadow-lg: 0 2px 6px rgb(0 0 0 / .05), 0 30px 60px -28px rgb(0 0 0 / .25); --ease: cubic-bezier(.16, 1, .3, 1); }
body { font-size: 15px; }
h1 { font-size: 2rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
h2 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; }
.main { padding: 2.4rem 2.8rem 5rem; }
.topbar { margin-bottom: 1.8rem; align-items: flex-end; }
.topbar p.muted { margin-top: .35rem; }

/* stranski meni */
.side { padding: 1.3rem .9rem; border-right: 1px solid #1a1b1e; }
.brand { padding: .2rem .6rem 1.6rem; font-weight: 620; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; font-size: .72rem; }
.nav { gap: 3px; }
.nav a { border-radius: 999px; padding: .58rem .9rem; font-weight: 500; transition: background .2s, color .2s; }
.nav a.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav a.on::before { display: none; }
.nav a.on .count { background: var(--accent-ink); color: var(--accent); }
.nav-label { font-size: .7rem; letter-spacing: .02em; text-transform: none; font-weight: 560; padding: 1.1rem .9rem .4rem; }

/* kartice */
.card, .kpi, .room { border-radius: var(--radius); border-color: var(--line); box-shadow: none; }
.card { padding: 1.45rem 1.6rem; margin-bottom: 1.1rem; }
.card-head { margin-bottom: 1.1rem; }
.card-head a { font-weight: 560; color: var(--text); }
.card-head a:hover { color: var(--accent-text); }
.grid, .split { gap: 1.1rem; }
.kpi { padding: 1.2rem 1.3rem; transition: border-color .2s; }
.kpi:hover { border-color: var(--line-strong); }
.kpi .l { font-weight: 520; }
.kpi .l .icon { background: var(--panel-2); color: var(--text); border-radius: 50%; }
.kpi .v { font-size: 2.3rem; font-weight: 600; letter-spacing: -.045em; margin-top: .8rem; }

/* gumbi */
.btn { border-radius: 999px; padding: .55rem 1.15rem; min-height: 40px; font-weight: 560; border-color: var(--line); box-shadow: none; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.btn:hover { background: var(--panel); border-color: var(--line-strong); }
.btn:active { transform: scale(.97); }
.btn.primary { border-color: var(--accent); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 8px 18px -10px rgb(0 0 0 / .3); }
.btn.sm { min-height: 32px; padding: .3rem .8rem; }
.btn.lg { min-height: 50px; padding: .8rem 1.5rem; }

/* obrazci */
label { font-weight: 560; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  border-radius: 12px; border-color: var(--line); min-height: 44px; padding: .6rem .85rem; background: var(--panel);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px rgb(246 194 28 / .35); }
.chip { border-color: var(--line); font-weight: 520; padding: .35rem .85rem; }
.chip:has(input:checked) { background: var(--text); border-color: var(--text); color: #fff; }
.tabs { border-radius: 999px; padding: .3rem; border-color: var(--line); }
.tabs a { border-radius: 999px; padding: .42rem 1rem; font-weight: 560; }
.tabs a.on { background: var(--text); color: #fff; box-shadow: none; }

/* tabele in oznake */
th { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 520; background: transparent; color: var(--muted); }
th, td { padding: .8rem .85rem; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.badge { border: 0; font-weight: 600; padding: .18rem .6rem; }
.ai-tag { border-radius: 999px; }
.flash { border-radius: 14px; }
.list li { padding: .95rem 0; }
.src { border-radius: 50%; border: 0; }
.quote-text, .notice { border-radius: 14px; }
.totals .grand { font-weight: 650; letter-spacing: -.03em; font-size: 1.45rem; }
.sticky-actions { border-top-color: var(--line); }

/* telefon */
@media (max-width: 900px) {
  .main { padding: 1.3rem 1rem 6.5rem; }
  h1 { font-size: 1.55rem; }
  .mobile-bar a { position: relative; }
  .mobile-bar a.on { color: var(--text); }
  .mobile-bar a.on .ico { background: var(--accent); border-radius: 999px; padding: 2px 12px; }
}

/* nežen vstop vsebine ob nalaganju strani */
.main > * { animation: enter .5s var(--ease) both; }
.main > *:nth-child(2) { animation-delay: .04s; }
.main > *:nth-child(3) { animation-delay: .08s; }
.main > *:nth-child(n+4) { animation-delay: .12s; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .main > * { animation: none; } }
@media (max-width: 900px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; }
}
.lines .c-desc { min-width: 190px; }
.lines .c-qty input { width: 80px; }
.lines .c-unit select { width: 78px; }
.lines .c-price input { width: 92px; }
.lines .c-sum { width: 96px; }

/* izbira jezika */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-switch { margin-top: .8rem; }
.lang-switch select { width: auto; min-height: 32px; padding: .2rem 2rem .2rem .8rem; border-radius: 999px; font-size: .82rem; }
.side .lang-switch select { background: #16181b; color: var(--side-text); border-color: #2a2d33; }
.auth .lang-switch { display: flex; justify-content: center; margin-top: 1.2rem; }
