/* Skopušnik — Material Design 3, slog Google Admin */
:root {
  --bg: #f8f9fa; --surface: #ffffff; --surface-variant: #f1f3f4; --outline: #dadce0;
  --primary: #1a73e8; --primary-hover: #1967d2; --primary-container: #e8f0fe; --on-primary: #ffffff;
  --text: #202124; --text-2: #5f6368; --text-3: #80868b;
  --success: #1e8e3e; --warning: #f9ab00; --error: #d93025;
  --green-bg: #e6f4ea; --green-fg: #137333; --orange-bg: #feefe3; --orange-fg: #b06000;
  --red-bg: #fce8e6; --red-fg: #c5221f; --blue-bg: #e8f0fe; --blue-fg: #174ea6; --grey-bg: #f1f3f4; --grey-fg: #5f6368;
  --pos: #137333; --neg: #c5221f;
  --s1: #1a73e8; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --grid: #e8eaed;
  --shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --track: #f1f3f4; --hover: #f1f3f4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131314; --surface: #1f1f1f; --surface-variant: #2a2a2b; --outline: #444746;
    --primary: #8ab4f8; --primary-hover: #aecbfa; --primary-container: #1e3a5f; --on-primary: #062e6f;
    --text: #e3e3e3; --text-2: #c4c7c5; --text-3: #9aa0a6;
    --green-bg: #0f3d22; --green-fg: #81c995; --orange-bg: #4a2c0a; --orange-fg: #fcc977;
    --red-bg: #4c1d1a; --red-fg: #f6aea9; --blue-bg: #1e3a5f; --blue-fg: #aecbfa; --grey-bg: #2a2a2b; --grey-fg: #c4c7c5;
    --pos: #81c995; --neg: #f6aea9;
    --s1: #4a8ae6; --s2: #e0622f; --s3: #1baf7a; --s4: #bd8300; --grid: #333537;
    --shadow: 0 1px 2px rgba(0,0,0,.6), 0 1px 3px 1px rgba(0,0,0,.3);
    --track: #333537; --hover: #2a2a2b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131314; --surface: #1f1f1f; --surface-variant: #2a2a2b; --outline: #444746;
  --primary: #8ab4f8; --primary-hover: #aecbfa; --primary-container: #1e3a5f; --on-primary: #062e6f;
  --text: #e3e3e3; --text-2: #c4c7c5; --text-3: #9aa0a6;
  --green-bg: #0f3d22; --green-fg: #81c995; --orange-bg: #4a2c0a; --orange-fg: #fcc977;
  --red-bg: #4c1d1a; --red-fg: #f6aea9; --blue-bg: #1e3a5f; --blue-fg: #aecbfa; --grey-bg: #2a2a2b; --grey-fg: #c4c7c5;
  --pos: #81c995; --neg: #f6aea9;
  --s1: #4a8ae6; --s2: #e0622f; --s3: #1baf7a; --s4: #bd8300; --grid: #333537;
  --shadow: 0 1px 2px rgba(0,0,0,.6), 0 1px 3px 1px rgba(0,0,0,.3);
  --track: #333537; --hover: #2a2a2b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 14px/1.5 "Roboto Condensed", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 28px; font-weight: 400; margin: 0; line-height: 36px; }
h2 { font-size: 22px; font-weight: 400; margin: 0 0 16px; }
h3 { font-size: 16px; font-weight: 500; margin: 0; }
.muted { color: var(--text-2); font-size: 13px; }
.caption { color: var(--text-3); font-size: 12px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 20px;
  line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20; user-select: none;
}

/* Ogrodje */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px; background: var(--surface);
  border-bottom: 1px solid var(--outline); display: flex; align-items: center; gap: 8px; padding: 0 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; min-width: 216px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--primary); display: grid; place-items: center; }
.logo-mark .ms { color: var(--surface); font-size: 18px; }
.mascot { display: block; height: auto; }
.topbar .mascot { height: 44px; width: auto; margin: 0 2px 0 -6px; }
.login-card .mascot { width: 140px; margin: -8px auto 8px; }
.empty .mascot { width: 120px; margin: 0 auto 8px; }
.search { flex: 1; max-width: 720px; margin: 0 auto; position: relative; }
.search input, .search input[type=search] {
  width: 100%; height: 48px; border-radius: 24px; border: 0; background: var(--surface-variant);
  padding: 0 20px 0 52px; font: inherit; font-size: 16px; color: var(--text);
}
.search input:focus { background: var(--surface); box-shadow: var(--shadow); outline: none; }
.search .ms { position: absolute; left: 16px; top: 14px; color: var(--text-2); }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2);
  display: inline-grid; place-items: center; cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--hover); text-decoration: none; }
