﻿:root {
    --html-backgrounds-color: #0a0820;
    --base-backgrounds-color: #12112b;
    --surface-background-color: rgba(29, 24, 56, 0.72);
    --surface-border-color: rgba(128, 108, 207, 0.26);
    --gold-color: #ffbc00;
    --gold-soft-color: #ffd45d;
    --text-color: #f8f7ff;
    --muted-text-color: #b1acd4;
    --muted-text-strong: #d6d2ee;
    --input-background-color: rgba(21, 16, 42, 0.88);
    --input-border-color: rgba(122, 101, 196, 0.36);
    --button-background-color: linear-gradient(135deg, #ffd86a 0%, #ffbc00 100%);
    --button-text-color: #1a1337;
    --shadow-soft: 0 20px 60px rgba(7, 4, 20, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    background:
        radial-gradient(circle at top, rgba(77, 102, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #0b0921 0%, var(--html-backgrounds-color) 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    background:
        radial-gradient(circle at 15% 0%, rgba(115, 79, 255, 0.15), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(36, 118, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #161334 0%, var(--base-backgrounds-color) 100%);
    color: var(--text-color);
}

body.tg-webapp {
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--tg-link-color, #734fff) 16%, transparent), transparent 28%),
        radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--tg-button-color, #ffbc00) 12%, transparent), transparent 24%),
        linear-gradient(180deg, #161334 0%, var(--base-backgrounds-color) 100%);
}

body.tg-webapp .topbar {
    background: rgba(25, 19, 52, 0.82);
}

body.tg-webapp--light {
    --html-backgrounds-color: #0a0820;
    --base-backgrounds-color: #12112b;
    --surface-background-color: rgba(29, 24, 56, 0.78);
    --surface-border-color: rgba(108, 123, 207, 0.22);
    --shadow-soft: 0 20px 60px rgba(7, 4, 20, 0.34);
}

body.tg-webapp--dark {
    --surface-background-color: color-mix(in srgb, var(--tg-secondary-bg-color, #1d1838) 82%, rgba(29, 24, 56, 0.72));
}

.tg-debug {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-text-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.page-shell > main {
    flex: 1 0 auto;
    width: 100%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(25, 19, 52, 0.76);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: env(safe-area-inset-top, 0);
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.topbar-nav::-webkit-scrollbar {
    display: none;
}

.topbar-nav--primary {
    flex: 1 1 auto;
}

.topbar-nav--secondary {
    flex: 0 0 auto;
    gap: 24px;
}

.topbar-label {
    color: rgba(248, 247, 255, 0.48);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-link {
    position: relative;
    display: inline-block;
    padding: 10px 0 20px;
    color: var(--muted-text-strong);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.topbar-link:hover {
    color: var(--text-color);
}

.topbar-link--active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.breadcrumbs {
    margin-bottom: 16px;
    color: var(--muted-text-color);
    font-size: 13px;
}

.breadcrumbs-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.32);
}

.panel {
    position: relative;
    overflow: hidden;
    background: var(--surface-background-color);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.summary-hero {
    padding: 38px;
    margin-bottom: 0;
    border-radius: 25px 25px 0 0;
    background:
        radial-gradient(circle at top right, rgba(255, 188, 0, 0.16), transparent 26%),
        radial-gradient(circle at left center, rgba(67, 99, 255, 0.20), transparent 22%),
        linear-gradient(135deg, rgba(25, 20, 50, 0.96) 0%, rgba(30, 24, 57, 0.84) 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    pointer-events: none;
}

.hero-orb--left {
    width: 220px;
    height: 220px;
    left: -80px;
    top: -100px;
    background: rgba(62, 127, 255, 0.18);
}

.hero-orb--right {
    width: 180px;
    height: 180px;
    right: -50px;
    top: 10px;
    background: rgba(255, 188, 0, 0.14);
}

.summary-copy,
.progress-panel,
.metric-grid,
.empty-state {
    position: relative;
    z-index: 1;
}

.summary-title,
.panel-title {
    margin: 0;
    color: var(--text-color);
}

.summary-title {
    max-width: 860px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.summary-subtitle {
    margin: 14px 0 0;
    max-width: 720px;
    color: var(--muted-text-strong);
    font-size: 18px;
    line-height: 1.6;
}

.summary-title-row {
    display: block;
}

.summary-note {
    margin: 8px 0 0;
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 1.5;
}

.progress-panel {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 12, 31, 0.42);
}

.progress-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.progress-label {
    margin: 0 0 6px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 700;
}

.progress-caption {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 14px;
}

.progress-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.legend-pill,
.field-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-text-strong);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.legend-pill--projected {
    border-color: rgba(255, 188, 0, 0.25);
    color: var(--gold-soft-color);
}

.progress-track {
    position: relative;
    overflow: hidden;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill--projected {
    background: linear-gradient(90deg, rgba(255, 188, 0, 0.16), rgba(255, 188, 0, 0.58));
}

.progress-fill--current {
    background: linear-gradient(90deg, #7f76ff 0%, #c3beff 100%);
    box-shadow: 0 0 24px rgba(137, 126, 255, 0.4);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
    align-items: stretch;
}

.metric-card,
.insight-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow: 0 14px 30px rgba(11, 8, 28, 0.24);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    min-width: 0;
}

.metric-card--primary {
    border-color: rgba(255, 188, 0, 0.22);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.metric-card:hover,
.insight-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 188, 0, 0.28);
    box-shadow: 0 20px 40px rgba(10, 7, 24, 0.4), 0 0 0 1px rgba(255, 188, 0, 0.08), 0 0 26px rgba(255, 188, 0, 0.08);
}

.metric-label,
.insight-label {
    margin: 0 0 10px;
    color: var(--muted-text-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value,
.insight-value {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.04em;
    font-weight: 800;
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
}

.metric-value[title],
.insight-value[title] {
    cursor: help;
}

.metric-note,
.insight-text {
    margin: 10px 0 0;
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.empty-state {
    display: none;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.empty-state__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 188, 0, 0.22), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 0 0 1px rgba(255, 188, 0, 0.18);
}

.empty-state__title {
    margin: 0 0 6px;
    font-size: 22px;
}

.empty-state__text {
    margin: 0;
    color: var(--muted-text-color);
    line-height: 1.6;
}

.summary-hero.is-empty .metric-grid,
.summary-hero.is-empty .progress-panel {
    display: none;
}

.summary-hero.is-empty .empty-state {
    display: flex;
}

.summary-hero.is-ready {
    animation: reveal 520ms ease;
}

.exp-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
    gap: 24px;
}

.control-panel,
.insight-panel {
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-header--single {
    justify-content: flex-start;
}

.panel-title {
    font-size: 24px;
    letter-spacing: -0.03em;
}

.form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 10px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.field-label {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 700;
}

.input {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border: 1px solid var(--input-border-color);
    background: var(--input-background-color);
    color: var(--text-color);
    font-size: 18px;
    border-radius: 18px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.input:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.input:focus {
    outline: none;
    border-color: rgba(255, 188, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.3), 0 0 24px rgba(255, 188, 0, 0.12);
}

.input::placeholder {
    color: var(--muted-text-color);
}

.level-control {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: stretch;
}

.level-picker {
    position: relative;
}

.level-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 56px;
    font-weight: 700;
    cursor: pointer;
}

.level-trigger::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 12px;
    height: 8px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23F8F7FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px 8px;
    transition: transform 180ms ease;
}

.level-picker.is-open .level-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.level-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(18, 14, 38, 0.96);
    box-shadow: 0 24px 48px rgba(7, 4, 20, 0.5);
    backdrop-filter: blur(18px);
}

.level-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--muted-text-strong);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.level-menu__close {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold-soft-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
}

.level-option {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-text-strong);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.level-option:hover {
    transform: scale(1.02);
    border-color: rgba(255, 188, 0, 0.28);
}

.level-option.is-active {
    border-color: rgba(255, 188, 0, 0.34);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.16), rgba(255, 188, 0, 0.08));
    color: var(--text-color);
    box-shadow: 0 0 22px rgba(255, 188, 0, 0.12);
}

.stepper {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border: 1px solid var(--input-border-color);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    font-size: 26px;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stepper:hover {
    transform: scale(1.02);
    border-color: rgba(255, 188, 0, 0.34);
    box-shadow: 0 0 18px rgba(255, 188, 0, 0.08);
}

.range {
    width: 100%;
    height: 14px;
    margin: 0;
    accent-color: var(--gold-color);
}

.input-compact {
    max-width: 160px;
}

.input-number {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.input-accent {
    border-color: rgba(255, 188, 0, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255, 188, 0, 0.08);
}

.segmented-control {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.segment-option {
    position: relative;
    display: inline-flex;
}

.segment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segment-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-text-strong);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.segment-option span:hover {
    transform: scale(1.02);
}

.segment-option input:checked + span {
    border-color: rgba(255, 188, 0, 0.34);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.16), rgba(255, 188, 0, 0.08));
    color: var(--text-color);
    box-shadow: 0 0 22px rgba(255, 188, 0, 0.12);
}

.hint {
    margin: 0;
    color: var(--gold-soft-color);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
    justify-self: end;
}

.helper-note {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 13px;
    line-height: 1.5;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.insight-card--wide {
    grid-column: 1 / -1;
}

.insight-value {
    font-size: clamp(24px, 3vw, 34px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 16px 22px;
    border: 0;
    border-radius: 18px;
    background: var(--button-background-color);
    color: var(--button-text-color);
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu {
    display: grid;
    gap: 12px;
}

.fade-update {
    animation: fadeSlide 520ms ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal {
    from {
        opacity: 0.55;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .exp-layout {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar-inner {
        padding: 14px 14px 0;
        gap: 14px;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .topbar-inner::-webkit-scrollbar {
        display: none;
    }

    .topbar-nav {
        gap: 18px;
        padding: 0;
    }

    .topbar-link {
        padding: 10px 0 16px;
        font-size: 12px;
        letter-spacing: 0.05em;
    }

    .topbar-nav--secondary {
        gap: 18px;
    }

    .topbar-label {
        font-size: 11px;
    }

    .container {
        padding: 18px 14px 28px;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    .summary-hero {
        padding: 22px 18px;
        margin-bottom: 18px;
    }

    .summary-title {
        font-size: clamp(28px, 10vw, 42px);
        line-height: 0.98;
    }

    .summary-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .metric-card,
    .insight-card,
    .control-panel,
    .insight-panel {
        padding: 16px;
    }

    .metric-value,
    .insight-value {
        font-size: clamp(24px, 8vw, 32px);
    }

    .input {
        min-height: 54px;
        padding: 12px 16px;
        font-size: 17px;
        border-radius: 16px;
    }

    .stepper {
        width: 52px;
        min-width: 52px;
        height: 52px;
        min-height: 52px;
        border-radius: 16px;
        font-size: 24px;
    }

    .dp-table-panel {
        margin-top: 18px;
        padding: 18px;
    }

    .dp-level-control {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
    }

    .dp-table-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-table-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
        border-radius: 18px;
    }

    .dp-table-row--head {
        display: none;
    }

    .dp-cell {
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .dp-cell-label {
        display: block;
        color: var(--muted-text-color);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .dp-cell-value {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
    }

    .dp-cell--status {
        grid-column: 1 / -1;
    }

    .hint {
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .topbar-nav {
        gap: 14px;
    }

    .topbar-link {
        font-size: 11px;
    }

    .summary-title {
        font-size: clamp(24px, 11vw, 34px);
    }

    .summary-subtitle,
    .metric-note,
    .insight-text {
        font-size: 14px;
    }

    .metric-card,
    .insight-card,
    .control-panel,
    .insight-panel,
    .dp-table-panel,
    .et-table-panel,
    .ot-table-panel,
    .rs-board-panel {
        padding: 14px;
    }

    .level-control,
    .dp-level-control,
    .ot-level-control {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 8px;
    }

    .stepper {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
    }
}

.about-page {
    padding-bottom: 40px;
}

.about-hero {
    margin-bottom: 24px;
}

.about-panel {
    padding: 24px;
}

.about-copy {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.about-copy p {
    margin: 0;
    color: var(--muted-text-strong);
    font-size: 16px;
    line-height: 1.7;
}

.about-credits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.about-button {
    margin-top: 14px;
    width: fit-content;
}

.home-tools-panel {
    padding: 28px;
}

.home-tools-head {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.home-tools-title {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.home-tools-subtitle {
    margin: 0;
    color: var(--muted-text-strong);
    font-size: 16px;
    line-height: 1.6;
}

.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.home-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 188px;
    padding: 22px;
    border: 1px solid rgba(124, 98, 255, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 188, 0, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(45, 34, 83, 0.96) 0%, rgba(28, 23, 54, 0.98) 100%);
    box-shadow:
        0 14px 30px rgba(11, 8, 28, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.home-tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(123, 103, 255, 0.16), transparent 22%),
        radial-gradient(circle at 85% 0%, rgba(255, 188, 0, 0.12), transparent 26%);
    opacity: 0.9;
    pointer-events: none;
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
    transform: scale(1.02);
    border-color: rgba(255, 188, 0, 0.3);
    box-shadow:
        0 22px 44px rgba(10, 7, 24, 0.42),
        0 0 0 1px rgba(255, 188, 0, 0.08),
        0 0 30px rgba(123, 103, 255, 0.12);
    filter: brightness(1.04);
    outline: 0;
}

.home-tool-card__body,
.home-tool-card__cta {
    position: relative;
    z-index: 1;
}

.home-tool-card__body {
    display: grid;
    gap: 12px;
}

.home-tool-card__title {
    margin: 0;
    color: var(--text-color);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-tool-card__desc {
    margin: 0;
    color: var(--muted-text-strong);
    font-size: 15px;
    line-height: 1.6;
}

.home-tool-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 20px;
    color: var(--gold-soft-color);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-tool-card__cta::after {
    content: "вЂє";
    font-size: 18px;
    line-height: 1;
}

.al-page {
    display: grid;
    gap: 24px;
}

.al-hero {
    margin-bottom: 0;
}

.al-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.al-control-panel {
    padding: 24px;
}

.al-form {
    gap: 20px;
}

.al-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.al-input,
.al-select {
    min-height: 56px;
}

.al-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

.al-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.al-summary__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-text-strong);
    font-size: 14px;
    line-height: 1.5;
}

.al-summary__key {
    opacity: 0.74;
}

.al-summary__value {
    color: var(--text-color);
    font-weight: 800;
}

.al-summary__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.al-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.al-result-panel {
    padding: 24px;
}

.al-card-list {
    display: grid;
    gap: 16px;
}

.al-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow: 0 14px 30px rgba(11, 8, 28, 0.16);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.al-card:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 40px rgba(10, 7, 24, 0.32);
    filter: brightness(1.03);
}

.al-card--ok {
    border-color: rgba(79, 214, 130, 0.18);
    background: linear-gradient(180deg, rgba(79, 214, 130, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.al-card--warn {
    border-color: rgba(255, 188, 0, 0.18);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.al-card.is-nearest {
    box-shadow: 0 18px 34px rgba(255, 188, 0, 0.16), 0 0 0 1px rgba(255, 188, 0, 0.08);
}

.al-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.al-card__title {
    margin: 0;
    color: var(--text-color);
    font-size: 22px;
    line-height: 1.15;
}

.al-card__meta,
.al-card__note {
    margin: 0;
    color: var(--muted-text-strong);
    font-size: 14px;
    line-height: 1.6;
}

.al-card__tags,
.al-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.al-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-text-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.al-tag.is-fire { color: #ff9f7f; }
.al-tag.is-water { color: #90c9ff; }
.al-tag.is-earth { color: #c8b07f; }
.al-tag.is-wind { color: #98ffe0; }
.al-tag.is-dark { color: #c2afff; }
.al-tag.is-holy { color: #ffe88b; }

.al-card__stat {
    color: var(--muted-text-strong);
    font-size: 14px;
    line-height: 1.5;
}

.al-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.al-card__status--ok {
    background: rgba(79, 214, 130, 0.14);
    color: #80ef9f;
}

.al-card__status--warn {
    background: rgba(255, 188, 0, 0.14);
    color: #ffd45d;
}

.al-empty {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted-text-strong);
}

@media (max-width: 1040px) {
    .home-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .al-fields-grid,
    .al-results-grid,
    .al-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .about-panel {
        padding: 18px;
    }

    .about-credits {
        grid-template-columns: 1fr;
    }

    .about-copy p {
        font-size: 15px;
    }

    .home-tools-panel {
        padding: 18px;
    }

    .home-tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-tool-card {
        min-height: 168px;
        padding: 18px;
    }

    .home-tool-card__title {
        font-size: 22px;
    }

    .al-fields-grid,
    .al-results-grid,
    .al-metric-grid {
        grid-template-columns: 1fr;
    }

    .al-control-panel,
    .al-result-panel {
        padding: 18px;
    }

    .al-card__head {
        flex-direction: column;
    }

    .al-summary {
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .al-summary__divider {
        display: none;
    }
}

.cg-layout {
    align-items: start;
}

.cg-page > .summary-hero + .exp-layout.cg-layout {
    margin-top: -24px;
}

.cg-page > .summary-hero + .exp-layout.cg-layout > .cg-control-panel {
    border-radius: 0 0 25px 25px;
}

.cg-page .panel-title {
    text-transform: uppercase;
}

body.cg-status-ok {
    --cg-status-rgb: 79, 214, 130;
    --cg-status-color: #80ef9f;
    --cg-status-soft: rgba(79, 214, 130, 0.16);
    --cg-status-border: rgba(79, 214, 130, 0.3);
}

body.cg-status-near {
    --cg-status-rgb: 255, 188, 0;
    --cg-status-color: #ffcf33;
    --cg-status-soft: rgba(255, 188, 0, 0.24);
    --cg-status-border: rgba(255, 188, 0, 0.42);
}

body.cg-status-bad {
    --cg-status-rgb: 255, 96, 96;
    --cg-status-color: #ff9d9d;
    --cg-status-soft: rgba(255, 96, 96, 0.16);
    --cg-status-border: rgba(255, 96, 96, 0.3);
}

.cg-hero {
    margin-bottom: 24px;
    --cg-status-rgb: 255, 188, 0;
    --cg-status-color: #ffd45d;
    --cg-status-soft: rgba(255, 188, 0, 0.16);
    --cg-status-border: rgba(255, 188, 0, 0.3);
}

.cg-hero--ok {
    --cg-status-rgb: 79, 214, 130;
    --cg-status-color: #80ef9f;
    --cg-status-soft: rgba(79, 214, 130, 0.16);
    --cg-status-border: rgba(79, 214, 130, 0.3);
    background:
        radial-gradient(circle at top right, rgba(79, 214, 130, 0.26), transparent 28%),
        radial-gradient(circle at left center, rgba(67, 99, 255, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(15, 52, 38, 0.98) 0%, rgba(19, 62, 45, 0.9) 100%);
}

.cg-hero--near {
    --cg-status-rgb: 255, 188, 0;
    --cg-status-color: #ffcf33;
    --cg-status-soft: rgba(255, 188, 0, 0.24);
    --cg-status-border: rgba(255, 188, 0, 0.42);
    background:
        radial-gradient(circle at top right, rgba(255, 188, 0, 0.26), transparent 28%),
        radial-gradient(circle at left center, rgba(255, 213, 93, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(68, 50, 12, 0.98) 0%, rgba(84, 58, 14, 0.9) 100%);
}

.cg-hero--bad {
    --cg-status-rgb: 255, 96, 96;
    --cg-status-color: #ff9d9d;
    --cg-status-soft: rgba(255, 96, 96, 0.16);
    --cg-status-border: rgba(255, 96, 96, 0.3);
    background:
        radial-gradient(circle at top right, rgba(255, 96, 96, 0.28), transparent 28%),
        radial-gradient(circle at left center, rgba(67, 99, 255, 0.1), transparent 22%),
        linear-gradient(135deg, rgba(64, 18, 28, 0.98) 0%, rgba(72, 21, 31, 0.9) 100%);
}

.cg-hero--ok .metric-card--primary {
    border-color: rgba(79, 214, 130, 0.3);
    background: linear-gradient(180deg, rgba(79, 214, 130, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.cg-hero--near .metric-card--primary {
    border-color: rgba(255, 188, 0, 0.42);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.cg-hero--bad .metric-card--primary {
    border-color: rgba(255, 96, 96, 0.3);
    background: linear-gradient(180deg, rgba(255, 96, 96, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.cg-has-result .cg-hero .metric-card {
    border-color: color-mix(in srgb, var(--cg-status-border) 72%, rgba(255, 255, 255, 0.08));
    background: linear-gradient(180deg, color-mix(in srgb, var(--cg-status-soft) 60%, rgba(255, 255, 255, 0.025)) 0%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow: 0 14px 26px rgba(11, 8, 28, 0.22), 0 0 0 1px rgba(var(--cg-status-rgb), 0.06);
}

.cg-has-result .cg-hero .metric-label,
.cg-has-result .cg-hero .metric-note,
.cg-has-result .cg-hero .summary-note {
    color: color-mix(in srgb, var(--cg-status-color) 42%, #ffffff);
}

.cg-has-result .cg-hero .summary-title {
    white-space: nowrap;
    text-wrap: nowrap;
}

.cg-has-result .cg-hero .summary-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.cg-has-result .cg-hero .metric-note {
    color: rgba(255, 255, 255, 0.8);
}

.cg-has-result .cg-hero .metric-card--action {
    border-color: color-mix(in srgb, var(--cg-status-border) 100%, rgba(255, 255, 255, 0.12));
    background:
        radial-gradient(circle at top right, rgba(var(--cg-status-rgb), 0.18), transparent 42%),
        linear-gradient(180deg, color-mix(in srgb, var(--cg-status-soft) 100%, rgba(255, 255, 255, 0.04)) 0%, rgba(255, 255, 255, 0.028) 100%);
    box-shadow:
        0 18px 34px rgba(11, 8, 28, 0.28),
        0 0 0 1px rgba(var(--cg-status-rgb), 0.16),
        0 0 34px rgba(var(--cg-status-rgb), 0.16);
}

.cg-has-result .cg-hero .metric-card--action .metric-value {
    color: #ffffff;
}

.cg-has-result .cg-hero .metric-card--action .metric-label {
    color: color-mix(in srgb, var(--cg-status-color) 58%, #ffffff);
}

.cg-status-ok .cg-hero .metric-card--action {
    border-color: color-mix(in srgb, var(--cg-status-border) 70%, rgba(255, 255, 255, 0.1));
    background:
        radial-gradient(circle at top right, rgba(var(--cg-status-rgb), 0.1), transparent 42%),
        linear-gradient(180deg, color-mix(in srgb, var(--cg-status-soft) 72%, rgba(255, 255, 255, 0.03)) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        0 14px 26px rgba(11, 8, 28, 0.2),
        0 0 0 1px rgba(var(--cg-status-rgb), 0.08);
}

.cg-has-result .cg-hero #cooldownGapCooldown,
.cg-has-result .cg-hero #cooldownGapReduction,
.cg-has-result .cg-insight-panel .insight-value,
.cg-has-result.cg-status-ok #cooldownGapQuickHint,
.cg-has-result.cg-status-ok .cg-help__button,
.cg-has-result.cg-status-near #cooldownGapQuickHint,
.cg-has-result.cg-status-near .cg-help__button,
.cg-has-result.cg-status-bad #cooldownGapQuickHint,
.cg-has-result.cg-status-bad .cg-help__button {
    color: var(--cg-status-color);
}

.cg-has-result.cg-status-ok #cooldownGapQuickHint {
    text-shadow: 0 0 16px rgba(79, 214, 130, 0.16);
}

.cg-has-result.cg-status-near #cooldownGapQuickHint {
    text-shadow: 0 0 16px rgba(255, 188, 0, 0.14);
}

.cg-has-result.cg-status-bad #cooldownGapQuickHint {
    text-shadow: 0 0 16px rgba(255, 96, 96, 0.14);
}

.cg-has-result .cg-help__button {
    border-color: color-mix(in srgb, var(--cg-status-border) 78%, rgba(255, 255, 255, 0.1));
    background: color-mix(in srgb, var(--cg-status-soft) 64%, rgba(255, 255, 255, 0.04));
}

.cg-has-result .cg-insight-panel .insight-card {
    border-color: color-mix(in srgb, var(--cg-status-border) 68%, rgba(255, 255, 255, 0.08));
    background: linear-gradient(180deg, color-mix(in srgb, var(--cg-status-soft) 82%, rgba(255, 255, 255, 0.025)) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.cg-hero--ok .summary-title,
.cg-hero--ok #cooldownGapValue {
    color: #80ef9f;
}

.cg-hero--near .summary-title,
.cg-hero--near #cooldownGapValue {
    color: #ffcf33;
}

.cg-hero--bad .summary-title,
.cg-hero--bad #cooldownGapValue {
    color: #ff9d9d;
}

.cg-headline-value {
    color: #ffffff;
}

.cg-metric-grid {
    margin-top: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cg-metric-grid .metric-card {
    padding: 18px 20px;
}

.cg-metric-grid .metric-card .metric-label {
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.cg-metric-grid .metric-card .metric-value {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
}

.cg-metric-grid .metric-card .metric-note {
    margin-top: 12px;
    max-width: none;
}

.cg-control-panel,
.cg-insight-panel,
.cg-options-panel {
    position: relative;
}

.cg-layout {
    grid-template-columns: 1fr;
}

.cg-control-panel {
    overflow: visible;
}

.cg-layout > .cg-control-panel,
.cg-layout > .cg-insight-panel {
    height: 100%;
}

.cg-control-panel,
.cg-insight-panel {
    display: flex;
    flex-direction: column;
}

.cg-insight-grid {
    flex: 1;
    align-items: stretch;
}

.cg-form {
    gap: 22px;
}

.cg-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

body.cg-manual-mode .cg-fields-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cg-mode-segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cg-mode-segmented .segment-option span {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
    color: var(--muted-text-strong);
    font-size: 14px;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.cg-mode-segmented .segment-option span:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.cg-mode-segmented .segment-option input:checked + span {
    border-color: rgba(255, 188, 0, 0.34);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.2), rgba(255, 188, 0, 0.08));
    color: var(--text-color);
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.1), 0 8px 18px rgba(255, 188, 0, 0.08);
}

.cg-manual-field[hidden] {
    display: none;
}

.cg-form .field {
    gap: 12px;
}

.cg-form .field-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(248, 247, 255, 0.8);
}

.cg-manual-field {
    animation: fadeSlide 220ms ease;
}

.cg-manual-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-text-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    opacity: 0.72;
}

.cg-manual-caption-row {
    display: inline;
    white-space: normal;
}

.cg-manual-caption-row .cg-manual-caption {
    display: inline;
}

.cg-help--inline {
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
    margin-left: 4px;
}

.cg-input-wrap {
    position: relative;
    display: block;
    --cg-unit-offset: 28px;
}

.cg-input-unit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--cg-unit-offset)), -50%);
    color: rgba(248, 247, 255, 0.52);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    pointer-events: none;
}

.cg-input-measure {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    pointer-events: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cg-input {
    min-height: 58px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    padding-left: 48px;
    padding-right: 48px;
}

.cg-hints {
    display: grid;
    gap: 6px;
}

.cg-hints--summary {
    margin-top: 0;
}

.cg-hint-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cg-hint {
    justify-self: center;
    text-align: center;
    line-height: 1.6;
    color: var(--muted-text-strong);
    flex: 0 1 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cg-hint-key {
    opacity: 0.7;
}

.cg-hint-strong {
    color: var(--text-color);
    font-weight: 800;
}

.cg-hint-dot {
    display: inline-block;
    width: 1px;
    height: 14px;
    margin: 0 10px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.cg-helper-note {
    display: none;
    margin: 0;
}

.cg-help {
    position: relative;
    flex: 0 0 auto;
}

.cg-help__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255, 188, 0, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-soft-color);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cg-help__button:hover,
.cg-help__button:focus-visible {
    transform: scale(1.04);
    border-color: rgba(255, 188, 0, 0.42);
    box-shadow: 0 0 16px rgba(255, 188, 0, 0.08);
    outline: 0;
}

.cg-help__button svg {
    width: 14px;
    height: 14px;
}

.cg-help__button--text {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffd45d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.cg-has-result .cg-help__button--text {
    color: #ffd45d;
    border-color: transparent;
    background: transparent;
}

.cg-help__button--text:hover,
.cg-help__button--text:focus-visible {
    color: #ffe28b;
    box-shadow: none;
    transform: none;
}

.cg-help__tooltip {
    position: absolute;
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: none;
    width: min(320px, 72vw);
    padding: 12px 14px;
    border: 1px solid rgba(255, 188, 0, 0.18);
    border-radius: 14px;
    background: rgba(22, 18, 38, 0.98);
    color: var(--muted-text-strong);
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 18px 34px rgba(7, 4, 20, 0.34);
}

.cg-help.is-open .cg-help__tooltip {
    display: block;
}

.cg-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cg-options-panel {
    margin-top: 24px;
    padding: 22px;
}

.cg-options-panel__header {
    align-items: center;
}

.cg-mode-button {
    flex: 0 0 auto;
    width: 56px;
    min-width: 56px;
    min-height: 46px;
    padding: 10px;
    border-radius: 16px;
}

.cg-mode-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--muted-text-strong);
}

.cg-mode-button__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cg-mode-button__icon-compact {
    display: none !important;
}

.cg-mode-button.is-active .cg-mode-button__icon-grid {
    display: none !important;
}

.cg-mode-button.is-active .cg-mode-button__icon-compact {
    display: block !important;
}

.cg-mode-button:hover,
.cg-mode-button:focus {
    transform: none;
    border-color: rgba(255, 188, 0, 0.24);
    box-shadow: 0 0 18px rgba(255, 188, 0, 0.06);
}

.cg-mode-button.is-active {
    border-color: rgba(255, 188, 0, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.12), 0 0 18px rgba(255, 188, 0, 0.08);
}

.cg-mode-button--auto-compact {
    width: auto !important;
    max-width: 48px;
    min-width: 48px;
    min-height: 44px;
    padding: 10px 12px;
    flex: 0 0 48px;
}

.cg-mode-button--auto-compact .cg-mode-button__icon {
    display: inline-flex !important;
}

.cg-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cg-option-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 28px rgba(11, 8, 28, 0.18);
    transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cg-option-card--toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    cursor: pointer;
}

.cg-option-card--select {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.cg-option-card--custom {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.cg-option-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.cg-option-card.is-active {
    border-color: rgba(255, 188, 0, 0.28);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.08), 0 14px 30px rgba(11, 8, 28, 0.22);
}

.cg-option-card.is-inactive {
    opacity: 0.68;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.018);
}

.cg-option-card:hover {
    transform: translateY(-2px) scale(1.006);
    border-color: rgba(255, 188, 0, 0.18);
    box-shadow: 0 16px 32px rgba(11, 8, 28, 0.22);
}

.cg-option-card.is-active:hover {
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.12), 0 18px 34px rgba(11, 8, 28, 0.26);
}

.cg-option-card.is-inactive:hover {
    opacity: 0.82;
}

.cg-option-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.cg-option-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cg-option-icon-wrap {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.cg-option-heading {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cg-option-copy--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cg-option-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(7, 4, 20, 0.2);
}

.cg-option-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    object-fit: cover;
    pointer-events: none;
}

.cg-option-name {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-option-subtitle {
    color: var(--muted-text-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.cg-option-inline-accent {
    display: none;
    color: var(--gold-soft-color);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.cg-option-accent {
    color: var(--gold-soft-color);
}

body.cg-compact-mode .cg-option-icon-wrap,
body.cg-compact-mode .cg-option-subtitle {
    display: none;
}

body.cg-compact-mode .cg-option-title {
    gap: 0;
}

body.cg-compact-mode .cg-option-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.cg-compact-mode .cg-option-inline-accent {
    display: inline;
}

.cg-option-value {
    color: var(--gold-soft-color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.cg-option-check {
    width: 22px;
    height: 22px;
    accent-color: var(--gold-color);
    cursor: pointer;
    filter: drop-shadow(0 0 0 rgba(255, 188, 0, 0));
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.cg-option-card .cg-option-check {
    pointer-events: none;
}

.cg-option-check:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 8px rgba(255, 188, 0, 0.16));
}

.cg-option-check:focus-visible {
    outline: 0;
    filter: drop-shadow(0 0 10px rgba(255, 188, 0, 0.28));
}

.cg-option-select {
    width: 168px;
    min-height: 44px;
    padding: 10px 42px 10px 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23F8F7FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.cg-option-input {
    width: 168px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.cg-option-select:hover {
    transform: scale(1.01);
    border-color: rgba(255, 188, 0, 0.24);
    box-shadow: 0 0 18px rgba(255, 188, 0, 0.06);
}

.cg-option-input:hover {
    transform: scale(1.01);
    border-color: rgba(255, 188, 0, 0.24);
    box-shadow: 0 0 18px rgba(255, 188, 0, 0.06);
}

.cg-option-select:focus {
    transform: scale(1.01);
    border-color: rgba(255, 188, 0, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.18), 0 0 20px rgba(255, 188, 0, 0.1);
}

.cg-option-input:focus {
    transform: scale(1.01);
    border-color: rgba(255, 188, 0, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.18), 0 0 20px rgba(255, 188, 0, 0.1);
}

.cg-option-select option {
    background: #231c45;
    color: #f8f7ff;
}

.cg-option-select option:checked {
    background: #2d6fd6;
    color: #ffffff;
}

@media (max-width: 980px) {
    .cg-insight-grid,
    .cg-options {
        grid-template-columns: 1fr;
    }

    .cg-option-card--select {
        grid-template-columns: minmax(0, 1fr) 168px;
    }

    .cg-option-card--custom {
        grid-template-columns: minmax(0, 1fr) 168px auto;
    }
}

@media (max-width: 720px) {
    .cg-fields-grid,
    body.cg-manual-mode .cg-fields-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cg-has-result .cg-hero .summary-title {
        white-space: normal;
        text-wrap: balance;
    }

    .cg-metric-grid {
        grid-template-columns: 1fr;
    }

    .cg-input {
        font-size: 24px;
    }

    .cg-hint-row {
        align-items: flex-start;
    }

    .cg-page {
        padding-left: 0;
        padding-right: 0;
    }

    .cg-control-panel {
        padding: 10px;
    }

    .cg-options-panel .et-table-subtitle {
        display: none;
    }

    .cg-helper-note {
        display: none;
    }

    .cg-help__tooltip {
        top: auto;
        bottom: calc(100% + 10px);
        right: 0;
        width: min(280px, calc(100vw - 36px));
    }

    .cg-insight-panel {
        display: none;
    }

    .cg-options-panel {
        margin-top: 18px;
        padding: 10px;
    }

    .cg-options-panel__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .cg-options-panel__header .cg-mode-button {
        width: auto;
        max-width: 48px;
        min-width: 48px;
        min-height: 44px;
        padding: 10px 12px;
        flex: 0 0 48px;
    }

    .cg-options-panel__header .panel-title {
        margin: 0;
    }

    .cg-options-panel__header .cg-mode-button__icon {
        display: inline-flex !important;
    }

    .cg-options-panel__header .cg-mode-button.site-footer__button {
        width: auto !important;
    }

    .cg-option-card--select {
        grid-template-columns: minmax(0, 1fr) 150px;
        gap: 10px;
    }

    .cg-option-card--custom {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cg-option-select {
        width: 150px;
        min-height: 42px;
        padding: 9px 38px 9px 12px;
        font-size: 14px;
        background-position: right 12px center;
    }

    .cg-option-input {
        width: 150px;
        min-height: 42px;
        padding: 9px 12px;
        font-size: 14px;
    }

    .cg-option-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

[data-layout-header],
[data-layout-footer] {
    display: block;
}

.site-footer {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(14, 11, 32, 0.78);
    backdrop-filter: blur(18px);
}

.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 26px;
}

.site-footer__grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__meta {
    display: grid;
    gap: 8px;
}

.site-footer__text {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.site-footer__link {
    color: var(--gold-soft-color);
    text-decoration: none;
}

.site-footer__link:hover {
    color: var(--text-color);
}

.site-footer__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-footer__button {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 13px;
}

.site-footer__button--ghost {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
}

@media (max-width: 720px) {
    .site-footer__inner {
        padding: 16px 14px 22px;
    }

    .site-footer__grid {
        flex-direction: column;
    }

    .site-footer__actions {
        width: 100%;
        justify-content: stretch;
    }

    .site-footer__button {
        width: 100%;
    }
}

.dp-layout {
    align-items: start;
}

.dp-metric-grid {
    margin-top: 30px;
}

.dp-control-panel,
.dp-insight-panel,
.dp-table-panel {
    position: relative;
}

.dp-level-control {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
}

.dp-level-input {
    text-align: center;
    font-weight: 700;
}

.dp-table-panel {
    margin-top: 24px;
    padding: 22px;
}

.dp-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--muted-text-strong);
    font-size: 14px;
}

.dp-table {
    display: grid;
    gap: 8px;
}

.dp-table-row {
    display: grid;
    grid-template-columns: 1.05fr 0.8fr 1.2fr 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

button.dp-table-row {
    cursor: pointer;
}

button.dp-table-row:hover {
    transform: scale(1.01);
    border-color: rgba(255, 188, 0, 0.22);
    box-shadow: 0 12px 24px rgba(7, 4, 20, 0.22);
}

.dp-table-row--head {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-text-strong);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dp-table-row.is-selected {
    border-color: rgba(255, 188, 0, 0.36);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.12), 0 0 24px rgba(255, 188, 0, 0.08);
}

.dp-table-row.has-penalty {
    border-color: rgba(126, 122, 255, 0.18);
}

.dp-table-row.is-threshold {
    background: linear-gradient(180deg, rgba(126, 122, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.dp-table-row.is-strong {
    border-color: rgba(255, 188, 0, 0.22);
}

.dp-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dp-cell-label {
    display: none;
}

.dp-cell-value {
    display: block;
}

.dp-cell--level .dp-cell-value {
    font-weight: 700;
}

@media (max-width: 980px) {
    .dp-table-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    .dp-table-panel {
        margin-top: 18px;
        padding: 18px;
    }

    .dp-level-control {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
    }

    .dp-table-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-table-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
        border-radius: 18px;
    }

    .dp-table-row--head {
        display: none;
    }

    .dp-cell {
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .dp-cell-label {
        display: block;
        color: var(--muted-text-color);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .dp-cell-value {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
    }

    .dp-cell--status {
        grid-column: 1 / -1;
    }
}
.et-table-panel {
    margin-top: 24px;
    padding: 22px;
}

.et-table-panel__header {
    margin-bottom: 14px;
}

.et-table-subtitle {
    margin: 10px 0 0;
    color: var(--muted-text-color);
    font-size: 15px;
    line-height: 1.5;
}

.et-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--muted-text-strong);
    font-size: 14px;
}

.et-table {
    display: grid;
    gap: 10px;
}

.et-table-row {
    display: grid;
    grid-template-columns: 120px minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.et-table-row--head {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
}

.et-table-cell {
    min-width: 0;
}

.et-table-cell--level {
    font-weight: 700;
}

.et-cell-label {
    display: none;
}

.et-cell-value {
    display: block;
    overflow-wrap: anywhere;
}

.et-table-empty {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted-text-strong);
}

@media (max-width: 720px) {
    .et-table-panel {
        margin-top: 18px;
        padding: 18px;
    }

    .et-table-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .et-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .et-table-row--head {
        display: none;
    }

    .et-table-cell {
        display: grid;
        gap: 4px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .et-cell-label {
        display: block;
        color: var(--muted-text-color);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .et-cell-value {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
    }
}
.wb-layout {
    align-items: start;
}

.wb-hero {
    margin-bottom: 24px;
}

.wb-metric-grid {
    margin-top: 28px;
}

.wb-control-panel,
.wb-insight-panel {
    position: relative;
}

.wb-form {
    gap: 18px;
}

.wb-input {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.wb-hints {
    display: grid;
    gap: 6px;
}

.wb-hint {
    justify-self: start;
    text-align: left;
}

.wb-helper-note {
    margin: 0;
}

.wb-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .wb-insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .wb-input {
        font-size: 24px;
    }
}
.ot-layout {
    align-items: start;
}

.ot-hero {
    margin-bottom: 24px;
}

.ot-metric-grid {
    margin-top: 28px;
}

.ot-control-panel,
.ot-insight-panel,
.ot-table-panel {
    position: relative;
}

.ot-level-control {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
}

.ot-level-input {
    text-align: center;
    font-weight: 700;
}

.ot-hints {
    display: grid;
    gap: 6px;
}

.ot-hint {
    justify-self: start;
    text-align: left;
}

.ot-helper-note {
    margin: 0;
}

.ot-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ot-table-panel {
    margin-top: 24px;
    padding: 22px;
}

.ot-table-panel__header {
    margin-bottom: 14px;
}

.ot-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--muted-text-strong);
    font-size: 14px;
}

.ot-table {
    display: grid;
    gap: 10px;
}

.ot-table-row {
    display: grid;
    grid-template-columns: 110px minmax(160px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-color);
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

button.ot-table-row {
    cursor: pointer;
}

button.ot-table-row:hover {
    transform: scale(1.01);
    border-color: rgba(255, 188, 0, 0.22);
    box-shadow: 0 12px 24px rgba(7, 4, 20, 0.22);
}

.ot-table-row--head {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
}

.ot-table-row.is-selected {
    border-color: rgba(255, 188, 0, 0.36);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.12), 0 0 24px rgba(255, 188, 0, 0.08);
}

.ot-cell {
    min-width: 0;
}

.ot-cell--level {
    font-weight: 700;
}

.ot-cell-label {
    display: none;
}

.ot-cell-value {
    display: block;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .ot-insight-grid {
        grid-template-columns: 1fr;
    }

    .ot-table-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ot-level-control {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
    }

    .ot-table-panel {
        margin-top: 18px;
        padding: 18px;
    }

    .ot-table-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .ot-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .ot-table-row--head {
        display: none;
    }

    .ot-cell {
        display: grid;
        gap: 4px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .ot-cell-label {
        display: block;
        color: var(--muted-text-color);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .ot-cell-value {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
    }
}
.ot-table-row.is-in-range {
    border-color: rgba(126, 122, 255, 0.18);
    background: linear-gradient(180deg, rgba(126, 122, 255, 0.10), rgba(255, 255, 255, 0.03));
}
.rs-layout {
    align-items: start;
}

.rs-hero {
    margin-bottom: 24px;
}

.rs-metric-grid {
    margin-top: 28px;
}

.rs-control-panel,
.rs-insight-panel,
.rs-board-panel {
    position: relative;
}

.rs-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rs-toolbar-button {
    width: 100%;
}

.rs-toolbar-button--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rs-toolbar-hints {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

.rs-hint {
    justify-self: start;
    text-align: left;
}

.rs-helper-note {
    margin: 0;
}

.rs-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rs-board-panel {
    margin-top: 24px;
    padding: 22px;
    overflow-x: auto;
}

.rs-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(300px, 1fr));
    gap: 18px;
    min-width: 1254px;
    align-items: start;
}

.rs-branch {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    min-height: 100%;
    box-shadow: 0 18px 42px rgba(6, 4, 18, 0.24);
}

.rs-branch--berserk {
    background: radial-gradient(circle at bottom, rgba(255, 96, 43, 0.16), rgba(255, 255, 255, 0.02));
}

.rs-branch--guard {
    background: radial-gradient(circle at bottom, rgba(82, 133, 255, 0.16), rgba(255, 255, 255, 0.02));
}

.rs-branch--oracle {
    background: radial-gradient(circle at bottom, rgba(120, 210, 128, 0.14), rgba(255, 255, 255, 0.02));
}

.rs-branch--honor {
    background: radial-gradient(circle at bottom, rgba(255, 196, 71, 0.16), rgba(255, 255, 255, 0.02));
}

.rs-branch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-branch-title,
.rs-branch-spent {
    margin: 0;
}

.rs-branch-title {
    font-size: 24px;
    letter-spacing: -0.03em;
}

.rs-branch-spent {
    color: var(--gold-soft-color);
    font-weight: 700;
}

.rs-skill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.rs-skill {
    display: grid;
    gap: 8px;
    min-height: 170px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(20, 16, 36, 0.76);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rs-skill:hover {
    transform: scale(1.02);
    border-color: rgba(255, 188, 0, 0.22);
    box-shadow: 0 12px 24px rgba(7, 4, 20, 0.22);
}

.rs-skill.is-active {
    border-color: rgba(255, 188, 0, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.08), 0 0 24px rgba(255, 188, 0, 0.08);
}

.rs-skill-core {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
}

.rs-skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-soft-color);
    font-size: 22px;
}

.rs-skill-name {
    min-height: 38px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.rs-skill-points {
    color: var(--muted-text-strong);
    font-size: 13px;
}

.rs-skill-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rs-skill-step {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
}

.rs-skill-step:hover {
    border-color: rgba(255, 188, 0, 0.22);
}

@media (max-width: 1180px) {
    .rs-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-skill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .rs-insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .rs-toolbar,
    .rs-board,
    .rs-skill-grid {
        grid-template-columns: 1fr;
    }

    .rs-board-panel {
        margin-top: 18px;
        padding: 18px;
    }

    .rs-skill {
        min-height: auto;
    }
}

.rs-skill {
    position: relative;
}

.rs-tooltip {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(100% + 10px);
    z-index: 5;
    display: none;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 188, 0, 0.22);
    border-radius: 12px;
    background: rgba(16, 13, 24, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.rs-skill:hover .rs-tooltip,
.rs-skill:focus-within .rs-tooltip {
    display: grid;
}

.rs-tooltip-title,
.rs-tooltip-meta,
.rs-tooltip-levels p {
    margin: 0;
}

.rs-tooltip-title {
    color: var(--gold-color);
    font-weight: 700;
}

.rs-tooltip-meta {
    color: var(--muted-text-strong);
    font-size: 12px;
    line-height: 1.5;
}

.rs-tooltip-meta span {
    color: #ff8f8f;
}

.rs-tooltip-levels {
    display: grid;
    gap: 6px;
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .rs-tooltip {
        left: 8px;
        right: 8px;
    }
}


.admin-page {
    display: grid;
    align-items: center;
    padding-top: 36px;
    padding-bottom: 56px;
}

.admin-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(37, 29, 72, 0.94) 0%, rgba(24, 20, 48, 0.96) 100%);
    box-shadow: 0 24px 60px rgba(7, 4, 20, 0.3);
}

.admin-panel-card[hidden],
.admin-login-card[hidden] {
    display: none;
}

.admin-head {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-title {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-title--panel {
    font-size: clamp(28px, 3vw, 36px);
}

.admin-subtitle {
    margin: 0;
    color: var(--muted-text-strong);
    font-size: 16px;
    line-height: 1.6;
}

.admin-form {
    gap: 18px;
}

.admin-submit,
.admin-logout {
    width: 100%;
}

.admin-message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.admin-message[data-variant="error"] {
    background: rgba(255, 96, 96, 0.12);
    color: #ffb1b1;
}

.admin-panel-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-panel-pill {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-panel-pill__label {
    color: var(--muted-text-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-panel-pill__value {
    color: var(--text-color);
    font-size: 22px;
    line-height: 1.2;
}

.admin-panel-note {
    margin: 20px 0 0;
    color: var(--muted-text-strong);
    font-size: 15px;
    line-height: 1.6;
}

.admin-actions {
    margin-top: 20px;
}

@media (max-width: 720px) {
    .admin-page {
        padding-top: 18px;
    }

    .admin-card {
        width: 100%;
        padding: 18px;
    }

    .admin-panel-status {
        grid-template-columns: 1fr;
    }
}

.codes-page {
    display: grid;
    gap: 24px;
}

.codes-panel {
    padding: 24px;
}

.codes-list {
    display: grid;
    gap: 16px;
}

.code-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow: 0 14px 30px rgba(11, 8, 28, 0.16);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.code-card:hover {
    transform: scale(1.012);
    box-shadow: 0 18px 40px rgba(10, 7, 24, 0.28);
}

.code-card--active {
    border-color: rgba(79, 214, 130, 0.18);
    background: linear-gradient(180deg, rgba(79, 214, 130, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.code-card--warning {
    border-color: rgba(255, 188, 0, 0.18);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.code-card--expired {
    border-color: rgba(255, 96, 96, 0.18);
    background: linear-gradient(180deg, rgba(255, 96, 96, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.code-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.code-card__value {
    margin: 0;
    color: var(--text-color);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.code-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.code-card__status--active {
    background: rgba(79, 214, 130, 0.14);
    color: #80ef9f;
}

.code-card__status--warning {
    background: rgba(255, 188, 0, 0.14);
    color: #ffd45d;
}

.code-card__status--expired {
    background: rgba(255, 96, 96, 0.14);
    color: #ff9d9d;
}

.code-card__meta,
.codes-empty {
    display: grid;
    gap: 6px;
    color: var(--muted-text-strong);
    font-size: 14px;
    line-height: 1.6;
}

.admin-message[data-variant="success"] {
    background: rgba(79, 214, 130, 0.12);
    color: #9ff0ba;
}

.admin-codes-form {
    margin-top: 24px;
}

.admin-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-list-head {
    display: grid;
    gap: 6px;
    margin-top: 28px;
    margin-bottom: 18px;
}

.admin-list-title {
    margin: 0;
    color: var(--text-color);
    font-size: 22px;
    line-height: 1.2;
}

.admin-code-list {
    display: grid;
    gap: 14px;
}

.admin-code-row,
.admin-code-empty {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-code-row__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-code-row__value {
    margin: 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 800;
}

.admin-code-row__meta {
    margin: 6px 0 0;
    color: var(--muted-text-strong);
    font-size: 14px;
}

.admin-code-row__status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-code-row__status--active {
    background: rgba(79, 214, 130, 0.14);
    color: #80ef9f;
}

.admin-code-row__status--warning {
    background: rgba(255, 188, 0, 0.14);
    color: #ffd45d;
}

.admin-code-row__status--expired {
    background: rgba(255, 96, 96, 0.14);
    color: #ff9d9d;
}

.admin-code-row__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-code-action {
    min-height: 40px;
    padding: 10px 14px;
}

.admin-code-action--danger {
    border-color: rgba(255, 96, 96, 0.16);
    color: #ffb1b1;
}

@media (max-width: 720px) {
    .code-card__head,
    .admin-code-row__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .codes-panel {
        padding: 18px;
    }

    .admin-form-actions {
        grid-template-columns: 1fr;
    }
}

.code-card__remaining {
    color: var(--text-muted);
    font-size: 0.92em;
    font-weight: 600;
}

.code-card {
    align-items: center;
}

.code-card__main {
    display: flex;
    align-items: center;
    min-width: 0;
}

.code-card__head {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    width: 100%;
}

.code-card__value {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.code-card__date {
    min-width: 0;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.code-card__actions {
    flex: 0 0 auto;
    align-items: center;
}

@media (max-width: 900px) {
    .code-card {
        align-items: stretch;
    }

    .code-card__head {
        flex-wrap: wrap;
        gap: 10px;
    }

    .code-card__date {
        margin-left: 0;
        text-align: left;
    }
}
.code-card__copy {
    min-width: 148px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: transparent;
    color: var(--text-strong);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.code-card__copy:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 212, 93, 0.4);
    background: rgba(255, 212, 93, 0.06);
}

.code-card__copy:focus-visible {
    outline: none;
    border-color: rgba(255, 212, 93, 0.62);
    box-shadow: 0 0 0 2px rgba(255, 212, 93, 0.12);
}

.code-card.is-copied .code-card__copy {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-strong);
}

@media (max-width: 900px) {
    .code-card__actions {
        width: 100%;
        justify-content: space-between;
    }

    .code-card__copy {
        min-width: 132px;
    }
}

.idv-page {
    display: grid;
    gap: 24px;
}

.idv-hero {
    margin-bottom: 0;
}

.idv-builder-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 1.08fr);
    gap: 24px;
    align-items: start;
}

.idv-equipment-panel,
.idv-control-panel,
.idv-list-panel,
.idv-results-panel {
    position: relative;
    padding: 22px;
}

.idv-equipment-frame {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 12px;
    min-height: 560px;
    padding: 50px 22px 28px;
    border: 1px solid rgba(255, 188, 0, 0.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 188, 0, 0.08), transparent 23%),
        radial-gradient(circle at 50% 52%, rgba(80, 160, 130, 0.08), transparent 25%),
        linear-gradient(180deg, rgba(8, 8, 14, 0.78), rgba(14, 13, 23, 0.9));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.idv-equipment-row {
    display: grid;
    grid-template-columns: repeat(var(--idv-row-slots), minmax(38px, 58px));
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.idv-equipment-title {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    color: var(--gold-soft-color);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
}

.idv-equipment-slot {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(126, 160, 136, 0.35);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(11, 13, 16, 0.78);
    color: var(--muted-text-strong);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.idv-equipment-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 188, 0, 0.5);
    box-shadow: 0 0 22px rgba(255, 188, 0, 0.12);
}

.idv-equipment-slot.is-active {
    border-color: rgba(255, 188, 0, 0.88);
    background: linear-gradient(180deg, rgba(255, 188, 0, 0.2), rgba(255, 188, 0, 0.06));
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.24), 0 0 28px rgba(255, 188, 0, 0.18);
}

.idv-equipment-slot:not(.has-items) {
    opacity: 0.55;
}

.idv-equipment-slot:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.idv-equipment-slot:disabled:hover {
    transform: none;
    border-color: rgba(126, 160, 136, 0.35);
    box-shadow: none;
}

.idv-equipment-slot__icon {
    width: min(36px, 72%);
    height: min(36px, 72%);
    border-radius: 8px;
    object-fit: cover;
}

.idv-slot-fallback {
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-soft-color);
    font-weight: 800;
}

.idv-equipment-slot__name {
    position: absolute;
    left: 50%;
    bottom: 4px;
    max-width: 64px;
    transform: translateX(-50%);
    color: rgba(248, 247, 255, 0.58);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.idv-form {
    gap: 18px;
}

.idv-currency-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.idv-selected-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 188, 0, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.idv-selected-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-soft-color);
    font-size: 26px;
    font-weight: 800;
    object-fit: cover;
}

.idv-selected-copy {
    min-width: 0;
}

.idv-selected-name,
.idv-selected-meta {
    margin: 0;
    overflow-wrap: anywhere;
}

.idv-selected-name {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.idv-selected-meta {
    margin-top: 6px;
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 1.45;
}

.idv-hint {
    justify-self: start;
    text-align: left;
}

.idv-panel-header {
    align-items: center;
}

.idv-calculate-button {
    min-height: 46px;
    padding: 12px 16px;
}

.idv-table,
.idv-warning-list {
    display: grid;
    gap: 10px;
}

.idv-warning-list:not(:empty) {
    margin-bottom: 16px;
}

.idv-warning {
    padding: 12px 14px;
    border: 1px solid rgba(255, 188, 0, 0.2);
    border-radius: 14px;
    background: rgba(255, 188, 0, 0.08);
    color: var(--gold-soft-color);
    font-size: 14px;
    line-height: 1.45;
}

.idv-row,
.idv-result-row {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.idv-row {
    grid-template-columns: 54px minmax(180px, 1.2fr) 110px 90px minmax(120px, 0.7fr) 96px 90px;
}

.idv-result-row {
    grid-template-columns: 42px 54px minmax(180px, 1.2fr) 106px 84px minmax(120px, 0.7fr) 92px 90px minmax(135px, 0.8fr);
}

.idv-row--head,
.idv-result-row--head {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
}

.idv-cell {
    min-width: 0;
    overflow-wrap: anywhere;
}

.idv-cell-label {
    display: none;
}

.idv-icon-cell {
    display: flex;
    align-items: center;
}

.idv-item-image {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    object-fit: cover;
}

.idv-remove {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 96, 96, 0.2);
    border-radius: 12px;
    background: rgba(255, 96, 96, 0.08);
    color: #ffb1b1;
    font-weight: 700;
    cursor: pointer;
}

.idv-remove:hover {
    border-color: rgba(255, 96, 96, 0.4);
    background: rgba(255, 96, 96, 0.12);
}

.idv-table-empty {
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted-text-strong);
}

@media (max-width: 1100px) {
    .idv-row,
    .idv-result-row {
        grid-template-columns: 1fr;
    }

    .idv-row--head,
    .idv-result-row--head {
        display: none;
    }

    .idv-cell {
        display: grid;
        gap: 4px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .idv-cell-label {
        display: block;
        color: var(--muted-text-color);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .idv-icon-cell {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .idv-cell--action {
        background: transparent;
        padding: 0;
    }
}

@media (max-width: 980px) {
    .idv-builder-layout {
        grid-template-columns: 1fr;
    }

    .idv-equipment-frame {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .idv-equipment-panel,
    .idv-control-panel,
    .idv-list-panel,
    .idv-results-panel {
        padding: 18px;
    }

    .idv-equipment-frame {
        gap: 10px;
        padding: 46px 12px 18px;
    }

    .idv-equipment-row {
        grid-template-columns: repeat(var(--idv-row-slots), minmax(34px, 50px));
        gap: 8px;
    }

    .idv-equipment-slot__icon {
        width: min(30px, 70%);
        height: min(30px, 70%);
    }

    .idv-equipment-slot__name {
        max-width: 56px;
        font-size: 8px;
    }

    .idv-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .idv-calculate-button {
        width: 100%;
    }

    .idv-selected-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .idv-selected-icon {
        width: 58px;
        height: 58px;
        border-radius: 12px;
    }
}
