/* Design tokens, page layout, the top bar, the desk panel and its controls, toasts.
 * index.html loads the stylesheets in src/styles/ in a fixed order; later files override earlier ones. */
:root {
  --ink: #243d36;
  --muted: #606b65;
  --paper: #fbfcf7;
  --cream: #f3f3e9;
  --green: #285a48;
  --mint: #d8e9dc;
  --amber: #eaae59;
  --rust: #c66b4b;
  --line: #e5e9df;
  --red: #c36659;
  --shadow: 0 12px 50px #243d3621;
  --font: Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: #76b6b2;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #d59b47;
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.app,
.game-shell {
  height: 100%;
  width: 100%;
  position: relative;
}
.topbar {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 32px;
  background: var(--paper);
  z-index: 10;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  letter-spacing: 1.2px;
  font-size: 20px;
  font-weight: 850;
  padding: 0;
}
.brand-caption {
  display: block;
  font-size: 8px;
  letter-spacing: 2.2px;
  margin-top: 4px;
  color: #6c7366;
  font-weight: 600;
}
.brand-mark {
  display: block;
  position: relative;
  width: 32px;
  height: 35px;
}
.brand-mark i {
  position: absolute;
  background: #326452;
  width: 13px;
  height: 13px;
}
.brand-mark i:nth-child(1) {
  left: 0;
  top: 16px;
}
.brand-mark i:nth-child(2) {
  left: 10px;
  top: 6px;
  background: #db9c4e;
}
.brand-mark i:nth-child(3) {
  left: 20px;
  top: 16px;
}
.career-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.6px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}
.career-heading strong {
  font-size: 14px;
  font-weight: 650;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
}
.icon-btn {
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  color: #64796e;
}
.icon-btn:hover {
  background: #edf2e9;
  color: var(--ink);
}
.top-actions .icon-btn {
  height: 38px;
  width: 38px;
}
#skill-notification {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9a04f;
  position: absolute;
  top: 4px;
  right: 4px;
}
.health-strip {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  top: 76px;
  height: 67px;
  padding: 12px 28px;
  display: flex;
  gap: 0;
  background: #f6f7ef;
  box-shadow: 0 3px 10px #284c3412;
}
.health-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 155px;
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid #dfe5d9;
}
.health-stat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.health-icon {
  width: 32px;
  height: 32px;
  color: #739080;
  background: #e8eee2;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.health-stat .eyebrow {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.health-stat strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.15;
}
.health-stat strong small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--muted);
}
.health-stat.bad .health-icon {
  color: #ad6554;
  background: #f3e2d8;
}
.health-stat.bad strong {
  color: #ae5949;
}
.health-stat.good .health-icon {
  color: #497b61;
}
.health-note {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #667264;
}
.health-note .live-dot {
  width: 5px;
  height: 5px;
}
.world-stage {
  position: absolute;
  inset: calc(143px + var(--hud, 0px)) 0 71px;
  overflow: hidden;
  background: #95beb2;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  filter: saturate(1.12) contrast(1.06);
  touch-action: none;
  cursor: grab;
}
#world:active {
  cursor: grabbing;
}
.world-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px #345e4112;
}
.department-dock {
  position: absolute;
  z-index: 12;
  left: 22px;
  top: calc(215px + var(--hud, 0px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fafcf2ee;
  padding: 7px;
  border: 1px solid #ffffff7a;
  border-radius: 15px;
  box-shadow: 0 5px 20px #274e3420;
}
.dept-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  position: relative;
  color: #66816f;
}
.dept-btn .icon {
  width: 19px;
  height: 19px;
}
.dept-btn.active {
  background: #2c614b;
  color: #fff9e7;
  box-shadow: 0 3px 8px #24524125;
}
.dept-btn:not(.active):hover {
  background: #e4ecde;
}
.dept-btn.locked {
  color: #aab7a5;
  opacity: 0.75;
}
.dept-btn.locked::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #b9c1ae;
  position: absolute;
  right: 4px;
  bottom: 4px;
}
.dept-btn::before {
  content: attr(data-tip);
  position: absolute;
  left: 48px;
  top: 8px;
  border-radius: 5px;
  padding: 7px 11px;
  background: #253f34;
  color: #f5f6e7;
  font-size: 10px;
  white-space: nowrap;
  letter-spacing: 0.15px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: 0.15s;
  z-index: 30;
}
.dept-btn:hover::before,
.dept-btn:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}
.dock-separator {
  height: 1px;
  background: #e0e7d8;
  margin: 4px;
}
.world-tools {
  position: absolute;
  top: calc(163px + var(--hud, 0px));
  left: 22px;
  z-index: 11;
  display: flex;
  gap: 7px;
}
.view-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #f9fcf0e6;
  box-shadow: 0 3px 15px #284b3420;
  border-radius: 11px;
}
.view-switch button {
  padding: 8px 13px;
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  border-radius: 7px;
  font-weight: 600;
  color: #6c8272;
}
.view-switch .icon {
  width: 15px;
  height: 15px;
}
.view-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px #213f301c;
}
.glass {
  background: #f9fcf0df;
  height: 41px;
  box-shadow: 0 3px 15px #284b3418;
}
.location-label {
  position: absolute;
  top: calc(221px + var(--hud, 0px));
  left: 92px;
  z-index: 5;
  font-size: 8px;
  color: #335b4a;
  letter-spacing: 1.2px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
.location-label > span:last-child {
  color: #5b8070;
  font-weight: 500;
  margin-left: 7px;
  font-size: 8px;
}
.live-dot {
  background: #74a465;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  display: inline-block;
  box-shadow: 0 0 0 3px #96b37a1c;
}
.mission-card {
  position: absolute;
  bottom: 94px;
  left: 96px;
  width: 350px;
  padding: 17px 19px;
  background: #fbfcf4ed;
  box-shadow: 0 7px 35px #264b3121;
  border-radius: 14px;
  z-index: 8;
  border: 1px solid #fff9;
  backdrop-filter: blur(10px);
}
.mission-card .mission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mission-card h3 {
  font-size: 13px;
  margin: 0 0 7px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.mission-card p {
  font-size: 11px;
  line-height: 1.6;
  color: #788575;
  margin: 0;
}
.mission-card .text-button {
  padding: 7px 0 0;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #35664d;
}
.mission-card .text-button .icon {
  width: 14px;
  height: 14px;
}
.mission-card.done {
  border-color: #afceae;
}
.mission-check {
  background: #e1ebd9;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #497643;
}
.mission-check .icon {
  width: 14px;
  height: 14px;
}
.department-panel {
  position: absolute;
  top: calc(163px + var(--hud, 0px));
  right: 22px;
  bottom: 93px;
  width: 382px;
  background: var(--paper);
  border-radius: 17px;
  z-index: 15;
  box-shadow: 0 14px 50px #2047312c;
  border: 1px solid #fffd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panelIn 0.25s ease;
}
.panel-header {
  padding: 21px 22px 17px;
  position: relative;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.panel-header .icon-btn {
  position: absolute;
  right: 14px;
  top: 14px;
}
.panel-header .eyebrow {
  font-size: 8px;
  color: #5e7760;
  letter-spacing: 1.5px;
}
.panel-header h2 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.1;
}
.panel-header p {
  font-size: 11px;
  line-height: 1.6;
  color: #869082;
  margin: 9px 30px 0 0;
}
.panel-content {
  overflow-y: auto;
  padding: 19px 21px 21px;
  scrollbar-width: thin;
  scrollbar-color: #d5dfcd transparent;
  flex: 1;
}
.panel-content::-webkit-scrollbar {
  width: 4px;
}
.panel-content::-webkit-scrollbar-thumb {
  background: #d5dfcd;
  border-radius: 4px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 19px 0 11px;
}
.section-heading:first-child {
  margin-top: 0;
}
.section-heading strong {
  font-size: 10px;
  letter-spacing: 0.2px;
  font-weight: 650;
}
.section-heading span {
  font-size: 9px;
  color: #6b7662;
}
.section-heading .eyebrow {
  font-size: 8px;
}
.product-tabs,
.segmented {
  display: flex;
  background: #edf0e6;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin: 10px 0 15px;
}
.product-tabs button,
.segmented button {
  flex: 1;
  padding: 8px 4px;
  font-size: 10px;
  line-height: 1.3;
  border-radius: 5px;
  font-weight: 600;
  color: #646b5a;
}
.product-tabs button.active,
.segmented button.active {
  background: white;
  color: #345740;
  box-shadow: 0 1px 5px #35512f14;
}
.product-tabs button:hover,
.segmented button:hover {
  color: #2a4c37;
}
.stock-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef2e5;
  border-radius: 9px;
  padding: 12px 14px;
  gap: 8px;
}
.stock-summary .eyebrow {
  font-size: 8px;
  letter-spacing: 0.7px;
}
.stock-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.stock-summary .sub {
  font-size: 9px;
  color: #606e54;
}
.divider-v {
  width: 1px;
  height: 26px;
  background: #dce3d3;
}
.supplier-card {
  position: relative;
  padding: 14px;
  border: 1px solid #e6e9dd;
  border-radius: 10px;
  margin-bottom: 9px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.supplier-card:hover {
  border-color: #aac0a3;
  background: #fafcf5;
}
.supplier-card.selected {
  border-color: #7d9f76;
  background: #f3f7eb;
  box-shadow: 0 0 0 1px #7d9f7622;
}
.supplier-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.supplier-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #e9ede3;
  color: #7b8b6b;
  border-radius: 6px;
}
.supplier-icon .icon {
  width: 18px;
  height: 18px;
}
.supplier-name {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.15px;
}
.supplier-location {
  font-size: 9px;
  color: #6f7464;
  display: block;
  margin-top: 3px;
}
.supplier-price {
  margin-left: auto;
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
.supplier-price small {
  font-size: 9px;
  color: #6c765f;
  font-weight: 400;
  letter-spacing: 0;
  display: block;
  text-align: right;
}
.supplier-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}
.supplier-details div {
  font-size: 9px;
  color: #6f7464;
}
.supplier-details strong {
  display: block;
  margin-top: 4px;
  color: #667959;
  font-size: 10px;
  font-weight: 600;
}
.supplier-card .select-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #74a366;
  display: none;
}
.supplier-card.selected .select-dot {
  display: block;
}
.stars {
  color: #bd964e;
  letter-spacing: 0.8px;
  font-size: 10px;
}
.risk-note {
  font-size: 10px;
  padding-top: 9px;
  margin-top: 9px;
  border-top: 1px solid #e2e8d7;
  color: #927448;
  line-height: 1.5;
}
.field {
  margin-top: 15px;
}
.field label,
.field-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #687461;
}
.field label.flex-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field label strong {
  color: #355a3e;
  font-size: 12px;
}
.field input[type='number'],
.field input[type='text'],
.field select,
select.select {
  width: 100%;
  border: 1px solid #dfe5d5;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: #405d47;
  outline-offset: 2px;
  font-size: 12px;
}
.field input[type='range'],
input.range {
  width: 100%;
  height: 5px;
  accent-color: #547d4c;
  cursor: pointer;
  margin: 9px 0 6px;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a1a793;
}
.quantity-row {
  display: flex;
  gap: 7px;
  align-items: center;
}
.quantity-row input {
  flex: 1;
  min-width: 0;
}
.quantity-row button {
  width: 34px;
  height: 37px;
  background: #edf1e5;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 300;
}
.field-hint {
  font-size: 9px;
  color: #707464;
  margin-top: 6px;
  line-height: 1.5;
}
.inline-total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  font-size: 11px;
  color: #89947d;
  align-items: center;
}
.inline-total strong {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.6px;
  color: #3c6347;
}
.btn {
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.4;
  min-height: 38px;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: #315f49;
  color: #fffef3;
  box-shadow: 0 3px 8px #30593618;
}
.btn.primary:not(:disabled):hover {
  background: #224d39;
  box-shadow: 0 4px 16px #214d3925;
}
.btn.warm {
  background: #edb967;
  color: #293e2e;
}
.btn.warm:hover {
  background: #ffd289;
}
.btn.secondary {
  background: #edf1e5;
  color: #5b6f4d;
}
.btn.secondary:hover {
  background: #dfe8d5;
}
.btn.danger {
  color: #925745;
  background: #f8e8db;
}
.btn.danger:hover {
  background: #f1d9c8;
}
.btn.full {
  width: 100%;
}
.btn.small {
  font-size: 10px;
  padding: 8px 10px;
  min-height: 31px;
  border-radius: 7px;
}
.btn.pale {
  background: #fff9;
  color: #355a41;
}
.action-footnote {
  font-size: 8px;
  letter-spacing: 0.4px;
  color: #a1a98f;
  text-align: center;
  margin-top: 8px;
}
.button-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.button-row .btn {
  flex: 1;
}
.text-button {
  min-height: 24px;
  font-size: 10px;
  padding: 8px;
  color: #5d7252;
  text-decoration: none;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tag {
  font-size: 8px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0.4px;
  border-radius: 4px;
  padding: 5px 6px;
  background: #edf2e5;
  color: #5c6f4d;
  white-space: nowrap;
}
.tag.amber {
  background: #f6edda;
  color: #7f6335;
}
.tag.red {
  background: #f5e3d9;
  color: #b47764;
}
.tag.green {
  background: #e4efdb;
  color: #73945c;
}
.tag.blue {
  background: #e8edf0;
  color: #7a94a1;
}
.note {
  font-size: 10px;
  line-height: 1.65;
  padding: 12px;
  border-radius: 9px;
  background: #f1f4e9;
  color: #656e56;
  display: flex;
  gap: 8px;
  margin: 13px 0;
}
.note .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #a6b294;
}
.note.amber {
  background: #f8eed9;
  color: #a0895b;
}
.note.red {
  background: #f8e7de;
  color: #a77460;
}
.mini-list {
  margin: 10px 0 0;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8ecdf;
  font-size: 10px;
  line-height: 1.5;
}
.mini-row:last-child {
  border: 0;
}
.mini-row small {
  display: block;
  font-size: 9px;
  color: #a0a792;
}
.mini-row strong {
  font-weight: 600;
}
.mini-row .mini-right {
  text-align: right;
  white-space: nowrap;
}
.empty-state {
  border: 1px dashed #dbe4d0;
  border-radius: 10px;
  padding: 25px 16px;
  text-align: center;
  margin: 14px 0;
  color: #8c9c7d;
}
.empty-state > .icon {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  margin-bottom: 9px;
}
.empty-state strong {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #6d8660;
}
.empty-state p {
  font-size: 10px;
  line-height: 1.7;
  margin: 6px 0 0;
}
.spark-chart {
  height: 105px;
  width: 100%;
  display: block;
  overflow: visible;
  margin-top: 16px;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 8px;
  color: #6c735e;
  margin: 5px 0 17px;
}
.chart-legend i {
  display: inline-block;
  width: 11px;
  height: 3px;
  vertical-align: middle;
  background: #739769;
  margin-right: 5px;
}
.chart-legend span + span i {
  background: #d8b97f;
}
.forecast-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.forecast-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-swatch {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #b88a3e;
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}
.product-swatch.speaker {
  color: #4f8468;
}
.product-swatch.dock {
  color: #6f76a0;
}
.forecast-heading strong {
  font-size: 11px;
  font-weight: 650;
}
.forecast-heading output {
  margin-left: auto;
  font-size: 18px;
  letter-spacing: -0.6px;
}
.forecast-heading output small {
  font-size: 8px;
  letter-spacing: 0;
  color: #969e88;
}
.signal-row {
  padding: 11px 12px;
  background: #f6f1df;
  border-radius: 8px;
  margin: 7px 0;
  font-size: 10px;
  color: #a18b5b;
  line-height: 1.5;
}
.signal-row strong {
  font-weight: 600;
}
.schedule-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e3e8d8;
  border-radius: 9px;
  padding: 11px 10px;
  margin-bottom: 7px;
  cursor: grab;
}
.schedule-card.dragging {
  opacity: 0.4;
}
.grip {
  font-size: 15px;
  color: #c1c8b6;
  letter-spacing: -2px;
  cursor: grab;
}
.schedule-card select {
  font-size: 10px;
  border: 0;
  background: transparent;
  max-width: 108px;
  color: #4b6345;
  padding: 0;
}
.schedule-card .batch-quantity {
  width: 44px;
  font-size: 11px;
  border: 0;
  background: #f4f6ed;
  border-radius: 3px;
  padding: 5px;
  text-align: center;
  color: #4b6345;
}
.line-badge {
  font-size: 8px;
  padding: 4px 5px;
  background: #ebefdf;
  border-radius: 4px;
  color: #829368;
}
.schedule-card .remove-batch {
  font-size: 14px;
  color: #bec4b4;
  margin-left: auto;
  padding: 2px 3px;
}
.line-targets {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.line-target {
  width: 50%;
  padding: 13px 10px;
  border: 1px dashed #cfdbc2;
  border-radius: 8px;
  text-align: center;
  color: #5d7047;
  font-size: 10px;
  line-height: 1.7;
}
.line-target.over {
  background: #dbe8d0;
  border-color: #91b277;
}
.line-target small {
  display: block;
  color: #a4ae97;
  font-size: 8px;
}
.batch-card {
  background: #fff;
  border: 1px solid #e5e9dc;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.batch-card.selected {
  border-color: #91aa80;
  background: #f4f7ec;
}
.batch-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.batch-header strong {
  font-size: 11px;
}
.batch-header .tag {
  margin-left: auto;
}
.batch-card p {
  font-size: 9px;
  color: #98a087;
  margin: 7px 0 0;
  line-height: 1.5;
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.sample {
  height: 74px;
  border-radius: 8px;
  border: 1px solid #dfe7d3;
  background: #f8faf2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 8px;
  color: #666f5a;
}
.sample:hover {
  background: #edf3e2;
}
.sample canvas {
  width: 42px;
  height: 34px;
  image-rendering: pixelated;
}
.sample.pass {
  background: #e9f2df;
  border-color: #abc591;
  color: #7a9a62;
}
.sample.fail {
  background: #f6e2d4;
  border-color: #d6a78b;
  color: #b98060;
}
.sample span {
  font-weight: 600;
}
.evidence-block {
  background: #f1f1e6;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  font-size: 10px;
  line-height: 1.7;
  color: #8b957d;
}
.evidence-block strong {
  color: #6f8161;
}
.disposition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}
.batch-trace-link {
  font-size: 9px;
  color: #9a987d;
  padding-top: 7px;
}
.case-card {
  padding: 14px;
  border: 1px solid #e6e8d8;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
}
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #70755c;
}
.case-card blockquote {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 550;
  margin: 10px 0;
  color: #506849;
}
.case-card p {
  font-size: 9px;
  color: #74765e;
  line-height: 1.6;
}
.case-card .button-row {
  gap: 4px;
}
.case-card .btn {
  font-size: 9px;
  padding: 8px 5px;
}
.upgrade-card {
  background: #fff;
  border: 1px solid #e4e8d8;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 9px;
}
.upgrade-card .upgrade-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.upgrade-card .upgrade-heading > .icon {
  width: 19px;
  height: 19px;
  color: #98a67f;
}
.upgrade-card h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}
.upgrade-card .eyebrow {
  font-size: 7px;
  letter-spacing: 1px;
}
.upgrade-card p {
  font-size: 10px;
  line-height: 1.6;
  color: #6f775c;
  margin: 10px 0;
}
.upgrade-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upgrade-bottom strong {
  font-size: 15px;
  letter-spacing: -0.4px;
}
.progress-track {
  height: 4px;
  background: #edf0e3;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-track i {
  height: 100%;
  display: block;
  background: #a6bd86;
}
.ship-card {
  background: #fff;
  border: 1px solid #e2e8d7;
  border-radius: 10px;
  padding: 13px;
  margin: 8px 0;
}
.ship-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}
.ship-route {
  font-size: 9px;
  color: #9ca58b;
  margin: 8px 0;
}
.ship-journey {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.ship-journey .icon {
  width: 15px;
  height: 15px;
  color: #8da673;
}
.ship-journey .progress-track {
  flex: 1;
  margin: 0;
}
.ship-meta {
  font-size: 9px;
  color: #96a184;
  display: flex;
  justify-content: space-between;
}
.allocation-row {
  padding: 14px 0;
  border-bottom: 1px solid #e6eadc;
}
.allocation-row .flag-label {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.8px;
  width: 25px;
  height: 23px;
  background: #edf0e5;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  color: #8b9777;
}
.allocation-row .forecast-heading {
  gap: 9px;
}
.allocation-detail {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a0a88c;
  margin-top: 6px;
}
.incident-banner {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(360px, calc(100% - 32px));
  z-index: 13;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 8px 14px 8px 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #fff;
  border-radius: 14px;
  box-shadow:
    0 10px 30px #2047312e,
    inset 3px 0 0 #d9973a;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.incident-banner:hover {
  box-shadow:
    0 12px 34px #20473140,
    inset 3px 0 0 #d9973a;
}
.incident-banner .toast-face {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f4efe0;
  overflow: hidden;
}
.incident-banner .toast-face canvas {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
}
.incident-banner .toast-face .icon {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 15px;
  height: 15px;
  padding: 2px;
  border-radius: 6px;
  background: #d9973a;
  color: #fff;
}
.incident-banner .incident-arrow {
  margin-left: 4px;
  width: 15px;
  height: 15px;
  color: #8a8f7b;
}
.incident-banner small {
  font-size: 9px;
  font-weight: 500;
  display: block;
  margin-top: 2px;
  letter-spacing: 0.3px;
  color: #6f735f;
}
.incident-banner.good {
  box-shadow:
    0 10px 30px #2047312e,
    inset 3px 0 0 #6f9a4c;
}
.incident-banner.good .toast-face .icon {
  background: #6f9a4c;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }
}
.panel-open .incident-banner {
  left: calc(50% - 200px);
}
.shift-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 71px;
  background: #f9faf2;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 25px;
  border-top: 1px solid #ffffff9e;
}
.time-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.time-controls .icon-btn {
  color: #658451;
}
.time-controls .eyebrow {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #667358;
}
.time-track {
  width: 108px;
  height: 3px;
  background: #e3e9d7;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 2px;
}
.time-track i {
  display: block;
  background: #a4bd80;
  width: 0;
  height: 100%;
  transition: width 1s linear;
}
.speed-buttons {
  display: flex;
  gap: 2px;
  margin-left: 7px;
}
.speed-buttons button {
  min-width: 24px;
  min-height: 24px;
  font-size: 9px;
  color: #6a7359;
  border-radius: 5px;
  padding: 7px 8px;
}
.speed-buttons button.active {
  background: #e7edde;
  color: #556d44;
  font-weight: 650;
}
.speed-buttons button:hover {
  background: #e9eee0;
}
.focus-block {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid #e3e8d8;
  padding-left: 26px;
}
.focus-block > .eyebrow {
  font-size: 8px;
  color: #677556;
}
.focus-dots {
  display: flex;
  gap: 4px;
}
.focus-dots.dense {
  gap: 2px;
}
.focus-dots i {
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: #aac28b;
}
.focus-dots.dense i {
  width: 4px;
}
.focus-dots i.used {
  background: #e3e8d8;
}
.focus-caption {
  font-size: 9px;
  color: #697458;
}
.footer-tip {
  font-size: 10px;
  color: #6c735a;
  margin-left: auto;
}
.end-shift {
  margin-left: auto;
  min-width: 135px;
  border-radius: 9px;
  font-size: 12px;
  height: 41px;
}
.end-shift.ready {
  background: #345f42;
}
.world-tooltip {
  position: fixed;
  z-index: 40;
  background: #fbf9eb;
  border-radius: 7px;
  padding: 10px 13px;
  box-shadow: 0 4px 16px #22473126;
  pointer-events: none;
  font-size: 11px;
  line-height: 1.5;
  color: #3b6044;
  border: 1px solid #ffffffc7;
}
.world-tooltip small {
  display: block;
  font-size: 9px;
  color: #9aab88;
}
.toast-stack {
  position: fixed;
  bottom: 89px;
  right: 28px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 375px;
}
.toast {
  padding: 13px 16px;
  border-radius: 10px;
  background: #254c38;
  color: #f2f6de;
  font-size: 11px;
  line-height: 1.6;
  box-shadow: 0 5px 22px #193c2a35;
  animation: toastIn 0.22s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #b4cf8e;
}
.toast.error {
  background: #a96a4f;
  color: #fff7e6;
}
.toast.error .icon {
  color: #edd4b4;
}
.toast.fade {
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #173b2be0;
  backdrop-filter: blur(6px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: fadeIn 0.15s;
}
