.admin-content { padding-bottom: 28px; }
.admin-analytics-link { color: #3f805b; font-size: 10px; font-weight: 600; }
.admin-analytics-link span { margin-left: 4px; color: var(--coral); font-size: 14px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 42px 0 22px; animation: lift-in 420ms ease-out both; }
.admin-heading h1 { margin: 12px 0 0; font-family: var(--display); font-size: 48px; font-weight: 400; line-height: .96; }
.admin-heading h1 span { color: #438069; }
#admin-feedback { max-width: 300px; margin: 0 0 4px; color: var(--muted); font-size: 10px; text-align: right; }
#admin-feedback.is-error { color: #b34431; }
.admin-tabs { display: flex; gap: 3px; overflow-x: auto; padding: 0 0 12px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.admin-tabs button { min-height: 36px; flex: none; padding: 0 12px; border: 1px solid transparent; border-radius: 2px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 600; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { border-color: var(--line); color: var(--ink); background: var(--surface); box-shadow: inset 0 -2px var(--lime-deep); }
.admin-tabs button:focus-visible, .admin-action:focus-visible, .admin-switch input:focus-visible + span { outline: 2px solid var(--lime-deep); outline-offset: 2px; }
.admin-section { min-width: 0; padding: 21px 0; animation: lift-in 300ms ease-out both; }
.admin-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-metric { display: flex; min-height: 105px; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.admin-metric span { color: var(--muted); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.admin-metric strong { font-family: var(--numeric); font-size: 34px; font-weight: 500; line-height: 1; }
.admin-metric-featured { border-color: var(--ink); color: var(--surface); background: var(--ink); }
.admin-metric-featured span { color: #b9c7be; }
.admin-toolbar { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 15px; margin: 5px 0 15px; }
.admin-toolbar h2 { margin: 6px 0 0; font-family: var(--numeric); font-size: 23px; font-weight: 500; line-height: 1.1; }
.admin-switch { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; cursor: pointer; }
.admin-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-switch span { position: relative; width: 40px; height: 23px; border: 1px solid #aebbb1; border-radius: 20px; background: #e0e6df; transition: background-color 150ms ease; }
.admin-switch span::after { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #14211d44; content: ''; transition: transform 150ms ease; }
.admin-switch input:checked + span { border-color: var(--ink); background: var(--lime-deep); }
.admin-switch input:checked + span::after { transform: translateX(17px); }
.admin-switch b { min-width: 55px; color: var(--ink); }
.admin-search { width: min(100%, 280px); min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 2px; outline: 0; background: var(--surface); font-size: 11px; }
.admin-search:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--lime-deep); box-shadow: 0 0 0 2px #94c83d33; }
.admin-table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.admin-table { min-width: 780px; }
.admin-table th { padding: 11px 12px; background: #edf1eb; white-space: nowrap; }
.admin-table td { max-width: 300px; padding: 10px 12px; vertical-align: top; font-size: 10px; }
.admin-table td:last-child, .admin-table th:last-child { width: auto; text-align: left; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-user-cell { min-width: 180px; }
.admin-user-cell strong, .admin-user-cell small { display: block; }
.admin-user-cell small { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.admin-rights { min-width: 150px; }
.admin-badge { display: inline-block; margin: 0 4px 4px 0; padding: 4px 6px; border-radius: 2px; color: #56665c; background: #e8ede7; font-size: 8px; white-space: nowrap; }
.admin-badge.is-admin { color: #283e32; background: #dcecc8; }
.admin-badge.is-coach { color: #365a68; background: #dcebef; }
.admin-badge.is-unverified { color: #94452f; background: #f8e4dc; }
.admin-actions-cell { min-width: 260px; }
.admin-action { display: inline-flex; min-height: 27px; align-items: center; justify-content: center; margin: 0 4px 4px 0; padding: 0 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: #fff; font-size: 8px; font-weight: 600; cursor: pointer; }
.admin-action:hover { border-color: var(--ink); }
.admin-action.is-danger { border-color: #e9c9bf; color: #984433; background: #fff8f5; }
.admin-count { color: var(--muted); font-family: var(--numeric); font-size: 11px; white-space: nowrap; }
.admin-record-list { display: grid; gap: 8px; }
.admin-record { min-width: 0; padding: 15px; border: 1px solid var(--line); border-left: 3px solid var(--sky); border-radius: 3px; background: var(--surface); }
.admin-record-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.admin-record-head strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
.admin-record-head time, .admin-record-meta { color: var(--muted); font-size: 9px; }
.admin-record-message { margin: 12px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-record-meta { margin: 8px 0 0; overflow-wrap: anywhere; }
.admin-commit-details { margin-top: 10px; padding: 9px 11px; border-left: 2px solid var(--lime-deep); background: #f1f4ef; }
.admin-commit-details p { margin: 4px 0; font-family: monospace; font-size: 9px; overflow-wrap: anywhere; }
.admin-commit-details .is-error { color: #b34431; }
.admin-query-cell { min-width: 280px; max-width: 480px !important; font-family: monospace; font-size: 9px !important; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-empty, .admin-empty-block { color: var(--muted); text-align: center; }
.admin-empty-block { padding: 30px 12px; border: 1px dashed var(--line); font-size: 11px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 920px; }
.admin-form label { display: grid; min-width: 0; align-content: start; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 2px; outline: 0; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 400; text-transform: none; }
.admin-form textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
.admin-editor-field { display: grid; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.admin-editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-editor-toolbar button { min-width: 34px; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font-size: 10px; cursor: pointer; }
.admin-editor-toolbar button:hover { border-color: var(--ink); }
.admin-editor { min-height: 190px; padding: 12px; border: 1px solid var(--line); border-radius: 2px; outline: 0; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 400; line-height: 1.55; text-transform: none; }
.admin-editor:focus { border-color: var(--lime-deep); box-shadow: 0 0 0 2px #94c83d33; }
.admin-editor a { color: #356e58; text-decoration: underline; }
.admin-form small { color: var(--muted); font-size: 9px; font-weight: 400; text-transform: none; }
.admin-form-wide { grid-column: 1 / -1; }
.admin-form .button { justify-self: start; }
.admin-form-links { grid-template-columns: 1fr; }
.admin-filter-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 12px; margin: 4px 0 15px; }
.admin-filter-row label { display: grid; gap: 6px; color: var(--admin-muted); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.admin-filter-row select { min-height: 42px; padding: 8px 10px; border: 1px solid var(--admin-line); border-radius: 2px; color: #f0eadb; background: #11110f; font: inherit; font-size: 11px; text-transform: none; }
.admin-record-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.admin-check-label { display: flex !important; grid-auto-flow: column; justify-content: start; align-items: center; gap: 9px !important; min-height: 42px; }
.admin-form .admin-check-label input { width: 16px; min-height: 16px; padding: 0; accent-color: var(--lime-deep); }
.admin-form select[multiple] { min-height: 120px; padding: 7px; }
.assistant-history { display: grid; max-height: min(56vh, 560px); gap: 9px; overflow-y: auto; margin: 0 0 13px; padding: 10px; border: 1px solid var(--admin-line); border-radius: 3px; background: #10100e; }
.assistant-message { width: fit-content; max-width: min(100%, 760px); margin: 0; padding: 11px 13px; border: 1px solid var(--admin-line); border-radius: 3px; color: #e8e2d4; background: var(--admin-surface); font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message.is-user { justify-self: end; border-color: #62502f; color: #f2d98c; background: #201d16; }
.assistant-form textarea { min-height: 88px; }
.visitor-analytics { --admin-line: var(--line); --admin-muted: var(--muted); margin-top: 34px; padding-top: 24px; border-top-color: var(--line); }
.visitor-analytics .section-heading { align-items: center; }
.visitor-analytics .section-heading h2 { color: var(--ink); }
.visitor-analytics-status { margin: -4px 0 14px; color: var(--muted); font-size: 10px; }
.visitor-metric-grid { margin: 0 0 12px; }
.judo-period-control { flex: none; border-color: var(--line); background: #e7ece6; }
.judo-period-link { display: grid; min-width: 42px; min-height: 29px; place-items: center; padding: 0 9px; border-radius: 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.judo-period-link[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgb(20 33 29 / 12%); }
.judo-period-link:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 1px; }
.visitor-chart-panel { margin-top: 12px; }
.judo-chart-session-key { display: inline-flex; align-items: center; gap: 7px; }
.judo-chart-session-key::before { width: 8px; height: 2px; border-top: 2px dashed #80b7c3; content: ''; }
.visitor-breakdown-grid { margin-top: 12px; }

@media (min-width: 720px) {
    .admin-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
    .admin-metric { min-height: 126px; padding: 17px; }
    .admin-section { padding-top: 25px; }
}

@media (max-width: 620px) {
    .admin-heading { align-items: start; flex-direction: column; padding-top: 30px; }
    .admin-heading h1 { font-size: 40px; }
    #admin-feedback { text-align: left; }
    .topbar-actions { gap: 12px; }
    .admin-analytics-link { font-size: 9px; }
    .admin-toolbar { align-items: start; flex-direction: column; }
    .admin-search { width: 100%; }
    .admin-form { grid-template-columns: 1fr; }
    .admin-form-wide { grid-column: auto; }
    .admin-filter-row { grid-template-columns: 1fr; }
    .visitor-analytics .section-heading { align-items: start; flex-direction: column; }
}

.admin-content {
    --admin-surface: #141412;
    --admin-surface-raised: #1a1915;
    --admin-line: #353127;
    --admin-muted: #aaa18e;
    padding-bottom: 36px;
}
.admin-heading { align-items: start; flex-direction: column; gap: 12px; padding: 30px 0 20px; }
.admin-heading h1 { font-size: 36px; line-height: 1.02; }
#admin-feedback { max-width: none; margin: 0; text-align: left; }
.admin-analytics-link { color: var(--lime); }
.admin-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    gap: 5px;
    margin: 0 -2px;
    padding: 8px 2px 10px;
    border-color: var(--admin-line);
    background: rgb(11 11 10 / 94%);
    backdrop-filter: blur(14px);
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #806b39 #171613;
}
.admin-tabs::-webkit-scrollbar { display: block; height: 3px; }
.admin-tabs::-webkit-scrollbar-track { background: #171613; }
.admin-tabs::-webkit-scrollbar-thumb { border-radius: 3px; background: #806b39; }
.admin-tabs button {
    min-height: 42px;
    padding: 0 12px;
    border-color: var(--admin-line);
    border-radius: 3px;
    background: var(--admin-surface);
    font-size: 10px;
    scroll-snap-align: start;
}
.admin-tabs button[aria-selected="true"] {
    border-color: #806b39;
    color: #f2d98c;
    background: linear-gradient(145deg, #282317, #171613);
    box-shadow: inset 0 -2px var(--lime), 0 6px 20px rgb(0 0 0 / 18%);
}
.admin-section { padding: 18px 0 24px; }
.admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-metric {
    min-height: 112px;
    padding: 14px;
    border-color: var(--admin-line);
    border-radius: 3px;
    background: linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 56%), var(--admin-surface);
    box-shadow: 0 10px 28px rgb(0 0 0 / 15%);
}
.admin-metric span { color: var(--admin-muted); font-size: 9px; letter-spacing: .7px; }
.admin-metric strong { color: #f2d98c; font-size: 32px; }
.admin-metric-featured {
    border-color: #77623a;
    background: radial-gradient(ellipse at 100% 0%, rgb(216 180 92 / 12%), transparent 58%), #191812;
}
.admin-metric-featured span { color: #c5b994; }
.admin-toolbar { align-items: stretch; flex-direction: column; gap: 13px; margin: 8px 0 15px; }
.admin-toolbar h2 { color: #eee8d9; font-size: 22px; }
.admin-switch {
    min-height: 48px;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid var(--admin-line);
    border-radius: 3px;
    background: var(--admin-surface);
}
.admin-switch span { border-color: #565044; background: #282720; }
.admin-switch input:checked + span { border-color: var(--lime-deep); background: #806b39; }
.admin-switch b { color: #f0eadb; }
.admin-search { width: 100%; min-height: 46px; border-color: var(--admin-line); color: var(--ink); background: var(--admin-surface); }
.admin-search:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .admin-editor:focus {
    border-color: var(--lime-deep);
    box-shadow: 0 0 0 3px rgb(216 180 92 / 13%);
}
.admin-table-wrap {
    border-color: var(--admin-line);
    border-radius: 3px;
    background: var(--admin-surface);
    box-shadow: 0 12px 32px rgb(0 0 0 / 16%);
    -webkit-overflow-scrolling: touch;
}
.admin-table { min-width: 760px; }
.admin-table th { padding: 12px; border-bottom-color: #3a372e; color: #b4aa95; background: var(--admin-surface-raised); letter-spacing: .8px; }
.admin-table td { padding: 12px; border-bottom-color: #2a2822; color: #ddd7c9; font-size: 11px; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-user-cell small { color: var(--admin-muted); }
.admin-badge { border: 1px solid #3b382f; color: #c9c1af; background: #211f19; }
.admin-badge.is-admin { border-color: #66572f; color: #f1d783; background: #292316; }
.admin-badge.is-coach { border-color: #344b4c; color: #a9d3ce; background: #182120; }
.admin-badge.is-unverified { border-color: #654235; color: #f2b49d; background: #281b17; }
.admin-action {
    min-height: 38px;
    margin: 0 5px 5px 0;
    padding: 0 10px;
    border-color: #484236;
    border-radius: 3px;
    color: #e8e0ce;
    background: #211f19;
    font-size: 9px;
}
.admin-action:hover { border-color: #9a8044; color: #f4d982; background: #29251a; }
.admin-action.is-danger { border-color: #654235; color: #f0ac94; background: #281b17; }
.admin-record-list { gap: 10px; }
.admin-record {
    padding: 15px;
    border-color: var(--admin-line);
    border-left-color: var(--lime-deep);
    border-radius: 3px;
    background: linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 46%), var(--admin-surface);
    box-shadow: 0 12px 30px rgb(0 0 0 / 13%);
}
.admin-record-head { align-items: start; flex-direction: column; gap: 8px; }
.admin-record-head strong { color: #f1eadb; font-size: 12px; line-height: 1.45; }
.admin-record-head time, .admin-record-meta { color: var(--admin-muted); }
.admin-record-message { color: #d5cebe; font-size: 12px; }
.admin-commit-details { border-left-color: var(--lime-deep); color: #d5cebe; background: #1c1b17; }
.admin-query-cell { color: #d4cbaF !important; }
.admin-empty, .admin-empty-block { color: var(--admin-muted); }
.admin-empty-block { border-color: var(--admin-line); border-radius: 3px; }
.admin-count { color: #d8bf7a; }
.admin-form { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.admin-form label, .admin-editor-field { color: #b9af9a; font-size: 10px; letter-spacing: .4px; }
.admin-form input, .admin-form textarea, .admin-form select {
    min-height: 46px;
    border-color: #403b30;
    border-radius: 3px;
    color: #f0eadb;
    background: #11110f;
}
.admin-form input[type="file"] { padding: 8px; color-scheme: dark; }
.admin-form textarea { min-height: 210px; }
.admin-form small { color: var(--admin-muted); }
.admin-form .button { min-height: 46px; width: 100%; }
.admin-editor-toolbar button {
    min-width: 40px;
    min-height: 40px;
    border-color: #403b30;
    border-radius: 3px;
    color: #eee8d9;
    background: #1b1a16;
}
.admin-editor-toolbar button:hover { border-color: #9a8044; color: #f4d982; }
.admin-editor {
    min-height: 210px;
    border-color: #403b30;
    border-radius: 3px;
    color: #f0eadb;
    background: #11110f;
}
.admin-editor a { color: #e6c36e; }
.site-admin-link {
    display: flex;
    min-width: min(100%, 220px);
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid #5c4d2e;
    border-radius: 3px;
    color: #f0eadb;
    background: linear-gradient(125deg, #211d13, #121210 78%);
    box-shadow: 0 10px 28px rgb(0 0 0 / 22%);
    font-size: 11px;
    font-weight: 600;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.site-admin-link:hover { transform: translateY(-2px); border-color: var(--lime); background: #211d13; }
.site-admin-link__index { color: #a79b7d; font-size: 8px; letter-spacing: 1px; }
.site-admin-link__arrow { color: var(--lime); font-size: 17px; }
.site-entry { cursor: pointer; }
.site-entry:disabled { cursor: pointer; }

@media (max-width: 500px) {
    .admin-content { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
    .admin-heading h1 { font-size: 36px; }
    .site-admin-link { width: 100%; }
}

@media (min-width: 560px) {
    .admin-heading { align-items: end; flex-direction: row; justify-content: space-between; }
    #admin-feedback { max-width: 300px; text-align: right; }
    .admin-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-toolbar { align-items: center; flex-direction: row; }
    .admin-search { width: min(100%, 280px); }
    .admin-record-head { align-items: center; flex-direction: row; justify-content: space-between; }
    .site-admin-link { align-self: end; }
}

@media (min-width: 720px) {
    .admin-heading { padding: 42px 0 26px; }
    .admin-heading h1 { font-size: 48px; }
    .admin-section { padding: 25px 0 32px; }
    .admin-metric { min-height: 126px; padding: 17px; }
    .admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .admin-form-wide { grid-column: 1 / -1; }
    .admin-form .button { width: auto; }
    .admin-action { min-height: 32px; }
}

@media (min-width: 1040px) {
    .admin-heading h1 { font-size: 54px; }
    .admin-section { padding-top: 30px; }
    .admin-metrics { gap: 12px; }
    .admin-record { padding: 19px; }
}

.admin-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    backdrop-filter: none;
}
.admin-tabs button {
    min-width: 0;
    padding-inline: 7px;
    white-space: normal;
    line-height: 1.25;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-users-list { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.admin-user-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid #39352c;
    border-radius: 14px;
    background: linear-gradient(145deg, rgb(244 239 226 / 3%), transparent 56%), #141412;
    box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.admin-user-card:hover, .admin-user-card[open] { border-color: #806b39; background-color: #191812; }
.admin-user-card.is-banned { border-color: #654235; }
.admin-user-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.admin-user-avatar-wrap { position: relative; flex: 0 0 56px; width: 56px; height: 56px; }
.admin-user-avatar {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 2px solid #4a4334;
    border-radius: 50%;
    color: #f0d37e;
    background: #282419;
    font-family: var(--numeric);
    font-size: 20px;
}
.admin-user-avatar-wrap .user-profile-card__status-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 13px;
    height: 13px;
    border: 2px solid #141412;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
}
.admin-user-avatar-wrap .user-profile-card__status-dot.is-online { background: #22c55e; }
.admin-user-avatar-wrap .user-profile-card__status-dot.is-offline { background: #9ca3af; }
.admin-user-details { display: grid; min-width: 0; flex: 1; gap: 3px; }
.admin-user-name { overflow-wrap: anywhere; color: #f4efe2; font-size: 13px; font-weight: 600; line-height: 1.3; }
.admin-user-email { overflow-wrap: anywhere; color: #aaa18e; font-size: 10px; }
.admin-user-presence { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 600; }
.admin-user-presence::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.admin-user-presence.is-online { color: #4ade80; }
.admin-user-presence.is-offline { color: #9ca3af; }
.admin-user-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.admin-user-badges .admin-badge { margin: 0; }
.admin-user-menu { margin-top: 12px; border-top: 1px solid #302e28; }
.admin-user-menu summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #d8bf7a;
    font-size: 10px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.admin-user-menu summary::-webkit-details-marker { display: none; }
.admin-user-menu summary::after { color: #d8bf7a; content: '+'; font-size: 17px; line-height: 1; }
.admin-user-menu[open] summary::after { content: '-'; }
.admin-user-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 1px 0 4px; }
.admin-user-actions .admin-action { min-width: 0; min-height: 42px; margin: 0; padding: 5px 7px; overflow-wrap: anywhere; white-space: normal; }
.admin-audit-list { min-width: 0; }
.admin-audit-item { min-width: 0; }
.admin-audit-head { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.admin-audit-head strong { color: #e9d38e; font-size: 11px; }
.admin-audit-head time { color: var(--admin-muted); font-size: 9px; }
.admin-audit-summary { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.admin-audit-query { min-width: 0; margin-top: 10px; border-top: 1px solid #302e28; }
.admin-audit-query summary { padding-top: 10px; color: #d8bf7a; font-size: 10px; cursor: pointer; }
.admin-audit-query pre { max-width: 100%; margin: 9px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; color: #d4cbae; font: 10px/1.5 monospace; }
.admin-users-list > [hidden] { display: none; }

@media (min-width: 620px) {
    .admin-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-users-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-user-card { padding: 17px; }
}

@media (min-width: 1200px) {
    .admin-tabs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .admin-users-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}