:root {
  color-scheme: dark;
  --bg: #0b0d13;
  --panel: #11151f;
  --panel-raised: #171c28;
  --line: #2b3344;
  --text: #f3f5fc;
  --muted: #adb6c8;
  --cyan: #56e1ee;
  --violet: #b994ff;
  --red: #ff858d;
  --green: #7ce2b1;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 76% 0%, #171c31 0, transparent 37rem), var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
.shell { width: min(100% - 2rem, 46rem); margin: 0 auto; padding: 1rem 0 2rem; }
.topbar { min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 700; letter-spacing: .11em; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; color: var(--bg); background: var(--cyan); clip-path: polygon(0 0,100% 0,100% 74%,74% 100%,0 100%); font-size: 1rem; }
.brand-accent { color: var(--cyan); }
.system-label, .eyebrow, footer, .request-label { font-family: "DM Mono", ui-monospace, monospace; letter-spacing: .1em; }
.system-label { color: var(--muted); font-size: .67rem; }
.system-dot { width: .45rem; height: .45rem; display: inline-block; margin-right: .4rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px #7ce2b180; }
.hero { padding: clamp(2.5rem, 10vw, 5rem) 0 2rem; }
.eyebrow { color: var(--cyan); font-size: .68rem; font-weight: 500; margin: 0 0 .7rem; }
h1 { margin: 0; font-size: clamp(3.4rem, 13vw, 6rem); line-height: .91; letter-spacing: -.075em; font-weight: 600; }
h1 span { color: var(--violet); }
.intro { max-width: 27rem; margin: 1.2rem 0 0; color: var(--muted); font-size: 1.05rem; }
.panel { position: relative; margin: 1rem 0; padding: clamp(1.1rem, 5vw, 1.6rem); background: linear-gradient(145deg, #141925, #10131c 75%); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 1rem) 0,100% 1rem,100% 100%,0 100%); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.035em; }
.corner-mark { color: var(--violet); font-size: 1.4rem; }
label { display: block; margin-bottom: .45rem; font-size: .9rem; font-weight: 600; }
input, select { width: 100%; min-height: 3rem; padding: .65rem .8rem; color: var(--text); background: #0b0d13; border: 1px solid #515b70; border-radius: .15rem; }
input { font-family: "DM Mono", ui-monospace, monospace; letter-spacing: .06em; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.hint, .body-copy, .verification-panel p { color: var(--muted); font-size: .87rem; }
.hint { margin: .4rem 0 .7rem; }
.action-button, .refresh-button, .text-button { min-height: 3rem; padding: .65rem 1rem; cursor: pointer; font-weight: 700; border-radius: 0; }
.action-button { border: 1px solid currentColor; clip-path: polygon(0 0,calc(100% - .7rem) 0,100% .7rem,100% 100%,0 100%); }
.primary-button { min-width: 12rem; background: var(--cyan); color: #071015; border-color: var(--cyan); }
.primary-button span { margin-left: 1rem; }
.text-button { color: var(--cyan); border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.status-line { min-height: 1.5em; margin: 1rem 0 0; color: var(--muted); font-size: .85rem; }
.device-name { margin: 0; font-size: 1.1rem; }
.verification-panel { margin: 1rem 0; padding: 1rem; background: var(--panel-raised); border-left: 2px solid var(--violet); }
.verification-panel p { margin: .25rem 0; }
.push-panel { border-left: 2px solid var(--cyan); }
.push-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.push-actions .text-button { padding-inline: .4rem; }
.verification-code { color: var(--text) !important; font-family: "DM Mono", monospace; font-size: clamp(2.5rem, 12vw, 4rem) !important; letter-spacing: .18em; }
.request-panel { margin-top: 1.25rem; }
.request-section-heading { align-items: center; }
.refresh-button { min-width: 7rem; border: 1px solid #59657b; color: var(--text); background: #171c28; }
.refresh-button span { color: var(--cyan); font-size: 1.15rem; margin-right: .25rem; }
.request-list { display: grid; gap: .5rem; }
.request-card { padding: .95rem 1rem; background: #0c0f16; border: 1px solid #30394b; border-left: 2px solid var(--violet); }
.request-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.request-label { color: var(--muted); font-size: .62rem; }
.status-chip { padding: .18rem .45rem; border: 1px solid #536079; color: var(--muted); font: 500 .62rem "DM Mono", monospace; letter-spacing: .08em; }
.status-pending { color: var(--cyan); border-color: #23818b; }
.status-approved { color: var(--green); border-color: #397b61; }
.status-denied, .status-expired { color: var(--red); border-color: #8d4d59; }
.request-card h3 { margin: .8rem 0 .15rem; font-size: 1.2rem; }
.request-detail { margin: .25rem 0; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.draft-note { margin: .8rem 0; padding: .65rem .75rem; border-left: 2px solid var(--violet); color: #d6c5ff; background: #1d1830; font-size: .82rem; }
.decision-controls { display: grid; grid-template-columns: minmax(8rem, 1fr) 1.35fr; align-items: end; gap: .75rem; margin-top: 1.1rem; }
.duration-label { margin: 0; color: var(--muted); font-size: .78rem; }
.duration-label select { display: block; margin-top: .35rem; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.approve-button { min-height: 3rem; color: #071015; background: var(--cyan); border-color: var(--cyan); }
.deny-button { min-height: 3rem; color: var(--text); background: #25202e; border-color: #9b7bcc; }
.retry-button { margin-top: .8rem; color: var(--cyan); background: #10232a; border-color: #39818a; }
button:disabled { opacity: .6; cursor: wait; }
button:not(:disabled):hover { box-shadow: inset 0 0 14px #56e1ee25; }
button:not(:disabled):active { filter: brightness(1.15); }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem .15rem 0; color: #8d97aa; font-size: .59rem; }
.offline-banner { color: #ffd18b; font-size: .86rem; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .shell { width: min(100% - 1.2rem, 46rem); }
  .system-label { font-size: .56rem; }
  .decision-controls { grid-template-columns: 1fr; }
  .button-row { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
