/* ---------------------------------------------------------------------
   sqlmgr web console -- Status board (the "Status" top-level view).

   Ported from the standalone Ticket Helper's app.css. Every rule is
   scoped under #statusView and every id is prefixed sb- so nothing here
   can reach the Manager view (and Manager's .panel/.btn never reach this
   view: the ported classes are .sb-panel/.sb-btn). The Ticket Helper's
   dark palette always applies (Manager is dark-only); the block at the
   end re-tints it to Manager's warm graphite / golden oak tokens and
   fits the view under Manager's top bar.
   --------------------------------------------------------------------- */
#statusView { color-scheme: light;
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f8f9fb; --line: #e3e6eb; --line-2: #eef0f3;
  --text: #1f2933; --muted: #6b7684; --accent: #1f6feb; --accent-bg: #e8f0fe; --accent-line: #c5d8fb;
  --warn: #b4540a; --warn-bg: #fdecd9;
  --sel: #e8f0fe; --hover: #f1f3f6; --shadow: 0 1px 2px rgba(16,24,40,.06);
  --c-created: #7b8fb5; --c-closed: #1f9d74;
  --s-new: #1f6feb; --s-new-bg: #e1ecfd;
  --s-todo: #1f6feb; --s-todo-bg: #e1ecfd;
  --s-prog: #5b45c8; --s-prog-bg: #e9e5fa;
  --s-cust: #b4540a; --s-cust-bg: #fdecd9;
  --s-wait: #8a3ba8; --s-wait-bg: #f3e3f8;
  --s-dev: #0a7f86; --s-dev-bg: #d9f1f2;
  --s-hold: #7a6a4f; --s-hold-bg: #efe9dc;
  --s-closed: #2b7a4b; --s-closed-bg: #dcf1e4;
  --s-gray: #66707c; --s-gray-bg: #e9ecef; }
#statusView { color-scheme: dark;
    --bg: #14171c; --panel: #1b1f26; --panel-2: #20252d; --line: #2c323b; --line-2: #262b33;
    --text: #e4e8ee; --muted: #93a0af; --accent: #5b9bff; --accent-bg: #1b2a44; --accent-line: #2d4a7a;
    --warn: #f0a35e; --warn-bg: #3a2a18;
    --sel: #1f2f4d; --hover: #232932; --shadow: none;
    --c-created: #7d92bd; --c-closed: #3fbf94;
    --s-new: #7db0ff; --s-new-bg: #1c2d4a; --s-todo: #7db0ff; --s-todo-bg: #1c2d4a;
    --s-prog: #b3a4ff; --s-prog-bg: #2a2548; --s-cust: #f0a35e; --s-cust-bg: #3a2a18;
    --s-wait: #d9a0ee; --s-wait-bg: #382443; --s-dev: #5fd0d6; --s-dev-bg: #163a3d;
    --s-hold: #cdb98f; --s-hold-bg: #38311f; --s-closed: #6cd49a; --s-closed-bg: #1a3a29;
    --s-gray: #9aa5b2; --s-gray-bg: #2a3038; }
#statusView * { box-sizing: border-box; }
#statusView { height: 100%; margin: 0; }
#statusView { background: var(--bg); color: var(--text); display: flex; flex-direction: column; overflow: hidden;
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
#statusView [hidden] { display: none !important; }
#statusView a { color: var(--accent); text-decoration: none; }
#statusView a:hover { text-decoration: underline; }
#statusView .muted { color: var(--muted); }
#statusView button { font: inherit; color: inherit; }
#statusView .linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
#statusView .linkbtn:hover { text-decoration: underline; }
#statusView #sb-topbar { display: flex; align-items: center; gap: 18px; height: 44px; padding: 0 16px; flex: none;
  background: var(--panel); border-bottom: 1px solid var(--line); }
#statusView .brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; color: var(--text); }
#statusView .brand:hover { text-decoration: none; }
#statusView .logo { width: 26px; height: 26px; border-radius: 5px; display: block; }
#statusView #sb-topbar nav { display: flex; gap: 4px; }
#statusView #sb-topbar nav a { padding: 6px 12px; border-radius: 6px; color: var(--muted); font-weight: 550; }
#statusView #sb-topbar nav a:hover { background: var(--hover); text-decoration: none; }
#statusView #sb-topbar nav a.on { background: var(--accent-bg); color: var(--accent); }
#statusView .spacer { flex: 1; }
#statusView .asof { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 12px; font-size: 12px;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
#statusView .asof i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-closed); display: inline-block; }
#statusView .usermenu { position: relative; }
#statusView .avatar { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 12px; letter-spacing: .03em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#statusView .avatar:hover { filter: brightness(1.08); }
#statusView .avatar.sm { width: 24px; height: 24px; font-size: 10.5px; cursor: default; }
#statusView .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.14); padding: 4px; }
#statusView .menu > a, #statusView .menu > button, #statusView .mrow { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 10px;
  border: 0; background: none; border-radius: 6px; color: var(--text); cursor: pointer; font: inherit; }
