/* ALTO Invest Scheduler admin UI — design system shared by every page (templates/_base.html).
   Dark only. Tokens and components follow the redesign: sidebar shell, cards, chips, badges,
   grid tables, step flows, logs. Icons are inline SVG built by static/app.js. */

:root {
    --bg: #0E0F12;
    --bg-side: #0B0C0F;
    --panel: #15171C;
    --panel-hover: #1A1D23;
    --line: #23262E;
    --line-soft: #1F2229;
    --line-input: #2C3039;
    --line-strong: #3A3F4A;
    --text: #EDEFF3;
    --muted: #A6ACB8;
    --faint: #7F8693;
    --disabled: #4A4F5A;
    --accent: #7CB8EA;
    --accent-hover: #A9D1F2;
    --accent-ink: #0E1520;
    --active-bg: #1E2A38;
    --active-border: #2F4A66;
    --ok: #53C48E;
    --ok-bg: rgba(83, 196, 142, 0.12);
    --err: #F2766F;
    --err-bg: rgba(242, 118, 111, 0.12);
    --err-border: #47292B;
    --warn: #E0A84E;
    --warn-bg: rgba(224, 168, 78, 0.12);
    --warn-border: #44391F;
    --skip: #5A606C;
    --purple: #B49CF0;
    --teal: #5CC7B8;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
    margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
    font-family: var(--sans); font-size: 14px; line-height: 1.5;
}
/* No double-tap-to-zoom on controls: otherwise iOS waits ~350 ms after every tap for a possible second
   one (the "delayed / needs two taps" navigation), and a quick re-tap zooms instead of clicking */
