/* CTData brand guide, confirmed October 2026. Chart tokens live in src/shared/theme.js. */
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600 800;
  font-display: swap;
}
:root {
  --brand: #262558;
  --brand-dark: #1c1b42;
  --teal: #39738c;
  --green: #008881;
  --orange: #de6f59;
  --yellow: #f9de8d;
  --ink: #262558;
  --muted: #363635;
  --lilac: #9194a2;
  --rule: #dadbe1;
  --surface: #fff;
  --ground: #f4f4f6;
  --tint: #f4f4f6;
  --danger: #a3332a;
  --danger-bg: #fff0ec;
  --ok: #006c66;
  --ok-bg: #edf7f5;
  --warn-bg: #fff7df;
  --focus: #de6f59;
  --radius: 4px;
  --font: Poppins, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 6rem;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font: 400 14px/1.65 var(--font);
  color: var(--ink);
  background: var(--ground);
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  scroll-margin-top: 6rem;
}
code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.3;
}
h1 {
  color: var(--brand);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  margin: 0 0 0.6rem;
}
h2 {
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h3,
h4,
h5 {
  color: var(--teal);
}
.sr-only,
.explorer-page #field-controls > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: var(--ink);
}

/* One consistent navigation and account area across every workspace. */
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  min-height: 80px;
  padding: 0.75rem max(2rem, calc((100vw - 1344px) / 2));
  background: var(--brand);
  color: #fff;
}
header.site a,
header.site button.link {
  color: #fff;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.3;
  font-weight: 700;
}
.brand strong {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand span {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  margin-top: 0.1rem;
}
header.site nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.45rem;
  flex: 1;
}
header.site nav a {
  position: relative;
  font-size: 0.86rem;
  padding: 0.65rem 0;
  text-decoration: none;
  white-space: nowrap;
}
header.site nav a::after {
  content: "";
  position: absolute;
  height: 3px;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  transition: background-color 0.15s ease;
}
header.site nav a:hover::after {
  background: var(--lilac);
}
header.site nav a[aria-current="page"] {
  font-weight: 600;
}
header.site nav a[aria-current="page"]::after {
  background: var(--yellow);
}
.site-account {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  column-gap: 0.9rem;
  margin-left: auto;
  padding-left: 1.25rem;
  border-left: 1px solid #66658b;
  font-size: 0.75rem;
}
.site-account .who {
  grid-column: 1 / -1;
  justify-self: end;
}
.site-account > a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.site-account button.link {
  font-size: inherit;
  min-height: 28px;
}
.who {
  max-width: 11rem;
  overflow-wrap: anywhere;
}

/* Working surfaces use whitespace and rules rather than decorative report chrome. */
.container {
  max-width: 1408px;
  margin: 0 auto;
  padding: 1.25rem 2rem 2.5rem;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.workspace-heading h1 {
  margin-bottom: 0.4rem;
}
.workspace-heading p {
  margin-bottom: 0;
  color: var(--muted);
}
.section-kicker {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.panel {
  background: var(--surface);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--rule);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.panel-head h2 {
  margin: 0;
}
.panel-head input {
  width: auto;
  min-width: min(16rem, 100%);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.8rem;
}
.empty {
  color: var(--muted);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--surface);
}

/* Controls */
label {
  display: block;
  font-weight: 600;
  margin: 0.85rem 0 0.35rem;
}
label.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.65rem 0;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--lilac);
  border-radius: var(--radius);
  background: #fff;
}
input::placeholder,
textarea::placeholder {
  color: #686879;
  opacity: 1;
}
input:disabled,
select:disabled {
  background: var(--ground);
  color: var(--muted);
}
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin: 0.25rem 0 0;
  accent-color: var(--brand);
}
input[type="file"] {
  padding: 0.4rem;
  font-size: 0.8rem;
}
textarea {
  resize: vertical;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 1.2rem 0;
  min-width: 0;
}
fieldset:first-of-type {
  border-top: 0;
  padding-top: 0;
}
legend {
  color: var(--teal);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 0.45rem 0 0;
}
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 0 1rem;
  align-items: end;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.inline-form input {
  flex: 1 1 16rem;
  width: auto;
}
button,
.button {
  font: 600 0.83rem/1.5 var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
button:not(.secondary, .link, .icon, .danger):hover,
.button:not(.secondary):hover {
  background: var(--brand-dark);
  color: #fff;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.secondary,
.button.secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--lilac);
}
button.secondary:hover,
.button.secondary:hover {
  background: var(--tint);
  border-color: var(--brand);
}
button.danger {
  background: #fff;
  color: var(--danger);
  border-color: var(--danger);
}
button.danger:hover {
  background: var(--danger-bg);
}
button.link {
  background: none;
  border: 0;
  padding: 0;
  min-height: 36px;
  color: var(--teal);
  text-decoration: underline;
}
button.icon {
  padding: 0.2rem 0.55rem;
  min-height: 32px;
  background: #fff;
  color: var(--ink);
  border-color: var(--lilac);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
td.actions {
  vertical-align: top;
}
td.actions button {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  min-height: 34px;
}
.status {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: var(--tint);
  border-left: 3px solid var(--teal);
  overflow-wrap: anywhere;
}
.status[data-kind="error"] {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--orange);
}
.status[data-kind="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--green);
}
.errors {
  color: var(--danger);
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  max-height: 16rem;
  overflow: auto;
}
.link-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.link-box input {
  flex: 1 1 16rem;
}