#statusView .menu > a:hover, #statusView .menu > button:hover, #statusView .mrow:hover { background: var(--hover); text-decoration: none; }
#statusView .mhead { display: flex; align-items: center; gap: 8px; padding: 8px 10px 9px; border-bottom: 1px solid var(--line-2);
  margin-bottom: 4px; color: var(--muted); font-size: 12px; }
#statusView #sb-toast { position: fixed; right: 18px; bottom: 40px; z-index: 40; padding: 9px 14px; border-radius: 8px; background: var(--text);
  color: var(--panel); box-shadow: 0 8px 24px rgba(16,24,40,.2); font-size: 12.5px; max-width: 420px; }
#statusView #sb-toast.err { background: var(--warn); color: #fff; }
#statusView #sb-footer { flex: none; padding: 5px 16px; border-top: 1px solid var(--line); background: var(--panel); font-size: 11.5px; }
#statusView code { font: 11.5px ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
#statusView #sb-page-tickets { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 24px 22px; }
#statusView #sb-page-tickets.with-detail { grid-template-columns: minmax(0, 1fr) 420px; }
#statusView #sb-page-tickets > * { min-height: 0; min-width: 0; }
#statusView #sb-tlist { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
#statusView .tools { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
#statusView .tools input[type="search"] { flex: 1; min-width: 200px; max-width: 520px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel-2); color: var(--text); font: inherit; outline: none; }
#statusView .tools input[type="search"]:focus { border-color: var(--accent); background: var(--panel); }
#statusView select { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
#statusView #sb-tablewrap { flex: 1; overflow: auto; padding: 0 0 8px; }
#statusView .tbl.tk { border-radius: 0; border: 0; overflow: visible; }
#statusView .tbl.tk th:first-child, #statusView .tbl.tk td:first-child { padding-left: 16px; }
#statusView .tbl.tk td { vertical-align: top; }
#statusView .tbl.tk td.tg { background: color-mix(in srgb, var(--accent) 4%, transparent); }
#statusView .tbl.tk th.tg { color: var(--accent); }
#statusView .tbl.tk td.cg { background: color-mix(in srgb, var(--s-dev) 4%, transparent); }
#statusView .tbl.tk th.cg { color: var(--s-dev); }
#statusView .tbl.tk .gfirst { border-left: 1px solid var(--line-2); }
#statusView .tbl.tk th:first-child, #statusView .tbl.tk td:first-child { border-left: 0; }
#statusView .clines > div { line-height: 20px; min-height: 20px; }
#statusView .tbl.tk th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
#statusView .tbl th.sortable { cursor: pointer; user-select: none; }
#statusView .tbl th.sortable:hover { color: var(--text); }
#statusView .tbl.tk tbody tr { cursor: pointer; }
#statusView .tbl.tk tbody tr:hover td { background: var(--hover); }
#statusView .tbl.tk tbody tr.sel td { background: var(--sel); }
#statusView .tbl td.co { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#statusView .more { text-align: center; padding: 14px; }
#statusView .empty { padding: 24px 16px; color: var(--muted); text-align: center; }
#statusView .empty code { display: inline-block; margin-top: 6px; }
#statusView select.cosel { max-width: 260px; }
#statusView .ms { position: relative; }
#statusView .msbtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel-2); cursor: pointer; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
#statusView .msbtn.on { border-color: var(--accent-line); color: var(--accent); background: var(--accent-bg); }
#statusView .msbtn .caret { font-size: 10px; color: var(--muted); }
#statusView .msmenu { left: 0; right: auto; min-width: 240px; max-height: 420px; overflow-y: auto; }
#statusView .mrow .cnt { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
#statusView .mrow.cur { color: var(--accent); font-weight: 600; }
#statusView .mrow input { margin: 0; }
#statusView .msep { padding: 8px 10px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-top: 1px solid var(--line-2); margin-top: 4px; }
#statusView .pill { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 17px;
  white-space: nowrap; color: var(--s-gray); background: var(--s-gray-bg); }
#statusView .s-new { color: var(--s-new); background: var(--s-new-bg); }
#statusView .s-to-do { color: var(--s-todo); background: var(--s-todo-bg); }
#statusView .s-in-progress { color: var(--s-prog); background: var(--s-prog-bg); }
#statusView .s-customer-note-added { color: var(--s-cust); background: var(--s-cust-bg); }
#statusView .s-awaiting-response { color: var(--s-wait); background: var(--s-wait-bg); }
#statusView .s-in-development, #statusView .s-master-bugs { color: var(--s-dev); background: var(--s-dev-bg); }
#statusView .s-on-hold { color: var(--s-hold); background: var(--s-hold-bg); }
#statusView .s-closed { color: var(--s-closed); background: var(--s-closed-bg); }
#statusView .badge { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 16px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
#statusView .badge.dev { color: var(--s-dev); border-color: transparent; background: var(--s-dev-bg); }
#statusView .sb-panel { background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; padding: 14px 16px 24px; }
#statusView .sb-panel .dh { display: flex; align-items: flex-start; gap: 10px; }
#statusView .sb-panel h1 { font-size: 16px; line-height: 1.3; margin: 0 0 6px; font-weight: 650; flex: 1; overflow-wrap: anywhere; }
#statusView .sb-panel .x { font-size: 15px; color: var(--muted); }
#statusView .drawer { position: fixed; top: 44px; right: 0; bottom: 0; width: 440px; max-width: 100vw; z-index: 20;
  box-shadow: -8px 0 24px rgba(16,24,40,.12); }
