.app .app__body {
  display: block;
  padding: 32px;
  overflow-x: hidden;
  background: linear-gradient(135deg, #fbfaf6, #f4f1e9);
  color-scheme: light;
}
.app .ps-screen {
  --ink: #0e2846;
  --ink-soft: #43525b;
  --muted: #76746d;
  --line: #ded7ca;
  --panel: #fffefa;
  --hover: #f3efe5;
  --accent: #0e2846;
  --accent-deep: #0e2846;
  --accent-soft: #e0e7e7;
  --ok: #0e2846;
  --warn: #997128;
  --crit: #a45648;
  --ps-brass: #b59154;
  --ps-glaze: linear-gradient(145deg, #ffffff, #fffefa 58%, #f1ede2);
  color: var(--ink);
  font-family: var(--font-body);
  min-width: 0;
}
.app .ps-screen :focus-visible { outline: 2px solid #95733b; outline-offset: 4px; }
.app .ps-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.app .ps-heading h3 { font: 500 25px/1.2 var(--font-body); letter-spacing: -.035em; color: var(--ink); }
.app .ps-heading p, .app .ps-card > p { font-size: 11px; line-height: 1.55; color: var(--muted); margin: 7px 0 0; }
.app .ps-date { flex: none; font-size: 11px; font-weight: 500; letter-spacing: .09em; padding: 7px 13px; color: #947744; border: 1px solid #d4c7ad; border-radius: 5px; background: linear-gradient(145deg, #fffcf4, #f0e9da); box-shadow: inset 0 1px 0 #fff; }
.app .ps-card { min-width: 0; position: relative; background: var(--ps-glaze); border: 1px solid var(--line); border-radius: 18px; padding: 25px; box-shadow: inset 0 0 0 3px #fff, 0 12px 20px -19px #65553b55; }
.app .ps-card h4 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.app .ps-strategy { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; }
.app .ps-goal { text-align: center; }
.app .ps-goal h4, .app .ps-goal > p { text-align: left; }
.app .ps-gauge { width: 232px; max-width: 100%; display: block; margin: 27px auto 0; overflow: visible; }
.app .ps-gauge text { font: 500 40px var(--font-body); letter-spacing: -.06em; fill: var(--ink); }
.app .ps-goal-value { font-size: 12px; color: var(--muted); margin-top: 5px; font-variant-numeric: tabular-nums; }
.app .ps-goal-value b { color: var(--ink); font-size: 16px; font-weight: 500; }
.app .ps-goal-note { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 17px; margin-top: 24px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.app .ps-goal-note strong { color: #8c6b35; font-size: 17px; font-weight: 500; letter-spacing: -.035em; white-space: nowrap; }
.app .ps-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 22px 0; margin: 4px 0 20px; border-block: 1px solid var(--line); }
.app .ps-metrics--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app .ps-strategy + .ps-metrics { margin: 27px 0 0; border-bottom: 0; padding-bottom: 2px; }
.app .ps-metric { background: transparent; border: 0; border-radius: 0; padding: 0 20px; min-width: 0; border-left: 1px solid var(--line); }
.app .ps-metric:first-child { border-left: 0; padding-left: 0; }
.app .ps-metric:last-child { padding-right: 0; }
.app .ps-metric > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; min-height: 15px; }
.app .ps-metric > b { display: block; color: var(--ink); font: 500 clamp(20px, 2vw, 27px)/1.2 var(--font-body); letter-spacing: -.045em; margin: 9px 0 6px; font-variant-numeric: tabular-nums; }
.app .ps-metric > small { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; }
.app .ps-warning > b { color: #8c6b35; }
.app .ps-chart-title { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.app .ps-chart-title > span { font-size: 11px; color: var(--muted); }
.app .ps-chart-wrap { margin-top: 18px; }
.app .ps-chart-unit { font-size: 10px; color: var(--muted); margin-bottom: 11px; }
.app .ps-chart { position: relative; height: 185px; padding-left: 30px; margin-bottom: 30px; }
.app .ps-gridlines { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(4, 1fr); pointer-events: none; }
.app .ps-gridlines > span { font-size: 9px; color: #999084; border-top: 1px solid #eae5dc; line-height: 1.3; }
.app .ps-plot { height: 100%; position: relative; }
.app .ps-months { position: absolute; inset: 0; display: flex; gap: 4px; z-index: 2; }
.app .ps-month { padding: 0; border: 0; background: transparent; color: var(--muted); min-width: 0; flex: 1; position: relative; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: stretch; }
.app .ps-month > .ps-bar-area { position: relative; flex: 1; width: 100%; border-radius: 5px 5px 0 0; background: transparent; }
.app .ps-month > .ps-bar-area > i { position: absolute; bottom: 0; left: 24%; width: 52%; background: linear-gradient(90deg, #0e2846, #53768a 48%, #0e2846); opacity: .78; border-radius: 3px 3px 0 0; box-shadow: inset 1px 1px 0 #ffffff55, 1px 0 2px #243c4b10; transition: opacity .15s; }
.app .ps-month > span:last-child { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; }
.app .ps-month.is-selected > .ps-bar-area { background: linear-gradient(0deg, #cbb47b16, transparent); }
.app .ps-month.is-selected > .ps-bar-area > i, .app .ps-month:hover > .ps-bar-area > i { opacity: 1; }
.app .ps-month.is-selected > span:last-child { color: #8a6b34; font-weight: 600; }
.app .ps-months--plan .ps-bar-area > i { background: linear-gradient(90deg, #dfd9cb, #f1ecdf 48%, #ddd5c5); opacity: 1; border: 1px solid #d5c9b4; box-shadow: inset 1px 0 0 #fffefa; }
.app .ps-fact-line { position: absolute; inset: 0; height: 100%; width: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.app .ps-target { position: absolute; left: 0; right: 0; border-top: 1px dashed #b59154; z-index: 3; pointer-events: none; }
.app .ps-target > span { position: absolute; right: 0; bottom: 4px; font-size: 9px; color: #947744; background: #fffefa; padding-left: 6px; }
.app .ps-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.app .ps-legend > span { display: flex; align-items: center; gap: 6px; }
.app .ps-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.app .ps-legend .ps-plan-key { background: #e8e0cf; border: 1px solid #cbb893; }
.app .ps-detail { color: var(--ink-soft); font-size: 11px; line-height: 1.6; background: transparent; border-radius: 0; border-top: 1px solid var(--line); padding: 13px 0 0; margin-top: 16px; min-height: 32px; font-variant-numeric: tabular-nums; }
.app .ps-ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.app .ps-ledger { border: 1px solid var(--line); border-radius: 15px; background: var(--ps-glaze); overflow: hidden; align-self: start; box-shadow: inset 0 0 0 3px #fff, 0 12px 20px -19px #65553b55; }
.app .ps-ledger summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 18px; font-size: 14px; gap: 12px; background: transparent; color: var(--ink); }
.app .ps-ledger summary > b { font-weight: 500; white-space: nowrap; letter-spacing: -.025em; }
.app .ps-ledger summary > span:before { content: '−'; margin-right: 10px; color: #9e7e45; }
.app .ps-ledger:not([open]) summary > span:before { content: '+'; }
.app .ps-ledger summary::-webkit-details-marker { display: none; }
.app .ps-ledger table { width: 100%; border-collapse: collapse; font-size: 11px; }
.app .ps-ledger th { color: var(--muted); font-weight: 400; font-size: 10px; text-align: left; background: #f2eee422; }
.app .ps-ledger th, .app .ps-ledger td { padding: 12px 15px; border-bottom: 1px solid #e9e3d9; }
.app .ps-ledger tr:last-child td { border-bottom: 0; padding-bottom: 18px; }
.app .ps-ledger td:nth-child(2) { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.app .ps-ledger td:last-child { width: 75px; position: relative; text-align: right; font-size: 10px; color: var(--muted); }
.app .ps-share { height: 3px; background: #eae5db; margin-bottom: 4px; }
.app .ps-share > i { display: block; height: 3px; border-radius: 2px; }
.app .ps-footnote { color: var(--muted); font-size: 10px; line-height: 1.65; margin-top: 16px; }
.app .ps-team { display: grid; gap: 4px; margin-top: 20px; }
.app .ps-person { display: grid; grid-template-columns: 150px minmax(0, 1fr) 75px; gap: 18px; align-items: center; border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 8px; padding: 11px 8px; text-align: left; cursor: pointer; font-family: inherit; }
.app .ps-person:hover, .app .ps-person[aria-pressed=true] { background: #f2ede280; border-color: #e6dece; }
.app .ps-person b { font-size: 12px; font-weight: 500; }
.app .ps-person small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.app .ps-person strong { font-size: 12px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.app .ps-load-track { position: relative; background: #eae5db; height: 9px; border-radius: 5px; box-shadow: inset 0 1px 1px #a6967422; }
.app .ps-load-track > i { display: block; height: 100%; border-radius: 5px; box-shadow: inset 0 1px 1px #ffffff66; }
.app .ps-load-track > em { position: absolute; left: 80%; top: -5px; bottom: -5px; border-left: 1px dashed #a5864d; }
.app .ps-heat-scroll { overflow-x: auto; padding: 3px 3px 7px; margin-top: 19px; }
.app .ps-heat { border-collapse: separate; border-spacing: 5px; width: 100%; min-width: 670px; font-size: 11px; }
.app .ps-heat th { text-align: center; font-size: 10px; color: var(--muted); font-weight: 400; padding-bottom: 8px; }
.app .ps-heat th:first-child { text-align: left; width: 132px; color: var(--ink); font-size: 11px; }
.app .ps-heat th small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.app .ps-heat td { padding: 0; }
.app .ps-heat button { width: 100%; min-height: 38px; padding: 4px; border: 1px solid #ffffffbb; border-radius: 5px; font: 500 11px var(--font-body); color: var(--ink); cursor: pointer; box-shadow: 0 1px 2px #65553b12, inset 0 1px 0 #ffffff55; }
.app .ps-heat button:hover, .app .ps-heat button[aria-pressed=true] { outline: 2px solid #947744; outline-offset: 1px; }
.app .ps-screen .cool { background: #eef0ed; }
.app .ps-screen .steady { background: #d9e3e3; }
.app .ps-screen .warm { background: #e9d8b5; }
.app .ps-screen .hot { background: #e5c3b3; }
@media (max-width: 1000px) {
  .app .ps-strategy { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
  .app .ps-ledger-grid { grid-template-columns: 1fr; }
  .app .ps-chart-title { flex-wrap: wrap; }
  .app .ps-metric { padding-inline: 14px; }
}
@media (max-width: 700px) {
  .app .app__body { padding: 22px; }
  .app .ps-heading h3 { font-size: 22px; }
  .app .ps-strategy { grid-template-columns: 1fr; }
  .app .ps-card { padding: 22px; }
  .app .ps-goal { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 14px; }
  .app .ps-goal h4, .app .ps-goal > p { grid-column: 1; }
  .app .ps-goal .ps-gauge { grid-column: 2; grid-row: 1/5; width: 190px; margin: 0; }
  .app .ps-goal-value { text-align: left; margin-top: 12px; }
  .app .ps-goal-note { grid-column: 1; display: block; text-align: left; margin-top: 14px; padding-top: 10px; }
  .app .ps-goal-note strong { display: block; font-size: 16px; margin-top: 3px; }
  .app .ps-metrics, .app .ps-metrics--three { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .app .ps-metric:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .app .ps-metrics--three > .ps-metric:last-child { grid-column: 1/-1; padding: 17px 0 0; border-top: 1px solid var(--line); }
  .app .ps-metric > b { font-size: 24px; }
  .app .ps-person { grid-template-columns: 110px minmax(0, 1fr) 61px; gap: 10px; padding-inline: 5px; }
  .app .ps-person strong, .app .ps-person b { font-size: 11px; }
}
@media (max-width: 480px) {
  .app .app__body { padding: 17px; }
  .app .ps-heading { gap: 10px; margin-bottom: 21px; }
  .app .ps-heading h3 { font-size: 19px; }
  .app .ps-heading p { font-size: 10px; }
  .app .ps-date { padding: 6px 9px; font-size: 10px; }
  .app .ps-card { padding: 18px; border-radius: 14px; }
  .app .ps-goal { grid-template-columns: 1fr; }
  .app .ps-goal .ps-gauge { grid-column: 1; grid-row: auto; width: 210px; margin: 22px auto 0; }
  .app .ps-goal-value { text-align: center; }
  .app .ps-goal-note { display: flex; margin-top: 18px; padding-top: 14px; }
  .app .ps-goal-note strong { margin: 0; }
  .app .ps-metric > b { font-size: 21px; }
  .app .ps-metric > span { font-size: 10px; }
  .app .ps-chart { height: 165px; padding-left: 23px; }
  .app .ps-month > span:last-child { font-size: 8px; }
  .app .ps-months { gap: 2px; }
  .app .ps-detail { font-size: 10px; }
  .app .ps-ledger td, .app .ps-ledger th { padding: 10px; }
  .app .ps-ledger summary { padding: 17px 14px; font-size: 13px; }
  .app .ps-person { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 12px 8px; }
  .app .ps-person > span:first-child { grid-column: 1; grid-row: 1; }
  .app .ps-person strong { grid-column: 2; grid-row: 1; font-size: 12px; }
  .app .ps-person .ps-load-track { grid-column: 1/-1; grid-row: 2; height: 8px; }
}
@media (max-width: 360px) { .app .ps-metric > b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .app .ps-month > .ps-bar-area > i { transition: none; } }
