:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263e35;
  background: #f7f8f4;
  font-synthesis: none;
  --green: #245f48;
  --muted: #6d7d73;
  --border: #e1e7df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: inherit;
}
button {
  transition: background 0.15s;
}
button:hover {
  filter: brightness(0.96);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.18;
  margin-bottom: 12px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
h3 {
  font-size: 14px;
  margin: 25px 0 8px;
}
p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
button {
  border: 0;
}
#app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  padding: 38px 22px 24px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  font-size: 43px;
  font-weight: 850;
  letter-spacing: -3px;
  padding-left: 13px;
  margin-bottom: 42px;
}
.brand span {
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -1px;
  margin-left: 4px;
}
.brand i {
  font-style: normal;
  color: #d29b54;
  font-size: 29px;
  margin-left: 8px;
}
.side-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #89958d;
  padding: 0 14px;
  margin-bottom: 18px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  text-align: left;
  padding: 14px 13px;
  margin-bottom: 7px;
  border-radius: 8px;
  font-size: 12px;
  color: #6b7970;
}
.nav span {
  font-size: 21px;
  line-height: 1;
}
.nav.active {
  background: #eaf1e9;
  color: #285b43;
  font-weight: 650;
}
.side-note {
  margin-top: auto;
  padding: 28px 12px;
}
.sun {
  display: block;
  font-size: 28px;
  color: #c39551;
  margin-bottom: 12px;
}
.side-note b {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}
.side-note p {
  font-size: 11px;
  margin: 6px 0;
}
.profile {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile b {
  font-size: 11px;
}
.profile small {
  font-size: 9px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0e9d9;
  color: #847044;
  font-size: 12px;
}
.text-button {
  background: transparent;
  color: var(--green);
  font-size: 12px;
  padding: 10px 0;
}
main {
  margin-left: 238px;
  width: calc(100% - 238px);
  padding: 0 42px;
}
header {
  height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 37px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #849087;
}
header div span {
  padding: 0 13px;
  color: #c0c9c0;
}
.pill {
  background: #edf1e7;
  border: 1px solid #dce4d5;
  border-radius: 30px;
  padding: 9px 13px;
  color: #4e6948;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #8b9a7d;
  margin-bottom: 13px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 12px;
  margin-bottom: 0;
}
.date-label {
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
}
.date-label small {
  font-size: 9px;
  margin-top: 7px;
}
.sample-banner {
  background: #eaf0e5;
  border: 1px solid #dae5d3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 7px;
  gap: 14px;
  margin-bottom: 27px;
  font-size: 11px;
  color: #54704a;
}
.sample-banner b {
  font-weight: 550;
}
.sample-banner span {
  font-size: 10px;
  color: #73836a;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 27px;
}
.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 21px 20px;
}
.metric small {
  font-size: 10px;
  margin-bottom: 12px;
}
.metric strong {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.8px;
  display: block;
  margin-bottom: 8px;
}
.metric > span {
  font-size: 9px;
  color: #859184;
}
.positive {
  color: #327758;
}
.negative {
  color: #aa584f;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(240px, 1fr);
  gap: 23px;
}
.card {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 23px;
  min-width: 0;
}
.card p {
  font-size: 12px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}
