@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&family=Noto+Sans:wght@400;500;700&display=swap");

:root {
  color-scheme: light;
  --ink: #12313c;
  --muted: #506b76;
  --line: #cbe0e7;
  --paper: #ecfeff;
  --surface: #ffffff;
  --surface-alt: #f4fbfc;
  --teal: #0891b2;
  --teal-dark: #0e7490;
  --blue: #0369a1;
  --cta: #059669;
  --cta-dark: #047857;
  --red: #b5473f;
  --amber: #a96d1a;
  --green: #2f7c55;
  --plum: #64506f;
  --shadow: 0 14px 34px rgba(8, 65, 82, 0.1);
  --shadow-soft: 0 8px 24px rgba(8, 65, 82, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(34, 211, 238, 0.45);
  outline-offset: 2px;
}

.app-hidden,
.auth-hidden {
  display: none !important;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(20, 32, 43, 0.95), rgba(20, 32, 43, 0.82)),
    url("https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.auth-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-width: 0;
  color: #ffffff;
}

.auth-brand {
  align-items: flex-start;
}

.auth-product h2 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-size: 48px;
  line-height: 1.02;
  text-wrap: balance;
}

.auth-product p {
  max-width: 690px;
  margin: 0;
  color: #d8e1ea;
  font-size: 17px;
  line-height: 1.6;
}

.auth-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
}

.auth-proof-grid div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  padding: 14px;
}

.auth-proof-grid strong,
.auth-proof-grid span {
  display: block;
}

.auth-proof-grid span {
  margin-top: 6px;
  color: #c7d3df;
  font-size: 13px;
  line-height: 1.45;
}

