@import "./tokens.css";

* {
  box-sizing: border-box;
}
html {
  font-size: 100%;
}
body {
  overflow: hidden;
  margin: var(--space-0);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  font-weight: var(--weight-regular);
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
textarea {
  transition:
    background-color var(--motion-hover) var(--motion-easing),
    border-color var(--motion-hover) var(--motion-easing);
}
:focus-visible {
  outline: var(--focus-width) solid var(--ring);
  outline-offset: var(--focus-width);
}
button:focus:not(:focus-visible),
main:focus {
  outline: none;
}
h1,
h2,
h3,
p {
  margin: var(--space-0);
}
h1 {
  font-size: var(--text-title);
  line-height: var(--line-title);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}
h2,
h3,
.component-title {
  font-size: var(--text-body);
  line-height: var(--line-body);
  font-weight: var(--weight-semibold);
}
strong {
  font-weight: var(--weight-semibold);
}
svg {
  flex-shrink: 0;
}
.muted {
  color: var(--muted-foreground);
}
.caption {
  font-size: var(--text-caption);
  line-height: var(--line-caption);
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: var(--space-0);
  margin: var(--space-0);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  transform: translateY(-200%);
  z-index: var(--z-notification);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: var(--space-3);
  border-radius: var(--radius-control);
}
.skip-link:focus {
  transform: none;
}
.app-shell {
  height: 100dvh;
  display: flex;
}
.sidebar {
  position: fixed;
  inset-block: var(--space-0);
  inset-inline-start: var(--space-0);
  width: var(--width-sidebar);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-inline-end: var(--border-width) solid var(--border);
  padding: var(--space-4);
  z-index: var(--z-navigation);
}
.brand {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  padding: var(--space-1) var(--space-3) var(--space-0);
  height: var(--space-12);
  overflow: hidden;
  margin-block-end: var(--space-4);
}
.brand img {
  width: var(--width-logo);
  height: auto;
}
.brand-identity {
  display: flex;
  align-items: center;
  width: var(--width-logo);
  height: var(--space-10);
}
.brand-company {
  display: block;
  width: var(--width-logo);
  height: var(--space-10);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-company[data-company="Magnolia"] {
  display: flex;
  align-items: center;
}
.brand-identity--all {
  gap: var(--space-2);
  width: 100%;
}
.brand-identity--all .brand-company {
  width: var(--width-logo-pair);
  height: var(--space-6);
}
.brand-identity--all .brand-company img {
  width: 100%;
}
.brand-divider {
  height: var(--space-6);
  border-inline-start: var(--border-width) solid var(--control-border);
}
.logo-light {
  display: block;
}
.logo-dark {
  display: none;
}
:root[data-theme="dark"] .logo-light {
  display: none;
}
:root[data-theme="dark"] .logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .logo-light {
    display: none;
  }
  :root[data-theme="system"] .logo-dark {
    display: block;
  }
}
.sidebar nav {
  display: grid;
  gap: var(--space-1);
}
.nav-link {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-height: var(--space-10);
  padding: var(--space-2) var(--space-3);
  border: none;
  border-radius: var(--radius-control);
  color: var(--muted-foreground);
  background: transparent;
  text-align: start;
  width: 100%;
}
.nav-link:hover {
  background: var(--surface);
  color: var(--foreground);
}
.nav-link.active {
  background: var(--selected);
  color: var(--selected-foreground);
  font-weight: var(--weight-medium);
  box-shadow: inset var(--space-1) 0 var(--primary);
}
.nav-count {
  margin-inline-start: auto;
  color: var(--warning);
  background: var(--warning-background);
  border-radius: var(--radius-pill);
  padding-inline: var(--space-2);
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-block-start: auto;
  padding-block-start: var(--space-8);
}

.app-body {
  min-height: 0;
  margin-inline-start: var(--width-sidebar);
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  flex-shrink: 0;
  height: var(--height-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-inline: var(--space-8);
  border-block-end: var(--border-width) solid var(--border);
  background: var(--card);
}
.topbar-location,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.topbar-location {
  white-space: nowrap;
}
.topbar-location > svg {
  color: var(--muted-foreground);
}
.scope-picker {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  border-inline-start: var(--border-width) solid var(--border);
  padding-inline-start: var(--space-4);
}
.scope-picker .select-trigger {
  border-color: transparent;
  background: transparent;
  padding-inline: var(--space-4);
  gap: var(--space-3);
  min-width: var(--width-business-picker);
}
.mobile-menu {
  display: none !important;
}
main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}
.page-content {
  padding: var(--space-6);
  max-width: var(--width-content);
  margin-inline: auto;
}
.page-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-end: var(--space-4);
}
.page-start > :not(.page-actions) {
  flex: 1;
  min-width: 0;
  margin-block-end: var(--space-0);
}
.page-start.stacked {
  flex-direction: column;
  align-items: stretch;
}
.page-start.stacked > .page-actions {
  order: 0;
  align-self: flex-end;
}
.page-actions {
  display: flex;
  order: 2;
  flex-shrink: 0;
  flex-wrap: wrap;
  max-width: 100%;
  gap: var(--space-2);
}
.topbar-location h1 {
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  font-weight: var(--weight-regular);
  letter-spacing: normal;
}
.button-group,
.record-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--height-control);
  border: var(--border-width) solid transparent;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
  font-weight: var(--weight-medium);
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  background: transparent;
  text-align: center;
}
.button.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.button.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.button.primary:active:not(:disabled) {
  background: var(--primary-pressed);
}
.button.secondary {
  background: var(--card);
  border-color: var(--control-border);
}
.button.secondary:hover:not(:disabled),
.button.ghost:hover:not(:disabled) {
  background: var(--surface);
}
.button.secondary:active:not(:disabled),
.button.ghost:active:not(:disabled) {
  background: var(--selected);
}
.button.danger {
  background: var(--destructive);
  color: var(--card);
}
.button.danger:hover {
  background: var(--destructive-hover);
}
.icon-button {
  width: var(--height-toolbar);
  min-width: var(--height-toolbar);
  height: var(--height-toolbar);
  border: none;
  background: transparent;
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1);
}
.icon-button:hover {
  background: var(--surface);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--primary);
  border: none;
  background: transparent;
  padding: var(--space-0);
  text-align: start;
  overflow-wrap: anywhere;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}
