:root {
    --admin-font-body: "Plus Jakarta Sans", "Segoe UI", "Malgun Gothic", sans-serif;
    --admin-font-headline: "Manrope", "Segoe UI", "Malgun Gothic", sans-serif;
    --admin-sidebar-width: 16rem;
    --admin-header-height: 4rem;
    --admin-color-primary: #005797;
    --admin-color-primary-container: #0070C0;
    --admin-color-primary-fixed: #d2e4ff;
    --admin-color-surface: #f8f9ff;
    --admin-color-surface-container-low: #f1f3fb;
    --admin-color-surface-container: #eceef5;
    --admin-color-surface-container-high: #e6e8ef;
    --admin-color-surface-highest: #e0e2e9;
    --admin-color-surface-lowest: #ffffff;
    --admin-color-text: #181c21;
    --admin-color-text-muted: #414751;
    --admin-color-outline: #717783;
    --admin-color-border: #c0c7d3;
    --admin-color-secondary: #006e1c;
    --admin-color-secondary-container: #91f78e;
    --admin-color-tertiary: #903b00;
    --admin-color-error: #ba1a1a;
    --admin-color-error-container: #ffdad6;
    --admin-color-on-error-container: #93000a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--admin-font-body);
    background: var(--admin-color-surface);
    color: var(--admin-color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.admin-body {
    min-height: 100vh;
}

a {
    color: var(--admin-color-primary);
    text-decoration: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

h1, h2, h3, h4,
.sidebar-brand h1,
.admin-header h2,
.page-header h2,
.login-card h1,
.stat-card strong,
.btn {
    font-family: var(--admin-font-headline);
}

/* ── Layout ── */

.admin-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: var(--admin-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
    background: var(--admin-color-surface-container-low);
    border-right: 1px solid rgba(192, 199, 211, 0.35);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.sidebar-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    background: var(--admin-color-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 112, 192, 0.25);
    flex-shrink: 0;
}

.sidebar-logo .material-symbols-outlined {
    color: #fff;
    font-size: 1.5rem;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.sidebar-brand h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--admin-color-primary-container);
    line-height: 1.2;
}

.sidebar-subtitle {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--admin-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    color: var(--admin-color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.sidebar nav a .material-symbols-outlined {
    font-size: 1.25rem;
}

.sidebar nav a:hover {
    background: rgba(210, 228, 255, 0.35);
    color: var(--admin-color-primary);
}

.sidebar nav a.active {
    background: var(--admin-color-surface-lowest);
    color: var(--admin-color-primary);
    border-color: rgba(192, 199, 211, 0.45);
    box-shadow: 0 1px 3px rgba(24, 28, 33, 0.06);
    font-weight: 700;
}

.sidebar .nav-group {
    margin: 0;
}

.sidebar .nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    color: var(--admin-color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.sidebar .nav-group-toggle::-webkit-details-marker {
    display: none;
}

.sidebar .nav-group-toggle .material-symbols-outlined {
    font-size: 1.25rem;
}

.sidebar .nav-group-chevron {
    margin-left: auto;
    font-size: 1.125rem !important;
    transition: transform 150ms ease;
}

.sidebar .nav-group[open] > .nav-group-toggle {
    color: var(--admin-color-primary);
    font-weight: 700;
}

.sidebar .nav-group[open] > .nav-group-toggle .nav-group-chevron {
    transform: rotate(180deg);
}

.sidebar .nav-group-toggle:hover {
    background: rgba(210, 228, 255, 0.35);
    color: var(--admin-color-primary);
}

.sidebar .nav-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.125rem 0 0.25rem 0;
}

.sidebar .nav-group-items a {
    padding-left: 3rem;
    font-size: 0.8125rem;
}

.sidebar .nav-divider {
    height: 1px;
    margin: 0.25rem 0.25rem;
    background: var(--admin-color-border);
    border: none;
}

.admin-main-wrap {
    margin-left: var(--admin-sidebar-width);
    min-height: 100vh;
}

.admin-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--admin-sidebar-width);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(192, 199, 211, 0.25);
    box-shadow: 0 1px 4px rgba(24, 28, 33, 0.04);
}

.admin-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--admin-color-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.admin-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-color-text);
}

.admin-user-role {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--admin-color-outline);
}

