/* 1.8 precision UI. Loaded after the brand layer; no print/PDF rules. */
:root{--ui-gap:16px;--ui-panel:20px;--ui-control:42px}
html[data-atlas-theme] body.atlas-myth:not(.shell-auth):not(.myth-about){scrollbar-color:var(--myth-line) var(--myth-bg)}
html[data-atlas-theme] body.atlas-myth :is(button,.button,input,select){min-height:var(--ui-control);font-size:calc(15px * var(--atlas-font-scale,1))!important}
html[data-atlas-theme] body.atlas-myth button:active:not(:disabled){transform:translateY(1px)}
html[data-atlas-theme] body.atlas-myth button[aria-busy=true]{cursor:progress}
html[data-atlas-theme] body.atlas-myth :is(button,a,input,summary,select){scroll-margin:24px}
html[data-atlas-theme=light] body.atlas-myth[data-atlas-theme] :focus-visible{outline-color:#715d3d!important}
html[data-atlas-theme] body.atlas-myth .shell-nav a[aria-current=page]{background:#302f29!important;box-shadow:inset 3px 0 #c9ae7e;font-weight:700}
html[data-atlas-theme] body.atlas-myth .shell-nav small{border-top:1px solid #424847;margin-top:12px}
@media(min-width:761px){
 html[data-atlas-theme] body.atlas-myth :is(.shell-side,.side){display:flex!important;flex-direction:column;align-items:stretch;height:100vh!important;padding:24px 0 0!important;width:208px;overflow:hidden}
 html[data-atlas-theme] body.atlas-myth .shell-nav{overflow:auto;min-height:64px;flex:1;align-content:start}
 html[data-atlas-theme] body.atlas-myth .atlas-utilities{position:static!important;width:auto!important;flex:none;margin:16px 16px 12px!important;padding-top:8px!important}
 html[data-atlas-theme] body.atlas-myth .shell-brand{padding:0 24px 20px!important;flex:none}
}
html[data-atlas-theme] body.atlas-myth.myth-engine .main{padding:24px!important}
.atlas-myth.myth-engine .myth-engine-heading{min-height:42px;margin:0 0 12px;gap:16px}
.atlas-myth.myth-engine .myth-engine-heading>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 20px}
.atlas-myth.myth-engine .myth-engine-heading h1{font-size:calc(26px * var(--atlas-font-scale,1));margin:0}
.atlas-myth.myth-engine .myth-engine-heading #atlasQuotaCount{font-size:calc(13px * var(--atlas-font-scale,1));margin:0;color:var(--myth-muted)}
.atlas-myth.myth-engine .myth-engine-controls{gap:8px 12px;margin:0 0 12px;padding:0 0 8px;align-items:center}
.atlas-myth.myth-engine .myth-engine-controls .tbctl{gap:8px}
html[data-atlas-theme] body.atlas-myth[data-atlas-theme] .engine-tabs button{min-height:42px;padding:8px 12px!important;background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;box-shadow:none!important;color:var(--myth-muted)!important}
html[data-atlas-theme] body.atlas-myth.myth-engine[data-atlas-theme] .engine-tabs button.active{background:transparent!important;border-bottom-color:var(--myth-bronze-text)!important;color:var(--myth-text)!important;font-weight:800;box-shadow:none!important}
html[data-atlas-theme] body.atlas-myth[data-atlas-theme] .tbctl .seg{min-height:42px;padding:8px 10px!important;font-size:calc(13px * var(--atlas-font-scale,1))!important;border:1px solid var(--myth-line)!important;box-shadow:none}
html[data-atlas-theme] body.atlas-myth[data-atlas-theme] .tbctl .seg.active{background:var(--myth-soft)!important;color:var(--myth-text)!important;box-shadow:inset 0 0 0 1px var(--myth-bronze-text);font-weight:800}
.atlas-myth .myth-engine-controls #baseDate{width:154px;padding:8px;font-size:calc(14px * var(--atlas-font-scale,1))!important}
.atlas-myth .myth-engine-controls .tbdate{gap:6px}
.atlas-myth .myth-reset{margin-left:12px!important;font-weight:400!important;color:var(--myth-muted)!important}
.atlas-myth.myth-engine .myth-work-banner{height:72px;min-height:72px!important;padding:16px 24px!important;margin:0 0 16px!important;display:flex;align-items:center;background-size:auto 290%;background-position:right 43%}
.atlas-myth.myth-engine .myth-work-banner h2{margin:0!important;font-size:calc(21px * var(--atlas-font-scale,1))!important;max-width:62%;line-height:1.4}
.atlas-myth.myth-engine:not([data-myth-phase=empty]) .myth-work-banner{display:none!important}
.atlas-myth .myth-analysis-grid{grid-template-columns:minmax(300px,36fr) minmax(0,64fr);gap:24px}
.atlas-myth .myth-source,.atlas-myth .myth-result{padding:20px!important}
.atlas-myth .myth-source-title{min-height:42px;padding:0 0 12px;margin:0 0 16px;align-items:center;gap:8px;flex-wrap:wrap}
.atlas-myth .myth-source-title h2,.atlas-myth .myth-result h3{font-size:calc(18px * var(--atlas-font-scale,1))!important}
.atlas-myth .myth-source-title span{font-size:calc(13px * var(--atlas-font-scale,1));color:var(--myth-muted)}
.atlas-myth .myth-result h3{min-height:42px;margin:0 0 16px!important;gap:8px}
.atlas-myth .myth-result h3 button{min-width:114px;min-height:42px;font-size:calc(14px * var(--atlas-font-scale,1))!important}
.atlas-myth .myth-result h3{position:relative}
.atlas-myth .ui-copy-feedback{position:absolute;right:0;top:100%;font-size:13px;line-height:20px;color:var(--myth-success);font-weight:400}
html[data-atlas-theme] body.atlas-myth .myth-result pre{font-size:calc(15px * var(--atlas-font-scale,1))!important;line-height:1.7!important;overflow-wrap:anywhere}
html[data-atlas-theme] body.atlas-myth :is(.myth-source-caption,.myth-upload-support,.myth-upload-panel>p,.result-facts,#fileName,.myth-raw pre,.myth-engine-status,.myth-engine-status .atlas-readstatus,.myth-engine-status p,.myth-file-status,.date-caption){font-size:calc(13px * var(--atlas-font-scale,1))!important;color:var(--myth-muted)!important;line-height:1.65!important}
html[data-atlas-theme] body.atlas-myth .myth-raw pre{font-size:calc(14px * var(--atlas-font-scale,1))!important;color:var(--myth-text)!important}
.atlas-myth .myth-upload-panel>h2,.atlas-myth .upload>div,.atlas-myth .upload>.ic{display:none!important}
.atlas-myth .myth-upload-panel>p{margin:0 0 12px!important}
.atlas-myth .myth-upload-support{margin:12px 0!important}
.atlas-myth .myth-upload-panel .upload{padding:16px!important;gap:12px;min-height:0}
.atlas-myth .myth-upload-panel .upload .btn{width:100%;min-height:44px}
html[data-atlas-theme] body.atlas-myth[data-myth-phase=result] .myth-upload-panel .upload .btn{background:var(--myth-surface)!important;color:var(--myth-text)!important;border:1px solid var(--myth-line)!important}
.atlas-myth[data-myth-phase=empty] #fileName{display:none}
.atlas-myth .myth-engine-status .read-state:not(.ui-read-state){display:none!important}
.atlas-myth[data-myth-phase=result] .myth-upload-support{display:none}
.atlas-myth[data-myth-phase=empty] .myth-result .result-context{display:none!important}
.atlas-myth[data-myth-phase=empty] .myth-result pre{min-height:90px!important;padding-top:0!important}
.atlas-myth .myth-engine-status{margin:0 0 12px;gap:4px 12px;padding-left:12px}
.atlas-myth .myth-engine-status .read-state{font-size:calc(13px * var(--atlas-font-scale,1));flex:none}
html[data-atlas-theme] body.atlas-myth[data-myth-phase=error] .read-state{color:var(--myth-error)!important;background:transparent!important}
html[data-atlas-theme] body.atlas-myth[data-atlas-theme] #atlasReadStatus.is-warning{background:transparent!important;color:var(--myth-warning)!important;border:0!important;padding:0!important}
.atlas-myth .ui-result-hint{font-size:15px;color:var(--myth-muted);line-height:1.7;margin:16px 0}
.atlas-myth .myth-result[data-ui-no-result=true] pre{display:none!important}
.atlas-myth .myth-engine-settings{margin:16px 0 0;border-top:1px solid var(--myth-line)!important}
.atlas-myth .myth-engine-settings>summary{font-size:calc(13px * var(--atlas-font-scale,1));min-height:42px!important;padding:10px 0!important}
.atlas-myth .myth-file-status{margin-top:16px;overflow-wrap:anywhere}
.atlas-myth .myth-source :is(details,p){max-width:100%;overflow-wrap:anywhere}
/* Document controls and photo tools share the same alignment and touch area. */
.atlas-myth.shell-claims>main{padding:24px!important}
.atlas-myth.shell-claims :is(.input-panel,.preview-area){padding:20px!important;min-width:0}
.atlas-myth.shell-claims :is(.input-panel h2,.preview-toolbar h2,.photo-section h3){font-size:calc(18px * var(--atlas-font-scale,1))!important}
.atlas-myth.shell-claims .preview-toolbar{gap:8px 16px;flex-wrap:wrap}
.atlas-myth.shell-claims :is(.preview-tools button,.photo-actions button){min-height:42px!important;font-size:calc(13px * var(--atlas-font-scale,1))!important;padding:8px 12px!important}
.atlas-myth.shell-claims .preview-tools{gap:8px;align-items:center}
.atlas-myth.shell-claims :is(#previewStatus,.photo-section>p,.role-help,.privacy-note){font-size:calc(13px * var(--atlas-font-scale,1))!important;color:var(--myth-muted);line-height:1.65}
.atlas-myth.shell-claims .photo-section{padding:20px!important}
.atlas-myth.shell-claims .photo-item{align-items:start;padding:16px 0;gap:16px}
.atlas-myth.shell-claims .photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.atlas-myth.shell-claims .photo-actions [data-photo-action=remove]{margin-left:8px;color:var(--myth-error)!important}
.atlas-myth.shell-claims .photo-item:focus-within,.atlas-myth.shell-claims .photo-item[data-ui-selected=true]{outline:2px solid var(--myth-bronze-text);outline-offset:4px}
.atlas-myth.shell-claims .photo-item{padding-left:12px;padding-right:8px}
.atlas-myth.shell-claims .photo-item[data-ui-selected=true]{outline:none;box-shadow:inset 3px 0 var(--myth-bronze-text);background:var(--myth-soft)}
.atlas-myth .ui-photo-selected{display:block;min-height:22px;font-size:13px;line-height:22px;font-weight:700;color:var(--myth-bronze-text);visibility:hidden}
.atlas-myth .photo-item[data-ui-selected=true] .ui-photo-selected{visibility:visible}
.atlas-myth .photo-info strong{overflow-wrap:anywhere;white-space:normal}
.atlas-myth .photo-total{font-size:calc(15px * var(--atlas-font-scale,1))!important}
.atlas-myth .photo-dialog,.atlas-myth .photo-confirm{max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:auto}
@media(min-width:1151px) and (min-height:650px){.atlas-myth.shell-claims .preview-area{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}.atlas-myth.shell-claims .paper{max-height:calc(100vh - 300px);min-height:180px}}
@media(max-width:1150px){.atlas-myth .myth-analysis-grid{grid-template-columns:1fr}.atlas-myth.myth-engine .myth-engine-controls{align-items:start}.atlas-myth.myth-engine .myth-work-banner{background-size:auto 260%}.atlas-myth .myth-raw pre{max-height:280px!important}}
@media(max-width:760px){
 html[data-atlas-theme] body.atlas-myth.myth-engine .main,.atlas-myth.shell-claims>main{padding:16px!important}
 .atlas-myth.myth-engine .myth-engine-heading{align-items:start;flex-wrap:wrap}
 .atlas-myth.myth-engine .myth-engine-heading>div:first-child{gap:4px 12px}
 .atlas-myth.myth-engine .myth-engine-controls .tbctl{width:100%;gap:12px;align-items:start}
 .atlas-myth .myth-engine-controls .tbdate{flex-wrap:wrap;min-width:0}
 .atlas-myth.myth-engine .myth-work-banner{height:auto;min-height:80px!important;background-position:right 43%;padding:16px!important}
 .atlas-myth.myth-engine .myth-work-banner h2{font-size:calc(18px * var(--atlas-font-scale,1))!important;max-width:64%}
 .atlas-myth .myth-reset{margin-left:0!important}
 .atlas-myth .myth-source,.atlas-myth .myth-result{padding:16px!important}
 .atlas-myth .shell-nav a{font-size:calc(14px * var(--atlas-font-scale,1))!important}
 .atlas-myth .shell-nav small{width:100%}
 .atlas-myth .atlas-utilities{align-items:stretch}
 .atlas-myth.shell-claims .preview-toolbar>*,.atlas-myth.shell-claims .preview-tools>*{max-width:100%;flex-wrap:wrap}
 .atlas-myth.shell-claims .photo-actions [data-photo-action=remove]{margin-left:0}
}
/* Shared short guidance and input feedback; no clinical or PDF content changes. */
.atlas-myth .guide-detail{border-block-end:1px solid var(--myth-line);padding:16px 0;margin:0;background:transparent}
.atlas-myth .guide-detail summary{cursor:pointer;font-weight:600;line-height:1.6;min-height:32px}
.atlas-myth .guide-detail[open] summary{margin-bottom:12px}
.atlas-myth .claim-inline-error{display:block;color:var(--error,#b14236);margin:4px 0 8px;line-height:1.6}
html[data-atlas-theme=dark] .atlas-myth .claim-inline-error{color:#ffb8ae}
.atlas-myth .photo-limit-details{padding:4px 0;border:0;background:transparent}
.atlas-myth .photo-limit-details summary{cursor:pointer;min-height:32px;line-height:1.6}
.atlas-myth:not(.myth-engine) .myth-work-banner{min-height:80px;padding:16px 24px}
.atlas-myth:not(.myth-engine) .myth-work-banner :is(.myth-kicker,p){display:none}
.atlas-myth:not(.myth-engine) .myth-work-banner h2{margin:0;font-size:calc(20px * var(--atlas-font-scale,1))}
.atlas-myth :is(.guide-detail summary,.dc-finder summary):focus-visible{outline:3px solid var(--myth-bronze,#a38b61);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.atlas-myth button:active:not(:disabled){transform:none!important}}

/* 2026-10-14: text alignment only; scoped to medical and claims workspaces. */
.atlas-myth.myth-engine :is(.myth-source-title,.myth-result h3){min-height:54px;padding:0 0 12px!important;margin:0 0 16px!important;border-bottom:1px solid var(--myth-line);align-items:center}
.atlas-myth.myth-engine .myth-source-title h2{line-height:1.4}
.atlas-myth.myth-engine .myth-source-title span{line-height:1.5}
.atlas-myth.myth-engine .myth-analysis-grid>.wrap .panel{padding:20px!important}
.atlas-myth.myth-engine .myth-analysis-grid>.wrap .panel>h2{margin-top:0;line-height:1.5}
.atlas-myth.myth-engine .result-context{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
.atlas-myth.myth-engine .result-context .result-files{grid-column:1;grid-row:1;min-width:0}
.atlas-myth.myth-engine .result-context .result-files summary{padding:8px 0;line-height:1.55}
.atlas-myth.myth-engine .result-context>button{grid-column:2;grid-row:1;margin:0;align-self:start}
.atlas-myth.myth-engine .result-context .result-facts{grid-column:1;grid-row:1;display:grid;gap:4px;min-width:0}
.atlas-myth.myth-engine :is(.result-facts p,.myth-upload-panel>p,.myth-upload-support,.myth-source-caption,.myth-file-status,.myth-engine-status){word-break:keep-all;overflow-wrap:anywhere}
.atlas-myth.myth-engine .myth-result pre{text-align:left}
/* Results use the document scrollbar, not an auto-sized nested scrollbox.
   Raw source retains its explicit, normally collapsed inspection area. */
.atlas-myth.myth-engine .myth-analysis-grid>.wrap pre{overflow:visible!important;max-height:none!important;height:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.atlas-myth.myth-engine .myth-raw pre{overscroll-behavior:auto;scrollbar-gutter:stable}
.atlas-myth.myth-engine .myth-result .ui-copy-feedback{top:calc(100% - 1px);background:var(--myth-surface);padding-left:8px}
.atlas-myth.myth-engine .myth-raw{margin-top:16px;padding-top:0}
.atlas-myth.myth-engine .myth-source-caption{margin:4px 0 12px}
.atlas-myth.myth-engine .myth-engine-controls .engine-tabs button{min-width:80px;justify-content:center;text-align:center}
.atlas-myth.shell-claims>main{margin-top:0}
.atlas-myth.shell-claims .hero{align-items:flex-start;margin-bottom:16px}
.atlas-myth.shell-claims .hero h1{margin:0 0 8px;line-height:1.35}
.atlas-myth.shell-claims .hero p{line-height:1.6;word-break:keep-all}
.atlas-myth.shell-claims .hero-actions{padding-top:0}
.atlas-myth.shell-claims .section-heading{padding:20px 24px 12px;min-height:64px;align-items:center}
.atlas-myth.shell-claims .section-heading h2{margin:0;line-height:1.4}
.atlas-myth.shell-claims .steps{margin:0 24px 12px;align-items:stretch}
.atlas-myth.shell-claims .steps button{min-width:0;min-height:64px;padding:8px 4px;gap:4px 6px;line-height:1.4;border-top:0;border-right:0;border-left:0;border-radius:0!important}
.atlas-myth.shell-claims .steps small{line-height:1.5;min-height:20px}
.atlas-myth.shell-claims .input-panel{padding:0 24px!important}
.atlas-myth.shell-claims .role-card summary{display:grid!important;grid-template-columns:minmax(0,1fr) 20px;grid-template-rows:auto auto;gap:4px 12px;padding:12px 0!important;line-height:1.5;min-height:64px}
.atlas-myth.shell-claims .role-card summary strong{grid-column:1;grid-row:1;min-width:0;margin:0;line-height:1.5;word-break:keep-all}
.atlas-myth.shell-claims .role-card summary small{grid-column:1;grid-row:2;order:0;width:auto;min-width:0;line-height:1.6;word-break:keep-all}
.atlas-myth.shell-claims .role-card summary:after{grid-column:2;grid-row:1/3;align-self:center;justify-self:center;color:var(--myth-muted)}
.atlas-myth.shell-claims .role-card fieldset{padding:0 0 16px}
.atlas-myth.shell-claims .inputs label:not(.claim-options label){display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:12px 0 0;line-height:1.5;word-break:keep-all}
.atlas-myth.shell-claims .inputs label :is(input,select,textarea){margin:0}
.atlas-myth.shell-claims .inputs .two{align-items:start;gap:12px}
.atlas-myth.shell-claims .inputs :is(small,.role-help,.privacy-note){line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
.atlas-myth.shell-claims .role-help{margin:8px 0 12px}
.atlas-myth.shell-claims .preview-area{padding:20px!important}
.atlas-myth.shell-claims .insurers{padding:0 0 12px;margin-bottom:12px}
.atlas-myth.shell-claims .preview-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:0 0 8px;align-items:center}
.atlas-myth.shell-claims .preview-toolbar h2{line-height:1.5;word-break:keep-all}
.atlas-myth.shell-claims .preview-toolbar #download{max-width:260px;line-height:1.5;word-break:keep-all}
.atlas-myth.shell-claims .preview-toolbar #downloadClaimOnly{grid-column:2;justify-self:end}
.atlas-myth.shell-claims .preview-tools{display:flex;align-items:center;gap:8px;padding:8px 0 12px}
.atlas-myth.shell-claims .preview-tools .page-controls{flex:0 0 100%;justify-content:flex-start;gap:8px;padding:0;margin:0}
.atlas-myth.shell-claims .preview-tools :is(#pageCount,#zoomValue){display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:56px;margin:0;line-height:1.5;font-variant-numeric:tabular-nums}
.atlas-myth.shell-claims :is(.paper,.form-note){margin-left:0;margin-right:0}
.atlas-myth.shell-claims .form-note{padding:12px 0;word-break:keep-all}
.atlas-myth.shell-claims .photo-info :is(strong,p){margin:0 0 6px;line-height:1.6}
@media(min-width:1700px){.atlas-myth.shell-claims .preview-tools .page-controls{flex:0 0 auto;margin-right:12px}}
@media(max-width:1150px){.atlas-myth.shell-claims .claim-layout{grid-template-columns:1fr}.atlas-myth.shell-claims .preview-area{position:static;max-height:none}.atlas-myth.shell-claims .paper{max-height:65vh}}
@media(max-width:760px){
 .atlas-myth.myth-engine .myth-analysis-grid>.wrap .panel{padding:16px!important}
 .atlas-myth.myth-engine .result-context{grid-template-columns:minmax(0,1fr)}
 .atlas-myth.myth-engine .result-context>button{grid-column:1;grid-row:2;justify-self:start}
 .atlas-myth.myth-engine .result-context .result-facts{grid-row:1}
 .atlas-myth.shell-claims .section-heading{padding:16px 16px 12px}
 .atlas-myth.shell-claims .steps{margin:0 16px 8px;gap:4px}
 .atlas-myth.shell-claims .input-panel{padding:0 16px!important}
 .atlas-myth.shell-claims .preview-area{padding:16px!important}
 .atlas-myth.shell-claims .preview-toolbar{grid-template-columns:1fr}
 .atlas-myth.shell-claims .preview-toolbar :is(#download,#downloadClaimOnly){grid-column:1;justify-self:stretch;max-width:none}
 .atlas-myth.shell-claims .inputs .two{grid-template-columns:1fr}
}
/* The login opening sentence stays readable without competing with the form. */
body.atlas-myth.shell-auth .auth h2.atlas-login-quote{font-size:clamp(18px,1.55vw,22px)!important;line-height:1.75!important;font-weight:500!important;letter-spacing:-.035em;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere;text-wrap:initial;margin-bottom:24px!important;max-width:100%}
@media(max-width:760px){body.atlas-myth.shell-auth{padding-left:0!important}body.atlas-myth.shell-auth .auth h2.atlas-login-quote{font-size:clamp(15px,4.35vw,18px)!important;line-height:1.75!important;margin-bottom:20px!important}}
