/* FrostCheck portal. Colours, glass panels and shapes follow the desktop app's violet frost theme (MainWindow.xaml). */
:root {
    --ink: #F4F0FF; --ink-soft: #E1D4F7; --muted: #BCAFCF; --faint: #9A8FAC;
    --base: #453A5C; --tint: rgba(53, 40, 71, .34); --deep: rgba(26, 20, 37, .42);
    --line: rgba(235, 225, 250, .22); --line-soft: rgba(240, 229, 255, .09); --line-strong: rgba(242, 234, 255, .42);
    --glass: rgba(242, 234, 255, .045); --hover: rgba(226, 212, 255, .09);
    --gloss: linear-gradient(135deg, rgba(255, 255, 255, .125), rgba(240, 230, 255, .045) 50%, rgba(231, 214, 255, .065));
    --accent: #DAC1FF; --accent-deep: #B99AE7;
    --high: 194, 71, 95; --medium: 168, 120, 42; --low: 91, 116, 181; --good: 86, 160, 128;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; min-height: 100%; background: var(--base); color: var(--ink); font: 13px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.aurora { position: fixed; inset: 0; z-index: -1; background:
    radial-gradient(900px 620px at 12% -8%, rgba(190, 160, 240, .40), transparent 70%),
    radial-gradient(820px 640px at 96% 104%, rgba(166, 123, 228, .34), transparent 70%),
    radial-gradient(600px 420px at 70% 8%, rgba(150, 170, 230, .16), transparent 70%),
    linear-gradient(160deg, #5A4D74, #453A5C 55%, #4E4268); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 25px; font-weight: 600; margin: 0 0 4px; letter-spacing: .1px; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.lede { color: var(--ink-soft); margin-bottom: 20px; font-size: 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 11px; }
.mono, code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 11.5px; overflow-wrap: anywhere; }

/* the frosted window */
.window { display: grid; grid-template-columns: 208px minmax(0, 1fr); max-width: 1360px; min-height: calc(100vh - 28px); margin: 14px auto; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--tint); backdrop-filter: blur(30px) saturate(1.15); box-shadow: 0 24px 70px rgba(10, 6, 18, .45), inset 0 1px 0 rgba(255, 255, 255, .13); overflow: hidden; }
.side { display: flex; flex-direction: column; padding: 18px 12px 14px; background: linear-gradient(180deg, rgba(26, 20, 37, .31), rgba(33, 25, 45, .18)); border-right: 1px solid rgba(206, 188, 232, .14); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 600; color: var(--ink); padding: 2px 10px 20px; }
.brand:hover { text-decoration: none; }
.side-label { font-size: 9px; font-weight: 600; letter-spacing: .4px; color: #ADA1BF; margin: 10px 15px 10px; }
nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.nav-item { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px 11px 18px; border-radius: 10px; border: 1px solid transparent; color: var(--ink-soft); }
.nav-item:hover { background: var(--hover); text-decoration: none; }
.nav-item.active { color: #fff; font-weight: 600; background: linear-gradient(135deg, rgba(185, 154, 231, .25), rgba(160, 137, 203, .125) 50%, rgba(195, 182, 223, .07)); border-color: rgba(231, 212, 255, .3); }
.nav-item.active::before { content: ""; position: absolute; left: -1px; top: 50%; width: 3px; height: 21px; margin-top: -10.5px; border-radius: 1.5px; background: var(--accent); box-shadow: 0 0 7px rgba(185, 150, 243, .6); }
.count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: rgba(var(--medium), .5); border: 1px solid rgba(var(--medium), .8); color: #fff; font-size: 10px; font-weight: 600; text-align: center; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(210, 191, 239, .125); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { display: block; font-size: 10px; color: #A79BB9; }
main { padding: 28px 30px 40px; min-width: 0; }
.solo { max-width: 560px; margin: 9vh auto 40px; padding: 30px 32px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--tint); backdrop-filter: blur(30px) saturate(1.15); box-shadow: 0 24px 70px rgba(10, 6, 18, .45), inset 0 1px 0 rgba(255, 255, 255, .13); }
.solo .brand { padding: 0 0 18px; font-size: 18px; }

/* panels */
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--glass); padding: 18px 20px; margin-bottom: 14px; }
.panel.gloss { background: var(--gloss); border-color: rgba(218, 200, 244, .31); }
.panel.flush { padding: 0; overflow: hidden; }
.panel.warn { background: rgba(var(--medium), .13); border-color: rgba(var(--medium), .45); }
.panel.danger { background: rgba(var(--high), .13); border-color: rgba(var(--high), .45); }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.section-title h2 { margin: 0; }

