:root {
  --ink: #111;
  --paper: #f2f1ed;
  --white: #fff;
  --line: #cccac3;
  --muted: #74736e;
  --acid: #c9ff38;
}

/* Protected lead capture */
.lead-capture .lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
}
.lead-capture .lead-consent input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
}
.lead-capture .lead-consent a { color: inherit; text-decoration: underline; }
.lead-capture .retention-note {
  display: block;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.lead-capture .lead-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.lead-capture .success small {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .12em;
  opacity: .65;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
.boot {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--paper);
  font-weight: 900;
  letter-spacing: -0.5px;
}
.boot span {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 8px monospace;
  letter-spacing: 1.5px;
}
.boot span::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  animation: bootPulse 0.9s ease-in-out infinite alternate;
}
@keyframes bootPulse {
  to {
    transform: scale(0.55);
    opacity: 0.35;
  }
}
.logo {
  font-size: 20px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -1px;
}
.eyebrow {
  font: 700 9px/1.3 monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.primary {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  font: 700 9px monospace;
  letter-spacing: 1px;
  cursor: pointer;
}
.primary b {
  color: var(--acid);
}
.auth-page {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
}
.auth-page > section {
  padding: 42px 5vw;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-page h1 {
  font-size: clamp(65px, 7.5vw, 118px);
  line-height: 0.86;
  letter-spacing: -7px;
  font-weight: 500;
  margin: 35px 0;
}
.auth-page section p:last-child {
  max-width: 520px;
  line-height: 1.6;
}
.auth-page > aside {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  padding: 38px;
  width: min(430px, 100%);
}
.mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: var(--ink);
  color: var(--acid);
  font-weight: 900;
  margin-bottom: 65px;
}
.auth-card h2 {
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -2.5px;
  margin: 20px 0;
}
.auth-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}
.auth-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 235px 1fr;
}
.nav {
  background: var(--ink);
  color: #fff;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.light {
  color: #fff;
}
.nav nav {
  margin-top: 80px;
  display: grid;
}
.nav nav button {
  border: 0;
  border-top: 1px solid #3b3b3b;
  background: none;
  color: #888;
  text-align: left;
  padding: 18px 0;
  font: 700 9px monospace;
  cursor: pointer;
}
.nav nav button:last-child {
  border-bottom: 1px solid #3b3b3b;
}
.nav nav button.active,
.nav nav button:hover {
  color: #fff;
}
.nav nav i {
  font-style: normal;
  color: #555;
  margin-right: 12px;
}
.nav nav em {
  font-style: normal;
  float: right;
  background: #333;
  color: #fff;
  padding: 3px 6px;
}
.nav nav button.active em {
  background: var(--acid);
  color: #111;
}
.account-mini {
  margin-top: auto;
  display: grid;
  grid-template-columns: 30px 1fr 20px;
  gap: 9px;
  align-items: center;
}
.account-mini > div {
  width: 30px;
  height: 30px;
  background: var(--acid);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.account-mini span {
  font-size: 10px;
  overflow: hidden;
}
.account-mini small {
  display: block;
  color: #777;
  margin-top: 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.account-mini button {
  border: 0;
  background: none;
  color: #777;
  cursor: pointer;
}
.main {
  min-width: 0;
}
.main > header {
  height: 145px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 32px 4vw;
}
.main > header h1 {
  font-size: 45px;
  font-weight: 500;
  letter-spacing: -2.5px;
  line-height: 1;
  margin: 12px 0 0;
}
.main > header .primary {
  margin-bottom: 3px;
}
#screen {
  padding: 32px 4vw;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  background: #fff;
}
.stats > div {
  padding: 26px;
  border-right: 1px solid var(--ink);
}
.stats > div:last-child {
  border-right: 0;
}
.stats small,
.stats b,
.stats span {
  display: block;
}
.stats small {
  font: 700 8px monospace;
  color: var(--muted);
}
.stats b {
  font-size: 55px;
  font-weight: 500;
  letter-spacing: -3px;
  margin: 30px 0 5px;
}
.stats b.small-stat {
  font: 700 13px monospace;
  letter-spacing: 0;
  margin: 48px 0 19px;
}
.stats span {
  font-size: 11px;
  color: var(--muted);
}
.start-panel {
  margin-top: 25px;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  padding: 40px;
}
.start-panel h2 {
  font-size: 48px;
  line-height: 0.94;
  letter-spacing: -3px;
  font-weight: 500;
  margin: 40px 0;
}
.start-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.start-panel li {
  display: grid;
  grid-template-columns: 45px 1fr;
  border-top: 1px solid #444;
  padding: 18px 0;
}
.start-panel li:last-child {
  border-bottom: 1px solid #444;
}
.start-panel li > b {
  font: 700 9px monospace;
  color: var(--acid);
}
.start-panel li span {
  font-size: 14px;
}
.start-panel li small {
  display: block;
  color: #888;
  margin-top: 5px;
}
.list-top {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  font: 700 9px monospace;
}
.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.inquiry-card {
  min-height: 260px;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: 0.15s;
}
.inquiry-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.inquiry-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 5px 8px;
  font: 700 8px monospace;
  text-transform: uppercase;
}
.status.live {
  background: var(--acid);
}
.inquiry-card small {
  font: 700 8px monospace;
  color: var(--muted);
}
.inquiry-card h2 {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 50px 0 8px;
}
.inquiry-card p {
  font-size: 12px;
  color: var(--muted);
}
.inquiry-card footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font: 700 8px monospace;
}
.zero {
  grid-column: 1/-1;
  text-align: center;
  padding: 13vh 20px;
}
.zero > span {
  display: grid;
  place-items: center;
  margin: auto;
  width: 55px;
  height: 55px;
  background: var(--acid);
  border: 1px solid var(--ink);
  font-size: 24px;
}
.zero h2 {
  font-size: 34px;
  letter-spacing: -1.5px;
  margin: 24px 0 8px;
}
.zero p {
  color: var(--muted);
}
.response-head,
.response-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 2fr 70px;
  gap: 15px;
  align-items: center;
}
.response-head {
  font: 700 8px monospace;
  color: var(--muted);
  padding: 18px 12px 10px;
}
.response-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 17px 12px;
  cursor: pointer;
}
.response-row:hover {
  background: var(--acid);
}
.response-row time,
.response-row em {
  font: 700 8px monospace;
}
.response-row b,
.response-row span,
.response-row p {
  font-size: 12px;
}
.response-row em {
  text-transform: uppercase;
  font-style: normal;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-back {
  border: 0;
  background: none;
  font: 700 9px monospace;
  cursor: pointer;
}
.editor-head > div {
  display: flex;
  gap: 9px;
}
.publish-toggle {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 7px 11px;
  font: 700 8px monospace;
  cursor: pointer;
}
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--ink);
  margin-top: 28px;
}
.editor-tabs button {
  border: 0;
  background: none;
  padding: 16px 20px;
  font: 700 9px monospace;
  color: var(--muted);
  cursor: pointer;
}
.editor-tabs button.active {
  background: var(--ink);
  color: #fff;
}
.editor-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.editor-form > section,
.account-form {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 30px;
}
.editor-form label,
.account-form label,
.lead-capture label {
  display: block;
  font: 700 8px monospace;
  letter-spacing: 1px;
  margin-top: 19px;
}
.editor-form input,
.editor-form textarea,
.editor-form select,
.account-form input,
.lead-capture input,
.lead-capture textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 12px;
  margin-top: 7px;
  resize: vertical;
}
.editor-form label > small {
  display: block;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 6px;
}
.save-btn {
  grid-column: 2;
  width: 100%;
}
.plan-box {
  border-top: 1px solid var(--line);
  padding: 10px 0 18px;
}
.safe-note {
  border: 1px solid var(--ink);
  background: var(--acid);
  padding: 16px;
  margin-top: 20px;
}
.safe-note b {
  font: 700 9px monospace;
}
.safe-note p {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 0;
}
.color-field {
  display: grid !important;
  grid-template-columns: 1fr 45px 95px;
  align-items: center;
  gap: 8px;
}
.color-field input {
  margin: 0;
}
.color-field input[type="color"] {
  height: 38px;
  padding: 3px;
}
.mini-preview {
  --pbg: #eee;
  --psurface: #fff;
  --ptext: #111;
  --paccent: #cf3;
  --pradius: 0;
  background: var(--pbg);
  color: var(--ptext);
  border: 1px solid var(--ptext);
  border-radius: var(--pradius);
  overflow: hidden;
  margin-top: 30px;
}
.mini-preview header {
  height: 55px;
  background: var(--psurface);
  border-bottom: 1px solid var(--ptext);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-weight: 800;
}
.mini-preview header span {
  font: 700 8px monospace;
}
.mini-preview > div {
  padding: 60px 25px 25px;
}
.mini-preview p {
  background: var(--psurface);
  padding: 14px;
  border-radius: var(--pradius);
  font-size: 12px;
}
.mini-preview button {
  width: 100%;
  border: 1px solid var(--ptext);
  background: var(--psurface);
  padding: 13px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  border-radius: var(--pradius);
}
.mini-preview button b {
  background: var(--ptext);
  color: var(--paccent);
  padding: 3px 8px;
}
.embed-editor {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 25px;
  margin-top: 22px;
}
.embed-editor > section {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 30px;
}
.embed-editor h2 {
  font-size: 48px;
  line-height: 0.92;
  letter-spacing: -3px;
  margin: 40px 0 20px;
}
.embed-editor > section > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}
.embed-code {
  margin-top: 35px;
}
.embed-code pre {
  white-space: pre-wrap;
  background: #111;
  color: #ddd;
  padding: 16px;
  font: 10px/1.5 monospace;
}
.embed-code button {
  border: 1px solid var(--ink);
  background: var(--acid);
  padding: 11px;
  font: 700 8px monospace;
}
.embed-editor a {
  display: block;
  margin-top: 30px;
  color: #111;
  font: 700 9px monospace;
}
.embed-editor iframe {
  width: 100%;
  height: 700px;
  border: 1px solid var(--ink);
}
.account-form {
  max-width: 650px;
}
.account-form > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.account-form .primary {
  margin-top: 25px;
}
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.create-modal,
.response-modal {
  position: relative;
  width: min(520px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 var(--acid);
  padding: 40px;
}
.modal-close {
  position: absolute;
  right: 13px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 27px;
}
.create-modal h2,
.response-modal h2 {
  font-size: 43px;
  line-height: 0.94;
  letter-spacing: -2.5px;
  font-weight: 500;
}
.create-modal label {
  display: block;
  font: 700 8px monospace;
  margin-top: 18px;
}
.create-modal input {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  padding: 12px;
  margin-top: 6px;
}
.create-modal .primary {
  width: 100%;
  margin-top: 27px;
  display: flex;
  justify-content: space-between;
}
.response-modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
}
.response-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  margin: 30px 0;
}
.response-meta span {
  padding: 15px;
  font-size: 12px;
}
.response-meta span + span {
  border-left: 1px solid var(--ink);
}
.response-meta small {
  display: block;
  font: 700 8px monospace;
  color: var(--muted);
  margin-bottom: 8px;
}
.transcript > p {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  background: #fff;
  padding: 13px;
  font-size: 12px;
}
.transcript > p.user {
  background: var(--ink);
  color: #fff;
}
.transcript small {
  font: 700 8px monospace;
  text-transform: uppercase;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  font: 700 9px monospace;
  z-index: 40;
}
.public-inquiry {
  --pbg: #eee;
  --psurface: #fff;
  --ptext: #111;
  --paccent: #cf3;
  --pradius: 0;
  min-height: 100vh;
  background: var(--pbg);
  color: var(--ptext);
}
.public-inquiry > header {
  height: 70px;
  background: var(--psurface);
  border-bottom: 1px solid var(--ptext);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
}
.public-inquiry > header span {
  font: 700 8px monospace;
}
.public-inquiry > header i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paccent);
  border: 1px solid var(--ptext);
  margin-right: 7px;
}
.public-inquiry > section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  min-height: calc(100vh - 70px);
}
.public-inquiry aside {
  padding: 8vh 4vw;
  border-right: 1px solid var(--ptext);
}
.public-inquiry aside h1 {
  font-size: clamp(58px, 6vw, 90px);
  line-height: 0.88;
  letter-spacing: -5px;
  font-weight: 500;
  margin: 40px 0;
}
.public-inquiry aside > p:last-child {
  line-height: 1.55;
  max-width: 400px;
}
.chat-card {
  background: var(--psurface);
  border: 1px solid var(--ptext);
  border-radius: var(--pradius);
  box-shadow: 8px 8px 0 var(--ptext);
  margin: 5vh 4vw;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  overflow: hidden;
}
.chat-card > header {
  height: 65px;
  border-bottom: 1px solid var(--ptext);
  display: flex;
  align-items: center;
  padding: 0 17px;
  gap: 10px;
}
.chat-card > header > span {
  width: 35px;
  height: 35px;
  background: var(--ptext);
  color: var(--paccent);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.chat-card > header div {
  display: flex;
  flex-direction: column;
}
.chat-card > header small {
  font: 700 7px monospace;
  color: var(--muted);
  margin-top: 4px;
}
.chat-card > header button {
  margin-left: auto;
  border: 0;
  background: none;
}
.messages {
  flex: 1;
  max-height: 570px;
  overflow: auto;
  padding: 22px;
}
.msg {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  margin-bottom: 15px;
}
.msg small {
  height: 27px;
  background: var(--ptext);
  color: var(--psurface);
  display: grid;
  place-items: center;
  font: 700 8px monospace;
}
.msg p {
  background: var(--pbg);
  padding: 12px;
  margin: 0;
  max-width: 510px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--pradius);
}
.msg.user {
  grid-template-columns: 1fr 34px;
}
.msg.user small {
  grid-column: 2;
}
.msg.user p {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  background: var(--ptext);
  color: var(--psurface);
}
.quick {
  display: grid;
  gap: 6px;
  margin-left: 43px;
}
.quick button {
  border: 1px solid var(--ptext);
  background: var(--psurface);
  padding: 11px;
  text-align: left;
  border-radius: var(--pradius);
}
.quick button:hover,
.send-lead {
  background: var(--paccent);
}
.send-lead {
  border: 1px solid var(--ptext);
  padding: 13px;
  margin-left: 43px;
  font: 700 9px monospace;
}
.composer {
  border-top: 1px solid var(--ptext);
  padding: 13px;
  display: flex;
  gap: 9px;
}
.composer textarea {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  resize: none;
  padding: 8px;
}
.composer button {
  width: 40px;
  border: 0;
  background: var(--ptext);
  color: var(--paccent);
  font-size: 20px;
  border-radius: var(--pradius);
}
.lead-capture {
  border: 1px solid var(--ptext);
  padding: 20px;
  margin: 25px 0 0 43px;
  border-radius: var(--pradius);
}
.lead-capture input,
.lead-capture textarea {
  background: var(--psurface);
}
.lead-capture > button {
  width: 100%;
  background: var(--ptext);
  color: var(--psurface);
  border: 0;
  padding: 13px;
  margin-top: 18px;
}
.success {
  text-align: center;
  padding: 25px;
}
.success > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: auto;
  background: var(--paccent);
  border: 1px solid var(--ptext);
}
.success h2 {
  font-size: 32px;
  letter-spacing: -1.5px;
}
.not-live {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.not-live > span {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  background: var(--acid);
  border: 1px solid var(--ink);
  margin: auto;
  font-weight: 900;
}
.not-live h1 {
  font-size: 45px;
  letter-spacing: -2px;
}
.not-live p {
  color: var(--muted);
}
.onboard {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 50;
  display: grid;
  grid-template-columns: 310px 1fr;
}
.onboard > aside {
  background: var(--ink);
  color: #fff;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
}
.onboard > aside > div:nth-child(2) {
  margin-top: 10vh;
}
.onboard > aside h2 {
  font-size: 39px;
  line-height: 0.95;
  letter-spacing: -2px;
  font-weight: 500;
}
.onboard > aside > div:nth-child(2) > p:last-child {
  color: #888;
  font-size: 13px;
  line-height: 1.55;
}
.onboard ol {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
}
.onboard li {
  display: grid;
  grid-template-columns: 38px 1fr;
  border-top: 1px solid #3b3b3b;
  padding: 15px 0;
  color: #666;
  font: 700 9px monospace;
}
.onboard li:last-child {
  border-bottom: 1px solid #3b3b3b;
}
.onboard li.active {
  color: #fff;
}
.onboard li.active b {
  color: var(--acid);
}
.onboard li.done {
  color: #999;
}
.onboard li.done b {
  color: var(--acid);
}
.onboard > main {
  min-width: 0;
  overflow: auto;
}
.onboard > main > header {
  height: 70px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  font: 700 9px monospace;
}
.onboard-close {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.onboard > main > section {
  padding: 5vh 7vw 50px;
  max-width: 1100px;
}
.onboard-form > h1 {
  font-size: clamp(48px, 5.5vw, 82px);
  line-height: 0.9;
  letter-spacing: -4.5px;
  font-weight: 500;
  margin: 28px 0 18px;
}
.onboard-copy {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
}
.onboard-form label {
  display: block;
  font: 700 8px monospace;
  letter-spacing: 1px;
  margin-top: 22px;
}
.onboard-form input,
.onboard-form textarea,
.onboard-form select {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 14px;
  margin-top: 7px;
  resize: vertical;
}
.onboard-form footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink);
  margin-top: 35px;
  padding-top: 20px;
}
.onboard-back {
  border: 0;
  background: none;
  font: 700 9px monospace;
  cursor: pointer;
}
.two,
.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.voice {
  border: 1px solid var(--ink);
  background: var(--acid);
  padding: 13px 16px;
  font: 700 9px monospace;
  margin-top: 25px;
  cursor: pointer;
}
.voice.recording {
  background: #ff655d;
}
.voice i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  margin-right: 6px;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.file-drop input {
  display: none;
}
.file-drop > span {
  display: block;
  border: 1px dashed var(--ink);
  background: #fff;
  padding: 15px;
  margin-top: 7px;
  cursor: pointer;
}
.file-drop small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 0;
}
.future-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  border: 1px solid var(--ink);
  background: #e5e4df;
  padding: 14px;
  margin-top: 20px;
}
.future-note b {
  font: 700 8px monospace;
}
.future-note span {
  font-size: 11px;
  color: var(--muted);
}
.anchor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.anchor-grid label {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 18px;
  margin: 0;
}
.anchor-grid label > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--acid);
  margin-bottom: 35px;
}
.anchor-grid label small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: 0;
  margin-top: 8px;
}
.readiness {
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--ink);
  background: #fff;
  margin-top: 30px;
}
.readiness > div {
  background: var(--acid);
  padding: 25px;
  border-right: 1px solid var(--ink);
}
.readiness b,
.readiness span {
  display: block;
}
.readiness b {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -3px;
}
.readiness span {
  font: 700 8px monospace;
  margin-top: 8px;
}
.readiness > p {
  padding: 22px;
  line-height: 1.55;
  color: var(--muted);
}
.draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  border-bottom: 0;
  margin-top: 18px;
}
.draft-grid section {
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid var(--ink);
}
.draft-grid section:nth-child(odd) {
  border-right: 1px solid var(--ink);
}
.draft-grid section > small {
  font: 700 8px monospace;
  color: var(--muted);
}
.draft-grid section p {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.draft-grid section p span {
  float: right;
  color: var(--muted);
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .nav {
    position: static;
    height: auto;
  }
  .nav nav {
    margin-top: 25px;
    grid-template-columns: repeat(4, 1fr);
  }
  .nav nav button {
    padding: 12px 5px;
    border-bottom: 1px solid #333;
  }
  .account-mini {
    display: none;
  }
  .inquiry-grid {
    grid-template-columns: 1fr 1fr;
  }
  .editor-form,
  .embed-editor,
  .start-panel {
    grid-template-columns: 1fr;
  }
  .save-btn {
    grid-column: 1;
  }
  .public-inquiry > section {
    grid-template-columns: 1fr;
  }
  .public-inquiry aside {
    border-right: 0;
    border-bottom: 1px solid var(--ptext);
  }
  .response-head {
    display: none;
  }
  .response-row {
    grid-template-columns: 85px 1fr 75px;
  }
  .response-row span,
  .response-row p {
    display: none;
  }
}
@media (max-width: 900px) {
  .onboard {
    grid-template-columns: 220px 1fr;
  }
  .onboard > aside {
    padding: 28px 20px;
  }
  .anchor-grid {
    grid-template-columns: 1fr;
  }
  .onboard > main > section {
    padding: 40px 30px;
  }
}
@media (max-width: 600px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-page > section {
    min-height: 55vh;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: 28px 22px;
  }
  .auth-page > aside {
    padding: 35px 18px;
  }
  .auth-page h1 {
    font-size: 58px;
    letter-spacing: -4px;
  }
  .nav nav {
    grid-template-columns: 1fr 1fr;
  }
  .main > header {
    height: auto;
    min-height: 130px;
    padding: 25px 18px;
    display: block;
  }
  .main > header h1 {
    font-size: 37px;
  }
  .main > header .primary {
    margin-top: 20px;
  }
  #screen {
    padding: 22px 14px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .stats > div:last-child {
    border-bottom: 0;
  }
  .inquiry-grid {
    grid-template-columns: 1fr;
  }
  .editor-tabs {
    overflow: auto;
  }
  .editor-tabs button {
    white-space: nowrap;
    padding: 14px;
  }
  .editor-form > section {
    padding: 21px;
  }
  .public-inquiry aside {
    padding: 50px 22px;
  }
  .public-inquiry aside h1 {
    font-size: 55px;
    letter-spacing: -3px;
  }
  .chat-card {
    margin: 22px 12px;
    box-shadow: 5px 5px 0 var(--ptext);
  }
  .response-meta {
    grid-template-columns: 1fr;
  }
  .response-meta span + span {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}
@media (max-width: 600px) {
  .onboard {
    display: block;
    overflow: auto;
  }
  .onboard > aside {
    height: auto;
  }
  .onboard > aside > div:nth-child(2) {
    margin-top: 45px;
  }
  .onboard > aside h2,
  .onboard > aside > div:nth-child(2) > p:last-child {
    display: none;
  }
  .onboard ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
  }
  .onboard li {
    display: block;
    text-align: center;
    border-bottom: 1px solid #3b3b3b;
  }
  .onboard li span {
    display: none;
  }
  .onboard > main > section {
    padding: 35px 18px;
  }
  .onboard-form > h1 {
    font-size: 48px;
    letter-spacing: -3px;
  }
  .two,
  .source-grid,
  .draft-grid {
    grid-template-columns: 1fr;
  }
  .draft-grid section:nth-child(odd) {
    border-right: 0;
  }
  .readiness {
    grid-template-columns: 1fr;
  }
  .readiness > div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}
.delete-inquiry {
  border: 1px solid #bb2f27;
  background: transparent;
  color: #9d211b;
  padding: 7px 11px;
  font: 700 8px monospace;
  cursor: pointer;
}
.delete-inquiry:hover {
  background: #bb2f27;
  color: #fff;
}
.delete-modal {
  position: relative;
  width: min(520px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 #e75046;
  padding: 40px;
}
.delete-modal h2 {
  font-size: 42px;
  line-height: 0.98;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 28px 0 15px;
}
.delete-modal > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}
.delete-modal label {
  display: block;
  font: 700 8px monospace;
  margin-top: 28px;
}
.delete-modal label input {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 12px;
  margin-top: 8px;
}
.delete-modal label.delete-check {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 13px;
}
.delete-modal label.delete-check input {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}
.danger {
  width: 100%;
  border: 0;
  background: #b52b24;
  color: #fff;
  padding: 14px;
  margin-top: 20px;
  font: 700 9px monospace;
  cursor: pointer;
}
.danger:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.delete-error {
  color: #a51f19 !important;
  font-size: 11px;
  min-height: 16px;
}

/* Overview activity */
.overview-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.65fr);
  gap: 20px;
  margin: 24px 0;
}
.activity-card,
.volume-card {
  background: #fff;
  border: 1px solid var(--ink);
}
.activity-card > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--ink);
}
.activity-card > header p,
.activity-card > header h2 {
  margin: 0;
}
.activity-card > header h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin-top: 7px;
}
.activity-card > header > span {
  background: var(--acid);
  border: 1px solid var(--ink);
  padding: 7px 9px;
  font: 700 8px monospace;
}
.activity-chart {
  height: 240px;
  padding: 28px 22px 14px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--ink);
}
.activity-day {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 18px;
  gap: 8px;
  text-align: center;
}
.activity-bar-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}
.activity-bar-wrap > b {
  font: 700 8px monospace;
}
.activity-bar-wrap > i {
  display: block;
  width: min(24px, 72%);
  min-height: 3px;
  background: var(--ink);
  border-top: 5px solid var(--acid);
  transition: height 0.2s;
}
.activity-day > span {
  font: 700 7px monospace;
  color: var(--muted);
  white-space: nowrap;
}
.activity-card > footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.activity-card > footer > span {
  padding: 16px 20px;
}
.activity-card > footer > span + span {
  border-left: 1px solid var(--ink);
}
.activity-card > footer small,
.activity-card > footer b {
  display: block;
}
.activity-card > footer small {
  font: 700 7px monospace;
  color: var(--muted);
}
.activity-card > footer b {
  font-size: 18px;
  margin-top: 6px;
}
.volume-card {
  padding: 23px;
}
.volume-card > .eyebrow {
  margin: 0;
}
.volume-card > h3 {
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 12px 0 24px;
}
.volume-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(60px, 0.8fr) 24px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.volume-row:last-child {
  border-bottom: 1px solid var(--line);
}
.volume-row b,
.volume-row small {
  display: block;
}
.volume-row b {
  font-size: 11px;
}
.volume-row small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.volume-row > span {
  height: 7px;
  background: var(--paper);
}
.volume-row > span i {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--acid);
  border-right: 1px solid var(--ink);
}
.volume-row em {
  font: 700 10px monospace;
  font-style: normal;
  text-align: right;
}
.volume-empty {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 900px) {
  .overview-analytics {
    grid-template-columns: 1fr;
  }
  .volume-card > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
}
@media (max-width: 600px) {
  .activity-card > header {
    padding: 18px;
  }
  .activity-card > header h2 {
    font-size: 26px;
  }
  .activity-chart {
    height: 205px;
    padding: 23px 10px 12px;
    gap: 3px;
  }
  .activity-day:nth-child(even) > span {
    visibility: hidden;
  }
  .activity-bar-wrap > i {
    width: 72%;
  }
  .activity-card > footer > span {
    padding: 13px 10px;
  }
  .volume-card {
    padding: 19px;
  }
  .volume-card > div {
    display: block;
  }
}

