/* Working Books, aligned with the preserved Atlas/MVP reference.
   Presentation only; no prototype behaviour or example data is imported. */
body:not(.login-view) #main{max-width:1500px;padding:32px 34px 44px}
body:not(.login-view) .page{max-width:none;margin:0}
body:not(.login-view) .intro{max-width:760px;margin:10px 0 24px;line-height:1.7}
body:not(.login-view) h2{font-size:var(--heading-size);line-height:1.4}
body:not(.login-view) .back-link{display:inline-flex;align-items:center;min-height:36px;color:var(--muted);font-size:var(--label-size);margin-bottom:14px}
body:not(.login-view) .back-link:hover,.quiet-link:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
#sidebar .nav-section{margin:24px 12px 8px;font-size:.714rem;letter-spacing:.08em;color:var(--muted)}
#sidebar .bottom{flex:0 0 auto;padding-top:8px;padding-bottom:12px;overflow:visible}
#sidebar #profile{border-top:1px solid var(--line);margin-top:8px;padding-top:16px;padding-bottom:10px}
/* Same quiet list headers and aligned columns across the working queues. */
.instruction-toolbar{gap:12px;margin:24px 0 18px;align-items:flex-end}
body:not(.login-view) .instruction-toolbar label{font-weight:400;font-size:var(--label-size)}
.instruction-toolbar :is(input,select){display:block;min-height:42px;max-width:100%;margin:6px 0 0;padding:9px 11px;border:1px solid #dcdfe5;border-radius:6px;background:#fff;font-size:var(--label-size)}
.instruction-search{gap:8px}
.instruction-toolbar .button{min-height:42px}
.queue-heading{padding-top:24px;margin:0 0 8px;border-top:1px solid var(--line)}
.instruction-table{margin-top:14px;container-type:inline-size}
.instruction-table table{font-size:var(--label-size)}
.instruction-table :is(th,td){padding:var(--cell-pad) 12px}
.instruction-table th{background:#fafafb;border-top:1px solid var(--line);font-size:.786rem;line-height:1.6;font-weight:500;padding-block:12px}
.instruction-table td{font-size:var(--label-size);line-height:1.65;vertical-align:top}
.instruction-table th:nth-child(1){width:23%}
.instruction-table th:nth-child(2){width:24%}
.instruction-table th:nth-child(3){width:19%}
.instruction-table th:nth-child(4){width:16%}
.instruction-table th:nth-child(5){width:18%}
.instruction-table tbody tr:hover{background:#fafafb}
.instruction-table small{font-size:.786rem;line-height:1.65;margin-top:4px}
.instruction-link{font-weight:500;color:var(--text)}
.instruction-link:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.instruction-table .instruction-actions{gap:8px}
body:not(.login-view) .instruction-table .button{font-size:.857rem;min-height:36px;padding:7px 10px;max-width:100%}
body:not(.login-view) .instruction-table .primary{background:var(--soft);border-color:transparent;color:var(--accent)}
.instruction-status{font-size:.786rem;font-weight:400;line-height:1.5;padding:4px 7px;border-radius:4px;max-width:100%;overflow-wrap:anywhere}
.instruction-status.new,.instruction-status.phase-new{color:#59718b;background:#edf3f8}
.instruction-status.approved,.instruction-status.phase-active,.instruction-status.phase-reviewed,.instruction-status.phase-recorded{color:#54765e;background:#edf5ee}
.instruction-status.rejected,.instruction-status.phase-rejected,.instruction-status.phase-credited,.instruction-status.phase-void,.instruction-status.phase-corrected{color:#97655f;background:#f8edeb}
.instruction-status.phase-to_invoice,.instruction-status.phase-approved{color:#795682;background:#f2ecf5}
.instruction-status.phase-ready_upload{color:#59718b;background:#edf3f8}
.instruction-status.phase-uploaded{color:#917034;background:#faf3e5}
.finance-create-group{margin:20px 0 24px;border-block:1px solid var(--line)}
.finance-create-group>summary{padding:14px 0;font-size:var(--label-size);color:var(--accent);font-weight:500}
.finance-create-group[open]{padding-bottom:20px}
.finance-page .finance-matter-picker{margin-top:12px;border:0;padding-bottom:0}
.finance-matter-picker h2{margin-bottom:12px}
.finance-page>.instruction-toolbar{margin-top:16px}
.finance-queue{margin-top:32px}
.finance-queue>.message{font-size:.857rem;color:var(--muted)}
.finance-queue-group{margin-top:28px}
.finance-queue-group .list-heading{margin-bottom:12px}
.quiet-link{color:var(--accent);font-size:.857rem;display:inline-flex;align-items:center;min-height:36px}
.instruction-empty{color:var(--muted);font-size:var(--label-size);padding:22px 0;border-block:1px solid var(--line);margin-top:14px}
.instruction-paging:empty,.finance-paging:empty{display:none}
/* Compact identity/amount hierarchy and flat fact sections from the prototype. */
.finance-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}
.finance-detail-heading>div{min-width:0}
.finance-detail-heading h1{overflow-wrap:anywhere}
.finance-detail-heading .intro{margin-bottom:12px}
.finance-total{font-size:26px;font-weight:500;letter-spacing:-.5px;font-variant-numeric:tabular-nums;flex:none;text-align:right;line-height:1.3;margin-top:22px}
.finance-total small{display:block;font-size:.857rem;line-height:1.6;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:6px}
.instruction-detail-grid{gap:32px;align-items:start}
.instruction-detail-grid>section{min-width:0;margin-top:0}
.instruction-detail-grid>section:first-child{border-top:1px solid var(--line);padding-top:20px}
.instruction-detail-grid>section:first-child>.customer-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin:20px 0 24px}
.instruction-detail-grid>section:first-child>.customer-facts>div{display:block;min-width:0;border:0;padding:0}
.instruction-detail-grid>section:first-child>.customer-facts dt{margin-bottom:6px;font-size:var(--label-size)}
.instruction-detail-grid>section:first-child>.customer-facts dd{font-size:var(--body-size);line-height:1.65}
.instruction-treatment{background:#fafafb;border:0;border-radius:8px;padding:20px}
.instruction-treatment .customer-facts>div{grid-template-columns:minmax(100px,1fr) minmax(0,1fr);padding:12px 0;gap:8px 14px}
.instruction-treatment>p{font-size:var(--label-size);line-height:1.7}
.instruction-treatment .actions{gap:8px;margin:20px 0 12px}
.finance-page>section,.instruction-page>.instruction-history{border-top:1px solid var(--line);padding-top:20px;margin-top:28px}
.finance-page>section>h2{margin-bottom:12px}
.instruction-history ol{list-style:none;padding:0;margin-top:20px}
.instruction-history li{position:relative;margin-left:4px;border-left:1px solid var(--line);padding:0 0 24px 20px}
.instruction-history li:last-child{border-left-color:transparent}
.instruction-history li:before{content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.instruction-history li strong{font-size:var(--label-size);font-weight:500}
.instruction-history li span{font-size:.786rem;line-height:1.65}
.finance-page details:not(.finance-create-group){padding:12px 0;border-bottom:1px solid var(--line)}
.finance-page summary{font-size:var(--label-size);font-weight:500;cursor:pointer}
.finance-match-history{padding-left:20px;font-size:var(--label-size)}
.finance-match-history li{padding:10px 0}
.finance-match-history p{color:var(--muted);font-size:var(--label-size)}
body:not(.login-view) .admin-notice{font-size:var(--label-size);line-height:1.7;border-radius:6px}
body:not(.login-view) .customers-table th{background:#fafafb;font-size:.786rem;font-weight:500;color:var(--muted);border-top:1px solid var(--line)}
body:not(.login-view) .finance-form,.instruction-form{gap:18px 20px}
.finance-form :is(input:not([type=checkbox]),select,textarea){font-size:var(--body-size)}
/* Keep user-selected text size and density; no fixed row heights or clipping. */
@media(max-width:1190px){
 .instruction-table tr{column-gap:24px;row-gap:16px;padding:20px 0}
 .instruction-table td:before{font-size:.786rem;line-height:1.5}
 .finance-detail-heading{flex-wrap:wrap}
 .finance-total{text-align:left;margin-top:0}
}
@media(min-width:1191px){.instruction-table .money{white-space:normal}}
@media(max-width:1100px){body:not(.login-view) #main{padding:28px 24px}.instruction-detail-grid{grid-template-columns:1fr}}
@media(max-width:650px){
 body:not(.login-view) #main{padding:24px 16px}
 .instruction-toolbar{gap:12px}
 .instruction-toolbar>label{width:100%}
 .instruction-toolbar>label select{width:100%}
 .instruction-detail-grid>section:first-child>.customer-facts{grid-template-columns:1fr;gap:16px}
 .instruction-treatment{padding:18px}
 .instruction-treatment .customer-facts>div{grid-template-columns:1fr;gap:4px}
 .finance-detail-heading{gap:16px}
 .finance-total{font-size:24px}
 .finance-page>.actions{margin-bottom:24px}
}
@media(max-height:650px){
 #sidebar{overflow-y:auto}
 #sidebar nav{flex:0 0 auto;overflow:visible}
 #sidebar .bottom{margin-top:auto}
}
/* Customer and case records: full-page surfaces from Design's workspace model.
   One overview only; Books' future tabs are deliberately not borrowed from Atlas. */
.record-page{min-width:0;color:var(--text)}
.record-back{margin-bottom:8px}
.record-back .back-link{margin:0;font-size:var(--label-size)}
.record-head{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:44px;align-items:start;padding:12px 0 28px;height:auto;min-height:0;border:0;background:transparent;color:var(--text)}
.record-identity,.record-context{min-width:0}
.record-page .record-head h1{font-size:2.15rem;font-weight:500;letter-spacing:-.035em;line-height:1.25;overflow-wrap:anywhere;margin:6px 0 10px}
.record-reference{font-size:var(--body-size);color:var(--muted);line-height:1.65;overflow-wrap:anywhere;margin:0 0 6px}
.record-subtitle{font-size:var(--body-size);color:var(--muted);line-height:1.65;overflow-wrap:anywhere;margin:0}
.record-context{padding:6px 0 0 16px}
.record-contact-head small,.record-customer-link small{display:block;color:var(--muted);font-size:var(--label-size);margin-bottom:5px}
.record-contact-head p{font-size:var(--body-size);margin:4px 0;line-height:1.6;overflow-wrap:anywhere}
.record-customer-link{display:flex;gap:12px;align-items:center;min-height:52px;color:var(--text);padding:6px 0}
.record-customer-link>span:last-child{min-width:0}
.record-customer-link strong{display:block;font-weight:500;overflow-wrap:anywhere;line-height:1.6}
.record-customer-link:hover strong{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.record-context-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:var(--soft);color:var(--accent)}
.record-area{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:8px 0 16px}
body:not(.login-view) .record-area>h2{font-size:var(--label-size);font-weight:500;line-height:1.5;border-radius:6px;background:var(--soft);color:var(--accent);padding:9px 14px;margin:0}
.record-actions{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.record-actions:empty{display:none}
.record-actions .button{font-size:var(--label-size);min-height:40px}
.record-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:44px;padding:28px 0 20px;align-items:start}
.record-body,.record-aside{min-width:0}
.record-aside{padding:24px;background:color-mix(in srgb,var(--accent) 3%,white);border-radius:10px}.record-aside:empty{display:none}
.record-page .record-body>section,.record-page .record-aside>section{margin:0 0 30px}
.record-page .record-aside>section+section{padding-top:22px;border-top:1px solid var(--line)}
.record-page .record-aside>section:last-child{margin-bottom:0}
.record-page .caplegal-refresh{padding:0;border-bottom:0}
.record-page .caplegal-refresh p:empty{display:none}
.record-page .caplegal-balance{border:0}
.record-page .record-aside .caplegal-refresh+.caplegal-balance{margin-top:0}
.record-page h2{font-weight:550;margin:0 0 16px}
body:not(.login-view) .record-aside h2{font-size:var(--body-size)}
.record-page .customer-card-note,.record-page .message{font-size:var(--label-size);color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.record-page .message.error{color:#973b38}
.record-page .customer-facts{margin:8px 0 0}
.record-page .customer-facts>div{grid-template-columns:minmax(100px,.8fr) minmax(0,1.4fr);gap:8px 20px;padding:12px 0;line-height:1.6}
.record-aside .customer-facts>div{display:block;padding:9px 0;border:0}
.record-aside dt{margin-bottom:4px}
.record-page .customer-facts dd{font-size:var(--body-size)}
.record-page .list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.record-page .list-heading h2{margin:0}
.record-page .list-heading .button{font-size:var(--label-size);min-height:40px}
.record-page .matter-list{margin:14px 0 0}
.record-page .matter-list li{padding:18px 0;gap:6px}
.record-page .matter-list a{display:inline-flex;align-items:center;min-height:32px;line-height:1.6;color:var(--text);font-weight:500}
.record-page .matter-list a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.record-page .matter-list span:not(.instruction-status),.record-page .matter-list small{font-size:var(--label-size);line-height:1.6;color:var(--muted)}
.record-page .matter-list .instruction-status{justify-self:start}
.record-page .matter-finance,.record-page .matter-instructions{padding-top:24px;border-top:1px solid var(--line)}
.record-page .matter-finance .actions{display:flex;flex-wrap:wrap;gap:10px}
.record-page .matter-finance .button{font-size:var(--label-size);text-align:left}
.record-page .balance-amount{font-size:1.6rem;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:12px 0}
.record-page .refresh-matters{font-size:var(--label-size);color:var(--accent);border:0;padding-inline:0}
.record-foot:empty{display:none}
.record-foot:not(:empty){padding:16px 0;border-top:1px solid var(--line);position:sticky;bottom:0;background:white;z-index:2}
.record-form-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.record-page:has(#matter-form) .record-grid{display:block;padding-bottom:12px}
.record-page:has(#matter-form) .record-aside{display:none}
.record-page #matter-form{max-width:720px;margin-top:24px}
.record-page #matter-form input,.record-page #matter-form select{width:100%;min-width:0;max-width:100%}
.record-page #matter-form small{color:var(--muted);font-size:var(--label-size);line-height:1.65}
.record-page:has(.record-aside:empty) .record-grid{grid-template-columns:1fr}
@media(min-width:1800px){.record-head,.record-grid{gap:48px;grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1150px){.record-head,.record-grid{gap:26px;grid-template-columns:minmax(0,1fr) 260px}.record-context{padding-left:0}}
@media(max-width:1000px){.record-head{display:block}.record-context{padding-top:18px}.record-grid{display:block}.record-aside:not(:empty){padding:20px;border:0}.record-page .record-head h1{font-size:1.85rem}.record-page .record-body>section{margin-bottom:26px}}
@media(max-width:500px){.record-page .customer-facts>div{grid-template-columns:1fr;gap:4px}.record-form-actions{justify-content:flex-start}.record-page .record-head h1{font-size:1.7rem}.record-area{align-items:flex-start}.record-actions .button{min-height:44px}}

/* Case-wide finance uses the full record width; the identity and provider facts remain above. */
.record-grid>.matter-finance,.record-grid>.matter-instructions{grid-column:1/-1;min-width:0;margin:0 0 10px}
.matter-finance-content h3{font-size:var(--body-size);font-weight:550;margin:26px 0 14px}
.matter-finance-content>.customer-facts{max-width:520px}
.matter-finance-content>.customer-card-note{max-width:780px}

/* Case work: identity, direct actions and one list of the existing records. */
.case-workspace .record-head{padding-bottom:16px}
.case-workspace .record-grid{display:block;padding-top:6px}
.case-workspace .record-body{align-self:start}
.case-facts>summary,.case-receipt-summary>summary{cursor:pointer;padding:12px 0;font-size:var(--label-size);font-weight:500;color:var(--accent);min-height:44px}
.case-facts .matter-detail{margin-top:12px}
.case-workspace .record-aside{padding:14px 18px;margin:4px 0 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 28px}
.case-workspace .caplegal-balance{order:-1}
.case-workspace .record-aside>section{margin:0;padding:0!important;border:0!important}
.case-workspace .record-aside h2{margin-bottom:4px}
.case-workspace .record-aside p{margin:4px 0}
.case-workspace .record-aside .balance-amount{margin:6px 0;font-size:1.45rem}
.case-workspace .caplegal-time{font-size:.75rem}
.case-caplegal-summary,.case-books-balance{min-width:0}
.case-caplegal-summary .caplegal-balance{margin:0}
.case-caplegal-summary .caplegal-refresh{margin-top:10px}
.case-workspace .case-books-balance{padding-left:24px!important;border-left:1px solid var(--line)!important}
.case-books-balance .case-amount-negative{color:#b33b32}
.case-workspace .books-balance-time{font-size:.75rem}
.case-books-balance .books-balance-state:empty{display:none}
@media(max-width:700px){
 .case-workspace .record-aside{grid-template-columns:minmax(0,1fr)}
 .case-workspace .case-books-balance{padding:16px 0 0!important;border:0!important;border-top:1px solid var(--line)!important}
}
.case-workspace .record-context{display:flex;align-items:flex-start;gap:20px}
.case-workspace .record-customer-link{flex:1}
body:not(.login-view) .case-workspace .case-refresh{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;margin-left:auto;border:1px solid var(--line);border-radius:6px}
.case-refresh svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.case-refresh[aria-busy=true] svg{animation:case-refresh-spin 1s linear infinite}
@keyframes case-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.case-refresh[aria-busy=true] svg{animation:none}}
.case-load-state:empty{display:none}
.case-workspace .record-area{align-items:flex-start}
.case-workspace .record-actions{flex:1;justify-content:flex-end}
.case-workspace .case-receipt-action{margin-left:8px;color:var(--muted)}
.case-workspace .matter-finance{padding-top:20px}
.case-finance-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:18px}
.case-finance-toolbar label{font-size:var(--label-size);font-weight:400;min-width:0}
.case-finance-toolbar label:last-child{flex:1;max-width:380px}
.case-finance-toolbar :is(select,input){display:block;width:100%;margin:6px 0 0;min-height:42px;border:1px solid var(--line);border-radius:6px;background:white;padding:9px 11px;font:inherit}
.case-result-count{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.case-records{margin-top:16px}
/* Case economy: two text levels, one unbroken action row. Scroll only this table
   when space is limited; never squeeze financial values or hide status warnings. */
.case-record-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.case-record-table table{display:table;table-layout:auto;min-width:100%;width:100%}
.case-record-table thead{display:table-header-group}
.case-record-table tbody{display:table-row-group}
.case-record-table tr{display:table-row;padding:0;border:0}
.case-record-table :is(th,td){display:table-cell;width:auto!important;white-space:nowrap;overflow-wrap:normal;padding:var(--cell-pad) 10px;border-bottom:1px solid var(--line)}
.case-record-table td:before{display:none}
.case-record-table .money{text-align:left;white-space:nowrap}
.case-record-table .case-amount-negative{color:#b33b32}
.case-record-table .case-description{display:block;width:clamp(10rem,16vw,20rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.case-record-table .case-description-detail{display:flex;align-items:center;gap:6px;max-width:20rem}
.case-record-table .case-description-detail .case-description{min-width:0}
.case-record-table .case-source{flex:none;white-space:nowrap}
.case-record-table .case-identity .instruction-link{display:inline;margin:0}
.case-record-table .case-identity{font-variant-numeric:tabular-nums}
.case-record-table .case-status-line{display:flex;align-items:center;gap:8px;white-space:nowrap}
.case-record-table .instruction-status{background:transparent;color:var(--muted);padding:0;line-height:1.65;white-space:nowrap}
.case-record-table .instruction-status:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin:0 7px 1px 0}
.case-record-table .instruction-status:is(.approved,.phase-active,.phase-reviewed,.phase-recorded){color:#54765e}
.case-record-table .instruction-status:is(.rejected,.phase-rejected,.phase-credited,.phase-void){color:#97655f}
.case-record-table .case-status-note{font-size:.786rem;color:#8a5c26}
.case-record-table .case-secondary{white-space:nowrap}
.case-record-table .instruction-actions{flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px}
body:not(.login-view) .case-record-table .button{white-space:nowrap;flex:none;padding:7px 8px}
body:not(.login-view) .case-record-table .case-history{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;color:var(--muted)}
.case-history svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.case-receipt-summary{margin-top:18px;border-top:1px solid var(--line)}
.case-receipt-totals{display:flex;flex-wrap:wrap;gap:12px 32px;font-size:var(--label-size)}
.case-receipt-totals strong{font-weight:500;font-variant-numeric:tabular-nums}
.case-receipt-summary>.customer-card-note{max-width:760px}
.case-record-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1000px){.case-workspace .record-aside{margin:8px 0 20px}.case-workspace .record-actions{justify-content:flex-start}.case-workspace .record-area{display:block}.case-workspace .record-area>h2{display:inline-block;margin-bottom:12px!important}.case-workspace .case-receipt-action{margin-left:0}.case-workspace .record-context{padding-top:6px}}
@media(max-width:500px){.case-finance-toolbar{display:block}.case-finance-toolbar label{display:block;margin-bottom:12px}.case-finance-toolbar label:last-child{max-width:none}.case-workspace .record-actions .button{flex:1 1 100%}.case-workspace .record-aside{grid-template-columns:minmax(0,1fr)}}
.matters-page .instruction-search{margin:24px 0}
.matters-page .matter-list a{overflow-wrap:anywhere}

/* Full instruction card: one treatment area, bank facts and next action. */
.instruction-treatment .instruction-bank-followup{border-top:1px solid var(--line);margin-top:20px;padding-top:20px;min-width:0}
.instruction-bank-followup h3{font-size:var(--body-size);font-weight:500;margin:0}
.instruction-bank-followup .customer-facts dd,.instruction-match-warnings{overflow-wrap:anywhere}
.instruction-bank-followup .actions:empty{display:none}
.instruction-bank-followup .actions{flex-wrap:wrap}
.instruction-bank-followup .button{white-space:normal;text-align:left;max-width:100%}
.instruction-match-warnings{padding-left:20px}

/* Focused reconciliation drawer; shared drawers and history keep their layout. */
.reconcile-review{min-width:0}
.instruction-panel .reconcile-context{color:var(--muted);font-size:var(--label-size);margin:0 0 8px;overflow-wrap:anywhere}
.reconcile-recipient{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere;outline:none}
.instruction-panel .reconcile-purpose{margin:8px 0 20px;color:var(--muted);font-size:var(--label-size);overflow-wrap:anywhere}
.reconcile-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:20px;margin:24px 0}
.reconcile-comparison>section{min-width:0;border-top:1px solid var(--line);padding-top:16px}
.reconcile-comparison h3{font-size:var(--label-size);color:var(--muted);margin:0}
.instruction-panel .reconcile-amount{font-size:24px;line-height:1.4;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:normal;color:var(--text);margin:10px 0 20px}
.reconcile-comparison dl{margin:0;display:grid;gap:16px}
.reconcile-comparison dt{font-size:var(--label-size);color:var(--muted)}
.reconcile-comparison dd{margin:5px 0 0;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.reconcile-result{padding:16px;background:var(--surface,#f7f8f8);border-radius:8px;line-height:1.6}
.reconcile-result strong{font-weight:500}
.instruction-panel .reconcile-result p{font-size:var(--label-size);margin:6px 0 0}
.reconcile-difference{border-left:3px solid var(--accent)}
.instruction-panel .reconcile-source{margin:20px 0;font-size:var(--label-size);color:var(--accent)}
.reconcile-support{border-top:1px solid var(--line);margin-top:20px}
.reconcile-support>summary{cursor:pointer;padding:14px 0;font-size:var(--label-size);min-height:44px}
.reconcile-support .customer-facts dd{overflow-wrap:anywhere}
.instruction-panel .reconcile-support p{font-size:var(--label-size);overflow-wrap:anywhere}
.reconcile-panel #instruction-followup-form{margin:0}
.reconcile-panel #instruction-followup-form>.message:empty{display:none}
@media(max-width:440px){.reconcile-comparison{gap:14px}.instruction-panel .reconcile-amount{font-size:20px}.reconcile-comparison dd{font-size:var(--label-size)}}