a, button, select, input, label { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
[hidden] { display: none !important; }

/* --- shell: sidebar on wide screens, top bar + bottom tabs on narrow ones ---------------------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    flex: none; width: 232px; padding: 20px 14px; display: flex; flex-direction: column; gap: 28px;
    background: var(--bg-side); border-right: 1px solid var(--line-soft);
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; text-decoration: none; color: var(--text); }
.brand svg { flex: none; display: block; }
.brand-name { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.brand-alto { display: flex; align-items: baseline; gap: 4px; font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; }
.brand-alto b { font-weight: 700; }
.brand-alto span { font-weight: 400; }
.brand-app { font-size: 12px; font-weight: 500; color: var(--muted); }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px;
    text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted);
}
.side-nav a svg { flex: none; }
.side-nav a:not([aria-current]):hover { background: var(--panel); color: var(--text); }
/* Pressed = instant feedback; .pressed is added on click and stays lit while the next page loads */
.side-nav a:active, .side-nav a.pressed { background: var(--active-bg); color: var(--text); }
.side-nav a[aria-current] { color: var(--text); background: var(--active-bg); }
.side-nav a[aria-current] svg { stroke: var(--accent); }
.side-nav .label { flex: 1; }

.nav-count {
    min-width: 20px; padding: 1px 7px; border-radius: 999px; text-align: center;
    font-size: 12px; font-weight: 600; color: var(--err); background: rgba(242, 118, 111, 0.14);
}

.side-status {
    margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.side-status .state { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.side-status .sub { font-size: 12px; color: var(--muted); }

.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(83, 196, 142, 0.18); }
.dot.err { background: var(--err); box-shadow: 0 0 0 3px rgba(242, 118, 111, 0.18); }

.content { flex: 1; min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 64px; }
.page { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

.topbar {
    display: none; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between;
    gap: 12px; height: 56px; padding: 0 16px; background: var(--bg-side); border-bottom: 1px solid var(--line-soft);
}
.topbar .brand { padding: 0; }
.topbar .clock { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.tabbar {
    display: none; position: sticky; bottom: 0; z-index: 20; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--bg-side); border-top: 1px solid var(--line-soft);
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; border-radius: 10px; text-decoration: none; font-size: 11px; font-weight: 500; color: var(--muted);
}
/* Pressed = instant feedback; .pressed is added on click and stays lit while the next page loads */
.tabbar a:active, .tabbar a.pressed { color: var(--accent); background: var(--active-bg); }
.tabbar a[aria-current] { color: var(--accent); font-weight: 600; }
.tabbar .tab-icon { position: relative; display: flex; }
.tabbar .nav-count {
    position: absolute; top: -5px; right: -11px; min-width: 16px; padding: 0 4px;
    font-size: 10px; line-height: 16px; font-weight: 700; color: var(--bg); background: var(--err);
}

@media (max-width: 900px) {
    .shell { flex-direction: column; }
    .sidebar { display: none; }
    .topbar { display: flex; }
    .tabbar { display: grid; }
    .content { padding: 20px 16px 28px; }
}

/* --- page headers ------------------------------------------------------------------------------ */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head.top { align-items: flex-start; }
.page-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.page-title.mono { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.page-sub { margin: 0; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs .here { color: var(--text); }
.crumbs .here.mono { font-family: var(--mono); }

/* --- buttons ----------------------------------------------------------------------------------- */
.btn, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    padding: 0 18px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
    text-decoration: none; white-space: nowrap;
}
.btn { background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.warn { background: var(--warn); }
.btn:disabled { background: var(--line); color: var(--faint); cursor: default; }
.btn-ghost { padding: 0 14px; border: 1px solid var(--line-input); background: transparent; color: var(--text); font-weight: 500; }
.btn-ghost:hover { background: var(--panel-hover); color: var(--text); }
.btn-ghost:disabled { color: var(--disabled); cursor: default; background: transparent; }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn-icon.plain { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px;
    background: transparent; color: var(--muted); cursor: pointer; }
.btn-icon.plain:hover { background: var(--panel-hover); color: var(--text); }

/* --- cards and stat rows ----------------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.card.pad { padding: 24px; }
.card.err-edge { border-color: var(--err-border); }
.card.warn-edge { border-color: var(--warn-border); }
.card-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px 10px 20px; border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.card-head h2 small { font-size: 14px; font-weight: 500; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 500; text-decoration: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.stat .k { font-size: 13px; font-weight: 500; color: var(--muted); }
.stat .v { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .v .dot { width: 10px; height: 10px; }
.stat .sub { font-size: 13px; color: var(--muted); }

.statcells {
    margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.statcells > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; background: var(--panel); }
.statcells dt { font-size: 13px; font-weight: 500; color: var(--muted); }
.statcells dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.statcells dd .big { font-weight: 600; }

@media (max-width: 480px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 14px; }
    .stat .v { font-size: 20px; }
}

/* --- badges and chips -------------------------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge svg { flex: none; }
.badge.lg { padding: 4px 12px; font-size: 13px; }
.badge.outline { font-weight: 500; color: var(--muted); border: 1px solid var(--line-input); background: transparent; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--line-soft); white-space: nowrap; }
.codechip { padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text); background: var(--line-soft); word-break: break-all; }

.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-input); background: transparent; color: var(--muted);
    font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--active-bg); border-color: var(--active-border); color: var(--text); }
.chip .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip .dot { width: 8px; height: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- forms ------------------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .help { font-size: 12px; color: var(--muted); }
.input, .select {
    min-height: 44px; width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-input);
    background: #0E0F12; color: var(--text); font: inherit;
}
.input.mono { font-family: var(--mono); font-size: 13px; }
.input::placeholder { color: var(--faint); }
.input[type="date"] { color-scheme: dark; }
.select { padding: 0 12px; cursor: pointer; }
.select option { background: var(--panel); color: var(--text); }
.select.inline { width: auto; min-width: 0; background: var(--panel); font-size: 13px; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 14px; pointer-events: none; }
.search-wrap .input { padding-left: 40px; }
.inline-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

.switch { flex: none; width: 52px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.switch .track { width: 44px; height: 26px; padding: 3px; border-radius: 999px; display: flex; justify-content: flex-start; background: var(--line-input); transition: background 0.15s; }
.switch .knob { width: 20px; height: 20px; border-radius: 999px; background: var(--muted); }
.switch[aria-checked="true"] .track { justify-content: flex-end; background: var(--accent); }
.switch[aria-checked="true"] .knob { background: var(--accent-ink); }

.reqbox { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #0E0F12; border: 1px solid var(--line); }
.reqbox .k { font-size: 12px; font-weight: 500; color: var(--muted); }
.reqbox code { font-family: var(--mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.reqbox code.sub { color: var(--muted); }

/* --- notes and banners ------------------------------------------------------------------------- */
.note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--line-soft); color: var(--muted); }
.note.warn { background: rgba(224, 168, 78, 0.10); border: 1px solid var(--warn-border); }
.note.err { background: rgba(242, 118, 111, 0.08); border: 1px solid var(--err-border); }
.note svg { flex: none; margin-top: 1px; }
.note b { font-weight: 600; color: var(--text); }

/* --- grid tables ------------------------------------------------------------------------------- */
.tscroll { overflow-x: auto; }
.thead, .trow { display: grid; gap: 16px; align-items: center; padding: 12px 20px; }
.thead {
    border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--muted);
}
.trow { border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.trow:first-of-type { border-top: 0; }
a.trow:hover, .rowlink:hover { background: var(--panel-hover); }
.trow .name { font-family: var(--mono); font-size: 13px; font-weight: 500; word-break: break-all; }
.trow .sub { font-size: 13px; color: var(--muted); }
.trow .sub2 { font-size: 12px; color: var(--muted); }
.trow .cron { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chev { color: var(--faint); }

.group-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 8px; font-size: 13px; font-weight: 600; }
.group-head .n { font-size: 12px; font-weight: 500; color: var(--faint); }

.tfoot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    padding: 10px 16px 10px 20px; border-top: 1px solid var(--line);
}
.pager { display: flex; align-items: center; gap: 4px; }
.pager button {
    min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--line-input); background: transparent; color: var(--muted);
    font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.pager button:hover:not(:disabled) { background: var(--panel-hover); color: var(--text); }
.pager button[aria-current="page"] { background: var(--active-bg); border-color: var(--active-border); color: var(--text); }
.pager button:disabled { color: var(--disabled); cursor: default; }
.pager .gap { min-width: 24px; text-align: center; color: var(--faint); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 20px; color: var(--muted); text-align: center; }
.empty p { margin: 0; }

/* --- segmented outcome bars -------------------------------------------------------------------- */
.segbar { display: flex; gap: 2px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); }
.segbar.lg { height: 10px; gap: 3px; }
.segbar span { min-width: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend .item { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* --- pipeline step flow ------------------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.step-side { display: flex; flex-direction: column; align-items: center; }
.step-icon { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.step-rail { width: 2px; flex: 1; min-height: 16px; background: var(--line-input); }
.step-body { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 22px; }
.step-kind { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.step-label { font-size: 15px; font-weight: 600; }
.step-detail { color: var(--muted); text-wrap: pretty; }
.step-detail code { font-family: var(--mono); font-size: 12px; color: var(--text); }
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.step-link { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; text-decoration: none; background: var(--active-bg); }
.step-link code { font-family: var(--mono); font-size: 12px; }
.step-loop { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 0; border: 1px dashed var(--line-strong); border-radius: 12px; margin: 0 0 24px; }
.step-loop > .loop-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 10px; font-size: 13px; font-weight: 600; }
.step-loop > .loop-label .sub { font-weight: 400; color: var(--muted); }
.step-or { font-size: 12px; color: var(--faint); padding: 0 0 8px 56px; }
.kind-source { color: var(--accent); } .kind-source.step-icon { background: rgba(124, 184, 234, 0.12); }
.kind-read { color: var(--muted); } .kind-read.step-icon { background: rgba(166, 172, 184, 0.12); }
.kind-compute { color: var(--purple); } .kind-compute.step-icon { background: rgba(180, 156, 240, 0.12); }
.kind-filter { color: var(--warn); } .kind-filter.step-icon { background: rgba(224, 168, 78, 0.12); }
.kind-write { color: var(--teal); } .kind-write.step-icon { background: rgba(92, 199, 184, 0.12); }
.kind-send { color: var(--err); } .kind-send.step-icon { background: rgba(242, 118, 111, 0.12); }

/* --- logs -------------------------------------------------------------------------------------- */
.logbox {
    list-style: none; margin: 0; padding: 8px 0; background: var(--bg-side);
    font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto;
}
.logbox.scroll { max-height: 70vh; overflow-y: auto; }
.logline { display: grid; grid-template-columns: 70px 56px minmax(0, 1fr); gap: 14px; padding: 2px 20px; }
.logline .t { color: var(--faint); font-variant-numeric: tabular-nums; }
.logline .lv { font-weight: 500; color: var(--accent); }
.logline .msg { min-width: 0; white-space: pre-wrap; word-break: break-word; }
.logline .src { color: var(--faint); }
.logline.err { background: rgba(242, 118, 111, 0.08); }
.logline.err .lv, .logline.err .msg { color: var(--err); }
.logline.warn .lv, .logline.warn .msg { color: var(--warn); }
.logline.debug .msg { color: var(--muted); }

/* --- console endpoint list --------------------------------------------------------------------- */
.ep {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 10px; align-items: center;
    width: 100%; min-height: 44px; padding: 8px 16px; border: 0; background: transparent; color: var(--text);
    font: inherit; text-align: left; cursor: pointer;
}
.ep:hover { background: var(--panel-hover); }
.ep[aria-pressed="true"] { background: var(--active-bg); }
.ep .method { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.ep .path { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep .desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep.dim { opacity: 0.6; }
.ep-group { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ep-group .n { font-weight: 500; letter-spacing: 0; color: var(--faint); }

/* --- misc -------------------------------------------------------------------------------------- */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; align-items: start; }
.wrap-list { display: flex; flex-wrap: wrap; gap: 10px; }
.offgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.offgrid a, .wrap-list a.pill-link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
    padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    text-decoration: none; color: var(--text);
}
.wrap-list a.pill-link { display: inline-flex; padding: 0 14px; font-family: var(--mono); font-size: 13px; }
.offgrid a:hover, .wrap-list a.pill-link:hover { background: var(--panel-hover); }
.section-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.section-title small { font-size: 14px; font-weight: 500; color: var(--muted); }
.result-pre { margin: 0; padding: 12px 14px; max-height: 400px; overflow: auto; border-radius: 10px; background: var(--bg-side); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.spin { width: 14px; height: 14px; flex: none; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
