/* Timeline Tracker — Movenetics Digital brand: ivory / charcoal / orange, Inter */
:root {
  --bg: #F8F6F3; --surface: #FFFFFF; --text: #1C1C1C; --muted: #6D818D;
  --line: #EAE1D8; --accent: #FF5428; --accent-ink: #FFFFFF; --accent-soft: #FFF0EB;
  --red: #D8331A; --red-bg: #FDECE8; --orange: #C2570C; --orange-bg: #FFF1E0;
  --green: #2F7D4A; --green-bg: #E8F4EC; --amber: #946A00; --amber-bg: #FFF6D6;
  --shadow: 0 1px 2px rgba(28,28,28,.06), 0 4px 14px rgba(28,28,28,.04);
  --radius: 12px; --page-max: 1440px; --page-pad: clamp(16px, 3vw, 40px);
  color-scheme: light;
}
/* Dark: follows the OS unless the user picked a theme with the button (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1C1C; --surface: #262626; --text: #F8F6F3; --muted: #9DB0BB;
    --line: #3A3835; --accent-soft: #3A2620;
    --red: #FF8A75; --red-bg: #3D2420; --orange: #FFAB66; --orange-bg: #3B2C1B;
    --green: #7BCB93; --green-bg: #1F3326; --amber: #F2CC5B; --amber-bg: #3A3216;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #1C1C1C; --surface: #262626; --text: #F8F6F3; --muted: #9DB0BB;
    --line: #3A3835; --accent-soft: #3A2620;
    --red: #FF8A75; --red-bg: #3D2420; --orange: #FFAB66; --orange-bg: #3B2C1B;
    --green: #7BCB93; --green-bg: #1F3326; --amber: #F2CC5B; --amber-bg: #3A3216;
    --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
h2 { font-size: 18px; margin: 32px 0 12px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .strong { font-weight: 700; } .pad { padding: 8px 12px; display: block; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 10px var(--page-pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { display: block; height: 38px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { background: #F8F6F3; border-radius: 8px; padding: 3px 8px; } }
:root[data-theme="dark"] .logo { background: #F8F6F3; border-radius: 8px; padding: 3px 8px; }
.app-name { font-weight: 700; letter-spacing: -.03em; padding-left: 12px; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: clamp(12px, 1.8vw, 28px); flex: 1; overflow-x: auto; }
.tabs a { position: relative; padding: 10px 0; text-decoration: none; font-size: 13px; white-space: nowrap; color: var(--text); opacity: .8; }
.tabs a:hover { opacity: 1; }
.tabs a.active { color: var(--accent); opacity: 1; font-weight: 600; }
.tabs a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.sync { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sync.stale { color: #fff; background: var(--red); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 24px var(--page-pad) 64px; }
.page-title { font-size: 26px; margin-bottom: 16px; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.94); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 10px; font-size: 12px; } .btn.block { width: 100%; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, summary:focus-visible, tr.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Filter bar (compact) */
.filters { display: grid; gap: 10px; margin-bottom: 22px; }
.filter-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.filter-top .grow { flex: 1; }
.pills { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.pill { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.pill:hover { background: var(--accent-soft); color: var(--accent); }
.pill.active { background: var(--text); color: var(--bg); }
.custom-dates { display: none; align-items: center; gap: 8px; } .custom-dates.show { display: inline-flex; }
.filter-top .search { width: 240px; max-width: 100%; height: 38px; border-radius: 999px; padding: 0 14px; }
.filter-top .btn, .filter-top select { height: 38px; }
.fpanel { position: relative; }
.fpanel summary { list-style: none; cursor: pointer; } .fpanel summary::-webkit-details-marker { display: none; }
.fpanel summary .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; }
.fpanel[open] summary { border-color: var(--accent); color: var(--accent); }
.fpanel-body { position: absolute; z-index: 35; top: calc(100% + 6px); right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: min(560px, 92vw); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.fpanel-body select { height: 38px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; }
.range-note { font-size: 13px; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid transparent; color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; }
.chip i { font-style: normal; font-size: 10px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.08); }
.chip:hover { border-color: var(--accent); } .chip-clear { font-size: 12px; font-weight: 600; color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ms { position: relative; }
.ms summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; white-space: nowrap; }
.ms summary:hover, .ms[open] summary { border-color: var(--accent); }
.ms summary::-webkit-details-marker { display: none; }
.ms summary::after { content: "\25BE"; color: var(--muted); font-size: 11px; }
.ms .k { color: var(--muted); } .ms .count { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.ms-panel { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 240px; max-height: 300px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 6px; }
.ms-panel label { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 6px; color: var(--text); cursor: pointer; }
.ms-panel label:hover { background: var(--accent-soft); }

/* Page head, hint, tiles */
.page-head { margin-bottom: 18px; } .page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.hint { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 16px 18px; background: var(--accent-soft); border: 1px solid var(--accent); border-left-width: 5px; border-radius: 12px; }
.hint-icon { font-size: 22px; line-height: 1.2; } .hint ul { margin: 6px 0 0; padding-left: 18px; } .hint li { margin: 4px 0; } .hint a { color: var(--accent); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.tile-label { font-size: 12px; font-weight: 600; color: var(--muted); } .tile-value { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; }
.chart-grid.two { margin-top: 18px; } a.more { color: var(--accent); font-weight: 600; text-decoration: none; } a.more:hover { text-decoration: underline; }
a.kpi { display: block; text-decoration: none; color: inherit; transition: transform .12s, border-color .12s; } a.kpi:hover { transform: translateY(-2px); border-color: var(--accent); }
.sync .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; } .sync.stale .dot { background: #fff; }

/* Info tooltip */
.info { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 10px; font-weight: 700; font-style: normal; cursor: help; position: relative; vertical-align: middle; text-transform: none; }
.info:hover::after, .info:focus::after { content: attr(data-tip); position: absolute; z-index: 40; top: 120%; left: 50%; transform: translateX(-30%); width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 400; line-height: 1.4; white-space: normal; text-align: left; }

/* KPIs & cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi { padding: 16px 18px; border-top: 3px solid var(--accent); }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 4px 0; }
.kpi-delta { font-size: 12px; font-weight: 600; } .kpi-delta.up { color: var(--red); } .kpi-delta.down { color: var(--green); } .kpi-delta.flat { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th { position: sticky; top: 0; text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; } .nowrap { white-space: nowrap; }
.grid .wide { min-width: 220px; max-width: 360px; }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.clip a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; } .clip a:hover { color: var(--accent); }
a.sort { text-decoration: none; color: inherit; } a.sort:hover { color: var(--accent); }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--accent-soft); }
tr.row-red td { background: var(--red-bg); } tr.row-red td:first-child { box-shadow: inset 3px 0 0 var(--red); }
tr.row-orange td { background: var(--orange-bg); } tr.row-orange td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.empty-cell { text-align: center; color: var(--muted); padding: 36px 12px !important; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--line); color: var(--text); }
.badge.red { background: var(--red-bg); color: var(--red); } .badge.orange { background: var(--orange-bg); color: var(--orange); } .badge.green { background: var(--green-bg); color: var(--green); }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pages { display: flex; gap: 4px; flex-wrap: wrap; }
.pg { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 13px; }
a.pg:hover { border-color: var(--accent); } .pg.cur { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } .pg.dis { color: var(--muted); border-color: transparent; background: transparent; }
.legend { color: var(--muted); font-size: 12px; margin-top: 12px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin: 0 4px 0 12px; } .sw.red { background: var(--red); } .sw.orange { background: var(--orange); }

/* Scorecard */
.score .group th { text-align: center; border-bottom: 0; color: var(--accent); }
.score td.cell.good, .cell.good.inline { background: var(--green-bg); color: var(--green); font-weight: 600; }
.score td.cell.mid, .cell.mid.inline { background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.score td.cell.bad, .cell.bad.inline { background: var(--red-bg); color: var(--red); font-weight: 600; }
.cell.inline { padding: 1px 8px; border-radius: 6px; }
.ba-link { font-weight: 600; text-decoration: none; } .ba-link:hover { color: var(--accent); text-decoration: underline; }
.score tfoot td { font-weight: 800; border-top: 2px solid var(--text); background: var(--surface); }

/* Charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr)); gap: 18px; }
.chart-card { padding: 18px 18px 14px; display: flex; flex-direction: column; }
.chart-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.chart-card h3 { font-size: 16px; } .chart-card header p { margin: 2px 0 0; max-width: 46ch; }
.insight { margin: 10px 0 8px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: 13px; font-weight: 600; }
.insight:empty { display: none; }
.chart-box { position: relative; height: 320px; margin-top: 6px; }
.empty { display: grid; place-items: center; text-align: center; padding: 0 24px; height: 320px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; margin-top: 10px; }
.empty div { display: grid; gap: 6px; } .empty strong { color: var(--text); }

/* Drawer */
#scrim { position: fixed; inset: 0; z-index: 50; background: rgba(28,28,28,.45); }
#drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.2); }
#drawer[hidden], #scrim[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
#drawer-body { overflow-y: auto; padding: 18px; flex: 1; }
.d-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 4px; word-break: break-word; }
.d-sec { margin-top: 22px; } .d-sec > h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; word-break: break-word; }
.hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.hist li { position: relative; padding: 6px 0 10px 10px; font-size: 13px; } .hist li::before { content: ""; position: absolute; left: -20px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hist li.current::before { background: var(--accent); } .hist li.current { font-weight: 600; } .hist .when { color: var(--muted); font-size: 12px; font-weight: 400; display: block; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.comment .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; } .comment .meta strong { color: var(--text); }
.comment .txt { white-space: pre-wrap; word-break: break-word; }
.c-form textarea { width: 100%; min-height: 84px; resize: vertical; } .c-form .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.err { color: var(--red); font-size: 12px; }

/* Login */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 20px;
  background: radial-gradient(900px 500px at 15% 10%, var(--accent-soft), transparent 60%), var(--bg); }
.auth { display: grid; grid-template-columns: 1.05fr 1fr; width: min(940px, 100%); min-height: 560px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 70px rgba(28,28,28,.18); }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px 44px; color: #F8F6F3;
  background: radial-gradient(420px 320px at 90% 0%, rgba(255,84,40,.55), transparent 70%), radial-gradient(380px 300px at 0% 100%, rgba(255,84,40,.28), transparent 70%), #1C1C1C; }
.auth-side h2 { margin: 6px 0 0; font-size: 34px; line-height: 1.1; letter-spacing: -.035em; }
.auth-side p { margin: 0; color: #CFC9C2; font-size: 15px; line-height: 1.55; max-width: 360px; }
.auth-side ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-side li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #F8F6F3; }
.auth-side li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); }
.auth-logo { height: 46px; width: auto; align-self: flex-start; background: #F8F6F3; border-radius: 10px; padding: 5px 12px; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; }
.auth-form h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 4px; }
.auth-form p { margin: 0; }
.auth-form form { display: grid; gap: 16px; margin-top: 24px; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.auth-form input { font-size: 15px; padding: 12px 14px; border-radius: 10px; width: 100%; }
.pw { position: relative; display: block; } .pw input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { background: var(--accent-soft); }
.btn.big { padding: 13px 18px; font-size: 15px; margin-top: 4px; }
.auth-foot { margin-top: 22px !important; line-height: 1.5; }
.mobile-only { display: none; }
.alert { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); border-radius: 10px; padding: 10px 12px; margin-top: 16px; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; min-height: 0; } .auth-side { display: none; }
  .auth-form { padding: 32px 24px; gap: 0; } .mobile-only { display: block; margin-bottom: 20px; }
}

