#tk-hdr-right .hdr-lb {
    display: none
}

#tk-hdr-right .hdr-ico {
    width: 36px;
    height: 36px;
    padding: 0!important;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    position: relative;
    flex-shrink: 0
}

#tk-hdr-right .hdr-ico .hdr-em {
    font-size: 17px;
    line-height: 1
}

#tk-hdr-right #excel-status-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px
}

#tk-hdr-right #tk-fb-btn svg {
    width: 18px;
    height: 18px
}

#tk-visitors {
    height: 36px;
    padding-top: 0!important;
    padding-bottom: 0!important
}

#tk-hdr-logo h1 {
    min-width: 0
}

@media (max-width: 899px) {
    #tk-hdr-logo p {
        display:none!important
    }
}

@media (max-width: 639px) {
    #tk-hdr-right .hdr-opt {
        display:none!important
    }

    #tk-hdr-right .hdr-ico {
        width: 34px;
        height: 34px
    }

    #tk-visitors {
        height: 34px;
        gap: 6px;
        padding-left: 8px!important;
        padding-right: 8px!important
    }
}

@media (max-width: 519px) {
    #tk-hdr-logo h1 .bipbee-badge {
        display:none
    }

    #tk-hdr-logo h1 {
        font-size: 15px
    }
}

@media (max-width: 429px) {
    #tk-hdr-logo h1 {
        display:none
    }

    #tk-hdr-right {
        gap: 5px!important
    }

    #tk-hdr-right .hdr-ico {
        width: 32px;
        height: 32px
    }
}

@keyframes tkvPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74,222,128,.7)
    }

    70% {
        box-shadow: 0 0 0 7px rgba(74,222,128,0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74,222,128,0)
    }
}

#tk-hdr-right #tk-yt-btn svg {
    width: 20px;
    height: 20px
}

#tk-yt-btn:hover {
    background: #cc0000!important
}

@media (max-width: 819px) {
    #tk-yt-btn {
        display:none!important
    }
}

#tk-fb-btn:hover {
    background: #0f66d6!important
}

#tk-fb-float {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 38;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1877F2;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 28px -8px rgba(24,119,242,.65),0 2px 6px rgba(0,0,0,.18);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 10px 8px 9px;
    max-width: calc(100vw - 28px);
    text-decoration: none;
    transition: transform .15s,box-shadow .15s
}

#tk-fb-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(24,119,242,.75),0 2px 6px rgba(0,0,0,.2)
}

#tk-fb-float .ic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

#tk-fb-float .tx {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 2px
}

#tk-fb-float .tx b {
    font-size: 14px;
    white-space: nowrap
}

#tk-fb-float .tx span {
    font-size: 12px;
    font-weight: 600;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

#tk-fb-float .x {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.22);
    color: #fff;
    font: 700 14px/22px sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0
}

#tk-fb-float .x:hover {
    background: rgba(255,255,255,.38)
}

#tk-fb-float.mini {
    padding: 6px
}

#tk-fb-float.mini .tx,#tk-fb-float.mini .x {
    display: none
}

@media print {
    #tk-fb-float,#tk-fb-btn,#tk-yt-btn {
        display: none!important
    }
}

.nav-wrap {
    max-width: 1440px!important
}

.nav-groups {
    gap: 6px
}

.nav-group {
    padding: 3px!important;
    border-radius: 16px;
    background: rgba(var(--g),.06);
    box-shadow: inset 0 0 0 1px rgba(var(--g),.14)
}

.nav-group+.nav-group::before {
    display: none!important
}

body.dark .nav-group {
    background: rgba(var(--g),.11);
    box-shadow: inset 0 0 0 1px rgba(var(--g),.26)
}

@media (min-width: 640px) {
    .nav-tile {
        width:64px;
        min-width: 64px;
        height: 72px;
        padding: 6px 0 8px;
        gap: 4px;
        white-space: normal;
        justify-content: flex-start
    }

    .nav-tile .nt-ic {
        width: 30px;
        height: 30px;
        font-size: 17px
    }

    .nav-tile .nt-lb {
        font-size: 12px;
        line-height: 1.12;
        letter-spacing: -.015em;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

    .tab-btn.nav-tile.bg-brand-teal::after {
        width: 22px;
        margin-left: -11px
    }
}

@media (min-width: 640px) and (max-width:1400px) {
    .nav-tile {
        width:60px;
        min-width: 60px
    }
}

@media (min-width: 640px) and (max-width:1300px) {
    .nav-tile {
        width:55px;
        min-width: 55px
    }

    .nav-tile .nt-lb {
        font-size: 11.5px
    }
}

.gp {
    --gp-ink: #24324e;
    --gp-muted: #62718a;
    --gp-accent: #3457a8;
    --gp-accent2: #168A45;
    --gp-on: #fff;
    --gp-surface: #fff;
    --gp-soft: #f5f7fc;
    --gp-soft2: #e8edf8;
    --gp-line: rgba(52,87,168,.14);
    --gp-male: #0369A1;
    --gp-female: #DB2777;
    --gp-star: #D97706;
    --gp-danger: #DC2626;
    --gp-shadow: 0 1px 2px rgba(16,24,40,.05), 0 18px 40px -24px rgba(52,87,168,.38);
    color: var(--gp-ink);
    display: flex;
    flex-direction: column;
    gap: 18px
}

body.dark .gp {
    --gp-ink: #e5edfc;
    --gp-muted: #a4b4d0;
    --gp-accent: #34D399;
    --gp-accent2: #22C55E;
    --gp-on: #04241E;
    --gp-surface: #1b263d;
    --gp-soft: #202c45;
    --gp-soft2: #2a3854;
    --gp-line: rgba(167,243,208,.16);
    --gp-male: #7DD3FC;
    --gp-female: #F9A8D4;
    --gp-star: #FBBF24;
    --gp-danger: #F87171;
    --gp-shadow: 0 18px 40px -24px rgba(0,0,0,.7)
}

.gp button {
    -webkit-tap-highlight-color: transparent
}

.gp button:focus-visible, .gp input:focus-visible, .gp select:focus-visible {
    outline: 3px solid color-mix(in srgb,var(--gp-accent) 45%,transparent);
    outline-offset: 2px
}

.gp-card {
    background: var(--gp-surface);
    border: 1px solid var(--gp-line);
    border-radius: 24px;
    box-shadow: var(--gp-shadow)
}

.gp-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(249,223,104,.35) 0%, transparent 45%), linear-gradient(120deg,#3457a8 0%,#0F7A55 55%,#168A45 100%);
    box-shadow: var(--gp-shadow)
}

.gp-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 28px solid rgba(255,255,255,.07)
}

.gp-hero h3 {
    font-size: clamp(18px,2.2vw,24px);
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 10px
}

.gp-hero p {
    font-size: 14px;
    opacity: .85;
    margin-top: 4px;
    max-width: 640px
}

.gp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 1
}

.gp-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    font-size: 13px;
    font-weight: 600
}

.gp-stat b {
    font-family: "Space Grotesk",monospace;
    font-size: 17px;
    font-weight: 700
}

.gp-panel {
    padding: 8px 20px 18px;
    display: flex;
    flex-direction: column
}

.gp-srow {
    display: grid;
    grid-template-columns: 210px minmax(0,1fr);
    align-items: center;
    gap: 10px 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gp-line)
}

.gp-shead {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.gp-shead b {
    display: block;
    font-size: 15px;
    font-weight: 800
}

.gp-shead small {
    display: block;
    font-size: 12.5px;
    color: var(--gp-muted);
    font-weight: 600;
    line-height: 1.35
}

.gp-num {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Space Grotesk",monospace;
    font-weight: 800;
    font-size: 15px;
    color: var(--gp-on);
    background: var(--gp-accent)
}

.gp-sbody {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.gp-sbody-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
}

.gp-strat-hint {
    padding-left: 4px
}

.gp-adv {
    margin-top: 12px;
    border: 1px solid var(--gp-line);
    border-radius: 16px;
    background: var(--gp-soft)
}

.gp-adv > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 16px;
    user-select: none
}

.gp-adv > summary::-webkit-details-marker {
    display: none
}

.gp-adv > summary:hover {
    background: var(--gp-soft2)
}

.gp-adv-ic {
    font-size: 18px
}

.gp-adv-t {
    flex: 1;
    min-width: 0
}

.gp-adv-t b {
    display: block;
    font-size: 14.5px;
    font-weight: 800
}

.gp-adv-t small {
    display: block;
    font-size: 12.5px;
    color: var(--gp-muted);
    font-weight: 600
}

.gp-adv-badge {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--gp-accent);
    background: var(--gp-surface);
    border: 1px solid var(--gp-line);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap
}

.gp-adv-car {
    font-size: 15px;
    color: var(--gp-muted);
    transition: transform .2s
}

.gp-adv[open] .gp-adv-car {
    transform: rotate(180deg)
}

.gp-adv-body {
    display: grid;
    gap: 16px;
    padding: 6px 14px 14px;
    grid-template-columns: minmax(0,1fr)
}

@media (min-width: 1024px) {
    .gp-adv-body {
        grid-template-columns:minmax(0,1fr) minmax(0,1fr)
    }
}

.gp-adv-body .gp-block {
    background: var(--gp-surface);
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    padding: 12px
}

.gp-conform {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto;
    gap: 8px;
    align-items: center
}

.gp-conform .gp-select {
    width: 100%;
    min-width: 0
}

.gp-note-f, .gp-note-c {
    display: none
}

.gp-panel[data-strategy="random"] .gp-note-f, .gp-panel[data-strategy="list"] .gp-note-f, .gp-panel[data-strategy="list"] .gp-note-c {
    display: block
}

.gp-panel[data-strategy="random"] #gp-factors .gp-chip:not([data-f="absent"]), .gp-panel[data-strategy="list"] #gp-factors .gp-chip:not([data-f="absent"]), .gp-panel[data-strategy="list"] .gp-conform, .gp-panel[data-strategy="list"] .gp-cons {
    opacity: .5
}

.gp-bgroup {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px
}

.gp-export .gp-label {
    margin-right: 2px
}

@media (max-width: 760px) {
    .gp-srow {
        grid-template-columns:minmax(0,1fr)
    }

    .gp-conform {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr)
    }

    .gp-conform #gp-con-type {
        grid-column: 1/-1;
        grid-row: 2
    }

    .gp-adv-badge {
        display: none
    }

    .gp-actions .gp-btn-primary {
        width: 100%;
        justify-content: center
    }
}

.gp-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0
}

.gp-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gp-muted);
    display: flex;
    align-items: center;
    gap: 6px
}

.gp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px
}

.gp-seg {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border-radius: 14px;
    background: var(--gp-soft);
    border: 1px solid var(--gp-line);
    flex-wrap: wrap
}

.gp-seg > button {
    padding: 7px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--gp-accent);
    white-space: nowrap;
    transition: background .2s,color .2s
}

.gp-seg > button:hover {
    background: color-mix(in srgb,var(--gp-accent) 8%,transparent)
}

.gp-seg > button[aria-pressed="true"] {
    background: var(--gp-accent);
    color: var(--gp-on);
    box-shadow: 0 6px 14px -6px color-mix(in srgb,var(--gp-accent) 70%,transparent)
}

.gp-step {
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    background: var(--gp-soft);
    border: 1px solid var(--gp-line);
    overflow: hidden
}

.gp-step button {
    width: 36px;
    height: 38px;
    font-size: 18px;
    font-weight: 800;
    color: var(--gp-accent)
}

.gp-step button:hover {
    background: var(--gp-soft2)
}

.gp-step input {
    width: 52px;
    height: 38px;
    text-align: center;
    background: var(--gp-surface);
    color: var(--gp-ink);
    border-inline:1px solid var(--gp-line);font-family: "Space Grotesk",monospace;
    font-weight: 700;
    font-size: 18px;
    outline: none;
    -moz-appearance: textfield
}

.gp-step input::-webkit-outer-spin-button, .gp-step input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.gp-preview {
    font-size: 13.5px;
    color: var(--gp-muted);
    font-weight: 600
}

.gp-preview b {
    color: var(--gp-ink);
    font-family: "Space Grotesk",monospace
}

.gp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.gp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 12px;
    border: 1px solid var(--gp-line);
    background: var(--gp-surface);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gp-muted);
    cursor: pointer;
    transition: all .18s;
    user-select: none
}

.gp-chip:hover {
    border-color: color-mix(in srgb,var(--gp-accent) 40%,transparent);
    color: var(--gp-ink)
}

.gp-chip[aria-pressed="true"] {
    background: color-mix(in srgb,var(--gp-accent2) 12%,var(--gp-surface));
    border-color: color-mix(in srgb,var(--gp-accent2) 55%,transparent);
    color: var(--gp-ink)
}

.gp-chip .gp-tick {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    font-size: 11px;
    opacity: .55
}

.gp-chip[aria-pressed="true"] .gp-tick {
    background: var(--gp-accent2);
    border-color: var(--gp-accent2);
    color: #fff;
    opacity: 1
}

.gp-chip[aria-pressed="true"] .gp-tick::before {
    content: "✓";
    font-weight: 900
}

.gp-select {
    height: 36px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid var(--gp-line);
    background: var(--gp-soft);
    color: var(--gp-ink);
    font-weight: 700;
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
    max-width: 100%
}

body.dark .gp-select option {
    background: #1b263d
}

.gp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--gp-line)
}

.gp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid var(--gp-line);
    background: var(--gp-soft);
    color: var(--gp-accent);
    transition: transform .12s, background .2s, box-shadow .2s;
    white-space: nowrap
}

.gp-btn:hover {
    background: var(--gp-soft2)
}

.gp-btn:active {
    transform: scale(.96)
}

.gp-btn:disabled {
    opacity: .45;
    pointer-events: none
}

.gp-btn-primary {
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg,#168A45,#3457a8);
    box-shadow: 0 10px 22px -10px rgba(22,138,69,.8)
}

.gp-btn-primary:hover {
    background: linear-gradient(135deg,#1A9C4F,#0A776A);
    box-shadow: 0 14px 26px -10px rgba(22,138,69,.9)
}

.gp-btn-primary.gp-rolling span:first-child {
    display: inline-block;
    animation: gpSpin .6s linear infinite
}

.gp-sp {
    flex: 1
}

@keyframes gpSpin {
    to {
        transform: rotate(360deg)
    }
}

.gp-cons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.gp-con {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid
}

.gp-con.apart {
    color: var(--gp-danger);
    border-color: color-mix(in srgb,var(--gp-danger) 35%,transparent);
    background: color-mix(in srgb,var(--gp-danger) 8%,var(--gp-surface))
}

.gp-con.together {
    color: var(--gp-accent2);
    border-color: color-mix(in srgb,var(--gp-accent2) 35%,transparent);
    background: color-mix(in srgb,var(--gp-accent2) 8%,var(--gp-surface))
}

.gp-con button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: rgba(0,0,0,.06)
}

.gp-con.bad {
    box-shadow: 0 0 0 2px var(--gp-danger)
}

.gp-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px
}

.gp-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    flex: 1
}

.gp-meter-track {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: var(--gp-soft2);
    overflow: hidden
}

.gp-meter-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg,#F59E0B,#22C55E);
    transition: width .6s cubic-bezier(.2,.8,.2,1)
}

.gp-meter b {
    font-family: "Space Grotesk",monospace;
    font-size: 20px
}

