:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050908;
  color: #f5f8f6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at top, #10241d 0%, #07110f 34%, #050908 72%); }
button, input { font: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(110px); opacity: .17; pointer-events: none; }
.ambient-one { background: #00e68a; top: -220px; right: -120px; }
.ambient-two { background: #f5a623; bottom: -280px; left: -190px; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #00de82, #08a864); color: #02140c; font-weight: 900; letter-spacing: -.05em; box-shadow: 0 12px 30px rgba(0, 222, 130, .2); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .01em; }
.brand small { margin-top: 2px; color: #91a49b; font-size: 12px; }
.auth-card { width: min(620px, 100%); margin: 8vh auto 0; padding: clamp(28px, 5vw, 54px); border: 1px solid #24332d; border-radius: 28px; background: linear-gradient(155deg, rgba(18, 31, 27, .98), rgba(8, 15, 13, .98)); box-shadow: 0 30px 90px rgba(0, 0, 0, .42); text-align: left; }
.auth-card h1, .hero h1 { margin: 10px 0 14px; font-size: clamp(32px, 6vw, 52px); line-height: 1.02; letter-spacing: -.045em; }
.lead, .hero p { color: #adbbb4; font-size: 17px; line-height: 1.65; }
.eyebrow { color: #56eaa8; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.security-note { display: flex; gap: 12px; margin: 26px 0; padding: 16px; border: 1px solid #26533f; border-radius: 16px; background: rgba(20, 83, 57, .22); color: #ccebdd; }
.security-note span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #00de82; color: #042116; font-weight: 900; }
.security-note p { margin: 0; line-height: 1.5; }
.button { min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-weight: 800; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: progress; opacity: .55; transform: none; }
.button-primary { width: 100%; min-height: 54px; background: #00de82; color: #03170e; }
.button-secondary { background: #14231e; color: #eaf6f0; border-color: #35483f; }
.button-quiet { background: transparent; color: #c2cec8; border-color: #2b3a34; }
.button-danger { background: #ffb23f; color: #211202; }
.enrollment-result { margin-top: 24px; padding: 18px; border-radius: 16px; background: #080d0b; border: 1px solid #33443c; }
.enrollment-result span, .enrollment-result p { display: block; color: #9aaba2; font-size: 13px; }
.enrollment-result code { display: block; margin: 9px 0; color: #ffca72; overflow-wrap: anywhere; font-size: 15px; }
.spinner { width: 32px; height: 32px; border: 3px solid #263a31; border-top-color: #00de82; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashboard { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.hero p { margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.metric { min-height: 170px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #27372f; border-radius: 22px; background: #0d1713; }
.metric span, .metric small { color: #9caf9f; }
.metric strong { font-size: 38px; letter-spacing: -.04em; }
.metric-pending { background: linear-gradient(145deg, #241a0b, #151109); border-color: #513a17; }
.metric-pending strong { color: #ffc567; }
.metric-active { background: linear-gradient(145deg, #092319, #0b1712); border-color: #185539; }
.metric-active strong { color: #56eaa8; }
.panel { border: 1px solid #26352f; border-radius: 24px; background: rgba(10, 18, 15, .92); overflow: hidden; }
.panel-heading { padding: 24px; display: flex; justify-content: space-between; align-items: end; gap: 16px; border-bottom: 1px solid #202e28; }
.panel-heading h2 { margin: 7px 0 0; font-size: 25px; }
.last-updated { color: #778980; font-size: 12px; }
.request-list { display: grid; }
.request-card { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(220px, 1.6fr) auto; gap: 20px; align-items: center; padding: 21px 24px; border-bottom: 1px solid #1d2a25; }
.request-card:last-child { border-bottom: 0; }
.request-card h3 { margin: 0 0 6px; font-size: 17px; }
.request-card p, .request-card code { margin: 0; color: #82958b; font-size: 12px; overflow-wrap: anywhere; }
.status { width: fit-content; margin-top: 8px; padding: 5px 9px; border-radius: 999px; background: #38280f; color: #ffc567; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.status-approved { background: #103d2a; color: #63e5a4; }
.empty { padding: 50px 24px; text-align: center; color: #879a90; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: min(420px, calc(100% - 44px)); padding: 15px 18px; border: 1px solid #2e5644; border-radius: 14px; background: #10231b; color: #e7fff3; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.toast.error { border-color: #753439; background: #2d1114; color: #ffdadd; }
.dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 1px solid #3c493f; border-radius: 22px; background: #0c1512; color: #f5f8f6; box-shadow: 0 30px 90px #000; }
.dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); }
.dialog form { position: relative; padding: 30px; }
.dialog h2 { margin: 8px 0 12px; font-size: 30px; }
.dialog-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #9ca9a2; font-size: 28px; cursor: pointer; }
.warning-box { margin: 22px 0; padding: 16px; border: 1px solid #60421d; border-radius: 14px; background: #281b0b; color: #ffdba0; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 22px, 1120px); padding-top: 14px; }
  .topbar { margin-bottom: 28px; }
  .brand small { display: none; }
  .auth-card { margin-top: 3vh; border-radius: 22px; }
  .hero { align-items: stretch; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 130px; }
  .request-card { grid-template-columns: 1fr; gap: 13px; }
  .request-card .button { width: 100%; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
