: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;
}
.dialog {
  width: 560px;
  max-width: 100%;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d2ddc1 transparent;
  background: #fbfcf4;
  border-radius: 21px;
  position: relative;
  box-shadow: 0 25px 90px #0d291a69;
  padding: 34px;
  animation: dialogIn 0.2s;
}
.dialog.wide {
  width: 960px;
}
.dialog.medium {
  width: 720px;
}
.dialog > .close-dialog {
  position: absolute;
  top: 18px;
  right: 18px;
}
.dialog h2 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 8px 0 13px;
}
.dialog .dialog-intro {
  font-size: 12px;
  color: #687359;
  line-height: 1.8;
  margin: 0 0 20px;
}
.dialog .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.dialog-footer {
  margin-top: 25px;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  align-items: center;
}
.dialog-footer .footnote {
  font-size: 9px;
  color: #697359;
  margin-right: auto;
}
.dialog hr {
  border: 0;
  height: 1px;
  background: #e5eadb;
  margin: 23px 0;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e5eada;
}
.settings-row strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.settings-row small {
  font-size: 10px;
  color: #6a7357;
  display: block;
  margin-top: 5px;
  line-height: 1.6;
}
.toggle {
  width: 39px;
  height: 23px;
  background: #d8e1cb;
  border-radius: 13px;
  padding: 3px;
  position: relative;
  flex-shrink: 0;
}
.toggle i {
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px #43653126;
  transition: transform 0.15s;
}
.toggle.on {
  background: #8ea86e;
}
.toggle.on i {
  transform: translateX(16px);
}
.newgame-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 17px 0;
}
.mode-option {
  text-align: left;
  padding: 17px;
  border: 1px solid #e2e8d7;
  border-radius: 11px;
  color: #8da076;
}
.mode-option .icon {
  display: block;
  width: 23px;
  height: 23px;
  margin-bottom: 12px;
}
.mode-option strong {
  font-size: 13px;
  display: block;
  color: #57724c;
  font-weight: 600;
}
.mode-option small {
  font-size: 10px;
  display: block;
  line-height: 1.7;
  margin-top: 6px;
  color: #696e56;
}
.mode-option.selected {
  background: #eef4e1;
  border-color: #a6bc8a;
}
.difficulty-options {
  display: flex;
  gap: 7px;
}
.difficulty-options .btn {
  flex: 1;
  background: #edf1e4;
  color: #616f4d;
}
.difficulty-options .btn.active {
  background: #dce8ca;
  color: #4e693f;
  box-shadow: inset 0 0 0 1px #adc38d;
}
.report-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 23px;
}
.report-score {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #e7f0d8;
  border: 1px solid #d4e3c1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.report-score strong {
  font-size: 31px;
  letter-spacing: -1px;
  color: #77955c;
  font-weight: 600;
}
.report-score small {
  font-size: 7px;
  letter-spacing: 1px;
  color: #a3b28e;
}
.report-top h2 {
  margin-bottom: 7px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.report-stat {
  background: #f0f3e7;
  border-radius: 10px;
  padding: 15px;
}
.report-stat strong {
  display: block;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 7px 0;
}
.report-stat .eyebrow {
  font-size: 7px;
  letter-spacing: 0.8px;
  color: #637052;
}
.report-stat small {
  font-size: 9px;
  color: #666e57;
}
.report-stat.positive strong {
  color: #58733f;
}
.report-stat.negative strong {
  color: #886543;
}
.report-events {
  margin-top: 21px;
}
.report-event {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  font-size: 11px;
  line-height: 1.6;
  color: #879a71;
}
.report-event .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  color: #a2b486;
}
.report-event small {
  font-size: 9px;
  color: #a1aa93;
  display: block;
}
.promotion {
  background: #2f5940;
  border-radius: 12px;
  padding: 19px 22px;
  color: #eff5dc;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.promotion > .icon {
  color: #d8be7b;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}
.promotion .eyebrow {
  color: #a8c18b;
  font-size: 8px;
}
.promotion h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 5px 0 4px;
  letter-spacing: -0.4px;
}
.promotion p {
  color: #b5c99b;
  font-size: 10px;
  line-height: 1.7;
  margin: 0;
}
.journal-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 25px;
}
.journal-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 13px 0 20px;
}
.journal-filters button {
  padding: 6px 10px;
  font-size: 9px;
  border-radius: 6px;
  background: #eef2e5;
  color: #626f4e;
}
.journal-filters button.active {
  background: #dce9cc;
  color: #4e693b;
}
.decision-card {
  background: #f1f4e7;
  border: 1px solid #e4ead7;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 9px;
  width: 100%;
  text-align: left;
}
.decision-card.active {
  border-color: #a9c088;
  background: #e9f0da;
}
.decision-card strong {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: #587044;
  margin: 5px 0;
}
.decision-card .decision-money {
  display: flex;
  gap: 15px;
  font-size: 9px;
  margin-top: 9px;
  color: #5f6f48;
}
.decision-card .decision-money b {
  font-weight: 550;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}
