/* Layout: copies the CS scoreboard (Freshdesk look): grey page, white toolbar, white panels with a soft shadow. Light only. */
:root {
  --page: #ebeff3; --card: #ffffff; --card-2: #f5f7f9; --hover: #f3f5f7;
  --line: #ebeff3; --line-strong: #c9d3db;
  --ink: #12334c; --ink-2: #485a68; --muted: #6f7c87;
  --blue: #2c5cc5; --blue-soft: #eef2fb;
  --good: #00795c; --good-soft: #e5f2ee;
  --warn: #ac5000; --warn-soft: #fbefe4;
  --crit: #cd2629; --crit-soft: #fbe9e9;
  --shadow: 0 2px 4px rgba(18, 52, 77, .16);
  --f: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  --r: 4px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--f); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 0 20px 40px; }
.toolbar { margin: 0 -20px; padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toolbar .filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11px; }
.toolbar .stamp { font-size: 13px; color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
button:focus-visible, .link:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--blue); }
header.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
h1 { font-size: 16px; font-weight: 600; margin: 0; text-wrap: balance; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.seg { display: flex; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.seg button, .seg .segbtn { text-decoration: none; font: 400 13px/1 var(--f); color: var(--ink-2); background: transparent; border: 0; border-right: 1px solid var(--line); padding: 9px 14px; cursor: pointer; }
.seg button:last-child, .seg .segbtn:last-child { border-right: 0; }
.seg button:hover, .seg .segbtn:hover { background: var(--hover); }
.seg button[aria-pressed="true"], .seg .segbtn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.mock { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink-2); font-size: 13px; }
.mock b { font-weight: 600; color: var(--ink); }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 180px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile .label { color: var(--ink-2); }
.tile .value { font-size: 30px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile.new .value { color: var(--crit); }
.tile.progress .value { color: var(--warn); }
.tile.done .value { color: var(--good); }
section.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.panel > h2 { font-size: 15px; font-weight: 600; margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel > h2 span { font-size: 12px; font-weight: 400; color: var(--muted); }
.scroll { overflow-x: auto; border-radius: 0 0 var(--r) var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 1000px; }
th, td { text-align: left; padding: 10px 8px; vertical-align: top; }
th:first-child, td:first-child { padding-left: 20px; }
th:nth-child(2), td:nth-child(2) { padding-left: 8px; }
th:last-child, td:last-child { padding-right: 20px; text-align: right; }
thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--card-2); line-height: 1.3; vertical-align: bottom; }
tbody tr { transition: background-color .2s ease; }
tbody tr:hover td { background: var(--hover); }
.flow { font-weight: 600; }
.node, .sm { color: var(--muted); font-size: 12px; }
.msg { font-family: Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); max-width: 300px; overflow-wrap: anywhere; }
.when { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }
.pill.new { color: var(--crit); background: var(--crit-soft); }
.pill.progress { color: var(--warn); background: var(--warn-soft); }
.pill.done { color: var(--good); background: var(--good-soft); }
.run { white-space: nowrap; }
.run a { color: var(--blue); }
.run.gone { color: var(--muted); }
.run small { display: block; color: var(--muted); font-size: 12px; }
.act { font: 400 13px/1 var(--f); color: var(--ink-2); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.act:hover { background: var(--hover); }
.act.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.notes { padding: 14px 20px; }
.notes ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.notes li + li { margin-top: 4px; }
.cb { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
th.chk, td.chk { width: 44px; padding-right: 0; }
.grouprow td { background: var(--card-2); font-weight: 600; border-top: 1px solid var(--line-strong); }
.grouprow .sm { font-weight: 400; margin-left: 8px; }
.grouprow td:last-child { text-align: right; }
tr.sel td { background: var(--blue-soft); }
.bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px; background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.bulk b { font-weight: 600; }
.bulk[hidden] { display: none; }
.grp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grp span { color: var(--muted); font-size: 13px; }
.mock.bad { border-left-color: var(--crit); }
.hint { font-family: var(--f); }
.empty { text-align: center; color: var(--muted); padding: 32px 8px; }
.loginpage { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.loginbox { width: 320px; max-width: calc(100% - 32px); padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.loginbox h1 { font-size: 20px; margin: 0 0 4px; }
.loginproblem { margin: 12px 0 0; padding: 8px 10px; border-radius: var(--r); background: var(--crit-soft); color: var(--crit); font-size: 13px; }
.google-signin { display: block; margin-top: 24px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); background: var(--card); text-align: center; text-decoration: none; font-weight: 600; }
.google-signin:hover { background: var(--hover); }
