body {
    margin: 0;
    padding: 0 0 24px;
}

#content {
    max-width: 960px;
    width: calc(100% - 24px);
}

#header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0 18px;
    flex-wrap: wrap;
}

#header img {
    float: none;
    max-width: 100%;
}

#header h2 {
    float: none;
    margin: 0;
    line-height: 1.15;
}

#vehicle-filter {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    box-sizing: border-box;
}

#vehicle-filter span.break,
#vehicle-filter a,
#vehicle-filter select,
#vehicle-filter input.submit {
    float: none;
    margin: 0;
}

#vehicle-filter span.break {
    height: 18px;
}

#vehicle-list > div {
    max-width: 920px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

#vehicle-count {
    margin-top: 12px;
}

#vehicle-detail {
    width: auto;
    max-width: 940px;
}

#vehicle-detail #book {
    min-width: 940px;
}

.page-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(10, 41, 78, 0.3);
    border-radius: 4px;
    padding: 24px;
    box-sizing: border-box;
}

.page-card h1,
.page-card h2 {
    margin-top: 0;
    color: #0a294e;
    font-family: sans-serif;
}

.page-links {
    margin-bottom: 16px;
}

.simple-form label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    font-family: sans-serif;
    color: #0a294e;
}

.simple-form input,
.simple-form textarea,
.simple-form select {
    width: 100%;
    max-width: 360px;
    padding: 8px;
    border: 1px solid #8c8c8c;
    box-sizing: border-box;
}

.simple-form textarea {
    min-height: 140px;
}

.button-row {
    margin-top: 18px;
}

.button-row button,
.button-row input,
.simple-form button,
.confirm-box button {
    background: #0a294e;
    color: #fff;
    border: 0;
    padding: 9px 14px;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.88);
}

.admin-table th,
.admin-table td {
    border: 1px solid rgba(10, 41, 78, 0.25);
    padding: 10px 12px;
    text-align: left;
    font-family: sans-serif;
}

.admin-table th {
    background: rgba(10, 41, 78, 0.08);
}

.error-list {
    margin-bottom: 16px;
    color: #8b1e1e;
    font-family: sans-serif;
}

.confirm-box {
    max-width: 520px;
}

.confirm-box form {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(320px, 500px) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}

.home-cover {
    max-width: 100%;
    height: auto;
    display: block;
}

.photo-upload-form {
    display: grid;
    gap: 12px;
    max-width: 420px;
}

.gallery-empty {
    font-family: "Courier New", monospace;
}

@media (max-width: 980px) {
    #admin-navigation,
    #content {
        width: calc(100% - 24px);
    }

    #vehicle-detail {
        overflow-x: auto;
    }

    .home-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    #vehicle-filter {
        padding: 10px;
    }

    #vehicle-filter span.break {
        display: none;
    }

    #vehicle-filter a,
    #vehicle-filter select,
    #vehicle-filter input.submit {
        width: 100%;
        max-width: none;
    }

    #vehicle-filter a img {
        vertical-align: middle;
    }

    #vehicle-list div {
        background-image: none;
        background-color: #403f3f;
        height: auto;
        min-height: 80px;
        border-radius: 4px;
        padding-bottom: 12px;
    }

    #vehicle-list div table {
        position: static;
        margin: 10px 12px 0 110px;
    }

    #vehicle-list div a.more {
        position: static;
        margin: 12px 0 0 110px;
    }

    .page-card {
        padding: 18px;
    }

    .confirm-box form {
        flex-wrap: wrap;
    }
}