.decision-card .decision-money .loss {
  color: #7f6340;
}
.journal-column h3 {
  font-weight: 550;
  font-size: 14px;
  letter-spacing: -0.2px;
  margin: 0 0 15px;
}
.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid #dde7cf;
  margin-left: 5px;
}
.timeline-event {
  position: relative;
  margin-bottom: 20px;
}
.timeline-event:before {
  content: '';
  width: 7px;
  height: 7px;
  position: absolute;
  top: 5px;
  left: -24px;
  background: #abbf90;
  border: 2px solid #fbfcf4;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cbd9b6;
}
.timeline-event .eyebrow {
  font-size: 7px;
  letter-spacing: 0.8px;
}
.timeline-event strong {
  display: block;
  font-weight: 550;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.6;
}
.timeline-event p {
  font-size: 10px;
  color: #687556;
  line-height: 1.6;
  margin: 4px 0;
}
.timeline-event .timeline-money {
  font-size: 10px;
  color: #896e47;
  font-weight: 550;
}
.timeline-summary {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #eef3e3;
  border-radius: 10px;
  margin-bottom: 23px;
}
.timeline-summary > div {
  flex: 1;
  font-size: 8px;
  color: #9caa86;
}
.timeline-summary strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  color: #7b9a5e;
  letter-spacing: -0.5px;
  margin: 5px 0;
}
.timeline-summary .loss strong {
  color: #b69361;
}
.career-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 18px 0;
}
.career-stop {
  padding: 10px 12px;
  border-radius: 9px;
  background: #f0f3e7;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #aab49a;
}
.career-stop .icon {
  width: 18px;
  height: 18px;
}
.career-stop strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}
.career-stop small {
  font-size: 8px;
  display: block;
  margin-top: 3px;
  color: #646d52;
}
.career-stop.unlocked {
  color: #596e46;
  background: #e8f0da;
}
.career-stop.current {
  box-shadow: inset 0 0 0 1px #a9c18b;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 13px;
}
.skill-card {
  background: #f0f3e7;
  border-radius: 10px;
  padding: 15px;
}
.skill-card > .icon {
  color: #9bb27d;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
}
.skill-card strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.skill-card p {
  font-size: 10px;
  line-height: 1.7;
  color: #a0ab8d;
  min-height: 52px;
  margin: 8px 0 13px;
}
.event-portrait {
  width: 60px;
  height: 60px;
  background: #e5edd6;
  border-radius: 12px;
  float: left;
  margin: 0 16px 14px 0;
  image-rendering: pixelated;
}
.event-choice {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: left;
  background: #eef3e3;
  border: 1px solid #e0e9d0;
  border-radius: 10px;
  margin: 9px 0;
}
.event-choice:hover {
  background: #e5eed7;
  border-color: #b1c495;
}
.event-choice strong {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-choice strong .icon {
  width: 15px;
  height: 15px;
}
.event-choice p {
  font-size: 10px;
  line-height: 1.7;
  color: #98a683;
  margin: 6px 20px 0 0;
}
.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.howto-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.howto-number {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #e9f0dc;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 10px;
  color: #596d43;
}
.howto-item strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin: 4px 0;
}
.howto-item p {
  font-size: 10px;
  color: #697758;
  line-height: 1.7;
  margin: 0;
}
.keyboard-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9px;
  color: #687554;
  margin-top: 22px;
}
.keyboard-keys kbd {
  font-family: inherit;
  background: #ecf1e1;
  border: 1px solid #e0e8d4;
  border-bottom-width: 2px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 8px;
  margin-right: 3px;
  color: #5b7046;
}
.welcome-open .topbar,
.welcome-open .health-strip,
.welcome-open .department-dock,
.welcome-open .world-tools,
.welcome-open .location-label,
.welcome-open .mission-card,
.welcome-open .shift-bar,
.welcome-open .department-panel,
.welcome-open .incident-banner {
  visibility: hidden;
}
.welcome-open .world-stage {
  inset: 0;
}
.welcome-open .world-vignette {
  box-shadow: inset 0 0 130px #20482966;
}
.warehouse-hint {
  position: absolute;
  background: #f6f9eceb;
  padding: 12px 16px;
  bottom: 120px;
  left: 50%;
  border-radius: 9px;
  color: #879c74;
  font-size: 10px;
  z-index: 9;
}
.stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin: 13px 0;
}
.stock-table th {
  font-weight: 500;
  font-size: 8px;
  color: #aab29b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 2px;
  text-align: right;
}
.stock-table td {
  padding: 9px 2px;
  border-top: 1px solid #e6ebdc;
  text-align: right;
  color: #8a9c77;
  font-variant-numeric: tabular-nums;
}
.stock-table td:first-child,
.stock-table th:first-child {
  text-align: left;
}
.stock-table td:first-child {
  color: #657f55;
  font-weight: 500;
}
.route-options {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}
.route-option {
  background: #f4f7ed;
  border: 1px solid #e5eadb;
  border-radius: 9px;
  flex: 1;
  padding: 13px 5px;
  text-align: center;
}
.route-option > .icon {
  width: 24px;
  height: 24px;
  color: #93a979;
  margin-bottom: 8px;
}
.route-option strong {
  font-size: 10px;
  display: block;
  color: #5d7047;
}
.route-option small {
  font-size: 8px;
  display: block;
  color: #626d4d;
  margin-top: 5px;
}
.route-option.active {
  border-color: #a0b985;
  background: #edf3e0;
}
.route-option.active > .icon {
  color: #7d9d60;
}
.receipt-card {
  background: #eff3e5;
  padding: 17px;
  border-radius: 10px;
  margin: 11px 0;
}
.receipt-card strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  color: #68844f;
}
.receipt-card p {
  font-size: 10px;
  line-height: 1.7;
  color: #a1ac8d;
}
.receipt-numbers {
  display: flex;
  gap: 22px;
}
.receipt-numbers span {
  font-size: 8px;
  color: #a6b090;
}
.receipt-numbers b {
  font-size: 20px;
  display: block;
  color: #83a162;
  font-weight: 550;
  margin: 5px 0;
}
.receipt-numbers span + span b {
  color: #b49a71;
}
.inline-portrait {
  image-rendering: pixelated;
  width: 30px;
  height: 30px;
  background: #e1ecd3;
  border-radius: 7px;
}
.colleague {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  line-height: 1.6;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e6ebdc;
  color: #95a582;
}
.colleague strong {
  font-size: 8px;
  font-weight: 650;
  color: #647557;
  letter-spacing: 0.4px;
}
.colleague p {
  margin: 2px 0 0;
}
.noscript {
  position: fixed;
  inset: 0;
  background: #fff8e5;
  display: grid;
  place-items: center;
  padding: 40px;
  font-size: 18px;
  z-index: 1000;
}
.paused-badge {
  color: #896a39 !important;
}
.seed-note {
  font-size: 9px;
  color: #a7b08f;
  margin-top: 12px;
  line-height: 1.7;
}
.busy-indicator {
  padding: 12px;
  text-align: center;
  color: #879b6d;
}
.end-reason {
  font-size: 13px;
  line-height: 1.8;
  background: #f6e9d6;
  color: #b2976e;
  padding: 16px;
  border-radius: 10px;
}
.app.motion-off * {
  animation: none !important;
  transition: none !important;
}
.app.motion-off .time-track i {
  transition: none;
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(9px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (min-width: 1700px) {
  .department-panel {
    width: 412px;
    right: 30px;
    top: calc(172px + var(--hud, 0px));
    bottom: 102px;
  }
  .panel-content {
    padding: 22px 25px;
  }
  .supplier-card {
    padding: 16px;
  }
  .panel-header {
    padding: 24px 25px 19px;
  }
  .supplier-details strong {
    font-size: 11px;
  }
  .supplier-name {
    font-size: 13px;
  }
  .mission-card {
    width: 375px;
  }
  .department-dock {
    top: calc(225px + var(--hud, 0px));
  }
  .dept-btn {
    width: 43px;
    height: 43px;
  }
  .world-tools {
    top: calc(174px + var(--hud, 0px));
    left: 22px;
  }
  .location-label {
    left: 92px;
    top: calc(230px + var(--hud, 0px));
  }
}
@media (max-width: 1200px) {
  .health-stat {
    min-width: 130px;
    padding-right: 23px;
    margin-right: 23px;
  }
  .health-strip {
    padding-left: 24px;
  }
  .health-note {
    display: none;
  }
  .health-stat strong {
    font-size: 18px;
  }
  .department-panel {
    width: 350px;
    right: 16px;
    top: 161px;
    bottom: 90px;
  }
  .panel-content {
    padding: 16px;
  }
  .panel-header {
    padding: 19px 17px 15px;
  }
  .panel-header h2 {
    font-size: 24px;
  }
  .panel-header p {
    font-size: 10px;
  }
  .department-dock {
    left: 15px;
  }
  .world-tools {
    left: 15px;
  }
  .location-label {
    left: 84px;
  }
  .mission-card {
    left: 84px;
    width: 292px;
    padding: 14px;
  }
  .mission-card p {
    font-size: 10px;
  }
  .footer-tip {
    display: none;
  }
  .shift-bar {
    gap: 20px;
  }
}
@media (max-width: 1000px) {
  .health-stat {
    min-width: 0;
    flex: 1;
    margin-right: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .health-icon {
    width: 27px;
    height: 27px;
  }
  .health-icon .icon {
    width: 16px;
    height: 16px;
  }
  .health-stat strong {
    font-size: 16px;
  }
  .health-strip {
    padding-left: 20px;
  }
  .topbar {
    padding: 0 20px;
    gap: 20px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand-caption {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .career-heading {
    padding-left: 20px;
  }
  .top-actions {
    gap: 1px;
  }
  .top-actions .icon-btn {
    width: 34px;
    height: 34px;
  }
  .location-label span:last-child {
    display: none;
  }
  .mission-card {
    width: 260px;
  }
  .department-panel {
    width: 330px;
  }
  .focus-caption {
    display: none;
  }
  .focus-block {
    padding-left: 17px;
  }
  .shift-bar {
    gap: 15px;
  }
  .world-tools .view-switch button {
    padding: 8px 10px;
  }
}
@media (max-height: 770px) and (min-width: 761px) {
  .topbar {
    height: 64px;
  }
  .health-strip {
    top: 64px;
    height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .world-stage {
    top: calc(122px + var(--hud, 0px));
    bottom: 62px;
  }
  .world-tools {
    top: calc(138px + var(--hud, 0px));
  }
  .department-panel {
    top: 138px;
    bottom: 79px;
  }
  .location-label {
    top: calc(193px + var(--hud, 0px));
  }
  .department-dock {
    top: calc(192px + var(--hud, 0px));
    gap: 1px;
    padding: 5px;
  }
  .dept-btn {
    height: 32px;
    width: 32px;
  }
  .dept-btn .icon {
    width: 17px;
    height: 17px;
  }
  .mission-card {
    bottom: 79px;
    padding: 13px 16px;
  }
  .mission-card p {
    font-size: 10px;
  }
  .mission-card h3 {
    font-size: 12px;
  }
  .shift-bar {
    height: 62px;
  }
  .incident-banner {
    bottom: 76px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 61px;
    padding: 0 14px;
    gap: 15px;
  }
  .brand {
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  .brand-caption {
    font-size: 6px;
    letter-spacing: 1.2px;
  }
  .brand-mark {
    transform: scale(0.8);
    width: 26px;
  }
  .career-heading {
    border: 0;
    padding: 0;
    gap: 3px;
  }
  .career-heading strong {
    font-size: 10px;
  }
  .career-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .top-actions {
    gap: 0;
  }
  .top-actions .icon-btn {
    width: 31px;
    min-width: 31px;
    height: 31px;
  }
  .top-actions .icon {
    width: 17px;
    height: 17px;
  }
  #help-btn {
    display: none;
  }
  .health-strip {
    top: 61px;
    height: 55px;
    padding: 9px 12px;
  }
  .health-stat {
    padding-right: 5px;
    margin-right: 7px;
    gap: 0;
  }
  .health-icon {
    display: none;
  }
  .health-stat .eyebrow {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .health-stat strong {
    font-size: 14px;
    margin-top: 3px;
  }
  .health-stat strong small {
    font-size: 8px;
    margin-left: 1px;
  }
  .world-stage {
    top: 116px;
    bottom: 65px;
  }
  .world-tools {
    top: 131px;
    left: 14px;
  }
  .view-switch button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .world-tools .glass {
    height: 38px;
  }
  .location-label {
    top: 181px;
    left: 18px;
    font-size: 7px;
  }
  .department-dock {
    top: 224px;
    left: 12px;
    padding: 4px;
    gap: 0;
    border-radius: 11px;
  }
  .dept-btn {
    width: 30px;
    height: 32px;
  }
  .dept-btn .icon {
    width: 16px;
    height: 16px;
  }
  .dept-btn::before {
    left: 40px;
  }
  .dock-separator {
    margin: 2px;
  }
  .department-panel {
    top: auto;
    bottom: 78px;
    right: 11px;
    left: 58px;
    width: auto;
    max-height: 59vh;
    border-radius: 14px;
  }
  .panel-header {
    padding: 15px 16px 12px;
  }
  .panel-header h2 {
    font-size: 22px;
  }
  .panel-header p {
    font-size: 10px;
    margin-top: 6px;
  }
  .panel-content {
    padding: 13px 15px;
  }
  .panel-header .eyebrow {
    font-size: 7px;
  }
  .mission-card {
    bottom: 81px;
    left: 65px;
    width: calc(100% - 81px);
    padding: 13px 15px;
  }
  .panel-open .mission-card {
    display: none;
  }
  .incident-banner,
  .panel-open .incident-banner {
    bottom: 76px;
    left: 50%;
    max-width: calc(100% - 24px);
    padding: 6px 12px 6px 6px;
    font-size: 11px;
    gap: 9px;
  }
  .incident-banner .toast-face,
  .incident-banner .toast-face canvas {
    width: 32px;
    height: 32px;
  }
  .shift-bar {
    height: 65px;
    padding: 0 12px;
    gap: 12px;
  }
  .time-controls {
    gap: 6px;
  }
  .time-controls .icon-btn {
    min-width: 27px;
    width: 27px;
  }
  .time-track {
    width: 56px;
  }
  .time-controls .eyebrow {
    font-size: 8px;
  }
  .speed-buttons {
    gap: 0;
    margin-left: 1px;
  }
  .speed-buttons button {
    padding: 6px 5px;
    font-size: 8px;
  }
  .focus-block {
    padding-left: 12px;
    gap: 7px;
  }
  .focus-block > .eyebrow {
    display: none;
  }
  .focus-dots {
    gap: 3px;
  }
  .focus-dots i {
    width: 5px;
    height: 11px;
  }
  .focus-dots.dense {
    gap: 2px;
  }
  .focus-dots.dense i {
    width: 3px;
  }
  .end-shift {
    min-width: 100px;
    font-size: 11px;
    height: 38px;
    padding: 9px 12px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .dialog {
    padding: 25px 22px;
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .dialog h2 {
    font-size: 26px;
    margin-right: 20px;
  }
  .dialog-intro {
    font-size: 11px !important;
  }
  .dialog > .close-dialog {
    top: 12px;
    right: 12px;
  }
  .report-grid {
    gap: 6px;
  }
  .report-stat {
    padding: 12px;
  }
  .report-stat strong {
    font-size: 20px;
  }
  .report-stat .eyebrow {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .report-score {
    width: 60px;
    height: 60px;
  }
  .report-score strong {
    font-size: 25px;
  }
  .report-top {
    gap: 12px;
  }
  .report-top h2 {
    font-size: 25px;
  }
  .journal-layout {
    grid-template-columns: 1fr;
  }
  .journal-causes {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    max-height: 170px;
  }
  .journal-causes .decision-card {
    min-width: 210px;
    margin: 0;
  }
  .journal-causes .empty-state {
    min-width: 210px;
  }
  .timeline {
    margin-top: 5px;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 5px 12px;
    align-items: center;
  }
  .skill-card > .icon {
    margin: 0;
  }
  .skill-card p {
    grid-column: 2;
    margin: 0;
    min-height: 0;
  }
  .skill-card .btn {
    grid-column: 2;
    margin-top: 5px;
    justify-self: start;
  }
  .career-list {
    gap: 6px;
  }
  .career-stop {
    padding: 9px;
  }
  .career-stop strong {
    font-size: 9px;
  }
  .howto-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .welcome-open .world-stage {
    opacity: 0.75;
  }
  .toast-stack {
    right: 13px;
    left: 13px;
    bottom: 80px;
    max-width: none;
  }
  .toast {
    font-size: 10px;
    padding: 12px 14px;
  }
  .newgame-modes {
    gap: 7px;
  }
  .mode-option {
    padding: 13px;
  }
  .mode-option small {
    font-size: 9px;
  }
  .difficulty-options .btn {
    font-size: 10px;
    padding: 10px;
  }
  .dialog-footer .footnote {
    font-size: 8px;
  }
  .promotion {
    padding: 15px;
  }
  .promotion h3 {
    font-size: 15px;
  }
  .promotion p {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Reading contrast for secondary explanations, without changing the pixel-world palette. */
.colleague p,
.panel-header p,
.mission-card p {
  color: #5e6e5c;
}
.helper,
.seed-note,
.dialog-intro {
  color: #68765e;
}
.report-local {
  margin: 16px 0;
  padding: 16px 18px;
  background: #eef2e6;
  border-radius: 10px;
}
.report-local strong {
  display: block;
  font-size: 20px;
  margin: 4px 0 6px;
  color: #365c46;
}
.report-local p {
  font-size: 10px;
  line-height: 1.7;
  color: #67765e;
  margin: 0;
}
.panel-content p {
  line-height: 1.65;
}
/* Accounts & cloud save */
#account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9a04f;
  position: absolute;
  top: 4px;
  right: 4px;
}
#account-dot.ok {
  background: #6fae8a;
}
.field input[type='email'],
.field input[type='password'] {
  width: 100%;
  border: 1px solid #dfe5d5;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: #405d47;
  outline-offset: 2px;
  font-size: 12px;
}
.account-card {
  border: 1px solid #dfe5d5;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-card small {
  color: var(--muted);
}
.account-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
}
.btn.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #d5dacb;
  font-weight: 600;
}
.btn.google:hover:not(:disabled) {
  background: #f7f8f3;
  border-color: #bfc6b3;
}
.google-g {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.segmented.account-tabs {
  margin-bottom: 6px;
}
.account-divider:before,
.account-divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dfe5d5;
}
.account-form .btn.full {
  margin-top: 14px;
}
.danger-zone {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e9d7cf;
}
@media (max-width: 480px) {
  .focus-block {
    min-width: 0;
  }
  .focus-dots.dense {
    flex-wrap: wrap;
    max-width: 60px;
    row-gap: 2px;
  }
  .focus-dots.dense i {
    height: 8px;
  }
}
/* 0.2: consequences, reviews and crisis */
.supplier-history {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #e0e6d6;
  font-size: 10px;
  color: #616f62;
  text-align: left;
}
.supplier-history span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  font-weight: 750;
  color: #666f60;
  margin-bottom: 3px;
}
.supplier-history b {
  font-weight: 650;
}
.supplier-history b.warn {
  color: #9a5c3d;
}
.ceo-target {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f4efe2;
  color: #6d5a33;
  font-size: 11px;
  line-height: 1.4;
}
.ceo-target .icon {
  width: 16px;
  height: 16px;
  color: #c1924a;
  margin-top: 1px;
}
.ceo-target b {
  display: block;
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #826431;
}
.callback-card {
  background: #fbf1e8;
  border: 1px solid #efd4bf;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}
.callback-card .eyebrow {
  color: #9a5c3d;
}
.callback-card strong {
  display: block;
  font-size: 15px;
  margin: 3px 0 6px;
}
.callback-card p {
  margin: 0 0 10px;
  color: #6c5a4d;
  font-size: 12px;
  line-height: 1.5;
}
.callback-totals {
  display: flex;
  gap: 22px;
}
.callback-totals span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  letter-spacing: 1px;
  color: #76695b;
  text-transform: uppercase;
}
.callback-totals b {
  font-size: 18px;
  letter-spacing: 0;
  color: #3f5a45;
}
.callback-totals .loss b {
  color: #a9513a;
}
.review-card {
  background: #f0f3e7;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}
.review-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.review-top strong {
  display: block;
  font-size: 13px;
  margin: 2px 0;
}
.review-top small {
  color: var(--muted);
  font-size: 10px;
}
.grade-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  background: #6f8f5f;
  flex-shrink: 0;
}
.grade-A {
  background: #2e7650;
}
.grade-B {
  background: #6f9a4f;
}
.grade-C {
  background: #c1964a;
}
.grade-D {
  background: #c47a48;
}
.grade-F {
  background: #b4553f;
}
.review-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 16px;
  margin: 13px 0 4px;
}
.review-bars div {
  font-size: 10px;
  color: #6c7a6b;
}
.review-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #dfe6d4;
  margin-top: 4px;
  overflow: hidden;
}
.review-bars b {
  display: block;
  height: 100%;
  background: #5f8b56;
}
.review-history {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.grade-chip {
  width: 42px;
  height: 46px;
  border-radius: 9px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.grade-chip b {
  font-size: 17px;
}
.grade-chip small {
  font-size: 8px;
}
.text-button.light {
  color: #e8c37f;
  padding-left: 0;
  margin-top: 6px;
}
.share-text {
  width: 100%;
  font: inherit;
  font-size: 12px;
  padding: 12px;
  border: 1px solid #dfe5d5;
  border-radius: 8px;
  resize: none;
  margin-top: 12px;
}
/* Company book */
.book-tabs {
  display: flex;
  gap: 6px;
  margin: 6px 0 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.book-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 650;
  color: #6b7561;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.book-tabs button .icon {
  width: 16px;
  height: 16px;
}
.book-tabs button.active {
  color: #2f5940;
  border-color: #2f5940;
}
.book-tabs button:hover {
  color: #2f5940;
}
.book-body {
  animation: bookIn 0.22s ease-out;
}
@keyframes bookIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.kpi-tile {
  background: #f0f3e7;
  border-radius: 11px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 112px;
}
.kpi-tile strong {
  font-size: 21px;
  letter-spacing: -0.4px;
}
.spark {
  width: 100%;
  height: 34px;
  display: block;
}
.kpi-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.delta {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.3px;
}
.delta.up {
  color: #467a45;
}
.delta.down {
  color: #a55638;
}
.book-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 22px;
}
.muted-line {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0;
}
.stock-table.compact td,
.stock-table.compact th {
  padding: 7px 6px;
  font-size: 10px;
}
.pos {
  color: #467a45;
  font-weight: 650;
}
.neg {
  color: #a9513a;
  font-weight: 650;
}
.achievement-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f4efe2;
  text-align: left;
  color: #6d5a33;
}
.achievement-link .icon {
  color: #c1924a;
}
.achievement-link span {
  flex: 1;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.achievement-link b {
  font-size: 12px;
}
.win-row,
.loss-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 7px;
  text-align: left;
  width: 100%;
}
.win-row {
  background: #eaf3e2;
}
.win-row .icon {
  color: #467a45;
  margin-top: 1px;
}
.loss-row {
  background: #fbf1e8;
}
.loss-row .icon {
  color: #c07a4a;
  margin-top: 1px;
}
.win-row div,
.loss-row div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.win-row b,
.loss-row b {
  font-size: 11px;
}
.win-row small,
.loss-row small {
  font-size: 10px;
  color: #7a8676;
  line-height: 1.4;
}
.loss-row > span {
  font-size: 12px;
  font-weight: 700;
  color: #a9513a;
}
.decision-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.verdict {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.verdict.good {
  background: #dcecd2;
  color: #3f7a45;
}
.verdict.bad {
  background: #f6dfd3;
  color: #b0543a;
}
.verdict.neutral {
  background: #eceee6;
  color: #646c60;
}
.verdict.big {
  font-size: 10px;
  padding: 7px 10px;
}
.bar-pair {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 8px 0 2px;
}
.bar-pair i {
  display: block;
  height: 4px;
  border-radius: 2px;
  min-width: 2px;
}
.bar-pair .saved {
  background: #7ea86a;
}
.bar-pair .linked {
  background: #d0896a;
}
.decision-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.decision-head h3 {
  margin: 4px 0 12px;
  font-size: 17px;
}
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 10px;
  color: #566a55;
}
.flow-steps span {
  background: #eef2e5;
  padding: 5px 8px;
  border-radius: 6px;
}
.flow-steps .icon {
  width: 13px;
  height: 13px;
  color: #a2b08f;
}
.ledger {
  background: #f6f7ef;
  border: 1px solid #e6eadc;
  border-radius: 11px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.ledger div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 11px;
  border-bottom: 1px dashed #e2e7d6;
}
.ledger div:last-child {
  border: 0;
}
.ledger .total {
  font-size: 13px;
  font-weight: 700;
}
.timeline-event.good:before {
  background: #6fae6a;
}
.timeline-event.bad:before {
  background: #d0896a;
}
.timeline-event.info:before {
  background: #8fb0c7;
}
.timeline-event.good strong {
  color: #3f7a45;
}
.day-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.day-block {
  border: 1px solid #e6eadc;
  border-radius: 12px;
  padding: 12px 14px 2px;
}
.day-block header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 10px;
  color: var(--muted);
}
.day-block header b {
  font-size: 13px;
  color: var(--ink);
}
.day-block .timeline-event {
  padding-left: 16px;
  margin-bottom: 14px;
}
.day-block .timeline-event:before {
  left: 0;
}
details.routine {
  margin: 0 0 12px;
  font-size: 10px;
  color: var(--muted);
}
details.routine summary {
  cursor: pointer;
  padding: 4px 0;
}
details.routine[open] {
  padding-bottom: 4px;
}
.chain-map {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 6px 2px 16px;
}
.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 78px;
  padding: 10px 6px;
  border-radius: 11px;
  background: #f0f3e7;
  font-size: 9px;
  font-weight: 650;
  color: #5b6d58;
  text-align: center;
}
.chain-node.warm {
  background: #f8ecdd;
}
.chain-node.hot {
  background: #f4d9cb;
  color: #9c4a33;
}
.chain-node.mine {
  box-shadow: 0 0 0 2px #2f5940;
}
.chain-link {
  flex: 1;
  min-width: 10px;
  height: 2px;
  background: #d6dfc9;
}
.edge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.edge-card {
  border-radius: 11px;
  padding: 12px 14px;
  background: #f3f5ec;
  border-left: 4px solid #a9b99a;
}
.edge-card.bad {
  border-color: #d0896a;
  background: #fbf3ec;
}
.edge-card.good {
  border-color: #6fae6a;
  background: #eef6e8;
}
.edge-card.mine {
  outline: 1px solid #2f594055;
}
.edge-desks {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 10px;
  margin-bottom: 6px;
}
.edge-desks .icon {
  width: 14px;
  height: 14px;
}
.edge-count {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  font-weight: 650;
}
.edge-card strong {
  font-size: 12px;
}
.edge-card p {
  font-size: 10px;
  color: #5b6759;
  line-height: 1.5;
  margin: 4px 0 0;
}
@media (max-width: 760px) {
  .book-two {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-tile {
    min-height: 0;
  }
}
/* Wins and achievements */
.wins-block {
  margin-top: 16px;
}
.win-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eaf3e2;
  border: 1px solid #d3e6c6;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 8px;
  animation: winIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.win-card:nth-child(3) {
  animation-delay: 0.08s;
}
.win-card:nth-child(4) {
  animation-delay: 0.16s;
}
.win-card > .icon {
  width: 22px;
  height: 22px;
  color: #fff;
  background: #467a45;
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
}
.win-card b {
  font-size: 13px;
  color: #2f5a36;
}
.win-card p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #5d735b;
  line-height: 1.45;
}
@keyframes winIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.unlock-banner {
  margin-top: 16px;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(120deg, #e9b95f, #f3d893, #e0a54c);
  background-size: 200% 100%;
  animation: shine 3s linear infinite;
}
.unlock-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #2f5940;
  border-radius: 11px;
  padding: 13px 16px;
  color: #f3f0dc;
  margin: 2px;
}
.unlock-item .badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbe5a6, #dca64d);
  display: grid;
  place-items: center;
  color: #5a3f12;
  flex-shrink: 0;
  animation: pop 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.4) both;
}
.unlock-item .eyebrow {
  color: #e8c37f;
}
.unlock-item b {
  display: block;
  font-size: 15px;
  margin: 2px 0;
}
.unlock-item small {
  font-size: 10px;
  color: #cfd8c0;
}
@keyframes shine {
  to {
    background-position: -200% 0;
  }
}
@keyframes pop {
  from {
    transform: scale(0.3) rotate(-20deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.report-grid .report-stat {
  animation: winIn 0.35s ease-out both;
}
.report-grid .report-stat:nth-child(2) {
  animation-delay: 0.04s;
}
.report-grid .report-stat:nth-child(3) {
  animation-delay: 0.08s;
}
.report-grid .report-stat:nth-child(4) {
  animation-delay: 0.12s;
}
.report-grid .report-stat:nth-child(5) {
  animation-delay: 0.16s;
}
.report-grid .report-stat:nth-child(6) {
  animation-delay: 0.2s;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.achievement {
  background: #f1f3ec;
  border-radius: 11px;
  padding: 11px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #676f60;
}
.achievement .badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e6da;
  display: grid;
  place-items: center;
}
.achievement .badge .icon {
  width: 17px;
  height: 17px;
}
.achievement b {
  font-size: 10px;
  line-height: 1.3;
}
.achievement small {
  font-size: 8.5px;
  line-height: 1.35;
}
.achievement.got {
  background: #f6efdc;
  color: #5f4b22;
}
.achievement.got .badge {
  background: radial-gradient(circle at 35% 30%, #fbe5a6, #dca64d);
  color: #5a3f12;
}
.motion-off .win-card,
.motion-off .unlock-banner,
.motion-off .unlock-item .badge,
.motion-off .report-stat,
.motion-off .book-body {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .win-card,
  .unlock-banner,
  .unlock-item .badge,
  .report-stat,
  .book-body {
    animation: none !important;
  }
}
.blame {
  display: inline-block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.3px;
  padding: 4px 7px;
  border-radius: 5px;
  margin: 2px 0 4px;
  background: #f6dfd3;
  color: #994d36;
}
.blame-factory {
  background: #f3e7cf;
  color: #8f6a2a;
}
.blame-transport {
  background: #e2ebf1;
  color: #4f6f86;
}
details.grouped summary {
  cursor: pointer;
  list-style: none;
}
details.grouped summary::-webkit-details-marker {
  display: none;
}
details.grouped[open] > .timeline-event {
  margin-left: 4px;
}
.unlock-item.multi {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
}
.unlock-grid > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.unlock-grid b {
  font-size: 12px;
  margin: 0;
}
.unlock-item .badge.small {
  width: 32px;
  height: 32px;
}
.unlock-item .badge.small .icon {
  width: 15px;
  height: 15px;
}
/* Team */
.team-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 9px;
  margin-bottom: 6px;
}
.team-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f1f4e8;
  border-top: 3px solid #b9c7a7;
}
.team-card.good {
  border-color: #6fae6a;
  background: #eef6e8;
}
.team-card.amber {
  border-color: #d6a655;
  background: #faf3e3;
}
.team-card.bad {
  border-color: #d0896a;
  background: #fbf1ea;
}
.team-card canvas,
.team-voice canvas {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #e6ecdb;
  flex-shrink: 0;
}
.team-card b {
  display: block;
  font-size: 12px;
  margin: 2px 0;
}
.team-card p {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  color: #5f6d5c;
}
.team-voice {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f1f4e8;
  font-size: 10.5px;
  line-height: 1.4;
  color: #4f5f4c;
}
.team-voice b {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #626e5c;
  margin-bottom: 2px;
}
.team-voice.bad {
  background: #fbf1ea;
}
.team-voice.amber {
  background: #faf3e3;
}
.team-voice.good {
  background: #eef6e8;
}
.team-voice canvas {
  width: 30px;
  height: 30px;
}
#book-notification {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f9b57;
  position: absolute;
  top: 4px;
  right: 4px;
}
.trend {
  font-style: normal;
  font-size: 8px;
  margin-left: 5px;
  vertical-align: middle;
}
.trend.up {
  color: #5f9b57;
}
.trend.down {
  color: #c0704f;
}
.health-stat.bad .trend.down {
  color: #c0704f;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
  margin-bottom: 22px;
}
.record {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f7f0dc, #f1ead3);
}
.record .icon {
  color: #c1924a;
  margin-top: 2px;
}
.record b {
  display: block;
  font-size: 15px;
  margin: 2px 0;
}
.record small {
  font-size: 9.5px;
  color: #7d7560;
  line-height: 1.35;
}
/* First-shift coach */
.coach {
  background: #f4efe2;
  border: 1px solid #eadfc4;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
}
.coach .eyebrow {
  color: #826431;
}
.coach-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  color: #8a826d;
}
.coach-step i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8dfc6;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.coach-step i .icon {
  width: 12px;
  height: 12px;
}
.coach-step.done {
  color: #5f7a54;
}
.coach-step.done i {
  background: #6f9a5a;
  color: #fff;
}
.coach-step.done b {
  text-decoration: line-through;
  text-decoration-color: #9fb58f;
}
.coach-step.next {
  color: #3f3620;
}
.coach-step.next i {
  background: #d9a04f;
  color: #fff;
}
.coach-step b {
  font-size: 11.5px;
  display: block;
}
.coach-step small {
  display: block;
  font-size: 10.5px;
  line-height: 1.45;
  color: #6d6450;
  margin-top: 2px;
}
.report-coach {
  margin-top: 16px;
}
.report-coach p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #5d5540;
  margin: 6px 0 0;
}
.end-shift.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #d9a04f88;
  }
  50% {
    box-shadow: 0 0 0 9px #d9a04f00;
  }
}
.motion-off .end-shift.pulse {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .end-shift.pulse {
    animation: none;
  }
}
/* 0.3 · shift story, explanations, chapters */
.report-top {
  justify-content: space-between;
  align-items: flex-start;
}
.day-check {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  min-width: 168px;
}
.day-check .check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #f1f3ec;
  color: #646e67;
}
.day-check .check > .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.day-check .check span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.day-check small {
  font-size: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.day-check b {
  font-size: 12px;
  font-weight: 600;
}
.day-check .good {
  background: #e3f0dc;
  color: #2f6a3c;
}
.day-check .ok {
  background: #f6efdc;
  color: #82642a;
}
.day-check .bad {
  background: #f8e4dc;
  color: #a4503a;
}
.why {
  margin-top: 8px;
  font-size: 11px;
}
.why summary {
  cursor: pointer;
  color: #35664d;
  font-weight: 550;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.why summary::-webkit-details-marker {
  display: none;
}
.why summary:before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d6e7cf;
  font-size: 11px;
  line-height: 1;
}
.why[open] summary:before {
  content: '−';
}
.why summary:focus-visible {
  outline: 2px solid #35664d;
  outline-offset: 3px;
  border-radius: 4px;
}
.why-chain {
  list-style: none;
  margin: 10px 0 2px;
  padding: 0;
  counter-reset: why;
}
.why-chain li {
  position: relative;
  padding: 0 0 10px 26px;
  line-height: 1.5;
  color: #44564b;
  counter-increment: why;
}
.why-chain li:before {
  content: counter(why);
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #bcd3b2;
  color: #4f7a4d;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.why-chain li:not(:last-child):after {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 2px;
  width: 1px;
  background: #bcd3b2;
}
.callback-card .why summary {
  color: #9c5b39;
}
.callback-card .why summary:before {
  background: #f1d8c6;
}
.callback-card .why-chain li {
  color: #6c5a4d;
}
.callback-card .why-chain li:before {
  border-color: #e6c2a8;
  color: #9c5b39;
}
.callback-card .why-chain li:not(:last-child):after {
  background: #e6c2a8;
}
.win-card {
  position: relative;
  overflow: hidden;
}
.win-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, #ffffff99 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 1.4s 0.35s ease-out both;
  pointer-events: none;
}
@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}
.confetti {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 3;
}
.confetti i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 0.6);
  background: var(--c);
  transform: rotate(var(--r));
  animation: fall 1.9s var(--d) cubic-bezier(0.3, 0.6, 0.5, 1) both;
  image-rendering: pixelated;
}
@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(var(--r));
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(420px) rotate(calc(var(--r) + 300deg));
  }
}
.review-note {
  font-size: 10px;
  color: #606b65;
  line-height: 1.5;
  margin: 10px 0 0;
}
.report-event .count {
  font-size: 10px;
  color: #a0714f;
  font-weight: 600;
}
.chapter-closed {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f4efe2;
  border: 1px solid #eadfc4;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
}
.chapter-closed .grade-badge {
  width: 40px;
  height: 40px;
  font-size: 21px;
  border-radius: 10px;
}
.chapter-closed .eyebrow {
  color: #826431;
}
.chapter-closed p {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 0;
  color: #5f5440;
}
.chapter-closed p .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.chapter-closed p.good .icon {
  color: #467a45;
}
.chapter-closed p.bad .icon {
  color: #c06b4a;
}
.because {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f4efe2;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #5f5440;
}
.because .icon {
  width: 15px;
  height: 15px;
  color: #b08a45;
  flex-shrink: 0;
  margin-top: 1px;
}
.because b {
  display: block;
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #826431;
  margin-bottom: 2px;
}
.timeline-event.story strong {
  color: #7a5a24;
}
.timeline-event.story:before {
  background: #e0b35e;
}
.achievement .progress {
  width: 80%;
  height: 4px;
  border-radius: 3px;
  background: #dfe4d6;
  overflow: hidden;
  margin-top: 3px;
}
.achievement .progress i {
  display: block;
  height: 100%;
  background: #c9a24f;
  border-radius: 3px;
}
.achievement .progress-note {
  font-size: 8px;
  color: #756c50;
}
.career-track {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 6px 2px 12px;
  margin-bottom: 4px;
  scrollbar-width: thin;
}
.track-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 62px;
  color: #a3ab9c;
}
.track-stop > b,
.track-stop > .icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  padding: 0;
}
.track-stop > .icon {
  padding: 7px;
  box-sizing: border-box;
  background: #e9ece3;
  color: #676f60;
}
.track-stop > b {
  color: #fff;
}
.track-stop small {
  font-size: 8px;
  text-align: center;
  line-height: 1.2;
}
.track-stop.done small {
  color: #56655c;
}
.track-stop.now > .icon {
  background: #285a48;
  color: #fff;
  box-shadow: 0 0 0 3px #d8e9dc;
}
.track-stop.now small {
  color: #285a48;
  font-weight: 600;
}
.track-link {
  flex: 1;
  min-width: 10px;
  height: 2px;
  background: #dfe4d6;
  margin-bottom: 18px;
}
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chapter-card {
  background: #f5f6ef;
  border: 1px solid #e5e9df;
  border-radius: 14px;
  padding: 16px 18px;
}
.chapter-card.current {
  background: #fff;
  border-color: #bcd3b2;
  box-shadow: 0 0 0 3px #eaf3e2;
}
.chapter-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.chapter-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chapter-card h3 .icon {
  width: 18px;
  height: 18px;
  color: #285a48;
}
.chapter-card h3 small {
  font-size: 11px;
  color: #606b65;
  font-weight: 500;
}
.chapter-card .grade-badge {
  width: 40px;
  height: 40px;
  font-size: 21px;
  border-radius: 10px;
}
.moment {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.5;
  color: #44564b;
  margin: 9px 0 0;
}
.moment .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.moment b {
  display: block;
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.moment.good .icon,
.moment.good b {
  color: #3f7a45;
}
.moment.bad .icon,
.moment.bad b {
  color: #a75642;
}
.moment.story .icon,
.moment.story b {
  color: #826431;
}
.legacy {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed #d6dccd;
}
.legacy .eyebrow {
  font-size: 7.5px;
}
.legacy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 6px;
}
.legacy span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: #606b65;
}
.legacy span b {
  font-size: 15px;
  color: #243d36;
  font-weight: 650;
}
.legacy .loss b {
  color: #a75642;
}
.legacy .gain b {
  color: #3f7a45;
}
.legacy small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: #656f68;
}
.motion-off .confetti,
.motion-off .win-card:after {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .confetti,
  .win-card:after {
    display: none;
  }
}
@media (max-width: 760px) {
  .report-top {
    flex-direction: column;
    align-items: stretch;
  }
  .day-check {
    flex-direction: row;
    min-width: 0;
  }
  .day-check .check {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 8px;
  }
  .day-check b {
    font-size: 11px;
  }
  .chapter-card {
    padding: 14px;
  }
  .track-stop {
    min-width: 52px;
  }
}
/* 0.3 · trust, allies, years, money flow, hall of fame */
.team-card > div {
  flex: 1;
  min-width: 0;
}
.trust {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed #d3dbc8;
}
.trust-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #5f6d5c;
  font-weight: 600;
}
.trust-top b {
  display: inline;
  font-size: 8px;
  letter-spacing: 0.9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #2e7650;
  color: #fff;
  margin: 0;
}
.trust.strained .trust-top b {
  background: #b4553f;
}
.trust-top small {
  font-size: 8.5px;
  color: #656f68;
  font-weight: 500;
}
.trust > i {
  display: block;
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: #dfe4d6;
  margin: 5px 0 5px;
  overflow: hidden;
}
.trust > i b {
  display: block;
  height: 100%;
  background: #8fb07a;
  border-radius: 3px;
  margin: 0;
}
.trust.ally > i b {
  background: #2e7650;
}
.trust.strained > i b {
  background: #c66b4b;
}
.trust > i em {
  position: absolute;
  left: 70%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #6d7a68;
}
.trust > small {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  color: #646e67;
}
.ally-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 12px 15px;
  margin-top: 12px;
  animation: winIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.ally-card canvas {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: 9px;
  background: #e6ecdb;
  flex-shrink: 0;
}
.ally-card.gain {
  background: linear-gradient(110deg, #e3f0dc, #f4efe2);
  border: 1px solid #cfe2c2;
}
.ally-card.loss {
  background: #fbf1ea;
  border: 1px solid #efd4bf;
}
.ally-card b {
  display: block;
  font-size: 14px;
  margin: 2px 0;
}
.ally-card.gain .eyebrow {
  color: #3f7a45;
}
.ally-card.loss .eyebrow {
  color: #a75642;
}
.ally-card p {
  margin: 0;
  font-size: 11px;
  color: #5f6d5c;
  line-height: 1.45;
}
.year-card {
  background: #f5f6ef;
  border: 1px solid #e5e9df;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}
.year-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.goal {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 3px 12px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #e9ece3;
}
.goal:first-of-type {
  border-top: 0;
}
.goal > span {
  font-size: 11.5px;
  color: #44564b;
  display: flex;
  gap: 6px;
  align-items: center;
}
.goal > span .icon {
  width: 14px;
  height: 14px;
  color: #2e7650;
}
.goal > i {
  height: 6px;
  border-radius: 3px;
  background: #dfe4d6;
  overflow: hidden;
}
.goal > i b {
  display: block;
  height: 100%;
  background: #c9a24f;
  border-radius: 3px;
}
.goal.met > i b {
  background: #2e7650;
}
.goal > small {
  grid-column: 1/-1;
  font-size: 9px;
  color: #656f68;
}
.money-flow {
  background: #f5f6ef;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
}
.money-row {
  display: grid;
  grid-template-columns: 70px 1fr 64px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
  color: #646e67;
}
.money-row b {
  text-align: right;
  font-size: 12px;
  color: #243d36;
}
.money-bar {
  display: flex;
  height: 14px;
  border-radius: 5px;
  background: #e9ece3;
  overflow: hidden;
}
.money-bar i {
  display: block;
  height: 100%;
}
.money-bar i + i {
  box-shadow: inset 1.5px 0 0 #f5f6ef;
}
.money-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 4px;
  font-size: 10px;
  color: #5f6d5c;
}
.money-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.money-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.money-legend em {
  font-style: normal;
  color: #676f60;
}
.money-note {
  font-size: 10px;
  color: #606b65;
  line-height: 1.5;
  margin: 8px 0 0;
}
.money-note .pos {
  color: #3f7a45;
}
.money-note .neg {
  color: #a75642;
}
.hall-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hall-card {
  display: grid;
  grid-template-columns: 22px 48px 1fr;
  gap: 12px;
  align-items: flex-start;
  background: #f5f6ef;
  border-radius: 12px;
  padding: 13px 15px;
}
.hall-rank {
  font-size: 13px;
  font-weight: 700;
  color: #676f60;
  padding-top: 12px;
}
.hall-card .grade-badge {
  width: 44px;
  height: 44px;
  font-size: 23px;
  border-radius: 11px;
}
.hall-card b {
  display: block;
  font-size: 13px;
  margin: 3px 0;
}
.hall-card small {
  font-size: 10px;
  color: #606b65;
}
.hall-card p {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 10.5px;
  margin: 5px 0 0;
  color: #5f6d5c;
  line-height: 1.4;
}
.hall-card p .icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.hall-card p.good .icon {
  color: #3f7a45;
}
.hall-card p.bad .icon {
  color: #a75642;
}
.hall-grades {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 5px 0;
}
.hall-grades i {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
}
.book-tabs [role='tab']:focus-visible,
.book-body:focus-visible {
  outline: 2px solid #35664d;
  outline-offset: 2px;
}
.motion-off .ally-card {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .ally-card {
    animation: none;
  }
}
@media (max-width: 760px) {
  .goal {
    grid-template-columns: 1fr;
  }
  .money-row {
    grid-template-columns: 56px 1fr 52px;
  }
  .hall-card {
    grid-template-columns: 40px 1fr;
  }
  .hall-rank {
    display: none;
  }
}
.upgrade-card.fits {
  border-color: #cfe2c2;
  box-shadow: 0 0 0 2px #e3f0dc;
}
.fit-reason {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #e3f0dc;
  border-radius: 8px;
  padding: 7px 9px;
  margin: 0 0 9px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #2f5a36;
}
.fit-reason .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #3f7a45;
}
.fit-reason b {
  display: block;
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.sample-read {
  border-radius: 11px;
  padding: 11px 13px;
  margin: 10px 0 4px;
  background: #f1f3ec;
  border-left: 3px solid #a3ab9c;
}
.sample-read.rework {
  background: #fbf1ea;
  border-left-color: #c66b4b;
}
.sample-read.accept {
  background: #e3f0dc;
  border-left-color: #467a45;
}
.sample-read.close {
  background: #f6efdc;
  border-left-color: #c9a24f;
}
.sample-read-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sample-read-top b {
  font-size: 12px;
}
.sample-read .range {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: #e2e6da;
  margin: 9px 0 4px;
}
.sample-read .band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  background: #7d8f77;
}
.sample-read .mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #a75642;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #646e67;
}
.sample-read p {
  margin: 7px 0 3px;
  font-size: 11px;
  font-weight: 550;
  color: #34473c;
  line-height: 1.45;
}
.sample-read small {
  display: block;
  font-size: 9.5px;
  color: #646e67;
  line-height: 1.45;
}
.unproven {
  font-size: 8px;
  letter-spacing: 0.9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f6efdc;
  color: #82642a;
}
.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;
}
.promise-chip {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  font-size: 9px;
  color: #6d5a33;
  background: #f4efe2;
  border-radius: 6px;
  padding: 4px 7px;
}
.promise-chip .icon {
  width: 11px;
  height: 11px;
  color: #b08a45;
  flex-shrink: 0;
}
.product-swatch.earbuds {
  color: #b86680;
}
.launch-card {
  display: flex;
  gap: 14px;
  background: #f8f1f1;
  border: 1px solid #ecdcdc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
}
.launch-art {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #d08aa0;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.launch-art .icon {
  width: 20px;
  height: 20px;
}
.launch-body {
  flex: 1;
  min-width: 0;
}
.launch-body p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #5f5a55;
}
.launch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 6px;
}
.launch-stats span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: #606b65;
}
.launch-stats b {
  font-size: 16px;
  color: #243d36;
}
.launch-card .goal {
  border-top: 0;
  padding-top: 2px;
}
.pulse-card {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: 420px;
  max-width: calc(100% - 32px);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fffdf6;
  border: 1px solid #eadfc4;
  border-left: 4px solid #d9a04f;
  border-radius: 14px;
  box-shadow: 0 12px 40px #264b3133;
  z-index: 9;
  animation: pulseIn 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.pulse-card canvas {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: 9px;
  background: #e6ecdb;
  flex-shrink: 0;
}
.pulse-card .eyebrow {
  color: #826431;
  font-size: 7.5px;
}
.pulse-card b {
  display: block;
  font-size: 14px;
  margin: 3px 0;
}
.pulse-card p {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.45;
  color: #5f6d5c;
}
.pulse-card small {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  color: #656f68;
  line-height: 1.4;
}
.pulse-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@keyframes pulseIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.motion-off .pulse-card {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-card {
    animation: none;
  }
}
@media (max-width: 760px) {
  .pulse-card {
    bottom: 84px;
    width: calc(100% - 32px);
  }
}
.scorecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 7px;
  margin: 4px 0 8px;
}
.scorecard {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f1f3ec;
  border-radius: 10px;
  padding: 8px 10px;
}
.scorecard > b {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.scorecard .grade-D {
  background: #b4553f;
}
.scorecard strong {
  display: block;
  font-size: 11px;
}
.scorecard small {
  font-size: 9px;
  color: #606b65;
}
.scorecard .flag-label {
  font-size: 8px;
  font-weight: 700;
  color: #606b65;
  width: 16px;
}
.report-scorecards {
  margin-top: 14px;
}
.pulse-card {
  z-index: 40;
}
@media (max-width: 760px) {
  .pulse-card {
    top: 118px;
    bottom: auto;
    animation: none;
    transform: translateX(-50%);
  }
}
.contract-card {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #eef4ea;
  border: 1px solid #d3e6c6;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0 8px;
}
.contract-card b {
  display: block;
  font-size: 11.5px;
}
.contract-card small {
  display: block;
  font-size: 9.5px;
  color: #646e67;
  line-height: 1.45;
  margin-top: 2px;
}
.contract-offer {
  font-size: 10.5px;
  line-height: 1.5;
  color: #5f6d5c;
  margin: 2px 0 8px;
}
.season {
  background: #f5f6ef;
  border-radius: 11px;
  padding: 10px 12px;
  margin: 10px 0;
}
.season-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.season-top b {
  font-size: 11px;
}
.season-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 34px;
  margin: 8px 0 5px;
}
.season-bars i {
  flex: 1;
  background: #c9d2bf;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.season-bars i.peak {
  background: #d9a04f;
}
.season-bars i.lull {
  background: #9fb3c2;
}
.season-bars i.today {
  outline: 2px solid #285a48;
  outline-offset: 1px;
}
.season small {
  font-size: 9.5px;
  color: #606b65;
  line-height: 1.4;
}
.pulse-card.collapsed {
  padding: 0;
  border-left-width: 4px;
}
.pulse-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.pulse-mini b {
  font-size: 12px;
  margin: 0;
  padding-right: 70px;
}
.pulse-open {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #285a48;
}
.pulse-open .icon {
  width: 13px;
  height: 13px;
}
.replay {
  min-height: 300px;
  display: flex;
  align-items: center;
}
.replay-slide {
  width: 100%;
  animation: bookIn 0.45s ease both;
}
.replay-slide h2 {
  margin: 6px 0 10px;
}
.replay-slide.intro p {
  font-size: 14px;
  color: #5f6d5c;
  line-height: 1.6;
  max-width: 480px;
}
.replay-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 12px;
}
.replay-head h2 {
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.replay-head h2 small {
  font-size: 12px;
  color: #606b65;
  font-weight: 500;
  margin-top: 3px;
}
.replay-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #285a48;
  color: #f3e7b8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.replay-icon .icon {
  width: 26px;
  height: 26px;
}
.replay-grade {
  animation: pop 0.6s 0.2s cubic-bezier(0.2, 0.8, 0.3, 1.4) both;
}
.replay-grade.big {
  width: 72px;
  height: 72px;
  font-size: 38px;
  border-radius: 16px;
}
.replay-legacy {
  font-size: 11px;
  color: #646e67;
  margin: 12px 0 0;
}
.replay-legacy .pos {
  color: #3f7a45;
}
.replay-legacy .neg {
  color: #a75642;
}
.replay-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 6px 0 10px;
}
.replay-stats span {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #606b65;
}
.replay-stats b {
  font-size: 20px;
  color: #243d36;
}
.replay-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 16px 0 4px;
}
.replay-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dfe4d6;
}
.replay-dots i.done {
  background: #9fbf8e;
}
.replay-dots i.on {
  background: #285a48;
  width: 18px;
  border-radius: 4px;
}
.replay-controls {
  justify-content: center;
  gap: 8px;
}
.replay-button {
  margin: 0 0 8px;
}
.motion-off .replay-slide,
.motion-off .replay-grade {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .replay-slide,
  .replay-grade {
    animation: none;
  }
}
.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  margin-left: auto;
  margin-right: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f4efe2;
  color: #82642a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.season-chip .icon {
  width: 12px;
  height: 12px;
}
.season-chip.peak {
  background: #94641a;
  color: #fff;
}
.season-chip + .health-note {
  margin-left: 0;
}
.price-row {
  padding: 6px 0;
}
.price-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 5px;
}
.price-steps button {
  padding: 6px 0;
  border-radius: 7px;
  border: 1px solid #dfe4d6;
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  color: #44564b;
  cursor: pointer;
}
.price-steps button.active {
  background: #285a48;
  color: #fff;
  border-color: #285a48;
}
.price-steps button:disabled:not(.active) {
  opacity: 0.45;
  cursor: default;
}
.season .goal {
  border-top: 0;
  padding: 6px 0 2px;
}
@media (max-width: 760px) {
  .season-chip {
    display: none;
  }
}
.replay-save {
  margin-top: 12px;
}
/* Desk hints: one data-based line under the colleague quote. */
.colleague > div {
  min-width: 0;
}
.desk-tip {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0 !important;
  padding: 6px 8px;
  border-radius: 7px;
  background: #eef2e6;
  color: #4f6150 !important;
  font-size: 10px;
  line-height: 1.5;
}
.desk-tip svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 2px;
}
.desk-tip b {
  font-size: 8px;
  letter-spacing: 0.5px;
  margin-right: 3px;
  color: #365c46;
}
.desk-tip.warn {
  background: #f8efdc;
}
.desk-tip.warn b {
  color: #8d611a;
}
.desk-tip.bad {
  background: #f8e3dd;
}
.desk-tip.bad b {
  color: #a84a36;
}
.launch-card.market {
  background: #eef4ee;
  border-color: #d6e4d6;
}
.launch-card.market .launch-art {
  background: #5f9a7a;
}
/* Buyer voices: a retailer's words when its grade moves. */
.buyer-voices {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.buyer-voice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4ee;
  border: 1px solid #d6e4d6;
}
.buyer-voice.down {
  background: #f8ece6;
  border-color: #eed5c8;
}
.buyer-voice strong {
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #4f6150;
}
.buyer-voice p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: #40523f;
}
.grade-move {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
  padding-top: 1px;
}
.grade-move b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
}
.grade-move svg {
  width: 10px;
  height: 10px;
  color: #8a9a80;
}
.dept-btn.alert::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c0543c;
  border: 2px solid #fbfaf1;
  position: absolute;
  right: 2px;
  top: 2px;
}
/* Almost there: the nearest locked achievement in the shift report. */
.almost {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f6f1e1;
  border: 1px dashed #e0cf9f;
}
.almost .badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ead9a6;
  color: #7a5b1c;
  flex: none;
}
.almost .badge svg {
  width: 15px;
  height: 15px;
}
.almost > div:last-child {
  flex: 1;
  min-width: 0;
}
.almost i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #e8e0c6;
  margin: 5px 0 3px;
  overflow: hidden;
}
.almost i b {
  display: block;
  height: 100%;
  background: #c79a3e;
  border-radius: 3px;
}
.almost small {
  font-size: 10px;
  color: #766b52;
}
/* Lessons: the supply-chain ideas behind the game, proven by the company's own record. */
.lessons-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 4px 0 16px;
}
.lessons-head strong {
  font-size: 14px;
  color: #2f4a39;
}
.lessons-head p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #67765e;
}
.lessons-ring {
  --p: 0;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(#fbfaf1 58%, transparent 59%), conic-gradient(#3f7d55 calc(var(--p) * 1%), #e3e8d8 0);
}
.lessons-ring b {
  font-size: 20px;
  line-height: 1;
  color: #2f4a39;
}
.lessons-ring small {
  font-size: 9px;
  color: #5c6754;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.lesson {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
}
.lesson header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #67765e;
}
.lesson header svg {
  width: 16px;
  height: 16px;
}
.lesson h3 {
  font-size: 13px;
  margin: 8px 0 4px;
  color: #2f4a39;
}
.lesson p {
  font-size: 11px;
  line-height: 1.6;
  color: #5e6e5c;
  margin: 0 0 8px;
}
.lesson.learned {
  background: #eaf3e8;
  border-color: #cfe2c9;
}
.lesson.learned header {
  color: #2e7650;
}
.lesson.hard {
  background: #f5f0e0;
  border-color: #e6d8b0;
}
.lesson.hard header {
  color: #8d611a;
}
.lesson.costing {
  background: #f8ebe6;
  border-color: #eed5c8;
}
.lesson.costing header {
  color: #a84a36;
}
.lesson.open {
  border-style: dashed;
}
.lesson-count {
  display: flex;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 6px;
}
.lesson-count .good {
  color: #2e7650;
}
.lesson-count .bad {
  color: #a84a36;
}
.lesson-ex {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  font-size: 10px;
  line-height: 1.5;
  color: #5d6d58;
  margin-top: 3px;
}
.lesson-ex svg {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 2px;
}
.lesson-ex.good svg {
  color: #2e7650;
}
.lesson-ex.bad svg {
  color: #a84a36;
}
.lesson-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 2px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #e8efe1;
  color: #365c46;
  font-size: 10px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.lesson-chip svg {
  width: 11px;
  height: 11px;
}
.lesson-chip:hover {
  background: #dbe7d2;
}
/* Challenges */
.newgame-modes {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 640px) {
  .newgame-modes {
    grid-template-columns: 1fr;
  }
}
.challenge-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}
.challenge-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
  cursor: pointer;
  color: #40523f;
}
.challenge-option svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: #67765e;
}
.challenge-option strong {
  display: block;
  font-size: 12px;
  color: #2f4a39;
}
.challenge-option small {
  display: block;
  font-size: 10px;
  line-height: 1.55;
  color: #5e6e5c;
  margin: 3px 0;
}
.challenge-option b {
  font-size: 10px;
  color: #365c46;
}
.challenge-option.selected {
  background: #e6f0e2;
  border-color: #3f7d55;
  box-shadow: 0 0 0 1px #3f7d55 inset;
}
.season-chip.challenge {
  background: #f0e6f3;
  color: #6d4a7a;
}
.challenge-result {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 12px 0;
  background: #eaf3e8;
  border: 1px solid #cfe2c9;
}
.challenge-result.fail {
  background: #f8ebe6;
  border-color: #eed5c8;
}
.challenge-result .grade-badge svg {
  width: 22px;
  height: 22px;
}
.challenge-result + .button-row {
  margin-bottom: 12px;
}
.challenge-result strong {
  display: block;
  font-size: 16px;
  margin: 3px 0;
  color: #2f4a39;
}
.challenge-result small {
  font-size: 11px;
  color: #5e6e5c;
}
button.lesson-ex {
  background: none;
  border: 0;
  padding: 2px 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
button.lesson-ex:hover {
  text-decoration: underline;
}
.day-block.focus {
  box-shadow: 0 0 0 2px #c79a3e;
  border-radius: 12px;
}
.terms-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.terms-option {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
  color: #40523f;
  cursor: pointer;
}
.terms-option strong {
  display: block;
  font-size: 11px;
  color: #2f4a39;
}
.terms-option small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #5e6e5c;
  margin-top: 3px;
}
.terms-option.selected {
  background: #e6f0e2;
  border-color: #3f7d55;
  box-shadow: 0 0 0 1px #3f7d55 inset;
  opacity: 1;
}
.terms-option:disabled:not(.selected) {
  opacity: 0.6;
  cursor: default;
}
@media (max-width: 640px) {
  .terms-options {
    grid-template-columns: 1fr;
  }
}
.pvc {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
  margin-bottom: 6px;
}
.pvc svg {
  width: 100%;
  height: 80px;
  display: block;
}
.pvc-legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: #4f6150;
  margin-top: 4px;
}
.pvc-legend i {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}
.credit-toggle {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0 10px;
  font-size: 10px;
  line-height: 1.5;
  color: #5d6d58;
  cursor: pointer;
}
.credit-toggle input {
  margin-top: 2px;
}
.credit-toggle b {
  color: #2f4a39;
}
/* Class board */
.result-form {
  margin: 10px 0;
}
.result-form label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #4f6150;
  margin-bottom: 4px;
}
.result-form input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #d9dfcc;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.file-btn {
  cursor: pointer;
}
.class-group {
  margin-top: 14px;
}
.class-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.class-table th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.4px;
  color: #5c6754;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid #e1e7d6;
}
.class-table td {
  padding: 8px;
  border-bottom: 1px solid #eef1e6;
  vertical-align: top;
  color: #40523f;
}
.class-table td small {
  display: block;
  font-size: 10px;
  color: #5c6754;
  margin-top: 2px;
}
.class-table tr.pass td:nth-child(3) {
  color: #2e7650;
}
.class-table tr.fail td:nth-child(3) {
  color: #a84a36;
}
@media (max-width: 640px) {
  .class-table th:nth-child(6),
  .class-table td:nth-child(6),
  .class-table th:nth-child(7),
  .class-table td:nth-child(7) {
    display: none;
  }
}
/* One-page printable summary */
#print-sheet {
  display: none;
}
@media print {
  body > *:not(#print-sheet) {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  #print-sheet {
    display: block;
    font:
      11pt/1.45 Inter,
      Segoe UI,
      Arial,
      sans-serif;
    color: #1f2d27;
    padding: 0 4mm;
  }
  #print-sheet header span {
    display: block;
    color: #666;
    font-size: 9pt;
    margin-top: 2px;
  }
  #print-sheet header b {
    font-size: 9pt;
    letter-spacing: 1px;
    color: #2c614b;
  }
  #print-sheet h1 {
    font-size: 20pt;
    margin: 6px 0 8px;
  }
  #print-sheet h2 {
    font-size: 11pt;
    margin: 12px 0 4px;
    color: #2c614b;
    border-bottom: 1px solid #ccd6c4;
    padding-bottom: 2px;
  }
  #print-sheet p {
    margin: 3px 0;
  }
  .ps-nums {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
  }
  .ps-nums td {
    border: 1px solid #ccd6c4;
    padding: 6px;
    text-align: center;
    font-size: 8.5pt;
    color: #555;
  }
  .ps-nums b {
    display: block;
    font-size: 14pt;
    color: #1f2d27;
  }
  .ps-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
  }
  .ps-lessons {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
  }
  .ps-lessons td {
    border-bottom: 1px solid #e3e8dc;
    padding: 3px 4px;
  }
  .ps-line {
    height: 8mm;
    border-bottom: 1px solid #9aa892;
  }
  @page {
    size: A4;
    margin: 12mm;
  }
}
.field-risk {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8ebe6;
  border: 1px solid #eed5c8;
  margin-bottom: 6px;
}
.field-risk b {
  display: block;
  font-size: 11px;
  color: #6b3325;
}
.field-risk small {
  font-size: 10px;
  color: #7a5a4e;
}
.field-risk .btn {
  flex: none;
}
.compare {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
  margin-bottom: 6px;
}
.compare-pick {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #4f6150;
  margin-bottom: 8px;
}
.compare-pick select {
  margin-left: 6px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #d9dfcc;
  background: #fff;
  font: inherit;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.compare-table th {
  text-align: right;
  font-size: 9px;
  color: #5c6754;
  font-weight: 600;
  padding: 4px 6px;
}
.compare-table th:first-child {
  text-align: left;
}
.compare-table td {
  padding: 5px 6px;
  border-top: 1px solid #e3e8dc;
  text-align: right;
  color: #40523f;
}
.compare-table td:first-child {
  text-align: left;
}
.compare-table td.pos {
  color: #2e7650;
  font-weight: 600;
}
.compare-table td.neg {
  color: #a84a36;
  font-weight: 600;
}
.lesson-grid-wrap {
  margin-top: 8px;
}
.lesson-grid-wrap summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #365c46;
}
.table-scroll {
  overflow-x: auto;
}
.lesson-matrix th {
  font-size: 8.5px;
  white-space: nowrap;
}
.lm {
  text-align: center;
  font-weight: 700;
}
.lm.learned {
  color: #2e7650;
}
.lm.hard {
  color: #8d611a;
}
.lm.costing {
  color: #a84a36;
}
.lm.open {
  color: #a7b19e;
}
@media (max-width: 640px) {
  .dialog .button-row {
    flex-wrap: wrap;
  }
  .dialog .button-row > .btn {
    flex: 1 1 calc(50% - 6px);
  }
  .result-form .button-row input {
    flex: 1 1 100%;
  }
  .class-table td small {
    font-size: 9px;
  }
}
.journal-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #d9dfcc;
  background: #fff;
  margin-bottom: 10px;
}
.journal-search svg {
  width: 14px;
  height: 14px;
  color: #5c6754;
  flex: none;
}
.journal-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12px;
  background: transparent;
}
.journal-search span {
  font-size: 10px;
  color: #5c6754;
  white-space: nowrap;
}
.challenge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.challenge-tags i {
  font-style: normal;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e3ecdd;
  color: #365c46;
}
.debrief {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
}
.debrief summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #365c46;
}
.debrief svg {
  width: 100%;
  height: 70px;
  display: block;
  margin-top: 8px;
}
.debrief-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.6;
  color: #40523f;
}
.debrief-list span {
  font-size: 10px;
  margin-left: 4px;
  color: #5c6754;
}
.debrief-list span.pos {
  color: #2e7650;
}
.debrief-list span.neg {
  color: #a84a36;
}
.debrief-list li.reply {
  color: #5c6754;
}
.desk-help-btn {
  font-size: inherit;
  padding: 0 0 0 4px;
  white-space: nowrap;
}
.desk-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 8px 0 4px;
}
.desk-help h3 {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5c6754;
  margin: 0 0 5px;
}
.desk-help ul {
  margin: 0;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #40523f;
}
@media (max-width: 640px) {
  .desk-help {
    grid-template-columns: 1fr;
  }
}
.look-first,
.look-goal {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #40523f;
}
.look-first svg,
.look-goal svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
}
.look-first b,
.look-goal b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.look-first small {
  display: block;
  font-size: 10px;
  color: #5c6754;
  margin-top: 3px;
}
.look-first .text-button {
  display: block;
  padding: 3px 0 0;
}
.look-first.bad {
  background: #f8e3dd;
}
.look-first.bad b {
  color: #a84a36;
}
.look-first.warn {
  background: #f8efdc;
}
.look-first.warn b {
  color: #8d611a;
}
.look-first.good {
  background: #eaf3e8;
}
.look-first.good b {
  color: #2e7650;
}
.look-goal {
  background: #f0e6f3;
}
.look-goal b {
  color: #6d4a7a;
}
/* Debrief chart draws itself: the challenge replays in a second and a half, then your decisions appear. */
@keyframes debrief-draw {
  from {
    stroke-dashoffset: 1200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes debrief-mark {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.debrief svg polyline {
  stroke-dasharray: 1200;
  animation: debrief-draw 1.6s ease-out both;
}
.debrief svg line {
  animation: debrief-mark 0.4s ease-out 1.4s both;
}
.debrief-list li {
  animation: debrief-mark 0.3s ease-out both;
}
.debrief-list li:nth-child(n) {
  animation-delay: calc(1.5s + var(--i, 0) * 0.08s);
}
.motion-off .debrief svg polyline,
.motion-off .debrief svg line,
.motion-off .debrief-list li {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .debrief svg polyline,
  .debrief svg line,
  .debrief-list li {
    animation: none;
  }
}
.tip-why {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
  color: #5d6d58;
}
.tip-why summary {
  cursor: pointer;
  font-weight: 600;
  color: #365c46;
  font-size: 10px;
}
.pending-returns {
  display: block;
  margin-top: 4px;
  font-style: italic;
}
/* 30-second tour of a shift */
.tour {
  text-align: left;
  padding-top: 22px;
}
.tour h2 {
  margin: 4px 0 6px;
}
.tour .dialog-intro {
  margin: 0;
  min-height: 54px;
}
.tour-scene {
  height: 210px;
  margin: 0 0 16px;
  border-radius: 12px;
  background: #eef2e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}
.tour-desk {
  width: 100%;
  max-width: 330px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 4px 14px #243d3614;
}
.tour-desk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
}
.tour-focus {
  display: flex;
  gap: 4px;
}
.tour-focus i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #285a48;
}
.tour-focus i.spent {
  animation: tourSpend 0.5s 2.2s both;
}
.tour-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #5f6f60;
}
.tour-row small {
  color: #666f60;
}
.tour-row.pick {
  animation: tourPick 0.5s 1.2s both;
}
.tour-order {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 650;
  color: #2e7650;
  animation: fadeIn 0.4s 2.6s both;
}
.tour-order .icon {
  width: 13px;
  height: 13px;
}
.tour-chain {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
}
.tour-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  animation: tourLight 0.5s calc(0.4s + var(--k) * 0.7s) both;
}
.tour-node .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  color: #285a48;
}
.tour-node small {
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #616f62;
  text-transform: uppercase;
}
.tour-link {
  flex: 1;
  height: 2px;
  background: #d4dccb;
  position: relative;
  margin: 0 2px 16px;
}
.tour-link b {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eaae59;
  animation: tourFlow 1.4s linear infinite;
}
.tour-clock {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #616f62;
}
.tour-clock .icon {
  width: 14px;
  height: 14px;
}
.tour-clock b {
  color: #285a48;
  animation: fadeIn 0.4s 3.4s both;
}
.tour-journal {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.tour-entry {
  background: #fff;
  border-radius: 9px;
  padding: 8px 11px;
  border-left: 3px solid #285a48;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tour-entry small {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #666f60;
}
.tour-entry span {
  color: #616f62;
}
.tour-entry.back {
  border-color: #c66b4b;
  animation: tourDrop 0.5s 1.8s both;
}
.tour-entry.back span {
  color: #a9513a;
}
.tour-thread {
  height: 28px;
  width: 2px;
  margin-left: 18px;
  background: repeating-linear-gradient(#c66b4b 0 4px, transparent 4px 8px);
  transform-origin: top;
  animation: tourGrow 0.8s 0.8s both;
}
.tour-review {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 320px;
}
.tour-review .grade-badge {
  animation: tourPop 0.5s 0.3s both;
}
.tour-bars {
  flex: 1;
  display: grid;
  gap: 6px;
  font-size: 9px;
  color: #6c7a6b;
}
.tour-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #dfe6d4;
  margin-top: 3px;
  overflow: hidden;
}
.tour-bars b {
  display: block;
  height: 100%;
  width: var(--w);
  background: #5f8b56;
  transform-origin: left;
  animation: tourBar 0.7s calc(0.6s + var(--k) * 0.25s) both;
}
.tour-retail {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  justify-content: space-between;
}
.tour-retail span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: #5f6f60;
  animation: fadeIn 0.4s 1.8s both;
}
.tour-retail small {
  font-size: 8px;
  color: #666f60;
}
.tour-retail .grade-chip {
  width: 30px;
  height: 30px;
  font-size: 14px;
}
.tour-win {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: #fff;
  border-radius: 11px;
  padding: 11px 13px;
  width: 100%;
  max-width: 330px;
  box-shadow: 0 0 0 2px #eaae59;
  animation: tourPop 0.5s 0.3s both;
}
.tour-win > .icon {
  width: 26px;
  height: 26px;
  color: #eaae59;
  flex-shrink: 0;
}
.tour-win small {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #826431;
}
.tour-win b {
  display: block;
  font-size: 13px;
  margin: 1px 0 3px;
}
.tour-win span {
  font-size: 10px;
  color: #616f62;
  line-height: 1.45;
}
.tour-lessons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 330px;
}
.tour-lessons span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #666f60;
  animation: fadeIn 0.4s calc(1s + var(--k) * 0.35s) both;
}
.tour-lessons span.got {
  color: #2e7650;
  font-weight: 600;
}
.tour-lessons .icon {
  width: 12px;
  height: 12px;
}
@keyframes tourSpend {
  to {
    background: #dfe4d6;
  }
}
@keyframes tourPick {
  to {
    background: #fbf1e8;
    color: #6c5a4d;
    box-shadow: inset 0 0 0 1px #eaae59;
  }
}
@keyframes tourLight {
  from {
    opacity: 0.25;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tourFlow {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 8px);
  }
}
@keyframes tourDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tourGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes tourPop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes tourBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.motion-off .tour * {
  animation: none !important;
}
@media (max-width: 480px) {
  .tour-scene {
    height: 190px;
    padding: 10px;
  }
  .tour-node .icon {
    width: 28px;
    height: 28px;
    padding: 6px;
  }
  .tour-row {
    grid-template-columns: 60px 1fr;
  }
  .tour-row small {
    grid-column: 2;
  }
}
/* Challenge picker as a map of the chain */
.challenge-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 14px 0 10px;
  position: relative;
  align-items: start;
}
.challenge-map:before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 17px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #cbd6c2 0 6px, transparent 6px 10px);
}
.cmap-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  min-width: 0;
}
.cmap-node {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
  color: #606b65;
  transition: 0.2s;
}
.cmap-node .icon {
  width: 17px;
  height: 17px;
}
.cmap-stop small {
  font-size: 8px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #626e60;
  margin-bottom: 2px;
  text-align: center;
}
.cmap-stop.here .cmap-node {
  background: #285a48;
  border-color: #285a48;
  color: #fff;
  box-shadow: 0 0 0 4px #d8e9dc;
  animation: tourPop 0.4s both;
}
.cmap-stop.here small {
  color: #285a48;
  font-weight: 750;
}
.cmap-pin {
  font-size: 10px;
  line-height: 1.2;
  padding: 5px 6px;
  border-radius: 8px;
  background: #fbf1e8;
  border: 1px solid #efd4bf;
  color: #8a5a3c;
  width: 100%;
  max-width: 92px;
  text-align: center;
  font-weight: 600;
}
.cmap-pin:hover {
  border-color: #c66b4b;
}
.cmap-pin.selected {
  background: #285a48;
  border-color: #285a48;
  color: #fff;
}
.cmap-detail {
  cursor: default;
  margin-bottom: 4px;
}
.cmap-detail .eyebrow {
  display: block;
  font-size: 8px;
  margin-bottom: 2px;
  color: #626e60;
}
@media (max-width: 480px) {
  .challenge-map {
    gap: 2px;
  }
  .cmap-node {
    width: 30px;
    height: 30px;
  }
  .challenge-map:before {
    top: 14px;
  }
  .cmap-stop small {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .cmap-pin {
    font-size: 9px;
    padding: 5px 3px;
  }
}
/* Phone legibility: no label below 8px; the decorative caption is dropped instead of shrunk. */
@media (max-width: 760px) {
  .brand-caption {
    display: none;
  }
  .health-stat .eyebrow,
  .report-stat .eyebrow {
    font-size: 8px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .career-heading {
    min-width: 0;
    max-width: 124px;
  }
  .career-heading .eyebrow {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  .panel-header .eyebrow,
  .location-label {
    font-size: 8.5px;
  }
  .speed-buttons button,
  .time-controls .eyebrow {
    font-size: 9px;
  }
}
/* Retailer cards */
.retailer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 6px;
}
.retailer-card {
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.retailer-card header {
  display: flex;
  gap: 8px;
  align-items: center;
}
.retailer-card header div {
  flex: 1;
  min-width: 0;
}
.retailer-card strong {
  display: block;
  font-size: 12px;
  color: #2f4a39;
}
.retailer-card small {
  display: block;
  font-size: 9px;
  color: #626e60;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.retailer-card .grade-chip {
  width: 28px;
  height: 28px;
  font-size: 14px;
  flex: none;
}
.grade-chip.pending {
  background: #dfe4d6;
  color: #626e60;
}
.retailer-card.graded-A {
  border-color: #9cc7a8;
  background: #eef6ee;
}
.retailer-card.graded-D,
.retailer-card.graded-F {
  border-color: #e8c2b3;
  background: #fbf1ec;
}
.retailer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.retailer-stats span {
  font-size: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #626e60;
}
.retailer-stats b {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  color: #365c46;
  text-transform: none;
  margin-top: 1px;
}
.trust-bar {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: #dfe6d4;
  overflow: hidden;
}
.trust-bar b {
  display: block;
  height: 100%;
  background: #5f8b56;
}
.retailer-card p {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  color: #5f6f60;
}
/* Journal chapters: one line per six-shift review period */
.chapter-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef2e6;
}
.chapter-line .grade-chip {
  width: 32px;
  height: 32px;
  font-size: 15px;
  flex: none;
}
.chapter-line .grade-chip .icon {
  width: 14px;
  height: 14px;
}
.chapter-line .eyebrow {
  display: block;
  font-size: 8px;
  color: #626e60;
  margin-bottom: 3px;
}
.chapter-line p {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.45;
  color: #5f6f60;
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.chapter-line p .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}
.chapter-line p.good .icon {
  color: #c1924a;
}
.chapter-line p.bad .icon {
  color: #c66b4b;
}
.listing-tag {
  display: inline-block;
  margin-top: 3px;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #2e7650;
  background: #dff0e2;
  border-radius: 6px;
  padding: 2px 6px;
}
/* Earbuds launch checklist */
.launch-steps {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.launch-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
}
.launch-steps li.done {
  background: #eef6ee;
  border-color: #cfe3d2;
}
.launch-steps li > div {
  flex: 1;
  min-width: 0;
}
.launch-steps b {
  display: block;
  font-size: 11px;
  color: #2f4a39;
}
.launch-steps small {
  display: block;
  font-size: 9.5px;
  line-height: 1.4;
  color: #616f62;
  margin-top: 2px;
}
.step-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd6c2;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.launch-steps li.done .step-mark {
  background: #2e7650;
  border-color: #2e7650;
  color: #fff;
}
.step-mark .icon {
  width: 11px;
  height: 11px;
}
.launch-steps .text-button {
  flex: none;
  font-size: 10px;
  white-space: nowrap;
}
.partner-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.partner-line span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 12px;
  background: #e6f0e2;
  color: #2f5f45;
}
.partner-line span.bad {
  background: #fbf1ec;
  color: #a4563f;
}
.partner-line .icon {
  width: 11px;
  height: 11px;
}

.account-legal {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted, #6b7a72);
}
.account-legal a {
  color: inherit;
}
/* The reCAPTCHA notice is shown in the account dialog instead of the floating badge. */
.grecaptcha-badge {
  visibility: hidden;
}

/* Small links and toggles keep a 24px target (WCAG 2.2, 2.5.8). */
.lesson-ex,
.why > summary {
  min-height: 24px;
}
.why > summary {
  display: flex;
  align-items: center;
}

/* ---------- Welcome: say what the game is, show the loop, one clear start ---------- */
@font-face {
  font-family: 'Chakra Petch';
  src: url('../assets/chakra-petch-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('../assets/chakra-petch-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('../assets/chakra-petch-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
.welcome {
  --display: 'Chakra Petch', var(--font);
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  pointer-events: auto;
  overflow: hidden;
  font-family: var(--display);
}
.welcome-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #102a1ee8 0%, #102a1eb8 38%, transparent 64%);
}
.welcome-content {
  position: relative;
  z-index: 2;
  width: min(580px, calc(100vw - 40px));
  margin-left: 7vw;
  color: #fbf8e9;
}
.welcome-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9d8b4;
}
.welcome-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eab262;
}
.welcome-title {
  margin: 0 0 18px;
  font-size: clamp(52px, 6.4vw, 92px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.welcome-copy {
  max-width: 480px;
  margin: 0 0 26px;
  font-size: 20px;
  line-height: 1.45;
  color: #e8eedb;
}
.welcome-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.welcome-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #ffffff14;
  box-shadow: inset 0 0 0 1px #ffffff14;
  font-size: 15px;
  font-weight: 600;
  color: #eef2e2;
}
.welcome-steps .icon {
  width: 20px;
  height: 20px;
  color: #eab262;
}
.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.welcome .welcome-main {
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  background: #eab262;
  color: #26311f;
  box-shadow: 0 8px 24px #0b1f1640;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}
.welcome .welcome-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px #0b1f1655;
}
.welcome .welcome-main .icon {
  width: 18px;
  height: 18px;
}
.welcome .welcome-ghost,
.welcome #continue-btn:not([hidden]) + #start-btn {
  background: #ffffff1f;
  color: #fbf8e9;
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.welcome-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 18px;
}
.welcome-links .text-button {
  padding: 8px 0;
  min-height: 32px;
  font-family: var(--display);
  font-size: 15px;
  color: #dbe5cb;
}
/* A returning player sees Continue and New company; How it works moves to the quiet row. */
#welcome-tour-link,
.welcome-content:has(#continue-btn:not([hidden])) #welcome-tour {
  display: none;
}
.welcome-content:has(#continue-btn:not([hidden])) #welcome-tour-link {
  display: inline-flex;
}
.welcome-links .text-button:hover {
  color: #ffffff;
}
.welcome button:focus-visible,
.welcome a:focus-visible {
  outline: 2px solid #fbf8e9;
  outline-offset: 3px;
}
.welcome-privacy {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  font-size: 12px;
  color: #dbe5cb;
}
@media (prefers-reduced-motion: reduce) {
  .welcome .welcome-main {
    transition: none;
  }
}
@media (max-height: 760px) and (min-width: 761px) {
  .welcome-copy {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .welcome-steps {
    margin-bottom: 20px;
  }
  .welcome-steps li {
    padding: 10px 12px;
  }
}
@media (max-width: 760px) {
  .welcome {
    align-items: flex-end;
    overflow-y: auto;
  }
  .welcome-shade {
    background: linear-gradient(0deg, #102a1ef2 0%, #102a1ec7 55%, #102a1e40 100%);
  }
  .welcome-content {
    margin: 0 20px 56px;
  }
  .welcome-copy {
    font-size: 17px;
  }
  .welcome-steps {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .welcome-steps li {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
  }
  .welcome .welcome-main {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- Desks: controls first; explanations wait behind Tips ---------- */
.department-panel:not(.tips-on) :is(.field-hint:not(.field-data), .action-footnote, .note:not(.amber):not(.red)) {
  display: none;
}
.panel-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.tips-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #4e5f55;
  background: #eef2e6;
}
.tips-toggle .icon {
  width: 14px;
  height: 14px;
}
.tips-toggle[aria-pressed='true'] {
  background: #285a48;
  color: #fbf8e9;
}
.panel-tools .desk-help-btn {
  padding: 0;
  min-height: 28px;
}

.panel-header h2 {
  font-family: 'Chakra Petch', var(--font);
  font-weight: 700;
  letter-spacing: 0;
}

.terms-owed {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #4e5f55;
}

.class-code {
  margin: 14px 0 4px;
  font-size: 13px;
}
.class-code summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  cursor: pointer;
  color: #4e5f55;
  font-weight: 600;
}
.class-code summary .icon {
  width: 16px;
  height: 16px;
}
.class-code .field {
  margin-top: 8px;
}

.account-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef4ea;
}
.account-offer > .icon {
  width: 22px;
  height: 22px;
  color: #285a48;
  flex: none;
}
.account-offer div {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.account-offer span {
  color: #4e5f55;
  font-size: 12px;
}

/* Today's job as a chip that opens into the full card. */
.mission-card.collapsed {
  width: auto;
  max-width: 350px;
  padding: 0;
  border-radius: 999px;
}
.mission-card.collapsed .mission-more {
  display: none;
}
.mission-card:not(.collapsed) .mission-chip {
  margin: -6px -8px 10px;
}
.mission-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: #243d36;
  text-align: left;
}
.mission-chip > .icon {
  width: 16px;
  height: 16px;
  color: #285a48;
  flex: none;
}
.mission-chip > span:not(.tag) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mission-chip .chev {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
  transition: transform 0.15s ease-out;
  flex: none;
}
.mission-chip[aria-expanded='true'] .chev {
  transform: rotate(90deg);
}
.mission-chip .alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0473a;
  flex: none;
}

/* Planning: orders per shift. */
.orders-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0 6px;
  font-family: var(--font);
}
.orders-chart .axis {
  stroke: #9aa693;
  stroke-width: 1;
}
.orders-chart .grid {
  stroke: #e2e8d7;
  stroke-width: 1;
}
.orders-chart .tick {
  font-size: 10px;
  fill: #5c6b61;
}
.orders-chart .bar-sold {
  fill: #6f9a7c;
}
.orders-chart .bar-sold.last {
  fill: #285a48;
}
.orders-chart .bar-missed {
  fill: #e9b8a8;
}
.orders-chart .bar-value {
  font-size: 11px;
  font-weight: 700;
  fill: #243d36;
}
.orders-chart .forecast-line {
  stroke: #c7862e;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.orders-chart .forecast-label {
  font-size: 11px;
  font-weight: 700;
  fill: #8d611a;
}
.chart-legend .sold i {
  background: #6f9a7c;
}
.chart-legend .missed i {
  background: #e9b8a8;
}
.chart-legend .fc i {
  background: none;
  border-top: 2px dashed #c7862e;
  height: 0;
}
.chart-legend {
  font-size: 11px;
  color: #4e5f55;
  margin-bottom: 14px;
}
.chart-legend .sold i,
.chart-legend .missed i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.orders-chart .forecast-label,
.orders-chart .bar-value {
  paint-order: stroke;
  stroke: #fbfcf7;
  stroke-width: 4px;
  stroke-linejoin: round;
}
/* Icons in place of words: focus costs, supplier facts, save status. */
.cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff66;
  box-shadow: inset 0 0 0 1px #0000001a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}
.cost .icon {
  width: 12px;
  height: 12px;
}
.section-heading .cost {
  margin-left: 6px;
  color: #4e5f55;
}
.supplier-details > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.supplier-details .icon {
  width: 14px;
  height: 14px;
  color: #5d7047;
  flex: none;
}
.save-status {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7efe0;
  color: #285a48;
}
.save-status.bad {
  background: #f6dfd3;
  color: #994d36;
}
.save-status .icon {
  width: 15px;
  height: 15px;
}
.focus-block .focus-icon {
  width: 18px;
  height: 18px;
  color: #285a48;
}
.supplier-details > div strong {
  display: inline;
  margin-top: 0;
  font-size: 12px;
  color: #3e5237;
}

.report-more {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.report-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: #285a48;
}
.report-local > p {
  color: #4e5a48;
}
/* Company book: compact title; explanations wait behind Tips. */
.book-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
}
.book-title h2 {
  margin: 0;
  font-family: 'Chakra Petch', var(--font);
  font-weight: 700;
  letter-spacing: 0;
}
.book-title .book-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #285a48;
  color: #fbf8e9;
}
.book-title .book-icon .icon {
  width: 20px;
  height: 20px;
}
.book-title .tips-toggle {
  margin-left: auto;
}
.book-body:not(.tips-on)
  :is(
    .money-note,
    .muted-line,
    .dialog-intro,
    .field-hint,
    .why-chain,
    .lesson > p,
    .team-card .trust small,
    .lessons-head p
  ) {
  display: none;
}
.book-more {
  margin: 18px 0 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.book-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: #285a48;
}
.book-more > summary .icon {
  width: 16px;
  height: 16px;
}
/* Event pop-up: the price is a tag; the footnote is a small badge. */
.event-choice strong {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-choice strong > .icon:last-child {
  margin-left: 0;
}
.event-choice .price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f4e8cf;
  color: #7a5520;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.event-choice .price.free {
  background: #e3efe0;
  color: #2f6247;
}
.event-choice .price .icon {
  width: 13px;
  height: 13px;
}
.event-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: #5c6b61;
}
.event-foot .icon {
  width: 13px;
  height: 13px;
}
/* Dialogs share one header: a mark and a Chakra Petch title. */
.dialog h2 {
  font-family: 'Chakra Petch', var(--font);
  font-weight: 700;
  letter-spacing: 0;
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 40px 18px 0;
}
.dialog-head h2 {
  margin: 0;
}
.brand-mark.dialog-mark {
  transform: scale(0.9);
  flex: none;
}
.dialog-mark.icon-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #285a48;
  color: #fbf8e9;
  flex: none;
}
.dialog-mark.icon-mark .icon {
  width: 20px;
  height: 20px;
}
.howto-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7efe0;
  color: #285a48;
  flex: none;
}
.howto-icon .icon {
  width: 18px;
  height: 18px;
}
.settings-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-label .icon {
  width: 18px;
  height: 18px;
  color: #285a48;
}
.footnote .icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

