:root {
  --bg: #f7f7f5; --surface: #fff;
  --text: #1a1a1a; --text-2: #4a4a4a; --text-3: #6e6e6e;
  --line: #0000001a; --line-strong: #00000030; --fill: #0000000f; --track: #00000017; --link: #0b63c4;
  --on-accent: #fff; --accent: #1a1a1a; --error: #b93b3c; --success: #3f8544; --warning: #a8701c; --blue: #0a74d6;
  --m1: #257de0; --m2: #f47230; --m3: #00b894; --m4: #f2a600; --m5: #ee7fac; --m6: #008a17; --m7: #6a4ce2; --m8: #ec4647;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --gap: 16px; --pad: 20px; --radius: 12px; --control: 36px; --edge: 32px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #222;
    --text: #ececec; --text-2: #c4c4c4; --text-3: #a3a3a3;
    --line: #ffffff21; --line-strong: #ffffff38; --fill: #ffffff14; --track: #ffffff29; --link: #74b6ff;
    --on-accent: #161616; --accent: #ececec; --error: #f0706f; --success: #6cbf70; --warning: #e0ad5a; --blue: #4aa8ff;
    --m1: #338ced; --m2: #e76624; --m3: #00a888; --m4: #d28e05; --m5: #e24d8b; --m6: #0aac23; --m7: #9887ef; --m8: #eb6263;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #121212; --surface: #222;
    --text: #ececec; --text-2: #c4c4c4; --text-3: #a3a3a3;
    --line: #ffffff21; --line-strong: #ffffff38; --fill: #ffffff14; --track: #ffffff29; --link: #74b6ff;
    --on-accent: #161616; --accent: #ececec; --error: #f0706f; --success: #6cbf70; --warning: #e0ad5a; --blue: #4aa8ff;
    --m1: #338ced; --m2: #e76624; --m3: #00a888; --m4: #d28e05; --m5: #e24d8b; --m6: #0aac23; --m7: #9887ef; --m8: #eb6263;
    color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
html { scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--text); font: 14px/20px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font: 400 28px/34px var(--serif); margin: 0; }
h2 { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); margin: 0; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.sub { color: var(--text-2); margin-top: 4px; }
.muted { color: var(--text-3); font-size: 13px; line-height: 18px; }
.error { color: var(--error); font-size: 13px; line-height: 18px; }
.error:empty { display: none; }

button, a.button { font: inherit; font-size: 14px; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control); padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; white-space: nowrap; text-decoration: none; }
button:hover, a.button:hover { background: var(--fill); }
button.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
button.primary:hover { background: var(--accent); opacity: .88; }
button.danger { color: var(--error); }
button.primary.danger { background: var(--error); color: #fff; }
button.link { height: auto; min-height: 20px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--link); font-weight: 500; }
button.link:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
button.link.danger { color: var(--error); }
button:disabled { opacity: .45; cursor: default; }
input, select, textarea { font: inherit; color: var(--text); height: var(--control); padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); outline: 0; min-width: 0; }
textarea { height: auto; padding: 8px 10px; font-family: var(--mono); font-size: 12px; line-height: 18px; }
input:focus, select:focus, textarea:focus { border-color: var(--text-3); }
label { display: grid; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text-2); }
label .hint { color: var(--text-3); }

#app { display: flex; min-height: 100vh; }
#app > header { width: 232px; flex-shrink: 0; padding: 20px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
header .brand { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; margin-bottom: 16px; font-weight: 600; font-size: 15px; }
header .brand img { width: 22px; height: 22px; }
header nav { display: flex; flex-direction: column; gap: 2px; }
header nav a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); }
header nav a:hover { background: var(--fill); color: var(--text); }
header nav a[aria-current] { background: var(--line); color: var(--text); font-weight: 600; }
header .foot { margin-top: auto; display: grid; gap: 8px; padding: 16px 10px 0; border-top: 1px solid var(--line); justify-items: start; }
header .me { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 36px; text-decoration: none; color: var(--text-3); }
header .me:hover { color: var(--text); }
header .who { font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line-strong); color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
header .me[aria-current] .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.head-acts select { border-radius: 999px; height: var(--control); padding: 0 14px; }
main { flex: 1; min-width: 0; padding: 40px var(--edge) 64px; display: flex; flex-direction: column; gap: var(--gap); }
main > * { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }

