/* FreeAssetHub video editor (builds on editor.css) */
body.vid { overflow: hidden; }
.vid .stage { overflow: hidden; align-items: stretch; justify-content: center; background: var(--bg); }
.pvw { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
#pv { display: block; background: #000; box-shadow: 0 6px 30px rgba(20,24,36,.35); touch-action: none; cursor: default; }
.tr { display: flex; align-items: center; gap: 10px; }
.tm { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; min-width: 120px; }
.vempty { position: absolute; top: 12px; left: 0; right: 0; margin: 0; pointer-events: none; }
.vempty[hidden] { display: none; }

.mlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mi { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #111 center/cover no-repeat; padding: 0; color: #fff; }
.mi small { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; font-size: 10px; background: rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.mi i { position: absolute; top: 3px; left: 3px; font-style: normal; font-size: 11px; background: rgba(0,0,0,.6); border-radius: 4px; padding: 0 4px; }
.mi:hover { outline: 2px solid var(--brand); }
.mi.au { background: linear-gradient(135deg, #3b2f8f, #4f46e5); font-size: 26px; display: grid; place-items: center; }

.tlw { flex: none; height: 250px; background: var(--card); border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.tlb { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.tlb .tb { font-size: 13px; height: 32px; padding: 0 12px; font-weight: 600; }
.zl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.zl input { width: 110px; }
.tls { flex: 1; min-height: 0; overflow: auto; position: relative; background: var(--bg); touch-action: pan-x pan-y; }
.tli { position: relative; min-height: 100%; padding-bottom: 14px; }
.rul { height: 24px; position: relative; border-bottom: 1px solid var(--line); background: var(--card); cursor: pointer; }
.rul span { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--line); font-size: 10px; color: var(--muted); padding-left: 3px; line-height: 24px; pointer-events: none; }
.lane { position: relative; height: 34px; margin-top: 6px; }
.lane.v { height: 58px; }
.blk { position: absolute; top: 0; bottom: 0; border-radius: 8px; border: 2px solid transparent; overflow: hidden; display: flex; align-items: center; color: #fff; font-size: 11px; background: #3b3f55 center/auto 100% repeat-x; cursor: grab; touch-action: none; user-select: none; }
.blk.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(79,70,229,.35); }
.blk b { position: relative; z-index: 1; padding: 0 8px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.blk.t { background: #4f46e5; }
.blk.i { background: #0e9f6e; }
.blk.m { background: #b45309; cursor: pointer; }
.hd { position: absolute; top: 0; bottom: 0; width: 14px; z-index: 2; cursor: ew-resize; background: rgba(255,255,255,.28); touch-action: none; }
.hd.l { left: 0; border-radius: 6px 0 0 6px; }
.hd.r { right: 0; border-radius: 0 6px 6px 0; }
.phd { position: absolute; top: 0; bottom: 0; width: 2px; background: #ef4444; z-index: 5; pointer-events: none; }
.phd::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #ef4444; }

.exm { position: fixed; inset: 0; z-index: 2000; background: rgba(10,12,20,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.exb { background: var(--card); color: var(--fg); max-width: 400px; width: 100%; border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: grid; gap: 12px; }
.exb h3 { margin: 0; font-size: 18px; }
.exb p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.exb label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.exb select { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 0 8px; }
.exb .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exb .bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.exb .bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .15s; }
.exb .acts { display: flex; gap: 10px; justify-content: flex-end; }
.exb .acts button { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; background: transparent; color: var(--muted); }
.exb .acts .pri { background: var(--brand); color: #fff; }
.ctx textarea { height: 36px; min-width: 150px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 6px 8px; resize: none; font: inherit; }

.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.fgrid .gh { grid-column: 1 / -1; font-size: 12px; font-weight: 700; margin: 8px 0 0; opacity: .75; }
.fc { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--card); color: var(--fg); overflow: hidden; font-size: 11px; cursor: pointer; }
.fc span { display: block; padding: 4px 2px 5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc.on { outline: 2px solid var(--brand); }
.fc .pvb { height: 54px; background: #22263a center/cover no-repeat; display: grid; place-items: center; color: var(--brand); }
.fc .pvb svg { width: 70%; height: 80%; }
.fc .pvb.sample { background-image: linear-gradient(135deg, #f59e0b, #ef4444 40%, #6366f1 75%, #22d3ee); }
.fc .pvb.ts-p { font: 700 22px Poppins, sans-serif; }
.fxp-vig { background: radial-gradient(circle, #cfd3e6 20%, #000 100%) !important; }
.fxp-grain { background: repeating-conic-gradient(#777 0 25%, #bbb 0 50%) 0 0/4px 4px !important; }
.fxp-glitch { background: linear-gradient(90deg, #ff0046 33%, #00e5ff 33% 66%, #ddd 66%) !important; }
.fxp-shake { background: repeating-linear-gradient(60deg, #8b93b8 0 6px, #cfd3e6 6px 12px) !important; }
.psec { display: grid; gap: 8px; margin-top: 10px; }
.psec h4, .pane h4 { margin: 12px 0 2px; font-size: 13px; }
.prow { display: grid; grid-template-columns: 84px 1fr 48px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.prow em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); }
.prow select { grid-column: 2 / 4; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); padding: 0 6px; }
.blk .trm { position: absolute; left: 16px; top: 2px; z-index: 2; font-style: normal; font-size: 11px; background: rgba(0,0,0,.65); border-radius: 4px; padding: 0 4px; }
#undo:disabled, #redo:disabled { opacity: .4; }
@media (max-width: 820px) {
  .tlw { height: 205px; }
  .zl input { width: 80px; }
  .mlist { grid-template-columns: repeat(4, 1fr); }
  .ctx { min-height: 44px; }
}
.chips { flex-wrap: wrap; }
.tabs { overflow-y: auto; }
.blk.f { background: #7c3aed; }
.srow { display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: start; }
.srow .stm { border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 8px; height: 32px; font-size: 11px; }
.srow textarea { border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); padding: 5px 7px; font: inherit; font-size: 12px; resize: vertical; }
.pri2 { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; height: 40px; }
.pri2:disabled { opacity: .5; }
.psec .bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.psec .bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.fc .pvb.an-g { font-size: 26px; color: var(--brand); }
.blk.g { background: #0d9488; }
.blk.x { background: #be185d; }
.lane.trl { height: 26px; }
.fxp-beat { background: radial-gradient(circle, #fff 0 12%, #6366f1 13% 30%, #22263a 31% 48%, #6366f1 49% 60%, #22263a 61%) !important; }

.fxp-spec { background: repeating-linear-gradient(90deg, #ec4899 0 3px, transparent 3px 6px), linear-gradient(#0b0d1a,#0b0d1a) !important; -webkit-mask: none; position: relative; }
.fxp-spec::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 56%; transform: translateY(-50%); background: repeating-linear-gradient(90deg, #f0abfc 0 3px, transparent 3px 6px); -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); clip-path: polygon(0 50%, 10% 20%, 20% 70%, 30% 5%, 40% 80%, 50% 0, 60% 90%, 70% 15%, 80% 65%, 90% 30%, 100% 50%, 100% 50%, 90% 70%, 80% 35%, 70% 85%, 60% 10%, 50% 100%, 40% 20%, 30% 95%, 20% 30%, 10% 80%); }

.snapg { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed #facc15; z-index: 4; pointer-events: none; }

.dropov { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(79,70,229,.82); pointer-events: none; }
.dropov.on { display: flex; }
.dropov div { border: 3px dashed #fff; border-radius: 20px; padding: 40px 56px; color: #fff; font-size: 26px; font-weight: 800; }

.fxp-rgb { background: linear-gradient(90deg, #ff2d55 0 33%, #22c55e 33% 66%, #3b82f6 66%) !important; mix-blend-mode: normal; }
.fxp-flash { background: radial-gradient(circle, #fff 0 25%, #fde68a 45%, #1f2937 100%) !important; }
.fxp-scan { background: repeating-linear-gradient(0deg, #9aa3c7 0 2px, #1b1e2e 2px 5px) !important; }
.fxp-vhs { background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px 5px), linear-gradient(90deg, #7c3aed, #ec4899 50%, #38bdf8) !important; }
.fxp-pix { background: conic-gradient(#8b93b8 25%, #cfd3e6 0 50%, #5b6385 0 75%, #aab1d3 0) 0 0/14px 14px !important; }
.fxp-mirror { background: linear-gradient(90deg, #f59e0b, #ef4444 25%, #6366f1 50%, #ef4444 75%, #f59e0b) !important; }
.fxp-cine { background: linear-gradient(#000 0 22%, #8b93b8 22% 78%, #000 78%) !important; }
.fxp-breathe { background: radial-gradient(circle, #cfd3e6 0 20%, #6366f1 21% 38%, #22263a 39% 52%, #6366f1 53% 62%, #22263a 63%) !important; }
.fxp-leak { background: radial-gradient(circle at 25% 15%, #fde047, #fb7185 45%, #22263a 85%) !important; }
.fxp-dust { background: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px), radial-gradient(circle at 70% 20%, #fff 0 1.5px, transparent 3px), radial-gradient(circle at 55% 70%, #fff 0 2.5px, transparent 4px), radial-gradient(circle at 85% 75%, #fff 0 1.5px, transparent 3px), #22263a !important; }
.fxp-flicker { background: repeating-linear-gradient(90deg, #cfd3e6 0 6px, #454b6b 6px 12px, #aab1d3 12px 16px, #2a2e46 16px 22px) !important; }

.zb { width: 28px; height: 28px; padding: 0; font-size: 18px; line-height: 1; font-weight: 700; }
.blk.nb { overflow: visible; }
.blk.nb .hd { width: 12px; background: rgba(255,255,255,.55); border-radius: 4px; }
.blk.nb .hd.l { left: -9px; }
.blk.nb .hd.r { right: -9px; }

.tli { min-width: 100%; }
.rul { position: sticky; top: 0; z-index: 8; }
.phtag { position: absolute; top: 2px; transform: translateX(-50%); background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; pointer-events: none; z-index: 9; white-space: nowrap; }

.tlgrip { flex: none; height: 14px; margin-top: -7px; position: relative; z-index: 20; cursor: ns-resize; touch-action: none; display: grid; place-items: center; }
.tlgrip i { width: 56px; height: 5px; border-radius: 3px; background: var(--line); display: block; }
.tlgrip:hover i { background: var(--brand); }

.crvg { height: 52px; margin: 6px 0 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.crvg svg { width: 100%; height: 100%; display: block; }

.panel { overflow-x: auto; min-width: 0; }
.prow { grid-template-columns: 84px minmax(0, 1fr) 54px; }
.chips button { max-width: 100%; white-space: normal; }
.pgrip { flex: none; width: 10px; margin-left: -5px; position: relative; z-index: 15; cursor: ew-resize; touch-action: none; display: grid; place-items: center; }
.pgrip i { width: 5px; height: 56px; border-radius: 3px; background: var(--line); display: block; }
.pgrip:hover i { background: var(--brand); }
@media (max-width: 820px) { .panel { width: auto !important; } .pgrip { display: none; } }

.marq { position: absolute; z-index: 12; border: 1px solid var(--brand); background: rgba(79,70,229,.15); pointer-events: none; }
.lpw { display: inline-flex; align-items: center; gap: 4px; }
.lpw input { width: 52px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); padding: 0 6px; }
.blk.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(79,70,229,.45); }
.tlb { flex-wrap: wrap; row-gap: 4px; }
.tlb > .eh-sp { flex: 1 1 0; min-width: 0; }

@media (max-width: 820px) {
  .zb { width: 36px; height: 36px; }
}

.kfm { position: absolute; bottom: 2px; width: 8px; height: 8px; background: #facc15; border: 1px solid #000; transform: translateX(-50%) rotate(45deg); z-index: 2; pointer-events: none; }
.kfr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; margin: 8px 0; }
.kfh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }

.fc .pvb.pvm { position: relative; overflow: hidden; height: 84px; }
.fc .pvb.pvm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: pvm 4.8s infinite; }
.fc .pvb.pvm .pvt { position: absolute; inset: 0; opacity: .28; mix-blend-mode: color; }
.fc .pvb.pvm .pvi { position: absolute; right: 4px; bottom: 3px; font-size: 14px; font-weight: 400; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
@keyframes pvm { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fc .pvb.pvm img { animation: none; } .fc .pvb.pvm img:first-of-type { opacity: 1; } }

.fc.mtc { position: relative; }
.fc .mtp { position: absolute; top: 5px; left: 5px; z-index: 3; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.65); color: #fff; border-radius: 10px; padding: 2px 7px; cursor: pointer; line-height: 1.3; }
.fc .mtp:hover { background: var(--brand, #6366f1); }
.mpv { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 12px; }
.mpb { position: relative; background: #151826; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-height: 96vh; }
.mpx { position: absolute; top: 6px; right: 8px; z-index: 5; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; }
.mps { position: relative; overflow: hidden; border-radius: 10px; height: min(66vh, 560px); aspect-ratio: 9/16; }
.mps img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.mps .mpt { position: absolute; inset: 0; z-index: 3; mix-blend-mode: color; pointer-events: none; }
.mps .mpo { position: absolute; z-index: 4; transform: translate(-50%,-50%); white-space: nowrap; line-height: 1.15; opacity: 0; }
.mpc { color: #fff; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.mpc small { color: #9aa3c0; }

.mpbar { position: fixed; z-index: 450; left: 50%; top: 8px; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: #151826ee; color: #fff; border: 1px solid #3b4268; border-radius: 12px; padding: 8px 12px; max-width: calc(100vw - 16px); font-size: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }

.fc .pvb.pvm { z-index: 0; }
.fc .mtp { z-index: 5; }

.mpbar { left: 8px; right: 8px; top: 8px; transform: none; margin: 0 auto; width: fit-content; }
.mpbar span { flex: 1 1 200px; text-align: center; }
.mpbar button { background: #6366f1; color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font: 700 12px Poppins, sans-serif; cursor: pointer; }
.mpbar button:last-child { background: #374151; }

.tr .vm { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.tr .vm input[type=range] { width: 90px; }
.tr .vm .vml { font-size: 11px; min-width: 32px; color: #6b7280; }

.aurow { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.aurow .aunm { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: 600 12px Poppins, sans-serif; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 0; }

.mi .mix { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; line-height: 20px; text-align: center; cursor: pointer; z-index: 2; }
.mi .mix:hover { background: #dc2626; }

/* theme override: light or dark, chosen with the header button (default follows the system) */
html[data-theme="light"] { --bg:#eef0f6; --card:#fff; --fg:#141824; --muted:#5b6477; --line:#e3e6ee; --soft:#eef0ff; color-scheme: light; }
html[data-theme="dark"] { --bg:#14161d; --card:#1d2029; --fg:#eceef5; --muted:#9aa3b8; --line:#2c3040; --soft:#262a45; color-scheme: dark; }
#theme { font-size: 13px; font-weight: 600; white-space: nowrap; }
/* assistant tab */
.asin { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg); padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; }
.asgo { width: 100%; margin: 8px 0; height: 38px; }
.aschips { flex-wrap: wrap; }
.assc { width: 100%; height: 34px; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); padding: 0 6px; }
.aslog { margin-top: 12px; display: grid; gap: 6px; }
.aslog div { font-size: 12px; line-height: 1.4; padding: 7px 9px; border-radius: 8px; background: var(--soft); color: var(--fg); border-left: 3px solid var(--brand); }
.aslog div.bad { border-left-color: #ef4444; }
/* multi select in media */
.mpick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.mpick[hidden] { display: none; }
.mpick .tb { font-size: 12px; height: 32px; padding: 0 10px; font-weight: 600; }
.mpick button:disabled { opacity: .45; }
.mi.pick { outline: 3px solid var(--brand); outline-offset: -3px; }
.mi .pn { position: absolute; top: 3px; right: 3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 11px/20px system-ui; text-align: center; text-decoration: none; }
.mi .mix { z-index: 2; }
/* export percent */
.expct { font-size: 38px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--brand); line-height: 1; }

.fxp-bloom { background: radial-gradient(circle, #fff 0 18%, #ffd7a8 40%, #3b2f4f 100%) !important; }
.fxp-zoomblur { background: repeating-radial-gradient(circle, #cfd3e6 0 3px, #555b78 3px 8px) !important; }
.fxp-neg { background: linear-gradient(90deg, #111 50%, #eee 50%) !important; }

.pvw .tr .tb { font-size: 12px; padding: 4px 10px; width: auto; height: auto; }
.pvw .tr .tb.on { background: #4f46e5; color: #fff; }

.fxp-xk3d { background: linear-gradient(135deg,#05060c 0 12%,#8fb4ff 12% 88%,#05060c 88%) !important; box-shadow: inset 0 0 0 4px #05060c; }
.fxp-xquake { background: repeating-linear-gradient(90deg,#ff2d55 0 5px,#22d3ee 5px 10px,#111 10px 13px) !important; }
.fxp-xstat { background: repeating-linear-gradient(0deg,#ddd 0 1px,#444 1px 3px,#999 3px 4px,#222 4px 7px) !important; }
.fxp-xvint { background: radial-gradient(circle,#f6c27a 20%,#a8541a 70%,#3a1a05) !important; }
.fxp-xripple { background: repeating-radial-gradient(circle at 50% 60%,#bfe3ff 0 4px,#4f8fd6 4px 9px) !important; }
.fxp-xdrop { background: radial-gradient(circle at 30% 35%,#fff 0 6%,#8fd0ff 7% 16%,transparent 17%),radial-gradient(circle at 68% 62%,#fff 0 5%,#8fd0ff 6% 22%,transparent 23%),#2b6cb0 !important; }
.fxp-xerr { background: repeating-linear-gradient(90deg,#1e3a8a 0 8px,#22d3ee 8px 12px,#0b1120 12px 22px) !important; }
.fxp-xglit { background: linear-gradient(90deg,#ff2d55 0 35%,#ddd 35% 65%,#22d3ee 65%) !important; }
.fxp-xlines { background: linear-gradient(90deg,#334 0 58%,#fff 58% 61%,#9ab 61%) !important; }
.fxp-xrain { background: linear-gradient(120deg,#ff3b6b,#ffd23b,#3bff8c,#3b8cff,#b43bff) !important; }

.fc { position: relative; }
.fc .fxadd { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 50%; background: #4f46e5; color: #fff; display: none; font-size: 18px; line-height: 23px; text-align: center; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.5); z-index: 6; }
.fc:hover .fxadd, .fc.on .fxadd { display: block; }
.fc .fxadd:hover { background: #6366f1; transform: scale(1.1); }

.fc .fxadd { font-size: 0; line-height: 0; }
.fc .fxadd::before, .fc .fxadd::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 1px; transform: translate(-50%, -50%); }
.fc .fxadd::before { width: 12px; height: 2px; }
.fc .fxadd::after { width: 2px; height: 12px; }

#dtp h4 { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
#dtp h4::after { content: "\25BE"; font-size: 12px; opacity: .7; }
#dtp h4.dtc::after { content: "\25B8"; }
#dtp h4:hover { color: var(--brand, #6366f1); }

.rpanel { width: 290px; flex: none; background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; padding: 14px; min-height: 0; }
.rpanel .rhd { margin: 0 0 4px; font-size: 14px; }
.rtog { flex: none; width: 16px; align-self: center; height: 64px; padding: 0; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--card); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.rtog:hover { color: var(--brand, #6366f1); }
body.rc .rpanel { display: none; }
#tabs button[data-tab="detail"] { display: none; }
@media (max-width: 820px) { .rpanel, .rtog { display: none !important; } #tabs button[data-tab="detail"] { display: flex; } }
