/* Trust and allies, endless-mode years, money flow, hall of fame, desk hints, buyer voices, lessons.
 * index.html loads the stylesheets in src/styles/ in a fixed order; later files override earlier ones. */
/* 0.3 · trust, allies, years, money flow, hall of fame */
.team-card > div {
  flex: 1;
  min-width: 0;
}
.trust {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed #d3dbc8;
}
.trust-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #5f6d5c;
  font-weight: 600;
}
.trust-top b {
  display: inline;
  font-size: 8px;
  letter-spacing: 0.9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #2e7650;
  color: #fff;
  margin: 0;
}
.trust.strained .trust-top b {
  background: #b4553f;
}
.trust-top small {
  font-size: 8.5px;
  color: #656f68;
  font-weight: 500;
}
.trust > i {
  display: block;
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: #dfe4d6;
  margin: 5px 0 5px;
  overflow: hidden;
}
.trust > i b {
  display: block;
  height: 100%;
  background: #8fb07a;
  border-radius: 3px;
  margin: 0;
}
.trust.ally > i b {
  background: #2e7650;
}
.trust.strained > i b {
  background: #c66b4b;
}
.trust > i em {
  position: absolute;
  left: 70%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #6d7a68;
}
.trust > small {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  color: #646e67;
}
.ally-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 12px 15px;
  margin-top: 12px;
  animation: winIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.ally-card canvas {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: 9px;
  background: #e6ecdb;
  flex-shrink: 0;
}
.ally-card.gain {
  background: linear-gradient(110deg, #e3f0dc, #f4efe2);
  border: 1px solid #cfe2c2;
}
.ally-card.loss {
  background: #fbf1ea;
  border: 1px solid #efd4bf;
}
.ally-card b {
  display: block;
  font-size: 14px;
  margin: 2px 0;
}
.ally-card.gain .eyebrow {
  color: #3f7a45;
}
.ally-card.loss .eyebrow {
  color: #a75642;
}
.ally-card p {
  margin: 0;
  font-size: 11px;
  color: #5f6d5c;
  line-height: 1.45;
}
.year-card {
  background: #f5f6ef;
  border: 1px solid #e5e9df;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}
.year-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.goal {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 3px 12px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #e9ece3;
}
.goal:first-of-type {
  border-top: 0;
}
.goal > span {
  font-size: 11.5px;
  color: #44564b;
  display: flex;
  gap: 6px;
  align-items: center;
}
.goal > span .icon {
  width: 14px;
  height: 14px;
  color: #2e7650;
}
.goal > i {
  height: 6px;
  border-radius: 3px;
  background: #dfe4d6;
  overflow: hidden;
}
.goal > i b {
  display: block;
  height: 100%;
  background: #c9a24f;
  border-radius: 3px;
}
.goal.met > i b {
  background: #2e7650;
}
.goal > small {
  grid-column: 1/-1;
  font-size: 9px;
  color: #656f68;
}
.money-flow {
  background: #f5f6ef;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
}
.money-row {
  display: grid;
  grid-template-columns: 70px 1fr 64px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
  color: #646e67;
}
.money-row b {
  text-align: right;
  font-size: 12px;
  color: #243d36;
}
.money-bar {
  display: flex;
  height: 14px;
  border-radius: 5px;
  background: #e9ece3;
  overflow: hidden;
}
.money-bar i {
  display: block;
  height: 100%;
}
.money-bar i + i {
  box-shadow: inset 1.5px 0 0 #f5f6ef;
}
.money-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 4px;
  font-size: 10px;
  color: #5f6d5c;
}
.money-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.money-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.money-legend em {
  font-style: normal;
  color: #676f60;
}
.money-note {
  font-size: 10px;
  color: #606b65;
  line-height: 1.5;
  margin: 8px 0 0;
}
.money-note .pos {
  color: #3f7a45;
}
.money-note .neg {
  color: #a75642;
}
.hall-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hall-card {
  display: grid;
  grid-template-columns: 22px 48px 1fr;
  gap: 12px;
  align-items: flex-start;
  background: #f5f6ef;
  border-radius: 12px;
  padding: 13px 15px;
}
.hall-rank {
  font-size: 13px;
  font-weight: 700;
  color: #676f60;
  padding-top: 12px;
}
.hall-card .grade-badge {
  width: 44px;
  height: 44px;
  font-size: 23px;
  border-radius: 11px;
}
.hall-card b {
  display: block;
  font-size: 13px;
  margin: 3px 0;
}
.hall-card small {
  font-size: 10px;
  color: #606b65;
}
.hall-card p {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 10.5px;
  margin: 5px 0 0;
  color: #5f6d5c;
  line-height: 1.4;
}
.hall-card p .icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.hall-card p.good .icon {
  color: #3f7a45;
}
.hall-card p.bad .icon {
  color: #a75642;
}
.hall-grades {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 5px 0;
}
.hall-grades i {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
}
.book-tabs [role='tab']:focus-visible,
.book-body:focus-visible {
  outline: 2px solid #35664d;
  outline-offset: 2px;
}
.motion-off .ally-card {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .ally-card {
    animation: none;
  }
}
@media (max-width: 760px) {
  .goal {
    grid-template-columns: 1fr;
  }
  .money-row {
    grid-template-columns: 56px 1fr 52px;
  }
  .hall-card {
    grid-template-columns: 40px 1fr;
  }
  .hall-rank {
    display: none;
  }
}
.upgrade-card.fits {
  border-color: #cfe2c2;
  box-shadow: 0 0 0 2px #e3f0dc;
}
.fit-reason {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #e3f0dc;
  border-radius: 8px;
  padding: 7px 9px;
  margin: 0 0 9px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #2f5a36;
}
.fit-reason .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #3f7a45;
}
.fit-reason b {
  display: block;
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.sample-read {
  border-radius: 11px;
  padding: 11px 13px;
  margin: 10px 0 4px;
  background: #f1f3ec;
  border-left: 3px solid #a3ab9c;
}
.sample-read.rework {
  background: #fbf1ea;
  border-left-color: #c66b4b;
}
.sample-read.accept {
  background: #e3f0dc;
  border-left-color: #467a45;
}
.sample-read.close {
  background: #f6efdc;
  border-left-color: #c9a24f;
}
.sample-read-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sample-read-top b {
  font-size: 12px;
}
.sample-read .range {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: #e2e6da;
  margin: 9px 0 4px;
}
.sample-read .band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  background: #7d8f77;
}
.sample-read .mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #a75642;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #646e67;
}
.sample-read p {
  margin: 7px 0 3px;
  font-size: 11px;
  font-weight: 550;
  color: #34473c;
  line-height: 1.45;
}
.sample-read small {
  display: block;
  font-size: 9.5px;
  color: #646e67;
  line-height: 1.45;
}
.unproven {
  font-size: 8px;
  letter-spacing: 0.9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f6efdc;
  color: #82642a;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.promise-chip {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  font-size: 9px;
  color: #6d5a33;
  background: #f4efe2;
  border-radius: 6px;
  padding: 4px 7px;
}
.promise-chip .icon {
  width: 11px;
  height: 11px;
  color: #b08a45;
  flex-shrink: 0;
}
.product-swatch.earbuds {
  color: #b86680;
}
.launch-card {
  display: flex;
  gap: 14px;
  background: #f8f1f1;
  border: 1px solid #ecdcdc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
}
.launch-art {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #d08aa0;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.launch-art .icon {
  width: 20px;
  height: 20px;
}
.launch-body {
  flex: 1;
  min-width: 0;
}
.launch-body p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #5f5a55;
}
.launch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 6px;
}
.launch-stats span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: #606b65;
}
.launch-stats b {
  font-size: 16px;
  color: #243d36;
}
.launch-card .goal {
  border-top: 0;
  padding-top: 2px;
}
.pulse-card {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: 420px;
  max-width: calc(100% - 32px);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fffdf6;
  border: 1px solid #eadfc4;
  border-left: 4px solid #d9a04f;
  border-radius: 14px;
  box-shadow: 0 12px 40px #264b3133;
  z-index: 9;
  animation: pulseIn 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.pulse-card canvas {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: 9px;
  background: #e6ecdb;
  flex-shrink: 0;
}
.pulse-card .eyebrow {
  color: #826431;
  font-size: 7.5px;
}
.pulse-card b {
  display: block;
  font-size: 14px;
  margin: 3px 0;
}
.pulse-card p {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.45;
  color: #5f6d5c;
}
.pulse-card small {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  color: #656f68;
  line-height: 1.4;
}
.pulse-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@keyframes pulseIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.motion-off .pulse-card {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-card {
    animation: none;
  }
}
@media (max-width: 760px) {
  .pulse-card {
    bottom: 84px;
    width: calc(100% - 32px);
  }
}
.scorecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 7px;
  margin: 4px 0 8px;
}
.scorecard {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f1f3ec;
  border-radius: 10px;
  padding: 8px 10px;
}
.scorecard > b {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.scorecard .grade-D {
  background: #b4553f;
}
.scorecard strong {
  display: block;
  font-size: 11px;
}
.scorecard small {
  font-size: 9px;
  color: #606b65;
}
.scorecard .flag-label {
  font-size: 8px;
  font-weight: 700;
  color: #606b65;
  width: 16px;
}
.report-scorecards {
  margin-top: 14px;
}
.pulse-card {
  z-index: 40;
}
@media (max-width: 760px) {
  .pulse-card {
    top: 118px;
    bottom: auto;
    animation: none;
    transform: translateX(-50%);
  }
}
.contract-card {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #eef4ea;
  border: 1px solid #d3e6c6;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0 8px;
}
.contract-card b {
  display: block;
  font-size: 11.5px;
}
.contract-card small {
  display: block;
  font-size: 9.5px;
  color: #646e67;
  line-height: 1.45;
  margin-top: 2px;
}
.contract-offer {
  font-size: 10.5px;
  line-height: 1.5;
  color: #5f6d5c;
  margin: 2px 0 8px;
}
.season {
  background: #f5f6ef;
  border-radius: 11px;
  padding: 10px 12px;
  margin: 10px 0;
}
.season-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.season-top b {
  font-size: 11px;
}
.season-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 34px;
  margin: 8px 0 5px;
}
.season-bars i {
  flex: 1;
  background: #c9d2bf;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.season-bars i.peak {
  background: #d9a04f;
}
.season-bars i.lull {
  background: #9fb3c2;
}
.season-bars i.today {
  outline: 2px solid #285a48;
  outline-offset: 1px;
}
.season small {
  font-size: 9.5px;
  color: #606b65;
  line-height: 1.4;
}
.pulse-card.collapsed {
  padding: 0;
  border-left-width: 4px;
}
.pulse-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.pulse-mini b {
  font-size: 12px;
  margin: 0;
  padding-right: 70px;
}
.pulse-open {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #285a48;
}
.pulse-open .icon {
  width: 13px;
  height: 13px;
}
.replay {
  min-height: 300px;
  display: flex;
  align-items: center;
}
.replay-slide {
  width: 100%;
  animation: bookIn 0.45s ease both;
}
.replay-slide h2 {
  margin: 6px 0 10px;
}
.replay-slide.intro p {
  font-size: 14px;
  color: #5f6d5c;
  line-height: 1.6;
  max-width: 480px;
}
.replay-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 12px;
}
.replay-head h2 {
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.replay-head h2 small {
  font-size: 12px;
  color: #606b65;
  font-weight: 500;
  margin-top: 3px;
}
.replay-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #285a48;
  color: #f3e7b8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.replay-icon .icon {
  width: 26px;
  height: 26px;
}
.replay-grade {
  animation: pop 0.6s 0.2s cubic-bezier(0.2, 0.8, 0.3, 1.4) both;
}
.replay-grade.big {
  width: 72px;
  height: 72px;
  font-size: 38px;
  border-radius: 16px;
}
.replay-legacy {
  font-size: 11px;
  color: #646e67;
  margin: 12px 0 0;
}
.replay-legacy .pos {
  color: #3f7a45;
}
.replay-legacy .neg {
  color: #a75642;
}
.replay-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 6px 0 10px;
}
.replay-stats span {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #606b65;
}
.replay-stats b {
  font-size: 20px;
  color: #243d36;
}
.replay-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 16px 0 4px;
}
.replay-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dfe4d6;
}
.replay-dots i.done {
  background: #9fbf8e;
}
.replay-dots i.on {
  background: #285a48;
  width: 18px;
  border-radius: 4px;
}
.replay-controls {
  justify-content: center;
  gap: 8px;
}
.replay-button {
  margin: 0 0 8px;
}
.motion-off .replay-slide,
.motion-off .replay-grade {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .replay-slide,
  .replay-grade {
    animation: none;
  }
}
.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  margin-left: auto;
  margin-right: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f4efe2;
  color: #82642a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.season-chip .icon {
  width: 12px;
  height: 12px;
}
.season-chip.peak {
  background: #94641a;
  color: #fff;
}
.season-chip + .health-note {
  margin-left: 0;
}
.price-row {
  padding: 6px 0;
}
.price-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 5px;
}
.price-steps button {
  padding: 6px 0;
  border-radius: 7px;
  border: 1px solid #dfe4d6;
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  color: #44564b;
  cursor: pointer;
}
.price-steps button.active {
  background: #285a48;
  color: #fff;
  border-color: #285a48;
}
.price-steps button:disabled:not(.active) {
  opacity: 0.45;
  cursor: default;
}
.season .goal {
  border-top: 0;
  padding: 6px 0 2px;
}
@media (max-width: 760px) {
  .season-chip {
    display: none;
  }
}
.replay-save {
  margin-top: 12px;
}
/* Desk hints: one data-based line under the colleague quote. */
.colleague > div {
  min-width: 0;
}
.desk-tip {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0 !important;
  padding: 6px 8px;
  border-radius: 7px;
  background: #eef2e6;
  color: #4f6150 !important;
  font-size: 10px;
  line-height: 1.5;
}
.desk-tip svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 2px;
}
.desk-tip b {
  font-size: 8px;
  letter-spacing: 0.5px;
  margin-right: 3px;
  color: #365c46;
}
.desk-tip.warn {
  background: #f8efdc;
}
.desk-tip.warn b {
  color: #8d611a;
}
.desk-tip.bad {
  background: #f8e3dd;
}
.desk-tip.bad b {
  color: #a84a36;
}
.launch-card.market {
  background: #eef4ee;
  border-color: #d6e4d6;
}
.launch-card.market .launch-art {
  background: #5f9a7a;
}
/* Buyer voices: a retailer's words when its grade moves. */
.buyer-voices {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.buyer-voice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4ee;
  border: 1px solid #d6e4d6;
}
.buyer-voice.down {
  background: #f8ece6;
  border-color: #eed5c8;
}
.buyer-voice strong {
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #4f6150;
}
.buyer-voice p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: #40523f;
}
.grade-move {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
  padding-top: 1px;
}
.grade-move b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
}
.grade-move svg {
  width: 10px;
  height: 10px;
  color: #8a9a80;
}
.dept-btn.alert::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c0543c;
  border: 2px solid #fbfaf1;
  position: absolute;
  right: 2px;
  top: 2px;
}
/* Almost there: the nearest locked achievement in the shift report. */
.almost {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f6f1e1;
  border: 1px dashed #e0cf9f;
}
.almost .badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ead9a6;
  color: #7a5b1c;
  flex: none;
}
.almost .badge svg {
  width: 15px;
  height: 15px;
}
.almost > div:last-child {
  flex: 1;
  min-width: 0;
}
.almost i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #e8e0c6;
  margin: 5px 0 3px;
  overflow: hidden;
}
.almost i b {
  display: block;
  height: 100%;
  background: #c79a3e;
  border-radius: 3px;
}
.almost small {
  font-size: 10px;
  color: #766b52;
}
/* Lessons: the supply-chain ideas behind the game, proven by the company's own record. */
.lessons-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 4px 0 16px;
}
.lessons-head strong {
  font-size: 14px;
  color: #2f4a39;
}
.lessons-head p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #67765e;
}
.lessons-ring {
  --p: 0;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(#fbfaf1 58%, transparent 59%), conic-gradient(#3f7d55 calc(var(--p) * 1%), #e3e8d8 0);
}
.lessons-ring b {
  font-size: 20px;
  line-height: 1;
  color: #2f4a39;
}
.lessons-ring small {
  font-size: 9px;
  color: #5c6754;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.lesson {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f5ec;
  border: 1px solid #e1e7d6;
}
.lesson header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #67765e;
}
.lesson header svg {
  width: 16px;
  height: 16px;
}
.lesson h3 {
  font-size: 13px;
  margin: 8px 0 4px;
  color: #2f4a39;
}
.lesson p {
  font-size: 11px;
  line-height: 1.6;
  color: #5e6e5c;
  margin: 0 0 8px;
}
.lesson.learned {
  background: #eaf3e8;
  border-color: #cfe2c9;
}
.lesson.learned header {
  color: #2e7650;
}
.lesson.hard {
  background: #f5f0e0;
  border-color: #e6d8b0;
}
.lesson.hard header {
  color: #8d611a;
}
.lesson.costing {
  background: #f8ebe6;
  border-color: #eed5c8;
}
.lesson.costing header {
  color: #a84a36;
}
.lesson.open {
  border-style: dashed;
}
.lesson-count {
  display: flex;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 6px;
}
.lesson-count .good {
  color: #2e7650;
}
.lesson-count .bad {
  color: #a84a36;
}
.lesson-ex {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  font-size: 10px;
  line-height: 1.5;
  color: #5d6d58;
  margin-top: 3px;
}
.lesson-ex svg {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 2px;
}
.lesson-ex.good svg {
  color: #2e7650;
}
.lesson-ex.bad svg {
  color: #a84a36;
}
.lesson-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 2px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #e8efe1;
  color: #365c46;
  font-size: 10px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.lesson-chip svg {
  width: 11px;
  height: 11px;
}
.lesson-chip:hover {
  background: #dbe7d2;
}
