﻿html, body {
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.16), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #0f172a;
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

a, .btn-link {
    color: #2563eb;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.content {
    padding-top: 1.5rem;
    font-size: .86rem;
}

.page-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-header.compact {
    margin-bottom: 1.25rem;
}

.page-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #101828;
}

.page-header p {
    max-width: 720px;
    margin: .5rem 0 0;
    color: #667085;
    font-size: .86rem;
}

.eyebrow {
    margin: 0 0 .25rem;
    color: #155eef;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.release-card,
.panel,
.metric-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.release-card {
    min-width: 280px;
    padding: 1.2rem;
}

.release-card span,
.metric-card span,
.panel-title span,
.metric-card small {
    color: #667085;
}

.release-card strong,
.metric-card strong {
    display: block;
    color: #101828;
}

.release-card strong {
    margin: .3rem 0;
    font-size: 1.2rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.metric-card {
    padding: 1.05rem 1.1rem;
}

.metric-card strong {
    margin: .15rem 0;
    font-size: 1.65rem;
}

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

.trial-content-grid {
    grid-template-columns: minmax(0, 1fr);
}

.panel {
    overflow: hidden;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem .9rem;
    border-bottom: 1px solid #eef2f6;
}

.panel-title h2 {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
}

.panel-title span {
    color: #64748b;
}

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

th, td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}

th {
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

td {
    color: #334155;
    font-size: .84rem;
}

tbody tr:hover {
    background: rgba(248, 250, 252, 0.85);
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 1rem 0 1.25rem;
}

.btn {
    border: 1px solid #dbe3ef;
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.62rem .86rem;
    font-size: .84rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

.btn.danger {
    background: #fff;
    color: #dc2626;
    border-color: #fecaca;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #b2ddff;
    border-radius: 999px;
    background: #eff8ff;
    color: #175cd3;
    padding: .15rem .5rem;
    font-size: .78rem;
}

.endpoint-list {
    display: grid;
    gap: .5rem;
    padding: 1rem;
}

code,
pre {
    color: #26323f;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
}

code {
    padding: .25rem .4rem;
}

pre {
    margin: 1rem;
    padding: 1rem;
    overflow: auto;
}

pre code {
    border: 0;
    padding: 0;
    background: transparent;
}

.empty {
    margin: 0;
    padding: 1rem;
    color: #667085;
}

.panel-body {
    padding: 1.15rem;
}

.detail-list {
    display: grid;
    gap: .85rem;
    margin: 0;
}

.detail-list div {
    display: grid;
    gap: .25rem;
}

.detail-list dt {
    color: #667085;
    font-size: .85rem;
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
    color: #101828;
}

.detail-mono {
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .2rem .6rem;
    font-size: .78rem;
    font-weight: 700;
}

.status-pill-ok {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.status-pill-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.status-pill-empty {
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
    color: #475467;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    isolation: isolate;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.55);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.modal-card > .modal-close-button {
    position: absolute;
    top: .75rem;
    right: .85rem;
    z-index: 3;
}

.modal-card > .panel-title {
    padding-right: 3.5rem;
}

.modal-close-button {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: .55rem;
    color: #7b8799;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close-button:hover {
    color: #17233a;
    background: #f0f2f6;
}

.modal-card .panel-title {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modal-card.modal-card-sm {
    width: min(560px, 100%);
}

.modal-card.modal-card-lg {
    width: min(980px, 100%);
}

/* 所有新增/登记弹窗使用横向工作区，桌面端尽量一次看到完整表单。 */
.modal-card.modal-card-sm {
    width: min(900px, calc(100vw - 32px));
}

.modal-card.modal-card-sm .login-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .72rem 1rem;
    font-size: .86rem;
}

.modal-card.modal-card-sm .login-form > .form-actions,
.modal-card.modal-card-sm .login-form > .validation-summary-errors,
.modal-card.modal-card-sm .login-form > .validation-message {
    grid-column: 1 / -1;
}

.login-panel {
    max-width: 520px;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.compact-editor-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .72rem 1rem;
    font-size: .86rem;
}

.compact-editor-form > label {
    min-width: 0;
}

.compact-editor-form > .form-actions,
.compact-editor-form > .validation-summary-errors,
.compact-editor-form > .validation-message,
.compact-editor-form > .permission-grid,
.compact-editor-form > .permission-groups,
.compact-editor-form > .license-form-grid {
    grid-column: 1 / -1;
}

.compact-editor-form input,
.compact-editor-form select,
.compact-editor-form textarea {
    padding: .62rem .75rem;
    border-radius: .68rem;
}

.login-form label {
    display: grid;
    gap: .4rem;
    color: #334155;
    font-weight: 700;
}

.login-form label > span {
    color: #0f172a;
}

.login-form input {
    border: 1px solid #d0d5dd;
    border-radius: 0.85rem;
    padding: .8rem .95rem;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
}

.login-form select,
.login-form textarea {
    border: 1px solid #d0d5dd;
    border-radius: 0.85rem;
    padding: .8rem .95rem;
    font: inherit;
    background: #fff;
    color: #0f172a;
}

.login-form input:focus,
.login-form select:focus,
.login-form textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.18);
    border-color: #60a5fa;
}

.login-submit,
.nav-signout-button {
    border: 0;
    border-radius: 8px;
    background: #155eef;
    color: #ffffff;
    padding: .75rem 1rem;
    font: inherit;
    font-weight: 700;
}

.login-error {
    margin: 0 0 1rem;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
    padding: .75rem .9rem;
}

.nav-signout-form {
    margin: 0;
}

.nav-signout-button {
    width: 100%;
    background: #344054;
}

.plugin-description-field textarea {
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.compact-editor-form > .form-span-full,
.duplicate-candidate-grid > .form-span-full {
    grid-column: 1 / -1;
}

.duplicate-review-card .panel-body {
    display: grid;
    gap: 1rem;
}

.duplicate-review-lead {
    margin: 0;
    padding: .8rem 1rem;
    border-left: 4px solid #f59e0b;
    border-radius: .5rem;
    background: #fffbeb;
    color: #92400e;
}

.duplicate-candidate {
    display: grid;
    gap: .7rem;
    padding: 1rem;
    border: 1px solid #fed7aa;
    border-radius: .9rem;
    background: #fffaf5;
}

.duplicate-candidate p {
    margin: 0;
}

.duplicate-candidate-head,
.duplicate-candidate-grid {
    display: grid;
    gap: .6rem 1rem;
}

.duplicate-candidate-head {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.duplicate-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    color: #475569;
}

.duplicate-review-actions {
    position: sticky;
    bottom: 0;
    padding: .8rem 0;
    background: rgba(255, 255, 255, .96);
}

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

.permission-groups {
    display: grid;
    gap: .85rem;
}

.permission-hint {
    margin: 0;
    color: #64748b;
    font-size: .8rem;
    font-weight: 500;
}

.permission-group {
    min-width: 0;
    margin: 0;
    padding: .7rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.permission-group legend {
    padding: 0 .45rem;
    color: #334155;
    font-size: .82rem;
    font-weight: 800;
}

.permission-item {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.topbar-user {
    position: relative;
}

.topbar-user summary {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background: #ffffff;
    cursor: pointer;
}

.topbar-user summary::-webkit-details-marker {
    display: none;
}

.topbar-user-name {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.92rem;
}

.topbar-user-role {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.topbar-user-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    min-width: 220px;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    z-index: 20;
}

.topbar-user-panel strong {
    color: #0f172a;
}

.topbar-user-panel span {
    color: #64748b;
    font-size: 0.85rem;
}

.action-cell {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.inline-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.result-panel {
    margin-top: 1rem;
}

.metric-grid-enterprise {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff7ed;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(16, 24, 40, .08);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 264px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

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

    .metric-grid-enterprise {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-header,
    .content-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-grid-enterprise {
        grid-template-columns: 1fr;
    }

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

    .release-card {
        min-width: 0;
    }

    .modal-shell {
        padding: 1rem;
        align-items: flex-start;
    }

    .modal-card,
    .modal-card.modal-card-sm,
    .modal-card.modal-card-lg {
        width: 100%;
        margin-top: 1rem;
    }

    .modal-card.modal-card-sm {
        width: 100%;
    }

    .modal-card.modal-card-sm .login-form,
    .compact-editor-form {
        grid-template-columns: 1fr;
    }

    .modal-card.modal-card-sm .login-form > .form-actions,
    .modal-card.modal-card-sm .login-form > .validation-summary-errors,
    .modal-card.modal-card-sm .login-form > .validation-message,
    .compact-editor-form > .form-actions,
    .compact-editor-form > .validation-summary-errors,
    .compact-editor-form > .validation-message,
    .compact-editor-form > .permission-grid,
    .compact-editor-form > .permission-groups,
    .compact-editor-form > .license-form-grid {
        grid-column: auto;
    }
}

}

/* --- Glassmorphism Theme Overrides --- */
html, body {
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0.05) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.05) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.05) 0, transparent 50%),
        radial-gradient(circle at 15% 50%, rgba(255, 107, 107, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(78, 101, 255, 0.1), transparent 25%);
    background-attachment: fixed;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a, .btn-link {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-shadow: none;
}

a:hover, .btn-link:hover {
    color: #4338ca;
}

h1:focus {
    outline: none;
}

.metric-card.clickable {
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
    display: block;
}

.metric-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.1);
}

.page-header h1 {
    color: #0f172a;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-shadow: none;
}

.page-header p {
    color: #475569;
}

.search-input, .search-select {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 0.55rem .8rem;
    font-size: .82rem;
    color: #1e293b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.search-input:focus, .search-select:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.release-card,
.panel,
.metric-card {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.panel-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.panel-title h2 {
    color: #1e293b;
    text-shadow: none;
}

.panel-title span {
    color: #64748b;
}

.release-card span,
.metric-card span,
.metric-card small {
    color: #64748b;
}

.release-card strong,
.metric-card strong {
    color: #0f172a;
}

th, td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

th {
    color: #475569;
    font-weight: 600;
    letter-spacing: 0;
}

td {
    color: #334155;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: normal;
    text-transform: none;
}

.btn.primary {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(67, 56, 202, 0.9));
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.btn.danger {
    background: rgba(254, 226, 226, 0.6);
    color: #dc2626;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.05);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.btn.primary:hover {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.95), rgba(55, 48, 163, 0.95));
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn.danger:hover {
    background: rgba(254, 226, 226, 0.9);
    border-color: rgba(252, 165, 165, 0.8);
}

.status-pill-ok {
    background: rgba(220, 252, 231, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #166534;
    box-shadow: none;
}

.status-pill-error {
    background: rgba(254, 226, 226, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #991b1b;
    box-shadow: none;
}

.status-pill-empty {
    background: rgba(241, 245, 249, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #475569;
}

.status-pill-draft {
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #475569;
}

.status-pill-pending {
    background: rgba(254, 243, 199, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #92400e;
}

.status-pill-paid {
    background: rgba(219, 234, 254, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
}

.status-pill-complete {
    background: rgba(220, 252, 231, 0.72);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #166534;
}

.status-pill-cancelled {
    background: rgba(254, 226, 226, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #991b1b;
}

.status-pill-deleted {
    background: rgba(229, 231, 235, 0.78);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #374151;
}

.order-row-deleted td {
    color: #64748b;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    color: #334155;
    border-radius: 8px;
}

code, pre {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.modal-card {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.90); /* 提高不透明度，彻底解决背景深色遮罩导致的暗沉灰色问题 */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 16px 40px rgba(31, 38, 135, 0.1);
    border-radius: 16px;
}

.modal-card .panel-title {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.login-form input,
.login-form select,
.login-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
    color: #1e293b;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.login-form input:focus,
.login-form select:focus,
.login-form textarea:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.login-form label {
    color: #475569;
    font-weight: 600;
}

.login-form label > span {
    color: #0f172a;
}

.permission-item {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    color: #334155;
    border-radius: 10px;
}

.topbar-user summary {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 10px;
}

.topbar-user-name {
    color: #0f172a;
    font-weight: 600;
}

.topbar-user-panel {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border-radius: 12px;
}

.topbar-user-panel strong {
    color: #0f172a;
}

.detail-list dd {
    color: #1e293b;
}

/* User editor: keep the complete form visible on desktop while preserving a
   single-column fallback for narrow screens. */
.user-editor-card {
    width: min(1080px, calc(100vw - 48px));
    max-height: calc(100vh - 2rem);
}

.user-editor-form {
    gap: .45rem;
    font-size: .82rem;
}

.user-editor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .42rem .7rem;
}

.user-editor-grid label {
    gap: .2rem;
}

.user-editor-grid label:first-child,
.user-editor-grid label:nth-child(8) {
    grid-column: 1 / -1;
}

.user-editor-grid input,
.user-editor-grid select,
.user-editor-grid textarea {
    min-height: 1.9rem;
    padding: .3rem .55rem;
    border-radius: .65rem;
    line-height: 1.2;
}

.user-editor-grid .user-editor-field-remark {
    grid-column: span 2;
}

.user-editor-grid .user-editor-field-remark textarea {
    height: 1.9rem;
    resize: horizontal;
}

.user-editor-form .validation-summary:empty {
    display: none;
}

.user-editor-form .form-actions {
    justify-content: flex-end;
    margin-top: .15rem;
}

@media (max-width: 760px) {
    .user-editor-card {
        width: 100%;
        max-height: calc(100vh - 2rem);
    }

    .user-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-editor-grid label:first-child,
    .user-editor-grid label:nth-child(8) {
        grid-column: 1 / -1;
    }

    .user-editor-grid .user-editor-field-remark {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .user-editor-grid {
        grid-template-columns: 1fr;
    }

    .user-editor-grid label:first-child,
    .user-editor-grid label:nth-child(8) {
        grid-column: auto;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-bg);
}

.pagination-info {
    color: var(--text-muted);
    font-size: .82rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-pages .btn {
    min-width: 32px;
    padding: 0.25rem 0.5rem;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 0.5rem;
}
