/* moj.specter.si
 * Brez ogrodij: CSS spremenljivke (svetla/temna tema), grid/flex, <dialog>, prilagodljivo za telefon. */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --text: #1b1f27;
    --muted: #6a7282;
    --border: #e3e6eb;
    --accent: #3d5a80;
    --accent-strong: #2c4566;
    --accent-soft: #e8eef6;
    --accent-text: #ffffff;
    --danger: #c0392b;
    --danger-soft: #fbeaea;
    --ok: #2e8a57;
    --ok-soft: #e5f4ec;
    --warn: #b7791f;
    --warn-soft: #fbf1df;
    --today: #2e8a57;
    --upcoming: #3d6fb4;
    --past: #9a6b1f;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar: 248px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1e232b;
    --text: #e7eaf0;
    --muted: #949cab;
    --border: #2a303a;
    --accent: #8fb0dc;
    --accent-strong: #b4cbea;
    --accent-soft: #1f2a3a;
    --accent-text: #0f1216;
    --danger: #f08a7e;
    --danger-soft: #3a1e1c;
    --ok: #6fcf97;
    --ok-soft: #173025;
    --warn: #e7b85c;
    --warn-soft: #33291a;
    --today: #6fcf97;
    --upcoming: #8fb0dc;
    --past: #e7b85c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; font-weight: 650; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- ogrodje strani ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--surface); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: .95rem;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.nav-section { margin: 14px 10px 6px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0;
    border-radius: var(--radius-sm); color: var(--text); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent-strong); }
.nav a .icon { color: var(--muted); }
.nav a.active .icon { color: var(--accent-strong); }
.nav .count { margin-left: auto; font-size: .75rem; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--ok-soft); color: var(--today); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 12px; padding: 10px 28px;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar .context { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
    border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
    font-size: .8rem; color: var(--muted); white-space: nowrap;
}
.chip b { color: var(--text); font-weight: 600; }
.topbar .spacer { flex: 1; }
.icon-button {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-button:hover { background: var(--surface-2); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-button { display: none; }
.user-menu { position: relative; }
.user-menu summary {
    list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
}
.user-menu summary::-webkit-details-marker { display: none; }
.avatar {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: .75rem;
}
.user-menu .menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.user-menu .menu .who { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-menu .menu a, .user-menu .menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
    color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left;
}
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface-2); text-decoration: none; }

.content { padding: 26px 28px 48px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .subtitle { color: var(--muted); margin-top: 4px; }

/* ---------- kartice, števci ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head .hint { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.card-body { padding: 18px 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--text);
}
a.stat:hover { text-decoration: none; border-color: var(--tone); }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tone); }
.stat .stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.stat .stat-icon .icon { width: 22px; height: 22px; }
.stat .value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--muted); font-size: .85rem; }
.tone-today { --tone: var(--today); }
.tone-upcoming { --tone: var(--upcoming); }
.tone-past { --tone: var(--past); }
.tone-accent { --tone: var(--accent); }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td.name { font-weight: 600; }
.date-cell { display: flex; flex-direction: column; line-height: 1.3; }
.date-cell .time { color: var(--muted); font-size: .85rem; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.actions-cell { text-align: right; white-space: nowrap; }
.row-action {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
    color: var(--muted); background: none; border: 0; cursor: pointer;
}
.row-action:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.row-action.danger:hover { background: var(--danger-soft); color: var(--danger); }
form.inline { display: inline; margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge.today { background: var(--ok-soft); color: var(--today); }
.badge.upcoming { background: var(--accent-soft); color: var(--upcoming); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.pager .button { padding: 6px 12px; }

.tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.tabs a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .9rem; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- gumbi ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--surface-2); text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.button.danger:hover { background: var(--danger-soft); }
.button:disabled { opacity: .6; cursor: default; }
.button-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- obrazci ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field .counter { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.field .counter.low { color: var(--warn); }
input, select, textarea {
    width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; margin: 5px 0 0; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-right: 40px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 4px 0 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font-weight: 650; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.divider { height: 1px; background: var(--border); margin: 8px 0 18px; border: 0; }
.checks { display: grid; gap: 4px; margin-bottom: 12px; }

/* ---------- obvestila na strani ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid transparent; }
.notice.info { background: var(--accent-soft); color: var(--accent-strong); }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice .icon { margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- drsna sporočila (toast) ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--ok);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    animation: toast-in .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.error { border-left-color: var(--danger); }
.toast.sticky { border-left-color: var(--warn); }
.toast.leaving { animation: toast-out .3s ease forwards; }
.toast > .icon { color: var(--ok); margin-top: 2px; }
.toast.error > .icon { color: var(--danger); }
.toast.sticky > .icon { color: var(--warn); }
.toast .toast-text { flex: 1; word-break: break-word; }
.toast .close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
@keyframes toast-in { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(110%); opacity: 0; } }

/* ---------- modalno okno ---------- */
dialog.modal {
    width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0;
    border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-lg);
}
dialog.modal[open] { animation: modal-in .2s ease-out; }
dialog.modal::backdrop { background: rgba(10, 14, 20, .5); backdrop-filter: blur(2px); }
@keyframes modal-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px 20px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }

