/**
 * Shulevora Pro - System UI Upgrade
 *
 * Loaded after all portal styles to provide a consistent readability,
 * spacing, interaction, and responsive baseline across every module.
 */

:root {
    --font-size-xs: 13px;
    --font-size-sm: 14px;
    --font-size-base: 15px;
    --control-height: 44px;
    --control-padding-x: 14px;
    --content-readable-width: 1600px;
    --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.2);
    --field-border: color-mix(in srgb, var(--border-color) 78%, var(--primary) 22%);
    --field-border-hover: color-mix(in srgb, var(--primary) 48%, var(--border-color));
    --field-bg: var(--bg-card, #fff);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}

body {
    font-size: var(--font-size-base);
    line-height: 1.55;
    background-attachment: scroll;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Keep native selection controls compact across every portal and form. */
:where(input[type="checkbox"], input[type="radio"]) {
    inline-size: 16px !important;
    block-size: 16px !important;
    min-inline-size: 16px !important;
    min-block-size: 16px !important;
    max-inline-size: 16px !important;
    max-block-size: 16px !important;
    padding: 0 !important;
    margin: 0;
    flex: 0 0 16px;
    accent-color: var(--primary, #2563eb);
    vertical-align: middle;
}

/* Custom switches hide the native control and render their own track. */
:where(.switch, .premium-toggle) input[type="checkbox"] {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    min-inline-size: 1px !important;
    min-block-size: 1px !important;
    max-inline-size: 1px !important;
    max-block-size: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

/*
 * Global modern form surface. Specific compact controls such as table cells,
 * checkboxes, radios, ranges, colors, and hidden inputs keep their native
 * module-specific treatment.
 */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not(.input-cell), select, textarea) {
    min-height: var(--control-height) !important;
    padding: 10px var(--control-padding-x) !important;
    border: 1px solid var(--field-border) !important;
    border-radius: 12px !important;
    box-sizing: border-box;
    color: var(--text-main, var(--text-primary, #172033)) !important;
    background-color: var(--field-bg) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255,255,255,0.62) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not(.input-cell), select, textarea):hover {
    border-color: var(--field-border-hover) !important;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not(.input-cell), select, textarea):focus {
    outline: none !important;
    border-color: var(--primary) !important;
    background-color: var(--bg-card, #fff) !important;
    box-shadow: var(--focus-ring), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

/* Suppress browser-rendered credential/clear glyphs that collide with app controls. */
input::-ms-clear,
input::-ms-reveal {
    display: none;
}

input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

/*
 * Legacy templates frequently place decorative Phosphor icons inside form
 * controls. The system-wide form baseline owns field spacing and select
 * arrows, so those old adornments overlap text or render as stray symbols.
 * Hide only non-interactive field adornments placed directly beside controls.
 * Icons inside buttons and other actionable controls remain untouched. Add
 * .keep-field-icon to a wrapper only when a leading field icon is intentional.
 */
:is(#moduleContentPlaceholder, .vibrant-modal, #shulevora-portal-root, .auth-card)
    :where(div, label):not(.keep-field-icon):has(> i[class*="ph-"] + :is(input, select, textarea))
    > i[class*="ph-"],
:is(#moduleContentPlaceholder, .vibrant-modal, #shulevora-portal-root, .auth-card)
    :where(div, label):not(.keep-field-icon):has(> select + i[class*="ph-caret"])
    > i[class*="ph-caret"] {
    display: none !important;
}

:is(#moduleContentPlaceholder, .vibrant-modal, #shulevora-portal-root, .auth-card)
    :where(div, label):not(.keep-field-icon):has(> i[class*="ph-"] + :is(input, select, textarea))
    > :is(input, select, textarea) {
    padding-left: var(--control-padding-x) !important;
}

:where(input, select, textarea):disabled {
    cursor: not-allowed;
    opacity: .62;
    background-color: color-mix(in srgb, var(--field-bg) 84%, #94a3b8 16%) !important;
}

:where(select):not([multiple]) {
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 46px !important;
    background-image: var(--select-arrow) !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px 18px !important;
}

:where(input[type="file"]) {
    padding: 5px !important;
}

:where(input[type="file"])::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

/* Portal content always receives a clear, responsive page gutter. */
#moduleContentPlaceholder.main-content-wrapper {
    width: 100%;
    max-width: var(--content-readable-width);
    padding: clamp(18px, 2.2vw, 34px) !important;
}

/* Parent portal: balanced workspace width with compact gutters */
.parent-portal-active #moduleContentPlaceholder.main-content-wrapper {
    max-width: min(100%, 1240px) !important;
    margin-inline: auto !important;
    padding: clamp(8px, 1.15vw, 16px) clamp(12px, 1.6vw, 24px) 24px !important;
}

@media (max-width: 768px) {
    .parent-portal-active #moduleContentPlaceholder.main-content-wrapper {
        padding: 8px !important;
    }
}

#moduleContentPlaceholder > :first-child {
    margin-top: 0;
}

#moduleContentPlaceholder > :last-child {
    margin-bottom: 0;
}

/* Restrained module heading scale and title-case presentation. */
#moduleContentPlaceholder :is(h1, .page-title, .phc-title, .premium-page-title) {
    font-size: clamp(1.35rem, 1.8vw, 1.8rem) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    text-transform: capitalize !important;
    font-family: var(--font-display) !important;
}

#moduleContentPlaceholder :is(h2, .section-title) {
    font-size: clamp(1.1rem, 1.35vw, 1.4rem) !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: capitalize !important;
    font-family: var(--font-display) !important;
}

#moduleContentPlaceholder :is(h1, h2, .page-title, .phc-title, .premium-page-title, .section-title)::first-letter {
    text-transform: inherit;
}

#moduleContentPlaceholder :is(h3, h4, .card-section-title) {
    letter-spacing: 0 !important;
    text-transform: capitalize !important;
    font-family: var(--font-display) !important;
}

#moduleContentPlaceholder :is(.kpi-label, th, label) {
    text-transform: none;
}

