:root {
  --paper: #f5efdf;
  --white: #fffaf0;
  --ink: #173345;
  --muted: #6d786f;
  --coral: #d7694c;
  --teal: #2c8987;
  --gold: #d9ab46;
  --blue: #709eb8;
  --sage: #80977a;
  --line: #c4bba5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.065' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
button {
  transition:
    transform 0.14s,
    background 0.14s;
}
button:not(:disabled):active {
  transform: translateY(2px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2,
h3 {
  font-family: var(--serif);
}
h2 {
  font-size: 27px;
  line-height: 1.15;
}
h3 {
  font-size: 20px;
}
.masthead {
  position: relative;
  text-align: center;
  padding: 22px 25px 17px;
  max-width: 1536px;
  margin: auto;
}
.edition {
  font-size: 10px;
  letter-spacing: 2.7px;
  font-weight: bold;
}
.edition span {
  color: var(--coral);
  padding: 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.brand h1 {
  font: 900 78px/0.98 var(--serif);
  letter-spacing: -4px;
  text-shadow:
    2px 2px var(--paper),
    3px 3px var(--coral);
  margin: 9px 0 5px;
}
.flourish {
  font-size: 22px;
  color: var(--gold);
}
.strap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.strap em {
  font: italic 19px var(--serif);
}
.strap span {
  width: 58px;
  height: 1px;
  background: var(--ink);
}
.top-actions {
  position: absolute;
  right: 28px;
  top: 55px;
  display: flex;
  gap: 10px;
}
.top-actions button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
}
.top-actions button:last-child {
  border-radius: 50%;
  width: 38px;
  padding: 0;
}
#app {
  max-width: 1536px;
  margin: auto;
  padding: 0 28px;
}
.ledgerbar {
  display: flex;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
  align-items: center;
  gap: 22px;
}
.day-stamp {
  padding-right: 22px;
  border-right: 1px solid var(--line);
  min-width: 145px;
  display: grid;
}
.day-stamp strong {
  font: 700 29px var(--serif);
}
small,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: bold;
}
.day-stamp span,
.money-cell span {
  font-size: 11px;
  color: var(--muted);
}
.money-cell {
  display: grid;
  flex: 1;
  gap: 1px;
}
.money-cell strong {
  font: 700 26px var(--serif);
}
.money-cell small {
  color: var(--muted);
}
.day-actions {
  min-width: 166px;
  display: grid;
  text-align: center;
  gap: 5px;
}
.day-actions small {
  font-size: 9px;
  letter-spacing: 0.2px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  min-height: 41px;
  border: 1.5px solid var(--ink);
  border-radius: 3px 6px 4px 3px;
  font-weight: bold;
  background: var(--white);
  box-shadow: 2px 2px 0 #17334514;
  text-decoration: none;
}
.button:hover:not(:disabled) {
  background: #eae0c9;
}
.button.primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--gold);
}
.button.primary:hover:not(:disabled) {
  background: #285164;
}
.button.teal {
  background: var(--teal);
  color: white;
}
.button.danger {
  background: var(--coral);
  color: white;
}
.button.subtle {
  border-color: var(--line);
  background: transparent;
}
.button.small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}
.full {
  width: 100%;
}
#nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
#nav button {
  border: 0;
  background: transparent;
  white-space: nowrap;
  padding: 16px 0 13px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--muted);
}
#nav button.active {
  color: var(--ink);
}
#nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--coral);
  transform: rotate(-0.5deg);
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 25px;
}
.main-column {
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 31px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.city-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
.city-switch button {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  font-size: 11px;
}
.city-switch .active {
  background: var(--ink);
  color: var(--paper);
}
.paper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px 2px 5px 2px;
  box-shadow: 3px 4px 0 #17334509;
  padding: 21px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.eyebrow {
  color: var(--muted);
  margin-bottom: 7px;
}
.risk-card {
  border-top: 4px solid var(--coral);
}
.risk-card h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.risk-line {
  margin: 16px 0;
}
.risk-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.risk-label strong {
  font-family: var(--serif);
  font-size: 17px;
}
.meter {
  height: 7px;
  background: #e6deca;
  margin: 7px 0;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--coral);
  transition: width 0.4s;
}
.meter.teal span {
  background: var(--teal);
}
.meter.gold span {
  background: var(--gold);
}
.risk-line p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.45;
}
.evidence-dots {
  display: flex;
  gap: 4px;
  margin: 9px 0;
}
.evidence-dots i {
  height: 15px;
  flex: 1;
  border: 1px solid var(--ink);
  border-radius: 1px;
  transform: rotate(-2deg);
}
.evidence-dots i.filled {
  background: var(--coral);
}
.notebook {
  position: relative;
  background:
    repeating-linear-gradient(transparent, transparent 27px, #aab8b52b 28px),
    var(--white);
  border-left: 3px solid var(--gold);
}
.notebook h2 {
  margin-bottom: 15px;
  font-size: 23px;
}
.todo {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  font-size: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #c4bba550;
}
.todo:last-child {
  border: 0;
}
.todo svg {
  flex-shrink: 0;
}
.todo span {
  display: block;
}
.todo small {
  font-weight: normal;
  letter-spacing: 0;
  color: var(--muted);
  display: block;
  font-size: 11px;
}
.note-card {
  border: 0;
  background: #e8d5a450;
  transform: rotate(-1deg);
  text-align: center;
}
.note-card p {
  font: italic 17px/1.45 var(--serif);
  margin: 6px 0 12px;
}
.note-card small {
  font-size: 9px;
  color: #776947;
}
.star {
  font-size: 24px;
  color: var(--gold);
}
.map-frame {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 5px 3px 6px 2px;
  overflow: hidden;
  aspect-ratio: 1.68;
  box-shadow: 4px 4px 0 #17334515;
  background: #d9ddc7;
}
.city-art {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  user-select: none;
}
.map-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f6efdf00 55%, #18374735);
  pointer-events: none;
}
.map-badge {
  position: absolute;
  top: 16px;
  left: 17px;
  background: var(--paper);
  padding: 7px 13px;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.4px;
  box-shadow: 2px 3px 0 #17334525;
  transform: rotate(-2deg);
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 5px 8px 5px 5px;
  box-shadow: 2px 3px 0 #17334540;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
}
.map-marker:active:not(:disabled) {
  transform: translate(-50%, -46%);
}
.map-marker:hover {
  z-index: 4;
  box-shadow: 0 0 0 4px #f6efdf88;
  background: white;
}
.map-marker i {
  width: 19px;
  height: 19px;
  background: #d5cbb6;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-style: normal;
  border-radius: 50%;
  font-size: 10px;
}
.map-marker.player i {
  background: var(--teal);
  color: white;
}
.map-marker.rival i {
  background: var(--coral);
  color: white;
}
.map-marker.player {
  border-color: var(--teal);
  border-width: 2px;
}
.map-marker small {
  letter-spacing: 0;
  font-size: 9px;
  color: var(--muted);
  font-weight: normal;
}
.map-marker .pin-label {
  display: grid;
  line-height: 1.25;
}
.map-caption {
  position: absolute;
  bottom: 14px;
  left: 18px;
  color: white;
  text-shadow: 0 1px 4px var(--ink);
  font: italic 18px var(--serif);
  pointer-events: none;
}
.map-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 1px;
  font-size: 11px;
  color: var(--muted);
}
.legend-keys {
  display: flex;
  gap: 15px;
}
.legend-keys span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  border: 1px solid var(--ink);
}
.dot.rival {
  background: var(--coral);
}
.dot.none {
  background: #dbd1bb;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 22px;
}
.quick-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-align: left;
  padding: 16px 13px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.quick-card > .icon {
  width: 29px;
  height: 29px;
  color: var(--teal);
}
.quick-card b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
}
.quick-card small {
  display: block;
  letter-spacing: 0;
  font-weight: normal;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.quick-card:hover {
  border-color: var(--teal);
  background: #edf0e6;
}
.dispatch {
  border-top: 3px double var(--ink);
  padding-top: 14px;
}
.dispatch-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.dispatch-heading h3 {
  font-size: 24px;
}
.dispatch-heading small {
  color: var(--muted);
}
.headlines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}
.headline {
  font: 15px/1.4 var(--serif);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}