.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.head-text { min-width: 0; flex: 1; }
.sub button.link { margin-left: 8px; }
.head .back { display: inline-flex; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.head .back:hover { color: var(--text); }
.head-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); display: grid; gap: 12px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 20px; }
.card-acts { display: flex; gap: 20px; align-items: center; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--line); position: relative; }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list > li:last-child { padding-bottom: 0; }
.card-head + .list > li:first-child { padding-top: 2px; }
.row-main { min-width: 0; flex: 1; display: grid; gap: 2px; overflow-wrap: anywhere; }
.row-main > button, .row-main > a.button { justify-self: start; margin-top: 8px; }
.row-main .title { font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.row-main .state { font-size: 13px; color: var(--text-2); }
.row-main .title.state { font-size: inherit; color: var(--text); }
.row-main .label { font-size: 12px; line-height: 16px; color: var(--text-3); font-weight: 500; }
.go { color: var(--text-3); font-size: 18px; margin-left: auto; font-weight: 400; }
.row-main a.title::after { content: ""; position: absolute; inset: 0; }
.row-main a.title:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-acts { display: flex; align-items: center; gap: 20px; flex-shrink: 0; position: relative; }
.empty { color: var(--text-3); padding: 8px 0; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--line-strong); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.value { font-variant-numeric: tabular-nums; font-weight: 500; }
.state { display: inline-flex; align-items: baseline; gap: 8px; }
.state { align-items: center; }
.state::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.state.ok::before { background: var(--success); } .state.warn::before { background: var(--warning); } .state.bad::before { background: var(--error); }
.notice { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); border-left-width: 4px; }
.notice.warn { border-left-color: var(--warning); } .notice.bad { border-left-color: var(--error); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }

dialog { border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--text); padding: 24px; width: min(460px, calc(100vw - 32px)); }
dialog::backdrop { background: #0008; }
dialog h2 { font: 400 22px/28px var(--serif); color: var(--text); margin-bottom: 8px; }
dialog .note { color: var(--text-2); margin-bottom: 16px; }
.uses h3 { margin: 12px 0 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.uses h3:first-child { margin-top: 0; }
.uses ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text); }
dialog form { display: grid; gap: 14px; }
dialog form input, dialog form select { width: 100%; }
dialog .error { margin-top: -4px; }
.sheet-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

#sign-in { width: 100%; max-width: 360px; margin: 0 auto; padding: 18vh 16px 0; display: grid; gap: 14px; }
#sign-in .mark { width: 36px; height: 36px; margin: 0 auto 4px; display: block; }
#sign-in h1 { text-align: center; font-size: 32px; line-height: 40px; margin-bottom: 8px; }
#sign-in .for { text-align: center; margin: -12px 0 8px; }
#sign-in input { width: 100%; }
#sign-in button { width: 100%; margin-top: 4px; }
#sign-in .next, #sign-in .passkey { background: var(--accent); color: var(--on-accent); border-color: transparent; }
#sign-in.pick .next { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
#sign-in .hint { background: none; border: 0; color: var(--text-2); height: auto; white-space: normal; text-align: center; }
#sign-in .providers { display: grid; gap: 8px; }
#sign-in .providers:empty { display: none; }

