.sa-nav-item .sa-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    margin-left: auto;
    flex-shrink: 0;
}

.sa-nav-item .sa-nav-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.sa-nav-item .sa-nav-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.sa-nav-item .sa-nav-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.sa-nav-item {
    transition: all 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.sa-nav-item:hover {
    background: var(--dark-surface-hover, rgba(255, 255, 255, 0.07));
    color: #e2e8f0;
}

.sa-nav-item.active {
    border-left-color: #7c3aed;
    background: var(--purple-bg-subtle, rgba(139, 92, 246, 0.08));
    color: #a78bfa;
    font-weight: 600;
}

.settings-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.settings-quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    text-decoration: none;
    color: var(--gs-text-primary, #fff);
    transition: all 0.2s ease;
    cursor: pointer;
}

.settings-quick-link:hover {
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.settings-quick-link:hover .quick-link-icon {
    color: #a78bfa;
}

.settings-quick-link:hover .quick-link-chevron {
    transform: translateX(3px);
    color: #a78bfa;
}

.quick-link-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    transition: color 0.2s ease;
}

.quick-link-content {
    flex: 1;
    min-width: 0;
}

.quick-link-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--gs-text-primary, #fff);
    margin-bottom: 2px;
}

.quick-link-desc {
    font-size: 12px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    line-height: 1.4;
}

.quick-link-chevron {
    font-size: 18px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.4));
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gs-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    margin-bottom: 12px;
    padding-bottom: 0;
}

.glass-form-panel {
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.glass-form-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    height: 40px;
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.glass-form-panel-header:hover {
    background: rgba(139, 92, 246, 0.12);
}

.glass-form-panel-header h3 {
    margin: 0;
    font-size: var(--section-title-size, 15px);
    font-weight: 600;
    color: var(--gs-text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.glass-form-panel-header .panel-collapse-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
}

.glass-form-panel-header .panel-collapse-icon.collapsed {
    transform: rotate(-90deg);
}

.glass-form-panel-body {
    padding: 20px;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
}

.glass-form-panel-body.collapsed {
    max-height: 0 !important;
    padding: 0 20px !important;
    opacity: 0;
}

.glass-form-panel .gs-toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
}

.glass-form-panel .gs-toggle-group:last-child {
    margin-bottom: 0;
}

.gs-toggle-label {
    flex: 1;
}

.gs-toggle-label .toggle-title {
    font-weight: 600;
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 13px;
}

.gs-toggle-label .toggle-desc {
    font-size: 12px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    margin-top: 3px;
}

.gs-toggle {
    position: relative;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.gs-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.gs-toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    transition: background 0.25s ease;
}

.gs-toggle-track::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.gs-toggle input:checked + .gs-toggle-track {
    background: #7c3aed;
}

.gs-toggle input:checked + .gs-toggle-track::before {
    transform: translateX(22px);
}

.gs-restart-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    margin-left: 8px;
}

.gs-sticky-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px 12px 0 0;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.gs-sticky-save-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gs-sticky-save-bar .save-indicator {
    font-size: 12px;
    color: #fbbf24;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gs-btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.gs-btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.gs-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gs-btn-ghost {
    background: transparent;
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gs-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.gs-model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gs-model-card {
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 2px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gs-model-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-1px);
}

.gs-model-card.selected {
    border-color: #7c3aed;
    box-shadow: 0 0 0 1px #7c3aed, 0 4px 16px rgba(124, 58, 237, 0.3);
}

.gs-model-card .model-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gs-text-primary, #fff);
    margin-bottom: 4px;
}

.gs-model-card .model-provider {
    font-size: 12px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    margin-bottom: 12px;
}

.gs-model-card .cost-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.gs-model-card .cost-badge.low {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.gs-model-card .cost-badge.medium {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.gs-model-card .cost-badge.high {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.gs-model-card .capability-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.gs-model-card .capability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.gs-model-card .capability-dot.active {
    background: #7c3aed;
}

.gs-quality-control {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 16px;
}

.gs-quality-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    white-space: nowrap;
}

.gs-quality-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg, #4ade80 0%, #fbbf24 50%, #f87171 100%);
    border-radius: 3px;
    outline: none;
}

.gs-quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #7c3aed;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gs-quality-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #7c3aed;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gs-billing-plan-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 35, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.gs-billing-plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
}

.gs-billing-plan-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .gs-billing-plan-row {
        grid-template-columns: 1fr 1fr;
    }
}

.gs-billing-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gs-billing-metric .metric-label {
    font-size: var(--label-size, 11px);
    font-weight: var(--label-weight, 600);
    text-transform: uppercase;
    letter-spacing: var(--label-spacing, 0.6px);
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
}

