/* theintern.my app styles. Plain CSS, no build step: edit and upload.
 * Colours come from the approved token set (design/tokens.css). Light theme first. */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/quicksand-latin-700-normal.woff2") format("woff2"); }

:root {
  --brand-blue: #16249A;
  --brand-yellow: #FFC20E;
  --brand-red: #CC0001;
  --brand-red-bright: #FF3D47;
  --brand-navy: #0B1240;
  --brand-mist: #EEF1FF;
  --white: #FFFFFF;

  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EEF1FF;
  --color-text: #0B1240;
  --color-text-muted: #4A5180;
  --color-text-subtle: #6A7099;
  --color-border: #D9DDF2;
  --color-border-strong: #747BAA;
  --color-focus: #16249A;
  --color-primary: #16249A;
  --color-primary-hover: #111C7A;
  --color-on-primary: #FFFFFF;
  --color-primary-soft: #EEF1FF;
  --color-accent: #FFC20E;
  --color-on-accent: #0B1240;
  --color-cta: #CC0001;
  --color-cta-hover: #A30001;
  --color-success: #0F6B3A;
  --color-success-soft: #E3F5EA;
  --color-warning: #7A4B00;
  --color-warning-soft: #FFF4D1;
  --color-danger: #A30001;
  --color-danger-soft: #FFE9E9;

  --font-sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-wordmark: "Quicksand", "Lato", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(11 18 64 / .06), 0 4px 16px rgb(11 18 64 / .06);
  --tap: 44px;
  --sidebar: 240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--color-primary); text-underline-offset: 2px; }
a:hover { color: var(--color-primary-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; }
h2 { font-size: 1.25rem; font-weight: 900; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--color-primary); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 50; }
.skip-link:focus { top: 8px; color: var(--white); }
.muted { color: var(--color-text-muted); }
.small { font-size: .875rem; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.stack-lg { display: grid; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--color-text-muted); }

/* Wordmark (placeholder until the SVG logo is supplied) */
.wordmark { font-family: var(--font-wordmark); font-weight: 700; color: var(--brand-navy); text-decoration: none; white-space: nowrap; line-height: 1; font-size: 1.375rem; letter-spacing: -.01em; }
.wordmark:hover { color: var(--brand-navy); }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after { content: ""; position: absolute; left: 50%; top: -.06em; width: .2em; height: .2em; margin-left: -.1em; border-radius: 50%; background: var(--brand-yellow); }
.wordmark .dot { color: var(--brand-yellow); }
.wordmark .my { color: var(--brand-red); }
.wordmark-lg { font-size: 2.5rem; }
.wordmark-on-dark { color: var(--white); }
.wordmark-on-dark:hover { color: var(--white); }
.wordmark-on-dark .my { color: var(--brand-red-bright); }

/* App shell */
.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 1200px; margin-inline: auto; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-yellow); color: var(--brand-navy); display: grid; place-items: center; font-weight: 900; font-size: .875rem; flex: none; }
.layout { width: 100%; max-width: 1200px; margin-inline: auto; display: grid; grid-template-columns: 1fr; }
.content { padding: 24px 16px 96px; min-width: 0; display: grid; gap: 24px; align-content: start; }
.sidenav { display: none; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--color-surface); border-top: 1px solid var(--color-border); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottomnav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; }
.bottomnav li { flex: 1 0 auto; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; min-width: 72px; padding: 8px 6px; font-size: .75rem; font-weight: 700; color: var(--color-text-muted); text-decoration: none; justify-content: center; }
.bottomnav a[aria-current="page"] { color: var(--color-primary); }
.nav-icon { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .sidenav { display: block; border-right: 1px solid var(--color-border); padding: 24px 12px; }
  .sidenav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 88px; }
  .sidenav a { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 12px; border-radius: var(--radius-sm); color: var(--color-text-muted); font-weight: 700; text-decoration: none; }
  .sidenav a:hover { background: var(--color-surface-alt); color: var(--color-text); }
  .sidenav a[aria-current="page"] { background: var(--color-primary-soft); color: var(--color-primary); }
  .bottomnav { display: none; }
  .content { padding: 32px 32px 48px; }
}

/* Footer credit (required on every page) */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface-alt); }
.site-footer-inner { max-width: 1200px; margin-inline: auto; padding: 20px 16px 88px; display: grid; gap: 6px; font-size: .8125rem; color: var(--color-text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--color-text-muted); }
@media (min-width: 900px) { .site-footer-inner { padding-bottom: 20px; } }
.guest .site-footer-inner { padding-bottom: 20px; }

