/* =========================================================================
   TrampIQ design system
   Brand: deep slate-navy + flight orange (from the logo), teal accent.
   Chart series colours are validated for the dark surface (dataviz check):
   athlete #e06a28 · 1st place #199e8e · top-3 average #9085e9.
   ========================================================================= */

:root {
    --tiq-bg: #0b151b;
    --tiq-surface: #132029;
    --tiq-surface-2: #182a35;
    --tiq-surface-3: #1f3542;
    --tiq-border: rgba(255, 255, 255, 0.07);
    --tiq-border-strong: rgba(255, 255, 255, 0.14);

    --tiq-text: #eef3f5;
    --tiq-text-2: #a9bac3;
    --tiq-text-3: #74878f;

    --tiq-orange: #f07b3a;
    --tiq-orange-deep: #e06a28;
    --tiq-teal: #2fbfae;
    --tiq-teal-deep: #199e8e;
    --tiq-violet: #9085e9;
    --tiq-reference: #8fa3ad;

    --tiq-good: #3fb950;
    --tiq-warn: #e3a33b;
    --tiq-bad: #f06a6a;

    --tiq-gold: #f5c84c;
    --tiq-silver: #c9d3da;
    --tiq-bronze: #d08a52;

    --tiq-radius: 18px;
    --tiq-radius-sm: 12px;
    --tiq-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --tiq-shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.45);
    --tiq-gradient-brand: linear-gradient(135deg, #f07b3a 0%, #f2a14a 45%, #2fbfae 100%);

    --tiq-font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --tiq-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body {
    background: var(--tiq-bg) !important;
    color: var(--tiq-text);
    font-family: var(--tiq-font-body) !important;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(240, 123, 58, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(47, 191, 174, 0.08), transparent 60%) !important;
    background-attachment: fixed !important;
}

h1, h2, h3, h4, h5, h6,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    font-family: var(--tiq-font-display) !important;
    letter-spacing: -0.01em;
}

h1:focus { outline: none; }

a { color: var(--tiq-orange); text-decoration: none; }
a:hover { color: #ffa36b; }

/* ---------- Layout shell ---------- */

.tiq-appbar {
    background: rgba(11, 21, 27, 0.72) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--tiq-border);
    box-shadow: none !important;
}

.tiq-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tiq-text) !important;
    font-family: var(--tiq-font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.tiq-brand img.tiq-wordmark { height: 40px; width: auto; display: block; }
@media (max-width: 600px) { .tiq-brand img.tiq-wordmark { height: 32px; } }

.tiq-brand .iq { color: var(--tiq-orange); }

.tiq-nav-link {
    color: var(--tiq-text-2) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
}

.tiq-nav-link:hover, .tiq-nav-link.active {
    color: var(--tiq-text) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.tiq-main {
    padding-top: 88px;
    min-height: calc(100vh - 80px);
}

.tiq-footer {
    border-top: 1px solid var(--tiq-border);
    color: var(--tiq-text-3);
    font-size: 0.85rem;
    padding: 28px 16px 36px;
    text-align: center;
    margin-top: 48px;
}

/* ---------- Surfaces ---------- */

.tiq-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)) , var(--tiq-surface) !important;
    border: 1px solid var(--tiq-border) !important;
    border-radius: var(--tiq-radius) !important;
    box-shadow: var(--tiq-shadow) !important;
}

.tiq-card-flat {
    background: var(--tiq-surface-2) !important;
    border: 1px solid var(--tiq-border) !important;
    border-radius: var(--tiq-radius-sm) !important;
    box-shadow: none !important;
}

.tiq-lift {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tiq-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--tiq-shadow-lift) !important;
    border-color: var(--tiq-border-strong) !important;
}

.clickable { cursor: pointer; }

/* Older pages (event, team, leaderboards) use a paper + grid page header:
   give it the hero look and stop the grid's negative margins overflowing on phones. */
.mud-paper:has(> .mud-grid.justify-space-around.ma-3) {
    border-radius: 24px !important;
    border: 1px solid var(--tiq-border);
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(47, 191, 174, 0.18), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(240, 123, 58, 0.22), transparent 60%),
        linear-gradient(160deg, #15303c 0%, #0f1f28 100%) !important;
    box-shadow: var(--tiq-shadow) !important;
    overflow: hidden;
}

.mud-paper > .mud-grid.justify-space-around.ma-3 {
    margin: 0 !important;
    width: 100% !important;
    padding: 12px 4px;
}

/* ---------- Hero ---------- */

.tiq-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--tiq-border);
    background:
        radial-gradient(700px 380px at 85% 10%, rgba(47, 191, 174, 0.22), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(240, 123, 58, 0.28), transparent 60%),
        linear-gradient(160deg, #15303c 0%, #0f1f28 60%, #0c1820 100%);
    box-shadow: var(--tiq-shadow);
}

.tiq-hero::after {
    /* trampoline-bed arc motif */
    content: '';
    position: absolute;
    right: -120px;
    bottom: -260px;
    width: 620px;
    height: 420px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.02), 0 0 0 80px rgba(255, 255, 255, 0.015);
    pointer-events: none;
}

.tiq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tiq-teal);
}

