:root {
  --bg:#fff;
  --surface:#fff;
  --sidebar:#f6f6f6;
  --ink:#232323;
  --muted:#707070;
  --line:#e4e4e4;
  --soft:#f4f4f4;
  --hover:#eeeeee;
  --accent:#c8462b;
  --accent-hover:#ac3821;
  --radius:8px;
  --motion-fast:150ms;
  --motion-hover:120ms;
  --motion-ease:ease-out;
  --motion-press:.96;
  --motion-dropdown-enter:250ms;
  --motion-dropdown-exit:150ms;
  --motion-modal-enter:400ms;
  --motion-modal-exit:250ms;
  --motion-shift:8px;
  --motion-toast:12px;
  --motion-menu-scale:.97;
  --motion-modal-from:.98;
  --motion-modal-to:.99
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:13px;
  line-height:1.45
}

button,input,textarea,select {
  font:inherit
}

button {
  cursor:pointer;
  border:0;
  background:none;
  color:inherit
}

a {
  color:inherit;
  text-decoration:none
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button:disabled {
  cursor:not-allowed
}

button,input,select,textarea,a,summary {
  outline-offset:3px
}

button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible {
  outline:2px solid #323232
}

h1,h2,h3,p {
  margin:0
}

h1 {
  font-size:23px;
  line-height:1.3;
  font-weight:650;
  letter-spacing:-.65px
}

h2 {
  font-size:14px;
  font-weight:600;
  letter-spacing:-.15px
}

h3 {
  font-size:13px;
  font-weight:600
}

strong,b {
  font-weight:600
}

.muted,.quiet-label {
  color:var(--muted)
}

.quiet-label {
  font-size:12px
}

.tiny {
  font-size:11px
}

.small {
  font-size:12px
}

.mono {
  font-variant-numeric:tabular-nums
}

.eyebrow {
  font-size:10px;
  letter-spacing:.5px;
  font-weight:500;
  text-transform:uppercase;
  color:var(--muted)
}

.flex {
  display:flex;
  align-items:center;
  gap:10px
}

.channel-actions {
  flex-wrap:wrap
}

.between {
  justify-content:space-between
}

.grow {
  flex:1;
  min-width:0
}

.gap6 {
  gap:6px
}

.stack {
  display:flex;
  flex-direction:column;
  gap:20px
}

.icon {
  width:17px;
  height:17px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}

.shell {
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  min-height:100dvh
}

.sidebar {
  height:100dvh;
  position:sticky;
  top:0;
  display:flex;
  flex-direction:column;
  background:var(--sidebar);
  border-right:1px solid var(--line);
  padding:25px 12px 18px
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:650;
  letter-spacing:-1px;
  padding:0 10px;
  margin-bottom:38px
}

.brandmark {
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#262626;
  color:white;
  font-size:25px;
  font-weight:600;
  padding-bottom:3px
}

.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:4px
}

.nav {
  display:flex;
  gap:11px;
  align-items:center;
  padding:10px 12px;
  border-radius:6px;
  color:#6c6c6c;
  font-size:12px;
  font-weight:500
}

.nav:hover {
  background:var(--hover)
}

.nav.active {
  background:#e7e7e7;
  color:#242424
}

.nav.active .icon {
  stroke-width:1.9
}

.nav-badge {
  margin-left:auto;
  background:#d9d9d9;
  color:#494949;
  border-radius:4px;
  padding:1px 5px;
  font-size:10px;
  font-variant-numeric:tabular-nums
}

.sidebar-bottom {
  margin-top:auto
}

.profile {
  padding:18px 10px 0;
  margin-top:18px;
  border-top:1px solid var(--line)
}

.profile strong {
  font-size:12px
}

.profile p {
  font-size:11px;
  color:var(--muted);
  margin-top:3px
}

.profile>.icon {
  width:13px;
  color:var(--muted)
}

.avatar {
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e7e7e7;
  color:#666666;
  flex-shrink:0;
  font-weight:500;
  font-size:10px
}

.main {
  min-width:0
}

.topbar {
  height:56px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
  background:var(--surface)
}

.workspace-name {
  display:flex;
  align-items:center;
  gap:10px;
  color:#565656;
  font-size:12px
}

.workspace-name .icon {
  width:12px;
  height:12px;
  color:#767676
}

.environment-label {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:11px;
  padding:5px 7px;
  border-radius:5px
}

.environment-label:hover {
  background:var(--soft)
}

.environment-label .icon {
  width:12px;
  height:12px
}

.divider {
  width:1px;
  height:18px;
  background:var(--line);
  margin:0 4px
}

.icon-btn {
  width:32px;
  height:32px;
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#717171;
  flex-shrink:0
}

.icon-btn:hover {
  background:var(--soft);
  color:var(--ink)
}

.icon-btn.plain {
  border-color:transparent;
  background:transparent
}

.icon-btn.plain:hover {
  background:var(--soft)
}

.content {
  padding:28px 30px 36px
}

.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
  min-height:34px
}

.page-actions {
  display:flex;
  align-items:center;
  gap:10px
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid #dadada;
  border-radius:6px;
  padding:8px 12px;
  font-size:12px;
  line-height:1.3;
  font-weight:500;
  color:#414141;
  background:white;
  white-space:nowrap;
  min-height:33px
}

.btn:hover {
  background:var(--soft);
  border-color:#cecece
}

.btn.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff
}

.btn.primary:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover)
}

.btn.soft,.btn.dark,.btn.danger {
  background:white;
  color:#454545;
  border-color:#dadada
}

.btn.soft:hover,.btn.dark:hover,.btn.danger:hover {
  background:var(--soft)
}

.btn.destructive {
  background:white;
  color:var(--status-bad-ink);
  border-color:var(--status-bad-ink)
}

.btn.destructive:hover {
  background:var(--status-bad-bg);
  color:var(--status-bad-ink);
  border-color:var(--status-bad-ink)
}

.btn:disabled {
  background:#f7f7f7;
  color:#767676;
  border-color:#e8e8e8
}

.btn .icon {
  width:14px;
  height:14px
}

.textlink {
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#5a5a5a;
  font-size:11px;
  font-weight:500;
  padding:0
}

.textlink:hover {
  color:#1c1c1c;
  text-decoration:underline;
  text-underline-offset:3px
}

.textlink .icon {
  width:13px;
  height:13px
}

.period {
  border:1px solid var(--line);
  padding:8px 11px;
  border-radius:6px;
  font-size:11px;
  color:#6d6d6d;
  background:white
}

.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  overflow:hidden
}

.card-pad {
  padding:22px
}

.card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:22px
}

.card-head p {
  color:var(--muted);
  font-size:12px;
  margin-top:5px
}

.count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:19px;
  height:19px;
  font-size:10px;
  color:#646464;
  background:#ededed;
  border-radius:4px;
  padding:0 5px;
  font-weight:500;
  margin-left:5px
}

.badge,.tag {
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:#f2f2f2;
  border:1px solid #e8e8e8;
  color:#696969;
  border-radius:5px;
  font-size:10px;
  font-weight:500;
  line-height:1.3;
  padding:4px 6px;
  white-space:nowrap
}

.badge.green,.badge.orange,.badge.yellow,.badge.red {
  color:#696969;
  background:#f2f2f2
}

.dot {
  height:5px;
  width:5px;
  display:inline-block;
  border-radius:50%;
  background:currentColor
}

.status-label {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  font-weight:450;
  color:#737373;
  white-space:nowrap
}

.status-label .icon {
  width:12px;
  height:12px
}

.metric-help {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  color:#767676;
  border-radius:4px
}

.metric-help:hover {
  color:#4a4a4a;
  background:#f1f1f1
}

.metric-help .icon {
  width:13px;
  height:13px
}

.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:var(--radius);
  margin-bottom:24px;
  overflow:hidden
}

.metric {
  padding:19px 22px;
  border-right:1px solid var(--line)
}

.metric:last-child {
  border-right:0
}

.metric-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:11px;
  color:#767676
}

.metric-value {
  font-size:29px;
  font-weight:550;
  letter-spacing:-1px;
  margin-top:11px;
  font-variant-numeric:tabular-nums;
  color:#272727
}

.metric-value small {
  font-size:12px;
  color:#767676;
  font-weight:400;
  letter-spacing:0
}

.incident-strip {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fbfbfb;
  padding:12px 14px;
  margin-bottom:20px;
  font-size:12px
}

.incident-strip>.icon {
  width:15px;
  height:15px;
  color:#6f6f6f
}

.incident-strip>.textlink {
  margin-left:auto
}

.relink-strip {
  flex-wrap:wrap;
  align-items:center;
  min-width:0;
  max-width:100%
}

.relink-strip>span {
  min-width:0;
  flex:1 1 8em;
  overflow-wrap:anywhere
}

.relink-strip>.btn {
  margin-left:auto;
  flex:none
}

.chat-list>.relink-strip {
  flex:none;
  margin:12px 12px 0
}

.dash-grid {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);
  gap:20px;
  margin-bottom:20px
}

.legend {
  display:flex;
  gap:13px;
  font-size:10px;
  color:#767676
}

.legend i {
  display:inline-block;
  width:7px;
  height:7px;
  background:#535353;
  margin-right:5px;
  border-radius:50%
}

.legend i.secondary {
  background:#767676
}

.chart {
  display:block;
  width:100%;
  height:218px;
  filter:grayscale(1)
}

.chart text {
  font:10px Inter,-apple-system,sans-serif;
  fill:#767676
}

.chart line {
  stroke:#ececec;
  stroke-dasharray:3 4
}

.funnel-step {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  font-size:11px
}

.funnel-step:last-child {
  margin-bottom:0
}

.funnel-step .label {
  width:91px;
  color:#737373
}

.funnel-bar {
  height:27px;
  border-radius:3px;
  background:#dddddd;
  color:#636363;
  padding:6px 9px;
  font-size:11px;
  font-variant-numeric:tabular-nums
}

.funnel-step:nth-child(3) .funnel-bar {
  background:#767676
}

.funnel-step:nth-child(4) .funnel-bar {
  background:#767676;
  color:#323232
}

.funnel-step:nth-child(5) .funnel-bar {
  background:#767676;
  color:white
}

.health-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:24px
}

.health-box {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 18px;
  border:1px solid var(--line);
  border-radius:7px
}

.health-box>span {
  font-size:11px;
  color:#767676
}

.health-box>strong {
  font-size:18px;
  font-weight:550;
  color:#323232
}

.scalev-admin {
  margin-bottom:20px
}

.scalev-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px
}

.scalev-stats b {
  display:block;
  font-size:23px;
  font-weight:550;
  letter-spacing:-.5px;
  color:#323232
}

.scalev-stats span {
  display:block;
  font-size:11px;
  color:#767676;
  margin-top:5px
}

.table-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid var(--line)
}

.table-wrap {
  overflow-x:auto
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px
}

th {
  font-weight:500;
  color:#767676;
  font-size:11px;
  padding:12px 17px;
  background:#f8f8f8;
  border-bottom:1px solid var(--line);
  white-space:nowrap
}

td {
  padding:17px;
  border-bottom:1px solid #e9e9e9;
  vertical-align:middle;
  color:#6a6a6a
}

td strong {
  color:#333333;
  font-weight:500
}

tr:last-child td {
  border-bottom:0
}

tbody tr:hover {
  background:#fafafa
}

.cell-meta {
  display:block;
  font-size:10px;
  color:#767676;
  margin-top:5px;
  line-height:1.6
}

.cell-product {
  display:block;
  font-size:12px;
  color:#434343;
  min-width:170px;
  max-width:290px;
  line-height:1.6
}