/* Guest (login, register, splash) */
.guest-main { display: grid; place-items: center; padding: 32px 16px; }
.guest-card { width: 100%; max-width: 440px; display: grid; gap: 20px; }
.guest-brand { display: grid; gap: 8px; justify-items: center; text-align: center; padding-bottom: 8px; }
.hero { background: var(--brand-navy); color: var(--white); }
.hero-inner { max-width: 1200px; margin-inline: auto; padding: 48px 16px; display: grid; gap: 20px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
.hero .lead { color: #C9CFFF; max-width: 40ch; font-size: 1.125rem; }
.hero mark { background: var(--brand-yellow); color: var(--brand-navy); padding: 0 .15em; border-radius: .15em; }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card-plain { box-shadow: none; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.placeholder-card { border-style: dashed; box-shadow: none; background: var(--color-surface-alt); }
.phase-tag { justify-self: start; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.stat { font-size: 2rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: var(--radius-pill); border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-cta { background: var(--color-cta); color: var(--white); }
.btn-cta:hover { background: var(--color-cta-hover); color: var(--white); }
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-surface-alt); }
.btn-danger { background: transparent; color: var(--color-danger); border-color: var(--color-danger); }
.btn-danger:hover { background: var(--color-danger-soft); color: var(--color-danger); }
.btn-ghost { background: transparent; color: var(--color-text-muted); padding-inline: 12px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--color-surface-alt); color: var(--color-text-subtle); cursor: not-allowed; border-color: var(--color-border); }
.btn-hero { background: var(--color-cta); color: var(--white); }
.btn-hero-outline { border-color: #C9CFFF; color: var(--white); background: transparent; }
.btn-hero-outline:hover { background: rgb(255 255 255 / .08); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label { font-weight: 700; font-size: .9375rem; }
.hint { font-size: .8125rem; color: var(--color-text-muted); }
.input, .select, .textarea { width: 100%; min-height: var(--tap); font: inherit; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--color-focus); outline-offset: 0; border-color: var(--color-focus); }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: .875rem; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--color-primary); }
.role-picker { display: grid; gap: 10px; }
.role-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md); cursor: pointer; }
.role-option input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--color-primary); flex: none; }
.role-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.role-option strong { display: block; }
.inline-form { display: inline; }
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: .9375rem; }
.alert-success { background: var(--color-success-soft); color: var(--color-success); }
.alert-warning { background: var(--color-warning-soft); color: var(--color-warning); }
.alert-danger { background: var(--color-danger-soft); color: var(--color-danger); }
.alert-info { background: var(--color-primary-soft); color: var(--color-primary); }
.alert strong { display: block; }
.verify-banner { background: var(--color-warning-soft); color: var(--color-warning); border: 1px dashed currentColor; border-radius: var(--radius-md); padding: 10px 14px; font-size: .875rem; }
.fee-rule { background: var(--color-warning-soft); color: var(--color-warning); border-radius: var(--radius-md); padding: 10px 14px; font-size: .875rem; }

/* Badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.badge-ok { background: var(--color-success-soft); color: var(--color-success); }
.badge-warn { background: var(--color-warning-soft); color: var(--color-warning); }
.badge-bad { background: var(--color-danger-soft); color: var(--color-danger); }
.badge-info { background: var(--color-primary-soft); color: var(--color-primary); }
.badge-accent { background: var(--color-accent); color: var(--color-on-accent); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-surface-alt); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .input, .table .select { min-height: 38px; padding: 6px 10px; font-size: .875rem; }
.table-min { min-width: 720px; }
.json { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; white-space: pre-wrap; word-break: break-word; max-width: 360px; color: var(--color-text-muted); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); text-decoration: none; font-size: .875rem; }
.pagination [aria-current="page"] span { background: var(--color-primary); color: var(--white); border-color: var(--color-primary); }

/* Prose (terms, privacy, about) */
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h2 { margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Install guide */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); color: var(--white); font-weight: 900; display: grid; place-items: center; }
.shot-placeholder { aspect-ratio: 9 / 16; max-width: 220px; width: 100%; border: 2px dashed var(--color-border-strong); border-radius: var(--radius-lg); display: grid; place-items: center; text-align: center; padding: 16px; color: var(--color-text-muted); font-size: .875rem; background: var(--color-surface-alt); }
.qr { background: var(--white); padding: 8px; border-radius: var(--radius-md); border: 1px solid var(--color-border); width: 216px; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.health-ok { color: var(--color-success); font-weight: 700; }
.health-bad { color: var(--color-danger); font-weight: 700; }
.install-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--color-primary-soft); border-radius: var(--radius-md); padding: 12px 16px; }
.guest-card-wide { max-width: 720px; }
.content-narrow { max-width: 960px; margin-inline: auto; width: 100%; }
.fieldset-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.input-sm { width: 9rem; }
.input-md { width: 12rem; }
.input-lg { width: min(100%, 22rem); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--color-border-strong); }
[hidden] { display: none !important; }
.badges { justify-items: start; }
.form > .btn:not(.btn-block) { justify-self: start; }

