:root {
  color-scheme: light;
  --text: #202137;
  --muted: #626780;
  --hairline: #e8e8f1;
  --primary: #6144c8;
  --primary-strong: #5434b7;
  --primary-pale: #f0ebfe;
  --surface: #ffffff;
  --canvas: #f7f7fa;
  --rose: #a52c4c;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font-size: 1rem; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
a { text-decoration: none; color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a48afc; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; flex-shrink: 0; width: 1.1rem; height: 1.1rem; }
[data-icon] { display: inline-grid; place-items: center; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px;
  border: 1px solid transparent; border-radius: 9px; padding: 8px 12px; font-weight: 650;
  font-size: .875rem; white-space: nowrap; line-height: 1.1; transition: background .16s, border-color .16s;
}
.icon-button { padding: 0; width: 35px; min-height: 35px; background: transparent; }
.primary { background: var(--primary); color: #fff; }
.primary:hover:not(:disabled) { background: var(--primary-strong); }
.secondary { background: #fff; border-color: var(--hairline); }
.secondary:hover:not(:disabled) { border-color: #c7b7f0; background: #fbfaff; }
.ghost { background: transparent; color: var(--muted); }
.ghost:hover:not(:disabled) { background: #f3f0fa; color: var(--text); }
.brand-icon {
  flex: 0 0 38px; display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: #a78bff; color: #211445; 
}
.brand-icon svg { width: 24px; height: 24px; }
.avatar {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px;
  font-size: .8rem; font-weight: 750; flex-shrink: 0; color: #6744bc; background: #efe9fd; 
}
.avatar.tone-1 { background: #f9e8e9; color: #90435b; }
.avatar.tone-2 { background: #e7f4ef; color: #23735e; }
.avatar.tone-3 { background: #f9f0dc; color: #825a17; }
.avatar.tone-4 { background: #e9eefb; color: #435ea3; }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 660;
  padding: 4px 7px; border-radius: 6px; white-space: nowrap; line-height: 1.25;
}
.status-pill.waiting, .status-pill.retry, .status-pill.review { background: #fff2da; color: #8c5412; }
.status-pill.active, .status-pill.demo { background: #efe9ff; color: #5e42b4; }
.status-pill.bot, .status-pill.sent, .status-pill.ready { background: #e6f6ef; color: #1d755a; }
.status-pill.closed, .status-pill.blocked, .status-pill.pending, .status-pill.sending { background: #f0f1f5; color: #5c6174; }
.status-pill.failed { background: #fce9ef; color: #982848; }
.error { color: var(--rose); font-size: .875rem; }
.error.notice { margin: 0 0 12px; border-radius: 8px; background: #fcebf1; padding: 9px 12px; }
.empty-text { color: var(--muted); font-size: .9rem; padding: 16px; }
input, textarea { color: var(--text); }
input::placeholder, textarea::placeholder { color: #6c7187; opacity: 1; }
