/* Member portal skin.
   Scoped to .portal-redesign. Shares the site's language: midnight navy base
   with a coral glow, Lora display type, light Inter body, uppercase tracked
   kickers, hairline rules, pill buttons. Status color is used sparingly and
   only to carry meaning. */

.portal-redesign {
  --p-bg: #080a0d;
  --p-surface: rgba(14, 18, 25, 0.78);
  --p-surface-2: rgba(255, 255, 255, 0.035);
  --p-line: rgba(255, 255, 255, 0.09);
  --p-line-strong: rgba(255, 255, 255, 0.16);
  --p-text: #eaeaea;
  --p-bright: #f4f6f8;
  --p-muted: rgba(255, 255, 255, 0.58);
  --p-faint: rgba(255, 255, 255, 0.36);
  --p-blue: #8ab4f8;
  --p-green: #7fd1a6;
  --p-amber: #f1c27b;
  --p-coral: #ff8a78;
  --p-red: #ff6b5b;
  --p-radius: 14px;
  --p-radius-sm: 10px;
  background:
    radial-gradient(ellipse 60vw 70vh at 12% 0%, #00274c 0%, #00274c00 70%),
    radial-gradient(ellipse 36vw 46vh at 100% 0%, #d81e0524 0%, #d81e0500 72%),
    var(--p-bg) !important;
  background-attachment: fixed !important;
  color: var(--p-text) !important;
  min-height: 100vh;
}

.portal-redesign #main-content { position: relative; }

.portal { font: 300 15px/1.55 Inter, system-ui, sans-serif; color: var(--p-text); }
.portal *, .portal *::before, .portal *::after { box-sizing: border-box; }
.portal [hidden] { display: none !important; }
.portal a { color: var(--p-blue); text-decoration: none; }
.portal a:hover { text-decoration: underline; }
.portal :focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }
.portal h1, .portal h2, .portal h3, .portal h4 { color: var(--p-bright); margin: 0; }

/* Neutralize the legacy site's bare element rules (nav, section, label,
   input, table, headings) inside the portal. */
/* :where() keeps these at class-level specificity so portal component
   classes declared later always win. */
.portal :where(nav) { position: static; inset: auto; flex-grow: 0; justify-content: initial; background: none; border: 0; padding: 0; overflow: visible; }
.portal :where(nav a) { justify-content: flex-start; text-align: left; white-space: nowrap; min-width: 0; max-width: none; line-height: inherit; word-break: normal; }
.portal :where(section) { padding: 0; }
.portal :where(label) { display: block; margin: 0; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.portal :where(input, textarea, select) { margin-top: 0; border-radius: 0; box-shadow: none; font-family: inherit; }
.portal :where(textarea) { min-height: 0; }
.portal :where(table) { margin: 0; }
.portal :where(th, td) { background: none; }
.portal :where(tr:hover) { background: none; }
.portal :where(h1, h2, h3, h4) { font-family: Lora, Georgia, serif; font-weight: 500; }
:where(.portal) svg { width: 17px; height: 17px; flex: none; }

.portal-kicker {
  margin: 0 0 14px;
  color: var(--p-blue);
  font: 500 11.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.portal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 22px;
  border: 1px solid var(--p-text); border-radius: 999px;
  background: var(--p-text); color: #0a0a0a;
  font: 500 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.portal-btn:hover { opacity: .88; }
.portal-btn:active { transform: translateY(1px); }
.portal-btn[disabled] { opacity: .4; cursor: not-allowed; }
.portal-btn--ghost { background: transparent; color: var(--p-text); border-color: var(--p-line-strong); }
.portal-btn--ghost:hover { border-color: var(--p-blue); color: #fff; opacity: 1; }
.portal-btn--quiet { background: transparent; border-color: transparent; color: var(--p-muted); padding: 0 12px; }
.portal-btn--quiet:hover { color: var(--p-text); opacity: 1; }
.portal-btn--danger { background: transparent; border-color: #ff8a7855; color: var(--p-coral); }
.portal-btn--danger:hover { border-color: var(--p-coral); opacity: 1; }
.portal-btn--good { background: var(--p-green); border-color: var(--p-green); color: #06150d; }
.portal-btn--sm { min-height: 34px; padding: 0 15px; font-size: 13px; }
.portal-btn--block { width: 100%; }

/* ---------- Sign-in gate ---------- */
.portal-gate { display: grid; place-items: center; min-height: calc(100vh - 110px); padding: 6vh min(6vw, 40px) 12vh; }
.portal-gate__inner { width: min(460px, 100%); }
.portal-gate__title { font: 500 clamp(44px, 6vw, 70px)/1 Lora, Georgia, serif; letter-spacing: -.035em; margin-bottom: 18px; }
.portal-gate__lede { color: var(--p-muted); font-size: 16.5px; line-height: 1.65; margin: 0 0 36px; }
.portal-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 0 24px;
  border-radius: 999px; background: #fff; color: #1f1f1f !important;
  font: 500 15.5px/1 Inter, system-ui, sans-serif;
  text-decoration: none !important;
  box-shadow: 0 10px 40px -12px rgba(138, 180, 248, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.portal-google:hover { transform: translateY(-1px); box-shadow: 0 16px 48px -12px rgba(138, 180, 248, .6); }
.portal-google[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.portal-gate__hint { margin: 16px 4px 0; color: var(--p-faint); font-size: 13px; line-height: 1.6; text-align: center; }
.portal-gate__hint strong { color: var(--p-muted); font-weight: 500; }
.portal-gate__password { margin-top: 34px; border-top: 1px solid var(--p-line); padding-top: 18px; }
.portal-gate__password summary { cursor: pointer; color: var(--p-muted); font-size: 13.5px; list-style: none; text-align: center; }
.portal-gate__password summary::-webkit-details-marker { display: none; }
.portal-gate__password summary:hover { color: var(--p-text); }
.portal-gate__password .portal-form { margin-top: 22px; }
.portal-gate__foot { margin-top: 40px; color: var(--p-faint); font-size: 13px; text-align: center; }

.portal-alert {
  margin: 0 0 22px; padding: 13px 16px; border-radius: var(--p-radius-sm);
  background: #ff8a7814; border: 1px solid #ff8a7840; color: #ffc7bd; font-size: 14px;
}
.portal-alert--info { background: #8ab4f814; border-color: #8ab4f840; color: #cfe0fc; }

/* ---------- App shell ---------- */
.portal-app {
  display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px);
  max-width: 1280px; margin: 0 auto; padding: 4vh min(5vw, 48px) 14vh;
}
.portal-side { position: sticky; top: 24px; align-self: start; }
.portal-me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 22px; border-bottom: 1px solid var(--p-line); margin-bottom: 16px; }
.portal-me__text { display: grid; min-width: 0; }
.portal-me__text strong { color: var(--p-bright); font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-me__text span { color: var(--p-faint); font-size: 12.5px; }

.portal-nav { display: grid; gap: 2px; }
.portal-nav__group { margin: 18px 0 6px 12px; color: var(--p-faint); font: 500 10.5px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.portal-nav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--p-radius-sm);
  color: var(--p-muted) !important; font-size: 14px; text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}
.portal-nav__link svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.portal-nav__link:hover { background: var(--p-surface-2); color: var(--p-text) !important; }
.portal-nav__link[aria-current="page"] { background: rgba(138, 180, 248, .1); color: var(--p-bright) !important; }
.portal-nav__link[aria-current="page"] svg { opacity: 1; color: var(--p-blue); }
.portal-nav__badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--p-coral); color: #1b0703; font: 600 11px/20px Inter, sans-serif; text-align: center;
}
.portal-nav__sep { height: 1px; background: var(--p-line); margin: 14px 4px; }
.portal-nav__link--muted { font-size: 13px; color: var(--p-faint) !important; }

.portal-main { min-width: 0; outline: none; animation: portal-in .2s ease both; }
@keyframes portal-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.portal-loading { display: grid; place-items: center; min-height: 40vh; }
.portal-spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--p-line-strong); border-top-color: var(--p-blue); animation: portal-spin .8s linear infinite; }
@keyframes portal-spin { to { transform: rotate(360deg); } }

/* ---------- Page header ---------- */
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.portal-head__title { font: 500 clamp(34px, 4.2vw, 52px)/1.04 Lora, Georgia, serif; letter-spacing: -.03em; }
.portal-head__lede { margin: 12px 0 0; color: var(--p-muted); max-width: 620px; font-size: 15.5px; }
.portal-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.portal-section { margin-top: 44px; }
.portal-section:first-child { margin-top: 0; }
.portal-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.portal-section__title { font: 500 21px/1.2 Lora, Georgia, serif; letter-spacing: -.015em; }
.portal-section__meta { color: var(--p-faint); font-size: 13px; }

/* ---------- Cards ---------- */
.portal-card {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 24px 26px; backdrop-filter: blur(6px);
}
.portal-card + .portal-card { margin-top: 14px; }
.portal-card--flush { padding: 0; overflow: hidden; }
.portal-card__title { font: 500 18px/1.25 Lora, Georgia, serif; letter-spacing: -.01em; margin-bottom: 6px; }
.portal-card__sub { color: var(--p-muted); font-size: 14px; margin: 0 0 18px; }

.portal-grid { display: grid; gap: 14px; }
.portal-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Overview hero */
.portal-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 34px; margin-bottom: 30px; }
.portal-ring { position: relative; width: 132px; height: 132px; flex: none; }
.portal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.portal-ring circle { fill: none; stroke-width: 7; }
.portal-ring .track { stroke: rgba(255, 255, 255, .08); }
.portal-ring .value { stroke: var(--p-blue); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
.portal-ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.portal-ring__label strong { font: 500 34px/1 Lora, Georgia, serif; color: var(--p-bright); letter-spacing: -.02em; }
.portal-ring__label span { color: var(--p-faint); font-size: 11.5px; margin-top: 6px; letter-spacing: .04em; }

/* Live session banner */
.portal-live {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 26px; border-radius: var(--p-radius);
  background: linear-gradient(100deg, rgba(138, 180, 248, .16), rgba(138, 180, 248, .04));
  border: 1px solid rgba(138, 180, 248, .32);
}
.portal-live__text { display: flex; align-items: center; gap: 14px; }
.portal-live__text strong { color: var(--p-bright); font-weight: 500; }
.portal-live__text span { color: var(--p-muted); font-size: 14px; }
.portal-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--p-green); box-shadow: 0 0 0 0 rgba(127, 209, 166, .6); animation: portal-pulse 1.8s infinite; flex: none; }
@keyframes portal-pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 209, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 166, 0); } }

