:root {
    --c-primary: #0056b3;
    --c-primary-dark: #004a99;
    --c-primary-deep: #003f80;
    --c-primary-soft: rgba(0, 86, 179, .10);
    --c-ink: #101828;
    --c-ink-2: #475467;
    --c-ink-3: #667085;
    --c-line: #eef0f4;
    --c-line-2: #dfe3ea;
    --c-bg: #f5f7fa;
    --c-card: #ffffff;
    --c-danger: #b42318;
    --c-danger-soft: #fef3f2;
    --c-success: #067647;
    --c-success-soft: #ecfdf3;
    --c-warn: #b54708;
    --c-warn-soft: #fffaeb;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 14px;
    --r-xl: 16px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .04);
    --sh-2: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .05);
    --nav-w: 232px;
    --nav-w-min: 76px;
}

.dashboard-layout {
    background: var(--c-bg);
}

.dashboard-sidebar {
    width: var(--nav-w);
    background: var(--c-card);
    color: var(--c-ink-2);
    padding: 0;
    border-right: 1px solid var(--c-line);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width .24s cubic-bezier(.4, 0, .2, 1);
}

.dashboard-sidebar-header {
    padding: 0;
    margin: 0 0 10px;
    border-bottom: 0;
    background: var(--c-primary);
}

.dashboard-sidebar-header > div {
    padding: 14px 14px 14px 16px;
    transition: padding .24s cubic-bezier(.4, 0, .2, 1);
}

.dashboard-brand-link {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    flex: none;
    max-width: 160px;
    transition: max-width .24s cubic-bezier(.4, 0, .2, 1), gap .24s cubic-bezier(.4, 0, .2, 1);
}

.dashboard-brand-link span {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.dashboard-brand-link:hover {
    color: #fff;
}

.dashboard-brand-link i {
    font-size: 1.15rem;
    flex: none;
}

.dashboard-collapse-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    flex: none;
    transition: background .15s ease, transform .24s cubic-bezier(.4, 0, .2, 1);
}

.dashboard-collapse-btn:hover {
    background: rgba(255, 255, 255, .26);
}

.dashboard-collapse-btn i {
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}

.dashboard-sidebar-menu {
    padding: 6px 10px 14px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    transition: padding .24s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
}

.dashboard-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--c-ink-2);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, padding .24s cubic-bezier(.4, 0, .2, 1), gap .24s cubic-bezier(.4, 0, .2, 1);
}

.dashboard-sidebar-menu a span {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transition: max-width .24s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
}

.dashboard-sidebar-menu a i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex: none;
}

.dashboard-sidebar-menu a:hover {
    background: rgba(16, 24, 40, .05);
    color: var(--c-ink);
    transform: none;
}

.dashboard-sidebar-menu a.active {
    background: var(--c-primary);
    color: #fff;
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 86, 179, .18);
}

.dashboard-sidebar-footer {
    padding: 12px 16px;
    margin-top: 0;
    border-top: 1px solid var(--c-line);
    color: var(--c-ink-3);
    font-size: 12px;
    text-align: left;
    line-height: 1.5;
    max-height: 120px;
    overflow: hidden;
    opacity: 1;
    transition: max-height .24s cubic-bezier(.4, 0, .2, 1), padding .24s cubic-bezier(.4, 0, .2, 1), opacity .12s ease;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-footer,
html.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-footer {
    display: block;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-top-color: transparent;
}

.dashboard-copyright {
    color: var(--c-primary);
    text-decoration: none;
}

.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 10px 6px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    transition: padding .24s cubic-bezier(.4, 0, .2, 1), margin .24s cubic-bezier(.4, 0, .2, 1), gap .24s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
    overflow: hidden;
}

.dashboard-user-avatar {
    width: 34px;
    height: 34px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 1rem;
}

.dashboard-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 150px;
    overflow: hidden;
    opacity: 1;
    transition: max-width .24s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
}

