/* 8136 presentation rules; do not publish test-only annotations. */
:is(.pw-field-guide,.pw-field-hint,.pw-help,.pw-reference-note,.pw-step-intro,.analysis-meta-note,.auth-advisor-note,.auth-registry-note,.case-intro,.connection-note,.self-footnote,.sheet-footnote,.source-note,.studio-sync-intro,.submission-manual-note,.submission-package-note,.v25-boundary,.v25-extraction-note){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;cursor:default!important;caret-color:transparent!important;}
:is(.pw-field-guide,.pw-field-hint,.pw-help,.pw-reference-note,.pw-step-intro,.analysis-meta-note,.auth-advisor-note,.auth-registry-note,.case-intro,.connection-note,.self-footnote,.sheet-footnote,.source-note,.studio-sync-intro,.submission-manual-note,.submission-package-note,.v25-boundary,.v25-extraction-note):not(:has(a,button,input,select,textarea,summary,[tabindex])){pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important;}
:is(.pw-field-guide,.pw-field-hint,.pw-help,.pw-reference-note,.pw-step-intro,.analysis-meta-note,.auth-advisor-note,.auth-registry-note,.case-intro,.connection-note,.self-footnote,.sheet-footnote,.source-note,.studio-sync-intro,.submission-manual-note,.submission-package-note,.v25-boundary,.v25-extraction-note) :is(p,small,strong,li,span):not(:has(a,button,input,select,textarea,summary,[tabindex])){cursor:default;caret-color:transparent;user-select:none;}
input[readonly],textarea[readonly]{border:0!important;background:transparent!important;box-shadow:none!important;outline:none;cursor:default;caret-color:transparent;resize:none;}
.portal-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:12px 0;cursor:default;}
[data-test-only],.test-only-legend{display:none!important;}
.test-only-legend{color:#19713c;font-size:14px;line-height:1.6;margin:12px 0;cursor:default;user-select:none;pointer-events:none;}

.pw-ai,.pw-note,.pw-reference,.pw-flow-card,.pw-style-guide,.pw-ai-account,.pw-ai-labels span{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.pw-ai-account,.pw-ai-labels span,.pw-style-guide{padding-left:0!important;padding-right:0!important;cursor:default;caret-color:transparent;user-select:none;pointer-events:none;}

/* Explicit placement prevents the close button from consuming a grid cell. */
#caseDialog .case-shell{position:relative;display:grid;grid-template-columns:245px minmax(0,1fr);grid-template-rows:minmax(0,1fr);}
#caseDialog .case-nav{grid-column:1;grid-row:1;min-height:0;overflow:auto;}
#caseDialog .case-main{grid-column:2;grid-row:1;min-width:0;min-height:0;width:auto;overflow:auto;padding:30px 36px;}
#caseDialog #closeCaseDialog{position:absolute;top:12px;right:12px;left:auto;z-index:5;}
#caseDialog .case-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
#caseDialog .case-field-grid input{min-width:0;width:100%;}
@media(max-width:700px){#caseDialog .case-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);height:92dvh;width:100%;}#caseDialog .case-nav{grid-column:1;grid-row:1;padding:16px 50px 12px 18px;}#caseDialog .case-main{grid-column:1;grid-row:2;padding:20px 18px;}#caseDialog .case-field-grid{grid-template-columns:minmax(0,1fr);}#caseDialog .case-nav ol{display:none;}}

/* Same semantic draft headings in preview and exported Word. */
.document-prose h4{font-size:1.1rem;color:#344b64;margin:1.2em 0 .5em}.document-prose h5{font-size:1rem;color:#344b64;margin:1em 0 .4em}.document-prose p{margin:0 0 .8em;orphans:2;widows:2}.document-prose h4,.document-prose h5{break-after:avoid;page-break-after:avoid}.document-prose ul,.document-prose ol{padding-left:1.6em}.document-prose li{margin:.3em 0}.document-prose{overflow-wrap:anywhere}

/* Word-aligned four-chapter draft and compact official-field appendix. */
.document-basic-table{break-inside:avoid}.document-basic-table p{margin:0}.document-supplement-table{width:100%;border-collapse:collapse}.document-supplement-table th{width:28%}.document-supplement-table th,.document-supplement-table td{border:1px solid #ccd5dc;padding:8px;vertical-align:top}.document-supplement-table tr{break-inside:avoid}.document-supplement-table p{margin:0}.document-appendix{min-height:0}
/* AI rewrite confirmation stays in-page for reliable browser operation. */
#pwAiRewriteDialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));border:1px solid #cbd8e1;border-radius:16px;padding:28px;color:#233f52;background:#fff;box-shadow:0 16px 60px #102c4540}
#pwAiRewriteDialog::backdrop{background:rgba(16,34,49,.45)}
#pwAiRewriteDialog h2{font-size:1.25rem;margin:0 0 16px}
#pwAiRewriteDialog p{line-height:1.8;margin:0 0 24px}
#pwAiRewriteDialog .pw-ai-confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}
#pwAiRewriteDialog button{font:inherit;padding:12px 16px;border:1px solid #a9bdcc;border-radius:8px;cursor:pointer;background:#fff;color:#233f52}
#pwAiRewriteDialog [data-confirm]{background:#245f88;color:#fff;border-color:#245f88}
#pwAiRewriteDialog button:focus-visible{outline:3px solid #df9900;outline-offset:3px}

/* 20261027001: owner decisions in the existing customer flow. */
html body .hero-entry-note{max-width:680px;font-size:17px;line-height:1.8;color:#52616d;margin-top:12px}
html body .decision-summary{margin:14px 0;padding:14px;border:1px solid #cbd8e3;border-radius:6px;background:#f6f9fc;min-width:0;overflow-wrap:anywhere}
html body .decision-summary .decision-status{display:block;color:#174e73;font-size:18px;line-height:1.6}
html body .decision-summary p,html body .decision-summary dd,html body .decision-summary li{font-size:16px;line-height:1.8;color:#354b5b;margin:6px 0}
html body .decision-summary summary{cursor:pointer;font-size:16px;line-height:1.7;color:#174e73;padding:8px 0}
html body .decision-summary dt{font-weight:600;margin-top:12px;font-size:16px}
html body .decision-summary dd{margin-left:0}html body .decision-summary ul{padding-left:20px;margin:0}
html body .matched-item>div{min-width:0;flex:1}html body .matched-item{align-items:start;cursor:default}
html body .sop-case-choice{display:flex;align-items:center;gap:12px;font-size:16px;margin:12px 0}
html body .sop-case-choice select{min-width:0;max-width:100%;flex:1;padding:10px;border:1px solid #aebdca;border-radius:6px;background:white;color:#27343f;font-size:16px}
html body #sopNext{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;background:#edf4f9;color:#27343f;border-left:4px solid #1768a6;border-radius:6px}
html body #sopNext>div{min-width:0}html body #sopNext strong{font-size:23px;line-height:1.6;color:#173c55}
html body #sopNext p{font-size:17px;line-height:1.8;color:#354b5b;margin:6px 0;overflow-wrap:anywhere}
html body #sopNext button{flex-shrink:0;white-space:normal;min-height:48px}
html body .sop-overview>summary{padding:16px 0;cursor:pointer;font-size:17px;color:#354b5b}
html body #servicePolicy{scroll-margin-top:120px}
@media(max-width:760px){html body #sopNext{flex-direction:column;align-items:stretch;padding:16px}html body .sop-case-choice{align-items:stretch;flex-direction:column}html body #sopNext button{width:100%}html body .decision-summary{padding:12px}}

/* Overview retains existing actions and recommendations; the editor opens on request. */
html body.customer-authenticated:not(.customer-proposal-active) #proposalWorkspace{display:none!important}
html body.sop-application-active:not(.sop-focus-stage) #selfService>h1,
html body.sop-application-active:not(.sop-focus-stage) #selfService>h2,
html body.sop-application-active:not(.sop-focus-stage) #selfService>#selfCompany,
html body.sop-application-active:not(.sop-focus-stage) #selfService>#customerSaveStatus,
html body.sop-application-active:not(.sop-focus-stage) #selfService>.self-footnote{display:block!important}
html body.sop-application-active:not(.sop-focus-stage) #selfService>.self-actions{display:flex!important}
html body.sop-application-active:not(.sop-focus-stage) #selfService>#selfResults{display:grid!important}

html body .brand-signoff-inner{min-width:0;max-width:100%}
html body .brand-signoff-copyright,html body .brand-signoff-copyright span{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:760px){
 html body #selfService>.self-actions,
 html body.sop-application-active:not(.sop-focus-stage) #selfService>.self-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body #selfService>.self-actions button{min-width:0;width:100%;padding:12px 8px;line-height:1.6}
 html body #selfService>.self-actions #supportMessageButton{grid-column:1/-1}
}

/* Pricing withheld until per-case platform and consultant fees are finalized. */
html body #servicePolicy[hidden]{display:none!important}
@media(max-width:700px){.official-format-copy{flex-direction:column}.official-format-copy>div{min-width:0;width:100%}.official-format-copy>span{max-width:100%;white-space:normal;box-sizing:border-box}}