.link-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  font-weight: var(--weight-medium);
}
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: var(--border-width) solid var(--border);
  padding-block: var(--space-3);
  margin-block-end: var(--space-6);
}
.metrics-strip.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: var(--space-6);
}
.metrics-strip.six .metric:nth-child(3n) {
  border-inline-end: 0;
}
.metrics-strip.six .metric:nth-child(3n + 1) {
  padding-inline-start: var(--space-0);
}
.metrics-strip.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-inline: var(--space-6);
  border-inline-end: var(--border-width) solid var(--border);
}
.metric:first-child {
  padding-inline-start: var(--space-0);
}
.metric:last-child {
  border-inline-end: 0;
}
.metric > strong {
  font-size: var(--text-title);
  line-height: var(--line-title);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: var(--text-body);
  line-height: var(--line-body);
  font-weight: var(--weight-regular);
  color: var(--muted-foreground);
}
.panel {
  background: var(--card);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
}
.section-head > div {
  display: grid;
  gap: var(--space-1);
}
.section-head .button {
  min-height: var(--height-toolbar);
}
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--width-scorecard);
  gap: var(--space-4);
  margin-block-end: var(--space-6);
}
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-end: var(--space-6);
}
.scorecard {
  padding-block-end: var(--space-6);
}
.score-item {
  padding: var(--space-0) var(--space-6) var(--space-6);
}
.score-item > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-block-end: var(--space-3);
}
.score-item strong {
  font-size: var(--text-subsection);
  line-height: var(--line-subsection);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}
