/* [KH-P07H2-SMART-GARAGE-CONTEXTUAL-COMPANION:BEGIN] */
.kh-garage-companion-p07h1 {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at top right,
            rgba(59, 130, 246, 0.18),
            transparent 46%
        ),
        linear-gradient(
            145deg,
            rgba(10, 27, 50, 0.94),
            rgba(20, 34, 58, 0.88)
        );
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.kh-garage-companion-p07h1__top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kh-garage-companion-p07h1__mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 13px;
    background: rgba(59, 130, 246, 0.15);
    font-size: 21px;
}

.kh-garage-companion-p07h1__heading {
    min-width: 0;
}

.kh-garage-companion-p07h1__eyebrow,
.kh-garage-companion-p07h1__label,
.kh-garage-companion-p07h1__reminder-label {
    display: block;
    color: rgba(219, 234, 254, 0.68);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kh-garage-companion-p07h1__title {
    margin: 2px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 950;
}

.kh-garage-companion-p07h1__grid {
    display: grid;
    grid-template-columns: minmax(74px, 0.65fr) minmax(0, 1.35fr);
    gap: 8px;
}

.kh-garage-companion-p07h1__fact {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
}

.kh-garage-companion-p07h1__value {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kh-garage-companion-p07h1__reminder {
    padding: 10px 11px;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 13px;
    background: rgba(16, 185, 129, 0.09);
}

.kh-garage-companion-p07h1[data-due-status="due"]
    .kh-garage-companion-p07h1__reminder {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(245, 158, 11, 0.12);
}

.kh-garage-companion-p07h1[data-due-status="overdue"]
    .kh-garage-companion-p07h1__reminder {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(239, 68, 68, 0.13);
}

.kh-garage-companion-p07h1__reminder-value {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 850;
}

.kh-garage-companion-p07h1__context-note {
    margin: 0;
    padding: 10px 11px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 13px;
    background: rgba(124, 58, 237, 0.1);
    color: rgba(248, 250, 252, 0.9);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 750;
}

.kh-garage-companion-p07h1[data-context="selling"] {
    border-color: rgba(251, 191, 36, 0.3);
}

.kh-garage-companion-p07h1[data-context="services"] {
    border-color: rgba(52, 211, 153, 0.3);
}

.kh-garage-companion-p07h1[data-context="transport"] {
    border-color: rgba(248, 113, 113, 0.32);
}

.kh-garage-companion-p07h1[data-context="selling"]
    .kh-garage-companion-p07h1__context-note {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.kh-garage-companion-p07h1[data-context="services"]
    .kh-garage-companion-p07h1__context-note {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(16, 185, 129, 0.09);
}

.kh-garage-companion-p07h1[data-context="transport"]
    .kh-garage-companion-p07h1__context-note {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(239, 68, 68, 0.09);
}

.kh-garage-companion-p07h1__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(147, 197, 253, 0.36);
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
}

.kh-garage-companion-p07h1__action:hover {
    filter: brightness(1.08);
}

.kh-garage-companion-p07h1__action:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.82);
    outline-offset: 3px;
}

.kh-garage-companion-p07h1__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;
}

@media (max-width: 1180px) {
    .kh-garage-companion-p07h1 {
        padding: 12px;
    }

    .kh-garage-companion-p07h1__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .kh-garage-companion-p07h1 {
        gap: 10px;
        margin-top: 8px;
        padding: 11px;
        border-radius: 16px;
    }

    .kh-garage-companion-p07h1__action {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-garage-companion-p07h1__action {
        scroll-behavior: auto;
        transition: none;
    }
}
/* [KH-P07H2-SMART-GARAGE-CONTEXTUAL-COMPANION:END] */

/* [KH-P07M5-EFFECTIVE-SCHEME-GARAGE-COMPANION:BEGIN] */
html[data-kh-scheme="dark"] .kh-garage-companion-p07h1 {
    --kh-p07m5-garage-scheme: dark;
}

html[data-kh-scheme="light"] .kh-garage-companion-p07h1 {
    --kh-p07m5-garage-scheme: light;
    border-color: rgba(36, 129, 204, 0.24);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 46%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(238, 245, 253, 0.98));
    background-color: #f7fbff;
    box-shadow:
        0 12px 28px rgba(20, 46, 86, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    color: var(--tg-theme-text-color, #17212b);
}

html[data-kh-scheme="light"] .kh-garage-companion-p07h1__mark {
    border-color: rgba(36, 129, 204, 0.24);
    background: rgba(36, 129, 204, 0.11);
}

html[data-kh-scheme="light"] :is(
    .kh-garage-companion-p07h1__eyebrow,
    .kh-garage-companion-p07h1__label,
    .kh-garage-companion-p07h1__reminder-label
) {
    color: var(--tg-theme-hint-color, #708499);
}

html[data-kh-scheme="light"] :is(
    .kh-garage-companion-p07h1__title,
    .kh-garage-companion-p07h1__value,
    .kh-garage-companion-p07h1__reminder-value
) {
    color: var(--tg-theme-text-color, #17212b);
}

html[data-kh-scheme="light"] .kh-garage-companion-p07h1__fact {
    border-color: rgba(112, 132, 153, 0.18);
    background: var(--tg-theme-secondary-bg-color, #eef2f7);
}

html[data-kh-scheme="light"] .kh-garage-companion-p07h1__context-note {
    color: var(--tg-theme-text-color, #17212b);
    background: rgba(124, 58, 237, 0.07);
}

html[data-kh-scheme="light"] .kh-garage-companion-p07h1[data-context="selling"]
    .kh-garage-companion-p07h1__context-note {
    background: rgba(245, 158, 11, 0.08);
}

html[data-kh-scheme="light"] .kh-garage-companion-p07h1[data-context="services"]
    .kh-garage-companion-p07h1__context-note {
    background: rgba(16, 185, 129, 0.07);
}

html[data-kh-scheme="light"] .kh-garage-companion-p07h1[data-context="transport"]
    .kh-garage-companion-p07h1__context-note {
    background: rgba(239, 68, 68, 0.07);
}
/* [KH-P07M5-EFFECTIVE-SCHEME-GARAGE-COMPANION:END] */