.gp-kpi {
    display: flex;
    flex-direction: column;
    padding: 4px 12px;
    border-left: 1px solid var(--gp-line)
}

.gp-kpi span {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gp-muted)
}

.gp-kpi b {
    font-size: 15px;
    font-weight: 800
}

.gp-hint {
    font-size: 12.5px;
    color: var(--gp-muted);
    font-weight: 600
}

.gp-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill,minmax(240px,1fr))
}

.gp-group {
    --gc: #168A45;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 20px;
    background: var(--gp-surface);
    border: 1px solid color-mix(in srgb,var(--gc) 30%,transparent);
    box-shadow: var(--gp-shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, outline-color .2s;
    outline: 3px dashed transparent;
    outline-offset: -3px
}

.gp-group.drop {
    outline-color: var(--gc);
    transform: translateY(-2px)
}

.gp-ghead {
    position: relative;
    padding: 12px 14px 10px;
    background: linear-gradient(135deg, color-mix(in srgb,var(--gc) 22%,var(--gp-surface)), color-mix(in srgb,var(--gc) 6%,var(--gp-surface)));
    border-bottom: 1px solid color-mix(in srgb,var(--gc) 20%,transparent)
}

.gp-ghead::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gc)
}

.gp-gtitle {
    display: flex;
    align-items: center;
    gap: 8px
}

.gp-gicon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: var(--gp-surface);
    box-shadow: 0 4px 10px -4px color-mix(in srgb,var(--gc) 60%,transparent);
    flex-shrink: 0
}

.gp-gname {
    font-weight: 800;
    font-size: 15px;
    color: color-mix(in srgb,var(--gc) 75%,var(--gp-ink));
    line-height: 1.15;
    cursor: text;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.dark .gp-gname {
    color: color-mix(in srgb,var(--gc) 55%,#fff)
}

.gp-gnum {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gp-muted)
}

.gp-gcount {
    margin-left: auto;
    font-family: "Space Grotesk",monospace;
    font-weight: 700;
    font-size: 14px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gp-surface);
    border: 1px solid var(--gp-line);
    white-space: nowrap
}

.gp-gbar {
    display: flex;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
    background: var(--gp-soft2)
}

.gp-gbar i {
    display: block;
    height: 100%
}

.gp-gmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gp-muted)
}

.gp-gmeta .m {
    color: var(--gp-male)
}

.gp-gmeta .f {
    color: var(--gp-female)
}

.gp-gmeta .s {
    color: var(--gp-star)
}

.gp-members {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 60px;
    max-height: 340px;
    overflow-y: auto
}

.gp-mem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 11px;
    background: var(--gp-soft);
    font-size: 13.5px;
    font-weight: 700;
    cursor: grab;
    transition: background .15s, transform .15s;
    min-width: 0
}

.gp-mem:hover {
    background: var(--gp-soft2)
}

.gp-mem.dragging {
    opacity: .4
}

.gp-mem.flash {
    animation: gpFlash 1.2s ease
}

@keyframes gpFlash {
    0%,40% {
        background: color-mix(in srgb,var(--gc) 35%,var(--gp-surface))
    }

    100% {
        background: var(--gp-soft)
    }
}

.gp-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0
}

.gp-av.m {
    background: linear-gradient(135deg,#38BDF8,#0369A1)
}

.gp-av.f {
    background: linear-gradient(135deg,#F472B6,#BE185D)
}

.gp-mname {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.gp-role {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
    background: color-mix(in srgb,var(--gc) 16%,var(--gp-surface));
    color: color-mix(in srgb,var(--gc) 70%,var(--gp-ink));
    border: 1px solid color-mix(in srgb,var(--gc) 25%,transparent)
}

body.dark .gp-role {
    color: color-mix(in srgb,var(--gc) 45%,#fff)
}

.gp-role.lead, body.dark .gp-role.lead, .gp-show .gp-role.lead {
    background: linear-gradient(135deg,#FDE68A,#F59E0B);
    color: #5B3A00;
    border-color: transparent
}

.gp-pin {
    font-size: 12px
}

.gp-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px 16px;
    color: var(--gp-muted);
    font-weight: 600;
    border: 2px dashed var(--gp-line);
    border-radius: 20px
}

.gp-reveal .gp-group {
    animation: gpCardIn .55s cubic-bezier(.2,.9,.25,1.2) both;
    animation-delay: calc(var(--i) * 110ms)
}

.gp-reveal .gp-mem {
    animation: gpMemIn .4s ease both;
    animation-delay: calc(var(--i) * 110ms + 250ms + var(--j) * 55ms)
}

@keyframes gpCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.94)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes gpMemIn {
    from {
        opacity: 0;
        transform: translateX(-10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.gp-roster {
    padding: 18px
}

.gp-rhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px
}

.gp-rhead h4 {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px
}

.gp-search {
    height: 36px;
    min-width: 200px;
    flex: 1;
    max-width: 320px;
    padding: 0 12px 0 34px;
    border-radius: 11px;
    border: 1px solid var(--gp-line);
    background: var(--gp-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235E7C77' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center;
    color: var(--gp-ink);
    font-weight: 600;
    font-size: 14px;
    outline: none;
    user-select: text;
    -webkit-user-select: text
}

.gp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gp-line);
    border-radius: 16px;
    max-height: 560px;
    overflow-y: auto
}

.gp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    min-width: 1040px
}

.gp-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--gp-soft2);
    color: var(--gp-muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
    padding: 10px;
    white-space: nowrap;
    cursor: pointer
}

.gp-table th[data-sort]:hover {
    color: var(--gp-ink)
}

.gp-table td {
    padding: 7px 10px;
    border-top: 1px solid var(--gp-line);
    vertical-align: middle;
    font-weight: 600
}

.gp-table tr:hover td {
    background: color-mix(in srgb,var(--gp-accent) 4%,transparent)
}

.gp-table tr.off td {
    opacity: .45
}

.gp-table tr.off td:first-child, .gp-table tr.off td:last-child {
    opacity: 1
}

.gp-gpill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    background: color-mix(in srgb,var(--gc) 14%,var(--gp-surface));
    color: color-mix(in srgb,var(--gc) 75%,var(--gp-ink));
    border: 1px solid color-mix(in srgb,var(--gc) 30%,transparent);
    cursor: pointer
}

body.dark .gp-gpill {
    color: color-mix(in srgb,var(--gc) 50%,#fff)
}

.gp-gpill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gc)
}

.gp-sw {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: var(--gp-soft2);
    border: 1px solid var(--gp-line);
    transition: background .2s;
    flex-shrink: 0
}

.gp-sw::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform .2s
}

.gp-sw[aria-checked="true"] {
    background: var(--gp-accent2);
    border-color: var(--gp-accent2)
}

.gp-sw[aria-checked="true"]::after {
    transform: translateX(16px)
}

.gp-mini-sel {
    height: 28px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid var(--gp-line);
    background: var(--gp-surface);
    color: var(--gp-ink);
    font-size: 13px;
    font-weight: 700;
    outline: none;
    cursor: pointer
}

body.dark .gp-mini-sel option {
    background: #1b263d
}

.gp-tag {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px
}

.gp-tag.m {
    color: var(--gp-male);
    background: color-mix(in srgb,var(--gp-male) 12%,transparent)
}

.gp-tag.f {
    color: var(--gp-female);
    background: color-mix(in srgb,var(--gp-female) 12%,transparent)
}

.gp-tag.abs {
    color: var(--gp-danger);
    background: color-mix(in srgb,var(--gp-danger) 12%,transparent)
}

.gp-rtools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--gp-soft);
    border: 1px solid var(--gp-line)
}

.gp-lvchips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.gp-lvchip {
    --lc: #94A3B8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--gp-line);
    background: var(--gp-surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--gp-ink);
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s
}

.gp-lvchip:hover {
    border-color: color-mix(in srgb,var(--lc) 55%,transparent)
}

.gp-lvchip[aria-pressed="true"] {
    border-color: var(--lc);
    box-shadow: 0 0 0 2px color-mix(in srgb,var(--lc) 30%,transparent);
    background: color-mix(in srgb,var(--lc) 10%,var(--gp-surface))
}

.gp-lvchip b {
    font-family: "Space Grotesk",monospace;
    font-size: 14px
}

.gp-lvdot {
    --lc: #94A3B8;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--lc);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0
}

.gp-lvdot.emo {
    background: color-mix(in srgb,var(--lc) 16%,var(--gp-surface));
    border: 1.5px solid color-mix(in srgb,var(--lc) 45%,transparent);
    font-size: 13px
}

.gp-btn-sm {
    height: 32px;
    padding: 0 11px;
    font-size: 13px;
    border-radius: 10px;
    background: var(--gp-surface)
}

.gp-kbd {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 5px;
    border: 1px solid var(--gp-line);
    border-bottom-width: 2px;
    background: var(--gp-surface);
    font-family: "Space Grotesk",monospace;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--gp-ink)
}

.gp-table th.lv-th {
    text-align: center;
    width: 66px;
    min-width: 66px;
    padding: 6px 2px;
    white-space: normal;
    background: color-mix(in srgb,var(--gp-accent) 9%,var(--gp-soft2))
}

.gp-table th.lv-th .gp-lvdot {
    margin: 0 auto 3px
}

.gp-table th.lv-th small {
    display: block;
    font-size: 9.5px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.1
}

.gp-table th.lv-first, .gp-table td.lv-first {
    border-left: 1px solid var(--gp-line)
}

.gp-table th.lv-last, .gp-table td.lv-last {
    border-right: 1px solid var(--gp-line)
}

.gp-table td.lv-td {
    text-align: center;
    padding: 4px 2px;
    background: color-mix(in srgb,var(--gp-accent) 3%,transparent)
}

.gp-lv {
    --lc: #94A3B8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb,var(--lc) 45%,transparent);
    display: inline-grid;
    place-items: center;
    color: transparent;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background .15s, color .15s, transform .1s, box-shadow .15s
}

.gp-lv::before {
    content: "✓"
}

.gp-lv:hover {
    background: color-mix(in srgb,var(--lc) 14%,transparent);
    color: color-mix(in srgb,var(--lc) 70%,transparent)
}

.gp-lv:active {
    transform: scale(.88)
}

.gp-lv:disabled {
    opacity: .25;
    cursor: not-allowed;
    background: none;
    color: transparent
}

.gp-lv[aria-pressed="true"] {
    background: var(--lc);
    border-color: var(--lc);
    color: #fff;
    box-shadow: 0 4px 10px -4px var(--lc)
}

.gp-table tbody tr:nth-child(even) td {
    background-color: color-mix(in srgb,var(--gp-soft) 60%,transparent)
}

.gp-table tbody tr[data-id] {
    outline: none;
    cursor: default
}

.gp-table tbody tr[data-id]:focus td {
    background-color: color-mix(in srgb,var(--gp-accent) 11%,var(--gp-surface))
}

.gp-table tbody tr[data-id]:focus td:first-child {
    box-shadow: inset 4px 0 0 var(--gp-accent)
}

.gp-gsel {
    --gc: #94A3B8;
    height: 30px;
    max-width: 200px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb,var(--gc) 45%,transparent);
    background: color-mix(in srgb,var(--gc) 13%,var(--gp-surface));
    color: color-mix(in srgb,var(--gc) 75%,var(--gp-ink));
    font-size: 13px;
    font-weight: 800;
    outline: none;
    cursor: pointer
}

.gp-gsel.none {
    border-style: dashed;
    background: var(--gp-surface);
    color: var(--gp-muted)
}

body.dark .gp-gsel {
    color: color-mix(in srgb,var(--gc) 50%,#fff)
}

body.dark .gp-gsel option {
    background: #1b263d;
    color: #e5edfc
}

.gp-go-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    margin-left: 4px;
    font-size: 13px;
    color: var(--gp-muted);
    vertical-align: middle
}

.gp-go-btn:hover {
    background: var(--gp-soft2);
    color: var(--gp-ink)
}

.gp-show {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: radial-gradient(120% 100% at 50% 0%,#0E3B35 0%,#071A17 70%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: clamp(14px,2.5vw,32px);
    gap: 18px
}

.gp-show-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.gp-show-head h2 {
    font-size: clamp(20px,3vw,34px);
    font-weight: 800;
    letter-spacing: -.01em
}

.gp-show-head .gp-btn {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.2)
}

.gp-show .gp-grid {
    flex: 1;
    overflow: auto;
    align-content: start;
    grid-template-columns: repeat(auto-fill,minmax(min(100%,clamp(220px,22vw,320px)),1fr))
}

.gp.gp-show, body.dark .gp.gp-show {
    --gp-surface: #11302B;
    --gp-soft: #173C36;
    --gp-soft2: #1F4A43;
    --gp-ink: #F0FDF9;
    --gp-muted: #A7C9C1;
    --gp-line: rgba(255,255,255,.12);
    --gp-male: #7DD3FC;
    --gp-female: #F9A8D4;
    --gp-star: #FCD34D;
    color: var(--gp-ink)
}

.gp-show .gp-role {
    color: color-mix(in srgb,var(--gc) 45%,#fff)
}

.gp-show .gp-mem {
    font-size: clamp(13px,1.15vw,17px);
    padding: 8px 10px
}

.gp-show .gp-gname {
    font-size: clamp(16px,1.5vw,22px);
    color: color-mix(in srgb,var(--gc) 50%,#fff)
}

.gp-show .gp-members {
    max-height: none
}

.gp-show .gp-mname {
    white-space: normal;
    overflow: visible;
    line-height: 1.25
}

.gp-classbar {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.gp-classbar .gp-select {
    min-width: 170px;
    height: 40px;
    font-size: 15px
}

.gp-paste {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--gp-line)
}

.gp-paste[hidden] {
    display: none
}

.gp-paste-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0,1fr)
}

@media (min-width: 900px) {
    .gp-paste-grid {
        grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)
    }
}

.gp-textarea {
    width: 100%;
    min-height: 190px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--gp-line);
    background: var(--gp-soft);
    color: var(--gp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    user-select: text;
    -webkit-user-select: text
}

.gp-textarea:focus {
    border-color: color-mix(in srgb,var(--gp-accent) 50%,transparent)
}

.gp-input {
    height: 36px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--gp-line);
    background: var(--gp-soft);
    color: var(--gp-ink);
    font-weight: 700;
    font-size: 14px;
    outline: none;
    min-width: 180px;
    user-select: text;
    -webkit-user-select: text
}

.gp-input[hidden] {
    display: none
}

.gp-pv-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    max-height: 230px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13.5px;
    font-weight: 700
}

.gp-pv-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 9px;
    background: var(--gp-soft);
    min-width: 0
}