/* Tables and libraries */
.dataset-row {
  cursor: pointer;
}
.dataset-row:hover,
.dataset-row:focus-within {
  background: var(--tint);
}
#upload-form,
#column-setup {
  margin-bottom: 1rem;
}
#indicator-setup {
  margin-top: 1rem;
}
.table-wrap {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
table.data th,
table.data td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
table.data thead th {
  background: var(--tint);
  font-weight: 600;
}
table.data tbody th {
  font-weight: 400;
}
table.data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  background: var(--tint);
  border-radius: 3px;
}
.tag.active {
  background: var(--ok-bg);
  color: var(--ok);
}
.report-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.saved-report {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  transition: background-color 0.15s;
}
.saved-report:last-child {
  border-bottom: 1px solid var(--rule);
}
.saved-report:hover,
.saved-report:focus-within {
  background: var(--tint);
}
.saved-report-body {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 0.5rem;
}
.saved-report-body p {
  margin: 0.25rem 0;
}
.saved-report-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
}
.saved-report-title a {
  color: var(--ink);
  text-decoration: none;
}
.saved-report:hover .saved-report-title a {
  color: var(--teal);
  text-decoration: underline;
}
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.stretched-link:focus-visible {
  outline: none;
}
.stretched-link:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.saved-report-towns {
  color: var(--teal);
  font-size: 0.83rem;
}
.saved-report-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
}
.saved-report-meta dt {
  color: var(--muted);
}
.saved-report-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.saved-report-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.5rem;
  max-width: 26rem;
  font-size: 0.8rem;
}
.saved-report-actions button {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  min-height: 36px;
}

/* Sign-in and reports */
.auth-page main {
  max-width: 29rem;
  margin: 7vh auto;
}
.auth-page .panel {
  padding: 2rem;
  border-top: 4px solid var(--teal);
}
.auth-page header.site {
  justify-content: center;
}
.indicator-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.indicator-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0;
}
.indicator-list label {
  margin: 0;
  font-weight: 400;
  flex: 1;
}
.order {
  display: flex;
  gap: 0.25rem;
}
.draft {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--warn-bg);
}
.draft .errors {
  margin-bottom: 0.5rem;
}
.report {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 2rem;
}
.report-title {
  color: var(--brand);
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}
.report-subtitle {
  color: var(--muted);
  margin: 0.25rem 0 1.6rem;
  font-size: 0.85rem;
}
.report-chart {
  margin: 0.8rem 0 1.6rem;
}
.chart-box {
  position: relative;
  height: 20rem;
}
.report-source {
  margin-top: 1.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.7rem;
}
.chart-data summary {
  cursor: pointer;
  color: var(--teal);
  margin: 0.75rem 0;
  font-size: 0.75rem;
}
.layout-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.layout-block {
  border: 0;
  padding: 0;
  background: transparent;
}
.layout-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.layout-block-name {
  font-weight: 600;
}
.report-text {
  margin: 0 0 1.5rem;
}
.report-text > :first-child {
  margin-top: 0;
}
.report-text h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}
.report-text h4 {
  font-size: 1.05rem;
  margin: 0.9rem 0 0.4rem;
}
.report-text h5 {
  font-size: 0.95rem;
  margin: 0.8rem 0 0.35rem;
}
.report-text p {
  margin: 0 0 0.7rem;
}
.report-text ul,
.report-text ol {
  margin: 0 0 0.7rem;
  padding-left: 1.5rem;
}
.report > .table-wrap {
  margin: 0 0 1.5rem;
}