/* Response knowledge loop */
.response-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}
.response-toolbar > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.response-toolbar button {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 9px 11px;
  font: 700 8px monospace;
  cursor: pointer;
}
.response-toolbar button b {
  margin-left: 7px;
}
.response-toolbar button.active {
  background: var(--ink);
  color: #fff;
}
.response-toolbar > span {
  font: 700 8px monospace;
  color: var(--muted);
}
.response-row em.needs_answer {
  color: #a72b22;
}
.response-row em.resolved {
  color: #41750e;
}
.response-row em.archived {
  color: var(--muted);
}
.response-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.state-chip {
  border: 1px solid var(--ink);
  padding: 7px 9px;
  font: 700 8px monospace;
}
.state-chip.needs_answer {
  background: #ffdfd9;
}
.state-chip.resolved {
  background: var(--acid);
}
.state-chip.archived {
  background: #ddd;
}
.owner-answer {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 22px;
  margin: 24px 0;
}
.owner-answer blockquote {
  margin: 14px 0 22px;
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}
.owner-answer > label:not(.reuse-check) {
  display: block;
  font: 700 8px monospace;
}
.owner-answer textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 13px;
  margin-top: 8px;
  resize: vertical;
}
.owner-answer .primary {
  width: 100%;
  margin-top: 17px;
}
.reuse-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--ink);
  padding: 14px;
  margin-top: 14px;
  cursor: pointer;
}
.reuse-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.reuse-check span,
.reuse-check small {
  display: block;
}
.reuse-check b {
  font-size: 11px;
}
.reuse-check small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.resolved-answer {
  border: 1px solid var(--ink);
  background: var(--acid);
  padding: 20px;
  margin: 24px 0;
}
.resolved-answer > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.55;
}
.resolved-answer small {
  font: 700 8px monospace;
}
.archive-response {
  width: 100%;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 12px;
  font: 700 8px monospace;
  cursor: pointer;
}
.knowledge-count {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--ink);
  background: var(--acid);
  padding: 17px;
  margin-top: 22px;
}
.knowledge-count > b {
  font-size: 34px;
  font-weight: 500;
}
.knowledge-count span,
.knowledge-count small {
  display: block;
  font: 700 8px monospace;
}
.knowledge-count small {
  color: #4d4d49;
  margin-top: 5px;
}