@media (max-width: 720px) {
  .topbar { gap: 8px 14px; } .tabs { order: 3; flex-basis: 100%; } .page-title { font-size: 22px; }
  .range-note { margin-left: 0; } dl.kv { grid-template-columns: 110px 1fr; } .kpi-value { font-size: 28px; }
}

/* Instant hover tooltip */
#tt { position: fixed; z-index: 100; pointer-events: none; max-width: 340px; padding: 7px 11px; border-radius: 8px; background: var(--text); color: var(--bg);
  font-size: 12px; line-height: 1.4; box-shadow: 0 6px 20px rgba(0,0,0,.25); white-space: pre-wrap; word-break: break-word; }
.grid td[data-tt], .kpi-value, .tile-value, dl.kv dd { cursor: help; }

/* Spacing + scorecard + tasks */
.filters { margin-bottom: 22px; }
.filter-main.solo { padding-top: 0; border-top: 0; }
.score td:first-child, .score th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); white-space: nowrap; }
.score tfoot td:first-child { z-index: 2; }
.grid td { padding: 9px 10px; }
.clip { max-width: 300px; }
.view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 16px; }
.view-bar .lbl { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 6px; }
.count-line { margin: 0 0 12px; color: var(--muted); font-size: 13px; } .count-line strong { color: var(--text); }
.num.warn { color: var(--red); font-weight: 700; }
.group-link { font-weight: 600; text-decoration: none; } .group-link:hover { color: var(--accent); text-decoration: underline; }
.deadline.overdue { color: var(--red); font-weight: 700; }
.badge.done { background: var(--green-bg); color: var(--green); }

