/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--panel); border-left: 1px solid var(--line);
          transform: translateX(100%); transition: transform .25s ease; z-index: 31; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.drawer.show { transform: none; }
.dh { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; }
.dh .cv { width: 96px; height: 96px; border-radius: 14px; background: var(--panel3) center/cover; border: 1px solid var(--line2); }
.dh .idv { font-size: 14px; }
.lbl-in { width: 100%; margin-top: 6px; height: 34px; background: transparent; border: 1px solid transparent; border-radius: 8px;
          padding: 0 8px; margin-left: -8px; font-size: 18px; font-weight: 600; outline: none; }
.lbl-in:hover { border-color: var(--line2); } .lbl-in:focus { border-color: var(--accent); background: var(--panel2); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line2);
            background: var(--panel2); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--panel3); }
.db { overflow: auto; padding: 18px 20px 30px; display: flex; flex-direction: column; gap: 18px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { padding: 10px 12px; } .chip b { display: block; font-size: 15px; } .chip span { color: var(--muted); font-size: 11.5px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 70px; padding: 10px 12px 4px; }
.hours i { display: block; background: linear-gradient(180deg, var(--accent), rgba(61,139,253,.35)); border-radius: 3px 3px 1px 1px; min-height: 2px; }
.hours-x { display: grid; grid-template-columns: repeat(24, 1fr); padding: 0 12px 8px; color: var(--dim); font-size: 10px; }
.hours-x span { text-align: center; }
.day { margin-bottom: 4px; } .day h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.th { cursor: pointer; border-radius: 9px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.th:hover { border-color: var(--accent); }
.th img, .th .ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--panel3); }
.th { position: relative; }
.th.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.th .sc { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
          background: rgba(10,14,19,.8); border: 1px solid rgba(255,255,255,.15); color: #cfe2ff; }
.dscene .hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.dscene .hd b { color: var(--text); font-weight: 600; }
.dscene .scene { border-radius: 0 0 var(--r) var(--r); cursor: zoom-in; }
.dscene .none { padding: 26px 16px; text-align: center; color: var(--dim); font-size: 13px; }
.th .gb { position: absolute; left: 4px; bottom: 24px; font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 6px;
          background: rgba(61,139,253,.92); color: #fff; }
.th.open { border-color: var(--accent); }
.th.mem { border-style: dashed; opacity: .92; }
.th .cd { position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(6,9,13,.6); }
.percam { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 12.5px; }
.pc .nm { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pc .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.pc .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--panel3); overflow: hidden; }
.pc .track i { display: block; height: 100%; border-radius: 3px; }
.pc .last { grid-column: 1 / -1; font-size: 11.5px; color: var(--dim); }
.route { padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; font-size: 12px; color: var(--muted); }
.route b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.th small { display: block; text-align: center; font-size: 11px; color: var(--muted); padding: 3px 0; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.merge { display: none; gap: 8px; } .merge.show { display: flex; }
.merge input { flex: 1; height: 32px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font-family: var(--mono); font-size: 12.5px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line2); color: var(--muted); }
.tag.ok { color: #bbf7d0; border-color: rgba(34,197,94,.45); background: var(--ok-soft); }
