/* Web Tools — hub, tool pages, converters */

.web-hidden {
    display: none !important;
}

/* ─── Hub ─── */
.web-hub {
    padding: calc(80px + 2rem) 0 4rem;
    background:
        radial-gradient(ellipse 70% 50% at 50% -5%, rgba(37, 99, 235, 0.1), transparent 55%),
        linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 35%, #FFFFFF 100%);
}

.web-hub-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 1.5rem;
}

.web-hub-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #DB2777;
}

.web-hub-header h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0F172A;
    line-height: 1.1;
}

.web-hub-subtitle,
.web-hub-tagline {
    margin: 0.45rem auto 0;
    max-width: 680px;
    color: #64748B;
    line-height: 1.55;
}

.web-hub-tagline { font-size: 0.95rem; }

.web-hub-privacy { max-width: 760px; margin: 1.25rem auto 0; }

.web-hub-toolbar {
    margin: 2rem auto 0;
    max-width: 980px;
}

.web-hub-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.web-hub-search svg {
    width: 1.1rem;
    height: 1.1rem;
    color: #94A3B8;
    flex-shrink: 0;
}

.web-hub-search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #0F172A;
    background: transparent;
}

.web-hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.web-hub-filter {
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.web-hub-filter:hover,
.web-hub-filter.is-active {
    border-color: #DB2777;
    color: #DB2777;
    background: #EFF6FF;
}

.web-featured { margin-top: 2.25rem; }

.web-section-label {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
}

.web-category { margin-top: 2.5rem; }

.web-category-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 650;
    color: #0F172A;
}

.web-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.web-grid--featured { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) {
    .web-grid,
    .web-grid--featured { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .web-grid,
    .web-grid--featured { grid-template-columns: 1fr; }
}

.web-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.web-card--live:hover {
    transform: translateY(-2px);
    border-color: #FBCFE8;
    box-shadow: 0 16px 32px rgba(219, 39, 119, 0.08);
}

.web-card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.web-card-icon svg { width: 22px; height: 22px; }

.web-card-icon--pink { background: #FCE7F3; color: #DB2777; }
.web-card-icon--rose { background: #FFE4E6; color: #E11D48; }
.web-card-icon--fuchsia { background: #FAE8FF; color: #C026D3; }
.web-card-icon--purple { background: #EDE9FE; color: #7C3AED; }
.web-card-icon--violet { background: #F3E8FF; color: #9333EA; }

.web-card-body { flex: 1; min-width: 0; }

.web-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.web-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: #0F172A;
}

.web-card p {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #64748B;
}

.web-badge--new {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #DB2777;
    background: #FCE7F3;
    border-radius: 999px;
}

.web-hub-empty {
    text-align: center;
    margin-top: 2rem;
    color: #64748B;
}

.web-back {
    margin-top: 2.5rem;
    text-align: center;
}

.web-back a {
    color: #DB2777;
    font-weight: 600;
    text-decoration: none;
}

.web-back a:hover { text-decoration: underline; }

/* ─── Tool page ─── */
.web-wrap {
    position: relative;
    padding: calc(80px + 2.5rem) 0 4rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 50% -5%, rgba(219, 39, 119, 0.12), transparent 55%),
        linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 40%, #FFFFFF 100%);
    min-height: 60vh;
}

.web-wrap .container {
    position: relative;
    z-index: 1;
}

.web-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.web-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #DB2777;
    background: rgba(219, 39, 119, 0.1);
    border-radius: 999px;
}

.web-header h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0F172A;
}

.web-header p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #64748B;
}

.web-tool-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.25rem;
    align-items: center;
    text-align: left;
    max-width: 900px;
}

.web-tool-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.web-tool-icon svg { width: 28px; height: 28px; }

