: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; }

/* ───────── v4.1: charts, live rates, phone layout ───────── */
.show-m { display: none; }
.segpick.sm button { padding: 5px 10px; font-size: 12px; }
/* line chart */
.lc { position: relative; touch-action: pan-y; user-select: none; cursor: crosshair; }
.lc svg { display: block; overflow: visible; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-area { fill: var(--orange); opacity: .08; }
.lc-line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-cross { stroke: var(--grey); stroke-width: 1; stroke-dasharray: 3 3; }
.lc-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.lc-ylab { position: absolute; left: 4px; transform: translateY(-110%); font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.lc-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: #000; color: #fff; border-radius: 6px; padding: 4px 8px; font-size: 11px; white-space: nowrap; display: flex; gap: 6px; pointer-events: none; z-index: 2; }
.lc-tip span { color: #BDBDBD; }
.lc-empty { display: flex; align-items: center; justify-content: center; background: var(--panel); border-radius: 8px; }
/* live rates card */
.fx { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.fx-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fx-live { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fx-live i { width: 8px; height: 8px; border-radius: 50%; background: #3DBE6B; animation: pulse 2s infinite; }
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-pair { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-bottom: 18px; }
.fx-ch { font-size: 12px; font-weight: 600; color: var(--grey); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-notes { display: flex; flex-direction: column; gap: 4px; font-size: 13px; background: var(--panel); border-radius: 8px; padding: 9px 12px; }
.widgets .w-L > .fx { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
/* bars: thinner, rounded ends, recessive baseline */
.bars .b i { border-radius: 4px 4px 0 0; max-width: 30px; }
.bars .b small { color: var(--muted); }

@media (max-width: 760px) {
  .show-m { display: inline; } .hide-m { display: none; }
  /* headers: no long descriptions, actions on one compact row */
  .ph { margin-bottom: 12px; gap: 8px; align-items: center; }
  .ph .sub.desc { display: none; }
  .ph .acts { flex-wrap: nowrap; gap: 6px; }
  .ph .acts .btn:not(.fab-m) { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  /* main action floats above the bottom bar */
  .ph .acts .btn.fab-m { position: fixed; right: 14px; bottom: calc(74px + var(--safe-b)); z-index: 41; flex: none !important; border-radius: 999px; min-height: 50px; padding: 0 18px; font-size: 15px; box-shadow: 0 6px 18px rgba(255,106,0,.35), 0 2px 6px rgba(0,0,0,.18); }
  main:has(.selbar) .fab-m, body:has(.ov) .fab-m { display: none !important; }
  main { padding-bottom: calc(140px + var(--safe-b)); }
  /* quick actions become a swipeable row of pills */
  .qa { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
  .qa::-webkit-scrollbar { display: none; }
  .qa .btn { flex: none; min-height: 40px; padding: 7px 14px; font-size: 13px; }
  /* number cards: 2 per row, compact */
  .kpis { gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi .l { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi .v { font-size: 18px; margin-top: 2px; }
  .kpi .s { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .widgets { gap: 10px; }
  .card-h { padding: 12px 12px 0; } .card-b { padding: 10px 12px 12px; }
  .bars { height: 120px; gap: 3px; }
  .bars .b i span { font-size: 9px; }
  /* live rates stacked */
  .fx { padding: 12px; gap: 10px; }
  .fx-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fx-v { font-size: 22px; }
  /* payments filters: search on top, two dropdowns side by side */
  .pfilters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pfilters .search { grid-column: 1 / -1; }
  .pfilters select.in { width: 100% !important; max-width: none !important; min-width: 0; }
  .pfilters .btn { display: none; }
  /* window footers wrap instead of running off screen */
  .m-f { flex-wrap: wrap; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); }
  .m-f .sp { display: none; }
  .m-f .btn { flex: 1 1 auto; }
  .m-f .errtxt, .m-f .grow { flex-basis: 100%; }
}
.lc-ylab { background: rgba(255,255,255,.85); padding: 0 3px; border-radius: 3px; }
@media (max-width: 760px) {
  .ph { flex-wrap: nowrap; }
  .ph > div:first-child { min-width: 0; flex: 1; }
  .ph .acts { width: auto !important; margin-left: auto !important; }
  .ph.dash { flex-wrap: wrap; }
  .ph.dash .acts { width: 100% !important; margin-left: 0 !important; }
  .fx-h .segpick { width: 100%; display: flex; }
  .fx-h .segpick button { flex: 1; }
}
.ledger-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ledger-tot > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ledger-tot span { font-size: 12px; color: var(--grey); font-weight: 600; } .ledger-tot b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ledger-tot small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .ledger-tot { grid-template-columns: 1fr 1fr; } .ledger-tot > div:first-child { grid-column: 1 / -1; } .ledger-tot b { font-size: 17px; } }
/* v4.2 locker */
.lk-hero { display: flex; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; background: #000; color: #fff; border-color: #000; }
.lk-hero .l { font-size: 12px; color: #BDBDBD; font-weight: 600; } .lk-hero .v { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; } .lk-hero .s { font-size: 12px; color: #9A9A9A; }
.lk-btns { display: flex; gap: 8px; } .lk-btns .btn { min-height: 46px; }
.lk-btns .btn.dark { background: var(--orange); border-color: var(--orange); color: #fff; }
.lk-ic { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; background: var(--green-l); color: var(--green); }
.lk-ic.out { background: var(--panel); color: var(--ink); }
.num.neg { color: var(--ink); }
.lk-lines { display: flex; flex-direction: column; gap: 4px; }
.lk-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 8px; align-items: center; }
.lk-row .in.sm { min-height: 38px; padding: 6px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.lk-head { font-size: 11px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }
.lk-head small { text-transform: none; font-weight: 500; }
@media (max-width: 760px) { .lk-hero { padding: 14px; } .lk-hero .v { font-size: 28px; } .lk-btns { width: 100%; } .lk-btns .btn { flex: 1; } .lk-row { grid-template-columns: 1fr 1fr 1fr 0.9fr; gap: 6px; } }

/* ══════════ 4.3 — premium home dashboard ══════════ */
:root { --r: 14px; --shadow: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px rgba(17,17,17,.05); --line: #E8E7E4; }
.card { border-color: var(--line); }
.pos { color: var(--green); } .neg { color: var(--red); }
.home .ph { margin-bottom: 14px; }
.hello { font-size: 13px; color: var(--grey); font-weight: 500; margin-bottom: 2px; }
.mpick { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.mpick select { border: 0; background: none; font-weight: 600; font-size: 13.5px; padding: 6px 2px; cursor: pointer; outline: none; max-width: 150px; }
.mpick .iconbtn { width: 32px; height: 32px; }

/* overview band */
.ovw { background: #0B0B0B; color: #fff; border-radius: 18px; padding: 18px 18px 16px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.ovw::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,106,0,.35), rgba(255,106,0,0)); pointer-events: none; }
.ov-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: relative; z-index: 1; }
.ov-k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9A9A9A; }
.ov-rate { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ov-rate .live { width: 7px; height: 7px; border-radius: 50%; background: #3DBE6B; box-shadow: 0 0 0 3px rgba(61,190,107,.25); }
.ov-rate span, .ov-c em { font-style: normal; font-size: 11.5px; font-weight: 700; } .ovw .up { color: #5AD68A; } .ovw .dn { color: #FF8A80; }
.ov-g { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.ov-c { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; min-width: 0; cursor: default; display: flex; flex-direction: column; gap: 4px; }
.ov-c[onClick], .ov-c.hero { cursor: pointer; }
.ov-c span { font-size: 12px; color: #A8A8A8; font-weight: 600; }
.ov-c b { font-family: var(--head); font-size: 28px; font-weight: 600; letter-spacing: .01em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-c small { font-size: 12px; color: #8F8F8F; line-height: 1.35; }
.ov-c.hero { background: var(--orange); border-color: var(--orange); } .ov-c.hero span, .ov-c.hero small { color: rgba(255,255,255,.85); } .ov-c.hero b { font-size: 32px; }

/* quick actions */
.qa2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.qa2 button { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 13px; cursor: pointer; text-align: left; box-shadow: var(--shadow); min-height: 54px; transition: transform .12s, border-color .12s; }
.qa2 button:hover { border-color: #000; transform: translateY(-1px); }
.qa2 button span { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; }
.qa2 button.on span { background: var(--orange); color: #fff; }

/* two-up row + chart cards */
.home-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; }
.home-sec { display: flex; align-items: baseline; gap: 12px; margin: 26px 2px 12px; }
.home-sec h2 { font-family: var(--head); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; margin: 0; flex: 1; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.charts .c-L { grid-column: 1 / -1; } .charts > div { min-width: 0; } .charts > div > .card { height: 100%; }
.ch { display: flex; flex-direction: column; }
.ch-h { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 0; }
.ch-h h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ch-sub { font-size: 12.5px; color: var(--grey); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ch-t { flex: none; display: flex; gap: 6px; align-items: center; }
.ch-b { padding: 14px 18px 18px; flex: 1; }
.ch-foot { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.ch-empty { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 13px; background: var(--bg); border-radius: 12px; padding: 16px; }
.ch-empty.ok { color: var(--green); background: var(--green-l); }
.fxc > .fx { border: 0 !important; box-shadow: none !important; }
.btn.sm { min-height: 32px; padding: 5px 12px; font-size: 12.5px; }

/* donut */
.donut-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut-w { position: relative; width: 150px; height: 150px; }
.donut { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 18; } .donut-bg { stroke: var(--panel); } .donut-seg { stroke-linecap: butt; transition: stroke-dasharray .4s; }
.donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-c b { font-family: var(--head); font-size: 20px; font-weight: 600; } .donut-c span { font-size: 11px; color: var(--muted); }
.lg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lg-r { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lg-r i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .lg-p { width: 34px; text-align: right; }
.lg-inline { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--grey); margin-top: 8px; }
.lg-inline i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* stacked bars */
.bars.stk .b .stk-c { width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: visible; position: relative; min-height: 0; }
.bars.stk .b .stk-c i { display: block; width: 100%; min-height: 1px; }
.bars.stk .b .stk-c i:last-child { border-radius: 4px 4px 0 0; }
.bars.stk .b .stk-c 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.stk .b:not(.cur) .stk-c { opacity: .85; }
.bars .b i { background: #1A1A1A; }

/* locker mini stats */
.mini3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini3 span { display: block; font-size: 11.5px; color: var(--muted); } .mini3 b { font-size: 15px; font-variant-numeric: tabular-nums; }

/* converter */
.conv-io { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.conv-io label { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 8px 12px; cursor: text; min-width: 0; }
.conv-io label.on { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-l); }
.conv-io label span { font-size: 11.5px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }
.conv-io input { border: 0; outline: none; font-family: var(--head); font-size: 24px; font-weight: 600; width: 100%; background: none; padding: 0; font-variant-numeric: tabular-nums; min-width: 0; }
.conv-sw { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font-size: 18px; cursor: pointer; }
.conv-sw:hover { border-color: #000; }
.conv-q { display: flex; gap: 6px; flex-wrap: wrap; }
.conv-q button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.conv-q button:hover { border-color: #000; }

/* attention */
.att-d { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); } .att-d.warn { background: var(--amber); } .att-d.bad { background: var(--red); }
.att .list { max-height: 330px; overflow-y: auto; }

/* chart picker */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.gal-c { position: relative; display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px; cursor: pointer; }
.gal-c:hover { border-color: #000; } .gal-c.on { border-color: var(--orange); background: var(--orange-l); }
.gal-g { width: 56px; height: 40px; flex: none; border-radius: 10px; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.gal-c.on .gal-g { background: #fff; }
.gal-g svg { width: 44px; height: 30px; } .gal-g rect { fill: #1A1A1A; } .gal-g .o { fill: var(--orange); } .gal-g .sk { stroke: #1A1A1A; } .gal-g .sko { stroke: var(--orange); }
.gal-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .gal-t b { font-size: 13.5px; } .gal-t span { font-size: 12px; color: var(--grey); }
.gal-n { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gal-c.on .gal-n { background: var(--orange); color: #fff; }
.qa-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chipck { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chipck input { display: none; } .chipck.on { border-color: var(--orange); background: var(--orange-l); }

@media (max-width: 1000px) { .ov-g { grid-template-columns: 1fr 1fr; } .home-g2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ovw { border-radius: 16px; padding: 14px 12px 12px; }
  .ov-g { gap: 8px; } .ov-c { padding: 11px; border-radius: 12px; } .ov-c b { font-size: 20px; } .ov-c.hero { grid-column: 1 / -1; } .ov-c.hero b { font-size: 28px; }
  .ov-c small { font-size: 11px; } .ov-g .ov-c:last-child { grid-column: 1 / -1; }
  .qa2 { display: flex; overflow-x: auto; scrollbar-width: none; margin: 12px -12px; padding: 0 12px 4px; gap: 8px; }
  .qa2::-webkit-scrollbar { display: none; }
  .qa2 button { flex: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 92px; min-height: 84px; padding: 10px 6px; font-size: 11.5px; gap: 6px; line-height: 1.2; }
  .charts { grid-template-columns: minmax(0, 1fr); gap: 10px; } .home-g2 { gap: 10px; }
  .ch-h { padding: 14px 14px 0; flex-wrap: wrap; } .ch-b { padding: 12px 14px 14px; }
  .donut-row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; } .donut-w, .donut { width: 120px; height: 120px; } .donut-c b { font-size: 16px; }
  .conv-io input { font-size: 20px; } .home-sec { margin-top: 20px; }
  .mpick select { max-width: 120px; }
  .gal { grid-template-columns: minmax(0, 1fr); }
}
.otp-in { font-family: var(--head); font-size: 26px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.link.o { color: var(--orange-d); }

/* 4.5 — users, permissions, view-only */
.ro .btn.primary, .ro .qa, .ro .qa2, .ro .fab, .ro .lk-btns, .ro [data-edit] { display: none !important; }
.ro-note { display: flex; align-items: center; gap: 8px; background: var(--amber-l); color: var(--amber); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.ud-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ud-kpis > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.ud-kpis b { font-family: var(--head); font-size: 22px; } .ud-kpis span { font-size: 11.5px; color: var(--grey); }
.ud-list { display: flex; flex-direction: column; gap: 8px; }
.ud-u { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; }
.ud-u:hover { border-color: #000; } .ud-u.off { opacity: .55; }
.ud-av { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--head); font-size: 18px; }
.ud-av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3DBE6B; border: 2px solid #fff; }
.ud-perms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ud-perms span { font-size: 11px; font-weight: 600; background: var(--panel); border-radius: 999px; padding: 2px 8px; color: var(--grey); }
.ud-perms span.edit { background: var(--orange-l); color: var(--orange-d); }
.ud-dev { width: 34px; height: 34px; border-radius: 10px; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.perm-grid { display: flex; flex-direction: column; gap: 8px; }
.perm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
@media (max-width: 760px) { .perm-row .segpick { width: 100%; } .perm-row .segpick button { flex: 1; padding: 6px 4px; } .ud-u .right { display: none; } }