.gp-pv-list li span.n {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.gp-pv-list li small {
    font-family: "Space Grotesk",monospace;
    color: var(--gp-muted);
    width: 22px;
    text-align: right
}

.gp-pv-empty {
    padding: 18px;
    text-align: center;
    color: var(--gp-muted);
    font-size: 13px;
    font-weight: 600
}

.os {
    --os-ink: #24324e;
    --os-muted: #62718a;
    --os-accent: #3457a8;
    --os-accent2: #168A45;
    --os-on: #fff;
    --os-surface: #fff;
    --os-soft: #f5f7fc;
    --os-soft2: #e8edf8;
    --os-line: rgba(52,87,168,.14);
    --os-shadow: 0 1px 2px rgba(16,24,40,.05), 0 18px 40px -24px rgba(52,87,168,.38);
    color: var(--os-ink);
    display: flex;
    flex-direction: column;
    gap: 16px
}

body.dark .os {
    --os-ink: #e5edfc;
    --os-muted: #a4b4d0;
    --os-accent: #34D399;
    --os-accent2: #22C55E;
    --os-on: #04241E;
    --os-surface: #1b263d;
    --os-soft: #202c45;
    --os-soft2: #2a3854;
    --os-line: rgba(167,243,208,.16);
    --os-shadow: 0 18px 40px -24px rgba(0,0,0,.7)
}

.os button {
    -webkit-tap-highlight-color: transparent
}

.os button:focus-visible, .os input:focus-visible, .os select:focus-visible {
    outline: 3px solid color-mix(in srgb,var(--os-accent) 45%,transparent);
    outline-offset: 2px
}

.os-card {
    background: var(--os-surface);
    border: 1px solid var(--os-line);
    border-radius: 22px;
    box-shadow: var(--os-shadow)
}

.os-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 18px
}

.os-head h3 {
    font-size: clamp(18px,2vw,22px);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.01em
}

.os-head p {
    font-size: 13.5px;
    color: var(--os-muted);
    margin-top: 2px
}

.os-sp {
    flex: 1
}

.os-seg {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border-radius: 13px;
    background: var(--os-soft);
    border: 1px solid var(--os-line);
    flex-wrap: wrap
}

.os-seg > button {
    padding: 7px 12px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--os-accent);
    white-space: nowrap;
    transition: background .2s,color .2s
}

.os-seg > button:hover {
    background: color-mix(in srgb,var(--os-accent) 8%,transparent)
}

.os-seg > button[aria-pressed="true"] {
    background: var(--os-accent);
    color: var(--os-on)
}

.os-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 13.5px;
    border: 1px solid var(--os-line);
    background: var(--os-soft);
    color: var(--os-accent);
    white-space: nowrap;
    transition: transform .12s, background .2s
}

.os-btn:hover {
    background: var(--os-soft2)
}

.os-btn:active {
    transform: scale(.96)
}

.os-btn[aria-pressed="true"] {
    background: color-mix(in srgb,#FACC15 30%,var(--os-surface));
    border-color: #EAB308;
    color: var(--os-ink)
}

.os-btn-go {
    height: 42px;
    padding: 0 18px;
    font-size: 15px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg,#168A45,#3457a8);
    box-shadow: 0 10px 22px -10px rgba(22,138,69,.8)
}

.os-btn-go:hover {
    background: linear-gradient(135deg,#1A9C4F,#0A776A)
}

.os-btn-go.on {
    background: linear-gradient(135deg,#E94B4B,#B91C1C);
    box-shadow: 0 10px 22px -10px rgba(220,38,38,.8)
}

.os-main {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0,1fr)
}

@media (min-width: 1100px) {
    .os-main {
        grid-template-columns:minmax(0,1fr) 310px
    }
}

.os-scope {
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(160deg,#2B3B38,#17211F);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--os-shadow);
    color: #dce8ff
}

.os-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 2px 6px 10px;
    font-family: "Space Grotesk",monospace;
    font-size: 13.5px;
    font-weight: 700
}

.os-bar .ch {
    padding: 2px 8px;
    border-radius: 6px;
    background: #FACC15;
    color: #1F2937
}

.os-bar .led {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #475569;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle
}

.os-bar .led.run {
    background: #22C55E;
    box-shadow: 0 0 10px #22C55E
}

.os-bar .led.hold {
    background: #F59E0B;
    box-shadow: 0 0 10px #F59E0B
}

.os-bar .dim {
    color: #86A89F;
    font-weight: 600
}

.os-canvas-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px #0B1311, 0 0 0 1px rgba(255,255,255,.06)
}

#os-scope {
    display: block;
    width: 100%;
    aspect-ratio: 5/4;
    max-height: 72vh;
    touch-action: none;
    cursor: crosshair;
    background: #04110D
}

.os-ctrl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 4px 2px
}

.os-knob {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1)
}

.os-knob span.l {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #86A89F;
    padding: 0 4px
}

.os-knob button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-weight: 900;
    color: #dce8ff;
    background: rgba(255,255,255,.08)
}

.os-knob button:hover {
    background: rgba(255,255,255,.16)
}

.os-knob b {
    min-width: 78px;
    text-align: center;
    font-family: "Space Grotesk",monospace;
    font-size: 14.5px;
    color: #FDE68A
}

.os-sbtn {
    height: 38px;
    padding: 0 11px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    color: #dce8ff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap
}

.os-sbtn:hover {
    background: rgba(255,255,255,.14)
}

.os-sbtn[aria-pressed="true"] {
    background: #FACC15;
    color: #1F2937;
    border-color: #FACC15
}

.os-sbtn.hold[aria-pressed="true"] {
    background: #F59E0B;
    border-color: #F59E0B
}

.os-range {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #86A89F
}

.os-range input {
    width: 110px;
    accent-color: #FACC15
}

.os-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0
}

.os-meas {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.os-meas-h {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 8px
}

.os-meas-h h4 {
    font-size: 15px;
    font-weight: 800
}

.os-m {
    position: relative;
    padding: 9px 10px;
    border-radius: 14px;
    background: var(--os-soft);
    border: 1px solid var(--os-line);
    min-width: 0
}

.os-m.wide {
    grid-column: 1/-1
}

.os-m .k {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--os-muted);
    display: flex;
    justify-content: space-between;
    gap: 4px
}

.os-m .k i {
    font-style: italic;
    font-family: "Times New Roman",serif;
    font-size: 14px;
    letter-spacing: 0;
    color: var(--os-accent);
    font-weight: 700
}

.os-m .v {
    font-family: "Space Grotesk",monospace;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.15;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.os-m .v small {
    font-size: 13px;
    font-weight: 600;
    color: var(--os-muted);
    margin-left: 3px
}

.os-m .s {
    font-size: 12px;
    color: var(--os-muted);
    font-weight: 600;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.os-quiz .os-m[data-q] .v, .os-quiz .os-m[data-q] .s {
    filter: blur(9px);
    user-select: none
}

.os-quiz .os-m[data-q]::after {
    content: "?";
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 22px;
    font-weight: 900;
    color: var(--os-accent)
}

.os-cur {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.os-cur h4 {
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px
}

.os-cur-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--os-soft)
}

.os-cur-row b {
    font-family: "Space Grotesk",monospace;
    font-size: 15px
}

.os-cur-row input {
    width: 64px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--os-line);
    background: var(--os-surface);
    color: var(--os-ink);
    text-align: center;
    font-family: "Space Grotesk",monospace;
    font-weight: 700;
    outline: none
}

.os-hint {
    font-size: 12.5px;
    color: var(--os-muted);
    font-weight: 600;
    line-height: 1.45
}

.os-hint b {
    color: var(--os-ink)
}

.os-lower {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0,1fr)
}

@media (min-width: 900px) {
    .os-lower {
        grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)
    }
}

@media (min-width: 1300px) {
    .os-lower {
        grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr)
    }
}

.os-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0
}

.os-panel h4 {
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

#os-spec {
    display: block;
    width: 100%;
    height: 190px;
    border-radius: 12px;
    background: #04110D
}

.os-sel {
    height: 32px;
    padding: 0 8px;
    border-radius: 9px;
    border: 1px solid var(--os-line);
    background: var(--os-soft);
    color: var(--os-ink);
    font-weight: 700;
    font-size: 13px;
    outline: none;
    cursor: pointer
}

body.dark .os-sel option {
    background: #1b263d
}

.os-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 700
}

.os-field label {
    min-width: 86px;
    color: var(--os-muted)
}

.os-field input[type=range] {
    flex: 1;
    min-width: 120px;
    accent-color: var(--os-accent2)
}

.os-num {
    width: 84px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--os-line);
    background: var(--os-surface);
    color: var(--os-ink);
    text-align: center;
    font-family: "Space Grotesk",monospace;
    font-weight: 700;
    outline: none
}

.os-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--os-line);
    background: var(--os-surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--os-muted);
    cursor: pointer;
    user-select: none
}

.os-chip[aria-pressed="true"] {
    background: color-mix(in srgb,var(--os-accent2) 12%,var(--os-surface));
    border-color: color-mix(in srgb,var(--os-accent2) 55%,transparent);
    color: var(--os-ink)
}

.os-chip .t {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    font-size: 11px;
    opacity: .55
}

.os-chip[aria-pressed="true"] .t {
    background: var(--os-accent2);
    border-color: var(--os-accent2);
    color: #fff;
    opacity: 1
}

.os-chip[aria-pressed="true"] .t::before {
    content: "✓";
    font-weight: 900
}

.os-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.os-presets button {
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 800;
    background: var(--os-soft);
    border: 1px solid var(--os-line);
    color: var(--os-accent)
}

.os-presets button:hover {
    background: var(--os-soft2)
}

.os-formula {
    display: grid;
    gap: 6px
}

.os-f {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--os-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--os-muted)
}

.os-f b {
    font-family: "Times New Roman",serif;
    font-style: italic;
    font-size: 16px;
    color: var(--os-ink);
    white-space: nowrap;
    min-width: 132px
}

.os-note {
    font-size: 12px;
    color: var(--os-muted);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px dashed var(--os-line);
    line-height: 1.45
}

.os-fs-btn .fs-ic {
    font-size: 15px;
    line-height: 1
}

.os-fs-btn[aria-pressed="true"] {
    background: var(--os-ink);
    color: var(--os-surface);
    border-color: var(--os-ink)
}

.os.tk-fs {
    --os-gap: 12px;
    gap: var(--os-gap);
    padding: 12px 14px;
    background: #E9F3F0;
    overflow-y: auto;
    overscroll-behavior: contain
}

body.dark .os.tk-fs {
    background: #0B1514
}

.os.tk-fs .os-head {
    padding: 8px 12px;
    gap: 10px;
    border-radius: 16px
}

.os.tk-fs .os-head p {
    display: none
}

.os.tk-fs .os-head h3 {
    font-size: 18px
}

.os.tk-fs .os-main {
    flex: none;
    gap: var(--os-gap);
    height: calc(100vh - 24px - var(--os-headh, 58px) - var(--os-gap));
    min-height: 380px
}

.os.tk-fs .os-scope {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 16px
}

.os.tk-fs .os-canvas-wrap {
    flex: 1 1 auto;
    min-height: 0
}

.os.tk-fs #os-scope {
    height: 100%;
    aspect-ratio: auto;
    max-height: none
}

.os.tk-fs .os-bar {
    font-size: 15px
}

.os.tk-fs .os-ctrl {
    padding-top: 10px
}

.os.tk-fs .os-side {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin
}

.os.tk-fs .os-meas, .os.tk-fs .os-cur {
    border-radius: 16px
}

.os.tk-fs .os-m .v {
    font-size: clamp(20px,1.9vw,30px)
}

.os.tk-fs .os-m .k {
    font-size: 12.5px
}

@media (min-width: 900px) {
    .os.tk-fs .os-main {
        grid-template-columns:minmax(0,1fr) clamp(280px,24vw,380px)
    }
}

@media (max-width: 899px), (max-height:520px) {
    .os.tk-fs .os-main {
        height:auto;
        min-height: 0
    }

    .os.tk-fs .os-canvas-wrap {
        flex: none
    }

    .os.tk-fs #os-scope {
        height: auto;
        aspect-ratio: 5/4;
        max-height: 78vh
    }

    .os.tk-fs .os-side {
        overflow: visible
    }
}

.os-scope {
    position: relative
}

.os-bar .led.tape {
    background: #38BDF8;
    box-shadow: 0 0 10px #38BDF8
}

.os-sbtn:disabled {
    opacity: .35;
    cursor: not-allowed
}

.os-tape {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.os-tape-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    font-family: "Space Grotesk",monospace;
    font-size: 13px;
    font-weight: 700;
    color: #A7C9BF;
    min-width: 0
}

.os-tape-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0
}

.os-tape-name.rec {
    color: #FCA5A5
}

.os-mini-seg {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    flex: none
}

.os-mini-seg button {
    padding: 3px 9px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 800;
    color: #dce8ff;
    white-space: nowrap
}

.os-mini-seg button[aria-pressed="true"] {
    background: #FACC15;
    color: #1F2937
}

.os-mini-seg button:disabled {
    opacity: .35;
    cursor: not-allowed
}

.os-ov-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px #0B1311, 0 0 0 1px rgba(255,255,255,.06)
}

#os-ov {
    display: block;
    width: 100%;
    height: 96px;
    touch-action: none;
    cursor: crosshair;
    background: #04110D
}

.os-ov-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #86A89F;
    pointer-events: none;
    line-height: 1.45
}

.os-ov-empty b {
    color: #dce8ff
}

.os.os-drop .os-ov-wrap {
    box-shadow: inset 0 0 0 3px #FACC15
}

.os.os-drop .os-ov-empty {
    color: #FDE68A
}

.os-tape-ctrl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 2px 2px 0
}

.os-tbtn {
    height: 32px;
    min-width: 32px;
    padding: 0 9px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 13px;
    color: #dce8ff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap
}

.os-tbtn:hover:not(:disabled) {
    background: rgba(255,255,255,.15)
}

.os-tbtn:disabled {
    opacity: .35;
    cursor: not-allowed
}

.os-tbtn[aria-pressed="true"] {
    background: #FACC15;
    color: #1F2937;
    border-color: #FACC15
}

.os-tplay {
    background: #16A34A;
    border-color: #16A34A;
    color: #fff;
    padding: 0 13px
}

.os-tplay:hover:not(:disabled) {
    background: #15803D
}

.os-tplay.on {
    background: #DC2626;
    border-color: #DC2626
}

.os-tsel {
    height: 32px;
    border-radius: 9px;
    padding: 0 6px;
    background: rgba(255,255,255,.07);
    color: #dce8ff;
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 700;
    font-size: 13px;
    outline: none;
    cursor: pointer
}

.os-tsel:disabled {
    opacity: .35;
    cursor: not-allowed
}

.os-tsel option {
    background: #17211F
}

.os-tsep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.14);
    margin: 0 2px
}

.os-tpos {
    min-width: 96px;
    text-align: center;
    font-family: "Space Grotesk",monospace;
    font-size: 14px;
    color: #FDE68A
}

.os.tk-fs #os-ov {
    height: 84px
}

.os-pop {
    position: absolute;
    z-index: 30;
    right: 12px;
    bottom: 58px;
    width: min(340px, calc(100% - 24px));
    padding: 14px;
    border-radius: 16px;
    background: #1B2826;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.85);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #dce8ff
}

.os-pop[hidden] {
    display: none
}

.os-pop h5 {
    font-size: 14.5px;
    font-weight: 800
}

.os-pop .r {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    flex-wrap: wrap
}

.os-pop .r .l {
    min-width: 92px;
    color: #86A89F
}

.os-pop input[type=range] {
    flex: 1;
    min-width: 100px;
    accent-color: #FACC15
}

.os-sws {
    display: flex;
    gap: 8px
}

.os-sw {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.25)
}

.os-sw[aria-pressed="true"] {
    outline: 2px solid #fff;
    outline-offset: 2px
}

.os-pop .os-chip {
    background: rgba(255,255,255,.06);
    color: #dce8ff;
    border-color: rgba(255,255,255,.14)
}