/* Shared readable typography for frequently reused supporting text. */
.phc-subtitle,
.kpi-label,
.kpi-footer,
.card-section-meta,
.detail-group label,
.label-premium,
.gsc-label,
.result-subtitle,
.timeline-date,
.toggle-sub,
.sidebar-search-empty,
.elite-tooltip {
    font-size: var(--font-size-xs) !important;
    line-height: 1.45;
}

.phc-title,
.card-section-title,
.kpi-value,
.gsc-value {
    line-height: 1.2;
}

.elite-brand-tag,
.elite-group-header,
.nav-group-section-header {
    font-size: 11px !important;
    line-height: 1.35;
}

.eni-label,
.nav-link,
.nav-item-m3,
#sidebarSearchInput {
    font-size: var(--font-size-sm) !important;
}

/*
 * Many legacy module templates contain inline micro-text declarations.
 * Raise only clearly undersized textual elements inside page content while
 * leaving icons, status dots, and compact header badges untouched.
 */
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 0.5"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:0.5"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 0.6"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:0.6"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 0.7"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:0.7"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 8px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:8px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 9px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:9px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 10px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:10px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 11px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:11px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size: 12px"],
#moduleContentPlaceholder :is(div, span, p, label, a, button, td, th, small)[style*="font-size:12px"] {
    font-size: var(--font-size-xs) !important;
    line-height: 1.45;
}

/* Controls get a consistent text inset and comfortable interaction target. */
#moduleContentPlaceholder :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not(.input-cell), select, textarea),
.vibrant-modal :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not(.input-cell), select, textarea),
#shulevora-portal-root :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not(.input-cell), select, textarea) {
    min-height: var(--control-height) !important;
    padding: 10px var(--control-padding-x) !important;
    font-size: var(--font-size-sm) !important;
    line-height: 1.45;
    border: 1px solid var(--field-border) !important;
    border-radius: 12px !important;
}

:is(#moduleContentPlaceholder, .vibrant-modal, #shulevora-portal-root) :is(input, select, textarea, .input-premium, .select-premium, .form-control) {
    border-color: var(--field-border) !important;
}

