:root {
    --admin-canvas: #f3f6f5;
    --admin-surface: #ffffff;
    --admin-border: #dce4e2;
    --admin-ink: #173139;
    --admin-muted: #66777b;
    --admin-red: #c72d29;
    --admin-red-soft: #fff1ef;
    --admin-teal: #137c72;
    --admin-teal-soft: #eaf7f4;
    --admin-blue: #247da1;
    --admin-gold: #b77b19;
    --admin-success: #28705b;
    --admin-registration: #5b5f8f;
    --admin-registration-soft: #f2f2f8;
    --admin-registration-border: #d8d9e8;
    --admin-exam: #8b571f;
    --admin-exam-soft: #fbf4ea;
    --admin-exam-border: #ead8bf;
    --admin-voice: #a9252c;
    --admin-voice-soft: #fff3f2;
    --admin-voice-border: #f0d0cd;
    --admin-idea: #28705b;
    --admin-idea-soft: #eef7f3;
    --admin-idea-border: #cfe3da;
    --admin-skill: #375f7b;
    --admin-skill-soft: #eff5f8;
    --admin-skill-border: #cfdee6;
    --admin-survey: #28747a;
    --admin-survey-soft: #edf7f7;
    --admin-survey-border: #cce2e3;
    --admin-role-company: #a9252c;
    --admin-role-company-soft: #fff3f2;
    --admin-role-company-border: #eed9da;
    --admin-role-unit: #28747a;
    --admin-role-unit-soft: #edf7f7;
    --admin-role-unit-border: #cce2e3;
    --admin-role-employee: #5b5f8f;
    --admin-role-employee-soft: #f2f2f8;
    --admin-role-employee-border: #d8d9e8;
    --admin-accent: var(--admin-red);
    --admin-accent-soft: var(--admin-red-soft);
    --admin-accent-border: #f0cbc8;
    --admin-accent-ring: rgba(199, 45, 41, 0.28);
    --admin-sidebar-width: 232px;
    --admin-bar-height: 68px;
    --admin-content-max: 1440px;
    --admin-panel-padding: 22px;
    --admin-section-gap: 24px;
    --admin-related-gap: 12px;
    --admin-control-height: 44px;
    --admin-row-action-height: 34px;
}

.admin-tone-registration {
    --admin-accent: var(--admin-registration);
    --admin-accent-soft: var(--admin-registration-soft);
    --admin-accent-border: var(--admin-registration-border);
    --admin-accent-ring: rgba(91, 95, 143, 0.28);
}

.admin-tone-exam {
    --admin-accent: var(--admin-exam);
    --admin-accent-soft: var(--admin-exam-soft);
    --admin-accent-border: var(--admin-exam-border);
    --admin-accent-ring: rgba(139, 87, 31, 0.28);
}

.admin-tone-voice,
.admin-tone-lottery {
    --admin-accent: var(--admin-voice);
    --admin-accent-soft: var(--admin-voice-soft);
    --admin-accent-border: var(--admin-voice-border);
    --admin-accent-ring: rgba(169, 37, 44, 0.28);
}

.admin-tone-idea {
    --admin-accent: var(--admin-idea);
    --admin-accent-soft: var(--admin-idea-soft);
    --admin-accent-border: var(--admin-idea-border);
    --admin-accent-ring: rgba(40, 112, 91, 0.28);
}

.admin-tone-skill {
    --admin-accent: var(--admin-skill);
    --admin-accent-soft: var(--admin-skill-soft);
    --admin-accent-border: var(--admin-skill-border);
    --admin-accent-ring: rgba(55, 95, 123, 0.28);
}

.admin-tone-survey {
    --admin-accent: var(--admin-survey);
    --admin-accent-soft: var(--admin-survey-soft);
    --admin-accent-border: var(--admin-survey-border);
    --admin-accent-ring: rgba(40, 116, 122, 0.28);
}

.admin-tone-people {
    --admin-accent: #41686d;
    --admin-accent-soft: #edf4f3;
    --admin-accent-border: #cfdfdd;
    --admin-accent-ring: rgba(65, 104, 109, 0.28);
}

.admin-shell-page {
    margin: 0;
    min-width: 320px;
    background-color: var(--admin-canvas);
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 47px, rgba(23, 49, 57, 0.025) 48px);
    color: var(--admin-ink);
}

.admin-shell,
.admin-workspace {
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 12px;
    padding: 9px 13px;
    transform: translateY(-160%);
    border-radius: 5px;
    background: var(--admin-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.admin-skip-link:focus {
    transform: translateY(0);
}

.admin-sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--admin-sidebar-width);
    flex-direction: column;
    background: #fbfcfc;
    border-right: 1px solid var(--admin-border);
}

.admin-sidebar::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--admin-red);
    content: "";
}

.admin-sidebar-brand {
    display: flex;
    min-height: var(--admin-bar-height);
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--admin-border);
    font-size: 16px;
    font-weight: 700;
}

.admin-brand-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}

.admin-sidebar-close,
.admin-menu-button {
    display: none;
}

.admin-sidebar-logout {
    display: none;
    margin: 8px 0 0;
}

.admin-sidebar-logout button {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--admin-border);
    border-radius: 5px;
    background: #fff;
    color: var(--admin-ink);
    font: inherit;
    font-weight: 700;
}

.admin-navigation {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 24px;
}

.admin-nav-section + .admin-nav-section {
    margin-top: 18px;
}

.admin-nav-section h2 {
    margin: 0 10px 6px;
    color: #596b70;
    font-size: 12px;
    font-weight: 600;
}

.admin-nav-link {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #40565c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.admin-nav-link:hover {
    background: #f1f5f4;
    color: var(--admin-ink);
}

.admin-nav-link.is-active {
    border-color: var(--admin-nav-border, #f0cbc8);
    background: var(--admin-nav-soft, var(--admin-red-soft));
    color: var(--admin-nav-accent, #a92220);
}

.admin-nav-link.is-active::before {
    position: absolute;
    inset: 10px auto 10px -1px;
    width: 3px;
    background: var(--admin-nav-accent, var(--admin-red));
    content: "";
}

.admin-nav-tone-registration { --admin-nav-accent: var(--admin-registration); --admin-nav-soft: var(--admin-registration-soft); --admin-nav-border: var(--admin-registration-border); }
.admin-nav-tone-lottery,
.admin-nav-tone-voice { --admin-nav-accent: var(--admin-voice); --admin-nav-soft: var(--admin-voice-soft); --admin-nav-border: var(--admin-voice-border); }
.admin-nav-tone-exam { --admin-nav-accent: var(--admin-exam); --admin-nav-soft: var(--admin-exam-soft); --admin-nav-border: var(--admin-exam-border); }
.admin-nav-tone-idea { --admin-nav-accent: var(--admin-idea); --admin-nav-soft: var(--admin-idea-soft); --admin-nav-border: var(--admin-idea-border); }
.admin-nav-tone-skill { --admin-nav-accent: var(--admin-skill); --admin-nav-soft: var(--admin-skill-soft); --admin-nav-border: var(--admin-skill-border); }
.admin-nav-tone-survey { --admin-nav-accent: var(--admin-survey); --admin-nav-soft: var(--admin-survey-soft); --admin-nav-border: var(--admin-survey-border); }
.admin-nav-tone-people { --admin-nav-accent: #41686d; --admin-nav-soft: #edf4f3; --admin-nav-border: #cfdfdd; }

.admin-sidebar-meta {
    display: grid;
    gap: 2px;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--admin-border);
    color: #596b70;
    font-size: 12px;
}

.admin-workspace {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin-left: var(--admin-sidebar-width);
}

.admin-workspace-bar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: grid;
    min-height: var(--admin-bar-height);
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--admin-border);
}

