.nav-form {
    margin: 0;
}

.nav-link-button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.account-section {
    min-height: 640px;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f5f4 0 60%, #e6e7e8 60%);
}

.account-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 42px;
    background: #fff;
    border-top: 6px solid #b40000;
    box-shadow: 0 24px 60px rgba(12, 15, 20, .14);
}

.account-card-wide {
    width: min(760px, 100%);
}

.account-card h1 {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1;
    text-transform: uppercase;
}

.account-card form {
    display: grid;
    gap: 9px;
    margin-top: 30px;
}

.account-card label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
}

.account-card input[type="email"],
.account-card input[type="password"],
.account-card input[type="text"],
.account-card input[type="number"],
.account-card input[type="datetime-local"],
.account-card input[type="url"],
.account-card input[type="file"],
.account-card textarea,
.account-card select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #c9cdd2;
    font: inherit;
}

.account-card textarea { resize: vertical; }

.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid-3 > div { display: grid; gap: 7px; }
.auctioneer-workspace { width: min(1000px, 100%); }
.auction-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 15px; background: #f3f3f2; border: 1px solid #d9dcdf; }
.organization-panel { margin-top: 32px; padding-top: 12px; border-top: 1px solid #dfe2e6; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 16px; }
.workspace-heading > div:last-child { display: flex; gap: 8px; }
.publish-form { margin-top: 36px !important; padding-top: 24px; border-top: 1px solid #dfe2e6; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.media-grid article { border: 1px solid #dfe2e6; padding: 10px; overflow-wrap: anywhere; }
.media-grid img { width: 100%; height: 140px; object-fit: cover; }
.media-grid form { margin-top: 8px; }
.public-lot-grid { display: grid; gap: 18px; }
.public-lot-card { display: grid; grid-template-columns: minmax(260px, 38%) 1fr; border: 1px solid #dfe2e6; background: #fff; }
.public-lot-card > div:not(.public-lot-gallery) { display: grid; align-content: start; gap: 10px; padding: 22px; }
.public-lot-card h3, .public-lot-card p { margin: 0; }
.public-lot-card > div > span { color: #b40000; font-weight: 900; letter-spacing: .08em; }
.public-lot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #15171a; }
.public-lot-gallery a:first-child { grid-column: 1 / -1; }
.public-lot-gallery img { display: block; width: 100%; height: 110px; object-fit: cover; }
.public-lot-gallery a:first-child img { height: 230px; }
.lot-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.lot-badges b { padding: 5px 8px; background: #f0f1f2; font-size: 12px; }

.lot-workspace { width: min(1040px, 100%); }
.workflow-help { max-width: 760px; color: #51575f; font-size: 16px; line-height: 1.6; }
.lot-media-section { margin-top: 40px; padding-top: 8px; border-top: 3px solid #b40000; }
.lot-media-section h2, .lot-media-section p { margin: 0; }
.file-count { flex: 0 0 auto; padding: 8px 11px; background: #17191c; color: #fff; font-weight: 800; }
.upload-panel { padding: 18px; border: 1px solid #cdd1d5; background: #f6f6f5; }
.lot-media-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lot-media-card { display: grid; grid-template-rows: 170px auto auto; gap: 10px; background: #fff; }
.lot-media-card img { height: 170px; }
.document-tile { display: grid; place-items: center; min-height: 170px; background: #eceeef; color: #17191c; font-weight: 900; }
.media-meta { display: grid; gap: 4px; min-width: 0; }
.media-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5d6268; font-size: 12px; }
.media-meta b { width: fit-content; padding: 4px 7px; background: #b40000; color: #fff; font-size: 11px; text-transform: uppercase; }
.media-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.media-actions form { margin: 0; }
.media-actions button { width: 100%; min-height: 38px; border: 1px solid #15171a; background: #fff; cursor: pointer; font-weight: 800; }
.lot-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; }
.lot-setup-list { display: grid; gap: 12px; }
.lot-setup-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid #dfe2e6; background: #fff; }
.lot-setup-list h3, .lot-setup-list p { margin: 4px 0 0; }
.lot-number { color: #b40000; font-size: 12px; font-weight: 900; letter-spacing: .09em; }
.empty-state { display: grid; gap: 5px; padding: 24px; border: 1px dashed #aeb3b8; background: #f7f7f6; }

.account-card select {
    background: #fff;
}

.account-card h2 {
    margin-top: 38px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #dfe2e6;
    text-align: left;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-actions form {
    display: block;
    margin: 0;
}

.admin-actions button {
    border: 1px solid #1b1d20;
    background: #fff;
    padding: 7px 9px;
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.validation-summary,
.field-validation-error {
    color: #a00000;
    font-weight: 700;
}

.account-notice {
    margin-top: 30px;
    padding: 18px;
    border-left: 5px solid #b40000;
    background: #f4f4f3;
}

.membership-list {
    display: grid;
    gap: 10px;
}

.membership-list div {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #dfe2e6;
}

@media (max-width: 620px) {
    .account-section {
        padding: 40px 14px;
    }

    .account-card {
        padding: 28px 22px;
    }
    .form-grid-3 { grid-template-columns: 1fr; }
    .workspace-heading { align-items: flex-start; flex-direction: column; }
    .public-lot-card { grid-template-columns: 1fr; }
    .public-lot-gallery a:first-child img { height: 210px; }
    .lot-setup-list article { align-items: stretch; flex-direction: column; }
    .lot-navigation { flex-direction: column; }
    .lot-navigation .button { text-align: center; }
    .auction-quick-actions { display: grid; }
    .auction-quick-actions .button { text-align: center; }
}