.card-heading h2 {
  font-size: 15px;
}
.card-heading p {
  font-size: 10px;
  margin: 0;
}
.ranges {
  display: flex;
  gap: 3px;
}
.ranges button {
  font-size: 9px;
  background: none;
  color: #718073;
  padding: 6px 8px;
  border-radius: 4px;
}
.ranges button.selected {
  background: #e8eee4;
  color: var(--green);
}
svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}
svg text {
  font-size: 9px;
  fill: #8e9c90;
}
.gridline {
  stroke: #edf0eb;
  stroke-width: 1;
  fill: none;
}
.chart-empty {
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #6c8976;
}
.chart-empty span {
  font-size: 45px;
  color: #b0c4ac;
}
.chart-empty b {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  margin: 12px;
}
.chart-empty p {
  font-size: 11px;
  text-align: center;
}
.chart-card > small {
  font-size: 9px;
}
.lesson-card {
  background: #ebefdf;
  border: 1px solid #dfe6cf;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 23px;
}
.tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #748563;
  background: #f2f4ec;
  border-radius: 4px;
  padding: 6px 9px;
}
.lesson-icon {
  font-size: 65px;
  color: #91a66c;
  margin: 20px 0 12px;
  text-align: center;
}
.lesson-card h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}
.lesson-card p {
  font-size: 12px;
}
.lesson-progress {
  font-size: 9px;
  color: #7d8c68;
  margin: 22px 0 18px;
}
progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  display: block;
  margin-top: 9px;
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #edf0e7;
}
progress::-webkit-progress-value {
  background: #7b9a65;
}
progress::-moz-progress-bar {
  background: #7b9a65;
}
.primary,
.secondary {
  padding: 12px 19px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: #eef2e9;
  color: var(--green);
  border: 1px solid #dbe4d7;
}
.wide {
  width: 100%;
}
.allocation {
  margin: 20px 0;
}
.allocation > div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.allocation b {
  font-weight: 500;
}
.allocation span {
  color: #7e8b7d;
}
.tip,
.info-box {
  background: #f6f7f0;
  border: 1px solid #e8ebdd;
  border-radius: 6px;
  padding: 14px;
  font-size: 11px;
  color: #748066;
  line-height: 1.7;
  margin-top: 20px;
}
.info-box p {
  margin: 8px 0 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  color: #8b978c;
  font-weight: 500;
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #eff1ec;
}
.company-link {
  background: none;
  color: #284e3c;
  text-align: left;
  padding: 0;
}
.company-link small {
  font-size: 9px;
}
.empty {
  padding: 36px 15px;
  text-align: center;
}
.empty > span {
  font-size: 32px;
}
.empty h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.empty p {
  font-size: 11px;
}
.explore-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.5fr);
  gap: 23px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f8f4;
  border: 1px solid var(--border);
  padding: 0 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.search input {
  border: 0;
  background: none;
  padding: 12px 0;
  min-width: 0;
}
.company-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  background: none;
  border-radius: 7px;
  padding: 16px 10px;
  border-bottom: 1px solid #f0f2ec;
  color: #354e40;
}
.company-row.chosen {
  background: #edf2e7;
}
.company-row b {
  font-size: 12px;
}
.company-row small {
  font-size: 9px;
}
.company-row strong {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
}
.ticker-icon {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  background: #e5ebdf;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 21px;
}
.research h2 {
  margin-top: 15px;
  font-size: 26px;
}
.muted {
  color: #8d998a;
  font-size: 15px;
  margin-left: 8px;
}
.quote {
  font-size: 30px;
  margin: 20px 0 10px;
}
.quote small {
  font-size: 10px;
}
.research > small {
  font-size: 9px;
}
form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 17px 0 8px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce4d8;
  background: #fff;
  color: #344d3b;
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  margin-top: 8px;
}
textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}
select {
  cursor: pointer;
}
input[type="range"] {
  padding: 0;
  accent-color: #3f7250;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2c6249;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-error {
  color: #a74d43 !important;
  margin-top: 12px;
}
.login-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 950px;
  gap: 26px;
}
.intro {
  margin-bottom: 30px;
}
.intro p {
  font-size: 13px;
}
.welcome-art {
  padding: 45px;
  background: #e8eedc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 23px;
}
.art-circle {
  font-size: 95px;
  background: #f4f5dc;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
}
.welcome-art h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
}
.welcome-art p {
  font-size: 12px;
  max-width: 280px;
}
.notice {
  font-size: 10px;
  color: #85917f;
  line-height: 1.8;
  max-width: 900px;
}
.lesson-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}
.lesson-steps button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 17px 10px;
  background: none;
  text-align: left;
  color: #71816b;
  font-size: 12px;
  border-radius: 6px;
}
.lesson-steps button.current {
  background: #edf2e5;
  color: #315c40;
}
.lesson-steps button span {
  border: 1px solid #d4dfc9;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.lesson-body {
  padding: 40px;
}
.lesson-body h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}
.lesson-body .info-box {
  margin: 25px 0;
}
.step-controls {
  display: flex;
  justify-content: space-between;
  margin: 35px 0 20px;
}
.journal {
  border-top: 1px solid var(--border);
  padding: 20px 0 0;
  margin-top: 20px;
}
.journal b {
  font-size: 12px;
  margin-left: 12px;
}
.journal small {
  margin: 10px 0;
}
.student-review {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
summary {
  cursor: pointer;
  font-size: 12px;
}
summary span {
  font-size: 10px;
  color: #788573;
  display: block;
  margin: 10px 0 0 18px;
}
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
  color: #8c9c77;
  font-size: 11px;
}
.prompt-grid b {
  display: block;
  color: #37523e;
  margin: 10px 0;
}
.prompt-grid p {
  font-size: 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: #9aa494;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 23px;
  background: #233f31;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px #0002;
  z-index: 10;
  font-size: 13px;
  max-width: 90vw;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding: 0 65px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 0 25px;
  }
  .sidebar {
    width: 205px;
    padding: 30px 16px;
  }
  main {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .sample-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .login-grid {
    grid-template-columns: 1fr;
  }
  .welcome-art {
    display: none;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .date-label {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  #app {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    font-size: 31px;
    margin-bottom: 12px;
    padding: 0;
  }
  .brand span {
    font-size: 20px;
  }
  .brand i {
    font-size: 22px;
  }
  .side-label,
  .side-note,
  .profile {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .nav {
    min-width: fit-content;
    width: auto;
    padding: 10px;
    font-size: 10px;
    gap: 7px;
    margin: 0;
  }
  .nav span {
    font-size: 16px;
  }
  .sidebar > .text-button {
    position: absolute;
    right: 20px;
    top: 21px;
    font-size: 10px;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 0 18px;
  }
  header {
    height: 60px;
    margin-bottom: 25px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .pill {
    font-size: 8px;
    padding: 7px 9px;
  }
  .page-heading {
    display: block;
  }
  .date-label {
    display: block;
    text-align: left;
    margin-top: 18px;
  }
  .date-label small {
    display: inline;
    margin-left: 10px;
    font-size: 8px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 17px 13px;
  }
  .metric strong {
    font-size: 22px;
  }
  .metric small {
    font-size: 9px;
  }
  .metric > span {
    font-size: 8px;
  }
  .card {
    padding: 20px 17px;
    margin-bottom: 18px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .dashboard-grid > div:last-child {
    display: block;
  }
  .lesson-card {
    padding: 22px;
  }
  .chart-empty {
    height: 175px;
  }
  .card-heading {
    flex-wrap: wrap;
  }
  .card-heading h2 {
    font-size: 14px;
  }
  .ranges button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .card-heading .ranges {
    margin-left: auto;
  }
  .sample-banner {
    font-size: 10px;
    padding: 12px;
  }
  .sample-banner span {
    font-size: 9px;
  }
  .lesson-layout {
    gap: 0;
  }
  .lesson-steps {
    display: block;
  }
  .lesson-steps button {
    font-size: 11px;
    padding: 10px;
  }
  .lesson-body {
    padding: 25px;
  }
  .prompt-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .form-row {
    gap: 10px;
  }
  .company-row {
    padding: 16px 8px;
  }
  .research h2 {
    font-size: 24px;
  }
  .login-grid {
    gap: 0;
  }
  .intro h1 {
    font-size: 36px;
  }
  footer {
    display: block;
    line-height: 1.8;
  }
  footer span {
    display: block;
  }
  .student-review summary span {
    line-height: 1.8;
  }
  .tag {
    font-size: 8px;
  }
}
.dashboard-grid > div,
.explore-grid > div,
.lesson-layout > section {
  min-width: 0;
}
@media (max-width: 1150px) {
  .dashboard-grid,
  .explore-grid,
  .lesson-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.stale-notice {
  padding: 12px 16px;
  margin: -12px 0 20px;
  background: #fbf1de;
  border: 1px solid #e9dcc1;
  border-radius: 6px;
  color: #796138;
  font-size: 12px;
}
#import-preview h3 {
  margin-top: 0;
}
#price-import input {
  margin-bottom: 18px;
}
code {
  overflow-wrap: anywhere;
  white-space: normal;
}
.start-card h2 {
  margin-top: 22px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}
.start-button {
  margin-top: 24px;
  font-size: 16px;
  padding: 15px;
}
.practice-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 14px 17px;
  border: 1px solid #dce6d6;
  border-radius: 7px;
  background: #f0f4ea;
  font-size: 12px;
  color: #526b48;
}
.practice-notice button {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .practice-notice {
    align-items: stretch;
    flex-direction: column;
  }
  .start-card h2 {
    font-size: 27px;
  }
}
/* Child-friendly explorer and visual lessons. */
#practice-balance,
#balance {
  font-size: 26px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.bubble-window h2 {
  margin-top: 12px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.bubble-tools {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.bubble-tools label {
  font-size: 12px;
  font-weight: 600;
}
.bubble-count {
  margin: 16px 0;
  font-size: 12px !important;
}
.bubble-scroll {
  max-height: 620px;
  overflow: auto;
  padding: 3px 10px 3px 3px;
  overscroll-behavior: contain;
}
.bubble-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.bubble-group {
  --bubble: #e0ebdf;
  --ink: #3d624b;
  background: #f8faf5;
  border: 1px solid #e5eadf;
  border-radius: 15px;
  padding: 15px;
  min-width: 0;
}
.sector-tech {
  --bubble: #d9e9f3;
  --ink: #42657c;
}
.sector-health {
  --bubble: #f1dedd;
  --ink: #8a5261;
}
.sector-finance {
  --bubble: #dcebdc;
  --ink: #406b48;
}
.sector-shopping {
  --bubble: #efe0c9;
  --ink: #8c6542;
}
.sector-staples {
  --bubble: #ececc8;
  --ink: #6e733f;
}
.sector-industry {
  --bubble: #dce4ed;
  --ink: #556b86;
}
.sector-energy {
  --bubble: #f5e4ba;
  --ink: #8d7035;
}
.sector-utilities {
  --bubble: #d9e9e4;
  --ink: #446e65;
}
.sector-property {
  --bubble: #e5dcf0;
  --ink: #715a89;
}
.sector-materials {
  --bubble: #ebdfd5;
  --ink: #836954;
}
.sector-media {
  --bubble: #eddaea;
  --ink: #8a5a80;
}
.bubble-group h3 {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.sector-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.bubble-pack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ticker-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--bubble);
  color: var(--ink);
  border: 2px solid transparent;
  gap: 5px;
  padding: 7px;
  flex-shrink: 0;
}
.ticker-bubble:hover,
.ticker-bubble:focus-visible {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.ticker-bubble strong {
  font-size: 14px;
  letter-spacing: 0.2px;
}
.ticker-bubble span {
  font-size: 10px;
  max-width: 61px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bubble-window > small {
  margin-top: 17px;
}
.company-dialog {
  border: 1px solid #d7e1d4;
  border-radius: 20px;
  padding: 27px;
  max-width: 420px;
  width: calc(100vw - 30px);
  max-height: 90dvh;
  overflow: auto;
  color: #304b3c;
  background: #fffdf7;
}
.company-dialog::backdrop {
  background: #243b30a8;
  backdrop-filter: blur(3px);
}
.dialog-close {
  display: block;
  margin-left: auto;
}
.company-dialog > .kid-picture {
  margin: 0 auto 16px;
  max-width: 150px;
  height: 120px;
}
.company-dialog h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  margin: 13px 0 20px;
}
.company-dialog .wide {
  margin-top: 12px;
}
.company-dialog > small {
  margin-top: 15px;
}
.kid-clues {
  display: grid;
  gap: 12px;
}
.kid-clues > div {
  padding: 13px 15px;
  background: #f1f5ed;
  border-radius: 10px;
}
.kid-clues h3 {
  margin: 0 0 4px;
  font-size: 12px;
}
.kid-clues p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: #64785f;
}
.kid-picture {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 150px;
}
.trade-intro {
  display: flex;
  align-items: center;
  gap: 25px;
}
.trade-intro .kid-picture {
  max-width: 110px;
  height: 105px;
}
.trade-intro strong {
  font-size: 28px;
}
.trade-intro summary {
  font-size: 11px;
  margin-top: 10px;
}
.simple-order {
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 5px;
}
.simple-trade h2 {
  font-size: 26px;
  margin-top: 10px;
}
.simple-trade {
  scroll-margin-top: 20px;
}
.journey-options {
  display: flex;
  gap: 15px;
}
.journey-options label {
  font-size: 11px;
  min-width: 140px;
}
.journey-options select {
  font-size: 12px;
}
.journey-card h2 {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  margin-top: 12px;
}
.journey-card .card-heading > div > p {
  font-size: 13px;
}
.journey-total {
  text-align: center;
  margin: 18px 0 0;
}
.journey-total > span {
  font-size: 14px;
  color: #71826a;
}
.journey-total > strong {
  display: block;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -1.8px;
  font-weight: 550;
  margin: 9px 0;
  font-variant-numeric: tabular-nums;
}
.journey-total > p {
  font-size: 15px;
  margin: 0;
}
.journey-total > .positive {
  color: #327758;
}
.journey-total > .negative {
  color: #aa584f;
}
.journey-chart {
  max-height: 270px;
  display: block;
  margin: 10px auto 20px;
}
.timeline-label {
  font-size: 14px;
  font-weight: 650;
}
.time-stops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.time-stop {
  padding: 13px 9px;
  min-height: 46px;
  border-radius: 10px;
  background: #edf2e7;
  border: 1px solid #dce5d5;
  color: #4b6843;
  font-size: 13px;
}
.time-stop.selected {
  background: #2b684d;
  color: white;
  border-color: #2b684d;
}
.journey-holdings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0 28px;
}
.journey-holdings > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  background: #f4f6ef;
  border-radius: 9px;
}
.journey-holdings b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.journey-holdings span {
  font-size: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.journey-holdings small {
  font-size: 10px;
}
.journey-actions {
  display: flex;
  gap: 12px;
  margin: 0 0 25px;
}
.kid-lesson {
  padding: 30px;
}
.kid-lesson > p {
  font-size: 15px;
  line-height: 1.5;
}
.kid-lesson > .primary {
  margin-top: 25px;
}
.bakery-ownership {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: #f9f2e1;
  border-radius: 17px;
  padding: 22px;
  margin-top: 22px;
}
.bakery-ownership > .kid-picture {
  max-width: 170px;
}
.bakery-ownership > div {
  flex: 1;
  max-width: 240px;
}
.bakery-ownership strong {
  font-size: 13px;
  display: block;
  text-align: center;
}
.ownership-grid {
  max-width: 200px;
  margin: 15px auto;
}
.bakery-ownership p {
  font-size: 12px;
  text-align: center;
  margin-bottom: 0;
}
.gold-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #dca848;
  border-radius: 2px;
  margin-right: 5px;
}
.detective-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0 15px;
}
.product-clue {
  padding: 14px 8px;
  border-radius: 13px;
  background: #eef3e7;
  color: #466342;
  border: 2px solid transparent;
}
.product-clue[aria-pressed="true"] {
  border-color: #66875e;
}
.product-clue > .kid-picture {
  height: 110px;
}
.product-clue span {
  font-size: 11px;
}
.clue-answer {
  padding: 15px;
  background: #fff2d4;
  border-radius: 9px;
  font-size: 14px;
  color: #7f663d;
  min-height: 50px;
}
.thinking-helper {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px 15px;
  background: #f5f1e7;
  border-radius: 17px;
  margin: 25px 0;
}
.thinking-helper > .kid-picture {
  width: 47%;
  height: 180px;
}
.thinking-helper > div {
  flex: 1;
}
.thinking-helper span {
  font-size: 13px;
  color: #847154;
}
.thinking-questions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.thinking-questions b {
  font-size: 12px;
  background: #fffdf7;
  border-radius: 9px;
  padding: 12px;
  font-weight: 550;
}
.thinking-helper b {
  font-size: 14px;
}
.visual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 25px 0;
}
.visual-flow .kid-picture {
  max-width: 170px;
  height: 150px;
}
.flow-arrow {
  font-size: 35px;
  color: #9ba97c;
}
.visual-caption {
  font-size: 15px !important;
  text-align: center;
}
.mini-time {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  margin: 25px 0;
  background: #eaf1e4;
  border-radius: 14px;
}
.mini-time span {
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  background: #fff;
  border-radius: 50px;
  white-space: nowrap;
}
.mini-time i {
  height: 5px;
  min-width: 15px;
  background: #8ba87a;
  flex: 1;
  max-width: 55px;
}
.teaching-notes {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  font-size: 11px;
}
.teaching-notes p {
  margin: 12px 0 0;
  font-size: 12px;
}
@media (max-width: 1150px) {
  .bubble-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey-card > .card-heading {
    flex-direction: column;
  }
  .journey-options {
    width: 100%;
  }
  .journey-options label {
    flex: 1;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .bubble-groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .bubble-scroll {
    max-height: 530px;
    padding-right: 5px;
  }
  .bubble-group {
    padding: 16px 9px;
  }
  .bubble-pack {
    gap: 9px;
  }
  .ticker-bubble {
    width: 72px;
    height: 72px;
  }
  .bubble-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bubble-window h2 {
    font-size: 25px;
  }
  .time-stops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .time-stop {
    font-size: 12px;
  }
  .journey-holdings {
    grid-template-columns: minmax(0, 1fr);
  }
  .journey-holdings > div {
    padding: 13px;
  }
  .journey-holdings span {
    font-size: 18px;
  }
  .journey-card h2 {
    font-size: 29px;
  }
  .journey-actions {
    flex-wrap: wrap;
  }
  .bakery-ownership {
    flex-direction: column;
    gap: 5px;
    padding: 20px 12px;
  }
  .bakery-ownership > .kid-picture {
    height: 110px;
    max-width: 145px;
  }
  .ownership-grid {
    width: 190px;
  }
  .detective-products {
    gap: 7px;
  }
  .product-clue {
    padding: 13px 4px;
  }
  .product-clue > .kid-picture {
    height: 75px;
  }
  .product-clue span {
    font-size: 9px;
  }
  .thinking-helper {
    gap: 12px;
    padding: 15px 8px;
  }
  .thinking-helper > .kid-picture {
    height: 150px;
    width: 45%;
  }
  .thinking-questions b {
    font-size: 11px;
    padding: 10px 8px;
  }
  .kid-lesson {
    padding: 24px 17px;
  }
  .visual-flow .kid-picture {
    max-width: 120px;
    height: 115px;
  }
  .mini-time span {
    font-size: 11px;
    padding: 10px;
  }
  .simple-trade .trade-intro {
    gap: 15px;
  }
  .trade-intro .kid-picture {
    max-width: 85px;
  }
}
.lesson-steps button b {
  font-size: 12px;
  font-weight: 500;
}
.date-label > .text-button {
  display: block;
  margin-left: auto;
}
.bubble-scroll::-webkit-scrollbar {
  width: 8px;
}
.bubble-scroll::-webkit-scrollbar-thumb {
  background: #cad8c3;
  border-radius: 8px;
}
@media (max-width: 700px) {
  .lesson-steps {
    display: flex;
    gap: 5px;
    padding: 12px;
    overflow: auto;
    justify-content: space-between;
  }
  .lesson-steps button {
    padding: 5px;
    gap: 0;
    justify-content: center;
    min-width: 34px;
    width: auto;
  }
  .lesson-steps button b {
    display: none;
  }
  .lesson-steps button span {
    width: 28px;
    height: 28px;
  }
  .date-label > .text-button {
    margin-left: 0;
  }
  .time-stop.selected {
    color: #fff !important;
  }
}
.moneybread-character {
  object-fit: contain;
  object-position: center;
}
@media (max-width: 700px) {
  .lesson-steps {
    gap: 2px;
    padding: 10px;
  }
  .lesson-steps button {
    min-width: 44px;
    min-height: 44px;
  }
}
header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f7f8f4;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-actions .primary {
  font-size: 12px;
  min-height: 44px;
  padding: 10px 17px;
  white-space: nowrap;
  letter-spacing: 0;
}
.header-actions .pill {
  padding: 9px 13px;
  white-space: nowrap;
}
.company-dialog {
  max-width: 500px;
  padding: 24px;
}
.company-card-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 13px 0 16px;
}
.company-card-title > div {
  flex: 1;
  min-width: 0;
}
.company-card-title h2 {
  font-size: 29px;
  margin: 12px 0 0;
}
.company-card-title .kid-picture {
  height: 70px;
  max-width: 70px;
}
.company-price-section {
  border-top: 1px solid #e1e7db;
  padding: 17px 0;
  margin-bottom: 18px;
}
.company-periods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.company-periods button {
  background: #f0f4e9;
  border-radius: 7px;
  padding: 11px 3px;
  color: #587048;
  font-size: 11px;
  min-height: 44px;
}
.company-periods button.selected {
  background: #2e684c;
  color: white;
}
.company-current-price {
  margin: 18px 0 0;
}
.company-current-price strong {
  display: block;
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.company-current-price > span {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}
.company-price-chart {
  margin: 14px 0 0;
  width: 100%;
  height: auto;
  max-height: 220px;
}
.company-chart-dates {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #82917c;
  margin-bottom: 13px;
}
.company-chart-label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #6b7c5c;
}
.company-price-details {
  margin-top: 11px;
}
.company-price-details summary {
  font-size: 10px;
  color: #7f8c78;
}
.company-price-details small {
  margin-top: 8px;
  font-size: 10px;
}
.company-actions {
  position: sticky;
  bottom: -24px;
  background: #fffdf7;
  padding: 13px 0 2px;
  border-top: 1px solid #e0e7d8;
  margin-top: 18px;
}
.company-actions .wide {
  margin-top: 8px;
}
.company-chart-empty,
.chart-loading {
  padding: 25px 0;
  font-size: 12px;
}
.company-dialog .dialog-close {
  font-size: 11px;
  min-height: 40px;
}
@media (max-width: 700px) {
  header {
    height: 65px;
  }
  .header-context {
    display: none;
  }
  .header-actions {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .header-actions .primary {
    font-size: 12px;
    padding: 10px 17px;
  }
  .header-actions .pill {
    font-size: 9px;
    padding: 8px;
  }
  .company-dialog {
    padding: 20px;
    max-height: 92dvh;
  }
  .company-actions {
    bottom: -20px;
  }
  .company-card-title h2 {
    font-size: 27px;
  }
  .company-periods button {
    font-size: 10px;
  }
  .company-dialog .kid-clues p {
    font-size: 12px;
  }
}
.investment-type-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 18px 0;
}
.investment-type-tabs button {
  background: #eef2e7;
  color: #546e44;
  border: 1px solid #dce5d5;
  border-radius: 8px;
  padding: 12px 5px;
  min-height: 44px;
  font-size: 11px;
}
.investment-type-tabs .selected {
  background: #2c674d;
  color: white;
  border-color: #2c674d;
}
.investment-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px;
  background: #f7f4e8;
  border-radius: 12px;
  margin-bottom: 20px;
}
.investment-intro > .kid-picture {
  max-width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.investment-intro b {
  font-size: 16px;
}
.investment-intro p {
  margin: 8px 0;
  font-size: 13px;
}
.investment-intro details {
  margin-top: 12px;
}
.investment-intro summary {
  font-size: 11px;
}
.investment-all-note {
  font-size: 13px !important;
}
.sector-etfs {
  --bubble: #d9eae4;
  --ink: #446f61;
}
.sector-mutual-funds {
  --bubble: #e6dcf0;
  --ink: #735a91;
}
.worksheet-section {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #7d8c73;
  margin: 5px 0 13px;
}
.why-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.why-options button {
  border: 2px solid transparent;
  padding: 12px 7px;
  background: #f1f4e9;
  border-radius: 12px;
  color: #536b43;
  min-height: 110px;
}
.why-options .selected {
  border-color: #6f8f60;
}
.why-options .kid-picture {
  height: 55px;
}
.why-options span {
  font-size: 10px;
  line-height: 1.4;
  display: block;
}
.worksheet-connection {
  margin-top: 22px;
  padding: 15px;
  background: #fff5d9;
  border-radius: 8px;
}
.worksheet-connection summary {
  font-size: 12px;
}
.worksheet-connection p {
  margin: 10px 0;
}
.type-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0;
}
.type-lesson-grid button {
  border: 2px solid transparent;
  background: #eef3e6;
  padding: 13px 8px;
  border-radius: 12px;
  color: #4e6940;
}
.type-lesson-grid button.selected {
  border-color: #6f8e5e;
}
.type-lesson-grid .kid-picture {
  height: 75px;
}
.type-lesson-grid b {
  font-size: 12px;
}
.type-lesson-detail {
  display: flex;
  gap: 16px;
  background: #f8f2e4;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 22px;
}
.type-lesson-detail > .kid-picture {
  max-width: 90px;
  height: 90px;
}
.type-lesson-detail h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.type-lesson-detail p {
  font-size: 13px;
  margin: 8px 0;
  line-height: 1.5;
}
.type-lesson-detail small {
  font-size: 11px;
}
.twenty-challenge {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
  background: #f5efdc;
  padding: 24px;
  border-radius: 16px;
  margin: 25px 0;
}
.twenty-challenge > .kid-picture {
  max-width: 130px;
  height: 130px;
}
.twenty-challenge span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8f7950;
}
.twenty-challenge strong {
  display: block;
  font-size: 44px;
  letter-spacing: -1px;
  color: #4b6741;
}
.twenty-challenge p {
  font-size: 12px;
  margin: 8px 0 0;
}
.kid-lesson > #worksheet-start-challenge {
  margin: 22px 0 12px;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.principle-grid details {
  background: #f1f5e9;
  padding: 17px;
  border-radius: 9px;
}
.principle-grid summary {
  font-size: 13px;
  font-weight: 600;
}
.principle-grid p {
  font-size: 12px;
  margin: 12px 0 0;
}
.worksheet-track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}
.saved-note {
  padding: 12px;
  background: #edf4e5;
  border-radius: 7px;
  color: #507149 !important;
  font-size: 12px !important;
}
#worksheet-plan > small {
  margin-top: 14px;
}
#plan-amount {
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .investment-type-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .investment-type-tabs button {
    font-size: 11px;
  }
  .investment-intro {
    padding: 15px 12px;
    gap: 12px;
  }
  .investment-intro > .kid-picture {
    max-width: 65px;
    height: 65px;
  }
  .investment-intro b {
    font-size: 15px;
  }
  .why-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .why-options button {
    min-height: 100px;
  }
  .type-lesson-grid {
    gap: 9px;
  }
  .type-lesson-grid .kid-picture {
    height: 60px;
  }
  .type-lesson-grid b {
    font-size: 11px;
  }
  .type-lesson-detail {
    flex-direction: column;
    padding: 18px;
  }
  .type-lesson-detail > .kid-picture {
    height: 75px;
    margin: 0 auto;
  }
  .twenty-challenge {
    gap: 12px;
    padding: 20px 10px;
  }
  .twenty-challenge > .kid-picture {
    max-width: 95px;
    height: 95px;
  }
  .twenty-challenge strong {
    font-size: 38px;
  }
  .principle-grid {
    grid-template-columns: 1fr;
  }
  .worksheet-track-actions > button {
    width: 100%;
  }
}
/* Large, playful controls for young investors. */
.trade-action-buttons,
.trade-unit-buttons,
.amount-shortcuts {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.trade-action-buttons button {
  flex: 1;
  min-height: 68px;
  border-radius: 22px;
  font-size: 25px;
  font-weight: 800;
  border: 3px solid #d4dfd8;
  box-shadow: 0 5px 0 #d4dfd8;
}
.trade-action-buttons button.selected {
  background: #d7f4c6;
  border-color: #43844d;
  box-shadow: 0 5px 0 #43844d;
}
.trade-action-buttons button[data-order-side="sell"].selected {
  background: #d6eaff;
  border-color: #4378a5;
  box-shadow: 0 5px 0 #4378a5;
}
.trade-unit-buttons button,
.amount-shortcuts button {
  min-height: 50px;
  border-radius: 16px;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 700;
}
.trade-unit-buttons .selected {
  background: #e9f1df;
  border: 2px solid #43844d;
}
.quick-trade-balance {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: #f4f7ef;
  padding: 18px;
  border-radius: 18px;
}
.quick-trade-balance div {
  flex: 1;
  min-width: 100px;
}
.quick-trade-balance small,
.quick-trade-balance b {
  display: block;
}
.quick-trade-balance b {
  font-size: 22px;
}
.quick-amount {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-amount > span {
  font-size: 40px;
}
.quick-amount input {
  font-size: 38px;
  min-width: 0;
  max-width: 100%;
  font-weight: 800;
}
.quick-submit {
  min-height: 64px;
  border-radius: 20px;
  font-size: 21px;
  box-shadow: 0 5px 0 #204e3a;
}
.quick-submit.sell-action {
  background: #356d9a;
}
.pretend-money-note {
  display: block;
  margin: 20px 0 10px;
}
.portfolio-success {
  background: #e3f5d9;
  border: 2px solid #86b777;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.portfolio-success span {
  display: block;
  margin-top: 5px;
}
.journey-owned {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.journey-owned span {
  background: #eef4e7;
  border-radius: 20px;
  padding: 8px 14px;
  font-weight: 700;
}
#journey-slider {
  height: 40px;
  cursor: pointer;
  accent-color: #327758;
}
.lesson-photo {
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
}
.welcome-grow-photo {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  object-fit: cover;
}
.saved-portfolio-now {
  margin-top: 28px;
}
.order-price-details {
  margin-top: 12px;
}
.preview-change {
  padding: 16px;
  border-radius: 18px;
  background: #f3f6eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-change b {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.15;
}
.preview-change span {
  font-size: 18px;
  font-weight: 800;
}
.preview-change small {
  font-size: 16px;
}
.sidebar .nav {
  min-height: 64px;
  font-size: 20px;
  margin-bottom: 10px;
  border-radius: 18px;
}
#find-company {
  min-height: 58px;
  font-size: 23px;
  border-radius: 18px;
  padding: 12px 28px;
  box-shadow: 0 4px 0 #1f513d;
}
.saved-portfolio-now summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 700;
}
.portfolio-pie-card {
  margin-bottom: 24px;
}
.portfolio-pie-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
}
.portfolio-pie {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}
.pie-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 440px;
  overflow: auto;
}
.pie-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e5eadf;
}
.pie-legend i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
}
.pie-legend li div {
  flex: 1;
  min-width: 0;
}
.pie-legend small {
  display: block;
}
.pie-legend strong {
  white-space: nowrap;
}
.basket-checklist {
  margin-bottom: 24px;
}
.basket-goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.basket-goals > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #f2f5eb;
}
.basket-goals b {
  font-size: 23px;
}
.basket-goals button {
  min-height: 52px;
  font-size: 19px;
}
.time-stops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
}
.time-stop {
  min-height: 48px;
}
.journey-locked {
  border: 2px dashed #afbf9d;
}
.journey-locked button {
  min-height: 54px;
  font-size: 20px;
}
@media (max-width: 650px) {
  .portfolio-pie-layout,
  .basket-goals {
    grid-template-columns: 1fr;
  }
  .portfolio-pie {
    max-width: 330px;
  }
  .pie-legend strong {
    font-size: 15px;
  }
}
.goal-check {
  float: right;
  font-size: 30px;
  color: #347657;
}
.goal-complete {
  border: 2px solid #55975c;
}
.goal-remaining {
  font-size: 24px;
  color: #345e3b;
}
.trade-goal-note {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  padding: 20px;
  background: #edf6df;
  border: 2px solid #a1c18d;
  border-radius: 20px;
}
.trade-goal-note > b,
.trade-goal-note > strong {
  font-size: 27px;
}
.trade-goal-note button {
  min-height: 54px;
  font-size: 19px;
}
.holding-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.holding-actions > div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #f5f7f0;
  padding: 15px;
  border-radius: 18px;
}
.holding-actions b {
  flex: 1;
  min-width: 130px;
}
.holding-actions small {
  display: block;
}
.holding-actions button,
.sell-button {
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 16px;
  font-size: 19px;
  font-weight: 800;
}
.sell-button {
  background: #dfedff;
  color: #24577e;
  border: 2px solid #6390b5;
  cursor: pointer;
}
.selling-lesson {
  margin: 18px 0;
  padding: 14px;
  background: #f4f7ee;
  border-radius: 14px;
}
.quarterly-panel {
  position: fixed;
  z-index: 30;
  right: 18px;
  top: 100px;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 115px);
  overflow: auto;
  background: #fffdf4;
  border: 3px solid #d2a947;
  border-radius: 22px;
  box-shadow: 0 12px 45px #17392b38;
  padding: 14px;
}
.quarterly-title {
  display: flex;
  gap: 8px;
  align-items: center;
}
.quarterly-drag {
  flex: 1;
  text-align: left;
  touch-action: none;
  cursor: move;
  font-weight: 800;
  font-size: 19px;
  background: transparent;
  border: 0;
  padding: 10px;
}
.quarterly-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 24px;
}
.quarterly-dismiss {
  display: block;
  margin: 6px 0 10px auto;
  background: transparent;
  border: 0;
  font-weight: 700;
  min-height: 40px;
}
.quarterly-body[hidden] {
  display: none;
}
.quarterly-change {
  font-size: 35px;
  font-weight: 800;
  margin: 14px 0 0;
}
.quarterly-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.quarterly-actions button {
  min-height: 50px;
  font-size: 18px;
}
.quarterly-actions label {
  margin: 0;
}
.quarterly-actions select {
  width: 100%;
}
@media (max-width: 650px) {
  .quarterly-panel {
    right: 12px;
    top: 80px;
    max-height: calc(100dvh - 92px);
  }
  .holding-actions button {
    flex: 1;
  }
}
.pie-legend li {
  flex-wrap: wrap;
}
.pie-legend .sell-button {
  min-height: 44px;
  font-size: 16px;
  padding: 8px 14px;
}
.pie-legend li > div {
  min-width: 100px;
}
.portfolio-choices {
  margin-bottom: 24px;
}
.portfolio-choice-grid,
.team-strategies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.portfolio-choice {
  text-align: left;
  padding: 20px;
  border: 3px solid #dbe5d1;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9fbf4;
  cursor: pointer;
}
.portfolio-choice.selected {
  border-color: #347657;
  background: #e8f4dc;
}
.portfolio-choice > b {
  font-size: 26px;
}
.portfolio-choice > span {
  font-size: 18px;
  font-weight: 700;
}
.portfolio-choice > p {
  line-height: 1.5;
  margin: 4px 0;
}
.portfolio-choice > strong {
  margin-top: auto;
  font-size: 17px;
}
.team-strategies article {
  padding: 20px;
  border-radius: 20px;
  background: #f3f7ec;
}
.team-strategies article > span {
  font-size: 32px;
}
.team-strategies h4 {
  font-size: 23px;
  margin: 12px 0;
}
.team-strategies button {
  min-height: 52px;
  width: 100%;
}
.portfolio-team-lesson > h3 {
  font-size: 27px;
}
@media (max-width: 650px) {
  .portfolio-choice-grid,
  .team-strategies {
    grid-template-columns: 1fr;
  }
}
.style-launch {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
}
.style-launch > div:first-child {
  width: 120px;
  flex-shrink: 0;
}
.style-launch h2 {
  margin: 6px 0;
}
.style-launch p {
  margin: 6px 0;
}
.style-launch button {
  display: block;
  margin-top: 12px;
  min-height: 50px;
}
.style-pie {
  width: 100%;
  max-width: 180px;
  display: block;
}
.style-pie text {
  font-size: 12px;
  font-weight: 800;
  fill: #19354a;
  stroke: #fff;
  stroke-width: 2px;
  paint-order: stroke;
  pointer-events: none;
}
.style-pie path:focus,
.style-pie path:hover {
  stroke: #17392b;
  stroke-width: 3px;
  outline: none;
}
.style-window {
  position: fixed;
  inset: 80px 18px auto auto;
  margin: 0;
  width: 470px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 100px);
  padding: 22px;
  border: 2px solid #9cb494;
  border-radius: 24px;
  background: #fffdf6;
  color: #273d30;
  box-shadow: 0 16px 60px #19392740;
  overflow: auto;
}
.style-window::backdrop {
  background: #17392b35;
}
.style-window-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.style-window-heading h2 {
  margin: 5px 0;
  font-size: 28px;
}
.style-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.style-option-wrap {
  position: relative;
  min-width: 0;
}
.style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid #e0e7d9;
  border-radius: 16px;
  background: #f5f8f0;
  padding: 8px;
  cursor: pointer;
}
.style-option.selected {
  border-color: #347657;
  background: #e3f3d9;
}
.style-option b {
  font-size: 14px;
  line-height: 1.2;
}
.style-tooltip {
  display: none;
  position: absolute;
  z-index: 2;
  top: 35px;
  left: 0;
  width: 245px;
  max-width: 70vw;
  padding: 14px;
  border-radius: 14px;
  background: #243f35;
  color: #fff;
  box-shadow: 0 5px 20px #0003;
  font-size: 14px;
  pointer-events: none;
}
.style-tooltip span {
  display: block;
  margin: 4px 0;
}
.style-option-wrap:nth-child(3n) .style-tooltip {
  left: auto;
  right: 0;
}
@media (hover: hover) and (min-width: 700px) {
  .style-option-wrap:hover .style-tooltip {
    display: block;
  }
}
.style-preview-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.style-preview-top > .style-pie {
  max-width: 155px;
  flex-shrink: 0;
}
.style-preview-top h3 {
  font-size: 22px;
  margin: 0;
}
.style-preview-top p {
  font-size: 15px;
  line-height: 1.45;
}
.style-slice-info {
  font-size: 15px;
  background: #eef4e7;
  border-radius: 12px;
  padding: 12px;
  min-height: 60px;
}
.style-targets {
  list-style: none;
  padding: 0;
}
.style-targets li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8da;
}
.style-targets i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
}
.style-targets span {
  flex: 1;
}
.style-targets b {
  font-size: 20px;
  white-space: nowrap;
}
.style-confirm-actions {
  display: flex;
  gap: 12px;
  position: sticky;
  bottom: -22px;
  padding: 14px 0;
  background: #fffdf6;
}
.style-confirm-actions button {
  min-height: 54px;
}
.style-confirm-actions .primary {
  flex: 1;
  font-size: 18px;
}
.team-strategies .style-pie {
  max-width: 145px;
}
@media (max-width: 650px) {
  .style-window {
    inset: 65px 12px auto auto;
    max-height: calc(100dvh - 80px);
    padding: 16px;
  }
  .style-preview-top > .style-pie {
    max-width: 115px;
  }
  .style-launch {
    gap: 12px;
  }
  .style-launch > div:first-child {
    width: 95px;
  }
  .style-confirm-actions {
    bottom: -16px;
  }
  .style-targets b {
    font-size: 18px;
  }
}
.style-option-wrap:nth-child(3n + 2) .style-tooltip {
  left: 50%;
  transform: translateX(-50%);
}

