* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 "Microsoft YaHei", sans-serif; background: #f3f3f3; color: #222; }
header { background: #243024; color: #fff; padding: 10px 16px; }
header a { color: #fff; margin-right: 12px; text-decoration: none; }
header strong { margin-right: 16px; }
main { max-width: 980px; margin: 16px auto; background: #fff; border: 1px solid #ddd; padding: 16px; }
h1 { font-size: 18px; margin: 0 0 12px; }
label { display: block; margin: 8px 0 4px; }
input, select, textarea { width: 280px; max-width: 100%; padding: 6px 8px; border: 1px solid #ccc; }
textarea { width: 420px; height: 64px; }
button { margin-top: 10px; padding: 6px 14px; border: 1px solid #243024; background: #243024; color: #fff; cursor: pointer; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { border: 1px solid #e4e4e4; padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: #f7f7f7; }
.row { margin-bottom: 8px; }
.msg { color: #9a3412; min-height: 1.2em; }
.box { border: 1px solid #eee; padding: 12px; margin-bottom: 16px; }
a.btn { display: inline-block; margin-top: 8px; }

body.gate { min-height: 100vh; background: #e7efe9; }
body.gate header { display: none; }
body.gate main { max-width: 420px; margin: 0 auto; padding: 48px 16px; background: transparent; border: 0; }
.gate-card { background: #fff; border: 1px solid #d5e0d8; border-top: 4px solid #1f6b45; padding: 28px 28px 22px; }
.gate-card .mark { margin: 0 0 8px; color: #1f6b45; font-size: 13px; }
.gate-card h1 { margin: 0 0 6px; font-size: 22px; }
.gate-card .sub { margin: 0 0 18px; color: #66756c; }
.gate-card h2 { margin: 0 0 4px; font-size: 16px; }
.gate-card label { color: #243028; }
.gate-card input { width: 100%; padding: 9px 10px; border: 1px solid #c9d5cc; background: #fff; }
.gate-card button { display: block; width: 100%; margin-top: 14px; padding: 9px 14px; background: #1f6b45; border-color: #1f6b45; }
.gate-card .split { height: 1px; margin: 22px 0 16px; background: #e3ebe6; }
.gate-card form { margin: 0; }

body.desk { height: 100vh; background: #1a3c4a; position: relative; overflow: hidden; }
body.desk .blob { position: absolute; border-radius: 50%; background: #2c5344; }
body.desk .b1 { width: 460px; height: 460px; left: -140px; top: -80px; }
body.desk .b2 { width: 380px; height: 380px; right: -80px; top: 40px; background: #245043; }
body.desk .b3 { width: 520px; height: 520px; right: -180px; bottom: -220px; background: #1e463c; }
body.desk main { position: relative; z-index: 1; max-width: 400px; height: 100%; margin: 0 auto; padding: 16px; background: transparent; border: 0; display: flex; align-items: center; }
.desk-card { width: 100%; background: #f7f8fa; border-radius: 18px; border-top: 3px solid #f0b429; padding: 32px 28px 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22); }
.desk-mark { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; background: linear-gradient(180deg, #ffc44d, #f5a21a); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px rgba(245, 162, 26, 0.35); }
.desk-card h1 { margin: 0 0 18px; text-align: center; font-size: 22px; color: #1b2b4a; }
.desk-card .sub { margin: 6px 0 18px; text-align: center; color: #8b93a0; font-size: 12px; letter-spacing: 0.14em; }
.desk-card form { margin: 0; }
.desk-card label { color: #5c6570; font-size: 13px; }
.field { position: relative; }
.field svg { position: absolute; left: 12px; top: 50%; margin-top: -8px; }
.field input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid #e4e9ee; border-radius: 10px; background: #fff; }
.cap-row { display: flex; gap: 10px; align-items: center; }
.cap-row .field { flex: 1; }
.cap-box { width: 118px; height: 40px; flex: none; margin: 0; padding: 0 8px; border: 0; border-radius: 10px; background: #24324d; color: #f0c014; font-size: 16px; font-weight: 700; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.cap-box b { font-weight: 700; }
.desk-extra { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; }
.desk-extra label { display: flex; align-items: center; gap: 6px; margin: 0; color: #5c6570; }
.desk-extra input { width: auto; margin: 0; accent-color: #f08a1a; }
.desk-extra a { color: #f08a1a; text-decoration: none; }
.desk-card button[type="submit"] { display: block; width: 100%; margin-top: 16px; padding: 11px 14px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #f6a623, #f6c31a); color: #1a1a1a; font-size: 16px; box-shadow: 0 8px 16px rgba(245, 176, 30, 0.35); }
.desk-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: #9aa3ad; font-size: 12px; }
.desk-card .msg { margin: 10px 0 0; text-align: center; }

body.app {
  --bg: #f4f5f7;
  --side: #fff;
  --ink: #222;
  --muted: #667085;
  --line: #e6e6e6;
  --on: #f3f3f3;
  --card: #fff;
  --card-2: #f7f8fa;
  --field: #fff;
  --field-line: #ccc;
  --title: #222;
  --link: #1e4d34;
  --th: #f7f7f7;
  --btn: #243024;
  --btn-text: #fff;
  background: var(--bg);
  color: var(--ink);
}
html.night body.app {
  --bg: #101826;
  --side: #0e1522;
  --ink: #e8eef6;
  --muted: #8b97a8;
  --line: #2a364a;
  --on: #1a2436;
  --card: #172033;
  --card-2: #141c2c;
  --field: #141c2c;
  --field-line: #2c3a4e;
  --title: #fff;
  --link: #8fd0a8;
  --th: #1a2436;
  --btn: #2c384c;
  --btn-text: #e8eef6;
}
body.app main { max-width: none; margin: 16px 16px 16px 236px; background: var(--card); border-color: var(--line); color: var(--ink); }
body.app h1 { color: var(--title); }
.set-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
body.app .set-tabs button { margin: 0; min-height: 34px; padding: 4px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
body.app .set-tabs button.on { background: #e2b423; color: #1a1a1a; font-weight: 700; }
.set-pane[hidden] { display: none; }
.set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-items: start; }
.set-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.set-col > label { color: var(--muted); font-size: 13px; }
.set-col input:not([type="file"]):not([type="hidden"]) { width: 100%; height: 40px; margin-top: 6px; border-radius: 8px; }
.set-sec { margin: 4px 0 8px; color: var(--title); font-weight: 700; }
.set-sec::before { content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 8px; background: #e2b423; vertical-align: -2px; }
.set-hint { display: block; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.set-span { grid-column: 1 / -1; }
.set-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.set-actions .msg { margin: 0; min-height: 0; }
.set-actions .msg.ok { color: #3dbe7a; }
.set-tz, .set-pair, .set-lab, .set-ends { display: flex; align-items: center; gap: 8px; }
.set-tz select { flex: 1; height: 40px; margin-top: 6px; border-radius: 8px; }
.set-pair input, .set-lab input { flex: 1; min-width: 0; }
.set-col textarea { width: 100%; height: 72px; margin-top: 6px; border-radius: 8px; }
.set-with-lang { display: flex; align-items: flex-end; gap: 8px; }
.set-col .set-with-lang input { flex: 1; min-width: 0; width: auto; margin-top: 6px; }
.set-col .set-with-lang textarea { flex: 1; min-width: 0; width: auto; height: 72px; margin-top: 6px; }
.set-lang-stack { display: flex; align-items: stretch; gap: 8px; }
.set-lang-stack > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.set-lang-side { display: flex; align-items: center; }
body.app .set-lang-btn { margin: 0; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 6px; background: #6b7cff; color: #fff; white-space: nowrap; }
.set-lab textarea { flex: 1; min-width: 0; }
body.app .set-mini { margin: 0; min-height: 32px; padding: 4px 10px; border-radius: 8px; background: transparent; color: #e2b423; border: 1px solid #e2b423; white-space: nowrap; }
.set-lang { margin-top: 8px; }
.set-lang label { display: block; margin-top: 8px; }
.set-lab-name { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
body.app .set-end { margin: 0; min-height: 32px; padding: 4px 14px; border-radius: 16px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
body.app .set-end.on { background: #e2b423; color: #1a1a1a; border-color: #e2b423; font-weight: 700; }
.set-chip { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.set-service { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.set-service > label { color: var(--muted); font-size: 13px; }
.set-service input { width: 100%; height: 40px; margin-top: 6px; border-radius: 8px; }
.set-uploads { display: grid; grid-template-columns: repeat(4, minmax(0, 160px)); gap: 10px; }
.set-up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 72px; margin: 0; padding: 8px; border: 1px dashed var(--field-line); border-radius: 10px; background: var(--card-2); color: var(--muted); cursor: pointer; text-align: center; }
.set-up b { color: var(--title); font-size: 13px; font-weight: 600; }
.set-up em { font-style: normal; font-size: 12px; }
.set-up input { display: none; }
.set-sound { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.set-sound .set-up { width: 148px; min-height: 64px; }
.set-sound audio { height: 36px; max-width: 320px; }
.set-sound audio[hidden] { display: none; }
.set-up img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #111; }
.set-ico-row { display: flex; align-items: flex-start; gap: 14px; }
.set-ico-box { width: 64px; height: 64px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #111; border: 1px solid var(--line); }
.set-ico-box img { width: 32px; height: 32px; object-fit: contain; }
.set-ico-main { flex: 1; min-width: 0; }
.set-ico-line { display: flex; align-items: center; gap: 8px; }
.set-ico-line input { flex: 1; min-width: 0; height: 36px; margin: 0; border-radius: 8px; }
.set-ico-size { flex: none; padding: 2px 8px; border-radius: 10px; background: #24304a; color: #9fd0ff; font-size: 12px; white-space: nowrap; }
body.app .set-pick { display: inline-flex; align-items: center; margin: 0; min-height: 32px; padding: 4px 14px; border: 0; border-radius: 8px; background: #e2b423; color: #1a1a1a; font-weight: 700; cursor: pointer; }
.set-pick input { display: none; }
#favicon-file { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.set-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.set-line span { color: var(--muted); font-size: 13px; }
.set-line-rest { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1; min-width: 0; }
.set-col .set-line .set-line-rest input:not([type="file"]):not([type="hidden"]) { width: 168px; height: 32px; margin: 0; flex: none; }
.set-flag { display: inline-flex; flex: none; }
.set-entry { display: flex; flex-direction: column; gap: 6px; }
.set-entry .set-choice { flex-wrap: wrap; justify-content: flex-end; }
body.app .set-flag button { margin: 0; min-height: 32px; padding: 4px 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 0; }
body.app .set-flag button:first-child { border-radius: 8px 0 0 8px; }
body.app .set-flag button + button { margin-left: -1px; }
body.app .set-flag button:last-child { border-radius: 0 8px 8px 0; }
#f-safe textarea, #f-safe .set-multi { width: 100%; }
#f-safe textarea { height: 120px; margin-top: 6px; }
#f-safe .set-multi { height: 196px; margin-top: 6px; }
#f-safe label { color: var(--muted); font-size: 13px; }
#f-safe .set-span:not(.set-actions) { display: flex; flex-direction: column; gap: 14px; }
#totp-box { margin: 8px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
#totp-qr:empty { display: none; }
#totp-qr svg { display: block; width: 188px; height: 188px; margin-bottom: 10px; background: #fff; border-radius: 8px; }
#totp-secret { color: var(--title); font-size: 15px; letter-spacing: 1px; font-family: Consolas, "Courier New", monospace; }
.cap-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
body.app .set-flag button.on { background: #e2b423; color: #1a1a1a; border-color: #e2b423; font-weight: 700; }
body.app .set-save { margin-top: 4px; min-height: 38px; padding: 6px 28px; border: 0; border-radius: 8px; background: #e2b423; color: #1a1a1a; font-weight: 700; }
.ch-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ch-tools { display: flex; gap: 8px; align-items: center; flex: none; }
.ch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ch-filters select, .ch-filters input { height: 36px; margin: 0; border-radius: 8px; }
.ch-filters input { width: 220px; }
.ch-card { display: grid; grid-template-columns: 56px 46px 120px max-content minmax(240px, 1fr) auto auto; align-items: center; column-gap: 28px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.ch-sort { flex: none; }
body.app .ch-sort input { width: 52px; height: 40px; margin: 0; text-align: center; }
.ch-ico { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #111; color: var(--title); font-weight: 700; overflow: hidden; }
.ch-ico img { width: 100%; height: 100%; object-fit: cover; }
.ch-name { flex: none; min-width: 88px; }
.ch-name b { display: block; color: var(--title); font-size: 16px; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ch-tag { padding: 1px 8px; border-radius: 10px; background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: 12px; }
.ch-tag.on { background: #e2b423; color: #1a1a1a; border-color: #e2b423; }
.ch-rates { color: var(--muted); font-size: 13px; line-height: 1.7; white-space: nowrap; }
.ch-account { justify-self: center; text-align: center; min-width: 220px; }
.ch-account b { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--title); font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.ch-account b i { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.ch-account span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.ch-time { flex: none; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: nowrap; }
.ch-time em { font-style: normal; display: inline-block; width: 36px; }
.ch-acts { display: flex; gap: 8px; flex: none; }
body.app .ch-del { background: transparent; color: #e07a7a; border: 1px solid #e07a7a; }
.ch-empty { margin: 12px 0; color: var(--muted); }
#ch-drawer #f-channel { margin: 0; align-content: start; }
#lg-drawer #f-lang, #lg-pack #f-pack { margin: 0; align-content: start; }
#lg-pack textarea { width: 100%; height: 72px; margin-top: 6px; }
.lang-board { min-width: 1080px; }
.lang-head, .lang-row { display: grid; grid-template-columns: 76px 92px minmax(120px, 1.3fr) 84px 96px 96px 72px minmax(320px, 1.6fr); align-items: center; column-gap: 18px; }
.lang-head { padding: 6px 18px 8px; color: var(--muted); font-size: 13px; }
.lang-row { min-height: 76px; margin-bottom: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.lang-name { color: var(--title); font-size: 16px; font-weight: 700; }
.lang-flag-box { width: 68px; height: 46px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #111; }
.lang-flag { width: 100%; height: 100%; object-fit: cover; display: block; }
body.app .lang-row .lang-sort-input { width: 64px; height: 40px; margin: 0; text-align: center; }
.lang-on { color: #e2b423; }
.lang-off { color: var(--muted); }
.lang-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
body.app .lang-acts button { margin: 0; }
.lang-empty { margin: 12px 0; color: var(--muted); }
#ch-drawer .mem-drawer-ft .msg { margin: 0; }
#f-channel select { width: 100%; height: 40px; margin-top: 6px; border-radius: 8px; }
.side .brand { display: flex; align-items: center; gap: 8px; }
.side .brand img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: #111; flex: none; }
.wb-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.desk-mark img { width: 36px; height: 36px; object-fit: contain; }
.mem-face { display: block; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 10px; object-fit: cover; background: #111; }
body.app input, body.app select, body.app textarea { background: var(--field); color: var(--ink); border-color: var(--field-line); }
body.app button { background: var(--btn); color: var(--btn-text); border-color: var(--line); }
body.app th, body.app td { border-color: var(--line); }
body.app th { background: var(--th); }
body.app main a { color: var(--link); }
.side { position: fixed; left: 0; top: 0; bottom: 0; width: 220px; background: var(--side); color: var(--ink); border-right: 1px solid var(--line); overflow: auto; z-index: 2; }
.side .brand { padding: 16px 16px 8px; color: var(--ink); font-weight: 700; }
.side .top { display: block; margin: 0 12px 8px; padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.side .top.on, .side details a.on { background: #e2b423; color: #1a1a1a; font-weight: 700; border-radius: 6px; }
.side details { border-top: 1px solid var(--line); }
.side summary { padding: 10px 16px; cursor: pointer; font-weight: 600; list-style: none; color: var(--ink); }
.side summary::-webkit-details-marker { display: none; }
.side details a { display: block; padding: 6px 16px 6px 28px; color: var(--muted); text-decoration: none; font-size: 13px; }
.side .out { display: block; margin: 12px 16px 20px; color: var(--muted); text-decoration: none; font-size: 13px; }
.cards { display: flex; flex-wrap: wrap; gap: 12px; }
.cards a { display: block; min-width: 140px; padding: 12px 14px; background: #f7faf8; border: 1px solid #e3ebe6; color: #1b2b4a; text-decoration: none; }
.cards strong { display: block; font-size: 22px; color: #1e4d34; }
.jump { margin: 6px 0; }
.jump a { color: #1e4d34; }

body.home { background: var(--bg); }
body.home main { margin: 0 0 0 220px; max-width: none; min-height: 100vh; padding: 22px 28px 40px; background: transparent; border: 0; color: var(--ink); }
.wb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.wb-head { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.wb-top h1 { margin: 0; font-size: 22px; color: var(--title); white-space: nowrap; }
.wb-date { margin: 0; color: var(--muted); font-size: 13px; }
.wb-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wb-icons { display: flex; align-items: center; gap: 10px; }
.wb-range { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
body.app .wb-range button { margin: 0; min-height: 28px; padding: 4px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); }
body.app .wb-range button.on { background: #e2b423; color: #1a1a1a; }
body.app .wb-theme { width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--field-line); border-radius: 50%; background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.wb-theme svg { display: none; }
html.night .wb-theme .moon { display: block; }
html:not(.night) .wb-theme .sun { display: block; }
.wb-bell { position: relative; width: 36px; height: 36px; border: 1px solid var(--field-line); border-radius: 50%; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; line-height: 34px; }
.wb-bell i { position: absolute; top: -4px; right: -4px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #e2557a; color: #fff; font-style: normal; font-size: 11px; line-height: 16px; }
.wb-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e2b423; color: #1a1a1a; text-align: center; line-height: 36px; font-weight: 700; }
.wb-icons { flex-wrap: wrap; justify-content: flex-end; }
.wb-notices { display: flex; align-items: center; gap: 8px; }
.wb-notice { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap; }
.wb-notice em { position: absolute; top: -7px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #8b93a7; color: #fff; font-style: normal; font-size: 11px; line-height: 16px; text-align: center; }
.wb-notice em.on { background: #e2557a; }
body.app button.wb-notice { margin: 0; min-height: 32px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); font-size: 13px; }
body.app button.wb-notice.on { border-color: #3dce7a; color: #3dce7a; }
.wb-notice em.live { background: #3dce7a; }
.wb-toasts { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; gap: 8px; width: min(300px, calc(100vw - 24px)); }
.wb-toast { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); }
.wb-toast strong { display: block; margin-bottom: 4px; font-size: 14px; }
.wb-toast span { display: block; color: var(--muted); font-size: 12px; }
.wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.wb-stat { display: block; padding: 16px 16px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.wb-stat .lab { display: block; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.wb-stat strong { display: block; font-size: 26px; color: var(--title); }
.wb-stat em { display: block; margin: 6px 0 0; font-style: normal; font-size: 12px; color: var(--muted); }
.wb-stat em.up { color: #3dce7a; }
.wb-stat em.down { color: #f07178; }
.wb-panel { margin-top: 14px; padding: 8px 16px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.wb-hd { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 10px; }
.wb-hd span { font-weight: 700; }
.wb-hd span::before { content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 8px; background: #e2b423; vertical-align: -2px; }
.wb-hd a, .wb-hd em { color: var(--muted); font-style: normal; font-size: 13px; text-decoration: none; }
.wb-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.wb-mark { width: 36px; height: 36px; border-radius: 10px; text-align: center; line-height: 36px; font-weight: 700; flex: none; }
.wb-row .mid { flex: 1; min-width: 0; }
.wb-row .title { color: var(--title); }
.wb-row .meta { color: var(--muted); font-size: 12px; }
.wb-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 12px; }
.tag-red { background: #3a2430; color: #f07178; }
.tag-blue { background: #1d3148; color: #7eb6ff; }
.tag-green { background: #16362c; color: #3dce7a; }
.wb-row button { margin: 0 0 0 8px; padding: 6px 14px; border: 0; border-radius: 8px; }
.wb-row .ok { background: #f0b429; color: #1a1a1a; }
.wb-row .no { background: var(--card-2); color: var(--ink); }
.trend-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 2px 0 6px; font-size: 13px; color: var(--ink); }
.trend-legend b { font-weight: 600; }
.trend-legend i { display: inline-block; width: 16px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.trend-tip { min-height: 18px; margin: 0 0 4px; color: var(--muted); font-size: 12px; }
#trend { padding-left: 8px; padding-right: 8px; }
#trend-box svg { width: 100%; height: 360px; display: block; }
.trend-float { display: none; position: fixed; z-index: 45; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 13px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); }
.wb-grid { display: flex; gap: 12px; overflow-x: auto; }
.wb-grid a { position: relative; flex: 1 0 96px; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); color: var(--ink); text-align: center; text-decoration: none; }
body.app .quick-add { margin: 0; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); }
.quick-mask { display: none; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.45); }
.quick-mask.show { display: block; }
.quick-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(420px, 88vw); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform 0.22s ease; }
.quick-drawer.show { transform: translateX(0); }
.quick-drawer-hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
body.app .quick-drawer-hd button { margin: 0; min-height: 32px; padding: 4px 12px; border-radius: 8px; }
.quick-pick { flex: 1; overflow: auto; padding: 4px 16px 20px; }
.quick-pick h2 { margin: 12px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
body.app .quick-pick button { margin: 0 8px 8px 0; min-height: 32px; padding: 4px 10px; border-radius: 8px; }
body.app .quick-pick button.on { opacity: 0.45; }
.quick-x { position: absolute; top: 2px; right: 6px; color: var(--muted); font-weight: 400; }
.wb-note { margin: 0; padding: 8px 0; color: var(--muted); }
.mem-hd { display: flex; align-items: center; gap: 10px; }
.mem-hd strong { font-size: 16px; }
.mem-hd strong::before { content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 8px; background: #e2b423; vertical-align: -2px; }
.mem-hd em { color: var(--muted); font-style: normal; font-size: 13px; }
.mem-tools { margin-left: auto; display: flex; gap: 8px; }
body.app .mem-tools button, body.app .mem-op, body.app .mem-pages button, body.app .mem-addbox button { margin: 0; min-height: 32px; padding: 4px 12px; border-radius: 8px; }
body.app .mem-add { background: #e2b423; color: #1a1a1a; border-color: #e2b423; }
.mem-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 14px 0; }
.mem-filters label { display: flex; flex-direction: column; gap: 6px; width: auto; color: var(--muted); font-size: 12px; }
.mem-filters input, .mem-filters select { width: 148px; height: 36px; border-radius: 18px; padding: 0 14px; background: var(--card-2); color: var(--ink); }
.mem-filters input { width: 280px; }
.mem-filters #f-ip, .mem-filters #f-parent, .mem-filters #f-user, .mem-filters #f-holder, .mem-filters #f-card { width: 180px; }
.mem-range { display: flex; align-items: center; gap: 6px; }
.mem-range i { color: var(--muted); font-style: normal; }
.mem-range input { width: 142px; color-scheme: light; }
html.night .mem-range input { color-scheme: dark; }
body.app .mem-search { height: 36px; min-height: 36px; margin: 0; padding: 0 18px; border-radius: 18px; background: #e2b423; color: #1a1a1a; border-color: #e2b423; }
body.app .hold-batch { height: 36px; min-height: 36px; margin: 0; padding: 0 18px; border-radius: 18px; background: transparent; color: #e07a7a; border: 1px solid #e07a7a; }
.hold-warn { margin: 0; padding: 10px 12px; border: 1px solid rgba(226, 180, 35, 0.45); border-radius: 8px; background: rgba(226, 180, 35, 0.12); color: #e2b423; }
html:not(.night) .hold-warn { color: #8a6a10; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
body.app .rt-bar button { margin: 0; min-height: 28px; padding: 2px 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
body.app .rt-bar .rt-color { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin: 0; padding: 2px 8px 2px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 13px; }
body.app .mem-drawer-bd .rt-bar .rt-color input[type="color"] { width: 22px; height: 22px; margin: 0; padding: 0; border: 0; background: transparent; }
.rt-file { display: none; }
.rt-box { min-height: 180px; max-height: 320px; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); color: var(--ink); overflow: auto; }
.rt-box img { max-width: 100%; }
.cms-flag { display: inline-flex; }
body.app .cms-flag button.on { background: #e2b423; color: #1a1a1a; border-color: #e2b423; }
.mem-sheet.plain b.mem-ok, .mem-sheet.plain b.mem-no, .mem-sheet.plain b.mem-wait { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.mem-addbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.mem-addbox[hidden] { display: none; }
.mem-sheet { min-width: 1480px; }
.mem-sheet.plain { min-width: 1080px; }
.mem-sheet.plain .mem-sheet-hd,
.mem-sheet.plain .mem-card { grid-template-columns: var(--sheet-cols); }
.mem-sheet.plain .mem-ops { width: auto; }
.mem-empty { padding: 22px 0; color: var(--muted); font-size: 13px; }
.kyc-shot { display: flex; gap: 8px; }
.kyc-shot span { color: var(--muted); font-size: 12px; }
body.app .kyc-thumb { margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; line-height: 0; }
.kyc-thumb img { display: block; width: 92px; height: 58px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #111; }
.kyc-shot.big .kyc-thumb img { width: min(100%, 280px); height: 160px; }
.kyc-preview { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.72); }
.kyc-preview-box { max-width: min(920px, 92vw); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.kyc-preview-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kyc-preview-box img { display: block; width: min(860px, 86vw); height: auto; max-height: 76vh; object-fit: contain; background: #111; }
body.app .kyc-preview-hd button { margin: 0; }
.cat-logo { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #111; }
.mem-sheet-hd, .mem-card { display: grid; grid-template-columns: 32px minmax(150px, 1.05fr) minmax(132px, 0.85fr) minmax(140px, 1fr) minmax(160px, 1.1fr) minmax(168px, 0.95fr) 216px; column-gap: 14px; align-items: start; }
.mem-sheet-hd { padding: 4px 0 8px; color: var(--muted); font-size: 13px; }
.mem-card { padding: 12px 0; border-top: 1px solid var(--line); }
.mem-tick { width: 32px; display: flex; justify-content: center; }
.mem-tick input { width: 14px; height: 14px; margin: 0; }
.mem-card > * { min-width: 0; }
.mem-kv { margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.mem-kv b { font-weight: 600; color: var(--title); }
.mem-kv b.hot { color: #e2557a; }
.mem-kv b.ok { color: #3dce7a; }
.mem-kv b.money { color: #e2b423; font-size: 15px; font-weight: 700; }
.mem-tag { display: inline-block; padding: 0 7px; border-radius: 8px; font-size: 12px; line-height: 18px; }
.mem-kv b.mem-ok { background: rgba(61, 206, 122, 0.16); color: #3dce7a; }
.mem-kv b.mem-wait { background: rgba(226, 180, 35, 0.16); color: #e2b423; }
.mem-kv b.mem-no { background: rgba(139, 147, 167, 0.16); color: var(--muted); }
.mem-kv b.mem-freeze { background: rgba(226, 85, 122, 0.16); color: #e2557a; }
.mem-kv b.mem-level { background: rgba(61, 126, 255, 0.16); color: #7eb6ff; }
.mem-invite { display: flex; align-items: center; gap: 6px; }
.mem-invite b { letter-spacing: 0.4px; }
body.app .mem-copy { width: 22px; height: 22px; min-height: 22px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #e2b423; display: inline-flex; align-items: center; justify-content: center; }
body.app .mem-copy.on { color: #3dce7a; }
.mem-ops { display: flex; flex-direction: column; gap: 8px; width: 208px; }
.mem-ops-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mem-ops-audit { justify-content: space-between; }
body.app .mem-ops .act { min-height: 28px; margin: 0; padding: 4px 8px; border: 0; border-radius: 6px; color: #fff; font-size: 12px; line-height: 18px; }
body.app .mem-ops .trade { background: #21c07a; }
body.app .mem-ops .edit { background: #14b8b8; }
body.app .mem-ops .lang { background: #6b7cff; }
body.app .mem-ops .freeze { background: #e2b423; color: #1a1a1a; }
body.app .mem-ops .fake { background: #f05a3a; }
body.app .mem-ops .del { background: #e2557a; }
body.app .mem-ops .audit { background: #8b6cff; }
body.app .mem-ops .buy { background: #c9862a; }
.mem-drawer-bd .buy-list { display: flex; flex-direction: column; gap: 8px; }
.mem-drawer-bd .buy-list label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.mem-drawer-bd .buy-list input { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; }
.mem-drawer-bd .buy-list label { align-items: flex-start; }
.buy-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 13px; }
.buy-table th, .buy-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
.buy-table th { color: var(--muted); font-weight: 500; }
.buy-table td p { margin: 0; line-height: 1.45; }
.mem-drawer-bd .buy-table input { width: 16px; height: 16px; margin: 0; }
.buy-table td.mem-ok { color: #3dce7a; }
.buy-table td.mem-no { color: var(--muted); }
.win-cell p { margin: 0; line-height: 1.45; white-space: nowrap; }
.mem-drawer-bd .win-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mem-drawer-bd .win-row input { width: auto; flex: 1; margin: 0; }
.mem-drawer-bd .win-row span { color: var(--muted); }
body.app .mem-drawer .win-add { margin-top: 8px; min-height: 30px; padding: 0 10px; background: transparent; color: #e2b423; border: 1px solid #e2b423; }
body.app .mem-drawer .win-del { margin: 0; min-height: 30px; padding: 0 8px; background: transparent; color: #e2557a; border: 1px solid #e2557a; flex: 0 0 auto; }
body.app .mem-ops .money { background: #3d7eff; }
.mem-mask { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.45); }
.mem-mask.show { display: block; }
.mem-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(420px, 92vw); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform 0.22s ease; }
.mem-drawer.wide { width: min(880px, 96vw); }
.mem-drawer.table { width: min(1200px, 96vw); }
.edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.edit-grid label { margin: 0; color: #21a35a; font-size: 14px; }
.edit-grid .req { color: #e23b3b; font-style: normal; margin-right: 2px; }
html.night .edit-grid label { color: #3dce7a; }
.mem-drawer.show { transform: translateX(0); }
.mem-drawer-hd, .mem-drawer-ft { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mem-drawer-ft { border-bottom: 0; border-top: 1px solid var(--line); }
.mem-drawer-bd { flex: 1; overflow: auto; padding: 16px; }
.mem-drawer-bd label { display: block; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.mem-drawer-bd label[hidden] { display: none; }
.mem-drawer-bd input, .mem-drawer-bd select, .mem-drawer-bd textarea { width: 100%; height: 36px; margin-top: 6px; border-radius: 8px; }
.mem-drawer-bd textarea { height: 72px; }
.mem-drawer-bd .term-row { display: flex; gap: 8px; margin-top: 6px; }
.mem-drawer-bd .term-row input, .mem-drawer-bd .term-row select { margin-top: 0; }
.mem-drawer-bd .term-row input { flex: 1; width: auto; min-width: 0; }
.mem-drawer-bd .term-row select { width: 96px; flex: none; }
.mem-drawer-bd input[type="radio"] { width: auto; height: auto; margin: 0 6px 0 0; }
body.app .mem-drawer button { margin: 0; min-height: 34px; border-radius: 8px; }
body.app .mem-drawer-ft button { background: #e2b423; color: #1a1a1a; border-color: #e2b423; padding: 6px 18px; }
body.app .mem-op.go { background: transparent; color: #3dce7a; border-color: #3dce7a; }
body.app .mem-op.edit { background: transparent; color: #7eb6ff; border-color: #7eb6ff; }
body.app .mem-op.stop { background: transparent; color: #e2557a; border-color: #e2557a; }
.mem-detail { margin: 0 0 8px 32px; padding: 10px 12px; border-radius: 8px; background: var(--card-2); }
.mem-table { min-width: 1280px; }
.mem-table th, .mem-table td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 10px; vertical-align: middle; background: transparent; }
.mem-table th { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.mem-table td b { display: block; font-weight: 600; color: var(--title); }
.mem-role { display: inline-block; padding: 0 8px; border-radius: 8px; background: rgba(61, 126, 255, 0.16); color: #7eb6ff; font-size: 12px; line-height: 20px; }
.role-name { display: flex; align-items: center; gap: 8px; }
.role-name b { color: var(--title); }
.role-built { padding: 0 6px; border-radius: 6px; background: rgba(226, 180, 35, 0.18); color: #e2b423; font-size: 12px; line-height: 18px; }
.role-scope { display: flex; flex-wrap: wrap; gap: 6px; }
.role-scope span { padding: 0 8px; border-radius: 8px; background: rgba(61, 126, 255, 0.16); color: #7eb6ff; font-size: 12px; line-height: 20px; }
.role-group { margin: 0 0 12px; }
.role-group strong { display: block; margin-bottom: 6px; color: var(--title); }
.role-group label { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--ink); }
.role-group input { width: auto; height: auto; margin: 0; }
.role-item { display: inline-flex; align-items: center; gap: 10px; margin: 0 10px 8px 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.role-edit { color: var(--muted); }
#a-perm { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
#a-perm p { width: 100%; margin: 0; color: var(--muted); font-size: 13px; }
body.perm-view .mem-add,
body.perm-view .mem-ops,
body.perm-view .set-lang-btn,
body.perm-view .set-save,
body.perm-view .set-actions,
body.perm-view .hold-batch,
body.perm-view .quick-add,
body.perm-view .quick-x,
body.perm-view #mem-drawer-save,
body.perm-view .mem-drawer-ft button,
body.perm-view #run,
body.perm-view #restart,
body.perm-view #ch-add,
body.perm-view #ch-sort,
body.perm-view #lg-add,
body.perm-view #lg-sort-save,
body.perm-view #tz-add,
body.perm-view #tz-apply,
body.perm-view #totp-new,
body.perm-view #favicon-clear { display: none !important; }
.mem-user { display: flex; align-items: center; gap: 10px; }
.mem-avatar { width: 36px; height: 36px; border-radius: 10px; color: #fff; text-align: center; line-height: 36px; font-size: 12px; font-weight: 700; flex: none; }
.mem-user b { display: block; color: var(--title); }
.mem-user small, .mem-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.mem-line { display: block; line-height: 1.5; color: var(--ink); font-size: 13px; }
.mem-place { display: flex; align-items: center; gap: 4px; }
.mem-pin { width: 8px; height: 8px; border-radius: 50% 50% 50% 0; background: #e2b423; transform: rotate(-45deg); flex: none; }
.mem-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.mem-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8b93a7; }
.invite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; margin: 8px 0 18px; }
.invite-grid input { width: 100%; }
.invite-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.invite-stats b { display: block; margin-top: 4px; color: #e2b423; font-size: 18px; }
.invite-stats div { min-width: 140px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }
.job-note { max-width: 720px; margin: 8px 0 14px; color: var(--muted); line-height: 1.6; }
.job-box { max-width: 720px; }
.job-box .mem-kv { font-size: 14px; margin-bottom: 8px; }
.job-actions { display: flex; gap: 10px; margin-top: 18px; }
.mem-dot.on { color: #3dce7a; }
.mem-dot.on::before { background: #3dce7a; }
.mem-times { font-size: 16px; }
.mem-times em { margin-left: 2px; color: var(--muted); font-style: normal; font-size: 12px; font-weight: 400; }
body.app .mem-op { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.mem-table td:last-child { white-space: nowrap; }
.mem-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.mem-ok { background: rgba(61, 206, 122, 0.16); color: #1f9d55; }
.mem-wait { background: rgba(226, 180, 35, 0.16); color: #b8860b; }
.mem-no { background: rgba(139, 147, 167, 0.16); color: var(--muted); }
.mem-freeze { background: rgba(226, 85, 122, 0.16); color: #e2557a; }
html.night .mem-ok { color: #3dce7a; }
html.night .mem-wait { color: #e2b423; }
.mem-miss { color: var(--muted); }
.mem-detail td { background: var(--card-2); }
.mem-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; color: #8b93a7; font-size: 13px; }
.mem-pages { display: flex; gap: 12px; align-items: center; }
.mem-pages select { width: auto; height: 36px; min-width: 108px; border-radius: 18px; padding: 0 28px 0 14px; background: #121a2b; color: #d5dbe6; border: 1px solid #3d4b63; }
#pager { display: flex; gap: 8px; align-items: center; }
body.app #pager button { width: auto; min-width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0 10px; border-radius: 18px; background: #121a2b; color: #d5dbe6; border: 1px solid #3d4b63; font-size: 13px; line-height: 34px; }
body.app #pager button.on { background: #e2b423; color: #1a1a1a; border-color: #e2b423; font-weight: 700; }
.pager-gap { min-width: 24px; color: #8b93a7; text-align: center; letter-spacing: 1px; }
body.home .msg { color: #f0b429; }

.pick { position: relative; margin-top: 6px; }
.pick-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 32px 4px 8px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); }
.mem-drawer-bd .pick-box input { flex: 1; min-width: 96px; width: auto; height: 28px; margin: 0; padding: 0 4px; border: 0; background: transparent; }
.pick-chip { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px 0 8px; border-radius: 12px; background: rgba(226, 180, 35, 0.18); color: #e2b423; font-size: 12px; }
body.app .mem-drawer .pick-chip button { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #e2b423; line-height: 16px; }
body.app .mem-drawer .pick-arrow { position: absolute; right: 4px; top: 4px; width: 28px; min-width: 28px; height: 28px; min-height: 28px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--muted); }
.pick-list { max-height: 180px; margin-top: 4px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); }
.pick-list[hidden] { display: none; }
.pick-empty { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 12px; }
body.app .mem-drawer .pick-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
body.app .mem-drawer .pick-list button.on,
body.app .mem-drawer .pick-list button:hover { background: var(--on); }
.pick-list small { color: var(--muted); font-size: 12px; }
.pick-list .use { color: #e2b423; }

.guide-lead { margin: 0 0 16px; color: var(--muted); }
.guide-group { margin: 0 0 22px; }
.guide-group h2 { margin: 0 0 10px; font-size: 15px; }
.guide-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.guide-tabs a { display: inline-flex; align-items: center; min-height: 34px; margin: 0; padding: 4px 14px; border-radius: 6px; background: var(--card-2); color: var(--ink); text-decoration: none; }
.guide-tabs a:hover, .guide-tabs a.on { background: #e2b423; color: #1a1a1a; font-weight: 700; }
.guide-tab { display: inline-block; margin: 0 0 6px; padding: 1px 8px; border-radius: 4px; background: #e2b423; color: #1a1a1a; font-style: normal; font-size: 12px; font-weight: 700; }
.guide-head, a.guide-row { display: grid; grid-template-columns: 220px minmax(180px, 0.8fr) minmax(280px, 1.4fr); gap: 16px; align-items: start; }
.guide-head { margin: 0 12px 6px; color: var(--muted); font-size: 12px; }
a.guide-row { margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
a.guide-row:hover { border-color: #e2b423; }
.guide-pic { display: block; min-height: 124px; border-radius: 8px; background: var(--card-2); color: var(--ink); overflow: hidden; }
.guide-pic svg { width: 100%; height: 124px; display: block; }
a.guide-row b { display: block; margin-bottom: 6px; font-size: 16px; color: var(--title); }
a.guide-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-fn-wrap { display: flex; align-items: center; gap: 16px; min-width: 0; }
.guide-fn { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.guide-fn li { position: relative; margin: 0 0 6px; padding-left: 12px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.guide-fn li:before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: #e2b423; }
.guide-go { align-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 6px; background: #e2b423; color: #1a1a1a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.guide-row[hidden], .guide-group[hidden] { display: none; }

.mbar, .nav-mask { display: none; }
td input, td select { width: auto; max-width: 140px; }
td button { margin: 4px 6px 0 0; }

@media (max-width: 860px) {
  .mbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 6; height: 48px; align-items: center; gap: 8px; padding: 0 12px; background: var(--side); border-bottom: 1px solid var(--line); color: var(--ink); }
  body.app .mbar button { margin: 0; min-height: 34px; padding: 6px 12px; background: var(--on); color: var(--ink); border-color: var(--line); }
  .mbar strong { font-size: 15px; }
  .nav-mask { position: fixed; inset: 0; z-index: 5; background: rgba(0, 0, 0, 0.45); }
  body.nav-open .nav-mask { display: block; }
  .side { width: min(82vw, 300px); transform: translateX(-105%); transition: transform 0.2s ease; z-index: 7; }
  body.nav-open .side { transform: translateX(0); }
  .side summary, .side details a, .side .top, .side .out { min-height: 40px; line-height: 24px; }
  body.app main, body.home main { margin: 48px 0 0; padding: 12px; min-height: auto; }
  body.app input, body.app select, body.app textarea { width: 100%; font-size: 16px; }
  td input, td select { width: auto; min-width: 88px; font-size: 16px; }
  body.app button { min-height: 40px; }
  body.app .wb-theme { min-height: 36px; width: 36px; height: 36px; }
  body.app .wb-range button { min-height: 32px; }
  .mem-filters input, .mem-filters select { width: 100%; }
  .edit-grid { grid-template-columns: 1fr; }
  .set-cols { grid-template-columns: 1fr; }
  .ch-card { display: flex; flex-wrap: wrap; }
  .ch-account { justify-self: start; text-align: left; }
  body.app .ch-sort input { width: 52px; }
  .ch-side { text-align: left; }
  .set-uploads { grid-template-columns: 1fr; }
  .set-ico-row { flex-wrap: wrap; }
  .xscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
  .xscroll table { min-width: 680px; margin-top: 0; }
  .wb-stats { grid-template-columns: 1fr 1fr; }
  .wb-grid a { flex: 0 0 84px; }
  .wb-top { align-items: flex-start; }
  .wb-notices { flex-wrap: wrap; justify-content: flex-end; }
  .wb-toasts { right: 12px; bottom: 12px; }
  .wb-row { flex-wrap: wrap; }
  .wb-row button { flex: 1; min-width: 72px; margin: 6px 0 0; min-height: 40px; }
  .desk-card { padding: 24px 16px 18px; }
  .cap-row { flex-wrap: wrap; }
  .cap-box { width: 100%; height: 44px; }
  .guide-head, a.guide-row { grid-template-columns: 1fr; }
  .guide-fn-wrap { flex-wrap: wrap; }
}
