/* =====================================================================
   AIShot タイムライン（2026-11-19）  デザイン担当の指示書どおり
   読み込み順: style.css → app.css → aishot.css → social.css → この1枚
   A＝完成画面の帯（.tlwrap .tlmini）と「タイムラインで編集」（.tlopen）
   B＝タイムライン編集 #/tl/<作品>（.view.tl）
   色: 白い面は今のトークンだけ。暗い面（プレビューの地・帯）は、今の .rv の帯と同じ値をここ1か所に置く
   ===================================================================== */
.phone:has(.tl),.tl,.tlwrap,.tlmini{
  --tl-stage:#000000;                 /* プレビューの地。.rvstage と同じ */
  --tl-band:#111111;                  /* 帯の地。.rvband と同じ */
  --tl-clip:#2A2A2E;                  /* 箱の地。.rvc .rvt と同じ */
  --tl-fg:#FFFFFF;                    /* 帯の上の文字・再生位置の線・選んだ枠 */
  --tl-fg-2:rgba(255,255,255,.60);    /* 帯の上の弱い文字・段の印 */
  --tl-fg-3:rgba(255,255,255,.18);    /* 細い線・全体の線の地 */
  --tl-mark:var(--accent);            /* 直した印・つまんでいる最中のつまみ */
  --tl-pill:rgba(0,0,0,.62);          /* 映像の上の札の地 */
  --tl-float:rgba(22,20,18,.45);      /* 映像の上の丸ボタンの地 */
}
.tl{--h-ruler:18px;--h-cut:48px;--h-tel:40px;--h-ov:40px;--h-au:36px;--h-wave:18px;--gap:4px;--tile:27px;--h-ops:44px;--h-bot:172px;--pad:16px}
.tl.noov{--h-ov:12px}   /* 写真が1枚も無い間は、写真の段を細く畳む（真ん中の点線だけ）。その分プレビューが大きくなる */

/* ---------- 骨組み ---------- */
.phone:has(.tl) .tabbar{display:none}
.phone:has(.tl) #app{padding:0;overflow:hidden}
.phone:has(.tl) .dock{bottom:0;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
.phone:has(.tl.sel) .dock,.phone:has(.tl.kb) .dock{display:none}
.phone:has(.tl) .top .name{font-size:14px}
.tlur{display:flex;flex:none;margin-right:-10px}
.top .tlur .ib{margin-left:0}
.top .tlur .ib:disabled{opacity:.3}
.view.tl{height:100%;padding:0;gap:0;display:flex;flex-direction:column;overflow:hidden;animation:none;background:var(--bg)}
.tl.busy .tlband,.tl.busy .tlbot{opacity:.5;pointer-events:none}
.tl.busy .tlstage{pointer-events:none}

/* ---------- プレビュー ---------- */
.tlstage{flex:1 1 0;min-height:168px;background:var(--tl-stage);display:flex;justify-content:center;position:relative;overflow:hidden}
.tlpv{position:relative;height:100%;aspect-ratio:9/16;overflow:hidden;background:var(--tl-stage);touch-action:none;-webkit-user-select:none;user-select:none}
.tlpvz{position:absolute;inset:0;transform-origin:0 0;will-change:transform}
.tlpvz video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.tlstill{position:absolute;inset:0;display:none;background-repeat:no-repeat;background-color:var(--tl-stage)}
.tlstill.on{display:block}
.tllay{position:absolute;inset:0;pointer-events:none}
.tltp{position:absolute;left:0;right:0;transform:translateY(-50%);text-align:center;white-space:pre;line-height:1.25;pointer-events:none}
.tltx{display:inline-block;padding:3px;border-radius:4px;pointer-events:auto;outline:1px dashed transparent}
.tltp.sel .tltx{outline-color:rgba(255,255,255,.7)}
.tltp.bx .tltx span{display:inline-block;margin:.04em 0;padding:.1em .42em;border-radius:.22em;box-shadow:0 .1em .3em rgba(0,0,0,.25)}
.tltp.fix{color:var(--tl-fg);font-weight:800;font-family:var(--f)}
.tltp.fix .tltx{padding:.25em .55em;border-radius:999px;background:rgba(0,0,0,.47);pointer-events:none}
.tlop{position:absolute;pointer-events:auto}
.tlop img{display:block;width:100%;height:100%;box-sizing:border-box;object-fit:cover;box-shadow:0 2px 10px rgba(0,0,0,.35);pointer-events:none;-webkit-user-drag:none}
.tlop.sel{outline:2px solid var(--tl-fg);box-shadow:0 0 0 3px rgba(0,0,0,.35)}
.tlrs{position:absolute;right:-12px;bottom:-12px;width:24px;height:24px;border-radius:50%;background:var(--tl-fg);display:grid;place-items:center;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.tlrs::after{content:"";position:absolute;inset:-10px}
.tlrs svg{width:14px;height:14px;fill:var(--tl-band);transform:scaleX(-1)}
.tlgd{position:absolute;display:none;background:var(--tl-mark);pointer-events:none}
.tlgd.v{left:50%;top:0;bottom:0;width:1px}
.tlgd.h{top:50%;left:0;right:0;height:1px}
.tlgd.on{display:block}
.tlgrid{position:absolute;inset:0;display:none;pointer-events:none;box-shadow:inset 0 0 0 1px var(--tl-fg-3);
  background:linear-gradient(90deg,transparent calc(33.33% - .5px),var(--tl-fg-3) calc(33.33% - .5px),var(--tl-fg-3) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),var(--tl-fg-3) calc(66.66% - .5px),var(--tl-fg-3) calc(66.66% + .5px),transparent calc(66.66% + .5px)),
    linear-gradient(0deg,transparent calc(33.33% - .5px),var(--tl-fg-3) calc(33.33% - .5px),var(--tl-fg-3) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),var(--tl-fg-3) calc(66.66% - .5px),var(--tl-fg-3) calc(66.66% + .5px),transparent calc(66.66% + .5px))}
