.compact-order-header{padding:12px 16px 10px;background:rgba(29,36,56,.6);font-size:12px;color:#9aa3b5}.compact-order-top,.compact-counterparty,.compact-stats,.compact-order-meta,.compact-identity,.compact-order-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.compact-order-top{justify-content:space-between;gap:8px;margin-bottom:10px}.compact-counterparty{min-width:0}.compact-counterparty>strong{font-size:14px;color:#eaecef;overflow-wrap:anywhere}.compact-avatar{display:grid;place-items:center;width:32px;height:32px;background:#252e45;border-radius:6px;font-size:12px;font-weight:600;color:#eaecef}.compact-stats{gap:8px;font-size:11px}.compact-stats>span{white-space:nowrap}.compact-metric-source{margin-left:2px;color:#a9b2c4;font-size:9px;font-weight:400}.compact-stats>span+span{border-left:1px solid #2a3147;padding-left:8px}.compact-stats b,.compact-order-meta b{color:#eaecef;font-weight:500}.compact-order-links{min-width:0;justify-content:flex-end}.compact-order-meta{gap:8px;border:1px solid #2a3147;border-radius:6px;padding:7px 10px;background:rgba(11,15,25,.35)}.compact-order-meta>span{padding:2px 7px;border:1px solid #2a3147;border-radius:4px;white-space:nowrap}.compact-identity{gap:8px;flex:1 1 190px}.compact-toggle{margin-left:auto;flex-shrink:0}.compact-order-meta .touch-target{min-width:44px;min-height:32px}.compact-receipt>div{padding:4px 0;border:0}.compact-progress{margin-top:8px;color:#f0b90b;font-size:11px}.compact-progress>div{margin:3px 0}.proxy-settings{background:#171c2b;border:1px solid #2a3147;border-radius:12px;padding:24px;color:#eaecef;font-size:13px}.proxy-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.proxy-heading h2{font-size:20px;font-weight:600;margin:0 0 6px}.proxy-heading p,.proxy-hint{color:#848d9e;font-size:12px}.proxy-switch{display:flex;align-items:center;gap:9px;white-space:nowrap}.proxy-switch input{position:absolute;opacity:0; width:40px;height:22px}.proxy-switch span{width:40px;height:22px;background:#41495c;border-radius:20px;position:relative}.proxy-switch span:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}.proxy-switch input:checked+span{background:#f0b90b}.proxy-switch input:checked+span:after{transform:translateX(18px)}.proxy-switch input:focus-visible+span{outline:2px solid #f0b90b;outline-offset:3px}.proxy-switch input:disabled+span{opacity:.45}.proxy-form{display:grid;grid-template-columns:1fr 1fr;gap:22px 24px;padding:0;border:0;margin:0 0 24px;min-width:0}.proxy-form label{color:#9aa3b5;font-size:12px;display:flex;flex-direction:column;gap:7px;min-width:0}.proxy-form input:not([type=checkbox]),.proxy-form select{background:#1d2438;border:1px solid #2a3147;color:#eaecef;border-radius:6px;width:100%;min-width:0;height:42px;padding:9px 12px;font-size:13px}.proxy-form small,.proxy-feedback small,.proxy-results small{display:block;color:#737d90;font-size:11px;line-height:1.5}.proxy-password{position:relative}.proxy-password input{padding-right:60px!important}.proxy-password button{position:absolute;right:6px;top:5px;background:transparent;color:#9aa3b5;padding:6px;font-size:12px;min-height:32px}.proxy-form .proxy-clear{flex-direction:row;align-items:center;flex-wrap:wrap}.proxy-clear small{flex-basis:100%;margin-left:20px}.proxy-feedback{padding:12px 14px;border:1px solid #2a3147;border-radius:6px;background:#1d2438;margin:0 0 16px;line-height:1.7;font-size:12px}.proxy-error{color:#f88a93;border-color:#78363d}.proxy-success{color:#2ecb94;border-color:#236b52}.proxy-actions{display:flex;gap:12px;flex-wrap:wrap}.proxy-actions button{border:1px solid #3c455f;border-radius:6px;background:#1d2438;color:#eaecef;padding:10px 18px;font-size:13px;min-height:40px}.proxy-actions .proxy-primary{background:#f0b90b;color:#0b0f19;border-color:#f0b90b;font-weight:600}.proxy-actions .proxy-danger{color:#f6465d;border-color:#713341}.proxy-settings button:disabled,.proxy-settings fieldset:disabled{opacity:.5;cursor:not-allowed}.proxy-hint{margin:14px 0 24px;line-height:1.6}.proxy-results{display:grid;grid-template-columns:1fr 1fr;gap:16px}.proxy-results>div{padding:16px;border:1px solid #2a3147;border-radius:6px;background:#1d2438}.proxy-results span{display:block;font-size:12px;color:#9aa3b5}.proxy-results strong{display:block;font-size:13px;margin:6px 0}.proxy-results p{font-size:12px;margin:8px 0;color:#9aa3b5}.proxy-ok{color:#2ecb94}.proxy-bad{color:#f6465d}.proxy-modal{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:20px}.proxy-modal>div{background:#171c2b;border:1px solid #2a3147;border-radius:12px;max-width:460px;padding:24px}.proxy-modal h3{font-size:18px;margin:0 0 12px}.proxy-modal p{line-height:1.8;color:#9aa3b5;margin-bottom:20px}.proxy-settings input:focus-visible,.proxy-settings select:focus-visible,.proxy-settings button:focus-visible{outline:2px solid #f0b90b;outline-offset:2px}
@media(max-width:767px){.compact-order-header{padding:10px 12px}.compact-order-top{align-items:flex-start}.compact-order-links{justify-content:flex-start}.compact-stats{gap:6px}.compact-order-meta{gap:6px;padding:7px}.compact-order-meta>span{font-size:11px}.compact-identity{flex-basis:100%}.proxy-settings{padding:16px}.proxy-heading{gap:12px;align-items:flex-start}.proxy-heading h2{font-size:18px}.proxy-form,.proxy-results{grid-template-columns:minmax(0,1fr);gap:16px}.proxy-actions button{flex:1 1 calc(50% - 12px);min-height:44px}.proxy-form input:not([type=checkbox]),.proxy-form select{font-size:16px}.proxy-heading p{max-width:190px}}

.compact-receipt{display:flex;align-items:center;gap:6px;font-size:11px}.compact-receipt>div{display:flex;align-items:center;gap:6px;padding:0}.compact-receipt>div>div{margin:0!important}.compact-identity{flex:0 1 auto}.compact-order-meta>span{padding:2px 5px}.compact-toggle{margin-left:0}.compact-order-meta{column-gap:6px}

.proxy-settings{padding:20px}.proxy-heading{margin-bottom:18px}.proxy-form{gap:16px 24px;margin-bottom:18px}.proxy-results>div{padding:12px}.proxy-hint{margin:12px 0 18px}
/* Layout-only corrections scoped to the two changed screens. */
body:has(.chat-shell) .chat-shell{margin:-20px;height:calc(100dvh - 44px)}
@media(max-width:767px){
 body:has(.proxy-settings) .topbar,body:has(.chat-shell) .topbar{height:96px;min-height:96px;position:relative;padding:10px 12px;align-items:flex-start}
 body:has(.proxy-settings) .topbar>div:first-child,body:has(.chat-shell) .topbar>div:first-child{flex-wrap:wrap;gap:8px;padding-right:80px}
 body:has(.proxy-settings) .topbar-status,body:has(.chat-shell) .topbar-status{flex:none;white-space:nowrap;gap:7px;padding:4px 8px}
 body:has(.proxy-settings) .topbar-status>span:nth-of-type(2),body:has(.chat-shell) .topbar-status>span:nth-of-type(2),body:has(.proxy-settings) .topbar-status>span:nth-of-type(4),body:has(.chat-shell) .topbar-status>span:nth-of-type(4){display:none}
 body:has(.proxy-settings) .topbar-user,body:has(.chat-shell) .topbar-user{position:absolute;right:10px;top:12px}
 body:has(.proxy-settings) .topbar>div:first-child>details,body:has(.chat-shell) .topbar>div:first-child>details{flex-basis:100%;margin-left:44px;white-space:nowrap;font-size:11px}
 body:has(.chat-shell) .chat-shell{margin:-16px;height:calc(100dvh - 96px)}
 .proxy-settings{padding:16px}
}
@media(max-width:767px){.chat-message-pane>div:has(>.compact-order-header){max-height:50dvh;overflow:auto;flex-shrink:0}.chat-message-meta button{white-space:nowrap;flex-shrink:0}}
