@font-face {
  font-family: Terminal;
  src: local("Courier New");
  font-display: swap;
}
:root {
  --paper: #e4ddc9;
  --cream: #f0eadb;
  --ink: #303329;
  --muted: #777567;
  --orange: #b84b2b;
  --amber: #efc47b;
  --line: #b8b19d;
  --crt: #242b23;
  --mono: Terminal, "Courier New", monospace;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: #302f27;
  color: var(--ink);
  font: 13px var(--mono);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 3px,
    #ffffff03 3px 4px
  );
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
  border: 1px solid var(--ink);
  background: var(--cream);
  padding: 10px 14px;
  font-weight: bold;
  box-shadow: 0 2px 0 #393b2a25;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
button:hover {
  background: #d5ccb4;
}
button:active {
  transform: translateY(1px);
  box-shadow: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #cf702d;
  outline-offset: 3px;
}
input,
select,
textarea {
  color: var(--ink);
  background: #f6f0df;
  border: 1px solid var(--line);
  border-radius: 0;
  max-width: 100%;
}
input,
select {
  min-height: 36px;
  padding: 8px 10px;
}
input[type="checkbox"] {
  accent-color: var(--orange);
  min-height: 0;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 0;
}
a {
  color: inherit;
}
small {
  font-size: 11px;
}
form {
  margin: 0;
}
button .sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  padding: 10px;
  background: var(--amber);
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.machine {
  max-width: 1800px;
  margin: 18px;
  background: var(--paper);
  border: 1px solid #a9a28f;
  box-shadow:
    inset 0 0 0 5px #c9c2ad,
    0 16px 60px #0005;
  position: relative;
  min-height: calc(100vh - 36px);
}
.machine:before,
.machine:after {
  content: "⊖";
  position: absolute;
  top: 8px;
  font-size: 17px;
  color: #797969;
}
.machine:before {
  left: 9px;
}
.machine:after {
  right: 9px;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 30px 36px 23px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.identity b {
  font: 900 42px/1 var(--sans);
  letter-spacing: -2px;
}
.identity small {
  display: block;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.2px;
  margin-top: 5px;
}
.emblem {
  width: 53px;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  font: 900 31px var(--sans);
  position: relative;
  border-radius: 48% 48% 0 0;
}
.emblem span {
  position: absolute;
  right: -7px;
  top: -9px;
  background: var(--paper);
  font-size: 23px;
}
.department {
  border-left: 1px solid #aaa38e;
  padding-left: 25px;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 1.1px;
}
.system {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 1px;
}
.system small {
  display: block;
  font-size: 9px;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.lamp {
  width: 7px;
  height: 7px;
  background: #697b45;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  box-shadow: 0 0 0 3px #697b451c;
}
.unit {
  text-align: right;
  font-size: 9px;
  letter-spacing: 1px;
  border-left: 1px solid #aaa38e;
  padding-left: 25px;
}
.unit b {
  font: 900 37px var(--sans);
  margin-left: 5px;
}
.unit span {
  display: block;
  font-size: 8px;
  margin-top: 4px;
}
.ruler {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0 25px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  font-size: 9px;
  letter-spacing: 0.8px;
  background: repeating-linear-gradient(
      90deg,
      #303329 0 1px,
      transparent 1px 10px
    )
    top/100% 3px no-repeat;
}
main {
  padding: 0 35px 24px;
}
.intro {
  display: flex;
  align-items: center;
  gap: 55px;
  padding: 31px 0 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: bold;
}
h1 {
  font: 800 37px/1.05 var(--sans);
  letter-spacing: -1.4px;
  margin: 10px 0 0;
}
h1 em {
  font-style: normal;
  color: var(--orange);
}
.instruction {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
  font-size: 11px;
  line-height: 1.9;
}
.instruction p {
  margin: 0;
}
.instruction strong {
  font-weight: bold;
}
.instruction-mark {
  font: 54px var(--sans);
  color: var(--orange);
}
.seal {
  margin-left: 14px;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 10px 14px;
  text-align: center;
  transform: rotate(-6deg);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 1.5px;
  box-shadow:
    inset 0 0 0 2px var(--paper),
    inset 0 0 0 3px var(--orange);
}
.seal b {
  font-size: 11px;
  letter-spacing: 1px;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.5fr);
  gap: 20px;
  align-items: start;
}
.panel {
  border: 1px solid var(--ink);
  background: #eee8d9;
  box-shadow: 3px 3px 0 #bcb5a1;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px 0 0;
  border-bottom: 1px solid var(--ink);
  background: #d9d1bc;
  height: 43px;
}
.step {
  align-self: stretch;
  background: var(--orange);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  font-weight: bold;
  font-size: 15px;
  border-right: 1px solid var(--ink);
}
h2 {
  font: 700 17px var(--sans);
  margin: 0;
  letter-spacing: -0.2px;
}
.panel-code {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1.3px;
}
.panel-body {
  padding: 20px;
}
.screen-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.query-screen {
  position: relative;
  display: flex;
  border: 5px solid #57584a;
  box-shadow:
    inset 0 0 16px #0008,
    0 1px 0 #fff8;
  background: var(--crt);
  padding: 13px 11px 25px;
  min-height: 116px;
  border-radius: 8px;
}
.query-screen:after,
.crt-table:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #0000 0 2px, #0000000c 2px 3px);
  pointer-events: none;
  border-radius: inherit;
}
.prompt {
  color: var(--amber);
  margin-right: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.query-screen textarea {
  width: 100%;
  height: 65px;
  resize: vertical;
  min-height: 55px;
  background: none;
  color: var(--amber);
  border: 0;
  line-height: 1.55;
  font-size: 12px;
  z-index: 1;
  padding: 0;
}
.query-screen textarea::placeholder {
  color: #b0a17b;
  opacity: 1;
}
.screen-corner {
  position: absolute;
  bottom: 7px;
  right: 11px;
  font-size: 7px;
  color: #aeaa8a;
  letter-spacing: 1.6px;
}
.primary {
  background: var(--orange);
  border-color: #863c27;
  color: #fff0d4;
  box-shadow: 0 3px 0 #783e2b;
  font-size: 11px;
}
.primary:hover {
  background: #983c23;
  color: white;
}
.full {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 12px 0 14px;
}
.helper {
  font-size: 10px;
  line-height: 1.65;
  color: #696858;
  margin: 12px 0;
}
.suggestion-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  margin: 18px 0 5px;
  color: var(--muted);
}
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.text-button {
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 10px;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: normal;
}
.text-button:hover {
  background: none;
  color: var(--orange);
}
.inline {
  display: inline-block;
}
.subhead {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.subhead span {
  font-weight: normal;
  color: var(--muted);
}
.draft {
  border-top: 1px dashed var(--line);
  padding-top: 17px;
  margin-top: 19px;
}
.draft-empty {
  font-size: 10px;
  color: #7b7869;
  line-height: 1.7;
  padding: 15px 0 9px;
}
.draft-empty > span {
  float: left;
  font-size: 33px;
  margin-right: 12px;
  line-height: 1.2;
}
.target-count {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.target-count .lamp {
  width: 5px;
  height: 5px;
  margin-right: 2px;
}
.target-count a {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0;
}
.media-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.big-count {
  font: 800 34px/1.15 var(--sans);
  letter-spacing: -1px;
  margin-top: 5px;
}
.big-count small {
  font: normal 13px var(--mono);
  color: var(--muted);
  letter-spacing: 0;
}
.stamp {
  border: 1px solid #a6a18c;
  text-align: center;
  font-size: 8px;
  line-height: 1.7;
  padding: 5px 12px;
  letter-spacing: 1px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.filter-label {
  font-size: 9px;
  display: block;
}
.filter-label select {
  display: block;
  width: 100%;
  font-size: 11px;
  margin-top: 6px;
}
.media-search {
  display: flex;
  margin-top: 12px;
  gap: 8px;
}
.media-search input {
  width: 100%;
  font-size: 11px;
}
.dark {
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  white-space: nowrap;
}
.dark:hover {
  background: #535542;
  color: white;
}
.advanced {
  margin-top: 13px;
}
.advanced summary {
  font-size: 10px;
}
.advanced summary span {
  float: right;
  font-size: 8px;
  color: var(--muted);
}
.advanced .filter-grid {
  margin: 15px 0;
}
.small {
  padding: 6px 9px;
  font-size: 10px;
}
.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 16px;
  font-size: 9px;
  padding: 6px 0;
}
.muted {
  color: var(--muted);
}
.media-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #c9c1ad;
  cursor: pointer;
  transition: background 0.15s;
}
.media-row:hover {
  background: #dfd7c3;
}
.type-badge {
  font-size: 9px;
  border: 1px solid #9b9c87;
  padding: 4px 6px;
  min-width: 42px;
  text-align: center;
  color: #626653;
}
.media-description {
  min-width: 0;
  flex: 1;
}
.media-description b {
  font-size: 11px;
  font-weight: normal;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-description small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-mark {
  font-size: 9px;
  flex: 0 0 auto;
  color: #6c7357;
}
.selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.selection-actions > span {
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 1px;
}
.media-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 11px;
  margin-top: 15px;
  gap: 10px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
}
.pagination button {
  min-width: 30px;
}
.analysis-panel {
  margin-top: 22px;
}
.table-controls {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 20px;
}
.target-switch {
  min-width: 220px;
  max-width: 330px;
  flex: 1;
}
.target-switch label,
.basis > span,
.metric-picker > span {
  font-size: 8px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.target-switch select {
  background: #e2dac4;
  border: 1px solid #888875;
  font-weight: bold;
  width: 100%;
  font-size: 12px;
}
.basis {
  padding-left: 25px;
  border-left: 1px solid var(--line);
  min-width: 190px;
}
.basis > b {
  font: 700 23px var(--sans);
  display: block;
}
.basis b small {
  font: 10px var(--mono);
}
.basis > small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: var(--muted);
}
.metric-picker {
  margin-left: auto;
}
.metric-picker > div {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.metric-toggle {
  font-size: 10px;
  padding: 8px 9px;
  border-color: var(--line);
  background: none;
  box-shadow: none;
  font-weight: normal;
}
.metric-toggle.active {
  background: #d7d3bd;
  border-color: #8a8e73;
}
.metric-toggle.active span {
  color: #677443;
}
.crt-table {
  position: relative;
  background: var(--crt);
  color: var(--amber);
  margin: 0 12px;
  border: 5px solid #55594b;
  border-radius: 8px;
  box-shadow: inset 0 0 35px #0005;
}
.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  letter-spacing: 0.8px;
  padding: 14px 15px;
  border-bottom: 1px solid #707158;
}
.table-scroll {
  position: relative;
  overflow: auto;
  overflow-anchor: none;
  max-height: 70vh;
}
.table-scroll table {
  table-layout: fixed;
  min-width: 760px;
}
.table-scroll thead th:nth-child(2) {
  width: 32%;
}
.table-scroll thead th:last-child {
  width: 38px;
}
tr[data-face] {
  height: 80px;
}
.virtual-spacer td {
  padding: 0;
  border: 0;
  line-height: 0;
}
.calculation-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 15px;
  color: #b5b08a;
  font-size: 9px;
  border-bottom: 1px solid #707158;
}
.calculation-progress.error {
  color: #f3a17e;
}
.calculation-progress progress {
  width: 100%;
  height: 3px;
  border: 0;
  appearance: none;
  accent-color: var(--amber);
}
.calculation-progress progress::-webkit-progress-bar {
  background: #a5a17a35;
}
.calculation-progress progress::-webkit-progress-value {
  background: var(--amber);
}
tbody {
  counter-reset: medium;
}
tr[data-face] {
  counter-increment: medium;
}
tbody .row-number::before {
  content: counter(medium, decimal-leading-zero);
}
tr[data-ready="false"] .numeric {
  color: #92947e;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--crt);
  font-size: 9px;
  letter-spacing: 0.8px;
  font-weight: normal;
  padding: 15px 13px;
  text-align: left;
  border-bottom: 1px solid #707158;
  color: #b5b08a;
}
.sort-button {
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  white-space: nowrap;
}
.sort-button:hover,
th[aria-sort="ascending"] .sort-button,
th[aria-sort="descending"] .sort-button {
  color: var(--amber);
  background: none;
}
.sort-button span {
  margin-left: 5px;
}
thead th small {
  font-size: 7px;
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  color: #999b7c;
}
tbody td,
tbody th {
  padding: 13px;
  border-bottom: 1px solid #ffffff15;
}
tbody th {
  text-align: left;
  max-width: 320px;
}
tbody th b {
  font-size: 11px;
  font-weight: normal;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody th small {
  display: block;
  color: #a8a78a;
  font-size: 8px;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:hover {
  background: #dac9800a;
}
.row-number {
  width: 44px;
  color: #a0a080;
  font-size: 9px;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reach b {
  font-weight: normal;
  font-size: 16px;
}
.bar-track {
  display: block;
  height: 2px;
  background: #a5a17a35;
  margin-top: 6px;
}
.bar-track i {
  display: block;
  height: 2px;
  background: var(--amber);
  min-width: 0;
}
.remove-button {
  color: #aca986;
  background: none;
  box-shadow: none;
  border: 0;
  padding: 5px;
}
.remove-button:hover {
  background: #ffffff18;
  color: var(--amber);
}
.empty-table {
  height: 190px;
  text-align: center !important;
  color: #b9b38c;
}
.empty-table > b {
  display: block;
  font-weight: normal;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 8px;
}
.empty-table > span:last-child {
  font-size: 10px;
  line-height: 1.8;
  display: block;
}
.empty-crosshair {
  font-size: 34px;
  display: block;
  color: #8d9370;
  margin-bottom: 7px;
}
.table-foot {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #b3b28e;
}
.table-foot .lamp {
  background: #b5b370;
  width: 5px;
  height: 5px;
}
.terminal-button {
  padding: 4px 6px;
  border: 1px solid #707158;
  color: #c7bd90;
  font-size: 8px;
  background: transparent;
  box-shadow: none;
}
.terminal-button:hover {
  background: #ffffff0a;
  color: var(--amber);
}
.method-note {
  font-size: 8px;
  line-height: 1.8;
  color: #787461;
  padding: 13px 19px;
}
.method-note b {
  font-size: 8px;
  letter-spacing: 0.5px;
}
.notification {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 20px;
  padding: 11px 0;
  font-size: 9px;
  line-height: 1.6;
}
.notification-code {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--orange);
  white-space: nowrap;
}
.notification-end {
  margin-left: auto;
  white-space: nowrap;
  color: #65744a;
}
.notification.error {
  color: #a12d15;
}
.machine-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 35px 23px;
  font-size: 8px;
  letter-spacing: 1px;
}
.machine-footer span:nth-child(2) {
  color: var(--muted);
  font-size: 7px;
}
.search-results {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.search-results .filter-label {
  margin: 10px 0;
}
.feature-info {
  font-size: 11px;
  margin-top: 13px;
}
.feature-info code {
  font-size: 9px;
  background: #d6d1bc;
  padding: 3px 5px;
  margin-right: 7px;
}
.feature-info small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin: 8px 0;
}
.answer-list {
  max-height: 145px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 3px 9px;
  background: #e8e2d2;
}
.answer-list label {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  font-size: 10px;
}
.answer-list label small {
  margin-left: auto;
  font-size: 8px;
  color: var(--muted);
}
.answer-list label code {
  font-size: 8px;
  min-width: 14px;
}
.rule-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.check {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
}
.coverage-filter {
  margin-top: 13px;
}
.no-contacts {
  color: #edb378;
}
.range-fields {
  display: flex;
  gap: 10px;
}
.range-fields label {
  font-size: 9px;
  flex: 1;
}
.range-fields input {
  width: 100%;
  margin-top: 6px;
}
.join-form {
  margin: 12px 0;
  font-size: 10px;
}
.join-form select {
  font-size: 10px;
  padding: 6px;
  min-height: 30px;
}
.draft-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 8px;
  background: #ded8c3;
  border-left: 3px solid var(--orange);
  gap: 9px;
}
.draft-rule b {
  font-size: 10px;
  font-weight: normal;
}
.draft-rule small {
  font-size: 9px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.icon-button {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 4px;
}
.draft-basis {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  margin: 13px 0;
}
.save-target {
  display: flex;
  gap: 8px;
}
.save-target input {
  min-width: 0;
  width: 100%;
  font-size: 10px;
}
.save-target button {
  font-size: 10px;
  white-space: nowrap;
}
.active-definition {
  padding: 10px 15px;
  font-size: 9px;
  color: #c8c09b;
  border-bottom: 1px solid #707158;
}
.active-definition p {
  margin: 8px 0;
}
.empty-media {
  padding: 45px 10px;
  text-align: center;
  line-height: 2;
}
.empty-media small {
  color: var(--muted);
}
@media (min-width: 1600px) {
  .machine {
    margin: 25px auto;
    max-width: 1550px;
  }
  .intro {
    padding: 37px 0;
  }
  main {
    padding-left: 45px;
    padding-right: 45px;
  }
  .work-grid {
    grid-template-columns: 440px 1fr;
  }
  .panel-body {
    padding: 24px;
  }
}
@media (max-width: 1100px) {
  .masthead {
    gap: 20px;
    padding: 26px;
  }
  .department,
  .unit {
    display: none;
  }
  .intro {
    gap: 20px;
  }
  .instruction {
    font-size: 10px;
  }
  .seal {
    display: none;
  }
  .work-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1.3fr);
    gap: 14px;
  }
  .panel-body {
    padding: 15px;
  }
  .table-controls {
    gap: 18px;
    flex-wrap: wrap;
  }
  .metric-picker {
    margin-left: 0;
  }
  .media-description small {
    font-size: 7px;
  }
  .selection-actions > span {
    display: none;
  }
  .selection-actions {
    justify-content: flex-end;
  }
  .machine-footer {
    font-size: 7px;
  }
  .machine-footer span:nth-child(2) {
    display: none;
  }
  .table-meta {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .machine {
    margin: 8px;
    min-height: calc(100vh - 16px);
  }
  .masthead {
    padding: 25px 18px 18px;
    gap: 12px;
  }
  .identity b {
    font-size: 32px;
  }
  .identity small {
    font-size: 7px;
  }
  .emblem {
    width: 40px;
    height: 44px;
    font-size: 25px;
  }
  .system {
    font-size: 8px;
    letter-spacing: 0;
  }
  .system small {
    font-size: 6px;
  }
  .ruler {
    margin: 0 15px;
    font-size: 7px;
  }
  .ruler span:nth-child(2) {
    display: none;
  }
  main {
    padding: 0 15px 18px;
  }
  .intro {
    padding: 25px 0;
    display: block;
  }
  .intro .eyebrow {
    font-size: 7px;
  }
  h1 {
    font-size: 33px;
  }
  .instruction {
    margin-top: 18px;
    gap: 12px;
  }
  .instruction-mark {
    font-size: 32px;
  }
  .instruction p br:nth-child(2) {
    display: none;
  }
  .instruction strong {
    margin-left: 5px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .panel-body {
    padding: 17px;
  }
  .panel-title {
    height: 42px;
  }
  .panel-code {
    font-size: 7px;
  }
  .table-controls {
    padding: 16px;
    gap: 16px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .target-switch {
    max-width: none;
    min-width: 0;
  }
  .basis {
    padding: 0;
    border: 0;
  }
  .metric-picker > div {
    gap: 4px;
  }
  .metric-toggle {
    font-size: 9px;
    padding: 8px;
  }
  .table-meta {
    flex-direction: column;
    gap: 5px;
  }
  .crt-table {
    margin: 0 7px;
    border-width: 4px;
  }
  .crt-table table {
    min-width: 760px;
  }
  .crt-table .empty-table {
    white-space: normal;
  }
  .table-scroll:has(.empty-table) table {
    min-width: 0;
  }
  .table-scroll:has(.empty-table) thead {
    display: none;
  }
  .table-foot {
    flex-wrap: wrap;
    padding: 12px 8px;
    font-size: 7px;
  }
  .notification {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 8px;
  }
  .notification-code {
    font-size: 7px;
  }
  .notification-end {
    font-size: 7px;
  }
  .machine-footer {
    padding: 0 16px 20px;
    letter-spacing: 0;
    font-size: 6px;
  }
  .media-bottom {
    gap: 7px;
  }
  .media-bottom .pagination {
    font-size: 8px;
    gap: 6px;
  }
  .media-bottom .text-button {
    font-size: 9px;
  }
  .method-note {
    padding: 12px;
    font-size: 7px;
  }
  .filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .filter-label {
    font-size: 10px;
  }
  .filter-label select {
    font-size: 11px;
    padding: 8px;
  }
  .advanced summary span {
    font-size: 6px;
  }
  .target-count {
    font-size: 7px;
  }
  .target-count a {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
