:root {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-subtle: #e8f0ff;
    --color-primary-strong: #173da6;

    --color-accent: #0f766e;
    --color-accent-subtle: #e6fffb;

    --color-text: #102033;
    --color-text-secondary: #5e6b7f;
    --color-text-muted: #8c97a8;

    --color-bg: #f4f7fb;
    --color-surface: rgba(255, 255, 255, 0.92);
    --color-surface-solid: #ffffff;
    --color-surface-muted: #f8fbff;

    --color-border: #d9e2ef;
    --color-border-light: #ebf1f8;

    --color-sidebar-bg: #0e1726;
    --color-sidebar-bg-soft: #13203a;
    --color-sidebar-text: #9db0cf;
    --color-sidebar-active: rgba(255, 255, 255, 0.1);
    --color-sidebar-hover: rgba(255, 255, 255, 0.06);

    --color-success: #0f9f6e;
    --color-warning: #d97706;
    --color-danger: #dc3f5b;
    --color-info: #0ea5e9;

    --shadow-xs: 0 2px 10px rgba(12, 23, 42, 0.04);
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 20px 60px rgba(15, 23, 42, 0.12);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.08), transparent 24%),
        var(--color-bg);
    color: var(--color-text);
    font-family: "Inter", "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--color-primary-hover);
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, var(--color-sidebar-bg) 0%, var(--color-sidebar-bg-soft) 100%);
    color: var(--color-sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: width 0.22s ease;
    z-index: 1040;
    overflow: hidden;
}

.sidebar-header {
    height: 78px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8fbff;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.9));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.brand-mark i {
    font-size: 18px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-subtext {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
}

.sidebar-menu {
    height: calc(100vh - 78px - 70px);
    overflow-y: auto;
    padding: 16px 12px 14px;
}

.sidebar-section-label {
    padding: 10px 12px 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.34);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 4px;
    color: var(--color-sidebar-text);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-sidebar .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    opacity: 0.86;
}

.app-sidebar .nav-link:hover {
    background: var(--color-sidebar-hover);
    color: #ffffff;
    transform: translateX(2px);
}

.app-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(14, 165, 233, 0.16));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa, #93c5fd);
}

.app-sidebar .sidebar-group-toggle {
    position: relative;
}

.submenu-arrow {
    font-size: 11px;
    transition: transform 0.18s ease;
}

.sidebar-group.expanded .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 0 0 10px;
    padding: 6px 0 0 38px;
    display: none;
}

.sidebar-submenu.show {
    display: block;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    margin: 3px 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-submenu-link:hover {
    background: var(--color-sidebar-hover);
    color: #ffffff;
}

.sidebar-submenu-link.active {
    background: rgba(37, 99, 235, 0.2);
    color: #ffffff;
}

.sidebar-footer {
    height: 70px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #f8fbff;
}

.app-main.authenticated {
    margin-left: 272px;
    min-height: 100vh;
    transition: margin-left 0.22s ease;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    backdrop-filter: blur(20px);
    background: rgba(244, 247, 251, 0.84);
    border-bottom: 1px solid rgba(217, 226, 239, 0.72);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.topbar-context {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.topbar-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.topbar-cta {
    padding-inline: 16px;
}

.topbar-user {
    min-height: 38px;
    padding-inline: 10px 12px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.page-shell {
    padding: 28px;
}

.flash-stack {
    margin-bottom: 18px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 1035;
}

.sidebar-collapsed .app-sidebar {
    width: 78px;
}

.sidebar-collapsed .app-main.authenticated {
    margin-left: 78px;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .menu-text,
.sidebar-collapsed .sidebar-section-label,
.sidebar-collapsed .sidebar-footer {
    display: none;
}

.sidebar-collapsed .sidebar-header {
    padding-inline: 18px;
}

.sidebar-collapsed .app-sidebar .nav-link {
    justify-content: center;
    padding: 12px 10px;
}

.sidebar-collapsed .app-sidebar .nav-link.active::before,
.sidebar-collapsed .submenu-arrow,
.sidebar-collapsed .sidebar-submenu {
    display: none !important;
}

.card {
    border: 1px solid rgba(217, 226, 239, 0.9);
    border-radius: var(--radius);
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-xs);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    border-color: #c9d7ea;
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: var(--radius) var(--radius) 0 0 !important;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(255, 255, 255, 0.82));
}

.card-header h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.card-body {
    padding: 22px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 24px 28px;
    border: 1px solid rgba(217, 226, 239, 0.9);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.88)),
        var(--color-surface-solid);
    box-shadow: var(--shadow-sm);
}

.page-header h4 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.page-header p {
    margin: 8px 0 0;
    color: var(--color-text-secondary);
}

.page-header .page-kicker {
    display: none;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.metric-card {
    padding: 18px 18px 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.9));
    box-shadow: var(--shadow-xs);
}