/* ---------- izbirnik ure (številčnica) ---------- */
.clock-pop {
    position: fixed; z-index: 1000; width: 280px; padding: 14px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
    user-select: none;
}
.clock-head { display: flex; justify-content: center; align-items: center; gap: 2px; font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.clock-head button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0 8px; border-radius: 10px; cursor: pointer; }
.clock-head button.active { color: var(--accent-strong); background: var(--accent-soft); }
.clock-face { position: relative; width: 248px; height: 248px; margin: 0 auto; border-radius: 50%; background: var(--surface-2); touch-action: none; }
.clock-hand { position: absolute; left: 50%; bottom: 50%; width: 2px; margin-left: -1px; background: var(--accent); transform-origin: 50% 100%; pointer-events: none; border-radius: 2px; }
.clock-center { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); }
.clock-num {
    position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
    display: grid; place-items: center; font: inherit; font-size: .92rem; font-weight: 500; color: var(--text);
    background: none; border: 0; cursor: pointer; font-variant-numeric: tabular-nums; padding: 0;
}
.clock-num.inner { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: .78rem; color: var(--muted); }
.clock-num:hover { background: var(--accent-soft); }
.clock-num.selected { background: var(--accent); color: var(--accent-text); }
.clock-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.clock-foot .button { padding: 7px 12px; }