/* Brand and embed controls */
.design-subhead {
  margin-top: 28px !important;
}
.brand-logo {
  display: block;
  max-width: 170px;
  max-height: 38px;
  object-fit: contain;
}
.mini-preview h3 {
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 14px 0 35px;
  max-width: 420px;
}
.font-sans {
  font-family: Arial, Helvetica, sans-serif;
}
.font-serif {
  font-family: Georgia, "Times New Roman", serif;
}
.font-mono {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.font-system {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.embed-editor details {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.embed-editor summary {
  font: 700 8px monospace;
  cursor: pointer;
}
.embed-code > small {
  font: 700 8px monospace;
  color: var(--muted);
}

/* Focused public inquiry screen */
.public-inquiry.public-focus {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--pbg);
  color: var(--ptext);
}
.public-focus > header {
  flex: 0 0 70px;
  padding: 0 clamp(20px, 4vw, 54px);
}
.public-focus > header > span {
  color: var(--ptext);
  opacity: 0.7;
}
.public-focus .inquiry-stage {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(420px, 1.35fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: auto;
  flex: 1;
  margin: 0 auto;
  padding: 48px 0;
}
.inquiry-intro {
  align-self: center;
}
.inquiry-intro h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -4px;
  font-weight: 500;
  margin: 28px 0 20px;
}
.font-serif .inquiry-intro h1 {
  letter-spacing: -2px;
}
.font-mono .inquiry-intro h1 {
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -3px;
}
.inquiry-intro > p:last-child {
  max-width: 410px;
  line-height: 1.6;
  opacity: 0.68;
}
.public-focus .chat-card {
  width: 100%;
  min-height: 560px;
  max-height: 680px;
  margin: 0;
  border-radius: var(--pradius);
  box-shadow: 9px 9px 0 var(--ptext);
}
.public-focus .chat-card > header {
  flex: 0 0 66px;
}
.public-focus .messages {
  min-height: 380px;
  max-height: none;
}
.public-focus .quick button,
.public-focus .send-lead,
.public-focus .composer button,
.public-focus .lead-capture > button {
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.public-focus .quick button:hover,
.public-focus .send-lead:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ptext);
}
.public-focus .send-lead {
  width: calc(100% - 43px);
  text-align: left;
  cursor: pointer;
}
.lead-note {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.7;
}
.public-focus > footer {
  display: flex;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 54px);
  font: 700 7px monospace;
  letter-spacing: 1px;
  border-top: 1px solid color-mix(in srgb, var(--ptext) 20%, transparent);
  opacity: 0.58;
}
.public-focus .success h2 {
  font-family: inherit;
}

@media (max-width: 820px) {
  .public-focus .inquiry-stage {
    grid-template-columns: 1fr;
    width: min(700px, calc(100% - 28px));
    padding: 34px 0;
  }
  .inquiry-intro h1 {
    font-size: 48px;
  }
  .inquiry-intro > p:last-child {
    max-width: 600px;
  }
  .public-focus .chat-card {
    min-height: 570px;
    box-shadow: 5px 5px 0 var(--ptext);
  }
  .response-toolbar {
    align-items: flex-start;
    gap: 12px;
  }
  .response-toolbar > span {
    display: none;
  }
}
@media (max-width: 600px) {
  .public-focus > header {
    height: 58px;
    flex-basis: 58px;
  }
  .public-focus .inquiry-stage {
    display: block;
    padding: 28px 0;
  }
  .inquiry-intro h1 {
    font-size: 40px;
    letter-spacing: -2.5px;
    margin: 20px 0 14px;
  }
  .inquiry-intro > p:last-child {
    font-size: 13px;
  }
  .public-focus .chat-card {
    margin-top: 28px;
    min-height: 530px;
  }
  .public-focus .messages {
    min-height: 340px;
    padding: 17px;
  }
  .public-focus .quick {
    margin-left: 0;
  }
  .public-focus .send-lead {
    margin-left: 0;
    width: 100%;
  }
  .public-focus .lead-capture {
    margin-left: 0;
  }
  .public-focus > footer {
    display: none;
  }
  .response-toolbar > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .response-toolbar button {
    text-align: left;
  }
}
.owner-answer blockquote {
  border-left-color: var(--acid);
}

/* Responses grouped by Inquiry */
.response-browser {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.response-inquiry-list {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 18px;
}
.response-inquiry-list > .eyebrow {
  margin: 0 0 15px;
}
.response-inquiry-list > button {
  position: relative;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 15px 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.response-inquiry-list > button:last-of-type {
  border-bottom: 1px solid var(--line);
}
.response-inquiry-list > button:hover,
.response-inquiry-list > button.active {
  background: var(--ink);
  color: #fff;
  padding-left: 12px;
  padding-right: 12px;
}
.response-inquiry-list button span,
.response-inquiry-list button b,
.response-inquiry-list button small {
  display: block;
}
.response-inquiry-list button b {
  font-size: 12px;
}
.response-inquiry-list button small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.response-inquiry-list button.active small,
.response-inquiry-list button:hover small {
  color: #aaa;
}
.response-inquiry-list button em {
  font: 700 9px monospace;
  font-style: normal;
}
.response-inquiry-list button i {
  grid-column: 1/-1;
  width: max-content;
  background: #ffdfd9;
  color: #8e211b;
  padding: 4px 6px;
  font: 700 7px monospace;
  font-style: normal;
}
.response-empty-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.response-results {
  min-width: 0;
}
.response-results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
.response-results-head p {
  margin: 0;
}
.response-results-head h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 8px 0 0;
}
.response-results-head > span {
  font: 700 8px monospace;
  color: var(--muted);
}
.response-zero {
  padding: 9vh 20px;
}
.response-row p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.4;
}

