/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --ink: #17212b;
  --muted: #5b6875;
  --line: #d9e0e6;
  --surface: #f7fafc;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  flex-direction: column;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
}

a {
  color: var(--accent);
}

h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

p {
  line-height: 1.55;
}

.centered {
  flex: 1 0 auto;
  place-items: center;
  padding: 24px;
  display: grid;
}

.hero, .card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: min(100%, 480px);
  padding: 36px;
}

.hero {
  width: min(100%, 640px);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.button, button {
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  min-height: 42px;
  font: inherit;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
  display: inline-flex;
}

.button.secondary {
  color: var(--accent);
  background: #fff;
}

.card, .form-stack {
  gap: 16px;
  display: grid;
}

label {
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  display: grid;
}

input {
  border: 1px solid var(--line);
  min-height: 42px;
  font: inherit;
  border-radius: 5px;
  padding: 8px 10px;
}

.field-link {
  font-size: .9rem;
}

.error {
  color: #b42318;
}

.success {
  color: #087443;
}

.page {
  flex: 1 0 auto;
  width: min(100% - 40px, 900px);
  margin: 60px auto;
}

.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  display: flex;
}

.document-list {
  gap: 10px;
  display: grid;
}

.document {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  display: flex;
}

.document small {
  color: var(--muted);
  margin-top: 5px;
  display: block;
}

.link-button {
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.danger {
  color: #b42318;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.preferences-card, .cookie-explainer {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  margin-top: 24px;
  padding: 24px;
}

.preferences-card {
  gap: 18px;
  display: grid;
}

.preference-row {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  display: flex;
}

.preference-row p, .cookie-explainer p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: .92rem;
}

.preferences-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.switch {
  flex: none;
  width: 46px;
  height: 25px;
  display: inline-block;
  position: relative;
}

.switch input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.switch span {
  cursor: pointer;
  background: #a7b2bd;
  border-radius: 999px;
  transition: background .2s;
  position: absolute;
  inset: 0;
}

.switch span:before {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  transition: transform .2s;
  position: absolute;
  top: 3px;
  left: 3px;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span:before {
  transform: translateX(21px);
}

.switch input:disabled + span {
  cursor: not-allowed;
  opacity: .65;
}

.cookie-banner {
  z-index: 100;
  color: #fff;
  background: var(--ink);
  border: 1px solid #34414c;
  border-radius: 8px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  max-width: 1050px;
  margin: auto;
  padding: 22px 24px;
  display: grid;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  box-shadow: 0 20px 60px #17212b4d;
}

.cookie-banner-copy p {
  color: #d7e0e7;
  margin: 5px 0;
  font-size: .9rem;
}

.cookie-banner-copy a {
  color: #9ee7dd;
}

.cookie-banner-toggle {
  color: #fff;
  white-space: nowrap;
  align-items: center;
  gap: 14px;
  display: flex;
}

.cookie-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.cookie-banner .secondary {
  color: #fff;
  background: none;
  border-color: #92a2af;
}

.site-header {
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
}

.site-header-content {
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, 900px);
  min-height: 64px;
  margin: auto;
  display: flex;
}

.site-brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  flex-wrap: wrap;
  gap: 4px 20px;
  display: flex;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-header-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}

