:root {
  color-scheme: light;
  --bg: #f4f5f1;
  --surface: #fff;
  --text: #18363b;
  --muted: #63777a;
  --border: #dbe3df;
  --accent: #236e62;
  --accent-soft: #e6f1ec;
  --danger: #aa5044;
  --birds: #276982;
  --rubbish: #a6622e;
  --shadow: 0 3px 14px #18363b07;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #29958f;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.65px;
}
h2 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 0;
}
small {
  font-size: 12px;
}
kbd {
  font-family: inherit;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  padding: 1px 5px;
}
.is-hidden {
  display: none !important;
}
.muted,
.dataset-meta {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 6px;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  min-width: 230px;
}
.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.7px;
  line-height: 1.05;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.45px;
  color: var(--muted);
  margin-top: 4px;
}
.aeroglobe-logo {
  width: 165px;
  height: auto;
  object-fit: contain;
  margin-left: auto;
}
.screen-tabs {
  display: flex;
  align-self: stretch;
  gap: 5px;
}
.screen-tab {
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 650;
  color: var(--muted);
}
.screen-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
main {
  padding: 24px 28px 75px;
}
.error-banner {
  background: #fff0ea;
  color: #8b382f;
  border: 1px solid #eac5b9;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 13px;
  font-weight: 650;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #195b50;
}
.secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.secondary:hover {
  background: #f3f7f4;
  border-color: #8aa99e;
}
.small {
  min-height: 32px;
  padding: 5px 10px;
}
.text-button {
  color: var(--accent);
  background: transparent;
  padding: 5px 8px;
}
.text-button:hover {
  background: var(--accent-soft);
}
input,
select {
  height: 36px;
  border: 1px solid #ced9d3;
  background: #fff;
  border-radius: 6px;
  color: var(--text);
  padding: 6px 10px;
  max-width: 100%;
  min-width: 0;
}
.stack-field,
.access-field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}
.stack-field {
  margin-top: 20px;
}
.stack-field select {
  width: 100%;
  font-size: 12px;
  font-weight: 450;
}
.panel-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}
.section-heading p {
  margin: 6px 0 0;
  font-size: 13px;
}
.count-pill {
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  min-width: 25px;
  padding: 2px 6px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  white-space: nowrap;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  background: #eaf0eb;
}
.segmented button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.segmented button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px #123b3b16;
}
.segmented.compact {
  display: flex;
}
.segmented.compact button {
  padding: 6px 10px;
  flex: 1;
  font-size: 11px;
}
.jobs-screen {
  max-width: 1150px;
  margin: auto;
}
.jobs-intro {
  padding: 45px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}