.tiq-display {
    font-family: var(--tiq-font-display) !important;
    font-weight: 800 !important;
    font-size: clamp(2.3rem, 5.5vw, 4.2rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em !important;
}

.tiq-gradient-text {
    background: var(--tiq-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tiq-lead {
    color: var(--tiq-text-2);
    font-size: 1.12rem;
    line-height: 1.6;
    max-width: 640px;
}

.tiq-section-title {
    font-family: var(--tiq-font-display) !important;
    font-weight: 700 !important;
    font-size: 1.55rem !important;
    letter-spacing: -0.02em !important;
}

.tiq-muted { color: var(--tiq-text-2) !important; }
.tiq-faint { color: var(--tiq-text-3) !important; }

/* ---------- Search ---------- */

.tiq-search .mud-input-control-input-container,
.tiq-search .mud-input {
    border-radius: 999px !important;
}

.tiq-search .mud-input.mud-input-outlined {
    background: rgba(11, 21, 27, 0.65);
    backdrop-filter: blur(6px);
    font-size: 1.1rem;
    padding: 6px 10px;
}

.tiq-search .mud-input-outlined-border {
    border-radius: 999px !important;
    border-color: var(--tiq-border-strong) !important;
}

/* ---------- Stat tiles ---------- */

.tiq-stat {
    position: relative;
    padding: 20px 22px;
    min-width: 200px;
    height: 100%;
}

.tiq-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(240, 123, 58, 0.14);
    color: var(--tiq-orange);
    margin-bottom: 14px;
}

.tiq-stat-label {
    color: var(--tiq-text-2);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tiq-stat-value {
    font-family: var(--tiq-font-display);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--tiq-text);
    font-variant-numeric: tabular-nums;
}

.tiq-stat-hint {
    color: var(--tiq-text-3);
    font-size: 0.8rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tiq-stat:hover .tiq-stat-hint { color: var(--tiq-orange); }

/* Medals */
.tiq-medal { text-align: center; padding: 22px 18px; min-width: 150px; }
.tiq-medal-disc {
    width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center; margin: 0 auto 12px;
    font-family: var(--tiq-font-display); font-weight: 800; font-size: 1.6rem; color: #1b1b1b;
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.18), 0 8px 18px rgba(0,0,0,0.35);
}
.tiq-medal-gold .tiq-medal-disc { background: radial-gradient(circle at 35% 30%, #fff1b8, var(--tiq-gold) 55%, #b98d1c); }
.tiq-medal-silver .tiq-medal-disc { background: radial-gradient(circle at 35% 30%, #ffffff, var(--tiq-silver) 55%, #8d9aa3); }
.tiq-medal-bronze .tiq-medal-disc { background: radial-gradient(circle at 35% 30%, #ffd5b0, var(--tiq-bronze) 55%, #8f5329); }

/* ---------- Athlete identity ---------- */

.tiq-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--tiq-font-display);
    font-weight: 800;
    font-size: 2.1rem;
    color: #fff;
    background: linear-gradient(135deg, #f07b3a, #c2481a);
    box-shadow: 0 0 0 4px rgba(11, 21, 27, 0.9), 0 0 0 7px rgba(240, 123, 58, 0.55), 0 14px 30px rgba(0,0,0,0.45);
    flex-shrink: 0;
}

.tiq-avatar-sm {
    width: 44px; height: 44px; font-size: 1rem;
    box-shadow: 0 0 0 2px rgba(240, 123, 58, 0.45);
}

.tiq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--tiq-border);
    color: var(--tiq-text-2);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Even auto-fitting grid for stat tiles */
.tiq-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

/* Placing badges */
.tiq-place {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    font-family: var(--tiq-font-display); font-weight: 800; font-size: .92rem;
    background: rgba(255,255,255,.06); color: var(--tiq-text-2);
}
.tiq-place.p1 { background: var(--tiq-gold); color: #1b1b1b; }
.tiq-place.p2 { background: var(--tiq-silver); color: #1b1b1b; }
.tiq-place.p3 { background: var(--tiq-bronze); color: #1b1b1b; }

/* ---------- Comparison visuals ---------- */

.tiq-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--tiq-text-2); }
.tiq-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.tiq-swatch { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.tiq-swatch-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.tiq-bar-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.tiq-bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: 999px;
    transition: width .8s cubic-bezier(.2,.8,.2,1);
}

.tiq-paired { display: grid; gap: 8px; }
.tiq-paired-row { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 10px; }
.tiq-paired-name { color: var(--tiq-text-2); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiq-paired-value { color: var(--tiq-text); font-size: .88rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.tiq-gap-good { color: var(--tiq-good) !important; }
.tiq-gap-warn { color: var(--tiq-warn) !important; }

.tiq-priority {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    font-family: var(--tiq-font-display); font-weight: 800;
    background: var(--tiq-gradient-brand);
    color: #0b151b;
}

/* Radar */
.tiq-radar text { font-family: var(--tiq-font-body); }
.tiq-radar .axis-label { fill: var(--tiq-text-2); font-size: 12px; font-weight: 600; }
.tiq-radar .ring { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.tiq-radar .ring-ref { fill: rgba(144,133,233,0.10); stroke: var(--tiq-violet); stroke-width: 2; stroke-dasharray: 5 4; }
.tiq-radar .spoke { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.tiq-radar .athlete { fill: rgba(224,106,40,0.28); stroke: var(--tiq-orange-deep); stroke-width: 2.5; stroke-linejoin: round; }
.tiq-radar .athlete-dot { fill: var(--tiq-orange-deep); stroke: var(--tiq-surface); stroke-width: 2; cursor: default; }
.tiq-radar .athlete-dot:hover { r: 7; }
.tiq-radar .tick { fill: var(--tiq-text-3); font-size: 10px; }

/* ---------- Tables & Mud overrides ---------- */

.mud-table, .mud-table-container { background: transparent !important; }
.mud-table-head .mud-table-cell {
    color: var(--tiq-text-3) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mud-table-row:hover { background: rgba(255, 255, 255, 0.03) !important; }
.mud-table-cell { border-bottom-color: var(--tiq-border) !important; }

.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #f07b3a, #e0622a) !important;
    box-shadow: 0 8px 20px rgba(240, 123, 58, 0.28) !important;
    color: #fff !important;
}
.mud-button-filled.mud-button-filled-primary:hover { filter: brightness(1.07); }
.mud-button-root { text-transform: none !important; font-weight: 600 !important; letter-spacing: 0 !important; border-radius: 12px !important; }

.mud-tabs-tabbar { background: transparent !important; }
.mud-tab { text-transform: none !important; font-weight: 600 !important; font-size: 0.98rem !important; }

.mud-chart .mud-chart-legend { display: none; } /* we draw our own legends */
.mud-charts-gridlines-yaxis path, .mud-charts-gridlines-xaxis path { stroke: rgba(255,255,255,0.06) !important; }
.mud-charts-xaxis text, .mud-charts-yaxis text { fill: var(--tiq-text-3) !important; font-size: 11px; }
.mud-chart-line path { stroke-width: 2.5px !important; }

/* ---------- Motion ---------- */

@keyframes tiq-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.tiq-fade-up { animation: tiq-fade-up .55s cubic-bezier(.2,.8,.2,1) both; }

@keyframes tiq-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .tiq-fade-up, .tiq-lift, .tiq-bar-fill { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .tiq-main { padding-top: 76px; }
    .tiq-hero { border-radius: 20px; }
    .tiq-stat { min-width: 0; }
    .tiq-avatar { width: 72px; height: 72px; font-size: 1.6rem; }
}

/* ---------- Blazor plumbing ---------- */

#blazor-error-ui {
    background: #3b1d1d;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after { content: "An error has occurred."; }

.centre-on-screen { display: flex; justify-content: center; align-items: center; height: 100vh; flex-direction: column; }
.centreOnScreen { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.centre-top-of-screen { display: flex; justify-content: flex-start; align-items: center; height: 100vh; flex-direction: column; margin-top: 10vh; }

/* =========================================================================
   Reusable components (PageHero, SectionTabs, FilterField, PersonBadge,
   InfoNote, StatusBadge, FootNote, RecordCard, RecordHoldersTable)
   ========================================================================= */

/* PageHero */
.tiq-page-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 0 28px; }
.tiq-page-hero-text { max-width: 720px; }
.tiq-page-hero-title {
    font-family: var(--tiq-font-display) !important; font-weight: 800 !important;
    font-size: clamp(2.1rem, 5vw, 3.4rem) !important; line-height: 1.05 !important; letter-spacing: -0.035em !important;
    margin: 0 0 14px;
}
.tiq-accent { color: var(--tiq-orange); }
.tiq-page-hero-back { display: flex; width: fit-content; align-items: center; gap: 4px; color: var(--tiq-text-2); font-size: .88rem; margin-bottom: 10px; }
.tiq-page-hero-mark {
    flex-shrink: 0; width: 88px; height: 88px; border-radius: 20px;
    transform: rotate(4deg); box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.tiq-page-hero-mark img { width: 100%; height: 100%; }
@media (max-width: 600px) { .tiq-page-hero-mark { display: none; } }

/* SectionTabs */
.tiq-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--tiq-border); overflow-x: auto; }
.tiq-tab {
    background: none; border: 0; color: var(--tiq-text-2); font-weight: 600; font-size: 1rem;
    padding: 12px 22px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.tiq-tab:hover { color: var(--tiq-text); }
.tiq-tab.active { color: var(--tiq-text); border-bottom-color: var(--tiq-orange); }
.tiq-tab-num { color: var(--tiq-teal); font-size: .78rem; font-weight: 700; margin-left: 8px; font-variant-numeric: tabular-nums; }

/* FilterField */
.tiq-filter-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
    padding: 20px; background: var(--tiq-surface); border: 1px solid var(--tiq-border); border-top: 0;
    border-radius: 0 0 var(--tiq-radius) var(--tiq-radius);
}
.tiq-filter-label { color: var(--tiq-text-3); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.tiq-filter-field .mud-input-control { margin-top: 0 !important; }

/* PersonBadge */
.tiq-person { display: flex; align-items: center; gap: 10px; }
.tiq-initials {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: rgba(47,191,174,.12); border: 1px solid rgba(47,191,174,.35); color: var(--tiq-teal);
    font-size: .7rem; font-weight: 800; letter-spacing: .02em;
}
.tiq-person-name { color: var(--tiq-text) !important; font-weight: 700; font-size: .95rem; display: block; line-height: 1.2; }
.tiq-person-name:hover { color: var(--tiq-orange) !important; }
.tiq-person-detail { color: var(--tiq-text-3); font-size: .8rem; }

/* InfoNote */
.tiq-info-note { display: flex; align-items: center; gap: 10px; color: var(--tiq-text-2); font-size: .88rem; }
.tiq-info-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* StatusBadge */
.tiq-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 8px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.tiq-badge-teal { background: rgba(47,191,174,.12); color: var(--tiq-teal); border: 1px solid rgba(47,191,174,.3); }
.tiq-badge-orange { background: rgba(240,123,58,.12); color: var(--tiq-orange); border: 1px solid rgba(240,123,58,.3); }
.tiq-badge-neutral { background: rgba(255,255,255,.05); color: var(--tiq-text-2); border: 1px solid var(--tiq-border); }

/* FootNote */
.tiq-footnotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 48px; }
.tiq-footnote-title { font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.tiq-footnote-text { color: var(--tiq-text-2); font-size: .88rem; line-height: 1.6; }

/* RecordCard */
.tiq-record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tiq-record-card {
    position: relative; padding: 24px 22px 18px; border-radius: var(--tiq-radius);
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--tiq-surface);
    border: 1px solid var(--tiq-border); box-shadow: var(--tiq-shadow); display: flex; flex-direction: column;
}
.tiq-record-card::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; }
.tiq-accent-orange::before { background: var(--tiq-orange); }
.tiq-accent-teal::before { background: var(--tiq-teal); }
.tiq-record-value {
    font-family: var(--tiq-font-display); font-weight: 700; font-size: 2.6rem; line-height: 1.1;
    letter-spacing: -.03em; margin: 10px 0 8px; font-variant-numeric: tabular-nums;
}
.tiq-record-unit { color: var(--tiq-text-3); font-family: var(--tiq-font-body); font-size: .8rem; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.tiq-record-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tiq-border); color: var(--tiq-text-2); font-size: .82rem; }
.tiq-record-card .mud-stack + .tiq-record-foot { margin-top: 16px; }

/* RecordHoldersTable */
.tiq-table-card { background: var(--tiq-surface); border: 1px solid var(--tiq-border); border-radius: var(--tiq-radius); overflow: hidden; }
.tiq-table-card .mud-table-head { background: rgba(255,255,255,.025); }
.tiq-table-card .mud-table-cell { padding: 16px 20px !important; }
.tiq-table-value { color: var(--tiq-orange); font-family: var(--tiq-font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* =========================================================================
   Accounts (AuthCard, ExternalSignInButtons, ChoiceCard, account menu)
   ========================================================================= */
.tiq-auth-wrap { max-width: 480px; margin: 24px auto 0; }
.tiq-auth-card { padding: 36px 32px !important; }
.tiq-auth-logo { height: 46px; width: auto; display: block; }
.tiq-auth-title { font-family: var(--tiq-font-display) !important; font-weight: 800 !important; font-size: 2rem !important; letter-spacing: -.03em !important; margin: 0 0 8px; }
.tiq-auth-footer { text-align: center; color: var(--tiq-text-2); font-size: .92rem; margin-top: 20px; }
.tiq-auth-card .mud-input-control { margin-bottom: 14px; }
@media (max-width: 600px) { .tiq-auth-card { padding: 28px 20px !important; } }

.tiq-external-btn { justify-content: center !important; border-color: var(--tiq-border-strong) !important; color: var(--tiq-text) !important; }
.tiq-or { display: flex; align-items: center; gap: 12px; color: var(--tiq-text-3); font-size: .8rem; margin: 20px 0; }
.tiq-or::before, .tiq-or::after { content: ''; flex: 1; height: 1px; background: var(--tiq-border-strong); }

.tiq-choice {
    display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer; position: relative;
    padding: 18px 20px; border-radius: var(--tiq-radius); color: var(--tiq-text);
    background: var(--tiq-surface); border: 1px solid var(--tiq-border); transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.tiq-choice:hover { border-color: var(--tiq-border-strong); transform: translateY(-2px); }
.tiq-choice.selected { border-color: var(--tiq-orange); background: linear-gradient(0deg, rgba(240,123,58,.08), rgba(240,123,58,.08)), var(--tiq-surface); }
.tiq-choice .tiq-stat-icon { margin: 0; flex-shrink: 0; }
.tiq-choice-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tiq-choice-title { font-weight: 700; font-size: 1.02rem; }
.tiq-choice-desc { color: var(--tiq-text-2); font-size: .88rem; line-height: 1.45; }
.tiq-choice-check { color: var(--tiq-orange); }
.tiq-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

.tiq-account-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,.05); border: 1px solid var(--tiq-border); color: var(--tiq-text); font-weight: 600; font-size: .9rem;
}
.tiq-account-chip .tiq-initials { width: 30px; height: 30px; }
.tiq-count { background: var(--tiq-orange); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 1px 7px; }
.tiq-list-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--tiq-border); }
.tiq-list-row:last-child { border-bottom: 0; }

/* ---------- Squads ---------- */
.tiq-squad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }

/* ---------- Routines ---------- */
.tiq-routine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.tiq-routine-skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 8px 16px; }
.tiq-routine-skill-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 80px; gap: 8px; align-items: center; }
.tiq-routine-skill-name { grid-column: 2 / 4; font-size: .8rem; margin-top: -4px; min-height: 0; }
.tiq-routine-skill-name:empty { display: none; }
.tiq-routine-table { display: grid; font-size: .9rem; }
.tiq-routine-head, .tiq-routine-line { display: grid; grid-template-columns: 22px minmax(0, 1.4fr) 40px minmax(120px, 1.2fr); gap: 10px; align-items: center; padding: 6px 0; }
.tiq-routine-head { color: var(--tiq-text-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--tiq-border); }
.tiq-routine-line { border-bottom: 1px solid var(--tiq-border); }
.tiq-routine-line:last-child { border-bottom: 0; }
.tiq-num { text-align: right; font-variant-numeric: tabular-nums; }
.tiq-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiq-deduction-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--tiq-border); overflow: hidden; max-width: 140px; }
.tiq-deduction-bar > span { display: block; height: 100%; border-radius: 4px; }
.tiq-deduction-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.tiq-deduction-cell {
    min-width: 40px; padding: 3px 6px; border-radius: 6px; font-size: .75rem; text-align: center; font-variant-numeric: tabular-nums;
    background: color-mix(in srgb, var(--c, transparent) 28%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--tiq-border)) 60%, transparent);
}

