:root {
  --bg: #f5f6fa; --card: #fff; --ink: #1a2033; --muted: #687087; --line: #e5e8f0;
  --nav: #141a2e; --nav2: #1d2540; --brand: #e8660c; --brand-d: #c9540a; --brand-l: #fff1e6;
  --ok: #138a4b; --ok-l: #e4f6ec; --err: #c62839; --err-l: #fdebed; --warn: #b26a00; --warn-l: #fff4de; --info: #2a5bd7; --info-l: #e8efff;
  --pdf: #3b82f6; --video: #8b5cf6; --youtube: #ef4444; --web: #10b981;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,26,46,.06), 0 4px 14px rgba(20,26,46,.05);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.5 -apple-system, "Segoe UI", Roboto, Inter, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--info); text-decoration: none; } a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--nav); color: #c9cfe4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #ff9a3c, var(--brand)); display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .5px; }
.brand b { display: block; color: #fff; font-size: 16px; line-height: 1.1; }
.brand small { color: #8c95b4; font-size: 12px; }
.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav .grp { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6c759a; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; color: #c9cfe4; padding: 10px 12px; border-radius: 9px; margin: 2px 0; font-weight: 500; }
.nav a:hover { background: var(--nav2); text-decoration: none; color: #fff; }
.nav a.active { background: var(--brand); color: #fff; }
.nav .badge { margin-left: auto; background: #ffffff26; color: #fff; border-radius: 20px; padding: 0 8px; font-size: 12px; min-width: 22px; text-align: center; }
.nav a.active .badge { background: #ffffff40; }
.side .foot { padding: 14px 20px; border-top: 1px solid #ffffff14; font-size: 12px; color: #8c95b4; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top h1 { margin: 0; font-size: 19px; }
.top .sub { color: var(--muted); font-size: 13px; }
.top .sp { flex: 1; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); }
.content { padding: 26px 28px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---------- components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card > .hd h3 { margin: 0; font-size: 15px; }
.card > .hd .sp { flex: 1; }
.card > .bd { padding: 20px; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: 1.4fr 1fr; } .g2e { grid-template-columns: 1fr 1fr; }
.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); }
.stat .ic svg { width: 22px; height: 22px; }
.stat .v { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 9px; font-weight: 600; }
.btn:hover { background: #f3f4f9; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-d); }
.btn.danger { color: var(--err); border-color: #f2c4ca; } .btn.danger:hover { background: var(--err-l); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.input, select.input, textarea.input { width: 100%; padding: 9px 12px; border: 1px solid #d5d9e6; border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
.input:focus { outline: 2px solid #ffc89c; border-color: var(--brand); }
textarea.input { min-height: 140px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill.queued, .pill.cancelled, .pill.laptop { background: #eef0f6; color: var(--muted); }
.pill.processing { background: var(--warn-l); color: var(--warn); }
.pill.done { background: var(--ok-l); color: var(--ok); }
.pill.failed { background: var(--err-l); color: var(--err); }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 6px; color: #fff; }
.kind.pdf { background: var(--pdf); } .kind.video { background: var(--video); } .kind.youtube { background: var(--youtube); } .kind.web { background: var(--web); }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.toolbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search input { padding-left: 36px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 5px 13px; border-radius: 20px; font-weight: 600; color: var(--muted); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 16px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--ink); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #fafbfe; }
tr.click { cursor: pointer; }
.ttl { font-weight: 600; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src { color: var(--muted); font-size: 12px; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 20px; color: var(--muted); }
.pager .sp { flex: 1; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; opacity: .4; margin-bottom: 8px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.tab { background: none; border: 0; padding: 14px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--ink); } .tab.on { color: var(--brand); border-bottom-color: var(--brand); }

/* drop zone */
.drop { border: 2px dashed #cdd2e2; border-radius: 14px; padding: 38px 20px; text-align: center; background: #fafbfd; transition: .15s; }
.drop.over { border-color: var(--brand); background: var(--brand-l); }
.drop svg { width: 38px; height: 38px; color: var(--brand); }
.drop h4 { margin: 8px 0 2px; font-size: 16px; }
.flist { margin-top: 14px; display: grid; gap: 8px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
.frow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; background: #edf0f6; border-radius: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 8px; transition: width .2s; }

/* charts */
.hbar { display: grid; grid-template-columns: 90px 1fr 90px; gap: 12px; align-items: center; margin: 12px 0; }
.hbar .bar { height: 12px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.spark .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.spark .col i { width: 100%; background: linear-gradient(#ffa35c, var(--brand)); border-radius: 5px 5px 0 0; min-height: 3px; }
.spark .col.zero i { background: #e6e9f1; }
.spark .col span { font-size: 10.5px; color: var(--muted); }
.list > div { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.list > div:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }

/* drawer + toast + modal */
.scrim { position: fixed; inset: 0; background: #0c122440; z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #fff; z-index: 21; box-shadow: -8px 0 30px #0c122430; display: flex; flex-direction: column; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer .hd { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.drawer .bd { padding: 20px 22px; overflow-y: auto; flex: 1; }
.passage { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fcfcfe; }
.passage .ref { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.passage .tx { white-space: pre-wrap; font-size: 13.5px; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 40; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; animation: slide .2s; }
.toast.err { background: var(--err); } .toast.ok { background: var(--ok); }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }

/* chat playground */
.chatbox { height: 420px; overflow-y: auto; padding: 18px 20px; background: #fafbfd; }
.msg { max-width: 82%; margin: 8px 0; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; }
.msg.u { background: var(--brand-l); margin-left: auto; border-bottom-right-radius: 4px; }
.msg.b { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
details.pass { margin-top: 8px; font-size: 12.5px; } details.pass summary { cursor: pointer; color: var(--info); }
.score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ok); }
.row { display: flex; gap: 10px; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: radial-gradient(circle at 20% 20%, #ff9a3c 0, transparent 40%), linear-gradient(160deg, #1d2540, #141a2e); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.login .art h2 { font-size: 34px; margin: 20px 0 10px; line-height: 1.15; } .login .art p { color: #c9cfe4; max-width: 420px; font-size: 16px; }
.login .form { display: grid; place-items: center; padding: 30px; }
.login .box { width: min(380px, 100%); }
.login h1 { margin: 0 0 6px; } .login .err { color: var(--err); background: var(--err-l); padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; display: none; }

@media (max-width: 1000px) {
  .g4 { grid-template-columns: 1fr 1fr; } .g2, .g2e { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: -260px; width: 248px; transition: left .2s; } .side.open { left: 0; }
  .menu-btn { display: block; } .content { padding: 18px 14px 60px; }
  .login { grid-template-columns: 1fr; } .login .art { display: none; }
  .kv { grid-template-columns: 1fr; }
}

/* full-screen playground */
.content.wide { max-width: none; height: calc(100vh - 72px); display: flex; flex-direction: column; padding-bottom: 20px; }
.content.wide > .card { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.content.wide #panel { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.content.wide .chatbox { flex: 1; height: auto; min-height: 0; }
.content.wide .msg { max-width: 72%; }

/* buckets and gurus */
.bksel { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bksel select { width: auto; min-width: 210px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); }
.bk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: var(--brand-l); color: var(--brand-d); white-space: nowrap; }
.bk.common { background: var(--info-l); color: var(--info); } .bk svg { width: 13px; height: 13px; }
.target { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 10px; background: var(--brand-l); border: 1px solid #ffd2ad; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.guru { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.guru.off { opacity: .65; } .guru.common { border-style: dashed; }
.guru h3 { margin: 0; font-size: 16px; }
.gtop { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; font-size: 22px; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.gmeta { display: flex; gap: 6px; flex-wrap: wrap; }
.gstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.gstats b { display: block; font-size: 17px; } .gstats span { font-size: 11.5px; color: var(--muted); }
.fl { display: block; margin-bottom: 14px; } .fl > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; } .fl small { display: block; margin-top: 4px; }
.passage.scr { background: #f4f7ff; border-color: #d6e0fb; }
.msg.hl { outline: 2px solid var(--brand); }

/* PDF viewer (Find sources) */
.scrim.v { z-index: 30; background: #0c122480; }
.viewer { position: fixed; inset: 3vh 3vw; z-index: 31; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px #0c122450; display: flex; flex-direction: column; overflow: hidden; }
.viewer .vhd { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.viewer .vbd { flex: 1; position: relative; background: #525659; }
.viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer .vload { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.kind.channel, .kind.telegram { background: #eef2ff; color: #4054b2; }

/* Bookshelf */
.kind.epub { background: #0e7490; }
.shh { margin: 18px 0 10px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.bkcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.bkcard.failed { border-color: #f3c3c9; }
.bkcov { position: relative; aspect-ratio: 2 / 3; background: linear-gradient(160deg, #b4561a, #2b2140); }
.bkcov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bkph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; color: #fff; font-weight: 600; font-size: 15px; }
.bkst { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: rgba(20,26,46,.75); color: #fff; font-size: 12px; font-weight: 600; }
.bkst.err { background: rgba(198,40,57,.9); }
.bkcard.reading .bkcov { animation: bkpulse 1.4s ease-in-out infinite; }
@keyframes bkpulse { 50% { opacity: .6; } }
.bkbody { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bkt { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.bkkind { border: 0; cursor: pointer; align-self: flex-start; }
.bkst2 a { color: var(--info); }
.small.err { color: var(--err); } .small.warn { color: var(--warn); }

.kv dd { word-break: normal; overflow-wrap: anywhere; }

/* Gurus page: one guru per row, in the order of the app */
.glist { display: flex; flex-direction: column; gap: 12px; }
.guru.grow { flex-direction: row; align-items: center; gap: 18px; padding: 14px 18px; cursor: default; }
.guru.grow .gtop { flex: 1 1 280px; min-width: 0; }
.guru.grow .gstats { flex: 0 0 340px; }
.guru.grow > .row { flex: 0 0 auto; flex-wrap: nowrap !important; }
.ghandle { cursor: grab; color: var(--muted); display: grid; place-items: center; }
.ghandle svg { width: 18px; height: 18px; }
.gmove { display: flex; flex-direction: column; gap: 4px; }
.gmove .btn { padding: 2px 8px; }
.guru.dragging { opacity: .5; border-style: dashed; }
@media (max-width: 1100px) { .guru.grow { flex-wrap: wrap; } .guru.grow .gstats { flex-basis: 100%; } }

/* Settings: cost savings */
.costopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 18px; }
.costkpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.costkpi > div { background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.costkpi b { display: block; font-size: 18px; } .costkpi span { font-size: 12px; color: var(--muted); }

.logo-img { width: 40px; height: 40px; border-radius: 11px; flex: none; box-shadow: 0 2px 10px rgba(224,122,31,.35); }
.md p { margin: 0 0 8px; } .md ul, .md ol { margin: 4px 0 8px 18px; padding: 0; } .md li { margin: 2px 0; } .md h4 { margin: 8px 0 4px; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line, #e7e9f1); border-radius: 14px; padding: 14px 16px; } .tile .v { font-size: 22px; font-weight: 700; } .tile .l { color: var(--muted); font-size: 12.5px; } .tile .x { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2fa35b; margin-right: 6px; } .dot.warn { background: #e0a200; } .dot.err { background: var(--err); }
.meter { height: 7px; background: #eef0f6; border-radius: 5px; overflow: hidden; margin-top: 6px; } .meter i { display: block; height: 100%; background: var(--brand); }

.msg .md { white-space: normal; }

/* ---------- tabs inside pages, and consistent buttons (build 14) ---------- */
.tabcard { position: sticky; top: 71px; z-index: 4; }
.tabcard .tabs { overflow-x: auto; scrollbar-width: thin; }
a.tab { text-decoration: none !important; white-space: nowrap; }
.tbadge { background: var(--brand-l); color: var(--brand-d); border-radius: 20px; padding: 0 8px; font-size: 11.5px; font-weight: 700; }
.tab.on .tbadge { background: var(--brand); color: #fff; }
.tabpanel { margin-top: 18px; }
.card.narrow { max-width: 860px; }
.btn { white-space: nowrap; flex-shrink: 0; justify-content: center; line-height: 1.35; min-height: 38px; }
.btn.sm { min-height: 30px; }
.btn.icon { padding-left: 8px; padding-right: 8px; min-width: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions-cell { white-space: nowrap; text-align: right; }
.actions-cell .btn + .btn { margin-left: 6px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.form-row > .fl { flex: 1; min-width: 160px; }
textarea.input.plain { font-family: inherit; font-size: 14px; min-height: 0; }
.jobline { margin-top: 12px; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qrow { padding: 10px 0; border-bottom: 1px solid #eef0f6; } .qrow:last-of-type { border-bottom: 0; }
.qrow .qtx { font-family: Georgia, serif; font-size: 16px; line-height: 1.45; }
.card.alert { margin-top: 18px; border-color: #f4c89e; } .card.alert.err { border-color: #f2c4ca; }
.card.alert .bd { display: flex; gap: 12px; align-items: center; }
.pill.laptop { background: var(--warn-l); color: var(--warn); }
.toolbar .search { margin-left: auto; }
/* backgrounds */
.bggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.bgcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.bgcard.hidden { opacity: .55; }
.bgprev { position: relative; aspect-ratio: 9 / 16; background: #f3f1ec; }
.bgprev canvas, .bgprev img { width: 100%; height: 100%; display: block; object-fit: cover; }
.bgprev.big { width: 230px; flex: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.bghid { position: absolute; top: 8px; left: 8px; background: #1a2033cc; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.bgbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.bgname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sceneed { display: flex; gap: 18px; align-items: flex-start; }
.layerrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0f1f6; }
.layerrow .lname { flex: 1; font-size: 13px; }
.layerrow input[type=color] { width: 30px; height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 1px; background: #fff; margin-left: 4px; }
@media (max-width: 900px) { .sceneed { flex-direction: column; } .tabcard { top: 60px; } }
.tabcard .tabs { overflow-y: hidden; }
.form-row > .fl.fixed { flex: 0 0 auto; }
.bggrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.bgact .btn.sm { padding: 3px 8px; }
