:root {
  --bg: #0c0c12;
  --bg-soft: #101018;
  --panel: #171720;
  --panel-2: #1d1c29;
  --line: #302e43;
  --line-bright: #45405f;
  --text: #f5f3fa;
  --muted: #9290a5;
  --muted-2: #6c697d;
  --purple: #8954ff;
  --purple-2: #6f39ed;
  --green: #34df94;
  --red: #ff6b77;
  --orange: #ffb55c;
  --shadow: 0 20px 60px #0005;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  color: var(--text);
  font: 16px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: var(--bg);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.svg-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.app-shell { width: min(680px, 100%); min-height: 100vh; margin: 0 auto; padding: 12px 18px calc(112px + env(safe-area-inset-bottom)); }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #242330; }
.brand-lockup { display: flex; align-items: center; min-width: 0; }
.brand-banner { position: relative; width: clamp(150px, 42vw, 172px); aspect-ratio: 3 / 1; overflow: hidden; flex: 0 1 auto; }
.brand-banner img { position: absolute; top: -100%; left: -28%; width: 164%; max-width: none; height: auto; mix-blend-mode: lighten; }
.account-exit { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #39364e; border-radius: 12px; padding: 9px 12px; background: #1a1925; color: #c0bdcc; font-weight: 650; }
.account-exit .svg-icon { width: 17px; height: 17px; }
.view { padding-top: 4px; }
.hero { margin: 24px 0 17px; padding: 27px 29px; border: 1px solid #49358b; border-radius: 32px; background: #1a1b27; box-shadow: 0 22px 48px #0002; }
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-icon { width: 38px; height: 38px; color: #b594ff; }
.hero h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: 0; }
.hero p { margin: 9px 0 0; color: #aca9bc; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.compact-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.compact-metrics .metric { min-height: 96px; }
.metric { min-height: 116px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 22px; background: #16161f; text-align: center; }
.metric-icon { width: 23px; height: 23px; color: #e8e5f1; }
.metric-value { font-size: 29px; line-height: 1; font-weight: 790; }
.metric-label, .eyebrow, .section-title { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.7px; }
.section-title { display: block; margin: 27px 3px 12px; }
.account-card, .process-card, .reply-card, .plan-card, .subscription-status { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.account-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 20px; }
.account-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.status-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #34df9480; }
.status-dot.off { background: var(--muted-2); box-shadow: none; }
.account-number { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 680; }
.account-state { margin-top: 3px; color: var(--muted); font-size: 13px; }
.outline-button, .ghost-button, .icon-button, .danger-button { border: 1px solid var(--line); border-radius: 13px; background: #1b1a27; color: #d4d0df; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; white-space: nowrap; }
.ghost-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; }
.icon-button .svg-icon, .ghost-button .svg-icon, .outline-button .svg-icon, .danger-button .svg-icon { width: 19px; height: 19px; }
.primary-button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 17px; padding: 16px 20px; background: #7545ef; color: #fff; font-size: 18px; font-weight: 760; box-shadow: 0 14px 30px #6b3bf044; }
.primary-button .svg-icon { width: 20px; height: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-top: 24px; }
.toolbar .primary-button { flex: 1; }
.empty-state { display: grid; place-items: center; padding: 92px 20px 74px; color: var(--muted); text-align: center; font-weight: 680; font-size: 19px; }
.empty-state .svg-icon { width: 43px; height: 43px; margin-bottom: 17px; opacity: .32; }
.process-list { display: grid; gap: 12px; margin-top: 16px; }
.process-card { padding: 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { min-width: 0; font-size: 16px; font-weight: 740; }
.card-title span { color: var(--purple); }
.card-text { margin: 9px 0; color: #bbb7c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.small-button { min-height: 39px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; background: #201f2d; color: #d2cedd; font-size: 13px; }
.small-button .svg-icon { width: 16px; height: 16px; }
.small-button.active { border-color: #5f43a5; color: #b99cff; }
.danger-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-color: #63333d; color: #ff9da5; }
.reply-card { position: relative; padding: 21px; }
.reply-account { padding-right: 80px; font-size: 17px; font-weight: 700; }
.reply-summary { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.reply-summary span { display: inline-flex; align-items: center; gap: 6px; }
.reply-summary .svg-icon { width: 17px; height: 17px; }
.switch { position: absolute; top: 22px; right: 20px; width: 58px; height: 32px; border: 0; border-radius: 20px; background: #29283d; padding: 0; }
.switch::after { content: ""; display: block; width: 26px; height: 26px; margin: 3px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.switch.on { background: var(--purple-2); }
.switch.on::after { transform: translateX(26px); }
.reply-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.settings-list { display: grid; gap: 12px; }
.setting-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 88px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.setting-row-muted { opacity: .72; }
.setting-icon, .folder-row-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #40355f; border-radius: 13px; background: #211a32; color: #b99cff; }
.setting-icon .svg-icon, .folder-row-icon .svg-icon { width: 21px; height: 21px; }
.setting-copy { min-width: 0; display: grid; gap: 3px; }
.setting-copy strong { font-size: 15px; }
.setting-copy span, .setting-switch span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.inline-status { display: inline-flex; align-items: center; gap: 5px; }
.inline-status .svg-icon { width: 15px; height: 15px; }
.setting-status { color: var(--muted); font-size: 12px; white-space: nowrap; }
.setting-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 2px; }
.setting-switch > div { display: grid; gap: 3px; }
.choice-grid { display: grid; gap: 8px; }
.choice-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #39364d; border-radius: 12px; padding: 8px 6px; background: #121119; color: #b9b5c7; font-size: 13px; }
.choice-button.selected { border-color: #8051f1; background: #251c40; color: #d6c6ff; }
.choice-button .svg-icon { width: 14px; height: 14px; }
.folder-list, .folder-chat-list { display: grid; gap: 9px; }
.folder-row, .folder-chat { width: 100%; display: grid; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #15151e; color: var(--text); text-align: left; }
.folder-row { grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 12px; padding: 11px; }
.folder-row strong, .folder-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.folder-row-arrow { color: var(--muted); font-size: 26px; line-height: 1; }
.folder-summary { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: -2px 0 14px; color: var(--muted); font-size: 12px; }
.folder-summary b { color: var(--text); }
.folder-chat { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; min-height: 47px; padding: 10px 12px; font-size: 14px; }
.folder-chat > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-chat-status { display: grid; width: 22px; height: 22px; place-items: center; color: var(--green); }
.folder-chat-status .svg-icon { width: 16px; height: 16px; }
.folder-chat.excluded { border-color: #63333d; color: #ffb1b7; }
.folder-chat.excluded .folder-chat-status { color: currentColor; }
.modal-empty { display: grid; justify-items: center; gap: 9px; padding: 42px 18px; color: var(--muted); text-align: center; font-size: 14px; }
.modal-empty .svg-icon { width: 38px; height: 38px; opacity: .55; }
.modal-empty strong { color: var(--text); font-size: 17px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.pagination .icon-button { width: 38px; height: 38px; }
.pagination .svg-icon { width: 17px; height: 17px; }
.turn-left { transform: rotate(90deg); }
.turn-right { transform: rotate(-90deg); }
.small-button:disabled, .icon-button:disabled { cursor: not-allowed; opacity: .45; }
.subscription-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: hidden; }
.subscription-stat { padding: 20px; text-align: center; }
.subscription-stat + .subscription-stat { border-left: 1px solid var(--line); }
.subscription-stat strong { display: block; font-size: 25px; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.plan-card { min-height: 144px; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 18px; text-align: center; }
.plan-card strong { font-size: 18px; }
.plan-card .svg-icon { width: 21px; height: 21px; color: var(--purple); }
.plan-price { color: var(--purple); font-size: 30px; font-weight: 800; }
.plan-caption { color: var(--muted); font-size: 12px; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; justify-items: center; padding: 0; background: #0009; backdrop-filter: blur(8px); }
.modal[hidden] { display: none; }
.sheet { width: min(680px, 100%); max-height: min(92vh, 780px); overflow: auto; padding: 21px 23px calc(28px + env(safe-area-inset-bottom)); border: 1px solid #343142; border-bottom: 0; border-radius: 30px 30px 0 0; background: #171720; box-shadow: var(--shadow); }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.sheet h2 { margin: 0; font-size: 23px; }
.sheet-subtitle { margin: -9px 0 20px; color: var(--muted); }
.field-label { display: block; margin: 14px 0 7px; color: #aaa6b8; font-size: 14px; }
.input, .select { width: 100%; border: 1px solid #39364d; border-radius: 14px; padding: 14px 15px; background: #101017; color: var(--text); }
textarea.input { min-height: 105px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.form-actions .primary-button { width: auto; padding: 12px 20px; font-size: 15px; }
.folder-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.confirm-copy { color: #b3afbf; line-height: 1.55; }

/* New broadcast: a native Telegram-style bottom sheet with touch-sized controls. */
.broadcast-sheet { padding-bottom: 2px; }
.sheet-drag-handle { width: 47px; height: 5px; margin: -2px auto 22px; border-radius: 999px; background: #383648; }
.broadcast-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.broadcast-sheet-title { display: flex; align-items: center; min-width: 0; gap: 11px; }
.broadcast-sheet-title h2 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 26px; line-height: 1.1; }
.broadcast-title-icon { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; color: #e7e3f1; }
.broadcast-title-icon .svg-icon { width: 29px; height: 29px; }
.broadcast-close { width: 42px; height: 42px; flex: 0 0 auto; border-color: transparent; background: transparent; color: #b6b2c3; }
.broadcast-form { display: grid; }
.broadcast-form > .field-label { margin: 0 0 9px; color: #aaa7b8; font-size: 15px; }
.broadcast-form > .field-label:not(:first-child) { margin-top: 19px; }
.select-shell { position: relative; min-width: 0; }
.select-shell > .svg-icon:last-child { position: absolute; top: 50%; right: 17px; width: 18px; height: 18px; pointer-events: none; transform: translateY(-50%); color: #918ca5; }
.broadcast-account { min-height: 70px; display: flex; align-items: center; gap: 11px; overflow: hidden; border: 1px solid #38354c; border-radius: 20px; padding: 0 48px 0 18px; background: #101017; color: #e5e1eb; }
.broadcast-account > .svg-icon:first-child { width: 20px; height: 20px; color: #a797d4; }
.broadcast-account > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.broadcast-select { height: 70px; appearance: none; border-color: #38354c; border-radius: 20px; padding: 0 48px 0 18px; background: #101017; color: #e5e1eb; font-size: 17px; }
.broadcast-select:disabled { cursor: not-allowed; opacity: .58; }
.broadcast-message { min-height: 128px !important; border-color: #38354c; border-radius: 20px; padding: 17px 18px; background: #101017; font-size: 17px; line-height: 1.45; }
.broadcast-message::placeholder { color: #6e6a7e; }
.single-chat-field[hidden] { display: none; }
.single-chat-field .field-label { margin-top: 19px; }
.single-chat-field .broadcast-select { min-height: 70px; height: 70px; }
.broadcast-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.broadcast-field-grid label { min-width: 0; }
.broadcast-field-grid .field-label { margin: 0 0 8px; color: #aaa7b8; font-size: 14px; }
.broadcast-field-grid .input { height: 70px; min-width: 0; border-color: #38354c; border-radius: 20px; padding-inline: 18px; background: #101017; font-size: 17px; }
.autosub-card { position: relative; display: grid; grid-template-columns: 26px 26px minmax(0, 1fr); align-items: start; gap: 11px; margin-top: 24px; border: 1px solid #38354c; border-radius: 23px; padding: 20px 18px; background: #171720; color: var(--text); cursor: pointer; }
.autosub-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.autosub-checkmark { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #656174; border-radius: 7px; background: #f4f2f7; color: transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.autosub-checkmark .svg-icon { width: 17px; height: 17px; }
.autosub-card input:checked + .autosub-checkmark { border-color: #8a59ff; background: #8150f5; color: #fff; }
.autosub-card input:focus-visible + .autosub-checkmark { outline: 2px solid var(--purple); outline-offset: 3px; }
.autosub-card input:disabled ~ span { opacity: .58; }
.autosub-card-icon { display: grid; width: 26px; height: 26px; place-items: center; color: #b9a2ff; }
.autosub-card-icon .svg-icon { width: 22px; height: 22px; }
.autosub-card-copy { min-width: 0; display: grid; gap: 8px; padding-top: 1px; }
.autosub-card-copy strong { font-size: 17px; line-height: 1.2; }
.autosub-card-copy small { color: #817c92; font-size: 14px; line-height: 1.65; }
.broadcast-unavailable { display: flex; align-items: flex-start; gap: 9px; margin: 17px 2px 0; color: #d7b788; font-size: 13px; line-height: 1.45; }
.broadcast-unavailable .svg-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.broadcast-actions { display: grid; gap: 13px; margin-top: 19px; }
.broadcast-actions .primary-button { min-height: 70px; border-radius: 20px; font-size: 20px; }
.broadcast-cancel { min-height: 70px; border-color: #39364a; border-radius: 20px; background: transparent; color: #aaa5b8; font-size: 20px; font-weight: 700; }
.primary-button:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; }
.toast { position: fixed; z-index: 30; top: 17px; left: 50%; max-width: calc(100% - 30px); display: none; transform: translateX(-50%); border: 1px solid #544c7c; border-radius: 13px; padding: 12px 16px; background: #28253a; color: #f0edf8; box-shadow: var(--shadow); }
.toast.show { display: block; }
.loading { padding: 100px 20px; color: var(--muted); text-align: center; }
@media (max-width: 430px) {
  .app-shell { padding-inline: 14px; }
  .topbar { height: 72px; gap: 9px; }
  .brand-banner { width: clamp(150px, 45vw, 164px); }
  .account-exit { padding: 10px 11px; }
  .account-exit > span:last-child { display: none; }
  .account-card { align-items: stretch; flex-wrap: wrap; }
  .account-card .account-main { flex: 1 1 160px; }
  .account-card .outline-button { width: 100%; min-height: 44px; }
  .hero { padding: 23px; border-radius: 28px; }
  .hero h1 { font-size: 24px; }
  .metric { min-height: 104px; }
  .compact-metrics .metric { min-height: 88px; }
  .plans-grid { gap: 10px; }
  .plan-card { min-height: 132px; }
  .setting-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 13px; }
  .setting-icon { width: 38px; height: 38px; border-radius: 12px; }
  .setting-row .small-button { padding-inline: 9px; }
  .choice-grid-four { gap: 6px; }
  .choice-button { min-height: 40px; font-size: 12px; }
  .bottom-nav-inner { width: 100%; }
  .sheet { max-height: calc(100vh - 8px); padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 27px 27px 0 0; }
  .sheet-drag-handle { margin-bottom: 18px; }
  .broadcast-sheet-header { margin-bottom: 21px; }
  .broadcast-sheet-title h2 { font-size: 24px; }
  .broadcast-account, .broadcast-select { min-height: 64px; height: 64px; border-radius: 18px; font-size: 16px; }
  .broadcast-message { min-height: 118px !important; border-radius: 18px; font-size: 16px; }
  .broadcast-field-grid { gap: 9px; }
  .broadcast-field-grid .input { height: 64px; border-radius: 18px; padding-inline: 13px; font-size: 16px; }
  .autosub-card { gap: 10px; border-radius: 20px; padding: 18px 15px; }
  .autosub-card-copy small { font-size: 13px; }
  .broadcast-actions .primary-button, .broadcast-cancel { min-height: 64px; border-radius: 18px; font-size: 18px; }
}
.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #282633; background: #101016eF; backdrop-filter: blur(18px); }
.bottom-nav-inner { width: min(680px, 100%); display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 auto; }
.nav-tab { min-height: 78px; display: grid; place-content: center; gap: 5px; border: 0; background: transparent; color: #777488; font-size: 12px; }
.nav-tab .svg-icon { width: 25px; height: 25px; margin: 0 auto; }
.nav-tab.active { color: var(--purple); }

/* Extended Mini App screens share the same compact visual language as the core tabs. */
.overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-value-small { font-size: 26px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.dashboard-action, .admin-action { width: 100%; min-width: 0; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--panel); color: var(--text); text-align: left; }
.dashboard-action .svg-icon, .admin-action .svg-icon { width: 21px; height: 21px; flex: 0 0 auto; color: #b99cff; }
.dashboard-action span, .admin-action span { min-width: 0; display: grid; gap: 3px; }
.dashboard-action strong, .admin-action strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dashboard-action small, .admin-action small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dashboard-action:active, .admin-action:active { border-color: #8051f1; background: #211c30; }
.process-open { width: 100%; display: block; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; }
.process-open:focus-visible { outline-offset: 5px; }
.process-card .card-actions { padding-top: 1px; }
.full-button { width: 100%; }
.subscription-actions { display: grid; gap: 10px; margin-top: 13px; }
.profile-details, .process-details { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #14141d; }
.profile-details > div, .process-details > div { display: grid; grid-template-columns: minmax(104px, .75fr) minmax(0, 1.25fr); gap: 12px; padding: 12px 14px; border-bottom: 1px solid #292837; }
.profile-details > div:last-child, .process-details > div:last-child { border-bottom: 0; }
.profile-details span, .process-details span { color: var(--muted); font-size: 13px; }
.profile-details strong, .process-details strong { overflow-wrap: anywhere; text-align: right; font-size: 14px; }
.state-on { color: var(--green); }
.state-off { color: var(--red); }
.modal-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.modal-action-grid .small-button, .modal-action-grid .danger-button { width: 100%; justify-content: center; }
.modal-action-grid .full-row { grid-column: 1 / -1; }
.choice-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reply-presets { margin-top: 10px; }
.file-input { width: 100%; border: 1px dashed #4d4766; border-radius: 14px; padding: 14px; background: #111119; color: var(--muted); }
.upload-state { min-height: 22px; overflow: hidden; margin-top: 9px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.commands-copy { display: grid; gap: 16px; }
.commands-copy section { border-bottom: 1px solid #2a2938; padding-bottom: 14px; }
.commands-copy section:last-child { border-bottom: 0; padding-bottom: 0; }
.commands-copy h3 { margin: 0 0 7px; font-size: 16px; }
.commands-copy p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.commands-copy code { overflow-wrap: anywhere; color: #d5c6ff; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.info-copy { color: #c1bdcd; line-height: 1.55; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 9px; }
.copy-row .input { min-width: 0; font-size: 13px; }
.referral-level { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.referral-level > div { display: grid; gap: 3px; }
.referral-level span { color: var(--muted); font-size: 13px; }
.referral-level > b { color: #d5c6ff; font-size: 16px; white-space: nowrap; }
.referral-heading, .level-heading { display: inline-flex; align-items: center; gap: 7px; }
.referral-heading .svg-icon, .level-heading .svg-icon { width: 18px; height: 18px; color: #c3a4ff; }
.progress-track { height: 8px; margin: 13px 0 17px; overflow: hidden; border-radius: 999px; background: #292738; }
.progress-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: var(--purple); }
.referral-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #14141d; }
.referral-stats > div { display: grid; gap: 2px; padding: 13px; border-bottom: 1px solid #292837; }
.referral-stats > div:nth-child(odd) { border-right: 1px solid #292837; }
.referral-stats > div:nth-last-child(-n + 2) { border-bottom: 0; }
.referral-stats strong { font-size: 18px; }
.referral-stats span { color: var(--muted); font-size: 12px; }
.levels-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #14141d; }
.levels-list > div { display: grid; gap: 4px; padding: 14px; border-bottom: 1px solid #292837; }
.levels-list > div:last-child { border-bottom: 0; }
.levels-list span { color: var(--muted); font-size: 13px; }
.payment-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 16px; margin-bottom: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #14141d; }
.payment-summary span { color: var(--muted); }
.payment-summary strong { text-align: right; }
.payment-link { text-decoration: none; }
.payment-fallback { margin-top: 10px; }
.payment-fallback .outline-button { width: 100%; text-decoration: none; }
.admin-actions { display: grid; gap: 10px; }
.admin-action { min-height: 67px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.admin-stats > div { display: grid; gap: 3px; padding: 12px 8px; border-right: 1px solid var(--line); text-align: center; }
.admin-stats > div:last-child { border-right: 0; }
.admin-stats strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-stats span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.admin-choice-grid { margin-top: 12px; }

@media (max-width: 430px) {
  .overview-metrics { gap: 9px; }
  .overview-metrics .metric { min-height: 92px; }
  .overview-metrics .metric-value { font-size: 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-action { min-height: 64px; }
  .profile-details > div, .process-details > div { grid-template-columns: minmax(84px, .7fr) minmax(0, 1.3fr); padding: 11px 12px; }
  .profile-details strong, .process-details strong { font-size: 13px; }
  .modal-action-grid { grid-template-columns: 1fr; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > .ghost-button, .form-actions > .danger-button, .form-actions > .primary-button { flex: 1 1 auto; justify-content: center; }
  .reply-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commands-copy code { font-size: 12px; }
}
