/* 焕居：电脑端深色工作台，配色和尺寸照电商智能平台（飞象深色）：页面 #000、面板 #18181B、
   小块 #1D1D20、边线 #2F2F33、强调色 #7B76FF 纯色，不用渐变和发光。 */
:root {
  color-scheme: dark;
  --page: #000;
  --rail: #222225;
  --surface: #18181b;
  --muted-bg: #1d1d20;
  --hover: #3a3a40;
  --line: #2f2f33;
  --line-strong: #484850;
  --text: #fff;
  --text-2: rgb(255 255 255 / 80%);
  --text-3: rgb(255 255 255 / 50%);
  --accent: #7b76ff;
  --accent-hover: #8f8bff;
  --accent-soft: rgb(123 118 255 / 14%);
  --danger: #ff7a72;
  --required: #ff5c50;
  --r-panel: 20px;
  --r-ctl: 10px;
  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--text); font: 14px/1.6 var(--font); min-width: 1100px; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
a { color: inherit; }
h2, h3 { margin: 0; }

/* ---------- 左侧窄栏 ---------- */
.rail { position: fixed; inset: 0 auto 0 0; width: 85px; background: var(--rail); border-right: 1px solid var(--line); padding: 24px 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 5; }
.rail-logo { margin-bottom: 30px; }
.rail-logo img { width: 46px; height: 46px; border-radius: 12px; }
.rail-item { width: 62px; height: 64px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--text); font-size: 12px; font-weight: 300; }
.rail-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.rail-item:hover, .rail-item.on { font-weight: 500; }
.rail-item:hover svg, .rail-item.on svg { stroke-width: 2.1; opacity: 1; }
.rail-item.on { background: rgb(255 255 255 / 6%); }

