/* Shared application chrome. Document typography and marketing remain independent. */
.shell{--ui-hover:color-mix(in srgb,var(--text) 5%,transparent);--ui-rule:color-mix(in srgb,var(--text) 12%,transparent);--ui-radius:6px}










.shell button:disabled{cursor:not-allowed}
.shell :is(.dashboard-controls,.library-toolbar,.explorer-controls) :is(input,select){min-height:36px;box-sizing:border-box;border-radius:var(--ui-radius);font-size:14px;border-color:var(--ui-rule)}
.shell :is(.library-table,.source-table,.action-history-table,.opportunity-table){border-collapse:collapse;width:100%}





.shell .explorer-row>summary{padding:16px 20px;line-height:1.5;border-color:var(--ui-rule)}

.shell :is(.live-data-row,.competitive-row,.explorer-row,.library-table){font-variant-numeric:tabular-nums}





.navigation-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:var(--navigation-icon) center/contain no-repeat;-webkit-mask:var(--navigation-icon) center/contain no-repeat;opacity:.8}










.shell .writer-header{height:auto;min-height:76px;padding:16px 24px;gap:16px;border-color:var(--ui-rule)}
.shell .writer-header select{min-height:36px;font-size:14px;border-radius:6px;border-color:var(--ui-rule)}
.shell .settings-row{gap:24px;padding-top:20px;padding-bottom:20px}
@media(max-width:750px){
 .shell .topbar{padding:16px}
 .shell :is(.pagehead,.overview-heading){align-items:flex-start;gap:14px}
 .shell :is(.primary,.ghost){min-height:40px}
 .shell :is(.panelhead,.overview-panelhead,.explorer-detailhead){padding:16px}
 .shell .writer-header{padding:16px;flex-wrap:wrap}
 .shell .brand-options{max-width:calc(100vw - 48px)}
}
@media(prefers-reduced-motion:reduce){.shell :is(.primary,.ghost){transition:none}}