.metric-label {
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.metric-value {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.metric-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.filter-panel {
    padding: 20px 22px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-xs);
}

.filter-panel .form-label {
    margin-bottom: 7px;
}

.filter-panel-compact {
    padding: 18px 22px;
}

.filter-primary-row {
    display: grid;
    grid-template-columns: minmax(220px, 2.2fr) repeat(2, minmax(160px, 1fr)) auto;
    gap: 14px;
    align-items: center;
}

.filter-primary-row.filter-primary-row-wide {
    grid-template-columns: minmax(220px, 2.3fr) minmax(160px, 1.1fr) auto;
}

.filter-compact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-compact-field .form-control,
.filter-compact-field .form-select {
    min-height: 44px;
}

.filter-actions-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-advanced-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--color-border);
}

.filter-advanced-row[hidden] {
    display: none !important;
}

.filter-toggle-btn {
    white-space: nowrap;
}

.filter-toggle-btn i {
    transition: transform 0.2s ease;
}

.filter-toggle-btn.expanded i {
    transform: rotate(180deg);
}

.filter-bar {
    padding: 20px 22px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-xs);
    margin-bottom: 20px;
}

.filter-bar .form-label {
    margin-bottom: 7px;
}

.module-switch {
    max-width: 220px;
    min-height: 42px;
    font-size: 13px;
}

.tab-section {
    border-bottom-color: var(--color-border);
}

.tab-section .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.tab-section .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: transparent;
}

.stat-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 126px;
    padding: 22px 20px 18px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
    box-shadow: var(--shadow-xs);
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -22px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 68%);
}

.stat-accent {
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
}

.stat-value {
    position: relative;
    z-index: 1;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.stat-label {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 0;
}

.table-toolbar h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.table-toolbar small {
    color: var(--color-text-muted);
}

.table-responsive {
    border-radius: 0 0 var(--radius) var(--radius);
}

.table {
    margin-bottom: 0;
}

.table th {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    background: rgba(248, 251, 255, 0.72);
    white-space: nowrap;
}

.table td {
    padding: 14px;
    vertical-align: middle;
    font-size: 13px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
}

.table-hover > tbody > tr:hover > * {
    background: rgba(232, 240, 255, 0.34);
}

.item-title {
    font-weight: 700;
    color: var(--color-text);
}

.item-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.status-badge {
    min-width: 68px;
    text-align: center;
}

.btn {
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    white-space: nowrap;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 10px;
}

.btn-primary {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
    border-color: var(--color-primary-hover);
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
}

.btn-light {
    color: var(--color-text-secondary);
    border-color: var(--color-border);
    background: rgba(255, 255, 255, 0.82);
}

.btn-light:hover {
    color: var(--color-text);
    border-color: #cbd6e4;
    background: #ffffff;
}

.form-control,
.form-select {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--color-border);
    padding: 10px 14px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.62);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

.detail-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.detail-block {
    padding: 18px;
    border: 1px solid var(--color-border-light);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.72);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.info-tile {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--color-border-light);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.82));
}