/* tiles and chips */
.tile { border-radius: 9px; padding: 10px 14px; border: 1px solid rgba(235, 225, 250, .25); background: rgba(242, 234, 255, .09); }
.tile b { display: block; font-size: 19px; font-weight: 600; line-height: 1.25; }
.tile span { font-size: 10.5px; color: var(--ink-soft); }
.tile p { margin: 6px 0 0; font-size: 11px; color: var(--ink-soft); }
.tile.high, .lead.high { background: rgba(var(--high), .19); border-color: rgba(var(--high), .5); }
.tile.medium, .lead.medium { background: rgba(var(--medium), .19); border-color: rgba(var(--medium), .5); }
.tile.low, .lead.low { background: rgba(var(--low), .19); border-color: rgba(var(--low), .5); }
.tile.good { background: rgba(var(--good), .16); border-color: rgba(var(--good), .45); }
.chip { display: inline-block; padding: 1px 9px 2px; border-radius: 9px; font-size: 10px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(235, 225, 250, .3); background: rgba(242, 234, 255, .08); color: var(--ink); }
.chip.high { background: rgba(var(--high), .55); border-color: rgba(var(--high), .9); color: #fff; }
.chip.medium, .chip.warn { background: rgba(var(--medium), .55); border-color: rgba(var(--medium), .9); color: #fff; }
.chip.low, .chip.info { background: rgba(var(--low), .55); border-color: rgba(var(--low), .9); color: #fff; }
.chip.good { background: rgba(var(--good), .45); border-color: rgba(var(--good), .8); color: #fff; }
.chip.quiet { color: var(--muted); }
.chip.zero { opacity: .45; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .3px; color: var(--muted); padding: 10px 14px; background: rgba(242, 232, 255, .05); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td.tight, th.tight { white-space: nowrap; width: 1%; }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }

/* forms and buttons */
button, .button { display: inline-block; font: inherit; font-weight: 600; color: #fff; padding: 9px 16px; border-radius: 8px; border: 1px solid rgba(234, 220, 255, .56); background: linear-gradient(180deg, rgba(177, 155, 209, .57), rgba(122, 99, 156, .44)); cursor: pointer; }
button:hover, .button:hover { background: linear-gradient(180deg, rgba(195, 173, 228, .66), rgba(138, 113, 176, .52)); text-decoration: none; }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 1px solid #E4D5FF; outline-offset: 2px; }
button.quiet, .button.quiet { font-weight: 400; padding: 6px 11px; background: rgba(242, 234, 255, .06); border-color: rgba(224, 208, 246, .22); color: var(--ink-soft); }
button.quiet:hover, .button.quiet:hover { background: var(--hover); }
button.danger { background: rgba(var(--high), .4); border-color: rgba(var(--high), .85); }
button.danger:hover { background: rgba(var(--high), .58); }
label { display: block; font-size: 11px; color: var(--ink-soft); margin: 0 0 5px; }
input[type=text], input[type=search], select, textarea { width: 100%; font: inherit; color: var(--ink); padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(235, 225, 250, .25); background: rgba(20, 14, 30, .35); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select option { background: #2A2038; }
.field { margin-bottom: 14px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input[type=text], .inline input[type=search], .inline select { width: auto; flex: 1 1 180px; }
.inline label { margin: 0; }
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.error { color: #FFB8C4; font-size: 12px; margin: 6px 0 0; }

/* check page */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 18px; margin: 0; }
.facts dt { color: var(--muted); font-size: 11.5px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.notes { margin: 0; padding-left: 18px; }
.notes li { margin-bottom: 5px; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
details.item { border-bottom: 1px solid var(--line-soft); }
details.item:last-child { border-bottom: 0; }
details.item > summary { display: grid; grid-template-columns: 138px minmax(0, 1fr) max-content; gap: 12px; align-items: baseline; padding: 11px 16px; cursor: pointer; list-style: none; }
details.item > summary::-webkit-details-marker { display: none; }
details.item > summary:hover { background: var(--hover); }
details.item[open] > summary { background: rgba(226, 212, 255, .06); }
details.item .what { min-width: 0; }
details.item .what b { font-weight: 600; display: block; overflow-wrap: anywhere; }
details.item .what span { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
details.item .body { padding: 2px 16px 14px; }
details.lead { border: 1px solid; border-radius: 10px; margin-bottom: 8px; }
details.lead:last-child { border-bottom: 1px solid; }
details.lead.other { border-color: var(--line); }
pre { margin: 0; padding: 12px 14px; border-radius: 8px; background: rgba(20, 14, 30, .38); border: 1px solid var(--line-soft); white-space: pre-wrap; overflow-wrap: anywhere; font: 11.5px/1.55 "Cascadia Mono", Consolas, monospace; color: var(--ink-soft); }
.fields { margin-top: 8px; }
.fields td, .fields th { padding: 4px 10px; font-size: 11.5px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11.5px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 96px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
ul.plain { margin: 0 0 10px; padding-left: 18px; }

@media (max-width: 860px) {
    .window { grid-template-columns: 1fr; margin: 0; border-radius: 0; border: 0; min-height: 100vh; }
    .side { border-right: 0; border-bottom: 1px solid rgba(206, 188, 232, .14); }
    nav { flex-direction: row; flex-wrap: wrap; }
    main { padding: 20px 16px 32px; }
    .solo { margin: 0; border-radius: 0; border: 0; min-height: 100vh; }
    details.item > summary, .timeline li { grid-template-columns: 1fr; gap: 3px; }
    .panel.flush { overflow-x: auto; }
}

.gap-top { margin-top: 14px; } .gap-bottom { margin-bottom: 12px; } .note-top { margin: 10px 0 0; } .prewrap { white-space: pre-wrap; }
.signin { text-align: center; padding: 6px 0 2px; } .signin .button { padding: 11px 22px; font-size: 14px; }
.steps { margin: 0 0 16px; padding-left: 20px; } .steps li { margin-bottom: 6px; }
details.lead > summary, details.item.narrow > summary { grid-template-columns: 62px minmax(0, 1fr) max-content; }
details.item > summary > .chip { justify-self: start; }
td > a > b { white-space: nowrap; }

/* The reader own row in the "who sees what" table. */
tr.me td { background: #2a2140; box-shadow: inset 3px 0 0 var(--aurora, #A67BE4); }