.row-link {
  font-size:12px;
  font-weight:500;
  padding:0;
  color:#393939;
  text-align:left
}

.row-link:hover {
  text-decoration:underline;
  text-underline-offset:3px
}

.order-table-card {
  border-radius:7px
}

.source-order-table td:nth-child(2) {
  min-width:235px;
  max-width:330px
}

.source-order-table td:first-child {
  min-width:180px
}

.source-page-name {
  font-size:11px
}

.toolbar {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px
}

.search {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
  padding:8px 10px;
  color:#767676
}

.search .icon {
  width:14px;
  height:14px
}

.search input {
  border:0;
  outline:none;
  background:transparent;
  width:100%;
  color:#434343;
  font-size:12px;
  min-width:0
}

.search input::placeholder {
  color:#767676
}

.toolbar .search {
  width:280px;
  max-width:100%
}

.toolbar select {
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 28px 8px 10px;
  background:white;
  color:#767676;
  font-size:11px;
  max-width:230px
}

.toolbar-count {
  margin-left:auto;
  font-size:11px;
  color:#767676;
  white-space:nowrap
}

.filter-label {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 10px;
  color:#767676;
  font-size:11px
}

.filter-label .icon {
  width:13px;
  height:13px
}

.tabs {
  display:flex;
  gap:22px;
  border-bottom:1px solid var(--line)
}

.tab {
  font-size:12px;
  color:#767676;
  padding:12px 0;
  position:relative;
  display:inline-flex;
  gap:3px;
  align-items:center;
  white-space:nowrap
}

.tab.active {
  color:#373737;
  font-weight:550
}

.tab.active:after {
  content:'';
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:2px;
  background:#4a4a4a
}

.section-tabs {
  margin-bottom:22px
}

.order-tabs {
  margin-top:-10px
}

.demo-clock {
  font-size:11px;
  color:#767676;
  font-variant-numeric:tabular-nums
}

.action-menu {
  position:relative;
  flex-shrink:0
}

.action-menu>summary {
  width:32px;
  height:32px;
  border:1px solid var(--line);
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  list-style:none;
  color:#767676;
  cursor:pointer
}

.action-menu>summary::-webkit-details-marker {
  display:none
}

.action-menu>summary:hover {
  background:var(--soft)
}

.action-menu>div {
  position:absolute;
  right:0;
  top:39px;
  min-width:210px;
  background:white;
  border:1px solid var(--line);
  border-radius:7px;
  box-shadow:0 8px 25px #36363613;
  padding:5px;
  z-index:30
}

.action-menu>div>button,.action-menu>div>a {
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  width:100%;
  padding:10px;
  font-size:12px;
  color:#656565;
  border-radius:4px
}

.action-menu>div>button:hover,.action-menu>div>a:hover {
  background:var(--soft)
}

.action-menu .icon {
  width:15px;
  height:15px
}

.channel-strip {
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:18px
}

.channel-chip {
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 12px;
  background:white;
  min-width:0;
  flex:1;
  color:#767676;
  font-size:11px
}

.channel-chip:hover {
  background:#f6f6f6
}

.channel-chip.selected {
  border-color:#767676;
  background:#f1f1f1;
  color:#4f4f4f
}

.channel-state .icon {
  width:12px;
  height:12px;
  color:#767676
}

.inbox-area {
  display:grid;
  grid-template-columns:250px minmax(340px,1fr) 245px;
  height:calc(100dvh - 218px);
  min-height:560px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:white
}

.chat-list {
  border-right:1px solid var(--line);
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden
}

.list-head {
  padding:18px 15px 11px
}

.list-head h2 {
  font-size:12px
}

.list-head .search {
  margin-top:14px;
  background:#f9f9f9
}

.list-tabs {
  padding:0 15px 1px;
  gap:12px;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none
}

.list-tabs::-webkit-scrollbar {
  display:none
}

.list-tabs .tab {
  font-size:11px;
  padding:10px 0;
  flex-shrink:0
}

.chat-items {
  overflow:auto;
  min-height:0;
  flex:1
}

.chat-item {
  display:flex;
  gap:9px;
  align-items:flex-start;
  width:100%;
  padding:16px 14px;
  text-align:left;
  border-bottom:1px solid #eaeaea
}

.chat-item:hover {
  background:#f7f7f7
}

.chat-item.active {
  background:#f0f0f0
}

.chat-name {
  font-size:11px;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:130px
}

.chat-time {
  font-size:9px;
  color:#767676;
  white-space:nowrap
}

.chat-preview {
  font-size:10px;
  color:#767676;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin:6px 0 8px;
  line-height:1.7
}

.chat-item .status-label {
  font-size:9px;
  gap:4px
}

.chat-item .status-label .icon {
  width:10px;
  height:10px
}

.channel-name {
  font-size:9px;
  color:#767676;
  white-space:nowrap
}

.chat-main {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  background:#fdfdfd
}

.chat-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  background:white;
  flex-shrink:0
}

.chat-header h3 {
  font-size:12px
}

.chat-header p {
  font-size:10px;
  color:#767676;
  margin-top:4px
}

.chat-header .btn {
  font-size:10px;
  padding:7px 9px
}

.buyer-toggle {
  display:none
}

.chat-context-banner {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  padding:8px 18px;
  color:#767676;
  background:#f7f7f7;
  border-bottom:1px solid #e3e3e3;
  flex-shrink:0
}

.chat-context-banner .icon {
  width:12px;
  height:12px
}

.order-banner {
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px 18px;
  width:100%;
  background:white;
  border-bottom:1px solid var(--line);
  text-align:left;
  flex-shrink:0;
  color:#767676;
  font-size:10px
}

.order-banner>span:first-of-type {
  flex:1
}

.order-banner small {
  display:block;
  font-size:10px;
  color:#767676;
  margin-top:3px;
  max-width:250px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.order-banner>.icon {
  width:14px;
  height:14px
}

.messages {
  padding:18px 22px;
  overflow:auto;
  min-height:150px;
  flex:1
}

.date-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:9px;
  color:#767676;
  margin-bottom:20px
}

.date-label .textlink {
  font-size:9px;
  color:#767676
}

.message {
  max-width:87%;
  margin-bottom:19px
}

.message.ai,.message.cs {
  margin-left:auto
}

.message-label {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:9px;
  color:#767676;
  margin-bottom:5px
}

.message-label .icon {
  width:10px;
  height:10px
}

.ai .message-label,.cs .message-label {
  justify-content:flex-end
}

.bubble {
  border:1px solid #e2e2e2;
  background:white;
  border-radius:2px 8px 8px 8px;
  padding:11px 13px;
  font-size:11px;
  line-height:1.85;
  color:#555555;
  white-space:pre-line
}

.ai .bubble,.cs .bubble {
  background:#eaeaea;
  border-color:#dcdcdc;
  border-radius:8px 2px 8px 8px
}

.message-time {
  display:block;
  margin-top:5px;
  font-size:8px;
  color:#767676;
  text-align:right
}

.ai-recommendation {
  margin:0 14px 12px;
  border:1px solid #d2d2d2;
  border-radius:7px;
  padding:13px 14px;
  background:white;
  flex-shrink:0
}

.draft-label {
  font-size:10px;
  font-weight:550;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#767676
}

.draft-label .icon {
  width:13px;
  height:13px
}

.ai-recommendation p {
  font-size:11px;
  line-height:1.85;
  color:#6e6e6e;
  margin:10px 0 12px
}

.draft-actions {
  display:flex;
  justify-content:flex-end;
  gap:7px
}

.draft-actions .btn {
  font-size:10px;
  padding:6px 10px;
  min-height:29px
}

.ai-recommendation .textlink {
  font-size:10px
}

.composer {
  background:white;
  padding:12px 14px;
  border-top:1px solid var(--line);
  flex-shrink:0
}

.composer-box {
  border:1px solid #d8d8d8;
  border-radius:7px;
  padding:10px 11px
}

.composer textarea {
  width:100%;
  min-height:34px;
  resize:vertical;
  max-height:130px;
  border:0;
  outline:none;
  background:transparent;
  color:#6a6a6a;
  font-size:11px
}

.composer textarea::placeholder {
  color:#767676
}

.composer-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}

.composer-footer .btn {
  font-size:10px;
  min-height:29px;
  padding:6px 10px
}

.composer-tools {
  display:flex;
  gap:9px;
  color:#767676
}

.composer-tools button {
  padding:2px
}

.composer-tools .icon {
  width:15px;
  height:15px
}

.buyer-panel {
  border-left:1px solid var(--line);
  overflow:auto;
  min-height:0;
  background:white
}

.buyer-top {
  padding:19px 17px 16px;
  border-bottom:1px solid var(--line)
}

.buyer-top h2 {
  font-size:12px
}

.buyer-top p {
  font-size:10px;
  color:#767676;
  margin-top:8px
}

.buyer-top .tag {
  font-size:8px;
  padding:3px 5px;
  max-width:125px;
  white-space:normal;
  text-align:right
}

.buyer-section {
  padding:17px;
  border-bottom:1px solid var(--line)
}

.buyer-section>summary {
  font-size:11px;
  font-weight:550;
  color:#727272;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  cursor:pointer;
  list-style:none
}

.buyer-section>summary::-webkit-details-marker {
  display:none
}

.buyer-section>summary:after {
  content:'⌄';
  font-size:13px;
  font-weight:400;
  color:#767676
}

.buyer-section[open]>summary:after {
  rotate:180deg
}

.buyer-section>summary .quiet-label {
  font-size:8px;
  margin-left:auto;
  font-weight:400
}

.buyer-section .facts {
  margin-top:14px
}

.facts {
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:10px 12px;
  font-size:11px;
  line-height:1.65;
  margin:0
}

.facts dt {
  color:#767676
}

.facts dd {
  margin:0;
  color:#696969;
  overflow-wrap:anywhere
}

.buyer-section .facts {
  grid-template-columns:73px minmax(0,1fr);
  gap:9px 8px;
  font-size:10px
}

.order-product-name {
  font-size:11px;
  line-height:1.75;
  color:#767676;
  margin-top:14px
}

.address-status {
  display:flex;
  align-items:flex-start;
  gap:6px;
  font-size:10px;
  line-height:1.7;
  color:#767676;
  margin:12px 0
}

.address-status .icon {
  width:12px;
  height:12px;
  margin-top:2px
}

.summary {
  font-size:12px;
  line-height:1.9;
  color:#767676
}

.buyer-section .summary {
  font-size:10px;
  margin:12px 0
}

.product-mini {
  display:flex;
  gap:9px;
  align-items:center;
  text-align:left;
  padding:0;
  margin:15px 0
}

.product-art {
  width:41px;
  height:45px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#f0f0f0
}

.product-art svg {
  filter:grayscale(1)
}

.product-mini strong {
  font-size:10px;
  display:block;
  margin-bottom:5px;
  line-height:1.6
}

.product-mini p {
  font-size:10px;
  color:#767676
}

.product-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}

.product-card {
  padding:0;
  text-align:left;
  width:100%;
  min-width:0;
  border-radius:7px
}

.product-card:hover {
  border-color:#767676
}

.product-visual {
  height:145px;
  display:grid;
  place-items:center;
  background:#ebebeb
}

.product-visual svg {
  width:65px;
  height:83px;
  filter:grayscale(1);
  opacity:.85
}

.product-info {
  padding:16px;
  min-width:0
}

.product-info h3 {
  font-size:12px;
  margin:8px 0 10px;
  line-height:1.6;
  font-weight:550;
  overflow-wrap:anywhere
}

.product-price {
  font-size:12px;
  font-weight:550;
  color:#696969
}