/* Dataset fields, filters and chart controls. */
.field-search {
  margin: 0.35rem 0;
  font-size: 0.8rem;
}
.explorer-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 0 1rem;
  max-height: min(26rem, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.4rem;
}
.explorer-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.3rem;
  margin: 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
}
.explorer-field:last-child {
  border-bottom: 0;
}
.explorer-field:has(input:checked),
.explorer-field[data-selected="true"] {
  background: var(--tint);
}
.explorer-field:hover {
  background: var(--ground);
}
.field-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.1rem;
  overflow-wrap: anywhere;
}
.field-unit {
  font-size: 0.7rem;
  color: var(--muted);
}
.explorer-stage {
  min-width: 0;
}
.explorer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}
.explorer-toolbar h2 {
  margin-bottom: 0.25rem;
}
.explorer-view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}
.explorer-view-controls label {
  margin-top: 0;
  font-size: 0.75rem;
}
.explorer-view-controls select {
  min-width: 10rem;
  font-size: 0.8rem;
}
.explorer-source {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 1rem 0;
  overflow-wrap: anywhere;
}
.explorer-source a {
  margin-right: 0.5rem;
}
.explorer-town-entry {
  display: flex;
  gap: 0.5rem;
}
.explorer-town-entry input {
  flex: 1;
  min-width: 0;
}
.explorer-towns {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.25rem;
}
.explorer-town-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.chart-title {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}
.chart-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.data-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}
.data-pager .page-status {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.8rem;
}
.data-pager button {
  min-height: 2.5rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
}
.explorer-town {
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
}
.explorer-page #explorer-form {
  margin-bottom: 0;
}
.explorer-page #explorer-form > label {
  margin-top: 0;
}
.explorer-page #field-controls {
  padding-bottom: 0.75rem;
}
.explorer-page #field-search-label {
  margin-top: 0;
}
.explorer-field-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.explorer-field-summary p {
  margin: 0;
}
.explorer-field-summary button {
  font-size: 0.75rem;
}
.explorer-tip {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0.6rem 0;
}
.curation-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 0.25rem 1.5rem;
  margin: 1rem 0;
}
.curation-fields .check {
  border-bottom: 1px solid var(--rule);
  padding: 0.65rem 0;
  margin: 0;
}
.curation-summary {
  background: var(--tint);
  border-left: 3px solid var(--teal);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.embed-mode header.site {
  display: none;
}
.embed-mode .container {
  padding-top: 1rem;
}

@media (min-width: 1500px) {
  .container {
    max-width: 1472px;
  }
}
@media (max-width: 1100px) {
  header.site nav {
    gap: 0.25rem 1rem;
  }
  .container {
    padding: 1.25rem 1.5rem 2rem;
  }
}
@media (max-width: 850px) {
  .explorer-fields {
    grid-template-columns: minmax(0, 1fr);
    max-height: 15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: #fff;
  }
  header.site,
  .explorer-toolbar {
    display: none;
  }
  .container {
    max-width: none;
    padding: 0;
  }
  .report {
    border: 0;
  }
}

/* Dashboard libraries and their direct actions. */
.dashboard-heading {
  align-items: center;
}
.dashboard-primary-actions,
.dashboard-report-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dashboard-search {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.dashboard-search > label {
  margin: 0 0 0.35rem;
}
.dashboard-section {
  margin-bottom: 0;
}
.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dashboard-section-heading h2 {
  color: var(--brand);
  margin: 0 0 0.3rem;
}
.dashboard-section-heading p {
  margin: 0;
}
.dashboard-section-heading > a {
  font-size: 0.83rem;
  font-weight: 600;
}
.dashboard-count {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  vertical-align: middle;
}
.dashboard-page .report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-page .saved-report {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.dashboard-page .saved-report:hover,
.dashboard-page .saved-report:focus-within {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 3px 12px #2625580d;
}
.dashboard-page .saved-report-body {
  padding: 1.15rem 1.25rem;
}
.dashboard-page .saved-report-title {
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.dashboard-page .saved-report-actions {
  justify-content: flex-start;
  gap: 0.6rem 1rem;
  max-width: none;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--rule);
}
.dashboard-page .saved-report-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-weight: 600;
}
.dashboard-dataset-source {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.dashboard-page .dashboard-review {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.dashboard-review::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  background: var(--lilac);
  border-radius: 50%;
}
.dashboard-review[data-reviewed]::before {
  background: var(--teal);
}
.dashboard-owner-filter {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
}
.dashboard-owner-filter input {
  margin: 0;
}
.dashboard-report-controls select {
  width: auto;
  font-size: 0.8rem;
}
.dashboard-empty {
  padding: 2rem;
  border: 1px dashed var(--lilac);
  text-align: center;
}
.dashboard-empty h3 {
  color: var(--brand);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.dashboard-empty p {
  color: var(--muted);
  margin-bottom: 1rem;
}
@media (max-width: 1100px) {
  .dashboard-page .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .dashboard-page .report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-primary-actions {
    width: 100%;
  }
  .dashboard-primary-actions .button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-page .saved-report {
    transition: none;
  }
}

/* Staff presentation settings remain readable alongside source definitions. */
.presentation-general {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
}
.presentation-form > div,
.presentation-form > details {
  margin-bottom: 1rem;
}
.presentation-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(9rem, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.presentation-field label,
.report-field-override label {
  font-size: 0.75rem;
}
.report-customization {
  margin-top: 1rem;
}
.report-field-override {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}
.report-field-override > strong {
  display: block;
  margin-bottom: 0.5rem;
}
.report-field-override input,
.report-field-override select {
  margin-bottom: 0.5rem;
}
@media (max-width: 750px) {
  .presentation-general,
  .presentation-field {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Style choices are scoped to the report, including its tables and text. */
.report .report-title,
.report .chart-title,
.report .report-text h3,
.report .report-text h4,
.report .report-text h5,
.report .report-text a {
  color: var(--report-heading, var(--teal));
}
.report table.data thead th {
  background-color: var(--report-table-header, var(--tint));
  color: #262558;
}
.report[data-text-size="large"] .report-text,
.report[data-text-size="large"] table.data {
  font-size: 1rem;
}
.report[data-spacing="compact"] .report-text,
.report[data-spacing="compact"] .report-chart,
.report[data-spacing="compact"] .report-table {
  margin-bottom: 0.6rem;
}
.report[data-spacing="compact"] table.data th,
.report[data-spacing="compact"] table.data td {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}
.report-style-editor {
  min-width: 0;
  margin: 1rem 0;
}
.style-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.style-setting-label {
  grid-column: 1;
  font-size: 0.83rem;
}
.style-setting-inputs {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.style-setting .style-override-toggle {
  grid-column: 2;
  grid-row: 1;
}
.style-setting-inputs input[type="color"] {
  width: 34px;
  height: 34px;
  padding: 2px;
  cursor: pointer;
}
.style-setting-inputs select {
  width: auto;
  font-size: 0.8rem;
}
.style-override-toggle {
  font-size: 0.75rem;
  font-weight: 400;
  margin: 0;
}
.style-sample {
  background: #fff;
  color: #262558;
  border: 1px solid var(--rule);
  margin: 1rem 0;
}
.style-sample-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 1rem 0;
}
.style-sample-bars span {
  width: 24px;
}
.style-sample-header {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  font-weight: 600;
}
.style-sample p {
  margin: 0.5rem 0 0;
}

/* Unit groups explain chart grouping before a field is selected. */
.unit-field-group {
  padding: 0.65rem 0;
  margin: 0.65rem 0 0;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--rule);
}
.unit-field-group legend {
  font-size: 0.82rem;
  font-weight: 600;
  padding-right: 0.5rem;
  color: var(--teal);
}
.unit-field-group .indicator-list {
  margin: 0;
}
.field-label-unit {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  margin-top: 0.1rem;
}
.field-order-position {
  color: var(--muted);
  font-size: 0.7rem;
  align-self: center;
}

/* Contain wide report content inside the task workspace. */
.builder-grid > * {
  min-width: 0;
}

/* Task tabs and shared page actions. */
.page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  background: var(--ground);
}
.page-toolbar h1,
.page-toolbar h2 {
  margin: 0;
}
.workspace-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-toolbar .workspace-actions {
  margin-left: auto;
}
.tab-panel .page-toolbar {
  position: static;
  padding-top: 0;
  background: transparent;
}
.page-toolbar label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
}
.page-toolbar input,
.page-toolbar select {
  width: min(22rem, 100%);
}
.builder-toolbar .report-name-field {
  flex: 1 1 20rem;
  min-width: 0;
  max-width: 40rem;
}
.builder-toolbar input {
  width: 100%;
}
.builder-toolbar .workspace-actions {
  margin-left: auto;
  flex: 0 0 auto;
}
[data-tabs] {
  min-width: 0;
}
.workspace-tabs {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 1.25rem;
  padding: 0 0.15rem;
}
.workspace-tabs [role="tab"] {
  flex: 0 0 auto;
  max-width: 22rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 150ms, border-color 150ms, background-color 150ms;
}
.workspace-tabs [role="tab"]:hover {
  background: #e9ebf0;
  color: var(--brand);
}
.workspace-tabs [role="tab"][aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--teal);
  background: transparent;
}
.workspace-tabs [role="tab"]:focus-visible {
  outline-offset: -4px;
}
.tab-panel {
  min-width: 0;
  margin: 0;
}
.tab-panel > h2:first-child {
  margin-bottom: 0.85rem;
}
[data-tabs] .panel {
  border-top: 0;
  margin-bottom: 0;
}
[data-tabs] [data-tabs] .workspace-tabs {
  margin-bottom: 1rem;
}
[data-tabs] [data-tabs] .workspace-tabs [role="tab"] {
  font-size: 0.8rem;
  padding: 0.55rem 0.75rem;
  min-height: 40px;
}
.builder-workspace .preview-pane .report {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem;
}
.builder-workspace .preview-pane .report-title {
  margin-bottom: 0.25rem;
}
.builder-workspace .preview-pane .report-subtitle {
  margin: 0.25rem 0 0.75rem;
}
.builder-workspace .preview-pane .report-chart {
  margin: 0.75rem 0;
}
.builder-workspace .preview-pane .chart-box {
  height: clamp(14rem, 30vh, 18rem);
}
.builder-workspace .preview-pane .report-source {
  margin-top: 0.75rem;
}
.builder-workspace #builder-form {
  padding: 0;
  background: transparent;
}
.builder-workspace #builder-form > .tab-panel {
  padding: 1.25rem;
  background: var(--surface);
}
.builder-workspace #indicator-list,
.field-list-scroll {
  max-height: min(26rem, 48vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0.25rem 0.5rem 0.25rem 0;
}
.preview-scroll {
  max-height: min(32rem, 58vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.admin-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.admin-navigation a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--teal);
}
.admin-navigation a:hover {
  color: var(--brand);
}
.dataset-title {
  flex: 1 1 24rem;
  min-width: 0;
}
.dataset-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}
.dataset-summary > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dataset-summary dt {
  color: var(--muted);
}
.dataset-summary dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dataset-details {
  margin: 0.3rem 0 1.1rem;
  font-size: 0.82rem;
}
.dataset-details > summary {
  width: fit-content;
  padding: 0.4rem 0;
  color: var(--teal);
  cursor: pointer;
}
.admin-dataset-toolbar {
  display: grid;
  grid-template-columns: minmax(15rem, 2fr) repeat(3, minmax(9rem, 1fr));
  align-items: end;
  gap: 0.65rem 1rem;
  margin-bottom: 0.9rem;
}
.admin-dataset-toolbar label {
  margin-top: 0;
  font-size: 0.8rem;
}
.admin-dataset-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.admin-dataset-results p {
  margin: 0;
}
button.sortable-heading {
  min-height: 36px;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
button.sortable-heading:hover {
  background: transparent;
  color: var(--teal);
}
.sort-indicator {
  margin-left: 0.25rem;
  font-size: 0.85em;
}
@media (max-width: 1000px) {
  .admin-dataset-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .admin-dataset-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dataset-title {
    flex-basis: 100%;
  }
  .dataset-summary {
    gap: 0.2rem 0.8rem;
  }
}
@media print {
  .admin-navigation {
    display: none;
  }
}
#users-body select {
  min-width: 6rem;
}
.field-editor-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}
.field-editor-controls label {
  margin-top: 0.35rem;
}

