:root {
  --bg: #f3f6fa;
  --panel: #ffffff;
  --line: #dfe6ef;
  --line-soft: #edf2f7;
  --text: #152033;
  --muted: #66758a;
  --dark: #101827;
  --green: #008a58;
  --red: #d13d4a;
  --gold: #b98519;
  --gold-soft: #fff7e6;
  --blue: #2563eb;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.favorites-mode-tab { color: #a77312; }
.favorite-action-btn,
.favorite-detail-btn {
  border: 1px solid #d4a62d;
  border-radius: 9px;
  background: #fff8df;
  color: #75520b;
  font-weight: 700;
  text-decoration: none;
}
.favorites-center { display: grid; gap: 13px; }
.favorite-intro { padding: 14px; border: 1px solid #e4c66f; border-radius: 12px; background: #fffbf1; }
.favorite-intro > div { display: flex; justify-content: space-between; gap: 8px; }
.favorite-intro strong { font-size: 18px; }
.favorite-intro span,
.favorite-intro p { color: var(--muted); }
.favorite-intro p { margin: 8px 0 0; line-height: 1.6; }
.favorite-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.favorite-tabs button { min-height: 43px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-weight: 700; }
.favorite-tabs button.active { background: var(--dark); color: #fff; }
.favorite-tabs span { display: block; margin-top: 2px; font-size: 12px; opacity: .7; }
.favorite-list { display: grid; gap: 10px; }
.favorite-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.favorite-item.favorite-focus { border-color: #d4a526; box-shadow: 0 0 0 3px rgba(212,165,38,.14); }
.favorite-item.favorite-waiting { background: #fafbfc; }
.favorite-item-main { display: grid; gap: 7px; }
.favorite-symbol { display: flex; align-items: baseline; gap: 8px; }
.favorite-symbol strong { font-size: 18px; }
.favorite-symbol span { color: var(--muted); font-size: 12px; }
.favorite-signal-state { font-weight: 700; }
.favorite-notify-state { color: var(--green); line-height: 1.45; }
.favorite-notify-state.is-off { color: var(--muted); }
.favorite-item-actions { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 7px; margin-top: 13px; }
.favorite-item-actions button,
.favorite-detail-btn { min-height: 40px; padding: 8px 5px; display: grid; place-items: center; }
.favorite-item-actions button { border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); }
.favorite-item-actions button.danger { color: var(--red); }
.favorite-empty,
.favorite-loading { padding: 42px 12px; text-align: center; color: var(--muted); line-height: 1.8; }
.favorite-settings-form { display: grid; gap: 14px; }
.favorite-setting-symbol { display: flex; align-items: baseline; gap: 9px; padding: 14px; border-radius: 11px; background: #f7f9fc; }
.favorite-setting-symbol strong { font-size: 20px; }
.favorite-setting-symbol span { color: var(--muted); }
.favorite-settings-form > label,
.favorite-threshold-grid label { display: grid; gap: 7px; color: #40506a; font-weight: 700; }
.favorite-settings-form select,
.favorite-settings-form input[type="number"],
.favorite-settings-form input[type="text"] { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.favorite-v2-form fieldset { min-width: 0; margin: 0; padding: 13px; border: 1px solid #c8d4e2; border-radius: 13px; background: #fff; box-shadow: 0 1px 0 rgba(16,24,40,.03); }
.favorite-v2-form legend { padding: 0 8px; font-weight: 800; background: #fff; }
.favorite-v2-price-section legend { display: flex; align-items: baseline; gap: 9px; }
.favorite-v2-price-section legend small { color: #667085; font-size: 11px; font-weight: 600; }
.favorite-v2-price-section legend small b { color: #172238; }
.favorite-v2-quota { display: flex; flex-wrap: wrap; gap: 7px; }
.favorite-v2-quota span { padding: 6px 9px; border-radius: 999px; background: #f1f4f8; color: #475467; font-size: 12px; font-weight: 700; }
.favorite-v2-quota .favorite-v2-observe { background: #fff5d6; color: #8a6414; }
.favorite-v2-price-row { display: grid; gap: 10px; margin-top: 12px; padding: 11px; border: 1px solid #d7e0eb; border-radius: 11px; background: #f9fbfd; }
.favorite-v2-price-row:last-of-type { padding-bottom: 11px; border-bottom: 1px solid #d7e0eb; }
.favorite-v2-price-switch { min-height: 42px; justify-content: flex-start; background: #fff; }
.favorite-v2-price-fields { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; align-items: end; }
.favorite-v2-price-fields > label { min-width: 0; display: grid; gap: 5px; color: #475467; font-weight: 700; }
.favorite-v2-price-target { grid-column: 1 / -1; }
.favorite-v2-price-row > label:not(.favorite-switch) { display: grid; gap: 5px; color: #475467; font-weight: 700; }
.favorite-v2-price-row > label { min-width: 0; }
.favorite-v2-price-row > label input,
.favorite-v2-price-row > label select { min-width: 0; }
.favorite-v2-input-suffix { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; }
.favorite-v2-input-suffix span { color: #475467; font-weight: 700; }
.favorite-v2-levels, .favorite-v2-inline { display: grid; gap: 8px; margin-top: 9px; }
.favorite-v2-muted, .favorite-v2-pending p { color: #7a8699; line-height: 1.6; }
.favorite-v2-periodic { display: grid; gap: 9px; margin-top: 13px; padding: 10px; border: 1px solid #cbd8e6; border-radius: 11px; background: #f7faff; }
.favorite-v2-periodic-cycle { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; color: #475467; font-weight: 700; }
.favorite-v2-pending { background: #fafbfc; }
.favorite-v2-tracking-actions { display: grid; gap: 16px; }
.favorite-v2-tracking-actions p { margin: 0; color: #475467; line-height: 1.7; }
.favorite-v2-active-summary { display: grid; gap: 9px; padding: 11px; border: 1px solid #c7d4e3; border-radius: 12px; background: #f8fafc; }
.favorite-v2-active-summary > header { display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid #d5dee9; }
.favorite-v2-active-summary > header small { color: #667085; }
.favorite-v2-active-summary section { padding: 9px; border: 1px solid #dde4ed; border-radius: 9px; background: #fff; }
.favorite-v2-active-summary h4 { margin: 0 0 7px; font-size: 14px; }
.favorite-v2-active-summary ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.favorite-v2-active-summary li { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; color: #475467; }
.favorite-v2-summary-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.favorite-v2-summary-tags span { padding: 5px 7px; border-radius: 999px; background: #edf3f9; color: #344054; font-size: 11px; font-weight: 700; }
.favorite-v2-tracking-actions .favorite-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
.favorite-v2-tracking-actions [data-favorite-v2-choice-close] { grid-column: 1 / -1; order: 3; }
.favorite-form-actions button.danger { border-color: #f2c5ca; color: #b42332; }
.favorite-v2-thresholds { display: grid; gap: 8px; margin-top: 9px; }
.favorite-v2-threshold { display: grid; grid-template-columns: minmax(0,1fr) 105px auto; align-items: center; gap: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: #475467; font-weight: 700; }
.favorite-v2-threshold span { display: flex; align-items: center; gap: 6px; }
.favorite-v2-threshold input[type="checkbox"] { width: 18px; height: 18px; }
.favorite-v2-threshold input[type="number"] { min-width: 0; }
.favorite-v2-threshold em { font-style: normal; }
.favorite-threshold-grid,
.favorite-channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.favorite-switch { display: flex !important; align-items: center; gap: 9px !important; min-height: 48px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.favorite-switch input { width: 19px; height: 19px; }
.favorite-rule-note { margin: 0; color: var(--muted); line-height: 1.65; }
.favorite-form-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.favorite-form-actions button { min-height: 47px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.favorite-form-actions button.primary { border-color: var(--dark); background: var(--dark); color: #fff; }

.mobile-shell {
  min-height: 100dvh;
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-brand {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.mobile-subtitle {
  margin-top: 3px;
  color: #aab6c7;
  font-size: 11px;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-view-switch,
.mobile-system-update,
.mobile-home-center {
  min-height: 32px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  color: #b9c6d8;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-system-update {
  border-color: rgba(56, 189, 248, 0.42);
  color: #c9f2ff;
  background: rgba(14, 116, 144, 0.14);
  font-weight: 700;
}

.mobile-system-update:active {
  background: rgba(14, 116, 144, 0.3);
}

.mobile-system-update:disabled {
  cursor: wait;
  opacity: 0.7;
}

.system-update-toast {
  position: fixed;
  z-index: 12000;
  top: calc(env(safe-area-inset-top, 0px) + 70px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 9px;
  color: #ecfdf5;
  background: rgba(6, 78, 59, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.mobile-view-switch[hidden] {
  display: none;
}

.mobile-home-center {
  border-color: rgba(96, 165, 250, 0.68);
  color: #eff6ff;
  background: #2457c5;
  font-weight: 800;
}

.mobile-home-center:active {
  background: #2f66db;
}

.partner-contact-trigger {
  cursor: pointer;
  font: inherit;
}

.partner-contact-list {
  display: grid;
  gap: 10px;
}

.partner-contact-list > div,
.partner-contact-list > a {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #f8fafc;
  text-decoration: none;
}

.partner-contact-list span {
  color: var(--muted);
  font-size: 12px;
}

.partner-contact-list strong {
  overflow-wrap: anywhere;
}

.partner-contact-list > a strong {
  color: #155eef;
}

.member-pill {
  min-width: 64px;
  max-width: 150px;
  min-height: 32px;
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 7px;
  color: #d9fff4;
  background: #132238;
}

@media (max-width: 420px) {
  .mobile-topbar {
    padding-right: 8px;
    padding-left: 8px;
  }

  .mobile-brand {
    font-size: 16px;
    white-space: nowrap;
  }

  .mobile-subtitle {
    font-size: 10px;
  }

  .mobile-top-actions {
    gap: 4px;
  }

  .mobile-home-center,
  .mobile-system-update,
  .mobile-view-switch,
  .member-pill {
    min-height: 30px;
    padding: 5px 6px;
    font-size: 11px;
  }

  .member-pill {
    min-width: 52px;
    max-width: 80px;
  }
}

.mobile-main {
  padding: 10px 10px 0;
}

.btc-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.btc-tile {
  min-height: 82px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #f1c963;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf4, #ffe18c);
  color: #3a2100;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.btc-tile span {
  font-size: 27px;
  font-weight: 900;
}

.btc-tile strong {
  font-size: 17px;
  color: var(--muted);
}

.btc-tile strong.positive {
  color: var(--green);
}

.btc-tile strong.negative {
  color: var(--red);
}

.news-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 82vw);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.news-strip::-webkit-scrollbar,
.pool-strip::-webkit-scrollbar {
  display: none;
}

.news-card {
  min-height: 82px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  border: 1px solid #f0d4a6;
  border-radius: 8px;
  background: #fffdfa;
}

.news-card strong {
  font-size: 14px;
  color: #111827;
}

.news-card span {
  display: -webkit-box;
  overflow: hidden;
  color: #526070;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mode-strip,
.pool-strip {
  margin-top: 10px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mode-strip {
  display: grid;
  grid-template-columns: .68fr .68fr 1fr 1.95fr;
  gap: 4px;
  overflow: visible;
}

.mode-strip .mode-tab {
  min-width: 0;
  padding: 8px 3px;
  font-size: 11px;
}

.trader-mobile-tabs[hidden],
.trader-mobile-view[hidden],
.standard-mobile-view[hidden] {
  display: none;
}

.trader-mobile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trader-mobile-tabs .pool-tab {
  width: 100%;
}

.mode-tab,
.pool-tab,
.bottom-nav-item {
  border: 1px solid var(--line);
  background: #fff;
  color: #4f5d73;
}

.mode-tab,
.pool-tab {
  min-height: 36px;
  padding: 8px 12px;
  flex: 0 0 auto;
  border-radius: 8px;
  white-space: nowrap;
}

.mode-tab.active {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.pool-tab.active {
  color: #241600;
  border-color: #d49a24;
  background: var(--gold-soft);
  font-weight: 700;
}

.pool-tab .count {
  margin-left: 4px;
  color: var(--gold);
}

.pool-tab .lock {
  margin-left: 5px;
  padding: 1px 4px;
  border: 1px solid #e1b85d;
  border-radius: 4px;
  color: #7a5200;
  font-size: 11px;
}

.mobile-tools {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

.mobile-tools input {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
}

.mobile-tools input:focus {
  border-color: #91b7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mobile-tools button,
.primary-btn,
.ghost-btn,
.action-btn {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.mobile-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 64px;
  gap: 8px;
}

.control-btn {
  min-height: 34px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #405066;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-btn.active {
  color: #7a5200;
  border-color: #e5bd68;
  background: #fff9e9;
  font-weight: 700;
}

.control-btn.wide {
  text-align: left;
}

.primary-btn {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.ghost-btn {
  color: #7a5200;
  border-color: #e5bd68;
  background: #fff9e9;
}

.pool-panel {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.pool-head {
  min-height: 62px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.pool-head h1 {
  margin: 0;
  font-size: 17px;
}

.pool-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.pool-count {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 800;
}

.signal-list {
  min-height: 220px;
}

.trader-mobile-view {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.trader-mobile-profile,
.trader-mobile-sync,
.trader-mobile-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.trader-mobile-profile {
  padding: 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.trader-mobile-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1a263b;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.trader-mobile-profile span {
  color: #a66d00;
  font-size: 11px;
  font-weight: 700;
}

.trader-mobile-profile h1 {
  margin: 2px 0 3px;
  font-size: 18px;
}

.trader-mobile-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.trader-mobile-sync {
  min-height: 44px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trader-mobile-sync strong {
  color: var(--green);
  font-size: 12px;
}

.trader-mobile-sync i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
}

.trader-mobile-sync .trader-sync-delayed,
.trader-mobile-sync .trader-sync-reconnecting,
.trader-mobile-sync .trader-sync-backfilling,
.trader-mobile-sync .trader-sync-paused {
  color: #9a6500;
}

.trader-mobile-sync .trader-sync-delayed i,
.trader-mobile-sync .trader-sync-reconnecting i,
.trader-mobile-sync .trader-sync-backfilling i,
.trader-mobile-sync .trader-sync-paused i {
  background: #d49a24;
}

.trader-mobile-sync .trader-sync-error {
  color: #c93434;
}

.trader-mobile-sync .trader-sync-error i {
  background: #df4242;
}

.trader-mobile-sync span {
  color: var(--muted);
  font-size: 11px;
}

.trader-mobile-demo {
  padding: 9px 10px;
  border-left: 3px solid #d49a24;
  background: #fff9e9;
  color: #74551b;
  font-size: 11px;
  line-height: 1.55;
}

.trader-mobile-demo strong {
  color: #9b6500;
}

.trader-mobile-section {
  overflow: hidden;
}

.trader-mobile-section > header {
  min-height: 56px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.trader-mobile-section h2 {
  margin: 0;
  font-size: 15px;
}

.trader-mobile-section p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.trader-mobile-section > header > span {
  color: #9b6500;
  font-size: 11px;
  white-space: nowrap;
}

.trader-mobile-list {
  display: grid;
}

.trader-position-card,
.trader-order-card,
.trader-activity-card,
.trader-history-card {
  padding: 11px 12px;
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.trader-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.trader-card-head strong {
  margin-right: auto;
  color: #111827;
  font-size: 16px;
}

.trader-mobile-badge {
  min-height: 25px;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.trader-mobile-long {
  border-color: #8ee0ba;
  background: #effcf6;
  color: var(--green);
}

.trader-mobile-short {
  border-color: #ffb6bd;
  background: #fff3f4;
  color: var(--red);
}

.trader-mobile-state {
  border-color: #8ee0ba;
  background: #effcf6;
  color: var(--green);
}

.trader-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.trader-card-metrics div {
  min-width: 0;
}

.trader-card-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.trader-card-metrics strong {
  margin-top: 3px;
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trader-card-metrics strong.positive {
  color: var(--green);
}

.trader-card-metrics strong.negative {
  color: var(--red);
}

.trader-card-foot {
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
}

.trader-card-foot b {
  color: #53637a;
}

.trader-mobile-more {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: #fbfcfe;
  color: #53637a;
  font-size: 12px;
}

.trader-mobile-more[hidden] {
  display: none;
}

@media (max-width: 360px) {
  .mode-strip .mode-tab {
    font-size: 10px;
  }

  .trader-card-head {
    gap: 4px;
  }

  .trader-mobile-badge {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 10px;
  }
}

.signal-row {
  width: 100%;
  padding: 10px 10px 11px;
  display: grid;
  gap: 8px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  color: var(--text);
}

.signal-row:active {
  background: #f8fbff;
}

.row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 67px 46px minmax(44px, 1fr) auto 42px 42px;
  gap: 7px;
  align-items: center;
}

.short-row-main {
  grid-template-columns: 67px minmax(82px, 1fr) auto 42px 42px;
}

.long-row-main {
  grid-template-columns: 67px 46px minmax(44px, 1fr) 48px auto;
  grid-template-areas:
    "time wave coin favorite status";
  row-gap: 0;
}

.long-row-main > .time-cell { grid-area: time; }
.long-row-main > .wave-slot { grid-area: wave; }
.long-row-main > .coin-cell { grid-area: coin; }
.long-row-main > .favorite-v2-star { grid-area: favorite; }
.long-row-main > .status-slot {
  grid-area: status;
  justify-self: end;
}
.long-row-main > .reference-pill { grid-area: reference; }
.long-row-main > .detail-pill { grid-area: detail; }
.long-row-main > .share-pill { grid-area: share; }

.mobile-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.mobile-card-actions > span {
  min-width: 0;
  min-height: 29px;
  display: grid;
  place-items: center;
  padding: 3px 2px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  color: #344054;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-card-actions > span:first-child { color: #235943; border-color: #8bb8a4; background: #f2faf6; }

.favorite-v2-star { width: 48px; min-height: 28px; padding: 3px 4px; display: inline-grid; place-items: center; border: 1px solid #d5a62e; border-radius: 8px; background: #fff8df; color: #8a6414; font-size: 11px; line-height: 1.1; font-weight: 800; white-space: nowrap; }
.favorite-v2-star.is-saved { background: #ffe9a8; }

.long-row-main > .coin-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 800;
  line-height: 1.15;
}

.time-cell small {
  color: #5e6d80;
  font-weight: 500;
}

.wave-slot,
.status-slot {
  min-width: 0;
}

.detail-pill,
.reference-pill,
.share-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5bd68;
  border-radius: 7px;
  color: #7a5200;
  background: #fff9e9;
  font-size: 12px;
  font-weight: 700;
}

.reference-pill {
  position: relative;
  border: 1px solid #8bb8a4;
  border-radius: 6px;
  background: #f2faf6;
  color: #235943;
  font-size: 12px;
  font-weight: 700;
}

.reference-arrival-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #079455;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.reference-pill:not(.has-reference-arrival) .reference-arrival-badge {
  display: none;
}

.mobile-reference-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #dde5e1;
  border-radius: 7px;
  background: #f7faf8;
}

.mobile-reference-summary p,
.mobile-reference-disclaimer {
  margin: 0;
}

.mobile-reference-summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.mobile-reference-summary .mobile-reference-current-price {
  padding-bottom: 8px;
  border-bottom: 1px solid #dde5e1;
}

.mobile-reference-current-price-value {
  color: #0f172a;
  font-size: 16px;
}

.mobile-reference-levels {
  display: grid;
  gap: 9px;
}

.mobile-reference-level {
  display: grid;
  gap: 9px;
  padding: 13px 12px;
  border: 1px solid #e1e7e4;
  border-radius: 7px;
  background: #fff;
}

.mobile-reference-level-head,
.mobile-reference-risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-reference-level-head {
  justify-content: flex-start;
  gap: 3px;
}

.mobile-reference-level-head strong {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #1f3e32;
  font-size: 14px;
}

.mobile-reference-level-head strong > span {
  color: #66736d;
  font-weight: 500;
}

.mobile-reference-arrival {
  flex: none;
  color: #17251f;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.mobile-reference-arrival[hidden] {
  display: none;
}

.mobile-reference-risk-row {
  justify-content: flex-start;
  padding-top: 8px;
  border-top: 1px solid #eef2f0;
  font-size: 13px;
}

.mobile-reference-risk-row > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

.mobile-reference-stop {
  color: #b42318;
}

.mobile-reference-profit {
  color: #067647;
}

.mobile-reference-copy {
  min-height: 0;
  margin: 0;
  padding: 1px 3px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.mobile-reference-copy:active,
.mobile-reference-copy:focus-visible {
  background: #edf3f0;
  outline: none;
}

.mobile-reference-copy.is-copied {
  color: #17251f;
  background: #e7eeea;
}

.mobile-reference-disclaimer {
  margin-top: 14px;
  color: #66736d;
  font-size: 12px;
  line-height: 1.6;
}

.mobile-reference-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.mobile-reference-actions.has-share {
  grid-template-columns: 1.15fr 1fr;
}

.mobile-reference-actions button {
  width: 100%;
  min-height: 44px;
}

.mobile-reference-share-btn.is-copied {
  border-color: #83e3b0;
  color: #067647;
  background: #ecfff5;
}

.share-pill {
  border-color: #cbd5e1;
  color: #344054;
  background: #fff;
}

.share-pill.is-copied {
  border-color: #83e3b0;
  color: #007a4c;
  background: #ecfff5;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #cad7e8;
  border-radius: 7px;
  color: #172b4d;
  background: #f8fbff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge.gold {
  color: #7a5200;
  border-color: #e5bd68;
  background: #fff6dd;
}

.badge.green {
  color: #007a4c;
  border-color: #83e3b0;
  background: #ecfff5;
}

.badge.red {
  color: #c92f40;
  border-color: #ffb7c0;
  background: #fff1f2;
}

.coin-cell {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.coin-cell strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.coin-cell strong[class*="coin-name-length-8"],
.coin-cell strong[class*="coin-name-length-9"] { font-size: 13px; }
.coin-cell strong.coin-name-length-10,
.coin-cell strong.coin-name-length-11,
.coin-cell strong.coin-name-length-12 { font-size: 11px; letter-spacing: -.2px; }

.tradfi-asset-note {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 14px;
  padding: 0 3px;
  border-radius: 3px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  opacity: .9;
}

.tradfi-asset-note-us { background: #eef4ff; color: #2b5fc0; }
.tradfi-asset-note-hk { background: #fff1f4; color: #b4233a; }
.tradfi-asset-note-kr { background: #eefaf5; color: #087453; }
.tradfi-asset-note-jp { background: #f6f1ff; color: #6842b8; }
.tradfi-asset-note-cn { background: #eef2ff; color: #4338ca; }
.tradfi-asset-note-commodity { background: #fff6dc; color: #8a5d08; }
.tradfi-asset-note-preipo { background: #eef2f7; color: #42526b; }

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  color: #516172;
  font-size: 13px;
  white-space: nowrap;
}

.metric-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.long-metric-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
  white-space: normal;
}

.long-metric-line span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  line-height: 1.12;
  overflow: visible;
}

.long-metric-line b {
  display: block;
  font-size: 12px;
  white-space: nowrap;
}

.long-metric-line .metric-delayed { opacity: .62; }

.short-metric-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
  white-space: normal;
}

.short-metric-line span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  line-height: 1.12;
  overflow: visible;
}

.short-metric-line b {
  display: block;
  font-size: 12px;
  white-space: nowrap;
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.muted-value {
  color: var(--muted) !important;
}

.empty-card,
.permission-card {
  margin: 12px;
  padding: 22px 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
}

.permission-card {
  border-color: #efcf91;
  background: #fff8e8;
  color: #5f4a23;
}

.permission-card strong {
  display: block;
  margin-bottom: 6px;
  color: #6f4700;
}

.permission-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trial-request-card {
  margin: 12px;
  padding: 16px;
  border: 1px solid #ead7b7;
  border-radius: 12px;
  background: #fffaf0;
  color: #273142;
  line-height: 1.65;
}

.trial-request-card > p {
  margin: 0 0 12px;
}

.trial-account-line {
  padding: 11px 12px;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
}

.trial-request-card h3 {
  margin: 16px 0 8px;
  font-size: 15px;
}

.trial-contact-list {
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
}

.trial-contact-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.trial-contact-list > div + div {
  border-top: 1px solid #edf0f4;
}

.trial-contact-list span {
  color: #6b7280;
}

.trial-contact-list strong {
  color: #172033;
  text-align: right;
  word-break: break-all;
}

.trial-request-actions {
  flex-wrap: wrap;
}

.trial-request-actions button {
  min-height: 42px;
}

.search-action-card {
  margin: 12px;
  padding: 18px 14px;
  border: 1px solid #efcf91;
  border-radius: 12px;
  color: #5f4a23;
  background: #fff8e8;
}

.search-action-card strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.search-action-card p {
  margin: 8px 0;
  color: var(--muted);
}

.search-symbol {
  margin: 8px 0 12px;
  font-weight: 800;
  color: #111827;
}

.search-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.search-action-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.search-action-line > button {
  min-width: 0;
  flex: 1 1 128px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.notification-nav-item {
  color: #805b10;
  background: #fffaf0;
}

.notification-channel-grid {
  display: grid;
  gap: 10px;
}

.notification-channel-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.notification-channel-card.ready {
  border-color: #86d3b8;
  background: #f3fbf8;
}

.notification-channel-card.pending {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.notification-channel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notification-channel-title strong,
.notification-channel-title small {
  display: block;
}

.notification-channel-title strong {
  font-size: 14px;
}

.notification-channel-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.notification-channel-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #475569;
  background: #e2e8f0;
  font-size: 9px;
  font-weight: 800;
}

.notification-channel-card.ready .notification-channel-badge {
  color: #075d45;
  background: #dff7ee;
}

.notification-channel-actions {
  margin-top: 11px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-channel-actions button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}

.notification-channel-actions button.primary-btn {
  border-color: #111827;
  color: #fff;
  background: #111827;
}

.feishu-preview-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  counter-reset: feishu-step;
}

.feishu-preview-step {
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.feishu-preview-step::before {
  counter-increment: feishu-step;
  content: counter(feishu-step);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #3370ff;
  font-size: 10px;
  font-weight: 800;
}

.bottom-nav-item {
  min-height: 42px;
  border-radius: 10px;
}

.bottom-nav-item.active {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.drawer.hidden {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
}

.drawer-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(90dvh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drawer-handle {
  width: 42px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #cdd6e2;
}

.drawer-head {
  padding: 10px 14px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.drawer-head h2 {
  margin: 0;
  font-size: 18px;
}

.drawer-title-line,
.detail-title-line {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 4px;
}

.mobile-help-btn {
  position: relative;
  min-height: 18px;
  padding: 1px 4px;
  border: 1px solid #b9d9f2;
  border-radius: 4px;
  color: #4489bd;
  background: #eef8ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
  vertical-align: baseline;
}

.mobile-help-btn::after {
  content: "";
  position: absolute;
  inset: -7px -5px;
}

.mobile-help-btn.hidden {
  display: none;
}

.drawer-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer-close {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.drawer-head-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
}

.drawer-back {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f6fb2;
  background: #fff;
}

.drawer-back.hidden {
  display: none;
}

.drawer-body {
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.sort-choice {
  min-height: 42px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
}

.sort-choice.active {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.sort-choice b {
  font-size: 16px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #405066;
  background: #fff;
}

.filter-chip.active {
  color: #7a5200;
  border-color: #e5bd68;
  background: #fff9e9;
  font-weight: 800;
}

.filter-actions {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-section {
  margin-bottom: 14px;
}

.detail-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.detail-title-line {
  margin: 0 0 8px;
}

.detail-title-line h3 {
  margin: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfdff;
}

.detail-grid dt {
  color: var(--muted);
}

.detail-label-line {
  display: inline;
  line-height: 1.65;
}

.detail-label-line > span {
  display: inline;
}

.detail-label-line .mobile-help-btn {
  margin-left: 4px;
}

.detail-grid dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
  font-weight: 650;
}

.detail-grid dd.matrix-value {
  white-space: pre-line;
  line-height: 1.55;
}

.mobile-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
}

.mobile-help-dialog {
  width: min(100%, 680px);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.mobile-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #d9e3ee;
}

.mobile-help-head h3 {
  margin: 0;
  font-size: 17px;
}

.mobile-help-head button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-help-content {
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  color: #344154;
  font-size: 14px;
  line-height: 1.72;
  overscroll-behavior: contain;
}

.mobile-help-content p {
  margin: 0 0 12px;
  white-space: pre-line;
}

.mobile-help-content p:last-child {
  margin-bottom: 0;
}

.mobile-help-content .mobile-help-subtitle {
  margin-top: 18px;
  color: #172033;
  font-weight: 800;
}

.insight-card {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfdff;
}

.insight-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.insight-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.insight-metric {
  display: grid;
  gap: 3px;
}

.insight-metric span {
  color: var(--muted);
  font-size: 12px;
}

.insight-metric b {
  min-width: 0;
  text-align: left;
  font-size: 14px;
  word-break: break-word;
}

.insight-metric-grid.ratio-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.ratio-grid .insight-metric {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.ratio-grid .insight-metric b {
  line-height: 1.45;
}

.insight-table {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}

.insight-table-row {
  min-height: 34px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.insight-table-row:last-child {
  border-bottom: 0;
}

.insight-table-row b {
  text-align: right;
  word-break: break-word;
}

.fund-flow-table .insight-table-row:not(.insight-table-head) {
  min-height: 56px;
}

.fund-flow-cell {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 2px;
  min-width: 0;
  text-align: right;
  line-height: 1.25;
}

.fund-flow-cell strong {
  color: inherit;
  font-size: 14px;
  font-weight: 750;
}

.fund-flow-cell span {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

.fund-flow-cell .missing {
  color: var(--muted);
}

.round-record-time {
  display: grid !important;
  align-content: center;
  gap: 1px;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: 1.2;
}

.round-record-time span {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.insight-table-head {
  color: var(--muted);
  background: #f6f8fb;
  font-weight: 700;
}

.insight-table-head span:not(:first-child) {
  text-align: right;
}

.insight-summary {
  margin: 0;
  line-height: 1.6;
  font-weight: 650;
}

.capital-snapshot-chart-card canvas {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 1px solid #263244;
  border-radius: 9px;
  background: #080d15;
}

.capital-curve-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.capital-snapshot-mobile-note {
  margin-bottom: 12px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e5bd68;
  border-radius: 10px;
  color: #172033;
  background: #fffaf0;
  font-size: 12px;
}

.drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-partner-opening {
  display: grid;
  gap: 12px;
}

.mobile-partner-price {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #efcf91;
  border-radius: 8px;
  background: #fff8e8;
}

.mobile-partner-price span {
  color: #765d2f;
  font-size: 12px;
}

.mobile-partner-price > strong {
  color: #37280d;
  font-size: 26px;
}

.mobile-partner-price > strong small {
  color: #765d2f;
  font-size: 13px;
}

.mobile-partner-benefits {
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid #efcf91;
}

.mobile-partner-benefits > strong {
  display: block;
  color: #37280d;
  font-size: 16px;
}

.mobile-partner-benefit-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  color: #59451f;
  font-size: 15px;
}

.mobile-partner-benefit-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.mobile-partner-benefit-item > span {
  display: inline-grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #fff3d7;
  color: #a96b00;
  font-weight: 800;
}

.mobile-partner-benefit-item > b {
  font-weight: 600;
}

.mobile-partner-benefit-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-left: 29px;
  padding: 5px 10px;
  border: 1px solid #e8bd60;
  border-radius: 8px;
  background: #fffaf0;
  color: #76500c;
}

.mobile-partner-benefit-copy strong {
  color: #76500c;
  font-size: 16px;
}

.mobile-partner-benefit-copy em {
  color: #1769d1;
  font-size: 13px;
  font-style: normal;
}

.mobile-partner-contact-title {
  font-size: 16px;
}

.mobile-partner-payment-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid #efcf91;
  border-radius: 8px;
  background: #fffaf0;
}

.mobile-partner-payment-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  color: #fff;
  background: #b7791f;
  font-size: 14px;
  font-weight: 700;
}

.mobile-partner-payment-content {
  min-width: 0;
}

.mobile-partner-payment-content > p {
  margin: 1px 0 9px;
  line-height: 1.55;
}

.mobile-partner-payment-networks {
  display: grid;
  gap: 10px;
}

.mobile-partner-network-card {
  display: grid;
  gap: 7px;
}

.mobile-partner-network-address {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 3px 9px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid #f0b6ba;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  background: #fff;
}

.mobile-partner-network-address img {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.mobile-partner-network-address span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-partner-network-address code {
  grid-column: 2 / -1;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 12px;
  font-weight: 700;
}

.mobile-partner-network-address em {
  color: #155eef;
  font-size: 12px;
  font-style: normal;
}

.mobile-partner-network-warning {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #8a2c34;
  font-size: 13px;
}

.mobile-partner-network-warning img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
}

.mobile-partner-contact-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.mobile-partner-contacts {
  display: grid;
  gap: 8px;
}

.mobile-partner-contacts button,
.mobile-partner-contacts a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: #fff;
}

.mobile-partner-contacts span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.mobile-partner-contacts em {
  color: #155eef;
  font-size: 12px;
  font-style: normal;
}

.mobile-partner-note {
  padding: 12px;
  border-left: 3px solid #d69e2e;
  background: #fffaf0;
}

.mobile-partner-note p {
  margin: 5px 0 0;
  color: #5f4a23;
  line-height: 1.55;
}

.mobile-partner-home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.curve-large-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #07111d;
}

.curve-large {
  display: block;
  width: 100%;
  height: auto;
}

.inline-ai-section {
  padding-top: 2px;
}

.inline-ai-caption {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.inline-ai-help-note {
  margin: 10px 2px 4px;
  color: #536174;
  font-size: 11px;
  line-height: 1.65;
}

.inline-ai-placeholder {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.inline-ai-error {
  color: #b42318;
  border-color: #fecaca;
  background: #fff7f7;
}

.inline-ai-content .insight-card:last-child {
  margin-bottom: 0;
}

.mini-signal-list {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: #fbfdff;
}

.mini-signal-row {
  min-height: 38px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(54px, 0.8fr) minmax(54px, 0.7fr);
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.mini-signal-row:last-child {
  border-bottom: 0;
}

.mini-signal-row span {
  color: var(--muted);
}

.round-card {
  margin-bottom: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: #fbfdff;
}

.round-card.current {
  border-color: #e5bd68;
  background: #fffaf0;
}

.round-head {
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line-soft);
}

.round-head strong {
  font-size: 13px;
}

.round-head span {
  color: var(--muted);
  font-size: 12px;
}

.round-record-table {
  overflow: hidden;
}

.round-record-row {
  min-height: 34px;
  padding: 7px 6px;
  display: grid;
  grid-template-columns: 56px 31px 25px minmax(42px, 0.9fr) repeat(3, minmax(34px, 1fr)) 42px;
  gap: 4px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
}

.round-record-head {
  color: var(--muted);
  background: #f6f8fb;
  font-weight: 700;
}

.round-record-row b,
.round-record-head span:nth-child(n + 3) {
  text-align: right;
}

.round-record-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-capital-action {
  text-align: right;
}

.round-capital-action button {
  min-height: 25px;
  padding: 2px 7px;
  border: 1px solid #d6ad50;
  border-radius: 6px;
  color: #6b4a00;
  background: #fff2c7;
  font-size: 10px;
  font-weight: 800;
}

.round-capital-action small {
  color: var(--muted);
  font-size: 9px;
}

.form-stack {
  display: grid;
  gap: 10px;
}

.form-stack input,
.form-stack select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-register-community {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.error-text {
  color: var(--red);
  font-size: 12px;
}

.notification-status,
.notification-permission-note,
.notification-background-note,
.notification-footnote {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.mobile-trader-notification-list {
  display: grid;
  gap: 8px;
}

.mobile-trader-notification-row {
  padding: 12px;
  border: 1px solid #d9e1eb;
  border-radius: 6px;
  background: #fff;
}

.mobile-trader-notification-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.mobile-trader-notification-head > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mobile-trader-notification-head strong { color: #101828; font-size: 14px; }
.mobile-trader-notification-head small { color: #667085; font-size: 11px; }
.mobile-trader-notification-head label { color: #344054; font-size: 12px; white-space: nowrap; }

.mobile-trader-notification-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #13223a;
  color: #fff;
  font-weight: 800;
}

.mobile-trader-notification-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf1f5;
}

.mobile-trader-notification-types label {
  color: #344054;
  font-size: 12px;
}

.mobile-trader-notification-row input { accent-color: #087a50; }
.notification-footnote.warning { color: #b54708; border-color: #fedf89; background: #fffaeb; }

.notification-status strong,
.notification-permission-note strong,
.notification-background-note strong {
  display: block;
  margin-bottom: 6px;
}

.notification-status p,
.notification-permission-note p,
.notification-background-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.notification-status.ready {
  border-color: #9ddac6;
  background: #effbf7;
}

.notification-status.success {
  border-color: #86d3b8;
  color: #075d45;
  background: #eafaf4;
}

.notification-status.warning {
  border-color: #efd18d;
  color: #75520b;
  background: #fff8e9;
}

.notification-status.error {
  border-color: #efb6bc;
  color: #9d2531;
  background: #fff1f3;
}

.notification-permission-note {
  margin-top: 10px;
  background: #f7f9fc;
}

.notification-background-note {
  margin-top: 10px;
  border-color: #efd18d;
  color: #75520b;
  background: #fff8e9;
}

.notification-actions {
  margin-top: 10px;
}

.notification-server-state {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #24425e;
  background: #f3f7fb;
  font-size: 11px;
}

.notification-server-state strong,
.notification-server-state span {
  display: block;
}

.notification-server-state span {
  margin-top: 3px;
  color: var(--muted);
}

.notification-server-state.error {
  border-color: #efb6bc;
  color: #9d2531;
  background: #fff1f3;
}

.notification-catalog-head {
  margin: 20px 0 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.notification-catalog-head strong,
.notification-catalog-head small {
  display: block;
}

.notification-catalog-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.notification-catalog-head em {
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.notification-topic-list {
  display: grid;
  gap: 8px;
}

.notification-topic-list {
  margin-top: 12px;
}

.notification-topic-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.notification-topic-group h4 {
  margin: 0;
  padding: 10px 12px;
  background: #f5f7fa;
  font-size: 13px;
}

.notification-topic {
  width: 100%;
  min-height: 54px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.notification-topic[aria-pressed="true"] {
  background: #f3fbf8;
}

.notification-topic:disabled {
  cursor: default;
}

.notification-topic.pending {
  opacity: 0.58;
}

.notification-topic-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #075d45;
  background: #dff7ee;
  font-size: 11px;
  font-weight: 900;
}

.notification-topic strong,
.notification-topic small {
  display: block;
}

.notification-topic strong {
  font-size: 12px;
}

.notification-topic small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.notification-topic em {
  padding: 3px 6px;
  border-radius: 999px;
  color: #805b10;
  background: var(--gold-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.notification-footnote {
  margin-top: 12px;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 11px;
  line-height: 1.65;
}

.notification-setup-card {
  padding: 16px;
  border: 1px solid #dfbd67;
  border-radius: 15px;
  background: linear-gradient(150deg, #fffdf7, #fff8e8);
}

.notification-setup-card.complete {
  border-color: #86d3b8;
  background: linear-gradient(150deg, #f7fffc, #eafaf4);
}

.notification-setup-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8a6516;
  font-size: 11px;
  font-weight: 850;
}

.notification-setup-kicker em {
  font-style: normal;
}

.notification-setup-progress {
  height: 5px;
  margin: 9px 0 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfca;
}

.notification-setup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #c38b18;
  transition: width 180ms ease;
}

.notification-setup-card.complete .notification-setup-progress span {
  background: var(--green);
}

.notification-setup-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}

.notification-setup-card > p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.notification-check-list {
  overflow: hidden;
  border: 1px solid #eadfc8;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.notification-check-list > div {
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee5d5;
  font-size: 12px;
}

.notification-check-list > div:first-child {
  border-top: 0;
}

.notification-check-list b {
  flex: 0 0 auto;
  font-size: 11px;
}

.notification-check-list b.ok {
  color: var(--green);
}

.notification-check-list b.pending {
  color: #936b15;
}

.notification-primary-actions {
  grid-template-columns: minmax(0, 1fr);
}

.notification-primary-actions .primary-btn,
.notification-primary-actions .ghost-btn {
  min-height: 44px;
}

.notification-device-maintenance {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.notification-device-maintenance > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notification-device-maintenance small {
  color: var(--muted);
  font-size: 11px;
}

.notification-device-maintenance > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.notification-device-maintenance button {
  min-height: 40px;
}

.danger-btn {
  border: 1px solid #f2b8bf;
  border-radius: 9px;
  color: #ad2835;
  background: #fff5f6;
  font-weight: 800;
}

.notification-recovery {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  color: #8a2632;
  background: #fff1f3;
  font-size: 12px;
  line-height: 1.7;
}

.notification-recovery ol {
  margin: 7px 0 0;
  padding-left: 20px;
}

.notification-info-details {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.notification-info-details summary {
  padding: 12px 13px;
  color: #24425e;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.notification-info-details .notification-permission-note {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
}

@media (min-width: 520px) {
  .notification-primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .mobile-main {
    padding-left: 8px;
    padding-right: 8px;
  }

  .btc-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .signal-row {
    padding-left: 8px;
    padding-right: 8px;
  }

  .row-main {
    grid-template-columns: 58px 42px minmax(38px, 1fr) auto 40px 40px;
    gap: 5px;
  }

  .short-row-main {
    grid-template-columns: 58px minmax(70px, 1fr) auto 40px 40px;
  }

  .long-row-main {
    grid-template-columns: 58px 42px minmax(52px, 1fr) 28px auto;
  }

  .round-record-row {
    grid-template-columns: 48px 29px 23px minmax(38px, 0.9fr) repeat(3, minmax(31px, 1fr)) 38px;
    gap: 3px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 9.5px;
  }

  .badge {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }

  .metric-line {
    font-size: 12px;
    gap: 6px;
  }
}
.signal-row.notification-focus-row {
  border: 2px solid #d6a52c;
  background: #fff8dc;
  animation: notification-focus-pulse 1.1s ease-in-out 2;
}

@keyframes notification-focus-pulse {
  50% { box-shadow: inset 0 0 0 999px rgba(245, 188, 55, 0.12); }
}

.mobile-official-recharge-help {
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #dfe5ed;
  border-left: 3px solid #c38a1e;
  border-radius: 12px;
  background: #fbfcfe;
  color: #354052;
}

.mobile-official-recharge-help > strong {
  color: #172033;
  line-height: 1.55;
}

.mobile-official-recharge-help > button,
.mobile-official-recharge-help > a {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #dfe5ed;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  text-align: left;
}

.mobile-official-recharge-help b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1769d2;
}

.mobile-official-recharge-help em {
  color: #1769d2;
  font-style: normal;
  font-weight: 700;
}

.mobile-official-recharge-help p {
  margin: 0;
  font-weight: 700;
}

.mobile-official-recharge-inline-help {
  margin: 2px 0 4px;
}

.mobile-recharge-order-actions,
.mobile-recharge-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mobile-recharge-order-actions > :only-child,
.mobile-recharge-detail-actions > :only-child {
  grid-column: 1 / -1;
}

/* Dealer archive timestamps must remain complete on narrow mobile screens. */
.round-record-row > .round-record-time {
  display: grid;
  align-content: center;
  gap: 1px;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.2;
}

.round-record-row > .round-record-time span {
  display: block;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}

.mobile-site-message-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-site-message-head,
.mobile-site-message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-site-message-head strong {
  display: block;
  color: #152033;
  font-size: 14px;
}

.mobile-site-message-head small,
.mobile-site-message-row small,
.mobile-thread-message small {
  display: block;
  margin-top: 2px;
  color: #748094;
  font-size: 10px;
}

.mobile-site-message-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.mobile-site-message-tabs button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: #526074;
  font-size: 12px;
}

.mobile-site-message-tabs button.active {
  background: #111827;
  color: #fff;
}

.mobile-site-message-list,
.mobile-thread-list {
  display: grid;
  gap: 8px;
}

.mobile-site-message-row {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
}

.mobile-site-message-row.unread {
  border-color: #6bb7e8;
  background: #f0f9ff;
}

.mobile-site-message-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mobile-site-message-row strong {
  overflow: hidden;
  color: #152033;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-site-message-row em {
  flex: 0 0 auto;
  color: #087a50;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.mobile-site-message-compose {
  display: grid;
  gap: 8px;
}

.mobile-site-message-compose input,
.mobile-site-message-compose select,
.mobile-site-message-compose textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.mobile-admin-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: #526074;
  font-size: 11px;
}

.mobile-site-message-popup p,
.mobile-thread-message p {
  margin: 0 0 12px;
  color: #263244;
  font-size: 14px;
  line-height: 1.75;
}

.mobile-thread-message {
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f9;
}

.mobile-thread-message.admin {
  background: #ecfdf3;
}
.notification-zone-nav {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; padding: 8px; margin-bottom: 12px; background: rgba(255,255,255,.97); border: 1px solid #e3e8ef; border-radius: 12px;
}
.notification-zone-nav button { min-width: 0; padding: 10px 6px; font-size: 14px; }
.notification-zone-nav button.active {
  border-color: #193a63;
  color: #fff;
  background: #111827;
}
.notification-zone-nav button em {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #d92d20;
  font-size: 9px;
  font-style: normal;
}
.notification-tab-panel { display: none; }
.notification-tab-panel.active { display: block; }
.notification-section-heading {
  display: grid;
  gap: 3px;
  margin: 2px 0 10px;
  padding: 0 2px 9px;
  border-bottom: 1px solid var(--line);
}
.notification-section-heading strong { color: var(--text); font-size: 15px; }
.notification-section-heading small { color: var(--muted); font-size: 10px; }
.mobile-favorite-alert-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mobile-favorite-alert-toolbar button {
  min-height: 38px;
  padding: 6px 4px;
  font-size: 10px;
}
.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.email-code-row button {
  width: auto;
  min-width: 108px;
  margin: 0;
  white-space: nowrap;
}