.jobs-intro h1 {
  font-size: 44px;
  letter-spacing: -1.8px;
  margin-bottom: 16px;
}
.jobs-intro p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}
.jobs-intro .eyebrow {
  margin-bottom: 14px;
}
.access-row {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.access-field {
  width: 300px;
}
.access-row .muted {
  font-size: 11px;
  padding-bottom: 9px;
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
}
.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  padding: 21px;
  color: var(--text);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  box-shadow: var(--shadow);
  position: relative;
}
.job-card:hover {
  border-color: var(--accent);
  box-shadow: 0 5px 16px #143b3b10;
}
.job-card-title {
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.job-card-meta {
  color: var(--muted);
  font-size: 12px;
}
.job-card-arrow {
  position: absolute;
  right: 20px;
  top: 22px;
  color: var(--accent);
  font-size: 22px;
}
.job-card-warning {
  font-size: 11px;
  color: #92682b;
}
.count-note {
  padding: 15px 17px;
  border-left: 3px solid #b8cbc0;
  font-size: 12px;
  color: var(--muted);
  background: #edf2ed;
  line-height: 1.6;
}
.domain-badge {
  display: inline-flex;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #586d70;
  background: #e9efec;
}
.domain-badge[data-domain="birds"] {
  background: #e3f1f6;
  color: var(--birds);
}
.domain-badge[data-domain="rubbish"] {
  background: #fcf0df;
  color: var(--rubbish);
}
.domain-badge[data-domain="mixed"] {
  background: #f0e9f6;
  color: #7a5491;
}
.job-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.job-heading h1 {
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
}
.job-heading .muted {
  font-size: 12px;
}
.job-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.side-panel,
.bins-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  position: sticky;
  top: 99px;
  max-height: calc(100dvh - 160px);
  overflow: auto;
  box-shadow: var(--shadow);
}
.side-panel .panel-heading {
  gap: 8px;
}
.side-panel h2 {
  font-size: 14px;
}
.side-panel .muted {
  font-size: 10px;
}
.category-list {
  display: grid;
  gap: 5px;
}
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 9px 8px;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}
.category-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  border-color: #cfdfd4;
}
.category-item:hover {
  background: #f3f6f3;
}
.category-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 20px 0 0;
}
.review-list-panel {
  min-width: 0;
}
.review-mode-row,
.review-mode-row label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}
.review-mode-row { margin-bottom: 10px; }
.review-mode-row select { padding: 5px; max-width: 100%; }
.review-mode-row .button { font-size: 11px; padding: 4px 0; }
.first-pass-hint { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.view-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 78px;
  z-index: 10;
  background: var(--bg);
  padding: 7px 0;
}
.thumbnail-size-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 250px;
  font-size: 11px;
  min-width: 0;
}
.thumbnail-size-control input {
  width: 100%;
  min-width: 60px;
  flex: 1;
  accent-color: var(--accent);
}
.thumbnail-size-control > span { white-space: nowrap; }
.thumbnail-size-control output { min-width: 54px; text-align: right; }
.is-first-pass .predicted-label,
.is-first-pass #inspectPrediction {
  display: none;
}
.scale-window {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.scale-window select {
  height: 30px;
  font-size: 11px;
  padding: 3px 6px;
}
.scale-explanation {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.5;
}
.status-line {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--border);
}
.thumb-grid {
  --thumb-base-width: 170;
  display: grid;
  grid-template-columns: repeat(auto-fill, min(100%, var(--thumb-min-width, 170px)));
  gap: 12px;
}
.thumb-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.thumb-card:hover {
  border-color: #85ac9b;
}
.thumb-card.is-reviewed {
  border-color: #82afa1;
}
.thumb-card.is-pending {
  outline: 3px solid #d4a153;
}
.thumb-card.is-dragging {
  opacity: 0.45;
}
.thumb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  background-color: #e7ece4;
}
.crop-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.crop-stage img {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  flex: none;
}
.crop-stage .tile-context-image {
  max-width: none;
  max-height: none;
  object-fit: fill;
}
.crop-stage .tile-context-image,
.crop-stage .tile-box {
  display: none;
}
.crop-stage.has-context .tile-context-image {
  display: block;
  position: absolute;
  pointer-events: none;
}
.crop-stage.has-context .tile-box {
  display: block;
  position: absolute;
  border: 1px solid #fff7c4;
  box-shadow: 0 0 0 1px #233b37b3;
  pointer-events: none;
}
.crop-stage .tile-context-status {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
}
.thumb-placeholder {
  padding: 12px;
  color: #947348;
  font-size: 11px;
  line-height: 1.5;
}
.tile-ruler {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #203d39;
}
.box-width-label,
.box-height-label {
  position: absolute;
  font-size: 9px;
  white-space: nowrap;
  font-weight: 650;
  padding: 2px 4px;
  border-radius: 3px;
  background: #fff7c4ee;
  box-shadow: 0 0 0 1px #233b3740;
}
.box-width-label { transform: translateX(-50%); }
.box-height-label {
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.scale-missing {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 8px;
  color: var(--muted);
  padding: 4px 2px;
  background: #ffffffe6;
}
.thumb-meta {
  padding: 10px 11px 8px;
  min-height: 87px;
}
.thumb-meta strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.predicted-label,
.saved-label {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.predicted-label {
  color: var(--muted);
}
.saved-label {
  color: var(--accent);
  font-weight: 600;
}
.saved-label.is-uncertain {
  color: #97692d;
}
.thumb-dimensions {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.selection-mark {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9px;
  pointer-events: none;
  display: none;
}
.is-reviewed .selection-mark,
.is-pending .selection-mark {
  display: block;
}
.tile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e9eee8;
}
.tile-action {
  flex: 1;
  border: 0;
  background: #fff;
  font-size: 10px;
  padding: 8px 3px;
  color: var(--muted);
  min-height: 34px;
  white-space: nowrap;
}
.tile-action.reject-action {
  grid-column: 1 / -1;
  border-left: 0;
  border-top: 1px solid #e9eee8;
  color: #805448;
}
.tile-action + .tile-action {
  border-left: 1px solid #e9eee8;
}
.tile-action:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.grid-sentinel {
  width: 100%;
  border: 1px dashed #cad8ce;
  background: transparent;
  color: var(--muted);
  padding: 15px;
  border-radius: 6px;
  margin-top: 18px;
  font-size: 12px;
}
.bins-panel h2 {
  font-size: 16px;
}
.bin-hint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 0;
}
.category-bins {
  display: grid;
  gap: 7px;
}
.category-bin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  background: #fafcf9;
  border: 1px solid #dbe6de;
  border-radius: 7px;
  color: var(--text);
  text-align: left;
}
.bin-icon {
  width: 24px;
  height: 28px;
  border: 1.5px solid #90b6a7;
  border-top: 3px solid #90b6a7;
  border-radius: 2px 2px 6px 6px;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 650;
}
.bin-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bin-copy > span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.key-pill {
  font-size: 10px;
  font-weight: 650;
  text-align: center;
  padding: 2px 4px;
  min-width: 20px;
}
.category-bin:hover,
.category-bin.is-drag-over {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.category-bin.is-drag-over {
  outline: 2px solid var(--accent);
  transform: translateY(-1px);
}
.category-bin[data-domain="rubbish"] .bin-icon {
  border-color: #cba978;
  color: #a66a30;
}
.category-bin.is-danger .bin-icon {
  color: #a26056;
  border-color: #c1a59f;
}
.category-bin.is-uncertain {
  background: #fffbf0;
}
.target-hint {
  font-size: 10px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.target-hint:empty {
  display: none;
}
.category-bins.has-selection .category-bin {
  border-color: #90b6a7;
}
.review-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 43px;
  padding: 8px 28px;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 10px;
}
.review-footer #saveStatus {
  font-weight: 650;
  color: var(--accent);
  flex: 1;
}
.review-footer .button {
  min-height: 25px;
  font-size: 11px;
}
.footer-help {
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: #fff;
  border: 1px solid #d4dfd6;
  border-radius: 12px;
  box-shadow: 0 22px 90px #142f3540;
  padding: 24px;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 32px);
}
dialog::backdrop {
  background: #152f3b80;
  backdrop-filter: blur(3px);
}
.species-tray {
  width: 430px;
}
.pending-preview {
  background: #e8ece4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  overflow: hidden;
}
.pending-preview img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.pending-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.choice-button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #f9fbf8;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 42px;
  padding: 8px;
  font-size: 12px;
  color: var(--text);
}
.choice-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.correction-status {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 0;
}
.inspect-dialog {
  width: 1200px;
  padding: 0;
}
.inspector-header {
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inspector-header h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.inspector-navigation {
  display: flex;
  gap: 6px;
}
.inspector-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
}
.inspector-image-panel {
  min-width: 0;
  padding: 16px;
  background: #f0f3ed;
}
.inspector-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.inspector-controls > label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin-left: auto;
}
.inspector-controls input {
  width: 90px;
  height: 20px;
  padding: 0;
  accent-color: var(--accent);
}
.inspect-viewport {
  height: 490px;
  overflow: auto;
  position: relative;
  border-radius: 7px;
  background: #253b3d;
  display: block;
}
.inspect-canvas {
  position: relative;
  margin: auto;
  display: block;
  line-height: 0;
}
.inspect-canvas > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.inspect-box {
  position: absolute;
  border: 2px solid #fff176;
  box-shadow: 0 0 0 1px #26382c;
  pointer-events: none;
  min-width: 3px;
  min-height: 3px;
}
.inspect-box > span {
  position: absolute;
  top: -19px;
  left: -2px;
  background: #fff176;
  color: #20352b;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
  line-height: 15px;
  padding: 1px 4px;
}
.inspect-viewport > p {
  color: #fff;
  text-align: center;
  padding: 60px 25px;
  font-size: 13px;
}
.context-scale-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 650;
  min-height: 16px;
}
.context-scale-bar {
  display: block;
  border: 2px solid #234d44;
  border-top: 0;
  height: 8px;
  width: 0;
}
.inspector-image-panel > .muted {
  font-size: 10px;
  margin: 10px 0 0;
}
.inspector-details {
  padding: 20px;
  overflow: auto;
  max-height: 650px;
}
.inspector-details > p {
  font-size: 12px;
  line-height: 1.6;
  margin: 13px 0;
}
.inspector-details .primary {
  width: 100%;
  white-space: normal;
}
.inspector-details .stack-field {
  margin-top: 10px;
}
.inspect-bins {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.inspect-bin {
  padding: 9px 11px;
  text-align: left;
  background: #f6faf5;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 12px;
}
.inspect-bin:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.manage-dialog {
  width: 750px;
}
.manage-dialog .muted {
  font-size: 12px;
  line-height: 1.6;
}
.managed-bins {
  max-height: 350px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.managed-bin {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px 95px;
  gap: 10px;
  padding: 9px 10px;
  align-items: center;
  border-bottom: 1px solid #e8eee8;
}
.managed-bin:last-child {
  border: 0;
}
.managed-bin input {
  width: 100%;
  font-size: 12px;
  height: 30px;
}
.managed-bin .domain-badge {
  font-size: 8px;
  padding: 3px 5px;
  justify-self: start;
}
.bin-order-buttons {
  display: flex;
  gap: 3px;
}
.bin-order-buttons button {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  min-height: 29px;
}
.managed-bin.is-inactive {
  opacity: 0.55;
}
.managed-bin .builtin-name {
  font-size: 12px;
}
.new-bin {
  margin: 20px 0 12px;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}
.new-bin legend {
  font-weight: 650;
  font-size: 12px;
}
.new-bin label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  flex: 1;
  min-width: 150px;
}
.new-bin input {
  width: 100%;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  gap: 10px;
}
.hotkey-toolbar {
  display: flex;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
}
.hotkey-toolbar .stack-field {
  margin: 0;
  flex: 1;
}
.hotkey-columns {
  display: flex;
  justify-content: space-between;
  padding: 0 128px 8px 12px;
  color: var(--muted);
  font-size: 11px;
}
.hotkey-input {
  display: flex;
  gap: 4px;
  align-items: center;
}
.managed-bin .hotkey-input input {
  width: 36px;
  text-align: center;
  text-transform: uppercase;
}
.hotkey-reset {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px;
  min-height: 30px;
}
.managed-species {
  grid-template-columns: minmax(0, 1fr) 70px;
}
.hotkey-group {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  background: #f0f4ef;
}
.help-dialog {
  width: 580px;
}
.help-dialog li {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.help-dialog li strong {
  color: var(--text);
}
.help-dialog ol {
  padding-left: 20px;
  margin-top: 22px;
}
.help-dialog > p {
  font-size: 12px;
  line-height: 1.7;
}
@media (min-width: 1650px) {
  .workspace-grid {
    grid-template-columns: 240px minmax(0, 1fr) 300px;
  }
  .thumb-grid {
    --thumb-base-width: 185;
  }
}
@media (max-width: 1200px) {
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .workspace-grid {
    grid-template-columns: 200px minmax(0, 1fr) 270px;
    gap: 12px;
  }
  .side-panel,
  .bins-panel {
    padding: 12px;
  }
  .thumb-grid {
    --thumb-base-width: 150;
    gap: 9px;
  }
  .job-actions {
    max-width: 350px;
    justify-content: flex-end;
  }
  .bin-copy strong {
    font-size: 11px;
  }
  .bins-panel .segmented.compact button {
    padding: 6px;
  }
  .footer-help {
    display: none;
  }
}
@media (max-width: 920px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .side-panel {
    grid-column: 1/-1;
    position: static;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-height: none;
  }
  .side-panel > .eyebrow,
  .side-panel > .panel-heading,
  .side-panel > .sidebar-note {
    display: none;
  }
  .category-list {
    display: flex;
    overflow: auto;
    max-width: 100%;
    flex: 1 0 100%;
    gap: 5px;
  }
  .category-item {
    white-space: nowrap;
    flex: none;
  }
  .stack-field {
    margin-top: 0;
  }
  .side-panel .stack-field {
    flex: 1;
    min-width: 150px;
  }
  .side-panel .stack-field select {
    height: 32px;
  }
  .job-heading h1 {
    font-size: 20px;
  }
  .inspector-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
  }
  .inspect-viewport {
    height: 400px;
  }
  .inspector-details {
    padding: 15px;
  }
  .inspector-controls > label {
    margin-left: 0;
  }
  .job-heading {
    align-items: flex-start;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: 67px;
    padding: 10px 12px;
    gap: 10px;
  }
  .brand {
    min-width: 0;
    gap: 7px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand strong {
    font-size: 20px;
  }
  .brand small {
    font-size: 8px;
  }
  .aeroglobe-logo {
    width: 90px;
  }
  .screen-tab {
    padding: 0 11px;
    font-size: 12px;
  }
  main {
    padding: 17px 12px 74px;
  }
  .jobs-intro {
    padding: 27px 0;
  }
  .jobs-intro h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .jobs-intro p {
    font-size: 14px;
  }
  .jobs-intro .eyebrow {
    font-size: 9px;
  }
  .access-row {
    gap: 9px;
  }
  .access-field {
    flex: 1;
    min-width: 200px;
  }
  .access-row .muted {
    width: 100%;
    padding: 0;
  }
  .job-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading p {
    font-size: 11px;
  }
  .jobs-screen > .segmented {
    display: flex;
  }
  .jobs-screen > .segmented button {
    padding: 7px 9px;
    font-size: 11px;
    flex: 1;
  }
  .job-heading {
    display: block;
  }
  .job-heading h1 {
    font-size: 19px;
  }
  .job-actions {
    justify-content: flex-start;
    max-width: none;
    margin-top: 15px;
    gap: 6px;
  }
  .job-actions .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .side-panel {
    padding: 10px;
    gap: 8px;
  }
  .side-panel .stack-field {
    min-width: 100px;
    font-size: 9px;
  }
  .side-panel .stack-field select {
    font-size: 10px;
    padding: 4px;
  }
  .review-list-panel {
    grid-row: 3;
  }
  .bins-panel {
    grid-row: 2;
    position: sticky;
    top: 67px;
    z-index: 12;
    max-height: none;
    padding: 9px;
    background: #fffefaff;
  }
  .bins-panel > .panel-heading {
    margin-bottom: 6px;
  }
  .bins-panel .eyebrow,
  .bin-hint,
  .target-hint {
    display: none;
  }
  .bins-panel .panel-heading h2 {
    font-size: 12px;
  }
  .bins-panel .segmented {
    position: absolute;
    right: 46px;
    top: 7px;
    width: 205px;
  }
  .bins-panel .segmented button {
    font-size: 9px;
    padding: 3px 5px;
  }
  .bins-panel .text-button {
    font-size: 10px;
    min-height: 24px;
    padding: 0 3px;
  }
  .category-bins {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    gap: 6px;
    padding: 3px;
  }
  .category-bin {
    min-height: 46px;
    grid-template-columns: minmax(0, 1fr) 18px;
    padding: 6px;
    gap: 5px;
    min-width: 155px;
  }
  .category-bin .bin-icon {
    display: none;
  }
  .bin-copy strong {
    font-size: 10px;
  }
  .bin-copy > span {
    font-size: 8px;
  }
  .key-pill {
    font-size: 9px;
  }
  .thumb-grid {
    --thumb-base-width: 130;
    gap: 9px;
  }
  .thumb-button {
    padding: 0;
  }
  .thumb-meta {
    padding: 9px;
    min-height: 85px;
  }
  .view-toolbar {
    gap: 6px;
    top: 158px;
  }
  .scale-window {
    font-size: 9px;
  }
  .scale-explanation {
    font-size: 10px;
  }
  .review-footer {
    padding: 7px 12px;
    gap: 8px;
  }
  .review-footer #saveStatus {
    font-size: 10px;
    line-height: 1.5;
  }
  .review-footer #cropStatus {
    display: none;
  }
  .inspect-dialog {
    max-width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
  }
  .inspector-header {
    padding: 12px;
  }
  .inspector-header h2 {
    font-size: 13px;
  }
  .inspector-header .eyebrow {
    font-size: 9px;
  }
  .inspector-navigation {
    gap: 4px;
  }
  .inspector-navigation .button {
    font-size: 10px;
    padding: 4px 7px;
  }
  .inspector-layout {
    display: block;
  }
  .inspector-image-panel {
    padding: 10px;
  }
  .inspect-viewport {
    height: 300px;
  }
  .inspector-controls {
    gap: 7px;
  }
  .inspector-controls > .segmented {
    width: 100%;
  }
  .inspector-controls > label {
    flex: 1;
  }
  .inspector-details {
    max-height: none;
    padding: 16px;
  }
  .inspect-bins {
    grid-template-columns: 1fr 1fr;
  }
  .inspector-details .sidebar-note {
    font-size: 10px;
  }
  .inspector-details .bin-hint {
    display: block;
  }
  .species-tray {
    padding: 18px;
  }
  .species-tray .bin-hint {
    display: block;
  }
  .choice-button {
    font-size: 11px;
    min-height: 44px;
  }
  .manage-dialog {
    padding: 16px;
  }
  .managed-bin {
    grid-template-columns: minmax(0, 1fr) 66px 72px;
    gap: 5px;
    padding: 8px 5px;
  }
  .managed-bin .domain-badge {
    display: none;
  }
  .managed-bin .builtin-name {
    font-size: 11px;
  }
  .bin-order-buttons button {
    padding: 3px 5px;
    font-size: 10px;
  }
  .managed-bin input {
    font-size: 11px;
    padding: 4px;
  }
  .managed-species {
    grid-template-columns: minmax(0, 1fr) 66px;
  }
  .hotkey-columns {
    display: none;
  }
  .new-bin {
    gap: 8px;
  }
  .new-bin label {
    min-width: 110px;
  }
  .help-dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      border-color 0.12s,
      box-shadow 0.12s;
  }
}

