:root {
      --navy: #0C2340;
      --navy-dark: #07162A;
      --slate-blue: #1D3E6E;
      --teal: #005C5C;
      --teal-bright: #0E8A8A;
      --teal-soft: #E6F4F4;
      --blue-soft: #EBF3FA;
      --bg: #F4F7FA;
      --card: #FFFFFF;
      --text: #1A2433;
      --muted: #526277;
      --border: #D9E2EC;
      --green: #0F7B4D;
      --green-bg: #E7F6EE;
      --amber: #B25E09;
      --amber-bg: #FEF3E2;
      --red: #B42318;
      --red-bg: #FEECEB;
      --purple: #5925DC;
      --purple-bg: #F4F0FF;
      /* AL Central Team Accents */
      --cle: #E31937;
      --chw: #27251F;
      --min: #002B5C;
      --det: #FA4616;
      --kcr: #004687;
      --shadow: 0 4px 18px rgba(12, 35, 64, 0.06);
      --radius: 14px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body {
      margin: 0;
      font-family: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      font-size: 16px;
    }
    .num, td, th { font-variant-numeric: tabular-nums; }
    .container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

    /* Hero Banner */
    .hero {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #09172E 0%, #102D52 48%, #1E4468 80%, #264B5E 100%);
      color: #FFFFFF;
      padding: 40px 20px 36px;
    }
    .hero-bg-svg {
      position: absolute; right: -36px; top: -28px; width: 340px; height: 340px; opacity: 0.1; pointer-events: none;
    }
    .hero .container { position: relative; z-index: 1; }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24);
      color: #E6F4F4; font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px;
      letter-spacing: 0.02em; margin-bottom: 14px;
    }
    .hero h1 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 35px); line-height: 1.28; font-weight: 800; letter-spacing: -0.01em; }
    .hero-subtitle { margin: 0 0 26px; font-size: clamp(15px, 2.1vw, 17px); color: rgba(255, 255, 255, 0.9); max-width: 860px; }
    .kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .kpi-card {
      background: rgba(255, 255, 255, 0.11); border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px; padding: 14px 16px; backdrop-filter: blur(6px);
    }
    .kpi-label { font-size: 12px; color: rgba(255, 255, 255, 0.8); margin-bottom: 4px; font-weight: 600; }
    .kpi-val { font-size: clamp(19px, 2.3vw, 24px); font-weight: 800; color: #FFFFFF; line-height: 1.22; margin-bottom: 4px; }
    .kpi-sub { font-size: 12px; color: #CBE8EB; line-height: 1.42; }

    /* Sticky Pill Nav */
    .sticky-nav {
      position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
    }
    .nav-inner {
      max-width: 1080px; margin: 0 auto; padding: 10px 16px;
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }
    .nav-links { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-pill {
      flex: 0 0 auto; text-decoration: none; color: var(--navy); background: var(--blue-soft);
      font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
      transition: background 0.18s, color 0.18s; white-space: nowrap;
    }
    .nav-pill:hover, .nav-pill:focus-visible { background: var(--navy); color: #FFFFFF; }
    .btn-print {
      flex: 0 0 auto; border: 1px solid var(--teal); background: var(--teal); color: #FFFFFF;
      font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer;
      white-space: nowrap; transition: background 0.18s;
    }
    .btn-print:hover { background: var(--navy); border-color: var(--navy); }

    /* Main Content */
    main { padding: 28px 0 56px; }
    section { margin-bottom: 36px; scroll-margin-top: 66px; }
    .section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
    .section-num {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 36px; height: 34px; padding: 0 9px; border-radius: 9px;
      background: var(--navy); color: #FFFFFF; font-size: 14px; font-weight: 800; flex-shrink: 0;
    }
    .section-num.cle { background: var(--cle); }
    .section-num.chw { background: var(--chw); }
    .section-num.min { background: var(--min); }
    .section-num.det { background: var(--det); }
    .section-num.kcr { background: var(--kcr); }
    .section-title { margin: 0; font-size: clamp(19px, 2.8vw, 24px); font-weight: 800; color: var(--navy); line-height: 1.32; }

    .card {
      background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px;
    }
    .team-shell { border-top: 4px solid var(--navy); }
    .team-shell.cle { border-top-color: var(--cle); }
    .team-shell.chw { border-top-color: var(--chw); }
    .team-shell.min { border-top-color: var(--min); }
    .team-shell.det { border-top-color: var(--det); }
    .team-shell.kcr { border-top-color: var(--kcr); }

    .card h3 { margin: 0 0 12px; font-size: 17.5px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .card h4 { margin: 16px 0 8px; font-size: 15.5px; font-weight: 700; color: var(--slate-blue); }
    p { margin: 0 0 12px; }
    p:last-child { margin-bottom: 0; }
    ul, ol { margin: 8px 0 12px; padding-left: 22px; }
    li { margin-bottom: 8px; }

    /* Executive Summary Grid (5 Teams) */
    .summary-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
    .summary-team-card {
      background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--navy);
      border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
      display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
      text-decoration: none; color: inherit; transition: transform 0.16s ease, box-shadow 0.16s ease;
    }
    .summary-team-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(12, 35, 64, 0.1); }
    .summary-team-card.cle { border-top-color: var(--cle); }
    .summary-team-card.chw { border-top-color: var(--chw); }
    .summary-team-card.min { border-top-color: var(--min); }
    .summary-team-card.det { border-top-color: var(--det); }
    .summary-team-card.kcr { border-top-color: var(--kcr); }
    .st-head { font-weight: 800; font-size: 16px; color: var(--navy); line-height: 1.35; white-space: nowrap; }
    .st-goal { font-size: 14px; font-weight: 700; color: var(--teal); line-height: 1.5; }

    /* 5-Year Evolution Strip */
    .evo-box { background: #F8FAFC; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
    .evo-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
    .evo-title { font-size: 14.5px; font-weight: 800; color: var(--navy); }
    .evo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
    .evo-yr { background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; text-align: center; }
    .evo-yr.is-po { border-color: #93C5FD; background: #F3F8FF; }
    .evo-yr.is-2026 { border-color: var(--navy); box-shadow: inset 0 0 0 1px rgba(12, 35, 64, 0.14); }
    .evo-y { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
    .evo-wl { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.25; }
    .evo-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

    /* Layer 1 Team Brief (2-col plain Mandarin summary) */
    .team-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
    .brief-box { background: #FAFCFE; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
    .brief-box.brief-2026 { border-left: 4px solid var(--navy); }
    .brief-box.brief-2027 { border-left: 4px solid var(--teal); }
    .brief-label { font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.01em; }
    .brief-box.brief-2027 .brief-label { color: var(--teal); }
    .brief-box p { font-size: 14.5px; line-height: 1.65; margin: 0; color: var(--text); }

    /* Badges & Callouts */
    .badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
    .badge-good { background: var(--green-bg); color: var(--green); }
    .badge-warn { background: var(--amber-bg); color: var(--amber); }
    .badge-bad { background: var(--red-bg); color: var(--red); }
    .badge-navy { background: var(--blue-soft); color: var(--navy); }
    .badge-purple { background: var(--purple-bg); color: var(--purple); }
    .badge-teal { background: var(--teal-soft); color: var(--teal); }
    .callout { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 13px 16px; border-radius: 0 10px 10px 0; margin: 14px 0; font-size: 14.5px; }
    .callout-navy { border-left-color: var(--navy); background: var(--blue-soft); }

    /* Tables */
    .table-hint { display: none; font-size: 12px; color: var(--muted); margin-bottom: 6px; text-align: right; }
    .table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 10px; margin: 12px 0; background: #FFFFFF; }
    table { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; }
    thead th { background: var(--navy); color: #FFFFFF; font-weight: 700; padding: 10px 11px; white-space: nowrap; font-size: 12.5px; }
    tbody td { padding: 9px 11px; border-top: 1px solid var(--border); vertical-align: middle; }
    tbody tr:nth-child(even) { background: #F8FAFC; }
    tbody tr.row-highlight { background: #FFF4F2; }
    tbody tr.row-teal { background: #EEF8F8; }

    /* Charts & Grids */
    .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
    .chart-box { background: #F9FBFD; border: 1px solid var(--border); border-radius: 12px; padding: 15px; }
    .chart-title { font-size: 14.5px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
    .split-bars { display: flex; flex-direction: column; gap: 10px; }
    .split-item-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
    .split-item-note { font-weight: 600; color: var(--muted); }
    .split-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .split-pill { padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
    .split-pill.p1 { background: var(--blue-soft); color: var(--navy); }
    .split-pill.p2-bad { background: var(--red-bg); color: var(--red); }
    .split-pill.p2-ok { background: var(--green-bg); color: var(--green); }
    .bar-row { display: grid; grid-template-columns: 76px 1fr 56px; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 13px; }
    .bar-row:last-child { margin-bottom: 0; }
    .bar-label { font-weight: 700; color: var(--navy); white-space: nowrap; }
    .bar-track { height: 13px; background: #E4ECF3; border-radius: 999px; overflow: hidden; }
    .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy) 0%, var(--teal-bright) 100%); }
    .bar-fill.fill-good { background: linear-gradient(90deg, #0E8A8A 0%, #14B8A6 100%); }
    .bar-fill.fill-bad { background: linear-gradient(90deg, #D92D20 0%, #F04438 100%); }
    .bar-val { font-weight: 700; text-align: right; color: var(--navy); }

    /* Split Panels inside Team Card Layer 2 */
    .team-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2px; }
    .panel-box { background: #FAFCFE; border: 1px solid var(--border); border-radius: 12px; padding: 15px 16px; }
    .panel-box h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--navy); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
    .panel-box ul { margin: 0; padding-left: 19px; font-size: 14px; }
    .panel-box li { margin-bottom: 8px; }
    .panel-box li:last-child { margin-bottom: 0; }

    /* 2027 Watch Players Block (Prospects vs Rebound) */
    .watch-block { margin-top: 14px; background: #F8FAFD; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
    .watch-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
    .watch-title { font-size: 14.5px; font-weight: 800; color: var(--navy); }
    .watch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .watch-col { background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
    .watch-col.is-prospect { border-top: 3px solid var(--teal); }
    .watch-col.is-rebound { border-top: 3px solid var(--amber); }
    .watch-col h5 { margin: 0 0 9px; font-size: 13.5px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 6px; }
    .watch-list { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
    .watch-list li { margin-bottom: 8px; }
    .watch-list li:last-child { margin-bottom: 0; }

    /* Interactive Control Bar & Filter Tabs */
    .control-bar {
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
      margin: 0 0 20px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border);
      border-radius: var(--radius); box-shadow: var(--shadow);
    }
    .control-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
    .view-tabs { display: inline-flex; background: #E8EEF5; padding: 4px; border-radius: 999px; gap: 4px; }
    .view-tab-btn { border: none; background: transparent; color: var(--navy); font-family: inherit; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all 0.18s; }
    .view-tab-btn.active { background: #FFFFFF; box-shadow: 0 2px 6px rgba(12, 35, 64, 0.12); }
    .btn-toggle-all {
      border: 1px solid var(--navy); background: #FFFFFF; color: var(--navy); font-family: inherit;
      font-size: 13px; font-weight: 700; padding: 7px 15px; border-radius: 999px; cursor: pointer;
      transition: background 0.18s, color 0.18s; white-space: nowrap;
    }
    .btn-toggle-all:hover { background: var(--blue-soft); }
    .btn-toggle-all[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }

    /* Progressive Disclosure Drawers */
    details.data-drawer {
      background: #FAFCFF;
      border: 1px solid var(--border);
      border-radius: 12px;
      margin: 14px 0 0;
      overflow: hidden;
    }
    details.data-drawer summary {
      list-style: none;
      cursor: pointer;
      padding: 13px 16px;
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
      background: #F1F5F9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      user-select: none;
      transition: background 0.16s;
    }
    details.data-drawer summary::-webkit-details-marker { display: none; }
    details.data-drawer summary:hover { background: #E6EEF7; }
    details.data-drawer[open] > summary {
      border-bottom: 1px solid var(--border);
      background: #EAF0F6;
    }
    .drawer-pill {
      flex: 0 0 auto;
      font-size: 12px;
      font-weight: 700;
      color: var(--navy);
      background: #FFFFFF;
      border: 1px solid #CBD5E1;
      border-radius: 999px;
      padding: 2px 10px;
      line-height: 1.5;
    }
    .drawer-pill::after { content: "展開"; }
    details.data-drawer[open] .drawer-pill::after { content: "收合"; }
    .drawer-body {
      padding: 14px 16px 16px;
      background: #FFFFFF;
    }
    .drawer-body > :first-child { margin-top: 0; }
    .drawer-body > :last-child { margin-bottom: 0; }

    /* Inline Glossary Tooltips */
    abbr.term {
      text-decoration: underline dotted rgba(29, 62, 110, 0.55);
      text-underline-offset: 3px;
      text-decoration-thickness: 1.5px;
      cursor: help;
      border-bottom: 0;
      font-style: normal;
      border-radius: 3px;
      transition: background 0.15s;
    }
    abbr.term:hover, abbr.term:focus-visible {
      background: rgba(29, 62, 110, 0.09);
      outline: none;
    }
    .hero abbr.term { text-decoration-color: rgba(255, 255, 255, 0.65); }
    .hero abbr.term:hover, .hero abbr.term:focus-visible { background: rgba(255, 255, 255, 0.16); }
    thead abbr.term { text-decoration-color: rgba(255, 255, 255, 0.6); }
    thead abbr.term:hover, thead abbr.term:focus-visible { background: rgba(255, 255, 255, 0.16); }
    .term-popover {
      position: fixed;
      z-index: 200;
      max-width: 300px;
      background: var(--navy-dark);
      color: #F8FAFC;
      font-size: 13px;
      line-height: 1.55;
      padding: 10px 13px;
      border-radius: 10px;
      box-shadow: 0 10px 28px rgba(6, 18, 36, 0.28);
      border: 1px solid rgba(255, 255, 255, 0.14);
      pointer-events: none;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.14s ease, transform 0.14s ease;
    }
    .term-popover.visible { opacity: 1; transform: translateY(0); }
    .term-popover-title {
      display: block;
      font-weight: 800;
      color: #FBBF24;
      font-size: 12.5px;
      margin-bottom: 3px;
    }

    /* X-Factors & Footer */
    .xfactor-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .xfactor-item { display: flex; gap: 12px; align-items: flex-start; background: #F8FAFC; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
    .xfactor-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #FFFFFF; font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
    .footer { text-align: center; font-size: 13px; color: var(--muted); padding: 20px 16px 36px; border-top: 1px solid var(--border); background: #FFFFFF; }

    @media (max-width: 960px) { .summary-grid-5 { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 820px) {
      .kpi-grid { grid-template-columns: repeat(2, 1fr); }
      .two-col, .team-brief, .team-split, .watch-grid { grid-template-columns: 1fr; }
      .evo-grid { grid-template-columns: repeat(3, 1fr); }
      .table-hint { display: block; }
    }
    @media (max-width: 520px) {
      .hero { padding: 28px 14px 24px; }
      .summary-grid-5, .evo-grid, .split-dual { grid-template-columns: 1fr; }
      .card { padding: 16px; }
    }
    @media print {
      @page { size: A4; margin: 13mm 11mm; }
      body { background: #FFFFFF; font-size: 10.5pt; line-height: 1.48; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      .sticky-nav, .btn-print, .view-tabs, .btn-toggle-all, .control-bar, .table-hint, .term-popover, .drawer-pill { display: none !important; }
      abbr.term { text-decoration: none; }
      details.data-drawer { border: 1px solid #CBD5E1; break-inside: auto; }
      .hero { padding: 18px; border-radius: 10px; margin-bottom: 12px; }
      .container { max-width: 100%; padding: 0; }
      main { padding: 6px 0 18px; }
      .card, .summary-team-card, .evo-box, .panel-box, .brief-box, .watch-block, .watch-col, .chart-box, .callout, .xfactor-item { box-shadow: none !important; break-inside: avoid; }
      .table-wrap { overflow: visible !important; }
      table { font-size: 9pt; }
      thead th, tbody td { padding: 5px 6px; }
      tr { break-inside: avoid; }
      .kpi-grid { grid-template-columns: repeat(4, 1fr); }
      .col-2026, .col-2027, .watch-block, .brief-2026, .brief-2027 { display: block !important; }
      .team-brief, .team-split { grid-template-columns: 1fr 1fr !important; }
    }