.admin-activity-context {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.admin-context-label {
    flex: 0 0 auto;
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-activity-context :is(strong, .admin-current-activity-link) {
    overflow: hidden;
    max-width: min(42vw, 520px);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.admin-current-activity-link {
    min-width: 0;
    color: var(--admin-ink);
    font-weight: 700;
    text-decoration: none;
}

.admin-current-activity-link:hover,
.admin-current-activity-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-shell-page :is(main, section, article, div)[id] {
    scroll-margin-top: calc(var(--admin-bar-height) + var(--admin-section-gap));
}

.admin-status-chip,
.admin-batch-label {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
}

.admin-status-chip {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid transparent;
    background: var(--admin-teal-soft);
    color: #0c665f;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.admin-status-chip.status-ended,
.admin-status-chip.status-archived,
.admin-status-chip.status-closed,
.admin-status-chip.status-paused,
.admin-status-chip.status-cancelled {
    background: #edf0f0;
    color: #596b70;
}

.admin-status-chip.status-draft,
.admin-status-chip.status-upcoming,
.admin-status-chip.status-unpublished,
.admin-status-chip.status-pending,
.admin-status-chip.status-module-pending {
    background: #fff6df;
    color: #8d6113;
}

.admin-status-chip.status-open,
.admin-status-chip.status-active,
.admin-status-chip.status-ready,
.admin-status-chip.status-module-ready {
    background: #eaf7f1;
    color: #28705b;
}

.admin-status-chip.status-processing,
.admin-status-chip.status-reviewing,
.admin-status-chip.status-module-configured {
    background: #eef3f8;
    color: #375f7b;
}

.admin-batch-label {
    border: 1px solid #d8e1e0;
    color: #52666b;
}

.admin-activity-switcher {
    position: relative;
}

.admin-activity-switcher > summary {
    min-width: 84px;
    padding: 8px 11px;
    border: 1px solid var(--admin-border);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    list-style: none;
    color: #40565c;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.admin-activity-switcher > summary::-webkit-details-marker {
    display: none;
}

.admin-switcher-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 14px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    box-shadow: 0 16px 38px rgba(20, 45, 51, 0.15);
}

.admin-switcher-list {
    display: grid;
    max-height: 320px;
    gap: 4px;
    margin: 10px 0;
    overflow-y: auto;
}

.admin-switcher-list form,
.admin-user-area form {
    margin: 0;
}

.admin-switcher-list button {
    display: grid;
    width: 100%;
    gap: 3px;
    padding: 9px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--admin-ink);
    cursor: pointer;
    text-align: left;
}

.admin-switcher-list button:hover:not(:disabled) {
    background: #f1f6f5;
}

.admin-switcher-list button:disabled {
    background: var(--admin-red-soft);
    cursor: default;
}

.admin-switcher-list small {
    color: var(--admin-muted);
}

.admin-switcher-panel > a {
    color: var(--admin-red);
    font-size: 13px;
    font-weight: 700;
}

.admin-user-area {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 14px;
    border-left: 1px solid var(--admin-border);
    font-size: 13px;
}

.admin-user-area button {
    padding: 6px 9px;
    border: 0;
    background: transparent;
    color: var(--admin-muted);
    cursor: pointer;
}

.admin-shell-page .admin-content {
    width: min(100%, var(--admin-content-max));
    flex: 1;
    margin: 0 auto;
    padding: 26px clamp(20px, 2.2vw, 32px) 42px;
}

.admin-shell-page .page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-shell-page .page-head > :first-child {
    min-width: 0;
}

.admin-shell-page .page-head :is(h1, p) {
    overflow-wrap: anywhere;
}

.admin-shell-page .page-head > .actions {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
}

.admin-shell-page .page-head h1 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 7px;
    color: var(--admin-ink);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.admin-shell-page .page-head h1::before {
    width: 3px;
    height: 0.95em;
    flex: 0 0 3px;
    border-radius: 2px;
    background: var(--admin-accent);
    content: "";
}

.admin-shell-page .panel,
.admin-shell-page .danger-zone,
.admin-shell-page .module-card {
    border-color: var(--admin-border);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(20, 45, 51, 0.035);
}

.admin-shell-page .panel {
    padding: var(--admin-panel-padding);
}

.admin-shell-page .admin-content > .panel,
.admin-shell-page .admin-content > .danger-zone,
.admin-shell-page .admin-content > .grid,
.admin-shell-page .admin-content > .admin-dashboard-grid,
.admin-shell-page .admin-content > .admin-detail-grid,
.admin-shell-page .admin-content > .admin-record-detail {
    margin-bottom: var(--admin-section-gap);
}

.admin-shell-page .admin-content > :last-child {
    margin-bottom: 0;
}

.admin-shell-page .grid,
.admin-dashboard-grid,
.admin-dashboard-side,
.admin-detail-grid {
    gap: var(--admin-section-gap);
}

.admin-shell-page .button {
    min-height: 40px;
    border-radius: 5px;
    padding-inline: 15px;
    font-size: 14px;
    white-space: nowrap;
}

.admin-shell-page .button:not(.secondary):not(.danger) {
    background: var(--admin-accent);
}

.admin-shell-page .button:not(.secondary):not(.danger):hover {
    filter: brightness(0.92);
}

.admin-shell-page .button.danger {
    background: #b42318;
}

.admin-shell-page :focus-visible {
    outline-color: var(--admin-accent-ring);
}

.admin-shell-page .button.small-button,
.admin-shell-page .admin-row-action {
    min-height: var(--admin-row-action-height);
    padding-inline: 11px;
    font-size: 13px;
}

.admin-shell-page .admin-row-action {
    min-width: 64px;
}

.admin-shell-page .admin-filter-action {
    min-width: 72px;
    min-height: var(--admin-control-height);
    padding-inline: 16px;
    font-size: 14px;
}

.admin-shell-page .current-activity-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--admin-red);
}

.admin-shell-page .current-activity-card::after {
    position: absolute;
    inset: 0 0 auto auto;
    width: 34%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(19, 124, 114, 0.55));
    content: "";
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: var(--admin-section-gap);
    align-items: start;
}

.admin-dashboard-side {
    display: grid;
    align-content: start;
    gap: var(--admin-section-gap);
}

.admin-current-overview {
    margin-bottom: 18px;
}

.admin-current-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.admin-current-heading h2 {
    margin: 5px 0 7px;
    color: var(--admin-ink);
    font-size: 24px;
    line-height: 1.3;
}

.admin-current-heading p {
    max-width: 780px;
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.65;
    white-space: pre-line;
}

.admin-eyebrow {
    color: var(--admin-red);
    font-size: 12px;
    font-weight: 800;
}

.admin-overview-metrics {
    display: grid;
    grid-template-columns: repeat(var(--metric-count, 4), minmax(0, 1fr));
    margin-top: 22px;
    border-top: 1px solid var(--admin-border);
}

.admin-overview-metrics > div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 18px 18px 2px;
    border-left: 1px solid var(--admin-border);
}