.score-item strong span {
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  color: var(--muted-foreground);
  font-weight: var(--weight-regular);
}
progress {
  width: 100%;
  height: var(--space-1);
  border: none;
  border-radius: var(--radius-indicator);
  background: var(--border);
  color: var(--primary);
  display: block;
}
progress::-webkit-progress-bar {
  background: var(--border);
  border-radius: var(--radius-indicator);
}
progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: var(--radius-indicator);
}
progress::-moz-progress-bar {
  background: var(--primary);
}
.scorecard > p {
  margin: var(--space-0) var(--space-6) var(--space-6);
}
.scorecard > .link-action {
  margin-inline: var(--space-6);
}
.tabs {
  display: flex;
  gap: var(--space-4);
  border-block-end: var(--border-width) solid var(--border);
  padding-inline: var(--space-6);
  overflow-x: auto;
}
.tabs > button {
  flex-shrink: 0;
  min-height: var(--height-toolbar);
  border: none;
  border-block-end: var(--focus-width) solid transparent;
  background: transparent;
  padding: var(--space-2) var(--space-0);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted-foreground);
}
.tabs > button[aria-pressed="true"] {
  color: var(--primary);
  border-block-end-color: var(--primary);
  font-weight: var(--weight-medium);
}
.tabs > button:hover {
  color: var(--foreground);
}
.tabs > button > span {
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  border-radius: var(--radius-indicator);
  padding: var(--space-0) var(--space-1);
  background: var(--surface);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.page-tabs {
  padding-inline: var(--space-0);
  margin-block-end: var(--space-4);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  min-height: var(--height-empty);
  text-align: center;
  gap: var(--space-3);
}
.empty-icon {
  color: var(--muted-foreground);
  display: grid;
  place-items: center;
  width: var(--space-12);
  height: var(--space-12);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-panel);
  margin-block-end: var(--space-1);
}
.empty h3 {
  font-weight: var(--weight-medium);
}
.empty p {
  max-width: 36ch;
  color: var(--muted-foreground);
}
.empty .button {
  margin-block-start: var(--space-1);
}
.work-panel .empty {
  min-height: var(--height-empty-work);
}
.task-list {
  padding-inline: var(--space-6);
}
.task-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-block-end: var(--border-width) solid var(--border);
}
.task-row:last-child {
  border: 0;
}
.task-check {
  width: var(--space-5);
  height: var(--space-5);
  border: var(--border-width) solid var(--control-border);
  color: transparent;
  background: var(--card);
  border-radius: var(--radius-indicator);
  flex-shrink: 0;
  padding: var(--space-0);
  display: grid;
  place-items: center;
}
.task-check:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.task-content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}
.task-content strong {
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
}
.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-indicator);
  background: var(--tone-background);
  color: var(--tone-foreground);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  overflow-wrap: anywhere;
}
.timeline {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-0) var(--space-6) var(--space-6);
}
.timeline-row {
  display: flex;
  gap: var(--space-3);
}
.timeline-row > div {
  min-width: 0;
  flex: 1;
}
.timeline-row p {
  margin-block: var(--space-2);
  color: var(--body);
  overflow-wrap: anywhere;
}
.timeline-icon {
  flex-shrink: 0;
  width: var(--space-8);
  height: var(--space-8);
  display: grid;
  place-items: center;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.attention-list {
  padding: var(--space-0) var(--space-6) var(--space-4);
}
.attention-list > button,
.attention-list > a {
  width: 100%;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  border: none;
  border-block-end: var(--border-width) solid var(--border);
  background: transparent;
  padding-block: var(--space-3);
  text-align: start;
}
.attention-list > button > span,
.attention-list > a > span {
  display: grid;
  gap: var(--space-1);
}
.attention-list > button:last-child,
.attention-list > a:last-child {
  border: 0;
}
.pipeline-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-end: var(--space-6);
}
.pipeline-summary strong {
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-medium);
  font-size: var(--text-subsection);
  line-height: var(--line-subsection);
}
.vertical-rule {
  height: var(--space-4);
  width: var(--border-width);
  background: var(--border);
  margin-inline: var(--space-3);
}
.toolbar {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  margin-block-end: var(--space-4);
}
.toolbar .select-trigger {
  min-height: var(--height-toolbar);
}
.toolbar-count {
  margin-inline-start: auto;
}
.search-box {
  display: flex;
  align-items: center;
  position: relative;
  gap: var(--space-2);
  min-height: var(--height-toolbar);
  width: var(--width-search);
  max-width: 100%;
  border: var(--border-width) solid var(--control-border);
  border-radius: var(--radius-control);
  background: var(--card);
  padding-inline: var(--space-3);
  color: var(--muted-foreground);
}
.search-box:focus-within {
  outline: var(--focus-width) solid var(--ring);
  outline-offset: var(--focus-width);
}
.search-box input {
  outline: none;
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  height: var(--height-toolbar);
  padding: var(--space-0);
  color: var(--foreground);
}
.search-hint {
  pointer-events: none;
  position: absolute;
  inset-inline-start: var(--space-10);
}
.board-scroll {
  overflow-x: auto;
  padding-block-end: var(--space-2);
}
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: var(--width-pipeline-min);
}
.pipeline-column {
  overflow: hidden;
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-control);
  min-height: var(--height-pipeline-column);
}
.pipeline-column.drop-target {
  outline: var(--focus-width) solid var(--ring);
  outline-offset: calc(-1 * var(--focus-width));
}
.column-heading {
  padding: var(--space-4) var(--space-3);
  border-block-end: var(--border-width) solid var(--border);
}
.column-heading > div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-end: var(--space-2);
}
.column-heading h2 {
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  font-weight: var(--weight-medium);
}
.column-heading > strong {
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  font-variant-numeric: tabular-nums;
}
.column-count {
  margin-inline-start: auto;
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
}
.stage-dot {
  display: inline-block;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--tone-foreground);
  flex-shrink: 0;
}
.column-body {
  padding: var(--space-2);
  display: grid;
  align-content: start;
  gap: var(--space-2);
}
.column-empty {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-2);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  color: var(--muted-foreground);
}
.deal-card {
  background: var(--card);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-control);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.deal-card[draggable="true"] {
  cursor: grab;
}
.deal-title {
  border: none;
  background: transparent;
  padding: var(--space-0);
  text-align: start;
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
  color: var(--primary);
}
.deal-card > strong {
  font-weight: var(--weight-medium);
}
.deal-next {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
}
.deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-block-start: var(--space-2);
  border-block-start: var(--border-width) solid var(--border);
}
.board-note {
  margin-block-start: var(--space-4);
}
.table-scroll {
  overflow-x: auto;
}
.table-scroll table {
  border-collapse: collapse;
  width: 100%;
  text-align: start;
  font-size: var(--text-ui);
  line-height: var(--line-ui);
}
.table-scroll th {
  min-height: var(--height-touch);
  padding: var(--space-3);
  color: var(--muted-foreground);
  font-weight: var(--weight-medium);
  background: var(--surface);
  border-block-end: var(--border-width) solid var(--border);
  text-align: start;
  white-space: nowrap;
}
.table-scroll td {
  padding: var(--space-3) var(--space-3);
  border-block-end: var(--border-width) solid var(--border);
  min-width: var(--width-table-cell-min);
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.table-scroll tbody tr:last-child td {
  border-block-end: 0;
}
.table-scroll tbody tr:hover {
  background: var(--surface);
}
.numeric,
.table-scroll .numeric {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.record-link {
  color: var(--primary);
  background: none;
  border: none;
  padding: var(--space-0);
  font-weight: var(--weight-medium);
  text-align: start;
  overflow-wrap: anywhere;
}
.record-link:hover {
  text-decoration: underline;
}
.table-meta {
  display: block;
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  color: var(--muted-foreground);
  margin-block-start: var(--space-1);
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.inquiry-row,
.job-row {
  padding: var(--space-4);
  border-block-end: var(--border-width) solid var(--border);
}
.inquiry-row:last-child,
.job-row:last-child {
  border: 0;
}
.inquiry-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-end: var(--space-4);
}
.inquiry-heading p {
  color: var(--muted-foreground);
  margin-block-start: var(--space-1);
}
.inquiry-row > p {
  max-width: 65ch;
  white-space: pre-wrap;
  color: var(--body);
}
.inquiry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-block-start: var(--space-6);
}
.job-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-0);
}
dt {
  color: var(--muted-foreground);
}
dd {
  margin: var(--space-0);
  overflow-wrap: anywhere;
}
.job-details > div {
  display: grid;
  gap: var(--space-1);
}
.job-details > div:nth-child(n + 3) {
  grid-column: 1 / -1;
}
.job-details dd {
  white-space: pre-wrap;
}
.simple-stats {
  display: grid;
  margin: var(--space-0);
  padding: var(--space-0) var(--space-6) var(--space-6);
}
.simple-stats > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  border-block-end: var(--border-width) solid var(--border);
  padding-block: var(--space-3);
}
.simple-stats > div:last-child {
  border: none;
}
.simple-stats dd {
  text-align: end;
}
.select-trigger,
.date-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--height-control);
  padding: var(--space-1) var(--space-3);
  border: var(--border-width) solid var(--control-border);
  border-radius: var(--radius-control);
  background: var(--card);
  text-align: start;
}
.select-trigger:hover,
.date-trigger:hover {
  background: var(--surface);
}
.select-trigger[data-state="open"] {
  border-color: var(--control-border);
}
.select-panel,
.calendar-panel,
.error-popover {
  z-index: var(--z-notification);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-menu);
  background: var(--card);
  padding: var(--space-1);
  max-width: calc(100vw - var(--space-8));
  max-height: var(
    --radix-select-content-available-height,
    calc(100dvh - var(--space-8))
  );
  overflow-y: auto;
}
.select-panel {
  padding: var(--space-2);
  min-width: var(--radix-select-trigger-width, var(--width-menu-min));
}
.select-item {
  min-height: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-radius: var(--radius-indicator);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  outline: none;
  user-select: none;
}
.select-item[data-highlighted] {
  background: var(--surface);
}
.select-item[data-state="checked"] {
  background: var(--selected);
  color: var(--selected-foreground);
}
.calendar-panel {
  padding: var(--space-3);
}
.rdp-root {
  --rdp-accent-color: var(--primary);
  --rdp-today-color: var(--primary);
  --rdp-accent-background-color: var(--selected);
  --rdp-day-width: var(--height-touch);
  --rdp-day-height: var(--height-touch);
  --rdp-day_button-width: var(--height-touch);
  --rdp-day_button-height: var(--height-touch);
  --rdp-day_button-border-radius: var(--radius-control);
  --rdp-selected-border: var(--focus-width) solid var(--primary);
  font-family: var(--font-sans);
}
.rdp-caption_label {
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  font-weight: var(--weight-medium);
}
.rdp-selected {
  font-size: var(--text-ui);
  line-height: var(--line-ui);
  font-weight: var(--weight-medium);
}
.rdp-day_button {
  font-size: var(--text-ui);
  line-height: var(--line-ui);
}
.calendar-clear {
  width: 100%;
  min-height: var(--height-control);
  background: transparent;
  color: var(--primary);
  border: none;
  border-block-start: var(--border-width) solid var(--border);
  margin-block-start: var(--space-2);
}
.overlay {
  position: fixed;
  inset: var(--space-0);
  background: var(--overlay);
  z-index: var(--z-overlay);
  animation: overlay-in var(--motion-overlay) var(--motion-easing);
}
.modal {
  position: fixed;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: min(var(--width-dialog), calc(100vw - var(--space-8)));
  max-height: calc(100dvh - var(--space-8));
  overflow-y: auto;
  border: var(--border-width) solid var(--border);
  background: var(--card);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-dialog);
  padding: var(--space-6);
  z-index: var(--z-dialog);
}
.modal.wide {
  width: min(var(--width-dialog-wide), calc(100vw - var(--space-8)));
}
.modal.drawer {
  inset-inline: auto var(--space-0);
  inset-block: var(--space-0);
  transform: none;
  border-radius: var(--space-0);
  width: min(var(--width-drawer), 100vw);
  max-height: 100dvh;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-end: var(--space-6);
}
.modal-header > div {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.modal-header h2 {
  overflow-wrap: anywhere;
}
.modal-copy {
  color: var(--body);
  max-width: 65ch;
}
.modal-copy p {
  margin-block-start: var(--space-4);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-block-start: var(--border-width) solid var(--border);
  margin-block-start: var(--space-6);
  padding-block-start: var(--space-4);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field.full {
  grid-column: 1 / -1;
}
.field > label {
  font-weight: var(--weight-medium);
}
.requirement {
  color: var(--muted-foreground);
  font-weight: var(--weight-regular);
}
.field-control {
  position: relative;
}
.field input,
.field textarea,
.field .select-trigger,
.field .date-trigger {
  width: 100%;
  min-height: var(--height-control);
  background: var(--card);
  border: var(--border-width) solid var(--control-border);
  border-radius: var(--radius-control);
  padding: var(--space-1) var(--space-3);
}
.field textarea {
  min-height: var(--space-24);
  resize: vertical;
  padding-block: var(--space-2);
}
.field [aria-invalid="true"] {
  border-color: var(--destructive);
  padding-inline-end: var(--space-10);
}
.field-error {
  position: absolute;
  inset-inline-end: var(--space-2);
  inset-block-start: var(--space-2);
  background: var(--card);
  color: var(--destructive);
  border: none;
  display: grid;
  place-items: center;
  padding: var(--space-0);
}
.error-popover {
  max-width: 24ch;
  padding: var(--space-3);
  color: var(--destructive);
}
.review-list {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-0);
}
.review-list > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4);
}
.review-list dd {
  white-space: pre-wrap;
}
.record-drawer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.record-drawer-content .record-actions {
  margin-block-end: var(--space-0);
}
.record-drawer-content .tabs {
  padding-inline: var(--space-0);
}
.record-drawer-content .simple-stats {
  padding: var(--space-0);
}
.record-drawer-content .section-head {
  padding: var(--space-0);
  margin-block-end: var(--space-4);
}
.record-value {
  font-size: var(--text-title);
  line-height: var(--line-title);
  font-weight: var(--weight-medium);
}
.record-section {
  padding-block-start: var(--space-6);
  border-block-start: var(--border-width) solid var(--border);
}
.record-section > h3 {
  margin-block-end: var(--space-3);
}
.record-section > p + p {
  margin-block-start: var(--space-3);
}
.related-list {
  display: grid;
}
.related-list > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: none;
  border-block-end: var(--border-width) solid var(--border);
  padding: var(--space-3) var(--space-0);
  background: transparent;
  text-align: start;
}
.related-list > button > span {
  display: grid;
  gap: var(--space-1);
}
.related-list > button:hover {
  color: var(--primary);
}
.contact-record {
  border-block-start: var(--border-width) solid var(--border);
  padding-block: var(--space-4);
}
.contact-record > p {
  color: var(--muted-foreground);
  margin-block-start: var(--space-2);
}
.record-tags {
  display: flex;
  gap: var(--space-2);
  margin-block: var(--space-3);
}
.next-action-block {
  border-block: var(--border-width) solid var(--border);
  padding-block: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.next-action-block > div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.next-action-block > .button {
  justify-self: start;
  padding-inline: var(--space-0);
}
.stage-history {
  list-style: none;
  margin: var(--space-0);
  padding: var(--space-0);
  display: grid;
  gap: var(--space-4);
}
.stage-history > li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.stage-history .caption {
  margin-inline-start: auto;
}
.record-drawer-content .timeline {
  padding: var(--space-0);
}
.system-alert,
.form-alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-width) solid var(--destructive);
  color: var(--destructive);
  background: var(--destructive-background);
  border-radius: var(--radius-control);
  margin-block-end: var(--space-6);
}
.system-alert {
  align-items: flex-start;
}
.system-alert p {
  flex: 1;
}
.form-alert {
  margin-block-start: var(--space-4);
  margin-block-end: var(--space-0);
}
.toast-region {
  position: fixed;
  inset-inline-end: var(--space-6);
  inset-block-end: var(--space-6);
  z-index: var(--z-notification);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--card);
  border: var(--border-width) solid var(--border);
  box-shadow: var(--shadow-menu);
  border-radius: var(--radius-control);
  max-width: var(--width-toast);
}
.toast > span {
  flex: 1;
}
.mobile-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 75dvh;
}
.mobile-sidebar .brand {
  display: none;
}
.mobile-sidebar nav {
  display: grid;
  gap: var(--space-1);
}
@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1536px) {
  .today-grid {
    grid-template-columns: minmax(0, 1fr) var(--width-scorecard-wide);
  }
}
@media (max-width: 1279px) {
  .today-grid {
    grid-template-columns: minmax(0, 1fr) var(--width-scorecard-compact);
  }
  .metric {
    padding-inline: var(--space-4);
  }
}
@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }
  .app-body {
    margin-inline-start: var(--space-0);
  }
  .mobile-menu {
    display: inline-flex !important;
  }
  .page-content {
    padding: var(--space-6);
  }
  .topbar {
    padding-inline: var(--space-6);
  }
}
@media (max-width: 767px) {
  .page-start {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .page-actions {
    align-self: flex-end;
  }
  .page-content {
    padding: var(--space-4);
  }
  .topbar {
    padding-inline: var(--space-4);
  }
  .topbar-actions {
    gap: var(--space-1);
  }
  .topbar-location {
    gap: var(--space-2);
  }
  .topbar-location > .muted,
  .topbar-location > svg {
    display: none;
  }
  .scope-picker {
    border: none;
    padding-inline-start: var(--space-0);
  }
  .scope-picker > svg {
    display: none;
  }
  .scope-picker .select-trigger {
    min-width: 0;
  }
  .today-grid,
  .two-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }
  .metrics-strip,
  .metrics-strip.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-6);
  }
  .metrics-strip.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric {
    padding-inline: var(--space-4);
  }
  .metric:nth-child(odd),
  .metrics-strip.six .metric:nth-child(odd) {
    padding-inline-start: var(--space-0);
  }
  .metrics-strip.six .metric:nth-child(odd) {
    border-inline-end: var(--border-width) solid var(--border);
  }
  .metrics-strip.six .metric:nth-child(even) {
    padding-inline-start: var(--space-4);
  }
  .metric:nth-child(even),
  .metrics-strip.six .metric:nth-child(even) {
    border-inline-end: 0;
  }
  .metrics-strip.three .metric {
    border-inline-end: 0;
    padding-inline: var(--space-0);
  }
  .section-head {
    padding: var(--space-4);
  }
  .section-head > .text-link {
    font-size: var(--text-caption);
    line-height: var(--line-caption);
  }
  .tabs {
    padding-inline: var(--space-4);
    gap: var(--space-4);
  }
  .page-tabs {
    padding-inline: var(--space-0);
  }
  .empty {
    padding-inline: var(--space-4);
  }
  .score-item {
    padding-inline: var(--space-4);
  }
  .scorecard > p,
  .scorecard > .link-action {
    margin-inline: var(--space-4);
  }
  .timeline,
  .attention-list {
    padding-inline: var(--space-4);
  }
  .task-list {
    padding-inline: var(--space-4);
  }
  .task-row {
    flex-wrap: wrap;
  }
  .task-content {
    min-width: 60%;
  }
  .inquiry-footer {
    flex-wrap: wrap;
  }

  .toolbar {
    gap: var(--space-2);
  }
  .toolbar .search-box {
    flex-basis: 100%;
    width: 100%;
  }
  .toolbar-count {
    flex-basis: 100%;
  }
  .pipeline-board {
    grid-template-columns: repeat(6, var(--width-pipeline-column));
    min-width: 0;
    width: max-content;
  }
  .column-heading {
    padding: var(--space-4);
  }
  .inquiry-row,
  .job-row {
    padding: var(--space-4);
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal {
    padding: var(--space-6);
  }
  .modal.drawer {
    width: 100%;
  }
  .toast-region {
    inset-inline: var(--space-4);
    inset-block-end: var(--space-4);
  }
  .toast {
    max-width: 100%;
  }
  .job-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-panel {
    padding: var(--space-1);
  }
  .rdp-root {
    --rdp-day-width: var(--space-10);
    --rdp-day-height: var(--space-10);
    --rdp-day_button-width: var(--space-10);
    --rdp-day_button-height: var(--space-10);
  }
}
@media (max-width: 639px) {
  .topbar-location > span,
  .topbar-location h1 {
    display: none;
  }
  .rdp-root {
    --rdp-day-width: var(--height-control);
    --rdp-day-height: var(--height-control);
    --rdp-day_button-width: var(--height-control);
    --rdp-day_button-height: var(--height-control);
  }
}
@media (pointer: coarse) {
  .button,
  .icon-button,
  .select-trigger,
  .date-trigger,
  .tabs > button,
  .nav-link,
  .select-item,
  .calendar-clear {
    min-height: var(--height-touch);
  }
  .icon-button {
    min-width: var(--height-touch);
  }
  .task-check {
    min-width: var(--height-touch);
    min-height: var(--height-touch);
  }
  .field input,
  .field textarea {
    min-height: var(--height-touch);
    font-size: var(--text-body);
    line-height: var(--line-body);
  }
  .record-link,
  .text-link {
    min-height: var(--height-touch);
  }
  .field-error {
    min-width: var(--height-touch);
    min-height: var(--height-touch);
    inset-block-start: var(--space-0);
    inset-inline-end: var(--space-0);
  }
  .search-box input {
    min-height: var(--height-touch);
    font-size: var(--text-body);
    line-height: var(--line-body);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .nav-link.active,
  .tabs > button[aria-pressed="true"],
  .select-item[data-state="checked"] {
    outline: var(--focus-width) solid Highlight;
    outline-offset: calc(-1 * var(--focus-width));
  }
  .stage-dot {
    border: var(--border-width) solid CanvasText;
  }
  .button.primary {
    border-color: ButtonText;
  }
}
@media print {
  html,
  body,
  .app-shell,
  .app-body,
  main {
    height: auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }
  .app-shell {
    display: block;
  }
  .sidebar,
  .topbar,
  .button,
  .toast-region,
  .skip-link,
  .toolbar,
  .page-tabs {
    display: none !important;
  }
  .app-body {
    margin-inline-start: var(--space-0);
  }
  .page-content {
    padding: var(--space-0);
    max-width: none;
  }
  .panel,
  .metrics-strip {
    break-inside: avoid;
  }
  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

[data-tone="neutral"] {
  --tone-foreground: var(--muted-foreground);
  --tone-background: var(--surface);
}
[data-tone="info"] {
  --tone-foreground: var(--selected-foreground);
  --tone-background: var(--selected);
}
[data-tone="warning"] {
  --tone-foreground: var(--warning);
  --tone-background: var(--warning-background);
}
[data-tone="success"] {
  --tone-foreground: var(--success);
  --tone-background: var(--success-background);
}
[data-tone="issue"] {
  --tone-foreground: var(--destructive);
  --tone-background: var(--destructive-background);
}
[data-tone="accent"] {
  --tone-foreground: var(--accent);
  --tone-background: var(--accent-background);
}
[data-tone="teal"] {
  --tone-foreground: var(--teal);
  --tone-background: var(--teal-background);
}
.metric-label,
.metric > strong {
  color: var(--tone-foreground);
}
.column-heading {
  color: var(--tone-foreground);
  background: var(--tone-background);
}
.column-heading .column-count {
  color: inherit;
}
.table-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

[data-tone="rose"] {
  --tone-foreground: var(--rose);
  --tone-background: var(--rose-background);
}

[data-tone="capex"] {
  --tone-foreground: var(--brand-capex);
  --tone-background: var(--brand-capex-background);
}
[data-tone="magnolia"] {
  --tone-foreground: var(--brand-magnolia);
  --tone-background: var(--brand-magnolia-background);
}
.business-label {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  vertical-align: middle;
}
.business-label[data-tone] {
  color: var(--tone-foreground);
}
.business-icon {
  display: block;
  flex-shrink: 0;
  width: var(--space-5);
  height: var(--space-5);
  object-fit: contain;
  border-radius: var(--radius-indicator);
  background: var(--brand-icon-background);
}
.scope-picker .select-trigger,
.scope-picker .select-trigger[data-state="open"] {
  border-color: transparent;
  background: transparent;
}
.scope-picker .select-trigger:hover,
.scope-picker .select-trigger[data-state="open"] {
  background: var(--surface);
}
:root[data-input="pointer"] :focus-visible {
  outline: none;
}
:root[data-input="keyboard"] .select-item[data-highlighted] {
  outline: var(--focus-width) solid var(--ring);
  outline-offset: calc(-1 * var(--focus-width));
}

.select-value,
.select-option-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: var(--line-ui);
}
.select-icon,
.select-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: var(--space-4);
  height: var(--space-4);
}
.select-viewport {
  display: grid;
  gap: var(--space-1);
}