.btn-header-logout {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--admin-color-surface-container-high);
    color: var(--admin-color-text);
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid rgba(192, 199, 211, 0.4);
    transition: opacity 150ms ease;
}

.btn-header-logout:hover {
    opacity: 0.9;
}

.btn-header-password {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(145, 247, 142, 0.8);
    color: var(--admin-color-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid rgba(192, 199, 211, 0.25);
    cursor: pointer;
    font-family: var(--admin-font-headline);
    transition: opacity 150ms ease;
}

.btn-header-password:hover {
    opacity: 0.9;
}

.content {
    padding: calc(var(--admin-header-height) + 1.5rem) 2rem 3rem;
    max-width: none;
}

.content .page-header:not(:has(a, button, .btn)) {
    display: none;
}

.content .page-header:has(a, button, .btn) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.content .page-header h2 {
    display: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.page-header h2 {
    margin: 0;
    font-size: 1.375rem;
    color: var(--admin-color-text);
}

/* ── Cards & Stats ── */

.card {
    background: var(--admin-color-surface-lowest);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(24, 28, 33, 0.06);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(192, 199, 211, 0.35);
}

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--admin-color-text);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--admin-color-surface-lowest);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(24, 28, 33, 0.06);
    border: 1px solid rgba(192, 199, 211, 0.35);
    position: relative;
    overflow: hidden;
    min-height: 9.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-body {
    position: relative;
    z-index: 1;
}

.stat-card > span,
.stat-card-body > span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-color-text-muted);
    margin-bottom: 0.25rem;
}

.stat-card strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 0.5rem;
    color: var(--admin-color-text);
    letter-spacing: -0.02em;
}

.stat-card-icon {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.stat-card-icon .material-symbols-outlined {
    font-size: 3rem;
    line-height: 1;
}

.stat-card-icon.is-primary {
    background: color-mix(in srgb, var(--admin-color-primary) 5%, transparent);
}

.stat-card-icon.is-primary .material-symbols-outlined {
    color: color-mix(in srgb, var(--admin-color-primary) 25%, transparent);
}

.stat-card-icon.is-secondary {
    background: color-mix(in srgb, var(--admin-color-secondary) 5%, transparent);
}

.stat-card-icon.is-secondary .material-symbols-outlined {
    color: color-mix(in srgb, var(--admin-color-secondary) 25%, transparent);
}

.stat-card-icon.is-tertiary {
    background: color-mix(in srgb, var(--admin-color-tertiary) 5%, transparent);
}

.stat-card-icon.is-tertiary .material-symbols-outlined {
    color: color-mix(in srgb, var(--admin-color-tertiary) 25%, transparent);
}

/* ── Tables ── */

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

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--admin-color-surface-highest);
    text-align: left;
    font-size: 0.875rem;
}

th {
    background: var(--admin-color-surface-container-low);
    font-weight: 600;
    color: var(--admin-color-text-muted);
    font-size: 0.8125rem;
}

tbody tr:hover {
    background: rgba(241, 243, 251, 0.6);
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    transition: opacity 150ms ease, transform 150ms ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--admin-color-primary-container);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.2);
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-export {
    background: var(--admin-color-primary-fixed);
    color: var(--admin-color-primary);
}

.btn-export:hover {
    opacity: 0.92;
}

.btn-secondary {
    background: var(--admin-color-surface-container);
    color: var(--admin-color-text);
    border: 1px solid rgba(192, 199, 211, 0.45);
}

.btn-danger {
    background: var(--admin-color-error);
    color: #fff;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 999px;
}

/* ── Forms ── */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.input-unit {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-color-text-muted);
}

label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--admin-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

label .label-note {
    font-weight: 400;
}

input, select, textarea {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(192, 199, 211, 0.55);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: var(--admin-font-body);
    background: var(--admin-color-surface);
    color: var(--admin-color-text);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--admin-color-primary-container);
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.12);
}

input[readonly],
input:disabled {
    background: var(--admin-color-surface-container-low);
    color: var(--admin-color-text-muted);
    cursor: not-allowed;
}

input.input-derived-rate:disabled {
    background: #F0FFF0;
    color: var(--admin-color-text);
}

input.input-derived-rate::-webkit-outer-spin-button,
input.input-derived-rate::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.input-derived-rate[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="date"][readonly] {
    pointer-events: none;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 2.75rem;
}