#statusView .cardblk { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 10px; background: var(--panel-2); }
#statusView .cardblk .ch { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#statusView .cardblk .ct { font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; }
#statusView .hmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 12px; }
#statusView .hmeta .num { font: 12px ui-monospace, Consolas, monospace; }
#statusView .sb-panel h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; font-weight: 650; }
#statusView dl.props { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 5px 8px; }
#statusView dl.props dt { color: var(--muted); }
#statusView dl.props dd { margin: 0; overflow-wrap: anywhere; }
#statusView .help { border-bottom: 1px dotted var(--muted); cursor: help; }
#statusView .hist { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12px; }
#statusView .hist li { padding: 5px 0; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
#statusView .hist li time { display: block; color: var(--muted); font-size: 10.5px; }
#statusView .hnav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
#statusView .hnav button { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; width: 24px; height: 22px;
  cursor: pointer; line-height: 1; }
#statusView .hnav button:hover { background: var(--hover); }
#statusView #sb-page-dashboard, #statusView #sb-page-week, #statusView #sb-page-customers, #statusView #sb-page-cards { flex: 1; overflow-y: auto; padding: 18px 20px 30px; }
#statusView .dash { max-width: 1180px; margin: 0 auto; }
#statusView .dash h2 { font-size: 15px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 10px; }
#statusView .dash h2:first-child { margin-top: 0; }
#statusView .dash h2 small { font-weight: 400; color: var(--muted); font-size: 12px; }
#statusView .grid { display: grid; gap: 12px; }
#statusView .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#statusView .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#statusView .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#statusView .tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
#statusView .tile .lbl { color: var(--muted); font-size: 12px; }
#statusView .tile .lbl .help { border-bottom: 1px dotted var(--muted); }
#statusView .tile .big { font-size: 26px; font-weight: 650; line-height: 1.15; margin-top: 3px; font-variant-numeric: tabular-nums; }
#statusView .tile .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
#statusView .tile h4 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
#statusView .tile.link, #statusView .legend .link, #statusView .stack .link { cursor: pointer; }
#statusView .legend .link:hover { text-decoration: underline; }
#statusView .tile.link { cursor: pointer; }
#statusView .tile.link:hover { border-color: var(--accent-line); }
#statusView .up { color: var(--warn); }
#statusView .down { color: var(--c-closed); }
#statusView .hbar { display: grid; grid-template-columns: 140px 1fr 34px; align-items: center; gap: 8px; margin: 5px 0; font-size: 12px; }
#statusView .hbar .track { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line-2); }
#statusView .hbar .fill { height: 100%; background: var(--accent); border-radius: 5px; }
#statusView .hbar .v { text-align: right; font-variant-numeric: tabular-nums; }
#statusView .stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 8px 0 6px; background: var(--panel-2); }
#statusView .stack > div { height: 100%; }
#statusView .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
#statusView .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
#statusView .tlist { margin: 0; padding: 0; list-style: none; }
#statusView .tlist li a.tr { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 4px;
  border-bottom: 1px solid var(--line-2); color: var(--text); }
#statusView .tlist li a.tr:hover { background: var(--hover); text-decoration: none; }
#statusView .tlist .num { font: 11px ui-monospace, Consolas, monospace; color: var(--muted); }
#statusView .tlist .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#statusView svg.chart { width: 100%; height: auto; display: block; }
#statusView svg.chart text { fill: var(--muted); font: 11px system-ui, sans-serif; }
#statusView svg.chart .grid { stroke: var(--line); stroke-width: 1; }
#statusView svg.chart .created { fill: var(--c-created); }
#statusView svg.chart .closed { fill: var(--c-closed); }
#statusView svg.chart .val { fill: var(--text); font-size: 10.5px; }
@media (max-width: 1240px) {
  #statusView .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  #statusView .g3, #statusView .g2 { grid-template-columns: 1fr; }
}
#statusView .sb-btn { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 5px 12px; cursor: pointer; font-weight: 550; }
#statusView .sb-btn:hover:not(:disabled) { background: var(--hover); }
#statusView .sb-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
#statusView .sb-btn.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
#statusView .sb-btn:disabled { opacity: .5; cursor: default; }
#statusView .sb-btn.sm { padding: 2px 9px; font-size: 12px; }
#statusView #sb-page-updates { flex: 1; overflow-y: auto; padding: 18px 20px 30px; }
#statusView .upd { max-width: 1100px; margin: 0 auto; }
#statusView .upd .uhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#statusView .upd h2 { font-size: 15px; margin: 0; }
#statusView .upd h2 small { font-weight: 400; margin-left: 6px; }
#statusView .upd .uhead .grow { flex: 1; min-width: 200px; }
#statusView .drop { margin-top: 12px; padding: 16px; border: 2px dashed var(--line); border-radius: 8px; text-align: center; color: var(--muted);
  background: var(--panel); cursor: pointer; }
