/* Readable contrast, accounts, consequences and reviews, the company book, wins, the team, the first-shift coach, the shift story.
 * index.html loads the stylesheets in src/styles/ in a fixed order; later files override earlier ones. */
/* Reading contrast for secondary explanations, without changing the pixel-world palette. */
.colleague p,
.panel-header p,
.mission-card p {
  color: #5e6e5c;
}
.helper,
.seed-note,
.dialog-intro {
  color: #68765e;
}
.report-local {
  margin: 16px 0;
  padding: 16px 18px;
  background: #eef2e6;
  border-radius: 10px;
}
.report-local strong {
  display: block;
  font-size: 20px;
  margin: 4px 0 6px;
  color: #365c46;
}
.report-local p {
  font-size: 10px;
  line-height: 1.7;
  color: #67765e;
  margin: 0;
}
.panel-content p {
  line-height: 1.65;
}
/* Accounts & cloud save */
#account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9a04f;
  position: absolute;
  top: 4px;
  right: 4px;
}
#account-dot.ok {
  background: #6fae8a;
}
.field input[type='email'],
.field input[type='password'] {
  width: 100%;
  border: 1px solid #dfe5d5;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: #405d47;
  outline-offset: 2px;
  font-size: 12px;
}
.account-card {
  border: 1px solid #dfe5d5;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-card small {
  color: var(--muted);
}
.account-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
}
.btn.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #d5dacb;
  font-weight: 600;
}
.btn.google:hover:not(:disabled) {
  background: #f7f8f3;
  border-color: #bfc6b3;
}
.google-g {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.segmented.account-tabs {
  margin-bottom: 6px;
}
.account-divider:before,
.account-divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dfe5d5;
}
.account-form .btn.full {
  margin-top: 14px;
}
.danger-zone {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e9d7cf;
}
@media (max-width: 480px) {
  .focus-block {
    min-width: 0;
  }
  .focus-dots.dense {
    flex-wrap: wrap;
    max-width: 60px;
    row-gap: 2px;
  }
  .focus-dots.dense i {
    height: 8px;
  }
}
/* 0.2: consequences, reviews and crisis */
.supplier-history {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #e0e6d6;
  font-size: 10px;
  color: #616f62;
  text-align: left;
}
.supplier-history span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  font-weight: 750;
  color: #666f60;
  margin-bottom: 3px;
}
.supplier-history b {
  font-weight: 650;
}
.supplier-history b.warn {
  color: #9a5c3d;
}
.ceo-target {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f4efe2;
  color: #6d5a33;
  font-size: 11px;
  line-height: 1.4;
}
.ceo-target .icon {
  width: 16px;
  height: 16px;
  color: #c1924a;
  margin-top: 1px;
}
.ceo-target b {
  display: block;
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #826431;
}
.callback-card {
  background: #fbf1e8;
  border: 1px solid #efd4bf;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}
.callback-card .eyebrow {
  color: #9a5c3d;
}
.callback-card strong {
  display: block;
  font-size: 15px;
  margin: 3px 0 6px;
}
.callback-card p {
  margin: 0 0 10px;
  color: #6c5a4d;
  font-size: 12px;
  line-height: 1.5;
}
.callback-totals {
  display: flex;
  gap: 22px;
}
.callback-totals span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  letter-spacing: 1px;
  color: #76695b;
  text-transform: uppercase;
}
.callback-totals b {
  font-size: 18px;
  letter-spacing: 0;
  color: #3f5a45;
}
.callback-totals .loss b {
  color: #a9513a;
}
.review-card {
  background: #f0f3e7;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}
.review-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.review-top strong {
  display: block;
  font-size: 13px;
  margin: 2px 0;
}
.review-top small {
  color: var(--muted);
  font-size: 10px;
}
.grade-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  background: #6f8f5f;
  flex-shrink: 0;
}
.grade-A {
  background: #2e7650;
}
.grade-B {
  background: #6f9a4f;
}
.grade-C {
  background: #c1964a;
}
.grade-D {
  background: #c47a48;
}
.grade-F {
  background: #b4553f;
}
.review-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 16px;
  margin: 13px 0 4px;
}
.review-bars div {
  font-size: 10px;
  color: #6c7a6b;
}
.review-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #dfe6d4;
  margin-top: 4px;
  overflow: hidden;
}
.review-bars b {
  display: block;
  height: 100%;
  background: #5f8b56;
}
.review-history {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.grade-chip {
  width: 42px;
  height: 46px;
  border-radius: 9px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.grade-chip b {
  font-size: 17px;
}
.grade-chip small {
  font-size: 8px;
}
.text-button.light {
  color: #e8c37f;
  padding-left: 0;
  margin-top: 6px;
}
.share-text {
  width: 100%;
  font: inherit;
  font-size: 12px;
  padding: 12px;
  border: 1px solid #dfe5d5;
  border-radius: 8px;
  resize: none;
  margin-top: 12px;
}
/* Company book */
.book-tabs {
  display: flex;
  gap: 6px;
  margin: 6px 0 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.book-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 650;
  color: #6b7561;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.book-tabs button .icon {
  width: 16px;
  height: 16px;
}
.book-tabs button.active {
  color: #2f5940;
  border-color: #2f5940;
}
.book-tabs button:hover {
  color: #2f5940;
}
.book-body {
  animation: bookIn 0.22s ease-out;
}
@keyframes bookIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.kpi-tile {
  background: #f0f3e7;
  border-radius: 11px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 112px;
}
.kpi-tile strong {
  font-size: 21px;
  letter-spacing: -0.4px;
}
.spark {
  width: 100%;
  height: 34px;
  display: block;
}
.kpi-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.delta {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.3px;
}
.delta.up {
  color: #467a45;
}
.delta.down {
  color: #a55638;
}
.book-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 22px;
}
.muted-line {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0;
}
.stock-table.compact td,
.stock-table.compact th {
  padding: 7px 6px;
  font-size: 10px;
}
.pos {
  color: #467a45;
  font-weight: 650;
}
.neg {
  color: #a9513a;
  font-weight: 650;
}
.achievement-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f4efe2;
  text-align: left;
  color: #6d5a33;
}
.achievement-link .icon {
  color: #c1924a;
}
.achievement-link span {
  flex: 1;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.achievement-link b {
  font-size: 12px;
}
.win-row,
.loss-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 7px;
  text-align: left;
  width: 100%;
}
.win-row {
  background: #eaf3e2;
}
.win-row .icon {
  color: #467a45;
  margin-top: 1px;
}
.loss-row {
  background: #fbf1e8;
}
.loss-row .icon {
  color: #c07a4a;
  margin-top: 1px;
}
.win-row div,
.loss-row div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.win-row b,
.loss-row b {
  font-size: 11px;
}
.win-row small,
.loss-row small {
  font-size: 10px;
  color: #7a8676;
  line-height: 1.4;
}
.loss-row > span {
  font-size: 12px;
  font-weight: 700;
  color: #a9513a;
}
.decision-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.verdict {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.verdict.good {
  background: #dcecd2;
  color: #3f7a45;
}
.verdict.bad {
  background: #f6dfd3;
  color: #b0543a;
}
.verdict.neutral {
  background: #eceee6;
  color: #646c60;
}
.verdict.big {
  font-size: 10px;
  padding: 7px 10px;
}
.bar-pair {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 8px 0 2px;
}
.bar-pair i {
  display: block;
  height: 4px;
  border-radius: 2px;
  min-width: 2px;
}
.bar-pair .saved {
  background: #7ea86a;
}
.bar-pair .linked {
  background: #d0896a;
}
.decision-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.decision-head h3 {
  margin: 4px 0 12px;
  font-size: 17px;
}
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 10px;
  color: #566a55;
}
.flow-steps span {
  background: #eef2e5;
  padding: 5px 8px;
  border-radius: 6px;
}
.flow-steps .icon {
  width: 13px;
  height: 13px;
  color: #a2b08f;
}
.ledger {
  background: #f6f7ef;
  border: 1px solid #e6eadc;
  border-radius: 11px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.ledger div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 11px;
  border-bottom: 1px dashed #e2e7d6;
}
.ledger div:last-child {
  border: 0;
}
.ledger .total {
  font-size: 13px;
  font-weight: 700;
}
.timeline-event.good:before {
  background: #6fae6a;
}
.timeline-event.bad:before {
  background: #d0896a;
}
.timeline-event.info:before {
  background: #8fb0c7;
}
.timeline-event.good strong {
  color: #3f7a45;
}
.day-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.day-block {
  border: 1px solid #e6eadc;
  border-radius: 12px;
  padding: 12px 14px 2px;
}
.day-block header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 10px;
  color: var(--muted);
}
.day-block header b {
  font-size: 13px;
  color: var(--ink);
}
.day-block .timeline-event {
  padding-left: 16px;
  margin-bottom: 14px;
}
.day-block .timeline-event:before {
  left: 0;
}
details.routine {
  margin: 0 0 12px;
  font-size: 10px;
  color: var(--muted);
}
details.routine summary {
  cursor: pointer;
  padding: 4px 0;
}
details.routine[open] {
  padding-bottom: 4px;
}
.chain-map {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 6px 2px 16px;
}
.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 78px;
  padding: 10px 6px;
  border-radius: 11px;
  background: #f0f3e7;
  font-size: 9px;
  font-weight: 650;
  color: #5b6d58;
  text-align: center;
}
.chain-node.warm {
  background: #f8ecdd;
}
.chain-node.hot {
  background: #f4d9cb;
  color: #9c4a33;
}
.chain-node.mine {
  box-shadow: 0 0 0 2px #2f5940;
}
.chain-link {
  flex: 1;
  min-width: 10px;
  height: 2px;
  background: #d6dfc9;
}
.edge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.edge-card {
  border-radius: 11px;
  padding: 12px 14px;
  background: #f3f5ec;
  border-left: 4px solid #a9b99a;
}
.edge-card.bad {
  border-color: #d0896a;
  background: #fbf3ec;
}
.edge-card.good {
  border-color: #6fae6a;
  background: #eef6e8;
}
.edge-card.mine {
  outline: 1px solid #2f594055;
}
.edge-desks {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 10px;
  margin-bottom: 6px;
}
.edge-desks .icon {
  width: 14px;
  height: 14px;
}
.edge-count {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  font-weight: 650;
}
.edge-card strong {
  font-size: 12px;
}
.edge-card p {
  font-size: 10px;
  color: #5b6759;
  line-height: 1.5;
  margin: 4px 0 0;
}
@media (max-width: 760px) {
  .book-two {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-tile {
    min-height: 0;
  }
}
/* Wins and achievements */
.wins-block {
  margin-top: 16px;
}
.win-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eaf3e2;
  border: 1px solid #d3e6c6;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 8px;
  animation: winIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.win-card:nth-child(3) {
  animation-delay: 0.08s;
}
.win-card:nth-child(4) {
  animation-delay: 0.16s;
}
.win-card > .icon {
  width: 22px;
  height: 22px;
  color: #fff;
  background: #467a45;
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
}
.win-card b {
  font-size: 13px;
  color: #2f5a36;
}
.win-card p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #5d735b;
  line-height: 1.45;
}
@keyframes winIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.unlock-banner {
  margin-top: 16px;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(120deg, #e9b95f, #f3d893, #e0a54c);
  background-size: 200% 100%;
  animation: shine 3s linear infinite;
}
.unlock-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #2f5940;
  border-radius: 11px;
  padding: 13px 16px;
  color: #f3f0dc;
  margin: 2px;
}
.unlock-item .badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbe5a6, #dca64d);
  display: grid;
  place-items: center;
  color: #5a3f12;
  flex-shrink: 0;
  animation: pop 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.4) both;
}
.unlock-item .eyebrow {
  color: #e8c37f;
}
.unlock-item b {
  display: block;
  font-size: 15px;
  margin: 2px 0;
}
.unlock-item small {
  font-size: 10px;
  color: #cfd8c0;
}
@keyframes shine {
  to {
    background-position: -200% 0;
  }
}
@keyframes pop {
  from {
    transform: scale(0.3) rotate(-20deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.report-grid .report-stat {
  animation: winIn 0.35s ease-out both;
}
.report-grid .report-stat:nth-child(2) {
  animation-delay: 0.04s;
}
.report-grid .report-stat:nth-child(3) {
  animation-delay: 0.08s;
}
.report-grid .report-stat:nth-child(4) {
  animation-delay: 0.12s;
}
.report-grid .report-stat:nth-child(5) {
  animation-delay: 0.16s;
}
.report-grid .report-stat:nth-child(6) {
  animation-delay: 0.2s;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.achievement {
  background: #f1f3ec;
  border-radius: 11px;
  padding: 11px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #676f60;
}
.achievement .badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e6da;
  display: grid;
  place-items: center;
}
.achievement .badge .icon {
  width: 17px;
  height: 17px;
}
.achievement b {
  font-size: 10px;
  line-height: 1.3;
}
.achievement small {
  font-size: 8.5px;
  line-height: 1.35;
}
.achievement.got {
  background: #f6efdc;
  color: #5f4b22;
}
.achievement.got .badge {
  background: radial-gradient(circle at 35% 30%, #fbe5a6, #dca64d);
  color: #5a3f12;
}
.motion-off .win-card,
.motion-off .unlock-banner,
.motion-off .unlock-item .badge,
.motion-off .report-stat,
.motion-off .book-body {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .win-card,
  .unlock-banner,
  .unlock-item .badge,
  .report-stat,
  .book-body {
    animation: none !important;
  }
}
.blame {
  display: inline-block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.3px;
  padding: 4px 7px;
  border-radius: 5px;
  margin: 2px 0 4px;
  background: #f6dfd3;
  color: #994d36;
}
.blame-factory {
  background: #f3e7cf;
  color: #8f6a2a;
}
.blame-transport {
  background: #e2ebf1;
  color: #4f6f86;
}
details.grouped summary {
  cursor: pointer;
  list-style: none;
}
details.grouped summary::-webkit-details-marker {
  display: none;
}
details.grouped[open] > .timeline-event {
  margin-left: 4px;
}
.unlock-item.multi {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
}
.unlock-grid > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.unlock-grid b {
  font-size: 12px;
  margin: 0;
}
.unlock-item .badge.small {
  width: 32px;
  height: 32px;
}
.unlock-item .badge.small .icon {
  width: 15px;
  height: 15px;
}
/* Team */
.team-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 9px;
  margin-bottom: 6px;
}
.team-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f1f4e8;
  border-top: 3px solid #b9c7a7;
}
.team-card.good {
  border-color: #6fae6a;
  background: #eef6e8;
}
.team-card.amber {
  border-color: #d6a655;
  background: #faf3e3;
}
.team-card.bad {
  border-color: #d0896a;
  background: #fbf1ea;
}
.team-card canvas,
.team-voice canvas {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #e6ecdb;
  flex-shrink: 0;
}
.team-card b {
  display: block;
  font-size: 12px;
  margin: 2px 0;
}
.team-card p {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  color: #5f6d5c;
}
.team-voice {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f1f4e8;
  font-size: 10.5px;
  line-height: 1.4;
  color: #4f5f4c;
}
.team-voice b {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #626e5c;
  margin-bottom: 2px;
}
.team-voice.bad {
  background: #fbf1ea;
}
.team-voice.amber {
  background: #faf3e3;
}
.team-voice.good {
  background: #eef6e8;
}
.team-voice canvas {
  width: 30px;
  height: 30px;
}
#book-notification {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f9b57;
  position: absolute;
  top: 4px;
  right: 4px;
}
.trend {
  font-style: normal;
  font-size: 8px;
  margin-left: 5px;
  vertical-align: middle;
}
.trend.up {
  color: #5f9b57;
}
.trend.down {
  color: #c0704f;
}
.health-stat.bad .trend.down {
  color: #c0704f;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
  margin-bottom: 22px;
}
.record {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f7f0dc, #f1ead3);
}
.record .icon {
  color: #c1924a;
  margin-top: 2px;
}
.record b {
  display: block;
  font-size: 15px;
  margin: 2px 0;
}
.record small {
  font-size: 9.5px;
  color: #7d7560;
  line-height: 1.35;
}
/* First-shift coach */
.coach {
  background: #f4efe2;
  border: 1px solid #eadfc4;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
}
.coach .eyebrow {
  color: #826431;
}
.coach-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  color: #8a826d;
}
.coach-step i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8dfc6;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.coach-step i .icon {
  width: 12px;
  height: 12px;
}
.coach-step.done {
  color: #5f7a54;
}
.coach-step.done i {
  background: #6f9a5a;
  color: #fff;
}
.coach-step.done b {
  text-decoration: line-through;
  text-decoration-color: #9fb58f;
}
.coach-step.next {
  color: #3f3620;
}
.coach-step.next i {
  background: #d9a04f;
  color: #fff;
}
.coach-step b {
  font-size: 11.5px;
  display: block;
}
.coach-step small {
  display: block;
  font-size: 10.5px;
  line-height: 1.45;
  color: #6d6450;
  margin-top: 2px;
}
.report-coach {
  margin-top: 16px;
}
.report-coach p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #5d5540;
  margin: 6px 0 0;
}
.end-shift.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #d9a04f88;
  }
  50% {
    box-shadow: 0 0 0 9px #d9a04f00;
  }
}
.motion-off .end-shift.pulse {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .end-shift.pulse {
    animation: none;
  }
}
/* 0.3 · shift story, explanations, chapters */
.report-top {
  justify-content: space-between;
  align-items: flex-start;
}
.day-check {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  min-width: 168px;
}
.day-check .check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #f1f3ec;
  color: #646e67;
}
.day-check .check > .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.day-check .check span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.day-check small {
  font-size: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.day-check b {
  font-size: 12px;
  font-weight: 600;
}
.day-check .good {
  background: #e3f0dc;
  color: #2f6a3c;
}
.day-check .ok {
  background: #f6efdc;
  color: #82642a;
}
.day-check .bad {
  background: #f8e4dc;
  color: #a4503a;
}
.why {
  margin-top: 8px;
  font-size: 11px;
}
.why summary {
  cursor: pointer;
  color: #35664d;
  font-weight: 550;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.why summary::-webkit-details-marker {
  display: none;
}
.why summary:before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d6e7cf;
  font-size: 11px;
  line-height: 1;
}
.why[open] summary:before {
  content: '−';
}
.why summary:focus-visible {
  outline: 2px solid #35664d;
  outline-offset: 3px;
  border-radius: 4px;
}
.why-chain {
  list-style: none;
  margin: 10px 0 2px;
  padding: 0;
  counter-reset: why;
}
.why-chain li {
  position: relative;
  padding: 0 0 10px 26px;
  line-height: 1.5;
  color: #44564b;
  counter-increment: why;
}
.why-chain li:before {
  content: counter(why);
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #bcd3b2;
  color: #4f7a4d;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.why-chain li:not(:last-child):after {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 2px;
  width: 1px;
  background: #bcd3b2;
}
.callback-card .why summary {
  color: #9c5b39;
}
.callback-card .why summary:before {
  background: #f1d8c6;
}
.callback-card .why-chain li {
  color: #6c5a4d;
}
.callback-card .why-chain li:before {
  border-color: #e6c2a8;
  color: #9c5b39;
}
.callback-card .why-chain li:not(:last-child):after {
  background: #e6c2a8;
}
.win-card {
  position: relative;
  overflow: hidden;
}
.win-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, #ffffff99 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 1.4s 0.35s ease-out both;
  pointer-events: none;
}
@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}
.confetti {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 3;
}
.confetti i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 0.6);
  background: var(--c);
  transform: rotate(var(--r));
  animation: fall 1.9s var(--d) cubic-bezier(0.3, 0.6, 0.5, 1) both;
  image-rendering: pixelated;
}
@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(var(--r));
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(420px) rotate(calc(var(--r) + 300deg));
  }
}
.review-note {
  font-size: 10px;
  color: #606b65;
  line-height: 1.5;
  margin: 10px 0 0;
}
.report-event .count {
  font-size: 10px;
  color: #a0714f;
  font-weight: 600;
}
.chapter-closed {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f4efe2;
  border: 1px solid #eadfc4;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
}
.chapter-closed .grade-badge {
  width: 40px;
  height: 40px;
  font-size: 21px;
  border-radius: 10px;
}
.chapter-closed .eyebrow {
  color: #826431;
}
.chapter-closed p {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 0;
  color: #5f5440;
}
.chapter-closed p .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.chapter-closed p.good .icon {
  color: #467a45;
}
.chapter-closed p.bad .icon {
  color: #c06b4a;
}
.because {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f4efe2;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #5f5440;
}
.because .icon {
  width: 15px;
  height: 15px;
  color: #b08a45;
  flex-shrink: 0;
  margin-top: 1px;
}
.because b {
  display: block;
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #826431;
  margin-bottom: 2px;
}
.timeline-event.story strong {
  color: #7a5a24;
}
.timeline-event.story:before {
  background: #e0b35e;
}
.achievement .progress {
  width: 80%;
  height: 4px;
  border-radius: 3px;
  background: #dfe4d6;
  overflow: hidden;
  margin-top: 3px;
}
.achievement .progress i {
  display: block;
  height: 100%;
  background: #c9a24f;
  border-radius: 3px;
}
.achievement .progress-note {
  font-size: 8px;
  color: #756c50;
}
.career-track {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 6px 2px 12px;
  margin-bottom: 4px;
  scrollbar-width: thin;
}
.track-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 62px;
  color: #a3ab9c;
}
.track-stop > b,
.track-stop > .icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  padding: 0;
}
.track-stop > .icon {
  padding: 7px;
  box-sizing: border-box;
  background: #e9ece3;
  color: #676f60;
}
.track-stop > b {
  color: #fff;
}
.track-stop small {
  font-size: 8px;
  text-align: center;
  line-height: 1.2;
}
.track-stop.done small {
  color: #56655c;
}
.track-stop.now > .icon {
  background: #285a48;
  color: #fff;
  box-shadow: 0 0 0 3px #d8e9dc;
}
.track-stop.now small {
  color: #285a48;
  font-weight: 600;
}
.track-link {
  flex: 1;
  min-width: 10px;
  height: 2px;
  background: #dfe4d6;
  margin-bottom: 18px;
}
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chapter-card {
  background: #f5f6ef;
  border: 1px solid #e5e9df;
  border-radius: 14px;
  padding: 16px 18px;
}
.chapter-card.current {
  background: #fff;
  border-color: #bcd3b2;
  box-shadow: 0 0 0 3px #eaf3e2;
}
.chapter-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.chapter-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chapter-card h3 .icon {
  width: 18px;
  height: 18px;
  color: #285a48;
}
.chapter-card h3 small {
  font-size: 11px;
  color: #606b65;
  font-weight: 500;
}
.chapter-card .grade-badge {
  width: 40px;
  height: 40px;
  font-size: 21px;
  border-radius: 10px;
}
.moment {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.5;
  color: #44564b;
  margin: 9px 0 0;
}
.moment .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.moment b {
  display: block;
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.moment.good .icon,
.moment.good b {
  color: #3f7a45;
}
.moment.bad .icon,
.moment.bad b {
  color: #a75642;
}
.moment.story .icon,
.moment.story b {
  color: #826431;
}
.legacy {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed #d6dccd;
}
.legacy .eyebrow {
  font-size: 7.5px;
}
.legacy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 6px;
}
.legacy span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: #606b65;
}
.legacy span b {
  font-size: 15px;
  color: #243d36;
  font-weight: 650;
}
.legacy .loss b {
  color: #a75642;
}
.legacy .gain b {
  color: #3f7a45;
}
.legacy small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: #656f68;
}
.motion-off .confetti,
.motion-off .win-card:after {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .confetti,
  .win-card:after {
    display: none;
  }
}
@media (max-width: 760px) {
  .report-top {
    flex-direction: column;
    align-items: stretch;
  }
  .day-check {
    flex-direction: row;
    min-width: 0;
  }
  .day-check .check {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 8px;
  }
  .day-check b {
    font-size: 11px;
  }
  .chapter-card {
    padding: 14px;
  }
  .track-stop {
    min-width: 52px;
  }
}