/* ---------- 主区 ---------- */
.app { position: fixed; inset: 0 0 0 85px; display: flex; flex-direction: column; padding: 0 16px 16px; }
.crumbs { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.crumbs b { color: var(--text); font-weight: 600; letter-spacing: 1px; }
.crumbs i { font-style: normal; }
.crumbs span { color: var(--text-2); }

.work { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px 1fr; gap: 16px; }
.work.single { grid-template-columns: 1fr; }
.side, .stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.side-scroll { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.side-foot { flex: none; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.stage-head { flex: none; display: flex; align-items: baseline; gap: 14px; padding: 20px 24px 14px; }
.stage-head.inline { padding: 4px 0 14px; }
.stage-head h2 { font-size: 20px; font-weight: 650; white-space: nowrap; }
.stage-scroll { flex: 1; overflow-y: auto; padding: 0 24px 24px; }
.muted { color: var(--text-3); font-size: 13px; }

/* 滚动条 */
.side-scroll::-webkit-scrollbar, .stage-scroll::-webkit-scrollbar { width: 8px; }
.side-scroll::-webkit-scrollbar-thumb, .stage-scroll::-webkit-scrollbar-thumb { background: #2f2f33; border-radius: 4px; }

/* ---------- 表单 ---------- */
.sec { padding: 16px 0 18px; border-bottom: 1px solid var(--muted-bg); }
.sec:last-child { border-bottom: 0; }
.sec h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; padding-left: 10px; position: relative; }
.sec h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--text); }
.sec h3 em { color: var(--required); font-style: normal; }
.sec h3 small, .sub small { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 6px; }
.sub { margin: 14px 0 8px; font-size: 13px; color: var(--text-2); }
.sub.muted { color: var(--text-3); margin-top: 0; }
.err { color: var(--danger); font-size: 13px; margin: 0 0 8px; }
.err:empty { display: none; }

.field { width: 100%; background: var(--muted-bg); border: 1px solid transparent; border-radius: var(--r-ctl); padding: 10px 12px; font: inherit; color: var(--text); margin-top: 10px; resize: vertical; }
.sub + .field { margin-top: 0; }
.field::placeholder { color: var(--text-3); }
.field:focus { outline: none; border-color: var(--accent); }

.upload { display: flex; align-items: center; gap: 14px; background: var(--muted-bg); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px; cursor: pointer; transition: border-color .15s; }
.upload:hover { border-color: var(--accent); }
.upload-plus { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 24px; font-weight: 300; display: grid; place-items: center; flex: none; background-size: cover; background-position: center; }
.upload.has .upload-plus { font-size: 0; }
.upload-text { display: flex; flex-direction: column; min-width: 0; }
.upload-text b { font-weight: 600; font-size: 14px; }
.upload-text small { color: var(--text-3); font-size: 12px; line-height: 1.5; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { text-align: left; background: var(--muted-bg); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.mode:hover { background: #26262a; }
.mode b { display: block; font-size: 14px; font-weight: 600; }
.mode span { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.mode.on { border-color: var(--accent); background: var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--muted-bg); border: 1px solid transparent; border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--text-2); transition: .15s; }
.chip:hover { background: var(--hover); color: var(--text); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

.seg { margin-left: auto; display: inline-flex; background: var(--muted-bg); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: none; padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.seg button.on { background: var(--line-strong); color: var(--text); }

.style-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.style { position: relative; padding: 0; text-align: left; background: var(--muted-bg); border: 1px solid transparent; border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.style img, .style .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #26262a; }
.style div { padding: 7px 10px 9px; }
.style b { display: block; font-size: 13px; font-weight: 600; }
.style span { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style .tick, .gal .tick { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgb(255 255 255 / 70%); background: rgb(0 0 0 / 35%); color: transparent; font-size: 12px; display: grid; place-items: center; }
.style.on { border-color: var(--accent); }
.style.on .tick, .gal.on .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.style.off { opacity: .4; }
.chip.off { opacity: .4; }

details.more summary { list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary h3 { margin-bottom: 0; }
details.more summary h3::after { content: "展开"; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-3); }
details.more[open] summary h3::after { content: "收起"; }

.switch { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.switch input { display: none; }
.switch span { width: 36px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; transition: .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { left: 18px; }

.primary { width: 100%; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; height: 46px; transition: background .15s; }
.primary:hover { background: var(--accent-hover); }
.primary:disabled { background: var(--line); color: var(--text-3); cursor: default; }
.foot-note { margin: 0 0 10px; font-size: 13px; color: var(--text-3); }
.foot-note b { color: var(--text); font-weight: 600; }
.ghost { background: var(--line); border: 0; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.ghost:hover { background: var(--line-strong); }
.ghost:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; color: var(--text-2); text-decoration: underline; font-size: 13px; padding: 4px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--muted-bg); border-radius: 6px; padding: 2px 9px; font-size: 12px; color: var(--text-2); }

/* ---------- 右侧舞台：新建 ---------- */
.photo-preview { position: relative; background: #0c0c0e; border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.photo-preview > img { width: 100%; max-height: 46vh; object-fit: contain; }
.photo-ref { position: absolute; right: 14px; bottom: 14px; width: 180px; border-radius: 10px; overflow: hidden; border: 2px solid rgb(255 255 255 / 80%); box-shadow: 0 18px 44px -16px rgb(0 0 0 / 70%); }
.photo-ref img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-ref span { position: absolute; left: 8px; top: 8px; font-size: 11px; background: rgb(0 0 0 / 60%); border: 1px solid rgb(255 255 255 / 20%); padding: 1px 8px; border-radius: 6px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gal { position: relative; padding: 0; border: 1px solid var(--muted-bg); border-radius: 14px; overflow: hidden; background: var(--muted-bg); text-align: left; transition: border-color .15s, transform .2s; }
.gal:hover { border-color: var(--line-strong); }
.gal.on { border-color: var(--accent); }
.gal img, .gal .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #26262a; transition: transform .4s; }
.gal:hover img { transform: scale(1.03); }
.gal div { padding: 10px 14px 12px; }
.gal b { font-size: 15px; font-weight: 600; }
.gal span { display: block; font-size: 12.5px; color: var(--text-3); }
.gal .tick { top: 12px; right: 12px; width: 24px; height: 24px; }

/* ---------- 右侧舞台：效果图 ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; margin-bottom: 28px; }
.result { background: var(--muted-bg); border: 1px solid var(--muted-bg); border-radius: 14px; overflow: hidden; }
.result.picked { border-color: var(--accent); }
.result .pic { position: relative; background: #0c0c0e; user-select: none; -webkit-user-select: none; cursor: zoom-in; touch-action: none; }
.result .pic img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: contain; }
.result .pic .before { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .12s; }
.result .pic.peek .before { opacity: 1; }
.result .pic .tag { position: absolute; left: 12px; top: 12px; background: rgb(0 0 0 / 60%); border: 1px solid rgb(255 255 255 / 20%); font-size: 12px; padding: 2px 10px; border-radius: 6px; }
.result .pic.peek .tag::after { content: " · 原照片"; }
.result .wait { position: relative; aspect-ratio: var(--ar, 4 / 3); display: grid; place-items: center; color: var(--text-2); text-align: center; }
.result .wait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .25; filter: grayscale(.6); }
.result .wait div { position: relative; font-size: 13px; }
.result .wait small { color: var(--text-3); }
.spin { width: 26px; height: 26px; border: 2.5px solid rgb(255 255 255 / 15%); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result .row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.result .row b { font-size: 14px; font-weight: 600; margin-right: auto; }
.vers { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.vers button { border: 0; background: var(--line); border-radius: 6px; width: 24px; height: 24px; }
.vers button:disabled { opacity: .35; cursor: default; }
.pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.pick input { width: 16px; height: 16px; accent-color: var(--accent); }
.result .note { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--text-3); }
.result .note.bad { color: var(--danger); }

/* ---------- 作品库 ---------- */
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lib { display: block; text-decoration: none; padding: 0; text-align: left; background: var(--muted-bg); border: 1px solid var(--muted-bg); border-radius: 14px; overflow: hidden; }
.lib:hover { border-color: var(--line-strong); }
.lib img, .lib .noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #26262a; display: grid; place-items: center; }
.library.drafts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.library.drafts img { aspect-ratio: 4 / 3; }
.sub-head { margin-top: 30px; }
.lib div { padding: 10px 14px 12px; }
.lib b { display: block; font-size: 14px; font-weight: 600; }
.lib small { color: var(--text-3); font-size: 12px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 80px 0; }

/* ---------- 顶部步骤条 ---------- */
.steps { margin: 0 0 0 auto; padding: 0; list-style: none; display: flex; align-items: center; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.steps li + li::before { content: ""; width: 34px; height: 1px; background: var(--line-strong); margin-right: 2px; }
.steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; }
.steps li.on { color: var(--text); font-weight: 600; }
.steps li.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.done { color: var(--text-2); }
.steps li.done i { border-color: var(--accent); color: var(--accent); }
.steps li[data-href]:not([data-href=""]) { cursor: pointer; }
.steps li[data-href]:not([data-href=""]):hover { color: var(--text); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span span { color: var(--text-2); }
.crumbs span i { margin: 0 10px; }
.more-confirm { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 10px 10px 14px; background: var(--muted-bg); border-radius: 12px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.more-confirm span { flex: 1; min-width: 0; }
.more-confirm b { color: var(--text); font-weight: 600; }
.more-confirm .primary { width: auto; flex: none; height: 36px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.field.first { margin-top: 0; }

/* ---------- 挑效果图：改名 ---------- */
#jobTitle.unnamed { color: var(--text-3); }
.rename { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.rename .field { margin-top: 0; flex: 1; }
.rename .ghost { height: 40px; padding: 0 16px; flex: none; }

/* ---------- 挑效果图：已出的视频 ---------- */
.vrow { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; }
.vrow:hover { background: var(--muted-bg); }
.vrow img, .vrow i { width: 48px; height: 64px; border-radius: 6px; object-fit: cover; background: #26262a; flex: none; }
.vrow b { display: block; font-size: 13px; font-weight: 600; }
.vrow small { color: var(--text-3); font-size: 12px; }

/* ---------- 编辑视频文字 ---------- */
.sec h3 .add { margin-left: auto; font-weight: 500; }
.text-item { background: var(--muted-bg); border: 1px solid transparent; border-radius: 12px; padding: 4px 10px 10px; margin-bottom: 10px; }
.text-item.on { border-color: var(--accent); }
.text-item textarea { background: #26262a; resize: none; margin-top: 6px; line-height: 1.5; }
.text-tools { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.swatches, .size { display: flex; gap: 6px; }
.swatches button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line-strong); background: #3a3a40; color: var(--f); font-weight: 800; font-size: 14px; -webkit-text-stroke: 2.5px var(--s); paint-order: stroke fill; }
.swatches button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.size button, .text-tools .del { border: 0; background: var(--line); border-radius: 7px; height: 28px; padding: 0 9px; font-size: 12px; }
.size button:hover, .text-tools .del:hover { background: var(--line-strong); }
.text-tools .del { margin-left: auto; color: var(--text-3); }
.foot-row { display: flex; align-items: center; gap: 10px; }
.foot-row .primary { flex: 1; }
.back { text-decoration: none; padding: 0 14px; height: 46px; display: grid; place-items: center; border-radius: 12px; white-space: nowrap; }

.canvas-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 24px 16px; }
.canvas { position: relative; background: #0c0c0e; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); user-select: none; -webkit-user-select: none; }
.canvas #frame { width: 100%; height: 100%; object-fit: cover; }
.guide { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--accent); pointer-events: none; }
.text-layer { position: absolute; inset: 0; }
.tx { position: absolute; transform: translate(-50%, -50%); white-space: pre; text-align: center; font-family: "Hiragino Sans GB", "PingFang SC", sans-serif; font-weight: 700; paint-order: stroke fill; cursor: move; padding: 2px 6px; border-radius: 4px; outline: 1px dashed transparent; }
.tx:hover { outline-color: rgb(255 255 255 / 55%); }
.tx.on { outline: 1.5px dashed var(--accent); outline-offset: 2px; }
.tx[contenteditable="plaintext-only"] { cursor: text; outline: 1.5px solid var(--accent); }

/* ---------- 下载视频 ---------- */
.player { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.player video { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; }
.player .empty { padding: 0; }
.side .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side .thumbs a { text-decoration: none; color: var(--text-3); font-size: 12px; }
.side .thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; background: #26262a; margin-bottom: 6px; }
a.primary { display: grid; place-items: center; text-decoration: none; }
.side-foot .dl { margin-top: 10px; }
.side-foot .dl a { flex: 1; text-align: center; text-decoration: none; height: 36px; display: grid; place-items: center; padding: 0 8px; border-radius: 9px; }

/* ---------- 看大图 ---------- */
.viewer { position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / 92%); display: flex; flex-direction: column; }
.viewer-top { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 24px; }
.viewer-top b { font-size: 16px; font-weight: 600; }
.viewer-tip { margin-left: auto; }
.viewer-top a.ghost { text-decoration: none; }
.viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 0 16px 20px; }
.viewer-pic { position: relative; flex: 1; height: 100%; user-select: none; -webkit-user-select: none; touch-action: none; }
.viewer-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#viewerBefore { opacity: 0; transition: opacity .12s; }
.viewer-pic.peek #viewerBefore { opacity: 1; }
.viewer-tag { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgb(0 0 0 / 60%); border: 1px solid rgb(255 255 255 / 20%); font-size: 13px; padding: 3px 12px; border-radius: 6px; }
.viewer-pic.peek .viewer-tag::after { content: " · 原照片"; }
.viewer-nav { flex: none; width: 48px; height: 72px; border: 0; border-radius: 12px; background: rgb(255 255 255 / 8%); font-size: 32px; color: var(--text-2); }
.viewer-nav:hover { background: rgb(255 255 255 / 16%); color: var(--text); }

/* ---------- 邀请码 ---------- */
.rail-account { margin-top: auto; width: 62px; padding: 8px 0; border: 0; border-radius: 14px; background: none; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; line-height: 1.35; text-align: center; }
.rail-account svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-account small { font-size: 11px; }
.rail-account:hover, .rail-account.on { color: var(--text-2); background: rgb(255 255 255 / 6%); }
.modal { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 70%); display: grid; place-items: center; }
.modal-card { width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
.modal-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.modal-card .muted { margin: 0 0 4px; line-height: 1.6; }
.modal-card .field { margin: 14px 0 10px; font-size: 16px; letter-spacing: 1px; }
.modal-card .foot-row .back { height: 46px; border: 0; }
.invite-now { font-size: 13px; color: var(--text-2); background: var(--muted-bg); border-radius: 10px; padding: 10px 12px; line-height: 1.7; }
.invite-now b { color: var(--text); }
.primary.inline { width: auto; padding: 0 28px; margin-top: 16px; }

/* ---------- 作品库：删除 ---------- */
.lib { position: relative; }
.lib-del { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgb(0 0 0 / 60%); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s; }
.lib:hover .lib-del { opacity: 1; }
.lib-del:hover { background: #d43f35; }
.lib-del svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#view-library .sub-head h2 { font-size: 16px; }
#libDraftsBox[hidden] + #libVideosBox .sub-head, #libDraftsBox > .sub-head { margin-top: 0; }
.primary.danger { background: #d43f35; }
.primary.danger:hover { background: #e2554b; }

.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #2f2f33; color: #fff; padding: 9px 18px; border-radius: 10px; font-size: 14px; z-index: 20; box-shadow: 0 18px 44px -16px rgb(0 0 0 / 70%); }