.secret-input.is-masked {
    -webkit-text-security: disc;
    text-security: disc;
}

.password-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--admin-color-outline);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover {
    color: var(--admin-color-primary-container);
    background: var(--admin-color-surface-container);
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.field-error {
    color: var(--admin-color-error);
    font-size: 0.8rem;
}

.field-hint {
    color: var(--admin-color-outline);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ── Modal ── */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.is-open {
    display: flex;
}

#admin-password-done-modal {
    z-index: 210;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 28, 33, 0.45);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 42rem;
    max-height: calc(100vh - 3rem);
    overflow: auto;
    background: var(--admin-color-surface-lowest);
    border-radius: 2rem;
    border: 1px solid rgba(192, 199, 211, 0.35);
    box-shadow: 0 16px 48px rgba(24, 28, 33, 0.18);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.875rem;
    border-bottom: 1px solid rgba(192, 199, 211, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    font-family: var(--admin-font-headline);
    color: var(--admin-color-text);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: var(--admin-color-surface-container-low);
    color: var(--admin-color-text-muted);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--admin-color-surface-container);
    color: var(--admin-color-text);
}

.modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.modal-body > .form-group + .form-group {
    margin-top: 0.875rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.modal-dialog-sm {
    max-width: 28rem;
}

.modal-header-lead {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.modal-header-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background: rgba(0, 112, 192, 0.12);
    color: var(--admin-color-primary-container);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    flex-shrink: 0;
}

.modal-header-icon.is-danger {
    background: rgba(186, 26, 26, 0.12);
    color: var(--admin-color-error);
}

.modal-confirm-text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--admin-color-text);
}

.modal-confirm-text strong {
    font-weight: 800;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-color-text);
    line-height: 1.45;
}

.consent-check input {
    margin-top: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--admin-color-error);
    flex-shrink: 0;
}

.modal-hint {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--admin-color-text-muted);
    line-height: 1.4;
}

.modal-msg {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-msg.is-hidden {
    display: none;
}

.modal-msg.is-ok {
    color: var(--admin-color-secondary);
}

.modal-msg.is-error {
    color: var(--admin-color-error);
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(192, 199, 211, 0.2);
    background: rgba(241, 243, 251, 0.55);
}

.modal-footer .btn {
    flex: 1;
}

.password-toggle .pw-eye-icon {
    font-size: 1.375rem;
    line-height: 1;
}

body.modal-open {
    overflow: hidden;
}

/* ── Alerts ── */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.alert-success {
    background: rgba(145, 247, 142, 0.35);
    color: var(--admin-color-secondary);
    border: 1px solid rgba(0, 110, 28, 0.15);
}

.alert-error {
    background: var(--admin-color-error-container);
    color: var(--admin-color-on-error-container);
}

/* ── Badges ── */

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-paid {
    background: var(--admin-color-surface-container);
    color: var(--admin-color-primary);
}

.badge-active {
    background: #d2e4ff;
    color: #00487f;
}

.badge-deactive {
    background: var(--admin-color-error-container);
    color: var(--admin-color-on-error-container);
}

.badge-stopped {
    background: #fef3c7;
    color: #92400e;
}

.badge-expired {
    background: var(--admin-color-surface-container);
    color: var(--admin-color-text-muted);
}

/* ── Login ── */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--admin-color-surface);
}

.login-brand-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--admin-color-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 112, 192, 0.25);
    margin-bottom: 2rem;
}

.login-brand-icon .material-symbols-outlined {
    color: #fff;
    font-size: 2.25rem;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.login-page-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--admin-color-primary);
    margin: 0 0 0.25rem;
}

.login-page-title-role {
    color: #696969;
}

.login-page-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--admin-color-text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.login-card {
    width: 100%;
    max-width: 28rem;
    background: var(--admin-color-surface-lowest);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(24, 28, 33, 0.06);
    border: 1px solid rgba(192, 199, 211, 0.35);
}

.login-card h1 {
    display: none;
}

.login-page .login-card input {
    background-color: #FFFFFF;
}

.login-page .login-card input:focus {
    background-color: #FFFFFF;
}

.login-page .login-card input:-webkit-autofill,
.login-page .login-card input:-webkit-autofill:hover,
.login-page .login-card input:-webkit-autofill:focus,
.login-page .login-card input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: var(--admin-color-text) !important;
    caret-color: var(--admin-color-text);
    transition: background-color 5000s ease-in-out 0s;
}