/* ---------- Training session: challenges, points, badges ---------- */
.tiq-session-head { padding: 18px 0 20px; }
.tiq-session-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tiq-action {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px; min-height: 56px;
    border-radius: var(--tiq-radius-sm); border: 1px solid var(--tiq-border-strong); background: var(--tiq-surface-2);
    color: var(--tiq-text); font: 600 .95rem var(--tiq-font-body); cursor: pointer; text-decoration: none;
    transition: border-color .15s, background .15s;
}
.tiq-action:hover, .tiq-action:focus-visible { border-color: var(--tiq-orange); background: var(--tiq-surface-3); }
.tiq-action .mud-icon-root { color: var(--tiq-orange); }

.tiq-chip {
    padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--tiq-border-strong);
    background: var(--tiq-surface-2); color: var(--tiq-text); font: 500 .9rem var(--tiq-font-body); cursor: pointer;
}
.tiq-chip.active { background: var(--tiq-orange); border-color: var(--tiq-orange); color: #1a0d05; font-weight: 700; }
.tiq-chip-round { min-width: 52px; }

.tiq-idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.tiq-idea {
    display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; min-height: 52px;
    border-radius: var(--tiq-radius-sm); border: 1px solid var(--tiq-border); background: var(--tiq-surface-2);
    color: var(--tiq-text); font: 500 .88rem var(--tiq-font-body); cursor: pointer;
}
.tiq-idea .mud-icon-root { color: var(--tiq-teal); flex-shrink: 0; }
.tiq-idea.active { border-color: var(--tiq-orange); background: rgba(240,123,58,.12); }

.tiq-live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.tiq-live-challenge { border-color: rgba(47,191,174,.35) !important; }
.tiq-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tiq-bad); box-shadow: 0 0 0 0 rgba(240,106,106,.6); animation: tiq-pulse 1.6s infinite; }
@keyframes tiq-pulse { 0% { box-shadow: 0 0 0 0 rgba(240,106,106,.6); } 70% { box-shadow: 0 0 0 8px rgba(240,106,106,0); } 100% { box-shadow: 0 0 0 0 rgba(240,106,106,0); } }

