
/* R64 — compact desktop composition, preserving the application's existing right rail and top header */
body.inbox-page{background:#090e1f;color:#edf0ff}
body.inbox-page main{padding:10px 12px 6px;min-width:0}
body.inbox-page main>header{margin:0 0 8px;padding:8px 12px;min-height:52px}
body.inbox-page #view{min-height:0;overflow:hidden}
body.inbox-page .stats{display:none!important}
body.inbox-page .workspace-footer{display:none!important}
body.inbox-page .qw64-categories{height:42px;flex:none;display:flex;align-items:center;gap:0;margin:0 0 8px;background:#141b31;border:1px solid #303a59;border-radius:9px;overflow:hidden;direction:rtl}
.qw64-categories button{height:100%;padding:0 19px;border:0;border-left:1px solid #303a59;border-radius:0;background:transparent;color:#cbd2ed;font-family:inherit;font-size:13px;font-weight:600;white-space:nowrap}
.qw64-categories button.active{background:linear-gradient(120deg,#6942d5,#8a5cf5);color:#fff;box-shadow:inset 0 -2px #c2aaff}
body.inbox-page .inbox.qw64-layout{height:100%;min-height:0;flex:1;display:grid!important;grid-template-columns:minmax(330px,1.02fr) minmax(390px,1.08fr) minmax(300px,.86fr);grid-template-rows:minmax(0,1fr);gap:8px;border:0;border-radius:0;background:transparent;overflow:hidden;direction:ltr}
body.inbox-page .qw64-layout>.qw64-profile,
body.inbox-page .qw64-layout>.chat,
body.inbox-page .qw64-layout>.chat-list{min-width:0;min-height:0;height:100%;max-height:none;border:1px solid #303a59;border-radius:10px;background:linear-gradient(160deg,#171e35,#10162a);overflow:hidden;direction:rtl;box-shadow:0 8px 24px #02061133}
body.inbox-page .qw64-layout>.qw64-profile{grid-column:1;grid-row:1;display:flex;flex-direction:column}
body.inbox-page .qw64-layout>.chat{grid-column:2;grid-row:1;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
body.inbox-page .qw64-layout>.chat-list{grid-column:3;grid-row:1;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid #303a59}
.qw64-pane-head{padding:9px 11px;border-bottom:1px solid #303a59;display:flex;flex-direction:column;gap:8px;flex:none}
.qw64-pane-head>b{font-size:15px}
.qw64-tabs{display:flex;gap:5px}
.qw64-tabs button{flex:1;padding:7px 5px;font-size:11px;border:1px solid #414b6c;border-radius:7px;background:#1d2540;color:#dfe4ff}
.qw64-tabs button.active{background:#744de4;color:#fff;border-color:#9a7aff}
.qw64-profile-body{padding:9px;overflow:auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:8px}
.qw64-card{background:linear-gradient(145deg,#202943,#192239);border:1px solid #3a4665;border-radius:8px;padding:10px}
.qw64-card h3{font-size:13px;margin:0 0 8px}
.qw64-person{display:flex;align-items:center;gap:9px}
.qw64-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#9470ff,#51469c);color:#fff;font-size:16px;font-weight:800;flex:none}
.qw64-name{min-width:0;flex:1}
.qw64-name b,.qw64-person b{display:block;font-size:14px}
.qw64-person small,.qw64-fields small,.qw64-card small{display:block;color:#aeb8d4;font-size:10px}
.qw64-state{font-size:10px;padding:5px 7px;border:1px solid #16886e;background:#123d38;color:#6ee2b9;border-radius:6px;white-space:nowrap}
.qw64-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 6px;margin:11px 0}
.qw64-fields>div{border-left:1px solid #424e6b;padding-left:7px;min-width:0}
.qw64-fields b{font-size:12px;overflow-wrap:anywhere}
.qw64-muted{font-size:10px;color:#aab4d0;line-height:1.8;margin:7px 0 0}
.qw64-two{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.qw64-two .qw64-card{min-width:0}
.qw64-timeline{display:flex;flex-direction:column;gap:7px}
.qw64-timeline>div{position:relative;padding-right:12px;border-right:2px solid #8060e8}
.qw64-timeline i{position:absolute;right:-5px;top:5px;width:8px;height:8px;background:#9a73ff;border-radius:50%}
.qw64-timeline b{display:block;font-size:11px}
.qw64-timeline p{font-size:10px;color:#c2c9df;margin:3px 0;line-height:1.7}
.qw64-analysis{border-color:#9268f2;background:linear-gradient(145deg,#2b2854,#1b2239)}
.qw64-analysis>p{font-size:10px;color:#cbd1e7;line-height:1.8}
.qw64-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.qw64-levels span{background:#323452;border-radius:5px;padding:6px 3px;text-align:center;font-size:9px;color:#e0e2ff}
.qw64-analysis textarea{width:100%;min-height:85px;background:#131a2e;border:1px solid #58617e;border-radius:7px;color:#fff;padding:8px;font-family:inherit;font-size:12px}
.qw64-actions{display:flex;gap:5px;margin-top:6px}
.qw64-actions button{flex:1;font-size:10px;padding:7px 5px}
.qw64-empty{display:grid;place-items:center;min-height:120px;text-align:center;color:#aab4d0;font-size:12px;padding:15px}
.qw64-list-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.qw64-list-title b{font-size:15px}
.qw64-list-title span{font-size:10px;color:#9ea9c7}
body.inbox-page .qw64-layout .chat-list .list-top{padding:9px 10px;border-bottom:1px solid #303a59;flex:none}
body.inbox-page .qw64-layout .chat-list .list-top input,
body.inbox-page .qw64-layout .chat-list .list-top select{height:36px;font-size:12px;background:#11182d;border-color:#3b4665}
.qw64-filterchips{display:flex;gap:5px;padding:8px 9px;overflow:auto;flex:none;border-bottom:1px solid #303a59}
.qw64-filterchips button{padding:6px 9px;border-radius:7px;white-space:nowrap;font-size:10px}
.qw64-filterchips button.active{background:#754de5;border-color:#9270f7;color:#fff}
body.inbox-page .qw64-layout .chat-list #conversations{flex:1;min-height:0;overflow:auto}
body.inbox-page .qw64-layout .chat-list .conversation-row{padding:10px 9px;border-radius:0;background:transparent;border-bottom:1px solid #303a59}
body.inbox-page .qw64-layout .chat-list .conversation-row.active{background:#302d60;border:1px solid #7655d8;border-radius:7px}
body.inbox-page .qw64-layout .chat-list .conversation-row b{font-size:13px}
body.inbox-page .qw64-layout .chat-list .preview{font-size:11px;margin:4px 0}
body.inbox-page .qw64-layout .chat-list .meta{font-size:9px}
body.inbox-page .qw64-layout .chat-list .toolbar{padding:5px 8px;margin:0;flex:none}
body.inbox-page .qw64-layout .chat .chat-header{padding:10px 12px;border-bottom:1px solid #303a59;background:#171e35;max-height:none;overflow:auto}
body.inbox-page .qw64-layout .chat .chat-header .row-head{align-items:center;gap:8px}
body.inbox-page .qw64-layout .chat .chat-header .row-head b{font-size:14px}
body.inbox-page .qw64-layout .chat .chat-header .meta{font-size:10px}
body.inbox-page .qw64-layout .chat .chat-actions{margin-top:7px;gap:5px}
body.inbox-page .qw64-layout .chat .chat-actions button{font-size:10px;padding:5px 8px;border-radius:7px}
body.inbox-page .qw64-layout .chat .messages{min-height:0;height:auto;overflow:auto;padding:13px 15px;background:radial-gradient(ellipse at 50% 20%,#22294a66,transparent 75%);overscroll-behavior:contain}
body.inbox-page .qw64-layout .chat .bubble{font-size:13px;line-height:1.85;padding:10px 13px;margin-bottom:10px;border-radius:9px;max-width:83%}
body.inbox-page .qw64-layout .chat .composer{min-height:60px;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;padding:8px 9px;background:#11182d;border-top:1px solid #303a59;position:relative}
body.inbox-page .qw64-layout .chat .composer textarea{min-height:42px;height:42px;max-height:92px;flex:1;min-width:0;resize:vertical;border-radius:8px;background:#151e35;border-color:#3b4665;font-size:12px;padding:8px}
body.inbox-page .qw64-layout .chat .composer button{flex:none;padding:8px 10px;font-size:11px;border-radius:8px}
body.inbox-page .qw64-layout .chat .composer .attachment{display:none}
body.inbox-page .qw64-layout .chat .composer #attach{width:37px;height:37px;padding:0;font-size:0}
body.inbox-page .qw64-layout .chat .composer #attach:after{content:'＋';font-size:18px}
body.inbox-page .qw64-layout .chat .composer #record,
body.inbox-page .qw64-layout .chat .composer #makeVoice{display:none}
body.inbox-page .qw64-layout .chat .composer [type=submit]{width:42px;height:42px;padding:0;font-size:17px}
@media(max-width:1250px){
 body.inbox-page .inbox.qw64-layout{grid-template-columns:minmax(260px,.95fr) minmax(340px,1.1fr) minmax(250px,.9fr)}
}
@media(max-width:1000px){
 body.inbox-page .inbox.qw64-layout{grid-template-columns:minmax(250px,.9fr) minmax(330px,1.1fr)}
 body.inbox-page .qw64-layout>.qw64-profile{display:none}
}
@media(max-width:700px){
 body.inbox-page{overflow:auto}
 body.inbox-page main{height:auto;min-height:100dvh}
 body.inbox-page #view{overflow:visible}
 body.inbox-page .qw64-categories{overflow:auto}
 body.inbox-page .inbox.qw64-layout{display:flex!important;flex-direction:column;height:auto;overflow:visible}
 body.inbox-page .qw64-layout>.chat-list{height:calc(100dvh - 220px);min-height:350px}
 body.inbox-page .qw64-layout>.chat{height:calc(100dvh - 145px);min-height:520px}
 body.inbox-page .qw64-layout>.qw64-profile{display:flex;height:auto;max-height:55dvh}
 body.inbox-page .qw64-layout>.chat-list,
 body.inbox-page .qw64-layout>.chat{width:100%}
}