.badge {
  position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--error); color: #fff; font-size: 11px; line-height: 16px; font-weight: 500;
}
.account-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid var(--outline); color: var(--text); font-size: 14px; background: var(--surface);
}
.account-pill .ms { color: var(--text-2); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #7b1fa2; color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 500; margin-left: 4px;
}
.layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 256px; flex-shrink: 0; padding: 8px 12px 24px 0; position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; transition: width .2s ease-out;
}
.nav-item {
  display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 16px 0 24px; margin: 1px 0;
  border-radius: 0 20px 20px 0; color: var(--text); font-size: 14px; font-weight: 500;
}
.nav-item .ms { color: var(--text-2); font-size: 22px; }
.nav-item:hover { background: var(--hover); text-decoration: none; }
.nav-item.active { background: var(--primary-container); color: var(--blue-fg); }
.nav-item.active .ms { color: var(--primary); font-variation-settings: "FILL" 1; }
.nav-group { padding: 16px 24px 4px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.nav-sub { padding-left: 62px; font-weight: 400; }
body.rail .sidebar { width: 72px; }
body.rail .nav-item span:not(.ms), body.rail .nav-group { display: none; }
body.rail .nav-item { padding: 0 0 0 24px; }
.content { flex: 1; min-width: 0; padding: 24px; max-width: 1360px; }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .spacer { flex: 1; }
.disclaimer {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-2); margin-top: 32px;
  padding-top: 16px; border-top: 1px solid var(--outline);
}
.footer { padding: 8px 0 0; }
.link-btn { border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 0; }
.link-btn:hover { color: var(--text-2); text-decoration: underline; }

/* Kartice */
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-3-1 { grid-template-columns: 2fr 1fr; }
.card { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); padding: 20px 24px; min-width: 0; }
.card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 36px; }
.card-head .spacer { flex: 1; }
.card-head .muted { margin: 0; }
.sub-card { border: 1px solid var(--outline); border-radius: 12px; padding: 16px; }
.mb { margin-bottom: 16px; }
.kpi { padding: 16px 20px; }
.kpi .label { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .label .ms { font-size: 18px; }
.kpi .value { font-size: 28px; line-height: 36px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 13px; margin-top: 2px; }
.kpi-click { cursor: pointer; transition: box-shadow .15s ease-out; }
.kpi-click:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 24px; }
.fact .k { font-size: 12px; color: var(--text-2); }
.fact .v { font-size: 16px; font-variant-numeric: tabular-nums; }

/* Gumbi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 20px;
  border-radius: 18px; border: 1px solid var(--outline); background: var(--surface); color: var(--primary);
  font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s ease-out;
}
.btn .ms { font-size: 18px; }
.btn:hover { background: var(--primary-container); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow); }
.btn-text { border-color: transparent; background: transparent; padding: 0 12px; }
.btn-danger { color: var(--error); border-color: var(--outline); }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
form.inline { display: inline; }

/* Čipi in značke */
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 8px; border-radius: 12px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.pill .ms { font-size: 16px; }
.pill-green { background: var(--green-bg); color: var(--green-fg); }
.pill-orange { background: var(--orange-bg); color: var(--orange-fg); }
.pill-red { background: var(--red-bg); color: var(--red-fg); }
.pill-blue { background: var(--blue-bg); color: var(--blue-fg); }
.pill-grey { background: var(--grey-bg); color: var(--grey-fg); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px;
  border: 1px solid var(--outline); color: var(--text-2); font-size: 13px; font-weight: 500; background: var(--surface);
}
.chip:hover { background: var(--hover); text-decoration: none; }
.chip.on { background: var(--primary-container); border-color: transparent; color: var(--blue-fg); }
.chip.on .ms { font-size: 16px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; padding: 0 8px; border-radius: 10px; background: var(--grey-bg); color: var(--grey-fg); font-size: 11px; line-height: 20px; font-weight: 500; }

/* Orodna vrstica in polja */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.field-search { position: relative; }
.field-search input, .field-search input[type=search] { padding-left: 40px; width: 280px; }
.field-search .ms { position: absolute; left: 12px; top: 8px; color: var(--text-2); }
input[type=text], input[type=number], input[type=password], input[type=tel], input[type=search], select, textarea {
  height: 40px; border: 1px solid var(--outline); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--surface); min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.form-grid input, .form-grid select { width: 100%; }
