:root {
  color-scheme: dark;
  --ink: #ececec;
  --muted: #b4b4b4;
  --line: #303030;
  --orange: #ececec;
  --paper: #212121;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #212121;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #858585;
  outline-offset: 3px;
}
.app-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 64px;
  background: #303030;
  border-right: 1px solid #303030;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding: 23px 0;
  z-index: 10;
}
.rail-brand {
  text-decoration: none;
  position: relative;
  font:
    italic 29px Georgia,
    serif;
  color: #ececec;
  letter-spacing: -3px;
  margin: 0 0 20px;
  padding-right: 3px;
}
.rail-brand span {
  position: absolute;
  right: -5px;
  top: -4px;
  font: 10px Arial;
  color: var(--orange);
  letter-spacing: 0;
}
.rail-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #b4b4b4;
}
.rail-icon svg {
  width: 20px;
  height: 20px;
}
.rail-icon.active {
  background: #212121;
  color: #ececec;
  box-shadow: 0 2px 5px #ececec;
}
.rail-icon:hover {
  color: #ececec;
  background: #212121;
}
.rail-spacer {
  flex: 1;
}
.rail-person {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #303030;
  color: #ececec;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.app-header {
  height: 88px;
  margin-left: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 29px;
  border-bottom: 1px solid #303030;
  background: #212121;
}
.workspace-name {
  font-size: 11px;
  color: #b4b4b4;
}
.workspace-name > span {
  margin: 0 8px;
  color: #858585;
}
.app-header h1 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 7px 0 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.header-actions a {
  font-size: 12px;
  color: #ececec;
  text-decoration: none;
}
.header-actions a span {
  margin-left: 6px;
  color: #b4b4b4;
}
.environment {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #b4b4b4;
  border: 1px solid #303030;
  border-radius: 4px;
  padding: 5px 7px;
  background: #212121;
}
.quiet-button {
  border: 1px solid #303030;
  border-radius: 6px;
  color: #b4b4b4;
  font-size: 11px;
  padding: 8px 11px;
  background: transparent;
}
.quiet-button:hover {
  background: #212121;
}
.app-main {
  margin-left: 64px;
  padding: 20px 22px 12px;
}
.inbox-layout {
  height: calc(100dvh - 129px);
  min-height: 500px;
  display: grid;
  grid-template-columns: 268px minmax(300px, 1fr) 258px;
  background: #212121;
  border: 1px solid #303030;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 2px 5px #ececec;
}
.conversation-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #303030;
  background: #212121;
  min-height: 0;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 14px;
}
.list-heading h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.list-heading h2 > span {
  font-size: 11px;
  font-weight: 400;
  color: #b4b4b4;
  padding-left: 7px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #b4b4b4;
  padding: 4px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 17px;
}
.icon-button:hover {
  background: #212121;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 17px;
  border: 1px solid #303030;
  border-radius: 6px;
  padding: 9px 10px;
  background: #212121;
}
.search-field svg {
  width: 13px;
  height: 13px;
  color: #b4b4b4;
  flex-shrink: 0;
}
.search-field input {
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: none;
  min-width: 0;
  width: 100%;
  color: #ececec;
}
.search-field input::placeholder {
  color: #b4b4b4;
}
.list-tabs {
  display: flex;
  gap: 15px;
  margin: 17px 18px 0;
  border-bottom: 1px solid #303030;
}
.list-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: #b4b4b4;
  font-size: 11px;
  padding: 0 0 10px;
  white-space: nowrap;
}
.list-tabs button.selected {
  border-color: #ececec;
  color: #ececec;
}
.list-tabs button span {
  font-size: 10px;
  margin-left: 3px;
  padding: 1px 3px;
  background: #212121;
  color: #b4b4b4;
  border-radius: 3px;
}
.list-section-label {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #b4b4b4;
  padding: 19px 18px 10px;
  display: flex;
  justify-content: space-between;
}
.live-dot {
  width: 4px;
  height: 4px;
  display: inline-block;
  border-radius: 50%;
  background: #b4b4b4;
}
.queue {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #303030 transparent;
  padding: 0 8px;
}
.chat {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 14px 10px;
  margin-bottom: 3px;
  text-align: left;
  color: #ececec;
}
.chat.selected {
  background: #212121;
  border-color: #303030;
}
.chat:hover {
  background: #212121;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  background: #303030;
  color: #b4b4b4;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.chat.selected .chat-avatar {
  background: #303030;
  color: #ececec;
}
.chat-content {
  min-width: 0;
  flex: 1;
}
.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.chat-top strong {
  font-size: 12px;
  font-weight: 600;
  color: #ececec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-top time {
  font-size: 9px;
  color: #b4b4b4;
  white-space: nowrap;
}
.chat-preview {
  font-size: 11px;
  line-height: 1.6;
  color: #b4b4b4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 6px 0 7px;
}
.chat-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #b4b4b4;
}
.chat-state {
  background: #303030;
  padding: 3px 5px;
  border-radius: 4px;
  color: #b4b4b4;
}
.chat-state.human {
  background: #303030;
  color: #ececec;
}
.chat-state.waiting {
  background: #303030;
  color: #b4b4b4;
}
.chat-bottom .chat-ref {
  margin-left: auto;
  color: #b4b4b4;
}
.list-footer {
  padding: 12px 18px;
  font-size: 10px;
  color: #b4b4b4;
  border-top: 1px solid #303030;
  display: flex;
  align-items: center;
  gap: 6px;
}
.queue-empty {
  font-size: 13px;
  color: #b4b4b4;
  text-align: center;
  line-height: 1.8;
  padding: 30px 13px;
}
.conversation-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #212121;
}
.empty-conversation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 30px;
}
.empty-icon {
  font-size: 50px;
  color: #858585;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #b4b4b4;
}
.empty-conversation h2 {
  font:
    400 29px Georgia,
    serif;
  letter-spacing: -0.6px;
  color: #ececec;
  margin: 17px 0;
}
.empty-conversation p {
  font-size: 13px;
  line-height: 1.9;
  color: #b4b4b4;
  margin: 0;
}
.empty-conversation a {
  font-size: 11px;
  margin-top: 28px;
  color: #ececec;
  text-underline-offset: 4px;
}
.conversation-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.conversation-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 21px 21px 18px;
  border-bottom: 1px solid #303030;
  flex-shrink: 0;
}
.conversation-avatar {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #303030;
  color: #b4b4b4;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.conversation-heading {
  flex: 1;
  min-width: 0;
}
.conversation-heading h2 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 6px;
  color: #ececec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-heading p {
  font-size: 10px;
  color: #b4b4b4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.channel-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b4b4b4;
}
.meta-divider {
  margin: 0 3px;
  color: #858585;
}
.control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 20px;
  border-bottom: 1px solid #303030;
  background: #212121;
  flex-shrink: 0;
}
.control-label {
  font-size: 10px;
  color: #b4b4b4;
  display: flex;
  align-items: center;
  gap: 5px;
}
.control-label:before {
  content: '✳';
  color: #b4b4b4;
  font-size: 14px;
}
.control-label.human:before {
  content: '●';
  font-size: 9px;
  color: #b4b4b4;
}
.control-actions {
  display: flex;
  gap: 7px;
}
.take-button {
  background: #ececec;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  padding: 8px 10px;
}
.take-button span {
  margin-left: 8px;
}
.control-actions .quiet-button {
  font-size: 10px;
  padding: 7px 8px;
}
.conversation-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 24px;
  background: #212121;
  scrollbar-width: thin;
  scrollbar-color: #303030 transparent;
  overscroll-behavior: contain;
}
.day-divider {
  text-align: center;
  font-size: 9px;
  color: #b4b4b4;
  margin: 0 0 26px;
  letter-spacing: 0.08em;
}
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 18px 0;
}
.message-row.customer {
  justify-content: flex-start;
}
.message-row.system,
.message-row.agent {
  justify-content: flex-end;
}
.message-avatar {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #303030;
  color: #b4b4b4;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
.message-row.agent .message-avatar {
  background: #303030;
  color: #ececec;
}
.message-row.system .message-avatar {
  background: #303030;
  color: #ececec;
}
.message-content {
  max-width: 88%;
  min-width: 0;
}
.message-row.system .message-content,
.message-row.agent .message-content {
  max-width: 87%;
}
.message-author {
  font-size: 9px;
  color: #b4b4b4;
  margin: 0 0 5px 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.message-row.system .message-author,
.message-row.agent .message-author {
  justify-content: flex-end;
}
.message-bubble {
  background: #212121;
  border: 1px solid #303030;
  border-radius: 10px 10px 10px 2px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.75;
  color: #ececec;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-row.system .message-bubble {
  background: #212121;
  border-color: #303030;
  border-radius: 10px 10px 2px 10px;
}
.message-row.agent .message-bubble {
  background: #212121;
  border-color: #303030;
  border-radius: 10px 10px 2px 10px;
}
.message-time {
  font-size: 9px;
  color: #b4b4b4;
  margin-top: 5px;
}
.message-row.system .message-time,
.message-row.agent .message-time {
  text-align: right;
}
.message-bubble a {
  color: #ececec;
  text-underline-offset: 3px;
}
.reply-composer {
  border: 1px solid #303030;
  border-radius: 9px;
  margin: 14px 20px 0;
  background: #212121;
  flex-shrink: 0;
}
.reply-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #212121;
  border-bottom: 1px solid #303030;
  padding: 10px 12px;
  font-size: 11px;
  color: #b4b4b4;
  border-radius: 9px 9px 0 0;
}
.reply-label > span:last-child {
  font-size: 9px;
  color: #b4b4b4;
}
.reply-composer textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.7;
  padding: 13px 14px;
  resize: none;
  outline: none;
  display: block;
  color: #ececec;
  min-height: 70px;
  max-height: 180px;
}
.reply-composer textarea::placeholder {
  color: #b4b4b4;
}
.reply-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 10px;
}
.reply-toolbar > span {
  font-size: 9px;
  color: #b4b4b4;
  flex: 1;
}
.primary-button {
  border: 0;
  border-radius: 6px;
  background: #ececec;
  color: #fff;
  font-size: 11px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.primary-button:disabled {
  background: #858585;
  color: #fff;
  opacity: 0.75;
}
.conversation-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #b4b4b4;
  padding: 10px 21px 14px;
  gap: 8px;
  flex-shrink: 0;
}
.customer-context {
  border-left: 1px solid #303030;
  background: #212121;
  overflow: auto;
  padding: 21px 18px;
  scrollbar-width: thin;
  scrollbar-color: #303030 transparent;
}
.context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.context-header h2 {
  font-size: 12px;
  font-weight: 550;
  color: #ececec;
  margin: 0;
}
.context-placeholder {
  text-align: center;
  margin-top: 80px;
}
.context-placeholder-avatar {
  font-size: 50px;
  color: #858585;
  margin-bottom: 25px;
}
.context-placeholder p {
  font:
    22px Georgia,
    serif;
  line-height: 1.3;
  color: #b4b4b4;
}
.context-placeholder span {
  font-size: 11px;
  color: #b4b4b4;
}
.profile-card {
  text-align: center;
  padding: 9px 0 23px;
  border-bottom: 1px solid #303030;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: auto;
  background: #303030;
  border-radius: 15px;
  color: #b4b4b4;
  font-size: 14px;
  font-weight: 500;
}
.profile-card h3 {
  font-size: 15px;
  font-weight: 550;
  color: #ececec;
  margin: 11px 0 6px;
}
.profile-card > p {
  font-size: 10px;
  color: #b4b4b4;
  line-height: 1.7;
  margin: 0 0 12px;
}
.identity-badge {
  display: inline-block;
  border: 1px solid #303030;
  border-radius: 5px;
  padding: 5px 7px;
  background: #212121;
  font-size: 9px;
  color: #b4b4b4;
}
.identity-badge.verified {
  background: #212121;
  border-color: #303030;
  color: #b4b4b4;
}
.profile-card .subtle-note {
  font-size: 10px;
  color: #b4b4b4;
  line-height: 1.7;
  margin: 12px 1px 0;
}
.context-section {
  border-bottom: 1px solid #303030;
  padding: 19px 0;
}
.context-section h3 {
  font-size: 12px;
  font-weight: 550;
  color: #ececec;
  margin: 0 0 13px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 11px;
}
.section-title h3 {
  margin: 0;
}
.ai-tag {
  font-size: 9px;
  color: #b4b4b4;
  border: 1px solid #303030;
  background: #212121;
  border-radius: 4px;
  padding: 3px 5px;
}
.brief-card {
  background: #212121;
  border: 1px solid #303030;
  border-radius: 8px;
  padding: 11px 12px;
  color: #ececec;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.brief-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #b4b4b4;
  margin: 0 0 4px;
}
.brief-card p {
  margin: 0 0 11px;
}
.brief-card p:last-child {
  margin: 0;
}
.subtle-note {
  font-size: 10px;
  color: #b4b4b4;
  line-height: 1.75;
  margin: 10px 0 0;
}
.shopify-label {
  font-size: 9px;
  color: #b4b4b4;
  white-space: nowrap;
}
.order-card {
  display: block;
  border: 1px solid #303030;
  border-radius: 7px;
  background: #212121;
  width: 100%;
  padding: 11px;
  text-align: left;
  margin: 8px 0;
  color: #ececec;
}
.order-card:hover {
  border-color: #b4b4b4;
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
}
.order-top strong {
  font-size: 12px;
  font-weight: 600;
}
.order-state {
  font-size: 9px;
  text-transform: capitalize;
  background: #212121;
  color: #b4b4b4;
  padding: 3px 4px;
  border-radius: 3px;
}
.order-meta {
  font-size: 9px;
  color: #b4b4b4;
  margin-top: 7px;
}
.order-detail {
  border: 1px solid #303030;
  background: #212121;
  border-radius: 7px;
  padding: 11px;
  margin-top: 9px;
  font-size: 10px;
  color: #b4b4b4;
  line-height: 1.8;
}
.order-detail h4 {
  font-size: 11px;
  font-weight: 550;
  margin: 0 0 7px;
}
.order-detail p {
  margin: 5px 0;
}
.context-facts {
  margin: 0;
  font-size: 10px;
  color: #b4b4b4;
}
.context-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.context-facts dt {
  color: #b4b4b4;
}
.context-facts dd {
  margin: 0;
  text-align: right;
}
.app-status {
  margin: 8px 3px 0;
  font-size: 10px;
  color: #ececec;
  min-height: 12px;
}
.login-panel {
  width: min(370px, 100%);
  margin: 50px auto;
  padding: 36px 30px;
  background: #212121;
  border: 1px solid #303030;
  border-radius: 14px;
  box-shadow: 0 10px 50px #ececec;
}
.login-mark {
  display: block;
  position: relative;
  width: 38px;
  font:
    italic 35px Georgia,
    serif;
  color: #b4b4b4;
  letter-spacing: -4px;
  margin-bottom: 28px;
}
.login-mark > span {
  font: 11px Arial;
  position: absolute;
  top: 0;
  right: -4px;
  color: var(--orange);
}
.login-panel h2 {
  font:
    30px/1.2 Georgia,
    serif;
  color: #ececec;
  margin: 15px 0;
}
.login-panel > p {
  font-size: 12px;
  color: #b4b4b4;
  line-height: 1.8;
}
.login-panel form {
  margin-top: 23px;
}
.login-panel label {
  display: block;
  font-size: 10px;
  color: #b4b4b4;
  margin: 13px 0 7px;
}
.login-panel input {
  width: 100%;
  border: 1px solid #303030;
  background: #212121;
  border-radius: 6px;
  padding: 11px;
  color: #ececec;
  font-size: 13px;
}
.login-panel .primary-button {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
}
.login-panel .login-note {
  font-size: 9px;
  margin-top: 22px;
  color: #b4b4b4;
}
.back-list,
#context-close,
#context-toggle {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .inbox-layout {
    grid-template-columns: 242px minmax(280px, 1fr) 230px;
  }
  .customer-context {
    padding: 20px 15px;
  }
  .app-main {
    padding: 16px 15px 9px;
  }
  .app-header {
    padding: 0 22px;
  }
  .conversation-head {
    padding: 18px 17px;
  }
  .conversation-messages {
    padding: 18px;
  }
  .control-strip {
    padding: 10px 15px;
    gap: 7px;
  }
  .control-actions {
    gap: 5px;
  }
  .control-label {
    font-size: 9px;
  }
  .take-button {
    font-size: 10px;
    padding: 8px;
  }
  .control-actions .quiet-button {
    font-size: 9px;
    padding: 7px 6px;
  }
}
@media (max-width: 950px) {
  .inbox-layout {
    grid-template-columns: 242px minmax(300px, 1fr);
  }
  .customer-context {
    display: none;
  }
  .customer-context.is-open {
    display: block;
    position: fixed;
    right: 18px;
    top: 104px;
    bottom: 28px;
    width: 270px;
    z-index: 20;
    border: 1px solid #303030;
    border-radius: 10px;
    box-shadow: 0 8px 60px #ececec;
    background: #212121;
  }
  #context-close,
  #context-toggle {
    display: grid;
  }
  .conversation-head #context-toggle {
    display: flex;
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .app-rail {
    width: 48px;
    padding-top: 22px;
  }
  .rail-brand {
    font-size: 23px;
  }
  .app-header,
  .app-main {
    margin-left: 48px;
  }
  .app-header {
    height: 76px;
    padding: 0 17px;
  }
  .workspace-name {
    font-size: 9px;
  }
  .app-header h1 {
    font-size: 20px;
  }
  .header-actions {
    gap: 9px;
  }
  .header-actions a {
    display: none;
  }
  .header-actions .quiet-button {
    padding: 6px;
    font-size: 10px;
  }
  .environment {
    font-size: 9px;
    padding: 4px;
  }
  .app-main {
    padding: 10px;
  }
  .inbox-layout {
    height: calc(100dvh - 113px);
    min-height: 420px;
    display: block;
    position: relative;
  }
  .conversation-list {
    height: 100%;
  }
  .conversation-pane {
    display: none;
  }
  .inbox-layout.has-selection .conversation-list {
    display: none;
  }
  .inbox-layout.has-selection .conversation-pane {
    display: flex;
    height: 100%;
  }
  .back-list {
    display: grid;
  }
  .conversation-head {
    gap: 8px;
    padding: 16px 13px;
  }
  .conversation-heading h2 {
    font-size: 14px;
  }
  .conversation-heading p {
    font-size: 9px;
  }
  .conversation-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 11px;
  }
  .conversation-messages {
    padding: 16px 13px;
  }
  .reply-composer {
    margin: 10px 12px 0;
  }
  .conversation-footer {
    padding: 9px 14px 12px;
    font-size: 9px;
  }
  .customer-context.is-open {
    right: 10px;
    top: 91px;
    bottom: 23px;
    width: calc(100vw - 77px);
    max-width: 285px;
  }
  .login-panel {
    padding: 28px 22px;
    margin: 22px auto;
  }
  .control-strip {
    padding: 10px 12px;
  }
  .app-status {
    font-size: 9px;
  }
  .message-content {
    max-width: 90%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 700px) {
  .reply-composer textarea,
  .login-card input {
    font-size: 16px;
  }
}

