opencut_ui: drop dead .char-* / .plan-* CSS

Both class families had zero JS references in the rebuilt UI. Removed all of
.char-* (character inspector/chips — no surface in the new editor) and the
.plan-* plan-strip styling (plan UI is gone). Kept the two still-live classes
that share neither prefix's full set: .clip-chars/.clip-char (clip badges) and
.clip.off-plan (removed_from_plan marker).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
digital-garbage
2026-06-20 10:44:48 +03:00
co-authored by Claude Opus 4.8
parent a9001123bd
commit 41e0cc48d5
+2 -58
View File
@@ -487,26 +487,6 @@ input[type=number] { font-family: var(--font-mono); }
.insp-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; color: var(--amber); text-transform: uppercase; }
.insp-hint { font-size: 11px; color: var(--faint); margin: -4px 0 12px; }
.insp-block { margin-bottom: 16px; }
.char-hint { margin-bottom: 8px; }
.char-list { display: flex; flex-direction: column; gap: 6px; }
.char-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line);
border-radius: 8px; background: var(--ink-2); cursor: pointer; transition: border-color .12s, background .12s; }
.char-row:hover { border-color: #4a4334; background: var(--ink-3); }
.char-row.on-scene { border-color: var(--teal-soft); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25); }
.char-thumb { width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; overflow: hidden;
background: var(--ink-0); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--faint); }
.char-thumb img { width: 100%; height: 100%; object-fit: cover; }
.char-info { flex: 1; min-width: 0; }
.char-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-sub { font-size: 10px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-badge { font-size: 9px; font-family: var(--font-mono); color: var(--teal-soft); text-transform: uppercase; letter-spacing: .04em; }
.char-actions { display: flex; gap: 2px; flex-shrink: 0; }
.char-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.char-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 8px;
border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); color: var(--amber-2); }
.char-chip.empty { color: var(--faint); font-style: italic; border-style: dashed; }
.char-chip-rm { border: none; background: transparent; color: var(--faint); cursor: pointer; padding: 0 2px; font-size: 10px; }
.char-chip-rm:hover { color: var(--danger); }
.clip-chars { display: flex; flex-wrap: wrap; gap: 3px; flex-shrink: 0; }
.clip-char { font-size: 9px; font-family: var(--font-mono); color: var(--amber-2); background: #2a2418;
border: 1px solid #4a4334; border-radius: 4px; padding: 1px 4px; white-space: nowrap; }
@@ -1431,44 +1411,8 @@ body.tour-mode { overflow: hidden; }
.tour-faq-item p { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.tour-faq-empty { color: var(--muted); font-size: 12px; margin: 0; }
/* ───────────────────────── PLAN STRIP ───────────────────────── */
.plan-strip { flex: 0 0 auto; display: flex; flex-direction: column; min-height: 0; max-height: 320px; border-top: 1px solid var(--line); }
.plan-head .plan-head-sub { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-left: 2px; }
.plan-strip.collapsed .plan-body { display: none; }
.plan-body { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px; overflow: auto; }
.plan-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; align-items: stretch; }
.plan-card {
flex: 0 0 190px; display: flex; gap: 8px; align-items: flex-start; padding: 8px;
border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); cursor: pointer; transition: border-color .12s;
}
.plan-card:hover { border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); }
.plan-card.sel, .plan-card.open { border-color: var(--amber); }
.plan-card.drop-target, .plan-row.drop-target { outline: 2px dashed var(--teal); outline-offset: -2px; border-radius: 8px; }
.plan-thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; overflow: hidden; background: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plan-thumb-glyph { font-family: var(--font-mono); font-size: 15px; color: var(--faint); }
.plan-card-meta { min-width: 0; flex: 1; }
.plan-card-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.plan-card-no { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.plan-chip { font-size: 10px; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.plan-chip.sync { color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.plan-chip.edited { color: var(--amber-2); background: var(--amber-soft); }
.plan-chip.none { color: var(--faint); background: var(--ink-3); }
.plan-card-prompt { font-size: 12px; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plan-chev { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); cursor: pointer; padding: 2px 7px; font-size: 11px; }
.plan-chev:hover { border-color: var(--amber); color: var(--amber-2); }
.plan-add { flex: 0 0 auto; align-self: center; background: transparent; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); padding: 10px 14px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.plan-add:hover { border-color: var(--amber); color: var(--amber-2); }
.plan-editor { border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line)); border-radius: 8px; background: var(--ink-2); padding: 10px; }
.plan-editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.plan-editor-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.plan-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.plan-editor-grid > .plan-field:first-child { grid-column: 1 / -1; }
.plan-field { display: flex; flex-direction: column; gap: 4px; }
.plan-field > span { font-size: 11px; color: var(--faint); }
.plan-edit-prompt { width: 100%; box-sizing: border-box; }
.plan-editor-note { font-size: 11px; color: var(--faint); margin: 8px 0; }
.plan-editor-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* ───────────────────────── PLAN (legacy) ───────────────────────── */
/* The plan-strip UI is gone; only the off-plan clip marker survives. */
.clip.off-plan { outline: 1px dashed color-mix(in srgb, var(--teal) 45%, transparent); outline-offset: -2px; }
/* ───────────────────────── COMPOSER BUTTON (header) ───────────────────────── */