:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --ink: #171b26;
  --muted: #626a7b;
  --accent: #5544d9;
  --soft: #efedfc;
  --border: #e2e5eb;
  --radius: 12px;
  --space: 8px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--accent);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  min-height: 44px;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}
.quiet {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.danger {
  color: #a12237;
  background: #fff2f3;
  border-color: #edd3d7;
}
.small {
  padding: 6px 12px;
  min-height: 36px;
  font-size: 12px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cdd2de;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 100px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin-bottom: 10px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  line-height: 1.3;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
}
p {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.logo {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: white;
  font-size: 23px;
  line-height: 1;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 228px;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.sidebar .brand {
  padding: 0 10px 30px;
}
.nav-label {
  padding: 20px 12px 8px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  color: #596173;
  border-radius: 8px;
  font-weight: 500;
  margin: 3px 0;
}
.nav a.active {
  color: var(--accent);
  background: var(--soft);
  font-weight: 650;
}
.nav a:hover {
  text-decoration: none;
  background: var(--bg);
}
.nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.workspace {
  margin-left: 228px;
}
.topbar {
  height: 76px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffffd9;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.topbar select {
  max-width: 240px;
}
.main {
  padding: 36px 40px;
  max-width: 1500px;
  margin: auto;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 20px;
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h2 {
  margin-bottom: 8px;
}
.metric {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 12px 0 4px;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--accent);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
}
.badge.neutral {
  color: var(--muted);
  background: #f0f2f5;
}
.banner {
  padding: 14px 18px;
  border: 1px solid #ddd8fa;
  background: #f4f2ff;
  border-radius: 10px;
  color: #463c89;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.banner strong {
  color: #3c327f;
}
.banner p {
  margin: 3px 0 0;
  color: inherit;
}
.banner.warn {
  background: #fff9ed;
  border-color: #eddfbf;
  color: #775a1b;
}
.title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  align-items: center;
}
.title-row p {
  margin: 0;
}
.step {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.step:last-child {
  border: 0;
  padding-bottom: 0;
}
.step-num {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.step p {
  font-size: 12px;
  margin: 4px 0 0;
}
.step h3 {
  margin: 0;
}
.empty {
  text-align: center;
  padding: 44px 20px;
}
.empty-mark {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 24px;
}
.empty p {
  max-width: 440px;
  margin: 8px auto 20px;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #fafbfc;
  color: var(--muted);
  font-weight: 600;
}
th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
tr:last-child td {
  border-bottom: 0;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.filters label {
  margin-top: 0;
}
.filters button {
  height: 44px;
}
.filter-advanced {
  margin: 20px 0;
}
.filter-advanced summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
}
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.form {
  max-width: 560px;
}
.form button {
  margin-top: 18px;
}
.form .row button {
  margin: 0;
}
.help {
  font-size: 12px;
  margin: 7px 0 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-side {
  background: #201a49;
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side .brand {
  color: #fff;
}
.auth-side h1 {
  font-size: 48px;
  letter-spacing: -2px;
  max-width: 500px;
}
.auth-side p {
  color: #c1bce0;
  max-width: 380px;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-main > div {
  width: 100%;
  max-width: 380px;
}
.auth-main form button {
  width: 100%;
  margin-top: 20px;
}
.auth-main .secondary {
  margin-top: 12px;
  width: 100%;
}
.auth-main h1 {
  font-size: 28px;
}
.divider {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin: 24px 0;
}
.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.public {
  max-width: 1160px;
  padding: 0 32px;
  margin: auto;
}
.public-nav {
  height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero {
  padding: 100px 0 70px;
  max-width: 840px;
}
.hero h1 {
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: -4px;
  margin: 24px 0;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 19px;
  max-width: 620px;
  line-height: 1.7;
}
.hero .row {
  margin-top: 30px;
}
.public-section {
  padding: 55px 0;
  border-top: 1px solid var(--border);
}
.public-section h2 {
  font-size: 34px;
}
.public footer {
  padding: 35px 0;
  color: var(--muted);
  font-size: 12px;
}
.kanban {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.column {
  min-width: 230px;
  width: 230px;
  background: #eef0f4;
  border-radius: 10px;
  padding: 14px;
}
.column h3 {
  font-size: 12px;
}
.deal {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
}
.deal p {
  font-size: 12px;
  white-space: pre-wrap;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
  overflow: auto;
}
.tabs a {
  color: var(--muted);
  padding: 7px 12px;
  white-space: nowrap;
}
.tabs a.active {
  background: var(--soft);
  color: var(--accent);
  border-radius: 7px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  max-width: 640px;
  width: calc(100% - 40px);
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #171b2666;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: #202433;
  color: white;
  border-radius: 10px;
  padding: 14px 20px;
  display: none;
  z-index: 20;
  box-shadow: 0 8px 40px #0002;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.error {
  color: #a12237;
}
.legal {
  max-width: 780px;
  margin: 50px auto;
}
.legal p {
  line-height: 1.9;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a0a5b1;
  display: inline-block;
  margin-right: 6px;
}
.pill {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted);
}
.spacer {
  height: 24px;
}
.mini {
  font-size: 11px;
}
.mobile-label {
  display: none;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 48px;
  }
}
@media (max-width: 1100px) {
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 60px;
  }
  .sidebar {
    width: 200px;
  }
  .workspace {
    margin-left: 200px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand {
    padding: 0 0 14px;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav a {
    white-space: nowrap;
    padding: 8px;
    font-size: 12px;
  }
  .nav svg,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .topbar .mini {
    display: none;
  }
  .main {
    padding: 24px 18px;
  }
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  h1 {
    font-size: 27px;
  }
  .card {
    padding: 20px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters > div:first-child {
    grid-column: 1/-1;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-main {
    padding: 32px 24px;
    min-height: 100vh;
  }
  .hero {
    padding: 60px 0;
  }
  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .hero p {
    font-size: 17px;
  }
  .public {
    padding: 0 20px;
  }
  .public-nav {
    height: 80px;
  }
  .public-nav .quiet {
    display: none;
  }
  .public-nav .brand {
    font-size: 20px;
  }
  .public-section h2 {
    font-size: 28px;
  }
  .step {
    grid-template-columns: 30px 1fr;
  }
  .step > a {
    grid-column: 2;
  }
  .row.wrap > button {
    flex-grow: 1;
  }
  #toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .table-wrap td,
  .table-wrap th {
    padding: 12px;
  }
  .metric {
    font-size: 30px;
  }
}
/* Each label and control is one grid item, including advanced filters and ICP weights. */
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: start;
}
.field label {
  margin: 0 0 6px;
  min-height: 20px;
  line-height: 20px;
}
.field input,
.field select {
  height: 44px;
  min-height: 44px;
}
.field + .field {
  margin-top: 14px;
}
.grid > .field,
.filters .field,
.grid > .field + .field {
  margin-top: 0;
}
.form .field {
  margin-top: 14px;
}
form > .field {
  margin-top: 14px;
}
input[readonly] {
  background: #f6f7fa;
  color: #626a7b;
}
.filter-advanced > .grid {
  margin-top: 18px;
  align-items: start;
  row-gap: 20px;
}
.grid > .field > label {
  white-space: normal;
}
.card form > .grid {
  margin-top: 14px;
}
.field input[type="number"] {
  appearance: textfield;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

form.row {
  align-items: flex-end;
}
form.row > .field {
  flex: 1 1 240px;
}
.sidebar-bottom .row > div {
  min-width: 0;
}
.sidebar-bottom .mini {
  overflow-wrap: anywhere;
}
.form button {
  max-width: 100%;
}
details > summary {
  cursor: pointer;
}
button[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}
/* Product interactions: predictable spacing, accessible suggestions and dense CRM. */
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.actions > * {
  margin: 0;
}
#modal {
  max-height: 90vh;
  overflow: auto;
  width: min(800px, calc(100vw - 32px));
}
#modal > form[method="dialog"] {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
#modal-body form > button {
  margin-top: 16px;
}
#modal-body textarea {
  min-height: 100px;
}
.company-facts {
  margin: 20px 0;
}
.company-facts p {
  margin: 4px 0 14px;
}
.suggest-field {
  position: relative;
}
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(520px, 85vw);
  max-height: 300px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px #17203524;
  z-index: 50;
  margin-top: 4px;
}
.suggestions [role="option"],
.suggest-empty {
  padding: 10px 14px;
  cursor: pointer;
  line-height: 1.45;
}
.suggestions [role="option"]:hover,
.suggestions [aria-selected="true"] {
  background: var(--soft);
  color: var(--accent);
}
.contact-section {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row small,
.task-list small,
.deal-card small {
  display: block;
  color: var(--muted);
}
.contact-row .actions {
  margin: 0;
  justify-content: flex-end;
}
.crm-toolbar .grid {
  margin-bottom: 10px;
}
.kanban {
  padding-bottom: 18px;
  gap: 16px;
  align-items: stretch;
  scroll-snap-type: x proximity;
}
.column {
  min-width: 265px;
  width: 285px;
  padding: 12px;
  scroll-snap-align: start;
  border: 1px solid transparent;
}
.column-heading {
  padding: 4px 4px 14px;
}
.column-heading h3 {
  font-size: 14px;
  margin: 0;
}
.column.drag-over {
  border: 2px dashed var(--accent);
  background: var(--soft);
}
.deal-stack {
  min-height: 150px;
}
.deal-card {
  cursor: grab;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  touch-action: pan-y;
}
.deal-card:active {
  cursor: grabbing;
}
.deal-card.dragging {
  opacity: 0.4;
}
.deal-open {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border: 0;
  box-shadow: none;
  font-weight: 650;
  margin: 8px 0;
  line-height: 1.45;
}
.deal-open:hover {
  color: var(--accent);
  background: transparent;
}
.deal-value {
  display: block;
  margin-top: 10px;
}
.deal-card p {
  margin: 6px 0;
}
.deal-move {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.drop-hint {
  text-align: center;
  padding: 20px 6px;
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
}
.label-chip {
  font-size: 11px;
}
.label-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
fieldset {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.overdue {
  color: #a22b23 !important;
}
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.timeline article {
  margin: 16px 0;
  border-left: 3px solid var(--border);
  padding-left: 14px;
}
.timeline p {
  white-space: pre-wrap;
}
progress {
  width: 100%;
  height: 16px;
  accent-color: var(--accent);
  margin: 12px 0;
}
.media-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  max-height: 450px;
  overflow: auto;
}
.media-library figure {
  margin: 0;
}
.media-library img,
.media-library video {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 8px;
}
.media-library figcaption {
  font-size: 11px;
  word-break: break-word;
}
.placement-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.placement-zone {
  min-height: 180px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 14px;
}
.placement-zone h3 {
  font-size: 14px;
}
.placement-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  cursor: grab;
  display: grid;
  gap: 8px;
}
.brand-image {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}
.campaign-zone {
  display: grid;
  gap: 14px;
  width: 100%;
}
.campaign {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.campaign img,
.campaign video {
  display: block;
  max-height: 360px;
  width: 100%;
  object-fit: contain;
}
.campaign-copy {
  padding: 18px;
}
.campaign-copy h3 {
  margin: 0 0 8px;
}
.campaign-copy p {
  white-space: pre-wrap;
}
.campaign-disclosure {
  display: block;
  padding: 6px 18px;
  color: var(--muted);
  background: var(--bg);
  font-size: 11px;
}
.sidebar .campaign-zone {
  margin-top: 24px;
}
.sidebar .campaign-copy {
  padding: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-row .actions {
    justify-content: flex-start;
  }
  .actions button,
  .actions a {
    max-width: 100%;
  }
  .column {
    min-width: 260px;
  }
  .media-library {
    grid-template-columns: 1fr 1fr;
  }
}

/* Theme colors also cover dense operational surfaces. */
input,
select,
textarea,
.table-wrap,
.deal,
.secondary,
dialog {
  background: var(--surface);
  color: var(--ink);
}
.topbar {
  background: var(--surface);
}
.column {
  background: color-mix(in srgb, var(--bg), var(--ink) 3%);
}
thead {
  background: var(--bg);
}
.nav a {
  color: var(--muted);
}
/* Keep dialog actions reachable while long profiles scroll independently. */
#modal[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 800px;
  padding: 24px;
  max-height: 90vh;
}
#modal-body {
  overflow-y: auto;
  min-height: 0;
  padding-right: 8px;
}
#modal > form[method="dialog"] {
  flex-shrink: 0;
  margin: 16px 0 0;
  padding: 12px 0 0;
  background: var(--surface);
}
.company-facts {
  gap: 16px 24px;
}
.company-facts p {
  margin: 4px 0 8px;
}
.contact-section {
  margin: 16px 0;
  padding: 16px 0;
}
.task-list .step > button {
  margin-left: auto;
}

.suggestions {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.suggestions [role="option"] {
  overflow-wrap: anywhere;
}

.sidebar {
  overflow-y: auto;
}
.auth-main {
  flex-direction: column;
  gap: 24px;
}
/* Discovery, finance and notifications */
.preset-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
  margin-bottom: 16px;
}
.preset-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.preset-pair {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #dbe3e5;
  border-radius: 9px;
  padding: 3px;
}
.preset-pair button {
  margin: 0;
}
.preset-badge.selected,
button.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.niche-field {
  position: relative;
  max-width: 650px;
}
.niche-field .suggestions {
  z-index: 30;
}
.product-tile {
  padding: 22px;
  border: 1px solid #dbe3e5;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}
.product-tile p {
  margin: 0;
}
.product-price {
  font-size: 26px;
  font-weight: 750;
}
.delivery-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 0;
}
.delivery-metrics span {
  padding: 8px 12px;
  background: #f3f6f5;
  border-radius: 8px;
}
.notice {
  padding: 18px;
  border: 1px solid #dbe3e5;
  border-radius: 10px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.notice.unread {
  border-left: 4px solid var(--accent);
  background: #f2faf7;
}
.notice h3 {
  margin: 0 0 10px;
}
.notice p {
  white-space: pre-wrap;
}
.finance-series {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.finance-series > div {
  border: 1px solid #dbe3e5;
  padding: 16px;
  border-radius: 10px;
}
.row.wrap {
  flex-wrap: wrap;
  gap: 12px;
}
.product-tile button {
  align-self: flex-start;
}
.main .grid > * {
  min-width: 0;
}
.main .actions {
  flex-wrap: wrap;
  gap: 10px;
}
.topbar {
  gap: 12px;
}
.niche-field input {
  width: 100%;
}
@media (max-width: 760px) {
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .preset-bar .between {
    flex-wrap: wrap;
  }
  .preset-pair {
    max-width: 100%;
  }
  .preset-badge {
    white-space: normal;
    text-align: left;
  }
  .delivery-metrics {
    gap: 6px;
  }
}
/* TULLEM ecosystem: shared quiet cards and purposeful glass. */
.commercial-connection{margin-top:24px}.commercial-connection input{display:block;width:100%;margin:15px 0;padding:12px}.card{border-radius:16px;box-shadow:0 8px 30px #203d2c06}.button,button,input,select,textarea{border-radius:10px}.sidebar{backdrop-filter:blur(20px)}