/* Career: avatar header, one stats strip, the desk path, badges. */
.career-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 40px 16px 0;
}
.career-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 3px #e7efe0;
}
.career-head h2 {
  margin: 0 0 4px;
}
.career-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #285a48;
}
.career-role .icon {
  width: 15px;
  height: 15px;
}
.career-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.career-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2e6;
  font-size: 13px;
  color: #3e5237;
}
.career-stats b {
  font-size: 15px;
  color: #1f3a2e;
}
.career-stats .icon {
  width: 15px;
  height: 15px;
  color: #b77d33;
}
.career-path {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
}
.path-node {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2e6;
  color: #9aa693;
  flex: none;
}
.path-node .icon {
  width: 18px;
  height: 18px;
}
.path-node.open {
  background: #dce9d6;
  color: #285a48;
}
.path-node.here {
  background: #285a48;
  color: #fbf8e9;
  box-shadow: 0 0 0 3px #eab26266;
}
.path-link {
  flex: 1;
  min-width: 4px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c9d3bf 0 4px, transparent 4px 7px);
}
.career-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.career-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 110px;
  flex: none;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #3e5237;
}
.career-label .icon {
  width: 15px;
  height: 15px;
  color: #285a48;
}
.career-label small {
  color: #5c6b61;
  font-weight: 500;
}
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border-radius: 12px;
  background: #f3f5ec;
  font-size: 13px;
}
.skill-row > .icon {
  width: 17px;
  height: 17px;
  color: #285a48;
}
.skill-row b {
  flex: 1;
  font-weight: 650;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.badge-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  background: #f1f3ec;
  text-align: center;
  font-size: 11px;
  color: #5c6b61;
}
.badge-tile b {
  font-weight: 650;
  line-height: 1.2;
}
.badge-tile .badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e6da;
  color: #7a8575;
}
.badge-tile .badge .icon {
  width: 17px;
  height: 17px;
}
.badge-tile.got {
  background: #f6ecd6;
  color: #3e3420;
}
.badge-tile.got .badge {
  background: linear-gradient(145deg, #f2c877, #d79c3e);
  color: #3b2a0f;
  box-shadow: 0 2px 0 #b77d33;
}
.badge-progress {
  width: 70%;
  height: 4px;
  border-radius: 2px;
  background: #dfe4d6;
  overflow: hidden;
}
.badge-progress em {
  display: block;
  height: 100%;
  background: #b77d33;
}
@media (max-width: 760px) {
  .career-row {
    flex-direction: column;
    gap: 8px;
  }
  .career-label {
    width: auto;
    padding-top: 0;
  }
  .path-node {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .path-node .icon {
    width: 14px;
    height: 14px;
  }
}

.skill-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skill-text small {
  font-size: 12px;
  color: #5c6b61;
}
/* Shift report: the three checks read as one strip under the headline. */
.report-top {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-right: 36px;
}
.report-top .day-check {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-width: 0;
}
.report-top .day-check .check {
  padding: 10px 12px;
  border-radius: 12px;
}
.report-top .day-check .check > .icon {
  width: 20px;
  height: 20px;
}
.report-top .day-check b {
  font-size: 15px;
}
.report-more > summary {
  list-style: none;
}
.report-more > summary::-webkit-details-marker {
  display: none;
}
.report-more > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease-out;
}
.report-more[open] > summary::after {
  transform: rotate(-135deg) translateY(-1px);
}
@media (max-width: 760px) {
  .report-top .day-check {
    grid-template-columns: 1fr;
  }
}

/* Small facts as icon chips instead of sentences. */
.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}
.fact-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2e6;
  font-size: 13px;
  color: #3e5237;
}
.fact-chips b {
  color: #1f3a2e;
}
.fact-chips .icon {
  width: 15px;
  height: 15px;
  color: #285a48;
}
/* The open Today card: the chip already names the desk and the XP. */
.mission-card:not(.collapsed) .mission-more > .mission-row {
  display: none;
}

