:root:is([lang="en"],[lang="es"],[lang="fr"],[lang="de"],[lang="pt"]){--editor-ui-font:'FP DM Sans','FP Pretendard',system-ui,sans-serif}
:root[lang="ja"]{--editor-ui-font:'FP Noto Sans JP','FP DM Sans','Hiragino Sans','Yu Gothic',sans-serif}
:root[lang="zh-CN"]{--editor-ui-font:'FP Noto Sans SC','FP DM Sans','PingFang SC','Microsoft YaHei',sans-serif}
:root[lang="zh-TW"]{--editor-ui-font:'FP Noto Sans TC','FP DM Sans','PingFang TC','Microsoft JhengHei',sans-serif}
:root{--editor-ui-font:'FP Pretendard','Noto Sans KR',system-ui,sans-serif;font-family:var(--editor-ui-font);color:#202827;background:#f8f9f8;font-synthesis:none;--mint:#a2ebc9;--green:#24764e;--muted:#858b88;--border:#e5e8e5;--dark:#111719;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #67bea0;outline-offset:3px}button:hover{filter:brightness(.96)}input,select{outline:none}input:focus-visible,select:focus-visible{outline:2px solid #69bc96;outline-offset:2px}button:disabled{opacity:.4;cursor:not-allowed}svg.icon{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}span[data-icon]{display:inline-flex}h1,h2,p{margin:0}h1{font-size:21px;font-weight:650;letter-spacing:-.8px;line-height:1.6}h2{font-size:24px;letter-spacing:-.8px;font-weight:650;margin:8px 0 24px}a{color:inherit}button[hidden],[hidden]{display:none!important}.topbar{height:78px;padding:0 28px;display:flex;align-items:center;border-bottom:1px solid var(--border);background:white;gap:35px}.brand{font-size:29px;font-weight:700;letter-spacing:-1.4px;text-decoration:none;display:flex;align-items:center;gap:9px}.brand-icon{width:35px;height:35px;background:var(--mint);border-radius:11px;align-items:center;justify-content:center;transform:rotate(-5deg)}.brand-icon svg{width:23px;height:23px;fill:#18372b;stroke:#18372b}.brand-dot{color:#5fc796;margin-left:-9px}.project-name{display:flex;gap:20px;align-items:center;min-width:0}.divider{height:22px;width:1px;background:var(--border)}#projectName{width:180px;border:0;color:#505651;font-size:14px;padding:8px 0;overflow:hidden;text-overflow:ellipsis;background:transparent}.saved{font-size:12px;color:#8c948d;display:flex;align-items:center;gap:5px;white-space:nowrap}.saved svg{width:14px;height:14px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:18px}.text-button{font-size:14px;color:#626b65;white-space:nowrap}.primary{background:var(--mint);color:#163f2d;border-radius:9px;padding:13px 19px;font-size:14px;font-weight:650;white-space:nowrap}.icon-button{width:34px;height:34px;border-radius:7px;color:#7f8985}.icon-button:hover{background:#f1f3f1;color:#284b3a}.workspace{display:flex;height:calc(100dvh - 78px);min-height:620px}.sidebar{width:326px;flex-shrink:0;background:white;border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.tabbar{display:grid;grid-template-columns:repeat(4,1fr);height:76px;padding:0 14px;border-bottom:1px solid var(--border);flex-shrink:0}.tabbar button{font-size:13px;gap:6px;flex-direction:column;color:#8c938e;position:relative;padding:12px 3px}.tabbar button.active{color:#225c40;font-weight:600}.tabbar button.active:after{content:'';position:absolute;bottom:-1px;height:3px;border-radius:4px 4px 0 0;background:#79c99e;width:34px}.tabbar svg{width:21px;height:21px}.panel-scroll{overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#d9dfda transparent}.panel{padding:25px 23px 27px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.9px;color:#98a198;display:block;margin-bottom:6px}.help{border:1px solid #c9cfca;border-radius:50%;width:15px;height:15px;font-size:10px;padding:0;color:#929b93;margin-left:8px;line-height:1;flex-shrink:0}.style-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.style-card{position:relative;display:block;text-align:left;padding:0;border:1.5px solid #e8ece9;border-radius:9px;overflow:hidden;transition:border .15s}.style-card.active{border-color:#65b88e;box-shadow:0 0 0 2px #b3e4c830}.style-card canvas{display:block;width:100%;height:65px;background:#12202a}.style-card .style-name{display:block;padding:8px 10px;font-size:12px;color:#5b665e}.style-card.active .style-name{color:#28764e;background:#f2fbf5;font-weight:600}.style-check{position:absolute;top:7px;right:7px;background:var(--mint);color:#1e573b;width:17px;height:17px;border-radius:50%;align-items:center;justify-content:center;display:none}.active .style-check{display:flex}.style-check svg{width:11px;height:11px;stroke-width:2.5}.control-section{margin-top:25px;padding-top:22px;border-top:1px solid var(--border)}.label-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:500;margin-bottom:13px;gap:8px}.label-row>span{display:flex;align-items:center}.label-row output{font-family:'FP DM Sans',var(--editor-ui-font);font-size:12px;color:#6c796f;font-weight:500}.curve-graph{height:66px;cursor:ew-resize;margin-bottom:4px;background:linear-gradient(#f6f9f6,white);border-radius:6px;overflow:hidden}.curve-graph svg{width:100%;height:100%}.graph-grid{fill:none;stroke:#e3eae4;stroke-width:.7}input[type=range]{appearance:none;width:100%;height:4px;background:linear-gradient(to right,#7bc29d 0%,#7bc29d var(--range,50%),#e7ece8 var(--range,50%));border-radius:5px;display:block;cursor:pointer;margin:15px 0}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;background:white;border:2px solid #72b98e;border-radius:50%;box-shadow:0 1px 3px #0001}input[type=range]::-moz-range-thumb{width:9px;height:9px;background:white;border:2px solid #72b98e;border-radius:50%}.range-labels{display:flex;justify-content:space-between;color:#9ba29b;font-size:11px;margin-top:10px}.toggle-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-top:20px;cursor:pointer}.toggle-row input{position:absolute;opacity:0;width:1px;height:1px}.switch{width:29px;height:17px;border-radius:12px;background:#dce2dd;position:relative;transition:background .15s}.switch:after{content:'';width:13px;height:13px;position:absolute;left:2px;top:2px;background:white;border-radius:50%;box-shadow:0 1px 2px #0002;transition:transform .15s}.toggle-row input:checked+.switch{background:#76bb96}.toggle-row input:checked+.switch:after{transform:translateX(12px)}.toggle-row input:focus-visible+.switch{outline:2px solid #277d51;outline-offset:3px}.sidebar-footer{margin-top:auto;min-height:44px;padding:12px 23px;border-top:1px solid var(--border);font-size:10px;letter-spacing:.4px;color:#a7aea7;display:flex;align-items:center;gap:8px}.sidebar-footer svg{width:14px;height:14px}.editor{flex:1;min-width:0;display:flex;flex-direction:column;background:#f2f4f2;padding:0 28px}.editor-toolbar{height:65px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#7d877e}.editor-toolbar>div,.preview-tools{display:flex;align-items:center;gap:9px}.live-dot{width:5px;height:5px;border-radius:50%;background:#6eb98e;margin-right:2px}.preview-tools{gap:13px!important}.tool-pill{font-size:12px;padding:5px 6px;color:#677468;gap:18px}.tool-pill svg{width:13px;height:13px}.toolbar-divider{width:1px;height:17px;background:#d8dfd9}.stage-area{min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;padding-bottom:25px}.stage{width:100%;aspect-ratio:16/9;max-height:100%;position:relative;overflow:hidden;border-radius:13px;background:#070d14;box-shadow:0 3px 7px #25312912,0 18px 40px #293c3710}#preview{display:block;width:100%;height:100%;cursor:grab;touch-action:none}#preview:active{cursor:grabbing}.stage-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;background:#0c1720;color:#b4d4c6;font-size:14px}.loader{width:29px;height:29px;border:2px solid #304e43;border-top-color:#afe4c9;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.stage-caption{position:absolute;bottom:4px;font-size:11px;color:#a3aba3;display:flex;align-items:center;gap:8px}.stage-caption svg{width:12px;height:12px}.transport{padding:18px 22px 12px;background:white;border:1px solid #e4e9e4;border-radius:12px;margin-top:13px;margin-bottom:13px;flex-shrink:0}.transport-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.play-controls{display:flex;align-items:center;gap:15px}.play-button{border-radius:50%;width:33px;height:33px;background:#edf5ef;color:#37714f}.play-button svg{width:14px;height:14px;fill:currentColor;stroke-width:1.2}.timecode{font-size:11px;font-family:'FP DM Sans',var(--editor-ui-font);display:flex;gap:8px;color:#a9b0a8;font-variant-numeric:tabular-nums}.timecode b{font-weight:550;color:#58675b}.timeline-route{font-size:10px;letter-spacing:1.8px;color:#758575;font-weight:550;display:flex;gap:12px}.timeline-route span{color:#b0bdb1}.speed-button{font-size:11px;color:#71816f;border:1px solid #e4eae3;border-radius:5px;padding:4px 9px}.timeline-wrap{margin-top:13px}#timeline{margin:9px 0 11px;height:4px;--range:0%}#timeline::-webkit-slider-thumb{width:10px;height:10px;background:#8cca9d;border:2px solid white;box-shadow:0 0 0 1px #81bb91}.timeline-ticks{display:flex;justify-content:space-between;font-size:9px;color:#b1b8b0;letter-spacing:.7px}.editor-bottom{display:flex;justify-content:space-between;gap:10px;color:#9fa79d;font-size:10px;padding:1px 0 17px}.editor-bottom>span:first-child{display:flex;align-items:center;gap:6px}.ready-dot{background:#8cb49a;width:4px;height:4px;border-radius:50%}.airport-list{display:flex;flex-direction:column;gap:14px}.airport-item{position:relative;border:1px solid #e1e8e2;border-radius:10px;display:flex;align-items:center;padding:11px 6px 11px 12px;gap:10px;background:#fff}.airport-item:not(:last-child):after{content:'';height:15px;width:1px;background:#c7d9cb;position:absolute;top:100%;left:25px}.stop-letter{font-size:11px;width:25px;height:25px;border-radius:50%;background:#edf6ef;color:#43805b;display:flex;justify-content:center;align-items:center;flex-shrink:0}.airport-edit{display:block;text-align:left;min-width:0;flex:1;padding:0}.airport-edit b{font-size:20px;font-weight:550;letter-spacing:.5px}.airport-edit span{display:block;font-size:11px;color:#869188;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:155px;margin-top:4px}.stop-actions{display:flex;flex-direction:column}.stop-actions button{width:22px;height:20px;color:#a4b0a5;font-size:14px}.stop-actions svg{width:13px;height:13px}.add-stop{margin-top:16px;border:1px dashed #c8d8cc;border-radius:9px;width:100%;padding:12px;color:#5a8b6a;font-size:13px}.route-tools{display:flex;justify-content:space-between;gap:6px;margin-top:17px}.subtle{font-size:12px;color:#7a8c7e;padding:5px 0}.subtle svg{width:15px;height:15px}.trip-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px;background:#f6f8f5;border-radius:9px}.trip-summary>div{display:flex;flex-direction:column;gap:7px}.trip-summary strong{font-size:18px;font-weight:500}.trip-summary span{font-size:11px;color:#99a297}.preset{display:flex;justify-content:space-between;width:100%;padding:14px 0;border-bottom:1px solid #edf0ec;font-size:12px}.preset small{font-size:10px;color:#9ba59a}.data-note{font-size:10px;color:#a7aea3;margin-top:22px}.plane-preview{background:#f1f6f3;border-radius:10px;height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin-bottom:13px}.plane-preview svg{width:220px;height:76px}.plane-preview span{font-size:9px;letter-spacing:1.2px;color:#96a49b}select,input[type=number]{width:100%;border:1px solid #dfe6df;background:#fff;border-radius:7px;padding:10px 11px;color:#556454;font-size:13px}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a897d' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice-button{border:1px solid #e0e8e0;border-radius:7px;padding:10px 6px;font-size:11px;display:flex;flex-direction:column;gap:8px}.choice-button.active,.camera-choice.active,.line-choice.active,.ratio-choice.active{border-color:#85bf9b;background:#f0f9f1;color:#38774f}.choice-symbol{font-size:20px;height:23px}.line-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.line-choice{border:1px solid #e0e8e0;padding:12px 7px;border-radius:7px;flex-direction:column;font-size:11px;gap:8px}.line-sample{height:0;width:55px;border-top:2px solid currentColor}.line-sample.dashed{border-top-style:dashed}.line-sample.dots{border-top-style:dotted;border-top-width:3px}.line-sample.glow{box-shadow:0 0 5px currentColor}.line-sample.trail{mask-image:linear-gradient(90deg,transparent,black)}.spaced{margin-top:19px}input[type=color]{width:28px;height:25px;border:1px solid #dae4da;border-radius:5px;padding:2px;background:white;cursor:pointer}.camera-choices{display:flex;flex-direction:column;gap:10px}.camera-choice{border:1px solid #e0e8e0;padding:15px;border-radius:9px;justify-content:flex-start;text-align:left;gap:15px}.camera-choice span:last-child{display:flex;flex-direction:column;gap:5px;font-size:13px}.camera-choice small{font-size:11px;color:#98a398}.mini-note{font-size:11px;line-height:1.9;color:#a2aca1;margin-top:30px;padding:17px;background:#f6f8f4;border-radius:8px}.modal{border:1px solid #e4e9e1;border-radius:18px;padding:33px;max-height:90dvh;overflow:auto;width:500px;max-width:calc(100vw - 32px);box-shadow:0 30px 100px #07170e40;color:#344336}.modal::backdrop{background:#0d191b70;backdrop-filter:blur(7px)}.modal .close{position:absolute;right:18px;top:18px}.modal .eyebrow{margin-top:6px}.search-box{display:flex;gap:10px;align-items:center;border:1px solid #bfdbc6;background:#f6faf6;padding:12px 14px;border-radius:9px;color:#83a98d}.search-box input{border:0;background:none;min-width:0;width:100%;font-size:14px;color:#34563c;padding:3px}.search-box input:focus-visible{outline:none}.airport-results{max-height:360px;min-height:140px;overflow:auto;margin-top:16px}.airport-result{display:flex;width:100%;gap:15px;justify-content:flex-start;text-align:left;padding:14px 8px;border-bottom:1px solid #eef2ec;border-radius:5px}.airport-result:hover{background:#f2f8f2}.airport-result>b{font-size:18px;width:47px;font-weight:550;flex-shrink:0;color:#50795a}.airport-result>span{min-width:0;flex:1}.airport-result strong{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.airport-result small{display:block;font-size:11px;color:#98a192;margin-top:5px}.airport-result em{font-size:10px;font-style:normal;color:#9dada0}.empty-result{font-size:13px;padding:25px 0;color:#8b9a8b;text-align:center}.export-modal{width:540px}.export-preview{display:flex;align-items:center;gap:16px;background:#f4f7f2;border:1px solid #e9eee5;border-radius:10px;padding:10px;margin-bottom:24px}.export-preview img{width:106px;height:66px;object-fit:cover;border-radius:6px;background:#0c1a24}.export-preview b{font-size:13px;letter-spacing:1px;font-weight:500}.export-preview small{display:block;font-size:11px;color:#8f9e8b;margin-top:8px}.ratio-choices{display:flex;gap:8px;margin-bottom:19px}.ratio-choice{flex:1;border:1px solid #dfe7dc;border-radius:7px;font-size:11px;padding:11px 4px;flex-direction:column;gap:8px}.ratio-shape{width:23px;height:15px;border:1px solid currentColor;border-radius:2px}.ratio-shape.vertical{width:12px;height:20px}.ratio-shape.square{width:18px;height:18px}.ratio-shape.portrait{width:15px;height:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 13px;margin-bottom:16px}.form-grid label{font-size:12px;display:flex;flex-direction:column;gap:8px}.form-grid input,.form-grid select{height:40px}.export-hint{font-size:11px;line-height:1.8;color:#9ca895;margin-top:4px}.export-footer{margin-top:26px;padding-top:20px;border-top:1px solid #e7ece2;display:flex;justify-content:space-between;gap:10px}.export-footer .primary{font-size:13px}.progress-header{display:flex;justify-content:space-between;font-size:13px;margin-top:18px}.progress-header b{font-weight:500;color:#68936e}progress{width:100%;height:7px;border:none;appearance:none;border-radius:6px;overflow:hidden;margin-top:18px}progress::-webkit-progress-bar{background:#e9efe4}progress::-webkit-progress-value{background:#85bc90}#exportProgress p{font-size:12px;color:#99a58f;margin:13px 0}.danger-button{border:1px solid #e4cece;color:#a56767;padding:10px 14px;border-radius:7px;font-size:12px}.download-again{display:block;font-size:12px;text-align:center;margin-top:20px;color:#4a9161}.faq-modal{width:580px}.faq-modal details{border-bottom:1px solid #e9eee5;padding:16px 0}.faq-modal summary{font-size:14px;cursor:pointer;font-weight:500}.faq-modal details p{font-size:13px;line-height:1.9;color:#819079;padding:14px 0 0}.faq-modal details a{color:#4d8c62}.keyboard-note{font-size:11px;color:#9caa93;margin-top:24px}.small-modal{width:400px}.project-action{width:100%;padding:19px 6px;justify-content:flex-start;border-bottom:1px solid #e9eee5;gap:16px;text-align:left;font-size:14px}.project-action small{display:block;color:#9aa691;font-size:11px;margin-top:8px}.tooltip{position:fixed;background:#253a2d;color:#ebf8ed;padding:11px 13px;border-radius:8px;font-size:12px;line-height:1.7;max-width:240px;z-index:100;box-shadow:0 4px 20px #0002;pointer-events:none}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#284734;color:#eaf7ec;padding:13px 22px;border-radius:10px;font-size:13px;z-index:10000;box-shadow:0 10px 30px #0002}.stage:fullscreen{width:100%;height:100%;border-radius:0;aspect-ratio:auto}.stage:fullscreen canvas{width:100%;height:100%;object-fit:contain}.stage:fullscreen .stage-caption{display:none}
@media(min-width:1600px){.sidebar{width:350px}.panel{padding:28px}.style-card canvas{height:78px}.editor{padding:0 38px}.stage-area{padding-bottom:35px}.stage-caption{bottom:8px}.transport{margin-top:18px;margin-bottom:18px;padding:23px 27px 15px}}
@media(max-height:850px) and (min-width:901px){.topbar{height:66px}.workspace{height:calc(100dvh - 66px);min-height:570px}.tabbar{height:65px}.panel{padding-top:20px}.section-head{margin-bottom:17px}.style-card canvas{height:58px}.style-grid{gap:9px}.control-section{margin-top:18px;padding-top:18px}.editor-toolbar{height:54px}.transport{padding-top:12px;margin-top:8px;margin-bottom:10px}.editor-bottom{padding-bottom:12px}}
@media(max-width:1100px){.topbar{padding:0 20px;gap:22px}.project-name{gap:12px}.saved{display:none}.sidebar{width:290px}.panel{padding-left:19px;padding-right:19px}.editor{padding:0 18px}.editor-bottom>span:nth-child(2){display:none}.header-actions{gap:10px}.timeline-route{letter-spacing:.7px;gap:7px}}
@media(max-width:800px){.topbar{height:64px;padding:0 15px;gap:10px}.brand{font-size:24px}.brand-icon{width:29px;height:29px}.project-name{display:none}.header-actions{gap:5px}.header-actions .text-button span:last-child{display:none}.primary{padding:11px 13px;font-size:12px}.workspace{height:auto;min-height:calc(100dvh - 64px);flex-direction:column}.editor{order:0;padding:0 14px;flex:none}.sidebar{order:1;width:100%;border-right:0;border-top:1px solid var(--border)}.tabbar{height:63px;position:sticky;top:0;background:white;z-index:3}.editor-toolbar{height:48px}.stage-area{height:50vw;min-height:220px;padding-bottom:0}.stage{max-height:100%;border-radius:10px}.stage-caption{display:none}.transport{margin-top:12px;padding:10px 12px 8px}.transport-top{gap:8px}.play-controls{gap:8px}.timeline-route{font-size:9px;gap:6px}.editor-bottom{padding-bottom:12px;font-size:9px}.panel-scroll{overflow:visible}.panel{max-width:600px;margin:auto;padding:22px;width:100%}.style-grid{grid-template-columns:repeat(4,1fr)}.style-card canvas{height:60px}.style-card .style-name{font-size:10px;padding:7px 5px}.style-check{width:14px;height:14px}.sidebar-footer{justify-content:center}.curve-graph{height:70px}.modal{padding:26px}.modal h2{font-size:21px}.export-modal{padding:28px 23px}.eyebrow{font-size:9px}.header-actions .icon-button{width:28px}.timecode{font-size:10px}.timeline-ticks{font-size:8px}}
/* Detailed map and shared-journey controls */
.extra-control{margin-top:20px}.field-label{display:block;font-size:13px;margin-bottom:10px}.custom-text,.person-fields input:not([type=color]){width:100%;border:1px solid #dce6de;border-radius:7px;padding:10px 11px;font-size:13px;color:#385343;background:white}.custom-text{margin-top:9px}.view-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.view-shortcuts>button{background:#edf5ef;border:1px solid #d9e7dd;border-radius:7px;padding:9px 12px;font-size:12px}.view-shortcuts label{display:flex;align-items:center;gap:7px;color:#839489;font-size:12px}.view-shortcuts input{width:70px;padding:7px}.upload-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}.file-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #dbe6dc;border-radius:7px;padding:9px 11px;font-size:12px;color:#5b7c64}.people-editor{padding:16px;border-radius:11px;background:#f3f7f3;border:1px solid #e2ebe3;margin-bottom:21px}.people-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:13px}.person-tab{border:1px solid #dde7de;border-radius:18px;padding:6px 10px;font-size:12px;background:#fff;gap:5px}.person-tab.active{box-shadow:inset 0 -2px var(--person-color);border-color:#71ac88;color:#215b37}.person-tab>span{font-size:17px}.person-fields{display:grid;grid-template-columns:1fr 53px 28px;gap:7px;align-items:center}.person-fields input:not([type=color]){min-width:0;padding:8px;font-size:12px}.person-fields select{font-size:17px;padding:4px 20px 4px 6px;height:35px;background-position:right 3px center}.person-fields input[type=color]{width:28px;height:28px}.person-actions{display:flex;gap:8px;margin-top:12px}.person-actions button{font-size:11px;padding:7px 8px;background:#e5eee6;border-radius:6px}.person-actions #removePerson{margin-left:auto;font-size:17px;width:24px;padding:1px}.avatar-upload{display:flex;gap:12px;align-items:center;margin-top:10px}.avatar-upload .file-button{border:0;padding:2px 0;font-size:10px}.avatar-upload button{font-size:10px}.arrival-field{position:absolute;bottom:9px;left:49px;display:flex;align-items:center;gap:7px;font-size:10px;color:#8da08f}.arrival-field input{width:57px;padding:3px 5px;font-size:11px;border-radius:4px}.airport-item{padding-bottom:37px}.airport-item .stop-actions{align-self:flex-start}.meeting-fields{display:flex;flex-direction:column;gap:17px}.meeting-fields>label{display:flex;flex-direction:column;gap:9px;font-size:13px}.meeting-time{background:#eaf5ed;color:#4d7d5c;border-radius:8px;padding:14px;font-size:13px}.wide-button{width:100%;margin-top:23px}.style-card canvas{image-rendering:auto}.style-card .style-name{font-size:13px}.label-row,.toggle-row{font-size:14px}.tabbar button{font-size:14px}
@media(max-width:800px){.stage-area.portrait{height:70dvh;min-height:400px;max-height:760px}.people-editor{padding:16px}.person-fields{grid-template-columns:1fr 65px 35px}.person-actions button{font-size:13px}.person-tab{font-size:13px}.style-card .style-name{font-size:11px}}
.toggle-row{position:relative}.toggle-row input{left:0;top:0}
@media(min-width:801px){html,body{height:100%;overflow:hidden}.workspace{min-height:0}.editor,.sidebar{overflow:hidden}}

.tabbar{grid-template-columns:repeat(5,minmax(0,1fr));padding:0 7px}
.studio-group{border:1px solid #dfe7e1;border-radius:10px;margin:9px 0;background:#fff;overflow:clip}
.studio-group>summary,.custom-place>summary{padding:13px 14px;cursor:pointer;font-size:14px;font-weight:600;list-style:none;display:flex;align-items:center;justify-content:space-between}
.studio-group>summary::after,.custom-place>summary::after{content:'⌄';color:#53866c}
.studio-group[open]>summary::after,.custom-place[open]>summary::after{transform:rotate(180deg)}
.studio-group[open]>summary{background:#f4f8f5}
.group-content{padding:12px}.group-content>.control-section:first-child{border:0;padding-top:0;margin-top:0}
.group-content .control-section{margin-top:14px;padding-top:13px}
.studio-fields,.studio-fields label:not(.label-row label){display:grid;gap:6px}
.studio-fields{gap:11px}.studio-fields label{font-size:13px;font-weight:550}
.studio-fields input:not([type=range]),.place-item input,.studio-fields select{width:100%;min-width:0;border:1px solid #d8e1da;border-radius:6px;padding:8px 10px;background:#fff;color:#223b2a}
.studio-fields input[type=range]{margin:6px 0 12px}
.studio-fields .label-row{margin-bottom:0}.studio-fields .form-grid{margin:0;align-items:end}
#deskFields,#cutDesk{display:grid;gap:10px}
.studio-actions,.cut-strip{display:flex;gap:6px;flex-wrap:wrap}
.studio-actions button,.cut-strip button,.story-preset{font-size:13px;background:#f0f5f1;border:1px solid #d9e4dc;border-radius:7px;padding:8px 11px}
.cut-strip{padding:15px 0 10px}.cut-strip button{display:grid;min-width:51px;gap:2px}.cut-strip span,.story-preset small,.place-item small{font-size:11px;color:#52715d}
.cut-strip button[aria-pressed=true],#stageMove[aria-pressed=true]{background:#d5f2e1;color:#1a6841;border-color:#70b992}
.story-preset{width:100%;display:grid;text-align:left;justify-content:start;margin:12px 0 0;padding:12px 15px;gap:3px}
.cut-fields{margin-top:16px;border-top:1px solid #dfe7e1;padding-top:15px}
.timeline-wrap{position:relative}#cutMarkers{position:relative;margin:0 5px}
#cutMarkers button{position:absolute;display:grid;place-items:center;width:20px;height:20px;top:-13px;transform:translateX(-50%);padding:0;border:0;background:none;z-index:2}
#cutMarkers button::before{content:'';box-sizing:border-box;width:12px;height:12px;transform:rotate(45deg);background:#729f81;border:2px solid white;border-radius:2px}
#cutMarkers button[aria-pressed=true]{z-index:3}
#cutMarkers button[aria-pressed=true]::before{background:#337958}
#cutMarkers button[data-cut-movable]{cursor:grab;touch-action:none;user-select:none}
#cutMarkers button.retiming{cursor:grabbing;z-index:4}
#placeResults{max-height:160px;overflow:auto}#placeResults button{display:flex;text-align:left;justify-content:space-between;width:100%;border-bottom:1px solid #e6ede8;padding:7px 0;font-size:13px}#placeResults small{color:#6a7d6e}
.place-item{display:flex;gap:5px;margin:5px 0}.place-item input{font-size:13px}.place-item button{font-size:20px}
.custom-place>summary{padding:6px 0}.custom-place .form-grid,.custom-place .studio-actions{margin-top:9px}.style-grid .style-name{font-size:12px}
.line-sample.ribbon{border-top:4px double #438d6b}.line-sample.stitch{border-top:3px dashed #a97e52}.line-sample.rail{height:7px;border-block:1px solid #57635d;background:repeating-linear-gradient(90deg,transparent 0 4px,#57635d 4px 5px)}
@media(max-width:600px){.tabbar button{font-size:12px}.preview-tools{gap:3px}.editor-toolbar{padding-inline:9px}#stageMove{font-size:12px;padding-inline:5px}}
#peopleTabs{display:grid;gap:.35rem}.traveler-row{display:flex;align-items:center;border:1px solid var(--line,#526267);border-radius:.6rem;padding:2px 8px 2px 2px}.traveler-row:has([aria-pressed=true]){border-color:#609c80;background:#a4d7b51c}.traveler-row button{display:flex;align-items:center;gap:9px;flex:1;text-align:left;color:inherit;background:transparent;border:0;padding:6px;min-width:0}.traveler-row b,.traveler-row small{display:block}.traveler-row small{font-size:12px;overflow-wrap:anywhere}.avatar-tile{padding:4px;border-left:3px solid var(--person-color)}.traveler-row input,.name-choice input{accent-color:#448963;width:16px;height:16px}.active-route-heading{display:flex;align-items:baseline;justify-content:space-between;margin:14px 0 8px}.shared-stops{font-size:13px;line-height:1.5;margin:6px 0}.person-details summary{cursor:pointer;padding:8px 0}.export-preview b{white-space:pre-line}

.region-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.region-overlay polygon{fill:#a4f4ce38;stroke:#b6ffd8;stroke-width:2;stroke-dasharray:5 4}
.name-layers{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.name-layers label,#namedPlaces label{display:flex;align-items:center;gap:.45rem;min-height:2rem}
#namedPlaces{max-height:12rem;overflow:auto;margin-top:.5rem}
.place-item input[type=checkbox],.name-layers input,#namedPlaces input{width:1rem;min-width:1rem;accent-color:#8ce4b9}
.place-item{display:flex}.place-item input[data-place-name]{flex:1;min-width:0}

.stop-letter{min-width:28px;width:auto;white-space:nowrap;font-size:.7rem}
.arrival-field{font-size:.76rem}.arrival-field input{font-size:.8rem}

.frame-ratios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:1.25rem 0}
.frame-ratios button{display:grid;gap:.3rem;text-align:left;background:#f4f7f5;color:#22352b;border:1px solid #d1ded6;border-radius:.6rem;padding:.7rem}
.frame-ratios button[aria-pressed=true]{border-color:#337353;box-shadow:inset 0 0 0 1px #337353;background:#e9f5ed}
.frame-ratios button span,.traveler-row label span{font-size:.79rem}.traveler-tools{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;gap:.5rem}
.traveler-tools select{width:auto;max-width:72%}.traveler-row em{font-size:.7rem;font-style:normal;font-weight:600;margin-left:.4rem;color:#27774d}
.traveler-row button[aria-pressed=true]{box-shadow:inset 3px 0 0 var(--person-color)}
.traveler-row>label{display:grid;justify-items:center;min-width:2.65rem}.airport-edit b small{font-size:.74rem;color:#5c7167}
#captionTitle{width:100%}.wide-button{width:100%}

.curve-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:.55rem 0}
.curve-presets button{padding:.47rem .2rem;border:1px solid #cbdad1;border-radius:.35rem;background:#f5f8f5;color:#294434;font-weight:600}
.curve-presets button[aria-pressed=true]{background:#254837;color:#f5fff7;border-color:#254837}
.curve-presets[hidden]{display:none}

.city-option{display:flex;align-items:center;gap:.65rem;padding:.56rem .3rem;border-bottom:1px solid #d8e2dc;cursor:pointer}
.city-option input{accent-color:#317252}.city-option span{display:grid;gap:.16rem}.city-option small{font-size:.78rem;color:#5c6d64}

.bend-field{margin:.6rem 0 1rem;padding:0;border:0;min-width:0}
.bend-field legend{font-size:.9rem;font-weight:700;margin-bottom:.15rem}
.bend-field .curve-presets button{min-height:40px;font-variant-numeric:tabular-nums}
.brand .release-number{margin-left:.3rem;padding-left:.4rem;border-left:1px solid currentColor;font:600 .67rem/1.25 system-ui;letter-spacing:0;opacity:.72}

.bend-field{position:relative}
#bendValue{display:block;text-align:right;color:#32664c;font-size:12px;font-weight:650;margin-top:-1.35rem;pointer-events:none}
.bend-scale{margin:.85rem 0 .15rem}
.bend-scale input{display:block;width:calc(100% - 32px);margin:0 16px}
.bend-ticks{display:flex;justify-content:space-between;margin-top:5px}
.bend-ticks button{min-width:32px;padding:4px 2px;border:0;background:transparent;color:#697770;font:600 12px/1.2 inherit;font-variant-numeric:tabular-nums}
.bend-ticks button[aria-pressed=true]{color:#165e3d;background:#e0f2e6;border-radius:5px}
#cutPresets{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0}
#cutPresets button{padding:9px 6px;min-height:40px;border:1px solid #d8e2db;border-radius:7px;background:#f8faf8;font-size:12px;color:#34483d}
#cutPresets button[aria-pressed=true]{background:#244735;color:#fff;border-color:#244735}
.orbit-tools{position:absolute;z-index:3;right:9px;top:9px;display:flex;flex-direction:column;align-items:center;gap:5px;user-select:none}
.orbit-pad,.orbit-zoom{background:rgba(248,251,248,.95);border:1px solid #c8d4cb;box-shadow:0 2px 8px #12261d19}
.orbit-pad{display:grid;grid-template:18px 25px 18px / 18px 25px 18px;place-items:center;border-radius:50%;padding:3px}
.orbit-tools button{display:grid;place-items:center;color:#345340;border:0;background:none;padding:0;font-size:16px;line-height:1;min-width:18px;height:20px;border-radius:5px}
.orbit-tools button:hover,.orbit-tools button:focus-visible{background:#d9ecdf}
.orb-n{grid-area:1/2}.orb-w{grid-area:2/1}.orb-e{grid-area:2/3}.orb-s{grid-area:3/2}
.orbit-tools .orbit-ball{grid-area:2/2;position:relative;width:25px;height:25px;border-radius:50%;border:1px solid #52775f;background:radial-gradient(circle at 32% 28%,#d2eedc,#90b89c 65%,#63846b);cursor:grab;overflow:hidden;touch-action:none}
.orbit-ball:active{cursor:grabbing}.orbit-ball i{inset:0 5px;border-left:1px solid #648a75;border-right:1px solid #648a75;border-radius:50%;position:absolute;transform:rotate(-18deg);pointer-events:none}
.orbit-ball:after{content:"";position:absolute;inset:6px -3px;border-bottom:1px solid #688774;border-radius:50%;transform:rotate(-15deg)}
.orbit-zoom{border-radius:10px;padding:2px;display:flex}.orbit-zoom button{width:21px;height:21px}
@media(max-width:700px){.orbit-tools{right:5px;top:4px;transform:scale(.85);transform-origin:100% 0}}

.paint-panel{display:grid;gap:9px}
.paint-panel[hidden],#cardRadiusRow[hidden]{display:none}
.paint-swatches{display:flex;gap:7px;flex-wrap:wrap}
.paint-swatches button{display:grid;place-items:center;padding:3px;border:1px solid #c6cdc5;border-radius:50%;background:transparent;min-width:27px;min-height:27px;cursor:pointer}
.paint-swatches button[aria-pressed=true]{outline:2px solid #356b57;outline-offset:1px}
.paint-swatches i{width:18px;height:18px;display:block;border-radius:50%}
.paint-fields,.effect-picker{display:flex;gap:7px;flex-wrap:wrap}
.paint-fields label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#43534a}
.paint-fields input[type=color]{width:30px;height:23px}
.effect-picker label{display:inline-flex;align-items:center;gap:4px;border:1px solid #cbd3ca;border-radius:6px;padding:5px 7px;font-size:12px;cursor:pointer}
.effect-picker input{accent-color:#39745b}
.effect-picker label:has(:checked){background:#e2f0e6;border-color:#65927a}
#labelPreview{display:block;width:100%;height:auto;border-radius:8px;border:1px solid #cbd3ca;margin-bottom:12px}

.preview-frame {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.map-type-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  flex: none;
  padding: 2px 12px;
  margin: 0 0 6px;
  border: 1px solid #d4ddd6;
  border-radius: 9px;
  background: #fff;
  color: #34483c;
  font-size: 14px;
}
.map-type-controls label { font-weight: 600; white-space: nowrap; }
.map-type-controls button { width: 30px; height: 32px; flex: none; padding: 0; border-radius: 5px; font-size: 20px; }
.map-type-controls button:hover { background: #e1efe6; }
.map-type-controls button:disabled { opacity: .35; }
.map-type-controls output { min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.map-type-controls input[type=range] {
  width: clamp(65px, 17vw, 190px);
  min-width: 0;
  height: 30px;
  margin: 0;
  background-size: 100% 4px;
  background-position: center;
  background-repeat: no-repeat;
}
.map-type-controls input:focus-visible { outline: 2px solid #438760; outline-offset: 2px; }
.preview-frame:fullscreen { width: 100%; height: 100%; background: #111719; }
.preview-frame:fullscreen .map-type-controls { margin: 6px auto; }
.preview-frame:fullscreen .stage-area { flex: 1; min-height: 0; height: auto; max-height: none; padding: 0; }
.preview-frame:fullscreen .stage-caption { display: none; }
@media(max-width:800px) {
  .preview-frame, .preview-frame .stage-area { flex: none; }
  .map-type-controls { gap: 3px; padding-inline: 8px; }
  .map-type-controls input[type=range] { width: clamp(64px, 25vw, 160px); }
}

/* Shared inspector controls */
:root {
  --control-ink:#233e34;
  --control-line:#cedbd3;
  --control-fill:#f5f8f5;
  --control-active:#265440;
  --control-radius:8px;
}
.panel .section-head { margin:0 0 18px; align-items:center; }
.panel .section-head h1 { margin:0; font-size:22px; line-height:1.25; }
.panel .studio-group { margin:10px 0; border-radius:10px; border-color:var(--control-line); }
.panel .studio-group > summary { min-height:44px; padding:11px 13px; color:var(--control-ink); }
.panel .group-content { padding:13px; }
.panel .control-section { margin-block:16px; padding-top:14px; }
.panel .label-row { gap:8px; }
.panel select,.panel input:is([type=text],[type=search],[type=number]),.panel .custom-text {
  min-height:38px; border:1px solid var(--control-line); border-radius:var(--control-radius);
  color:var(--control-ink); background-color:white;
}
.panel button:focus-visible,.panel input:focus-visible,.panel select:focus-visible,.panel summary:focus-visible {
  outline:2px solid #478767; outline-offset:2px;
}
#cutPresets,.layout-presets,.anchor-grid,.flight-compass { display:grid; gap:6px; }
#cutPresets { grid-template-columns:repeat(2,minmax(0,1fr)); margin:8px 0 14px; }
.layout-presets,.anchor-grid,.flight-compass { grid-template-columns:repeat(3,minmax(0,1fr)); }
#cutPresets button,.layout-presets button,.anchor-grid button,.flight-compass button,.layer-list button {
  min-height:38px; border:1px solid var(--control-line); border-radius:var(--control-radius);
  background:var(--control-fill); color:var(--control-ink); padding:6px; font-size:13px; line-height:1.25;
}
#cutPresets button[aria-pressed=true],.layout-presets button[aria-pressed=true],
.anchor-grid button[aria-pressed=true],.flight-compass button[aria-pressed=true],.layer-list button[aria-pressed=true],
.panel :is(.choice-button,.line-choice).active,.cut-strip button[aria-pressed=true] {
  background:var(--control-active); color:white; border-color:var(--control-active);
}
.flight-compass { max-width:212px; margin:auto; }
.flight-compass button { font-size:20px; height:40px; }
.flight-compass [data-heading=default] { font-size:13px; }
.airline-field { display:grid; gap:6px; margin:4px 0 12px; font-weight:600; font-size:14px; }
.airline-field select { width:100%; }
.layout-presets button { display:flex; flex-direction:column; gap:6px; padding:9px 4px; }
.layer-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.layer-list>div { display:flex; flex-wrap:wrap; align-items:center; padding:4px; gap:3px; border:1px solid var(--control-line); border-radius:9px; }
.layer-list button { flex:1; min-height:32px; white-space:nowrap; }
.layer-list label { display:inline-flex; align-items:center; gap:2px; font-size:12px; cursor:pointer; }
.layer-list input { accent-color:var(--control-active); }
.layer-detail { margin:12px 0 0; padding:12px; background:#f4f7f3; border-radius:9px; }
.anchor-grid { width:min(100%,160px); }
.anchor-grid button { min-height:27px; }
.anchor-grid i { width:5px; height:5px; background:currentColor; border-radius:50%; }
.studio-fields .toggle-row { display:flex!important; }
.safe-overlay { position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
.safe-overlay i { position:absolute; border:1px dashed #e6ffee; box-shadow:0 0 0 220vmax #12271b46,inset 0 0 0 1px #214d3755; }
.orbit-pad { position:relative; isolation:isolate; padding:12px; }
.orbit-pad #orbitRing {
  position:absolute; inset:0; z-index:-1; width:100%;height:100%; border-radius:50%;
  border:7px solid #f6faf6; background:transparent; box-shadow:inset 0 0 0 1px #becec3;
  touch-action:none; cursor:grab;
}
.orbit-pad #orbitRing:hover { border-color:#d7ecdf; }
.orbit-pad #orbitRing:active { cursor:grabbing; }
.orbit-pad #orbitRing:focus-visible { outline:2px solid #548e6b; }
.preview-handle, #mobileMapScale, #mobileHelp, #cutPresets #mobileShotOptions, .preview-gesture-status, .mobile-gesture-help { display:none; }
[hidden] { display:none!important; }

@media(max-width:800px){
  html,body { height:100%; overflow:hidden; }
  body { display:flex;flex-direction:column;height:100dvh; }
  .topbar { flex:0 0 49px; min-height:0;height:49px; }
  .workspace { flex:1; height:auto; min-height:0; overflow:hidden; }
  .editor { order:0; flex:0 0 auto; padding:0 10px; min-height:0; }
  .editor-toolbar { height:31px; padding:0; }
  .editor .map-type-controls { margin-bottom:3px; padding:0 6px; font-size:12px; }
  .editor .map-type-controls button { height:26px; }
  .editor .map-type-controls input[type=range] { height:24px; }
  .editor .stage-area,.editor .stage-area.portrait {
    height:clamp(96px,27dvh,265px); min-height:0; max-height:none; padding:0;
  }
  .editor .transport { margin:4px 0; padding:4px 8px; }
  .editor .transport-top { min-height:0; }
  .editor .transport .play-button { width:30px; height:30px; }
  .editor .transport .timeline-wrap { margin-top:0; }
  .editor .timeline-ticks,.editor-bottom { display:none; }
  .sidebar { order:1; display:flex; flex:1 1 0; min-height:0; overflow:hidden; width:100%; }
  .tabbar { position:static;flex:none; height:48px; padding:0 4px; }
  .tabbar button { gap:2px;padding:3px 1px;font-size:12px; }
  .tabbar svg { width:16px;height:16px; }
  .panel-scroll { flex:1 1 0; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:env(safe-area-inset-bottom); }
  .panel { padding:16px 14px 28px; }
  .orbit-tools { transform:scale(.83); transform-origin:top right; }
  .editor .preview-frame:fullscreen .stage-area { flex:1; height:auto; }
}
@media(max-width:800px) and (max-height:540px){
  .editor-toolbar,.editor .map-type-controls,.editor .transport .timeline-wrap { display:none; }
  .editor .stage-area,.editor .stage-area.portrait { height:24dvh; }
  .editor .preview-frame:fullscreen .stage-area { height:auto; }
}

/* Each type specimen previews the hierarchy used by the video renderer. */
.layout-label{font-size:14px;line-height:1.4;margin:0 0 10px;color:var(--control-ink)}
.layout-presets{gap:7px}
.layout-presets button{min-width:0;display:flex;align-items:stretch;gap:0;padding:0;overflow:hidden;background:#fff;text-align:left}
.layout-presets button strong{display:block;text-align:left;font-size:13px;font-weight:650;line-height:1.25;padding:8px 5px;word-break:keep-all}
.layout-presets canvas{display:block;width:100%;height:auto;aspect-ratio:20/11}
.layout-presets .sample-face{display:block;text-align:left;padding:0 5px 7px;margin-top:-4px;font-size:11px;line-height:1.4;opacity:.83;word-break:keep-all}
.layout-presets button[aria-pressed=true]{background:#254838;border-color:#254838;color:white}
.layout-presets button:hover{border-color:#658977}
#passSettings{margin-top:14px}
.pass-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pass-inputs label,#passSettings>label{display:grid;gap:5px;font-size:12px;color:var(--control-ink)}
.pass-inputs input,#passTitle{padding:7px 8px;width:100%;min-width:0}
.pass-inputs input:is([type=date],[type=time]){min-height:38px;border:1px solid var(--control-line);border-radius:var(--control-radius);background:#fff;color:inherit;font:inherit}
.pass-accent{display:flex;align-items:center;gap:8px;font-size:13px}
#passSettings .pass-accent input{margin-left:auto;width:39px;height:30px;cursor:pointer}
.pass-accent button{padding:4px 6px;color:var(--control-active);font-size:12px}
.pass-accent button:disabled{opacity:.45}
#groupSettings{margin-top:13px}
.copy-fields{display:grid;gap:0}
.copy-field{display:grid;gap:6px;padding:9px 0;border-bottom:1px solid var(--control-line)}
.copy-field:last-child{border-bottom:0}
.copy-toggle{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:550;cursor:pointer}
.copy-toggle input{width:16px;height:16px;margin:0;accent-color:var(--control-active)}
.copy-field input[type=text]{width:100%;min-width:0}
.layout-extra>summary{cursor:pointer;font-weight:600;font-size:14px;padding:3px 0}
.layout-extra[open]>summary{margin-bottom:12px}
#panel-layout [hidden]{display:none!important}

#projectDialog [hidden],#offlineStatus:empty{display:none!important}
#offlineFile{color:var(--control-active);text-decoration:underline;text-underline-offset:3px}

.copy-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
#resetCopy{min-height:28px;padding:0 3px;font-size:12px;color:var(--control-active);text-decoration:underline;text-underline-offset:3px}

.layout-presets .empty-sample{display:grid;place-items:center;aspect-ratio:20/11;background:#edf0eb;color:#839088;font-size:22px}
.jeju-font{margin-top:10px;font-size:13px;line-height:1.5;color:var(--control-ink)}
.jeju-font p{margin:0 0 6px}
#jejuActions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#jejuActions label{position:relative;background:var(--control-fill);padding:5px 8px;border:1px solid var(--control-line);border-radius:6px;cursor:pointer}
#jejuActions:focus-within label{outline:2px solid var(--control-active)}
#jejuActions input{width:1px;height:1px;clip-path:inset(50%);overflow:hidden;position:absolute}
#jejuActions a{color:var(--control-active);text-underline-offset:3px}
.pass-resize{padding:10px 12px;background:var(--control-fill);border:1px solid var(--control-line);border-radius:var(--control-radius)}
.pass-resize input,#captionSizeSettings input{width:100%}
.pass-resize small{display:block;font-size:12px;color:#58675d}

.framing-row{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center}
.framing-row>span{display:flex;align-items:center;gap:5px;font-size:13px}
.framing-row>span>span{width:1em}
.studio-fields .framing-row input[type=number]{width:5.2rem;padding:4px 6px;text-align:right;font-variant-numeric:tabular-nums}
.studio-fields .framing-row input[type=range]{grid-column:1/-1;margin:3px 0 5px}
.framing-row:has(input:disabled){opacity:.55}

@media (max-width:800px) and (orientation:portrait) {
  .topbar { gap:5px; padding-inline:10px; }
  .header-actions #faqBtn { display:none; }
  .header-actions :is(#projectBtn,#localeButton) { width:36px; height:44px; }
  .header-actions #exportBtn { padding-inline:9px; }
  #mobileHelp { display:flex; }

  .editor { padding:0; }
  .mobile-edit-only .editor { display:none; }
  .preview-handle {
    display:grid; position:relative; place-items:center; width:100%; padding:0;
    flex:none; touch-action:none; user-select:none; cursor:ns-resize;
    color:#436858; background:#f7faf8;
  }
  .preview-handle::before, .preview-handle::after { content:''; position:absolute; }
  .preview-handle:focus-visible { outline:2px solid #438760; outline-offset:-3px; z-index:1; }
  #mobileToolsHandle { order:0; height:21px; }
  #mobileToolsHandle::before, .mobile-edit-only #mobilePreviewResize::before {
    top:0; width:55px; height:15px; border-radius:0 0 9px 9px; background:#d5e3da;
  }
  #mobileToolsHandle::after, .mobile-edit-only #mobilePreviewResize::after {
    top:3px; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0;
    transform:rotate(45deg);
  }
  .mobile-tools-open #mobileToolsHandle { order:1; }
  .mobile-tools-open #mobileToolsHandle::before { top:auto; bottom:0; border-radius:9px 9px 0 0; }
  .mobile-tools-open #mobileToolsHandle::after { top:auto; bottom:3px; transform:rotate(225deg); }
  #mobilePreviewResize { order:1; height:24px; border-block:1px solid #d9e4dc; }
  #mobilePreviewResize::before { width:36px; height:4px; border-radius:4px; background:#a1b4a8; }
  #mobilePreviewResize:active::before, #mobileToolsHandle:active::before { background:#b7ccbf; }

  .editor:not(.mobile-tools-open) :is(.editor-toolbar,.map-type-controls,.orbit-tools) { display:none; }
  .editor.mobile-tools-open .editor-toolbar { display:flex; }
  .editor .editor-toolbar { order:0; min-height:40px; height:auto; }
  .editor .editor-toolbar > div:first-child { display:none; }
  .editor .preview-tools { width:100%; justify-content:flex-end; flex-wrap:wrap; }
  .editor .preview-tools button { min-height:40px; }
  .editor .preview-frame { order:2; }
  .editor .stage-area {
    width:100%; height:var(--mobile-preview-height,clamp(105px,24dvh,242px)); padding:6px 10px;
    touch-action:none; -webkit-touch-callout:none; user-select:none; background:#edf2ef;
  }
  .editor .stage-area.portrait { height:var(--mobile-preview-height,clamp(116px,29dvh,280px)); }
  .editor .preview-frame:fullscreen .stage-area { padding:10px; background:inherit; }
  .editor .orbit-tools { right:12px; top:8px; }
  #mobileMapScale:not(:empty) { display:block; margin:0 0 12px; }
  #mobileMapScale .map-type-controls {
    width:100%; margin:0; padding:3px 7px; font-size:12px; gap:4px;
  }
  #mobileMapScale .map-type-controls button { width:24px; height:30px; font-size:17px; }
  #mobileMapScale .map-type-controls input[type=range] { flex:1 1 58px; width:auto; min-width:42px; }
  #mobileMapScale .map-type-controls label { max-width:44%; white-space:normal; line-height:1.15; }
  .editor .transport { display:none; }
  #preview:focus-visible { outline:2px solid #94cfac; outline-offset:-3px; }
  .mobile-gesture-help { display:block; }
  .preview-gesture-status {
    position:absolute; z-index:5; bottom:10px; left:50%; transform:translateX(-50%);
    display:block; max-width:calc(100% - 16px); padding:5px 10px; border-radius:7px;
    background:#101d19ed; color:#f2fcf5; font-size:13px; font-weight:600;
    font-variant-numeric:tabular-nums; white-space:nowrap; pointer-events:none;
  }

  .sidebar {
    order:2; display:grid; grid-template-columns:clamp(58px,16vw,73px) minmax(0,1fr);
    grid-template-rows:minmax(0,1fr); border-top:0;
  }
  .sidebar .tabbar {
    grid-area:1 / 1; display:flex; flex-direction:column; gap:2px;
    height:100%; min-height:0; padding:4px 4px max(4px,env(safe-area-inset-bottom));
    overflow-y:auto; overscroll-behavior:contain; border:0; border-right:1px solid var(--control-line);
    background:#f7faf8;
  }
  .tabbar button { flex:none; width:100%; min-height:50px; border-radius:6px; font-size:11px; line-height:1.2; color:#576b60; }
  .tabbar button.active { background:#e3f1e8; }
  .tabbar button.active:after { inset:9px auto 9px 0; width:3px; height:auto; border-radius:0 4px 4px 0; }
  .sidebar .panel-scroll { grid-area:1 / 2; min-width:0; }
  .panel { padding:12px 12px 24px; font-size:13px; }
  .panel .section-head { margin-bottom:12px; }
  .panel .section-head h1 { font-size:17px; }
  .panel :is(.label-row,.toggle-row,.studio-group > summary) { font-size:13px; }
  .panel .studio-group > summary { padding:9px 10px; }
  .panel .group-content { padding:10px; }
  .panel .studio-fields label { font-size:12px; }
  .panel .bend-field legend { font-size:13px; }
  .bend-ticks { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:2px; }
  .bend-ticks button { min-width:0; min-height:30px; font-size:12px; font-weight:600; line-height:1.2; }
  .panel .studio-group:not([open]) { background:#fcfdfc; }
  #cutPresets #mobileShotOptions {
    display:block; grid-column:1 / -1; order:1; min-height:44px; font-size:13px;
  }
  #cutPresets button[data-shot] { min-height:44px; font-size:13px; }
  #cutPresets:not(.expanded) .extra-shot:not([aria-pressed=true]) { display:none; }
}

@media (max-width:410px) and (orientation:portrait) {
  .topbar .brand { font-size:22px; }
  .topbar .release-number { display:none; }
}

@media (max-width:350px) and (orientation:portrait) {
  .header-actions { gap:4px; }
  .header-actions #exportBtn {
    inline-size:82px; min-inline-size:0; min-height:40px; padding:5px 4px; overflow-wrap:anywhere;
  }
  .header-actions #exportBtn [data-icon] { display:none; }
}


.locale-picker { position:relative; display:flex; }
.locale-menu {
  position:absolute; inset-block-start:calc(100% + 5px); inset-inline-end:0; z-index:30;
  width:214px; max-height:min(426px,calc(100dvh - 62px)); overflow:auto;
  padding:6px; border:1px solid var(--control-line); border-radius:11px; background:white;
  box-shadow:0 8px 24px #263d3229; color:var(--control-ink); font-size:13px;
  overscroll-behavior:contain;
}
.locale-current { display:grid; gap:3px; margin:0 0 5px; padding:7px 9px; border-bottom:1px solid var(--control-line); }
.locale-current span,.locale-choices>span { color:#58675e; font-size:11px; }
.locale-choices { display:grid; gap:2px; }
.locale-choices>span { padding:3px 9px; }
.locale-choices button {
  width:100%; min-height:32px; padding:5px 9px; border-radius:6px; justify-content:space-between;
  font-family:var(--editor-ui-font); text-align:start;
}
.locale-choices button[lang="ko"] { font-family:'FP Pretendard',system-ui,sans-serif; }
.locale-choices button[lang="ja"] { font-family:'Hiragino Sans','Yu Gothic',sans-serif; }
.locale-choices button[lang="zh-CN"] { font-family:'PingFang SC','Microsoft YaHei',sans-serif; }
.locale-choices button[lang="zh-TW"] { font-family:'PingFang TC','Microsoft JhengHei',sans-serif; }
.locale-choices button[aria-pressed=true] { background:#e3f1e8; color:#204d37; font-weight:650; }
.locale-choices button[aria-pressed=true]::after { content:'✓'; }
.locale-choices button:focus-visible { outline-offset:-2px; }
.locale-error { margin:6px 9px; color:#8a2f2f; }
@media (max-width:410px) and (orientation:portrait) {
  .header-actions #exportBtn { max-width:104px; line-height:1.15; text-align:center; }
}
