
/* =====================================================================================================================
   (Nov 6, his note: "make sure the design follows the in-game meter, and the notification styles too, as they are very
   ai-generated looking") The site in the meter's own look: its Dark theme's colours (daevameter\src\renderer\tokens.css),
   its type (Segoe UI), its window edges and corners, its tabs, joined one-of bars, buttons, rows and column names, and its
   notices (toast.css) for the site's own notices. No glows, no gradients outside the meter's own bars, no pills, no boxed
   callouts. The accent stays his pick (light violet) unless he takes the meter's blue. */
:root {
  --bg: #0a0b0e;          /* the page (the game, behind the meter's windows) */
  --win: #111318;         /* a window, as the meter's over a dark game */
  --panel: #1b1e25;       /* the meter's panel: its boss line, its inputs */
  --panel-2: #22262e;
  --well: #0d0f13;
  --line: #23262d;        /* the meter's rgba(255, 255, 255, 0.08) on its window */
  --line-2: #33373f;      /* the meter's edge */
  --fg: #e9ecf2;
  --sub: #9aa3b3;
  --dim: #8a92a2;
  --track: rgba(255, 255, 255, 0.05);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r: 8px;               /* the meter's card corner (its windows 10, its controls 6) */
  --r-win: 10px;
  --r-ctl: 6px;
  --sel: color-mix(in srgb, var(--accent) 18%, transparent);
  --sel-edge: color-mix(in srgb, var(--accent) 65%, transparent);
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
body { font-family: var(--font); font-size: 16px; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: normal; letter-spacing: 0; font-weight: 600; }
h1 { font-weight: 700; }
.hero h1 { font-weight: 700; letter-spacing: -0.01em; }
.brand { font-family: var(--display); font-stretch: normal; font-weight: 700; letter-spacing: 0; }
.tbl, .mini, .mtbl, .bosses, .clear .t, .bosses .t, .t-big, .t-count { font-stretch: normal; }
:focus-visible { outline: 2px solid var(--sel-edge); outline-offset: 2px; }

/* headings: plain, a hairline under a section's (the meter's tabs' line), no accent bar */
.sec { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sec > h2::after, .sec > h1::after { display: none; }

/* buttons, as the meter's: a quiet one on its track, the main one in the accent */
.btn { background: var(--track); border: 1px solid var(--line-2); border-radius: var(--r-ctl); font-family: var(--font); font-weight: 600; }
.btn:hover { background: var(--track); border-color: #4a4f58; }
.btn.primary { color: #0b1020; }
/* the top bar: the meter's tabs (the open one with a line under it) */
.nav a { font-weight: 500; }
.nav a[aria-current]::after { height: 2px; }

/* one of a few: the meter's joined bar, the chosen part filled */
.seg { border: 0; overflow: visible; gap: 0; flex-wrap: wrap; }
.seg button, .seg button + button { margin: 0 0 0 -1px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 0; background: var(--panel); color: var(--sub); font-weight: 500; box-shadow: none; }
.seg button:first-child { margin-left: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.seg button:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.seg button:only-child { border-radius: var(--r-ctl); }
@media (max-width: 560px) { .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .seg button, .seg button + button { padding: 5px 9px; } } /* (Fable: "Raid" never alone on a second row; after the rules it narrows) */
.seg button:hover { color: var(--fg); background: var(--panel); }
.seg button.on, .seg button[aria-pressed="true"], .seg button[aria-selected="true"], .seg button[aria-checked="true"] { position: relative; z-index: 1; background: var(--sel); border-color: var(--sel-edge); color: var(--fg); font-weight: 600; box-shadow: none; }

/* where a part is turned on: a plain line, no box */
.where { display: block; margin: 12px 0 0; padding: 0; border: 0; background: none; color: var(--sub); }
.where dt { display: inline; color: var(--fg); font-weight: 600; }
.where dt::after { content: ": "; }
.where dd { display: inline; margin: 0; }
.callout { padding: 0; border: 0; background: none; }
.callout p { color: var(--sub); }

/* lists: the meter's quiet dot, not a coloured dash */
.list li::before { width: 4px; height: 4px; top: 0.72em; left: 6px; border-radius: 50%; background: var(--sub); }

/* the site's panels: the meter's windows (its edge, its card corner, no shadow) */
.mwin, .tbl-wrap, .card, .fold, .flow li, .name-demo, .t-next, .t-running, .t-card, .stat, .wm, .empty { background: var(--win); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: none; }
.flow li, .flow li.hl { border-top-width: 1px; border-top-color: var(--line-2); }
.shot img { border-color: var(--line-2); border-radius: var(--r); }
.fold > summary:hover { background: var(--panel); }
.step::before { background: var(--win); border-color: var(--line-2); font-family: var(--display); font-stretch: normal; font-weight: 600; border-radius: var(--r-ctl); }

/* tables: the meter's column names and rows */
.tbl th, .mini th, .bosses th, .facts th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sub); }
.tbl caption b { font-family: var(--display); font-stretch: normal; font-weight: 600; }
.tbl td, .mini td, .bosses td { border-top-color: var(--line); }

/* small labels: the meter's words, no pill around them */
.fewtag, .card-top .lvl, .titlebar h1 .lvl { border: 0; padding: 0; background: none; color: var(--sub); font-weight: 500; }
.t-times li { border: 0; background: none; padding: 0; color: var(--sub); }
.t-times li + li::before { content: ", "; }
.t-times { gap: 0; }
.t-conf { box-shadow: none; background: none; padding: 0; }

/* states, as the meter's: a quiet line; an error with a red mark at its left; a notice like the meter's notices */
.loading { color: var(--sub); }
.error { border: 0; background: none; padding: 4px 0 4px 14px; position: relative; color: var(--fg); }
.error::before { content: ""; position: absolute; left: 2px; top: 6px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--danger); }
.empty { text-align: left; color: var(--sub); }
.kept-note, .t-toast { position: fixed; display: grid; gap: 2px; padding: 0.7em 1em 0.7em 1.05em; border-radius: var(--r-win); overflow: hidden; background: rgba(15, 17, 22, 0.94); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--sub); }
/* (his answer, Nov 6: the meter's own notices look generated: the site's are plain, no colour strip, no round icon) */
.kept-note::before, .t-toast::before { display: none; }
.kept-note, .t-toast { padding-left: 1em; }
.t-toast { position: relative; box-shadow: var(--shadow); }
.t-now-line { box-shadow: none; }
.t-now-line span { border-radius: 3px; }
.hcard, .wm-card, .viewer { border-radius: var(--r-win); border-color: var(--line-2); background: rgba(15, 17, 22, 0.97); }

/* (no colour strip down a card's side: an event's colour is the dot by its name, as in the meter's Event Tracker) */
.t-next::before, .t-card::before { display: none; }
.t-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ev); flex: none; }

