.timeline { margin-bottom: 14px; }
.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 0;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-body {
  flex: 1;
  padding-bottom: 20px;
}
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.timeline-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.timeline-days {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.timeline-desc { font-size: 12px; color: var(--ink2); line-height: 1.7; }
.timeline-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.timeline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e8803a);
  border-radius: 3px;
  transition: width 1s ease;
}
.weather-note {
  background: #fff8e8;
  border: 1px solid #f0d080;
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 12px;
  color: #7a5500;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.total-days-box {
  background: var(--primary);
  border-radius: var(--r-lg);
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.total-days-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(107,159,212,.25), transparent 70%);
  pointer-events: none;
}
.total-label { font-size: 11px; color:var(--primary-mid); font-family: 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.total-days { font-family: 'Plus Jakarta Sans', var(--font-body, 'Noto Sans JP'), sans-serif; font-size: clamp(40px, 10vw, 64px); font-weight: 900; color: #ffffff; line-height: 1; }
.total-days em { color:var(--primary-mid); font-style: normal; font-size: .55em; }
.total-sub { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 6px; }
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.season-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  text-align: center;
}
.season-icon { font-size: 22px; margin-bottom: 4px; }
.season-name { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.season-rate {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
}
.season-rate.good { color: var(--green); }
.season-rate.bad { color: var(--accent); }
.season-note { font-size:12px; color: var(--ink3); margin-top: 2px; }
/* 塗料グレードカード */
.paint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
@media (min-width: 480px) { .paint-grid { grid-template-columns: repeat(4, 1fr); } }
.paint-card {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 12px 10px;
  cursor: pointer;
  transition: all .15s;
  background: #fafaf8;
  display: block;
  position: relative;
}
.paint-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.paint-card.selected,
.paint-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light, #fff3ec);
  box-shadow: 0 0 0 1px var(--accent);
}
.paint-card.selected .paint-name,
.paint-card:has(input:checked) .paint-name { color: var(--accent); }
.paint-check { display: none; }
.paint-card.selected .paint-check,
.paint-card:has(input:checked) .paint-check {
  display: block;
  position: absolute;
  top: 6px; right: 8px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}
.paint-name { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.paint-range { font-size: 11px; color: var(--accent); }
.paint-life { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* 追加工事チェックボックス */
.opt-grid { display: flex; flex-direction: column; gap: 6px; }
.opt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  transition: all .15s;
  background: #fafaf8;
  user-select: none;
}
.opt-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: transparent;
  flex-shrink: 0;
  transition: all .15s;
}
.opt-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light, #fff3ec);
}
.opt-item:has(input:checked) .opt-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* タイムライン（tl-*クラス） */
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.tl-body { flex: 1; }
.tl-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.tl-note { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.tl-days {
  font-family: 'DM Mono', monospace;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
