/* RAAH Admissions 1.0.0 · Material 3 with the RAAH brand palette (blueprint 2.2).
   Navy #151B29 · Light Beige #CCBDAF · Dark Brown #796156 · Gold #CD9868 · Ivory #F3F1EC */
@font-face { font-family: 'Google Sans Flex'; src: url('GoogleSansFlex-Latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans Code'; src: url('GoogleSansCode-Latin.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Material Symbols Outlined'; src: url('MaterialSymbolsOutlined.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }

.raah-adm {
  --md-sys-color-primary: #151b29; --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ccbdaf; --md-sys-color-on-primary-container: #151b29;
  --md-sys-color-secondary: #796156; --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #e7ddd3; --md-sys-color-on-secondary-container: #2c201a;
  --md-sys-color-tertiary: #8b5f31; --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #f1dcc4; --md-sys-color-on-tertiary-container: #3e2a12;
  --md-sys-color-error: #ba1a1a; --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #ffdad6; --md-sys-color-on-error-container: #410002;
  --md-sys-color-background: #f3f1ec; --md-sys-color-on-background: #1d1b19;
  --md-sys-color-surface: #f3f1ec; --md-sys-color-on-surface: #1d1b19;
  --md-sys-color-surface-variant: #e5ded8; --md-sys-color-on-surface-variant: #4f4640;
  --md-sys-color-surface-container-lowest: #fffdf9; --md-sys-color-surface-container-low: #f8f5f0;
  --md-sys-color-surface-container: #efebe5; --md-sys-color-surface-container-high: #e9e4de;
  --md-sys-color-surface-container-highest: #e3ded8;
  --md-sys-color-outline: #857a72; --md-sys-color-outline-variant: #ccbdaf;
  --md-sys-color-inverse-surface: #151b29; --md-sys-color-inverse-on-surface: #f3f1ec;
  --md-ref-typeface-brand: 'Google Sans Flex', system-ui, sans-serif;
  --md-ref-typeface-plain: 'Google Sans Flex', system-ui, sans-serif;
  --md-icon-font: 'Material Symbols Outlined';
  /* Material 3 motion tokens */
  --m3-std: cubic-bezier(.2, 0, 0, 1);
  --m3-emph: cubic-bezier(.2, 0, 0, 1);
  --m3-decel: cubic-bezier(.05, .7, .1, 1);
  --m3-accel: cubic-bezier(.3, 0, .8, .15);
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  color: #1d1b19; background: #f3f1ec;
  font-size: 15px; line-height: 1.5; text-align: left;
  -webkit-font-smoothing: antialiased;
  /* Full bleed regardless of the page template's content width. */
  position: relative; max-width: none !important;
  width: calc(100vw - var(--raah-sbw, 0px));
  margin-left: calc(50% - 50vw + var(--raah-sbw, 0px) / 2) !important;
  margin-right: 0 !important;
}
.raah-adm-host-title { display: none; }
.raah-adm *, .raah-adm *::before, .raah-adm *::after { box-sizing: border-box; }
.raah-adm h1, .raah-adm h2, .raah-adm h3, .raah-adm p { margin: 0; letter-spacing: normal; text-transform: none; }
.raah-adm h1, .raah-adm h2, .raah-adm h3 { font-family: 'Google Sans Flex', system-ui, sans-serif; color: #151b29; }
.raah-adm a { color: #151b29; transition: color 200ms var(--m3-std); }
.raah-adm a:hover { color: #8b5f31; }
/* No underlines anywhere, whatever the theme says. */
.raah-adm a, .raah-adm a:hover, .raah-adm a:focus, .raah-adm a:active, .raah-adm a:visited { text-decoration: none !important; }
.raah-adm *, .raah-adm *:hover, .raah-adm *:focus { text-decoration: none !important; }
.raah-adm md-icon { flex: none; }
.raah-adm .code { font-family: 'Google Sans Code', ui-monospace, monospace; letter-spacing: .01em; }
.raah-adm .muted { color: #4f4640; font-size: 14px; line-height: 20px; }
.raah-adm .small { font-size: 13px; line-height: 18px; color: #6b625b; }
.raah-adm .eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8b5f31; }
.raah-adm .h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; }
.raah-adm .h2 { font-size: 22px; line-height: 28px; font-weight: 600; }
.raah-adm .h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.raah-adm .stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.raah-adm .row { display: flex; align-items: center; gap: var(--gap, 8px); flex-wrap: wrap; }
.raah-adm .spread { justify-content: space-between; }
.raah-adm .grow { flex: 1; }
.raah-adm .grid { display: grid; gap: var(--gap, 16px); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); }
.raah-adm .wrap { max-width: var(--max, 1200px); margin: 0 auto; width: 100%; }
.raah-adm .pad { padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px); }
.raah-adm .card { background: #fffdf9; border: 1px solid #ccbdaf; border-radius: 16px; padding: var(--cardpad, 24px); }
.raah-adm .card.flat { background: #f8f5f0; border-color: #e3ded8; border-radius: 12px; }
.raah-adm .navy { background: #151b29; color: #ffffff; }
.raah-adm .navy h1, .raah-adm .navy h2, .raah-adm .navy h3 { color: #ffffff; }
.raah-adm .hidden { display: none !important; }
.raah-adm .full { grid-column: 1 / -1; }
.raah-adm md-outlined-text-field, .raah-adm md-outlined-select { width: 100%; }
/* Material's select has a built-in 210px min-width; let it shrink to its grid cell (Candidate fee card). */
.raah-adm md-outlined-select { min-width: 0; }

/* chips */
.raah-adm .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 8px; font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.raah-adm .chip md-icon { font-size: 18px; --md-icon-size: 18px; }
.raah-adm .chip.lg { padding: 6px 14px 6px 10px; font-size: 14px; }
.raah-adm .t-draft { color: #4f4640; border-color: #857a72; }
.raah-adm .t-pending { background: #e7ddd3; color: #2c201a; }
.raah-adm .t-info { background: #f1dcc4; color: #3e2a12; }
.raah-adm .t-wait { background: #e9e4de; color: #4f4640; border-color: #ccbdaf; }
.raah-adm .t-declined { background: #ffdad6; color: #410002; }
.raah-adm .t-accepted { background: #cd9868; color: #151b29; }
.raah-adm .t-enrolled, .raah-adm .t-open { background: #151b29; color: #ffffff; }
.raah-adm .t-expired { background: #fffdf9; color: #7a3416; border-color: #ab6140; }
.raah-adm .t-soon { background: #e9e4de; color: #4f4640; border-color: #ccbdaf; }
.raah-adm .t-pay { background: #fffdf9; color: #5c3d1e; border-color: #cd9868; }

/* buttons as links */
.raah-adm .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 24px; border-radius: 20px; font: 500 14px/20px 'Google Sans Flex', system-ui, sans-serif; letter-spacing: .01em; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; background: #151b29; color: #ffffff; }
.raah-adm .btn:hover { color: #ffffff; background: #262f45; }
.raah-adm .btn.gold { background: #cd9868; color: #151b29; }
.raah-adm .btn.gold:hover { background: #d9a978; color: #151b29; }
.raah-adm .btn md-icon { font-size: 18px; --md-icon-size: 18px; }

/* applicant header/footer */
.raah-adm .apphead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px clamp(16px, 3vw, 32px); background: #fffdf9; border-bottom: 1px solid #ccbdaf; }
.raah-adm .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #151b29; }
.raah-adm .brand img { width: 40px; height: 40px; }
.raah-adm .brand span { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: .08em; }
.raah-adm .appfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px clamp(16px, 3vw, 32px); border-top: 1px solid #ccbdaf; background: #fffdf9; font-size: 12px; line-height: 16px; color: #6b625b; }
.raah-adm .preview-banner { display: flex; gap: 10px; align-items: center; padding: 10px clamp(16px, 3vw, 32px); background: #f1dcc4; color: #3e2a12; font-size: 14px; }

/* hero */
.raah-adm .hero { padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 32px); }
.raah-adm .hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; font-weight: 600; max-width: 820px; }
.raah-adm .hero p { max-width: 680px; font-size: 18px; line-height: 28px; color: #e3ded8; }
.raah-adm .steps4 { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.raah-adm .steps4 li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(204,189,175,.28); }
.raah-adm .num { flex: none; width: 32px; height: 32px; border-radius: 16px; background: #cd9868; color: #151b29; display: flex; align-items: center; justify-content: center; font: 700 14px/1 'Google Sans Code', monospace; }
.raah-adm .steps4 b { display: block; font-size: 15px; line-height: 22px; }
.raah-adm .steps4 small { display: block; font-size: 13px; line-height: 18px; color: #ccbdaf; }
.raah-adm .fact { display: flex; gap: 12px; align-items: flex-start; }
.raah-adm .fact md-icon { color: #8b5f31; }
.raah-adm .fact small { display: block; font-size: 12px; line-height: 16px; color: #6b625b; }
.raah-adm .fact b { display: block; font-size: 15px; line-height: 22px; font-weight: 500; color: #151b29; }
.raah-adm .split { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 560px; }
.raah-adm .split aside { flex: 1 1 340px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.raah-adm .split main { flex: 999 1 520px; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px); }
.raah-adm .split aside p { color: #e3ded8; }
.raah-adm .split aside .eyebrow { color: #cd9868; }

/* stepper */
.raah-adm .stepbar { background: #fffdf9; border-bottom: 1px solid #ccbdaf; padding: 16px clamp(16px, 3vw, 32px); }
.raah-adm .stepchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 8px; font: 500 13px/18px 'Google Sans Flex', system-ui, sans-serif; cursor: pointer; background: transparent; color: #4f4640; border: 1px solid #857a72; }
.raah-adm .stepchip md-icon { font-size: 18px; --md-icon-size: 18px; }
.raah-adm .stepchip.done { background: #ccbdaf; color: #151b29; border-color: #ccbdaf; }
.raah-adm .stepchip.now { background: #151b29; color: #ffffff; border-color: #151b29; }
.raah-adm md-linear-progress { width: 100%; --md-linear-progress-track-color: #e3ded8; --md-linear-progress-active-indicator-color: #151b29; --md-linear-progress-track-shape: 4px; --md-linear-progress-track-height: 6px; --md-linear-progress-active-indicator-height: 6px; }
.raah-adm .choice { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; cursor: pointer; }
.raah-adm fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; }
.raah-adm legend { font-size: 15px; line-height: 22px; font-weight: 600; color: #151b29; margin-bottom: 6px; padding: 0; }
.raah-adm .help { font-size: 12px; line-height: 16px; color: #6b625b; }
.raah-adm .msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.raah-adm .msg.info { background: #f8f5f0; border: 1px solid #e3ded8; color: #4f4640; }
.raah-adm .msg.warn { background: #f1dcc4; color: #3e2a12; }
.raah-adm .msg.err { background: #ffdad6; color: #410002; }
.raah-adm .msg.ok { background: #151b29; color: #ffffff; }
.raah-adm dl.review { margin: 0; display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.raah-adm dl.review dt { font-size: 12px; line-height: 16px; color: #6b625b; }
.raah-adm dl.review dd { margin: 0; font-size: 15px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* timeline */
.raah-adm .tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.raah-adm .tl li { display: flex; gap: 14px; }
.raah-adm .tl .rail { display: flex; flex-direction: column; align-items: center; }
.raah-adm .tl .dot { flex: none; width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fffdf9; color: #6b625b; border: 1px solid #ccbdaf; }
.raah-adm .tl .dot md-icon { font-size: 18px; --md-icon-size: 18px; }
.raah-adm .tl .dot.done { background: #151b29; color: #ffffff; border-color: #151b29; }
.raah-adm .tl .dot.now { background: #cd9868; color: #151b29; border-color: #cd9868; }
.raah-adm .tl .dot.stop { background: #ffdad6; color: #410002; border-color: #ffdad6; }
.raah-adm .tl .line { flex: 1; width: 2px; min-height: 16px; background: #ccbdaf; }
.raah-adm .tl li:last-child .line { display: none; }
.raah-adm .tl .txt { padding: 4px 0 18px; display: flex; flex-direction: column; gap: 2px; }
.raah-adm .tl .txt b { font-size: 15px; line-height: 22px; color: #151b29; }
.raah-adm .statushero { border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.raah-adm .statushero.light { background: #fffdf9; border: 1px solid #ccbdaf; }
.raah-adm .roundicon { flex: none; width: 52px; height: 52px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: #e7ddd3; color: #151b29; }
.raah-adm .navy .roundicon { background: #cd9868; color: #151b29; }
.raah-adm .goldbox { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); padding: 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(205,152,104,.5); }
.raah-adm .goldbox small { display: block; font-size: 12px; color: #ccbdaf; }
.raah-adm .goldbox b { display: block; font-size: 16px; line-height: 22px; color: #ffffff; overflow-wrap: anywhere; }

/* staff workspace */
.raah-adm.ws { display: flex; flex-wrap: wrap; min-height: 100vh; }
.raah-adm .wsnav { flex: 1 1 248px; max-width: 100%; background: #151b29; padding: 20px 12px 24px; display: flex; flex-direction: column; gap: 4px; }
.raah-adm .wsnav .brand { padding: 4px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.14); color: #ffffff; }
.raah-adm .wsnav .brand span { font-size: 18px; color: #ffffff; }
.raah-adm .wsnav .brand small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ccbdaf; font-weight: 500; }
.raah-adm .navgroup { padding: 16px 16px 8px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cd9868; }
.raah-adm .navitem { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; border-radius: 22px; text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; color: #e9e4de; transition: color 200ms var(--m3-std), background-color 200ms var(--m3-std); --md-ripple-hover-color: #ffffff; --md-ripple-pressed-color: #ffffff; }
.raah-adm .navitem::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #cd9868; opacity: 0; transform: scaleX(.4); transform-origin: left center; transition: opacity 200ms var(--m3-std), transform 300ms var(--m3-emph); }
.raah-adm .navitem > :not(md-ripple) { position: relative; z-index: 1; }
.raah-adm .navitem:hover { color: #ffffff; }
.raah-adm .navitem.on { color: #151b29; font-weight: 600; --md-ripple-hover-color: #151b29; --md-ripple-pressed-color: #151b29; }
.raah-adm .navitem.on::before { opacity: 1; transform: none; }
.raah-adm .navitem.pop::before { animation: raah-pill 450ms var(--m3-emph) both; }
.raah-adm .navitem .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ab6140; color: #ffffff; font-size: 11px; line-height: 20px; font-weight: 700; text-align: center; }
.raah-adm .navitem.on .badge { background: #151b29; }
.raah-adm .wsmain { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.raah-adm .wstop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px clamp(16px, 3vw, 32px); background: #fffdf9; border-bottom: 1px solid #ccbdaf; }
.raah-adm .wsbody { flex: 1 0 auto; padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; width: 100%; }
.raah-adm .tiles { display: flex; gap: 16px; flex-wrap: wrap; }
.raah-adm .tile { flex: 1 1 190px; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 16px; background: #fffdf9; border: 1px solid #ccbdaf; color: #151b29; cursor: pointer; text-align: left; font: inherit; }
.raah-adm .tile.on { background: #151b29; color: #ffffff; border-color: #151b29; }
.raah-adm .tile .k { font-size: 13px; line-height: 18px; font-weight: 600; color: #4f4640; }
.raah-adm .tile.on .k { color: #ccbdaf; }
.raah-adm .tile .v { font: 600 32px/38px 'Google Sans Code', monospace; }
.raah-adm .tablebox { overflow-x: auto; }
.raah-adm table.rt { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 820px; }
.raah-adm table.rt th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #4f4640; padding: 12px 16px; border-bottom: 1px solid #ccbdaf; white-space: nowrap; background: transparent; }
.raah-adm table.rt td { padding: 12px 16px; border-bottom: 1px solid #e9e4de; vertical-align: middle; font-size: 14px; line-height: 20px; background: transparent; }
.raah-adm table.rt tr:last-child td { border-bottom: 0; }
.raah-adm table.rt tbody tr:hover td { background: #f8f5f0; }
.raah-adm .avatar { flex: none; width: 36px; height: 36px; border-radius: 18px; background: #e7ddd3; color: #151b29; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.raah-adm .qa { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid #e9e4de; }
.raah-adm .qa span { font-size: 13px; line-height: 18px; color: #6b625b; }
.raah-adm .qa div { font-size: 15px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.raah-adm .scrim { position: fixed; inset: 0; background: rgba(21,27,41,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; z-index: 100000; overflow-y: auto; }
.raah-adm .dialog { position: relative; width: 100%; max-width: 560px; border-radius: 28px; background: #fffdf9; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 8px 28px rgba(21,27,41,.28); }
.raah-adm .dialog.wide { max-width: 760px; }
.raah-adm .dialog h2 { font-size: 24px; line-height: 32px; font-weight: 500; text-align: center; }
.raah-adm .dialog ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.raah-adm .dialog li { display: flex; gap: 10px; }
.raah-adm .snack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100001; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 8px; background: #151b29; color: #ffffff; font-size: 14px; max-width: min(640px, calc(100vw - 32px)); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.raah-adm .snack md-icon { color: #cd9868; }
.raah-adm .fieldrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px solid #e3ded8; background: #fffdf9; }
.raah-adm .tag { font: 12px/16px 'Google Sans Code', monospace; padding: 2px 8px; border-radius: 6px; background: #efebe5; color: #4f4640; }
.raah-adm .empty { text-align: center; padding: 40px 16px; color: #4f4640; }
.raah-adm .loading { display: flex; justify-content: center; padding: 48px; }
.raah-adm md-tabs { --md-primary-tab-active-indicator-color: #151b29; --md-primary-tab-active-label-text-color: #151b29; }
.raah-adm .switchrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid #e9e4de; }
.raah-adm .switchrow:last-child { border-bottom: 0; }
.raah-adm .iconbox { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #efebe5; display: flex; align-items: center; justify-content: center; color: #463630; }
@media (max-width: 520px) {
  .raah-adm .apphead .brand span { font-size: 15px; line-height: 20px; letter-spacing: .04em; }
  .raah-adm .apphead .brand img { width: 32px; height: 32px; }
}
@media (max-width: 720px) {
  .raah-adm.ws { flex-direction: column; }
  .raah-adm .wsnav { flex: none; }
}
/* ---------- uploads ---------- */
.raah-adm .upload { display: flex; flex-direction: column; gap: 8px; }
.raah-adm .upload-label { font-size: 15px; line-height: 22px; font-weight: 600; color: #151b29; }
.raah-adm .dropzone { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px 20px; border-radius: 16px; border: 1.5px dashed #a8968c; background: #f8f5f0; color: #1d1b19; font: inherit; text-align: left; cursor: pointer; transition: border-color 200ms var(--m3-std), background-color 200ms var(--m3-std), transform 250ms var(--m3-emph); --md-ripple-hover-color: #151b29; --md-ripple-pressed-color: #151b29; }
.raah-adm .dropzone:hover { border-color: #796156; }
.raah-adm .dropzone:focus-visible { outline: 3px solid #cd9868; outline-offset: 2px; }
.raah-adm .dropzone.over { border-color: #151b29; border-style: solid; background: #efe6dc; transform: scale(1.01); }
.raah-adm .dz-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #ccbdaf; color: #151b29; transition: transform 300ms var(--m3-emph); }
.raah-adm .dropzone:hover .dz-icon, .raah-adm .dropzone.over .dz-icon { transform: translateY(-3px); }
.raah-adm .dz-text { display: flex; flex-direction: column; gap: 2px; }
.raah-adm .dz-text b { font-size: 15px; line-height: 22px; font-weight: 500; }
.raah-adm .dz-link { color: #8b5f31; font-weight: 700; }
.raah-adm .upload-file { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1px solid #ccbdaf; background: #fffdf9; animation: raah-scale-in 320ms var(--m3-decel) both; }
.raah-adm .upload-file.done { border-color: #cd9868; }
.raah-adm .upload-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #efebe5; color: #463630; }
.raah-adm .upload-thumb.img { background: #151b29; }
.raah-adm .upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.raah-adm .upload-name { font-size: 15px; line-height: 22px; font-weight: 500; color: #151b29; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.raah-adm .upload-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: #5c3d1e; }
.raah-adm .upload-ok md-icon { color: #8b5f31; }
.raah-adm .upload-err { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 18px; color: #ba1a1a; animation: raah-rise 260ms var(--m3-decel) both; }
.raah-adm .filecard { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: 14px; border: 1px solid #e3ded8; background: #f8f5f0; }
.raah-adm .filethumb { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #151b29; transition: transform 250ms var(--m3-emph), box-shadow 250ms var(--m3-std); }
.raah-adm .filethumb:hover { transform: scale(1.04); box-shadow: 0 6px 16px rgba(21,27,41,.2); }
.raah-adm .filethumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.raah-adm .fileicon { flex: none; width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e7ddd3; color: #463630; }

/* ---------- full-screen canvas ---------- */
/* On the blank canvas the app is a direct child of body, so no full-bleed maths. */
body.raah-adm-canvas > .raah-adm { width: 100%; margin-left: 0 !important; }
body.raah-adm-canvas { overflow-x: clip; }
.raah-adm.app { min-height: 100vh; display: flex; flex-direction: column; }
.raah-adm.app > .appview { flex: 1 0 auto; }
.raah-adm.ws { min-height: 100vh; flex-wrap: nowrap; }
/* Navigation stays pinned edge to edge while the content scrolls. */
.raah-adm.ws .wsnav { position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: flex-start; flex: 0 0 264px; }
@media (max-width: 720px) { .raah-adm.ws { flex-wrap: wrap; } .raah-adm.ws .wsnav { position: static; height: auto; flex: none; width: 100%; } }

/* ---------- account chip and menu ---------- */
.raah-adm .acct { position: relative; }
.raah-adm .acct-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 24px; border: 1px solid #e3ded8; background: #fffdf9; color: #151b29; font: 500 14px/20px 'Google Sans Flex', system-ui, sans-serif; cursor: pointer; transition: background-color 200ms var(--m3-std), border-color 200ms var(--m3-std), box-shadow 200ms var(--m3-std); --md-ripple-hover-color: #151b29; --md-ripple-pressed-color: #151b29; }
.raah-adm .acct-btn:hover { border-color: #ccbdaf; box-shadow: 0 1px 3px rgba(21,27,41,.12); }
.raah-adm .acct-btn[aria-expanded="true"] { background: #e7ddd3; border-color: #ccbdaf; }
.raah-adm .acct-btn:focus-visible { outline: 3px solid #cd9868; outline-offset: 2px; }
.raah-adm .acct-btn > md-icon { color: #4f4640; transition: transform 250ms var(--m3-emph); }
.raah-adm .avatar.me { position: relative; overflow: hidden; background: #151b29; color: #ffffff; }
.raah-adm .avatar.me img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.raah-adm .acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); padding: 8px 0; border-radius: 16px; background: #fffdf9; border: 1px solid #e3ded8; box-shadow: 0 12px 32px rgba(21,27,41,.22), 0 2px 6px rgba(21,27,41,.08); z-index: 1000; transform-origin: top right; animation: raah-menu 280ms var(--m3-decel) both; }
.raah-adm .acct-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px 16px; }
.raah-adm .acct-head b { font-size: 16px; line-height: 22px; color: #151b29; }
.raah-adm .acct-mail { overflow-wrap: anywhere; }
.raah-adm .acct-menu md-divider { margin: 6px 0; --md-divider-color: #e9e4de; }
.raah-adm .acct-item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; color: #1d1b19; font-size: 14px; line-height: 20px; font-weight: 500; animation: raah-rise 320ms var(--m3-decel) both; }
.raah-adm .acct-item span { flex: 1; }
.raah-adm .acct-item md-icon { color: #4f4640; }
.raah-adm .acct-item:hover { color: #151b29; }
.raah-adm .acct-item.danger, .raah-adm .acct-item.danger md-icon { color: #ba1a1a; }
.raah-adm .acct-menu .acct-item:nth-of-type(2) { animation-delay: 30ms; }
.raah-adm .acct-menu .acct-item:nth-of-type(3) { animation-delay: 60ms; }
.raah-adm .acct-menu .acct-item:nth-of-type(4) { animation-delay: 90ms; }
@media (max-width: 640px) { .raah-adm .acct-name, .raah-adm .acct-btn > md-icon { display: none; } .raah-adm .acct-btn { padding: 3px; } }

/* ---------- Material motion ---------- */
@keyframes raah-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes raah-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes raah-scale-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes raah-dialog { from { opacity: 0; transform: translateY(-32px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes raah-menu { from { opacity: 0; transform: scale(.82) translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes raah-pill { from { opacity: .3; transform: scaleX(.4); } to { opacity: 1; transform: none; } }
@keyframes raah-snack-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes raah-snack-out { to { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes raah-shake { 0%, 100% { translate: 0 0; } 15%, 55% { translate: -10px 0; } 35%, 75% { translate: 10px 0; } 90% { translate: -4px 0; } }
@keyframes raah-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.12); } }

.raah-adm .wsbody.enter > :not(.scrim), .raah-adm .appview.enter > * { animation: raah-rise 450ms var(--m3-decel) both; }
.raah-adm .wsbody.enter > *:nth-child(2), .raah-adm .appview.enter > *:nth-child(2) { animation-delay: 60ms; }
.raah-adm .wsbody.enter > *:nth-child(3), .raah-adm .appview.enter > *:nth-child(3) { animation-delay: 120ms; }
.raah-adm .wsbody.enter > *:nth-child(4), .raah-adm .appview.enter > *:nth-child(4) { animation-delay: 180ms; }
.raah-adm .wsbody.enter > *:nth-child(n+5), .raah-adm .appview.enter > *:nth-child(n+5) { animation-delay: 240ms; }
.raah-adm .wsbody.enter .tile { animation: raah-scale-in 400ms var(--m3-decel) both; }
.raah-adm .wsbody.enter .tile:nth-child(2) { animation-delay: 50ms; }
.raah-adm .wsbody.enter .tile:nth-child(3) { animation-delay: 100ms; }
.raah-adm .wsbody.enter .tile:nth-child(4) { animation-delay: 150ms; }
.raah-adm .wsbody.enter table.rt tbody tr { animation: raah-rise 400ms var(--m3-decel) both; animation-delay: calc(120ms + var(--i, 0) * 35ms); }
.raah-adm .wsbody.enter table.rt tbody tr:nth-child(1) { --i: 0; } .raah-adm .wsbody.enter table.rt tbody tr:nth-child(2) { --i: 1; }
.raah-adm .wsbody.enter table.rt tbody tr:nth-child(3) { --i: 2; } .raah-adm .wsbody.enter table.rt tbody tr:nth-child(4) { --i: 3; }
.raah-adm .wsbody.enter table.rt tbody tr:nth-child(5) { --i: 4; } .raah-adm .wsbody.enter table.rt tbody tr:nth-child(6) { --i: 5; }
.raah-adm .wsbody.enter table.rt tbody tr:nth-child(7) { --i: 6; } .raah-adm .wsbody.enter table.rt tbody tr:nth-child(n+8) { --i: 7; }
.raah-adm .appview.enter .hero .wrap > * { animation: raah-rise 550ms var(--m3-decel) both; }
.raah-adm .appview.enter .hero .wrap > *:nth-child(2) { animation-delay: 70ms; }
.raah-adm .appview.enter .hero .wrap > *:nth-child(3) { animation-delay: 140ms; }
.raah-adm .appview.enter .hero .wrap > *:nth-child(4) { animation-delay: 210ms; }
.raah-adm .grid.stagger > * { animation: raah-rise 500ms var(--m3-decel) both; }
.raah-adm .grid.stagger > *:nth-child(2) { animation-delay: 80ms; }
.raah-adm .grid.stagger > *:nth-child(n+3) { animation-delay: 160ms; }
.raah-adm .loading { animation: raah-fade 300ms linear 150ms both; }
.raah-adm .tile { transition: transform 250ms var(--m3-emph), box-shadow 250ms var(--m3-std), background-color 250ms var(--m3-std), color 250ms var(--m3-std); }
.raah-adm .tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(21,27,41,.12); }
.raah-adm .tile:active { transform: translateY(0); }
.raah-adm table.rt td { transition: background-color 150ms var(--m3-std); }
.raah-adm .btn, .raah-adm .stepchip, .raah-adm .chip, .raah-adm .fieldrow { transition: background-color 200ms var(--m3-std), color 200ms var(--m3-std), border-color 200ms var(--m3-std), box-shadow 200ms var(--m3-std); }
.raah-adm .card { transition: box-shadow 250ms var(--m3-std), border-color 250ms var(--m3-std); }
.raah-adm .scrim.enter { animation: raah-fade 200ms linear both; }
.raah-adm .scrim.enter .dialog { animation: raah-dialog 420ms var(--m3-decel) both; }
.raah-adm .snack { animation: raah-snack-in 320ms var(--m3-decel) both; }
.raah-adm .snack.out { animation: raah-snack-out 200ms var(--m3-accel) forwards; }
.raah-adm .msg.err { animation: raah-rise 300ms var(--m3-decel) both; }

/* ---------- staff sign-in ---------- */
.raah-adm.login { display: flex; flex-wrap: wrap; min-height: 100vh; background: #f3f1ec; }
.raah-adm .login-art { position: relative; overflow: hidden; isolation: isolate; flex: 1 1 440px; display: flex; flex-direction: column; gap: 40px; padding: clamp(28px, 5vw, 64px); color: #ffffff; background: radial-gradient(120% 90% at 0% 0%, #26304a 0%, #151b29 55%, #0e121c 100%); }
.raah-adm .login-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; animation: raah-drift 16s ease-in-out infinite alternate; }
.raah-adm .login-orb.one { width: 380px; height: 380px; right: -120px; top: -80px; background: #ab6140; }
.raah-adm .login-orb.two { width: 320px; height: 320px; left: -100px; bottom: -120px; background: #cd9868; opacity: .35; animation-duration: 21s; animation-direction: alternate-reverse; }
.raah-adm .login-art .brand { color: #ffffff; animation: raah-fade 500ms linear both; }
.raah-adm .login-art .brand img { width: 48px; height: 48px; }
.raah-adm .login-art .brand span { font-size: 22px; line-height: 26px; letter-spacing: .12em; color: #ffffff; }
.raah-adm .login-art .brand small { display: block; font-size: 11px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: #ccbdaf; font-weight: 500; }
.raah-adm .login-copy { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin-top: auto; }
.raah-adm .login-copy .eyebrow { color: #cd9868; }
.raah-adm .login-copy h1 { color: #ffffff; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }
.raah-adm .login-copy p { color: #e3ded8; font-size: 17px; line-height: 27px; }
.raah-adm .login-copy > * { animation: raah-rise 600ms var(--m3-decel) both; }
.raah-adm .login-copy > *:nth-child(2) { animation-delay: 80ms; }
.raah-adm .login-copy > *:nth-child(3) { animation-delay: 160ms; }
.raah-adm .login-points { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.raah-adm .login-points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(204,189,175,.18); backdrop-filter: blur(6px); animation: raah-rise 600ms var(--m3-decel) both; transition: background-color 250ms var(--m3-std), border-color 250ms var(--m3-std); }
.raah-adm .login-points li:hover { background: rgba(255,255,255,.09); border-color: rgba(205,152,104,.45); }
.raah-adm .login-points li:nth-child(1) { animation-delay: 240ms; }
.raah-adm .login-points li:nth-child(2) { animation-delay: 320ms; }
.raah-adm .login-points li:nth-child(3) { animation-delay: 400ms; }
.raah-adm .login-pt-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(205,152,104,.18); color: #cd9868; }
.raah-adm .login-points b { display: block; font-size: 15px; line-height: 22px; color: #ffffff; font-weight: 600; }
.raah-adm .login-points small { display: block; font-size: 13px; line-height: 19px; color: #ccbdaf; }
.raah-adm .login-foot { color: #a8968c; }
.raah-adm .login-main { flex: 1 1 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px); }
.raah-adm .login-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 40px); border-radius: 28px; background: #fffdf9; border: 1px solid #e3ded8; box-shadow: 0 1px 2px rgba(21,27,41,.06), 0 12px 40px rgba(21,27,41,.08); animation: raah-rise 600ms var(--m3-decel) 120ms both; }
.raah-adm .login-card.shake { animation: raah-shake 500ms var(--m3-std) both; }
.raah-adm .login-mark { width: 48px; height: 48px; }
.raah-adm .login-head { display: flex; flex-direction: column; gap: 6px; }
.raah-adm .login-head h2 { font-size: 30px; line-height: 36px; font-weight: 600; }
.raah-adm .login-card md-outlined-text-field { --md-outlined-text-field-container-shape: 14px; --md-outlined-text-field-focus-outline-color: #151b29; --md-outlined-text-field-focus-label-text-color: #151b29; }
.raah-adm .login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.raah-adm .login-row .choice { font-size: 14px; color: #4f4640; }
.raah-adm .login-link { font-size: 14px; font-weight: 600; color: #8b5f31; }
.raah-adm .login-link:hover { color: #151b29; }
.raah-adm .login-submit { width: 100%; --md-filled-button-container-height: 52px; --md-filled-button-container-shape: 26px; --md-filled-button-label-text-size: 16px; --md-filled-button-container-color: #151b29; }
.raah-adm .login-submit md-circular-progress { --md-circular-progress-size: 22px; --md-circular-progress-active-indicator-color: #ffffff; margin-right: 10px; vertical-align: middle; }
.raah-adm .login-card.busy md-outlined-text-field { opacity: .6; transition: opacity 200ms var(--m3-std); }
.raah-adm .login-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 18px; color: #6b625b; padding-top: 16px; border-top: 1px solid #efebe5; }
.raah-adm .login-note md-icon { font-size: 18px; --md-icon-size: 18px; color: #8b5f31; }
.raah-adm .login-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; font-size: 14px; font-weight: 500; color: #4f4640; transition: background-color 200ms var(--m3-std), color 200ms var(--m3-std); animation: raah-fade 400ms linear 500ms both; }
.raah-adm .login-back:hover { background: #e9e4de; color: #151b29; }
.raah-adm .login-back md-icon { font-size: 18px; --md-icon-size: 18px; transition: transform 250ms var(--m3-emph); }
.raah-adm .login-back:hover md-icon { transform: translateX(-3px); }
.raah-adm .login-avatar { width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: #151b29; color: #ffffff; font-size: 22px; font-weight: 700; }
@media (max-width: 860px) {
  .raah-adm .login-art { flex-basis: 100%; gap: 20px; padding-bottom: 32px; }
  .raah-adm .login-points, .raah-adm .login-foot { display: none; }
  .raah-adm .login-copy { margin-top: 8px; }
  .raah-adm .login-copy h1 { font-size: 34px; }
  .raah-adm .login-copy p { font-size: 15px; line-height: 23px; }
  .raah-adm .login-main { margin-top: -24px; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) { .raah-adm *, .raah-adm *::before { transition: none !important; animation: none !important; } }

/* Supplied admission design: preserve the Material palette, spacing and cards. */
.raah-adm.app { display:flex;flex-direction:column;min-height:100vh; }
.raah-adm.app .appview { flex:1; }
.raah-adm.app .appfoot { margin-top:auto; }
.raah-adm.app .hero + .pad { padding-block:clamp(32px,4vw,56px); }
.raah-adm .submission-panel { width:100%;--cardpad:32px;--gap:24px; }
.raah-adm .submission-section { display:flex;flex-direction:column;gap:16px;padding-top:24px;border-top:1px solid #ccbdaf; }
.raah-adm .submission-panel dl.review { grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:20px 32px; }
.raah-adm .submission-panel dl.review dt { font-size:13px;line-height:20px;margin-bottom:6px; }
.raah-adm .submission-panel dl.review dd { font-size:16px;line-height:26px; }
.raah-adm .candidate-fee { min-width:0; }
.raah-adm .wsbody { min-width:0; }
.raah-adm.ws md-tabs { width:100%;max-width:100%;min-width:0;overflow-x:auto; }
@media(max-width:720px){.raah-adm.ws .wsmain{flex:none;width:100%;max-width:100%}}
.raah-adm .button-spinner { width:18px;height:18px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:raah-button-spin .7s linear infinite; }
@keyframes raah-button-spin {to{transform:rotate(360deg)}}
@media(max-width:600px){.raah-adm .submission-panel{--cardpad:20px}.raah-adm .submission-panel .row>div{min-width:0}.raah-adm .submission-panel .code{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.raah-adm .button-spinner{animation:none;border-style:dotted}}

.raah-adm.ws[aria-busy="true"] a, .raah-adm.ws[aria-busy="true"] [data-candidate-fee], .raah-adm.ws[aria-busy="true"] .dialog [data-field] {pointer-events:none;}

/* Compact review controls and consistent intake field alignment. */
.raah-adm .intake-form .grid{align-items:start}
.raah-adm .intake-form md-outlined-text-field[type="datetime-local"]{--md-outlined-text-field-top-space:15px;--md-outlined-text-field-bottom-space:15px}
.raah-adm .compact-choices{display:inline-flex;border:1px solid #85776e;border-radius:20px;overflow:hidden;flex:none;max-width:100%}
.raah-adm .compact-choices button{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:32px;padding:5px 12px;border:0;border-right:1px solid #85776e;background:transparent;color:#251d18;font:500 13px/20px "Google Sans Flex",Arial,sans-serif;cursor:pointer;white-space:nowrap}
.raah-adm .compact-choices button:last-child{border-right:0}
.raah-adm .compact-choices button[aria-pressed=true]{background:#e8ddd3;color:#251d18}
.raah-adm .compact-choices button:focus-visible{outline:2px solid #a46022;outline-offset:-3px}
.raah-adm .recommendation-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0;border-radius:0;gap:8px;width:100%}
.raah-adm .recommendation-choices button{border:1px solid #85776e!important;border-radius:18px;min-height:36px}
.raah-adm .save-progress{position:fixed;right:24px;bottom:24px;z-index:1100;background:#151b29;color:#fff;padding:14px 20px;border-radius:12px;box-shadow:0 4px 20px #0002;font-size:14px}
.raah-adm .snack-error{background:#8c1d18;color:#fff}
.raah-adm[aria-busy=true] .navitem,.raah-adm[aria-busy=true] .wsbody a{pointer-events:none}
.raah-adm .filecard .row{flex-wrap:wrap}
@media(max-width:600px){.raah-adm .save-progress{right:16px;left:16px;bottom:16px}.raah-adm .compact-choices button{padding-inline:10px}}