:is(#moduleContentPlaceholder, .vibrant-modal, #shulevora-portal-root) :is(input, select, textarea, .input-premium, .select-premium, .form-control):hover {
    border-color: var(--field-border-hover) !important;
}

:is(#moduleContentPlaceholder, .vibrant-modal, #shulevora-portal-root) :is(input, select, textarea, .input-premium, .select-premium, .form-control):focus {
    border-color: var(--primary) !important;
}

#moduleContentPlaceholder select,
.vibrant-modal select,
#shulevora-portal-root select {
    padding-right: 46px !important;
    border: 1px solid var(--field-border) !important;
    background-color: var(--bg-card, var(--bg-surface-1)) !important;
    background-image: var(--select-arrow) !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px 18px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255,255,255,0.55);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#moduleContentPlaceholder select[multiple],
.vibrant-modal select[multiple],
#shulevora-portal-root select[multiple] {
    padding-right: var(--control-padding-x) !important;
    background-image: none !important;
}

#moduleContentPlaceholder select:hover,
.vibrant-modal select:hover,
#shulevora-portal-root select:hover {
    border-color: var(--field-border-hover) !important;
}

#moduleContentPlaceholder select:has(option[value=""]:checked),
.vibrant-modal select:has(option[value=""]:checked),
#shulevora-portal-root select:has(option[value=""]:checked) {
    color: var(--text-muted) !important;
}

#moduleContentPlaceholder textarea,
.vibrant-modal textarea,
#shulevora-portal-root textarea {
    min-height: 104px !important;
    resize: vertical;
}

#moduleContentPlaceholder :is(input, select, textarea)::placeholder,
.vibrant-modal :is(input, select, textarea)::placeholder,
#shulevora-portal-root :is(input, select, textarea)::placeholder {
    color: var(--text-muted);
    opacity: 0.72;
}

#moduleContentPlaceholder :where(.btn, .btn-premium, button):where(:not(.btn-icon, .btn-table-action, .nav-tab, .btn-sm, .dt-page, .dt-prev, .dt-next)),
.vibrant-modal :where(.btn, .btn-premium, button):where(:not(.btn-icon, .btn-table-action, .nav-tab, .btn-sm, .dt-page, .dt-prev, .dt-next)),
#shulevora-portal-root :where(.btn, .btn-premium, button):where(:not(.btn-icon, .btn-table-action, .nav-tab, .btn-sm, .dt-page, .dt-prev, .dt-next)) {
    min-height: 40px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: var(--font-size-sm);
    line-height: 1.2;
}

#moduleContentPlaceholder :is(.btn-icon, .btn-table-action, .btn-sm, .dt-page, .dt-prev, .dt-next) {
    min-height: 0 !important;
}

:is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px;
    box-shadow: var(--focus-ring) !important;
}

/* Consistent card rhythm and restrained modern depth. */
#moduleContentPlaceholder :is(.premium-card, .compact-card, .metric-card, .glass-card, .vibrant-card, .premium-form-card) {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-card), var(--highlight-inner);
}

#moduleContentPlaceholder :is(.premium-card, .glass-card, .vibrant-card, .premium-form-card) {
    padding: clamp(18px, 1.8vw, 26px) !important;
}

#moduleContentPlaceholder :is(.compact-card, .metric-card, .detail-group, .info-cell) {
    padding: clamp(14px, 1.25vw, 18px) !important;
}

#moduleContentPlaceholder :is(.premium-header-card, .filter-toolbar, .card-section-header, .controls-row, .toolbar-actions) {
    gap: 12px;
}

.premium-table th {
    font-size: var(--font-size-xs) !important;
    padding: 12px 16px !important;
}

.premium-table td {
    font-size: var(--font-size-sm) !important;
    padding: 12px 16px !important;
}

.premium-table tbody tr {
    transition: background-color 0.15s ease;
}

.table-responsive,
.premium-table-wrapper,
.premium-table-container,
.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

