/* Gaman Workspace 1.0 — quiet, data-first productivity UI. */
:root {
  --ink: #20252e;
  --muted: #69717d;
  --line: #e6e9ec;
  --paper: #f6f7f8;
  --green: #24272c;
  --accent: #176d56;
  --mint: #e6f5ed;
  --blue: #2f80ed;
  --purple: #9571dc;
  --nav-width: 218px;
  --radius: 9px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
h1,
h2,
h3 {
  font-family: inherit;
  letter-spacing: -0.4px;
  font-weight: 650;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
.eyebrow {
  color: var(--muted);
  letter-spacing: 1.4px;
  font-size: 10px;
}
.muted,
.privacy {
  font-size: 12px;
  color: var(--muted);
}
a {
  color: var(--accent);
}
button,
input,
select {
  font-family: inherit;
}
input,
select {
  height: 40px;
  border-color: #dce1e5;
  background: #fff;
  border-radius: 7px;
  font-size: 13px;
}
input:hover,
select:hover {
  border-color: #b6c2ca;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #30866d;
  outline-offset: 3px;
}
input[type='checkbox'] {
  accent-color: var(--accent);
}
label {
  font-size: 12px;
  font-weight: 500;
  color: #505a67;
}
button {
  font-size: 12px;
  font-weight: 550;
  border-radius: 7px;
  padding: 10px 14px;
}
.primary {
  background: #26292e;
  border-color: #26292e;
  border-radius: 7px;
  box-shadow: 0 1px 2px #00000008;
  color: #fff;
}
.primary:hover:enabled {
  background: #41464f;
}
.secondary,
.export,
.logout-button {
  color: var(--ink);
  background: #fff;
  border-color: #dce1e5;
  border-radius: 7px;
  box-shadow: none;
}
.secondary:hover:enabled,
.export:hover {
  background: #f5f7f7;
}
.text-button {
  color: var(--accent);
}
.workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--nav-width);
  background: #f8f9f8;
  border-right: 1px solid var(--line);
  padding: 30px 14px 16px;
  gap: 0;
  overflow-y: auto;
  display: flex;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin: 0 10px;
}
.workspace-brand img {
  width: 119px;
  height: auto;
}
.workspace-brand > span {
  border-left: 1px solid #cdd3da;
  padding-left: 13px;
  font-size: 19px;
  letter-spacing: -1px;
  font-weight: 700;
  color: #276ead;
}
.workspace-product {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin: 11px 10px 30px;
  text-transform: uppercase;
}
.workspace-navigation {
  display: grid;
  gap: 5px;
}
.workspace-navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #505661;
  font-size: 13px;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 7px;
  min-height: 42px;
}
.workspace-navigation a:hover {
  background: #edf0ee;
}
.workspace-navigation a[aria-current] {
  background: var(--mint);
  color: #145b49;
  font-weight: 600;
}
.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}
.ui-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-caption {
  margin: 28px 12px 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #8a929b;
  font-size: 9px;
  letter-spacing: 1.4px;
}
.sidebar-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 24px 4px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.sidebar-identity > div {
  min-width: 0;
  flex: 1;
}
.sidebar-identity strong {
  font-weight: 550;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-identity small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.avatar {
  background: #e9eef1;
  color: #375064;
  font-size: 11px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.sidebar-identity button {
  width: 26px;
  padding: 3px;
  border: 0;
  background: none;
  color: var(--muted);
}
#workspace-admin-nav {
  margin-bottom: 32px;
}
body.workspace-authenticated {
  padding-left: var(--nav-width);
}
#app-header {
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.header-inner {
  max-width: 1700px;
  height: 62px;
  padding: 0 30px;
  gap: 16px;
}
.workspace-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #9aa1aa;
}
.workspace-breadcrumb a {
  color: #737b88;
  text-decoration: none;
}
.workspace-breadcrumb strong {
  font-weight: 500;
  color: #555d69;
}
.header-user {
  gap: 14px;
}
.header-user .user-copy,
.admin-header-link,
.header-user .logout-button,
.header-user .local {
  display: none;
}
.connection-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.connection-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3c8cf;
}
.connection-badge.is-ready::before {
  background: #168560;
}
.header-user .avatar {
  width: 30px;
  height: 30px;
}
#workspace-menu {
  display: none;
  width: 32px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px;
}
main {
  max-width: 1700px;
  margin: auto;
  padding: 28px 30px 24px;
}
.intro {
  padding: 0;
  background: none;
  color: var(--ink);
  box-shadow: none;
  margin: 0 0 24px;
  align-items: center;
  border-radius: 0;
}
.intro h1 {
  font-size: 30px;
  font-weight: 650;
  margin: 0 0 3px;
}
.intro .subtitle {
  color: var(--muted);
  font-size: 14px;
}
.intro .eyebrow,
.intro .version,
.feature-nav {
  display: none;
}
.workspace {
  display: block;
}
.workspace > aside {
  display: block;
  margin: 0;
}
.access {
  display: none;
}
.query-card {
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: 16px;
  border-radius: 0;
}
.query-card .section-title {
  display: none;
}
#query-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(220px, 1fr) 170px;
  gap: 16px;
  align-items: end;
  max-width: 900px;
  scroll-margin-top: 95px;
}
#query-form label {
  margin: 0 0 6px;
}
#query-form .years {
  gap: 12px;
}
#query-form .primary {
  height: 40px;
}
#query-form .primary span {
  display: none;
}
.query-card .demo-area {
  border: 0;
  padding: 0;
  margin: 9px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.demo-area .text-button {
  width: auto;
  padding: 0;
  font-size: 10px;
  font-weight: 500;
}
.card,
.table-card,
.analysis-card,
.feature-panel,
.benchmark-card {
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: none;
}
.progress-card {
  padding: 12px 14px;
  background: #fafbfa;
  margin-bottom: 18px;
  border-radius: 7px;
}
.progress-card > div {
  font-size: 12px;
  font-weight: 500;
}
.progress-card p {
  font-size: 11px;
  margin-top: 3px;
}
.signal {
  background: #6d9c89;
}
.empty {
  border-radius: 9px;
  background: #fff;
  border-color: var(--line);
  min-height: 340px;
}
.empty-icon {
  border-color: var(--line);
  background: var(--mint);
  color: #528c77;
  width: 48px;
  height: 48px;
  font-size: 30px;
  border-radius: 12px;
}
.empty h2 {
  font-size: 24px;
}
.empty-tags span {
  border-radius: 5px;
}
.result-heading {
  margin: 18px 0;
  align-items: flex-start;
}
.result-heading h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
}
.result-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.result-heading .muted {
  font-size: 11px;
}
.result-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.exports .export {
  font-size: 11px !important;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.exports a:first-child {
  background: #fff;
  border-color: #dce1e5;
  color: var(--ink);
}
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 20px;
  align-items: start;
}
.result-primary {
  min-width: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 0;
  margin: 0 0 16px;
  border-radius: 8px;
}
.metrics > div {
  padding: 0 20px;
}
.metrics strong {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 6px 0 2px;
  font-weight: 600;
  line-height: 1.2;
}
.metrics span {
  font-size: 11px;
}
.metrics small {
  font-size: 10px;
  margin-top: 6px;
}
.trend-good {
  color: #176b4c !important;
}
.trend-bad {
  color: #ad3c3c !important;
}
.trend-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}
.trend-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.trend-heading h3 {
  margin: 0;
  font-size: 15px;
}
.chart-tabs {
  display: flex;
  background: #f4f5f5;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 7px;
  gap: 3px;
}
.chart-tabs button {
  border: 1px solid transparent;
  color: var(--muted);
  background: none;
  width: auto;
  font-size: 11px;
  padding: 3px 12px;
  font-weight: 400;
}
.chart-tabs button[aria-pressed='true'] {
  background: var(--mint);
  color: #176d56;
  border-color: #c7e8d9;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 290px;
}
.chart-svg text {
  font-family: inherit;
  font-size: 11px;
  fill: #727d8b;
}
.chart-grid {
  stroke: #edf0f2;
  stroke-width: 1;
}
.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line.claims {
  stroke: var(--blue);
}
.chart-line.lawsuits {
  stroke: var(--purple);
}
.chart-line.projected {
  stroke-dasharray: 5 5;
}
.chart-point.claims {
  stroke: var(--blue);
  fill: var(--blue);
}
.chart-point.lawsuits {
  stroke: var(--purple);
  fill: var(--purple);
}
.chart-point.projected {
  fill: #fff;
  stroke-width: 2;
}
.chart-value.claims {
  fill: #2f80ed;
  font-size: 10px;
}
.chart-value.lawsuits {
  fill: #8565cf;
  font-size: 10px;
}
.chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.chart-legend > span::before {
  content: '';
  display: inline-block;
  width: 18px;
  border-top: 2px solid var(--blue);
  vertical-align: middle;
  margin-right: 7px;
}
.chart-legend > .legend-lawsuits::before {
  border-color: var(--purple);
}
.chart-legend > .legend-projection::before {
  border-color: #8996a4;
  border-top-style: dashed;
}
#trend-note {
  font-size: 10px;
  margin: 12px 0 0;
}
.table-title {
  justify-content: space-between;
  padding: 16px;
  flex-wrap: wrap;
}
.table-title h3 {
  font-size: 15px;
}
.table-title .ilt-toggle {
  position: static;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.ilt-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.scroll-hint {
  text-align: left;
  font-size: 10px;
  color: #89919a;
  margin: 0 16px 10px;
}
.table-scroll table {
  min-width: 1030px;
  font-size: 11px;
}
.table-scroll th {
  background: #f7f8f9;
  color: #697482;
  font-size: 9px;
  font-weight: 550;
  padding: 10px 9px;
  max-width: 105px;
  border-color: var(--line);
}
.table-scroll td {
  padding: 14px 9px;
  font-size: 11px;
  border-color: #edf0f2;
  color: var(--ink);
  font-weight: 400;
}
.table-scroll td:first-child {
  font-weight: 600;
}
.table-scroll th,
.table-scroll td {
  text-align: center;
}
.table-scroll th:first-child {
  background: #f7f8f9;
}
.table-scroll td:nth-child(3) {
  color: var(--ink);
  font-weight: 600;
}
tr.projection td,
tr.projection td:first-child {
  background: #f3f1fc;
  color: #51476b;
  border-color: #e1dcf3;
}
.projection-label {
  background: #e8e0fc;
  color: #7356b5;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 8px;
  margin-left: 4px;
  letter-spacing: 0;
}
.projection-factor {
  color: #7e788d;
  font-size: 8px;
}
.reading-notes {
  border-color: var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 0 16px;
}
.reading-notes > summary {
  font-size: 11px;
  padding: 12px 0;
  font-weight: 500;
}
.reading-notes .method {
  font-size: 11px;
  color: var(--muted);
}
#projection-note {
  background: #f6f3fc;
  border-color: #e6dff2;
  color: #6b5a88;
}
.executive-rail {
  gap: 14px;
}
.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  background: #fff;
}
.insight-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.insight-heading h3 {
  margin: 0;
  font-size: 16px;
}
.period-badge {
  background: #f4f5f6;
  color: #707885;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.executive-insight {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.insight-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #e8f5ed;
  color: #298162;
  font-size: 12px;
  font-weight: 550;
}
.executive-insight:nth-child(2) .insight-number {
  background: #fbeeed;
  color: #b45b58;
}
.executive-insight:nth-child(3) .insight-number {
  background: #eaf2fc;
  color: #4978af;
}
.executive-insight:nth-child(4) .insight-number {
  background: #fbf4df;
  color: #a1863e;
}
.executive-insight strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 6px;
}
.executive-insight p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.rail-action {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #dce1e5;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 11px;
}
.rail-action:hover {
  background: #f5f8f6;
}
.rail-action .ui-icon {
  width: 16px;
  height: 16px;
}
.compare-shortcut h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.compare-shortcut .rail-action {
  justify-content: center;
  border-style: dashed;
}
.compare-shortcut p {
  font-size: 11px;
}
.notice {
  background: #fcf6e9;
  border-color: #efe4ca;
  color: #8a703c;
  padding: 12px 16px;
  font-size: 11px;
  margin-bottom: 16px;
}
.feature-panel,
.benchmark-card {
  margin-top: 24px;
  padding: 22px;
  background: #fff;
  scroll-margin-top: 82px;
}
.feature-heading h2,
.benchmark-heading h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.feature-heading p,
.benchmark-heading p {
  font-size: 12px;
}
.analysis-actions {
  margin: 18px 0 0;
}
.analysis-card {
  padding: 22px;
  margin: 20px 0 0;
}
.analysis-card h2 {
  font-size: 20px;
  font-weight: 600;
}
.analysis-card section {
  border-color: var(--line);
}
.analysis-card li {
  font-size: 13px;
  color: #59616d;
  line-height: 1.9;
}
.analysis-card li strong {
  color: var(--ink);
}
.analysis-card .analysis-takeaway {
  background: #edf6f1;
  border-color: #76b69b;
  color: #375748;
  border-radius: 6px;
}
.benchmark-disclaimer {
  background: #f7f9f8;
  border-color: var(--line);
  color: var(--muted);
  font-size: 11px;
}
.benchmark-heading .local {
  border-color: var(--line);
  background: #f8f9f9;
  color: var(--muted);
}
.benchmark-fields {
  gap: 24px;
}
.benchmark-cuit-row input {
  font-size: 12px;
  background: #fff;
}
.benchmark-color-key {
  font-size: 11px;
}
.benchmark-card .table-scroll table {
  min-width: 1000px;
}
#benchmark-rows td.metric-mejor {
  background: #e6f5ec;
  color: #17643c;
  font-weight: 700;
}
#benchmark-rows td.metric-peor {
  background: #fceeed;
  color: #aa3330;
  font-weight: 700;
}
.reference-label {
  color: #667d8a;
}
.benchmark-card .metric-indicator {
  color: inherit;
  font-weight: inherit;
}
.reference-label {
  font-size: 8px;
}
.remove-cuit {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}
footer {
  border-color: var(--line);
  font-size: 10px;
  color: #8a929b;
  margin-top: 28px;
}
/* Administration shares the same shell rather than a second sidebar. */
#admin-main {
  padding-top: 28px;
}
.admin-layout {
  display: block;
}
.admin-sidebar {
  display: none;
}
.admin-heading {
  margin: 0 0 24px;
}
.admin-heading h1 {
  font-size: 28px;
}
.admin-heading .eyebrow {
  display: none;
}
.admin-heading .muted {
  font-size: 13px;
}
.admin-content .card h2 {
  font-size: 16px;
}
.back-metrics > div {
  border-radius: 8px;
  padding: 18px;
  border-color: var(--line);
  background: #fff;
}
.back-metrics strong {
  font-size: 27px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
.back-metrics span {
  font-size: 11px;
  margin-bottom: 10px;
}
.back-cost-overview .back-metrics > div {
  background: #fafbfa;
}
.back-cost-overview .back-metrics strong {
  font-size: clamp(18px, 2.5vw, 27px);
}
.back-table th {
  background: #f7f8f9;
  color: #697482;
}
.back-table td {
  color: var(--ink);
}
.back-table td:nth-child(n) {
  color: var(--ink);
}
.back-cost-table td:nth-child(6) {
  color: #176d56;
}
.back-badge {
  background: #e8f5ed;
  color: #276c4d;
  border-radius: 4px;
}
.back-badge-error {
  background: #fceeed;
  color: #aa3330;
}
.back-badge-off {
  background: #f0f1f2;
  color: #7a818b;
}
.back-event {
  border-color: var(--line);
}
.back-cost-shared td {
  background: #f7f9f8 !important;
}
.back-toolbar select {
  border-color: #dce1e5;
}
.back-check {
  border-radius: 7px;
}
.back-permissions input {
  accent-color: var(--accent);
}
dialog {
  border-radius: 12px;
  box-shadow: 0 24px 90px #26343b26;
  border-color: var(--line);
}
dialog::backdrop {
  background: #1d272b44;
  backdrop-filter: blur(3px);
}
.dialog-header h2 {
  font-weight: 600;
}
.admin-tabs button[aria-selected='true'] {
  border-color: var(--accent);
  color: var(--accent);
}
.login-page {
  background: #f4f7f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-art {
  display: none;
}
.login-content {
  padding: 48px 36px;
  min-height: 100dvh;
  width: 100%;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  max-width: 430px;
  box-shadow: 0 8px 35px #263c2f06;
}
.login-logo {
  width: 160px;
  margin: 0 0 32px;
}
.login-lock {
  background: var(--mint);
  color: var(--accent);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 20px;
}
.login-card h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}
.login-description,
.login-help,
.login-security p,
.login-security strong {
  color: var(--muted);
}
.google-button {
  border-color: #dce1e5;
  border-radius: 7px;
  color: var(--ink);
  box-shadow: none;
}
.login-bottom {
  color: #8b948e;
}
.login-error {
  border-color: #f1d8d5;
  background: #fceeed;
  color: #a53935;
}
#back-feedback:empty {
  display: none;
}
section[id],
form[id] {
  scroll-margin-top: 82px;
}
@media (min-width: 1900px) {
  :root {
    --nav-width: 238px;
  }
  .header-inner,
  main {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1250px) {
  .result-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .executive-rail {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
  }
  #executive-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }
  .insight-card {
    padding: 16px;
  }
  .insight-heading {
    margin-bottom: 14px;
  }
  .executive-insight {
    padding: 14px 0;
  }
  .insight-card .rail-action {
    margin-top: 8px;
  }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metrics > div {
    border-right: 1px solid var(--line);
  }
  .metrics > div:last-child {
    border: 0;
  }
  .workspace {
    display: block;
  }
}
@media (max-width: 950px) {
  :root {
    --nav-width: 190px;
  }
  .workspace-sidebar {
    padding: 24px 10px 14px;
  }
  .workspace-brand {
    gap: 9px;
    margin: 0 5px;
  }
  .workspace-brand img {
    width: 108px;
  }
  .workspace-brand > span {
    font-size: 17px;
    padding-left: 8px;
  }
  .workspace-navigation a {
    padding: 10px 8px;
    gap: 8px;
    font-size: 12px;
  }
  .header-inner {
    padding: 0 20px;
  }
  main {
    padding: 24px 20px;
  }
  #query-form {
    grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr);
    gap: 12px;
  }
  #query-form .primary {
    grid-column: 1/-1;
    max-width: 200px;
  }
  .back-two {
    grid-template-columns: 1fr;
  }
  .back-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics > div {
    padding: 0 14px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .executive-rail {
    grid-template-columns: 1fr;
  }
  .compare-shortcut {
    display: none;
  }
  .result-heading {
    flex-direction: column;
  }
  .intro {
    margin: 0 0 20px;
  }
  .intro h1 {
    font-size: 28px;
  }
}
@media (max-width: 700px) {
  body.workspace-authenticated {
    padding-left: 0;
  }
  .workspace-sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    width: 238px;
    box-shadow: 16px 0 50px #26343b1c;
    top: 62px;
    padding-top: 20px;
  }
  .workspace-sidebar.is-open {
    transform: translateX(0);
  }
  #workspace-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-inner {
    height: 62px;
    padding: 0 16px;
    gap: 10px;
  }
  .workspace-breadcrumb {
    flex: 1;
    gap: 9px;
    font-size: 11px;
  }
  .header-user .avatar {
    display: grid;
  }
  .connection-badge {
    max-width: 100px;
    font-size: 9px;
    line-height: 1.3;
    gap: 5px;
  }
  .connection-badge::before {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
  }
  main {
    padding: 22px 16px;
  }
  .intro {
    margin: 0 0 20px;
    border-radius: 0;
  }
  .intro h1 {
    font-size: 27px;
  }
  .intro .subtitle {
    font-size: 12px;
  }
  #query-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #query-form .primary {
    max-width: none;
  }
  .query-card .demo-area {
    display: block;
  }
  .demo-area > span {
    display: none;
  }
  .progress-card {
    padding: 10px 12px;
  }
  .metrics > div {
    padding: 0 11px;
  }
  .metrics strong {
    font-size: 22px;
  }
  .metrics span {
    font-size: 10px;
  }
  .metrics small {
    font-size: 9px;
    line-height: 1.6;
  }
  .metrics {
    padding: 15px 0;
  }
  .trend-card {
    padding: 12px;
  }
  .trend-heading h3 {
    font-size: 13px;
  }
  .chart-tabs button {
    padding: 3px 8px;
  }
  .chart-legend {
    font-size: 9px;
    gap: 14px;
  }
  .chart-svg text {
    font-size: 12px;
  }
  .chart-value {
    display: none;
  }
  .table-title {
    padding: 13px;
  }
  .table-title h3 {
    font-size: 14px;
  }
  .table-title .ilt-toggle {
    font-size: 10px;
  }
  #executive-insights {
    grid-template-columns: 1fr;
  }
  .insight-heading {
    margin-bottom: 8px;
  }
  .executive-insight p {
    font-size: 12px;
  }
  .feature-panel,
  .benchmark-card {
    padding: 18px;
    margin-top: 20px;
  }
  .feature-heading h2,
  .benchmark-heading h2 {
    font-size: 20px;
  }
  .benchmark-fields {
    grid-template-columns: 1fr;
  }
  .result-heading {
    gap: 12px;
  }
  .result-heading h2 {
    font-size: 20px;
  }
  .result-date {
    overflow-wrap: anywhere;
  }
  .benchmark-cuit-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
  }
  .benchmark-input-group:nth-child(3) {
    grid-column: 1/3;
  }
  .benchmark-cuit-row > .remove-cuit {
    grid-column: 3;
    grid-row: 1/3;
  }
  .back-metrics > div {
    padding: 14px;
  }
  .back-metrics strong {
    font-size: 23px;
  }
  .back-metrics {
    gap: 10px;
  }
  .admin-heading h1 {
    font-size: 26px;
  }
  .admin-heading {
    gap: 12px;
  }
  .admin-heading > div {
    min-width: 100%;
    flex-basis: 100%;
  }
  .back-period-filter {
    max-width: 180px;
    flex: 1;
  }
  .back-event {
    flex-wrap: wrap;
  }
  .back-event > div {
    flex-basis: 100%;
  }
  #admin-main {
    padding: 22px 16px;
  }
  .login-content {
    padding: 30px 20px 65px;
  }
  .login-card {
    padding: 26px;
    max-width: 400px;
  }
  .login-logo {
    width: 145px;
  }
  .login-bottom {
    font-size: 9px;
  }
  .back-permissions {
    grid-template-columns: 1fr;
  }
  .back-two {
    grid-template-columns: 1fr;
  }
  .exports {
    gap: 6px;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.workspace-wordmark {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 1.3px;
  color: #152437;
  font-weight: 750;
}
.workspace-wordmark small {
  display: block;
  font-size: 8px;
  letter-spacing: 5px;
  font-weight: 650;
  margin-top: 7px;
  padding-left: 3px;
}
.workspace-brand {
  margin-bottom: 3px;
}
.progress-card.is-complete {
  display: none;
}
@media (max-width: 950px) {
  .workspace-wordmark {
    font-size: 24px;
  }
}
@media (max-width: 700px) {
  .workspace-sidebar {
    visibility: hidden;
  }
  .workspace-sidebar.is-open {
    visibility: visible;
  }
}

/* Workspace 1.1 — readable type scale supplied by the product owner. */
:root {
  --font-body: 16px;
  --font-caption: 14px;
  --font-h1: 44px;
  --font-h2: 32px;
  --font-h3: 22px;
  --font-button: 16px;
  --nav-width: 248px;
}
body {
  font-size: var(--font-body);
}
h1,
.intro h1,
.admin-heading h1 {
  font-size: var(--font-h1);
  line-height: 1.15;
}
h2,
.result-heading h2,
.feature-heading h2,
.benchmark-heading h2,
.analysis-card h2,
.login-card h2 {
  font-size: var(--font-h2);
  line-height: 1.25;
}
h3,
.table-title h3,
.trend-heading h3,
.insight-heading h3,
.analysis-card h3,
.admin-content .card h2,
.dialog-header h2 {
  font-size: var(--font-h3);
  line-height: 1.3;
}
button,
.primary,
.secondary,
.text-button,
.google-button,
.logout-button,
.chart-tabs button,
.back-toolbar button,
.user-toggle,
.remove-cuit,
.exports .export,
.analysis-actions .export,
.admin-tabs button {
  font-size: var(--font-button) !important;
  line-height: 1.35;
}
button,
input,
select {
  min-height: 44px;
}
input,
select,
.benchmark-cuit-row input,
.benchmark-fields textarea,
#benchmark-rows input {
  font-size: var(--font-body);
  height: 46px;
}
label,
.benchmark-input-group label,
.back-toolbar label,
.back-period-filter {
  font-size: var(--font-caption);
}
.muted,
.privacy,
.subtitle,
.intro .subtitle,
.feature-heading p,
.benchmark-heading p,
.result-heading .muted,
.result-meta,
.scroll-hint,
.method,
.reading-notes .method,
.reading-notes > summary,
.benchmark-disclaimer,
.benchmark-color-key,
.notice,
.notice span,
.analysis-card p,
.analysis-card li,
.analysis-card .analysis-takeaway,
.executive-insight p,
.metrics span,
.metrics small,
.progress-card p,
.progress-card > div,
.demo-area,
.demo-area .text-button,
.login-description,
.login-help,
.login-security p,
.login-security strong,
.login-bottom,
.login-error,
.source,
.empty-tags span,
.empty > p:not(.eyebrow),
.benchmark-exclusions p,
.back-metrics span,
.back-event,
.back-event strong,
.back-event small,
.back-event time,
.back-usage > div,
.back-table td small,
.monitor-grid span,
.monitor-note,
.root-admin small,
.user-row small,
footer {
  font-size: var(--font-caption);
  line-height: 1.6;
}
.analysis-card li,
.analysis-card p,
.analysis-card .analysis-takeaway,
.executive-insight strong,
.sidebar-identity,
.back-check {
  font-size: var(--font-body);
}
.workspace-navigation a {
  font-size: 16px;
  min-height: 46px;
  padding: 11px 12px;
  gap: 12px;
}
.workspace-sidebar {
  padding: 28px 14px 18px;
}
.workspace-breadcrumb {
  font-size: 14px;
}
.connection-badge {
  font-size: 14px;
}
.header-user .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.sidebar-identity small {
  font-size: 14px;
}
.sidebar-identity button {
  min-width: 32px;
}
.sidebar-identity strong {
  font-size: 14px;
}
.nav-caption,
.workspace-product,
.eyebrow,
.result-heading .eyebrow {
  font-size: 12px;
}
.sidebar-identity {
  gap: 8px;
}
.workspace-sidebar #workspace-admin-nav {
  margin-bottom: 24px;
}
.metrics {
  padding: 22px 0;
  min-height: 132px;
}
.metrics strong {
  font-size: 32px;
  line-height: 1.2;
}
.metrics > div {
  padding: 0 20px;
}
.period-badge,
.projection-label,
.projection-factor,
.partial-label,
.reference-label,
.back-badge {
  font-size: 13px;
  line-height: 1.5;
}
.period-badge {
  white-space: nowrap;
}
.insight-number {
  font-size: 16px;
  width: 38px;
  height: 38px;
}
.insight-heading {
  gap: 12px;
  flex-wrap: wrap;
}
.insight-card {
  padding: 20px;
}
.executive-insight {
  padding: 16px 0;
}
.executive-insight p {
  line-height: 1.55;
}
.executive-insight strong {
  line-height: 1.45;
}
.table-scroll table {
  min-width: 1440px;
}
.table-scroll th,
.back-table th {
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 12px;
  max-width: none;
}
.table-scroll td,
.back-table td {
  font-size: 16px;
  padding: 16px 12px;
}
.table-scroll th:first-child {
  min-width: 150px;
}
.table-title {
  padding: 20px;
  gap: 18px;
}
.table-title .ilt-toggle {
  font-size: 16px;
  gap: 8px;
}
.table-title .ilt-toggle input {
  min-height: 0;
  width: 18px;
  height: 18px;
}
.scroll-hint {
  margin: 0 20px 14px;
}
.table-scroll .projection-label {
  display: block;
  white-space: normal;
  margin-left: 0;
}
.projection-factor {
  white-space: normal;
}
.benchmark-card .table-scroll table {
  min-width: 1300px;
}
.benchmark-input-group label {
  font-size: 14px;
}
.benchmark-cuit-row {
  gap: 12px;
}
.benchmark-heading .local {
  font-size: 14px;
}
.back-table table {
  min-width: 1100px;
}
.back-cost-table table {
  min-width: 1000px;
}
.back-table td small {
  font-size: 14px;
}
.back-metrics strong {
  font-size: 32px;
}
.back-cost-overview .back-metrics strong {
  font-size: clamp(24px, 2.5vw, 32px);
}
#query-form {
  grid-template-columns: minmax(240px, 1.3fr) minmax(260px, 1fr) 200px;
  max-width: 1080px;
  gap: 20px;
}
#query-form .primary {
  height: 46px;
}
.query-card .demo-area {
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-area .text-button {
  min-height: 36px;
}
.result-heading {
  margin: 24px 0;
}
.result-meta {
  margin-top: 8px;
}
.exports .export {
  padding: 10px 14px;
  min-height: 44px;
}
.progress-card {
  padding: 16px;
}
.notice {
  padding: 16px 20px;
}
.empty {
  padding: 36px 24px;
}
.empty h2 {
  font-size: 32px;
}
.empty > p:not(.eyebrow) {
  max-width: 580px;
}
/* The rail shares exactly the summary + chart grid rows. The table follows both. */
.result-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto minmax(420px, auto) auto auto;
  gap: 20px;
  align-items: stretch;
}
.result-primary {
  display: contents;
}
.result-primary > .metrics {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  min-width: 0;
}
.result-primary > .trend-card {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.result-primary > .table-card {
  grid-column: 1/-1;
  grid-row: 3;
  min-width: 0;
}
.result-primary > .reading-notes {
  grid-column: 1/-1;
  grid-row: 4;
  margin: 0;
  min-width: 0;
}
.executive-rail {
  grid-column: 2;
  grid-row: 1/3;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  margin: 0;
}
.executive-rail > .insight-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#executive-insights {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
}
.trend-heading {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.trend-heading h3 {
  margin-top: 5px;
}
.chart-tabs button {
  padding: 6px 12px;
  min-height: 36px;
}
#trend-chart {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 220px;
}
.chart-svg {
  max-height: 320px;
}
.chart-svg text {
  font-size: 14px;
}
.chart-value.claims,
.chart-value.lawsuits {
  font-size: 12px;
}
.chart-legend {
  font-size: 14px;
  gap: 20px;
  margin-top: 14px;
}
#trend-note {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
}
.result-layout.no-executive {
  grid-template-columns: 1fr;
}
.result-layout.no-executive > .result-primary > .metrics,
.result-layout.no-executive > .result-primary > .trend-card {
  grid-column: 1;
}
body[data-workspace-view='benchmark'] .benchmark-heading h2 {
  display: none;
}
body[data-workspace-view='benchmark'] .benchmark-card {
  margin-top: 0;
}
body[data-workspace-view='benchmark'] .benchmark-heading .eyebrow {
  margin-top: 5px;
}
@media (max-width: 1250px) {
  .result-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
  }
  .result-primary > .metrics {
    grid-row: 1;
  }
  .result-primary > .trend-card {
    grid-row: 2;
  }
  .executive-rail {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    overflow: visible;
  }
  .executive-rail > .insight-card {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  #executive-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    overflow: visible;
  }
  .result-primary > .table-card {
    grid-row: 4;
  }
  .result-primary > .reading-notes {
    grid-row: 5;
  }
  #query-form {
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
  }
  #query-form .primary {
    grid-column: 1/-1;
    max-width: 220px;
  }
  .metrics > div {
    padding: 0 16px;
  }
  .metrics strong {
    font-size: 30px;
  }
  .back-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  :root {
    --nav-width: 232px;
  }
  .workspace-navigation a {
    font-size: 15px;
  }
  .header-inner {
    padding: 0 20px;
  }
  #query-form {
    grid-template-columns: 1fr;
  }
  #query-form .primary {
    max-width: none;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .metrics > div {
    border: 0;
    padding: 0 20px;
  }
  .metrics small {
    margin-top: 3px;
  }
  .metrics strong {
    margin: 4px 0;
  }
  .back-two {
    grid-template-columns: 1fr;
  }
  .back-metrics strong {
    font-size: 28px;
  }
}
@media (max-width: 700px) {
  :root {
    --font-body: 16px;
    --font-caption: 14px;
    --font-h1: 36px;
    --font-h2: 26px;
    --font-h3: 19px;
    --font-button: 16px;
  }
  .workspace-sidebar {
    width: 264px;
  }
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .workspace-breadcrumb {
    font-size: 13px;
    gap: 6px;
  }
  .connection-badge {
    font-size: 12px;
    max-width: 90px;
  }
  .header-user .avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  #workspace-menu {
    min-width: 38px;
    min-height: 38px;
  }
  .workspace-navigation a {
    font-size: 16px;
  }
  .intro h1 {
    font-size: 36px;
  }
  .intro .subtitle {
    font-size: 16px;
  }
  .intro {
    margin-bottom: 24px;
  }
  .workspace-breadcrumb strong {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }
  .metrics > div {
    padding: 0 20px;
  }
  .metrics span,
  .metrics small {
    font-size: 14px;
  }
  .metrics strong {
    font-size: 30px;
  }
  .chart-svg text {
    font-size: 16px;
  }
  .chart-value {
    display: none;
  }
  .chart-legend {
    font-size: 14px;
    gap: 14px;
  }
  .trend-heading h3 {
    font-size: 19px;
  }
  .chart-tabs button {
    font-size: 16px;
    padding: 5px 10px;
  }
  .result-primary > .trend-card {
    padding: 16px;
  }
  .table-title h3 {
    font-size: 19px;
  }
  .table-title {
    padding: 16px;
  }
  .table-title .ilt-toggle {
    font-size: 16px;
  }
  .scroll-hint {
    margin: 0 16px 14px;
  }
  .result-heading h2 {
    font-size: 26px;
    overflow-wrap: anywhere;
  }
  .result-heading {
    margin-top: 20px;
  }
  .result-meta,
  .result-heading .muted {
    font-size: 14px;
  }
  .exports .export {
    font-size: 16px !important;
    padding: 9px 12px;
  }
  #executive-insights {
    grid-template-columns: 1fr;
  }
  .insight-heading h3 {
    font-size: 19px;
  }
  .executive-insight strong {
    font-size: 16px;
  }
  .executive-insight p {
    font-size: 14px;
  }
  .period-badge {
    font-size: 13px;
  }
  .feature-heading h2,
  .benchmark-heading h2,
  .analysis-card h2,
  .empty h2 {
    font-size: 26px;
  }
  .feature-panel,
  .benchmark-card,
  .analysis-card {
    padding: 18px;
  }
  .benchmark-cuit-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 10px;
  }
  .benchmark-input-group:nth-child(1),
  .benchmark-input-group:nth-child(2),
  .benchmark-input-group:nth-child(3) {
    grid-column: 1;
  }
  .benchmark-cuit-row > .remove-cuit {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
  .benchmark-input-group input {
    min-width: 0;
  }
  .benchmark-input-group label {
    font-size: 14px;
  }
  .back-metrics {
    grid-template-columns: 1fr;
  }
  .back-metrics strong {
    font-size: 30px;
  }
  .back-cost-overview .back-metrics strong {
    font-size: 26px;
  }
  .back-permissions {
    grid-template-columns: 1fr;
  }
  .admin-heading .muted {
    font-size: 14px;
  }
  .admin-content .card h2 {
    font-size: 19px;
  }
  .login-description,
  .login-help,
  .login-error {
    font-size: 16px;
  }
  .login-security p,
  .login-security strong,
  .login-bottom {
    font-size: 14px;
  }
  .login-card h2 {
    font-size: 26px;
  }
  .login-card {
    padding: 24px;
  }
  .login-bottom {
    position: static;
    margin-top: 24px;
    text-align: center;
  }
  .login-content {
    padding-bottom: 30px;
  }
  footer {
    font-size: 14px;
  }
  #query-form .years {
    min-width: 0;
  }
  .query-card .demo-area .text-button {
    font-size: 16px;
  }
  #back-user-dialog {
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 22px;
  }
  .back-permission-title {
    font-size: 19px;
  }
}
.connection-warning {
  border: 1px solid #edc5bf;
  background: #fceeed;
  color: #98352f;
  border-radius: 9px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.connection-badge.has-error {
  color: #a43b34;
}
.connection-badge.has-error::before {
  background: #be554b;
}
#srt-connection-dialog {
  width: min(540px, calc(100% - 32px));
}
#srt-connection-dialog p {
  font-size: 18px;
  line-height: 1.7;
  margin: 22px 0 28px;
}
#srt-connection-dialog .primary {
  width: auto;
  margin-left: auto;
}
#back-check-connection {
  margin: 0 0 12px;
}

