@font-face {
  font-family: Outfit;
  src: url("/assets/outfit-latin-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c1014;
  --panel: #12181e;
  --line: #515960;
  --soft-line: #394149;
  --text: #f4f2ed;
  --muted: #bfc5cc;
  --gold: #d5b778;
  --gold-light: #ebcea1;
  --green: #bfe4bd;
  --red: #ffb7a7;
  --amber: #ffdc9e;
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 70% 15%, #141b22, transparent 55%), var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}
button:hover,
a.button:hover {
  background: #252e36;
  border-color: #9ca4ab;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary,
a.button.primary {
  background: linear-gradient(110deg, #e7c995, #cfad6c);
  color: #12120f;
  border-color: #d7b983;
  font-weight: 600;
}
button.primary:hover,
a.button.primary:hover {
  background: #ead0a4;
}
a {
  color: var(--gold-light);
  text-underline-offset: 4px;
}
a:hover {
  color: #fff2d8;
}
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button svg,
a.button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
main:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 4px;
}
h2 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.35px;
  line-height: 1.25;
  margin-bottom: 14px;
}
h3 {
  font-size: 19px;
  font-weight: 550;
  line-height: 1.3;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
.muted,
.subtle {
  color: var(--muted);
}
.small,
.footnote {
  font-size: 13px;
}
.footnote {
  color: var(--muted);
  letter-spacing: 1px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 13px;
}
.error,
.err {
  color: var(--red);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 50;
  background: var(--gold-light);
  color: #111;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.desktop-only {
  display: initial;
}
.mobile-only {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--soft-line);
  background: #0b0f13b3;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  padding: 0 4px;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand span {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 3px;
}
.workspace-mode {
  margin: 10px 0 0 15px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.workspace-mode .pill {
  font-size: 11px;
  padding: 3px 8px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
  margin-top: 40px;
}
nav > button {
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  border-color: transparent;
  border-radius: 7px;
  min-height: 48px;
  padding: 10px 18px;
  font-size: 19px;
  font-weight: 450;
}
nav > button svg {
  width: 24px;
  height: 24px;
}
nav > button.on {
  background: linear-gradient(100deg, #776347b0, #a38a5c50);
  border-color: #9a81564d;
  color: #fff8e9;
}
nav .count {
  margin-left: auto;
  font-size: 15px;
  min-width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  color: #12120f;
  background: var(--gold-light);
  border-radius: 50%;
  padding: 0 5px;
}
nav > button[data-t="replies"],
nav > button[data-t="scheduler"] {
  display: none;
}
.mobile-more {
  margin-top: auto;
  border-top: 1px solid var(--soft-line);
  padding-top: 20px;
}
.mobile-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  color: #d8dde2;
  font-size: 18px;
  min-height: 48px;
}
.mobile-more > summary::-webkit-details-marker {
  display: none;
}
.mobile-more > summary svg {
  width: 24px;
  height: 24px;
}
.more-label-mobile {
  display: none;
}
.mobile-more > div {
  position: fixed;
  left: 14px;
  bottom: 86px;
  width: 250px;
  padding: 9px;
  border: 1px solid #757b81;
  border-radius: 10px;
  background: #171e24;
  box-shadow: 0 12px 45px #0009;
  z-index: 45;
  max-height: 75vh;
  overflow-y: auto;
}
.mobile-more > div > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border-color: transparent;
  text-align: left;
  min-height: 44px;
  font-size: 16px;
}
.runner-controls {
  border-top: 1px solid #495159;
  margin: 8px 5px 2px;
  padding-top: 12px;
  display: grid;
  gap: 7px;
}
.runner-controls .tag {
  margin: 0 8px 5px;
}
.runner-controls button {
  width: 100%;
  font-size: 14px;
  text-align: left;
  min-height: 40px;
}
.tag {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
#view {
  padding: 20px 20px 28px 24px;
  min-height: calc(100vh - 55px);
  max-width: 1900px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  margin: 0;
  font-size: 19px;
  color: var(--muted);
}
.date-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 9px;
}
.heading-note {
  font-size: 13px;
  text-align: right;
  color: var(--muted);
}
.today-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  min-height: 74px;
  margin-bottom: 21px;
}
.today-heading p {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.4;
}
.heading-search {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 3px;
  width: min(660px, 55%);
}
.heading-search .search {
  flex: 1;
}
.heading-search button {
  height: 44px;
  white-space: nowrap;
}
.search {
  position: relative;
  min-width: 0;
}
.search svg {
  position: absolute;
  left: 15px;
  top: 13px;
  width: 20px;
  height: 20px;
  stroke: var(--muted);
}
input,
select {
  border: 1px solid var(--line);
  background: #0e1419;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 13px;
  min-height: 44px;
  max-width: 100%;
}
input[type="search"] {
  width: 100%;
  padding-left: 45px;
}
select {
  font-size: 14px;
}
.heading-search input {
  font-size: 17px;
}
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  column-gap: 18px;
  row-gap: 24px;
  align-items: start;
}
.today-summary {
  grid-column: 1;
  grid-row: 1;
}
.attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.attention {
  min-height: 102px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 17px 17px;
  text-align: left;
  border: 1px solid #72777c;
  border-radius: 10px;
  background: linear-gradient(130deg, #11161b80, #0d1217cc);
  font-weight: 400;
}
.attention .icon {
  color: var(--gold-light);
  padding-top: 3px;
  flex-shrink: 0;
}
.attention.reply .icon {
  color: #acd9ac;
}
.attention.blocker .icon {
  color: #ed9583;
}
.attention .icon svg {
  width: 27px;
  height: 27px;
}
.attention-copy {
  flex: 1;
  min-width: 0;
}
.attention-title {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  white-space: nowrap;
}
.attention .number,
.attention strong {
  font-size: inherit;
  font-weight: inherit;
}
.attention small {
  display: block;
  color: #d1d4d7;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 3px;
}
.attention .arrow {
  align-self: center;
  color: var(--gold-light);
  font-size: 14px;
  white-space: nowrap;
}
.attention .arrow svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.today-pipeline {
  grid-column: 1;
  grid-row: 2;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 13px 0;
  border: 1px solid #686e74;
  border-radius: 10px;
  min-height: 84px;
  background: #10151a60;
}
.pipeline > div {
  padding: 0 20px;
  border-right: 1px solid #696e72;
}
.pipeline > div:last-child {
  border: 0;
}
.pipeline-label {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
  font-size: 14px;
}
.pipeline svg {
  width: 20px;
  height: 20px;
}
.pipeline b {
  font-size: 28px;
  font-weight: 550;
  line-height: 1.15;
  display: block;
  margin-top: 4px;
  padding-left: 32px;
}
.lead-workspace {
  grid-column: 1;
  grid-row: 3;
  margin-top: 12px;
  min-width: 0;
}
.lead-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  min-height: 44px;
}
.lead-toolbar h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 550;
  flex: 1;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lead-toolbar .filters {
  margin: 0;
  flex: 0 1 73%;
  flex-wrap: nowrap;
}
.filters .search {
  flex: 1;
  min-width: 180px;
}
.filters input {
  font-size: 16px;
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #171d23;
}
.segmented button {
  border-color: transparent;
  padding: 8px 13px;
  white-space: nowrap;
  font-size: 15px;
  min-height: 34px;
}
.segmented button.active {
  background: linear-gradient(110deg, #e3c58f, #d1ae6a);
  color: #111;
}
.today-attention {
  grid-column: 2;
  grid-row: 1 / span 4;
  border-left: 1px solid #444c53;
  padding-left: 22px;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading .small {
  color: var(--muted);
}
.today-attention .section-heading .small {
  font-size: 12px;
  white-space: nowrap;
}
.attention-list {
  display: grid;
  gap: 18px;
}
.attention-card {
  border: 1px solid #686f75;
  border-radius: 10px;
  background: linear-gradient(130deg, #141a20bb, #0d1216b0);
  padding: 18px;
  min-height: 173px;
  display: flex;
  flex-direction: column;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.card-title {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.card-title svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  color: var(--gold-light);
}
.card-title.reply svg {
  color: var(--green);
}
.card-title.alert svg {
  color: var(--red);
}
.card-top h3 {
  margin: 0;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.attention-card p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  flex: 1;
}
.attention-card > button,
.attention-card > .button {
  width: 100%;
  font-size: 16px;
  min-height: 41px;
  padding: 8px 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 14px;
  line-height: 1.4;
  color: #e1e5e9;
  background: #363e46;
  white-space: nowrap;
}
.pill svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.pill.good {
  background: #314d36a0;
  color: var(--green);
}
.pill.warn {
  background: #67512280;
  color: var(--amber);
}
.pill.bad {
  background: #673d3480;
  color: var(--red);
}
.pill.dot:before {
  content: "";
  height: 5px;
  width: 5px;
  background: currentColor;
  border-radius: 50%;
}
.safety-note {
  display: flex;
  gap: 12px;
  border-top: 1px solid #4a5158;
  margin: 30px 0 0;
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.safety-note svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(125deg, #151b21aa, #10161b99);
  border-radius: 10px;
  padding: 21px;
  margin-bottom: 18px;
  min-width: 0;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--soft-line);
}
.panel-heading h2 {
  margin: 0;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
th {
  font-weight: 450;
  font-size: 15px;
  color: #c7cdd3;
  padding: 10px 21px;
  background: #1b222970;
  border-bottom: 1px solid #4b535b;
  white-space: nowrap;
}
td {
  padding: 12px 20px;
  border-bottom: 1px solid #424a51;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #20283060;
}
td strong {
  font-weight: 500;
  font-size: 17px;
}
td small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.company-cell {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.company-cell > div {
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  color: #f0ede5;
  background: linear-gradient(130deg, #383f45, #272d33);
  border-radius: 7px;
}
.avatar svg {
  width: 24px;
  height: 24px;
}
.avatar.initials {
  font-size: 14px;
}
.compact-leads th {
  height: 42px;
}
.compact-leads td {
  height: 57px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.compact-leads .company-cell small {
  display: none;
}
.compact-leads td strong {
  font-size: 18px;
}
.compact-leads td:nth-child(2) {
  white-space: nowrap;
}
.compact-leads .next-action button,
.compact-leads .next-action a.button {
  border: 0;
  padding: 2px 0;
  text-decoration: none;
  font-size: 16px;
  background: transparent;
  min-height: 32px;
  text-align: left;
}
.compact-leads .next-action svg {
  display: none;
}
.compact-leads .row-chevron {
  padding-left: 0;
  width: 24px;
}
.row-chevron svg {
  width: 18px;
  height: 18px;
}
.lead-result {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.today-grid .lead-result {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.mobile-feed {
  display: none;
}
.analytics {
  grid-column: 1;
  min-width: 0;
}
.analytics summary {
  font-size: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.metric {
  border-top: 1px solid var(--soft-line);
  padding-top: 12px;
}
.metric b {
  display: block;
  font-size: 26px;
  font-weight: 500;
}
.metric span {
  font-size: 13px;
  color: var(--muted);
}
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.bars .row {
  display: grid;
  grid-template-columns: 120px 1fr 32px;
  gap: 12px;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.bars .lab {
  color: var(--muted);
}
.track {
  height: 7px;
  background: #2b343d;
  border-radius: 3px;
  overflow: hidden;
}
.bar {
  height: 7px;
  background: var(--gold-light);
}
.bars .num {
  text-align: right;
}
.text-button {
  padding: 3px 0;
  border: 0;
  color: var(--gold-light);
  font-size: 14px;
}
.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  color: var(--text);
  margin: 10px 0 7px;
  font-size: 23px;
}
.empty p {
  font-size: 15px;
  max-width: 430px;
  margin: 0 auto;
}
.empty-symbol {
  color: var(--gold-light);
  font-size: 30px;
}
.empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.review-list {
  display: grid;
  gap: 14px;
}
.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.review-item p {
  font-size: 15px;
  color: var(--muted);
  margin: 7px 0 0;
}
.review-item button {
  flex-shrink: 0;
}
.review-item .avatar {
  width: 42px;
  height: 42px;
}
.review-item .company-cell strong {
  font-size: 20px;
}
.review-item .company-cell small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
body[data-review="true"] .shell {
  grid-template-columns: 256px minmax(0, 1fr);
}
body[data-review="true"] #view {
  padding: 24px 28px 28px;
}
.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  min-height: 22px;
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  text-align: left;
}
.back-button svg {
  width: 20px;
  height: 20px;
}
.review-heading {
  margin-bottom: 15px;
}
.review-heading h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 4px;
}
.review-heading > p {
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}
.mobile-review-title,
.review-mode,
.review-company {
  display: none;
}
.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}
.preview-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  height: 58px;
  padding: 0 12px;
}
.preview-tabs button {
  border: 0;
  border-radius: 0;
  padding: 0 19px;
  color: var(--muted);
  font-size: 20px;
}
.preview-tabs button[aria-pressed="true"] {
  color: var(--text);
  border-bottom: 3px solid var(--gold-light);
}
.demo-stage,
.preview-frame {
  height: 369px;
  width: calc(100% - 44px);
  margin: 22px 22px 0;
  border: 1px solid #505a62;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #252e35, #11171c);
  overflow: hidden;
}
.preview-frame {
  display: block;
  background: white;
}
.demo-inner {
  text-align: center;
  max-width: 360px;
  padding: 20px;
}
.demo-symbol {
  height: 60px;
  width: 60px;
  border: 1px solid #ac9369;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--gold-light);
}
.demo-symbol svg {
  width: 28px;
  height: 28px;
}
.demo-inner h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.demo-inner p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
.demo-inner button {
  font-size: 15px;
}
.no-image-mobile {
  display: none;
}
.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 21px 18px;
  font-size: 16px;
  min-height: 72px;
}
.preview-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.preview-title svg {
  height: 24px;
  width: 24px;
}
.preview-caption a.button {
  font-size: 15px;
  min-height: 39px;
  white-space: nowrap;
  border-color: #b99d70;
}
.draft-tab-pane {
  margin: 22px;
  min-height: 369px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 22px;
  font-size: 16px;
  white-space: pre-wrap;
}
.review-checks > summary {
  font-size: 23px;
  font-weight: 550;
  color: var(--text);
  padding: 0;
  list-style: none;
}
.review-checks > summary::-webkit-details-marker {
  display: none;
}
.manual-checks {
  border: 0;
  padding: 0;
  margin: 12px 0 0;
}
.manual-checks label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 16px;
}
.manual-checks label:last-child {
  border: 0;
}
.manual-checks input {
  height: 21px;
  width: 21px;
  min-height: 21px;
  flex-shrink: 0;
  accent-color: var(--gold-light);
  margin: 0;
}
.manual-checks small {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.checklist-card .small {
  font-size: 12px;
  margin: 12px 0 0;
  color: var(--muted);
}
.outbound-panel {
  position: relative;
  padding: 15px 20px 29px;
  min-height: 730px;
  display: flex;
  flex-direction: column;
}
.outbound-panel > .section-heading {
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.outbound-panel h2 {
  font-size: 26px;
}
.mail-meta {
  margin: 0;
}
.mail-meta > div,
.email-layout {
  display: grid;
  grid-template-columns: 28px 135px minmax(0, 1fr);
  gap: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-line);
  align-items: start;
}
.mail-meta > div > svg,
.email-layout > svg {
  height: 23px;
  width: 23px;
  color: #c6ccd2;
}
.mail-meta dt {
  font-size: 17px;
  font-weight: 400;
  color: #e2e5e7;
  margin: 0;
}
.mail-meta dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mail-meta dd strong {
  font-weight: 550;
}
.mail-meta dd small {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 2px;
}
.mail-meta .recipient-row {
  padding: 11px 0;
}
.email-layout {
  border: 0;
  padding: 8px 0 16px;
}
.mail-label {
  font-size: 17px;
}
.full-email {
  margin: 0;
}
.full-email > summary {
  display: none;
}
.mail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.email-preview-link {
  font-size: 17px;
}
.email-preview-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.email-preview-link svg {
  height: 20px;
  width: 20px;
}
.sender-mobile {
  display: none;
}
.prior-context {
  margin: 0 0 8px;
  font-size: 14px;
  border-top: 1px solid var(--soft-line);
}
.prior-context summary {
  font-size: 14px;
  padding: 8px 0;
}
.prior-context p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
}
.consequences {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: auto;
}
.consequences h3 {
  font-size: 23px;
  margin: 0 0 5px;
}
.approval-summary {
  list-style: none;
  padding: 0;
  margin: 0;
}
.approval-summary li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 16px;
  line-height: 1.35;
}
.approval-summary li:last-child {
  border: 0;
}
.approval-summary svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.callout {
  border: 1px solid #94712380;
  border-radius: 7px;
  background: #8a64151a;
  color: #ffcf73;
  padding: 11px 14px;
  font-size: 15px;
  margin: 16px 0;
}
.callout.with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}
.callout svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.callout.bad {
  color: var(--red);
  border-color: #92534388;
  background: #7d3e2817;
}
.actions {
  display: flex;
  gap: 14px;
}
.actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  font-size: 18px;
}
.actions button:first-child {
  flex: 1.35;
}
.actions button:last-child {
  flex: 1;
}
.decision-note {
  margin: 11px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.pending {
  font-size: 14px;
  color: var(--gold-light);
  margin: 10px 0;
}
.connection {
  padding: 12px 24px;
  border-bottom: 1px solid #866b43;
  color: var(--gold-light);
  background: #45351a60;
  font-size: 14px;
}
.connection.bad {
  color: var(--red);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  padding: 16px 20px;
  border: 1px solid #f4dfb9;
  border-radius: 9px;
  background: #ecd5ac;
  color: #171611;
  box-shadow: 0 10px 35px #0006;
  font-size: 15px;
  z-index: 50;
}
dialog {
  background: #171e24;
  color: var(--text);
  border: 1px solid #968161;
  border-radius: 12px;
  padding: 28px;
  max-width: 500px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 80px #0009;
}
dialog::backdrop {
  background: #05080bd9;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 26px;
}
dialog p,
dialog li {
  font-size: 16px;
  line-height: 1.5;
}
dialog ul {
  padding-left: 20px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.login {
  max-width: 450px;
  margin: 10vh auto;
  padding: 24px;
}
.login > img {
  margin-left: -6px;
  margin-bottom: 15px;
}
.login h1 {
  font-size: 36px;
}
.login label {
  display: block;
  margin-top: 26px;
  color: var(--muted);
  font-size: 15px;
}
.login input {
  width: 100%;
  margin: 8px 0 14px;
}
.login button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
}
.login .error {
  min-height: 23px;
  margin-top: 12px;
}
.login .footnote {
  margin-top: 32px;
}
summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--gold-light);
  padding: 10px 0;
}
.reply-preview {
  max-width: 520px;
  line-height: 1.5;
  margin: 7px 0;
}
@media (max-width: 1500px) and (min-width: 801px) {
  .shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .brand span {
    font-size: 16px;
    letter-spacing: 2.5px;
  }
  .today-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px 16px;
  }
  .today-attention {
    padding-left: 16px;
  }
  .attention {
    padding: 16px 13px;
    gap: 10px;
  }
  .attention-title {
    font-size: 15px;
  }
  .attention small {
    font-size: 13px;
  }
  .attention .arrow {
    font-size: 0;
  }
  .attention .arrow svg {
    height: 16px;
    width: 16px;
  }
  .pipeline > div {
    padding: 0 12px;
  }
  .pipeline-label {
    font-size: 12px;
    gap: 7px;
  }
  .pipeline b {
    padding-left: 27px;
    font-size: 25px;
  }
  .lead-toolbar {
    gap: 15px;
    flex-wrap: wrap;
  }
  .lead-toolbar h2 {
    font-size: 27px;
    flex: 0 0 auto;
  }
  .lead-toolbar .filters {
    flex: 1;
  }
  .filters input {
    font-size: 14px;
  }
  .segmented button {
    font-size: 13px;
    padding: 8px 9px;
  }
  .lead-toolbar .search {
    min-width: 140px;
  }
  .attention-card {
    padding: 15px;
  }
  .card-title {
    gap: 8px;
  }
  .card-title svg {
    width: 20px;
    height: 20px;
  }
  .card-top h3 {
    font-size: 17px;
  }
  .attention-card p {
    font-size: 15px;
  }
  .attention-card .pill {
    font-size: 12px;
  }
  .compact-leads td,
  .compact-leads th {
    padding-left: 13px;
    padding-right: 13px;
  }
  .compact-leads td strong {
    font-size: 16px;
  }
  .compact-leads .avatar {
    width: 30px;
    height: 30px;
  }
  .compact-leads .company-cell {
    gap: 10px;
  }
  .compact-leads .next-action button,
  .compact-leads .next-action a.button {
    font-size: 14px;
  }
  .pill {
    font-size: 12px;
  }
  .today-attention h2 {
    font-size: 23px;
  }
  .mail-meta > div,
  .email-layout {
    grid-template-columns: 24px 100px minmax(0, 1fr);
    gap: 10px;
  }
  .mail-meta dt,
  .mail-meta dd,
  .mail-body,
  .mail-label,
  .email-preview-link {
    font-size: 16px;
  }
  .manual-checks small {
    font-size: 11px;
  }
  .heading-search {
    width: 52%;
  }
}
@media (max-width: 1150px) and (min-width: 801px) {
  .today-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .attention-title {
    white-space: normal;
    font-size: 14px;
  }
  .attention .icon svg {
    width: 22px;
    height: 22px;
  }
  .attention {
    gap: 8px;
    padding: 14px 10px;
  }
  .attention small {
    font-size: 12px;
  }
  .today-heading p {
    font-size: 17px;
  }
  .heading-search {
    width: 48%;
    gap: 8px;
  }
  .heading-search input {
    font-size: 14px;
  }
  .heading-search button {
    display: none;
  }
  .lead-toolbar h2 {
    flex-basis: 100%;
  }
  .lead-toolbar .filters {
    flex-basis: 100%;
  }
  .today-attention {
    padding-left: 13px;
  }
  .today-attention .section-heading .small {
    display: none;
  }
  .pipeline-label svg {
    display: none;
  }
  .pipeline b {
    padding-left: 0;
  }
  .pipeline > div {
    padding: 0 10px;
  }
  .compact-leads .avatar {
    display: none;
  }
  .compact-leads td strong {
    font-size: 15px;
  }
  .compact-leads .pill {
    font-size: 11px;
  }
  .compact-leads .row-chevron {
    display: none;
  }
  .compact-leads td,
  .compact-leads th {
    padding-left: 9px;
    padding-right: 9px;
  }
  .compact-leads .next-action button {
    font-size: 13px;
  }
  .compact-leads th {
    font-size: 12px;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .outbound-panel {
    min-height: 0;
  }
}
@media (max-width: 800px) {
  body {
    font-size: 15px;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: initial !important;
  }
  .shell {
    display: block;
    padding-bottom: 70px;
  }
  .sidebar {
    height: 44px;
    position: relative;
    top: auto;
    border: 0;
    background: transparent;
    padding: 10px 18px 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    gap: 5px;
    padding: 0;
  }
  .brand img {
    height: 24px;
    width: 24px;
  }
  .brand span {
    font-size: 14px;
    letter-spacing: 2.3px;
  }
  .workspace-mode {
    margin: 0;
    gap: 4px;
  }
  .workspace-mode .pill {
    font-size: 10px;
    padding: 2px 6px;
    line-height: 1.4;
  }
  .workspace-mode .pill.dot:before {
    display: none;
  }
  .sidebar nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 40;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    height: 70px;
    background: #10161bf7;
    border-top: 1px solid #62696f;
    backdrop-filter: blur(12px);
  }
  nav > button {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    min-height: 54px;
    font-size: 12px;
    padding: 5px;
    position: relative;
    border-radius: 8px;
  }
  nav > button svg {
    height: 22px;
    width: 22px;
  }
  nav > button.on {
    background: #c5a5684a;
    border-color: #c2a46955;
  }
  nav > button[data-t="engagement"],
  nav > button[data-t="log"],
  nav > button[data-t="replies"],
  nav > button[data-t="scheduler"] {
    display: none;
  }
  nav .count {
    position: absolute;
    top: 0;
    right: 9px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    padding: 0 4px;
  }
  .mobile-more {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .mobile-more > summary {
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    min-height: 54px;
    padding: 5px;
    font-size: 12px;
  }
  .mobile-more > summary svg {
    width: 22px;
    height: 22px;
  }
  .more-label-desktop {
    display: none;
  }
  .more-label-mobile {
    display: initial;
  }
  .mobile-more > div {
    left: auto;
    right: 10px;
    bottom: 80px;
    width: 265px;
    max-width: calc(100vw - 20px);
  }
  .mobile-more > div > button {
    font-size: 16px;
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }
  .mobile-more .count {
    position: static;
    margin-left: auto;
  }
  .runner-controls button {
    min-height: 44px;
  }
  #view {
    padding: 14px 18px 20px;
    min-height: calc(100vh - 120px);
  }
  h1 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.7px;
  }
  h2 {
    font-size: 23px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading p {
    font-size: 16px;
  }
  .date-label,
  .heading-note {
    display: none;
  }
  .today-heading {
    display: block;
    min-height: 0;
    margin-bottom: 13px;
  }
  .today-heading h1 {
    font-size: 34px;
    margin: 0 0 3px;
  }
  .today-heading p {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    color: #d3d6dc;
  }
  .heading-search {
    display: none;
  }
  .today-grid {
    display: block;
  }
  .attention-grid {
    gap: 9px;
    margin-bottom: 16px;
  }
  .attention {
    min-height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    border-radius: 9px;
  }
  .attention .icon {
    padding: 0;
  }
  .attention .icon svg {
    height: 23px;
    width: 23px;
  }
  .attention-title {
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.25;
  }
  .attention .number {
    font-weight: 550;
  }
  .attention small,
  .attention .arrow {
    display: none;
  }
  .today-pipeline,
  .today-attention {
    display: none;
  }
  .lead-workspace {
    margin: 0;
  }
  .lead-toolbar {
    display: block;
    margin: 0;
  }
  .lead-toolbar > h2 {
    display: none;
  }
  .filters {
    gap: 12px;
  }
  .filters .search {
    min-width: 0;
    flex: 1 1 100%;
  }
  .lead-toolbar .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 16px;
  }
  .segmented {
    width: 100%;
    order: -1;
    padding: 0;
    border-radius: 8px;
    gap: 0;
  }
  .segmented button {
    flex: 1;
    font-size: 16px;
    min-height: 38px;
    padding: 7px;
    border-radius: 7px;
  }
  .search input {
    font-size: 16px;
    min-height: 40px;
    height: 40px;
  }
  .search svg {
    top: 10px;
    left: 13px;
    height: 19px;
    width: 19px;
  }
  .filters select {
    min-width: 0;
    flex: 1;
  }
  .today-grid .compact-leads {
    display: none;
  }
  .mobile-feed {
    display: grid;
    gap: 10px;
  }
  .mobile-action-card {
    border: 1px solid #70777e;
    border-radius: 10px;
    padding: 12px;
    min-height: 126px;
    display: grid;
    grid-template-rows: 24px minmax(20px, auto) 44px;
    gap: 6px;
    background: linear-gradient(120deg, #151c23a0, #0b111780);
  }
  .mobile-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }
  .mobile-card-top .avatar {
    width: 25px;
    height: 25px;
    border-radius: 5px;
  }
  .mobile-card-top .avatar svg {
    height: 20px;
    width: 20px;
  }
  .mobile-card-top strong {
    font-size: 16px;
    font-weight: 550;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex: 1;
  }
  .mobile-card-top .pill {
    font-size: 12px;
    padding: 2px 6px;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-action-card p {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #e2e5e8;
  }
  .mobile-action-card > button,
  .mobile-action-card > .button {
    width: 100%;
    font-size: 15px;
    padding: 8px 10px;
    min-height: 44px;
  }
  .mobile-result {
    margin: 8px 0;
    font-size: 12px;
    color: var(--muted);
  }
  .analytics {
    margin-top: 22px;
  }
  .analytics > summary {
    font-size: 14px;
    padding: 10px 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .metric b {
    font-size: 24px;
  }
  .metric span {
    font-size: 13px;
  }
  .secondary-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
    margin-bottom: 16px;
  }
  .panel.flush {
    padding: 0;
  }
  .panel-heading {
    padding: 16px;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  table {
    font-size: 14px;
  }
  th {
    font-size: 13px;
    padding: 11px 13px;
  }
  td {
    padding: 13px;
    font-size: 14px;
  }
  td strong {
    font-size: 16px;
  }
  .mobile-cards:not(.compact-leads) table,
  .mobile-cards:not(.compact-leads) tbody {
    display: block;
  }
  .mobile-cards:not(.compact-leads) thead {
    display: none;
  }
  .mobile-cards:not(.compact-leads) tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--soft-line);
  }
  .mobile-cards:not(.compact-leads) tr:last-child {
    border: 0;
  }
  .mobile-cards:not(.compact-leads) td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  .mobile-cards:not(.compact-leads) td:first-child {
    grid-column: 1/-1;
  }
  .mobile-cards td[data-label]:before {
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--muted);
    display: block;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .mobile-cards td:last-child {
    align-self: end;
  }
  .review-item {
    display: block;
    padding: 17px;
  }
  .review-item > button {
    margin-top: 15px;
    width: 100%;
    min-height: 44px;
  }
  .review-item > .pill {
    margin-top: 8px;
  }
  .review-item .company-cell strong {
    font-size: 19px;
  }
  .review-item p {
    overflow-wrap: anywhere;
  }
  .pill {
    font-size: 13px;
  }
  body[data-review="true"] .shell {
    display: block;
    padding: 0;
  }
  body[data-review="true"] .sidebar {
    display: none;
  }
  body[data-review="true"] #view {
    padding: 18px 20px 20px;
    min-height: 100vh;
  }
  body[data-review="true"] footer {
    display: none;
  }
  .back-button {
    margin: 0 0 13px;
    min-height: 30px;
  }
  .back-button > svg {
    height: 24px;
    width: 24px;
  }
  .back-desktop {
    display: none;
  }
  .review-heading {
    position: relative;
    margin-bottom: 18px;
  }
  .review-heading h1 {
    font-size: 31px;
    line-height: 1.15;
    margin: 0 0 16px;
  }
  .desktop-review-title,
  .review-heading > p {
    display: none;
  }
  .mobile-review-title {
    display: initial;
  }
  .review-mode {
    display: block;
    position: absolute;
    right: 0;
    top: -43px;
  }
  .review-mode .pill {
    font-size: 11px;
    padding: 3px 7px;
  }
  .review-company {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 21px;
    font-weight: 550;
    line-height: 1.3;
  }
  .review-company .avatar {
    width: 34px;
    height: 34px;
  }
  .details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .preview-column {
    display: contents;
  }
  .preview-card {
    order: 1;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 12px !important;
    min-height: 120px;
    width: 100%;
    margin-bottom: 16px;
  }
  .preview-tabs {
    display: none;
  }
  #demoPane {
    display: contents;
  }
  .demo-stage,
  .preview-frame {
    height: 96px;
    width: 112px;
    margin: 0;
    border-radius: 7px;
  }
  .demo-stage .demo-inner {
    padding: 8px;
    width: 100%;
  }
  .demo-stage .demo-symbol {
    width: 35px;
    height: 35px;
    margin: 0 auto 4px;
    border: 0;
    border-radius: 0;
  }
  .demo-symbol svg {
    width: 30px;
    height: 30px;
  }
  .demo-inner h3,
  .demo-inner p,
  .demo-inner button {
    display: none;
  }
  .no-image-mobile {
    display: block;
    font-size: 10px;
    color: var(--muted);
  }
  .preview-caption {
    padding: 0;
    display: block;
    min-height: 0;
  }
  .preview-title {
    display: block;
    font-size: 18px;
    font-weight: 550;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  .preview-title > svg,
  .preview-title > .desktop-only {
    display: none;
  }
  .preview-title > .mobile-only {
    display: initial !important;
  }
  .preview-caption a.button {
    font-size: 14px;
    padding: 7px 10px;
    min-height: 40px;
    width: 100%;
    background: linear-gradient(110deg, #e7c995, #cfad6c);
    color: #15130f;
    font-weight: 550;
    white-space: nowrap;
  }
  .draft-tab-pane {
    display: none;
  }
  .outbound-panel {
    order: 2;
    display: block;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    min-height: 0;
  }
  .outbound-panel > .section-heading {
    display: none;
  }
  .mail-meta {
    border: 1px solid #717980;
    border-radius: 10px;
    background: #11171c77;
    padding: 6px 14px;
  }
  .mail-meta > div {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 11px;
    padding: 11px 0;
  }
  .mail-meta > div.recipient-row {
    padding: 10px 0 12px;
  }
  .mail-meta > div > svg {
    width: 23px;
    height: 23px;
    grid-column: 1;
    grid-row: 1/3;
    margin-top: 2px;
  }
  .mail-meta dt {
    display: none;
  }
  .mail-meta dd {
    font-size: 16px;
    line-height: 1.3;
    grid-column: 2;
  }
  .mail-meta dd strong {
    font-size: 17px;
  }
  .mail-meta dd small {
    font-size: 15px;
    margin-top: 3px;
  }
  .recipient-row dd strong:before {
    content: "To: ";
    font-weight: 500;
  }
  .recipient-company {
    display: none;
  }
  .subject-row dd:before {
    content: "Subject: ";
    font-weight: 550;
  }
  .mail-meta .sender-row {
    display: none;
  }
  .mail-meta > div:last-child {
    border: 0;
  }
  .email-layout {
    display: block;
    padding: 0;
    margin: 15px 0 0;
  }
  .email-layout > svg,
  .mail-label {
    display: none;
  }
  .full-email {
    border: 1px solid #69727a;
    border-radius: 9px;
    background: #11171c77;
    padding: 0 15px;
  }
  .full-email > summary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    min-height: 47px;
    list-style: none;
  }
  .full-email > summary::-webkit-details-marker {
    display: none;
  }
  .full-email > summary > svg {
    width: 22px;
    height: 22px;
  }
  .full-email > summary:after {
    content: "⌄";
    margin-left: auto;
    font-size: 20px;
  }
  .full-email[open] > summary:after {
    content: "⌃";
  }
  .full-email .mail-body {
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 0 0;
  }
  .email-preview-link {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .sender-mobile {
    display: block;
    font-size: 13px;
    color: var(--muted);
    padding-top: 8px;
    overflow-wrap: anywhere;
  }
  .prior-context {
    margin: 10px 0 0;
    border: 0;
  }
  .prior-context > summary {
    font-size: 13px;
    padding: 5px 0;
  }
  .consequences {
    border: 0;
    padding-top: 14px;
    margin: 0;
  }
  .consequences > h3 {
    display: none;
  }
  .approval-summary li {
    font-size: 14px;
    line-height: 1.35;
    padding: 3px 0;
    border: 0;
    gap: 8px;
  }
  .approval-summary svg {
    width: 17px;
    height: 17px;
  }
  .summary-recipient {
    display: none !important;
  }
  .callout {
    font-size: 13px;
    padding: 10px 12px;
    margin: 12px 0;
  }
  .outbound-panel .callout:not(.bad) {
    padding: 0;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    margin: 10px 0 12px;
  }
  .outbound-panel .callout svg {
    height: 17px;
    width: 17px;
  }
  .actions {
    flex-direction: column;
    gap: 10px;
  }
  .actions button {
    min-height: 48px;
    font-size: 16px;
    flex: initial !important;
    width: 100%;
    padding: 9px;
  }
  .decision-note {
    font-size: 11px;
    margin: 9px 0 0;
    line-height: 1.35;
  }
  .checklist-card {
    order: 3;
    width: 100%;
    margin-top: 22px;
    margin-bottom: 0;
  }
  .review-checks > summary {
    font-size: 17px;
  }
  .manual-checks label {
    font-size: 14px;
    gap: 10px;
  }
  .manual-checks small {
    display: none;
  }
  .checklist-card .small {
    font-size: 12px;
  }
  .connection {
    font-size: 13px;
    padding: 10px 18px;
  }
  .toast {
    bottom: 82px;
    left: 14px;
    right: 14px;
    max-width: none;
    font-size: 14px;
  }
  body[data-review="true"] .toast {
    bottom: 16px;
  }
  footer {
    padding: 14px 18px;
    font-size: 11px;
  }
  dialog {
    padding: 24px;
  }
  dialog h2 {
    font-size: 24px;
  }
  .dialog-actions button {
    min-height: 44px;
    font-size: 15px;
  }
  .login {
    margin: 7vh auto;
  }
  .login h1 {
    font-size: 32px;
  }
  .bars .row {
    grid-template-columns: 105px 1fr 28px;
    gap: 9px;
  }
}
@media (max-width: 359px) {
  .brand span {
    font-size: 12px;
    letter-spacing: 1.7px;
  }
  .brand img {
    height: 22px;
    width: 22px;
  }
  .workspace-mode .pill {
    font-size: 9px;
  }
  .attention-title {
    font-size: 12px;
  }
  .today-heading h1 {
    font-size: 32px;
  }
  .mobile-card-top strong {
    font-size: 14px;
  }
  .mobile-card-top .pill {
    font-size: 10px;
  }
  .review-heading h1 {
    font-size: 28px;
  }
  .review-company {
    font-size: 20px;
  }
  .preview-card {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
  }
  .demo-stage,
  .preview-frame {
    width: 94px;
    height: 90px;
  }
  .preview-title {
    font-size: 16px;
  }
  .preview-caption a.button {
    font-size: 12px;
    padding: 8px 5px;
  }
  .mobile-action-card {
    padding: 11px;
  }
  .mail-meta {
    padding: 5px 11px;
  }
  .mail-meta dd strong {
    font-size: 15px;
  }
  .mail-meta dd {
    font-size: 15px;
  }
  .mail-meta dd small {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a.button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}

@media (min-width: 801px) {
  .decision-note {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 8px;
  }
  .outbound-panel {
    margin-bottom: 28px;
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .today-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .today-attention {
    grid-column: 1;
    grid-row: 5;
    border-left: 0;
    padding-left: 0;
  }
  .today-attention .attention-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lead-toolbar .filters {
    flex-wrap: wrap;
  }
  .lead-toolbar .filters .search {
    flex: 1;
    min-width: 160px;
  }
}

@media (min-width: 1101px) {
  .compact-leads th:nth-child(1) {
    width: 28.3%;
  }
  .compact-leads th:nth-child(2) {
    width: 24.2%;
  }
  .compact-leads th:nth-child(3) {
    width: 24.8%;
  }
  .compact-leads th:nth-child(4) {
    width: 19%;
  }
  .compact-leads th:nth-child(5) {
    width: 3.7%;
  }
}
@media (max-width: 800px) {
  .today-heading {
    margin-bottom: 5px;
  }
  .lead-toolbar .filters {
    gap: 12px;
    margin-bottom: 14px;
  }
  .mail-meta {
    padding-top: 0;
    padding-bottom: 0;
  }
  .mail-meta > div > svg {
    grid-row: 1;
  }
  .mail-meta > div.recipient-row,
  .mail-meta > div.subject-row {
    padding: 8px 0;
  }
  .full-email > summary {
    min-height: 46px;
    padding: 10px 0;
    line-height: 24px;
  }
  .full-email > summary:after {
    line-height: 24px;
  }
  .approval-summary {
    display: none !important;
  }
  .mobile-sequence-summary {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
  }
  .mobile-sequence-summary svg {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
  }
  .mobile-sequence-summary p {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
  }
  .outbound-panel .callout:not(.bad) {
    margin: 10px 0 12px;
  }
  .outbound-panel .decision-note {
    position: static;
  }
  .mobile-more > summary > span > svg {
    display: block;
  }
}

.approval-summary.desktop-only {
  display: block;
}
@media (max-width: 800px) {
  .approval-summary.desktop-only {
    display: none !important;
  }
}

.back-button {
  max-width: 100%;
}
.back-desktop {
  min-width: 0;
  overflow-wrap: anywhere;
}
.review-company {
  overflow-wrap: anywhere;
}
.review-refresh {
  display: block;
  margin: 10px 0 12px;
  min-height: 40px;
}

@media (min-width: 801px) {
  .demo-stage,
  .preview-frame {
    height: 364px;
  }
  .preview-card {
    margin-bottom: 13px;
  }
  .manual-checks {
    margin-top: 4px;
  }
  .manual-checks label {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .review-checks > summary {
    line-height: 1.25;
  }
}

.demo-stage {
  position: relative;
}
.demo-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e7e5e1;
}
.has-thumbnail .demo-inner {
  visibility: hidden;
}

.demo-thumbnail {
  opacity: 0;
}
.has-thumbnail .demo-thumbnail {
  opacity: 1;
}

@media (max-width: 800px) {
  .responsive-table,
  .responsive-table tbody {
    display: block;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
    border-bottom: 1px solid var(--soft-line);
  }
  .responsive-table tr:last-child {
    border: 0;
  }
  .responsive-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .responsive-table td:before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .responsive-table .company-cell {
    gap: 12px;
  }
  .responsive-table .reply-preview {
    max-width: 100%;
  }
  .responsive-table a {
    display: inline-block;
    min-height: 32px;
  }
  .responsive-table .button {
    min-height: 44px;
  }
}

/* Mobile dock follows the available browser viewport, not an arbitrary bottom offset. */
@media (max-width: 800px) {
  :root {
    --lf-safe-bottom: env(safe-area-inset-bottom, 0px);
    --lf-nav-height: calc(70px + var(--lf-safe-bottom));
    --lf-badge-height: 64px;
  }
  body {
    --lf-dock-nav-height: 0px;
  }
  .sidebar nav {
    bottom: 0;
    height: var(--lf-nav-height);
    padding: 6px max(10px, env(safe-area-inset-right, 0px))
      calc(6px + var(--lf-safe-bottom))
      max(10px, env(safe-area-inset-left, 0px));
  }
  .shell {
    padding-bottom: var(--lf-nav-height);
  }
  .mobile-more > div {
    bottom: calc(var(--lf-nav-height) + 10px);
  }
  body:has(#app:not([hidden])):not([data-review="true"]) {
    --lf-dock-nav-height: var(--lf-nav-height);
  }
  body:has(#nl-badge-frame)::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--lf-dock-nav-height) + var(--lf-badge-height));
    background: #10161b;
    border-top: 1px solid var(--soft-line);
    z-index: 39;
    pointer-events: auto;
  }
  body:has(#nl-badge-frame) #nl-badge-frame {
    bottom: var(--lf-dock-nav-height) !important;
  }
  body:not([data-review="true"]):has(#nl-badge-frame) .shell {
    padding-bottom: calc(var(--lf-nav-height) + var(--lf-badge-height));
  }
  body:has(#nl-badge-frame) .mobile-more > div {
    bottom: calc(var(--lf-dock-nav-height) + var(--lf-badge-height) + 10px);
  }
  body:has(#nl-badge-frame) .toast {
    bottom: calc(var(--lf-dock-nav-height) + var(--lf-badge-height) + 12px);
  }
  body[data-review="true"]:has(#nl-badge-frame) #view {
    padding-bottom: calc(var(--lf-badge-height) + var(--lf-safe-bottom) + 20px);
  }
}

/* Workflow fit is separate from stage, tier and the current demo's capability. */
.use-case-help { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 85ch; }
.use-case-cell { min-width: 140px; max-width: 290px; }
.use-case-cell > small { display: block; margin-top: 5px; color: var(--muted); }
.use-case-cell .pill { white-space: normal; }
.use-case-evidence { margin-top: 6px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.use-case-evidence summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.use-case-evidence p { margin: 8px 0; }
.use-case-evidence a { display: inline-block; margin: 0 10px 5px 0; }
#fu { max-width: 100%; }
@media (max-width: 800px) {
  .filters #fu { flex-basis: 100%; }
  .use-case-cell { max-width: 100%; min-width: 0; }
}

/* Keep visually hidden table labels inside the horizontal scroll container. */
.table-scroll { position: relative; }

.use-case-leads td:last-child .button { white-space: nowrap; }
@media (max-width: 800px) {
  .mobile-cards.use-case-leads tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cards.use-case-leads td[data-label="Use case"] { grid-column: 1 / -1; grid-row: 3; }
  .mobile-cards.use-case-leads td[data-label="Tier"] { grid-column: 2; grid-row: 2; }
  .mobile-cards.use-case-leads td:last-child { grid-column: 1 / -1; }
  .mobile-cards.use-case-leads .empty-row td { grid-column: 1 / -1; }
}

.auto-refresh-status { color: var(--muted); font-size: 12px; }
footer { flex-wrap: wrap; }

/* The Demos filter refers to lead fit, not audited demo functionality. */
.demo-filters label { font-size: 14px; font-weight: 600; }
#demoUseCase { max-width: 100%; }
@media (max-width: 800px) {
  .demo-filters label, .demo-filters #demoUseCase { flex-basis: 100%; }
  .demo-results td[data-label="Lead use case"] { grid-column: 1 / -1; }
}

.watch-reason { max-width: 30rem; margin-top: .5rem; white-space: normal; overflow-wrap: anywhere; }
.watch-reason summary { cursor: pointer; font-size: .8rem; }
.watch-reason p { margin: .5rem 0; font-size: .8rem; line-height: 1.45; }

.watch-detail-row td { padding-top: 0; }
.watch-detail-row .watch-reason { max-width: 65rem; margin: 0; }
@media (max-width: 800px) {
  .mobile-cards.use-case-leads tr.watch-detail-row { display: block; margin-top: -1rem; }
  .mobile-cards.use-case-leads tr.watch-detail-row td { display: block; }
}

.mail-queue-summary { margin-bottom: 20px; }
.mail-queue-summary strong { font-size: 24px; }
@media (max-width:800px) { nav > button[data-t="mailqueue"] { display:none; } body[data-tab="mailqueue"] .responsive-table td { overflow-wrap:anywhere; } }

/* Queue controls preserve independent search/filter/sort state per scope. */
.mail-queue-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; align-items: end; }
.mail-queue-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.mail-queue-filters input, .mail-queue-filters select { width: 100%; min-width: 0; max-width: 100%; }
.mail-queue-search { grid-column: span 2; }
@media (max-width: 800px) { .mail-queue-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 400px) { .mail-queue-filters { grid-template-columns: minmax(0,1fr); } .mail-queue-search { grid-column: auto; } }

.demo-view-tabs { display:flex; gap:8px; margin:0 0 24px; }
.demo-view-tabs button[aria-pressed="true"] { background:var(--ink, #161714); color:var(--paper, #faf8f2); }
.interaction-intro { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.interaction-intro h2 { margin-bottom:6px; }
.interaction-intro p { color:var(--muted); margin-top:0; }
.interaction-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:24px 0 12px; }
.interaction-filters label { display:flex; flex-direction:column; gap:8px; font-size:13px; min-width:0; }
.interaction-filters select,.interaction-filters input { min-width:0; width:100%; max-width:100%; }
.interaction-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0; }
.interaction-summary>div { border:1px solid var(--line, #d8d5cc); border-radius:16px; padding:20px; background:var(--panel, #fffdf7); }
.interaction-summary span,.interaction-summary small { display:block; color:var(--muted); font-size:13px; line-height:1.5; }
.interaction-summary strong { display:block; font-size:28px; margin:8px 0; }
.interactions-table td { vertical-align:top; overflow-wrap:anywhere; }
.interactions-table td:first-child { min-width:150px; }
.interactions-table td small { display:block; color:var(--muted); margin-top:6px; }
.interaction-chips { display:flex; flex-wrap:wrap; gap:5px; min-width:180px; }
.interaction-chip { border:1px solid var(--line, #d8d5cc); border-radius:6px; padding:3px 6px; font-size:12px; white-space:nowrap; }
.interaction-detail { margin-top:10px; max-width:360px; font-size:13px; }
.interaction-detail summary { cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.interaction-counts { display:grid; grid-template-columns:1fr 1fr; gap:5px 14px; }
.interaction-counts>div { display:flex; justify-content:space-between; gap:8px; }
.interaction-counts dd { margin:0; }
.interaction-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:16px; }
.interaction-pagination>div { display:flex; gap:8px; }
.interaction-empty { padding:28px; }
.interaction-error { color:var(--red, #ffb7a7); }
.interaction-help { font-size:13px; color:var(--muted); margin-bottom:16px; max-width:90ch; }
.interaction-help summary { cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:800px) {
  .interaction-intro { align-items:flex-start; flex-direction:column; }
  .interaction-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .interaction-summary { grid-template-columns:1fr; gap:10px; }
  .interaction-summary>div { padding:16px; }
  .interaction-summary strong { font-size:25px; }
  .interactions-table.mobile-cards tr { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .interactions-table.mobile-cards td[data-label="Demo"],.interactions-table.mobile-cards td[data-label="Actions"],
  .interactions-table.mobile-cards td[data-label="Recorded times"] { grid-column:1 / -1; }
  .interaction-chips { min-width:0; }
  .interaction-detail { max-width:100%; }
}
@media(max-width:400px) { .interaction-filters { grid-template-columns:1fr; } }