.shell .explorer-identity>span:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
.shell .explorer-identity strong{flex-basis:100%;line-height:1.5}
.shell .explorer-identity :is(small,.explorer-category){margin:0;line-height:1.5}
.shell .explorer-identity .explorer-category{font-size:14px}
/* Content workspace: one restrained toolbar and a clearly separated inspector. */
.shell .library-v2{padding:28px;max-width:1600px;margin:0 auto}
.shell .library-counts{gap:24px;padding:0 0 20px;margin:0;line-height:1.5;color:var(--muted)}
.shell .library-counts b{color:var(--text);font-weight:600}
.shell .library-controls{border:1px solid var(--ui-rule);border-radius:6px;padding:20px;background:var(--panel)}
.shell .library-view-row{align-items:center;gap:10px;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--ui-rule)}
.shell .library-view-row>label{flex-direction:row;align-items:center;gap:12px;min-width:0;margin-right:auto}
.shell .library-view-row select{width:auto;min-width:170px}
.shell .library-controls :is(input,select,button),.shell .library-save>summary{font-size:14px;min-height:36px;padding:8px 10px;box-sizing:border-box;border-radius:6px;line-height:1.4}
.shell .library-controls :is(input,select){background:var(--bg);border:1px solid var(--ui-rule);color:var(--text)}
.shell .library-controls label{gap:8px}
.shell .library-save>summary{cursor:pointer;list-style:none;border:1px solid var(--ui-rule)}
.shell .library-save>summary:hover{background:var(--ui-hover)}
.shell .library-help{font-size:14px;color:var(--muted);margin-top:16px}
.shell .library-help summary{cursor:pointer;width:fit-content}
.shell #library-feedback:empty{display:none}
.shell .library-result-heading{padding:16px 20px;border-bottom:1px solid var(--ui-rule);font-size:14px}
.shell .library-document-title{font-size:15px;line-height:1.5;font-weight:500;color:var(--text)}
.shell .library-table td:first-child{max-width:520px}
.shell .library-table td small{display:block;margin-top:6px;line-height:1.5;color:var(--muted)}
.shell .writer-toolbar{padding:10px 20px;gap:4px;min-height:56px;box-sizing:border-box;background:var(--bg);border-color:var(--ui-rule)}
.shell .writer-toolbar button{min-width:32px;min-height:34px;padding:7px 10px;border-radius:5px;color:var(--muted);line-height:1.3}
.shell .writer-toolbar button:hover{color:var(--text);background:var(--ui-hover)}
.shell .writer-toolbar button:nth-child(3),.shell .writer-toolbar button:nth-child(6),.shell .writer-toolbar button:nth-child(8){margin-left:8px}
.shell .writer-toolbar .writing-label{font-size:12px;letter-spacing:1px;margin-left:auto}
.shell .writer-inspector{background:var(--panel);border-left:1px solid var(--ui-rule)}
.shell .inspector-tabs{padding:0 16px;gap:8px;background:var(--panel);border-color:var(--ui-rule);min-height:56px;box-sizing:border-box}
.shell .inspector-tabs button{padding:16px 8px;line-height:1.5;font-weight:500}
.shell .writer-inspector>[role=tabpanel]{padding:24px;line-height:1.6}
.shell .inspector-heading{margin-bottom:24px}
.shell .inspector-heading h2,.shell .review-intro h2{font-size:18px;margin:0 0 6px;line-height:1.4;letter-spacing:-.2px}
.shell .inspector-heading p{font-size:14px;color:var(--muted);margin:0;line-height:1.6}
.shell .writer-inspector .field-label{margin:24px 0 0;font-size:14px;line-height:1.5;display:block}
.shell .writer-inspector .field-label :is(input,textarea){margin-top:8px;padding:11px 12px;border:1px solid var(--ui-rule);border-radius:5px;background:var(--bg);font-size:15px;line-height:1.6;box-sizing:border-box;width:100%}
.shell .writer-inspector textarea{resize:vertical}
.shell .writer-inspector .brief-scope-help{display:block;margin-top:8px;font-size:14px;line-height:1.6;color:var(--muted)}
.shell .writer-inspector .brief-handoff-note{padding:16px;margin:0 0 20px;border:1px solid var(--ui-rule);background:transparent}
.shell .writer-inspector .brief-handoff-note p{margin:8px 0 12px;line-height:1.6}
.shell .writer-inspector :is(.evidence-group,.delivery-tools){margin-top:20px;padding-top:16px;border-top:1px solid var(--ui-rule)}
.shell .writer-inspector :is(.evidence-group,.delivery-tools)>summary{font-size:14px;font-weight:500;line-height:1.5;padding:4px 0;cursor:pointer}
.shell .writer-inspector .source-reference{padding:14px 0;line-height:1.6}
.shell .writer-inspector .generate-button{margin-top:24px;min-height:42px;border-radius:6px;font-size:14px}
.shell .writer-inspector .version-card{padding:16px;border-color:var(--ui-rule);background:var(--bg)}
@media(min-width:1100px){.shell .writer-layout{grid-template-columns:minmax(0,1fr) 360px}.shell .writer-layout:has(#tab-review[aria-selected=true]){grid-template-columns:minmax(0,1fr) 400px}}
@media(max-width:750px){.shell .library-v2{padding:20px 16px}.shell .library-controls{padding:16px}.shell .library-view-row{flex-wrap:wrap}.shell .library-view-row>label{flex-basis:100%;justify-content:space-between}.shell .library-counts{gap:12px;flex-wrap:wrap}.shell .writer-inspector>[role=tabpanel]{padding:20px}.shell .writer-toolbar{padding:8px 12px}.shell .writer-inspector{border-left:0;border-top:1px solid var(--ui-rule)}}
.shell .library-view-row>.library-save{margin-left:0;flex:0 0 auto}
/* Actions and claim review share the same evidence and decision rhythm. */
.shell :is(.actions-workspace,.facts-workspace){padding:28px;max-width:1600px;margin:0 auto}
.shell :is(.actions-workspace,.facts-workspace) .panel{border:1px solid var(--ui-rule);border-radius:6px;background:var(--panel)}
.shell .action-history-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:16px 0;margin:8px 0 16px}
.shell .action-history-toolbar label{display:flex;align-items:center;gap:12px;font-size:14px;white-space:nowrap}
.shell .action-history-toolbar p{max-width:600px;line-height:1.6;margin:0}
.shell :is(.actions-workspace,.facts-workspace) select{min-height:36px;padding:8px 12px;font-size:14px;border:1px solid var(--ui-rule);border-radius:6px;background:var(--bg);color:var(--text)}
.shell .actions-workspace .opportunity{margin:0 0 12px;overflow:hidden}
.shell .actions-workspace .opportunity>summary{display:flex;align-items:flex-start;gap:16px;padding:20px;list-style:none;cursor:pointer}
.shell .actions-workspace .opportunity>summary:hover{background:var(--ui-hover)}
.shell .actions-workspace .opportunity>summary:after{content:'+';margin-left:auto;color:var(--muted);font-size:18px}
.shell .actions-workspace .opportunity[open]>summary:after{content:'−'}
.shell .actions-workspace .opportunity>summary strong{font-size:15px;font-weight:600;line-height:1.6}
.shell .actions-workspace .opportunity>summary small{display:block;margin-top:6px;font-size:14px;line-height:1.5}
.shell :is(.actions-workspace,.facts-workspace) .priority{font-size:13px;line-height:1.5;padding:4px 8px;border-radius:4px;white-space:nowrap;flex-shrink:0}
.shell .actions-workspace .live-evidence{padding:20px;border-top:1px solid var(--ui-rule);background:transparent}
.shell .actions-workspace .live-evidence>.row{gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.shell .actions-workspace .live-evidence>.row label{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:14px}
.shell :is(.actions-workspace,.facts-workspace) h3{font-size:16px;line-height:1.5;margin:24px 0 12px}
.shell :is(.actions-workspace,.facts-workspace) .action-document{padding:16px 0;gap:12px;border-color:var(--ui-rule);line-height:1.6}
.shell :is(.actions-workspace,.facts-workspace) .evidence-group{margin-top:24px;padding-top:16px;border-top:1px solid var(--ui-rule)}
.shell :is(.actions-workspace,.facts-workspace) .evidence-group>summary{padding:4px 0;font-size:14px;font-weight:500;line-height:1.6;cursor:pointer}
.shell :is(.actions-workspace,.facts-workspace) .answer-text{font-size:15px;line-height:1.8;padding:16px;background:var(--bg);border:1px solid var(--ui-rule);border-radius:5px;overflow-wrap:anywhere}
.shell .facts-workspace .library-counts{margin:0 0 24px;gap:24px;flex-wrap:wrap}
.shell .facts-workspace :is(.fact-launch,.fact-review-batch),.shell .actions-workspace .fact-actions{padding:24px;margin-bottom:20px}
.shell .facts-workspace .fact-launch>.row{gap:20px;align-items:flex-start;flex-wrap:wrap}
.shell .facts-workspace .fact-launch>.row>div:first-child{flex:1;min-width:240px}
.shell .facts-workspace h2,.shell .actions-workspace .fact-actions h2{font-size:16px;line-height:1.5;margin:0}
.shell .facts-workspace .fact-launch p{line-height:1.6;max-width:760px}
.shell #fact-feedback:empty,.shell .action-feedback:empty{display:none}
.shell .fact-finding{padding:24px 0;border-color:var(--ui-rule)}
.shell .fact-finding>.row:first-child{gap:12px;align-items:center;flex-wrap:wrap}
.shell .fact-finding>h3{margin:16px 0}
.shell .fact-compare{gap:16px;margin:16px 0}
.shell .fact-compare>section{padding:18px;border:1px solid var(--ui-rule);border-radius:5px;background:var(--bg)}
.shell .fact-compare .eyebrow{font-size:12px;letter-spacing:.7px;line-height:1.5;color:var(--muted)}
.shell .fact-compare blockquote{margin:12px 0 0;padding:0;border:0;font-size:15px;line-height:1.75}
.shell .fact-finding>.review-note{margin:20px 0;padding:18px;border:1px solid var(--ui-rule);border-radius:5px;background:transparent}
.shell .fact-finding>.review-note p{margin:10px 0;line-height:1.6}
.shell .fact-decision-toolbar{gap:8px;flex-wrap:wrap;padding:4px 0 0;margin:20px 0}
.shell :is(.fact-decision-toolbar,.actions-workspace .live-evidence>.row) button{min-height:36px;padding:8px 12px;border-radius:6px;font-size:14px;line-height:1.4}
.shell .fact-decision-toolbar button:not(.primary),.shell .improve-action-button{border:1px solid var(--ui-rule);background:transparent;color:var(--text)}
.shell .fact-decision-toolbar button:hover:not(:disabled):not(.primary),.shell .improve-action-button:hover{background:var(--ui-hover)}
@media(max-width:750px){.shell :is(.actions-workspace,.facts-workspace){padding:20px 16px}.shell .facts-workspace :is(.fact-launch,.fact-review-batch),.shell .actions-workspace .fact-actions{padding:16px}.shell .fact-compare{grid-template-columns:1fr}.shell .actions-workspace .opportunity>summary{padding:16px;gap:12px}.shell .actions-workspace .live-evidence{padding:16px}.shell .actions-workspace .live-evidence>.row label{margin-left:0}.shell .fact-decision-toolbar button{min-height:40px}}
.shell .actions-workspace .opportunity{padding:0}
/* Tracking and context use the same compact headings and neutral section cards. */
.shell :is(.tracking-content,.brand-profile){padding:28px;max-width:1480px;margin:0 auto;box-sizing:border-box}
.shell :is(.tracking-content,.brand-profile) h1{font-size:24px;font-weight:600;letter-spacing:-.5px;line-height:1.3;margin:0 0 8px}
.shell :is(.tracking-content,.brand-profile)>p{font-size:14px;line-height:1.6;margin:8px 0 24px}
.shell :is(.tracking-content,.brand-profile) .panel{border:1px solid var(--ui-rule);border-radius:6px;background:var(--panel);padding:24px;margin-bottom:20px}
.shell :is(.tracking-content,.brand-profile) h2{font-size:16px;line-height:1.5;margin:0 0 8px;font-weight:600}
.shell :is(.tracking-content,.brand-profile) .row{gap:12px;flex-wrap:wrap}
.shell :is(.tracking-content,.brand-profile) .small{font-size:14px;line-height:1.6}
.shell .tracking-content .schedule-panel{padding:20px 24px}
.shell .schedule-budget{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px 0;margin:16px 0;border-top:1px solid var(--ui-rule);border-bottom:1px solid var(--ui-rule);background:transparent}
.shell .schedule-budget span{padding:0;font-size:14px;color:var(--muted);line-height:1.6}
.shell .schedule-budget b{display:block;font-size:20px;font-weight:600;color:var(--text);margin-bottom:4px;font-variant-numeric:tabular-nums}
.shell .schedule-panel>details>summary{font-size:14px;line-height:1.5;padding:4px 0;cursor:pointer}
.shell .schedule-panel form{margin-top:20px;gap:20px}
.shell :is(.tracking-content,.brand-profile) :is(input,select,textarea){padding:10px 12px;border:1px solid var(--ui-rule);border-radius:5px;background:var(--bg);color:var(--text);font-size:15px;line-height:1.6;box-sizing:border-box}
.shell :is(.tracking-content,.brand-profile) textarea{resize:vertical}
.shell .tracking-stats{gap:16px;margin:24px 0}
.shell .tracking-stats .panel{margin:0;padding:20px}
.shell .tracking-stats strong{font-size:30px;letter-spacing:-.6px;line-height:1.4;font-variant-numeric:tabular-nums}
.shell .tracking-stats p{font-size:14px;line-height:1.5;margin:10px 0 0}
.shell .tracking-panel>.row{align-items:center;margin-bottom:16px}
.shell .tracking-row{padding:16px 12px;gap:16px;border-radius:0;border-color:var(--ui-rule);font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
.shell .tracking-row-head{background:var(--ui-hover);color:var(--muted);font-weight:500;font-size:14px;letter-spacing:0}
.shell button.tracking-row:hover,.shell button.tracking-row.selected{background:var(--ui-hover);color:var(--text)}
.shell .tracking-prompt{border-color:var(--ui-rule)}
.shell .tracking-prompt>summary{padding:18px 0;font-size:15px;line-height:1.6;gap:20px;align-items:center}
.shell .tracking-prompt .live-evidence{padding:16px;background:var(--bg);border:1px solid var(--ui-rule);border-radius:5px;margin-bottom:16px}
.shell .tracking-chart line{stroke:var(--ui-rule)}
.shell .tracking-chart text{fill:var(--muted)}
.shell .brand-profile>form>.row{padding:16px 0;border-top:1px solid var(--ui-rule);align-items:center}
.shell .brand-profile #profile-status{margin:0 0 24px;line-height:1.6}
.shell .profile-columns{gap:20px;align-items:start}
.shell .profile-columns .panel{min-width:0}
.shell .brand-profile label{display:block;font-size:14px;line-height:1.5;margin-top:20px;color:var(--text)}
.shell .brand-profile label :is(textarea,input){display:block;width:100%;margin-top:8px}
.shell .profile-domains label{max-width:520px}
.shell .brand-profile .context-health{background:var(--panel);border:1px solid var(--ui-rule)}
.shell .publication-empty{padding:20px 0;text-align:left}
.shell .publication-empty .trace-colors{display:none}
@media(max-width:750px){.shell :is(.tracking-content,.brand-profile){padding:20px 16px}.shell :is(.tracking-content,.brand-profile) .panel{padding:16px}.shell .schedule-budget{grid-template-columns:1fr;gap:12px}.shell .schedule-budget b{display:inline;margin-right:8px}.shell .profile-columns{grid-template-columns:1fr}.shell .tracking-prompt>summary{flex-wrap:wrap}}
.projects-content{padding:28px;max-width:1480px;margin:auto}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.project-card,.project-empty{display:block;padding:24px;border:1px solid var(--ui-rule);border-radius:7px;background:var(--panel);color:var(--text);text-decoration:none}.project-card:hover{border-color:var(--purple)}.project-kind{font-size:13px;color:var(--muted);line-height:1.6}.project-card h2{font-size:18px;line-height:1.5;margin:20px 0 12px}.project-card p,.project-section p,.project-evidence p{font-size:14px;line-height:1.7;color:var(--muted)}.project-card-bottom{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-top:24px;color:var(--purple)}.projects-content progress{display:block;width:100%;height:5px;border:0;border-radius:3px;overflow:hidden;margin-top:16px;background:var(--ui-hover);accent-color:var(--purple)}.projects-content progress::-webkit-progress-bar{background:var(--ui-hover)}.projects-content progress::-webkit-progress-value{background:var(--purple)}.project-empty{grid-column:1/-1}.project-empty h2{font-size:20px}.project-back{display:inline-block;margin-bottom:24px;font-size:14px;color:var(--muted)}.project-detail-heading{max-width:900px;margin-bottom:28px}.project-detail-heading h1{font-size:28px;line-height:1.4;letter-spacing:-.6px;margin:12px 0}.project-detail-heading>p{color:var(--muted);line-height:1.7;font-size:15px}.project-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}.project-section{margin-bottom:24px}.project-section h2,.project-evidence h2{font-size:16px;margin:0 0 16px;line-height:1.5}.project-section textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid var(--ui-rule);background:var(--panel);color:var(--text);padding:14px;font:inherit;font-size:15px;line-height:1.6;border-radius:6px;margin-bottom:12px}.project-task{border:1px solid var(--ui-rule);padding:20px;margin-top:12px;border-radius:6px;background:var(--panel)}.project-task-title{display:flex;align-items:flex-start;gap:12px}.project-task-title input{margin-top:5px;accent-color:var(--purple);width:16px;height:16px;flex-shrink:0}.project-task-title>div{flex:1}.project-task-title label{display:block;font-size:15px;line-height:1.6;font-weight:500}.project-task-title select{padding:7px 9px;background:var(--bg);color:var(--text);border:1px solid var(--ui-rule);border-radius:5px;font-size:14px}.project-task p{margin:12px 0 0}.project-task .ghost,.project-task-link{display:inline-block;margin-top:16px;font-size:14px;color:var(--purple)}.project-create{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px}.project-evidence{padding:24px;background:var(--panel);border:1px solid var(--ui-rule);border-radius:6px;min-width:0}.project-baseline{padding:16px 0;border-block:1px solid var(--ui-rule);margin:20px 0}.project-baseline h3{font-size:14px;font-weight:500;margin:0 0 10px}.project-baseline strong{font-size:26px;font-variant-numeric:tabular-nums}.project-evidence-group{border-top:1px solid var(--ui-rule);margin-top:18px;padding-top:16px}.project-evidence-group summary{cursor:pointer;font-size:14px;line-height:1.6}.project-evidence .source-reference{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.project-evidence .answer-text{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.project-evidence .saved-answer summary{flex-wrap:wrap}.projects-content #project-feedback:empty{display:none}.projects-content #project-feedback{padding:12px;border:1px solid var(--purple);line-height:1.6}.project-evidence a{overflow-wrap:anywhere}@media(max-width:1100px){.project-detail-grid{grid-template-columns:minmax(0,1fr) 300px}}@media(max-width:800px){.projects-content{padding:20px 16px}.project-grid,.project-detail-grid{grid-template-columns:1fr}.project-detail-heading h1{font-size:24px}.project-task-title{flex-wrap:wrap}.project-create{flex-wrap:wrap}.project-card{padding:20px}}
.project-section textarea{min-height:110px;height:110px;max-height:360px}