.os-pop .os-chip[aria-pressed="true"] {
    background: rgba(74,222,128,.2);
    color: #fff;
    border-color: rgba(74,222,128,.6)
}

.os-pop .keys {
    font-size: 12px;
    color: #86A89F;
    line-height: 1.7;
    font-weight: 600
}

.os-pop kbd {
    display: inline-block;
    min-width: 18px;
    padding: 0 4px;
    margin: 0 1px;
    border-radius: 5px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: #e5edfc;
    font-family: "Space Grotesk",monospace;
    font-size: 11.5px;
    text-align: center
}

.os-selc {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.os-selc h4 {
    font-size: 15px;
    font-weight: 800
}

.os-selc .os-cur-row {
    padding: 5px 10px
}

.os-selc .os-cur-row b {
    font-size: 14.5px;
    text-align: right
}

.os-selc.os-quiz [data-q] b {
    filter: blur(8px);
    user-select: none
}

#os-source button.osp-on::after, #os-source button.osp-wait::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    vertical-align: 1px
}

#os-source button.osp-on::after {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.25)
}

#os-source button.osp-wait::after {
    background: #f59e0b;
    animation: ospBlink 1.2s infinite
}

@keyframes ospBlink {
    50% {
        opacity: .3
    }
}

.osp {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3,20,17,.62);
    backdrop-filter: blur(3px)
}

.osp[hidden] {
    display: none !important
}

.osp-card {
    width: min(760px,100%);
    max-height: 94vh;
    overflow: auto;
    background: #fff;
    color: #0f2d28;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    animation: ospUp .22s ease-out
}

@keyframes ospUp {
    from {
        transform: translateY(20px);
        opacity: 0
    }
}

.osp-h {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(110deg,#273b77,#3859a0 60%,#0f8a7a);
    border-radius: 24px 24px 0 0
}

.osp-h b {
    flex: 1;
    font-size: 17px
}

.osp-h button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 15px;
    cursor: pointer
}

.osp-b {
    display: grid;
    grid-template-columns: minmax(220px,280px) 1fr;
    gap: 20px;
    padding: 18px 20px 20px
}

.osp-l {
    text-align: center
}

.osp-qr svg {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 0 0 1px #e2ece9
}

.osp-code {
    font: 800 40px/1.1 Consolas,"Space Grotesk",monospace;
    letter-spacing: 6px;
    color: #304b89;
    margin-top: 8px
}

.osp-u {
    font-size: 14px;
    color: #55736d;
    font-weight: 700
}

.osp-u button {
    border: 1px solid #d5e5e1;
    background: #f3f8f7;
    border-radius: 7px;
    cursor: pointer;
    padding: 0 6px;
    color: #304b89
}

.osp-wait {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #55736d;
    font-weight: 700;
    line-height: 1.5;
    padding: 10px;
    background: #f3f8f7;
    border-radius: 16px
}

.osp-spin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #b7ccff;
    border-top-color: #4565b6;
    animation: ospSp 1s linear infinite;
    flex: none
}

@keyframes ospSp {
    to {
        transform: rotate(360deg)
    }
}

.osp-r ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 15px;
    color: #28463f
}

.osp-r ol li {
    margin-bottom: 4px
}

.osp-st {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 6px;
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px
}

.osp-st i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none
}

.osp-st.on {
    background: #ecfdf5;
    color: #065f46
}

.osp-st.on i {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.25)
}

.osp-st.wait {
    background: #fffbeb;
    color: #92400e
}

.osp-st.wait i {
    background: #f59e0b;
    animation: ospBlink 1.2s infinite
}

.osp-m {
    height: 10px;
    border-radius: 6px;
    background: #e5efec;
    overflow: hidden
}

.osp-m i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#22c55e,#facc15 70%,#ef4444);
    transition: width .1s
}

.osp-k {
    font-size: 13px;
    color: #55736d;
    margin-top: 4px;
    min-height: 16px;
    font-variant-numeric: tabular-nums
}

.osp-n {
    font-size: 13.5px;
    color: #55736d;
    line-height: 1.5;
    margin: 10px 0
}

.osp-a {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.osp-a .os-btn {
    color: #0f2d28
}

.osp-a .os-btn-go {
    color: #fff
}

@media (max-width: 640px) {
    .osp-b {
        grid-template-columns:1fr
    }

    .osp-code {
        font-size: 32px
    }
}

#hc-root .hc-card {
    background: #fff;
    border: 2px solid rgba(22,138,69,.2);
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(52,87,168,.06);
    padding: 1.25rem
}

#hc-root .hc-quote {
    background: linear-gradient(90deg,#fff7d6,#e9f7ef);
    border: 1.5px dashed rgba(52,87,168,.25);
    border-radius: 1rem;
    padding: .6rem .9rem;
    display: flex;
    gap: .6rem;
    align-items: center
}

#hc-root .hc-tabs {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin
}

#hc-root .hc-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    border: 1.5px solid rgba(52,87,168,.18);
    background: #f4faf6;
    color: #3457a8;
    font-weight: 800;
    font-size: 0.8425rem;
    transition: all .15s
}

#hc-root .hc-tab:hover {
    background: #fdf3c4
}

#hc-root .hc-tab.on {
    background: #3457a8;
    color: #fff;
    border-color: #3457a8;
    box-shadow: 0 4px 12px rgba(52,87,168,.25)
}

#hc-root .hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem .85rem;
    border-radius: .8rem;
    font-weight: 800;
    font-size: 0.8625rem;
    transition: transform .1s,filter .15s;
    border: 0;
    cursor: pointer
}

#hc-root .hc-btn:active {
    transform: scale(.95)
}

#hc-root .hc-btn:hover {
    filter: brightness(1.06)
}

#hc-root .hc-pri {
    background: #168A45;
    color: #fff;
    box-shadow: 0 3px 10px rgba(22,138,69,.3)
}

#hc-root .hc-sec {
    background: #f4faf6;
    color: #3457a8;
    border: 1.5px solid rgba(52,87,168,.2)
}

#hc-root .hc-warm {
    background: #F9DF68;
    color: #3457a8
}

#hc-root .hc-red {
    background: #fde8e4;
    color: #b42318;
    border: 1.5px solid #f6c3b8
}

#hc-root .hc-in {
    border: 1.5px solid rgba(52,87,168,.2);
    border-radius: .7rem;
    padding: .4rem .6rem;
    font-size: 0.8825rem;
    color: #3457a8;
    background: #fff;
    min-width: 0
}

#hc-root .hc-muted {
    color: rgba(52,87,168,.65);
    font-size: 0.8125rem
}

#hc-root .hc-gift {
    aspect-ratio: 1/1;
    border-radius: 1.2rem;
    border: 2px solid rgba(52,87,168,.15);
    background: linear-gradient(160deg,#fff7d6,#ffe9a8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #3457a8;
    cursor: pointer;
    transition: transform .15s;
    position: relative
}

#hc-root .hc-gift:hover {
    transform: translateY(-3px) rotate(-2deg)
}

#hc-root .hc-gift.open {
    background: #f1f5f3;
    cursor: default;
    opacity: .75
}

#hc-root .hc-gift.open:hover {
    transform: none
}

#hc-root .hc-gift .em {
    font-size: 2.4rem;
    line-height: 1
}

#hc-root .hc-shake {
    animation: hc-shake .6s ease-in-out
}

@keyframes hc-shake {
    0%,100% {
        transform: rotate(0)
    }

    20% {
        transform: rotate(-12deg) scale(1.05)
    }

    40% {
        transform: rotate(10deg) scale(1.1)
    }

    60% {
        transform: rotate(-8deg) scale(1.12)
    }

    80% {
        transform: rotate(6deg) scale(1.15)
    }
}

#hc-root .hc-drop {
    animation: hc-drop .55s cubic-bezier(.3,1.4,.6,1)
}

@keyframes hc-drop {
    from {
        transform: translateY(-160px);
        opacity: .3
    }

    to {
        transform: none;
        opacity: 1
    }
}

#hc-root .hc-mood {
    border-radius: 1.1rem;
    border: 2px solid rgba(52,87,168,.12);
    background: #f8fbf9;
    padding: .6rem .3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    cursor: pointer;
    transition: transform .12s
}

#hc-root .hc-mood:active {
    transform: scale(.92)
}

#hc-root .hc-mood .em {
    font-size: 2.1rem;
    line-height: 1
}

#hc-root .hc-bar {
    height: .55rem;
    border-radius: 999px;
    background: #e6efe9;
    overflow: hidden
}

#hc-root .hc-bar>i {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .3s
}

#hc-root .hc-light {
    border-radius: 1.1rem;
    border: 2px solid transparent;
    padding: .7rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    background: #f8fbf9;
    text-align: left
}

#hc-root .hc-light.on {
    border-color: currentColor;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.08)
}

#hc-root .hc-dot {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,.2)
}

#hc-root .hc-bigdot {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    margin: 0 auto;
    animation: hc-glow 2s ease-in-out infinite
}

@keyframes hc-glow {
    0%,100% {
        box-shadow: 0 0 25px 4px var(--c)
    }

    50% {
        box-shadow: 0 0 55px 14px var(--c)
    }
}

.hc-breath {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    margin: 0 auto;
    background: radial-gradient(circle,#b7ccff,#34d399);
    animation: hc-breathe 12s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #065f46
}

@keyframes hc-breathe {
    0% {
        transform: scale(.6)
    }

    33% {
        transform: scale(1.1)
    }

    66% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(.6)
    }
}

#hc-stage {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 30%,#0e7c6e,#063f39 75%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center
}

#hc-stage .hc-x {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px
}

#hc-stage .hc-x button {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer
}

#hc-stage .hc-x button:hover {
    background: rgba(255,255,255,.28)
}

#hc-stage canvas {
    position: absolute;
    inset: 0;
    pointer-events: none
}

#hc-stage .hc-pop {
    animation: hc-pop .5s cubic-bezier(.3,1.5,.6,1)
}

@keyframes hc-pop {
    from {
        transform: scale(.3);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

#hc-stage .hc-big {
    font-size: clamp(28px,5.5vw,72px);
    font-weight: 900;
    line-height: 1.15
}

#hc-stage .hc-mid {
    font-size: clamp(18px,3vw,38px);
    font-weight: 700;
    line-height: 1.35;
    opacity: .95
}

@media (prefers-reduced-motion:reduce) {
    #hc-root *,#hc-stage * {
        animation: none!important
    }
}

body.dark #hc-root .hc-card {
    background: #1b263d;
    border-color: rgba(167,243,208,.16);
    box-shadow: 0 16px 34px -20px rgba(0,0,0,.8)
}

body.dark #hc-root .hc-quote {
    background: linear-gradient(90deg,rgba(249,223,104,.12),rgba(22,138,69,.14));
    border-color: rgba(167,243,208,.25)
}

body.dark #hc-root .hc-tab,body.dark #hc-root .hc-sec {
    background: #1a2e2a;
    color: #b7ccff;
    border-color: rgba(167,243,208,.2)
}

body.dark #hc-root .hc-tab:hover {
    background: #22403a
}

body.dark #hc-root .hc-tab.on {
    background: #168A45;
    color: #fff;
    border-color: #168A45
}

body.dark #hc-root .hc-in {
    background: #141c30;
    color: #e5edfc;
    border-color: rgba(167,243,208,.22)
}

body.dark #hc-root .hc-muted {
    color: rgba(167,243,208,.7)
}

body.dark #hc-root .hc-red {
    background: rgba(180,35,24,.18);
    color: #fca5a5;
    border-color: rgba(252,165,165,.35)
}

body.dark #hc-root .hc-mood,body.dark #hc-root .hc-light {
    background: #1a2e2a;
    border-color: rgba(167,243,208,.14)
}

body.dark #hc-root .hc-light.on {
    background: #22403a
}

body.dark #hc-root .hc-bar {
    background: #22403a
}

body.dark #hc-root .hc-gift.open {
    background: #1a2e2a
}

#module-simdh.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-simdh.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-simquang.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-simquang.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-simtraidat.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-simtraidat.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-simdoluong.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-simdoluong.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-simmach.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-simmach.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-simnhamay.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-simnhamay.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-tronde.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-tronde.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-champhieu.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-champhieu.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-thetl.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-thetl.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-cambien.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-cambien.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-nhom.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-nhom.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-video.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-video.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

#module-lophoc.tk-fs {
    padding: 0!important;
    overflow: hidden;
    background: #f0f3fa;
    height: 100dvh!important
}

#module-lophoc.tk-fs>iframe {
    height: 100vh!important;
    height: 100dvh!important;
    min-height: 0!important;
    border-radius: 0!important;
    box-shadow: none!important
}

@media (max-width: 767px) {
    #module-tronde,#module-champhieu,#module-thetl,#module-cambien,#module-nhom,#module-video,#module-lophoc {
        padding:0!important
    }

    #tronde-frame,#champhieu-frame,#thetl-frame,#cambien-frame,#nhom-frame,#video-frame,#lophoc-frame {
        height: calc(100dvh - 8.5rem)!important;
        min-height: 420px!important;
        border-radius: 14px!important
    }
}

body.tk-fs-open #tk-fb-float {
    display: none!important
}

@media (max-width: 700px) {
    body:has(#module-champhieu:not(.hidden)) #tk-fb-float,body:has(#module-cambien:not(.hidden)) #tk-fb-float {
        display:none!important
    }
}

.tt-card {
    background: #fff;
    border: 1px solid rgba(52,87,168,.14);
    border-radius: 1.5rem;
    padding: 1.1rem 1.2rem 1.25rem;
    box-shadow: 0 1px 2px rgba(36,50,78,.05), 0 10px 28px -14px rgba(36,50,78,.22)
}

.tt-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem
}

.tt-ico {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .9rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #DDF1EA, #FFF4C9);
    box-shadow: inset 0 0 0 1px rgba(52,87,168,.12)
}

.tt-title {
    font-weight: 800;
    font-size: 1rem;
    color: #24324e;
    line-height: 1.25
}

.tt-sub {
    font-size: 0.7825rem;
    color: rgba(36,50,78,.62);
    margin-top: .1rem;
    line-height: 1.35
}

.tt-acts {
    display: flex;
    gap: .35rem;
    flex-shrink: 0
}

.tt-ib {
    height: 2rem;
    min-width: 2rem;
    padding: 0 .6rem;
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3457a8;
    background: #F3F8F6;
    border: 1px solid rgba(52,87,168,.15);
    transition: background .15s, transform .08s;
    white-space: nowrap
}

.tt-ib:hover {
    background: #FFF3B8
}

.tt-ib:active {
    transform: scale(.95)
}

.tt-ib.pri {
    background: #3457a8;
    color: #fff;
    border-color: #3457a8
}

.tt-ib.pri:hover {
    background: #0B7D70
}

.tt-seg {
    display: flex;
    gap: .2rem;
    padding: .22rem;
    background: #EAF2EF;
    border-radius: .85rem;
    margin-bottom: .85rem
}

.tt-seg > button {
    flex: 1;
    min-width: 0;
    padding: .45rem .3rem;
    border-radius: .65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #48706A;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tt-seg > button:hover {
    color: #3457a8;
    background: rgba(255,255,255,.6)
}

.tt-seg > button.tt-on {
    background: #fff;
    color: #3457a8;
    box-shadow: 0 1px 3px rgba(36,50,78,.2)
}

