
.btn, .btn-sm, a.btn, .icon-btn { border-radius: var(--radius-pill); font-family: var(--font-ui); font-weight: 600; }
.btn { box-shadow: var(--shadow); }
.btn-quiet { box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 32px; }
.btn-danger { color: var(--danger); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.icon-btn { width: 34px; height: 34px; min-height: 34px; padding: 0; }
.btn .mi, .btn .mi.v2 { width: 16px; height: 16px; flex-shrink: 0; }

input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; cursor: pointer; position: relative;
  width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line-strong); background: var(--panel); vertical-align: middle; }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 4px; top: 0px; width: 5px; height: 10px;
  border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.films-grid .film-head > input[type="checkbox"]:indeterminate { background: var(--accent); border-color: var(--accent); }
.films-grid .film-head > input[type="checkbox"]:indeterminate::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 2.5px; margin-top: -1.25px; background: var(--accent-ink); border: 0; transform: none; width: auto; }
input[type="checkbox"]:disabled { opacity: .4; cursor: default; }
.check input[type="checkbox"], .films-filter input[type="checkbox"], input[type="checkbox"].switch {
  width: 34px; height: 20px; border-radius: var(--radius-pill); border: 0; background: var(--chip); transition: background .15s;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); }.check input[type="checkbox"]::after, .films-filter input[type="checkbox"]::after, input[type="checkbox"].switch::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border: 0; border-radius: 50%;
  background: var(--muted); transform: none; transition: left .15s, background .15s; }
.check input[type="checkbox"]:checked, .films-filter input[type="checkbox"]:checked, input[type="checkbox"].switch:checked { background: var(--accent); box-shadow: none; }
.check input[type="checkbox"]:checked::after, .films-filter input[type="checkbox"]:checked::after, input[type="checkbox"].switch:checked::after {
  left: 17px; background: var(--accent-ink); }
.check { gap: 8px; font-weight: 600; color: var(--ink); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="range"] { appearance: none; -webkit-appearance: none; height: 6px; border-radius: var(--radius-pill); cursor: pointer; margin: 0;
  background: linear-gradient(to right, var(--accent) 0 var(--fill, 50%), var(--line-strong) var(--fill, 50%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel); border: 3px solid var(--accent); box-sizing: border-box; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--accent); box-sizing: border-box; }
input[type="range"]::-moz-range-track { background: transparent; }

select.input, select.input-sm, select {
  appearance: none; -webkit-appearance: none; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background-color: var(--panel);
  color: var(--ink); font-family: var(--font-ui); font-weight: 600; padding: 5px 30px 5px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input, .input-sm { border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--ink); font-family: var(--font-ui); }
input[type="number"].input, input[type="number"].input-sm { font-family: var(--font-mono); }
input[type="color"] { width: 30px; height: 30px; padding: 0; border: 2px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.chip { border-radius: var(--radius-pill); font-weight: 600; font-family: var(--font-ui); }

.mono, .time, code, kbd, .drawer-path { font-family: var(--font-mono); }

.play-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.play-btn .mi.v2 { width: 18px; height: 18px; }
.vrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vrow .icon-btn { width: 34px; height: 34px; }

.dev-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: var(--radius-pill); background: var(--chip); }
.dev-tab { border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-family: var(--font-ui); font-weight: 600; padding: 6px 16px; cursor: pointer; }
.dev-tab[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }

.pick, .rv-toggle { border: 0; border-radius: var(--radius-pill); background: var(--chip); padding: 3px; gap: 2px; overflow: visible; }
.pick button, .rv-seg { border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-family: var(--font-ui); font-weight: 600; padding: 6px 16px; }
.rv-seg + .rv-seg { border-left: 0; }
.pick button[aria-checked=true], .rv-seg.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.rv-play { border-radius: var(--radius-pill); padding: 6px 12px; font-family: var(--font-mono); font-weight: 500; }
.rv-play .mi.v2 { width: 14px; height: 14px; }
.rv-film-row, .review-item, .known-panel, .films-send { border-radius: 18px; }
.rv-video-wrap, .setup-vbox { border-radius: 18px; }
.job-error, .toast, .empty { border-radius: 16px; }
.badge { border-radius: var(--radius-pill); padding: 2px 8px; }

select { max-width: 100%; min-width: 0; }
label:has(> select) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 100%; }