.dialog-mark.icon-mark.gold {
  background: linear-gradient(145deg, #f2c877, #d79c3e);
  color: #3b2a0f;
}
.dialog-head .head-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.fact-chips.small span {
  padding: 4px 9px;
  font-size: 12px;
}
.fact-chips.small .icon {
  width: 13px;
  height: 13px;
}
.account-perks {
  margin: -6px 0 16px;
}

/* Wide screens: the stats join the top bar as icon-and-number pills, giving the world 67px more room. */
@media (min-width: 1400px) {
  .game-shell {
    --hud: -67px;
  }
  .health-strip {
    top: 0;
    left: 460px;
    right: 330px;
    height: 76px;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    z-index: 11;
    pointer-events: none;
  }
  .health-strip > * {
    pointer-events: auto;
  }
  .health-stat {
    min-width: 0;
    gap: 8px;
    margin: 0;
    padding: 6px 12px 6px 8px;
    border: 0;
    border-radius: 999px;
    background: #eef2e6;
  }
  .health-stat .eyebrow {
    display: none;
  }
  .health-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fbfcf7;
  }
  .health-icon .icon {
    width: 15px;
    height: 15px;
  }
  .health-stat strong {
    font-size: 16px;
  }
  .health-stat.bad {
    background: #f6dfd3;
  }
  .health-strip .season-chip {
    margin: 0 0 0 4px;
  }
  .health-strip .save-status {
    margin-left: 2px;
  }
}
@media (min-width: 1400px) {
  .health-strip {
    box-shadow: none;
    border: 0;
    backdrop-filter: none;
  }
  .health-stat strong {
    white-space: nowrap;
  }
  .health-stat strong small {
    display: none;
  }
}
/* Phones: one-line header, stats as a scrollable row of pills, a tidy bottom bar. */
@media (max-width: 760px) {
  .brand > span:last-child {
    display: none;
  }
  .career-heading {
    min-width: 0;
    flex: 1;
  }
  .career-heading .eyebrow,
  .career-heading strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .health-strip {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
    padding: 8px 12px;
  }
  .health-strip::-webkit-scrollbar {
    display: none;
  }
  .health-stat {
    min-width: 0;
    flex: none;
    gap: 6px;
    margin: 0;
    padding: 5px 10px 5px 6px;
    border: 0;
    border-radius: 999px;
    background: #eef2e6;
  }
  .health-stat .eyebrow,
  .health-stat strong small {
    display: none;
  }
  .health-stat strong {
    font-size: 15px;
    white-space: nowrap;
  }
  .health-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fbfcf7;
  }
  .health-icon .icon {
    width: 14px;
    height: 14px;
  }
  .health-stat.bad {
    background: #f6dfd3;
  }
  .focus-dots {
    display: none;
  }
  .end-shift,
  .end-shift span {
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .health-strip .health-icon {
    display: grid;
    place-items: center;
  }
  .focus-block .focus-caption {
    display: inline;
    font-size: 13px;
    font-weight: 650;
  }
}