.tt-hint {
    font-size: 0.7425rem;
    color: rgba(36,50,78,.55);
    line-height: 1.45;
    margin-top: .5rem
}

.tt-lbl {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(36,50,78,.5)
}

.tt-f {
    display: block;
    font-size: 0.7425rem;
    font-weight: 700;
    color: #48706A
}

.tt-in {
    display: block;
    width: 100%;
    margin-top: .2rem;
    padding: .42rem .6rem;
    background: #F7FAF9;
    border: 1px solid rgba(52,87,168,.18);
    border-radius: .6rem;
    font-size: 0.9125rem;
    font-weight: 500;
    color: #24324e;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s
}

.tt-in:focus {
    border-color: #3457a8;
    box-shadow: 0 0 0 3px rgba(52,87,168,.12);
    background: #fff
}

.tt-in.mono, .tt-mono {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace
}

.tt-box {
    background: #F7FAF9;
    border: 1px solid rgba(52,87,168,.12);
    border-radius: .9rem;
    padding: .7rem .8rem
}

.tt-chip {
    padding: .28rem .65rem;
    border-radius: 99px;
    font-size: 0.7625rem;
    font-weight: 700;
    background: #F3F8F6;
    color: #3457a8;
    border: 1px solid rgba(52,87,168,.15);
    transition: background .15s;
    white-space: nowrap
}

.tt-chip:hover {
    background: #FFF3B8
}

.tt-chip.tt-on {
    background: #3457a8;
    color: #fff;
    border-color: #3457a8
}

.tt-chk {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 0.8025rem;
    font-weight: 600;
    color: #24324e;
    cursor: pointer;
    user-select: none
}

.tt-chk input {
    accent-color: #3457a8;
    width: .95rem;
    height: .95rem
}

.tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .62rem .9rem;
    border-radius: .8rem;
    font-weight: 800;
    font-size: 0.9025rem;
    transition: background .15s, transform .08s, box-shadow .15s;
    white-space: nowrap
}

.tt-btn:active {
    transform: scale(.97)
}

.tt-btn.go {
    background: #16A34A;
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(22,163,74,.7)
}

.tt-btn.go:hover {
    background: #15803D
}

.tt-btn.stop {
    background: #E0583A;
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(224,88,58,.7)
}

.tt-btn.stop:hover {
    background: #C9472B
}

.tt-btn.soft {
    background: #F3F8F6;
    color: #3457a8;
    border: 1px solid rgba(52,87,168,.15);
    font-size: 0.8425rem
}

.tt-btn.soft:hover {
    background: #FFF3B8
}

.tt-btn.pri {
    background: #3457a8;
    color: #fff;
    box-shadow: 0 8px 16px -10px rgba(52,87,168,.8)
}

.tt-btn.pri:hover {
    background: #0B7D70
}

.tt-res {
    text-align: center;
    padding: .75rem .6rem;
    border-radius: .9rem;
    background: linear-gradient(135deg, #E3F3ED, #FFF8DC);
    border: 1px solid rgba(52,87,168,.16);
    color: #3457a8
}

.tt-lcd, .tt-lab-lcd {
    position: relative;
    background: linear-gradient(160deg, #0A3833 0%, #0F4F47 100%);
    border-radius: 1.1rem;
    color: #E8FFF8;
    box-shadow: inset 0 2px 10px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.7);
    overflow: hidden
}

.tt-lcd {
    padding: .55rem .85rem .75rem
}

.tt-lcd-bar {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: 0.7025rem;
    font-weight: 800;
    letter-spacing: .04em
}

.tt-pill {
    padding: .15rem .55rem;
    border-radius: 99px;
    background: rgba(255,255,255,.13);
    color: #BFF5E6;
    font-weight: 800;
    white-space: nowrap
}

.tt-pill:hover {
    background: rgba(255,255,255,.22)
}

.tt-ind {
    padding: .08rem .38rem;
    border-radius: .35rem;
    color: rgba(191,245,230,.22)
}

.tt-ind.on {
    color: #0A3833;
    background: #F9DF68
}

.tt-lcd select, .tt-lcd-btn {
    background: rgba(255,255,255,.1) !important;
    color: #E8FFF8 !important;
    border-radius: .45rem;
    padding: .14rem .35rem;
    font-size: 0.7425rem;
    font-weight: 700;
    border: 0 !important;
    outline: none;
    cursor: pointer
}

.tt-lcd select option {
    color: #24324e;
    background: #fff
}

.tt-lcd-bar > * {
    flex-shrink: 0
}

.tt-lcd-bar > select {
    flex-shrink: 1;
    min-width: 0;
    max-width: 9rem
}

@media (max-width: 400px) {
    #tt-calc-ind-fr {
        display: none
    }
}

.tt-lcd-btn:hover, .tt-lcd select:hover {
    background: rgba(255,255,255,.2) !important
}

#tt-calc-expr {
    display: block;
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    color: #E8FFF8 !important;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 1.05rem;
    outline: none;
    margin-top: .5rem;
    caret-color: #F9DF68
}

#tt-calc-expr::placeholder {
    color: rgba(232,255,248,.35)
}

#tt-calc-preview {
    text-align: right;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8125rem;
    color: rgba(232,255,248,.5);
    min-height: 1.05rem
}

#tt-calc-result {
    text-align: right;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
    color: #fff;
    text-shadow: 0 0 18px rgba(167,243,208,.28)
}

#tt-calc-result.err {
    color: #FFB4A2;
    font-size: 1rem;
    font-family: inherit
}

.tt-keys {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .38rem;
    margin-top: .7rem
}

.tt-key {
    position: relative;
    height: 2.45rem;
    border-radius: .7rem;
    font-weight: 700;
    font-size: 0.8825rem;
    background: #F1F6F4;
    color: #24324e;
    border: 1px solid rgba(52,87,168,.1);
    box-shadow: 0 1px 0 rgba(36,50,78,.1);
    transition: transform .06s, background .12s, box-shadow .12s;
    user-select: none
}

.tt-key:hover {
    background: #E0EFEA
}

.tt-key:active {
    transform: translateY(1px);
    box-shadow: none
}

.tt-key.has2::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 5px;
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: #F59E0B;
    opacity: .75
}

.tt-key.alt {
    color: #B45309
}

.tt-key.k-num {
    background: #fff;
    font-size: 1.02rem;
    border-color: rgba(52,87,168,.17)
}

.tt-key.k-num:hover {
    background: #F4FAF8
}

.tt-key.k-op {
    background: #E2F2EC;
    color: #3457a8;
    font-size: 1.02rem
}

.tt-key.k-mem {
    background: #F6F1E1;
    color: #6B5A1E;
    font-size: 0.7625rem
}

.tt-key.k-sh {
    background: #FFE9B0;
    color: #8A5A00;
    font-size: 0.7425rem;
    letter-spacing: .03em
}

.tt-key.k-sh.on {
    background: #F59E0B;
    color: #fff
}

.tt-key.k-ac {
    background: #FDE7E0;
    color: #CF452A
}

.tt-key.k-eq {
    background: #3457a8;
    color: #fff;
    font-size: 1.25rem;
    grid-column: span 2;
    border-color: #3457a8
}

.tt-key.k-eq:hover {
    background: #0B7D70
}

.tt-hist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .3rem .55rem;
    border-radius: .55rem;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8125rem;
    color: #24324e;
    text-align: left
}

.tt-hist-row:hover {
    background: #F1F6F4
}

.tt-eq-grid {
    display: grid;
    gap: .5rem
}

.tt-eq-row {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9125rem;
    color: #24324e;
    font-weight: 700
}

.tt-eq-row .tt-in {
    margin-top: 0;
    text-align: center;
    padding: .35rem .3rem;
    min-width: 0
}

.tt-root {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    width: 100%;
    padding: .4rem .65rem;
    border-radius: .65rem;
    background: #fff;
    border: 1px solid rgba(52,87,168,.14);
    font-family: ui-monospace, Consolas, monospace;
    color: #24324e;
    text-align: left;
    transition: background .15s
}

.tt-root:hover {
    background: #FFF8DC
}

.tt-root b {
    font-size: 1.05rem;
    color: #3457a8
}

.tt-root small {
    color: rgba(36,50,78,.55);
    font-family: system-ui, sans-serif
}

.tt-tbl-wrap {
    max-height: 13rem;
    overflow: auto;
    border: 1px solid rgba(52,87,168,.14);
    border-radius: .85rem;
    background: #fff
}

#tt-const-list {
    max-height: 440px
}

#tt-unit-all {
    max-height: 15rem
}

.tt-tbl {
    width: 100%;
    font-size: 0.8625rem;
    color: #24324e;
    font-variant-numeric: tabular-nums;
    border-collapse: collapse
}

.tt-tbl th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #EAF2EF;
    font-size: 0.7425rem;
    font-weight: 800;
    padding: .42rem .55rem;
    color: #48706A;
    white-space: nowrap
}

.tt-tbl td {
    padding: .32rem .55rem;
    border-top: 1px solid rgba(52,87,168,.08)
}

.tt-tbl tr.out td {
    background: #FFF4D6
}

.tt-tbl tr:hover td {
    background: #F4FAF8
}

.tt-urow {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .3rem .6rem;
    border-top: 1px solid rgba(52,87,168,.07)
}

.tt-urow:first-child {
    border-top: 0
}

.tt-crow {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .7rem;
    border-top: 1px solid rgba(52,87,168,.08)
}

.tt-crow:first-child {
    border-top: 0
}

.tt-crow:hover {
    background: #F7FAF9
}

.tt-lab-lcd {
    padding: .65rem 1rem 1rem
}

.tt-stat {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    letter-spacing: .06em;
    color: #BFF5E6
}

.tt-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 99px;
    background: #6B8F89;
    display: inline-block
}

.tt-lab-lcd.run .tt-dot {
    background: #4ADE80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.6);
    animation: ttPulse 1.1s infinite
}

.tt-lab-lcd.pause .tt-dot {
    background: #F9DF68
}

@keyframes ttPulse {
    70% {
        box-shadow: 0 0 0 7px rgba(74,222,128,0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74,222,128,0)
    }
}

#tt-lab-display {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 4.3rem);
    text-align: center;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    padding: .45rem 0 .15rem;
    color: #fff;
    text-shadow: 0 0 24px rgba(167,243,208,.3)
}

.tt-lab-lcd.run #tt-lab-display {
    color: #b7ccff
}

.tt-lab-lcd.done {
    animation: ttFlash .45s 8 alternate
}

@keyframes ttFlash {
    to {
        background: #E0583A
    }
}

.tt-cd-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background: #F9DF68;
    border-radius: 0 4px 4px 0;
    transition: width .2s linear
}

.tt-chart-wrap {
    height: 118px;
    border: 1px solid rgba(52,87,168,.14);
    border-radius: .85rem;
    overflow: hidden;
    background: #fff
}

.tt-chart-wrap canvas {
    width: 100%;
    height: 100%;
    display: block
}

.tt-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
    margin-top: .45rem
}

.tt-kpi {
    background: #F7FAF9;
    border: 1px solid rgba(52,87,168,.1);
    border-radius: .7rem;
    padding: .35rem .5rem;
    min-width: 0
}

.tt-kpi span {
    display: block;
    font-size: .6rem;
    color: rgba(36,50,78,.58);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tt-kpi b {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8825rem;
    color: #24324e
}

.tt-warn {
    margin-top: .45rem;
    font-size: 0.7625rem;
    color: #92400E;
    background: #FFF4D6;
    border: 1px solid #FCD34D;
    border-radius: .6rem;
    padding: .35rem .55rem
}

.tt-fn {
    display: flex;
    align-items: center;
    gap: .35rem
}

.tt-fn-dot {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 99px;
    border: 2px solid var(--c);
    background: var(--c);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 2px #fff;
    transition: opacity .15s
}

.tt-fn-dot.off {
    background: transparent;
    opacity: .45
}

.tt-fn-lab {
    font-size: 0.8225rem;
    font-weight: 800;
    color: var(--c);
    min-width: 2rem;
    white-space: nowrap
}

.tt-fn .tt-in {
    margin-top: 0;
    padding: .38rem .5rem;
    flex: 1;
    min-width: 0
}

.tt-fn .tt-in.bad {
    border-color: #E0583A;
    box-shadow: 0 0 0 3px rgba(224,88,58,.12)
}

.tt-fn-x {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: .5rem;
    color: #94A3B8;
    flex-shrink: 0;
    font-size: 0.8625rem
}

.tt-fn-x:hover {
    color: #E0583A;
    background: #FDE7E0
}

.tt-prm {
    display: grid;
    grid-template-columns: 1.4rem 2.5rem minmax(0, 1fr) 2.5rem 3.3rem 1.6rem;
    align-items: center;
    gap: .3rem
}

.tt-prm b {
    font-family: ui-monospace, Consolas, monospace;
    color: #3457a8;
    font-size: 0.9125rem;
    text-align: center
}

.tt-prm input[type=range] {
    width: 100%;
    accent-color: #3457a8
}

.tt-prm .tt-in {
    margin-top: 0;
    padding: .18rem .2rem;
    font-size: 0.7425rem;
    text-align: center;
    border-radius: .4rem
}

.tt-prm .tt-in.v {
    font-weight: 800;
    font-size: 0.8125rem
}

.tt-prm button {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid rgba(52,87,168,.18);
    color: #3457a8;
    font-size: 0.7125rem
}

.tt-prm button.on {
    background: #3457a8;
    color: #fff
}

.tt-graph-box {
    position: relative;
    width: 100%;
    height: 520px;
    border: 1px solid rgba(52,87,168,.16);
    border-radius: 1.1rem;
    overflow: hidden;
    background: #fff
}

#tt-g-over {
    touch-action: none
}

#tt-g-over.drag {
    cursor: grabbing
}

#tt-g-coord {
    position: absolute;
    top: .6rem;
    right: .6rem;
    font: 600 11px ui-monospace, Consolas, monospace;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(52,87,168,.22);
    border-radius: .45rem;
    padding: .18rem .5rem;
    color: #3457a8;
    pointer-events: none
}

.tt-gtools {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    display: flex;
    flex-direction: column;
    gap: .3rem
}

.tt-gtools button {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .65rem;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(52,87,168,.2);
    font-weight: 800;
    font-size: 1rem;
    color: #3457a8;
    box-shadow: 0 2px 6px rgba(0,0,0,.08)
}

.tt-gtools button:hover {
    background: #FFF3B8
}

.tt-ghint {
    position: absolute;
    left: .75rem;
    bottom: .5rem;
    font-size: 0.7125rem;
    color: rgba(36,50,78,.45);
    pointer-events: none
}

.tt-gdark .tt-ghint {
    color: rgba(232,255,248,.45)
}

@media (max-width: 640px) {
    .tt-graph-box {
        height: 360px
    }

    .tt-ghint {
        display: none
    }

    .tt-key {
        height: 2.6rem
    }
}

#tt-calc-card:fullscreen, #tt-lab-card:fullscreen, #tt-graph-card:fullscreen {
    overflow: auto;
    border-radius: 0;
    padding: 1.5rem 2.5rem;
    background: #fff
}

#tt-calc-card:fullscreen #tt-calc-result {
    font-size: 4.5rem
}

#tt-calc-card:fullscreen #tt-calc-expr {
    font-size: 2rem
}