.dashboard-user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-user-role {
    font-size: 11.5px;
    color: var(--c-ink-3);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dashboard-header-sub {
    font-size: 12px;
    color: var(--c-ink-3);
    line-height: 1.35;
}

.dashboard-sidebar.collapsed,
html.sidebar-collapsed .dashboard-sidebar {
    width: var(--nav-w-min);
}

.dashboard-sidebar.collapsed .dashboard-brand-link,
html.sidebar-collapsed .dashboard-sidebar .dashboard-brand-link {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-header,
html.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-header {
    padding: 0;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-header > div,
html.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-header > div {
    padding: 14px 0;
    justify-content: center !important;
}

.dashboard-sidebar.collapsed .dashboard-collapse-btn,
html.sidebar-collapsed .dashboard-sidebar .dashboard-collapse-btn {
    transform: none;
    margin: 0 auto;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-menu,
html.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-menu {
    padding: 6px 8px 14px;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-menu a,
html.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-menu a {
    justify-content: flex-start;
    padding: 10px 0 10px 21px;
    gap: 0;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-menu a span,
html.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-menu a span {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    pointer-events: none;
}

.dashboard-sidebar.collapsed .dashboard-user-card,
html.sidebar-collapsed .dashboard-sidebar .dashboard-user-card {
    justify-content: flex-start;
    padding: 8px 0 8px 12px;
    margin: 10px 8px 6px;
    gap: 0;
}

.dashboard-sidebar.collapsed .dashboard-user-info,
html.sidebar-collapsed .dashboard-sidebar .dashboard-user-info {
    display: flex;
    max-width: 0;
    opacity: 0;
}

.dashboard-main-content {
    margin-left: var(--nav-w);
    padding: 20px 24px 32px;
    background: var(--c-bg);
    min-height: 100vh;
    transition: margin-left .24s cubic-bezier(.4, 0, .2, 1);
}

.dashboard-sidebar.collapsed + .dashboard-main-content,
html.sidebar-collapsed .dashboard-main-content {
    margin-left: var(--nav-w-min);
}

.dashboard-header {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
    padding: 12px 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--c-line);
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-ink);
    letter-spacing: -.01em;
    line-height: 1.45;
}

.dashboard-home-btn {
    background: var(--c-primary);
    border-radius: var(--r-sm);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
}

.dashboard-home-btn:hover {
    background: var(--c-primary-dark);
    transform: none;
    box-shadow: none;
}

.dashboard-logout-btn {
    background: #fff;
    color: var(--c-danger);
    border: 1px solid #fee4e2;
    border-radius: var(--r-sm);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
}

.dashboard-logout-btn:hover {
    background: var(--c-danger-soft);
    transform: none;
}

.dashboard-card {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    margin-bottom: 16px;
    overflow: hidden;
}

.dashboard-card-header {
    padding: 13px 16px;
    background: var(--c-card);
    border-bottom: 1px solid var(--c-line);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-ink);
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-card-header i {
    color: var(--c-primary);
}

.dashboard-card-body {
    padding: 16px;
}

.dashboard-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 10px;
}

.dashboard-table {
    font-size: 13.5px;
    color: var(--c-ink-2);
}

.dashboard-table thead th {
    background: #f8fafc;
    color: var(--c-ink-3);
    font-weight: 600;
    font-size: 12.5px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-line);
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #f4f6f9;
    color: var(--c-ink-2);
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background: #f9fbff;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-btn {
    border-radius: var(--r-sm);
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.dashboard-btn-primary {
    background: var(--c-primary);
    color: #fff;
}

.dashboard-btn-primary:hover {
    background: var(--c-primary-dark);
}

.dashboard-btn-success {
    background: var(--c-success-soft);
    color: var(--c-success);
    border-color: #d1fadf;
}

.dashboard-btn-warning {
    background: var(--c-warn-soft);
    color: var(--c-warn);
    border-color: #fedf89;
}

.dashboard-btn-info {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-color: #cfe1f7;
}

.dashboard-btn-danger {
    background: var(--c-danger-soft);
    color: var(--c-danger);
    border-color: #fee4e2;
}

.dashboard-btn-danger:hover {
    background: #fee4e2;
}

.dashboard-btn-sm {
    padding: 5px 10px;
    font-size: 12.5px;
    border-radius: 7px;
}

.dashboard-form-control {
    border: 1px solid var(--c-line-2);
    border-radius: var(--r-sm);
    padding: 8px 11px;
    font-size: 13.5px;
    color: var(--c-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}

.dashboard-form-control:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.dashboard-form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-ink-2);
    margin-bottom: 6px;
    display: block;
}

.dashboard-alert {
    border-radius: var(--r-md);
    border: 1px solid var(--c-line);
    border-left-width: 3px;
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 16px;
    box-shadow: var(--sh-1);
}

.dashboard-alert-success {
    background: var(--c-success-soft);
    border-color: #d1fadf;
    border-left-color: var(--c-success);
    color: #05603a;
}

.dashboard-alert-danger {
    background: var(--c-danger-soft);
    border-color: #fee4e2;
    border-left-color: var(--c-danger);
    color: #912018;
}

.dashboard-alert-warning {
    background: var(--c-warn-soft);
    border-color: #fedf89;
    border-left-color: var(--c-warn);
    color: #93370d;
}

.dashboard-pagination {
    padding: 12px 16px;
    border-top: 1px solid var(--c-line);
    gap: 6px;
}

.dashboard-page-link {
    min-width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line-2);
    color: var(--c-ink-2);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-decoration: none;
    background: #fff;
}

.dashboard-page-link:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.dashboard-page-link.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.dashboard-page-info {
    font-size: 13px;
    color: var(--c-ink-3);
}

.dashboard-modal-content {
    border-radius: var(--r-xl);
    box-shadow: 0 24px 60px rgba(16, 24, 40, .18);
    border: 1px solid var(--c-line);
    overflow: hidden;
}

.dashboard-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--c-line);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-ink);
}