.select-value > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.select-item > span:first-child {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: var(--line-ui);
}

.report-content {
  display: grid;
  gap: var(--space-4);
}
.report-content .metrics-strip {
  margin-block-end: var(--space-0);
}

.print-only {
  display: none;
}
@media print {
  .print-only {
    display: block;
    margin-block-end: var(--space-6);
  }
  .table-scroll {
    overflow: visible;
  }
  .table-scroll td,
  .table-scroll th {
    min-width: var(--space-0);
    white-space: normal;
  }
}

.settings-content {
  display: grid;
  gap: var(--space-4);
}
.settings-list {
  padding-inline: var(--space-4);
}
.settings-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-block-end: var(--border-width) solid var(--border);
}
.settings-row:last-child {
  border-block-end: none;
}
.settings-row > div {
  flex: 1;
  min-width: 0;
}
.checkbox-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.check-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--height-control);
}
.check-control input {
  accent-color: var(--primary);
}
@media (pointer: coarse) {
  .check-control {
    min-height: var(--height-touch);
  }
}
.settings-row p {
  margin-block: var(--space-1) var(--space-0);
}
.panel-note {
  padding: var(--space-0) var(--space-4) var(--space-4);
}
.menu-label {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
}
@media (max-width: 639px) {
  .settings-row {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .settings-row > div {
    flex-basis: 100%;
  }
}

.filter-menu {
  display: grid;
  gap: var(--space-3);
  width: var(--width-scorecard);
  padding: var(--space-4);
}
.filter-menu > button {
  width: 100%;
}

.scorecard .record-tags {
  margin: var(--space-0) var(--space-4) var(--space-4);
}

.access-layout {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6);
  overflow: auto;
}
.access-card {
  margin-block: auto;
  flex-shrink: 0;
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--width-dialog);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-panel);
  padding: var(--space-6);
  background: var(--card);
}
.access-logo {
  height: var(--space-12);
  overflow: hidden;
}
.access-logo img {
  width: var(--width-logo);
}
.credentials-form {
  display: grid;
  gap: var(--space-4);
}
.related-disclosure {
  padding: var(--space-3) var(--space-4);
  border-block-end: var(--border-width) solid var(--border);
}
.related-disclosure summary {
  cursor: pointer;
  font-weight: var(--weight-medium);
  color: var(--primary);
}

