/* 설계 3 §6-3/7. 모든 스타일은 3차시로 제한. */
.ch3-heading .chip{background:var(--lab-tint);color:var(--lab)}
.ch3-work{padding:0;overflow:visible;border:0;outline:1px solid var(--line)}
.ch3-editor{overflow:auto;padding:16px}
.ch3-grid{display:grid;grid-template-columns:repeat(3,300px);gap:16px}
.ch3-card{width:300px;height:250px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--white);display:flex;flex-direction:column;gap:16px}
.ch3-card h3{font-size:20px;line-height:1.3;font-weight:700}
.ch3-situations{display:flex;align-items:center;gap:8px}
.ch3-situation{display:flex;flex:1;flex-direction:column;align-items:center;white-space:nowrap;font-size:16px;line-height:1.5}
.ch3-situation svg{width:32px;height:32px;flex-shrink:0}
.ch3-devices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ch3-toggle{min-width:44px;min-height:44px;padding:8px 0;border:3px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);display:flex;flex-direction:column;align-items:center;font:inherit;font-size:16px;line-height:1.5;cursor:pointer}
.ch3-toggle[aria-pressed=true]{background:var(--lab-tint);border-color:var(--lab)}
.ch3-toggle:hover{background:var(--lab-tint)}
.ch3-device{width:48px;height:48px;flex-shrink:0}
.ch3-device.off{filter:grayscale(1);opacity:.3}
.ch3-switch{font-size:14px}
.ch3-fold{width:100%;margin-bottom:8px;text-align:left}
.ch3-editor .ch3-grid:not(:last-child){margin-bottom:16px}
.ch3-grid[hidden]{display:none}
.ch3-tabs{height:44px;display:flex;gap:8px;padding:0 16px}
.ch3-tabs .button{height:44px;min-height:44px}
.ch3-tabs [aria-selected=true]{background:var(--lab-tint);border:2px solid var(--lab)}
.ch3-result-row{height:56px;display:flex;align-items:center;gap:24px;padding:0 16px;border-bottom:1px solid var(--line);position:relative}
.ch3-result-row .ch3-situations{flex:0 0 auto}
.ch3-result-devices{display:flex;gap:8px}
.ch3-result-devices .ch3-device{width:32px;height:32px}
.ch3-arrow{font-size:24px}
.ch3-face{display:flex;gap:8px;align-items:center}
.ch3-face svg{width:36px;height:36px}
.ch3-result-row>.button{margin-left:auto;border-radius:999px}
.ch3-stats{height:104px;display:flex;align-items:center;justify-content:space-between;padding:8px 24px;gap:24px}
.ch3-tabs~.ch3-stats{height:60px;padding:0 24px}
.ch3-comfort{white-space:nowrap;font-size:20px}
.ch3-comfort strong{font-size:40px;line-height:1.2;font-weight:800}
.ch3-cost{display:flex;align-items:center;gap:16px;padding-bottom:24px}
.ch3-cost-label{font-size:16px;white-space:nowrap}
.ch3-cost .progress{position:relative;flex-shrink:0}
.ch3-cost-marker{position:absolute;top:0;height:24px;border-left:2px dashed var(--miss)}
.ch3-cost-marker>span{position:absolute;top:24px;right:0;white-space:nowrap;font-size:14px;line-height:1.4;color:var(--ink-soft)}
.ch3-mini{position:absolute;right:0;top:56px;z-index:5;height:auto;box-shadow:var(--shadow-panel);animation:ch3-preview 150ms}
.ch3-result-row:nth-child(n+5) .ch3-mini{top:auto;bottom:56px}
.ch3-mini .ch3-devices{gap:8px}
.ch3-preview-device{display:flex;flex-direction:column;align-items:center;font-size:14px;white-space:nowrap}
.ch3-mini .ch3-device{width:48px;height:48px}
.ch3-actions>.secondary{margin-right:auto}
.ch3-efficiency{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:48px}
.ch3-efficiency .ch3-stats{width:100%}
.ch3-badge{width:120px;height:120px;border-radius:999px;background:var(--false);color:var(--ink);display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:40px;font-weight:800;animation:ch3-stamp 300ms both}
.ch3-badge span{font-size:20px}
.ch3-ending{position:absolute;left:253px;top:120px;width:860px;padding:32px;border-radius:20px;background:var(--dialog-glass);box-shadow:var(--shadow-panel);text-align:center}
.ch3-ending h1{font-size:40px;line-height:1.2;color:var(--ch3);margin:16px 0}
.ch3-stamp{width:88px;height:88px;margin:auto;border:4px solid var(--ch3);color:var(--ch3);border-radius:999px;font-size:44px;display:grid;place-items:center;animation:ch3-stamp 300ms both}
.ch3-ending .note-result{margin:24px 0}
.ch3-end-actions{display:flex;justify-content:space-between;gap:16px;margin-top:32px}
@keyframes ch3-stamp{from{transform:scale(1.3);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes ch3-preview{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.ch3-badge,.ch3-stamp,.ch3-mini{animation:none}}
.ch3-editor{overflow:hidden;padding:12px}
.ch3-editor.expanded{overflow:auto}
.ch3-editor .ch3-card{height:220px;padding:12px;gap:8px}
.ch3-editor .ch3-card h3{height:28px}
.ch3-editor .ch3-situations{height:56px}
.ch3-editor .ch3-devices{height:88px}
.ch3-editor .ch3-toggle{min-height:44px;padding:2px 0;font-size:14px;line-height:1.2}
.ch3-editor .ch3-device{width:40px;height:40px}
