:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #647084;
  --line: #dce3ec;
  --cedar: #166b5d;
  --cedar-strong: #0f5147;
  --blue: #2f6fed;
  --amber: #b26b00;
  --red: #b42318;
  --green: #147447;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--cedar);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 0.42rem;
  font-weight: 700;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1rem, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.08rem;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.72rem;
  color: var(--muted);
}

.nav a {
  color: var(--ink);
  font-weight: 700;
}

.page {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  color: #ebeef4;
  background: #111317;
}

.app-stage {
  min-width: 0;
  background: #121418;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100vh;
  padding: 1.15rem 0.9rem;
  border-right: 1px solid #262a31;
  background: #15171b;
}

.app-shell .brand {
  color: #f5f6fa;
}

.sidebar-brand {
  padding: 0 0.55rem;
}

.company-switcher {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid #2a2e36;
  border-radius: var(--radius);
  background: #1a1d23;
}

.company-avatar,
.user-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  color: #fff;
  background: var(--cedar);
  font-size: 0.78rem;
  font-weight: 900;
}

.company-switcher > span:last-child,
.sidebar-user > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.company-switcher strong,
.company-switcher small,
.sidebar-user strong,
.sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-switcher small,
.sidebar-user small {
  color: #8f96a3;
  font-size: 0.73rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.25rem;
}

.sidebar-label {
  margin: 0.75rem 0.7rem 0.25rem;
  color: #8e949f;
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-link {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.65rem;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: #a4a9b2;
  font-size: 0.9rem;
  font-weight: 750;
}

.sidebar-link > span {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 5px;
  color: #858b97;
  background: #20242b;
  font-size: 0.62rem;
  font-weight: 900;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #ffffff;
  background: #22262d;
  text-decoration: none;
}

.sidebar-link.active > span {
  color: #fff;
  background: #e95a36;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
  padding: 0.8rem 0.55rem 0;
  border-top: 1px solid #2a2e36;
}

.user-avatar {
  border-radius: 50%;
  color: #fff;
  background: #e95a36;
}

.icon-logout {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.icon-logout:hover {
  color: var(--red);
  background: #fff0ef;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid #262a31;
  background: #15171b;
}

.app-topbar > div {
  display: grid;
  gap: 0.1rem;
}

.topbar-kicker {
  color: #8f96a3;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-page {
  width: min(1320px, calc(100vw - 280px));
  padding-top: 1.5rem;
}

.app-shell .dashboard-card,
.app-shell .panel,
.app-shell .card,
.app-shell .connection-empty,
.app-shell .metric-grid article,
.app-shell .new-tax-form,
.app-shell .tax-filing-list,
.app-shell .tax-questionnaire,
.app-shell .tax-rail,
.app-shell .assistant-panel,
.app-shell .assistant-side,
.app-shell .commerce-connector,
.app-shell .account-tile {
  color: #ebeef4;
  border-color: #2a2e36;
  background: #1d2026;
  box-shadow: none;
}

.app-shell input,
.app-shell select,
.app-shell textarea {
  color: #f5f6fa;
  border-color: #343943;
  background: #14171c;
}

.app-shell th,
.app-shell td,
.app-shell .record-list > div,
.app-shell .service-row,
.app-shell .action-row,
.app-shell .deadline-row,
.app-shell .recent-document,
.app-shell .card-footer,
.app-shell .partner-note,
.app-shell .tax-filing-tile {
  border-color: #2a2e36;
}

.app-shell .dashboard-welcome p,
.app-shell .workspace-head p,
.app-shell .panel p,
.app-shell .muted,
.app-shell .small-text,
.app-shell dt,
.app-shell .disclosure,
.app-shell .action-row small,
.app-shell .deadline-row small,
.app-shell .recent-document small,
.app-shell .service-row small,
.app-shell .tax-filing-tile small,
.app-shell .metric-grid article > span,
.app-shell .metric-grid article > small {
  color: #9aa1ad;
}

.app-shell a {
  color: #ff7a55;
}

.app-shell .button {
  border-color: #ec5b37;
  color: #fff;
  background: #ec5b37;
}

.app-shell .button:hover {
  background: #d84f2f;
}

.app-shell .button.secondary {
  color: #f5f6fa;
  border-color: #343943;
  background: #22262d;
}

.app-shell .button.secondary:hover {
  background: #2a2f38;
}

.welcome-console {
  display: grid;
  gap: 2rem;
  width: min(920px, 100%);
  margin: 1.2rem auto 0;
  padding-top: 1.5rem;
}

.welcome-title {
  display: grid;
  gap: 0.8rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid #2a2e36;
}

.welcome-title h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.15;
}

.welcome-title p {
  max-width: 680px;
  margin: 0;
  color: #a3a9b3;
  line-height: 1.6;
}

.start-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.start-choice-card {
  display: grid;
  gap: 1.3rem;
  padding: 1.35rem;
  border: 1px solid #2a2e36;
  border-radius: var(--radius);
  background: #202228;
}

.start-choice-card h2 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.18rem;
}

