.refund-workspace {max-width:1100px;margin:auto}
.refund-workspace header h3 {display:flex;align-items:center;gap:10px}
.refund-workspace label {display:grid;gap:7px;margin:14px 0;font-weight:600}
.refund-workspace input:not([type=checkbox]),.refund-workspace textarea,.refund-workspace select {width:100%;padding:10px 12px;border:1px solid var(--line,#cdd6d1);border-radius:8px;background:var(--paper,#fff);color:inherit;font:inherit;box-sizing:border-box}
.refund-workspace textarea {min-height:90px;resize:vertical}
.refund-workspace button {min-height:36px;margin:4px 8px 4px 0}
.refund-workspace :focus-visible {outline:3px solid #287552;outline-offset:3px}
.refund-body {border:0;margin:0;padding:0;min-width:0}
.refund-grid {display:grid;grid-template-columns:1fr 1fr;gap:16px}
.refund-concept,.refund-source-picker {padding:18px;border:1px solid var(--line,#cdd6d1);border-radius:12px;margin:18px 0;min-width:0}
.refund-source-picker {background:#f3f7f4}
.refund-list,.refund-history {list-style:none;padding:0}
.refund-list>li {display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line,#cdd6d1)}
.refund-list>li strong {flex:1}
.refund-evidence {padding-left:20px}
.refund-evidence blockquote,.refund-preserved {white-space:pre-wrap;overflow-wrap:anywhere}
.refund-evidence blockquote {margin:12px 0;padding:12px;border-left:3px solid #287552}
.refund-source-text {max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:white;padding:14px;border-radius:8px}
.refund-notice {padding:14px 18px;background:#f7f4e8;border-radius:10px;margin:18px 0}
.refund-workspace .refund-checkbox {display:flex;align-items:flex-start;font-weight:400;gap:10px}
.refund-checkbox input {margin-top:4px;min-width:18px;min-height:18px}
.refund-workspace output {display:block;padding:16px;background:#edf5ef;border-radius:8px;margin-top:16px}
.refund-simulation {margin-top:40px;padding-top:24px;border-top:1px solid var(--line,#cdd6d1)}
.refund-documents {min-width:0;overflow-wrap:anywhere}
.refund-documents pre {font:inherit}
@media(max-width:650px){.refund-grid{grid-template-columns:1fr}.refund-concept,.refund-source-picker{padding:12px}.refund-list>li{align-items:flex-start;flex-direction:column}}
.refund-finance{margin-top:28px;padding-top:22px;border-top:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
.refund-finance dl{margin:12px 0}.refund-finance dl>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--line)}
.refund-finance dt{font-weight:400}.refund-finance dd{margin:0;text-align:right;font-weight:600;flex-shrink:0}
.refund-finance-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.refund-finance .refund-finance-totals>div{display:block;padding:16px;border:1px solid var(--line);border-radius:10px}
.refund-finance-totals dd{margin-top:8px;text-align:left}
.refund-finance-operations,.refund-finance-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.refund-finance-operation,.refund-finance-facts article,.refund-finance-confirm{padding:18px;border:1px solid var(--line);border-radius:12px;min-width:0;margin:12px 0}
.refund-finance-confirm{background:var(--surface-soft)}
.refund-finance-sources a,.refund-finance code{overflow-wrap:anywhere;word-break:break-word}
.refund-finance details{margin:12px 0}.refund-finance summary{cursor:pointer}
@media(max-width:650px){.refund-finance-totals,.refund-finance-operations,.refund-finance-facts{grid-template-columns:1fr}.refund-finance dl>div{flex-wrap:wrap}.refund-finance-operation,.refund-finance-confirm{padding:12px}}

/* Connected assistant: isolated from the example dialog. */
.refund-dialog{width:min(960px,calc(100vw - 32px));max-width:none;max-height:92dvh;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--paper,#fff);color:var(--ink);overflow:auto;box-shadow:0 24px 80px #18251c33}
.refund-dialog::backdrop{background:#18211dcc;backdrop-filter:blur(3px)}
.refund-dialog .refund-workspace{padding:26px;margin:0;max-width:none}
.refund-wizard-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.refund-wizard-header h2{margin:8px 0;font-size:25px}.refund-wizard-header p{margin:4px 0;color:var(--muted)}
.refund-wizard-header>button{display:grid;place-items:center;min-width:36px;border:1px solid var(--line);border-radius:50%;background:transparent;color:inherit;flex-shrink:0}
.refund-wizard-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:22px 0}.refund-workspace .refund-wizard-steps button{margin:0;padding:10px 6px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:12px;white-space:normal}.refund-wizard-steps span{display:block;font-weight:700;margin-bottom:6px}.refund-wizard-steps [aria-current=step]{background:#edf5ef!important;border-color:#287552!important;color:#195c3e!important}.refund-wizard-steps button:disabled{opacity:.5}
.refund-wizard-help{line-height:1.6}.refund-wizard-total{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px;background:#edf5ef;border-radius:12px;margin:16px 0 24px}.refund-wizard-total strong{font-size:24px;color:#195c3e}
.refund-stage{min-height:160px}.refund-stage>details,.refund-other-actions{margin:24px 0}.refund-wizard-footer{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 26px;background:var(--paper,#fff);border-top:1px solid var(--line);z-index:2}.refund-wizard-footer p{font-size:12px;line-height:1.5;color:var(--muted);max-width:65%;margin:0}.refund-wizard-footer button{min-height:40px;white-space:normal}
.refund-response{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:12px;min-width:0;isolation:isolate}.refund-response header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}.refund-response time{color:var(--muted)}.refund-reply-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:18px 0}.refund-response details{margin:12px 0}.refund-response pre{max-height:280px;overflow:auto}.refund-attachments{display:grid;gap:12px;margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.refund-attachment{display:flex;justify-content:space-between;gap:16px;align-items:center;min-width:0}.refund-attachment>div{min-width:0}.refund-attachment strong,.refund-attachment small{display:block;overflow-wrap:anywhere}.refund-attachment small{margin-top:6px;color:var(--muted)}.refund-attachment-actions,.refund-response-actions{display:flex;flex-wrap:wrap;gap:8px;position:static}.refund-workspace .refund-attachment-actions button,.refund-workspace .refund-response-actions button{position:static;white-space:normal;max-width:100%;margin:0}.refund-response-actions{padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}
.refund-reader iframe{display:block;width:100%;height:60dvh;border:1px solid var(--line);margin-top:16px;border-radius:8px}.refund-result{padding:22px;background:#edf5ef;color:#195c3e;border-radius:12px;font-size:20px;font-weight:600}
@media(max-width:650px){.refund-dialog{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;border-radius:0;border:0}.refund-dialog .refund-workspace{padding:18px}.refund-wizard-steps{gap:4px}.refund-wizard-steps button{font-size:10px!important;padding:8px 2px!important}.refund-wizard-footer{padding:12px 18px}.refund-wizard-footer p{max-width:60%}.refund-attachment{align-items:stretch;flex-direction:column}.refund-response{padding:14px}.refund-wizard-total{flex-wrap:wrap}.refund-wizard-header h2{font-size:22px}}
