* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: #182b36;
    background: #f3f6f8;
    line-height: 1.5;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dfe7ec;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
}

.site-name {
    color: #182b36;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.header-link {
    color: #087f8c;
}

.page-heading {
    margin: 44px 0 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #087f8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 38px);
}

.muted {
    color: #5b6d78;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.vehicle-card,
.empty-state {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dfe7ec;
    border-radius: 16px;
    overflow-wrap: anywhere;
}

.vehicle-card {
    border-top: 4px solid #087f8c;
}

.vehicle-card h2,
.empty-state h2 {
    margin: 0;
    font-size: 24px;
}

.vehicle-model {
    margin: 6px 0 24px;
    color: #5b6d78;
}

.vehicle-details {
    margin: 0;
}

.vehicle-details div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #edf1f4;
}

.vehicle-details dt {
    color: #5b6d78;
}

.vehicle-details dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

a:focus-visible {
    outline: 3px solid #087f8c;
    outline-offset: 4px;
}
.card-link {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 16px;
    color: #ffffff;
    background: #087f8c;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.card-link:hover {
    background: #066773;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #087f8c;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-panel,
.history-item {
    margin-bottom: 20px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dfe7ec;
    border-radius: 16px;
    overflow-wrap: anywhere;
}

.detail-panel h2 {
    margin: 0 0 20px;
    font-size: 22px;
}

.detail-panel .vehicle-details div,
.history-item .vehicle-details div {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
}

.history-section {
    margin: 36px 0 40px;
}

.history-section > h2 {
    margin-bottom: 20px;
}

.history-item h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

.history-meta {
    margin: 0 0 8px;
    color: #5b6d78;
    font-size: 14px;
}

.cost-note {
    display: block;
    margin-top: 4px;
    color: #5b6d78;
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 600px) {
    .detail-panel,
    .history-item {
        padding: 20px;
    }

    .detail-panel .vehicle-details div,
    .history-item .vehicle-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .detail-panel .vehicle-details dd,
    .history-item .vehicle-details dd {
        text-align: left;
    }
}
.vehicle-form {
    max-width: 720px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #aebec8;
    border-radius: 8px;
    background: #ffffff;
    color: #20303c;
    font: inherit;
}

textarea.form-control {
    resize: vertical;
}

.form-control:focus {
    outline: 2px solid #087f8c;
    outline-offset: 2px;
}

.form-errors {
    margin-top: 8px;
    color: #b42318;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.form-actions .card-link {
    margin-top: 0;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}