/* Structured response detail */
.response-modal-bg {
  padding: 18px;
}
.response-modal.response-detail {
  width: min(1080px, 100%);
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  overflow: auto;
  box-shadow: 9px 9px 0 var(--acid);
}
.response-detail > .modal-close {
  position: sticky;
  float: right;
  right: 14px;
  top: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
}
.response-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 70px 30px 34px;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}
.response-detail-head .eyebrow {
  margin: 0;
}
.response-detail-head h2 {
  max-width: 780px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -1.3px;
  font-weight: 500;
  margin: 20px 0 0;
}
.response-detail-head .state-chip {
  flex: 0 0 auto;
}
.response-context {
  display: grid;
  grid-template-columns: 0.75fr 0.85fr 1fr 1.4fr;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.response-context > div {
  min-width: 0;
  padding: 17px 20px;
}
.response-context > div + div {
  border-left: 1px solid var(--ink);
}
.response-context small,
.response-context b,
.response-context span,
.response-context a {
  display: block;
}
.response-context small {
  font: 700 7px monospace;
  color: var(--muted);
  margin-bottom: 8px;
}
.response-context b {
  font-size: 11px;
  line-height: 1.4;
}
.response-context span,
.response-context a {
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.response-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  background: #fff;
}
.response-detail-grid > main {
  min-width: 0;
  padding: 28px 30px 34px;
}
.response-side {
  border-left: 1px solid var(--ink);
  background: var(--paper);
}
.response-side > section {
  padding: 22px;
  border-bottom: 1px solid var(--ink);
}
.response-side > section:last-child {
  border-bottom: 0;
}
.response-side .eyebrow {
  margin: 0 0 14px;
}
.response-side p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}
.response-side dl {
  margin: 0;
}
.response-side dl > div {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.response-side dl > div:last-child {
  border-bottom: 1px solid var(--line);
}
.response-side dt {
  font: 700 7px monospace;
  color: var(--muted);
}
.response-side dd {
  font-size: 11px;
  line-height: 1.45;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.decision-card {
  margin: 0 0 28px;
  padding: 24px;
  background: #fff;
  border: 2px solid var(--ink);
}
.decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.decision-head .eyebrow {
  margin: 0;
}
.decision-head > span {
  background: var(--acid);
  padding: 5px 7px;
  font: 700 7px monospace;
}
.decision-card blockquote {
  font-size: 18px;
  line-height: 1.45;
  margin: 18px 0 24px;
  padding: 17px;
  background: var(--paper);
  border-left: 5px solid var(--acid);
}
.decision-card textarea {
  background: #fff;
}
.decision-card .reuse-check {
  background: var(--paper);
}
.response-conversation {
  border: 1px solid var(--ink);
}
.response-conversation > header {
  padding: 17px 20px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
}
.response-conversation > header p,
.response-conversation > header h3 {
  margin: 0;
}
.response-conversation > header h3 {
  font-size: 12px;
  margin-top: 6px;
}
.response-transcript {
  background: var(--paper);
}
.response-turn {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 20px;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.response-turn:last-child {
  border-bottom: 0;
}
.response-turn > span {
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: 1px solid var(--ink);
  font: 700 7px monospace;
}
.response-turn.user > span {
  background: var(--ink);
  color: #fff;
}
.response-turn small {
  font: 700 7px monospace;
  color: var(--muted);
}
.response-turn p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.response-actions {
  padding: 17px 30px;
  border-top: 1px solid var(--ink);
  background: #fff;
  text-align: right;
}
.response-actions .archive-response {
  width: auto;
}
.response-actions > span {
  font: 700 8px monospace;
  color: var(--muted);
}

@media (max-width: 900px) {
  .response-browser {
    grid-template-columns: 1fr;
  }
  .response-inquiry-list {
    position: static;
    display: flex;
    gap: 6px;
    overflow: auto;
  }
  .response-inquiry-list > .eyebrow {
    display: none;
  }
  .response-inquiry-list > button {
    flex: 0 0 180px;
    border: 1px solid var(--ink);
    padding: 12px;
  }
  .response-inquiry-list > button:last-of-type {
    border-bottom: 1px solid var(--ink);
  }
  .response-detail-grid {
    grid-template-columns: 1fr;
  }
  .response-side {
    border-left: 0;
    border-top: 1px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .response-side > section {
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }
  .response-side > section:last-child {
    border-right: 0;
  }
  .response-context {
    grid-template-columns: 1fr 1fr;
  }
  .response-context > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .response-context > div:nth-child(4) {
    border-top: 1px solid var(--ink);
  }
}
@media (max-width: 600px) {
  .response-results-head {
    align-items: flex-start;
  }
  .response-results-head h2 {
    font-size: 27px;
  }
  .response-detail-head {
    display: block;
    padding: 28px 55px 24px 20px;
  }
  .response-detail-head h2 {
    font-size: 23px;
  }
  .response-detail-head .state-chip {
    display: inline-block;
    margin-top: 18px;
  }
  .response-context {
    grid-template-columns: 1fr;
  }
  .response-context > div + div,
  .response-context > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .response-detail-grid > main {
    padding: 18px;
  }
  .response-side {
    display: block;
  }
  .response-side > section {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .response-turn {
    grid-template-columns: 34px 1fr;
    padding: 15px 13px;
    gap: 10px;
  }
  .response-turn > span {
    width: 30px;
  }
  .decision-card {
    padding: 18px;
  }
  .decision-card blockquote {
    font-size: 16px;
  }
  .response-actions {
    padding: 15px 18px;
  }
  .response-actions .archive-response {
    width: 100%;
  }
}

/* Simple embedded question form */
.public-inquiry.public-form {
  min-height: 100vh;
  background: var(--pbg);
  color: var(--ptext);
}
.public-form > .inquiry-form-shell {
  display: block;
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(20px, 6vh, 56px) 0;
}
.public-form .chat-card {
  width: 100%;
  min-height: 520px;
  max-height: none;
  margin: 0;
  background: var(--psurface);
  border: 1px solid var(--ptext);
  border-radius: var(--pradius);
  box-shadow: none;
}
.public-form .chat-card > header {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 30px);
  border-bottom: 1px solid color-mix(in srgb, var(--ptext) 18%, transparent);
}
.public-form .form-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.public-form .form-brand > b {
  font-size: 13px;
}
.public-form .brand-logo {
  max-width: 150px;
  max-height: 34px;
}
.public-form .chat-card > header > button {
  margin-left: auto;
  color: var(--ptext);
  font-size: 18px;
  cursor: pointer;
}
.form-question {
  padding: clamp(26px, 5vw, 42px) clamp(18px, 5vw, 38px) 18px;
}
.form-question small {
  font: 700 8px monospace;
  letter-spacing: 1.2px;
  opacity: 0.55;
  text-transform: uppercase;
}
.form-question h1 {
  max-width: 620px;
  margin: 13px 0 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.03;
  letter-spacing: -2.5px;
  font-weight: 500;
}
.font-serif .form-question h1 {
  letter-spacing: -1.2px;
}
.font-mono .form-question h1 {
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -2px;
}
.public-form .messages {
  flex: 1;
  min-height: 215px;
  max-height: none;
  padding: 18px clamp(18px, 5vw, 38px);
}
.public-form .quick {
  margin-left: 0;
  grid-template-columns: 1fr;
}
.public-form .quick button {
  background: transparent;
  padding: 13px 14px;
}
.public-form .msg small {
  background: var(--ptext);
  color: var(--psurface);
}
.public-form .msg p {
  background: var(--pbg);
}
.public-form .send-lead {
  width: 100%;
  margin-left: 0;
  text-align: left;
  background: var(--paccent);
}
.public-form .lead-capture {
  margin-left: 0;
}
.public-form .composer {
  padding: 14px clamp(18px, 5vw, 30px);
  background: var(--psurface);
}
.public-form .composer textarea {
  min-height: 38px;
  align-content: center;
}
.public-form .composer button {
  flex: 0 0 42px;
  height: 42px;
  cursor: pointer;
}
.public-form .success h2 {
  font-family: inherit;
}

/* Website knowledge source */
.source-title {
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 30px 0 12px;
}
.source-copy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}
.source-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 14px;
  margin-top: 17px !important;
  cursor: pointer;
}
.source-check input {
  display: inline-block !important;
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
  padding: 0 !important;
}
.source-check span,
.source-check small {
  display: block;
}
.source-check b {
  font-size: 10px;
}
.source-check small {
  margin-top: 5px !important;
}
.source-status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--ink);
  padding: 14px;
  margin-top: 17px;
  background: #e9e8e3;
}
.source-status > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7a431;
  margin-top: 3px;
}
.source-status span,
.source-status small {
  display: block;
}
.source-status b {
  font: 700 8px monospace;
}
.source-status small {
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 5px;
}

@media (max-width: 600px) {
  .public-form > .inquiry-form-shell {
    width: 100%;
    padding: 0;
  }
  .public-form .chat-card {
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }
  .public-form .chat-card > header {
    height: 62px;
  }
  .form-question {
    padding-top: 28px;
  }
  .form-question h1 {
    font-size: 34px;
  }
  .public-form .messages {
    min-height: 230px;
  }
  .embed-editor iframe {
    height: 620px;
  }
}
.ai-switch {
  background: var(--acid);
}
.source-status.active {
  background: #e8ffd0;
}
.source-status.active > i {
  background: #4d8a13;
}

/* Understanding-first knowledge setup */
.knowledge-guide {
  border: 1px solid var(--ink);
  background: var(--acid);
  padding: 16px;
  margin: 20px 0;
}
.knowledge-guide b {
  font: 700 9px monospace;
}
.knowledge-guide p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.plan-box:first-of-type {
  margin-top: 24px;
}