.tiq-score-list { display: grid; gap: 6px; }
.tiq-score-row, .tiq-podium-item {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center;
    padding: 6px 8px; border-radius: 10px; background: var(--tiq-surface-2);
}
.tiq-podium-item { grid-template-columns: 34px minmax(0, 1fr) auto auto auto; margin-top: 6px; }
.tiq-score-row.me, .tiq-board-row.me { outline: 1px solid var(--tiq-orange); background: rgba(240,123,58,.1); }
.tiq-rank {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    font: 800 .85rem var(--tiq-font-display); background: var(--tiq-surface-3); color: var(--tiq-text-2);
}
.tiq-rank.r1 { background: var(--tiq-gold); color: #2a1f00; }
.tiq-rank.r2 { background: var(--tiq-silver); color: #1b2328; }
.tiq-rank.r3 { background: var(--tiq-bronze); color: #2a1404; }
.tiq-rank.none { background: transparent; color: var(--tiq-text-3); }
.tiq-score-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiq-score-value { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.tiq-score-input {
    width: 96px; height: 40px; padding: 0 10px; border-radius: 10px; text-align: right;
    border: 1px solid var(--tiq-border-strong); background: var(--tiq-bg); color: var(--tiq-text);
    font: 700 1rem var(--tiq-font-body); font-variant-numeric: tabular-nums;
}
.tiq-score-input:focus { outline: 2px solid var(--tiq-orange); border-color: transparent; }
.tiq-points { font: 800 .9rem var(--tiq-font-display); color: var(--tiq-orange); white-space: nowrap; }

.tiq-session-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .tiq-session-grid { grid-template-columns: minmax(0, 1fr); } }

.tiq-board { display: grid; }
.tiq-board-row {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 64px 48px 48px 56px; gap: 6px; align-items: center;
    padding: 6px 6px; border-radius: 10px; font-size: .92rem;
}
.tiq-board-head { color: var(--tiq-text-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 520px) {
    .tiq-board-row { grid-template-columns: 40px minmax(0, 1fr) 60px 44px; }
    .tiq-hide-xs { display: none; }
}

.tiq-celebrate { border-color: rgba(245,200,76,.5) !important; background: linear-gradient(135deg, rgba(245,200,76,.12), rgba(240,123,58,.06)), var(--tiq-surface) !important; }
.tiq-badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.tiq-badge-medal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 90px; }
.tiq-badge-disc {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, #ffd978, var(--tiq-orange) 70%); color: #2a1404;
    box-shadow: 0 6px 18px rgba(240,123,58,.35), inset 0 0 0 3px rgba(255,255,255,.25);
}
.tiq-badge-medal.small .tiq-badge-disc { width: 42px; height: 42px; }
.tiq-badge-medal.locked .tiq-badge-disc { background: var(--tiq-surface-3); color: var(--tiq-text-3); box-shadow: inset 0 0 0 2px var(--tiq-border-strong); }
.tiq-badge-name { font-weight: 700; font-size: .82rem; line-height: 1.2; }
.tiq-badge-detail { color: var(--tiq-text-3); font-size: .74rem; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .tiq-live-dot { animation: none; } }

/* ---------- Account menu ---------- */
.tiq-menu-caption { padding: 10px 16px 2px; color: var(--tiq-text-3); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tiq-menu-title { font-weight: 600; line-height: 1.25; }
.tiq-menu-desc { color: var(--tiq-text-3); font-size: .78rem; line-height: 1.3; }
.tiq-choice:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Athlete home (kid-friendly) ---------- */
.tiq-kid { max-width: 720px; margin: 0 auto; padding-bottom: 24px; font-size: 1.05rem; }
.tiq-kid-h1 { font: 800 clamp(1.9rem, 6vw, 2.6rem)/1.1 var(--tiq-font-display); }
.tiq-kid-h2 { font: 800 1.35rem/1.2 var(--tiq-font-display); }
.tiq-kid-h3 { font: 700 1.1rem/1.25 var(--tiq-font-display); }
.tiq-hello { padding: 20px 0 18px; }
.tiq-avatar-xl {
    width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: var(--tiq-gradient-brand); color: #13090a; font: 800 1.5rem var(--tiq-font-display);
}
.tiq-bubbles { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.tiq-bubble {
    display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 18px;
    background: var(--tiq-surface-2); border: 1px solid var(--tiq-border);
}
.tiq-bubble b { font: 800 1.6rem/1.1 var(--tiq-font-display); color: var(--tiq-orange); }
.tiq-bubble span { color: var(--tiq-text-2); font-size: .85rem; }
.tiq-kid-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tiq-big-button {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; padding: 0 20px;
    border-radius: 18px; border: 0; background: var(--tiq-orange); color: #1a0d05; cursor: pointer; text-decoration: none;
    font: 800 1.15rem var(--tiq-font-display);
}
.tiq-big-button.secondary { background: var(--tiq-surface-3); color: var(--tiq-text); border: 1px solid var(--tiq-border-strong); }
.tiq-big-button:disabled { opacity: .5; cursor: not-allowed; }
.tiq-big-button:focus-visible { outline: 3px solid var(--tiq-teal); outline-offset: 2px; }
.tiq-kid-card { border-radius: 24px !important; }
.tiq-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tiq-face {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 16px; cursor: pointer;
    border: 2px solid var(--tiq-border-strong); background: var(--tiq-surface-2); color: var(--tiq-text-2); font: 600 .85rem var(--tiq-font-body);
}
.tiq-face .mud-icon-root { font-size: 2.2rem; }
.tiq-face.active { border-color: var(--tiq-orange); background: rgba(240,123,58,.16); color: var(--tiq-text); }
.tiq-face.active .mud-icon-root { color: var(--tiq-orange); }
.tiq-kid-fields { display: grid; gap: 10px; }
.tiq-kid-field { display: grid; gap: 4px; font-weight: 600; }
.tiq-kid-field input, .tiq-kid-input, .tiq-kid-text {
    width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--tiq-border-strong);
    background: var(--tiq-bg); color: var(--tiq-text); font: 600 1.1rem var(--tiq-font-body);
}
.tiq-kid-text { resize: vertical; font-weight: 500; }
.tiq-kid-input { max-width: 180px; text-align: right; font-variant-numeric: tabular-nums; }
.tiq-kid-field input:focus, .tiq-kid-input:focus, .tiq-kid-text:focus { outline: 2px solid var(--tiq-orange); border-color: transparent; }
.tiq-kid-place { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.tiq-kid-stack { display: grid; gap: 12px; }
.tiq-goal.reached { border-color: rgba(63,185,80,.5) !important; background: linear-gradient(135deg, rgba(63,185,80,.14), transparent), var(--tiq-surface-2) !important; }
.tiq-goal-done { display: inline-flex; align-items: center; gap: 4px; font: 800 1rem var(--tiq-font-display); color: var(--tiq-good); }
.tiq-progress { height: 16px; border-radius: 999px; background: var(--tiq-surface-3); overflow: hidden; }
.tiq-progress.small { height: 10px; }
.tiq-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--tiq-gradient-brand); }
.tiq-goal.reached .tiq-progress > span { background: var(--tiq-good); }
.tiq-kid-links { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; font-size: .95rem; }
.tiq-kid-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--tiq-text-2); }

/* ---------- Articles ---------- */
.tiq-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.tiq-article-card {
    display: flex; flex-direction: column; overflow: hidden; color: var(--tiq-text); text-decoration: none;
    background: var(--tiq-surface); border: 1px solid var(--tiq-border); border-radius: var(--tiq-radius);
    transition: transform .15s, border-color .15s;
}
.tiq-article-card:hover, .tiq-article-card:focus-visible { transform: translateY(-2px); border-color: var(--tiq-border-strong); }
.tiq-article-card img { width: 100%; height: auto; aspect-ratio: 32 / 15; object-fit: cover; display: block; }
.tiq-article-card-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.tiq-article-card-title { font: 700 1.15rem/1.3 var(--tiq-font-display); }
.tiq-article-card-summary { font-size: .92rem; line-height: 1.5; }
.tiq-article-card.featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.tiq-article-card.featured .tiq-article-card-title { font-size: 1.6rem; }
.tiq-article-card.featured .tiq-article-card-body { padding: 24px 28px; }
@media (max-width: 760px) { .tiq-article-card.featured { grid-template-columns: minmax(0, 1fr); } .tiq-article-card.featured .tiq-article-card-title { font-size: 1.3rem; } }

.tiq-article-wrap { max-width: 780px; margin: 0 auto; padding-bottom: 32px; }
.tiq-article-head { padding: 18px 0 20px; }
.tiq-article-title { font: 800 clamp(1.8rem, 5vw, 2.6rem)/1.15 var(--tiq-font-display); margin: 0 0 12px; }
.tiq-article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--tiq-text-3); font-size: .85rem; }
.tiq-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tiq-article-hero { width: 100%; height: auto; border-radius: var(--tiq-radius); border: 1px solid var(--tiq-border); display: block; margin-bottom: 8px; }

