:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --ink: #192a27;
  --muted: #63726d;
  --line: #dcded5;
  --green: #185b48;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background-image: radial-gradient(#192a2709 .7px, transparent .7px); background-size: 7px 7px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
:focus-visible { outline: 3px solid #a56819; outline-offset: 4px; }
.shell { width: min(100% - 48px, 720px); margin: 0 auto; padding: clamp(32px, 8vh, 88px) 0 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; gap: 20px; }
.wordmark { display: inline-block; text-decoration: none; font-size: 30px; font-weight: 800; letter-spacing: -1.6px; color: var(--ink); }
.wordmark span { color: #328465; }
.panel { background: #fffefa; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 12px 36px #192a2705; animation: arrive .35s ease-out; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 30px; }
.eyebrow, .index, .status-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow { color: var(--muted); margin: 0 0 12px; }
h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 650; line-height: 1.15; letter-spacing: -1.4px; margin: 0; }
.index { color: var(--muted); margin-top: 3px; white-space: nowrap; letter-spacing: 1px; }
.status { padding: 28px; border-radius: 12px; background: #eef0eb; border: 1px solid #e0e4dc; transition: background .2s; }
.status[data-state='running'] { background: #e8f1e5; border-color: #d9e7d5; }
.status[data-state='error'] { background: #faeae4; border-color: #eed3c8; }
.status[data-state='pending'] { background: #f7efdc; border-color: #ecdfbe; }
.status-label { display: flex; align-items: center; gap: 9px; color: #50604f; }
.status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #7b8978; }
[data-state='running'] .status-dot { background: #2b7c45; box-shadow: 0 0 0 4px #2b7c4512; }
[data-state='error'] .status-dot { background: #a3452d; }
.status-title { font-size: clamp(36px, 7vw, 52px); font-weight: 650; letter-spacing: -2px; line-height: 1.1; margin: 22px 0 10px; }
.status-detail { margin: 0; color: #53624f; font-size: 14px; line-height: 1.6; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.button { border: 1px solid transparent; min-height: 52px; border-radius: 9px; font-size: 15px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 12px; transition: background .15s, transform .15s; }
.button:not(:disabled):active { transform: translateY(1px); }
.primary { color: #fffefa; background: var(--green); }
.primary:not(:disabled):hover { background: #104a3a; }
.secondary { color: var(--ink); border-color: #d3d9d0; background: transparent; }
.secondary:not(:disabled):hover { background: #f0f1ea; }
.text-button { border: 0; background: none; padding: 8px 0; color: var(--ink); font-size: 13px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.text-button:not(:disabled):hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.refresh-row { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.refresh-row p { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0; }
time { display: block; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12px; }
.message { font-size: 13px; color: #8d3e2a; line-height: 1.6; margin: 18px 0 0; }
.message:empty { display: none; }
footer { color: var(--muted); font-size: 11px; padding: 20px 0; }
.login-shell { max-width: 480px; }
.login-shell > .wordmark { margin-bottom: 32px; }
.login-panel .intro { color: var(--muted); line-height: 1.6; font-size: 14px; margin: 14px 0 28px; }
label { display: block; font-size: 12px; font-weight: 650; margin: 18px 0 8px; }
input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #ccd3c8; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; }
.login-button { width: 100%; margin-top: 26px; justify-content: space-between; padding: 0 18px; }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) {
  .shell { width: calc(100% - 32px); }
  .panel { padding: 24px; border-radius: 14px; }
  .index { display: none; }
  .status { padding: 24px 20px; }
  .topbar { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