@media (max-width: 900px) {
  #app > header { width: 196px; padding: 16px 12px; }
  :root { --edge: 24px; }
}
@media (pointer: coarse) {
  :root { --control: 44px; }
  input, select { font-size: 16px; }
  button.link { min-height: 44px; }
  header nav a, .head .back, header .me { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
  :root { --edge: 16px; --pad: 16px; }
  body { font-size: 15px; line-height: 22px; }
  #app { display: block; }
  #app > header { position: sticky; top: 0; z-index: 5; width: auto; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg);
    padding: calc(8px + env(safe-area-inset-top, 0px)) max(var(--edge), env(safe-area-inset-right, 0px)) 8px max(var(--edge), env(safe-area-inset-left, 0px)); }
  header .brand { margin: 0; padding: 0; }
  header nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; flex-direction: row; gap: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  header nav a { flex: 1; justify-content: center; min-height: 56px; border-radius: 0; color: var(--text-3); font-size: 13px; padding: 0 4px; white-space: nowrap; }
  header nav a[aria-current] { background: none; color: var(--text); box-shadow: inset 0 2px 0 var(--text); }
  header .foot { margin: 0; border: 0; padding: 0; display: flex; }
  header .who { display: none; }
  main { padding: 24px max(var(--edge), env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(var(--edge), env(safe-area-inset-left, 0px)); }
  h1 { font-size: 26px; line-height: 32px; }
  .head { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .sub button.link { margin-left: 0; display: flex; }
  .head-acts { display: grid; grid-auto-flow: row; }
  .head-acts { width: 100%; } .head-acts > * { width: 100%; }
  .list > li { flex-direction: column; align-items: stretch; }
  .row-acts { justify-content: flex-start; flex-wrap: wrap; gap: 4px 24px; }
  dialog { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 90vh; overflow-y: auto; border-radius: 16px 16px 0 0; border-width: 1px 0 0;
    padding: 24px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .sheet-acts { flex-direction: column-reverse; } .sheet-acts > button { width: 100%; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tiles + h2, .group-title { margin-top: 12px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.tile { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.tile:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--fill) 50%, var(--surface)); }
.tile .label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; color: var(--text-3); font-weight: 500; }
a.tile .label::after { content: "\203A"; font-size: 16px; line-height: 16px; }
.tile .title { font-weight: 600; }
.tile.bad { border-color: color-mix(in srgb, var(--error) 50%, transparent); } .tile.warn { border-color: color-mix(in srgb, var(--warning) 50%, transparent); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--line-strong); justify-self: start; }
.seg button { border: 0; background: none; height: calc(var(--control) - 6px); padding: 0 14px; }
.seg button[aria-pressed="true"] { background: var(--line); font-weight: 600; }
form.fields { display: grid; gap: 14px; max-width: 480px; }
form.fields input, form.fields select { width: 100%; }
form.fields > button { justify-self: start; }
.notice.ok { border-left-color: var(--success); }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile { padding: 12px; } form.fields > button { justify-self: stretch; } }
@media (pointer: coarse) { header .me { min-width: 44px; justify-content: center; } .seg button { height: 44px; } }
header nav a { gap: 10px; }
header .ico { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3); }
header nav a[aria-current] .ico { color: var(--text); }
.slim-toggle { display: flex; align-items: center; gap: 10px; justify-content: flex-start; width: 100%; min-height: 36px; height: auto; margin-top: auto; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-size: 13px; }
.slim-toggle:hover { background: var(--fill); color: var(--text); }
header .foot { margin-top: 8px; }
:root[data-nav="slim"] #app > header { width: 64px; padding-left: 10px; padding-right: 10px; }
:root[data-nav="slim"] header .label, :root[data-nav="slim"] header .who { display: none; }
:root[data-nav="slim"] header .brand { justify-content: center; padding: 0; }
:root[data-nav="slim"] header nav a, :root[data-nav="slim"] .slim-toggle { justify-content: center; padding: 0; }
:root[data-nav="slim"] header .foot { padding-left: 0; padding-right: 0; justify-items: center; }
:root[data-nav="slim"] .slim-toggle .ico { transform: scaleX(-1); }
@media (pointer: coarse) { .slim-toggle { min-height: 44px; } }
@media (max-width: 600px) { .slim-toggle, header nav .ico { display: none; } :root[data-nav="slim"] header .label { display: inline; } :root[data-nav="slim"] #app > header { width: auto; } }
@media (max-width: 600px) { header .foot { margin-top: 0; } }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 18px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
tr:first-child th, tr:first-child td { border-top: 0; }
th { font-weight: 500; font-size: 12px; color: var(--text-3); white-space: nowrap; }
td.nowrap { white-space: nowrap; }
table.prices th { white-space: normal; vertical-align: bottom; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { overflow-wrap: anywhere; }
details > summary { cursor: pointer; color: var(--text-2); font-weight: 500; }
details[open] > summary { margin-bottom: 12px; }
.editor { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.editor input { width: 100%; min-width: 64px; }
button.more { justify-self: start; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: 13px; }
dl.facts dt { color: var(--text-3); } dl.facts dd { margin: 0; overflow-wrap: anywhere; }

.meter-head { display: flex; justify-content: space-between; gap: 12px; }
.meter-head .pct { color: var(--text-3); } .meter-head .pct.warn { color: var(--warning); } .meter-head .pct.bad { color: var(--error); }
.meter { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.meter > div { height: 100%; border-radius: 4px; background: var(--blue); } .meter > .warn { background: var(--warning); } .meter > .bad { background: var(--error); }
.cap { font-size: 13px; color: var(--text-3); } .cap.warn { color: var(--warning); } .cap.bad { color: var(--error); }
.usage { display: grid; gap: 6px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 72px; border-bottom: 1px solid var(--line-strong); }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: 0; }
.bar > i { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; max-width: 8px; min-height: 2px; border-radius: 2px 2px 0 0; overflow: hidden; }
.bar > i > b { flex: 0 0 0; }
.m0 { background: var(--line-strong); } .m1 { background: var(--m1); } .m2 { background: var(--m2); } .m3 { background: var(--m3); } .m4 { background: var(--m4); }
.m5 { background: var(--m5); } .m6 { background: var(--m6); } .m7 { background: var(--m7); } .m8 { background: var(--m8); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; outline: 0; }
.legend > span:hover, .legend > span:focus-visible { color: var(--text); }
.legend i, .tip i { flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; }
.usage { position: relative; }
.tip { position: absolute; z-index: 2; display: grid; gap: 2px; min-width: 200px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 24px #0000001f; font-size: 13px; line-height: 20px; color: var(--text-2); pointer-events: none; }
.tip[hidden] { display: none; }
.tip > div { display: flex; justify-content: space-between; gap: 20px; }
.tip > div:first-child { color: var(--text); font-weight: 500; }
.tip span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tip b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-body { display: grid; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg > button { border: 0; border-radius: 0; background: none; min-height: 32px; padding: 0 12px; font-size: 13px; color: var(--text-2); }
.seg > button + button { border-left: 1px solid var(--line-strong); }
.seg > button[aria-pressed="true"] { background: var(--fill); color: var(--text); font-weight: 500; }
@media (pointer: coarse) { .seg > button { min-height: 44px; } }
.row-acts .num { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 4px; }
.dots > span { margin-left: 4px; } .dots > span.bad { color: var(--error); }
.dots > i { width: 12px; height: 12px; border-radius: 3px; background: var(--line-strong); }
.dots > i.ok { background: var(--success); } .dots > i.bad { background: var(--error); }
ul.note { margin-top: 0; padding-left: 18px; display: grid; gap: 4px; }
.switched { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
label.switch { position: relative; display: inline-flex; align-items: center; width: 36px; height: 20px; }
label.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
label.switch span { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
label.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .15s; }
label.switch input:checked + span { background: var(--success); }
label.switch input:checked + span::after { transform: translateX(16px); }
label.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (pointer: coarse) { label.switch { width: 44px; height: 44px; justify-content: flex-end; } }
.bar > i.none { min-height: 0; }
.bar:hover > i, .bar:focus-visible > i { opacity: .65; }
.card.flash { border-color: var(--blue); }

@media (max-width: 600px) {
  table.stack, table.stack tr, table.stack td { display: block; }
  table.stack tr { padding: 12px 0; border-top: 1px solid var(--line); }
  table.stack tr:first-child, table.stack tr:nth-child(2) { border-top: 0; }
  table.stack td { padding: 1px 0; border: 0; }
  table.stack tr:first-child:not(.item) { display: none; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 8px; }
}

label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; color: var(--text-2); }
label.check input { height: auto; width: auto; }
.prices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 16px; margin-top: 6px; }
.prices-grid div { display: grid; } .prices-grid span { font-size: 12px; color: var(--text-3); } .prices-grid b { font-weight: 500; font-variant-numeric: tabular-nums; }
td.actor { max-width: 220px; overflow-wrap: anywhere; }

@media (pointer: coarse) { label.check { min-height: 44px; } label.check input { width: 20px; height: 20px; } }
.card-acts button, .row-acts button, .stat button { height: 32px; padding: 0 14px; font-size: 13px; }
.card-acts, .row-acts { gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.stat { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; justify-content: space-between; gap: 2px 12px; padding: 16px; border-radius: 10px; background: var(--bg); }
.stat > div:first-child { display: grid; gap: 2px; }
.stat .muted { flex-basis: 100%; }
.stat .label { white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-3); font-weight: 500; }
.stat .big { font: 400 28px/36px var(--serif); font-variant-numeric: tabular-nums; }
.stat .meter { flex-basis: 100%; height: 6px; margin-top: 8px; }
.stat .dots { flex-basis: 100%; margin: 0; color: var(--text-2); }
.stat button { margin: 0; }
.stat button.quiet { margin: -6px -10px 0 0; }
@media (pointer: coarse) { .card-acts button, .row-acts button, .stat button { height: 44px; padding: 0 18px; font-size: 14px; } }
@media (max-width: 600px) { .row-acts { gap: 8px; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.filters select { max-width: 100%; }
.badge.bad { margin-left: 8px; background: color-mix(in srgb, var(--error) 16%, transparent); color: var(--error); }
.badge.ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.ico { display: inline-flex; }
button.quiet { border-color: transparent; background: none; color: var(--text-2); padding: 0 10px; }
button.quiet:hover { background: var(--fill); color: var(--text); }
button.quiet.danger:hover { background: color-mix(in srgb, var(--error) 10%, transparent); color: var(--error); }
button.danger:not(.primary):not(.quiet):not(.link) { border-color: color-mix(in srgb, var(--error) 45%, transparent); }
.card .lead { margin-top: -8px; }
.card .list + .list, .card .empty + .list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
b.say { padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); font-weight: 600; }
.card.zone { border-color: color-mix(in srgb, var(--error) 30%, transparent); }
.card.zone .row-main { color: var(--text-2); }
.card.zone .row-acts button { min-width: 152px; }
.row-acts > button.quiet:last-child { margin-right: -10px; }
@media (max-width: 600px) {
  .row-acts > button.quiet:last-child { margin-right: 0; } .row-acts > button.quiet:first-child { margin-left: -10px; }
  .card.zone .row-acts button { flex: 1; }
}
@media (max-width: 600px) { .filters { display: grid; grid-template-columns: 1fr; } .filters select { width: 100%; } }
@media (max-width: 600px) { table.stack td:empty { display: none; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; gap: 8px; } .tile { padding: 12px 14px; } }

#join { width: 100%; max-width: 440px; margin: 0 auto; padding: 12vh 16px 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
#join .mark { width: 36px; height: 36px; margin: 0 auto 4px; display: block; }
#join h1 { text-align: center; font-size: 32px; line-height: 40px; }
#join .lead { text-align: center; color: var(--text-2); }
#join form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
#join button { width: 100%; }
#join .approve { background: var(--accent); color: var(--on-accent); border-color: transparent; }
#join .decline { background: none; border: 0; color: var(--text-2); height: auto; }
#join dl.facts, #join dl.facts dd { margin: 0; }
#join dl.facts { grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
#join fieldset.code { border: 0; padding: 0; margin: 0; min-width: 0; }
#join fieldset.code legend { padding: 0; margin: 0 0 8px; }
#join .boxes { display: flex; align-items: center; gap: 6px; }
#join .boxes input { flex: 1 1 0; width: 0; min-width: 0; max-width: 48px; height: 52px; padding: 0; text-align: center; font: 600 22px/1 var(--mono); text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); }
#join .boxes input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
#join .boxes .dash { flex: 0 0 auto; color: var(--text-3); font: 600 20px/1 var(--mono); padding: 0 2px; }
#join .error:empty { display: none; }