.dashboard-modal-body {
    padding: 20px;
}

.dashboard-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--c-line);
    background: #fcfcfd;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-filter-form {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 12px 14px;
    box-shadow: var(--sh-1);
}

.dashboard-filter-item label {
    font-size: 12.5px;
    color: var(--c-ink-3);
    margin-bottom: 5px;
    display: block;
}

.dashboard-divider {
    border-top: 1px solid var(--c-line);
    margin: 14px 0;
}

.dashboard-text-muted {
    color: var(--c-ink-3);
}

.dashboard-text-success {
    color: var(--c-success);
}

.dashboard-text-danger {
    color: var(--c-danger);
}

.dashboard-text-primary {
    color: var(--c-primary);
}

.select2-container--default .select2-selection--single {
    border: 1px solid var(--c-line-2) !important;
    border-radius: var(--r-sm) !important;
    height: 38px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.index-page-container {
    max-width: 1320px;
    padding: 16px 20px 32px;
}

.dashboard-tabs {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 5px;
    gap: 4px;
    margin-bottom: 16px;
    box-shadow: var(--sh-1);
}

.tab-btn {
    border-radius: var(--r-sm);
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-ink-2);
    gap: 7px;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn:hover {
    background: rgba(16, 24, 40, .04);
}

.tab-btn.active {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 86, 179, .18);
}

.index-filter-bar,
.role-filter-bar {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 10px 14px;
    box-shadow: var(--sh-1);
    margin-bottom: 16px;
}

.filter-label {
    font-size: 12.5px;
    color: var(--c-ink-3);
}

.period-select,
.filter-input {
    border: 1px solid var(--c-line-2);
    border-radius: var(--r-sm);
    padding: 7px 10px;
    font-size: 13.5px;
    color: var(--c-ink);
    background: #fff;
}

.period-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.btn-primary,
.btn-secondary {
    border-radius: var(--r-sm);
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--c-primary-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--c-ink-2);
    border-color: var(--c-line-2);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #cfd4dc;
}

.index-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-ink);
    margin: 4px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.index-section-title i {
    color: var(--c-primary);
}

.index-honor-grid,
.index-role-grid {
    gap: 14px;
}

.index-honor-card,
.index-role-card {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    overflow: hidden;
}