.section-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.activity-stream {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    position: relative;
    padding: 16px 18px 16px 48px;
    border: 1px solid var(--color-border-light);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92));
}

.activity-item::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), #60a5fa);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.activity-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.activity-meta small {
    color: var(--color-text-muted);
}

.summary-panel {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-xs);
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
}

.editor-section + .editor-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border-light);
}

.editor-section h6 {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
}

.editor-side-card {
    position: sticky;
    top: 96px;
}

.editor-helper {
    font-size: 12px;
    color: var(--color-text-muted);
}

.editor-highlight {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.editor-soft-block {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.system-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 20px;
}

.system-note-card,
.system-stat-card {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
    box-shadow: var(--shadow-xs);
}

.system-note-card {
    padding: 20px 22px;
}

.system-note-card h6,
.system-stat-card h6 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.system-note-card p,
.system-note-card li {
    color: var(--color-text-secondary);
}

.system-note-card ul {
    margin: 0;
    padding-left: 18px;
}

.system-note-card code {
    word-break: break-all;
}

.system-mobile-list {
    display: none;
    padding: 0 18px 18px;
}

.system-record-card {
    padding: 18px;
    border: 1px solid var(--color-border-light);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.82);
}

.system-record-card + .system-record-card {
    margin-top: 14px;
}

.system-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.system-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.system-record-cell {
    padding: 12px 14px;
    border: 1px solid var(--color-border-light);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.system-record-cell strong {
    display: block;
    margin-top: 4px;
    color: var(--color-text);
    word-break: break-word;
}

.system-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.system-config-group + .system-config-group {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border-light);
}

.system-config-group h6 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.system-config-badge {
    min-width: 76px;
    text-align: center;
}

.system-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.system-form-actions .btn {
    min-width: 120px;
}

.system-edit-table td {
    vertical-align: top;
}

.system-cell-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.system-cell-stack .item-meta {
    margin-top: 0;
}

.system-edit-table .form-control,
.system-edit-table .form-select {
    width: 100%;
}

.system-inline-switch {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.system-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.system-row-actions .btn {
    min-width: 88px;
}

.system-empty-select-note {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--color-border);
}

.summary-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.empty-state {
    padding: 56px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 24px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 28px;
}

.alert {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-xs);
    padding: 14px 16px;
}

.dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
}

.dropdown-item {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
}

.dropdown-item:hover {
    background: var(--color-surface-muted);
}

.pagination {
    gap: 6px;
}

.pagination .page-link {
    border-radius: 12px;
    border-color: var(--color-border);
    color: var(--color-text-secondary);
    padding: 7px 12px;
    font-size: 12px;
}

.pagination .page-item.active .page-link {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.batch-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--color-border-light);
    background: rgba(248, 251, 255, 0.82);
}

.batch-bar.show {
    display: flex;
}

.batch-count {
    color: var(--color-primary);
    font-weight: 700;
}

.batch-bar-top {
    margin: 0 22px 16px;
    padding: 14px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(240, 246, 255, 0.9));
}

.batch-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.batch-actions-group .form-select {
    width: 240px;
}

.shadow-sm {
    box-shadow: var(--shadow-xs) !important;
}

.shadow {
    box-shadow: var(--shadow-sm) !important;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1200px) {
    .page-shell {
        padding: 20px;
    }

    .page-header {
        padding: 22px;
    }
}

