/* Clean workspace design. Existing sidebar and page behavior are preserved. */
body:is(.workspace-page,.writing-app,.auth-page){--brand-body-font:'Source Sans 3',Arial,sans-serif;--brand-heading-font:'Source Sans 3',Arial,sans-serif;--brand-muted:#626a70;--ui-muted:#626a70;--app-body-size:14px;--app-label-size:13px;--app-small-size:12px;background:var(--brand-canvas);color:var(--brand-ink);font:400 14px/1.55 var(--brand-body-font);-webkit-font-smoothing:antialiased}
body:is(.workspace-page,.writing-app,.auth-page)>#__next{height:100%;min-height:100%}
body:is(.workspace-page,.writing-app)>#__next>.app-shell{height:100%;min-height:0;overflow:hidden}
body.auth-page>#__next>.container{max-width:1160px;min-height:100dvh;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto}
body:is(.workspace-page,.writing-app,.auth-page) :is(h1,h2,h3,h4,h5,h6){font-family:var(--brand-heading-font)!important;font-weight:700;letter-spacing:-.02em}
body:is(.workspace-page,.writing-app,.auth-page) :is(button,input,select,textarea){font-family:var(--brand-body-font)}
body.workspace-page .main{background:var(--brand-canvas)}
body.workspace-page .main>:is(.page-header,.dashboard-header),body.writing-app .writing-header{background:var(--brand-paper);border-bottom:1px solid var(--brand-line);min-height:90px}
body.workspace-page .main>:is(.page-header,.dashboard-header) .header-left h1{font:700 28px/1.2 var(--brand-heading-font);letter-spacing:-.025em;color:var(--brand-ink)}
body.workspace-page .main>.dashboard-header{padding:20px 30px;min-height:102px}
body.workspace-page .dashboard-header .header-left h1{font-size:32px;margin:5px 0 0}
body.workspace-page .dashboard-header .dashboard-welcome-label{display:flex;align-items:center;gap:7px;margin:0;color:var(--brand-ink);font-size:11px;font-weight:600;letter-spacing:.025em;text-transform:uppercase}
.dashboard-welcome-label svg{width:17px;height:17px}
body.workspace-page .dashboard-header .workspace-chip{display:none}
body.workspace-page .workspace-content{padding:24px 28px 32px}
.pulse-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--brand-ink)}
.pulse-brand .contentryter-brand-image{display:block;width:192px;max-width:100%;height:auto;object-fit:contain;filter:none!important}
@media(max-width:600px){body.auth-page .pulse-brand .contentryter-brand-image{width:172px}}
.pulse-brand .pulse-brand-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;box-sizing:border-box;background:#8685ef;color:white;border:0;border-radius:9px;box-shadow:none}
.pulse-brand .pulse-brand-mark img{display:block;width:100%;height:100%;max-width:none}
.pulse-brand.pulse-brand--light .pulse-brand-name{color:#fff}
.pulse-brand .pulse-brand-mark svg{width:22px;height:22px;stroke-width:1.9}
.pulse-brand .pulse-brand-name{font:700 24px/1.2 var(--brand-heading-font);letter-spacing:-.6px;color:var(--brand-ink);white-space:nowrap}
.pulse-brand .pulse-brand-name>span{color:var(--brand-coral)}
body:is(.workspace-page,.writing-app) .app-shell>.sidebar,body:is(.workspace-page,.writing-app) .mobile-navigation,body:is(.workspace-page,.writing-app) .mobile-navigation nav{background:var(--brand-paper);color:var(--brand-ink);border-color:var(--brand-line)}
body:is(.workspace-page,.writing-app) .app-shell>.sidebar{border-right:1px solid var(--brand-line);padding-top:24px}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-logo{padding-bottom:24px;margin-bottom:18px;border-color:var(--brand-line)}
body:is(.workspace-page,.writing-app) .sidebar .nav-item{border:0;border-radius:8px;color:#4d555a;font-size:14px;font-weight:500;box-shadow:none;padding:11px 12px;margin-bottom:5px}
body:is(.workspace-page,.writing-app) .sidebar .nav-item:hover{background:#f3f6f7;color:var(--brand-primary)}
body:is(.workspace-page,.writing-app) .sidebar .nav-item.active{background:#e9f0f2;color:var(--brand-primary);border:0;box-shadow:none;font-weight:700}
body:is(.workspace-page,.writing-app) .sidebar .nav-item>.sketch-icon,body:is(.workspace-page,.writing-app) .sidebar .nav-item:is(.active,:hover)>.sketch-icon{color:inherit}
body:is(.workspace-page,.writing-app) .sidebar :is(.navigation-label,.nav-section-title){color:#899095;font-size:10px;font-weight:600;letter-spacing:.1em}
body:is(.workspace-page,.writing-app) .sidebar .nav-section{border-color:var(--brand-line)}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search{display:flex;align-items:center;box-sizing:border-box;min-width:0;height:44px;background:#f7f8f9;border:1px solid var(--brand-line);border-radius:7px;margin-bottom:22px}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search input{flex:1 1 0;box-sizing:border-box;width:0;min-width:0;height:42px;min-height:0;background:transparent;color:var(--brand-ink);border:0;padding:0 0 0 11px;font:400 13px/1.4 var(--brand-secondary-font);border-radius:6px 0 0 6px}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search button{position:static;display:flex;align-items:center;justify-content:center;flex:0 0 42px;box-sizing:border-box;width:42px;height:42px;min-width:42px;min-height:42px;margin:0;padding:0;border:0;border-radius:0 6px 6px 0;background:transparent;color:var(--brand-muted);box-shadow:none;transform:none}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search button .sketch-icon{display:block;width:18px;height:18px;flex-shrink:0}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search:focus-within{border-color:var(--brand-primary);outline:2px solid var(--brand-primary);outline-offset:2px}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search input:focus-visible{outline:none;box-shadow:none}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search input::placeholder{color:#8a9297}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search button,body:is(.workspace-page,.writing-app) .mobile-navigation summary .mobile-menu-label,body:is(.workspace-page,.writing-app) .mobile-navigation nav a{color:var(--brand-muted)}
body.workspace-page .mobile-navigation nav a[aria-current]{background:#e9f0f2;color:var(--brand-primary);border-radius:7px}
body.workspace-page .header-right .user-avatar{background:#e9f0f2;color:var(--brand-primary);border:0;border-radius:50%}
body.workspace-page .workspace-content :is(.panel,.stat-card,.project-card,.template-card,.settings-card,.documents-container,.keyword-section,.planner-board),body.auth-page :is(.auth-form-panel,.auth-preview){background:var(--brand-paper)!important;border:1px solid #eef0f1!important;border-radius:16px;box-shadow:none!important}
body.workspace-page .workspace-content .panel{padding:24px}
body.workspace-page .workspace-content :is(.panel-header h2,.panel-header h3,.settings-card>h3,.keyword-section-head h2,.planner-board-header h2){font:700 20px/1.35 var(--brand-heading-font);letter-spacing:-.02em}
body.workspace-page .workspace-content .panel-header{border:0;padding-bottom:0;margin-bottom:18px}
body.workspace-page .workspace-content .panel-header>a{background:#f0f3f4;color:var(--brand-ink);padding:8px 12px;border-radius:7px;font-size:12px;font-weight:600;text-decoration:none}
/* Shared page introductions: keep the copy inset and the metadata secondary. */
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading){display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;box-sizing:border-box;background:var(--brand-paper);border:1px solid var(--brand-line);border-radius:14px;box-shadow:none;padding:24px 28px;margin:0 0 24px;min-width:0}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading)>div{display:block;min-width:0}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading) h2{margin:0 0 8px;font-size:28px!important;font-weight:700;line-height:1.25;letter-spacing:-.025em;color:var(--brand-ink)}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading) h2 em{font:inherit;color:inherit;background:none;text-decoration:none}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading) p{margin:0;max-width:760px;font-size:14px!important;line-height:1.6;color:var(--brand-muted)}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading) :is(.documents-eyebrow,.planner-eyebrow,.templates-eyebrow,.keyword-eyebrow,.management-eyebrow){display:block;width:auto;padding:0;margin:0 0 10px;border:0;border-radius:0;background:none;color:var(--brand-muted);font-size:11px!important;font-weight:600;line-height:1.4;letter-spacing:.08em;text-transform:uppercase}
body.workspace-page[class] .workspace-content :is(.documents-total,.templates-count,.management-count,.keyword-intro-count){display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;box-sizing:border-box;min-height:36px;padding:7px 12px;border:1px solid var(--brand-line);border-radius:7px;background:#f7f9fa;color:var(--brand-muted);font-size:13px!important;font-weight:500;line-height:1.5;white-space:nowrap}
body.workspace-page[class] .workspace-content :is(.documents-total,.templates-count,.management-count,.keyword-intro-count) .sketch-icon{width:16px;height:16px;flex-shrink:0}
@media(max-width:800px){
 body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading){align-items:flex-start;flex-direction:column;gap:16px;padding:20px;margin-bottom:20px}
 body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading) h2{font-size:24px!important}
}
body.workspace-page[class] .workspace-content .settings-section-heading{display:block}
/* The Settings grid owns vertical spacing; headers must not add a second gap. */
body.workspace-page.settings-page[class]{--app-space-section:24px}
body.workspace-page.settings-page[class] .workspace-content .settings-section-heading{margin:0}
body.workspace-page.settings-page[class] .workspace-content :is(.settings-section.active,.settings-stack,.settings-grid){gap:var(--app-space-section);align-content:start}
body.workspace-page.settings-page[class] .settings-container{align-items:start}
body.workspace-page.settings-page[class] #usageSection .usage-page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px}
body.workspace-page.settings-page[class] #usageSection .usage-page-heading>.btn-secondary{align-self:center;justify-self:end;white-space:nowrap;margin:0}
/* Show fragment-selected settings before the post-hydration controls bind. */
html[data-settings-tab] body.workspace-page.settings-page .settings-section{display:none}
html[data-settings-tab=profile] body.workspace-page.settings-page #profileSection,
html[data-settings-tab=workspace] body.workspace-page.settings-page #workspaceSection,
html[data-settings-tab=billing] body.workspace-page.settings-page #billingSection,
html[data-settings-tab=usage] body.workspace-page.settings-page #usageSection,
html[data-settings-tab=security] body.workspace-page.settings-page #securitySection,
html[data-settings-tab=notifications] body.workspace-page.settings-page #notificationsSection,
html[data-settings-tab=api] body.workspace-page.settings-page #apiSection{display:grid;gap:var(--app-space-section);align-content:start}
html[data-settings-tab] body.workspace-page.settings-page .settings-nav-item{background:transparent;color:var(--brand-muted)!important;font-weight:500}
html[data-settings-tab=profile] body.workspace-page.settings-page [data-section=profile],
html[data-settings-tab=workspace] body.workspace-page.settings-page [data-section=workspace],
html[data-settings-tab=billing] body.workspace-page.settings-page [data-section=billing],
html[data-settings-tab=usage] body.workspace-page.settings-page [data-section=usage],
html[data-settings-tab=security] body.workspace-page.settings-page [data-section=security],
html[data-settings-tab=notifications] body.workspace-page.settings-page [data-section=notifications],
html[data-settings-tab=api] body.workspace-page.settings-page [data-section=api]{background:#e9f0f2;color:var(--brand-primary)!important;font-weight:700}
/* Security cards follow the same full-width column as every Settings section. */
body.workspace-page.settings-page[class] #securitySection>.settings-stack{width:100%;max-width:none;min-width:0}
body.workspace-page.settings-page[class] #securitySection .settings-card{box-sizing:border-box;width:100%;min-width:0;padding:24px}
body.workspace-page.settings-page[class] #securitySection .settings-card>:is(h3,.settings-card-title){margin:0 0 20px;padding:0 0 16px}
body.workspace-page.settings-page[class] #securitySection .settings-card>:is(.form-group,.form-row){width:100%;max-width:none;margin:0 0 20px}
body.workspace-page.settings-page[class] #securitySection .settings-card>form{width:100%;max-width:none;margin:0}
body.workspace-page.settings-page[class] #securitySection .settings-card>p{margin:0 0 20px;line-height:1.6;color:var(--brand-muted)}
body.workspace-page.settings-page[class] #securitySection .mfa-settings-field{display:block;margin:0 0 20px;line-height:1.5;color:var(--brand-ink)}
body.workspace-page.settings-page[class] #securitySection .mfa-settings-field input{display:block;margin-top:8px}
body.workspace-page.settings-page[class] #securitySection .form-control{box-sizing:border-box;width:100%;max-width:none}
body.workspace-page.settings-page[class] #securitySection .settings-actions{width:100%;max-width:none;box-sizing:border-box;margin:0;padding-top:16px;justify-content:flex-end}
@media(max-width:800px){body.workspace-page.settings-page[class] #securitySection .settings-card{padding:20px}}
body.workspace-page.settings-page[class] #securitySection .social-provider-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;margin:16px 0 0;padding:16px;border:1px solid var(--brand-line);border-radius:10px;background:var(--brand-paper)}
body.workspace-page.settings-page[class] #securitySection .social-provider-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
body.workspace-page.settings-page[class] #securitySection .social-provider-heading h4{display:flex;align-items:center;gap:9px;margin:0;padding:0;font-size:16px!important;border:0}
body.workspace-page.settings-page[class] #securitySection .social-provider-status{padding:4px 8px;border-radius:5px;background:var(--brand-canvas);color:var(--brand-muted);font:400 11px/1.5 var(--brand-secondary-font);white-space:nowrap}
body.workspace-page.settings-page[class] #securitySection .social-provider-status.is-connected{background:var(--brand-mint);color:var(--brand-green)}
body.workspace-page.settings-page[class] #securitySection .social-provider-row>p{margin:0;align-self:center;font-size:13px;line-height:1.6;color:var(--brand-muted)}
body.workspace-page.settings-page[class] #securitySection .social-provider-connected{grid-column:1/-1;background:var(--brand-mint);color:var(--brand-green);padding:10px 12px;border-radius:6px}
body.workspace-page.settings-page[class] #securitySection .social-provider-form{grid-column:1/-1;display:flex;align-items:flex-end;gap:16px;margin:0}
body.workspace-page.settings-page[class] #securitySection .social-provider-form .mfa-settings-field{flex:1;min-width:0;margin:0}
body.workspace-page.settings-page[class] #securitySection .social-provider-connect{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:44px;margin:0}
body.workspace-page.settings-page[class] #securitySection .social-provider-row svg{width:18px;height:18px;flex-shrink:0}
@media(max-width:600px){
 body.workspace-page.settings-page[class] #securitySection .social-provider-row{grid-template-columns:minmax(0,1fr);padding:14px}
 body.workspace-page.settings-page[class] #securitySection .social-provider-form{flex-direction:column;align-items:stretch;gap:12px}
 body.workspace-page.settings-page[class] #securitySection .social-provider-form .mfa-settings-field{width:100%}
 body.workspace-page.settings-page[class] #securitySection .social-provider-connect{width:100%}
}
@media(max-width:800px){body.workspace-page.settings-page[class]{--app-space-section:20px}}
body.workspace-page.dashboard-page .stats-grid{gap:18px;margin:0 0 24px}
body.workspace-page .workspace-content .stat-card{padding:18px 20px;min-height:130px}
body.workspace-page .workspace-content .stat-value{font-size:30px;font-weight:700;color:var(--brand-ink);margin:8px 0 4px}
body.workspace-page .workspace-content .stat-icon{background:#eef3f4;color:var(--brand-primary);border:0;border-radius:10px;width:34px;height:34px}
body.workspace-page .workspace-content .stat-card:nth-child(even) .stat-icon{background:var(--brand-coral-soft);color:var(--brand-coral-ink)}
body.workspace-page .workspace-content .stat-change{font-size:12px;color:var(--brand-muted)}
body.workspace-page.dashboard-page .dashboard-panels{gap:22px;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr)}
body.workspace-page .dashboard-column{gap:22px}
body.workspace-page .workspace-content :is(.doc-icon,.project-icon,.template-icon,.dashboard-document-icon,.dashboard-project-icon,.planner-intro-icon,.assistant-mark){background:#edf3f4;color:var(--brand-primary);border:0;border-radius:10px;box-shadow:none}
body:is(.workspace-page,.writing-app,.auth-page) :is(.btn-primary,.primary-btn,.action-btn.primary,.app-dialog-btn.primary,.template-btn.primary,.plan-checkout-button,.btn-signin,.btn-signup,.auth-submit),body.workspace-page .workspace-content :is(.project-meta>a,.action-link){background:var(--brand-primary)!important;color:#fff!important;border:1px solid var(--brand-primary)!important;border-radius:7px;box-shadow:none!important;font-size:13px;font-weight:600;min-height:40px;transition:background-color .15s}
body:is(.workspace-page,.writing-app,.auth-page) :is(.btn-primary,.primary-btn,.btn-signin,.btn-signup):hover{background:var(--brand-primary-hover)!important;border-color:var(--brand-primary-hover)!important}
body:is(.workspace-page,.writing-app,.auth-page) :is(.btn-secondary,.secondary-btn,.header-link,.app-dialog-btn.secondary,.social-login-btn),body.workspace-page .header-right .btn-secondary{background:#f0f3f4!important;color:var(--brand-ink)!important;border:1px solid transparent!important;border-radius:7px;box-shadow:none!important;font-size:13px;font-weight:600}
body:is(.workspace-page,.writing-app,.auth-page) :is(.btn-secondary,.secondary-btn,.header-link):hover{background:#e7ecee!important}
body:is(.workspace-page,.writing-app,.auth-page) :is(.btn-primary,.btn-secondary,.btn-signin,.btn-signup):active{transform:none;box-shadow:none!important}
body:is(.workspace-page,.writing-app) .app-dialog-actions .app-dialog-btn.primary.is-destructive{background:#b42332!important;color:#fff!important;border-color:#b42332!important}
body:is(.workspace-page,.writing-app) .app-dialog-actions .app-dialog-btn.primary.is-warning{background:#fff1e7!important;color:#89531c!important;border-color:#efd5b9!important}
body:is(.workspace-page,.writing-app,.auth-page) button:disabled{box-shadow:none!important;transform:none;opacity:.55}
body.workspace-page .workspace-content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea),body.auth-page .auth-form-panel .input-wrapper .form-control,body.writing-app .inspector-panel :is(input:not([type=checkbox]),select,textarea){background:#fff;color:var(--brand-ink);border:1px solid #dce2e6;border-radius:7px;font-size:14px}
body.workspace-page .workspace-content :is(.search-bar,.keyword-search,.search-input-wrapper){background:#fff;border:1px solid #dce2e6;border-radius:8px;box-shadow:none}
body.workspace-page .workspace-content .search-bar input{border:0;background:transparent;box-shadow:none}
body:is(.workspace-page,.writing-app,.auth-page) input[type=checkbox]{accent-color:var(--brand-primary)}
body.workspace-page :is(.filter-tab,.filter-chip,.admin-tabs a,.settings-nav-item){border:0;border-radius:7px;background:transparent;color:var(--brand-muted);font-size:13px;font-weight:500;box-shadow:none}
body.workspace-page :is(.filter-tab.active,.filter-chip.active,.admin-tabs a[aria-current],.settings-nav-item.active){background:#e9f0f2;color:var(--brand-primary)!important;border-color:transparent;box-shadow:none;font-weight:700}
body.workspace-page :is(.workspace-chip,.plan-badge,.documents-library-count,.template-category){background:#edf3f4;color:var(--brand-primary);border-color:transparent;border-radius:6px}
body.workspace-page .workspace-content :is(.muted-text,.muted-cell,.project-desc,.project-date,.research-copy),body.workspace-page .admin-content :is(p,.muted-text){color:var(--brand-muted)}
body.writing-app :is(.writing-main,.writing-workspace,.editor-main){background:var(--brand-canvas)}
body.writing-app :is(.draft-area,.writing-paper){background:#fff;border-color:var(--brand-line);border-radius:12px}
body.writing-app .formatting-bar{background:#fff;border-color:var(--brand-line)}
body.writing-app .formatting-bar button[aria-pressed=true],body.writing-app .inspector-tabs button[aria-selected=true]{background:#edf3f4;color:var(--brand-primary)}
body.writing-app .creation-workflow.editor-creation-flow{background:var(--brand-paper);border-bottom-color:var(--brand-line)}
body.writing-app .creation-workflow.editor-creation-flow :is(li,.creation-workflow-next p){color:var(--brand-muted)}
body.writing-app .creation-workflow.editor-creation-flow li+li::before{color:var(--brand-muted)}
body.writing-app .creation-workflow.editor-creation-flow li span{background:var(--brand-canvas);color:var(--brand-muted)}
body.writing-app .creation-workflow.editor-creation-flow li.is-complete{color:var(--brand-ink)}
body.writing-app .creation-workflow.editor-creation-flow li.is-current{color:var(--brand-primary)}
body.writing-app .creation-workflow.editor-creation-flow li.is-current span{background:var(--brand-primary);color:var(--brand-paper)}
body.writing-app .writing-inspector.separate-tool-tabs{background:#f3f5f6;border-color:var(--brand-line);border-radius:12px}
body:is(.workspace-page,.writing-app) :is(.app-dialog-card,.planner-dialog,.modal-card,.writing-dialog){background:#fff;border:1px solid var(--brand-line);border-radius:14px;box-shadow:0 16px 50px #19323c1f}
body:is(.workspace-page,.writing-app) :is(.app-dialog-head,.modal-header,.dialog-heading,.planner-dialog header){background:#fff;border-color:var(--brand-line)}
body.workspace-page .workspace-content table th{background:#f9fafb;color:#6c7378;font-weight:600;font-size:12px;border-color:var(--brand-line)}
body.workspace-page .workspace-content table td{border-color:#edf0f2}
body.workspace-page.documents-page .workspace-content .documents-table .row-actions a.action-link{background:#edf3f4;color:var(--brand-primary);border:0;border-radius:7px;box-shadow:none;font-size:13px}
body.workspace-page.documents-page .workspace-content .documents-table .row-actions a.action-link:hover{background:#e2ecef}
body.auth-page .auth-story{background:transparent;border:0;padding-left:0}
body.auth-page .auth-story :is(h2,h2 em){font-size:clamp(36px,4vw,54px);font-weight:700;line-height:1.15;color:var(--brand-ink);background:none;text-decoration:none;font-style:normal}
body.auth-page .auth-story h2 em{color:var(--brand-primary)}
body.auth-page .auth-story-workspace{max-width:520px}
body.auth-page .auth-story-workspace .auth-kicker{padding:0;margin:0 0 22px;gap:10px;border:0;background:none;color:var(--brand-muted);font:500 12px/1.5 var(--brand-secondary-font)}
body.auth-page .auth-kicker-icon{display:grid;place-items:center;width:30px;height:30px;background:var(--brand-coral);color:#fff;border-radius:9px}
body.auth-page .auth-kicker-icon svg{width:16px;height:16px}
body.auth-page .auth-story-workspace h2{font-size:clamp(32px,3.2vw,44px);line-height:1.18;letter-spacing:-.035em;margin:0 0 18px}
body.auth-page .auth-story-workspace>p{max-width:440px;font-size:15px!important;line-height:1.7}
body.auth-page .auth-workflow-card{padding:0;margin-top:28px;overflow:hidden;border-radius:12px}
body.auth-page .auth-workflow-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px;border-bottom:1px solid var(--brand-line)}
body.auth-page .auth-workflow-eyebrow{display:block;margin-bottom:7px;color:var(--brand-muted);font:500 10px/1.5 var(--brand-secondary-font);letter-spacing:.08em}
body.auth-page .auth-workflow-header h3{font-size:19px!important;line-height:1.4;margin:0;letter-spacing:-.02em}
body.auth-page .auth-workflow-brand{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:var(--brand-coral-soft);color:var(--brand-coral-ink)}
body.auth-page .auth-workflow-brand svg{width:20px;height:20px}
body.auth-page .auth-workflow-list{list-style:none;margin:0;padding:8px 22px}
body.auth-page .auth-workflow-list li{display:flex;align-items:center;gap:14px;padding:16px 0}
body.auth-page .auth-workflow-list li+li{border-top:1px solid var(--brand-line)}
body.auth-page .auth-workflow-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:var(--brand-lavender);color:var(--brand-primary)}
body.auth-page .auth-workflow-list li:nth-child(2) .auth-workflow-icon{background:var(--brand-coral-soft);color:var(--brand-coral-ink)}
body.auth-page .auth-workflow-icon svg{width:18px;height:18px}
body.auth-page .auth-workflow-list strong{display:block;font-size:14px;font-weight:600;line-height:1.5}
body.auth-page .auth-workflow-list p{margin:4px 0 0;font-size:12px;line-height:1.6;color:var(--brand-muted)}
body.auth-page .auth-workflow-note{display:flex;align-items:center;gap:8px;margin:0;padding:14px 22px;border-top:1px solid var(--brand-mint-line);background:var(--brand-mint);color:var(--brand-green);font:400 12px/1.6 var(--brand-secondary-font)}
body.auth-page .auth-workflow-note svg{width:16px;height:16px;flex-shrink:0}
body.auth-page .auth-nav .pulse-brand .pulse-brand-name{font-family:var(--brand-heading-font);font-size:24px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.6px}
body.auth-page .auth-form-panel h1{font-weight:700;font-size:30px}
body.auth-page .auth-form-panel{padding:36px}
body.auth-page .auth-preview-tag{background:var(--brand-mint);color:var(--brand-green);border:0;border-radius:5px}
/* Coral carries the brand accents; vivid green confirms successful actions. */
body:is(.workspace-page,.writing-app,.auth-page) :is(.alert-success,#editorMessage[data-kind=success],.document-import-notice[data-kind=success]){background:var(--brand-success);border-color:var(--brand-success);color:var(--brand-paper);border-radius:7px}
body:is(.workspace-page,.writing-app,.auth-page) :is(.alert-success,#editorMessage[data-kind=success],.document-import-notice[data-kind=success]) :is(a,button){color:inherit}
body:is(.workspace-page,.writing-app,.auth-page) .alert-success a{text-decoration:underline}
body.writing-app #saveState[data-state=saved]{color:var(--brand-success)}
body.auth-page .auth-preview-line{background:#e6ecef}
body.auth-page .auth-nav .auth-home{color:var(--brand-muted);border:0;border-radius:7px;padding:8px 12px;background:#fff;box-shadow:none}
body.auth-page .auth-form-panel a{color:var(--brand-primary);text-decoration:none}
/* Secondary type distinguishes navigation, labels and supporting metadata. */
body:is(.workspace-page,.writing-app,.auth-page) :is(.sidebar .nav-item,.sidebar-section-title,.sidebar-group-label,.mobile-navigation nav a,label,th,.filter-tab,.filter-chip,.editor-tool-tabs button,.inspector-tabs button,.settings-nav-item,.admin-tabs a,.creation-workflow,.writing-footer,.stat-change,.doc-meta,.project-meta,.project-date,.template-category,.documents-total,.management-count,.templates-count,.keyword-intro-count,.documents-eyebrow,.planner-eyebrow,.templates-eyebrow,.keyword-eyebrow,.management-eyebrow,.documents-pagination,.documents-search-summary,.dashboard-document-meta,.dashboard-project-meta){font-family:var(--brand-secondary-font)!important}
/* A native React setup panel, with completion derived from workspace activity. */
.getting-started-panel{box-sizing:border-box;background:#fff;border-radius:16px;padding:24px;margin:0 0 24px;border:1px solid #f0f2f3}
html[data-getting-started-dismissed] body.workspace-page.dashboard-page .getting-started-panel{display:none}
.getting-started-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
body.workspace-page .workspace-content .getting-started-heading h2{font:700 21px/1.3 var(--brand-heading-font);letter-spacing:-.025em;margin:0;color:var(--brand-ink)}
.getting-started-dismiss{display:grid;place-items:center;width:34px;height:34px;flex:none;padding:0;border:0;border-radius:50%;background:#f0f3f4;color:#293238;cursor:pointer}
.getting-started-dismiss:hover{background:#e3e9eb}
body.workspace-page .getting-started-panel .getting-started-dismiss[data-ui-icon]{width:36px;height:36px;min-width:36px;min-height:36px;border:0;border-radius:50%;background:#f0f3f4;color:#293238;box-shadow:none}
.getting-started-dismiss:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}
.getting-started-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:18px}
.getting-started-progress>span{height:3px;background:#edf0f2}
.getting-started-progress>span.is-complete{background:var(--brand-success)}
.getting-started-completion{margin:8px 0 18px;text-align:center;font-size:12px;font-weight:600;color:#343b40}
.getting-started-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.getting-started-task{display:flex;align-items:center;position:relative;gap:16px;box-sizing:border-box;padding:18px 18px 18px 14px;min-height:104px;border:1px solid #e9ecee;border-radius:13px;background:#fff}
.getting-started-art{display:block;width:60px;height:60px;flex:0 0 60px}
.getting-started-copy{min-width:0;flex:1}
.getting-started-copy>a{display:inline-block;font-size:14px;line-height:1.4;font-weight:700;text-decoration:underline;text-underline-offset:2px;color:#292d30;margin-bottom:5px;padding-right:42px}
.getting-started-copy>a:hover{color:var(--brand-primary)}
.getting-started-copy>p{font-size:13px;line-height:1.5;color:#6b7176;margin:0;max-width:440px}
.getting-started-done{display:inline-flex;align-items:center;gap:4px;position:absolute;top:13px;right:13px;background:var(--brand-lavender);color:var(--brand-primary);padding:2px 6px;border-radius:3px;font-size:11px;font-weight:600;line-height:1.4}
.getting-started-done svg{flex:none}
@container document-library (max-width:1159px){body.workspace-page.documents-page .workspace-content .documents-container{background:transparent!important;border:0!important;box-shadow:none!important}body.workspace-page.documents-page .workspace-content .documents-table tbody tr{border:1px solid #e9ecee;border-radius:13px;box-shadow:none;background:#fff}}
@media(max-width:1100px){.getting-started-task{padding:16px 12px;gap:12px}.getting-started-art{width:50px;height:50px;flex-basis:50px}.getting-started-copy>a{font-size:13px}.getting-started-copy>p{font-size:12px}.getting-started-done{top:10px;right:10px}}
@media(max-width:850px){.getting-started-grid{grid-template-columns:minmax(0,1fr)}body.workspace-page.dashboard-page .dashboard-panels{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){body:is(.workspace-page,.writing-app)>#__next>.app-shell{display:flex;flex-direction:column}body.workspace-page .main>.dashboard-header{padding:18px 16px;gap:18px}body.workspace-page .dashboard-header .header-left h1{font-size:27px}.getting-started-panel{padding:20px;margin-bottom:20px}.getting-started-task{min-height:100px}.getting-started-grid{gap:12px}.getting-started-art{width:54px;height:54px;flex-basis:54px}body.workspace-page .workspace-content{padding:18px 16px 24px}body.workspace-page .header-right .dashboard-account-name{display:none}body.auth-page .auth-form-panel{padding:24px}body.auth-page .auth-nav .pulse-brand .pulse-brand-name{font-size:22px!important}}
@media(max-width:480px){body.workspace-page .dashboard-header .header-right{width:100%;justify-content:space-between}.getting-started-panel{padding:18px 14px}.getting-started-task{gap:10px;padding:16px 10px}.getting-started-art{width:46px;height:46px;flex-basis:46px}.getting-started-copy>a{font-size:13px;padding-right:30px}.getting-started-done{font-size:10px;top:9px;right:9px;padding:2px 4px}.getting-started-done svg{width:10px}.getting-started-copy>p{font-size:12px}body.workspace-page .workspace-content .stat-card{padding:16px;min-height:116px}}
@media(prefers-reduced-motion:reduce){body:is(.workspace-page,.writing-app,.auth-page) *{transition:none;scroll-behavior:auto}}
/* Light checklist and panel details inspired by the setup workspace reference. */
body.workspace-page.dashboard-page .getting-started-panel{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;gap:16px;align-items:center;border-color:var(--brand-line);border-radius:12px;padding:24px}
body.workspace-page.dashboard-page .getting-started-heading{display:contents}
body.workspace-page.dashboard-page .getting-started-heading h2{grid-column:1;grid-row:1;font-size:20px;margin:0}
body.workspace-page.dashboard-page .getting-started-dismiss{grid-column:3;grid-row:1;width:36px;height:36px;min-width:36px;min-height:36px}
body.workspace-page.dashboard-page .getting-started-completion{grid-column:2;grid-row:1;margin:0;color:var(--brand-muted);font:400 12px/1.5 var(--brand-secondary-font)}
body.workspace-page.dashboard-page .getting-started-progress{grid-column:1/-1;grid-row:2;gap:0;margin:0;height:4px;border-radius:4px;overflow:hidden;background:var(--brand-line)}
body.workspace-page.dashboard-page .getting-started-progress>span{height:4px}
body.workspace-page.dashboard-page .getting-started-grid{grid-column:1/-1;grid-row:3;gap:12px}
body.workspace-page.dashboard-page .getting-started-task{position:relative;gap:12px;padding:16px;min-height:88px;border-color:var(--brand-line);border-radius:8px;transition:background-color .15s,border-color .15s}
body.workspace-page.dashboard-page .getting-started-task:hover{background:#fafbfb;border-color:var(--brand-lavender-line)}
html:not([data-focus-modality=pointer]) body.workspace-page.dashboard-page .getting-started-task:has(a:focus-visible){outline:2px solid var(--brand-focus-color);outline-offset:2px}
body.workspace-page.dashboard-page .getting-started-art{width:42px;height:42px;flex-basis:42px}
body.workspace-page.dashboard-page .getting-started-copy>a{margin:0 0 4px;padding:0;text-decoration:none;font-size:14px;font-weight:600;line-height:1.4}
body.workspace-page.dashboard-page .getting-started-copy>a::after{content:'';position:absolute;inset:0;border-radius:8px}
body.workspace-page.dashboard-page .getting-started-copy>a:focus-visible{outline:none}
body.workspace-page.dashboard-page .getting-started-copy>p{font-size:12px;line-height:1.5}
body.workspace-page.dashboard-page .getting-started-done{position:static;flex-shrink:0;background:transparent;padding:0;color:var(--brand-success);font:500 11px/1.5 var(--brand-secondary-font)}
body.workspace-page.dashboard-page .getting-started-chevron{flex-shrink:0;color:var(--brand-muted)}
body.workspace-page.dashboard-page .dashboard-panels .panel{border-radius:12px}
body.workspace-page.dashboard-page .panel-header{padding-bottom:14px;border-bottom:1px solid var(--brand-line);margin-bottom:12px}
body.workspace-page.dashboard-page :is(.dashboard-document,.dashboard-project){border-radius:7px;transition:background-color .15s}
body.workspace-page.dashboard-page :is(.dashboard-document,.dashboard-project):hover{background:var(--brand-canvas)}
@media(max-width:800px){
 body.workspace-page.dashboard-page .getting-started-panel{padding:18px;gap:12px;grid-template-columns:minmax(0,1fr) auto 36px}
 body.workspace-page.dashboard-page .main>.dashboard-header{flex-direction:column;align-items:stretch;gap:16px}
 body.workspace-page.dashboard-page .dashboard-header .header-left{flex:none;width:100%;min-width:0}
 body.workspace-page.dashboard-page .dashboard-header .header-right{position:static;display:flex;justify-content:space-between;flex-wrap:nowrap;width:100%;max-width:100%;gap:12px}
 body:is(.workspace-page,.writing-app) .mobile-navigation .mobile-current-page{color:var(--brand-muted)}
 body.workspace-page.dashboard-page .getting-started-heading h2{font-size:18px}
 body.workspace-page.dashboard-page .getting-started-task{padding:14px;gap:10px}
 body.workspace-page.dashboard-page .getting-started-art{width:36px;height:36px;flex-basis:36px}
 body.workspace-page.dashboard-page .getting-started-copy>a{font-size:13px}
 body.workspace-page.dashboard-page .getting-started-done{font-size:0;gap:0}
}
@media(prefers-reduced-motion:reduce){body.workspace-page.dashboard-page :is(.getting-started-task,.dashboard-document,.dashboard-project){transition:none}}

/* The workspace reference: charcoal navigation, a quiet canvas and flatter cards. */
body:is(.workspace-page,.writing-app,.auth-page){--brand-primary:#131517;--brand-primary-hover:#2c2e31;--brand-lavender:#f0f1f2;--brand-lavender-line:#dcdfe2;--brand-control-radius:6px}
/* Action buttons share the navigation's charcoal surface and restrained shape. */
body[class]:is(.workspace-page,.writing-app,.auth-page) :is(.btn-primary,.primary-btn,.action-btn.primary,.app-dialog-btn.primary,.template-btn,.plan-checkout-button,.btn-signin,.btn-signup,.auth-submit,.btn-secondary,.secondary-btn,.header-link,.app-dialog-btn.secondary,.social-login-btn,.quiet-button,.suggestion-action,.action-link,.ai-shortcuts button):not(.is-destructive,.is-warning,.btn-danger){background:var(--brand-primary)!important;color:#fff!important;border:1px solid var(--brand-primary)!important;border-radius:6px!important;box-shadow:none!important;font-weight:500;transition:background-color .15s,border-color .15s}
body[class]:is(.workspace-page,.writing-app,.auth-page) :is(.btn-primary,.primary-btn,.action-btn.primary,.app-dialog-btn.primary,.template-btn,.plan-checkout-button,.btn-signin,.btn-signup,.auth-submit,.btn-secondary,.secondary-btn,.header-link,.app-dialog-btn.secondary,.social-login-btn,.quiet-button,.suggestion-action,.action-link,.ai-shortcuts button):not(.is-destructive,.is-warning,.btn-danger):not(:disabled,[aria-disabled=true]):hover{background:var(--brand-primary-hover)!important;border-color:var(--brand-primary-hover)!important}
body[class]:is(.workspace-page,.writing-app,.auth-page) :is(.btn-primary,.primary-btn,.btn-secondary,.secondary-btn,.app-dialog-btn,.template-btn,.social-login-btn,.quiet-button,.suggestion-action,.action-link,.ai-shortcuts button) svg{color:inherit}
body[class]:is(.workspace-page,.writing-app,.auth-page) :is(.btn-primary,.primary-btn,.btn-secondary,.secondary-btn,.app-dialog-btn,.template-btn,.social-login-btn,.quiet-button):disabled[disabled]{background:#eceeef!important;border-color:#e1e3e5!important;color:#85898e!important;opacity:1}
body.workspace-page[class] .workspace-content :is(.filter-tab.active,.filter-chip.active),body.writing-app[class] .writing-inspector .editor-tool-tabs .inspector-box-toggle[aria-selected=true]{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff!important}
body.workspace-page :is(.filter-tab.active,.filter-chip.active) svg,body.writing-app .editor-tool-tabs .inspector-box-toggle[aria-selected=true] svg{color:inherit}
body:is(.workspace-page,.writing-app){--brand-canvas:#f7f7f9;--brand-card-radius:8px;--brand-hero-radius:8px;--brand-control-radius:6px;--workspace-sidebar-width:240px;--workspace-nav:#131517;--workspace-nav-line:#303235;--workspace-nav-muted:#bfc2c6;--workspace-nav-active:#2c2e31}
body:is(.workspace-page,.writing-app) .app-shell>.sidebar{width:var(--workspace-sidebar-width);padding:26px 14px 22px;background:var(--workspace-nav);border-right:1px solid var(--workspace-nav);color:var(--workspace-nav-muted)}
body:is(.workspace-page,.writing-app) .app-shell>.main{margin-left:var(--workspace-sidebar-width);max-width:calc(100% - var(--workspace-sidebar-width))}
body.writing-app.focus-mode .app-shell>.writing-main{margin-left:0;max-width:100%}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-logo{gap:10px;padding:0 8px 24px;margin-bottom:18px;border-color:var(--workspace-nav-line)}
body:is(.workspace-page,.writing-app) .sidebar .pulse-brand-name{font-size:21px;color:#fff;letter-spacing:-.6px}
body:is(.workspace-page,.writing-app) .sidebar .pulse-brand-mark{width:28px;height:28px;flex-basis:28px;border-radius:8px}
body:is(.workspace-page,.writing-app) .sidebar .pulse-brand-mark svg{width:18px;height:18px}
body:is(.workspace-page,.writing-app) .sidebar .nav-item{min-height:44px;padding:10px 12px;margin-bottom:4px;gap:12px;border-radius:6px;color:var(--workspace-nav-muted);font-size:13px;font-weight:400;line-height:1.5}
body:is(.workspace-page,.writing-app) .sidebar .nav-item svg{width:18px;height:18px;color:inherit;stroke-width:1.6}
body:is(.workspace-page,.writing-app) .sidebar .nav-item:hover{background:#222427;color:#fff}
body:is(.workspace-page,.writing-app) .sidebar .nav-item.active{background:var(--workspace-nav-active);color:#fff;font-weight:500}
body:is(.workspace-page,.writing-app) .sidebar :is(.navigation-label,.nav-section-title){padding:0 10px 10px;color:#93989f;font:500 10px/1.5 var(--brand-secondary-font);letter-spacing:.09em}
body:is(.workspace-page,.writing-app) .sidebar .nav-section{padding-top:20px;border-color:var(--workspace-nav-line)}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-search{height:40px;background:#202225;border-color:#34373a;margin-bottom:26px}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-search input{height:38px;color:#f6f6f7;font-size:12px}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-search input::placeholder{color:#b1b5bb}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-search button{width:38px;height:38px;min-width:38px;min-height:38px;flex-basis:38px;color:#bfc2c6}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-search button svg{width:16px;height:16px}
body:is(.workspace-page,.writing-app) .sidebar .sidebar-search:focus-within{border-color:#afb5ba;outline-color:#afb5ba}
body.workspace-page .main>:is(.page-header,.dashboard-header){min-height:90px;padding:22px 32px;border-bottom:0;background:var(--brand-canvas)}
body.workspace-page .main>:is(.page-header,.dashboard-header) .header-left h1{font-size:24px!important;line-height:1.25;letter-spacing:-.025em}
body.workspace-page .main>:is(.page-header,.dashboard-header) .header-left p{font-size:12px}
body.workspace-page .workspace-content{padding:10px 32px 32px}
body.workspace-page[class] .workspace-content :is(.panel,.stat-card,.project-card,.template-card,.settings-card,.documents-container,.keyword-section,.planner-board){border-radius:8px!important;box-shadow:none!important}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading){border-radius:8px;padding:20px 24px}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading) h2{font-size:24px!important}
body.workspace-page[class] .workspace-content :is(.documents-toolbar,.templates-controls,.controls-bar,.search-section,.members-panel,.settings-sidebar,.admin-tabs){border-radius:8px;box-shadow:none}
body.workspace-page[class] .workspace-content .panel{padding:20px}
body.workspace-page .workspace-content .panel-header{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--brand-line)}
body.workspace-page .workspace-content .panel-header :is(h2,h3){font-size:16px!important;font-weight:600;letter-spacing:0}
body.workspace-page .workspace-content .panel-header>a{display:inline-flex;align-items:center;gap:5px;padding:0;background:none;border:0;font-size:12px;color:var(--brand-muted)}
body.workspace-page .workspace-content .panel-header>a svg{width:14px;height:14px}
body.workspace-page .header-right :is(.btn-primary,.btn-secondary){min-height:36px;padding:7px 12px;font-size:12px}
body.workspace-page.dashboard-page .main>.dashboard-header{padding-top:28px;padding-bottom:24px}
body.workspace-page.dashboard-page .dashboard-header .dashboard-welcome-label{font-size:10px;color:var(--brand-muted);font-weight:500;text-transform:none;letter-spacing:0}
body.workspace-page.dashboard-page .workspace-content .dashboard-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,320px);align-items:start;gap:20px}
body.workspace-page.dashboard-page .dashboard-column{gap:20px;min-width:0}
body.workspace-page.dashboard-page .dashboard-primary-column>.stats-grid{gap:12px;margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
body.workspace-page.dashboard-page .workspace-content .stat-card{padding:16px;min-height:112px}
body.workspace-page.dashboard-page .workspace-content .stat-value{font-size:25px;margin:6px 0}
body.workspace-page.dashboard-page .workspace-content .stat-header>span:first-child{font-size:11px}
body.workspace-page.dashboard-page .workspace-content .stat-icon{width:26px;height:26px;border-radius:7px}
body.workspace-page.dashboard-page .workspace-content .stat-icon svg{width:16px;height:16px}
body.workspace-page.dashboard-page .getting-started-panel{display:block;padding:20px;border-radius:8px;margin:0;border-color:var(--brand-line)}
body.workspace-page.dashboard-page .getting-started-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}
body.workspace-page.dashboard-page .getting-started-heading h2{flex:1;font-size:17px;line-height:1.4;margin:0;letter-spacing:0}
body.workspace-page.dashboard-page .getting-started-summary{display:flex;align-items:center;gap:10px;flex:0 1 230px;min-width:0}
body.workspace-page.dashboard-page .getting-started-completion{margin:0;font-size:10px;white-space:nowrap}
body.workspace-page.dashboard-page .getting-started-progress{flex:1;height:4px;min-width:48px;margin:0;gap:0}
body.workspace-page.dashboard-page .getting-started-dismiss,body.workspace-page.dashboard-page .getting-started-dismiss[data-ui-icon]{width:26px;height:26px;min-width:26px;min-height:26px;flex:0 0 26px;background:transparent}
body.workspace-page.dashboard-page .getting-started-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body.workspace-page.dashboard-page .getting-started-task{min-height:78px;padding:16px 18px;gap:12px;border-radius:6px}
body.workspace-page.dashboard-page .getting-started-copy>a{font-size:14px;font-weight:500;margin-bottom:3px}
body.workspace-page.dashboard-page .getting-started-copy>p{font-size:12px;line-height:1.5}
body.workspace-page.dashboard-page .getting-started-marker{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;border:1px solid #b8bdc2;border-radius:50%;background:#fff}
body.workspace-page.dashboard-page .getting-started-marker.is-complete{border-color:var(--brand-success);background:var(--brand-success)}
body.workspace-page.dashboard-page .getting-started-marker>.getting-started-done{display:grid;place-items:center;position:static;padding:0;width:16px;height:16px;background:none;color:#fff}
body.workspace-page.dashboard-page .getting-started-marker>.getting-started-done svg{width:12px;height:12px}
body.workspace-page.dashboard-page .getting-started-chevron{width:14px;height:14px;color:var(--brand-ink)}
body.workspace-page.dashboard-page .dashboard-support-column .panel{padding:0;overflow:hidden}
body.workspace-page.dashboard-page .dashboard-support-column .panel-header{padding:16px 18px;margin:0 0 16px}
body.workspace-page.dashboard-page .dashboard-support-column .panel-header :is(h2,h3){font-size:14px!important}
body.workspace-page.dashboard-page .dashboard-support-column .panel-header h2 svg{display:none}
body.workspace-page.dashboard-page .dashboard-support-column .panel>:not(.panel-header){margin-left:18px;margin-right:18px}
body.workspace-page.dashboard-page .dashboard-support-column .panel>:last-child{margin-bottom:18px}
body.workspace-page.dashboard-page .dashboard-support-column .panel>.dashboard-panel-body{margin:0;padding:0 18px 18px;min-width:0}
body.workspace-page.dashboard-page .dashboard-panel-body .dashboard-wide-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;max-width:100%;min-height:44px;margin:12px 0 0;padding:10px 12px;background:var(--brand-primary)!important;border:1px solid var(--brand-primary)!important;border-radius:6px;color:#fff!important}
body.workspace-page.dashboard-page .dashboard-panel-body .dashboard-wide-button:hover{background:var(--brand-primary-hover)!important;border-color:var(--brand-primary-hover)!important}
body.workspace-page.dashboard-page .dashboard-panel-body>.dashboard-empty-copy{margin:0 0 14px}
body.workspace-page.dashboard-page .dashboard-support-column .dashboard-empty-copy{font-size:13px;line-height:1.6}
body.workspace-page.dashboard-page .dashboard-research-summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
body.workspace-page.dashboard-page .dashboard-research-summary>.dashboard-research-seed{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
body.workspace-page.dashboard-page .dashboard-research-summary>.dashboard-empty-copy{flex-shrink:0;white-space:nowrap;margin:0;font-size:11px}
body.workspace-page.dashboard-page .dashboard-workspace-identity{display:flex;align-items:center;gap:12px}
body.workspace-page.dashboard-page .dashboard-workspace-mark{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:8px;color:#fff;background:var(--brand-coral)}
body.workspace-page.dashboard-page .dashboard-workspace-mark svg{width:20px;height:20px}
body.workspace-page.dashboard-page .dashboard-workspace-identity strong{display:block;font-size:14px;font-weight:600}
body.workspace-page.dashboard-page .dashboard-workspace-identity span:not(.dashboard-workspace-mark){display:block;margin-top:3px;font:400 11px/1.5 var(--brand-secondary-font);color:var(--brand-muted)}
body.workspace-page.dashboard-page .dashboard-workspace-links{display:flex;gap:8px;flex-wrap:wrap;padding-top:14px}
body.workspace-page.dashboard-page .dashboard-workspace-links a{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--brand-line);border-radius:20px;font-size:12px;color:var(--brand-ink);text-decoration:none}
body.workspace-page.dashboard-page .dashboard-workspace-links a:hover{background:var(--brand-canvas)}
body.workspace-page.dashboard-page .dashboard-workspace-links svg{width:14px;height:14px}
body.workspace-page.dashboard-page .dashboard-keywords{gap:6px}
body.workspace-page.dashboard-page .dashboard-keywords a{border-radius:20px;background:#fff;border-color:var(--brand-line);font-size:11px;line-height:1.5}
body.workspace-page.dashboard-page .dashboard-quick-actions a{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px;border-bottom:1px solid var(--brand-line);background:none;font-size:13px}
body.workspace-page.dashboard-page .dashboard-quick-actions a:last-child{border-bottom:0}
@media(min-width:1101px){body.workspace-page.settings-page .settings-container{grid-template-columns:208px minmax(0,1fr)}}
@media(min-width:801px) and (max-width:1200px){
 body.workspace-page.dashboard-page .workspace-content .dashboard-panels{grid-template-columns:minmax(0,1fr) 260px;gap:16px}
 body.workspace-page.dashboard-page .getting-started-heading{flex-wrap:wrap}
 body.workspace-page.dashboard-page .getting-started-summary{flex-basis:160px}
 body.workspace-page.dashboard-page .dashboard-primary-column>.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* A quieter echo of the website's tile details in workspace introductions. */
body.workspace-page .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading){position:relative;isolation:isolate;overflow:hidden}
body.workspace-page .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading)::after{content:'';position:absolute;right:23px;top:19px;z-index:-1;width:26px;height:26px;border:1px solid #eef0f1;border-radius:5px;background:#f7f7f9;box-shadow:-33px 0 0 #f7f7f9,0 33px 0 var(--brand-lavender),-33px 33px 0 #f0f1f2,-66px 33px 0 #faf7f7;opacity:.7;pointer-events:none}
body.workspace-page.dashboard-page a.stat-card{position:relative;isolation:isolate;overflow:hidden}
body.workspace-page.dashboard-page a.stat-card::after{content:'';position:absolute;left:24px;right:24px;top:0;height:2px;background:var(--brand-primary);transform:scaleX(0);transform-origin:left;transition:transform .18s ease;pointer-events:none}
body.workspace-page.dashboard-page :is(.stat-icon,.dashboard-workspace-mark){transition:background-color .18s ease,color .18s ease,transform .18s ease}
body.workspace-page.dashboard-page .getting-started-task{transition:background-color .18s ease,box-shadow .18s ease}
body.workspace-page .sidebar .nav-item>svg{transition:transform .16s ease,color .16s ease}
@media(hover:hover){
 body.workspace-page.dashboard-page a.stat-card:hover{transform:none}
 body.workspace-page.dashboard-page a.stat-card:hover::after{transform:scaleX(1)}
 body.workspace-page.dashboard-page a.stat-card:hover .stat-icon{background:var(--brand-lavender);color:var(--brand-primary-hover);transform:rotate(-4deg)}
 body.workspace-page.dashboard-page .getting-started-task:hover{background:#fcfbfb;box-shadow:inset 0 0 0 1px #eadfdd}
 body.workspace-page.dashboard-page .dashboard-workspace-panel:hover .dashboard-workspace-mark{transform:rotate(-4deg)}
 body.workspace-page .sidebar .nav-item:hover>svg{transform:translateX(2px)}
}
body.workspace-page.dashboard-page a.stat-card:focus-visible::after{transform:scaleX(1)}
@media(max-width:600px){body.workspace-page .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading)::after{right:17px;width:20px;height:20px;opacity:.45;box-shadow:-27px 0 0 #f7f7f9,0 27px 0 var(--brand-lavender),-27px 27px 0 #f0f1f2}}
@media(prefers-reduced-motion:reduce){body.workspace-page.dashboard-page a.stat-card::after{transition:none}body.workspace-page.dashboard-page :is(.stat-icon,.dashboard-workspace-mark),body.workspace-page .sidebar .nav-item>svg{transform:none!important;transition:none!important}}

/* Small editorial accents connect the workspace to the public content studio. */
body.workspace-page .sidebar .nav-item.active{box-shadow:inset 3px 0 0 var(--brand-primary)}
body.workspace-page.dashboard-page .workspace-content .dashboard-workspace-panel{background:#f8fbff!important}
body.workspace-page.dashboard-page .stats-grid>a.stat-card:first-child .stat-icon{background:var(--brand-lavender);color:var(--brand-primary-hover)}

/* Clear, quiet feedback for clickable surfaces; hover never changes layout. */
body:is(.workspace-page,.writing-app) :is(.sidebar .nav-item,.dashboard-keywords a,.dashboard-workspace-links a,.dashboard-quick-actions a,.panel-header>a,.dashboard-document,.dashboard-project-list a,a.stat-card,.filter-tab,.filter-chip){transition:background-color .16s ease,border-color .16s ease,color .16s ease}
body.workspace-page .workspace-content :is(.dashboard-quick-actions a,.panel-header>a)>svg:last-child{transition:transform .16s ease,color .16s ease}
@media(hover:hover){
 body.workspace-page.dashboard-page .dashboard-keywords a:hover,
 body.workspace-page.dashboard-page .dashboard-workspace-links a:hover{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff;text-decoration:none}
 body.workspace-page.dashboard-page .dashboard-quick-actions a:hover{background:#f0f1f2;color:var(--brand-primary);border-radius:6px;text-decoration:none}
 body.workspace-page .workspace-content .panel-header>a:hover{color:var(--brand-primary);text-decoration:underline;text-underline-offset:3px}
 body.workspace-page .workspace-content :is(.dashboard-quick-actions a,.panel-header>a):hover>svg:last-child{transform:translateX(3px);color:var(--brand-primary)}
 body.workspace-page.dashboard-page :is(.dashboard-document,.dashboard-project-list a):hover{background:#f0f1f2;color:var(--brand-primary)}
 body.workspace-page .workspace-content a.stat-card:hover{background:#fafafa!important;border-color:#c6c9cd!important}
 body.workspace-page :is(.filter-tab,.filter-chip):not(.active):hover{background:#eceeef;color:var(--brand-primary)}
 body:is(.workspace-page,.writing-app) .sidebar .nav-item:hover>svg{color:#fff}
}
body.workspace-page.dashboard-page :is(.dashboard-keywords a,.dashboard-workspace-links a):focus-visible{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff}
body.workspace-page.dashboard-page :is(.dashboard-quick-actions a,.dashboard-document,.dashboard-project-list a):focus-visible{background:#f0f1f2;color:var(--brand-primary)}
body.workspace-page .workspace-content .panel-header>a:focus-visible{color:var(--brand-primary);text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:reduce){
 body:is(.workspace-page,.writing-app,.auth-page) *{transition:none!important;scroll-behavior:auto}
 body.workspace-page .workspace-content :is(.dashboard-quick-actions a,.panel-header>a)>svg:last-child{transform:none!important}
}
@media(max-width:1000px){body.workspace-page.dashboard-page .workspace-content .dashboard-panels{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){
 body:is(.workspace-page,.writing-app) .app-shell>.main{margin-left:0;max-width:100%}
 body:is(.workspace-page,.writing-app) .mobile-navigation,body:is(.workspace-page,.writing-app) .mobile-navigation nav{background:var(--workspace-nav);color:var(--workspace-nav-muted);border-color:var(--workspace-nav-line)}
 body:is(.workspace-page,.writing-app) .mobile-navigation summary,body:is(.workspace-page,.writing-app) .mobile-navigation .mobile-current-page,body:is(.workspace-page,.writing-app) .mobile-navigation summary .mobile-menu-label{color:var(--workspace-nav-muted)}
 body:is(.workspace-page,.writing-app) .mobile-navigation nav a{color:var(--workspace-nav-muted);font-size:12px;border-radius:5px}
 body:is(.workspace-page,.writing-app) .mobile-navigation nav a[aria-current]{background:var(--workspace-nav-active);color:#fff}
 body:is(.workspace-page,.writing-app) .mobile-navigation .mobile-brand{color:#fff}
 body:is(.workspace-page,.writing-app) .mobile-navigation .sidebar-search{background:#202225;border-color:#34373a}
 body:is(.workspace-page,.writing-app) .mobile-navigation .sidebar-search input{color:#fff}
 body.workspace-page .main>:is(.page-header,.dashboard-header){padding:20px 16px;min-height:84px}
 body.workspace-page .workspace-content{padding:0 16px 24px}
 body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading){padding:20px}
 body.workspace-page.dashboard-page .getting-started-panel{padding:16px}
 body.workspace-page.dashboard-page .getting-started-heading{gap:8px;flex-wrap:wrap}
 body.workspace-page.dashboard-page .getting-started-heading h2{font-size:16px}
 body.workspace-page.dashboard-page .getting-started-summary{flex:0 1 135px;gap:8px}
 body.workspace-page.dashboard-page .getting-started-completion{font-size:9px}
 body.workspace-page.dashboard-page .getting-started-task{padding:14px 12px;gap:10px}
 body.workspace-page.dashboard-page .getting-started-copy>a{font-size:13px}
 body.workspace-page.dashboard-page .dashboard-primary-column>.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Reference styling: retain the existing workspace layout and responsive rules. */
body:is(.workspace-page,.writing-app,.auth-page){
 --brand-primary:#805539;--brand-primary-hover:#65412b;--brand-purple:#805539;
 --brand-ink:#20252d;--brand-muted:#68717d;--brand-paper:#fff;--brand-canvas:#fff;--brand-line:#e8ebef;
 --brand-coral:#805539;--brand-coral-soft:#f5eee8;--brand-coral-ink:#65412b;
 --brand-lavender:#f5eee8;--brand-lavender-line:#e7d5c6;
 --workspace-nav:#f9f9f9;--workspace-nav-line:#e5e5e5;--workspace-nav-muted:#424242;--workspace-nav-active:#e2e2e2;
 --ui-muted:#68717d;--brand-focus-color:#805539;
}
body:is(.workspace-page,.writing-app) .app-shell>.sidebar{border-right-color:var(--brand-line)}
body:is(.workspace-page,.writing-app) .sidebar .pulse-brand-name{color:var(--brand-ink);font-weight:700}
body:is(.workspace-page,.writing-app) .sidebar .nav-item{font-size:14px;font-weight:400}
body:is(.workspace-page,.writing-app) .sidebar .nav-item:hover{background:#f5f7fa;color:var(--brand-primary)}
body:is(.workspace-page,.writing-app) .sidebar .nav-item.active{background:var(--brand-lavender);color:var(--brand-primary);box-shadow:none;font-weight:600}
body:is(.workspace-page,.writing-app) .sidebar .nav-item:hover>svg{color:var(--brand-primary);transform:none}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search{background:#f8fafc;border-color:#e8ebef}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search input{color:#20252d}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search input::placeholder{color:#8a939e}
body:is(.workspace-page,.writing-app) :is(.sidebar,.mobile-navigation) .sidebar-search button{color:#68717d}
body.workspace-page .main>:is(.page-header,.dashboard-header){background:#fff;border-bottom:1px solid #e8ebef}
body.workspace-page .main>:is(.page-header,.dashboard-header) .header-left h1{font-size:22px!important;font-weight:600;letter-spacing:-.02em;line-height:1.35}
body.workspace-page .main>:is(.page-header,.dashboard-header) .header-left p{font-size:13px;line-height:1.6;color:#68717d}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading){background:#fff;border-color:#e8ebef;box-shadow:none}
body.workspace-page[class] .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading) h2{font-size:23px!important;font-weight:600;letter-spacing:-.02em}
body.workspace-page .workspace-content :is(.documents-library-heading,.planner-intro,.templates-intro,.keyword-intro,.management-intro,.settings-section-heading)::after{content:none}
body.workspace-page[class] .workspace-content :is(.panel,.stat-card,.project-card,.template-card,.settings-card,.documents-container,.keyword-section,.planner-board){border-color:#e8ebef!important}
body.workspace-page .workspace-content .panel-header :is(h2,h3){font-weight:600}
body.workspace-page.dashboard-page .workspace-content .dashboard-workspace-panel{background:#fff!important}
body.workspace-page.dashboard-page .workspace-content .stat-icon,
body.workspace-page.dashboard-page .stats-grid>a.stat-card:first-child .stat-icon{background:var(--brand-lavender);color:var(--brand-primary)}
body.workspace-page.dashboard-page a.stat-card::after{content:none}
body.workspace-page.dashboard-page a.stat-card:hover .stat-icon{background:var(--brand-lavender-line);color:var(--brand-primary-hover);transform:none}
body.workspace-page.dashboard-page .dashboard-workspace-panel:hover .dashboard-workspace-mark{transform:none}
body.workspace-page.dashboard-page .getting-started-task:hover{background:#f8fafc;box-shadow:none;border-color:var(--brand-lavender-line)}
body.workspace-page.dashboard-page .getting-started-marker.is-complete{background:var(--brand-primary);border-color:var(--brand-primary)}
body.workspace-page.dashboard-page .getting-started-heading h2{font-weight:600}
body[class]:is(.workspace-page,.writing-app,.auth-page) :is(.btn-secondary,.secondary-btn,.header-link,.app-dialog-btn.secondary,.social-login-btn,.quiet-button):not(.is-destructive,.is-warning,.btn-danger){background:#fff!important;color:#374151!important;border-color:#e2e7ee!important;font-weight:500}
body[class]:is(.workspace-page,.writing-app,.auth-page) :is(.btn-secondary,.secondary-btn,.header-link,.app-dialog-btn.secondary,.social-login-btn,.quiet-button):not(.is-destructive,.is-warning,.btn-danger):not(:disabled,[aria-disabled=true]):hover{background:#f8fafc!important;border-color:#cbd5e1!important;color:var(--brand-primary-hover)!important}
body.workspace-page .workspace-content a.stat-card:hover{background:#fcfdff!important;border-color:var(--brand-lavender-line)!important}
body.workspace-page.dashboard-page :is(.dashboard-quick-actions a,.dashboard-document,.dashboard-project-list a):hover{background:#f5f8fd;color:var(--brand-primary-hover)}
body.workspace-page .header-right .user-avatar{background:var(--brand-lavender);color:var(--brand-primary)}
body:is(.workspace-page,.writing-app) .mobile-navigation :is(.mobile-brand,.mobile-current-page){color:#20252d}
body:is(.workspace-page,.writing-app) .mobile-navigation nav a[aria-current]{color:var(--brand-primary);background:var(--brand-lavender)}
body:is(.workspace-page,.writing-app,.auth-page) :is(input,select,textarea){accent-color:var(--brand-primary)}

body.workspace-page.dashboard-page .getting-started-progress>span.is-complete{background:var(--brand-primary)}

/* Decorative accents share the app's blue palette. */
body:is(.workspace-page,.writing-app,.auth-page){--brand-secondary:var(--brand-primary);--brand-secondary-ink:var(--brand-primary);--brand-secondary-soft:var(--brand-lavender);--brand-secondary-line:var(--brand-lavender-line)}
body.workspace-page.dashboard-page .workspace-content .stat-card:nth-child(even) .stat-icon{background:var(--brand-secondary-soft);color:var(--brand-secondary-ink)}
body.workspace-page.dashboard-page .workspace-content .stat-card:nth-child(even):hover .stat-icon{background:var(--brand-lavender-line);color:var(--brand-secondary-ink)}
body.workspace-page.dashboard-page .dashboard-workspace-mark{background:var(--brand-secondary-soft);color:var(--brand-secondary-ink)}
body.auth-page :is(.auth-workflow-brand,.auth-workflow-list li:nth-child(2) .auth-workflow-icon){background:var(--brand-secondary-soft);color:var(--brand-secondary-ink)}
body.workspace-page .workspace-content :is(.template-category,.template-category-badge){background:var(--brand-secondary-soft);color:var(--brand-secondary-ink);border-color:var(--brand-secondary-line)}
body.workspace-page .workspace-content :is(.project-icon,.dashboard-project-icon,.template-icon,.planner-intro-icon){background:var(--brand-secondary-soft);color:var(--brand-secondary-ink)}
body.workspace-page[class] .workspace-content :is(.documents-total,.templates-count,.management-count,.keyword-intro-count){background:var(--brand-secondary-soft);color:var(--brand-secondary-ink);border-color:var(--brand-secondary-line)}
body.workspace-page .workspace-content :is(.documents-eyebrow,.planner-eyebrow,.templates-eyebrow,.keyword-eyebrow,.management-eyebrow)::before{content:'';display:inline-block;width:14px;height:2px;margin-right:8px;vertical-align:middle;background:var(--brand-secondary)}
body.writing-app .assistant-mark{background:var(--brand-secondary-soft);color:var(--brand-secondary-ink)}

/* Sources: one selected page, with compact controls and readable heading rows. */
body.writing-app .writing-inspector #panel-research{padding:16px;gap:0;background:#fff}
body.writing-app #panel-research .sources-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
body.writing-app #panel-research .sources-panel-header h3{margin:0;font-size:17px;font-weight:600;color:var(--brand-ink)}
body.writing-app #panel-research #openResearchOptions{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-height:38px;margin:0;padding:8px 10px;background:#fff;color:var(--brand-muted);border:1px solid #dbe4f0;border-radius:7px;font-size:12px}
body.writing-app #panel-research #openResearchOptions svg{width:14px;height:14px}
body.writing-app #panel-research #openResearchOptions:hover{background:#f8fafc;color:var(--brand-primary)}
body.writing-app #panel-research .research-setup{margin:0 0 16px;border:0;border-bottom:1px solid var(--brand-line);border-radius:0;background:#fff}
body.writing-app #panel-research .research-setup>summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 0 12px;list-style:none;background:#fff;font-size:12px;color:var(--brand-muted)}
body.writing-app #panel-research .research-setup>summary>svg:first-child{display:none}
body.writing-app #panel-research .research-setup>summary>span{flex:1}
body.writing-app #panel-research #researchSetupStatus{flex:0 1 auto;margin:0;padding:4px 7px;border-radius:5px;background:var(--brand-lavender);color:var(--brand-primary);font-size:11px;white-space:normal}
body.writing-app #panel-research #researchSetupStatus[data-state=error]{background:#fff1f2;color:#be123c}
body.writing-app #panel-research .research-switch{display:flex;gap:4px;margin:0 0 12px;padding:4px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px}
body.writing-app #panel-research .research-switch button{flex:1;min-width:0;min-height:34px;margin:0;padding:7px 5px;border:0;border-radius:5px;background:transparent;color:#475569;font-size:12px;font-weight:400}
body.writing-app #panel-research .research-switch button[aria-pressed=true]{background:#fff;color:var(--brand-primary);box-shadow:0 1px 3px #0f172a0a}
body.writing-app #panel-research #researchFilter{box-sizing:border-box;width:100%;min-height:42px;margin:0 0 16px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:8px;background:#fff;font-size:13px}
body.writing-app #panel-research #explainerFilterStatus{margin:0 0 10px;font-size:12px}
body.writing-app #panel-research .heading-source-picker{margin:0 0 16px}
body.writing-app #panel-research .heading-source-picker label{display:block;margin:0 0 7px;font-size:13px;color:#475569}
body.writing-app #panel-research #headingSourceSelect{box-sizing:border-box;width:100%;min-height:42px;margin:0;padding:9px 30px 9px 12px;border:1px solid #dbe4f0;border-radius:8px;background-color:#fff;color:var(--brand-ink);font-size:13px;text-overflow:ellipsis}
body.writing-app #panel-research #competitorHeadings .source-status-group{margin:0;padding:0}
body.writing-app #panel-research #competitorHeadings .source-status-group>h4{display:none}
body.writing-app #panel-research #competitorHeadings .source-page-card{margin:0;border:1px solid #dbe4f0;border-radius:9px;background:#fff;overflow:hidden}
body.writing-app #panel-research .source-page-heading{padding:13px;background:var(--brand-lavender);border-bottom:1px solid var(--brand-lavender-line);color:var(--brand-primary);font-size:13px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
body.writing-app #panel-research .source-page-heading small{display:block;margin-top:5px;color:#64748b;font-size:11px;line-height:1.5}
body.writing-app #panel-research #competitorHeadings .competitor-source-actions{justify-content:space-between;gap:12px;padding:10px 13px;border-bottom:1px solid var(--brand-line)}
body.writing-app #panel-research #competitorHeadings .competitor-source-actions :is(.competitor-source,.retry-competitor){flex:0 1 auto;min-height:28px;padding:3px 0;border:0;border-radius:0;background:transparent;color:#64748b;font-size:11px!important;box-shadow:none}
body.writing-app #panel-research #competitorHeadings .competitor-source-actions :is(a,button):hover:not(:disabled){background:transparent;color:var(--brand-primary);text-decoration:underline}
body.writing-app #panel-research #competitorHeadings .competitor-heading{display:grid;grid-template-columns:26px minmax(0,1fr) 30px;grid-template-areas:'level text action';gap:8px;align-items:start;margin:0;padding:13px 10px;border:0;border-bottom:1px solid var(--brand-line);border-radius:0;background:#fff;font-size:12px!important;text-align:left}
body.writing-app #panel-research #competitorHeadings .competitor-heading:last-child{border-bottom:0}
body.writing-app #panel-research #competitorHeadings .source-heading-level{background:#f1f5f9;color:#64748b;font-size:10px;font-weight:400}
body.writing-app #panel-research #competitorHeadings .source-heading-text{font-size:12px;line-height:1.65;color:var(--brand-ink)}
body.writing-app #panel-research #competitorHeadings .source-heading-add{background:#fff;color:var(--brand-primary);border:1px solid #dbe4f0;border-radius:7px}
body.writing-app #panel-research #competitorHeadings .competitor-heading:hover:not(:disabled){background:#f8fbff}
body.writing-app #panel-research #competitorHeadings .competitor-heading.used .source-heading-add{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}
body.writing-app .writing-inspector #panel-research #competitorHeadings .competitor-source-actions button.retry-competitor{background:transparent!important;color:#64748b!important;border:0!important;box-shadow:none!important}
body.writing-app .writing-inspector #panel-research #competitorHeadings .competitor-source-actions button.retry-competitor:hover:not(:disabled){color:var(--brand-primary)!important}
body.writing-app .writing-inspector #panel-research #competitorHeadings .competitor-heading[data-level] .source-heading-level{background:#f1f5f9;color:#64748b;font-weight:400}
body.writing-app #panel-research .source-keywords-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
body.writing-app #panel-research .source-keywords-toolbar>span{font-size:14px;font-weight:600}
body.writing-app #panel-research #fetchSourceKeywords{flex-shrink:0;min-height:34px;padding:6px 10px;font-size:11px}
body.writing-app #panel-research #researchEntityCloud{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
body.writing-app #panel-research #researchEntityCloud .research-term{display:inline-flex;max-width:100%;padding:7px 10px;border:1px solid var(--brand-line);border-radius:7px;background:#fff;color:var(--brand-ink);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
body.writing-app #panel-research #researchEntityCloud .research-term.used{background:var(--brand-lavender);border-color:var(--brand-lavender-line);color:var(--brand-primary)}
body.writing-app #panel-research #researchEntityCloud .research-term{gap:5px;padding-right:5px}
body.writing-app #panel-research #researchEntityCloud .research-term-label{min-width:0}
body.writing-app #panel-research #researchEntityCloud .source-keyword-remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;border:0!important;border-radius:4px;background:transparent!important;color:var(--brand-muted,#64748b)!important;box-shadow:none!important;font-size:14px!important;line-height:1!important;cursor:pointer;transition:background .15s,color .15s}
body.writing-app #panel-research #researchEntityCloud .source-keyword-remove:hover{background:#e2e8f0!important;color:var(--brand-ink)!important}
body.writing-app #panel-research #researchEntityCloud .source-keyword-remove:focus-visible{outline:2px solid var(--brand-primary);outline-offset:1px}
body.writing-app #panel-research .source-keyword-progress-label{display:block;margin-top:5px;font-size:12px;line-height:1.6}
body.writing-app #panel-research .source-keyword-progress{display:block;width:100%;height:5px;margin-top:8px;appearance:none;border:0;border-radius:4px;overflow:hidden;background:#e8edf4;accent-color:var(--brand-primary)}
body.writing-app #panel-research .source-keyword-progress::-webkit-progress-bar{background:#e8edf4;border-radius:4px}
body.writing-app #panel-research .source-keyword-progress::-webkit-progress-value{background:var(--brand-primary);border-radius:4px}
body.writing-app #panel-research .source-keyword-progress::-moz-progress-bar{background:var(--brand-primary);border-radius:4px}

/* Administration uses the same compact surfaces and typography as the workspace. */
body.workspace-page.admin-page .workspace-content{padding:24px 32px 32px}
body.workspace-page.admin-page .admin-layout{grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
body.workspace-page.admin-page .admin-tabs{position:sticky;top:0;max-height:calc(100dvh - 150px);overflow-y:auto;margin:0!important;padding:10px;gap:16px;background:#fff;border:1px solid var(--brand-line);border-radius:8px}
body.workspace-page.admin-page .admin-nav-group{gap:2px}
body.workspace-page.admin-page .admin-nav-label{padding:4px 10px;font:500 10px/1.5 var(--brand-secondary-font);letter-spacing:.07em;color:var(--brand-muted)}
body.workspace-page.admin-page .admin-tabs a{min-height:38px;padding:8px 10px;border-radius:6px;font-size:13px;color:var(--brand-muted)}
body.workspace-page.admin-page .admin-tabs a:hover{background:#f8fafc;color:var(--brand-primary)}
body.workspace-page.admin-page .admin-tabs a[aria-current]{background:var(--brand-lavender);color:var(--brand-primary);border-color:transparent}
body.workspace-page.admin-page .admin-content{gap:20px}
body.workspace-page.admin-page .admin-content>*{margin-block:0!important}
body.workspace-page.admin-page .workspace-content .admin-content-heading{padding:20px 24px;min-height:0;background:#fff;border:1px solid var(--brand-line);border-radius:8px;box-shadow:none}
body.workspace-page.admin-page .workspace-content .admin-content-heading h2{margin:0 0 6px;font:600 23px/1.3 var(--brand-body-font)!important;letter-spacing:-.02em}
body.workspace-page.admin-page .admin-section-description{margin:0;font-size:13px;line-height:1.6;color:var(--brand-muted);max-width:none}
body.workspace-page.admin-page .admin-content-heading>div{flex:1;min-width:0}
body.workspace-page.admin-page .admin-content .muted-text{max-width:none}
body.workspace-page.admin-page .admin-section-indicator{display:none}
body.workspace-page.admin-page .admin-content .panel{padding:20px;border-radius:8px;border-color:var(--brand-line);box-shadow:none}
body.workspace-page.admin-page .admin-content :is(h2,h3){font-family:var(--brand-body-font)!important;letter-spacing:0}
body.workspace-page.admin-page .admin-content .admin-form{box-sizing:border-box;width:100%;max-width:none}
body.workspace-page.admin-page .admin-content .admin-form>label:not(.admin-check){font-size:13px;margin-top:18px}
body.workspace-page.admin-page .admin-content .admin-form :is(input,select,textarea){font-family:var(--brand-body-font)}
body.workspace-page.admin-page .admin-content .admin-credential{padding:16px 0;border-bottom:1px solid var(--brand-line)}
body.workspace-page.admin-page .admin-content .admin-credential>label:first-child{margin-top:0}
body.workspace-page.admin-page .admin-credential-status{display:inline-block;margin:0 0 8px;padding:3px 7px;background:var(--brand-secondary-soft);color:var(--brand-secondary-ink);border-radius:4px;font-size:11px}
body.workspace-page.admin-page .admin-content .admin-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:20px;padding-top:16px;border-color:var(--brand-line)}
body.workspace-page.admin-page .admin-metrics strong{font:600 28px/1.25 var(--brand-body-font);color:var(--brand-ink)}
body.workspace-page.admin-page .admin-shortcut-icon{background:var(--brand-secondary-soft);color:var(--brand-secondary-ink)}
body.workspace-page.admin-page .admin-search-services{display:grid;gap:0;margin-top:8px}
body.workspace-page.admin-page .admin-service-group{min-width:0;padding:24px 0;border:0;border-radius:0}
body.workspace-page.admin-page .admin-service-group+.admin-service-group{border-top:1px solid var(--brand-line)}
body.workspace-page.admin-page .admin-service-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}
body.workspace-page.admin-page .admin-service-number{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:7px;background:var(--brand-lavender);color:var(--brand-primary);font-size:13px;font-weight:600}
body.workspace-page.admin-page .admin-service-heading h3{margin:0 0 4px;font-size:16px;line-height:1.5}
body.workspace-page.admin-page .admin-service-heading p{margin:0}
body.workspace-page.admin-page .admin-service-label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:8px}
body.workspace-page.admin-page .admin-content .admin-service-label label{margin:0}
body.workspace-page.admin-page .admin-key-status{display:inline-flex;padding:3px 8px;border:1px solid var(--brand-line);border-radius:5px;background:#f8fafc;color:var(--brand-muted);font-size:11px;white-space:nowrap}
body.workspace-page.admin-page .admin-service-help{margin:8px 0 0;font-size:12px}
body.workspace-page.admin-page .admin-service-field .admin-key-remove{margin:14px 0 0;font-size:12px;color:var(--brand-muted)}
body.workspace-page.admin-page .admin-service-region{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body.workspace-page.admin-page .admin-service-region>div>label{margin:0 0 8px}
body.workspace-page.admin-page .admin-service-note{padding:12px 16px;border:0;border-left:3px solid var(--brand-line);border-radius:0;background:#f8fafc}
body.workspace-page.admin-page .admin-service-note strong{display:block;margin-bottom:4px;font-size:13px}
body.workspace-page.admin-page .admin-service-note p{margin:0;font-size:12px}
body.workspace-page.admin-page .admin-settings-section{margin-top:0}
body.workspace-page.admin-page .admin-content .admin-settings-section .admin-service-heading p{margin:0}
body.workspace-page.admin-page .admin-content .admin-settings-section>.admin-service-heading+label{margin-top:0}
body.workspace-page.admin-page fieldset.admin-settings-section{min-inline-size:0;padding-top:16px}
body.workspace-page.admin-page fieldset.admin-settings-section>legend{width:auto;max-width:100%;padding:0;border:0;font-size:16px;font-weight:600;color:var(--brand-ink)}
body.workspace-page.admin-page .admin-credential-status{display:inline-flex;width:fit-content;max-width:100%;padding:3px 8px;margin:0 0 8px;border:1px solid var(--brand-line);border-radius:5px;background:#f8fafc;color:var(--brand-muted);font-size:11px}
body.workspace-page.admin-page .admin-settings-section .admin-service-label label{margin:0}
body.workspace-page.admin-page .admin-content .admin-secret-note{margin:0;font-size:12px}
body.workspace-page.admin-page .admin-content details.admin-advanced{margin:14px 0 0;padding:0;border:0;border-radius:0;background:transparent}
body.workspace-page.admin-page .admin-content details.admin-advanced>summary{font-size:12px;font-weight:500;color:var(--brand-muted)}
body.workspace-page.admin-page .admin-content details.admin-advanced .admin-check{margin-bottom:0}
@media(max-width:1100px){
 body.workspace-page.admin-page .admin-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 body.workspace-page.admin-page .admin-tabs{display:none}
 body.workspace-page.admin-page .admin-mobile-navigation{display:block;margin:0;padding:14px 16px;background:#fff;border:1px solid var(--brand-line);border-radius:8px}
 body.workspace-page.admin-page .admin-mobile-navigation label{display:block;margin-bottom:8px;font-size:12px;color:var(--brand-muted)}
 body.workspace-page.admin-page .admin-mobile-navigation>div{display:flex;gap:8px}
 body.workspace-page.admin-page .admin-mobile-navigation select{flex:1;min-width:0}
}
@media(max-width:600px){
 body.workspace-page.admin-page .admin-service-group{padding:20px 0}
 body.workspace-page.admin-page .admin-service-region{grid-template-columns:minmax(0,1fr)}
 body.workspace-page.admin-page .workspace-content{padding:16px 16px 24px}
 body.workspace-page.admin-page .workspace-content .admin-content-heading{padding:18px}
 body.workspace-page.admin-page .admin-content .panel{padding:18px 16px}
 body.workspace-page.admin-page .admin-content .admin-actions>*{max-width:100%}
}
