:root {
  --navy: #15263b;
  --ink: #172a40;
  --muted: #6d7988;
  --bg: #f6f7f9;
  --border: #e3e7ec;
  --blue: #0b5cad;
  --accent: #d5e6f7;
  --green: #186c51;
  --radius: 12px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  opacity: 0.87;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -1.15px;
  font-weight: 650;
  margin-bottom: 12px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.35;
  font-weight: 620;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.25px;
}
p {
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: #667d97;
  margin-bottom: 15px;
}
.sidebar {
  position: fixed;
  width: 244px;
  height: 100dvh;
  background: var(--navy);
  color: white;
  padding: 38px 24px 22px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin-bottom: 55px;
}
.brand-mark {
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: 500;
  border: 1px solid #587089;
  width: 44px;
  height: 44px;
  justify-content: center;
  border-radius: 11px;
}
.brand-mark span {
  color: #97bde6;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 3.1px;
  color: #aab9ca;
  margin-top: -2px;
}
.sidebar-label {
  font-size: 9px;
  color: #92a4b9;
  letter-spacing: 1.4px;
  margin-bottom: 15px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c5d0dd;
  padding: 12px 13px;
  border-radius: 7px;
  font-size: 13px;
}
.sidebar nav a span {
  font-size: 20px;
  line-height: 1;
}
.sidebar nav a.active {
  background: #ffffff12;
  color: white;
  border: 1px solid #ffffff13;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 9px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #ffffff15;
}
.avatar {
  background: #c9dfed;
  color: #25405b;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 650;
}
.sidebar-bottom strong {
  display: block;
  font-size: 11px;
}
.sidebar-bottom small {
  display: block;
  font-size: 9px;
  color: #a3b2c5;
}
.sidebar-bottom form {
  margin-left: auto;
}
.icon-button {
  background: none;
  border: 0;
  color: #c5d0dd;
  font-size: 20px;
  padding: 5px;
}
.main-wrap {
  margin-left: 244px;
}
.topbar {
  height: 77px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7c8794;
}
.topbar strong {
  color: #405167;
  font-weight: 500;
}
.slash {
  padding: 0 13px;
  color: #c3cbd3;
}
.top-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.top-status i {
  height: 6px;
  width: 6px;
  background: #4f967c;
  border-radius: 50%;
}
.main {
  padding: 42px;
  max-width: 1500px;
  margin: auto;
  min-height: calc(100dvh - 150px);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 34px;
}
.page-head .muted {
  font-size: 13px;
  margin: 0;
}
.button {
  border: 1px solid transparent;
  background: var(--blue);
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 11px 16px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  transition: 0.15s;
}
.button:hover {
  background: #084b91;
  opacity: 1;
  transform: translateY(-1px);
}
.button.secondary {
  border-color: #d6dfe8;
  color: #314963;
  background: white;
}
.button.secondary:hover {
  background: #f3f6fa;
}
.button.small {
  padding: 7px 11px;
  font-size: 11px;
}
.button.wide {
  width: 100%;
  padding: 13px;
}
.text-button {
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
}
.danger {
  color: #ac3e3e !important;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 23px 25px;
}
.stat p {
  font-size: 11px;
  color: #738092;
  margin-bottom: 12px;
}
.stat strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 550;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.stat small {
  color: #8a95a2;
  font-size: 10px;
}
.stat .status-word {
  font-size: 28px;
}
.welcome-banner {
  background: #e8eef5;
  padding: 34px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #dae3ed;
  border-radius: var(--radius);
  min-height: 198px;
  overflow: hidden;
  margin-bottom: 34px;
}
.welcome-banner h2 {
  font:
    29px/1.2 Georgia,
    serif;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.welcome-banner p:last-child {
  font-size: 12px;
  color: #66798f;
  margin-bottom: 0;
}
.banner-art {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 10px;
  transform: rotate(-9deg);
}
.banner-art span:first-child {
  font-size: 100px;
  color: #325e89;
  line-height: 1;
}
.banner-art span:last-child {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: #c6d6e8;
  border-radius: 50%;
  font-size: 40px;
  color: #345977;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: 18px;
  margin-bottom: 0;
}
.section-head a {
  font-size: 11px;
}
.section-head p {
  font-size: 12px;
  margin: 7px 0 0;
}
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.site-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: white;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}
.site-card:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #19324a09;
}
.site-preview {
  height: 185px;
  background: #f3f4f4;
  padding: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  font-size: 7px;
  border-bottom: 1px solid #0000000d;
  padding-bottom: 10px;
}
.mini-nav b {
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
}
.mini-nav span {
  font-size: 5px;
  white-space: nowrap;
}
.mini-content {
  position: relative;
  z-index: 1;
  max-width: 64%;
  margin-top: 23px;
}
.mini-content small {
  display: block;
  font-size: 5px;
  letter-spacing: 1px;
  color: var(--site-color);
  margin-bottom: 9px;
}
.mini-content strong {
  display: block;
  font:
    21px/1.05 Georgia,
    serif;
  letter-spacing: -0.5px;
  max-height: 65px;
  overflow: hidden;
}
.mini-button {
  display: inline-block;
  background: var(--site-color);
  color: white;
  font-size: 5px;
  padding: 6px 9px;
  margin-top: 9px;
  border-radius: 2px;
}
.mini-shape {
  position: absolute;
  background: var(--site-color);
  opacity: 0.25;
  right: 13px;
  bottom: 12px;
  width: 31%;
  height: 110px;
  border-radius: 50% 50% 3px 3px;
  z-index: 0;
}
.mini-shape:after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #ffffffbb;
  border-radius: 50%;
}
.site-card-body {
  padding: 19px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.site-card h3 {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
  line-height: 1.3;
}
.site-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0 20px;
}
.site-card p span {
  padding: 0 5px;
}
.site-card small {
  font-size: 8px;
  color: #7b8c9d;
}
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 550;
  border-radius: 4px;
  padding: 4px 7px;
  background: #edf1f5;
  color: #5e7084;
  white-space: nowrap;
}
.badge.success {
  background: #e6f3ed;
  color: var(--green);
}
.panel {
  background: white;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
}
.panel h2 {
  margin-bottom: 15px;
}
.panel p {
  font-size: 13px;
  line-height: 1.7;
}
.panel.compact {
  align-self: start;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.form-panel {
  max-width: 800px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}
/* Stacked page blocks (panels, two-column rows, section headings) keep a
   consistent gap; cards inside a grid row are spaced by the grid's gap. */
.panel + .panel,
.panel + .two-col,
.two-col + .panel,
.two-col + .two-col,
.panel + .section-head,
.two-col + .section-head {
  margin-top: 24px;
}
.two-col > .panel + .panel {
  margin-top: 0;
}
.customer-columns {
  grid-template-columns: 1.4fr 1fr;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.url-box {
  background: #f4f7fa;
  padding: 14px;
  border: 1px solid #e3eaf1;
  border-radius: 5px;
  color: #5b7086;
  font-size: 12px;
  margin: 20px 0;
  word-break: break-all;
}
.detail-line {
  border-top: 1px solid #edf0f3;
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.detail-line span {
  color: var(--muted);
}
.detail-line strong {
  font-weight: 500;
}
/* Account → Business hours: one row per day — label, Closed, open, close. */
.detail-line[data-day] {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.detail-line[data-day] > span {
  flex: 0 0 40px;
}
.detail-line[data-day] > .check-label {
  flex: none;
  margin: 0;
}
.detail-line[data-day] > input {
  flex: 1 1 130px;
  width: auto;
  margin-top: 0;
  min-width: 0;
}
.space-top {
  margin-top: 28px;
}
.space-bottom {
  margin-bottom: 28px;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  border: 1px dashed #ccd5df;
  background: #ffffff80;
  border-radius: var(--radius);
}
.empty-icon {
  font-size: 32px;
  color: #8ca0b7;
  display: block;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 20px;
  font-family: Georgia, serif;
  font-weight: 400;
}
.empty p {
  font-size: 12px;
  max-width: 450px;
  margin: 0 auto;
}
.selectable {
  color: inherit;
}
.selectable h2 {
  margin-top: 20px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #43536a;
  margin-bottom: 19px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: white;
  border: 1px solid #d4dce5;
  border-radius: 5px;
  padding: 11px 12px;
  color: #1a2e45;
  margin-top: 7px;
  font-size: 13px;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #bfd6f0;
  border-color: #4785c4;
}
input::placeholder,
textarea::placeholder {
  color: #9aa5b1;
  font-size: 12px;
}
input[type="color"] {
  height: 43px;
  padding: 4px;
  max-width: 100px;
}
/* Radios and checkboxes stay plain native controls: the text-field rules
   above (full width, border, padding, the focus box) never apply to them.
   Keyboard focus still shows a ring. */
input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  vertical-align: middle;
  accent-color: var(--blue);
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none;
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid #4785c4;
  outline-offset: 2px;
}
label:not([class]) > input[type="checkbox"]:first-child,
label:not([class]) > input[type="radio"]:first-child {
  margin-right: 8px;
}
label small {
  display: block;
  font-weight: 400;
  color: #8a96a4;
  font-size: 10px;
  margin-top: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-label input {
  width: auto;
  margin: 0;
}
/* B21 (D-29(6)): the SMS opt-in — its own box, its disclosure beside it. */
.check-label.sms-optin {
  align-items: flex-start;
}
.check-label.sms-optin input {
  margin-top: 3px;
}
/* D-227: the Canadian Pro sign-up's marketing opt-in. */
.check-label.marketing-optin {
  align-items: flex-start;
  font-weight: 400;
}
.check-label.marketing-optin input {
  margin-top: 3px;
}
.optin-disclosure {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.consent-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.site-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}
.site-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
.site-heading h1 {
  font-size: 28px;
  margin: 0;
}
.site-monogram {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  color: white;
  font:
    30px Georgia,
    serif;
}
.push-right {
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow: auto;
}
.tabs a {
  color: #718195;
  padding: 14px 0;
  font-size: 12px;
  white-space: nowrap;
}
.tabs a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  font-weight: 600;
}
.chat-shell {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.messages {
  max-height: 510px;
  min-height: 320px;
  overflow: auto;
  padding: 28px;
  scrollbar-width: thin;
}
.message {
  display: flex;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid #eef1f5;
}
.message:last-child {
  border: 0;
}
.message-avatar {
  background: #edf2f8;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
  font-size: 12px;
}
.assistant-message .message-avatar {
  background: #f4e8f6;
  color: #86198f;
  font-size: 20px;
}
.message-main {
  flex: 1;
  min-width: 0;
}
.message .row strong {
  font-size: 11px;
}
.message time {
  font-size: 9px;
  color: #93a0ae;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #4c5c70;
  line-height: 1.8;
  margin: 9px 0 0;
}
.conversation-empty {
  padding: 40px 15px;
  text-align: center;
  max-width: 420px;
  margin: auto;
}
.conversation-empty > span {
  display: block;
  font-size: 35px;
  color: #8b68a1;
  margin-bottom: 15px;
}
.conversation-empty h3 {
  font:
    24px Georgia,
    serif;
}
.conversation-empty p {
  font-size: 12px;
  color: #8a96a4;
}
.chat-compose {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #fbfcfd;
}
.chat-compose textarea {
  margin: 0 0 12px;
}
.chat-compose small {
  font-size: 9px;
  color: #8a96a4;
}
.chat-compose > form + form {
  margin-top: 15px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}
.inline-help {
  margin-left: 10px;
}
.file-icon {
  width: 45px;
  height: 45px;
  background: #edf2f9;
  color: #496988;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 18px;
}
.artifact-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.artifact-row {
  display: flex;
  gap: 17px;
  padding: 20px 24px;
  color: inherit;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.artifact-row:last-child {
  border: 0;
}
.artifact-row strong {
  font-size: 12px;
}
.artifact-row small {
  display: block;
  font-size: 10px;
  color: #8a96a4;
  margin-top: 4px;
}
.artifact-row .badge {
  margin-left: auto;
}
.artifact-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 22px;
}
.preview-frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.preview-toolbar {
  background: #eef1f5;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.preview-toolbar i {
  height: 6px;
  width: 6px;
  background: #bec9d5;
  border-radius: 50%;
}
.preview-toolbar span {
  margin-left: 10px;
  font-size: 9px;
  color: #8391a1;
}
.preview-frame iframe {
  width: 100%;
  height: 530px;
  border: 0;
  display: block;
}
.code-editor {
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  background: #f9fafc;
  tab-size: 2;
  white-space: pre;
}
.version-panel {
  padding: 20px;
  align-self: start;
}
.version-link {
  display: block;
  padding: 14px 10px;
  border-bottom: 1px solid #edf0f5;
  color: #62768c;
  border-radius: 5px;
}
.version-link.active {
  background: #edf3fa;
}
.version-link strong {
  font-size: 11px;
}
.version-link small {
  font-size: 9px;
  display: block;
  margin-top: 6px;
  color: #8b98a6;
}
.back-link {
  display: block;
  margin-bottom: 15px;
}
.notice {
  background: #edf5ff;
  border: 1px solid #d1e1f4;
  padding: 14px 17px;
  border-radius: 6px;
  color: #476786;
  font-size: 11px;
  margin-bottom: 22px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #8d99a7;
  background: #fafbfd;
  font-weight: 600;
}
td,
th {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e9edf2;
  vertical-align: top;
}
tbody tr:last-child td {
  border: 0;
}
td small {
  display: block;
  color: #8c99a6;
  font-size: 9px;
  margin-top: 5px;
}
td select {
  padding: 5px;
  margin: 0;
  min-width: 90px;
}
.table-scroll {
  overflow-x: auto;
}
.weekdays {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.weekdays label {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: 11px;
}
.weekdays input {
  width: auto;
  margin: 0;
}
.customer-card .site-monogram {
  margin-bottom: 20px;
}
.customer-card strong {
  font-size: 12px;
}
.customer-card h2 {
  font-size: 20px;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
footer {
  max-width: 1500px;
  margin: auto;
  padding: 25px 42px;
  border-top: 1px solid var(--border);
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #8d99a7;
  display: flex;
  justify-content: space-between;
}
footer span {
  letter-spacing: 0;
}
.plain-main {
  min-height: calc(100dvh - 64px);
}
.auth-grid {
  min-height: calc(100dvh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-story {
  padding: 55px 13%;
  background: #192d43;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-story:after {
  content: "";
  position: absolute;
  bottom: -160px;
  right: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  box-shadow:
    0 0 0 60px #ffffff04,
    0 0 0 120px #ffffff03;
  pointer-events: none;
}
.wordmark {
  position: absolute;
  top: 45px;
  left: 13%;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  color: white;
}
.wordmark span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  font-weight: 400;
  color: #90adc8;
}
.auth-story h1 {
  font:
    clamp(40px, 4.5vw, 64px)/1.07 Georgia,
    serif;
  letter-spacing: -2px;
  margin-bottom: 25px;
}
.auth-story .eyebrow {
  color: #91aac4;
  margin-top: 60px;
}
.auth-story p:not(.eyebrow) {
  font-size: 14px;
  color: #aabccd;
  line-height: 1.9;
}
.story-bottom {
  position: absolute;
  bottom: 45px;
  font-size: 10px;
  color: #8ba1b9;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 50px;
}
.auth-card {
  width: 100%;
  max-width: 370px;
}
.auth-card h2 {
  font:
    32px/1.2 Georgia,
    serif;
  letter-spacing: -0.8px;
}
.auth-card > .muted {
  font-size: 12px;
  margin-bottom: 30px;
}
.auth-note {
  font-size: 10px;
  color: #8a96a4;
  margin-top: 25px;
}
.standalone {
  max-width: 700px;
  margin: 80px auto;
}
.public-header {
  padding: 22px 5%;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid var(--border);
}
.public-logo {
  font:
    24px Georgia,
    serif;
  color: var(--ink);
}
.public-header > span {
  font-size: 12px;
  color: var(--muted);
  margin-right: auto;
}
.public-site-frame {
  width: 100%;
  height: 1000px;
  border: 0;
  display: block;
  background: #faf9f6;
}
.public-contact {
  padding: 65px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  background: white;
  border-top: 1px solid var(--border);
}
.public-contact h2 {
  font:
    40px/1.15 Georgia,
    serif;
}
.public-contact p {
  font-size: 13px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 450px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: #fff4f1;
  color: #9c352a;
  border: 1px solid #f0c2b8;
  padding: 20px;
  box-shadow: 0 10px 40px #0002;
  border-radius: 8px;
  z-index: 100;
  font-size: 13px;
}
.htmx-request button {
  opacity: 0.5;
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .site-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-preview {
    height: 220px;
  }
  .mini-content strong {
    font-size: 26px;
  }
  .mini-shape {
    height: 140px;
  }
}
@media (max-width: 1150px) {
  .main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .sidebar {
    width: 210px;
    padding: 30px 18px;
  }
  .main-wrap {
    margin-left: 210px;
  }
  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col,
  .customer-columns {
    grid-template-columns: 1fr;
  }
  .banner-art {
    padding: 0;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head > .button {
    font-size: 10px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 20px;
  }
  .artifact-workspace {
    grid-template-columns: minmax(0, 1fr) 170px;
  }
  .top-status {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: auto;
    height: auto;
    padding: 15px 20px;
    display: block;
  }
  .brand {
    margin: 0;
    font-size: 18px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }
  .brand-sub {
    font-size: 7px;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    overflow: auto;
  }
  .sidebar nav a {
    padding: 7px 10px;
    font-size: 10px;
    white-space: nowrap;
  }
  .sidebar nav a span {
    font-size: 15px;
  }
  .main-wrap {
    margin: 0;
  }
  .main {
    padding: 26px 20px;
  }
  .topbar {
    padding: 0 20px;
    height: 48px;
  }
  .page-head {
    display: block;
    margin-bottom: 25px;
  }
  .page-head > .button {
    margin-top: 18px;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:last-child {
    grid-column: 1/-1;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 30px;
  }
  .stat p {
    font-size: 10px;
  }
  .welcome-banner {
    padding: 25px;
  }
  .welcome-banner h2 {
    font-size: 25px;
  }
  .banner-art {
    display: none;
  }
  .site-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .mini-nav span {
    display: none;
  }
  .site-preview {
    height: 165px;
    padding: 12px;
  }
  .mini-content strong {
    font-size: 18px;
  }
  .mini-content {
    max-width: 75%;
  }
  .mini-shape {
    opacity: 0.15;
  }
  .site-card-body {
    padding: 14px;
  }
  .site-card-body > .row:last-child > small {
    display: none;
  }
  .site-card h3 {
    font-size: 11px;
  }
  .site-card p {
    font-size: 9px;
  }
  .panel {
    padding: 22px;
  }
  .panel.flush {
    padding: 0;
  }
  .site-heading {
    flex-wrap: wrap;
  }
  .site-heading h1 {
    font-size: 23px;
  }
  .site-heading > .button {
    margin-left: 0;
  }
  .tabs {
    gap: 24px;
  }
  .tabs a {
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .artifact-workspace {
    grid-template-columns: 1fr;
  }
  .version-panel {
    order: -1;
    display: flex;
    gap: 8px;
    overflow: auto;
    align-items: center;
  }
  .version-panel .eyebrow {
    display: none;
  }
  .version-link {
    min-width: 120px;
    padding: 8px;
  }
  .version-link small {
    font-size: 8px;
  }
  .messages {
    padding: 16px;
    min-height: 280px;
  }
  .message time {
    font-size: 8px;
  }
  .chat-compose .row {
    align-items: flex-end;
  }
  .chat-compose .row small {
    max-width: 50%;
  }
  .inline-help {
    display: block;
    margin: 10px 0 0;
  }
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    padding: 50px 30px;
    min-height: calc(100dvh - 64px);
  }
  .auth-card {
    max-width: 420px;
  }
  .public-header {
    flex-wrap: wrap;
    padding: 20px;
  }
  .public-header > span {
    display: none;
  }
  .public-logo {
    font-size: 21px;
  }
  .public-header .button {
    font-size: 10px;
    padding: 9px 12px;
  }
  .public-header .actions {
    gap: 15px;
  }
  .public-contact {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 40px 25px;
  }
  .public-contact h2 {
    font-size: 34px;
  }
  .public-site-frame {
    height: 1200px;
  }
  .standalone {
    margin: 40px 20px;
  }
  .artifact-row {
    gap: 10px;
    padding: 15px;
  }
  .artifact-row strong {
    font-size: 11px;
  }
  .artifact-row small {
    font-size: 8px;
  }
  .file-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  footer {
    padding: 24px 20px;
    font-size: 7px;
  }
  .customer-columns .table-scroll {
    max-width: 100%;
  }
}
@media (max-width: 400px) {
  .site-grid {
    grid-template-columns: 1fr;
  }
  .site-preview {
    height: 200px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat:last-child {
    grid-column: auto;
  }
  .public-header .actions {
    width: 100%;
    justify-content: space-between;
  }
}
.mobile-signout {
  display: none;
}
@media (max-width: 760px) {
  .mobile-signout {
    display: block;
  }
  .mobile-signout .text-button {
    font-size: 10px;
  }
  .bookings-table thead {
    display: none;
  }
  .bookings-table tr {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
  }
  .bookings-table tr:last-child {
    border: 0;
  }
  .bookings-table td {
    display: block;
    border: 0;
    padding: 9px 4px;
    overflow-wrap: anywhere;
  }
  .bookings-table td[data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8d99a7;
    margin-bottom: 5px;
  }
  .bookings-table td small {
    font-size: 10px;
  }
  .bookings-table td:last-child {
    padding-bottom: 14px;
  }
  .bookings-table .text-button {
    font-size: 12px;
  }
  .public-site-frame {
    height: 1400px;
  }
}
.catalog-fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 22px 0;
}
.catalog-fieldset legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 650;
}
.catalog-fieldset .muted {
  font-size: 11px;
}
.catalog-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 15px;
}
.catalog-options .check-label {
  font-size: 11px;
}
.service-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.selectable > h2 {
  margin-top: 20px;
}
.module-assignments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.module-assignments h3 {
  margin: 0;
}
.module-assignments p {
  margin-top: 15px;
}
.module-assignments small {
  color: var(--muted);
  font-size: 10px;
}
.module-assignments label {
  margin-top: 20px;
}
.public-module {
  padding: 45px 8%;
  background: white;
  border-top: 1px solid var(--border);
}
.public-module h2 {
  font:
    32px Georgia,
    serif;
}
.public-module p {
  max-width: 850px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.catalog-fieldset input[type="checkbox"] {
  flex-shrink: 0;
}
details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}
details > .muted {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .module-assignments,
  .catalog-options {
    grid-template-columns: 1fr;
  }
  .public-module {
    padding: 35px 25px;
  }
}
.public-booking {
  width: min(700px, 100%);
  padding: 45px 24px;
  margin: 0 auto;
}
.public-booking > .public-logo {
  display: inline-block;
  margin-bottom: 35px;
}
.public-booking .page-head {
  display: block;
  margin-bottom: 25px;
}
.public-booking h1 {
  font:
    38px/1.15 Georgia,
    serif;
  letter-spacing: -1px;
}
.public-booking .panel {
  padding: 30px;
}
.public-booking .panel > h1 {
  margin-bottom: 18px;
}
.public-booking .page-head .muted {
  font-size: 14px;
  line-height: 1.7;
}
.booking-reassurance {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.booking-summary {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  margin: 25px 0;
}
.booking-summary > div + div {
  margin-top: 20px;
}
.booking-summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.booking-summary strong {
  display: block;
  font-size: 16px;
}
.booking-summary span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.optional-portal {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 22px;
  margin: 0;
}
.public-booking .optional-portal {
  padding: 22px 5px;
}
.public-booking .back-link {
  font-size: 12px;
}
@media (max-width: 760px) {
  .public-booking {
    padding: 30px 20px;
  }
  .public-booking h1 {
    font-size: 31px;
  }
  .public-booking .panel {
    padding: 23px;
  }
  .public-booking .form-grid {
    gap: 0;
  }
  .public-booking > .public-logo {
    margin-bottom: 25px;
  }
}

/* B23 (FR-73, FR-74): the bell, the bell list, and the Alerts screen. */
.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-right: 12px;
  border-radius: 50%;
  color: #405167;
}
.bell:hover,
.bell.active {
  background: var(--accent);
}
.bell-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #c2412d;
  color: white;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}
.bell-count.empty {
  display: none;
}
.bell-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bell-list li + li {
  border-top: 1px solid var(--border);
}
.bell-list a {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  color: var(--ink);
}
.bell-list li.unread a {
  background: #f3f8fe;
  box-shadow: inset 3px 0 0 var(--blue);
}
.bell-list li.read strong {
  font-weight: 500;
  color: var(--muted);
}
.alert-matrix td,
.alert-matrix th[scope="col"] {
  text-align: center;
  width: 80px;
}
.alert-matrix th[scope="row"] {
  text-align: left;
  font-weight: 500;
}
.alert-matrix input {
  width: 18px;
  height: 18px;
}
.alert-matrix .fixed-row th {
  color: var(--muted);
}
.alerts-form .inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.alerts-form fieldset {
  border: 0;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}
.notice.error {
  background: #fdf1ef;
  border-color: #f1cfc8;
  color: #8e2f1f;
}
.lead-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin-top: 18px;
}
.lead-facts dt {
  color: var(--muted);
}
.lead-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.alerts-form .panel,
#this-device {
  margin-bottom: 18px;
}

/* C13: the Lead record — thread, composer, call bridge (src/leads/record.tsx). */
.lead-record .panel + .panel {
  margin-top: 16px;
}
.lead-thread {
  max-height: 640px;
  overflow-y: auto;
}
.thread-entry[data-side="human"] .message-avatar {
  background: var(--ink, #222);
  color: #fff;
}
.thread-entry[data-side="lead"] .message-avatar {
  background: var(--surface, #f3f3f3);
}
.thread-entry[data-status="held"] .message-main p,
.thread-entry[data-status="cancelled"] .message-main p {
  opacity: 0.7;
}
.composer form {
  display: grid;
  gap: 8px;
}
.composer textarea {
  width: 100%;
  resize: vertical;
}
.composer textarea:disabled,
.composer button:disabled,
[data-call-bridge] button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
ul.plain {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.transcript summary {
  cursor: pointer;
  font-size: 12px;
}
/* C17 (FR-82): the act-as banner, on every page while acting as a Professional. */
.act-as-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  border-radius: 0;
  background: #fff6e0;
  border-color: #f0d48a;
  color: #6b4e00;
  font-size: 12px;
}
.act-as-banner form { margin: 0; }
.change-log td.when { white-space: nowrap; color: #6b7a8c; }
.change-log .status { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; }

/* B24 (FR-75; D-27): the floating product chat, lower right. */
.floating-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
}
.floating-chat > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary, #176b63);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}
.floating-chat > summary::-webkit-details-marker { display: none; }
.floating-chat[open] > summary { display: none; }
.floating-chat-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d8ded9;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 22%);
  overflow: hidden;
}
.floating-chat-panel header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e8e5;
  background: var(--surface, #f7f9f7);
}
.floating-chat-panel .messages {
  flex: 1;
  min-height: 180px;
  max-height: 330px;
  overflow-y: auto;
  padding: 12px;
}
.floating-chat-panel .chat-compose {
  border-top: 1px solid #e4e8e5;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.floating-chat-panel textarea { width: 100%; }
.chat-photo-label { font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.chat-photo { max-width: 100%; border-radius: 8px; margin-top: 8px; }
.staff-message { background: #f1f6fb; }

/* D3: a staff member's headshot (or initials SVG) in the avatar slots. */
.message-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
img.avatar.manager-photo {
  display: block;
  object-fit: cover;
}
img.avatar.manager-photo {
  flex: none;
  padding: 0;
}
.chat-av.is-staff img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* D3 (D-199): the sign-in screens use Leadpages' fonts too — Uxum Grotesque
   for headings, Roc Grotesk for everything else. */
@font-face { font-family: "Roc Grotesk"; src: url("/fonts/rocgrotesk-regular-webfont.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roc Grotesk"; src: url("/fonts/rocgrotesk-medium-webfont.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roc Grotesk"; src: url("/fonts/rocgrotesk-bold-webfont.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("/fonts/uxumregular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("/fonts/uxumbold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
body.plain,
body.plain :is(button, input, select, textarea) {
  font-family: "Roc Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.plain :is(h1, h2, h3, .wordmark) {
  font-family: "Uxum Grotesque", "Roc Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
