/* weblj admin: nova podoba nadzorne plošče (predaja oblikovanja 28. 10. 2026).
 *
 * Nalaga jo samo app.html, za tokens/base/components.css in dash-theme.css.
 * Javne strani (index, navodila, 404) uporabljajo iste tri datoteke brez tega
 * sloja in se zato ne spremenijo. Struktura komponent ostane ista, tukaj se
 * spremeni samo videz: barve prihajajo iz tem, kartice so brez senc, gumbi in
 * polja imajo mere iz specifikacije, stranska vrstica in spodnja navigacija
 * pa sta nova ogrodja. */

/* ---- osnova ---- */
body {
  background: var(--bg);
  background-image: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
body::before { content: none; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::-webkit-scrollbar-thumb { background: var(--lines); background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--swoff); background-clip: content-box; }
::selection { background: var(--sel); color: var(--ink); }
.mono { font-size: 12.5px; }
.route-host { animation: none; }

/* ---- stranska vrstica ---- */
#app-shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar {
  background: var(--side);
  border-right: 1px solid var(--sideb);
  color: var(--sidei);
  padding: 18px 14px;
  gap: 2px;
}
.sidebar__brand {
  color: var(--sidehi);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 2px 8px 14px;
}
.sidebar__tenant { margin: 0 0 6px; }
.sidebar select {
  min-height: 44px; border: 0; border-radius: 10px;
  background-color: var(--sidehov); color: var(--sidehi); font-weight: 600;
}
.sidebar select:focus { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; }
.sidebar select option { background: var(--side); color: var(--sidehi); }
.sidebar .text-muted, .sidebar .text-faint { color: var(--sidem); }
.sidebar__tenant.text-muted { color: var(--sidehi); }

.nav-group { gap: 2px; margin-bottom: 0; }
.nav-label {
  font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--sidem); padding: 14px 10px 5px;
}
.nav-item {
  gap: 11px; min-height: 38px; padding: 8px 10px; border-radius: 8px;
  color: var(--sidei); font-weight: 500;
}
.nav-item::before { content: none; }
.nav-item:hover { background: var(--sidehov); color: var(--sidehi); }
.nav-item:hover > svg, .nav-item:hover > span { transform: none; }
.nav-item.active { background: var(--navonbg); color: var(--navoni); font-weight: 500; }
.nav-item.active svg { color: inherit; }

.sidebar__close { display: none; margin-left: auto; color: var(--sidei); }
.sidebar__me {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 14px 8px 2px;
  border-top: 1px solid var(--sidedv); color: var(--sidehi);
}
.sidebar__me .avatar { width: 34px; height: 34px; background: var(--avbg); color: var(--avi); font-size: 13px; }
.sidebar__me .btn-ghost { color: var(--sidei); border-color: transparent; background: none; }
.sidebar__me .btn-ghost:hover:not(:disabled) { background: var(--sidehov); color: var(--sidehi); }
.sidebar__me-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__me-role { color: var(--sidem); font-size: 12px; }

/* ---- zgornja vrstica ----
 * Na namizju je prazna (naslov zaslona je v vsebini), zato se pokaže samo
 * osebju, kot jantarna vrstica s preklopi. Na telefonu je to glava z menijem. */