.start-choice-card p {
  margin: 0;
  color: #a3a9b3;
  line-height: 1.55;
}

.start-choice-card .button {
  width: 100%;
}

.discovery-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: min(920px, 100%);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #242830;
}

.discovery-rail span {
  width: 100%;
  color: #8e949f;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.discovery-rail a {
  padding: 0.55rem 0.75rem;
  border: 1px solid #2a2e36;
  border-radius: 6px;
  color: #c7cbd2;
  background: #191c22;
  font-weight: 800;
}

.discovery-rail a:hover {
  color: #fff;
  text-decoration: none;
  background: #22262d;
}

.product-console {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #2a2e36;
  border-radius: var(--radius);
  background: #1a1d23;
}

.product-console .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
}

.workflow-board {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #2a2e36;
  border-radius: var(--radius);
  background: #181b20;
}

.workflow-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.workflow-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 260px;
  padding: 1rem;
  border: 1px solid #303540;
  border-radius: var(--radius);
  background: #20242b;
}

.workflow-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.workflow-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.workflow-card p {
  margin: 0;
  color: #a3a9b3;
  line-height: 1.55;
}

.workflow-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: auto;
}

.workflow-card-actions form {
  margin: 0;
}

.product-console a,
.service-panel,
.address-card,
.mail-item,
.partner-card,
.reward-card,
.queue-row {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #303540;
  border-radius: var(--radius);
  color: #ebeef4;
  background: #20242b;
}

.product-console a {
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
}

.product-console a:hover {
  text-decoration: none;
  border-color: #ec5b37;
}

.product-console a small,
.service-panel small,
.address-card small,
.mail-item small,
.queue-row small {
  color: #9aa1ad;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 7px;
  color: #fff;
  background: #ec5b37;
  font-size: 0.72rem;
  font-weight: 900;
}

.service-section {
  margin-top: 1rem;
}

.service-panel-grid,
.address-grid,
.reward-grid,
.mail-list,
.queue-list {
  display: grid;
  gap: 0.8rem;
}

.address-grid,
.reward-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.address-card.selected {
  border-color: #ec5b37;
}

.mail-item,
.queue-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.mail-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.compact-actions {
  margin-left: auto;
}

.partner-card,
.reward-card {
  background: #1d2026;
}

.partner-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #c7cbd2;
  line-height: 1.55;
}

.reward-card h2,
.partner-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.dashboard-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.dashboard-welcome h1 {
  margin: 0.15rem 0 0.25rem;
  font-size: 2rem;
  line-height: 1.15;
}

.dashboard-welcome p {
  margin: 0;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-card {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.045);
}

.span-4 {
  grid-column: span 4;
}

.span-8 {
  grid-column: span 8;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading > div {
  display: grid;
  gap: 0.2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

.section-kicker {
  color: #78859a;
  font-size: 0.66rem;
  font-weight: 900;
}

.progress-number {
  font-size: 1.45rem;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8edf3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cedar);
}

.formation-milestones {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding: 1.35rem 0 0.8rem;
}

.formation-milestone {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-height: 76px;
  padding: 1rem 0.55rem 0 0;
  border-top: 2px solid var(--line);
}

.milestone-dot {
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #b7c1cf;
  border-radius: 50%;
  background: #fff;
}

.formation-milestone strong {
  font-size: 0.74rem;
  line-height: 1.3;
}

.formation-milestone small {
  color: var(--muted);
  font-size: 0.68rem;
}

.formation-milestone.complete {
  border-color: var(--green);
}

.formation-milestone.complete .milestone-dot {
  border-color: var(--green);
  background: var(--green);
}

.formation-milestone.current {
  border-color: var(--blue);
}

.formation-milestone.current .milestone-dot {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.13);
}

