[hidden] {
  display: none !important;
}
.start-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.start-screen > div {
  max-width: 1080px;
  width: 100%;
}
.start-screen .welcome-heading {
  font-size: clamp(26px, 3vw, 42px);
  margin: 12px 0;
}
.start-screen .scenario-card {
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
  width: calc(33.33% - 14px);
  margin: 24px 10px 0 0;
  min-height: 240px;
  padding: 22px;
}
.start-screen .scenario-card button {
  margin-top: auto;
}
.compact-tabs {
  display: flex;
  gap: 5px;
  margin: 4px 0 10px;
}
.compact-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f4ec;
  padding: 7px;
  color: var(--ink);
  font-size: 12px;
}
.compact-tabs button[aria-pressed='true'] {
  background: #245e55;
  color: white;
}
.compact-title,
.compact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.compact-title h3 {
  font-size: 14px;
  margin: 0;
}
.compact-title > b,
.compact-title > span {
  font-size: 12px;
  white-space: nowrap;
}
.income {
  color: #257556;
}
.compact-job,
.compact-shop {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  margin-bottom: 7px;
  background: #fffdf8;
}
.compact-job.growth {
  border-color: #b59749;
}
.compact-bottom {
  font-size: 10px;
  margin-top: 5px;
}
.compact-bottom > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.compact-bottom .primary-button,
.compact-bottom .secondary-button {
  padding: 5px 12px;
  font-size: 12px;
  min-height: 28px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 7px 0 4px;
}
.metric {
  display: grid;
  grid-template-columns: 16px 1fr;
  font-size: 12px;
  align-items: center;
  background: #f2f3ed;
  border-radius: 5px;
  padding: 3px 4px;
}
.metric i {
  font-style: normal;
  grid-row: span 2;
  color: #4c756b;
}
.metric small {
  font-size: 9px;
  color: #64736c;
}
.metric b {
  font-size: 11px;
}
.sales-strip {
  padding: 7px 9px;
  background: #edf3ed;
  border-radius: 8px;
  margin-bottom: 7px;
}
.sales-strip > div {
  display: flex;
  gap: 9px;
  align-items: center;
}
.sales-strip select {
  font: inherit;
  font-size: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.sales-strip small {
  font-size: 10px;
  display: inline-block;
}
.sales-strip > .text-button {
  float: right;
  font-size: 10px;
}
.list-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  margin: 7px 0;
}
.list-pager button {
  padding: 3px 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
}
.compact-progress {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.compact-progress progress {
  flex: 1;
  height: 6px;
}
.compact-progress small {
  font-size: 10px;
}
.skill-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.skill-buttons button {
  font-size: 10px;
  padding: 7px 3px;
  border: 1px solid var(--line);
  background: #f0f2e9;
  border-radius: 6px;
}
.skill-buttons small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
}
.cash-table {
  font-size: 11px;
  width: 100%;
  border-collapse: collapse;
}
.cash-table th,
.cash-table td {
  padding: 11px 5px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.cash-warning {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin: 6px 0;
}
.cash-warning > strong {
  color: #b33235;
}
.compact-goal {
  font-size: 11px;
  padding: 5px 10px;
}
.compact-goal strong {
  font-size: 12px;
}
.compact-goal small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.calendar-card .section-heading {
  margin: 0;
}
.calendar-card h2 {
  font-size: 15px;
}
.calendar-card h2 small {
  font-size: 10px;
  font-weight: 400;
}
.calendar-card {
  padding: 12px;
}
.chart-zero {
  stroke: #b93e40;
  stroke-width: 2;
}
.gantt-work {
  fill: #5096af;
  opacity: 0.17;
}
.gantt-review {
  fill: #d7a744;
  opacity: 0.22;
}
.gantt-wait {
  stroke: #498575;
  stroke-dasharray: 2 2;
  opacity: 0.4;
}
.chart .gantt-label {
  font-size: 9px;
  fill: #60746e;
}
.payment-point {
  fill: #297f60;
  stroke: #fff;
  stroke-width: 1.5;
}
.payment-point.predicted {
  fill: white;
  stroke: #b17b1a;
}
.chart .payment-label {
  font-size: 8px;
  fill: #24594a;
}
.issue-button {
  border: 1px solid #dbb995;
  background: #fff1dc;
  border-radius: 5px;
  font-size: 10px;
  padding: 4px;
  margin: 2px;
}
.calendar-card .fine-print {
  font-size: 10px;
  margin: 3px 0;
}
.calendar-card .chart-legend {
  font-size: 9px;
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 1100px) and (min-height: 720px) {
  html[data-game-started='true'] body {
    overflow: hidden;
  }
  .app-shell {
    max-width: 1600px;
    height: 100dvh;
    padding: 10px 20px 6px;
    margin: auto;
    display: grid;
    grid-template-rows: 42px 68px minmax(0, 1fr) 17px;
    gap: 8px;
  }
  .masthead.compact-header {
    padding: 0;
    min-height: 0;
    margin: 0;
  }
  .brand-sign {
    font-size: 15px;
  }
  .stats-bar {
    margin: 0;
    padding: 7px 12px;
    min-height: 0;
  }
  .stat {
    padding: 0 12px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat > span {
    font-size: 10px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(470px, 1fr);
    grid-template-rows: minmax(0, 0.88fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    min-height: 0;
  }
  .office-column {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: minmax(0, 1fr) 48px;
    gap: 5px;
    min-height: 0;
  }
  .office-card {
    grid-row: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .card-topline {
    padding: 6px 10px;
  }
  .card-topline .small-label {
    display: none;
  }
  .card-topline h2 {
    font-size: 12px;
    margin: 0;
  }
  .status-chip {
    font-size: 9px;
    padding: 3px 5px;
  }
  .office-stage {
    height: auto;
    flex: 1;
    min-height: 0;
  }
  .scene-caption {
    font-size: 8px;
    bottom: 3px;
  }
  .office-column > #office-readout {
    padding: 6px;
    min-height: 0;
  }
  .office-people {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .actor-button {
    padding: 5px 6px;
    margin: 0;
    min-height: 0;
  }
  .actor-button strong {
    font-size: 11px;
  }
  .actor-button span {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .office-queue {
    padding: 3px 0;
    margin: 2px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    font-size: 9px;
  }
  .compact-goal {
    grid-column: 1/3;
    grid-row: 2;
    padding: 2px 8px;
  }
  .compact-goal > strong {
    display: inline;
  }
  .compact-goal #goal-body {
    display: inline;
    margin-left: 8px;
  }
  .calendar-card {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 9px 12px;
  }
  #forecast-summary {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .calendar-card .chart {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-height: none;
    margin: 0;
  }
  .desk-panel {
    grid-column: 2;
    grid-row: 1/3;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
  }
  .desk-header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
  }
  .desk-header .small-label {
    display: none;
  }
  .desk-header h2 {
    font-size: 14px;
    margin: 0;
  }
  .desk-header > span {
    font-size: 10px;
  }
  .desk-tabs {
    padding: 0 10px;
    gap: 5px;
  }
  .desk-tabs button {
    padding: 7px;
    font-size: 12px;
  }
  .desk-body {
    padding: 8px 12px;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .day-feedback {
    padding: 4px 12px;
    font-size: 10px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .day-feedback strong,
  .day-feedback span {
    font-size: 10px;
  }
  .day-bar {
    padding: 8px 12px;
    position: static;
    min-height: 0;
    margin: 0;
    border-top: 1px solid var(--line);
  }
  .day-bar strong {
    font-size: 12px;
  }
  .day-bar small {
    font-size: 9px;
  }
  .day-bar .primary-button {
    padding: 10px 15px;
    font-size: 13px;
  }
  .desk-footer {
    padding: 4px 12px;
    font-size: 9px;
    min-height: 0;
  }
  .page-footer {
    margin: 0;
    padding: 0;
    font-size: 9px;
    display: flex;
    justify-content: space-between;
  }
  .page-footer > span {
    display: inline;
  }
  .compact-shop .fine-print {
    font-size: 11px;
    margin: 7px 0;
  }
  .compact-list .empty {
    font-size: 12px;
    padding: 24px 12px;
  }
  .compact-job .text-button {
    font-size: 10px;
  }
  .desk-body > .fine-print {
    font-size: 10px;
    margin: 6px 0;
  }
}
@media (max-width: 1099px), (max-height: 719px) {
  .game-layout {
    display: flex;
    flex-direction: column;
  }
  .office-column,
  .calendar-card,
  .desk-panel {
    width: 100%;
  }
  .office-stage {
    height: 220px;
  }
  .start-screen .scenario-card {
    width: 100%;
    min-height: 0;
  }
  .app-shell {
    padding: 12px;
  }
  .calendar-card .chart {
    max-height: 280px;
  }
  .desk-body {
    max-height: none;
  }
  .office-people {
    display: flex;
    flex-wrap: wrap;
  }
  .office-people > * {
    flex: 1;
  }
  .calendar-card {
    order: 1;
  }
  .desk-panel {
    order: 2;
  }
}
.sales-strip > div > b {
  white-space: nowrap;
  font-size: 12px;
}
.sales-strip select {
  width: auto;
  flex: 1;
  min-width: 0;
}
.sales-strip > div > .text-button {
  white-space: nowrap;
  font-size: 11px;
}
.compact-shop h3 {
  margin: 0;
}
@media (min-width: 1100px) and (min-height: 720px) {
  .stat {
    gap: 0;
    line-height: 1.25;
  }
  .stat strong {
    line-height: 1.2;
  }
  .stat > small {
    font-size: 9px;
  }
  .day-bar {
    line-height: 1.2;
  }
  .day-bar small {
    margin-top: 3px;
  }
  .day-feedback {
    line-height: 1.3;
  }
  .sales-strip {
    line-height: 1.4;
  }
}
@media (min-width: 1100px) and (min-height: 720px) {
  .compact-job {
    padding: 7px 9px;
    line-height: 1.3;
  }
  .compact-title h3 {
    line-height: 1.3;
  }
  .compact-bottom {
    line-height: 1.3;
  }
  .metric-row {
    margin: 5px 0 3px;
  }
  .metric {
    line-height: 1.25;
  }
  .sales-strip {
    padding: 5px 8px;
  }
  .sales-strip small {
    line-height: 1.2;
  }
  .compact-tabs {
    margin-bottom: 7px;
  }
  .day-bar {
    background: var(--card);
    z-index: 1;
  }
  .cash-table th,
  .cash-table td {
    padding: 8px 5px;
  }
}
@media (min-width: 1100px) and (min-height: 720px) {
  .compact-shop {
    line-height: 1.3;
    padding: 8px 10px;
  }
  .skill-buttons {
    margin-top: 7px;
  }
  .skill-buttons button {
    padding: 6px 3px;
    line-height: 1.25;
  }
  .skill-buttons small {
    margin-top: 3px;
  }
  .actor-button {
    line-height: 1.3;
  }
  .actor-button strong,
  .actor-button span {
    line-height: 1.3;
    margin: 0;
  }
  .office-queue .text-button {
    font-size: 9px;
  }
  .issue-button {
    line-height: 1.3;
  }
}
@media (min-width: 1100px) and (min-height: 720px) {
  .compact-shop .fine-print {
    font-size: 10px;
    line-height: 1.35;
    margin: 5px 0;
  }
  .compact-shop {
    margin-bottom: 6px;
  }
  .compact-shop .compact-bottom {
    margin-top: 3px;
  }
  .cash-table {
    line-height: 1.3;
  }
  .cash-table th,
  .cash-table td {
    padding: 7px 5px;
  }
}
