
    /* tokens, reset, i18n visibility, #bg-canvas: see /g-column/shared/tokens.css and /g-column/shared/base.css */
    html { font-size: 17px; }
    body {
      font-family: 'Outfit', sans-serif;
      background: #0A1F1C;
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── GATE ── */
    #gate-overlay {
      position: fixed; inset: 0; z-index: 9999;
      background: linear-gradient(145deg, #0F2826 0%, #1A5C55 50%, #0F2826 100%);
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; padding: 2rem; overflow-y: auto;
    }
    #gate-overlay.hidden { display: none; }
    .gate-box {
      background: rgba(255,255,255,0.07); border: 1px solid rgba(126,234,229,0.25);
      border-radius: 24px; padding: 2.5rem 2rem;
      max-width: 420px; width: 100%; text-align: center;
      backdrop-filter: blur(12px);
    }
    .gate-logo { width: 72px; margin: 0 auto 1rem; border-radius: 14px; overflow: hidden; }
    .gate-logo img { width: 100%; display: block; }
    .gate-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: #7EEAE5; margin-bottom: 0.25rem; }
    .gate-sub { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin-bottom: 1.4rem; }
    .gate-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.4rem; }
    .gate-feat { background: rgba(58,168,157,0.12); border: 1px solid rgba(58,168,157,0.2); border-radius: 8px; padding: 0.55rem 0.7rem; font-size: 0.85rem; color: rgba(255,255,255,0.8); text-align: left; }
    .gate-feat strong { color: #7EEAE5; display: block; font-size: 0.9rem; }
    .gate-qr { width: 130px; height: 130px; margin: 0 auto 0.8rem; background: #fff; border-radius: 10px; padding: 7px; }
    .gate-qr img { width: 100%; border-radius: 5px; }
    .gate-qr-label { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 1.2rem; }
    hr.gdiv { border: none; border-top: 1px solid rgba(255,255,255,0.13); margin: 1rem 0; }
    .gate-lbl { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 0.5rem; text-align: left; }
    .gate-input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid rgba(126,234,229,0.28); border-radius: 8px; background: rgba(255,255,255,0.08); color: #fff; font-size: 1rem; font-family: 'Outfit', sans-serif; outline: none; margin-bottom: 0.75rem; transition: border-color .2s; }
    .gate-input:focus { border-color: #7EEAE5; }
    .gate-input::placeholder { color: rgba(255,255,255,0.3); }
    .gate-btn { width: 100%; padding: 0.85rem; background: var(--teal); color: #fff; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; font-family: 'Outfit', sans-serif; transition: background .2s; }
    .gate-btn:hover { background: var(--teal-d); }
    .gate-error { color: #ff8a80; font-size: 0.88rem; margin-top: 0.5rem; display: none; }
    .gate-error.show { display: block; }

    /* ── TOPBAR ── */
    #topbar { position: sticky; top: 0; z-index: 100; background: rgba(10,31,28,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0.65rem 1.3rem; display: flex; align-items: center; gap: 0.8rem; }
    .topbar-logo { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
    .topbar-logo img { width: 100%; display: block; }
    .topbar-brand { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: #7EEAE5; flex: 1; }
    .lang-btn { background: rgba(45,223,200,.15); border: 1px solid rgba(45,223,200,.25); border-radius: 6px; padding: 0.32rem 0.7rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: #7EEAE5; transition: background .2s; }
    .lang-btn:hover { background: rgba(45,223,200,.25); }
    .lang-btn.active { background: var(--teal); color: #0A1F1C; font-weight: 700; }

    /* ── HERO ── */
    .hero { background: linear-gradient(135deg, var(--teal-xd), var(--teal-d) 60%, var(--teal)); padding: 2.4rem 1.5rem 2.1rem; text-align: center; color: #fff; }
    .hero-logo { width: 62px; height: 62px; border-radius: 14px; overflow: hidden; margin: 0 auto 0.9rem; }
    .hero-logo img { width: 100%; display: block; }
    .hero h1 { font-family: 'Playfair Display', serif; font-size: 2.1rem; font-weight: 700; color: #7EEAE5; margin-bottom: 0.45rem; }
    .hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

    /* ── TOP NAV ── */
    .top-nav-wrap { background: rgba(10,31,28,0.75); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); overflow: hidden; }
    .top-nav { display: flex; align-items: center; gap: 0; max-width: 1140px; margin: 0 auto; padding: 0 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .top-nav::-webkit-scrollbar { display: none; }
    .top-nav-btn { padding: 0.82rem 1.1rem; font-size: 0.92rem; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--text3); border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: 'Outfit', sans-serif; transition: all .18s; white-space: nowrap; letter-spacing: 0.01em; flex-shrink: 0; }
    .top-nav-btn:hover { color: var(--teal-d); }
    .top-nav-btn.active { color: #7EEAE5; border-bottom-color: #3AA89D; }
    .nav-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; flex-shrink: 0; margin-right: 0.4rem; }
    .nav-brand { font-family: 'Playfair Display', serif; font-size: 0.9rem; font-weight: 700; color: #7EEAE5; white-space: nowrap; padding-right: 0.6rem; flex-shrink: 0; }

    /* ── SUBJECT NAV ── */
    /* ── SUBJECT DROPDOWN SELECTOR ── */
    .subj-selector-bar {
      position: sticky; top: var(--safe-top); z-index: 90;
      background: rgba(10,26,23,0.96);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(14px);
      padding: 0.7rem 1.3rem;
      display: flex; align-items: center; gap: 1rem;
    }
    .subj-dropdown-wrap { position: relative; flex: 0 0 auto; }
    .subj-dropdown-btn {
      display: inline-flex; align-items: center; gap: 0.6rem;
      padding: 0.55rem 1rem 0.55rem 0.9rem;
      background: rgba(19,45,41,0.9);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      color: var(--text2);
      font-family: 'Outfit', sans-serif;
      font-size: 0.9rem; font-weight: 600;
      cursor: pointer;
      transition: all .18s;
      min-width: 200px;
      white-space: nowrap;
    }
    .subj-dropdown-btn:hover { border-color: #3AA89D; color: #7EEAE5; }
    .subj-dropdown-btn.open { border-color: var(--teal); color: #7EEAE5; background: rgba(45,223,200,.08); }
    .subj-dropdown-btn .sdb-icon { font-size: 1rem; }
    .subj-dropdown-btn .sdb-text { flex: 1; text-align: left; }
    .subj-dropdown-btn .sdb-arrow {
      font-size: 0.65rem; opacity: 0.6;
      transition: transform .2s;
      margin-left: 0.2rem;
    }
    .subj-dropdown-btn.open .sdb-arrow { transform: rotate(180deg); }
    /* Dropdown panel */
    .subj-dropdown-panel {
      position: absolute; top: calc(100% + 8px); left: 0;
      min-width: 580px;
      background: rgba(12,30,27,0.98);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(45,223,200,.06);
      backdrop-filter: blur(20px);
      padding: 1rem;
      display: none;
      z-index: 200;
      animation: dropIn .18s ease;
    }
    @keyframes dropIn {
      from { opacity:0; transform: translateY(-6px); }
      to   { opacity:1; transform: translateY(0); }
    }
    .subj-dropdown-panel.open { display: block; }
    .sdp-group { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.35rem 0; }
    .sdp-group:not(:last-child) { border-bottom: 1px solid rgba(30,74,67,.5); padding-bottom: 0.6rem; margin-bottom: 0.1rem; }
    .sdp-group-label {
      font-size: 0.68rem; font-weight: 700; color: var(--text3);
      text-transform: uppercase; letter-spacing: 0.08em;
      width: 44px; flex-shrink: 0; padding-top: 0.42rem; text-align: right;
    }
    .sdp-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1; }
    .sdp-pill {
      display: inline-flex; align-items: center; gap: 0.28rem;
      padding: 0.32rem 0.75rem;
      border-radius: 7px;
      border: 1px solid var(--border);
      background: rgba(19,45,41,0.7);
      color: var(--text2);
      font-size: 0.82rem; font-weight: 500;
      cursor: pointer; white-space: nowrap;
      transition: all .13s;
      font-family: 'Outfit', sans-serif;
    }
    .sdp-pill:hover {
      border-color: #3AA89D; color: #7EEAE5;
      background: rgba(45,223,200,.1);
      transform: translateY(-1px);
    }
    .sdp-pill.active {
      background: var(--teal); color: #0A1F1C;
      border-color: var(--teal); font-weight: 700;
      box-shadow: 0 0 10px rgba(58,168,157,.35);
    }
    /* Selected subject chip in the bar */
    .subj-active-chip {
      display: inline-flex; align-items: center; gap: 0.5rem;
      padding: 0.4rem 0.9rem;
      background: rgba(45,223,200,.12);
      border: 1px solid rgba(45,223,200,.3);
      border-radius: 99px;
      font-size: 0.88rem; font-weight: 600; color: #7EEAE5;
      white-space: nowrap;
    }
    .subj-active-chip .chip-score {
      font-size: 0.75rem; color: var(--text3); font-weight: 400;
    }
    .subj-bar-hint {
      font-size: 0.82rem; color: var(--text3);
      flex: 1;
    }
    @media (max-width: 700px) {
      .subj-dropdown-panel { min-width: calc(100vw - 2.6rem); left: 0; right: 0; }
      .subj-dropdown-btn { min-width: 160px; }
      .sdp-group-label { display: none; }
      .subj-selector-bar { padding: 0.6rem 1rem; }
    }

    /* ── LAYOUT ── */
    .main-wrap { max-width: 1140px; margin: 0 auto; padding: 1.5rem 1.3rem; display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; }
    @media (max-width: 820px) { .main-wrap { grid-template-columns: 1fr; } }

    /* ── CALC PANEL ── */
    .calc-panel { display: flex; flex-direction: column; gap: 1.2rem; }

    .section-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 24px rgba(0,0,0,.3); }
    .section-header { background: linear-gradient(90deg, var(--teal-xd), var(--teal-d)); color: #fff; padding: 0.85rem 1.2rem; display: flex; align-items: center; gap: 0.65rem; }
    .section-header .sh-icon { font-size: 1.15rem; }
    .section-header .sh-title { font-weight: 700; font-size: 1.02rem; }
    .section-header .sh-sub { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-left: auto; }

    /* MCQ */
    .mcq-slider-wrap { padding: 1.2rem 1.3rem 0.5rem; background: var(--card); }
    .mcq-slider-label { font-size: 0.92rem; color: var(--text2); margin-bottom: 0.85rem; font-weight: 500; }
    .mcq-slider-row { display: flex; align-items: flex-start; gap: 1rem; }
    .mcq-slider-track-wrap { flex: 1; min-width: 0; }
    .mcq-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; cursor: pointer; display: block; outline: none; }
    .mcq-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); cursor: pointer; }
    .mcq-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: none; cursor: pointer; }
    .mcq-ticks { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text3); margin-top: 0.4rem; padding: 0 9px; }
    .mcq-correct-input { width: 68px; text-align: center; padding: 0.45rem 0.35rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 1.1rem; font-weight: 700; font-family: 'Outfit', sans-serif; color: #7EEAE5; background: rgba(0,0,0,.2); outline: none; transition: border-color .15s; }
    .mcq-correct-input:focus { border-color: #3AA89D; box-shadow: 0 0 0 3px rgba(58,168,157,.2); }
    .mcq-summary-row { background: rgba(0,0,0,.2); padding: 0.8rem 1.3rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
    .mcq-summary-label { font-size: 0.9rem; color: var(--text2); font-weight: 500; }
    .mcq-summary-val { font-size: 1.05rem; font-weight: 700; color: #7EEAE5; }

    /* FRQ */
    .qs-list { padding: 0.3rem 0; }
    .q-row { display: grid; grid-template-columns: 38px 1fr auto 100px 70px; align-items: center; gap: 0.6rem 0.9rem; padding: 0.72rem 1.3rem; border-bottom: 1px solid var(--bg2); transition: background .15s; }
    .q-row:last-child { border-bottom: none; }
    .q-row:hover { background: rgba(45,223,200,.05); }
    .q-num { width: 34px; height: 34px; border-radius: 50%; background: rgba(45,223,200,.12); color: #7EEAE5; border: 1px solid rgba(45,223,200,.25); font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
    .q-num.correct { background: var(--teal); color: #fff; }
    .q-label { font-size: 0.9rem; color: var(--text2); line-height: 1.35; }
    .q-pts { font-size: 0.82rem; color: var(--text3); white-space: nowrap; text-align: right; }
    .q-slider { width: 100%; accent-color: var(--teal); cursor: pointer; }
    .q-val-input { width: 68px; text-align: center; padding: 0.38rem 0.3rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 1rem; font-weight: 600; font-family: 'Outfit', sans-serif; color: #7EEAE5; background: rgba(0,0,0,.2); outline: none; transition: border-color .15s; }
    .q-val-input:focus { border-color: #3AA89D; box-shadow: 0 0 0 3px rgba(58,168,157,.2); }
    .frq-summary-row { background: rgba(0,0,0,.2); padding: 0.8rem 1.3rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
    .frq-summary-label { font-size: 0.9rem; color: var(--text2); font-weight: 500; }
    .frq-summary-val { font-size: 1.05rem; font-weight: 700; color: #7EEAE5; }

    /* ══ SCORE PANEL ══ */
    .score-panel { position: sticky; top: var(--sticky-selector-offset); height: fit-content; display: flex; flex-direction: column; gap: 1.2rem; }
    @media (max-width: 820px) { .score-panel { position: static; } }

    /* Main AP score card */
    .score-card {
      background: linear-gradient(155deg, #0d3d38 0%, #1A5C55 45%, #267D74 100%);
      border-radius: 20px; overflow: hidden;
      box-shadow: 0 6px 32px rgba(26,92,85,.28);
    }
    .sc-top { padding: 1.6rem 1.6rem 1.2rem; text-align: center; }
    .sc-subject-name { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 0.15rem; letter-spacing: 0.03em; }
    .sc-ap-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }

    .sc-score-ring {
      position: relative; width: 150px; height: 150px; margin: 0 auto 1rem;
    }
    .sc-ring-svg { width: 150px; height: 150px; transform: rotate(-90deg); }
    .sc-ring-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 10; }
    .sc-ring-fill { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s ease; filter: drop-shadow(0 0 8px rgba(45,223,200,.5)); }
    .sc-score-inner {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
    }
    .sc-big-score { font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 900; color: #7EEAE5; line-height: 1; }
    .sc-score-sub { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.1rem; }

    .sc-grade-badge {
      display: inline-block; padding: 0.4rem 1.2rem; border-radius: 99px;
      font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem;
      transition: all .3s;
    }
    .grade-5 { background: rgba(52,211,153,0.22); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.35); }
    .grade-4 { background: rgba(96,165,250,0.22); color: #93c5fd; border: 1px solid rgba(96,165,250,0.35); }
    .grade-3 { background: rgba(251,191,36,0.22); color: #fcd34d; border: 1px solid rgba(251,191,36,0.35); }
    .grade-2 { background: rgba(251,146,60,0.22); color: #fdba74; border: 1px solid rgba(251,146,60,0.35); }
    .grade-1 { background: rgba(248,113,113,0.22); color: #fca5a5; border: 1px solid rgba(248,113,113,0.35); }

    .sc-composite-text { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }

    /* Cut score breakdown inside card */
    .sc-cuts-section { background: rgba(0,0,0,0.18); padding: 1.1rem 1.4rem; }
    .sc-cuts-title { font-size: 0.78rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem; }

    .sc-cut-row {
      display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.65rem;
    }
    .sc-cut-row:last-child { margin-bottom: 0; }
    .sc-cut-badge {
      width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; font-weight: 900; transition: all .3s;
      background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35);
      border: 1.5px solid rgba(255,255,255,0.1);
    }
    .sc-cut-badge.reached { background: rgba(126,234,229,0.15); color: #7EEAE5; border-color: rgba(126,234,229,0.4); }
    .sc-cut-badge.current { background: #7EEAE5; color: #0F2826; box-shadow: 0 0 14px rgba(126,234,229,0.5); }
    .sc-cut-info { flex: 1; }
    .sc-cut-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
    .sc-cut-label.reached { color: rgba(255,255,255,0.78); }
    .sc-cut-label.current { color: #7EEAE5; font-weight: 600; }
    .sc-cut-need { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 0.05rem; }
    .sc-cut-need.reached { color: rgba(126,234,229,0.6); }
    .sc-cut-progress { width: 80px; }
    .sc-cut-prog-track { height: 5px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
    .sc-cut-prog-fill { height: 100%; background: rgba(126,234,229,0.5); border-radius: 99px; transition: width .4s ease; }
    .sc-cut-prog-fill.full { background: #7EEAE5; }

    /* Breakdown card */
    .breakdown-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 24px rgba(0,0,0,.3); }
    .breakdown-header { background: rgba(0,0,0,.2); padding: 0.75rem 1.1rem; font-size: 0.88rem; font-weight: 700; color: var(--text2); border-bottom: 1px solid var(--border); }
    .breakdown-row { display: flex; justify-content: space-between; align-items: center; padding: 0.72rem 1.1rem; border-bottom: 1px solid rgba(30,74,67,.5); }
    .breakdown-row:last-child { border-bottom: none; }
    .br-label { font-size: 0.88rem; color: var(--text2); }
    .br-right { display: flex; align-items: center; gap: 0.8rem; }
    .br-val { font-size: 0.95rem; font-weight: 700; color: var(--text); min-width: 60px; text-align: right; }
    .br-bar { width: 70px; height: 6px; background: rgba(45,223,200,.15); border-radius: 99px; overflow: hidden; }
    .br-bar-fill { height: 100%; background: var(--teal); border-radius: 99px; transition: width .35s; }

    /* ── ABOUT BRAND HEADER ── */
    .about-brand-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; padding: 1.1rem 1.3rem; background: rgba(45,223,200,.06); border: 1px solid rgba(45,223,200,.15); border-radius: 14px; }
    .about-logo { width: 60px; height: 60px; border-radius: 12px; object-fit: contain; flex-shrink: 0; background: rgba(255,255,255,.04); }

    /* ── INTRO ── */
    .intro-wrap { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.3rem; }
    .intro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1.1rem; margin: 1.3rem 0; }
    .intro-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem; box-shadow: 0 2px 24px rgba(0,0,0,.3); transition: transform .2s, box-shadow .2s; }
    .intro-card:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(0,0,0,.4), 0 0 20px rgba(45,223,200,.08); }
    .intro-card-icon { font-size: 1.9rem; margin-bottom: 0.55rem; }
    .intro-card-title { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.38rem; }
    .intro-card-desc { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
    .cta-strip { background: linear-gradient(135deg, var(--teal-xd), var(--teal-d)); border-radius: var(--r); padding: 1.9rem; display: flex; align-items: center; gap: 1.5rem; color: #fff; flex-wrap: wrap; }
    .cta-qr { width: 92px; height: 92px; background: #fff; border-radius: 10px; padding: 6px; flex-shrink: 0; }
    .cta-qr img { width: 100%; border-radius: 5px; }
    .cta-text h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #7EEAE5; margin-bottom: 0.3rem; }
    .cta-text p { font-size: 0.9rem; color: rgba(255,255,255,0.73); }

    /* ── GUIDE ── */
    .guide-wrap { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.3rem; }
    .score-legend { display: grid; grid-template-columns: repeat(5,1fr); gap: 0.55rem; margin: 1rem 0 1.5rem; }
    .legend-item { text-align: center; border-radius: 10px; padding: 0.85rem 0.3rem; }
    .legend-item .l-score { font-size: 1.7rem; font-weight: 900; }
    .legend-item .l-label { font-size: 0.75rem; margin-top: 0.15rem; }
    .l5{background:#d4edda;color:#155724} .l4{background:#d1ecf1;color:#0c5460}
    .l3{background:#fff3cd;color:#856404} .l2{background:#ffe5d0;color:#7b3f00}
    .l1{background:#f8d7da;color:#721c24}
    .guide-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.1rem; box-shadow: 0 2px 24px rgba(0,0,0,.3); }

    /* ── FAQ (評分說明頁底部) ── */
    .faq-section-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--teal);
      margin: 1.3rem 0 0.7rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
      letter-spacing: 0.02em;
    }
    .faq-section-title:first-child {
      margin-top: 0;
    }
    .faq-item {
      border: 1px solid var(--border);
      border-radius: 8px;
      margin-bottom: 0.6rem;
      background: rgba(15, 41, 37, 0.4);
      transition: border-color .2s, background .2s;
    }
    .faq-item[open] {
      border-color: var(--teal-d);
      background: rgba(26, 61, 56, 0.55);
    }
    .faq-item summary {
      padding: 0.85rem 1rem;
      cursor: pointer;
      font-size: 0.93rem;
      font-weight: 600;
      color: var(--text);
      list-style: none;
      position: relative;
      padding-right: 2.4rem;
      line-height: 1.5;
      user-select: none;
    }
    .faq-item summary::-webkit-details-marker {
      display: none;
    }
    .faq-item summary::after {
      content: '+';
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.2rem;
      font-weight: 400;
      color: var(--teal);
      transition: transform .25s;
    }
    .faq-item[open] summary::after {
      content: '−';
      transform: translateY(-50%) rotate(0deg);
    }
    .faq-item summary:hover {
      color: var(--teal);
    }
    .faq-answer {
      padding: 0.4rem 1rem 1rem;
      font-size: 0.88rem;
      color: var(--text2);
      line-height: 1.75;
      border-top: 1px solid var(--border);
      margin-top: 0.3rem;
      padding-top: 0.9rem;
    }
    @media (max-width: 640px) {
      .faq-item summary {
        font-size: 0.9rem;
        padding: 0.75rem 0.9rem;
        padding-right: 2.2rem;
      }
      .faq-answer {
        font-size: 0.85rem;
        padding: 0.8rem 0.9rem 0.9rem;
      }
    }

    .page { display: none; } .page.active { display: block; }
    .disclaimer { text-align: center; font-size: 0.8rem; color: var(--text3); padding: 1.5rem; border-top: 1px solid var(--border); margin-top: 1.5rem; opacity: 0.7; }
    .watermark { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-20deg); pointer-events: none; z-index: 0; opacity: .04; width: 55vw; max-width: 440px; }

    /* ── FLOATING LINE BUTTON ── */
    #line-fab {
      position: fixed;
      bottom: 28px;
      right: 22px;
      z-index: 1000;
      display: flex;
      align-items: center;
      gap: 0.55rem;
      background: linear-gradient(135deg, #06C755 0%, #00A844 100%);
      color: #fff;
      font-family: 'Outfit', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      padding: 0.72rem 1.25rem 0.72rem 1rem;
      border-radius: 99px;
      text-decoration: none;
      box-shadow: 0 4px 20px rgba(6,199,85,.45), 0 2px 8px rgba(0,0,0,.3);
      transition: transform .2s ease, box-shadow .2s ease;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    #line-fab:hover {
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 8px 28px rgba(6,199,85,.55), 0 4px 12px rgba(0,0,0,.35);
    }
    #line-fab:active {
      transform: translateY(-1px) scale(0.99);
    }
    .line-fab-icon {
      width: 26px; height: 26px; flex-shrink: 0;
      background: #fff;
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }
    .line-fab-icon svg { width: 20px; height: 20px; }
    .line-fab-text-zh { display: inline; }
    .line-fab-text-en { display: none; }
    body.en-mode .line-fab-text-zh { display: none; }
    body.en-mode .line-fab-text-en { display: inline; }

    /* Pulse ring animation */
    @keyframes fab-pulse {
      0%   { box-shadow: 0 4px 20px rgba(6,199,85,.45), 0 0 0 0 rgba(6,199,85,.5); }
      60%  { box-shadow: 0 4px 20px rgba(6,199,85,.35), 0 0 0 14px rgba(6,199,85,0); }
      100% { box-shadow: 0 4px 20px rgba(6,199,85,.45), 0 0 0 0 rgba(6,199,85,0); }
    }
    #line-fab { animation: fab-pulse 2.8s ease infinite; }
    #line-fab:hover { animation: none; }

    @media (max-width: 480px) {
      #line-fab { bottom: 20px; right: 16px; font-size: 0.88rem; padding: 0.65rem 1rem 0.65rem 0.85rem; }
    }

    @media (max-width: 600px) {
      .q-row { grid-template-columns: 38px 1fr auto; grid-template-rows: auto auto; row-gap: 0.35rem; padding: 0.65rem 1rem; }
      .q-row .q-slider { display: block; grid-column: 1 / -1; grid-row: 2; margin: 0; }
      .q-row .q-val-input { display: none; }
    }
    @media (max-width: 480px) {
      .nav-brand { display: none; }
      .top-nav-btn { padding: 0.75rem 0.8rem; font-size: 0.83rem; }
    }
  
