:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --red: #d71920;
  --red-dark: #b51218;
  --soft: #f7f7f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #fff; color: var(--ink); }
button, input { font: inherit; }
.shell { min-height: 100svh; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); }
.card { width: min(100%, 430px); }
.brand { display:flex; justify-content:center; padding-bottom:24px; border-bottom:1px solid var(--line); }
.brand img { display:block; width:150px; height:118px; object-fit:cover; object-position:center; background:#000; }
.screen { padding-top: 32px; }
.hidden { display: none !important; }
.eyebrow { display: block; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 8px 0 26px; font-size: clamp(30px, 9vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin: 8px 0 12px; font-size: 25px; letter-spacing: -.02em; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
input { width: 100%; height: 58px; padding: 0 18px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; font-size: 24px; letter-spacing: .35em; outline: none; }
input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.button { width: 100%; min-height: 54px; border: 1px solid transparent; border-radius: 4px; padding: 13px 16px; font-weight: 800; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover:not(:disabled) { background: #303030; }
.button-danger { background: #fff; border-color: var(--red); color: var(--red); }
.button-danger:hover:not(:disabled) { background: #fff4f4; }
.button-secondary { background: var(--soft); border-color: var(--line); color: var(--ink); }
#login-screen .button { margin-top: 6px; }
.form-error { min-height: 24px; margin: 7px 0 3px; color: var(--red); font-size: 13px; }
.muted { color: var(--muted); line-height: 1.55; }
.machine-name { margin: -14px 0 28px; color: var(--muted); font-size: 18px; font-weight: 650; }
.status-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; padding: 18px 0; border-block: 1px solid var(--line); }
.status-row span { color: var(--muted); font-size: 14px; }
.status-row strong { text-align: right; }
.actions { display: grid; gap: 12px; }
.action-message { min-height: 24px; margin: 14px 0 0; color: #176b36; font-size: 14px; font-weight: 700; text-align: center; }
dialog { width: min(calc(100% - 36px), 410px); border: 0; border-radius: 6px; padding: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog p { color: var(--muted); line-height: 1.5; }
.dialog-actions { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 600px) { .card { padding: 38px; border: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