.headline small {
  display: block;
  font: 9px var(--sans);
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
}
.card h3 {
  margin: 5px 0;
}
.card p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 15px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.tag {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--teal);
}
.tag.coral {
  color: var(--coral);
}
.tag.gold {
  color: #9d7620;
}
.card .price {
  font: 700 24px var(--serif);
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.stat-row {
  display: flex;
  gap: 20px;
  font-size: 11px;
  margin: 12px 0;
}
.stat-row b {
  display: block;
  font: 700 19px var(--serif);
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.section-gap {
  margin-top: 28px;
  margin-bottom: 13px;
}
.empty {
  border: 1px dashed var(--line);
  padding: 28px;
  text-align: center;
  border-radius: 4px;
  color: var(--muted);
  font: italic 17px/1.5 var(--serif);
}
.table-wrap {
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th {
  font-size: 9px;
  letter-spacing: 1px;
  text-align: left;
  padding: 13px 12px;
  background: #eee4cf;
  color: var(--muted);
}
.data-table td {
  padding: 14px 12px;
  border-top: 1px solid #c4bba550;
  white-space: nowrap;
}
.data-table b {
  font-family: var(--serif);
  font-size: 17px;
}
.data-table input {
  width: 62px;
}
.input,
select,
input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  padding: 8px;
  color: var(--ink);
  max-width: 100%;
}
.inline-select {
  width: auto;
  max-width: 180px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 11px;
}
.filters button.active {
  background: var(--ink);
  color: var(--white);
}
.portrait {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  font: 700 20px var(--serif);
  box-shadow: 2px 2px 0 #17334520;
}
.portrait.teal {
  background: #91c0b4;
}
.crew-header {
  display: flex;
  gap: 13px;
  align-items: center;
}
.report-section {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.report-section h3 {
  margin-bottom: 8px;
}
.report-section p {
  font-size: 13px;
  line-height: 1.6;
  margin: 5px 0;
}
.order-item {
  border-left: 3px solid var(--teal);
  padding: 8px 10px;
  margin: 6px 0;
  background: #e4eee5;
  font-size: 12px;
}
.alert-item {
  border-left: 3px solid var(--coral);
  padding: 9px;
  background: #f2dccd;
  margin: 8px 0;
  font-size: 12px;
}
.subtle-text {
  color: var(--muted);
  font-size: 12px;
}
.cash-total {
  font: 700 44px var(--serif);
  margin: 14px 0;
}
.tip-box {
  background: #f1e4bd;
  border-left: 3px solid var(--gold);
  padding: 13px;
  font-size: 12px;
  line-height: 1.6;
  margin: 15px 0;
}
.progress-ring {
  font: 700 28px var(--serif);
  color: var(--teal);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 0;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  font: italic 13px var(--serif);
  color: var(--muted);
}
.swatches {
  display: flex;
  gap: 5px;
}
.swatches i {
  height: 16px;
  width: 18px;
  background: var(--coral);
  border-radius: 3px 5px 2px 4px;
  transform: rotate(-3deg);
}
.swatches i:nth-child(2) {
  background: var(--gold);
  transform: rotate(4deg);
}
.swatches i:nth-child(3) {
  background: var(--teal);
}
.swatches i:nth-child(4) {
  background: var(--blue);
}
.swatches i:nth-child(5) {
  background: var(--sage);
}
.quiet-link {
  border: 0;
  background: transparent;
  text-decoration: underline;
  font-size: 11px;
}
.loading {
  text-align: center;
  padding: 100px 20px;
}
.loading p {
  color: var(--muted);
  margin-top: 15px;
}
.spinner {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  color: var(--ink);
  width: min(570px, calc(100% - 24px));
  max-height: 88vh;
  padding: 35px;
  border: 2px solid var(--ink);
  border-radius: 5px 3px 7px 4px;
  background: var(--paper);
  box-shadow: 8px 8px 0 #17334530;
}
dialog::backdrop {
  background: #122a3c88;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 30px;
  margin: 8px 25px 14px 0;
}
dialog h3 {
  margin: 19px 0 8px;
}
dialog p {
  margin: 10px 0;
  color: var(--muted);
}
dialog label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  margin: 14px 0;
}
dialog .button {
  margin-top: 5px;
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 27px;
  width: 32px;
}
.choice {
  display: block;
  text-align: left;
  width: 100%;
  margin: 9px 0;
  padding: 13px;
  border: 1px solid var(--ink);
  background: var(--white);
  border-radius: 3px;
}
.choice:hover {
  background: #e6e8ce;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
  box-shadow: 3px 3px 0 #17334530;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ending {
  text-align: center;
  padding: 15px;
}
.ending .crown {
  color: var(--gold);
  font-size: 52px;
}
.loading-error {
  border: 1px solid var(--coral);
  padding: 20px;
  max-width: 650px;
  margin: 20px auto;
}
.scroll-list {
  max-height: 400px;
  overflow: auto;
}
.danger-text {
  color: var(--coral);
}
@media (min-width: 1400px) {
  .map-frame {
    aspect-ratio: 1.72;
  }
  .map-marker {
    font-size: 11px;
    padding: 6px 9px 6px 6px;
  }
  .map-marker i {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 17px;
  }
  .ledgerbar {
    gap: 15px;
  }
  .money-cell strong {
    font-size: 22px;
  }
  .worth {
    display: none;
  }
  .map-frame {
    aspect-ratio: 1.3;
  }
  .map-marker {
    font-size: 9px;
    padding: 4px;
  }
  .map-marker small {
    display: none;
  }
  #nav {
    gap: 23px;
  }
  .paper {
    padding: 17px;
  }
  .quick-card {
    padding: 12px 9px;
    gap: 7px;
  }
  .quick-card b {
    font-size: 15px;
  }
}
@media (max-width: 760px) {
  #app {
    padding: 0 14px;
  }
  .masthead {
    padding: 15px 12px;
  }
  .brand h1 {
    font-size: 60px;
  }
  .brand {
    gap: 20px;
  }
  .edition {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .top-actions {
    position: static;
    justify-content: center;
    margin-top: 13px;
  }
  .top-actions button {
    font-size: 11px;
    padding: 4px 12px;
  }
  .top-actions button:last-child {
    width: 28px;
  }
  .ledgerbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 14px 0;
  }
  .day-stamp {
    min-width: 0;
    padding: 0;
  }
  .day-stamp small {
    font-size: 8px;
  }
  .day-stamp strong {
    font-size: 25px;
  }
  .money-cell strong {
    font-size: 21px;
  }
  .money-cell small {
    font-size: 8px;
  }
  .money-cell span {
    font-size: 9px;
  }
  .day-actions {
    grid-column: 2/4;
    min-width: 0;
  }
  .day-actions .button {
    width: 100%;
  }
  #nav {
    gap: 20px;
    margin-bottom: 18px;
  }
  #nav button {
    font-size: 11px;
    padding: 14px 0;
  }
  .layout {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .note-card {
    display: none;
  }
  .risk-card {
    grid-column: 1/-1;
  }
  .risk-card h2 {
    font-size: 23px;
    margin-bottom: 10px;
  }
  #risk {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .risk-line {
    margin: 0 0 12px;
  }
  .risk-line:first-child {
    grid-column: 1/-1;
  }
  .notebook {
    grid-column: 1/-1;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .map-frame {
    aspect-ratio: 1.13;
  }
  .map-marker {
    font-size: 8px;
    gap: 3px;
  }
  .map-marker i {
    width: 16px;
    height: 16px;
  }
  .map-caption {
    font-size: 14px;
  }
  .map-badge {
    font-size: 8px;
    top: 9px;
    left: 10px;
  }
  .quick-actions {
    gap: 7px;
  }
  .quick-card {
    display: block;
  }
  .quick-card .icon {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
  }
  .quick-card small {
    font-size: 10px;
  }
  .quick-card b {
    font-size: 15px;
  }
  .map-legend {
    font-size: 9px;
  }
  .legend-keys {
    gap: 9px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .headlines {
    gap: 14px;
  }
  .headline {
    font-size: 14px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .section-heading {
    align-items: flex-start;
  }
  .city-switch button {
    padding: 6px 8px;
  }
  .data-table td,
  .data-table th {
    padding: 11px 8px;
  }
  dialog {
    padding: 25px 20px;
  }
  .stat-row {
    gap: 15px;
  }
  .sidebar {
    order: -1;
    display: block;
  }
  .sidebar .notebook {
    display: none;
  }
  .sidebar .risk-card {
    padding: 10px 14px;
    margin-bottom: 0;
  }
  .sidebar .risk-card .eyebrow,
  .sidebar .risk-card h2,
  .sidebar .risk-card .risk-line p {
    display: none;
  }
  #risk {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
  .risk-line:first-child {
    grid-column: auto;
  }
  .risk-label {
    font-size: 10px;
  }
  .risk-label strong {
    font-size: 13px;
  }
  .evidence-dots {
    margin: 6px 0;
  }
  .evidence-dots i {
    height: 7px;
  }
  .risk-line {
    margin: 0;
  }
  .risk-card #lie-low {
    margin-top: 8px;
    min-height: 30px;
    padding: 3px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .city-switch {
    align-self: flex-start;
    flex-shrink: 0;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .day-stamp strong {
    font-size: 23px;
    white-space: nowrap;
  }
  .money-cell strong {
    font-size: clamp(14px, 4.2vw, 19px);
    white-space: nowrap;
  }
  .dispatch-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .dispatch-heading small {
    text-align: right;
  }
  .risk-label strong {
    white-space: nowrap;
  }
}
/* Engine alignment: readable decisions, forecasts and progress in the existing ink palette. */
button.alert-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #17334522;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 12px 0;
  line-height: 1.45;
}
.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  font:
    14px/1.4 system-ui,
    sans-serif;
  padding: 4px 8px;
  border-radius: 5px;
  background: #1733450d;
}
.chip.gain {
  color: #176a67;
  background: #2c89871c;
}
.chip.cost,
.chip.line {
  color: #9d4738;
  background: #d7694c1c;
}
.plan-step {
  padding: 9px 0;
  border-bottom: 1px solid #17334515;
}
.plan-step small {
  display: block;
  margin: 4px 0 0 22px;
  color: #52636b;
}
.plan-step.met {
  color: #236f6d;
}
.operation-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.operation-tools > div {
  flex: 1;
  min-width: 220px;
}
.operation-tools label {
  display: block;
  margin-bottom: 10px;
}
.flow-table th {
  text-align: left;
}
.flow-big {
  font-weight: bold;
  background: #d9ab4619;
}
.front-role {
  color: #236f6d;
  font-style: italic;
}
#risk details {
  font-size: 14px;
  line-height: 1.55;
}
#risk summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 12px;
}
#business {
  max-height: 680px;
  overflow-y: auto;
}
#sheet {
  max-height: 90vh;
  overflow: auto;
}
.data-table td small {
  white-space: normal;
}
.data-table td input {
  max-width: 88px;
}
.headline-link {
  background: transparent;
  border: 0;
  border-left: 2px solid #d9ab46;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.headline-link:hover {
  background: #d9ab4612;
}
