@font-face {
  font-family: "iconfont";
  src: url("https://at.alicdn.com/t/c/font_5242872_1d1wtem0wyn.woff2?t=1791895013061") format("woff2"),
       url("https://at.alicdn.com/t/c/font_5242872_1d1wtem0wyn.woff?t=1791895013061") format("woff"),
       url("https://at.alicdn.com/t/c/font_5242872_1d1wtem0wyn.ttf?t=1791895013061") format("truetype");
}
.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.icon-zuoji:before { content: "\e615"; }
.icon-jiaohuanji:before { content: "\e600"; }

:root {
  --bg: #f7f7fb;
  --fg: #14202b;
  --muted: #7b8494;
  --soft: #efedf8;
  --soft-2: #ffffff;
  --border: #eceaf3;
  --brand: #6d28ff;
  --brand-soft: #f3eeff;
  --good: #128a4e;
  --good-soft: #e8f8ef;
  --warn: #d97706;
  --warn-soft: #fff4e5;
  --danger: #e11d48;
  --a1: #f3eeff;
  --a1t: #6d28ff;
  --a2: #e8f8ef;
  --a2t: #128a4e;
  --a3: #fff4e5;
  --a3t: #d97706;
  --side: 220px;
}
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
.app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.corner {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(20, 32, 43, 0.12);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.app.is-login .corner,
.app.is-login .contact-fab { display: none; }
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.shop-block { min-width: 0; }
.shop-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.shop { display: block; }
.hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.text-link {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.text-link.is-out { color: var(--danger); }
.account-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.record-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.record-bar[hidden] { display: none; }
.record-bar audio { flex: 1; width: 100%; min-width: 0; height: 36px; }
.record-down {
  flex: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.record-note { margin: 6px 0 0; color: var(--warn); font-size: 13px; }
.record-note:empty { display: none; }
.rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calls { margin-top: 22px; }
.sider {
  position: sticky;
  top: 0;
  flex: none;
  width: var(--side);
  height: 100vh;
  padding: 28px 16px 24px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.brand {
  margin: 0 8px 28px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1.2;
}
.nav-list { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5c6573;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.tab svg { flex: none; }
.tab.on {
  background: var(--brand-soft);
  color: var(--brand);
}
.main {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 28px 32px 88px;
}
.wrap { max-width: 1200px; margin: 0 auto; }
.view { display: none; }
.main .view.on { display: block; }

.head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.shop {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.day {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.range { position: relative; flex: none; }
.range-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.range-btn.lang-btn {
  height: 32px;
  background: var(--soft);
  color: var(--fg);
  font-weight: 650;
}
.range-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  min-width: 128px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 32, 43, 0.14);
}
.range-pop button {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}
.range-pop button.on { background: var(--brand-soft); color: var(--brand); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px 14px;
  color: inherit;
  text-align: left;
  cursor: default;
}
button.stat { cursor: pointer; }
.stat .k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.stat .k svg { color: var(--brand); flex: none; }
.stat .n {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat.lead {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}
.stat.lead .k,
.stat.lead .k svg,
.stat.lead .n { color: #fff; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}
.panel, .wire, .call-card, .set-card, .profile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.panel { padding: 4px 0 8px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}
.panel h2, .status-panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.chip {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
}
.item, .call-top {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 18px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.avatar.is-phone { background: var(--brand-soft); color: var(--brand); }
.avatar.is-phone svg { display: block; }
.a1 { background: var(--a1); color: var(--a1t); }
.a2 { background: var(--a2); color: var(--a2t); }
.a3 { background: var(--a3); color: var(--a3t); }
.who { font-size: 14px; font-weight: 700; }
.tel, .when, .what { color: var(--muted); }
.tel { margin-top: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.tel:empty { display: none; }
.who { font-variant-numeric: tabular-nums; }
.what { margin-top: 6px; font-size: 13px; line-height: 1.45; }
.when { margin-top: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.play {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.play.is-on { background: var(--brand); color: #fff; }
.dur { font-size: 12px; color: var(--muted); font-weight: 600; }

.device-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 4px 0 16px;
}
.device-card .panel-head { padding: 12px 16px 4px; }
.device-card .status-pill { position: static; }
.device-card .wire {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 8px 12px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.device-status { padding: 0 16px; }
.wire {
  position: relative;
  padding: 12px 16px 8px;
}
.wire-top { display: flex; justify-content: center; }
.wire-shot { color: var(--brand); }
.wire-shot .iconfont { font-size: 38px; line-height: 1; }
.wire-stem {
  width: 1.5px;
  height: 8px;
  margin: 0 auto -1px;
  background: var(--brand);
}
.wire-phones {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}
.handset {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.handset::before,
.handset:not(:last-child)::after {
  content: "";
  position: absolute;
  background: var(--brand);
}
.handset::before {
  top: -8px;
  left: 50%;
  width: 1.5px;
  height: 8px;
  transform: translateX(-50%);
}
.handset:not(:last-child)::after {
  top: -8px;
  left: 50%;
  width: calc(100% + 8px);
  height: 1.5px;
}
.handset .iconfont { font-size: 26px; color: var(--brand); }
.phone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.page-title { margin: 0 0 18px; font-size: 22px; font-weight: 750; }
.call-line { display: flex; align-items: baseline; }
.call-line b { font-size: 22px; font-weight: 750; letter-spacing: -0.04em; }
.call-card { padding: 16px 18px 0; margin-bottom: 12px; overflow: hidden; }
.call-card .call-top { padding: 0; }
.analysis {
  margin: 14px 0 0;
  padding: 2px 0 2px 14px;
  border: 0;
  border-left: 3px solid var(--warn);
  border-radius: 0;
  background: transparent;
}
.call-card:has(.time-tag.is-done) .analysis {
  border-left-color: var(--good);
}
.call-card:has(.time-tag.is-xfer) .analysis {
  border-left-color: var(--brand);
}
.call-card .analysis h3 { display: none; }
.analysis h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--warn);
}
.call-card:has(.time-tag.is-done) .analysis h3 { color: var(--good); }
.call-card:has(.time-tag.is-xfer) .analysis h3 { color: var(--brand); }
.fact {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  align-items: start;
}
.fact dt { margin: 0; color: var(--muted); font-weight: 500; }
.fact dd { margin: 0; }
.call-card .analysis .fact:first-child { display: block; }
.call-card .analysis .fact:first-child dt {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.call-card .analysis .fact:first-child dd {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.call-card .analysis .fact:not(:first-child) dt {
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
.call-card:has(.time-tag.is-done) .analysis .fact:not(:first-child) dt { color: var(--good); }
.call-card:has(.time-tag.is-xfer) .analysis .fact:not(:first-child) dt { color: var(--brand); }
.call-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.time-main { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.time-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.time-tag {
  margin-left: auto;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}
.time-tag.is-done { background: var(--good-soft); color: var(--good); }
.time-tag.is-xfer { background: var(--brand-soft); color: var(--brand); }

.settings { max-width: 640px; }
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.profile-ava {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.profile-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 18px;
  font-weight: 750;
  color: var(--fg);
  cursor: pointer;
}
.profile-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.shop-input {
  width: 280px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 16px;
}
.set-menu { display: flex; flex-direction: column; gap: 14px; }
.set-card { padding: 4px 8px; }
.status-panel { padding: 16px 18px 16px; }
.status-panel .panel-head { padding: 0 0 8px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  font-size: 15px;
}
.row b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}
.row b i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}
.pause {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.pause.is-off { background: var(--brand); }
.menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 16px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.menu-row .grow { flex: 1; }
.menu-row .ico { color: var(--brand); display: grid; place-items: center; }
.chev { color: var(--muted); font-size: 18px; }
.menu-row.logout, .menu-row.logout .ico { color: var(--danger); }
#langMenu { z-index: 5; }

.login-view { display: none; }
.app.is-login { display: block; overflow: auto; }
.app.is-login .sider,
.app.is-login .main { display: none; }
.app.is-login .login-view.on {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.login {
  width: min(420px, 100%);
  padding: 36px 32px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(20, 32, 43, 0.06);
}
.login-brand {
  margin: 0 0 18px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--brand);
}
.login-corner { display: none; }
.app.is-login .login-corner {
  display: block;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 40;
}
.login-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 32, 43, 0.06);
}
.login-lang-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 32, 43, 0.12);
}
.login-lang-pop[hidden] { display: none; }
.login-lang-pop button {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.login-lang-pop button.on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.login-field { margin-bottom: 14px; }
.login-field label {
  display: block;
  margin: 0 0 6px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.login-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
}
.login-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.login-btn {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.is-clickable { cursor: pointer; }
.item.is-clickable:hover,
.call-card.is-clickable:hover {
  background: color-mix(in srgb, var(--brand-soft) 55%, #fff);
}
.item.is-clickable:focus-visible,
.call-card.is-clickable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: -2px;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 32, 43, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(1120px, 86vw);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px rgba(20, 32, 43, 0.12);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
}
.drawer-dialog {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 12px 8px 0 16px;
}
.drawer-dialog-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
}
.drawer-dialog-head .record-bar {
  flex: 1 1 auto;
  min-width: 0;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
}
.drawer-close:hover { color: var(--fg); }
.drawer-who {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.drawer-id { min-width: 0; }
.drawer-who .who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.drawer-tools button:not(.drawer-close) {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.drawer-tools button:disabled {
  opacity: 0.35;
  cursor: default;
}
.drawer-who .time-tag { margin-left: 0; }
.drawer-summary {
  min-height: 0;
  margin: 0;
  padding: 18px 20px 24px;
  overflow: auto;
  border-radius: 0;
  background: var(--brand-soft);
  border: 0;
  border-right: 1px solid var(--border);
}
.drawer-summary.is-todo {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 28%, #fff);
}
.drawer-summary.is-done {
  background: var(--good-soft);
  border-color: color-mix(in srgb, var(--good) 24%, #fff);
}
.drawer-summary.is-xfer {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 22%, #fff);
}
.drawer-summary .drawer-title {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.drawer-summary.is-todo .drawer-title { color: var(--warn); }
.drawer-summary.is-done .drawer-title { color: var(--good); }
.summary-intent {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.summary-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
}
.summary-row b {
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
.drawer-summary.is-todo .summary-row b { color: var(--warn); }
.drawer-summary.is-done .summary-row b { color: var(--good); }
.drawer-title {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.drawer-chat-label {
  flex: none;
  margin: 0;
  padding: 0;
  background: #fff;
  white-space: nowrap;
}
.drawer-chat {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 12px 4px 24px 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.msg {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.msg-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  column-gap: 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.msg-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
}
.msg.is-customer .msg-ava { grid-column: 1; grid-row: 1; background: #e7edf6; color: #3d4d66; }
.msg.is-ai .msg-ava { grid-column: 3; grid-row: 1; background: var(--brand-soft); color: var(--brand); }
.msg.is-customer .msg-ava svg { width: 20px; height: 20px; }
.msg.is-ai .msg-ava svg { width: 22px; height: 22px; }
.msg-ava svg { display: block; }
.msg-body {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}
.msg.is-customer .msg-body { justify-self: start; }
.msg.is-ai .msg-body { justify-self: end; }
.bubble {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.msg.is-customer .bubble {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--fg);
  border-top-left-radius: 4px;
}
.msg.is-ai .bubble {
  background: var(--brand);
  color: #fff;
  border-top-right-radius: 4px;
}
.msg time {
  position: absolute;
  top: calc(100% + 2px);
  opacity: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.msg.is-customer time { left: 2px; }
.msg.is-ai time { right: 2px; }
.msg:hover time { opacity: 1; }
.app.is-login .drawer-mask,
.app.is-login .drawer { display: none; }
body.drawer-open { overflow: hidden; }
body.drawer-open .main { overflow: hidden; }
