@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url("/assets/fonts/unbounded-variable.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}
:root {
  --bg: #f1f0eb;
  --paper: #fffefa;
  --ink: #282b27;
  --muted: #656a60;
  --line: #dedfd7;
  --accent: #ed643c;
  --action: #bf4828;
  --action-hover: #b74020;
  --accent-dark: #af3618;
  --accent-soft: #ffebe1;
  --rail: #252622;
  --green: #35664a;
  --green-soft: #e8f1e8;
  --red: #a63a2b;
  --shadow: 0 8px 24px #282b2710;
  --raised: 0 3px 0 #bf4828, 0 8px 18px #b74d2424;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  font-family: Manrope, system-ui, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none !important;
  box-shadow: none !important;
}
button,
.btn {
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.2s,
    color 0.2s;
}
button:hover:not(:disabled),
.btn:hover {
  transform: translateY(-1px);
}
button:active:not(:disabled),
.btn:active {
  transform: translateY(1px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a64124;
  outline-offset: 3px;
}
::selection {
  background: #ffd7c4;
  color: #3b291e;
}
input,
textarea {
  caret-color: var(--accent);
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: #c5c8bc;
  border-radius: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
.skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 10px;
  background: var(--paper);
}
.skip:focus {
  transform: none;
}
.boot {
  min-height: 90svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
  color: var(--muted);
}
.brand-cube {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 15px;
  box-shadow:
    inset 2px 3px 1px #ffb58a,
    0 7px 0 #b64b2a,
    0 20px 28px #b74d2420;
  transform: rotate(-8deg);
  margin: auto;
}
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #e8e9e1;
  box-shadow:
    inset 0 1px 0 #ffffffa6,
    0 2px 3px #282b2709;
  white-space: nowrap;
}
.btn:hover,
.icon-btn:hover {
  background: #dedfd6;
}
.btn.primary {
  color: #fff9f2;
  background: var(--action);
  box-shadow:
    inset 0 1px 1px #ffb08e,
    var(--raised);
}
.btn.primary:hover {
  background: var(--action-hover);
  box-shadow:
    inset 0 1px 1px #ffb08e,
    0 4px 0 #b84021,
    0 12px 22px #b74d2428;
}
.btn.dark {
  background: var(--ink);
  color: #f6f5ec;
  box-shadow:
    inset 0 1px 0 #62665c,
    0 3px 0 #11180e,
    0 7px 12px #282b2718;
}
.btn.ghost {
  background: transparent;
  box-shadow: none;
}
.btn.small {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 9px;
}
.btn.danger {
  background: #f8e5df;
  color: var(--red);
}
.icon-btn {
  padding: 9px;
  width: 40px;
  min-height: 40px;
  background: transparent;
  box-shadow: none;
}
.muted {
  color: var(--muted);
}
.mono-num,
.amount,
time {
  font-variant-numeric: tabular-nums;
}
.display,
h1 {
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin: 0;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}
p {
  margin: 0;
}
small {
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 14px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  background: #e9eae3;
  color: #535b4d;
}
.pill.green {
  background: var(--green-soft);
  color: var(--green);
}
.pill.orange {
  background: var(--accent-soft);
  color: #a13c1d;
}
.pill.red {
  background: #f6e0d9;
  color: var(--red);
}
.pill.dark {
  background: #44483e;
  color: #e7ebdf;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: -0.03em;
  border-radius: 12px;
  background: #e6e8df;
  color: #4d5845;
  flex: none;
  box-shadow:
    inset 0 1px 1px #fff9,
    0 2px 3px #282b2705;
}
.avatar.orange {
  background: #f8dfd0;
  color: #975033;
}
.avatar.sage {
  background: #dfe7d9;
  color: #3e624a;
}
.avatar.clay {
  background: #e9dfd6;
  color: #785a45;
}
.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border-radius: 9px;
}
.avatar.large {
  width: 54px;
  height: 54px;
  font-size: 18px;
  border-radius: 16px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.source .icon {
  width: 14px;
  height: 14px;
}
.shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100svh;
}
.rail {
  background: var(--rail);
  color: #d8dbd0;
  position: fixed;
  width: 222px;
  inset: 0 auto 0 0;
  z-index: 30;
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff9ef;
  padding: 0 8px;
}
.brand img {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 3px 2px #12181160);
}
.brand-word {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.brand-word small {
  display: block;
  font-family: Manrope;
  font-size: 10px;
  color: #aeb4a4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}
.rail nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  width: 100%;
  border-radius: 11px;
  color: #bdc3b4;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  position: relative;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.nav-item:hover {
  background: #373b31;
  color: #fff9ef;
}
.nav-item.active {
  background: #44483b;
  color: #fffbee;
  box-shadow:
    inset 0 1px 0 #62695480,
    0 3px 9px #12170d40;
}
.nav-item.active .icon {
  color: #ff9b70;
}
.nav-count {
  margin-left: auto;
  min-width: 21px;
  height: 20px;
  border-radius: 6px;
  background: #ed643c;
  color: white;
  text-align: center;
  font-size: 10px;
  line-height: 20px;
}
.nav-sep {
  height: 1px;
  background: #45483e;
  margin: 13px 10px;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
}
.rail-tip {
  padding: 16px 12px;
  background: #34382e;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 #545a4680,
    0 8px 18px #0d140d24;
}
.rail-tip .btn {
  width: 100%;
  margin-top: 12px;
  background: #4b5142;
  color: #f2f5e7;
}
.workspace-select {
  display: block;
  width: 100%;
  background: #32362d;
  color: #e5eadd;
  border: 0;
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 12px;
}
.workspace-label {
  font-size: 10px;
  color: #a5af99;
  padding-left: 8px;
  margin-bottom: 6px;
}
.main-shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  min-height: 97px;
  padding: 25px 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.heading-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}
