/* Spire console: Spire's char-and-parchment palette, system fonts (the
   page loads nothing from anywhere else). */
:root {
  --char: #16110c; --char-soft: #221a12; --char-line: #3a2e21;
  --parchment: #e7d9bb; --parchment-soft: #cdbb97; --muted: #a8977a;
  --ember: #b3491a; --ok: #6f9a4c; --warn: #c9973a; --bad: #c9543a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--char); color: var(--parchment); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.4rem; border-bottom: 1px solid var(--char-line); background: var(--char-soft); }
.brand { font-weight: 600; letter-spacing: 0.04em; }
.brand b { color: var(--ember); font-weight: 600; }
.who { margin-left: auto; color: var(--muted); font-size: 0.88rem; }

main { padding: 1.2rem 1.4rem 3rem; max-width: 1400px; margin: 0 auto; }
.center { max-width: 26rem; margin: 12vh auto 0; display: flex; flex-direction: column; gap: 0.9rem; }
h1 { margin: 0; font-size: 1.6rem; font-weight: 600; }
h2 { margin: 0 0 0.7rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-soft); }
h3 { margin: 1rem 0 0.5rem; font-size: 0.95rem; font-weight: 600; }
.muted { color: var(--muted); }
.msg { min-height: 1.2em; margin: 0; color: var(--warn); }
.msg.ok { color: var(--ok); }

button { font: inherit; font-weight: 600; padding: 0.55rem 1rem; border-radius: 6px; border: 1px solid var(--ember); background: var(--ember); color: #fff8ec; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button:disabled { opacity: 0.5; cursor: default; }
button.ghost { background: transparent; color: var(--parchment-soft); border-color: var(--char-line); padding: 0.35rem 0.8rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--parchment-soft); margin-bottom: 0.6rem; }
input, select { font: inherit; padding: 0.5rem 0.6rem; border-radius: 6px; border: 1px solid var(--char-line); background: var(--char); color: var(--parchment); }
input:focus, select:focus { outline: 2px solid var(--ember); outline-offset: -1px; }

.bar { display: flex; justify-content: flex-end; margin-bottom: 0.8rem; font-size: 0.85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.card { background: var(--char-soft); border: 1px solid var(--char-line); border-radius: 10px; padding: 1rem 1.1rem; min-width: 0; }
.card.wide { grid-column: 1 / -1; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
td, th { padding: 0.28rem 0.4rem 0.28rem 0; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
tr + tr td, tr + tr th { border-top: 1px solid rgba(58, 46, 33, 0.6); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }

.dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.45rem; background: var(--muted); vertical-align: 0.05rem; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.tag { display: inline-block; font-size: 0.75rem; padding: 0.05rem 0.4rem; border-radius: 4px; background: var(--char); border: 1px solid var(--char-line); color: var(--muted); }

.progress { height: 6px; background: var(--char); border-radius: 3px; overflow: hidden; margin: 0.2rem 0 0.6rem; }
.progress i { display: block; height: 100%; background: var(--ember); }

.steps { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; }
.steps li { margin: 0.2rem 0; }
.steps li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--char-line); }
.steps li.now { color: var(--parchment); font-weight: 600; }

.address { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
#send-review { background: var(--char); border: 1px solid var(--char-line); border-radius: 8px; padding: 0.7rem; margin-top: 0.6rem; }
#send-review .actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