.site-header .button {
  min-height: 36px;
  padding: 6px 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-content {
  width: min(100% - 40px, 900px);
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: auto;
  padding: 22px 0;
  font-size: .9rem;
  display: flex;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 16px;
  display: flex;
}

.legal-placeholder {
  background: #fff8e8;
  border: 1px solid #e4b96b;
  border-radius: 8px;
  margin: 28px 0;
  padding: 20px 24px;
}

.legal-placeholder h2 {
  margin: 0;
  font-size: 1rem;
}

.legal-placeholder p {
  margin: 8px 0 0;
}

:root {
  --cm-canvas: #fbfcfa;
  --cm-surface: #fff;
  --cm-sidebar: #f3f6f3;
  --cm-ink: #1d2923;
  --cm-muted: #59675f;
  --cm-line: #d9e1db;
  --cm-accent: #21664f;
  --cm-accent-dark: #174d3b;
  --cm-accent-soft: #e7f0eb;
  --cm-focus: #176cba;
  --cm-warning: #81500b;
  --cm-danger: #a12d28;
}

.consultant-shell :focus-visible {
  outline: 3px solid var(--cm-focus);
  outline-offset: 3px;
}

.consultant-shell, .consultant-shell * {
  box-sizing: border-box;
}

.consultant-shell {
  width: 100%;
  min-height: 100svh;
  color: var(--cm-ink);
  background: var(--cm-canvas);
  flex: 1 0 auto;
  grid-template-columns: 258px minmax(0, 1fr);
  font-family: Arial, Helvetica, sans-serif;
  display: grid;
}

.consultant-sidebar {
  min-width: 0;
  height: 100svh;
  color: var(--cm-ink);
  background: var(--cm-sidebar);
  border-right: 1px solid var(--cm-line);
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px 16px;
  display: flex;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.consultant-sidebar-top {
  gap: 16px;
  padding: 0 5px;
  display: grid;
}

.consultant-brand {
  width: fit-content;
  color: var(--cm-ink);
  letter-spacing: -.035em;
  align-items: center;
  gap: 11px;
  font-size: 1.25rem;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
}

.brand-mark, .welcome-symbol, .message-avatar {
  color: #fff;
  background: var(--cm-accent);
  border-radius: 12px;
  flex: none;
  place-items: center;
  font-weight: 750;
  display: grid;
}

.brand-mark {
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
}

.demo-badge {
  width: fit-content;
  color: var(--cm-accent-dark);
  background: var(--cm-accent-soft);
  border: 1px solid #cfdfd4;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
}

.demo-badge > span {
  color: var(--cm-accent);
  font-size: .56rem;
}

.consultant-nav {
  gap: 5px;
  display: grid;
}

.consultant-nav-link {
  color: #44524a;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .14s, color .14s;
  display: flex;
}

.consultant-nav-link:hover {
  color: var(--cm-accent-dark);
  background: #e9eeea;
}

.consultant-nav-link.is-active {
  color: var(--cm-accent-dark);
  background: var(--cm-accent-soft);
  border-color: #d1e0d6;
}

.nav-icon {
  color: var(--cm-accent);
  flex: 0 0 22px;
  place-items: center;
  font-size: 1.08rem;
  display: grid;
}

.consultant-history {
  border-top: 1px solid var(--cm-line);
  flex-direction: column;
  flex: auto;
  gap: 10px;
  min-height: 120px;
  padding-top: 18px;
  display: flex;
}

.history-title-row {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding-left: 4px;
  display: flex;
}

.history-title-row h2 {
  color: var(--cm-muted);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0;
  font-size: .75rem;
  font-weight: 750;
}

.icon-button, .attach-button, .remove-attachment {
  min-width: 44px;
  min-height: 44px;
  color: var(--cm-accent-dark);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.history-new {
  font-size: 1.45rem;
  font-weight: 500;
}

.icon-button:hover, .attach-button:hover, .remove-attachment:hover {
  background: var(--cm-accent-soft);
}

.history-search-label, .document-filter-label {
  color: var(--cm-muted);
  font-size: .78rem;
  font-weight: 650;
}

.history-search, .document-filter {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  color: var(--cm-ink);
  font: inherit;
  background: #fff;
  border: 1px solid #cbd6ce;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: .9rem;
}

.history-search::placeholder, .composer textarea::placeholder, .document-filter::placeholder {
  color: #68766d;
  opacity: 1;
}

.history-list {
  align-content: start;
  gap: 4px;
  min-width: 0;
  max-height: min(36svh, 310px);
  display: grid;
  overflow-y: auto;
}

.history-item {
  min-width: 0;
  min-height: 48px;
  color: var(--cm-ink);
  border: 1px solid #0000;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  font-size: .84rem;
  text-decoration: none;
  display: flex;
}

.history-item:hover, .history-item.is-current {
  background: #e8eeea;
}

.history-dot {
  border: 1px solid #6b8e7a;
  border-radius: 50%;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
}

.history-item-copy {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.history-item-copy > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.history-item-copy small {
  color: var(--cm-muted);
  font-size: .73rem;
}

.history-note, .history-empty {
  color: var(--cm-muted);
  margin: 3px 4px;
  font-size: .81rem;
  line-height: 1.5;
}

.history-empty p {
  margin: 0 0 6px;
}

.new-chat-button {
  min-height: 44px;
  color: var(--cm-accent-dark);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border: 1px solid #c9d8ce;
  border-radius: 9px;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  font-size: .87rem;
  font-weight: 700;
  display: flex;
}

.consultant-profile {
  border-top: 1px solid var(--cm-line);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 4px 0;
  display: flex;
  position: relative;
}

.profile-avatar, .client-avatar {
  color: #fff;
  background: #526c5d;
  border-radius: 50%;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  font-weight: 700;
  display: grid;
}

.profile-copy {
  flex: auto;
  gap: 3px;
  min-width: 0;
  font-size: .81rem;
  display: grid;
}

.profile-copy strong, .profile-copy span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.profile-copy span {
  color: var(--cm-muted);
  font-size: .74rem;
}

.profile-settings {
  flex: none;
  position: relative;
}

.profile-settings summary {
  width: 42px;
  height: 42px;
  color: var(--cm-muted);
  cursor: pointer;
  border-radius: 8px;
  place-items: center;
  list-style: none;
  display: grid;
}

.profile-settings summary::-webkit-details-marker {
  display: none;
}

.profile-settings summary:hover {
  background: #e5eae6;
}

.settings-popover {
  z-index: 5;
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 12px;
  width: min(250px, 100vw - 32px);
  padding: 16px;
  font-size: .84rem;
  position: absolute;
  bottom: 48px;
  right: 0;
  box-shadow: 0 12px 32px #172a1f1f;
}

.settings-popover p {
  color: var(--cm-muted);
  margin: 8px 0;
  line-height: 1.5;
}

.settings-popover a {
  color: var(--cm-accent-dark);
  font-weight: 700;
}

.consultant-main {
  background: var(--cm-canvas);
  min-width: 0;
  min-height: 100svh;
  display: flex;
}

.chat-workspace {
  flex-direction: column;
  flex: auto;
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  display: flex;
}

.chat-topbar {
  border-bottom: 1px solid var(--cm-line);
  background: #fff;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 20px clamp(20px, 4vw, 56px);
  display: flex;
}

.chat-topbar h1 {
  color: var(--cm-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 3px 0 0;
  font-size: 1.04rem;
  font-weight: 650;
  overflow: hidden;
}

.eyebrow {
  color: var(--cm-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.4;
  display: block;
}

.top-demo-badge {
  flex: none;
}

.chat-thread {
  flex-direction: column;
  flex: auto;
  width: min(100%, 920px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) clamp(18px, 4vw, 36px) 24px;
  display: flex;
}

.welcome-state {
  flex-direction: column;
  flex: 1 0 auto;
  justify-content: center;
  align-items: flex-start;
  min-height: 390px;
  padding: 20px 0 50px;
  display: flex;
}

.welcome-symbol {
  border-radius: 14px;
  width: 42px;
  height: 42px;
  margin-bottom: 27px;
  font-size: 1.28rem;
}

.welcome-state h2 {
  max-width: 680px;
  color: var(--cm-ink);
  letter-spacing: -.04em;
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.welcome-state > p {
  max-width: 620px;
  color: var(--cm-muted);
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.6;
}

.suggestions {
  flex-wrap: wrap;
  gap: 9px;
  max-width: 760px;
  margin-top: 27px;
  display: flex;
}

.suggestion-chip {
  color: #334b3d;
  cursor: pointer;
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid #d3ded6;
  border-radius: 10px;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  font-size: .85rem;
  line-height: 1.4;
  display: inline-flex;
}

.suggestion-chip:hover {
  background: var(--cm-accent-soft);
  border-color: #b7cdbd;
}

.suggestion-chip > span {
  color: var(--cm-accent);
}

.message-list {
  align-content: start;
  gap: 28px;
  width: 100%;
  margin: auto 0;
  padding: 12px 0 32px;
  display: grid;
}

.chat-message {
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.user-message {
  justify-content: flex-end;
}

.user-message .message-body {
  background: #edf2ee;
  border: 1px solid #dfe7e0;
  border-radius: 16px 16px 4px;
  max-width: min(82%, 700px);
  padding: 14px 17px;
}

.assistant-message .message-body {
  max-width: 760px;
  padding: 2px 0;
}

.message-avatar {
  border-radius: 10px;
  width: 32px;
  height: 32px;
  font-size: .95rem;
}

.message-meta {
  color: var(--cm-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .73rem;
  display: flex;
}

.message-meta strong {
  color: #34463a;
  font-size: .78rem;
}

.message-body p {
  color: var(--cm-ink);
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  font-size: .97rem;
  line-height: 1.62;
}

.error-inline {
  color: var(--cm-danger);
  font-weight: 700;
}

.message-attachments {
  color: var(--cm-muted);
  gap: 5px;
  margin: 9px 0 0;
  padding: 0;
  font-size: .8rem;
  list-style: none;
  display: grid;
}

.message-attachments span {
  color: var(--cm-muted);
}

.assistant-typing {
  color: var(--cm-muted);
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  display: flex;
}

.typing-pulse, .loading-mark, .send-spinner {
  border: 2px solid #90ab99;
  border-top-color: var(--cm-accent);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  animation: .8s linear infinite cm-spin;
}

@keyframes cm-spin {
  to {
    transform: rotate(360deg);
  }
}

.composer-area {
  z-index: 2;
  background: linear-gradient(0deg, var(--cm-canvas) 88%, #fbfcfa00);
  width: min(100%, 990px);
  margin: auto auto 0;
  padding: 10px clamp(16px, 4vw, 36px) 18px;
  position: sticky;
  bottom: 0;
}

.composer {
  background: #fff;
  border: 1px solid #cbd8cf;
  border-radius: 16px;
  gap: 8px;
  min-width: 0;
  padding: 12px 12px 10px 16px;
  display: grid;
  box-shadow: 0 5px 18px #233a2c0d;
}

.composer:focus-within {
  border-color: #83a994;
  box-shadow: 0 0 0 2px #21664f1a;
}

.composer textarea {
  resize: vertical;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  max-height: 160px;
  color: var(--cm-ink);
  font: inherit;
  background: none;
  border: 0;
  outline: none;
  padding: 5px 2px;
  font-size: .96rem;
  line-height: 1.5;
  display: block;
}

.composer textarea:focus-visible {
  outline: none;
}

.composer textarea:disabled {
  opacity: .75;
}

.composer-controls, .composer-left-controls {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.composer-left-controls {
  justify-content: flex-start;
}

.attach-button {
  gap: 5px;
  padding: 0 9px;
  font-size: .84rem;
  font-weight: 650;
}

.attach-button > :first-child {
  font-size: 1.3rem;
}

.attach-button:disabled {
  color: #68766d;
  cursor: not-allowed;
}

.composer-hint, .attachment-disclaimer {
  color: var(--cm-muted);
  font-size: .73rem;
  line-height: 1.4;
}

.send-button {
  color: #fff;
  background: var(--cm-accent);
  border: 1px solid var(--cm-accent);
  cursor: pointer;
  min-width: 86px;
  min-height: 44px;
  font: inherit;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  font-size: .85rem;
  font-weight: 700;
  display: inline-flex;
}

.send-button:hover:not(:disabled) {
  background: var(--cm-accent-dark);
}

.send-button:disabled {
  color: #56645b;
  cursor: not-allowed;
  background: #e7ebe7;
  border-color: #dce2dc;
}

.send-spinner {
  border-color: #fff #ffffff80 #ffffff80;
}

.selected-attachments {
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.selected-attachments li {
  color: #354a3b;
  background: var(--cm-accent-soft);
  border: 1px solid #d4e1d7;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 7px 6px 10px;
  font-size: .77rem;
  display: flex;
}

.attachment-name {
  overflow-wrap: anywhere;
  min-width: 0;
  display: grid;
}

.attachment-name small {
  color: var(--cm-muted);
  font-size: .68rem;
}

.remove-attachment {
  min-width: 34px;
  min-height: 34px;
  font-size: 1.2rem;
}

.attachment-disclaimer {
  text-align: center;
  margin: 9px 4px 0;
}

.demo-retry-hint {
  color: var(--cm-muted);
  text-align: center;
  margin: 4px 4px 0;
  font-size: .68rem;
}

.send-feedback {
  color: var(--cm-accent-dark);
  margin: 0 0 8px 4px;
  font-size: .82rem;
}

.send-error, .content-error {
  color: #76221e;
  background: #fff3f1;
  border: 1px solid #e6c4c0;
  border-radius: 9px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 9px;
  padding: 10px 13px;
  font-size: .83rem;
  line-height: 1.45;
  display: flex;
}

.text-action {
  min-height: 40px;
  color: var(--cm-accent-dark);
  cursor: pointer;
  font: inherit;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 6px 8px;
  font-weight: 700;
  text-decoration: underline;
}

.text-action:disabled {
  color: #69776e;
  cursor: not-allowed;
}

.file-error {
  color: var(--cm-danger);
  margin: 5px 4px;
  font-size: .8rem;
}

.chat-loading, .chat-load-error {
  color: var(--cm-muted);
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 30px;
  display: flex;
}

.chat-load-error h1 {
  color: var(--cm-ink);
  margin: 0;
  font-size: 1.5rem;
}

.chat-load-error p {
  max-width: 460px;
  line-height: 1.6;
}

.content-view {
  width: min(100%, 1060px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px) clamp(18px, 5vw, 60px);
}

.content-heading {
  justify-items: start;
  gap: 12px;
  margin-bottom: 30px;
  display: grid;
}

.content-heading h1 {
  color: var(--cm-ink);
  letter-spacing: -.035em;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.content-heading p {
  max-width: 680px;
  color: var(--cm-muted);
  margin: 0;
  line-height: 1.6;
}

.content-status, .content-empty {
  color: var(--cm-muted);
  padding: 20px 0;
  line-height: 1.55;
}

.demo-table-wrap {
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 12px;
  width: 100%;
  overflow-x: auto;
}

.demo-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

.demo-table caption {
  color: var(--cm-muted);
  text-align: left;
  padding: 14px 16px;
  font-size: .82rem;
}

.demo-table th, .demo-table td {
  border-top: 1px solid #e4eae5;
  padding: 14px 16px;
  font-size: .88rem;
  line-height: 1.45;
}

.demo-table thead th {
  color: #43534a;
  letter-spacing: .035em;
  background: #f3f6f3;
  font-size: .76rem;
}

.demo-table tbody th {
  color: var(--cm-ink);
  font-weight: 700;
}

.status-pill {
  color: #28523c;
  white-space: nowrap;
  background: #e8f1eb;
  border: 1px solid #d0e0d4;
  border-radius: 999px;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  font-size: .73rem;
  font-weight: 700;
  display: inline-flex;
}

.status-warning {
  color: #69440c;
  background: #f8f0df;
  border-color: #ead9b2;
}

.document-filter-label {
  margin: 0 0 7px;
  display: block;
}

.document-filter {
  max-width: 480px;
  margin-bottom: 20px;
}

.demo-record-list, .client-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.demo-record-list li, .client-list li {
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 11px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  display: flex;
}

.record-icon {
  width: 38px;
  height: 38px;
  color: var(--cm-accent-dark);
  background: var(--cm-accent-soft);
  border-radius: 9px;
  flex: 0 0 38px;
  place-items: center;
  display: grid;
}

.demo-record-list li > div {
  flex: 1;
  min-width: 0;
}

.demo-record-list strong {
  overflow-wrap: anywhere;
  font-size: .9rem;
}

.demo-record-list p, .client-info p {
  color: var(--cm-muted);
  margin: 5px 0 0;
  font-size: .81rem;
  line-height: 1.45;
}

.demo-record-list time {
  color: var(--cm-muted);
  flex: none;
  font-size: .78rem;
}

.client-info {
  flex: 1;
  min-width: 0;
}

.client-info h2 {
  margin: 0;
  font-size: .98rem;
}

.client-info h2 span {
  color: var(--cm-muted);
  font-size: .78rem;
  font-weight: 500;
}

.settings-panel {
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 12px;
  gap: 10px;
  max-width: 700px;
  padding: 20px;
  display: grid;
}

.settings-panel h2 {
  margin: 0;
  font-size: 1.02rem;
}

.settings-panel p {
  color: var(--cm-muted);
  margin: 0;
  line-height: 1.6;
}

.settings-panel .quiet-action {
  width: fit-content;
  margin-top: 8px;
}

.primary-action, .quiet-action {
  color: #fff;
  background: var(--cm-accent);
  border: 1px solid var(--cm-accent);
  cursor: pointer;
  min-height: 46px;
  font: inherit;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.primary-action:hover {
  color: #fff;
  background: var(--cm-accent-dark);
}

.quiet-action {
  color: var(--cm-accent-dark);
  background: #fff;
  border-color: #cbd8cf;
}

.quiet-action:hover {
  background: var(--cm-accent-soft);
}

@media (max-width: 900px) {
  .consultant-shell {
    grid-template-columns: 226px minmax(0, 1fr);
  }

  .consultant-sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }

  .top-demo-badge {
    font-size: .7rem;
  }

  .suggestions {
    gap: 7px;
  }

  .suggestion-chip {
    font-size: .81rem;
  }
}

@media (max-width: 680px) {
  .consultant-shell {
    flex-direction: column;
    min-height: 100svh;
    display: flex;
  }

  .consultant-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--cm-line);
    gap: 13px;
    width: 100%;
    height: auto;
    padding: 13px 16px 10px;
    position: relative;
    overflow: visible;
  }

  .consultant-sidebar-top {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0;
    display: flex;
  }

  .consultant-brand {
    gap: 8px;
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .consultant-sidebar-top .demo-badge {
    padding: 5px 8px;
    font-size: .7rem;
  }

  .consultant-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .consultant-nav-link {
    text-align: center;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    padding: 6px 4px;
    font-size: .7rem;
    line-height: 1.25;
  }

  .nav-icon {
    flex-basis: auto;
    font-size: .95rem;
  }

  .consultant-history {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    min-height: 0;
    padding-top: 9px;
    display: grid;
  }

  .history-title-row {
    grid-column: 1 / -1;
    min-height: 34px;
  }

  .history-search-label {
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .history-search {
    grid-column: 1;
    min-height: 42px;
  }

  .new-chat-button {
    white-space: nowrap;
    grid-column: 2;
    min-height: 42px;
    padding: 7px 9px;
  }

  .history-list {
    grid-column: 1 / -1;
    gap: 5px;
    max-height: 72px;
    display: flex;
    overflow-x: auto;
  }

  .history-item {
    flex: 0 0 min(72vw, 260px);
    min-height: 43px;
  }

  .history-note, .history-empty {
    padding: 4px 0;
  }

  .consultant-profile {
    padding-top: 8px;
    display: flex;
  }

  .consultant-main, .chat-workspace {
    flex: 1 0 auto;
    min-height: 0;
  }

  .chat-topbar {
    padding: 14px 16px;
  }

  .chat-topbar .eyebrow {
    font-size: .65rem;
  }

  .chat-topbar h1 {
    max-width: 45vw;
    font-size: .91rem;
  }

  .top-demo-badge {
    white-space: nowrap;
    padding: 5px 8px;
  }

  .chat-thread {
    min-height: 280px;
    padding: 25px 17px 12px;
  }

  .welcome-state {
    justify-content: flex-start;
    min-height: 310px;
    padding: 20px 0;
  }

  .welcome-symbol {
    margin-bottom: 21px;
  }

  .welcome-state h2 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .welcome-state > p {
    font-size: .94rem;
  }

  .suggestions {
    width: 100%;
    margin-top: 20px;
    display: grid;
  }

  .suggestion-chip {
    width: 100%;
  }

  .message-list {
    gap: 21px;
    margin: 0;
    padding-top: 7px;
  }

  .user-message .message-body {
    max-width: 92%;
  }

  .composer-area {
    padding: 7px 12px calc(11px + env(safe-area-inset-bottom));
    position: sticky;
  }

  .composer {
    border-radius: 13px;
    padding: 9px 9px 8px 12px;
  }

  .composer textarea {
    min-height: 52px;
    font-size: .93rem;
  }

  .composer-controls {
    gap: 7px;
  }

  .composer-left-controls {
    gap: 2px;
  }

  .composer-hint {
    display: none;
  }

  .attach-button {
    min-width: 44px;
    padding: 0 8px;
  }

  .send-button {
    min-width: 76px;
    padding: 7px 10px;
  }

  .attachment-disclaimer {
    padding: 0 8px;
    font-size: .68rem;
  }

  .content-view {
    padding: 29px 18px;
  }

  .content-heading {
    margin-bottom: 22px;
  }

  .demo-table {
    min-width: 600px;
  }

  .demo-record-list li, .client-list li {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 13px;
  }

  .demo-record-list time {
    margin-left: 50px;
  }

  .client-list .status-pill {
    margin-left: 54px;
  }
}

@media (max-width: 390px) {
  .consultant-sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .consultant-sidebar-top .demo-badge {
    font-size: .65rem;
  }

  .consultant-brand {
    font-size: 1rem;
  }

  .history-title-row h2 {
    font-size: .69rem;
  }

  .new-chat-button {
    font-size: .76rem;
  }

  .chat-topbar {
    gap: 8px;
  }

  .top-demo-badge {
    font-size: .65rem;
  }

  .user-message .message-body {
    max-width: 96%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 560px) {
  .hero, .card {
    padding: 26px;
  }

  .page-heading, .document {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-banner-toggle {
    justify-content: space-between;
  }

  .preference-row {
    align-items: flex-start;
  }

  .site-footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-content {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/