/* Candidate interior pages follow the selected October 2026 portal mock.
   Screen-only scope deliberately leaves the existing A4 ticket print rules intact. */
@media screen {
  .candidate-inner {
    --c-primary: #a61d24;
    --c-primary-dark: #86171d;
    --c-primary-light: #faf1f2;
    color: #282d35;
  }

  .candidate-inner .c-container { max-width: 1220px; }
  .candidate-inner :is(.c-heading, .cf-intro, .cp-heading) { margin-bottom: 24px; }
  .candidate-inner :is(.c-heading h1, .cf-intro h1, .cp-heading h1) {
    font-family: var(--portal-sans);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.5;
    color: #202733;
    letter-spacing: 0;
  }
  .candidate-inner :is(.c-heading p, .cf-intro p, .cp-heading p) {
    font-size: 14px;
    line-height: 1.85;
    color: #62666d;
  }
  .candidate-inner .c-eyebrow { font-size: 13px; color: #70747a; letter-spacing: 0; }
  .candidate-inner .c-program-breadcrumb {
    font-size: 13px;
    color: #70747a;
    border-bottom: 1px solid #e5e6e8;
    padding-bottom: 15px;
    margin-bottom: 24px;
  }
  .candidate-inner :is(.cf-back, .cp-back) { color: #686c72; font-size: 13px; }
  .candidate-inner :is(.c-card, .cf-card, .cp-card) {
    background: #fff;
    border-color: #dedfe2;
    border-radius: 2px;
    box-shadow: none;
  }
  .candidate-inner :is(.c-muted, .c-note, .helptext, .cf-help, .cf-label-hint, .cp-card-subtitle) {
    color: #676b72;
    line-height: 1.8;
  }
  .candidate-inner :is(.c-btn, .cf-button, .cp-button) {
    min-height: 42px;
    border-radius: 2px;
    border: 1px solid #c8cbd0;
    background: #fff;
    color: #41464e;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    transform: none;
  }
  .candidate-inner :is(.c-btn, .cf-button, .cp-button):not(:disabled):hover {
    color: #a61d24;
    border-color: #a61d24;
    background: #fcf7f7;
    box-shadow: none;
    transform: none;
  }
  .candidate-inner :is(.c-btn-primary, .cf-button-primary, .cp-button-primary) {
    color: #fff;
    background: #a61d24;
    border-color: #a61d24;
  }
  .candidate-inner :is(.c-btn-primary, .cf-button-primary, .cp-button-primary):not(:disabled):hover {
    color: #fff;
    background: #86171d;
    border-color: #86171d;
  }
  .candidate-inner :is(.c-btn, .cf-button, .cp-button):disabled {
    background: #ececee;
    color: #7c8087;
    border-color: #d7d9dc;
    opacity: 1;
    cursor: not-allowed;
  }
  .candidate-inner :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid #a61d24;
    outline-offset: 3px;
  }
  .candidate-inner :is(.c-field, .c-selection-field, .cf-field, .cp-field) label {
    color: #333842;
    font-size: 14px;
    font-weight: 500;
  }
  .candidate-inner :is(.c-field, .c-selection-field, .cf-field, .cp-field) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    color: #303640;
    border: 1px solid #c8cbd0;
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
  }
  .candidate-inner :is(.c-field, .c-selection-field, .cf-field, .cp-field) :is(input, select, textarea):focus {
    border-color: #a61d24;
    box-shadow: none;
  }
  .candidate-inner :is(.c-field, .cf-field) input::placeholder { color: #888d95; }
  .candidate-inner :is(.c-required, .cf-required) { color: #a61d24; }
  .candidate-inner :is(.c-alert, .cf-note, .cp-notice, .cp-missing, .cp-reason, .cf-error-summary) {
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.85;
  }
  .candidate-inner .c-alert.info {
    color: #555d68;
    background: #f5f6f7;
    border-color: #dcdfe3;
  }
  .candidate-inner :is(.c-alert.danger, .c-errors, .cf-error-summary, .errorlist, .cf-upload-error) {
    color: #a61d24;
  }
  .candidate-inner :is(.c-alert.danger, .cf-error-summary) {
    background: #fff6f6;
    border-color: #e4b7bb;
  }
  .candidate-inner :is(.c-empty, .cp-empty) {
    background: #fafafa;
    color: #62666d;
    border-radius: 2px;
  }
  .candidate-inner .c-empty h2 { color: #333842; font-size: 20px; }
  .candidate-inner .c-empty-icon { color: #a61d24; background: transparent; }

  /* Directory: restrained rows and one clear action per project. */
  .candidate-inner .c-catalog-filter {
    border: 1px solid #dedfe2;
    border-radius: 2px;
    padding: 21px 22px;
    margin-bottom: 25px;
    background: #f6f6f7;
  }
  .candidate-inner :is(.c-catalog-filter, .c-filter) label { font-size: 13px; color: #4b5059; }
  .candidate-inner :is(.c-catalog-filter, .c-filter) :is(input, select) {
    min-height: 42px;
    border: 1px solid #c8cbd0;
    border-radius: 2px;
    padding: 9px 11px;
    font-size: 14px;
    color: #333842;
    background: #fff;
  }
  .candidate-inner .c-catalog-panel { padding: 0; border: 0; }
  .candidate-inner .c-catalog-panel > .c-catalog-result {
    padding: 0 0 17px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dedfe2;
    color: #71757d;
    font-size: 13px;
  }
  .candidate-inner .c-catalog-result h2 {
    position: relative;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
    color: #202733;
  }
  .candidate-inner .c-catalog-result h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 64px;
    height: 3px;
    background: #a61d24;
  }
  .candidate-inner .c-catalog-table-head {
    background: #f0f0f1;
    color: #444a54;
    border: 1px solid #dedfe2;
    font-size: 14px;
    font-weight: 500;
    min-height: 45px;
  }
  .candidate-inner .c-catalog-row {
    border: 1px solid #e2e3e6;
    border-top: 0;
    min-height: 95px;
    padding-top: 16px;
    padding-bottom: 16px;
    background: #fff;
  }
  .candidate-inner .c-catalog-row + .c-catalog-row { border-top: 0; }
  .candidate-inner .c-catalog-row:hover { background: #fdfbfb; }
  .candidate-inner .c-catalog-name h3 { font-size: 16px; font-weight: 500; color: #2d333c; }
  .candidate-inner .c-catalog-meta { font-size: 12px; color: #747981; }
  .candidate-inner .c-catalog-cell { font-size: 14px; color: #4b515b; }
  .candidate-inner .c-catalog-status strong { color: #445c4c; font-size: 13px; }
  .candidate-inner .c-catalog-status small { color: #737880; font-size: 12px; }
  .candidate-inner .c-catalog-row .c-btn {
    min-height: 34px;
    padding: 6px 10px;
    background: #fff;
    border-color: #b95156;
    color: #a61d24;
    font-size: 13px;
  }
  .candidate-inner .c-catalog-row .c-btn:hover { background: #a61d24; color: #fff; }
  .candidate-inner .c-help-strip { background: #f4f4f5; border: 0; border-radius: 2px; }
  .candidate-inner .c-help-strip strong { color: #333842; font-size: 16px; }
  .candidate-inner .c-help-strip p { color: #686d75; font-size: 13px; }

  /* Project reading and batch selection use the same column hierarchy. */
  .candidate-inner .c-program-header {
    border: 0;
    border-bottom: 1px solid #dedfe2;
    padding: 0 0 25px;
    margin-bottom: 29px;
  }
  .candidate-inner .c-program-header .c-category { padding: 0; color: #737880; background: none; }
  .candidate-inner .c-program-header > p { font-size: 14px; color: #616670; line-height: 1.9; }
  .candidate-inner .c-program-summary { border-top: 1px solid #ebebed; }
  .candidate-inner .c-program-summary dt { color: #777c83; font-size: 13px; }
  .candidate-inner .c-program-summary dd { color: #373d46; font-size: 14px; }
  .candidate-inner .c-program-section { border: 0; padding: 0 0 24px; }
  .candidate-inner :is(.c-program-section > h2, .c-guide-section > h2, .cf-section > h2, .cp-card-title) {
    position: relative;
    padding: 0 0 14px;
    margin: 0 0 20px;
    border-bottom: 1px solid #e1e2e5;
    color: #242c38;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
  }
  .candidate-inner :is(.c-program-section > h2, .c-guide-section > h2, .cf-section > h2, .cp-card-title)::before { display: none; }
  .candidate-inner :is(.c-program-section > h2, .c-guide-section > h2, .cf-section > h2, .cp-card-title)::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 56px;
    height: 3px;
    background: #a61d24;
  }
  .candidate-inner .c-program-section :is(p, li) { font-size: 14px; color: #555c66; line-height: 1.9; }
  .candidate-inner .c-program-section > div { font-size: 14px; color: #555c66; }
  .candidate-inner .c-program-materials { gap: 12px; }
  .candidate-inner .c-program-materials > div {
    background: #f6f6f7;
    border: 0;
    border-radius: 2px;
    padding: 17px;
  }
  .candidate-inner .c-program-materials h3 { color: #353c46; font-size: 15px; }
  .candidate-inner .c-program-materials p { color: #747981; font-size: 13px; }
  .candidate-inner .c-program-steps strong { color: #333842; font-size: 15px; }
  .candidate-inner .c-program-selection {
    background: #fff;
    border: 1px solid #d9dce0;
    border-top: 3px solid #a61d24;
    padding: 24px;
    border-radius: 2px;
    box-shadow: none;
  }
  .candidate-inner .c-program-selection h2 { font-size: 21px; font-weight: 600; color: #a61d24; }
  .candidate-inner .c-program-selection > p { font-size: 14px; line-height: 1.85; }
  .candidate-inner .c-selection-summary {
    padding: 13px;
    background: #f5f5f6;
    border-color: #e3e4e6;
    border-radius: 2px;
    color: #636a74;
    font-size: 13px;
    line-height: 1.8;
  }
  .candidate-inner .c-program-selection :is(.c-note, a) { font-size: 13px; }

  /* Account and personal services. */
  .candidate-inner .c-auth-layout {
    max-width: 920px;
    margin: 28px auto 42px;
    border: 1px solid #d9dce0;
    border-top: 3px solid #a61d24;
    border-radius: 2px;
    box-shadow: none;
  }
  .candidate-inner .c-auth-intro { padding: 38px 34px; background: #f7f7f8; border-right-color: #e0e2e5; }
  .candidate-inner .c-auth-intro h1 { font-size: 27px; font-weight: 600; color: #a61d24; }
  .candidate-inner .c-auth-intro :is(p, li) { color: #606773; font-size: 14px; line-height: 1.95; }
  .candidate-inner .c-auth-intro > a { font-size: 14px; }
  .candidate-inner .c-auth-card { padding: 34px; }
  .candidate-inner .c-auth-card :is(h1, h2) { font-size: 25px; font-weight: 600; color: #272f3a; }
  .candidate-inner .c-auth-card .c-note { font-size: 13px; }
  .candidate-inner :is(.c-auth-foot, .c-login-help) { font-size: 13px; color: #69707a; }
  .candidate-inner .c-account-tabs {
    border: 0;
    border-bottom: 1px solid #d7dade;
    border-radius: 0;
    background: #f5f5f6;
    margin-bottom: 24px;
  }
  .candidate-inner .c-account-tabs a { padding: 14px 27px; border-right: 1px solid #e2e4e7; font-size: 14px; color: #4d5560; }
  .candidate-inner .c-account-tabs a[aria-current] { color: #fff; background: #a61d24; }
  .candidate-inner .c-filter { background: #f7f7f8; border: 1px solid #e0e2e5; border-radius: 2px; }
  .candidate-inner :is(.c-application, .c-ticket-card, .c-result-card) { border: 1px solid #dfe1e5; padding: 25px; }
  .candidate-inner :is(.c-app-top h2, .c-ticket-lead h2, .c-result-copy h2) { color: #29313c; font-size: 20px; font-weight: 600; }
  .candidate-inner :is(.c-app-top p, .c-ticket-lead p, .c-result-copy > p) { font-size: 14px; color: #747981; }
  .candidate-inner .c-app-next { border: 0; background: #f6f6f7; border-radius: 2px; padding: 17px 19px; }
  .candidate-inner .c-app-next p { font-size: 14px; color: #49515d; }
  .candidate-inner .c-app-meta { color: #737981; font-size: 13px; }
  .candidate-inner .c-status { border-radius: 2px; font-size: 12px; }
  .candidate-inner .c-service-data dt { font-size: 13px; color: #737981; }
  .candidate-inner .c-service-data dd { font-size: 14px; color: #353d48; }
  .candidate-inner .c-ticket-card .c-service-icon { color: #a61d24; background: #faf2f2; border-radius: 2px; }
  .candidate-inner .c-mini-label { font-size: 12px; color: #777c84; }
  .candidate-inner .c-score-panel { border-radius: 2px; box-shadow: none; }
  .candidate-inner .c-ticket-toolbar { margin-bottom: 24px; font-size: 14px; }

  /* Multi-step form: preserve the existing step and validation behavior. */
  .candidate-inner :is(.cf-wrap, .cp-wrap) { max-width: 1030px; }
  .candidate-inner .cf-selected-project {
    background: #f5f5f6;
    color: #48505c;
    border: 1px solid #dedfe3;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.8;
  }
  .candidate-inner .cf-selected-project strong { color: #353c47; }
  .candidate-inner .cf-note { background: #faf7f2; color: #70624c; border-color: #e7ded0; }
  .candidate-inner .cf-steps { gap: 12px; }
  .candidate-inner .cf-steps button {
    border: 1px solid #dce0e4;
    background: #f8f8f9;
    border-radius: 2px;
    color: #6c737d;
    font-size: 14px;
    font-weight: 500;
  }
  .candidate-inner .cf-steps span { background: #e9ebee; color: #656d78; border-radius: 50%; }
  .candidate-inner .cf-steps .is-active { color: #a61d24; background: #fdf6f6; border-color: #b7474d; }
  .candidate-inner .cf-steps .is-active span { background: #a61d24; color: #fff; }
  .candidate-inner .cf-steps .is-complete span { background: #f2e1e3; color: #a61d24; }
  .candidate-inner :is(.cf-card, .cp-card) { padding: 29px; }
  .candidate-inner .cf-section-intro { color: #686f79; font-size: 14px; margin-bottom: 24px; }
  .candidate-inner .cf-help { color: #737981; font-size: 12px; }
  .candidate-inner .cf-upload { padding: 21px; background: #fafafa; border: 1px solid #dfe2e6; border-radius: 2px; }
  .candidate-inner .cf-upload-icon { color: #a61d24; background: #f6eaeb; border-radius: 2px; }
  .candidate-inner .cf-upload-status { color: #6e7680; font-size: 13px; }
  .candidate-inner .cf-field input[type="file"] { font-size: 13px; }
  .candidate-inner .cf-field input[type="file"]::file-selector-button { border-radius: 2px; background: #f0f1f3; color: #46505d; }
  .candidate-inner .cf-existing { border-radius: 2px; background: #f2f5f3; color: #506456; font-size: 13px; }
  .candidate-inner .cf-actions { border-color: #e2e4e7; }
  .candidate-inner :is(.cf-actions-note, .cf-footer-note, .cf-save-state) { font-size: 13px; color: #747b84; }

  /* Registration details keep semantic state colors and readable review data. */
  .candidate-inner .cp-status h2 { color: #29323d; font-size: 23px; font-weight: 600; }
  .candidate-inner .cp-status p { font-size: 14px; color: #68717b; line-height: 1.9; }
  .candidate-inner .cp-project-strip { background: #f5f5f6; border-color: #e1e3e6; border-radius: 2px; }
  .candidate-inner .cp-project-name { color: #343d49; }
  .candidate-inner .cp-project-meta { font-size: 13px; color: #727a84; }
  .candidate-inner .cp-progress li { font-size: 13px; color: #747b84; }
  .candidate-inner .cp-progress .cp-current { color: #a61d24; }
  .candidate-inner .cp-progress .cp-current span { color: #fff; border-color: #a61d24; background: #a61d24; box-shadow: none; }
  .candidate-inner .cp-progress .cp-done { color: #79494d; }
  .candidate-inner .cp-progress .cp-done span { color: #a61d24; border-color: #e4c2c5; background: #f8e9ea; }
  .candidate-inner .cp-card-subtitle { font-size: 14px; }
  .candidate-inner .cp-material { border-radius: 2px; border-color: #e0e3e6; }
  .candidate-inner .cp-material strong { color: #333c48; font-size: 14px; }
  .candidate-inner .cp-material p { font-size: 12px; color: #777e87; }
  .candidate-inner .cp-material a { font-size: 13px; }
  .candidate-inner .cp-file-icon { color: #6b737e; background: #f1f2f4; border-radius: 2px; }
  .candidate-inner .cp-data dt { font-size: 13px; color: #707983; }
  .candidate-inner .cp-data dd { font-size: 14px; color: #333c48; }
  .candidate-inner .cp-summary h2 { font-size: 20px; color: #29323d; }
  .candidate-inner .cp-summary small { color: #77808a; font-size: 13px; }
  .candidate-inner .cp-notice { background: #f7f7f8; border-color: #e1e3e6; color: #5c6570; }
  .candidate-inner .cp-check { font-size: 14px; color: #414b57; }
  .candidate-inner :is(.cp-submit-note, .cp-detail-foot, .cp-history time) { font-size: 13px; color: #747d86; }

  /* Guide pages: document-style columns, small accents, no extra decoration. */
  .candidate-inner .c-guide-sidebar {
    border: 1px solid #dce0e4;
    border-top: 3px solid #a61d24;
    border-radius: 2px;
    background: #fff;
  }
  .candidate-inner .c-guide-sidebar strong { color: #333d49; font-size: 15px; }
  .candidate-inner .c-guide-sidebar a { color: #5b6571; font-size: 14px; }
  .candidate-inner .c-guide-sidebar a:hover { color: #a61d24; background: #fbf5f5; }
  .candidate-inner .c-guide-section { padding: 26px; }
  .candidate-inner .c-section-kicker { font-size: 12px; color: #7a8088; letter-spacing: 0; }
  .candidate-inner .c-guide-section > p { font-size: 14px; color: #5f6873; line-height: 1.95; }
  .candidate-inner .c-eligibility-grid > div { padding: 18px; background: #f6f6f7; border-color: #e5e6e9; border-radius: 2px; }
  .candidate-inner .c-eligibility-grid h3 { color: #a61d24; font-size: 16px; }
  .candidate-inner .c-eligibility-grid li { font-size: 13px; line-height: 1.95; color: #666e78; }
  .candidate-inner .c-guide-list li { font-size: 14px; color: #39434f; }
  .candidate-inner .c-guide-list p { color: #6a737e; font-size: 14px; line-height: 1.95; }
  .candidate-inner .c-material-guide > div { border-radius: 2px; background: #f6f6f7; border-color: #e3e5e8; }
  .candidate-inner .c-material-guide h3 { color: #3c4652; font-size: 15px; }
  .candidate-inner .c-material-guide p { color: #737c85; font-size: 13px; }
  .candidate-inner .c-faq details { border-color: #e1e4e8; border-radius: 2px; background: #fff; }
  .candidate-inner .c-faq summary { color: #3e4956; font-size: 14px; }
  .candidate-inner .c-faq p { color: #66717c; font-size: 14px; line-height: 1.9; }
}

@media screen and (max-width: 1000px) {
  .candidate-inner .c-catalog-table-head,
  .candidate-inner .c-catalog-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(85px, .9fr) minmax(100px, 1fr) minmax(112px, 1fr) 84px;
    gap: 11px;
  }
  .candidate-inner .c-catalog-cell { font-size: 13px; }
  .candidate-inner .c-program-selection { padding: 21px; }
  .candidate-inner .c-auth-intro,
  .candidate-inner .c-auth-card { padding: 28px; }
}

@media screen and (max-width: 760px) {
  .candidate-inner :is(.c-heading, .cf-intro, .cp-heading) { margin-bottom: 18px; }
  .candidate-inner :is(.c-heading h1, .cf-intro h1, .cp-heading h1) { font-size: 23px; }
  .candidate-inner :is(.c-heading p, .cf-intro p, .cp-heading p) { font-size: 13px; line-height: 1.85; }
  .candidate-inner .c-heading > .c-btn { min-height: 40px; font-size: 13px; }
  .candidate-inner .c-program-breadcrumb { font-size: 12px; margin-bottom: 18px; padding-bottom: 12px; }
  .candidate-inner :is(.c-btn, .cf-button, .cp-button) { min-height: 44px; font-size: 14px; }
  .candidate-inner :is(.c-alert, .cf-note, .cp-notice, .cp-missing, .cp-reason, .cf-error-summary) { font-size: 13px; }
  .candidate-inner .c-catalog-filter { padding: 16px; gap: 13px 11px; margin-bottom: 23px; }
  .candidate-inner :is(.c-catalog-filter, .c-filter) :is(input, select) { font-size: 14px; min-height: 44px; }
  .candidate-inner .c-catalog-panel > .c-catalog-result { padding-bottom: 13px; margin-bottom: 0; font-size: 12px; align-items: center; }
  .candidate-inner .c-catalog-result h2 { font-size: 20px; }
  .candidate-inner .c-catalog-result h2::after { bottom: -14px; }
  .candidate-inner .c-catalog-result h2 .c-note { margin-left: 6px; font-size: 11px; }
  .candidate-inner .c-catalog-result > span { max-width: 100px; line-height: 1.8; }
  .candidate-inner .c-catalog-table-head { display: none; }
  .candidate-inner .c-catalog-row {
    grid-template-columns: 1fr;
    gap: 11px;
    border-left: 0;
    border-right: 0;
    padding: 20px 0;
  }
  .candidate-inner .c-catalog-name h3 { font-size: 16px; }
  .candidate-inner .c-catalog-cell { font-size: 14px; }
  .candidate-inner .c-catalog-cell[data-label]::before { font-size: 13px; flex-basis: 68px; color: #767e87; }
  .candidate-inner .c-catalog-status { flex-wrap: wrap; gap: 5px 12px; }
  .candidate-inner .c-catalog-status small { margin-top: 0; font-size: 12px; }
  .candidate-inner .c-catalog-row .c-btn { min-height: 42px; font-size: 14px; }
  .candidate-inner .c-help-strip { padding: 18px 16px; }
  .candidate-inner .c-help-strip strong { font-size: 15px; }
  .candidate-inner .c-help-strip p { font-size: 13px; }
  .candidate-inner .c-program-header { padding-bottom: 20px; margin-bottom: 23px; }
  .candidate-inner .c-program-header h1 { font-size: 23px; }
  .candidate-inner .c-program-summary dt,
  .candidate-inner .c-program-summary dd { font-size: 13px; line-height: 1.8; }
  .candidate-inner .c-program-section { padding-bottom: 18px; }
  .candidate-inner :is(.c-program-section > h2, .c-guide-section > h2, .cf-section > h2, .cp-card-title) {
    padding-bottom: 12px;
    margin-bottom: 18px;
    font-size: 19px;
  }
  .candidate-inner .c-program-materials > div { padding: 16px; }
  .candidate-inner .c-program-selection { padding: 20px 18px; }
  .candidate-inner .c-program-selection h2 { font-size: 20px; }
  .candidate-inner .c-auth-layout { margin: 6px auto 24px; }
  .candidate-inner .c-auth-intro { padding: 22px 20px; }
  .candidate-inner .c-auth-intro h1 { font-size: 23px; }
  .candidate-inner .c-auth-intro p { font-size: 13px; }
  .candidate-inner .c-auth-intro > a { font-size: 13px; }
  .candidate-inner .c-auth-card { padding: 25px 20px; }
  .candidate-inner .c-auth-card :is(h1, h2) { font-size: 23px; }
  .candidate-inner .c-account-tabs { margin-bottom: 20px; }
  .candidate-inner .c-account-tabs a { padding: 12px 6px; font-size: 13px; gap: 6px; }
  .candidate-inner :is(.c-application, .c-ticket-card, .c-result-card) { padding: 20px 17px; }
  .candidate-inner :is(.c-app-top h2, .c-ticket-lead h2, .c-result-copy h2) { font-size: 18px; line-height: 1.6; }
  .candidate-inner .c-app-next { padding: 15px; }
  .candidate-inner .c-app-meta { font-size: 12px; }
  .candidate-inner .c-service-data dt,
  .candidate-inner .c-service-data dd { font-size: 13px; }
  .candidate-inner .c-ticket-toolbar { font-size: 13px; gap: 14px; }
  .candidate-inner .cf-selected-project { font-size: 13px; margin-bottom: 12px; }
  .candidate-inner .cf-note { margin-bottom: 15px; padding: 10px 12px; }
  .candidate-inner .cf-steps { gap: 6px; }
  .candidate-inner .cf-steps button { min-height: 46px; padding: 8px 3px; font-size: 12px; gap: 5px; }
  .candidate-inner .cf-steps span { width: 22px; height: 22px; flex-basis: 22px; font-size: 12px; }
  .candidate-inner :is(.cf-card, .cp-card) { padding: 21px 17px; }
  .candidate-inner .cf-section-intro { font-size: 13px; margin-bottom: 18px; }
  .candidate-inner .cf-upload { padding: 17px 14px; }
  .candidate-inner :is(.cf-actions-note, .cf-footer-note, .cf-save-state) { font-size: 12px; }
  .candidate-inner .cp-status h2 { font-size: 20px; }
  .candidate-inner .cp-status p { font-size: 13px; }
  .candidate-inner .cp-progress li { font-size: 11px; }
  .candidate-inner .cp-card-subtitle { font-size: 13px; }
  .candidate-inner .cp-summary h2 { font-size: 18px; }
  .candidate-inner .cp-summary small { font-size: 12px; }
  .candidate-inner .c-guide-section { padding: 21px 17px; }
  .candidate-inner .c-guide-sidebar a { font-size: 13px; }
  .candidate-inner .c-eligibility-grid > div { padding: 16px; }
  .candidate-inner .c-material-guide h3 { font-size: 14px; }
  .candidate-inner .c-material-guide p { font-size: 12px; }
}

@media screen and (max-width: 380px) {
  .candidate-inner .c-account-tabs a { font-size: 12px; gap: 4px; }
  .candidate-inner .c-account-tabs .c-icon { width: 16px; height: 16px; }
  .candidate-inner .cf-steps button { font-size: 11px; }
  .candidate-inner .cf-steps span { width: 20px; height: 20px; flex-basis: 20px; }
}

/* Functional additions reuse the existing candidate portal style. */
@media screen {
  .candidate-inner .cf-existing strong { display: block; overflow-wrap: anywhere; }
  .candidate-inner .cf-existing p { margin: 8px 0 0; }
  .candidate-inner .cf-saved-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 12px 0; }
  .candidate-inner .cf-saved-preview img { display: block; width: auto; max-width: 100%; height: 136px; object-fit: contain; background: #fff; border: 1px solid #e2e4e7; }
  .candidate-inner .cf-clear-file { margin-top: 8px; font-size: 13px; min-height: 40px; }
  .candidate-inner .cp-material-preview { flex: 0 0 64px; display: block; }
  .candidate-inner .cp-material-preview img { display: block; width: 64px; height: 76px; object-fit: contain; background: #fff; border: 1px solid #e2e4e7; }
  .candidate-inner .cp-material-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
  .candidate-inner .cp-material-links a { padding: 6px 0; }
  .candidate-inner .cp-missing-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .candidate-inner .cp-missing-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; background: #faf8f5; border: 1px solid #eaded1; color: #7a4429; }
  .candidate-inner .cp-missing-links span { flex-shrink: 0; font-size: 13px; }
}
@media screen and (max-width: 600px) {
  .candidate-inner .cp-missing-links { grid-template-columns: 1fr; }
}

/* The existing portal palette is retained; these rules improve task controls. */
@media screen {
  .candidate-inner .cf-correction-note p { margin: 6px 0; }
  .candidate-inner .cf-correction-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .candidate-inner .cf-correction-links a { padding: 10px 2px; min-height: 44px; color: #8b4b13; text-decoration: underline; }
  .candidate-inner .cf-correction-tag { font-size: 13px; color: #8b4b13; background: #fff4df; padding: 6px 9px; margin: 0 0 10px; border-left: 3px solid #bc7d31; }
  .candidate-inner .cf-needs-correction { border-left: 3px solid #bd803b; padding-left: 12px; }
  .candidate-inner .cf-target-highlight { outline: 2px solid #bd803b; outline-offset: 5px; scroll-margin: 22px 0 150px; }
  .candidate-inner .cf-field-error { color: #a61d24; font-size: 13px; margin: 6px 0 0; }
  .candidate-inner .cf-error-summary a { display: block; padding: 10px 0; text-decoration: underline; }
  .candidate-inner .cf-material-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .candidate-inner .cf-material-heading h2 { flex: 1; }
  .candidate-inner #cf-material-count { color: #486551; font-size: 13px; flex-shrink: 0; }
  .candidate-inner .cf-upload-top { justify-content: space-between; gap: 10px; margin-bottom: 7px; }
  .candidate-inner .cf-upload-top label { margin: 0; }
  .candidate-inner .cf-upload-badge { font-size: 12px; color: #725b3f; background: #f6f0e7; padding: 3px 7px; white-space: nowrap; }
  .candidate-inner .cf-upload-badge.is-saved { background: #edf5ee; color: #3f6948; }
  .candidate-inner .cf-upload .cf-help { margin: 0 0 12px; line-height: 1.7; }
  .candidate-inner .cf-upload .cf-existing { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 0 12px; }
  .candidate-inner .cf-upload .cf-saved-preview { flex: 0 0 66px; margin: 0; }
  .candidate-inner .cf-upload .cf-saved-preview img { width: 66px; height: 78px; object-fit: contain; }
  .candidate-inner .cf-saved-copy { min-width: 0; flex: 1; }
  .candidate-inner .cf-saved-copy strong { font-size: 13px; line-height: 1.5; }
  .candidate-inner .cf-saved-copy > span { display: block; font-size: 12px; color: #3f6948; margin-top: 3px; }
  .candidate-inner .cf-saved-copy a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; text-decoration: underline; }
  .candidate-inner .cf-upload-enhanced-only, .candidate-inner .cf-file-picker > span { display: none; }
  .candidate-inner .cf-enhanced .cf-upload-enhanced-only { display: inline; }
  .candidate-inner .cf-enhanced .cf-file-picker { position: relative; border: 1px solid #bbc0c8; background: #fff; height: 44px; display: grid; place-items: center; color: #a61d24; overflow: hidden; }
  .candidate-inner .cf-enhanced .cf-file-picker > span { display: inline; font-size: 14px; }
  .candidate-inner .cf-enhanced .cf-file-picker input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
  .candidate-inner .cf-enhanced .cf-file-picker:focus-within { outline: 2px solid #a61d24; outline-offset: 3px; }
  .candidate-inner .cf-enhanced .cf-file-picker:has(input:disabled) { opacity: .55; }
  .candidate-inner .cf-upload-progress { width: 100%; height: 8px; accent-color: #a61d24; margin: 4px 0 12px; }
  .candidate-inner .cf-upload-status { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 13px; min-height: 0; }
  .candidate-inner .cf-upload-preview { margin: 12px 0; max-height: 110px; width: 100%; object-fit: contain; }
  .candidate-inner .cf-upload-recovery { display: flex; flex-wrap: wrap; gap: 8px; }
  .candidate-inner .cf-upload-recovery .cf-button { min-height: 44px; margin-top: 10px; }
  .candidate-inner .has-upload-error { border-color: #b34b51; }
  .candidate-inner .cf-actions .cf-save-state { min-height: 22px; margin: 0 0 9px; color: #3f6948; font-size: 13px; }
  .candidate-inner .cf-actions .cf-save-state.is-unsaved { color: #885625; }
  .candidate-inner .cf-actions .cf-actions-note { margin: 10px 0 0; }
  .candidate-inner .cf-actions-row .cf-button { flex: 0 1 auto; }
  .candidate-inner .cp-correction-list { margin: 16px 0; }
  .candidate-inner .cp-correction-list h3 { font-size: 15px; margin-bottom: 8px; }
  .candidate-inner .cp-correction-list p { margin-bottom: 10px; }
  .candidate-inner .c-app-service-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .candidate-inner .c-app-service-actions a { min-height: 44px; }
}
@media screen and (max-width: 760px) {
  .candidate-form-page { --cf-actions-height: 116px; --cf-keyboard-inset: 0px; }
  .candidate-form-page .c-mobile-nav { display: none; }
  .candidate-form-page .c-trial { display: none; }
  .candidate-form-page .c-header-inner { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
  .candidate-form-page .c-container { padding-top: 16px; padding-bottom: 20px; }
  .candidate-form-page .cf-wrap { padding-bottom: calc(var(--cf-actions-height) + 20px); }
  .candidate-form-page .cf-back { margin-bottom: 8px; min-height: 36px; display: inline-flex; align-items: center; }
  .candidate-form-page .cf-intro { margin-bottom: 12px; }
  .candidate-form-page .cf-intro h1 { font-size: 22px; margin-bottom: 5px; }
  .candidate-form-page .cf-intro p { margin-bottom: 0; font-size: 12px; }
  .candidate-form-page .cf-selected-project { display: block; padding: 8px 11px; font-size: 12px; margin-bottom: 12px; }
  .candidate-form-page .cf-selected-project strong { display: none; }
  .candidate-form-page .cf-steps { margin: 0 0 13px; }
  .candidate-form-page .cf-steps button { min-height: 44px; }
  .candidate-form-page .cf-card { padding: 17px 15px; }
  .candidate-form-page .cf-counter { margin-bottom: 5px; font-size: 12px; }
  .candidate-form-page .cf-section h2 { margin-bottom: 12px; padding-bottom: 10px; scroll-margin-top: 12px; }
  .candidate-form-page .cf-section-intro { margin-bottom: 16px; font-size: 12px; }
  .candidate-form-page .cf-grid { gap: 17px; }
  .candidate-form-page .cf-field { margin: 0; }
  .candidate-form-page .cf-field label { font-size: 14px; margin-bottom: 6px; }
  .candidate-form-page .cf-field :is(input:not([type=file]),select,textarea) { font-size: 16px; min-height: 46px; padding: 10px 12px; }
  .candidate-form-page .cf-help { font-size: 12px; line-height: 1.7; margin: 5px 0 0; color: #646d77; }
  .candidate-form-page .cf-upload { padding: 14px 12px; }
  .candidate-form-page .cf-correction-note { padding: 12px; margin-bottom: 14px; }
  .candidate-form-page .cf-correction-note p { font-size: 13px; line-height: 1.7; }
  .candidate-form-page .cf-correction-links a { padding: 8px 0; }
  .candidate-form-page .cf-actions { position: fixed; z-index: 40; left: 0; right: 0; bottom: var(--cf-keyboard-inset); margin: 0; padding: 9px 15px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #d9dce0; background: #fff; box-shadow: 0 -3px 12px #20283308; }
  .candidate-form-page .cf-actions-row { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .candidate-form-page .cf-actions-row .cf-button { min-width: 0; font-size: 14px; padding: 10px 9px; min-height: 46px; flex: 1 1 0; white-space: nowrap; }
  .candidate-form-page .cf-actions-row .cf-prev { flex: 0 0 60px; border-color: transparent; padding-left: 0; padding-right: 0; color: #636d77; }
  .candidate-form-page .cf-actions-row #cf-finish { flex: 1.5 1 0; }
  .candidate-form-page .cf-actions .cf-save-state { font-size: 12px; line-height: 1.6; min-height: 0; margin-bottom: 6px; }
  .candidate-form-page .cf-actions-note { display: none; }
  .candidate-form-page .cf-footer-note { margin-top: 15px; font-size: 12px; }
  .candidate-form-page .c-footer { padding-bottom: calc(var(--cf-actions-height) + 15px); }
  .candidate-form-page.cf-keyboard-open .cf-actions { padding-top: 5px; padding-bottom: 6px; }
  .candidate-form-page.cf-keyboard-open .cf-actions .cf-save-state { display: none; }
  .candidate-inner .c-app-service-actions { flex-direction: column; }
}

/* Four candidate-service tabs remain readable on narrow phones. */
@media(max-width:480px){.c-account-tabs{flex-wrap:wrap}.c-account-tabs a{flex:1 1 40%;min-width:0}}
/* A saved batch is a readable summary, rather than an unavailable search. */
.cf-field[data-cf-field="batch"] select:disabled { display: none; }
.cf-batch-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--c-line, #ddd);
  background: #f7f8fa;
  border-radius: 2px;
  color: var(--c-ink, #333);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.cf-batch-summary[hidden] { display: none; }
.cf-batch-summary strong { font-size: 15px; font-weight: 600; }
.cf-batch-summary > span { font-size: 13px; }
.cf-batch-summary .cf-help { margin: 0; }

/* Account screens share the masthead's ink and paper palette. */
@media screen {
  .candidate-inner .c-auth-layout {
    border: 1px solid #d5dce0; border-radius: 10px; overflow: hidden; background: white;
    box-shadow: 0 8px 30px rgb(23 45 62 / 5%);
  }
  .candidate-inner .c-form-first > .c-auth-card {grid-column: 2; grid-row: 1}
  .candidate-inner .c-form-first > .c-auth-intro {grid-column: 1; grid-row: 1}
  .candidate-inner .c-auth-intro {
    padding: clamp(24px,3.5vw,44px); background: #edf2f1; color: #1b3445; border-right: 1px solid #d5dce0;
  }
  .candidate-inner .c-auth-intro h1 {color: #193446; line-height: 1.35}
  .candidate-inner .c-auth-intro li {color: #435664}
  .candidate-inner .c-auth-intro > a {color: #8e2632; text-underline-offset: 4px}
  .candidate-inner .c-auth-card {border-radius: 0; padding: clamp(24px,3.5vw,44px); box-shadow: none}
  .candidate-inner .c-auth-card :is(input:not([type=checkbox],[type=radio]), select, .c-btn) {border-radius: 5px}
  .candidate-inner .c-auth-card input:focus-visible {outline-color: #245c7b}
  .candidate-inner .c-login-help a, .candidate-inner .c-auth-foot a {text-underline-offset: 3px}
}
@media screen and (max-width:760px) {
  .candidate-inner .c-form-first {display: flex; flex-direction: column; gap: 0; margin: 0 auto 18px}
  .candidate-inner .c-form-first > .c-auth-card {order: -1; padding: 22px 20px; border: 0}
  .candidate-inner .c-form-first > .c-auth-intro {border: 0; border-top: 1px solid #d5dce0; padding: 16px 20px}
  .candidate-inner .c-form-first > .c-auth-intro :is(h1,h2) {font-size: 16px; margin: 0 0 3px}
  .candidate-inner .c-form-first > .c-auth-intro a {display: inline-flex; align-items: center; min-height: 44px}
  .candidate-inner .c-auth-card :is(input:not([type=checkbox],[type=radio]), select) {font-size: 16px}
  .candidate-inner .c-login-help a, .candidate-inner .c-auth-foot a {display: inline-flex; align-items: center; min-height: 44px}
}