/* Requirement tiles */
.portal-req {
  display: flex; flex-direction: column; gap: 14px; min-height: 186px;
  padding: 22px 22px 20px; border-radius: var(--p-radius);
  background: var(--p-surface); border: 1px solid var(--p-line);
  color: inherit !important; text-decoration: none !important;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.portal-req:hover { border-color: var(--p-line-strong); transform: translateY(-2px); background: rgba(18, 23, 32, .85); }
.portal-req__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-req__title { color: var(--p-muted); font: 500 11.5px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.portal-req__value { font: 500 30px/1.05 Lora, Georgia, serif; color: var(--p-bright); letter-spacing: -.02em; }
.portal-req__value small { color: var(--p-faint); font: 300 15px Inter, sans-serif; letter-spacing: 0; margin-left: 4px; }
.portal-req__detail { margin-top: auto; color: var(--p-faint); font-size: 13px; line-height: 1.5; }

.portal-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.portal-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--p-blue); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.portal-bar--good > span { background: var(--p-green); }

/* Status pills */
.portal-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 500 11.5px/1 Inter, sans-serif; letter-spacing: .02em; white-space: nowrap;
  background: rgba(255, 255, 255, .06); color: var(--p-muted);
}
.portal-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.portal-pill--plain::before { display: none; }
.portal-pill--complete, .portal-pill--present, .portal-pill--approved, .portal-pill--accepted, .portal-pill--on-track { background: rgba(127, 209, 166, .12); color: var(--p-green); }
.portal-pill--waived, .portal-pill--excused, .portal-pill--open { background: rgba(138, 180, 248, .13); color: var(--p-blue); }
.portal-pill--review, .portal-pill--pending, .portal-pill--submitted { background: rgba(241, 194, 123, .12); color: var(--p-amber); }
.portal-pill--action, .portal-pill--returned, .portal-pill--absent, .portal-pill--declined, .portal-pill--denied, .portal-pill--rejected { background: rgba(255, 138, 120, .12); color: var(--p-coral); }
.portal-pill--at-risk { background: rgba(255, 107, 91, .18); color: #ffb0a6; }

/* To-do list */
.portal-todo { display: grid; gap: 0; }
.portal-todo__item {
  display: flex; align-items: center; gap: 16px; padding: 16px 4px;
  border-top: 1px solid var(--p-line); color: inherit !important; text-decoration: none !important;
}
.portal-todo__item:first-child { border-top: 0; }
.portal-todo__item:hover .portal-todo__go { transform: translateX(3px); color: var(--p-text); }
.portal-todo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-coral); flex: none; }
.portal-todo__dot--amber { background: var(--p-amber); }
.portal-todo__dot--blue { background: var(--p-blue); }
.portal-todo__text { flex: 1; min-width: 0; }
.portal-todo__text strong { display: block; color: var(--p-bright); font-weight: 400; }
.portal-todo__text span { color: var(--p-faint); font-size: 13px; }
.portal-todo__go { color: var(--p-faint); transition: transform .18s ease, color .18s ease; }