#statusView .drop.over { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
#statusView .note { margin-top: 10px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); }
#statusView .note.ok { border-color: var(--s-closed); }
#statusView .note.err { border-color: var(--warn); background: var(--warn-bg); }
#statusView .upd h3 { font-size: 13px; margin: 22px 0 8px; }
#statusView .tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
#statusView .tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px;
  background: var(--panel-2); border-bottom: 1px solid var(--line); }
#statusView .tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
#statusView .tbl tr:last-child td { border-bottom: 0; }
#statusView .tbl td.num, #statusView .tbl th.num { font: 11.5px ui-monospace, Consolas, monospace; white-space: nowrap; }
#statusView .tbl td.tt { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#statusView .toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; }
#statusView .chg { white-space: nowrap; }
#statusView .ok { color: var(--s-closed); font-weight: 600; }
#statusView .need { color: var(--warn); font-weight: 600; }
#statusView .badge.upd { color: var(--accent); background: var(--accent-bg); border-color: transparent; }
#statusView .upd .tile .big { font-size: 22px; }
#statusView .whead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#statusView .dash .whead h2 { margin: 0; }
#statusView .whead .hnav { margin-left: 0; }
#statusView .whead .hnav button { width: 28px; height: 26px; font-size: 16px; }
#statusView .whead .hnav button:disabled { opacity: .4; cursor: default; }
#statusView .whead small { margin-left: auto; }
#statusView svg.chart .hit { fill: transparent; }
#statusView svg.chart g:hover .hit { fill: var(--hover); opacity: .6; }
#statusView svg.chart .net { font-weight: 650; font-size: 13px; fill: var(--muted); }
#statusView svg.chart .net.up { fill: var(--warn); }
#statusView svg.chart .net.down { fill: var(--c-closed); }
#statusView svg.chart .fut text { opacity: .45; }
#statusView .tbl.wk th.nt, #statusView .tbl.wk td.nt { text-align: right; width: 70px; font-weight: 650; font-variant-numeric: tabular-nums; }
#statusView .tbl.wk td.bc { width: 30%; white-space: nowrap; }
#statusView .tbl.wk td.bc span { display: inline-block; min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
#statusView .mini { display: inline-block; width: calc(100% - 40px); height: 8px; border-radius: 4px; background: var(--panel-2); vertical-align: middle; margin-right: 6px; overflow: hidden; }
#statusView .mini i { display: block; height: 100%; border-radius: 4px; }
#statusView .mini i.created { background: var(--c-created); }
#statusView .mini i.closed { background: var(--c-closed); }
#statusView .tbl.wk tr.tot td { font-weight: 650; background: var(--panel-2); border-top: 1px solid var(--line); }
#statusView .tbl.wk tr.tot td.bc { text-align: right; }
#statusView .whead.sec2 { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
#statusView a.hbar.ib { color: var(--text); border-radius: 4px; }
#statusView a.hbar.ib:hover { text-decoration: none; background: var(--hover); }
#statusView .tbl.iters td.n, #statusView .tbl.iters th.n { text-align: right; }
#statusView .tbl.cards .cco { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#statusView .tools.inl select { max-width: 100%; }
#statusView .whead.sec1 { margin-top: 4px; }
#statusView svg.chart .net { font-size: 10.5px; }
#statusView svg.chart .part rect.created, #statusView svg.chart .part rect.closed { opacity: .45; }
#statusView svg.chart .bl { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
#statusView svg.chart .blpt { fill: var(--accent); }
#statusView svg.chart .upt { fill: var(--panel); stroke: var(--text); stroke-width: 2; }
#statusView .legend i.ln { height: 2px; width: 14px; background: var(--accent); vertical-align: 3px; }
#statusView .legend i.dot { border-radius: 50%; border: 2px solid var(--text); background: var(--panel); width: 8px; height: 8px; }
#statusView .dvhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; font-size: 12px; }
#statusView .dvhead h4 { margin: 0; }
#statusView .badge.mock { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
#statusView .badge.flag { color: var(--warn); border-color: var(--warn-bg); margin: 1px 0; }
#statusView tr.rowlink { cursor: pointer; }
#statusView tr.rowlink:hover td { background: var(--hover); }
#statusView .tbl td.nw { white-space: nowrap; }
#statusView .pill.stg { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
#statusView .badge.flag.red { color: #fff; background: var(--warn); border-color: transparent; }
#statusView .red { color: var(--warn); font-weight: 650; }
#statusView .tbl td.n, #statusView .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
#statusView .tbl.cust td.stg-cell { min-width: 120px; }
#statusView .stack.sm { height: 9px; margin: 3px 0; }
#statusView .stack.sm > div + div, #statusView .stack > div + div { border-left: 2px solid var(--panel); }
#statusView .dash.wide { max-width: 1400px; }
#statusView .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  #statusView .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#statusView .tools.inl { padding: 8px 0; background: none; border: 0; flex-wrap: wrap; }
#statusView .tools.inl label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
#statusView .track.dual { display: flex; }
#statusView .track.dual .fill { border-radius: 0; }
#statusView .whead .spacer { flex: 1; }
#statusView .hscroll { overflow-x: auto; }
#statusView .dash { min-width: 0; }
#statusView .ty { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 17px; white-space: nowrap; }
#statusView .ty-def { color: var(--s-cust); background: var(--s-cust-bg); }
#statusView .ty-feat { color: var(--s-new); background: var(--s-new-bg); }
#statusView .ty-none { color: var(--s-gray); background: var(--s-gray-bg); }
#statusView .split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 10px 0 8px; gap: 2px; }
#statusView .split .ty-def { background: var(--s-cust); }
#statusView .split .ty-feat { background: var(--s-new); }
#statusView .split .ty-none { background: var(--s-gray); opacity: .5; }
#statusView .kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#statusView .kv3 div { display: flex; flex-direction: column; min-width: 0; }
#statusView .kv3 b { font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
#statusView .kv3 span { font-size: 11px; color: var(--muted); }
#statusView .ty-def-t { color: var(--s-cust); }
#statusView .ty-feat-t { color: var(--s-new); }
#statusView .ty-none-t { color: var(--s-gray); }
#statusView .fl { display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: 12px; }
#statusView .fl .track { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line-2); }
#statusView .fl .fill { height: 100%; border-radius: 5px; }
#statusView .fl .c-created { background: var(--c-created); }
#statusView .fl .c-closed { background: var(--c-closed); }
#statusView .fl b { text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; }
#statusView .tbl.cust tr.grp th { border-bottom: 0; padding-bottom: 2px; font-size: 10px; }
#statusView .tbl.cust td.g-tk { background: color-mix(in srgb, var(--accent) 4%, transparent); }
#statusView .tbl.cust td.g-cd { background: color-mix(in srgb, var(--s-dev) 5%, transparent); }
#statusView .tbl.cust th.g-tk { color: var(--accent); }
#statusView .tbl.cust th.g-cd { color: var(--s-dev); }
#statusView .tbl.cust .gfirst { border-left: 1px solid var(--line); }
#statusView .tbl.cust td.warnnum { color: var(--warn); font-weight: 650; }
#statusView .tbl.cust tbody tr:hover td { background: var(--hover); }
#statusView details.sect > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
#statusView details.sect > summary::-webkit-details-marker { display: none; }
#statusView details.sect > summary::before { content: "\25B8"; color: var(--muted); font-size: 11px; transition: transform .15s; }
#statusView details.sect[open] > summary::before { transform: rotate(90deg); }
#statusView details.sect > summary h4 { margin: 0; }
#statusView details.sect[open] > summary { margin-bottom: 8px; }
#statusView .tbl.cards td.ctitle { max-width: 0; width: 32%; min-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#statusView .tbl.cards td.flags { min-width: 130px; }
#statusView .tbl.cards td { vertical-align: top; }
#statusView .tbl.cards td.flags .badge { white-space: normal; text-align: left; }
#statusView .tbl tr.sel td { background: var(--sel); }
#statusView .logo { background: #fff; padding: 2px; }
#statusView #sb-page-tickets #sb-detail { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
#statusView .ph, #statusView .masof, #statusView .sortsel-wrap, #statusView .chartnote, #statusView #sb-topbar nav .ico { display: none; }
#statusView .mlist { display: flex; flex-direction: column; }
#statusView .mcard { display: block; padding: 10px 2px; border-bottom: 1px solid var(--line-2); color: var(--text); min-width: 0; cursor: pointer; }
#statusView .mcard:last-child { border-bottom: 0; }
#statusView .mcard:hover, #statusView .mcard:active { text-decoration: none; background: var(--hover); }
#statusView .mcard.sel { background: var(--sel); }
#statusView .mcard .r1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
#statusView .mcard .r1 .end { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
#statusView .mcard .r1 .end.red { color: var(--warn); }
#statusView .mcard .num { font: 12px ui-monospace, Consolas, monospace; color: var(--muted); white-space: nowrap; }
#statusView .mcard .mt { margin-top: 3px; font-weight: 550; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#statusView .mcard .mm { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
#statusView .mcard .mm > * { min-width: 0; }
#statusView .mcard .cl1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 12.5px; }
#statusView .mcard .tkl { color: var(--accent); font-weight: 600; }
#statusView .mcard .cdl { color: var(--s-dev); font-weight: 600; }
#statusView .mcard .nm { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#statusView .mcard .bigr { margin-left: auto; white-space: nowrap; }
#statusView .mcard .bigr b { font-size: 20px; font-variant-numeric: tabular-nums; }
#statusView .mcard .stack.sm { margin-top: 8px; }
#statusView .mcard .tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#statusView .mcard .tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-2); font: 12px ui-monospace, Consolas, monospace; color: var(--accent); }
@media (max-width: 900px) {
  #statusView .dt { display: none !important; }
  #statusView .ph { display: revert; }
  #statusView { font-size: 14px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  #statusView #sb-footer { display: none; }
  #statusView #sb-topbar { gap: 10px; padding: env(safe-area-inset-top) 12px 0; height: calc(50px + env(safe-area-inset-top)); }
  #statusView .brand { font-size: 15px; }
  #statusView .asof { padding: 3px 9px; }
  #statusView .avatar { width: 34px; height: 34px; }
  #statusView #sb-topbar nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; gap: 0; background: var(--panel);
    border-top: 1px solid var(--line); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  #statusView #sb-topbar nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 0; border-radius: 0; font-size: 11px; }
  #statusView #sb-topbar nav a:hover, #statusView #sb-topbar nav a.on { background: none; }
  #statusView #sb-topbar nav a.on .ico { background: var(--accent-bg); }
  #statusView #sb-topbar nav .ico { display: block; width: 46px; height: 28px; padding: 3px 12px; border-radius: 14px; fill: none; stroke: currentColor;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  #statusView .menu { min-width: 260px; max-width: calc(100vw - 24px); }
  #statusView .masof { display: block; padding: 4px 10px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
  #statusView #sb-toast { left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); max-width: none; font-size: 13.5px; }
  #statusView input[type="search"], #statusView select { font-size: 16px; min-height: 40px; min-width: 0; max-width: 100%; }
  #statusView .sb-btn, #statusView .msbtn { min-height: 40px; }
  #statusView .menu > a, #statusView .menu > button, #statusView .mrow { min-height: 44px; }
  #statusView #sb-page-dashboard, #statusView #sb-page-week, #statusView #sb-page-customers, #statusView #sb-page-cards, #statusView #sb-page-updates { padding: 12px 12px 24px; }
  #statusView .dash h2 { flex-wrap: wrap; font-size: 16px; }
  #statusView .whead { flex-wrap: wrap; gap: 8px; }
  #statusView .whead .cosel { flex: 1 1 100%; width: 100%; }
  #statusView .whead .hnav button { width: 44px; height: 40px; font-size: 20px; }
  #statusView .grid { gap: 8px; }
  #statusView .tile { padding: 10px 12px; }
  #statusView .tile .big { font-size: 24px; }
  #statusView .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #statusView .g3, #statusView .g2 { grid-template-columns: minmax(0, 1fr); }
  #statusView .g3.nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #statusView .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #statusView .g5 > :nth-child(n+4) { grid-column: 1 / -1; }
  #statusView .nums .tile, #statusView .g5 > :nth-child(-n+3) { padding: 8px 10px; }
  #statusView .nums .tile .big, #statusView .g5 > :nth-child(-n+3) .big { font-size: 21px; }
  #statusView .nums .tile .lbl, #statusView .nums .tile .sub, #statusView .g5 > :nth-child(-n+3) .lbl, #statusView .g5 > :nth-child(-n+3) .sub { font-size: 11.5px; }
  #statusView .hbar { grid-template-columns: 104px minmax(0, 1fr) 30px; }
  #statusView .hbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #statusView .legend { gap: 4px 12px; }
  #statusView .chartnote { display: block; min-height: 18px; margin: 4px 0 2px; font-size: 12.5px; color: var(--text); }
  #statusView .chartnote:empty::before { content: "Tap a bar for details"; color: var(--muted); }
  #statusView .chartnote.line:empty::before { content: "Tap a point for details"; }
  #statusView .tools.inl { gap: 8px; }
  #statusView .tools.inl input[type="search"] { flex: 1 1 100%; }
  #statusView .tools.inl select { flex: 1 1 100%; width: 100%; }
  #statusView .dvhead { gap: 4px 8px; }
  #statusView .tbl.wk .mini { display: none; }
  #statusView .tbl.wk td.bc { width: 64px; text-align: right; }
  #statusView .tbl.wk th:nth-child(2), #statusView .tbl.wk th:nth-child(3) { text-align: right; }
  #statusView .tbl.wk td:first-child { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #statusView .tbl.wk th.nt, #statusView .tbl.wk td.nt { width: 52px; }
  #statusView #sb-page-tickets { padding: 0; gap: 0; }
  #statusView #sb-page-tickets.with-detail { grid-template-columns: minmax(0, 1fr); }
  #statusView #sb-tlist { border: 0; border-radius: 0; box-shadow: none; }
  #statusView .tools { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  #statusView .tools input[type="search"] { flex: 1 1 100%; min-width: 0; max-width: none; }
  #statusView #sb-statusms, #statusView #sb-techms, #statusView #sb-tk-co, #statusView #sb-tk-sort { flex: 1 1 calc(50% - 4px); min-width: 0; display: block; }
  #statusView .msbtn, #statusView #sb-tk-co select, #statusView #sb-tk-sort select { width: 100%; max-width: none; }
  #statusView .msbtn { justify-content: space-between; }
  #statusView #sb-listcount { flex: 1 1 100%; font-size: 12px; }
  #statusView #sb-tablewrap .mlist { padding: 0 12px; }
  #statusView .msmenu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; min-width: 0; max-height: 75vh; border-radius: 14px 14px 0 0;
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
  #statusView .msback { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(0, 0, 0, .4); }
  #statusView #sb-page-tickets #sb-detail, #statusView .drawer { position: fixed; inset: 0; width: auto; max-width: none; z-index: 45; border: 0; border-radius: 0;
    box-shadow: none; padding: 0 14px calc(24px + env(safe-area-inset-bottom)); }
  #statusView .sheetbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 2; margin: 0 -14px 10px;
    padding: calc(6px + env(safe-area-inset-top)) 14px 6px; min-height: 50px; background: var(--panel); border-bottom: 1px solid var(--line); }
  #statusView .sheetbar .linkbtn { font-size: 16px; min-height: 40px; padding-right: 8px; }
  #statusView .sheetbar .num { margin-left: auto; font: 12.5px ui-monospace, Consolas, monospace; color: var(--muted); }
  #statusView .sb-panel h1 { font-size: 17px; }
  #statusView .sb-panel .x { display: none; }
  #statusView .upd .uhead .grow { min-width: 0; flex-basis: 100%; }
  #statusView .upd .tbl .co, #statusView .upd .tbl .hide-ph { display: none; }
  #statusView .upd .tbl td.tt { max-width: 0; width: 60%; }
}
#statusView svg.chart g.on .hit { fill: var(--hover); opacity: .9; }
#statusView .mcard.nolink { cursor: default; }
#statusView .mcard.nolink:hover { background: none; }
#statusView .mcard .tchip:hover { text-decoration: none; background: var(--hover); }
@media (max-width: 900px) {
  #statusView .upd .chg { white-space: normal; }
}
#statusView .mcard .tchip .pill { font: 600 11px/17px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#statusView .tgl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; white-space: nowrap; }
#statusView .tgl .cnt { font-variant-numeric: tabular-nums; }
#statusView .pie { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 4px; }
#statusView .pie svg { width: 132px; height: 132px; flex: none; }
#statusView .pie circle { fill: none; stroke-width: 6; }
#statusView .pie text { text-anchor: middle; fill: var(--text); font-family: system-ui, sans-serif; }
#statusView .pie .pt { font-size: 8px; font-weight: 650; font-variant-numeric: tabular-nums; }
#statusView .pie .pl { font-size: 3.6px; fill: var(--muted); }
#statusView .plist { flex: 1 1 170px; min-width: 0; font-size: 12px; }
#statusView .plist > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 34px; align-items: center; gap: 6px; padding: 2px 0; }
#statusView .plist i { width: 9px; height: 9px; border-radius: 2px; }
#statusView .plist .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#statusView .plist b { font-variant-numeric: tabular-nums; text-align: right; }
#statusView .plist .muted { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  #statusView .tgl { min-height: 36px; font-size: 13px; }
}
#statusView .tile.sect-tk { border-top: 3px solid var(--accent); }
#statusView .tile.sect-cd { border-top: 3px solid var(--s-dev); }
#statusView .stitle { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-size: 15.5px; font-weight: 700; color: var(--text); }
#statusView .stitle .scount { padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 650; line-height: 20px; font-variant-numeric: tabular-nums; }
#statusView .stitle.tk .scount { color: var(--accent); background: var(--accent-bg); }
#statusView .stitle.cd .scount { color: var(--s-dev); background: var(--s-dev-bg); }
#statusView .help.qi { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1px solid var(--line);
  border-radius: 50%; font-size: 10.5px; font-weight: 600; color: var(--muted); }
