body.topic-portal-page:not(.space-theme) {
    box-sizing: border-box;
    min-height: 100vh;
    padding-left: 274px;
    background:
        radial-gradient(circle at 88% 8%, rgba(52, 120, 189, 0.09), transparent 25rem),
        radial-gradient(circle at 10% 85%, rgba(242, 189, 82, 0.09), transparent 22rem),
        #f2f7fd;
    color: #193452;
    font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.topic-portal-page:not(.space-theme) .video-background,
body.topic-portal-page:not(.space-theme) .bg-overlay {
    display: none;
}

body.topic-portal-page:not(.space-theme) .content {
    width: min(1220px, 100%);
    margin-right: auto;
    margin-left: auto;
    padding: 28px 24px 56px;
}

body.topic-portal-page:not(.space-theme) .page-container {
    width: min(1220px, 100%);
    margin-right: auto;
    margin-left: auto;
    padding: 28px 24px 56px;
}

body.topic-portal-page:not(.space-theme) main.flex-1 {
    width: min(1220px, 100%);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding: 28px 24px 56px;
}

body.topic-portal-page:not(.space-theme) :is(.hero-main, .hero-side, .section-card, .metric-card, .timeline-item, .collaboration-shell, .content-card) {
    border: 1px solid #dce8f4;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(35, 75, 120, 0.08);
    color: #193452;
}

body.topic-portal-page:not(.space-theme) :is(.hero-main, .hero-side) {
    padding: clamp(24px, 3vw, 38px);
}

body.topic-portal-page:not(.space-theme) .hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-style: normal;
    line-height: 1.08;
}

body.topic-portal-page:not(.space-theme) .hero-description,
body.topic-portal-page:not(.space-theme) .hero-tagline {
    color: #607890;
}

body.topic-portal-page:not(.space-theme) .section-card,
body.topic-portal-page:not(.space-theme) .metric-card,
body.topic-portal-page:not(.space-theme) .timeline-item {
    border-radius: 16px;
}

body.topic-portal-page:not(.space-theme) .content-card {
    padding: clamp(24px, 4vw, 48px);
}

body.topic-portal-page:not(.space-theme) :is(.section-title, .hero-title) {
    letter-spacing: -0.055em;
}

body.topic-portal-page:not(.space-theme) .section-title {
    color: #193452;
    background: none;
    -webkit-text-fill-color: currentColor;
}