.tiq-article { font-size: 1.05rem; line-height: 1.7; color: var(--tiq-text); }
.tiq-article h2 { font: 700 1.45rem/1.3 var(--tiq-font-display); margin: 34px 0 10px; }
.tiq-article h3 { font: 700 1.15rem/1.3 var(--tiq-font-display); margin: 24px 0 8px; }
.tiq-article p { margin: 0 0 14px; color: var(--tiq-text-2); }
.tiq-article p strong, .tiq-article li strong { color: var(--tiq-text); }
.tiq-article ul, .tiq-article ol { margin: 0 0 16px; padding-left: 22px; color: var(--tiq-text-2); }
.tiq-article li { margin-bottom: 6px; }
.tiq-article a { color: var(--tiq-orange); }
.tiq-article blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--tiq-orange); color: var(--tiq-text); font-size: 1.15rem; font-style: italic; }
.tiq-article table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .95rem; }
.tiq-article th, .tiq-article td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--tiq-border); vertical-align: top; }
.tiq-article th { color: var(--tiq-text-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.tiq-article td { color: var(--tiq-text-2); }
.tiq-article-table { overflow-x: auto; }
.tiq-article-figure { margin: 24px 0; }
.tiq-article-figure img { width: 100%; height: auto; border-radius: var(--tiq-radius-sm); border: 1px solid var(--tiq-border); display: block; }
.tiq-article-figure figcaption { margin-top: 8px; color: var(--tiq-text-3); font-size: .85rem; }
.tiq-article-note { margin: 20px 0; padding: 14px 18px; border-radius: var(--tiq-radius-sm); background: var(--tiq-surface-2); border-left: 4px solid var(--tiq-teal); font-size: .98rem; }
.tiq-article-note.tone-orange { border-left-color: var(--tiq-orange); }
.tiq-article-note.tone-violet { border-left-color: var(--tiq-violet); }
.tiq-article-note-title { font: 700 .95rem var(--tiq-font-display); margin-bottom: 4px; color: var(--tiq-text); }
.tiq-article-note p:last-child { margin-bottom: 0; }
.tiq-article-sources { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--tiq-border); font-size: .85rem; color: var(--tiq-text-3); }
.tiq-article-sources a { color: var(--tiq-text-2); }

/* ---------- Routine editor skill boxes ---------- */
.tiq-skill-input {
    width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px;
    border: 1px solid var(--tiq-border-strong); background: var(--tiq-bg); color: var(--tiq-text);
    font: 600 .95rem var(--tiq-font-body);
}
.tiq-skill-input:focus { outline: 2px solid var(--tiq-orange); border-color: transparent; }
.tiq-skill-dd { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Sign-up steps ---------- */
.tiq-signup-steps { margin: 0 0 20px; }
.tiq-signup-count { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tiq-teal); margin-bottom: 10px; }
.tiq-signup-steps ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.tiq-signup-steps li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.tiq-signup-steps li + li::before { content: ""; position: absolute; top: 14px; right: calc(50% + 18px); width: calc(100% - 30px); height: 2px; background: var(--tiq-border-strong); }
.tiq-signup-steps li.done + li::before, .tiq-signup-steps li.done + li.done::before { background: var(--tiq-teal); }
.tiq-signup-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
    background: var(--tiq-surface-3); color: var(--tiq-text-3); border: 2px solid var(--tiq-border-strong); position: relative; z-index: 1; }