.login-footer-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--admin-color-outline);
    line-height: 1.6;
}

code {
    display: inline-block;
    padding: 0.375rem 0.625rem;
    background: var(--admin-color-surface-container-low);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: var(--admin-color-primary);
    word-break: break-all;
}

code.referral-link-url {
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(192, 199, 211, 0.35);
    }

    .admin-main-wrap {
        margin-left: 0;
    }

    .admin-header {
        left: 0;
        position: sticky;
    }

    .content {
        padding: 1.5rem 1rem 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.security-mode-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-mode-form > label {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-color-text);
    text-transform: none;
    letter-spacing: normal;
}

.security-mode-input-row {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
}

.security-mode-input-row input {
    flex: 1;
    min-width: 0;
    max-width: 20rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 28, 33, 0.04);
}

.security-mode-card .security-mode-input-row input {
    background: #FFFCC8;
}

.security-mode-input-row .btn {
    flex-shrink: 0;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: none;
}

.security-mode-msg {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.security-mode-msg.is-ok {
    color: var(--admin-color-secondary);
}

.security-mode-msg.is-error {
    color: var(--admin-color-error);
}

.settings-unlock-actions {
    display: flex;
    align-items: center;
}

.users-test-list-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.users-test-list-panel .card-title-row {
    margin-bottom: 0;
}

.users-test-list-form {
    width: 100%;
}

.users-test-list-registered-label,
.users-test-list-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--admin-color-muted);
}

.users-test-list-registered-items {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.users-test-list-registered-items li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem 0.375rem 0.75rem;
    border: 1px solid var(--admin-color-border);
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.users-test-list-registered-items form {
    margin: 0;
}

@media (min-width: 640px) {
    .security-mode-form {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .security-mode-msg {
        margin-left: auto;
    }

    .users-test-list-form.security-mode-form {
        flex-wrap: wrap;
    }
}

.is-hidden {
    display: none !important;
}

.member-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 112, 192, 0.18);
    border-radius: 0.75rem;
    background: rgba(0, 112, 192, 0.05);
}

.member-selected-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.member-selected-info strong {
    font-size: 0.9375rem;
    color: var(--admin-color-text);
}

.member-selected-info span {
    font-size: 0.8125rem;
    color: var(--admin-color-text-muted);
}

.member-selected-empty,
.member-search-empty {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--admin-color-text-muted);
}

.member-search-results {
    margin-top: 0.75rem;
    overflow-x: auto;
}

.member-search-results table {
    margin-top: 0;
}

.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-title-row h3 {
    margin: 0;
}

.card-title-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.card-title-actions .btn {
    box-shadow: none;
}

.table-actions .btn {
    box-shadow: none;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    font-family: var(--admin-font-body);
    border-radius: 999px;
    border: none;
    background: var(--admin-color-surface-container);
    color: var(--admin-color-primary);
    vertical-align: middle;
}

.table-actions .btn + .btn {
    margin-left: 0.375rem;
}

.table-actions .btn:hover {
    opacity: 0.85;
}

.table-actions .btn-primary,
.table-actions .btn[data-open-payout-confirm] {
    background: #0070C0;
    color: #fff;
}

.table-actions .btn-danger {
    background: var(--admin-color-error-container);
    color: var(--admin-color-on-error-container);
}

.table-actions .btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.375rem;
    padding: 0.25rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    background: transparent;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.table-actions .btn-icon-action .material-symbols-outlined {
    font-size: 1.125rem;
    line-height: 1;
}

.table-actions .btn-icon-action.is-lock {
    color: var(--admin-color-error);
}

.table-actions .btn-icon-action.is-lock:hover {
    background: color-mix(in srgb, var(--admin-color-error) 10%, transparent);
    border-color: color-mix(in srgb, var(--admin-color-error) 20%, transparent);
}

.table-actions .btn-icon-action.is-unlock {
    color: var(--admin-color-secondary);
}

.table-actions .btn-icon-action.is-unlock:hover {
    background: color-mix(in srgb, var(--admin-color-secondary) 10%, transparent);
    border-color: color-mix(in srgb, var(--admin-color-secondary) 25%, transparent);
}

