* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 10%, #ffffff 0, #f2f6f0 38%, #e7eee5 100%); color: #18342b; font-family: "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 999px; padding: 11px 18px; background: #e4ede6; color: #1d5b45; transition: transform .15s ease, background .15s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); background: #d8e7dc; }
button:disabled, input:disabled { opacity: .5; cursor: not-allowed; }
.shell { display: grid; grid-template-columns: minmax(320px, 470px) auto; gap: 56px; justify-content: center; align-items: start; padding: 56px 32px; }
.panel { padding-top: 12px; }
.eyebrow { margin: 0 0 18px; color: #6e8176; font-size: 13px; letter-spacing: .18em; }
h1 { margin: 0; font-size: 44px; letter-spacing: -.04em; line-height: 1.1; }
.lead { margin: 14px 0 28px; color: #637569; line-height: 1.7; }
h2 { margin: 32px 0 14px; font-size: 15px; letter-spacing: .04em; }
.connect { display: flex; gap: 10px; }
.connect input { flex: 1; border: 1px solid #d5dfd5; border-radius: 999px; padding: 11px 18px; background: #fff; outline: none; }
.connect input:focus { border-color: #1d7053; box-shadow: 0 0 0 4px rgba(29,112,83,.12); }
.connect button, .primary { background: #1d7053; color: #fff; }
.connect button:hover, .primary:hover:not(:disabled) { background: #185f46; }
.notice { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff0d4; color: #8c5d25; font-size: 14px; }
.notice.real { background: #e2f0e6; color: #256348; }
.leg { margin-bottom: 14px; }
.leg span { display: block; margin-bottom: 8px; color: #637569; font-size: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { padding: 8px 14px; background: #fff; color: #637569; font-size: 13px; border: 1px solid #e0e7df; }
.choice.chosen { background: #dfeee3; color: #1f7556; border-color: #b7d6c1; }
.stop { padding: 16px; margin-bottom: 12px; border-radius: 18px; background: rgba(255,255,255,.82); border: 1px solid #e3e9e1; }
.stop-head { display: flex; align-items: baseline; gap: 10px; }
.stop-head b { color: #1d7053; font-size: 13px; }
.stop-head small { margin-left: auto; color: #8a978e; font-size: 12px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
figure { position: relative; margin: 0; width: 64px; height: 64px; }
figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
figure button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; background: #18342b; color: #fff; font-size: 14px; line-height: 22px; }
.add { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: #eef3ec; color: #5f7a68; font-size: 13px; cursor: pointer; }
.add input { display: none; }
.ghost { background: transparent; color: #1d7053; padding-left: 0; }
.ghost:hover:not(:disabled) { background: transparent; }
.actions { display: flex; gap: 10px; }
.toggle { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 18px; background: rgba(255,255,255,.82); border: 1px solid #e3e9e1; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #cfd9d1; transition: background .2s ease; }
.track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.toggle input:checked + .track { background: #1d7053; }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(29,112,83,.2); }
.toggle:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.toggle-text { display: flex; flex-direction: column; gap: 3px; }
.toggle-text strong { font-size: 14px; }
.toggle-text small { color: #7b8b82; font-size: 12px; }
.quality { margin-bottom: 14px; }
.quality-title { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 18px; background: #e8eee6; }
.segmented button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; border-radius: 14px; background: transparent; color: #5f7268; }
.segmented button:hover:not(:disabled) { transform: none; background: rgba(255,255,255,.55); }
.segmented button strong { font-size: 14px; }
.segmented button small { font-size: 11px; color: #8a978e; }
.segmented button[aria-checked="true"] { background: #fff; color: #1d5b45; box-shadow: 0 2px 8px rgba(29,62,48,.12); }
.status { min-height: 22px; color: #637569; font-size: 14px; }
.viewer { display: flex; gap: 20px; align-items: flex-start; position: sticky; top: 40px; }
.stage-wrap, video { width: 324px; height: 576px; border-radius: 28px; overflow: hidden; background: #dfe8dc; box-shadow: 0 30px 70px rgba(29,62,48,.18); }
#stage { transform: scale(.6); transform-origin: 0 0; }
video { object-fit: cover; background: #000; }
@media (max-width: 1100px) { .shell { grid-template-columns: 1fr; } .viewer { position: static; flex-wrap: wrap; } }