.tiq-signup-steps li.current .tiq-signup-dot { background: var(--tiq-orange); color: #fff; border-color: var(--tiq-orange); box-shadow: 0 0 0 4px rgba(240,123,58,.18); }
.tiq-signup-steps li.done .tiq-signup-dot { background: var(--tiq-teal); color: #06221e; border-color: var(--tiq-teal); }
.tiq-signup-label { font-size: .76rem; line-height: 1.25; color: var(--tiq-text-3); }
.tiq-signup-steps li.current .tiq-signup-label { color: var(--tiq-text); font-weight: 600; }
@media (max-width: 480px) { .tiq-signup-label { display: none; } .tiq-signup-steps li.current .tiq-signup-label { display: block; } }

/* ---------- Giving a child their own login ---------- */
.tiq-invite { border: 1px solid rgba(240,123,58,.35) !important; }
.tiq-steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--tiq-text-2); }
.tiq-invite-link { display: flex; gap: 8px; align-items: center; }
.tiq-invite-link input { flex: 1; min-width: 0; background: var(--tiq-surface); color: var(--tiq-text); border: 1px solid var(--tiq-border-strong);
    border-radius: var(--tiq-radius-sm); padding: 9px 12px; font-size: .85rem; font-family: ui-monospace, monospace; }

