/* Pelement ERP. Paleta: patina bakra (vodovod, elektrika, monterji), papir z zelenkastim tonom, jantar za klice, ki so na vrsti. */
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/onest-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/onest-latin-wght-normal.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; }

:root {
  --paper: #EEF2EF;      /* ozadje */
  --sheet: #FAFCFA;      /* površine */
  --ink: #17262B;        /* besedilo */
  --ink-2: #4A5B5F;      /* drugotno besedilo */
  --line: #CDD6D1;       /* črte */
  --line-2: #E1E7E3;
  --cu: #1E6B58;         /* patina bakra: glavna barva */
  --cu-ink: #134A3D;
  --cu-wash: #DCEAE3;
  --amber: #D9962B;      /* na vrsti / zamuja */
  --amber-wash: #F7EAD2;
  --red: #B0463B;
  --red-wash: #F4DEDA;
  --blue: #3B5B92;
  --r: 6px;
  --shadow: 0 1px 0 rgba(23, 38, 43, .06), 0 8px 24px -12px rgba(23, 38, 43, .25);
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; font-weight: 650; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .6em; }
a { color: var(--cu); text-underline-offset: 2px; }
a:hover { color: var(--cu-ink); }
:focus-visible { outline: 2px solid var(--cu); outline-offset: 2px; border-radius: 3px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.pad { padding: 24px; }
.num, td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* ---------- gumbi in vnosi */
.btn { font: inherit; font-weight: 600; font-size: .92rem; border: 1px solid transparent; border-radius: var(--r); padding: 8px 14px; cursor: pointer; background: var(--sheet); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--cu); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--cu-ink); }
.btn.accent { background: var(--ink); color: var(--paper); }
.btn.accent:hover:not(:disabled) { background: #0f1a1d; }
.btn.ghost { border-color: var(--line); background: var(--sheet); }
.btn.ghost:hover:not(:disabled) { border-color: var(--ink-2); }
.btn.danger { background: var(--red); color: #fff; }
.btn.big { padding: 12px 20px; font-size: 1rem; }
.btn.sm { padding: 5px 10px; font-size: .85rem; }
.btn.wide { width: 100%; justify-content: center; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--cu); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link.danger { color: var(--red); }
.icon { font: inherit; font-size: 1.5rem; line-height: 1; width: 36px; height: 36px; border: 0; background: none; border-radius: var(--r); cursor: pointer; color: var(--ink-2); }
.icon:hover { background: var(--line-2); color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--cu); outline: 2px solid var(--cu-wash); outline-offset: 0; }
textarea { width: 100%; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.field > span { color: var(--ink-2); font-weight: 550; }
.field small { color: var(--ink-2); }
.form-err { color: var(--red); margin: 6px 0; font-size: .9rem; }
.form-err:empty { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--sheet); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--cu); border-color: var(--cu); color: #fff; }

/* ---------- logotip: ploščica kot v periodnem sistemu */
.logo { display: flex; align-items: center; gap: 10px; }
.logo .tile { position: relative; width: 38px; height: 38px; border: 1.5px solid var(--cu); border-radius: 4px; display: grid; place-items: center; color: var(--cu); background: var(--sheet); }
.logo .tile b { font-size: 1.05rem; font-weight: 750; letter-spacing: -0.02em; }
.logo .tile small { position: absolute; top: 1px; left: 4px; font-size: .55rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.logo .word { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- postavitev */
.layout { display: grid; grid-template-columns: 208px 1fr; min-height: 100vh; }
.menu { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--paper); }
.menu-top { padding: 0 8px 22px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.menu a { display: block; padding: 8px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 550; border-left: 3px solid transparent; }
.menu a:hover { background: var(--line-2); }
.menu a[aria-current] { background: var(--sheet); border-left-color: var(--cu); color: var(--cu-ink); font-weight: 650; box-shadow: var(--shadow); }
.menu a.hot::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-left: 8px; vertical-align: middle; }
.menu-bottom { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--line); }
.menu .me { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0; font-size: .85rem; color: var(--ink-2); }
.menu .me i, .who i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.view { padding: 28px 32px 60px; min-width: 0; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.panel > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.panel > .body { padding: 14px 16px; }

/* ---------- faze (barve) */
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.st-nov { background: #E3E8EA; color: #4A5B5F; }
.st-poskus { background: var(--amber-wash); color: #8A5A10; }
.st-pogovor { background: #DFE6F2; color: #2C4675; }
.st-zanimanje { background: #DDEDD9; color: #355E28; }
.st-sestanek { background: var(--cu-wash); color: var(--cu-ink); }
.st-ponudba { background: #EBDFF0; color: #5E3770; }
.st-stranka { background: var(--cu); color: #fff; }
.st-izgubljen { background: var(--red-wash); color: #7E2E26; }
.ds-queued { background: var(--line-2); color: var(--ink-2); }
.ds-building { background: var(--amber-wash); color: #8A5A10; }
.ds-live { background: var(--cu-wash); color: var(--cu-ink); }
.ds-failed { background: var(--red-wash); color: #7E2E26; }
.ds-archived { background: #E3E8EA; color: #6B7A7E; }
.who { white-space: nowrap; font-size: .88rem; }

/* ---------- tabele */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .82rem; padding: 9px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--sheet); white-space: nowrap; z-index: 1; }
th button { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
th button[aria-sort] { color: var(--ink); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #F2F6F3; }
tbody tr.sel { background: var(--cu-wash); }
td .company { font-weight: 600; }
td .sub { display: block; color: var(--ink-2); font-size: .82rem; }
td.late { color: #8A5A10; font-weight: 600; }
td input[type=checkbox], th input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cu); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters input[type=search] { min-width: 240px; flex: 1; max-width: 380px; }
.bulk { position: sticky; bottom: 16px; margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); z-index: 5; }
.bulk select { background: #24363C; color: var(--paper); border-color: #3A5057; }
.bulk .btn.ghost { background: transparent; color: var(--paper); border-color: #4A6168; }

/* ---------- način klicanja: konzola */
.console { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 20px; align-items: start; }
.call-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; position: relative; overflow: hidden; }
.call-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--cu); }
.call-card.late::before { background: var(--amber); }
.call-card .why { font-size: .88rem; font-weight: 600; color: var(--cu-ink); margin-bottom: 6px; }
.call-card.late .why { color: #8A5A10; }
.call-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.call-card .contact { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 18px; }
.call-card .dial { display: inline-flex; align-items: baseline; gap: 12px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--cu); padding-bottom: 2px; }
.call-card .dial:hover { color: var(--cu-ink); }
.call-card .dial2 { margin-left: 18px; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 22px; margin: 22px 0 6px; padding-top: 18px; border-top: 1px dashed var(--line); }
.facts div span { display: block; font-size: .8rem; color: var(--ink-2); }
.facts div strong { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.call-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.history { max-height: 260px; overflow: auto; }
.progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }

.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.key { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 12px 11px; min-height: 72px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .92rem; line-height: 1.2; }
.key kbd { font: inherit; font-size: .75rem; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; background: var(--paper); font-variant-numeric: tabular-nums; }
.key:hover { border-color: var(--ink-2); }
.key.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.key.on kbd { background: var(--cu); border-color: var(--cu); color: #fff; }
.log-form.compact .keys { grid-template-columns: repeat(3, 1fr); }
.log-form.compact .key { min-height: 56px; padding: 9px 10px; font-size: .86rem; }
.log-extra:empty { display: none; }
.log-extra .sub { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-bottom: 10px; background: var(--paper); border-radius: 8px; }
.lbl { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.log-form textarea { margin-bottom: 8px; }

/* ---------- predal s podrobnostmi */
.scrim { position: fixed; inset: 0; background: rgba(23, 38, 43, .28); opacity: 0; transition: opacity .2s; z-index: 40; }
.scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--sheet); box-shadow: -12px 0 40px -16px rgba(23, 38, 43, .45); transform: translateX(100%); transition: transform .22s ease; z-index: 41; overflow-y: auto; outline: none; }
.drawer.open { transform: none; }
.drawer-body { padding: 22px 26px 40px; }
.lead-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lead-head h2 { font-size: 1.5rem; }
.lead-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-bottom: 16px; }
.lead-contact .phone { font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.lead-contact .phone.small { font-size: 1rem; }
.lead-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.lead-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.date-edit { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; }
.date-edit.late { border-color: var(--amber); background: var(--amber-wash); }
.date-edit .row { margin-top: 4px; }
.date-edit input { flex: 1; font-size: .85rem; padding: 4px 6px; }
.sec { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line-2); }
.sec > h3 { margin-bottom: 10px; }
.inline-note { display: flex; gap: 8px; margin-top: 10px; }
.inline-note input { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 12px; }
.form-grid .field:has(textarea) { grid-column: 1 / -1; }
.extra { margin-bottom: 12px; font-size: .88rem; }
.extra summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.extra dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; }
.extra dt { color: var(--ink-2); }
.extra dd { margin: 0; overflow-wrap: anywhere; }
.demo-sec form input { flex: 1; min-width: 200px; }
.demo-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.demo-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid var(--sheet); }
.timeline li.k-klic::before { background: var(--cu); }
.timeline li.k-sestanek::before { background: var(--amber); }
.timeline li.k-demo::before { background: var(--ink); }
.timeline .t-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.timeline .t-head .muted { font-size: .82rem; }
.timeline p { margin: 3px 0 0; }
.lead-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line-2); gap: 10px; flex-wrap: wrap; }

/* ---------- dialog in obvestila */
.modal { border: 0; border-radius: 10px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow); color: var(--ink); background: var(--sheet); }
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(23, 38, 43, .35); }
.modal > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.modal-body { padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.modal > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 550; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; }
.toast.err { background: var(--red); color: #fff; }
.toast.warn { background: var(--amber); color: var(--ink); }
.toast.out { opacity: 0; transform: translateY(8px); }

.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: 10px; background: var(--sheet); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 14px; }

/* ---------- pregled */
.today { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; margin-bottom: 20px; }
.today p.lead-text { font-size: 1.3rem; font-weight: 550; margin: 0; max-width: 48ch; letter-spacing: -0.01em; }
.today p.lead-text b { font-weight: 750; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.list button.link { text-decoration: none; font-weight: 600; color: var(--ink); text-align: left; }
.list button.link:hover { color: var(--cu); text-decoration: underline; }
.list .late { color: #8A5A10; font-weight: 600; }
.funnel-bar { display: flex; height: 34px; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; background: var(--line-2); }
.funnel-bar span { display: block; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- funnel (kanban) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #E5EBE7; border-radius: 10px; padding: 10px; min-height: 160px; }
.col.drop { outline: 2px dashed var(--cu); background: var(--cu-wash); }
.col > header { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; gap: 6px; }
.col > header .muted { display: block; font-size: .78rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.col > header .count { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--sheet); border-radius: 999px; padding: 1px 9px; font-size: .85rem; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; cursor: grab; }
.card:active { cursor: grabbing; }
.card.dragging { opacity: .4; }
.card b { display: block; font-weight: 600; line-height: 1.3; }
.card .meta { display: flex; justify-content: space-between; gap: 6px; font-size: .8rem; color: var(--ink-2); margin-top: 4px; }
.card .meta .late { color: #8A5A10; font-weight: 600; }

/* ---------- koledar */
.agenda { display: flex; flex-direction: column; gap: 14px; }
.day { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.day > header { display: flex; justify-content: space-between; padding: 10px 14px; background: #F3F6F4; border-bottom: 1px solid var(--line-2); font-weight: 650; }
.day.today > header { background: var(--cu); color: #fff; }
.day.past > header { background: var(--amber-wash); color: #6B4A10; }
.ev { display: grid; grid-template-columns: 64px 92px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.ev:last-child { border-bottom: 0; }
.ev:hover { background: #F2F6F3; }
.ev time { font-weight: 650; font-variant-numeric: tabular-nums; }
.ev .kind { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; justify-self: start; }
.ev .kind.sestanek { background: var(--amber-wash); color: #6B4A10; }
.ev .kind.klic { background: var(--cu-wash); color: var(--cu-ink); }

/* ---------- uvoz */
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 44px 20px; text-align: center; background: var(--sheet); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--cu); background: var(--cu-wash); }
.drop strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.map-table td { vertical-align: top; }
.map-table select { width: 100%; min-width: 180px; }
.conf { font-size: .75rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.conf.visoka { background: var(--cu-wash); color: var(--cu-ink); }
.conf.srednja { background: #DFE6F2; color: #2C4675; }
.conf.nizka { background: var(--amber-wash); color: #8A5A10; }
.samples { color: var(--ink-2); font-size: .82rem; max-width: 340px; }
.samples span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 24px; justify-content: start; margin: 8px 0; }
.result b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }

/* ---------- demoti */
.status-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; background: var(--sheet); border: 1px solid var(--line); font-size: .9rem; }
.status-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cu); }
.status-line.off .dot { background: var(--amber); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 8px 12px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--ink-2); margin-bottom: -1px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--cu); }
.tabs button span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.views-hot { color: var(--cu-ink); font-weight: 650; }

/* ---------- prijava */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth { width: min(400px, 100%); background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.auth h1 { font-size: 1.4rem; margin-top: 8px; }

/* ---------- prilagoditev za telefon */
@media (max-width: 900px) {
  .progress .small { display: none; }
  .layout { grid-template-columns: 1fr; }
  .menu { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); z-index: 20; overflow-x: auto; gap: 8px; }
  .menu-top { padding: 0; }
  .menu .word { display: none; }
  .menu ul { flex-direction: row; }
  .menu a { padding: 6px 10px; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .menu a[aria-current] { box-shadow: none; border-bottom-color: var(--cu); }
  .menu-bottom { margin: 0 !important; padding: 0; border: 0; }
  .menu .me { display: none; }
  .view { padding: 18px 14px 60px; }
  .console, .grid-2 { grid-template-columns: 1fr; }
  .call-side { position: static; }
  .form-grid, .lead-controls, .lead-dates { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 56px 1fr; }
  .ev .kind, .ev .muted { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
