:root { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif; color: #273d36; background: #f6f2e8; line-height: 1.55; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #a04126; outline-offset: 4px; }
h1, h2, p { margin-top: 0; }
.workshop { max-width: 1220px; margin: auto; padding: 22px clamp(16px, 4vw, 44px) 30px; }
.header { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid #d8d5c7; }
.brand { flex: none; width: 44px; color: #496958; }
.eyebrow { margin: 0; color: #416454; font-size: .84rem; font-weight: 700; }
h1 { margin: 0; font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.25; }
.back-link { margin-left: auto; min-height: 48px; display: flex; align-items: center; color: #294e3f; font-weight: 700; }
.quiet { min-height: 48px; padding: 9px 16px; background: #fffdf7; border: 1px solid #7d9c8b; border-radius: 9px; color: #24473b; font-weight: 700; white-space: nowrap; }
.back-link[hidden] + .quiet { margin-left: auto; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 29px 0 22px; }
.intro h2 { margin-bottom: 6px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.04em; }
.intro p { margin: 0; color: #405c4d; }
.mode-label { display: grid; gap: 5px; color: #385d4b; font-weight: 700; min-width: 195px; }
.mode-label select { min-height: 48px; border: 1px solid #849f90; border-radius: 8px; padding: 8px; background: #fffdf7; color: #29483a; }
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(275px, .7fr); gap: 18px; align-items: stretch; }
.work-card, .guide, .help { border: 1px solid #d8dbce; background: #fffdf7; border-radius: 15px; }
.work-card { padding: clamp(18px, 3vw, 28px); background: #e7eee4; min-width: 0; }
.work-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-heading h2, .guide h2 { margin: 3px 0 0; font-size: 1.2rem; }
.badge { padding: 6px 11px; border-radius: 999px; background: #fffdf7; border: 1px solid #cbd7c9; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.instructions { margin: 12px 0 20px; color: #405a49; }
.switches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.switch-card { background: #fffdf7; border: 1px solid #cbd7c9; border-radius: 12px; padding: 14px; }
.switch-label { display: flex; flex-direction: column; color: #294a3b; }
.switch-label span { color: #4f6659; font-size: .82rem; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 72px; margin-top: 12px; padding: 10px; border: 1px solid #8aa797; border-radius: 9px; background: #f4f7ef; color: #274a3a; font-weight: 700; }
.switch[aria-pressed='true'] { background: #dcebdc; border-color: #416d50; }
.switch-art { width: 70px; height: 34px; position: relative; display: inline-block; flex: none; border: 2px solid #536e5d; border-radius: 20px; background-color: #e8e8da; }
.pattern-a { background-image: repeating-linear-gradient(135deg,transparent 0 5px,#a4b3a4 5px 7px); }
.pattern-b { background-image: radial-gradient(#82998b 1.5px,transparent 2px); background-size: 8px 8px; }
.pattern-c { background-image: repeating-linear-gradient(0deg,transparent 0 5px,#a4b3a4 5px 7px); }
.knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border: 2px solid #526a5b; border-radius: 50%; background: #fffdf7; transition: transform .35s ease; }
.switch[aria-pressed='true'] .knob { transform: translateX(36px); background: #537e61; border-color: #345d43; }
.state-text { font-size: 1rem; white-space: nowrap; }
.target { margin: 10px 0 5px; color: #294a3b; }
.rule { margin: 0; color: #425c4d; font-size: .92rem; }
.status, .pause-note { display: flex; align-items: center; min-height: 60px; margin: 18px 0 0; padding: 13px 15px; border-radius: 8px; color: #214b3b; background: #fffdf7; font-weight: 700; }
.pause-note { margin-bottom: -8px; background: #fff0d4; color: #61421e; }
.guide { padding: 25px; }
.guide ol { padding-left: 22px; margin: 20px 0; }
.guide li { margin-bottom: 14px; color: #3c5748; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e0e4da; padding-top: 20px; }
.secondary { min-height: 48px; padding: 9px 12px; border: 1px solid #87a091; border-radius: 8px; background: white; color: #294c3e; font-weight: 700; }
.confirm { margin-top: 12px; padding: 12px; background: #fff0d4; border: 1px solid #d8bc90; border-radius: 8px; }
.confirm p { margin: 0 0 10px; color: #61421e; font-weight: 700; }
.confirm-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-note { margin: 14px 0 0; color: #4a6153; font-size: .9rem; }
.help { margin-top: 18px; padding: 16px 22px; }
.help summary { min-height: 42px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.help summary::before { content: '+'; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #e7eee4; }
.help[open] summary::before { content: '−'; }
.help div { max-width: 72ch; color: #40584a; }
footer { padding-top: 24px; text-align: center; color: #4f655a; font-size: .86rem; }
.no-script { padding: 1rem; text-align: center; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .intro { align-items: start; flex-direction: column; } .switches { grid-template-columns: 1fr; } .switch-card { display: grid; grid-template-columns: minmax(80px,.8fr) minmax(150px,1fr); gap: 4px 12px; } .switch { margin: 0; } .target { margin: 0; } .rule { grid-column: 1 / -1; } }
@media (max-width: 430px) { .header { flex-wrap: wrap; } .back-link { margin-left: 0; } }
@media (max-width: 420px) { .switch-card { display: block; } .switch { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .knob { transition: none; } }
.pattern-d { background-image: repeating-linear-gradient(90deg,transparent 0 5px,#a4b3a4 5px 7px); }
.switches[data-count="4"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.practice { margin: 0 0 14px; }
.practice summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: #385d4b; }
@media (max-width: 600px) { .switches[data-count="4"] { grid-template-columns: 1fr; } }
