/* CARD — membership workspace */
:root {
  color-scheme: light;
  --blue: #2455f5;
  --blue-hover: #1947dd;
  --blue-soft: #edf2ff;
  --ink: #16243d;
  --muted: #7a8598;
  --line: #e9edf3;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --green: #169779;
  --radius: 18px;
  --shadow: 0 4px 20px rgb(27 46 86 / 3%);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 16px; line-height: 1.55; letter-spacing: -.035em; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .5; }
button, a, input, select, textarea { transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #97b0ff; outline-offset: 3px; }
input, textarea, select { color: var(--ink); background: #fff; }
input::placeholder, textarea::placeholder { color: #a1aaba; }
input, select { min-height: 48px; }
input, select, textarea { min-width: 0; width: 100%; padding: 12px 14px; border: 1px solid #dde3ed; border-radius: 10px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 100px; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; height: 18px; padding: 0; flex: 0 0 18px; accent-color: var(--blue); }
svg { flex-shrink: 0; width: 22px; height: 22px; vertical-align: middle; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
[hidden], .hidden { display: none !important; }
.app-shell { min-height: 100vh; min-height: 100dvh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 224px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 31px 18px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.sidebar > .brand, .sidebar > a.brand { margin: 0 10px 45px; color: var(--ink); text-decoration: none; }
.brand-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.09em; }
.brand-symbol svg { width: 22px; height: 22px; }
.brand small { color: var(--blue); font-size: inherit; }
.sidebar-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 48px; border-radius: 11px; padding: 13px 17px; color: #788497; background: transparent; font-size: 14px; font-weight: 600; text-align: left; }
.nav-item svg { width: 21px; height: 21px; stroke-width: 1.8; }
.sidebar .nav-item:hover { background: #f6f8fc; color: var(--ink); }
.nav-item.active, .sidebar .nav-item.active:hover { color: var(--blue); background: var(--blue-soft); font-weight: 750; }
.sidebar-foot { margin-top: auto; padding: 22px 9px 0; }
.sidebar-foot .nav-item { width: 100%; padding-left: 7px; }
.sidebar-foot > p { margin-top: 18px; color: #9ba4b3; font-size: 11px; letter-spacing: -.02em; line-height: 1.7; }
.sidebar-foot .support-card { padding: 16px 14px; background: #f7f9fc; border-radius: 12px; }
.sidebar-foot .support-card p { margin: 5px 0 12px; font-size: 12px; color: var(--muted); }
.workspace { margin-left: 224px; min-width: 0; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 88%); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #8791a2; font-size: 13px; }
.breadcrumb strong { color: #44526a; font-weight: 600; }
.breadcrumb svg { width: 14px; height: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-actions > span { font-size: 13px; color: #556176; }
.topbar-actions .avatar { width: 35px; height: 35px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; color: #4665b0; background: #eaf0ff; border-radius: 50%; font-weight: 750; font-size: 14px; }
.avatar.purple { color: #7c5caf; background: #f1ebfa; }
.avatar.green { color: #398c75; background: #e5f4ed; }
.avatar.amber { color: #af8247; background: #faf0df; }
.icon-btn, .close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; background: transparent; color: #69768b; border-radius: 12px; }
.icon-btn:hover, .close:hover { background: #eef2f8; }
.icon-btn { position: relative; }
.icon-btn .dot, .notification-dot { position: absolute; top: 10px; right: 10px; height: 5px; width: 5px; border-radius: 50%; background: var(--blue); border: 1px solid #fff; }
.main { max-width: 1180px; margin: 0 auto; padding: 35px 40px 60px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { font-size: 27px; line-height: 1.4; letter-spacing: -.065em; }
.page-heading p { margin-top: 7px; font-size: 14px; color: #8791a2; }
.page-heading .eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.heading-actions { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.heading-actions > span { white-space: nowrap; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 25px; align-items: start; }
.main-column, .side-column { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.main-column > *, .side-column > * { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-heading h2 { font-size: 17px; letter-spacing: -.055em; }
.section-heading h3 { font-size: 15px; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.section-heading .link-btn { margin: -10px -8px -10px 0; }
.panel, .balance-card { padding: 25px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel > h2 { font-size: 18px; margin-bottom: 16px; }
.panel > p { font-size: 14px; color: var(--muted); }
.panel + .panel { margin-top: 22px; }
.main-column > .panel + .panel, .side-column > .panel + .panel { margin-top: 0; }
.membership-card { isolation: isolate; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 262px; padding: 27px 30px 25px; overflow: hidden; color: #fff; background: linear-gradient(112deg, #163366 0%, #10234c 60%, #10204a 100%); border: 1px solid #284673; border-radius: 19px; box-shadow: 0 12px 25px -16px rgb(18 45 104 / 65%); }
.membership-card::before { position: absolute; content: ""; z-index: -1; width: 305px; height: 460px; top: -105px; right: -83px; transform: rotate(32deg); background: repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgb(159 185 255 / 6%) 18px, rgb(159 185 255 / 6%) 20px); }
.membership-card::after { position: absolute; content: ""; z-index: -1; width: 280px; height: 280px; top: -160px; left: 85px; border-radius: 50%; background: #416cd0; filter: blur(85px); opacity: .19; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.membership-card .brand { font-size: 17px; letter-spacing: -.035em; }
.membership-card .brand-symbol { flex-basis: 26px; height: 26px; width: 26px; border-radius: 7px; font-size: 18px; color: #fff; background: rgb(255 255 255 / 13%); }
.membership-card .brand-symbol svg { width: 18px; height: 18px; }
.membership-card .badge { color: #d4e2ff; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 14%); font-size: 10px; font-weight: 600; letter-spacing: .035em; }
.chip { width: 37px; height: 29px; border-radius: 6px; background: linear-gradient(125deg, #d4cbb4, #f4e9d2 50%, #b3aa98); border: 1px solid rgb(255 255 255 / 35%); position: relative; margin-top: 25px; opacity: .95; }
.chip::before { position: absolute; content: ""; inset: 0 10px; border: 1px solid rgb(86 76 52 / 35%); border-top: 0; border-bottom: 0; }
.chip::after { position: absolute; content: ""; inset: 9px 0; border: 1px solid rgb(86 76 52 / 35%); border-left: 0; border-right: 0; }
.card-orbit { position: absolute; z-index: -1; right: -25px; top: 30px; width: 230px; height: 230px; border: 33px solid rgb(255 255 255 / 3.5%); border-radius: 50%; transform: rotate(-30deg) scaleX(.74); }
.card-number { margin-top: 22px; font-size: 17px; letter-spacing: .19em; color: #d5def0; font-variant-numeric: tabular-nums; }
.card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px; }
.card-plan { font-size: 22px; font-weight: 650; letter-spacing: .075em; line-height: 1.15; }
.card-plan small, .card-valid small { display: block; margin-bottom: 6px; font-size: 9px; letter-spacing: .12em; font-weight: 500; color: #93a8cf; text-transform: uppercase; }
.card-valid { font-size: 12px; line-height: 1.35; color: #cad7ef; text-align: right; }
.card-valid strong { font-size: 12px; font-weight: 500; }
.balance-card { min-height: 262px; display: flex; flex-direction: column; }
.balance-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #69768a; font-size: 14px; }
.balance-label svg { height: 16px; width: 16px; color: #a1abba; }
.balance-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-top: 14px; font-size: 38px; font-weight: 750; letter-spacing: -.045em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.balance-total .unit, .balance-total small { font-size: 15px; font-weight: 500; color: #9099a9; letter-spacing: -.015em; }
.balance-card > p { margin: 6px 0 18px; color: var(--muted); font-size: 12px; }
.balance-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: auto; padding-top: 21px; border-top: 1px solid var(--line); }
.balance-stat { display: flex; flex-direction: column; gap: 6px; }
.balance-stat + .balance-stat { padding-left: 20px; border-left: 1px solid var(--line); }
.balance-stat > span, .balance-stat > small { font-size: 12px; color: #9099a8; }
.balance-stat strong { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.balance-stat strong small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 8px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quick-action { min-height: 84px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 600; color: #5b687d; background: transparent; border-radius: 12px; }
.quick-action:hover { color: var(--blue); background: #f7f9ff; }
.action-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--blue); border-radius: 14px; background: var(--blue-soft); }
.quick-action:nth-child(2) .action-icon { color: #526aa0; background: #eff3fb; }
.quick-action:nth-child(3) .action-icon { color: #4e65cc; background: #f1f0ff; }
.quick-action:nth-child(4) .action-icon { color: #449688; background: #ebf6f2; }
.upgrade-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 25px; border: 1px solid #e0e8fc; border-radius: 15px; background: #edf2ff; }
.upgrade-banner strong { display: block; font-size: 15px; color: #273d72; }
.upgrade-banner p { margin-top: 5px; color: #7484a7; font-size: 12px; line-height: 1.65; }
.upgrade-banner .btn { flex-shrink: 0; background: #fff; min-height: 40px; color: var(--blue); border-color: #fff; padding: 9px 15px; font-size: 12px; }
.upgrade-banner > svg { color: var(--blue); }
.activity-list, .ledger-list, .team-list, .settings-list { list-style: none; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0f3f7; }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-item:first-child { padding-top: 3px; }
.activity-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #5073cb; background: #eef3ff; }
.activity-icon svg { height: 18px; width: 18px; }
.activity-icon.team { color: #8a6cbb; background: #f4effb; }
.activity-icon.bonus { color: #bf8c42; background: #fbf4e8; }
.activity-icon.withdrawal, .activity-icon.withdraw { color: #7e899c; background: #f0f3f7; }
.activity-info { min-width: 0; flex: 1; }
.activity-info strong { display: block; font-size: 13px; color: #435168; font-weight: 600; }
.activity-info small { display: block; margin-top: 3px; color: #a0a8b5; font-size: 11px; }
.activity-value { flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-value small { display: block; margin-top: 3px; font-size: 10px; color: #a0a8b5; font-weight: 500; }
.positive { color: var(--green); }
.negative { color: #d17070; }
.stat-grid, .admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { min-width: 0; padding: 21px 23px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.stat-label svg { width: 16px; height: 16px; }
.stat-value { margin-top: 9px; font-size: 28px; line-height: 1.3; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.stat-value small, .stat-value .unit { margin-left: 4px; color: #929baa; font-size: 12px; font-weight: 500; }
.stat-note { margin-top: 7px; font-size: 11px; color: #929dad; }
.stat-note.positive { color: var(--green); }
.side-column .stat-grid { gap: 0; margin-bottom: 0; padding: 23px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.side-column .stat-card { padding: 0 16px; border: 0; border-radius: 0; box-shadow: none; }
.side-column .stat-card + .stat-card { border-left: 1px solid var(--line); }
.side-column .stat-value { font-size: 23px; }
.section-tabs { display: flex; align-items: center; gap: 25px; margin-bottom: 24px; border-bottom: 1px solid #e2e7ef; }
.tab { position: relative; min-height: 49px; padding: 12px 1px 16px; color: #8b95a5; background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tab.active { color: var(--blue); }
.tab.active::after { position: absolute; content: ""; height: 3px; left: 0; right: 0; bottom: -1px; background: var(--blue); border-radius: 3px 3px 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; align-items: stretch; margin: 28px 0 24px; }
.product-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 26px 23px 23px; border: 1px solid #e1e6ef; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.product-card.plus { border-color: #92aaf8; background: linear-gradient(180deg, #f6f8ff, #fff 45%); }
.product-card.selected { box-shadow: 0 0 0 1px var(--blue), 0 8px 22px -12px #718ee2; border-color: var(--blue); }
.product-card.black { background: #182740; color: #f9faff; border-color: #273750; }
.product-badge { align-self: flex-start; min-height: 22px; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 20px; padding: 4px 8px; color: #7b8798; background: #f0f3f8; border-radius: 5px; font-size: 10px; font-weight: 650; letter-spacing: .035em; }
.product-card.plus .product-badge { color: var(--blue); background: #e9eeff; }
.product-card.black .product-badge { color: #d5dded; background: #2a3a56; }
.product-name { font-size: 20px; font-weight: 750; letter-spacing: .035em; }
.product-card > p { margin-top: 8px; color: #939cad; font-size: 12px; }
.product-price { margin-top: 22px; font-size: 35px; font-weight: 750; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.product-price small, .product-price .unit { color: #8994a7; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.product-duration { margin-top: 1px; font-size: 11px; color: #919cad; }
.benefit-list { display: flex; flex-direction: column; gap: 13px; margin: 23px 0 28px; padding-top: 23px; border-top: 1px solid var(--line); list-style: none; }
.benefit-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #718095; line-height: 1.55; }
.benefit-list li svg { width: 16px; height: 16px; margin-top: 1px; color: var(--blue); }
.product-card.black .benefit-list { border-color: #334059; }
.product-card.black .benefit-list li { color: #b0bfd6; }
.product-card.black .benefit-list li svg { color: #9eb7fa; }
.product-card > .btn { margin-top: auto; width: 100%; }
.product-card.black > .btn { background: #fff; color: #1b2c4b; border-color: #fff; }
.info-strip { display: flex; align-items: flex-start; gap: 10px; padding: 17px 19px; background: #edf2fc; border-radius: 12px; font-size: 12px; line-height: 1.8; color: #71819e; }
.info-strip svg { width: 17px; height: 17px; margin-top: 2px; color: #7991c8; }
.info-strip strong { color: #4d6595; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin-bottom: 20px; }
.search-input { position: relative; max-width: 320px; min-width: 180px; }
.search-input svg { position: absolute; top: 14px; left: 14px; color: #9ca6b8; height: 19px; width: 19px; }
.search-input input { padding-left: 42px; font-size: 13px; }
input.search-input { min-height: 44px; font-size: 13px; }
.team-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 25px; margin-bottom: 23px; color: #56719d; border: 1px solid #e2e9f8; border-radius: 14px; background: #eff4ff; }
.team-summary h3 { color: #294c87; font-size: 16px; }
.team-summary p { font-size: 12px; margin-top: 5px; }
.member-row { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-row:first-child { padding-top: 5px; }
.member-info { min-width: 0; flex: 1; }
.member-info strong { font-size: 14px; }
.member-info small, .member-info p { display: block; margin-top: 3px; font-size: 11px; color: #98a1b0; overflow-wrap: anywhere; }
.member-info .badge { margin-left: 7px; vertical-align: 1px; }
.member-metrics { text-align: right; font-size: 14px; font-weight: 600; }
.member-metrics small { display: block; margin-top: 4px; color: #97a2b2; font-size: 11px; font-weight: 400; }
.status-tag, .badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 8px; background: #f1f3f7; border-radius: 5px; font-size: 10px; line-height: 1.35; font-weight: 600; color: #8692a4; white-space: nowrap; letter-spacing: -.02em; }
.status-tag.active, .badge.green { color: #278e72; background: #eaf6ef; }
.status-tag.pending, .badge.amber { color: #b18a39; background: #fcf5e5; }
.status-tag.rejected, .badge.red { color: #bd6268; background: #fbedee; }
.badge.blue { color: #4167d1; background: #edf2ff; }
.tree-view { min-width: 0; padding: 26px 5px; overflow-x: auto; text-align: center; }
.tree-root, .tree-node { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 7px; min-width: 125px; padding: 17px 14px; background: #fff; border: 1px solid #dfe6f0; border-radius: 13px; font-size: 13px; }
.tree-root { min-width: 160px; border-color: #86a3f8; background: #f5f8ff; color: #315bca; }
.tree-root .avatar { background: var(--blue); color: #fff; }
.tree-root small, .tree-node small { color: #99a3b4; font-size: 10px; }
.tree-branches { position: relative; display: flex; justify-content: center; gap: 22px; min-width: max-content; margin-top: 48px; padding: 0 12px; }
.tree-branches::before { position: absolute; content: ""; left: 50%; top: -48px; height: 26px; border-left: 1px solid #d8e0ee; }
.tree-node::before { position: absolute; content: ""; left: 50%; top: -24px; height: 24px; border-left: 1px solid #d8e0ee; }
.tree-node::after { position: absolute; content: ""; top: -24px; left: -13px; right: -13px; border-top: 1px solid #d8e0ee; }
.tree-node:first-child::after { left: 50%; }
.tree-node:last-child::after { right: 50%; }
.tree-node:only-child::after { display: none; }
.empty-state { padding: 48px 20px; text-align: center; color: #9da7b6; font-size: 13px; }
.empty-state > svg { height: 35px; width: 35px; color: #bbc6d7; margin-bottom: 14px; }
.empty-state h3, .empty-state strong { display: block; color: #62738d; font-size: 15px; margin-bottom: 7px; }
.empty-state .btn { margin-top: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.filter-btn { min-height: 44px; padding: 10px 16px; background: #fff; border: 1px solid #e3e8f1; border-radius: 9px; font-size: 12px; color: #8994a6; }
.filter-btn.active { background: #edf2ff; border-color: #dce5ff; color: var(--blue); font-weight: 650; }
.ledger-row { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .activity-info strong { font-size: 14px; }
.ledger-row .activity-value { font-size: 15px; }
.wallet-panel { max-width: 720px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.wallet-panel .balance-total { margin: 15px 0 23px; }
.wallet-panel h2 { font-size: 18px; }
.wallet-address, .copy-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #e0e6f1; border-radius: 10px; background: #f8faff; color: #6c7f9b; font-size: 12px; }
.wallet-address code, .copy-box code, .copy-box > span { min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.wallet-address .icon-btn, .copy-box .icon-btn { height: 40px; width: 40px; }
.copy-box .btn { flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 19px; }
.field label { color: #58687e; font-size: 13px; font-weight: 600; }
.field small { color: #99a3b3; font-size: 11px; line-height: 1.7; }
.field label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; font-weight: 400; }
.field label input[type="checkbox"] { margin-top: 2px; }
.form-grid .field { margin-bottom: 0; }
.form-grid .full-width { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.4fr); gap: 15px; margin: 23px 0; font-size: 13px; }
.detail-grid dt { color: #8b96a7; }
.detail-grid dd { margin: 0; color: #4b5b73; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.profile-head { display: flex; align-items: center; gap: 18px; padding: 5px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.profile-head .avatar { height: 60px; width: 60px; font-size: 21px; }
.profile-head h2, .profile-head strong { font-size: 20px; }
.profile-head p { margin-top: 5px; color: #9aa4b4; font-size: 12px; }
.profile-head .badge { margin-left: 6px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 64px; padding: 17px 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; font-size: 14px; text-align: left; }
.settings-row:last-child { border-bottom: 0; }
.settings-row > span { display: flex; align-items: center; gap: 12px; }
.settings-row svg { height: 19px; width: 19px; color: #8b99af; }
.settings-row > svg { height: 15px; width: 15px; color: #a5afbd; }
.settings-row small { color: #929eb0; font-size: 12px; }
.notice { padding: 18px 20px; color: #8290a7; background: #eef2f8; border-radius: 11px; font-size: 12px; line-height: 1.8; }
.notice strong { color: #5a6c88; }
.notice p + p { margin-top: 7px; }
.notice + .panel, .notice + .stat-grid { margin-top: 22px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 14px 14px; background: #f8f9fc; color: #97a1b0; font-weight: 500; white-space: nowrap; }
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
td { padding: 17px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; color: #617087; }
td strong { color: #344660; font-weight: 600; }
td .btn { min-height: 44px; padding: 9px 13px; font-size: 11px; }
tr:last-child td { border-bottom: 0; }
.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .btn { min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border: 1px solid #e0e6ef; border-radius: 10px; background: #fff; color: #64738b; font-size: 13px; font-weight: 650; line-height: 1.35; text-align: center; }
.btn:hover { background: #f6f8fc; }
.btn svg { height: 17px; width: 17px; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-secondary { background: #edf2ff; color: var(--blue); border-color: #e8eeff; }
.btn-danger { background: #fff3f3; border-color: #f4dddd; color: #be696c; }
.btn-small { min-height: 44px; padding: 10px 14px; font-size: 12px; }
.btn:disabled:hover { background: revert; }
.btn-primary:disabled:hover { background: var(--blue); }
.link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 9px 8px; background: transparent; color: #8692a7; font-size: 12px; font-weight: 500; }
.link-btn:hover { color: var(--blue); }
.link-btn svg { height: 13px; width: 13px; }
.link-btn.blue { color: var(--blue); }
.bottom-nav { display: none; }
.preview-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; color: #8b97ad; background: #f3f5f9; border: 1px solid #e8ecf2; border-radius: 20px; font-size: 10px; font-weight: 500; letter-spacing: .015em; white-space: nowrap; }
.preview-pill::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #7fa396; }
.toast { position: fixed; z-index: 100; left: calc(50% + 112px); bottom: 30px; max-width: min(460px, calc(100vw - 40px)); transform: translate(-50%, 18px); padding: 14px 21px; border-radius: 12px; background: #20304c; box-shadow: 0 10px 25px rgb(15 30 58 / 18%); color: #fff; font-size: 13px; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show, .toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.modal { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid #e3e8f0; border-radius: 20px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 25px 100px rgb(11 31 64 / 25%); overflow-x: hidden; }
.modal::backdrop { background: rgb(20 36 66 / 37%); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal[open] { animation: modal-enter .2s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 19px 13px 25px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 19px; }
.modal-head .close { font-size: 23px; font-weight: 400; }
.modal-body { padding: 25px; }
.modal-body > p { color: #8592a6; font-size: 13px; line-height: 1.8; margin-bottom: 21px; }
.modal-body .notice { margin-bottom: 20px; }
.modal-body .detail-grid { margin-top: 0; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 25px 24px; }
.modal-actions .btn { flex: 1; }
.modal-body .modal-actions { padding: 18px 0 0; }
.modal-body .field:last-child { margin-bottom: 0; }
.error-message { padding: 12px 14px; margin: 14px 0; border-radius: 9px; background: #fff0f1; color: #bf646d; font-size: 12px; line-height: 1.65; }
.error-message:empty { display: none; }
.success-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 20px; background: #edf7f0; color: var(--green); border-radius: 50%; }
.success-icon svg { width: 30px; height: 30px; }
.result-box { padding: 18px; border: 1px solid #dfe9fb; border-radius: 12px; color: #6380ad; background: #f3f7ff; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.result-box strong { color: #315ea9; }
.auth-layout { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; min-height: 100dvh; background: #fff; }
.auth-art { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px clamp(35px, 6vw, 100px); overflow: hidden; background: #142b52; color: #fff; }
.auth-art::before { position: absolute; content: ""; width: 800px; height: 800px; left: -40%; bottom: -65%; border: 100px solid rgb(120 155 241 / 7%); border-radius: 50%; }
.auth-art > .brand { position: absolute; top: 50px; left: clamp(35px, 6vw, 100px); }
.auth-art h1 { position: relative; font-size: clamp(30px, 3.1vw, 47px); line-height: 1.45; letter-spacing: -.065em; font-weight: 650; }
.auth-art > p { margin-top: 19px; color: #91a6c7; font-size: 15px; line-height: 1.9; }
.auth-art .membership-card { width: 100%; max-width: 410px; margin-top: 45px; transform: rotate(-5deg); box-shadow: 0 25px 45px rgb(2 12 35 / 25%); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 55px 40px; }
.auth-form { width: 100%; max-width: 370px; }
.auth-form > .brand { margin-bottom: 32px; }
.auth-form h1, .auth-form h2 { font-size: 27px; }
.auth-form > p { margin: 10px 0 30px; color: #95a0b0; font-size: 14px; line-height: 1.8; }
.auth-form .field { margin-bottom: 20px; }
.auth-form input { min-height: 51px; }
.auth-form .btn { min-height: 49px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 25px 0; padding: 5px; border-radius: 11px; background: #f2f5fa; }
.auth-tabs button { min-height: 44px; padding: 11px; border-radius: 8px; background: transparent; color: #8a96a8; font-size: 13px; font-weight: 600; }
.auth-tabs button.active { color: #3c5d9d; background: #fff; box-shadow: 0 2px 5px rgb(36 57 93 / 5%); }
.demo-bar { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.demo-bar > p { margin-bottom: 11px; color: #a1a9b6; font-size: 11px; }
.demo-chip { min-height: 44px; padding: 10px 13px; margin-right: 5px; border: 1px solid #e4e9f2; border-radius: 8px; background: #f9fbff; color: #7185a5; font-size: 11px; }
.demo-chip:hover { border-color: #bacaf0; color: var(--blue); }
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 115px; padding-top: 12px; border-bottom: 1px solid #edf1f7; }
.mini-chart > div, .mini-chart > span { flex: 1; min-width: 0; border-radius: 4px 4px 0 0; background: #dfe7ff; }
.mini-chart > :last-child { background: var(--blue); }
.chart-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: #a0aabc; font-size: 10px; text-align: center; }
.chart-labels span { flex: 1; }
.spacer { height: 24px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.full-width { width: 100%; }
.amount { font-variant-numeric: tabular-nums; letter-spacing: -.035em; }

/* Components shared by the member and operator views. */
.brand-light { font-weight: 500; }
.mobile-brand { display: none; }
.sidebar-label { margin: -13px 16px 18px; color: #afb6c3; font-size: 9px; font-weight: 650; letter-spacing: .14em; }
.sidebar-help { padding: 17px 14px; background: #f7f9fc; border-radius: 12px; }
.sidebar-help > svg { display: block; color: #899cbd; width: 22px; height: 22px; margin-bottom: 13px; }
.sidebar-help strong { display: block; color: #617189; font-size: 12px; }
.sidebar-help p { margin-top: 6px; color: #a0aab9; font-size: 10px; }
.sidebar-help .link-btn { padding-left: 0; color: #6682b4; font-size: 11px; margin: 5px 0 -7px; }
.sidebar-copyright { display: block; margin: 23px 0 0 7px; color: #b0b8c5; font-size: 9px; letter-spacing: .02em; }
.desktop-breadcrumb > span { margin: 0 10px; color: #ccd3de; }
.page-footer { max-width: 1180px; margin: 0 auto; padding: 0 40px 25px; color: #b3bdcd; font-size: 9px; letter-spacing: .08em; }
.page-footer span { margin-left: 16px; font-size: 10px; letter-spacing: -.025em; }
.topbar .demo-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; margin: 0 3px 0 0; padding: 5px 10px; border-color: #e6ebf3; background: #fafbfe; font-size: 10px; }
.topbar .demo-chip > span { width: 5px; height: 5px; border-radius: 50%; background: #6faa99; }
.greeting-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 0 4px 3px; background: var(--blue); }
.date-label { letter-spacing: 0; color: #9aa6b9; font-size: 12px; }
.main-column > .section-heading, .side-column > .section-heading { margin-bottom: -9px; }
.currency-pill { padding: 4px 7px; border-radius: 5px; color: #99a5b8; background: #eaf0f8; font-size: 9px; letter-spacing: .025em; }
.card-tier { color: #c5d6f3; font-size: 9px; letter-spacing: .13em; border: 1px solid rgb(158 184 230 / 32%); border-radius: 5px; padding: 4px 8px; }
.card-middle { margin: 24px 0 0; }
.card-kicker { display: block; margin-bottom: 7px; color: #809fce; font-size: 8px; font-weight: 500; letter-spacing: .13em; }
.card-middle .card-plan { font-size: 26px; font-weight: 550; letter-spacing: -.015em; }
.card-middle .card-number { display: block; margin-top: 12px; font-size: 9px; font-weight: 400; letter-spacing: .15em; color: #8cadd8; }
.card-bottom > div:first-child { margin-right: auto; }
.card-bottom small { display: block; margin-bottom: 4px; color: #7798c7; font-size: 7px; letter-spacing: .09em; line-height: 1.45; }
.card-bottom strong { display: block; color: #c3d4ef; font-size: 11px; font-weight: 400; letter-spacing: .045em; }
.card-emblem { font-size: 31px; font-weight: 700; line-height: 1; letter-spacing: -.08em; color: #bad0f2; }
.card-orbit > span { display: none; }
.balance-card > .btn { margin-top: 23px; }
.balance-pending { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 10px 0 0 !important; color: #99a5b7; font-size: 10px !important; }
.balance-pending svg { width: 12px; height: 12px; }
.upgrade-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; color: #5680f0; background: #fff; border-radius: 13px; }
.upgrade-icon + div { flex: 1; }
.upgrade-banner small { display: block; margin-bottom: 4px; color: #8198cc; font-size: 8px; letter-spacing: .11em; }
.upgrade-banner .icon-btn { height: 44px; width: 44px; padding: 10px; color: #6488d8; margin-right: -7px; }
.upgrade-banner .icon-btn svg { width: 20px; height: 20px; }
.team-home-top { display: flex; align-items: center; gap: 13px; }
.team-home-top .action-icon { height: 45px; width: 45px; background: #f0f4ff; border-radius: 13px; }
.team-home-top > div > span { display: block; color: #96a2b5; font-size: 11px; }
.team-home-top > div > strong { display: block; margin-top: 4px; font-size: 27px; line-height: 1.25; font-weight: 700; }
.team-home-top strong small { color: #99a5b8; margin-left: 5px; font-size: 12px; font-weight: 400; }
.team-home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 23px 0 20px; }
.team-home-stats > div { display: flex; flex-direction: column; gap: 7px; }
.team-home-stats > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.team-home-stats span { font-size: 11px; color: #98a5b7; }
.team-home-stats strong { font-size: 13px; font-weight: 600; }
.invite-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 45px; width: 100%; padding: 11px 12px; color: #99a6bc; border: 1px solid #e9eef8; border-radius: 8px; background: #f6f8fd; font-size: 10px; text-align: left; }
.invite-link b { margin-left: 8px; color: #496aab; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.invite-link svg { height: 14px; width: 14px; }
.notice-panel { border-color: #e7ecf7; background: #fafdff; box-shadow: none; }
.notice-panel > strong, .notice-panel > h3 { display: block; margin: 11px 0 8px; color: #4b6386; font-size: 13px; font-weight: 650; }
.notice-panel > p { color: #98a6bb; font-size: 12px; line-height: 1.8; }
.notice-panel > .link-btn { margin: 7px 0 -8px; padding-left: 0; color: #7895c3; font-size: 11px; }
.stat-value { display: block; }
.primary-stat { border-color: #d9e4ff; background: #eff4ff; }
.primary-stat .stat-value { color: var(--blue); }
.product-symbol { position: absolute; top: 24px; right: 18px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #8b9bb5; }
.product-symbol svg { width: 24px; height: 24px; }
.product-card.plus .product-symbol { color: var(--blue); }
.product-card.black .product-symbol { color: #c8d3e7; }
.product-card .product-badge { max-width: calc(100% - 20px); font-size: 8px; }
.product-price > span { font-size: 12px; color: #919caf; font-weight: 500; }
.product-tagline { min-height: 36px; }
.membership-detail { margin-top: 25px; }
.membership-detail .detail-grid { grid-template-columns: 1fr 1.6fr 1fr 1.6fr; gap: 20px 15px; }
.membership-detail .detail-grid dd { text-align: left; }
.membership-detail > .text-muted { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; }
.view-switch { display: flex; padding: 3px; background: #f4f6fb; border: 1px solid #edf0f6; border-radius: 10px; }
.view-switch .icon-btn { width: 40px; height: 40px; padding: 11px; border-radius: 7px; }
.view-switch .icon-btn svg { height: 18px; width: 18px; }
.view-switch .active { color: var(--blue); background: #fff; box-shadow: 0 2px 4px rgb(42 70 130 / 7%); }
.list-toolbar .section-tabs { margin-bottom: 0; }
.search-field { position: relative; margin-bottom: 17px; }
.search-field > svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: #a5b0c1; }
.search-field .search-input { min-height: 44px; min-width: 0; max-width: none; width: 100%; padding: 11px 15px 11px 40px; border-color: #e8edf6; background: #f9fbfe; font-size: 12px; }
.member-row { width: 100%; background: transparent; text-align: left; }
.member-row:hover { background: #fbfcff; }
.member-row > svg { width: 13px; height: 13px; margin-left: 6px; color: #b2bed0; }
.member-info strong .depth-label { display: inline-flex; margin: 0 0 0 5px; padding: 2px 6px; color: #8ca0c2; background: #f0f4fa; border-radius: 4px; font-size: 9px; font-weight: 400; vertical-align: 1px; }
.member-metrics > .badge { display: block; width: fit-content; margin: 5px 0 0 auto; }
.avatar.large { height: 60px; width: 60px; font-size: 21px; }
.avatar.small { height: 34px; width: 34px; font-size: 12px; }
.tree-node:hover { border-color: #a9bce9; background: #f8faff; }
.panel + .info-strip { margin-top: 20px; }
.settings-row > span { flex: 1; }
.settings-row > svg:first-child { color: #8097bc; width: 19px; height: 19px; }
.profile-head .badge { margin: 8px 0 0; }
.profile-head h3 { font-size: 17px; }
.profile-head div > span:not(.badge) { color: #92a1b8; font-size: 12px; }
.detail-grid .link-btn { min-height: 25px; padding: 0; color: #577ab5; }
.wallet-panel { width: 100%; }
.wallet-panel > .section-heading { width: 100%; }
.wallet-panel > .wallet-icon { width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; margin: 26px auto 17px; color: #507af0; background: #edf3ff; border-radius: 15px; }
.wallet-icon > svg { width: 26px; height: 26px; }
.wallet-panel > h3 { text-align: center; font-size: 15px; }
.wallet-panel > p { margin: 6px 0 13px; text-align: center; font-size: 12px; }
.wallet-panel > .badge { display: flex; width: fit-content; margin: 0 auto 20px; }
.wallet-panel > .wallet-address { margin: 18px 0; font-size: 10px; }
.wallet-panel > .btn { margin-top: 9px; }
.wallet-panel > small { display: block; margin-top: 13px; text-align: center; color: #a7b1c1; font-size: 10px; line-height: 1.8; }
.wallet-address { overflow-wrap: anywhere; word-break: break-all; }
.notification-item .activity-info p { margin-top: 7px; color: #8998b0; font-size: 12px; line-height: 1.7; }
.notification-item.unread .activity-info strong { color: #405f91; }
.unread-dot { flex: 0 0 6px; width: 6px; height: 6px; margin-left: 10px; background: var(--blue); border-radius: 50%; }
.activity-value > strong { display: block; }
.activity-value > .badge { margin-top: 5px; }
.activity-value > .link-btn { display: flex; margin: 4px 0 -8px auto; padding-right: 0; font-size: 10px; }
.activity-value .admin-actions { justify-content: flex-end; margin-top: 9px; }
.activity-value .admin-actions .btn { padding: 9px 12px; font-size: 10px; }
.txid-preview { letter-spacing: .01em; font-variant-numeric: tabular-nums; }
td > small { display: block; margin-top: 3px; color: #a4b0c2; font-size: 10px; }
.result-box { margin-bottom: 23px; }
.result-box h3 { margin: 11px 0 5px; color: #476ba5; font-size: 16px; }
.result-box .amount { margin-top: 7px; color: #2f59a3; font-size: 27px; font-weight: 700; }
.result-box .amount small { color: #97abc9; font-size: 12px; font-weight: 400; }
.modal-body .notice { margin: 19px 0; }
.consent { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; margin-top: 19px; color: #7e8fa9; font-size: 12px; line-height: 1.8; }
.consent input { margin: 3px 0 0; }
.input-action { display: flex; align-items: center; gap: 10px; position: relative; }
.input-action input { padding-right: 59px; }
.input-action .link-btn { position: absolute; right: 8px; color: var(--blue); }
.invite-modal-icon { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin: 6px auto 18px; border-radius: 19px; background: #edf3ff; color: var(--blue); }
.invite-modal-icon svg { width: 28px; height: 28px; }
.invite-modal-icon + p { text-align: center; }
.copy-box strong { color: #5275b3; letter-spacing: .04em; font-size: 16px; font-weight: 600; }
.help-steps { display: flex; flex-direction: column; gap: 23px; padding: 3px 0 8px; }
.help-steps article { display: flex; gap: 15px; }
.help-steps article > span { flex: 0 0 27px; width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; background: #edf2ff; color: #6688d3; border-radius: 8px; font-size: 10px; font-weight: 650; letter-spacing: 0; }
.help-steps h3 { color: #526b90; font-size: 13px; }
.help-steps p { margin-top: 5px; color: #95a2b7; font-size: 11px; line-height: 1.8; }
.auth-art { min-height: 100dvh; }
.auth-art > div:not(.brand) { position: relative; z-index: 1; }
.auth-art .eyebrow { color: #7196cb; font-size: 10px; letter-spacing: .13em; margin-bottom: 21px; }
.auth-art > div > p { margin-top: 24px; color: #89a3c9; font-size: 14px; line-height: 1.9; }
.auth-art > span { position: absolute; bottom: 34px; left: clamp(35px, 6vw, 100px); color: #6480aa; font-size: 9px; letter-spacing: .07em; }
.auth-brand-mark { position: absolute; z-index: -1; top: 95%; right: -20px; font-size: clamp(170px, 24vw, 360px); line-height: .9; font-weight: 800; letter-spacing: -.1em; color: rgb(153 184 241 / 7%); }
.auth-form > .eyebrow { margin-bottom: 11px; color: #849dd0; font-size: 9px; font-weight: 650; letter-spacing: .11em; }
.auth-tabs .tab { padding: 11px; }
.auth-tabs .tab.active::after { display: none; }
.auth-demo { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.auth-demo > span { display: block; margin-bottom: 15px; color: #a1aec3; font-size: 11px; }
.auth-demo > .link-btn { margin-top: 9px; font-size: 11px; }

@keyframes modal-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 1500px) {
  .main { padding-top: 43px; }
  .topbar { padding-left: max(40px, calc((100vw - 224px - 1100px) / 2)); padding-right: max(40px, calc((100vw - 224px - 1100px) / 2)); }
}
@media (max-width: 1190px) {
  .main { padding: 29px 28px 50px; }
  .topbar { padding: 0 28px; }
  .content-grid { gap: 20px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .membership-card { padding: 24px; }
  .panel, .balance-card { padding: 22px; }
  .balance-total { font-size: 34px; }
  .product-grid { gap: 14px; }
  .product-card { padding: 24px 18px 19px; }
  .product-price { font-size: 29px; }
  .upgrade-banner { padding: 19px 21px; }
  .stat-card { padding: 19px; }
  .side-column .stat-card { padding: 0 11px; }
}
@media (max-width: 1020px) {
  .sidebar { width: 200px; padding-left: 13px; padding-right: 13px; }
  .sidebar > .brand { margin-left: 7px; }
  .brand { font-size: 17px; gap: 8px; }
  .workspace { margin-left: 200px; }
  .main { padding: 27px 24px 50px; }
  .topbar { padding: 0 24px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .main-column, .side-column { gap: 21px; }
  .side-column { display: grid; grid-template-columns: minmax(0, 1fr); }
  .membership-card { min-height: 255px; }
  .balance-card { min-height: 225px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 25px; padding: 25px; }
  .product-badge { margin-bottom: 14px; width: fit-content; }
  .product-name, .product-price, .product-duration, .product-card > p { grid-column: 1; }
  .product-price { margin-top: 15px; }
  .benefit-list { grid-column: 2; grid-row: 1 / span 5; margin: 0; padding: 0 0 0 25px; border-left: 1px solid var(--line); border-top: 0; justify-content: center; }
  .product-card > .btn { grid-column: 1 / -1; margin-top: 22px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { left: calc(50% + 100px); }
}
@media (max-width: 767px) {
  body { background: #f5f7fb; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 67px; padding: 0 20px; background: #fff; }
  .breadcrumb { font-size: 12px; }
  .topbar .brand { font-size: 17px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions > span { display: none; }
  .topbar-actions .avatar { height: 31px; width: 31px; font-size: 12px; }
  .topbar .preview-pill { padding: 5px 8px; font-size: 9px; }
  .main { max-width: 620px; padding: 26px 20px calc(110px + env(safe-area-inset-bottom, 0px)); }
  .page-heading { align-items: flex-start; margin-bottom: 23px; gap: 12px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { margin-top: 6px; font-size: 12px; line-height: 1.65; }
  .page-heading .eyebrow { font-size: 9px; margin-bottom: 7px; }
  .heading-actions { padding-top: 4px; gap: 5px; }
  .heading-actions > span { font-size: 10px; }
  .heading-actions .btn { min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .content-grid { gap: 21px; }
  .main-column, .side-column { gap: 21px; }
  .membership-card { min-height: 223px; padding: 23px 24px 22px; border-radius: 17px; }
  .membership-card .brand { font-size: 16px; }
  .membership-card::before { right: -95px; }
  .card-orbit { width: 190px; height: 190px; top: 18px; right: -20px; border-width: 27px; }
  .chip { margin-top: 19px; width: 34px; height: 27px; }
  .card-number { margin-top: 18px; font-size: 15px; letter-spacing: .16em; }
  .card-bottom { margin-top: 20px; }
  .card-plan { font-size: 21px; }
  .card-valid { font-size: 11px; }
  .balance-card { min-height: 235px; padding: 23px; }
  .balance-total { margin-top: 12px; font-size: 35px; }
  .balance-foot { margin-top: 18px; padding-top: 19px; }
  .quick-actions { padding: 14px 5px; gap: 3px; border-radius: 15px; }
  .quick-action { font-size: 11px; min-height: 80px; gap: 9px; }
  .action-icon { width: 43px; height: 43px; border-radius: 14px; }
  .panel { padding: 22px 20px; border-radius: 16px; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 16px; }
  .upgrade-banner { gap: 12px; padding: 20px; border-radius: 14px; }
  .upgrade-banner strong { font-size: 13px; }
  .upgrade-banner p { font-size: 11px; }
  .upgrade-banner .btn { min-height: 44px; padding: 10px 12px; font-size: 10px; }
  .activity-item { gap: 11px; padding-top: 16px; padding-bottom: 16px; }
  .activity-info strong { font-size: 12px; }
  .activity-info small { font-size: 10px; }
  .activity-value { font-size: 12px; }
  .activity-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .stat-grid { gap: 8px; margin-bottom: 22px; }
  .stat-card { padding: 17px 12px; border-radius: 12px; }
  .stat-label { font-size: 10px; gap: 5px; }
  .stat-label svg { width: 13px; height: 13px; }
  .stat-value { font-size: 23px; margin-top: 9px; }
  .stat-value small, .stat-value .unit { font-size: 10px; margin-left: 2px; }
  .stat-note { margin-top: 6px; font-size: 9px; line-height: 1.6; }
  .side-column .stat-grid { padding: 19px 0; }
  .side-column .stat-card { padding: 0 15px; }
  .section-tabs { gap: 24px; margin-bottom: 22px; overflow-x: auto; }
  .tab { font-size: 13px; }
  .product-grid { margin-top: 24px; gap: 18px; }
  .product-card { padding: 24px 21px; column-gap: 18px; }
  .product-name { font-size: 18px; }
  .product-price { font-size: 30px; }
  .product-card > p { font-size: 10px; }
  .product-price small { font-size: 10px; }
  .product-duration { font-size: 10px; }
  .product-badge { font-size: 9px; }
  .benefit-list { gap: 12px; padding-left: 18px; }
  .benefit-list li { font-size: 10px; gap: 5px; }
  .benefit-list li svg { width: 13px; height: 13px; }
  .info-strip { font-size: 11px; padding: 15px; gap: 8px; }
  .list-toolbar { gap: 12px; }
  .search-input { max-width: none; width: 100%; }
  .list-toolbar .section-tabs { margin-bottom: 0; width: 100%; }
  .team-summary { padding: 19px; gap: 12px; }
  .team-summary h3 { font-size: 14px; }
  .team-summary p { font-size: 11px; }
  .team-summary .btn { font-size: 11px; padding: 10px 12px; flex-shrink: 0; }
  .member-row { gap: 10px; padding: 18px 0; }
  .member-row .avatar { width: 35px; height: 35px; font-size: 12px; }
  .member-info strong { font-size: 12px; }
  .member-info .badge { margin-left: 4px; font-size: 8px; padding: 3px 5px; }
  .member-info small, .member-info p { font-size: 10px; }
  .member-metrics { font-size: 12px; }
  .member-metrics small { font-size: 9px; }
  .member-row > .status-tag { display: none; }
  .tree-view { padding: 24px 0; }
  .tree-root { min-width: 140px; }
  .tree-node { min-width: 107px; padding: 15px 10px; }
  .tree-branches { gap: 14px; justify-content: flex-start; width: max-content; min-width: 100%; padding: 0 3px; }
  .tree-node::after { left: -9px; right: -9px; }
  .tree-node:first-child::after { left: 50%; }
  .tree-node:last-child::after { right: 50%; }
  .filter-row { flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 3px; margin-bottom: 18px; }
  .filter-btn { flex-shrink: 0; font-size: 11px; padding: 10px 13px; }
  .ledger-row { gap: 10px; padding: 18px 0; }
  .ledger-row .activity-info strong { font-size: 12px; }
  .ledger-row .activity-value { font-size: 13px; }
  .wallet-panel { padding: 23px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-grid { grid-template-columns: minmax(90px, .8fr) minmax(0, 1.4fr); gap: 16px; font-size: 12px; }
  .profile-head { gap: 14px; }
  .profile-head .avatar { width: 52px; height: 52px; font-size: 18px; }
  .profile-head h2 { font-size: 18px; }
  .settings-row { font-size: 13px; }
  .notice { font-size: 11px; padding: 16px 17px; }
  .admin-stats { gap: 10px; }
  .admin-stats .stat-card { padding: 18px 17px; }
  .admin-actions { width: 100%; }
  .admin-actions .btn { flex: 1; padding: 10px 12px; font-size: 11px; }
  .table-wrap { margin-left: -4px; width: calc(100% + 8px); }
  th, td { padding-left: 11px; padding-right: 11px; }
  .bottom-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(72px + env(safe-area-inset-bottom, 0px)); padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / 96%); border-top: 1px solid #e9edf3; box-shadow: 0 -3px 20px rgb(29 47 78 / 3%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .bottom-nav .nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; border-radius: 9px; padding: 4px 2px; font-size: 10px; line-height: 1.2; text-align: center; color: #99a3b4; font-weight: 500; background: transparent; }
  .bottom-nav .nav-item.active { color: var(--blue); font-weight: 700; }
  .bottom-nav .nav-item svg { height: 22px; width: 22px; stroke-width: 1.8; }
  .bottom-nav .nav-item.active::before { content: ""; width: 26px; height: 3px; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border-radius: 0 0 4px 4px; background: var(--blue); }
  .toast { left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100vw - 36px); padding: 13px 18px; font-size: 12px; }
  .modal { max-height: calc(100dvh - 35px); }
  .modal-head { padding: 15px 14px 12px 22px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { padding: 22px; }
  .modal-actions { padding: 16px 22px 22px; }
  .modal .field input, .modal .field select, .modal .field textarea { font-size: 16px; }
  .auth-layout { display: block; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100dvh; padding: 38px 25px; }
  .auth-form { max-width: 390px; }
  .auth-form > .brand { margin-bottom: 43px; }
  .auth-form input, .auth-form select { font-size: 16px; }
  .auth-form h1, .auth-form h2 { font-size: 26px; }
  .auth-form > p { font-size: 13px; }
}
@media (max-width: 374px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 13px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { font-size: 11px; }
  .heading-actions > span { display: none; }
  .topbar-actions { gap: 0; }
  .topbar-actions .preview-pill { display: none; }
  .membership-card { padding: 22px 20px; min-height: 213px; }
  .membership-card .brand { font-size: 14px; }
  .card-number { font-size: 13px; }
  .card-plan { font-size: 19px; }
  .balance-total { font-size: 32px; }
  .panel, .balance-card { padding: 20px 17px; }
  .activity-item { gap: 8px; }
  .activity-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .activity-info strong { font-size: 11px; }
  .activity-value { font-size: 11px; }
  .upgrade-banner { padding: 17px; gap: 9px; }
  .upgrade-banner strong { font-size: 12px; }
  .upgrade-banner p { font-size: 10px; }
  .upgrade-banner .btn { padding: 9px; }
  .stat-grid { gap: 6px; }
  .stat-card { padding: 15px 10px; }
  .stat-label { font-size: 9px; }
  .stat-label svg { display: none; }
  .stat-value { font-size: 20px; }
  .stat-value small { font-size: 9px; }
  .stat-note { font-size: 8px; }
  .product-card { padding: 21px 17px; gap: 0 12px; }
  .product-name { font-size: 17px; }
  .product-price { font-size: 26px; }
  .benefit-list { padding-left: 12px; }
  .benefit-list li { font-size: 9px; }
  .section-tabs { gap: 20px; }
  .tab { font-size: 12px; }
  .member-info .badge { display: block; width: fit-content; margin: 3px 0 0; }
  .bottom-nav { padding-left: 6px; padding-right: 6px; }
  .bottom-nav .nav-item { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1190px) and (min-width: 1021px) {
  .product-symbol { display: none; }
  .product-card .product-badge { max-width: 100%; font-size: 7px; }
  .product-name { font-size: 18px; }
}
@media (max-width: 1020px) {
  .product-symbol { display: none; }
  .product-card .product-badge { grid-column: 1; font-size: 8px; max-width: 100%; }
  .product-tagline { min-height: 0; }
  .membership-detail .detail-grid { grid-template-columns: 1fr 1.6fr; }
  .membership-detail .detail-grid dd { text-align: right; }
}
@media (max-width: 767px) {
  .mobile-brand { display: inline-flex; }
  .desktop-breadcrumb { display: none; }
  .topbar .brand-symbol { flex-basis: 27px; width: 27px; height: 27px; border-radius: 8px; font-size: 19px; }
  .topbar .brand { font-size: 15px; gap: 7px; }
  .topbar .demo-chip { min-height: 44px; padding: 5px 7px; border: 0; background: transparent; font-size: 9px; gap: 4px; }
  .page-footer { display: none; }
  .date-label { margin-top: 6px; }
  .main-column > .section-heading, .side-column > .section-heading { margin-bottom: -8px; }
  .card-middle { margin-top: 22px; }
  .card-middle .card-plan { font-size: 24px; }
  .card-kicker { font-size: 7px; }
  .card-middle .card-number { margin-top: 10px; font-size: 8px; }
  .card-bottom { gap: 21px; }
  .card-bottom strong { font-size: 10px; }
  .card-emblem { font-size: 27px; }
  .balance-card > .btn { margin-top: 20px; }
  .upgrade-icon { height: 37px; width: 37px; flex-basis: 37px; border-radius: 11px; }
  .upgrade-icon svg { width: 20px; height: 20px; }
  .upgrade-banner small { font-size: 7px; }
  .upgrade-banner .icon-btn { width: 30px; padding: 5px; flex-basis: 30px; }
  .team-home-top > div > strong { font-size: 27px; }
  .team-home-stats { margin-top: 21px; }
  .notice-panel > p { font-size: 11px; }
  .reward-stats .stat-value { font-size: 21px; line-height: 1.45; }
  .reward-stats .stat-value small { display: block; margin-left: 0; font-size: 9px; }
  .membership-detail > .text-muted { font-size: 11px; line-height: 1.8; }
  .list-toolbar .section-tabs { width: auto; gap: 19px; }
  .view-switch .icon-btn { min-height: 44px; width: 37px; padding: 10px; }
  .search-field .search-input { font-size: 16px; }
  .member-row > svg { width: 11px; height: 11px; margin-left: 0; }
  .member-info strong .depth-label { display: inline-block; font-size: 8px; padding: 1px 4px; margin-left: 2px; }
  .avatar.large { height: 52px; width: 52px; font-size: 19px; }
  .activity-value > .badge { font-size: 9px; }
  .order-row { flex-wrap: wrap; }
  .order-row .activity-info { flex-basis: calc(100% - 50px); }
  .order-row > .activity-value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 46px; text-align: left; }
  .order-row .activity-value > .badge { margin-top: 0; }
  .order-row .activity-value > .link-btn { min-height: 44px; margin: -4px 0; padding: 8px 0 8px 4px; }
  .order-row .activity-value .admin-actions { width: auto; margin: 0; }
  .notification-item .activity-info p { font-size: 11px; }
  .auth-panel > .mobile-brand { align-self: flex-start; width: 100%; max-width: 390px; margin: 0 auto 40px; }
  .auth-form > .eyebrow { font-size: 9px; }
}
@media (max-width: 374px) {
  .topbar .brand { font-size: 14px; }
  .topbar .brand-symbol { width: 25px; height: 25px; flex-basis: 25px; font-size: 17px; }
  .topbar .demo-chip { padding: 5px; margin-right: 0; font-size: 8px; }
  .topbar .icon-btn { width: 37px; padding: 8px; }
  .topbar-actions .avatar { width: 28px; height: 28px; font-size: 10px; }
  .reward-stats .stat-value { font-size: 18px; }
  .card-middle .card-plan { font-size: 22px; }
  .upgrade-banner { padding: 17px 13px; }
  .upgrade-banner .upgrade-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .upgrade-banner strong { font-size: 11px; }
  .upgrade-banner p { font-size: 9px; }
  .upgrade-banner small { font-size: 6px; }
  .order-row > .activity-value { margin-left: 40px; }
}

/* Nested organization tree keeps each relationship readable on a phone. */
.tree-view { text-align: left; padding: 15px 0 5px; overflow: visible; }
.tree-view .tree-root { display: flex; align-items: center; flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; min-width: 0; padding: 16px; border-radius: 11px; }
.tree-root > small { margin-left: auto; }
.tree-branches { display: block; width: auto; min-width: 0; margin: 0 0 0 21px; padding: 20px 0 0 20px; border-left: 1px solid #dce5f4; }
.tree-branches::before { display: none; }
.tree-branch { position: relative; min-width: 0; margin-top: 13px; }
.tree-branch:first-child { margin-top: 0; }
.tree-branch::before { position: absolute; content: ""; top: 31px; left: -20px; width: 20px; height: 1px; background: #dce5f4; }
.tree-branch .tree-node { width: 100%; min-width: 0; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 10px; text-align: left; }
.tree-node::before, .tree-node::after { display: none; }
.tree-node-info { min-width: 0; flex: 1; }
.tree-node-info strong { display: block; font-size: 13px; }
.tree-node-info small { display: block; margin-top: 3px; font-size: 10px; overflow-wrap: anywhere; }
.tree-children { margin: 0 0 0 20px; padding: 14px 0 0 20px; border-left: 1px solid #dce5f4; }
.tree-node > .badge { margin-left: auto; }
.card-bottom > div { display: flex; flex-direction: column; gap: 3px; }
.card-bottom > div small { margin-bottom: 0; }
@media (max-width: 767px) {
  .home-grid { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .home-grid > .main-column, .home-grid > .side-column { display: contents; }
  .home-grid > .main-column > .section-heading:first-child { order: 1; }
  .home-grid .membership-card { order: 2; min-height: 213px; }
  .home-grid .quick-actions { order: 3; }
  .home-grid > .side-column > .section-heading:first-child { order: 4; }
  .home-grid .balance-card { order: 5; }
  .home-grid .upgrade-banner { order: 6; }
  .home-grid > .side-column > .section-heading:nth-child(3) { order: 7; }
  .home-grid .team-home { order: 8; }
  .home-grid > .main-column > .section-heading:nth-child(5) { order: 9; }
  .home-grid > .main-column > .panel { order: 10; }
  .home-grid > .side-column > .section-heading:nth-child(5) { order: 11; }
  .home-grid .notice-panel { order: 12; }
  .quick-action { font-size: 12px; }
  .balance-label { font-size: 14px; }
  .balance-stat > span { font-size: 12px; }
  .balance-stat strong { font-size: 17px; }
  .balance-card > .btn { font-size: 14px; }
  .activity-info strong { font-size: 14px; }
  .activity-info small { font-size: 11px; }
  .activity-value { font-size: 14px; }
  .activity-value small { font-size: 10px; }
  .team-home-top > div > span, .team-home-stats span { font-size: 12px; }
  .team-home-stats strong { font-size: 14px; }
  .invite-link { font-size: 11px; }
  .invite-link b { font-size: 12px; }
  .upgrade-banner strong { font-size: 14px; }
  .upgrade-banner p { font-size: 12px; }
  .notice-panel > strong, .notice-panel > h3 { font-size: 14px; }
  .notice-panel > p { font-size: 13px; }
  .notice-panel > .link-btn { font-size: 12px; }
  .member-info strong { font-size: 14px; }
  .member-info small { font-size: 11px; }
  .member-metrics { font-size: 11px; }
  .settings-row { font-size: 14px; }
  .product-card { display: flex; flex-direction: column; padding: 26px 24px 23px; }
  .product-card .product-badge { font-size: 9px; max-width: calc(100% - 40px); margin-bottom: 17px; }
  .product-symbol { display: inline-flex; top: 25px; right: 24px; }
  .product-name { font-size: 23px; }
  .product-tagline { font-size: 13px !important; margin-top: 8px !important; }
  .product-price { margin-top: 20px; font-size: 35px; }
  .product-duration { font-size: 12px; }
  .benefit-list { gap: 13px; margin: 20px 0 25px; padding: 21px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .benefit-list li { font-size: 13px; gap: 9px; }
  .benefit-list li svg { width: 17px; height: 17px; }
  .product-card > .btn { margin-top: 0; font-size: 14px; }
  .product-card.black .benefit-list { border-top-color: #334059; }
  .tree-view .tree-root { padding: 13px; gap: 9px; font-size: 13px; }
  .tree-root > small { font-size: 8px; }
  .tree-branches { margin-left: 16px; padding-left: 14px; padding-top: 17px; }
  .tree-children { margin-left: 13px; padding-left: 14px; padding-top: 11px; }
  .tree-branch::before { left: -14px; width: 14px; top: 28px; }
  .tree-branch .tree-node { gap: 8px; padding: 12px 10px; }
  .tree-node-info strong { font-size: 12px; }
  .tree-node-info small { font-size: 9px; }
  .tree-node .avatar { width: 29px; height: 29px; font-size: 11px; flex: 0 0 29px; }
  .tree-node > .badge { padding: 3px 5px; font-size: 8px; }
}
@media (max-width: 374px) {
  .quick-action { font-size: 11px; }
  .activity-info strong { font-size: 12px; }
  .activity-value { font-size: 12px; }
  .upgrade-banner strong { font-size: 12px; }
  .upgrade-banner p { font-size: 10px; }
  .card-middle .card-plan { font-size: 22px; }
  .tree-node .avatar { display: none; }
  .tree-root > small { font-size: 7px; }
  .member-info strong { font-size: 12px; }
}

/* Readable phone typography takes priority over fitting content onto one line. */
@media (max-width: 767px) {
  html, body { min-width: 0; }
  body { font-size: 14px; }
  .app-shell, .workspace, .main, .panel, .wallet-panel, .wallet-address,
  .modal-body, .tree-view, .tree-root, .tree-branch, .tree-node, .tree-node-info,
  .member-info, .activity-info { min-width: 0; overflow-wrap: anywhere; }
  :is(.app-shell, .auth-layout, .modal) :is(
    small, .eyebrow, .date-label, .card-tier, .card-kicker, .card-number,
    .currency-pill, .balance-pending, .stat-label, .stat-note, .unit,
    .badge, .status-tag, .product-badge, .product-duration, .product-tagline,
    .depth-label, .text-muted, .txid-preview, .info-strip, .notice,
    .preview-pill, .error-message, .consent
  ) { font-size: 12px !important; line-height: 1.6; }
  .page-heading p, .upgrade-banner p, .team-summary p,
  .team-home-top > div > span, .team-home-stats span, .invite-link,
  .invite-link b, .notice-panel > p, .wallet-panel > p,
  .notification-item .activity-info p, .profile-head p,
  .profile-head div > span:not(.badge), .help-steps p,
  .auth-demo > span, .auth-form > p, .copy-box, .wallet-address,
  .detail-grid, .product-price > span, .balance-card > p,
  .auth-art > div > p { font-size: 12px !important; line-height: 1.7; }
  .card-bottom small { font-size: 12px !important; letter-spacing: .025em; }
  .card-bottom strong { font-size: 14px !important; letter-spacing: 0; }
  :is(.app-shell, .auth-layout, .modal) :is(
    .btn, .link-btn, .quick-action, .tab, .filter-btn, .settings-row
  ), .field label, .activity-info strong, .member-info strong,
  .tree-node-info strong, .tree-root > strong, .benefit-list li,
  .notice-panel > strong, .notice-panel > h3, .upgrade-banner strong,
  .team-summary h3, .help-steps h3, .balance-label,
  .team-home-stats strong, .activity-value { font-size: 14px !important; }
  .bottom-nav .nav-item, .bottom-nav .nav-item span { font-size: 12px !important; }
  .bottom-nav { padding-left: 3px; padding-right: 3px; }
  .topbar { gap: 8px; }
  .topbar-actions { min-width: 0; gap: 0; }
  .topbar .demo-chip { font-size: 12px; padding-left: 5px; padding-right: 5px; white-space: nowrap; }
  .heading-actions, .stat-card, .quick-action, .product-card, .member-metrics { min-width: 0; }
  .page-heading { flex-wrap: wrap; }
  .page-heading > div:first-child { min-width: 0; }
  .heading-actions { margin-left: auto; padding-top: 0; }
  .heading-actions > span { font-size: 12px; white-space: normal; }
  .stat-value { overflow-wrap: anywhere; }
  .stat-value small { display: block; margin-left: 0; }
  .card-middle { margin-top: 21px; }
  .card-middle .card-number { margin-top: 8px; letter-spacing: .06em; }
  .card-tier { padding: 3px 6px; letter-spacing: .045em; }
  .card-kicker { letter-spacing: .035em; }
  .card-bottom { gap: 13px; flex-wrap: wrap; }
  .card-bottom > div { min-width: 0; }
  .card-bottom > div:first-child { flex: 1; }
  .card-emblem { display: none; }
  .membership-card { min-height: 230px !important; }
  .quick-actions { gap: 2px; padding-left: 2px; padding-right: 2px; }
  .quick-action { padding: 4px 1px; word-break: keep-all; line-height: 1.5; }
  .upgrade-banner { flex-wrap: wrap; gap: 11px; }
  .upgrade-banner > .upgrade-icon { display: none; }
  .upgrade-banner small { letter-spacing: .025em; }
  .activity-item { align-items: flex-start; gap: 10px; }
  .activity-info strong { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
  .activity-value { white-space: normal; max-width: 40%; }
  .activity-value .badge { white-space: normal; }
  .order-row .activity-value { max-width: none; margin-left: 0; width: 100%; }
  .order-row .activity-value .link-btn { flex-basis: 100%; justify-content: flex-start; }
  .activity-value .admin-actions { flex-wrap: wrap; }
  .activity-value .admin-actions .btn { padding: 8px; }
  .product-card .product-badge { max-width: calc(100% - 34px); white-space: normal; letter-spacing: .02em; }
  .benefit-list li { align-items: flex-start; line-height: 1.65; }
  .benefit-list li svg { margin-top: 3px; }
  .member-info strong .depth-label { white-space: normal; padding: 1px 4px; }
  .member-metrics { font-size: 12px; max-width: 34%; overflow-wrap: anywhere; }
  .member-metrics > .badge { white-space: normal; }
  .tree-view .tree-root { flex-wrap: wrap; padding: 13px 11px; gap: 8px; }
  .tree-root > small { flex-basis: 100%; margin-left: 0; }
  .tree-branches { margin-left: 9px; padding-left: 9px; }
  .tree-children { margin-left: 7px; padding-left: 9px; }
  .tree-branch::before { left: -9px; width: 9px; }
  .tree-branch .tree-node { padding: 12px 10px; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
  .tree-node .avatar { display: none; }
  .tree-node-info { flex: 1 1 105px; }
  .tree-node > .badge { flex: 0 0 auto; max-width: 100%; white-space: normal; font-size: 12px !important; }
  .tree-node-info small { white-space: normal; }
  .wallet-address { white-space: normal; word-break: break-all; }
  .consent { min-height: 44px; }
  .detail-grid { grid-template-columns: minmax(75px, .8fr) minmax(0, 1.4fr); gap: 15px 10px; }
  .detail-grid dt, .detail-grid dd { min-width: 0; overflow-wrap: anywhere; }
  .view-switch { flex-shrink: 0; }
  .list-toolbar .section-tabs { gap: 15px; }
}
@media (max-width: 374px) {
  .topbar .brand { gap: 5px; }
  .main { padding-left: 16px; padding-right: 16px; }
  .membership-card { padding-left: 17px; padding-right: 17px; }
  .card-top { gap: 8px; }
  .membership-card .brand { gap: 6px; font-size: 14px; }
  .membership-card .brand-symbol { flex-basis: 22px; width: 22px; height: 22px; }
  .card-tier { font-size: 12px !important; letter-spacing: 0; }
  .quick-action { font-size: 14px !important; }
  .activity-icon { display: none; }
  .activity-item { gap: 9px; }
  .activity-info strong, .activity-value, .member-info strong,
  .upgrade-banner strong, .tree-node-info strong { font-size: 14px !important; }
  .member-row .avatar { width: 29px; height: 29px; font-size: 12px; }
  .upgrade-banner p, .tree-root > small, .tree-node-info small,
  .stat-label, .stat-note { font-size: 12px !important; }
  .upgrade-banner { padding: 17px; }
  .order-row .activity-info { flex-basis: 100%; }
  .tree-node-info { flex-basis: 90px; }
  .list-toolbar .section-tabs { gap: 10px; }
}
.preview-notice { margin:0 0 16px; padding:9px 12px; border-radius:8px; background:#eaf0ff; color:#48618b; font-size:12px; line-height:1.6; }
.preview-welcome { max-width:520px; margin:8vh auto; padding:28px; display:flex; flex-direction:column; gap:20px; }
.preview-welcome .brand { margin-bottom:32px; }
.preview-welcome h1 { font-size:32px; line-height:1.4; }
.preview-welcome p { color:#64748b; line-height:1.8; }

/* Member commission entries expose the underlying sale without showing internal record IDs. */
.member-reward-list .member-reward-row { width:100%; text-align:left; background:transparent; border-radius:10px; cursor:pointer; transition:background .15s ease; }
.member-reward-list .member-reward-row:hover { background:#f5f8ff; }
.member-reward-list .member-reward-row:focus-visible,.center-reward-summary .center-reward-link:focus-visible { outline:3px solid #98b5ff; outline-offset:3px; }
.member-reward-list .activity-info { min-width:0; }
.member-reward-list .activity-info strong,.member-reward-list .activity-info small { display:block; }
.member-reward-list .activity-info strong { line-height:1.7; }
.member-reward-list .activity-info small { line-height:1.65; margin-top:3px; white-space:normal; overflow-wrap:anywhere; }
.member-reward-list .reward-product { color:#526f99; }
.member-reward-list .activity-value { flex-shrink:0; min-width:88px; }
.member-reward-list .reward-detail-hint { display:flex; align-items:center; justify-content:flex-end; color:#315fd1; gap:3px; margin-top:7px; font-size:11px; font-weight:500; }
.reward-detail-hint svg { width:13px; height:13px; }
.member-reward-filters { display:flex; flex-wrap:wrap; gap:7px; margin:16px 0; }
.member-reward-filters .filter-btn { min-height:40px; padding:9px 13px; font-size:12px; }
.reward-detail-reason { margin:18px 0; padding:16px; background:#f1f6ff; border-radius:12px; }
.reward-detail-reason h3 { color:#345989; font-size:13px; margin-bottom:8px; }
.reward-detail-reason p { color:#607693; font-size:13px; line-height:1.85; margin:0; overflow-wrap:anywhere; }
.reward-detail-grid dd { overflow-wrap:anywhere; }
.reward-detail-amount .amount small { font-size:12px; }
.center-reward-summary>.center-reward-link { padding:17px; background:#f5f8fd; border:1px solid #e1eafb; border-radius:10px; text-align:left; cursor:pointer; min-width:0; }
.center-reward-summary>.center-reward-link:hover { background:#edf3ff; border-color:#b7cdf8; }
.center-reward-summary .reward-summary-link { display:flex; align-items:center; gap:4px; color:#315fd1; font-size:11px; margin-top:10px; }
.reward-summary-link svg { width:13px; height:13px; }
@media (max-width:767px) {
 .member-reward-list .member-reward-row { gap:9px; padding-block:15px; }
 .member-reward-list .activity-icon { width:32px; height:32px; }
 .member-reward-list .activity-icon svg { width:17px; height:17px; }
 .member-reward-list .activity-value { min-width:75px; }
 .member-reward-list .activity-value strong { font-size:14px; }
 .member-reward-filters { gap:6px; }
 .member-reward-filters .filter-btn { padding:9px 10px; font-size:11px; }
 .center-reward-summary>.center-reward-link { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px 12px; padding:14px; }
 .center-reward-summary>.center-reward-link strong { margin-top:0; font-size:20px; }
 .center-reward-summary>.center-reward-link .reward-summary-link { grid-column:1/-1; margin-top:0; }
}
