@font-face { font-family: "Manrope"; src: url("../brand/fonts/man400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../brand/fonts/man700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../brand/fonts/unb500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../brand/fonts/jbm500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --primary: #FF714B;
  --secondary: #4D2D8C;
  --page: #F2F2F2;
  --text: #211832;
  --muted: #746A84;
  --line: #DED8E8;
  --panel: #FFFFFF;
  --secondary-50: #F0EAFB;
  --primary-50: #FFF0EB;
  --dark-panel: #2A203E;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  background: var(--text);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: Unbounded, sans-serif; font-weight: 600; }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transform: rotate(0deg); }
.brand-mark span { border-radius: 8px; background: var(--secondary); }
.brand-mark span:nth-child(2) { background: var(--primary); transform: rotate(45deg) scale(.78); }
.nav-menu { display: grid; gap: 8px; }
.nav-menu a {
  color: #D8D0E8;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--dark-panel); color: #fff; }
.content { padding: 26px; overflow: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
h1, h2, h3 { font-family: Unbounded, sans-serif; letter-spacing: 0; line-height: 1.2; }
h1 { margin: 0; font-size: 28px; }
h2 { margin: 0 0 14px; font-size: 20px; }
.muted { color: var(--muted); }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(255, 113, 75, .25); }
.btn-ghost { background: #fff; color: var(--secondary); border: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.stat .label { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat .value { font-family: "JetBrains Mono", monospace; color: var(--secondary); font-size: 28px; margin-top: 8px; }
.dashboard-grid { grid-template-columns: 1.3fr .7fr; margin-top: 16px; }
.inbox-layout { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 52px); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.conversation-list { border-right: 1px solid var(--line); overflow: auto; background: #FAFAFA; }
.conversation-item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.conversation-item.active { background: var(--secondary-50); border-left: 4px solid var(--secondary); }
.conversation-item b { display: block; }
.conversation-item span { color: var(--muted); font-size: 13px; }
.thread { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.thread-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.messages { padding: 22px; overflow: auto; display: flex; flex-direction: column; gap: 12px; background: #F8F7FA; }
.bubble { max-width: 70%; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.bubble.outbound, .bubble.ai { align-self: flex-end; background: var(--secondary); color: #fff; border-color: var(--secondary); }
.bubble.ai { background: var(--primary); border-color: var(--primary); }
.composer { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 52px; }
.searchbar { display: flex; gap: 10px; margin-bottom: 14px; }
.searchbar input, .auth-card input { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; background: #fff; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--secondary); background: var(--secondary-50); font-weight: 800; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--page); }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.auth-card label { display: block; font-weight: 800; margin: 14px 0 6px; }
.auth-card .btn { width: 100%; margin-top: 16px; }
.home-frame iframe { width: 100%; min-height: 100vh; border: 0; display: block; }
.report-band { background: var(--text); color: #fff; border-radius: 8px; padding: 22px; }

/* Application extensions for the sales workspace UI kit. */
.metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--plum); color: #fff; }
.metric-strip > div { padding: 17px 20px; border-right: 1px solid rgba(255,255,255,.14); display: grid; gap: 5px; }
.metric-strip > div:last-child { border-right: 0; }
.metric-strip span { color: #c9c0dd; font-size: 9.5px; }
.metric-strip strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.metric-strip small { color: #c9c0dd; font-size: 11px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr); gap: 14px; margin-top: 14px; }
.dash-grid.lower { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr); }
.bar-chart { height: 205px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; padding: 16px 4px 0; border-bottom: 1px solid var(--hairline); }
.bar-col { height: 100%; flex: 1; min-width: 52px; display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: 5px; text-align: center; }
.bar-col .bar { width: min(34px, 62%); min-height: 4px; margin: 0 auto; background: var(--violet); border-radius: 5px 5px 0 0; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.bar-col b { color: var(--plum); font-family: var(--font-mono); font-size: 9px; font-weight: 500; white-space: nowrap; }
.bar-col span { color: var(--grey); font-family: var(--font-mono); font-size: 10px; }
.pipeline { display: grid; gap: 14px; }
.pipeline > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; }
.pipeline span { font-weight: 700; font-size: 12.5px; text-transform: capitalize; }
.pipeline b { font-family: var(--font-mono); color: var(--plum); font-size: 12px; }
.pipeline i { grid-column: 1 / -1; height: 7px; border-radius: 9px; background: var(--plum-tint); overflow: hidden; }
.pipeline i::before { content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--violet); }
.focus-list { display: grid; gap: 0; }
.focus-list p { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 3px; }
.focus-list p:first-child { padding-top: 0; }
.focus-list p:last-child { padding-bottom: 0; border-bottom: 0; }
.focus-list b { font-size: 13px; color: var(--plum); }
.focus-list span { font-size: 11.5px; color: var(--grey); }
.record-form { max-width: 860px; }
.record-form .cb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; padding: 22px; }
.form-field { min-width: 0; display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--plum); font-size: 11px; font-weight: 800; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid rgba(107,31,179,.14); border-color: var(--violet); }
.form-actions { padding: 15px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--hairline); background: var(--paper); }
.error { color: var(--stop); font-weight: 700; font-size: 11px; }
.cx-user-menu { position: relative; }
.cx-user-menu summary { list-style: none; cursor: pointer; }
.cx-user-menu summary::-webkit-details-marker { display: none; }
.cx-user-menu[open] summary .av { outline: 3px solid var(--plum-tint2); }
.cx-user-menu form { position: absolute; z-index: 10; right: 0; top: calc(100% + 10px); min-width: 150px; padding: 6px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.cx-user-menu button { width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--stop); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; text-align: left; }
.cx-user-menu button:hover { background: var(--stop-bg); }
.cx-home { min-height: 100vh; color: var(--ink); background: var(--paper); }
.home-nav, .home-hero, .home-points { width: min(1120px, calc(100% - 48px)); margin: auto; }
.home-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.home-nav img { display: block; width: 166px; max-height: 38px; }
.home-hero { min-height: 540px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .72fr); align-items: center; gap: 70px; padding: 66px 0 82px; }
.home-kicker { margin: 0 0 16px; color: var(--ember-label); font-size: 10px; }
.home-hero h1 { max-width: 700px; font-size: 38px; line-height: 1.3; }
.home-hero > div > p:not(.home-kicker) { max-width: 620px; margin: 20px 0 26px; color: var(--grey); font-size: 17px; line-height: 1.7; }
.home-preview { background: var(--plum); color: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 22px 45px rgba(39,26,68,.18); }
.preview-top { display: flex; align-items: center; gap: 8px; color: #d7d0e6; font-size: 12px; }
.preview-top small { margin-left: auto; font-family: var(--font-mono); font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.home-preview > strong { display: block; margin: 35px 0 3px; font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.home-preview > span { color: #c9c0dd; font-size: 12px; }
.preview-bars { height: 130px; display: flex; align-items: end; gap: 11px; margin: 25px 0; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.17); }
.preview-bars i { flex: 1; display: block; border-radius: 4px 4px 0 0; background: #6b1fb3; }
.preview-bars i:nth-child(1) { height: 32%; }.preview-bars i:nth-child(2) { height: 54%; }.preview-bars i:nth-child(3) { height: 42%; }.preview-bars i:nth-child(4) { height: 78%; }.preview-bars i:nth-child(5) { height: 61%; }.preview-bars i:nth-child(6) { height: 92%; background: var(--ember); }
.preview-line { display: flex; gap: 9px; align-items: center; color: #c9c0dd; font-size: 12px; }.preview-line b { color: #fff; font-family: var(--font-mono); }
.home-points { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }.home-points > div { padding: 24px 26px 30px 0; display: grid; gap: 6px; }.home-points b { color: var(--plum); font-size: 14px; }.home-points span { color: var(--grey); font-size: 12.5px; line-height: 1.6; }

.table-scroll { overflow-x: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.source-chart { display: grid; gap: 15px; }
.source-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: end; }
.source-row b { display: block; font-size: 13px; }
.source-row span { color: var(--grey); font-size: 11.5px; }
.source-row strong { font-family: var(--font-mono); color: var(--plum); font-size: 13px; }
.source-row i { grid-column: 1 / -1; height: 7px; display: block; background: var(--plum-tint); border-radius: 7px; overflow: hidden; }
.source-row em { display: block; height: 100%; background: var(--violet); border-radius: inherit; }
.conversion-rows { display: grid; gap: 0; }
.conversion-rows p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--hairline); color: var(--grey); font-size: 12.5px; }
.conversion-rows p:first-child { padding-top: 0; }
.conversion-rows p:last-child { border: 0; padding-bottom: 0; }
.conversion-rows b { color: var(--plum); font-family: var(--font-mono); }
.cx-queue .ch { padding: 15px 18px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; background: #fff; }
.cx-queue .ch h3 { font-family: var(--font-display); color: var(--plum); font-size: 13.5px; font-weight: 500; }
.cx-queue .cx-qrow { min-height: 66px; }
.cx-queue .cx-qrow .d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .cx-btn { margin-left: 7px; }
.report-summary .cx-tile .v { font-family: var(--font-mono); font-size: 23px; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
.report-summary .cx-tile .k { min-height: 16px; }
.report-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }.report-nav a { padding: 7px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: #fff; color: var(--violet); font-weight: 800; font-size: 11.5px; }.report-nav a:hover { border-color: var(--violet); }
.document-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.document-card { max-width: 860px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.document-card > header { padding: 27px 30px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; color: #fff; background: var(--plum); }
.document-card > header .mono { color: #ffb39c; font-size: 10px; }
.document-card h2 { margin: 8px 0 0; font-size: 23px; }
.document-status { padding-top: 3px; }
.document-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 26px 30px; border-bottom: 1px solid var(--hairline); }
.document-parties > div { display: grid; gap: 5px; }.document-parties .mono { color: var(--ember-label); font-size: 9.5px; }.document-parties b { color: var(--plum); font-size: 15px; }.document-parties p { margin: 0; color: var(--grey); font-size: 12.5px; line-height: 1.7; }
.document-lines { padding: 26px 30px 30px; }.document-line { display: grid; grid-template-columns: 1fr 100px 150px; gap: 14px; align-items: center; padding: 13px 12px; border-bottom: 1px solid var(--hairline); font-size: 13px; }.document-line.head { background: var(--paper); color: var(--grey); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }.document-line span:nth-child(2), .document-line b { text-align: right; }.document-line b { font-family: var(--font-mono); font-weight: 500; }
.document-total { display: flex; justify-content: flex-end; gap: 42px; padding: 16px 12px; color: #fff; background: var(--ember); font-weight: 800; }.document-total strong { min-width: 150px; text-align: right; font-family: var(--font-mono); font-weight: 500; }
.document-tax { display: flex; justify-content: flex-end; gap: 42px; padding: 12px; color: var(--grey); border-bottom: 1px solid var(--hairline); font-size: 12px; }.document-tax b { min-width: 150px; text-align: right; font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.document-card > footer { padding: 18px 30px; background: var(--paper); color: var(--grey); font-size: 12px; }
.document-logo { display: block; width: auto; height: 28px; max-width: 210px; object-fit: contain; object-position: left center; }
.inbox-search { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--hairline); background: #fff; }
.inbox-search input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); color: var(--ink); font: inherit; font-size: 12px; }
.inbox-search input:focus { outline: 2px solid rgba(107,31,179,.14); border-color: var(--violet); }
.inbox-search .cx-btn { padding: 9px 11px; font-size: 12px; }
.conversation-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conversation-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-name time, .message-meta time { color: var(--grey); font-family: var(--font-mono); font-size: 9.5px; white-space: nowrap; }
.message-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 4px; font-size: 10px; }
.bubble.outbound .message-meta time, .bubble.ai .message-meta time { color: rgba(255,255,255,.78); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats, .dashboard-grid, .inbox-layout { grid-template-columns: 1fr; }
  .inbox-layout { height: auto; }
  .bubble { max-width: 92%; }
  .metric-strip, .dash-grid, .dash-grid.lower, .home-hero { grid-template-columns: 1fr; }
  .metric-strip > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .metric-strip > div:last-child { border-bottom: 0; }
  .home-hero { gap: 36px; padding: 44px 0 55px; }.home-hero h1 { font-size: 29px; }.home-points { grid-template-columns: 1fr; }.home-points > div { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
  .document-parties { grid-template-columns: 1fr; gap: 20px; }.document-line { grid-template-columns: 1fr 70px 120px; }.document-total strong { min-width: 120px; }
}
@media (max-width: 600px) {
  .cx-wrap { padding: 20px 16px 44px; }.cx-top { padding: 0 16px; }.cx-top .cx-crumb, .cx-top .cx-refresh, .cx-top .cx-tenant { display: none; }.cx-top .right { margin-left: auto; }.cx-tiles, .cx-tiles.cols-3 { grid-template-columns: 1fr; }.record-form .cb { grid-template-columns: 1fr; padding: 18px; }.form-actions { padding: 14px 18px; }.home-nav, .home-hero, .home-points { width: min(calc(100% - 32px), 1120px); }.home-preview { padding: 18px; }
  .document-card > header, .document-parties, .document-lines { padding-left: 18px; padding-right: 18px; }.document-card > footer { padding: 16px 18px; }.document-line { grid-template-columns: 1fr 50px 90px; gap: 8px; font-size: 11.5px; }.document-total { gap: 12px; }.document-total strong { min-width: 90px; }.document-actions { width: 100%; }
  .inbox-search { padding: 10px; }.inbox-search .cx-btn { padding: 9px; }.conversation-name time { font-size: 9px; }
}
