/* [KH-P07D2R1-SMART-GARAGE-LIST-DETAIL-STYLE:BEGIN] */
#kh-smart-garage-r1a-static {
    position: relative;
}

.kh-garage-r2-trigger {
    position: absolute;
    inset: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kh-garage-r2-trigger::after {
    content: "›";
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(14, 25, 43, 0.72);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.kh-garage-r2-trigger:hover::after {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(21, 39, 66, 0.92);
}

.kh-garage-r2-trigger:focus-visible {
    outline: 3px solid var(--tg-theme-link-color, #4b9cff);
    outline-offset: 3px;
}

.kh-garage-r2-trigger:focus-visible::after {
    transform: translateX(2px);
}

.kh-garage-r2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kh-garage-r2-view {
    min-height: 100%;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.kh-garage-r2-navbar {
    margin-bottom: 14px;
}

.kh-garage-r2-shell {
    display: grid;
    gap: 14px;
    padding: 0 2px 20px;
}

.kh-garage-r2-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(74, 144, 226, 0.26);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(79, 156, 249, 0.22),
            transparent 42%
        ),
        var(--tg-theme-secondary-bg-color, #f3f6fb);
    color: var(--tg-theme-text-color, #17212b);
    box-shadow: 0 14px 34px rgba(20, 46, 86, 0.12);
}

.kh-garage-r2-hero::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -38px;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.12);
    pointer-events: none;
}

.kh-garage-r2-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.kh-garage-r2-hero-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.kh-garage-r2-hero-subtitle {
    margin-top: 6px;
    color: var(--tg-theme-hint-color, #708499);
    font-size: 13px;
    line-height: 1.45;
}

.kh-garage-r2-count {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border: 1px solid rgba(74, 144, 226, 0.32);
    border-radius: 16px;
    background: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-link-color, #2481cc);
    font-size: 20px;
    font-weight: 800;
}

.kh-garage-r2-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 28px 20px;
    border: 1px solid rgba(112, 132, 153, 0.18);
    border-radius: 20px;
    background: var(--tg-theme-secondary-bg-color, #f3f6fb);
    color: var(--tg-theme-text-color, #17212b);
    text-align: center;
}

.kh-garage-r2-state[hidden] {
    display: none !important;
}

.kh-garage-r2-state-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: var(--tg-theme-bg-color, #ffffff);
    font-size: 30px;
    box-shadow: 0 10px 26px rgba(20, 46, 86, 0.10);
}

.kh-garage-r2-state-title {
    font-size: 17px;
    font-weight: 800;
}

.kh-garage-r2-state-text {
    max-width: 300px;
    color: var(--tg-theme-hint-color, #708499);
    font-size: 13px;
    line-height: 1.5;
}

.kh-garage-r2-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(74, 144, 226, 0.18);
    border-top-color: var(--tg-theme-link-color, #2481cc);
    border-radius: 50%;
    animation: kh-garage-r2-spin 800ms linear infinite;
}

@keyframes kh-garage-r2-spin {
    to {
        transform: rotate(360deg);
    }
}

.kh-garage-r2-muted-action,
.kh-garage-r2-back-action {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

.kh-garage-r2-muted-action {
    border: 1px dashed rgba(112, 132, 153, 0.34);
    background: transparent;
    color: var(--tg-theme-hint-color, #708499);
    cursor: not-allowed;
}

.kh-garage-r2-back-action {
    border: 0;
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #ffffff);
    cursor: pointer;
}

.kh-garage-r2-list {
    display: grid;
    gap: 10px;
}

.kh-garage-r2-list[hidden] {
    display: none !important;
}

.kh-garage-r2-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid rgba(112, 132, 153, 0.18);
    border-radius: 18px;
    background: var(--tg-theme-secondary-bg-color, #f3f6fb);
    color: var(--tg-theme-text-color, #17212b);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(20, 46, 86, 0.08);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.kh-garage-r2-row:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 144, 226, 0.42);
    box-shadow: 0 12px 28px rgba(20, 46, 86, 0.13);
}

.kh-garage-r2-row:focus-visible {
    outline: 3px solid var(--tg-theme-link-color, #4b9cff);
    outline-offset: 2px;
}

.kh-garage-r2-row-media {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--tg-theme-bg-color, #ffffff);
}

.kh-garage-r2-row-icon {
    font-size: 27px;
}

.kh-garage-r2-row-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-garage-r2-row-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.kh-garage-r2-row-title,
.kh-garage-r2-row-category,
.kh-garage-r2-row-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kh-garage-r2-row-title {
    font-size: 15px;
    font-weight: 800;
}

.kh-garage-r2-row-category {
    color: var(--tg-theme-link-color, #2481cc);
    font-size: 12px;
    font-weight: 700;
}

.kh-garage-r2-row-meta {
    color: var(--tg-theme-hint-color, #708499);
    font-size: 11px;
}

.kh-garage-r2-row-arrow {
    color: var(--tg-theme-hint-color, #708499);
    font-size: 28px;
    line-height: 1;
}

.kh-garage-r2-detail-card {
    overflow: hidden;
    border: 1px solid rgba(112, 132, 153, 0.18);
    border-radius: 24px;
    background: var(--tg-theme-secondary-bg-color, #f3f6fb);
    color: var(--tg-theme-text-color, #17212b);
    box-shadow: 0 16px 38px rgba(20, 46, 86, 0.12);
}

.kh-garage-r2-detail-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(74, 144, 226, 0.28),
            transparent 48%
        ),
        var(--tg-theme-bg-color, #ffffff);
}

.kh-garage-r2-detail-icon {
    font-size: 72px;
    filter: drop-shadow(0 14px 18px rgba(20, 46, 86, 0.20));
}

.kh-garage-r2-detail-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-garage-r2-detail-photo[hidden] {
    display: none !important;
}

.kh-garage-r2-detail-copy {
    display: grid;
    gap: 7px;
    padding: 18px;
}

.kh-garage-r2-detail-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.kh-garage-r2-detail-category {
    color: var(--tg-theme-link-color, #2481cc);
    font-size: 13px;
    font-weight: 750;
}

.kh-garage-r2-detail-facts {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
}

.kh-garage-r2-fact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 13px;
    background: var(--tg-theme-bg-color, #ffffff);
}

.kh-garage-r2-fact-label,
.kh-garage-r2-fact-value {
    margin: 0;
}

.kh-garage-r2-fact-label {
    color: var(--tg-theme-hint-color, #708499);
    font-size: 12px;
}

.kh-garage-r2-fact-value {
    max-width: 190px;
    overflow: hidden;
    color: var(--tg-theme-text-color, #17212b);
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .kh-garage-r2-row {
        grid-template-columns: 52px minmax(0, 1fr) 18px;
        gap: 9px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .kh-garage-r2-row-media {
        width: 52px;
        height: 52px;
    }

    .kh-garage-r2-hero {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-garage-r2-trigger::after,
    .kh-garage-r2-row {
        transition: none;
    }

    .kh-garage-r2-spinner {
        animation: none;
    }
}
/* [KH-P07D2R1-SMART-GARAGE-LIST-DETAIL-STYLE:END] */
