.time-map{margin:0;padding:25px 26px 27px;border:1px solid #c6d3c9;background:#fff}
.time-map figcaption{font-size:18px;font-weight:700;line-height:1.8;margin-bottom:23px}
.time-map figcaption>span{display:block;font-size:16px;font-weight:400;color:var(--muted);margin-top:6px}
.time-axis-row,.time-row,.time-bridge-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px}
.time-axis-label{font-size:16px;color:var(--muted);padding-top:1px}
.time-axis{position:relative;height:36px;font-size:16px;line-height:1.8;color:var(--muted)}
.time-tick{position:absolute;top:0;white-space:nowrap;transform:translateX(-50%)}
.time-tick:first-child{transform:none}
.time-tick:last-child{transform:translateX(-100%)}
.time-row-label{font-size:16px;line-height:1.7}
.time-row-label>strong{display:block;font-size:17px;font-weight:700}
.time-row-label>span{display:block;font-size:23px;font-weight:700;letter-spacing:0}
.time-row-before{align-items:end}
.time-row-after{align-items:start}
.time-track{display:flex;align-items:stretch;height:54px;min-width:0;outline:1px solid #bbc9c0;background:#f0f3ef;overflow:hidden}
.time-segment{flex:var(--duration) 0 0;min-width:0;display:flex;align-items:center;justify-content:center;background:var(--phase-color);box-shadow:inset -1px 0 #ffffffb3;transition:opacity .15s}
.time-bridge-label{font-size:14px;line-height:1.8;color:var(--muted);padding-top:24px}
.time-bridge{height:112px;background-image:linear-gradient(to right,#e0e7e2 1px,transparent 1px);background-size:16.666667% 100%;background-repeat:repeat-x}
.time-bridge svg{display:block;width:100%;height:100%;overflow:visible}
.time-link{fill:none;stroke-width:2.4;vector-effect:non-scaling-stroke;opacity:.8;transition:opacity .15s}
.time-segment.is-muted,.time-link.is-muted{opacity:.15}
.time-recovered{flex:var(--duration) 0 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;outline:1px dashed #aabbb0;outline-offset:-1px;color:#355444;background:#edf2ee;padding:0}
.time-recovered>span{font-size:16px;line-height:1.6}
.time-recovered>strong{font-size:23px;font-weight:700;line-height:1.5;letter-spacing:0;white-space:nowrap}
.time-stage-control-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:23px 0 14px}
.time-stage-control-heading p{font-size:17px;font-weight:700;line-height:1.8}
.time-stage-control-heading button{font-size:16px;color:var(--ink);border:1px solid #91a99b;border-radius:4px;background:white;min-height:44px;padding:8px 14px;white-space:nowrap}
.time-stage-control-heading button:disabled{color:#718078;border-color:#d0d9d2;cursor:default;background:#f3f6f2}
.time-phase-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.time-phase-button{display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px 10px;text-align:left;align-items:center;min-height:94px;padding:14px 16px;background:white;color:var(--ink);border:1px solid #c8d4cd;border-bottom:4px solid var(--phase-color);border-radius:4px}
.time-phase-button:hover{background:#f0f4ee}
.time-phase-button[aria-pressed=true]{outline:2px solid var(--phase-color);outline-offset:2px;background:#edf2ee}
.time-phase-swatch{display:block;width:18px;height:18px;background:var(--phase-color);border-radius:3px}
.time-phase-button>strong{font-size:18px;line-height:1.7;font-weight:700;min-width:0}
.time-phase-duration{grid-column:1/-1;font-size:18px;line-height:1.8;letter-spacing:0}
.time-phase-duration>span{padding-inline:8px;color:var(--muted)}
.time-phase-detail{padding:23px 25px;background:#edf2ee;border-left:4px solid #597b68;margin-top:20px}
.time-phase-detail h4{margin:0 0 18px;font-size:23px;line-height:1.75}
.time-detail-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.time-detail-pair p{font-size:18px;line-height:1.85;min-width:0}
.time-detail-pair p>span{display:block;font-size:16px;font-weight:700;color:var(--muted);margin-bottom:8px}
.time-detail-pair p>strong{font-weight:400}
#time-detail-gain{font-size:18px;font-weight:700;line-height:1.85;margin-top:20px}
@media(max-width:1050px){
 .time-map{padding:23px 22px}
 .time-axis-row,.time-row,.time-bridge-row{grid-template-columns:88px minmax(0,1fr);gap:15px}
 .time-axis{font-size:14px}
 .time-phase-button{padding:13px 12px;gap:8px}
 .time-phase-button>strong{font-size:17px}
 .time-recovered{flex-direction:column;gap:0}
 .time-recovered>span{font-size:14px}
 .time-recovered>strong{font-size:20px}
}
@media(max-width:850px){
 .time-phase-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
 .time-phase-button>strong{font-size:18px}
 .time-tick[data-minute="90"],.time-tick[data-minute="150"]{display:none}
 .time-recovered>strong{font-size:20px}
 .time-detail-pair{grid-template-columns:1fr;gap:18px}
 .time-bridge-label{font-size:14px}
}
@media(max-width:620px){
 .time-map{padding:20px 14px}
 .time-map figcaption{font-size:18px;line-height:1.8;margin-bottom:22px}
 .time-map figcaption>span{font-size:16px}
 .time-axis-row,.time-row,.time-bridge-row{grid-template-columns:70px minmax(0,1fr);gap:10px}
 .time-axis-label,.time-axis{font-size:14px}
 .time-tick:first-child{transform:translateX(-50%)}
 .time-tick[data-minute="60"],.time-tick[data-minute="120"]{display:none}
 .time-axis{height:32px}
 .time-row-label{font-size:16px}
 .time-row-label>strong{font-size:16px}
 .time-row-label>span{font-size:22px}
 .time-track{height:54px}
  .time-bridge{height:88px}
 .time-bridge-label{font-size:14px;padding-top:19px;line-height:1.85}
 .time-recovered{padding:0}
 .time-recovered>span{font-size:14px;line-height:1.5}
 .time-recovered>strong{font-size:18px;line-height:1.6}
 .time-stage-control-heading{display:block;margin-top:22px}
 .time-stage-control-heading p{font-size:17px}
 .time-stage-control-heading button{margin-top:12px;font-size:16px;min-height:44px}
 .time-phase-buttons{gap:12px}
 .time-phase-button{min-height:96px;padding:12px;grid-template-columns:24px minmax(0,1fr);gap:8px}
 .time-phase-swatch{display:block;width:18px;height:18px;background:var(--phase-color);border-radius:3px}
 .time-phase-button>strong{font-size:16px}
 .time-phase-duration{font-size:17px}
 .time-phase-duration>span{padding-inline:4px}
 .time-phase-detail{padding:20px 18px;margin-top:20px}
 .time-phase-detail h4{font-size:22px;line-height:1.8}
 .time-detail-pair p,#time-detail-gain{font-size:18px}
}
@media(max-width:360px){
 .time-tick[data-minute="60"]{display:none}
 .time-map{padding-inline:10px}
 .time-axis-row,.time-row,.time-bridge-row{grid-template-columns:65px minmax(0,1fr);gap:8px}
 .time-phase-button{padding-inline:9px}
 .time-phase-duration{font-size:16px}
 .time-recovered>strong{font-size:16px}
 .time-recovered>span{font-size:14px}
}