.errorlist { color: var(--error); font-size: 12px; margin: 4px 0 0; padding: 0; list-style: none; }

/* Tabele */
.table-wrap { overflow-x: auto; margin: 0 -24px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 500; font-size: 13px;
  color: var(--text-2); height: 48px; padding: 0 12px; border-bottom: 1px solid var(--outline); white-space: nowrap;
}
table.data td { height: 48px; padding: 6px 12px; border-bottom: 1px solid var(--outline); vertical-align: middle; }
table.data th:first-child, table.data td:first-child { padding-left: 24px; }
table.data th:last-child, table.data td:last-child { padding-right: 24px; }
table.data tr.click { cursor: pointer; }
table.data tbody tr:hover { background: var(--hover); }
table.data .r { text-align: right; }
table.data th a { color: inherit; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-main .t { font-weight: 500; color: var(--text); }
.cell-main .s { font-size: 12px; color: var(--text-2); }
.type-ico {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--blue-bg); color: var(--blue-fg);
}
.type-ico .ms { font-size: 18px; }
.type-stock { background: var(--orange-bg); color: var(--orange-fg); }
.type-crypto { background: var(--grey-bg); color: var(--grey-fg); }
.type-bond, .type-cash { background: var(--green-bg); color: var(--green-fg); }
.empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.empty > .ms { font-size: 40px; color: var(--text-3); display: block; margin: 0 auto 8px; }
.empty .actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 12px; color: var(--text-2); font-size: 13px; }

/* Stolpci uporabe */
.bar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--s1); }
.bar.bar-orange > i { background: var(--warning); } .bar.bar-red > i { background: var(--error); }
.bar .target { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--text); border-radius: 1px; }
.hbar-list { display: grid; gap: 14px; }
.hbar .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; }
.hbar .row .v { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Seznami in opozorila */
.list { list-style: none; margin: 0 -24px; padding: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 24px; border-top: 1px solid var(--outline); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 500; }
.list .d { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert .ms { margin-top: 1px; }
.alert-success { background: var(--green-bg); color: var(--green-fg); }
.alert-warning { background: var(--orange-bg); color: var(--orange-fg); }
.alert-error { background: var(--red-bg); color: var(--red-fg); }
.alert-info { background: var(--blue-bg); color: var(--blue-fg); }
.reason { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; }
.reason .ms { font-size: 18px; margin-top: 1px; }
.score { font-size: 36px; line-height: 44px; font-variant-numeric: tabular-nums; }
.score-track { height: 8px; border-radius: 4px; position: relative; background: linear-gradient(90deg, var(--orange-bg), var(--grey-bg) 50%, var(--green-bg)); }
.score-track i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--text); }

/* Zavihki in segmenti */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--outline); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--text-2); font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { background: var(--hover); text-decoration: none; }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
.seg { display: inline-flex; border: 1px solid var(--outline); border-radius: 18px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; height: 32px; padding: 0 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--outline); }
.seg button.on { background: var(--primary-container); color: var(--blue-fg); }

/* Nastavitve */
.set-row { display: flex; align-items: center; gap: 24px; padding: 16px 0; border-top: 1px solid var(--outline); }
.set-row:first-child { border-top: 0; }
.set-row .grow { flex: 1; }
.set-row .t { font-weight: 500; }
.set-row .d { color: var(--text-2); font-size: 13px; }
.set-row input { width: 140px; text-align: right; }

