.expert-intro{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:12px 0 24px}.expert-intro h2{font-size:30px;margin:8px 0}.expert-intro p{margin:0;color:var(--muted);max-width:680px}.expert-stamp{font-size:12px;text-align:right;color:var(--muted);white-space:nowrap}.expert-stamp strong{display:block;font-size:14px;color:var(--accent);margin-top:5px}
.expert-tabs{display:flex;gap:6px;border:1px solid var(--line);padding:6px;background:var(--paper);border-radius:12px;margin-bottom:24px;flex-wrap:wrap}.expert-tabs button{font:inherit;font-weight:600;background:transparent;border:0;color:var(--muted);padding:13px 18px;border-radius:8px;cursor:pointer}.expert-tabs button[aria-pressed=true]{background:var(--accent);color:white}.expert-tabs button:focus-visible,.expert-section summary:focus-visible{outline:3px solid #ba9c4f;outline-offset:3px}
.expert-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:24px;align-items:start}.expert-form{min-width:0}.expert-section{padding:26px;margin-bottom:18px;min-width:0}.expert-section h3{margin:0 0 12px;font-size:18px}.expert-section h4{margin:22px 0 12px}.expert-section p{line-height:1.6}.expert-section .field{margin:0 0 16px}.expert-section .field small{line-height:1.5;font-size:12px;font-weight:400;color:var(--muted)}.expert-section input,.expert-section select{width:100%;min-width:0}.expert-section .field input,.expert-section .field select{font-size:14px;padding:11px 12px}.expert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.expert-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.expert-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;margin:14px 0}.expert-check input{width:17px;height:17px;flex:0 0 17px;margin:2px 0;accent-color:var(--accent)}.expert-note{padding:12px 14px;background:var(--soft);border-left:3px solid #9ebbb0;color:#465d5e;font-size:13px;line-height:1.6;margin:12px 0 18px}.expert-add-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.expert-add-row .field{margin-bottom:0}.expert-add-row button{margin-bottom:0;white-space:nowrap}.expert-row-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:15px}.expert-row-heading h3{margin:0}.expert-row-heading .text-button{color:var(--muted);font-size:12px}.expert-labor-row{border-top:3px solid #94b2a7}.expert-form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.expert-subrow{border:1px solid var(--line);padding:16px;border-radius:8px;margin:16px 0;background:#fcfdfc}.expert-output{padding:28px;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}.expert-total{font-size:36px;font-weight:750;letter-spacing:-1px;color:var(--accent);margin:12px 0 6px;overflow-wrap:anywhere}.expert-result-caption{font-size:13px;color:var(--muted);margin:0 0 24px}.expert-totals{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:16px 0}.expert-totals>div{display:flex;justify-content:space-between;gap:16px;margin:10px 0;font-size:13px}.expert-totals strong{white-space:nowrap}.expert-breakdown{border-bottom:1px solid var(--line);padding:16px 0;font-size:13px;line-height:1.6}.expert-breakdown summary{font-weight:600;cursor:pointer}.expert-breakdown summary strong{display:block;color:var(--accent);margin-left:16px}.expert-breakdown ol,.expert-breakdown ul,.expert-result>ol{padding-left:22px;font-size:13px;line-height:1.65}.expert-breakdown li,.expert-result>ol li{margin:8px 0}.expert-breakdown .text-button{margin-top:10px;font-size:12px}.expert-breakdown details{margin-top:15px;color:var(--muted)}.expert-output-actions{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.expert-output-actions button{font-size:12px;padding:10px 13px}.expert-review{font-size:11px;color:var(--muted);line-height:1.6;margin:18px 0 0}.expert-table-wrap{overflow-x:auto;margin:12px 0}.expert-table-wrap table{font-size:11px;width:100%;border-collapse:collapse}.expert-table-wrap th,.expert-table-wrap td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.expert-table-wrap td:last-child{white-space:nowrap}.expert-sources{margin-top:28px;font-size:13px;line-height:1.65}.expert-sources summary{font-weight:600;cursor:pointer}.expert-sources li{margin:6px 0}.expert-changes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.expert-changes a{border:1px solid var(--line);background:var(--soft);padding:15px;border-radius:6px;font-weight:600;font-size:13px;text-decoration:none}.expert-case-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.expert-case{padding:24px;min-width:0}.expert-case h3{font-size:17px;margin:18px 0 10px}.expert-case p{font-size:13px;line-height:1.65}.expert-case-meta{color:var(--muted);font-size:12px!important}.expert-case details{font-size:13px;line-height:1.6;margin:18px 0}.expert-case summary{cursor:pointer;font-weight:600}.expert-case .text-button{font-size:13px}.expert-result a,.expert-sources a{overflow-wrap:anywhere}
@media(max-width:1000px){.expert-layout{grid-template-columns:minmax(0,1fr)}.expert-output{position:static;max-height:none}.expert-case-list{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.expert-intro{align-items:flex-start}.expert-intro h2{font-size:25px}.expert-intro p{font-size:13px}.expert-stamp{display:none}.expert-tabs{gap:4px}.expert-tabs button{font-size:12px;padding:12px 10px;flex:1 1 42%}.expert-grid{grid-template-columns:1fr}.expert-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.expert-section,.expert-output,.expert-case{padding:19px}.expert-total{font-size:31px}.expert-add-row{grid-template-columns:1fr}.expert-add-row button{justify-self:start}.expert-changes,.expert-case-list{grid-template-columns:1fr}.expert-totals>div{font-size:12px}.expert-form-actions .button{width:100%}}
@media print{.expert-tabs,.expert-form,.expert-output-actions,.expert-sources,.expert-intro .expert-stamp{display:none!important}.expert-layout{display:block}.expert-output{position:static;max-height:none;overflow:visible;border:0;padding:0}.expert-total{font-size:26px}}
