/* The interface refresh: welcome, desks with controls first, icon chips, dialogs, career and report headers, merged top bar.
 * index.html loads the stylesheets in src/styles/ in a fixed order; later files override earlier ones. */
/* ---------- 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 {
  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;
}