/* Fixed-height embed: only the conversation scrolls */
.public-inquiry.public-form {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.public-form > .inquiry-form-shell {
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 3vh, 24px) 0;
  display: flex;
}
.public-form .chat-card {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.public-form .chat-card > header,
.public-form .form-question,
.public-form .composer {
  flex: 0 0 auto;
}
.public-form .messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.public-form .msg p {
  overflow-wrap: anywhere;
}
.public-form .lead-capture {
  margin-bottom: 4px;
}
.embed-editor iframe {
  height: 640px;
}
.thinking p {
  display: flex;
  align-items: center;
  gap: 5px;
  color: color-mix(in srgb, var(--ptext) 58%, transparent);
}
.thinking p i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: thinking-dot 1.1s infinite;
}
.thinking p i:nth-child(2) {
  animation-delay: 0.16s;
}
.thinking p i:nth-child(3) {
  animation-delay: 0.32s;
}
.thinking p span {
  margin-left: 5px;
  font: 700 7px monospace;
  letter-spacing: 0.8px;
}
@keyframes thinking-dot {
  0%,
  70%,
  100% {
    opacity: 0.22;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (max-width: 600px) {
  .public-form > .inquiry-form-shell {
    height: 100%;
    min-height: 0;
    padding: 0;
  }
  .public-form .chat-card {
    height: 100%;
    min-height: 0;
  }
  .public-form .form-question {
    padding-top: 22px;
  }
  .public-form .messages {
    min-height: 0;
  }
  .embed-editor iframe {
    height: 640px;
  }
}

/* The iframe owns the viewport; only its message panel may scroll. */
html.inquiry-embed-page,
html.inquiry-embed-page body,
html.inquiry-embed-page #app {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.inquiry-embed-page .public-inquiry.public-form {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.inquiry-embed-page .public-form > .inquiry-form-shell {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.inquiry-embed-page .public-form .chat-card {
  display: flex;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.inquiry-embed-page .public-form .messages {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.inquiry-embed-page .public-form .composer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.inquiry-embed-page .public-form .msg.user p {
  background: var(--paccent);
  color: var(--pusertext, #111);
  border: 1px solid var(--ptext);
}
.inquiry-embed-page .public-form .msg.user small {
  background: var(--paccent);
  color: var(--pusertext, #111);
  border: 1px solid var(--ptext);
}
.lead-error {
  margin: 14px 0 0;
  padding: 11px;
  border: 1px solid #a72b22;
  background: #ffdfd9;
  color: #7e1711;
  font-size: 11px;
  line-height: 1.45;
}
.lead-error[hidden] {
  display: none;
}

/* Reviewed website knowledge */
.knowledge-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  margin: 22px 0;
}
.knowledge-steps span {
  padding: 11px 8px;
  font: 700 7px monospace;
  color: var(--muted);
  text-align: center;
}
.knowledge-steps span + span {
  border-left: 1px solid var(--ink);
}
.knowledge-steps span.done {
  background: var(--acid);
  color: var(--ink);
}
.knowledge-steps b {
  margin-right: 5px;
}
.scan-website {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 13px 15px;
  margin-top: 10px;
  font: 700 8px monospace;
  text-align: left;
  cursor: pointer;
}
.scan-website:disabled,
.approve-website-knowledge:disabled {
  opacity: 0.5;
  cursor: wait;
}
.knowledge-empty,
.knowledge-approved,
.knowledge-review {
  border: 1px solid var(--ink);
  margin-top: 18px;
}
.knowledge-empty {
  background: var(--paper);
  padding: 17px;
}
.knowledge-empty b {
  font: 700 8px monospace;
}
.knowledge-empty p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 0;
}
.knowledge-approved {
  background: #e8ffd0;
  padding: 18px;
}
.knowledge-approved > header {
  display: flex;
  gap: 12px;
  align-items: center;
}
.knowledge-approved > header > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: var(--ink);
  color: var(--acid);
  font-weight: 900;
}
.knowledge-approved .eyebrow,
.knowledge-approved h4 {
  margin: 0;
}
.knowledge-approved h4 {
  font-size: 11px;
  line-height: 1.4;
  margin-top: 5px;
}
.knowledge-approved > p {
  font-size: 12px;
  line-height: 1.55;
}
.knowledge-approved > ul {
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.55;
}
.knowledge-approved > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 13px;
}
.knowledge-review {
  background: #fff;
}
.knowledge-review > header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  padding: 17px;
  border-bottom: 1px solid var(--ink);
}
.knowledge-review > header .eyebrow,
.knowledge-review > header h4 {
  margin: 0;
}
.knowledge-review > header h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin-top: 7px;
}
.knowledge-review > header > span {
  background: #ffdfd9;
  border: 1px solid var(--ink);
  padding: 6px;
  font: 700 7px monospace;
  white-space: nowrap;
}
.knowledge-summary {
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.knowledge-group {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 6px 15px 14px;
  margin: 0;
  max-height: 280px;
  overflow: auto;
}
.knowledge-group legend {
  padding: 12px 0 5px;
  font: 700 8px monospace;
}
.knowledge-group label {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  margin: 0 !important;
  cursor: pointer;
}
.knowledge-group input {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
}
.knowledge-group span,
.knowledge-group b,
.knowledge-group small,
.knowledge-group em {
  display: block;
}
.knowledge-group b {
  font-size: 11px;
  line-height: 1.35;
}
.knowledge-group small {
  font:
    400 10px/1.45 Arial,
    Helvetica,
    sans-serif !important;
  letter-spacing: 0 !important;
  color: var(--muted);
  margin-top: 4px !important;
}
.knowledge-group em {
  font:
    400 9px/1.4 Arial,
    Helvetica,
    sans-serif;
  color: #777;
  font-style: normal;
  margin-top: 6px;
}
.knowledge-warnings {
  padding: 15px;
  background: #fff3cf;
  border-bottom: 1px solid var(--ink);
}
.knowledge-warnings > b {
  font: 700 8px monospace;
}
.knowledge-warnings ul {
  padding-left: 18px;
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
}
.approve-website-knowledge {
  width: calc(100% - 30px);
  border: 1px solid var(--ink);
  background: var(--acid);
  padding: 13px;
  margin: 15px;
  font: 700 8px monospace;
  text-align: left;
  cursor: pointer;
}
.knowledge-source-note {
  display: block;
  padding: 0 15px 16px;
  font-size: 9px !important;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0 !important;
}
.website-source-section .source-status {
  margin-top: 17px;
}
.website-source-section .ai-switch {
  margin-top: 24px !important;
}
@media (max-width: 600px) {
  .knowledge-steps span {
    font-size: 6px;
  }
  .knowledge-review > header {
    display: block;
  }
  .knowledge-review > header > span {
    display: inline-block;
    margin-top: 10px;
  }
  .knowledge-group {
    max-height: 240px;
  }
}

/* Flexible service boundaries */
.service-profile-list {
  border: 1px solid var(--ink);
  margin-top: 22px;
}
.service-profile-intro {
  padding: 16px;
  background: var(--acid);
  border-bottom: 1px solid var(--ink);
}
.service-profile-intro b {
  font: 700 8px monospace;
}
.service-profile-intro p {
  font-size: 11px;
  line-height: 1.5;
  margin: 7px 0 0;
}
.service-profile {
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}
.service-profile:last-child {
  border-bottom: 0;
}
.service-profile > header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-profile > header span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--acid);
  font: 700 8px monospace;
}
.service-profile h4 {
  font-size: 15px;
  margin: 0;
}
.service-profile label {
  margin-top: 15px;
}
.service-profile textarea,
.service-profile select {
  background: var(--paper);
}
.service-profile-empty {
  border: 1px dashed var(--ink);
  background: var(--paper);
  padding: 16px;
  margin-top: 18px;
}
.service-profile-empty b {
  font: 700 8px monospace;
}
.service-profile-empty p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 7px 0 0;
}

