.support-direct-page { width:min(100%,1020px); margin:0 auto; padding:24px 20px 28px; color:#12223f; }
.support-direct-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.support-direct-header-brand { display:flex; align-items:center; gap:14px; }
.support-direct-brandmark,.support-direct-avatar { display:grid; place-items:center; flex:none; color:white; background:linear-gradient(145deg,#3b82f6,#725cff); font-weight:800; }
.support-direct-brandmark { width:48px; height:48px; border-radius:15px; font-size:18px; box-shadow:0 8px 22px #5067c82b; }
.support-direct-header h1 { margin:0; font-size:25px; line-height:1.15; }
.support-direct-header p { margin:4px 0 0; color:#687895; font-size:13px; }
.support-direct-human { border:1px solid #d9e3f5; background:#f4f7ff; color:#3764b6; border-radius:999px; padding:7px 11px; font-size:12px; white-space:nowrap; }
.support-direct-panel,.admin-support-direct-people,.admin-support-direct-thread { display:flex; flex-direction:column; min-height:0; overflow:hidden; border:1px solid #dce5f3; border-radius:19px; background:white; box-shadow:0 12px 35px #24375a0d; }
.support-direct-panel { height:clamp(500px,calc(100dvh - 224px),780px); }
.support-direct-panel-head { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid #e9eef8; padding:15px 19px; }
.support-direct-panel-head>div { display:flex; flex-direction:column; gap:2px; }
.support-direct-panel-head strong { font-size:15px; }
.support-direct-panel-head span { color:#7a88a2; font-size:12px; }
.support-direct-refresh,.support-direct-older { border:1px solid #d9e4f7; border-radius:10px; padding:8px 11px; background:#fff; color:#3b71d6; font:inherit; font-size:12px; cursor:pointer; }
.support-direct-list { min-height:0; flex:1; display:flex; flex-direction:column; gap:12px; overflow:auto; padding:20px; overscroll-behavior:contain; }
.support-direct-older { align-self:center; }
.support-direct-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; flex:1; min-height:100px; padding:20px; text-align:center; color:#7887a2; font-size:13px; }
.support-direct-empty strong { color:#1c3155; font-size:17px; }
.support-direct-message { display:flex; align-items:flex-end; gap:8px; max-width:78%; }
.support-direct-message.mine { align-self:flex-end; flex-direction:row-reverse; }
.support-direct-message.team { align-self:flex-start; }
.support-direct-avatar { width:28px; height:28px; border-radius:10px; font-size:10px; }
.support-direct-message-content { min-width:0; display:flex; flex-direction:column; gap:4px; }
.support-direct-message.mine .support-direct-message-content { align-items:flex-end; }
.support-direct-bubble { white-space:pre-wrap; overflow-wrap:anywhere; padding:11px 14px; border:1px solid #e3eaf5; border-radius:15px 15px 15px 4px; background:#f5f7fb; color:#1b2c49; font-size:13px; line-height:1.5; }
.support-direct-message.mine .support-direct-bubble { background:#e9f1ff; border-color:#cddfff; border-radius:15px 15px 4px 15px; }
.support-direct-message-content small { color:#8c9ab0; font-size:10px; }
.support-direct-error { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 18px; padding:9px 11px; border:1px solid #ffc7c5; border-radius:9px; background:#fff5f4; color:#a23531; font-size:12px; }
.support-direct-error button { border:0; background:none; color:#a23531; font-weight:700; cursor:pointer; }
.support-direct-file-list { display:flex; flex-wrap:wrap; gap:6px; padding:8px 17px 0; }
.support-direct-file { display:inline-flex; gap:7px; align-items:center; max-width:100%; border:1px solid #dce5f3; border-radius:8px; padding:6px 8px; background:#f8faff; color:#3d5275; font-size:11px; }
.support-direct-file button { border:0; background:none; color:#73829e; cursor:pointer; }
.support-direct-compose { display:flex; align-items:end; gap:9px; padding:13px 17px; border-top:1px solid #e9eef8; }
.support-direct-compose textarea { display:block; min-height:40px; max-height:145px; flex:1; resize:vertical; padding:10px 12px; border:1px solid #dce5f3; border-radius:10px; background:#f9fbff; color:#1a2d4e; font:inherit; font-size:14px; line-height:1.35; }
.support-direct-compose textarea:focus { outline:2px solid #d7e5ff; border-color:#7ca8f8; }
.support-direct-attach { flex:none; width:40px; height:40px; border:1px solid #dce5f3; border-radius:10px; background:#f7faff; font-size:17px; cursor:pointer; }
.support-direct-send { flex:none; min-height:40px; padding:0 17px; border:0; border-radius:10px; background:#3b82f6; color:#fff; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.support-direct-send:disabled { opacity:.55; cursor:default; }
.admin-support-direct-page { max-width:1520px; }
.admin-support-direct-grid { display:grid; grid-template-columns:minmax(280px,350px) minmax(0,1fr); gap:14px; height:clamp(560px,calc(100dvh - 230px),920px); margin-top:17px; }
.admin-support-direct-tools { display:flex; gap:7px; padding:13px; border-bottom:1px solid #edf1f8; }
.admin-support-direct-tools input { min-width:0; flex:1; padding:9px 10px; border:1px solid #dce5f3; border-radius:9px; font-size:12px; }
.admin-support-direct-tools button { border:1px solid #dce5f3; border-radius:9px; padding:8px; background:#fff; color:#536681; font-size:11px; cursor:pointer; }
.admin-support-direct-tools button.active { color:#205fb6; background:#e8f1ff; border-color:#8cb5f4; }
.admin-support-direct-count { padding:8px 15px; color:#8b99ad; font-size:11px; }
.admin-support-direct-people-list { flex:1; min-height:0; overflow:auto; }
.admin-support-direct-person { display:flex; align-items:flex-start; width:100%; gap:10px; border:0; border-bottom:1px solid #eff2f8; background:white; padding:13px; text-align:left; cursor:pointer; }
.admin-support-direct-person:hover,.admin-support-direct-person.active { background:#f3f7ff; }
.admin-support-direct-person-avatar { display:grid; place-items:center; flex:none; width:37px; height:37px; border-radius:13px; background:#dfeaff; color:#376bd3; font-weight:800; }
.admin-support-direct-person-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:2px; }
.admin-support-direct-person-copy strong,.admin-support-direct-thread-head strong { font-size:13px; color:#192b49; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-support-direct-person-copy small,.admin-support-direct-thread-head small { color:#8794a8; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-support-direct-person-copy em { color:#5f718d; font-style:normal; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-support-direct-person-meta { display:flex; align-items:flex-end; flex-direction:column; gap:7px; white-space:nowrap; }
.admin-support-direct-person-meta small { color:#9aa7b9; font-size:10px; }
.admin-support-direct-person-meta b { display:grid; place-items:center; min-width:19px; height:19px; padding:0 4px; border-radius:999px; background:#3b82f6; color:#fff; font-size:10px; }
.admin-support-direct-thread-head { display:flex; align-items:center; gap:10px; padding:13px 16px; border-bottom:1px solid #edf1f8; }
.admin-support-direct-thread-head>div { display:flex; flex-direction:column; min-width:0; gap:2px; }
.admin-support-direct-back { display:none; border:0; background:none; color:#3b82f6; font-size:20px; cursor:pointer; }
html.dark-theme .support-direct-page,body.dark-theme .support-direct-page { color:#e7efff; }
html.dark-theme .support-direct-panel,html.dark-theme .admin-support-direct-people,html.dark-theme .admin-support-direct-thread,
body.dark-theme .support-direct-panel,body.dark-theme .admin-support-direct-people,body.dark-theme .admin-support-direct-thread { background:#131b2a; border-color:#2b3c58; }
html.dark-theme .support-direct-panel-head,html.dark-theme .admin-support-direct-tools,html.dark-theme .admin-support-direct-thread-head,html.dark-theme .support-direct-compose,
body.dark-theme .support-direct-panel-head,body.dark-theme .admin-support-direct-tools,body.dark-theme .admin-support-direct-thread-head,body.dark-theme .support-direct-compose { border-color:#283953; }
html.dark-theme .support-direct-bubble,body.dark-theme .support-direct-bubble { background:#202d43; border-color:#354967; color:#e7efff; }
html.dark-theme .support-direct-message.mine .support-direct-bubble,body.dark-theme .support-direct-message.mine .support-direct-bubble { background:#183b65; border-color:#28588e; }
html.dark-theme .support-direct-compose textarea,html.dark-theme .admin-support-direct-tools input,body.dark-theme .support-direct-compose textarea,body.dark-theme .admin-support-direct-tools input { background:#19263a; border-color:#344966; color:#f2f6ff; }
html.dark-theme .support-direct-attach,html.dark-theme .support-direct-refresh,html.dark-theme .support-direct-older,html.dark-theme .admin-support-direct-tools button,body.dark-theme .support-direct-attach,body.dark-theme .support-direct-refresh,body.dark-theme .support-direct-older,body.dark-theme .admin-support-direct-tools button { background:#202d43; border-color:#344966; color:#a8c8ff; }
html.dark-theme .admin-support-direct-person,body.dark-theme .admin-support-direct-person { background:#131b2a; border-color:#283953; }
html.dark-theme .admin-support-direct-person:hover,html.dark-theme .admin-support-direct-person.active,body.dark-theme .admin-support-direct-person:hover,body.dark-theme .admin-support-direct-person.active { background:#1d3050; }
html.dark-theme .admin-support-direct-person-copy strong,html.dark-theme .admin-support-direct-thread-head strong,body.dark-theme .admin-support-direct-person-copy strong,body.dark-theme .admin-support-direct-thread-head strong { color:#e7efff; }
@media(max-width:760px) {
  html.dark-theme .support-direct-page,body.dark-theme .support-direct-page { color:#12223f; }
  html.dark-theme .support-direct-panel,html.dark-theme .admin-support-direct-people,html.dark-theme .admin-support-direct-thread,body.dark-theme .support-direct-panel,body.dark-theme .admin-support-direct-people,body.dark-theme .admin-support-direct-thread { background:white; border-color:#dce5f3; }
  html.dark-theme .support-direct-bubble,body.dark-theme .support-direct-bubble { background:#f5f7fb; border-color:#e3eaf5; color:#1b2c49; }
  html.dark-theme .support-direct-message.mine .support-direct-bubble,body.dark-theme .support-direct-message.mine .support-direct-bubble { background:#e9f1ff; border-color:#cddfff; }
  html.dark-theme .support-direct-compose textarea,html.dark-theme .admin-support-direct-tools input,body.dark-theme .support-direct-compose textarea,body.dark-theme .admin-support-direct-tools input { background:#f9fbff; border-color:#dce5f3; color:#1a2d4e; }
  html.dark-theme .admin-support-direct-person,body.dark-theme .admin-support-direct-person { background:white; border-color:#eff2f8; }
  html.dark-theme .admin-support-direct-person-copy strong,html.dark-theme .admin-support-direct-thread-head strong,body.dark-theme .admin-support-direct-person-copy strong,body.dark-theme .admin-support-direct-thread-head strong { color:#192b49; }
}
@media(max-width:720px) {
  .support-direct-page { padding:12px 9px 16px; }
  .support-direct-header { align-items:flex-start; margin-bottom:12px; }
  .support-direct-header h1 { font-size:20px; }
  .support-direct-header p { max-width:230px; font-size:11px; }
  .support-direct-human { display:none; }
  .support-direct-panel { height:calc(100dvh - 155px); min-height:400px; border-radius:14px; }
  .support-direct-list { padding:13px; }
  .support-direct-message { max-width:92%; }
  .support-direct-compose { gap:6px; padding:10px; }
  .support-direct-compose textarea { font-size:16px; }
  .support-direct-send { padding:0 10px; }
  .admin-support-direct-grid { display:block; height:calc(100dvh - 195px); min-height:420px; }
  .admin-support-direct-grid .admin-support-direct-people,.admin-support-direct-grid .admin-support-direct-thread { height:100%; }
  .admin-support-direct-grid .admin-support-direct-thread { display:none; }
  .admin-support-direct-grid.show-thread .admin-support-direct-people { display:none; }
  .admin-support-direct-grid.show-thread .admin-support-direct-thread { display:flex; }
  .admin-support-direct-back { display:block; }
}