.card-title-actions form {
    margin: 0;
}

.card > h3 {
    margin-bottom: 1rem;
}

.list-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.list-search-form input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
}

.list-search-form select.list-team-filter {
    flex: 0 0 auto;
    min-width: 8.5rem;
    max-width: 18rem;
}

.list-pagination {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(192, 199, 211, 0.45);
}

.list-pagination-summary {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--admin-color-text-muted);
    text-align: center;
}

.list-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.list-pagination-nav .btn.is-current {
    pointer-events: none;
    background: var(--admin-color-primary-fixed);
    border-color: transparent;
    color: var(--admin-color-primary);
    font-weight: 700;
}

.btn.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.table-empty {
    text-align: center;
    color: var(--admin-color-text-muted);
    padding: 2rem 1rem;
}

/* ── Staking history commission cards ── */

.staking-history-card {
    margin-top: 1.25rem;
}

.staking-history-summary {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--admin-color-text-muted);
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    color: var(--admin-color-text-muted);
    padding: 1.5rem 1rem;
    font-size: 0.875rem;
}

.commission-note-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.history-view-radios {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    border: none;
    flex-shrink: 0;
}

.history-view-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--admin-color-text);
    cursor: pointer;
    user-select: none;
}

.history-view-radio input {
    margin: 0;
    accent-color: var(--admin-color-primary);
    cursor: pointer;
}

.badge-scheduled {
    background: var(--admin-color-primary-fixed);
    color: var(--admin-color-primary);
}

.staking-history-card table tbody tr.is-unsettled {
    color: var(--admin-color-text-muted);
    background: rgba(240, 244, 252, 0.7);
}

table tbody tr.is-selected {
    background: rgba(0, 112, 192, 0.08);
}

.table-actions a.btn {
    display: inline-block;
    text-decoration: none;
}

.policy-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.policy-add-form .form-group {
    margin: 0;
    min-width: 12rem;
    flex: 1;
}

.policy-add-form .form-group-action {
    flex: 0 0 auto;
}

.cell-url {
    max-width: 28rem;
    word-break: break-all;
}

.cell-memo {
    max-width: 18rem;
    word-break: break-word;
    color: var(--admin-color-text-muted);
    font-size: 0.8125rem;
}

.cell-time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cell-device-id {
    max-width: 12rem;
    word-break: break-all;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.78rem;
}

.logs-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.logs-table {
    min-width: 72rem;
}

.logs-table th {
    white-space: nowrap;
}

.logs-table .cell-url {
    min-width: 18rem;
}

.logs-table .cell-device-id {
    min-width: 13rem;
}

.pc-list-toolbar .list-search-form {
    flex: 1 1 48rem;
}

.pc-result-count {
    margin: 0;
    color: var(--admin-color-text-muted);
    font-size: 0.875rem;
}

.pc-result-count strong {
    color: var(--admin-color-primary-container);
}

.agent-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.agent-table th {
    white-space: nowrap;
}

.agent-list-table {
    width: 100%;
    table-layout: fixed;
}

.agent-list-table col.col-status { width: 4.8rem; }
.agent-list-table col.col-device { width: 9%; }
.agent-list-table col.col-emp { width: 6%; }
.agent-list-table col.col-name { width: 6%; }
.agent-list-table col.col-pc { width: 7%; }
.agent-list-table col.col-os { width: 10%; }
.agent-list-table col.col-cpu { width: 11%; }
.agent-list-table col.col-ram { width: 3.4rem; }
.agent-list-table col.col-gpu { width: 9%; }
.agent-list-table col.col-av { width: 8%; }
.agent-list-table col.col-user { width: 7%; }
.agent-list-table col.col-ip { width: 7%; }
.agent-list-table col.col-hb { width: 7%; }
.agent-list-table col.col-login { width: 7%; }
.agent-list-table col.col-action { width: 4.6rem; }

.agent-list-table th,
.agent-list-table td {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align: top;
    line-height: 1.35;
    padding: 0.55rem 0.4rem;
}

