.at-v2-vehicle-shell-premium {
    color: #111827;
}

.at-v2-space-top {
    margin-top: 24px;
}

.at-v2-vehicle-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 18px;
}

.at-v2-vehicle-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.at-v2-vehicle-hero-copy h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.15;
    color: #0f172a;
}

.at-v2-vehicle-hero-copy p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.at-v2-vehicle-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.at-v2-vehicle-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.at-v2-vehicle-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.at-v2-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.at-v2-vehicle-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.at-v2-vehicle-card-head {
    margin-bottom: 14px;
}

.at-v2-vehicle-card-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
    color: #111827;
}

.at-v2-vehicle-card-head p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.at-v2-vehicle-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.at-v2-vehicle-stat {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.at-v2-vehicle-stat-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.at-v2-vehicle-stat-value {
    font-size: 18px;
    line-height: 1.2;
    color: #0f172a;
}

.at-v2-vehicle-detail-list {
    display: flex;
    flex-direction: column;
}

.at-v2-vehicle-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
}

.at-v2-vehicle-detail-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.at-v2-vehicle-detail-row span {
    font-size: 13px;
    color: #64748b;
}

.at-v2-vehicle-detail-row strong {
    font-size: 13px;
    text-align: right;
    color: #111827;
}

.at-v2-vehicle-empty {
    padding: 18px;
    border: 1px dashed #dbe2ea;
    border-radius: 16px;
    background: #f8fafc;
}

.at-v2-vehicle-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
}

.at-v2-vehicle-empty p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.at-v2-vehicle-inline-note {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px dashed #dbe2ea;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.at-v2-vehicle-notice-wrap {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.at-v2-vehicle-notice-wrap.success {
    border-color: #ccead8;
    background: #f0fdf4;
    color: #166534;
}

.at-v2-vehicle-notice-wrap.error {
    border-color: #f0d3d6;
    background: #fff5f5;
    color: #991b1b;
}

.at-v2-form-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.at-v2-service-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.at-v2-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.at-v2-form-field label {
    font-size: 13px;
    color: #111827;
}

.at-v2-service-form input[type="text"],
.at-v2-service-form input[type="date"],
.at-v2-service-form input[type="number"],
.at-v2-service-form select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
}

.at-v2-form-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.at-v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.at-v2-btn:hover {
    transform: translateY(-1px);
}

.at-v2-btn-primary,
.at-v2-btn-pill {
    background: #f7c948;
    color: #111827;
    box-shadow: 0 10px 18px rgba(247, 201, 72, 0.22);
}

.at-v2-btn-pill {
    min-width: 126px;
    border-radius: 999px;
}

.at-v2-btn-secondary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.at-v2-kpi-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.at-v2-kpi-chip {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.at-v2-kpi-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
}

.at-v2-kpi-value {
    font-size: 20px;
    line-height: 1;
    color: #0f172a;
}

.at-v2-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.at-v2-timeline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fbfcfe;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.at-v2-timeline-main,
.at-v2-timeline-evidence {
    min-width: 0;
    align-self: start;
}

.at-v2-timeline-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.at-v2-timeline-evidence {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: stretch;
}

.at-v2-timeline-meta {
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
}

.at-v2-timeline-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.2;
    color: #111827;
}

.at-v2-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.at-v2-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.at-v2-badge.is-good {
    background: #e8fff2;
    color: #166534;
}

.at-v2-badge.is-muted {
    background: #f1f5f9;
    color: #475569;
}

.at-v2-badge.is-info {
    background: #ecfeff;
    color: #155e75;
}

.at-v2-badge.is-neutral {
    background: #eef2ff;
    color: #3730a3;
}

.at-v2-badge.is-bad {
    background: #fff1f2;
    color: #be123c;
}

.at-v2-evidence-card,
.at-v2-upload-form {
    width: 100%;
    box-sizing: border-box;
}

.at-v2-evidence-card {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.at-v2-evidence-label {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.at-v2-evidence-title {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.at-v2-evidence-title a {
    color: #1d4ed8;
    text-decoration: none;
}

.at-v2-evidence-meta {
    font-size: 12px;
    color: #64748b;
}

.at-v2-upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.at-v2-file-input {
    max-width: 100%;
    font-size: 12px;
}

.at-v2-upload-form .at-v2-file-input {
    flex: 1 1 180px;
    min-width: 0;
}

.at-v2-upload-form .at-v2-btn-pill {
    flex: 0 0 auto;
}

.at-v2-evidence-ocr {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.at-v2-evidence-ocr-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.at-v2-evidence-ocr-label {
    font-size: 12px;
    color: #64748b;
}

.at-v2-evidence-ocr-value {
    font-size: 12px;
    color: #111827;
    text-align: right;
    word-break: break-word;
}

/* Vehicle media gallery */
.at-v2-vehicle-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.at-v2-vehicle-media-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.at-v2-vehicle-media-head {
    margin-bottom: 10px;
}

.at-v2-vehicle-media-head strong {
    font-size: 13px;
    color: #111827;
}

.at-v2-vehicle-media-link {
    display: block;
    text-decoration: none;
}

.at-v2-vehicle-media-image {
    width: 100%;
    max-width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
}

.at-v2-vehicle-media-empty {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
    padding: 10px;
}

.at-v2-vehicle-media-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    word-break: break-word;
}

.at-v2-vehicle-media-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.at-v2-vehicle-media-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.at-v2-vehicle-media-form input[type="file"] {
    font-size: 13px;
}

.at-v2-vehicle-media-form-delete {
    margin-top: 2px;
}

/* Floating preview */
.at-v2-image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 99999;
}

.at-v2-image-lightbox.is-open {
    display: flex;
}

.at-v2-image-lightbox-dialog {
    position: relative;
    width: min(920px, 92vw);
    max-height: 88vh;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.at-v2-image-lightbox-img {
    max-width: 100%;
    max-height: calc(88vh - 32px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.at-v2-image-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.at-v2-image-lightbox-close:hover {
    opacity: 0.9;
}

@media (max-width: 1200px) {
    .at-v2-kpi-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .at-v2-vehicle-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .at-v2-vehicle-grid,
    .at-v2-service-form,
    .at-v2-timeline-item {
        grid-template-columns: 1fr;
    }

    .at-v2-vehicle-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .at-v2-vehicle-hero-side {
        align-items: flex-start;
    }

    .at-v2-timeline-item {
        align-items: stretch;
    }

    .at-v2-timeline-evidence {
        justify-self: auto;
    }

    .at-v2-upload-form {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .at-v2-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .at-v2-vehicle-media-grid {
        grid-template-columns: 1fr;
    }

    .at-v2-vehicle-media-image,
    .at-v2-vehicle-media-empty {
        height: 130px;
    }

    .at-v2-image-lightbox-dialog {
        width: min(96vw, 720px);
        padding: 12px;
    }
}

@media (max-width: 640px) {
    .at-v2-vehicle-stats {
        grid-template-columns: 1fr;
    }

    .at-v2-kpi-strip {
        grid-template-columns: 1fr;
    }

    .at-v2-upload-form {
        align-items: stretch;
    }

    .at-v2-btn-pill,
    .at-v2-btn-primary,
    .at-v2-btn-secondary {
        width: 100%;
    }
}


.at-v2-vehicle-media-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.at-v2-btn-upload-trigger {
    width: 100%;
    text-align: center;
}