/* Lists / rows */
.portal-list { display: grid; }
.portal-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px;
  border-top: 1px solid var(--p-line);
}
.portal-row:first-child { border-top: 0; }
.portal-row__main { flex: 1; min-width: 0; }
.portal-row__title { color: var(--p-bright); font-weight: 400; overflow-wrap: anywhere; }
.portal-row__meta { color: var(--p-faint); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.portal-row__note { color: var(--p-muted); font-size: 13.5px; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-row__aside { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.portal-row--stack { align-items: flex-start; }
.portal-row__expand { padding: 0 22px 22px; }

.portal-empty { padding: 34px 24px; text-align: center; color: var(--p-faint); font-size: 14px; }
.portal-empty strong { display: block; color: var(--p-muted); font-weight: 400; font-size: 15px; margin-bottom: 4px; }

/* Avatars */
.portal-avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #1d3557, #00274c); color: #cfe0fc;
  font: 500 12.5px/1 Inter, sans-serif; letter-spacing: .02em;
}
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-avatar--lg { width: 42px; height: 42px; font-size: 14.5px; }

/* ---------- Forms ---------- */
.portal-form { display: grid; gap: 22px; }
.portal-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.portal-field { display: grid; gap: 9px; min-width: 0; }
.portal-field > span { color: var(--p-faint); font: 500 11px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.portal-field > span em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--p-faint); font-weight: 300; }
.portal-field input, .portal-field select, .portal-field textarea {
  width: 100%; padding: 8px 0 11px; background: transparent; color: var(--p-text);
  border: 0; border-bottom: 1px solid var(--p-line-strong); border-radius: 0;
  font: 300 15.5px/1.45 Inter, system-ui, sans-serif; appearance: none;
  transition: border-color .15s ease;
}
.portal-field textarea { resize: vertical; min-height: 92px; }
.portal-field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--p-faint) 50%), linear-gradient(135deg, var(--p-faint) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 22px; }
.portal-field select option { background: #0d1117; color: var(--p-text); }
.portal-field input::placeholder, .portal-field textarea::placeholder { color: rgba(255, 255, 255, .2); }
.portal-field input:focus, .portal-field select:focus, .portal-field textarea:focus { border-bottom-color: var(--p-blue); outline: none; }
.portal-field input[type="date"] { color-scheme: dark; }
.portal-form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.portal-form__error { margin: 0; color: var(--p-coral); font-size: 13.5px; }
.portal-form__hint { margin: -10px 0 0; color: var(--p-faint); font-size: 12.5px; }

.portal-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--p-muted); font-size: 14.5px; }
.portal-check input { appearance: none; width: 20px; height: 20px; padding: 0; background: transparent; margin: 1px 0 0; border: 1px solid var(--p-line-strong); border-radius: 6px; flex: none; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.portal-check input:checked { background: var(--p-blue); border-color: var(--p-blue); }
.portal-check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #0a1424; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* File drop */
.portal-drop {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px dashed var(--p-line-strong); border-radius: var(--p-radius-sm);
  color: var(--p-muted); font-size: 14px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.portal-drop:hover, .portal-drop.is-over { border-color: var(--p-blue); background: rgba(138, 180, 248, .05); }
.portal-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.portal-drop svg { width: 22px; height: 22px; flex: none; color: var(--p-blue); }
.portal-drop__text { flex: 1; min-width: 0; }
.portal-drop__text strong { display: block; color: var(--p-text); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-drop__text span { color: var(--p-faint); font-size: 12.5px; }
.portal-drop.has-file { border-style: solid; border-color: rgba(127, 209, 166, .45); }
.portal-drop.has-file svg { color: var(--p-green); }
.portal-drop__clear { position: relative; z-index: 1; }

/* File chips */
.portal-file {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid var(--p-line);
  color: var(--p-muted) !important; font-size: 12.5px; text-decoration: none !important;
}
.portal-file:hover { border-color: var(--p-blue); color: var(--p-text) !important; }
.portal-file svg { width: 15px; height: 15px; color: var(--p-blue); flex: none; }
.portal-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Segmented control */
.portal-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--p-surface-2); border: 1px solid var(--p-line); gap: 2px; }
.portal-seg button { min-height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--p-muted); font: 400 13.5px Inter, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.portal-seg button[aria-pressed="true"] { background: var(--p-text); color: #0a0a0a; font-weight: 500; }
.portal-seg--sm button { min-height: 28px; padding: 0 12px; font-size: 12.5px; }
.portal-seg button.is-present[aria-pressed="true"] { background: var(--p-green); color: #06150d; }
.portal-seg button.is-excused[aria-pressed="true"] { background: var(--p-blue); color: #0a1424; }
.portal-seg button.is-absent[aria-pressed="true"] { background: var(--p-coral); color: #1b0703; }

/* Counters */
.portal-counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.portal-counter { padding: 22px 24px; border-radius: var(--p-radius); background: var(--p-surface); border: 1px solid var(--p-line); }
.portal-counter__label { color: var(--p-faint); font: 500 11px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.portal-counter__value { margin: 14px 0 14px; font: 500 40px/1 Lora, Georgia, serif; color: var(--p-bright); letter-spacing: -.02em; }
.portal-counter__value small { font: 300 16px Inter, sans-serif; color: var(--p-faint); letter-spacing: 0; }

.portal-dots { display: flex; gap: 10px; }
.portal-dots span { width: 44px; height: 44px; border-radius: 50%; border: 1px dashed var(--p-line-strong); display: grid; place-items: center; color: var(--p-faint); font-size: 13px; }
.portal-dots span.is-done { border: 0; background: rgba(127, 209, 166, .16); color: var(--p-green); }
.portal-dots span.is-pending { border: 1px solid rgba(241, 194, 123, .5); color: var(--p-amber); }
.portal-dots svg { width: 18px; height: 18px; }

/* ---------- Check-in ---------- */
.portal-checkin { max-width: 560px; margin: 4vh auto 0; text-align: center; }
.portal-checkin__title { font: 500 clamp(36px, 5vw, 54px)/1.05 Lora, Georgia, serif; letter-spacing: -.03em; margin-bottom: 12px; }
.portal-checkin__lede { color: var(--p-muted); margin: 0 0 40px; }
.portal-code { display: flex; justify-content: center; gap: clamp(8px, 2vw, 14px); margin-bottom: 26px; }
.portal-code input {
  width: clamp(48px, 13vw, 72px); height: clamp(62px, 16vw, 88px);
  border-radius: 14px; border: 1px solid var(--p-line-strong); background: rgba(255, 255, 255, .03);
  color: var(--p-bright); text-align: center; text-transform: uppercase;
  font: 500 clamp(26px, 6vw, 38px)/1 Lora, Georgia, serif; caret-color: var(--p-blue);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.portal-code input:focus { outline: none; border-color: var(--p-blue); background: rgba(138, 180, 248, .07); }
.portal-code.is-error input { border-color: var(--p-coral); animation: portal-shake .35s; }
@keyframes portal-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.portal-checkin__msg { min-height: 24px; color: var(--p-coral); font-size: 14px; }
.portal-success { display: grid; justify-items: center; gap: 16px; padding: 24px 0; }
.portal-success__mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 209, 166, .14); color: var(--p-green); animation: portal-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.portal-success__mark svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: portal-draw .5s .2s ease forwards; }
@keyframes portal-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes portal-draw { to { stroke-dashoffset: 0; } }

/* Timeline of sessions */
.portal-sessions { display: grid; gap: 10px; }
.portal-session { border-radius: var(--p-radius); border: 1px solid var(--p-line); background: var(--p-surface); }
.portal-session__head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.portal-session__num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--p-surface-2); color: var(--p-muted); font: 500 15px Lora, Georgia, serif; flex: none; }
.portal-session__body { padding: 4px 20px 22px 76px; }

/* ---------- Tables ---------- */
.portal-table-wrap { overflow-x: auto; border-radius: var(--p-radius); border: 1px solid var(--p-line); background: var(--p-surface); }
.portal-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.portal-table th { text-align: left; padding: 14px 18px; color: var(--p-faint); font: 500 10.5px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--p-line); white-space: nowrap; }
.portal-table td { padding: 14px 18px; border-top: 1px solid var(--p-line); vertical-align: middle; font-size: 14px; }
.portal-table tbody tr:first-child td { border-top: 0; }
.portal-table tbody tr.is-link { cursor: pointer; transition: background .15s; }
.portal-table tbody tr.is-link:hover { background: var(--p-surface-2); }
.portal-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-person strong { display: block; color: var(--p-bright); font-weight: 400; }
.portal-person small { color: var(--p-faint); font-size: 12.5px; }

.portal-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.portal-search { flex: 1; min-width: 200px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--p-line); background: var(--p-surface-2); color: var(--p-text); font: 300 14px Inter, sans-serif; }
.portal-search:focus { outline: none; border-color: var(--p-blue); }

/* ---------- Drawer ---------- */
.portal-drawer { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; }
.portal-drawer__scrim { position: absolute; inset: 0; background: rgba(2, 4, 7, .66); backdrop-filter: blur(6px); animation: portal-fade .2s ease both; }
.portal-drawer__panel { position: relative; width: min(720px, 100%); height: 100%; overflow-y: auto; background: #0b0f15; border-left: 1px solid var(--p-line); padding: 30px clamp(20px, 4vw, 40px) 60px; animation: portal-slide .28s cubic-bezier(.2, .8, .2, 1) both; }
.portal-drawer__close { position: sticky; top: 0; float: right; z-index: 2; }
@keyframes portal-fade { from { opacity: 0; } }
@keyframes portal-slide { from { transform: translateX(40px); opacity: 0; } }

/* ---------- Presenter ---------- */
.portal-present {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  padding: clamp(20px, 4vw, 48px);
  background: radial-gradient(ellipse 70vw 80vh at 50% 30%, #00274c 0%, #00274c00 70%), #05070a;
}
.portal-present__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.portal-present__top .portal-kicker { margin: 0; }
.portal-present__actions { display: flex; gap: 8px; }
.portal-present__body { flex: 1; display: grid; place-content: center; text-align: center; gap: 2vh; }
.portal-present__title { font: 500 clamp(28px, 4vw, 54px)/1.1 Lora, Georgia, serif; letter-spacing: -.02em; }
.portal-present__instruction { margin: 0; color: var(--p-muted); font-size: clamp(16px, 2vw, 26px); }
.portal-present__instruction strong { color: var(--p-blue); font-weight: 500; }
.portal-present__code { display: flex; justify-content: center; gap: clamp(10px, 2vw, 28px); margin: 3vh 0; }
.portal-present__code span {
  display: grid; place-items: center;
  width: clamp(80px, 14vw, 210px); height: clamp(110px, 19vw, 280px);
  border-radius: clamp(14px, 2vw, 28px); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
  color: #fff; font: 500 clamp(64px, 12vw, 190px)/1 Lora, Georgia, serif;
}
.portal-present__count { margin: 0; color: var(--p-muted); font-size: clamp(16px, 1.8vw, 22px); }
.portal-present__count span:first-child { color: var(--p-green); font-weight: 500; }

/* ---------- Toasts ---------- */
.portal-toasts { position: fixed; z-index: 120; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.portal-toast {
  padding: 13px 18px; border-radius: 12px; background: #eaeaea; color: #0a0a0a; font: 400 14px Inter, sans-serif;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7); animation: portal-toast .3s cubic-bezier(.2, .8, .2, 1) both; pointer-events: auto;
}
.portal-toast--error { background: #ffb4aa; color: #2a0702; }
@keyframes portal-toast { from { opacity: 0; transform: translateY(10px); } }

/* Misc */
.portal-muted { color: var(--p-muted); }
.portal-faint { color: var(--p-faint); font-size: 13px; }
.portal-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.portal-divider { height: 1px; background: var(--p-line); margin: 22px 0; }
.portal-feedback { margin-top: 12px; padding: 12px 14px; border-radius: var(--p-radius-sm); background: rgba(255, 138, 120, .08); border: 1px solid rgba(255, 138, 120, .22); color: #ffd2cb; font-size: 13.5px; white-space: pre-wrap; }
.portal-feedback--good { background: rgba(127, 209, 166, .08); border-color: rgba(127, 209, 166, .22); color: #c9f0da; }
.portal-quote { margin: 10px 0 0; padding-left: 14px; border-left: 2px solid var(--p-line-strong); color: var(--p-muted); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-collapse summary { cursor: pointer; list-style: none; }
.portal-collapse summary::-webkit-details-marker { display: none; }
.portal-collapse[open] > summary .portal-chev { transform: rotate(90deg); }
.portal-chev { display: inline-block; transition: transform .2s ease; color: var(--p-faint); }
.portal-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--p-surface-2); color: var(--p-faint); font-size: 11.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .portal-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .portal-app { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .portal-side { min-width: 0; position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * min(5vw, 48px)) 26px; padding: 12px min(5vw, 48px) 0; background: rgba(8, 10, 13, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--p-line); }
  .portal-me { display: none; }
  .portal-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .portal-nav::-webkit-scrollbar { display: none; }
  .portal-nav__group, .portal-nav__sep { display: none; }
  .portal-nav__link { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; }
  .portal-nav__link svg { display: none; }
  .portal-nav__badge { margin-left: 4px; }
}

@media (max-width: 640px) {
  .portal-grid--2, .portal-grid--3, .portal-counters { grid-template-columns: 1fr; }
  .portal-hero { grid-template-columns: 1fr; gap: 22px; }
  .portal-ring { width: 108px; height: 108px; }
  .portal-card { padding: 20px 18px; }
  .portal-row { padding: 14px 16px; flex-wrap: wrap; }
  .portal-row__aside { width: 100%; justify-content: flex-start; }
  .portal-row__expand { padding: 0 16px 18px; }
  .portal-session__body { padding: 0 16px 18px; }
  .portal-head { margin-bottom: 24px; }
  .portal-live { padding: 16px; }
  .portal-dots span { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal *, .portal *::before, .portal *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Reflections, word counts, and VP Education editing controls */
.portal-words { color: var(--p-faint); font-size: 12.5px; }
.portal-words.is-good { color: var(--p-green); }
.portal-tag--warn { background: rgba(241, 194, 123, .14); color: var(--p-amber); }
.portal-reflection { margin-top: 4px; }
.portal-select-sm { flex: 0 0 auto; width: auto; min-width: 150px; padding: 7px 30px 7px 14px !important; font-size: 13px !important; border-bottom: 1px solid var(--p-line) !important; }
.portal-seg button.is-review[aria-pressed="true"] { background: var(--p-amber); color: #241703; }
.portal-waiver { display: grid; grid-template-columns: minmax(200px, auto) 1fr; gap: 6px 16px; align-items: center; }
.portal-waiver input[type="text"] { padding: 6px 0 8px; background: transparent; border: 0; border-bottom: 1px solid var(--p-line-strong); color: var(--p-text); font: 300 14px Inter, sans-serif; }
.portal-waiver input[type="text"]:focus { outline: none; border-bottom-color: var(--p-blue); }
@media (max-width: 640px) { .portal-waiver { grid-template-columns: 1fr; } }
.portal-drawer__panel .portal-counter .portal-inline { flex-wrap: nowrap; }
.portal-drawer__panel .portal-counter .portal-counter__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-drawer__close { background: #0b0f15 !important; }
.portal-field > span.portal-words { font: 400 12.5px Inter, sans-serif; letter-spacing: normal; text-transform: none; color: var(--p-faint); }
.portal-field > span.portal-words.is-good { color: var(--p-green); }

/* ---------- Responsiveness polish ---------- */
/* Busy buttons keep their size and show a spinner instead of new text. */
.portal-btn.is-busy { position: relative; -webkit-text-fill-color: transparent; pointer-events: none; }
.portal-btn.is-busy > * { visibility: hidden; }
.portal-btn.is-busy::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: portal-spin .7s linear infinite; opacity: .75;
}
.portal-btn:active:not([disabled]) { transform: scale(.97); }

/* Rows that are removed optimistically collapse away. */
.portal-row, .portal-session { transition: opacity .2s ease, transform .2s ease; }
.portal-row.is-leaving, .portal-session.is-leaving { opacity: 0; transform: translateX(12px); pointer-events: none; animation: portal-collapse .32s .12s ease forwards; }
@keyframes portal-collapse { to { max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; overflow: hidden; } }
.portal-row.is-provisional { opacity: .6; }
.portal-row { max-height: 2000px; }

/* Counter bump when progress is logged. */
.portal-counter.is-bumped .portal-counter__value { animation: portal-bump .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes portal-bump { 40% { transform: scale(1.08); color: var(--p-green); } }

/* Skeleton shown only when a view takes a moment. */
.portal-skeleton { display: grid; gap: 18px; animation: portal-fade .3s ease both; }
.portal-skeleton__line, .portal-skeleton__card {
  display: block; border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%; animation: portal-shimmer 1.2s ease-in-out infinite;
}
.portal-skeleton__line--kicker { width: 140px; height: 12px; }
.portal-skeleton__line--title { width: min(420px, 70%); height: 46px; margin-bottom: 14px; }
.portal-skeleton__card { height: 170px; border-radius: var(--p-radius); }
@keyframes portal-shimmer { to { background-position: -200% 0; } }

.portal-row.is-unread { background: rgba(138, 180, 248, .04); }

/* Absence facts in the review queue */
.portal-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-fact { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 11px; border-radius: 9px; background: var(--p-surface-2); border: 1px solid var(--p-line); font-size: 12.5px; color: var(--p-faint); }
.portal-fact strong { color: var(--p-text); font-weight: 500; }
.portal-fact--good { border-color: rgba(127, 209, 166, .3); } .portal-fact--good strong { color: var(--p-green); }
.portal-fact--warn { border-color: rgba(241, 194, 123, .3); } .portal-fact--warn strong { color: var(--p-amber); }
.portal-fact--bad { border-color: rgba(255, 138, 120, .3); } .portal-fact--bad strong { color: var(--p-coral); }
.portal-facts-block { display: grid; gap: 12px; margin-top: 16px; }
.portal-facts-row { display: grid; gap: 7px; }
.portal-facts-label { color: var(--p-faint); font: 500 10.5px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.portal-fact.is-zero strong { color: var(--p-faint); }
.portal-fact--review { border-color: rgba(241, 194, 123, .3); } .portal-fact--review strong { color: var(--p-amber); }
.portal-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .portal-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Absence board (Reviews) and the four-type control */
.portal-type-control { display: grid; gap: 8px; justify-items: start; }
.portal-types { flex-wrap: wrap; border-radius: 14px; }
.portal-types button { min-height: 30px; }
.portal-type-extras { display: flex; gap: 16px; padding-left: 4px; }
.portal-linkbtn { padding: 0; border: 0; background: none; color: var(--p-faint); font: 400 12.5px Inter, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.18); }
.portal-linkbtn:hover { color: var(--p-text); }
.portal-linkbtn[aria-pressed="true"] { color: var(--p-amber); text-decoration-color: currentColor; }
.portal-seg__count { margin-left: 7px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11.5px; }
.portal-seg button[aria-pressed="true"] .portal-seg__count { background: rgba(0,0,0,.12); }
.portal-absence-groups { display: grid; gap: 12px; }
.portal-absence-group { padding: 0; overflow: hidden; }
.portal-absence-group.is-over { border-color: rgba(255, 107, 91, .45); box-shadow: inset 3px 0 0 var(--p-red); }
.portal-absence-group__head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; flex-wrap: wrap; }
.portal-absence-group__head .portal-row__title { font-size: 16px; }
.portal-absence-list { display: grid; }
.portal-absence { display: grid; gap: 12px; padding: 16px 22px 18px 22px; border-top: 1px solid var(--p-line); }
.portal-absence__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.portal-absence__head .portal-session__num { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
@media (max-width: 640px) {
  .portal-absence, .portal-absence-group__head { padding-left: 16px; padding-right: 16px; }
  .portal-types button { flex: 1 1 45%; }
}

/* Board data export */
.portal-export__bar { display: flex; gap: 18px 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.portal-export__bar-main { display: grid; gap: 10px; flex: 1 1 320px; min-width: 0; }
.portal-export__bar-main .portal-faint { margin: 0; }
.portal-export__groups { display: grid; gap: 14px; }
.portal-export__groups .portal-card + .portal-card { margin-top: 0; }
.portal-export__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.portal-export__head .portal-card__title { margin-bottom: 0; }
.portal-export__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.portal-export__label { display: block; color: var(--p-text); }
.portal-export__desc { display: block; color: var(--p-faint); font-size: 13px; margin-top: 2px; }
@media (max-width: 760px) {
  .portal-export__list { grid-template-columns: 1fr; }
  .portal-export__bar .portal-form__actions { width: 100%; }
}

/* Recruiting screenshots and the Uploads page */
.portal-uploader { display: grid; gap: 10px; margin-bottom: 20px; }
.portal-drop--multi { padding: 22px 20px; }
.portal-drop.is-busy { cursor: progress; border-style: solid; border-color: var(--p-blue); }
.portal-drop.is-busy input { cursor: progress; }
.portal-uploader__bar span { transition: width .25s ease; }
.portal-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.portal-shot {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); overflow: hidden;
  background: var(--p-surface-2); transition: opacity .25s ease, border-color .15s ease;
}
.portal-shot:hover { border-color: var(--p-line-strong); }
.portal-shot.is-leaving { opacity: .3; pointer-events: none; }
.portal-shot.is-rejected { border-color: #ff8a7866; }
.portal-shot.is-rejected .portal-shot__media { opacity: .45; }
.portal-shot__media {
  display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background: rgba(0, 0, 0, .25); color: var(--p-muted); text-decoration: none !important;
}
.portal-shot__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.portal-shot__media--text { padding: 12px; text-align: center; font-size: 13px; gap: 4px; align-content: center; }
.portal-shot__media--text strong { color: var(--p-text); font-weight: 500; }
.portal-shot__doc { display: grid; place-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; }
.portal-shot__doc svg { width: 28px; height: 28px; color: var(--p-blue); }
.portal-shot__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 10px; min-height: 38px; }
.portal-shot__foot--stack { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; }
.portal-shot__kind { color: var(--p-text); font-size: 12.5px; }
.portal-shot__meta { color: var(--p-faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
.portal-shot__actions { display: flex; align-items: center; flex: none; }
.portal-shot__actions .portal-btn--sm { padding: 0 8px; min-height: 28px; font-size: 12px; }
.portal-shot__note { padding: 0 10px 10px; color: var(--p-coral); font-size: 12px; }
.portal-shot__note strong { font-weight: 500; }
.portal-shot__panel { display: grid; gap: 8px; padding: 0 10px 10px; }
.portal-shot__panel textarea { font-size: 13px; }
.portal-shots-wrap { display: grid; gap: 20px; padding: 20px 22px; border-top: 1px solid var(--p-line); }
.portal-shots-block__head { color: var(--p-muted); font-size: 13px; margin-bottom: 10px; }
.portal-uploads { display: grid; gap: 14px; }
.portal-uploads .portal-card + .portal-card { margin-top: 0; }
.portal-uploads__bar { margin-bottom: 18px; }
.portal-uploads__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) {
  .portal-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portal-shots-wrap { padding: 16px; }
}
.portal-shot__foot--review { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 10px 6px; }
.portal-shot__foot--review .portal-shot__actions { justify-content: space-between; margin: 0 -8px; }