/* (Help, his pick A, Nov 6) the questions and fixes as rows like the meter's: no boxes, the page's full width, each
   topic named over its rows */
.folds { max-width: none; gap: 0; }
.folds .fold { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.folds .fold > summary { padding: 13px 40px 13px 0; font-weight: 600; border-radius: 0; }
.folds .fold > summary::after { right: 8px; }
.folds .fold > summary:hover { background: none; color: var(--accent-tint); }
.folds .fold[open] > summary { border-bottom: 0; }
.folds .fold .fold-in { padding: 0 40px 16px 0; max-width: 60em; }
.help-part .fold-group { margin: 34px 0 0; padding-bottom: 8px; font-size: 15px; color: var(--sub); border-bottom: 1px solid var(--line-2); }
.help-part .sec + .fold-group { margin-top: 4px; }

/* (the clear page, his note Nov 6: nothing said only on hover) each boss: when it died and how long its kill took, in
   words; the row says it opens the fight; one line says what the players' numbers are */
.kill .t .tl { margin-right: 4px; color: var(--sub); font-size: 13px; font-weight: 400; }
.kill .go-l { color: var(--accent-tint); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
a.kill.go:hover .go-l { text-decoration: underline; }
.kp-key { margin: 12px 2px 2px; color: var(--sub); font-size: 13.5px; }
@media (max-width: 900px) { .kill { grid-template-columns: minmax(0, 1fr) auto auto; } }
@media (max-width: 560px) { .kill { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; } .kill .at { grid-column: 1; } .kill .go-l { grid-column: 2; grid-row: 1 / span 2; align-self: center; } .kill .t { grid-column: 1; grid-row: 2; } }

/* (the home page's copy of the meter, his notes Nov 6: "icon here looks very big", then "the meters image is still big":
   the meter's own proportions, its 13 px text and 24 px rows at about 1.15 times, no wider than 540 px, the words beside
   it given the room) */
.hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
.live { width: 100%; max-width: 540px; justify-self: end; }
.mhead { gap: 8px; padding: 10px 14px 4px; font-size: 14px; }
.mtabs { gap: 14px; padding: 0 14px; font-size: 13.5px; }
.mtabs span { padding: 4px 0 6px; }
.mboss { margin: 8px 10px 3px; padding: 5px 10px; font-size: 13px; }
.mtbl { --cols: 1.8em minmax(0, 1fr) 4.6em 4.6em 3.3em 4.3em; padding: 0 10px 5px; }
.mtbl [role="columnheader"] { padding: 6px 6px 4px; font-size: 10.5px; }
.mtbl [role="cell"] { min-height: 30px; padding: 0 6px; font-size: 14px; }
.mtbl .rank { font-size: 12.5px; }
.mtbl .who { gap: 7px; font-size: 14.5px; }
.mtbl .who img { width: 1.15em; height: 1.15em; }
.mfoot { gap: 7px; padding: 6px 14px 8px; font-size: 12.5px; }
.mfoot .ok { width: 7px; height: 7px; }
.live figcaption { margin-top: 10px; font-size: 13.5px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .live { justify-self: start; } }
@media (max-width: 560px) { .mtbl { --cols: 1.6em minmax(0, 1fr) 4.6em 3.3em; } }

/* (the Timers page's reminders and the Records' "kept list" note, Nov 6: as the meter's notices since 2.3.25, his pick A
   "Meter rows": a reminder is one of the meter's rows, the event's colour, its name, when in bold, its time dim, a bar in
   its colour draining to its start; the rows touching as one window; no strip, no big shadow, no slide: a fade) */
.t-toasts { gap: 0; width: min(380px, calc(100vw - 32px)); }
.t-toast { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto 24px; align-items: center; column-gap: 9px; height: 38px; padding: 0 6px 0 12px; overflow: hidden; border: 1px solid var(--line-2); border-top-width: 0; border-radius: 0; background: rgba(15, 17, 22, 0.97); box-shadow: none; font-variant-numeric: tabular-nums; animation: t-fade 0.18s ease-out both; }
.t-toast:first-child { border-top-width: 1px; border-top-left-radius: var(--r-win); border-top-right-radius: var(--r-win); }
.t-toast:last-child { border-bottom-left-radius: var(--r-win); border-bottom-right-radius: var(--r-win); }
.t-toast + .t-toast { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.14); }
.t-toast > :not(.t-toast-bar) { position: relative; }
.t-toast-bar { position: absolute; inset: 1px auto 1px 0; width: 100%; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--ev, var(--accent)) 50%, transparent), color-mix(in srgb, var(--ev, var(--accent)) 16%, transparent)); transition: width var(--drain, 0ms) linear; }
.t-toast .nm { min-width: 0; overflow: hidden; color: var(--fg); font-size: 14.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.t-toast .v1 { color: var(--fg); font-size: 14.5px; font-weight: 650; white-space: nowrap; }
.t-toast .dim { color: var(--sub); font-size: 13.5px; white-space: nowrap; }
.t-toast .t-toast-x { position: relative; top: auto; right: auto; width: 24px; height: 24px; font-size: 17px; }
.kept-note { box-shadow: none; padding: 9px 14px; font-size: 14px; animation: t-fade 0.18s ease-out both; }
@keyframes t-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .t-toast, .kept-note { animation: none; } .t-toast-bar { transition: none; } }