.cue textarea { color: var(--ink); }
.cue .tr-item textarea, .tr-item textarea { color: var(--track2-fg); }

@media (min-width: 701px) {
  .ed-top { min-height: 62px; padding: 0 16px; gap: 8px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .ed-top .btn:not(.icon-btn):not(.seg) { min-height: 36px; padding: 0 14px; }
  .ed-top .icon-btn, .ed-top .btn.icon-btn { width: 36px; height: 36px; min-height: 36px; }
  .ed-cues { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 12px; overflow: hidden; }
  .vbox { border-radius: 22px; overflow: hidden; }
  .ed-timeline { margin: 12px 16px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); overflow: hidden; padding: 0 0 10px; }
  .tl-bar { min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); }
  .ed-timeline .tl, .ed-timeline .ov { border: 0; border-radius: 0; }
}
.cue-num { width: 24px; height: 24px; min-width: 24px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; background: var(--chip); color: var(--ink); }
.cue { border-radius: 16px; background: var(--panel-2); border: 1px solid transparent; }
.cue.sel { background: var(--panel-2); border-color: transparent; box-shadow: inset 0 0 0 2px var(--accent); padding: 12px; gap: 8px; }
.cue textarea, .tr-item textarea { font-size: 16px; line-height: 1.45; padding: 9px 12px; border-radius: 12px; }
.tin { font-size: 12px; border-radius: 8px; padding: 3px 7px; }

#flt-text { height: 36px; width: 180px; border-radius: var(--radius-pill); padding: 0 16px; font-size: 13px; }
.side { flex-basis: 220px; }
@media (max-width: 900px) { .side { flex-basis: auto; } }.side-item { font-size: 14px; }
#films-h { font-size: 20px; }#qt-h { font-size: 15px; }.films-grid .film-row { min-height: 46px; padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.films-grid .film-row.film-head { min-height: 38px; }
.films-grid .chip { font-size: 12px; height: 24px; line-height: 24px; padding: 0 10px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; vertical-align: middle; }
.film-drawer { flex-basis: 340px; padding: 16px 20px; }

