:root {
  color-scheme: light;
  --bg: #f6f6f2;
  --surface: #fff;
  --text: #273028;
  --muted: #718076;
  --border: #dce3d9;
  --green: #15743a;
  --accent: #2baa59;
  --wash: #edf6ee;
  --track: #e9eee7;
  --shadow: 0 8px 30px rgba(32, 54, 38, 0.045);
}
html.dark {
  color-scheme: dark;
  --bg: #1e1a16;
  --surface: #29241e;
  --text: #ece4d8;
  --muted: #b2aa9e;
  --border: #4a433b;
  --green: #9bf4b1;
  --accent: #73ea93;
  --wash: #2c3c2d;
  --track: #3b3831;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI',
    Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.shell {
  max-width: 1184px;
  margin: auto;
  padding: 0 36px;
}
.header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.head-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.crumb a {
  color: var(--text);
}
.crumb b {
  color: var(--green);
}
.iconbtn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.ico {
  width: 17px;
  height: 17px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.demo {
  padding: 7px 16px;
  background: #e8f3e9;
  color: #327a49;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}
.dark .demo {
  background: #293b2b;
  color: #b7dfba;
}
.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 53px 0 27px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.eyebrow .ico {
  width: 15px;
  height: 15px;
}
h1 {
  font-size: clamp(30px, 3.8vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin: 9px 0 6px;
  font-weight: 700;
}
h2 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
.sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.deadline {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px;
  box-shadow: var(--shadow);
  min-width: 180px;
}
.iconbox {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--wash);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}
.deadline small,
.label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.deadline strong {
  font-size: 15px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px 20px;
  min-height: 112px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.stat-top .ico {
  width: 16px;
  height: 16px;
  color: var(--green);
}
.stat strong {
  font-size: 26px;
  letter-spacing: -0.025em;
  display: block;
  margin-top: 7px;
  font-weight: 700;
}
.stat strong small {
  font-size: 12px;
  margin-left: 4px;
  font-weight: 500;
  color: var(--muted);
}
.section {
  margin-top: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 13px;
  gap: 10px;
}
.section-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.card {
  padding: 22px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 14px;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-heading .ico {
  color: var(--green);
}
.card-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.heat-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 22px 0 12px;
  padding: 2px 3px 7px;
}
.heat {
  width: 100%;
  min-width: 0;
}
.months {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  margin-left: 26px;
  color: var(--muted);
  font-size: 11px;
  height: 25px;
}
.months span {
  white-space: nowrap;
}
.heat-inner {
  display: flex;
  gap: 8px;
}
.weekday {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  width: 18px;
}
.squares {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  flex: 1;
}
.day {
  border: 0;
  border-radius: 4px;
  background: #edf0ea;
  padding: 0;
  aspect-ratio: 1;
  min-width: 0;
}
.day[data-v='1'] {
  background: #c5e8c7;
}
.day[data-v='2'] {
  background: #83d495;
}
.day[data-v='3'] {
  background: #46b96c;
}
.day[data-v='4'] {
  background: #147b3d;
}
.dark .day {
  background: #47443a;
}
.dark .day[data-v='1'] {
  background: #355c3d;
}
.dark .day[data-v='2'] {
  background: #438751;
}
.dark .day[data-v='3'] {
  background: #5ebf72;
}
.dark .day[data-v='4'] {
  background: #9bf4b1;
}
.day:not(:disabled):hover,
.day:focus-visible,
.day.selected {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.day.future {
  background: transparent;
  border: 1px dashed #71695e;
}
.day.outside {
  visibility: hidden;
  pointer-events: none;
}
.legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.swatches {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.swatches i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
}
.selected-panel {
  display: flex;
  flex-direction: column;
}
.date-row {
  margin: 17px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.date-row strong {
  font-size: 19px;
}
.date-row span {
  font-size: 12px;
  color: var(--muted);
}
.time {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin: 10px 0;
}
.note {
  background: var(--bg);
  border-radius: 10px;
  padding: 15px 16px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
  min-height: 88px;
  overflow-wrap: anywhere;
}
.note em {
  font-style: normal;
  color: var(--muted);
}
.donut-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  min-width: 0;
}
.donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.donut-center {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.donut-center small {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 2px;
}
.donut-key {
  flex: 1;
  min-width: 0;
}
.donut-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  font-size: 12px;
}
.donut-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.donut-row b {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.donut-row i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
}
.breakdown {
  margin-top: 19px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.breakdown h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breakdown h3 .ico {
  color: var(--green);
  width: 15px;
}
.row {
  margin-top: 12px;
}
.row-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.row-line span:last-child {
  white-space: nowrap;
  color: var(--muted);
}
.meter {
  height: 5px;
  border-radius: 10px;
  background: var(--track);
  overflow: hidden;
  margin-top: 5px;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: #63bd7e;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 13px 0 0;
}
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.metric {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 17px 0 0;
}
.metric small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.chart {
  height: 150px;
  margin-top: 14px;
  overflow: hidden;
}
.chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.chart {
  touch-action: pan-y;
  cursor: crosshair;
  position: relative;
  overflow: visible;
}
.chart-popup {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -115%);
  padding: 6px 9px;
  border-radius: 7px;
  background: #273028;
  color: white;
  font-size: 11px;
  width: max-content;
  max-width: min(300px, calc(100vw - 56px));
  white-space: normal;
  overflow-wrap: normal;
  pointer-events: none;
  box-shadow: 0 3px 12px #0002;
}
.chart-popup[hidden] {
  display: none;
}
.chart:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.chart-readout {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  min-height: 22px;
  margin: 2px 0 4px;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.chart-note {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}
.footer {
  margin: 38px 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.proto-note {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts {
    grid-template-columns: 1fr;
  }
  .hero {
    margin-top: 38px;
  }
}
@media (max-width: 520px) {
  .shell {
    padding: 0 18px;
  }
  .header .shell {
    padding: 0 18px;
  }
  .head-inner {
    min-height: 58px;
  }
  .hero {
    align-items: flex-start;
    margin: 28px 0 20px;
    flex-direction: column;
    gap: 14px;
  }
  .deadline {
    width: 100%;
    padding: 9px 12px;
  }
  .deadline .iconbox {
    width: 34px;
    height: 34px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
    min-height: 93px;
  }
  .stat strong {
    font-size: 22px;
  }
  .card {
    padding: 17px;
  }
  .section {
    margin-top: 23px;
  }
  .squares {
    grid-template-rows: repeat(7, 1fr);
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
  }
  .donut {
    width: 108px;
    height: 108px;
  }
  .donut-center {
    width: 72px;
    height: 72px;
  }
  .donut-layout {
    gap: 14px;
  }
  .heat-scroll {
    margin-top: 16px;
  }
  .section-head p {
    font-size: 11px;
  }
  .chart {
    height: 130px;
  }
  .footer {
    display: block;
  }
  .footer span {
    display: block;
  }
}
.layout {
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  align-items: stretch;
}
.heat {
  width: 100%;
  max-width: 280px;
}
.heat-scroll {
  margin: 4px 0 8px;
  overflow: visible;
}
.months {
  grid-template-columns: repeat(10, 22px);
  gap: 4px;
  margin-left: 26px;
  height: 21px;
}
.squares {
  flex: none;
  grid-template-columns: repeat(10, 22px);
  grid-template-rows: repeat(7, 22px);
  gap: 4px;
}
.day {
  width: 22px;
  height: 22px;
}
.layout > .card {
  padding: 18px;
}
.date-row {
  margin-top: 0;
}
.note {
  min-height: 0;
  height: 8em;
  max-height: 8em;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 10px 13px;
  line-height: 1.65;
  scrollbar-width: thin;
}
.note:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.breakdown {
  margin-top: 12px;
  padding-top: 11px;
}
.donut-layout {
  margin-top: 10px;
  gap: 15px;
}
#work {
  height: 145px;
  overflow: auto;
  scrollbar-width: thin;
}
#work:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.donut {
  width: 100px;
  height: 100px;
}
.donut-center {
  width: 68px;
  height: 68px;
}
.donut-row {
  margin: 5px 0;
}
.hero {
  margin: 28px 0 18px;
}
.stat {
  min-height: 80px;
  padding: 13px 17px;
}
.stat strong {
  font-size: 23px;
  margin-top: 3px;
}
.section {
  margin-top: 20px;
}
.section-head {
  margin-bottom: 9px;
}
.head-inner {
  min-height: 54px;
}
.chart-popup {
  background: #e6eee2;
  color: #1d2a1e;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .layout > .card {
    width: 100%;
  }
  .heat {
    margin: 0 auto;
  }
  .legend {
    max-width: 280px;
    margin: 0 auto;
  }
  .hero {
    margin: 24px 0 16px;
  }
}
@media (max-width: 520px) {
  .shell,
  .header .shell {
    padding: 0 16px;
  }
  .head-inner {
    min-height: 45px;
  }
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 17px 0 13px;
  }
  .hero h1 {
    font-size: 24px;
    margin: 3px 0;
  }
  .eyebrow {
    font-size: 10px;
  }
  .deadline {
    width: auto;
    min-width: 0;
    padding: 7px 10px;
    gap: 7px;
  }
  .deadline .iconbox {
    width: 28px;
    height: 28px;
  }
  .deadline strong {
    font-size: 12px;
  }
  .deadline small {
    font-size: 10px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    min-height: 0;
    padding: 9px 12px;
  }
  .stat strong {
    font-size: 19px;
  }
  .section {
    margin-top: 14px;
  }
  .section-head h2 {
    font-size: 14px;
  }
  .layout {
    gap: 8px;
  }
  .layout > .card {
    padding: 12px 14px;
  }
  .heat {
    max-width: 230px;
  }
  .heat-scroll {
    margin: 0 0 3px;
    padding: 0;
  }
  .months {
    grid-template-columns: repeat(10, 18px);
    gap: 3px;
    margin-left: 24px;
    height: 18px;
    font-size: 10px;
  }
  .heat-inner {
    gap: 6px;
  }
  .weekday {
    width: 18px;
  }
  .squares {
    grid-template-columns: repeat(10, 18px);
    grid-template-rows: repeat(7, 18px);
    gap: 3px;
  }
  .day {
    width: 18px;
    height: 18px;
  }
  .legend {
    max-width: 230px;
    font-size: 10px;
  }
  .swatches i {
    width: 8px;
    height: 8px;
  }
  .date-row strong {
    font-size: 16px;
  }
  .time {
    margin: 3px 0;
    font-size: 12px;
  }
  .note {
    font-size: 12px;
    height: 6.5em;
    max-height: 6.5em;
    padding: 7px 10px;
    line-height: 1.55;
  }
  #work {
    height: 125px;
  }
  .breakdown {
    margin-top: 8px;
    padding-top: 7px;
  }
  .breakdown h3 {
    font-size: 12px;
  }
  .donut-layout {
    margin-top: 7px;
    gap: 12px;
  }
  .donut {
    width: 72px;
    height: 72px;
  }
  .donut-center {
    width: 50px;
    height: 50px;
    font-size: 10px;
  }
  .donut-center small {
    font-size: 8px;
  }
  .donut-row {
    margin: 3px 0;
    font-size: 11px;
  }
  .donut-row b {
    font-size: 10px;
  }
}
@media (min-width: 851px) {
  .layout > section.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .layout > section.card .heat {
    margin-inline: auto;
  }
  .layout > section.card .legend {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
}

:root {
  color-scheme: dark;
  --bg: #1e1a16;
  --surface: #29241e;
  --text: #ece4d8;
  --muted: #b2aa9e;
  --border: #4a433b;
  --green: #9bf4b1;
  --accent: #73ea93;
  --wash: #2c3c2d;
  --track: #3b3831;
  --shadow: none;
}
.status {
  color: var(--muted);
  padding: 16px 0;
}
.status.error {
  color: #ffb7ac;
}
.status:empty {
  display: none;
}
