:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0e1118;
  color: #f5f7fb;
  --bg: #0e1118;
  --panel: rgba(22, 28, 40, .86);
  --line: #34415b;
  --muted: #9ca9bf;
  --accent: #a8c1ff;
  --accent-strong: #d5e0ff;
  --warn: #e3bd71;
  --danger: #ef9b9b;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% -5%, #2a3f67 0, #131923 35%, var(--bg) 68%); }
a { color: var(--accent-strong); }
.shell { width: min(1100px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 60px; }
.site-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow, .card-label, .kicker { margin: 0; color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.brand, .auth-brand { color: #fff; font-size: 1.35rem; font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.brand { display: block; margin-top: 10px; }
.product-name { margin: 4px 0 0; color: var(--muted); font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.account-menu { display: flex; align-items: center; gap: 10px; }
.account-menu form { margin: 0; }
.account-name { color: #dbe4f7; font-size: .9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: #121a2b; font: inherit; font-weight: 780; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { background: #c5d4ff; transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-quiet { border-color: #4a5874; background: transparent; color: #d8e2f8; }
.button-quiet:hover { border-color: var(--accent); background: rgba(168, 193, 255, .08); }
.button-large { min-height: 48px; padding: 12px 22px; font-size: .98rem; }
.button-danger { border-color: #8d4d59; background: transparent; color: var(--danger); }
.button-danger:hover { background: rgba(239, 155, 155, .1); }
.hero { max-width: 760px; padding: 92px 0 54px; }
.hero h1 { max-width: 760px; margin: 13px 0 18px; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.07em; }
.hero h1 span { color: var(--accent); }
.lead, .dashboard-copy { max-width: 690px; color: #c3ccdc; font-size: 1.06rem; line-height: 1.75; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card, .dashboard { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 22px 70px rgba(0, 0, 0, .18); }
.card { padding: 24px; }
.card h2, .dashboard h2, .guest-cta h2 { margin: 8px 0 10px; font-size: 1.3rem; letter-spacing: -.02em; }
.card p, .guest-cta p { color: #b9c4d7; line-height: 1.7; }
.warning { border-color: #735f39; }
.warning .card-label { color: var(--warn); }
.attribution { border-color: #485d8b; }
.text-link { color: var(--accent-strong); font-weight: 730; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.dashboard { margin-top: 16px; padding: clamp(22px, 4vw, 38px); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.status-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid #536995; border-radius: 999px; color: var(--accent-strong); font-size: .76rem; white-space: nowrap; }
.dashboard-copy { margin: 0 0 20px; font-size: .94rem; }
.muted, .empty-state { color: var(--muted); line-height: 1.65; }
.job-list { display: grid; gap: 10px; margin-top: 28px; }
.job-card { padding: 17px 19px; border: 1px solid #303c54; border-radius: 15px; background: rgba(11, 15, 23, .58); }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-card time { color: #8491a7; font-size: .76rem; }
.job-status { margin: 5px 0 0; font-size: 1rem; }
.job-meta { margin: 10px 0; color: var(--muted); font-size: .88rem; }
.job-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.job-live { margin-top: 22px; padding: 22px; border-color: #536995; }
.job-status-line { color: #e1e8f7; line-height: 1.6; }
#qr { display: block; width: min(350px, 100%); margin: 18px auto 12px; padding: 8px; border-radius: 12px; background: #fff; }
.danger-zone { margin-top: 28px; padding-top: 20px; border-top: 1px solid #313b4f; }
.danger-zone summary { color: #d7a6ac; cursor: pointer; font-weight: 700; }
.danger-zone p { color: var(--muted); font-size: .87rem; line-height: 1.6; }
.guest-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 16px; }
.guest-cta h2 { margin-top: 8px; }
.guest-cta p { margin-bottom: 0; }
.cta-actions { display: grid; justify-items: start; gap: 14px; flex: 0 0 auto; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 28px; color: #78869d; font-size: .76rem; }
.site-footer a { color: #a9b7d1; }
.auth-shell { width: min(460px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0; }
.auth-brand { display: block; margin-bottom: 28px; }
.auth-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 22px 70px rgba(0, 0, 0, .2); }
.auth-card h1 { margin: 8px 0 10px; font-size: 2.35rem; letter-spacing: -.055em; }
.auth-intro { margin: 0 0 22px; color: #b9c4d7; line-height: 1.6; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { color: #d2daea; font-size: .88rem; font-weight: 650; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 45px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid #4b5a76; border-radius: 10px; outline: none; background: #0c111a; color: #f5f7fb; font: inherit; }
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 193, 255, .15); }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 13px; line-height: 1.5; }
.checkbox-row input { margin-top: 4px; accent-color: var(--accent); }
.form-error { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #8d4d59; border-radius: 10px; background: rgba(239, 155, 155, .08); color: #ffc4c4; line-height: 1.5; }
.auth-switch, .auth-footnote { color: var(--muted); font-size: .86rem; }
.auth-switch { margin: 20px 0 0; text-align: center; }
.auth-switch a, .auth-footnote a { color: var(--accent-strong); }
.auth-footnote { margin-top: 18px; text-align: center; }
@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 1100px); padding-top: 23px; }
  .site-header, .guest-cta { display: block; }
  .account-menu { margin-top: 18px; }
  .hero { padding: 70px 0 38px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.7rem); }
  .notice-grid { grid-template-columns: 1fr; }
  .guest-cta .cta-actions { margin-top: 20px; }
  .site-footer { display: grid; }
}
