:root {
  color-scheme: light;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: #192e27; background: #f9faf8; line-height: 1.45;
  --ink: #1d3029; --muted: #52635b; --edge: #dce3dd; --green: #205841;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, output { font: inherit; }
select { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible { outline: 3px solid #0c80aa; outline-offset: 2px; }
button:disabled { opacity: .48; cursor: default; }
[hidden] { display: none !important; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 365px); height: 100vh; height: 100dvh; min-height: 290px; }
.stage { position: relative; min-width: 0; min-height: 0; isolation: isolate; overflow: hidden; background: #dad3c3; }
.stage::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, rgb(12 23 19 / .35), transparent 27%), linear-gradient(0deg, rgb(15 24 20 / .36), transparent 18%); }
#room { display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -4px; }
.room-title, .reset-view, .stage-bar, .hint { position: absolute; z-index: 1; }
.room-title { left: clamp(17px, 3vw, 40px); top: clamp(14px, 3.2vh, 32px); color: white; text-shadow: 0 1px 9px rgb(12 23 18 / .7); pointer-events: none; }
.room-label { display: inline-block; background: #f2efe5; color: #384238; text-shadow: none; padding: 3px 9px; border-radius: 4px; font-size: .75rem; font-weight: 700; }
h1 { font-family: "Noto Serif KR", "Batang", "AppleMyungjo", serif; font-size: clamp(1.65rem, 3.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.065em; margin: 7px 0 0; }
.glass { background: rgb(26 39 33 / .86); color: #fff; border: 1px solid rgb(255 255 255 / .34); box-shadow: 0 3px 14px rgb(12 20 15 / .13); }
.reset-view { inset: clamp(14px, 3.2vh, 32px) clamp(14px, 2.3vw, 32px) auto auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.stage-bar { display: flex; align-items: center; justify-content: center; left: 8px; right: 8px; bottom: clamp(12px, 3vh, 30px); pointer-events: none; }
.locations { display: inline-flex; gap: 3px; padding: 3px; border-radius: 28px; pointer-events: auto; }
.locations button { font-size: .875rem; min-height: 42px; min-width: 62px; padding: 6px 14px; border: 0; background: transparent; color: white; border-radius: 22px; font-weight: 650; }
.locations button#overview { font-weight: 750; }
#room[data-touch-origin=true]:focus-visible { outline: none; }
@media (max-width: 360px) {
  .locations button { min-width: 52px; padding-inline: 10px; }
}
.locations button[aria-pressed=true] { color: #23372b; background: #fcfcf5; }
.hint { bottom: calc(clamp(12px, 3vh, 30px) + 55px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8125rem; padding: 4px 11px; border-radius: 20px; color: #fff; background: #26362ce6; pointer-events: none; }
.scene-message { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 12px; padding: 11px 17px; color: #233228; background: #fffffff0; font-size: .94rem; }
.quote-tip { pointer-events: none; position: absolute; top: 0; left: 0; z-index: 3; display: grid; gap: 1px; border-radius: 11px; padding: 10px 13px; color: #fff; background: #152b23f5; box-shadow: 0 4px 14px #152b2330; font-variant-numeric: tabular-nums; }
.quote-tip span, .quote-tip small { font-size: .76rem; }
.quote-tip small { color: #d9e9df; }
.quote-tip strong { font-size: 1.05rem; }
.picked-peek { z-index: 1; pointer-events: none; position: absolute; left: 50%; bottom: calc(clamp(12px, 3vh, 30px) + 54px); transform: translateX(-50%); display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; white-space: nowrap; border-radius: 9px; background: #152b23f5; color: #fff; font-variant-numeric: tabular-nums; }
.picked-peek span, .picked-peek small { font-size: .76rem; }.picked-peek strong { font-size: .96rem; }
.panel { min-width: 0; min-height: 0; overflow-y: auto; scroll-behavior: auto; padding: 0 clamp(18px, 2.2vw, 28px) 16px; border-left: 1px solid #bbc8bf; background: #fafbf9; }
.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: 0; padding-top: 8px; z-index: 2; background: #fafbf9; border-bottom: 1px solid var(--edge); }
.panel-tabs button { padding: 10px 5px; min-height: 46px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; }
.panel-tabs button[aria-selected=true] { border-color: var(--green); color: var(--green); font-weight: 760; }
.panel-body { padding-top: clamp(16px, 3vh, 26px); }
.selected-line, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
h2 { margin: 0; font-size: clamp(1.19rem, 1.55vw, 1.45rem); line-height: 1.3; letter-spacing: -.055em; }
.tag { padding: 3px 8px; color: #36543f; background: #e7eee6; border-radius: 5px; font-size: .765rem; font-weight: 650; white-space: nowrap; }
.eye-line { font-size: .85rem; margin: 5px 0 0; color: var(--muted); }
.price-total { margin-top: clamp(13px, 2.2vh, 24px); }
.price-total > span { color: var(--muted); display: block; font-size: .9rem; font-weight: 600; }
.price-total > strong { display: block; font-size: clamp(1.8rem, 2.3vw, 2.3rem); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.055em; margin-top: 2px; }
.breakdown { margin: 11px 0 0; padding: 10px 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.breakdown div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: .89rem; }
.breakdown dt { color: var(--muted); }.breakdown dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; margin-top: 14px; }
.control label, legend { font-weight: 670; font-size: .94rem; }
.control output { color: var(--green); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .91rem; }
.control input { width: 100%; grid-column: 1 / -1; margin: 0; min-height: 36px; accent-color: var(--green); cursor: pointer; }
.control small { grid-column: 1 / -1; font-size: .82rem; color: #3d594b; }
.fee-note { font-size: .81rem; line-height: 1.55; margin: 12px 0; color: var(--muted); }
.primary { display: block; min-height: 45px; width: 100%; border: 0; color: #fff; background: #25573f; border-radius: 9px; padding: 9px; font-size: .94rem; font-weight: 680; }
.primary:hover:not(:disabled) { background: #19412e; }
details { margin-top: 11px; border-top: 1px solid var(--edge); }
summary { cursor: pointer; font-size: .94rem; font-weight: 650; padding: 12px 0; min-height: 46px; }
.fee-info { margin-top: 8px; border: 0; }.fee-info summary { padding: 4px 0; min-height: 32px; font-weight: 550; font-size: .84rem; color: var(--muted); }
.fee-info + .fee-note { margin: 0 0 10px; }.fee-info .fee-note { margin: 0 0 9px; }
.slot-plan { display: grid; grid-template-columns: 24px repeat(8, minmax(0,1fr)); align-items: center; gap: 3px; }
.slot-plan span { font-size: .75rem; color: var(--muted); }
.slot-plan button { font-size: .76rem; font-variant-numeric: tabular-nums; padding: 0; min-width: 0; min-height: 31px; border: 1px solid #c2d1c6; border-radius: 4px; color: #324939; background: #f2f5f0; }
.slot-plan button:hover { background: #e0e9e0; }.slot-plan button[aria-checked=true] { background: var(--green); border-color: var(--green); color: white; font-weight: 700; }
.fallback { display: grid; align-content: center; z-index: 1; position: absolute; inset: 0; padding: 14px clamp(12px, 4vw, 48px); background: #eeeae0; }
.fallback h2 { margin-bottom: 0; }.fallback p { margin: 5px 0 12px; font-size: .86rem; color: #435344; }
.fallback .slot-plan { max-width: 680px; }.fallback .slot-plan button { min-height: clamp(26px, 5vh, 44px); }
.stage.unavailable :is(.room-title,.reset-view,.hint,.stage-bar,.quote-tip,.picked-peek) { display: none; }
.text-button { min-height: 40px; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); padding: 4px; font-size: .85rem; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
.presets button, .segments button { min-height: 40px; border: 1px solid #cbd5cd; border-radius: 8px; background: #fff; padding: 6px 11px; font-size: .88rem; }
.presets button[aria-pressed=true], .segments button[aria-pressed=true] { color: #1e4b34; background: #e8efe7; border-color: #6e937b; font-weight: 700; }
fieldset { margin: 17px 0 0; padding: 0; border: 0; min-width: 0; }legend { margin-bottom: 6px; padding: 0; }
.segments { display: flex; gap: 6px; }.segments button { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.room-switch { display: block; width: fit-content; max-width: 100%; position: relative; margin-top: 3px; pointer-events: auto; }
.room-switch select { display: block; width: 100%; min-height: 44px; padding: 0 24px 0 0; border: 0; background: transparent; color: white; text-shadow: 0 1px 8px #18291cf0; font-family: "Noto Serif KR", Batang, AppleMyungjo, serif; font-size: clamp(1.45rem, 2.9vw, 2.4rem); font-weight: 700; letter-spacing: -.055em; appearance: none; cursor: pointer; }
.room-switch select option { color: #243527; background: #fff; }
.room-switch::after { content: ""; position: absolute; right: 6px; top: 43%; width: 8px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
#room-climate { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; width: fit-content; padding: 4px 8px; border-radius: 5px; color: #fff; background: #21372cec; text-shadow: none; font-size: .78rem; font-variant-numeric: tabular-nums; }
#room-climate > span::before { content: "·"; margin-right: 5px; color: #c0cec2; }#room-climate small { font-size: .72rem; color: #d7e3d7; }
@media (max-width: 310px) {
  #room-climate { max-width: calc(100vw - 112px); }
}
.light-toggle, .light-legend { position: absolute; z-index: 1; right: clamp(14px, 2.3vw, 32px); }
.light-toggle { top: calc(clamp(14px, 3.2vh, 32px) + 51px); min-height: 42px; min-width: 56px; padding: 6px 11px; border-radius: 22px; font-size: .84rem; font-weight: 670; }
.light-toggle[aria-pressed=true] { color: #283f30; background: #f4f4e9; border-color: #314638; }
.light-legend { top: calc(clamp(14px, 3.2vh, 32px) + 98px); display: grid; gap: 2px; padding: 6px 8px; border-radius: 7px; color: #fff; background: #1b2d24ec; font-size: .77rem; pointer-events: none; }
[data-sun]::before { content: ""; display: inline-block; vertical-align: .04em; width: .6em; height: .6em; margin-right: .4em; border-radius: 50%; background: var(--sun-color); }
[data-sun=sun] { --sun-color: #d99835; }[data-sun=diffuse] { --sun-color: #819a87; }[data-sun=shade] { --sun-color: #5e7e96; }
.sun-chip { display: inline-block; font-size: .8rem; margin-top: 5px; padding: 2px 7px; color: #35453a; background: #edf1eb; border: 1px solid #cbd6cb; border-radius: 5px; }
.scene-time { position: absolute; z-index: 1; left: 50%; bottom: calc(clamp(12px, 3vh, 30px) + 55px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: min(300px, calc(100% - 32px)); min-height: 44px; padding: 2px 12px; background: #1b2d24ec; color: white; border-radius: 9px; }
.scene-time label, .scene-time output { white-space: nowrap; font-size: .81rem; font-weight: 650; }
.scene-time input { flex: 1; min-width: 32px; min-height: 37px; margin: 0; accent-color: #e8c382; }.scene-time output { font-variant-numeric: tabular-nums; }
.stage.with-zones .hint { display: none; }.stage.with-zones .picked-peek { bottom: calc(clamp(12px, 3vh, 30px) + 104px); }
.time-presets { grid-column: 1 / -1; }
.hour-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; margin: -2px 0 7px; }
.room-reading { margin-top: 16px; padding: 12px; border: 1px solid var(--edge); border-radius: 9px; background: #f0f3ee; }
.room-reading h3 { margin: 0; font-size: .95rem; }.room-reading p { margin: 2px 0 7px; color: var(--muted); font-size: .82rem; }
.room-reading dl { display: flex; gap: 18px; margin: 0; }.room-reading dl div { min-width: 0; }
.room-reading dt { font-size: .77rem; color: var(--muted); }.room-reading dd { margin: 0; font-weight: 680; font-variant-numeric: tabular-nums; }
.humidity-auto { grid-column: 1 / -1; justify-self: start; min-height: 38px; padding: 0; border: 0; color: var(--green); background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: .83rem; }
.stage.unavailable :is(.light-toggle,.light-legend,.scene-time) { display: none; }
.room-title.fallback-context { position: static; color: var(--ink); text-shadow: none; padding: 12px 0 0; }
.fallback-context .room-switch select { color: var(--ink); text-shadow: none; font-size: 1.35rem; }.fallback-context .room-switch::after { border-color: var(--ink); }
@media (max-width: 740px) {
  .studio { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  .stage { flex: none; height: clamp(240px, 52dvh, 480px); }
  .room-title { top: 13px; left: 15px; }.room-label { font-size: .73rem; }
  h1 { font-size: 1.65rem; }.hint { font-size: .75rem; }
  .panel { padding: 0 17px max(24px, env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid #d5ded5; overflow: visible; }
  .panel-body { padding-top: 15px; }.panel-tabs { padding-top: 2px; }
  .slot-plan button { min-height: 36px; }.price-total { margin-top: 12px; }
}
@media (max-height: 450px) and (min-width: 610px) {
  .studio { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 235px; height: 100dvh; }
  .stage { height: auto; }.panel { overflow: auto; border-left: 1px solid var(--edge); }
  .room-title h1 { font-size: 1.5rem; }.hint { display: none; }
  .fallback { padding: 6px 10px; }.fallback .slot-plan button { min-height: 23px; }
  .light-legend { top: 18px; right: 78px; grid-auto-flow: column; gap: 6px; }.room-switch select { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
