/* Dialogs: settings, new company, shift report, journal, career, events, welcome, tables; core animations.
 * index.html loads the stylesheets in src/styles/ in a fixed order; later files override earlier ones. */
.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);
  }
}
