:root {
  color-scheme: light;
  --base: #f0f4f9;
  --panel: #fff;
  --ink: #14243a;
  --muted: #52667f;
  --line: #dce5f0;
  --accent: #174fd4;
  --nav: #14243b;
  font: 15px/1.5 system-ui, sans-serif;
  background: var(--base);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; border-radius: 8px; border: 1px solid var(--line); }
button { background: var(--accent); color: white; border-color: transparent; padding: .6rem .85rem; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(.93); }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #5285ff; outline-offset: 3px;
}
input, textarea, select { background: white; color: var(--ink); padding: .6rem .75rem; max-width: 100%; }
textarea { min-height: 6rem; resize: vertical; }
label { display: grid; gap: .35rem; }
.brand { color: #d9e7ff; letter-spacing: .18em; font-weight: 850; font-size: 1.15rem; margin: .4rem 0 .9rem; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.04em; line-height: 1.2; }
h2 { margin: 0; font-size: 1.07rem; line-height: 1.25; }
.quiet { background: #edf3fd; color: #173d82; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login form { width: min(100%, 28rem); display: grid; gap: 1rem; }
.login .brand { color: var(--accent); margin: 0; }
.panel, dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem; color: var(--ink); }
.layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); min-height: 100dvh; }
aside {
  position: sticky; top: 0; height: 100dvh; overflow: auto; padding: 1.35rem 1rem;
  display: flex; flex-direction: column; gap: 1rem; background: var(--nav);
}
nav { display: grid; gap: .35rem; }
nav button { display: flex; align-items: center; text-align: left; gap: .65rem; }
aside .quiet { background: transparent; color: #d4e0f3; }
aside .quiet:hover, nav button[aria-current="page"] { background: #293f60; color: white; }
.nav-icon { color: #a4c4ff; width: 1.15em; text-align: center; font-size: 1.12em; }
#logout { margin-top: auto; border-color: #415878; }
main { padding: clamp(1rem, 2.6vw, 2.5rem); max-width: 106rem; width: 100%; margin: 0 auto; }
header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
header p { margin: .45rem 0 0; color: var(--muted); }
#operator {
  font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; background: white;
  border: 1px solid var(--line); padding: .45rem .7rem; border-radius: 8px;
}
#tools, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
#tools label:has(select) { display: flex; align-items: center; gap: .55rem; font-weight: 650; }
#content, .dashboard { display: grid; gap: .9rem; min-width: 0; }
article { display: grid; gap: .6rem; }
article p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.meta { font-size: .86rem; color: var(--muted); }
.actions { margin-top: .4rem; }
#next { margin-top: 1rem; }
#status { margin: .55rem 0; }
#status:empty { min-height: 0; }
dialog { width: min(94vw, 40rem); max-height: 85dvh; overflow: auto; }
dialog::backdrop { background: #14243bb5; }
#dialog-fields { display: grid; gap: .75rem; margin: 1rem 0; }
.check { display: flex; align-items: center; gap: .5rem; }
.dashboard-banner {
  border-radius: 12px; color: white; padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(112deg, #14294d 5%, #193f76 78%, #22579a);
}
.dashboard-banner h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.dashboard-banner p { margin: .5rem 0 0; max-width: 48ch; color: #e3eeff; }
.dashboard-banner .dashboard-updated { margin-top: 1rem; font-size: .82rem; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .9rem; }
.metric { border-top: 3px solid #3472ec; align-content: start; }
.metric.sos { border-top-color: #2462ec; }
.metric.support { border-top-color: #b65319; }
.metric.community { border-top-color: #087d68; }
.metric strong { font-size: 2.05rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.metric button { justify-self: start; font-size: .85rem; margin-top: .15rem; }
.dashboard-overview { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(14rem, 1fr); gap: .9rem; }
.dashboard-overview > :only-child { grid-column: 1 / -1; }
.chart-panel { min-width: 0; }
.chart-panel .meta { margin: .3rem 0 .65rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--muted); font-size: .85rem; }
.chart-legend span::before { content: ""; display: inline-block; margin-right: .4rem; width: .62rem; height: .62rem; border-radius: 3px; }
.chart-legend .sos::before { background: #2462ec; }
.chart-legend .support::before { background: #b65319; }
.chart-legend .community::before { background: #087d68; }
.activity-chart { display: block; width: 100%; height: 14rem; margin: .5rem 0; }
summary { cursor: pointer; color: var(--accent); }
.queue-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.queue-row:last-child { border-bottom: 0; }
.queue-row button { text-align: left; }
.count-badge { background: #edf3fd; color: #173d82; border-radius: 6px; min-width: 2rem; text-align: center; padding: .15rem .45rem; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; margin-top: .65rem; border-collapse: collapse; text-align: left; font-size: .88rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: .55rem .5rem; }
.data-table thead th { color: var(--muted); background: #f4f7fc; }
.data-table button { padding: .3rem .55rem; white-space: nowrap; }
@media (max-width: 980px) { .dashboard-overview { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .layout { display: block; }
  aside { height: auto; position: static; padding: .75rem; gap: .45rem; }
  aside .brand { margin: .2rem; }
  nav { display: flex; overflow: auto; }
  nav button { white-space: nowrap; }
  #logout { align-self: start; }
  header { flex-direction: column; gap: .5rem; }
  .activity-chart { height: 12rem; }
}

.website-editor form{display:grid;gap:.85rem}.web-editor-panel{display:grid;gap:.65rem}.web-editor-panel h2{margin-bottom:.25rem}.web-editor-panel textarea{width:100%;min-height:6rem}.web-editor-panel textarea[name="privacy"],.web-editor-panel textarea[name="terms"],.web-editor-panel textarea[name="deletion"]{min-height:13rem}.web-editor-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.7rem}.web-editor-row{display:grid;gap:.55rem;min-width:0;border:1px solid var(--line);border-radius:8px;padding:.65rem}.web-editor-panel>button,.web-editor-row>button{justify-self:start}.web-editor-link{color:var(--accent);font-weight:650;text-underline-offset:.22em}