/* Calmer cards + overview */
.kpi { border-top: 1px solid var(--line); padding: 18px 20px; }
.kpi-value { font-size: 36px; } .kpi-label { text-transform: none; letter-spacing: 0; font-size: 13px; }
.summary { margin: 0 0 18px; font-size: 18px; line-height: 1.5; letter-spacing: -.01em; max-width: 70ch; } .summary strong { font-weight: 800; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; margin-top: 18px; align-items: stretch; }
.attn { padding: 18px; } .attn h3 { margin-bottom: 10px; }
.attn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; background: var(--bg); text-decoration: none; font-size: 14px; border: 1px solid transparent; }
.attn li a:hover { border-color: var(--accent); }
.attn li b { font-size: 18px; letter-spacing: -.02em; } .attn li.bad b { color: var(--red); } .attn li.ok { color: var(--green); font-weight: 600; padding: 8px 2px; }
.snapshot { margin: 20px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.snapshot strong { color: var(--text); } .snapshot a { color: var(--accent); font-weight: 600; text-decoration: none; margin-left: 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; } .sec-head h2 { margin: 0; }
@media (max-width: 860px) { .ov-grid { grid-template-columns: 1fr; } .filter-top .search { width: 100%; } .fpanel-body { right: auto; left: 0; } }

.score-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; } .score-note p { margin: 0; max-width: 80ch; }
@media (max-width: 640px) {
  .table-wrap:has(table.grid:not(.score)) { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  table.grid:not(.score), table.grid:not(.score) tbody { display: block; }
  table.grid:not(.score) thead { display: none; }
  table.grid:not(.score) tr { display: block; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
  table.grid:not(.score) td { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border: 0; text-align: right; }
  table.grid:not(.score) td::before { content: attr(data-label); flex: 0 0 38%; text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; }
  table.grid:not(.score) td.empty-cell::before { content: none; }
  table.grid:not(.score) .clip { max-width: none; white-space: normal; }
  table.grid:not(.score) .wide { max-width: none; min-width: 0; }
  table.grid:not(.score) tr.row-red { box-shadow: inset 4px 0 0 var(--red); } table.grid:not(.score) tr.row-orange { box-shadow: inset 4px 0 0 var(--orange); }
  table.grid:not(.score) td { background: none !important; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi-value { font-size: 28px; } .summary { font-size: 16px; }
}

.kpis.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; }

/* Theme button */
.icon-btn { width: 38px; height: 38px; padding: 0; font-size: 17px; line-height: 1; border-radius: 50%; }
.theme-float { position: fixed; top: 16px; right: 16px; z-index: 10; background: var(--surface); }