#statusView details.sect > summary .stitle { flex: 1; }
#statusView .sect-tk .dvhead, #statusView .sect-cd .dvhead { margin-bottom: 10px; }
#statusView .tbl.grp td.tg { background: color-mix(in srgb, var(--accent) 4%, transparent); }
#statusView .tbl.grp th.tg { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel-2)); }
#statusView .tbl.grp td.cg { background: color-mix(in srgb, var(--s-dev) 5%, transparent); }
#statusView .tbl.grp th.cg { color: var(--s-dev); background: color-mix(in srgb, var(--s-dev) 10%, var(--panel-2)); }
#statusView .tbl.grp .gfirst { border-left: 1px solid var(--line); }
#statusView .tbl.grp tbody tr:hover td { background: var(--hover); }
#statusView .tbl.grp tr.sel td { background: var(--sel); }
#statusView .demopill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 650;
  color: #fff; background: var(--warn); white-space: nowrap; cursor: help; }
#statusView.demo #sb-footer { color: var(--warn); }


/* --- Integration with the Manager shell ------------------------------ */

/* Manager's tokens: warm graphite surfaces, oak accent. Status colours
   (ticket/card status pills, chart series) keep their own hues: they
   carry meaning and must stay distinguishable. */
#statusView {
  --bg: #1c1b19; --panel: #26241f; --panel-2: #2b2924; --line: #3d3a32; --line-2: #33302a;
  --text: #ede8e0; --muted: #a89f8e;
  --accent: #d9b27c; --accent-bg: rgba(184, 135, 75, 0.16); --accent-line: #6e5636;
  --sel: rgba(184, 135, 75, 0.14); --hover: #302d26; --shadow: none;
  font: 13px/1.45 var(--font-body);
  position: relative;
  background: var(--bg);
}

