.client-request-chats-page{--admin-bg:#0b0c10;--admin-surface:#101116;--admin-surface-raised:#15161b;--admin-control:#18191f;--admin-border:#292a32;--admin-border-strong:#393a44;--admin-text:#eeeef2;--admin-accent:#3943e6;--admin-radius:12px;--admin-control-radius:8px}
/* Request conversations use the same surfaces and controls as the admin dashboard. */
.client-request-chats-page .request-chats{--chat-bg:var(--admin-surface);--chat-border:var(--admin-border);--chat-text:var(--admin-text);--chat-muted:#a4a5b0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;padding:22px 0 0}
.client-request-chats-page .request-chats h1{grid-column:1;grid-row:1;margin:0;color:var(--admin-text);font-size:24px;font-weight:650;letter-spacing:-.025em;line-height:1.3}
.client-request-chats-page .request-chats-intro{grid-column:1;grid-row:2;margin:8px 0 22px;font-size:12px;line-height:1.6;color:var(--chat-muted)}
.client-request-chats-page .request-chats-toolbar{grid-column:2;grid-row:1 / 3;align-self:start;margin:0;gap:10px}
.client-request-chats-page .request-chat-retry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--admin-border-strong);border-radius:var(--admin-control-radius);background:var(--admin-surface-raised);color:#d9dae2;font-size:12px;font-weight:550}
.client-request-chats-page .request-chat-retry:hover{background:var(--admin-control);border-color:#666875;color:#fff}
.client-request-chats-page .request-chat-status{grid-column:1/-1;margin:0 0 12px;padding:10px 12px;border:1px solid #68513b;border-radius:8px;background:#211c17;color:#edc7a4;font-size:12px}
.client-request-chats-page .request-chat-status:empty{display:none}
.client-request-chats-page .request-chats-layout{grid-column:1/-1;grid-template-columns:minmax(220px,29%) minmax(0,1fr);min-height:560px;height:clamp(560px,calc(100dvh - 220px),860px);border:1px solid var(--admin-border);border-radius:var(--admin-radius);background:var(--admin-surface)}
.client-request-chats-page .request-chats-list{max-height:none;min-height:0;padding:10px;background:var(--admin-surface);border-right:1px solid var(--admin-border);scrollbar-width:thin;scrollbar-color:var(--admin-border-strong) transparent}
.client-request-chats-page .request-chat-link{position:relative;margin-bottom:5px;padding:15px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--admin-text);transition:background .15s,border-color .15s}
.client-request-chats-page .request-chat-link:hover{background:var(--admin-surface-raised);border-color:var(--admin-border)}
.client-request-chats-page .request-chat-link[aria-current]{background:#191c32;border-color:#363d78;box-shadow:inset 2px 0 var(--admin-accent)}
.client-request-chats-page .request-chat-link strong{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.client-request-chats-page .request-chat-link small{margin-top:7px;font-size:11px;line-height:1.65;color:#a4a5b0}
.client-request-chats-page .request-chat-link em{float:right;max-width:100%;margin:0 0 5px 8px;padding:3px 6px;border-radius:4px;background:var(--admin-accent);color:white;font-size:10px;font-weight:600;line-height:1.4}
.client-request-chats-page .request-chat-panel{min-height:0;padding:0;background:var(--admin-bg)}
.client-request-chats-page .request-chat-panel h2{margin:0;padding:20px 22px 8px;background:var(--admin-surface-raised);color:var(--admin-text);font-size:15px;font-weight:600;line-height:1.5}
.client-request-chats-page .request-chat-details{flex-shrink:0;max-height:140px;overflow:auto;margin:0;padding:0 22px 18px;border-bottom:1px solid var(--admin-border);background:var(--admin-surface-raised);color:#a4a5b0;font-size:12px;line-height:1.7;scrollbar-width:thin}
.client-request-chats-page .request-chat-messages{flex:1;min-height:150px;height:auto;padding:22px;gap:14px;scrollbar-width:thin;scrollbar-color:var(--admin-border-strong) transparent}
.client-request-chats-page .request-chat-message{max-width:min(85%,560px);padding:12px 14px;border:1px solid var(--admin-border);border-radius:10px 10px 10px 3px;background:var(--admin-surface-raised);color:#e4e5ec;font-size:13px;line-height:1.65}
.client-request-chats-page .request-chat-message.is-own{border-color:#363d78;border-radius:10px 10px 3px 10px;background:#1b1f3a}
.client-request-chats-page .request-chat-message small{margin-bottom:6px;color:#a4a5b0;font-size:10px;line-height:1.4}
.client-request-chats-page .request-chat-compose{flex-shrink:0;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px;margin:0;padding:16px 20px 20px;border-top:1px solid var(--admin-border);background:var(--admin-surface)}
.client-request-chats-page .request-chat-compose label{grid-column:1/-1;color:#bbbcc6;font-size:11px;font-weight:500}
.client-request-chats-page .request-chat-compose textarea{min-height:76px;max-height:180px;padding:11px 12px;border:1px solid var(--admin-border-strong);border-radius:var(--admin-control-radius);background:var(--admin-control);color:var(--admin-text);font-family:inherit;font-size:13px;line-height:1.5;resize:vertical}
.client-request-chats-page .request-chat-compose textarea::placeholder{color:#9496a3}
.client-request-chats-page .request-chat-compose button{min-height:42px;padding:0 18px;border:1px solid var(--admin-accent);border-radius:var(--admin-control-radius);background:var(--admin-accent);color:white;font-size:12px;font-weight:600}
.client-request-chats-page .request-chat-compose button:hover{background:#4751ed;border-color:#4751ed}
.client-request-chats-page .request-chat-compose button:disabled{opacity:.5;cursor:wait}
.client-request-chats-page .request-chats :is(a,button,textarea):focus-visible{outline:2px solid #969dff!important;outline-offset:3px!important}
.client-request-chats-page .request-chats-empty{padding:16px 10px;color:#a4a5b0;font-size:12px;line-height:1.8}
.client-request-chats-page .request-chats:not(.has-chat) .request-chats-layout::after{content:'Выберите заявку слева, чтобы открыть переписку';display:grid;align-content:center;justify-items:center;padding:36px;color:#a4a5b0;font-size:13px;line-height:1.8;text-align:center;background:var(--admin-bg)}
.client-request-chats-page .request-chat-return{min-height:40px;align-content:center;color:#c9cbd5;font-size:12px;text-decoration:none}
@media(max-width:1100px){.client-request-chats-page .request-chats-layout{grid-template-columns:230px minmax(0,1fr)}.client-request-chats-page .request-chat-compose{grid-template-columns:1fr}.client-request-chats-page .request-chat-compose button{justify-self:end}}
@media(max-width:760px){.client-request-chats-page .request-chats{padding-top:18px;column-gap:8px}.client-request-chats-page .request-chats h1{font-size:20px}.client-request-chats-page .request-chats-intro{grid-column:1/-1;grid-row:2;font-size:11px;margin-bottom:16px}.client-request-chats-page .request-chats-toolbar{grid-column:1/-1;grid-row:3;justify-content:space-between;width:100%;margin:0 0 12px}.client-request-chats-page .request-chat-retry{margin-left:auto;min-height:40px}.client-request-chats-page .request-chats-layout{grid-template-columns:1fr;height:auto;min-height:300px}.client-request-chats-page .request-chats-list{max-height:65dvh;border-right:0}.client-request-chats-page .request-chats:not(.has-chat) .request-chats-layout::after{display:none}.client-request-chats-page .request-chat-panel{height:clamp(480px,calc(100dvh - 190px),760px)}.client-request-chats-page .request-chat-panel h2{padding:16px 14px 6px;font-size:14px}.client-request-chats-page .request-chat-details{max-height:110px;padding:0 14px 12px;font-size:11px}.client-request-chats-page .request-chat-messages{padding:16px 12px}.client-request-chats-page .request-chat-message{max-width:92%;font-size:12px}.client-request-chats-page .request-chat-compose{padding:12px;gap:8px}.client-request-chats-page .request-chat-compose textarea{min-height:68px;font-size:16px}.client-request-chats-page .request-chat-compose button{min-height:42px}}
@media(prefers-reduced-motion:reduce){.client-request-chats-page .request-chat-link{transition:none}}

.client-request-chats-page .request-chats{padding:30px 0 48px}
.client-request-chats-page .request-chats h1{font-size:clamp(24px,3vw,34px);font-weight:600;letter-spacing:-.035em}
.client-request-chats-page .request-chats-intro{font-size:13px;margin-bottom:26px}
.client-request-chats-page .request-chats.is-empty .request-chats-layout{grid-template-columns:1fr;height:auto;min-height:0}
.client-request-chats-page .request-chats.is-empty .request-chats-layout::after{display:none}
.client-request-chats-page .request-chats.is-empty .request-chats-list{padding:0;border:0;max-height:none}
.client-request-chats-page .request-chat-empty-state{padding:42px 40px;max-width:720px}
.client-request-chats-page .request-chat-empty-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:22px;border:1px solid #333956;border-radius:12px;background:#191c2c;color:#a5adff}
.client-request-chats-page .request-chat-empty-icon svg{width:25px;height:25px}
.client-request-chats-page .request-chat-empty-state h2{margin:0 0 12px;color:#eeeeF2;font-size:22px;font-weight:600;line-height:1.3;letter-spacing:-.025em}
.client-request-chats-page .request-chat-empty-state p{max-width:520px;margin:0;color:#a4a5b0;font-size:14px;line-height:1.8}
.client-request-chats-page .request-chat-empty-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin:26px 0 0}
.client-request-chats-page .request-chat-catalog-link{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:44px;padding:0 18px;border-radius:8px;background:#3943e6;color:#fff;font-size:12px;font-weight:600;text-decoration:none}
.client-request-chats-page .request-chat-catalog-link:hover{background:#4751ed}
.client-request-chats-page .request-chat-login-link{display:inline-flex;align-items:center;min-height:44px;color:#c7c9d3;font-size:12px;text-decoration:none}
.client-request-chats-page .request-chat-login-link:hover{color:#fff;text-decoration:underline}
.client-request-chats-page .request-chat-empty-state>small{display:block;margin-top:24px;padding-top:18px;border-top:1px solid #292a32;color:#a4a5b0;font-size:11px;line-height:1.7}
@media(max-width:760px){.client-request-chats-page .request-chats{padding:22px 0 32px}.client-request-chats-page .request-chats-intro{font-size:12px;line-height:1.7}.client-request-chats-page .request-chat-empty-state{padding:28px 22px}.client-request-chats-page .request-chat-empty-state h2{font-size:20px}.client-request-chats-page .request-chat-empty-state p{font-size:13px}.client-request-chats-page .request-chat-empty-actions{gap:8px 16px;margin-top:22px}.client-request-chats-page .request-chat-empty-state>small{margin-top:18px}}
@media(max-width:380px){.client-request-chats-page .request-chat-empty-state{padding:24px 18px}.client-request-chats-page .request-chat-empty-actions{align-items:stretch;flex-direction:column}.client-request-chats-page .request-chat-login-link{justify-content:center}}

.request-chat-retry>svg{display:block;flex:none;width:18px;height:18px}