.builder-workspace .layout-block .unit-field-groups {
  max-height: 20rem;
  overflow: auto;
}
.builder-chart-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
}
.report-more {
  position: relative;
}
.report-more > summary,
td.actions details > summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--lilac);
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
}
.report-more > summary::-webkit-details-marker,
td.actions details > summary::-webkit-details-marker {
  display: none;
}
.report-more > summary::after,
td.actions details > summary::after {
  content: '⌄';
  margin-left: 0.5rem;
}
.report-more[open] {
  z-index: 10;
}
.report-more-actions {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  display: grid;
  min-width: 10rem;
  gap: 0.25rem;
  padding: 0.4rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 20px #26255818;
}
.report-more-actions button {
  justify-content: flex-start;
  border-color: transparent;
}
.embed-mode .page-toolbar {
  display: none;
}
[data-tabs] .report-style-editor {
  max-width: 52rem;
  margin-top: 0;
}
[data-tabs] .style-setting {
  grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1.3fr) auto;
  padding: 0.6rem 0;
}
[data-tabs] .style-setting-inputs {
  grid-column: 2;
  grid-row: 1;
}
[data-tabs] .style-setting .style-override-toggle {
  grid-column: 3;
}
[data-tabs] .style-sample {
  max-width: 28rem;
}