/* Short windows with the merged header: the top bar is 64px tall and the stats row it replaces was 58px. */
@media (min-width: 1400px) and (max-height: 770px) {
  .game-shell {
    --hud: -58px;
  }
  .health-strip {
    top: 0;
    height: 64px;
    padding: 0;
  }
}

/* Production: queue against forecast, and recent plans */
.plan-vs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.plan-vs .pv {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f1efe3;
  font-size: 10px;
  color: #5f6553;
  min-width: 0;
}
.plan-vs .pv b {
  margin-left: 2px;
  font-size: 12px;
  color: var(--ink);
}
.plan-vs .pv b.low {
  color: #955631;
}
.plan-vs .pv b.high {
  color: #7a5c14;
}
.plan-vs .pv small {
  font-size: 9px;
  color: #5d614f;
}
.plan-vs .pv-foot {
  grid-column: 1 / -1;
  order: -1;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.2px;
  color: #6f735f;
}
.plan-vs .pv-foot .icon {
  width: 11px;
  height: 11px;
}
.queue-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.queue-source .icon {
  width: 12px;
  height: 12px;
}
.queue-source .text-button {
  margin: 0 0 0 auto;
  font-size: 10px;
}
.plan-history {
  width: 100%;
  height: auto;
  display: block;
}
.plan-history .pb {
  fill: #d6ab64;
}
.plan-history .pb.speaker {
  fill: #79a28c;
}
.plan-history .pb.dock {
  fill: #979db7;
}
.plan-history .pb.earbuds {
  fill: #d08aa0;
}
.plan-history .bar-value {
  font-size: 9px;
  font-weight: 700;
  fill: #4d5446;
}
.plan-history .tick {
  font-size: 8px;
  fill: #6f735f;
}

