@font-face {
  font-family: Outfit;
  src: url(/assets/outfit-400.woff2);
}
@font-face {
  font-family: Outfit;
  src: url(/assets/outfit-600.woff2);
  font-weight: 600;
}
@font-face {
  font-family: Instrument;
  src: url(/assets/instrument-serif-400.woff2);
}
@font-face {
  font-family: DM;
  src: url(/assets/dm-mono-400.woff2);
}
:root {
  --ink: #1e1325;
  --plum: #7626ae;
  --lav: #c4a5f5;
  --line: #e6dccb;
  --muted: #706479;
  --paper: #fffdf9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px Outfit,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 15px;
}
button:hover {
  border-color: #b585d6;
}
button:disabled {
  opacity: 0.6;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 11px;
  min-width: 0;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9633dd;
  outline-offset: 2px;
}
.intro,
.tools,
.dialog-head,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.intro {
  margin: 40px 0 25px;
}
.eyebrow {
  color: #705585;
}
.intro h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    clamp(48px, 6vw, 75px)/1 Instrument,
    Georgia,
    serif;
  letter-spacing: -0.035em;
}
h2 {
  font:
    34px/1.15 Instrument,
    Georgia,
    serif;
}
.primary {
  color: white;
  background: var(--plum);
  border-color: var(--plum);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.stat {
  padding: 24px;
  min-width: 0;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat:first-child {
  background: #e9dcfa;
}
.stat strong {
  display: block;
  font:
    clamp(27px, 3.2vw, 49px)/1.15 Instrument,
    Georgia,
    serif;
  overflow-wrap: anywhere;
  margin: 10px 0 6px;
}
.sub {
  font-size: 13px;
  color: var(--muted);
}
.tools {
  margin: 32px 0 16px;
}
.filters,
.search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding-left: 10px;
}
.search span {
  font: 24px Georgia;
}
.search input {
  border: 0;
  width: 165px;
}
.tablebox,
.lane {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: #f0edf3;
  text-transform: uppercase;
  color: var(--muted);
}
th,
td {
  padding: 13px 17px;
}
td {
  border-top: 1px solid var(--line);
}
.accountbtn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 3px 0;
  font-weight: 600;
}
.accountbtn:hover {
  text-decoration: underline;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 37px;
  height: 37px;
  flex: none;
  background: #eaddf8;
  color: #513168;
  font: 13px DM;
}
.tone1 {
  background: #e0eae5;
  color: #36594b;
}
.tone2 {
  background: #f3e5d5;
  color: #755837;
}
.tone3 {
  background: #dfe5f2;
  color: #425575;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eeeaf2;
  font-size: 13px;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}