.product-footer {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
  font-size:10px;
  color:#767676;
  border-top:1px solid var(--line);
  padding-top:13px;
  margin-top:16px
}

.product-version {
  margin-left:auto
}

.pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:22px;
  font-size:11px;
  color:#767676
}

.channel-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}

.channel-card {
  padding:23px
}

.channel-icon {
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:7px;
  display:inline-grid;
  place-items:center;
  color:#767676;
  background:white
}

.channel-card h2 {
  font-size:16px;
  font-weight:550;
  margin:18px 0 6px
}

.channel-number {
  font-size:12px;
  color:#767676
}

.channel-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:19px 0;
  margin:22px 0 16px
}

.channel-stats strong {
  display:block;
  font-size:22px;
  font-weight:500;
  color:#6d6d6d
}

.channel-stats small {
  display:block;
  font-size:10px;
  color:#767676;
  margin-top:6px
}

.channel-meta {
  font-size:11px;
  color:#767676;
  margin-bottom:20px
}

.strategy-grid {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:20px
}

.experiment-scope {
  display:flex;
  gap:20px;
  color:#767676;
  font-size:11px;
  margin-top:-5px;
  margin-bottom:20px
}

.comparison {
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
  margin:20px 0
}

.comparison>div {
  padding:20px
}

.comparison>div+div {
  border-left:1px solid var(--line)
}

.comparison strong {
  display:block;
  font-size:31px;
  font-weight:500;
  letter-spacing:-1px;
  color:#6e6e6e;
  margin:15px 0 5px
}

.comparison p {
  font-size:11px;
  color:#767676
}

.comparison .quiet-label {
  font-size:11px
}

.experiment-result {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:24px
}

.experiment-result strong {
  font-size:12px;
  font-weight:500;
  color:#747474
}

.experiment-result>span {
  font-size:11px;
  color:#767676;
  display:flex;
  align-items:center;
  gap:5px
}

.experiment-result .icon {
  width:13px;
  height:13px
}

.strategy-steps {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:24px;
  padding:8px 0
}

.strategy-steps>div {
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 0;
  font-size:12px;
  color:#767676
}

.strategy-steps>div>span {
  width:23px;
  height:23px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f1f1f1;
  font-size:10px;
  color:#767676
}

.objection-row {
  margin:18px 0;
  font-size:11px;
  color:#767676
}

.objection-row:last-child {
  margin-bottom:0
}

.progress {
  height:5px;
  border-radius:5px;
  background:#ededed;
  overflow:hidden;
  margin-top:10px
}

.progress i {
  display:block;
  height:100%;
  background:#767676;
  border-radius:5px
}

.quote {
  margin:10px 0 23px;
  font-size:15px;
  line-height:1.8;
  color:#767676;
  letter-spacing:-.15px
}

.architecture {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:20px;
  align-items:start
}

.flow {
  display:flex;
  align-items:stretch;
  gap:9px
}

.flow-node {
  flex:1;
  min-width:0;
  text-align:center;
  background:#f2f2f2;
  border:1px solid var(--line);
  border-radius:6px;
  padding:17px 10px
}

.flow-node>.icon {
  width:20px;
  height:20px;
  color:#767676;
  margin-bottom:9px
}

.flow-node strong {
  display:block;
  font-size:10px;
  color:#767676;
  font-weight:500
}

.flow-node small {
  font-size:10px;
  line-height:1.8;
  color:#767676
}

.flow-arrow {
  align-self:center;
  font-size:16px;
  color:#767676
}

.system-rule {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:#767676;
  padding-top:15px;
  margin-top:15px;
  border-top:1px solid var(--line)
}

.system-rule strong {
  font-weight:500;
  color:#737373
}

.memory-layer {
  display:flex;
  align-items:center;
  gap:14px;
  padding:13px 0;
  border-top:1px solid var(--line);
  font-size:12px;
  color:#767676
}

.memory-layer:first-of-type {
  border-top:0
}

.memory-layer .num {
  font-size:10px;
  color:#767676
}

.range-row {
  margin:25px 0
}

.range-row label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:#767676;
  margin-bottom:13px
}

.range-row b {
  font-weight:500;
  color:#737373;
  font-variant-numeric:tabular-nums
}

input[type=range] {
  width:100%;
  accent-color:#767676
}

.calc-result {
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:30px
}

.calc-result span {
  display:block;
  font-size:11px;
  color:#767676
}

.calc-result strong {
  display:block;
  font-size:32px;
  font-weight:500;
  letter-spacing:-1px;
  color:#747474;
  margin-top:10px
}

.section-summary {
  font-size:13px;
  font-weight:550;
  cursor:pointer
}

.section-summary+table {
  margin-top:16px
}

.empty {
  padding:48px 20px;
  text-align:center;
  font-size:12px;
  color:#767676
}

.detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px
}

.detail-grid>section>h3 {
  margin-bottom:17px
}

.detail-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:25px
}

.line-item {
  display:flex;
  gap:20px;
  justify-content:space-between;
  font-size:12px;
  line-height:1.8;
  margin-bottom:20px;
  color:#767676
}

.line-item b {
  white-space:nowrap;
  font-size:11px;
  color:#747474
}

.address-value {
  font-size:12px;
  line-height:1.85;
  margin-bottom:15px;
  color:#767676
}

.field-missing {
  font-size:11px;
  color:#767676;
  line-height:1.8;
  margin-top:10px
}

.detail-divider {
  height:1px;
  background:var(--line);
  margin:25px 0
}

.followup-summary {
  display:flex;
  gap:30px;
  align-items:center;
  margin-bottom:25px
}

.followup-summary>div>strong {
  display:block;
  font-size:12px;
  font-weight:500;
  color:#767676;
  margin-top:5px
}

.followup-summary .tag {
  margin-left:auto
}

.disclosure {
  border-top:1px solid var(--line);
  padding:16px 0
}

.disclosure:last-child {
  padding-bottom:0
}

.disclosure>summary {
  list-style:none;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  color:#767676
}

.disclosure>summary:after {
  content:'⌄';
  margin-left:auto;
  font-size:14px;
  color:#767676
}

.disclosure>summary::-webkit-details-marker {
  display:none
}

.disclosure[open]>summary:after {
  rotate:180deg
}

.disclosure[open]>summary {
  margin-bottom:16px
}

.template-text {
  font-size:12px;
  line-height:1.9;
  color:#767676
}

.order-event {
  display:flex;
  gap:15px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  font-size:11px;
  line-height:1.8;
  color:#767676
}

.order-event:last-child {
  border:0
}

.order-event time {
  font-variant-numeric:tabular-nums;
  color:#767676;
  white-space:nowrap
}

.source-line-item {
  margin-bottom:20px;
  font-size:12px;
  color:#767676;
  line-height:1.8
}

.source-line-item>strong {
  font-weight:500
}

.source-line-item>p {
  font-size:11px;
  color:#767676;
  margin-top:7px
}

.option-values {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:10px
}

.money-breakdown>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  font-size:12px;
  color:#767676
}

.money-breakdown b {
  font-weight:500;
  font-variant-numeric:tabular-nums;
  color:#767676
}

.money-breakdown .money-total {
  border-top:1px solid var(--line);
  margin-top:10px;
  padding-top:16px;
  color:#707070;
  font-weight:550
}

.money-total b {
  font-weight:600;
  color:#696969;
  font-size:15px
}

.redacted-value {
  display:flex;
  align-items:center;
  gap:7px;
  color:#767676;
  font-size:12px
}

.redacted-value .icon {
  width:14px;
  height:14px
}

.technical-id {
  font-size:10px
}

.source-json {
  padding:16px;
  background:#f5f5f5;
  border:1px solid var(--line);
  border-radius:6px;
  color:#767676;
  font-size:11px;
  line-height:1.8;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

code {
  font-size:10px;
  overflow-wrap:anywhere
}

.form-field {
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:12px;
  color:#767676
}

.form-field.full {
  grid-column:1/-1
}

.form-field input,.form-field textarea,.form-field select {
  width:100%;
  border:1px solid #d9d9d9;
  border-radius:6px;
  background:white;
  padding:10px;
  color:#767676;
  font-size:12px
}

.form-field textarea {
  resize:vertical;
  min-height:90px
}

.form-field input::placeholder {
  color:#767676
}

.form-field input:disabled,.form-field select:disabled {
  background:#f8f8f8;
  color:#767676
}

.faq-item {
  padding:16px;
  border:1px solid var(--line);
  border-radius:7px;
  margin-top:14px
}

.faq-item b {
  font-size:12px
}

.faq-item p {
  font-size:12px;
  line-height:1.8;
  margin-top:7px;
  color:#767676
}

.upload {
  border:1px dashed #767676;
  border-radius:7px;
  background:#fafafa;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:26px;
  color:#767676;
  font-size:12px;
  cursor:pointer;
  margin-top:16px
}

.upload>strong {
  font-size:12px;
  font-weight:500;
  color:#767676
}

.upload>span,.upload>small {
  font-size:10px;
  color:#767676
}

.upload .icon {
  width:20px;
  height:20px;
  margin-bottom:3px
}

.media-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:16px
}

.media-tile {
  border:1px solid var(--line);
  border-radius:6px;
  padding:12px;
  min-width:0
}

.media-tile img,.media-tile video {
  width:100%;
  height:120px;
  object-fit:contain
}

.media-tile p {
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#767676;
  margin-top:8px
}

.media-tile .quiet-label {
  font-size:9px
}

.settings-row {
  padding:16px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:15px
}

.settings-row p {
  font-size:12px;
  color:#767676;
  margin-top:6px;
  line-height:1.8
}

.footnote {
  font-size:11px;
  color:#767676;
  line-height:1.9
}

.timeline {
  display:flex;
  gap:13px;
  padding:16px 0;
  border-bottom:1px solid var(--line)
}

.timeline .num {
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f2f2f2;
  color:#767676;
  font-size:11px;
  flex-shrink:0
}

.timeline b {
  font-size:12px;
  display:block;
  margin-bottom:5px
}

.timeline p {
  font-size:12px;
  line-height:1.8;
  color:#767676
}

.notice {
  display:flex;
  align-items:flex-start;
  gap:10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fcfcfc;
  padding:12px 14px;
  margin:15px 0;
  color:#767676;
  font-size:12px;
  line-height:1.8
}

.notice>.icon {
  width:15px;
  height:15px;
  margin-top:3px
}

.pairing-placeholder {
  padding:35px 20px;
  background:#f8f8f8;
  border:1px solid var(--line);
  border-radius:7px;
  margin:23px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:15px;
  color:#767676
}

.pairing-placeholder .icon {
  width:33px;
  height:33px
}

.pairing-placeholder strong {
  font-size:12px;
  font-weight:500
}

.pairing-steps {
  padding-left:20px;
  color:#767676;
  font-size:12px;
  line-height:2.6
}

.help-links {
  display:flex;
  flex-direction:column;
  gap:4px
}

.help-links>button,.help-links>a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 9px;
  border-radius:5px;
  text-align:left;
  color:#767676;
  font-size:13px
}

.help-links>button:hover,.help-links>a:hover {
  background:#f8f8f8
}

.help-links .icon:last-child {
  margin-left:auto;
  width:14px
}

.source-line {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  color:#767676;
  margin-top:12px
}

.source-line .icon {
  width:12px;
  height:12px
}

.token-row {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#767676
}

.brand-sub,.page-footer,.mobile-menu {
  display:none
}

#toast {
  position:fixed;
  bottom:25px;
  left:50%;
  translate:-50% 0;
  background:#2b2b2b;
  color:#fff;
  padding:13px 20px;
  border-radius:7px;
  font-size:12px;
  box-shadow:0 4px 20px #2b2b2b18;
  opacity:0;
  pointer-events:none;
  z-index:100;
  max-width:90vw
}