.thumb-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #236e6233;
}
.thumb-card.is-selected .select-action {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.truth-summary {
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
  line-height: 1.6;
}
.dataset-availability {
  font-size: 12px;
  line-height: 1.6;
  color: #92682b;
  max-width: 650px;
  margin: 8px 0 0;
}

.filter-toggle {
  display: none;
}
.thumb-meta strong {
  font-size: 12px;
}
.predicted-label,
.saved-label {
  font-size: 11px;
}
.thumb-dimensions {
  font-size: 10px;
}
.tile-action {
  font-size: 11px;
}
@media (max-width: 620px) {
  body:not(.is-first-pass) #openIdentificationQueue { display: none; }
  .scale-explanation { display: none; }
  .review-mode-row { margin-bottom: 4px; }
  .workspace-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .workspace-grid > * {
    min-width: 0;
    max-width: 100%;
  }
  .filter-toggle {
    display: block;
    align-self: flex-start;
    font-size: 12px;
  }
  .side-panel:not(.filters-expanded) {
    display: none;
  }
  .side-panel {
    order: 1;
  }
  .bins-panel {
    order: 2;
  }
  .review-list-panel {
    order: 3;
  }
  .truth-summary {
    font-size: 11px;
  }
  .thumb-meta strong {
    font-size: 11px;
  }
  .predicted-label,
  .saved-label,
  .tile-action {
    font-size: 10px;
  }
  .thumb-dimensions {
    font-size: 9px;
  }
}
