#atlas-subpage .tc-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:24px;align-items:start}
.tc-switches{min-width:0}
.tc-switches fieldset{min-inline-size:0;margin:0 0 20px;padding:0;border:0}
.tc-switches legend,.tc-result h2{margin:0;font-size:19px;font-weight:550;line-height:1.4}
.tc-switches legend{margin-bottom:6px}
.tc-switches p,.tc-result header p,.tc-result footer{margin:0;color:var(--muted);font-size:13px}
.tc-phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
.tc-lamps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}
.tc-switches label{position:relative;display:block;cursor:pointer}
.tc-switches input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.tc-switches label>span{min-height:44px;padding:8px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--control);border-radius:6px;background:var(--panel);transition:background-color 150ms,border-color 150ms}
.tc-phases label>span{min-height:76px;flex-direction:column}
.tc-switches input:checked+span{background:var(--selected);border-color:var(--warm);color:var(--accent);font-weight:600}
.tc-switches input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}
@media(hover:hover){.tc-switches label:hover input:not(:checked)+span{background:var(--hover)}}
.tc-sky{width:48px;height:auto;image-rendering:pixelated}
.tc-lamp{width:22px;height:auto;image-rendering:pixelated}
.tc-phase-label{display:flex;align-items:baseline;gap:4px;font-size:12px;white-space:nowrap}
.tc-phase-label small{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.tc-result{background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.tc-view-switch{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.tc-view-switch button{min-height:44px;padding:0 12px;border:1px solid var(--control);border-radius:6px;background:var(--panel)}
.tc-view-switch button[aria-pressed=true]{background:var(--selected);border-color:var(--warm);color:var(--accent);font-weight:600}
@media(hover:hover){.tc-view-switch button[aria-pressed=false]:hover{background:var(--hover)}}
.tc-indoor figure{margin:0;padding:20px 14px;background:var(--table-head)}
.tc-indoor figure img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}
.tc-indoor-error{margin:0;color:var(--muted)}
.tc-result header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 18px;background:var(--table-head);border-bottom:1px solid var(--border)}
.tc-result header p{margin-top:2px}
.tc-mode,.tc-stages small,.tc-unrecorded{color:var(--muted);font-size:13px}
.tc-stages{list-style:none;margin:0;padding:0 18px}
.tc-stages li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:15px 0;line-height:1.5}
.tc-stages li+li{border-top:1px solid var(--border)}
.tc-icon{color:var(--warm)}
.tc-stages h3{margin:0 0 4px;font-size:15px;font-weight:600}
.tc-stages strong,.tc-stages small{display:block}
.tc-stages dl,.tc-stages dd,.tc-stages p{margin:0}
.tc-stages dl>div{display:grid;grid-template-columns:minmax(8rem,1fr) minmax(0,2.2fr);gap:4px 10px;padding-block:3px}
.tc-result footer{border-top:1px solid var(--border);padding:12px 18px}
.tc-sources summary{min-height:44px;align-content:center;cursor:pointer}
.tc-sources img{display:block;max-width:min(100%,420px);image-rendering:pixelated}
@media(max-width:760px){
 #atlas-subpage .tc-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .tc-switches fieldset{margin-bottom:14px}
 .tc-stages dl>div{grid-template-columns:minmax(6.2rem,1fr) minmax(0,1.6fr)}
}
@media(prefers-reduced-motion:reduce){.tc-switches label>span{transition:none}}