@media (max-width: 992px) {
    .app-sidebar {
        width: 78px;
    }

    .app-main.authenticated {
        margin-left: 78px;
    }

    .brand-copy,
    .menu-text,
    .sidebar-section-label,
    .sidebar-footer {
        display: none;
    }

    .app-sidebar .nav-link {
        justify-content: center;
    }

    .app-sidebar .sidebar-submenu,
    .submenu-arrow {
        display: none !important;
    }

    .app-topbar {
        padding: 16px 18px;
    }

    .topbar-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .app-sidebar {
        width: 272px;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .app-main.authenticated,
    .sidebar-collapsed .app-main.authenticated {
        margin-left: 0;
    }

    body.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
        box-shadow: var(--shadow-md);
    }

    body.sidebar-mobile-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .page-shell {
        padding: 16px;
    }

    .page-header,
    .app-topbar,
    .batch-bar,
    .page-actions,
    .topbar-right {
        flex-wrap: wrap;
    }

    .page-header {
        border-radius: 22px;
        padding: 18px;
    }

    .filter-panel-compact {
        padding: 16px 18px;
    }

    .filter-primary-row,
    .filter-primary-row.filter-primary-row-wide,
    .filter-advanced-row {
        grid-template-columns: 1fr;
    }

    .filter-actions-inline {
        justify-content: stretch;
    }

    .filter-actions-inline .btn,
    .filter-actions-inline a {
        flex: 1 1 auto;
    }

    .batch-bar-top {
        margin: 0 16px 16px;
    }

    .batch-actions-group {
        width: 100%;
    }

    .batch-actions-group .form-select,
    .batch-actions-group .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-context {
        min-width: 0;
    }

    .topbar-title {
        font-size: 17px;
    }

    .hero-metrics,
    .info-grid,
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-side-card {
        position: static;
    }

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

    .system-mobile-list {
        display: block;
    }

    .system-record-grid {
        grid-template-columns: 1fr;
    }

.table-responsive {
    font-size: 12px;
}
}

.level-badge-bronze {
    background: linear-gradient(135deg, #a16207, #d97706);
    color: #fff;
}

.level-badge-silver {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    color: #0f172a;
}

.level-badge-gold {
    background: linear-gradient(135deg, #d97706, #facc15);
    color: #422006;
}

.level-badge-platinum {
    background: linear-gradient(135deg, #64748b, #cbd5e1);
    color: #fff;
}

.level-badge-diamond {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.1), transparent 24%),
        linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%);
}

.auth-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 420px);
    align-items: stretch;
    border: 1px solid var(--color-border);
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(22px);
}

.auth-hero {
    position: relative;
    padding: 56px 48px;
    background:
        radial-gradient(circle at top left, rgba(90, 117, 255, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
    color: var(--color-text);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.46), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.auth-hero > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(14, 165, 233, 0.9));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
    font-size: 24px;
    color: #ffffff;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-brand-copy strong {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.auth-brand-copy span {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.auth-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.auth-hero p {
    margin: 16px 0 0;
    max-width: 420px;
    color: var(--color-text-secondary);
    font-size: 15px;
}

.auth-points {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 226, 239, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    color: var(--color-text-secondary);
}

.auth-points i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    flex: 0 0 auto;
}

.auth-panel {
    padding: 40px 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
    border-left: 1px solid rgba(217, 226, 239, 0.82);
}