#toast.show {
  opacity:1
}

dialog {
  padding:0;
  border:1px solid #e1e1e1;
  border-radius:10px;
  width:min(780px,94vw);
  max-height:90dvh;
  color:var(--ink);
  box-shadow:0 24px 100px #33333330
}

dialog::backdrop {
  background:#1c1c1c59;
  backdrop-filter:blur(2px)
}

.modal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:22px 25px;
  border-bottom:1px solid var(--line)
}

.modal-header h2 {
  font-size:18px;
  font-weight:550;
  letter-spacing:-.3px
}

.modal-body {
  padding:25px;
  overflow:auto;
  max-height:calc(90dvh - 145px)
}

.modal-body>p {
  line-height:1.9
}

.modal-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 25px;
  border-top:1px solid var(--line);
  background:#fdfdfd
}

.modal-footer>.btn:only-child {
  margin-left:auto
}

/* Non-action surfaces use neutral shades. Only .btn.primary uses the accent. */
@media(min-width:1500px) {
  .content {
    padding:30px 38px 38px
  }
  .topbar {
    padding:0 38px
  }
  .inbox-area {
    grid-template-columns:280px minmax(390px,1fr) 280px
  }
  .chat-item {
    padding:19px 17px
  }
  .chat-preview {
    font-size:11px
  }
  .chat-name {
    font-size:12px
  }
  .bubble,.ai-recommendation p {
    font-size:12px
  }
  .buyer-section .facts {
    font-size:11px;
    grid-template-columns:80px 1fr
  }
  .buyer-section .summary {
    font-size:11px
  }
  .chat-header h3 {
    font-size:13px
  }
  .buyer-section {
    padding:19px
  }
  .buyer-top {
    padding:20px 19px
  }
  .order-product-name {
    font-size:12px
  }
}

@media(max-width:1240px) {
  .shell {
    grid-template-columns:180px minmax(0,1fr)
  }
  .sidebar {
    padding:24px 10px 16px
  }
  .content {
    padding:25px 24px 32px
  }
  .topbar {
    padding:0 24px
  }
  .inbox-area {
    grid-template-columns:230px minmax(300px,1fr) 220px
  }
  .product-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .chat-header {
    padding:14px
  }
  .chat-header .btn {
    font-size:9px;
    padding:7px
  }
  .buyer-top .tag {
    font-size:8px
  }
  .facts {
    grid-template-columns:80px minmax(0,1fr)
  }
  .health-box {
    padding:14px
  }
  .health-box>span {
    font-size:10px
  }
  .card-pad {
    padding:19px
  }
  .flow {
    gap:6px
  }
  .flow-node {
    padding:15px 7px
  }
  .flow-node strong {
    font-size:9px
  }
  .flow-arrow {
    font-size:14px
  }
}

@media(max-width:1120px) {
  .inbox-area {
    grid-template-columns:250px minmax(320px,1fr)
  }
  .buyer-panel {
    display:none
  }
  .buyer-toggle {
    display:inline-flex
  }
  .dash-grid {
    grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)
  }
  .metric {
    padding:17px
  }
  .metric-value {
    font-size:26px
  }
  .metric-label {
    font-size:10px
  }
  .strategy-grid {
    grid-template-columns:1fr 1fr
  }
  .experiment-result {
    flex-wrap:wrap
  }
  .architecture {
    grid-template-columns:1fr
  }
  .flow-node strong {
    font-size:11px
  }
}

@media(max-width:950px) {
  .shell {
    grid-template-columns:66px minmax(0,1fr)
  }
  .sidebar {
    padding:22px 9px 16px
  }
  .brand {
    padding:0;
    justify-content:center;
    margin-bottom:30px
  }
  .brand>span:last-child,.nav>span,.profile>.grow,.profile>.icon,.nav-badge {
    display:none
  }
  .nav {
    justify-content:center;
    padding:12px 0
  }
  .sidebar nav {
    gap:7px
  }
  .nav .icon {
    width:19px;
    height:19px
  }
  .profile {
    padding:17px 0 0;
    justify-content:center
  }
  .inbox-area {
    grid-template-columns:235px minmax(300px,1fr)
  }
  .topbar {
    height:53px
  }
  .content {
    padding:23px 20px 30px
  }
  .topbar {
    padding:0 20px
  }
  .dash-grid {
    grid-template-columns:1fr
  }
  .health-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .strategy-grid {
    grid-template-columns:1fr
  }
  .product-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .product-visual {
    height:125px
  }
  .page-head {
    gap:15px
  }
  .scalev-stats {
    gap:10px
  }
  .channel-grid {
    gap:16px
  }
  .channel-card {
    padding:19px
  }
  .channel-number {
    font-size:11px
  }
  .channel-card h2 {
    font-size:15px
  }
  .channel-chip {
    font-size:10px;
    padding:8px 10px
  }
  .comparison strong {
    font-size:30px
  }
}

@media(max-width:680px) {
  .shell {
    display:block
  }
  .sidebar {
    position:fixed;
    top:auto;
    bottom:0;
    left:0;
    right:0;
    width:100%;
    height:63px;
    padding:0 4px;
    background:#fafafa;
    z-index:20;
    border-right:0;
    border-top:1px solid var(--line);
    display:block
  }
  .brand,.sidebar-bottom {
    display:none
  }
  .sidebar nav {
    height:100%;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-around;
    gap:0
  }
  .nav {
    flex-direction:column;
    gap:4px;
    padding:9px 6px;
    flex:1;
    min-height:52px;
    border-radius:0;
    font-size:9px
  }
  .nav>span {
    display:block;
    font-size:9px
  }
  .nav .icon {
    width:18px;
    height:18px
  }
  .nav.active {
    background:transparent
  }
  .nav.extra {
    display:none
  }
  .nav .nav-badge {
    display:none
  }
  .topbar {
    height:50px;
    padding:0 15px
  }
  .workspace-name {
    font-size:11px
  }
  .environment-label {
    font-size:10px
  }
  .topbar .divider {
    display:none
  }
  .topbar>.flex {
    gap:5px
  }
  .topbar .icon-btn {
    width:28px;
    height:28px
  }
  .content {
    padding:22px 15px 87px
  }
  h1 {
    font-size:22px
  }
  .page-head {
    margin-bottom:21px;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:14px
  }
  .page-actions {
    gap:7px;
    flex-wrap:wrap
  }
  .btn {
    font-size:11px;
    padding:8px 10px;
    min-height:33px
  }
  .period {
    font-size:10px;
    padding:8px
  }
  .page-head .quiet-label {
    font-size:10px
  }
  .card-pad {
    padding:17px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-bottom:18px
  }
  .metric {
    padding:15px 17px
  }
  .metric:nth-child(2) {
    border-right:0
  }
  .metric:nth-child(-n+2) {
    border-bottom:1px solid var(--line)
  }
  .metric-value {
    font-size:26px
  }
  .metric-label {
    font-size:10px
  }
  .incident-strip {
    font-size:10px;
    padding:11px;
    gap:8px;
    line-height:1.8
  }
  .incident-strip .muted {
    display:block
  }
  .incident-strip>.textlink {
    font-size:10px;
    white-space:nowrap
  }
  .health-grid {
    gap:10px;
    margin-bottom:18px
  }
  .health-box {
    padding:13px
  }
  .health-box>strong {
    font-size:17px
  }
  .health-box>span {
    font-size:10px
  }
  .scalev-stats {
    grid-template-columns:repeat(2,1fr);
    gap:20px
  }
  .scalev-stats b {
    font-size:22px
  }
  .scalev-stats span {
    font-size:10px
  }
  .chart {
    height:195px
  }
  .dash-grid {
    gap:15px
  }
  .card-head {
    margin-bottom:18px
  }
  .card-head h2,h2 {
    font-size:13px
  }
  .legend {
    gap:10px;
    font-size:9px
  }
  .table-title {
    padding:15px 16px
  }
  th {
    padding:11px 14px;
    font-size:10px
  }
  td {
    padding:15px 14px;
    font-size:11px
  }
  .toolbar {
    gap:8px;
    flex-wrap:wrap
  }
  .toolbar .search {
    width:100%;
    max-width:none
  }
  .toolbar select {
    font-size:11px;
    max-width:75%;
    min-height:34px
  }
  .toolbar-count {
    font-size:10px
  }
  .section-tabs {
    gap:22px;
    margin-bottom:18px
  }
  .tab {
    font-size:11px
  }
  .demo-clock {
    font-size:10px
  }
  .page-orders .page-actions {
    width:100%;
    justify-content:flex-end
  }
  .page-orders .demo-clock {
    margin-right:auto
  }
  .filter-label {
    font-size:10px;
    padding:7px 9px
  }
  .source-order-table td:first-child {
    min-width:160px
  }
  .source-order-table td:nth-child(2) {
    min-width:230px
  }
  .channel-strip {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-bottom:14px
  }
  .channel-chip {
    font-size:10px;
    padding:9px 11px
  }
  .inbox-area {
    display:block;
    height:auto;
    min-height:0
  }
  .chat-list {
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .list-head {
    padding:14px
  }
  .list-head .search {
    margin-top:11px
  }
  .list-tabs {
    padding:0 14px 1px
  }
  .chat-items {
    display:flex;
    max-height:116px;
    overflow-x:auto;
    overflow-y:hidden
  }
  .chat-item {
    min-width:235px;
    max-width:235px;
    padding:14px 12px;
    border-right:1px solid var(--line);
    border-bottom:0
  }
  .chat-main {
    min-height:590px
  }
  .chat-header {
    padding:14px
  }
  .chat-header h3 {
    font-size:12px
  }
  .chat-header .btn {
    font-size:10px
  }
  .chat-context-banner {
    padding:8px 15px
  }
  .order-banner {
    padding:11px 15px
  }
  .order-banner small {
    max-width:210px
  }
  .messages {
    max-height:370px;
    min-height:250px;
    padding:17px 15px
  }
  .bubble {
    font-size:11px;
    max-width:100%
  }
  .message {
    max-width:88%
  }
  .ai-recommendation {
    margin:0 11px 11px;
    padding:12px
  }
  .ai-recommendation p {
    font-size:11px
  }
  .draft-actions .btn {
    font-size:10px
  }
  .composer {
    padding:11px
  }
  .composer textarea {
    font-size:11px;
    min-height:40px
  }
  .product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px
  }
  .product-visual {
    height:115px
  }
  .product-visual svg {
    width:55px;
    height:70px
  }
  .product-info {
    padding:12px
  }
  .product-info h3 {
    font-size:11px;
    margin:7px 0 9px
  }
  .eyebrow {
    font-size:8px
  }
  .product-price {
    font-size:11px
  }
  .product-footer {
    font-size:9px;
    gap:8px;
    margin-top:13px;
    padding-top:11px
  }
  .pagination {
    font-size:10px
  }
  .pagination .btn {
    font-size:10px;
    padding:8px
  }
  .channel-grid {
    grid-template-columns:1fr;
    gap:15px
  }
  .channel-card {
    padding:20px
  }
  .channel-card h2 {
    font-size:16px
  }
  .channel-number {
    font-size:12px
  }
  .channel-stats strong {
    font-size:22px
  }
  .channel-stats small {
    font-size:10px
  }
  .channel-meta {
    font-size:11px
  }
  .strategy-grid {
    gap:15px
  }
  .comparison>div {
    padding:16px
  }
  .comparison .quiet-label {
    font-size:10px
  }
  .comparison strong {
    font-size:29px
  }
  .comparison p {
    font-size:10px
  }
  .experiment-result {
    font-size:10px
  }
  .experiment-result strong,.experiment-result>span {
    font-size:11px
  }
  .strategy-steps>div {
    font-size:11px
  }
  .quote {
    font-size:14px
  }
  .flow {
    flex-wrap:wrap;
    gap:6px
  }
  .flow-node {
    min-width:90px;
    flex-basis:35%;
    padding:15px 10px
  }
  .flow-arrow {
    font-size:13px
  }
  .flow-node strong {
    font-size:10px
  }
  .flow-node>.icon {
    width:18px;
    height:18px
  }
  .architecture {
    gap:15px
  }
  .detail-grid {
    grid-template-columns:1fr;
    gap:24px
  }
  .facts {
    font-size:11px;
    grid-template-columns:90px minmax(0,1fr);
    gap:10px
  }
  .detail-topline {
    align-items:flex-start;
    gap:10px;
    margin-bottom:22px
  }
  .detail-topline .quiet-label {
    font-size:10px
  }
  .detail-topline>.tag {
    font-size:9px
  }
  .followup-summary {
    gap:20px;
    flex-wrap:wrap
  }
  .followup-summary .tag {
    margin-left:0
  }
  .followup-summary>div>strong {
    font-size:11px
  }
  .followup-summary .quiet-label {
    font-size:10px
  }
  .disclosure>summary {
    font-size:11px
  }
  .template-text {
    font-size:11px
  }
  .modal-header {
    padding:18px
  }
  .modal-header h2 {
    font-size:17px
  }
  .modal-body {
    padding:20px 18px;
    max-height:calc(90dvh - 150px)
  }
  .modal-footer {
    padding:14px 18px;
    flex-wrap:wrap;
    gap:10px
  }
  .modal-footer>.flex {
    flex-wrap:wrap;
    gap:7px
  }
  .modal-footer .btn {
    font-size:10px
  }
  .form-field {
    font-size:11px
  }
  .form-field input,.form-field textarea,.form-field select {
    font-size:12px
  }
  .media-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .media-tile img,.media-tile video {
    height:110px
  }
  .source-json {
    font-size:10px;
    padding:12px
  }
  .timeline p,.settings-row p {
    font-size:11px
  }
  .summary {
    font-size:12px
  }
  .footnote {
    font-size:11px
  }
  .help-links>button,.help-links>a {
    font-size:12px
  }
  .order-event {
    font-size:10px
  }
  .source-line-item {
    font-size:12px
  }
  .money-breakdown>div {
    font-size:12px
  }
  .money-total b {
    font-size:15px
  }
  #toast {
    font-size:11px;
    line-height:1.7;
    bottom:78px;
    padding:12px 16px;
    max-width:92vw
  }
}