/* Phase 2 */
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checks { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.checks-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.section { display: grid; gap: 16px; padding-top: 8px; }
.section + .section { border-top: 1px solid var(--color-border); padding-top: 20px; }
.rowset { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-alt); }
.progress { width: 100%; height: 10px; border-radius: var(--radius-pill); background: var(--color-surface-alt); border: 1px solid var(--color-border); overflow: hidden; }
.progress::-webkit-progress-bar { background: var(--color-surface-alt); }
.progress::-webkit-progress-value { background: var(--color-primary); }
.progress::-moz-progress-bar { background: var(--color-primary); }
.dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; margin: 0; }
.dl dt { font-weight: 700; color: var(--color-text-muted); font-size: .875rem; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.status-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; }
.status-steps .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 900; border: 2px solid var(--color-border-strong); color: var(--color-text-muted); }
.status-steps .done .dot { background: var(--color-success); border-color: var(--color-success); color: var(--white); }
.status-steps .current .dot { border-color: var(--color-primary); color: var(--color-primary); }
.status-steps .current { font-weight: 700; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.danger-zone { border-color: var(--color-danger); }
.invoice { max-width: 760px; }
.invoice .table { min-width: 0; }
.print-only { display: none; }
@media print {
  .topbar, .sidenav, .bottomnav, .site-footer, .no-print, .skip-link, .alert { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .print-only { display: block; }
  body { background: #fff; }
}
.textarea-lg { min-height: 260px; }

/* ---- Phase 3: chat, threads, interviews, notifications ---- */
.nav-badge { background: var(--color-cta); color: #fff; font-size: .6875rem; font-weight: 900; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; text-align: center; }
.bottomnav a { position: relative; }
.bottomnav .nav-badge { position: absolute; top: 4px; right: calc(50% - 22px); }
.nav-badge[hidden] { display: none; }

.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.thread-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: inherit; text-decoration: none; font: inherit; cursor: pointer; min-height: var(--tap); }
.thread-row.is-unread { border-color: var(--color-primary); background: var(--color-primary-soft); }
.thread-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.thread-main strong, .thread-main span { overflow: hidden; text-overflow: ellipsis; }
.thread-meta { text-align: right; white-space: nowrap; }

.messages { list-style: none; margin: 0 0 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--color-surface-alt); border-radius: var(--radius-lg); min-height: 200px; max-height: 60vh; overflow-y: auto; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.msg-mine { align-self: flex-end; background: var(--color-primary); color: var(--color-on-primary); border-bottom-right-radius: 4px; }
.msg-mine .muted, .msg-mine a { color: inherit; opacity: .85; }
.msg-theirs { align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-bottom-left-radius: 4px; }
.msg-system { align-self: center; background: transparent; color: var(--color-text-muted); font-size: .8125rem; text-align: center; max-width: 100%; }
.msg-text { margin: 0; white-space: pre-wrap; }
.msg-meta { font-size: .6875rem; }
.msg-img { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.composer textarea { min-height: 52px; resize: vertical; }
.attach { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.report-box summary { list-style: none; cursor: pointer; }
.report-box[open] { position: relative; }
.report-box .form { position: absolute; right: 0; z-index: 5; width: min(320px, 90vw); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-card); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; margin: 0; }
.facts dt { font-size: .75rem; color: var(--color-text-muted); }
.facts dd { margin: 0; font-weight: 700; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.is-muted { opacity: .6; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quote { margin: 0; padding: 8px 12px; border-left: 4px solid var(--color-border-strong); background: var(--color-surface-alt); white-space: pre-wrap; overflow-wrap: anywhere; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.prefs td, .prefs th { padding: 6px 8px; }
.check { display: flex; gap: 8px; align-items: center; }
details > summary { cursor: pointer; }
details[open] > summary { margin-bottom: 8px; }

/* Phase 3: form controls in chat, pipeline, interview and moderation screens use the same look as .input */
.content select:not([class]), .content textarea:not([class]), .content input:not([class]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]) {
  width: 100%; min-height: var(--tap); font: inherit; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text);
}
.content select:not([class]):focus, .content textarea:not([class]):focus, .content input:not([class]):focus { outline: 3px solid var(--color-focus); outline-offset: 0; border-color: var(--color-focus); }
.content textarea:not([class]) { min-height: 52px; resize: vertical; }
.filter-bar select, .filter-bar input { width: auto !important; flex: 1 1 10rem; }

/* Student verification photos */
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.proof-img { max-width: 100%; height: auto; max-height: 520px; border-radius: 8px; display: block; }

/* MySIP claim: progress steps */
.claim-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.claim-steps li { padding: 6px 12px; border-radius: 999px; background: var(--color-mist, #EEF1FF); color: var(--color-text-muted, #4a5070); font-size: .9rem; font-weight: 600; }
.claim-steps li.done { background: var(--color-primary); color: var(--white, #fff); }
.claim-steps li[aria-current="step"] { outline: 2px solid var(--color-accent, #FFC20E); outline-offset: 2px; }

/* Admin tab rows (Outreach, PDPA requests) and the hidden spam trap field on public forms */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
.tab { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--color-text-muted, #4a5070); background: var(--color-mist, #EEF1FF); min-height: var(--tap); display: inline-flex; align-items: center; }
.tab.is-active { background: var(--color-primary); color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.text-danger { color: var(--color-danger); }