/* Volume sliders sit between the label and the switch. */
.settings-row .range.volume {
  flex: 1;
  max-width: 150px;
  margin: 0 14px 0 auto;
}
.settings-row .range.volume:disabled {
  opacity: 0.4;
}

/* Samples sit right under the supplier cards, before the order. */
.sample-call {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff3d2;
  color: #6b5427;
  font-size: 11px;
}
.sample-call > .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sample-call b {
  display: block;
  color: #4d3c18;
}
.sample-call .btn {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.sample-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0 2px;
}
.sample-link .icon {
  width: 13px;
  height: 13px;
}

/* Settings: one card for the company file, the destructive action apart */
.company-card {
  margin-top: 20px;
  padding: 12px;
  border-radius: 14px;
  background: #f1efe3;
}
.company-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 8px;
}
.company-tiles button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #e3e6d6;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.company-tiles button:hover {
  border-color: #b9c4a9;
  background: #fbfcf7;
}
.company-tiles .icon {
  width: 18px;
  height: 18px;
  color: var(--green, #48795e);
}
.company-card .field-hint {
  margin: 0;
}
.company-card .field-hint.warn {
  color: #7d5a1c;
}
.settings-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.settings-foot .seed-note {
  margin: 0;
}
.text-button.danger-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #a3482f;
}
.text-button.danger-link .icon {
  width: 13px;
  height: 13px;
}

/* Desk header: one row, the desk's icon and name, then icon tools. */
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px 18px;
}
.panel-header h2 {
  margin: 0;
  font-size: 22px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-header .desk-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #285a48;
  color: #fbf8e9;
  flex-shrink: 0;
}
.panel-header .desk-mark .icon {
  width: 18px;
  height: 18px;
}
.panel-header .panel-tools {
  gap: 4px;
  margin: 0;
}
.panel-header .panel-tools .icon-btn {
  position: static;
}
.panel-header .tips-toggle {
  width: 34px;
  min-height: 34px;
  padding: 0;
  justify-content: center;
}
.panel-header .tips-toggle .icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 760px) {
  .panel-header {
    padding: 10px 10px 10px 14px;
  }
  .panel-header h2 {
    font-size: 19px;
  }
  .panel-header .desk-mark {
    width: 30px;
    height: 30px;
  }
}