.dashboard-page .dashboard-empty h2 {
  color: var(--brand);
  font-size: 1rem;
  margin: 0 0 1rem;
}

/* Long tables keep their headers and pagination near the current task. */
.admin-page #datasets-panel > .table-wrap,
#people-panel > .table-wrap {
  max-height: min(24rem, 43vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.admin-page #datasets-panel table.data {
  min-width: 64rem;
}
#people-panel table.data {
  min-width: 48rem;
}
.report .table-wrap {
  max-height: min(30rem, 55vh);
  overflow: auto;
  overscroll-behavior: contain;
}
.table-wrap table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--rule);
}
#people-panel td.actions details {
  min-width: 6rem;
}
#people-panel td.actions details[open] {
  min-width: 11rem;
}
#people-panel td.actions .button-row {
  display: grid;
  margin-top: 0.5rem;
}
#people-panel td.actions .button-row button {
  justify-content: flex-start;
}
.list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}
.list-pagination > p,
.list-pagination > .button-row {
  margin: 0;
}
.list-pagination > .button-row,
.list-pagination > .workspace-actions {
  margin-left: auto;
}
.people-toolbar {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(8rem, 1fr));
  gap: 0.65rem 1rem;
  align-items: end;
}
.people-toolbar label {
  margin-top: 0;
  font-size: 0.8rem;
}
.builder-workspace #record-filters,
.explorer-page #record-filters {
  max-height: min(24rem, 45vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.35rem;
}
#builder-publish-panel textarea {
  max-width: 44rem;
}

