:root {
  color-scheme: dark;
  --ink: #e9edef;
  --mute: #8696a0;
  --border: #26343c;
  --green: #00a884;
  --pale: #263b39;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
  color: var(--ink);
  background: #0b141a;
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; background: #0b141a; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
[hidden] { display: none !important; }
a { color: #00c89a; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #00a884;
  outline-offset: 3px;
}
.workspace-bar {
  height: 42px;
  padding: 0 18px;
  background: #0b141a;
  border-bottom: 1px solid #26343c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aebac1;
}
.workspace-brand { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .04em; }
.workspace-brand strong { font-size: 11px; letter-spacing: .09em; color: #d9e5e8; }
.brand-mark { font-size: 14px; font-style: italic; font-weight: 800; color: #00c89a; }
.workspace-divider { height: 12px; width: 1px; background: #34434a; }
.connection { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.dot { width: 6px; height: 6px; background: #d3af62; border-radius: 50%; }
.dot.online { background: #00a884; }
.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 0;
  margin: 0;
  max-width: none;
  height: calc(100dvh - 42px);
  min-height: 0;
}
.nav-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 17px 9px 15px;
  background: #202c33;
  border-right: 1px solid #29373f;
  min-height: 0;
}
.rail-item {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #aebac1;
  background: transparent;
  flex-shrink: 0;
}
.rail-item:hover, .rail-item[aria-expanded=true] { background: #33434b; color: #f0f4f5; }
.rail-active { background: #33434b; color: #e9edef; }
.rail-item svg, .icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-spacer { flex: 1; }
.rail-profile {
  width: 33px;
  height: 33px;
  background: #005c4b;
  border: 1px solid #2d8272;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d6f0e7;
  font-weight: 750;
  font-style: italic;
  font-size: 18px;
}
.hubgrid {
  position: relative;
  display: grid;
  grid-template-columns: 370px minmax(280px, 1fr) 300px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #111b21;
}
.hubgrid.orders-hidden { grid-template-columns: 370px minmax(280px, 1fr); }
.hubgrid.orders-hidden .orders { display: none; }
.threads, .center, .orders { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; max-height: none; }
.threads { border-right: 1px solid #26343c; background: #111b21; }
.list-head {
  height: 79px;
  padding: 18px 22px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.list-head h1 { font-size: 25px; line-height: 1.15; letter-spacing: -.035em; margin: 0; color: #f1f4f6; font-weight: 700; }
.list-head p { font-size: 10px; letter-spacing: .055em; color: #8696a0; margin: 5px 0 0; }
.counter {
  padding: 3px 8px;
  min-width: 26px;
  text-align: center;
  border: 1px solid #34454d;
  background: #202c33;
  color: #bac7ce;
  font-size: 11px;
  border-radius: 20px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 13px 11px;
  padding: 0 15px;
  background: #202c33;
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 37px;
  color: #8696a0;
  flex-shrink: 0;
}
.search-box:focus-within { border-color: #00a884; }
.search-box svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.search-box input {
  border: 0;
  outline: 0 !important;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  margin: 0;
  width: 100%;
  color: #dce5e9;
  font-size: 12px;
}
.search-box input::placeholder { color: #8696a0; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; filter: grayscale(1); }
.list-filters { display: flex; align-items: center; gap: 8px; padding: 0 14px 13px; flex-shrink: 0; }
.filter-chip { background: #202c33; border: 1px solid #26363e; border-radius: 20px; padding: 6px 13px; color: #aebac1; font-size: 12px; }
.filter-chip:hover { background: #2c3c44; }
.filter-chip.active, .filter-chip[aria-pressed=true] { background: #0a332b; border-color: #145042; color: #65cba4; }
.chatlist { flex: 1; min-height: 0; overflow: auto; padding: 0; background: #111b21; }
.chatlist::-webkit-scrollbar, .messages::-webkit-scrollbar, .orderbody::-webkit-scrollbar, .people::-webkit-scrollbar { width: 5px; }
.chatlist::-webkit-scrollbar-thumb, .messages::-webkit-scrollbar-thumb, .orderbody::-webkit-scrollbar-thumb, .people::-webkit-scrollbar-thumb { background: #37464f; }
.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  padding: 12px 14px 11px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: #111b21;
  color: #e9edef;
  position: relative;
  overflow: hidden;
}
.entry::after { content: ""; position: absolute; left: 76px; right: 0; bottom: 0; border-bottom: 1px solid #202d34; }
.entry:hover { background: #202c33; }
.entry.active { background: #2a3942; }
.entry.active::after { border-color: transparent; }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  min-width: 49px;
  border-radius: 50%;
  overflow: hidden;
  background: #223c40;
  color: #a6c7c3;
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
  border: 1px solid #ffffff08;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #223c40; border-radius: 50%; display: block; }
.avatar svg { width: 27px; height: 27px; fill: currentColor; opacity: .85; }
.entry-body { display: block; flex: 1; min-width: 0; }
.entry-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; margin-bottom: 1px; }
.entry-name { font-size: 15px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e9edef; }
.entry-time { font-size: 10px; color: #8696a0; white-space: nowrap; flex-shrink: 0; font-weight: 400; }
.entry-phone { font-size: 11px; line-height: 1.6; color: #8d9fa9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-preview { font-size: 12px; line-height: 1.5; color: #a6b3ba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.entry-owner { display: inline-block; max-width: 100%; font-size: 9px; color: #6e9e8d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; color: #8696a0; font-size: 11px; }
.entry b { font-weight: 500; }
.list-foot { padding: 11px 14px; border-top: 1px solid #26343c; color: #697d88; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; flex-shrink: 0; }
.secure-dot { width: 4px; height: 4px; border-radius: 50%; background: #5d8378; }
.empty, .empty-list { padding: 24px 20px; font-size: 12px; color: #8696a0; text-align: center; }
.center {
  background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%2326333b' stroke-width='1.1' opacity='.42'%3E%3Cpath d='m21 18 9-8 10 9-4 14-14 1-8-10 7-6Zm82 92 18-10 15 13-8 20-20-3-5-20ZM63 61l9-14 9 14-7 11-11-11ZM21 116c10-16 24-3 13 7-10 11-17-2-13-7Zm100-80c0-10 16-10 16 0s-16 10-16 0ZM62 134h19m-9-9v19M102 63l10 8-10 8-10-8 10-8Z'/%3E%3Cpath d='M4 71c12 8 18-8 30 0m9 17 7 6-4 10m101-40 6 5-6 5M52 8l-6 7m25 10 6 4M4 152l12-5m78-100 4-6'/%3E%3C/svg%3E");
}
.setup { margin: auto; padding: 40px; max-width: 510px; text-align: center; }
.empty-art { width: 180px; height: 135px; margin: 0 auto 25px; color: #507369; }
.empty-art svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-art svg circle { fill: #0b141a; stroke: #00a884; }
.setup .eyebrow { color: #53766c; font-size: 10px; letter-spacing: .17em; }
.setup h2 { font-size: 25px; font-weight: 400; line-height: 1.3; margin: 12px 0; color: #d9e2e6; letter-spacing: -.02em; }
.setup p { font-size: 13px; line-height: 1.8; color: #8696a0; margin: 0; }
.empty-caption { display: block; margin-top: 42px; font-size: 10px; color: #60757f; }
.center #room { display: flex; flex: 1; min-height: 0; flex-direction: column; height: 100%; }
.roomhead { height: 75px; min-height: 75px; display: flex; align-items: center; gap: 12px; padding: 11px 21px; background: #202c33; border-bottom: 1px solid #27353e; flex-shrink: 0; }
.room-avatar { width: 45px; height: 45px; min-width: 45px; font-size: 18px; }
.room-person { min-width: 0; flex: 1; }
.room-person h2 { font-size: 15px; font-weight: 550; line-height: 1.3; letter-spacing: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipient-phone { font-size: 11px; line-height: 1.5; color: #b1c0c7; margin-top: 1px; }
.staff-name { font-size: 9px; color: #7d929c; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-context { font-size: 10px; color: #8599a3; border: 1px solid #3c4c55; border-radius: 20px; padding: 4px 9px; }
.messages { flex: 1; min-height: 0; overflow: auto; padding: 22px clamp(18px, 5vw, 75px); display: flex; flex-direction: column; gap: 6px; scroll-behavior: auto; }
.history-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:7px 12px;background:#13242b;border-bottom:1px solid #2c424a;flex-shrink:0}.history-toolbar button{padding:4px 10px;font-size:10px;color:#bcd9cf;background:#1e4038;border:1px solid #3b6458;border-radius:5px}.history-toolbar span{font-size:10px;color:#90abae}.history-toolbar .history-error{color:#e7bb85}
.message-row { display: flex; width: 100%; padding: 0; flex-shrink: 0; }
.message-row.out { justify-content: flex-end; }
.message-row .bubble, .messages>.bubble {
  position: relative;
  max-width: min(85%, 560px);
  padding: 8px 10px 5px;
  border: 0;
  border-radius: 0 8px 8px 8px;
  background: #202c33;
  color: #e9edef;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 1px #0002;
  align-self: flex-start;
}
.message-row.out .bubble, .messages>.bubble.out { background: #005c4b; border-radius: 8px 0 8px 8px; align-self: flex-end; }
.messages>.bubble.out { align-self: flex-end; }
.bubble time, .message-time { display: block; text-align: right; font-size: 9px; line-height: 1.6; color: #91a59f; margin-top: 1px; white-space: nowrap; }
.message-row:not(.out) .bubble time { color: #84969f; }
.bubble p, .message-text { margin: 0; }
.date-separator { align-self: center; border-radius: 6px; color: #a9b8bf; background: #18262e; padding: 5px 10px; margin: 11px 0 9px; font-size: 10px; box-shadow: 0 1px 2px #0003; }
.pending, .pending-message { align-self: flex-end; font-size: 11px; background: #3c3222; color: #d9bb82; border-radius: 6px; padding: 7px 10px; max-width: 85%; }
#reply-form { background: #202c33; border-top: 1px solid #26343c; padding: 11px 15px 7px; flex-shrink: 0; }
.composer-line { display: flex; align-items: flex-end; gap: 10px; }
#reply-text { background: #2a3942; border: 1px solid transparent; color: #e9edef; flex: 1; min-width: 0; width: 100%; margin: 0; padding: 11px 14px; min-height: 43px; max-height: 150px; resize: vertical; border-radius: 8px; font-size: 14px; line-height: 1.4; outline: 0; }
#reply-text::placeholder { color: #94a5af; }
#reply-text:focus { border-color: #38766b; outline: 0; }
.send-button { width: 42px; height: 43px; border: 0; border-radius: 50%; background: #00a884; color: #083d31; display: grid; place-items: center; flex-shrink: 0; }
.send-button:hover { background: #15bc96; }
.send-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mic-button { width: 38px; height: 43px; display: grid; place-items: center; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: #aebac1; padding: 8px; }
.mic-button:hover { background: #34464f; color: #d7e9e1; }
.mic-button:disabled { opacity: .35; cursor: default; }
.mic-button svg { width: 21px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.voice-recorder { border: 1px solid #3a514f; border-radius: 9px; background: #17272d; padding: 11px 13px; }
.voice-record-heading { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d5e4df; }
.voice-record-heading strong { font-size: 12px; font-weight: 500; }
.voice-record-heading time { margin-left: auto; font-variant-numeric: tabular-nums; color: #d4e6dd; }
.voice-record-limit { color: #819a99; font-size: 10px; }
.record-indicator { width: 7px; height: 7px; border-radius: 50%; background: #6c8981; flex-shrink: 0; }
.record-indicator.recording { background: #f37771; box-shadow: 0 0 0 4px #e75c5c13; }
.voice-preview { display: block; width: 100%; height: 36px; margin: 12px 0 7px; }
.voice-record-status { color: #96b1ac; font-size: 11px; line-height: 1.7; margin: 8px 0; overflow-wrap: anywhere; }
.voice-record-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.voice-record-actions button { border: 1px solid #3a5155; border-radius: 6px; background: #26393e; color: #b6cec5; padding: 6px 10px; font-size: 11px; }
.voice-record-actions button:hover { background: #344950; }
.voice-record-actions .record-stop { color: #f2c6be; border-color: #8c59514f; background: #633d392b; }
.voice-record-actions .record-send { margin-left: auto; color: #052d22; background: #00a884; border-color: #00a884; font-weight: 600; }
.voice-record-actions .record-send:hover { background: #16bd96; }
.voice-record-actions button:disabled { opacity: .45; cursor: default; }
#send-result { min-height: 13px; display: block; margin: 3px 2px 0; font-size: 10px; color: #93a8af; }
.orders { grid-column: auto; border-left: 1px solid #26343c; background: #111b21; }
.panelhead { display: flex; justify-content: space-between; align-items: center; padding: 20px 18px 17px; border-bottom: 1px solid #26343c; min-height: 64px; flex-shrink: 0; }
.panelhead h2 { font-size: 14px; font-weight: 550; margin: 0; letter-spacing: 0; }
.woo { background: #352e40; border: 1px solid #483952; color: #bda4d4; font-size: 10px; padding: 3px 7px; border-radius: 5px; line-height: 1.4; }
.contact-summary { padding: 22px 17px 19px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border-bottom: 8px solid #0b141a; flex-shrink: 0; overflow: hidden; }
.details-avatar { width: 75px; height: 75px; min-width: 75px; margin-bottom: 6px; font-size: 28px; }
.contact-summary strong { font-size: 16px; font-weight: 500; line-height: 1.4; max-width: 100%; overflow-wrap: anywhere; }
.contact-summary>span { font-size: 12px; color: #8696a0; overflow-wrap: anywhere; }
.orderbody { padding: 18px; flex: 1; min-height: 0; max-height: none; overflow: auto; }
.order-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.order-section-head .eyebrow { color: #628a7e; font-size: 9px; letter-spacing: .13em; }
.order-section-head>span { font-size: 11px; color: #8399a4; }
.orderlist { font-size: 12px; line-height: 1.65; color: #92a4ae; margin: 0; }
.orderlist>strong { color: #a8c7bb; font-size: 11px; font-weight: 500; display: block; margin-bottom: 6px; }
.order { padding: 12px 0; border-bottom: 1px solid #29363d; }
.order summary { color: #d7e4e7; font-size: 12px; font-weight: 550; cursor: pointer; list-style: none; }
.order summary::after { content: "⌄"; float: right; color: #82949e; margin-left: 5px; }
.order[open] summary::after { content: "⌃"; }
.order p { font-size: 11px; color: #91a5af; line-height: 1.6; margin: 5px 0; }
.coverage { border-top: 1px solid #26343c; padding: 13px 18px 15px; font-size: 11px; display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.coverage strong { font-size: 11px; color: #b5c7cf; font-weight: 500; }
.coverage small { font-size: 9px; color: #708996; }
.subtle { font-size: 10px; color: #00b88d; font-weight: 500; padding: 5px 0 0; background: transparent; border: 0; text-align: left; }
.drawer-overlay { position: absolute; inset: 0; z-index: 20; background: #020b11a6; border: 0; border-radius: 0; width: 100%; height: 100%; cursor: default; }
.people { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 100%); z-index: 21; overflow: auto; background: #111b21; border-right: 1px solid #31444e; box-shadow: 12px 0 40px #0004; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 20px; background: #202c33; min-height: 85px; }
.drawer-head .eyebrow { font-size: 9px; letter-spacing: .15em; color: #829d98; margin-bottom: 4px; }
.drawer-head h2 { font-size: 18px; font-weight: 500; margin: 0; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 0; color: #aebac1; font-size: 27px; border-radius: 50%; flex-shrink: 0; }
.icon-button:hover { background: #34464f; }
.person { padding: 17px 20px; border-bottom: 1px solid #26343c; font-size: 12px; }
.person.active { background: #18362e; }
.person .select-person { display: block; text-align: left; font-size: 15px; font-weight: 550; color: #e0ece8; border: 0; padding: 0 0 5px; background: transparent; }
.person strong { display: block; font-size: 12px; font-weight: 450; margin: 2px 0; color: #adbec7; }
.person small { display: block; line-height: 1.6; color: #7b939f; font-size: 11px; overflow-wrap: anywhere; }
.person em { font-style: normal; display: block; color: #8696a0; font-size: 11px; margin: 7px 0 2px; }
.person em.online { color: #5ac6a2; }
.person code { display: inline-block; background: #203b33; border: 1px solid #2b5144; border-radius: 5px; padding: 5px 9px; color: #b8dccb; font-size: 18px; letter-spacing: .11em; margin: 10px 0 3px; }
.person button:not(.select-person) { display: block; color: #00b88d; padding: 8px 0 0; background: transparent; border: 0; font-size: 11px; }
.person button.revoke { color: #cf8b7d; }
.person .pair-help { font-size: 10px; color: #89a096; }
.people details { padding: 18px 20px; border-bottom: 1px solid #26343c; font-size: 12px; color: #b5c8c9; }
.people details>summary { cursor: pointer; }
.people form { padding: 16px 0 0; background: transparent; border: 0; }
.people label { display: block; margin: 8px 0 4px; color: #a3b9c1; font-size: 11px; }
.people input, .gate input { display: block; width: 100%; margin: 0 0 8px; padding: 9px 10px; border: 1px solid #33464f; border-radius: 6px; background: #202c33; color: #e9edef; font-size: 12px; }
.primary { border: 0; border-radius: 6px; background: #00a884; color: #092d25; padding: 10px 16px; font-weight: 600; font-size: 12px; }
.people .primary { margin-top: 10px; }
.people .primary:hover, .gate .primary:hover { background: #13b78f; }
.gate { grid-column: 2; align-self: center; justify-self: center; width: min(420px, calc(100% - 48px)); padding: 40px; background: #111b21; border: 1px solid #293e48; border-radius: 12px; box-shadow: 0 20px 50px #0003; color: #b4c5ce; }
.gate-emblem { width: 45px; height: 45px; border-radius: 12px; background: #005c4b; color: #b9e3cf; display: grid; place-items: center; font-size: 26px; font-style: italic; font-weight: 800; margin-bottom: 22px; }
.gate .eyebrow { font-size: 10px; letter-spacing: .13em; color: #688e82; }
.gate h1 { font-size: 25px; font-weight: 500; color: #e9edef; margin: 8px 0 12px; }
.gate p { font-size: 12px; line-height: 1.8; color: #8da4af; margin-bottom: 24px; }
.gate form { background: transparent; padding: 0; border: 0; }
.gate label { font-size: 11px; display: block; color: #a7bdc5; margin-bottom: 6px; }
.gate input { letter-spacing: .16em; padding: 11px; font-size: 15px; }
.gate .primary { width: 100%; margin-top: 8px; }
.notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; background: #d9e6e1; color: #183a2f; box-shadow: 0 3px 16px #0005; padding: 11px 17px; border-radius: 8px; font-size: 12px; max-width: calc(100vw - 28px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.room-back { display: none; }
@media (min-width: 1700px) {
  .hubgrid { grid-template-columns: 410px minmax(320px, 1fr) 320px; }
  .hubgrid.orders-hidden { grid-template-columns: 410px minmax(320px, 1fr); }
  .entry { min-height: 93px; padding-left: 19px; padding-right: 20px; }
  .entry-name { font-size: 16px; }
  .messages { padding-left: 10%; padding-right: 10%; }
  .message-row .bubble, .messages>.bubble { font-size: 14px; }
  .list-head { height: 87px; padding-left: 26px; }
}
@media (max-width: 1250px) {
  .hubgrid { grid-template-columns: 320px minmax(280px, 1fr) 265px; }
  .hubgrid.orders-hidden { grid-template-columns: 320px minmax(280px, 1fr); }
  .messages { padding: 18px 24px; }
  .orderbody { padding: 15px; }
  .coverage { padding: 12px 15px; }
  .roomhead { padding-left: 16px; padding-right: 16px; }
  .contact-summary { padding-top: 18px; padding-bottom: 15px; }
  .details-avatar { width: 64px; height: 64px; min-width: 64px; }
}
@media (max-width: 1050px) {
  .hubgrid, .hubgrid.orders-hidden { grid-template-columns: 300px minmax(270px, 1fr); }
  .orders { position: absolute; right: 0; top: 0; bottom: 0; width: 290px; z-index: 15; box-shadow: -12px 0 35px #0005; }
  .entry { padding-left: 12px; padding-right: 12px; gap: 10px; }
  .avatar { width: 45px; height: 45px; min-width: 45px; }
  .details-avatar { width: 72px; height: 72px; min-width: 72px; }
  .entry-name { font-size: 14px; }
  .roomhead .avatar { width: 43px; height: 43px; min-width: 43px; }
  .search-box { gap: 10px; margin-left: 10px; margin-right: 10px; padding-left: 11px; }
  .setup { padding: 26px; }
  .setup h2 { font-size: 22px; }
}
@media (max-width: 720px) {
  .workspace-bar { height: 35px; padding: 0 12px; }
  .workspace-brand { gap: 7px; font-size: 9px; }
  .workspace-brand strong { font-size: 10px; }
  .workspace-divider { display: none; }
  .connection { font-size: 9px; gap: 5px; }
  .app-shell { height: calc(100dvh - 35px); grid-template-columns: 47px minmax(0, 1fr); }
  .nav-rail { padding: 14px 5px 11px; gap: 12px; }
  .rail-item { width: 34px; height: 34px; }
  .rail-item svg { width: 21px; height: 21px; }
  .rail-profile { width: 29px; height: 29px; font-size: 16px; }
  .hubgrid, .hubgrid.orders-hidden { display: block; height: 100%; min-width: 0; }
  .threads { height: 100%; width: 100%; border-right: 0; }
  .center { display: none; height: 100%; }
  .hubgrid.show-room .threads { display: none; }
  .hubgrid.show-room .center { display: flex; }
  .room-back { display: grid; margin-left: -8px; }
  .roomhead { height: 73px; min-height: 73px; padding: 9px 11px; gap: 9px; }
  .room-context { display: none; }
  .room-person h2 { font-size: 14px; }
  .recipient-phone { font-size: 10px; }
  .staff-name { font-size: 9px; }
  .roomhead .avatar { width: 39px; height: 39px; min-width: 39px; }
  .messages { padding: 13px 12px; }
  .message-row .bubble, .messages>.bubble { max-width: 92%; font-size: 13px; }
  .list-head { height: 74px; padding: 16px 18px 9px; }
  .list-head h1 { font-size: 24px; }
  .entry { min-height: 89px; padding: 13px 14px; gap: 12px; }
  .entry-name { font-size: 15px; }
  .entry .avatar { width: 49px; height: 49px; min-width: 49px; }
  .entry-phone { font-size: 11px; }
  .entry-preview { font-size: 12px; }
  .search-box { margin-left: 13px; margin-right: 13px; }
  .orders { width: min(300px, 100%); z-index: 15; }
  .people { width: min(330px, 100%); }
  #reply-form { padding: 9px 9px 5px; }
  .composer-line { gap: 7px; }
  #reply-text { font-size: 13px; padding: 10px 11px; }
  .send-button { width: 38px; height: 40px; }
  .mic-button { width: 29px; height: 40px; padding: 4px; }
  .voice-recorder { padding: 9px; }
  .voice-record-limit { display: none; }
  .voice-record-actions { gap: 5px; }
  .voice-record-actions button { padding: 7px 8px; }
  .gate { padding: 28px; width: calc(100% - 28px); }
  .gate h1 { font-size: 22px; }
  .setup { padding: 25px; }
  .empty-art { width: 140px; height: 110px; }
  .empty-caption { margin-top: 28px; }
}

.avatar-fallback { display: block; line-height: 1; }
.avatar-placeholder { width: 58%; height: 58%; fill: currentColor; opacity: .75; }
.order-empty { margin: 0; color: #92a4ae; line-height: 1.8; }
.logout-button { background: transparent; border: 1px solid #3a4b52; border-radius: 5px; color: #adc1c5; font-size: 10px; padding: 4px 8px; margin-left: 7px; }
.people select { width: 100%; margin: 0 0 8px; padding: 9px 8px; border: 1px solid #33464f; border-radius: 6px; background: #202c33; color: #e9edef; font-size: 12px; }
.people .employee-editor { padding: 11px 0; border: 0; }
.employee-editor>summary { font-size: 11px; color: #9fb8ad; cursor: pointer; }
.people .employee-editor form { padding-top: 9px; }
.employee-help { color: #78938c; font-size: 10px; line-height: 1.8; }
.permission-fields { border: 1px solid #344a49; border-radius: 6px; padding: 8px 10px; margin: 10px 0; }
.permission-fields legend { color: #9ab8ac; font-size: 10px; padding: 0 5px; }
.people .permission-option { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #b1c6bf; font-size: 11px; }
.people .permission-option input { width: 14px; height: 14px; margin: 0; accent-color: #00a884; }
.employee-save-result { display: block; margin-top: 8px; line-height: 1.7; color: #83b89f; }
.people .employee-editor .primary { border: 1px solid #2e6551; background: #193d32; border-radius: 5px; padding: 7px 10px; color: #b9dccb; }
.gate input#login-username, .gate input#login-password { letter-spacing: normal; }

.voice-player {
  width: 270px;
  max-width: 100%;
  padding: 2px 0 4px;
  white-space: normal;
}
.voice-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 8px;
}
.voice-title { font-size: 12px; font-weight: 550; color: #dbe9e5; }
.voice-duration { font-size: 11px; color: #9fb6ad; font-variant-numeric: tabular-nums; }
.voice-audio { display: block; width: 100%; min-width: 0; height: 36px; margin: 4px 0; }
.voice-load {
  border: 1px solid #5c8f8266;
  border-radius: 20px;
  background: #ffffff0a;
  color: #b9e0ce;
  font-size: 11px;
  padding: 6px 13px;
  margin: 0 0 4px;
}
.voice-load:hover { background: #ffffff14; }
.voice-load:disabled { opacity: .6; }
.voice-status { font-size: 10px; line-height: 1.6; color: #91a9a2; max-width: 260px; }
.voice-status:empty { display: none; }
.voice-status.media-error { color: #e0bb82; }
.revoke-badge {
  display: table;
  margin-bottom: 7px;
  padding: 2px 7px;
  border: 1px solid #b5a27c40;
  border-radius: 4px;
  background: #ead1a509;
  color: #d4bd95;
  font-size: 10px;
  line-height: 1.6;
  white-space: normal;
}
.revoked-message .bubble { outline: 1px dashed #b6a58330; outline-offset: -1px; }
@media (max-width: 720px) {
  .voice-player { width: 245px; }
  .voice-audio { height: 34px; }
}
.legacy-crm-entry { display: none !important; }
