/* Degordian brand (docs/brand/BRAND.md): black/white/greys first, red #FF4438 as accent, Poppins. */
:root {
  --black: #121212; --ink: #121212; --grey-1: #4d4d4f; --grey-2: #848587; --grey-3: #E0E0E2; --grey-4: #ECEDED;
  --white: #FFFFFF; --red: #FF4438;
  --font: "Sailec", "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 15px; line-height: 1.5; }
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
/* Header: one sticky row. Logo | report tabs ............ last refresh, settings, account.
   Solid white (no glass), red only for the active tab and a stale-data warning. */
:root { --top-h: 56px; }
.top { position: sticky; top: 0; z-index: 50; height: var(--top-h); background: var(--white);
       display: flex; align-items: stretch; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--grey-3); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.brand .wordmark { height: 22px; width: auto; display: block; }
.brand .mark { height: 24px; width: auto; display: none; }
.tabs { display: flex; align-items: stretch; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; font-weight: 500;
          color: var(--grey-1); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); border-bottom-color: var(--grey-3); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--red); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.refresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey-2);
           margin-right: 6px; white-space: nowrap; cursor: default; }
.refresh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-2); }
.refresh.stale { color: var(--red); font-weight: 500; }
.refresh.stale .refresh-dot { background: var(--red); }
.refresh.busy { color: var(--ink); }
.refresh.busy .refresh-dot { background: var(--ink); animation: refresh-pulse 1.2s ease-in-out infinite; }
@keyframes refresh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .refresh.busy .refresh-dot { animation: none; } }
.refresh-reload { font-size: 12px; font-weight: 500; margin-left: 4px; }
.refresh-reload[hidden] { display: none; }
.menu-sep { border-top: 1px solid var(--grey-4); margin-top: 6px; padding-top: 6px; }
.menu-panel button.link[disabled] { color: var(--grey-2); cursor: default; background: none; }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
                border-radius: 50%; cursor: pointer; color: var(--grey-1); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--grey-4); color: var(--ink); }
.menu summary:focus-visible { outline: 2px solid var(--black); outline-offset: 1px; }
.menu summary.on { color: var(--ink); }
.menu svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; max-width: calc(100vw - 32px);
              background: var(--white); border: 1px solid var(--grey-3); box-shadow: 0 6px 20px rgba(18, 18, 18, .08);
              padding: 6px 0; z-index: 60; }
.menu-panel a, .menu-panel button.link { display: block; width: 100%; text-align: left; padding: 8px 16px;
              text-decoration: none; font-weight: 400; font-size: 14px; color: var(--ink); }
.menu-panel a:hover, .menu-panel button.link:hover { background: var(--grey-4); }
.menu-panel a[aria-current="page"] { font-weight: 600; }
.menu-who { margin: 0; padding: 8px 16px 10px; font-size: 13px; color: var(--grey-1); border-bottom: 1px solid var(--grey-4);
            overflow-wrap: anywhere; }
.menu-who strong { color: var(--ink); font-weight: 500; }
.menu-note { margin: 0; padding: 8px 16px; font-size: 12px; color: var(--grey-2); }
.placeholder { padding: 48px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .top { padding: 0 12px; gap: 8px; }
  .brand .wordmark { display: none; }
  .brand .mark { display: block; }
  .tabs a { padding: 0 8px; font-size: 14px; }
  .refresh-text { display: none; }
  .refresh { margin-right: 0; padding: 8px; }
}
.dot { color: var(--red); }
nav a { text-decoration: none; font-weight: 500; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
main.narrow { max-width: 440px; padding-top: 80px; }
main.wide { max-width: none; }
h1 { font-weight: 600; font-size: 28px; margin: 8px 0 4px; }
h2 { font-weight: 600; font-size: 18px; margin: 36px 0 8px; }
.muted { color: var(--grey-2); }
.small { font-size: 13px; font-weight: 400; }
.flash { padding: 10px 14px; border-left: 3px solid var(--grey-2); background: var(--grey-4); }
.flash.error { border-color: var(--red); }
.flash.ok { border-color: var(--black); }
table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grey-3); vertical-align: top; }
th { font-weight: 500; color: var(--grey-1); font-size: 13px; }
tr.closed td { color: var(--grey-2); }
.tag { font-size: 11px; padding: 1px 6px; border: 1px solid var(--red); color: var(--red); border-radius: 3px; }
form.row, .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
form.inline { display: inline; }
input, select, button { font: inherit; padding: 7px 10px; border: 1px solid var(--grey-3); border-radius: 4px; background: var(--white); }
input:focus, select:focus { outline: 2px solid var(--black); outline-offset: -1px; }
button { background: var(--black); color: var(--white); border-color: var(--black); cursor: pointer; font-weight: 500; }
button:hover { background: var(--grey-1); }
button.link { background: none; border: none; color: var(--ink); padding: 0; text-decoration: underline; font-weight: 400; }
button.danger { background: var(--white); color: var(--red); border-color: var(--red); }
button.link.danger { border: none; }
label { color: var(--grey-1); font-size: 13px; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cards a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--grey-3);
           border-top: 3px solid var(--black); text-decoration: none; }
.cards a:hover { border-top-color: var(--red); }
.embed { width: 100%; height: calc(100vh - 170px); min-height: 600px; border: 0; }
@media (max-width: 640px) { th:nth-child(2), td:nth-child(2) { display: none; } }