/* Opacity fades and the press scale stay on. Translate, enter scale, and rotate are only in the no-preference block at the end of this file. */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
}

/* Final neutral roles and readable contrast. */
:root {
  --ink:#252525;
  --muted:#6b6b6b;
  --line:#e6e6e6;
  --soft:#f5f5f5;
  --hover:#ededed;
  --sidebar:#f7f7f7
}

.metric-label,.quiet-label,.muted,.cell-meta,.channel-name,.chat-preview,.chat-time,.channel-number,.channel-meta,.toolbar-count,.period,.filter-label,.tab,.demo-clock,.source-line,.footnote,.facts dt,.status-label,.message-label,.message-time,.date-label,.date-label .textlink,.source-line-item>p,.health-box>span,.legend,.scalev-stats span,.buyer-top p,.profile p,.form-field,.experiment-scope,.comparison p,.experiment-result>span,.order-event,.order-event time,.help-links>button,.help-links>a,.redacted-value {
  color:#6b6b6b
}

.facts dd,.order-product-name,.bubble,.ai-recommendation p,.product-info h3,.product-price,.metric-value,.metric-value small,.metric-label,.cell-product,.row-link,td,td strong,.channel-card h2,.channel-stats strong,.comparison strong,.experiment-result strong,.strategy-steps>div,.quote,.flow-node strong,.system-rule strong,.memory-layer,.range-row label,.range-row b,.calc-result strong,.summary,.address-value,.source-line-item,.line-item,.line-item b,.money-breakdown>div,.money-breakdown b,.money-breakdown .money-total,.money-total b,.template-text,.disclosure>summary,.buyer-section>summary,.followup-summary>div>strong,.scalev-stats b,.health-box>strong,.form-field input,.form-field textarea,.form-field select {
  color:#383838
}

th {
  color:#6b6b6b;
  background:#fafafa
}

.cell-meta,.chat-time,.channel-name {
  font-size:10px
}

.avatar {
  background:#eeeeec;
  color:#62625f
}

.channel-chip {
  color:#666;
  background:white
}

.channel-chip.selected {
  border-color:#bdbdbd;
  background:#f0f0f0;
  color:#333
}

.channel-state .icon {
  color:#777
}

.chat-item.active {
  background:#f1f1f1
}

.chat-item:hover {
  background:#f7f7f7
}

.chat-main {
  background:#fcfcfc
}

.chat-context-banner {
  background:#fafafa;
  border-color:#ececec;
  color:#666
}

.order-banner {
  color:#555
}

.order-banner small {
  color:#6b6b6b
}

.bubble {
  background:white;
  border-color:#e7e7e7
}

.ai .bubble,.cs .bubble {
  background:#f1f1f1;
  border-color:#e9e9e9
}

.ai-recommendation {
  border-color:#dedede
}

.draft-label {
  color:#555
}

.composer-box {
  border-color:#dedede
}

.composer textarea {
  color:#444
}

.composer textarea::placeholder,.search input::placeholder,.form-field input::placeholder,.form-field textarea::placeholder {
  color:#777
}

.composer-tools {
  color:#777
}

.buyer-section>summary:after {
  color:#777
}

.badge,.tag {
  background:#f4f4f4;
  border-color:#ececec;
  color:#626262
}

.badge.green,.badge.orange,.badge.yellow,.badge.red {
  color:#626262;
  background:#f4f4f4
}

.product-visual {
  background:#f6f6f5
}

.product-footer,.eyebrow,.product-mini p,.product-art,.address-status,.field-missing,.disclosure>summary:after {
  color:#6b6b6b
}

.product-art {
  background:#f3f3f3
}

.product-card:hover {
  border-color:#bdbdbd
}

.progress {
  background:#eeeeec
}

.progress i {
  background:#aaa9a5
}

.funnel-bar {
  background:#eaeaea;
  color:#505050
}

.funnel-step .label {
  color:#6b6b6b
}

.funnel-step:nth-child(3) .funnel-bar {
  background:#dedede;
  color:#454545
}

.funnel-step:nth-child(4) .funnel-bar {
  background:#cfcfcf;
  color:#3a3a3a
}

.funnel-step:nth-child(5) .funnel-bar {
  background:#555;
  color:#fff
}

.legend i {
  background:#555
}

.legend i.secondary {
  background:#b8b8b8
}

.flow-node {
  background:#fafafa
}

.flow-node>.icon,.flow-arrow,.system-rule,.memory-layer .num,.calc-result span,.metric-help,.action-menu>summary,.action-menu>div>button,.action-menu>div>a {
  color:#6b6b6b
}

.strategy-steps>div>span {
  background:#f2f2f2;
  color:#666
}

.form-field input,.form-field textarea,.form-field select {
  border-color:#dedede
}

.form-field input:disabled,.form-field select:disabled {
  background:#f7f7f7;
  color:#777
}

.source-json {
  background:#fafafa;
  color:#555
}

.upload {
  background:#fafafa;
  border-color:#ccc;
  color:#777
}

.upload>strong {
  color:#555
}

.upload>span,.upload>small {
  color:#6b6b6b
}

.pairing-placeholder {
  background:#fafafa;
  color:#6b6b6b
}

.pairing-steps {
  color:#6b6b6b
}

.help-links>button:hover,.help-links>a:hover {
  background:#f5f5f5
}

.notice {
  background:#fafafa;
  color:#626262
}

.timeline p,.timeline .num,.settings-row p {
  color:#6b6b6b
}

.timeline .num {
  background:#f3f3f3
}

.channel-icon {
  color:#777
}

.channel-stats small {
  color:#6b6b6b
}

.empty {
  color:#6b6b6b
}

.btn.primary {
  color:#fff;
  background:var(--accent);
  border-color:var(--accent)
}

.btn.primary:disabled {
  color:#999;
  background:#f5f5f5;
  border-color:#e8e8e8
}

.bubble,.ai-recommendation p {
  font-size:12px
}

.pairing-qr {
  width:220px;
  height:220px;
  margin:16px auto;
  background:#fff;
  border:1px solid var(--line);
  display:grid;
  place-items:center
}

.pairing-qr svg {
  width:200px;
  height:200px
}

.subsidy-free {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:8px;
  margin-top:8px;
  color:#383838;
  font-size:12px
}

.form-field input[type=checkbox] {
  width:16px;
  height:16px;
  margin:0;
  padding:0;
  flex:none;
  accent-color:#383838
}

.modal-body .search {
  width:100%
}

.pick-list {
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:7px;
  background:white;
  max-height:min(420px,46dvh);
  overflow:auto
}

.pick-row {
  display:flex;
  align-items:flex-start;
  gap:10px;
  width:100%;
  margin:0;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:white;
  text-align:left;
  cursor:pointer
}

.pick-row:last-child {
  border-bottom:0
}

.pick-row:hover {
  background:var(--hover)
}

.pick-row:has(input:checked) {
  background:var(--soft)
}

.pick-row:has(input:disabled) {
  color:var(--muted);
  cursor:not-allowed
}

.pick-row:has(input:disabled):hover {
  background:white
}

.pick-row input {
  width:16px;
  height:16px;
  margin:2px 0 0;
  flex:none;
  accent-color:#383838
}

.pick-row>.btn {
  flex:none;
  align-self:center
}

.pick-copy {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
  flex:1
}

.pick-name {
  font-size:12px;
  font-weight:500;
  line-height:1.45;
  overflow-wrap:anywhere
}

.pick-note {
  margin-top:12px
}

.variant-list {
  display:flex;
  flex-direction:column;
  width:100%;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:white
}

.variant-row {
  display:block;
  width:100%;
  min-width:0;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:white
}

.variant-row:last-child {
  border-bottom:0
}

.variant-row .pick-name {
  display:block;
  min-width:0
}

.variant-row .quiet-label {
  display:block;
  margin-top:2px
}

.variant-list+.quiet-label {
  display:block;
  margin-top:10px
}

.settings-url {
  display:block;
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px
}

.page-settings .section-tabs {
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  flex-wrap:nowrap
}

.page-settings .section-tabs .tab {
  flex:none
}

.page-settings .section-tabs::-webkit-scrollbar {
  display:none;
  width:0;
  height:0
}

.sidebar-bottom,.profile {
  min-width:0;
  max-width:100%
}

.profile .grow {
  overflow:hidden
}

.profile .grow strong,.profile .grow p {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.profile>.icon {
  flex:none
}

.page-settings,.page-settings .page-head,.page-settings form,.page-settings .stack,.page-settings .card,.page-settings .detail-grid {
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box
}

.page-settings .page-head {
  flex-wrap:wrap
}

.page-settings .page-actions {
  flex:none;
  margin-left:auto
}

.page-settings .detail-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.page-settings .detail-grid>* {
  min-width:0;
  max-width:100%
}

.page-settings .detail-grid>.full {
  grid-column:1 / -1
}

.page-settings .form-field {
  min-width:0;
  max-width:100%
}

.page-settings .form-field input:not([type=checkbox]):not([type=radio]),.page-settings .form-field textarea,.page-settings .form-field select {
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box
}

.page-settings .form-field textarea {
  overflow-wrap:anywhere
}

.page-settings #reply-rules {
  min-height:128px;
  max-height:320px
}