/* Public reports keep the published selection readable without editor controls. */
.public-report-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.public-report-card {
  min-width: 0;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.public-report-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.public-report-card h2 a {
  color: var(--brand);
  text-decoration: none;
}
.public-report-card h2 a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.public-report-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.public-report-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}
.public-report-back {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}
.public-report-filters {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.public-report-filters > summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
}
.public-report-filters[open] > summary {
  margin-bottom: 0.75rem;
}
.public-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 0.75rem 1.5rem;
  align-items: start;
}
.public-filter-grid > *,
.public-section-navigation > * {
  min-width: 0;
}
.public-filter-grid #record-filters {
  display: grid;
  max-height: min(18rem, 40vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 0.5rem 1rem;
}
.public-filter-grid label {
  margin-top: 0;
}
.public-town-list {
  max-height: 10rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.35rem;
}
.public-filter-actions {
  margin-top: 0.75rem;
}
.public-section-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0;
}
.public-section-navigation > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 18rem;
  max-width: 38rem;
}
.public-section-navigation label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.8rem;
}
.public-section-navigation .data-pager {
  margin: 0;
}
.public-report-page .page-toolbar {
  padding: 0.35rem 0;
  margin-bottom: 0.35rem;
}
.public-report-page > main > .report-subtitle {
  margin: 0 0 0.35rem;
}
.public-report-page > main > .public-report-summary {
  margin-bottom: 0.25rem;
}
.public-report-page .public-report-filters,
.public-report-page .public-section-navigation {
  margin: 0.5rem 0;
}
.public-section-navigation select {
  flex: 1;
}
.public-report-stage .report {
  margin-top: 0;
  padding: 1.25rem;
}
.public-report-stage .report-chart {
  margin: 0 0 0.75rem;
}
.public-report-stage .chart-box {
  height: clamp(15rem, 33vh, 20rem);
}
.public-report-stage .report-source {
  margin-top: 0.75rem;
}