@media (max-width: 768px) {
    #moduleContentPlaceholder.main-content-wrapper {
        padding: 16px !important;
    }

    #moduleContentPlaceholder :is(.premium-card, .glass-card, .vibrant-card, .premium-form-card) {
        padding: 16px !important;
        border-radius: var(--radius-lg) !important;
    }

    #moduleContentPlaceholder :is(.premium-header-card, .filter-toolbar, .card-section-header) {
        align-items: stretch !important;
    }

    .premium-table th,
    .premium-table td {
        padding: 11px 13px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Recovery workspace */
.recycle-workspace { display: grid; gap: 16px; }
.recycle-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: clamp(22px, 3vw, 34px); border: 1px solid #dbeafe; border-radius: 22px;
    color: #0f172a; background: radial-gradient(circle at 100% 0, #dbeafe 0, transparent 42%), linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 16px 40px rgba(30, 64, 175, .08);
}
.recycle-hero h1 { margin: 5px 0 7px; }
.recycle-hero p { max-width: 680px; margin: 0; color: #64748b; font-size: .92rem; }
.recycle-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #2563eb; font-size: .75rem; font-weight: 800; }
.recycle-summary { min-width: 168px; padding: 16px 18px; border: 1px solid rgba(37,99,235,.16); border-radius: 16px; background: rgba(255,255,255,.78); }
.recycle-summary strong, .recycle-summary span { display: block; }
.recycle-summary strong { font-size: 1.8rem; color: #1d4ed8; line-height: 1; }
.recycle-summary span { margin-top: 6px; color: #64748b; font-size: .75rem; font-weight: 700; }
.recycle-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px !important; }
.recycle-tabs { display: flex; gap: 5px; }
.recycle-tabs button { border: 0; border-radius: 10px; padding: 9px 12px; color: #64748b; background: transparent; font-size: .8rem; font-weight: 750; cursor: pointer; }
.recycle-tabs button span { margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: #eef2f7; font-size: .7rem; }
.recycle-tabs button.active { color: #fff; background: #2563eb; box-shadow: 0 7px 18px rgba(37,99,235,.22); }
.recycle-tabs button.active span { background: rgba(255,255,255,.2); }
.recycle-search { position: relative; min-width: min(320px, 100%); }
.recycle-search input { width: 100%; }
.recycle-list { display: grid; gap: 10px; }
.recycle-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-card, #fff); box-shadow: 0 5px 18px rgba(15,23,42,.035); }
.recycle-item-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; }
.recycle-item-icon.students { color: #2563eb; background: #eff6ff; }
.recycle-item-icon.staff { color: #7c3aed; background: #f5f3ff; }
.recycle-item-main { min-width: 0; flex: 1; }
.recycle-item-main span { color: var(--text-muted); font-size: .78rem; }
.recycle-item-topline { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.recycle-chip { padding: 2px 7px; border-radius: 999px; color: #475569 !important; background: #f1f5f9; font-size: .66rem !important; font-weight: 800; }
.recycle-item-actions { display: flex; gap: 7px; }
.recycle-delete-forever { min-width: 40px; padding: 0 !important; color: #dc2626; border: 1px solid #fecaca; background: #fff7f7; }
.recycle-empty { padding: 54px 20px !important; text-align: center; }
.recycle-empty > div { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; color: #64748b; background: #f1f5f9; font-size: 1.5rem; }
.recycle-empty h2, .recycle-empty p { margin: 0; }
.recycle-empty p { margin-top: 6px; color: var(--text-muted); font-size: .85rem; }

@media (max-width: 720px) {
    .recycle-hero, .recycle-toolbar, .recycle-item { align-items: stretch; flex-direction: column; }
    .recycle-summary, .recycle-search { min-width: 100%; }
    .recycle-tabs { overflow-x: auto; }
    .recycle-item-actions { justify-content: flex-end; }
}

/* School communication workspace */
.communication-workspace {
    --comm-blue: #2563eb;
    --comm-indigo: #4f46e5;
    --comm-emerald: #059669;
    --comm-violet: #7c3aed;
    --comm-rose: #e11d48;
    color: #172033;
}
.communication-workspace .comm-shell { margin-top: 0; }
.communication-workspace .comm-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    margin-bottom: 14px !important; padding: clamp(20px, 2.6vw, 30px) !important;
    border: 1px solid #dbeafe !important; border-radius: 22px !important;
    background: radial-gradient(circle at 92% 12%, rgba(37,99,235,.16), transparent 34%), linear-gradient(135deg, #fff 0%, #f7faff 100%) !important;
    box-shadow: 0 18px 42px rgba(30,64,175,.08) !important;
}
.communication-workspace .comm-hero h1 { margin: 5px 0 6px; color: #172033; }
.communication-workspace .comm-hero p { max-width: 720px; margin: 0; color: #64748b; font-size: .9rem; font-weight: 600; }
.communication-workspace .comm-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--comm-blue); font-size: .73rem; font-weight: 850; }
.communication-workspace .comm-actions { display: flex; gap: 8px; }
.communication-workspace .comm-tabs {
    display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 5px !important;
    margin-bottom: 14px !important; padding: 5px !important; border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important; background: rgba(248,250,252,.86) !important;
}
.communication-workspace .comm-tabs .tab-item {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 42px; border: 1px solid transparent; border-radius: 10px; color: #64748b;
    background: transparent; font-size: .8rem; font-weight: 800; cursor: pointer; transition: .18s ease;
}
.communication-workspace .comm-tabs .tab-item:hover { color: #1d4ed8; background: #fff; }
.communication-workspace .comm-tabs .tab-item.active { color: #fff; border-color: #2563eb; background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 8px 18px rgba(37,99,235,.22); }
.communication-workspace #comm-content-root .premium-card {
    border: 1px solid #e2e8f0 !important; border-radius: 18px !important; background-color: #fff;
    box-shadow: 0 10px 26px rgba(15,23,42,.055) !important;
}
.communication-workspace #comm-content-root .centered-container > div:first-child[style*="grid-template-columns: repeat(3"] .premium-card {
    min-height: 108px; border: 0 !important; color: #fff !important;
}
.communication-workspace #comm-content-root .centered-container > div:first-child[style*="grid-template-columns: repeat(3"] .premium-card:nth-child(1) { background: linear-gradient(135deg, #2563eb, #4f46e5) !important; }
.communication-workspace #comm-content-root .centered-container > div:first-child[style*="grid-template-columns: repeat(3"] .premium-card:nth-child(2) { background: linear-gradient(135deg, #059669, #0d9488) !important; }
.communication-workspace #comm-content-root .centered-container > div:first-child[style*="grid-template-columns: repeat(3"] .premium-card:nth-child(3) { background: linear-gradient(135deg, #7c3aed, #9333ea) !important; }
.communication-workspace #comm-content-root [style*="background: var(--vibrant-blue)"] { background: var(--comm-blue) !important; }
.communication-workspace #comm-content-root [style*="background: var(--vibrant-emerald)"] { background: var(--comm-emerald) !important; }
.communication-workspace #comm-content-root [style*="background: var(--vibrant-purple)"] { background: var(--comm-violet) !important; }
.communication-workspace #comm-content-root [style*="background: var(--vibrant-rose)"] { background: var(--comm-rose) !important; }
.communication-workspace #comm-content-root h3 { color: #273449 !important; }
.communication-workspace #comm-content-root .grid-table th { color: #475569 !important; background: #f8fafc; }
.communication-workspace #comm-content-root .grid-table td { color: #334155; }

@media (max-width: 900px) {
    .communication-workspace .comm-hero { align-items: flex-start; flex-direction: column; }
    .communication-workspace .comm-tabs { grid-template-columns: repeat(3, 1fr); overflow-x: auto; }
    .communication-workspace #comm-content-root [style*="grid-template-columns: repeat(3"],
    .communication-workspace #comm-content-root [style*="grid-template-columns: 1.5fr 1fr"],
    .communication-workspace #comm-content-root [style*="grid-template-columns: 320px 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
    .communication-workspace .comm-tabs { display: flex !important; overflow-x: auto; }
    .communication-workspace .comm-tabs .tab-item { min-width: 118px; }
}
