:root{--ink:#0a0e16;--muted:#665f56;--line:#d8d0c3;--bg:#f2ede3;--paper:#faf7f0;--accent:#a9660a;--soft:#eee7db;--gold:#f5a623;font-family:"맑은 고딕","Malgun Gothic",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:13px;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);padding:9px 13px;font-weight:600;line-height:1.3;transition:background .15s,border-color .15s}button:hover{background:var(--soft);border-color:#b7ac9a}button:disabled{opacity:.42;cursor:default}button:disabled:hover{background:var(--paper);border-color:var(--line)}button.primary{background:var(--gold);color:var(--ink);border-color:var(--gold)}button.primary:hover{background:#eab052}button.primary:disabled{background:#b9ad99}button.quiet{border:0;background:none;padding:2px 0;font-size:11px;color:var(--muted)}button.wide{width:100%}a{color:inherit}h1,h2,p{margin:0}h2{font-size:13px;font-weight:700}button:focus-visible,input:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:3px solid #a9660a;outline-offset:3px}button:disabled{outline:none}[hidden]{display:none!important}
.skiplink{position:fixed;top:-80px;left:16px;background:var(--ink);color:white;padding:10px;z-index:10}.skiplink:focus{top:10px}.appbar{height:72px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;background:var(--paper);border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.brand h1{font-size:23px;letter-spacing:-1px}.brand h1 span{font-size:14px;font-weight:500;letter-spacing:-.3px;margin-left:5px;color:var(--muted)}.appbar-actions{display:flex;gap:8px}.appbar-actions button{font-size:12px}
main{padding:18px 22px 24px;max-width:1800px;margin:auto}.drops{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.source-box{min-width:0}.source-heading{height:28px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.source-heading h2{display:flex;align-items:center;gap:8px}.source-heading h2 span,.source-heading>span{font-size:11px;font-weight:400;color:var(--muted)}.drop{min-height:74px;display:flex;align-items:center;gap:13px;border:1px dashed #c8bfaf;background:var(--paper);border-radius:9px;padding:12px 16px;cursor:pointer;position:relative;overflow:hidden;min-width:0}.drop:hover,.drop.dragover{background:var(--soft);border-color:var(--accent)}.plus{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border-radius:7px;background:#ebe4d7;font-size:24px;font-weight:300;color:var(--accent)}.drop .label{min-width:0}.drop b{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drop small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.drop .thumb{width:56px;height:42px;object-fit:cover;border-radius:5px;flex-shrink:0}.drop.hasimg .plus{display:none}.drop-action{margin-left:auto;flex-shrink:0;color:var(--accent);font-size:11px}.drop:not(.hasimg) .drop-action{display:none}
.workspace{display:grid;grid-template-columns:225px minmax(0,1fr) 305px;align-items:start;gap:16px}.preset-rail,.panel,.viewer{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:10px}.preset-rail,.panel{padding:17px 16px}.preset-rail{max-height:calc(100vh - 236px);overflow-y:auto;scrollbar-width:thin;position:sticky;top:16px}.develop-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.preset-count{color:var(--muted);font-size:10px}.preset-categories{display:flex;flex-wrap:wrap;gap:5px;margin:14px 0}.preset-categories button{padding:5px 7px;font-size:11px;font-weight:500;border-radius:5px}.preset-categories button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 8px}.preset-card{padding:0 0 7px;border:1px solid var(--line);border-radius:6px;overflow:hidden;text-align:left;min-width:0}.preset-card canvas{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;background:#e5ded1}.preset-card span{display:block;font-size:10px;line-height:1.5;padding:6px 6px 0;overflow-wrap:anywhere}.preset-card small{display:block;color:var(--muted);font-weight:400;font-size:9px;padding:2px 6px 0}.preset-card[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.preset-card[aria-pressed=true] span:before{content:'✓ ';color:var(--accent)}.preset-strength{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:11px}.preset-strength>span{width:100%;font-weight:700}.preset-strength input{flex:1;min-width:60px;width:70px}.preset-strength button{font-size:10px;padding:5px 8px}
.viewer{overflow:hidden;position:sticky;top:16px}.develop-toolbar{padding:13px 16px;min-height:59px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.develop-toolbar>div:first-child{display:flex;align-items:center;gap:12px;min-width:0}.eyebrow{font-size:11px;font-weight:700;white-space:nowrap}.develop-toolbar #editStatus{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-actions{display:flex;gap:4px;flex-shrink:0;align-items:center}.history-actions button{padding:6px 8px;font-size:10px}.history-actions #btnUndo,.history-actions #btnRedo{font-size:18px;line-height:18px;width:30px;padding:5px}.empty-viewer{min-height:470px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px 24px;text-align:center;background:#e7e0d5}.empty-icon{font-size:60px;color:#a18b65;font-weight:300;margin-bottom:20px}.empty-viewer h2{font-size:17px;margin-bottom:10px}.empty-viewer p{max-width:270px;color:var(--muted);line-height:1.8;font-size:12px;margin-bottom:22px}.viewer.has-media .empty-viewer{display:none}.compare-wrap{display:none;position:relative;background:#e5ded1;--split:50%;touch-action:pan-y;overflow:hidden;user-select:none}.viewer.has-media .compare-wrap{display:block}.compare-wrap canvas{display:block;width:100%;height:auto}.compare-wrap #canvasBefore{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--split)) 0 0)}.divider{position:absolute;top:0;bottom:0;left:var(--split);width:2px;background:var(--paper);transform:translateX(-50%);cursor:ew-resize;touch-action:none;box-shadow:0 0 4px #0006}.divider:after{content:'‹ ›';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:35px;height:35px;display:flex;align-items:center;justify-content:center;background:var(--paper);color:#0a0e16;border-radius:50%;font-size:17px;box-shadow:0 2px 10px #0003}.compare-labels{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none}.compare-labels span{font-size:10px;color:white;background:#0a0e16d9;padding:4px 8px;border-radius:4px}.viewer-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:11px 14px;gap:7px;font-size:10px;color:var(--muted);line-height:1.5}.transport{display:none;padding:12px 14px;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.transport.active{display:flex}.transport button{padding:6px 9px;font-size:11px}.transport input{flex:1;min-width:30px}.time{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.panel h2{margin-bottom:14px}.reference-control{padding-bottom:15px}.ctrl{margin:14px 0}.ctrl .row{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:7px;font-size:12px}.ctrl output{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.ctrl input[type=number]{width:50px;border:1px solid var(--line);border-radius:5px;padding:4px 3px;font-size:11px;text-align:right;color:var(--ink);background:#f2ede3}.ctrl input[type=range]{width:100%}input[type=range]{height:15px;accent-color:var(--accent);cursor:pointer;margin:0}input[type=range]:disabled{opacity:.4;cursor:default}.develop-note{color:var(--muted);font-size:10px;line-height:1.7}.develop-group{border-top:1px solid var(--line)}.develop-group summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0;cursor:pointer;font-size:13px;font-weight:700}.develop-group summary::-webkit-details-marker{display:none}.develop-group summary small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}.develop-group summary>span:last-child{font-weight:400;color:var(--muted);transition:transform .2s}.develop-group[open] summary>span:last-child{transform:rotate(45deg)}.group-body{padding:0 0 15px}.group-reset{display:block;margin-left:auto;font-size:10px;padding:5px 8px;color:var(--muted);font-weight:400}.hsl-bands{display:flex;gap:6px;margin:3px 0 12px}.hsl-bands button{width:22px;height:22px;min-width:0;padding:0;border-radius:50%;border:2px solid var(--paper);background:var(--band);box-shadow:0 0 0 1px var(--line)}.hsl-bands button[aria-pressed=true]{box-shadow:0 0 0 2px var(--accent);transform:scale(1.08)}#toneCurve{width:100%;height:120px;background:#f2ede3;border:1px solid var(--line);border-radius:5px}.curve-grid{stroke:#d8d0c3;stroke-width:1;fill:none}.curve-baseline{stroke:#b7ac9a;stroke-width:1;stroke-dasharray:4;fill:none}.curve-line{stroke:var(--accent);stroke-width:2;fill:none}.save-preset{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.save-preset label,.exports>label{display:block;font-size:11px;margin-bottom:8px}.save-preset>div{display:flex;gap:6px}.save-preset input,.exports>input{min-width:0;width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:6px;color:var(--ink);font-size:12px;background:#fff}.save-preset button{white-space:nowrap;font-size:11px;padding:7px 10px}.save-preset .develop-note{margin-top:8px}.exports{border-top:1px solid var(--line);margin-top:18px;padding-top:18px;display:grid;gap:9px}.exports h2{margin:0 0 3px}.exports>label{margin:0}.exports button{width:100%;font-size:12px}.exports .develop-note{margin-top:2px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,12px);background:#0a0e16;color:#fff;border:1px solid #ffffff20;border-radius:8px;padding:12px 18px;box-shadow:0 5px 24px #0002;font-size:12px;line-height:1.7;max-width:min(540px,calc(100% - 32px));opacity:0;pointer-events:none;transition:.2s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1550px){.workspace{grid-template-columns:250px minmax(0,1fr) 330px}.empty-viewer{min-height:560px}}
@media(max-width:1199px){main{padding:16px}.workspace{grid-template-columns:190px minmax(0,1fr) 275px;gap:12px}.preset-rail,.panel{padding:14px 12px}.develop-toolbar>div:first-child{gap:7px}.develop-toolbar #editStatus{display:none}.empty-viewer{min-height:400px}.viewer-foot{font-size:9px}.source-heading>span{font-size:10px}}
@media(max-width:999px){.workspace{grid-template-columns:minmax(0,1fr) 285px}.viewer{grid-column:1;grid-row:1;position:static}.panel{grid-column:2;grid-row:1 / span 2}.preset-rail{grid-column:1;grid-row:2;max-height:none;position:static;overflow:visible}.preset-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.empty-viewer{min-height:350px}.drops{gap:12px}.drop{padding:12px}.drop small{font-size:10px}.source-heading h2 span{font-size:10px}}
@media(max-width:650px){.appbar{height:auto;min-height:66px;padding:13px 14px;align-items:center;flex-wrap:wrap;gap:12px}.brand h1{font-size:21px}.brand img{width:30px;height:30px}.brand h1 span{font-size:12px}.appbar-actions{gap:6px}.appbar-actions button{padding:8px 9px;font-size:11px}main{padding:14px 12px 24px}.drops{grid-template-columns:1fr;gap:14px;margin-bottom:14px}.source-heading{height:25px}.drop{min-height:68px;padding:10px 12px}.workspace{grid-template-columns:1fr;gap:14px}.viewer{grid-column:1;grid-row:1}.preset-rail{grid-column:1;grid-row:2}.panel{grid-column:1;grid-row:3;padding:18px}.empty-viewer{min-height:270px;padding:25px 20px}.empty-icon{font-size:44px;margin-bottom:14px}.empty-viewer h2{font-size:16px}.empty-viewer p{font-size:11px}.develop-toolbar{min-height:56px;padding:11px 12px}.develop-toolbar #editStatus{display:block;max-width:120px}.preset-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.preset-card span{font-size:10px}.viewer-foot{font-size:9px}.ctrl{margin:18px 0}.ctrl input[type=range]{height:22px}.preset-categories button{padding:7px 9px}.panel h2{font-size:14px}.develop-group summary{padding:17px 0}.develop-note{font-size:11px}}
@media(max-width:380px){.appbar-actions{width:100%}.appbar-actions button{flex:1}.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.develop-toolbar #editStatus{max-width:78px}.drop small{font-size:10px}.brand{gap:8px}.viewer-foot>span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(min-width:1000px){.panel{max-height:calc(100vh - 236px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;position:sticky;top:16px}}
.language-toggle{min-width:46px}.develop-heading .clear-preset{font-size:10px;padding:5px 7px;white-space:nowrap;margin-left:auto}.develop-heading .preset-count{white-space:nowrap}.appbar-actions{align-items:stretch}.appbar-actions button{min-height:35px}
.develop-heading{flex-wrap:wrap}
.appbar{position:sticky;top:0;z-index:10}#workspace{scroll-margin-top:88px}
@media(min-width:1000px){.preset-rail,.panel,.viewer{top:88px}}
@media(max-width:650px){#workspace{scroll-margin-top:124px}}
@media(max-width:650px){.appbar-actions{width:100%;display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:6px}.appbar-actions button{min-width:0;min-height:36px;padding:6px;font-size:10px}.language-toggle{min-width:44px}.develop-heading .clear-preset{font-size:11px}}

/* ONDO paper / ink / amber palette; channel swatches retain their color meaning. */
.appbar{box-shadow:0 1px 0 rgba(10,14,22,.03)}.thumbnail-note{margin:-3px 0 12px}.preset-card:hover{border-color:var(--accent)}.preset-card[aria-pressed=true]{background:#f7edd9}.save-preset input::placeholder{color:var(--muted)}
/* ONDO site shell. The editor retains its own controls inside the site page. */
:root{--ondo-header-height:88px;--editor-toolbar-height:80px;font-family:Pretendard,"맑은 고딕","Malgun Gothic",system-ui,sans-serif}
.ondo-header{position:sticky;top:0;z-index:30;background:var(--bg);border-bottom:1px solid var(--line)}.ondo-header-inner{height:88px;width:calc(100% - 96px);max-width:1240px;margin:auto;display:flex;align-items:center;gap:32px}.ondo-header a,.ondo-footer a,.page-breadcrumb a{text-decoration:none}.ondo-wordmark{flex-shrink:0}.ondo-wordmark img{display:block;width:124px;height:auto}.ondo-nav{display:flex;align-items:center;gap:28px;margin-left:auto;font-size:13px;font-weight:500}.ondo-nav a{white-space:nowrap;padding:9px 0;color:var(--muted)}.ondo-nav a:hover,.ondo-nav a[aria-current=page]{color:var(--ink)}.ondo-nav a[aria-current=page]{box-shadow:inset 0 -2px var(--gold)}.ondo-contact{flex-shrink:0;margin-left:4px;padding:8px 0 8px 25px;border-left:1px solid var(--line);font-size:12px;color:var(--muted)}.ondo-contact span{margin-left:7px}
.appbar{height:80px;top:var(--ondo-header-height);max-width:1800px;margin:auto;background:var(--bg);box-shadow:none}.page-heading{min-width:0;display:grid;gap:4px}.page-heading h1{font-size:23px;line-height:1.35;letter-spacing:-.8px}.page-breadcrumb{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.page-breadcrumb a:hover{color:var(--ink)}.ondo-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;width:calc(100% - 96px);max-width:1240px;margin:26px auto 0;padding:22px 0 32px;border-top:1px solid var(--line);font-size:10px;line-height:1.8;color:var(--muted)}.ondo-footer p{margin-right:auto}.ondo-footer a{white-space:nowrap}a:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:2px}.skiplink{z-index:50}
#workspace{scroll-margin-top:calc(var(--ondo-header-height) + var(--editor-toolbar-height) + 16px)}
@media(min-width:1000px){.preset-rail,.panel,.viewer{top:calc(var(--ondo-header-height) + var(--editor-toolbar-height) + 16px)}.preset-rail,.panel{max-height:calc(100dvh - var(--ondo-header-height) - var(--editor-toolbar-height) - 164px)}}
@media(max-width:1000px){.ondo-contact{display:none}.ondo-header-inner{height:76px}.ondo-wordmark img{width:112px}.ondo-nav{gap:22px;font-size:12px}}
@media(max-width:650px){.ondo-header-inner{width:calc(100% - 28px);height:auto;min-height:84px;flex-wrap:wrap;gap:9px;padding:13px 0 8px}.ondo-wordmark img{width:103px}.ondo-nav{width:100%;margin:0;justify-content:space-between;gap:8px;font-size:11px}.ondo-nav a{padding:5px 0}.appbar{height:auto;padding:13px 14px;gap:12px}.page-heading h1{font-size:21px}.page-breadcrumb{font-size:10px}.ondo-footer{width:calc(100% - 28px);flex-wrap:wrap;gap:12px;font-size:10px;padding:20px 0 26px}.ondo-footer p{order:3;width:100%}.ondo-footer a{margin-left:auto}}
@media(min-width:1000px){.empty-viewer{min-height:clamp(240px,calc(100dvh - var(--ondo-header-height) - var(--editor-toolbar-height) - 256px),470px)}}

/* Fit the entire source frame and playback controls inside the editing viewport.
   Canvas backing dimensions remain unchanged for full-resolution photo export. */
.viewer.has-media{display:flex;flex-direction:column;height:calc(100vh - var(--ondo-header-height) - var(--editor-toolbar-height) - 164px);height:calc(100dvh - var(--ondo-header-height) - var(--editor-toolbar-height) - 164px);min-height:240px}
.viewer.has-media .develop-toolbar,.viewer.has-media .transport,.viewer.has-media .viewer-foot{flex-shrink:0}
.viewer.has-media .compare-wrap{flex:1;min-height:0}
.compare-wrap canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
@media(max-width:999px){.viewer.has-media{height:calc(100vh - var(--ondo-header-height) - var(--editor-toolbar-height) - 32px);height:calc(100dvh - var(--ondo-header-height) - var(--editor-toolbar-height) - 32px)}}
/* Full-video export shares ONDO's existing palette and stays usable on phones. */
[hidden]{display:none!important}
.video-export-status{margin-top:12px;padding:12px;border:1px solid var(--line,#d5d0c6);border-radius:10px;background:var(--surface,#faf8f3)}
.video-export-status p{font-size:12px;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}
.video-export-status progress{width:calc(100% - 42px);height:8px;accent-color:var(--accent,#56634d)}
.video-export-status output{display:inline-block;width:40px;text-align:right;font-size:11px;font-variant-numeric:tabular-nums}
.video-export-status button{width:100%;margin-top:10px}
.video-download{display:block;margin-top:12px;text-align:center;font-size:12px;text-decoration:underline}
 
.preset-expand { display: none; }
@media (max-width: 999px) {
  .preset-grid:not(.is-expanded) .preset-card:not([data-mobile-preview]):not([aria-pressed="true"]) {
    display: none;
  }
  .preset-expand:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
  }
  .preset-expand[aria-expanded="false"] span:last-child,
  .preset-expand[aria-expanded="true"] span:first-child {
    display: none;
  }
}
