    *, *::before, *::after { box-sizing: border-box; }
    .tt-shell { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

    .tt-card { background: #ffffff; border: 1px solid #d0d8e0; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(15,25,35,.07); }
    .tt-section-title { font-size: .95rem; font-weight: 700; color: #0f1923; margin: 0 0 1.1rem; padding-bottom: .55rem; border-bottom: 2px solid #b8d9f0; }

    .tt-field { display: flex; flex-direction: column; gap: .3rem; }
    .tt-field label { font-size: .8rem; font-weight: 700; color: #0f1923; }
    .tt-field input, .tt-field select { padding: .65rem .9rem; font-size: .9rem; border: 2px solid #d0d8e0; border-radius: 8px; background: #ffffff; color: #0f1923; transition: border-color .15s; }
    .tt-field input:focus, .tt-field select:focus { outline: none; border-color: #005fa3; box-shadow: 0 0 0 3px rgba(0,95,163,.15); }
    .tt-field .tt-helper { font-size: .78rem; font-weight: 600; color: #0f1923; margin: .2rem 0 0; }
    .tt-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .85rem; }
    .f-xs { width: 80px; } .f-sm { width: 120px; } .f-md { width: 180px; } .f-lg { flex: 1; min-width: 160px; }

    /* ── UK notice ───────────────────────────────────────── */
    .tt-uk-notice { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; background: #e0f0fb; border: 1px solid #5da8d8; border-radius: 8px; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; color: #0f1923; line-height: 1.5; }
    .tt-uk-flag { font-size: 1.3rem; flex-shrink: 0; }

    /* ── Split method tabs ───────────────────────────────── */
    .tt-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
    .tt-tab { padding: .45rem 1.1rem; font-size: .875rem; font-weight: 600; border: 2px solid #d0d8e0; border-radius: 999px; background: #ffffff; color: #0f1923; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
    .tt-tab:hover:not(.active) { border-color: #005fa3; color: #0f1923; }
    .tt-tab.active { background: #2d3f52; border-color: #2d3f52; color: #ffffff; }

    /* ── Staff table ─────────────────────────────────────── */
    .tt-table { width: 100%; border-collapse: collapse; font-size: .855rem; margin-bottom: .85rem; }
    .tt-table th { background: #2d3f52; color: #ffffff; padding: .6rem .7rem; text-align: left; font-size: .78rem; font-weight: 700; white-space: nowrap; }
    .tt-table th:first-child { border-radius: 8px 0 0 0; } .tt-table th:last-child { border-radius: 0 8px 0 0; }
    .tt-table td { padding: .45rem .5rem; border-bottom: 1px solid #d0d8e0; vertical-align: middle; color: #0f1923; font-weight: 600; }
    .tt-table tr:last-child td { border-bottom: none; }
    .tt-table tr:nth-child(even) td { background: #f0f4f8; }
    .tt-table input, .tt-table select { padding: .4rem .55rem; font-size: .82rem; border: 1.5px solid #b0bcc8; border-radius: 6px; background: #ffffff; color: #0f1923; width: 100%; transition: border-color .15s; }
    .tt-table input:focus, .tt-table select:focus { outline: none; border-color: #005fa3; }
    .col-sname { min-width: 130px; } .col-role { width: 110px; } .col-hrs { width: 70px; } .col-pts { width: 70px; text-align: right; } .col-share { width: 100px; text-align: right; } .col-del { width: 38px; text-align: center; }
    .tt-share-cell { font-weight: 700; color: #0f1923; font-variant-numeric: tabular-nums; padding-right: .75rem !important; }

    /* ── Buttons ─────────────────────────────────────────── */
    .tt-add-btn { padding: .55rem 1.1rem; font-size: .85rem; font-weight: 700; background: #b8d9f0; color: #0f1923; border: 2px solid #7ec8f0; border-radius: 8px; cursor: pointer; transition: background .15s; }
    .tt-add-btn:hover { background: #90c5e8; }
    .tt-run-btn { padding: .75rem 1.5rem; font-size: .95rem; font-weight: 700; background: #b8d9f0; color: #0f1923; border: 2px solid #7ec8f0; border-radius: 10px; cursor: pointer; transition: background .15s, transform .1s; box-shadow: 0 1px 4px rgba(15,25,35,.08); }
    .tt-run-btn:hover { background: #90c5e8; } .tt-run-btn:active { transform: scale(.97); }
    .tt-del-btn { padding: .4rem .6rem; font-size: .8rem; font-weight: 700; background: #f5c0c0; color: #0f1923; border: 2px solid #d08080; border-radius: 6px; cursor: pointer; transition: background .15s; }
    .tt-del-btn:hover { background: #f0a0a0; }

    /* ── Results ─────────────────────────────────────────── */
    .tt-results-header { background: #2d3f52; border-radius: 16px; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; box-shadow: 0 4px 16px rgba(15,25,35,.12); }
    .tt-results-header h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .2rem; color: #ffffff; }
    .tt-results-header p  { margin: 0; font-size: .875rem; color: #b8d0e8; }

    .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: .85rem; }
    .result-card { border-radius: 8px; padding: .9rem 1rem; background: #b8d9f0; border: 1px solid #5da8d8; }
    .result-card .result-label { color: #0f1923; font-size: .75rem; font-weight: 700; margin: 0 0 .25rem; }
    .result-card .result-value { color: #0f1923; font-size: 1.35rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
    .result-card.dark { background: #2d3f52; border-color: #1e2d3d; }
    .result-card.dark .result-label { color: #b8d0e8; }
    .result-card.dark .result-value { color: #ffffff; }

    /* ── Distribution table ──────────────────────────────── */
    .tt-dist-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
    .tt-dist-table th { background: #2d3f52; color: #ffffff; padding: .55rem .7rem; text-align: left; font-size: .78rem; font-weight: 700; }
    .tt-dist-table th:first-child { border-radius: 6px 0 0 0; } .tt-dist-table th:last-child { border-radius: 0 6px 0 0; }
    .tt-dist-table td { padding: .5rem .7rem; border-bottom: 1px solid #d0d8e0; color: #0f1923; font-weight: 600; }
    .tt-dist-table tr:last-child td { border-bottom: none; }
    .tt-dist-table tr:nth-child(even) td { background: #f0f4f8; }
    .tt-dist-table .total-row td { background: #2d3f52 !important; color: #ffffff !important; font-weight: 800; }

    .tt-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; flex-shrink: 0; }
    .badge-ok   { background: #a8d8b8; color: #0f1923; border: 1px solid #3d9a5a; }
    .badge-info { background: #b8d9f0; color: #0f1923; border: 1px solid #5da8d8; }

    .tt-divider { border: none; border-top: 1px solid #d0d8e0; margin: 1rem 0; }
    .tt-note { font-size: .8rem; font-weight: 700; color: #0f1923 !important; margin: .5rem 0 0; line-height: 1.5; }

    .tt-explainer { border: 1px solid #d0d8e0; border-radius: 10px; margin-top: 1.5rem; background: #ffffff; overflow: hidden; }
    .tt-explainer-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .9rem 1.25rem; background: #ffffff; border: none; cursor: pointer; font-size: .95rem; font-weight: 700; color: #0f1923; text-align: left; transition: background .15s; }
    .tt-explainer-head:hover { background: #f0f4f8; }
    .tt-explainer-head svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
    .tt-explainer-head[aria-expanded="true"] svg { transform: rotate(180deg); }
    .tt-explainer-body { display: none; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid #d0d8e0; }
    .tt-explainer-body h3 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .25rem; color: #0f1923; }
    .tt-explainer-body h3:first-child { margin-top: 0; }
    .tt-explainer-body p  { font-size: .875rem; margin: 0 0 .3rem; line-height: 1.55; color: #0f1923; }

    .hc-disclaimer { margin-top: 1.5rem; padding: .9rem 1.1rem; background: #b8d9f0; border: 1px solid #5da8d8; border-radius: 10px; font-size: .8rem; line-height: 1.5; }
    .hc-disclaimer p { color: #0f1923; margin: 0; font-weight: 600; }

    /* ── Overrides ───────────────────────────────────────── */
    .tt-card label, .tt-card .tt-section-title, .tt-card .tt-helper,
    .tt-card input, .tt-card select, .tt-table td, .tt-share-cell,
    .tt-dist-table td, .tt-uk-notice, .tt-explainer-body p, .tt-explainer-body h3,
    .tt-explainer-head, .hc-disclaimer p { color: #0f1923 !important; }
    .tt-results-header h2 { color: #ffffff !important; }
    .tt-results-header p  { color: #b8d0e8 !important; }
    .tt-tab.active { color: #ffffff !important; }
    .result-card .result-label, .result-card .result-value { color: #0f1923 !important; }
    .result-card.dark .result-label { color: #b8d0e8 !important; }
    .result-card.dark .result-value { color: #ffffff !important; }
    .tt-dist-table .total-row td { color: #ffffff !important; }

    @media (max-width: 640px) { .col-pts { display: none; } .tt-row { flex-direction: column; align-items: stretch; } .results-grid { grid-template-columns: 1fr 1fr; } }
    @media print { nav, header, footer, .tt-add-btn, .tt-run-btn, .tt-del-btn, .tt-explainer, .hc-disclaimer { display: none !important; } .tt-results-header { background: #2d3f52 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }