@import url('./native/palette.css');
@font-face{font-family:NativeUI;src:url('./native/pretendard-regular.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:NativeUI;src:url('./native/pretendard-semibold.woff') format('woff');font-weight:500 600;font-display:swap}
@font-face{font-family:NativeUI;src:url('./native/pretendard-bold.woff') format('woff');font-weight:650 900;font-display:swap}
@font-face{font-family:NativeLatin;src:url('./native/inter.woff') format('woff');font-weight:100 900;font-display:swap}
:root{font:15px/1.4 NativeUI,'Malgun Gothic',sans-serif;--ink:var(--native-Ink);--muted:var(--native-Muted);--accent:var(--native-Accent);--line:var(--native-Line);--track:var(--native-AppearanceTrack);--tint:var(--native-Tint);--field:var(--native-Surface);--selected:var(--native-AppearanceSelected);--positive:var(--native-Success);--warning:var(--native-Warning);--surface:linear-gradient(129deg,#fffeff,#fcf8fe);--paper:#fcf8fe;--rail:linear-gradient(164deg,#fcf7fe,#eee5f7);--window:#f4edf9;--backdrop:radial-gradient(ellipse 95% 112% at 81% 8%,#fff7fc,#f4edf9 64%,#ede7f6);--chrome:linear-gradient(107deg,#f3eaf9,#fef9fc);--check:#eee3f4}
:root.dark{--surface:linear-gradient(129deg,#32283f,#292237);--paper:#2d263b;--rail:linear-gradient(164deg,#2c233b,#1f192c);--window:#251e33;--backdrop:radial-gradient(ellipse 95% 112% at 81% 8%,#382b48,#251e33 64%,#1c1928);--chrome:linear-gradient(107deg,#2d233c,#262134)}
.window{grid-template-rows:46px minmax(0,1fr) 38px;grid-template-columns:248px minmax(0,1fr)}
.titlebar{padding:0 8px 0 17px}.titlebar>div:first-child{font:600 14px NativeLatin,NativeUI,sans-serif;gap:9px}.titlebar img{width:29px;height:29px;padding:4px;border-radius:9px;background:linear-gradient(129deg,#ece1f8,#f2e7f0)}.window-actions .button,.window-actions span{width:38px}.window-actions .button:first-child{width:34px}
.sidebar{padding:27px 14px 19px;overflow:hidden}.brand{margin:0 4px 24px;gap:8px}.sidebar nav{margin-inline:4px;gap:4px}.sidebar nav a{min-height:43px;padding:0 13px;font-size:15px;font-weight:600;gap:11px;border:0}.sidebar nav a svg{width:20px;height:20px}.sidebar nav a[aria-current]{background:var(--tint)}
.sidebar-bottom{gap:0;padding-top:0}.sidebar-bottom>.button{min-height:36px;font-size:15px;margin-bottom:6px}.sidebar-bottom>#copy-source{margin-bottom:9px}.resources{margin:0 4px;padding:11px 12px;font-size:13px;border-radius:10px}.resources strong{font-size:13px;margin-bottom:7px}.resources b{font-size:14px;font-weight:600}
#workspace{padding:25px 28px 17px}.statusbar{padding:0 20px;font-size:14px}.statusbar>span:last-child{font-size:14px}
.button{font-size:15px;font-weight:600;min-height:40px;border-color:var(--native-ControlLine);background:var(--native-Surface);border-radius:10px;padding:0 13px}.button:not(:disabled):hover{background:color-mix(in srgb,var(--native-HoverWash),var(--native-Surface))}.button.primary{background:linear-gradient(127deg,#65418e,#844b85);border-color:var(--native-Action);color:white}.button.primary:hover{background:linear-gradient(127deg,#65418e,#844b85);filter:brightness(.98)}.button.soft{background:var(--tint);border-color:var(--line)}.button.quiet{background:transparent;border-color:transparent}.button.quiet:hover{background:var(--native-HoverWash)}.button.danger{color:var(--native-Danger)}.small-button{min-height:28px;height:28px;width:30px;padding:0}.small-button svg{width:17px;height:17px}.surface{border-color:var(--line);border-radius:14px}.pill{font-size:13px;font-weight:600;padding:4px 7px;border-radius:9px}.pill.live{color:var(--native-Success)}
.text-input{border-color:var(--native-ControlLine);font-size:15px}.select{font:15px NativeUI,sans-serif;min-height:36px;border:0;border-radius:20px;background:var(--tint)}.range output{font-size:14px;font-weight:600}.range input{accent-color:var(--accent)}
.toolbar{display:grid;grid-template-columns:minmax(200px,1fr) auto;gap:14px;align-items:start;flex-wrap:nowrap}.toolbar>.tools{gap:14px;align-items:flex-start}.toolbar .picker-title{margin-bottom:6px;font-size:12px}.toolbar .picker-title small{font-size:11px}.toolbar .quick{width:150px}.toolbar .quick:nth-child(2){width:128px}.toolbar .quick:nth-child(3){width:176px}.toolbar>.preset-picker{display:block;min-width:0;max-width:100%;overflow:visible}.toolbar .preset-picker>.segment{width:max-content;max-width:100%;overflow-x:auto;flex-wrap:nowrap}.toolbar .preset-picker .segment>button{width:48px;min-width:48px;flex:none}.toolbar .segment{gap:0;padding:4px;border-radius:9px}.toolbar .segment button{border-radius:7px;border-color:transparent;min-height:48px;height:48px;padding:0 5px}.toolbar .segment button[aria-pressed=true]{border-color:transparent;background:var(--native-AppearanceSelected)}.quick-position svg,.tile-source svg{fill:currentColor;stroke:none}.quick-position{height:17px}.quick .segment>button>svg{width:19px;height:19px}
.search{gap:0;margin:20px 0 14px;position:relative}.search>.button{height:46px;min-width:99px;margin-left:9px}.search>.button:last-child{min-width:103px;margin-left:8px}.search input{font-size:15px;padding:6px 12px 6px 36px}.search-results{position:absolute;display:block;width:min(444px,calc(100% - 16px));max-height:440px;z-index:20;overflow:auto;background:var(--paper);border:1px solid var(--native-ControlLine);border-radius:15px;padding:12px;box-shadow:0 10px 28px #30243c22;top:51px;left:0;margin:0}.search-results:empty{display:none}.search-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:1px 0 8px}.search-top strong{font-size:16px}.search-top .select{height:32px;min-height:30px;width:126px}.search-result{box-shadow:none;border:0;border-radius:10px;padding:8px 5px;gap:9px;min-height:65px;background:transparent}.search-result .entry-name{flex:1;min-width:0}.search-result .entry-name strong{font-size:15px}.search-result .entry-name p{font-size:12px;margin-top:2px}.search-result .button{height:30px;min-height:30px;width:30px;padding:0}.search-result .mini-source{width:40px;height:40px;flex:none}.platform-soop{color:var(--native-SoopText)}.platform-chzzk{color:var(--native-ChzzkText)}
.participant-heading{margin-top:3px;padding:15px 0 12px}.participant-heading .row{gap:9px}.participant-heading h2{font-size:19px}.participant-heading>.button{min-height:32px;height:32px}.participants{gap:10px;margin-inline:-0px;grid-template-columns:repeat(3,minmax(0,1fr))}.participants.many{grid-template-columns:repeat(4,minmax(0,1fr))}.participant{padding:13px 12px 12px;min-height:0;margin-bottom:0;position:relative}.participant .card-header{display:flex;align-items:flex-start;min-height:28px;margin-right:-6px;gap:0}.card-header>.row{flex:1;min-width:0;flex-wrap:wrap;justify-content:flex-start;gap:0}.card-header .tools{gap:0}.card-header>.card-remove{margin-left:auto}.card-status{display:flex;align-items:flex-start}.participant .tile-area{height:224px;min-height:224px;flex:none;padding:10px 0 38px;cursor:pointer}.participant .person-name{display:flex;align-items:center;justify-content:center;gap:7px;font-size:17px;font-weight:700;margin:6px 0 0;line-height:1.4}.platform-logo{width:17px;height:17px;object-fit:contain}.participant .range{margin-top:7px}.participant .range output{min-width:44px;width:44px;text-align:right}.participant.hidden-participant .tile-area{opacity:.4}.empty{min-height:210px;padding:25px 16px}.empty strong{font-size:17px}.empty span{font-size:13px}
.source-face{display:grid;place-items:center;background:var(--tint)}.source-face>.native-camera{width:27px;height:27px;color:var(--accent);transform:scale(var(--zoom));fill:none;stroke:currentColor}.participant-initial{display:none}.source-face::before,.source-face::after{display:none}
.layout-panels{grid-template-columns:272px minmax(0,1fr)!important;gap:14px}.source-panel{padding:14px 12px}.source-panel>.row:first-child{display:block}.source-panel>.row:first-child h2{font-size:16px;margin-bottom:8px}.group-tools{display:flex;justify-content:flex-end;gap:4px}.group-tools .icon-button{width:32px;height:32px;min-height:32px;padding:0}.source-list{margin:9px 0 6px;max-height:232px;gap:6px}.source-row{height:52px;min-height:52px;border-radius:10px;padding:5px 7px}.source-row .mini-source{width:36px;height:36px}.source-row .source-meta strong{font-size:14px}.source-row .source-meta small{font-size:12px}.source-list:has(.source-row:nth-child(5)){overflow-y:auto}.source-list:not(:has(.source-row:nth-child(5))){overflow:visible}.preview-panel{padding:14px}.preview-panel> .row:first-child h2{font-size:17px}.canvas{background:var(--tint)}.canvas.checker{background:var(--tint)}.anchors{width:122px;height:70px;position:relative;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:0;border:1px solid var(--native-ControlLine);border-radius:9px;background:var(--paper);padding:3px}.anchors button{min-height:0;height:auto;width:auto;border:0;border-radius:4px;font-size:0;background:transparent}.anchors button::before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:var(--native-Brand)}.anchors button[aria-pressed=true]::before{background:var(--accent);width:8px;height:8px}.anchors button:hover{background:var(--native-HoverWash)}
.native-view-tools{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:8px 0}.native-view-tools .button{min-height:30px;height:30px;font-size:12px;padding:0 9px}.native-view-tools .icon-button{width:30px;padding:0}.native-view-tools .select{height:30px;min-height:30px}.viewport-canvas{overflow:auto;height:400px;margin-top:12px;background:var(--tint);display:grid;align-items:center}.viewport-canvas .canvas{transform-origin:50% 50%;flex:none}.layout-controls strong{font-size:14px}.layout-controls{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.native-menu{position:fixed;z-index:100;border:1px solid var(--native-ControlLine);background:var(--paper);border-radius:12px;padding:5px;box-shadow:0 8px 26px #30243c2b;min-width:160px;display:grid;gap:3px}.native-menu>.button{border:0;background:transparent;min-height:36px;justify-content:flex-start}.native-menu>.button:hover{background:var(--tint)}
.theme-editor-tabs{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:4px;margin:0 0 14px}.theme-editor-tabs button{border:0;border-radius:7px 7px 0 0;background:transparent;height:38px;min-width:80px;color:var(--muted);font-size:14px;font-weight:600;position:relative}.theme-editor-tabs button[aria-selected=true]{color:var(--accent)}.theme-editor-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:16px;right:16px;height:2px;background:var(--accent);border-radius:1px}.theme-editor-tabs button:hover{background:var(--native-HoverWash)}
dialog{font-family:NativeUI,sans-serif;max-height:calc(100dvh - 48px);border-color:var(--native-ControlLine);padding:24px;border-radius:16px;min-width:360px}dialog .modal-header{margin-bottom:19px}dialog .modal-header h2{font-size:21px}dialog .modal-actions{margin-top:22px;justify-content:flex-end;gap:8px}.native-source-guide{width:430px}.source-resolution{display:flex;justify-content:center;gap:24px;margin:20px 0;background:var(--tint);border-radius:12px;padding:18px}.source-resolution label{font-size:13px;color:var(--muted)}.source-resolution strong{display:block;font:600 28px NativeLatin,NativeUI,sans-serif;color:var(--accent)}
@media(max-width:1102px){.participants.many{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar{display:flex;flex-wrap:wrap}.toolbar>.preset-picker{margin-right:auto}.toolbar>.tools{gap:10px}}

.ratio-glyph{display:inline-block;width:17px;height:17px;border:1.4px solid currentColor;border-radius:1px;color:var(--accent)}.ratio-glyph.portrait{width:11px;height:19px}.ratio-glyph.monitor{width:20px;height:15px}.ratio-glyph.wide{width:22px;height:12px}.ratio-glyph.free{width:20px;height:15px;border-style:dashed;transform:skew(-8deg)}
.figure{display:block;min-height:0;aspect-ratio:1;overflow:visible}.source-face{position:absolute;top:0;left:0}.nameplate{position:absolute!important;top:var(--label-top);bottom:auto!important;left:calc(var(--face-width)/2);transform:translateX(-50%);height:var(--label-height);padding:0 .62em;line-height:1.2;min-width:0;width:var(--tag-width,max-content);max-width:var(--face-width);font-size:var(--name-size);font-weight:700}.nameplate.minimal{text-shadow:-.5px 0 #202020,.5px 0 #202020,0 -.5px #202020,0 .5px #202020;border:0;background:transparent;overflow:visible}.source-face.mono{border-color:var(--outline-color,#ffffffeb);outline:1px solid #241e30c7;box-shadow:0 1px 2px #0000002e}.source-face.minimal{border-color:var(--outline-color,#342e3fb8)}.joined-below .source-face{border-bottom-left-radius:0;border-bottom-right-radius:0}.joined-above .source-face{border-top-left-radius:0;border-top-right-radius:0}.joined-below .nameplate{border-top-left-radius:0;border-top-right-radius:0}.joined-above .nameplate{border-bottom-left-radius:0;border-bottom-right-radius:0}
.sources>h2{font-size:17px;margin-bottom:7px}.sources>.group-tools{justify-content:flex-end;margin-bottom:10px}.layout-controls>.row>.measure{flex:1}.measure>.range{margin-top:4px}.measure>.range>output{display:none}.layout-controls> .measure{margin-top:10px}.measurements{display:grid;gap:8px}.scene-preview .canvas{width:100%;min-height:0;flex:none}.viewport-canvas{display:flex;align-items:center;justify-content:flex-start;border-radius:8px;height:400px;min-height:400px}.output-size{display:block;text-align:right;color:var(--muted);font-size:12px;height:46px;padding-top:14px}.canvas.is-output{background:var(--tint)}.output-view .canvas{background:transparent}
.theme-toolbar{gap:14px;flex-wrap:nowrap;align-items:center}.theme-toolbar>.quick{max-width:calc(100% - 310px);overflow:auto}.theme-toolbar .toolbar-target{flex:none;gap:9px;max-width:310px}.toolbar-target .select{max-width:200px}.theme-grid{grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);gap:18px;margin-top:18px}.theme-preview{padding:16px}.theme-preview>.row>.select{width:176px;font-size:13px;min-height:32px;height:32px}.theme-stage{height:350px;margin:12px 0;background:var(--tint)}.theme-stage.lavender{background:var(--tint)}.theme-preview>.segment[aria-label="미리보기 배경"]{width:114px;margin-left:auto;background:none;padding:0;gap:8px}.theme-preview>.segment[aria-label="미리보기 배경"] button{font-size:0;width:25px;min-height:17px;height:17px;border:1px solid var(--native-ControlLine);border-radius:4px;padding:0}.theme-preview>.segment[aria-label="미리보기 배경"] button:nth-child(1){background:#eee3f4}.theme-preview>.segment[aria-label="미리보기 배경"] button:nth-child(2){background:#fff}.theme-preview>.segment[aria-label="미리보기 배경"] button:nth-child(3){background:#2d263b}.theme-preview>.segment[aria-label="미리보기 배경"] button[aria-pressed=true]{outline:1px solid var(--accent);outline-offset:2px}.shape-options button{min-height:32px;display:flex;gap:6px;justify-content:center;padding:3px 4px;font-size:12px;min-width:0}.shape-options svg{height:16px;width:16px}.theme-inspector{padding:16px 18px}.theme-inspector>.row:first-child{align-items:start}.theme-editor-tabs{width:276px;flex:none}.theme-editor-tabs .button{font-size:14px;min-width:90px}.theme-inspector .setting-row{grid-template-columns:118px minmax(0,1fr);min-height:37px;margin:6px 0}.theme-inspector>section+section{margin-top:0}.theme-inspector>.row~section{min-height:280px}.theme-inspector .setting-row>span:first-child{font-size:14px}.colors{padding:3px;gap:5px}.colors button{height:24px}.color-row .color-picker{height:32px}.color-hex{font-size:12px;width:76px}.color-picker{width:32px}.theme-toolbar .preset-picker{flex-wrap:nowrap}.theme-toolbar .picker-add{height:62px;width:54px;min-width:54px;background:var(--track);border:0;border-radius:9px;align-self:flex-end}.theme-toolbar .preset-picker>.segment{padding:4px}.theme-toolbar .preset-picker>.segment button{height:54px;width:54px}.custom-tiles{display:flex;align-items:center;gap:4px}.custom-tiles .segment{position:relative}.custom-tiles .segment>button:first-child{width:54px!important;height:54px;padding:0}.custom-delete{position:absolute;right:0;top:-22px;min-height:20px!important;height:20px!important;width:20px!important;padding:0}.custom-delete svg{height:12px;width:12px}
.native-color-dialog{width:410px;max-width:100%}.sv-picker{height:220px;position:relative;border-radius:10px;touch-action:none;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent)}.sv-picker i{position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #333}.hue-picker{width:100%;margin:16px 0;appearance:none;height:14px;border-radius:8px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.hue-picker::-webkit-slider-thumb{appearance:none;width:12px;height:22px;border:2px solid #fff;background:transparent;border-radius:5px;box-shadow:0 0 0 1px #888}.color-sample{width:40px;height:36px;border:1px solid var(--line);border-radius:8px}.native-color-dialog .text-input{height:36px;width:130px}
.native-remote{position:fixed;z-index:80;width:352px;padding:12px;background:var(--field);border:1px solid var(--native-ControlLine);border-radius:14px;box-shadow:0 10px 35px #30243c35;max-height:calc(100dvh - 24px);overflow:auto;font-size:13px;outline:none}.remote-head{display:flex;justify-content:space-between;gap:6px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:9px;cursor:move}.remote-title{display:flex;align-items:center;gap:9px}.remote-title-text{display:grid;gap:1px}.remote-title-text strong{font-size:17px}.remote-title-text small{font-size:12px;color:var(--muted)}.remote-mark{display:grid;place-items:center;background:var(--tint);width:36px;height:36px;border-radius:9px}.remote-head .select{height:30px;min-height:30px;width:100px;font-size:12px;padding:0 8px}.remote-head>.tools{gap:0}.native-remote .small-button{height:30px;min-height:30px;width:30px}.native-remote>.row{margin:5px 0}.native-remote>.segment{padding:3px;gap:3px}.native-remote>.segment button{font-size:12px;display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:3px}.native-remote>.segment button svg{width:14px;height:14px}.remote-placement-toggle{width:100%;display:flex;justify-content:space-between;border:0;background:var(--tint);min-height:34px;margin:4px 0 0;font-size:12px;font-weight:400}.remote-pads{display:grid;grid-template-columns:1fr 1fr;margin-top:6px}.remote-pads>div{justify-self:center}.remote-pads small{display:block;font-size:11px;margin-bottom:6px}.remote-pads .anchors{width:146px;height:83px;margin:0}.remote-position-pad{width:146px;height:83px;position:relative;background:var(--paper);border:1px solid var(--native-ControlLine);border-radius:9px;overflow:hidden;touch-action:none}.position-frame{position:absolute;border:1px solid var(--accent);background:var(--selected);min-width:4px;min-height:4px;border-radius:2px;cursor:move}.position-point{position:absolute;width:10px;height:10px;background:var(--accent);border:1.5px solid var(--field);border-radius:50%;transform:translate(-50%,-50%);cursor:move}.remote-position-pad:hover .position-point{width:14px;height:14px}.native-remote>.setting-row{font-size:12px;margin:10px 2px}.remote-people{max-height:270px;overflow:auto;padding:3px}.remote-person{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;margin:0 0 5px;padding:3px;gap:0;cursor:grab}.remote-person.selected{border-color:var(--accent);background:var(--tint)}.remote-person-name{flex:1;justify-content:flex-start;font-size:13px;min-width:0;padding:0 5px}.remote-grip{font-size:14px;color:var(--muted)}.remote-person .tools{gap:0}.remote-person.is-hidden .remote-person-name{opacity:.45}.remote-remove{color:var(--native-Danger)!important;background:var(--native-DangerTint)!important}.remote-remove svg{color:inherit}.remote-crop{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;background:var(--track);margin-top:8px}.remote-crop-thumb{width:64px;height:64px;flex:none;display:grid;place-items:center;background:var(--field);border-radius:8px;padding:3px}.remote-crop>div:last-child{flex:1;min-width:0}.remote-zoom{width:56px;min-height:30px;height:30px;padding:0;font-size:12px}.remote-crop .segment{padding:0;background:none;margin-top:4px}.remote-crop .segment button{min-height:31px;padding:0}.remote-entire{width:100%;height:38px;margin-top:9px}.remote-undo-removal{width:100%;min-height:30px;font-size:12px;margin-top:6px}.native-toggle{appearance:none;flex:none;width:36px;height:20px;background:#c9b9d7;border:0;border-radius:10px;position:relative;cursor:pointer;transition:background .12s}.native-toggle::after{content:'';position:absolute;width:14px;height:14px;background:white;border-radius:50%;left:3px;top:3px;transition:transform .12s}.native-toggle:checked{background:var(--accent)}.native-toggle:checked::after{transform:translateX(16px)}
.settings-list{gap:0}.settings-list>.surface{padding:14px 19px 11px;margin-top:15px}.settings-heading{display:flex;align-items:center;gap:9px;margin-bottom:5px}.settings-heading>svg{background:var(--tint);box-sizing:content-box;padding:6px;width:18px;height:18px;border-radius:8px;color:var(--accent)}.settings-heading h2{font-size:18px}.settings-row{min-height:34px;padding:3px 0;border:0;font-size:15px}.settings-row strong{font-weight:600}.settings-row .select{min-height:32px;height:32px;border-radius:18px;border:0;background:var(--tint);font-weight:400;padding:0 12px}.settings-list>.row>.button{margin-left:auto}.update-actions{justify-content:flex-end;margin-top:8px}.preset-thumbnail{width:128px;height:72px;flex:none;background:var(--tint)}.preset-list .entry-name{flex:1}.preset-list .entry{padding:14px}.preset-list{margin-top:17px}.modal-tile{min-height:264px}.modal-panel .muted{font-size:12px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.toolbar>.quick{width:auto;min-width:200px;max-width:calc(100% - 500px)}.toolbar>.tools>.quick:first-child{width:150px}.toolbar>.tools>.quick:nth-child(2){width:128px}.toolbar>.tools>.quick:nth-child(3){width:176px}.theme-toolbar>.quick{width:auto;min-width:232px;max-width:calc(100% - 330px);overflow:visible}.toolbar .preset-picker>.segment{overflow:visible;max-width:none;flex:none}.toolbar .custom-tiles .segment>button{width:48px}.theme-toolbar .custom-tiles .segment>button{width:54px}.theme-preview .source-face{background:#dfcfea}.search>button:last-of-type{width:103px;min-width:103px;gap:8px}

.custom-preset-wrap{position:relative;display:flex;flex:none}.custom-preset-choice{height:48px;min-width:48px;border:0;background:none;border-radius:7px;padding:0!important;display:grid;place-items:center}.custom-preset-choice[aria-pressed=true]{background:var(--selected)}.theme-toolbar .custom-preset-choice{height:54px;min-width:54px}.theme-toolbar .custom-delete{top:-26px!important;height:20px!important;min-height:20px!important;width:20px!important}.toolbar .segment .custom-delete{height:20px;min-height:20px;width:20px;min-width:20px}.theme-toolbar .preset-picker>.segment{max-width:100%;overflow-x:visible}.theme-toolbar>.quick{overflow:visible}.native-source-guide{max-width:100%}

input[type=checkbox].native-toggle{width:36px;height:20px;margin:0;flex:none}input[type=checkbox].native-toggle:checked{background:var(--accent)}

/* Font copyright notices: native/Pretendard-OFL.txt and native/Inter-OFL.txt */
.native-guide-layer{position:fixed;inset:46px 0 38px;z-index:200;overflow:hidden}.native-guide-hole{position:fixed;border:2px solid var(--native-Brand);border-radius:10px;box-shadow:0 0 0 300vmax #20192cac;pointer-events:none}.native-guide-card{position:fixed;width:380px;padding:20px;background:var(--field);box-shadow:0 10px 45px #0003}.native-guide-card>h2{font-size:19px;margin:8px 0 4px}.native-guide-card>p{font-size:14px;line-height:21px;color:var(--muted)}.native-guide-card> .row:last-child{margin-top:13px}.native-guide-card .button{min-height:32px;height:32px;font-size:13px;padding:0 10px}.native-guide-card> .row:first-child strong{font-size:12px;color:var(--accent)}.native-guide-card small{font-size:12px}


/* Keep the native desktop layout; adapt its working panels to available space. */
.window {
  min-width: 860px;
  min-height: 598px;
  height: 100dvh;
  grid-template: "title title" 46px "sidebar workspace" minmax(0, 1fr) "status status" 38px / 248px minmax(0, 1fr);
}
#workspace { min-width: 0; overflow: auto; }
#page { container: workspace / inline-size; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.toolbar > .overlay-picker { flex: 1 1 220px; width: auto; min-width: 0; max-width: none; }
.toolbar > .tools { flex: 0 1 auto; flex-wrap: wrap; gap: 14px; max-width: 100%; }
.toolbar .picker-title { min-width: 0; gap: 10px; }
.toolbar .picker-title > span { flex: none; }
.toolbar .picker-title small { min-width: 0; max-width: 160px; text-align: right; }
.preset-picker { flex-wrap: nowrap; align-items: flex-end; min-width: 0; gap: 6px; }
.preset-scroll { flex: 0 1 auto; min-width: 0; overflow-x: auto; padding: 2px 1px 5px; margin: -2px -1px -5px; scrollbar-width: thin; scrollbar-color: var(--native-Brand) transparent; }
.preset-scroll.has-delete { padding-top: 25px; margin-top: -25px; }
.toolbar .preset-scroll > .segment { width: max-content; max-width: none; overflow: visible; flex-wrap: nowrap; }
.toolbar .preset-scroll > .segment > button { flex: none; width: 48px; min-width: 48px; }
.theme-toolbar { align-items: center; }
.theme-toolbar > .overlay-picker { flex-basis: 300px; min-width: 220px; max-width: none; overflow: visible; }
.theme-toolbar .toolbar-target { flex: 0 1 auto; max-width: 100%; min-height: 40px; }
.theme-toolbar .toolbar-target .select { width: 200px; min-width: 0; }
.theme-toolbar .preset-scroll > .segment > button { height: 54px; width: 54px; min-width: 54px; }
.theme-toolbar .picker-add { flex: none; height: 62px; width: 54px; min-width: 54px; }
.custom-preset-wrap { flex: none; }
.custom-preset-choice { flex: none; }
.theme-toolbar .custom-preset-wrap .custom-delete { top: -25px !important; right: 2px; }

/* Preserve readable controls instead of compressing the theme editor. */
.theme-grid { grid-template-columns: minmax(280px, .43fr) minmax(450px, .57fr); align-items: start; }
.theme-preview, .theme-inspector { min-width: 0; }
.theme-preview > .row { flex-wrap: wrap; }
.theme-preview > .row > .select { max-width: 100%; }
.theme-stage { background: color-mix(in srgb, var(--tint) 72%, var(--field)); border: 1px solid var(--line); }
.theme-stage.light { background: #fff; }
.theme-stage.dark { background: #2c2634; }
.theme-stage.lavender { background: color-mix(in srgb, var(--tint) 72%, var(--field)); }
.theme-inspector > .row:first-child { gap: 12px; align-items: center; }
.theme-editor-tabs { flex: 1 1 auto; width: auto; max-width: 276px; min-width: 0; margin-bottom: 12px; }
.theme-editor-tabs .button { min-width: 0; flex: 1; padding-inline: 10px; }
.theme-inspector > .row:first-child > .button { flex: none; align-self: start; }
.theme-inspector .setting-row { min-width: 0; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; margin-block: 9px; }
.theme-inspector .setting-row > :last-child { min-width: 0; }
.theme-inspector .segment { min-width: 0; }
.theme-inspector .segment button { min-width: 0; padding-inline: 5px; white-space: nowrap; }
.color-row { display: grid; grid-template-columns: minmax(120px, 1fr) 76px 32px 28px; gap: 5px; width: 100%; }
.colors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 3px; gap: 4px; min-width: 0; }
.colors button { min-width: 0; width: 100%; height: 25px; border-radius: 5px; }
.color-row .color-hex { width: 76px; padding-inline: 3px; font-size: 12px; height: 32px; }
.color-row > .button { min-width: 0; width: 100%; height: 32px; min-height: 32px; }
.dual-range { min-width: 0; gap: 14px; }
.dual-range > .range { min-width: 0; }

/* Source controls and canvas handles must stay inside their panels. */
.scene-grid { grid-template-columns: 272px minmax(0, 1fr); gap: 16px; }
.sources, .scene-preview { min-width: 0; }
.layout-controls > .row { gap: 12px; align-items: start; }
.layout-controls > .row > div:first-child { flex: 0 0 122px; min-width: 0; }
.layout-controls > .row > .measure { flex: 1; min-width: 0; }
.measure { min-width: 0; }
.measure > .row { min-width: 0; gap: 4px; }
.measure > .row > strong { min-width: 0; white-space: nowrap; font-size: 13px; }
.measure > .row > output { flex: none; min-width: 0; width: auto; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.measure .range { width: 100%; }
.native-view-tools { flex-wrap: wrap; justify-content: flex-end; column-gap: 5px; row-gap: 6px; }
.native-view-tools > span { min-width: 42px; text-align: center; font-size: 13px; }
.canvas .drag-handle { min-height: 0; padding: 0; font-size: 11px; line-height: 1; border-radius: 4px; }
.canvas .source-resize { width: 14px; height: 14px; }
.canvas .group-move { width: 22px; height: 15px; }
.canvas .group-move svg { width: 11px; height: 11px; }
.canvas .group-resize { width: 13px; height: 24px; }
.source-meta > span:last-child { flex: 1; min-width: 0; }
.source-row .source-meta strong, .source-row .source-meta small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.source-list { scrollbar-width: thin; scrollbar-color: var(--native-Brand) transparent; }
.participant .person-name { min-width: 0; max-width: 100%; }
.participant .person-name > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.participant .person-name .platform-logo { flex: none; }
.participants.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preset-list .entry { flex-wrap: wrap; gap: 14px; }
.preset-list .entry-name { min-width: 100px; }
.preset-list .entry-name strong, .preset-list .entry-name p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.preset-list .entry-actions { flex: 0 1 auto; }

/* Dialogs and floating windows share a safe edge around the viewport. */
dialog { min-width: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); width: min(470px, calc(100vw - 32px)); overflow: auto; scrollbar-width: thin; }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
.modal-header { align-items: start; }
.modal-header h2 { min-width: 0; overflow-wrap: anywhere; }
.modal-header > .button { flex: none; }
.native-source-guide, .native-color-dialog { width: 100%; max-width: 100%; }
.native-source-guide > .text-input { width: 100%; }
.free-ratio-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.free-ratio-fields > label { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.free-ratio-fields .text-input { width: 100%; }
.free-ratio-fields > span { align-self: end; padding-bottom: 10px; color: var(--muted); }
.native-menu { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; scrollbar-width: thin; }
.native-remote { width: min(352px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); scrollbar-width: thin; scrollbar-color: var(--native-Brand) transparent; }
.native-guide-card { max-width: calc(100vw - 32px); }

@container workspace (min-width: 855px) {
  .participants.many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container workspace (max-width: 810px) {
  .theme-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-toolbar > .overlay-picker { flex-basis: 100%; }
  .theme-toolbar .toolbar-target { margin-left: auto; }
  .theme-preview .theme-stage { height: 300px; }
  .theme-inspector > .row ~ section { min-height: 0; }
}
@container workspace (max-width: 700px) {
  .participant .card-header { min-height: 56px; }
  .preset-list .entry-actions { margin-left: auto; }
}


/* Floating controls use the visible portion of the scaled demo window. */
dialog {
  container: dialog / inline-size;
  position: fixed;
  inset: auto;
  left: calc(var(--visible-left, 0px) + var(--visible-width, 100vw) / 2);
  top: calc(var(--visible-top, 0px) + var(--visible-height, 100dvh) / 2);
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(470px, calc(var(--visible-width, 100vw) - 32px));
  max-width: calc(var(--visible-width, 100vw) - 32px);
  max-height: calc(var(--visible-height, 100dvh) - 32px);
}
dialog.wide { width: min(760px, calc(var(--visible-width, 100vw) - 32px)); }
.native-menu { max-width: calc(var(--visible-width, 100vw) - 16px); max-height: calc(var(--visible-height, 100dvh) - 16px); }
.native-remote { max-width: calc(var(--visible-width, 100vw) - 24px); max-height: calc(var(--visible-height, 100dvh) - 24px); }
.search-results { position: fixed; max-width: calc(var(--visible-width, 100vw) - 24px); }
@container dialog (max-width: 600px) {
  .modal-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-tile { min-height: 210px; height: 210px; }
}

.toolbar .preset-scroll .custom-preset-wrap > .custom-preset-choice { width: 48px; min-width: 48px; height: 48px; }
.theme-toolbar .preset-scroll .custom-preset-wrap > .custom-preset-choice { width: 54px; min-width: 54px; height: 54px; }
.preset-tile .tile-source > svg { color: inherit; }
.custom-preset-choice .preset-tile { position: relative; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Reserve a separate strip for delete actions; names keep their own heading row. */
.preset-scroll { box-sizing: content-box; height: 56px; padding-bottom: 8px; margin-bottom: -8px; overflow-y: hidden; }
.theme-toolbar .preset-scroll { height: 62px; }
.preset-scroll.has-delete { padding-top: 22px; margin-top: 0; }
.theme-toolbar .custom-preset-wrap .custom-delete { top: -22px !important; }

#notice {
  right: calc(100vw - var(--visible-left, 0px) - var(--visible-width, 100vw) + 16px);
  bottom: calc(100dvh - var(--visible-top, 0px) - var(--visible-height, 100dvh) + 50px);
  max-width: min(420px, calc(var(--visible-width, 100vw) - 32px));
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
  z-index: 110;
}
.native-guide-card { max-width: calc(var(--visible-width, 100vw) - 32px); }

/* Fit the complete 1920x1080 canvas; larger edit zoom remains scrollable. */
.viewport-canvas { align-items: flex-start; justify-content: flex-start; }
.viewport-canvas > .canvas { margin: auto; }
