@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: light;
  --bg: #f7f7f5; --side: #ffffff; --surface: #ffffff; --surface-2: #f3f3f0; --hover: #f0f0ec;
  --line: #e6e5e0; --grid: #efeeea;
  --text: #16161a; --text-2: #5c5b57; --text-3: #6f6e69;
  --chart: #a87a1c; --spark: #8f8e86; --bar: #a5a49c; --accent: #ffb500; --accent-ink: #1a1400; --accent-text: #8a5d00; --accent-soft: #eeede8;
  --btn: #16161a; --btn-ink: #ffffff;
  --ok: #17794f; --warn: #94610a; --bad: #b3362c;
  --r: 10px; --r-sm: 7px;
  --shadow: 0 16px 44px rgba(20, 20, 25, .16);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111113; --side: #151518; --surface: #18181b; --surface-2: #222226; --hover: #232327;
  --line: #2b2b30; --grid: #26262a;
  --text: #f2f1ed; --text-2: #b4b3ab; --text-3: #94938b;
  --chart: #c9a24d; --spark: #85847c; --bar: #6b6a64; --accent-text: #d9b45f; --accent-soft: rgba(255, 255, 255, .08);
  --btn: #f2f1ed; --btn-ink: #16161a;
  --ok: #55cf98; --warn: #f5b95a; --bad: #f28b82;
  --shadow: 0 16px 44px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--chart); outline-offset: 2px; }
.i { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 12px; color: var(--text-3); }
.grow { flex: 1; min-width: 0; }