/* State changes move once; background polling is intentionally quiet. */
.chat,
.list-tabs button,
.quiet-button,
.take-button,
.icon-button,
.order-card {
  transition:
    background-color 160ms,
    border-color 160ms,
    box-shadow 160ms,
    transform 160ms;
}
.reply-composer {
  transition:
    border-color 160ms,
    box-shadow 160ms;
}
@media (hover: hover) and (pointer: fine) {
  .chat:hover {
    transform: translateX(2px);
  }
  .take-button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px #ececec;
  }
  .order-card:hover {
    transform: translateY(-1px);
  }
}
.take-button:not(:disabled):active,
.icon-button:active {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .inbox-layout *,
  .app-header *,
  .login-panel * {
    transition: none !important;
    animation: none !important;
  }
  .chat:hover,
  .take-button:not(:disabled):hover,
  .order-card:hover,
  .take-button:not(:disabled):active,
  .icon-button:active {
    transform: none;
  }
}

/* Visit Furniture workspace: quiet navigation, readable conversation, optional context. */
:root {
  --ink: #ececec;
  --muted: #b4b4b4;
  --line: #353535;
  --paper: #212121;
  --orange: #e6b58a;
}
body {
  background: #212121;
}
.app-rail {
  background: #171717;
  border-color: #292929;
  width: 60px;
}
.rail-brand,
.login-mark {
  color: #f0d4b8;
}
.rail-icon {
  color: #b4b4b4;
}
.rail-icon.active,
.rail-icon:hover {
  background: #303030;
  color: #fff;
  box-shadow: none;
}
.rail-person {
  background: #49413a;
  color: #f3dfcc;
}
.app-header {
  height: 72px;
  margin-left: 60px;
  padding: 0 24px;
  background: #212121;
  border-color: #303030;
}
.workspace-name {
  color: #a9a9a9;
  font-size: 12px;
}
.app-header h1 {
  font-size: 20px;
  color: #ececec;
}
.header-actions a {
  color: #c4c4c4;
}
.environment {
  background: #292929;
  color: #c5c5c5;
  border-color: #404040;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.app-main {
  margin-left: 60px;
  padding: 0;
}
.inbox-layout {
  height: calc(100dvh - 72px);
  min-height: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.conversation-list {
  background: #171717;
  border-color: #303030;
}
.list-heading {
  padding: 24px 18px 18px;
}
.list-heading h2 {
  font-size: 14px;
}
.search-field {
  background: #232323;
  border-color: #353535;
  border-radius: 12px;
  padding: 12px;
}
.search-field input {
  color: #ececec;
  font-size: 13px;
}
.search-field input::placeholder {
  color: #aaa;
}
.list-tabs {
  gap: 7px;
  border: 0;
  margin-top: 14px;
}
.list-tabs button {
  border: 0;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 12px;
  color: #b4b4b4;
}
.list-tabs button.selected {
  color: #fff;
  background: #333;
}
.list-tabs button span {
  background: transparent;
  color: inherit;
}
.list-section-label {
  color: #969696;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.chat {
  padding: 13px 10px;
  border: 0;
  border-radius: 12px;
}
.chat:hover,
.chat.selected {
  background: #303030;
  transform: none;
}
.chat-top strong {
  color: #ececec;
  font-size: 13px;
}
.chat-preview {
  color: #b4b4b4;
  font-size: 12px;
}
.chat-avatar,
.chat.selected .chat-avatar {
  background: #41403e;
  color: #f0d4b8;
  border-radius: 50%;
}
.chat-state {
  background: #303b36;
  color: #a5d4bc;
}
.chat-state.human {
  background: #303a46;
  color: #b9d4ef;
}
.chat-state.waiting {
  background: #483d2c;
  color: #f0d09a;
}
.list-footer {
  border-color: #303030;
  color: #a0a0a0;
}
.conversation-pane,
.conversation-messages {
  background: #212121;
}
.empty-icon {
  color: #e6c9ac;
}
.empty-conversation h2 {
  font:
    500 30px/1.25 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #f1f1f1;
  letter-spacing: -0.8px;
}
.empty-conversation p {
  color: #b4b4b4;
  font-size: 14px;
}
.empty-conversation a {
  color: #d9c1a9;
  font-size: 13px;
}
.conversation-head {
  padding: 19px 28px;
  border-color: #333;
}
.conversation-heading h2 {
  color: #f0f0f0;
  font-size: 16px;
}
.conversation-heading p {
  font-size: 11px;
  color: #aaa;
}
.conversation-avatar {
  background: #393939;
  color: #ddd;
  border-radius: 50%;
}
.control-strip {
  background: #212121;
  border-color: #303030;
  padding: 10px 28px;
}
.control-label {
  font-size: 12px;
  color: #b4b4b4;
}
.take-button,
.primary-button {
  background: #ececec;
  color: #202020;
  border-radius: 20px;
  font-size: 12px;
  padding: 10px 15px;
}
.primary-button:disabled {
  background: #424242;
  color: #aaa;
}
.quiet-button {
  border-color: #454545;
  color: #dedede;
  border-radius: 20px;
  font-size: 12px;
}
.quiet-button:hover,
.icon-button:hover {
  background: #363636;
}
.icon-button {
  color: #b4b4b4;
  width: 32px;
  height: 32px;
}
.conversation-messages {
  padding: 24px max(24px, calc((100% - 760px) / 2));
  scrollbar-color: #555 transparent;
}
.message-row {
  margin: 24px 0;
  align-items: flex-start;
}
.message-row.system,
.message-row.agent {
  justify-content: flex-start;
}
.message-row.customer {
  justify-content: flex-end;
}
.message-avatar {
  background: #383838;
  color: #ddd;
  border-radius: 50%;
}
.message-row.system .message-avatar,
.message-row.agent .message-avatar {
  background: #3d3934;
  color: #efd2b4;
}
.message-author {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 8px;
}
.message-row.system .message-author,
.message-row.agent .message-author {
  justify-content: flex-start;
}
.message-bubble {
  background: #303030;
  border: 0;
  border-radius: 20px;
  color: #ececec;
  font-size: 15px;
  line-height: 1.8;
  padding: 13px 18px;
}
.message-row.system .message-bubble,
.message-row.agent .message-bubble {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 2px;
}
.message-row.system .message-time,
.message-row.agent .message-time {
  text-align: left;
}
.message-time {
  color: #999;
  font-size: 10px;
  margin-top: 9px;
}
.message-bubble a {
  color: #d7c4ad;
}
.reply-composer {
  width: calc(100% - 48px);
  max-width: 780px;
  align-self: center;
  margin: 12px 24px 0;
  background: #303030;
  border-color: #474747;
  border-radius: 22px;
  box-shadow: 0 8px 30px #0002;
}
.reply-label {
  background: transparent;
  border: 0;
  color: #cfcfcf;
  padding: 14px 18px 0;
}
.reply-composer textarea {
  color: #eee;
  font-size: 15px;
  padding: 14px 18px;
}
.reply-composer textarea::placeholder {
  color: #aaa;
}
.reply-toolbar {
  padding: 4px 12px 12px;
}
.reply-toolbar > span {
  color: #aaa;
  font-size: 10px;
}
.conversation-footer {
  max-width: 828px;
  width: 100%;
  align-self: center;
  padding: 12px 24px 18px;
  color: #999;
}
.customer-context {
  display: none;
  background: #191919;
  border-color: #353535;
  padding: 24px 20px;
}
.inbox-layout.context-open {
  grid-template-columns: 280px minmax(0, 1fr) 290px;
}
.customer-context.is-open {
  display: block;
}
#context-close,
#context-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.context-header h2 {
  color: #eee;
  font-size: 14px;
}
.profile-card h3,
.context-section h3 {
  color: #e2e2e2;
}
.profile-card,
.context-section {
  border-color: #353535;
}
.profile-avatar {
  background: #363636;
  color: #eee;
  border-radius: 50%;
}
.brief-card,
.order-card,
.order-detail {
  background: #262626;
  color: #d0d0d0;
  border-color: #414141;
  border-radius: 12px;
}
.brief-card {
  font-size: 12px;
}
.subtle-note,
.profile-card .subtle-note {
  color: #aaa;
}
.identity-badge,
.ai-tag {
  color: #c7c7c7;
  background: #303030;
  border-color: #444;
}
.identity-badge.verified {
  background: #253b30;
  color: #b0dfc5;
  border-color: #385947;
}
.login-panel {
  margin: 8vh auto;
  width: min(420px, calc(100% - 32px));
  background: #262626;
  border-color: #414141;
  padding: 38px;
  border-radius: 24px;
  box-shadow: none;
}
.login-panel h2 {
  font:
    500 30px/1.25 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #eee;
}
.login-panel > p,
.login-panel label {
  color: #b4b4b4;
}
.login-panel input {
  background: #303030;
  border-color: #505050;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
}
.login-panel .primary-button {
  padding: 14px 18px;
}
.app-status:empty {
  display: none;
}
.app-status:not(:empty) {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  background: #383838;
  border: 1px solid #555;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  z-index: 40;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-color: #b6cde2;
}
.search-field:focus-within,
.reply-composer:focus-within {
  border-color: #888;
}
@media (max-width: 1100px) {
  .inbox-layout.context-open {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .inbox-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .customer-context.is-open {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: 300px;
    z-index: 20;
    border: 1px solid #454545;
    border-radius: 0;
    background: #191919;
    box-shadow: -20px 0 60px #0004;
  }
}
@media (max-width: 700px) {
  .app-rail {
    width: 44px;
  }
  .app-main,
  .app-header {
    margin-left: 44px;
  }
  .app-header {
    height: 72px;
    padding: 0 12px;
  }
  .workspace-name {
    font-size: 10px;
  }
  .header-actions {
    gap: 6px;
  }
  .inbox-layout,
  .inbox-layout.context-open {
    display: block;
    height: calc(100dvh - 72px);
  }
  .conversation-head {
    padding: 14px 12px;
  }
  .conversation-messages {
    padding: 16px 12px;
  }
  .control-strip {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .reply-composer {
    width: calc(100% - 24px);
    margin: 8px 12px 0;
  }
  .reply-label {
    gap: 8px;
  }
  .reply-composer textarea {
    font-size: 16px;
  }
  .reply-toolbar > span {
    display: none;
  }
  .reply-toolbar .primary-button {
    margin-left: auto;
  }
  .customer-context.is-open {
    width: calc(100vw - 44px);
    max-width: 320px;
    top: 72px;
    bottom: 0;
    right: 0;
  }
  .message-bubble {
    font-size: 14px;
    padding: 12px;
  }
  .login-panel {
    padding: 24px;
    margin-top: 28px;
  }
}
.message-row.system .message-avatar,
.message-row.agent .message-avatar {
  order: -1;
}