.tlgrid.on{display:block}
.tlnote{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);max-width:calc(100% - 16px);height:28px;padding:0 10px;border-radius:14px;background:var(--tl-pill);color:var(--tl-fg);font-size:12px;font-weight:700;line-height:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .16s;pointer-events:none;z-index:3}
.tlnote.on{opacity:1}

/* ---------- 帯 ---------- */
.tlband{flex:none;position:relative;background:var(--tl-band);color:var(--tl-fg);padding-bottom:8px;-webkit-user-select:none;user-select:none}
.tlall{position:relative;height:3px;background:var(--tl-fg-3)}
.tlall i{position:absolute;left:0;top:0;bottom:0;background:var(--tl-fg)}
.tlall u{position:absolute;top:0;bottom:0;width:3px;margin-left:-1px;background:var(--tl-mark)}
.tlops{display:flex;align-items:center;height:var(--h-ops);padding:0 6px}
.tlpp{flex:none;width:56px;height:var(--h-ops);display:grid;place-items:center}
.tlpp svg{width:24px;height:24px;fill:var(--tl-fg)}
.tlpp .pa,.tlpp.playing .pl{display:none}
.tlpp.playing .pa{display:block}
.tltime{font-size:13px;font-weight:700;color:var(--tl-fg-2);white-space:nowrap}
.tltime b{font-weight:700;color:var(--tl-fg)}
.tlsp{flex:1}
.tlob{flex:none;width:44px;height:var(--h-ops);display:grid;place-items:center}
.tlob svg{width:22px;height:22px;fill:var(--tl-fg)}
.tlob:disabled{opacity:.35}
/* 倍率の札（縮小ボタンのすぐ左）: 2本指の間と、ボタンを押した後しばらくだけ出す */
.tlzv{flex:none;height:24px;margin-right:6px;padding:0 7px;border-radius:12px;background:var(--tl-fg-3);color:var(--tl-fg);font-size:12px;font-weight:800;font-style:normal;line-height:24px;white-space:nowrap;opacity:0;transition:opacity .12s;pointer-events:none}
.tlzv.on{opacity:1}
/* 初めて開いた時に1回だけ出る札（段の真ん中） */
.tlnote.tltip{bottom:auto;top:calc(var(--h-ruler) + 10px);z-index:6}
.tltlw{position:relative}
.tltl{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x;cursor:grab}
.tltl::-webkit-scrollbar{display:none}
.tltli{position:relative;flex:none;margin:0 50%;height:calc(var(--h-ruler) + var(--h-cut) + var(--h-tel) + var(--h-ov) + var(--h-au) + var(--gap)*3)}
.tlruler{position:absolute;left:0;right:0;top:0;height:var(--h-ruler)}
.tlruler i{position:absolute;bottom:0;width:1px;height:4px;background:var(--tl-fg-3)}
.tlruler span{position:absolute;top:0;transform:translateX(-50%);font-size:10px;font-weight:600;line-height:12px;color:var(--tl-fg-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.tlrow{position:absolute;left:0;right:0;transition:top .2s,height .2s}
.tltli{transition:height .2s}
/* 段は上から 映像（カット）／テロップ／写真／音声（2026-11-19 たいが「映像とテロップと音声を別の素材として」） */
.tlrcut{top:var(--h-ruler);height:var(--h-cut)}
.tlrtel{top:calc(var(--h-ruler) + var(--h-cut) + var(--gap));height:var(--h-tel)}
.tlrov{top:calc(var(--h-ruler) + var(--h-cut) + var(--h-tel) + var(--gap)*2);height:var(--h-ov)}
.tlrvo{top:calc(var(--h-ruler) + var(--h-cut) + var(--h-tel) + var(--h-ov) + var(--gap)*3);height:var(--h-au)}
.tlrtel:empty::before,.tlrov:empty::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--tl-fg-3)}
.tlb{position:absolute;top:0;height:100%;cursor:pointer}
.tlb::before{content:"";position:absolute;left:0;right:0;top:-2px;bottom:-2px}             /* 当たりを上下のすき間まで広げる */
.tlbi{position:absolute;inset:0;border-radius:6px;overflow:hidden;background:var(--tl-clip)}
.tltel .tlbi span{display:block;padding:0 6px;font-size:11px;font-weight:600;line-height:var(--h-tel);color:rgba(255,255,255,.85);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlov .tlbi i{position:absolute;left:0;top:0;bottom:0;aspect-ratio:1/1;max-width:100%;background-size:cover;background-position:center}
.tlcut .tlbi{display:flex}
.tlcut .tlbi i{flex:none;width:var(--tile);height:100%;background-color:var(--tl-clip);background-repeat:no-repeat}
.tlcut .tlbi b{margin:auto;font-size:10px;font-weight:700;color:var(--tl-fg-2)}
.tlch{position:absolute;left:4px;top:4px;width:6px;height:6px;border-radius:50%;background:var(--tl-mark);box-shadow:0 0 0 1.5px var(--tl-band);z-index:2;pointer-events:none}
.tlb.sel{z-index:3}
.tlb.sel::after{content:"";position:absolute;inset:0;border-top:2px solid var(--tl-fg);border-bottom:2px solid var(--tl-fg);pointer-events:none;z-index:2}
.tlb.sel.tltel,.tlb.sel.tlov{touch-action:none;cursor:grab}
.tlb.lift{transform:translateY(-2px);filter:drop-shadow(0 4px 12px rgba(0,0,0,.5))}
/* つまみ: テロップ・写真は箱の外側の白い板。カットは境目の真上 */
.tlh{position:absolute;top:0;bottom:0;width:14px;background:var(--tl-fg);touch-action:none;cursor:ew-resize;z-index:4}
.tlh::before{content:"";position:absolute;left:calc(50% - 1px);top:calc(50% - 6px);width:2px;height:12px;border-radius:1px;background:var(--tl-band)}
.tlh::after{content:"";position:absolute;top:calc(50% - 22px);height:44px}
.tlh.l{left:-14px;border-radius:6px 0 0 6px}
.tlh.r{right:-14px;border-radius:0 6px 6px 0}
.tlh.l::after{left:-20px;right:calc(var(--hin,10px) * -1)}
.tlh.r::after{right:-20px;left:calc(var(--hin,10px) * -1)}
.tlcut .tlh{border-radius:4px}
.tlcut .tlh.l{left:-8px}
.tlcut .tlh.r{right:-8px}
.tlcut .tlh.l::after,.tlcut .tlh.r::after{left:-15px;right:-15px}
.tlh.on{background:var(--tl-mark);width:18px}
.tlh.l.on{margin-left:-4px}
.tlh.r.on{margin-right:-4px}
/* 印（◇） */
.tlkfl{position:absolute;bottom:8px;height:2px;background:rgba(255,255,255,.5);pointer-events:none;z-index:1}
.tlkf{position:absolute;bottom:4px;width:10px;height:10px;margin-left:-5px;transform:rotate(45deg);background:var(--tl-fg);box-shadow:0 0 0 1.5px var(--tl-band);z-index:2;text-decoration:none}
.tlkf::after{content:"";position:absolute;inset:-17px -9px;transform:rotate(-45deg)}
.tlkf.on{transform:rotate(45deg) scale(1.4);background:var(--tl-mark);box-shadow:0 0 0 2px var(--tl-fg)}
/* 音声: 句（話した文）ごとの箱。上に話した文の頭、下に波形（幅2px・間1pxの棒。timeline.js の drawWaves が canvas に描く）。
   山の無い作品（前に作った物）は高さ2pxの点の列＝にせの波形は描かない */
.tlau{position:absolute;top:0;bottom:0;border-radius:6px;overflow:hidden;background:var(--tl-clip);cursor:default}
.tlau span{position:absolute;left:6px;right:6px;top:2px;height:12px;font-size:10px;font-weight:600;line-height:12px;color:rgba(255,255,255,.85);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlau canvas{position:absolute;left:0;bottom:2px;width:100%;height:var(--h-wave);display:block}
.tlhead{position:absolute;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--tl-fg);pointer-events:none;z-index:5}
.tlhead::before{content:"";position:absolute;left:-4px;top:0;width:10px;height:6px;border-radius:2px;background:var(--tl-fg)}
/* 左の段の名前（字で出す）。「音声」だけ右に小さい鍵＝動かせない印 */
.tllbl{position:absolute;left:0;top:0;bottom:0;width:66px;background:linear-gradient(90deg,var(--tl-band) 58px,transparent 66px);pointer-events:none;z-index:4}
.tllbl span{position:absolute;left:6px;display:flex;align-items:center;gap:2px;font-size:11px;font-weight:700;line-height:12px;color:var(--tl-fg-2);white-space:nowrap;transition:top .2s,height .2s}
.tllbl svg{width:10px;height:10px;fill:var(--tl-fg-2)}
.tllbl .c{top:var(--h-ruler);height:var(--h-cut)}
.tllbl .a{top:calc(var(--h-ruler) + var(--h-cut) + var(--gap));height:var(--h-tel)}
.tllbl .b{top:calc(var(--h-ruler) + var(--h-cut) + var(--h-tel) + var(--gap)*2);height:var(--h-ov)}
.tllbl .d{top:calc(var(--h-ruler) + var(--h-cut) + var(--h-tel) + var(--h-ov) + var(--gap)*3);height:var(--h-au)}
.tlbub{position:absolute;display:none;height:24px;padding:0 8px;border-radius:12px;background:var(--tl-fg);color:var(--tl-band);font-size:12px;font-weight:800;line-height:24px;white-space:nowrap;transform:translateX(-50%);pointer-events:none;z-index:7}
.tlbub.on{display:block}
body.tldrag{-webkit-user-select:none;user-select:none}
.tlload{display:flex;flex-direction:column;gap:6px;padding:66px 16px 8px}
.tlload i{display:block;height:40px;border-radius:6px;background:var(--tl-clip)}
.tlwait{padding:16px}

/* ---------- 下の欄（高さ固定・中身だけ替える） ---------- */
.tlbot{flex:none;height:calc(var(--h-bot) + env(safe-area-inset-bottom,0px));background:var(--bg);border-top:.5px solid var(--bar-line,var(--line));overflow:hidden}
.tlpanel{padding:10px var(--pad) 0}
.tl.sel .tlpanel{padding-top:6px}
.tladds{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tladds .btn{min-height:56px;padding:0 10px;font-size:15px;white-space:nowrap}
.tladds .btn svg{width:20px;height:20px}
.tlhint{margin:6px 0 0;font-size:12px;line-height:18px;color:var(--sub);text-align:center;white-space:nowrap}
.tlnw{white-space:nowrap}
.dock .meta .tlnw{display:block}
/* 見出しの段 */
.tlph{display:flex;align-items:center;gap:8px;height:44px}
.tlpi{flex:none;width:24px;height:24px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center}
.tlpi svg{width:14px;height:14px;fill:var(--ink)}
.tlph b{font-size:14px;font-weight:800;color:var(--ink);white-space:nowrap}
.tlpcg{flex:none;height:22px;padding:0 8px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:800;font-style:normal;line-height:22px;white-space:nowrap}
.tlpl{font-size:12px;font-weight:600;color:var(--sub);white-space:nowrap}
.tlph .sp{flex:1;min-width:0}
.tlpd{flex:none;height:44px;padding:0 8px;border-radius:10px;display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--sub);white-space:nowrap}
.tlpd svg{width:16px;height:16px;fill:currentColor}
.tlpd:active{background:var(--surface-2)}
.tlpd.dim{opacity:.4}
.tlph .btn.sm{flex:none;margin-left:4px;padding:0 14px;font-weight:800;white-space:nowrap}
/* タブの段 */
.tlpt{display:flex;gap:4px;height:44px;margin-top:4px}
.tlk{flex:1 1 auto;min-width:44px;height:44px;padding:0 8px;border-radius:10px;background:var(--surface-2);font-size:12px;font-weight:700;color:var(--ink);white-space:nowrap}
.tlk.on{background:var(--accent-soft);box-shadow:0 0 0 1.5px var(--sel) inset}
.tlpt .tlk{height:100%}
.tlpt .tlact{flex:none;width:auto;min-height:0;height:100%;margin-left:4px;padding:0 10px;border-radius:10px;gap:4px;font-size:13px;font-weight:800;white-space:nowrap}
.tlpt .tlact svg{width:18px;height:18px}
.tlpt .tlact.dim{opacity:.4}
/* 中身の段 */
.tlpc{display:flex;align-items:center;height:56px;margin-top:6px}
.tlpc>*{flex:1;min-width:0}
.tlfield{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-radius:12px;background:var(--surface-2);font-size:16px;font-weight:500;color:var(--ink);text-align:left}
.tlfield span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlfield span.ph{color:var(--mute)}
.tlfield svg{flex:none;width:18px;height:18px;fill:var(--sub)}
.tlfonts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.tlfont{height:52px;padding:0 2px;border-radius:10px;background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--ink)}
.tlfont b{font-size:20px;line-height:24px}
.tlfont small{font-size:10.5px;font-weight:700;line-height:14px;color:var(--sub);white-space:nowrap}
.tlfont.on{background:var(--accent-soft);box-shadow:0 0 0 1.5px var(--sel) inset}
.tlsl{display:flex;align-items:center;gap:10px}
.tlsl span{flex:none;font-size:12px;font-weight:700;color:var(--sub);white-space:nowrap}
/* 数字つきのゲージ（テロップ・写真の「大きさ」）: 小さく ／ ゲージ ／ 大きく ／ 数字 */
.tlgz{display:flex;align-items:center}
.tlgz .tlgb{flex:none;width:44px;min-height:44px;height:44px;padding:0;border-radius:12px;touch-action:manipulation}
.tlgz .tlgb svg{width:20px;height:20px;fill:var(--ink)}
.tlgz .tlgb:disabled{opacity:.35}
.tlgt{position:relative;flex:1;min-width:0;height:44px;margin:0 6px}
.tlgt .tlrange{display:block;width:100%}
.tlgt::before{content:"";position:absolute;left:14px;right:14px;top:calc(50% + 7px);height:4px;background:repeating-linear-gradient(90deg,var(--line-2) 0 1px,transparent 1px calc(100% / var(--n)));pointer-events:none}
.tlgt::after{content:"";position:absolute;right:14px;top:calc(50% + 7px);width:1px;height:4px;background:var(--line-2);pointer-events:none}
.tlgm{position:absolute;left:calc(14px + (100% - 28px) * var(--m) / 100);top:calc(50% - 5px);width:2px;height:10px;margin-left:-1px;border-radius:1px;background:var(--ink);pointer-events:none}
.tlgv{flex:none;width:56px;margin-left:2px;text-align:right;white-space:nowrap}
.tlgv b{font-size:18px;font-weight:900;line-height:22px;color:var(--ink)}
.tlgv small{font-size:11px;font-weight:600;color:var(--sub)}
.tlgv .tlgn{display:block;font-size:10px;line-height:12px}
.tlgv .tlgn.off{visibility:hidden}
.tlrange{flex:1;min-width:0;height:44px;margin:0;padding:0;border:0;background:transparent;-webkit-appearance:none;appearance:none;--p:50%}
.tlrange:focus{outline:0}
.tlrange::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(90deg,var(--ink) var(--p),var(--surface-3) var(--p))}
.tlrange::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-12px;border-radius:50%;background:var(--surface);border:1px solid var(--line-2);box-shadow:var(--sh-card)}
.tlrange::-moz-range-track{height:4px;border-radius:2px;background:linear-gradient(90deg,var(--ink) var(--p),var(--surface-3) var(--p))}
.tlrange::-moz-range-thumb{width:28px;height:28px;border-radius:50%;background:var(--surface);border:1px solid var(--line-2);box-shadow:var(--sh-card)}
.tlcols{display:flex;align-items:center}
.tlcol{flex:none;width:40px;height:44px;display:grid;place-items:center}
.tlcol i{width:26px;height:26px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--line-2)}
.tlcol.on i{box-shadow:inset 0 0 0 1px var(--line-2),0 0 0 2px var(--bg),0 0 0 4px var(--sel)}
.tlbox{flex:none;position:relative;height:32px;margin-left:auto;padding:0 8px;border-radius:8px;background:var(--surface-2);font-size:12px;font-weight:700;color:var(--ink);white-space:nowrap}
.tlbox::after{content:"";position:absolute;left:0;right:0;top:-6px;bottom:-6px}
.tlbox.on{background:var(--accent-soft);box-shadow:0 0 0 1.5px var(--sel) inset}
.tllen{display:flex;align-items:center;gap:8px}
.tllen .btn{flex:none;width:76px;min-height:48px;padding:0;border-radius:12px;font-size:14px;white-space:nowrap;touch-action:manipulation}
.tllv{flex:1;min-width:0;text-align:center}
.tllv b{display:block;font-size:20px;font-weight:900;line-height:26px;color:var(--ink)}
.tllv small{display:block;font-size:11px;line-height:15px;color:var(--sub);white-space:nowrap}
.tlord{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tlord .btn{min-height:48px;padding:0 10px;font-size:14px;white-space:nowrap}
.tlord .btn svg{width:20px;height:20px}
.tlord .btn:disabled{opacity:.4}
.tlmv{display:flex;gap:4px}
.tlmv .tlk{padding:0 7px}
.tlown{display:flex;align-items:center;gap:6px}
.tlown>*{flex:none}
.tlown .tlrange{flex:1}
.tlib{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
.tlib svg{width:20px;height:20px;fill:var(--sub)}
.tlib:active{background:var(--surface-2)}
.tlown .btn.sm{flex:1;gap:6px;white-space:nowrap}
.tlown .btn.sm svg{width:14px;height:14px}
.tlown .tlownh{flex:1;font-size:12px;line-height:18px;color:var(--sub);white-space:nowrap}
.tlown em{width:40px;font-size:13px;font-weight:800;font-style:normal;color:var(--ink);text-align:right;white-space:nowrap}

/* ---------- 文字を打つ時（キーボード）: プレビューと入力の欄だけ ---------- */
.tlkbp{display:none;flex:none;padding:6px var(--pad);background:var(--bg)}
.tl.kb{height:var(--vvh,100%);justify-content:flex-end}
.tl.kb .tlband,.tl.kb .tlbot{display:none}
.tl.kb .tlstage{flex:0 1 300px;min-height:96px}
.tl.kb .tlkbp{display:block}
.tlkb1{display:flex;align-items:center;justify-content:space-between;height:32px}
.tlkb1 b{font-size:13px;font-weight:800;color:var(--ink);white-space:nowrap}
.tlkb1 .btn.sm{position:relative;min-height:32px;height:32px;padding:0 12px;font-weight:800;white-space:nowrap}
.tlkb1 .btn.sm::after{content:"";position:absolute;left:0;right:0;top:-6px;bottom:-6px}
#tl-ta{display:block;width:100%;min-height:0;height:44px;margin:4px 0;padding:10px 12px;border:0;border-radius:12px;background:var(--surface-2);color:var(--ink);font:500 16px/24px var(--f);resize:none;overflow:hidden}
.tlkb3{display:flex;justify-content:space-between;gap:8px;height:20px;font-size:12px;line-height:20px;color:var(--sub);white-space:nowrap}
.tlkb3 span:last-child{font-weight:600}
.tlkb3 .err{color:var(--err)}
body.tlkb .top,body.tlkb .dock{display:none}

/* ---------- 詰めた版（高さ699px以下）: 上の帯をプレビューに重ねる・段を少し低く ---------- */
@media (max-height:699px){
  .tl{--h-ruler:14px;--h-cut:40px;--h-tel:34px;--h-ov:34px;--h-au:26px;--h-wave:22px;--gap:3px;--tile:23px;--h-ops:40px;--h-bot:150px}
  .phone:has(.tl) .top{position:absolute;left:0;right:0;top:0;height:auto;padding:calc(env(safe-area-inset-top,0px) + 6px) 8px 0;align-items:flex-start;background:none;border:0;-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none;z-index:6}
  .phone:has(.tl) .top .name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .phone:has(.tl) .top .ib{margin:0;pointer-events:auto;background:var(--tl-float);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  .phone:has(.tl) .top .ib svg{fill:var(--tl-fg)}
  .phone:has(.tl) .top .tlur{flex-direction:column;gap:6px;margin:0 0 0 auto}
  .tlband{padding-bottom:6px}
  .tlpanel{padding-top:6px}
  .tl.sel .tlpanel{padding-top:4px}
  .tladds .btn{min-height:48px}
  .tlhint{margin-top:4px;line-height:16px}
  .tlph{height:40px}
  .tlph .btn.sm,.tlpd{min-height:40px;height:40px}
  .tlpt{height:40px}
  .tlpc{height:52px;margin-top:4px}
  .tlfont{height:48px}
  .tllen .btn,.tlord .btn{min-height:44px}
  .phone:has(.tl) .dock{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  .phone:has(.tl) .dock .btn{min-height:48px;font-size:15px}
}
@media (max-width:359px){
  .tl{--pad:12px}
  .tlpl{display:none}
  .tlcol{width:38px}
  .phone:has(.tl) .dock .btn.fit{min-width:120px}
}
@media (prefers-reduced-motion:reduce){.tlnote{transition:none}}

/* =====================================================================
   A: 完成画面の帯と「タイムラインで編集」
   ===================================================================== */
.tlwrap{width:min(100%,268px);align-self:center;border-radius:var(--r-hero);overflow:hidden;background:var(--tl-stage);box-shadow:var(--sh-hero)}
.tlwrap .jobplay{width:100%;border-radius:0;box-shadow:none}
.tlmini{display:flex;align-items:stretch;height:64px;padding-left:8px;background:var(--tl-band);color:var(--tl-fg);cursor:pointer;-webkit-user-select:none;user-select:none}
.tlmini.noov{height:52px}
.tlmini:active{opacity:.85}
.tlmt{position:relative;flex:1;min-width:0;padding:7px 0;display:flex;flex-direction:column;gap:3px}
.tlmw{display:block;height:9px;border-radius:2px;background:var(--tl-clip)}
.tlmw:first-child{height:26px}
.tlmr{position:relative;flex:none;height:9px}
.tlmr.cut{height:26px}
.tlmr i{position:absolute;top:0;bottom:0;border-radius:2px;background-color:var(--tl-clip);background-repeat:no-repeat}
.tlmr.tel i{background-color:var(--tl-fg-2)}
.tlmr.ov i{background-size:cover;background-position:center}
.tlmh{position:absolute;top:2px;bottom:2px;left:0;width:2px;margin-left:-1px;background:var(--tl-fg);pointer-events:none}
.tlmh::before{content:"";position:absolute;left:-3px;top:0;width:8px;height:5px;border-radius:2px;background:var(--tl-fg)}
.tlme{flex:none;width:48px;margin-left:8px;border-left:1px solid var(--tl-fg-3);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.tlme i{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center}
.tlme svg{width:16px;height:16px;fill:var(--tl-fg)}
.tlme span{font-size:10px;font-weight:800;line-height:12px;white-space:nowrap}
.btn.tlopen{display:grid;grid-template-columns:32px 1fr;column-gap:12px;row-gap:2px;align-content:center;justify-items:start;text-align:left;line-height:1.3;min-height:64px;padding:10px 16px;background:var(--surface);color:var(--ink);border:1px solid var(--line-2);box-shadow:var(--sh-card);white-space:nowrap}
.btn.tlopen svg{display:block;grid-row:1/3;align-self:center;width:32px;height:32px;padding:6px;border-radius:50%;background:var(--accent);fill:var(--on-accent)}
:root[data-theme="dark"] .btn.tlopen{background:var(--surface-2);border-color:var(--accent-line);box-shadow:none}
.link.tlold{align-self:flex-start}
@media (max-width:359px){.tlwrap{width:min(100%,252px)}}

/* ---- 2026-11-19 追加（指示書の追補 v3）: 保存へ／テロップを指で動かす／音声の句を消す・削る／候補を再生して選ぶ ---- */
.tlur{margin-right:-6px}
.tlsv{position:relative;display:flex;align-items:center;gap:4px;flex:none;align-self:center;height:36px;margin-left:10px;padding:0 10px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font-size:13px;font-weight:800;line-height:1;white-space:nowrap}
.tlsv::after{content:"";position:absolute;inset:-4px 0}
.tlsv svg{width:16px;height:16px;fill:currentColor}
@media (max-width:389px){.tlnm{display:none}}
.tlgd{box-shadow:0 0 0 .5px rgba(0,0,0,.35)}
.tlgd.h b{display:none;position:absolute;right:4px;bottom:2px;height:14px;padding:0 4px;border-radius:3px;background:var(--tl-mark);color:var(--on-accent);font-size:10px;font-weight:800;font-style:normal;line-height:14px;white-space:nowrap}
.tlgd.h.lb b{display:block}
.tlsafe{position:absolute;inset:0;pointer-events:none;display:none}
.tlsafe.on{display:block}
.tlsafe i{position:absolute;left:0;right:0;background:repeating-linear-gradient(45deg,var(--tl-fg-3) 0 2px,transparent 2px 8px)}
.tlsafe i.t{top:0;height:12%;border-bottom:1px solid var(--tl-fg-3)}
.tlsafe i.b{bottom:0;height:20%;border-top:1px solid var(--tl-fg-3)}
.tlsafe i.in{background:linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.35)),repeating-linear-gradient(45deg,var(--tl-fg-3) 0 2px,transparent 2px 8px);border-color:var(--tl-fg-2)}
.tltx{position:relative}
.tltp.sel .tltx::after{content:"";position:absolute;inset:-12px -8px}
.tlrst{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);display:none;height:32px;padding:0 12px;border:0;border-radius:16px;background:var(--tl-fg);color:var(--tl-band);font-size:12px;font-weight:800;line-height:32px;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.4);z-index:5}
.tlrst::after{content:"";position:absolute;inset:-6px 0}
.tlrst.on{display:block}
.tl.kb .tlrst{display:none}
.tlstage.rst .tlnote{bottom:46px}
.tlau{cursor:pointer;overflow:visible}
.tlau span,.tlau canvas{pointer-events:none}
.tlau.sel{box-shadow:0 -2px 0 var(--tl-fg),0 2px 0 var(--tl-fg);z-index:3}
.tlspan{position:absolute;top:var(--h-ruler);bottom:0;background:var(--tl-fg-3);border-left:1px solid var(--tl-fg-2);border-right:1px solid var(--tl-fg-2);pointer-events:none;z-index:1}
.tlvh{position:absolute;top:0;bottom:0;width:14px;background:var(--tl-fg);touch-action:none;cursor:ew-resize;z-index:4}
.tlvh::before{content:"";position:absolute;left:calc(50% - 1px);top:calc(50% - 6px);width:2px;height:12px;border-radius:1px;background:var(--tl-band)}
.tlvh::after{content:"";position:absolute;top:calc(50% - 22px);height:44px;left:-15px;right:-15px}
.tlvh.l{left:-14px;border-radius:6px 0 0 6px}
.tlvh.r{right:-14px;border-radius:0 6px 6px 0}
.tlaucut{position:absolute;top:0;bottom:0;width:0;background:rgba(0,0,0,.6);pointer-events:none;z-index:2}
.tlaucut.l{left:0}
.tlaucut.r{right:0}
.tlsaid{display:flex;align-items:baseline;gap:8px;height:28px;margin-top:4px;line-height:28px}
.tlsaid small{flex:none;font-size:11px;font-weight:700;color:var(--sub)}
.tlsaid span{flex:1;min-width:0;font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tllen.tlvo{margin-top:4px}
.tllen.tlvo .btn{width:96px;font-weight:800}
/* シート「別の絵に替える」の中（シートは .phone の外＝--tl-* は効かないので、アプリのトークンだけ） */
.in.tlpk{display:flex;flex-direction:column;max-height:calc(88dvh - 26px - env(safe-area-inset-bottom,0px))}
.tlpk .rvcur{align-items:flex-start;flex:none}
.tlpk .rvth.tlpkw{position:relative;width:112px;height:199px;aspect-ratio:auto;border-radius:10px;overflow:hidden}
.tlpkw video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.tlpkw video.on{opacity:1}
.tlpk1{display:flex;align-items:center;gap:6px;min-height:24px}
.tlpk1 b{font-size:14px;font-weight:800}
.tlpkn{flex:none;height:18px;margin-left:2px;padding:0 6px;border-radius:4px;background:var(--accent-soft);color:var(--accent-text);font-size:11px;font-weight:800;font-style:normal;line-height:18px;white-space:nowrap}
.tlpk .rvcur .sub{font-size:13px}
.tlpkx{font-size:12px;line-height:18px;color:var(--sub);white-space:nowrap}
.tlpk .rvundo{margin-top:8px}
.tlpk .epick{flex:1;min-height:0;max-height:none}
.tlpk .epf.cur{box-shadow:0 0 0 1px var(--line-2)}
.tlpk .epf.cur::after{content:"Now";position:absolute;left:4px;top:4px;padding:0 5px;border-radius:4px;background:var(--accent);color:var(--on-accent);font-size:10px;font-weight:800;line-height:16px}
.tlpk .sfoot{margin-top:0;flex:none}
.tlpk .sfoot .btn{min-height:56px}
@media (max-height:699px){
  .phone:has(.tl) .top .tlur{align-items:flex-end}
  .phone:has(.tl) .top .tlsv{order:-1;height:44px;margin:0;border:0;border-radius:22px;background:var(--tl-float);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--tl-fg);pointer-events:auto;align-self:flex-end}
  .tlvh{width:12px}
  .tlvh.l{left:-12px}
  .tlvh.r{right:-12px}
  .tlsaid{height:24px;line-height:24px;margin-top:2px}
  .in.tlpk{max-height:calc(94dvh - 26px - env(safe-area-inset-bottom,0px));gap:12px}
  .tlpk .rvth.tlpkw{width:81px;height:144px}
  .tlpk .rvpf{width:60px}
  .tlpk .sfoot{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  .tlpk .sfoot .btn{min-height:48px}
}

/* ===== 英語にした言葉（2026-11-20・たいが「わかりやすい英語だったらOK」） =====
   書体は、作品の画面・作る画面の英語と同じ（rename.css の --f-en＝Inter Tight）。当てるのは英語が入る部品だけ。
   説明の文と札（日本語のまま）は今までの書体。--f-en が読めない時は今までの書体のまま出る */
.tlsv,.tllbl span,.tlk,.tlpd,.tlph b,.tlpcg,.tlbox,.tlfont small,.tlgv .tlgn,.tlsaid small,.tlrst,.tlgd.h b,.tlkb1 b,.tlme span,.tlpkn,.tlpk1 b,.tlpk .sub,
.dock .meta b,.tllv small,.tlpl,.tlown em,.tlzv,.tllv b,.tlgv b,.tltime,.tlruler span{font-family:var(--f-en,inherit)}
.tllv b,.tlgv b{font-weight:800}                 /* 英語の書体は 800 までを読んでいる（900 は無い） */
.tllv small,.tlpk .sub{font-weight:600}
#tl-sum{word-spacing:.14em}                      /* 「1 edit」の数字と語の間（Inter Tight は語の間が狭い） */
/* 前のテロップ直しへの文字リンク: 古い道なので一段静かに。添える日本語には下線をかけない */
.link.tlold{color:var(--sub);text-decoration-color:var(--line-2)}
.link.tlold .ja{display:inline-block;margin-left:6px}
/* nihongo 2026-11-21 */
/* 別の絵に替えるシート: 今使っているコマの札。上の .tlpk .epf.cur::after の "Now" を、英語にする前の「いま」に戻す（文字だけ。大きさ・色・場所は上のまま） */
.tlpk .epf.cur::after{content:"いま"}
/* 文字を打つ欄の下の注意（3行までです）と「この行 24/24」: アプリ共通の .err（赤い面・余白）が同じ名前で当たり、赤い箱になって下が 2px 切れていた。
   言葉の入れ替えとは別で、直す前からある切れ。このファイルの上の .tlkb3 .err の決めどおり「赤い字だけ」にする。要らなければこの1行だけ外せる */
.tlkb3 .err{padding:0;border-radius:0;background:none}
/* 音声の句の「はじめを削る」「おわりを削る」: 英語（Trim start／Trim end）より長く、96px の箱いっぱいになるので少し広げる */
.tllen.tlvo .btn{width:104px}
/* /nihongo 2026-11-21 */