.waiting-inquiries {
  margin-block-end: var(--space-6);
}
.metric strong a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: var(--border-width);
  text-underline-offset: var(--space-1);
}

.account-menu .select-item {
  justify-content: flex-start;
  gap: var(--space-2);
}
.account-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-block-end: var(--border-width) solid var(--border);
}
.account-profile > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-pill);
  background: var(--selected);
  color: var(--selected-foreground);
  font-weight: var(--weight-medium);
}

.credential-feedback {
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
}
.credential-feedback:empty {
  display: none;
}
.credential-feedback.invalid {
  color: var(--destructive);
}

/* Shared searchable choices retain the existing token-based menu geometry. */
.searchable-picker {
  width: var(--radix-popover-trigger-width);
  min-width: var(--width-search);
  max-width: calc(100vw - var(--space-8));
}
.picker-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-bottom: var(--border-width) solid var(--border);
}
.picker-search input {
  width: 100%;
  min-width: 0;
  height: var(--height-control);
  padding: var(--space-2);
  background: var(--card);
  border: var(--border-width) solid var(--control-border);
  border-radius: var(--radius-control);
}
.searchable-picker .select-viewport {
  max-height: var(--width-scorecard);
  overflow-y: auto;
}
.searchable-picker .select-item {
  background: var(--card);
  width: 100%;
  text-align: left;
  color: inherit;
  border: 0;
  cursor: pointer;
}

.searchable-picker .select-item[aria-selected="true"] {
  background: var(--selected);
  color: var(--selected-foreground);
}

.searchable-picker .select-item[data-highlighted]:not([aria-selected="true"]) {
  background: var(--surface);
}

.today-grid.entry-only {
  grid-template-columns: minmax(0, 1fr);
}

.revenue-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.revenue-bars {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
}
.revenue-row > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}
.revenue-row strong {
  white-space: nowrap;
}
.value-bar {
  height: var(--space-2);
  margin-block-start: var(--space-2);
  background: var(--surface);
  border-radius: var(--radius-indicator);
  overflow: hidden;
}
.value-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}
@media (max-width: 1023px) {
  .revenue-panels {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-footer-action {
  margin-inline-end: auto;
}
.payment-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.payment-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-caption);
}
.payment-square {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: var(--space-4);
  height: var(--space-4);
  border: var(--border-width) solid currentColor;
  border-radius: var(--radius-indicator);
}
.payment-indicator[data-tone="danger"] .payment-square {
  color: var(--destructive);
  background: var(--destructive-background);
}
.payment-indicator[data-tone="success"] .payment-square {
  color: var(--success);
  background: var(--success-background);
}
