/* SEO additions */
img[width]{width:auto;max-width:100%}
.skip-link{position:absolute;left:-9999px;top:8px;background:#fff;color:#000;padding:8px 12px;border-radius:6px;z-index:1000;font-weight:700}
.skip-link:focus{left:8px}
a:focus-visible,button:focus-visible,.tab:focus-visible,.chip:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tab,.stage-badge{text-decoration:none;display:inline-block}
.tab[aria-current="page"]{pointer-events:auto}
main.tab-content{display:block}
:root {
    --red: #CF2030;
    --dark: #0a0a0a;
    --card: #141414;
    --card2: #1a1a1a;
    --border: #CF2030;
    --text: #f0f0f0;
    --muted: #aaa;
    --accent: #ff4d5e;
    --green: #2ecc71;
    --yellow: #f1c40f;
    --blue: #4a90f7;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: var(--dark); color: var(--text); font-family: 'Segoe UI', sans-serif; min-height: 100vh; }
  a.hbtn, a.modal-btn, .tab { text-decoration: none; }

  /* HEADER */
  header {
    background: #0d0d0d;
    border-bottom: 2px solid var(--red);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky; top: 0; z-index: 100;
  }
  header img { height: 38px; }
  .header-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .hbtn {
    padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
    cursor: pointer; border: none; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  }
  .hbtn-red { background: var(--red); color: #fff; }
  .hbtn-red:hover { background: #a81a28; }
  .hbtn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
  .hbtn-outline:hover { background: var(--red); color: #fff; }
  .hbtn-dark { background: #222; color: #fff; border: 1.5px solid #444; }
  .hbtn-dark:hover { background: #333; }
  .stage-badge {
    background: var(--red); color: #fff; padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700; cursor: pointer; letter-spacing: 1px;
  }

  /* TABS */
  .tabs { display: flex; background: #0d0d0d; border-bottom: 2px solid var(--red); overflow-x: auto; }
  .tab {
    padding: 13px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
    white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent;
    transition: all .2s;
  }
  .tab:hover { color: var(--text); }
  .tab.active { color: var(--red); border-bottom-color: var(--red); background: #111; }

  /* CONTENT */
  .tab-content { display: none; padding: 28px 24px; max-width: 1200px; margin: 0 auto; }
  .tab-content.active { display: block; }

  /* CARDS */
  .card {
    background: var(--card); border: 1px solid #2a2a2a; border-radius: 10px;
    padding: 20px; margin-bottom: 20px;
  }
  .card-red { border-left: 4px solid var(--red); }
  .card h2 { color: var(--red); font-size: 18px; margin-bottom: 10px; }
  .card h3 { color: var(--text); font-size: 15px; margin-bottom: 8px; }
  .card p { color: #ccc; font-size: 14px; line-height: 1.7; }
  .card ul { color: #ccc; font-size: 14px; line-height: 1.9; padding-left: 18px; }

  /* GRID */
  .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
  .grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

  /* RESOURCE CARDS */
  .resource-card {
    background: var(--card2); border: 1px solid #2a2a2a; border-radius: 12px;
    padding: 20px; cursor: pointer; transition: all .25s;
    display: flex; flex-direction: column; gap: 10px;
    border-top: 3px solid var(--red);
  }
  .resource-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(207,32,48,.25); }
  .resource-card .rc-icon { font-size: 28px; }
  .resource-card .rc-type { font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
  .resource-card .rc-title { font-size: 14px; font-weight: 700; color: var(--text); }
  .resource-card .rc-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
  .rc-badge { background: #1e1e1e; color: var(--red); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; display: inline-block; width: fit-content; }
  .rc-code { font-family: 'Consolas', monospace; font-size: 10.5px; color: var(--muted); letter-spacing: .5px; }

  /* STEP CARDS */
  .step-card {
    background: var(--card2); border: 1px solid #2a2a2a; border-radius: 10px;
    padding: 18px; display: flex; gap: 16px; align-items: flex-start;
  }
  .step-num {
    background: var(--red); color: #fff; border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
  }
  .step-card h4 { color: var(--red); font-size: 14px; margin-bottom: 5px; }
  .step-card p { color: #bbb; font-size: 13px; line-height: 1.6; }

  /* STAGE DIAGRAM */
  .stage-diagram { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin: 20px 0; }
  .stage-box {
    padding: 16px 22px; border-radius: 10px; text-align: center; min-width: 160px;
    border: 2px solid #333; background: #181818; flex: 1; max-width: 220px;
  }
  .stage-box.active-stage { border-color: var(--red); background: #1e0a0c; box-shadow: 0 0 20px rgba(207,32,48,.3); }
  .stage-box .s-num { font-size: 22px; font-weight: 800; color: var(--red); }
  .stage-box .s-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
  .stage-box .s-name { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 5px; }
  .stage-arrow { color: var(--red); font-size: 22px; padding: 0 6px; }

  /* CHALLENGE BADGES */
  .challenge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
  .challenge-item {
    background: #181818; border: 1px solid #2a2a2a; border-radius: 8px;
    padding: 14px; text-align: center;
  }
  .challenge-item .ci-num { font-size: 28px; font-weight: 800; color: var(--red); }
  .challenge-item .ci-label { font-size: 12px; color: #bbb; margin-top: 4px; line-height: 1.4; }

  /* QUADRANT / ENGINE CARDS */
  .quad-card {
    background: var(--card2); border: 1px solid #2a2a2a; border-radius: 10px;
    padding: 18px; border-top: 3px solid var(--red); position: relative;
  }
  .quad-card .q-tag { position: absolute; top: 14px; right: 16px; font-size: 10px; color: var(--muted); font-family: 'Consolas', monospace; }
  .quad-card h4 { color: var(--text); font-size: 15px; margin-bottom: 6px; }
  .quad-card p { color: #bbb; font-size: 13px; line-height: 1.6; }

  .engine-letters { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  .engine-letter { display: flex; gap: 10px; align-items: flex-start; }
  .engine-letter .el-chip {
    background: var(--red); color: #fff; font-weight: 800; font-size: 13px;
    width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .engine-letter .el-text { font-size: 13px; color: #ccc; line-height: 1.5; }
  .engine-letter .el-text b { color: var(--text); }

  /* SPLIT (Higgins vs HAL) */
  .split-col { border-radius: 10px; padding: 20px; border: 1px solid #2a2a2a; }
  .split-col.answers { background: linear-gradient(180deg, #3a1116 0%, var(--card) 55%); border-top: 3px solid var(--red); }
  .split-col.action { background: linear-gradient(180deg, #0f2340 0%, var(--card) 55%); border-top: 3px solid var(--blue); }
  .split-col .kicker { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .split-col h2 { font-size: 19px; margin-top: 4px; }
  .split-col.action h2 { color: var(--blue); }

  /* TERMINOLOGY */
  .term-item { background: #181818; border-left: 3px solid var(--red); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 10px; }
  .term-item .term-word { font-size: 14px; font-weight: 700; color: var(--red); }
  .term-item .term-def { font-size: 13px; color: #bbb; margin-top: 4px; line-height: 1.5; }

  /* MODAL */
  .modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85);
    z-index: 999; align-items: center; justify-content: center; padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: #141414; border: 1px solid var(--red); border-radius: 14px;
    max-width: 600px; width: 100%; padding: 30px; position: relative;
    max-height: 90vh; overflow-y: auto;
  }
  .modal-close {
    position: absolute; top: 14px; right: 16px; background: none; border: none;
    color: var(--muted); font-size: 22px; cursor: pointer;
  }
  .modal-close:hover { color: var(--red); }
  .modal h2 { color: var(--red); font-size: 18px; margin-bottom: 6px; }
  .modal .m-type { font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
  .modal p { color: #bbb; font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
  .modal ul { color: #bbb; font-size: 13px; line-height: 1.8; padding-left: 18px; margin-bottom: 14px; }
  .modal-btn {
    display: inline-block; background: var(--red); color: #fff; padding: 10px 22px;
    border-radius: 7px; font-weight: 700; font-size: 13px; text-decoration: none;
    cursor: pointer; border: none; transition: background .2s;
  }
  .modal-btn:hover { background: #a81a28; }

  /* FOOTER */
  footer {
    background: #0d0d0d; border-top: 2px solid var(--red);
    padding: 18px 24px; text-align: center; margin-top: 40px;
  }
  footer img { height: 28px; margin-bottom: 8px; }
  footer p { font-size: 11px; color: var(--muted); }

  /* SECTION TITLE */
  .section-title { font-size: 20px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
  .section-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
  .divider { border: none; border-top: 1px solid #222; margin: 24px 0; }

  /* SEARCH */
  .search-bar {
    background: #1a1a1a; border: 1px solid #333; border-radius: 8px;
    padding: 10px 14px; color: var(--text); font-size: 13px; width: 100%; margin-bottom: 18px;
  }
  .search-bar:focus { outline: none; border-color: var(--red); }

  .highlight-box {
    background: #1a0a0c; border: 1px solid var(--red); border-radius: 10px;
    padding: 16px 20px; margin-bottom: 16px;
  }
  .highlight-box p { color: #e0b0b5; font-size: 13px; line-height: 1.7; }
  .highlight-box strong { color: var(--red); }

  /* ===== MASTERCLASS ADDITIONS ===== */
  .hero { background: radial-gradient(circle at 85% 0%, #3a1116 0%, #0d0d0d 55%); border: 1px solid #2a2a2a; border-radius: 14px; padding: 40px 32px; margin-bottom: 24px; }
  .hero .kicker { font-size: 12px; font-weight: 800; letter-spacing: .26em; color: var(--accent); margin-bottom: 12px; }
  .hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; max-width: 820px; }
  .hero h1 span { color: var(--accent); }
  .hero p { color: #b9b9c0; font-size: 15px; line-height: 1.7; max-width: 720px; margin-top: 14px; }
  .hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
  .hero-btns .hbtn { padding: 11px 20px; font-size: 13px; }

  .mc-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .mc-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .mc-pill { background: var(--card); border: 1px solid #26262b; border-top: 3px solid var(--red); border-radius: 10px; padding: 16px; }
  .mc-pill h4 { color: #ff5a68; font-size: 14px; margin-bottom: 8px; line-height: 1.3; }
  .mc-pill p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
  .mc-step { background: var(--card); border: 1px solid #26262b; border-left: 3px solid var(--red); border-radius: 10px; padding: 16px; }
  .mc-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
  .mc-step h4 { font-size: 14px; margin-bottom: 6px; }
  .mc-step p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
  .mc-week { background: var(--card); border: 1px solid #26262b; border-radius: 10px; padding: 16px; border-top: 3px solid var(--red); }
  .mc-week .when { font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 6px; }
  .mc-week h4 { font-size: 15px; margin-bottom: 6px; }
  .mc-week p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

  .stat-panel { background: #101013; border: 1px solid #2a2a30; border-radius: 12px; padding: 22px; margin-bottom: 24px; }
  .stat-panel .label { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #ff5a68; margin-bottom: 14px; }
  .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 16px; }
  .stat .v { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
  .stat .l { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
  .stat-panel p { color: #c9c9d1; font-size: 13px; line-height: 1.65; }

  .eq-tile { border-radius: 10px; padding: 18px; font-weight: 800; font-size: 17px; }
  .eq-tile small { display: block; font-weight: 500; font-size: 12.5px; margin-top: 6px; color: var(--muted); }
  .eq-rev { border: 2px solid #2ecc71; background: #0b1a11; } .eq-rev b { color: #2ecc71; }
  .eq-fund { border: 2px solid #f5a623; background: #1b140a; } .eq-fund b { color: #f5a623; }

  .quote { background: var(--card); border: 1px solid #26262b; border-top: 3px solid var(--red); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
  .quote .qt { font-size: 14px; font-style: italic; line-height: 1.55; color: #ececf0; }
  .quote .qn { font-size: 13px; font-weight: 800; }
  .quote .qr { font-size: 11.5px; color: var(--muted); }
  .quote .qtag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--red); border-radius: 3px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

  .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
  .chip { background: #1a1a1a; border: 1px solid #333; color: var(--muted); border-radius: 20px; padding: 7px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .chip.on, .chip:hover { background: var(--red); border-color: var(--red); color: #fff; }

  .cta { background: var(--red); border-radius: 14px; padding: 26px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
  .cta img { width: 190px; height: 190px; border-radius: 50%; background: #fff; flex-shrink: 0; }
  .cta h2 { font-size: 24px; line-height: 1.25; max-width: 520px; color: #fff; margin-bottom: 10px; }
  .cta p { font-size: 13.5px; line-height: 1.8; color: #fff; }
  .cta a { color: #fff; font-weight: 800; }
  .cta .hbtn { margin-top: 12px; background: #fff; color: var(--red); }

  .mc-card { background: var(--card2); border: 1px solid #2a2a2a; border-top: 3px solid var(--red); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
  .mc-card .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--red); }
  .mc-card h3 { font-size: 20px; }
  .mc-card p { color: #bbb; font-size: 13px; line-height: 1.65; }
  .mc-card .hbtn { align-self: flex-start; margin-top: 4px; }

  .sample { background: #101013; border: 1px solid #2a2a30; border-radius: 12px; padding: 16px; margin-bottom: 24px; }
  .sample .sh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; font-weight: 800; }
  .sample .badge { font-size: 9px; letter-spacing: .08em; background: var(--red); color: #fff; padding: 3px 7px; border-radius: 3px; }
  .prospect { background: #17171b; border: 1px solid #2a2a30; border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; }
  .prospect .pr1 { display: flex; justify-content: space-between; align-items: baseline; }
  .prospect .pn { font-weight: 800; font-size: 14px; }
  .prospect .ps { font-weight: 800; color: #ff5a68; }
  .prospect .ps small { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
  .prospect .po { color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
  .prospect .bar { height: 5px; background: #2a2a30; border-radius: 3px; } .prospect .bar i { display: block; height: 5px; border-radius: 3px; background: var(--red); }
  .sample .note { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 8px; }
  .fine { font-size: 11px; color: var(--muted); margin-top: 16px; }
  @media (max-width: 600px) { .hero { padding: 28px 18px; } .cta { padding: 20px; } .cta img { width: 150px; height: 150px; } }

  .reg-panel { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; background: var(--card2); border: 1px solid #2a2a2a; border-left: 4px solid var(--red); border-radius: 14px; padding: 26px; margin-bottom: 28px; }
  .reg-info { flex: 1 1 320px; }
  .reg-info .k { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--red); margin-bottom: 6px; }
  .reg-info h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
  .reg-info p { color: #b9b9c0; font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
  .reg-list { flex: 1 1 240px; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #d6d6dc; font-size: 14px; }
  .reg-list li::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 10px; }

  /* ===== CAPABILITIES ===== */
  .sub-head { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 8px 0 12px; }
  .caps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .cap { background: var(--card); border: 1px solid #26262b; border-left: 3px solid var(--red); border-radius: 10px; padding: 18px; }
  .cap .cn { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
  .cap h4 { font-size: 15px; line-height: 1.3; margin-bottom: 8px; }
  .cap p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
  .caps-wrap { margin-top: 34px; padding-top: 10px; border-top: 1px solid #222; }

  /* ===== TOOLS ===== */
  .aud-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .aud-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
  .aud-bar .chips { margin-bottom: 0; }
  .subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 14px; }
  .subtab { background: #1a1a1a; border: 1px solid #333; color: var(--text); border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .subtab:hover { border-color: var(--red); }
  .subtab.on { background: var(--red); border-color: var(--red); color: #fff; }
  .tool-panel { display: none; }
  .tool-panel.on { display: block; }
  .tool-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
  .muted-s { font-size: 12px; color: var(--muted); }
  label.inline { font-size: 13px; color: #ccc; display: inline-flex; gap: 6px; align-items: center; }

  .score-panel { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: #101013; border: 1px solid #2a2a30; border-radius: 12px; padding: 22px; margin-bottom: 18px; }
  .score-big { display: flex; align-items: baseline; gap: 6px; }
  .score-big .num { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
  .score-big .of { font-size: 16px; color: var(--muted); font-weight: 700; }
  .score-main { flex: 1 1 260px; }
  .tier { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
  .bar { height: 7px; background: #2a2a30; border-radius: 4px; overflow: hidden; }
  .bar i { display: block; height: 100%; background: var(--red); border-radius: 4px; transition: width .25s; }
  .bar.big { height: 12px; border-radius: 6px; margin-bottom: 8px; }
  .cat-card { background: var(--card); border: 1px solid #26262b; border-radius: 10px; padding: 14px; }
  .cat-card .ch { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; margin-bottom: 8px; gap: 8px; }
  .cat-card .ch span:last-child { color: var(--accent); }

  .dd-cat { margin: 22px 0 8px; font-size: 15px; font-weight: 800; color: var(--red); }
  .dd-row { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; background: var(--card); border: 1px solid #26262b; border-radius: 8px; padding: 12px 14px; margin-bottom: 6px; cursor: pointer; color: var(--text); font-family: inherit; }
  .dd-row:hover { border-color: #444; }
  .dd-st { flex: 0 0 96px; text-align: center; font-size: 11px; font-weight: 800; padding: 5px 0; border-radius: 12px; letter-spacing: .03em; }
  .dd-st.s0 { background: #1e1e1e; color: var(--muted); border: 1px solid #333; }
  .dd-st.s1 { background: #2a2108; color: var(--yellow); border: 1px solid #5a4a12; }
  .dd-st.s2 { background: #0b2416; color: var(--green); border: 1px solid #14502d; }
  .dd-t { font-size: 13.5px; line-height: 1.5; color: #ddd; }
  .must { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; background: var(--red); color: #fff; border-radius: 3px; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }
  .dd-tags { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
  .dd-tags span { font-size: 10px; color: var(--muted); border: 1px solid #333; border-radius: 10px; padding: 1px 7px; }
  .next-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #222; font-size: 13.5px; color: #ddd; line-height: 1.5; }
  .next-item:last-child { border-bottom: none; }
  .next-item b { color: var(--red); min-width: 20px; }

  .fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
  .tool-panel label { display: block; font-size: 12px; font-weight: 700; color: #bbb; margin-bottom: 12px; }
  .tool-panel input[type=number], .tool-panel input[type=text], .tool-panel select { display: block; width: 100%; margin-top: 5px; background: #1a1a1a; border: 1px solid #333; border-radius: 7px; padding: 9px 11px; color: var(--text); font-size: 14px; font-family: inherit; }
  .tool-panel input:focus, .tool-panel select:focus { outline: none; border-color: var(--red); }
  .fin-row { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid #26262b; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
  .fin-row .fv { flex: 0 0 110px; font-size: 20px; font-weight: 800; line-height: 1.1; }
  .fin-row .fk { font-size: 13px; font-weight: 800; }
  .fin-row .fn { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
  .fin-row.good { border-left: 4px solid var(--green); } .fin-row.watch { border-left: 4px solid var(--yellow); } .fin-row.info { border-left: 4px solid #555; }
  .fin-row.good .fv { color: var(--green); } .fin-row.watch .fv { color: var(--yellow); }

  .slider-row { margin-bottom: 14px; }
  .slider-row .sl-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
  .slider-row .sl-h span { color: var(--accent); }
  .slider-row .sl-d { font-size: 11.5px; color: var(--muted); margin: 2px 0 4px; }
  .slider-row input[type=range] { width: 100%; accent-color: #cf2030; }
  .fit-total { font-size: 15px; margin: 6px 0 14px; } .fit-total b { font-size: 26px; color: var(--accent); }
  .fit-total span { font-size: 12px; font-weight: 800; margin-left: 8px; color: var(--muted); }
  .t-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--card2); border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; }
  .t-row .tn { font-weight: 800; font-size: 14px; } .t-row .tm { font-size: 11.5px; color: var(--muted); }
  .t-row .ts { font-size: 20px; font-weight: 800; color: var(--accent); }
  .t-row button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; }
  .t-row button:hover { color: var(--red); }

  .qa-aud { font-size: 15px; font-weight: 800; color: var(--red); margin: 22px 0 8px; }
  details.qa { background: var(--card); border: 1px solid #26262b; border-radius: 8px; padding: 12px 14px; margin-bottom: 6px; }
  details.qa summary { cursor: pointer; font-size: 14px; font-weight: 700; }
  details.qa p { margin-top: 8px; font-size: 13px; color: #bbb; line-height: 1.6; }
  details.qa p b { color: var(--red); }
  pre.room { background: #101013; border: 1px solid #2a2a30; border-radius: 10px; padding: 16px; font-size: 12.5px; line-height: 1.7; color: #ddd; white-space: pre-wrap; overflow-x: auto; font-family: Consolas, monospace; }
  @media print { header, .tabs, .subnav, .aud-bar, .tool-actions, footer, .hero { display: none !important; } body { background: #fff; color: #000; } .tab-content { display: none !important; } #tab-tools { display: block !important; } .tool-panel { display: none !important; } #tool-check { display: block !important; } .dd-row, .cat-card, .card, .score-panel { background: #fff; color: #000; border-color: #999; } .dd-t, .next-item { color: #000; } }
