/* Eagles' Mind portal design system — shares the marketing site's navy/gold identity. */

:root {
  --navy: #0A2647;
  --navy-deep: #061729;
  --navy-mid: #123465;
  --gold: #C9A24B;
  --gold-deep: #9C7A2E;
  --gold-soft: #F3E7C8;
  --paper: #FBFAF7;
  --ink: #14213D;
  --ink-soft: #4B5A75;
  --line: #E4DFD3;
  --white: #fff;
  --success: #1F6B45;
  --warning: #9A6B12;
  --danger: #A3301F;
  --info: #2B5F8A;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 38, 71, .07);
  --shadow-lg: 0 24px 60px rgba(10, 38, 71, .14);
  --sidebar: 264px;
  --topbar: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.portal {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; color: var(--navy); margin: 0; line-height: 1.2; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(201, 162, 75, .65); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- shell ---------- */

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 22px 16px 18px; display: flex; flex-direction: column;
  transform: translateX(0); transition: transform .28s ease;
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; text-decoration: none; }
.sidebar .brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 9px; background: #fff; padding: 2px; }
.sidebar .brand strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.02rem; color: #fff; line-height: 1.15; }
.sidebar .brand span { display: block; font-size: .68rem; color: rgba(255,255,255,.6); letter-spacing: .09em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 13px; border-radius: 10px; border: 0; background: transparent;
  color: rgba(255,255,255,.74); text-decoration: none; font-size: .93rem; font-weight: 500;
  cursor: pointer; text-align: left; transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.nav a.active, .nav button.active { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.nav svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav .divider { height: 1px; background: rgba(255,255,255,.1); margin: 10px 6px; }
.sidebar .user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--gold); color: var(--navy-deep);
  font-weight: 700; font-family: "Fraunces", Georgia, serif; font-size: .95rem;
}
.sidebar .user .who { min-width: 0; }
.sidebar .user .who strong { display: block; font-size: .86rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user .who span { display: block; font-size: .72rem; color: rgba(255,255,255,.58); text-transform: capitalize; }

.topbar {
  position: fixed; top: 0; left: var(--sidebar); right: 0; height: var(--topbar); z-index: 30;
  display: flex; align-items: center; gap: 16px; padding: 0 30px;
  background: rgba(251,250,247,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 1.28rem; }
.topbar .sub { font-size: .8rem; color: var(--ink-soft); margin-top: 1px; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--navy); position: relative;
  transition: border-color .18s ease, transform .18s ease;
}
.icon-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); border: 1.5px solid #fff;
}
.menu-btn { display: none; }
.scrim { display: none; }