.stage1 {
  background: #ebe1fa;
  color: #653f96;
}
.stage2 {
  background: #faead4;
  color: #80581e;
}
.stage3 {
  background: #dfefe5;
  color: #356748;
}
.empty {
  padding: 25px;
  color: var(--muted);
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lane {
  background: #f1eef4;
  padding: 12px;
}
.lane h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.card {
  width: 100%;
  display: grid;
  text-align: left;
  gap: 9px;
  padding: 15px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.card:last-child {
  margin-bottom: 0;
}
main {
  padding-bottom: 50px;
}
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 2rem);
  width: 520px;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #24113270;
}
.dialog-head {
  margin-bottom: 24px;
}
.dialog-head h2 {
  overflow-wrap: anywhere;
}
.dialog-head button {
  font-size: 22px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
.wide {
  grid-column: 1/-1;
}
fieldset {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
legend {
  font-weight: 600;
}
fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 10px 4px 0;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
footer {
  justify-content: flex-end;
  margin-top: 20px;
}
.error {
  background: #fbe3e4;
  color: #832334;
  padding: 12px;
  border-radius: 6px;
  margin: 12px 0;
}
.advance {
  margin: 10px 0 0;
}
.retry {
  margin-left: 12px;
}
.workflow-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.workflow-card .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.workflow-card label {
  margin: 0;
  align-items: stretch;
}
.workflow-card .badge,
.workflow-card button {
  justify-self: start;
}
.workflow-card [readonly] {
  background: var(--paper);
}
.workflow-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.question {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.question button {
  grid-column: 1/-1;
}
.question:only-child [data-action="remove-question"] {
  display: none;
}
.collection {
  margin: 16px 0 24px;
}
.collection h3 {
  margin-bottom: 8px;
}
.collection table {
  width: 100%;
}
[hidden] {
  display: none !important;
}
body { font-size:14px; }
h1,h2,h3 { font-family:Outfit,Arial,sans-serif;font-weight:600; }
h1 { font-size:clamp(32px,3vw,43px);line-height:1.1;letter-spacing:-.045em;margin:5px 0 0; }
h2 {font-size:21px;letter-spacing:-.035em;}
h3 {font-size:16px;}
.eyebrow,th,.mono,.counter,.sidefoot {font:10px DM,monospace;letter-spacing:.075em;}
.eyebrow {color:var(--muted);}
#sidebar {position:fixed;inset:0 auto 0 0;width:218px;z-index:12;background:#261238;color:#f4ebfa;display:flex;flex-direction:column;overflow-y:auto;}
.brand {display:flex;align-items:center;justify-content:space-between;height:76px;flex:none;padding:0 24px;border-bottom:1px solid #ffffff22;}
#navigation {padding:18px 13px;flex:1;}
#navigation section {margin:0 0 24px;}
#navigation h2 {font:10px DM,monospace;color:#baa6c9;letter-spacing:.12em;text-transform:uppercase;margin:0 12px 8px;}
#navigation button {width:100%;display:flex;align-items:center;gap:12px;border:0;text-align:left;background:transparent;color:#e5d6ef;padding:10px 12px;font-size:14px;}
#navigation button:hover {background:#39204b;}
#navigation button[aria-current=page] {background:#503063;color:white;box-shadow:inset 3px 0 #c4a5f5;}
svg {width:17px;height:17px;flex:none;}
.sidefoot {padding:20px;border-top:1px solid #ffffff22;color:#d0badd;}
.sidefoot i,.legend i,.signal {display:inline-block;width:8px;height:8px;border-radius:50%;background:#c4a5f5;}
.shell {margin-left:218px;}
.crumb {height:56px;display:flex;align-items:center;gap:13px;padding:0 clamp(20px,3vw,50px);border-bottom:1px solid var(--line);background:white;color:var(--muted);font-size:13px;}
.crumb b {color:var(--ink);}
time {margin-left:auto;font:11px DM,monospace;color:var(--muted);}
main {max-width:1620px;margin:auto;padding:0 clamp(20px,3vw,50px) 44px;}
.intro {margin:26px 0 20px;}
.primary {font-weight:600;background:#9633dd;border-color:#9633dd;}
.primary:hover {background:#662496;}
.stats {gap:12px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-template-columns:none;border:0;background:transparent;overflow:visible;}
.stat,.stat:first-child,.stat + .stat,.panel,.accounts {border:1px solid var(--line);border-radius:12px;background:white;}
.stat {position:relative;padding:19px 15px 16px;}
.stat:first-child {background:#2e0f55;color:white;border-color:#2e0f55;}
.stat:first-child .eyebrow,.stat:first-child .sub {color:#dac9eb;}
.kpi-icon {position:absolute;right:14px;top:13px;color:#8433b9;}
.stat:first-child .kpi-icon {color:#d3a9f1;}
.stat .eyebrow {padding-right:20px;}
.stat strong {font:600 clamp(23px,2.1vw,34px)/1.12 Outfit,sans-serif;letter-spacing:-.045em;margin:16px 0 4px;}
.insights {display:grid;grid-template-columns:1.15fr 1fr;gap:14px;margin-top:16px;}
.panel {padding:16px 18px;}
.panelhead,.legend button,.actionrow {display:flex;align-items:center;justify-content:space-between;}
.panelhead button {padding:4px 7px;color:var(--plum);font-size:12px;}
.counter {padding:4px 8px;background:#f4edf8;border-radius:8px;}
.stack {display:flex;gap:3px;height:24px;margin:24px 0 14px;background:#f5f0f7;border-radius:5px;overflow:hidden;}
.c0,.legend .c0 {background:#ddc9eb;}.c1,.legend .c1 {background:#b68dd0;}.c2,.legend .c2 {background:#965bbb;}.c3,.legend .c3 {background:#673881;}
.legend {display:grid;grid-template-columns:1fr 1fr;column-gap:22px;}
.legend button {gap:8px;padding:7px 0;border:0;background:none;font-size:13px;}
.legend b {margin-left:auto;}
.actionrow {width:100%;text-align:left;border:0;border-radius:0;border-top:1px solid var(--line);padding:7px 0;gap:9px;}
.panelhead + .actionrow {margin-top:9px;}
.actionrow span {flex:1;}
.actionrow small {display:block;color:var(--muted);}
.actionrow em {font:18px Arial;color:var(--muted);}
.signal {background:#ae8abc;}.priority0 {background:#bf7352;}.priority1 {background:#bb9851;}
.accounts {margin-top:16px;overflow:hidden;}
.tools {padding:14px 17px;margin:0;}
.tablebox {border:0;border-radius:0;}
th,.op-view.op-view th {background:#f6f1e9;}
td,th {padding:9px 16px;}
tbody tr:hover {background:#faf6fb;}
.avatar {width:32px;height:32px;border-radius:7px;background:#eee2f5;color:#693c88;}
.badge {font-size:12px;}
.stage0 {background:#f0edf2;color:#594e60;}
.stage1 {background:#efe2f8;color:#713a93;}
.board,.collection {margin:0;padding:12px;}
.lane {background:#f8f4fa;}
.collection h3 {padding-left:4px;}
#fields {padding:18px 0;min-height:250px;}
dialog {width:640px;padding:22px;background:white;}
dialog::backdrop {background:#21122f85;}
.dialog-head {margin:0 0 16px;}
.dialog-head h2 {font-size:28px;margin-top:4px;}
.grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.grid > label {align-items:stretch;}
#editor-tabs {display:flex;border-bottom:1px solid var(--line);gap:4px;overflow:auto;}
#editor-tabs button {border:0;background:none;border-radius:0;padding:10px;color:var(--muted);}
#editor-tabs button[aria-pressed=true] {box-shadow:inset 0 -2px var(--plum);color:var(--plum);font-weight:600;}
[data-panel]>.grid:last-child {margin-top:16px;}
footer {position:sticky;bottom:0;margin:0;background:white;border-top:1px solid var(--line);padding:14px 0;}
.op-editor label {display:grid;gap:5px;}
#menu,#dismiss,#scrim {display:none;}
@media(max-width:1100px) {
  #sidebar {width:184px;} .shell {margin-left:184px;}
  .stats {gap:8px;} .stat {padding:15px 12px;}.kpi-icon {right:9px;}
}
@media(max-width:820px) {
  #sidebar {visibility:hidden;transform:translateX(-100%);width:235px;}
  #sidebar.show {visibility:visible;transform:none;}
  #menu,#dismiss {display:block;padding:5px 9px;}
  #dismiss {background:transparent;border:0;color:white;font-size:23px;}
  #scrim {display:block;position:fixed;inset:0;background:#23162d80;z-index:11;border:0;border-radius:0;}
  .shell {margin:0;}
  .board {grid-template-columns:1fr 1fr;}
}
@media(max-width:600px) {
  main {padding:0 13px 30px;}.crumb {height:46px;padding:0 13px;gap:8px;}.crumb time {font-size:9px;}
  .intro {margin:18px 0 14px;}
  .stats {grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));}
  .stat strong {margin:11px 0 3px;font-size:24px;}
  .stat .sub {font-size:12px;}
  .insights {grid-template-columns:1fr;gap:9px;margin-top:10px;}
  .panel {padding:13px 14px;}
  .stack {margin:13px 0 6px;height:16px;}
  .tools {align-items:stretch;flex-direction:column;gap:9px;padding:12px;}
  .filters > * {min-width:0;}.search {flex:1;}.search input {width:100%;}
  .contactcol,.paycol {display:none;} td,th {padding:8px;}.avatar {display:none;}
  .board {grid-template-columns:1fr;}
  dialog {padding:16px;}.grid {gap:9px;}#editor-tabs {gap:0;}#editor-tabs button {flex:1;padding:9px 3px;font-size:13px;}
}

:root {
  color-scheme:dark;
  --ink:#eeeef6; --muted:#a9afc1; --line:#303240; --paper:#151820;
  --plum:#c7afff; --surface:#13151d; --accent:#dcc5ff;
}
body {
  background: radial-gradient(ellipse at 96% 12%,#141229,transparent 38%),
    linear-gradient(155deg,transparent 40%,#0e111a 49%,transparent 58%),#06070b;
  background-attachment:fixed; min-height:100vh; isolation:isolate;
}
body::before,body::after {content:"";position:fixed;pointer-events:none;z-index:-1;}
body::before {
  inset:0;
  background-image:radial-gradient(1px 1px at 17px 37px,#c8bed75e,transparent),
    radial-gradient(1px 1px at 104px 68px,#aca4d646,transparent);
  background-size:157px 127px,239px 193px;
}
body::after {
  width:clamp(260px,25vw,480px);aspect-ratio:1;top:0;right:0;transform:translate(40%,-46%);border-radius:50%;
  background:linear-gradient(110deg,#151322ad,transparent 64%),
    repeating-linear-gradient(154deg,#8270c026 0 5px,transparent 7px 15px),
    radial-gradient(circle at 34% 30%,#8b79c6,#4e4380 55%,#211f3e 83%);
  box-shadow:0 0 65px #513d9b20;
}
#sidebar {
  inset:10px auto 10px 10px;width:196px;border:1px solid #ffffff0e;border-radius:18px;
  color:var(--ink);background:radial-gradient(ellipse at 95% 9%,#40354966,transparent 18%),linear-gradient(163deg,#18191f,#1a212c 69%,#141519);
  box-shadow:0 10px 38px #0006;
}
.brand {height:54px;padding:0 16px;border:0;}
.brand img {width:125px;}
.page-search {margin:0 10px 9px;display:flex;align-items:center;gap:5px;padding:6px 8px;background:#101219;border:1px solid var(--line);border-radius:10px;color:var(--muted);}
.page-search input {width:100%;padding:0;border:0;background:transparent;font-size:13px;}
kbd {white-space:nowrap;font:10px DM,monospace;}
#sidebar #add {margin:0 8px 8px;text-align:left;padding:8px 12px;}
.primary {color:#211c2b;background:#e8e3f3;border-color:#f6efff;}
.primary:hover {background:#cbb6f3;}
#navigation {padding:6px 7px;}
#navigation section {margin-bottom:18px;}
#navigation h2 {font:12px Outfit,sans-serif;letter-spacing:0;text-transform:none;color:var(--muted);margin:6px 9px;}
#navigation button {font-size:14px;padding:9px 10px;gap:9px;color:#dce0ec;border-radius:9px;}
#navigation button:hover,#quick-nav button:hover {background:#ffffff13;}
#navigation button[aria-current=page] {background:linear-gradient(100deg,#35343e,#39323d);box-shadow:inset 0 0 0 1px #ffffff23;}
.sidefoot {font-size:12px;color:var(--muted);padding:16px;}
.sidefoot i {background:#89c1a8;width:6px;height:6px;}
.shell {margin-left:216px;padding:10px 16px 0 4px;}
.crumb {height:36px;padding:3px 9px;border:1px solid #ffffff22;border-radius:99px;background:#b5b1ce16;backdrop-filter:blur(9px);}
#quick-nav {display:flex;align-items:center;gap:3px;}
#quick-nav button {display:flex;align-items:center;gap:6px;padding:4px 10px;border:0;border-radius:99px;background:transparent;font-size:12px;color:#dce0ec;}
#quick-nav svg {width:17px;height:17px;padding:2px;background:#ffffff17;border-radius:50%;}
#quick-nav button[aria-current=page] {background:#ffffff20;color:white;}
#quick-nav button[aria-current=page] svg {background:#ede7fb;color:#292634;}
main {max-width:none;padding:0 8px 36px;}
.intro {margin:24px 0 16px;}
h1 {font:600 23px/1.15 Outfit,sans-serif;letter-spacing:-.035em;}
.overview-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.stat,.stat + .stat,.stat:first-child,.panel,.accounts,.op-view .op-scroll,.op-view .op-empty,
dialog,.li-inbox.li-inbox aside,.li-inbox.li-inbox article,.workflow-card {
  color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:inset 0 1px 0 #ffffff07,0 3px 8px #0002;
}
.stat,.panel {padding:13px;text-align:left;min-width:0;}
.stat {display:block;align-content:start;}
.stat .eyebrow,.panel .eyebrow {display:flex;align-items:center;min-height:18px;gap:7px;font:11px Outfit,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#b6bdd0;}
.stat:first-child .eyebrow,.stat:first-child .sub {color:var(--muted);}
.stat .eyebrow {padding:0 0 0 25px;}
.kpi-icon,.stat:first-child .kpi-icon {top:13px;left:13px;right:auto;color:var(--muted);}
.stat strong {color:var(--accent);font-size:22px;margin:9px 0 5px;overflow-wrap:anywhere;}
.stat .sub,.actionrow small {font-size:12px;color:var(--muted);}
.overview-grid .stat {min-height:88px;}
.stage-list {margin-top:6px;}
.stage-list button,.actionrow {width:100%;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;color:var(--ink);padding:3px 1px;text-align:left;font-size:13px;}
.stage-list b,.counter {color:var(--accent);}
.counter {background:#26232e;}
.actionrow {padding:5px 0;}
.actionrow b {font-weight:400;}
.stat:hover,.actionrow:hover,.stage-list button:hover {background:#1d202c;}
button,input,select,textarea,.search,.lane,.card,footer,.op-tools input,.op-tools select,.op-view .op-stage-event,.op-editor .op-stage-event {background:#1c202b;color:var(--ink);}
.tablebox,table {background:var(--surface);}
th,.op-view.op-view th {background:#1e212c;}
tbody tr:hover {background:#232531;}
.avatar,.op-view .op-pill {background:#302838;color:#e1c2f1;}
.li-inbox.li-inbox input,.li-inbox.li-inbox textarea,.li-inbox.li-inbox button {background:#1b1f2a;border-color:var(--line);}
.li-inbox.li-inbox button[aria-pressed=true],.li-inbox.li-inbox .li-send {background:#403451;color:white;}
.li-inbox.li-inbox header p,.li-inbox.li-inbox dt,.li-inbox.li-inbox aside span {color:var(--muted);}
dialog::backdrop {background:#040509bd;backdrop-filter:blur(3px);}
body:has(dialog[open]) {overflow:hidden;}
@media(max-width:820px) {
  #sidebar {width:225px;transform:translateX(calc(-100% - 12px));}
  #sidebar.show {transform:none;}
  .shell {margin:0;padding:8px;}
  #menu {padding:2px 7px;border:0;background:transparent;}
  .crumb {gap:2px;}
  .overview-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px) {
  main {padding:0 3px 24px;}
  .intro {margin:19px 0 12px;}
  .crumb time {display:none;}
  #quick-nav button {gap:3px;padding:4px 6px;font-size:11px;}
  .overview-grid {gap:8px;}
  .overview-grid .panel {grid-column:1/-1;}
  .stat,.panel {padding:12px;}
  body::after {width:200px;}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
button.stat {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;}
.op-view .op-tools input,.op-view .op-tools select,.op-editor.op-editor button {background:#1c202b;color:var(--ink);}