.style-tooltip p {
  color: #fff;
  line-height: 1.45;
}
.style-confirm-actions {
  flex-wrap: wrap;
}
.style-confirm-actions #confirm-style {
  flex-basis: 100%;
}
.style-launch {
  flex-wrap: wrap;
}
#undo-confirmed-style {
  min-height: 48px;
  font-size: 17px;
}
.style-budget-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
}
.style-budget-label output {
  font-size: 30px;
  color: #245f48;
}
#style-budget {
  width: 100%;
  height: 38px;
  accent-color: #347657;
}
.style-budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.style-budget-presets button {
  padding: 8px 10px;
  border-radius: 12px;
  min-height: 40px;
}
#order-budget {
  width: 100%;
  height: 42px;
  accent-color: #347657;
}
#order-budget-value {
  font-size: 23px;
  font-weight: 800;
  color: #245f48;
  margin-left: 10px;
}
.lesson-original-cast {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff3d4;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 0 24px;
}
.original-cast-crop {
  position: relative;
  width: 52%;
  aspect-ratio: 550/300;
  overflow: hidden;
  flex-shrink: 0;
}
.original-cast-crop img {
  position: absolute;
  width: 232.7273%;
  max-width: none;
  height: auto;
  left: 0;
  top: -100%;
}
.lesson-original-cast figcaption {
  padding: 16px 16px 16px 0;
}
.lesson-original-cast figcaption b {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  margin-top: 10px;
}
.type-lesson-grid button {
  min-height: 70px;
}
.bakery-ownership > h3 {
  align-self: center;
  padding: 15px;
}
@media (max-width: 650px) {
  .lesson-original-cast {
    display: block;
  }
  .original-cast-crop {
    width: 100%;
  }
  .lesson-original-cast figcaption {
    padding: 16px;
  }
  .lesson-original-cast figcaption b {
    font-size: 22px;
  }
}
.lesson-guide {
  align-items: center;
  background: #f1ebfc;
  gap: 16px;
  padding: 12px 18px 12px 8px;
}
.lesson-guide.guide-zion {
  background: #fff0e9;
}
.lesson-guide.guide-everest {
  background: #eaf3ff;
}
.lesson-guide.guide-sofia {
  background: #ffedf4;
}
.lesson-guide.guide-kanyon {
  background: #ebf5e9;
}
.lesson-character-portrait {
  display: block;
  flex: 0 0 160px;
  width: 160px;
  max-height: 230px;
  border-radius: 18px;
  background: #fff;
}
.lesson-guide figcaption {
  padding: 8px;
}
.lesson-guide figcaption b {
  font-size: 24px;
}
.lesson-character-portrait image {
  pointer-events: none;
}
@media (max-width: 650px) {
  .lesson-guide {
    display: flex;
    gap: 10px;
    padding: 12px;
  }
  .lesson-character-portrait {
    flex-basis: 115px;
    width: 115px;
    max-height: 165px;
  }
  .lesson-guide figcaption {
    padding: 2px;
  }
  .lesson-guide figcaption b {
    font-size: 20px;
    line-height: 1.35;
  }
  .lesson-guide .tag {
    font-size: 10px;
  }
}
.lesson-guide-pair {
  display: flex;
  gap: 4px;
  flex: 0 0 220px;
  align-items: center;
}
.lesson-guide-pair .lesson-character-portrait {
  width: 108px;
  flex-basis: 108px;
}
.lesson-guide:has(.lesson-guide-pair) figcaption b {
  font-size: 23px;
}
@media (max-width: 650px) {
  .lesson-guide:has(.lesson-guide-pair) {
    flex-wrap: wrap;
  }
  .lesson-guide-pair {
    flex-basis: 100%;
    justify-content: center;
  }
  .lesson-guide-pair .lesson-character-portrait {
    width: 100px;
    flex-basis: 100px;
    max-height: 145px;
  }
  .lesson-guide:has(.lesson-guide-pair) figcaption b {
    font-size: 20px;
  }
}
/* Shared studio treatment: transparent assets on one warm, quiet surface. */
:root {
  --studio-surface: #f1f4eb;
  --studio-shadow: drop-shadow(0 5px 7px rgba(32, 65, 46, 0.11));
}
.lesson-guide,
.lesson-guide.guide-zion,
.lesson-guide.guide-everest,
.lesson-guide.guide-sofia,
.lesson-guide.guide-kanyon {
  background: var(--studio-surface);
}
.lesson-character-portrait,
.lesson-photo {
  background: transparent;
  border-radius: 0;
  filter: var(--studio-shadow);
}
.welcome-grow-photo {
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  filter: var(--studio-shadow);
}
.product-clue {
  background: var(--studio-surface);
}
.lesson-guide .tag {
  background: transparent;
}
.bakery-example {
  margin: 0;
  min-width: 0;
  flex: 1;
}
.bakery-photo {
  display: block;
  width: 100%;
  max-width: 470px;
  height: auto;
  filter: var(--studio-shadow);
  background: transparent;
}
.bakery-example figcaption {
  font-size: 16px;
  line-height: 1.5;
  padding: 12px;
  text-align: center;
}
.bakery-ownership {
  align-items: center;
}