/* Grafi */
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 340px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Dialog */
dialog { border: 0; border-radius: 28px; padding: 24px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(32,33,36,.5); }
dialog h2 { margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.src { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--outline); align-items: flex-start; }
.src:first-of-type { border-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dot-green { background: var(--success); } .dot-red { background: var(--error); } .dot-orange { background: var(--warning); }
.dot-blue { background: var(--primary); } .dot-grey { background: var(--text-3); }

/* Klepet */
.chat-card { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 290px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.assistant { align-self: flex-start; }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.user .bubble { background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.msg.assistant .bubble { background: var(--surface-variant); border-bottom-left-radius: 4px; white-space: normal; }
.bubble.thinking { color: var(--text-2); font-style: italic; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin: 0; }
.bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.bubble table { border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.bubble th, .bubble td { border: 1px solid var(--outline); padding: 4px 8px; text-align: left; }
.bubble code { background: var(--surface); padding: 1px 4px; border-radius: 4px; font-size: 13px; }
.bubble h1, .bubble h2, .bubble h3 { font-size: 15px; font-weight: 500; margin: 8px 0 4px; }
.msg .caption { margin-top: 3px; }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--outline); align-items: flex-end; }
.chat-input textarea { flex: 1; height: auto; min-height: 44px; max-height: 160px; padding: 10px 12px; resize: vertical; }
@media (max-width: 700px) { .msg { max-width: 95%; } .chat-card { height: calc(100vh - 240px); } }

/* Hitri pregled instrumenta */
dialog.quick { width: min(760px, calc(100vw - 24px)); padding: 20px 24px; max-height: calc(100vh - 32px); overflow: auto; }
.quick-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.quick-head h2 { margin: 0; font-size: 20px; }
.quick-returns { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.quick-returns .ret { padding: 8px 10px; border-radius: 8px; background: var(--surface-variant); }
.quick-returns .k { font-size: 11px; color: var(--text-2); }
.quick-returns .v { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 500; }
.quick-link, tr[data-quick] .cell-main .t { cursor: pointer; }
.quick-link:hover { text-decoration: underline; }

/* Sporočila */
.messages { margin-bottom: 16px; }

/* Prijava */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(420px, 100%); padding: 40px 36px; text-align: left; }
.login-card .logo { justify-content: flex-start; margin-bottom: 24px; min-width: 0; }
.login-card input { width: 100%; margin-bottom: 16px; }
.ms-login { width: 100%; height: 44px; border-radius: 22px; gap: 12px; }
.pw-login { margin-top: 20px; border-top: 1px solid var(--outline); padding-top: 12px; }
.pw-login summary { cursor: pointer; color: var(--text-2); font-size: 13px; padding: 8px 0; }

/* Gyro — navidezno investiranje (drugačna barva, da ni zamenjave) */
.nav-gyro.active { background: #fef7e0; color: #7a4b00; }
:root[data-theme="dark"] .nav-gyro.active { background: #4a3a0a; color: #fcd34d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-gyro.active, :root:not([data-theme="light"]) .gyro-band { background: #4a3a0a; color: #fcd34d; } }
body.gyro-mode .topbar { border-bottom: 3px solid #f9ab00; }
.gyro-band { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 8px; background: #fef7e0; color: #7a4b00; font-weight: 500; margin-bottom: 16px; }
:root[data-theme="dark"] .gyro-band { background: #4a3a0a; color: #fcd34d; }
.gyro-band .ms { color: #b06000; }
.gyro-hero { display: flex; align-items: center; gap: 20px; }
.gyro-hero .mascot { width: 76px; }
.skeleton { background: linear-gradient(90deg, var(--surface-variant), var(--hover), var(--surface-variant)); border-radius: 4px; min-height: 16px; }
.scrim { display: none; }

/* Odzivnost */
@media (max-width: 1100px) {
  .grid-3-1 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .logo { min-width: 0; }
  .logo .name { display: none; }
  .account-pill .label { display: none; }
  .sidebar {
    position: fixed; left: 0; top: 64px; bottom: 0; z-index: 40; background: var(--surface); width: 280px;
    transform: translateX(-100%); transition: transform .2s ease-out; box-shadow: var(--shadow); height: auto;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(32,33,36,.4); z-index: 35; }
  body.rail .sidebar { width: 280px; }
  body.rail .nav-item span:not(.ms), body.rail .nav-group { display: revert; }
  .content { padding: 16px; }
  .card { padding: 16px; }
  .table-wrap, .list { margin: 0 -16px; }
  .list li { padding: 12px 16px; }
  .field-search input, .field-search input[type=search] { width: 100%; }
  .field-search { flex: 1; min-width: 200px; }
}
@media (max-width: 700px) {
  .search { display: none; }
  .grid-kpi { grid-template-columns: 1fr 1fr; }
  .kpi .value { font-size: 22px; line-height: 30px; }
  table.data.stack thead { display: none; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack tr { border-bottom: 1px solid var(--outline); padding: 8px 16px; }
  table.data.stack td { border: 0; height: auto; padding: 4px 0 !important; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.data.stack td::before { content: attr(data-label); color: var(--text-2); font-size: 13px; text-align: left; }
  table.data.stack td.main { display: block; text-align: left; }
  table.data.stack td.main::before { content: none; }
  .set-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .set-row input { width: 100%; text-align: left; }
  h1 { font-size: 24px; }
}
@media (max-width: 420px) { .grid-kpi { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
