#daily-view {
  color: var(--ink, #1c302c);
  font-variant-numeric: tabular-nums;
}
.daily-intro {
  margin: 0 0 28px;
}
.daily-intro h1 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 580;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.daily-intro p, .daily-early p, .method-guide p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted, #546761);
}
.daily-intro p {
  margin: 10px 0 0;
  max-width: 720px;
}
.daily-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 18px;
}
.daily-columns[hidden], .daily-early[hidden] { display: none; }
.daily-card, .method-guide {
  min-width: 0;
  background: var(--card, #fff);
  border: 1px solid var(--line, #dce2da);
  border-radius: 16px;
  padding: clamp(18px, 2.4vw, 32px);
}
#daily-view h2 {
  margin: 0;
  font-size: clamp(20px, 2.15vw, 27px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 600;
}
.daily-section-head, .daily-range-label, .daily-early, .daily-breakdown > div, .daily-balances > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.daily-section-head {
  flex-wrap: wrap;
}
.daily-select-wrap {
  position: relative;
  max-width: 100%;
}
.daily-select-wrap::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  position: absolute;
  right: 14px;
  top: 43%;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
#daily-period {
  display: block;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  appearance: none;
  height: 39px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--card);
  max-width: 100%;
  cursor: pointer;
}
#daily-view :is(select, input, button, a, summary):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.daily-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.daily-readout {
  margin: 28px 0 20px;
}
.daily-readout p, .daily-statement > p:first-of-type, .daily-statement-main > span, .daily-range-label, .daily-recipe > span, .daily-axis {
  font-size: 14px;
  color: var(--muted);
}
.daily-readout p, .daily-statement > p:first-of-type {
  margin: 0 0 4px;
}
#daily-opening {
  margin: 8px 0 0;
  line-height: 1.4;
}
.daily-readout strong {
  display: block;
  font-size: clamp(35px, 3.5vw, 48px);
  line-height: 1.1;
  color: var(--green);
  font-weight: 550;
  letter-spacing: -.045em;
}
.daily-plot {
  height: clamp(98px, 10vw, 134px);
  display: grid;
  grid-template-columns: repeat(var(--daily-count), minmax(0, 1fr));
  align-items: end;
  gap: clamp(2px, .34vw, 6px);
  border-bottom: 1px solid #b5c6bc;
  background-image: repeating-linear-gradient(to top, transparent 0, transparent calc(33.33% - 1px), #e6ece6 calc(33.33% - 1px), #e6ece6 33.33%);
  cursor: crosshair;
}
.daily-plot i {
  display: block;
  height: var(--daily-height);
  background: #d3ded5;
  border-radius: 3px 3px 0 0;
}
.daily-plot .past {
  background: #63a889;
}
.daily-plot .selected {
  background: #b86f3b;
}
.daily-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
}
.daily-range-label {
  margin-top: 22px;
}
.daily-range-label label {
  font-weight: 550;
  color: var(--ink);
}
#daily-day {
  display: block;
  margin: 4px 0 0;
  width: 100%;
  padding: 0;
  height: 28px;
  border: 0;
  accent-color: var(--green);
  appearance: none;
  background: transparent;
  cursor: pointer;
}
#daily-day::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--green) 0 var(--daily-progress), #d9e3da var(--daily-progress) 100%);
}
#daily-day::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
#daily-day::-moz-range-track { height: 4px; background: #d9e3da; }
#daily-day::-moz-range-progress { height: 4px; background: var(--green); }
#daily-day::-moz-range-thumb { border: 2px solid white; background: var(--green); }
.daily-recipe {
  display: grid;
  margin-top: 12px;
  padding: 15px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 5px 12px;
  border-radius: 9px;
  background: #f0f5ef;
}
.daily-recipe strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.025em;
}
#daily-formula {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}
.daily-statement > p:first-of-type {
  margin: 8px 0 0;
}
.daily-statement-main {
  display: grid;
  gap: 6px;
  margin: 28px 0 16px;
}
.daily-statement-main strong {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 550;
}
.daily-split {
  display: flex;
  overflow: hidden;
  height: 12px;
  border-radius: 3px;
  background: var(--line);
}
#daily-interest-share, .daily-key-interest { background: var(--apricot, #e6ae79); }
#daily-principal-share, .daily-key-principal { background: var(--green); }
.daily-breakdown, .daily-balances {
  margin: 16px 0 0;
}
.daily-breakdown > div, .daily-balances > div { margin: 12px 0; align-items: baseline; }
.daily-breakdown dt, .daily-balances dt { font-size: 15px; color: var(--muted); }
.daily-breakdown dt {
  display: flex;
  align-items: center;
  gap: 8px;
}
.daily-breakdown i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.daily-breakdown dd, .daily-balances dd {
  margin: 0;
  font-size: 16px;
  font-weight: 550;
  text-align: right;
}
.daily-balances {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 22px;
}
.daily-afterword, #daily-carry {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.daily-early {
  margin: 20px 0;
  padding: 24px clamp(18px, 2.4vw, 32px);
  border: 1px solid #d5e2d4;
  border-radius: 15px;
  background: #eaf1e8;
  gap: 24px;
}
.daily-early p {
  max-width: 780px;
  margin: 8px 0 0;
}
.daily-early-button {
  flex: none;
  appearance: none;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
}
.daily-early-button:hover { background: #10513c; }
.method-guide details + details { border-top: 1px solid var(--line); }
.method-guide summary {
  position: relative;
  cursor: pointer;
  padding: 15px 26px 15px 0;
  line-height: 1.4;
  font-size: 16px;
  font-weight: 550;
  list-style: none;
}
.method-guide summary::-webkit-details-marker { display:none; }
.method-guide summary::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  right: 4px;
  top: 43%;
  transform: rotate(45deg);
}
.method-guide details[open] summary::after { transform: rotate(225deg); top: 50%; }
.method-guide p { margin: 0 0 12px; max-width: 900px; }
.method-guide a { color: var(--green); text-underline-offset: 3px; }
@media (max-width: 800px) {
  .daily-columns { grid-template-columns: minmax(0, 1fr); }
  .daily-early { align-items: flex-start; flex-direction: column; gap: 14px; }
  .daily-statement-main { margin-top: 20px; }
}
@media (max-width: 430px) {
  .daily-intro { margin-bottom: 20px; }
  .daily-section-head { gap: 9px; }
  .daily-readout { margin: 22px 0 16px; }
  .daily-columns { gap: 14px; }
  .daily-range-label { margin-top: 16px; }
  .daily-recipe { padding: 12px; gap: 4px; }
  .daily-breakdown dt, .daily-balances dt, .daily-breakdown dd, .daily-balances dd { font-size: 14px; }
  .daily-select-wrap, #daily-period { width: 100%; }
}