.page-settings .pick-row input {
  width:16px;
  max-width:16px;
  height:16px;
  min-width:16px;
  flex:none
}

.page-settings .form-field>.btn {
  align-self:flex-start;
  width:auto;
  max-width:100%
}

.page-settings .settings-save {
  display:flex;
  justify-content:flex-end;
  width:100%;
  min-width:0;
  margin-top:16px
}

.page-settings .card-head {
  flex-wrap:wrap
}

.page-settings .card-head>.btn {
  margin-left:auto;
  flex:none
}

.page-settings .form-field>.flex {
  width:100%;
  min-width:0
}

.page-settings .secret-field {
  min-width:0;
  max-width:100%
}

.page-settings .secret-row {
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--soft);
  padding:8px 10px
}

.page-settings .secret-status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#252525;
  font-size:12px
}

.page-settings .secret-status .icon {
  width:14px;
  height:14px;
  flex:none;
  color:#6b6b6b
}

.page-settings .secret-edit input {
  flex:1 1 auto;
  width:auto;
  min-width:0
}

.page-settings .secret-edit .textlink {
  margin-left:0;
  flex:none
}

.page-settings .pickup-value,#product-origin .pickup-value {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-width:0;
  border:1px solid #d9d9d9;
  border-radius:6px;
  background:#fff;
  padding:10px;
  color:var(--ink);
  font-size:12px;
  line-height:1.45;
  text-align:left
}

.page-settings .pickup-value span,#product-origin .pickup-value span {
  min-width:0;
  flex:1;
  overflow-wrap:anywhere
}

.page-settings .pickup-value .icon,#product-origin .pickup-value .icon {
  width:14px;
  height:14px;
  flex:none;
  color:#6b6b6b
}

.page-settings .pickup-value.is-placeholder,.page-settings .pickup-value:disabled,#product-origin .pickup-value.is-placeholder,#product-origin .pickup-value:disabled {
  color:#6b6b6b
}

.page-settings .pickup-value:disabled,#product-origin .pickup-value:disabled {
  cursor:not-allowed
}

.page-settings #mengantar-origin .pick-list,#product-origin .pick-list {
  width:100%;
  min-width:0;
  margin-top:0
}

.page-settings .pick-row.selected,#product-origin .pick-row.selected {
  background:var(--soft)
}

.page-settings .gudang-list .pick-row {
  cursor:default
}

.page-settings .gudang-list .pick-row:hover {
  background:white
}

.page-settings .gudang-list {
  max-height:none;
  overflow:visible
}

.page-settings .tag-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px
}

.page-settings .tag-row .btn {
  flex:none
}

.switch-list {
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  margin-top:4px
}

.switch-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-width:0;
  margin:0;
  padding:12px 0;
  border-top:1px solid var(--line);
  background:white;
  cursor:pointer
}

.switch-copy {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
  flex:1
}

.switch-name {
  font-size:12px;
  font-weight:500;
  line-height:1.45;
  color:#383838;
  overflow-wrap:anywhere
}

.switch-row .quiet-label {
  overflow-wrap:anywhere
}

.switch-row input[type=checkbox][role=switch] {
  appearance:none;
  -webkit-appearance:none;
  width:36px;
  height:20px;
  min-width:36px;
  max-width:36px;
  margin:1px 0 0;
  padding:0;
  flex:none;
  border:1px solid #8a8a8a;
  border-radius:999px;
  background:#c4c4c4;
  position:relative;
  cursor:pointer;
  accent-color:#383838
}

.switch-row input[type=checkbox][role=switch]::before {
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  translate:0 0
}

.switch-row input[type=checkbox][role=switch]:checked {
  background:#383838;
  border-color:#383838
}

.switch-row input[type=checkbox][role=switch]:checked::before {
  translate:16px 0
}

.switch-row input[type=checkbox][role=switch]:disabled,.switch-row input[type=checkbox][role=switch]:disabled:checked {
  cursor:not-allowed;
  background:#f7f7f7;
  border-color:#e0e0e0
}

.switch-row input[type=checkbox][role=switch]:disabled::before,.switch-row input[type=checkbox][role=switch]:disabled:checked::before {
  translate:0 0;
  background:#a3a3a3
}

.switch-row:has(input:disabled) {
  cursor:not-allowed
}

.page-settings .switch-row input[type=checkbox][role=switch] {
  width:36px;
  max-width:36px;
  min-width:36px;
  height:20px
}

.page-settings #agent-status {
  margin:0
}

.page-settings .opener-preview {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0
}

.page-settings #opener-note {
  display:block;
  margin-top:16px
}

@media(max-width:680px) {
  .page-settings .detail-grid {
    grid-template-columns:minmax(0,1fr)
  }
}

.workspace-name {
  min-width:0;
  flex:1 1 auto;
  overflow:hidden
}

.workspace-title {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.topbar>.flex {
  flex:none
}

.metric {
  min-width:0
}

.metric-label>span {
  min-width:0;
  overflow-wrap:anywhere
}

.metric-value {
  min-width:0
}

.metric-value-long {
  font-size:16px;
  letter-spacing:0;
  line-height:1.2;
  white-space:nowrap
}

.unread-mark {
  display:inline-flex;
  align-items:center;
  flex:none;
  background:#d9d9d9;
  color:#494949;
  border-radius:4px;
  padding:1px 5px;
  font-size:10px;
  line-height:1.4
}

.chat-top {
  min-width:0;
  gap:8px
}

.chat-title {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0
}

.chat-name {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.inbox-back {
  display:none
}

@media(max-width:680px) {
  .metric-value-long {
    font-size:12px
  }
  .chat-list {
    overflow:visible
  }
  .chat-items {
    display:flex;
    flex-direction:column;
    flex:none;
    width:100%;
    max-height:none;
    min-height:0;
    overflow:visible
  }
  .chat-item {
    min-width:0;
    max-width:none;
    width:100%;
    flex:none;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .chat-main:has(> .empty) {
    display:none
  }
  .inbox-back {
    display:inline-flex;
    align-items:center;
    margin:0 6px 0 0;
    flex:none
  }
  .shell:has(.inbox-area.thread-open) {
    height:100dvh;
    min-height:0;
    overflow:hidden
  }
  .shell:has(.inbox-area.thread-open) .main {
    display:flex;
    flex-direction:column;
    height:100dvh;
    min-height:0;
    overflow:hidden
  }
  .shell:has(.inbox-area.thread-open) .topbar {
    flex:none
  }
  .shell:has(.inbox-area.thread-open) .content {
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    overflow:hidden;
    padding-bottom:63px
  }
  .shell:has(.inbox-area.thread-open) .page-head,   .shell:has(.inbox-area.thread-open) .channel-strip {
    flex:none
  }
  .inbox-area.thread-open {
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    height:auto;
    min-height:0;
    overflow:hidden
  }
  .inbox-area.thread-open .chat-list {
    display:none
  }
  .inbox-area.thread-open .chat-main {
    display:flex;
    flex:1 1 auto;
    min-height:0
  }
  .inbox-area.thread-open .messages {
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow:auto
  }
}

.page-admin table {
  table-layout:fixed;
  width:100%
}

.page-orders .table-wrap {
  overflow-x:auto;
  overflow-y:hidden
}

.page-orders table {
  width:max(100%,max-content)
}

.page-orders th,.page-orders td,.page-orders .textlink {
  white-space:nowrap
}

.cell-wrap {
  overflow-wrap:anywhere;
  white-space:normal
}

.dash-empty {
  margin:0 0 14px
}

.gate {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px
}

.gate-panel {
  width:min(420px,100%);
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:20px
}

.gate-panel .brand {
  display:flex;
  margin:0;
  padding:0;
  justify-content:flex-start
}

.gate-panel .brand>span:last-child {
  display:inline
}

.gate-card {
  width:100%
}

.gate-card h1 {
  margin-bottom:8px
}

.gate-card .summary {
  margin:8px 0 0
}

#gate-form {
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:16px
}

.field-error {
  margin:0;
  color:var(--ink);
  font-size:12px;
  font-weight:600;
  line-height:1.45
}

.form-field input[aria-invalid="true"],.form-field textarea[aria-invalid="true"] {
  border-color:var(--ink)
}

.gate-actions {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px
}

.gate-actions .btn,.gate-actions .textlink {
  width:100%
}

.gate-actions .textlink {
  align-self:stretch;
  justify-content:center;
  min-height:33px;
  font-size:12px;
  line-height:1.3;
  font-weight:500
}

.page-settings .pick-list.unbounded {
  max-height:none;
  overflow:visible
}

.page-settings .setup-help {
  margin:0 0 12px;
  font-size:12px;
  line-height:1.45;
  color:var(--muted)
}

@media(max-width:680px) {
  .page-settings .page-actions {
    flex:1 1 100%;
    width:100%;
    margin-left:0;
    justify-content:flex-end;
    flex-wrap:wrap;
    row-gap:8px
  }
  .page-settings .page-actions .btn,.page-settings .page-actions .icon-btn,.page-settings .page-actions .quiet-label {
    flex:0 0 auto
  }
}

:root {
  --status-ok-bg:#dcfce7;
  --status-ok-ink:#14532d;
  --status-warn-bg:#fde68a;
  --status-warn-ink:#422006;
  --status-bad-bg:#fee2e2;
  --status-bad-ink:#7f1d1d;
  --status-warn-mark:#b45309;
  --ai-ink:#3b6ea5;
  --ai-bg:#f4f8fc;
  --ai-line:#d5e3f2;
  --cs-ink:#6b3fa0;
  --cs-bg:#f7f4fb;
  --cs-line:#e0d4ee;
}

.status-row {
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  max-width:100%
}

.status-label.status-badge {
  font-size:12px;
  line-height:1.3;
  font-weight:600;
  padding:3px 8px;
  border-radius:6px;
  border:1px solid transparent
}

.status-label.status-badge .icon {
  width:14px;
  height:14px
}

.status-label.status-badge.status-ok {
  color:var(--status-ok-ink);
  background:var(--status-ok-bg);
  border-color:var(--status-ok-ink)
}

.status-label.status-badge.status-warn {
  color:var(--status-warn-ink);
  background:var(--status-warn-bg);
  border-color:var(--status-warn-ink)
}

.status-label.status-badge.status-bad {
  color:var(--status-bad-ink);
  background:var(--status-bad-bg);
  border-color:var(--status-bad-ink)
}

a.btn.status-fix {
  min-height:28px;
  padding:4px 10px;
  font-size:12px
}

h2.with-mark {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  row-gap:6px;
  min-width:0
}

.card-head h2.with-mark {
  flex:1 1 auto
}

.mark-name {
  min-width:0
}

h2.with-mark .channel-icon {
  width:28px;
  height:28px;
  flex:none
}

h2.with-mark .status-badge,h2.with-mark .status-row {
  flex:none
}

.pick-row .setup-mark {
  display:inline-flex;
  flex:none;
  margin-top:1px;
  color:#6b6b6b
}

.pick-row .setup-mark .icon {
  width:16px;
  height:16px
}

.pick-row.is-done .setup-mark {
  color:#252525
}

.integration-lines {
  display:flex;
  flex-direction:column
}

.integration-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  padding:8px 0;
  border-top:1px solid var(--line)
}

.integration-line>span {
  min-width:0;
  overflow-wrap:anywhere
}

.channel-topline {
  align-items:flex-start;
  gap:8px
}

.channel-topline .status-row {
  justify-content:flex-end
}

.setup-card {
  margin-bottom:16px
}

.setup-count {
  font-size:13px;
  line-height:1.4;
  font-weight:600;
  color:#252525;
  margin-bottom:8px
}

.setup-progress {
  height:8px;
  border-radius:8px;
  background:#ededed;
  overflow:hidden
}

.setup-progress>i {
  display:block;
  height:100%;
  background:#383838;
  border-radius:8px
}

.setup-checks {
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 16px
}

.setup-checks li {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  font-size:13px;
  line-height:1.4;
  color:#383838
}

.setup-checks .icon {
  width:16px;
  height:16px;
  color:#6b6b6b
}

.setup-checks .is-done .icon {
  color:#252525
}

.empty {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px
}

.empty .icon {
  width:22px;
  height:22px
}

.empty p {
  max-width:36em
}

.empty .btn {
  margin-top:4px
}

.empty.empty-compact {
  padding:14px 16px
}

.empty.empty-compact .icon {
  width:18px;
  height:18px
}

.metric-lead .metric-name {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0
}

.metric-lead .metric-name .icon {
  width:16px;
  height:16px;
  color:#383838
}

.metrics-lead .metric-label {
  font-size:12px
}

.metrics.metrics-secondary {
  grid-template-columns:repeat(5,minmax(0,1fr));
  background:#fafafa
}

.metrics-secondary .metric {
  padding:12px 16px
}

.metrics-secondary .metric-value {
  font-size:18px
}

.metrics-secondary .metric-label {
  font-size:12px
}

@media(max-width:1120px) {
  .metrics.metrics-secondary {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}

@media(max-width:680px) {
  .setup-checks {
    grid-template-columns:1fr
  }
  .metrics.metrics-secondary {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .metrics-lead .metric-label,.metrics-secondary .metric-label {
    font-size:12px
  }
}

#team-page {
  min-width:0;
  max-width:100%
}

#team-page .table-wrap {
  max-width:100%;
  overflow-x:auto
}

.team-table {
  width:100%;
  table-layout:fixed
}

.team-table th,.team-table td {
  padding:12px 10px;
  vertical-align:top;
  overflow:hidden
}

.team-table th:nth-child(1),.team-table td.team-name {
  width:14%
}

.team-table th:nth-child(2),.team-table td.team-email {
  width:16%
}

.team-table th:nth-child(3),.team-table td.team-role {
  width:9%
}

.team-table th:nth-child(4),.team-table td.team-numbers {
  width:34%
}

.team-table th:nth-child(5),.team-table td.team-status {
  width:14%
}

.team-table th:nth-child(6),.team-table td.team-actions-cell {
  width:13%
}

.team-id {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0
}

.team-person,.team-ellipsis {
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.team-pills {
  display:none
}

.team-number-list {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0
}

.team-number {
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.team-role,.team-status .tag,.team-actions .quiet-label {
  white-space:nowrap
}

.team-status .tag {
  display:inline-flex;
  max-width:100%
}

.team-actions {
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  align-items:center
}

@media(max-width:680px) {
  .content.page-settings {
    padding-bottom:128px
  }
  .team-table,.team-table tbody {
    display:block;
    width:100%;
    table-layout:auto
  }
  .team-table thead {
    display:none
  }
  .team-table tr {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"name name" "email email" "numbers actions";
    gap:4px 10px;
    align-items:end;
    width:auto;
    padding:10px 12px 12px;
    border-bottom:1px solid #e9e9e9
  }
  .team-table td,.team-table td.team-name,.team-table td.team-email,.team-table td.team-role,.team-table td.team-numbers,.team-table td.team-status,.team-table td.team-actions-cell {
    display:block;
    width:auto;
    max-width:none;
    min-width:0;
    padding:0;
    border:0;
    overflow:hidden
  }
  .team-name {
    grid-area:name
  }
  .team-email {
    grid-area:email
  }
  .team-numbers {
    grid-area:numbers
  }
  .team-actions-cell {
    grid-area:actions;
    justify-self:end
  }
  .team-table td.team-role,.team-table td.team-status {
    display:none
  }
  .team-person {
    flex:1 1 auto
  }
  .team-pills {
    display:flex;
    flex:none;
    gap:4px;
    align-items:center
  }
  .team-pills .tag {
    flex:none;
    max-width:none
  }
  .team-actions {
    flex-wrap:nowrap;
    justify-content:flex-end
  }
}

.chat-side {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  flex:none
}

.chat-item.is-unread .chat-name {
  font-weight:700
}

.unread-mark {
  font-variant-numeric:tabular-nums
}

#modal[open]:has(#live-product-form),#modal[open]:has(.product-read) {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  overflow:hidden
}

#modal:has(#live-product-form) #modal-content,#modal:has(.product-read) #modal-content {
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:90dvh;
  width:100%
}

#modal:has(#live-product-form) .modal-body,#modal:has(.product-read) .modal-body {
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  max-height:none
}