#topbar-title { display: none; }
.topbar-brand { display: none; }
.topbar {
  height: auto; min-height: 52px; padding: 8px 32px; gap: 12px;
  background: #F5C451; color: #2B1D00;
  border-bottom: 0; backdrop-filter: none;
}
.topbar .text-muted { color: #2B1D00; }
.topbar .badge { background: rgba(43, 29, 0, .12); color: #2B1D00; }
.topbar .btn-secondary { border-color: rgba(43, 29, 0, .35); }
.topbar:has(#staff-mode-switcher:empty) { display: none; }
body:has(#staff-mode-switcher:not(:empty)) { --topbar-h: 52px; }

.content { max-width: 1440px; padding: 26px 32px 40px; }
.content > .route-host > h1:first-child { margin-bottom: 20px; }

/* ---- spodnja navigacija (telefon) ---- */
.bottom-nav { display: none; }

/* ---- kartice, kazalniki, tabele ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; box-shadow: none;
}
.card::before { content: none; }
.card-header { margin-bottom: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; box-shadow: none;
}
.stat-card::before { content: none; }
.stat-card__label { font-size: 14px; font-weight: 400; color: var(--mut); }
.stat-card__value {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em;
}
.stat-card__value--text { font-size: 17px; line-height: 1.3; }
.stat-card__delta { font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.stat-card--button:hover, .admin-action-card:hover {
  transform: none; box-shadow: none; border-color: var(--lines); background: var(--hover);
}
.stat-card__link, .admin-action-card__link { color: var(--brandd); }
.admin-action-card { box-shadow: none; border-radius: 14px; }
.activity-row, .list-card, .plugin-version-row { border-bottom-color: var(--line2); }
.activity-row--button:hover { padding-left: 0; }

.table-wrap { border-radius: 14px; box-shadow: none; }
thead th {
  font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--mut); background: var(--hover); border-bottom: 1px solid var(--line2);
  padding: 10px var(--sp-4);
}
tbody td { border-bottom: 1px solid var(--line2); }
tbody tr { box-shadow: none; }
tbody tr:hover { background: var(--hover); box-shadow: none; }

.progress { height: 8px; background: var(--track); }
.loading-panel { border-radius: 14px; }
.loading-panel__pct { color: var(--brandd); }

/* ---- gumbi ---- */
.btn {
  min-height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--lines); background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.btn:hover:not(:disabled) { background: var(--bg); transform: none; filter: none; box-shadow: none; }
.btn:active:not(:disabled) { transform: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--onbrand); }
.btn-primary:hover:not(:disabled) { background: var(--brandd); border-color: var(--brandd); color: var(--onbrand); }
.btn-secondary { background: var(--card); border-color: var(--lines); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: var(--bg); border-color: var(--lines); }
.btn-ghost { background: none; border-color: transparent; color: var(--brandd); }
.btn-ghost:hover:not(:disabled) { background: var(--hover); color: var(--brandd); }
.btn-ghost.btn-icon { color: var(--mut); }
.btn-ghost.btn-icon:hover:not(:disabled) { color: var(--ink); }
.btn-danger { background: var(--card); color: var(--eri); border-color: var(--erb); }
.btn-danger:hover:not(:disabled) { background: var(--erbg); border-color: var(--erb); }
.modal .btn-danger { background: #B93030; border-color: #B93030; color: #fff; }
.modal .btn-danger:hover:not(:disabled) { background: #962323; border-color: #962323; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { padding: 0; min-width: 40px; }
.btn-icon.btn-sm { min-width: 32px; }

/* ---- oznake ---- */
.badge { padding: 2px 10px; border: 0; font-size: 12.5px; background: var(--chip); color: var(--chipi); }
.badge-success, .badge-primary { background: var(--okbg); color: var(--brandd); }
.badge-warning { background: var(--wabg); color: var(--wai); }
.badge-danger { background: var(--erbg); color: var(--eri); }
.badge-neutral { background: var(--chip); color: var(--chipi); }
.avatar { background: var(--okbg); color: var(--brandd); }

/* ---- polja ---- */
.field label, .field-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field-hint { font-size: 13px; color: var(--mut); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]),
select {
  min-height: 42px; padding: 0 12px;
}
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]),
textarea, select {
  border: 1px solid var(--lines); border-radius: 10px;
  background-color: var(--card); color: var(--ink);
}
textarea { padding: 10px 12px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]):focus,
textarea:focus, select:focus {
  border-color: var(--brand); box-shadow: var(--ring);
}
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--brand); }
select option { background: var(--card); color: var(--ink); }
input[type=file]::file-selector-button { background: var(--card); border-color: var(--lines); }
input[type=file]::file-selector-button:hover { background: var(--bg); }
.switch { width: 44px; height: 26px; }
.switch .track { background: var(--swoff); }
.switch .track::before { width: 20px; height: 20px; left: 3px; top: 3px; box-shadow: none; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::before { transform: translateX(18px); }
.switch input:focus-visible + .track { outline-color: var(--brand); }

/* ---- zavihki in preklopniki ---- */
.segmented, .workspace-switcher, .site-admin-subnav { background: var(--bg); border-color: var(--line); }
.segmented button.active, .workspace-switcher button.active, .site-admin-subnav button.active {
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--lines);
}
.analytics-range { background: var(--card); }
.analytics-range button.active { background: var(--brand); color: var(--onbrand); }
.analytics-nav { background: var(--card); backdrop-filter: none; }
.analytics-nav button.active { background: var(--sel); color: var(--brandd); }
.error-tabs button.active { color: var(--ink); border-bottom-color: var(--brand); }
.plan-pill.active { background: var(--okbg); color: var(--brandd); border-color: var(--brandl); }
.feature-check:has(input:checked) { background: var(--sel); border-color: var(--brandl); }

