:root{--ink:#4a3a33;--muted:#8a7468;--cream:#fbf5ec;--paper:#fffaf3;--line:#e6d6c4;--accent:#9a6b45;--accent-soft:#f3e3d1;--coral:#c9765e;font-family:Apple SD Gothic Neo,Malgun Gothic,Noto Sans KR,sans-serif;color:var(--ink);background:#efe5d8;font-synthesis:none;-webkit-tap-highlight-color:transparent;word-break:keep-all;overflow-wrap:break-word}*{box-sizing:border-box}html,body{touch-action:pan-x pan-y;overscroll-behavior:none}body{margin:0;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;min-height:42px;border:1px solid var(--line);border-radius:12px;padding:9px 13px;background:#fffaf3e6;transition:background .15s,border-color .15s}button:hover{background:#fff;border-color:#d9c2a8}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e2b98f;outline-offset:2px}button[aria-pressed=true],button[aria-checked=true],button[aria-selected=true],.primary{background:var(--accent);border-color:var(--accent);color:#fffaf3}.primary:hover{background:var(--accent);filter:brightness(1.06)}.danger{color:#a4483a}.muted{color:var(--muted);font-size:12px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.app,main,.room-three{position:fixed;top:0;right:0;bottom:0;left:0}.room-three{touch-action:none}.room-three canvas{touch-action:none}header{position:fixed;top:14px;left:18px;right:18px;display:flex;gap:10px;align-items:center;background:#fffaf2e8;border:1px solid #fff;border-radius:18px;padding:10px 14px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 8px 30px #7a5a3d1f}.brand{font-size:16px;letter-spacing:.04em;white-space:nowrap}.brand:before{content:"◈ ";color:var(--accent)}.room-switch{margin:0}.room-switch select{margin:0;min-height:38px;padding:6px 10px;max-width:260px;background:var(--paper)}.new-room{min-height:38px;padding:6px 12px;font-size:13px;white-space:nowrap}.status{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-title{position:fixed;top:98px;left:28px;pointer-events:none;color:#fffaf2;text-shadow:0 1px 10px #4a3326a6}.room-title h1{font-size:24px;font-weight:500;margin:4px 0}.room-title small{font-size:11px;letter-spacing:.12em}.dock{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);display:flex;gap:6px;background:#fffaf2ec;padding:8px;border:1px solid #fff;border-radius:20px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);white-space:nowrap;box-shadow:0 10px 36px #7a5a3d26;z-index:5}.exit-view{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);background:#fffaf2ee;box-shadow:0 8px 30px #7a5a3d33}.camera-tools{position:absolute;top:96px;right:20px;display:flex;gap:5px;padding:5px;background:#fffaf2e0;border:1px solid #fff;border-radius:16px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.camera-tools button{min-height:40px;padding:6px 11px;font-size:12px}.camera-tools .grid-toggle{margin-left:6px}.panel{position:fixed;right:20px;top:152px;bottom:96px;width:370px;overflow:auto;background:#fffaf3f2;border:1px solid #fff;border-radius:22px;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);padding:20px 22px;box-shadow:0 15px 60px #6b4a3236;z-index:6}.with-selbar .panel{bottom:162px}.close{display:block;margin-left:auto;padding:5px 12px;font-size:12px;min-height:34px}h2{font-size:21px;font-weight:600;margin:6px 0 14px}h3{font-size:14px;margin:22px 0 8px}label{display:block;font-size:13px;margin:13px 0}.field-label{font-size:13px;margin:16px 0 7px}.field-label small{display:block;margin-top:3px}input,select,textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fffdf9;min-height:42px}textarea{min-height:120px;resize:vertical;line-height:1.7}label.check{display:flex;gap:8px;align-items:center}label.check input{width:auto;min-height:0;margin:0}.row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.seg{display:flex;gap:6px;flex-wrap:wrap}.seg button{flex:1;min-width:60px}.seg.small button{min-height:36px;padding:5px 8px;font-size:12px}.objects{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.objects button{position:relative;padding:5px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;min-height:0;line-height:1.25}.objects img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#f1e5d6}.objects em,.card em{position:absolute;top:6px;left:6px;font-style:normal;font-size:10px;padding:1px 6px;border-radius:8px;background:#fffaf3;color:var(--accent);border:1px solid var(--line)}.objects button[aria-checked=true]{color:#fffaf3}.swatch-row{display:grid;grid-template-columns:1fr 1fr;gap:6px}.swatch-row button{display:flex;align-items:center;gap:8px;font-size:12px;text-align:left}.swatch-row i{width:18px;height:18px;border-radius:6px;border:1px solid #0000001a;flex:none}.body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:15px}.entry{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}.entry strong{display:block;font-size:14px;overflow-wrap:anywhere}.entry small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.entry p{margin:6px 0 0;font-size:12px;color:#6d5a50;line-height:1.55;overflow-wrap:anywhere}.entry button{flex:none;font-size:12px;padding:7px 10px}.selbar{position:fixed;left:50%;transform:translate(-50%);bottom:calc(84px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:5px;padding:7px 8px;background:#fffaf2f2;border:1px solid #fff;border-radius:18px;box-shadow:0 10px 36px #7a5a3d2e;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);white-space:nowrap;z-index:5;max-width:calc(100vw - 20px)}.selbar button{min-height:38px;padding:6px 10px;font-size:12px}.sel-name{font-size:13px;font-weight:600;padding:0 6px;max-width:150px;overflow:hidden;text-overflow:ellipsis}.sel-size{font-size:12px;min-width:38px;text-align:center}.selbar .close{margin:0}.hint{position:absolute;left:50%;transform:translate(-50%);bottom:calc(100% + 6px);background:#fbe3da;color:#9a3f2f;border:1px solid #f0c3b4;border-radius:10px;padding:4px 10px;font-size:12px}.catalog{position:fixed;left:20px;top:152px;bottom:96px;width:318px;display:flex;flex-direction:column;background:#fffaf3f2;border:1px solid #fff;border-radius:22px;padding:12px;box-shadow:0 14px 50px #6b4a3236;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);z-index:4}.with-catalog .room-title{display:none}.catalog-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.catalog-head .close{margin-left:auto}.catalog-head .muted{order:3;width:100%;margin-top:2px}.chips{display:flex;flex-wrap:wrap;gap:5px;overflow-x:auto;padding:6px 0 2px;scrollbar-width:none;flex:none}.chips::-webkit-scrollbar{display:none}.chips button{flex:none;min-height:32px;padding:4px 11px;font-size:12px;border-radius:16px}.strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:7px;overflow-y:auto;min-height:0;padding:8px 2px 2px;align-content:start;touch-action:pan-y;flex:1}.card{position:relative;height:auto;padding:5px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;min-height:0;line-height:1.25;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}.card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:#f1e5d6;pointer-events:none}.card span{height:2.5em;overflow:hidden;text-align:center}.card:active{cursor:grabbing;transform:scale(.97)}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#6b4f3b55;display:grid;place-items:center;z-index:20;padding:14px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal{background:var(--paper);border-radius:24px;padding:22px 24px;width:min(860px,100%);max-height:calc(100vh - 28px);overflow:auto;box-shadow:0 20px 70px #4a2f1f4d}.theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.theme-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;padding:8px;min-height:0;border-radius:16px}.theme-card strong{font-size:14px;margin-top:3px}.theme-card small{font-size:11px;line-height:1.45;opacity:.85}.theme-preview{width:100%;aspect-ratio:4/3;border-radius:11px;background-size:cover;background-position:center}.swatches{display:flex;gap:4px}.swatches i{width:14px;height:14px;border-radius:50%;border:1px solid #fff9}.modal-actions{position:sticky;bottom:-22px;background:var(--paper);padding:10px 0 4px;margin-bottom:-4px}.panel form>.primary[type=submit]{position:sticky;bottom:0;width:100%;margin-top:12px;box-shadow:0 -10px 18px #fffaf3}.theme-card[aria-checked=true]{background:var(--accent-soft);color:var(--ink);border:2px solid var(--accent)}.model-loading{padding:16px 22px;white-space:nowrap;background:#fffaf2ee;border:1px solid #fff;border-radius:18px;color:#6d5245;box-shadow:0 8px 32px #6b4a3233}.room-three>.model-loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.viewing header,.viewing .room-title small{opacity:.85}@media(max-width:650px){header{top:8px;left:8px;right:8px;padding:8px 10px;gap:6px;flex-wrap:wrap}.brand{font-size:13px}.room-switch{flex:1;min-width:0}.room-switch select{max-width:none;font-size:12px}.new-room{font-size:12px;padding:5px 9px}.status{display:none}.room-title{left:16px;top:70px}.room-title h1{font-size:18px}.room-title small{font-size:10px}.camera-tools{top:121px;right:8px;left:8px;justify-content:space-between;padding:3px;gap:3px}.camera-tools button{flex:1;padding:4px;font-size:11px;min-height:40px}.camera-tools .grid-toggle{margin-left:0}.dock{width:calc(100% - 16px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;bottom:calc(8px + env(safe-area-inset-bottom));padding:6px;white-space:normal}.dock button{font-size:12px;padding:6px 3px;min-height:42px}.selbar{bottom:calc(118px + env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:center;width:calc(100% - 16px);white-space:normal;gap:4px;padding:6px}.selbar .close{position:absolute;top:4px;right:6px;min-height:32px;padding:3px 10px}.sel-name{padding:0 44px}.with-panel .selbar{display:none}.selbar button{padding:5px 8px;min-height:40px;font-size:11px}.sel-name{width:100%;text-align:center;max-width:none}.catalog{left:8px;right:8px;top:auto;width:auto;bottom:calc(118px + env(safe-area-inset-bottom));padding:6px 8px 8px}.with-selbar .catalog,.catalog-head .muted,.catalog-head strong{display:none}.catalog-head{position:absolute;top:6px;right:8px;z-index:1}.catalog-head .close{min-height:34px;padding:3px 10px;background:var(--paper)}.chips{flex-wrap:nowrap;padding:2px 0}.catalog-head+.chips{margin-right:58px}.chips button{min-height:34px}.strip{display:flex;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;padding-top:6px}.card{flex:none;width:76px;touch-action:pan-x;padding:4px}.card img{width:64px;height:64px}.objects{grid-template-columns:repeat(3,1fr)}.panel{left:8px;right:8px;width:auto;top:176px;bottom:126px;padding:14px 16px}.with-selbar .panel{bottom:126px}.with-catalog .panel{bottom:330px}.panel h2{font-size:18px}.theme-grid{grid-template-columns:1fr 1fr}.modal{padding:16px}label{margin:10px 0}}.room-title{background:#fffaf2c7;border:1px solid #ffffffb3;border-radius:14px;padding:7px 14px 8px;color:var(--ink);text-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 6px 22px #7a5a3d1f;max-width:min(360px,calc(100vw - 56px))}.room-title h1{margin:2px 0 0;font-size:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-title small{color:var(--muted)}.viewing .room-title{opacity:.92}.help{min-height:38px;width:38px;padding:0;border-radius:50%;font-weight:700;color:var(--accent);flex:none}.drop-chip{position:fixed;transform:translate(-50%,calc(-100% - 22px));pointer-events:none;z-index:30;white-space:nowrap;font-size:12px;padding:5px 11px;border-radius:12px;color:#fffaf3;box-shadow:0 6px 18px #4a33262e}.drop-chip.ok{background:#5f8a4ee8}.drop-chip.overlap{background:#c7852aee}.drop-chip.invalid{background:#c14a37ee}.tag-tip{transform:translate(-50%,calc(-100% - 16px));white-space:nowrap;background:#fffaf2f2;border:1px solid #fff;border-radius:12px;padding:6px 11px;box-shadow:0 8px 24px #4a33263d;display:flex;flex-direction:column;align-items:center;gap:1px;font-family:Apple SD Gothic Neo,Malgun Gothic,Noto Sans KR,sans-serif;color:var(--ink)}.tag-tip strong{font-size:13px;max-width:240px;overflow:hidden;text-overflow:ellipsis}.tag-tip span{font-size:11px;color:var(--accent)}.modal.ask,.modal.guide{width:min(460px,100%)}.ask-what{margin:0 0 4px;font-size:14px}.ask-options{display:grid;gap:10px;margin-top:12px}.ask-options button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:13px 15px;border-radius:14px}.ask-options strong{font-size:15px}.ask-options small{font-size:12px;line-height:1.5;color:var(--muted)}.ask-keep{border:2px solid var(--accent);background:var(--accent-soft)}.ask-keep:hover{background:var(--accent-soft)}.ask-delete{border:1px solid #e5b4a8;background:#fdf1ec}.ask-delete strong{color:#a4483a}.ask-delete:hover{background:#fbe6de;border-color:#d99583}.guide-steps{list-style:none;padding:0;margin:14px 0 6px;display:grid;gap:10px}.guide-steps li{display:flex;gap:12px;align-items:flex-start}.guide-steps i{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:18px;background:var(--accent-soft);color:var(--accent)}.guide-steps strong{display:block;font-size:14px}.guide-steps small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:2px}@media(max-width:650px){.help{min-height:34px;width:34px;font-size:13px}.room-title{left:10px;top:66px;padding:5px 11px 6px}.room-title h1{font-size:16px}.camera-tools{top:124px}}.memory-meter{display:flex;align-items:center;gap:8px;margin-top:5px;font-size:12px;color:var(--muted);pointer-events:auto}.memory-meter b{color:var(--ink);font-weight:600}.meter-bar{position:relative;width:84px;height:5px;border-radius:3px;background:#e9dccb;overflow:hidden}.meter-bar i{position:absolute;inset:0 auto 0 0;border-radius:3px;background:linear-gradient(90deg,#d9b27c,var(--accent));transition:width .6s ease}.meter-stage{font-size:11px;letter-spacing:.06em;opacity:.8}.memory-meter.full .meter-bar i{background:linear-gradient(90deg,#e8c48a,#d99a4e);animation:meterGlow 2.4s ease-in-out infinite}.memory-meter .grow{min-height:30px;padding:3px 11px;font-size:12px;border-radius:15px;background:var(--accent);border-color:var(--accent);color:#fffaf3;box-shadow:0 0 #e3b06f88;animation:growPulse 2.4s ease-in-out infinite}@keyframes meterGlow{50%{filter:brightness(1.18)}}@keyframes growPulse{0%,to{box-shadow:0 0 #e3b06f00}50%{box-shadow:0 0 0 6px #e3b06f40}}.grow-moment{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:20;display:grid;place-items:start center}.grow-glow{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse 70% 60% at 70% 45%,#fff6dfcc,#ffe9c055 45%,#ffe9c000 75%);opacity:0;animation:growGlow 2.4s ease-out forwards}.grow-moment p{position:relative;margin:150px 0 0;display:flex;flex-direction:column;align-items:center;gap:3px;background:#fffaf2ee;border:1px solid #fff;border-radius:16px;padding:10px 20px 11px;box-shadow:0 10px 34px #7a5a3d33;opacity:0;animation:growLine 2.5s ease-out forwards}.grow-moment strong{font-size:15px;font-weight:600}.grow-moment span{font-size:12px;color:var(--accent)}@keyframes growGlow{0%{opacity:0}25%{opacity:1}to{opacity:0}}@keyframes growLine{0%{opacity:0;transform:translateY(8px)}18%{opacity:1;transform:none}80%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.grow-glow,.grow-moment p,.memory-meter.full .meter-bar i,.memory-meter .grow{animation-duration:.01s}.grow-moment p{opacity:1}}@media(max-width:650px){.room-title{padding-right:112px;min-width:min(300px,calc(100vw - 20px))}.memory-meter{position:absolute;top:5px;right:9px;bottom:5px;margin:0;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;font-size:11px}.meter-bar{width:92px;height:4px}.meter-stage,.memory-meter.full .meter-bar{display:none}.memory-meter .grow{min-height:26px;padding:2px 10px;font-size:11px}.grow-moment p{margin-top:186px}}