.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; background: #fff; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.logo img { width: 24px; height: 24px; display: block; }
.brandline { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.brandline span { color: var(--text-3); font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { opacity: .88; background: var(--btn); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.link { color: var(--accent-text); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 3px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 372px; display: grid; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.login-card h1 { font-size: 21px; }
.field { display: grid; gap: 5px; font-weight: 500; font-size: 13px; color: var(--text-2); }
.field input, .field select { min-height: 40px; padding: 0 11px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font-size: 14px; }

.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 14px 10px; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.side .brandline { padding: 2px 8px 6px; }
.navgroup { display: grid; gap: 1px; }
.navgroup h4 { padding: 0 8px 3px; font-size: 11px; color: var(--text-3); font-weight: 600; }
.navitem { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 32px; padding: 0 8px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; text-align: left; }
.navitem:hover { background: var(--hover); color: var(--text); }
.navitem.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.navitem.on .i { color: var(--accent-text); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 8px; }
.me { display: flex; align-items: center; gap: 9px; padding: 6px 8px; }
.me div { min-width: 0; flex: 1; }
.me b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 600; font-size: 11px; flex: none; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.avatar.lg { width: 48px; height: 48px; font-size: 15px; }

.work { min-width: 0; display: flex; flex-direction: column; }
.simbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 24px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.simbar button { margin-left: auto; font-weight: 700; text-decoration: underline; }
.top { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.top h1 { font-size: 18px; font-weight: 700; }
.top .sub { color: var(--text-2); font-size: 13px; }
.burger { display: none; }
.page { padding: 20px 24px 56px; display: grid; gap: 14px; max-width: 1360px; width: 100%; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 2px; gap: 1px; background: var(--surface-2); border-radius: var(--r-sm); }
.seg button { min-height: 30px; padding: 0 10px; border-radius: 5px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

.grid { display: grid; gap: 12px; }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g13 { grid-template-columns: 220px minmax(0, 1fr); }
.card { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head h3 { font-size: 14px; font-weight: 600; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.kpi { display: grid; gap: 4px; padding: 14px; }
.kpi-label { color: var(--text-2); font-size: 13px; }
.kpi-val { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.delta { font-size: 12px; font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.bignum { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin: -4px 0 10px; }
.chart { width: 100%; }
.chart svg { display: block; }
.chart text { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .gl { stroke: var(--grid); }
.chart .ln { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; }
.chart .ar { fill: var(--chart); opacity: .1; }
.chart .bar { fill: var(--chart); }
.chart .cross { stroke: var(--text-3); }
.chart .pt { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.col .cross, .col .pt { opacity: 0; }
.col:hover .cross, .col:hover .pt { opacity: 1; }
.barg:hover .bar { opacity: .75; }
.tip { position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; background: var(--btn); color: var(--btn-ink); border-radius: 6px; font-size: 12px; white-space: nowrap; }
.tip b { display: block; font-size: 13px; }

.hbar { display: grid; gap: 10px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; }
.track { height: 6px; margin-top: 4px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.fill { height: 100%; border-radius: 3px; background: var(--bar); }
.list { display: grid; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--grid); width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
button.row:hover b { text-decoration: underline; }
.row b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { margin-left: auto; text-align: right; flex: none; }
.tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.tag.ok { color: var(--ok); } .tag.warn { color: var(--warn); } .tag.bad { color: var(--bad); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--text); }
.tabs .n { font-size: 11px; color: var(--text-3); font-weight: 500; }
.searchbox { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 180px; max-width: 300px; height: 36px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-3); }
.searchbox input { width: 100%; background: none; border: 0; outline: 0; color: var(--text); }
.sel { height: 36px; padding: 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); max-width: 170px; font-size: 13px; }
.sel.active { border-color: var(--text); font-weight: 600; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--grid); white-space: nowrap; }
th { color: var(--text-3); font-size: 12px; font-weight: 500; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--hover); }
.person { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.person .avatar { width: 26px; height: 26px; font-size: 10px; }
.masked { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); }
.masked span { filter: blur(4px); user-select: none; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; color: var(--text-2); }
.chartlist { display: grid; gap: 1px; padding: 8px; align-content: start; }
.chartlist button { text-align: left; padding: 7px 9px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; }
.chartlist button:hover { background: var(--hover); }
.chartlist button.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.cohort td, .cohort th { text-align: center; padding: 7px 6px; font-variant-numeric: tabular-nums; }
.cohort td:first-child, .cohort th:first-child { text-align: left; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 600; justify-self: start; font-size: 13px; }
.phead h2 { font-size: 20px; font-weight: 700; }
.timeline { display: flex; gap: 6px; overflow-x: auto; }
.blockbtn { min-width: 132px; padding: 9px 11px; text-align: left; border-radius: var(--r-sm); border: 1px solid var(--line); }
.blockbtn.on { border-color: var(--text); }
.blockbtn b { display: block; font-weight: 600; font-size: 13px; }
.weeks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.week { padding: 4px 10px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 12px; }
.week.on { background: var(--btn); color: var(--btn-ink); }
.funnel { display: grid; gap: 4px; }
.fstep { display: grid; grid-template-columns: 160px minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 8px 0; }
.fbar { height: 26px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.fbar div { height: 100%; background: var(--chart); }

/* Roadmap i kalendar */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.col-b { background: var(--surface-2); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; }
.col-b h3 { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; padding: 2px 4px; }
.item { padding: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; gap: 6px; }
.item b { font-weight: 600; }
.item-foot { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.item-foot .small { margin-left: auto; }
.tag.aud { background: var(--accent-soft); color: var(--text); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.cal > div { min-height: 96px; padding: 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 3px; align-content: start; min-width: 0; }
.cal .dow { min-height: 0; color: var(--text-3); font-size: 12px; background: var(--surface-2); }
.cal .off { background: var(--surface-2); }
.cal .d { font-size: 12px; color: var(--text-3); }
.cal .today .d { color: var(--text); font-weight: 700; }
.ev { display: block; padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda { display: none; }

/* Gornja traka i drugi panel */
.globalbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px; background: var(--side); border-bottom: 1px solid var(--line); }
.globalbar .brandline { padding: 0; }
.globalbar em { font-style: normal; white-space: nowrap; }
.workspace { height: 34px; padding: 0 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; max-width: 170px; }
.gsearch { display: flex; align-items: center; gap: 7px; margin-left: auto; width: 240px; height: 34px; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-3); }
.gsearch input { width: 100%; background: none; border: 0; outline: 0; }
.app { min-height: calc(100vh - 52px); }
.side { top: 52px; height: calc(100vh - 52px); }
.top { background: none; border-bottom: 0; padding: 22px 24px 0; }
.top h1 { font-size: 24px; }
.page-split { padding: 0; max-width: none; }
.split { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.split-side { border-right: 1px solid var(--line); background: var(--side); }
.split-title { padding: 13px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.split-side .chartlist h4 { margin-top: 10px; padding: 0 9px 3px; font-size: 11px; color: var(--text-3); font-weight: 600; }
.split-main { min-width: 0; padding: 14px 24px 56px; display: grid; gap: 14px; align-content: start; max-width: 1200px; }
.split-main h1 { font-size: 24px; font-weight: 700; margin-top: -8px; }
.crumb { color: var(--text-3); font-size: 13px; }
.statsrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.statsrow b { display: block; font-size: 22px; font-weight: 700; }
.metric { position: relative; display: grid; padding: 16px 16px 0; overflow: hidden; }
.m-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.m-top .i { color: var(--text-3); }
.m-val { margin-top: 8px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m-cap { margin-top: 2px; }
.m-spark { margin: 8px -16px 0; }
.m-spark .ln { stroke: var(--spark); stroke-width: 1.5; }
.m-spark .ar { fill: var(--spark); opacity: .08; }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.navitem .lk { margin-left: auto; color: var(--text-3); }
.navitem.locked { color: var(--text-3); }
.dates { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.dates input { height: 36px; padding: 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sel:disabled { opacity: .45; }
.lockwrap { position: relative; min-height: 460px; }
.skeleton { filter: blur(3px); opacity: .5; display: grid; gap: 12px; pointer-events: none; }
.skel { display: grid; gap: 10px; min-height: 120px; align-content: start; }
.skel.big { min-height: 300px; }
.skel i { display: block; height: 12px; border-radius: 4px; background: var(--surface-2); }
.skel i:first-child { width: 40%; }
.lockmsg { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); width: min(320px, 90%); display: grid; justify-items: center; gap: 6px; text-align: center; box-shadow: var(--shadow); }
.lockmsg h3 { font-size: 15px; }

.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 12, .5); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 640px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.modal.s { max-width: 440px; }
.modal-head { display: flex; align-items: flex-start; gap: 10px; }
.modal-head h2 { font-size: 17px; font-weight: 700; }
.modal-head .icon-btn { margin-left: auto; }
.rolegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rolecard { display: grid; gap: 4px; padding: 14px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); }
.rolecard:hover { background: var(--hover); }
.rolecard b { font-size: 15px; font-weight: 700; }
.people { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm); text-align: left; width: 100%; }
.person-row:hover { background: var(--hover); }
.person-row b { display: block; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 500; cursor: pointer; }
.chips input { accent-color: #16161a; }
.drawer-bg { position: fixed; inset: 0; z-index: 55; background: rgba(10, 10, 12, .4); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 56; width: min(420px, 100vw); padding: 20px; background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.statbox { padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.statbox b { display: block; font-size: 15px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; }
.kv dt { color: var(--text-2); } .kv dd { text-align: right; font-weight: 600; }
.checks { display: grid; gap: 6px; }
.check { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.check input { accent-color: #16161a; }
.check.locked { color: var(--text-3); background: var(--surface-2); }
.check .end { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 9px 14px; background: var(--btn); color: var(--btn-ink); border-radius: 8px; font-weight: 600; max-width: calc(100vw - 32px); }
.note { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); font-size: 13px; }
details.calc summary { cursor: pointer; }
.calc-lines { margin-top: 6px; color: var(--text-2); white-space: normal; }

@media (max-width: 1250px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 50; left: 0; width: 244px; transform: translateX(-105%); transition: transform .18s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .burger { display: grid; }
  .g21, .g2, .g13, .board { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .split-title { display: none; }
  .split-side .chartlist { display: flex; overflow-x: auto; padding: 8px 16px; gap: 4px; }
  .split-side .chartlist h4 { display: none; }
  .split-side .chartlist button { white-space: nowrap; }
  .split-main { padding: 12px 16px 40px; }
}
@media (max-width: 640px) {
  .top { padding: 14px 16px 0; }
  .top .sub { display: none; }
  .gsearch { display: none; }
  .globalbar em { display: none; }
  .workspace { margin-left: auto; }
  .m-val { font-size: 22px; }
  .statsrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simbar { padding: 6px 16px; }
  .page { padding: 14px 16px 40px; }
  .g6, .g5, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .dates { flex: 1 1 42%; }
  .dates input { width: 100%; min-width: 0; }
  .kpi-val { font-size: 18px; }
  .rolegrid { grid-template-columns: minmax(0, 1fr); }
  .searchbox { max-width: none; flex-basis: 100%; }
  .sel { flex: 1 1 42%; max-width: none; }
  .fstep { grid-template-columns: minmax(0, 1fr) auto; }
  .fstep .fbar { grid-column: 1 / -1; grid-row: 2; }
  .cal { display: none; }
  .agenda { display: grid; }
  .toolbar .end { margin-left: 0; }
}
.error { color: var(--bad); }
.side-foot { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.side { overflow-x: hidden; }
.clickable { cursor: pointer; }
.clickable:hover { border-color: var(--text-3); }
.modal.wide { max-width: 860px; }
button.th { font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
button.th:hover { color: var(--text); }
.hbar-top .tag { margin-left: 4px; }
.note-input { width: 100%; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); resize: vertical; font: inherit; }
.drawer { width: min(480px, 100vw); }
.page { max-width: none; }
.grid.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1500px) { .grid.metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.attention { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tag.m { color: #6ea8ec; background: rgba(57, 135, 229, .14); }
.tag.f { color: #e784aa; background: rgba(213, 81, 129, .14); }
[data-theme="light"] .tag.m { color: #1f5fae; }
[data-theme="light"] .tag.f { color: #a8326a; }
.fresh { position: fixed; right: 14px; bottom: 12px; z-index: 30; padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: var(--text-3); }
.modal.wide { max-width: 1120px; }
.overlay { align-items: start; }
@media (max-width: 640px) { .fresh { display: none; } }
.tag.ch-old { color: #a6a39a; background: rgba(166, 163, 154, .16); }
.tag.ch-new { color: #a99cf2; background: rgba(125, 106, 232, .18); }
.tag.ch-app { color: #6ea8ec; background: rgba(57, 135, 229, .16); }
.tag.ch-play { color: #5fcf9b; background: rgba(36, 165, 110, .16); }
.tag.k-new { color: #5fcf9b; background: rgba(36, 165, 110, .14); }
.tag.k-ren { color: #6ec3d6; background: rgba(57, 165, 190, .15); }
.tag.k-mig { color: #e8b86d; background: rgba(226, 160, 60, .15); }
.tag.pay-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.tag.pay-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.tag.pay-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); }
[data-theme="light"] .tag.ch-old { color: #66645c; }
[data-theme="light"] .tag.ch-new { color: #5b45c9; }
[data-theme="light"] .tag.ch-app { color: #1f5fae; }
[data-theme="light"] .tag.ch-play, [data-theme="light"] .tag.k-new { color: #17794f; }
[data-theme="light"] .tag.k-ren { color: #1b7286; }
[data-theme="light"] .tag.k-mig { color: #8f5c0c; }
.tagrow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.metric.good .m-val { color: var(--ok); } .metric.bad .m-val { color: var(--bad); }
.chartlist button.aud-warn { background: color-mix(in srgb, var(--warn) 11%, transparent); }
.chartlist button.aud-good { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.chartlist button.aud-warn.on { background: color-mix(in srgb, var(--warn) 26%, transparent); }
.chartlist button.aud-good.on { background: color-mix(in srgb, var(--ok) 24%, transparent); }
.chartlist button.aud-warn, .chartlist button.aud-good { margin-bottom: 2px; }
.hscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.htable { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.htable th, .htable td { padding: 8px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); font-size: 13px; }
.htable tr:last-child td { border-bottom: 0; }
.htable .r { text-align: right; font-variant-numeric: tabular-nums; }
.htable .stick { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; box-shadow: 1px 0 0 var(--line); }
.htable .sum td { background: var(--surface-2); }
.pstruct { overflow-x: auto; padding-bottom: 8px; }
.pmeso-t { position: sticky; left: 0; width: fit-content; margin: 12px 0 8px; font-weight: 600; font-size: 14px; }
.pmeso:first-child .pmeso-t { margin-top: 0; }
.pmeso-r { display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 86vw); gap: 12px; }
.xp > td { background: var(--surface-2); padding: 8px 12px; }
.chev { display: inline-block; width: 14px; color: var(--text-3); }
.ovgrid { align-items: start; }
.scrolly { max-height: 236px; overflow-y: auto; }
.split-main td { white-space: nowrap; }
.pmeso { margin-top: 12px; }
.pmeso-r { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.pcol { flex: 0 0 auto; min-width: 400px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.pcol-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pcol td { white-space: nowrap; }
.pcol .scroll { overflow: visible; }
.anl .card { display: flex; flex-direction: column; }
.pbars { display: grid; gap: 11px; }
.pb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 42px 46px; align-items: center; gap: 8px; font-size: 13px; }
.pb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-t { display: block; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.pb-t i { display: block; height: 100%; border-radius: 4px; background: var(--chart); }
.pb b, .pb .small { text-align: right; font-variant-numeric: tabular-nums; }
.tag.c0 { color: #a99cf2; background: rgba(125, 106, 232, .17); } .tag.c1 { color: #6ec3d6; background: rgba(57, 165, 190, .16); } .tag.c2 { color: #e8b86d; background: rgba(226, 160, 60, .16); } .tag.c3 { color: #5fcf9b; background: rgba(36, 165, 110, .15); } .tag.c4 { color: #e784aa; background: rgba(213, 81, 129, .15); } .tag.c5 { color: #6ea8ec; background: rgba(57, 135, 229, .16); }
[data-theme="light"] .tag.c0 { color: #5b45c9; } [data-theme="light"] .tag.c1 { color: #1b7286; } [data-theme="light"] .tag.c2 { color: #8f5c0c; } [data-theme="light"] .tag.c3 { color: #17794f; } [data-theme="light"] .tag.c4 { color: #a8326a; } [data-theme="light"] .tag.c5 { color: #1f5fae; }
.tl-i { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 10px; }
.tl-pay { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.tl-ref { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); }
.tl-prog { color: #6ea8ec; background: rgba(57, 135, 229, .16); }
.tl-note { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
@media (max-width: 900px) { .grid.anl { grid-template-columns: minmax(0, 1fr); } .pcol { min-width: 320px; } }
.split-main { max-width: none; }
.card.st-ok { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 42%, var(--line)); }
.card.st-warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 42%, var(--line)); }
.card.st-error, .card.st-off { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 42%, var(--line)); }
.card.st-ok .tag { color: var(--ok); } .card.st-off .tag { color: var(--bad); }
@media (min-width: 901px) {
  .ovgrid { align-items: stretch; }
  .ovgrid > .card { height: 276px; display: flex; flex-direction: column; min-height: 0; }
  .ovgrid > .card > .list, .ovgrid > .card > .hbar { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; max-height: none; }
  .ovgrid > .attention > .list { align-content: space-evenly; overflow: hidden; }
}
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mtile { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); text-decoration: none; }
.mtile:hover { border-color: var(--accent); }
.mtile > span { flex: 1; min-width: 0; display: grid; }
.grid.ten { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.ten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.ten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.request { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.request .btn { flex: 0 0 auto; text-decoration: none; }
@media (max-width: 640px) { .request { flex-direction: column; align-items: flex-start; } }
