@font-face { font-family: "Hanken Grotesk"; src: url("./assets/brand/v1/HankenGrotesk-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("./assets/brand/v1/fonts/EBGaramond-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #151416;
  --panel: #1d1b20;
  --panel-2: #252229;
  --ivory: #f7f1e6;
  --muted: #a8a3a0;
  --gold: #c9a45c;
  --teal: #0e5a5a;
  --rose: #c9828d;
  --line: rgba(247, 241, 230, 0.12);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--ivory); }
button, input { font: inherit; }
button { cursor: pointer; }
.login-screen, .access-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 22% 18%, rgba(14, 90, 90, 0.24), transparent 34%),
    radial-gradient(circle at 80% 75%, rgba(201, 130, 141, 0.14), transparent 30%),
    var(--ink);
}
.login-panel { width: min(440px, 100%); border: 1px solid var(--line); background: rgba(29, 27, 32, 0.96); padding: 34px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.brand-mark { width: 44px; height: 53px; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark.small { width: 34px; height: 41px; }
.brand-name { color: var(--gold); font-family: Georgia, serif; font-size: 18px; margin: 14px 0 4px; }
h1 { margin: 0; font-family: "EB Garamond", Georgia, serif; font-size: 34px; font-weight: 400; }
.login-copy, .access-screen p { color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 16px; margin-top: 26px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
input { width: 100%; border: 1px solid var(--line); background: #121114; color: var(--ivory); padding: 12px 13px; outline: none; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,164,92,.14); }
.primary, .secondary { border: 1px solid transparent; padding: 11px 16px; color: var(--ivory); background: transparent; font-weight: 700; }
.primary { background: var(--gold); color: var(--ink); }
.secondary { border-color: var(--line); }
.compact { padding: 7px 10px; font-size: 12px; }
.form-error { min-height: 20px; color: var(--rose); font-size: 13px; }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.demo-account { text-align: left; border: 1px solid var(--line); background: #171519; color: var(--ivory); padding: 10px; }
.demo-account strong, .demo-account span { display: block; }
.demo-account span { color: var(--muted); font-size: 11px; margin-top: 3px; }
/* A2 shell: fixed top bar + one left navigation (spec 04/11 §1.1). */
.admin-shell { height: 100vh; display: flex; flex-direction: column; }
.shell-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; border-bottom: 1px solid var(--line); padding: 8px 16px; background: #111013; position: sticky; top: 0; z-index: 20; }
.shell-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shell-brand strong, .shell-brand span { display: block; }
.shell-brand span { color: var(--gold); font-size: 12px; letter-spacing: .02em; margin-top: 2px; }
.account-area { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
#account-role { color: var(--muted); font-size: 12px; }
.environment-label { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ivory); font-size: 12px; font-weight: 650; white-space: nowrap; }
.shell-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.workspace-nav { overflow-y: auto; padding: 14px 10px 24px; border-right: 1px solid var(--line); background: #111013; display: flex; flex-direction: column; gap: 14px; }
.nav-group { display: grid; gap: 2px; }
.nav-group-label { margin: 0 0 4px; padding: 0 10px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-item { min-height: 44px; border: 0; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; background: transparent; color: var(--muted); padding: 10px 12px; text-align: left; font-size: 14px; font-weight: 650; }
.nav-item:hover { color: var(--ivory); background: rgba(247, 241, 230, .04); }
.nav-item.active { color: var(--ivory); background: rgba(201, 164, 92, .1); border-left-color: var(--gold); }
.nav-group-single .nav-item { font-family: "EB Garamond", Georgia, serif; font-size: 18px; font-weight: 400; }
.shell-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.route-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.route-button { min-height: 44px; white-space: nowrap; border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 8px 12px; font-size: 13px; font-weight: 700; }
.route-button.active { background: var(--teal); color: var(--ivory); }
.nav-item:focus-visible, .route-button:focus-visible, .pending-card button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pending-page { flex: 1 1 auto; overflow-y: auto; padding: 32px 24px; }
.pending-card { max-width: 720px; padding: 24px; border: 1px solid rgba(201, 164, 92, .45); border-radius: 8px; background: #1F1C1E; }
.pending-card .eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pending-card h1 { font-size: 30px; margin-bottom: 12px; }
.pending-card p { color: #d9d2c6; line-height: 1.6; }
.pending-card button { min-height: 44px; border-radius: 8px; margin-top: 8px; }
.workspace-frame-wrap { flex: 1 1 auto; min-height: 0; background: var(--ink); }
#workspace-frames, [data-workspace-frame] { width: 100%; height: 100%; }
[data-workspace-frame] { display: block; border: 0; background: var(--ink); }
[data-workspace-frame][hidden] { display: none; }
[hidden] { display: none !important; }
.recovery-back { display: flex; align-items: center; justify-content: center; margin-top: 16px; text-decoration: none; }
.login-panel .primary, .login-panel .secondary, .login-panel input, .login-panel select { min-height: 44px; border-radius: 8px; }
.login-panel select { background: var(--panel); color: var(--ivory); padding: 8px; }
.login-panel button:disabled { opacity: .55; cursor: wait; }
#recovery-status { line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .login-screen, .access-screen { padding: 16px; }
  .login-panel { padding: 20px; }
}
/* Phone and narrow windows: the navigation stacks above the page (spec 04/11 §1.1). */
@media (max-width: 820px) {
  .admin-shell { height: auto; min-height: 100vh; }
  .shell-header { flex-wrap: wrap; position: static; }
  .account-area { justify-content: flex-start; }
  .shell-body { display: flex; flex-direction: column; }
  .workspace-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; overflow: visible; }
  .nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .nav-group-label { width: 100%; padding: 0; margin: 4px 0 0; }
  .nav-item { border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; padding: 8px 10px; }
  .nav-item.active { border-bottom-color: var(--gold); }
  .workspace-frame-wrap { min-height: 80vh; }
  #workspace-frames, [data-workspace-frame] { min-height: 80vh; }
  .pending-page { padding: 16px; }
}
.unsaved-indicator { padding: 4px 10px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 12px; font-weight: 650; white-space: nowrap; }
.session-expiry-notice { margin: 0; padding: 8px 16px; background: #3a2a12; color: var(--ivory); font-size: 13px; text-align: center; }