.admin-overview-metrics > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.admin-overview-metrics span,
.admin-overview-metrics small {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-overview-metrics strong {
    color: var(--admin-ink);
    font-size: 27px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.admin-module-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.admin-module-entry {
    padding-left: 13px;
    border-left: 3px solid var(--admin-border);
}

.admin-module-entry.module-registration {
    border-left-color: var(--admin-registration);
}

.admin-module-entry.module-lottery {
    border-left-color: var(--admin-red);
}

.admin-module-entry.module-exam {
    border-left-color: var(--admin-exam);
}

.admin-text-link {
    color: var(--admin-accent);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.admin-text-link:hover {
    text-decoration: underline;
}

.admin-module-tabs {
    display: flex;
    gap: 4px;
    margin: -4px 0 20px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-module-tabs a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 5px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.admin-module-tabs a:hover {
    color: var(--admin-ink);
    background: #f0f4f3;
}

.admin-module-tabs a.is-active {
    color: #fff;
    background: var(--admin-accent);
}

.admin-section-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-section-intro h2,
.admin-section-intro p {
    margin: 0;
}

.admin-shell-page .section-title {
    gap: 14px;
    margin-bottom: 16px;
}

.admin-shell-page .section-title h2 {
    color: var(--admin-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-shell-page .stat strong {
    max-width: 100%;
    font-size: 42px;
    overflow-wrap: anywhere;
}

.admin-shell-page .section-title :is(.admin-status-chip, .admin-type-chip, .admin-value-chip, .admin-role-chip) {
    font-size: 12px;
    font-weight: 700;
}

.admin-shell-page .field {
    font-size: 14px;
    font-weight: 600;
}

.admin-shell-page .field input:not([type="checkbox"]):not([type="radio"]),
.admin-shell-page .field select {
    height: var(--admin-control-height);
}

.admin-shell-page .field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    font-size: 14px;
    font-weight: 400;
}

.admin-shell-page .data-table th,
.admin-shell-page .data-table td {
    padding: 12px 11px;
    vertical-align: middle;
    line-height: 1.5;
}

.admin-shell-page .data-table th {
    background: #f8faf9;
    color: #6a797d;
    font-size: 13px;
    font-weight: 600;
}

/* Shared edit surfaces preserve list context while keeping forms focused. */
.admin-surface {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(600px, calc(100vw - 40px));
    height: fit-content;
    max-width: none;
    max-height: min(820px, calc(100dvh - 40px));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--admin-ink);
    box-shadow: 0 24px 70px rgba(20, 38, 43, 0.22);
    transform: translate(-50%, -50%);
}

.admin-surface::backdrop {
    background: rgba(20, 35, 40, 0.42);
    backdrop-filter: blur(1px);
}

.admin-surface--wide {
    width: min(820px, calc(100vw - 48px));
}

.admin-surface-shell {
    display: flex;
    min-height: 0;
    max-height: inherit;
    flex-direction: column;
}

.admin-surface-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-surface-header h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.admin-surface-header p {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.5;
}

.admin-surface-close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--admin-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.admin-surface-close:hover {
    background: #f1f4f3;
    color: var(--admin-ink);
}

body.admin-shell-page .confirm-dialog {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(460px, calc(100vw - 40px));
    height: fit-content;
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--admin-ink);
    box-shadow: 0 24px 70px rgba(20, 38, 43, 0.24);
    transform: translate(-50%, -50%);
}

body.admin-shell-page .confirm-dialog::backdrop {
    background: rgba(20, 35, 40, 0.46);
    backdrop-filter: blur(1px);
}

.admin-confirm-dialog .dialog-panel p {
    margin-bottom: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.admin-confirm-dialog:not(.is-danger) .dialog-icon {
    background: #edf3f1;
    color: var(--admin-ink);
}

.admin-confirm-dialog.is-notice .dialog-actions {
    grid-template-columns: 1fr;
}

.admin-surface-body {
    min-height: 0;
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-surface-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.admin-surface-status-row {
    justify-content: flex-start;
    margin-bottom: 18px;
}

.admin-surface .exam-candidate-editor {
    margin: 0;
    border: 0;
}

.admin-surface [data-activity-create] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.admin-surface [data-activity-create] > .admin-surface-actions {
    grid-column: 1 / -1;
}

.admin-surface-sections { display: grid; gap: 0; }
.admin-surface-sections > section {
    padding: 0 0 24px;
    border-bottom: 1px solid var(--admin-border);
}
.admin-surface-sections > section + section { padding-top: 24px; }
.admin-surface-sections > section:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-surface-sections h3 { margin: 0; font-size: 16px; font-weight: 600; }

.admin-disclosure { padding: 0 !important; }
.admin-disclosure > summary {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px var(--admin-panel-padding);
    cursor: pointer;
    list-style: none;
}
.admin-disclosure > summary::-webkit-details-marker { display: none; }
.admin-disclosure > summary span:first-child { display: grid; gap: 3px; }
.admin-disclosure > summary strong { font-size: 16px; font-weight: 600; }
.admin-disclosure > summary small { color: var(--admin-muted); font-size: 12px; }
.admin-disclosure[open] > summary { border-bottom: 1px solid var(--admin-border); }
.admin-disclosure[open] > summary > span:last-child { transform: rotate(180deg); }
.admin-disclosure > form { padding: var(--admin-panel-padding); }

.admin-shell-page .data-table tbody tr {
    transition: background-color 120ms ease;
}

.admin-shell-page .data-table tbody tr:hover td {
    background-color: #fafcfc;
}

.admin-shell-page .table-wrap {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.admin-shell-page .table-actions {
    gap: 6px;
}

.admin-shell-page .table-actions > form {
    display: inline-flex;
}

.admin-shell-page .activity-table .table-actions {
    flex-wrap: nowrap;
    align-items: center;
}

.admin-shell-page .activity-table .table-actions > form {
    align-items: center;
}

.admin-shell-page .activity-table .admin-row-action {
    height: var(--admin-row-action-height);
    line-height: 1;
}

.admin-shell-page .pagination a {
    display: inline-flex;
    min-height: var(--admin-row-action-height);
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--admin-border);
    border-radius: 5px;
    background: var(--admin-surface);
    color: var(--admin-accent);
    text-decoration: none;
}

.admin-shell-page .pagination a:hover {
    border-color: var(--admin-accent-border);
    background: var(--admin-accent-soft);
}

.admin-shell-page .module-meta span,
.admin-shell-page .fixed-fields span {
    background: var(--admin-accent-soft);
    color: var(--admin-accent);
}

.admin-shell-page .confirm-check input {
    accent-color: var(--admin-accent);
}

.admin-shell-page .stats .stat {
    border-top-color: var(--admin-accent);
}

.admin-tone-voice .idea-summary-strip,
.admin-tone-idea .idea-summary-strip,
.admin-tone-skill .idea-summary-strip {
    border-top: 3px solid var(--admin-accent);
}

.admin-tone-voice .idea-summary-strip strong,
.admin-tone-idea .idea-summary-strip strong,
.admin-tone-skill .idea-summary-strip strong {
    color: var(--admin-accent);
}

.admin-section-intro p {
    margin-top: 5px;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-shell-page .employee-import-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell-page .employee-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell-page .employee-edit-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(190px, 0.8fr) minmax(240px, 1fr);
    gap: 14px;
}

.admin-shell-page .employee-status-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-border);
}

.admin-shell-page .employee-organization-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 140px 180px auto;
    align-items: end;
    gap: 14px;
}

.admin-shell-page .employee-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.35fr) minmax(130px, 0.35fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-shell-page .audit-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.35fr) auto;
}

.admin-shell-page .account-password-panel {
    max-width: 720px;
}

.admin-shell-page .employee-import-apply {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--admin-border);
}

.admin-shell-page .employee-table strong {
    color: var(--admin-ink);
}

.admin-shell-page .employee-change-panel {
    margin-top: 18px;
}

.activity-icon-picker {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.activity-icon-picker legend {
    margin-bottom: 4px;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 700;
}

.activity-icon-picker .field-help {
    margin: 0 0 10px;
}

.activity-icon-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
}

.activity-icon-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.activity-icon-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.activity-icon-choice {
    min-height: 66px;
    padding: 9px 6px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    background: #fff;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}

.activity-icon-choice img {
    width: 22px;
    height: 22px;
    opacity: .72;
}

.activity-icon-option > input:checked + .activity-icon-choice {
    border-color: rgba(169, 37, 44, .5);
    background: #fff7f6;
    color: var(--admin-red);
    box-shadow: inset 0 0 0 1px rgba(169, 37, 44, .08);
}

.activity-icon-option > input:focus-visible + .activity-icon-choice {
    outline: 2px solid rgba(169, 37, 44, .3);
    outline-offset: 2px;
}

.activity-icon-option > input:disabled + .activity-icon-choice {
    cursor: not-allowed;
    opacity: .55;
}

.admin-recent-list {
    display: grid;
    gap: 0;
}

.admin-recent-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 0 12px 17px;
    border-bottom: 1px solid #e6ecea;
    color: inherit;
    text-decoration: none;
}

.admin-recent-item:last-child {
    border-bottom: 0;
}

.admin-recent-item strong,
.admin-recent-item small {
    display: block;
}

.admin-recent-item small {
    margin-top: 3px;
    color: var(--admin-muted);
}

.admin-recent-item > .admin-status-chip {
    width: auto;
    min-width: 0;
    align-self: start;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.35;
}

.admin-shell-page .audit-panel {
    min-width: 0;
}

.admin-shell-page .audit-table {
    min-width: 920px;
    table-layout: fixed;
}

.admin-shell-page .audit-table th,
.admin-shell-page .audit-table td {
    vertical-align: middle;
    line-height: 1.55;
}

.admin-shell-page .audit-table .audit-time { width: 132px; }
.admin-shell-page .audit-table .audit-action { width: 118px; }
.admin-shell-page .audit-table .audit-activity { width: 150px; }
.admin-shell-page .audit-table .audit-admin { width: 94px; }
.admin-shell-page .audit-table .audit-ip { width: 138px; }
.admin-shell-page .audit-table td:nth-child(3),
.admin-shell-page .audit-table td:nth-child(4) {
    overflow-wrap: anywhere;
}