.index-honor-header,
.role-card-header {
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.index-honor-body,
.role-card-body {
    padding: 12px 14px;
}

.honor-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 13.5px;
    color: var(--c-ink-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.honor-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.honor-name {
    color: var(--c-ink);
    font-weight: 500;
}

.honor-score {
    color: var(--c-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.honor-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 12px;
    margin-right: 6px;
}

.honor-empty {
    padding: 20px 0;
    text-align: center;
    color: var(--c-ink-3);
    font-size: 13px;
}

.ranking-table-container,
.table-container {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    overflow: hidden;
}

.ranking-table {
    font-size: 13.5px;
}

.ranking-table thead th {
    background: #f8fafc;
    color: var(--c-ink-3);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-line);
    white-space: nowrap;
}

.ranking-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #f4f6f9;
    color: var(--c-ink-2);
}

.ranking-table tbody tr:hover {
    background: #f9fbff;
}

.ranking-score {
    color: var(--c-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ranking-page-link,
.pagination-link {
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line-2);
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-ink-2);
    font-size: 13px;
    text-decoration: none;
    background: #fff;
}

.ranking-page-link.active,
.pagination-link.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.role-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-range-badge {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-radius: 980px;
    padding: 5px 12px;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rank-badge {
    border-radius: 6px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-weight: 600;
}

.btn-view-detail {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-radius: var(--r-sm);
    padding: 5px 12px;
    font-size: 12.5px;
    border: 0;
    cursor: pointer;
}

.btn-view-detail:hover {
    background: rgba(0, 86, 179, .16);
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        width: var(--nav-w-min);
    }

    .dashboard-sidebar .dashboard-brand-link span,
    .dashboard-sidebar .dashboard-sidebar-menu a span,
    .dashboard-sidebar .dashboard-user-info,
    .dashboard-sidebar .dashboard-sidebar-footer {
        display: none;
    }

    .dashboard-sidebar .dashboard-user-card {
        justify-content: center;
        padding: 8px 0;
        margin: 10px 8px 6px;
    }

    .dashboard-sidebar .dashboard-sidebar-header > div {
        justify-content: center;
        padding: 12px 8px;
    }

    .dashboard-sidebar .dashboard-sidebar-menu a {
        justify-content: center;
        padding: 10px 0;
    }

    .dashboard-main-content {
        margin-left: var(--nav-w-min);
        padding: 16px;
    }

    .dashboard-sidebar.collapsed + .dashboard-main-content {
        margin-left: var(--nav-w-min);
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .dashboard-main-content {
        padding: 12px;
    }

    .dashboard-header {
        padding: 10px 12px;
    }

    .dashboard-header h2 {
        font-size: 13.5px;
    }

    .dashboard-card-body {
        padding: 12px;
    }

    .index-page-container {
        padding: 12px;
    }
}

.profile-page-container {
    max-width: 1320px;
    padding: 20px 24px 32px;
}

.profile-profile-card,
.profile-stat-card,
.gift-card,
.profile-score-table-container,
.profile-password-card,
.profile-filter-bar,
.profile-empty-state {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    box-shadow: var(--sh-1);
}

.profile-profile-card {
    border-radius: var(--r-lg);
    padding: 18px;
    margin-bottom: 16px;
}

.profile-profile-card h3,
.profile-password-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 14px;
    letter-spacing: -.01em;
}

.profile-profile-card h3 i,
.profile-password-card h3 i {
    color: var(--c-primary);
}

.profile-profile-info {
    gap: 14px;
}

.profile-info-item {
    font-size: 13.5px;
    color: var(--c-ink-2);
}

.profile-info-item i {
    color: var(--c-primary);
    font-size: 1rem;
}

.profile-stats-overview {
    gap: 14px;
    margin-top: 16px;
}

.profile-stat-card {
    border-radius: var(--r-lg);
    padding: 16px;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.profile-stat-card:hover {
    transform: none;
    box-shadow: var(--sh-2);
    border-color: var(--c-line-2);
}

.profile-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.profile-icon-primary {
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.profile-icon-success {
    background: var(--c-success-soft);
    color: var(--c-success);
}

.profile-icon-warning {
    background: var(--c-warn-soft);
    color: var(--c-warn);
}

.profile-stat-label {
    font-size: 12.5px;
    color: var(--c-ink-3);
    margin-bottom: 6px;
}

.profile-stat-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--c-ink);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-ink);
    margin: 20px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-line);
    letter-spacing: -.01em;
}

.section-title i {
    color: var(--c-primary);
}

.exchange-message,
.pwd-message {
    padding: 11px 14px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    margin-bottom: 14px;
}

.exchange-message.success,
.pwd-message.success {
    background: var(--c-success-soft);
    color: #05603a;
    border: 1px solid #d1fadf;
}

.exchange-message.error,
.pwd-message.error {
    background: var(--c-danger-soft);
    color: #912018;
    border: 1px solid #fee4e2;
}

.gift-grid {
    gap: 14px;
    margin-bottom: 16px;
}

