.cr-workspace { min-width:0; }
.cr-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.cr-heading h1 { margin:0 0 6px; font-size:24px; }
.cr-heading p { margin:0; max-width:820px; color:var(--muted); font-size:12px; line-height:1.7; }
.cr-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:16px 0; }
.cr-tabs .active { background:#dbe7d3; color:#214634; border-color:#bdceb2; }
.cr-toolbar,.cr-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.cr-toolbar { margin:14px 0; }
.cr-toolbar select,.cr-toolbar input { max-width:100%; }
.cr-panel { border:1px solid var(--line); background:var(--surface); border-radius:8px; padding:18px; margin-bottom:16px; min-width:0; }
.cr-section { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.cr-section h2,.cr-section h3 { margin:0; }
.cr-record { padding:15px 0; border-top:1px solid var(--line); min-width:0; }
.cr-record:first-child { border-top:0; }
.cr-meta { color:var(--muted); font-size:11px; line-height:1.7; overflow-wrap:anywhere; }
.cr-text { white-space:pre-wrap; font-size:12px; line-height:1.75; overflow-wrap:anywhere; }
.cr-amount { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:600; }
.cr-muted-amount { color:var(--muted); font-size:12px; }
.cr-state { display:inline-flex; align-items:center; padding:3px 7px; border:1px solid #c5d4bc; border-radius:4px; background:#edf4e6; color:#35523f; font-size:11px; white-space:normal; }
.cr-state.warning { border-color:#e5c6b8; background:#fff0e8; color:var(--danger); }
.cr-state.muted { background:#f1f2ed; border-color:var(--line); color:var(--muted); }
.cr-table-wrap { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:5px; margin:14px 0; }
.cr-table { width:100%; min-width:760px; border-collapse:collapse; font-size:12px; }
.cr-table th { color:#456b58; background:#f1f6ec; text-align:left; font-weight:600; }
.cr-table th,.cr-table td { padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.cr-table small { display:block; margin-top:5px; color:var(--muted); line-height:1.6; }
.cr-table td { max-width:460px; overflow-wrap:anywhere; }
.cr-table input,.cr-table select { min-width:100px; }
.cr-currency-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }
.cr-currency { padding:16px; border:1px solid var(--line); border-radius:6px; min-width:0; }
.cr-currency h3 { margin:0 0 12px; }
.cr-currency dl,.cr-summary-list { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 18px; font-size:12px; margin:0; }
.cr-currency dd,.cr-summary-list dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.cr-currency dt,.cr-summary-list dt { color:var(--muted); }
.cr-long summary { padding:7px 0; cursor:pointer; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.cr-long .cr-text { max-height:220px; overflow:auto; background:#fff; border:1px solid var(--line); padding:10px; border-radius:4px; }
.cr-field { display:grid; gap:6px; margin:14px 0; min-width:0; font-size:12px; }
.cr-field>span { font-weight:600; }
.cr-field input,.cr-field select,.cr-field textarea { width:100%; max-width:100%; }
.cr-field small { color:var(--muted); font-size:11px; line-height:1.65; }
.cr-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.cr-form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.cr-evidence-files { max-height:230px; overflow:auto; }
.cr-evidence-files .checkbox { display:flex; align-items:flex-start; gap:8px; overflow-wrap:anywhere; margin:9px 0; }
.cr-evidence-files .checkbox input { width:auto; flex:none; }
.cr-check { display:flex; align-items:flex-start; gap:8px; line-height:1.7; font-size:12px; margin:10px 0; }
.cr-check input { flex:none; width:16px; height:16px; margin-top:3px; }
.cr-check span { min-width:0; overflow-wrap:anywhere; }
.cr-files { padding:10px; margin:12px 0; border:1px solid var(--line); border-radius:5px; max-height:320px; overflow:auto; }
.cr-files a,.cr-actions a { color:#254d37; font-size:12px; overflow-wrap:anywhere; }
.cr-error:not(:empty) { border:1px solid #e6c5b7; border-radius:5px; background:#fff0e8; color:var(--danger); padding:12px; margin:14px 0; font-size:12px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.cr-modal { width:min(1080px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); display:flex; flex-direction:column; }
.cr-modal>form { display:flex; flex-direction:column; min-height:0; }
.cr-modal .modal-body { overflow:auto; min-width:0; min-height:0; }
.cr-modal .modal-footer { flex:none; flex-wrap:wrap; }
.cr-code { font-family:ui-monospace,monospace; font-size:10px; overflow-wrap:anywhere; }
.cr-raw { padding:12px; border:1px solid var(--line); font-size:11px; white-space:pre-wrap; overflow-wrap:anywhere; max-height:240px; overflow:auto; }
@media(max-width:540px) {
 .cr-heading { flex-direction:column; gap:10px; }
 .cr-heading h1 { font-size:21px; }
 .cr-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
 .cr-tabs button { padding:8px 5px; font-size:11px; white-space:normal; }
 .cr-panel { padding:14px; }
 .cr-currency-list,.cr-form-grid,.cr-form-row { grid-template-columns:minmax(0,1fr); }
 .cr-toolbar>* { width:100%; }
 .cr-toolbar>button { width:auto; }
 .cr-modal { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); }
 .cr-modal .modal-header,.cr-modal .modal-body,.cr-modal .modal-footer { padding:15px; }
 .cr-modal .modal-header h2 { font-size:16px; }
 .cr-modal .modal-footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .cr-modal .modal-footer button { min-width:0; white-space:normal; line-height:1.5; padding:9px; }
 .cr-modal .modal-footer .primary:last-child { grid-column:1/-1; }
}

.cr-hash { font-family:ui-monospace,monospace; font-size:10px; overflow-wrap:anywhere; }
.cr-section { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.cr-field { display:grid; gap:6px; margin:12px 0; }
.cr-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:18px; }
.cr-record h3 { font-size:15px; }
.cr-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.cr-long p { max-height:220px; overflow:auto; white-space:pre-wrap; }
.cr-secret { word-break:break-all; width:100%; }
.cr-modal { background:var(--surface,#fff); border:1px solid var(--line,#dce0d8); border-radius:9px; box-shadow:0 20px 80px #10251b40; }
.cr-modal-header,.cr-footer { padding:18px 22px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex:none; }
.cr-modal-header { border-bottom:1px solid var(--line); }
.cr-modal-header h2 { margin:0; font-size:19px; }
.cr-modal-body { padding:18px 22px; overflow:auto; min-height:0; min-width:0; }
.cr-footer { border-top:1px solid var(--line); flex-wrap:wrap; }
.cr-footer .cr-meta { margin-right:auto; }
@media(max-width:540px){.cr-modal-header,.cr-modal-body,.cr-footer{padding:14px}.cr-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cr-footer .cr-meta,.cr-footer .primary{grid-column:1/-1}.cr-footer button{white-space:normal;min-width:0}.cr-modal-header h2{font-size:16px}}
@media(max-width:540px){.cr-rows{grid-template-columns:1fr}.cr-heading{display:block}}