/* Workspace V2: knowledge, inquiry, routing, and calendar in one product */
.workspace-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background: var(--paper);
}
.workspace-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--ink);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  z-index: 8;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.workspace-brand > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #555;
  color: var(--acid);
  font: 800 10px monospace;
}
.workspace-brand > b {
  font-size: 15px;
  line-height: 0.9;
  letter-spacing: -0.7px;
}
.workspace-nav nav {
  display: grid;
  margin-top: 66px;
}
.workspace-nav nav button {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 16px 5px;
  border: 0;
  border-top: 1px solid #383838;
  background: transparent;
  color: #868686;
  text-align: left;
  font: 700 9px monospace;
  cursor: pointer;
}
.workspace-nav nav button:last-child {
  border-bottom: 1px solid #383838;
}
.workspace-nav nav button:hover,
.workspace-nav nav button.active {
  color: #fff;
}
.workspace-nav nav button.active:before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--acid);
}
.workspace-nav nav i {
  font-style: normal;
  color: #505050;
}
.workspace-nav nav button.active i {
  color: var(--acid);
}
.workspace-nav nav em {
  font-style: normal;
  min-width: 22px;
  padding: 3px 5px;
  text-align: center;
  background: #303030;
}
.workspace-nav nav button.active em {
  background: var(--acid);
  color: #111;
}
.workspace-user {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}
.workspace-user > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #111;
  font-weight: 900;
}
.workspace-user b,
.workspace-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-user b {
  font-size: 10px;
}
.workspace-user small {
  font-size: 8px;
  color: #777;
  margin-top: 3px;
}
.workspace-user button {
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
}
.workspace-main {
  min-width: 0;
}
.workspace-header {
  min-height: 158px;
  padding: 35px clamp(24px, 4vw, 60px) 30px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  background: var(--paper);
}
.workspace-header .eyebrow {
  margin: 0;
}
.workspace-header h1 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.93;
  letter-spacing: -3.5px;
  font-weight: 500;
  margin: 14px 0 10px;
}
.workspace-header > div > p:last-child {
  max-width: 650px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.workspace-header > .primary {
  white-space: nowrap;
}
.workspace-main > #workspace-screen {
  padding: 30px clamp(18px, 4vw, 60px) 70px;
}
.mobile-nav {
  display: none;
}
.workspace-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  background: #fff;
}
.workspace-stats article {
  padding: 23px;
  border-right: 1px solid var(--ink);
}
.workspace-stats article:last-child {
  border-right: 0;
}
.workspace-stats small,
.workspace-stats b,
.workspace-stats span {
  display: block;
}
.workspace-stats small {
  font: 700 8px monospace;
  color: var(--muted);
}
.workspace-stats b {
  font-size: 47px;
  font-weight: 500;
  letter-spacing: -2.5px;
  margin: 28px 0 3px;
}
.workspace-stats span {
  font-size: 10px;
  color: var(--muted);
}
.control-map {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  margin-top: 23px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.control-map > header {
  padding: 34px;
}
.control-map > header h2 {
  font-size: 41px;
  line-height: 0.94;
  letter-spacing: -2.5px;
  font-weight: 500;
  margin: 45px 0 0;
}
.control-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.control-flow article {
  min-height: 170px;
  padding: 24px;
  border-left: 1px solid #404040;
  border-bottom: 1px solid #404040;
}
.control-flow article:nth-child(3),
.control-flow article:nth-child(4) {
  border-bottom: 0;
}
.control-flow span,
.control-flow b {
  display: block;
}
.control-flow span {
  font: 700 8px monospace;
  color: var(--acid);
}
.control-flow b {
  font-size: 16px;
  margin: 34px 0 10px;
}
.control-flow p {
  font-size: 11px;
  line-height: 1.5;
  color: #909090;
  margin: 0;
}
.overview-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 23px;
}
.overview-columns > article {
  border: 1px solid var(--ink);
  background: #fff;
}
.overview-columns > article > header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--ink);
}
.overview-columns h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 8px 0 0;
}
.overview-columns header .eyebrow {
  margin: 0;
}
.overview-columns header button {
  border: 0;
  background: none;
  font: 700 8px monospace;
  cursor: pointer;
}
.overview-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 80px;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}
.overview-columns button.overview-row {
  cursor: pointer;
}
.overview-columns button.overview-row:hover {
  background: var(--acid);
}
.overview-row span,
.overview-row time {
  font: 700 8px monospace;
}
.overview-row p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}
.overview-row time {
  text-align: right;
  color: var(--muted);
}
.overview-empty {
  padding: 35px 20px;
  color: var(--muted);
  font-size: 12px;
}
.assistant-list-head {
  display: flex;
  justify-content: space-between;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--ink);
  font: 700 8px monospace;
}
.assistant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.assistant-card-v2 {
  min-height: 330px;
  padding: 0;
  border: 1px solid var(--ink);
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: 0.15s;
}
.assistant-card-v2:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}
.assistant-card-v2 > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.assistant-card-v2 > header small {
  font: 700 7px monospace;
  color: var(--muted);
}
.assistant-card-v2 > div {
  padding: 28px 20px;
}
.assistant-card-v2 > div > small {
  font: 700 8px monospace;
  color: var(--muted);
}
.assistant-card-v2 h2 {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -1.7px;
  font-weight: 500;
  margin: 25px 0 9px;
}
.assistant-card-v2 p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.assistant-card-v2 > footer {
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid var(--ink);
}
.assistant-card-v2 > footer > span {
  display: block;
  margin-top: 14px;
  font: 700 7px monospace;
  color: var(--muted);
}
.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.capability-tags span {
  padding: 5px 7px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font: 700 7px monospace;
}
.capability-tags span:last-child {
  background: var(--acid);
}
.inbox-v2 {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
}
.inbox-v2 > aside {
  position: sticky;
  top: 20px;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 17px;
}
.inbox-v2 > aside > .eyebrow {
  margin: 0 0 12px;
}
.inbox-v2 > aside > button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 5px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.inbox-v2 > aside > button:last-child {
  border-bottom: 1px solid var(--line);
}
.inbox-v2 > aside > button.active,
.inbox-v2 > aside > button:hover {
  padding-left: 11px;
  padding-right: 11px;
  background: var(--ink);
  color: #fff;
}
.inbox-v2 > aside b,
.inbox-v2 > aside small {
  display: block;
}
.inbox-v2 > aside b {
  font-size: 11px;
}
.inbox-v2 > aside small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.inbox-v2 > aside em {
  font: 700 9px monospace;
  font-style: normal;
}
.inbox-v2 > section {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ink);
}
.inbox-table-head,
.inbox-row {
  display: grid;
  grid-template-columns: 80px 1fr minmax(180px, 2fr) 1fr 85px;
  gap: 13px;
  align-items: center;
}
.inbox-table-head {
  padding: 13px 15px;
  border-bottom: 1px solid var(--ink);
  font: 700 7px monospace;
  color: var(--muted);
}
.inbox-row {
  width: 100%;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.inbox-row:hover {
  background: var(--acid);
}
.inbox-row time,
.inbox-row em {
  font: 700 8px monospace;
}
.inbox-row em {
  font-style: normal;
  text-align: right;
}
.inbox-row span,
.inbox-row p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}
.inbox-row span b,
.inbox-row span small {
  display: block;
}
.inbox-row span small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.inbox-row p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inbox-row em.needs_answer {
  color: #9b2f22;
}
.inbox-row em.resolved {
  color: #28712e;
}
.calendar-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.calendar-toolbar > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.calendar-toolbar button {
  height: 36px;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 0 12px;
  font: 700 8px monospace;
  cursor: pointer;
}
.calendar-toolbar h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 0 0 0 14px;
}
.calendar-toolbar label {
  font: 700 7px monospace;
}
.calendar-toolbar select {
  display: block;
  min-width: 180px;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 9px;
  margin-top: 5px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  border: 1px solid var(--ink);
  background: #fff;
}
.calendar-month {
  min-width: 0;
}
.calendar-month > header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--ink);
}
.calendar-month > header span {
  padding: 10px;
  text-align: center;
  font: 700 7px monospace;
  color: var(--muted);
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-day {
  min-width: 0;
  min-height: 122px;
  padding: 8px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}
.calendar-day:hover {
  background: #f8f8f5;
}
.calendar-day.outside {
  background: #eeede8;
  color: #999;
}
.calendar-day.today > time {
  background: var(--ink);
  color: var(--acid);
}
.calendar-day > time {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font: 700 8px monospace;
}
.calendar-day > div {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}
.calendar-event {
  display: block;
  padding: 5px 6px;
  border-left: 4px solid var(--event);
  background: #f1f0ec;
  font-size: 8px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-event b {
  margin-right: 4px;
}
.calendar-day > div > small {
  font: 700 7px monospace;
  color: var(--muted);
}
.calendar-side {
  border-left: 1px solid var(--ink);
  background: var(--paper);
  padding: 20px;
}
.calendar-side > .eyebrow {
  margin: 0 0 15px;
}
.calendar-side > div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.calendar-side > div i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}
.calendar-side b,
.calendar-side small {
  display: block;
}
.calendar-side b {
  font-size: 10px;
}
.calendar-side small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.calendar-side > section {
  margin-top: 28px;
  padding: 15px;
  border: 1px solid var(--ink);
  background: var(--acid);
}
.calendar-side > section > b {
  font: 700 8px monospace;
}
.calendar-side > section > p {
  font-size: 10px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.people-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
  padding: 10px 0 30px;
  border-bottom: 1px solid var(--ink);
}
.people-intro .eyebrow {
  margin: 0;
}
.people-intro h2 {
  font-size: 43px;
  line-height: 0.94;
  letter-spacing: -2.5px;
  font-weight: 500;
  margin: 32px 0 0;
}
.people-intro > p {
  max-width: 480px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 20px;
}
.person-card {
  min-height: 275px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.person-card:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}
.person-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.person-card header > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--person);
  border: 1px solid var(--ink);
  font-size: 17px;
  font-weight: 900;
}
.person-card header em {
  font: 700 7px monospace;
  font-style: normal;
}
.person-card h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 48px 0 6px;
}
.person-card > p {
  font-size: 11px;
  color: var(--muted);
}
.person-card > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.person-card footer {
  display: flex;
  gap: 13px;
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font: 700 7px monospace;
}
.workspace-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 22px;
}
.workspace-settings > section,
.workspace-settings > aside {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 30px;
}
.workspace-settings h3 {
  font-size: 37px;
  line-height: 0.96;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 35px 0 20px;
}
.workspace-settings label,
.people-modal label,
.appointment-modal label {
  display: block;
  margin-top: 18px;
  font: 700 8px monospace;
  letter-spacing: 0.8px;
}
.workspace-settings input,
.workspace-settings select,
.people-modal input,
.appointment-modal input,
.appointment-modal select,
.appointment-modal textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  margin-top: 6px;
}
.workspace-settings .primary,
.people-modal > .primary,
.appointment-modal > .primary {
  width: 100%;
  margin-top: 26px;
}
.workspace-settings > aside > p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.workspace-settings > aside > div {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--ink);
}
.workspace-settings > aside > div > b {
  padding: 11px;
  background: var(--ink);
  color: #fff;
  font: 700 8px monospace;
}
.workspace-settings > aside > div > span {
  padding: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.assistant-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.assistant-back {
  border: 0;
  background: none;
  font: 700 8px monospace;
  cursor: pointer;
}
.assistant-editor-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assistant-delete,
.assistant-publish {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  font: 700 7px monospace;
  cursor: pointer;
}
.assistant-delete {
  background: #fff;
}
.assistant-publish {
  background: var(--ink);
  color: #fff;
}
.assistant-tabs {
  display: flex;
  overflow: auto;
  border-bottom: 1px solid var(--ink);
  margin-top: 26px;
}
.assistant-tabs button {
  flex: 0 0 auto;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 8px monospace;
  cursor: pointer;
}
.assistant-tabs button.active {
  background: var(--ink);
  color: #fff;
}
.assistant-editor-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.assistant-editor-form > section {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--ink);
  background: #fff;
}
.assistant-editor-form > section > h3 {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -1.3px;
  font-weight: 500;
  margin: 28px 0 18px;
}
.assistant-editor-form label {
  display: block;
  margin-top: 18px;
  font: 700 8px monospace;
  letter-spacing: 0.8px;
}
.assistant-editor-form input,
.assistant-editor-form textarea,
.assistant-editor-form select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  margin-top: 6px;
  resize: vertical;
}
.assistant-editor-form label > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font:
    400 9px/1.45 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0;
}
.editor-save {
  grid-column: 2;
}
.editor-note,
.action-boundary {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--acid);
}
.editor-note b,
.action-boundary b {
  font: 700 8px monospace;
}
.editor-note p,
.action-boundary p {
  font-size: 11px;
  line-height: 1.55;
  margin: 8px 0 0;
}
.toggle-row {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.toggle-row > input {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.toggle-row span,
.toggle-row b,
.toggle-row small {
  display: block;
}
.toggle-row b {
  font-size: 10px;
}
.ai-row {
  background: var(--acid);
}
.price-anchors {
  margin-top: 24px;
}
.price-anchors > .eyebrow {
  margin-bottom: 10px;
}
.price-anchors article {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-top: 8px;
}
.price-anchors article label:first-child {
  margin-top: 0;
}
.compact-review {
  margin-top: 18px;
}
.compact-review .knowledge-group {
  max-height: 220px;
}
.capability-settings {
  border: 1px solid var(--ink);
}
.capability-settings label {
  display: grid !important;
  grid-template-columns: 18px 38px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 15px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.capability-settings label:last-child {
  border-bottom: 0;
}
.capability-settings input {
  width: 17px !important;
  height: 17px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}
.capability-settings label > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  font: 700 9px monospace;
}
.capability-settings b,
.capability-settings small {
  display: block;
}
.capability-settings b {
  font-size: 11px;
}
.capability-settings small {
  font:
    400 9px/1.45 Arial,
    Helvetica,
    sans-serif !important;
  letter-spacing: 0 !important;
  color: var(--muted);
  margin-top: 4px !important;
}
.booking-settings {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.booking-settings > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.booking-settings > header > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  font: 700 8px monospace;
}
.booking-settings > header b,
.booking-settings > header small {
  display: block;
}
.booking-settings > header b {
  font: 700 8px monospace;
}
.booking-settings > header small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.color-setting {
  display: grid !important;
  grid-template-columns: 1fr 48px 90px;
  gap: 8px;
  align-items: center;
}
.color-setting input {
  height: 40px;
  margin: 0;
  padding: 3px;
}
.color-setting span {
  font: 700 8px monospace;
}
.assistant-mini-preview {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  margin-top: 25px;
  border: 1px solid var(--ptext);
  border-radius: var(--pradius);
  overflow: hidden;
  background: var(--pbg);
  color: var(--ptext);
}
.assistant-mini-preview > header {
  padding: 20px;
  background: var(--psurface);
  border-bottom: 1px solid var(--ptext);
  font-weight: 800;
}
.assistant-mini-preview > main {
  flex: 1;
  padding: 45px 24px;
}
.assistant-mini-preview main > small {
  font: 700 7px monospace;
}
.assistant-mini-preview main > h3 {
  font-size: 35px;
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 15px 0 40px;
}
.preview-answer {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
}
.preview-answer > span {
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--ptext);
  color: var(--psurface);
  font: 700 7px monospace;
}
.preview-answer > p {
  margin: 0;
  padding: 13px;
  background: var(--psurface);
  font-size: 11px;
  line-height: 1.5;
}
.assistant-mini-preview > footer {
  padding: 18px 20px;
  background: var(--psurface);
  border-top: 1px solid var(--ptext);
  font-size: 11px;
  color: #888;
}
.assistant-mini-preview > footer b {
  float: right;
  color: var(--ptext);
}
.share-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  margin-top: 20px;
}
.share-panel > section {
  padding: 28px;
  border: 1px solid var(--ink);
  background: #fff;
}
.share-panel h2 {
  font-size: 45px;
  line-height: 0.94;
  letter-spacing: -2.7px;
  font-weight: 500;
  margin: 40px 0 18px;
}
.share-panel > section > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.share-code {
  margin-top: 30px;
}
.share-code > small {
  font: 700 7px monospace;
}
.share-code pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 15px;
  background: var(--ink);
  color: #ddd;
  font: 9px/1.5 monospace;
}
.share-code button {
  padding: 11px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font: 700 8px monospace;
  cursor: pointer;
}
.share-panel details {
  margin-top: 20px;
}
.share-panel summary {
  font: 700 8px monospace;
  cursor: pointer;
}
.share-panel a {
  display: block;
  color: var(--ink);
  margin-top: 30px;
  font: 700 8px monospace;
}
.share-panel > iframe {
  width: 100%;
  height: 640px;
  border: 1px solid var(--ink);
}
.capability-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  margin-top: 30px;
}
.capability-picker label {
  display: grid;
  grid-template-columns: 18px 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px;
  margin: 0;
  background: #fff;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
}
.capability-picker label:nth-child(even) {
  border-right: 0;
}
.capability-picker label:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.capability-picker input {
  width: 17px;
  height: 17px;
  margin: 4px 0 0;
  padding: 0;
}
.capability-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  font: 700 9px monospace;
}
.capability-picker b,
.capability-picker small {
  display: block;
}
.capability-picker b {
  font-size: 14px;
}
.capability-picker small {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}
.assistant-review-card {
  padding: 28px;
  border: 1px solid var(--ink);
  background: #fff;
  margin-top: 30px;
}
.assistant-review-card > small {
  font: 700 8px monospace;
  color: var(--muted);
}
.assistant-review-card h2 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 20px 0 10px;
}
.assistant-review-card > p {
  font-size: 12px;
  color: var(--muted);
}
.assistant-review-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 25px;
}
.assistant-review-card > div span {
  padding: 7px 9px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font: 700 8px monospace;
}
.safety-summary {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: #fff;
}
.safety-summary > * {
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.safety-summary b {
  grid-row: span 4;
  background: var(--ink);
  color: #fff;
  font: 700 8px monospace;
  border-bottom: 0;
}
.safety-summary span {
  font-size: 10px;
}
.safety-summary span:last-child {
  border-bottom: 0;
}
.people-modal,
.appointment-modal,
.appointment-detail,
.delete-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 35px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--acid);
}
.people-modal h2,
.appointment-modal h2,
.appointment-detail h2,
.delete-modal h2 {
  font-size: 37px;
  line-height: 0.98;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 27px 0 14px;
}
.modal-copy {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.people-modal .toggle-row {
  display: grid;
}
.people-modal .danger {
  width: 100%;
  margin-top: 10px;
}
.appointment-detail-time {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px;
  border: 1px solid var(--ink);
  background: #fff;
}
.appointment-detail-time b {
  font-size: 14px;
}
.appointment-detail-time span {
  font: 700 8px monospace;
}
.appointment-detail dl {
  margin: 20px 0;
}
.appointment-detail dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.appointment-detail dl > div:last-child {
  border-bottom: 1px solid var(--line);
}
.appointment-detail dt {
  font: 700 8px monospace;
  color: var(--muted);
}
.appointment-detail dd {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}
.appointment-detail .danger {
  width: 100%;
}
.workspace-response .response-assignee {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 9px;
}
.workspace-response .response-context {
  grid-template-columns: 0.8fr 1fr 1fr 1.3fr;
}

@media (max-width: 1180px) {
  .assistant-grid,
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-stats {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-stats article:nth-child(2) {
    border-right: 0;
  }
  .workspace-stats article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-side {
    border-left: 0;
    border-top: 1px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .calendar-side > .eyebrow {
    grid-column: 1/-1;
  }
  .calendar-side > section {
    margin-top: 0;
  }
  .calendar-day {
    min-height: 105px;
  }
  .inbox-table-head,
  .inbox-row {
    grid-template-columns: 70px 1fr minmax(140px, 2fr) 80px;
  }
  .inbox-table-head span:nth-child(4),
  .inbox-row > span:nth-child(4) {
    display: none;
  }
}
@media (max-width: 900px) {
  .workspace-shell {
    grid-template-columns: 1fr;
    padding-bottom: 62px;
  }
  .workspace-nav {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .workspace-nav > nav {
    display: none;
  }
  .workspace-user {
    margin: 0;
  }
  .workspace-user > div {
    display: none;
  }
  .workspace-user {
    grid-template-columns: 34px 24px;
  }
  .workspace-main > #workspace-screen {
    padding-bottom: 40px;
  }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--ink);
    color: #fff;
    border-top: 1px solid #444;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: #777;
    font: 700 7px monospace;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
  }
  .mobile-nav button i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #555;
  }
  .mobile-nav button.active {
    color: #fff;
  }
  .mobile-nav button.active i {
    background: var(--acid);
  }
  .control-map {
    grid-template-columns: 1fr;
  }
  .control-flow article:nth-child(odd) {
    border-left: 0;
  }
  .overview-columns {
    grid-template-columns: 1fr;
  }
  .inbox-v2 {
    grid-template-columns: 1fr;
  }
  .inbox-v2 > aside {
    position: static;
    display: flex;
    gap: 7px;
    overflow-x: auto;
  }
  .inbox-v2 > aside > .eyebrow {
    display: none;
  }
  .inbox-v2 > aside > button {
    flex: 0 0 180px;
    border: 1px solid var(--ink);
    padding: 11px;
  }
  .assistant-editor-form,
  .share-panel,
  .workspace-settings {
    grid-template-columns: 1fr;
  }
  .editor-save {
    grid-column: 1;
  }
  .share-panel > iframe {
    height: 620px;
  }
  .assistant-tabs {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
  }
  .workspace-response .response-context {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .workspace-header {
    position: relative;
    min-height: 150px;
    padding: 26px 18px 22px;
    align-items: flex-start;
  }
  .workspace-header h1 {
    font-size: 42px;
    letter-spacing: -2.5px;
  }
  .workspace-header > div > p:last-child {
    max-width: 68%;
    font-size: 10px;
  }
  .workspace-header > .primary {
    position: absolute;
    right: 18px;
    top: 88px;
    padding: 11px 12px;
    font-size: 7px;
  }
  .workspace-main > #workspace-screen {
    padding: 20px 12px 30px;
  }
  .workspace-stats {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-stats article {
    padding: 17px;
  }
  .workspace-stats b {
    font-size: 38px;
    margin-top: 22px;
  }
  .control-map > header {
    padding: 25px;
  }
  .control-map > header h2 {
    font-size: 35px;
  }
  .control-flow {
    grid-template-columns: 1fr;
  }
  .control-flow article {
    min-height: auto;
    border-left: 0;
    border-bottom: 1px solid #404040 !important;
  }
  .control-flow article:last-child {
    border-bottom: 0 !important;
  }
  .overview-row {
    grid-template-columns: 75px 1fr;
  }
  .overview-row time {
    display: none;
  }
  .assistant-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }
  .assistant-card-v2 {
    min-height: 285px;
  }
  .assistant-card-v2 h2 {
    margin-top: 20px;
  }
  .people-intro {
    grid-template-columns: 1fr;
  }
  .people-intro h2 {
    font-size: 36px;
  }
  .assistant-editor-head {
    align-items: flex-start;
  }
  .assistant-editor-head > div {
    display: grid;
    grid-template-columns: auto auto;
  }
  .assistant-delete {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .assistant-tabs {
    margin-top: 18px;
  }
  .assistant-editor-form > section {
    padding: 20px;
  }
  .capability-picker {
    grid-template-columns: 1fr;
  }
  .capability-picker label {
    border-right: 0;
    border-bottom: 1px solid var(--ink) !important;
  }
  .capability-picker label:last-child {
    border-bottom: 0 !important;
  }
  .safety-summary {
    grid-template-columns: 1fr;
  }
  .safety-summary b {
    grid-row: auto;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendar-toolbar > div {
    width: 100%;
  }
  .calendar-toolbar h2 {
    font-size: 24px;
    margin-left: auto;
  }
  .calendar-toolbar label {
    width: 100%;
  }
  .calendar-toolbar select {
    width: 100%;
  }
  .calendar-layout {
    border-left: 0;
    border-right: 0;
  }
  .calendar-month {
    overflow-x: auto;
  }
  .calendar-month > header,
  .calendar-days {
    min-width: 720px;
  }
  .calendar-side {
    display: block;
  }
  .calendar-day {
    min-height: 110px;
  }
  .inbox-v2 > section {
    border-left: 0;
    border-right: 0;
  }
  .inbox-table-head {
    display: none;
  }
  .inbox-row {
    grid-template-columns: 64px 1fr 70px;
    gap: 9px;
    padding: 13px 10px;
  }
  .inbox-row > p {
    grid-column: 2/-1;
  }
  .inbox-row > span:nth-child(4) {
    display: none;
  }
  .inbox-row em {
    text-align: right;
  }
  .workspace-settings > section,
  .workspace-settings > aside {
    padding: 21px;
  }
  .share-panel > section {
    padding: 21px;
  }
  .share-panel h2 {
    font-size: 37px;
  }
  .share-panel > iframe {
    height: 570px;
  }
  .v2-onboard {
    grid-template-columns: 1fr;
  }
  .v2-onboard > aside {
    display: none;
  }
  .onboard > main > section {
    padding: 30px 18px;
  }
  .onboard-form > h1 {
    font-size: 48px;
    letter-spacing: -3px;
  }
  .people-modal,
  .appointment-modal,
  .appointment-detail,
  .delete-modal {
    padding: 27px 20px;
  }
  .workspace-response .response-context {
    grid-template-columns: 1fr;
  }
  .workspace-response .response-context > div + div {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .workspace-login h1 {
    font-size: 54px;
  }
  .color-setting {
    grid-template-columns: 1fr 45px 75px;
  }
}
.startup-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: start;
  padding: 30px;
  background: var(--paper);
}
.startup-error > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: 1px solid var(--ink);
  font-size: 20px;
  font-weight: 900;
}
.startup-error > .eyebrow {
  margin: 35px 0 0;
}
.startup-error h1 {
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -4px;
  font-weight: 500;
  margin: 20px 0;
}
.startup-error > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.6;
}
.startup-error > div {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}
.startup-error > div > button:last-child {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 13px 17px;
  font: 700 8px monospace;
  cursor: pointer;
}

