/* Small adaptations for ordinary PHP links/forms; the supplied theme stays in style.css. */
.language-switch a {
    padding: 5px 12px;
    background: transparent;
    color: #7c827b;
    border-radius: 6px;
    font-size: calc(13px * var(--site-font-scale, 1));
    text-decoration: none;
}
.language-switch a.active {
    background: white;
    color: var(--ink);
    box-shadow: 0 1px 4px #26322312;
    font-weight: 600;
}
.admin-body .language-switch a {
    color: #e9e4d5;
}
.admin-body .language-switch a.active {
    background: #d4a928;
    color: #191713;
}
.header-actions form {
    margin: 0;
}
a.button,
a.admin-nav-btn,
.settings-tabs a,
.table-tabs a {
    text-decoration: none;
}
.table-tabs a {
    background: transparent;
    color: #818773;
    font-size: calc(12px * var(--site-font-scale, 1));
    padding: 5px 0;
}
.table-tabs a.active {
    color: #373d30;
    font-weight: 600;
    border-bottom: 2px solid var(--gold);
}
.settings-tabs a {
    padding: 9px 14px 13px;
    color: #f0e6cc;
    white-space: nowrap;
    font-size: calc(12px * var(--site-font-scale, 1));
}
.settings-tabs a.active {
    border-bottom: 2px solid #d3ae24;
    color: #ffe18a;
    font-weight: 600;
}
.notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}
.notification-heading .icon-btn {
    color: #ffe18a;
    background: transparent;
}
.notification-item strong {
    font-size: calc(12px * var(--site-font-scale, 1));
}
.notification-item {
    cursor: pointer;
}
.notification-panel form {
    margin: 0;
}
.option-page {
    max-width: 900px;
    margin: 0 auto;
}
.option-page h1 {
    margin-bottom: 24px;
    font-size: calc(25px * var(--site-font-scale, 1));
}
.option-remove {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: calc(10px * var(--site-font-scale, 1));
}
.option-editor-row {
    grid-template-columns: 1fr 1fr 65px;
}
.option-editor-row input[type="checkbox"] {
    min-height: auto;
}
.enhanced-only {
    display: none !important;
}
.js .enhanced-only {
    display: flex !important;
}
.js .file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}
.file-input {
    font-size: calc(11px * var(--site-font-scale, 1));
    max-width: 100%;
}
.upload-file {
    max-width: 100%;
}
.upload-file img {
    max-width: 100%;
}
.upload-file strong {
    overflow-wrap: anywhere;
}
.upload-zone.dragging {
    border-color: #c99a12;
    background: #fff8d8;
}
.policy-text {
    white-space: pre-line;
}
.status-form {
    display: flex;
    align-items: end;
    gap: 12px;
}
.status-form .field {
    flex: 1;
}
.status-form .button {
    margin-bottom: 1px;
}
.profile-link-recovery input {
    margin: 10px 0;
}
.error-details {
    color: #a92525;
    padding: 12px 30px;
    background: #fff2ef;
    border-radius: 12px;
}
.privacy-submit {
    background: transparent;
    border: 0;
    color: #7e6825;
    text-decoration: underline;
    font-size: calc(11px * var(--site-font-scale, 1));
    padding: 0;
    margin-top: 8px;
}
.consent-box .privacy-submit {
    display: inline-block;
}
dialog[open]:not(:modal) {
    position: fixed;
    z-index: 100;
    inset: 5vh 0 auto;
    max-height: 90vh;
    margin: auto;
    overflow: auto;
    box-shadow: 0 0 0 100vmax #0008;
}
.admin-body > #admin-main.auth-card {
    margin: 55px auto;
}
@media (max-width: 640px) {
    .language-switch a {
        font-size: calc(11px * var(--site-font-scale, 1));
        padding: 4px 8px;
    }
    .table-tabs a,
    .settings-tabs a {
        font-size: calc(10px * var(--site-font-scale, 1));
    }
    .header-actions {
        flex-wrap: wrap;
    }
    .status-form {
        flex-wrap: wrap;
    }
    .option-editor-row {
        grid-template-columns: 1fr 1fr;
    }
    .option-remove {
        grid-column: 1 / -1;
    }
    .filter-bottom {
        gap: 12px;
        flex-wrap: wrap;
    }
}

.welcome-copy h1 {
    font-weight: 700;
}

.admin-body > .skip {
    position: absolute !important;
    inset-block-start: -200px;
}
.admin-body > .skip:focus {
    inset-block-start: 10px;
    z-index: 200;
}
