@font-face{font-family:FrameStrict;src:url(/fonts/strict)}
@font-face{font-family:FrameRound;src:url(/fonts/round)}
@font-face{font-family:FrameWide;src:url(/fonts/wide)}
@font-face{font-family:FramePlain;src:url(/fonts/plain)}
.content-hook{pointer-events:none;font-weight:800;text-shadow:0 2px 8px #000}.content-hook[hidden]{display:none}.content-editor{display:grid;gap:8px}.content-editor textarea{width:100%;min-height:62px;resize:vertical;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:8px;color:var(--white)}.content-editor section{border-top:1px solid var(--line);padding-top:9px}.content-editor .suggestions{display:grid;gap:5px}.content-editor .suggestions button{text-align:left}
:root{color-scheme:dark;--bg:#111219;--panel:#1a1b25;--card:#222431;--line:#313341;--muted:#a5a6b8;--accent:#c2adff;--white:#f6f3ff;font-family:"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white)}button,select,textarea,input{font:inherit}button,select,a{touch-action:manipulation}button,select{color:inherit;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:9px 12px;cursor:pointer}button:hover{border-color:var(--accent)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.bar{height:72px;display:flex;align-items:center;gap:18px;padding:0 max(18px,calc((100vw - 1180px)/2));border-bottom:1px solid var(--line);background:#151620}.brand{display:flex;align-items:center;gap:12px;margin-right:auto;white-space:nowrap}.brand b,.brand small{display:block}.brand small{font-size:11px;color:var(--muted);margin-top:3px}.mark{display:grid;place-items:center;background:#302843;color:#dccfff;border-radius:11px;width:39px;height:39px;font-size:22px}.history{display:flex;gap:6px}.history button{font-size:23px;padding:0;width:39px;height:39px}.primary{background:var(--accent);color:#1b1431;border-color:transparent;font-weight:700;height:40px}.primary span{margin-left:5px}
main{max-width:1216px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:18px;margin:auto;padding:18px}.workspace,.inspector{min-width:0}.viewer{border:1px solid var(--line);border-radius:17px;background:radial-gradient(ellipse at 50% 35%,#272638,#191a24 67%);display:flex;flex-direction:column;align-items:center;overflow:hidden}.monitor-label{display:flex;align-items:center;gap:8px;width:100%;padding:13px 16px;color:var(--muted);font-size:10px;letter-spacing:.12em}.monitor-label span{width:7px;height:7px;border-radius:50%;background:var(--accent)}.monitor-label small{margin-left:auto}.stage{position:relative;container-type:inline-size;width:min(100% - 22px, min(325px, 60dvh * 9 / 16));aspect-ratio:9/16;background:#090a10;border-radius:11px;overflow:hidden;box-shadow:0 10px 36px #08081399;touch-action:pan-y}.stage.dragging{touch-action:none}.stage video{width:100%;height:100%;display:block;object-fit:cover;background:#050508}.safe{position:absolute;inset:12.5% 19% 21% 9%;border:1px dashed #efe0ff9c;pointer-events:none}.caption{position:absolute;text-align:center;line-height:1.13;white-space:normal;overflow-wrap:anywhere;max-width:74%;width:max-content;transform:translate(-50%,-50%);font-weight:750;user-select:none;cursor:grab;touch-action:none;text-shadow:var(--shadow,none);-webkit-text-stroke:var(--stroke,0);background:var(--caption-bg,transparent);border-radius:.24em;padding:.1em .28em}.transport{height:55px;display:flex;align-items:center;gap:12px}.transport button{width:34px;height:33px;padding:0}.transport output{font-family:ui-monospace,monospace;font-size:12px;color:#ddd9e9}.transport .play{background:#382e4e;border-color:#574976;color:#e8deff}
.timeline{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:11px 13px}.timeline-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:12px}.timeline-head small,.panel-head small{color:var(--muted)}.film{position:relative;height:55px;background:repeating-linear-gradient(90deg,#272738 0 13%,#302c43 13% 14%);border-radius:7px;overflow:hidden}.film #thumbs{display:flex;height:100%}.film img{height:100%;width:calc(100% / 7);object-fit:cover}.film input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:.02;cursor:ew-resize}.film #cursor{position:absolute;top:0;height:100%;width:3px;background:#e6d9ff;box-shadow:0 0 10px #c2adff}
.inspector{background:var(--panel);border:1px solid var(--line);border-radius:17px;display:flex;flex-direction:column;align-self:start}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:15px;gap:9px}.panel-head b,.panel-head small{display:block}.panel-head small{font-size:10px;letter-spacing:.13em;margin-bottom:4px}.panel-head select{max-width:50%;font-size:12px}.tabs{display:flex;justify-content:space-around;gap:4px;border-block:1px solid var(--line);padding:6px 9px}.tabs button{flex:1;border:1px solid transparent;background:none;font-size:11px;color:var(--muted);padding:7px 3px}.tabs button span{display:block;font-size:18px;height:23px}.tabs button.active{border-color:#54466e;background:#302641;color:#ebdfff}#panel{padding:14px;min-height:220px}#panel h2{font-size:16px;margin:0 0 10px}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.choice{font-size:11px;min-height:64px;background:linear-gradient(150deg,#302b41,#222430);padding:7px 4px}.choice .sample{display:block;font-size:19px;font-weight:800;color:var(--sample,#eee7ff);margin-bottom:4px}.choice.active{border-color:var(--accent);background:#3b3051}.field{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px;font-size:13px}.field select,.field input[type=range]{width:57%;accent-color:var(--accent)}.field input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px}.hint{font-size:11px;color:var(--muted);margin:8px 0}.phrase-list{max-height:210px;overflow:auto;display:grid;gap:6px}.phrase{display:grid;grid-template-columns:55px 1fr;gap:6px}.phrase button{padding:4px;font-size:11px}.phrase textarea{resize:vertical;min-height:48px;padding:8px;background:var(--card);color:var(--white);border:1px solid var(--line);border-radius:8px;font-size:12px}.actions{border-top:1px solid var(--line);padding:12px 14px}.actions p{font-size:12px;color:var(--muted);margin:0 0 8px;min-height:17px}.action-buttons,#result:not([hidden]){display:flex;gap:7px}.action-buttons>*{flex:1}#result{margin-top:9px;font-size:12px;align-items:center}#download{color:var(--accent)}
.audio-tracks{display:grid;gap:7px;margin-top:12px;max-height:290px;overflow:auto}.audio-track{padding:9px;background:var(--card);border:1px solid var(--line);border-radius:10px}.audio-track summary{cursor:pointer;font-size:13px;overflow-wrap:anywhere}.audio-track[open] summary{margin-bottom:10px}.audio-track button{font-size:11px;margin-right:5px}.field input[type=file],.field input[type=number]{width:57%;min-width:0;color:var(--muted)}.field input[type=number]{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:6px;color:var(--white)}
#audioLanes:not([hidden]){display:grid;gap:4px;margin-top:7px;max-height:110px;overflow:auto}.audio-lane{position:relative;height:23px;border-radius:5px;background:#292735;overflow:hidden}.audio-lane button{position:absolute;top:0;height:100%;min-width:15px;padding:0 6px;font-size:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;color:#e9dcff;background:#483964;border-color:#6d548a;border-radius:5px;cursor:grab;touch-action:none}.audio-lane button.music{background:#244b4d;border-color:#42797b;color:#cbf7f3}
@media(max-width:720px){.bar{padding:0 10px;height:57px;gap:8px}.brand{gap:7px}.brand b{font-size:13px}.brand small{font-size:9px}.mark{width:31px;height:31px;font-size:17px}.history{gap:4px}.history button{width:31px;height:33px;font-size:20px}.primary{height:34px;padding:6px 8px;font-size:12px}main{display:block;padding:8px;max-width:540px}.monitor-label{padding:7px 10px}.viewer{border-radius:12px}.stage{width:min(100% - 16px, 220px, 47dvh * 9 / 16)}.transport{height:40px}.transport button{height:28px}.timeline{margin-top:7px;padding:7px 9px}.timeline-head{margin-bottom:5px}.film{height:35px}.inspector{margin-top:7px;border-radius:12px}.panel-head{padding:8px 10px}.panel-head b{font-size:13px}.panel-head select{padding:5px}.tabs{padding:3px 5px}#panel{min-height:0;padding:9px}.choice{min-height:47px}.choice .sample{margin:0;font-size:16px}.actions{padding:9px 9px max(9px,env(safe-area-inset-bottom))}.phrase-list{max-height:150px}}
@media(max-width:720px){.transport button,.tabs button,.actions button,.actions a,.bar button{min-height:44px}.transport{height:49px}.transport button{min-width:44px}.field select,.field input[type=number]{min-height:44px}.field input[type=range]{min-height:32px}.tabs button{line-height:1.1}.tabs button span{height:19px}}