.agent-list-table .cell-device-id {
    min-width: 0;
    max-width: none;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.agent-list-table .cell-hw {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.agent-list-table .cell-time {
    white-space: normal;
}

.agent-list-table .cell-status,
.agent-list-table .cell-ram,
.agent-list-table .cell-action {
    white-space: nowrap;
}

.agent-list-table .badge {
    max-width: 100%;
    overflow-wrap: break-word;
}

.agent-list-table .cell-status .badge {
    white-space: nowrap;
}

.reports-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.reports-table {
    min-width: 88rem;
}

.reports-table th {
    white-space: nowrap;
}

.reports-table .cell-url {
    min-width: 16rem;
    word-break: break-all;
}

.reports-table .cell-device-id {
    min-width: 13rem;
}

.report-memo {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--admin-color-text-muted);
}

.table-actions {
    white-space: nowrap;
}

.table-actions form {
    display: inline-block;
    margin: 0 0.25rem 0 0;
    vertical-align: middle;
}

.muted-note {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--admin-color-text-muted);
    line-height: 1.6;
}

.complaints-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.complaints-table {
    min-width: 72rem;
}

.complaints-table th {
    white-space: nowrap;
}

.complaints-table .cell-complaint-title {
    min-width: 10rem;
    max-width: 16rem;
    word-break: break-word;
}

.complaints-table .cell-complaint-preview {
    min-width: 16rem;
    max-width: 28rem;
    word-break: break-word;
    color: var(--admin-color-text-muted);
    font-size: 0.875rem;
}

.complaint-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem 1.5rem;
    margin: 0 0 1.5rem;
}

.complaint-detail-meta dt {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--admin-color-text-muted);
}

.complaint-detail-meta dd {
    margin: 0;
}

.complaint-detail-block {
    margin-bottom: 1.25rem;
}

.complaint-detail-block h4 {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--admin-color-text-muted);
}

.complaint-detail-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    word-break: break-word;
}

.complaint-detail-body {
    margin: 0;
    padding: 1rem 1.125rem;
    background: var(--admin-color-surface-low, #f3f4f8);
    border: 1px solid var(--admin-color-border, #e1e3ea);
    border-radius: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.notices-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.notices-table {
    min-width: 56rem;
}

.notices-table th {
    white-space: nowrap;
}

.notices-table .cell-notice-title {
    min-width: 10rem;
    max-width: 16rem;
    word-break: break-word;
}

.notices-table .cell-notice-preview {
    min-width: 16rem;
    max-width: 28rem;
    word-break: break-word;
    color: var(--admin-color-text-muted);
    font-size: 0.875rem;
}

.admin-header-actions form {
    margin: 0;
}

.admin-header-actions form button.btn-header-logout {
    font-family: var(--admin-font-headline);
    cursor: pointer;
}

body.warn-body {
    --warn-accent: #b42318;
    --warn-accent-soft: #fff1ee;
    --warn-ink: #1a1412;
    --warn-muted: #5c524e;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f7f4f2;
    color: var(--warn-ink);
}

.warn-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 12% -10%, rgba(180, 35, 24, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 8%, rgba(0, 87, 151, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 100%, rgba(180, 35, 24, 0.06), transparent 55%),
        linear-gradient(180deg, #fff8f6 0%, #f4f1ef 48%, #eef2f7 100%);
    z-index: 0;
}

.warn-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.warn-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
}

.warn-shell {
    width: min(42rem, 100%);
    animation: warn-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes warn-enter {
    from {
        opacity: 0;
        transform: translateY(0.85rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.warn-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

.warn-brand-badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--admin-color-primary) 9%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--admin-color-primary) 18%, transparent);
    color: var(--admin-color-primary);
    font-family: var(--admin-font-headline);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
}

.warn-alert-card {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    margin: 0 0 1.35rem;
    padding: 1.4rem 1.5rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(192, 199, 211, 0.45);
    box-shadow: 0 10px 32px rgba(24, 28, 33, 0.08);
}

.warn-status {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--warn-accent-soft);
    color: var(--warn-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: warn-pulse 2.8s ease-in-out infinite;
}

.warn-alert-copy {
    min-width: 0;
    flex: 1;
}

.warn-status .material-symbols-outlined {
    font-size: 2rem;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 40;
}

@keyframes warn-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.18);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(180, 35, 24, 0);
    }
}

.warn-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warn-accent);
}

.warn-page h1 {
    margin: 0 0 0.55rem;
    font-family: "Pretendard", "Manrope", "Segoe UI", "Malgun Gothic", sans-serif;
    font-size: clamp(1.28rem, 2.6vw, 1.7rem);
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--warn-ink);
}

