/* lucyna.dev — edet-outliner.css (Batch-2 P3)
   Spreadsheet outline of scenes. Tokens only. */

.dr-otl { display: flex; flex-direction: column; gap: 0.7rem; height: 100%; }

/* ---- Toolbar: ONE consistent control row — same 32px height + 7px radius + mono type
   across the New-scene button, filter, view toggle, collection picker and bulk controls,
   so it reads as a deliberate set, not five mismatched widgets. ---- */
.dr-otl-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.dr-otl-bar .dr-btn,
.dr-otl-filter,
.dr-otl-bulk,
.dr-otl-coll { height: var(--control-h); border-radius: 7px; font-family: var(--font-mono); }
.dr-otl-bar .dr-btn { font-size: var(--text-xs); }
.dr-otl-filter {
    flex: 0 1 240px; min-width: 180px;
    background: var(--bg-elevated); color: var(--fg);
    border: 1px solid var(--rule); padding: 0 0.6rem;
    font-size: var(--text-sm);
}
.dr-otl-filter::placeholder { color: var(--fg-dim); }
.dr-otl-filter:focus { border-color: var(--accent); outline: none; }
.dr-otl-bulk, .dr-otl-coll {
    background: var(--bg-elevated); color: var(--fg);
    border: 1px solid var(--rule); padding: 0 0.5rem; font-size: var(--text-xs);
}
.dr-otl-bulk:disabled { opacity: 0.45; }
.dr-otl-selcount { color: var(--accent); font-size: var(--text-xs); font-weight: 600; }
.dr-otl-hint { margin-left: auto; color: var(--fg-dim); font-size: var(--text-xs); }

/* "＋ New scene" — the primary action (accent-outlined). */
.dr-otl-new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.dr-otl-new:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* bulk Trash — danger tint when enabled. */
.dr-otl-trashbtn:not(:disabled) { color: var(--status-err); border-color: color-mix(in srgb, var(--status-err) 45%, transparent); }
.dr-otl-trashbtn:not(:disabled):hover { border-color: var(--status-err); background: color-mix(in srgb, var(--status-err) 14%, transparent); }
.dr-otl-trashbtn:disabled { opacity: 0.45; }

/* ---- Table: a SOLID panel (the overlay is frosted glass — a transparent table leaked the
   blurred desk through as a chopped seam). Comfortable row height + sticky header. ---- */
.dr-otl-scroll { flex: 1 1 auto; overflow: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); }
.dr-otl-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.dr-otl-table th, .dr-otl-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.dr-otl-th {
    position: sticky; top: 0; z-index: 1;
    background: var(--bg-elevated); color: var(--fg-soft);
    font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
    cursor: pointer; white-space: nowrap; user-select: none;
}
.dr-otl-th:hover { color: var(--accent); }
.dr-otl-sel { width: 30px; text-align: center; }
.dr-otl-num { text-align: right; }
.dr-otl-group td {
    background: var(--bg-elevated); color: var(--accent);
    font-family: var(--font-mono); font-size: var(--text-xs);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
    position: sticky; top: 34px;
}
.dr-otl-row td { transition: background var(--dur-fast) var(--ease-smooth); }
.dr-otl-row:hover td { background: var(--row-hover); }

/* ---- Scene cell: name + inline rename/trash actions (the <td> stays a real table-cell;
   the flex lives on the inner wrapper, else the cell shrinks and the row bg fragments). ---- */
.dr-otl-title { min-width: 180px; }
.dr-otl-titlewrap { display: flex; align-items: center; gap: 0.15rem; }
.dr-otl-open {
    flex: 0 1 auto; min-width: 0;
    background: transparent; border: none; color: var(--fg); cursor: pointer;
    font-family: var(--font-mono); font-size: var(--text-sm); text-align: left; padding: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dr-otl-open:hover { color: var(--accent); }
/* ✎ rename + 🗑 trash — MATCHED icon buttons, always faintly visible (the trash is always
   discoverable), brighten on row hover, take colour on their own hover. */
.dr-otl-rename, .dr-otl-del {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-left: 0.1rem; border-radius: 5px;
    background: transparent; border: none; cursor: pointer; padding: 0;
    color: var(--fg-dim); opacity: 0.5;
    transition: opacity var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth), background var(--dur-fast) var(--ease-smooth);
}
.dr-otl-rename svg, .dr-otl-del svg { width: 14px; height: 14px; }
.dr-otl-row:hover .dr-otl-rename, .dr-otl-row:hover .dr-otl-del { opacity: 0.8; }
.dr-otl-rename:hover { color: var(--accent); opacity: 1; background: var(--row-hover); }
.dr-otl-del:hover { color: var(--status-err); opacity: 1; background: color-mix(in srgb, var(--status-err) 12%, transparent); }

/* ---- inline-edit inputs + selects in cells ---- */
.dr-otl-dim { color: var(--fg-muted); }
.dr-otl-in {
    width: 100%; min-width: 70px; height: 26px; box-sizing: border-box;
    background: transparent; color: var(--fg);
    border: 1px solid transparent; border-radius: 5px; padding: 0 0.35rem;
    font-family: var(--font-mono); font-size: var(--text-sm);
}
.dr-otl-in:hover { border-color: var(--rule); }
.dr-otl-in:focus { border-color: var(--accent); background: var(--bg-elevated); outline: none; }
.dr-otl-num.dr-otl-in { max-width: 70px; text-align: right; }
.dr-otl-chsel { min-width: 130px; }

.dr-otl-empty { color: var(--fg-dim); text-align: center; padding: 1.6rem; }