.admin-activity-filters {
    display: grid;
    grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(130px, 0.5fr)) auto;
    gap: 12px;
    align-items: end;
}

.admin-activity-name-cell {
    min-width: 240px;
}

.admin-activity-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-activity-name-wrap > span:last-child {
    min-width: 0;
}

.admin-activity-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: #f7f9f8;
}

.admin-activity-icon img {
    width: 18px;
    height: 18px;
    opacity: .72;
}

.admin-activity-name-cell a {
    color: var(--admin-ink);
    font-weight: 750;
    text-decoration: none;
}

.admin-activity-name-cell a:hover {
    color: var(--admin-red);
}

.admin-activity-name-cell small {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
}

.admin-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    border-left: 4px solid var(--admin-red);
}

.admin-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-detail-meta span {
    padding: 5px 8px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    color: #52666b;
    font-size: 13px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.55fr);
    gap: var(--admin-section-gap);
    margin-top: 18px;
}

.admin-module-entry-list {
    display: grid;
    gap: 0;
}

.admin-module-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 12px 18px;
    border-bottom: 1px solid #e6ecea;
}

.admin-module-entry:last-child {
    border-bottom: 0;
}

.admin-module-entry p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-footer {
    padding: 16px 30px 22px;
    color: #839195;
    font-size: 12px;
    text-align: center;
}

.idea-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
    padding: 0;
}

.idea-summary-strip > div {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border-left: 1px solid var(--admin-border);
}