/* ---------- prijava ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, var(--accent-soft), transparent), var(--bg); }
.login-card { width: 100%; max-width: 400px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); }
.login-card .brand { padding: 0 0 22px; }
.login-card h1 { font-size: 1.35rem; margin-bottom: 4px; }
.login-card .button { width: 100%; margin-top: 6px; padding: 11px; }
.login-theme { position: fixed; top: 16px; right: 16px; }

/* ---------- telefon ---------- */
@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 50; left: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .menu-button { display: inline-grid; }
    .topbar { padding: 10px 16px; }
    .topbar .context { display: none; }
    .content { padding: 18px 16px 40px; }
    .form-grid, .form-grid.three { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .user-menu .user-name { display: none; }
    th.hide-sm, td.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Barvna plast: umirjeni barvni poudarki na minimalistični osnovi.
   ===================================================================== */
:root {
    --accent: #4b5bd6;
    --accent-strong: #3a48b8;
    --accent-soft: #eef0fd;
    --today: #15803d;
    --upcoming: #2563eb;
    --past: #c2700a;
    --sidebar-bg: #1d2238;
    --bg: #f5f6fa;
    --shadow-lg: 0 8px 24px rgba(16, 24, 40, .12);
}
:root[data-theme="dark"] {
    --accent: #8d9cff;
    --accent-strong: #b3bdff;
    --accent-soft: #222746;
    --today: #4ade80;
    --upcoming: #7aa2ff;
    --past: #f2b44c;
    --sidebar-bg: #141826;
    --bg: #0e1118;
}

/* stranska vrstica: umirjena temna */
.sidebar { background: var(--sidebar-bg); border-right: 0; color: #e6e8f5; }
.sidebar .brand { color: #fff; }
.sidebar .brand small { color: rgba(230, 232, 245, .55); }
.brand-mark { background: var(--accent); color: #fff; }
.sidebar .nav-section { color: rgba(230, 232, 245, .45); }
.sidebar .nav a { color: rgba(236, 238, 250, .85); position: relative; }
.sidebar .nav a .icon { color: rgba(200, 205, 235, .6); }
.sidebar .nav a:hover { background: rgba(255, 255, 255, .06); }
.sidebar .nav a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar .nav a.active .icon { color: #c7cdff; }
.sidebar .nav a.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar .muted { color: rgba(230, 232, 245, .55); }

/* zgornja vrstica */
.chip:first-child { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.chip:first-child b { color: var(--accent-strong); }
.avatar { background: var(--accent-soft); color: var(--accent-strong); }

/* kartice s števci: svetle, barvna ikona in številka */
.stat { box-shadow: none; }
.stat::before { width: 3px; }
.stat .stat-icon { background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--tone); }
.stat .value { color: var(--tone); }
a.stat:hover { border-color: color-mix(in srgb, var(--tone) 45%, var(--border)); }

/* kartice in tabele */
.card { box-shadow: none; }
.card-head { position: relative; }
.card-head::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
#pretekli .card-head::before { background: var(--past); }
th { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.row-action:hover { background: var(--accent-soft); color: var(--accent); }

/* gumbi: polna barva, brez sijaja */
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
:root[data-theme="dark"] .button.primary { color: #0f1216; }

/* značke */
.badge.today { background: color-mix(in srgb, var(--today) 14%, transparent); color: var(--today); }
.badge.upcoming { background: color-mix(in srgb, var(--upcoming) 14%, transparent); color: var(--upcoming); }

/* modalno okno, oznake sklopov */
legend { color: var(--accent); }

/* izbirnik ure */
.clock-num.selected, .clock-head button.active { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .clock-num.selected, :root[data-theme="dark"] .clock-head button.active { color: #0f1216; }

/* prijava: rahel barvni odtenek */
.login-page { background: radial-gradient(900px 500px at 15% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.login-card { box-shadow: var(--shadow); }

/* drsna sporočila */
.toast { border-left-color: var(--today); }
.toast > .icon { color: var(--today); }

/* telefon: zgornja vrstica v barvi menija */
@media (max-width: 900px) {
    .topbar { background: var(--sidebar-bg); border-bottom: 0; }
    .topbar .icon-button, .topbar .user-menu summary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #fff; }
}

/* ---------- zasloni ---------- */
.link-row { display: flex; gap: 8px; margin-bottom: 14px; }
.link-row input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; color: var(--muted); }
.display-actions { justify-content: flex-start; }
.inline-checks { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.inline-checks .check { margin: 0; }
@media (max-width: 900px) { .link-row { flex-wrap: wrap; } .link-row input { flex-basis: 100%; } }

/* ---------- šifrant krajev ---------- */
.place-filters { flex-wrap: wrap; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { padding: 6px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 550; }
.tab:hover { background: var(--surface-2); }
.tab.on { background: var(--accent-soft); color: var(--accent-strong); }
.search-row { display: flex; gap: 8px; }
.search-row input { min-width: 0; width: 220px; }
.place-preview { min-height: 1.4em; color: var(--muted); margin: 0 0 14px; }
.place-preview b { color: var(--text); }

/* izbirnik kraja v osmrtnici */
.place-picker { position: relative; }
.place-results {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 10px); margin: 0; padding: 4px; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    max-height: 280px; overflow-y: auto;
}
.place-results li { padding: 8px 10px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.place-results li[aria-selected="true"], .place-results li:hover { background: var(--accent-soft); }
.place-results .muted { font-size: .85rem; }
.place-results .new { color: var(--accent-strong); font-weight: 600; }
.place-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 14px; }
.place-chosen .phrase { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; }
.place-manual[hidden] { display: none; }