.gift-card {
    border-radius: var(--r-lg);
    padding: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.gift-card:hover {
    transform: none;
    border-color: var(--c-primary);
    box-shadow: var(--sh-2);
}

.gift-checkbox {
    accent-color: var(--c-primary);
}

.gift-name {
    font-size: 14.5px;
    color: var(--c-ink);
    margin-bottom: 4px;
}

.gift-category {
    font-size: 12px;
    color: var(--c-ink-3);
    margin-bottom: 10px;
}

.gift-score {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.exchange-button-container {
    margin: 16px 0;
}

.exchange-btn {
    background: var(--c-primary);
    border-radius: var(--r-sm);
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 500;
}

.exchange-btn:hover:not(:disabled) {
    background: var(--c-primary-dark);
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 86, 179, .18);
}

.exchange-btn:disabled {
    background: #d0d5dd;
    box-shadow: none;
}

.profile-filter-bar {
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-bottom: 16px;
    gap: 12px;
}

.profile-filter-item label {
    font-size: 12.5px;
    color: var(--c-ink-3);
}

.profile-filter-item input {
    border: 1px solid var(--c-line-2);
    border-radius: var(--r-sm);
    padding: 7px 10px;
    font-size: 13.5px;
    color: var(--c-ink);
}

.profile-filter-item input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.profile-filter-bar button {
    background: var(--c-primary);
    border-radius: var(--r-sm);
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 500;
}

.profile-filter-bar button:hover {
    background: var(--c-primary-dark);
}

.profile-reset-btn {
    background: #f3f4f6 !important;
    color: var(--c-ink-2) !important;
}

.profile-reset-btn:hover {
    background: #e4e7ec !important;
}

.profile-score-table-container {
    border-radius: var(--r-lg);
    margin-bottom: 16px;
}

.profile-score-table thead {
    background: #f8fafc;
    border-bottom: 1px solid var(--c-line);
}

.profile-score-table th {
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-ink-3);
}

.profile-score-table td {
    padding: 11px 12px;
    font-size: 13.5px;
    color: var(--c-ink-2);
    border-bottom: 1px solid #f4f6f9;
}

.profile-score-table tbody tr:hover {
    background: #f9fbff;
}

.profile-pagination {
    gap: 6px;
    margin: 16px 0;
}

.profile-pagination a {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line-2);
    color: var(--c-ink-2);
    font-size: 13px;
    background: #fff;
}

.profile-pagination a:hover {
    background: #f9fbff;
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.profile-pagination a.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.profile-page-info {
    font-size: 13px;
    color: var(--c-ink-3);
}

.profile-empty-state {
    border-radius: var(--r-lg);
    padding: 40px 20px;
}

.profile-empty-state i {
    color: #d0d5dd;
}

.profile-empty-state p {
    color: var(--c-ink-3);
    font-size: 13.5px;
}

.profile-password-card {
    border-radius: var(--r-lg);
    padding: 18px;
    margin: 16px 0;
}

.profile-password-field label {
    font-size: 12.5px;
    color: var(--c-ink-2);
}

.profile-password-field input {
    border: 1px solid var(--c-line-2);
    border-radius: var(--r-sm);
    padding: 8px 11px;
    font-size: 13.5px;
    color: var(--c-ink);
}

.profile-password-field input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.profile-password-btn {
    background: var(--c-primary);
    border-radius: var(--r-sm);
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 500;
}

.profile-password-btn:hover {
    background: var(--c-primary-dark);
    transform: none;
}

.dashboard-text-warning {
    color: var(--c-warn);
    font-weight: 600;
}

.dashboard-text-success {
    color: var(--c-success);
    font-weight: 600;
}

.dashboard-text-danger {
    color: var(--c-danger);
    font-weight: 600;
}

.header .user-info i,
.header .btn-profile {
    color: var(--c-primary);
}

.header .user-info a.btn-login,
.header .user-info a.btn-logout {
    background: var(--c-primary);
    border-radius: var(--r-sm);
    box-shadow: none;
}

.header .user-info a.btn-login:hover,
.header .user-info a.btn-logout:hover {
    background: var(--c-primary-dark);
    transform: none;
}

.header .user-info a.btn-logout,
.header .user-info a.btn-logout:hover {
    background: var(--c-danger) !important;
}

@media (max-width: 768px) {
    .profile-page-container {
        padding: 12px;
    }

    .profile-stat-value {
        font-size: 19px;
    }
}

.dashboard-owner-cell {
    width: 300px;
}

.dashboard-owner-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 340px;
}

.dashboard-owner-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: #f2f6fd;
    border: 1px solid #dbe7fb;
    color: #1d4e89;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-owner-more {
    display: inline-block;
}

.dashboard-owner-more[open] {
    flex-basis: 100%;
    width: 100%;
}

.dashboard-owner-more > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--c-primary-soft);
    border: 1px solid transparent;
    color: var(--c-primary);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.dashboard-owner-more > summary::-webkit-details-marker {
    display: none;
}

.dashboard-owner-more > summary:hover {
    background: rgba(0, 86, 179, .16);
}