.lesson-guide.lesson-guide-all {
  display: block;
  padding: 18px;
}
.lesson-crew {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.lesson-crew-member {
  text-align: center;
  min-width: 0;
}
.lesson-crew-member .lesson-character-portrait {
  width: 100%;
  max-height: 150px;
}
.lesson-crew-member > span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}
.lesson-guide-all figcaption {
  padding: 18px 0 0;
  text-align: center;
}
@media (max-width: 650px) {
  .lesson-crew {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .lesson-crew-member .lesson-character-portrait {
    width: 100%;
    max-height: 125px;
  }
}
.budget-twenty h3 {
  font-size: 27px;
}
.budget-twenty-bar {
  display: flex;
  gap: 3px;
  border-radius: 16px;
  overflow: hidden;
  margin: 22px 0;
}
.budget-twenty-bar span {
  padding: 18px 4px;
  text-align: center;
  color: white;
  font-weight: 800;
  font-size: 22px;
}
.budget-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.budget-jobs article {
  padding: 18px;
  background: var(--studio-surface);
  border-radius: 18px;
}
.budget-jobs strong {
  font-size: 29px;
  color: #245f48;
}
.budget-jobs h4 {
  font-size: 19px;
  margin: 10px 0;
}
.budget-total {
  text-align: center;
  font-size: 19px;
  padding: 16px;
}
@media (max-width: 500px) {
  .budget-jobs {
    grid-template-columns: 1fr;
  }
  .budget-twenty-bar span {
    font-size: 19px;
  }
}
img.lesson-character-portrait{height:210px;object-fit:contain;object-position:center bottom}.lesson-crew-member img.lesson-character-portrait{height:150px;width:100%;object-fit:contain}@media(max-width:650px){img.lesson-character-portrait{height:165px}.lesson-crew-member img.lesson-character-portrait{height:125px}}
.live-order-quote{display:flex;gap:20px;align-items:center;background:#edf5e5;border:2px solid #a6bf98;border-radius:20px;padding:20px;margin:16px 0}.live-share-price{min-width:130px}.live-share-price>*{display:block}.live-share-price strong{font-size:30px;color:#245f48;margin:5px 0}.quick-trade .live-order-estimate{font-size:25px;font-weight:800;white-space:pre-line;line-height:1.5;margin:0;color:#245f48}.trade-unit-buttons button{flex:1;min-width:110px}@media(max-width:550px){.live-order-quote{display:block}.quick-trade .live-order-estimate{margin-top:14px;font-size:22px}}
.welcome-learn{margin:16px 0 20px;min-height:56px;font-size:22px;border-radius:18px}
/* Keep each product picture and its caption on the same center line. */
.product-clue{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.product-clue>.kid-picture{margin-inline:auto;object-position:center}.product-clue>span{display:block;width:100%;text-align:center}
/* A welcoming cast fills the wide-screen space without covering the controls. */
.welcome-intro{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:center;max-width:1200px}.welcome-intro-copy{min-width:0}.welcome-hero-crew{display:flex;align-items:flex-end;justify-content:center;min-width:0;height:245px}.welcome-character{display:block;object-fit:contain;filter:var(--studio-shadow);animation:welcome-character-arrive .55s ease-out both}.welcome-hero-crew .welcome-character{width:25%;height:230px}.welcome-hero-crew .welcome-character:nth-child(2){animation-delay:.08s}.welcome-hero-crew .welcome-character:nth-child(3){animation-delay:.16s}.welcome-login-grid{max-width:1200px;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}.welcome-character-art{padding:28px;background:linear-gradient(145deg,#edf3e4,#f6f4e7);overflow:hidden}.welcome-plant-stage{position:relative;width:100%;max-width:580px;height:280px;margin:5px 0 22px}.welcome-plant-stage .welcome-grow-photo{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:76%;height:210px;object-fit:contain}.welcome-plant-stage .welcome-character{position:absolute;bottom:10px;width:30%;height:240px}.welcome-garden-ruby{left:-2%;animation-delay:.12s}.welcome-garden-sofia{right:-2%;animation-delay:.22s}@keyframes welcome-character-arrive{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1000px){.welcome-intro{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.welcome-hero-crew{height:190px}.welcome-hero-crew .welcome-character{height:180px}.welcome-plant-stage{height:235px}.welcome-plant-stage .welcome-character{height:205px}}@media(max-width:900px){.welcome-login-grid{grid-template-columns:1fr}.welcome-intro{grid-template-columns:1fr;gap:4px}.welcome-hero-crew{height:110px;max-width:280px;justify-self:center;width:100%}.welcome-hero-crew .welcome-character{height:105px}.welcome-character-art{display:none}}@media(prefers-reduced-motion:reduce){.welcome-character{animation:none}}
.welcome-plant-stage{display:grid;grid-template-columns:1fr 2fr 1fr;align-items:end;isolation:isolate}.welcome-plant-stage .welcome-grow-photo{position:relative;left:auto;bottom:auto;transform:none;width:100%;height:210px;grid-column:2;grid-row:1;z-index:1}.welcome-plant-stage .welcome-character{position:relative;left:auto;right:auto;bottom:auto;width:100%;height:240px;grid-row:1;z-index:2}.welcome-plant-stage .welcome-garden-ruby{grid-column:1}.welcome-plant-stage .welcome-garden-sofia{grid-column:3}.type-lesson-detail>.lesson-photo{flex:0 0 180px;width:180px;height:165px;margin:auto;object-fit:contain}@media(max-width:650px){.type-lesson-detail>.lesson-photo{width:100%;max-width:210px;margin:0 auto 16px}}
.welcome-plant-stage .welcome-character{animation:none;filter:none}

.welcome-new-practice{margin-top:12px;margin-bottom:20px;min-height:56px;font-size:20px;border-radius:18px}

.brand{margin-bottom:6px}
.brand-name{margin:0 0 30px;padding-left:13px;font-size:12px;line-height:1.5;color:var(--green,#275e49);max-width:190px}
@media(max-width:700px){.brand-name{padding-left:0;max-width:none;margin-bottom:14px;font-size:12px}}

.welcome-hero-crew .welcome-character:nth-child(4){animation-delay:.24s}
@media(prefers-reduced-motion:reduce){.welcome-hero-crew .welcome-character:nth-child(4){animation:none}}

/* Keep mix explanations in their own row, clear of every pie. */
.style-option-wrap{display:contents}
.style-options .style-tooltip,
.style-options .style-option-wrap:nth-child(3n) .style-tooltip,
.style-options .style-option-wrap:nth-child(3n + 2) .style-tooltip{
  position:static;grid-column:1 / -1;order:1;transform:none;
  width:auto;max-width:none;margin-top:4px;
}
@media (hover:hover) and (min-width:700px){
  .style-option-wrap:focus-within .style-tooltip{display:block}
  .style-options:has(.style-option-wrap:hover) .style-option-wrap:not(:hover) .style-tooltip{display:none}
}

.welcome-intro{grid-template-columns:1fr}
.welcome-combined-art{padding:0;background:transparent;justify-content:flex-start;align-self:start}
.welcome-combined-image{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:900px){.welcome-combined-art{display:flex;max-width:580px;width:100%;justify-self:center}}

/* Compact welcome screen; keep all actions within easy reach. */
main:has(.welcome-intro) header{height:54px;margin-bottom:16px}
.welcome-intro{margin-bottom:18px}
.welcome-intro .eyebrow{margin-bottom:6px}
.welcome-intro h1{font-size:32px;line-height:1.12;margin:8px 0}
.welcome-intro p{margin:6px 0;font-size:12px}
.welcome-login-grid{gap:22px;align-items:center}
.welcome-login-grid .start-card{padding:20px;margin-bottom:0}
.welcome-login-grid .start-card h2{margin:10px 0;font-size:26px}
.welcome-login-grid .start-card p{margin:8px 0}
.welcome-login-grid .welcome-learn{margin:8px 0 14px;min-height:48px}
.welcome-login-grid .start-button{margin-top:12px;padding:12px}
.welcome-login-grid .welcome-storage{margin:12px 0 0;padding:10px;font-size:11px}
.welcome-storage summary{cursor:pointer;font-weight:700}
.welcome-login-grid .welcome-combined-art{align-self:center;margin:0}
.welcome-combined-image{max-height:430px}
main:has(.welcome-intro)>.notice{margin:10px 0;font-size:10px}
main:has(.welcome-intro)>footer{margin:12px 0;padding-top:10px}
@media(max-width:900px){.welcome-login-grid{grid-template-columns:1fr 1fr}.welcome-combined-art{max-width:none}}
@media(max-width:600px){
 main:has(.welcome-intro){padding:0 16px}
 .sidebar:has(+main .welcome-intro){padding:8px 16px}
 .sidebar:has(+main .welcome-intro) .brand{font-size:25px;margin-bottom:0}
 .sidebar:has(+main .welcome-intro) .brand-name{margin-bottom:0;font-size:10px}
 main:has(.welcome-intro) header{height:34px;margin-bottom:8px}
 .welcome-intro{margin-bottom:10px}.welcome-intro h1{font-size:24px}.welcome-intro p{display:none}
 .welcome-login-grid{grid-template-columns:1fr;gap:10px}
 .welcome-login-grid .start-card{padding:12px}
 .welcome-login-grid .start-card h2{font-size:22px;margin:6px 0}
 .welcome-login-grid .start-card>.tag,.welcome-login-grid .start-card>p:first-of-type{display:none}
 .welcome-login-grid .welcome-learn{margin:6px 0 10px;min-height:42px;font-size:19px}
 .welcome-login-grid #practice-balance{padding:8px;font-size:22px}
 .welcome-login-grid .welcome-combined-image{height:155px;width:100%}
 .welcome-login-grid .welcome-new-practice{min-height:42px;margin-bottom:0}
 main:has(.welcome-intro)>footer{margin:6px 0;padding-top:6px}
}
@media(min-width:601px) and (max-height:800px){
 main:has(.welcome-intro) header{height:42px;margin-bottom:10px}
 .welcome-intro{margin-bottom:10px}.welcome-intro h1{font-size:28px}
 .welcome-intro p{display:none}
 .welcome-login-grid .start-card{padding:14px}
 .welcome-login-grid .start-card>.tag{display:none}
 .welcome-combined-image{max-height:360px}
}
@media(max-width:600px){
 .welcome-login-grid #start-practice label{margin:4px 0}
 .welcome-login-grid .welcome-learn{padding:10px;min-height:42px;margin-bottom:6px}
 .welcome-login-grid .start-button{margin-top:6px}
 .welcome-login-grid .welcome-storage{padding:7px;margin-top:6px}
 .welcome-login-grid #classroom-signin{padding:6px 0}
 .welcome-login-grid .welcome-combined-image{height:125px}
 .welcome-intro h1{font-size:22px}
 .welcome-intro{margin-bottom:6px}
 main:has(.welcome-intro)>footer{font-size:8px;margin:4px 0;padding-top:4px}
 main:has(.welcome-intro)>.notice{font-size:9px;margin:6px 0}
}

/* Mix explanations sit beside the pies instead of underneath them. */
.style-window{width:760px}
.style-choice-layout{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:16px;align-items:start;margin:18px 0}
.style-choice-layout .style-options{margin:0}
.style-detail-window{padding:16px;border-radius:16px;background:#243f35;color:#fff;font-size:14px;line-height:1.5;position:sticky;top:0}
.style-detail-window p{color:#fff;margin:10px 0}
.style-detail-window span{display:block;margin:6px 0}
.style-options .style-tooltip{display:none!important}
@media(max-width:700px){
 .style-choice-layout{grid-template-columns:minmax(0,42%) minmax(0,1fr);gap:10px}
 .style-choice-layout .style-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .style-detail-window{padding:10px;font-size:12px}
 .style-choice-layout .style-option{padding:4px}
 .style-choice-layout .style-option b{font-size:12px}
}

.portfolio-slice{cursor:pointer;transition:filter .15s;outline:none}
.portfolio-slice:hover,.portfolio-slice:focus,.portfolio-slice.active{stroke:#173b2d;stroke-width:5px;filter:brightness(1.18)}
.portfolio-slice-info{padding:14px;border-radius:14px;background:#e8f2df;color:#224c38;font-size:18px;font-weight:750;min-height:60px}
.pie-legend li.active{background:#e8f2df;border-radius:12px;outline:2px solid #638b57}
.pie-details{min-width:0}
.journey-chart-legend{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:14px;font-weight:700}
.journey-chart-legend span{display:flex;gap:6px;align-items:center}
.journey-chart-legend i{display:inline-block;width:25px;border-top:4px solid var(--line-color)}
.journey-chart-intro{font-size:14px}