/* Sub-navigation bar (the Ticket Helper's header, minus its logo and user
   menu, which Manager's own top bar already provides). */
#statusView #sb-topbar { height: 44px; padding: 0 24px 0 18px; background: var(--bg); }
#statusView #sb-topbar nav a { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em; }
#statusView button.asof { cursor: pointer; font-family: var(--font-body); }
#statusView button.asof:hover { border-color: var(--accent-line); color: var(--text); }
#statusView .dash h2, #statusView .upd h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; }
#statusView .tile .big { font-family: var(--font-display); font-weight: 600; }
#statusView svg.chart text { font-family: var(--font-body); }

/* The customer/cards drawer sits under this view's own sub-bar instead of
   the viewport top (Manager's top bar is above it). */
#statusView .drawer { position: absolute; top: 44px; bottom: 0; }
#statusView #sb-toast { bottom: 50px; }
#statusView #sb-footer { background: var(--bg); }

@media (max-width: 900px) {
  #statusView #sb-topbar { height: auto; min-height: 44px; padding: 6px 12px; }
  #statusView .drawer { position: fixed; top: 0; }
}
#statusView .warnpill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; font-size: 12px;
  font-weight: 600; color: var(--warn); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  cursor: help; white-space: nowrap; margin-right: 8px; }