#modal:has(#live-product-form) .modal-header,#modal:has(.product-read) .modal-header,#modal:has(#live-product-form) .modal-footer,#modal:has(.product-read) .modal-footer {
  flex:none
}

#modal:has(#live-product-form) .modal-header,#modal:has(.product-read) .modal-header {
  align-items:flex-start
}

#modal:has(#live-product-form) .modal-header h2,#modal:has(.product-read) .modal-header h2 {
  min-width:0;
  overflow-wrap:anywhere
}

#modal:has(#live-product-form) .modal-footer {
  flex-wrap:wrap;
  align-items:center
}

#modal:has(#live-product-form) .modal-footer>.btn.primary {
  margin-left:auto
}

#live-form-error {
  flex:1 0 100%;
  margin:0 0 10px;
  font-size:12px;
  line-height:1.45;
  color:#383838
}

#live-product-form,.product-read {
  width:100%;
  max-width:100%;
  min-width:0
}

#live-product-form .detail-grid,#live-product-form .detail-grid>*,#live-product-form .faq-item,#live-product-form .form-field {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere
}

#live-product-form .faq-item {
  display:flex;
  flex-direction:column;
  gap:10px
}

#live-product-form .faq-item>.btn {
  align-self:flex-start
}

#live-product-form .subsidy-free {
  margin-top:0
}

#live-product-form h3+.btn,#live-product-form .faq-item+.btn,#live-product-form .quiet-label+.btn {
  margin-top:14px
}

#live-product-form .disclosure>summary {
  min-width:0;
  overflow-wrap:anywhere
}

#live-product-form .disclosure .detail-grid {
  width:100%
}

#live-product-form .disclosure .detail-grid>* {
  min-width:0;
  max-width:100%
}

#live-product-form>.footnote,.product-read .footnote {
  margin-top:16px
}

#live-product-form textarea,#live-product-form input:not([type=checkbox]):not([type=radio]) {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere
}

#live-product-form textarea {
  overflow-x:hidden
}

.product-read .faq-item,.product-read .faq-item p,.product-read .facts dd,.product-info .quiet-label {
  min-width:0;
  overflow-wrap:anywhere
}

.product-read h3 {
  margin:18px 0 0
}

html:has(#modal[open] #live-product-form),html:has(#modal[open] .product-read) {
  overflow:hidden
}

#modal:has(#live-product-form) #modal-content,#modal:has(.product-read) #modal-content {
  overflow:hidden
}

#modal:has(#live-product-form) .modal-body,#modal:has(.product-read) .modal-body {
  overflow:auto
}

.photo-section {
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  min-width:0;
  margin-top:22px
}

.photo-section h3 {
  margin:0
}

.photo-lead {
  margin:0;
  line-height:1.45;
  overflow-wrap:anywhere
}

.photo-section .photo-list {
  max-height:none;
  overflow:visible;
  margin-top:0
}

.photo-row {
  min-width:0;
  flex-wrap:wrap;
  cursor:default
}

.photo-row:hover {
  background:white
}

.photo-thumb {
  width:64px;
  height:64px;
  flex:none;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:6px;
  background:#f4f4f4
}

.photo-copy {
  flex:1 1 140px;
  min-width:0
}

.photo-copy .pick-name {
  display:block;
  width:100%;
  min-width:0
}

.photo-form {
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  min-width:0
}

.photo-form .form-field {
  width:100%;
  min-width:0
}

.photo-file-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  position:relative;
  width:100%;
  min-width:0
}

.photo-file-name {
  flex:1 1 120px;
  min-width:0;
  overflow-wrap:anywhere
}