/* Tighter supplier cards: a country tag in the supplier's colour, one line of history. */
.supplier-card {
  padding: 11px 12px;
  margin-bottom: 7px;
}
.supplier-top {
  margin-bottom: 7px;
}
.supplier-icon {
  font-family: 'Chakra Petch', var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1f2a24;
  background: var(--sup, #7b8b6b);
  border-radius: 7px;
  box-shadow: inset 0 -3px 0 #0002;
}
.supplier-card .supplier-history {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 7px;
  font-size: 9px;
}
.supplier-card .supplier-history .icon {
  width: 11px;
  height: 11px;
}

.product-tabs button .product-swatch {
  margin-right: 5px;
}
.product-tabs button.active .product-swatch,
.product-tabs button:hover .product-swatch {
  filter: saturate(1.2);
}
.plan-vs .pv {
  white-space: nowrap;
}

.welcome-links .text-button {
  padding: 8px 0;
  min-height: 32px;
  font-family: var(--display);
  font-size: 15px;
  color: #dbe5cb;
}
/* A returning player sees Continue and New company; How it works moves to the quiet row. */
#welcome-tour-link,
.welcome-content:has(#continue-btn:not([hidden])) #welcome-tour {
  display: none;
}
.welcome-content:has(#continue-btn:not([hidden])) #welcome-tour-link {
  display: inline-flex;
}
.welcome-links .text-button:hover {
  color: #ffffff;
}
.welcome button:focus-visible,
.welcome a:focus-visible {
  outline: 2px solid #fbf8e9;
  outline-offset: 3px;
}
.welcome-privacy {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  font-size: 12px;
  color: #dbe5cb;
}
@media (prefers-reduced-motion: reduce) {
  .welcome .welcome-main {
    transition: none;
  }
}
@media (max-height: 760px) and (min-width: 761px) {
  .welcome-copy {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .welcome-steps {
    margin-bottom: 20px;
  }
  .welcome-steps li {
    padding: 10px 12px;
  }
}
@media (max-width: 760px) {
  .welcome {
    align-items: flex-end;
    overflow-y: auto;
  }
  .welcome-shade {
    background: linear-gradient(0deg, #102a1ef2 0%, #102a1ec7 55%, #102a1e40 100%);
  }
  .welcome-content {
    margin: 0 20px 56px;
  }
  .welcome-copy {
    font-size: 17px;
  }
  .welcome-steps {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .welcome-steps li {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
  }
  .welcome .welcome-main {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- Desks: controls first; explanations wait behind Tips ---------- */
.department-panel:not(.tips-on) :is(.field-hint:not(.field-data), .action-footnote, .note:not(.amber):not(.red)) {
  display: none;
}
.panel-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.tips-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #4e5f55;
  background: #eef2e6;
}
.tips-toggle .icon {
  width: 14px;
  height: 14px;
}
.tips-toggle[aria-pressed='true'] {
  background: #285a48;
  color: #fbf8e9;
}
.panel-tools .desk-help-btn {
  padding: 0;
  min-height: 28px;
}

.panel-header h2 {
  font-family: 'Chakra Petch', var(--font);
  font-weight: 700;
  letter-spacing: 0;
}

.terms-owed {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #4e5f55;
}

.class-code {
  margin: 14px 0 4px;
  font-size: 13px;
}
.class-code summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  cursor: pointer;
  color: #4e5f55;
  font-weight: 600;
}
.class-code summary .icon {
  width: 16px;
  height: 16px;
}
.class-code .field {
  margin-top: 8px;
}

.account-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef4ea;
}
.account-offer > .icon {
  width: 22px;
  height: 22px;
  color: #285a48;
  flex: none;
}
.account-offer div {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.account-offer span {
  color: #4e5f55;
  font-size: 12px;
}

/* Today's job as a chip that opens into the full card. */
.mission-card.collapsed {
  width: auto;
  max-width: 350px;
  padding: 0;
  border-radius: 999px;
}
.mission-card.collapsed .mission-more {
  display: none;
}
.mission-card:not(.collapsed) .mission-chip {
  margin: -6px -8px 10px;
}
.mission-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: #243d36;
  text-align: left;
}
.mission-chip > .icon {
  width: 16px;
  height: 16px;
  color: #285a48;
  flex: none;
}
.mission-chip > span:not(.tag) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mission-chip .chev {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
  transition: transform 0.15s ease-out;
  flex: none;
}
.mission-chip[aria-expanded='true'] .chev {
  transform: rotate(90deg);
}
.mission-chip .alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0473a;
  flex: none;
}

/* Planning: orders per shift. */
.orders-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0 6px;
  font-family: var(--font);
}
.orders-chart .axis {
  stroke: #9aa693;
  stroke-width: 1;
}
.orders-chart .grid {
  stroke: #e2e8d7;
  stroke-width: 1;
}
.orders-chart .tick {
  font-size: 10px;
  fill: #5c6b61;
}
.orders-chart .bar-sold {
  fill: #6f9a7c;
}
.orders-chart .bar-sold.last {
  fill: #285a48;
}
.orders-chart .bar-missed {
  fill: #e9b8a8;
}
.orders-chart .bar-value {
  font-size: 11px;
  font-weight: 700;
  fill: #243d36;
}
.orders-chart .forecast-line {
  stroke: #c7862e;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.orders-chart .forecast-label {
  font-size: 11px;
  font-weight: 700;
  fill: #8d611a;
}
.chart-legend .sold i {
  background: #6f9a7c;
}
.chart-legend .missed i {
  background: #e9b8a8;
}
.chart-legend .fc i {
  background: none;
  border-top: 2px dashed #c7862e;
  height: 0;
}
.chart-legend {
  font-size: 11px;
  color: #4e5f55;
  margin-bottom: 14px;
}
.chart-legend .sold i,
.chart-legend .missed i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.orders-chart .forecast-label,
.orders-chart .bar-value {
  paint-order: stroke;
  stroke: #fbfcf7;
  stroke-width: 4px;
  stroke-linejoin: round;
}
/* Icons in place of words: focus costs, supplier facts, save status. */
.cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff66;
  box-shadow: inset 0 0 0 1px #0000001a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}
.cost .icon {
  width: 12px;
  height: 12px;
}
.section-heading .cost {
  margin-left: 6px;
  color: #4e5f55;
}
.supplier-details > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.supplier-details .icon {
  width: 14px;
  height: 14px;
  color: #5d7047;
  flex: none;
}
.save-status {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7efe0;
  color: #285a48;
}
.save-status.bad {
  background: #f6dfd3;
  color: #994d36;
}
.save-status .icon {
  width: 15px;
  height: 15px;
}
.focus-block .focus-icon {
  width: 18px;
  height: 18px;
  color: #285a48;
}
.supplier-details > div strong {
  display: inline;
  margin-top: 0;
  font-size: 12px;
  color: #3e5237;
}

.report-more {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.report-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: #285a48;
}
.report-local > p {
  color: #4e5a48;
}
/* Company book: compact title; explanations wait behind Tips. */
.book-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
}
.book-title h2 {
  margin: 0;
  font-family: 'Chakra Petch', var(--font);
  font-weight: 700;
  letter-spacing: 0;
}
.book-title .book-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #285a48;
  color: #fbf8e9;
}
.book-title .book-icon .icon {
  width: 20px;
  height: 20px;
}
.book-title .tips-toggle {
  margin-left: auto;
}
.book-body:not(.tips-on)
  :is(
    .money-note,
    .muted-line,
    .dialog-intro,
    .field-hint,
    .why-chain,
    .lesson > p,
    .team-card .trust small,
    .lessons-head p
  ) {
  display: none;
}
.book-more {
  margin: 18px 0 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.book-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: #285a48;
}
.book-more > summary .icon {
  width: 16px;
  height: 16px;
}
/* Event pop-up: the price is a tag; the footnote is a small badge. */
.event-choice strong {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-choice strong > .icon:last-child {
  margin-left: 0;
}
.event-choice .price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f4e8cf;
  color: #7a5520;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.event-choice .price.free {
  background: #e3efe0;
  color: #2f6247;
}
.event-choice .price .icon {
  width: 13px;
  height: 13px;
}
.event-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: #5c6b61;
}
.event-foot .icon {
  width: 13px;
  height: 13px;
}
/* Dialogs share one header: a mark and a Chakra Petch title. */
.dialog h2 {
  font-family: 'Chakra Petch', var(--font);
  font-weight: 700;
  letter-spacing: 0;
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 40px 18px 0;
}
.dialog-head h2 {
  margin: 0;
}
.brand-mark.dialog-mark {
  transform: scale(0.9);
  flex: none;
}
.dialog-mark.icon-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #285a48;
  color: #fbf8e9;
  flex: none;
}
.dialog-mark.icon-mark .icon {
  width: 20px;
  height: 20px;
}
.howto-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7efe0;
  color: #285a48;
  flex: none;
}
.howto-icon .icon {
  width: 18px;
  height: 18px;
}
.settings-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-label .icon {
  width: 18px;
  height: 18px;
  color: #285a48;
}
.footnote .icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

/* Career: avatar header, one stats strip, the desk path, badges. */
.career-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 40px 16px 0;
}
.career-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 3px #e7efe0;
}
.career-head h2 {
  margin: 0 0 4px;
}
.career-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #285a48;
}
.career-role .icon {
  width: 15px;
  height: 15px;
}
.career-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.career-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2e6;
  font-size: 13px;
  color: #3e5237;
}
.career-stats b {
  font-size: 15px;
  color: #1f3a2e;
}
.career-stats .icon {
  width: 15px;
  height: 15px;
  color: #b77d33;
}
.career-path {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
}
.path-node {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2e6;
  color: #9aa693;
  flex: none;
}
.path-node .icon {
  width: 18px;
  height: 18px;
}
.path-node.open {
  background: #dce9d6;
  color: #285a48;
}
.path-node.here {
  background: #285a48;
  color: #fbf8e9;
  box-shadow: 0 0 0 3px #eab26266;
}
.path-link {
  flex: 1;
  min-width: 4px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c9d3bf 0 4px, transparent 4px 7px);
}
.career-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.career-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 110px;
  flex: none;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #3e5237;
}
.career-label .icon {
  width: 15px;
  height: 15px;
  color: #285a48;
}
.career-label small {
  color: #5c6b61;
  font-weight: 500;
}
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border-radius: 12px;
  background: #f3f5ec;
  font-size: 13px;
}
.skill-row > .icon {
  width: 17px;
  height: 17px;
  color: #285a48;
}
.skill-row b {
  flex: 1;
  font-weight: 650;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.badge-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  background: #f1f3ec;
  text-align: center;
  font-size: 11px;
  color: #5c6b61;
}
.badge-tile b {
  font-weight: 650;
  line-height: 1.2;
}
.badge-tile .badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e6da;
  color: #7a8575;
}
.badge-tile .badge .icon {
  width: 17px;
  height: 17px;
}
.badge-tile.got {
  background: #f6ecd6;
  color: #3e3420;
}
.badge-tile.got .badge {
  background: linear-gradient(145deg, #f2c877, #d79c3e);
  color: #3b2a0f;
  box-shadow: 0 2px 0 #b77d33;
}
.badge-progress {
  width: 70%;
  height: 4px;
  border-radius: 2px;
  background: #dfe4d6;
  overflow: hidden;
}
.badge-progress em {
  display: block;
  height: 100%;
  background: #b77d33;
}
@media (max-width: 760px) {
  .career-row {
    flex-direction: column;
    gap: 8px;
  }
  .career-label {
    width: auto;
    padding-top: 0;
  }
  .path-node {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .path-node .icon {
    width: 14px;
    height: 14px;
  }
}

.skill-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skill-text small {
  font-size: 12px;
  color: #5c6b61;
}
/* Shift report: the three checks read as one strip under the headline. */
.report-top {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-right: 36px;
}
.report-top .day-check {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-width: 0;
}
.report-top .day-check .check {
  padding: 10px 12px;
  border-radius: 12px;
}
.report-top .day-check .check > .icon {
  width: 20px;
  height: 20px;
}
.report-top .day-check b {
  font-size: 15px;
}
.report-more > summary {
  list-style: none;
}
.report-more > summary::-webkit-details-marker {
  display: none;
}
.report-more > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease-out;
}
.report-more[open] > summary::after {
  transform: rotate(-135deg) translateY(-1px);
}
@media (max-width: 760px) {
  .report-top .day-check {
    grid-template-columns: 1fr;
  }
}

/* Small facts as icon chips instead of sentences. */
.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}
.fact-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2e6;
  font-size: 13px;
  color: #3e5237;
}
.fact-chips b {
  color: #1f3a2e;
}
.fact-chips .icon {
  width: 15px;
  height: 15px;
  color: #285a48;
}
/* The open Today card: the chip already names the desk and the XP. */
.mission-card:not(.collapsed) .mission-more > .mission-row {
  display: none;
}

.dialog-mark.icon-mark.gold {
  background: linear-gradient(145deg, #f2c877, #d79c3e);
  color: #3b2a0f;
}
.dialog-head .head-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.fact-chips.small span {
  padding: 4px 9px;
  font-size: 12px;
}
.fact-chips.small .icon {
  width: 13px;
  height: 13px;
}
.account-perks {
  margin: -6px 0 16px;
}

/* Wide screens: the stats join the top bar as icon-and-number pills, giving the world 67px more room. */
@media (min-width: 1400px) {
  .game-shell {
    --hud: -67px;
  }
  .health-strip {
    top: 0;
    left: 460px;
    right: 330px;
    height: 76px;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    z-index: 11;
    pointer-events: none;
  }
  .health-strip > * {
    pointer-events: auto;
  }
  .health-stat {
    min-width: 0;
    gap: 8px;
    margin: 0;
    padding: 6px 12px 6px 8px;
    border: 0;
    border-radius: 999px;
    background: #eef2e6;
  }
  .health-stat .eyebrow {
    display: none;
  }
  .health-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fbfcf7;
  }
  .health-icon .icon {
    width: 15px;
    height: 15px;
  }
  .health-stat strong {
    font-size: 16px;
  }
  .health-stat.bad {
    background: #f6dfd3;
  }
  .health-strip .season-chip {
    margin: 0 0 0 4px;
  }
  .health-strip .save-status {
    margin-left: 2px;
  }
}
@media (min-width: 1400px) {
  .health-strip {
    box-shadow: none;
    border: 0;
    backdrop-filter: none;
  }
  .health-stat strong {
    white-space: nowrap;
  }
  .health-stat strong small {
    display: none;
  }
}
/* Phones: one-line header, stats as a scrollable row of pills, a tidy bottom bar. */
@media (max-width: 760px) {
  .brand > span:last-child {
    display: none;
  }
  .career-heading {
    min-width: 0;
    flex: 1;
  }
  .career-heading .eyebrow,
  .career-heading strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .health-strip {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
    padding: 8px 12px;
  }
  .health-strip::-webkit-scrollbar {
    display: none;
  }
  .health-stat {
    min-width: 0;
    flex: none;
    gap: 6px;
    margin: 0;
    padding: 5px 10px 5px 6px;
    border: 0;
    border-radius: 999px;
    background: #eef2e6;
  }
  .health-stat .eyebrow,
  .health-stat strong small {
    display: none;
  }
  .health-stat strong {
    font-size: 15px;
    white-space: nowrap;
  }
  .health-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fbfcf7;
  }
  .health-icon .icon {
    width: 14px;
    height: 14px;
  }
  .health-stat.bad {
    background: #f6dfd3;
  }
  .focus-dots {
    display: none;
  }
  .end-shift,
  .end-shift span {
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .health-strip .health-icon {
    display: grid;
    place-items: center;
  }
  .focus-block .focus-caption {
    display: inline;
    font-size: 13px;
    font-weight: 650;
  }
}

/* Short windows with the merged header: the top bar is 64px tall and the stats row it replaces was 58px. */
@media (min-width: 1400px) and (max-height: 770px) {
  .game-shell {
    --hud: -58px;
  }
  .health-strip {
    top: 0;
    height: 64px;
    padding: 0;
  }
}

/* Production: queue against forecast, and recent plans */
.plan-vs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.plan-vs .pv {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f1efe3;
  font-size: 10px;
  color: #5f6553;
  min-width: 0;
}
.plan-vs .pv b {
  margin-left: 2px;
  font-size: 12px;
  color: var(--ink);
}
.plan-vs .pv b.low {
  color: #955631;
}
.plan-vs .pv b.high {
  color: #7a5c14;
}
.plan-vs .pv small {
  font-size: 9px;
  color: #5d614f;
}
.plan-vs .pv-foot {
  grid-column: 1 / -1;
  order: -1;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.2px;
  color: #6f735f;
}
.plan-vs .pv-foot .icon {
  width: 11px;
  height: 11px;
}
.queue-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.queue-source .icon {
  width: 12px;
  height: 12px;
}
.queue-source .text-button {
  margin: 0 0 0 auto;
  font-size: 10px;
}
.plan-history {
  width: 100%;
  height: auto;
  display: block;
}
.plan-history .pb {
  fill: #d6ab64;
}
.plan-history .pb.speaker {
  fill: #79a28c;
}
.plan-history .pb.dock {
  fill: #979db7;
}
.plan-history .pb.earbuds {
  fill: #d08aa0;
}
.plan-history .bar-value {
  font-size: 9px;
  font-weight: 700;
  fill: #4d5446;
}
.plan-history .tick {
  font-size: 8px;
  fill: #6f735f;
}

/* Volume sliders sit between the label and the switch. */
.settings-row .range.volume {
  flex: 1;
  max-width: 150px;
  margin: 0 14px 0 auto;
}
.settings-row .range.volume:disabled {
  opacity: 0.4;
}

/* Samples sit right under the supplier cards, before the order. */
.sample-call {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff3d2;
  color: #6b5427;
  font-size: 11px;
}
.sample-call > .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sample-call b {
  display: block;
  color: #4d3c18;
}
.sample-call .btn {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.sample-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0 2px;
}
.sample-link .icon {
  width: 13px;
  height: 13px;
}

/* Settings: one card for the company file, the destructive action apart */
.company-card {
  margin-top: 20px;
  padding: 12px;
  border-radius: 14px;
  background: #f1efe3;
}
.company-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 8px;
}
.company-tiles button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #e3e6d6;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.company-tiles button:hover {
  border-color: #b9c4a9;
  background: #fbfcf7;
}
.company-tiles .icon {
  width: 18px;
  height: 18px;
  color: var(--green, #48795e);
}
.company-card .field-hint {
  margin: 0;
}
.company-card .field-hint.warn {
  color: #7d5a1c;
}
.settings-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.settings-foot .seed-note {
  margin: 0;
}
.text-button.danger-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #a3482f;
}
.text-button.danger-link .icon {
  width: 13px;
  height: 13px;
}

/* Desk header: one row, the desk's icon and name, then icon tools. */
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px 18px;
}
.panel-header h2 {
  margin: 0;
  font-size: 22px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-header .desk-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #285a48;
  color: #fbf8e9;
  flex-shrink: 0;
}
.panel-header .desk-mark .icon {
  width: 18px;
  height: 18px;
}
.panel-header .panel-tools {
  gap: 4px;
  margin: 0;
}
.panel-header .panel-tools .icon-btn {
  position: static;
}
.panel-header .tips-toggle {
  width: 34px;
  min-height: 34px;
  padding: 0;
  justify-content: center;
}
.panel-header .tips-toggle .icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 760px) {
  .panel-header {
    padding: 10px 10px 10px 14px;
  }
  .panel-header h2 {
    font-size: 19px;
  }
  .panel-header .desk-mark {
    width: 30px;
    height: 30px;
  }
}