/* ---------- Help ---------- */
/* Page widths: the site column is 1280px (MainLayout). Forms and reading pages use .tiq-narrow; Help is a little wider for its tabs. */
.tiq-narrow { max-width: 760px; margin: 0 auto; }
.tiq-help { max-width: 980px; margin: 0 auto; }
.tiq-help-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tiq-help-role { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem;
    background: var(--tiq-surface-2); color: var(--tiq-text-2); border: 1px solid var(--tiq-border-strong); cursor: pointer; }
.tiq-help-role:hover { color: var(--tiq-text); border-color: var(--tiq-teal); }
.tiq-help-role.active { background: var(--tiq-orange); border-color: var(--tiq-orange); color: #fff; }
.tiq-help-role:focus-visible { outline: 2px solid var(--tiq-teal); outline-offset: 2px; }
.tiq-help-intro { font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }
.tiq-help-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tiq-help-steps li { display: flex; gap: 16px; padding: 18px 20px; }
.tiq-help-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--tiq-font-display);
    font-weight: 800; background: rgba(240,123,58,.15); color: var(--tiq-orange); }
.tiq-help-step-title { font-family: var(--tiq-font-display); font-size: 1.08rem; font-weight: 700; margin: 4px 0 6px; }
.tiq-help-where { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; color: var(--tiq-teal); }
.tiq-faq { width: 100%; }
.tiq-faq .mud-expand-panel { background: var(--tiq-surface) !important; border: 1px solid var(--tiq-border); border-radius: var(--tiq-radius-sm) !important; margin-bottom: 8px; }
.tiq-faq .mud-expand-panel-header { font-weight: 600; }
@media (max-width: 600px) { .tiq-help-steps li { padding: 14px; gap: 12px; } .tiq-help-role { padding: 8px 12px; font-size: .86rem; } }