/* People, places, and flexible routing */
.directory-choice > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.directory-choice > div > button {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.directory-choice > div > button:hover {
  background: var(--acid);
}
.directory-choice > div span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  font: 700 9px monospace;
}
.directory-choice > div b,
.directory-choice > div small {
  display: block;
}
.directory-choice > div b {
  font: 700 9px monospace;
  margin-top: 38px;
}
.directory-choice > div small {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 7px;
}
.people-modal select,
.people-modal textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  margin-top: 6px;
}
.assignee-checklist {
  border: 1px solid var(--ink);
  padding: 0;
  margin: 20px 0 0;
  background: #fff;
}
.assignee-checklist > legend {
  padding: 0 8px;
  font: 700 8px monospace;
  letter-spacing: 0.8px;
}
.assignee-options {
  display: grid;
  max-height: 220px;
  overflow: auto;
}
.assignee-options > label {
  display: grid !important;
  grid-template-columns: 18px 10px 1fr;
  gap: 10px;
  align-items: center;
  margin: 0 !important;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.assignee-options > label:first-child {
  border-top: 0;
}
.assignee-options input {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.assignee-options i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--person);
  border: 1px solid var(--ink);
}
.assignee-options b,
.assignee-options small {
  display: block;
}
.assignee-options b {
  font:
    600 10px Arial,
    Helvetica,
    sans-serif;
}
.assignee-options small {
  font:
    400 8px Arial,
    Helvetica,
    sans-serif;
  color: var(--muted);
  margin-top: 3px;
}
.checklist-empty {
  margin: 0;
  padding: 14px;
  font-size: 10px;
  color: var(--muted);
}
.field-help {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  color: var(--muted);
}
.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.directory-actions button {
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: #fff;
  font: 700 8px monospace;
  cursor: pointer;
}
.directory-actions button:last-child {
  background: var(--acid);
}
.people-intro > div:last-child > p {
  max-width: 480px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.directory-section {
  margin-top: 30px;
}
.directory-section > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ink);
}
.directory-section > header p {
  margin: 0;
}
.directory-section > header span {
  font: 700 8px monospace;
}
.calendar-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 20px;
}
.calendar-resource-card {
  min-height: 245px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.calendar-resource-card:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}