.formation-milestone.blocked {
  border-color: var(--red);
}

.formation-milestone.blocked .milestone-dot {
  border-color: var(--red);
  background: var(--red);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.count-pill {
  display: grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  color: var(--cedar-strong);
  background: #eaf5f2;
  font-size: 0.75rem;
  font-weight: 900;
}

.action-list,
.deadline-list,
.recent-documents,
.service-list {
  display: grid;
}

.action-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.action-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.action-row:hover {
  text-decoration: none;
}

.action-row > span:first-child {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #563400;
  background: #ffe5ae;
  font-size: 0.67rem;
  font-weight: 900;
}

.action-row.urgent > span:first-child {
  color: #fff;
  background: var(--red);
}

.action-row.calm > span:first-child {
  color: #fff;
  background: var(--green);
}

.action-row > div,
.recent-document > span:nth-child(2),
.service-row > span:nth-child(2),
.deadline-row > span:nth-child(2) {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.action-row small,
.deadline-row small,
.recent-document small,
.service-row small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.record-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.record-list > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.record-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.record-list dd {
  overflow-wrap: anywhere;
  font-weight: 750;
  text-align: right;
}

.record-list.compact > div {
  grid-template-columns: 1fr auto;
}

.service-row {
  display: grid;
  grid-template-columns: 0.7rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.service-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-indicator {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #a7b1c1;
}

.service-indicator.included {
  background: var(--green);
}

.service-row em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.partner-note {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.partner-note span,
.disclosure {
  color: var(--muted);
  line-height: 1.45;
}

.billing-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0.8rem;
  border-left: 3px solid var(--blue);
  background: #f1f6ff;
}

.billing-total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.billing-total strong {
  font-size: 1.25rem;
}

.disclosure {
  margin: 0.8rem 0;
  font-size: 0.72rem;
}

.deadline-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 3.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.deadline-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.deadline-row:hover {
  text-decoration: none;
}

.deadline-date {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  line-height: 1;
}

.deadline-date strong {
  font-size: 0.9rem;
}

.deadline-date small {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recent-document {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.8rem;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.recent-document:first-child {
  padding-top: 0;
  border-top: 0;
}

.document-type {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 2.2rem;
  border-radius: 4px;
  color: #315eaa;
  background: #eaf1fc;
  font-size: 0.6rem;
  font-weight: 900;
}

.recent-document > a {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 5px;
  color: var(--ink);
  background: #eef2f7;
  font-weight: 900;
}

.recent-document > a:hover {
  text-decoration: none;
  background: #e1e7ef;
}

.dashboard-bottom-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.dashboard-bottom-bar small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.empty-workspace {
  min-height: 220px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.empty-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-checklist span {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem;
  color: var(--muted);
  font-weight: 750;
}

.empty-checklist strong {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 0.72rem;
}

.product-head h1 {
  font-size: 2rem;
  line-height: 1.15;
}

.connection-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 240px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.connection-empty > div {
  max-width: 640px;
}

.connection-empty h2 {
  margin: 0.35rem 0;
  font-size: 1.45rem;
}

.connection-empty p {
  color: var(--muted);
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.metric-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid article {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.metric-grid article > span,
.metric-grid article > small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.metric-grid article > strong {
  overflow-wrap: anywhere;
  font-size: 1.45rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.account-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.account-tile .account-bank {
  color: var(--muted);
  font-size: 0.72rem;
}

.account-tile > strong {
  grid-column: 1;
}

.account-tile > b {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.2rem;
}

.account-tile .badge {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.workspace-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1rem;
  align-items: start;
}

.workspace-rail {
  display: grid;
  gap: 1rem;
}

.workspace-rail h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.1rem;
}

.transaction-table td:nth-child(2) {
  min-width: 190px;
}

.transaction-table td:nth-child(2) small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.transaction-table td:nth-child(4) {
  min-width: 310px;
}

.transaction-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
}

.transaction-form select {
  padding: 0.5rem;
}

.compact-check {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  white-space: nowrap;
  font-size: 0.75rem;
}

.compact-check input,
.document-check input {
  width: auto;
}

.money {
  white-space: nowrap;
  font-weight: 850;
}

.money.positive {
  color: var(--green);
}

.money.negative {
  color: var(--ink);
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

.assistant-panel,
.assistant-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.assistant-panel {
  min-height: 620px;
}

.assistant-messages {
  display: grid;
  gap: 1rem;
  min-height: 440px;
  padding: 1.2rem;
}

.assistant-empty {
  display: grid;
  place-items: center;
  align-content: center;
  max-width: 520px;
  margin: auto;
  text-align: center;
}

.assistant-empty h2 {
  margin-bottom: 0;
}

.assistant-empty p {
  color: var(--muted);
  line-height: 1.55;
}

.assistant-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.assistant-message {
  display: grid;
  gap: 0.35rem;
  width: min(88%, 720px);
}

.assistant-message.user {
  justify-self: end;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: #eef2f7;
}

.assistant-message.assistant {
  padding-left: 0.85rem;
  border-left: 3px solid var(--cedar);
}

.message-role {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.assistant-message p {
  margin: 0;
  line-height: 1.6;
}

.citation-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.citation-list a {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #bcd7ff;
  border-radius: 6px;
  background: #f1f7ff;
  font-size: 0.76rem;
}

.citation-list a:hover {
  text-decoration: none;
}

.citation-list small {
  color: var(--muted);
}

.assistant-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #f7f9fc;
}

.assistant-composer label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.assistant-side {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.assistant-side h2 {
  margin: 0.4rem 0;
  font-size: 1.05rem;
}

.assistant-side p {
  color: var(--muted);
  line-height: 1.5;
}

.approval-list,
.approval-row {
  display: grid;
  gap: 0.65rem;
}

.approval-row {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.approval-row > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.approval-row small {
  color: var(--muted);
}

.tax-overview {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.new-tax-form,
.tax-filing-list,
.tax-questionnaire,
.tax-rail {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.new-tax-form {
  grid-template-columns: 1fr 110px;
  align-items: end;
}

.new-tax-form button {
  grid-column: 1 / -1;
}

.tax-filing-list {
  align-content: start;
}

.tax-filing-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.8rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.tax-filing-tile:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tax-filing-tile > div,
.tax-filing-tile > small {
  display: grid;
  gap: 0.15rem;
}

.tax-filing-tile small {
  color: var(--muted);
}

.tax-filing-tile > small:last-child {
  grid-column: 1 / -1;
}

.tax-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.question-list,
.document-checklist {
  display: grid;
  gap: 0.8rem;
}

.document-checklist {
  margin-top: 0.6rem;
}

.document-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 500;
}

.document-check > span {
  display: grid;
  gap: 0.15rem;
}

.document-check small {
  color: var(--muted);
}

.tax-status-line {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.tax-status-line > span {
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid #aeb8c7;
  border-radius: 50%;
  background: #fff;
}

.tax-status-line > span.active {
  border-color: var(--green);
  background: var(--green);
}

.tax-disclaimer {
  padding: 0.8rem;
  border-left: 3px solid var(--amber);
  background: #fff7e8;
}

.tax-disclaimer p {
  margin-bottom: 0;
  color: #634719;
  font-size: 0.78rem;
  line-height: 1.5;
}

.commerce-connectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.commerce-connector {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.commerce-connector > span:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.commerce-connector small {
  color: var(--muted);
}

.provider-logo {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.commerce-connector:nth-child(2) .provider-logo {
  color: #302000;
  background: #ffd469;
}

.date-filter {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1rem;
}

.date-filter label {
  max-width: 170px;
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(9px, 1fr));
  gap: 0.25rem;
  align-items: end;
  height: 230px;
  overflow-x: auto;
  padding-top: 1rem;
  border-bottom: 1px solid var(--line);
}

.chart-column {
  display: grid;
  grid-template-rows: 1fr 1rem;
  align-items: end;
  height: 100%;
}

.chart-column > span {
  display: block;
  min-width: 8px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.chart-column small {
  display: none;
  color: var(--muted);
  font-size: 0.55rem;
  text-align: center;
}

.chart-column:nth-child(5n) small {
  display: block;
}

.badge.connected,
.badge.categorized,
.badge.reconciled,
.badge.review_ready,
.badge.closed,
.badge.founder_review,
.badge.ready_to_submit,
.badge.approved,
.badge.active,
.badge.scanned,
.badge.forwarded,
.badge.archived,
.badge.recycled,
.badge.opted_in,
.badge.registered,
.badge.accepted,
.badge.mapped {
  color: #fff;
  background: var(--green);
}

.badge.uncategorized,
.badge.in_progress,
.badge.questionnaire,
.badge.documents_pending,
.badge.preparation,
.badge.signature_required,
.badge.pending_approval,
.badge.notarization_required,
.badge.received,
.badge.scan_requested,
.badge.forward_requested,
.badge.archive_requested,
.badge.recycle_requested,
.badge.ready_to_send,
.badge.sent_to_partner,
.badge.partner_review,
.badge.more_info_required,
.badge.nexus_review,
.badge.registration_required,
.badge.threshold_close,
.badge.return_preparation,
.badge.ready_for_approval,
.badge.approved_to_file {
  color: #3f2a00;
  background: #ffd991;
}

.hero-grid,
.workspace-head,
.onboarding-grid,
.grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 70vh;
  padding: 2rem 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.hero-copy h1,
.workspace-head h1,
.panel h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.8rem);
  line-height: 0.98;
}

.hero-copy p,
.workspace-head p,
.panel p {
  color: var(--muted);
  line-height: 1.65;
}

.workflow-preview {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(22, 107, 93, 0.1), rgba(47, 111, 237, 0.08)),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.workflow-preview div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-preview strong {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #fff;
  background: var(--cedar);
}

.workspace-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 1rem 0;
}

.panel,
.card,
.notice,
.checkout-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel,
.card {
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.panel.narrow {
  width: min(100%, 460px);
  margin: 3rem auto;
}

.stack {
  display: grid;
  gap: 1rem;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onboarding-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.flow {
  display: grid;
  gap: 1rem;
}

.step-panel {
  position: relative;
  padding-top: 2.8rem;
}

.step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.state-grid,
.plan-grid,
.doc-grid {
  display: grid;
  gap: 0.85rem;
}

.state-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-grid,
.doc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  min-height: 100%;
}

.choice-card:has(input:checked) {
  border-color: var(--cedar);
  outline: 3px solid rgba(22, 107, 93, 0.14);
}

.choice-card input[type="radio"] {
  width: auto;
}

.choice-title {
  font-weight: 900;
  font-size: 1.05rem;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 5rem 5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.segmented legend {
  margin: 0;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.segmented input {
  width: auto;
}

.recommendation {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0;
  padding: 0.9rem;
  border-left: 4px solid var(--cedar);
  background: #eef8f5;
  border-radius: var(--radius);
}

.cost-panel {
  position: sticky;
  top: 5rem;
}

.price {
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 900;
}

.cost-lines {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.65rem;
}

.cost-lines li,
.renewal,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.renewal {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.checkout-bar div {
  display: grid;
  gap: 0.2rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.74rem 1rem;
  border: 1px solid var(--cedar);
  border-radius: var(--radius);
  color: #fff;
  background: var(--cedar);
  font-weight: 900;
  cursor: pointer;
}

.button:hover {
  background: var(--cedar-strong);
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.secondary:hover {
  background: #eef8f5;
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
}

.button.small {
  min-height: 2.2rem;
  padding: 0.42rem 0.75rem;
}

.button.full,
.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.inline-form {
  display: inline;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.actions.compact {
  justify-content: space-between;
  margin-top: 1rem;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  color: var(--ink);
  background: #eaf0f8;
  font-weight: 900;
  font-size: 0.78rem;
}

.badge.ok,
.badge.completed,
.badge.accepted,
.badge.bank_ready,
.badge.sandbox_paid {
  color: #fff;
  background: var(--green);
}

.badge.warning,
.badge.action_required,
.badge.upcoming,
.badge.state_submitted,
.badge.ein_submitted {
  color: #2f1b00;
  background: #ffd991;
}

.badge.error,
.badge.blocked,
.badge.rejected,
.badge.overdue {
  color: #fff;
  background: var(--red);
}

.badge.muted,
.badge.pending {
  color: var(--muted);
  background: #eef2f7;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-color: #bcd7ff;
  background: #eef6ff;
}

.notice.warning {
  border-color: #ffd991;
  background: #fff7e8;
}

.notice.error {
  border-color: #ffc9c5;
  background: #fff0ef;
}

.muted,
.small-text {
  color: var(--muted);
}

.small-text {
  font-size: 0.9rem;
}

.error-text {
  color: var(--red);
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  color: var(--cedar);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.link-card {
  color: var(--ink);
}

.link-card:hover {
  text-decoration: none;
  border-color: var(--cedar);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.75rem;
  padding: 0 0 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 0.58rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.timeline-item.completed .timeline-dot {
  border-color: var(--green);
  background: var(--green);
}

.timeline-item.blocked .timeline-dot {
  border-color: var(--red);
  background: var(--red);
}

.timeline-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.timeline-title h3,
.card h2,
.panel h2 {
  margin: 0.1rem 0;
}

.timeline dl,
.compact-dl {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.timeline dl div,
.compact-dl div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.document-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.document-card p {
  flex: 1;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  align-items: end;
  gap: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
}

.danger-zone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.autosave-state {
  margin-left: 0.7rem;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .dashboard-card.span-8 {
    grid-column: span 12;
  }

  .dashboard-card.span-4 {
    grid-column: span 6;
  }

  .workspace-columns,
  .assistant-layout,
  .tax-workspace,
  .analytics-layout {
    grid-template-columns: 1fr;
  }

  .workspace-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    height: auto;
    padding: 0.65rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .company-switcher,
  .sidebar-user,
  .sidebar-label {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
  }

  .sidebar-link {
    grid-template-columns: 1fr;
    white-space: nowrap;
  }

  .sidebar-link > span {
    display: none;
  }

  .app-page {
    width: min(100% - 2rem, 1320px);
  }

  .hero-grid,
  .workspace-head,
  .onboarding-grid,
  .grid.two,
  .grid.three,
  .state-grid,
  .plan-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .cost-panel {
    position: static;
  }

  .checkout-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .metric-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-overview {
    grid-template-columns: 1fr;
  }

  .product-console,
  .workflow-card-grid,
  .address-grid,
  .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sidebar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .sidebar-brand {
    justify-self: center;
  }

  .sidebar-nav {
    justify-content: flex-start;
  }

  .sidebar-link {
    min-height: 2.2rem;
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
  }

  .app-topbar {
    min-height: 54px;
    padding: 0.55rem 0.75rem;
  }

  .app-page {
    width: min(100% - 1rem, 1320px);
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-welcome h1 {
    font-size: 1.65rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-card.span-4,
  .dashboard-card.span-8 {
    grid-column: 1 / -1;
  }

  .dashboard-card {
    padding: 0.9rem;
  }

  .record-list > div {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .deadline-row {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .deadline-row .badge {
    grid-column: 2;
  }

  .dashboard-bottom-bar {
    grid-template-columns: 1fr;
  }

  .dashboard-bottom-bar small {
    grid-column: auto;
  }

  .empty-checklist {
    grid-template-columns: 1fr 1fr;
  }

  .connection-empty,
  .date-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid.four,
  .account-grid,
  .commerce-connectors,
  .workspace-rail,
  .product-console,
  .workflow-card-grid,
  .address-grid,
  .reward-grid,
  .start-choice-grid {
    grid-template-columns: 1fr;
  }

  .assistant-composer {
    grid-template-columns: 1fr;
  }

  .assistant-message {
    width: 100%;
  }

  .new-tax-form {
    grid-template-columns: 1fr;
  }

  .new-tax-form button {
    grid-column: auto;
  }

  .commerce-connector {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .commerce-connector > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .date-filter label {
    max-width: none;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.8rem;
  }

  .hero-copy h1,
  .workspace-head h1,
  .panel h1 {
    font-size: 2.15rem;
  }

  .panel,
  .card {
    padding: 0.9rem;
  }

  .segmented {
    grid-template-columns: 1fr 1fr;
  }

  .segmented legend {
    grid-column: 1 / -1;
  }

  .timeline dl div,
  .compact-dl div {
    grid-template-columns: 1fr;
  }
}