.web-tool-icon--pink { background: #FCE7F3; color: #DB2777; }
.web-tool-icon--rose { background: #FFE4E6; color: #E11D48; }
.web-tool-icon--fuchsia { background: #FAE8FF; color: #C026D3; }
.web-tool-icon--purple { background: #EDE9FE; color: #7C3AED; }
.web-tool-icon--violet { background: #F3E8FF; color: #9333EA; }

.web-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 auto 1.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #334155;
    background: #EFF6FF;
    border: 1px solid #FBCFE8;
    border-radius: 8px;
}

.web-privacy svg {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    color: #DB2777;
}

.web-tool-nav {
    margin: 0 0 1.25rem;
}

.web-tool-nav a {
    color: #DB2777;
    font-weight: 600;
    text-decoration: none;
}

.web-tool-nav a:hover { text-decoration: underline; }

.web-alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.web-alert-error {
    color: #991B1B;
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.web-alert-success {
    color: #166534;
    background: #F0FDF4;
    border: 1px solid #86EFAC;
}

.web-workflow {
    margin-top: 1.25rem;
}

.web-workflow-panel {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.35rem;
}

.web-related {
    margin-top: 2.5rem;
}

.web-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.web-related-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: #0F172A;
    font-weight: 600;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.web-related-card:hover {
    border-color: #FBCFE8;
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.08);
}

.web-related-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.web-related-icon svg { width: 18px; height: 18px; }

/* ─── Converter layout ─── */
.web-converter-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem 1rem;
    align-items: end;
}

.web-result {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.65rem;
    background: #F8FAFC;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9375rem;
    word-break: break-all;
}

.web-result-value {
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.web-range-help {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #64748B;
}

/* ─── Color input ─── */
.web-color-input {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.web-color-picker {
    width: 3rem;
    height: 2.75rem;
    padding: 0.15rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.web-color-text {
    flex: 1;
}

/* ─── Swatches ─── */
.web-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.web-swatch {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 72px;
    padding: 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.web-swatch:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.web-swatch-code {
    position: relative;
    z-index: 1;
    padding: 0.15rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ─── Stats ─── */
.web-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
}

.web-stat {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #FFFFFF, #F8FAFC);
    border: 1px solid #E2E8F0;
}

.web-stat-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    word-break: break-all;
}

.web-stat-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94A3B8;
}

/* ─── Slider ─── */
.web-slider-wrap { margin-bottom: 0.5rem; }

.web-slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.web-slider-input {
    flex: 1;
    accent-color: #DB2777;
}

.web-slider-value {
    min-width: 3.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #334155;
}

/* ─── Contrast checker ─── */
.web-contrast-preview {
    margin: 1rem 0;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

.web-wcag-badge {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.web-wcag-pass {
    color: #166534;
    background: #DCFCE7;
}

.web-wcag-fail {
    color: #991B1B;
    background: #FEE2E2;
}

/* ─── Gradient ─── */
.web-gradient-stops {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.web-gradient-stop {
    padding: 0.85rem;
    border: 1px dashed #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
}

.web-gradient-preview {
    min-height: 120px;
    margin: 1rem 0;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ─── Named colors list ─── */
.web-named-list {
    display: grid;
    gap: 0.35rem;
    max-height: 420px;
    overflow: auto;
    margin-top: 0.75rem;
    padding-right: 0.25rem;
}

.web-named-row {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.web-named-row:hover {
    border-color: #FBCFE8;
    background: #EFF6FF;
}

.web-named-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.web-named-name {
    font-weight: 600;
    color: #0F172A;
    text-transform: capitalize;
}

.web-named-hex {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    color: #64748B;
}

/* ─── Basic calculator keypad ─── */
.web-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.25rem;
    text-align: right;
}

.web-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.web-key {
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.web-key-equals {
    background: #DB2777;
    border-color: #DB2777;
    color: #fff;
}

.web-key-equals:hover:not(:disabled) {
    background: #BE185D;
    border-color: #BE185D;
}

.web-gpa-rows {
    display: grid;
    gap: 0.75rem;
}

.web-gpa-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

@media (max-width: 640px) {
    .web-gpa-row {
        grid-template-columns: 1fr;
    }

    .web-converter-row {
        grid-template-columns: 1fr;
    }

    .web-tool-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .web-tool-icon {
        margin: 0 auto;
    }
}

/* ─── Game & interactive UI ─── */
.web-result--lg {
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.web-result--lg .web-result-value {
    font-size: 1.5rem;
}

.web-game-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.web-dice-panel {
    min-height: 4.5rem;
    align-items: center;
}

.web-die {
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #FFFFFF, #EFF6FF);
    border: 2px solid #A7F3D0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #065F46;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
    transition: transform 0.25s ease;
}

.web-dice-panel--rolled .web-die {
    animation: rnd-die-bounce 0.4s ease;
}

@keyframes rnd-die-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px) rotate(8deg); }
    70% { transform: translateY(-2px) rotate(-4deg); }
}

.web-coin {
    width: 5.5rem;
    height: 5.5rem;
    margin: 1rem auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #FDE68A, #F59E0B);
    border: 3px solid #D97706;
    font-size: 1.75rem;
    font-weight: 800;
    color: #78350F;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.25);
}

.web-coin--flip {
    animation: rnd-coin-flip 0.6s ease;
}

@keyframes rnd-coin-flip {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(540deg) scale(1.05); }
    100% { transform: rotateY(720deg); }
}

.web-rps-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.web-rps-btn {
    min-width: 7rem;
}

.web-rps-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.web-rps-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.75rem;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.web-rps-choice {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
}

.web-rps-role {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94A3B8;
}

.web-card-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.web-playing-card {
    min-width: 3.25rem;
    padding: 0.85rem 0.65rem;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.web-playing-card--red {
    color: #DC2626;
}

.web-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.web-team-block {
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.web-team-title {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #DB2777;
}

.web-team-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
}

.web-weight-rows {
    display: grid;
    gap: 0.65rem;
}

.web-weight-row {
    display: grid;
    grid-template-columns: 1fr 6rem auto;
    gap: 0.5rem;
    align-items: center;
}

.web-weight-remove {
    min-width: 2.5rem;
    padding-inline: 0.5rem;
}

.web-yesno {
    margin: 1.25rem auto;
    min-height: 5rem;
    max-width: 16rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 2px solid #E2E8F0;
    background: #F8FAFC;
    color: #64748B;
}

.web-yesno--yes {
    background: #DCFCE7;
    border-color: #86EFAC;
    color: #166534;
}

.web-yesno--no {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
}

.web-yesno--pop {
    animation: rnd-yesno-pop 0.5s ease;
}

@keyframes rnd-yesno-pop {
    0% { transform: scale(0.92); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.web-spinner-wrap {
    position: relative;
    width: min(100%, 280px);
    aspect-ratio: 1;
    margin: 1rem auto;
}

.web-spinner-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12), inset 0 0 0 2px #E2E8F0;
}

.web-spinner-pointer {
    position: absolute;
    top: -0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid #DB2777;
    filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.15));
}

.web-winners-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.web-winner-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #FBCFE8;
    background: linear-gradient(90deg, #FDF2F8, #FFFFFF);
    font-weight: 600;
    color: #0F172A;
}

.web-winner-rank {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #DB2777;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.web-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.5rem 0 1rem;
    cursor: pointer;
    user-select: none;
}

.web-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.web-switch-track {
    width: 2.5rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #CBD5E1;
    position: relative;
    transition: background 0.2s ease;
}

.web-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.web-switch input:checked + .web-switch-track {
    background: #2563EB;
}

.web-switch input:checked + .web-switch-track::after {
    transform: translateX(1.1rem);
}

.web-switch-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

/* ─── Tables, calendar, laps ─── */
.web-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.web-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.web-table th,
.web-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
}

.web-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94A3B8;
}

.web-calendar {
    margin: 1rem 0;
}

.web-calendar-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 650;
    color: #0F172A;
}

.web-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.web-calendar-head {
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: #94A3B8;
    padding: 0.35rem 0;
}

.web-calendar-day {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #fff;
    font-weight: 600;
    color: #334155;
}

.web-calendar-day--muted {
    color: #CBD5E1;
    background: #F8FAFC;
}

.web-calendar-day--today {
    border-color: #DB2777;
    background: #FDF2F8;
    color: #DB2777;
}

.web-lap-list {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .web-weight-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Tool output & preview ─── */
.web-code-output {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.web-preview-frame {
    width: 100%;
    min-height: 320px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
}

.web-hreflang-row .ut-row {
    display: grid;
    grid-template-columns: 8rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 640px) {
    .web-hreflang-row .ut-row {
        grid-template-columns: 1fr;
    }
}
