@font-face {
  font-family: Manrope;
  src: url("assets/manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #253e35;
  --muted: #58664f;
  --paper: #f7f8f4;
  --line: #e1e6df;
  --green: #244b3a;
  --accent: #b3ce78;
  --soft: #edf2e7;
  --white: #fff;
  --warning: #8f5c21;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
}
button svg,
a svg {
  vertical-align: middle;
  flex-shrink: 0;
}
svg {
  flex-shrink: 0;
}
button {
  color: inherit;
}
a:hover {
  color: #37602d;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #638339;
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #ccd6cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 42px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #6e8c58;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--green);
}
label {
  line-height: 1.5;
}
small {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 99;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  background: #fff;
  padding: 12px;
  border: 2px solid var(--green);
}
.skip-link:focus {
  transform: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.8px;
}
.brand img {
  border-radius: 8px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.5;
  color: #526348;
  display: block;
}
.flag {
  width: 17px;
  height: 12px;
  background: linear-gradient(#2677c5 50%, #f2cf5a 50%);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.primary:hover {
  background: #345b44;
  color: #fff;
}
.secondary {
  background: #fff;
}
.secondary:hover {
  background: var(--soft);
}
.danger {
  background: #fff8f6;
  color: #8b3d32;
  border-color: #e6c6bf;
}
.full {
  width: 100%;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 0;
  background: transparent;
  border-radius: 7px;
}
.icon-button:hover {
  background: var(--soft);
}
.outline {
  border: 1px solid var(--line);
  background: #fff;
}
.text-link,
.text-button {
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-button {
  padding: 6px 0;
  background: none;
  border: 0;
  text-align: left;
}
.badge,
.role-pill {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 7px;
  line-height: 1.4;
  color: #667268;
  background: #f7f9f5;
  display: inline-flex;
  width: fit-content;
  white-space: normal;
}
.badge.success {
  color: #355a30;
  background: #eaf3df;
  border-color: #dce8cb;
}
.badge.warning {
  color: #85531e;
  background: #fbf0dc;
  border-color: #f0dec2;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #5f7c42;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.offline,
.dot.muted {
  background: #8a9387;
}
.form-error {
  font-size: 14px;
  color: #a53d32;
  margin-top: 10px;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 15px 21px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px #20352625;
  font-size: 14px;
  line-height: 1.5;
}
.toast.error {
  background: #8d4237;
}
/* Entry */
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-intro {
  background: #eaf0df;
  position: relative;
  padding: 55px 8vw 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.login-intro:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #bed2a2;
  border-radius: 50%;
  bottom: -305px;
  right: -125px;
  box-shadow:
    0 0 0 65px #dce7cd55,
    0 0 0 130px #dce7cd35;
  pointer-events: none;
}
.login-intro .brand {
  position: absolute;
  top: 46px;
}
.login-intro > .eyebrow {
  margin: 90px 0 24px;
}
.login-intro h1 {
  font-size: clamp(34px, 3.6vw, 60px);
  line-height: 1.18;
  letter-spacing: -2.2px;
}
.login-intro h1 em {
  font-style: normal;
  color: #658143;
}
.login-intro > p {
  max-width: 380px;
  margin-top: 25px;
  font-size: 14px;
}
.login-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 76px;
  font-size: 12px;
  z-index: 1;
}
.login-panel {
  max-width: 430px;
  padding: 60px 30px;
  width: 100%;
  margin: auto;
}
.login-icon {
  width: 49px;
  height: 49px;
  border-radius: 13px;
  background: #e6edde;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 25px;
}
.login-panel h2 {
  font-size: 25px;
  margin-bottom: 13px;
}
.login-panel > p {
  font-size: 13px;
  margin-bottom: 28px;
}
.login-panel form label {
  font-weight: 700;
  font-size: 13px;
  display: block;
}
.login-panel input {
  margin: 9px 0 17px;
}
.login-panel form .button {
  width: 100%;
  justify-content: space-between;
  padding: 14px 16px;
}
.private-note {
  display: flex;
  align-items: start;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 27px;
}
.private-note > span {
  font-size: 20px;
}
.private-note p {
  font-size: 12px;
}
.login-panel > .text-link {
  margin-top: 30px;
  color: #526449;
}
/* Workspace */
.app-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 100dvh;
}
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 190px;
  background: #f3f5ee;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: 27px 14px 0;
}
.rail .brand {
  margin: 0 7px 28px;
  font-size: 25px;
}
.workspace-switch {
  border: 1px solid #dce3d5;
  background: #f9faf6;
  border-radius: 8px;
  padding: 11px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 27px;
}
.workspace-switch small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.workspace-switch .flag {
  width: 13px;
  height: 9px;
  margin-left: auto;
}
.workspace-logo {
  border-radius: 6px;
  background: #dae4c7;
  font-size: 13px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 28px;
  flex-shrink: 0;
}
.nav-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 1.1px;
  color: #526348;
  margin: 0 11px 10px;
}
.nav-caption.second {
  margin-top: 27px;
}
.rail nav a,
.rail-bottom > a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 11px;
  font-size: 13px;
  margin: 3px 0;
  color: #61705f;
}
.rail nav a.active,
.rail-bottom > a.active {
  background: #e2eacb;
  color: #2a4529;
  font-weight: 700;
}
.rail a:hover {
  background: #eaf0df;
}
.rail a.brand:hover {
  background: none;
}
.rail nav i {
  font-style: normal;
  font-size: 11px;
  margin-left: auto;
  border-radius: 4px;
  min-width: 18px;
  text-align: center;
  background: #fff9;
  padding: 2px 4px;
}
.rail-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.rail-bottom > a {
  font-size: 12px;
}
.rail-bottom > a > span:last-child:not(:first-child) {
  margin-left: auto;
}
.operator {
  border-top: 1px solid var(--line);
  margin: 18px -14px 0;
  padding: 18px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.5;
}
.operator small {
  display: block;
  font-size: 10px;
}
.operator-avatar {
  background: #d7deca;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
}
.operator button {
  margin-left: auto;
  width: 24px;
}
.workspace-main {
  grid-column: 2;
  min-width: 0;
}
.app-topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 29px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #526348;
}
.breadcrumb strong {
  color: var(--ink);
  font-size: 13px;
}
.topbar-end {
  display: flex;
  gap: 18px;
  align-items: center;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.test-badge {
  font-size: 10px;
  letter-spacing: 1px;
  color: #526348;
  border: 1px solid #e6e9de;
  border-radius: 4px;
  padding: 5px 7px;
}
.mobile-only {
  display: none;
}
#view {
  outline: none;
  min-width: 0;
}
.page-content {
  max-width: 1440px;
  padding: 37px 35px 65px;
  margin: auto;
}
.page-content.narrow {
  max-width: 1010px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 29px;
  margin: 11px 0 10px;
}
.page-heading p {
  font-size: 13px;
  max-width: 650px;
}
.page-heading > .button {
  flex-shrink: 0;
}
.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-card h2 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 9px;
}
.panel-card > p,
.card-heading p {
  font-size: 13px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.card-heading h2 {
  margin-bottom: 5px;
}
.card-heading > .badge {
  flex-shrink: 0;
}
.field {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 17px;
}
.field input,
.field select,
.field textarea {
  margin-top: 7px;
  font-weight: 400;
  font-size: 14px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.microcopy {
  font-size: 12px !important;
  line-height: 1.7;
  margin-top: 15px;
}
.small-note,
.notice {
  font-size: 12px;
  line-height: 1.7;
  background: var(--paper);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  margin: 20px 0;
}
.small-note + .text-link {
  margin-top: 3px;
}
.status-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  border-radius: 6px;
  background: var(--soft);
  padding: 11px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 13px;
  color: #53634b;
}
.status-note.warning {
  color: #835522;
  background: #fbf2e3;
}
.status-note.success {
  color: #3e662f;
  background: #eef6e7;
}
.empty-state {
  padding: 55px 25px;
  text-align: center;
}
.empty-state > svg {
  margin: 0 auto 17px;
  opacity: 0.6;
}
.empty-state h2 {
  font-size: 21px;
}
.empty-state p {
  margin: 15px auto 20px;
  max-width: 400px;
}
.inline-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}
/* Conversations */
.dialog-workspace {
  height: calc(100dvh - 68px);
  min-height: 600px;
  display: grid;
  grid-template-columns: 228px minmax(270px, 1fr) 259px;
  background: #fff;
}
.inbox-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #fcfcf9;
  overflow: auto;
}
.panel-title {
  padding: 27px 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-title h1 {
  font-size: 24px;
}
.panel-title span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.inbox-caption {
  font-size: 9px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px 16px;
  color: #526348;
}
.inbox-caption .dot {
  width: 4px;
  height: 4px;
}
.persona-list {
  padding: 0 8px;
}
.persona-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: none;
  border-radius: 8px;
  padding: 14px 9px;
  margin-bottom: 4px;
  position: relative;
  min-height: 82px;
}
.persona-row.selected {
  background: #edf2e2;
  border-color: #dce7cc;
}
.persona-row:hover {
  background: #f0f3ea;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e6eccc;
  color: #526348;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}
.avatar.small {
  width: 34px;
  height: 34px;
}
.avatar.large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.avatar.sage {
  background: #e0e9cc;
  color: #526348;
}
.avatar.sand {
  background: #f0e4cd;
  color: #526348;
}
.avatar.lavender {
  background: #e8e3f2;
  color: #526348;
}
.avatar.rose {
  background: #f0e0dc;
  color: #526348;
}
.avatar.blue {
  background: #dce8ea;
  color: #56858a;
}
.avatar.peach {
  background: #f1e2d3;
  color: #526348;
}
.persona-row-text {
  min-width: 0;
  flex: 1;
}
.person-name {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.person-name small {
  font-size: 10px;
  font-weight: 400;
}
.person-label {
  font-size: 10px;
  display: block;
  color: #526348;
  margin-top: 4px;
}
.preview-text {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #526348;
  margin-top: 8px;
}
.unread-dot {
  width: 5px;
  height: 5px;
  background: #c58b4f;
  position: absolute;
  right: 9px;
  bottom: 16px;
  border-radius: 50%;
}
.inbox-tip {
  margin: 24px 17px 18px;
  padding: 17px 14px;
  border: 1px solid #e4e8d9;
  border-radius: 9px;
  background: #f6f8ef;
}
.inbox-tip > svg {
  color: #82905f;
  margin-bottom: 8px;
}
.inbox-tip h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.inbox-tip p {
  font-size: 11px;
}
.inbox-tip a {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 15px;
  font-weight: 700;
}
.inbox-bottom {
  margin-top: auto;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.inbox-bottom > span:last-child {
  margin-left: auto;
}
.inbox-bottom .flag {
  width: 12px;
  height: 8px;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 24px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}
.chat-header h2 {
  font-size: 15px;
}
.chat-header p {
  font-size: 11px;
  margin-top: 4px;
}
.chat-header p span {
  margin: 0 4px;
  color: #bbc2b5;
}
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.role-pill {
  font-size: 10px;
  background: #fff;
}
.conversation-notice {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #526348;
  padding: 12px 15px;
  border-bottom: 1px solid #f1f3ed;
  background: #fdfefa;
}
.chat-log {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 25px 22px;
  min-height: 130px;
  background-image: radial-gradient(#78876613 0.5px, transparent 0.5px);
  background-size: 14px 14px;
}
.chat-date {
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #8b9283;
  margin-bottom: 26px;
}
.message-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 21px;
}
.message-content {
  max-width: 90%;
  min-width: 0;
}
.message-author {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 7px 2px;
}
.message-author > span {
  font-size: 9px;
  color: #526348;
  font-weight: 400;
  background: #f0f3e9;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 3px;
}
.assistant-avatar {
  background: var(--green);
  color: #dbe8c5;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -1px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 18px;
}
.assistant-avatar.human {
  background: #607b95;
  letter-spacing: 0;
  font-size: 13px;
}
.message-bubble {
  font-size: 13px;
  line-height: 1.8;
  background: #f2f5ed;
  border: 1px solid #e5ebdd;
  border-radius: 0 11px 11px 11px;
  padding: 13px 15px;
  overflow-wrap: anywhere;
}
.message-bubble time {
  display: block;
  font-size: 9px;
  text-align: right;
  margin-top: 5px;
  line-height: 1;
  color: #526348;
}
.message-row.customer {
  justify-content: flex-end;
}
.customer .message-bubble {
  background: #e3edda;
  border-color: #dce6d1;
  border-radius: 11px 0 11px 11px;
}
.customer .message-content {
  max-width: 84%;
}
.customer .message-bubble time {
  color: #4d6341;
}
.system-message {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.65;
  padding: 12px 15px;
  background: #fafaf5;
  border: 1px dashed #dfe6d4;
  border-radius: 7px;
  margin: 16px 0;
  color: #6f7d63;
}
.system-message svg {
  margin-top: 2px;
}
.conversation-start {
  text-align: center;
  margin: 35px 0 15px;
}
.conversation-start > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #9aa780;
  border: 1px dashed #cbd7b8;
  border-radius: 50%;
  margin-bottom: 14px;
}
.conversation-start h3 {
  font-size: 14px;
  margin-bottom: 9px;
}
.conversation-start p {
  font-size: 12px;
  line-height: 1.8;
}
.composer-area {
  padding: 15px 22px 17px;
  border-top: 1px solid var(--line);
}
.suggested-prompts {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 1px 1px 12px;
  scrollbar-width: thin;
}
.suggested-prompts button {
  background: #fff;
  border: 1px solid #dfe6d4;
  font-size: 11px;
  padding: 7px 9px;
  white-space: nowrap;
  border-radius: 6px;
  color: #647456;
}
.suggested-prompts button span {
  margin-left: 9px;
}
.composer {
  border: 1px solid #cbd7bf;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 5px #33442205;
}
.composer textarea {
  border: 0;
  padding: 3px 0;
  min-height: 46px;
  resize: none;
  font-size: 13px;
  outline: none;
}
.composer:focus-within {
  outline: 2px solid #9fb78b;
  outline-offset: 1px;
}
.composer textarea:focus {
  outline: none;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.composer-bottom > span {
  font-size: 9px;
  color: #526348;
}
.send-button {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 7px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 11px;
  font-size: 9px;
  color: #526348;
}
.composer-footer > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.composer-footer > button {
  background: none;
  border: 0;
  font-size: 10px;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 3px 0;
}
.typing {
  font-size: 12px;
}
.typing > span {
  display: inline-block;
  margin-left: 8px;
  color: #648843;
  letter-spacing: 3px;
}
.chat-error {
  padding: 13px;
  border: 1px solid #e5c9c1;
  border-radius: 8px;
  background: #fff8f5;
  margin: 15px 0;
}
.chat-error p {
  font-size: 13px;
  margin-bottom: 9px;
}
.recommendation {
  border: 1px solid #d8e3c9;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 90px 1fr;
}
.recommendation-art {
  background: #f4f4eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.recommendation-art svg {
  width: 100%;
  height: auto;
}
.recommendation > div:last-child {
  padding: 13px;
}
.recommendation h3 {
  font-size: 14px;
  margin: 5px 0 8px;
}
.recommendation strong {
  font-size: 13px;
}
.recommendation p {
  font-size: 11px;
  margin: 6px 0 12px;
}
.recommendation .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.recommendation .button {
  font-size: 11px;
  min-height: 30px;
  padding: 6px 9px;
}
.context-panel {
  background: #fcfcf9;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.context-tabs {
  height: 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  padding: 0 19px;
  gap: 25px;
}
.context-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  background: none;
  padding: 0 2px;
  color: #526348;
}
.context-tabs button.active {
  color: var(--ink);
  border-bottom-color: #608347;
  font-weight: 700;
}
.context-body {
  padding: 23px 21px;
}
.context-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.context-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}
.context-heading .icon-button {
  width: 24px;
  height: 24px;
}
.profile-summary {
  text-align: center;
  margin-top: 16px;
}
.profile-summary .avatar {
  width: 54px;
  height: 54px;
  font-size: 18px;
}
.profile-summary h3 {
  font-size: 17px;
  margin: 11px 0 5px;
}
.profile-summary p {
  font-size: 11px;
}
.profile-description {
  font-size: 12px;
  margin: 18px 0;
}
.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 11px;
  padding: 17px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-details dt {
  color: #526348;
}
.profile-details dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
.need-card {
  margin-top: 21px;
  background: #f0f4e4;
  border: 1px solid #e1e8cf;
  border-radius: 7px;
  padding: 12px;
}
.need-card > span {
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.7px;
  font-size: 9px;
  color: #526348;
}
.need-card p {
  font-size: 12px;
  margin-top: 8px;
  color: #536547;
}
.context-subhead {
  font-size: 12px;
  font-weight: 700;
  margin: 22px 0 10px;
}
.owned-products > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin-bottom: 8px;
  color: #526348;
}
.owned-products p {
  font-size: 11px;
}
.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
}
.consent-card .dot {
  margin-top: 4px;
}
.consent-card small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.telegram-button {
  border: 1px solid #dce3d3;
  border-radius: 7px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  font-size: 11px;
  padding: 11px 7px;
  margin-top: 26px;
}
.context-footnote {
  display: block;
  font-size: 10px;
  text-align: center;
  color: #526348;
  line-height: 1.6;
  margin-top: 13px;
}
.context-body > h3 {
  font-size: 19px;
  margin: 13px 0;
}
.context-body > p {
  font-size: 13px;
}
/* Customer and catalogue cards */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.customer-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.customer-card h2 {
  font-size: 22px;
}
.customer-card .city {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.customer-card > p {
  font-size: 13px;
  margin: 14px 0 17px;
}
.customer-card .need-card {
  margin: 0 0 17px;
  flex: 1;
}
.customer-card .card-facts {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.customer-card > .button {
  margin-top: 15px;
  width: 100%;
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-visual {
  position: relative;
  background: #efeee4;
  min-height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-visual > svg {
  width: 100%;
  height: 130px;
  max-width: 250px;
}
.product-visual > .badge {
  position: absolute;
  left: 15px;
  top: 15px;
  background: #ffffffb0;
}
.product-body {
  padding: 21px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body .product-code {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: #86917d;
}
.product-body h2 {
  font-size: 18px;
  margin: 9px 0 12px;
}
.product-body > p {
  font-size: 13px;
}
.product-body .product-facts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.product-facts > span {
  font-size: 11px;
  background: #f5f7f0;
  border-radius: 4px;
  padding: 4px 6px;
  color: #6d7a63;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  gap: 10px;
}
.product-footer strong {
  font-size: 20px;
}
.product-care {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.product-care summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}
.product-care p {
  margin-top: 10px;
}
.catalogue-note {
  margin-top: 25px;
  font-size: 13px;
  color: var(--muted);
}
/* Scenarios and support */
.clock-banner {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #eaf0df;
  border: 1px solid #dce5ce;
  border-radius: 11px;
  padding: 20px 23px;
  margin-bottom: 24px;
}
.clock-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #dce6ca;
  color: #56753e;
}
.clock-banner strong {
  display: block;
  font-size: 18px;
  margin-top: 5px;
}
.clock-banner form {
  display: flex;
  gap: 11px;
  align-items: flex-end;
  margin-left: auto;
}
.clock-banner label {
  font-size: 11px;
  max-width: 110px;
}
.clock-banner input {
  margin-top: 5px;
  font-size: 14px;
  min-height: 35px;
  padding: 8px 9px;
}
.clock-banner .button {
  min-height: 36px;
  font-size: 12px;
}
.automation-grid,
.two-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.automation-grid > .panel-card {
  margin-bottom: 22px;
}
.policy-card {
  background: #f9fbf3;
}
.policy-card > h2 {
  font-size: 24px;
  margin: 17px 0 14px;
}
.policy-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0;
}
.policy-principles > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.policy-principles strong {
  font-size: 42px;
  font-weight: 400;
  color: #6e8553;
}
.policy-principles span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  font-size: 12px;
  border-bottom: 1px solid #e7ecdf;
}
.checks li > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3edd7;
  color: #54743e;
}
.checks .blocked {
  color: #8b5d28;
}
.checks .blocked > span {
  background: #f5e9d6;
  color: #936021;
}
.scenario-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 21px;
}
.scenario-button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
  padding: 15px;
  font-size: 12px;
  line-height: 1.5;
}
.scenario-button svg {
  color: #7e9066;
}
.scenario-button:hover {
  background: #edf3e2;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  color: #526348;
  font-weight: 400;
  padding: 11px 14px;
  background: #f7f9f3;
  white-space: nowrap;
}
td {
  padding: 15px 14px;
  border-bottom: 1px solid #edf0e6;
  min-width: 115px;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.5;
  max-width: 280px;
}
td strong {
  font-size: 13px;
}
.support-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.case-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}
.case-item {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 19px;
}
.case-item.selected {
  background: #eef3e3;
  border-color: #cbdab3;
}
.case-item h3 {
  font-size: 17px;
  margin: 12px 0 6px;
}
.case-item p {
  font-size: 13px;
  margin: 5px 0 14px;
}
.case-item small {
  font-size: 10px;
}
.case-context {
  padding: 13px;
  background: #f4f7ee;
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  border-radius: 7px;
  margin: 18px 0;
}
.case-history {
  max-height: 370px;
  overflow: auto;
  margin-bottom: 20px;
}
.case-message {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.case-message > span {
  font-size: 11px;
  font-weight: 700;
}
.case-message p {
  font-size: 13px;
  margin-top: 6px;
  white-space: pre-line;
}
.case-detail .form-actions .button {
  font-size: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric-card {
  padding: 21px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric-card > span {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.metric-card > span svg {
  color: #8d9f75;
}
.metric-card > strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1.5px;
  margin: 22px 0 12px;
}
.metric-card > p {
  font-size: 11px;
}
.measure-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.measure-row:last-child {
  border: 0;
}
.measure-row strong {
  font-size: 17px;
  color: var(--ink);
}
.economics-note {
  background: #eef3e3;
}
.economics-note h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 16px 0 20px;
}
.economics-note > p {
  margin-bottom: 15px;
}
.economics-note .text-link {
  margin-top: 8px;
}
.decision-history article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.decision-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f1e8;
  color: #7f8567;
  flex-shrink: 0;
}
.decision-dot.positive {
  background: #e5efd6;
  color: #648540;
}
.decision-history h3 {
  font-size: 14px;
  letter-spacing: 0;
}
.decision-history h3 > span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}
.decision-history p {
  font-size: 13px;
  margin: 7px 0;
}
.decision-history small {
  font-size: 11px;
}
.integration-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.integration-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #e9efdf;
  border-radius: 12px;
}
.integration-card p {
  font-size: 14px;
  margin: 7px 0 15px;
}
.integration-model {
  font-size: 12px;
  color: var(--muted);
  margin-left: 9px;
}
.checkbox-label {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.6;
  margin: 13px 0 20px;
  font-weight: 400;
}
.checkbox-label input {
  flex-shrink: 0;
  margin-top: 2px;
}
.switch {
  display: inline-flex;
  position: relative;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}