/* ---- okna in obvestila ---- */
.modal-backdrop { background: rgba(15, 31, 26, .55); backdrop-filter: none; }
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; clip-path: none; box-shadow: var(--shadow-md);
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--deep); color: #fff; border: 0; border-radius: 12px;
  padding: 12px 16px; max-width: min(420px, calc(100vw - 32px));
}
.toast.error { background: #B93030; color: #fff; }
.toast.success { background: var(--deep); color: #fff; }

/* ---- posebne ploskve ---- */
.hero-panel {
  background: var(--sel); border: 1px solid var(--line); border-radius: 14px;
}
.admin-hero { background: var(--hero); border: 0; border-radius: 14px; color: #fff; }
.admin-hero p { color: rgba(255, 255, 255, .82); }
/* Nova podoba nima oznak nad naslovi; besedilo ostane v kodi, a se ne prikaže. */
.eyebrow { display: none; }
.custom-plugin-cta { background: var(--sel); border-color: var(--brandl); border-radius: 14px; }
.onboarding-contact-card { background: var(--sel); border-color: var(--line); }
.analytics-notice { background: var(--sel); border-color: var(--line); }
.api-key-reveal, .backup-safety-note { background: var(--okbg); border-color: var(--brandl); }
.check-card { border-radius: 14px; }
.check-card__mark { background: var(--card); border-color: var(--lines); }
.check-card.done { background: var(--sel); border-color: var(--brandl); }
.check-card.done .check-card__mark { background: var(--brand); color: var(--onbrand); border-color: var(--brand); }
.backup-timeline__card { border-radius: 14px; }
.backup-timeline__dot { border-color: var(--card); }
.code-panel { background: var(--deep); color: var(--n-700); border-color: transparent; }
.replay-player { background: var(--deep); border-color: transparent; }
.replay-event-strip button.active { border-color: var(--accent); }
.web-vitals span.good { background: var(--brand); }
.chart-legend .views::before { background: var(--brand); }
.chart-legend .sessions::before { background: var(--mut); }
.chart-legend .users::before { background: var(--wai); }
.analytics-metric { box-shadow: none; border-radius: 14px; }
.analytics-metric > strong { font-weight: 700; letter-spacing: -0.02em; }
.analytics-hourly i { background: var(--brandl); opacity: 1; }
.analytics-ranking-bar i { background: var(--brand); }
.live-pulse { animation-name: analytics-pulse; }

/* ---- izbira teme (Nastavitve) ---- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.theme-opt {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer;
}
.theme-opt:hover { background: var(--hover); }
.theme-opt:has(input:checked) { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; }
.theme-opt:has(input:focus-visible) { box-shadow: var(--ring); }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt__mini {
  display: flex; height: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg);
}
.theme-opt__mini i { flex: 0 0 34%; background: var(--side); border-right: 1px solid var(--sideb); }
.theme-opt__mini b { flex: 1; display: flex; padding: 8px; }
.theme-opt__mini em { flex: 1; display: block; border: 1px solid var(--line); border-radius: 4px; background: var(--card); border-bottom: 8px solid var(--brand); }
.theme-opt__name { font-weight: 600; }
.theme-opt__name small { display: block; font-weight: 400; color: var(--mut); font-size: 13px; }

/* ---- prijava ---- */
.login-page { display: flex; flex-wrap: wrap; min-height: 100vh; min-height: 100dvh; background: var(--card); }
.login-form-side {
  flex: 1 1 440px; min-width: 0; display: flex; align-items: center; justify-content: center;
  padding: 32px clamp(20px, 4vw, 48px);
}
.login-card { width: 100%; max-width: 380px; }
.login-brand { margin-bottom: 40px; font: 700 20px var(--font-display); letter-spacing: -0.02em; }
.login-card h1 { font-size: 32px; margin-bottom: 6px; }
.login-hero {
  flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(24px, 5vw, 64px); background: var(--hero); color: #fff;
}
.login-hero h2 { color: #fff; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; max-width: 460px; margin-bottom: 32px; }
.login-hero dl { margin: 0; max-width: 560px; }
.login-hero dl > div { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.login-hero dl > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.login-hero dt { flex: 0 0 150px; font: 600 16px var(--font-display); color: #fff; }
.login-hero dd { margin: 0; color: #B9D6C8; }

/* ---- telefon in tablica ---- */
@media (max-width: 1050px) {
  .content { padding: 24px 24px 40px; }
}

@media (max-width: 820px) {
  .login-hero { display: none; }
  .login-form-side { padding: 24px 16px; }
}

@media (max-width: 820px) {
  :root { --topbar-h: 60px; --bottom-nav-h: 64px; }
  #app-shell { grid-template-columns: minmax(0, 1fr); }
  body { font-size: 15px; }
  h1 { font-size: 22px; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]),
  textarea, select { font-size: 16px; }

  .sidebar {
    width: min(300px, 86vw); max-width: none;
    background: var(--side); background-image: none;
    box-shadow: none; padding: 14px 12px;
  }
  .sidebar-backdrop { background: rgba(15, 31, 26, .55); }
  .sidebar__close { display: inline-flex; }
  .sidebar__close:hover:not(:disabled) { background: var(--sidehov); color: var(--sidehi); }
  .nav-item { min-height: 44px; }

  .topbar, .topbar:has(#staff-mode-switcher:empty) {
    display: flex; position: sticky; top: 0; z-index: 30;
    min-height: 60px; height: auto; padding: 8px 12px; gap: 8px;
    background: var(--card); color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .topbar .text-muted { color: var(--mut); }
  .topbar .badge { background: var(--okbg); color: var(--brandd); }
  .topbar .btn-secondary { border-color: var(--lines); }
  .topbar-brand {
    display: block; min-width: 0;
    font: 700 19px var(--font-display); letter-spacing: -0.02em;
  }
  .menu-btn { min-width: 44px; min-height: 44px; }
  body:has(#staff-mode-switcher:not(:empty)) { --topbar-h: 60px; }

  .content { padding: 16px 16px calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 24px); }
  .card { padding: 16px; }
  .stat-card__value { font-size: 28px; }
  .stat-card__value--text { font-size: 17px; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--card); border-top: 1px solid var(--line);
  }
  .bottom-nav__item {
    flex: 1 1 0; min-width: 0; min-height: var(--bottom-nav-h);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 4px 2px; border: 0; background: none; cursor: pointer;
    color: var(--mut); font: 600 11.5px var(--font-body);
  }
  .bottom-nav__item svg { width: 22px; height: 22px; }
  .bottom-nav__item span {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .bottom-nav__item.active { color: var(--brandd); }
  #toast-root { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 12px); left: 16px; right: 16px; }
  .toast { max-width: none; }
}

@media (max-width: 520px) {
  /* components.css ima tu width: 100% skupaj z levim robom, zato je gumb segel čez rob kartice. */
  .check-card__action { width: calc(100% - 42px); }
  .btn:not(.btn-sm):not(.btn-icon) { min-height: 48px; }
  .overview-stats .stat-card__value, .admin-stats .stat-card__value { font-size: 28px; }
  .overview-stats .stat-card__value--text, .admin-stats .stat-card__value--text { font-size: 15px; }
  .modal { padding: 18px; border-radius: 16px; }
}

@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm, .btn-icon { min-height: 44px; min-width: 44px; }
}

/* Najmanj gibanja: edina animacija je utripajoča oznaka V živo, ki jo
 * tokens.css pri prefers-reduced-motion že ustavi. */

/* ---- postavitev po predlogi: glava strani, trak kazalnikov, kartice z ločnico ---- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 20px; margin-bottom: 20px;
}
.page-head p { margin: 2px 0 0; }
.content > .route-host > h1:first-child, .content > .route-host > .page-head h1 { margin-bottom: 4px; }

/* Naslov kartice je ločen od vsebine s tanko črto čez celotno širino kartice.
 * Kartice z lastnim notranjim robom (inline padding) ostanejo, kot so bile. */
.card > .card-header:first-child {
  margin: -20px -20px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line2);
}
.card[style*="padding"] > .card-header:first-child {
  margin: 0 0 16px; padding: 0; border-bottom: 0;
}
.card-header h3 { margin: 0; }
.card-header a { font-weight: 600; font-size: 14px; }

/* Štirje kazalniki v eni karti, ločeni s črtami. */
.overview-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px;
  margin-bottom: 20px; overflow: hidden;
  background: var(--line2); border: 1px solid var(--line); border-radius: 14px;
}
.overview-stats .stat-card { border: 0; border-radius: 0; background: var(--card); padding: 20px 24px; }
.overview-stats .stat-card__value { font-size: 36px; }
.dashboard-grid { margin-bottom: 20px; }
.dashboard-grid:last-child { margin-bottom: 0; }

.big-count { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.big-count b { font: 700 30px var(--font-display); letter-spacing: -0.015em; }
.seg { display: flex; gap: 4px; }
.seg i { flex: 1; height: 8px; border-radius: 4px; background: var(--track); }
.seg i.f { background: var(--brand); }

.msg-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line2); color: inherit;
}
.msg-row:last-child { border-bottom: 0; }
.msg-row:hover { text-decoration: none; background: var(--hover); }
.msg-row .avatar { width: 38px; height: 38px; font-size: 13px; background: var(--chip); color: var(--chipi); }
.msg-row__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.msg-row__text strong, .msg-row__text small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-row__text small { color: var(--mut); font-size: 14px; }
.msg-row__time { font-size: 13px; white-space: nowrap; }

/* Preklopniki so zavihki s podčrtom, ne več tablete v škatli. */
.segmented, .site-admin-subnav {
  display: flex; gap: 4px; padding: 0; background: none; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line2); overflow-x: auto; max-width: 100%;
}
.segmented button, .site-admin-subnav button {
  border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 11px 12px; color: var(--mut); white-space: nowrap; background: none;
}
.segmented button:hover, .site-admin-subnav button:hover { color: var(--ink); }
.segmented button.active, .site-admin-subnav button.active {
  background: none; box-shadow: none; color: var(--ink); border-bottom-color: var(--brand);
}
.site-admin-subnav { margin-bottom: 20px; }

@media (max-width: 820px) {
  .card > .card-header:first-child { margin: -16px -16px 14px; padding: 14px 16px; }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-stats .stat-card { padding: 16px; }
  .overview-stats .stat-card__value { font-size: 28px; }
}

/* ---- Urejanje strani: stran na laptopu ---- */
.visual-hint {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
}
.visual-hint p { margin: 0; }
.visual-hint__sample { text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.visual-hint__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.visual-note { margin: 12px 0 0; }
.laptop { width: min(100%, 1180px); margin: 0 auto; }
.laptop__lid {
  padding: 12px 12px 14px; background: #1b1d21; border-radius: 18px 18px 6px 6px;
  border: 1px solid #3a3d43;
}
.laptop__screen { overflow: hidden; border-radius: 6px; background: #fff; }
.laptop__bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: #eceef0; color: #4a5056; font-size: 12px;
}
.laptop__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c7ccd1; }
.laptop__bar span {
  margin-left: 10px; flex: 1; max-width: 360px; padding: 2px 10px; border-radius: 99px;
  background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.laptop__view { position: relative; overflow: hidden; background: #fff; }
.laptop__view iframe {
  position: absolute; top: 0; left: 0; border: 0; background: #fff;
  transform-origin: top left;
}
.laptop__base {
  height: 16px; margin: 0 -2.5%; border-radius: 0 0 22px 22px;
  background: #c9cdd2;
}

/* Telefon namesto laptopa: ožje ohišje, brez naslovne vrstice in podstavka. */
.laptop[data-device="phone"] { width: min(100%, 360px); }
.laptop[data-device="phone"] .laptop__lid { padding: 12px; border-radius: 38px; }
.laptop[data-device="phone"] .laptop__screen { border-radius: 26px; }
.laptop[data-device="phone"] .laptop__bar, .laptop[data-device="phone"] .laptop__base { display: none; }
@media (max-width: 820px) {
  .laptop__lid { padding: 8px 8px 10px; border-radius: 14px 14px 4px 4px; }
  .visual-hint__actions { width: 100%; }
}

/* ---- tipkovnica na telefonu (core/keyboard.js nastavi --kb) ---- */
input, textarea, select { scroll-margin-block: 96px; }
body.kb-open .bottom-nav { display: none; }
.modal-backdrop { padding-bottom: calc(var(--sp-4) + var(--kb, 0px)); }
.modal { max-height: calc(100dvh - 2 * var(--sp-4) - var(--kb, 0px)); }
@media (max-width: 820px) {
  .content { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 24px + var(--kb, 0px)); }
}

/* Ena sama kartica v vrsti zapolni vso širino, brez praznega stolpca. */
.dashboard-grid > :only-child { grid-column: 1 / -1; }

.rank-row { padding: 8px 0; }
.rank-row > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rank-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rank-row small { color: var(--mut); font-weight: 400; }
.rank-row i { display: block; height: 6px; border-radius: 3px; background: var(--brand); }

/* ---- Atributi: kartice, predogled vrednosti in urejevalnik seznama ---- */
.attr-api { margin-bottom: 20px; padding: 14px 16px; }
.attr-api summary, .attr-advanced summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.attr-group { margin-bottom: 28px; }
.attr-group > h2 { font: 700 15px var(--font-display); color: var(--mut); margin: 0 0 10px; }
.attr-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.attr-card--list, .attr-card--gallery { grid-column: 1 / -1; }
.attr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card, 14px); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.attr-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.attr-card h3 { margin: 0; font-size: 16px; }
.attr-card header p { margin: 2px 0 0; font-size: 13px; color: var(--mut); }
.attr-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line2); font-size: 12px; color: var(--mut); }
.attr-text { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.attr-image { max-width: 220px; max-height: 140px; border-radius: 10px; object-fit: cover; }
.attr-thumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.attr-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.attr-more { font-size: 13px; color: var(--mut); font-weight: 600; }
.attr-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.attr-mini { background: var(--hover); border: 1px solid var(--line2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attr-mini__img { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.attr-mini strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attr-mini small { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attr-mini--more { align-items: center; justify-content: center; color: var(--mut); font-weight: 600; }
.attr-presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* urejevalnik kartic (stranka) */
.li-list { display: grid; gap: 8px; margin-bottom: 10px; }
.li { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.li[open] { border-color: var(--lines); }
.li summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; cursor: pointer; }
.li summary::-webkit-details-marker { display: none; }
.li__thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--track); display: grid; place-items: center; }
.li__thumb img { width: 100%; height: 100%; object-fit: cover; }
.li__ph { display: grid; place-items: center; color: var(--mut); }
.li__ph--lg { width: 96px; height: 72px; border-radius: 10px; background: var(--track); }
.li__title { flex: 1; min-width: 0; display: grid; }
.li__title strong, .li__title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li__title small { color: var(--mut); font-size: 12.5px; }
.li__tools { display: flex; gap: 2px; flex: none; }
.li__tools .btn { min-width: 36px; min-height: 36px; padding: 0; }
.li__del:hover { color: var(--eri); }
.li__body { padding: 4px 14px 14px; border-top: 1px solid var(--line2); display: grid; gap: 2px; }
.li__body .field { margin-top: 12px; }
.li__switch { margin-top: 14px; }
.li__imagebox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.li__imagebox img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.li__imageactions { display: flex; gap: 6px; flex-wrap: wrap; }
.li__add { width: 100%; }
@media (max-width: 520px) {
  .li__tools .btn { min-width: 32px; }
  .li__tools [data-act="copy"] { display: none; }
}

/* urejevalnik polj (skrbnik) */
.sc-list { display: grid; gap: 6px; margin-bottom: 8px; }
.sc-row { display: grid; grid-template-columns: 1fr minmax(120px, 160px) auto auto auto; gap: 6px; align-items: center; }
.sc-row .btn { min-width: 36px; min-height: 36px; padding: 0; }
@media (max-width: 520px) {
  .sc-row { grid-template-columns: 1fr 1fr; }
  .sc-row .sc-label { grid-column: 1 / -1; }
}
.attr-advanced { margin-bottom: 4px; }

/* ---- dvostopenjska prijava: sredinska kartica ---- */
.auth-center {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 420px; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px 28px;
}
.auth-card--wide { max-width: 520px; }
.auth-brand { font: 700 18px var(--font-display); letter-spacing: -0.02em; margin-bottom: 22px; }
.auth-icon, .auth-modal .auth-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--sel); color: var(--brandd);
}
.auth-card h1 { font-size: 24px; margin: 0 0 8px; }
.auth-card > p { margin: 0 0 24px; }
.auth-card .field { text-align: left; }
.auth-card .field label { text-align: left; }
.auth-card .btn-primary { width: 100%; }
.auth-foot { margin-top: 18px; }
.auth-card form .flex.justify-between { justify-content: space-between; }
.code-input {
  text-align: center; font: 600 28px var(--font-mono); letter-spacing: .5em; padding-left: calc(.5em + 14px);
  min-height: 56px;
}
.code-input::placeholder { letter-spacing: .3em; font-weight: 400; opacity: .4; }
.auth-modal { text-align: center; padding: 8px 4px 0; }
.auth-modal h2 { margin: 0 0 6px; font-size: 22px; }
.auth-modal p { margin: 0 0 20px; }
.auth-modal .field { text-align: left; }
.auth-actions { display: flex; gap: 8px; margin-top: 4px; }
.auth-actions .btn { flex: 1; }
@media (max-width: 520px) {
  .auth-card { padding: 28px 18px 22px; border-radius: 16px; }
  .code-input { font-size: 24px; }
}

/* razdelki: več seznamov v enem atributu */
.sec-list { display: grid; gap: 14px; margin-bottom: 10px; }
.sec { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--hover); display: grid; gap: 8px; }
.sec__head { display: flex; gap: 8px; align-items: center; }
.sec__title { flex: 1; min-width: 0; font-weight: 700; }
.sec__note { font-size: 13px; }
.sc-options { grid-column: 1 / -1; }
.attr-sections { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.attr-sec { background: var(--hover); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.attr-sec span { font-size: 12.5px; color: var(--mut); }
.attr-sec small { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attr-sec--more { place-items: center; color: var(--mut); font-weight: 600; }
.attr-card--sections { grid-column: 1 / -1; }
.auth-card #mfa-body > .flex { flex-direction: column; align-items: stretch; }
.auth-card #mfa-body .btn-ghost { align-self: center; }

/* pravni dokumenti: seznam in veliko okno za branje */
.legal-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; color: var(--ink); font: inherit; transition: border-color .15s, background .15s; }
.legal-row:hover { border-color: var(--brand); background: var(--hover); }
.legal-row__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--hover); display: grid; place-items: center; color: var(--mut); }
.legal-row__icon svg { width: 22px; height: 22px; }
.legal-row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.legal-row__main small { color: var(--mut); }
.legal-row__excerpt { color: var(--mut); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.legal-doc { max-width: 960px; min-height: min(80dvh, 760px); display: flex; flex-direction: column; gap: 14px; }
.legal-doc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.legal-doc__title { margin: 0; }
.legal-doc__meta { margin: 2px 0 0; font-size: 13px; }
.legal-doc__modes { align-self: flex-start; overflow: visible; flex: none; }
.legal-doc__pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.legal-doc__pane[hidden] { display: none; }
.legal-paper { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.7; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 4vw, 40px); }
.legal-paper.is-empty { color: var(--mut); }
.legal-frame { flex: 1; width: 100%; min-height: 60dvh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