.dashboard-owner-more[open] > summary {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.dashboard-owner-more-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.dashboard-team-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.dashboard-team-label {
    flex: none;
    font-size: 13px;
    color: var(--c-ink-3);
    line-height: 26px;
}

.dashboard-team-list {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 92px;
    overflow-y: auto;
    padding-right: 4px;
}

.dashboard-team-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border-radius: 13px;
    background: #f3f5f9;
    border: 1px solid var(--c-line-2);
    color: var(--c-ink-2);
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dashboard-owner-cell {
        width: auto;
    }

    .dashboard-owner-list {
        max-width: 220px;
    }

    .dashboard-team-wrap {
        flex-direction: column;
        gap: 4px;
    }

    .dashboard-team-label {
        line-height: 1.4;
    }

    .dashboard-team-list {
        width: 100%;
        max-height: 112px;
    }
}

.index-banner-carousel {
    position: relative;
    background: linear-gradient(120deg, #0056b3 0%, #1467c4 52%, #2b8fe0 100%);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 86, 179, .16);
}

.index-banner-carousel::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.index-banner-track {
    display: grid;
    max-width: 100%;
}

.index-banner-slide {
    grid-area: 1 / 1;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 310px;
    padding: 28px 32px 44px;
    border-radius: 14px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}

.index-banner-slide.has-bg {
    background-color: #0b2f5c;
}

.index-banner-slide.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, rgba(3, 18, 38, var(--banner-overlay, .45)) 0%, rgba(3, 18, 38, calc(var(--banner-overlay, .45) * .55)) 100%);
    pointer-events: none;
}

.index-banner-slide.has-bg .index-banner-text,
.index-banner-slide.has-bg .index-banner-link {
    position: relative;
    z-index: 1;
}

.index-banner-slide.has-bg .index-banner-title {
    font-size: 26px;
    letter-spacing: -.02em;
}

.index-banner-slide.has-bg .index-banner-desc {
    font-size: 14px;
    max-width: 760px;
    -webkit-line-clamp: 3;
}

.index-banner-carousel:has(.index-banner-slide.has-bg)::after {
    display: none;
}

.index-banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.index-banner-text {
    min-width: 0;
    flex: 1 1 auto;
}

.index-banner-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.01em;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-banner-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .86);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.index-banner-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}

.index-banner-link:hover {
    background: rgba(255, 255, 255, .26);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.index-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.index-banner-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.index-banner-dot:hover {
    background: rgba(255, 255, 255, .72);
}

.index-banner-dot.active {
    width: 18px;
    background: #fff;
}

.dashboard-banner-title {
    font-weight: 600;
    color: var(--c-ink);
}

.dashboard-banner-desc {
    display: inline-block;
    max-width: 320px;
    color: var(--c-ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.dashboard-banner-link {
    color: var(--c-primary);
    text-decoration: none;
    word-break: break-all;
}

.dashboard-banner-link:hover {
    text-decoration: underline;
}

.dashboard-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dashboard-banner-title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.dashboard-banner-title-cell .dashboard-banner-title {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-banner-thumb {
    display: block;
    width: 96px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.dashboard-banner-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .92);
    border: 0;
    background: linear-gradient(120deg, #0056b3 0%, #1467c4 52%, #2b8fe0 100%);
}

.dashboard-banner-upload {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dashboard-banner-upload-preview {
    flex: 0 0 168px;
    width: 168px;
    height: 88px;
    padding: 6px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #8a94a6;
}

.dashboard-banner-upload-preview img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.dashboard-banner-upload-body {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-banner-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    cursor: pointer;
}

.dashboard-banner-clear input {
    margin: 0;
    cursor: pointer;
}

.dashboard-form-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #8a94a6;
}

.dashboard-switch-form {
    margin: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.dashboard-switch {
    position: relative;
    width: 34px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #d0d5dd;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

.dashboard-switch:hover {
    background: #b9c0cc;
}

.dashboard-switch.on {
    background: var(--c-success);
}

.dashboard-switch.on:hover {
    background: #055c37;
}

.dashboard-switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.dashboard-switch-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .22);
    transition: transform .18s ease;
}

.dashboard-switch.on .dashboard-switch-dot {
    transform: translateX(16px);
}

@media (max-width: 768px) {
    .index-banner-carousel {
        padding: 0;
        border-radius: 12px;
    }

    .index-banner-slide {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        height: 220px;
        padding: 20px 18px 40px;
        border-radius: 12px;
    }

    .index-banner-slide.has-bg .index-banner-title {
        font-size: 19px;
    }

    .index-banner-slide.has-bg .index-banner-desc {
        -webkit-line-clamp: 2;
    }

    .index-banner-title {
        font-size: 15px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .dashboard-banner-desc {
        max-width: 180px;
    }
}
