/* ProSpace: Evalitic typography, navy sections, white surfaces and wave dividers. */
:root {
    color-scheme: light;
    --navy: #0c1c48;
    --blue: #2446ac;
    --bg: #fff;
    --bg2: #f3f6fd;
    --text: #13234b;
    --muted: #526080;
    --primary: #2446ac;
    --pink: #2446ac;
    --panel: #fff;
    --panel-solid: #fff;
    --border: #d7dfef;
    --danger: #b62346;
    --success: #16623f;
    --warn: #7a5200;
    --grad: linear-gradient(120deg, #173584, #2446ac);
    --shadow: 0 16px 42px -24px #13234b30;
    --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-d: 'Manrope', 'DM Sans', system-ui, sans-serif;
    --header-height: 84px;
    --radius: 16px;
}
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.035em; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: var(--font); }
:focus-visible { outline: 3px solid #2446ac; outline-offset: 4px; }
::selection { background: #dbe5ff; color: #0c1c48; }
.ui-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10010; transform: translateY(-160%); padding: 10px 18px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip-link:focus { transform: none; }
.grad-text { background: none; color: var(--blue); }
.eyebrow { color: var(--blue); font-size: .68rem; letter-spacing: 1.7px; }
.btn, .workspace-content .btn { min-height: 42px; border-radius: 9px; background: #eef3ff; border: 1px solid #ced9ef; color: #173584; font-size: .82rem; padding: 10px 18px; box-shadow: none; transition: background .2s, box-shadow .2s, transform .2s; }
.btn:hover, .workspace-content .btn:hover { background: #e2eafe; box-shadow: 0 5px 16px #13234b12; transform: translateY(-1px); }
.btn-glow, .workspace-content .btn-glow { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 6px 16px #2446ac20; }
.btn-glow:hover, .workspace-content .btn-glow:hover { background: #173584; color: #fff; }
.btn-lg { min-height: 50px; padding: 14px 22px; font-size: .9rem; }
.btn-sm { min-height: 38px; padding: 8px 16px; }
.btn-danger, .workspace-content .btn-danger { background: #fff0f3; color: #9b1f3c; border-color: #efc3cf; }
.btn-danger:hover, .workspace-content .btn-danger:hover { background: #ffe0e8; }
.btn-success, .workspace-content .btn-success { background: #e6f5ed; color: #16623f; border-color: #b4ddc6; }
.btn-ghost { background: transparent; }
.btn[disabled]:hover { transform: none; }
.panel { background: #fff; backdrop-filter: none; box-shadow: var(--shadow); }
.input, .workspace-content .input { color: var(--text); background: #fbfcff; border-color: #cdd7eb; border-radius: 9px; font-size: .88rem; }
.input::placeholder { color: #657393; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #2446ac18; }
label.lbl, .workspace-content label.lbl { color: #293d68; font-size: .8rem; }
select.input option { color: var(--text); background: #fff; }
.errors, .flash-error { color: #922a43; background: #fff0f3; border-color: #efc3cf; }
.flash-success { color: #16623f; background: #e6f5ed; border-color: #b4ddc6; }
.flash-info { color: #173584; background: #eef3ff; border-color: #bfceef; }
.flash-warn { color: #7a5200; background: #fff6e5; border-color: #f3cf87; }
.table-wrap { background: #fff; }
.tbl th, .workspace-content .tbl th { background: #f1f5fc; color: #526080; font-size: .66rem; }
.tbl tr:hover td { background: #f6f8fe; }
.tabs { border-color: var(--border); }
.tab { color: var(--muted); font-size: .85rem; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.empty-state { background: #f8faff; color: #526080; border-color: #ccd7ec; }
.topbar, .topbar.scrolled, .workspace-page .topbar { background: #fffffff5; color: var(--text); border-color: #dce3f0; box-shadow: 0 4px 20px #13234b05; backdrop-filter: blur(18px); }
.topbar-inner { width: min(1440px, calc(100% - 64px)); gap: 24px; }
.brand { gap: 14px; }
.brand-mark img { width: 86px; height: 40px; padding: 0; border-radius: 0; box-shadow: none; background: #fff; }
.brand-text { padding-left: 14px; border-left: 1px solid #d5deef; }
.brand-name { color: #13234b; background: none; animation: none; font-size: 1.4rem; letter-spacing: -.8px; }
.brand-dot { color: #2446ac; }
.brand-tag { color: #526080; font-size: .6rem; margin-top: 6px; }
.header-search { width: min(480px, 38vw); background: #f3f6fc; border: 1px solid #d7dfef; border-radius: 10px; }
.header-search:focus-within { border-color: #2446ac; box-shadow: 0 0 0 3px #2446ac12; }
.header-search input { padding: 11px 16px; color: var(--text); font-size: .8rem; outline: none; }
.header-search input::placeholder { color: #657393; }
.header-search button { color: #2446ac; padding: 9px 13px; }
.bell { background: #f3f6fc; color: #2446ac; border-color: #d7dfef; border-radius: 11px; }
.bell:hover { background: #e8efff; }
.user-chip { padding: 4px 12px 4px 4px; background: #fff; border-color: #d7dfef; border-radius: 12px; }
.user-chip-name { color: #13234b; font-size: .8rem; }
.user-chip-name small { color: #526080; font-size: .66rem; margin-top: 4px; }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: .8rem; }
.count-badge, .rail-count { background: #2446ac; color: #fff; }
.count-badge { border: 2px solid #fff; height: 22px; line-height: 18px; }
.workspace-page { background: #f3f6fc; color: #13234b; }
.workspace-shell { align-items: stretch; min-height: calc(100dvh - var(--header-height)); }
.workspace-rail { flex: 0 0 208px; position: sticky; top: var(--header-height); align-self: flex-start; height: calc(100dvh - var(--header-height)); overflow-y: auto; gap: 6px; padding: 28px 14px 16px; background: #0c1c48; color: #ccd6ef; scrollbar-width: thin; scrollbar-color: #526080 #0c1c48; }
.rail-heading { margin: 0 12px 16px; color: #9bafd9; font-size: .6rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.workspace-rail > a, .workspace-rail button { position: relative; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 45px; padding: 11px 14px; border-radius: 9px; font-size: .8rem; font-weight: 500; text-align: left; }
.workspace-rail .rail-label { font-size: inherit; }
.workspace-rail > a:hover, .workspace-rail .selected { color: #fff; background: #ffffff10; box-shadow: none; }
.workspace-rail .selected { background: #2446ac; }
.workspace-rail a:focus-visible, .workspace-rail button:focus-visible { outline-color: #c3d3ff; outline-offset: -2px; }
.rail-count { margin-left: auto; background: #ffffff26; color: #fff; }
.rail-note { margin: auto 8px 18px; padding: 24px 12px 0; color: #a7b9df; font-size: .72rem; line-height: 1.8; }
.rail-note b { display: block; color: #fff; margin-bottom: 4px; font-family: var(--font-d); font-size: .86rem; }
.workspace-rail form { margin-top: 0; padding-top: 10px; border-top: 1px solid #ffffff1a; }
.workspace-content { padding: 30px clamp(20px, 3vw, 48px) 72px; --text: #13234b; --muted: #526080; --border: #d7dfef; --shadow: 0 14px 40px -24px #13234b26; }
.workspace-content > .page-heading h1 { font-size: clamp(1.6rem, 2.3vw, 2rem); }
.workspace-content .panel { border-color: #d7dfef; border-radius: 15px; box-shadow: 0 8px 0 -5px #e3e9f6, 0 14px 30px -24px #13234b35; }
.widget-head { padding-bottom: 12px; border-bottom: 1px solid #e8edf7; margin-bottom: 10px; }
.widget-head h2 { font-size: 1rem; color: #13234b; }
.page-list li { padding: 13px 2px; }
.page-list li > a { color: #1c3671; font-size: .83rem; }
.page-list li > small { color: #5b6b89; }
.page-list li:hover { background: #f8faff; }
.space-card { padding: 22px; border-radius: 14px; border-color: #d2ddef; box-shadow: 0 8px 0 -5px #e0e8f7, 0 14px 35px -24px #13234b30; }
.space-card::before { width: 3px; }
.space-card:hover { border-color: #819bcc; box-shadow: 0 14px 30px -22px #2446ac60; }
.space-card b { color: #13234b; }
.space-sidebar { top: calc(var(--header-height) + 20px); max-height: calc(100dvh - var(--header-height) - 40px); border-color: #d7dfef; box-shadow: 0 8px 24px -20px #13234b40; }
.space-facts .details-dl { grid-template-columns: minmax(65px, .7fr) minmax(0, 1.3fr); gap: 10px 12px; }
.space-facts .person { white-space: normal; overflow-wrap: anywhere; }
.tree-row.current, .nav-list li.current a, .snippet-list li.current a { background: #e9efff; }
.tree-row.current a { color: #173584; }
.page-body { border-color: #d7dfef; border-radius: 14px; box-shadow: 0 10px 32px -24px #13234b35; }
.page-title, .title-input { color: #13234b; }
.page-description { color: #526080; }
.page-toc { top: calc(var(--header-height) + 20px); border-left-color: #2446ac; }
.editor-topbar { top: calc(var(--header-height) + 10px); border-color: #d7dfef; border-radius: 12px; }
.editor-page .workspace-content { padding-top: 24px; }
.page-editor .tox-tinymce { border-color: #ccd7ec; border-radius: 12px; }
.menu-list, .suggest-list { border-color: #d7dfef; box-shadow: 0 14px 36px #13234b20; }
.suggest-item.active, .suggest-item:hover, .menu-list a:hover, .menu-list button:hover { background: #edf2ff; }
.link-tabs .tab.active { color: #173584; border-color: #2446ac; }
.workspace-content .admin-side { background: #fff; border-color: #d7dfef; }
.admin-side a:hover { color: #173584; background: #edf2ff; }
.admin-side a.active { background: var(--blue); color: #fff; }
.wave-panel { position: relative; isolation: isolate; overflow: hidden; }
.wave-panel::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 64px; z-index: -1; background: var(--wave-color, #fff); -webkit-mask: url('../img/section-wave.svg') center / 100% 100% no-repeat; mask: url('../img/section-wave.svg') center / 100% 100% no-repeat; pointer-events: none; }
.ws-hero { padding: 78px 0 110px; background: radial-gradient(ellipse at 82% 28%, #25488e, transparent 62%), #0c1c48; color: #fff; }
.ws-hero::before, .ws-auth-story::before { content: ''; position: absolute; z-index: -1; right: -200px; top: -250px; width: 750px; height: 750px; border: 1px solid #ffffff13; border-radius: 36%; rotate: 28deg; box-shadow: 0 0 0 45px #ffffff03, 0 0 0 90px #ffffff02; pointer-events: none; }
.ws-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; min-height: 450px; }
.ws-hero-grid > * { min-width: 0; }
.ws-kicker { display: inline-flex; gap: 10px; align-items: center; font-size: .63rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #c1d3ff; }
.ws-kicker > span { width: 7px; height: 7px; background: #c1d3ff; border-radius: 50%; box-shadow: 0 0 0 5px #ffffff0d; }
.ws-hero h1 { margin: 22px 0; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.15; letter-spacing: -.055em; font-weight: 700; }
.ws-hero h1 em, .ws-auth h1 em { font-style: normal; color: #b6ccff; }
.ws-hero-copy > p { max-width: 475px; color: #c4d2ec; line-height: 1.85; font-size: .94rem; }
.ws-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.ws-hero .btn-glow { background: #fff; color: #173584; border-color: #fff; }
.ws-hero .btn-glow:hover { background: #e9efff; }
.ws-text-link { color: #e2eaff; font-size: .76rem; border-bottom: 1px solid #ffffff50; padding: 6px 0; }
.ws-text-link:hover { color: #fff; border-color: #fff; }
.ws-hero-note { display: flex; align-items: center; gap: 9px; margin-top: 32px; color: #b0c1e4; font-size: .67rem; }
.ws-hero-note .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.ws-preview { position: relative; padding: 25px 0 20px; }
.ws-preview-label { color: #c5d5f7; font-size: .67rem; margin: 0 0 15px 12px; letter-spacing: .3px; }
.ws-preview-window { border: 1px solid #ffffff80; border-radius: 15px; overflow: hidden; background: #fff; color: #13234b; box-shadow: 12px 15px 0 -5px #ffffff0d, 0 30px 60px #03102b45; transform: rotate(-2deg); }
.ws-window-bar { height: 42px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f4f6fc; border-bottom: 1px solid #e2e8f4; color: #627293; font-size: .57rem; }
.ws-window-bar .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
.ws-window-dots { display: flex; gap: 4px; }
.ws-window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #bcc9e5; }
.ws-window-layout { display: grid; grid-template-columns: 125px minmax(0, 1fr); min-height: 320px; }
.ws-preview-nav { display: flex; flex-direction: column; gap: 6px; background: #f1f5fd; padding: 24px 10px; font-size: .56rem; color: #596c92; }
.ws-preview-nav b { padding: 0 8px 12px; color: #173584; }
.ws-preview-nav > span { padding: 8px; border-radius: 5px; }
.ws-preview-nav .active { background: #e0e9fc; color: #2446ac; font-weight: 700; }
.ws-preview-nav-note { margin-top: auto; padding: 20px 8px 0; color: #8090af; font: 700 .9rem/1.5 var(--font-d); }
.ws-preview-page { padding: 24px; }
.ws-preview-breadcrumb { display: block; font-size: .54rem; color: #7181a0; margin-bottom: 20px; }
.ws-preview-status { display: inline-block; font-size: .52rem; background: #edf2ff; color: #2446ac; padding: 4px 8px; border-radius: 20px; }
.ws-preview-page h2 { margin: 12px 0 8px; font-size: 1.45rem; line-height: 1.3; }
.ws-preview-page > p { font-size: .66rem; color: #526080; line-height: 1.7; }
.ws-preview-callout { display: flex; gap: 10px; align-items: center; padding: 12px; border-left: 3px solid #2446ac; border-radius: 6px; background: #f0f4ff; color: #2446ac; font-size: .61rem; }
.ws-preview-lines { display: grid; gap: 7px; margin: 18px 0; }
.ws-preview-lines i { height: 5px; background: #edf1f8; border-radius: 3px; }
.ws-preview-lines i:last-child { width: 70%; }
.ws-preview-people { display: flex; align-items: center; padding-top: 10px; border-top: 1px solid #edf1f8; }
.ws-preview-people > span { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; background: #dce6fc; color: #2446ac; margin-left: -5px; font-size: .48rem; font-weight: 700; }
.ws-preview-people small { font-size: .49rem; color: #647594; padding-left: 8px; }
.ws-floating-note { position: absolute; bottom: -4px; right: -14px; display: flex; gap: 12px; align-items: center; border: 1px solid #d7dfef; border-radius: 12px; background: #fff; color: #526080; font-size: .66rem; padding: 14px 20px; box-shadow: 0 14px 35px #06152f30; }
.ws-floating-note > .ui-icon { color: #2446ac; background: #edf2ff; padding: 5px; width: 32px; height: 32px; flex-basis: 32px; border-radius: 50%; }
.ws-floating-note b { color: #13234b; }
.ws-discover { position: relative; padding: 55px 0 100px; background: #fff; scroll-margin-top: var(--header-height); }
.ws-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-bottom: 35px; }
.ws-section-heading h2 { margin: 12px 0 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.25; color: #13234b; }
.ws-section-heading > p { max-width: 360px; color: #526080; font-size: .86rem; line-height: 1.8; margin: 0; }
.ws-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ws-feature-card { position: relative; padding: 30px; border: 1px solid #ccd7ed; border-radius: 15px 40px 15px 15px; background: #fff; box-shadow: 0 10px 0 -6px #e4ebfa, 0 18px 40px -25px #13234b25; }
.ws-feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #2446ac; background: #edf2ff; margin-bottom: 28px; }
.ws-card-index { position: absolute; right: 28px; top: 48px; color: #68799d; font-size: .55rem; font-weight: 700; letter-spacing: 1px; }
.ws-feature-card h3 { font-size: 1.22rem; margin-bottom: 13px; color: #13234b; }
.ws-feature-card p { color: #526080; font-size: .82rem; line-height: 1.85; margin: 0 0 25px; }
.ws-card-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 18px; border-top: 1px solid #e3eaf7; color: #2446ac; font-size: .66rem; font-weight: 700; }
.ws-knowledge-band { background: radial-gradient(ellipse at 90% 30%, #2446ac, transparent 70%), #0c1c48; color: #fff; padding: 75px 0 120px; }
.ws-knowledge-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.ws-knowledge-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.3; margin: 18px 0; }
.ws-knowledge-band p { color: #c4d2ec; line-height: 1.85; max-width: 470px; font-size: .86rem; margin-bottom: 28px; }
.ws-topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; rotate: -3deg; }
.ws-topic-grid span { padding: 22px 18px; border: 1px solid #ffffff2b; border-radius: 10px 25px 10px 10px; color: #e1eaff; background: #ffffff08; font-size: .8rem; }
.ws-topic-grid span:nth-child(even) { translate: 0 20px; }
.ws-button-white, .workspace-content .ws-button-white { background: #fff; border-color: #fff; color: #173584; }
.ws-button-white:hover, .workspace-content .ws-button-white:hover { background: #e9efff; }
.ws-button-outline, .workspace-content .ws-button-outline { background: #ffffff08; border-color: #ffffff60; color: #fff; }
.ws-button-outline:hover, .workspace-content .ws-button-outline:hover { background: #ffffff18; color: #fff; }
.ws-dashboard-welcome { --wave-color: #f3f6fc; padding: 32px 32px 60px; margin-bottom: 10px; border-radius: 18px 18px 0 0; background: radial-gradient(ellipse at 90% 30%, #2446ac, transparent 70%), #0c1c48; color: #fff; }
.ws-dashboard-welcome::after { height: 36px; }
.ws-dashboard-welcome .page-heading { margin: 0; align-items: center; }
.ws-dashboard-welcome h1 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; line-height: 1.3; margin: 12px 0; }
.workspace-content .ws-dashboard-welcome .eyebrow { color: #bccfff; font-size: .6rem; letter-spacing: 1.5px; }
.ws-dashboard-welcome p { color: #c4d2ec; font-size: .82rem; }
.hero-search { background: #fff; border: 1px solid #d1dbee; padding: 10px 12px; gap: 8px; align-items: center; border-radius: 12px; box-shadow: 0 8px 25px -20px #13234b40; }
.hero-search > .ui-icon { margin-left: 10px; color: #2446ac; }
.hero-search .input { background: #fff; padding: 12px; font-size: .86rem; min-width: 0; }
.hero-search .input:focus { box-shadow: none; }
.hero-search:focus-within { border-color: #2446ac; box-shadow: 0 0 0 3px #2446ac12; }
.kpi-grid { gap: 18px; }
.kpi { padding: 20px 22px; border-radius: 13px; border-color: #d7dfef; box-shadow: 0 6px 0 -3px #e4ebf8; gap: 7px; }
.kpi b { font-size: 1.9rem; color: #173584; }
.kpi span { color: #526080; font-size: .74rem; }
.kpi-warn { border-left-color: #2446ac; }
.dash-grid { gap: 22px; }
.login-page .page { padding-bottom: 0; }
.ws-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 690px; }
.ws-auth-story { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 65px clamp(28px, 6vw, 100px) 85px; background: radial-gradient(ellipse at 80% 25%, #2446ac, transparent 75%), #0c1c48; color: #fff; }
.ws-auth-story::after { height: 50px; }
.ws-auth h1 { font-size: clamp(2.2rem, 3.7vw, 3.5rem); font-weight: 700; line-height: 1.2; margin: 24px 0; }
.ws-auth-story > p { color: #c4d2ec; font-size: .88rem; line-height: 1.9; max-width: 400px; }
.ws-auth-benefits { display: grid; gap: 18px; margin: 28px 0 40px; }
.ws-auth-benefits > span { display: flex; gap: 12px; align-items: center; color: #dbe5fa; font-size: .76rem; }
.ws-auth-benefits .ui-icon { color: #b8cdff; }
.ws-auth-story > small { color: #b1c3e6; font-size: .65rem; }
.ws-auth-form { display: grid; place-items: center; padding: 55px 35px 75px; background: #fff; }
.ws-login-card { width: min(100%, 370px); }
.ws-login-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #edf2ff; color: #2446ac; border-radius: 15px; margin-bottom: 26px; }
.ws-login-icon .ui-icon { width: 27px; height: 27px; }
.ws-login-card .eyebrow { font-size: .58rem; letter-spacing: 1.5px; }
.ws-login-card h2 { font-size: 2.2rem; margin: 12px 0; color: #13234b; }
.ws-login-card .sub { font-size: .85rem; color: #526080; margin-bottom: 30px; }
.ws-login-card .input { min-height: 48px; }
.ws-login-card .btn { min-height: 48px; margin-top: 8px; justify-content: space-between; }
.ws-login-help { text-align: center; margin: 26px 0 20px; padding-top: 22px; border-top: 1px solid #e0e7f4; color: #526080; line-height: 1.9; font-size: .72rem; }
.ws-login-help b { color: #293d68; font-weight: 600; }
.ws-back-link { display: block; text-align: center; font-size: .72rem; color: #2446ac; }
.ws-back-link:hover { text-decoration: underline; }
.workspace-footer { position: relative; background: #fff; color: #526080; border-top: 1px solid #dce3f0; margin: 0; padding: 0; }
.workspace-footer .footer-bottom { margin: 0 auto; padding: 30px 0; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.workspace-footer .brand-name { font-size: 1.2rem; }
.workspace-footer .brand-mark img { width: 78px; height: 36px; }
.footer-signoff { text-align: right; color: #293d68; font-size: .75rem; line-height: 1.9; }
.footer-signoff small { color: #526080; font-size: .62rem; }
.workspace-page .workspace-footer .footer-bottom { padding-top: 22px; padding-bottom: 22px; }
.connection-notice { top: calc(var(--header-height) + 12px); }
@media (min-width: 1600px) { .workspace-content { padding-left: 50px; padding-right: 50px; } }
@media (max-width: 1180px) {
    .workspace-rail { flex-basis: 180px; padding-left: 10px; padding-right: 10px; }
    .topbar-inner { width: calc(100% - 40px); gap: 16px; }
    .ws-hero-grid { gap: 35px; }
    .ws-hero h1 { font-size: 3rem; }
    .ws-hero-actions { gap: 16px; }
    .ws-knowledge-grid { gap: 40px; }
    .ws-feature-card { padding: 24px; }
    .ws-card-index { right: 22px; top: 43px; }
    .user-chip-name { max-width: 100px; overflow-wrap: anywhere; }
    .ws-dashboard-welcome .heading-actions { margin-top: 16px; }
}
@media (max-width: 960px) {
    .ws-hero-grid { grid-template-columns: 1fr; gap: 45px; }
    .ws-hero-copy { max-width: 650px; }
    .ws-hero-copy > p { max-width: 560px; }
    .ws-preview { width: min(100% - 20px, 540px); justify-self: center; }
    .ws-hero { padding-top: 55px; }
    .ws-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
    .ws-feature-grid { gap: 16px; }
    .ws-card-index { position: static; display: block; margin-bottom: 14px; }
    .ws-feature-icon { margin-bottom: 16px; }
    .ws-knowledge-grid { grid-template-columns: 1fr; gap: 30px; }
    .ws-topic-grid { rotate: 0deg; }
    .ws-auth-story { padding-left: 32px; padding-right: 32px; }
    .ws-section-heading { align-items: flex-start; gap: 25px; }
}
@media (max-width: 1280px) and (min-width: 1001px) {
    .space-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
    .space-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
    .space-sidebar { position: static; max-height: none; }
}
@media (max-width: 760px) {
    :root { --header-height: 76px; }
    .workspace-page { --header-height: 130px; }
    .topbar .container { width: calc(100% - 28px); }
    .topbar-inner { gap: 12px; }
    .topbar .brand-mark img { width: 64px; height: 32px; }
    .topbar .brand-name { font-size: 1.17rem; }
    .topbar .brand-tag { font-size: .5rem; }
    .brand { gap: 10px; }
    .brand-text { padding-left: 10px; }
    .workspace-page .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 65px 55px; gap: 0 10px; }
    .header-actions { justify-self: end; gap: 8px; }
    .header-search { display: flex; width: 100%; grid-column: 1 / -1; grid-row: 2; align-self: start; }
    .header-search input { padding: 11px 12px; }
    .topbar .user-chip { border-radius: 10px; padding: 3px; }
    .topbar .user-chip-name { display: none; }
    .workspace-shell { flex-direction: column; }
    .workspace-rail { position: sticky; top: var(--header-height); z-index: 35; height: auto; width: 100%; flex: 0 0 auto; flex-direction: row; align-self: stretch; gap: 4px; padding: 8px; overflow-x: auto; overflow-y: hidden; }
    .workspace-rail > a, .workspace-rail button { flex-direction: column; flex: 0 0 auto; justify-content: center; min-width: 64px; padding: 8px; gap: 5px; font-size: .59rem; }
    .workspace-rail .ui-icon { width: 19px; height: 19px; flex-basis: 19px; }
    .workspace-rail form { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
    .rail-heading, .rail-note { display: none; }
    .rail-count { position: absolute; top: 1px; right: 2px; font-size: .55rem; padding: 0 4px; background: #fff; color: #173584; min-width: 14px; }
    .workspace-content { padding: 20px 16px 45px; }
    .workspace-content .panel { padding: 20px; }
    .ws-dashboard-welcome { padding: 24px 22px 52px; }
    .ws-dashboard-welcome h1 { font-size: 1.65rem; }
    .ws-dashboard-welcome .heading-actions { margin-top: 8px; }
    .hero-search { flex-direction: row; flex-wrap: wrap; }
    .hero-search .input { flex: 1 1 150px; }
    .hero-search .btn { flex: 1 1 100%; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .kpi { padding: 16px; }
    .kpi b { font-size: 1.65rem; }
    .kpi span { font-size: .68rem; }
    .ws-section-heading { flex-direction: column; }
    .ws-section-heading > p { max-width: 100%; }
    .ws-feature-grid { grid-template-columns: 1fr; gap: 22px; }
    .ws-card-index { position: absolute; display: inline; }
    .ws-feature-card { padding: 26px; }
    .ws-feature-icon { margin-bottom: 24px; }
    .ws-discover { padding-top: 35px; padding-bottom: 60px; }
    .ws-knowledge-band { padding: 55px 0 100px; }
    .ws-topic-grid { gap: 10px; }
    .ws-topic-grid span { padding: 18px 14px; font-size: .7rem; }
    .ws-topic-grid span:nth-child(even) { translate: none; }
    .ws-auth { grid-template-columns: 1fr; }
    .ws-auth-story { padding: 42px 25px 65px; }
    .ws-auth-story::after { height: 30px; }
    .ws-auth-story .ws-kicker { font-size: .55rem; letter-spacing: 1px; }
    .ws-auth h1 { font-size: 2.2rem; margin: 18px 0; }
    .ws-auth-benefits, .ws-auth-story > small { display: none; }
    .ws-auth-story > p { margin-bottom: 0; }
    .ws-auth-form { padding: 30px 24px 55px; }
    .ws-login-card h2 { font-size: 1.9rem; }
    .workspace-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-signoff { text-align: left; }
    .ws-hero-note { font-size: .62rem; }
    .editor-topbar { position: static; }
    .page-toc { position: static; }
    .page-body, .comments { scroll-margin-top: 215px; }
    #main-content { scroll-margin-top: 205px; }
    .connection-notice { top: calc(var(--header-height) + 80px); }
}
@media (max-width: 420px) {
    .topbar .brand-tag { display: none; }
    .topbar .brand-mark img { width: 55px; }
    .topbar .brand-name { font-size: 1.05rem; }
    .ws-preview { width: 100%; }
    .ws-window-layout { grid-template-columns: 85px minmax(0, 1fr); }
    .ws-preview-nav { padding: 20px 5px; font-size: .49rem; }
    .ws-preview-page { padding: 18px 12px; }
    .ws-preview-page h2 { font-size: 1.2rem; }
    .ws-floating-note { right: 0; font-size: .6rem; padding: 10px 14px; }
    .ws-hero h1 { font-size: 2.3rem; }
    .ws-card-index { font-size: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .btn:hover, .kpi:hover, .space-card:hover { transform: none; }
}
@media print {
    .topbar, .workspace-rail, .workspace-footer, .skip-link, .toast-stack, .connection-notice, .wave-panel::after { display: none !important; }
    .workspace-shell { display: block; }
    .workspace-content { padding: 0; }
    body, .workspace-page { background: #fff; }
    .page-body { border: 0; box-shadow: none; }
}