.auth-panel-head {
    margin-bottom: 24px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.auth-panel-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-panel-head p {
    margin: 8px 0 0;
    color: var(--color-text-secondary);
}

.auth-panel .input-group-text {
    background: rgba(248, 251, 255, 0.92);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    border-radius: 14px 0 0 14px;
    min-width: 46px;
    justify-content: center;
}

.auth-panel .form-control {
    border-color: var(--color-border);
    min-height: 46px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 14px 14px 0;
}

.auth-panel .form-control:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-panel .input-group .form-control:not(:focus) {
    box-shadow: none;
}

.auth-panel .form-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.auth-submit {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
}

.auth-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.auth-captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-captcha-image {
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
}

.auth-panel .alert {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
}

.contact-meta-card .summary-item {
    align-items: flex-start;
    gap: 12px;
}

.contact-meta-card .summary-item strong {
    text-align: right;
}

@media (max-width: 992px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero,
    .auth-panel {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 16px;
    }

    .auth-shell {
        border-radius: 24px;
    }

    .auth-captcha-row {
        grid-template-columns: 1fr;
    }

    .auth-captcha-box {
        justify-content: space-between;
    }
}

body {
    background:
        radial-gradient(circle at top left, rgba(112, 141, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #f6f7fb 0%, #f3f5fb 100%);
}

body,
button,
input,
select,
textarea {
    font-family: "Inter", "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.metric-value,
.stat-value,
.editor-highlight,
.dashboard-hero-stat-value,
.dashboard-metric-value,
.dashboard-chart-kpi-value,
.dashboard-rank-value,
.topbar-title,
.page-header h4,
.table td,
.badge,
.btn,
.form-control,
.form-select {
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
}

.app-sidebar {
    width: 258px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.96));
    color: #7a819b;
    border-right: 1px solid #ebeef7;
    box-shadow: 18px 0 48px rgba(112, 121, 165, 0.05);
}

.sidebar-header {
    height: 84px;
    padding: 22px 20px 16px;
    border-bottom: 1px solid #f0f2f8;
}

.sidebar-brand {
    gap: 14px;
    color: var(--color-text);
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: linear-gradient(180deg, #6a85ff 0%, #5872f3 100%);
    box-shadow: 0 14px 32px rgba(88, 114, 243, 0.22);
}

.brand-mark i {
    font-size: 20px;
}

.brand-text {
    font-size: 16px;
    color: #1d2438;
}

.brand-subtext {
    color: #97a0bb;
}

.sidebar-menu {
    height: calc(100vh - 84px - 76px);
    padding: 18px 14px;
}

.sidebar-section-label {
    padding: 8px 12px 10px;
    color: #717b99;
    letter-spacing: 0.08em;
}

.app-sidebar .nav-link {
    gap: 12px;
    margin-bottom: 6px;
    padding: 11px 14px;
    color: #414d6b;
    border-radius: 16px;
}

.app-sidebar .nav-link i {
    color: #55617f;
}

.app-sidebar .nav-link:hover {
    background: #f4f6ff;
    color: #394565;
    transform: none;
}

.app-sidebar .nav-link.active {
    background: linear-gradient(180deg, #edf1ff 0%, #f4f7ff 100%);
    color: #3657d6;
    box-shadow: inset 0 0 0 1px #e4eaff;
}

.app-sidebar .nav-link.active i,
.app-sidebar .nav-link:hover i {
    color: inherit;
}

.app-sidebar .nav-link.active::before {
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: linear-gradient(180deg, #6c86ff 0%, #91a7ff 100%);
}

.sidebar-submenu {
    padding: 6px 0 0 30px;
}

.sidebar-submenu-link {
    color: #4f5b78;
    border-radius: 14px;
}

.sidebar-submenu-link:hover {
    background: #f5f7fd;
    color: #40507a;
}

.sidebar-submenu-link.active {
    background: #eef2ff;
    color: #3657d6;
}

.sidebar-footer {
    height: 76px;
    padding: 16px 20px 20px;
    border-top: 1px solid #f0f2f8;
    background: rgba(255, 255, 255, 0.9);
}

.sidebar-user-role {
    color: #717b99;
}

.sidebar-user-name {
    color: #20283d;
    font-size: 14px;
}

.app-main.authenticated {
    margin-left: 258px;
}

.app-topbar {
    padding: 18px 24px;
    background: rgba(246, 247, 251, 0.88);
    border-bottom: 1px solid #ebeef7;
    backdrop-filter: blur(16px);
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border-color: #e9edf8;
    background: rgba(255, 255, 255, 0.92);
}

.topbar-eyebrow {
    color: #a2aac1;
}

.topbar-title {
    font-size: 22px;
    color: #1f2537;
}

.topbar-cta {
    padding-inline: 18px;
}

.topbar-user {
    min-height: 40px;
    padding-inline: 12px 14px;
    border-color: #e9edf8;
    background: rgba(255, 255, 255, 0.92);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: #eef2ff;
    color: #5573ff;
}

.page-shell {
    padding: 24px;
}

.page-header {
    margin-bottom: 18px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-header h4 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-header p {
    margin-top: 6px;
    max-width: 720px;
    color: #7c849f;
}

.page-kicker {
    margin-bottom: 12px;
    padding: 7px 12px;
    background: #eef2ff;
    color: #5573ff;
    letter-spacing: 0.04em;
}

.card {
    border: 1px solid #eaedf6;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 36px rgba(88, 97, 140, 0.05);
    backdrop-filter: none;
}

.card:hover {
    border-color: #e2e7f5;
    box-shadow: 0 16px 40px rgba(88, 97, 140, 0.08);
}

.card-header {
    padding: 20px 22px;
    border-bottom: 1px solid #f0f2f8;
    border-radius: 24px 24px 0 0 !important;
    background: transparent;
}

.card-body {
    padding: 22px;
}

.filter-panel,
.filter-bar,
.summary-panel,
.metric-card,
.detail-block,
.info-tile,
.activity-item,
.editor-soft-block,
.system-note-card,
.system-stat-card,
.system-record-card {
    border-color: #eaedf6;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(88, 97, 140, 0.04);
}

.filter-panel,
.filter-bar {
    border-radius: 24px;
}

.table-toolbar {
    padding: 20px 22px 0;
}

.table-toolbar h6 {
    font-size: 15px;
}

.table th {
    padding: 12px 16px;
    color: #929ab3;
    border-bottom: 1px solid #eef1f7;
    background: transparent;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid #f2f4fa;
}

.table-hover > tbody > tr:hover > * {
    background: #f8faff;
}

.item-title {
    font-size: 14px;
}

.item-meta {
    color: #98a0b8;
}

.badge {
    padding: 7px 12px;
    font-size: 11px;
}

.btn {
    border-radius: 14px;
    padding: 8px 16px;
}

.btn-primary {
    border-color: #5a75ff;
    background: linear-gradient(180deg, #6984ff 0%, #5872f3 100%);
    box-shadow: 0 12px 24px rgba(88, 114, 243, 0.18);
}

.btn-primary:hover {
    border-color: #4d67ea;
    background: linear-gradient(180deg, #5f79ff 0%, #4d67ea 100%);
}

.btn-light {
    color: #5f6884;
    border-color: #e7ebf5;
    background: rgba(255, 255, 255, 0.96);
}

.btn-light:hover {
    color: #2d3550;
    border-color: #dfe4f1;
    background: #ffffff;
}

.form-control,
.form-select {
    min-height: 46px;
    border-color: #e5e9f3;
    background: #fbfcff;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(90, 117, 255, 0.58);
    box-shadow: 0 0 0 4px rgba(90, 117, 255, 0.1);
}

.empty-state {
    color: #8f97b1;
}

.empty-state i {
    background: #eef2ff;
    color: #5a75ff;
}

.dropdown-menu {
    border-color: #eaedf6;
    box-shadow: 0 18px 42px rgba(88, 97, 140, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.dropdown-item:hover {
    background: #f6f8ff;
}

.batch-bar {
    background: #fafbff;
}

.batch-bar-top {
    border-color: #ebeff7;
    background: #fafbff;
}

.pagination .page-link {
    border-color: #e6eaf4;
    background: #ffffff;
}

.pagination .page-item.active .page-link {
    border-color: #5a75ff;
    background: #5a75ff;
    box-shadow: 0 10px 22px rgba(88, 114, 243, 0.16);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(140, 149, 184, 0.22);
}

@media (max-width: 992px) {
    .app-sidebar {
        width: 78px;
    }

    .app-main.authenticated {
        margin-left: 78px;
    }
}

@media (max-width: 768px) {
    .app-sidebar {
        width: 258px;
    }

    .app-topbar {
        padding: 16px 18px;
    }

    .page-shell {
        padding: 18px;
    }
}

.page-header {
    align-items: flex-end;
    gap: 20px;
}

.page-actions {
    gap: 12px;
}

.page-actions .btn,
.table td .btn,
.table td form {
    white-space: nowrap;
}

.page-header .badge {
    border-color: #e4e8f3 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #63708c !important;
}

.filter-panel,
.filter-bar {
    position: relative;
    overflow: visible;
    z-index: 20;
}

.filter-panel::before,
.filter-bar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 72px;
    background: linear-gradient(180deg, rgba(97, 122, 255, 0.05), rgba(97, 122, 255, 0));
    pointer-events: none;
}

.filter-panel > *,
.filter-bar > * {
    position: relative;
    z-index: 1;
}

.ts-wrapper {
    width: 100%;
}

.ts-dropdown {
    z-index: 1080;
}

.filter-panel .form-select,
.filter-bar .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238b96b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
}

.filter-panel .form-select:focus,
.filter-bar .form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235a75ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.filter-compact-field .form-control::placeholder {
    color: #adb4c8;
}

.filter-advanced-row {
    padding-top: 18px;
    border-top-style: solid;
    border-top-color: #edf0f7;
}

.filter-actions-inline .btn,
.filter-actions-inline a {
    min-width: 92px;
}

.table-toolbar {
    align-items: flex-end;
}

.table-toolbar small {
    display: block;
    max-width: 480px;
    line-height: 1.6;
    color: #97a0b8;
}

.table-responsive {
    border-radius: 0 0 24px 24px;
}

.table th:first-child,
.table td:first-child {
    padding-left: 18px;
}

.table th:last-child,
.table td:last-child {
    padding-right: 18px;
}

.table td .btn + .btn,
.table td .btn + form,
.table td form + .btn,
.table td form + form {
    margin-left: 6px;
}

.table td form {
    display: inline-flex;
}

.status-badge {
    min-width: 74px;
    padding-inline: 10px;
    border-radius: 999px;
}

.hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.metric-card {
    position: relative;
    padding: 20px;
    border: 1px solid #e8ecf6;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(104, 125, 255, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.96));
}

.metric-label {
    color: #9098b1;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.metric-value {
    margin-top: 10px;
    font-size: 28px;
    color: #1f2537;
}

.metric-note {
    margin-top: 8px;
    color: #8e97b0;
}

.section-stack {
    gap: 20px;
}

.info-grid {
    gap: 16px;
}

.info-tile {
    min-height: 94px;
    border-radius: 20px;
    border-color: #e9edf6;
    box-shadow: 0 10px 24px rgba(88, 97, 140, 0.04);
}

.detail-block {
    border-radius: 20px;
    border-color: #e9edf6;
}

.summary-panel {
    border-radius: 24px;
    padding: 22px;
}

.summary-panel h6 {
    font-size: 15px;
    font-weight: 700;
    color: #21283d;
}

.summary-item {
    align-items: flex-start;
}

.summary-item span {
    color: #8f97b0;
}

.summary-item strong {
    color: #20283d;
    text-align: right;
}

.editor-layout {
    grid-template-columns: minmax(0, 1.72fr) minmax(310px, 0.92fr);
    gap: 22px;
    align-items: start;
}

.editor-layout > .card,
.editor-layout .editor-side-card {
    border-radius: 26px;
}

.editor-layout .card-header {
    padding-bottom: 16px;
}

.editor-layout .card-header h6,
.editor-section h6 {
    color: #20283d;
}

.editor-section + .editor-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top-color: #edf0f7;
}

.editor-soft-block {
    border-radius: 20px;
}

.editor-helper,
.form-text {
    color: #97a0b8;
    font-size: 12px;
    line-height: 1.6;
}

.editor-highlight {
    font-size: 30px;
    color: #20283d;
}

.form-control.bg-light,
.form-select.bg-light,
.form-control-plaintext {
    border-radius: 14px;
}

.empty-state {
    padding: 60px 24px;
}

.empty-state h6 {
    font-size: 16px;
    color: #20283d;
}

.alert {
    border-radius: 18px;
}

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