:root {
  --ink: #071b18;
  --ink-2: #0e2b27;
  --paper: #f4f1e8;
  --paper-deep: #e7e1d3;
  --signal: #b6e5c4;
  --signal-deep: #527d6f;
  --warm: #dda56d;
  --line: rgba(244, 241, 232, 0.18);
  --dark-line: rgba(7, 27, 24, 0.14);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 18%, rgba(63, 117, 96, 0.38), transparent 31%), linear-gradient(145deg, rgba(255,255,255,.03), transparent 35%); }
.access-page { min-height: 100vh; }
.access-shell, .settings-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.access-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr); align-items: center; gap: 110px; padding: 64px 0; }
.access-wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.access-wordmark img { width: 30px; height: 30px; }
.access-wordmark i { color: var(--signal); font-style: normal; }
.access-wordmark small { color: rgba(244, 241, 232, .62); font-size: 9px; letter-spacing: .14em; }
.access-kicker, .card-kicker { margin: 0; color: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.access-intro .access-kicker { margin-top: 72px; }
h1 { max-width: 680px; margin: 15px 0 24px; color: var(--paper); font-size: clamp(58px, 8vw, 116px); font-weight: 800; letter-spacing: -.075em; line-height: .84; }
h1 em { color: var(--signal); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.access-intro > p:not(.access-kicker):not(.access-note), .settings-title > p:not(.access-kicker) { max-width: 620px; color: rgba(244, 241, 232, .74); font-size: 17px; line-height: 1.65; }
.access-note { max-width: 600px; margin-top: 24px; color: rgba(244, 241, 232, .48); font-size: 12px; line-height: 1.6; }
.access-card, .settings-card, .status-panel { border: 1px solid var(--line); background: rgba(12, 39, 34, .82); box-shadow: 0 24px 70px rgba(0,0,0,.23); }
.access-card { padding: 36px; }
h2 { margin: 10px 0 18px; color: var(--paper); font-size: 29px; letter-spacing: -.04em; }
.access-card p:last-child, .settings-card > p { color: rgba(244, 241, 232, .64); font-size: 13px; line-height: 1.65; }
form { display: grid; gap: 10px; margin-top: 24px; }
label { color: rgba(244, 241, 232, .82); font-size: 12px; font-weight: 700; }
input[type="password"] { width: 100%; height: 48px; border: 1px solid rgba(244, 241, 232, .3); outline: none; border-radius: 2px; background: rgba(1, 15, 12, .55); color: var(--paper); font: inherit; padding: 0 14px; }
input[type="password"]:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(182, 229, 196, .12); }
.form-message { min-height: 18px; margin: 4px 0 0; color: var(--signal); font-size: 12px; line-height: 1.45; }
.form-message.error { color: #ffc4a4; }
.access-button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 49px; margin-top: 6px; border: 0; border-radius: 2px; background: var(--signal); color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: .11em; padding: 0 16px; text-transform: uppercase; }
.access-button:hover { background: #d5f8df; }
.access-button:disabled { cursor: wait; opacity: .65; }
.access-card-note { margin-top: 20px; font-size: 11px !important; }
.settings-shell { padding: 40px 0 64px; }
.settings-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.return-link, .logout-link { color: var(--signal); background: none; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; }
.settings-title { margin: 72px 0 36px; }
.settings-title h1 { font-size: clamp(52px, 7vw, 95px); }
.status-panel { display: flex; justify-content: space-between; gap: 32px; align-items: end; padding: 20px 24px; margin-bottom: 24px; }
.status-panel strong { display: block; margin-top: 7px; color: var(--signal); font-size: 21px; }
.status-panel p { max-width: 440px; margin: 0; color: rgba(244, 241, 232, .62); font-size: 12px; line-height: 1.55; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.settings-card { padding: 28px; }
.warning-card { background: rgba(42, 42, 29, .66); }
.warning-button { background: var(--warm); }
.warning-button:hover { background: #f1c28d; }
.switch-row, .acknowledgement { display: flex; align-items: center; gap: 10px; margin-top: 8px; cursor: pointer; font-size: 13px; line-height: 1.35; }
.switch-row input { position: absolute; opacity: 0; }
.switch { position: relative; flex: 0 0 42px; width: 42px; height: 24px; border-radius: 999px; background: rgba(244, 241, 232, .28); transition: background .2s; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: var(--paper); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--signal-deep); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.acknowledgement { align-items: flex-start; margin-top: 4px; color: rgba(244, 241, 232, .66); font-weight: 500; }
.acknowledgement input { margin-top: 2px; accent-color: var(--warm); }
.logout-link { margin-top: 28px; padding: 0; color: rgba(244, 241, 232, .65); }
.logout-link:hover, .return-link:hover { color: var(--signal); }

@media (max-width: 820px) {
  .access-shell { grid-template-columns: 1fr; gap: 38px; padding: 42px 0; }
  .access-intro .access-kicker { margin-top: 48px; }
  .settings-grid { grid-template-columns: 1fr; }
  .status-panel { align-items: start; flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
  .access-shell, .settings-shell { width: min(100% - 30px, 1180px); }
  .access-card, .settings-card { padding: 22px; }
  h1 { font-size: 64px; }
  .settings-header { align-items: flex-start; gap: 18px; flex-direction: column; }
}

/* Named reviewer access register */
input[type="email"], input[type="text"] { width: 100%; height: 48px; border: 1px solid rgba(244, 241, 232, .3); outline: none; border-radius: 2px; background: rgba(1, 15, 12, .55); color: var(--paper); font: inherit; padding: 0 14px; }
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(182, 229, 196, .12); }
.access-mode-switch { display: flex; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.mode-button, .secondary-button, .revoke-button { border: 1px solid rgba(244, 241, 232, .24); background: transparent; color: rgba(244, 241, 232, .78); cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 10px 12px; text-transform: uppercase; }
.mode-button.active { border-color: var(--signal); color: var(--signal); }
.mode-button:hover, .secondary-button:hover { border-color: var(--signal); color: var(--signal); }
.wide-card { margin-bottom: 24px; }
.section-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.section-card-header h2 { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; }
.field-grid > div { display: grid; gap: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.table-wrap { width: 100%; overflow-x: auto; margin-top: 22px; border: 1px solid rgba(244, 241, 232, .12); }
.access-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.access-table th { color: rgba(244, 241, 232, .52); font-size: 9px; letter-spacing: .11em; padding: 13px 14px; text-align: left; text-transform: uppercase; }
.access-table td { border-top: 1px solid rgba(244, 241, 232, .1); color: rgba(244, 241, 232, .8); padding: 13px 14px; vertical-align: top; }
.access-table td strong { display: block; color: var(--paper); font-size: 13px; }
.access-table td small { display: block; color: rgba(244, 241, 232, .52); margin-top: 4px; }
.status-active { color: var(--signal) !important; font-weight: 800; }
.status-revoked { color: #ffc4a4 !important; font-weight: 800; }
.revoke-button { border-color: rgba(255, 196, 164, .45); color: #ffc4a4; padding: 7px 9px; }
.revoke-button:hover { border-color: #ffc4a4; background: rgba(255, 196, 164, .08); }
@media (min-width: 821px) { .wide-card { grid-column: 1 / -1; } }
@media (max-width: 820px) { .field-grid { grid-template-columns: 1fr; } .form-actions, .section-card-header { align-items: stretch; flex-direction: column; } .form-actions .access-button { width: 100%; } }