#tt-calc-card:fullscreen .tt-key {
    font-size: 1.5rem;
    height: 4.2rem
}

#tt-calc-card:fullscreen #tt-const-list {
    max-height: none;
    font-size: 1.25rem
}

#tt-calc-card:fullscreen .tt-root b {
    font-size: 2rem
}

#tt-lab-card:fullscreen #tt-lab-display {
    font-size: 9rem;
    padding: 2.5rem 0
}

#tt-lab-card:fullscreen .tt-tbl, #tt-lab-card:fullscreen #tt-lab-stats {
    font-size: 1.15rem
}

#tt-lab-card:fullscreen .tt-tbl-wrap {
    max-height: 40vh
}

#tt-lab-card:fullscreen .tt-chart-wrap {
    height: 200px
}

#tt-graph-card:fullscreen .tt-graph-box {
    height: calc(100vh - 120px)
}

body.dark .tt-card {
    background: #1b263d !important;
    border-color: rgba(167,243,208,.14)
}

body.dark .tt-title, body.dark .tt-chk, body.dark .tt-tbl, body.dark .tt-hist-row, body.dark .tt-eq-row, body.dark .tt-root, body.dark .tt-kpi b, body.dark #tt-g-info {
    color: #E6F2EF !important
}

body.dark .tt-sub, body.dark .tt-hint, body.dark .tt-lbl, body.dark .tt-f, body.dark .tt-kpi span {
    color: rgba(230,242,239,.6)
}

body.dark .tt-ico {
    background: linear-gradient(135deg, #1B3A34, #3A3320)
}

body.dark .tt-seg {
    background: #141c30
}

body.dark .tt-seg > button {
    color: rgba(230,242,239,.65)
}

body.dark .tt-seg > button.tt-on {
    background: #23413B;
    color: #b7ccff
}

body.dark .tt-ib, body.dark .tt-chip, body.dark .tt-btn.soft {
    background: #1B2E2A;
    color: #b7ccff;
    border-color: rgba(167,243,208,.18)
}

body.dark .tt-ib.pri, body.dark .tt-chip.tt-on {
    background: #0F7A6C;
    color: #fff
}

body.dark .tt-box, body.dark .tt-kpi, body.dark .tt-tbl-wrap, body.dark .tt-chart-wrap, body.dark .tt-root {
    background: #182A26;
    border-color: rgba(167,243,208,.14)
}

body.dark .tt-res {
    background: linear-gradient(135deg, #1B3A34, #33301E);
    color: #b7ccff;
    border-color: rgba(167,243,208,.18)
}

body.dark .tt-tbl th {
    background: #1F3530;
    color: #b7ccff
}

body.dark .tt-tbl tr:hover td, body.dark .tt-crow:hover, body.dark .tt-hist-row:hover {
    background: #1F3530
}

body.dark .tt-tbl tr.out td {
    background: #3A3320
}

body.dark .tt-key {
    background: #1B2E2A;
    color: #E6F2EF;
    border-color: rgba(167,243,208,.12)
}

body.dark .tt-key:hover {
    background: #23413B
}

body.dark .tt-key.k-num {
    background: #22362F
}

body.dark .tt-key.k-op {
    background: #1D3B34;
    color: #b7ccff
}

body.dark .tt-key.k-mem {
    background: #2E2B1E;
    color: #F3E9B5
}

body.dark .tt-key.k-ac {
    background: #3B2420;
    color: #FFB4A2
}

body.dark .tt-key.k-eq {
    background: #0F7A6C
}

body.dark .tt-graph-box {
    border-color: rgba(167,243,208,.18)
}

body.dark #tt-calc-card:fullscreen, body.dark #tt-lab-card:fullscreen, body.dark #tt-graph-card:fullscreen {
    background: #1b263d
}

#tt-fab {
    position: fixed;
    left: 10px;
    bottom: 86px;
    z-index: 3500
}

#tt-fab > button {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: #3457a8;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    opacity: .55;
    transition: opacity .2s, transform .2s
}

#tt-fab > button:hover, #tt-fab.open > button {
    opacity: 1;
    transform: scale(1.06)
}

#tt-fab-menu {
    position: absolute;
    left: 0;
    bottom: 50px;
    background: #fff;
    border: 2px solid rgba(52,87,168,.2);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
    display: none;
    min-width: 190px
}

#tt-fab.open #tt-fab-menu {
    display: block
}

#tt-fab-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #3457a8
}

#tt-fab-menu button:hover {
    background: #F5F1E3
}

#tt-fab-menu kbd {
    margin-left: auto;
    font-size: 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 4px;
    color: #666
}

#tt-cover {
    position: fixed;
    inset: 0;
    z-index: 4800;
    pointer-events: none
}

#tt-cover.tt-spot {
    pointer-events: auto;
    cursor: crosshair
}

.tt-curtain {
    position: absolute;
    pointer-events: auto;
    touch-action: none;
    background: repeating-linear-gradient(90deg, #273b77 0 38px, #304b8d 38px 76px);
    box-shadow: 0 0 40px rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.75);
    font-weight: 700;
    font-size: 15px;
    user-select: none
}

.tt-curtain.v {
    left: 0;
    right: 0;
    bottom: 0;
    cursor: ns-resize;
    background: repeating-linear-gradient(90deg, #273b77 0 38px, #304b8d 38px 76px)
}

.tt-curtain.h {
    top: 0;
    bottom: 0;
    right: 0;
    cursor: ew-resize;
    background: repeating-linear-gradient(0deg, #273b77 0 38px, #304b8d 38px 76px)
}

.tt-curtain .tt-grip {
    position: absolute;
    background: #F9DF68;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(0,0,0,.4)
}

.tt-curtain.v .tt-grip {
    top: -9px;
    left: 50%;
    width: 90px;
    height: 18px;
    transform: translateX(-50%)
}

.tt-curtain.h .tt-grip {
    left: -9px;
    top: 50%;
    width: 18px;
    height: 90px;
    transform: translateY(-50%)
}

.tt-cover-x {
    position: absolute;
    top: 12px;
    right: 12px;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 99px;
    background: rgba(255,255,255,.92);
    color: #E0583A;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 2
}

.tt-cover-hint {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 14px;
    pointer-events: none;
    transition: opacity .6s;
    white-space: nowrap;
    z-index: 2
}

#tt-splash {
    position: fixed;
    inset: 0;
    z-index: 5000;
    color: #fff;
    background: radial-gradient(1200px 700px at 15% 10%, #0a7d70 0%, transparent 60%), radial-gradient(900px 600px at 90% 90%, #168A45 0%, transparent 55%), #273b77;
    display: flex;
    flex-direction: column;
    padding: 3vh 4vw;
    overflow: auto;
    font-family: inherit
}

#tt-splash .sp-x {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 99px;
    background: rgba(255,255,255,.15);
    font-size: 18px;
    font-weight: 900
}

#tt-splash .sp-x:hover {
    background: rgba(255,255,255,.3)
}

#tt-splash .sp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: clamp(16px, 2.2vw, 30px);
    font-weight: 700;
    opacity: .9;
    padding-right: 50px
}

#tt-splash .sp-class {
    background: rgba(249,223,104,.95);
    color: #273b77;
    padding: .2em .8em;
    border-radius: 99px
}

#tt-splash .sp-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2vh 0
}

#tt-splash .sp-clock {
    font-size: clamp(64px, 15vw, 230px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 6px 30px rgba(0,0,0,.25)
}

#tt-splash .sp-title {
    font-size: clamp(22px, 3.6vw, 54px);
    font-weight: 800;
    margin-top: 1vh
}

#tt-splash .sp-count {
    margin-top: 1.5vh;
    font-size: clamp(18px, 2.4vw, 36px);
    font-weight: 700;
    background: rgba(255,255,255,.12);
    padding: .25em 1em;
    border-radius: 99px;
    font-variant-numeric: tabular-nums
}

#tt-splash .sp-count.go {
    background: #F9DF68;
    color: #273b77;
    animation: ttPulse 1s infinite
}

#tt-splash .sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2vw
}

#tt-splash .sp-box {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    padding: 1.4vw 1.8vw;
    font-size: clamp(16px, 1.9vw, 30px)
}

#tt-splash .sp-box h5 {
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .8;
    font-weight: 800;
    margin-bottom: .4em
}

#tt-splash .sp-box ol {
    list-style: decimal;
    padding-left: 1.3em;
    font-weight: 600
}

#tt-splash .sp-box.bday {
    background: linear-gradient(135deg, rgba(224,88,58,.85), rgba(249,223,104,.6))
}

#tt-splash .sp-bname {
    font-weight: 900;
    font-size: 1.15em
}

#tt-splash .sp-quote {
    margin-top: 2vh;
    text-align: center;
    font-size: clamp(16px, 2vw, 30px);
    font-style: italic;
    opacity: .92;
    transition: opacity .6s
}

#tt-splash .sp-quote b {
    font-style: normal;
    font-weight: 700;
    opacity: .8
}

@keyframes ttPulse {
    50% {
        transform: scale(1.05)
    }
}

#tt-doc {
    position: relative;
    height: calc(100vh - 215px);
    min-height: 460px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    background: #0d1716;
    color: #e8f3f1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr;
    font-size: 14px
}

#tt-doc:fullscreen {
    height: 100vh;
    border-radius: 0
}

#tt-doc .dc-top {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: #08332f;
    border-bottom: 1px solid rgba(255,255,255,.08)
}

#tt-doc .dc-title {
    font-weight: 800;
    margin-right: 6px;
    white-space: nowrap
}

#tt-doc button.dc-b {
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s
}

#tt-doc button.dc-b:hover {
    background: rgba(255,255,255,.18)
}

#tt-doc button.dc-b.on {
    background: #F9DF68;
    color: #273b77
}

#tt-doc button.dc-b.pri {
    background: #E0583A;
    color: #fff
}

#tt-doc button.dc-b.pri:hover {
    background: #f06a4c
}

#tt-doc select {
    background: #0d1716;
    color: #e8f3f1;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 5px 6px;
    max-width: 220px
}

#tt-doc .dc-sp {
    flex: 1
}

#tt-doc .dc-tools {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 6px;
    background: #0a2422;
    border-right: 1px solid rgba(255,255,255,.08);
    overflow-y: auto
}

#tt-doc .dc-tools button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    font-size: 18px;
    flex-shrink: 0
}

#tt-doc .dc-tools button:hover {
    background: rgba(255,255,255,.16)
}

#tt-doc .dc-tools button.on {
    background: #F9DF68;
    color: #273b77;
    box-shadow: 0 0 0 2px #fff inset
}

#tt-doc .dc-tools .dc-col {
    width: 26px;
    height: 26px;
    border-radius: 99px;
    border: 2px solid rgba(255,255,255,.5)
}

#tt-doc .dc-tools .dc-col.on {
    box-shadow: 0 0 0 3px #F9DF68;
    border-color: #fff;
    background-clip: padding-box
}

#tt-doc .dc-tools hr {
    width: 30px;
    border-color: rgba(255,255,255,.15);
    margin: 3px 0
}

#tt-doc .dc-tools .dc-size {
    font-size: 12px;
    font-weight: 800
}

#tt-doc .dc-stage {
    grid-row: 2;
    grid-column: 2;
    position: relative;
    overflow: hidden;
    touch-action: none
}

#tt-doc .dc-stage canvas {
    width: 100%;
    height: 100%;
    display: block
}

#tt-doc .dc-msg {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    text-align: center;
    padding: 2rem;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,.75);
    pointer-events: none
}

#tt-doc .dc-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,.55);
    padding: 6px 10px;
    border-radius: 99px
}

#tt-doc .dc-zoom input {
    width: 140px;
    accent-color: #F9DF68
}

#tt-doc .dc-zoom b {
    min-width: 46px;
    text-align: right;
    font-variant-numeric: tabular-nums
}

#tt-doc .dc-zoom button {
    width: 26px;
    height: 26px;
    border-radius: 99px;
    background: rgba(255,255,255,.15);
    font-weight: 900
}

#tt-doc .dc-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(224,88,58,.9);
    color: #fff;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 13px;
    pointer-events: none
}

#tt-doc .dc-badge.snap {
    background: rgba(37,99,235,.9)
}

#tt-doc .dc-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s
}

#tt-doc .dc-ph {
    position: absolute;
    right: 14px;
    top: 14px;
    width: min(340px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    overflow: auto;
    background: #fff;
    color: #26344c;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    z-index: 5;
    font-size: 14px;
    line-height: 1.5
}

#tt-doc .dc-ph[hidden] {
    display: none
}

#tt-doc .dc-ph h5 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #304b89;
    display: flex;
    align-items: center;
    gap: 6px
}

#tt-doc .dc-ph h5 span {
    flex: 1
}

#tt-doc .dc-ph h5 button {
    border: 0;
    background: #eef2f5;
    border-radius: 9px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 15px
}

#tt-doc .dc-ph svg {
    display: block;
    width: 190px;
    height: 190px;
    margin: 6px auto
}

#tt-doc .dc-ph .cd {
    font: 800 34px/1 Consolas, monospace;
    letter-spacing: 6px;
    color: #304b89;
    text-align: center;
    margin: 2px 0 6px
}

#tt-doc .dc-ph .u {
    text-align: center;
    color: #1d4ed8;
    font-weight: 700;
    word-break: break-all
}

#tt-doc .dc-ph ol {
    margin: 8px 0;
    padding-left: 18px;
    color: #475569
}

#tt-doc .dc-ph .st {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 7px 10px;
    margin: 8px 0;
    font-weight: 600
}

#tt-doc .dc-ph .st i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
    flex: none
}

#tt-doc .dc-ph .st i.on {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.25)
}

#tt-doc .dc-ph .st i.wait {
    background: #f59e0b
}

#tt-doc .dc-ph .row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

#tt-doc .dc-ph .row button {
    border: 1px solid #dce3f1;
    background: #fff;
    border-radius: 10px;
    padding: 7px 11px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13.5px
}

#tt-doc .dc-ph .row button.warn {
    background: #fde8e2;
    color: #c2410c;
    border-color: #fde8e2
}

#tt-doc .dc-b.ph-on {
    background: #16a34a !important;
    color: #fff !important
}

#tt-doc.dc-clean {
    position: fixed;
    inset: 0;
    z-index: 9990;
    height: 100vh;
    min-height: 0;
    border-radius: 0;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    background: #000
}

#tt-doc.dc-clean .dc-top, #tt-doc.dc-clean .dc-tools, #tt-doc.dc-clean .dc-strip, #tt-doc.dc-clean .dc-zoom, #tt-doc.dc-clean .dc-badge {
    display: none
}

#tt-doc.dc-clean .dc-stage {
    grid-row: 1;
    grid-column: 1
}

#tt-doc.dc-clean.dc-idle .dc-stage {
    cursor: none !important
}

#tt-doc .dc-unclean {
    display: none;
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 6;
    padding: 8px 14px;
    border-radius: 99px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    transition: opacity .3s
}

#tt-doc .dc-unclean:hover {
    background: rgba(0,0,0,.85)
}

#tt-doc.dc-clean .dc-unclean {
    display: block
}

#tt-doc.dc-clean.dc-idle .dc-unclean {
    opacity: 0;
    pointer-events: none
}

#tt-doc .dc-stat {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0,0,0,.55);
    color: #dce8ff;
    font: 600 11.5px/1.3 ui-monospace, Consolas, monospace;
    padding: 4px 9px;
    border-radius: 99px;
    pointer-events: none
}