select.input, select.input-sm, select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input:invalid, input:invalid { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { opacity: .6; }
select:disabled { opacity: .45; cursor: default; }
.srt-dialog { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); padding: 16px; }
.srt-dialog[hidden] { display: none; }
.srt-dialog-card { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; width: min(520px, 100%); max-height: 88vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.srt-dialog-card h2 { font-size: 18px; margin: 0; }
.srt-dialog-card p { margin: 0; line-height: 1.45; }
.srt-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.btn-danger-strong { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }
.srt-up-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.srt-up-file { font-weight: 600; word-break: break-all; }
.srt-up-opt { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.srt-up-box select { max-width: 100%; min-height: 32px; }
@media (max-width: 640px) {
  .srt-dialog { align-items: flex-end; padding: 0; }
  .srt-dialog-card { width: 100%; border-radius: 22px 22px 0 0; max-height: 86svh; }
  .srt-dialog-actions .btn { min-height: 40px; }
}

@media (pointer: coarse), (max-width: 700px) {
  input[type="checkbox"] { width: 24px; height: 24px; border-radius: 7px; }
  input[type="checkbox"]:checked::after { left: 7px; top: 2px; width: 6px; height: 12px; }
  .films-grid .film-head > input[type="checkbox"]:indeterminate::after { left: 5px; right: 5px; top: 50%; width: auto; height: 2.5px; }
  .check input[type="checkbox"], .films-filter input[type="checkbox"], input[type="checkbox"].switch { width: 40px; height: 24px; border-radius: var(--radius-pill); }
  .check input[type="checkbox"]::after, .films-filter input[type="checkbox"]::after, input[type="checkbox"].switch::after { left: 3px; top: 3px; width: 18px; height: 18px; }
  .check input[type="checkbox"]:checked::after, .films-filter input[type="checkbox"]:checked::after, input[type="checkbox"].switch:checked::after { left: 19px; top: 3px; width: 18px; height: 18px; }
  input[type="range"] { height: 24px; padding: 9px 0; background-clip: content-box; }
  .check { min-height: 36px; }
  .btn-sm, .seg, select, .input-sm, .rv-seg, .pick button { min-height: 36px; }
  .side-item { height: 40px; }
  .tin { min-height: 36px; }
}
@media (max-width: 900px) { .films-grid .film-row input[type="checkbox"] { width: 24px; height: 24px; border-radius: 7px; } .films-grid .film-row input[type="checkbox"]:checked::after { left: 7px; top: 2px; width: 6px; height: 12px; } }
@media (max-width: 700px) {  .btn-sm, .seg, select, .input-sm, .ed-top .btn { min-height: 40px; }
  .icon-btn, .ed-top .icon-btn, .vrow .icon-btn { width: 40px; height: 40px; min-height: 40px; }
}
@media (max-width: 640px) {  .side { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .side::-webkit-scrollbar { display: none; }
  .side-item { flex: none; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-tech { text-align: left; }
}


input:disabled, .input:disabled, textarea:disabled { opacity: .45; cursor: default; }

body.editor .cue.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }body.editor .cue.merge-target { background: color-mix(in srgb, var(--info-bg) 60%, var(--surface)); }body.editor .cue.sel > textarea { background: var(--panel); }body.editor .tr-item { background: var(--tr-soft); }body.editor .tr-item textarea { color: var(--tr); background: transparent; border-color: transparent; }body.editor .multibar { background: var(--accent-soft); color: var(--ink); }@media (min-width: 701px) and (min-height: 501px), (min-width: 1001px) {  body.editor .cue.sel { border-radius: 18px; }  body.editor .tr-item { border: 1px solid transparent; border-radius: 12px; padding: 9px 12px; gap: 6px; }  body.editor .tr-item.bad { border-left: 3px solid var(--danger); }  body.editor .tr-item textarea { padding: 0; border-radius: 0; }  body.editor .tr-item textarea:focus-visible { outline-offset: 4px; }
  html[data-view="simple"] body.editor .tr-mode-both .tr-item.sel { box-shadow: none; }  body.editor .multibar { border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; font-weight: 400; }  body.editor #multibar-text { font-weight: 700; }
  body.editor .cue-badges .pill { font-size: 11px; font-weight: 700; padding: 3px 9px; }  body.editor .cue-num { font-family: var(--font-ui); font-weight: 700; }  body.editor .cue-head .arrow { font: 12px var(--font-mono); color: var(--muted); }  body.editor .cue-list { gap: 10px; }  body.editor .cue-dur { font-size: 11px; }  :where(body.editor) .seg { font-size: 12px; padding: 5px 13px; }  :where(body.editor) .seg.on { font-weight: 600; }  body.editor .cue-tools .btn .mi.v2, body.editor .cue-tools .btn svg { width: 14px; height: 14px; }  body.editor .cues-head h2 { font-size: 16px; min-width: 190px; }  body.editor #cue-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 1px 9px; margin-left: 4px; min-width: 0; vertical-align: 1px; }  body.editor .cue:not(.sel) { padding: 10px 12px; row-gap: 4px; }  body.editor .cue:not(.sel) > textarea { background: transparent; border-color: transparent; padding: 0; font-size: 15px; line-height: 1.4; }  body.editor .tr-mode-both .cue:not(.sel) .tr-item { background: transparent; padding: 0; border-radius: 0; border-color: transparent; }  body.editor .tr-mode-both .cue:not(.sel) .tr-item.bad { border-left-color: var(--danger); margin-left: -8px; padding-left: 6px; }  body.editor .tr-mode-both .cue:not(.sel) .tr-item > textarea { font-size: 15px; line-height: 1.4; }
  html[data-view="simple"] body.editor .tr-mode-both .cue:not(.sel) .tr-item > .cue-head { display: none; }  html[data-view="simple"] body.editor .cue .tin { color: var(--muted); width: calc(var(--len, 9) * 1ch + 2px); }  html:not([data-view="simple"]) body.editor .cue:not(.sel) .tin { color: var(--muted); width: calc(var(--len, 9) * 1ch + 2px); }  body.editor #multibar .job-spacer { display: none; }}
@media (min-width: 701px) and (min-height: 501px) and (pointer: fine), (min-width: 1001px) and (pointer: fine) {
  body.editor .multibar .btn { min-height: 30px; padding: 0 11px; gap: 7px; font-size: 12px; }
  body.editor .multibar .btn .mi.v2, body.editor .multibar .btn svg { width: 14px; height: 14px; }
}
body.editor .cue-head > .cue-badges { margin-left: auto; }
body.editor .merge-menu.up { top: auto; bottom: calc(100% + 6px); }
body.editor .cue.sel > textarea { border-color: var(--line); }
html:not([data-view="simple"]) body.editor .cue.sel .tin:not(.invalid) { border-color: var(--line); }body.editor .tr-tag { display: none; }
body.editor .tr-tag, body.editor .tr-tag-probe { font: 700 10px/1 var(--font-ui); }body.editor .tr-tag-probe { position: fixed; left: -9999px; top: 0; visibility: hidden; pointer-events: none; white-space: nowrap; }
@media (min-width: 701px) and (min-height: 501px), (min-width: 1001px) {
  html[data-view="simple"] body.editor .tr-mode-both .tr-item > .cue-head { display: none; }
  html[data-view="simple"] body.editor .tr-mode-both .cue.sel .tr-item { position: relative; }
  html[data-view="simple"] body.editor .tr-mode-both .cue.sel .tr-item > .tr-tag { display: block; order: 1; align-self: flex-start; opacity: .8; color: var(--tr); pointer-events: none; }  html[data-view="simple"] body.editor .tr-mode-both .cue.sel .tr-item > .cue-badges { order: 2; }
  html[data-view="simple"] body.editor .tr-mode-both .cue.sel .tr-item:has(> textarea:dir(rtl)) > .tr-tag { align-self: flex-end; }
}

body.editor .cue-tools.for-tr .btn { border-color: var(--tr); }
body.editor .cue-tools.for-tr .btn:not(.btn-danger) { color: var(--tr); }
body.editor .cue-tools .tools-for { background: var(--tr-soft); color: var(--tr); }
body.editor.tl-for-tr .tl-actions .btn:not(.btn-danger) { border-color: var(--tr); color: var(--tr); }
body.editor.tl-for-tr .tl-actions .btn-danger { border-color: var(--tr); }
@media (min-width: 701px) and (min-height: 501px), (min-width: 1001px) {
  body.editor .cue-tools.for-tr .tools-for { display: inline-flex; align-items: center; align-self: center; padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--font-ui); letter-spacing: .02em; }
}

@media (min-width: 701px) and (min-height: 501px), (min-width: 1001px) {
  body.editor #ed-status { background: transparent; padding: 0; font-size: 12px; font-weight: 600; line-height: 15px; }  body.editor #ed-status.chip-ok { color: var(--tr); }
  body.editor #ed-status.chip-muted { color: var(--muted); }
  .ed-top #btn-back { font-size: 13px; }  .ed-top #btn-user-films { font-size: 13px; }  body.editor #rate { font-size: 12px; }}

@media (min-width: 701px) and (min-height: 501px), (min-width: 1001px) {
  .ed-top { min-height: 48px; padding: 0 12px; gap: 6px; }
  .ed-top .btn:not(.icon-btn):not(.seg) { min-height: 32px; height: 32px; padding: 0 12px; }
  .ed-top .icon-btn, .ed-top .btn.icon-btn { width: 32px; height: 32px; min-height: 32px; }
  .ed-top .theme-swatches { padding: 2px; }
  .ed-top .theme-swatches .swatch { width: 28px; height: 28px; }  .ed-top .theme-swatches .swatch svg { width: 16px; height: 16px; }
  .ed-top .seg-group { padding: 2px; }
  .ed-top .seg { min-height: 28px; padding: 0 13px; font-size: 12px; }  .ed-title { gap: 1px; }
  #ed-name { font-size: 14px; line-height: 17px; }
  .ed-timeline { margin-bottom: 6px; }
  .ed-foot { height: 16px; padding: 0 16px; align-items: center; gap: 8px; line-height: 1; }  .ed-foot .logo, .ed-foot .copyright, .ed-foot .ed-privacy, .ed-foot .acct-dot, .ed-foot .acct-terms-link { font-size: 11px; line-height: 1; }}
@media (min-width: 701px) and (min-height: 501px) and (pointer: coarse), (min-width: 1001px) and (pointer: coarse) {  .ed-top { min-height: 52px; }
  .ed-top .btn:not(.icon-btn):not(.seg), .ed-top .seg { min-height: 36px; height: 36px; }
  .ed-top .icon-btn, .ed-top .btn.icon-btn { width: 36px; height: 36px; min-height: 36px; }
  .ed-top .theme-swatches .swatch { width: 32px; height: 32px; }  .ed-top .theme-swatches .swatch svg { width: 18px; height: 18px; }
}

@media (min-width: 641px) {
  .top { padding-top: 12px; padding-bottom: 12px; align-items: center; min-height: 56px; box-sizing: border-box; }
  .brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
  .brand h1 { font-size: 22px; line-height: 1; }
  .tagline { margin-top: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .foot { padding-top: 6px; padding-bottom: 10px; align-items: center; font-size: 11.5px; }
  .brandmark { flex-direction: row; align-items: baseline; gap: 8px; }
  .brandmark .logo { font-size: 12px; }
}
@media (min-width: 641px) and (max-width: 1000px) { .top .tagline { display: none; } }
@media (min-width: 701px) and (min-height: 501px), (min-width: 1001px) {
  body.editor .cue.sel { padding: 10px 12px; row-gap: 4px; }  body.editor .cue.sel > textarea { padding: 0; font-size: 15px; line-height: 1.4; border-color: transparent; border-radius: 6px; --e3-line: var(--line);
    box-shadow: -3px 0 0 1px var(--panel), 3px 0 0 1px var(--panel), -3px 0 0 2px var(--e3-line), 3px 0 0 2px var(--e3-line); }  body.editor .cue.sel > textarea:focus-visible { outline: none; --e3-line: var(--accent); box-shadow: -3px 0 0 1px var(--panel), 3px 0 0 1px var(--panel), -3px 0 0 3px var(--e3-line), 3px 0 0 3px var(--e3-line); }  body.editor .tr-mode-both .cue.sel > .cue-tr > .tr-item { padding: 0; border-radius: 6px; --e3-l: -3px; --e3-ring: transparent;
    box-shadow: var(--e3-l) 0 0 1px var(--tr-soft), 3px 0 0 1px var(--tr-soft), var(--e3-l) 0 0 var(--e3-rw, 2px) var(--e3-ring), 3px 0 0 var(--e3-rw, 2px) var(--e3-ring); }  body.editor .tr-mode-both .cue.sel > .cue-tr > .tr-item.bad { margin-left: -8px; padding-left: 6px; --e3-l: 0px; }  html:not([data-view="simple"]) body.editor .tr-mode-both .cue.sel > .cue-tr > .tr-item.sel { --e3-ring: color-mix(in srgb, var(--tl-tr-sel) 45%, transparent); }  body.editor .tr-mode-both .cue.sel > .cue-tr > .tr-item > textarea { font-size: 15px; line-height: 1.4; }
  body.editor .tr-mode-both .cue.sel > .cue-tr > .tr-item > textarea:focus-visible { outline: none; }  body.editor .tr-mode-both .cue.sel > .cue-tr > .tr-item:focus-within { --e3-ring: var(--tr) !important; --e3-rw: 3px; }  html:not([data-view="simple"]) body.editor .cue.sel .tin { width: calc(var(--len, 9) * 1ch + 10px); padding-left: 4px; padding-right: 4px; margin-left: -4px; margin-right: -4px; }  html:not([data-view="simple"]) body.editor .tr-mode-both .tr-item { flex-flow: row wrap; align-items: center; gap: 6px; }
  html:not([data-view="simple"]) body.editor .tr-mode-both .tr-item > .cue-head { display: contents; }
  html:not([data-view="simple"]) body.editor .tr-mode-both .tr-item > :not(.cue-head) { flex: 1 0 100%; min-width: 0; }
  html:not([data-view="simple"]) body.editor .tr-mode-both .tr-item > .cue-head > .cue-tools { order: 9; flex: 1 0 100%; }
  html:not([data-view="simple"]) body.editor .tr-mode-both.tr-wide .cue.sel, html:not([data-view="simple"]) body.editor.problems-only .tr-mode-both.tr-wide .cue { grid-template-areas: "head tr" "text tr" "badges badges" "tools tools"; grid-template-rows: auto 1fr auto auto; }  html:not([data-view="simple"]) body.editor .tr-mode-both .tr-item { container: trline / inline-size; }
  @container trline (max-width: 484px) {
    html:not([data-view="simple"]) body.editor .tr-mode-both .tr-item .cue-tools .lbl-d { font-size: 0; gap: 0; }
    html:not([data-view="simple"]) body.editor .tr-mode-both .tr-item .cue-tools .btn { padding-left: 9px; padding-right: 9px; }
  }
}

body.check-mode .cues-head, body.check-mode #multibar { display: none !important; }.check-bar { position: relative; flex: none; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--flag-bg); color: var(--flag-fg); }
.check-bar.ok { background: var(--ok-bg); color: var(--ok-fg); }
.check-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.check-text { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.check-count { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 999px;
  background: var(--flag-fg); color: var(--flag-bg); font-size: 13px; font-weight: 700; }
.check-bar.ok .check-count { background: var(--ok-fg); color: var(--ok-bg); }
.check-count .mi, .check-count svg { width: 14px; height: 14px; }
.check-hint { margin: 6px 0 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.check-after { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; line-height: 1.4; }.check-bar .check-show { color: inherit; font-weight: 600; }
.check-bar .check-show:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.check-bar .check-show .mi, .check-bar .check-show svg { display: none; }.check-bar.flash { animation: check-flash .7s ease-out 1; }
@keyframes check-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px var(--flag-fg); } }
@media (prefers-reduced-motion: reduce) { .check-bar.flash { animation: none; outline: 3px solid currentColor; } }

body.editor.check-mode .cue.chk-problem { box-shadow: inset 0 0 0 2px var(--danger); }
body.editor.check-mode .cue.chk-problem:not(.merge-target) { background: color-mix(in srgb, var(--danger-soft) 70%, var(--panel)); }body.editor.check-mode .cue.chk-fixed { box-shadow: inset 0 0 0 2px var(--ok-fg); }
.chk-label { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--panel); color: var(--danger);
  font: 700 11px/1.2 var(--font-ui); white-space: nowrap; }
.cue.chk-fixed .chk-label { background: var(--ok-bg); color: var(--ok-fg); }
.chk-label .mi, .chk-label svg { width: 12px; height: 12px; }
body.check-mode .cue-head > .cue-badges { margin-left: 0; }
.tr-item.chk-on { position: relative; }
.chk-mirror { position: absolute; z-index: 0; margin: 0; overflow: hidden; pointer-events: none; color: transparent; background: transparent; border-style: solid; border-color: transparent; }
body.editor .tr-item.chk-on > textarea { position: relative; z-index: 1; background: transparent; }
.chk-over { color: transparent; background: color-mix(in srgb, var(--danger-soft) 85%, var(--panel)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 50%, transparent);
  text-decoration: underline; text-decoration-color: var(--danger); text-decoration-thickness: 2px; text-underline-offset: 3px; border-radius: 2px; }

.tr-item.chk-on .pill.chk-dup { display: none; }
.chk-fix { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chk-prob { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; border: 1px dashed var(--danger); border-radius: 12px; background: var(--panel); }
.chk-why { margin: 0; color: var(--danger); font-size: 13px; font-weight: 700; line-height: 1.4; }
.chk-suggest { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.chk-suggest-text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.chk-suggest-label { color: var(--muted); }

@media (max-width: 700px), (max-height: 500px) and (max-width: 1000px) {
  html { scroll-padding-top: calc(var(--pin-h, 0px) + var(--check-h, 0px) + 8px); }  .check-bar { position: sticky; top: 0; z-index: 14; margin-bottom: 8px; }
  body.pin-video .check-bar { top: var(--pin-h, 0px); }
  .check-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .check-text { grid-column: 1 / -1; padding-right: 40px; }
  .check-bar .check-show { position: absolute; top: 6px; right: 6px; width: 36px; min-height: 36px; padding: 0; justify-content: center; }
  .check-bar .check-show .mi, .check-bar .check-show svg { display: inline-block; width: 18px; height: 18px; }
  .check-show-label { display: none; }
  .check-bar .check-fix, .check-bar .check-asis, .check-bar .check-save { min-height: 40px; justify-content: center; font-size: 14px; }
  .check-bar .check-save { grid-column: 1 / -1; }
  body.check-mode .ed-cues { overflow: visible; }}
@media (max-height: 500px) and (max-width: 1000px) {
  .check-hint, .check-after { display: none; }
  .check-bar { padding: 6px 10px; }
  .check-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-right: 44px; }
  .check-text { grid-column: auto; padding-right: 0; flex: 1 1 200px; }
  .check-bar .check-fix, .check-bar .check-asis, .check-bar .check-save { flex: none; min-height: 36px; padding: 0 12px; }
  .check-bar .check-save { grid-column: auto; }
}
