:root {
  color-scheme: light;
  --ink: #2e2735;
  --muted: #6a6470;
  --paper: #faf9f6;
  --line: #e4e0e5;
  --plum: #45334f;
  --lilac: #eadcf2;
  --orange: #ff984c;
  --peach: #ffe4cf;
  --white: #fff;
  --radius: 18px;
  font-family:
    Inter, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea,
a {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #9667ac;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(32px, 3.7vw, 56px);
  line-height: 1.17;
  letter-spacing: -0.072em;
  font-weight: 760;
}
h2 {
  font-size: 21px;
  line-height: 1.34;
  letter-spacing: -0.055em;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}
p {
  line-height: 1.66;
  overflow-wrap: anywhere;
}
small {
  color: var(--muted);
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 10px;
  background: white;
  z-index: 30;
}
[hidden] {
  display: none !important;
}
.ico {
  width: 19px;
  height: 19px;
  flex: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand b {
  font-family: "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2.6px;
}
.brand b span {
  color: #d67124;
}
.welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1350px;
  margin: auto;
  padding: 28px clamp(24px, 5vw, 78px) 18px;
}
.welcome-product {
  color: #63596b;
  font-size: 13px;
  font-weight: 600;
}
.welcome {
  max-width: 1350px;
  margin: 0 auto;
  padding: 8px clamp(24px, 5vw, 78px) 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  gap: clamp(35px, 7vw, 110px);
  align-items: center;
  min-height: min(780px, calc(100svh - 105px));
}
.art-panel {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #cfabdf;
  border-radius: 32px;
  min-height: 530px;
  height: clamp(540px, 76vh, 730px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.art-title {
  position: relative;
  z-index: 1;
  padding: clamp(27px, 4vw, 58px);
}
.art-title h1 {
  margin: 20px 0 0;
  font-size: clamp(42px, 4.5vw, 68px);
  letter-spacing: -0.08em;
}
.mascot-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #493454;
}
.mascot-label i {
  width: 8px;
  height: 8px;
  background: #f9953f;
  border-radius: 100%;
  box-shadow: 0 0 0 3px #ffffff50;
}
.welcome-art {
  position: absolute;
  z-index: -1;
  bottom: 5%;
  width: 100%;
  height: 63%;
  object-fit: cover;
  object-position: center 50%;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 10%,
    #000 85%,
    transparent
  );
}
.art-foot {
  padding: 18px 30px 27px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #4c3758;
}
.welcome-form {
  display: grid;
  align-items: center;
}
.welcome-form-inner {
  width: 100%;
  max-width: 420px;
}
.welcome-form h2 {
  font-size: clamp(30px, 3.05vw, 45px);
  letter-spacing: -0.073em;
  line-height: 1.24;
}
.sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  word-break: keep-all;
}
.switch {
  display: flex;
  background: #eeeaf0;
  border-radius: 13px;
  padding: 4px;
  gap: 3px;
}
.switch button {
  border-radius: 10px;
  flex: 1;
  min-height: 40px;
  font-size: 14px;
  font-weight: 630;
  color: #736a78;
}
.switch button[aria-pressed="true"] {
  background: white;
  color: var(--plum);
  box-shadow: 0 1px 4px #34223d12;
}
.auth-switch {
  margin: 28px 0 22px;
}
.stack {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dcd6df;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 450;
}
input::placeholder,
textarea::placeholder {
  color: #807986;
  opacity: 1;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--plum);
}
.primary,
.quiet,
.text-button,
.icon-btn,
.submit-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary,
.quiet {
  font-weight: 660;
  border-radius: 12px;
  min-height: 44px;
  padding: 11px 17px;
  font-size: 14px;
  line-height: 1.35;
}
.primary {
  background: var(--plum);
  color: white;
}
.primary:hover,
.submit-round:hover {
  background: #5b4168;
}
.quiet {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.quiet:hover,
.examples button:hover,
.icon-btn:hover {
  background: #f4eef6;
}
.whole {
  width: 100%;
  min-height: 49px;
}
.auth-switch + .stack .whole {
  margin-top: 4px;
}
.text-button {
  padding: 4px 0;
  color: #675070;
  font-size: 14px;
  font-weight: 630;
  min-height: 34px;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.restore {
  margin-top: 16px;
  color: #655b6b;
  font-size: 13px;
}
.restore .ico {
  width: 16px;
}
.icon-btn {
  height: 38px;
  width: 38px;
  border-radius: 100%;
}
.boot {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
}
.error {
  padding: 9px 12px;
  color: #8c2a24;
  background: #fff0eb;
  border-radius: 10px;
  font-size: 14px;
}
.workspace {
  display: flex;
  min-height: 100svh;
  background: #fff;
}
.sidebar {
  width: 232px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f8f7f5;
  padding: 33px 18px 21px;
}
.sidebar > .brand {
  margin: 0 12px 42px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 10px 14px;
  color: #615967;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
}
.nav-link:hover {
  background: #efedf0;
}
.nav-link.active {
  background: #ebe1f0;
  color: var(--plum);
}
.nav-count {
  margin-left: auto;
  background: #574163;
  color: white;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 17px;
  font-size: 11px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 13px 10px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #46324e;
  font-weight: 700;
}
.personal,
.peach {
  background: var(--peach);
}
.lilac {
  background: var(--lilac);
}
.profile span:last-child,
.row-text {
  min-width: 0;
}
.profile strong,
.profile small,
.handoff-meta small {
  display: block;
  overflow-wrap: anywhere;
}
.profile strong {
  font-size: 14px;
}
.profile small {
  font-size: 12px;
  margin-top: 3px;
}
.main-wrap {
  flex: 1;
  min-width: 0;
}
.workspace-bar {
  min-height: 73px;
  border-bottom: 1px solid #edeaee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(26px, 5vw, 74px);
  gap: 10px;
}
.workspace-bar > span {
  min-width: 0;
}
.workspace-bar .brand,
.mobile-name,
.mobile-menu {
  display: none;
}
.desktop-path {
  font-size: 14px;
  color: #5f5865;
  overflow-wrap: anywhere;
}
.desktop-path span {
  color: #b3aab6;
  margin: 0 10px;
}
.compact {
  font-size: 13px;
  min-height: 37px;
  padding: 8px 12px;
  border-radius: 10px;
}
.compact .ico {
  width: 16px;
  height: 16px;
}
.main-content {
  max-width: 1000px;
  margin: auto;
  padding: clamp(23px, 3.5vw, 54px) clamp(24px, 4.7vw, 70px) 70px;
}
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(245px, 22vw, 335px);
  border-radius: 26px;
  background: #e7d6ee;
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 28px clamp(20px, 3.2vw, 45px);
  max-width: 67%;
  pointer-events: none;
}
.hero-copy h1 {
  font-size: clamp(29px, 3.4vw, 50px);
  margin: 13px 0;
  line-height: 1.28;
}
.hero-copy p {
  color: #5b4b63;
  font-size: 14px;
  word-break: keep-all;
}
.home-hero > img {
  width: 51%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
.composer {
  border: 1.5px solid #d7cddd;
  border-radius: 21px;
  padding: 14px 15px 12px;
  background: white;
  margin-top: 22px;
  box-shadow: 0 4px 16px #34243d09;
}
.composer:focus-within {
  border-color: #987aa8;
}
.composer textarea {
  border: 0;
  border-radius: 0;
  resize: vertical;
  max-height: 35vh;
  min-height: 62px;
  padding: 4px 4px 8px;
  font-size: 16px;
  outline: none;
}
.composer textarea:focus-visible {
  outline: none;
}
.composer-tools,
.section-head,
.page-heading,
.dialog-head,
.handoff-meta,
.team-banner,
.card-actions,
.examples,
.mode-switch,
.account-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.composer-tools,
.section-head,
.page-heading,
.dialog-head {
  justify-content: space-between;
}
.mode-switch {
  gap: 3px;
}
.mode-switch button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 9px;
  color: #726879;
}
.mode-switch button[aria-pressed="true"] {
  background: #f1eaf4;
  color: #4c3758;
}
.mode-switch .ico,
.examples .ico {
  width: 15px;
  height: 15px;
}
.submit-round {
  background: var(--plum);
  color: white;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 11px;
  padding: 0 9px;
}
.composer .error {
  margin-top: 7px;
}
.examples,
.card-actions {
  flex-wrap: wrap;
}
.examples {
  margin-top: 13px;
  gap: 7px;
}
.examples button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  min-height: 33px;
  border: 1px solid var(--line);
  background: white;
  color: #665b6c;
  border-radius: 20px;
  padding: 5px 11px;
}
.section-gap {
  margin-top: 33px;
}
.section-head {
  min-height: 35px;
  margin-bottom: 8px;
}
.section-gap > h2 {
  margin-bottom: 12px;
}
.empty-line {
  color: #746d77;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.record-row {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 3px;
}
.record-row[href]:hover {
  background: #faf8fb;
}
.record-row > .ico {
  color: #8c818e;
  width: 16px;
}
.row-icon {
  height: 39px;
  width: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.row-text {
  flex: 1;
}
.row-text b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.row-text small,
.item-list small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.page-heading {
  margin: 4px 0 27px;
  gap: 16px;
  align-items: flex-start;
}
.page-heading h1 {
  font-size: clamp(31px, 3.5vw, 46px);
}
.page-heading .compact {
  white-space: nowrap;
}
.empty-state {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 14px;
  gap: 10px;
  text-align: center;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  word-break: keep-all;
}
.empty-state .quiet {
  margin-top: 5px;
}
.inbox-switch {
  display: inline-flex;
  margin-bottom: 20px;
}
.inbox-switch button {
  padding: 7px 17px;
  min-height: 34px;
  white-space: nowrap;
}
.card-list {
  display: grid;
  gap: 14px;
}
.handoff-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
}
.section-gap > .handoff-card + .handoff-card {
  margin-top: 12px;
}
.handoff-meta strong {
  font-size: 14px;
}
.handoff-meta small {
  font-size: 12px;
  margin-top: 3px;
}
.handoff-meta > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.state-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 4px 8px;
  line-height: 1.3;
  font-size: 11px;
  font-weight: 650;
  background: #e9f0e9;
  color: #466047;
  white-space: nowrap;
}
.state-chip.pending {
  background: #fff0db;
  color: #785223;
}
.handoff-meta .state-chip {
  margin-left: auto;
}
.message-text,
.summary,
.reply p,
.receipt p,
.request-quote,
.user-msg {
  white-space: pre-wrap;
  word-break: break-word;
}
.message-text {
  margin-top: 14px;
  font-size: 15px;
}
.receipt,
.reply {
  margin-top: 13px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f1f7;
}
.reply {
  background: #fff3e9;
}
.receipt strong,
.reply strong,
.request-quote b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.receipt .ico {
  width: 14px;
  height: 14px;
}
.receipt p,
.reply p {
  margin-top: 4px;
  font-size: 14px;
}
.card-actions:not(:empty) {
  margin-top: 14px;
}
.team-banner {
  padding: 20px;
  background: #f4eef6;
  border-radius: 18px;
}
.team-banner > div {
  flex: 1;
  overflow-wrap: anywhere;
}
.team-banner p {
  font-size: 13px;
  color: var(--muted);
}
.account-foot {
  margin-top: 30px;
  justify-content: flex-end;
}
.back {
  margin-bottom: 10px;
  font-size: 13px;
}
.back .ico {
  width: 16px;
}
.user-msg {
  margin: 18px 0 20px auto;
  max-width: 87%;
  width: fit-content;
  background: #f0e8f5;
  border-radius: 18px 18px 4px 18px;
  padding: 13px 17px;
  line-height: 1.6;
}
.agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.summary {
  font-size: 16px;
  margin: 10px 0 19px;
}
.context-link {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: #faf7fb;
  border-radius: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.context-link .ico {
  width: 16px;
}
.review-card h2 {
  font-size: 18px;
}
.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.item-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #ede9ee;
}
.item-list b {
  font-weight: 580;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.item-dot {
  width: 7px;
  height: 7px;
  background: #b39ac0;
  border-radius: 100%;
  flex: none;
  margin-top: 7px;
}
.item-list .deselected b {
  color: #77717a;
  text-decoration: line-through;
}
.item-list .deselected .item-dot {
  background: #d9d6da;
}
.item-list small {
  overflow-wrap: anywhere;
}
dialog {
  color: var(--ink);
  border: 1px solid #e2dbe5;
  border-radius: 23px;
  padding: 24px;
  width: min(480px, calc(100vw - 30px));
  overflow: auto;
  max-height: calc(100dvh - 44px);
  box-shadow: 0 20px 80px #30213729;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #271a2e59;
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog h2 {
  font-size: 23px;
}
dialog > .sub {
  margin: 8px 0 20px;
}
dialog > label + label {
  margin-top: 17px;
}
dialog > .whole,
dialog form > .whole:last-child {
  margin-top: 16px;
}
dialog .stack {
  gap: 14px;
}
dialog .stack > .whole:last-child {
  margin-top: 0;
}
.copy-field {
  display: flex;
  gap: 7px;
}
.copy-field input {
  flex: 1;
}
.copy-field .quiet {
  white-space: nowrap;
}
.request-quote {
  background: #f4eff6;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  margin: 12px 0 18px;
  max-height: 24vh;
  overflow: auto;
}
.request-quote b {
  margin-bottom: 4px;
}
.draft {
  justify-self: start;
  font-size: 13px;
  min-height: 38px;
}
.edit-row {
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.edit-row legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
}
.edit-meta {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 7px;
}
.edit-meta label,
.edit-row label {
  font-size: 12px;
}
.edit-row input:not([type="checkbox"]) {
  padding: 8px;
  min-height: 40px;
  font-size: 14px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.check-label input {
  width: 17px;
  height: 17px;
}
.edit-row .text-button {
  justify-self: start;
  color: #775c65;
  font-size: 12px;
}
.edit-row .text-button:hover {
  color: #973624;
}
.menu-links {
  display: grid;
  margin: 14px 0 0;
}
.menu-links a {
  padding: 12px;
  display: flex;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.menu-links a:hover {
  background: #f3edf5;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 20;
  padding: 10px 17px;
  border-radius: 12px;
  max-width: calc(100% - 28px);
  color: white;
  background: #3f3048;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.14s,
    transform 0.14s;
}
#notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .welcome {
    min-height: calc(100svh - 124px);
  }
  .sidebar {
    width: 260px;
  }
  .main-content {
    max-width: 1100px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 185px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-content {
    padding-left: 28px;
    padding-right: 28px;
  }
  .welcome {
    gap: 5vw;
  }
  .art-panel {
    height: clamp(500px, 71vh, 660px);
    min-height: 0;
  }
  .welcome-art {
    height: 58%;
  }
  .art-title {
    padding: 33px;
  }
  .hero-copy {
    padding-left: 27px;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 3.35vw, 40px);
  }
}
@media (max-width: 740px) {
  .welcome-header {
    padding: 18px 20px 12px;
  }
  .welcome-header .brand img {
    width: 29px;
    height: 29px;
  }
  .brand b {
    font-size: 29px;
  }
  .welcome-product {
    font-size: 12px;
  }
  .welcome {
    display: block;
    min-height: auto;
    padding: 0 17px 32px;
    max-width: 560px;
  }
  .art-panel {
    height: clamp(165px, 31vh, 234px);
    min-height: 0;
    border-radius: 20px;
    display: block;
  }
  .welcome-art {
    width: 63%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    object-fit: cover;
    object-position: 53% 50%;
    mask-image: linear-gradient(90deg, transparent, #000 19%);
  }
  .art-title {
    padding: 20px 17px;
  }
  .art-title h1 {
    font-size: clamp(28px, 7vw, 40px);
    margin-top: 13px;
  }
  .art-foot {
    position: absolute;
    bottom: 13px;
    left: 17px;
    text-align: left;
    padding: 0;
    font-size: 10px;
    max-width: 42%;
  }
  .welcome-form-inner {
    margin: auto;
  }
  .welcome-form {
    padding: 26px 4px 0;
  }
  .welcome-form h2 {
    font-size: 30px;
  }
  .auth-switch {
    margin: 20px 0 17px;
  }
  .sub {
    font-size: 14px;
  }
  .stack {
    gap: 13px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 5;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 0 5px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid var(--line);
    background: #fffc;
    backdrop-filter: blur(14px);
  }
  .sidebar > .brand,
  .sidebar > .profile {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .nav-link {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 61px;
    font-size: 10px;
    border-radius: 0;
    padding: 6px 2px;
    color: #786f7d;
  }
  .nav-link .ico {
    height: 21px;
    width: 21px;
  }
  .nav-link.active {
    background: transparent;
    color: #4f345c;
  }
  .nav-link.active .ico {
    fill: #eee3f3;
    stroke-width: 2.2;
  }
  .nav-count {
    position: absolute;
    left: calc(50% + 7px);
    top: 3px;
    font-size: 9px;
    line-height: 14px;
    padding: 0 4px;
  }
  .workspace-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 54px;
    padding: 5px 13px;
    gap: 5px;
    border-bottom: 1px solid #f0edf0;
  }
  .workspace-bar > span {
    justify-self: center;
  }
  .workspace-bar > .quiet {
    justify-self: end;
  }
  .workspace-bar .desktop-path {
    display: none;
  }
  .workspace-bar .mobile-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    letter-spacing: -0.04em;
  }
  .workspace-bar .mobile-name img {
    height: 26px;
    width: 26px;
  }
  .workspace-bar > .mobile-menu {
    display: grid;
    place-items: center;
    justify-self: start;
    height: 38px;
    width: 38px;
  }
  .workspace-bar > .compact {
    padding: 6px 8px;
    min-height: 34px;
    font-size: 12px;
  }
  .workspace-bar > .compact .ico {
    width: 15px;
  }
  .main-content {
    max-width: 580px;
    padding: 20px 17px calc(85px + env(safe-area-inset-bottom));
    margin: auto;
  }
  .home-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 23px;
    overflow: hidden;
    background: #f5eef8;
  }
  .home-hero > img {
    position: static;
    order: -1;
    width: 100%;
    height: clamp(170px, 27vh, 245px);
    object-fit: cover;
    object-position: 50% 48%;
    mask-image: linear-gradient(180deg, #000 85%, transparent);
    z-index: 0;
  }
  .hero-copy {
    padding: 2px 13px 21px;
    max-width: 100%;
  }
  .hero-copy .mascot-label {
    display: none;
  }
  .hero-copy h1 {
    font-size: 26px;
    letter-spacing: -0.07em;
    margin: 4px 0 5px;
    line-height: 1.3;
  }
  .hero-copy h1 br {
    display: none;
  }
  .hero-copy h1 br:after {
    content: " ";
  }
  .hero-copy p {
    font-size: 13px;
  }
  .main-content:has(.home-hero) {
    padding-bottom: calc(185px + env(safe-area-inset-bottom));
  }
  .home-hero + .composer {
    position: fixed;
    z-index: 4;
    bottom: calc(67px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(544px, calc(100% - 24px));
    margin: 0;
    background: white;
    box-shadow: 0 3px 22px #3923451b;
    padding: 10px 11px 8px;
    border-radius: 17px;
  }
  .home-hero + .composer textarea {
    min-height: 30px;
    height: 34px;
    max-height: 22vh;
    resize: none;
    font-size: 16px;
    padding: 3px 3px 4px;
  }
  .home-hero + .composer:focus-within textarea {
    height: 57px;
  }
  .composer-tools .submit-round {
    min-width: 33px;
    height: 33px;
  }
  .examples {
    justify-content: center;
    margin-top: 14px;
    gap: 6px;
  }
  .examples button {
    font-size: 11px;
    padding: 5px 8px;
  }
  .section-gap {
    margin-top: 24px;
  }
  .section-head h2,
  .section-gap > h2 {
    font-size: 19px;
  }
  .page-heading {
    margin: 3px 0 20px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading .sub {
    font-size: 13px;
  }
  .page-heading > .primary {
    margin-top: 1px;
    flex: none;
  }
  .record-row {
    gap: 10px;
    padding: 14px 1px;
  }
  .row-text b {
    font-size: 14px;
  }
  .row-icon {
    height: 35px;
    width: 35px;
  }
  .record-row .state-chip {
    font-size: 10px;
    padding: 3px 6px;
  }
  .handoff-card,
  .review-card {
    padding: 15px;
  }
  .team-banner {
    padding: 13px;
    gap: 8px;
  }
  .team-banner h2 {
    font-size: 18px;
  }
  .profile strong,
  .team-banner h2 {
    overflow-wrap: anywhere;
  }
  .team-banner .compact {
    padding: 7px;
  }
  .edit-meta {
    grid-template-columns: 1fr 1fr;
  }
  .edit-meta label:first-child {
    grid-column: 1/-1;
  }
  .copy-field input,
  dialog input:not([type="checkbox"]),
  dialog select,
  dialog textarea,
  .welcome-form input {
    font-size: 16px;
  }
  .welcome-form .switch button,
  .whole {
    font-size: 14px;
  }
  dialog {
    padding: 18px;
    max-height: calc(100dvh - 26px);
    border-radius: 18px;
  }
  #notice {
    bottom: calc(85px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 13px;
    width: max-content;
  }
  .handoff-meta {
    flex-wrap: wrap;
  }
  .handoff-meta .state-chip {
    font-size: 10px;
  }
  .empty-state {
    padding: 38px 12px;
  }
  .text-button {
    font-size: 13px;
  }
}
@media (max-width: 365px) {
  .art-foot {
    display: none;
  }
  .examples {
    gap: 4px;
  }
  .examples button {
    font-size: 10px;
  }
  .examples button .ico {
    width: 12px;
  }
  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .switch button {
    font-size: 12px;
  }
  .page-heading {
    gap: 7px;
  }
  .compact {
    font-size: 12px;
  }
  .hero-copy h1 {
    font-size: 23px;
  }
  .handoff-meta .avatar {
    width: 28px;
    height: 28px;
  }
  .card-actions {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.welcome-form .sub + .stack {
  margin-top: 24px;
}
.dialog-feedback {
  margin-top: 14px;
  color: #51425a;
  background: #f3eef6;
  font-size: 13px;
  border-radius: 10px;
  padding: 8px 12px;
}

/* Conversation viewport keeps the editor in reach as the transcript grows. */
.workspace:has(.chat-room) .main-wrap {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.main-content:has(.chat-room) {
  max-width: none;
  min-height: 0;
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
}
.chat-room {
  --chat-gutter: clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat-column, .chat-dock {
  width: min(100%, 830px);
  margin-inline: auto;
  padding-inline: var(--chat-gutter);
}
.chat-column { min-height: 100%; display: flex; flex-direction: column; }
.chat-welcome {
  margin: auto 0;
  padding-block: 28px;
  text-align: center;
}
.chat-welcome[hidden] { display: none; }
.chat-welcome img {
  width: clamp(112px, 18vh, 170px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 38%;
}
.chat-welcome h2 {
  margin: 20px auto 16px;
  line-height: 1.35;
  font-size: clamp(21px, 3vw, 32px);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.chat-welcome .examples { justify-content: center; margin-top: 0; }
.chat-dock { flex: none; padding-block: 9px clamp(12px, 2.5vh, 26px); }
.chat-dock .composer { margin: 0; }
.dock-bar, .chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dock-bar { justify-content: flex-end; padding-bottom: 6px; }
.dock-bar button, .chat-actions button { font-size: 13px; }
#chat-stream article { padding-block: 16px 8px; overflow-wrap: anywhere; }
.chat-actions { margin: 3px 0 5px; }
.chat-context { display: block; color: #715c7c; margin-bottom: 5px; font-size: 12px; }
.chat-room .user-msg, .chat-room .message-text, .chat-room .summary, .chat-room .receipt p { white-space: pre-wrap; }
.chat-room .summary { margin: 10px 0 12px; line-height: 1.65; }
.chat-room .agent-head small { font-size: 12px; color: #766d79; }
.chat-room .review-card { margin-block: 10px; }
.chat-handoff, #chat-editor {
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-block: 10px;
}
.chat-handoff .card-actions { margin-top: 12px; }
#chat-editor { background: #fcfafc; scroll-margin: 12px; }
#chat-editor h2 { font-size: 19px; }
.working { color: #64506e; padding-left: 36px; }
@media (max-width: 740px) {
  .workspace:has(.chat-room) .main-wrap { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .chat-dock { padding-block: 5px 8px; }
  .chat-dock .composer { padding: 8px 10px; }
  .chat-dock .composer textarea { min-height: 40px; max-height: 15dvh; }
  .chat-welcome .examples { flex-wrap: wrap; }
}

.sidebar-features {
  border-top: 1px solid var(--line);
  margin: 20px 5px 0;
  padding-top: 14px;
  display: grid;
  gap: 4px;
}
.compose-icon {
  width: 37px;
  height: 37px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
  color: var(--plum);
}
.compose-icon:hover {
  background: #f2ecf4;
}
.compose-icon .ico {
  width: 20px;
  height: 20px;
}
.voice-shortcuts {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.chat-dock .composer-tools {
  justify-content: initial;
  gap: 8px;
}
.chat-dock .composer {
  border-radius: 23px;
}
.chat-dock .composer .submit-round {
  box-shadow: none;
}
.preview-disclosure {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 4px 0;
}
.chat-welcome img {
  width: clamp(126px, 21vh, 196px);
  border-radius: 35%;
  box-shadow: 0 8px 28px #5b376119;
}
.chat-welcome h2 {
  max-width: 590px;
}
.feature-group {
  border-block: 1px solid var(--line);
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 81px;
  padding: 12px 4px;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}
.feature-row:hover {
  background: #faf8fb;
}
.feature-icon,
.service-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: #efe6f4;
  color: #553a64;
}
.feature-row > span:nth-child(2) {
  flex: 1;
}
.feature-row b,
.feature-row small {
  display: block;
}
.feature-row small {
  margin-top: 4px;
  font-size: 13px;
}
.service-list {
  display: grid;
  gap: 12px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 20px;
  background: #fff;
}
.service-head,
.voice-companion {
  display: flex;
  align-items: center;
  gap: 13px;
}
.service-head > div,
.voice-companion > div {
  min-width: 0;
  flex: 1;
}
.service-head h2,
.voice-companion h2 {
  font-size: 18px;
}
.service-head p,
.voice-companion p,
.service-hint,
.connected-account {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.service-card .service-hint,
.connected-account,
.service-card .error {
  margin-top: 12px;
}
.service-card .card-actions {
  margin-left: 57px;
}
.service-card .card-actions:empty {
  display: none;
}
.service-glyph {
  background: #ffead9;
  color: #82562d;
}
.service-card:nth-child(even) .service-glyph {
  background: #ede4f4;
  color: #5c4070;
}
.preview-result {
  margin: 15px 0;
  padding: 15px;
  border-radius: 13px;
  background: #f7f3f9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 44dvh;
  overflow: auto;
}
.service-list + button {
  margin-top: 14px;
}
.voice-companion {
  padding: 18px;
  background: #f3edf6;
  border-radius: 20px;
}
.voice-companion img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 20px;
}
.call-history {
  margin-top: 16px;
}
.call-row {
  padding: 15px 2px;
  border-top: 1px solid var(--line);
}
.call-row > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.call-row p {
  margin: 6px 0;
  font-size: 14px;
}
.call-row small {
  font-size: 12px;
}
.call-row .text-button {
  margin-left: 15px;
  font-size: 12px;
}
.call-check {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 13px;
  background: #f5f1f7;
}
.call-check dt {
  font-size: 12px;
  color: var(--muted);
}
.call-check dt:not(:first-child) {
  margin-top: 8px;
}
.call-check dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.menu-links button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 15px;
  padding: 12px;
  text-align: left;
}
.contacts-picker {
  justify-self: start;
}
@media (max-width: 740px) {
  .sidebar-features {
    display: none;
  }
  .workspace-bar .mobile-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 10px;
    line-height: 1.14;
  }
  .mobile-name img {
    border-radius: 9px;
  }
  .workspace-bar > .mobile-menu {
    border: 1px solid #eee9ef;
    border-radius: 50%;
    width: 35px;
    height: 35px;
  }
  .workspace-bar > .compact {
    border-radius: 20px;
  }
  .chat-dock .composer-tools {
    gap: 4px;
  }
  .chat-dock .composer {
    border-radius: 20px;
  }
  .chat-dock .mode-switch button {
    padding: 5px 6px;
    font-size: 11px;
  }
  .compose-icon {
    width: 32px;
    height: 33px;
  }
  .chat-dock .mode-switch .ico {
    width: 14px;
  }
  .voice-shortcuts {
    gap: 0;
  }
  .chat-dock .composer textarea {
    height: 40px;
  }
  .chat-welcome img {
    width: clamp(115px, 19dvh, 154px);
  }
  .service-card {
    padding: 15px;
  }
  .service-card .card-actions {
    margin-left: 0;
  }
  .service-head {
    gap: 10px;
    align-items: flex-start;
  }
  .service-glyph,
  .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .service-head h2,
  .voice-companion h2 {
    font-size: 16px;
  }
  .service-head p,
  .feature-row small,
  .voice-companion p {
    font-size: 12px;
  }
  .service-head .state-chip {
    font-size: 10px;
  }
  .voice-companion {
    padding: 13px;
    gap: 9px;
  }
  .voice-companion img {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }
  .page-heading:has(+ #service-screen) {
    margin-bottom: 19px;
  }
  .voice-companion .compact,
  .section-head .compact {
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .chat-dock .mode-switch .ico {
    display: none;
  }
  .service-head {
    flex-wrap: wrap;
  }
  .service-head > div {
    min-width: 120px;
  }
}
.connection-result {
  margin-bottom: 16px;
}
.connection-result.success {
  background: #eaf2ed;
  color: #36523d;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
}

.auth-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.auth-options a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: var(--plum);
  font-weight: 650;
}
.auth-options a:hover {
  text-decoration: underline;
}
.auth-options .recovery-option {
  margin-left: auto;
}
.recovery-option .ico {
  width: 15px;
  height: 15px;
}
.field-help {
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
}
.login-settings {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.login-settings .quiet {
  margin-top: 12px;
}
.login-settings > .text-button {
  display: flex;
  margin-top: 14px;
}
@media (max-width: 740px) {
  .welcome[data-welcome-mode="signup"] .art-panel {
    height: clamp(132px, 20vh, 170px);
  }
  .welcome[data-welcome-mode="signup"] .art-foot {
    display: none;
  }
  .welcome[data-welcome-mode="signup"] .welcome-form {
    padding-top: 20px;
  }
}
