:root {
  color-scheme: dark;
  --bg: #111713;
  --panel: #1c251e;
  --line: #344338;
  --text: #f2f6ef;
  --muted: #b6c2b7;
  --green: #79c267;
  --green-dark: #2d5631;
  --gold: #e5bd58;
  --red: #ef8378;
}

* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, sans-serif; background: radial-gradient(circle at top, #243228, var(--bg) 36rem); color: var(--text); min-height: 100vh; }
a { color: var(--green); }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem max(1rem, calc((100% - 920px) / 2)); border-bottom: 1px solid var(--line); background: rgba(10, 15, 11, .82); }
.brand { color: var(--text); font-weight: 800; text-decoration: none; }
.account { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .92rem; }
.account form { margin: 0; }
main { width: min(920px, calc(100% - 2rem)); margin: 2.5rem auto; }
footer { width: min(920px, calc(100% - 2rem)); margin: 3rem auto 1.5rem; color: var(--muted); text-align: center; font-size: .85rem; }
.panel, .application { background: rgba(28, 37, 30, .95); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 4vw, 2.2rem); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.hero { padding-block: clamp(2rem, 8vw, 5rem); }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; max-width: 14ch; margin: .2rem 0 1rem; }
h2 { margin-top: 2.5rem; }
.eyebrow { color: var(--gold); letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
.privacy, .empty, .note { color: var(--muted); }
.privacy { max-width: 65ch; font-size: .88rem; margin-top: 2rem; }
.button, button { display: inline-block; border: 0; border-radius: 8px; padding: .72rem 1rem; background: var(--green); color: #0a160b; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.secondary, button.secondary { background: #aab4aa; color: #172018; }
button.danger { background: var(--red); color: #27100d; }
.link-button { padding: 0; background: none; color: var(--green); font-weight: 600; }
.application-form { display: grid; gap: 1rem; max-width: 34rem; margin: 1.5rem 0; }
label { display: grid; gap: .4rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: .72rem; border: 1px solid #526357; border-radius: 7px; background: #101712; color: var(--text); font: inherit; }
.applications { display: grid; gap: 1rem; }
.application { padding: 1.2rem; }
.application-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 1.15rem; }
.status { padding: .2rem .55rem; border-radius: 99px; background: #3d493f; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.status.approved { background: var(--green-dark); color: #c9f8c4; }
.status.denied, .status.revoked { background: #623832; color: #ffd9d3; }
dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
dl div { min-width: 0; }
dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: .7rem; margin-top: 1rem; }
.notice { margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid #568b4d; border-radius: 8px; background: #263f28; }
.notice.error { border-color: #9c554b; background: #4d2d29; }
.incident-message { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 3px solid var(--red); padding-left: 1rem; }
summary { cursor: pointer; color: var(--gold); }
@media (max-width: 650px) { header { align-items: flex-start; } .account { flex-direction: column; align-items: flex-end; gap: .2rem; } dl { grid-template-columns: 1fr; } }