.photo-file {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

.photo-section .btn {
  width:auto;
  flex:none
}

.bubble-photo {
  display:block;
  width:100%;
  max-width:220px;
  height:auto;
  max-height:220px;
  object-fit:cover;
  margin:0 0 8px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#f4f4f4
}

.channel-strip .channel-chip {
  position:relative
}

.channel-chip-name {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.channel-strip .channel-chip .channel-state {
  display:inline-flex;
  flex:none
}

.channel-strip .channel-chip .channel-state-ok .icon {
  color:var(--status-ok-ink)
}

.channel-strip .channel-chip .channel-state-warn .icon {
  color:var(--status-warn-mark)
}

.channel-strip .channel-chip .channel-state-bad .icon {
  color:var(--status-bad-ink)
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

.mode-mark.mode-ai,.mode-ai .message-label {
  color:var(--ai-ink)
}

.mode-mark.mode-cs,.mode-cs .message-label {
  color:var(--cs-ink)
}

.mode-ai .bubble {
  background:var(--ai-bg);
  border-color:var(--ai-line);
  color:#383838
}

.mode-cs .bubble {
  background:var(--cs-bg);
  border-color:var(--cs-line);
  color:#383838
}

.mode-mark,.mode-ai .message-label,.mode-cs .message-label,.message-label {
  font-size:12px
}

.chat-item .mode-mark {
  font-size:12px
}

.chat-item .mode-mark .icon,.mode-ai .message-label .icon,.mode-cs .message-label .icon {
  width:14px;
  height:14px
}

.chat-item .chat-top {
  min-width:0
}

.chat-item .chat-title {
  display:block;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden
}

.chat-item .chat-name,.chat-item .chat-preview {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  white-space:normal;
  overflow-wrap:anywhere;
  text-overflow:ellipsis
}

.chat-item .chat-name {
  max-width:100%;
  font-size:12px;
  line-height:1.45
}

.chat-item .chat-preview {
  font-size:12px;
  line-height:1.45;
  max-width:100%
}

.chat-item .chat-time,.chat-item .channel-name,.message-time,.messages .date-label,.bubble-caption,.order-banner small {
  font-size:11px
}

.chat-item .chat-meta {
  min-width:0;
  flex-wrap:wrap;
  gap:8px
}

.chat-item .chat-meta .channel-name {
  min-width:0;
  flex:1 1 80px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.unread-mark {
  background:#383838;
  color:#fff;
  font-size:11px
}

.bubble-caption {
  display:block;
  margin-top:6px;
  line-height:1.45;
  color:#6b6b6b;
  overflow-wrap:anywhere;
  max-width:100%
}

.day-separator {
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0 16px;
  color:#555555;
  font-size:11px;
  font-weight:500;
  line-height:1.35
}

.day-separator:first-child {
  margin-top:2px
}

.day-separator::before,.day-separator::after {
  content:'';
  flex:1 1 24px;
  height:1px;
  background:var(--line)
}

.day-separator>span {
  flex:0 1 auto;
  padding:3px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  text-align:center;
  overflow-wrap:anywhere
}

.order-banner {
  font-size:12px
}

.composer-note {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1 1 auto
}

.composer-reason {
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:#383838
}

.chat-main .composer-footer {
  flex-wrap:wrap;
  row-gap:8px
}

.chat-main .composer-footer .btn {
  font-size:12px
}

.chat-header {
  align-items:flex-start
}

.chat-header>.flex:first-child {
  min-width:0;
  flex:1 1 auto
}

.chat-header .flex.gap6 {
  flex:none
}

.chat-header h3,.chat-header p {
  overflow-wrap:anywhere;
  min-width:0
}

.thread-id {
  min-width:0;
  flex:1 1 auto
}

.thread-order {
  display:flex;
  align-items:center;
  gap:2px;
  min-width:0;
  max-width:100%
}

.thread-order h3 {
  min-width:0
}

.thread-copy {
  width:28px;
  height:28px
}

.thread-copy .icon {
  width:14px;
  height:14px
}

.copy-feedback {
  flex:none;
  font-size:11px;
  line-height:1.3;
  color:#383838
}

/* Subpixel antialiasing tinted the short label Isi blue. */
.buyer-section .facts dt,.modal-body .facts dt {
  color:#6b6b6b;
  -webkit-font-smoothing:antialiased;
  transform:translateZ(0)
}

.copy-feedback:empty {
  display:none
}

.order-banner>span:first-of-type {
  min-width:0;
  overflow-wrap:anywhere
}

.page-inbox .page-head,.page-inbox .page-actions {
  min-width:0
}

.page-inbox .page-actions {
  flex-wrap:wrap;
  justify-content:flex-end
}

.page-inbox .page-actions .quiet-label {
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:right
}

.channel-meta {
  min-width:0;
  align-items:flex-start
}

.channel-meta>span {
  min-width:0;
  overflow-wrap:anywhere
}

@media(max-width:680px) {
  .chat-header h3 {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden
  }
}

#live-product-form .flex.between {
  flex-wrap:wrap;
  align-items:flex-start;
  min-width:0
}

#live-product-form .tag {
  white-space:normal;
  text-align:left;
  max-width:100%
}

.product-info .product-price {
  overflow-wrap:anywhere;
  min-width:0
}

.account-menu>summary {
  width:auto;
  height:32px;
  min-width:32px;
  padding:0 8px 0 3px;
  gap:8px
}

.account-menu>summary .avatar {
  width:26px;
  height:26px
}

.account-menu .account-name {
  max-width:11em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:600;
  color:var(--ink)
}

.account-menu>div {
  top:calc(100% + 6px);
  min-width:220px;
  max-width:min(280px,calc(100vw - 24px));
  padding:6px
}

.account-id {
  padding:8px 10px 6px;
  min-width:0
}

.account-id strong {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:600;
  color:var(--ink)
}

.account-id p {
  margin-top:2px;
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
  overflow-wrap:anywhere
}

.account-menu .menu-rule {
  height:1px;
  margin:4px 6px;
  background:var(--line)
}

button.profile {
  width:100%;
  text-align:left;
  border-radius:8px
}

button.profile:hover {
  background:var(--hover)
}

@media(max-width:950px) {
  .account-menu .account-name {
    display:none
  }
  .account-menu>summary {
    width:32px;
    padding:0;
    justify-content:center
  }
}

@media(max-width:680px) {
  .account-menu>summary {
    width:40px;
    height:40px;
    min-width:40px;
    min-height:40px
  }
  .account-menu>summary .avatar {
    width:28px;
    height:28px
  }
  .account-menu>div>button {
    min-height:40px
  }
}

.sim-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:16px;
  align-items:start;
  min-width:0
}

.sim-layout>.card {
  min-width:0
}

.sim-layout h2 {
  margin-bottom:4px
}

.sim-layout .form-field {
  margin-top:14px
}

.sim-layout>.card>.btn {
  margin-top:16px
}

.sim-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px
}

.sim-actions .btn {
  margin-top:0
}

.sim-phone {
  position:sticky;
  top:16px;
  display:flex;
  flex-direction:column;
  width:390px;
  height:min(844px,calc(100dvh - 248px));
  max-height:min(844px,calc(100dvh - 248px));
  min-width:0;
  min-height:0;
  align-self:start;
  background:var(--surface);
  border-radius:16px;
  box-shadow:0 8px 24px #36363614;
  overflow:hidden
}

.sim-phone .messages {
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
  background:var(--bg)
}

.sim-phone .composer,.sim-phone>.sim-alert,.sim-phone>.quiet-label {
  flex:none
}

.sim-phone .composer textarea {
  resize:none;
  max-height:96px
}

.sim-phone .message {
  min-width:0;
  overflow-wrap:anywhere
}

.sim-phone .bubble {
  overflow-wrap:anywhere;
  white-space:pre-wrap;
  max-width:100%
}

.sim-scalev {
  margin:0 14px 8px
}

.sim-layout textarea {
  min-height:72px
}

.sim-note {
  margin:0 14px 8px;
  border-top:0;
  padding-top:0;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere
}

.sim-note>summary {
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere
}

.sim-note p {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere
}

.sim-handoff,.sim-alert {
  margin:0 14px 8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--soft);
  color:var(--ink);
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere
}

.channel-handler {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  width:100%;
  min-width:0;
  margin:12px 0
}

.channel-handler .form-field {
  width:100%;
  min-width:0;
  max-width:100%
}

.channel-handler select {
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  accent-color:#383838
}

.channel-handler .btn {
  align-self:flex-start
}

.handler-unlinked {
  max-width:100%;
  white-space:normal;
  align-self:flex-start
}

@media(max-width:767px) {
  .sim-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .sim-phone {
    position:static;
    top:auto;
    width:100%;
    max-width:100%;
    height:min(844px,calc(100dvh - 132px));
    max-height:min(844px,calc(100dvh - 132px))
  }
}

/* Motion. Transitions only, so a second hover or close can interrupt.
   Nothing here enters on render(): poll and source-search replace #app. */
.btn,.icon-btn,.tab,.nav,.channel-chip,.inbox-back,.action-menu>summary,.account-menu>summary,.composer-tools button {
  transition:background-color var(--motion-fast) var(--motion-ease),border-color var(--motion-fast) var(--motion-ease),color var(--motion-fast) var(--motion-ease),scale var(--motion-fast) var(--motion-ease);
}

.product-card {
  transition:background-color var(--motion-fast) var(--motion-ease),border-color var(--motion-hover) var(--motion-ease),color var(--motion-fast) var(--motion-ease),scale var(--motion-fast) var(--motion-ease);
}

.btn:not(:disabled):active,.icon-btn:not(:disabled):active,.tab:not(:disabled):active,.nav:not(:disabled):active,.channel-chip:not(:disabled):active,.product-card:not(:disabled):active,.inbox-back:not(:disabled):active,.action-menu>summary:active,.account-menu>summary:active,.composer-tools button:not(:disabled):active {
  scale:var(--motion-press);
}

.gate-actions .btn:not(:disabled):active {
  scale:none
}

.tab:hover {
  color:#383838
}

.tab.active:hover {
  color:#373737
}

.composer-tools button:hover {
  background:var(--soft);
  color:var(--ink)
}

.chat-item,.pick-row,tbody tr,.photo-row {
  transition:background-color var(--motion-hover) var(--motion-ease)
}

.switch-row input[type=checkbox][role=switch],.switch-row input[type=checkbox][role=switch]::before {
  transition:background-color var(--motion-fast) var(--motion-ease),border-color var(--motion-fast) var(--motion-ease);
}

#toast {
  transition:opacity var(--motion-fast) var(--motion-ease)
}

.action-menu>div,.account-menu>div {
  opacity:0;
  transform-origin:top right;
  transition:opacity var(--motion-dropdown-exit) var(--motion-ease),display var(--motion-dropdown-exit) allow-discrete,overlay var(--motion-dropdown-exit) allow-discrete;
  transition-behavior:allow-discrete;
}

.action-menu[open]>div,.account-menu[open]>div {
  opacity:1;
  transition-duration:var(--motion-dropdown-enter);
}

@starting-style {
  .action-menu[open]>div,.account-menu[open]>div {
    opacity:0
  }
}

.action-menu::details-content,.account-menu::details-content {
  transition:content-visibility var(--motion-dropdown-exit) allow-discrete;
  transition-behavior:allow-discrete;
}

.action-menu[open]::details-content,.account-menu[open]::details-content {
  transition-duration:var(--motion-dropdown-enter)
}

dialog {
  opacity:0;
  transform-origin:center;
  transition:opacity var(--motion-modal-exit) var(--motion-ease),overlay var(--motion-modal-exit) allow-discrete,display var(--motion-modal-exit) allow-discrete;
  transition-behavior:allow-discrete;
}

dialog[open] {
  opacity:1;
  transition-duration:var(--motion-modal-enter)
}

@starting-style {
  dialog[open] {
    opacity:0
  }
}

dialog::backdrop {
  opacity:0;
  transition:opacity var(--motion-modal-exit) var(--motion-ease),overlay var(--motion-modal-exit) allow-discrete,display var(--motion-modal-exit) allow-discrete;
  transition-behavior:allow-discrete;
}

dialog[open]::backdrop {
  opacity:1;
  transition-duration:var(--motion-modal-enter)
}

@starting-style {
  dialog[open]::backdrop {
    opacity:0
  }
}

@media(prefers-reduced-motion:no-preference) {
  #toast {
    translate:-50% var(--motion-toast);
    transition:opacity var(--motion-fast) var(--motion-ease),translate var(--motion-fast) var(--motion-ease)
  }
  #toast.show {
    translate:-50% 0
  }
  .action-menu>div,.account-menu>div {
    scale:var(--motion-menu-scale);
    translate:0 calc(var(--motion-shift) * -1);
    transition:opacity var(--motion-dropdown-exit) var(--motion-ease),scale var(--motion-dropdown-exit) var(--motion-ease),translate var(--motion-dropdown-exit) var(--motion-ease),display var(--motion-dropdown-exit) allow-discrete,overlay var(--motion-dropdown-exit) allow-discrete;
  }
  .action-menu[open]>div,.account-menu[open]>div {
    scale:1;
    translate:0 0;
    transition-duration:var(--motion-dropdown-enter)
  }
  @starting-style {
    .action-menu[open]>div,.account-menu[open]>div {
      opacity:0;
      scale:var(--motion-menu-scale);
      translate:0 calc(var(--motion-shift) * -1)
    }
  }
  dialog {
    scale:var(--motion-modal-to);
    transition:opacity var(--motion-modal-exit) var(--motion-ease),scale var(--motion-modal-exit) var(--motion-ease),overlay var(--motion-modal-exit) allow-discrete,display var(--motion-modal-exit) allow-discrete
  }
  dialog[open] {
    scale:1;
    transition-duration:var(--motion-modal-enter)
  }
  @starting-style {
    dialog[open] {
      opacity:0;
      scale:var(--motion-modal-from)
    }
  }
  .disclosure>summary:after,.buyer-section>summary:after {
    rotate:0deg;
    transition:rotate var(--motion-fast) var(--motion-ease)
  }
  .switch-row input[type=checkbox][role=switch]::before {
    transition:background-color var(--motion-fast) var(--motion-ease),translate var(--motion-fast) var(--motion-ease)
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  #toast,#toast.show {
    translate:-50% 0
  }
  .action-menu>div,.account-menu>div,.action-menu[open]>div,.account-menu[open]>div {
    scale:1;
    translate:0 0
  }
  dialog,dialog[open] {
    scale:1
  }
  .disclosure>summary:after,.buyer-section>summary:after {
    transition-property:none
  }
  .switch-row input[type=checkbox][role=switch]::before {
    transition-property:background-color,border-color
  }
  /* Opacity can still fade. Display and content-visibility snap, so a closed dialog is gone immediately and a menu item can take focus in the same turn. */
    dialog,dialog::backdrop,.action-menu::details-content,.account-menu::details-content {
    transition-property:opacity
  }
}