.warn-lead,
.warn-hint {
    margin: 0 0 1.35rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--warn-muted);
}

.warn-lead {
    margin: 0;
    font-size: 0.98rem;
}

.warn-email-notice {
    margin: 0 0 1.35rem;
    padding: 1rem 0 1rem 1rem;
    border-left: 3px solid #c9a227;
    background: transparent;
    color: #5c4a12;
}

.warn-email-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #7a6210;
}

.warn-email-title .material-symbols-outlined {
    font-size: 1.2rem;
    color: #a8860f;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.warn-email-notice p:last-child {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 500;
    color: #6b5720;
}

.warn-hint {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.warn-meta {
    margin: 0 0 1.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 0.85rem;
}

.warn-meta div {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(92, 82, 78, 0.16);
}

.warn-meta div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.warn-meta dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--admin-color-outline);
}

.warn-meta dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-all;
    color: var(--warn-ink);
}

.warn-url {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--warn-muted);
}

.warn-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.warn-analyze-btn {
    min-width: 11.5rem;
}

.warn-analyze-msg {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--admin-color-primary);
    animation: warn-enter 0.35s ease both;
}

@media (max-width: 540px) {
    .warn-brand-badge {
        font-size: 0.72rem;
        padding: 0.32rem 0.7rem;
        white-space: normal;
        text-align: right;
    }

    .warn-alert-card {
        gap: 0.85rem;
        padding: 1.15rem 1.1rem 1.2rem;
    }

    .warn-status {
        width: 2.85rem;
        height: 2.85rem;
    }

    .warn-status .material-symbols-outlined {
        font-size: 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .warn-shell,
    .warn-status,
    .warn-analyze-msg {
        animation: none;
    }
}

.settings-card .muted-note {
    margin-bottom: 1.25rem;
}

.ops-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.ops-pair > .card {
    margin: 0;
}

.ops-pair .ops-radio-list {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .ops-pair {
        grid-template-columns: 1fr;
    }
}

.ops-setting-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 0;
}

.ops-setting-summary.is-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-setting-summary.is-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .ops-setting-summary.is-six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ops-setting-summary div {
    margin: 0;
}

.ops-setting-summary dt {
    color: var(--admin-color-text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.ops-setting-summary dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--admin-color-text);
}

@media (max-width: 720px) {
    .ops-setting-summary {
        grid-template-columns: 1fr;
    }

    .ops-setting-summary.is-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-setting-summary.is-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ops-radio-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 720px) {
    .ops-radio-list {
        grid-template-columns: 1fr;
    }
}

.ops-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    cursor: pointer;
}

.ops-radio-option input {
    margin-top: 0.2rem;
    accent-color: var(--admin-color-primary);
    cursor: pointer;
}

.ops-check-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--admin-color-text);
}

.ops-check-option input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--admin-color-primary);
    cursor: pointer;
}

.ops-radio-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ops-radio-copy strong {
    font-family: var(--admin-font-headline);
    font-size: 0.95rem;
    color: var(--admin-color-text);
}

.ops-radio-copy span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--admin-color-text-muted);
    line-height: 1.45;
}


.inventory-hw-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.inventory-hw-panel {
    margin: 0;
    padding: 1rem 1.125rem;
    background: var(--admin-color-surface-low, #f3f4f8);
    border: 1px solid var(--admin-color-border, #e1e3ea);
    border-radius: 0.75rem;
    min-width: 0;
}

.inventory-hw-panel h4 {
    margin: 0 0 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--admin-color-text-muted);
}

.inventory-list {
    margin: 0;
    padding-left: 1.25rem;
}

.inventory-list li {
    margin: 0.25rem 0;
    word-break: break-word;
}

@media (max-width: 720px) {
    .inventory-hw-panels {
        grid-template-columns: 1fr;
    }
}

.list-search-form input[name='software'],
.list-search-form input[name='hw'],
.list-search-form input[name='process'] {
    min-width: 12rem;
}

.perm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.5rem 0 0.75rem;
}

.perm-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--admin-color-text-muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.detail-grid dt {
    margin: 0;
    font-weight: 600;
    color: var(--admin-color-text-muted);
}

.detail-grid dd {
    margin: 0;
}