.calendar-resource-card header {
  display: flex;
  justify-content: space-between;
}
.calendar-resource-card header > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--calendar);
  border: 1px solid var(--ink);
  font-weight: 900;
}
.calendar-resource-card header em {
  font: 700 7px monospace;
  font-style: normal;
}
.calendar-resource-card h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.45px;
  margin: 38px 0 6px;
}
.calendar-resource-card > p {
  font-size: 11px;
  color: var(--muted);
}
.calendar-resource-card > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.calendar-resource-card footer {
  display: flex;
  gap: 13px;
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font: 700 7px monospace;
}
.directory-empty {
  grid-column: 1/-1;
  padding: 45px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}
.calendar-people-label {
  margin-top: 25px !important;
}
.calendar-empty {
  display: block;
  padding: 12px 0;
  color: var(--muted);
}
.response-assignees .assignee-options {
  max-height: 120px;
}
.workspace-response .save-response-assignees {
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font: 700 7px monospace;
  cursor: pointer;
}

/* Slightly looser display typography */
.auth-page h1,
.workspace-login h1 {
  letter-spacing: -3px;
}
.workspace-header h1 {
  letter-spacing: -1.2px;
}
.control-map > header h2 {
  letter-spacing: -1.2px;
}
.assistant-card-v2 h2,
.person-card h3 {
  letter-spacing: -0.45px;
}
.people-intro h2,
.share-panel h2,
.workspace-settings h3 {
  letter-spacing: -1.1px;
}
.assistant-editor-form > section > h3,
.assistant-review-card h2,
.people-modal h2,
.appointment-modal h2,
.appointment-detail h2,
.delete-modal h2 {
  letter-spacing: -0.8px;
}
.onboard-form > h1,
.startup-error h1 {
  letter-spacing: -1.8px;
}
.assistant-mini-preview main > h3 {
  letter-spacing: -1px;
}

@media (max-width: 1180px) {
  .calendar-resource-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .directory-choice > div,
  .calendar-resource-grid {
    grid-template-columns: 1fr;
  }
  .directory-choice > div > button {
    min-height: 140px;
  }
  .people-intro > div:last-child {
    margin-top: 10px;
  }
  .directory-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .workspace-header h1 {
    letter-spacing: -1px;
  }
  .onboard-form > h1 {
    letter-spacing: -1.5px;
  }
}

/* Multiple workspace layer */
.workspace-switcher {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 5px;
  margin-top: 30px;
  padding: 12px;
  border: 1px solid #454545;
  background: #1b1b1b;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.workspace-switcher:hover {
  border-color: var(--acid);
}
.workspace-switcher small,
.workspace-switcher b {
  display: block;
  grid-column: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-switcher small {
  font: 700 7px monospace;
  color: #737373;
  letter-spacing: 1px;
}
.workspace-switcher b {
  font-size: 10px;
  margin-top: 4px;
}
.workspace-switcher em {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  color: var(--acid);
  font-style: normal;
  text-align: center;
}
.workspace-nav nav {
  margin-top: 24px;
}
.workspace-picker-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 35px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--acid);
}
.workspace-picker-modal h2 {
  font-size: 42px;
  line-height: 0.98;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 27px 0 14px;
}
.workspace-picker-list {
  display: grid;
  margin-top: 25px;
  border: 1px solid var(--ink);
}
.workspace-picker-list > button {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.workspace-picker-list > button:last-child {
  border-bottom: 0;
}
.workspace-picker-list > button:hover,
.workspace-picker-list > button.active {
  background: var(--acid);
}
.workspace-picker-list > button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--workspace-color);
  border: 1px solid var(--ink);
  font: 800 10px monospace;
}
.workspace-picker-list b,
.workspace-picker-list small {
  display: block;
}
.workspace-picker-list b {
  font-size: 12px;
}
.workspace-picker-list small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.workspace-picker-list em {
  font: 700 7px monospace;
  font-style: normal;
}
.workspace-picker-modal > .primary {
  width: 100%;
  margin-top: 18px;
}
.workspace-settings textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  margin-top: 6px;
  resize: vertical;
}
.workspace-settings-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  border: 0 !important;
  gap: 7px;
}
.workspace-settings-actions button {
  padding: 11px;
  border: 1px solid var(--ink);
  background: #fff;
  font: 700 8px monospace;
  cursor: pointer;
}
.workspace-settings-actions button:last-child {
  background: var(--acid);
}

@media (max-width: 900px) {
  .workspace-switcher {
    width: min(250px, 36vw);
    margin: 0 12px;
  }
  .workspace-switcher small {
    display: none;
  }
  .workspace-switcher b {
    margin: 0;
  }
  .workspace-switcher em {
    grid-row: 1;
  }
  .workspace-picker-modal {
    padding: 28px 22px;
  }
}
@media (max-width: 650px) {
  .workspace-brand > b {
    display: none;
  }
  .workspace-switcher {
    width: min(220px, 55vw);
    margin: 0 8px;
  }
  .workspace-user > span {
    display: none;
  }
  .workspace-user {
    grid-template-columns: 24px;
  }
  .workspace-picker-list > button {
    grid-template-columns: 38px 1fr;
  }
  .workspace-picker-list > button > span {
    width: 36px;
    height: 36px;
  }
  .workspace-picker-list > button > em {
    display: none;
  }
  .workspace-settings-actions {
    grid-template-columns: 1fr;
  }
}

/* Workspace accounts, authority, and compact help */
.info-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font:
    700 8px Arial,
    Helvetica,
    sans-serif;
  font-style: normal;
  text-transform: none;
  cursor: help;
  vertical-align: middle;
}
.info-mark:after {
  content: attr(data-tip);
  position: absolute;
  left: 20px;
  top: -8px;
  z-index: 30;
  width: 240px;
  padding: 11px 12px;
  background: var(--ink);
  color: #fff;
  border: 1px solid #555;
  box-shadow: 4px 4px 0 var(--acid);
  font:
    400 10px/1.5 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition: 0.12s;
}
.info-mark:hover:after,
.info-mark:focus:after {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.workspace-settings-v2 {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(440px, 1.22fr);
  gap: 20px;
}
.workspace-settings-card {
  min-width: 0;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 28px;
}
.workspace-settings-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ink);
}
.workspace-settings-card > header > .eyebrow {
  margin: 0;
}
.workspace-settings-card > header > span {
  font: 700 8px monospace;
}
.workspace-settings-card label {
  display: block;
  margin-top: 18px;
  font: 700 8px monospace;
  letter-spacing: 0.8px;
}
.workspace-settings-card input,
.workspace-settings-card select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  margin-top: 6px;
}
.workspace-settings-card input:disabled,
.workspace-settings-card select:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}
.workspace-settings-card form > .primary {
  width: 100%;
  margin-top: 24px;
}
.access-list {
  border: 1px solid var(--ink);
  margin-top: 20px;
}
.access-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 110px 26px;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.access-row:last-child {
  border-bottom: 0;
}
.access-row > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: 1px solid var(--ink);
  font-weight: 800;
}
.access-row.pending > span {
  background: var(--paper);
}
.access-row b,
.access-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.access-row b {
  font-size: 10px;
}
.access-row small {
  font: 700 7px monospace;
  color: var(--muted);
  margin-top: 4px;
}
.access-row select {
  margin: 0;
  padding: 8px;
  font: 700 8px monospace;
}
.access-row em {
  font: 700 8px monospace;
  font-style: normal;
  text-align: right;
}
.access-row > button {
  width: 25px;
  height: 25px;
  border: 1px solid var(--ink);
  background: #fff;
  cursor: pointer;
}
.invite-member-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 84px;
  gap: 7px;
  margin-top: 12px;
}
.invite-member-form input,
.invite-member-form select {
  margin: 0;
}
.invite-member-form button {
  border: 1px solid var(--ink);
  background: var(--acid);
  font: 700 8px monospace;
  cursor: pointer;
}
.workspace-settings-footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
.workspace-settings-footer > span {
  font: 700 8px monospace;
}
.workspace-settings-footer > div {
  display: flex;
  gap: 7px;
}
.workspace-settings-footer button {
  padding: 9px 11px;
  border: 1px solid #666;
  background: transparent;
  color: #fff;
  font: 700 8px monospace;
  cursor: pointer;
}
.workspace-settings-footer button:last-child {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

@media (max-width: 1000px) {
  .workspace-settings-v2 {
    grid-template-columns: 1fr;
  }
  .workspace-settings-footer {
    grid-column: 1;
  }
}
@media (max-width: 650px) {
  .info-mark:after {
    left: auto;
    right: -8px;
    top: 22px;
    width: min(250px, 75vw);
  }
  .workspace-settings-card {
    padding: 20px;
  }
  .access-row {
    grid-template-columns: 34px minmax(0, 1fr) 88px 24px;
  }
  .invite-member-form {
    grid-template-columns: 1fr 105px;
  }
  .invite-member-form button {
    grid-column: 1/-1;
    padding: 11px;
  }
  .workspace-settings-footer {
    align-items: flex-start;
    gap: 12px;
  }
  .workspace-settings-footer > div {
    display: grid;
  }
  .workspace-settings-footer button {
    white-space: nowrap;
  }
}

/* Workspace access and admin controls */
.workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-header-actions > .primary {
  white-space: nowrap;
}
.workspace-member-button {
  min-width: 78px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  background: #fff;
  cursor: pointer;
}
.workspace-member-button:hover {
  background: var(--acid);
}
.workspace-member-button > span {
  display: flex;
  padding-left: 7px;
}
.workspace-member-button i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font: 800 7px monospace;
  font-style: normal;
}
.workspace-member-button em {
  min-width: 18px;
  font: 700 8px monospace;
  font-style: normal;
}
.workspace-members-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--acid);
}
.workspace-members-modal h2 {
  margin: 28px 0 10px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 500;
}
.workspace-members-modal > div {
  margin-top: 24px;
  border: 1px solid var(--ink);
  background: #fff;
}
.workspace-members-modal article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.workspace-members-modal article:last-child {
  border-bottom: 0;
}
.workspace-members-modal article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-weight: 800;
}
.workspace-members-modal article b,
.workspace-members-modal article small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-members-modal article b {
  font-size: 11px;
}
.workspace-members-modal article small {
  margin-top: 4px;
  color: var(--muted);
  font: 700 7px monospace;
}
.workspace-members-modal article em {
  font: 700 8px monospace;
  font-style: normal;
}
.workspace-members-modal > .primary {
  width: 100%;
  margin-top: 18px;
}
.member-empty {
  margin: 0;
  padding: 22px;
  color: var(--muted);
  font-size: 11px;
}
.workspace-danger-zone {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid #9b2f22;
  background: #fff3f0;
}
.workspace-danger-zone p,
.workspace-danger-zone b,
.workspace-danger-zone small {
  display: block;
  margin: 0;
}
.workspace-danger-zone b {
  margin-top: 10px;
  font-size: 12px;
}
.workspace-danger-zone small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.workspace-danger-zone button,
.delete-response {
  border: 1px solid #9b2f22;
  background: #fff;
  color: #8a1f18;
  padding: 11px 13px;
  font: 700 8px monospace;
  white-space: nowrap;
  cursor: pointer;
}
.response-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.workspace-delete-modal .delete-error {
  min-height: 16px;
  color: #8a1f18;
  font-size: 10px;
}

@media (max-width: 700px) {
  .workspace-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .workspace-member-button {
    min-width: 64px;
  }
  .workspace-danger-zone {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column;
  }
  .workspace-danger-zone button {
    width: 100%;
  }
  .workspace-members-modal {
    padding: 28px 20px;
  }
  .response-actions > button {
    width: 100%;
  }
}