.idea-summary-strip > div:first-child { border-left: 0; }
.idea-summary-strip span { color: var(--admin-muted); font-size: 13px; }
.idea-summary-strip strong { color: var(--admin-ink); font-size: 26px; line-height: 1; }
.idea-showcase-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.idea-showcase-setting > div { display: grid; gap: 5px; min-width: 0; }
.idea-showcase-setting > div strong { color: var(--admin-ink); font-size: 15px; }
.idea-showcase-setting > div span { color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.idea-showcase-setting form { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.admin-switch { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--admin-muted); font-size: 13px; cursor: pointer; }
.admin-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.admin-switch-track { position: relative; width: 42px; height: 24px; border-radius: 12px; background: #c9d3d0; transition: background .15s ease; }
.admin-switch-track::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23,49,58,.2); content: ""; transition: transform .15s ease; }
.admin-switch input:checked + .admin-switch-track { background: var(--admin-idea); }
.admin-switch input:checked + .admin-switch-track::after { transform: translateX(18px); }
.admin-switch input:focus-visible + .admin-switch-track { outline: 3px solid rgba(40,112,91,.18); outline-offset: 2px; }
.voice-content-cell { min-width: 280px; max-width: 520px; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.voice-status-attention { background: #eef3f8; color: #375f7b; }
.voice-status-responded { background: #e6f2ed; color: #28705b; }
.voice-filters { grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(125px, .55fr)) auto; }

.idea-filters { grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 0.5fr)) auto; }
.idea-title-cell { min-width: 230px; }
.idea-title-cell strong,
.idea-title-cell small { display: block; }
.idea-title-cell small { max-width: 420px; margin-top: 5px; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.idea-status-pending { color: #9b5a12; background: #fff7e8; }
.idea-status-reviewing { color: #176b73; background: #e9f7f6; }
.idea-status-adopted { color: #18734b; background: #eaf7ef; }
.idea-status-closed { color: #607075; background: #eef2f2; }

.admin-type-chip,
.admin-value-chip,
.admin-role-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    background: #f7f9f8;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.admin-role-chip.is-company { border-color: var(--admin-role-company-border); background: var(--admin-role-company-soft); color: var(--admin-role-company); }
.admin-role-chip.is-unit { border-color: var(--admin-role-unit-border); background: var(--admin-role-unit-soft); color: var(--admin-role-unit); }
.admin-role-chip.is-employee { border-color: var(--admin-role-employee-border); background: var(--admin-role-employee-soft); color: var(--admin-role-employee); }
.admin-role-chip.is-neutral { border-color: #dce3e1; background: #f2f5f4; color: #607075; }

.status-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #cfe3da;
    border-radius: 4px;
    background: #eef7f3;
    color: #28705b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.status-badge.closed,
.status-badge.inactive,
.status-badge.is-inactive,
.status-badge.status-inactive {
    border-color: #dce3e1;
    background: #f2f5f4;
    color: #596b70;
}

.admin-primary-cell-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-primary-cell-heading > :first-child { min-width: 0; }
.admin-new-count {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    margin: 0;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9464d;
    border-radius: 4px;
    color: #a9252c;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    transition: opacity .16s ease;
}
.activity-table .admin-new-count { margin-left: 6px; }
.admin-new-count:hover { background: #fff5f4; }
.admin-new-count:focus-visible { outline: 2px solid #a9252c; outline-offset: 3px; }
.admin-new-count.is-cleared { opacity: 0; visibility: hidden; pointer-events: none; }
@media (pointer: coarse) {
    .admin-new-count { min-width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .admin-new-count { transition: none; }
}

.admin-type-chip.is-voice,
.admin-type-chip.voice-mode-identified { border-color: var(--admin-voice-border); background: var(--admin-voice-soft); color: var(--admin-voice); }
.admin-type-chip.is-idea,
.admin-type-chip.idea-consented,
.admin-type-chip.idea-published { border-color: var(--admin-idea-border); background: var(--admin-idea-soft); color: var(--admin-idea); }
.admin-type-chip.is-skill { border-color: var(--admin-skill-border); background: var(--admin-skill-soft); color: var(--admin-skill); }
.admin-type-chip.voice-mode-anonymous,
.admin-type-chip.is-muted { border-color: #dce3e1; background: #f2f5f4; color: #607075; }
.admin-type-chip.idea-featured { border-color: #ead8ad; background: #fff8e8; color: #8b641e; }
.admin-badge-stack,
.admin-record-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-badge-stack { max-width: 260px; }

.admin-record-detail { min-width: 0; }
.admin-record-title { align-items: flex-end; margin-bottom: 16px; }
.admin-record-title > div { min-width: 0; }
.admin-record-title h2 { margin: 0 0 3px; font-size: 24px; line-height: 1.35; }
.admin-record-title > div > span { color: var(--admin-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-record-title .admin-text-link { margin-bottom: 3px; }

.admin-record-context {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: var(--admin-section-gap);
    margin-bottom: 16px;
}
.admin-record-context-main { min-width: 0; }
.admin-record-context .admin-record-tags { margin-top: 10px; }

.admin-record-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: var(--admin-section-gap);
    align-items: start;
}

.admin-record-layout > .admin-record-card { align-self: start; }

.admin-identity-summary {
    display: grid;
    grid-template-columns: minmax(130px, .6fr) minmax(150px, .75fr) minmax(220px, 1.4fr);
    gap: 12px 24px;
    padding: 0 4px 14px;
    border-bottom: 1px solid var(--admin-border);
}
.admin-identity-summary.admin-identity-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-identity-summary div { display: grid; gap: 3px; min-width: 0; }
.admin-identity-summary span { color: var(--admin-muted); font-size: 12px; }
.admin-identity-summary strong { color: var(--admin-ink); font-size: 14px; overflow-wrap: anywhere; }
.admin-identity-summary.is-anonymous {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--admin-muted);
    font-size: 13px;
}
.admin-identity-summary.is-anonymous strong { color: var(--admin-voice); white-space: nowrap; }
.admin-identity-summary.is-employee { border-bottom-color: var(--admin-role-employee-border); }
.admin-identity-summary.is-unit { border-bottom-color: var(--admin-role-unit-border); }

.admin-record-card {
    min-width: 0;
    padding: var(--admin-panel-padding);
    border: 1px solid var(--admin-border);
    border-top: 3px solid var(--admin-accent);
    border-radius: 7px;
    background: var(--admin-surface);
    box-shadow: 0 2px 8px rgba(20, 45, 51, 0.035);
}
.admin-record-card-heading { min-height: 54px; margin-bottom: 18px; display: grid; align-content: start; }
.admin-record-card-heading span { display: block; margin-bottom: 4px; color: var(--admin-accent); font-size: 12px; font-weight: 700; }
.admin-record-card-heading h3 { margin: 0; color: var(--admin-ink); font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.admin-role-employee-card { border-top-color: var(--admin-role-employee); }
.admin-role-employee-card .admin-record-card-heading span { color: var(--admin-role-employee); }
.admin-role-company-card { border-top-color: var(--admin-role-company); }
.admin-role-company-card .admin-record-card-heading span { color: var(--admin-role-company); }
.admin-record-fields { margin: 0; }
.admin-record-fields > div { padding: 16px 0; border-top: 1px solid var(--admin-border); }
.admin-record-fields > div:first-child { padding-top: 0; border-top: 0; }
.admin-record-fields > div:last-child { padding-bottom: 0; }
.admin-record-fields dt { margin-bottom: 7px; color: var(--admin-muted); font-size: 13px; font-weight: 700; }
.admin-record-fields dd { margin: 0; color: var(--admin-ink); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-process-card { gap: var(--admin-section-gap); align-content: start; }
.admin-process-card > .admin-record-card-heading { margin-bottom: 0; }
.admin-process-card > .button { width: 100%; margin: 0; }
.admin-form-section { display: grid; gap: 16px; min-width: 0; }
.admin-form-section + .admin-form-section { padding-top: var(--admin-section-gap); border-top: 1px solid var(--admin-border); }
.admin-form-section h4 { margin: 0; color: var(--admin-ink); font-size: 14px; }
.admin-form-section > .field,
.admin-form-section > .admin-policy-note { margin: 0; }
.admin-process-card .field { align-content: start; line-height: 1.5; }
.admin-process-card .field > :is(input, select, textarea) { margin: 0; }
.admin-policy-note,
.admin-current-feedback { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--admin-accent); background: var(--admin-accent-soft); color: var(--admin-muted); font-size: 12px; line-height: 1.65; }
.admin-current-feedback span { display: block; margin-bottom: 4px; color: var(--admin-accent); font-weight: 700; }
.admin-current-feedback p { margin: 0; color: var(--admin-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-record-history { margin-top: var(--admin-section-gap); }
.admin-record-history .section-title h3 { margin: 0; color: var(--admin-ink); font-size: 17px; }

.skill-filters { grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(125px, .55fr)) auto; }
.skill-title-cell { min-width: 230px; }
.skill-title-cell strong,
.skill-title-cell small { display: block; }
.skill-title-cell small { max-width: 380px; margin-top: 5px; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.skill-status-pending { color: #9b5a12; background: #fff7e8; }
.skill-status-filed { color: #375f7b; background: #eef3f8; }
.skill-status-confirmed { color: #17634d; background: #eaf7ef; }
.skill-status-rejected { color: #9a3439; background: #faecee; }
.skill-status-superseded { color: #607075; background: #eef2f2; }
.skill-status-revoked,
.skill-status-cancelled { color: #607075; background: #eef2f2; }
.skill-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 10px; margin-top: 8px; }
.skill-evidence-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--admin-border); border-radius: 6px; }
.skill-review-actions { flex-wrap: wrap; }
.skill-review-actions .button { flex: 1 1 150px; }

.admin-sidebar-backdrop {
    display: none;
}

.admin-auth-page {
    background-color: var(--admin-canvas);
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 47px, rgba(23, 49, 57, 0.025) 48px);
}

.admin-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--admin-ink);
    font-weight: 800;
}

.admin-auth-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 1180px) {
    .admin-batch-label {
        display: none;
    }

    .admin-dashboard-grid,
    .admin-detail-grid,
    .admin-record-context,
    .admin-record-layout {
        grid-template-columns: 1fr;
    }

    .admin-activity-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell-page .employee-edit-grid,
    .admin-shell-page .employee-organization-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .admin-current-heading {
        display: grid;
    }

    .admin-overview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-overview-metrics > div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .admin-shell-page .employee-stats,
    .admin-shell-page .employee-import-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .idea-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .idea-summary-strip > div:nth-child(3) { border-left: 0; }
    .idea-summary-strip > div:nth-child(n+3) { border-top: 1px solid var(--admin-border); }

    .idea-showcase-setting,
    .idea-showcase-setting form { align-items: stretch; }
    .idea-showcase-setting { flex-direction: column; }
    .idea-showcase-setting form { justify-content: space-between; }

    .admin-shell-page .employee-toolbar,
    .admin-shell-page .audit-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(130px, 0.45fr);
    }

    .admin-identity-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .admin-overview-metrics {
        grid-template-columns: 1fr;
    }

    .admin-overview-metrics > div,
    .admin-overview-metrics > div:nth-child(odd) {
        padding: 13px 0;
        border-top: 1px solid var(--admin-border);
        border-left: 0;
    }

    .admin-overview-metrics > div:first-child {
        border-top: 0;
    }
}

@media (max-width: 960px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .admin-nav-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop {
        position: fixed;
        z-index: 35;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(14, 34, 39, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .admin-nav-open .admin-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-sidebar-close {
        display: grid;
        width: 32px;
        height: 32px;
        margin-left: auto;
        place-items: center;
        border: 0;
        background: transparent;
        color: var(--admin-muted);
        font-size: 24px;
    }

    .admin-workspace {
        margin-left: 0;
    }

    .admin-workspace-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 10px 16px;
    }

    .admin-menu-button {
        display: grid;
        width: 36px;
        height: 36px;
        place-content: center;
        gap: 4px;
        border: 1px solid var(--admin-border);
        border-radius: 5px;
        background: #fff;
    }

    .admin-menu-button span {
        width: 16px;
        height: 2px;
        background: var(--admin-ink);
    }

    .admin-context-label,
    .admin-user-area span {
        display: none;
    }

    .admin-activity-context :is(strong, .admin-current-activity-link) {
        max-width: 42vw;
    }

    .admin-user-area {
        display: none;
    }

    .admin-sidebar-logout {
        display: block;
    }
}

@media (max-width: 640px) {
    .admin-workspace-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
    }

    .admin-workspace-bar .admin-status-chip,
    .admin-workspace-bar .admin-batch-label {
        display: none;
    }

    .admin-recent-item > .admin-status-chip {
        display: inline-flex;
    }

    .admin-activity-context :is(strong, .admin-current-activity-link) {
        max-width: 43vw;
        font-size: 13px;
    }

    .admin-activity-switcher > summary {
        min-width: 68px;
        padding-inline: 8px;
    }

    .admin-shell-page .admin-content {
        padding: 20px 14px 32px;
    }

    .admin-shell-page .page-head h1 { font-size: 22px; }

    .admin-shell-page .page-head {
        flex-wrap: wrap;
    }

    .admin-surface,
    .admin-surface--wide {
        width: calc(100% - 24px);
        height: fit-content;
        max-height: calc(100dvh - 24px);
        border-radius: 8px;
    }

    .admin-surface-shell { height: auto; max-height: inherit; }
    .admin-surface-header { padding: 18px; }
    .admin-surface-body { padding: 18px; }
    .admin-surface-close { width: 44px; height: 44px; flex-basis: 44px; }

    body.admin-shell-page .confirm-dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }

    .admin-shell-page .page-head > .actions {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-shell-page .page-head > .actions .button {
        width: auto;
    }

    .admin-activity-filters,
    .admin-detail-hero,
    .admin-surface [data-activity-create] {
        grid-template-columns: 1fr;
    }

    .activity-icon-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .idea-summary-strip { grid-template-columns: 1fr 1fr; }

    .admin-detail-hero .actions,
    .admin-surface [data-activity-create] > * {
        grid-column: auto;
    }

    .admin-shell-page .employee-edit-grid,
    .admin-shell-page .employee-organization-form,
    .admin-shell-page .employee-toolbar,
    .admin-shell-page .audit-toolbar,
    .admin-shell-page .employee-status-form {
        grid-template-columns: 1fr;
    }

    .admin-shell-page .employee-import-apply {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-record-title { align-items: flex-start; }
    .admin-record-title .admin-text-link { margin-top: 6px; }
    .admin-identity-summary,
    .admin-identity-summary.admin-identity-four { grid-template-columns: 1fr; }
    .admin-identity-summary.is-anonymous { align-items: flex-start; flex-direction: column; gap: 3px; }
    .admin-record-tags .admin-status-chip { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-sidebar,
    .admin-sidebar-backdrop {
        transition: none;
    }
}
.member-account-table { min-width: 900px; }
.member-account-table th:first-child { width: 72px; }
.member-account-table th:nth-child(2) { min-width: 180px; }
.member-account-table th:nth-child(5) { min-width: 150px; }
.member-account-table th:last-child { width: 92px; min-width: 92px; }

.media-storage-panel > form { margin-top: 16px; }
.admin-shell-page .exam-setting-grid .confirm-check {
    display: flex;
    align-items: center;
    min-height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: #fff;
}
.admin-shell-page .exam-setting-grid .confirm-check input { margin: 0; }
.admin-shell-page .exam-import-file-form {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--admin-border);
}
.admin-shell-page .exam-import-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.admin-shell-page .exam-import-tabs .button { min-width: 112px; }
.admin-shell-page .exam-import-tabs .button.is-active { border-color: var(--admin-exam); background: #fff7e8; color: #8d6113; }
.admin-shell-page [data-exam-import-panel][hidden] { display: none; }
.admin-shell-page .exam-import-tabs ~ .exam-import-file-form { margin-top: 0; padding-top: 0; border-top: 0; }
.admin-shell-page .exam-import-correction {
    margin: 18px 0;
    border-top: 1px solid var(--admin-border);
    border-bottom: 1px solid var(--admin-border);
}
.admin-shell-page .exam-import-correction summary {
    padding: 14px 0;
    color: var(--admin-ink);
    font-weight: 700;
    cursor: pointer;
}
.admin-shell-page .exam-import-correction .form-stack { padding-bottom: 18px; }
.admin-shell-page .exam-answer-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.admin-shell-page .exam-answer-checks .confirm-check {
    min-width: min(100%, 180px);
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
}
.admin-shell-page .exam-answer-choice { flex: 1 1 220px; }
.admin-shell-page .exam-answer-choice span { min-width: 0; overflow-wrap: anywhere; }
.admin-shell-page .exam-answer-fieldset { display: grid; gap: 10px; }
.admin-shell-page .exam-question-editor { overscroll-behavior: contain; }
.admin-shell-page .exam-admin-question .table-actions form { margin: 0; }
.admin-shell-page .exam-cycle-panel .field-help { margin-bottom: 18px; }
.admin-shell-page .exam-cycle-panel .admin-status-chip {
    display: inline-flex;
    align-items: center;
    color: #0c665f;
}
.admin-shell-page .exam-cycle-panel .admin-status-chip.status-unpublished,
.admin-shell-page .exam-cycle-panel .admin-status-chip.status-upcoming {
    background: #fff6df;
    color: #8d6113;
}
.admin-shell-page .exam-cycle-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--admin-related-gap) var(--admin-section-gap);
}
.admin-shell-page .exam-cycle-copy-form {
    display: grid;
    width: 100%;
    max-width: 760px;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 10px;
    min-width: 0;
    margin: 0;
}
.admin-shell-page .exam-cycle-copy-form .field { margin: 0; }
.admin-shell-page .exam-cycle-copy-form .button,
.admin-shell-page .exam-cycle-end-form .button { white-space: nowrap; }
.admin-shell-page .exam-cycle-end-form {
    align-self: end;
    margin: 0;
}
.media-storage-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.media-storage-facts div { display: grid; gap: 3px; }
.media-storage-facts dt { color: var(--admin-muted); font-size: 12px; }
.media-storage-facts dd { margin: 0; color: var(--admin-ink); font-size: 14px; overflow-wrap: anywhere; }
.banner-admin-list { display: grid; }
.banner-admin-slot { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(360px, 1.28fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--admin-border); }
.banner-admin-slot:first-child { padding-top: 8px; }
.banner-admin-slot:last-child { padding-bottom: 0; border-bottom: 0; }
.banner-admin-preview { aspect-ratio: 2 / 1; overflow: hidden; display: grid; place-items: center; align-self: start; border: 1px solid var(--admin-border); border-radius: 6px; background: #f2f5f4; color: var(--admin-muted); font-size: 13px; }
.banner-admin-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; }
.banner-admin-editor { min-width: 0; }
.banner-slot-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.banner-slot-heading strong { font-size: 17px; }
.banner-slot-heading span { color: var(--admin-muted); font-size: 12px; }
.banner-slot-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.banner-slot-form .field:first-of-type { grid-column: 1 / -1; }
.banner-slot-form > .button { justify-self: start; }
.banner-clear-form { margin-top: 10px; }
.banner-effective-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.banner-effective-grid article { min-width: 0; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 6px; background: #fff; }
.banner-effective-grid img { width: 100%; aspect-ratio: 2 / 1; display: block; object-fit: cover; object-position: 50% 50%; }
.banner-effective-grid strong { display: block; padding: 10px 12px; font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }

.cache-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.cache-status-head h2 { margin: 0; color: var(--admin-ink); font-size: 19px; }
.cache-status-head p { margin: 7px 0 0; }
.cache-status-head .admin-status-chip { display: inline-flex; }

/* 角色语义：公司工会红、基层工会青、职工靛蓝；业务模块色仍用于业务类型。 */
.union-review-workflow { margin: 18px 0 22px; border-top: 3px solid var(--admin-role-company); }
.admin-shell-page .union-review-workflow { border-top-color: var(--admin-role-company); }
.union-review-workflow .section-title { align-items: center; }
.union-review-workflow .section-title h3 { margin: 0; font-size: 17px; }
.union-review-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.union-review-summary { margin-bottom: 12px; }
.union-review-action-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.5fr) auto; align-items: end; gap: 12px; }
.union-review-action-grid .field,
.union-review-takeover .field { margin: 0; }
.union-review-action-grid .button,
.union-review-takeover .button { min-height: var(--admin-control-height); margin: 0; white-space: nowrap; }
.union-review-takeover { margin-top: 12px; display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: end; gap: 12px; }
.admin-role-note { border-left-color: var(--role-color); background: var(--role-soft); }
.admin-role-note strong,
.admin-role-note span { display: block; }
.admin-role-note strong { margin-bottom: 4px; color: var(--role-color); font-size: 12px; }
.admin-role-note span { color: var(--admin-ink); font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.admin-role-note.is-company { --role-color: var(--admin-role-company); --role-soft: var(--admin-role-company-soft); }
.admin-role-note.is-unit { --role-color: var(--admin-role-unit); --role-soft: var(--admin-role-unit-soft); }
.admin-role-unit-panel { border-top: 3px solid var(--admin-role-unit); }
.admin-role-unit-panel .employee-toolbar { grid-template-columns: minmax(220px, 1fr) minmax(130px, .35fr) auto; }
.chair-assignment-table { min-width: 920px; }
.chair-assignment-table th:last-child,
.chair-assignment-table td:last-child { width: 188px; }
.chair-row-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.chair-row-actions form { margin: 0; }
.admin-readonly-field { display: grid; gap: 6px; min-height: 68px; padding: 12px 14px; border: 1px solid var(--admin-border); border-radius: 6px; background: #f8faf9; }
.admin-readonly-field span { color: var(--admin-muted); font-size: 12px; }
.admin-readonly-field strong { color: var(--admin-ink); font-size: 15px; overflow-wrap: anywhere; }
.union-review-history { margin-top: 16px; border-top: 1px solid var(--admin-border, #dce5e2); padding-top: 12px; }
.union-review-history summary { min-height: 40px; display: flex; align-items: center; color: #536a63; cursor: pointer; }

@media (max-width: 900px) {
    .union-review-action-grid,
    .union-review-takeover { grid-template-columns: 1fr; }
    .union-review-action-grid .button,
    .union-review-takeover .button { width: 100%; }
}

@media (max-width: 620px) {
    .union-review-workflow .section-title { align-items: flex-start; }
    .union-review-heading-actions { width: 100%; justify-content: flex-start; }
    .admin-record-card-heading { min-height: 0; }
}
.cache-metrics { margin-top: 22px; }
.cache-detail-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0 0;
    padding: 18px 0;
    border-top: 1px solid var(--admin-border);
    border-bottom: 1px solid var(--admin-border);
}
.cache-detail-list div { min-width: 0; padding: 0 18px; border-left: 1px solid var(--admin-border); }
.cache-detail-list div:first-child { padding-left: 0; border-left: 0; }
.cache-detail-list dt { color: var(--admin-muted); font-size: 12px; }
.cache-detail-list dd { margin: 6px 0 0; color: var(--admin-ink); font-size: 14px; line-height: 1.5; }
.cache-guidance { margin-top: 18px; padding: 15px 16px; border-left: 3px solid #ba821c; background: #fff8e8; color: #6f5016; }
.cache-guidance strong { display: block; font-size: 14px; }
.cache-guidance p { margin: 5px 0 0; font-size: 13px; line-height: 1.65; }
.cache-action-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.cache-action-row strong { color: var(--admin-ink); font-size: 14px; }
.cache-action-row p { margin: 5px 0 0; font-size: 13px; }
.cache-action-row form { flex: 0 0 auto; margin: 0; }
.cache-action-row .button:disabled { cursor: not-allowed; opacity: .52; }

.oss-storage-panel .cache-detail-list dd,
.oss-storage-panel .media-storage-facts dd,
.oss-storage-panel code { overflow-wrap: anywhere; }
.oss-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.oss-form-grid .field { min-width: 0; }
.oss-setting-toggles { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.oss-setting-toggles .confirm-check { display: flex; align-items: center; gap: 9px; }
.oss-setting-toggles input { margin: 0; }
.oss-location-facts,
.oss-probe-results { margin-top: 20px; }
.oss-storage-panel > .cache-action-row:first-child { margin-top: 0; }
@media (max-width: 680px) { .oss-form-grid { grid-template-columns: minmax(0, 1fr); } }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.field-error { margin: 7px 0 0; color: #a9252c; font-size: 12px; font-weight: 600; line-height: 1.5; }
.survey-template-list { display: flex; flex-wrap: wrap; gap: 10px; }
.survey-kind-tabs,
.survey-admin-tabs { gap: 24px; padding: 0; overflow: visible; border: 0; border-bottom: 1px solid var(--admin-border); border-radius: 0; background: transparent; }
.survey-kind-tabs { margin: 0 0 12px; }
.survey-admin-tabs { margin: 0 0 var(--admin-section-gap); }
.survey-kind-tabs a,
.survey-admin-tabs a { position: relative; min-height: 42px; display: inline-flex; align-items: center; padding: 0 1px; border-radius: 0; background: transparent; color: var(--admin-muted); }
.survey-kind-tabs a:hover,
.survey-admin-tabs a:hover { background: transparent; color: var(--admin-ink); }
.survey-kind-tabs a.is-active,
.survey-admin-tabs a.is-active { background: transparent; color: var(--admin-survey); }
.survey-kind-tabs a.is-active::after,
.survey-admin-tabs a.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--admin-survey); content: ""; }
.survey-template-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--admin-border); border-radius: 5px; background: #fff; color: var(--admin-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.survey-template-link:hover,
.survey-template-link.is-active { border-color: var(--admin-survey); background: var(--admin-survey-soft); color: var(--admin-survey); }
.survey-overview-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr); align-items: start; }
.survey-overview-description { max-width: 880px; margin: 0 0 20px; color: var(--admin-muted); font-size: 14px; line-height: 1.75; }
.survey-overview-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 18px 0; border-top: 1px solid var(--admin-border); border-bottom: 1px solid var(--admin-border); }
.survey-overview-facts > div { min-width: 0; padding: 0 18px; border-left: 1px solid var(--admin-border); }
.survey-overview-facts > div:first-child { padding-left: 0; border-left: 0; }
.survey-overview-facts dt { color: var(--admin-muted); font-size: 12px; }
.survey-overview-facts dd { margin: 6px 0 0; color: var(--admin-ink); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.survey-overview-facts dd strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.survey-overview-facts dd small { color: var(--admin-muted); }
.survey-overview-actions { margin-top: 20px; }
.survey-overview-actions form { display: inline-flex; margin: 0; }
.survey-code-panel { min-width: 0; }
.survey-settings-panel,
.vote-settings-panel,
.survey-results-panel,
.vote-results-panel { width: min(100%, 1040px); }
.survey-admin-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--admin-border); }
.survey-organization-field { margin: 0; padding: 16px; border: 1px solid var(--admin-border); }
.survey-organization-field legend { padding: 0 6px; color: var(--admin-ink); font-size: 13px; font-weight: 700; }
.survey-code-card { display: grid; justify-items: center; gap: 9px; padding: 18px; border: 1px solid var(--admin-survey-border); background: var(--admin-survey-soft); }
.survey-code-card img { width: min(210px, 100%); aspect-ratio: 1; display: block; object-fit: contain; }
.survey-code-card span { color: var(--admin-survey); font-size: 13px; font-weight: 700; }
.survey-question-builder { display: grid; gap: 16px; padding-top: 4px; }
.survey-builder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.survey-builder-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.survey-builder-head p { margin: 5px 0 0; color: var(--admin-muted); font-size: 13px; }
.survey-question-list { display: grid; gap: 12px; }
.survey-question-row { min-width: 0; display: grid; gap: 14px; padding: 16px; border: 1px solid var(--admin-border); border-radius: 6px; background: #fbfcfc; }
.survey-question-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.survey-question-heading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.survey-question-heading strong { font-size: 14px; }
.survey-question-index { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border: 1px solid var(--admin-survey-border); border-radius: 5px; background: var(--admin-survey-soft); color: var(--admin-survey); font-size: 12px; font-weight: 700; }
.registration-field-builder .survey-question-index { border-color: #d7dced; background: #f4f5fa; color: var(--admin-registration); }
.registration-field-row:focus-within { border-color: #aeb8d8; box-shadow: 0 0 0 3px rgba(61, 77, 142, .08); }
.survey-question-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.survey-question-fields { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(130px, .45fr) minmax(130px, .45fr); gap: 12px; }
.survey-question-fields .survey-question-options { grid-column: 1 / -1; }
.survey-bulk-editor { border: 1px solid var(--admin-border); border-radius: 6px; background: #fbfcfc; }
.survey-bulk-editor-body { display: grid; gap: 12px; padding: 18px; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.admin-form-actions--sticky { position: sticky; z-index: 5; bottom: 0; margin: 4px calc(var(--admin-panel-padding) * -1) calc(var(--admin-panel-padding) * -1); padding: 14px var(--admin-panel-padding); border-top: 1px solid var(--admin-border); background: rgba(255, 255, 255, .96); }
.survey-result-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.survey-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.survey-result-item { display: grid; align-content: start; gap: 5px; padding: 15px 0; border-bottom: 1px solid var(--admin-border); }
.survey-result-summary-grid .survey-result-item { padding: 16px; border: 1px solid var(--admin-border); border-radius: 6px; background: #fbfcfc; }
.survey-result-item strong { font-size: 14px; }
.survey-result-item span { color: var(--admin-survey); font-size: 13px; font-weight: 700; }
.survey-result-item small { color: var(--admin-muted); font-size: 12px; }
.survey-pagination { align-items: center; justify-content: flex-end; margin-top: 16px; }
.survey-pagination span { color: var(--admin-muted); font-size: 12px; }
.survey-people-panel { scroll-margin-top: 92px; }
.survey-people-filters { grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, .5fr)) auto; }
.survey-people-table .survey-person-name { min-width: 110px; }
.survey-people-table .survey-person-code { min-width: 150px; white-space: nowrap; }
.survey-people-table .survey-person-organization { min-width: 180px; }
.survey-people-table .survey-person-status { min-width: 110px; white-space: nowrap; }
.survey-people-table .survey-person-status small { display: block; margin-top: 4px; color: var(--admin-muted); font-size: 12px; }

.admin-shell-page .qr-card small { font-size: 12px; }
.survey-people-table .survey-answer-column { width: 220px; min-width: 180px; max-width: 320px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.survey-people-table .survey-person-time { min-width: 150px; white-space: nowrap; }
.vote-setting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vote-abstain-check { min-height: 44px; }
.admin-fieldset { margin: 0; padding: 18px; border: 1px solid var(--admin-border); border-radius: 6px; }
.admin-fieldset legend { padding: 0 7px; color: var(--admin-ink); font-size: 14px; font-weight: 700; }
.vote-option-editor { display: grid; gap: 12px; margin-bottom: 14px; }
.vote-option-row { min-width: 0; display: grid; gap: 14px; padding: 16px; border: 1px solid var(--admin-border); border-radius: 6px; background: #fbfcfc; }
.vote-option-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.vote-option-heading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.vote-option-heading strong { color: var(--admin-ink); font-size: 14px; }
.vote-option-index { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--admin-survey-border, #cce2e3); border-radius: 5px; background: var(--admin-survey-soft, #edf7f7); color: var(--admin-survey, #28747a); font-size: 12px; font-weight: 700; }
.vote-option-fields { min-width: 0; display: grid; gap: 12px; }
.vote-option-remove { flex: 0 0 auto; margin: 0; }
.vote-option-upload input[type="file"] { width: 100%; min-height: 44px; padding: 5px 8px; overflow: hidden; background: #fff; }
.vote-option-upload input[type="file"]::file-selector-button { min-height: 32px; margin-right: 10px; padding: 0 12px; border: 0; border-radius: 5px; background: var(--admin-survey-soft, #edf7f7); color: var(--admin-survey, #28747a); font: inherit; font-weight: 600; cursor: pointer; }
.vote-option-image { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.vote-option-image > * { min-width: 0; }
.vote-option-image img { width: 120px; aspect-ratio: 4 / 3; display: block; object-fit: cover; border: 1px solid var(--admin-border); border-radius: 5px; }
.vote-results-panel { min-width: 0; }
.vote-turnout { min-height: 52px; margin: 14px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--admin-border); }
.vote-turnout span { color: var(--admin-muted); font-size: 13px; }
.vote-turnout strong { color: var(--admin-survey); font-size: 22px; }
.vote-result-list { display: grid; }
.vote-result-row { padding: 14px 0; border-bottom: 1px solid var(--admin-border); }
.vote-result-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vote-result-row strong { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.vote-result-row span { flex: 0 0 auto; color: var(--admin-muted); font-size: 12px; }
.vote-result-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 4px; background: #edf1f0; }
.vote-result-track span { height: 100%; display: block; border-radius: inherit; background: var(--admin-survey); }
.vote-invite-preview-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; padding: 16px 0; border-top: 1px solid var(--admin-border); border-bottom: 1px solid var(--admin-border); }
.vote-invite-preview-summary > div { display: grid; gap: 5px; padding: 0 18px; border-left: 1px solid var(--admin-border); }
.vote-invite-preview-summary > div:first-child { padding-left: 0; border-left: 0; }
.vote-invite-preview-summary span { color: var(--admin-muted); font-size: 12px; }
.vote-invite-preview-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.vote-invite-preview-table { max-height: 360px; margin-top: 16px; overflow: auto; }
.vote-invite-preview-table .data-table { min-width: 620px; }

.admin-shell-page .archive-panel { width: 100%; max-width: 1040px; }
.admin-shell-page .archive-toolbar { grid-template-columns: minmax(180px, 320px) 120px auto; justify-content: start; }
.archive-table { table-layout: fixed; min-width: 680px; }
.archive-table .archive-date { width: 112px; }
.archive-table .archive-count { width: 64px; }
.archive-table .archive-actions { width: 152px; }
.archive-table td:first-child { overflow-wrap: anywhere; }
.archive-table td small { display: block; margin-top: 4px; color: var(--admin-muted); }
.archive-row-actions { display: flex; gap: 8px; align-items: center; }
.archive-purge-dialog .dialog-panel { text-align: left; }
.archive-purge-dialog [data-archive-name] { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .admin-shell-page .archive-toolbar { grid-template-columns: minmax(0, 1fr) 100px; }
    .archive-toolbar .admin-filter-action { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .admin-shell-page .exam-cycle-actions { grid-template-columns: 1fr; }
    .admin-shell-page .exam-cycle-end-form { justify-self: start; }
    .banner-admin-slot { grid-template-columns: 1fr; }
    .banner-effective-grid { grid-template-columns: 1fr; }
    .cache-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
    .cache-detail-list div:nth-child(3) { padding-left: 0; border-left: 0; }
    .survey-people-filters { grid-template-columns: 1fr 1fr; }
    .vote-setting-grid { grid-template-columns: 1fr 1fr; }
    .survey-overview-grid { grid-template-columns: 1fr; }
    .survey-overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
    .survey-overview-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .survey-question-fields { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(120px, .45fr)); }
}

@media (max-width: 560px) {
    .admin-shell-page .exam-cycle-copy-form { grid-template-columns: 1fr; }
    .admin-shell-page .exam-cycle-copy-form .button,
    .admin-shell-page .exam-cycle-end-form,
    .admin-shell-page .exam-cycle-end-form .button { width: 100%; }
    .banner-slot-form { grid-template-columns: 1fr; }
    .banner-slot-form .field:first-of-type { grid-column: auto; }
    .cache-status-head,
    .cache-action-row { align-items: stretch; flex-direction: column; }
    .cache-status-head > .button,
    .cache-action-row .button { width: 100%; }
    .cache-detail-list { grid-template-columns: 1fr; }
    .cache-detail-list div,
    .cache-detail-list div:nth-child(3) { padding: 0; border-left: 0; }
    .survey-people-filters { grid-template-columns: 1fr; }
    .vote-setting-grid { grid-template-columns: 1fr; }
    .vote-option-image { align-items: flex-start; flex-direction: column; }
    .survey-kind-tabs,
    .survey-admin-tabs { gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; }
    .survey-overview-facts,
    .survey-result-summary-grid,
    .survey-result-grid,
    .survey-question-fields,
    .vote-invite-preview-summary { grid-template-columns: 1fr; }
    .survey-overview-facts > div,
    .survey-overview-facts > div:nth-child(3),
    .vote-invite-preview-summary > div { padding: 12px 0; border-top: 1px solid var(--admin-border); border-left: 0; }
    .survey-overview-facts > div:first-child,
    .vote-invite-preview-summary > div:first-child { padding-top: 0; border-top: 0; }
    .survey-question-head,
    .survey-builder-head { align-items: stretch; flex-direction: column; }
    .survey-question-actions { justify-content: flex-start; }
    .survey-question-fields .survey-question-options { grid-column: auto; }
    .admin-form-actions--sticky { position: static; }
}
/* Walking module */
.walking-admin .walking-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.walking-time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.walking-list-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 140px auto; align-items: end; gap: 12px; }
.walking-list-toolbar .field,
.walking-rank-toolbar .field { min-width: 0; }
.walking-page-size-field select { min-width: 140px; }
.walking-rank-tabs { margin: 0 0 12px; }
.walking-rank-toolbar { display: grid; grid-template-columns: 140px auto; align-items: end; justify-content: start; gap: 12px; margin-bottom: 16px; }
.admin-compact-pagination { align-items: center; justify-content: flex-end; gap: 8px; }
.admin-compact-pagination span { padding: 7px 4px; color: var(--admin-muted); font-size: 12px; white-space: nowrap; }
.admin-setting-list { display: grid; gap: 0; }
.admin-setting-row { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--admin-border, #dce5e2); }
.admin-setting-row:last-child { border-bottom: 0; }
.admin-setting-row p { margin: 5px 0 0; }
.admin-inline-grid { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(150px, .7fr) minmax(260px, 1.4fr) auto; align-items: end; gap: 12px; }
.admin-inline-grid .field { margin: 0; }
.walking-management-panel { border-top: 3px solid var(--admin-registration, #5b5f8f); }
.walking-participant-table { min-width: 1040px; }
.walking-record-table { min-width: 1240px; }
@media (max-width: 1180px) {
    .walking-admin .activity-layout { grid-template-columns: 1fr; }
    .walking-admin .activity-layout .qr-card { max-width: 320px; }
    .walking-admin .walking-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .walking-admin .walking-stats > :last-child { grid-column: 1 / -1; }
    .walking-time-grid,
    .admin-inline-grid { grid-template-columns: 1fr 1fr; }
    .admin-inline-grid .button { align-self: end; }
}
@media (max-width: 600px) {
    .walking-admin .walking-stats,
    .walking-time-grid,
    .walking-list-toolbar,
    .walking-rank-toolbar,
    .admin-inline-grid { grid-template-columns: 1fr; }
    .walking-page-size-field select,
    .walking-list-toolbar .button,
    .walking-rank-toolbar .button { width: 100%; }
    .admin-setting-row { align-items: stretch; flex-direction: column; gap: 12px; }
    .admin-setting-row .button { width: 100%; }
    .walking-admin .walking-stats > :last-child { grid-column: auto; }
    .admin-shell-page .stat strong { font-size: 36px; }
}
