@charset "UTF-8";
/* Shared college design system. Loaded after app.css; body specificity keeps
   typography consistent when the individual feature styles load later. */
:root {
  --navy: #76508f;
  --navy2: #65417d;
  --gold: #e6ab90;
  --ink: #302c31;
  --muted: #766c79;
  --bg: #fffaf6;
  --line: #eee3e7;
  --green: #247b61;
  --red: #af394c;
  --shadow: 0 5px 24px rgb(105 67 107 / 5%);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Leelawadee UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body h1 { font-size: 32px; font-weight: 700; line-height: 1.5; letter-spacing: -.5px; }
body h2 { font-size: 23px; font-weight: 700; line-height: 1.6; letter-spacing: -.2px; }
body h3 { font-size: 18px; line-height: 1.7; }
body small, body .small { font-size: 14px; line-height: 1.8; }
body .muted { color: var(--muted); }
body .eyebrow { color: #94583e; font-size: 11px; letter-spacing: 1.8px; line-height: 1.8; }
body a, body button { -webkit-tap-highlight-color: transparent; }
body a:focus-visible, body button:focus-visible, body input:focus-visible,
body select:focus-visible, body textarea:focus-visible, body summary:focus-visible {
  outline: 3px solid #bc6e4c; outline-offset: 3px;
}

/* Consistent identity and a compact navigation rail. */
body .sidebar {
  width: 270px; padding: 27px 14px 20px;
  background: #332835; border-right: 1px solid #433346;
}
body .sidebar .brand { padding: 0 8px 24px; border-bottom: 1px solid #ffffff17; }
body .brand { gap: 12px; font-size: 20px; letter-spacing: .7px; font-weight: 600; }
body .brand > span:last-child { min-width: 0; }
body .brand b { color: #b15832; }
body .brand small { font-size: 9px; letter-spacing: 1.25px; line-height: 1.7; margin-top: 5px; color: #916098; }
body .brand-logo {
  display: block; width: 55px; height: 55px; flex: 0 0 55px;
  object-fit: contain; padding: 4px; background: #fff;
  border: 1px solid #ead3c9; border-radius: 13px;
}
body .sidebar .brand-logo { width: 57px; height: 57px; flex-basis: 57px; }
body .nav-label { color: #925f98; font-size: 11px; margin: 27px 14px 12px; letter-spacing: 1.6px; }
body .sidebar nav a {
  min-height: 47px; padding: 10px 12px; gap: 11px; margin: 5px 0;
  color: #906095; font-size: 15px; line-height: 1.7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid transparent; border-radius: 10px;
}
body .sidebar nav a > span { width: 21px; min-width: 21px; font-size: 19px; color: #916098; }
body .sidebar nav a:hover { background: #ffffff0c; border-color: #ffffff0c; color: #fff; }
body .sidebar nav a.active { color: #b25830; background: #ffffff10; border-color: #d4947935; }
body .sidebar nav a.active > span { color: #b35730; }
body .sidebar-foot { padding: 18px 12px 0; font-size: 13px; color: #945f9b; }
body .sidebar-foot small { font-size: 12px; color: #926098; margin-top: 7px; }
body .workspace { margin-left: 270px; min-width: 0; }

/* Account details stay visible at every screen size. */
body .topbar {
  min-height: 96px; height: auto; padding: 19px 34px;
  gap: 22px; background: #fff; border-bottom: 1px solid #eadfeb;
}
body .breadcrumb { color: #7d6a81; font-size: 14px; line-height: 1.7; }
body .account { display: flex; align-items: center; gap: 13px; min-width: 0; font-size: 18px; }
body .account > span:not(.avatar) { display: block; min-width: 0; color: #443447; font-size: 18px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
body .account small { display: block; margin-top: 3px; color: #7f6b84; font-size: 14px; font-weight: 400; line-height: 1.6; }
body .avatar, body .staff-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #eacdc0; background: #f7e9e3; color: #92553b; border-radius: 14px; font-size: 21px; font-weight: 600; }
body .account form { flex: 0 0 auto; margin: 0 0 0 6px; }
body .topbar .account .text-button { max-width: none; padding: 8px 12px; font-size: 14px; line-height: 1.7; border: 1px solid #ebe1ec; border-radius: 9px; background: #fff; color: #715f75; white-space: nowrap; }
body .topbar .account .text-button:hover { text-decoration: none; background: #f9f6f9; border-color: #dccade; }
body .menu-toggle { color: var(--navy); border-radius: 9px; flex-shrink: 0; }
body main { max-width: 1600px; padding: 34px; }
body .page-heading { align-items: flex-start; gap: 24px; margin-bottom: 28px; }
body .page-heading p { color: #7f6b84; font-size: 15px; margin-top: 5px; }
body .date-chip { color: #6c554b; background: #fcf7f5; border-color: #ead3c9; border-radius: 9px; padding: 8px 13px; font-size: 13px; }

/* Common components: clear hierarchy, comfortable spacing and contrast. */
body .btn {
  min-height: 45px; padding: 11px 19px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1.6;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
body .btn:hover { box-shadow: 0 3px 10px #33283514; }
body .btn.secondary { color: #534057; background: #fff; border-color: #e5d8e6; }
body .btn.secondary:hover { background: #f9f6f9; border-color: #d1bad4; }
body .btn.gold { color: #423345; border-color: #d6997f; background: #dfa992; }
body .btn.gold:hover { background: #e8bca9; border-color: #cf8a6d; }
body .text-button { font-size: 14px; }
body .card, body .course-card, body .stat, body .table-wrap,
body .staff-facts > div { border-radius: 16px; border-color: #eae0ec; box-shadow: var(--shadow); }
body .card { padding: 28px; margin: 22px 0; }
body .section-heading, body .toolbar { gap: 18px; }
body .section-heading > a { font-size: 14px; font-weight: 600; }
body .stats { gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .stat { padding: 23px; }
body .stat > span { font-size: 14px; color: #7f6c84; }
body .stat strong { font-size: 36px; font-weight: 600; color: #3d2f40; margin: 8px 0; line-height: 1.5; }
body .stat small { font-size: 13px; color: #7f6c84; }
body .stat::before { width: 60px; height: 60px; border-width: 14px; border-color: #d4947918; right: -13px; top: 23px; }
body .hero { background: #382b3b; border: 1px solid #4d3c50; border-radius: 18px; padding: 34px 38px; box-shadow: 0 8px 26px #3328350c; }
body .hero h2 { font-size: 29px; line-height: 1.65; max-width: 780px; }
body .hero p { font-size: 15px; line-height: 1.9; color: #935f99; }
body .hero .eyebrow { color: #b05833; }
body .hero .btn { font-size: 15px; }
body .hero-symbol { color: #d494798c; }
body .hero-symbol small { font-size: 10px; color: #925f98; }
body .notice { font-size: 15px; line-height: 1.85; padding: 16px 19px; border-radius: 11px; background: #f6f1f6; color: #615265; border-color: #e9deea; }
body .notice.success { background: #edf7f2; color: #286a51; border-color: #cee5d9; }
body .notice.error { color: #9d3344; background: #fff2f3; border-color: #efd2d8; }
body .badge { font-size: 12px; line-height: 1.7; padding: 4px 9px; border-radius: 7px; font-weight: 500; }
body .table-wrap { background: #fff; overscroll-behavior-x: contain; }
body table { font-size: 14px; }
body th { color: #69596c; background: #f8f5f9; font-size: 13px; font-weight: 600; }
body td, body th { padding: 17px 19px; border-bottom-color: #f0e9f1; vertical-align: middle; }
body td small { color: #7e6b82; font-size: 12px; margin-top: 5px; }
body tr:hover td { background: #fcfbfc; }
body .table-wrap .btn { min-height: 37px; font-size: 13px; padding: 7px 11px; border-radius: 8px; }
body .table-wrap .text-button { font-size: 13px; }
body .course-grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
body .course-card { padding: 25px; transition: border-color .15s, box-shadow .15s, transform .15s; }
body .course-card:hover { box-shadow: 0 9px 24px #3328350b; }
body .course-code { padding: 5px 10px; font-size: 12px; letter-spacing: .4px; background: #f7e9e3; color: #8a4f36; border-radius: 6px; }
body .course-card h2 { font-size: 21px; color: #453548; }
body .course-card p { font-size: 15px; color: #7f6c84; line-height: 1.8; }
body .course-card > div:last-child { gap: 12px; font-size: 13px; }
body .exam-spec span { font-size: 12px; padding: 5px 9px; }
body .list b { font-size: 15px; }
body .list small { font-size: 13px; }
body .list > a, body .list > div { align-items: center; padding: 18px 0; }
body .empty { color: #7f6c84; border-color: #ddccdf; padding: 40px 24px; border-radius: 16px; }
body .bars > div, body .bars small { color: #7e6b82; font-size: 12px; }
body .bars span { background: #cd967e; border-radius: 6px 6px 0 0; }
body footer { font-size: 12px; color: #7e6b82; padding-top: 22px; }

/* Forms, filters and feature navigation. */
body label { color: #625366; font-size: 15px; font-weight: 500; line-height: 1.75; }
body input:not([type="radio"]):not([type="checkbox"]), body select, body textarea {
  color: #433346; background: #fff; border: 1px solid #e0d0e2;
  border-radius: 10px; min-height: 46px; padding: 11px 13px; font-size: 16px;
  box-shadow: 0 1px 2px #33283503;
}
body input::placeholder, body textarea::placeholder { color: #7e6b83; opacity: 1; }
body input[type="file"] { overflow: hidden; max-width: 100%; }
body input[type="file"]::file-selector-button { margin: -2px 12px -2px -2px; padding: 7px 11px; border: 1px solid #e2d3e4; border-radius: 7px; background: #f6f1f7; color: #5b4d5f; font: inherit; cursor: pointer; }
body input[type="checkbox"], body input[type="radio"] { width: 19px; height: 19px; margin-top: 5px; accent-color: #503d53; }
body .search { min-height: 46px; border-radius: 10px; }
body .tabs { background: #f2ecf3; border: 1px solid #ebe1ec; padding: 5px; gap: 5px; border-radius: 12px; }
body .tabs > a { font-size: 15px; padding: 10px 12px; color: #79667d; border-radius: 9px; }
body .tabs > a.active { color: #423344; box-shadow: 0 2px 7px #3328350a; }
body .upload-zone { background: #fbf9fb; border-color: #d7c4da; border-radius: 14px; }
body .import-steps > span { font-size: 14px; }
body .import-steps b { width: 33px; height: 33px; }
body .question-picker { background: #fdfcfd; border-radius: 12px; }
body .document-tabs { padding: 5px; background: #f2ecf3; border: 1px solid #ebe1ec; }
body .document-tabs a { font-size: 15px; line-height: 1.7; }
body .document-steps { font-size: 14px; color: #7d6a82; }
body .document-upload { background: #fbf9fb; border-color: #d7c3d9; }
body .document-upload label > span:last-child { color: #7e6b82; font-size: 14px; }
body .document-upload .btn, body .document-help > .btn { font-size: 15px; }
body .document-main > p, body .document-help, body .document-help pre,
body .document-settings label, body .document-status, body .document-review { font-size: 15px; }
body .document-main textarea { font-family: inherit; font-size: 16px; background: #fdfcfd; }
body .document-note p { color: #805948; font-size: 14px; }
body .document-question > summary { background: #f9f6fa; font-size: 16px; }
body .document-question-text { font-size: 17px; }
body .document-choices li, body .document-answer { font-size: 15px; }
body .editor-type-tabs a { font-size: 15px; min-height: 45px; padding: 10px 16px; }
body .editor-type-tabs a.selected { background: #3d2f40; border-color: #3d2f40; }
body .editor-context p, body .question-editor label, body .editor-section-heading p,
body .editor-help ul, body .editor-help .btn, body .editor-import-link { font-size: 15px; }
body .editor-section-heading p, body .editor-context p { color: #7f6c83; }
body .question-editor textarea { font-family: inherit; font-size: 16px; }
body .editor-section-heading h2 { font-size: 22px; }
body .editor-step { width: 36px; height: 36px; font-size: 14px; background: #f5e6df; color: #8b5138; }
body .editor-choice-card { border-color: #e9deeb; border-radius: 14px; }
body .editor-choice-heading h3 { font-size: 16px; }
body .editor-image-field { background: #fbf9fb; border-color: #ddcddf; }
body .editor-image-heading { font-size: 14px; }
body .editor-image-status, body .editor-image-preview span, body .editor-optional { font-size: 12px; color: #7f6b83; }
body .editor-save-bar { border-radius: 14px; box-shadow: var(--shadow); }
body .editor-save-bar p { font-size: 14px; color: #7f6b84; }
body .template-hero h2 { font-size: 29px; color: #443447; }
body .template-format p, body .template-selector p, body .template-section-title p,
body .template-checklist ol, body .template-image-note { font-size: 15px; color: #7d6a81; }
body .template-format .btn, body .template-csv .btn { font-size: 15px; }
body .template-format small, body .template-csv p, body .template-all-types a > small { font-size: 13px; color: #7f6b83; }
body .template-all-types a > b { font-size: 15px; }
body .template-all-types a { border-radius: 13px; }
body .template-guide-grid pre { background: #faf8fb; font-size: 15px; color: #5f5162; }

/* Welcome screens share the actual college identity rather than a mock mark. */
body .auth-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
body .auth-story { background: #332735; padding: 44px 11%; min-width: 0; }
body .auth-story .brand { font-size: 24px; }
body .auth-story .brand-logo { width: 70px; height: 70px; flex-basis: 70px; border-radius: 16px; padding: 5px; }
body .auth-story .brand small { font-size: 10px; }
body .auth-story h1 { font-size: clamp(34px, 3vw, 48px); line-height: 1.6; font-weight: 600; letter-spacing: -.6px; margin: 26px 0; }
body .auth-story h1 span { color: #b45831; }
body .auth-story p { color: #936099; font-size: 16px; line-height: 2; }
body .auth-story .eyebrow { font-size: 11px; color: #b35730; }
body .story-grid { gap: 22px; margin: 34px 0; padding-top: 24px; font-size: 14px; }
body .story-grid b { color: #916099; font-size: 12px; line-height: 1.8; white-space: normal; }
body .auth-story > small { color: #925f9a; font-size: 12px; }
body .auth-panel { background: #fbf8f7; padding: 42px; }
body .auth-card { max-width: 440px; }
body .auth-card h2 { font-size: 30px; margin-bottom: 9px; }
body .auth-card .tabs { margin: 26px 0; }
body .auth-card label { font-size: 15px; }
body .auth-card input { min-height: 49px; }
body .auth-card .btn { min-height: 49px; font-size: 16px; }
body .auth-card .small, body .auth-link { color: #7e6b82; font-size: 14px; }

/* Personnel assessment home, examination and results. */
body .staff-exam { color: var(--ink); background: var(--bg); }
body .staff-top { padding: 20px max(28px, calc((100vw - 1320px) / 2)); gap: 25px; border-bottom-color: #eadfeb; }
body .staff-top .brand { color: #3d2f40; font-size: 21px; }
body .staff-top .brand small { color: #7f6b84; font-size: 9px; }
body .staff-top nav > a { font-size: 15px; padding: 10px 13px; color: #736177; border-radius: 9px; }
body .staff-top nav > a.active { color: #433446; background: #f4eff5; }
body .staff-identity { min-width: 0; max-width: 410px; gap: 12px; padding-left: 22px; }
body .staff-identity > span:last-child { min-width: 0; }
body .staff-identity b { font-size: 18px; line-height: 1.6; color: #453547; font-weight: 700; overflow-wrap: anywhere; }
body .staff-identity small { color: #7f6c84; font-size: 14px; line-height: 1.7; margin-top: 3px; overflow-wrap: anywhere; }
body .staff-main { max-width: 1320px; padding: 35px 28px 28px; }
body .staff-page-heading h1 { font-size: 32px; }
body .staff-page-heading .eyebrow, body .staff-guidance .eyebrow,
body .staff-setup > .eyebrow, body .staff-admin-summary .eyebrow { font-size: 11px; color: #91563d; }
body .staff-hero { background: #3c2e3e; border: 1px solid #4e3c52; border-radius: 18px; padding: 36px 40px; }
body .staff-hero .eyebrow { font-size: 11px; color: #b45730; }
body .staff-hero h2 { font-size: 30px; font-weight: 600; line-height: 1.65; }
body .staff-hero p { color: #916097; font-size: 16px; }
body .staff-hero-date { font-size: 14px; color: #b15832; background: #ffffff09; border-color: #ffffff26; padding: 8px 13px; }
body .staff-hero-symbol { color: #af5a36; }
body .staff-hero-symbol small { font-size: 10px; color: #926098; }
body .staff-facts > div { padding: 22px; }
body .staff-facts > div > span { font-size: 15px; color: #7d6a81; }
body .staff-facts strong { font-size: 34px; color: #433346; }
body .staff-facts strong small { font-size: 14px; color: #7f6c83; }
body .staff-facts p { font-size: 13px; color: #7e6b83; }
body .staff-exam .card { border-color: #eae0ec; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
body .staff-exam .card h2 { font-size: 23px; }
body .staff-guidance li { color: #77657b; font-size: 16px; line-height: 1.9; }
body .staff-guidance > .small, body .staff-start-card > .small { color: #7e6b82; font-size: 14px; }
body .staff-state-pill { padding: 6px 12px; font-size: 14px; color: #864a31; background: #f7e7e0; }
body .staff-state-pill.is-open { color: #2c7153; background: #eaf5ed; }
body .staff-exam dl > div { padding: 13px 0; font-size: 15px; }
body .staff-exam dt { color: #7e6b82; }
body .staff-exam dd { color: #514554; }
body .staff-start-card .btn { min-height: 49px; font-size: 16px; }
body .staff-not-ready p, body .staff-setup p, body .staff-receipt p,
body .staff-admin-summary p { font-size: 15px; color: #7f6b83; }
body .staff-setup-facts > span { padding: 8px 12px; font-size: 14px; }
body .staff-setup .btn, body .staff-footer-actions .btn { font-size: 15px; }
body .staff-receipt-note { font-size: 15px; }
body .staff-result-score > span { color: #92563d; font-size: 15px; }
body .staff-report table { font-size: 14px; }
body .staff-report th { font-size: 13px; }
body .staff-report td > b { font-size: 15px; }
body .staff-report td > small { font-size: 13px; color: #7f6b83; }
body .staff-report .staff-state-pill { font-size: 12px; }
body .staff-report-heading p { font-size: 14px; }
body .staff-report-heading .search { font-size: 16px; max-width: 370px; }
body .staff-exam footer { font-size: 12px; }
body .exam-top { background: #332835; padding: 16px 28px; border-bottom-color: #d59b82; gap: 24px; }
body .exam-top .brand { font-size: 20px; }
body .exam-top .brand-logo { width: 48px; height: 48px; flex-basis: 48px; border-radius: 11px; }
body .exam-top > div > b { font-size: 16px; line-height: 1.7; }
body .exam-top > div > small { color: #916097; font-size: 14px; }
body .timer-box { border: 1px solid #ffffff22; padding: 9px 16px; border-radius: 11px; min-width: 130px; flex-shrink: 0; }
body .timer-box small { color: #935f99; font-size: 12px; }
body .timer-box strong { font-size: 28px; letter-spacing: 1px; }
body .exam-nav h2 { font-size: 20px; }
body .exam-nav p { font-size: 14px; color: #79677d; }
body .number-grid > a { font-size: 14px; padding: 7px 0; border-radius: 8px; }
body .number-grid > a:hover { border-color: #b48672; text-decoration: none; background: #fbf3f0; }
body .number-grid > a.answered { background: #e8f5ee; color: #276d50; border-color: #afd2bf; }
body .exam-nav .btn { font-size: 14px; min-height: 44px; }
body .exam-question { background: #fffffff7; border-radius: 16px; padding: 28px; }
body .question-text { font-size: 19px; line-height: 1.95; color: #433346; }
body .choice { font-size: 17px; line-height: 1.85; padding: 15px; border-radius: 12px; border-color: #e9deeb; gap: 13px; font-weight: 400; }
body .choice:hover { border-color: #d0b9d3; background: #fdfbfd; }
body .choice:has(input:checked) { border-color: #c2866c; background: #fbf3f0; box-shadow: 0 0 0 1px #c2866c33; }
body .choice-letter { min-width: 30px; line-height: 30px; font-size: 14px; border-radius: 8px; background: #f4eff5; color: #716075; }
body .choice:has(input:checked) .choice-letter { background: #eed1c5; color: #733f29; }
body .gate-card { padding: 34px; border-radius: 17px; }
body .gate-card h1 { font-size: 29px; }
body .gate-card p, body .gate-card li { font-size: 16px; color: #79667d; line-height: 1.85; }
body dialog { border-radius: 16px; padding: 30px; box-shadow: 0 20px 80px #33283522; }
body dialog h2 { font-size: 25px; }

/* Warm pastel college identity: peach, blush, lavender and cream. */
body {
  background: radial-gradient(ellipse at 4% 7%, #ffd5bd75 0, transparent 34%),
    radial-gradient(ellipse at 95% 3%, #efd9fa75 0, transparent 32%),
    radial-gradient(ellipse at 65% 90%, #f9d8ed40 0, transparent 35%), #fffaf6;
  background-attachment: fixed;
  color: #302c31;
}
body .brand { color: #58425f; }
body .brand b { color: #ac5b3f; }
body .brand small { color: #7e6c80; }
body .brand-logo { border-color: #efdfdb; box-shadow: 0 2px 8px #ad7a8520; }
body .sidebar {
  background: radial-gradient(ellipse at 0 0, #ffdbc78c, transparent 42%),
    linear-gradient(160deg, #fffdfb 15%, #fdf5f8 58%, #f6effb);
  color: #5c4c63; border-right-color: #ecdfe8;
}
body .sidebar .brand { border-bottom-color: #ebdce5; }
body .sidebar .brand small { color: #7e6b82; }
body .nav-label { color: #846a80; }
body .sidebar nav a { color: #655a6c; }
body .sidebar nav a > span { color: #8b658b; }
body .sidebar nav a:hover { background: #ffffffbd; border-color: #eadbe8; color: #76508f; }
body .sidebar nav a.active {
  color: #754d82; background: linear-gradient(110deg, #fbe2d4, #f3e3f5);
  border-color: #ebd4df; box-shadow: 0 3px 9px #c598ad12;
}
body .sidebar nav a.active > span { color: #a65f45; }
body .sidebar-foot { color: #7b6a81; border-top-color: #e8dce6; }
body .sidebar-foot small { color: #7e6b82; }
body .topbar { background: #ffffffde; border-bottom-color: #ecdfe7; }
body .breadcrumb { color: #7c6c80; }
body .account > span:not(.avatar), body .staff-identity b { color: #49364f; }
body .account small, body .staff-identity small { color: #7e6c81; }
body .avatar, body .staff-avatar { color: #85619b; background: #f4e9f8; border-color: #e8d7ee; }
body .topbar .account .text-button { border-color: #e9dfe9; color: #82638f; background: #fffafd; }
body .topbar .account .text-button:hover { border-color: #dbc5e0; background: #f6edf9; }
body .page-heading h1, body .staff-page-heading h1 { color: #3f3046; }
body .date-chip { color: #9a654e; background: #fff4e9; border-color: #f1dccb; }
body .eyebrow { color: #a1614b; }
body .btn { background: #76508f; border-color: #76508f; color: #fff; box-shadow: 0 3px 8px #76508f12; }
body .btn:hover { background: #65417d; border-color: #65417d; box-shadow: 0 4px 11px #76508f21; }
body .btn.secondary { color: #76508f; border-color: #e6d9eb; background: #fffafd; }
body .btn.secondary:hover { color: #65417d; border-color: #d0b8dd; background: #f7eefb; }
body .btn.gold { color: #804d3d; background: #f3c7af; border-color: #edbba0; }
body .btn.gold:hover { background: #f7d6c1; border-color: #e7aa89; }
body .card, body .course-card, body .stat, body .table-wrap, body .staff-facts > div {
  background: #fffffff0; border-color: #eee3e7; box-shadow: var(--shadow);
}
body .stat strong, body .staff-facts strong { color: #78558e; }
body .stat::before { border-color: #f4d3c370; }
body .stat > span, body .stat small, body .staff-facts > div > span, body .staff-facts p { color: #7c6d80; }
body .hero, body .staff-hero {
  background: linear-gradient(115deg, #ffe5d5 0%, #fae4ef 53%, #efe2fc 100%);
  border-color: #f0d9dd; color: #4c3657; box-shadow: 0 7px 25px #bc91b110;
}
body .hero h2, body .staff-hero h2 { color: #5e3d6c; }
body .hero p, body .staff-hero p { color: #846a85; }
body .hero .eyebrow, body .staff-hero .eyebrow { color: #a5604a; }
body .hero-symbol, body .staff-hero-symbol { color: #a15895; }
body .hero-symbol small, body .staff-hero-symbol small { color: #8b6490; }
body .staff-hero-date { color: #93694f; background: #ffffff80; border-color: #ffffffd6; }
body .notice { background: #f6eefb; border-color: #e9dcf1; border-left-color: #bc99cf; color: #7b5c8e; }
body .notice.success { background: #edf7f2; border-color: #cee5d9; color: #286a51; }
body .notice.error { background: #fff0f2; border-color: #f0d1d9; color: #a34458; }
body th { background: #fcf6fb; color: #84688c; }
body td, body th { border-bottom-color: #f0e8ee; }
body tr:hover td { background: #fefafd; }
body .course-code { background: #fff0e4; color: #a66042; }
body .course-card h2 { color: #634870; }
body .course-card:hover { border-color: #dfbfd7; }
body .exam-spec span { background: #faf3fa; color: #84688f; }
body .tabs, body .document-tabs { background: #f3eaf5; border-color: #eadced; }
body .tabs > a, body .document-tabs a { color: #85678e; }
body .tabs > a.active, body .document-tabs a.selected { color: #76508f; background: #fff; }
body .bars span { background: linear-gradient(#d4a8d9, #f5cbbd); }
body input:not([type="radio"]):not([type="checkbox"]), body select, body textarea {
  color: #56445e; background: #fff; border-color: #e5dbe8;
}
body input[type="file"]::file-selector-button { color: #8a639b; background: #f8effa; border-color: #eadced; }
body input:focus, body select:focus, body textarea:focus { border-color: #bd97ce; outline-color: #d7b7e780; }
body input[type="checkbox"], body input[type="radio"] { accent-color: #9772af; }
body .upload-zone, body .document-upload, body .editor-image-field { background: #fff9f5; border-color: #e8cbbb; }
body .document-question > summary { background: #fcf6fb; }
body .document-main textarea, body .question-editor textarea { background: #fffcfe; }
body .document-review, body .document-answer, body .question-picker { background: #faf5fc; border-color: #e8dced; }
body .editor-type-tabs a { color: #84688a; border-color: #eadfeb; background: #fffafd; }
body .editor-type-tabs a.selected { background: #9974ad; border-color: #9974ad; color: #fff; }
body .editor-step { background: #ffebdf; color: #a16145; }
body .editor-choice-letter { background: #f5eaf8; color: #8a61a1; }
body .template-hero h2, body .template-format h3, body .template-section-title h2,
body .template-guide-grid h3, body .template-csv h3, body .template-all-types h3 { color: #6f4b80; }
body .template-all-types a.active { background: #f8edf9; border-color: #cfb0db; }
body .template-guide-grid pre { background: #fcf7fb; border-color: #eee0ec; color: #836a8a; }
body .template-image-note { background: #fff3e6; border-color: #f4dfc3; color: #926845; }
body .auth-story {
  background: radial-gradient(ellipse at 6% 6%, #ffd5bdcc, transparent 56%),
    radial-gradient(ellipse at 87% 80%, #efd9facc, transparent 60%),
    linear-gradient(145deg, #fff0d7, #fae2ef 65%, #f3e6fb);
  color: #60456a;
}
body .auth-story .brand { color: #704e7f; }
body .auth-story .brand small { color: #88668b; }
body .auth-story h1 { color: #78518c; }
body .auth-story h1 span { color: #a85d3c; }
body .auth-story p { color: #876786; }
body .auth-story .eyebrow { color: #a06248; }
body .auth-story > small { color: #8a658b; }
body .auth-story::after { border-color: #ccadd733; box-shadow: 0 0 0 70px #d2b3dc10, 0 0 0 140px #ddc2e90c; }
body .story-grid { color: #9c6347; border-top-color: #c6a9c62f; }
body .story-grid b { color: #88668a; }
body .auth-panel { background: #fffcf9; }
body .auth-card h2 { color: #6d4a7e; }
body .staff-top { background: #ffffffeb; border-bottom-color: #ecdfe7; }
body .staff-top .brand { color: #78558a; }
body .staff-top .brand small { color: #886690; }
body .staff-top nav > a { color: #86678f; }
body .staff-top nav > a.active { color: #8a609e; background: #f7ebf7; }
body .staff-exam { background: transparent; }
body .staff-exam .card { border-color: #eee3e7; }
body .staff-exam .card h2 { color: #755482; }
body .staff-exam dt, body .staff-exam dd { color: #806a84; }
body .staff-guidance li b { color: #7c598a; }
body .staff-result-score, body .score-circle { background: #fff6f1; border-color: #f0ddd3; }
body .staff-result-score strong, body .score-circle strong { color: #8a61a0; }
body .staff-result-score > span, body .score-circle > span { color: #9b6447; }
body .exam-top { color: #63456f; background: linear-gradient(105deg, #fff0e2, #f8e8f0 55%, #f0e5fb); border-bottom-color: #e9d2e6; }
body .exam-top .brand { color: #866396; }
body .exam-top .brand small, body .exam-top > div > small { color: #8b6495; }
body .exam-top > div > b { color: #7a548a; }
body .timer-box { background: #ffffffa6; border-color: #ffffffd6; color: #8e60a6; }
body .timer-box small { color: #8d6298; }
body .timer-box.urgent, body .timer-box .urgent { color: #aa5d49; }
body .exam-nav { color: #886595; }
body .number-grid > a { color: #886596; border-color: #e5d7ed; background: #fff; }
body .number-grid > a:hover { color: #8e609f; border-color: #d2b4df; background: #faf2fc; }
body .number-grid > a.answered { color: #457c67; background: #eef8f0; border-color: #bcdcc8; }
body .exam-question { background: #fffffff5; border-color: #eee3e7; }
body .question-text { color: #5a4167; }
body .choice { color: #765d80; border-color: #eaddf0; background: #fff; }
body .choice:hover { background: #fdf7ff; border-color: #dbc2e5; }
body .choice:has(input:checked) { background: #faf0fc; border-color: #c1a0d4; box-shadow: 0 0 0 1px #c1a0d433; }
body .choice-letter { background: #f5eaf9; color: #89619f; }
body .choice:has(input:checked) .choice-letter { background: #e8d4f0; color: #8d5fa5; }
body .exam-shield { background: #fff7f4f7; }
body .gate-card { background: #fffdfb; border-top-color: #e8c4bb; }
body .gate-card h1 { color: #876093; }
body footer, body .staff-exam footer { color: #876789; border-top-color: #eadde8; }

@media (max-width: 1320px) {
  body .topbar { padding: 18px 28px; }
  body .breadcrumb { display: none; }
  body .topbar { justify-content: flex-end; }
  body main { padding: 30px 28px; }
  body .staff-top { gap: 18px; }
}
@media (max-width: 1150px) {
  body .document-layout, body .editor-main-layout { grid-template-columns: minmax(0, 1fr); }
  body .document-help, body .editor-help { position: static; }
  body .template-download-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  body .template-format .btn { font-size: 15px; }
  body .staff-top { flex-wrap: wrap; }
  body .staff-top nav { order: 3; width: 100%; margin: 0; padding-top: 13px; border-top: 1px solid #f0e8f1; }
  body .staff-identity { padding-left: 0; border-left: 0; margin-left: auto; }
  body .hero { padding: 30px; }
}
@media (max-width: 950px) {
  body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .staff-home-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body .staff-start-card { order: -1; }
  body .auth-story { padding: 40px 9%; }
  body .auth-panel { padding: 35px; }
}
@media (max-width: 850px) {
  body .sidebar { width: min(286px, 88vw); padding: 25px 14px; }
  body .workspace { margin-left: 0; }
  body .topbar { padding: 17px 22px; justify-content: space-between; gap: 15px; min-height: 90px; }
  body .account { margin-left: auto; }
  body .auth-layout { grid-template-columns: minmax(0, 1fr); }
  body .auth-story { min-height: 270px; padding: 30px 35px; gap: 22px; }
  body .auth-story .brand { margin-bottom: 0; }
  body .auth-story .brand-logo { width: 60px; height: 60px; flex-basis: 60px; }
  body .auth-story h1 { font-size: 32px; line-height: 1.55; margin: 0; }
  body .auth-story .eyebrow { display: block; margin-bottom: 10px; }
  body .auth-panel { padding: 35px 25px 45px; }
  body .document-editor-foot { flex-wrap: wrap; }
  body .document-settings { gap: 14px; }
  body .exam-top { gap: 16px; padding: 14px 20px; }
  body .exam-top .brand { display: none; }
  body .exam-nav { padding: 18px 22px; }
  body .exam-nav .number-grid { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
  body .exam-nav .save-status { font-size: 12px; }
  body .exam-questions { padding: 0 22px 40px; }
  body .exam-question { scroll-margin-top: 125px; }
  body .staff-hero { padding: 29px; gap: 25px; }
  body .staff-hero h2 { font-size: 27px; }
}
@media (max-width: 650px) {
  body h1, body .staff-page-heading h1 { font-size: 28px; }
  body h2 { font-size: 22px; }
  body main, body .staff-main { padding: 26px 20px; }
  body .page-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
  body .page-heading p { font-size: 15px; }
  body .hero { padding: 26px; }
  body .hero h2 { font-size: 26px; }
  body .hero p { font-size: 15px; }
  body .hero-symbol { display: none; }
  body .card, body .staff-exam .card { padding: 23px; border-radius: 14px; }
  body .toolbar { align-items: flex-start; flex-direction: column; }
  body .toolbar .actions { width: 100%; }
  body .toolbar .btn { font-size: 14px; }
  body .form-grid, body .template-guide-grid { grid-template-columns: minmax(0, 1fr); }
  body .editor-type-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .editor-type-tabs a { padding: 10px 9px; font-size: 14px; text-align: center; }
  body .editor-context { flex-wrap: wrap; }
  body .editor-context h2 { font-size: 23px; }
  body .editor-context .btn { font-size: 14px; }
  body .editor-choice-grid { grid-template-columns: minmax(0, 1fr); }
  body .editor-section-heading h2 { font-size: 21px; }
  body .document-tabs { width: 100%; }
  body .document-tabs a { flex: 1; padding: 10px 8px; font-size: 14px; text-align: center; }
  body .document-steps { gap: 11px 16px; }
  body .document-settings { grid-template-columns: minmax(0, 1fr); }
  body .document-upload { grid-template-columns: minmax(0, 1fr); }
  body .document-upload > .btn { grid-column: 1; grid-row: auto; width: 100%; }
  body .document-upload > label { grid-column: 1; }
  body .document-editor-foot .btn { width: 100%; }
  body .document-question > summary { flex-wrap: wrap; }
  body .template-hero h2 { font-size: 27px; }
  body .staff-top { padding: 19px 20px; gap: 16px; }
  body .staff-top .brand { font-size: 20px; }
  body .staff-identity { width: 100%; max-width: none; margin: 0; padding-top: 14px; border-top: 1px solid #f0e8f1; }
  body .staff-identity b { font-size: 18px; }
  body .staff-identity small { font-size: 14px; }
  body .staff-top nav { padding-top: 0; border: 0; flex-wrap: wrap; gap: 5px; }
  body .staff-top nav > a { font-size: 14px; padding: 8px 10px; }
  body .staff-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body .staff-facts > div { padding: 18px; }
  body .staff-facts > div > span { font-size: 14px; }
  body .staff-facts strong { font-size: 31px; }
  body .staff-facts p { font-size: 12px; }
  body .staff-hero { padding: 27px; }
  body .staff-hero h2 { font-size: 26px; }
  body .staff-hero p { font-size: 15px; }
  body .staff-hero-symbol { display: none; }
  body .staff-hero-date { font-size: 13px; }
  body .staff-exam .card h2 { font-size: 22px; }
  body .staff-guidance li { font-size: 15px; }
  body .staff-result-score { padding: 19px; }
  body .staff-result-score strong { font-size: 40px; }
  body .staff-report-facts { grid-template-columns: minmax(0, 1fr); }
  body .staff-report-facts > div { display: flex; align-items: center; justify-content: space-between; }
  body .staff-report-facts strong { margin: 0; }
  body .exam-top > div > b { font-size: 15px; }
  body .exam-top > div > small { font-size: 13px; }
  body .timer-box { min-width: 106px; padding: 8px 10px; }
  body .timer-box strong { font-size: 25px; }
  body .exam-question { padding: 22px; }
  body .question-text { font-size: 18px; }
  body .choice { padding: 13px 11px; font-size: 16px; gap: 10px; }
  body .gate-card { padding: 26px; }
  body .gate-card h1 { font-size: 26px; }
  body .gate-card p, body .gate-card li { font-size: 15px; }
}
@media (max-width: 560px) {
  body .topbar { padding: 16px; gap: 12px; align-items: flex-start; }
  body .menu-toggle { min-width: 42px; min-height: 44px; padding: 3px; margin-top: 1px; }
  body .account { flex: 1 1 0; gap: 10px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; }
  body .account > span:not(.avatar) { display: block; font-size: 18px; line-height: 1.6; padding-top: 1px; }
  body .account small { font-size: 14px; }
  body .account .avatar { display: grid; }
  body .account form { grid-column: 2; margin: 0; }
  body .topbar .account .text-button { font-size: 14px; padding: 6px 11px; min-height: 36px; }
  body .stat { padding: 19px; }
  body .stat strong { font-size: 32px; }
  body .stat > span { font-size: 14px; }
  body .stat small { font-size: 12px; }
  body .stats { gap: 12px; }
  body .course-grid { grid-template-columns: minmax(0, 1fr); }
  body .tabs { flex-wrap: wrap; }
  body .tabs > a { min-width: 100px; font-size: 14px; }
  body .auth-story { min-height: 255px; padding: 27px 25px; }
  body .auth-story .brand { font-size: 22px; }
  body .auth-story h1 { font-size: 30px; }
  body .auth-card h2 { font-size: 28px; }
  body .auth-panel { padding: 32px 24px 40px; }
  body .exam-nav .btn { font-size: 13px; padding: 10px 13px; }
  body .exam-question .toolbar { flex-direction: row; flex-wrap: wrap; }
  body .exam-question .toolbar .badge { font-size: 12px; }
  body .exam-questions { padding: 0 16px 35px; }
  body .exam-top { padding: 13px 16px; gap: 12px; }
  body .staff-top .brand-logo { width: 51px; height: 51px; flex-basis: 51px; }
  body .staff-top .brand small { font-size: 9px; }
  body .staff-page-heading .eyebrow { font-size: 10px; }
  body .staff-page-heading h1 { font-size: 28px; }
  body .staff-exam dl > div { font-size: 14px; gap: 15px; }
  body .staff-exam dt { flex-basis: 35%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body { background: #fff; font-size: 12px; }
  body .workspace { margin-left: 0; }
  body main, body .staff-main { padding: 0; max-width: none; }
  body .card, body .stat, body .table-wrap, body .staff-facts > div { box-shadow: none; }
  body .staff-top { padding: 10px 0; }
  body .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
}

/* Navigation and spacing refinement 20261027 */
body .sidebar {display:flex;flex-direction:column;overflow-y:auto;padding-top:20px}
body .sidebar .brand {padding-bottom:18px;flex-shrink:0}
body .nav-label {margin:18px 12px 10px}
body .sidebar nav {display:flex;flex-direction:column;gap:6px}
body .sidebar nav a {display:flex;align-items:center;min-height:46px;margin:0;padding:10px 12px;gap:12px;white-space:normal;overflow:visible;line-height:1.5}
body .sidebar nav a > span {flex:0 0 22px;text-align:center;line-height:1.3}
body .sidebar-foot {position:static;margin-top:auto;padding:16px 12px 0;flex-shrink:0}
body .topbar {min-height:78px;padding-top:12px;padding-bottom:12px}
body .workspace main {padding-top:24px}
body .page-heading {margin-bottom:20px;gap:16px}
body .page-heading h1 {margin:6px 0}
body .card {padding:24px;margin:18px 0}
body .card > .toolbar {margin:0 0 18px;align-items:center;flex-wrap:wrap}
body .toolbar h2 {margin:0}
body .form-grid {gap:16px 20px}
body .form-grid > label {margin:0;min-width:0}
body .form-grid + .actions {margin-top:18px}
body .actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body .course-grid {gap:18px}
body article.course-card {display:flex;flex-direction:column;padding:22px;min-width:0}
body article.course-card > a {flex:1;min-width:0}
body .course-card h2 {margin:12px 0 8px;line-height:1.55;overflow-wrap:anywhere}
body .course-card p {margin:8px 0}
body .course-card > a > div {display:flex;flex-wrap:wrap;gap:8px 12px;font-size:14px}
body .course-card > form {margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line)}
body .course-card > form .btn {margin-top:0!important}
@media(max-width:850px){body .sidebar {height:100dvh}body .topbar {min-height:76px}body .workspace main {padding:20px}body .page-heading {flex-wrap:wrap}}
@media(max-width:650px){body .card {padding:18px;margin:16px 0}body .workspace main {padding:18px 14px}body .card > .toolbar {align-items:stretch;gap:12px}body .form-grid {gap:14px}body .actions > .btn {flex:1 1 auto;text-align:center}body .page-heading h1 {font-size:26px}body article.course-card {padding:18px}}

/* Shared page controls and exam table spacing 20261027 */
body main > .toolbar {align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}
body main form.toolbar {justify-content:flex-start}
body main form.toolbar > .search {flex:0 1 520px;min-width:0;width:100%}
body main form.toolbar > a.btn {margin-left:auto}
body .toolbar > .actions {margin-top:0}
body .table-wrap {max-width:100%;overflow-x:auto}
body .table-wrap th,body .table-wrap td {padding:14px 18px;line-height:1.65}
body table:has(a[href*="page=exam_edit"]) {table-layout:fixed;min-width:800px}
body table:has(a[href*="page=exam_edit"]) th:nth-child(1) {width:38%}
body table:has(a[href*="page=exam_edit"]) th:nth-child(2) {width:22%}
body table:has(a[href*="page=exam_edit"]) th:nth-child(3) {width:22%}
body table:has(a[href*="page=exam_edit"]) th:nth-child(4),body table:has(a[href*="page=exam_edit"]) th:nth-child(5) {width:9%}
body table:has(a[href*="page=exam_edit"]) td {overflow-wrap:anywhere}
body table:has(a[href*="page=exam_edit"]) td:nth-child(3) {white-space:nowrap;overflow-wrap:normal}
body .card > h2:first-child {margin:0 0 20px}
body .tabs {gap:6px;margin:20px 0}
@media(max-width:650px){body main > .toolbar {align-items:stretch;gap:12px}body main form.toolbar > .search {flex:0 1 auto;max-width:none}body main form.toolbar > a.btn {margin-left:0;text-align:center}body .toolbar > .search {width:100%;max-width:none}body .table-wrap th,body .table-wrap td {padding:12px 14px}body .page-heading > div {min-width:0}body .page-heading h1 {overflow-wrap:anywhere}}
@media print {body .sidebar,body .topbar {display:none!important}body .workspace main {padding:0}body .table-wrap {overflow:visible}body table:has(a[href*="page=exam_edit"]) {min-width:0;table-layout:auto}body table:has(a[href*="page=exam_edit"]) td:nth-child(3) {white-space:normal}}
