/* [KH-P07D3R1B-SMART-GARAGE-ADD-WIZARD-STYLE:BEGIN] */
.kh-garage-r3-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.kh-garage-r3-add-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(14, 165, 233, 0.18)),
        rgba(15, 23, 42, 0.72);
    color: rgba(255, 255, 255, 0.96);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 24px rgba(0, 0, 0, 0.18);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.kh-garage-r3-add-open:hover {
    border-color: rgba(125, 211, 252, 0.54);
    filter: brightness(1.05);
}

.kh-garage-r3-add-open:focus-visible,
.kh-garage-r3-button:focus-visible,
.kh-garage-r3-input:focus-visible,
.kh-garage-r3-select:focus-visible,
.kh-garage-r3-zero-confirm input:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.74);
    outline-offset: 2px;
}

.kh-garage-r3-add-view {
    min-height: 100%;
}

.kh-garage-r3-shell {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 12px 15px calc(96px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.kh-garage-r3-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.17), transparent 34%),
        radial-gradient(circle at 100% 0, rgba(168, 85, 247, 0.13), transparent 32%),
        linear-gradient(160deg, rgba(22, 34, 54, 0.96), rgba(11, 20, 34, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 52px rgba(0, 0, 0, 0.28);
}

.kh-garage-r3-card::before {
    content: "";
    position: absolute;
    inset: 0 18px auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56, 189, 248, 0.72),
        rgba(168, 85, 247, 0.58),
        transparent
    );
    pointer-events: none;
}

.kh-garage-r3-intro {
    margin-bottom: 16px;
}

.kh-garage-r3-subtitle {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    font-size: 14px;
    line-height: 1.5;
}

.kh-garage-r3-required-hint {
    margin: 7px 0 0;
    color: rgba(148, 163, 184, 0.90);
    font-size: 12px;
    line-height: 1.4;
}

.kh-garage-r3-form {
    display: grid;
    gap: 14px;
}

.kh-garage-r3-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kh-garage-r3-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.kh-garage-r3-field-wide {
    grid-column: 1 / -1;
}

.kh-garage-r3-label {
    color: rgba(241, 245, 249, 0.94);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.kh-garage-r3-input,
.kh-garage-r3-select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(8, 15, 28, 0.72);
    color: rgba(255, 255, 255, 0.96);
    font: inherit;
    font-size: 15px;
    line-height: 1.25;
    box-sizing: border-box;
    appearance: none;
}

.kh-garage-r3-select {
    padding-right: 38px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(226, 232, 240, 0.78) 50%),
        linear-gradient(135deg, rgba(226, 232, 240, 0.78) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 13px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.kh-garage-r3-input::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

.kh-garage-r3-input:disabled,
.kh-garage-r3-select:disabled,
.kh-garage-r3-button:disabled,
.kh-garage-r3-add-open:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.kh-garage-r3-field-hint {
    margin: 0;
    color: rgba(148, 163, 184, 0.90);
    font-size: 12px;
    line-height: 1.4;
}

.kh-garage-r3-zero-confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 14px;
    background: rgba(120, 53, 15, 0.16);
    color: rgba(254, 243, 199, 0.94);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.kh-garage-r3-zero-confirm[hidden] {
    display: none !important;
}

.kh-garage-r3-zero-confirm input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: #38bdf8;
    cursor: pointer;
}

.kh-garage-r3-status {
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
}

.kh-garage-r3-status[data-kind="error"] {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.20);
    color: rgba(254, 226, 226, 0.96);
}

.kh-garage-r3-status[data-kind="warning"] {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(120, 53, 15, 0.20);
    color: rgba(254, 243, 199, 0.96);
}

.kh-garage-r3-status[data-kind="success"] {
    border-color: rgba(74, 222, 128, 0.34);
    background: rgba(20, 83, 45, 0.22);
    color: rgba(220, 252, 231, 0.96);
}

.kh-garage-r3-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 10px;
    margin-top: 2px;
}

.kh-garage-r3-button {
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.kh-garage-r3-button-secondary {
    background: rgba(15, 23, 42, 0.72);
    color: rgba(226, 232, 240, 0.94);
}

.kh-garage-r3-button-primary {
    border-color: rgba(56, 189, 248, 0.42);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.90), rgba(14, 165, 233, 0.82));
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 12px 28px rgba(14, 165, 233, 0.20);
}

#view-garage-add[data-state="submitting"] .kh-garage-r3-card {
    cursor: progress;
}

@media (max-width: 560px) {
    .kh-garage-r3-grid {
        grid-template-columns: 1fr;
    }

    .kh-garage-r3-field-wide {
        grid-column: auto;
    }

    .kh-garage-r3-actions {
        grid-template-columns: 1fr;
    }

    .kh-garage-r3-button-primary {
        order: -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-garage-r3-add-open,
    .kh-garage-r3-button,
    .kh-garage-r3-input,
    .kh-garage-r3-select {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* [KH-P07D3R1B-SMART-GARAGE-ADD-WIZARD-STYLE:END] */