.gs-billing-metric .metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gs-text-primary, #fff);
}

.gs-billing-metric .metric-value.large {
    font-size: var(--section-title-size, 24px);
}

.gs-billing-metric .metric-sub {
    font-size: 12px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
}

.gs-billing-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gs-billing-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.gs-billing-status.trial {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.gs-billing-status.past_due {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.gs-billing-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.gs-usage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.gs-usage-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.3s ease;
}

.gs-usage-bar-fill.green {
    background: #10b981;
}

.gs-usage-bar-fill.amber {
    background: #f59e0b;
}

.gs-usage-bar-fill.red {
    background: #ef4444;
}

.gs-credit-balance {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.gs-credit-balance .balance-number {
    font-size: var(--section-title-size, 24px);
    font-weight: 700;
    color: var(--gs-text-primary, #fff);
}

.gs-credit-balance .balance-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 600;
}

.gs-credit-balance .balance-trend.up {
    color: #4ade80;
}

.gs-credit-balance .balance-trend.down {
    color: #f87171;
}

.gs-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.gs-countdown .days-number {
    font-weight: 700;
    color: var(--gs-text-primary, #fff);
    font-size: 1.1em;
}

.gs-countdown .days-label {
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
}

.gs-events-table {
    width: 100%;
    border-collapse: collapse;
}

.gs-events-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: var(--label-size, 11px);
    font-weight: var(--label-weight, 600);
    text-transform: uppercase;
    letter-spacing: var(--label-spacing, 0.6px);
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    border-bottom: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.gs-events-table th:hover {
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
}

.gs-events-table th .sort-indicator {
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.5;
}

.gs-events-table th.sorted .sort-indicator {
    opacity: 1;
    color: #a78bfa;
}

.gs-events-table td {
    padding: var(--table-cell-padding, 8px 12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: var(--data-size, 13px);
}

.gs-events-table tr:hover td {
    background: rgba(139, 92, 246, 0.04);
}

.gs-events-table .event-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.gs-events-table .event-type-badge.run {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.gs-events-table .event-type-badge.ocr {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.gs-events-table .event-type-badge.credit {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.gs-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gs-export-btn:hover {
    border-color: #a78bfa;
    color: #a78bfa;
}

.gs-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.gs-health-card {
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gs-health-card .health-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gs-health-card .health-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gs-text-primary, #fff);
}

.gs-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gs-health-dot.green {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.gs-health-dot.amber {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.gs-health-dot.red {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

.gs-health-card .health-detail {
    font-size: 11px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
}

.gs-tab-bar {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 24px;
}

.gs-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.gs-tab:hover {
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
    background: rgba(255, 255, 255, 0.04);
}

.gs-tab.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    font-weight: 600;
}

.gs-tab-panel {
    display: none;
}

.gs-tab-panel.active {
    display: block;
}

.gs-role-matrix {
    width: 100%;
    border-collapse: collapse;
}

.gs-role-matrix th {
    padding: 10px 14px;
    text-align: center;
    font-size: var(--label-size, 11px);
    font-weight: var(--label-weight, 600);
    text-transform: uppercase;
    letter-spacing: var(--label-spacing, 0.6px);
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    border-bottom: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    position: relative;
}

.gs-role-matrix th:first-child {
    text-align: left;
}

.gs-role-matrix th .role-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 8px 12px;
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 11px;
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.gs-role-matrix th:hover .role-tooltip {
    display: block;
}

.gs-role-matrix td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: var(--data-size, 13px);
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
    transition: background 0.15s ease;
}

.gs-role-matrix td:first-child {
    text-align: left;
    font-weight: 500;
}

.gs-role-matrix tr:hover td {
    background: rgba(139, 92, 246, 0.06);
}

.gs-role-matrix td.changed {
    background: rgba(245, 158, 11, 0.1);
}

.gs-role-matrix input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.gs-review-queue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.gs-review-card {
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gs-review-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gs-review-card .review-doc-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gs-text-primary, #fff);
    margin-bottom: 8px;
}

.gs-review-card .review-meta {
    font-size: 12px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    margin-bottom: 6px;
}

.gs-review-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.gs-review-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.gs-review-status.approved {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.gs-review-status.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.gs-student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.gs-review-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.gs-review-chip.up-to-date {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.gs-review-chip.needs-review {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.gs-review-chip.never-reviewed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.gs-lln-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
}

.gs-lln-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: rgba(139, 92, 246, 0.3);
    min-height: 4px;
    transition: height 0.3s ease;
    position: relative;
}

.gs-lln-bar.filled {
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
}

.gs-attention-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    margin-bottom: 16px;
}

.gs-attention-alert.critical {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.gs-attention-alert .alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.gs-attention-alert .alert-content {
    flex: 1;
}

.gs-attention-alert .alert-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--gs-text-primary, #fff);
    margin-bottom: 2px;
}

.gs-attention-alert .alert-desc {
    font-size: 12px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
}

.gs-attention-alert .alert-action {
    background: transparent;
    border: 1px solid currentColor;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #fbbf24;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.gs-attention-alert.critical .alert-action {
    color: #f87171;
}

.gs-attention-alert .alert-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes gs-skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.gs-skeleton {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    animation: gs-skeleton-pulse 1.5s ease-in-out infinite;
}

.gs-skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.gs-skeleton-text.short {
    width: 40%;
}

.gs-skeleton-text.medium {
    width: 65%;
}

.gs-skeleton-text.long {
    width: 85%;
}

.gs-skeleton-card {
    height: 120px;
    border-radius: 12px;
}

.gs-skeleton-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gs-skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gs-skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.gs-empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.gs-empty-state .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gs-text-primary, #fff);
    margin-bottom: 6px;
}

.gs-empty-state .empty-desc {
    font-size: 13px;
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    max-width: 360px;
    line-height: 1.5;
}

.gs-empty-state .empty-action {
    margin-top: 16px;
}

.gs-inline-dropdown {
    background: var(--dark-input-bg, rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--gs-text-primary, #fff);
    padding: 8px 12px;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.gs-inline-dropdown:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.student-header.gs-polished {
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    box-shadow: none;
}

.student-header.gs-polished h2 {
    color: var(--gs-text-primary, #fff);
}

.student-header.gs-polished .back-link {
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
}

.student-header.gs-polished .back-link:hover {
    color: #a78bfa;
}

.panel.gs-polished {
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    box-shadow: none;
}

.panel.gs-polished .panel-header {
    background: rgba(139, 92, 246, 0.12);
    border-bottom: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
}

.panel.gs-polished .panel-body {
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
}

.save-bar.gs-polished {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.save-bar.gs-polished .btn-save {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.save-bar.gs-polished .save-status.unsaved {
    color: #fbbf24;
}

.save-bar.gs-polished .save-status.saved {
    color: #4ade80;
}

.billing-section.gs-polished {
    background: var(--gs-surface-2, rgba(30, 30, 50, 0.95));
    border: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    box-shadow: none;
}

.billing-section.gs-polished h3 {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.gs-sparkline {
    display: inline-flex;
    align-items: flex-end;
    gap: 1px;
    height: 20px;
    vertical-align: middle;
}

.gs-sparkline-bar {
    width: 3px;
    border-radius: 1px;
    background: rgba(139, 92, 246, 0.4);
    min-height: 2px;
}

.gs-rule-toggle {
    position: relative;
    width: 36px;
    height: 18px;
}

.gs-rule-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.gs-rule-toggle .toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    transition: background 0.2s ease;
}

.gs-rule-toggle .toggle-track::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.gs-rule-toggle input:checked + .toggle-track {
    background: #7c3aed;
}

.gs-rule-toggle input:checked + .toggle-track::before {
    transform: translateX(18px);
}

.gs-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gs-filter-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: var(--dark-input-bg, rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--gs-text-primary, #fff);
    font-size: 13px;
}

.gs-filter-bar input[type="text"]:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.gs-filter-bar select {
    padding: 8px 12px;
    background: var(--dark-input-bg, rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--gs-text-primary, #fff);
    font-size: 13px;
}

.gs-filter-bar select:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
}

.gs-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.gs-type-badge.validation {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.gs-type-badge.mapping {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

.gs-type-badge.content {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.gs-job-queue-table {
    width: 100%;
    border-collapse: collapse;
}

.gs-job-queue-table th {
    padding: 8px 12px;
    text-align: left;
    font-size: var(--label-size, 11px);
    font-weight: var(--label-weight, 600);
    text-transform: uppercase;
    letter-spacing: var(--label-spacing, 0.6px);
    color: var(--gs-text-muted, rgba(255, 255, 255, 0.5));
    border-bottom: 1px solid var(--gs-card-border, rgba(255, 255, 255, 0.08));
}

.gs-job-queue-table td {
    padding: var(--table-cell-padding, 8px 12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--gs-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: var(--data-size, 13px);
}

.gs-job-queue-table tr:hover td {
    background: rgba(139, 92, 246, 0.04);
}

.gs-age-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.gs-age-badge.fresh {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.gs-age-badge.stale {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.gs-age-badge.old {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