/* Result downloads sit directly above the executive reading column. */
.query-result-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: end;
}
.result-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.download-label {
  grid-column: 1/-1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.result-downloads .export {
  justify-content: center;
  padding: 10px 8px;
  white-space: nowrap;
}
.workspace-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.workspace-brand img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}
.workspace-brand > span {
  border: 0;
  padding: 0;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--muted);
}
@media (max-width: 1250px) {
  .query-result-heading {
    grid-template-columns: minmax(0, 1fr);
  }
  .result-downloads {
    max-width: 340px;
    justify-self: end;
  }
}
@media (max-width: 700px) {
  .result-downloads {
    max-width: none;
    justify-self: stretch;
  }
}

/* Shared white brand/header band; the page title already identifies the tool. */
:root {
  --shell-bar-height: 80px;
}
#app-header,
.header-inner {
  height: var(--shell-bar-height);
}
.workspace-sidebar {
  padding-top: 0;
}
.workspace-brand {
  height: var(--shell-bar-height);
  min-height: var(--shell-bar-height);
  flex-shrink: 0;
  margin: 0 -14px 20px;
  padding: 14px 24px;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.workspace-brand img {
  width: 100%;
  max-width: 200px;
  max-height: 100%;
  object-fit: contain;
}
section[id],
form[id],
#query-form,
.feature-panel,
.benchmark-card {
  scroll-margin-top: calc(var(--shell-bar-height) + 20px);
}
@media (max-width: 700px) {
  .workspace-sidebar {
    top: var(--shell-bar-height);
    padding-top: 0;
  }
}

#auth-loading {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--paper);
  color: var(--muted);
}
#auth-loading img {
  width: 200px;
  height: auto;
}
#auth-loading p {
  font-size: 16px;
}
/* Stage progress: driven by server-confirmed stages, no timers. */
.progress-steps,
.progress-card > .progress-steps {
  display: block;
  margin: 12px 0 2px 17px;
  font-weight: 400;
}
.progress-steps.compact {
  margin: 8px 0 14px;
}
.progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0.02);
  transition: transform 0.6s ease;
}
.progress-steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
}
.progress-steps li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: var(--font-caption, 14px);
  line-height: 1.35;
}
.progress-steps li small {
  flex-basis: 100%;
  padding-left: 24px;
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.progress-steps li small:empty {
  display: none;
}
.step-dot {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid #cdd4da;
  background: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
}
.progress-steps li.done {
  color: var(--ink);
}
.progress-steps li.done .step-dot {
  background: var(--mint);
  border-color: var(--accent);
}
.progress-steps li.done .step-dot::after {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}
.progress-steps li.current {
  color: var(--ink);
  font-weight: 600;
}
.progress-steps li.current .step-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--mint);
  animation: step-pulse 1.6s ease-in-out infinite;
}
.progress-steps li.current .step-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes step-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(23, 109, 86, 0.1);
  }
}
@media (max-width: 700px) {
  .progress-steps {
    margin-left: 0;
  }
  .progress-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
}
