:root {
    --green: #163e32;
    --deep: #102f26;
    --lime: #d5ed98;
    --cream: #f4f5f0;
    --ink: #172b24;
    --muted: #6b776f;
    --line: #dfe5dc;
    --white: #fff;
    --red: #a43131;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: var(--green);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: clamp(27px, 3.4vw, 42px);
    font-weight: 650;
    letter-spacing: -1.4px;
    line-height: 1.15;
    margin-bottom: 12px;
}
h2 {
    font-size: 23px;
    letter-spacing: -0.6px;
}
h3 {
    font-size: 16px;
}
p {
    line-height: 1.6;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 13px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}
.brand:hover {
    text-decoration: none;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    margin-top: 4px;
    font-weight: 500;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 14px;
    letter-spacing: -1px;
}
.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 11px;
    background: #edf3e8;
    color: var(--green);
    font-weight: 600;
}
.pill.legacy {
    background: #f6f0df;
    color: #776039;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    min-height: 46px;
    padding: 12px 18px;
    font-weight: 650;
    font-size: 13px;
    text-align: center;
}
.button:hover {
    text-decoration: none;
    filter: brightness(0.96);
}
.primary {
    background: var(--green);
    color: white;
}
.secondary {
    border-color: var(--line);
    background: white;
    color: var(--green);
}
.full {
    width: 100%;
}
.text-button {
    background: none;
    border: 0;
    padding: 0;
    font-size: 13px;
    color: var(--green);
}
.danger {
    color: var(--red);
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
}
input:not([type='checkbox']),
select {
    width: 100%;
    margin-top: 9px;
    background: white;
    border: 1px solid #d4ddd3;
    border-radius: 7px;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--ink);
}
input::placeholder {
    color: #97a096;
    font-weight: 400;
}
input:focus,
select:focus {
    outline: 2px solid #8caf88;
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #8caf88;
    outline-offset: 4px;
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 75px;
}
.password-field button {
    position: absolute;
    right: 12px;
    top: 24px;
    border: 0;
    background: transparent;
    font-size: 11px;
    color: var(--green);
}
.notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.success {
    background: #e7f2dd;
    color: #2c542a;
}
.error {
    background: #fae9e3;
    color: #94372d;
}
.auth-shell {
    max-width: 1100px;
    margin: 7vh auto 0;
    padding: 24px;
}
.login-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 650px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 70px #1c3f2610;
    background: white;
    border: 1px solid #e2e8dd;
}
.login-story {
    background: var(--green);
    color: #f7faf2;
    padding: 38px 44px;
    position: relative;
    overflow: hidden;
}
.login-story .brand {
    color: white;
}
.story-copy {
    margin-top: 74px;
}
.story-copy .eyebrow {
    color: #bdcfba;
}
.story-copy h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.13;
    font-weight: 400;
    letter-spacing: -1.2px;
}
.story-copy h1 span {
    color: var(--lime);
}
.story-copy p {
    color: #b5cbbb;
    font-size: 14px;
    max-width: 295px;
}
.court-illustration {
    height: 215px;
    position: relative;
    margin: 36px -12px 10px;
    perspective: 700px;
}
.court-lines {
    height: 190px;
    border: 2px solid #789980;
    width: 87%;
    position: absolute;
    top: 0;
    left: 7%;
    transform: rotateX(36deg) rotateZ(-12deg);
    background: linear-gradient(90deg, #315c43 0 14%, #254e38 14% 86%, #315c43 86%);
}
.court-lines:before,
.court-lines:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #8aa38b;
    left: 14%;
}
.court-lines:after {
    left: 86%;
}
.court-lines i {
    position: absolute;
    top: 50%;
    height: 2px;
    left: -12px;
    right: -12px;
    background: #c2d5b6;
    box-shadow: 0 4px 0 #113323;
}
.court-lines b {
    position: absolute;
    top: 24%;
    bottom: 24%;
    left: 14%;
    right: 14%;
    border-top: 1px solid #8aa38b;
    border-bottom: 1px solid #8aa38b;
}
.court-lines em {
    position: absolute;
    left: 50%;
    top: 24%;
    height: 52%;
    width: 1px;
    background: #8aa38b;
}
.tennis-ball {
    position: absolute;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: var(--lime);
    bottom: 28px;
    right: 15%;
    box-shadow: 7px 11px 14px #051b2870;
    transform: rotate(-20deg);
    overflow: hidden;
}
.tennis-ball:before {
    content: '';
    position: absolute;
    inset: -10px 9px;
    border-left: 2px solid #f7ffc8;
    border-right: 2px solid #f7ffc8;
    border-radius: 50%;
}
.story-note {
    font-size: 11px;
    color: #c2d3bf;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-dot {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: var(--lime);
}
.login-panel {
    padding: 60px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.panel-top .eyebrow {
    margin: 0;
    font-size: 9px;
    letter-spacing: 1.3px;
}
.panel-top .pill {
    font-size: 10px;
    white-space: nowrap;
}
.login-panel h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
.login-panel > .muted {
    font-size: 14px;
    margin-bottom: 34px;
}
.login-panel .button {
    margin-top: 5px;
    justify-content: space-between;
}
.login-help {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 24px;
    font-size: 12px;
}
.login-help strong {
    font-size: 12px;
}
.login-help p {
    color: var(--muted);
    margin-top: 8px;
    margin-bottom: 18px;
}
.login-panel > .small {
    font-size: 11px;
    line-height: 1.7;
}
footer {
    max-width: 1052px;
    margin: 25px auto 35px;
    font-size: 11px;
    color: #879080;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
}
.app-header {
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 22px max(24px, calc((100vw - 1200px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.app-header nav {
    display: flex;
    gap: 25px;
    font-size: 13px;
}
.profile {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 12px;
}
.profile small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 44px 24px;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}
.page-heading .eyebrow {
    color: #6e8664;
    margin-bottom: 12px;
}
.page-heading p {
    font-size: 14px;
    margin-bottom: 0;
}
.page-heading .button {
    flex-shrink: 0;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 28px;
    border: 1px solid var(--line);
    background: #ebefe5;
    border-radius: 10px;
}
.stats > div {
    padding: 19px 24px;
    border-right: 1px solid #dbe2d4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.stats > div:last-child {
    border: 0;
}
.stats span {
    font-size: 12px;
    color: #63785e;
}
.stats strong {
    font-size: 28px;
    font-weight: 600;
}
.card {
    background: white;
    border: 1px solid var(--line);
    padding: 28px;
    border-radius: 12px;
}
.narrow {
    max-width: 680px;
}
.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}
.calendar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.calendar-heading h2 {
    margin: 0;
}
.month-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
}
.month-nav > a:first-child,
.month-nav > a:last-child {
    font-size: 25px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}
.weekday {
    text-align: center;
    font-size: 11px;
    color: #7d8977;
    padding-bottom: 12px;
}
.day {
    min-height: 76px;
    border: 1px solid #e9ede4;
    border-radius: 6px;
    padding: 10px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}
.day:hover {
    background: #edf3e8;
    text-decoration: none;
}
.day small {
    font-size: 9px;
    color: #6b8560;
}
.day.selected {
    background: var(--green);
    color: white;
    border-color: var(--green);
}
.day.selected small {
    color: #c5dcb4;
}
.day.today > span {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.empty-day {
    border-color: transparent;
    pointer-events: none;
}
.calendar-legend {
    margin-top: 22px;
    font-size: 10px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
}
.calendar-legend i {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 2px;
}
.calendar-legend > span {
    margin-left: auto;
}
.day-agenda > .eyebrow {
    font-size: 9px;
    color: var(--muted);
}
.day-agenda h2 {
    margin-bottom: 25px;
}
.reservation {
    border-top: 1px solid var(--line);
    padding: 22px 0;
}
.reservation:last-child {
    padding-bottom: 0;
}
.reservation-time {
    font-size: 11px;
    font-weight: 650;
    color: #6b815b;
    margin-bottom: 10px;
}
.reservation h3 {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}
.reservation p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}
.reservation-actions {
    margin-top: 17px;
    display: flex;
    gap: 18px;
    font-size: 12px;
}
.empty-state {
    text-align: center;
    padding: 32px 4px;
}
.empty-state > span {
    font-size: 55px;
    color: #99b583;
}
.empty-state h3 {
    margin-top: 14px;
}
.empty-state p {
    font-size: 12px;
    color: var(--muted);
}
.empty-state .button {
    font-size: 11px;
}
.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
legend {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.court-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.court-choice {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.court-choice input {
    accent-color: var(--green);
}
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.court-list {
    margin: 22px 0 32px;
}
.court-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.members h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.table-scroll {
    overflow: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left;
}
th {
    color: var(--muted);
    font-weight: 500;
}
th,
td {
    padding: 15px 13px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
summary {
    cursor: pointer;
    color: var(--green);
}
details .stack {
    margin-top: 14px;
    min-width: 190px;
    gap: 10px;
}
@media (max-width: 1000px) {
    .app-header {
        flex-wrap: wrap;
    }
    .app-header nav {
        order: 3;
        width: 100%;
        padding-top: 10px;
    }
    .day {
        padding: 8px;
        min-height: 70px;
    }
    .day small span {
        display: none;
    }
    .login-story {
        padding: 32px;
    }
    .login-panel {
        padding: 40px 30px;
    }
    .panel-top {
        flex-wrap: wrap;
    }
    .calendar-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
    }
}
@media (max-width: 760px) {
    .auth-shell {
        padding: 16px;
        margin-top: 12px;
    }
    .login-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .login-story {
        padding: 26px;
    }
    .story-copy {
        margin-top: 35px;
    }
    .story-copy h1 {
        font-size: 36px;
    }
    .story-copy p {
        margin-bottom: 0;
    }
    .court-illustration {
        display: none;
    }
    .story-note {
        margin-top: 24px;
    }
    .login-panel {
        padding: 32px 26px;
    }
    .panel-top {
        margin-bottom: 24px;
    }
    .login-panel > .muted {
        margin-bottom: 25px;
    }
    .app-header {
        padding: 18px 20px;
        gap: 18px;
    }
    .brand {
        font-size: 16px;
    }
    .profile {
        gap: 12px;
    }
    .profile > span {
        max-width: 130px;
    }
    .container {
        padding: 30px 16px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .page-heading h1 {
        font-size: 30px;
    }
    .stats {
        gap: 0;
    }
    .stats > div {
        padding: 14px 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .stats span {
        font-size: 10px;
    }
    .stats strong {
        font-size: 23px;
    }
    .calendar-layout,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 22px;
    }
    .calendar-grid {
        gap: 3px;
    }
    .day {
        min-height: 62px;
        padding: 7px;
    }
    .calendar-heading h2 {
        font-size: 21px;
    }
    .form-columns {
        grid-template-columns: 1fr;
    }
    footer {
        font-size: 10px;
        gap: 15px;
    }
    footer > span {
        max-width: 150px;
        text-align: right;
    }
    .password-field button {
        top: 24px;
    }
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}
.login-story .brand-logo {
    width: 60px;
    height: 60px;
}
.ladder-members {
    max-height: 260px;
    overflow: auto;
}
.ladder-members label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem;
}
.ladder-members input {
    width: auto;
}
.ladder-members [hidden] {
    display: none;
}

.registration-card {
    margin-left: auto;
    margin-right: auto;
}
.registration-card .brand {
    margin-bottom: 28px;
}
/* Permitir que la navegación principal incluya todos los módulos en móvil. */
@media (max-width: 760px) {
    .app-header nav {
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}
.category-save-state {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    max-width: 180px;
}
.category-save-error {
    color: #b03932;
}

[data-account-row][hidden] {
    display: none !important;
}

.suspension-editor .stack {
    margin-top: 12px;
}
.suspension-current {
    max-width: 240px;
}
.suspension-current .pill {
    background: #fae7e4;
    color: #963d35;
}

/* Respetar hidden aunque los componentes utilicen display:flex/grid. */
[data-account-row][hidden],
[data-account-pagination][hidden],
.court-choice[hidden],
.court-expand[hidden] {
    display: none;
}
.member-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.member-pagination label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.member-pagination select {
    width: auto;
}
.court-expand {
    margin-top: 12px;
}
.member-pagination button:disabled {
    opacity: 0.5;
    cursor: default;
}

.court-type-form select {
    min-width: 100px;
}
[data-court-page-controls][hidden] {
    display: none;
}
@media (max-width: 760px) {
    .reservation-modal .court-choice {
        padding: 8px;
        gap: 5px;
    }
    .reservation-modal .court-choices {
        gap: 6px;
    }
    .reservation-modal .reservation-content .page-heading p {
        display: none;
    }
}

/* Solo los campos se desplazan: cabecera y acciones permanecen visibles. */
.admin-create-dialog {
    width: min(620px, calc(100% - 24px));
    height: min(720px, 90dvh);
    max-height: 90dvh;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
}
.admin-create-dialog[open] {
    display: flex;
    flex-direction: column;
}
.admin-create-dialog .booking-dialog-heading {
    flex: 0 0 auto;
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}
.admin-create-dialog .booking-dialog-heading h2 {
    margin: 0;
}
.admin-create-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}
.admin-modal-fields {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px;
    overscroll-behavior: contain;
}
.admin-modal-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: white;
}

.row-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.action-icon {
    min-width: 34px;
    padding: 7px;
    font-size: 18px;
}
.row-action-menu[open] {
    min-width: 220px;
}
/* Edición de socios: dos campos por fila en escritorio. */
:is(#edit-member-dialog, #add-member-dialog) {
    width: min(880px, calc(100vw - 32px));
    height: auto;
    max-height: 90dvh;
}
:is(#edit-member-dialog, #add-member-dialog) .admin-modal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px 20px;
}
:is(#edit-member-dialog, #add-member-dialog) .admin-modal-fields > label {
    min-width: 0;
    gap: 5px;
}
:is(#edit-member-dialog, #add-member-dialog) .admin-modal-fields > .notice,
:is(#edit-member-dialog, #add-member-dialog) .admin-modal-fields > fieldset,
:is(#edit-member-dialog, #add-member-dialog) .admin-modal-fields > details {
    grid-column: 1 / -1;
}
:is(#edit-member-dialog, #add-member-dialog) [data-member-suspension] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
:is(#edit-member-dialog, #add-member-dialog) [data-member-suspension][hidden] {
    display: none;
}
:is(#edit-member-dialog, #add-member-dialog) input,
:is(#edit-member-dialog, #add-member-dialog) select {
    padding: 9px 11px;
}
@media (max-width: 760px) {
    :is(#edit-member-dialog, #add-member-dialog) {
        width: calc(100vw - 24px);
    }
    :is(#edit-member-dialog, #add-member-dialog) .admin-modal-fields,
    :is(#edit-member-dialog, #add-member-dialog) [data-member-suspension] {
        grid-template-columns: minmax(0, 1fr);
    }
}

:is(#edit-member-dialog, #add-member-dialog) [data-member-suspension] {
    align-items: start;
    min-width: 0;
}
:is(#edit-member-dialog, #add-member-dialog) [data-member-suspension] > label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
:is(#edit-member-dialog, #add-member-dialog) [data-member-suspension] textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    resize: vertical;
}

.admin-module-nav {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    border-bottom: 1px solid var(--line);
}
.admin-module-nav a {
    padding: 12px 18px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.admin-module-nav a.is-active {
    border-bottom-color: var(--green);
    font-weight: 600;
}
[data-admin-list][aria-busy='true'] .table-scroll {
    opacity: 0.65;
}

:is(#edit-member-dialog, #add-member-dialog) .admin-modal-fields > p {
    grid-column: 1 / -1;
    margin: 0;
}

.main-menu-toggle {
    display: none;
}
@media (max-width: 1000px) {
    .app-header .main-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: white;
        color: var(--green);
        margin-left: auto;
    }
    .app-header:not(.is-menu-open) nav,
    .app-header:not(.is-menu-open) .profile {
        display: none;
    }
    .app-header.is-menu-open nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        order: 3;
        padding-top: 0;
    }
    .app-header.is-menu-open nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .app-header.is-menu-open .profile {
        display: flex;
        justify-content: space-between;
        width: 100%;
        order: 4;
    }
    .app-header.is-menu-open .profile > span {
        max-width: none;
    }
}

:is([data-admin-list], .audit-list) .member-pagination {
    gap: 8px;
    margin: 12px 0;
    font-size: 12px;
}
:is([data-admin-list], .audit-list) .member-pagination label {
    font-size: 12px;
    font-weight: 400;
    gap: 6px;
}
:is([data-admin-list], .audit-list) .member-pagination select {
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding: 4px 26px 4px 8px;
    font-size: 12px;
    border-radius: 6px;
}
:is([data-admin-list], .audit-list) .member-pagination .button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}
[data-admin-list] .table-actions-column {
    width: 1%;
    white-space: nowrap;
}
.audit-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.audit-filters label {
    flex: 1;
    min-width: 180px;
}
.audit-filters input,
.audit-filters select {
    margin-bottom: 0;
}

.audit-field-list {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr);
    gap: 10px 18px;
    margin: 16px 0;
    font-size: 13px;
}
.audit-field-list dt {
    color: var(--muted);
}
.audit-field-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.audit-field-list .audit-field-list {
    display: block;
    margin: 0;
    padding: 12px;
    background: var(--cream);
    border-radius: 8px;
}
.audit-field-list .audit-field-list dt {
    margin-top: 10px;
}
.audit-field-list .audit-field-list dt:first-child {
    margin-top: 0;
}
.audit-field-list .audit-field-list dd {
    margin-top: 3px;
}
@media (max-width: 600px) {
    .audit-field-list {
        grid-template-columns: minmax(100px, 1fr) minmax(0, 1.5fr);
        gap: 10px;
    }
}

.audit-details {
    min-width: 120px;
}
.audit-details summary {
    cursor: pointer;
    color: var(--green);
    padding: 6px 0;
}
.audit-details[open] {
    min-width: min(420px, 70vw);
}
.audit-detail-content {
    max-width: 560px;
    padding: 14px;
    margin-top: 8px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-wrap: anywhere;
}
.audit-detail-content h3 {
    margin-bottom: 10px;
}
.audit-detail-content .audit-field-list {
    font-size: 12px;
}