/* ---------- Squad sessions ---------- */
.tiq-session-live { border: 1px solid rgba(47,191,174,.45) !important; }
.tiq-roll { display: grid; gap: 6px; }
.tiq-roll-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--tiq-border); }
.tiq-roll-row:last-child { border-bottom: 0; }
.tiq-roll-name { flex: 1; min-width: 140px; font-weight: 600; }
.tiq-roll-marks { display: flex; gap: 4px; }
.tiq-roll-mark { min-width: 64px; min-height: 40px; padding: 6px 10px; border-radius: 10px; font-weight: 600; font-size: .85rem; cursor: pointer;
    background: var(--tiq-surface-2); color: var(--tiq-text-2); border: 1px solid var(--tiq-border-strong); }
.tiq-roll-mark:focus-visible { outline: 2px solid var(--tiq-teal); outline-offset: 2px; }
.tiq-roll-mark.on.here { background: var(--tiq-teal); border-color: var(--tiq-teal); color: #06221e; }
.tiq-roll-mark.on.late { background: var(--tiq-warn); border-color: var(--tiq-warn); color: #2a1c02; }
.tiq-roll-mark.on.away { background: var(--tiq-bad); border-color: var(--tiq-bad); color: #2a0606; }
.tiq-roll-mark.on.excused { background: var(--tiq-violet); border-color: var(--tiq-violet); color: #120f2a; }
.tiq-roll-mark:disabled { opacity: .7; cursor: default; }
.tiq-session-row { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.tiq-session-row:hover { border-color: var(--tiq-teal) !important; }
.tiq-back { display: inline-flex; align-items: center; gap: 4px; color: var(--tiq-text-2); font-size: .9rem; text-decoration: none; }
.tiq-me { color: var(--tiq-orange); font-weight: 700; }
.tiq-home-session { border: 1px solid rgba(47,191,174,.45) !important; }
@media (max-width: 480px) { .tiq-roll-mark { min-width: 0; flex: 1; padding: 6px 4px; } .tiq-roll-marks { width: 100%; } }
