/* Citizen-only workspace. Preserve the site's borderless controls and theme. */
.cs-workspace{max-width:1120px!important}
.cs-back{display:inline-block;margin:0 0 24px;font-size:.82rem;text-decoration:none;color:var(--muted)}
.cs-workspace .cs-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
.cs-workspace-heading h1{font-size:clamp(1.9rem,3.3vw,2.6rem);letter-spacing:-.04em}
.cs-workspace-heading>.button{flex-shrink:0}
.cs-identity-strip{display:flex;align-items:center;gap:12px;margin:0 0 20px}
.cs-identity-strip img,.cs-initial{width:44px;height:44px;object-fit:cover;border-radius:50%;background:var(--theme-tint,#e0eee7);color:var(--theme-accent,#08776e)}
.cs-initial{display:grid;place-items:center;font-weight:750}
.cs-identity-strip>div{min-width:0}.cs-identity-strip strong{display:block;font-size:.9rem;overflow-wrap:anywhere}.cs-identity-strip>div>span{display:block;font-size:.75rem;color:var(--muted);margin-top:3px}
.cs-visibility,.cs-quiet-label{font-size:.74rem;color:var(--theme-accent,#08776e);background:var(--theme-tint,#e5f1eb);padding:6px 10px;border-radius:5px}
.cs-visibility{margin-left:auto;flex-shrink:0}
.cs-studio-tabs{display:flex;gap:6px;padding:5px;background:var(--theme-soft,#eeeFEA);border-radius:10px;margin-bottom:26px;scroll-margin-top:170px}
.cs-studio-tabs button{display:flex;justify-content:center;align-items:center;gap:10px;flex:1;min-height:48px;padding:10px 14px;background:none;color:var(--muted);border:0;border-radius:7px;font-size:.86rem;font-weight:650;white-space:nowrap}
.cs-studio-tabs button>span{font-size:.7rem;opacity:.7;font-weight:500}
.cs-studio-tabs button[aria-selected=true]{background:var(--theme-surface,#fff);color:var(--theme-accent,#08776e)}
.cs-studio-tabs button:hover{color:var(--theme-accent,#08776e)}
.cs-workspace [role=tabpanel][hidden]{display:none!important}
.cs-workspace .cs-studio,.cs-workspace .jf-profile-settings{margin:0}
.cs-workspace .cs-studio-panel{scroll-margin-top:190px;min-width:0}
.cs-workspace .cs-studio-panel>h2{font-size:1.5rem;margin:0 0 8px}
.cs-workspace .cs-studio-panel>.eyebrow{display:none}
.cs-workspace h2,.cs-workspace h3{font-family:inherit;letter-spacing:-.025em}
.cs-workspace .jf-panel,.cs-surface{background:var(--theme-surface,#fff);padding:26px;border:0;border-radius:12px;box-shadow:none;margin:0}
.cs-workspace .jf-profile-settings{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px;align-items:start}
.cs-workspace .jf-profile-settings aside{display:grid;gap:18px}
.cs-workspace .jf-profile-photo-preview{margin:20px 0}
.cs-workspace .jf-profile-photo-preview .jf-avatar{width:84px;height:84px}
.cs-workspace label{margin:0 0 18px;font-weight:600;font-size:.83rem}
.cs-workspace input:not([type=checkbox]),.cs-workspace textarea,.cs-workspace select{margin-top:7px;padding:12px 14px;font-weight:400}
.cs-workspace textarea{line-height:1.75}
.cs-workspace fieldset{padding:0;margin:0;border:0;min-width:0}
.cs-workspace .cs-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px;align-items:start}
.cs-workspace #cs-details-form,.cs-workspace #cs-details>.cs-grid>aside{background:var(--theme-surface,#fff);padding:26px;border-radius:12px}
.cs-workspace .cs-check,.cs-workspace .jf-check{font-weight:400;color:var(--muted);font-size:.78rem;line-height:1.65;margin:18px 0}
.cs-workspace .cs-check input,.cs-workspace .jf-check input{flex:0 0 17px;width:17px;height:17px;margin-top:4px}
.cs-workspace .cs-interests label{margin:0;font-size:.8rem;font-weight:500;border-radius:6px;padding:8px 10px;background:var(--theme-soft,#f2f5f1)}
.cs-workspace .cs-interests label:has(:checked){background:var(--theme-tint,#e1f1e9);color:var(--theme-accent,#08776e)}
.cs-workspace .cs-note{font-size:.8rem;line-height:1.75;color:var(--muted)}
.cs-workspace .cs-privacy-fold{margin:0 0 18px}.cs-workspace .cs-privacy-fold summary{font-size:.78rem;font-weight:500;color:var(--muted);padding:8px 0}.cs-workspace .cs-privacy-fold p{margin:8px 0;font-size:.78rem}
.cs-workspace .cs-preview-fold{grid-column:1/-1;margin:18px 0 0}
.cs-workspace .cs-preview-fold>summary,.cs-comments-fold>summary{padding:14px 0;color:var(--muted);font-size:.85rem}
.cs-workspace .cs-preview-fold .jc-banner-preview{max-width:760px;margin:20px auto}
.cs-section-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin:0 0 18px}
.cs-section-heading h2{font-size:1.5rem;margin:0 0 8px}.cs-section-heading p{margin:0}.cs-quiet-label{white-space:nowrap}
.cs-compose-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(240px,1fr);gap:22px;align-items:start}
.cs-compose-layout>*{min-width:0}.cs-post-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#main-content .cs-workspace .cs-title-field input{font-size:1.12rem;font-weight:600;padding-block:14px}
.cs-workspace #cs-post-form textarea{min-height:170px}
.cs-workspace .cs-photo-attach{background:var(--theme-soft,#f1f5f3);padding:16px;border-radius:8px}
.cs-workspace .cs-photo-attach label{margin:0}.cs-workspace .cs-photo-attach p{margin:8px 0 0;font-size:.72rem}
#main-content .cs-workspace input[type=file]{padding:8px 0;font-size:.78rem;min-height:44px;overflow:hidden}
.cs-workspace input[type=file]::file-selector-button{border:0;border-radius:5px;background:var(--theme-tint,#e0eee6);color:var(--theme-accent,#08776e);padding:10px 12px;margin-right:12px;cursor:pointer;font:inherit;font-weight:650}
.cs-workspace .cs-extra-links{margin:12px 0}.cs-workspace .cs-extra-links summary{font-size:.8rem;font-weight:500;color:var(--muted);padding:10px 0}
.cs-workspace .cs-submit-row{margin-top:18px}.cs-workspace .cs-submit-row .button{width:100%}
.cs-workspace .cs-submit-row .cs-check{margin:0 0 16px}
.cs-compose-aside h3{font-size:.93rem;margin:0 0 12px}.cs-workspace .cs-selected-area{color:var(--ink);font-size:.95rem;font-weight:650;margin:0 0 12px;overflow-wrap:anywhere}
.cs-workspace .cs-area-picker{margin:0}.cs-workspace .cs-area-picker summary{font-size:.78rem;color:var(--theme-accent,#08776e);padding:8px 0;font-weight:500}
.cs-workspace .cs-search{gap:4px;align-items:center}.cs-workspace .cs-search input{margin:0}.cs-workspace .cs-search .button{padding:10px}
.cs-publishing-note{padding:26px 18px}.cs-note-symbol{display:grid;place-items:center;width:34px;height:34px;background:var(--theme-tint,#e1eee7);color:var(--theme-accent,#08776e);border-radius:50%;margin-bottom:14px}
.cs-workspace .cs-publishing-note .button{padding:10px 0;font-size:.78rem}
.cs-workspace .cs-my-post{background:var(--theme-surface,#fff);padding:22px;border-radius:12px;margin-bottom:14px}
.cs-workspace .cs-my-post>p{font-size:.88rem}.cs-workspace .cs-my-post .cs-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0}.cs-workspace .cs-my-post .cs-photo-grid img{max-height:150px}
.cs-workspace .cs-my-post .cs-actions{font-size:.8rem}.cs-workspace .cs-my-post .cs-actions .button{padding:7px 10px;font-size:.78rem}
.cs-workspace :is(a,button,summary):focus-visible{outline:2px solid var(--theme-accent,#08776e);outline-offset:3px}

/* Citizen overview and grouped navigation. */
.citizen-workspace-shell .dashboard-nav{background:transparent;color:var(--ink);top:145px;height:calc(100vh - 145px);padding:30px 18px}
.citizen-workspace-shell .dashboard-nav .nav-user{padding-bottom:0;margin-bottom:24px}.citizen-workspace-shell .nav-user small{color:var(--muted)}
.citizen-workspace-shell .dashboard-nav nav{gap:14px}.cd-nav-group>p{font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--muted);margin:0 12px 8px}
.citizen-workspace-shell .dashboard-nav a{color:var(--muted);font-size:.8rem;font-weight:550;padding:9px 12px;margin:2px 0}
.citizen-workspace-shell .dashboard-nav a:is(:hover,[aria-current=page]){background:var(--theme-tint,#e3eee7);color:var(--theme-accent,#08776e)}
.citizen-workspace-shell .dashboard-nav a[aria-current=page]{font-weight:750}
.citizen-workspace-shell .dashboard-nav [data-logout]{color:var(--muted)!important;font-size:.8rem}
.app-shell.with-sidebar .citizen-home{max-width:1120px;padding-top:36px}
.cd-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
.cd-welcome .eyebrow{position:static;color:var(--theme-accent,#08776e);font-size:.7rem;margin:0 0 12px}
.cd-welcome h1{font-size:clamp(2rem,3.4vw,2.8rem);letter-spacing:-.04em;margin:0 0 10px;line-height:1.15}.cd-welcome h1>span{color:var(--theme-accent,#08776e)}
.cd-welcome p:last-child{font-size:.87rem;color:var(--muted);margin:0;max-width:440px;line-height:1.7}
.cd-welcome-actions{display:flex;gap:8px;flex-shrink:0;align-items:center}.cd-welcome-actions .button{font-size:.8rem;padding:12px 14px;white-space:nowrap}
.cd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:30px}
.citizen-home .dashboard-stat{position:relative;border:0;background:var(--theme-surface,#fff);padding:22px;border-radius:12px;box-shadow:none}
.citizen-home .dashboard-stat strong{font-size:1.9rem;line-height:1;margin-bottom:12px;color:var(--ink)}
.citizen-home .dashboard-stat span{font-size:.76rem;color:var(--muted)}
.citizen-home .dashboard-stat::after{content:'↗';position:absolute;top:22px;right:20px;font-size:.9rem;color:var(--theme-accent,#08776e)}
.citizen-home .dashboard-stat:hover{background:var(--theme-tint,#e6f1eb)}
.cd-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:24px;align-items:start}.cd-main-grid>*{min-width:0}
.cd-section{padding:24px;background:var(--theme-surface,#fff);border-radius:12px;margin-bottom:22px}
.citizen-home h2,.citizen-home h3{font-family:inherit;letter-spacing:-.02em}
.cd-section-heading{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}
.cd-section h2{font-size:1.02rem;margin:0 0 6px}.cd-section-heading p{font-size:.76rem;color:var(--muted);margin:0}.cd-section-heading>a{font-size:.75rem;white-space:nowrap}
.citizen-home .case-list{display:grid;gap:12px}.citizen-home .case-row{padding:16px;background:var(--theme-soft,#f4f6f2);border-radius:8px;box-shadow:none;gap:12px;align-items:start}
.citizen-home .case-row h3{font-size:.96rem;margin:6px 0}.citizen-home .case-row p{font-size:.73rem}.citizen-home .case-number{font-size:.65rem}.citizen-home .case-row-meta{flex-shrink:0}.citizen-home .status-pill{font-size:.64rem}
.cd-empty{padding:32px 18px;text-align:center;background:var(--theme-soft,#f3f6f2);border-radius:8px}.cd-empty>svg{width:32px;height:32px;color:var(--theme-accent,#08776e);margin:0 auto 14px}.cd-empty h3{font-size:1rem}.cd-empty p{font-size:.82rem;color:var(--muted);max-width:360px;margin:10px auto 18px;line-height:1.7}.cd-empty a{font-size:.82rem}
.cd-profile-prompt{padding:24px;border-radius:12px;background:var(--theme-tint,#e2eee6);margin-bottom:22px}.cd-prompt-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--theme-surface,#fff);color:var(--theme-accent,#08776e);margin-bottom:18px}.cd-prompt-icon svg{width:22px;height:22px}
.cd-profile-prompt h2{font-size:1.35rem;line-height:1.3;margin:0 0 10px;max-width:240px}.cd-profile-prompt p{font-size:.82rem;line-height:1.75;color:var(--muted);margin:0 0 20px}.cd-profile-prompt>a{font-size:.82rem;font-weight:700}
.cd-connections>a{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;padding:14px 0}.cd-connections>a>span:nth-child(2){flex:1;min-width:0}.cd-link-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--theme-soft,#f3f6f2);color:var(--theme-accent,#08776e);flex-shrink:0}.cd-link-icon svg{width:19px;height:19px}.cd-connections strong{display:block;font-size:.82rem}.cd-connections small{display:block;color:var(--muted);font-size:.7rem;line-height:1.5;margin-top:4px}.cd-connections>a:hover strong{text-decoration:underline;text-underline-offset:3px}
.cd-notification{display:flex;align-items:start;gap:10px;text-decoration:none;color:var(--ink);padding:14px 0}.cd-notification>span:nth-child(2){flex:1}.cd-notification strong{font-size:.83rem;display:block;line-height:1.5}.cd-notification small{display:block;font-size:.7rem;color:var(--muted);margin-top:5px}.cd-dot{width:6px;height:6px;border-radius:50%;background:var(--muted);opacity:.35;flex-shrink:0;margin-top:7px}.cd-dot.is-unread{background:var(--theme-accent,#08776e);opacity:1}.cd-muted{font-size:.8rem;color:var(--muted)}
@media(max-width:1200px){.cd-welcome{align-items:start;flex-direction:column}.cd-main-grid{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr)}}
@media(max-width:1000px){.cs-compose-layout{grid-template-columns:minmax(0,1fr) 260px}.cd-main-grid{grid-template-columns:1fr}.cd-main-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.citizen-home .case-row{flex-wrap:wrap}}
@media(max-width:900px){.citizen-workspace-shell .dashboard-nav{position:static;width:100%;height:auto;padding:12px 16px;overflow-x:auto}.citizen-workspace-shell .dashboard-nav nav{display:flex;gap:12px;width:max-content}.cd-nav-group{display:flex;gap:2px}.cd-nav-group>p{display:none}.citizen-workspace-shell .dashboard-nav .nav-user{display:none}.citizen-workspace-shell .dashboard-nav [data-logout]{margin:0!important}.app-shell.citizen-workspace-shell{display:block}}
@media(max-width:720px){.cs-workspace .cs-workspace-heading{align-items:start;flex-direction:column;gap:14px}.cs-workspace-heading h1{font-size:2rem}.cs-studio-tabs{overflow-x:auto;gap:2px}.cs-studio-tabs button{font-size:.78rem;padding:10px 12px;min-width:max-content}.cs-studio-tabs button>span{display:none}.cs-compose-layout,.cs-workspace .cs-grid,.cs-workspace .jf-profile-settings{grid-template-columns:1fr}.cs-compose-aside{display:grid;gap:14px;grid-template-columns:1fr}.cs-compose-layout>.cs-compose-aside{grid-row:1}.cs-publishing-note{display:none}.cs-section-heading{display:block}.cs-section-heading .cs-quiet-label{display:inline-block;margin-top:12px}.cs-workspace .cs-surface,.cs-workspace .jf-panel,.cs-workspace #cs-details-form,.cs-workspace #cs-details>.cs-grid>aside{padding:20px}.cs-workspace .cs-preview-fold{min-width:0}.cs-workspace .cs-photo-grid{gap:8px}.cs-workspace .cs-post-meta{gap:12px}.cs-workspace .cs-post-meta select{padding:10px;font-size:.82rem}.cs-workspace .cs-search{margin-top:8px}.cs-workspace .cs-compose-aside .cs-surface{padding:16px 20px}.cs-workspace .cs-compose-aside h3{margin:0 0 6px}.cs-workspace .cs-selected-area{margin:0;font-size:.87rem}.cs-workspace .cs-area-picker summary{min-height:36px}.cd-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.citizen-home .dashboard-stat{padding:18px}.citizen-home .dashboard-stat strong{font-size:1.6rem}.cd-main-grid>aside{display:block}.cd-section,.cd-profile-prompt{padding:20px}.cd-welcome-actions{flex-wrap:wrap}.cd-welcome-actions .button{font-size:.76rem}.cd-main-grid{gap:0}.cs-visibility{font-size:.65rem;padding:6px}.cs-workspace .cs-extra-links .cs-post-meta{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.cs-workspace [role=tabpanel]:not([hidden]){animation:cs-panel-in .18s ease-out}@keyframes cs-panel-in{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.cs-workspace *,.citizen-home *{scroll-behavior:auto;animation:none;transition:none}}
@media(max-width:720px){.cs-studio-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.cs-studio-tabs button{min-width:0;white-space:normal;text-align:center;line-height:1.5}.citizen-workspace-shell .dashboard-nav{scrollbar-width:thin}.cs-workspace .cs-section-heading{margin-bottom:16px}}
