:root {
  --paper: #f4f3ec; --ink: #182f35; --muted: #647477; --line: #d8dcd5;
  --surface: #fffef8; --accent: #126658; --wash: #e7eee4; --danger: #a52e24;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 85% 0%, #dfe9de 0, transparent 45%), var(--paper); font: 16px/1.55 "Trebuchet MS", sans-serif; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; border-radius: 5px; padding: 11px 18px; font-weight: bold; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
button:hover:not(:disabled) { border-color: var(--accent); background: var(--wash); }
button:disabled { cursor: not-allowed; opacity: .48; }
button.primary { background: var(--accent); color: white; border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #0b5146; }
button.quiet { background: transparent; border-color: transparent; }
:focus-visible { outline: 3px solid #36967f; outline-offset: 3px; }
input { width: 100%; padding: 12px 14px; border: 1px solid #b9c4be; border-radius: 4px; background: #fff; color: var(--ink); min-width: 0; }
.topbar { display: flex; align-items: center; gap: 24px; max-width: 1400px; margin: auto; padding: 25px 40px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-weight: bold; letter-spacing: 3px; font-size: 18px; }
.brand span { color: var(--accent); }
.domain { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-left: auto; }
main { max-width: 1320px; padding: 54px 40px 70px; margin: auto; min-height: calc(100vh - 170px); }
.eyebrow { color: var(--accent); letter-spacing: 2px; font-size: 11px; font-weight: bold; margin-bottom: 12px; }
h1 { font: normal clamp(34px, 4vw, 58px)/1.08 Georgia, serif; letter-spacing: -1.4px; margin: 0 0 20px; }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; }
.intro { color: var(--muted); max-width: 440px; margin-bottom: 28px; }
.login-view { max-width: 560px; margin: 20px auto; }
.login-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 40px #182f3506; }
label { display: block; font-size: 14px; font-weight: bold; margin-bottom: 6px; }
.login-card input { margin-bottom: 18px; }
.login-card button { width: 100%; }
.footnote { color: var(--muted); font-size: 13px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.notice { padding: 18px 22px; background: var(--wash); border-left: 3px solid var(--accent); border-radius: 0 5px 5px 0; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary > div { display: flex; flex-direction: column; padding: 18px 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.summary > div:first-child { padding-left: 0; }.summary > div:last-child { border: 0; }
.metric { font: 40px/1.2 Georgia, serif; color: var(--ink); margin-bottom: 5px; }
.warning { color: #7a5c28; font-size: 13px; margin-bottom: 28px; max-width: 1000px; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; animation: arrive .3s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 18px; }
.badge { white-space: nowrap; background: #eeeee5; color: #6b6951; border-radius: 20px; padding: 4px 10px; font-size: 11px; font-weight: bold; }
.badge.running { color: #125848; background: #e1f0e7; }
.description { color: var(--muted); font-size: 13px; margin: 10px 0 18px; }
.identity { color: var(--muted); font: 12px/1.4 "Courier New", monospace; }
details { border-top: 1px solid var(--line); padding-top: 16px; }
summary { cursor: pointer; font-weight: bold; font-size: 14px; }
.field { margin-top: 20px; }
.field input { font: 13px/1.5 "Courier New", monospace; }
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.settings-form .primary { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.actions button { font-size: 12px; padding: 8px 12px; }
.gate, .restart { font-size: 12px; color: #7a5c28; margin: 14px 0 0; }
.feedback { font-size: 13px; color: var(--accent); overflow-wrap: anywhere; }
.error { color: var(--danger); font-size: 14px; overflow-wrap: anywhere; }
footer { display: flex; gap: 20px; justify-content: space-between; padding: 24px 40px; border-top: 1px solid var(--line); max-width: 1400px; margin: auto; color: var(--muted); font-size: 11px; }
@media (max-width: 800px) { .apps { grid-template-columns: 1fr; }.topbar { padding: 20px; }main { padding: 32px 20px 50px; }.page-heading { align-items: start; flex-direction: column; margin-bottom: 24px; }.summary > div { padding: 12px; }.summary { gap: 8px; }.summary > div { font-size: 11px; }.app { padding: 20px; }footer { padding: 20px; }.domain { display: none; }#logout { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .app { animation: none; } }