.portal-main {
  margin-left: var(--sidebar);
  padding: calc(var(--topbar) + 30px) 32px 56px;
  min-height: 100vh;
}
.container { max-width: 1180px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h2 { font-size: 1.75rem; }
.page-head p { margin: 6px 0 0; color: var(--ink-soft); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }

/* ---------- cards ---------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
  animation: fadeUp .45s ease both;
}
.card.tight { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 1.12rem; }
.card-head a { font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--gold-deep); }
.card-head a:hover { text-decoration: underline; }
.muted { color: var(--ink-soft); }
.small { font-size: .82rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .label { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); }
.stat .value { font-family: "Fraunces", Georgia, serif; font-size: 2rem; color: var(--navy); line-height: 1; }
.stat .hint { font-size: .78rem; color: var(--ink-soft); }
.stat .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 6px;
}
.stat .icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- badges ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; text-transform: capitalize;
  background: #EEF2F7; color: var(--info); white-space: nowrap;
}
.badge[data-status="submitted"] { background: #EAF2FA; color: var(--info); }
.badge[data-status="under_review"] { background: #FFF4DA; color: var(--warning); }
.badge[data-status="documents_required"] { background: #FDE9E4; color: var(--danger); }
.badge[data-status="accepted"] { background: #E5F4EC; color: var(--success); }
.badge[data-status="waitlisted"] { background: #F1ECFA; color: #5B3FA0; }
.badge[data-status="declined"], .badge[data-status="withdrawn"] { background: #F1F1F1; color: #555; }
.badge.gold { background: var(--gold-soft); color: var(--gold-deep); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); box-shadow: 0 10px 24px rgba(10,38,71,.18); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #D4AF5C; box-shadow: 0 10px 24px rgba(201,162,75,.24); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-danger { background: #fff; border-color: #E8C4BC; color: var(--danger); }
.btn-sm { padding: 8px 12px; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .76rem; color: var(--ink-soft); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.14); outline: none;
}
.field input[readonly] { background: #F6F4EF; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-error { background: #FDEDEA; border: 1px solid #F3CFC8; color: var(--danger); padding: 10px 12px; border-radius: 10px; font-size: .86rem; margin-bottom: 14px; }
.form-error[hidden] { display: none; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #FCFAF5; }

/* ---------- list / empty / skeleton ---------- */

.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .16s ease, transform .16s ease;
}
.list-item:hover { border-color: rgba(201,162,75,.55); transform: translateY(-1px); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item h4 { font-size: .98rem; margin: 0 0 3px; }
.list-item p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.list-item time { font-size: .74rem; color: var(--gold-deep); white-space: nowrap; }
.empty {
  text-align: center; padding: 34px 20px; border: 1px dashed var(--line);
  border-radius: 14px; color: var(--ink-soft); background: var(--paper);
}
.empty h3 { font-size: 1.05rem; margin-bottom: 6px; }
.empty p { margin: 0 0 14px; font-size: .88rem; }
.skeleton {
  height: 16px; border-radius: 6px;
  background: linear-gradient(100deg, #EFEBE2 30%, #FAF8F3 50%, #EFEBE2 70%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton.block { height: 92px; border-radius: 12px; }
.skeleton + .skeleton { margin-top: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.timeline li::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; font-size: .9rem; color: var(--navy); text-transform: capitalize; }
.timeline span { font-size: .78rem; color: var(--ink-soft); }

/* ---------- steps ---------- */

.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-soft); }
.step .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-size: .72rem; font-weight: 700;
}
.step.active .n { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.done .n { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.step-sep { width: 26px; height: 1px; background: var(--line); align-self: center; }
.step-panel[hidden] { display: none; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,23,41,.45); backdrop-filter: blur(3px);
  z-index: 60; display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  width: min(620px, 100%); max-height: 86vh; overflow: auto; padding: 26px;
  animation: modalIn .26s cubic-bezier(.2,.8,.2,1);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { font-size: 1.25rem; }
.modal-close { border: 0; background: #F4F1EA; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink-soft); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- toast ---------- */

.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  background: var(--navy); color: #fff; padding: 13px 16px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-size: .88rem; display: flex; gap: 10px; align-items: flex-start;
  animation: toastIn .28s ease both;
}
.toast[data-type="success"] { background: #17563A; }
.toast[data-type="error"] { background: #8A2B1D; }
.toast button { margin-left: auto; border: 0; background: transparent; color: inherit; cursor: pointer; opacity: .7; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- login ---------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-brand {
  position: relative; overflow: hidden; padding: 48px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::after {
  content: ""; position: absolute; inset: auto -80px -120px auto; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,.22), transparent 65%);
}
.auth-brand .logo-row { display: flex; align-items: center; gap: 14px; }
.auth-brand .logo-row img { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; background: #fff; padding: 3px; }
.auth-brand .logo-row strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; }
.auth-brand .logo-row span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.auth-brand h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 12ch; margin: 26px 0 14px; }
.auth-brand h1 em { color: var(--gold); font-style: italic; }
.auth-brand p { color: rgba(255,255,255,.72); max-width: 42ch; line-height: 1.7; }
.auth-brand .quote { border-left: 3px solid var(--gold); padding-left: 16px; font-family: "Fraunces", Georgia, serif; font-style: italic; color: rgba(255,255,255,.86); font-size: 1.05rem; }
.auth-brand .foot { font-size: .76rem; color: rgba(255,255,255,.48); position: relative; z-index: 1; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--paper); }
.auth-card { width: min(430px, 100%); }
.auth-card .eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.auth-card h2 { font-size: 2rem; margin: 8px 0 6px; }
.auth-card .lede { color: var(--ink-soft); margin: 0 0 24px; }
.auth-card .field { margin-bottom: 14px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); padding: 8px; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; font-size: .82rem; }
.auth-meta a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.auth-meta a:hover { text-decoration: underline; }
.auth-note { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #F4F1E9; color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }
.auth-back { margin-top: 22px; font-size: .82rem; }
.auth-back a { color: var(--ink-soft); text-decoration: none; }
.auth-back a:hover { color: var(--navy); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .topbar { left: 0; padding: 0 18px; }
  .portal-main { margin-left: 0; padding: calc(var(--topbar) + 22px) 18px 96px; }
  .menu-btn { display: grid; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(6,23,41,.4); z-index: 35; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-wrap { min-height: 100vh; padding: 30px 20px; }
  .mobile-nav {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 34;
    background: rgba(10,38,71,.96); backdrop-filter: blur(12px); border-radius: 16px;
    display: flex; justify-content: space-around; padding: 8px; box-shadow: var(--shadow-lg);
  }
  .mobile-nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .68rem; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 10px; }
  .mobile-nav a.active { color: var(--gold); }
  .mobile-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 1.45rem; }
  .card { padding: 18px; }
  .topbar .sub { display: none; }
  .toast-root { left: 14px; right: 14px; bottom: 84px; max-width: none; }
}

@media (min-width: 901px) { .mobile-nav { display: none; } }

/* ---------- page components ---------- */

[hidden] { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.hero {
  position: relative; overflow: hidden; border: 0; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 58%, var(--navy-deep) 100%);
  padding: 32px;
}
.hero::after {
  content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,.28), transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
.hero h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.hero p { color: rgba(255,255,255,.74); margin: 10px 0 0; max-width: 60ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: var(--gold); }
.hero .btn-gold:hover { background: #D4AF5C; }

.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
  overflow-x: auto; scrollbar-width: thin;
}
.tab {
  border: 0; background: transparent; padding: 11px 14px; font-weight: 600; font-size: .88rem;
  color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent;
  white-space: nowrap; transition: color .16s ease, border-color .16s ease;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar .input, .toolbar select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  min-width: 150px;
}
.search-input { width: 100%; }

.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 9px 16px; font-size: .89rem; margin: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.kv .full { grid-column: 1 / -1; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: #F6F3EB; border: 1px solid var(--line); color: var(--ink-soft); font-size: .86rem;
}
.notice strong { color: var(--navy); display: block; margin-bottom: 2px; }
.notice.gold { background: var(--gold-soft); border-color: #E7D6AC; }
.notice.danger { background: #FDEDEA; border-color: #F3CFC8; color: var(--danger); }
.notice.danger strong { color: var(--danger); }

.announcement {
  border-left: 4px solid var(--info); background: #F5F9FD; padding: 13px 16px; border-radius: 4px 12px 12px 4px;
}
.announcement[data-severity="success"] { border-left-color: var(--success); background: #F1F9F5; }
.announcement[data-severity="warning"] { border-left-color: var(--warning); background: #FFF9EC; }
.announcement[data-severity="critical"] { border-left-color: var(--danger); background: #FDF1EE; }
.announcement h4 { font-size: .95rem; margin: 0 0 4px; }
.announcement p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.announcement time { display: block; margin-top: 6px; font-size: .74rem; color: var(--ink-soft); }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #D9A49A; background: #FFFBF9; }
.field .error { color: var(--danger); font-size: .76rem; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }

.success-panel { text-align: center; padding: 34px 22px; }
.success-panel .seal {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 16px; background: var(--gold-soft); color: var(--gold-deep);
}
.success-panel .seal svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2; }
.success-panel h3 { font-size: 1.4rem; margin-bottom: 8px; }
.success-panel p { color: var(--ink-soft); margin: 0 auto 18px; max-width: 48ch; }
.success-panel .ref {
  display: inline-block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 1rem;
  letter-spacing: .06em; background: var(--navy); color: var(--gold); padding: 8px 16px;
  border-radius: 8px; margin-bottom: 18px;
}

.timeline .note { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .82rem; }
.timeline .when { display: block; font-size: .74rem; color: var(--gold-deep); margin-top: 2px; }

.doc-row {
  display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.doc-row:last-child { border-bottom: 0; }
.doc-row .doc-icon {
  width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-deep);
}
.doc-row .doc-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.doc-row .grow { flex: 1; min-width: 0; }
.doc-row h4 { font-size: .92rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.doc-row p { margin: 0; font-size: .78rem; color: var(--ink-soft); }

.avatar.lg { width: 68px; height: 68px; font-size: 1.5rem; }
.account-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.account-head h3 { font-size: 1.2rem; }
.account-head p { margin: 3px 0 0; font-size: .82rem; color: var(--ink-soft); }

.strength { height: 5px; border-radius: 99px; background: #EEE9DE; overflow: hidden; margin-top: 6px; }
.strength span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s ease, background .25s ease; }
.strength[data-level="2"] span { background: var(--warning); }
.strength[data-level="3"] span { background: var(--success); }

.modal .form-row { gap: 12px; }
.modal .field { margin-bottom: 12px; }
.modal .form-actions { justify-content: flex-end; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .82rem; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34ch; }

@media (max-width: 640px) {
  .hero { padding: 24px 20px; }
  .kv { grid-template-columns: 1fr; gap: 3px; }
  .kv dt { margin-top: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