#tt-doc .dc-stat:empty, #tt-doc.dc-clean .dc-stat {
    display: none
}

#tt-doc .dc-strip {
    grid-column: 1 / 3;
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    background: #08332f;
    overflow-x: auto;
    border-top: 1px solid rgba(255,255,255,.08);
    min-height: 84px;
    align-items: center
}

#tt-doc .dc-th {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 66px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800
}

#tt-doc .dc-th.on {
    border-color: #F9DF68
}

#tt-doc .dc-th img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

#tt-doc .dc-th span {
    position: absolute;
    left: 4px;
    bottom: 3px;
    font-size: 12px;
    background: rgba(0,0,0,.65);
    padding: 0 5px;
    border-radius: 6px
}

#tt-doc .dc-th i {
    position: absolute;
    right: 3px;
    top: 3px;
    font-style: normal;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 99px;
    background: rgba(224,88,58,.9);
    font-size: 12px;
    display: none
}

#tt-doc .dc-th:hover i {
    display: block
}

#tt-doc .dc-hint {
    font-size: 13px;
    color: rgba(255,255,255,.55)
}

@media (max-width: 640px) {
    #tt-doc .dc-title {
        display: none
    }

    #tt-doc .dc-zoom input {
        width: 80px
    }
}

#intro-modal {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(4, 30, 27, .72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: clamp(8px, 2.5vw, 28px)
}

#intro-modal .intro-card {
    width: 100%;
    max-width: 1500px;
    background: #FFFBEF;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
    border: 3px solid #3457a8;
    animation: introIn .22s ease-out
}

#intro-modal .intro-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #3457a8;
    color: #fff
}

#intro-modal .intro-bar h3 {
    flex: 1;
    font-weight: 800;
    font-size: clamp(14px, 1.6vw, 18px);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

#intro-modal .intro-bar h3 span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

#intro-modal .intro-btn {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap
}

#intro-modal .intro-btn:hover {
    background: rgba(255,255,255,.22)
}

#intro-modal .intro-btn.close {
    background: #F9DF68;
    color: #053F39;
    border-color: #F9DF68
}

#intro-modal iframe {
    display: block;
    width: 100%;
    border: 0;
    aspect-ratio: 1800 / 3000;
    background: #FFFBEF
}

@keyframes introIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985)
    }

    to {
        opacity: 1;
        transform: none
    }
}

body {
    background-attachment: scroll !important
}

#seating-frame, #pdf-frame, #markword-frame, #videoan-frame, #songco-frame {
    background: #F1F5F9 !important;
    box-shadow: var(--t-shadow)
}

body.dark #seating-frame, body.dark #pdf-frame, body.dark #markword-frame, body.dark #videoan-frame {
    background: #0B1514 !important
}

#module-games {
    font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif
}

body.dark .bg-brand-cream\/70, body.dark .bg-brand-cream\/60, body.dark .bg-brand-cream\/50, body.dark .bg-brand-cream\/40, body.dark .bg-brand-cream-light\/60 {
    background-color: rgba(27,46,42,.85) !important
}

body.dark .bg-brand-cream\/30, body.dark .bg-brand-cream\/20 {
    background-color: rgba(27,46,42,.55) !important
}

body.dark input.bg-brand-cream\/60, body.dark input.bg-brand-cream\/50, body.dark textarea.bg-brand-cream\/60, body.dark select.bg-brand-cream\/60 {
    background-color: #141c30 !important;
    color: #E6F2EF !important
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-gray-100,.bg-slate-50,.bg-slate-100,[class*="bg-gray-50/"],[class*="bg-slate-50/"]) {
    background-color: #1B2E2A !important
}

body.dark [id^="module-"] :is(.bg-emerald-50,.bg-emerald-100,.bg-green-50,.bg-green-100,.bg-teal-50,[class*="bg-emerald-50/"],[class*="bg-green-50/"]) {
    background-color: rgba(52,211,153,.12) !important
}

body.dark [id^="module-"] :is(.bg-amber-50,.bg-yellow-50,.bg-orange-50,[class*="bg-amber-50/"],[class*="bg-yellow-50/"]) {
    background-color: rgba(251,191,36,.12) !important
}

body.dark [id^="module-"] :is(.bg-blue-50,.bg-sky-50,.bg-indigo-50,.bg-cyan-50,[class*="bg-blue-50/"],[class*="bg-sky-50/"]) {
    background-color: rgba(96,165,250,.13) !important
}

body.dark [id^="module-"] :is(.bg-purple-50,.bg-violet-50,.bg-pink-50,.bg-fuchsia-50) {
    background-color: rgba(192,132,252,.13) !important
}

body.dark [id^="module-"] :is(.bg-rose-50,.bg-red-50,[class*="bg-rose-50/"],[class*="bg-red-50/"]) {
    background-color: rgba(251,113,133,.13) !important
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"],.bg-emerald-50,.bg-green-50,.bg-amber-50,.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50,.bg-purple-50,.bg-rose-50) {
    color: #D7EBE6
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"],.bg-emerald-50,.bg-green-50,.bg-amber-50,.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50,.bg-purple-50,.bg-rose-50) :is([class*="text-gray-6"],[class*="text-gray-7"],[class*="text-gray-8"],[class*="text-gray-9"],[class*="text-slate-7"],[class*="text-slate-8"]), body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"]):is([class*="text-gray-"],[class*="text-slate-"]) {
    color: #D7EBE6 !important
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"],.bg-emerald-50,.bg-green-50,.bg-amber-50,.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50,.bg-purple-50,.bg-rose-50) :is([class*="text-blue-7"],[class*="text-blue-8"],[class*="text-blue-9"],[class*="text-sky-7"],[class*="text-sky-8"]), body.dark [id^="module-"] :is(.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50):is([class*="text-blue-"],[class*="text-sky-"]) {
    color: #93C5FD !important
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"],.bg-emerald-50,.bg-green-50,.bg-amber-50,.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50,.bg-purple-50,.bg-rose-50) :is([class*="text-emerald-7"],[class*="text-emerald-8"],[class*="text-green-7"],[class*="text-green-8"]), body.dark [id^="module-"] :is(.bg-emerald-50,.bg-green-50):is([class*="text-emerald-"],[class*="text-green-"]) {
    color: #6EE7B7 !important
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"],.bg-emerald-50,.bg-green-50,.bg-amber-50,.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50,.bg-purple-50,.bg-rose-50) :is([class*="text-amber-7"],[class*="text-amber-8"],[class*="text-amber-9"]), body.dark [id^="module-"] .bg-amber-50:is([class*="text-amber-"]) {
    color: #FCD34D !important
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"],.bg-emerald-50,.bg-green-50,.bg-amber-50,.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50,.bg-purple-50,.bg-rose-50) :is([class*="text-purple-7"],[class*="text-purple-8"]), body.dark [id^="module-"] .bg-purple-50:is([class*="text-purple-"]) {
    color: #D8B4FE !important
}

body.dark [id^="module-"] :is(.bg-gray-50,.bg-slate-50,[class*="bg-gray-50/"],.bg-emerald-50,.bg-green-50,.bg-amber-50,.bg-blue-50,[class*="bg-blue-50/"],.bg-sky-50,.bg-purple-50,.bg-rose-50) :is([class*="text-red-6"],[class*="text-red-7"],[class*="text-rose-7"]), body.dark [id^="module-"] .bg-rose-50:is([class*="text-rose-"],[class*="text-red-"]) {
    color: #FDA4AF !important
}

body.dark [id^="module-"] .bg-brand-yellow, body.dark [id^="module-"] .bg-brand-yellow * {
    color: #053F39 !important
}

body.dark #module-games .bg-white:has(> input[id^="teamName"]) {
    background-color: #141c30 !important;
    border-color: rgba(167,243,208,.22) !important
}

body.dark [id^="module-"] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea):not(.tt-key) {
    background-color: #141c30 !important;
    color: #E6F2EF !important;
    border-color: rgba(167,243,208,.22) !important
}

body.dark [id^="module-"] input::placeholder, body.dark [id^="module-"] textarea::placeholder {
    color: #7F9692 !important
}

button, a {
    -webkit-tap-highlight-color: transparent
}

.pk-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.pk-modes button {
    white-space: nowrap
}

.pk-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px
}

.pk-view.hidden {
    display: none!important
}

.pk-status {
    font-weight: 800;
    font-size: 14px;
    color: #3457a8;
    letter-spacing: .02em;
    min-height: 20px;
    text-align: center
}

.pk-slot {
    position: relative;
    width: min(100%,460px);
    padding: 18px 18px 22px;
    border-radius: 28px;
    background: linear-gradient(160deg,#E0583A,#b8341c 60%,#8a2412);
    box-shadow: 0 18px 40px -16px rgba(120,30,10,.7),inset 0 2px 0 rgba(255,255,255,.35)
}

.pk-slot-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #FFF3C4;
    font-weight: 900;
    letter-spacing: .18em;
    font-size: 14px;
    text-shadow: 0 2px 0 rgba(0,0,0,.25)
}

.pk-bulbs {
    position: absolute;
    inset: 6px;
    border-radius: 24px;
    pointer-events: none
}

.pk-bulb {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffe9a8;
    box-shadow: 0 0 6px 2px rgba(255,220,120,.55);
    opacity: .35;
    transition: opacity .08s
}

.pk-bulb.on {
    opacity: 1
}

.pk-win {
    position: relative;
    height: 198px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(#f4f1e8,#fff 30%,#fff 70%,#f4f1e8);
    border: 5px solid #3b1a10;
    box-shadow: inset 0 10px 18px -8px rgba(0,0,0,.45),inset 0 -10px 18px -8px rgba(0,0,0,.45)
}

.pk-reel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    will-change: transform
}

.pk-reel div {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-weight: 900;
    font-size: clamp(18px,3.2vw,30px);
    color: #24324e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px dashed rgba(52,87,168,.15)
}

.pk-payline {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    height: 66px;
    border-top: 3px solid rgba(224,88,58,.85);
    border-bottom: 3px solid rgba(224,88,58,.85);
    background: rgba(249,223,104,.18);
    pointer-events: none
}

.pk-payline::before,.pk-payline::after {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -11px;
    border: 11px solid transparent
}

.pk-payline::before {
    left: -2px;
    border-left-color: #E0583A
}

.pk-payline::after {
    right: -2px;
    border-right-color: #E0583A
}

.pk-win.blur .pk-reel div {
    filter: blur(1.4px)
}

.pk-win.won .pk-payline {
    animation: pkFlash .45s ease-in-out 4;
    background: rgba(249,223,104,.55)
}

@keyframes pkFlash {
    50% {
        background: rgba(255,255,255,.1)
    }
}

.pk-lever {
    position: absolute;
    right: -12px;
    top: 40px;
    width: 14px;
    height: 110px;
    border-radius: 8px;
    background: linear-gradient(90deg,#9aa4ad,#e6ebef,#9aa4ad);
    transform-origin: 50% 100%;
    transition: transform .35s cubic-bezier(.3,1.6,.6,1)
}

.pk-lever::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -18px;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,#ff8a6a,#c7290d 70%);
    box-shadow: 0 4px 8px rgba(0,0,0,.35)
}

.pk-lever.pull {
    transform: scaleY(.25)
}

.pk-cards {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    grid-template-columns: repeat(auto-fill,minmax(78px,1fr));
    perspective: 900px
}

.pk-card {
    position: relative;
    aspect-ratio: 3/4;
    cursor: default;
    transition: transform .5s cubic-bezier(.4,1.4,.5,1)
}

.pk-card-in {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.3,1.3,.5,1)
}

.pk-card.flip .pk-card-in {
    transform: rotateY(180deg)
}

.pk-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center
}

.pk-back {
    background: repeating-linear-gradient(45deg,#3457a8 0 8px,#0a7d70 8px 16px);
    border: 3px solid #F9DF68;
    color: #F9DF68;
    font-weight: 900;
    font-size: 26px;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.45)
}

.pk-back small {
    position: absolute;
    left: 6px;
    top: 4px;
    font-size: 12px;
    color: #fff;
    opacity: .8
}

.pk-front {
    transform: rotateY(180deg);
    background: linear-gradient(160deg,#FFF8DA,#F9DF68);
    border: 3px solid #E0583A;
    color: #24324e;
    font-weight: 900;
    font-size: 14px;
    padding: 6px;
    line-height: 1.2;
    word-break: break-word
}

.pk-card.hot .pk-back {
    box-shadow: 0 0 0 4px #E0583A,0 0 22px 6px rgba(249,223,104,.9);
    transform: translateY(-6px) scale(1.06)
}

.pk-card.dim {
    opacity: .35;
    transform: scale(.92)
}

.pk-card.win {
    z-index: 5;
    transform: scale(1.25)
}

.pk-card.win .pk-front {
    box-shadow: 0 0 0 4px #168A45,0 0 30px 8px rgba(22,138,69,.55)
}

.pk-elim {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    padding: 4px
}

.pk-chip {
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid rgba(52,87,168,.25);
    color: #24324e;
    font-weight: 800;
    font-size: 13.5px;
    transition: all .35s ease;
    white-space: nowrap
}

.pk-chip.hit {
    background: #E0583A;
    border-color: #E0583A;
    color: #fff;
    transform: scale(1.15) rotate(-4deg)
}

.pk-chip.out {
    opacity: .12;
    transform: scale(.8);
    text-decoration: line-through;
    filter: grayscale(1)
}

.pk-chip.final {
    background: #F9DF68;
    border-color: #E0583A;
    transform: scale(1.25);
    box-shadow: 0 0 18px rgba(249,223,104,.9)
}

.pk-chip.win {
    background: #168A45;
    border-color: #0e6a33;
    color: #fff;
    transform: scale(1.6);
    box-shadow: 0 0 28px 6px rgba(22,138,69,.55);
    z-index: 3
}

.pk-elim.tense {
    animation: pkShake .12s linear infinite
}

@keyframes pkShake {
    25% {
        transform: translateX(-1px)
    }

    75% {
        transform: translateX(1px)
    }
}

#picker-stage-area.tk-fs {
    display: flex!important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw!important;
    border-radius: 0!important;
    background: radial-gradient(circle at 50% 30%,#fffbe9,#f0f3fa 70%)!important
}

#picker-stage-area.tk-fs #wheel-canvas {
    width: min(78vh,88vw)!important;
    height: auto!important
}

#picker-stage-area.tk-fs .pk-slot {
    width: min(760px,90vw);
    transform: scale(1.15)
}

#picker-stage-area.tk-fs .pk-win {
    height: 300px
}

#picker-stage-area.tk-fs .pk-reel div {
    height: 100px;
    font-size: 46px
}

#picker-stage-area.tk-fs .pk-payline {
    top: 100px;
    height: 100px
}

#picker-stage-area.tk-fs .pk-cards {
    max-width: 1100px;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr))
}

#picker-stage-area.tk-fs .pk-front {
    font-size: 18px
}

#picker-stage-area.tk-fs .pk-elim {
    max-height: 70vh
}

#picker-stage-area.tk-fs .pk-chip {
    font-size: 18px;
    padding: 9px 16px
}

#picker-stage-area.tk-fs #box-slot-name {
    font-size: 64px;
    max-width: 90vw
}

#picker-stage-area.tk-fs #gift-icon {
    font-size: 140px
}

