:root {
      --indigo-50: #eef2ff;
      --indigo-100: #e0e7ff;
      --indigo-200: #c7d2fe;
      --indigo-300: #a5b4fc;
      --indigo-400: #818cf8;
      --indigo-600: #4f46e5;
      --indigo-700: #4338ca;
      --indigo-800: #3730a3;
      --indigo-950: #1e1b4b;
      --blue-500: #2d76d3;
      --emerald-600: #059669;
      --gray-50: #f9fafb;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-300: #d1d5db;
      --gray-500: #6b7280;
      --gray-600: #4b5563;
      --gray-700: #374151;
      --gray-800: #1f2937;
      --gray-900: #111827;
      --amber-500: #f59e0b;
      --rose-500: #f43f5e;
      --mind-blue: #2d76d3;
      --toc-w: 300px;
      --portal-sidebar-w: 172px;
      --header-h: 52px;
      --content-max: 860px;
      --font: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.75;
      color: var(--gray-800);
      background: #fff;
      -webkit-font-smoothing: antialiased;
    }

    code {
      font-family: Consolas, "Courier New", monospace;
      font-size: 0.88em;
      background: var(--gray-100);
      padding: 0.1em 0.35em;
      border-radius: 4px;
    }

    /* ===== 頂部列 ===== */
    .manual-header {
      position: sticky;
      top: 0;
      z-index: 100;
      height: var(--header-h);
      background: linear-gradient(135deg, var(--indigo-950) 0%, var(--indigo-800) 100%);
      color: #fff;
      padding: 0 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 16px rgba(15,23,42,.18);
    }
    .manual-header-brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      min-width: 0;
    }
    .manual-header-brand img {
      height: 32px;
      width: auto;
      flex-shrink: 0;
      display: block;
    }
    .manual-header-text { min-width: 0; }
    .manual-header h1 {
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .manual-header-sub {
      font-size: 0.72rem;
      color: rgba(255,255,255,.72);
      margin-top: 0.1rem;
    }
    .manual-header-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .manual-header .badge {
      font-size: 0.7rem;
      background: rgba(255,255,255,.15);
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
    }
    .manual-nav-btn {
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.25);
      color: #fff;
      padding: 0.35rem 0.75rem;
      border-radius: 6px;
      font-size: 0.8rem;
      cursor: pointer;
      text-decoration: none;
    }
    .manual-nav-btn:hover { background: rgba(255,255,255,.22); }

    /* ===== 主布局：左目錄 + 右內容 ===== */
    .manual-shell {
      display: grid;
      grid-template-columns: var(--toc-w) minmax(0, 1fr);
      grid-template-rows: 1fr;
      align-items: start;
      min-height: calc(100vh - var(--header-h));
    }

    .toc-backdrop {
      display: none;
      position: fixed;
      inset: var(--header-h) 0 0 0;
      background: rgba(15,23,42,.4);
      z-index: 80;
    }
    .toc-backdrop.show { display: block; }

    .manual-toc {
      grid-column: 1;
      grid-row: 1;
      position: sticky;
      top: var(--header-h);
      width: var(--toc-w);
      height: calc(100vh - var(--header-h));
      overflow-y: auto;
      overflow-x: hidden;
      background: #fafbfc;
      border-right: 1px solid var(--gray-200);
      padding: 1.25rem 1rem 2.5rem;
      z-index: 50;
      scrollbar-width: thin;
      scrollbar-color: var(--gray-300) transparent;
    }
    .manual-toc::-webkit-scrollbar { width: 6px; }
    .manual-toc::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
    .manual-toc h2 {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--gray-500);
      margin-bottom: 0.75rem;
    }
    .toc-brand {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.4rem;
      padding: 0.25rem 0.5rem 1.1rem;
      margin-bottom: 0.5rem;
      border-bottom: 1px solid var(--gray-200);
    }
    .toc-brand img {
      height: 28px;
      width: auto;
      display: block;
    }
    .toc-brand-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--gray-800);
      line-height: 1.35;
    }
    .manual-toc ol { list-style: none; }
    .manual-toc li { margin-bottom: 0.1rem; }
    .manual-toc a {
      display: block;
      padding: 0.42rem 0.65rem;
      font-size: 0.84rem;
      line-height: 1.4;
      color: var(--gray-700);
      text-decoration: none;
      border-radius: 8px;
      border-left: 3px solid transparent;
      transition: background .15s, color .15s;
    }
    .manual-toc a:hover { background: #fff; color: var(--indigo-700); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
    .manual-toc a.active {
      background: #fff;
      color: var(--indigo-700);
      border-left-color: var(--indigo-600);
      font-weight: 600;
      box-shadow: 0 1px 3px rgba(79,70,229,.08);
    }
    .toc-group { margin-bottom: 1.15rem; }
    .toc-group-title {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--gray-400);
      padding: 0.5rem 0.65rem 0.35rem;
    }
    .toc-sub { list-style: none; margin-top: 0.15rem; }
    .toc-sub a {
      padding: 0.3rem 0.65rem 0.3rem 1.5rem;
      font-size: 0.76rem;
      color: var(--gray-500);
    }
    .toc-sub a:hover { color: var(--indigo-700); }
    .toc-sub a.active { color: var(--indigo-700); font-weight: 600; }

    .toc-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.35rem;
      margin-bottom: 1rem;
    }
    .toc-tab {
      border: 1px solid var(--gray-200);
      background: #fff;
      color: var(--gray-600);
      font-family: inherit;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.52rem 0.65rem;
      border-radius: 8px;
      cursor: pointer;
      transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    }
    .toc-tab:hover { border-color: var(--gray-300); color: var(--gray-800); }
    .toc-tab.active[data-toc-tab="hr"] {
      background: var(--indigo-600);
      border-color: var(--indigo-600);
      color: #fff;
      box-shadow: 0 2px 8px rgba(79,70,229,.22);
    }
    .toc-tab.active[data-toc-tab="cand"] {
      background: var(--emerald-600);
      border-color: var(--emerald-600);
      color: #fff;
      box-shadow: 0 2px 8px rgba(5,150,105,.22);
    }
    .toc-panel { display: none; }
    .toc-panel.active { display: block; }
    .toc-panel[data-toc-panel="cand"] a.active {
      color: var(--emerald-700);
      border-left-color: var(--emerald-600);
      box-shadow: 0 1px 3px rgba(5,150,105,.08);
    }
    .toc-panel[data-toc-panel="cand"] a:hover {
      color: var(--emerald-700);
    }
    .toc-panel[data-toc-panel="cand"] .toc-sub a.active {
      color: var(--emerald-700);
    }
    .toc-panel[data-toc-panel="cand"] .toc-sub a:hover {
      color: var(--emerald-700);
    }

    .manual-content {
      grid-column: 2;
      grid-row: 1;
      background: var(--gray-50);
      min-width: 0;
      min-height: calc(100vh - var(--header-h));
      padding: 2rem clamp(1.25rem, 3.5vw, 3rem) 4rem;
    }

    .manual-content-inner {
      max-width: var(--content-max);
      margin: 0 auto;
    }

    section.chapter {
      background: #fff;
      border: 1px solid var(--gray-200);
      border-radius: 14px;
      padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
      margin-bottom: 1.75rem;
      scroll-margin-top: calc(var(--header-h) + 12px);
      box-shadow: 0 1px 2px rgba(15,23,42,.04);
      container-type: inline-size;
    }
    section.chapter:last-of-type { margin-bottom: 0; }

    section.chapter > p,
    section.chapter > ul,
    section.chapter > ol {
      max-width: 72ch;
    }

    .table-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin: 1.25rem 0;
      border: 1px solid var(--gray-200);
      border-radius: 10px;
      background: #fff;
    }
    .table-scroll table { margin: 0; border: none; }
    .table-scroll .portal-table { border-radius: 0; }

    section.chapter h3[id], section.chapter h4[id] { scroll-margin-top: 72px; }

    .cover {
      text-align: center;
      padding: 2.5rem 1.5rem 2rem;
      margin: -0.25rem -0.25rem 1.75rem;
      background: linear-gradient(160deg, var(--indigo-50) 0%, #fff 55%);
      border-radius: 12px;
      border: 1px solid var(--indigo-100);
    }
    .cover-brand-logo {
      height: 48px;
      width: auto;
      margin: 0 auto 1.25rem;
      display: block;
    }
    .cover h1 {
      font-size: clamp(1.5rem, 3vw, 1.85rem);
      color: var(--indigo-950);
      margin-bottom: 0.65rem;
      letter-spacing: -0.02em;
    }
    .cover .subtitle {
      color: var(--gray-600);
      font-size: 0.98rem;
      max-width: 36em;
      margin: 0 auto 1.25rem;
      line-height: 1.65;
    }
    .cover-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
    .cover-meta span {
      font-size: 0.78rem;
      background: #fff;
      border: 1px solid var(--gray-200);
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      color: var(--gray-600);
    }

    /* ===== Feature map (功能地圖) ===== */
    .feature-map-intro {
      color: var(--gray-600);
      font-size: 0.95rem;
      margin-bottom: 1.25rem;
      line-height: 1.65;
    }
    .feature-map-flow {
      margin: 1.25rem 0 1.75rem;
      padding: 1rem 1.15rem;
      background: linear-gradient(135deg, var(--indigo-50) 0%, #fff 100%);
      border: 1px solid var(--indigo-100);
      border-radius: 12px;
    }
    .feature-map-flow-label {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--indigo-600);
      margin-bottom: 0.65rem;
    }
    .feature-group { margin-bottom: 1.75rem; }
    .feature-group-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--gray-800);
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 0.65rem;
    }
    a.feature-card {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      padding: 0.85rem 0.95rem;
      background: #fff;
      border: 1px solid var(--gray-200);
      border-radius: 10px;
      text-decoration: none;
      color: inherit;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    }
    a.feature-card:hover {
      border-color: var(--indigo-300);
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
      transform: translateY(-1px);
    }
    a.feature-card:focus-visible {
      outline: 2px solid var(--indigo-500);
      outline-offset: 2px;
    }
    .feature-card-name {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--indigo-950);
      line-height: 1.35;
    }
    .feature-card-desc {
      font-size: 0.78rem;
      color: var(--gray-500);
      line-height: 1.45;
    }
    .feature-card-chapter {
      font-size: 0.7rem;
      color: var(--indigo-600);
      margin-top: 0.15rem;
      font-weight: 500;
    }
    .feature-map-note {
      font-size: 0.82rem;
      color: var(--gray-500);
      margin-top: 0.5rem;
      padding-top: 1rem;
      border-top: 1px dashed var(--gray-200);
    }

    /* ===== Manual section divider ===== */
    .manual-divider {
      margin: 3rem 0 2rem;
      padding: 2rem 0 0;
      border-top: 3px solid var(--emerald-600);
      text-align: center;
    }
    .manual-divider-label {
      display: inline-block;
      background: var(--emerald-600);
      color: #fff;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 0.35rem 1rem;
      border-radius: 999px;
      margin-bottom: 0.5rem;
    }
    .manual-divider p {
      color: var(--gray-500);
      font-size: 0.88rem;
      margin: 0.5rem 0 0;
    }

    /* ===== Candidate manual ===== */
    .cand-cover {
      text-align: center;
      padding: 2rem 1.25rem;
      margin-bottom: 1.5rem;
      background: linear-gradient(160deg, #ecfdf5 0%, #fff 55%, #f0fdf4 100%);
      border: 1px solid #a7f3d0;
      border-radius: 14px;
    }
    .cand-cover h1 {
      font-size: clamp(1.45rem, 3vw, 1.75rem);
      color: #064e3b;
      margin-bottom: 0.6rem;
    }
    .cand-cover .subtitle {
      color: var(--gray-600);
      font-size: 0.95rem;
      max-width: 34em;
      margin: 0 auto;
      line-height: 1.65;
    }
    .chapter-num-cand {
      display: inline-block;
      background: var(--emerald-600);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.15rem 0.55rem;
      border-radius: 999px;
      margin-right: 0.5rem;
      vertical-align: middle;
    }
    a.feature-card--cand:hover {
      border-color: #6ee7b7;
      box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
    }
    a.feature-card--cand .feature-card-chapter { color: var(--emerald-600); }
    .cand-flow-step {
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
      color: #065f46;
    }
    .cand-apply-mock {
      padding: 1.15rem;
      background: var(--gray-50);
    }
    .cand-apply-tabs {
      display: flex;
      gap: 0.35rem;
      background: var(--gray-100);
      padding: 0.25rem;
      border-radius: 10px;
      margin-bottom: 1rem;
    }
    .cand-apply-tab {
      flex: 1;
      text-align: center;
      padding: 0.5rem 0.65rem;
      border-radius: 8px;
      font-size: 0.78rem;
      font-weight: 600;
      background: #fff;
      color: var(--indigo-700);
      box-shadow: 0 1px 2px rgba(0,0,0,.06);
    }
    .cand-apply-tab.alt { background: transparent; color: var(--gray-600); box-shadow: none; }
    .cand-form-field {
      margin-bottom: 0.65rem;
      font-size: 0.75rem;
    }
    .cand-form-field label { display: block; font-weight: 600; color: var(--gray-700); margin-bottom: 0.25rem; }
    .cand-form-field .input {
      display: block;
      width: 100%;
      padding: 0.45rem 0.6rem;
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      background: #fff;
      color: var(--gray-400);
    }
    .cand-vi-mock {
      padding: 1.15rem;
      background: #fff;
    }
    .cand-vi-steps {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin: 0.75rem 0 1rem;
    }
    .cand-vi-step {
      font-size: 0.68rem;
      padding: 0.3rem 0.55rem;
      border-radius: 999px;
      background: var(--gray-100);
      color: var(--gray-600);
    }
    .cand-vi-step.active { background: var(--indigo-600); color: #fff; }
    .cand-vi-step.done { background: #d1fae5; color: #065f46; }
    .cand-phase {
      margin: 1.25rem 0;
      padding: 1rem 1.1rem;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-left: 3px solid var(--emerald-500);
      border-radius: 0 10px 10px 0;
      overflow: hidden;
    }
    .cand-phase h4 {
      font-size: 0.95rem;
      color: var(--gray-900);
      margin: 0 0 0.5rem;
    }
    .cand-phase p, .cand-phase li { font-size: 0.88rem; }
    .cand-phase ul, .cand-phase ol { margin: 0.4rem 0 0 1.2rem; }
    .cand-phase-tag {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 600;
      padding: 0.12rem 0.45rem;
      border-radius: 999px;
      background: #ecfdf5;
      color: #065f46;
      border: 1px solid #a7f3d0;
      margin-bottom: 0.35rem;
    }
    .cand-phase-tag.optional { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); }
    .cand-camera-mock {
      background: var(--gray-900);
      border-radius: 10px;
      height: 140px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
      font-size: 0.78rem;
      gap: 0.35rem;
    }
    .cand-vi-screen {
      margin: 1rem -1.1rem 0;
      padding: 0.85rem 1.1rem 0.35rem;
      background: #fff;
      border-top: 1px dashed var(--gray-200);
    }
    .cand-vi-screen .screen {
      margin: 0;
      max-width: 100%;
      box-shadow: 0 2px 12px rgba(0,0,0,.06);
    }
    .cand-vi-screen .screen-caption { margin-bottom: 0; }
    .cand-vi-page-title {
      font-weight: 700;
      font-size: 0.9rem;
      color: var(--gray-900);
      margin-bottom: 0.5rem;
    }
    .cand-vi-page-sub {
      font-size: 0.72rem;
      color: var(--gray-500);
      margin-bottom: 0.65rem;
    }
    .cand-yt-mock {
      background: linear-gradient(145deg, #1e293b, #0f172a);
      border-radius: 10px;
      height: 130px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      margin-bottom: 0.65rem;
    }
    .cand-yt-mock .play {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(255,255,255,.9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: var(--gray-800);
      padding-left: 3px;
    }
    .cand-yt-mock .yt-label {
      position: absolute;
      bottom: 0.45rem;
      left: 0.55rem;
      font-size: 0.65rem;
      color: #94a3b8;
    }
    .cand-survey-q {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--gray-800);
      margin-bottom: 0.5rem;
    }
    .cand-survey-opt {
      display: block;
      font-size: 0.75rem;
      padding: 0.4rem 0.55rem;
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      margin-bottom: 0.35rem;
      color: var(--gray-600);
      background: #fff;
    }
    .cand-survey-opt.selected {
      border-color: var(--indigo-400);
      background: var(--indigo-50);
      color: var(--indigo-800);
    }
    .cand-badge-req {
      display: inline-block;
      font-size: 0.62rem;
      font-weight: 600;
      padding: 0.1rem 0.4rem;
      border-radius: 4px;
      background: #fef3c7;
      color: #92400e;
      margin-left: 0.35rem;
      vertical-align: middle;
    }
    .cand-done-mock {
      text-align: center;
      padding: 1.25rem 1rem;
    }
    .cand-done-mock .check {
      font-size: 2.25rem;
      line-height: 1;
      margin-bottom: 0.5rem;
    }
    .cand-done-mock h5 {
      font-size: 0.95rem;
      color: var(--gray-900);
      margin: 0 0 0.35rem;
    }
    .cand-mock-actions {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 0.65rem;
    }
    .btn-outline-sm {
      border: 1px solid var(--gray-300);
      background: #fff;
      padding: 0.35rem 0.75rem;
      border-radius: 6px;
      font-size: 0.72rem;
      color: var(--gray-700);
    }
    .cand-jd-box {
      font-size: 0.75rem;
      color: var(--gray-600);
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: 8px;
      padding: 0.65rem;
      margin-bottom: 0.65rem;
      line-height: 1.55;
    }
    .cand-booking-mock {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      padding: 1rem;
      background: #fff;
      font-size: 0.72rem;
    }
    @media (max-width: 520px) {
      .cand-booking-mock { grid-template-columns: 1fr; }
    }
    .cand-cal-mini {
      border: 1px solid var(--gray-200);
      border-radius: 8px;
      padding: 0.65rem;
    }
    .cand-cal-mini .cal-head { font-weight: 700; text-align: center; margin-bottom: 0.5rem; color: var(--gray-800); }
    .cand-slot {
      padding: 0.35rem 0.5rem;
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      margin-bottom: 0.3rem;
      text-align: center;
      color: var(--gray-600);
    }
    .cand-slot.selected {
      border-color: var(--indigo-500);
      background: var(--indigo-50);
      color: var(--indigo-800);
      font-weight: 600;
    }

    section.chapter h2 {
      font-size: clamp(1.25rem, 2.5vw, 1.5rem);
      color: var(--indigo-950);
      margin-bottom: 0.5rem;
      padding-bottom: 0.65rem;
      border-bottom: 2px solid var(--indigo-100);
      letter-spacing: -0.01em;
      line-height: 1.35;
    }
    .chapter-num {
      display: inline-block;
      background: var(--indigo-600);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.15rem 0.55rem;
      border-radius: 999px;
      margin-right: 0.5rem;
      vertical-align: middle;
    }
    .chapter-summary {
      color: var(--gray-600);
      font-size: 0.95rem;
      margin-bottom: 1.25rem;
      padding: 0.65rem 0.85rem;
      background: var(--gray-50);
      border-left: 3px solid var(--indigo-300);
      border-radius: 0 8px 8px 0;
      line-height: 1.6;
    }
    section.chapter h3 {
      font-size: 1.05rem;
      color: var(--gray-900);
      margin: 1.75rem 0 0.65rem;
      font-weight: 600;
    }
    section.chapter p { margin-bottom: 0.9rem; }
    section.chapter ul, section.chapter ol { margin: 0.65rem 0 1.1rem 1.35rem; }
    section.chapter li { margin-bottom: 0.4rem; }
    section.chapter li::marker { color: var(--indigo-400); }

    .tip-box {
      background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
      border: 1px solid #fcd34d;
      border-radius: 10px;
      padding: 1rem 1.15rem;
      margin: 1.25rem 0;
    }
    .tip-box strong { color: #92400e; display: block; margin-bottom: 0.35rem; }
    .tip-box p { margin: 0; color: #78350f; font-size: 0.92rem; }
    .tip-box a { color: #92400e; font-weight: 600; }

    .manual-header-jump {
      display: flex;
      gap: 0.35rem;
      align-items: center;
    }
    .manual-header-jump a {
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.3rem 0.55rem;
      border-radius: 6px;
      text-decoration: none;
      border: 1px solid rgba(255,255,255,.28);
      color: #fff;
      background: rgba(255,255,255,.12);
    }
    .manual-header-jump a:hover {
      background: rgba(255,255,255,.22);
      border-color: rgba(255,255,255,.45);
      color: #fff;
    }
    .manual-header-jump a.jump-cand {
      background: rgba(16,185,129,.2);
      border-color: rgba(167,243,208,.45);
      color: #ecfdf5;
    }
    .manual-header-jump a.jump-cand:hover {
      background: rgba(16,185,129,.35);
      border-color: rgba(167,243,208,.65);
      color: #fff;
    }

    .manual-cand-manual-btn {
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      text-decoration: none;
      color: #fff;
      background: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
      border: 1px solid rgba(167,243,208,.7);
      box-shadow: 0 2px 10px rgba(5,150,105,.4);
      white-space: nowrap;
      transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    }
    .manual-cand-manual-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(5,150,105,.5);
      filter: brightness(1.05);
      color: #fff;
    }

    .toc-cand-manual-wrap {
      padding: 0.5rem 0.65rem 0.65rem;
      margin-bottom: 0.25rem;
      border-bottom: 1px solid var(--gray-200);
    }
    .toc-extra-links {
      padding: 0.5rem 0.65rem 0.65rem;
      margin-bottom: 0.25rem;
      border-bottom: 1px solid var(--gray-200);
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }
    .toc-cand-manual-btn,
    .toc-extra-link {
      display: block;
      text-align: center;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0.5rem 0.65rem;
      border-radius: 8px;
      text-decoration: none;
      line-height: 1.35;
      transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease;
    }
    .toc-cand-manual-btn,
    .toc-extra-link--cand {
      color: #047857;
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
    }
    .toc-cand-manual-btn:hover,
    .toc-extra-link--cand:hover {
      background: #d1fae5;
      border-color: #6ee7b7;
      color: #065f46;
    }
    .toc-extra-link--recording {
      color: #4338ca;
      background: #eef2ff;
      border: 1px solid #c7d2fe;
    }
    .toc-extra-link--recording:hover {
      background: #e0e7ff;
      border-color: #a5b4fc;
      color: #3730a3;
    }

    /* ===== UI Mockups (Portal-like) ===== */
    .screen {
      margin: 1.5rem 0;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--gray-200);
      box-shadow: 0 4px 24px rgba(0,0,0,.08);
      background: #fff;
    }
    .screen-caption {
      font-size: 0.8rem;
      color: var(--gray-500);
      text-align: center;
      margin-top: 0.5rem;
      margin-bottom: 0.25rem;
    }
    .screen-bar {
      background: var(--gray-100);
      border-bottom: 1px solid var(--gray-200);
      padding: 0.4rem 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .screen-dot { width: 10px; height: 10px; border-radius: 50%; }
    .screen-dot.r { background: #ef4444; }
    .screen-dot.y { background: #eab308; }
    .screen-dot.g { background: #22c55e; }
    .screen-url {
      flex: 1;
      min-width: 0;
      margin-left: 0.5rem;
      font-size: 0.72rem;
      color: var(--gray-500);
      background: #fff;
      border: 1px solid var(--gray-200);
      border-radius: 4px;
      padding: 0.2rem 0.5rem;
      font-family: Consolas, monospace;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .screen-bar { min-width: 0; }

    .portal-frame {
      display: flex;
      min-height: 280px;
      min-width: 0;
    }

    .portal-sidebar {
      width: var(--portal-sidebar-w);
      flex-shrink: 0;
      background: var(--gray-900);
      color: #cbd5e1;
      padding: 0.75rem 0;
      font-size: 0.75rem;
    }
    .portal-sidebar-brand {
      padding: 0 0.85rem 0.75rem;
      border-bottom: 1px solid rgba(255,255,255,.08);
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .portal-sidebar-brand .portal-logo-mark {
      height: 20px;
      width: auto;
      display: block;
      flex-shrink: 0;
    }
    .portal-sidebar-brand span { font-weight: 600; color: #f1f5f9; font-size: 0.78rem; }
    .portal-nav-section { padding: 0.35rem 0.65rem; }
    .portal-nav-section-title {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: #64748b;
      margin-bottom: 0.35rem;
      padding-left: 0.2rem;
    }
    .portal-nav-item {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.4rem 0.55rem;
      border-radius: 6px;
      margin-bottom: 0.1rem;
      color: #94a3b8;
    }
    .portal-nav-item.active { background: rgba(79,70,229,.35); color: #e0e7ff; }
    .portal-nav-item .ico { width: 14px; text-align: center; opacity: .8; }
    .portal-nav-sub { padding-left: 1.5rem; font-size: 0.7rem; }

    .portal-main {
      flex: 1;
      min-width: 0;
      background: var(--gray-50);
      padding: 1rem 1.15rem;
      overflow-x: auto;
    }
    .screen { max-width: 100%; }

    @container (max-width: 560px) {
      .portal-frame {
        flex-direction: column;
        min-height: auto;
      }
      .portal-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.15rem 0.35rem;
        padding: 0.55rem 0.65rem;
      }
      .portal-sidebar-brand {
        width: 100%;
        margin-bottom: 0.15rem;
        padding: 0 0 0.45rem;
      }
      .portal-nav-section {
        display: contents;
      }
      .portal-nav-section-title,
      .portal-nav-sub {
        display: none;
      }
      .portal-nav-item {
        font-size: 0.62rem;
        padding: 0.28rem 0.45rem;
        margin: 0;
      }
      .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .stat-grid { grid-template-columns: 1fr 1fr; }
      .big5-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .feature-grid { grid-template-columns: 1fr; }
    }
    .portal-page-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--gray-900);
      margin-bottom: 0.85rem;
    }

    /* Setup guide panel */
    .setup-guide {
      background: linear-gradient(135deg, var(--indigo-50) 0%, #fff 100%);
      border: 1px solid var(--indigo-200);
      border-radius: 10px;
      margin-bottom: 1rem;
      font-size: 0.72rem;
    }
    .setup-guide-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.55rem 0.75rem;
      border-bottom: 1px solid var(--indigo-100);
    }
    .setup-guide-head strong { color: var(--indigo-950); }
    .setup-guide-head span { color: var(--indigo-700); font-size: 0.68rem; }
    .setup-step {
      display: flex;
      gap: 0.5rem;
      padding: 0.45rem 0.75rem;
      border-bottom: 1px solid var(--indigo-100);
      align-items: flex-start;
    }
    .setup-step:last-child { border-bottom: none; }
    .setup-step .check { color: var(--emerald-600); font-weight: 700; }
    .setup-step .pending { color: var(--gray-300); }
    .setup-step.done .text { color: var(--gray-500); text-decoration: line-through; }

    /* Stat cards */
    .stat-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.55rem;
      margin-bottom: 1rem;
    }
    .stat-card {
      background: #fff;
      border: 1px solid var(--gray-200);
      border-radius: 8px;
      padding: 0.65rem 0.75rem;
    }
    .stat-card .label { font-size: 0.65rem; color: var(--gray-500); }
    .stat-card .value { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
    .stat-card.blue { border-left: 3px solid #3b82f6; }
    .stat-card.green { border-left: 3px solid var(--emerald-600); }
    .stat-card.indigo { border-left: 3px solid var(--indigo-600); }

    /* Table */
    .portal-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.82rem;
      background: #fff;
    }
    .portal-table th {
      background: var(--gray-50);
      text-align: left;
      padding: 0.55rem 0.75rem;
      font-weight: 600;
      color: var(--gray-600);
      border-bottom: 1px solid var(--gray-200);
      white-space: nowrap;
    }
    .portal-table td {
      padding: 0.55rem 0.75rem;
      border-bottom: 1px solid var(--gray-100);
      vertical-align: middle;
    }
    .portal-table tbody tr:last-child td { border-bottom: none; }
    .portal-table tbody tr:hover { background: var(--gray-50); }
    .pill {
      display: inline-block;
      padding: 0.1rem 0.45rem;
      border-radius: 999px;
      font-size: 0.65rem;
      font-weight: 500;
    }
    .pill-blue { background: #dbeafe; color: #1d4ed8; }
    .pill-green { background: #d1fae5; color: #047857; }
    .pill-amber { background: #fef3c7; color: #b45309; }
    .pill-gray { background: var(--gray-100); color: var(--gray-600); }

    /* Tabs */
    .portal-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--gray-200);
      margin-bottom: 0.85rem;
      background: #fff;
      border-radius: 8px 8px 0 0;
      padding: 0 0.5rem;
    }
    .portal-tab {
      padding: 0.55rem 0.75rem;
      font-size: 0.72rem;
      color: var(--gray-500);
      border-bottom: 2px solid transparent;
      cursor: default;
    }
    .portal-tab.active { color: var(--indigo-700); border-bottom-color: var(--indigo-600); font-weight: 600; }

    /* Kanban */
    .kanban {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.5rem;
    }
    .kanban-col {
      background: var(--gray-100);
      border-radius: 8px;
      padding: 0.45rem;
      min-height: 140px;
    }
    .kanban-col-head {
      font-size: 0.65rem;
      font-weight: 600;
      color: var(--gray-600);
      margin-bottom: 0.4rem;
      display: flex;
      justify-content: space-between;
    }
    .kanban-card {
      background: #fff;
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      padding: 0.4rem 0.5rem;
      margin-bottom: 0.35rem;
      font-size: 0.68rem;
      box-shadow: 0 1px 2px rgba(0,0,0,.04);
    }
    .kanban-card .name { font-weight: 600; color: var(--gray-800); }
    .kanban-card .meta { color: var(--gray-500); font-size: 0.62rem; margin-top: 0.15rem; }

    /* Video report */
    .report-score {
      font-size: 3rem;
      font-weight: 800;
      color: var(--blue-500);
      line-height: 1;
    }
    .big5-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0.4rem;
      margin-top: 0.75rem;
    }
    .big5-item {
      text-align: center;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      padding: 0.4rem 0.25rem;
      font-size: 0.62rem;
    }
    .big5-item .dim { color: var(--gray-500); }
    .big5-item .score { font-weight: 700; color: var(--indigo-700); font-size: 0.85rem; }
    .video-player-mock {
      background: var(--gray-900);
      border-radius: 8px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #64748b;
      font-size: 2rem;
      margin-top: 0.5rem;
    }

    /* Careers public page */
    .careers-public {
      background: linear-gradient(180deg, var(--indigo-800) 0%, var(--indigo-950) 120px, var(--gray-50) 120px);
      padding: 1.5rem 1rem 1rem;
    }
    .careers-hero {
      text-align: center;
      color: #fff;
      padding-bottom: 1.25rem;
    }
    .careers-hero h3 { font-size: 1rem; margin-bottom: 0.25rem; }
    .careers-hero p { font-size: 0.72rem; opacity: .85; }
    .job-card-public {
      background: #fff;
      border: 1px solid var(--gray-200);
      border-radius: 10px;
      padding: 0.75rem 1rem;
      margin-bottom: 0.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .job-card-public .title { font-weight: 600; font-size: 0.85rem; }
    .job-card-public .dept { font-size: 0.68rem; color: var(--gray-500); }
    .btn-primary {
      background: var(--indigo-600);
      color: #fff;
      border: none;
      padding: 0.35rem 0.75rem;
      border-radius: 6px;
      font-size: 0.72rem;
      font-weight: 500;
    }

    /* Manager review */
    .review-card {
      background: #fff;
      border: 1px solid var(--gray-200);
      border-radius: 10px;
      padding: 1rem;
    }
    .review-card h4 { font-size: 0.85rem; margin-bottom: 0.5rem; }
    .star-row { color: var(--amber-500); font-size: 1rem; letter-spacing: 2px; }
    .review-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
    .btn-outline {
      border: 1px solid var(--gray-300);
      background: #fff;
      padding: 0.35rem 0.75rem;
      border-radius: 6px;
      font-size: 0.72rem;
    }
    .btn-success { background: var(--emerald-600); color: #fff; border: none; padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.72rem; }

    /* Flow diagram */
    .flow {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.35rem;
      margin: 1rem 0;
      font-size: 0.78rem;
    }
    .flow-step {
      background: var(--indigo-50);
      border: 1px solid var(--indigo-200);
      padding: 0.4rem 0.65rem;
      border-radius: 8px;
      color: var(--indigo-800);
      font-weight: 500;
    }
    .flow-arrow { color: var(--gray-400); font-weight: 700; }

    .faq-item { margin-bottom: 1.25rem; }
    .faq-item h4 { font-size: 0.95rem; color: var(--gray-800); margin-bottom: 0.35rem; }
    .faq-item p, .faq-item ul { font-size: 0.88rem; color: var(--gray-600); }

    footer.manual-footer {
      max-width: var(--content-max);
      margin: 2rem auto 0;
      padding: 2rem 1rem 1rem;
      border-top: 1px solid var(--gray-200);
      font-size: 0.82rem;
      color: var(--gray-500);
      text-align: center;
      line-height: 1.65;
    }
    .footer-brand {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }
    .footer-brand img {
      height: 36px;
      width: auto;
      opacity: 0.9;
    }

    @media (max-width: 1100px) {
      :root { --toc-w: 260px; }
    }

    @media (max-width: 960px) {
      .manual-shell { grid-template-columns: 1fr; }
      body { overflow-x: clip; }
      .manual-toc {
        position: fixed;
        left: 0;
        top: var(--header-h);
        bottom: 0;
        width: min(300px, 88vw);
        z-index: 90;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.12);
        background: #fff;
      }
      .manual-toc.open { transform: translateX(0); }
      .manual-content {
        grid-column: 1;
        padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        min-height: auto;
      }
      section.chapter {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        margin-bottom: 1.25rem;
      }
      .stat-grid { grid-template-columns: 1fr 1fr; }
      .kanban { grid-template-columns: 1fr; }
      .big5-grid { grid-template-columns: repeat(3, 1fr); }
      .portal-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.15rem 0.35rem;
        padding: 0.55rem 0.65rem;
      }
      .portal-sidebar-brand {
        width: 100%;
        margin-bottom: 0.15rem;
        padding: 0 0 0.45rem;
      }
      .portal-nav-section { display: contents; }
      .portal-nav-section-title,
      .portal-nav-sub { display: none; }
      .portal-nav-item { font-size: 0.62rem; padding: 0.28rem 0.45rem; margin: 0; }
      .portal-frame { flex-direction: column; min-height: auto; }
      .feature-grid { grid-template-columns: 1fr; }
      .manual-header {
        padding: 0 0.65rem;
        gap: 0.35rem;
      }
      .manual-header-sub,
      .manual-header h1,
      .manual-header-jump,
      .manual-header .badge { display: none; }
      .manual-header-actions a.manual-nav-btn[href="#cover"] { display: none; }
      .manual-header-actions {
        gap: 0.3rem;
        flex-shrink: 1;
        min-width: 0;
      }
      .manual-lang-select {
        max-width: 6.25rem;
        font-size: 0.72rem;
        padding: 0.28rem 1.35rem 0.28rem 0.45rem;
      }
      .manual-nav-btn {
        font-size: 0.72rem;
        padding: 0.32rem 0.55rem;
        white-space: nowrap;
      }
      .manual-cand-manual-btn { font-size: 0.68rem; padding: 0.35rem 0.55rem; }
      .manual-header-brand img { height: 26px; }
      .flow { justify-content: center; }
    }

    @media (max-width: 480px) {
      .manual-lang-select { max-width: 5.5rem; }
      #tocToggle {
        font-size: 0;
        padding: 0.35rem 0.48rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      #tocToggle::before {
        content: "☰";
        font-size: 1rem;
        line-height: 1;
      }
    }

    @media (min-width: 1400px) {
      :root { --content-max: 920px; }
    }

    @media print {
      .manual-header, .manual-toc, .toc-backdrop { display: none !important; }
      .manual-shell { display: block; }
      .manual-content { padding: 0; background: #fff; }
      section.chapter {
        break-inside: avoid-page;
        box-shadow: none;
        border: none;
        padding: 0 0 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #ddd;
      }
      .screen { break-inside: avoid; }
    }
  
    .manual-lang-wrap { display: flex; align-items: center; }
    .manual-lang-select {
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.28);
      color: #fff;
      padding: 0.32rem 1.6rem 0.32rem 0.55rem;
      border-radius: 6px;
      font-size: 0.78rem;
      font-family: inherit;
      cursor: pointer;
      max-width: 9.5rem;
      appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.75) 50%),
        linear-gradient(135deg, rgba(255,255,255,.75) 50%, transparent 50%);
      background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
      background-size: 5px 5px, 5px 5px;
      background-repeat: no-repeat;
    }
    .manual-lang-select option { color: var(--gray-800); background: #fff; }
    .manual-locale-banner {
      margin-bottom: 1rem;
      padding: 0.65rem 0.9rem;
      background: #fffbeb;
      border: 1px solid #fcd34d;
      border-radius: 10px;
      font-size: 0.85rem;
      color: #92400e;
    }
    .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;
    }
    html[dir="rtl"] .manual-toc a { border-left: none; border-right: 3px solid transparent; }
    html[dir="rtl"] .manual-toc a.active { border-right-color: var(--indigo-600); }
