/* src/style.css */
:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #27272a;
  background: #fafafa;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  color: #365961;
  text-underline-offset: 4px;
}
a:hover {
  color: #0f333d;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid #365961;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: -1.3px;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -.35px;
}
h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 8px 0;
}
p {
  line-height: 1.65;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #27272a;
}
.brand-mark {
  font-family: Georgia, serif;
  border: 1px solid #b7b7bc;
  padding: 4px 6px;
  font-size: 13px;
}
.brand-light {
  color: #71717a;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 36px 32px 20px;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow,
.label {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .5px;
  color: #66666f;
}
.eyebrow {
  margin-bottom: 9px;
}
.subtitle {
  color: #71717a;
  font-size: 14px;
  margin-top: 10px;
}
.review-tag {
  font-size: 12px;
  border: 1px solid #d4d4d8;
  border-radius: 5px;
  padding: 10px 14px;
  background: #fff;
  white-space: nowrap;
}
.review-tag span {
  display: block;
  color: #71717a;
  font-size: 11px;
}
.sample-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dce3e3;
  background: #f1f5f4;
  padding: 12px 16px;
  margin: 25px 0 22px;
  font-size: 12px;
  color: #42595b;
  border-radius: 5px;
}
.sample-banner strong {
  font-weight: 600;
}
.sample-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #668883;
  margin-top: 7px;
  flex-shrink: 0;
}
.controls {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}
.controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #66666f;
  flex: 1;
  min-width: 0;
}
.controls .employer-control {
  flex: 1.35;
}
select {
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 5px;
  padding: 10px 30px 10px 12px;
  width: 100%;
  color: #27272a;
  font-size: 12px;
  min-height: 40px;
}
.export {
  border: 1px solid #29292e;
  background: #29292e;
  color: white;
  padding: 10px 16px;
  border-radius: 5px;
  min-height: 40px;
  font-size: 12px;
  white-space: nowrap;
}
.export:hover {
  background: #45454e;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 27px;
}
.metric {
  border: 1px solid #e0e0e3;
  background: #fff;
  padding: 18px 20px;
  border-radius: 6px;
}
.value {
  font-size: 29px;
  font-weight: 520;
  line-height: 1.4;
  letter-spacing: -.7px;
  margin: 6px 0;
}
.muted {
  color: #71717a;
  font-size: 11px;
}
.view-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #dedee2;
  margin-bottom: 24px;
}
.view-nav button {
  border: 0;
  background: none;
  color: #71717a;
  padding: 12px 0;
  font-size: 13px;
  position: relative;
  white-space: nowrap;
}
.view-nav button[aria-pressed=true] {
  color: #27272a;
  font-weight: 600;
}
.view-nav button[aria-pressed=true]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3f555a;
}
.panel {
  background: #fff;
  border: 1px solid #dedee2;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}
.section-heading p {
  color: #71717a;
  font-size: 12px;
  margin-top: 4px;
}
.count {
  font-size: 11px;
  color: #71717a;
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 12px;
}
caption {
  text-align: left;
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
th,
td {
  padding: 14px 18px;
  border-top: 1px solid #ededee;
  text-align: left;
}
thead th {
  background: #fafafa;
  color: #71717a;
  font-size: 10px;
  font-weight: 500;
}
tbody th {
  font-weight: 400;
  font-family:
    ui-monospace,
    SFMono-Regular,
    monospace;
}
td.number {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.delta {
  color: #96613c;
  font-variant-numeric: tabular-nums;
}
td a {
  color: #4c5f65;
}
.priority {
  font-size: 10px;
  border-radius: 4px;
  padding: 3px 7px;
  background: #f3f3f4;
  color: #666;
}
.priority.high {
  background: #f9eee6;
  color: #8d5936;
}
.priority.medium {
  background: #f7f4e8;
  color: #7f6c3a;
}
.panel-note {
  font-size: 11px;
  color: #71717a;
  line-height: 1.75;
  padding: 14px 22px;
  border-top: 1px solid #ededee;
  background: #fcfcfc;
}
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.rule {
  padding: 22px;
  border: 1px solid #dedee2;
  background: #fff;
  border-radius: 7px;
}
.rule p {
  font-size: 13px;
  color: #63636d;
  margin: 10px 0;
}
.source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  margin-top: 16px;
}
.intro {
  max-width: 860px;
  margin: 12px 0 24px;
}
.intro h2 {
  font-size: 24px;
  margin-bottom: 9px;
}
.intro p {
  color: #71717a;
  font-size: 13px;
}
.context-row {
  padding: 12px 22px 22px;
  border-top: 1px solid #ededee;
}
.context-row p {
  font-size: 13px;
  color: #63636d;
  max-width: 90ch;
}
.breakdown {
  padding: 0 22px 20px;
}
.bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 100px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
}
.bar-row small {
  display: block;
  color: #71717a;
  margin-top: 3px;
}
.bar-row strong {
  text-align: right;
  font-weight: 500;
}
.bar-track {
  background: #f0f0f2;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
}
.bar-track div {
  background: #788e92;
  height: 100%;
  border-radius: 3px;
}
.worksheet-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  padding: 5px 22px 25px;
}
.worksheet-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.worksheet-inputs label {
  font-size: 12px;
  color: #66666f;
}
.worksheet-inputs input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d4d4d8;
  border-radius: 5px;
  padding: 10px;
  background: #fff;
  color: #27272a;
  font-variant-numeric: tabular-nums;
}
.worksheet-output {
  background: #f1f5f4;
  border: 1px solid #dce3e3;
  padding: 16px 20px;
  border-radius: 5px;
  font-size: 12px;
  color: #42595b;
}
.worksheet-output .muted {
  margin-top: 12px;
}
.worksheet-output .value {
  font-size: 34px;
}
.input-error {
  color: #8a3c2c;
}
.remediation-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps {
  padding: 0 24px 22px 45px;
  margin: 0;
  color: #63636d;
  font-size: 13px;
}
.steps li {
  padding: 10px 0 10px 6px;
}
.steps strong {
  font-weight: 550;
  color: #3f3f46;
}
.method {
  border-top: 1px solid #dedee2;
  padding: 16px 0;
  font-size: 12px;
  color: #71717a;
}
.method summary {
  cursor: pointer;
  color: #45454e;
}
.method p {
  max-width: 95ch;
  margin-top: 12px;
}
.export-status {
  min-height: 24px;
  font-size: 12px;
  color: #365961;
  margin: 8px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #dedee2;
  padding: 20px 0;
  font-size: 11px;
  color: #71717a;
}
.empty {
  padding: 32px 22px;
  color: #71717a;
  font-size: 13px;
}
.mobile-break {
  display: none;
}
.skip {
  position: fixed;
  top: -100px;
  background: #fff;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 5px;
}
@media (min-width: 1400px) {
  main {
    padding-top: 45px;
  }
}
@media (max-width: 1000px) {
  .controls {
    flex-wrap: wrap;
  }
  .controls label {
    min-width: 180px;
  }
  .metric {
    padding: 15px;
  }
  .value {
    font-size: 24px;
  }
  .metrics {
    gap: 10px;
  }
  .bar-row {
    grid-template-columns: 180px 1fr 90px;
    gap: 12px;
  }
}
@media (max-width: 650px) {
  .topbar {
    padding: 0 18px;
    height: 58px;
    font-size: 11px;
  }
  .brand-light {
    display: none;
  }
  .brand {
    gap: 7px;
  }
  main {
    padding: 26px 18px 15px;
  }
  .title-row {
    align-items: flex-start;
    gap: 12px;
  }
  .review-tag {
    font-size: 10px;
    padding: 7px 9px;
  }
  .review-tag span {
    font-size: 9px;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -.8px;
  }
  .mobile-break {
    display: block;
  }
  .subtitle {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .sample-banner {
    font-size: 11px;
    margin: 20px 0;
    padding: 11px 12px;
  }
  .controls {
    gap: 12px;
  }
  .controls label,
  .controls .employer-control {
    min-width: 0;
    flex: 1 1 calc(50% - 12px);
  }
  .controls .employer-control {
    flex-basis: 100%;
  }
  select {
    font-size: 12px;
    padding-right: 20px;
  }
  .export {
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
    gap: 10px;
  }
  .metric {
    padding: 13px;
  }
  .value {
    font-size: 24px;
  }
  .label {
    font-size: 10px;
  }
  .muted {
    font-size: 10px;
  }
  .view-nav {
    gap: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
  }
  .view-nav button {
    font-size: 12px;
    text-align: left;
    padding: 10px 8px;
  }
  .section-heading {
    padding: 17px;
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .count {
    font-size: 10px;
  }
  .panel-note {
    padding: 13px 17px;
  }
  .authority-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rule {
    padding: 18px;
  }
  .rule p {
    font-size: 12px;
  }
  .worksheet-body {
    grid-template-columns: 1fr;
    padding: 0 17px 18px;
    gap: 18px;
  }
  .worksheet-inputs {
    gap: 12px;
  }
  .bar-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .bar-track {
    grid-column: 1/-1;
    grid-row: auto;
    height: 10px;
  }
  .bar-row strong {
    grid-row: 1;
    grid-column: 2;
  }
  .remediation-metrics {
    grid-template-columns: 1fr;
  }
  .intro h2 {
    font-size: 22px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .context-row {
    padding: 12px 18px 20px;
  }
  .source-line {
    font-size: 11px;
  }
}
.section-heading > a {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
}
input,
textarea {
  max-width: 100%;
}
input:not([type=file]),
textarea {
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 5px;
  color: #27272a;
  padding: 10px 12px;
  font: inherit;
  min-height: 40px;
  min-width: 0;
}
textarea {
  width: 100%;
  resize: vertical;
}
button:disabled {
  cursor: not-allowed;
  opacity: .48;
}
button:disabled:hover {
  filter: none;
}
.primary-button,
.secondary-button,
.quiet-button {
  font-size: 12px;
  border-radius: 5px;
  padding: 10px 14px;
  min-height: 40px;
}
.primary-button {
  background: #29292e;
  color: #fff;
  border: 1px solid #29292e;
}
.primary-button:hover {
  background: #45454e;
}
.secondary-button {
  background: #fff;
  color: #3f3f46;
  border: 1px solid #d4d4d8;
}
.secondary-button:hover {
  background: #f5f5f6;
}
.quiet-button {
  border: 1px solid transparent;
  background: transparent;
  color: #4c5f65;
  padding-left: 8px;
  padding-right: 8px;
}
.quiet-button:hover {
  background: #f1f3f3;
}
.quiet-button.danger {
  color: #924937;
}
.privacy-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: #f1f5f4;
  border: 1px solid #dce3e3;
  border-radius: 5px;
  margin: 25px 0 20px;
  font-size: 12px;
  color: #42595b;
}
.privacy-banner strong {
  font-weight: 550;
}
.workspace-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4e4e7;
}
.workspace-name {
  max-width: 380px;
  flex: 1;
}
.workspace-name label,
.filter-field label {
  display: block;
  font-size: 11px;
  color: #66666f;
  margin-bottom: 6px;
}
.workspace-name input {
  width: 100%;
  font-size: 12px;
}
.file-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.status-area:empty {
  display: none;
}
.status-area {
  font-size: 12px;
  margin: 12px 0;
}
.notice {
  color: #365961;
}
.record-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.record-actions > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.workspace-count {
  margin-left: auto;
  font-size: 11px;
  color: #71717a;
}
.filter-field {
  flex: 1;
  min-width: 0;
}
.scope-note {
  font-size: 11px;
  color: #71717a;
  margin: -12px 0 18px;
}
.empty-workspace {
  padding: 34px 26px;
}
.empty-workspace > div {
  max-width: 820px;
}
.empty-workspace h2 {
  font-size: 23px;
  margin: 8px 0 12px;
}
.empty-workspace p {
  font-size: 13px;
  color: #63636d;
  margin: 9px 0;
}
.status-badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f1f2f3;
  color: #666;
}
.status-badge.needs {
  background: #f8eee8;
  color: #8c5035;
}
.status-badge.gap {
  background: #f8eee8;
  color: #8c5035;
}
.status-badge.excess {
  background: #f7f4e8;
  color: #7f6c3a;
}
.status-badge.matched {
  background: #edf4f0;
  color: #47735e;
}
.table-button {
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  padding: 5px 9px;
  color: #365961;
  font-size: 11px;
}
.selected-row {
  background: #f5f8f7;
}
tbody th small {
  display: block;
  font-size: 10px;
  color: #71717a;
  margin-top: 3px;
}
.record-editor {
  scroll-margin-top: 18px;
}
.editor-content {
  padding: 0 22px 20px;
}
.form-section {
  border: 0;
  border-top: 1px solid #e4e4e7;
  padding: 18px 0 20px;
  margin: 0;
  min-width: 0;
}
.form-section legend {
  font-size: 14px;
  font-weight: 550;
  color: #3f3f46;
  padding: 0 12px 0 0;
}
.section-note {
  font-size: 12px;
  color: #71717a;
  margin: 0 0 16px;
  max-width: 100ch;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  font-size: 12px;
  color: #45454e;
  margin: 0 0 6px;
  font-weight: 450;
}
.required-mark {
  font-size: 10px;
  color: #8a8a93;
  font-weight: 400;
}
.field input {
  width: 100%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.field input[aria-invalid=true],
.field textarea[aria-invalid=true] {
  border-color: #be8878;
  background: #fffdfc;
}
.field-help {
  font-size: 10px;
  color: #777781;
  line-height: 1.55;
  margin-top: 6px;
}
.field-error {
  font-size: 11px;
  color: #964d38;
  margin-top: 6px;
  line-height: 1.55;
}
.span-two {
  grid-column: span 2;
}
.validation-summary {
  border: 1px solid #e5c9be;
  background: #fdf7f3;
  border-radius: 5px;
  padding: 12px 16px;
  color: #8d503c;
  font-size: 12px;
  margin-bottom: 24px;
}
.validation-summary strong {
  font-weight: 550;
}
.validation-summary ul {
  padding-left: 18px;
  margin: 8px 0 0;
}
.validation-summary li {
  margin: 3px 0;
}
.validation-summary li::marker {
  font-size: .7em;
}
.validation-summary a {
  color: #8d503c;
}
.rate-rows {
  padding: 0 0 22px;
}
.rate-row {
  display: grid;
  grid-template-columns: 55px repeat(3, minmax(0, 1fr)) auto;
  align-items: start;
  gap: 12px;
  margin: 0 0 13px;
  background: #fafafa;
  border: 1px solid #e6e6e8;
  border-radius: 5px;
  padding: 13px;
}
.rate-number {
  font-size: 10px;
  color: #71717a;
  padding-top: 8px;
}
.rate-row .quiet-button {
  margin-top: 22px;
}
.editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid #e4e4e7;
  padding-top: 14px;
}
.editor-actions p {
  font-size: 11px;
  color: #71717a;
}
.trace-body {
  padding: 0 22px 20px;
}
.trace-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 22px;
}
.trace-metrics .metric {
  background: #fafbfb;
}
.trace-metrics .value {
  font-size: 25px;
}
.formula-list {
  margin: 0;
  padding: 0 0 0 22px;
  color: #63636d;
  font-size: 12px;
}
.formula-list li {
  padding: 0 0 20px 8px;
}
.formula-list li::marker {
  font-size: 11px;
  color: #8a8a93;
}
.formula-list h3 {
  font-size: 14px;
  color: #45454e;
  margin: 0 0 7px;
}
.formula-list p {
  margin-top: 6px;
}
.formula-list strong {
  font-weight: 550;
  color: #3f3f46;
}
.formula-list .source-line {
  margin-top: 9px;
}
.correction-record {
  padding: 18px 22px 23px;
  border-top: 1px solid #ededee;
}
.correction-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.correction-heading h3 {
  font-size: 15px;
  margin: 0 0 3px;
}
.correction-heading p {
  font-size: 11px;
  color: #71717a;
}
.correction-summary {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 15px;
  font-size: 11px;
  color: #71717a;
}
.correction-summary strong {
  font-weight: 550;
  color: #3f3f46;
  margin-left: 5px;
}
.panel-note .source-line {
  margin-top: 9px;
}
.method {
  margin-top: 24px;
}
.table-scroll:focus-visible {
  outline-offset: -2px;
}
@media (max-width: 1000px) {
  .workspace-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .workspace-name {
    max-width: none;
  }
  .file-actions {
    justify-content: flex-start;
  }
  .filter-field {
    flex: 1 1 200px;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rate-row {
    grid-template-columns: 40px repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .rate-row .quiet-button {
    grid-column: 2/-1;
    margin: 0;
    justify-self: start;
    padding: 4px 8px;
    min-height: 28px;
  }
  .controls .export {
    flex: 1 1 200px;
  }
  .workspace-count {
    margin-left: 0;
  }
  .title-row {
    align-items: flex-start;
  }
}
@media (max-width: 650px) {
  .privacy-banner {
    font-size: 11px;
    margin: 20px 0;
    padding: 11px 12px;
  }
  .workspace-tools {
    padding-bottom: 15px;
    gap: 12px;
  }
  .file-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .file-actions .quiet-button {
    text-align: left;
  }
  .record-actions {
    gap: 10px;
    margin: 16px 0;
  }
  .record-actions > div {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .record-actions .primary-button,
  .record-actions .secondary-button {
    font-size: 11px;
    padding: 10px 8px;
  }
  .workspace-count {
    width: 100%;
  }
  .controls {
    gap: 12px;
  }
  .filter-field {
    flex: 1 1 calc(50% - 12px);
  }
  .filter-field:first-child {
    flex-basis: 100%;
  }
  .controls .export {
    width: 100%;
    flex-basis: 100%;
    white-space: normal;
  }
  .scope-note {
    margin: -3px 0 15px;
    font-size: 10px;
  }
  .empty-workspace {
    padding: 24px 18px;
  }
  .empty-workspace h2 {
    font-size: 20px;
  }
  .empty-workspace p {
    font-size: 12px;
  }
  .editor-content {
    padding: 0 17px 18px;
  }
  .record-editor .section-heading {
    flex-direction: column;
    gap: 10px;
  }
  .record-editor .section-heading .quiet-button {
    align-self: flex-start;
    padding: 4px 0;
    min-height: 28px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .span-two {
    grid-column: auto;
  }
  .form-section {
    padding: 16px 0 18px;
  }
  .field label {
    font-size: 11px;
  }
  .field input {
    font-size: 14px;
    min-height: 43px;
  }
  .field-help {
    font-size: 10px;
  }
  .rate-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 13px;
  }
  .rate-number {
    grid-column: 1/-1;
    padding: 0;
  }
  .rate-row .field:first-of-type {
    grid-column: 1/-1;
  }
  .rate-row .quiet-button {
    grid-column: 1/-1;
    margin: 0;
    padding: 3px 0;
  }
  .validation-summary {
    padding: 12px;
    font-size: 11px;
  }
  .editor-actions {
    align-items: flex-start;
    gap: 10px;
  }
  .editor-actions p {
    font-size: 10px;
  }
  .editor-actions .quiet-button {
    padding: 4px 7px;
    min-height: 32px;
    white-space: nowrap;
  }
  .trace-body {
    padding: 0 17px 18px;
  }
  .trace-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .trace-metrics .value {
    font-size: 25px;
  }
  .formula-list {
    padding-left: 18px;
    font-size: 11px;
  }
  .formula-list li {
    padding-left: 3px;
  }
  .formula-list h3 {
    font-size: 13px;
  }
  .correction-record {
    padding: 16px 17px 20px;
  }
  .correction-heading {
    align-items: flex-start;
  }
  .correction-heading h3 {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .correction-heading p {
    font-size: 10px;
  }
  .correction-summary {
    flex-direction: column;
    gap: 6px;
  }
  .title-row .review-tag {
    max-width: 115px;
    white-space: normal;
  }
  .review-tag {
    font-size: 9px;
  }
  .topbar a:last-child {
    white-space: nowrap;
  }
  .privacy-banner p,
  .sample-banner p {
    min-width: 0;
  }
  .section-heading .status-badge {
    white-space: nowrap;
  }
  .record-editor .section-heading h2 {
    font-size: 20px;
  }
}
@media print {
  .topbar,
  .workspace-tools,
  .record-actions,
  .controls,
  .view-nav,
  .editor-actions,
  .file-actions,
  .skip {
    display: none;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .panel,
  .rule,
  .metric {
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
  body {
    background: #fff;
  }
  .value {
    font-size: 22px;
  }
}
.input-guide-link {
  font-size: 11px;
  padding: 10px 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