.switch > span {
  display: inline-block;
  width: 39px;
  height: 23px;
  border-radius: 20px;
  background: #d7dfce;
  position: relative;
}
.switch > span:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 4px #0002;
}
.switch input:checked + span {
  background: var(--green);
}
.switch input:checked + span:after {
  left: 19px;
}
.switch input:focus-visible + span {
  outline: 3px solid #78964f;
  outline-offset: 3px;
}
/* Modal */
dialog {
  padding: 0;
  border: 1px solid #d8e1cf;
  border-radius: 15px;
  max-width: 570px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 20px 100px #162a3540;
  background: #fff;
}
dialog::backdrop {
  background: #203c305c;
  backdrop-filter: blur(3px);
}
#modal-body {
  padding: 34px;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
}
#modal-body > h2 {
  font-size: 25px;
  margin: 11px 20px 13px 0;
}
#modal-body > p {
  font-size: 14px;
  margin: 12px 0 25px;
}
#modal-body > .eyebrow {
  margin-top: 5px;
}
.modal-product {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px;
  background: #f6f6ee;
  border-radius: 10px;
  margin: 20px 0;
}
.modal-product svg {
  width: 65%;
  max-height: 140px;
}
.modal-product strong {
  font-size: 24px;
}
.days-fieldset,
.owned-fieldset {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 8px;
}
.days-fieldset legend,
.owned-fieldset legend {
  font-size: 12px;
  font-weight: 700;
  padding: 0 5px;
}
.days-fieldset > div {
  display: flex;
  justify-content: space-between;
  gap: 7px;
}
.days-fieldset label {
  position: relative;
  flex: 1;
}
.days-fieldset input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}
.days-fieldset span {
  display: block;
  border-radius: 5px;
  padding: 8px 2px;
  text-align: center;
  background: #f2f5eb;
  font-size: 13px;
}
.days-fieldset input:checked + span {
  background: #dce8c8;
  color: #375728;
  font-weight: 700;
}
.days-fieldset input:focus-visible + span {
  outline: 2px solid var(--green);
}
.owned-fieldset .checkbox-label {
  margin: 8px 0;
}
.context-body .checks li {
  font-size: 11px;
}
@media (min-width: 1500px) {
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .rail {
    width: 218px;
    padding-left: 19px;
    padding-right: 19px;
  }
  .dialog-workspace {
    grid-template-columns: 260px minmax(300px, 1fr) 295px;
  }
  .chat-log {
    padding: 25px 40px;
  }
  .chat-header,
  .composer-area {
    padding-left: 32px;
    padding-right: 32px;
  }
  .message-bubble {
    font-size: 13px;
  }
  .context-body {
    padding: 26px;
  }
  .persona-row {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .person-name {
    font-size: 13px;
  }
  .preview-text {
    font-size: 12px;
  }
  .context-body p {
    font-size: 13px;
  }
}
@media (max-width: 1190px) {
  .app-shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .rail {
    width: 175px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .dialog-workspace {
    grid-template-columns: 210px minmax(260px, 1fr) 230px;
  }
  .context-body {
    padding: 18px 16px;
  }
  .chat-header {
    padding: 17px;
  }
  .role-pill {
    display: none;
  }
  .chat-log {
    padding: 18px;
  }
  .composer-area {
    padding: 14px;
  }
  .composer-footer > span {
    max-width: 165px;
    line-height: 1.5;
  }
  .page-content {
    padding: 30px 24px 50px;
  }
  .customer-grid,
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clock-banner {
    flex-wrap: wrap;
  }
  .clock-banner form {
    margin-left: auto;
  }
  .clock-banner strong {
    font-size: 16px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scenario-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1020px) {
  .dialog-workspace {
    grid-template-columns: 215px minmax(270px, 1fr);
  }
  .context-panel {
    display: none;
  }
  .app-topbar {
    padding: 0 22px;
  }
  .topbar-end {
    gap: 12px;
  }
  .test-badge {
    display: none;
  }
  .support-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .automation-grid,
  .two-panels {
    gap: 16px;
  }
  .panel-card {
    padding: 20px;
  }
  .clock-banner form {
    width: 100%;
    margin: 0;
  }
  .clock-banner label {
    max-width: none;
    flex: 1;
  }
  .clock-banner form button {
    flex: 1;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    font-size: 12px;
  }
  .login-intro {
    padding: 50px 6vw;
  }
  .login-intro h1 {
    letter-spacing: -1.7px;
  }
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .rail {
    transform: translateX(-100%);
    width: 218px;
    box-shadow: 10px 0 30px #20302015;
  }
  .menu-open .rail {
    transform: translateX(0);
  }
  .workspace-main {
    grid-column: 1;
  }
  .mobile-only {
    display: inline-flex;
  }
  .app-topbar {
    height: 59px;
    padding: 0 15px;
    gap: 10px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 11px;
    gap: 8px;
  }
  .topbar-end {
    gap: 6px;
  }
  .dialog-workspace {
    height: calc(100dvh - 59px);
  }
  .page-content {
    padding: 29px 21px 45px;
  }
  .support-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .login-screen {
    grid-template-columns: 1fr 1fr;
  }
  .login-intro {
    padding: 100px 30px 50px;
    justify-content: flex-start;
  }
  .login-intro h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }
  .login-intro .brand {
    top: 35px;
  }
  .login-intro > .eyebrow {
    margin-top: 65px;
    font-size: 10px;
  }
  .login-intro > p {
    font-size: 14px;
  }
  .login-panel {
    padding: 45px 25px;
  }
  .login-panel h2 {
    font-size: 23px;
  }
  .login-foot {
    font-size: 11px;
    line-height: 1.6;
    max-width: 200px;
  }
}
@media (max-width: 600px) {
  .login-screen {
    display: block;
  }
  .login-intro {
    padding: 31px 28px 35px;
    min-height: 340px;
  }
  .login-intro .brand {
    position: static;
    font-size: 26px;
  }
  .login-intro > .eyebrow {
    margin: 30px 0 15px;
  }
  .login-intro h1 {
    font-size: 33px;
    letter-spacing: -1.3px;
  }
  .login-intro h1 br:first-child {
    display: none;
  }
  .login-intro > p {
    font-size: 14px;
    margin-top: 19px;
  }
  .login-foot {
    display: none;
  }
  .login-panel {
    padding: 32px 28px 40px;
    max-width: none;
  }
  .login-icon {
    display: none;
  }
  .login-panel h2 {
    font-size: 22px;
  }
  .login-panel > p {
    font-size: 14px;
  }
  .login-panel > .text-link {
    margin-top: 22px;
  }
  .app-topbar {
    height: 56px;
  }
  .breadcrumb > span:first-child,
  .breadcrumb > span:nth-child(2) {
    display: none;
  }
  .breadcrumb strong {
    font-size: 14px;
  }
  .live-badge {
    font-size: 10px;
  }
  .dialog-workspace {
    height: calc(100dvh - 56px);
    min-height: 640px;
    display: flex;
    flex-direction: column;
  }
  .inbox-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    flex-shrink: 0;
  }
  .inbox-panel .panel-title,
  .inbox-caption,
  .inbox-tip,
  .inbox-bottom {
    display: none;
  }
  .persona-list {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: none;
  }
  .persona-row {
    flex: 0 0 66px;
    width: 66px;
    min-height: 79px;
    padding: 7px 4px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0;
    border-radius: 8px;
    text-align: center;
  }
  .persona-row .avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .person-name {
    font-size: 11px;
    display: block;
  }
  .person-name small,
  .person-label,
  .preview-text,
  .unread-dot {
    display: none;
  }
  .persona-row-text {
    flex: none;
  }
  .chat-panel {
    flex: 1;
    min-height: 0;
  }
  .chat-header {
    padding: 13px 18px;
    min-height: 64px;
  }
  .chat-header h2 {
    font-size: 14px;
  }
  .chat-header p {
    font-size: 11px;
  }
  .chat-header-actions .role-pill {
    display: inline-flex;
    font-size: 9px;
  }
  .conversation-notice {
    padding: 8px;
    font-size: 9px;
  }
  .chat-log {
    padding: 15px 16px;
  }
  .chat-date {
    margin-bottom: 20px;
  }
  .message-bubble {
    font-size: 14px;
    padding: 12px 13px;
  }
  .message-content {
    max-width: 89%;
  }
  .message-author {
    font-size: 11px;
  }
  .chat-log .message-row {
    margin-bottom: 18px;
  }
  .composer-area {
    padding: 11px 13px 13px;
  }
  .composer textarea {
    font-size: 14px;
    min-height: 40px;
  }
  .composer-bottom > span {
    font-size: 9px;
  }
  .composer-footer > span {
    max-width: none;
    font-size: 6px;
  }
  .composer-footer > button {
    font-size: 9px;
  }
  .suggested-prompts {
    padding-bottom: 9px;
  }
  .suggested-prompts button {
    font-size: 11px;
  }
  .conversation-start {
    margin: 20px 0 5px;
  }
  .conversation-start h3 {
    font-size: 13px;
  }
  .conversation-start p {
    font-size: 11px;
  }
  .recommendation {
    grid-template-columns: 80px 1fr;
  }
  .page-content {
    padding: 26px 17px 45px;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 27px;
    line-height: 1.3;
    margin-top: 11px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .customer-grid,
  .catalogue-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .customer-card {
    padding: 23px;
  }
  .customer-card > p {
    font-size: 14px;
  }
  .customer-card .need-card p {
    font-size: 13px;
  }
  .catalogue-grid .product-visual {
    min-height: 200px;
  }
  .product-visual > svg {
    height: 160px;
  }
  .product-body {
    padding: 24px;
  }
  .product-body h2 {
    font-size: 22px;
  }
  .product-body > p {
    font-size: 14px;
  }
  .automation-grid,
  .two-panels {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel-card {
    padding: 21px;
    margin-bottom: 17px;
  }
  .panel-card h2 {
    font-size: 18px;
  }
  .clock-banner {
    padding: 17px;
    gap: 11px;
  }
  .clock-banner strong {
    font-size: 16px;
  }
  .clock-banner form {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
  }
  .clock-banner label {
    flex-basis: 40%;
  }
  .clock-banner form .button {
    flex-basis: 100%;
    margin-top: 3px;
  }
  .policy-card h2 {
    font-size: 23px;
  }
  .scenario-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .scenario-button {
    font-size: 11px;
    padding: 12px 10px;
    gap: 7px;
  }
  .scenario-button svg {
    width: 16px;
  }
  .queue-panel .card-heading {
    flex-direction: column;
  }
  .support-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .case-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow: auto;
    gap: 10px;
    padding-bottom: 3px;
    margin-bottom: 16px;
  }
  .case-item {
    flex: 0 0 230px;
    padding: 17px;
  }
  .case-item h3 {
    font-size: 16px;
  }
  .case-detail {
    width: 100%;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric-card {
    padding: 16px 13px;
  }
  .metric-card > span {
    font-size: 11px;
    min-height: 27px;
    gap: 4px;
  }
  .metric-card > span svg {
    width: 15px;
  }
  .metric-card > strong {
    font-size: 28px;
    margin-top: 19px;
  }
  .metric-card > p {
    font-size: 10px;
  }
  .metric-card .currency {
    font-size: 15px;
  }
  .economics-note h2 {
    font-size: 26px;
  }
  .integration-card {
    gap: 13px;
  }
  .integration-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }
  .integration-icon svg {
    width: 20px;
  }
  .integration-card h2 {
    font-size: 17px;
  }
  .integration-card p {
    font-size: 13px;
  }
  .integration-model {
    display: block;
    margin: 10px 0 0;
    font-size: 11px;
  }
  .card-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .decision-history h3 > span {
    display: block;
    margin: 5px 0 0;
  }
  .decision-history p {
    font-size: 12px;
  }
  .toast {
    font-size: 13px;
    padding: 13px 16px;
    bottom: 15px;
  }
  #modal-body {
    padding: 27px 22px;
  }
  #modal-body > h2 {
    font-size: 23px;
  }
  .field-pair {
    gap: 10px;
  }
  .days-fieldset > div {
    gap: 4px;
  }
  .days-fieldset {
    padding: 10px;
  }
  .days-fieldset span {
    font-size: 12px;
  }
  .modal-product strong {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.customer-card h2 small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 7px;
}
.customer-label {
  font-size: 12px;
  margin-top: 7px;
  color: #526348;
}
.customer-need {
  display: flex;
  align-items: start;
  gap: 8px;
  background: #f2f6e9;
  padding: 14px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.7;
  color: #526348;
  margin-bottom: 20px;
  flex: 1;
}
.customer-need svg {
  margin-top: 3px;
}
.customer-card-footer {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.customer-card-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.customer-card-footer strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-top: 4px;
}
.customer-card-footer .button {
  font-size: 11px;
  padding: 9px 10px;
}
.notice {
  display: flex;
  align-items: start;
  gap: 9px;
}
.notice > svg {
  margin-top: 2px;
}
.stock-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  padding: 5px 7px;
  border-radius: 4px;
  background: #ffffffc0;
  color: #607b44;
}
.stock-badge.out {
  color: #8c5c31;
}
.product-fact {
  display: flex;
  align-items: start;
  gap: 6px;
  font-size: 12px;
  color: #526348;
  margin: 16px 0;
}
.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 0 17px;
  padding-top: 10px;
}
.product-price strong {
  font-size: 22px;
}
.product-body details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.7;
}
.product-body summary {
  cursor: pointer;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.product-body details p {
  margin-top: 12px;
}
.product-visual.stone {
  background: #ecebe8;
}
.product-visual.board {
  background: #f0eadb;
}

.chat-header p {
  font-size: 11px;
}
.message-bubble {
  font-size: 14px;
}
.context-body p {
  font-size: 12px;
}
.context-footnote {
  font-size: 10px;
}
.customer-card-footer .button {
  font-size: 11px;
}
.avatar.sky {
  background: #dce8ea;
  color: #3e666c;
}
.avatar.sage {
  color: #4d6233;
}
.avatar.sand {
  color: #765a24;
}
.avatar.rose {
  color: #835349;
}
.avatar.peach {
  color: #7a5332;
}
.avatar.lavender {
  color: #665080;
}
.chat-header-actions {
  gap: 4px;
}
.inbox-caption {
  font-size: 8px;
}
.nav-caption {
  font-size: 9px;
}
.workspace-switch {
  font-size: 10px;
}
.workspace-switch small {
  font-size: 9px;
}
.operator {
  font-size: 10px;
}
.operator small {
  font-size: 9px;
}
.composer-bottom > span {
  font-size: 9px;
}
.composer-footer > span {
  font-size: 9px;
}
.composer-footer > button {
  font-size: 10px;
}
.person-name small {
  font-size: 9px;
}
.test-badge {
  font-size: 9px;
}
.product-body summary {
  font-size: 11px;
}
.message-bubble time {
  font-size: 9px;
}
.clock-banner label {
  max-width: 120px;
}
.conversation-notice {
  font-size: 10px;
}
@media (max-width: 600px) {
  .composer-footer > span {
    font-size: 8px;
    max-width: 170px;
  }
  .composer-footer > button {
    font-size: 9px;
  }
  .conversation-notice {
    font-size: 9px;
  }
  .person-name {
    font-size: 10px;
  }
  .inbox-panel .avatar {
    width: 32px;
    height: 32px;
  }
  .chat-header p {
    font-size: 10px;
  }
  .message-bubble {
    font-size: 13px;
  }
  .composer-bottom > span {
    font-size: 8px;
  }
  .customer-card-footer .button {
    font-size: 11px;
  }
  .scenario-button {
    font-size: 11px;
  }
  .live-badge {
    font-size: 10px;
  }
}

/* Conversation-level review and restart */
.session-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #f7f9f2;
  flex-shrink: 0;
}
.session-tools > span {
  font-size: 11px;
  color: #526348;
  white-space: nowrap;
}
.session-tools > div {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.session-tools button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 7px;
  font-size: 11px;
}
.session-tools button:hover {
  background: #e8efdc;
  border-color: #d2dec2;
}
.session-tools small {
  font-size: 10px;
  background: #e1ebd3;
  border-radius: 4px;
  padding: 1px 4px;
  color: #43583a;
}
.session-selector {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 2px 2px 13px;
  margin: 18px 0;
}
.session-selector .button {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11px;
}
.session-selector .primary small {
  color: #fff;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin: 10px 0 18px;
  color: #58664f;
}
.history-heading .button {
  font-size: 10px;
  padding: 8px 10px;
}
.saved-transcript {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.saved-message {
  padding: 13px 15px;
  background: #f2f5ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.saved-message.customer {
  background: #e5eedb;
  margin-left: 22px;
}
.saved-message.system {
  background: #fafaf6;
}
.saved-message > div,
.saved-feedback > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.saved-message strong,
.saved-feedback strong {
  font-size: 11px;
}
.saved-message time,
.saved-feedback time {
  font-size: 9px;
  color: #58664f;
  flex-shrink: 0;
}
.saved-message p,
.saved-feedback p {
  font-size: 12px;
  color: #344b3d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
  line-height: 1.7;
}
.saved-message .badge {
  font-size: 10px;
}
.feedback-list {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.feedback-list h3 {
  font-size: 16px;
  margin-bottom: 15px;
}
.feedback-list > p {
  font-size: 12px;
}
.saved-feedback {
  border: 1px solid #d7e3c5;
  background: #f4f8eb;
  border-radius: 8px;
  padding: 15px;
  margin-top: 12px;
}
.saved-feedback details {
  margin-top: 13px;
}
.saved-feedback summary {
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  color: #415b33;
}
.saved-feedback details .saved-transcript {
  margin-top: 15px;
}
.saved-feedback .saved-message.customer {
  margin-left: 10px;
}
.feedback-list .saved-message > div {
  flex-wrap: wrap;
  gap: 3px;
}
#session-feedback-form .field {
  margin-bottom: 9px;
}
#modal-body > p {
  white-space: pre-line;
}
@media (max-width: 600px) {
  .session-tools {
    padding: 7px 10px;
    gap: 4px;
  }
  .session-tools > span {
    font-size: 9px;
  }
  .session-tools button {
    font-size: 10px;
    gap: 4px;
    padding: 7px 5px;
  }
  .session-tools svg {
    width: 12px;
  }
  .session-tools small {
    font-size: 9px;
  }
  .session-tools > div {
    gap: 1px;
  }
  .history-heading {
    align-items: start;
  }
  .saved-message > div {
    flex-wrap: wrap;
    gap: 4px;
  }
  .saved-message p,
  .saved-feedback p {
    font-size: 12px;
  }
  .saved-feedback {
    padding: 12px;
  }
  .saved-feedback > div {
    flex-wrap: wrap;
    gap: 4px;
  }
}

.dialogue-next {
  padding: 13px;
  margin-top: 18px;
  border: 1px solid #dce5ce;
  border-radius: 8px;
  background: #f3f7ea;
}
.dialogue-next p {
  font-size: 11px !important;
  color: #425637;
  margin-top: 7px;
}
.dialogue-next small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 8px;
  color: #43543b;
}
.memory-facts details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.memory-facts summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #3c5333;
}
.memory-facts p {
  font-size: 11px !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
  color: #344b3d;
}
.memory-facts small,
.purchase-timing small {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: #526348;
  margin-top: 5px;
}
.purchase-timing p {
  font-size: 11px !important;
  margin: 7px 0;
}
.purchase-timing strong {
  font-size: 11px;
}
.context-body .dialogue-next .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
