:root {
  color-scheme: light;
  --bg: #f5f7f2;
  --ink: #17211f;
  --muted: #61706b;
  --line: #d5ded7;
  --panel: #ffffff;
  --panel-soft: #eef5ef;
  --green: #14675d;
  --green-dark: #0b403a;
  --blue: #315f9f;
  --yellow: #f1bf46;
  --coral: #c95c45;
  --violet: #7357b8;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(31, 45, 39, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(245, 247, 242, 0.82), rgba(238, 245, 239, 0.98)),
    #f5f7f2;
  color: var(--ink);
}

body:has(.game-shell) {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: stretch;
  min-height: 280px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(20, 103, 93, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(255, 255, 255, 0.16) 100%),
    url("../assets/company-panels-v2.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-stats,
.action-row,
.totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span {
  border: 1px solid rgba(20, 103, 93, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 12px;
  color: var(--green-dark);
  font-weight: 800;
}

.hero-panel,
.company-card,
.event-panel,
.account-toolbox,
.entry-panel,
.report-grid article,
.ledger {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-panel span,
.hero-panel small,
.report-grid span,
.report-grid small {
  color: var(--muted);
}

.hero-panel strong {
  font-size: 2.2rem;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.company-card {
  display: grid;
  gap: 10px;
  min-height: 250px;
  overflow: hidden;
  padding: 0 20px 20px;
  color: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.company-card:hover,
.company-card.active {
  border-color: var(--green);
  box-shadow: 0 14px 28px rgba(20, 103, 93, 0.14);
  transform: translateY(-2px);
}

.company-image {
  width: calc(100% + 40px);
  height: 126px;
  margin: 0 -20px 6px;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.company-image.left {
  object-position: left center;
}

.company-image.center {
  object-position: center center;
}

.company-image.right {
  object-position: right center;
}

.company-card span {
  color: var(--green);
  font-weight: 850;
}

.company-card strong {
  font-size: 1.25rem;
}

.company-card small {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.company-card em {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-list i {
  border: 1px solid rgba(49, 95, 159, 0.18);
  border-radius: 999px;
  background: rgba(49, 95, 159, 0.08);
  padding: 4px 7px;
  color: var(--blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.action-row {
  margin-top: 22px;
}

.action-row.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: 8px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.primary,
.secondary,
.ghost,
.icon-button,
.account-actions button,
.amount-chip {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 850;
}

.primary {
  background: var(--green);
  color: var(--white);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  border-color: var(--green);
  background: var(--white);
  color: var(--green);
}

.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.game-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1440px, calc(100% - 24px));
  height: 100vh;
  padding: 12px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.round-score {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(20, 103, 93, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 4px 12px;
}

.round-score span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.round-score strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
}

.topbar div {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.topbar span {
  color: var(--muted);
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.progress-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-weight: 850;
}

.progress-strip b,
.progress-strip i {
  font: inherit;
}

.progress-strip i {
  font-size: 0.9rem;
}

.progress-strip .current {
  border-color: var(--blue);
  background: rgba(49, 95, 159, 0.12);
  color: var(--blue);
}

.progress-strip .done {
  border-color: var(--green);
  background: rgba(20, 103, 93, 0.12);
  color: var(--green);
}

.progress-strip .learned {
  border-color: var(--blue);
  background: rgba(49, 95, 159, 0.12);
  color: var(--blue);
}

.progress-strip .solution {
  border-color: var(--yellow);
  background: rgba(241, 191, 70, 0.18);
  color: #74520e;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
}

.event-panel,
.account-toolbox,
.entry-panel,
.ledger {
  padding: 14px;
  box-shadow: 0 10px 28px rgba(31, 45, 39, 0.08);
}

.event-panel,
.workbench,
.entry-panel,
.account-toolbox {
  min-height: 0;
}

.event-panel h1 {
  font-size: 2rem;
  line-height: 1;
}

.event-panel p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

.event-scene {
  position: relative;
  height: 132px;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid rgba(20, 103, 93, 0.18);
  border-radius: 8px;
  background: var(--panel-soft);
}

.event-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.event-scene img.left {
  object-position: left center;
}

.event-scene img.center {
  object-position: center center;
}

.event-scene img.right {
  object-position: right center;
}

.event-scene figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 6px 10px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.hint,
.vat-note,
.event-facts {
  margin-top: 8px;
  padding: 10px;
  border-radius: 8px;
}

.hint {
  border: 1px solid rgba(241, 191, 70, 0.42);
  background: rgba(241, 191, 70, 0.14);
}

.event-facts {
  border: 1px solid rgba(49, 95, 159, 0.22);
  background: rgba(49, 95, 159, 0.08);
}

.vat-note {
  border: 1px solid rgba(20, 103, 93, 0.24);
  background: rgba(20, 103, 93, 0.08);
}

.hint span,
.vat-note span,
.event-facts span {
  display: block;
  margin-bottom: 6px;
  font-weight: 850;
}

.hint p,
.vat-note p,
.event-facts p {
  margin-bottom: 0;
}

.workbench {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.entry-panel {
  order: 1;
}

.account-toolbox {
  order: 2;
  padding: 8px;
}

.account-toolbox .entry-head {
  margin-bottom: 4px;
}

.account-toolbox .eyebrow {
  display: none;
}

.account-toolbox h2 {
  font-size: 0.94rem;
}

.entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.account-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  max-height: none;
  overflow: visible;
  padding-right: 2px;
}

.account-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbf8);
  padding: 5px;
  border-left-width: 4px;
}

.account-tile:active {
  cursor: grabbing;
}

.account-asset {
  border-left-color: var(--blue);
}

.account-liability {
  border-left-color: var(--violet);
}

.account-income {
  border-left-color: var(--green);
}

.account-expense {
  border-left-color: var(--coral);
}

.account-tile div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-tile strong {
  color: var(--green-dark);
  font-size: 0.76rem;
}

.account-tile span,
.account-tile small {
  color: var(--muted);
  font-size: 0.68rem;
}

.account-tile span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-tile small {
  display: none;
}

.account-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.account-actions button {
  min-height: 20px;
  border-color: rgba(20, 103, 93, 0.22);
  background: var(--white);
  color: var(--green);
  padding: 0 4px;
  font-size: 0.66rem;
}

.balance-coach {
  display: grid;
  grid-template-columns: 118px minmax(120px, 1fr) 118px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.balance-coach div {
  display: grid;
  gap: 3px;
}

.balance-coach span,
.balance-coach p {
  color: var(--muted);
  font-size: 0.86rem;
}

.balance-coach p {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 800;
}

.balance-coach.balanced {
  border-color: rgba(20, 103, 93, 0.35);
  background: rgba(20, 103, 93, 0.1);
}

.balance-coach.unbalanced {
  border-color: rgba(201, 92, 69, 0.32);
  background: rgba(201, 92, 69, 0.08);
}

.balance-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(97, 112, 107, 0.18);
}

.balance-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green));
  transition: width 160ms ease;
}

.amount-tray {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px dashed rgba(49, 95, 159, 0.35);
  border-radius: 8px;
  background: rgba(49, 95, 159, 0.06);
  padding: 10px;
}

.amount-tray span {
  font-weight: 850;
}

.amount-tray small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.amount-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-chip {
  min-height: 34px;
  border-color: rgba(49, 95, 159, 0.28);
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 0 rgba(49, 95, 159, 0.12);
}

.drop-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drop-zone {
  min-height: 164px;
  border: 1px dashed rgba(20, 103, 93, 0.32);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.drop-zone.drag-over {
  border-color: var(--green);
  background: rgba(20, 103, 93, 0.09);
}

.drop-zone header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 850;
}

.entry-lines {
  display: grid;
  gap: 8px;
}

.empty-zone {
  min-height: 92px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
  text-align: center;
}

.entry-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 30px;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 7px;
}

.entry-line > label {
  grid-column: auto;
}

.entry-line > .icon-button {
  grid-column: 3;
  grid-row: 1;
}

.entry-line.active,
.entry-line.amount-over {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 95, 159, 0.12);
}

.entry-line div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.entry-line div strong {
  font-size: 0.9rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.entry-line div span,
.entry-line label span {
  color: var(--muted);
  font-size: 0.82rem;
}

.entry-line label {
  display: grid;
  gap: 0;
}

.entry-line label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 0 10px;
}

input:focus {
  outline: 3px solid rgba(49, 95, 159, 0.16);
  border-color: var(--blue);
}

.icon-button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: var(--line);
  background: var(--white);
  color: var(--coral);
  font-size: 1.25rem;
}

.feedback {
  min-height: 0;
  max-height: 82px;
  overflow: auto;
  margin-top: 0;
  border-radius: 8px;
  padding: 8px 10px;
}

.feedback .primary,
.feedback .secondary {
  min-height: 26px;
  padding: 0 10px;
}

.text-link {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feedback.success {
  border: 1px solid rgba(20, 103, 93, 0.35);
  background: rgba(20, 103, 93, 0.12);
}

.feedback.warning {
  border: 1px solid rgba(201, 92, 69, 0.32);
  background: rgba(201, 92, 69, 0.1);
}

.feedback h3 {
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.feedback p {
  margin-bottom: 3px;
  font-size: 0.8rem;
  line-height: 1.15;
}

.solution {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.solution span {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 8px;
  font-size: 0.86rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(23, 33, 31, 0.36);
  padding: 18px;
}

.solution-modal {
  width: min(460px, 100%);
  border: 1px solid rgba(20, 103, 93, 0.28);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 58px rgba(23, 33, 31, 0.28);
  padding: 18px;
}

.solution-modal header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.solution-modal h2 {
  font-size: 1.45rem;
}

.solution-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.solution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 104px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.solution-row span {
  color: var(--muted);
  font-weight: 800;
}

.summary-head {
  padding: 30px 0 10px;
}

.summary-head h1 {
  margin-bottom: 12px;
}

.mastery-grid,
.outcome-list {
  margin-top: 18px;
}

.mastery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mastery-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.mastery-grid span,
.mastery-grid small {
  color: var(--muted);
}

.mastery-grid strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}

.mastery-grid strong i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-soft);
  font-style: normal;
  font-size: 1.25rem;
}

.mastery-grid .first strong i {
  color: var(--green);
}

.mastery-grid .learned strong i {
  color: var(--blue);
}

.mastery-grid .solution strong i {
  color: #74520e;
}

.outcome-list {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.outcome-list h2 {
  margin-bottom: 4px;
}

.outcome-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(140px, auto);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.outcome-row span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.outcome-row em {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.outcome-row em i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-soft);
  font-style: normal;
}

.outcome-row.first em {
  color: var(--green);
}

.outcome-row.learned em {
  color: var(--blue);
}

.outcome-row.solution em {
  color: #74520e;
}

.report-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.report-grid article {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.report-grid strong {
  font-size: 2rem;
}

.ledger {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.ledger h2 {
  margin-bottom: 6px;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) 80px 110px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ledger-row span {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .workbench {
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: 1fr;
  }

  .entry-panel {
    order: 1;
  }

  .account-toolbox {
    order: 2;
  }

  .account-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: none;
  }

  .account-toolbox {
    padding: 8px;
  }

  .account-toolbox .entry-head {
    margin-bottom: 4px;
  }

  .account-toolbox .eyebrow {
    display: none;
  }

  .account-toolbox h2 {
    font-size: 0.94rem;
  }

  .account-list {
    gap: 5px;
  }

  .account-tile {
    gap: 2px;
    min-height: 46px;
    padding: 5px;
    border-left-width: 4px;
  }

  .account-tile strong {
    font-size: 0.76rem;
  }

  .account-tile span,
  .account-tile small {
    font-size: 0.68rem;
  }

  .account-tile small {
    display: none;
  }

  .account-actions {
    gap: 4px;
  }

  .account-actions button {
    min-height: 20px;
    padding: 0 4px;
    font-size: 0.66rem;
  }

  .event-scene {
    height: 108px;
  }

  .event-panel h1 {
    font-size: 1.72rem;
  }

  .event-panel p {
    font-size: 0.92rem;
    line-height: 1.38;
  }

  .hint,
  .vat-note,
  .event-facts {
    padding: 9px;
  }

  .balance-coach {
    margin-bottom: 8px;
    padding: 8px;
  }

  .amount-tray {
    grid-template-columns: 120px minmax(0, 1fr);
    margin-bottom: 8px;
    padding: 8px;
  }

  .amount-chip {
    min-height: 30px;
    padding: 0 10px;
  }

  .drop-zone {
    min-height: 164px;
  }

  .empty-zone {
    min-height: 74px;
    padding: 10px;
  }
}

@media (max-width: 760px) {
  body:has(.game-shell) {
    overflow: auto;
  }

  .game-shell {
    height: auto;
  }

  .feedback {
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .solution-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .event-panel h1 {
    font-size: 2.1rem;
  }

  .hero,
  .game-layout,
  .company-grid,
  .mastery-grid,
  .drop-board,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .outcome-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .outcome-row em {
    grid-column: 2;
    justify-self: start;
  }

  .hero {
    padding: 22px;
  }

  .topbar,
  .entry-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar div {
    justify-items: start;
  }

  .balance-coach,
  .entry-line,
  .ledger-row,
  .account-list {
    grid-template-columns: 1fr;
  }
}
