:root {
  --ink: #000; --ink-2: #1A1A1A; --grey: #4A4A4A; --muted: #8A8A8A; --line: #E3E3E3; --line-2: #D6D6D6;
  --panel: #F2F2F2; --bg: #F5F5F4; --card: #fff; --orange: #FF6A00; --orange-d: #E85E00; --orange-l: #FFF1E6;
  --green: #11804A; --green-l: #E7F5EC; --amber: #B25E00; --amber-l: #FFF4E0; --red: #C62828; --red-l: #FDECEC; --blue: #1F5FBF; --blue-l: #E9F0FB;
  --r: 10px; --r-s: 7px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --font: 'Hanken Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --head: 'League Spartan', 'Hanken Grotesk', system-ui, sans-serif;
  --cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.cn { font-family: var(--cn); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .grey { color: var(--grey); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.b { font-weight: 600; } .bb { font-weight: 700; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .col { display: flex; flex-direction: column; gap: 6px; }
.sp { flex: 1; }
.hide { display: none !important; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── shell ── */
.top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; padding-top: var(--safe-t); }
.top-in { max-width: 1280px; margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.logo { font-family: var(--head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 17px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo i { width: 9px; height: 9px; background: var(--orange); border-radius: 50%; display: inline-block; }
.tabs { display: flex; gap: 4px; }
.tab { background: none; border: 0; color: #BDBDBD; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.tab:hover { color: #fff; } .tab.on { background: #fff; color: #000; }
.iconbtn { background: none; border: 0; color: inherit; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn:hover { background: rgba(127,127,127,.15); }
.sync { font-size: 12px; color: #BDBDBD; display: flex; align-items: center; gap: 6px; }
.sync .dot { width: 7px; height: 7px; border-radius: 50%; background: #3DBE6B; } .sync.busy .dot { background: var(--orange); animation: pulse 1s infinite; } .sync.err .dot { background: #E53935; }
@keyframes pulse { 50% { opacity: .3; } }
.demo-banner { background: var(--orange); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 4px 10px; }
main { max-width: 1280px; margin: 0 auto; padding: 22px 20px 60px; }
.bottom { display: none; }

@media (max-width: 760px) {
  .top-in { height: 52px; padding: 0 12px; gap: 10px; } .tabs { display: none; } .sync span { display: none; }
  main { padding: 14px 12px calc(84px + var(--safe-b)); }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 8px calc(6px + var(--safe-b)); }
  .bottom button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; cursor: pointer; }
  .bottom button.on { color: var(--ink); } .bottom button.on svg { color: var(--orange); }
}

/* ── page head ── */
.ph { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ph h1 { font-family: var(--head); font-weight: 600; font-size: 28px; letter-spacing: .01em; margin: 0; line-height: 1.05; text-transform: uppercase; }
.ph .sub { color: var(--grey); font-size: 13px; margin-top: 4px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 760px) { .filters select.in { flex: 1 1 140px; width: auto !important; max-width: none !important; } .ph h1 { font-size: 22px; } .ph .acts { margin-left: 0; width: 100%; } .ph .acts .btn.primary { flex: 1; } }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; min-height: 38px; text-decoration: none; }
.btn:hover { border-color: #000; } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; } .btn.primary:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn.dark { background: #000; border-color: #000; color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--panel); }
.btn.danger { color: var(--red); } .btn.danger:hover { border-color: var(--red); }
.btn.sm { padding: 5px 11px; min-height: 30px; font-size: 12.5px; }
.btn.lg { padding: 12px 22px; font-size: 15px; min-height: 46px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-weight: 600; }
.link.o { color: var(--orange-d); }

/* ── cards ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; }
.card-h h3 { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card-b { padding: 14px 16px 16px; }
.grid { display: grid; gap: 14px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.kpi { padding: 14px 16px; }
.kpi .l { font-size: 12px; color: var(--grey); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.accent { background: #000; color: #fff; border-color: #000; } .kpi.accent .l { color: #BDBDBD; } .kpi.accent .s { color: #9A9A9A; }
.widgets { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.widgets .w-L { grid-column: 1 / -1; }
@media (max-width: 900px) { .widgets { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 20px; } }

/* ── chips / status ── */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-Unpaid { background: var(--red-l); color: var(--red); }
.st-Partially { background: var(--amber-l); color: var(--amber); }
.st-Paid { background: var(--green-l); color: var(--green); }
.st-Overpaid { background: var(--blue-l); color: var(--blue); }
.st-Cancelled { background: var(--panel); color: var(--muted); }
.chip.warn { background: var(--amber-l); color: var(--amber); } .chip.bad { background: var(--red-l); color: var(--red); } .chip.ok { background: var(--green-l); color: var(--green); } .chip.n { background: var(--panel); color: var(--grey); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin-bottom: 12px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: #000; color: #fff; border-color: #000; }
.seg button small { font-weight: 500; opacity: .7; margin-left: 4px; }

/* ── inputs ── */
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > label, .lbl { font-size: 12px; font-weight: 700; color: var(--grey); }
.fld .hint { font-size: 11.5px; color: var(--muted); }
.fld .err, .errtxt { font-size: 12px; color: var(--red); font-weight: 600; }
.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 9px 11px; background: #fff; font-size: 15px; min-height: 42px; }
textarea.in { min-height: 64px; resize: vertical; }
.in:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.in.big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.in.bad { border-color: var(--red); }
.in.sm { min-height: 36px; padding: 6px 9px; font-size: 14px; }
.search { position: relative; flex: 1; min-width: 180px; }
.search .in { padding-left: 34px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .f2, .f3 { grid-template-columns: 1fr; } .f2.keep { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); margin-top: 1px; flex: none; }
input[type=checkbox] { accent-color: var(--orange); }
.segpick { display: inline-flex; background: var(--panel); border-radius: 999px; padding: 3px; gap: 2px; }
.segpick button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 13px; }
.segpick button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ── table ── */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); font-weight: 700; text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFAFA; position: sticky; top: 0; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; } .tbl tbody tr:hover td { background: #FAFAF9; } .tbl tbody tr.sel td { background: var(--orange-l); }
.tbl tr.flash td { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 30% { background: #FFE2C7; } 100% { background: transparent; } }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .w0 { width: 1%; }
.tbl tfoot td { font-weight: 700; background: #FAFAFA; border-bottom: 0; }
.idc { font-weight: 700; white-space: nowrap; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }

/* mobile record cards */
.rcards { display: flex; flex-direction: column; gap: 10px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: start; }
.rcard.sel { border-color: var(--orange); background: var(--orange-l); }
.rcard.flash { animation: flashc 2.2s ease-out; } @keyframes flashc { 0%, 30% { background: #FFE2C7; } 100% { background: #fff; } }
.rcard .cb { grid-row: span 3; padding-top: 2px; } .rcard .cb input { width: 20px; height: 20px; }
.rcard .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rcard .bar { grid-column: 2 / 4; height: 5px; background: var(--panel); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.rcard .bar i { display: block; height: 100%; background: var(--green); }
.rcard .acts { grid-column: 2 / 4; display: flex; gap: 8px; margin-top: 6px; }
.rcard .acts .btn { flex: 1; }

/* selection bar */
.selbar { position: sticky; top: 64px; z-index: 20; background: #000; color: #fff; border-radius: var(--r); padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.selbar .btn { min-height: 34px; }
@media (max-width: 760px) { .selbar { position: fixed; top: auto; bottom: calc(66px + var(--safe-b)); left: 10px; right: 10px; margin: 0; } }

/* ── modal ── */
.ov { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; animation: rise .18s ease-out; }
.modal.wide { max-width: 860px; } .modal.narrow { max-width: 440px; }
@keyframes rise { from { transform: translateY(12px); opacity: .5; } }
.m-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 14px 14px 0 0; z-index: 2; }
.m-h h2 { margin: 0; font-size: 18px; font-weight: 700; }
.m-b { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.m-f { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; border-radius: 0 0 14px 14px; z-index: 2; }
@media (max-width: 760px) {
  .ov { padding: 0; align-items: flex-end; }
  .modal, .modal.wide, .modal.narrow { max-width: none; border-radius: 16px 16px 0 0; max-height: 96vh; min-height: 60vh; overflow-y: auto; animation: up .22s ease-out; }
  @keyframes up { from { transform: translateY(40%); } }
  .m-h { border-radius: 16px 16px 0 0; } .m-f { border-radius: 0; padding-bottom: calc(14px + var(--safe-b)); } .m-f .btn { flex: 1; }
  .m-b { padding: 16px 14px; }
}
.section { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.section.tint { background: #FAFAF9; }
.sec-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }

/* combobox */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: var(--shadow); z-index: 5; max-height: 260px; overflow-y: auto; }
.combo-list button { display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; cursor: pointer; gap: 8px; align-items: center; border-bottom: 1px solid #F3F3F3; }
.combo-list button:hover, .combo-list button.hl { background: var(--orange-l); }
.combo-list .add { color: var(--orange-d); font-weight: 700; }
.picked { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 8px 8px 8px 12px; min-height: 42px; }

/* account picker cards */
.accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.acct { border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: #fff; text-align: left; width: 100%; }
.acct:hover { border-color: #999; } .acct.on { border-color: var(--orange); background: var(--orange-l); }
.acct.unv { border-style: dashed; border-color: var(--amber); }
.acct img, .qrph { width: 56px; height: 56px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; background: #fff; flex: none; }
.qrph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; text-align: center; background: var(--panel); }
.acct.add { justify-content: center; color: var(--orange-d); font-weight: 700; border-style: dashed; min-height: 78px; }

/* slips */
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 22px 14px; text-align: center; cursor: pointer; background: #FAFAF9; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-l); }
.drop b { font-size: 15px; }
.slip { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; align-items: start; background: #fff; }
.slip.bad { border-color: var(--red); background: #FFFAFA; } .slip.warn { border-color: #E8B36B; }
.slip .th { width: 64px; height: 86px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; object-position: top; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); cursor: zoom-in; }
.slip .fl { display: grid; grid-template-columns: 1.3fr .7fr 1fr .8fr; gap: 8px; }
.slip .fl .wide, .slip .fl .wide2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .slip { grid-template-columns: 54px 1fr auto; } .slip .th { width: 54px; height: 72px; } .slip .fl { grid-template-columns: 1.4fr 1fr; } }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.flags .chip { white-space: normal; line-height: 1.35; padding: 3px 9px; }
.totbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #000; color: #fff; border-radius: var(--r); padding: 12px 16px; }
.totbar .big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.totbar .sub { color: #BDBDBD; font-size: 12px; }
.notice { border-radius: var(--r-s); padding: 10px 12px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.notice.bad { background: var(--red-l); color: #8E1B1B; } .notice.warn { background: var(--amber-l); color: #7A4200; } .notice.ok { background: var(--green-l); color: #0B5A34; } .notice.info { background: var(--panel); color: var(--grey); }
.notice svg { flex: none; margin-top: 1px; }

/* request detail */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv > div:nth-child(odd) { color: var(--grey); font-weight: 600; font-size: 12.5px; padding-top: 1px; }
@media (max-width: 600px) { .kv { grid-template-columns: 110px 1fr; } }
.money3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.money3 > div { padding: 10px 12px; border-right: 1px solid var(--line); } .money3 > div:last-child { border-right: 0; }
.money3 .l { font-size: 11.5px; color: var(--grey); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.money3 .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
@media (max-width: 420px) { .money3 .v { font-size: 14px; } }
.tline { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tline:last-child { border-bottom: 0; }
.tline .th { width: 48px; height: 62px; border-radius: 6px; object-fit: cover; object-position: top; border: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); cursor: zoom-in; }
.tline.void { opacity: .5; } .tline.void .amt { text-decoration: line-through; }
.qrbig { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: contain; }

/* charts */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; gap: 4px; }
.bars .b i { width: 100%; max-width: 38px; background: #000; border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .b.cur i { background: var(--orange); }
.bars .b i span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; white-space: nowrap; margin-bottom: 2px; color: var(--grey); }
.bars .b small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) { .bars .b small { font-size: 9.5px; } .bars .b small .yr { display: none; } .bars .b i span { display: none; } .bars .b.cur i span, .bars.few .b i span { display: block; } .bars { gap: 3px; } }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .t { height: 10px; background: var(--panel); border-radius: 5px; overflow: hidden; } .hbar .t i { display: block; height: 100%; background: var(--orange); border-radius: 5px; }
.list .li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.list .li:last-child { border-bottom: 0; }
.qa { display: flex; gap: 10px; flex-wrap: wrap; }
.qa .btn { flex: 1 1 180px; min-height: 52px; border-radius: 12px; font-size: 14px; }

/* customize */
.cust li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); list-style: none; }
.cust ul { margin: 0; padding: 0; }
.cust .mv { display: flex; gap: 2px; } .cust .mv button { width: 30px; height: 30px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; cursor: pointer; }
.cust .mv button:disabled { opacity: .3; }

/* vendors */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.vcard { padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.vcard:hover { border-color: #999; }
.vcard h4 { margin: 0; font-size: 16px; }
.vstats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; }
.vstats b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--grey); background: none; border: 0; padding: 0; cursor: pointer; margin-bottom: 10px; }

/* crop */
.crop { position: relative; display: inline-block; touch-action: none; user-select: none; max-width: 100%; }
.crop img { display: block; max-width: 100%; max-height: 52vh; }
.crop .box { position: absolute; border: 2px solid var(--orange); box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; }

/* toast, lightbox, auth */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
@media (max-width: 760px) { .toasts { bottom: calc(80px + var(--safe-b)); } }
.toast { background: #000; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: rise .2s; pointer-events: auto; }
.toast.err { background: var(--red); }
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 6px; background: #fff; }
.lb iframe { width: min(900px, 100%); height: 90vh; background: #fff; border: 0; border-radius: 6px; }
.lb .x { position: fixed; top: 14px; right: 14px; color: #fff; }
.auth { min-height: 100vh; background: #000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth form { background: #fff; border-radius: 16px; padding: 28px 24px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.auth .logo { color: #000; font-size: 22px; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(127,127,127,.25); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.s { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { min-height: 70vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--grey); }
.pill-n { background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; min-width: 18px; text-align: center; }
hr.s { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.acct[role=button] { cursor: pointer; }
.acct .btn.ghost { padding: 4px 8px; min-height: 28px; }

/* v3.3 */
@media (max-width: 760px) { .tline .tacts { grid-column: 1 / -1; justify-content: flex-start !important; } }
.btn.ghost.danger { color: var(--red); }
.lgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin: 14px 0; }
@media (max-width: 900px) { .lgrid { grid-template-columns: 1fr; } }
.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pipe > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pipe b { display: block; font-size: 18px; } .pipe .tiny { line-height: 1.35; }

/* v3.4 lock */
.lockov { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lockbox { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 340px; color: #fff; }
.lockicon { width: 96px; height: 96px; border-radius: 22px; }
.lockt { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.locks { color: #BDBDBD; font-size: 14px; line-height: 1.45; }
.lockbox .btn { min-width: 200px; justify-content: center; }
.lockerr { color: #FF8A80; font-size: 13px; }