#statusView svg.chart.flow .grid.zero { stroke: var(--muted); stroke-width: 1.2; }
#statusView svg.chart .netline { fill: none; stroke: #e5484d; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
#statusView svg.chart .netdot { fill: #e5484d; pointer-events: none; }
#statusView .legend i.netln { width: 16px; height: 0; border-top: 2px solid #e5484d; border-radius: 0; vertical-align: 3px; }
#statusView .sb-exclnote { margin: -4px 0 10px; font-size: 12px; color: var(--muted); }
#statusView select.weeksel { margin-right: 8px; }
@media (max-width: 900px) { #statusView .whead .weeksel { flex: 1 1 100%; width: 100%; margin-right: 0; } }

/* release windows on the weekly charts: alternating colours at 10% opacity */
#statusView svg.chart .relband { pointer-events: none; }
#statusView svg.chart .relband.rel-a { fill: #d9b27c; fill-opacity: 0.10; }
#statusView svg.chart .relband.rel-b { fill: #7db0ff; fill-opacity: 0.10; }
#statusView svg.chart .rellbl { font-size: 10px; font-weight: 600; cursor: help; }
#statusView svg.chart .rellbl.rel-a { fill: #d9b27c; }
#statusView svg.chart .rellbl.rel-b { fill: #7db0ff; }
#statusView .legend i.relsw { width: 14px; background: linear-gradient(90deg, rgba(217, 178, 124, 0.35) 50%, rgba(125, 176, 255, 0.35) 50%); }

/* section tabs (Dashboard, Weekly report): sticky; clicking scrolls to the section */
#statusView .whead.sectabs-row { position: sticky; top: -18px; z-index: 6; background: var(--bg); margin: 4px -20px 12px;
  padding: 14px 20px 8px; border-bottom: 1px solid var(--line); }
#statusView .dash > .whead.sectabs-row:first-child { margin-top: -18px; }
#statusView .sectabs { display: flex; gap: 2px; }
#statusView .sectabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 12px 7px;
  font: 600 14px var(--font-display); color: var(--muted); cursor: pointer; letter-spacing: 0.01em; }
#statusView .sectabs button:hover { color: var(--text); }
#statusView .sectabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 900px) {
  #statusView .whead.sectabs-row { top: -12px; margin: 4px -12px 10px; padding: 10px 12px 6px; }
  #statusView .dash > .whead.sectabs-row:first-child { margin-top: -12px; }
  #statusView .whead.sectabs-row .sectabs { flex: 1 1 100%; }
  #statusView .whead.sectabs-row .spacer { display: none; }
  #statusView .whead.sectabs-row .weeksel, #statusView .whead.sectabs-row .cosel { flex: 1 1 calc(50% - 4px); width: auto;
    min-width: 0; max-width: none; margin-right: 0; }
}