@media (min-width: 850px) {
  .builder-workspace #record-filters,
  .explorer-page #record-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }
}
@media (max-width: 650px) {
  .explorer-page .explorer-fields {
    max-height: max(10rem, calc(100svh - 42rem));
  }

  .brand span {
    font-size: 0.65rem;
  }
  header.site .site-account .who {
    max-width: 10rem;
  }
  .panel,
  .report {
    padding: 1rem;
  }
  .panel-head input {
    width: 100%;
    min-width: 0;
  }
  .saved-report {
    display: block;
  }
  .saved-report-actions {
    justify-content: flex-start;
    padding-top: 0;
  }
  .saved-report-body {
    padding-bottom: 0.75rem;
  }
  .explorer-view-controls {
    width: 100%;
  }
  .explorer-view-controls > * {
    flex: 1;
    min-width: 0;
  }
  .explorer-view-controls select {
    min-width: 0;
  }
  .chart-box {
    height: 18rem;
  }
  .town-page .preview-scroll {
    max-height: max(12rem, calc(100svh - 25rem));
  }
  .auth-page main {
    margin: 3vh auto;
  }
  .dashboard-search .inline-form input {
    flex-basis: 12rem;
  }
  .people-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .people-toolbar > div:first-child {
    grid-column: 1 / -1;
  }
  .public-report-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .public-section-navigation > div,
  .public-section-navigation .data-pager {
    max-width: none;
    width: 100%;
  }
  .public-section-navigation .data-pager {
    justify-content: space-between;
  }
  .public-section-navigation .page-status {
    margin: 0;
  }
  .container {
    padding: 0.75rem 1rem 2rem;
  }
  header.site {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 0.75rem 1rem 0;
    gap: 0.35rem 0.75rem;
  }
  .brand {
    width: auto;
    min-width: 0;
  }
  .brand strong {
    font-size: 1.35rem;
  }
  header.site nav {
    flex-wrap: nowrap;
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    flex-basis: 100%;
    width: 100%;
    gap: 1rem;
  }
  header.site nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  button.icon {
    min-width: 44px;
    min-height: 44px;
  }
  header.site .site-account {
    width: auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    font-size: 0.7rem;
    column-gap: 0.65rem;
  }
  .page-toolbar {
    align-items: center;
    gap: 0.5rem;
  }
  .page-toolbar .workspace-actions {
    margin-left: 0;
    width: 100%;
  }
  .page-toolbar input,
  .page-toolbar select {
    width: 100%;
  }
  .workspace-tabs {
    margin-bottom: 0.85rem;
  }
  .workspace-tabs [role="tab"] {
    padding: 0.65rem 0.75rem;
    max-width: 16rem;
  }
  .field-editor-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .builder-chart-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-tabs] .style-setting {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  [data-tabs] .style-setting-inputs {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  [data-tabs] .style-setting .style-override-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  .builder-workspace #builder-form > .tab-panel {
    padding: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-tabs [role="tab"] {
    transition: none;
  }
}
@media print {
  .page-toolbar,
  .workspace-tabs {
    display: none;
  }
  .explorer-page #explorer-form > label,
  .explorer-page #dataset,
  .explorer-page #dataset-caption,
  .explorer-page #explore-fields,
  .explorer-page #explore-filters,
  .explorer-page #visualization-controls,
  .explorer-page #action-status,
  .explorer-page #share-fallback {
    display: none !important;
  }
  .explorer-page #explore-view,
  .builder-workspace #builder-preview-panel {
    display: block !important;
  }
  .builder-workspace #builder-form {
    display: none;
  }
  .preview-scroll,
  .field-list-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media print {
  .table-wrap,
  .report .table-wrap,
  .admin-page #datasets-panel > .table-wrap,
  #people-panel > .table-wrap {
    max-height: none;
    overflow: visible;
  }
  .table-wrap table.data thead th {
    position: static;
  }
  .public-report-back,
  .public-report-filters,
  .public-section-navigation,
  .list-pagination,
  .data-pager {
    display: none;
  }
}