.heading-copy > div {
  min-width: 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-search {
  width: 190px;
  position: relative;
}
.top-search .icon {
  position: absolute;
  left: 11px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.top-search input {
  width: 100%;
  border: 0;
  background: #e7e8df;
  border-radius: 11px;
  padding: 11px 11px 11px 35px;
  color: var(--ink);
  font-size: 12px;
}
.top-search input::placeholder {
  color: #676e5f;
}
.profile-button {
  padding: 0;
  border-radius: 12px;
}
.content {
  padding: 0 30px 32px;
  min-height: calc(100svh - 100px);
}
.mobile-menu {
  display: none;
}
.demo-banner {
  margin: 0 30px 20px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #e6e7dc;
  color: #525c46;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.5;
}
.demo-banner a {
  font-weight: 700;
  white-space: nowrap;
}
.panel {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-pad {
  padding: 24px;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-gap {
  margin-top: 24px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
  gap: 20px;
}
.work-focus {
  background: #31352c;
  color: #f5f7ed;
  border-radius: 17px;
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  box-shadow:
    inset 0 1px 0 #6a705d,
    0 12px 25px #242b211a;
  padding: 30px;
}
.work-focus h2 {
  font-family: Unbounded;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 19ch;
  letter-spacing: -0.04em;
}
.work-focus p {
  color: #c1c9b4;
  max-width: 43ch;
  margin: 13px 0 21px;
  font-size: 12px;
  line-height: 1.7;
}
.work-focus .btn {
  background: #f5f4e8;
  color: #35402b;
  box-shadow:
    0 3px 0 #b4b9a3,
    0 8px 16px #15200f40;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 24px 0;
  margin: 5px 0;
}
.stat {
  padding: 0 22px;
}
.stat:first-child {
  padding-left: 0;
}
.stat + .stat {
  border-left: 1px solid #d4d9cc;
}
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.stat small {
  display: block;
  font-size: 10px;
  color: var(--green);
  margin-top: 7px;
}
.focus-list {
  padding: 0 22px 8px;
}
.client-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #eeeee7;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.client-line:hover {
  background: #f6f6ef;
}
.client-line .client-title {
  font-weight: 700;
  font-size: 12px;
}
.client-line .client-preview {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38ch;
}
.client-line .right {
  text-align: right;
  margin-left: auto;
}
.client-line .right time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.task-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 0;
  border-top: 1px solid #eeeee7;
}
.task-check {
  width: 21px;
  height: 21px;
  padding: 0;
  border: 1px solid #bdc6b2;
  border-radius: 6px;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px #2430130d;
}
.task-check.done {
  background: var(--green);
  color: white;
  border: 0;
}
.task-check .icon {
  width: 14px;
  height: 14px;
}
.task-line strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.task-line small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}
.task-line.completed strong {
  text-decoration: line-through;
  color: var(--muted);
}
.mini-calendar {
  margin-top: 20px;
  padding: 19px 22px;
  background: #e7ecde;
  border-radius: 14px;
}
.mini-calendar strong {
  font-size: 12px;
}
.appointment-line {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #d4dccb;
}
.appointment-line:last-child {
  border: 0;
}
.time-block {
  padding: 8px 10px;
  border-radius: 9px;
  background: #f6f8ef;
  font-weight: 750;
  font-size: 12px;
  min-width: 58px;
  text-align: center;
}
.funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 22px 26px;
}
.funnel-item > strong {
  font-size: 22px;
  font-weight: 650;
}
.funnel-item > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 3px 0 13px;
}
.funnel-track {
  height: 6px;
  background: #e9ece1;
  border-radius: 6px;
  overflow: hidden;
}
.funnel-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: #b8c4a4;
  border-radius: 6px;
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform 1s var(--ease);
}
.funnel-item:first-child i {
  background: var(--accent);
}
.funnel-item:nth-child(2) i {
  background: #bd9c65;
}
.funnel-item:last-child i {
  background: #50745a;
}
.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 22px 20px;
}
.channel-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f0f1e9;
  font-size: 10px;
}
.channel-chip .icon {
  width: 15px;
  height: 15px;
}
.channel-chip .dot {
  width: 5px;
  height: 5px;
}
.timeline {
  padding: 0 22px 20px;
}
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  color: var(--muted);
  font-size: 11px;
}
.timeline-item time {
  font-size: 10px;
  flex: none;
  min-width: 36px;
}
.timeline-item p {
  color: #525e46;
}
.agent-core {
  width: 188px;
  height: 188px;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 650px;
  isolation: isolate;
}
.core-orbit {
  position: absolute;
  inset: 14px;
  border: 1px solid #95a78055;
  border-radius: 50%;
  transform: rotateX(65deg) rotate(-24deg);
  animation: orbit 17s linear infinite;
}
.core-orbit:nth-child(2) {
  inset: 0;
  transform: rotateY(65deg) rotate(24deg);
  animation-direction: reverse;
}
.core-orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffac81;
  box-shadow: 0 2px 5px #ffac8140;
  border-radius: 50%;
  left: 20px;
  top: 12px;
}
.core-stack {
  transform-style: preserve-3d;
  transform: rotateX(54deg) rotateZ(-34deg);
  position: relative;
  width: 85px;
  height: 85px;
  animation: core-float 6s ease-in-out infinite;
}
.core-plate {
  position: absolute;
  width: 85px;
  height: 85px;
  inset: 0;
  border-radius: 15px;
  background: #555f49;
  box-shadow:
    inset 0 2px 1px #9ba985,
    0 8px 0 #20271b,
    0 14px 17px #0d170c50;
  transform: translateZ(-36px);
}
.core-plate:nth-child(2) {
  background: #778268;
  transform: translateZ(-11px);
  box-shadow:
    inset 0 2px 1px #b6c49f,
    0 7px 0 #414d33,
    0 13px 14px #0d170c50;
}
.core-plate:nth-child(3) {
  background: #ef7049;
  transform: translateZ(17px);
  box-shadow:
    inset 0 2px 1px #ffc89e,
    0 7px 0 #af3f22,
    0 15px 22px #0d170c50;
  display: grid;
  place-items: center;
}
.core-plate .icon {
  width: 32px;
  height: 32px;
  color: #fff0df;
  stroke-width: 1.5;
}
.core-tag {
  position: absolute;
  bottom: 5px;
  right: 0;
  padding: 5px 8px;
  font-size: 9px;
  letter-spacing: 0.02em;
  background: #424d35;
  color: #dceac9;
  border-radius: 6px;
  box-shadow: 0 4px 8px #11200b30;
}
.agent-core.light .core-orbit {
  border-color: #b1bca055;
}
.agent-core.light .core-tag {
  background: #e2e9d7;
  color: #4d6440;
}
.agent-core.light {
  width: 215px;
  height: 205px;
}
.agent-core.light .core-stack {
  animation-duration: 8s;
}
.agent-core:hover .core-stack {
  animation-play-state: paused;
}
.doc-hidden .core-stack,
.doc-hidden .core-orbit {
  animation-play-state: paused;
}
@keyframes core-float {
  0%,
  100% {
    transform: rotateX(54deg) rotateZ(-34deg) translateY(0);
  }
  50% {
    transform: rotateX(51deg) rotateZ(-31deg) translateY(-6px);
  }
}
@keyframes orbit {
  to {
    rotate: 360deg;
  }
}
.inbox {
  display: grid;
  grid-template-columns: 285px minmax(300px, 1fr) 265px;
  height: calc(100svh - 125px);
  min-height: 520px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.has-demo .inbox {
  height: calc(100svh - 183px);
}
.inbox-list-pane {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.list-toolbar {
  padding: 17px 15px;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.search-input {
  position: relative;
}
.search-input .icon {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search-input input {
  width: 100%;
  padding: 9px 10px 9px 34px;
  border: 1px solid #dadfd0;
  border-radius: 9px;
  background: #fbfcf7;
  font-size: 11px;
  color: var(--ink);
}
.filter-row {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.filter {
  padding: 6px 9px;
  min-height: 31px;
  border-radius: 8px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
}
.filter.active {
  background: #e9edde;
  color: #45583a;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 3px #2b3c1310;
}
.compact-select {
  border: 1px solid #dee2d5;
  background: var(--paper);
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 10px;
  min-width: 0;
  max-width: 100%;
}
.inbox-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.thread-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  width: 100%;
  padding: 18px 14px;
  text-align: left;
  position: relative;
  border-bottom: 1px solid #f0f1e9;
}
.thread-item:hover {
  background: #f7f8f0;
}
.thread-item.selected {
  background: #edf0e4;
  box-shadow: inset 3px 0 0 #7a8f61;
}
.thread-item .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.thread-item .name {
  font-weight: 750;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 145px;
  display: block;
}
.thread-item .msg-preview {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 5px 0 8px;
}
.thread-item time {
  font-size: 9px;
  color: #6a755e;
  position: absolute;
  right: 13px;
  top: 19px;
}
.thread-item .unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e1643d;
  position: absolute;
  right: 16px;
  bottom: 20px;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #f7f8f1;
}
.conversation-head {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 19px;
  border-bottom: 1px solid var(--line);
  min-height: 85px;
}
.conversation-head h2 {
  font-size: 14px;
  letter-spacing: -0.02em;
}
.conversation-head .sub {
  font-size: 10px;
}
.conversation-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.messages {
  padding: 25px 24px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 19px;
  scroll-behavior: smooth;
}
.message {
  max-width: 87%;
  align-self: flex-start;
  animation: message-in 0.35s var(--ease);
}
.message .bubble {
  background: var(--paper);
  border-radius: 13px 13px 13px 3px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 3px 7px #31401606;
}
.message.assistant,
.message.operator {
  align-self: flex-end;
}
.message.assistant .bubble {
  background: #e9eddf;
  border-radius: 13px 13px 3px 13px;
  color: #35442d;
}
.message.operator .bubble {
  background: #424d39;
  color: #f1f6e7;
  border-radius: 13px 13px 3px 13px;
}
.message .meta {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.message .meta .icon {
  width: 12px;
  height: 12px;
}
.message-label {
  font-size: 9px;
  font-weight: 700;
  color: #6b795d;
  margin-bottom: 5px;
}
.message.system {
  align-self: center;
  font-size: 10px;
  color: #5c6e4e;
  max-width: 95%;
  text-align: center;
  background: #e9ecdf;
  padding: 8px 12px;
  border-radius: 8px;
}
.message.failed .meta,
.message.uncertain .meta {
  color: var(--red);
}
.composer {
  padding: 16px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.composer form {
  display: flex;
  gap: 9px;
  align-items: flex-end;
}
.composer textarea {
  resize: none;
  min-height: 44px;
  max-height: 130px;
  width: 100%;
  border: 1px solid #d5ddc9;
  border-radius: 11px;
  background: #fcfdf8;
  padding: 12px;
  line-height: 1.5;
  font-size: 12px;
  display: block;
}
.composer .send-button {
  width: 44px;
  min-height: 44px;
  padding: 9px;
  border-radius: 11px;
}
.composer small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.client-context {
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 22px 18px;
  background: var(--paper);
}
.context-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 22px;
}
.context-title h3 {
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field > span,
.field > label {
  font-size: 11px;
  font-weight: 650;
  color: #59634e;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d3dcc7;
  border-radius: 9px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fcfdf8;
  min-height: 42px;
  font-size: 12px;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #78816f;
}
.field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.field.full {
  grid-column: 1/-1;
}
.client-context .field {
  margin-bottom: 14px;
}
.client-context .field input,
.client-context .field select,
.client-context .field textarea {
  font-size: 11px;
  padding: 9px 10px;
  min-height: 38px;
}
.client-context .btn {
  width: 100%;
}
.context-booking {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.context-booking h3 {
  font-size: 11px;
}
.context-booking p {
  margin: 8px 0 12px;
  font-size: 11px;
}
.mobile-back,
.context-close,
.context-open {
  display: none;
}
.empty {
  padding: 45px 24px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 13px;
  color: var(--muted);
  max-width: 560px;
  margin: auto;
}
.empty > .icon {
  width: 38px;
  height: 38px;
  color: #9aa88a;
  stroke-width: 1.2;
}
.empty h2 {
  font-size: 16px;
  color: var(--ink);
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 43ch;
}
.empty.compact {
  padding: 26px 18px;
  gap: 9px;
}
.empty.compact p {
  font-size: 11px;
}
.page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  background: #e4e7da;
  border-radius: 11px;
  width: max-content;
  max-width: 100%;
}
.tab {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 650;
  border-radius: 8px;
  white-space: nowrap;
}
.tab.active {
  background: var(--paper);
  box-shadow: 0 2px 5px #3a4d2010;
  color: #334b23;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table-scroll {
  overflow: auto;
}
.data-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: #f9faf3;
  padding: 13px 19px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 18px 19px;
  border-bottom: 1px solid #eeeee5;
  white-space: nowrap;
  font-size: 12px;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafbf5;
}
.name-button {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  padding: 0;
  text-align: left;
}
.name-button span {
  display: block;
}
.name-button .sub {
  font-weight: 400;
  font-size: 10px;
}
.data-table .cell-wide {
  min-width: 220px;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 11px;
  color: var(--muted);
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 17px;
  align-items: start;
  overflow: auto;
  padding-bottom: 12px;
}
.board-column {
  padding: 13px;
  background: #e6e9df;
  border-radius: 14px;
  min-height: 400px;
}
.board-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 750;
}
.board-heading .dot {
  background: #b5c1a4;
}
.board-column:first-child .board-heading .dot {
  background: var(--accent);
}
.board-column:last-child .board-heading .dot {
  background: var(--green);
}
.board-total {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-left: 14px;
}
.deal {
  padding: 17px 15px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 4px 9px #2b3a1710;
  cursor: grab;
  margin-top: 12px;
  text-align: left;
}
.deal:active {
  cursor: grabbing;
}
.deal h3 {
  font-size: 12px;
  margin-bottom: 6px;
}
.deal .deal-service {
  font-size: 10px;
  color: var(--muted);
  margin: 13px 0 9px;
}
.deal .amount {
  font-weight: 750;
  font-size: 15px;
}
.deal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 11px;
  border-top: 1px solid #ecefe3;
}
.deal-stage {
  font-size: 10px;
  padding: 4px 6px;
  min-width: 0;
  max-width: 90%;
  background: #edf0e5;
  border: 0;
  border-radius: 6px;
  color: #556747;
}
.board-column.drop-target {
  background: #d9e1cc;
  outline: 2px dashed #879d6c;
  outline-offset: -3px;
}
.calendar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}
.day {
  padding: 10px;
  border-radius: 11px;
  color: #68765b;
  min-height: 62px;
  background: #e7ebdf;
  box-shadow: inset 0 1px 0 #fff7;
}
.day span {
  display: block;
  font-size: 10px;
}
.day strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  margin-top: 3px;
}
.day.active {
  background: #45513c;
  color: #f2f7e6;
  box-shadow:
    inset 0 1px 0 #6a785e,
    0 3px 0 #2c3724,
    0 6px 11px #293d1515;
}
.schedule-scroll {
  overflow-x: auto;
}
.schedule {
  display: grid;
  grid-template-columns: 60px repeat(var(--staff, 2), minmax(210px, 1fr));
  min-width: 510px;
  padding: 0 20px 20px;
}
.schedule-heading {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.schedule-clock,
.staff-time {
  position: relative;
  height: calc(var(--hours, 10) * 72px);
}
.clock-label {
  height: 72px;
  display: block;
  font-size: 10px;
  color: var(--muted);
  transform: translateY(-7px);
}
.staff-time {
  border-left: 1px solid #e4e9da;
}
.time-slot {
  height: 36px;
  display: block;
  width: 100%;
  border-bottom: 1px solid #edf0e6;
  text-align: center;
  color: transparent;
  font-size: 10px;
  padding: 0;
}
.time-slot:hover {
  background: #edf2e2;
  color: #5e7748;
  transform: none !important;
}
.calendar-booking {
  position: absolute;
  top: var(--top);
  height: var(--height);
  left: 9px;
  right: 9px;
  background: #e6ecda;
  color: #35492a;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 3px 6px #2b421710;
}
.calendar-booking:nth-of-type(even) {
  background: #f6e4d7;
  color: #7b472c;
}
.calendar-booking strong {
  display: block;
  font-size: 12px;
  margin: 4px 0;
}
.calendar-booking small {
  display: block;
  font-size: 10px;
}
.tasks-list {
  padding: 0 22px;
}
.tasks-list .task-line {
  padding: 20px 0;
  align-items: center;
}
.tasks-list .task-line strong {
  font-size: 13px;
}
.tasks-list .task-line small {
  font-size: 11px;
}
.tasks-list .task-due {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
}
.agent-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
.agent-conversation {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: calc(100svh - 165px);
  display: flex;
  flex-direction: column;
}
.agent-intro {
  padding: 27px 30px;
  background: #f9fbf2;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
}
.agent-symbol {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 1px #ffb08e,
    0 4px 0 #b44626,
    0 9px 14px #b74d241c;
}
.agent-intro h2 {
  font-family: Unbounded;
  font-size: 16px;
  font-weight: 500;
}
.agent-intro p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.agent-turns {
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 260px;
  max-height: calc(100svh - 350px);
  overflow: auto;
  flex: 1;
}
.agent-turn {
  max-width: 90%;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-turn.user {
  align-self: flex-end;
  padding: 12px 16px;
  background: #e9eddf;
  border-radius: 12px 12px 3px 12px;
  font-size: 12px;
}
.agent-turn.assistant {
  align-self: flex-start;
}
.agent-turn .turn-by {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 750;
  color: #657555;
  margin-bottom: 7px;
}
.agent-result {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 13px 14px;
  background: #edf3e5;
  border-radius: 10px;
  margin-top: 9px;
  color: #405d2d;
  font-size: 11px;
  line-height: 1.7;
  white-space: normal;
}
.agent-result .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.agent-result.failed {
  background: #f7e8df;
  color: #974728;
}
.agent-result.pending {
  background: #f5edda;
  color: #7a612d;
}
.agent-result .btn {
  margin-top: 9px;
}
.agent-actions {
  padding: 0 26px 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.agent-actions .btn {
  background: #f0f2e8;
  border: 0;
  font-size: 10px;
  min-height: 31px;
}
.agent-side {
  display: grid;
  justify-items: center;
  padding: 18px 0;
}
.agent-side h3 {
  font-family: Unbounded;
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0 10px;
}
.agent-side p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
  padding: 0 14px;
}
.agent-facts {
  width: 100%;
  margin-top: 23px;
  border-top: 1px solid #d8dfcc;
}
.agent-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 8px;
  border-bottom: 1px solid #d8dfcc;
  font-size: 11px;
  color: #536446;
}
.agent-fact .icon {
  width: 17px;
  height: 17px;
}
.agent-fact strong {
  margin-left: auto;
  font-weight: 700;
}
.pending-turn {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
}
.pending-turn i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: thinking 1.3s ease-in-out infinite;
}
.pending-turn.failed {
  color: var(--red);
}
@keyframes thinking {
  50% {
    opacity: 0.3;
    transform: scale(0.6);
  }
}
.profiles {
  display: grid;
  gap: 15px;
}
.profile-card {
  padding: 23px 25px;
  background: var(--paper);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.profile-card .profile-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.profile-card h2 {
  font-size: 15px;
}
.profile-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.profile-controls .btn {
  font-size: 10px;
  min-height: 34px;
  padding: 8px 10px;
}
.profile-description {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 18px;
  line-height: 1.8;
}
.integration-list {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.integration-row {
  padding: 25px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  border-bottom: 1px solid #e7ebdf;
}
.integration-row:last-child {
  border: 0;
}
.integration-symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e9eedf;
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 8px #3046150c;
  color: #60734c;
}
.integration-row h2 {
  font-size: 14px;
}
.integration-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 8px;
  max-width: 70ch;
}
.integration-row .btn {
  min-height: 35px;
  font-size: 11px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 22px;
  align-items: start;
}
.settings-block {
  padding: 26px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.settings-block h2 {
  margin-bottom: 19px;
}
.settings-block p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.settings-row {
  display: grid;
  grid-template-columns: 1fr 105px 90px 32px;
  gap: 10px;
  margin-bottom: 13px;
}
.settings-row .field input {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 37px;
}
.settings-row.staff {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 32px;
}
.settings-block .btn.small {
  margin-top: 4px;
}
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
}
.switch {
  appearance: none;
  width: 39px;
  height: 23px;
  background: #c3cdb8;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  flex: none;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  background: #fffefa;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  box-shadow: 0 2px 4px #28391626;
  transition: transform 0.3s var(--ease);
}
.switch:checked {
  background: #5c7b44;
}
.switch:checked::after {
  transform: translateX(16px);
}
.settings-help {
  padding: 18px 0;
}
.settings-help h3 {
  font-size: 13px;
  margin-bottom: 9px;
}
.settings-help p {
  font-size: 11px;
  line-height: 1.9;
  max-width: 45ch;
}
.notice {
  padding: 13px 15px;
  border-radius: 10px;
  background: #e6ecda;
  color: #536846;
  font-size: 11px;
  line-height: 1.8;
}
.notice.error {
  background: #f7e3dc;
  color: var(--red);
}
.field-error {
  font-size: 11px;
  line-height: 1.7;
  color: var(--red);
  margin-top: 12px;
  white-space: pre-wrap;
}
.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
}
.login-art {
  background: #30372a;
  color: #f5f8eb;
  padding: 65px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-art h1 {
  font-size: clamp(29px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 14ch;
  margin: 50px 0 20px;
}
.login-art > p {
  color: #bccbad;
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.9;
}
.login-art .agent-core {
  align-self: flex-end;
  scale: 1.35;
  margin: 45px 30px 50px;
}
.login-art .brand {
  position: absolute;
  left: 10%;
  top: 42px;
}
.login-form-wrap {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 50px 36px;
  background: var(--bg);
}
.login-form {
  width: min(100%, 360px);
}
.login-form h2 {
  font-family: Unbounded;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.8;
}
.login-form .field {
  margin-top: 17px;
}
.login-form .btn.primary {
  width: 100%;
  margin-top: 24px;
}
.login-foot {
  font-size: 11px;
  margin-top: 23px;
  color: var(--muted);
  text-align: center;
}
.login-foot a {
  font-weight: 700;
}
.login-demo {
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid #d9dfce;
}
.login-demo .btn {
  width: 100%;
}
.login-demo p {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
  margin-top: 12px;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px #16210c40;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100svh - 50px);
  overflow: auto;
}
dialog::backdrop {
  background: #20291970;
  backdrop-filter: blur(4px);
}
.dialog-head {
  padding: 25px 27px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-family: Unbounded;
  font-size: 17px;
  font-weight: 500;
}
.dialog-body {
  padding: 24px 27px 28px;
}
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.dialog-body > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.slot {
  padding: 9px 8px;
  background: #eaf0e0;
  border-radius: 8px;
  font-size: 12px;
  min-height: 38px;
  box-shadow: inset 0 1px 0 #fff;
}
.slot.active {
  background: #4c653a;
  color: #f2f8e7;
}
.dialog-body .booking-title {
  margin: 20px 0 5px;
  font-size: 12px;
  font-weight: 700;
}
.loading {
  font-size: 11px;
  color: var(--muted);
  padding: 18px;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.checkbox-line input {
  margin: 4px 0 0;
  accent-color: #557e36;
  flex: none;
}
.credentials-note {
  padding: 11px 13px;
  background: #eef2e5;
  color: #5a6b48;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.8;
  margin-bottom: 18px;
}
#toasts {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 80;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 17px;
  background: #343f2c;
  color: #f4f8eb;
  border-radius: 12px;
  box-shadow: 0 10px 28px #21321330;
  font-size: 12px;
  line-height: 1.7;
  animation: message-in 0.3s var(--ease);
}
.toast.error {
  background: #873d2c;
  color: #fff5ed;
}
.toast .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.toast button {
  margin-left: 8px;
  color: inherit;
  padding: 0;
}
.mobile-nav {
  display: none;
}
@keyframes message-in {
  from {
    transform: translateY(7px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.saving {
  opacity: 0.65;
  pointer-events: none;
}
.card-link {
  padding: 0;
  font-weight: 650;
  font-size: 11px;
  color: #526e3c;
  text-align: left;
}
.insight-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8d7;
  font-size: 11px;
}
.insight-line strong {
  font-size: 12px;
}
.inline-source {
  display: flex;
  align-items: center;
  gap: 6px;
}
.connection-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.toolbar-input {
  background: var(--paper);
  border: 1px solid #d3dcc7;
  padding: 9px 12px;
  border-radius: 10px;
  min-width: 220px;
  color: var(--ink);
  font-size: 11px;
}
.checkmark {
  color: var(--green);
}
.own-profile {
  position: fixed;
  right: 30px;
  top: 78px;
  z-index: 40;
  min-width: 220px;
  box-shadow: 0 12px 30px #1f2d1730;
  background: var(--paper);
  padding: 18px;
  border-radius: 13px;
}
.own-profile strong {
  display: block;
  font-size: 12px;
}
.own-profile .sub {
  margin-bottom: 14px;
}
.own-profile .btn {
  width: 100%;
}
.table-task-action {
  width: 100%;
  text-align: left;
}
.no-data-note {
  font-size: 11px;
  color: var(--muted);
  padding: 14px 22px 23px;
}
.cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
@media (min-width: 1550px) {
  .content {
    max-width: 1700px;
    margin: auto;
  }
  .inbox {
    grid-template-columns: 320px minmax(380px, 1fr) 290px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(330px, 1fr);
  }
}
@media (max-width: 1330px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .rail {
    width: 200px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .topbar {
    padding: 23px 23px 20px;
  }
  .content {
    padding: 0 23px 26px;
  }
  .demo-banner {
    margin-left: 23px;
    margin-right: 23px;
  }
  .top-search {
    width: 160px;
  }
  .inbox {
    grid-template-columns: 265px minmax(290px, 1fr);
  }
  .client-context {
    display: none;
  }
  .context-open {
    display: inline-flex;
  }
  .inbox.context-shown .client-context {
    display: block;
    position: fixed;
    right: 24px;
    top: 100px;
    bottom: 25px;
    width: 300px;
    z-index: 45;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 15px 80px #1d30134d;
  }
  .context-close {
    display: flex;
    float: right;
    margin-bottom: 10px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr);
  }
  .work-focus {
    grid-template-columns: minmax(0, 1fr) 155px;
    padding: 25px;
  }
  .work-focus h2 {
    font-size: 22px;
  }
  .work-focus .agent-core {
    scale: 0.87;
    transform-origin: right center;
    margin-left: -25px;
  }
  .agent-page {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .stat {
    padding: 0 15px;
  }
  .stat strong {
    font-size: 27px;
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 180px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .brand-word {
    font-size: 18px;
  }
  .rail .brand {
    gap: 8px;
    padding: 0 5px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .nav-item {
    padding: 11px 9px;
    gap: 9px;
    font-size: 12px;
  }
  .rail-tip {
    padding: 13px 10px;
  }
  .top-search {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .work-focus {
    grid-template-columns: minmax(0, 1fr) 210px;
    min-height: 215px;
  }
  .work-focus .agent-core {
    scale: 1;
    margin: 0;
  }
  .work-focus h2 {
    font-size: 25px;
  }
  .agent-page {
    grid-template-columns: 1fr;
  }
  .agent-side {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .inbox {
    grid-template-columns: 245px minmax(270px, 1fr);
  }
  .conversation-head {
    padding: 15px;
  }
  .messages {
    padding: 22px 18px;
  }
  .conversation-actions .book-label {
    display: none;
  }
  .conversation-actions .btn {
    padding: 9px;
    min-width: 35px;
  }
  .overview-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .overview-secondary > .panel {
    grid-column: 1/-1;
  }
  .stat strong {
    font-size: 30px;
  }
  .topbar h1 {
    font-size: 22px;
  }
  .main-shell {
    min-width: 0;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 13px;
  }
  .shell {
    display: block;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .rail {
    inset: 0 auto 0 0;
    width: 235px;
    transform: translateX(-105%);
    transition: transform 0.4s var(--ease);
    padding: 25px 17px;
    box-shadow: 20px 0 70px #24321340;
  }
  .rail.open {
    transform: none;
  }
  .rail.open::after {
    content: "";
    position: fixed;
    left: 235px;
    top: 0;
    width: calc(100vw - 235px);
    height: 100%;
    background: #1d2b1750;
    backdrop-filter: blur(3px);
  }
  .rail .brand-word {
    font-size: 21px;
  }
  .rail .brand img {
    width: 35px;
    height: 35px;
  }
  .nav-item {
    font-size: 13px;
    padding: 12px;
  }
  .main-shell {
    min-width: 0;
  }
  .topbar {
    padding: 18px 17px 17px;
    min-height: 85px;
    gap: 10px;
  }
  .topbar h1 {
    font-size: 20px;
    letter-spacing: -0.035em;
  }
  .heading-copy {
    gap: 9px;
  }
  .heading-copy .sub {
    font-size: 9px;
    margin-top: 5px;
  }
  .mobile-menu {
    display: inline-flex;
    width: 30px;
    padding: 4px;
    min-height: 36px;
    flex: none;
  }
  .top-actions {
    gap: 9px;
  }
  .top-actions > .btn {
    min-height: 35px;
    padding: 9px 11px;
    font-size: 10px;
    border-radius: 9px;
  }
  .top-actions > .btn .icon {
    width: 15px;
    height: 15px;
  }
  .top-actions > .btn span {
    display: none;
  }
  .profile-button .avatar {
    width: 33px;
    height: 33px;
    font-size: 11px;
    border-radius: 10px;
  }
  .content {
    padding: 0 14px 22px;
    min-height: calc(100svh - 160px);
  }
  .demo-banner {
    margin: 0 14px 15px;
    padding: 10px 11px;
    font-size: 9px;
    align-items: flex-start;
    gap: 10px;
  }
  .demo-banner a {
    font-size: 9px;
  }
  .demo-banner .icon {
    width: 15px;
    height: 15px;
  }
  .work-focus {
    padding: 20px;
    grid-template-columns: minmax(0, 1fr) 100px;
    min-height: 180px;
    border-radius: 15px;
  }
  .work-focus h2 {
    font-size: 17px;
    line-height: 1.5;
  }
  .work-focus p {
    display: none;
  }
  .work-focus .btn {
    margin-top: 13px;
    font-size: 11px;
    padding: 9px 11px;
    min-height: 37px;
  }
  .work-focus .agent-core {
    width: 120px;
    height: 130px;
    scale: 0.65;
    transform-origin: 90% center;
    margin-left: -35px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 17px 0;
    row-gap: 20px;
    margin: 0;
  }
  .stat {
    padding: 0 17px;
  }
  .stat:first-child,
  .stat:nth-child(3) {
    padding-left: 4px;
    border: 0;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat span {
    font-size: 10px;
    margin-top: 5px;
  }
  .stat small {
    font-size: 9px;
    margin-top: 5px;
  }
  .overview-grid {
    gap: 15px;
  }
  .overview-grid > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .overview-grid > div:first-child > .panel {
    order: 1;
  }
  .overview-grid > div:first-child > .stats-strip {
    order: 2;
  }
  .overview-grid > div:first-child > .panel.section-gap {
    order: 3;
    margin-top: 0;
  }
  .overview-secondary {
    display: block;
  }
  .overview-secondary > .panel {
    margin-top: 16px;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .panel-head > .btn {
    font-size: 10px;
    min-height: 30px;
    padding: 6px 9px;
  }
  .focus-list {
    padding: 0 17px 7px;
  }
  .client-line {
    gap: 10px;
    padding: 14px 0;
  }
  .client-line .client-title {
    font-size: 11px;
  }
  .client-line .client-preview {
    font-size: 10px;
    max-width: 23ch;
  }
  .client-line .avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
    border-radius: 10px;
  }
  .client-line .right time {
    font-size: 9px;
  }
  .client-line .pill {
    font-size: 9px;
    padding: 4px 6px;
  }
  .funnel {
    gap: 10px;
    padding: 4px 17px 20px;
  }
  .funnel-item strong {
    font-size: 20px;
  }
  .funnel-item small {
    font-size: 8px;
    min-height: 23px;
    margin-top: 4px;
  }
  .task-line strong {
    font-size: 11px;
  }
  .task-line small {
    font-size: 9px;
  }
  .mini-calendar {
    padding: 16px 18px;
    margin-top: 15px;
  }
  .channel-list {
    padding: 0 17px 19px;
  }
  .timeline {
    padding: 0 17px 17px;
  }
  .inbox,
  .has-demo .inbox {
    display: flex;
    height: calc(100dvh - 168px);
    min-height: 380px;
    border-radius: 13px;
  }
  .has-demo .inbox {
    height: calc(100dvh - 229px);
  }
  .inbox-list-pane {
    display: flex;
    flex: 1;
    min-width: 0;
    border-right: 0;
  }
  .inbox-list-pane .list-toolbar {
    padding: 16px;
  }
  .inbox-list .thread-item {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 18px;
    gap: 13px;
  }
  .thread-item .avatar {
    width: 41px;
    height: 41px;
  }
  .thread-item .name {
    font-size: 13px;
    max-width: 240px;
  }
  .thread-item .msg-preview {
    font-size: 11px;
    margin-top: 7px;
  }
  .thread-item time {
    font-size: 10px;
    right: 18px;
  }
  .conversation {
    display: none;
    flex: 1;
    min-width: 0;
  }
  .inbox.thread-shown .inbox-list-pane {
    display: none;
  }
  .inbox.thread-shown .conversation {
    display: flex;
  }
  .mobile-back {
    display: inline-flex;
    min-width: 29px;
    min-height: 34px;
    padding: 3px;
    flex: none;
  }
  .conversation-head {
    gap: 8px;
    padding: 12px 11px;
    min-height: 78px;
  }
  .conversation-head .avatar {
    display: none;
  }
  .conversation-head h2 {
    font-size: 12px;
  }
  .conversation-head .sub {
    font-size: 9px;
  }
  .conversation-head .row {
    gap: 6px;
  }
  .conversation-actions {
    gap: 2px;
  }
  .conversation-actions .btn {
    padding: 7px;
    min-height: 33px;
    border-radius: 8px;
  }
  .conversation-actions .icon-btn {
    padding: 5px;
    width: 30px;
    min-height: 32px;
  }
  .conversation-actions > .btn .icon {
    width: 16px;
    height: 16px;
  }
  .conversation-actions .mode-label {
    display: none;
  }
  .messages {
    padding: 21px 14px;
    gap: 18px;
  }
  .message {
    max-width: 91%;
  }
  .message .bubble {
    font-size: 12px;
    padding: 11px 13px;
  }
  .composer {
    padding: 11px 12px;
  }
  .composer textarea {
    font-size: 12px;
    min-height: 41px;
    padding: 10px;
  }
  .composer .send-button {
    min-height: 41px;
    width: 41px;
    padding: 8px;
  }
  .composer small {
    font-size: 8px;
    margin-top: 6px;
  }
  .inbox.context-shown .client-context {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    z-index: 60;
    border-radius: 0;
    padding: 25px 25px calc(30px + env(safe-area-inset-bottom));
    box-shadow: none;
  }
  .client-context .context-title .avatar {
    display: grid;
  }
  .client-context .field input,
  .client-context .field select,
  .client-context .field textarea {
    font-size: 13px;
    min-height: 44px;
  }
  .context-close {
    display: flex;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fafcf4;
    z-index: 35;
    border-top: 1px solid #d5deca;
    box-shadow: 0 -8px 25px #2c42150a;
    min-height: 65px;
    padding: 7px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    font-size: 8px;
    text-decoration: none;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 10px;
    min-width: 55px;
    color: #6a7b5b;
  }
  .mobile-nav a.active {
    background: #e9efdf;
    color: #385227;
    font-weight: 750;
    box-shadow: inset 0 1px 0 #fff;
  }
  .mobile-nav .icon {
    width: 20px;
    height: 20px;
  }
  .page-tools {
    gap: 12px;
    margin-bottom: 16px;
  }
  .toolbar-input {
    width: 100%;
    min-width: 0;
    font-size: 12px;
    min-height: 40px;
  }
  .tabs {
    max-width: 100%;
    overflow-x: auto;
  }
  .tab {
    padding: 8px 12px;
    font-size: 10px;
  }
  .data-table th {
    padding: 12px 15px;
  }
  .data-table td {
    padding: 17px 15px;
    font-size: 11px;
  }
  .data-table .cell-wide {
    min-width: 195px;
  }
  .data-table .hide-mobile {
    display: none;
  }
  .name-button {
    gap: 9px;
    font-size: 11px;
  }
  .name-button .avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
    border-radius: 10px;
  }
  .data-table .pill {
    font-size: 9px;
  }
  .table-footer {
    padding: 13px 15px;
    font-size: 10px;
  }
  .table-footer .row {
    gap: 4px;
  }
  .board {
    grid-template-columns: repeat(4, minmax(265px, 83vw));
    gap: 13px;
    scroll-snap-type: x mandatory;
    margin-right: -14px;
    padding-right: 14px;
  }
  .board-column {
    scroll-snap-align: start;
    padding: 14px;
    min-height: 420px;
  }
  .board-heading {
    font-size: 13px;
  }
  .deal {
    padding: 18px 16px;
  }
  .deal h3 {
    font-size: 13px;
  }
  .deal .deal-service {
    font-size: 11px;
  }
  .calendar-tools {
    flex-wrap: wrap;
    gap: 12px;
  }
  .calendar-tools h2 {
    font-size: 15px;
  }
  .calendar-tools .btn {
    min-height: 35px;
    font-size: 10px;
    padding: 8px 11px;
  }
  .calendar-tools .icon-btn {
    min-height: 34px;
    width: 34px;
  }
  .week-strip {
    gap: 4px;
    margin-bottom: 15px;
  }
  .day {
    min-height: 56px;
    padding: 8px 5px;
    border-radius: 9px;
  }
  .day span {
    font-size: 9px;
  }
  .day strong {
    font-size: 17px;
  }
  .schedule {
    grid-template-columns: 44px repeat(var(--staff, 2), minmax(180px, 1fr));
    min-width: 430px;
    padding: 0 12px 15px;
  }
  .schedule-heading {
    height: 62px;
    font-size: 10px;
    gap: 7px;
  }
  .schedule-heading .avatar {
    width: 26px;
    height: 26px;
  }
  .calendar-booking {
    left: 6px;
    right: 6px;
    padding: 10px;
    border-radius: 8px;
  }
  .calendar-booking strong {
    font-size: 11px;
  }
  .calendar-booking small {
    font-size: 9px;
  }
  .tasks-list {
    padding: 0 16px;
  }
  .tasks-list .task-line {
    gap: 11px;
    align-items: flex-start;
  }
  .tasks-list .task-line strong {
    font-size: 12px;
    max-width: 35ch;
  }
  .tasks-list .task-line small {
    font-size: 10px;
  }
  .tasks-list .task-due {
    font-size: 9px;
    max-width: 60px;
    white-space: normal;
    text-align: right;
  }
  .agent-page {
    display: block;
  }
  .agent-conversation {
    min-height: calc(100dvh - 175px);
  }
  .has-demo .agent-conversation {
    min-height: calc(100dvh - 235px);
  }
  .agent-intro {
    padding: 19px 17px;
    gap: 12px;
  }
  .agent-intro h2 {
    font-size: 14px;
  }
  .agent-intro p {
    font-size: 10px;
    line-height: 1.8;
  }
  .agent-symbol {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }
  .agent-turns {
    padding: 22px 17px;
    max-height: calc(100dvh - 395px);
    min-height: 220px;
    gap: 22px;
  }
  .agent-turn {
    max-width: 98%;
    font-size: 12px;
  }
  .agent-turn.user {
    font-size: 11px;
  }
  .agent-result {
    font-size: 11px;
    padding: 11px 12px;
  }
  .agent-actions {
    padding: 0 13px 13px;
    gap: 6px;
  }
  .agent-actions .btn {
    font-size: 9px;
    padding: 7px 9px;
  }
  .profile-card {
    padding: 20px;
  }
  .profile-card h2 {
    font-size: 14px;
  }
  .profile-card .profile-head {
    gap: 11px;
    flex-wrap: wrap;
  }
  .profile-card .profile-head > .pill {
    margin-left: 49px;
  }
  .profile-controls {
    gap: 7px;
  }
  .profile-controls .btn {
    font-size: 9px;
    min-height: 34px;
  }
  .integration-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 21px 18px;
    gap: 12px;
  }
  .integration-symbol {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .integration-row h2 {
    font-size: 13px;
  }
  .integration-row p {
    font-size: 10px;
  }
  .integration-row > .btn,
  .integration-row > .connection-actions {
    grid-column: 2;
    justify-self: start;
  }
  .integration-row .btn {
    font-size: 10px;
    min-height: 33px;
  }
  .settings-block {
    padding: 21px 18px;
    margin-bottom: 15px;
  }
  .settings-block h2 {
    font-size: 16px;
  }
  .form-grid {
    gap: 14px;
  }
  .field > span,
  .field > label {
    font-size: 10px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 13px;
    min-height: 44px;
  }
  .settings-row {
    grid-template-columns: 1fr 70px 65px 28px;
    gap: 6px;
  }
  .settings-row .field input {
    padding: 8px 6px;
    font-size: 10px;
  }
  .settings-row .field > span {
    font-size: 9px;
  }
  .settings-row .icon-btn {
    padding: 5px;
    width: 28px;
  }
  .settings-help {
    padding: 3px 6px 20px;
  }
  .settings-row.staff {
    grid-template-columns: 1fr 1.2fr 28px;
  }
  .login {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-form-wrap {
    min-height: 100svh;
    padding: 40px 25px;
  }
  .login-form h2 {
    font-size: 23px;
  }
  .login-form > p {
    font-size: 12px;
  }
  .login-form .field > span {
    font-size: 11px;
  }
  .login-form .field input {
    font-size: 14px;
    min-height: 47px;
  }
  .login-form .btn {
    min-height: 46px;
  }
  .dialog-head {
    padding: 20px 20px 16px;
  }
  .dialog-head h2 {
    font-size: 16px;
  }
  .dialog-body {
    padding: 21px 20px 25px;
  }
  .dialog-body .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dialog-body .field input,
  .dialog-body .field select {
    font-size: 12px;
  }
  .dialog-foot {
    gap: 8px;
    flex-wrap: wrap;
  }
  .dialog-foot .btn {
    font-size: 11px;
    min-height: 40px;
  }
  .slots {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }
  .slot {
    font-size: 11px;
    min-height: 38px;
  }
  #toasts {
    right: 15px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 15px;
    max-width: none;
  }
  .toast {
    font-size: 11px;
    padding: 13px 14px;
  }
  .own-profile {
    right: 15px;
    top: 72px;
  }
  .panel-pad {
    padding: 20px;
  }
  .connection-actions {
    flex-wrap: wrap;
  }
  .empty {
    padding: 35px 20px;
  }
  .empty p {
    font-size: 11px;
  }
  .cta-row .btn {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .core-stack {
    transform: rotateX(54deg) rotateZ(-34deg);
  }
}

body.context-modal {
  overflow: hidden;
}
@media (max-height: 850px) and (min-width: 761px) {
  .rail {
    gap: 18px;
    padding-top: 20px;
  }
  .rail-tip {
    display: none;
  }
  .nav-item {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .nav-sep {
    margin-top: 9px;
    margin-bottom: 9px;
  }
}

.legal-page {
  max-width: 78ch;
  margin: 0 auto;
  padding: 48px 24px 80px;
  line-height: 1.8;
}
.legal-page h1 {
  font-size: clamp(24px, 5vw, 36px);
  margin: 30px 0 10px;
}
.legal-page h2 {
  margin: 34px 0 10px;
}
.legal-page p {
  margin: 14px 0;
}
.legal-page a {
  color: #9b391d;
}
.legal-contact {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
