:root{color-scheme:dark;font-family:"Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;background:#0b0c0a;color:#f1f3ef}*{box-sizing:border-box}body{margin:0}header{height:84px;border-bottom:1px solid #393d35;display:flex;align-items:center;justify-content:space-between;padding:0 5%}.brand{color:#c5ef86;font-size:28px;display:flex;align-items:center;gap:12px}.brand span{color:#fff;font-size:22px;font-weight:650}.brand small{font-size:12px;color:#8e9488;margin-left:16px}.local{font-size:12px;color:#c4cfb8}main{max-width:1500px;margin:auto;padding:24px 5% 40px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:3px;color:#c5ef86}h1{font-size:34px;font-weight:550;line-height:1.3;margin:18px 0}.heading p:last-child{font-size:14px;color:#a2a89b}button,select,input{font:inherit}button{cursor:pointer;border:1px solid #494d44;background:#1e211a;color:#eaede6;border-radius:8px;padding:11px 15px}button:hover{border-color:#c5ef86}button:disabled{opacity:.4;cursor:wait}.primary{background:#c5ef86;color:#2a351a;padding:17px 24px;font-weight:700;border:0}.workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:30px}aside{background:#141512;border:1px solid #3b4035;padding:22px;border-radius:14px}h2{font-size:14px;margin:0 0 20px}h2 b{color:#bad099;font-size:11px;margin-right:10px}.file{position:relative;display:block;border:1px dashed #575f4e;border-radius:8px;padding:16px 14px;margin-bottom:12px;cursor:pointer;color:#c5ef86;overflow:hidden}.file strong{color:#eff2eb;margin-left:8px;font-size:14px}.file small{display:block;color:#a0a799;font-size:11px;margin-top:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.note{font-size:12px;line-height:1.8;color:#9da496;margin:18px 0 35px}.presets{display:flex;gap:5px;margin-bottom:12px}.presets button{font-size:12px;padding:10px}.wide{width:100%;font-size:12px;margin:4px 0;background:transparent}.previewTop{display:flex;justify-content:space-between;font-size:10px;letter-spacing:2px;color:#aeb5a7;margin:0 0 12px}#stage{aspect-ratio:16/9;position:relative;background:radial-gradient(ellipse at 60% 0%,#333a2a,#181b14 60%,#0d0e0b);overflow:hidden;border-radius:10px;border:1px solid #495041}video,canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}canvas{z-index:2;touch-action:none;cursor:move}#empty{position:absolute;inset:43% 0 auto;text-align:center;letter-spacing:4px;color:#b5beab;font-size:14px}#empty small{display:block;letter-spacing:0;font-size:12px;margin-top:15px;color:#98a28d}.transport{display:flex;align-items:center;gap:16px;margin-top:16px}.transport button{width:46px}.transport span{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.transport input{flex:1}.hint{font-size:11px;color:#979e8f;text-align:center}#status{font-size:13px;color:#cfdac3;padding:14px 0;line-height:1.6}progress{width:100%;accent-color:#c5ef86}#download{display:block;color:#c5ef86;padding:12px 0}#download[hidden]{display:none}.styles{padding:24px;background:#141512;border:1px solid #3b4035;border-radius:12px;margin-top:14px}.controls{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.controls label{font-size:12px;color:#b2b9ab;display:flex;flex-direction:column;gap:10px}.controls output{display:none}select{width:100%;padding:8px;border:1px solid #4d5346;border-radius:6px;background:#1d2118;color:#f1f3ef}input[type=range]{accent-color:#c5ef86;width:100%}input[type=color]{width:100%;height:32px;border:0;background:none}input[type=checkbox]{align-self:start;accent-color:#c5ef86}footer{margin-top:36px;font-size:11px;color:#8c9384;display:flex;justify-content:space-between}footer span{letter-spacing:2px}@media(max-width:900px){.workspace{grid-template-columns:1fr}aside{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}aside h2,.note{grid-column:1/-1}.controls{grid-template-columns:repeat(2,1fr)}.brand small{display:none}.heading{gap:20px}h1{font-size:26px}.primary{font-size:12px;padding:15px}.local{display:none}}

.check{float:right;font-size:18px;color:#c5ef86;font-weight:800}.controls output{display:inline;color:#c5ef86;font-size:11px}.png-upload{font-size:12px;margin-top:12px}#layers button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}#layers .selected{border-color:#c5ef86;color:#c5ef86}#layerEditor{border-top:1px solid #434a3b;margin-top:16px;padding-top:16px}#layerEditor label{display:block;font-size:12px;color:#b2b9ab;margin-bottom:16px}#layerEditor label[hidden]{display:none}textarea{box-sizing:border-box;width:100%;resize:vertical;margin-top:8px;background:#1d2118;color:#f1f3ef;border:1px solid #4d5346;border-radius:6px;padding:8px;font:inherit}#layerSizeValue{color:#c5ef86}#layerSize{margin-top:12px}

.add-row{display:flex;gap:8px;margin-bottom:16px}.add-row>button,.add-row>.file{flex:1;min-width:0;margin:0;padding:12px 5px;font-size:11px;text-align:center;border-radius:8px;white-space:nowrap}.layer-row{display:flex;align-items:center;border:1px solid #494d44;border-radius:8px;margin:8px 0;overflow:hidden}.layer-row.selected{border-color:#c5ef86}.layer-row button{border:0;background:transparent}.layer-select{flex:1;min-width:0;font-size:12px;padding:12px 10px}.layer-delete{flex:0 0 34px;font-size:22px;padding:5px!important;color:#b2b9ab}.layer-delete:hover{color:#d7f3ac;background:#323a29}.layer-style-row{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:12px}#layerEditor input[type=color],.controls .compact-color input{width:48px;height:28px;padding:0}#layerEditor select{margin-top:8px}#layerOpacity{margin-top:12px}#layerEditor output{color:#c5ef86;font-size:11px}#layers .selected .layer-select{color:#c5ef86}

.color-shadow{display:flex;gap:20px;align-items:start}.color-shadow input[type=checkbox]{margin-top:5px}

.color-shadow{gap:12px;flex-wrap:wrap}.color-shadow label{white-space:nowrap}

.brand small{font-size:15px}footer a{color:#b2b9ab;text-decoration:none}footer a:hover{color:#c5ef86;text-decoration:underline}

.footer-links{display:flex;align-items:center;gap:12px}.footer-links>*+*::before{content:'·';display:inline-block;margin-right:12px;color:#606758}
.footer-meta{display:flex;align-items:baseline;gap:12px;white-space:nowrap}.footer-meta span{letter-spacing:2px}

.save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.save-row span{font-size:12px;color:#b2b9ab}.save-row button{font-size:11px;padding:7px 12px;background:transparent}

aside{display:flex;flex-direction:column}.sidebar-reset{margin-top:auto;padding-top:28px;text-align:right}.sidebar-reset button{padding:3px 0;border:0;background:transparent;color:#9ba392;font-size:11px;text-decoration:underline;text-underline-offset:3px}.sidebar-reset button:hover{color:#c5ef86}

.sidebar-reset{display:flex;justify-content:flex-end;gap:16px}#historyDialog{background:#141512;color:#f1f3ef;border:1px solid #4d5346;border-radius:14px;padding:26px;width:min(580px,90vw);max-height:80vh}#historyDialog::backdrop{background:#0009}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.history-heading h2{margin:0;font-size:18px}.history-note{font-size:12px;line-height:1.8;color:#b2b9ab}.history-entry{display:block;width:100%;text-align:left;margin-top:10px;padding:15px}.history-entry strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-entry small{display:block;margin-top:8px;color:#b2b9ab}.history-empty{padding:24px 0;font-size:13px;color:#b2b9ab}
.sidebar-reset{justify-content:space-between}

#blendField{border:0;padding:0;margin:0 0 20px}#blendField legend{font-size:12px;color:#b2b9ab;margin-bottom:10px}#layerEditor #blendField label{display:inline-flex;align-items:center;margin:0 9px 0 0;gap:3px;font-size:11px}#blendField input{accent-color:#c5ef86;margin:0}
.export-panel{width:min(480px,45%);align-self:center}.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-actions .primary,.download-button{display:flex;align-items:center;justify-content:center;min-height:52px;padding:14px 18px;border-radius:8px;font-size:13px;font-weight:700;text-decoration:none;text-align:center;transition:background .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s}.download-button{border:1px solid #58604e;background:#1a1d16;color:#c5ef86}.download-button.ready{border-color:#d7ff9a;background:#c5ef86;color:#243018;box-shadow:0 0 0 3px rgba(197,239,134,.16),0 8px 24px rgba(121,170,64,.22);animation:download-ready .7s ease-out}.download-button.ready:hover{background:#d7ff9a;transform:translateY(-1px)}.download-button.disabled{color:#7c8276;border-color:#3c4137;background:#121410;cursor:not-allowed;pointer-events:none;box-shadow:none}.download-button.disabled::before{content:'○';margin-right:7px;color:#5d6356}@keyframes download-ready{0%{transform:scale(.96);box-shadow:0 0 0 0 rgba(197,239,134,.55)}60%{transform:scale(1.03);box-shadow:0 0 0 8px rgba(197,239,134,0)}100%{transform:scale(1)}}#exportProgress{margin-top:12px;padding:11px 13px;border:1px solid #3e4338;border-radius:8px;background:#121410}#exportProgress[hidden]{display:none}#exportStatus{display:block;min-height:16px;margin-bottom:8px;color:#b7bfae;font-size:11px;line-height:1.45}#exportProgress progress{display:block;width:100%;height:7px;accent-color:#c5ef86}
@media(max-width:900px){.heading{align-items:flex-start;flex-direction:column}.export-panel{width:100%;max-width:480px}.export-actions .primary,.download-button{font-size:12px}}
#download.download-button{padding:14px 18px}#download.download-button.ready{color:#243018}
/* Keep the header aligned with the workspace below. */
header{display:block;padding:0;height:auto;min-height:84px}.header-inner{max-width:1500px;margin:0 auto;padding:0 5%;min-height:83px;display:flex;align-items:center;justify-content:space-between;gap:20px}@media(max-width:600px){header{padding:0}.header-inner{gap:12px}}
.format-switch{display:flex;align-items:center;gap:8px;letter-spacing:0}.format-switch button{border:0;padding:2px 0;background:transparent;color:#a2a89b;font-size:10px;letter-spacing:1px;display:inline-flex;align-items:center;gap:5px}.format-switch button[aria-pressed=true]{color:#c5ef86}.format-switch button:hover{color:#d7ff9a}.format-switch button:focus-visible{outline:2px solid #c5ef86;outline-offset:3px}.format-switch span{color:#5d6356}.format-icon{display:inline-block;border:1px solid currentColor;border-radius:1px;opacity:.9}.format-icon.wide{width:13px;height:7px}.format-icon.square{width:9px;height:9px}.format-icon.vertical{width:6px;height:11px}#stage.square{width:min(100%,760px);aspect-ratio:1/1;margin-inline:auto}#stage.vertical{width:min(100%,470px);aspect-ratio:9/16;margin-inline:auto}

.preview-player{position:relative}.transport #previewFullscreen{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px;white-space:nowrap}.transport #previewFullscreen span{font-size:10px}.transport #previewFullscreen svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.transport #seek{min-width:30px}

/* 100% player: one video pixel per CSS pixel; smaller windows scroll. */
#previewPlayer.player-open{--player-width:1920px;--player-height:1080px;position:fixed;inset:0;z-index:10000;width:min(calc(var(--player-width) + 34px),calc(100vw - 32px));height:min(calc(var(--player-height) + 86px),calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:16px;display:block;overflow:auto;background:#050507f5;border:1px solid #ffffff30;border-radius:10px;box-shadow:0 0 0 100vmax #000b}
#previewPlayer.player-open:has(#stage.square){--player-width:1080px;--player-height:1080px}
#previewPlayer.player-open:has(#stage.vertical){--player-width:1080px;--player-height:1920px}
#previewPlayer.player-open #stage,#previewPlayer.player-open #stage.square,#previewPlayer.player-open #stage.vertical{width:var(--player-width);height:var(--player-height);min-width:var(--player-width);max-width:none;aspect-ratio:auto;margin:0 auto;border:0;border-radius:0;flex:none}
#previewPlayer.player-open .transport{box-sizing:border-box;width:var(--player-width);min-width:var(--player-width);max-width:none;margin:0 auto;padding:10px 0 0;gap:12px;position:relative;flex:none}
#previewPlayer.player-open .transport #previewFullscreen{min-width:112px}
#previewPlayer.player-open .transport #previewFullscreen span{display:inline}
#previewPlayer.player-open .transport span{white-space:nowrap}
.speed-control{position:relative;margin:-4px 0 22px 12px;padding:2px 0 0 12px;border-left:2px solid #4c5442}.speed-control label{display:flex;justify-content:space-between;align-items:center;color:#b3b8ad;font-size:10px;letter-spacing:1.5px;margin-bottom:6px}.speed-control output{color:#c5ef86;font-weight:700;letter-spacing:0}.speed-control input[type=range]{width:100%;accent-color:#c5ef86}.speed-scale{display:flex;justify-content:space-between;color:#7e8477;font-size:9px;margin-top:3px}.speed-scale span:nth-child(2),.speed-scale span:nth-child(4){color:#5d6257}

.speed-control input[type=range]{background:linear-gradient(to right,transparent 49.2%,#e8f7d0 49.2%,#e8f7d0 50.8%,transparent 50.8%);}

.speed-control{position:relative}.speed-control:has(#videoSpeed)::after{content:"";position:absolute;left:50%;top:24px;height:14px;width:1px;background:#dff6bd;opacity:.65;pointer-events:none;transform:translateX(-1px);z-index:2}.speed-control input[type=range]{position:relative;z-index:1}




.loop-mode{display:flex;align-items:center;gap:8px;margin:-12px 0 22px 24px;padding:0;border:0;color:#9ba294;font-size:10px;white-space:nowrap}.loop-mode label{display:inline-flex;align-items:center;color:#9ba294}.loop-mode input{accent-color:#c5ef86;margin:0 4px 0 0}.loop-divider{color:#5d6257}
.speed-control{display:inline-block;width:52%;vertical-align:top;margin-right:2%;margin-bottom:22px}.loop-mode{display:inline-flex;width:44%;vertical-align:top;margin:8px 0 22px 0;gap:5px;white-space:normal;flex-wrap:wrap}.loop-mode label{font-size:10px}
/* LOOP options stay on one line directly below SPEED without changing SPEED layout */
.speed-control{display:block;width:auto;vertical-align:initial;margin-right:0}
.loop-mode{display:flex;width:auto;vertical-align:initial;margin:-12px 0 22px 24px;gap:8px;flex-wrap:nowrap;white-space:nowrap}
.loop-mode{margin-left:0}
.speed-control{border-left:0;padding-left:0}
.loop-mode{align-items:center;margin-top:-12px}
.loop-mode input{vertical-align:middle}
.loop-mode{justify-content:center;font-size:12px;gap:12px}.loop-mode label{font-size:12px}

.export-panel #exportStatus{display:block;margin-top:10px;max-width:420px;white-space:normal;overflow-wrap:anywhere;color:#e5f7c9;font-size:13px;line-height:1.5}.export-panel #exportStatus:empty{display:none}

#serverStatus .local-dot{background:#e5bb68}#serverStatus[data-state="online"] .local-dot{background:#65dd98}#serverStatus[data-state="offline"] .local-dot{background:#b7ea6a}#serverStatus[data-state="offline"]{color:#d1f1a0}

.export-location{text-align:right;font-size:11px;line-height:1.5;color:#a2a89b;margin:9px 0;overflow-wrap:anywhere}

.export-audio-name{color:#d7ff9a;font-weight:600;text-decoration:underline;text-decoration-color:#a0bc76;text-underline-offset:3px;text-decoration-thickness:1px}

button.export-audio-name{background:none;border:0;border-radius:0;padding:0;font-size:inherit;font-family:inherit;cursor:pointer;text-align:left}button.export-audio-name:hover{color:#effade}button.export-audio-name:focus-visible{outline:2px solid #ccf097;outline-offset:3px}

.export-actions .primary,#download.download-button{font-size:15px}

.server-status-group{position:relative;text-align:right}#restoreNotice{position:absolute;right:0;top:calc(100% + 6px);white-space:nowrap;font-size:11px;font-weight:600;color:#c5ef86;opacity:0;transition:opacity .4s ease;pointer-events:none}#restoreNotice.visible{opacity:1}@media(prefers-reduced-motion:reduce){#restoreNotice{transition:none}}

#status:empty,.save-row:has(#saveStatus:empty){display:none}.save-row{margin-top:8px}

.server-status-group #saveStatus{position:absolute;right:0;top:calc(100% + 6px);font-size:11px;color:#b2b9ab;white-space:nowrap}.server-status-group:has(#restoreNotice.visible) #saveStatus{visibility:hidden}

.lyric-design-heading{display:flex;align-items:baseline;gap:28px;flex-wrap:wrap;margin-bottom:20px}.lyric-design-heading h2{margin:0;flex-shrink:0}.lyric-design-heading .hint{margin:0;text-align:left;letter-spacing:0;line-height:1.5}

.controls .slider-caption{display:flex;align-items:baseline;gap:7px;white-space:nowrap}.controls .slider-caption output{display:inline;flex-shrink:0}.controls label.lyric-slider{gap:8px}

.controls label.font-control,.align-control{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:12px;color:#b2b9ab;align-self:start}.font-control span,.align-control>span{flex-shrink:0}.controls .font-control select{min-width:0;width:calc(100% - 40px);max-width:170px}.align-buttons{display:flex;gap:5px}.align-buttons button{padding:7px;width:34px;height:34px;display:grid;place-items:center}.align-buttons svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.align-buttons button[aria-pressed="true"]{color:#c5ef86;border-color:#c5ef86;background:#2c3325}.align-control select[hidden]{display:none}

.server-status-group #saveStatus{color:#535550;transition:color .3s ease}.server-status-group #saveStatus[data-state="saving"],.server-status-group #saveStatus[data-state="saved"]{color:#c5ef86}

.lyric-timing{margin:-2px 0 16px;padding:0 3px;color:#b2b9ab}.lyric-timing>label{font-size:11px}.lyric-timing-row{display:flex;align-items:center;gap:5px;margin-top:7px}.lyric-timing-row button{padding:4px 7px;font-size:13px}.lyric-timing-row input{min-width:0;width:64px;padding:5px 4px;background:#1d2118;color:#c5ef86;border:1px solid #4d5346;border-radius:5px;font-size:12px;text-align:center;appearance:textfield}.lyric-timing-row input::-webkit-inner-spin-button{appearance:none}.lyric-timing-row span{font-size:11px}.lyric-timing-row #resetLyricOffset{padding:4px 0;margin-left:auto;background:none;border:0;font-size:10px;color:#9ba392}.lyric-timing small{display:block;font-size:9px;margin-top:5px;color:#7e8477}

.lyric-timing-row #lyricEarlier,.lyric-timing-row #lyricLater{width:38px;flex-shrink:0;padding:4px 7px;font-size:13px}

.export-actions{grid-template-columns:1fr 1fr;justify-content:end}#download.download-button{width:66.6667%;justify-self:end}

.controls .color-shadow{align-items:start}.controls .color-shadow label{display:grid;grid-template-rows:16px 28px;justify-items:center;align-items:center;text-align:center;gap:6px;line-height:16px}.controls .color-shadow input[type=checkbox]{align-self:center;justify-self:center;margin:0}.controls .color-shadow input[type=color]{align-self:center;justify-self:center;height:24px;margin:0}

.history-entry small{line-height:1.6}.history-entry{white-space:normal}

.history-entry small{line-height:1.6}.history-entry{white-space:normal}

.history-heading{align-items:flex-start}.history-title-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.history-title-actions h2{margin:0}.history-title-actions #deleteUnarchived{padding:7px 10px;font-size:11px;line-height:1.3}.history-title-actions #deleteUnarchived:disabled{opacity:.45;cursor:default}
.history-item{margin-top:10px;padding:12px 14px;border:1px solid #4d5346;border-radius:9px}.history-item.archived{border-color:#786b30;background:#292512}.history-item-top{display:flex;align-items:center;gap:10px}.history-entry{display:block;flex:1;width:auto;min-width:0;margin:0;padding:3px 0;border:0;background:transparent;text-align:left}.history-entry:hover{border-color:transparent;color:#c5ef86}.history-item small{display:block;margin-top:6px;line-height:1.5}.history-item-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.history-icon{width:32px;height:32px;padding:6px;display:grid;place-items:center;border-radius:7px}.history-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.archive-toggle[aria-pressed=true]{color:#ffd96a;border-color:#887231;background:#302913}.history-delete{color:#d1f1a0}.history-delete:disabled{opacity:.25;cursor:not-allowed}

/* Header symbols and the link to the sister app (pink <-> blue) */
.brand .brand-symbol{width:28px;height:28px;flex:none;fill:#c5ef86}
.header-inner>[class$=status-group]{margin-left:auto}
.sister-app{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin-left:30px;border-radius:8px;color:#79b9ff;opacity:.82;transition:opacity .2s ease,transform .2s ease,background-color .2s ease}
.sister-app::before{content:"";position:absolute;left:-16px;top:7px;bottom:7px;width:1px;background:#393d35}
.sister-app svg{width:26px;height:26px;fill:currentColor}
.sister-app:hover{opacity:1;transform:translateY(-1px);background:rgba(255,255,255,.05)}
.sister-app:focus-visible{opacity:1;outline:2px solid currentColor;outline-offset:3px}

/* Brand line: name + description + credit */
.brand .brand-meta{display:flex;flex-direction:column;justify-content:center;gap:3px;margin-left:12px;line-height:1.2}
.brand .brand-meta em{font-style:normal;font-size:13px;font-weight:500;letter-spacing:.2px;color:#ced4c8;white-space:nowrap}
.brand .brand-meta small{display:block;margin:0;font-size:12px;color:#8e9488;white-space:nowrap}

/* 03 panel: vertical folder tabs (가사 / 이미지 생성) */
.styles.tabbed-panel{display:flex;padding:0;overflow:hidden}
.panel-tabs{flex:none;display:flex;flex-direction:column;width:38px;background:#0b0c09;border-right:1px solid #3b4035}
.panel-tabs [role=tab]{flex:none;display:flex;align-items:center;justify-content:center;padding:16px 0;min-height:76px;border:0;border-bottom:1px solid #262923;border-radius:0;background:transparent;color:#808777;font-size:12px;letter-spacing:2px;writing-mode:vertical-rl;text-orientation:upright;cursor:pointer;transition:color .2s ease,background-color .2s ease}
.panel-tabs [role=tab]:hover{color:#dee4d8}
.panel-tabs [role=tab][aria-selected=true]{background:#141512;color:#c5ef86;font-weight:700;margin-right:-1px;box-shadow:inset 2px 0 0 #c5ef86}
.panel-tabs [role=tab]:focus-visible{outline:2px solid #c5ef86;outline-offset:-3px}
.panel-stack{flex:1;min-width:0;display:grid}
.panel-body{grid-area:1/1;padding:24px;min-width:0}
.panel-body[hidden]{display:block;visibility:hidden;pointer-events:none}

/* 이미지 생성 tab */
.generate-heading{align-items:center}
.mag-key-button{margin-left:auto;display:inline-flex;align-items:center;gap:7px;padding:5px 10px;font-size:11px;color:#b2b9ab;background:transparent;border:1px solid #3b4035;border-radius:999px}
.mag-key-button:hover{color:#e8f7d0;border-color:#c5ef86}
.mag-dot{width:7px;height:7px;border-radius:50%;background:#62685b}
.mag-key-button[data-connected=true] .mag-dot{background:#7ee0a1}
.generate-grid{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr) minmax(170px,1fr);gap:20px;align-items:start}
.gen-field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;font-size:12px;color:#b2b9ab}
.gen-segment{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.gen-segment button{padding:7px 0;font-size:12px;white-space:nowrap}
.gen-segment button[aria-pressed=true]{border-color:#a5d65c;background:#26331a;color:#d8ff9d}
.gen-segment button:disabled{opacity:.4;cursor:not-allowed}
.gen-prompt,.gen-label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#b2b9ab}
.gen-prompt small,.gen-label small,.gen-library-head small{color:#747a6d;font-size:10px;margin-left:4px}
.gen-prompt textarea{width:100%;min-height:96px;resize:vertical;box-sizing:border-box;padding:10px 12px;font:inherit;font-size:13px;line-height:1.5;color:#f1f3ef;background:#0d0e0b;border:1px solid #3b4035;border-radius:8px}
.gen-prompt textarea:focus,.gen-label input:focus{outline:none;border-color:#c5ef86}
.gen-label input{box-sizing:border-box;width:100%;padding:8px 10px;font:inherit;font-size:13px;color:#f1f3ef;background:#0d0e0b;border:1px solid #3b4035;border-radius:8px}
.gen-cost{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.gen-cost span{font-size:11px;color:#979e8f}
.gen-start{width:100%;padding:10px 0}
.gen-status{margin:8px 0 0;min-height:16px;font-size:11px;color:#c5ef86;line-height:1.5}
.gen-status[data-state=error]{color:#cdf099}
.gen-library{margin-top:18px;padding-top:14px;border-top:1px solid #262923}
.gen-library-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#b2b9ab;margin-bottom:10px}
.gen-library-head button{padding:2px 8px;font-size:12px}
.gen-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.gen-thumbs button{position:relative;padding:0;aspect-ratio:16/9;overflow:hidden;border:1px solid #3b4035;border-radius:6px;background:#0d0e0b;cursor:pointer}
.gen-thumbs button:hover{border-color:#c5ef86}
.gen-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.gen-thumbs .gen-empty{grid-column:1/-1;font-size:11px;color:#747a6d}
.mag-key-dialog{width:min(440px,90vw);padding:24px;border:1px solid #3b4035;border-radius:12px;background:#141512;color:#f1f3ef}
.mag-key-dialog::backdrop{background:rgba(0,0,0,.6)}
.mag-key-dialog h2{margin:0 0 10px;font-size:16px}
.mag-key-dialog p{margin:0 0 14px;font-size:12px;line-height:1.6;color:#b2b9ab}
.mag-key-dialog input{box-sizing:border-box;width:100%;padding:10px 12px;font:inherit;color:#f1f3ef;background:#0d0e0b;border:1px solid #3b4035;border-radius:8px}
.mag-key-message{min-height:18px;margin:10px 0 0!important}
.mag-key-actions{display:flex;gap:8px;align-items:center;margin-top:12px}
.mag-key-actions span{flex:1}

/* Larger brand name + description */
.brand>span{font-size:26px;letter-spacing:.3px}
.brand .brand-meta em{font-size:14px}

/* Brand name a little larger */
.brand>span{font-size:30px}
.brand .brand-symbol{width:32px;height:32px}
/* Tabs keep their own height; the 4th lyric column keeps its checkboxes on one row and the sliders give up the width */
.panel-body[hidden]{display:none}
.tabbed-panel .controls{grid-template-columns:repeat(3,minmax(0,1fr)) max-content}
.tabbed-panel .controls{grid-template-columns:minmax(178px,1fr) repeat(2,minmax(0,1fr)) max-content}
@media (max-width:1250px){.tabbed-panel .controls{grid-template-columns:minmax(150px,1fr) repeat(2,minmax(0,1fr)) max-content}.tabbed-panel .controls .slider-caption{flex-wrap:wrap;white-space:normal;row-gap:2px}}

/* v1.1 tweaks: equal tab halves, taller prompt, narrow right column, thumbnail size + menu */
.panel-tabs [role=tab]{flex:1 1 0;min-height:0}
.generate-grid{grid-template-columns:minmax(150px,1fr) minmax(0,3fr) 150px;align-items:stretch}
.generate-options .gen-field:last-child{margin-bottom:0}
.gen-prompt{min-height:0}
.gen-prompt textarea{flex:1;min-height:60px;height:auto;resize:none}
.gen-run{display:flex;flex-direction:column;justify-content:space-between}
.gen-cost{margin-top:10px}
.gen-status{margin:10px 0 0}
.gen-status:empty{display:none}
.gen-library{position:relative}
.gen-thumbs{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}
.gen-thumb{display:flex;flex-direction:column;gap:4px;min-width:0}
.gen-thumb button{position:relative;padding:0;width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid #3b4035;border-radius:6px;background:#0d0e0b;cursor:pointer}
.gen-thumb button:hover,.gen-thumb button[aria-expanded=true]{border-color:#c5ef86}
.gen-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.gen-size{font-size:10px;color:#808777;text-align:center;font-variant-numeric:tabular-nums;min-height:12px}
.gen-menu{position:absolute;z-index:20;min-width:160px;padding:5px;display:flex;flex-direction:column;background:#1c1f18;border:1px solid #4c5442;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.gen-menu button{padding:8px 10px;text-align:left;font-size:12px;border:0;background:transparent;color:#e8ece3;border-radius:5px;cursor:pointer}
.gen-menu button:hover,.gen-menu button:focus-visible{background:#26331a;color:#d8ff9d;outline:none}
.gen-prompt textarea{margin:0}
.gen-cost{margin-top:4px;gap:6px}
.gen-start{padding:9px 0}
.styles.tabbed-panel{overflow:visible}
.panel-tabs{border-radius:11px 0 0 11px;overflow:hidden}
.panel-tabs [role=tab]{padding:8px 0;font-size:11px;letter-spacing:1px;white-space:nowrap}
/* English tab labels laid on their side, read bottom-to-top */
.panel-tabs [role=tab]{writing-mode:vertical-rl;text-orientation:mixed;transform:rotate(180deg);font-size:12px;letter-spacing:1.5px}
.panel-tabs [role=tab][aria-selected=true]{box-shadow:inset -2px 0 0 #c5ef86}
/* Sync reset: round arrow icon, same size as the arrow buttons */
.lyric-timing-row #resetLyricOffset{width:38px;height:auto;align-self:stretch;flex-shrink:0;margin-left:auto;padding:0;display:inline-flex;align-items:center;justify-content:center;background:#1d2118;border:1px solid #4d5346;border-radius:6px;color:#dce2d5}
.lyric-timing-row #resetLyricOffset svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lyric-timing-row #resetLyricOffset:hover{border-color:#c5ef86;color:#c5ef86}
.lyric-timing-row #resetLyricOffset{color:#9ba294}
/* Magnific panel: trimmed vertical spacing (controls keep their size) */
#panelGenerate{padding:18px 24px 16px}
#panelGenerate .generate-heading{margin-bottom:12px}
#panelGenerate .gen-library{margin-top:12px;padding-top:10px}
#panelGenerate .gen-library-head{margin-bottom:8px}
#panelGenerate .gen-status{margin-top:8px}
.panel-tabs [role=tab]{font-size:13px}
/* In-app confirm / alert */
.app-dialog{width:min(420px,90vw);padding:24px 24px 18px;border:1px solid #4c5442;border-radius:14px;background:#171914;color:#f1f3ef;box-shadow:0 18px 60px rgba(0,0,0,.55)}
.app-dialog::backdrop{background:rgba(6,7,5,.62);backdrop-filter:blur(2px)}
.app-dialog p{margin:0 0 20px;font-size:14px;line-height:1.65;white-space:pre-line;color:#e1e6dc}
.app-dialog-actions{display:flex;justify-content:flex-end;gap:8px}
.app-dialog-actions button{min-width:84px;padding:9px 16px;font-size:13px;border-radius:8px}
.app-dialog-actions button.danger{background:#556f2f;border-color:#8fb458;color:#f3fce6}
.app-dialog-actions button.danger:hover{background:#678638}
.app-dialog-actions button:focus-visible{outline:2px solid #c5ef86;outline-offset:2px}
/* Reference image + loop video controls */
.gen-prompt>label{font-size:12px;color:#b2b9ab}
.gen-prompt{gap:7px}
.gen-prompt-box{position:relative;flex:1;display:flex;flex-direction:column;min-height:0;border:1px solid #3b4035;border-radius:8px;background:#0d0e0b}
.gen-prompt-box:focus-within{border-color:#c5ef86}
.gen-prompt-box.dragging{border-color:#c5ef86;background:#171b12}
.gen-prompt-box textarea{flex:1;min-height:40px;border:0!important;background:transparent;border-radius:8px 8px 0 0;padding-bottom:4px}
.gen-prompt-bar{display:flex;align-items:center;gap:8px;min-height:30px;padding:0 8px 6px}
.gen-ref-add{padding:3px 9px;font-size:11px;border-radius:999px;border:1px dashed #4c5442;background:transparent;color:#9ba294}
.gen-ref-add:hover{border-color:#c5ef86;color:#d8ff9d}
.gen-ref-chip{display:inline-flex;align-items:center;gap:6px;max-width:60%;padding:2px 4px 2px 2px;border:1px solid #4c5442;border-radius:6px;background:#171914;font-size:11px;color:#ced4c8}
.gen-ref-chip[hidden]{display:none}
.gen-ref-chip img{width:34px;height:22px;object-fit:cover;border-radius:3px;flex:none}
.gen-ref-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gen-ref-chip button{padding:0 5px;font-size:11px;border:0;background:transparent;color:#9ba294}
.gen-ref-chip button:hover{color:#c5ef86}
.gen-loop{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#9ba294;white-space:nowrap}
.gen-loop[hidden]{display:none}
.gen-loop input{accent-color:#c5ef86;margin:0}
.gen-field[hidden]{display:none}
.gen-selects{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.gen-selects select{min-width:0;padding:7px 6px;font-size:12px}
.gen-thumb video{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.gen-thumb .gen-badge{position:absolute;right:4px;bottom:4px;padding:1px 5px;font-size:9px;border-radius:4px;background:rgba(0,0,0,.65);color:#e8f7d0;pointer-events:none}
/* prompt box keeps its outer size (the row is set by the left column); hint stays on one line */
.gen-prompt-box textarea{height:0;min-height:0}
.generate-heading{flex-wrap:nowrap}
.generate-heading .hint{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mag-key-button{flex:none}
/* 파일 키워드 label sits on the input border so the right column fits the row */
.gen-run .gen-label{position:relative;display:block;margin-top:9px}
.gen-run .gen-label>span{position:absolute;top:-8px;left:8px;padding:0 4px;background:#141512;font-size:10px;line-height:14px;color:#9ba294;z-index:1}
.gen-run .gen-label>span small{font-size:9px}
.generate-options{display:flex;flex-direction:column;gap:14px}
.generate-options .gen-field{margin-bottom:0}
.gen-run .gen-label{margin-top:24px}
/* model name, reference popover, generate progress, fresh result */
.gen-model-name{margin-left:4px;font-size:10px;color:#d8ff9d;letter-spacing:.2px}
.gen-ref-pop{position:absolute;left:8px;bottom:38px;z-index:15;width:min(340px,calc(100% - 16px));padding:10px;display:flex;flex-direction:column;gap:8px;background:#1c1f18;border:1px solid #4c5442;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.5)}
.gen-ref-pop[hidden]{display:none}
.gen-ref-pop>button{align-self:flex-start;padding:6px 12px;font-size:12px}
.gen-ref-url{display:flex;gap:6px}
.gen-ref-url input{flex:1;min-width:0;padding:7px 9px;font:inherit;font-size:12px;color:#f1f3ef;background:#0d0e0b;border:1px solid #3b4035;border-radius:6px}
.gen-ref-url input:focus{outline:none;border-color:#c5ef86}
.gen-ref-url button{padding:6px 12px;font-size:12px}
.gen-ref-pop p{margin:0;font-size:10px;line-height:1.5;color:#808777}
.gen-start.running{background:#26331a;border-color:#a5d65c;color:#dff6bc;font-size:12px;cursor:progress;opacity:1;white-space:nowrap}
.gen-start .spinner{display:inline-block;width:12px;height:12px;margin-right:7px;vertical-align:-1px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:gen-spin .8s linear infinite}
@keyframes gen-spin{to{transform:rotate(360deg)}}
.gen-thumb.fresh button{border-color:#c5ef86;animation:gen-fresh 1.2s ease-in-out 3}
@keyframes gen-fresh{0%,100%{box-shadow:0 0 0 0 rgba(197,239,134,0)}50%{box-shadow:0 0 0 4px rgba(197,239,134,.45)}}
@media(prefers-reduced-motion:reduce){.gen-start .spinner,.gen-thumb.fresh button{animation:none}}
/* reference popover: wide enough for the hint on one line */
.gen-ref-pop{width:max-content;max-width:none}
.gen-ref-pop p{white-space:nowrap}
.gen-ref-url input{min-width:300px}

/* Top-level upload cards (가사 / 노래 / 루프 영상 / 배경 슬라이드): brighter pink edge + slightly lifted background */
aside .file:not(.add-row>.file):not(.png-upload){border:1px dashed #d6f3ab;background:#1c2017}
aside .file:not(.add-row>.file):not(.png-upload):hover{border-color:#e7f8cd;background:#22271c}

/* 파장 패널 */
#panelWave .lyric-design-heading .hint{color:#979e8f;font-size:11px}
#panelWave .wave-top{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;margin-bottom:20px}
.wave-group{display:flex;align-items:center;gap:10px;font-size:12px;color:#b2b9ab}
.wave-seg{display:inline-flex;border:1px solid #494d44;border-radius:8px;overflow:hidden}
.wave-seg label{position:relative;margin:0;cursor:pointer;display:block}.wave-seg input{position:absolute;opacity:0;pointer-events:none}
.wave-seg span{display:block;padding:7px 18px;font-size:12px;color:#b2b9ab;background:#121310}
.wave-seg input:checked+span{background:#2d3425;color:#c5ef86;font-weight:700}
.wave-seg input:focus-visible+span{outline:2px solid #c5ef86;outline-offset:-2px}
.wave-swatches{display:flex;gap:10px}.wave-swatches label{position:relative;margin:0;cursor:pointer;display:block}.wave-swatches input{position:absolute;opacity:0;pointer-events:none}
.wave-swatches i{display:block;width:24px;height:24px;border-radius:50%;border:2px solid #494d44;box-sizing:border-box}
.sw-white{background:#fff}.sw-black{background:#000}
.wave-swatches input:checked+i{border-color:#c5ef86;box-shadow:0 0 0 2px #141512,0 0 0 4px #c5ef86}
.wave-swatches input:focus-visible+i{outline:2px solid #c5ef86;outline-offset:3px}
.wave-checks{gap:16px}.wave-checks label{display:inline-flex;align-items:center;gap:5px;margin:0;font-size:12px;white-space:nowrap}
.wave-checks input{accent-color:#c5ef86;margin:0}
.wave-presets{gap:6px}.wave-presets>span{margin-right:2px}
.wave-presets button{width:48px;height:30px;padding:3px;display:grid;place-items:center;border-radius:7px;flex:none}
.wave-presets svg{width:100%;height:100%;display:block}
.wave-presets .frame{fill:none;stroke:#6e7567;stroke-width:1}
.wave-presets .bars{fill:none;stroke:#c5ef86;stroke-width:1.5;stroke-linecap:round}
.wave-presets .home{fill:none;stroke:#c5ef86;stroke-width:1.4;stroke-linecap:round}
.wave-presets button:hover .frame{stroke:#c5ef86}
#panelWave .wave-controls{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px 24px}
.wave-empty{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#979e8f;font-size:12px}.wave-empty p{margin:0}
.wave-empty button{padding:9px 16px;border-radius:8px;font-size:12px}
.wave-empty[hidden],#waveField[hidden]{display:none}


#panelWave .wave-top{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}
#panelWave .wave-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.wave-seg span{padding:7px 10px}
.wave-controls input[type=range]:disabled{opacity:.35}

#panelWave{position:relative}
#panelWave .wave-corner{position:absolute;top:2px;right:0;gap:10px}
#panelWave .wave-row{justify-content:flex-start;gap:12px 28px}
.wave-seg button{margin:0;border:0;border-radius:0;padding:7px 12px;font-size:12px;color:#b2b9ab;background:#121310;cursor:pointer}
.wave-seg button+button{border-left:1px solid #494d44}
.wave-seg button:hover{background:#2d3425;color:#c5ef86}
#panelWave .wave-corner{top:14px;right:16px}
#panelWave .wave-top,#panelWave .wave-row{margin-left:0;margin-right:0;padding-left:0;padding-right:0;width:100%;box-sizing:border-box}
#panelWave .wave-row{flex-wrap:nowrap;gap:12px 22px}
#panelWave .wave-row>.wave-group:first-child{flex:1 1 auto;min-width:0}
#panelWave .wave-row>.wave-group:first-child .wave-seg{flex:1 1 auto;display:flex}
#panelWave .wave-row>.wave-group:first-child .wave-seg label{flex:1 1 0}
#panelWave .wave-row>.wave-group:first-child .wave-seg span{text-align:center;padding:7px 4px}
#panelWave .wave-corner{right:24px}
.styles.tabbed-panel{min-height:240px}

/* 가사 편집 */
.file{position:relative}
.lyric-edit-button{position:absolute;right:14px;bottom:10px;width:30px;height:30px;padding:0;border:1px solid #4c5442;border-radius:8px;background:#171914;color:#c5ef86;font-size:15px;line-height:1;cursor:pointer}
.lyric-edit-button:hover{background:#21261b}
.lyric-edit-button[hidden]{display:none}
.lyric-editor{width:min(640px,92vw);max-height:84vh;padding:22px 22px 16px;border:1px solid #4c5442;border-radius:14px;background:#171914;color:#f1f3ef;box-shadow:0 18px 60px rgba(0,0,0,.55)}
.lyric-editor::backdrop{background:rgba(6,7,5,.62);backdrop-filter:blur(2px)}
.lyric-editor[open]{display:flex;flex-direction:column}
.lyric-editor h2{margin:0 0 6px;font-size:16px}
.lyric-editor-hint{margin:0 0 12px;font-size:12px;line-height:1.6;color:#b2b9ab}
.lyric-editor-list{flex:1;min-height:120px;max-height:56vh;overflow:auto;border:1px solid #3b4035;border-radius:10px;background:#0f110d;padding:6px}
.lyric-editor-row{display:grid;grid-template-columns:78px 1fr;gap:10px;align-items:start;padding:5px 6px;border-bottom:1px solid #23271f}
.lyric-editor-row:last-child{border-bottom:0}
.lyric-editor-time{padding-top:8px;font-size:11px;color:#b2b9ab;font-variant-numeric:tabular-nums;white-space:nowrap}
.lyric-editor-row textarea{box-sizing:border-box;width:100%;resize:none;overflow:hidden;padding:7px 9px;font:inherit;font-size:13px;line-height:1.5;color:#f1f3ef;background:#0d0e0b;border:1px solid #3b4035;border-radius:7px}
.lyric-editor-row textarea:focus{outline:none;border-color:#c5ef86}
.lyric-editor-msg{min-height:18px;margin:8px 2px 4px;font-size:12px;color:#d4f2a8}
.lyric-editor .app-dialog-actions{margin-top:6px}
.lyric-editor .app-dialog-actions button{min-width:0}

/* 가사 편집: 배경을 막지 않는 떠 있는 작은 창 */
.lyric-editor{position:fixed;margin:0;right:14px;top:72px;left:auto;width:min(340px,94vw);max-height:calc(100vh - 96px);padding:12px 12px 10px;z-index:50}
.lyric-editor-title{margin:0 0 8px;font-size:14px;cursor:move;user-select:none;touch-action:none}
.lyric-editor-title small{margin-left:6px;font-size:10px;font-weight:400;color:#b2b9ab}
.lyric-editor-list{max-height:calc(100vh - 230px)}
.lyric-editor-row{grid-template-columns:62px 1fr;gap:6px}
.lyric-editor .app-dialog-actions{flex-wrap:wrap}
.lyric-editor .app-dialog-actions button{padding:7px 10px;font-size:12px}
/* 크기 조절: 우하단 모서리를 끌기 */
.lyric-editor{resize:both;overflow:hidden;min-width:260px;min-height:220px;max-width:96vw;height:min(520px,calc(100vh - 96px));max-height:none}
.lyric-editor-list{flex:1 1 0;min-height:0;max-height:none}
.lyric-editor-title small{display:none}
/* 테두리 최소화: 텍스트처럼 보이고 행간만 넉넉하게 */
.lyric-editor-list{border:0;background:transparent;padding:0}
.lyric-editor-row{border-bottom:0;padding:7px 4px}
.lyric-editor-row textarea{border:0;border-radius:6px;background:transparent;padding:4px 6px;line-height:1.6}
.lyric-editor-row textarea:hover{background:rgba(255,255,255,.04)}
.lyric-editor-row textarea:focus{background:rgba(197,239,134,.12);outline:none;border:0}
.lyric-editor-time{padding-top:5px}
/* 연필 아이콘: 제목 옆, 테두리 없이 */
.lyric-edit-button{position:static;display:inline-block;width:auto;height:auto;margin:0 0 0 6px;padding:0 3px;border:0;border-radius:4px;background:transparent;color:#c5ef86;font-size:14px;vertical-align:baseline;opacity:.85}
.lyric-edit-button:hover{background:transparent;opacity:1;color:#e1f5c0}
.lyric-edit-button[hidden]{display:none}
.lyric-edit-button{padding:4px 8px;margin-left:4px;font-size:16px;line-height:1;cursor:pointer}
.lyric-edit-button{position:relative;z-index:3}

/* ---- 가사 편집 v2: 연필 아이콘·시간 편집·밀도 ---- */
.file strong{vertical-align:middle}
.lyric-edit-button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:-2px 0 0 6px;padding:4px 6px;line-height:0;font-size:0;opacity:.9}
.lyric-edit-button svg{display:block}
.lyric-editor{width:min(420px,94vw)}
.lyric-editor-title{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.lyric-editor-title small{display:inline;margin:0;font-size:11px;font-weight:400;color:#b2b9ab;overflow:hidden;text-overflow:ellipsis;min-width:0}
.lyric-editor-row{grid-template-columns:auto 1fr;gap:8px;align-items:center;padding:2px 4px}
.lyric-editor-times{display:flex;align-items:center;gap:2px;color:#808779;font-size:11px}
.lyric-editor-times i{font-style:normal;font-size:10px;opacity:.7}
.lyric-editor-time{box-sizing:border-box;width:62px;margin:0;padding:3px 4px;border:0;border-radius:5px;background:transparent;color:#b2b9ab;font:inherit;font-size:11px;line-height:1.5;text-align:center;font-variant-numeric:tabular-nums}
.lyric-editor-time:hover{background:rgba(255,255,255,.05)}
.lyric-editor-time:focus{outline:none;background:rgba(197,239,134,.14);color:#fff}
.lyric-editor-row textarea{padding:3px 6px;line-height:1.5}
.lyric-editor-list{padding:2px 0}
.lyric-edit-button{position:absolute;z-index:3;margin:0;padding:4px;width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.lyric-edit-button[hidden]{display:none}

/* 가사 편집 v3: 파일명 링크, 글자·시간 높이 맞춤 */
.lyric-editor-file{display:inline-flex;align-items:baseline;gap:3px;max-width:100%;margin:0;padding:0;border:0;background:transparent;color:#b2b9ab;font:inherit;font-size:11px;font-weight:400;cursor:pointer;overflow:hidden;min-width:0}
.lyric-editor-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-decoration-color:rgba(178,185,171,.4);text-underline-offset:3px}
.lyric-editor-file b{font-size:12px;color:#c5ef86}
.lyric-editor-file:hover{color:#fff}
.lyric-editor-file:hover b{color:#e1f5c0}
.lyric-editor-row textarea{padding:1px 6px 5px}
.lyric-editor-time{padding:1px 4px 5px}

/* 시간·가사 칸 동일 규격: 같은 글자 크기·줄 높이·여백 → 모든 줄에서 높이가 일치 */
.lyric-editor-row{align-items:start;padding:1px 4px}
.lyric-editor-times{align-items:flex-start;height:26px}
.lyric-editor-times i{line-height:26px;font-size:10px}
.lyric-editor-time{width:68px;height:26px;margin:0;padding:3px 4px;font-size:13px;line-height:20px;font-weight:400;text-align:center;font-variant-numeric:tabular-nums}
.lyric-editor-row textarea{display:block;margin:0;min-height:26px;padding:3px 6px;font-size:13px;line-height:20px;font-weight:400;overflow:hidden}
.lyric-editor-row textarea{font-weight:600}
.lyric-editor-title{margin-bottom:14px}.lyric-editor-list{padding-top:4px}
.lyric-editor .app-dialog-actions{align-items:center}
.lyric-editor .lyric-editor-play{margin-right:auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:30px;padding:0;color:#c5ef86}
.lyric-editor .lyric-editor-play:disabled{opacity:.4}
.lyric-editor .app-dialog-actions{flex-wrap:nowrap;gap:6px}
.lyric-editor .app-dialog-actions button{white-space:nowrap;flex:none}
.lyric-editor .app-dialog-actions button:not(.lyric-editor-play){padding:7px 9px}

/* 파일명 툴팁 (배경 슬라이드 목록) */
#nameTip{position:fixed;z-index:1000;pointer-events:none;padding:9px 12px;border:1px solid #c5ef86;border-radius:8px;background:#171914;box-shadow:0 8px 24px rgba(0,0,0,.45);color:#f1f3ef;font-size:12px;line-height:1.45;word-break:break-all}
#nameTip[hidden]{display:none}
#nameTip strong{display:block;font-weight:600}
#nameTip span{display:block;margin-top:3px;color:#b2b9ab;font-size:11px}
.lyric-editor-row{border-radius:7px}
.lyric-editor-row.now{background:rgba(197,239,134,.17);box-shadow:inset 3px 0 0 #c5ef86}
/* 헤드카피 한 줄 + 상단 여백 축소 */
@media(min-width:901px){.heading h1 br{display:none}.heading h1{margin:8px 0 10px;white-space:nowrap}.heading{margin-bottom:12px!important}main{padding-top:20px!important}.heading .eyebrow{margin:0}}
.lyric-editor .lyric-editor-play{margin-right:0}
.lyric-editor-speed{display:inline-flex;gap:2px;margin:0 auto 0 4px}
.lyric-editor .app-dialog-actions .lyric-editor-speed button{padding:5px 7px;font-size:11px;min-width:34px;border-color:transparent;background:transparent;color:#b1b6ab;border-radius:6px}
.lyric-editor .app-dialog-actions .lyric-editor-speed button:hover{color:#fff;border-color:#c5ef86}
.lyric-editor .app-dialog-actions .lyric-editor-speed button[aria-pressed=true]{background:rgba(197,239,134,.2);border-color:#c5ef86;color:#c5ef86;font-weight:700}

.lyric-editor-row{position:relative}
.lyric-editor-row.gone{display:none!important}
.lyric-editor-row textarea{padding-right:30px!important}
.lyric-editor-del{position:absolute;right:6px;top:3px;display:none;width:20px;height:20px;padding:0;align-items:center;justify-content:center;border:1px solid #c5ef86;border-radius:50%;background:transparent;color:#c5ef86;font-size:15px;line-height:1;cursor:pointer;z-index:2}
.lyric-editor-row.now .lyric-editor-del{display:inline-flex}
.lyric-editor-del:hover{background:rgba(197,239,134,.25);color:#fff}
.lyric-editor-close{position:absolute;top:9px;right:10px;width:26px;height:26px;padding:0!important;border:0!important;background:transparent!important;color:#b1b6ab;font-size:20px;line-height:1;border-radius:6px;cursor:pointer}
.lyric-editor-close:hover{color:#fff;background:rgba(197,239,134,.22)!important}
.lyric-editor-title{padding-right:34px}
.lyric-editor .app-dialog-actions .lyric-editor-hist{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:#c5ef86}
.lyric-editor .app-dialog-actions .lyric-editor-hist:disabled{opacity:.3;cursor:default}
.lyric-editor .app-dialog-actions{gap:4px}
.lyric-editor .app-dialog-actions .lyric-editor-speed button{padding:5px 4px;min-width:28px}
.lyric-editor-speed{margin:0 auto 0 2px;gap:1px}
.lyric-editor .app-dialog-actions .lyric-editor-hist{width:28px}
.lyric-editor .app-dialog-actions button:not(.lyric-editor-play):not(.lyric-editor-hist):not(.lyric-editor-close):not([aria-pressed]){padding:7px 8px}
.lyric-editor-speed{margin:0 auto!important}
.lyric-editor .app-dialog-actions .lyric-editor-hist[data-act=redo]{margin-right:auto}
.lyric-editor .app-dialog-actions .lyric-editor-hist[data-act=undo]{margin-left:0}
.lyric-editor-row.near .lyric-editor-del{display:inline-flex}
.lyric-editor-del{border:0!important;border-radius:5px!important;background:transparent!important;font-size:18px!important}
.lyric-editor-del:hover{background:rgba(255,255,255,.12)!important}
.align-buttons .align-position{margin-left:6px}

.open-save-folder{display:block;width:fit-content;margin:7px 0 0;text-align:left;font-size:11px;line-height:1.4;color:#a2a89b;text-decoration:none;cursor:pointer}
.open-save-folder:hover{color:#c5ef86;text-decoration:underline}
.export-panel .export-location{margin-top:4px}

.export-panel .export-note{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:9px 0}
.export-panel .export-note .open-save-folder{display:inline-block;margin:0;flex:none;white-space:nowrap}
.export-panel .export-note .export-location{margin:0 0 0 auto;text-align:right}

.export-panel .export-note .open-save-folder{margin-left:calc((100% - 10px)/6)}

/* 히스토리 창: 역상 배색 (흰 배경 · 와인 텍스트 · 진분홍 강조) */
#historyDialog{background:#fff;color:#3b5220;border:1px solid #dce3d5;box-shadow:0 18px 60px rgba(59,81,25,.28)}
#historyDialog::backdrop{background:#0009}
#historyDialog h2,#historyDialog strong{color:#3b5220}
#historyDialog .history-note,#historyDialog .history-entry small,#historyDialog .history-empty,#historyDialog .history-item small{color:#788766}
#historyDialog button{background:#fff;color:#3b5220;border:1px solid #ced7c4}
#historyDialog button:hover:not(:disabled){border-color:#79aa40;color:#79aa40;background:#fbfef6}
#historyDialog .history-item{border:1px solid #e1e7da;background:#fff}
#historyDialog .history-item.archived{border-color:#daecbf;background:#f9fdf2}
#historyDialog .history-entry,#historyDialog .history-entry:hover{background:transparent;border:0}
#historyDialog .history-entry:hover{color:#79aa40}
#historyDialog .archive-toggle[aria-pressed=true]{color:#79aa40;border-color:#79aa40;background:#f3fce6}
#historyDialog .history-delete{color:#79aa40}
#historyDialog .history-delete:disabled{opacity:.3}
#historyDialog #deleteUnarchived:disabled{opacity:.4}

#historyDialog .history-item:not(.archived) .history-entry strong{font-weight:400}
#historyDialog .history-item.archived .history-entry strong{font-weight:700}

.app-dialog:not(.lyric-editor){width:max-content;min-width:min(420px,90vw);max-width:min(780px,92vw)}
.app-dialog:not(.lyric-editor) p{text-wrap:pretty;word-break:keep-all}

.header-right{display:flex;align-items:flex-end;flex-direction:column;gap:8px}
.language-switch{display:flex;align-items:center;gap:8px;color:#697064}
.language-switch button{padding:4px 6px;border:0;background:transparent;color:#949c8d;font-size:12px;font-weight:700;cursor:pointer}
.language-switch button[aria-pressed=true]{color:#c5ef86}
.language-switch button:hover{color:#d8ff9d}
.language-switch button:focus-visible{outline:2px solid #c5ef86;outline-offset:2px}
@media(max-width:600px){.header-right{flex-shrink:0}}
.header-tools{display:flex;align-items:center;gap:8px}
.tool-divider{color:#596055;font-size:12px}
.support{position:relative}
.support>button{padding:4px 6px;border:0;background:transparent;color:#aab6a1;font-size:12px;font-weight:700}
.support>button:hover,.support>button[aria-expanded=true]{color:#c5ef86}
.support-popover{position:absolute;z-index:30;top:calc(100% + 10px);right:0;width:290px;padding:14px;border:1px solid #46513f;border-radius:14px;background:#171b16;box-shadow:0 18px 50px rgba(0,0,0,.55);opacity:0;visibility:hidden;transform:translateY(-5px);transition:.18s ease;pointer-events:none;text-align:center}
.support:hover .support-popover,.support:focus-within .support-popover,.support.open .support-popover{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.support-panel strong{display:block;color:#eef1e9;font-size:14px}
.support-panel>span{display:block;margin:5px 0 11px;color:#929d8d;font-size:11px}
.support-paypal{display:none}
html[lang=en] .support-kakao{display:none}
html[lang=en] .support-paypal{display:block}
.support-qr-crop{aspect-ratio:1114/1180;overflow:hidden;border-radius:9px;background:#fff}
.support-qr-crop img,.paypal-qr{display:block;width:100%;height:auto;border-radius:9px;background:#f3f5f8}
.support-popover .support-line{margin:11px 0 3px;color:#aab3a6;font-size:11px;line-height:1.45}
.support-popover .support-free{margin:6px 0 0;color:#dfe5dc;font-size:13px;font-weight:700;line-height:1.45}
.support-popover .support-free em{color:#c5ef86;font-style:normal;font-weight:900}
.paypal-link{display:block;margin:10px 0 6px;padding:10px 12px;border-radius:8px;background:#c5ef86;color:#172013;font-size:12px;font-weight:900;text-decoration:none}
.paypal-link:hover{filter:brightness(1.08)}
.support>button:focus-visible{outline:2px solid #c5ef86;outline-offset:2px}
@media(max-width:900px){.support>button{font-size:0}.support>button::first-letter{font-size:15px}.support-popover{right:-8px;width:260px}}
.header-meta{display:flex;align-items:center;gap:8px;color:#596055;font-size:12px}
.header-meta button{padding:2px 3px;border:0;background:transparent;color:#aab6a1;font-size:12px;font-weight:700}
.header-meta button:hover{color:#c5ef86}
#guestbookDialog{width:min(680px,92vw);max-height:82vh;padding:24px;border:1px solid #414a3a;border-radius:15px;background:#171b16;color:#eef1e9;box-shadow:0 24px 80px #000b}
#guestbookDialog::backdrop{background:#000a}
.guestbook-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid #343b31}
.guestbook-heading small{display:block;margin-bottom:7px;color:#c5ef86;font-size:9px;letter-spacing:2px}
.guestbook-heading h2{margin:0;font-size:18px}
.guestbook-heading button{padding:6px 9px;border:0;background:transparent;color:#929d8d;font-size:11px}
.guestbook-note{display:inline-block;margin:15px 12px 15px 0;color:#aab3a6;font-size:12px}
.guestbook-email{display:inline-block;color:#c5ef86;font-size:12px;text-decoration:none}
.guestbook-email:hover{text-decoration:underline}
#disqus_thread{min-height:180px;padding-top:8px}
@media(max-width:900px){.header-meta>span[aria-hidden=true],#guestbookButton{display:none}}
/* YojuCC guestbook palette: warm paper, plum, and muted olive */
#guestbookDialog{background:#fafaf6!important;color:#292a25!important;border-color:#e5e9c9!important;box-shadow:0 24px 80px #27251e44!important}
#guestbookDialog::backdrop{background:#22251dcc!important}
.guestbook-heading{border-bottom-color:#e1e5c6!important}
.guestbook-heading small{color:#8058cf!important;letter-spacing:.2px!important;font-size:12px!important}
.guestbook-secret-link{color:#8058cf!important;text-decoration:none;margin-right:7px;font-size:15px;letter-spacing:0!important}
.guestbook-secret-link:hover{color:#5f3aa8!important}
.guestbook-heading h2{color:#2b2c27!important}
.guestbook-heading button{color:#71834f!important}
.guestbook-note{color:#62645c!important}
.guestbook-email{color:#71834f!important;font-weight:600}
/* ---- Loop & Lyrics (public) additions ---- */
.brand .brand-meta small a.by-line{color:inherit;text-decoration:none}
.brand .brand-meta small a.by-line:hover{color:#c5ef86;text-decoration:underline}
.server-status-group .header-right{align-items:flex-end}
.server-status-group{display:flex;align-items:center;gap:22px}
.server-status-group .save-line{position:relative;text-align:right;white-space:nowrap}
.server-status-group .save-line #saveStatus,.server-status-group .save-line #restoreNotice{position:static;top:auto;display:block}
.server-status-group .save-line #restoreNotice{position:absolute;right:0;top:0}
footer>.browser-note{letter-spacing:0}
@media(max-width:1100px){.server-status-group .save-line{display:none}}

.footer-links>button{background:none;border:0;border-radius:0;padding:0;font:inherit;font-size:11px;color:#b2b9ab;cursor:pointer}.footer-links>button:hover{color:#c5ef86;text-decoration:underline}
.admin-slot{display:inline-flex;align-items:center}.admin-slot:empty{display:none}.admin-slot .arapshow-admin-light{position:static;width:22px;height:22px;margin-left:4px}

.footer-links .arapshow-bros{letter-spacing:0}.footer-links .arapshow-bros>button{font-family:inherit;font-size:11px;font-weight:400;letter-spacing:0;color:#b2b9ab}.footer-links .arapshow-bros>button:hover,.footer-links .arapshow-bros>button[aria-expanded=true]{color:#c5ef86;opacity:1;text-decoration:underline}.footer-links .arapshow-bros .bros-caret{margin-left:.3em;font-size:.9em}.footer-links .arapshow-bros ul{left:0;right:auto;font-family:inherit;font-size:12px;letter-spacing:0;background:#171b16;border-color:#46513f;border-radius:10px;color:#c9d0c3;box-shadow:0 18px 50px rgba(0,0,0,.55)}.footer-links .arapshow-bros a:hover,.footer-links .arapshow-bros a:focus-visible{background:#232a20;color:#c5ef86}
/* 허브 공통 창(문의·공유·응원)을 그린 배색으로: 기능·내용은 공통 그대로, 색만 */
:root{--share-bg:#171b16;--share-ink:#eef1e9;--share-muted:#9ba498;--share-faint:#7d8778;--share-line:#46513f;--share-rule:#2a3127}
html .aq,html .aq-dialog{--aq-ink:#eef1e9;--aq-muted:#9ba498;--aq-line:#46513f;--aq-bg:#171b16}html .aq-dialog{border:1px solid #46513f;box-shadow:0 24px 60px rgba(0,0,0,.6)}
html .aq-dialog::backdrop,html dialog.share-pop::backdrop,html dialog.sg-layer::backdrop{background:rgba(5,7,5,.72)}
html dialog.share-pop{border:1px solid #46513f}
html .share-pop-item:hover .share-pop-mark,html .share-pop-item:focus-visible .share-pop-mark{border-color:#c5ef86;color:#c5ef86}
html dialog.sg-layer{background:#171b16;color:#eef1e9;border:1px solid #46513f}
html .sg-layer .sg-head{border-bottom-color:#2f382b}
html .sg-layer .sg-head .eyebrow{color:#c5ef86}
html .sg-layer .sg-head h2{color:#eef1e9}
html .sg-layer .sg-head .close{color:#c5ef86}
html .sg-layer .sg-lead,html .sg-layer .sg-foot{color:#aab3a6}
/* PNG 회전 · 바깥 그림자 */
.image-fx{display:grid;gap:10px;margin:4px 0 16px}.image-fx[hidden]{display:none}
.fx-group{border:1px solid #3b4035;border-radius:8px;padding:10px 12px;background:#141512}
#layerEditor .fx-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;cursor:pointer;color:#f1f3ef;font-size:12px}
.fx-title small{color:#9ba294;font-size:10px;margin-left:2px}
.fx-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.fx-toggle i{flex:0 0 34px;height:18px;border-radius:9px;background:#26291f;border:1px solid #4c5442;position:relative;transition:background .15s}
.fx-toggle i::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#b2b9ab;transition:transform .15s,background .15s}
.fx-toggle input:checked+i{background:#c5ef86;border-color:#c5ef86}.fx-toggle input:checked+i::after{transform:translateX(16px);background:#141512}
.fx-toggle input:focus-visible+i{outline:2px solid #c5ef86;outline-offset:2px}
.fx-options{border-top:1px dashed #3b4035;margin-top:10px;padding-top:10px}.fx-options[hidden]{display:none}
#layerEditor .fx-slider{margin:0 0 10px}.fx-slider>span{display:flex;align-items:baseline;gap:6px}.fx-slider input{margin-top:6px;width:100%}
.fx-radios{border:0;padding:0;margin:0 0 6px;display:flex;gap:12px}#layerEditor .fx-radios label{display:inline-flex;align-items:center;gap:4px;margin:0;font-size:11px}.fx-radios input{accent-color:#c5ef86;margin:0}
.fx-note{margin:6px 0 0;font-size:10px;color:#9ba294;line-height:1.4}
.fx-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:12px;align-items:end}#layerEditor .fx-row .fx-slider{margin:0}
#layerEditor .fx-color{margin:0;display:grid;gap:6px;justify-items:center}
.shadow-arrow{display:inline-block;font-style:normal;color:#c5ef86;transition:transform .1s}
#blendField.locked{opacity:.45}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* 03 panel: tabs on top, 에셋 tab */
.styles.tabbed-panel{flex-direction:column}
.styles.tabbed-panel .panel-tabs{flex-direction:row;width:auto;border-right:0;border-bottom:1px solid #3b4035;border-radius:11px 11px 0 0;overflow:hidden}
.styles.tabbed-panel .panel-tabs [role=tab]{flex:none;writing-mode:horizontal-tb;transform:none;min-height:0;padding:10px 22px;border-bottom:0;border-right:1px solid #262923;font-size:12px;letter-spacing:1px;margin:0}
.styles.tabbed-panel .panel-tabs [role=tab][aria-selected=true]{margin:0 0 -1px;box-shadow:inset 0 -2px 0 #c5ef86}
#panelAsset .lyric-design-heading .hint{color:#8f9886;font-size:11px}
#panelAsset #layerEditor{border-top:0;margin:0;padding:0;display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(0,1fr) minmax(0,1fr);gap:0 22px;align-items:start}
#panelAsset #layerEditor[hidden]{display:none}
#panelAsset .image-fx:not([hidden]){display:contents}
#panelAsset .fx-group{margin:0}
#panelAsset #assetEmpty[hidden]{display:none}
#panelAsset .layer-style-row:has(#layerColorField[hidden]){grid-template-columns:minmax(0,1fr)}
#layerEditor .asset-center{display:inline-flex;align-items:center;gap:6px;margin:0 0 16px;padding:7px 12px;border:1px solid #3b4035;border-radius:8px;background:#141512;color:#eef2ea;font-size:12px;cursor:pointer}
#layerEditor .asset-center:hover{border-color:#c5ef86;color:#c5ef86}
#layerEditor .asset-center svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
@media (max-width:1100px){#panelAsset #layerEditor{grid-template-columns:minmax(200px,1fr) minmax(0,1fr)}#panelAsset .fx-group+.fx-group{grid-column:2}}

#panelAsset .asset-top{display:flex;align-items:center;gap:18px;margin:0 0 18px;flex-wrap:wrap}
#panelAsset .asset-align{display:flex;gap:6px}
#layerEditor .asset-center{margin:0;padding:6px 8px;gap:0}
#panelAsset .asset-top #blendField{margin:0;display:flex;align-items:center;gap:10px}
#panelAsset .asset-top #blendField[hidden]{display:none}
#panelAsset .asset-top #blendField legend{float:left;margin:0;padding:0}
#panelAsset #layerEditor{align-items:stretch}
#panelAsset .fx-group{height:100%;box-sizing:border-box}
#panelAsset .fx-grid:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;align-items:end}
#panelAsset .fx-grid .fx-slider{margin:0 0 6px}
.fx-dir{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.fx-dial{position:relative;flex:none;width:34px;height:34px;border-radius:50%;border:1px solid currentColor;color:#c5ef86;background:rgba(255,255,255,.04);cursor:grab;touch-action:none}
.fx-dial:active{cursor:grabbing}
.fx-dial:focus-visible{outline:2px solid #c5ef86;outline-offset:2px}
.fx-dial i{position:absolute;left:50%;top:50%;width:15px;height:2px;margin-top:-1px;background:currentColor;border-radius:2px;transform-origin:0 50%;transition:none}
.fx-dial i::after{content:"";position:absolute;right:-3px;top:-2px;width:6px;height:6px;border-radius:50%;background:currentColor}
.fx-dir-text{flex:1;font-size:12px;white-space:nowrap}
#layerEditor .fx-dir .fx-color{display:flex;align-items:center;gap:6px;margin:0}
#layerEditor .fx-dir .fx-color input{width:34px;height:24px}
#panelAsset .asset-top{flex-wrap:nowrap;gap:14px}
#panelAsset .asset-top #blendField{gap:8px;white-space:nowrap}
#layerEditor .asset-top #blendField label{margin:0 4px 0 0}
.return-bar{display:inline-flex;align-items:center;gap:4px;margin-left:14px}
.return-bar[hidden],.return-work[hidden]{display:none}
.return-work{padding:5px 12px;border:1px solid #c5ef86;border-radius:999px;background:#141512;color:#c5ef86;font-size:12px;letter-spacing:0;cursor:pointer}
.return-work:hover{background:#c5ef86;color:#111}
.return-drop{width:24px;height:24px;padding:0;border:1px solid #3b4035;border-radius:50%;background:transparent;color:inherit;font-size:14px;line-height:1;cursor:pointer}
.return-row{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 2px}
.return-row:has(> :not([hidden])){margin-bottom:6px}
.return-work.rescue small{opacity:.75;font-size:11px}
#historyDialog .return-note{margin:0;font-size:11px}

#textAlignField[hidden]{display:none}
#panelAsset #textAlignField:not([hidden])+.asset-align{padding-left:14px;border-left:1px solid #3b4035}
#layerEditor .asset-center[aria-pressed=true]{border-color:#c5ef86;color:#c5ef86}
#panelAsset #layerEditor.is-text .asset-basic{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);grid-template-areas:"top top top" "text font color" "text size opacity";gap:14px 24px;align-items:end}
#layerEditor.is-text .asset-top{grid-area:top;margin:0}
#layerEditor.is-text #textField{grid-area:text;align-self:stretch;display:flex;flex-direction:column;gap:6px;margin:0}
#layerEditor.is-text #textField textarea{flex:1;min-height:58px;margin:0;resize:none}
#layerEditor.is-text #layerFontField{grid-area:font;margin:0}
#layerEditor.is-text .layer-style-row{display:contents}
#layerEditor.is-text .layer-style-row>label:first-child{grid-area:size;margin:0}
#layerEditor.is-text #layerColorField{grid-area:color;margin:0;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px}
#layerEditor.is-text #layerOpacityField{grid-area:opacity;margin:0}
/* 움직임 고르기(없음·회전·시계추·메트로놈·둥실구름·그루브) */
.motion-fx .fx-title{display:block;color:#f1f3ef;font-size:12px;margin-bottom:8px}
.motion-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.motion-picks label{margin:0;cursor:pointer}.motion-picks label[hidden]{display:none}
.motion-picks input{position:absolute;opacity:0;width:1px;height:1px}
.motion-picks span{display:block;text-align:center;white-space:nowrap;padding:5px 4px;border:1px solid #4c5442;border-radius:999px;font-size:11px;color:#b2b9ab;background:#1a1c17;line-height:1.2}
.motion-picks label:hover span{border-color:#c5ef86;color:#f1f3ef}.motion-picks input:checked+span{background:#c5ef86;border-color:#c5ef86;color:#141512;font-weight:600}
.motion-picks input:focus-visible+span{outline:2px solid #c5ef86;outline-offset:2px}
.motion-options{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px}.motion-options[hidden]{display:none}.motion-options .fx-slider{margin:0}.motion-options .fx-note{grid-column:1/-1;margin:0}
#waveField .motion-fx{display:block;margin-top:14px;max-width:560px}
.motion-fx .fx-slider{font-size:11px;color:#b2b9ab}.motion-fx .fx-slider output{color:#c5ef86;font-size:11px}
#layerEditor .motion-picks label,#waveField .motion-picks label{margin:0;display:block;padding:0}
.motion-picks label[hidden]{display:none!important}

/* 렌더 잠금 사전 예고(베타) · 상단 유튜브 단추 (2026-10-12) */
.yt-link{display:inline-flex;align-items:center;gap:6px;padding:4px 6px;color:#aab6a1;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
.yt-link svg{width:16px;height:11px}.yt-link rect{fill:#ff3b30}.yt-link path{fill:#fff}
.yt-link:hover{color:#c5ef86}
.export-panel .beta-notice{display:block;margin-left:-360px !important;white-space:nowrap;margin:2px 0 0;color:#e3e8dc;font-size:13.5px;font-weight:600;line-height:1.5;text-align:right}
.warn-lamp{display:inline-block;margin-right:9px;vertical-align:-1px;width:11px;height:11px;border-radius:50%;background:#ff3b30;box-shadow:0 0 0 3px #ff3b3033,0 0 12px 2px #ff3b30aa;animation:warn-blink 1.1s steps(1,end) infinite}
@keyframes warn-blink{0%{opacity:1}50%{opacity:.18;box-shadow:none}}
.beta-notice a{color:#fff;font-weight:800;text-decoration:underline;text-decoration-color:#ff3b30;text-decoration-thickness:2px;text-underline-offset:4px}
.beta-notice a:hover{color:#ff9b8f}

html:not([lang=en]) .export-panel .beta-notice{font-size:15.5px}
html:not([lang=en]) .warn-lamp{width:12px;height:12px;vertical-align:0}
@media(prefers-reduced-motion:reduce){.warn-lamp{animation:none}}