#picker-stage-area.tk-fs #winner-name-text {
    font-size: 72px
}

#picker-stage-area .pk-fs-exit {
    display: none
}

#picker-stage-area.tk-fs .pk-fs-exit {
    display: flex;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 40
}

#picker-stage-area.tk-fs .pk-fs-run {
    display: flex;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25
}

#picker-stage-area .pk-fs-run {
    display: none
}

#timer-display-card.tk-fs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff
}

body.dark #picker-stage-area.tk-fs {
    background: radial-gradient(circle at 50% 30%,#1d3a36,#0B1514 70%)!important
}

body.dark .pk-reel div {
    color: #24324e
}

body.dark .pk-chip {
    background: #13302c;
    color: #f0f3fa;
    border-color: rgba(234,244,242,.25)
}

@media (prefers-reduced-motion:reduce) {
    .pk-elim.tense {
        animation: none
    }
}

.pk-count button {
    width: 26px;
    height: 26px;
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
    color: #3457a8
}

.pk-count button:hover {
    background: #f0f3fa
}

.pk-count input {
    width: 38px;
    height: 26px;
    text-align: center;
    font-weight: 900;
    font-size: 14px;
    color: #3457a8;
    background: transparent;
    outline: none;
    border-left: 1px solid rgba(52,87,168,.15);
    border-right: 1px solid rgba(52,87,168,.15);
    -moz-appearance: textfield;
    appearance: textfield
}

.pk-count input::-webkit-inner-spin-button,.pk-count input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

body.dark .pk-count {
    background: #13302c
}

body.dark .pk-count button,body.dark .pk-count input {
    color: #f0f3fa
}

.wb-card {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 540px;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 18px 18px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 44px -22px rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: wbIn .35s cubic-bezier(.3,1.3,.5,1) both
}

@keyframes wbIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.wb-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer
}

.wb-x:hover {
    background: rgba(255,255,255,.26)
}

.wb-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(249,223,104,.16);
    color: #F9DF68;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    flex: none;
    max-width: calc(100% - 44px)
}

.wb-name {
    margin: 0;
    max-width: 100%;
    flex: none;
    font-size: clamp(26px,5.2vw,44px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-transform: none;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 12px rgba(0,0,0,.25)
}

.wb-name:not(.pk-multi)::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    border-radius: 3px;
    background: #F9DF68;
    margin: 10px auto 0
}

.wb-name.pk-multi {
    font-size: inherit;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 0 1 auto;
    min-height: 0
}

#winner-banner:has(#winner-question-box:not(.hidden)) .wb-info {
    display: none
}

#winner-banner:has(#winner-question-box:not(.hidden)) .wb-name::after {
    display: none
}

#winner-banner:has(#winner-question-box:not(.hidden)) .wb-name:not(.pk-multi) {
    font-size: clamp(20px,3.6vw,28px)
}

.wb-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin: 8px 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    max-width: 100%
}

.wb-info:empty {
    display: none
}

.wb-info span {
    white-space: nowrap
}

.wb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
    width: 100%;
    flex: none
}

.wb-actions.wb-sec {
    margin-top: 5px
}

.wb-multi .wb-sec {
    display: none
}

.wb-lbl {
    width: 100%;
    text-align: center;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #F9DF68;
    opacity: .9;
    margin: 0 0 -1px
}

.wb-name[data-l="2"] {
    font-size: clamp(23px,4.4vw,36px)
}

.wb-name[data-l="3"] {
    font-size: clamp(20px,3.6vw,30px)
}

.wb-name[data-l="4"] {
    font-size: clamp(18px,3.1vw,25px)
}

.wb-btn {
    padding: 5px 11px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .1s,background .15s
}

.wb-btn:active {
    transform: scale(.95)
}

.wb-p1 {
    background: #168A45;
    color: #fff
}

.wb-p1:hover {
    background: #0f6f37
}

.wb-p2 {
    background: #F9DF68;
    color: #24324e
}

.wb-p2:hover {
    background: #fbbf24
}

.wb-p5 {
    background: #E0583A;
    color: #fff
}

.wb-p5:hover {
    background: #c9442a
}

.wb-gh {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.35)
}

.wb-gh:hover {
    background: rgba(255,255,255,.14)
}

.wb-q {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(249,223,104,.35);
    text-align: left;
    box-sizing: border-box
}

.wb-ok {
    flex: none;
    margin-top: 10px;
    padding: 6px 24px;
    border-radius: 10px;
    border: 0;
    background: #F9DF68;
    color: #24324e;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px -8px rgba(0,0,0,.5)
}

.wb-ok:hover {
    background: #fff
}

.wb-list {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
    flex: 0 1 auto;
    min-height: 56px;
    max-height: min(46vh,340px);
    overflow-y: auto;
    padding: 2px;
    grid-template-columns: 1fr;
    align-content: start
}

.wb-list[data-c="2"] {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.wb-list[data-c="3"] {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.wb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 5px 6px 5px 7px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    animation: pkMwIn .4s cubic-bezier(.3,1.5,.6,1) both
}

.wb-i {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F9DF68;
    color: #24324e;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center
}

.wb-n {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    overflow-wrap: anywhere;
    font-size: clamp(15px,2.4vw,22px)
}

.wb-list[data-c="2"] .wb-n {
    font-size: clamp(14px,2vw,17px)
}

.wb-list[data-c="3"] .wb-n {
    font-size: clamp(13px,1.7vw,15px)
}

.wb-b {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    border: 0;
    background: #168A45;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer
}

.wb-b:hover {
    background: #0f6f37
}

@media (max-width: 420px) {
    .wb-card {
        padding:20px 12px 14px
    }

    .wb-list[data-c="3"] {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .wb-btn {
        padding: 5px 9px;
        font-size: 13px
    }
}

#picker-stage-area.tk-fs .wb-card {
    max-width: 900px;
    padding: 34px 30px 24px
}

#picker-stage-area.tk-fs .wb-n {
    font-size: 34px
}

#picker-stage-area.tk-fs .wb-list[data-c="2"] .wb-n {
    font-size: 26px
}

#picker-stage-area.tk-fs .wb-list[data-c="3"] .wb-n {
    font-size: 21px
}

#picker-stage-area.tk-fs .wb-list {
    max-height: 52vh
}

#picker-stage-area.tk-fs .wb-btn {
    font-size: 15px;
    padding: 8px 16px
}

#picker-stage-area.tk-fs .wb-ok {
    font-size: 16px;
    padding: 10px 32px
}

@keyframes pkMwIn {
    from {
        opacity: 0;
        transform: scale(.6)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.pk-burst {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    z-index: 6;
    line-height: 1
}

.hb-wrap,.ev-wrap {
    position: relative
}

.hb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 290px;
    justify-content: center
}

.hb-heart {
    font-size: clamp(110px,22vw,190px);
    line-height: 1;
    color: #e11d48;
    filter: drop-shadow(0 10px 22px rgba(225,29,72,.45));
    transform-origin: 50% 55%;
    user-select: none
}

.hb-heart.idle {
    animation: hbIdle 1.7s ease-in-out infinite
}

.hb-heart.beat {
    animation: hbBeat var(--d,.6s) ease-out
}

.hb-heart.boom {
    animation: hbBoom .7s ease-out forwards
}

@keyframes hbIdle {
    50% {
        transform: scale(1.07)
    }
}

@keyframes hbBeat {
    0% {
        transform: scale(1)
    }

    18% {
        transform: scale(1.28)
    }

    34% {
        transform: scale(1.04)
    }

    52% {
        transform: scale(1.18)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes hbBoom {
    0% {
        transform: scale(1);
        opacity: 1
    }

    40% {
        transform: scale(1.6)
    }

    100% {
        transform: scale(2.6);
        opacity: 0
    }
}

.hb-bpm {
    font-weight: 900;
    font-size: clamp(15px,2.4vw,20px);
    color: #be123c;
    letter-spacing: .06em;
    min-height: 26px
}

.hb-name {
    font-weight: 900;
    font-size: clamp(26px,5vw,48px);
    color: #24324e;
    min-height: 58px;
    text-align: center;
    max-width: 94%;
    transition: filter .25s;
    line-height: 1.15
}

.hb-name.rev {
    animation: pkMwIn .5s cubic-bezier(.3,1.5,.6,1) both;
    color: #be123c
}

.hb-name.multi {
    font-size: clamp(16px,2.8vw,28px)
}

.sp-stage {
    position: relative;
    width: min(100%,640px);
    aspect-ratio: 16/10;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 14px 34px -14px rgba(0,0,0,.6)
}

.sp-t {
    position: absolute;
    transform: translate(-50%,-50%);
    color: #e2e8f0;
    font-weight: 800;
    font-size: clamp(11px,1.7vw,15px);
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    max-width: 30%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform .4s,background .3s
}

.sp-t.lit {
    background: #F9DF68;
    color: #24324e;
    border-color: #E0583A;
    transform: translate(-50%,-50%) scale(1.45);
    box-shadow: 0 0 26px 6px rgba(249,223,104,.75);
    z-index: 3;
    max-width: none;
    overflow: visible
}

.sp-dark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at var(--x,50%) var(--y,50%),rgba(0,0,0,0) 0,rgba(0,0,0,0) calc(var(--r,100px)*.6),rgba(2,5,12,.99) var(--r,100px))
}

.sp-dark.lift {
    opacity: .5;
    transition: opacity 1s
}

.dc-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 720px;
    --bs: 44px
}

.dc-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px
}

.dc-b,.dc-sp {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.dc-b {
    width: var(--bs);
    height: calc(var(--bs)*1.25);
    border-radius: 9px;
    background: #24324e;
    color: #7dd3c8;
    font-weight: 900;
    font-size: calc(var(--bs)*.62);
    font-family: ui-monospace,Consolas,monospace;
    text-transform: uppercase;
    border-bottom: 4px solid #3457a8;
    transition: background .25s,color .25s,transform .25s
}

.dc-b.ok {
    background: #F9DF68;
    color: #24324e;
    border-bottom-color: #E0583A;
    transform: scale(1.12)
}

.dc-sp {
    width: calc(var(--bs)*.5)
}

.dc-row.done .dc-b {
    background: #168A45;
    color: #fff;
    border-bottom-color: #0e6a33;
    animation: dcPop .5s ease both
}

@keyframes dcPop {
    50% {
        transform: scale(1.25)
    }
}

.bm-ring {
    position: relative;
    width: min(92%,420px);
    aspect-ratio: 1/1;
    margin: 0 auto
}

.bm-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font-size: clamp(54px,12vw,92px);
    line-height: 1;
    transition: transform .15s;
    user-select: none
}

.bm-core.fuse {
    filter: drop-shadow(0 0 14px rgba(239,68,68,.9))
}

.bm-n {
    position: absolute;
    transform: translate(-50%,-50%);
    width: max-content;
    max-width: 34%;
    padding: 5px 10px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid rgba(52,87,168,.28);
    color: #24324e;
    font-weight: 800;
    font-size: clamp(11px,1.8vw,14px);
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    transition: transform .12s
}

.bm-n.hot {
    background: #E0583A;
    border-color: #E0583A;
    color: #fff;
    transform: translate(-50%,-50%) scale(1.22);
    box-shadow: 0 0 18px rgba(224,88,58,.8);
    z-index: 2
}

.bm-n.boom {
    background: #F9DF68;
    color: #24324e;
    border-color: #E0583A;
    transform: translate(-50%,-50%) scale(1.5);
    box-shadow: 0 0 30px 8px rgba(249,223,104,.85);
    z-index: 3;
    max-width: none;
    overflow: visible
}

.bm-n.dim {
    opacity: .25
}

.bm-ring.shake {
    animation: pkShake .08s linear 8
}

.ev-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding-top: 112px;
    perspective: 900px
}

.ev-count {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 900;
    font-size: 64px;
    color: #E0583A;
    min-height: 70px;
    line-height: 70px;
    pointer-events: none
}

.ev-count.pop {
    animation: evPop .85s ease-out both
}

@keyframes evPop {
    0% {
        transform: scale(2.4);
        opacity: 0
    }

    25% {
        opacity: 1
    }

    100% {
        transform: scale(1)
    }
}

.ev-env {
    position: relative;
    width: min(300px,78%);
    aspect-ratio: 3/2;
    margin: 0 auto
}

.ev-env.shake {
    animation: evShake .12s linear infinite
}

@keyframes evShake {
    25% {
        transform: rotate(-2.2deg)
    }

    75% {
        transform: rotate(2.2deg)
    }
}

.ev-back {
    position: absolute;
    inset: 0;
    background: #e9cf9a;
    border-radius: 10px;
    box-shadow: 0 14px 28px -12px rgba(120,80,20,.55)
}

.ev-card {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 8%;
    height: 86%;
    background: #fffdf5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    transition: transform 1s cubic-bezier(.3,1.2,.4,1);
    z-index: 2;
    overflow: hidden
}

.ev-env.show .ev-card {
    transform: translateY(-58%) scale(1.12);
    z-index: 5
}

.ev-q {
    font-size: 46px;
    font-weight: 900;
    color: #d4b66a
}

.ev-t {
    font-size: 12px;
    font-weight: 800;
    color: #8a6d2b;
    letter-spacing: .08em;
    text-transform: uppercase
}

.ev-n {
    font-family: inherit;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    color: #be123c;
    line-height: 1.2;
    font-size: var(--en,28px);
    overflow-wrap: anywhere
}

.ev-list {
    display: grid;
    gap: 0 12px;
    width: 100%
}

.ev-front {
    position: absolute;
    inset: 0;
    background: #e1c07a;
    clip-path: polygon(0 0,50% 56%,100% 0,100% 100%,0 100%);
    border-radius: 10px;
    z-index: 3
}

.ev-flap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 58%;
    background: #d7b46a;
    clip-path: polygon(0 0,100% 0,50% 100%);
    transform-origin: 50% 0;
    transition: transform .7s ease;
    z-index: 4;
    border-radius: 10px 10px 0 0
}

.ev-env.open .ev-flap {
    transform: rotateX(180deg);
    z-index: 1
}

.ev-msg {
    font-weight: 800;
    color: #be123c;
    font-size: clamp(13px,2vw,17px);
    text-align: center;
    min-height: 24px;
    margin-top: 16px;
    max-width: 92%
}

#picker-stage-area.tk-fs .sp-stage {
    width: min(1000px,90vw)
}

#picker-stage-area.tk-fs .sp-t {
    font-size: 20px
}

#picker-stage-area.tk-fs .hb-heart {
    font-size: min(36vh,300px)
}

#picker-stage-area.tk-fs .hb-name {
    font-size: 64px
}

#picker-stage-area.tk-fs .bm-ring {
    width: min(76vh,90vw)
}

#picker-stage-area.tk-fs .bm-n {
    font-size: 20px
}

#picker-stage-area.tk-fs .ev-env {
    width: min(520px,80vw)
}

body.dark .hb-name {
    color: #f0f3fa
}

body.dark .bm-n {
    background: #13302c;
    color: #f0f3fa;
    border-color: rgba(234,244,242,.25)
}

body.dark .bm-n.hot {
    background: #E0583A;
    color: #fff
}

body.dark .bm-n.boom {
    background: #F9DF68;
    color: #24324e
}

@media (prefers-reduced-motion:reduce) {
    .hb-heart.idle,.ev-env.shake {
        animation: none
    }
}
