* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0f14;
    color: #f4f7fa;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #202832;
    background: #10161d;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    color: #9da8b3;
    margin-top: 3px;
}

.status {
    font-size: 13px;
    font-weight: 600;
}

.status.online {
    color: #35d07f;
}

.status.offline {
    color: #ff6262;
}

.container {
    width: min(100% - 32px, 900px);
    margin: 0 auto;
    padding: 48px 0;
}

.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(30px, 6vw, 48px);
    margin-bottom: 12px;
}

.hero p {
    color: #9da8b3;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.vin-box {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.vin-box input {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border: 1px solid #303a45;
    border-radius: 10px;
    background: #151c24;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 1.5px;
    outline: none;
}

.vin-box input:focus {
    border-color: #6e7d8c;
}

.vin-box button,
.primary-button {
    border: 0;
    border-radius: 10px;
    padding: 0 22px;
    background: #f4f7fa;
    color: #0b0f14;
    font-weight: 800;
    cursor: pointer;
}

.vin-box button:hover,
.primary-button:hover {
    opacity: 0.88;
}

.message {
    min-height: 24px;
    margin-top: 14px;
    color: #ff8b8b;
    font-size: 14px;
}

.vehicle-card {
    background: #111820;
    border: 1px solid #27313c;
    border-radius: 16px;
    padding: 24px;
}

.hidden {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.label {
    display: block;
    color: #7f8b97;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
}

.card-header h2 {
    font-size: 25px;
}

.year {
    font-size: 30px;
    font-weight: 800;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #27313c;
    border: 1px solid #27313c;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.vehicle-grid > div {
    background: #151c24;
    padding: 17px;
    min-width: 0;
}

.vehicle-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
}

@media (max-width: 600px) {
    .topbar {
        padding: 16px;
    }

    .container {
        width: min(100% - 20px, 900px);
        padding: 30px 0;
    }

    .vin-box {
        flex-direction: column;
    }

    .vin-box input {
        width: 100%;
    }

    .vin-box button {
        min-height: 50px;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .card-header h2 {
        font-size: 21px;
    }

    .year {
        font-size: 25px;
    }
}


/* Diagnostic Workspace */
.diagnostic-workspace {
    margin-top: 28px;
    background: #111820;
    border: 1px solid #27313c;
    border-radius: 16px;
    padding: 24px;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.workspace-header h2 {
    margin: 0;
    font-size: 25px;
}

.session-badge {
    background: #151c24;
    border: 1px solid #27313c;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.session-vehicle {
    background: #151c24;
    border: 1px solid #27313c;
    border-radius: 12px;
    padding: 17px;
    margin-bottom: 22px;
}

.session-vehicle strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.session-vin {
    color: #7f8b97;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.diagnostic-section {
    margin-top: 22px;
}

.diagnostic-section textarea,
.diagnostic-section input {
    width: 100%;
    box-sizing: border-box;
    background: #151c24;
    color: #f4f7fa;
    border: 1px solid #27313c;
    border-radius: 10px;
    padding: 14px;
    font: inherit;
    font-size: 16px;
    outline: none;
}

.diagnostic-section textarea {
    min-height: 120px;
    resize: vertical;
}

.diagnostic-section textarea:focus,
.diagnostic-section input:focus {
    border-color: #6e7d8c;
}

.diagnostic-section small {
    display: block;
    margin-top: 7px;
    color: #7f8b97;
    font-size: 12px;
}

.diagnostic-section .primary-button {
    margin-top: 22px;
}

.upcoming-section {
    border-top: 1px solid #27313c;
    padding-top: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.coming-soon {
    color: #35d07f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.upcoming-section p {
    color: #a8b2bd;
    line-height: 1.55;
    margin: 8px 0 0;
}

@media (max-width: 600px) {
    .diagnostic-workspace {
        padding: 18px;
        border-radius: 14px;
    }

    .workspace-header {
        flex-direction: column;
        gap: 10px;
    }

    .workspace-header h2 {
        font-size: 22px;
    }

    .session-badge {
        align-self: flex-start;
    }
}


/* Diagnostic Test Form */
.test-section {
    border-top: 1px solid #27313c;
    padding-top: 22px;
}

.test-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.form-field {
    min-width: 0;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    color: #7f8b97;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
}

.test-form input,
.test-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #151c24;
    color: #f4f7fa;
    border: 1px solid #27313c;
    border-radius: 10px;
    padding: 14px;
    font: inherit;
    font-size: 16px;
    outline: none;
}

.test-form textarea {
    min-height: 90px;
    resize: vertical;
}

.test-form input:focus,
.test-form textarea:focus {
    border-color: #6e7d8c;
}

.test-section > .primary-button {
    margin-top: 18px;
}

.test-results {
    margin-top: 18px;
}

.test-result-card {
    background: #151c24;
    border: 1px solid #27313c;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.test-result-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.test-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.test-result-item {
    color: #a8b2bd;
    font-size: 13px;
}

.test-result-item strong {
    color: #f4f7fa;
}

@media (max-width: 600px) {
    .test-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-field.full-width {
        grid-column: auto;
    }

    .test-result-grid {
        grid-template-columns: 1fr;
    }
}