body.topic-portal-page:not(.space-theme) .page-footer {
    background: transparent;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header {
    gap: 24px;
    margin-bottom: 32px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #dce8f4;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 10%, rgba(52, 120, 189, 0.1), transparent 18rem),
        #fff;
    box-shadow: 0 18px 48px rgba(35, 75, 120, 0.08);
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header h1 {
    color: #193452;
    font-size: clamp(2.5rem, 5.2vw, 4.5rem);
    font-style: normal;
    line-height: 1.05;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header :is(.text-white, .text-slate-400) {
    color: #607890;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header .text-white {
    color: #193452;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > section > :is(div, article) {
    border-color: #dce8f4;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-white/5"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-slate-800"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-indigo-500/10"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-blue-500/10"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-purple-500/10"] {
    border: 1px solid #dce8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(35, 75, 120, 0.06);
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(.text-white, .text-slate-400, .text-slate-500) {
    color: #607890;
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(h1, h2, h3, h4).text-white,
body.topic-portal-page:not(.space-theme) main.flex-1 :is(h1, h2, h3, h4) .text-white {
    color: #193452;
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(.rounded-\[50px\], .rounded-\[40px\], .rounded-3xl, .rounded-2xl) {
    border-radius: 18px;
}

body.topic-portal-page:not(.space-theme) .page-shell::before {
    background:
        radial-gradient(circle at 88% 8%, rgba(52, 120, 189, 0.08), transparent 24rem),
        radial-gradient(circle at 10% 85%, rgba(242, 189, 82, 0.07), transparent 22rem);
}

.topic-portal-sidebar {
    position: fixed;
    z-index: 980;
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: 242px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 16px 10px;
    border: 1px solid #dce8f4;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    color: #193452;
    box-shadow: 0 18px 48px rgba(35, 75, 120, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 173, 221, 0.35) transparent;
}

.topic-portal-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 5px 14px;
    padding: 4px 4px 14px;
    border-bottom: 1px solid #e4edf6;
    color: #193452;
    text-decoration: none;
}

.topic-portal-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #d5e8fb;
    border-radius: 12px;
    background: #e8f3ff;
    color: #286ba9;
}

.topic-portal-heading > span:last-child {
    display: grid;
    gap: 3px;
}

.topic-portal-heading strong {
    font-size: 13px;
    font-weight: 850;
}

.topic-portal-heading small {
    color: #71879d;
    font-size: 9px;
}

.topic-portal-label {
    margin: 0 9px 8px;
    color: #71879d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.topic-portal-nav {
    display: grid;
    gap: 3px;
}

.topic-portal-link {
    display: grid;
    min-width: 0;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid transparent;
    color: #526c86;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.topic-portal-link > i {
    margin-top: 2px;
    color: #6e8aa5;
    text-align: center;
}

.topic-portal-link:hover,
.topic-portal-link.is-current {
    border-color: #b8d7f2;
    background: #edf6ff;
    color: #193452;
}

.topic-portal-link.is-current > i {
    color: #286ba9;
}

body.topic-portal-page.space-theme .topic-portal-sidebar {
    border-color: rgba(164, 196, 241, 0.2);
    background: rgba(11, 20, 39, 0.94);
    color: #eef5ff;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
}

body.topic-portal-page.space-theme .topic-portal-heading {
    border-color: rgba(164, 196, 241, 0.18);
    color: #eef5ff;
}

body.topic-portal-page.space-theme .topic-portal-mark {
    border-color: rgba(157, 200, 255, 0.3);
    background: rgba(111, 166, 232, 0.12);
    color: #acd3ff;
}

body.topic-portal-page.space-theme :is(.topic-portal-heading small, .topic-portal-label) {
    color: #8ea5c6;
}

body.topic-portal-page.space-theme .topic-portal-link {
    color: #afbed5;
}

body.topic-portal-page.space-theme .topic-portal-link > i {
    color: #88a9d2;
}

body.topic-portal-page.space-theme :is(.topic-portal-link:hover, .topic-portal-link.is-current) {
    border-color: rgba(157, 200, 255, 0.2);
    background: rgba(112, 163, 225, 0.12);
    color: #f3f8ff;
}

body.topic-portal-page.space-theme .topic-portal-link.is-current > i {
    color: #a9d3ff;
}

@media (max-width: 760px) {
    body.topic-portal-page:not(.space-theme) {
        padding-left: 0;
    }

    body.topic-portal-page:not(.space-theme) :is(.content, .page-container, main.flex-1) {
        padding: 20px 14px 40px;
    }

    body.topic-portal-page:not(.space-theme) .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    body.topic-portal-page:not(.space-theme) main.flex-1 > header {
        padding: 24px;
    }

    body.topic-portal-page:not(.space-theme) .topic-portal-sidebar {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: auto;
        max-height: none;
        margin: 12px;
        padding: 12px;
    }

    .topic-portal-heading {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

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

@media (max-width: 420px) {
    .topic-portal-nav {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .topic-portal-link {
        transition: none;
    }
}

body.topic-portal-page:not(.space-theme) {
    --topic-space-bg: #07101f;
    --topic-space-panel: rgba(15, 29, 52, 0.88);
    --topic-space-panel-strong: rgba(18, 35, 62, 0.96);
    --topic-space-border: rgba(151, 190, 239, 0.18);
    --topic-space-text: #edf5ff;
    --topic-space-muted: #a7bad4;
    --topic-space-accent: #8bc7ff;
    --topic-space-glow: rgba(66, 143, 226, 0.22);
    padding-left: 274px;
    background:
        radial-gradient(ellipse at 82% 7%, rgba(52, 120, 189, 0.2), transparent 34rem),
        radial-gradient(ellipse at 15% 80%, rgba(82, 91, 174, 0.13), transparent 32rem),
        linear-gradient(160deg, #07101f 0%, #0b1830 54%, #081222 100%);
    color: var(--topic-space-text);
    color-scheme: dark;
}

body.topic-portal-page:not(.space-theme) :is(h1, h2, h3, h4, h5, h6) {
    color: #f1f7ff;
    font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.045em;
    text-wrap: pretty;
}

body.topic-portal-page:not(.space-theme) :is(p, li, dd, dt, blockquote) {
    color: #c1cfe2;
    font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

body.topic-portal-page:not(.space-theme) :is(small, .text-xs, .text-sm, figcaption, caption) {
    color: #a7bad4;
    font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.topic-portal-page:not(.space-theme) :is(label, button, input, select, textarea) {
    font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.topic-portal-page:not(.space-theme) a:not(.topic-portal-link):not(.topic-portal-heading) {
    color: #a9d5ff;
}

body.topic-portal-page:not(.space-theme) a:not(.topic-portal-link):not(.topic-portal-heading):hover {
    color: #d3eaff;
}

body.topic-portal-page:not(.space-theme) .text-white {
    color: #f1f7ff;
}

body.topic-portal-page:not(.space-theme) .text-slate-400,
body.topic-portal-page:not(.space-theme) .text-slate-500 {
    color: #afc0d8;
}

body.topic-portal-page:not(.space-theme) :is(.cloud-card, .press-card, .vanguard-card, .security-card) {
    border: 1px solid var(--topic-space-border);
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 95% 0%, rgba(91, 156, 226, 0.1), transparent 45%),
        var(--topic-space-panel);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255,255,255,.035);
    color: var(--topic-space-text);
}

body.topic-portal-page:not(.space-theme) :is(.cloud-card, .press-card, .vanguard-card, .security-card):hover {
    border-color: rgba(139, 199, 255, 0.36);
    background:
        radial-gradient(ellipse at 95% 0%, rgba(91, 156, 226, 0.16), transparent 45%),
        rgba(20, 39, 68, 0.96);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3), 0 0 26px rgba(66, 143, 226, 0.1);
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(div[class*="bg-white/5"], div[class*="bg-slate-800"], div[class*="bg-indigo-500/10"], div[class*="bg-blue-500/10"], div[class*="bg-purple-500/10"], div[class*="bg-red-500/10"]) {
    border-color: var(--topic-space-border);
    background-color: rgba(15, 29, 52, 0.84);
    color: var(--topic-space-text);
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(div[class*="bg-white/5"], div[class*="bg-slate-800"], div[class*="bg-indigo-500/10"], div[class*="bg-blue-500/10"], div[class*="bg-purple-500/10"], div[class*="bg-red-500/10"]) :is(h2, h3, h4, p, span, strong) {
    color: inherit;
}

body.topic-portal-page:not(.space-theme)::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 8% 18%, rgba(255,255,255,.82) 50%, transparent 100%),
        radial-gradient(1px 1px at 21% 66%, rgba(190,216,255,.72) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 37% 25%, rgba(255,255,255,.72) 50%, transparent 100%),
        radial-gradient(1px 1px at 59% 12%, rgba(215,232,255,.78) 50%, transparent 100%),
        radial-gradient(1px 1px at 81% 34%, rgba(255,255,255,.72) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 94% 76%, rgba(190,216,255,.7) 50%, transparent 100%);
    content: "";
    pointer-events: none;
}

body.topic-portal-page:not(.space-theme) :is(.video-background, .bg-overlay) {
    display: none;
}

body.topic-portal-page:not(.space-theme) .topic-portal-sidebar {
    border-color: var(--topic-space-border);
    background: rgba(8, 18, 35, 0.94);
    color: var(--topic-space-text);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255,255,255,.04);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.topic-portal-page:not(.space-theme) .topic-portal-heading {
    border-color: var(--topic-space-border);
    color: var(--topic-space-text);
}

body.topic-portal-page:not(.space-theme) .topic-portal-mark {
    border-color: rgba(139, 199, 255, 0.28);
    background: rgba(93, 159, 226, 0.14);
    color: var(--topic-space-accent);
    box-shadow: 0 0 24px rgba(70, 145, 226, 0.1);
}

body.topic-portal-page:not(.space-theme) :is(.topic-portal-heading small, .topic-portal-label) {
    color: #8299ba;
}

body.topic-portal-page:not(.space-theme) .topic-portal-link {
    color: #afbed5;
}

body.topic-portal-page:not(.space-theme) .topic-portal-link > i {
    color: #88a9d2;
}

body.topic-portal-page:not(.space-theme) :is(.topic-portal-link:hover, .topic-portal-link.is-current) {
    border-color: rgba(139, 199, 255, 0.26);
    background: linear-gradient(100deg, rgba(55, 110, 169, 0.28), rgba(61, 76, 134, 0.2));
    color: #f3f8ff;
}

body.topic-portal-page:not(.space-theme) .topic-portal-link.is-current > i {
    color: var(--topic-space-accent);
}

body.topic-portal-page:not(.space-theme) :is(.content, .page-container, main.flex-1) {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding: 34px clamp(18px, 3vw, 42px) 64px;
    color: var(--topic-space-text);
}

body.topic-portal-page:not(.space-theme) :is(.content, .page-container, main.flex-1, .page-footer) {
    position: relative;
    z-index: 1;
}

body.topic-portal-page:not(.space-theme) .hero {
    gap: 18px;
    margin-bottom: 20px;
}

body.topic-portal-page:not(.space-theme) :is(.hero-main, .hero-side, .section-card, .metric-card, .timeline-item, .collaboration-shell, .content-card) {
    border: 1px solid var(--topic-space-border);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 95% 0%, rgba(91, 156, 226, 0.1), transparent 45%),
        var(--topic-space-panel);
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.23), inset 0 1px rgba(255,255,255,.035);
    color: var(--topic-space-text);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.topic-portal-page:not(.space-theme) :is(.hero-main, .hero-side) {
    padding: clamp(24px, 3.2vw, 42px);
}

body.topic-portal-page:not(.space-theme) .hero-main::after {
    width: 280px;
    height: 280px;
    opacity: 0.13;
    filter: blur(2px);
}

body.topic-portal-page:not(.space-theme) :is(.eyebrow, .hero-label) {
    border: 1px solid rgba(139, 199, 255, 0.24);
    background: rgba(63, 124, 184, 0.18);
    color: var(--topic-space-accent);
    letter-spacing: 0.12em;
}

body.topic-portal-page:not(.space-theme) .eyebrow-dot {
    background: var(--topic-space-accent);
    box-shadow: 0 0 0 6px rgba(139, 199, 255, 0.12), 0 0 16px rgba(139, 199, 255, 0.65);
}

body.topic-portal-page:not(.space-theme) .hero-label {
    background: linear-gradient(110deg, #3478bd, #5267bd);
    color: #fff;
}

body.topic-portal-page:not(.space-theme) :is(.hero-title, .section-title) {
    color: #f4f8ff;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.06em;
}

body.topic-portal-page:not(.space-theme) .title-gradient {
    background: linear-gradient(110deg, #f8fbff 5%, #a9d5ff 54%, #b8baff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.topic-portal-page:not(.space-theme) :is(.hero-description, .hero-tagline, .section-subtitle) {
    color: var(--topic-space-muted);
}

body.topic-portal-page:not(.space-theme) .status-label {
    color: #91b9e8;
}

body.topic-portal-page:not(.space-theme) .status-value {
    color: #f1f7ff;
    text-shadow: 0 0 28px rgba(139, 199, 255, 0.28);
}

body.topic-portal-page:not(.space-theme) .status-chip {
    border-color: rgba(139, 199, 255, 0.2);
    background: rgba(81, 132, 190, 0.14);
    color: #c8dcf5;
}

body.topic-portal-page:not(.space-theme) :is(.section-card, .metric-card, .timeline-item) {
    border-radius: 17px;
    background-color: var(--topic-space-panel-strong);
}

body.topic-portal-page:not(.space-theme) .action-link {
    border: 1px solid var(--topic-space-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #d7e8ff;
}

body.topic-portal-page:not(.space-theme) .action-link.primary {
    border-color: #8bc7ff;
    background: linear-gradient(110deg, #3478bd, #5369bd);
    color: #fff;
}

body.topic-portal-page:not(.space-theme) .content-card {
    padding: clamp(24px, 4vw, 50px);
}

body.topic-portal-page:not(.space-theme) .section-title {
    background: linear-gradient(110deg, #f8fbff, #a9d5ff 58%, #b8baff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.topic-portal-page:not(.space-theme) .prose {
    color: #c4d2e6;
}

body.topic-portal-page:not(.space-theme) .prose :is(h2, h3, strong) {
    color: #edf5ff;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header {
    gap: 24px;
    margin-bottom: 28px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--topic-space-border);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 82% 92%, rgba(44, 115, 189, 0.24), transparent 45%),
        linear-gradient(120deg, rgba(16, 29, 57, 0.96), rgba(11, 19, 38, 0.92));
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.28);
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header h1 {
    color: #f7fbff;
    font-size: clamp(2.45rem, 5.2vw, 4.6rem);
    font-style: normal;
    line-height: 1.04;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header :is(.text-white, .text-slate-400, .text-slate-500) {
    color: #b7c5dd;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header .text-white {
    color: #f4f8ff;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-white/5"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-slate-800"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-indigo-500/10"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-blue-500/10"],
body.topic-portal-page:not(.space-theme) main.flex-1 > section > div[class*="bg-purple-500/10"] {
    border: 1px solid var(--topic-space-border);
    border-radius: 19px;
    background: var(--topic-space-panel);
    box-shadow: 0 17px 48px rgba(0, 0, 0, 0.22);
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(.text-white, .text-slate-400, .text-slate-500) {
    color: #b7c5dd;
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(h1, h2, h3, h4).text-white,
body.topic-portal-page:not(.space-theme) main.flex-1 :is(h1, h2, h3, h4) .text-white {
    color: #f4f8ff;
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(.rounded-\[50px\], .rounded-\[40px\], .rounded-3xl, .rounded-2xl) {
    border-radius: 19px;
}

body.topic-portal-page:not(.space-theme) .page-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--topic-space-border);
    background: rgba(8, 18, 35, 0.72);
    color: #8ea5c6;
}

body.topic-portal-page:not(.space-theme) .page-footer a {
    color: #a9c8ed;
}

body.topic-portal-page:not(.space-theme) main.flex-1 {
    min-width: 0;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > header,
body.topic-portal-page:not(.space-theme) main.flex-1 > section,
body.topic-portal-page:not(.space-theme) main.flex-1 > footer {
    min-width: 0;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > section {
    margin-bottom: 38px;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > section > .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(.cloud-card, .press-card, .vanguard-card, .security-card) {
    min-width: 0;
    padding: clamp(18px, 2.4vw, 30px);
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(.cloud-card, .press-card, .vanguard-card, .security-card) h3 {
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.3;
}

body.topic-portal-page:not(.space-theme) main.flex-1 :is(.chat-column, .board-column, .calendar-column) {
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--topic-space-border);
    border-radius: 20px;
    background: rgba(10, 22, 41, 0.9);
    color: #d7e5f7;
    box-shadow: inset 0 1px rgba(255,255,255,.035);
}

body.topic-portal-page:not(.space-theme) .collaboration-shell {
    padding: clamp(18px, 2vw, 28px);
}

body.topic-portal-page:not(.space-theme) .collaboration-grid {
    grid-template-columns: minmax(230px, 0.82fr) minmax(280px, 1.18fr) minmax(220px, 0.72fr);
    gap: 14px;
}

body.topic-portal-page:not(.space-theme) :is(.member-panel-item, .group-chat-bubble__body, .board-summary__item, .social-post, .social-comment, .social-admin-btn, .social-stat, .social-upload-label, .social-pin-toggle, .social-select, .group-chat-input, .social-composer__input, .social-comment-input, .column-badge) {
    border-color: rgba(151, 190, 239, 0.16);
    background: rgba(20, 38, 65, 0.9);
    color: #d7e5f7;
}

body.topic-portal-page:not(.space-theme) :is(.member-panel-meta strong, .board-summary__item strong, .social-comment strong, .group-chat-bubble__meta strong, .social-post__author strong) {
    color: #f1f7ff;
}

body.topic-portal-page:not(.space-theme) :is(.member-panel-meta small, .board-summary__item span, .group-chat-bubble__meta span, .social-post__author span, .group-chat-helper, .social-post__content, .group-chat-bubble__body p, .social-comment) {
    color: #afc0d8;
}

body.topic-portal-page:not(.space-theme) :is(.group-chat-input, .social-composer__input, .social-comment-input, .social-select) {
    background: rgba(7, 16, 31, 0.88);
    color: #f1f7ff;
}

body.topic-portal-page:not(.space-theme) :is(.group-chat-input, .social-composer__input, .social-comment-input)::placeholder {
    color: #8299ba;
}

body.topic-portal-page:not(.space-theme) :is(.social-post__stats, .social-post__image-wrap) {
    border-color: rgba(151, 190, 239, 0.14);
    background-color: rgba(12, 25, 45, 0.72);
}

body.topic-portal-page:not(.space-theme) :is(.social-post__pin, .social-admin-btn--danger, .social-comment__delete) {
    border-color: rgba(251, 113, 133, 0.25);
    background: rgba(136, 19, 55, 0.22);
    color: #fda4af;
}

body.topic-portal-page:not(.space-theme) .social-stat--like.is-active {
    border-color: rgba(251, 113, 133, 0.3);
    background: rgba(136, 19, 55, 0.22);
    color: #fda4af;
}

body.topic-portal-page:not(.space-theme) .social-comment-form {
    min-width: 0;
}

body.topic-portal-page:not(.space-theme) .social-comment-form > * {
    min-width: 0;
}

body.topic-portal-page:not(.space-theme) main.flex-1 > footer {
    padding-top: 40px;
    padding-bottom: 42px;
    border-color: var(--topic-space-border);
}

body.topic-portal-page:not(.space-theme) main.flex-1 > footer p {
    color: #8299ba;
    font-size: 10px;
    letter-spacing: 0.18em;
}

@media (max-width: 760px) {
    body.topic-portal-page:not(.space-theme) {
        padding-left: 0;
    }

    body.topic-portal-page:not(.space-theme) :is(.content, .page-container, main.flex-1) {
        padding: 18px 14px 42px;
    }

    body.topic-portal-page:not(.space-theme) .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    body.topic-portal-page:not(.space-theme) .collaboration-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.topic-portal-page:not(.space-theme) main.flex-1 > section {
        margin-bottom: 28px;
    }

    body.topic-portal-page:not(.space-theme) main.flex-1 > header {
        padding: 24px;
    }

    body.topic-portal-page:not(.space-theme) .topic-portal-sidebar {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: auto;
        max-height: none;
        margin: 12px;
        padding: 12px;
    }
}