.auth-card {
  align-self: center;
  min-width: 0;
  width: min(100%, 500px);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  padding: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 4px;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.active {
  display: grid;
}

.auth-form .primary-action {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 264px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f1fbfd);
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  background: #cffafe;
  color: #155e75;
  font-weight: 800;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3,
.panel p,
.section-bar h3,
.section-bar p {
  margin: 0;
}

.brand h1 {
  font-size: 19px;
  line-height: 1.1;
}

.brand p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-group {
  margin: 12px 0 2px;
  color: #507787;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-item {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #315467;
  text-align: left;
  padding: 10px 12px;
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.nav-item:hover,
.nav-item.active {
  border-color: #bae6fd;
  background: #e0f7fb;
  color: #075985;
  box-shadow: 0 6px 14px rgba(8, 145, 178, 0.08);
}

.nav-item:active {
  transform: none;
}

.mode-panel {
  min-width: 0;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #e6f7fb;
}

.segment {
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #315467;
  font-size: 13px;
}

.segment.active {
  background: var(--cta);
  color: #ffffff;
}

.main {
  min-width: 0;
  padding: 26px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.workflow-step {
  display: grid;
  min-height: 78px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.workflow-step:hover,
.workflow-step.active {
  border-color: #67e8f9;
  background: #f0fdff;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.12);
}

.workflow-step span {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: #cffafe;
  color: #155e75;
  font-weight: 900;
}

.workflow-step.active span {
  background: var(--cta);
  color: #ffffff;
}

.workflow-step strong,
.workflow-step small {
  min-width: 0;
}

.workflow-step strong {
  font-size: 15px;
  line-height: 1.1;
}

.workflow-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.desk-hero,
.brief-panel,
.panel,
.kpi-card,
.workflow-card,
.integration-card,
.table-panel {
  min-width: 0;
}

.topbar,
.section-bar,
.panel-header,
.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h2 {
  margin-top: 4px;
  font-size: 38px;
  line-height: 1;
  text-wrap: balance;
}

.toolbar,
.search-wrap,
.section-actions,
.button-row,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 4px 4px 4px 12px;
}

.account-menu span {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select,
input,
textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}

.primary-action,
.ghost-button,
.icon-button,
.mini-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
  transition-property: background-color, border-color, box-shadow, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.primary-action:disabled,
.ghost-button:disabled,
.icon-button:disabled,
.mini-button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.primary-action {
  border: 1px solid var(--cta-dark);
  background: var(--cta);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.18);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.primary-action:hover,
.ghost-button:hover,
.mini-button:hover,
.icon-button:hover {
  box-shadow: var(--shadow-soft);
}

.primary-action:active,
.ghost-button:active,
.mini-button:active,
.icon-button:active {
  filter: brightness(0.98);
}

.icon-button {
  width: auto;
  min-width: 68px;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.dialog-close {
  padding: 0 12px;
}

.mini-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.subscription-card {
  display: grid;
  gap: 16px;
}

.subscription-card h3 {
  margin: 10px 0 4px;
  font-size: 28px;
  line-height: 1.05;
}

.subscription-card p {
  margin: 0;
  color: var(--muted);
}

.billing-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.billing-metrics div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 14px;
}

.billing-metrics strong,
.billing-metrics span {
  display: block;
}

.billing-metrics strong {
  font-size: 26px;
  line-height: 1;
}

.billing-metrics span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.danger {
  border-color: #f1bbb6 !important;
  color: var(--red) !important;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.desk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid #d6dfd7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 242, 236, 0.94)),
    radial-gradient(circle at top right, rgba(241, 210, 100, 0.35), transparent 34%);
  box-shadow: var(--shadow);
  padding: 22px;
}

.desk-hero h3 {
  max-width: 780px;
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-copy {
  max-width: 760px;
  margin: 12px 0 0;
  color: #4f5f6e;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.brief-panel {
  border: 1px solid rgba(20, 32, 43, 0.12);
  border-radius: 8px;
  background: #14202b;
  color: #ffffff;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.brief-kicker,
.brief-label {
  color: #b8c6d3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-number {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.brief-label {
  margin-top: 6px;
  text-transform: none;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.brief-grid div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 11px;
}

.brief-grid strong,
.brief-grid span {
  display: block;
}

.brief-grid strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.brief-grid span {
  margin-top: 3px;
  color: #b8c6d3;
  font-size: 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.kpi-card,
.panel,
.table-panel,
.workflow-card,
.integration-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi-card {
  min-height: 118px;
  padding: 18px;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kpi-value {
  margin-top: 14px;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-trend {
  margin-top: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
}

.desk-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
}

.action-panel {
  grid-row: span 2;
}

.panel {
  padding: 18px;
}

.panel h3,
.section-bar h3 {
  font-size: 18px;
}

.panel p,
.section-bar p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.leak-list,
.timeline,
.review-list,
.rules-list,
.compact-list,
.pipeline-list,
.recovery-board,
.readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.list-row,
.timeline-row,
.review-row,
.rule-row,
.action-card,
.readiness-row {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.list-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.list-row .badge,
.rule-row .badge,
.readiness-row .badge,
.card-footer .badge {
  justify-self: end;
}

.action-card {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  background: #ffffff;
}

.action-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #e7efe9;
  color: #1d5d46;
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.action-copy {
  min-width: 0;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.readiness-row {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
}

.readiness-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.readiness-dot.ready {
  background: var(--green);
}

.readiness-dot.needed {
  background: var(--amber);
}

.row-main,
.clickable-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.row-title {
  font-weight: 800;
  text-wrap: pretty;
}

.row-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  border: 0;
  display: inline-flex;
  justify-self: start;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.badge.red {
  background: #f9dedb;
  color: var(--red);
}

.badge.amber {
  background: #faedcd;
  color: #8a5a12;
}

.badge.green {
  background: #dff3e8;
  color: #226143;
}

.badge.blue {
  background: #dfebf8;
  color: var(--blue);
}

.section-bar {
  margin-bottom: 16px;
}

.table-panel {
  overflow: auto;
}

.table-action {
  cursor: pointer;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.workflow-grid,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.workflow-card,
.integration-card {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 18px;
}

.workflow-card h3,
.integration-card h3 {
  margin: 0;
  font-size: 18px;
}

.workflow-card p,
.integration-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.workflow-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  color: #344255;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--teal);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.toggle {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 160ms ease;
}

.toggle::after {
  content: "";
  width: 22px;
  height: 22px;
  margin-left: 3px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
}

.toggle.active {
  background: var(--teal);
}

.toggle.active::after {
  transform: translateX(20px);
}

.review-row {
  grid-template-columns: 1fr auto;
  text-align: left;
  cursor: pointer;
}

.review-row.selected {
  border-color: rgba(15, 118, 110, 0.42);
  background: #e4f5f1;
}

.stars {
  color: #9b6418;
  font-weight: 900;
}

.draft-box {
  min-height: 240px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  line-height: 1.6;
}

.inline-button {
  margin-left: 8px;
}

.bookings-panel,
.api-panel {
  margin-top: 18px;
}

.settings-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-form label,
.dialog-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dialog-fields {
  display: grid;
  gap: 14px;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  color: var(--ink) !important;
}

.checkbox-row input {
  min-height: auto;
}

pre {
  overflow: auto;
  margin: 18px 0 0;
  border-radius: 8px;
  background: #17232f;
  color: #e9f1f7;
  padding: 16px;
}

dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(23, 35, 47, 0.32);
  overflow: hidden;
  z-index: 50;
}

dialog::backdrop {
  background: rgba(18, 49, 60, 0.48);
}

.dialog-card {
  display: grid;
  gap: 0;
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 18px;
}

.dialog-fields,
.dialog-card > label,
.dialog-card > .checkbox-row {
  margin: 0 18px;
}

.dialog-card > label:first-of-type,
.dialog-fields {
  margin-top: 18px;
}

.dialog-card > label + label {
  margin-top: 14px;
}

.dialog-actions {
  position: sticky;
  bottom: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 14px 18px;
}

.dialog-card h3 {
  margin: 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: 360px;
  border: 1px solid #1f6b63;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(12px);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.api-events {
  margin-top: 14px;
}

@media (max-width: 1060px) {
  .auth-screen {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .auth-card {
    justify-self: stretch;
    width: 100%;
  }

  .auth-product h2 {
    font-size: 38px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: relative;
    max-height: none;
  }

  .nav-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-group {
    grid-column: 1 / -1;
  }

  .mode-panel {
    margin-top: 0;
  }

  .kpi-grid,
  .workflow-grid,
  .integration-grid,
  .workflow-strip,
  .two-col,
  .desk-hero,
  .desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-screen {
    padding: 16px;
  }

  .auth-product h2 {
    font-size: 31px;
  }

  .auth-product p {
    font-size: 15px;
  }

  .auth-proof-grid,
  .form-row,
  .billing-metrics {
    grid-template-columns: 1fr;
  }

  .main,
  .sidebar {
    padding: 16px;
  }

  .sidebar {
    gap: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .topbar,
  .section-bar,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar,
  .search-wrap,
  .section-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .toolbar select,
  .toolbar button,
  .account-menu,
  .search-wrap input,
  .section-actions button {
    width: 100%;
  }

  .account-menu {
    justify-content: space-between;
  }

  .kpi-grid,
  .workflow-grid,
  .integration-grid,
  .workflow-strip,
  .two-col,
  .desk-hero,
  .desk-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    overflow-x: auto;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-group {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .mode-panel {
    padding: 10px;
    overflow: hidden;
  }

  .segment {
    padding: 0 6px;
    font-size: 12px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions button {
    width: 100%;
  }

  .topbar h2 {
    font-size: 30px;
  }

  .desk-hero h3 {
    font-size: 26px;
  }

  .review-row,
  .list-row,
  .action-card,
  .readiness-row {
    grid-template-columns: 1fr;
  }

  .row-actions,
  .button-row {
    align-items: stretch;
    flex-wrap: wrap;
  }
}