/* Tighter supplier cards: a country tag in the supplier's colour, one line of history. */
.supplier-card {
  padding: 11px 12px;
  margin-bottom: 7px;
}
.supplier-top {
  margin-bottom: 7px;
}
.supplier-icon {
  font-family: 'Chakra Petch', var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1f2a24;
  background: var(--sup, #7b8b6b);
  border-radius: 7px;
  box-shadow: inset 0 -3px 0 #0002;
}
.supplier-card .supplier-history {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 7px;
  font-size: 9px;
}
.supplier-card .supplier-history .icon {
  width: 11px;
  height: 11px;
}

.product-tabs button .product-swatch {
  margin-right: 5px;
}
.product-tabs button.active .product-swatch,
.product-tabs button:hover .product-swatch {
  filter: saturate(1.2);
}
.plan-vs .pv {
  white-space: nowrap;
}

.welcome-links .text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welcome-links .text-button .icon {
  width: 14px;
  height: 14px;
  color: #eab262;
}
.supplier-icon {
  background: color-mix(in srgb, var(--sup, #7b8b6b) 72%, #fff);
}
.supplier-location {
  color: #5f6455;
}
.supplier-price small {
  color: #5b6650;
}
.company-card .field-hint {
  color: #5f6353;
}

/* Welcome steps: one route through the chain. Four stops on a dashed line, a parcel travelling along it. */
.welcome-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0;
  max-width: 540px;
  margin: 0 -8px 30px;
  padding: 0;
}
.welcome-steps::before {
  content: '';
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 21px;
  border-top: 2px dashed #eab26266;
}
.welcome-steps::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 12.5%;
  width: 10px;
  height: 10px;
  background: #eab262;
  box-shadow: inset 0 -2px 0 #b98232;
  animation: parcel 6s steps(48) infinite;
}
@keyframes parcel {
  to {
    left: calc(87.5% - 10px);
  }
}
.welcome-steps li,
.welcome-steps li:last-child {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 25%;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #eef2e2;
}
.welcome-steps li .icon {
  width: 20px;
  height: 20px;
  padding: 11px;
  box-sizing: content-box;
  border-radius: 50%;
  background: #1b3b2e;
  box-shadow: inset 0 0 0 2px #eab262;
  color: #eab262;
}
@media (prefers-reduced-motion: reduce) {
  .welcome-steps::after {
    animation: none;
    display: none;
  }
}
@media (max-width: 760px) {
  .welcome-steps,
  .welcome-steps li,
  .welcome-steps li:last-child {
    grid-template-columns: none;
  }
  .welcome-steps li,
  .welcome-steps li:first-child,
  .welcome-steps li:last-child {
    flex-direction: column;
    padding: 0;
    font-size: 11px;
  }
}

/* First-days guide */
#guide {
  position: fixed;
  inset: 0;
  z-index: 125;
  pointer-events: none;
}
#guide.in-modal {
  z-index: 130;
}
.guide-ring {
  position: fixed;
  border: 2px solid #eab262;
  border-radius: 12px;
  box-shadow:
    0 0 0 4px #eab26240,
    0 0 24px #eab26288;
  animation: guidePulse 1.4s ease-in-out infinite;
}
@keyframes guidePulse {
  50% {
    box-shadow:
      0 0 0 9px #eab26222,
      0 0 30px #eab26266;
  }
}
.guide-arrow {
  position: fixed;
  width: 18px;
  height: 18px;
  color: #eab262;
  filter: drop-shadow(0 2px 0 #7a5418);
  transform: rotate(var(--rot, 0deg));
  animation: guideBob 0.9s ease-in-out infinite;
}
@keyframes guideBob {
  50% {
    transform: rotate(var(--rot, 0deg)) translateX(-5px);
  }
}
.guide-bubble {
  position: fixed;
  max-width: 250px;
  padding: 11px 13px 9px;
  border-radius: 12px;
  background: #253f34;
  color: #f5f3e3;
  box-shadow: 0 10px 28px #10241a55;
  pointer-events: auto;
  animation: panelIn 0.25s ease;
}
.guide-bubble p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.guide-actions .guide-skip {
  margin: 0;
  padding: 0;
  font-size: 10px;
  color: #cfd6c3;
}
.guide-actions .guide-ok {
  min-height: 26px;
  padding: 0 12px;
  background: #eab262;
  color: #2b2410;
}
@media (prefers-reduced-motion: reduce) {
  .guide-ring,
  .guide-arrow {
    animation: none;
  }
}

/* ---------- Phones: the desk is a bottom sheet (header only, half, full) ---------- */
.sheet-handle,
.sheet-min {
  display: none;
}
@media (max-width: 760px) {
  .department-panel {
    top: auto;
    bottom: 71px;
    left: 58px;
    right: 8px;
    max-height: none;
    height: 46vh;
    border-radius: 16px;
    transition: height 0.22s ease;
  }
  .department-panel.sheet-peek {
    height: 68px;
  }
  .department-panel.sheet-full {
    height: calc(100vh - 196px);
    height: calc(100dvh - 196px);
  }
  .department-panel.sheet-peek .panel-content {
    display: none;
  }
  .department-panel .panel-header {
    position: relative;
    padding-top: 20px;
    touch-action: none;
  }
  .sheet-handle {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 24px;
    padding: 0;
    background: none;
    border: 0;
    cursor: grab;
  }
  .sheet-handle i {
    display: block;
    width: 36px;
    height: 4px;
    margin: 7px auto 0;
    border-radius: 2px;
    background: #cfd6c3;
  }
  .sheet-min {
    display: grid;
  }
  .department-panel .panel-header h2 {
    font-size: 18px;
  }
  .department-panel .panel-header .desk-mark {
    width: 28px;
    height: 28px;
  }
  .department-panel .panel-tools .icon-btn,
  .department-panel .panel-header .tips-toggle {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
  .department-panel .panel-tools {
    gap: 2px;
  }

  /* Stats: five equal columns, icon over number, nothing hidden off-screen. */
  .health-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    overflow: visible;
    padding: 6px 8px;
  }
  .health-strip .season-chip,
  .health-strip .health-note {
    display: none;
  }
  .health-stat {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    border-radius: 10px;
    min-width: 0;
  }
  .health-stat > div:last-child {
    min-width: 0;
    text-align: center;
  }
  .health-stat strong {
    font-size: 13px;
    letter-spacing: -0.3px;
  }
  .health-stat .trend {
    font-size: 8px;
  }
  .health-icon {
    width: 18px;
    height: 18px;
    background: none;
  }
  .health-icon .icon {
    width: 13px;
    height: 13px;
  }

  /* The view switch already says where you are. */
  .location-label {
    display: none;
  }

  /* Touch targets: at least 32px for anything tapped often. */
  .schedule-card select,
  .schedule-card .batch-quantity {
    min-height: 34px;
  }
  .schedule-card {
    gap: 4px;
    padding: 5px 6px 5px 8px;
  }
  .schedule-card .grip {
    display: none;
  }
  .schedule-card select {
    flex: 1;
    min-width: 0;
    max-width: none;
    font-size: 12px;
  }
  .schedule-card .batch-quantity {
    width: 50px;
    font-size: 13px;
  }
  .schedule-card .line-badge,
  .schedule-card .remove-batch {
    min-width: 30px;
    min-height: 32px;
    margin-left: 0;
    padding: 0;
    font-size: 11px;
  }
  input.range {
    height: 24px;
    margin: 2px 0;
  }
  .toggle {
    height: 24px;
  }
  .credit-toggle input,
  input[type='checkbox'] {
    width: 20px;
    height: 20px;
  }
  .welcome-privacy {
    padding: 6px 4px;
  }
  .keyboard-keys {
    display: none;
  }
  .book-tabs {
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}

/* Help lives in the top bar on wide screens; phones reach it from Settings. */
.settings-help {
  display: none;
}
@media (max-width: 760px) {
  .settings-help {
    display: flex;
    margin-top: 12px;
  }
}

/* ---------- Landscape phones: one slim bar on top, one below, the world in between ---------- */
@media (max-height: 520px) and (min-width: 600px) {
  .topbar {
    height: 48px;
    padding: 0 10px;
    gap: 10px;
  }
  .topbar .brand > span:last-child,
  .career-heading {
    display: none;
  }
  .top-actions .icon-btn {
    width: 32px;
    height: 32px;
  }
  .health-strip {
    z-index: 11;
    top: 0;
    left: 54px;
    right: 250px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
  }
  .health-strip .season-chip,
  .health-strip .health-note,
  .health-stat .eyebrow,
  .health-stat strong small {
    display: none;
  }
  .health-stat {
    flex: 0 1 auto;
    min-width: 0;
    gap: 4px;
    margin: 0;
    padding: 4px 8px 4px 4px;
    border: 0;
    border-radius: 999px;
    background: #eef2e6;
  }
  .health-stat strong {
    font-size: 12px;
    white-space: nowrap;
  }
  .health-icon {
    width: 20px;
    height: 20px;
  }
  .health-icon .icon {
    width: 12px;
    height: 12px;
  }
  .world-stage {
    top: 48px;
    bottom: 52px;
  }
  .shift-bar {
    height: 52px;
    padding: 0 12px;
  }
  .world-tools {
    top: 56px;
    left: 10px;
  }
  .department-dock {
    top: 102px;
    left: 10px;
    bottom: 60px;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 4px;
    gap: 2px;
  }
  .dept-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .location-label,
  .mission-card {
    display: none;
  }
  .department-panel {
    top: 56px;
    bottom: 60px;
    right: 8px;
    width: 340px;
    max-height: none;
    height: auto;
  }
  .incident-banner,
  .panel-open .incident-banner {
    bottom: 60px;
    left: calc(50% - 170px);
  }
  .welcome-content {
    margin-top: 12px;
    margin-bottom: 12px;
  }
}

/* Small phones: the bottom bar keeps every control by tightening, not clipping. */
@media (max-width: 380px) {
  .shift-bar {
    gap: 8px;
    padding: 0 8px;
  }
  .time-controls {
    gap: 4px;
  }
  .time-track {
    width: 34px;
  }
  .speed-buttons button {
    width: 24px;
    padding: 0;
  }
  .end-shift {
    padding: 0 12px;
  }
  .end-shift .icon {
    display: none;
  }
}
/* Phone report: the three checks share one full-width row. */
@media (max-width: 760px) {
  .report-top {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0;
  }
  .report-top > div:first-child {
    padding-right: 36px;
  }
  .report-top .day-check {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .report-top .day-check .check {
    min-width: 0;
    padding: 8px;
  }
}

.department-panel.dragging {
  transition: none;
}

/* New company: the name comes first */
.company-name {
  margin: 4px 0 14px;
}
.company-name .name-row {
  display: flex;
  gap: 8px;
}
.company-name input {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Career: skills, badges, path ---------- */
.xp-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 14px 0 12px;
  font-size: 11px;
  color: #5d6552;
}
.xp-row .xp-bar {
  flex: 1 1 100%;
  height: 8px;
  border-radius: 99px;
  background: #e8ebdf;
  overflow: hidden;
}
.xp-row .xp-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e0a93a, #f0c665);
}
.xp-row .icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}
.xp-row b {
  color: var(--ink);
  margin: 0 3px;
}
.xp-row .points {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 99px;
  background: #eef0e6;
}
.xp-row .points.has {
  background: #285a48;
  color: #fbf8e9;
}
.xp-row .points.has b {
  color: #fbf8e9;
}
.career-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef0e6;
  margin-bottom: 16px;
}
.career-tabs button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  color: #56604e;
}
.career-tabs button .icon {
  width: 15px;
  height: 15px;
}
.career-tabs button small {
  font-size: 10px;
  font-weight: 600;
  color: #5b604e;
}
.career-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #20473118;
}
.career-foot {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 10.5px;
  color: #5f6553;
}
.career-foot .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Skills: three ladders */
.skill-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.skill-track {
  padding: 12px;
  border-radius: 14px;
  background: #f4f3ea;
}
.skill-track header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.skill-track header > .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #285a48;
  color: #fbf8e9;
  flex-shrink: 0;
}
.skill-track header b {
  display: block;
  font-family: 'Chakra Petch', var(--font);
  font-size: 13px;
}
.skill-track header small {
  font-size: 10px;
  color: #5f6553;
}
.track-rank {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #5f6553;
}
.skill-track ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.skill-node {
  position: relative;
  display: flex;
  gap: 9px;
  padding: 0 0 12px;
}
.skill-node:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: #d8dccd;
}
.skill-node.learned:not(:last-child)::before {
  background: #6f9a4c;
}
.node-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  color: #285a48;
  box-shadow: inset 0 0 0 2px #285a48;
}
.node-dot .icon {
  width: 13px;
  height: 13px;
}
.skill-node.learned .node-dot {
  background: #6f9a4c;
  color: #fff;
  box-shadow: none;
}
.skill-node.locked .node-dot {
  color: #8e9582;
  box-shadow: inset 0 0 0 2px #cfd4c4;
}
.skill-node.open .node-dot {
  box-shadow:
    inset 0 0 0 2px #285a48,
    0 0 0 4px #e0a93a44;
}
.node-text b {
  display: block;
  font-size: 12px;
}
.node-text small {
  display: block;
  margin: 2px 0 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #56604e;
}
.skill-node.locked .node-text b {
  color: #575d4d;
}
.node-text .btn.small {
  min-height: 28px;
  padding: 0 10px;
  font-size: 10.5px;
}

/* Badges: hexagon emblems in the rarity's colours */
.rarity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.rarity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  background: #f1f1e8;
  font-size: 10.5px;
  color: #56604e;
}
.rarity i {
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--rar);
}
.rarity b {
  color: var(--ink);
}
.common {
  --rar: #6f9a68;
  --rar2: #4d7a4a;
}
.rare {
  --rar: #5d98cf;
  --rar2: #33669a;
}
.epic {
  --rar: #a47fd8;
  --rar2: #6d49a8;
}
.legendary {
  --rar: #f1c257;
  --rar2: #c7801f;
}
.badge-group {
  margin: 16px 0 8px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5d6552;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  background: #f6f6ef;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px #2047311f;
}
.badge-card.got {
  background: #fff;
  box-shadow: 0 1px 0 #e3e6d6;
}
.badge-card b {
  font-size: 11px;
  line-height: 1.2;
}
.badge-card small {
  font-size: 9.5px;
  color: #5f6553;
}
.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
  padding: 3px;
  box-sizing: border-box;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: conic-gradient(var(--rar) var(--p), #dfe2d6 0);
}
.emblem.got {
  background: linear-gradient(160deg, var(--rar2), var(--rar));
}
.emblem-face {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #eceee5;
  color: #9aa18d;
}
.emblem.got .emblem-face {
  background: linear-gradient(160deg, #ffffff55, transparent 45%), linear-gradient(160deg, var(--rar), var(--rar2));
  color: #fff;
}
.emblem-face .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.emblem-pips {
  position: absolute;
  bottom: 9px;
  display: flex;
  gap: 3px;
}
.emblem-pips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00000026;
}
.emblem-pips i.on.l1 {
  background: #d99a5b;
}
.emblem-pips i.on.l2 {
  background: #e8edf2;
}
.emblem-pips i.on.l3 {
  background: #ffd257;
}
.emblem.big {
  width: 96px;
  height: 106px;
  padding: 4px;
}
.emblem.big .emblem-face .icon {
  width: 40px;
  height: 40px;
}
.emblem.big .emblem-pips {
  bottom: 14px;
}
.emblem.big .emblem-pips i {
  width: 9px;
  height: 9px;
}
.badge-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}
.badge-back .icon {
  transform: rotate(180deg);
  width: 14px;
  height: 14px;
}
.badge-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f3f1e6);
  box-shadow: inset 4px 0 0 var(--rar);
}
.badge-hero h3 {
  margin: 4px 0 4px;
  font-family: 'Chakra Petch', var(--font);
  font-size: 24px;
}
.badge-hero p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #4d5446;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: #eef0e6;
  font-size: 10.5px;
  font-weight: 650;
  color: #56604e;
}
.badge-status.got {
  background: #dfeccf;
  color: #3f6a2c;
}
.badge-status .icon {
  width: 12px;
  height: 12px;
}
.badge-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 11px;
  color: #56604e;
}
.badge-progress-row .bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #e8ebdf;
  overflow: hidden;
}
.badge-progress-row .bar i {
  display: block;
  height: 100%;
  background: var(--rar, #6f9a4c);
}
.badge-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.badge-levels .lvl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  background: #f3f3ea;
  font-size: 10px;
  color: #5f6553;
}
.badge-levels .lvl i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dfe2d6;
}
.badge-levels .lvl.on.l1 i {
  background: #d99a5b;
}
.badge-levels .lvl.on.l2 i {
  background: #b9c2cb;
}
.badge-levels .lvl.on.l3 i {
  background: #f0c24a;
}
.badge-levels .lvl b {
  font-size: 11px;
  color: var(--ink);
}
.check-title {
  margin: 16px 0 6px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5d6552;
}
.badge-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.badge-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f5f5ee;
  font-size: 11.5px;
  color: #4d5446;
}
.badge-checklist li .icon {
  width: 15px;
  height: 15px;
  color: #8e9582;
  flex-shrink: 0;
}
.badge-checklist li.done {
  background: #e8f1dd;
}
.badge-checklist li.done .icon {
  color: #4f8a3a;
}
.career-body .review-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 760px) {
  .skill-tracks {
    grid-template-columns: 1fr;
  }
  .badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .badge-hero {
    gap: 12px;
    padding: 12px;
  }
  .emblem.big {
    width: 76px;
    height: 84px;
  }
  .career-tabs button small {
    display: none;
  }
}

/* Wordmark: two short lines, so it fits beside the merged stats */
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: 'Chakra Petch', var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.welcome-title .amp {
  color: #eab262;
}

/* Player avatar: top bar button and the profile picker */
.topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1.5px #285a4833;
}
.avatar-pick-btn {
  position: relative;
  padding: 0;
  border-radius: 14px;
  cursor: pointer;
}
.avatar-pick-btn:hover .career-avatar {
  box-shadow: 0 0 0 2px #e0a93a;
}
.avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #285a48;
  color: #fbf8e9;
  box-shadow: 0 0 0 2px #fbfaf2;
}
.avatar-edit .icon {
  width: 11px;
  height: 11px;
}
.avatar-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1efe3;
}
.avatar-picker > span {
  flex: 1;
  font-size: 12px;
  font-weight: 650;
  color: #4d5446;
}
.avatar-picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 5px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid transparent;
  cursor: pointer;
}
.avatar-picker button.on {
  border-color: #285a48;
}
.avatar-picker canvas {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  image-rendering: pixelated;
}
.avatar-picker b {
  font-size: 11px;
}

.welcome-privacy a {
  color: inherit;
}
