:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-soft: #f7f7f9;
  --surface-warm: #fbfbfc;
  --panel: #ffffff;
  --panel2: #f7f7f9;
  --panel3: #ededf2;
  --text: #22232a;
  --muted: #6d7280;
  --faint: #9aa0aa;
  --line: #ececf1;
  --line-strong: #dedee6;
  --accent: #6f45ff;
  --accent-strong: #5a35df;
  --accent-soft: #f0ecff;
  --orange: #ffb21b;
  --blue: #5867d8;
  --bad: #d94b42;
  --good: #18a46f;
  --warn: #d99b21;
  --sidebar-bg: #16171c;
  --sidebar-bg-2: #101116;
  --sidebar-panel: #22232b;
  --sidebar-line: rgba(255,255,255,.075);
  --sidebar-text: #f6f6f8;
  --sidebar-muted: rgba(246,246,248,.72);
  --shadow-card: 0 1px 1px rgba(16,17,22,.025), 0 12px 34px rgba(16,17,22,.045);
  --shadow-float: 0 18px 44px rgba(21,17,38,.20);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
}
@font-face {
  font-family: "iconfont";
  src: url("./assets/fonts/iconfont.woff2") format("woff2"),
       url("./assets/fonts/iconfont.woff") format("woff"),
       url("./assets/fonts/iconfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--sidebar-bg);
  border-right: 1px solid #292a31;
  padding-bottom: 180px;
}
.sidebar::-webkit-scrollbar, .main::-webkit-scrollbar, .logpanel::-webkit-scrollbar { width: 0; height: 0; }
.brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--sidebar-bg);
  border-bottom: 1px solid #24252d;
}
.menu-fold {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e8e8ee;
  font-size: 18px;
  box-shadow: none;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  touch-action: manipulation;
}
.menu-fold:hover { background: transparent; color: #fff; }
.mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b0c10;
  color: #ffd15a;
  border: 1px solid rgba(255,255,255,.10);
  font-size: 16px;
  line-height: 1;
}
.brand h2 { margin: 0; color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand span { display: none; }
#nav { padding: 22px 0 26px; }
.nav-group { margin: 0; }
.nav-title {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #f1f1f4;
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: none;
}
.nav-title.direct { grid-template-columns: 24px 1fr; }
.nav-title:hover, .nav-group.has-active > .nav-title, .nav-title.direct.active { background: transparent; color: #fff; }
.nav-title strong { font-size: 14px; font-weight: 650; white-space: nowrap; }
.nav-title em { display: none; }
.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #e8e9ef;
  background: #23242c;
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 800;
}
.nav-group.has-active > .nav-title .nav-icon, .nav-title.direct.active .nav-icon { background: #2b2445; color: #fff; }
.chevron { color: rgba(245,245,248,.45); transform: rotate(-90deg); transition: transform 180ms ease-out; justify-self: end; }
.nav-group.open .chevron { transform: rotate(0deg); }
.nav-children { display: none; padding: 0 0 9px; position: relative; }
.nav-group.open .nav-children { display: grid; gap: 0; }
.nav-item {
  width: 100%;
  min-height: 46px;
  border: 0;
  color: rgba(246,246,248,.82);
  background: transparent;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 17px 0 24px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 14px;
  position: relative;
}
.nav-item::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  position: absolute;
  left: 24px;
}
.nav-item:hover { background: rgba(255,255,255,.035); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(111,69,255,.88), rgba(111,69,255,.36));
  color: #fff;
  outline: 0;
  box-shadow: inset 3px 0 0 #896cff;
}
.nav-item.active::before { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.18); }
.nav-item.blocked { color: rgba(255,255,255,.38); }
.nav-item em { font-style: normal; color: rgba(255,255,255,.55); font-size: 10px; white-space: nowrap; }
.nav-child-icon,
.nav-spacer {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.nav-child-icon {
  color: rgba(246,246,248,.82);
  font-size: 16px;
  line-height: 1;
}
.nav-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-support {
  position: fixed;
  left: 12px;
  bottom: 12px;
  width: 236px;
  padding: 12px;
  border-radius: 14px;
  background: #1c1d24;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.support-card {
  width: calc(50% - 5px);
  min-height: 72px;
  display: inline-grid;
  place-items: center;
  gap: 5px;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
  background: #22232b;
  margin: 0 4px 10px 0;
  font-size: 12px;
  font-weight: 700;
}
.support-card span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: #30284f; color: #fff; }
.social-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; color: #e8e8ee; }
.social-row span { height: 28px; display: grid; place-items: center; border-radius: 8px; background: #15161b; font-size: 11px; }
.main {
  min-width: 0;
  height: 100dvh;
  padding: 0 20px 56px;
  overflow: auto;
  background: var(--bg);
}
.topbar {
  height: 60px;
  min-height: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin: 0 -20px 20px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #ececf1;
  backdrop-filter: blur(10px);
}
.crumb { display: none; }
.top-actions { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: flex-end; }
.legacy-switch { color: #333; font-size: 16px; }
.percent-badge { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f0fffb; color: #292b32; border: 1px solid #e2ebe8; font-weight: 900; font-size: 20px; }
.chain-pill { min-height: 40px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 0 16px; background: #f0f0f3; color: #1f2026; font-weight: 700; }
.chain-logo { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #101116; color: #ffd15a; }
.icon-btn { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: #f0f0f3; border: 0; color: #22232a; box-shadow: none; }
.icon-btn:hover { background: #e8e8ed; color: #22232a; }
.wallet { display: flex; align-items: center; gap: 10px; color: var(--muted); }
#walletState { display: none; }
button {
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: #1b1c22;
  color: rgba(255,255,255,.96);
  padding: 0 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
button:hover { background: #2a2b33; }
button:active { transform: translateY(1px); }
button + button { margin-left: 8px; }
#connect { min-width: 104px; border-radius: 999px; background: #1b1c22; color: #fff; font-weight: 800; }
.work-panel { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; max-width: 1176px; margin: 0 auto; }
.work-panel.no-aside { grid-template-columns: minmax(0, 1fr); max-width: 1112px; }
.work-panel:not(:has(> aside)) { grid-template-columns: minmax(0, 1fr); max-width: 1112px; }
.tool-page { max-width: 1112px; margin: 0 auto; }
.tool-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 18px 0 28px; }
.tool-head h1 { margin-bottom: 8px; }
.head-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.head-actions button + button { margin-left: 0; }
.safe-btn { background: color-mix(in srgb, var(--good), transparent 88%); border-color: color-mix(in srgb, var(--good), var(--line)); color: var(--good); }
.safe-btn:hover { background: color-mix(in srgb, var(--good), transparent 82%); color: var(--good); }
.ghost-btn { background: rgba(0,0,0,.045); border-color: rgba(0,0,0,.06); color: var(--text); }
.ghost-btn:hover { background: rgba(0,0,0,.075); color: var(--text); }
.tool-card { background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: 20px; box-shadow: var(--shadow-card); padding: 16px; }
.tool-card > .form-section:first-child { margin-top: 12px; }
.tool-card > .primary-wide:last-of-type { margin-bottom: 12px; }
.panel-main, .work-panel > aside, .logpanel { background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-card); }
.panel-main { overflow: hidden; }
.work-panel > aside { color: var(--muted); }
h1 { color: var(--text); font-size: 28px; line-height: 1.18; margin: 0 0 14px; letter-spacing: -.02em; }
h2 { color: var(--text); font-size: 16px; margin: 22px 0 10px; }
h3 { color: var(--text); }
p { color: var(--muted); }
.lead { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 74ch; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.metric-grid div, .mode-card { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.metric-grid b { display: block; font-size: 24px; color: var(--accent-strong); line-height: 1.1; }
.metric-grid span, .hint { color: var(--muted); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
.mode-card { min-height: 96px; }
.mode-card b { display: block; margin-bottom: 8px; font-size: 16px; }
.mode-card span { color: var(--muted); line-height: 1.45; }
.mode-card.live { border-color: color-mix(in srgb, var(--good), var(--line)); }
.mode-card.strict { border-color: color-mix(in srgb, var(--warn), var(--line)); }
.relay-box, .form-section, .notice { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 16px; }
.relay-box { padding: 16px; margin-top: 18px; }
.toggle-line { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 6px 0 12px; }
.toggle-line label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; margin: 0; }
.toggle-line input { width: auto; min-height: auto; }
.contract-strip { display: grid; gap: 10px; }
code, pre { background: #fafafa; border: 1px solid var(--line); border-radius: 10px; color: #363741; padding: 9px; overflow: auto; font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: 12px; }
label { display: grid; gap: 8px; color: #4c4f59; margin: 12px 0; font-size: 13px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #e6e6eb;
  background: #f6f6f8;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}
input::placeholder, textarea::placeholder { color: #a4a7b0; }
input:hover, textarea:hover, select:hover { border-color: #d7d3ea; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-row, .form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.form-row { grid-template-columns: minmax(0, 1fr) auto auto; }
table { width: 100%; border-collapse: collapse; margin-top: 18px; color: var(--text); }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 650; font-size: 12px; }
tr:hover td { background: #fbfbfc; }
.dense input { min-width: 90px; }
.logpanel { display: none; }
#logs { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
#logs li { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px; color: var(--muted); }
#logs li.success { border-color: color-mix(in srgb, var(--good), var(--line)); color: var(--good); background: color-mix(in srgb, var(--good), transparent 92%); }
#logs li.error { border-color: color-mix(in srgb, var(--bad), var(--line)); color: var(--bad); background: color-mix(in srgb, var(--bad), transparent 93%); }
time { display: block; font-size: 11px; opacity: .7; margin-bottom: 4px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.panel-main { animation: panel-in 180ms ease-out; }
@keyframes panel-in { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.form-section { padding: 16px; margin: 16px 0; }
.bsc-only, .tool-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); padding: 10px 12px; color: var(--muted); }
.bsc-only { margin: 12px 0; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent), var(--line)); }
.bsc-only b { color: var(--accent-strong); }
.original-note.slerf-note { align-items: flex-start; }
.original-note.slerf-note b { color: var(--accent-strong); white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head span { color: var(--faint); font-size: 12px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.action-row button + button { margin-left: 0; }
.secondary { background: rgba(0,0,0,.045); border-color: rgba(0,0,0,.06); color: var(--text); }
.secondary:hover { background: rgba(0,0,0,.075); color: var(--text); }
.local-log, .mini-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.local-log li, .mini-steps li { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; color: var(--muted); }
.mini-steps { counter-reset: step; }
.mini-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.mini-steps li::before { counter-increment: step; content: counter(step); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 800; }
.plan-output { min-height: 92px; color: var(--muted); }
.plan-section { background: var(--surface); }
.form-section h2 { margin-top: 0; font-size: 15px; }
.original-note { display: flex; gap: 12px; align-items: center; border: 1px solid color-mix(in srgb, var(--accent), var(--line)); background: var(--accent-soft); color: var(--text); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.original-note span { color: var(--muted); }
.upload-box { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px; color: var(--muted); background: var(--surface); }
.switch-row { display: flex; grid-template-columns: none; align-items: center; gap: 10px; }
.switch-row input { width: auto; min-height: auto; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.choice-card { min-height: 84px; display: grid; place-items: start; text-align: left; background: var(--surface-soft); color: var(--text); border-color: var(--line); }
.choice-card.active { outline: 1px solid var(--accent); background: var(--accent-soft); }
.choice-card span { color: var(--muted); font-weight: 500; margin-top: 6px; }
.table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.table-tools button + button { margin-left: 0; }
.table-tools button, .segmented button, .mini, .choice-card { background: rgba(0,0,0,.045); border: 1px solid rgba(0,0,0,.06); color: var(--text); }
.table-tools button:hover, .segmented button:hover, .mini:hover, .choice-card:hover { background: rgba(0,0,0,.075); color: var(--text); }
.flap-table td { vertical-align: middle; }
.flap-table td:nth-child(5) { min-width: 180px; }
.mini { min-height: 30px; padding: 0 8px; margin-left: 6px; border-radius: 8px; }
.notice { padding: 10px 12px; margin: 10px 0; color: var(--muted); }
.notice.success { background: color-mix(in srgb, var(--good), transparent 91%); border-color: color-mix(in srgb, var(--good), var(--line)); color: var(--good); }
.primary-wide { width: 100%; margin-top: 12px; }
.fee-line { text-align: center; color: var(--muted); font-size: 13px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.segmented button { min-height: 36px; }
.segmented button.active { background: var(--accent); border-color: var(--accent); color: rgba(255,255,255,.96); }
.metric-grid.small b { font-size: 22px; }
.empty-log { min-height: 120px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); margin-top: 10px; background: var(--surface); }
.float-service { position: fixed; right: 22px; bottom: 22px; z-index: 20; width: 54px; min-height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: linear-gradient(180deg, #8f6bff, #6338f5); color: #fff; box-shadow: 0 16px 36px rgba(83,55,200,.34); padding: 0; }
.float-service::before { content: "☻"; font-size: 24px; font-weight: 900; }
.float-service div { display: none; }
/* Slerf exact-like launch card */
.slerf-tool-card {
  max-width: 980px;
  margin: 20px auto 64px;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 22px;
  box-shadow: none;
  overflow: hidden;
}
.slerf-card-head { padding: 20px 40px 18px; border-bottom: 1px solid #ececf1; }
.slerf-card-head h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: 0; }
.slerf-card-head p { margin: 0; color: #747986; font-size: 12px; line-height: 1.75; }
.slerf-card-body { padding: 28px 40px 34px; }
.slerf-section { margin: 0 0 28px; }
.slerf-section h2, .slerf-section h3, .slerf-section h4 { margin: 0 0 14px; color: #2c2d35; font-weight: 700; }
.slerf-section h2 { font-size: 14px; }
.slerf-section h3 { font-size: 16px; }
.slerf-section h4 { font-size: 15px; }
.slerf-wallet-import-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; background: #f7f7f9; border-radius: 8px; padding: 12px; box-shadow: 0 10px 26px rgba(16,17,22,.035); }
.slerf-wallet-import-grid label { margin: 0; gap: 8px; color: #555966; font-size: 13px; }
.slerf-wallet-import-grid label + label { border-left: 1px solid #ededf1; padding-left: 12px; }
.slerf-wallet-import-grid input { background: #fff; border-color: #eeeef3; min-height: 38px; }
.slerf-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.slerf-two-col.align-start { align-items: start; }
.slerf-two-col label { margin: 0; color: #4d515d; font-size: 13px; }
.slerf-two-col input, .slerf-two-col textarea, .slerf-two-col select, .suffix-input input, .paste-input input { border: 0; background: #f0f0f4; min-height: 40px; border-radius: 8px; color: #25262d; }
.slerf-two-col textarea { min-height: 130px; resize: vertical; }
.slerf-upload { min-height: 130px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 20px 24px; border: 1px solid #eeeef3; border-radius: 12px; background: #fff; }
.slerf-upload button { width: 92px; min-height: 88px; display: grid; place-items: center; gap: 6px; background: #f8f8fa; border: 1px solid #f0f0f3; color: #747987; border-radius: 8px; padding: 0; font-size: 13px; }
.slerf-upload button span { display: block; font-size: 18px; }
.upload-actions { display: grid; grid-template-columns: 92px; gap: 10px; }
.slerf-upload .upload-meta-button { min-height: 42px; background: #191b22; color: #fff; border-color: #191b22; box-shadow: 0 8px 18px rgba(25,27,34,.12); }
.slerf-upload .upload-meta-button span { font-size: 15px; }
.slerf-upload p { margin: 0 0 8px; color: #666b77; font-size: 13px; }
.flap-upload-box { grid-template-columns: 100px 1fr !important; padding: 18px 20px; gap: 22px; min-height: 130px; }
.flap-upload-box .flap-upload-button { width: 100px; min-height: 92px; background: #f8f8fa; color: #757a86; }
.flap-upload-box .flap-upload-button b { font-size: 13px; font-weight: 600; }
.flap-upload-copy { display: grid; align-content: center; gap: 2px; }
.flap-upload-copy p:last-child { margin-bottom: 0; }
.suffix-input, .paste-input, .amount-cell { display: flex; align-items: center; background: #f0f0f4; border-radius: 8px; overflow: hidden; }
.suffix-input input, .paste-input input, .amount-cell input { border-radius: 8px 0 0 8px; flex: 1; }
.suffix-input b { padding: 0 13px; color: #6a6f7c; font-size: 12px; }
.switch-title { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.slerf-switch { width: 38px; height: 22px; margin: 0; position: relative; display: inline-block; }
.slerf-switch input { display: none; }
.slerf-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d7d8de; transition: 160ms ease; }
.slerf-switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: 160ms ease; }
.slerf-switch input:checked + span { background: var(--accent); }
.slerf-switch input:checked + span::after { transform: translateX(16px); }
.income-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.income-choice button, .income-choice > div { min-height: 98px; display: grid; align-content: start; justify-items: start; gap: 5px; background: #fff; border: 1px solid #eeeef3; color: #2e3038; text-align: left; border-radius: 12px; padding: 14px; }
.income-choice button.active, .income-choice > div.active { border-color: #d8ccff; background: #fbfaff; }
.income-choice span { font-size: 19px; color: #8060ff; }
.income-choice b { font-size: 14px; }
.income-choice small { color: #777c88; line-height: 1.45; }
.income-panel { border: 1px solid #eeeef3; border-radius: 12px; padding: 16px; background: #fff; }
.income-panel b { display: block; margin-bottom: 4px; }
.income-panel p { margin: 0 0 12px; color: #777c88; font-size: 13px; }
.paste-input button { min-height: 40px; padding: 0 12px; border-radius: 0 8px 8px 0; background: #f0f0f4; color: #4a4d57; border: 0; }
.hidden-field { display: none; }
.flap-tax-panel { display: grid; gap: 18px; }
.flap-tax-rates { display: grid; gap: 20px; }
.flap-tax-slider-card { display: grid; gap: 10px; margin: 0; color: #4d515d; font-size: 13px; }
.flap-slider-line { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 12px; }
.flap-slider-line b { color: #343640; font-size: 13px; text-align: right; }
.flap-tax-slider {
  width: 100%;
  accent-color: var(--accent);
}
.flap-tax-ticks { display: grid; grid-template-columns: repeat(11, 1fr); color: #9a9faa; font-size: 11px; line-height: 1; }
.flap-tax-ticks span { text-align: center; }
.flap-tax-ticks span:first-child { text-align: left; }
.flap-tax-ticks span:last-child { text-align: right; }
.flap-tax-percent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.flap-tax-percent-grid label,
.flap-tax-address,
.flap-tax-min-share { display: grid; gap: 8px; margin: 0; color: #4d515d; font-size: 13px; }
.flap-tax-percent-grid em,
.flap-tax-min-share em { color: #7c808c; font-style: normal; font-size: 12px; }
.percent-suffix b { min-width: 38px; text-align: center; }
.openfour-tax-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 12px 0 18px;
}
.openfour-tax-rates label {
  margin: 0 !important;
  padding: 12px;
  border: 1px solid #ececf4;
  border-radius: 12px;
  background: #fbfbfd;
}
.openfour-tax-rates small,
.openfour-user-note {
  color: #7b8190;
  font-size: 12px;
  line-height: 1.55;
}
.openfour-user-note {
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f5ff;
  border: 1px solid #e7e1ff;
}
.openfour-exec-mode {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr .7fr;
  gap: 12px;
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px solid #ececf4;
  border-radius: 12px;
  background: #fbfbfd;
}
.openfour-exec-mode label { margin: 0 !important; }
.openfour-exec-mode small { color: #7b8190; font-size: 12px; line-height: 1.55; }
.openfour-rate-grid .suffix-input { background: #fff; border: 1px solid #ececf4; }
@media (max-width: 760px) {
  .openfour-tax-rates,
  .openfour-exec-mode { grid-template-columns: 1fr; }
}
.flap-tax-address input,
.flap-tax-min-share input { border: 0; background: #f0f0f4; min-height: 40px; border-radius: 8px; color: #25262d; }
.flap-tax-total { min-height: 22px; display: flex; align-items: center; color: #6e7280; font-size: 13px; }
.flap-tax-total.complete { color: #3E5FA8; }
.flap-tax-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #ececf2; }
.flap-tax-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 180ms ease; }
.flap-tax-total.complete + .flap-tax-progress i { background: #3E5FA8; }
.flap-tax-dex-note { margin: 0; }
.toggles-section { margin-top: -6px; }
.flap-create-mode-section {
  padding: 14px;
  border: 1px solid #ececf4;
  border-radius: 16px;
  background: #fbfbfd;
}
.flap-create-mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #2c2d35;
  font-weight: 800;
}
.flap-create-mode-head b {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0ecff;
  color: #6f45ff;
  font-size: 11px;
}
.flap-create-mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.flap-create-mode-picker button {
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #eeeef3;
  border-radius: 14px;
  background: #fff;
  color: #30323b;
  text-align: left;
}
.flap-create-mode-picker button.active {
  border-color: #cfc3ff;
  background: #f7f4ff;
  box-shadow: 0 10px 24px rgba(111,69,255,.08);
}
.flap-create-mode-picker strong { font-size: 14px; }
.flap-create-mode-picker span {
  color: #737887;
  font-size: 12px;
  line-height: 1.45;
}
.slerf-wallet-tools { margin-bottom: 0; color: #444; }
.slerf-wallet-tools button { background: transparent; color: #454956; border: 0; padding: 0; min-height: 26px; font-weight: 600; }
.slerf-table-wrap { width: 100%; overflow-x: auto; }
.slerf-buy-table { min-width: 870px; margin-top: 0; border-collapse: separate; border-spacing: 0; }
.slerf-buy-table th { padding: 10px 12px; background: #fff; border-bottom: 1px solid #eeeef3; color: #4f535f; font-size: 13px; }
.slerf-buy-table td { padding: 7px 12px; border-bottom: 1px solid #f1f1f4; vertical-align: middle; }
.slerf-buy-table input { min-height: 38px; background: #fff; border: 1px solid #eeeef3; }
.slerf-buy-table p { margin: 0; color: #575c67; text-align: center; }
.slerf-buy-table th:first-child, .slerf-buy-table td:first-child { width: 46px; text-align: center; }
.required { color: #e23e3e; }
.sync-dot { color: #9aa0aa; }
.row-delete { width: 30px; min-height: 30px; padding: 0; border-radius: 50%; background: #fff; color: #9aa0aa; border: 1px solid #eeeef3; }
.add-wallet-btn { margin: 14px auto 0; display: flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #474b56; border: 1px solid #eeeef3; min-height: 40px; border-radius: 10px; }
.add-wallet-btn span { font-size: 18px; color: var(--accent); }
.advanced-sort { margin-top: 12px; border: 1px dashed #e6e3f6; border-radius: 12px; padding: 10px 12px; color: #6d7280; background: #fbfbfe; }
.advanced-sort summary { cursor: pointer; font-size: 13px; }
.advanced-sort .sort-help { margin: 10px 0 12px; color: #7d8492; font-size: 12px; line-height: 1.6; }
.slerf-sort-table { margin-top: 12px; min-width: 680px; }
.slerf-sort-table input { min-height: 34px; background: #fff; }
.sort-actions { display: flex; gap: 10px; margin-top: 10px; }
.sort-actions button { background: #fff; color: #333640; border-color: #e5e2f6; }
.visually-hidden-input { display: none; }
.slerf-alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 11px 13px; border: 1px solid #e7e9f0; border-radius: 8px; background: #fff; }
.slerf-alert p { margin: 0; font-size: 13px; color: #5f6470; }
.slerf-alert button { width: 26px; min-height: 26px; padding: 0; border-radius: 50%; background: #fff; color: #9ba0aa; border: 0; }
.slerf-submit { display: block; width: 190px; margin: 18px auto 10px; min-height: 44px; border-radius: 12px; background: linear-gradient(180deg, #8d6cff, #6842ec); color: #fff; font-weight: 800; }
.slerf-output:empty { display: none; }
@media (max-width: 1100px) { .app { grid-template-columns: 230px minmax(0, 1fr); } .side-support { width: 206px; } .slerf-card-head, .slerf-card-body { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; max-height: 45dvh; padding-bottom: 16px; }
  .side-support, .float-service { display: none; }
  .main { height: auto; min-height: 55dvh; padding: 0 12px 32px; }
  .topbar { margin: 0 -12px 18px; padding: 8px 12px; height: auto; min-height: 58px; }
  .top-actions { flex-wrap: wrap; gap: 8px; }
  .metric-grid, .form-grid, .form-row, .mode-grid, .choice-grid, .slerf-two-col, .income-choice, .slerf-wallet-import-grid { grid-template-columns: 1fr; }
  .slerf-wallet-import-grid label + label { border-left: 0; padding-left: 0; margin-top: 10px; }
  .slerf-tool-card { margin-top: 12px; border-radius: 16px; }
  .slerf-card-head, .slerf-card-body { padding: 18px; }
  .slerf-upload { grid-template-columns: 1fr; }
  .panel-main, .work-panel > aside, .tool-card { padding: 18px; border-radius: 16px; }
  .tool-head { margin-top: 14px; flex-direction: column; }
  .head-actions { width: 100%; flex-wrap: wrap; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .panel-main { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }
/* final 1:1 pass against captured reference tool page */
.app { grid-template-columns: 260px minmax(0, 1fr) !important; }
.logpanel { display: none !important; }
.sidebar { padding-bottom: 190px; }
.main { padding-right: 20px !important; }
.topbar { justify-content: flex-end; }
.top-actions { width: auto; }
.legacy-switch { display: inline-flex; align-items: center; gap: 4px; }
.legacy-switch::before { content: "⇆"; font-size: 12px; opacity: .75; }
.percent-badge { background: #f1fffa; border: 1px solid #d9eee8; color: #25252c; }
.icon-btn { background: #f0f1f4; color: #282a31; position: relative; overflow: hidden; }
.top-icon { display: inline-grid; place-items: center; font-size: 18px; line-height: 1; }
#walletState { display: none !important; }
#connect { background: #15161b; min-height: 36px; }
.slerf-tool-card {
  max-width: 980px;
  margin-left: 20px;
  margin-right: auto;
  margin-top: 20px;
  border-radius: 22px;
}
.launch-create-page .slerf-card-head,
.launch-create-page .slerf-card-body {
  padding-left: 60px;
  padding-right: 40px;
}
.launch-create-page .slerf-card-head { padding-top: 17px; padding-bottom: 18px; }
.launch-create-page .slerf-card-head h1 { font-size: 24px; margin-bottom: 6px; }
.launch-create-page .slerf-card-head p { font-size: 12px; max-width: 880px; }
.launch-create-page .slerf-card-body { padding-top: 28px; }
.slerf-wallet-import-grid { grid-template-columns: 1fr 1fr 1fr !important; }
.slerf-wallet-import-grid label { display: grid; }
.slerf-wallet-import-grid label + label { border-left: 1px solid #ededf1; padding-left: 12px; }
.token-info-section .slerf-two-col { grid-template-columns: 1fr 1fr !important; gap: 20px; }
.slerf-two-col.align-start { grid-template-columns: 1fr 1fr !important; }
.slerf-upload { grid-template-columns: auto 1fr !important; }
.income-choice { grid-template-columns: repeat(3, 1fr) !important; }
.income-choice.income-choice-single { grid-template-columns: 1fr !important; }
@media (min-width: 761px) and (max-width: 1180px) {
  .top-actions { gap: 8px; }
  .slerf-tool-card { max-width: calc(100vw - 300px); }
  .launch-create-page .slerf-card-head,
  .launch-create-page .slerf-card-body { padding-left: 40px; padding-right: 28px; }
}
/* Slerf home page */
.slerf-home { max-width: 1040px; margin: 0 auto 60px; padding: 0 0 30px; }
.old-version-tip { min-height: 34px; display: flex; align-items: center; margin: 0 0 10px; color: #727783; font-size: 13px; }
.old-version-tip a { color: #6f45ff; text-decoration: none; font-weight: 700; margin-left: 4px; }
.home-hero { min-height: 250px; border-radius: 22px; background: radial-gradient(circle at 18% 15%, rgba(255,198,62,.20), transparent 26%), radial-gradient(circle at 88% 20%, rgba(111,69,255,.18), transparent 28%), linear-gradient(135deg, #fbfbff, #f1f1f7); border: 1px solid #ededf2; padding: 26px; position: relative; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; inset: auto -50px -92px auto; width: 340px; height: 230px; border-radius: 50%; background: rgba(111,69,255,.09); filter: blur(4px); }
.chain-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.chain-tabs a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; color: #626775; border: 1px solid #eeeeF3; font-weight: 700; font-size: 12px; }
.chain-tabs a.active { background: #1a1b20; color: #fff; border-color: #1a1b20; }
.home-chain-card { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 26px; position: relative; z-index: 1; }
.big-chain { height: 118px; display: grid; place-items: center; border-radius: 24px; background: #fff; border: 1px solid #ececf1; box-shadow: 0 18px 44px rgba(16,17,22,.08); }
.big-chain span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #111217; color: #ffd15a; margin-bottom: 6px; }
.big-chain b { font-size: 22px; }
.mini-chains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-chains span { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.82); color: #555b68; font-weight: 700; }
.tool-showcase { margin-top: 34px; }
.showcase-title { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 14px; }
.showcase-title h3 { margin: 0; font-size: 24px; color: #202128; }
.showcase-title span { color: #b3b6bf; font-size: 22px; }
.showcase-title p { margin: 0; color: #767b87; font-size: 14px; }
.home-card-grid { display: grid; gap: 16px; }
.home-card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-tool-card, .wide-trade-card { display: grid; align-content: start; gap: 9px; text-align: left; min-height: 132px; padding: 18px; border-radius: 18px; background: #fff; color: #25262d; border: 1px solid #ececf1; box-shadow: 0 14px 34px rgba(16,17,22,.045); }
.home-tool-card:hover, .wide-trade-card:hover { background: #fff; border-color: #ded8ff; color: #25262d; transform: translateY(-1px); }
.home-tool-card b, .wide-trade-card b { font-size: 17px; }
.home-tool-card span, .wide-trade-card span { color: #727783; font-weight: 500; line-height: 1.6; }
.wide-trade-card { width: 100%; margin-top: 16px; min-height: 112px; grid-template-columns: auto auto 1fr; align-items: center; }
.wide-trade-card em { justify-self: start; padding: 4px 10px; border-radius: 999px; background: #f0ecff; color: #6842ec; font-style: normal; font-size: 12px; }
.home-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.home-benefits div { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #ececf1; }
.home-benefits b { display: block; font-size: 18px; margin-bottom: 8px; }
.home-benefits span { color: #727783; }
.slerf-home footer { margin: 30px 0 0; color: #9ca0aa; text-align: center; }
@media (max-width: 900px) { .home-chain-card, .home-card-grid.two, .home-card-grid.four, .home-benefits { grid-template-columns: 1fr; } .wide-trade-card { grid-template-columns: 1fr; } }
/* shared Ant-like Slerf pages for batch, bundle, anti-MEV, new-buy and active trade */
.generic-tool-card .slerf-card-head h1 { margin-bottom: 0; }
.generic-tool-card .original-note,
.generic-tool-card .bsc-only { border-radius: 10px; }
.slerf-side-note { margin-top: 18px; padding: 16px; border: 1px solid #eeeef3; border-radius: 12px; background: #fbfbfd; }
.dex-page .slerf-card-head p { max-width: 820px; }
.slerf-stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.slerf-stat-row div { min-height: 76px; padding: 14px 16px; border: 1px solid #eeeef3; border-radius: 12px; background: #fbfbfd; }
.slerf-stat-row b { display: block; font-size: 22px; color: #272932; margin-bottom: 5px; }
.slerf-stat-row span { color: #777c88; font-size: 13px; }
.slerf-action-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.slerf-action-line button { min-height: 36px; background: #fff; color: #363944; border: 1px solid #e6e6ed; border-radius: 8px; }
.slerf-segmented { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.slerf-segmented button { min-height: 36px; background: #f4f4f7; color: #545965; border: 0; border-radius: 9px; }
.slerf-segmented button.active { background: #1b1c22; color: #fff; }
.slerf-check-line { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 0 0; color: #5b606c; }
.slerf-check-line label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.slerf-check-line input { width: 16px; min-height: 16px; }
.slerf-stop { display: block; width: 140px; margin: 10px auto 0; min-height: 38px; border-radius: 10px; background: #fff; border: 1px solid #e7e7ee; color: #515662; }
.slerf-stop:hover { background: #f7f7fa; color: #25262d; }
.slerf-log-empty { min-height: 96px; display: grid; place-items: center; border: 1px dashed #e3e3ea; border-radius: 12px; color: #9da1ab; background: #fbfbfd; }
.bundle-page .slerf-submit,
.batch-swap-page .slerf-submit,
.anti-mev-page .slerf-submit,
.new-buy-page .slerf-submit,
.active-page .slerf-submit { margin-top: 18px; }
.bundle-page .form-section.flap-section { background: #fff; border: 1px solid #eeeef3; border-radius: 12px; }
.bundle-page .form-section.flap-section h2 { margin: 0 0 14px; font-size: 15px; }
.bundle-page .flap-preview:empty { display: none; }
.bundle-page .flap-checkgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.bundle-page .switch-row { padding: 10px; border: 1px solid #eeeef3; border-radius: 10px; background: #fbfbfd; }
@media (max-width: 900px) {
  .slerf-stat-row,
  .bundle-page .flap-checkgrid { grid-template-columns: 1fr; }
}


/* closer SlerfTools inner pages */
.slerf-tool-card.dex-page {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  border-color: #eef0f4;
}
.dex-page .slerf-card-head { padding: 16px 32px 14px; }
.dex-page .slerf-card-body { padding: 18px 32px 30px; }
.slerf-page-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.slerf-title-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.slerf-title-left h1 { margin: 0; font-size: 22px; font-weight: 800; color: #202128; white-space: nowrap; }
.slerf-chain-select { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid #e8e9ef; color: #282a31; box-shadow: none; }
.slerf-chain-select span:first-child { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #121318; color: #ffd15a; font-size: 10px; }
.slerf-help-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.slerf-help-actions .safe-tip,
.slerf-help-actions a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid #a9ead0; background: #f4fffb; color: #18a46f; text-decoration: none; font-size: 12px; font-weight: 700; }
.dex-page .slerf-card-head > p { margin: 0; color: #737987; font-size: 12px; line-height: 1.7; }
.slerf-workbench-body { padding-top: 14px; }
.slerf-workbench-grid { display: grid; grid-template-columns: 430px minmax(0, 1fr); min-height: 420px; border: 1px solid #f0f0f4; border-radius: 12px; overflow: hidden; }
.slerf-work-left { border-right: 1px solid #f0f0f4; background: #fff; }
.slerf-work-right { background: #fff; position: relative; min-height: 410px; }
.sub-card { margin: 0; padding: 20px 20px 18px; border-bottom: 1px solid #f0f0f4; }
.sub-card h2,
.slerf-linear-page .slerf-section h2 { margin: 0 0 12px; font-size: 14px; color: #282a31; font-weight: 800; }
.sub-card label,
.slerf-linear-page label { color: #4f5562; font-size: 12px; }
.sub-card select,
.sub-card input,
.slerf-linear-page input,
.slerf-linear-page select,
.slerf-linear-page textarea { background: #f0f0f4; border: 1px solid transparent; min-height: 38px; border-radius: 8px; font-size: 12px; color: #282a31; }
.sub-card .slerf-action-line { margin: 8px 0 10px; }
.icon-more { width: 38px; padding: 0; font-size: 20px; }
.wallet-toolbar { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid #f0f0f4; }
.wallet-toolbar button { min-height: 36px; border-radius: 8px; }
.wallet-toolbar button:first-child { background: #15161b; color: #fff; }
.wallet-toolbar button:disabled { background: #f0f0f4; color: #b9bcc5; }
.empty-wallet-state { position: absolute; inset: 52px 0 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #9da2ad; }
.empty-wallet-state div { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #fbfbfd; border: 1px solid #eceef4; font-size: 24px; }
.batch-wallet-collapse { margin-top: 18px; }
.token-swap-strip { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: start; gap: 8px; margin-top: 10px; }
.token-swap-strip label { margin: 0; }
.token-picker { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: #f0f0f4; color: #2f323b; }
.token-picker b { font-size: 13px; }
.token-picker em { color: #747a86; font-style: normal; font-size: 12px; }
.token-picker input { flex: 1; min-height: 36px; padding: 0; background: transparent !important; border: 0 !important; }
.token-picker.muted { color: #8d929e; }
.swap-mark { align-self: center; width: 28px; height: 28px; display: grid; place-items: center; color: #9aa0aa; }
.token-swap-strip small { display: block; margin-top: 5px; color: #626874; font-size: 12px; font-weight: 700; }
.dex-pills { display: inline-flex; gap: 8px; margin: 0 10px 10px 0; }
.dex-pills button, .dex-pills span { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; background: #f3f3f7; color: #3d414b; border: 1px solid transparent; }
.dex-pills button.active, .dex-pills span.active { background: #1d1835; color: #fff; }
.slerf-stat-row.compact { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.slerf-stat-row.three { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.slerf-stat-row.compact div,
.slerf-stat-row.three div { min-height: 62px; background: #fbfbfd; }
.slerf-stat-row.compact b,
.slerf-stat-row.three b { font-size: 16px; }
.radio-like { gap: 0; background: #f0f0f4; display: inline-flex; padding: 3px; border-radius: 9px; }
.radio-like button, .radio-like span { margin: 0; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 7px; background: transparent; color: #747985; border: 0; font-size: 12px; }
.radio-like button.active, .radio-like span.active { background: #15161b; color: #fff; }
.radio-like button:disabled { opacity: .45; }
.section-mini-label { display: block; margin: 10px 0 6px; color: #4a4f5c; font-size: 12px; font-weight: 700; }
.section-mini-label b { color: #d7a51b; }
.slerf-two-col.tight { grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 0; }
.trade-log-section { border-top: 1px solid #f0f0f4; padding-top: 14px; }
.slerf-log-head { display: flex; align-items: center; gap: 12px; }
.slerf-log-head h2 { margin: 0; font-size: 14px; }
.slerf-log-head input { max-width: 290px; min-height: 34px; }
.slerf-log-head span { margin-left: auto; color: #61c289; font-size: 12px; }
.slerf-linear-page .slerf-card-body { padding-left: 32px; padding-right: 32px; }
.slerf-linear-page .slerf-section { margin-bottom: 22px; }
.slerf-linear-page .slerf-buy-table { min-width: 760px; background: #fbfbfd; border-radius: 10px; overflow: hidden; }
.slerf-linear-page .slerf-buy-table th { background: #f7f7fa; }
.split-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid #f0f0f4; padding-top: 22px; }
.toggle-line.slim { justify-content: flex-start; margin-bottom: 8px; color: #5e6470; }
.cost-row .slerf-stat-row div,
.bundle-metrics .slerf-stat-row div { background: #fbfbfd; }
.slerf-alert.success { border-color: #e1f4eb; background: #fbfffd; }
.slerf-alert.success p { color: #3a8a69; }
.bundle-page .advanced-sort { margin-top: 12px; }
.bundle-page .form-section.flap-section { margin-top: 18px; padding: 16px; }
.bundle-page .slerf-buy-table th:nth-child(5),
.bundle-page .slerf-buy-table td:nth-child(5) { min-width: 260px; }
@media (max-width: 1050px) {
  .slerf-workbench-grid { grid-template-columns: 1fr; }
  .slerf-work-left { border-right: 0; }
  .slerf-work-right { min-height: 220px; border-top: 1px solid #f0f0f4; }
  .empty-wallet-state { position: relative; inset: auto; min-height: 180px; }
  .split-settings, .token-swap-strip { grid-template-columns: 1fr; }
  .swap-mark { display: none; }
}
@media (max-width: 760px) {
  .dex-page .slerf-card-head, .dex-page .slerf-card-body, .slerf-linear-page .slerf-card-body { padding-left: 18px; padding-right: 18px; }
  .slerf-page-title { align-items: flex-start; flex-direction: column; }
  .slerf-title-left { flex-wrap: wrap; }
  .slerf-stat-row.three, .slerf-stat-row.compact { grid-template-columns: 1fr; }
}


/* fidelity fixes */
.token-swap-strip .visually-hidden-input { display: none !important; }
.token-swap-strip > input[type="hidden"] { display: none !important; }
.slerf-buy-table th { white-space: nowrap; }
.slerf-buy-table th:nth-child(5) { min-width: 170px; }
.slerf-workbench-page .batch-wallet-collapse { display: none; }
.slerf-title-left { min-width: 0; }
.slerf-help-actions { margin-left: auto; }
.icon-btn::before { pointer-events: none; }


/* new-buy and active-trade closer pages */
.slerf-new-main-wallet { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; background: #fbfbfd; border-radius: 10px; overflow: hidden; border: 1px solid #f0f0f4; }
.slerf-new-main-wallet .cell { min-height: 58px; padding: 10px 12px; border-right: 1px solid #f0f0f4; display: grid; align-content: center; gap: 5px; }
.slerf-new-main-wallet .cell:last-child { border-right: 0; }
.slerf-new-main-wallet b { color: #555b67; font-size: 12px; }
.slerf-new-main-wallet span { text-align: center; color: #777d89; }
.slerf-new-main-wallet input { background: #fff; }
.newbuy-settings .settings-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; align-items: start; }
.newbuy-settings .settings-row > div > span { display: block; color: #4b515e; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.newbuy-settings .radio-like { width: 100%; display: flex; }
.newbuy-settings .radio-like button, .newbuy-settings .radio-like span { flex: 1; }
.two-submit { display: flex; justify-content: center; gap: 12px; }
.two-submit .slerf-submit { margin-left: 0; margin-right: 0; }
.slerf-submit.disabled { opacity: .45; pointer-events: none; }
.active-wallet-box { border: 1px solid #f0f0f4; border-radius: 12px; overflow: hidden; background: #fff; }
.active-wallet-box .wallet-toolbar { justify-content: flex-end; }
.active-wallet-box .wallet-toolbar span { margin-right: auto; color: #4b515e; font-weight: 700; }
.active-wallet-box table { margin: 0; border: 0; }
.active-wallet-box th { background: #fff; }
.active-wallet-box td { height: 76px; text-align: center; color: #9aa0aa; }
.active-metrics { border-top: 1px solid #f0f0f4; padding: 12px; background: #fbfbfd; }
.active-metrics .slerf-stat-row.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.split-settings p { margin: 0 0 8px; color: #5b606b; font-size: 12px; }
.active-exec-settings { border-top: 1px solid #f0f0f4; padding-top: 18px; }
.active-exec-settings h2 { display: flex; align-items: center; gap: 10px; }
.exec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.exec-grid span { min-height: 56px; padding: 12px; border-radius: 10px; background: #fbfbfd; color: #747a86; display: grid; gap: 5px; }
.exec-grid b { color: #24262e; }
@media (max-width: 950px) {
  .slerf-new-main-wallet,
  .newbuy-settings .settings-row,
  .exec-grid,
  .active-metrics .slerf-stat-row.two { grid-template-columns: 1fr; }
}

/* 1:1 SlerfTools pass: compact Ant-like public BSC app */
:root {
  --bg: #f8f8fa;
  --surface: #ffffff;
  --text: #202128;
  --muted: #858b99;
  --line: #eef0f4;
  --soft: #f3f3f6;
  --accent: #7b4dff;
  --accent-strong: #6a3df2;
  --sidebar-bg: #171920;
  --sidebar-panel: #20222b;
  --sidebar-text: #f7f8fb;
  --sidebar-muted: #aeb4c2;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html, body { background: var(--bg); }
body { color: var(--text); font-size: 14px; }
.app.slerf-shell { grid-template-columns: 260px minmax(0, 1fr) !important; background: var(--bg); }
.sidebar { background: #171920 !important; border-right: 0 !important; color: var(--sidebar-text); padding-bottom: 170px !important; }
.brand { height: 60px !important; padding: 0 22px !important; gap: 12px; background: #171920 !important; border-bottom: 1px solid rgba(255,255,255,.045) !important; }
.menu-fold { color: #f2f3f7 !important; font-size: 18px !important; }
.mark { width: 30px !important; height: 30px !important; border-radius: 10px !important; background: #090a0d !important; color: #ffd527 !important; border: 0 !important; box-shadow: none !important; }
.brand h2 { font-size: 16px !important; font-weight: 800 !important; }
#nav { padding: 24px 0 22px !important; }
.nav-title { min-height: 54px !important; grid-template-columns: 26px 1fr 16px !important; padding: 0 24px !important; gap: 9px !important; color: #f4f5fa !important; }
.nav-title.direct { grid-template-columns: 26px 1fr !important; }
.nav-title strong { font-size: 14px !important; font-weight: 650 !important; }
.nav-title em { display: none !important; }
.nav-icon { width: 20px !important; height: 20px !important; border-radius: 7px !important; background: #2a2d37 !important; color: #d9deea !important; border: 1px solid rgba(255,255,255,.08) !important; font-family: iconfont, sans-serif !important; }
.nav-group.has-active > .nav-title .nav-icon, .nav-title.direct.active .nav-icon { background: rgba(123,77,255,.22) !important; color: #fff !important; }
.chevron { color: rgba(255,255,255,.35) !important; }
.nav-children { padding: 0 0 8px !important; }
.nav-item { min-height: 42px !important; grid-template-columns: 22px minmax(0, 1fr) auto !important; padding: 0 18px 0 50px !important; gap: 9px !important; color: #f4f5fa !important; font-size: 14px !important; }
.nav-item::before { display: none !important; }
.nav-item.active { background: linear-gradient(90deg, rgba(123,77,255,.58), rgba(123,77,255,.30)) !important; box-shadow: inset 3px 0 0 #8d6cff !important; color: #fff !important; }
.nav-item:hover { background: rgba(255,255,255,.045) !important; }
.nav-item.blocked { opacity: .42 !important; }
.side-support { left: 12px !important; bottom: 12px !important; width: 236px !important; padding: 12px !important; background: #1b1e27 !important; border-color: rgba(255,255,255,.05) !important; border-radius: 12px !important; box-shadow: none !important; }
.support-card { background: #222530 !important; border-radius: 10px !important; }
.support-card span { background: #2f284c !important; color: #b69dff !important; }
.social-row span { background: #242833 !important; color: #e8eaf1; }
.main { height: 100dvh !important; background: #f8f8fa !important; padding: 0 20px 60px !important; }
.topbar { height: 60px !important; min-height: 60px !important; margin: 0 -20px 20px !important; padding: 0 20px !important; background: rgba(255,255,255,.96) !important; border-bottom: 1px solid #eef0f4 !important; box-shadow: none !important; }
.top-actions { width: auto !important; gap: 12px !important; }
.legacy-switch { color: #22242a !important; font-size: 16px !important; }
.percent-badge { width: 42px !important; height: 42px !important; font-size: 22px !important; background: #fbffff !important; border: 2px solid transparent !important; box-shadow: 0 0 0 2px #7eebff, 0 0 0 4px #dbceff !important; }
.chain-pill, .icon-btn { min-height: 42px !important; height: 42px !important; background: #f1f1f5 !important; border: 0 !important; color: #202128 !important; }
.passive-icon {
  width: 42px;
  padding: 0;
  border-radius: 999px;
  cursor: default;
  user-select: none;
}
.chain-pill { padding: 0 16px !important; border-radius: 999px !important; }
.chain-logo { background: #08090c !important; color: #ffd527 !important; }
#connect { height: 42px !important; min-width: 102px !important; background: #171920 !important; border-radius: 999px !important; font-size: 13px !important; }
.logpanel { display: none !important; }
.float-service { right: 17px !important; bottom: 95px !important; width: 50px !important; min-height: 50px !important; background: #7c4dff !important; box-shadow: 0 12px 30px rgba(124,77,255,.35) !important; }
.slerf-tool-card, .slerf-tool-card.dex-page, .exact-page { max-width: 980px !important; margin: 20px auto 64px !important; background: #fff !important; border: 1px solid #e9ebf2 !important; border-radius: 20px !important; box-shadow: none !important; overflow: hidden !important; }
.slerf-tool-card.dex-page { max-width: 980px !important; }
.slerf-card-head { padding: 20px 40px !important; border-bottom: 1px solid #eef0f4 !important; }
.slerf-card-head h1 { margin: 0 0 8px !important; font-size: 22px !important; line-height: 1.25 !important; color: #24262f !important; font-weight: 800 !important; }
.slerf-card-head p { margin: 0 !important; color: #8a91a0 !important; font-size: 12px !important; line-height: 1.65 !important; }
.slerf-card-body { padding: 28px 40px 34px !important; }
.slerf-section, .exact-section { margin: 0 0 24px !important; }
.slerf-section h2, .exact-section h2 { margin: 0 0 14px !important; font-size: 14px !important; color: #3d4250 !important; font-weight: 800 !important; }
.exact-field, .slerf-section label { display: grid; gap: 8px; margin: 12px 0; color: #535967; font-size: 13px; font-weight: 600; }
.exact-field input, .exact-field textarea, .exact-field select, .slerf-section input, .slerf-section textarea, .slerf-section select { min-height: 40px !important; background: #f0f0f4 !important; border: 1px solid transparent !important; border-radius: 8px !important; color: #262933 !important; font-size: 13px !important; }
.exact-field textarea { min-height: 140px; resize: vertical; }
.slerf-two-col { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
.slerf-wallet-import-grid { grid-template-columns: repeat(3, 1fr) !important; background: #f7f7fa !important; border-radius: 10px !important; padding: 12px !important; }
.slerf-wallet-import-grid label { margin: 0 !important; }
.slerf-wallet-import-grid input { background: #fff !important; }
.exact-token-box { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #f0f0f4; border-radius: 8px; }
.exact-token-box b { font-weight: 800; color: #202128; }
.exact-token-box em { color: #6f7685; font-style: normal; font-size: 12px; }
.exact-token-box input { flex: 1; background: transparent !important; padding: 0 !important; min-height: 38px !important; }
.slerf-submit { width: auto !important; min-width: 136px !important; padding: 0 24px !important; margin: 18px auto 10px !important; background: #171920 !important; border-radius: 12px !important; color: #fff !important; }
.secondary, .exact-tabs button, .exact-tabs span, .exact-seg button, .exact-seg span, .slerf-action-line button { background: #f1f1f5 !important; color: #3f4552 !important; border: 1px solid #e7e9ef !important; box-shadow: none !important; }
.exact-tabs, .exact-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.exact-tabs button, .exact-tabs span, .exact-seg button, .exact-seg span { min-height: 34px; display: inline-flex; align-items: center; border-radius: 8px; padding: 0 14px; }
.exact-tabs button.active, .exact-tabs span.active, .exact-seg button.active, .exact-seg span.active { background: #171920 !important; color: #fff !important; border-color: #171920 !important; }
.exact-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.exact-stepper div { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #f7f7fa; color: #767d8c; }
.exact-stepper div.active { color: #171920; background: #f0ecff; }
.exact-stepper b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.exact-tip { margin: 16px 0; padding: 12px 14px; border-radius: 9px; background: #fbfbfd; color: #727988; border: 1px solid #eef0f4; }
.exact-summary { padding: 16px; border-radius: 12px; background: #fbfbfd; border: 1px solid #eef0f4; }
.exact-summary-row { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1fr .7fr; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.exact-summary-row:last-child { border-bottom: 0; }
.exact-summary b { color: #343946; }
.exact-summary span { color: #777f8e; }
.center-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
table { margin-top: 14px !important; border-collapse: separate !important; border-spacing: 0 !important; }
th { background: #fbfbfd !important; color: #5b6270 !important; font-weight: 700 !important; }
th, td { border-bottom: 1px solid #eef0f4 !important; padding: 10px 12px !important; }
.slerf-buy-table { min-width: 840px !important; }
.slerf-buy-table th, .slerf-buy-table td { background: #fff; }
.slerf-buy-table input { background: #fff !important; border: 1px solid #eef0f4 !important; }
.slerf-wallet-tools button { background: transparent !important; border: 0 !important; color: #3f4552 !important; padding: 0 !important; }
.add-wallet-btn { background: #fff !important; border: 1px solid #eef0f4 !important; color: #3f4552 !important; }
.advanced-sort { border: 1px dashed #e5e0f8 !important; background: #fcfbff !important; }
.slerf-output { margin-top: 12px; }
.slerf-output:empty { display: none; }
.debug-only { display: none !important; }
.slerf-alert { background: #fff !important; border: 1px solid #e7e9ef !important; border-radius: 8px !important; }
.slerf-alert p { color: #606878 !important; }
.slerf-alert.success { background: #fbfffd !important; border-color: #def1e8 !important; }
.fee-line { text-align: center; color: #7a8291 !important; font-size: 13px !important; margin: 8px 0 0; }
.slerf-page-title { margin-bottom: 6px !important; }
.slerf-title-left h1 { font-size: 22px !important; }
.slerf-chain-select, .slerf-help-actions { display: none !important; }
.slerf-workbench-grid { grid-template-columns: minmax(0, 1fr) 380px !important; border: 0 !important; min-height: 420px; gap: 20px; overflow: visible !important; }
.slerf-work-left, .slerf-work-right { border: 1px solid #eef0f4 !important; border-radius: 12px; overflow: hidden; }
.sub-card { padding: 18px !important; }
.overview-card { display: none !important; }
.wallet-toolbar { border-bottom: 1px solid #eef0f4 !important; background: #fff; }
.wallet-toolbar button:first-child { background: #171920 !important; color: #fff !important; }
.empty-wallet-state.static { position: relative !important; inset: auto !important; min-height: 190px; border: 1px dashed #eef0f4; border-radius: 12px; margin: 12px 0; }
.token-swap-strip { grid-template-columns: 1fr 28px 1fr !important; }
.radio-like { background: #f0f0f4 !important; padding: 3px !important; gap: 0 !important; }
.radio-like button, .radio-like span { border: 0 !important; background: transparent !important; }
.radio-like button.active, .radio-like span.active { background: #171920 !important; color: #fff !important; }
.slerf-stat-row div { box-shadow: none !important; border-color: #eef0f4 !important; background: #fbfbfd !important; }
.split-settings { border-top: 1px solid #eef0f4 !important; }
.active-wallet-box { border-color: #eef0f4 !important; }
.exec-grid span { background: #fbfbfd !important; }
.launch-create-page .slerf-card-head, .launch-create-page .slerf-card-body { padding-left: 40px !important; padding-right: 40px !important; }
.income-choice button, .income-choice > div { box-shadow: none !important; }
.exact-home-hero { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 18% 20%, rgba(255,211,39,.30), transparent 25%), radial-gradient(circle at 80% 10%, rgba(124,77,255,.24), transparent 28%), linear-gradient(135deg, #fcfcff, #f1f2f8); }
.hero-copy h1 { margin: 0 0 34px; max-width: 590px; font-size: 24px; color: #1f222b; }
.slerf-home { max-width: 1040px !important; }
.home-tool-card, .wide-trade-card, .home-benefits div { box-shadow: none !important; }
.wide-trade-card strong { justify-self: start; min-height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #171920; color: #fff; font-size: 12px; }
.disabled-like-original { min-height: 520px; }
.empty-disabled-page { min-height: 360px; }
.liquidity-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contract-line { color: #5d6575; word-break: break-all; }
@media (max-width: 1050px) {
  .app.slerf-shell { grid-template-columns: 230px minmax(0, 1fr) !important; }
  .slerf-workbench-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .app.slerf-shell { grid-template-columns: 1fr !important; }
  .sidebar { position: relative; height: auto; max-height: 46dvh; }
  .side-support { display: none !important; }
  .slerf-card-head, .slerf-card-body, .launch-create-page .slerf-card-head, .launch-create-page .slerf-card-body { padding-left: 18px !important; padding-right: 18px !important; }
  .slerf-two-col, .liquidity-pair-grid, .token-swap-strip, .exact-stepper { grid-template-columns: 1fr !important; }
}
.nav-icon { color: #d9deea !important; font-size: 17px !important; font-family: "iconfont" !important; line-height: 1 !important; }
.nav-child-icon { color: #d9deea !important; font-size: 16px !important; font-family: "iconfont" !important; line-height: 1 !important; }
.nav-title strong { margin-left: 0; }


/* user requested removal: support cards, old/percent topbar, floating service */
.side-support,
.legacy-switch,
.percent-badge,
.float-service {
  display: none !important;
}
.official-badge {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ded8ff;
  background: #f6f3ff;
  color: #443076;
}
.official-badge b { font-size: 13px; color: #5a35df; }
.official-badge span { font-size: 12px; word-break: break-all; }
.center-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.title-status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.title-status-line h1 { flex: 0 1 auto; }
.closure-badge,
.closure-strip b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.closure-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e4e5ee;
  background: #fafafd;
  color: #596070;
  font-size: 12px;
  line-height: 1.55;
}
.closure-strip span { min-width: 0; }
.closure-badge.pass-mainnet-tx,
.closure-strip.pass-mainnet-tx b { background: #e9fff6; color: #087249; }
.closure-strip.pass-mainnet-tx { border-color: #bdebd9; background: #f5fffb; }
.closure-badge.pass-read-chain,
.closure-strip.pass-read-chain b { background: #eef4ff; color: #3453c3; }
.closure-strip.pass-read-chain { border-color: #d8e1ff; background: #f8faff; }
.closure-badge.pass-local,
.closure-strip.pass-local b { background: #f0ecff; color: #5a35df; }
.closure-strip.pass-local { border-color: #ded8ff; background: #fbf9ff; }
.closure-badge.entry-wired,
.closure-strip.entry-wired b { background: #fff4df; color: #94640d; }
.closure-strip.entry-wired { border-color: #f3d7a8; background: #fffaf0; }
.closure-badge.blocked-original-disabled,
.closure-strip.blocked-original-disabled b { background: #f1f2f6; color: #697080; }
.closure-badge.blocked-no-relay,
.closure-badge.blocked-needs-official-signature,
.closure-badge.blocked-cost,
.closure-badge.blocked-needs-contract,
.closure-strip.blocked-no-relay b,
.closure-strip.blocked-needs-official-signature b,
.closure-strip.blocked-cost b,
.closure-strip.blocked-needs-contract b { background: #fff4df; color: #94640d; }
.closure-strip.blocked-no-relay,
.closure-strip.blocked-needs-official-signature,
.closure-strip.blocked-cost,
.closure-strip.blocked-needs-contract { border-color: #f3d7a8; background: #fffaf0; }
.flap-salt-box {
  margin: 10px 0 0;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px dashed #f0b96e;
  border-radius: 10px;
  background: #fff9ef;
  color: #8a5a13;
  font-size: 12px;
}
.flap-salt-box button { min-height: 34px; }
.flap-salt-box span { flex: 1 1 260px; }
.flap-dev-curve-create {
  padding: 16px;
  border: 1px solid #e4e0f7;
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(111,69,255,.12), transparent 32%),
    #fbfaff;
}
.flap-dev-curve-create .switch-title p {
  margin: 4px 0 0;
  color: #6a6f7d;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
}
.flap-real-exec-note,
.flap-live-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #f2c983;
  border-radius: 12px;
  background: #fff8ea;
  color: #7c510c;
  font-size: 12px;
  line-height: 1.5;
}
.flap-real-exec-note b,
.flap-live-warning b {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe7ba;
  color: #8a5708;
}
.flap-real-exec-note span,
.flap-live-warning span { color: #6f5a31; }
.secondary.danger {
  border-color: #f2c983 !important;
  background: #fff8ea !important;
  color: #8a5708 !important;
}
.curve-actions button + button { margin-left: 0; }
.curve-table code {
  border: 0;
  background: transparent;
  padding: 0;
  word-break: break-all;
}
.curve-table th:nth-child(1),
.curve-table td:nth-child(1) { width: 54px; text-align: center; }
.curve-table th:nth-child(3),
.curve-table td:nth-child(3),
.curve-table th:nth-child(4),
.curve-table td:nth-child(4) {
  white-space: nowrap;
}
.local-api-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-color: #bfded7;
  background: #f3fffb;
}
.local-api-panel > div {
  flex: 1 1 280px;
  display: grid;
  gap: 3px;
}
.local-api-panel b { color: #087249; font-size: 13px; }
.local-api-panel span { color: #5a6f6b; font-size: 12px; line-height: 1.5; }
.local-api-panel button {
  min-height: 36px;
  border-color: #9ad5c6;
  background: #ffffff;
  color: #087249;
}
.local-api-panel button:disabled { opacity: .65; cursor: wait; }
.micro-home-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}
.micro-home-status > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dbe9e5;
  border-radius: 14px;
  background: #fbfffd;
}
.micro-home-status b,
.micro-home-status span,
.micro-home-status code {
  display: block;
  overflow-wrap: anywhere;
}
.micro-home-status b { color: #087249; font-size: 12px; }
.micro-home-status span,
.micro-home-status code { margin-top: 6px; color: #4e5d5a; font-size: 12px; }
@media (max-width: 980px) {
  .micro-home-status { grid-template-columns: 1fr; }
  .flap-create-mode-picker { grid-template-columns: 1fr; }
}

.real-tx-bar {
  margin: 18px 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid rgba(35, 91, 74, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(237, 248, 242, 0.92), rgba(246, 242, 229, 0.78));
  box-shadow: 0 12px 32px rgba(20, 43, 32, 0.08);
}
.real-tx-bar.warning {
  background: linear-gradient(135deg, rgba(255, 244, 224, 0.94), rgba(255, 236, 218, 0.72));
  border-color: rgba(182, 103, 20, 0.18);
}
.real-tx-bar b {
  color: #173e30;
  font-size: 14px;
  white-space: nowrap;
}
.real-tx-bar span {
  flex: 1 1 260px;
  color: rgba(28, 45, 38, 0.72);
  font-size: 13px;
  line-height: 1.55;
}
.real-tx-bar button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
}
.real-tx-bar .slerf-submit,
.real-tx-bar button.slerf-submit {
  background: #1f6f55;
  color: #f7f3e8;
}
.real-tx-bar .secondary,
.real-tx-bar button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #1d4638;
  border: 1px solid rgba(31, 111, 85, 0.18);
}
.chain-tabs button, .chain-tabs span { min-height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; color: #626775; border: 1px solid #eeeeF3; font-weight: 700; font-size: 12px; }
.chain-tabs button.active, .chain-tabs span.active { background: #1a1b20; color: #fff; border-color: #1a1b20; }
.readonly-options button[disabled], .readonly-options span, .dex-pills button[disabled], .dex-pills span, .income-choice button[disabled], .income-choice > div:not(.active) { opacity: .62; }
.muted-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 8px; padding: 0 14px; opacity: .62; }
.muted-switch { pointer-events: none; opacity: .55; }
.readonly-mode-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f7f7fb; border: 1px solid #e8e9ef; color: #4a5060; margin: 10px 0 14px; }
.readonly-mode-note b { color: #191b22; white-space: nowrap; }
.readonly-mode-note span { line-height: 1.55; }

/* 20260609 all-tools layout unification: only /public/my-tools, launchpad untouched */
:root {
  --tool-bg: #f8f8fa;
  --tool-card: #ffffff;
  --tool-section: #fbfbfd;
  --tool-section-strong: #f6f7fb;
  --tool-line: #e8eaf1;
  --tool-line-soft: #eff1f6;
  --tool-text: #20222a;
  --tool-muted: #6f7684;
  --tool-faint: #9aa1ad;
  --tool-accent: #7b4dff;
  --tool-accent-soft: #f4f0ff;
  --tool-green: #3E5FA8;
  --tool-warn: #8a5708;
}
.main { background: var(--tool-bg) !important; }
.slerf-tool-card,
.slerf-tool-card.dex-page,
.exact-page {
  max-width: 1040px !important;
  border: 1px solid var(--tool-line) !important;
  border-radius: 22px !important;
  background: var(--tool-card) !important;
  box-shadow: 0 18px 48px rgba(25, 27, 36, .045) !important;
}
.launch-create-page,
.fourmeme-openfour-page { max-width: 1040px !important; }
.slerf-card-head {
  padding: 24px 42px 20px !important;
  border-bottom: 1px solid var(--tool-line-soft) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%) !important;
}
.slerf-card-head h1,
.slerf-title-left h1 {
  margin-bottom: 8px !important;
  color: var(--tool-text) !important;
  font-size: 24px !important;
  line-height: 1.22 !important;
  font-weight: 850 !important;
  letter-spacing: -.02em !important;
}
.slerf-card-head p {
  max-width: 88ch !important;
  color: #747b8a !important;
  font-size: 13px !important;
  line-height: 1.72 !important;
}
.slerf-card-body { padding: 30px 42px 38px !important; }
.slerf-section,
.exact-section {
  margin: 0 0 18px !important;
  padding: 18px !important;
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 16px !important;
  background: var(--tool-section) !important;
}
.slerf-section:last-child,
.exact-section:last-child { margin-bottom: 0 !important; }
.slerf-section h2,
.slerf-section h3,
.slerf-section h4,
.exact-section h2,
.exact-section h3,
.exact-section h4 {
  margin: 0 0 14px !important;
  color: #303542 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
}
.slerf-section h2,
.exact-section h2 { font-size: 15px !important; }
.slerf-section h3,
.slerf-section h4 { font-size: 15px !important; }
.slerf-two-col,
.form-grid,
.form-row,
.liquidity-pair-grid {
  gap: 16px 18px !important;
}
.exact-field,
.slerf-section label,
.sub-card label,
.slerf-linear-page label {
  color: #4d5564 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.exact-field input,
.exact-field textarea,
.exact-field select,
.slerf-section input,
.slerf-section textarea,
.slerf-section select,
.sub-card input,
.sub-card select,
.slerf-linear-page input,
.slerf-linear-page select,
.slerf-linear-page textarea {
  min-height: 42px !important;
  border: 1px solid var(--tool-line) !important;
  border-radius: 11px !important;
  background: #ffffff !important;
  color: #252936 !important;
  font-size: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
}
.exact-field textarea,
.slerf-section textarea { min-height: 136px !important; resize: vertical; }
.suffix-input,
.paste-input,
.amount-cell,
.exact-token-box,
.token-picker {
  min-height: 42px !important;
  overflow: hidden !important;
  border: 1px solid var(--tool-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.suffix-input input,
.paste-input input,
.amount-cell input,
.exact-token-box input,
.token-picker input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.suffix-input b,
.token-picker em,
.exact-token-box em { color: var(--tool-muted) !important; }
.slerf-upload,
.flap-upload-box {
  border: 1px dashed #dfe2ea !important;
  border-radius: 16px !important;
  background: #ffffff !important;
}
.slerf-upload button,
.flap-upload-box .flap-upload-button {
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 14px !important;
  background: var(--tool-section-strong) !important;
  color: #626b7a !important;
}
.slerf-wallet-import-grid,
.slerf-new-main-wallet,
.income-panel,
.exact-summary,
.openfour-exec-mode,
.openfour-tax-rates label,
.flap-create-mode-section,
.flap-dev-curve-create {
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
.slerf-wallet-import-grid input { background: #fff !important; }
.income-choice button,
.income-choice > div,
.flap-create-mode-picker button,
.slerf-stat-row div,
.metric-grid div,
.mode-card,
.choice-card {
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
.income-choice button.active,
.income-choice > div.active,
.flap-create-mode-picker button.active {
  border-color: #d9d0ff !important;
  background: var(--tool-accent-soft) !important;
}
.openfour-tax-rates,
.flap-tax-percent-grid { gap: 14px 16px !important; }
.flap-tax-percent-grid label,
.flap-tax-address,
.flap-tax-min-share {
  padding: 12px !important;
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 14px !important;
  background: #fff !important;
}
.flap-tax-total,
.openfour-rate-total {
  margin-top: 10px !important;
  padding: 0 2px !important;
  font-weight: 750 !important;
}
.flap-tax-progress {
  height: 7px !important;
  background: #eceef5 !important;
}
.readonly-mode-note,
.slerf-alert,
.official-badge,
.flap-real-exec-note,
.flap-live-warning,
.real-tx-bar,
.exact-tip,
.original-note.slerf-note,
.bsc-only,
.flap-salt-box,
.local-api-panel {
  border-radius: 15px !important;
  box-shadow: none !important;
}
.readonly-mode-note,
.slerf-alert,
.exact-tip,
.original-note.slerf-note,
.bsc-only {
  border-color: var(--tool-line-soft) !important;
  background: #ffffff !important;
}
.readonly-mode-note b,
.original-note.slerf-note b,
.bsc-only b { color: #1e222c !important; }
.official-badge,
.openfour-badge {
  border-color: #ded8ff !important;
  background: linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%) !important;
}
.flap-real-exec-note,
.flap-live-warning {
  border-color: #f0d4a3 !important;
  background: #fffaf0 !important;
}
.real-tx-bar {
  border-color: #cfe9df !important;
  background: linear-gradient(135deg, #f6fffb 0%, #fffdf6 100%) !important;
}
.slerf-table-wrap,
.table-shell { width: 100%; overflow-x: auto; }
table,
.slerf-buy-table,
.slerf-sort-table,
.flap-table,
.curve-table,
.fourmeme-wallet-table {
  overflow: hidden !important;
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 14px !important;
  background: #fff !important;
}
th {
  background: #f6f7fb !important;
  color: #4d5667 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
td { background: #ffffff !important; color: #3c4351 !important; }
tr:hover td { background: #fbfcff !important; }
.slerf-buy-table input,
.slerf-sort-table input,
.flap-table input,
table input {
  background: #fff !important;
  border: 1px solid var(--tool-line) !important;
}
.advanced-sort {
  padding: 13px 14px !important;
  border: 1px solid #e2def8 !important;
  border-radius: 15px !important;
  background: #fcfbff !important;
}
.advanced-sort summary { color: #3f4655 !important; font-weight: 800 !important; }
.wallet-toolbar {
  min-height: 54px !important;
  padding: 0 18px !important;
  border-bottom: 1px solid var(--tool-line-soft) !important;
  background: #ffffff !important;
}
.wallet-toolbar button,
.slerf-action-line button,
.secondary,
.add-wallet-btn,
.exact-tabs span,
.exact-seg span,
.exact-tabs button,
.exact-seg button {
  border-radius: 10px !important;
}
.slerf-workbench-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  border: 0 !important;
  min-height: 0 !important;
}
.slerf-work-left,
.slerf-work-right {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
.slerf-work-left { display: grid; gap: 18px; }
.slerf-work-left .sub-card,
.slerf-work-right {
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 16px !important;
  background: var(--tool-section) !important;
}
.slerf-work-left .sub-card { padding: 18px !important; }
.slerf-work-right { min-height: 220px !important; position: relative; }
.overview-card { display: block !important; }
.batch-wallet-collapse { display: block !important; }
.active-wallet-box,
.trade-log-section {
  border: 1px solid var(--tool-line-soft) !important;
  border-radius: 16px !important;
  background: #fff !important;
  overflow: hidden !important;
}
.active-wallet-box { padding: 0 !important; }
.trade-log-section { padding: 18px !important; }
.split-settings,
.active-exec-settings {
  padding-top: 18px !important;
  border-top: 1px solid var(--tool-line-soft) !important;
}
.slerf-output {
  border-radius: 14px !important;
  border-color: var(--tool-line-soft) !important;
  background: #fbfbfd !important;
}
.center-actions { margin-top: 12px !important; }
.slerf-submit {
  min-height: 44px !important;
  border-radius: 13px !important;
  background: #171920 !important;
  box-shadow: 0 10px 24px rgba(23,25,32,.10) !important;
}
.slerf-submit:hover { background: #252733 !important; }
.secondary.danger,
button.secondary.danger {
  border-color: #f0d4a3 !important;
  background: #fffaf0 !important;
  color: var(--tool-warn) !important;
}
.chain-tabs button,
.chain-tabs span,
.radio-like,
.dex-pills button,
.dex-pills span { border-radius: 999px !important; }
.radio-like button,
.radio-like span { border-radius: 999px !important; }
.exact-stepper div { border-radius: 15px !important; }
.home-tool-card,
.wide-trade-card,
.home-benefits div,
.home-hero {
  border-color: var(--tool-line-soft) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .slerf-card-head,
  .slerf-card-body,
  .launch-create-page .slerf-card-head,
  .launch-create-page .slerf-card-body { padding-left: 20px !important; padding-right: 20px !important; }
  .slerf-section,
  .exact-section { padding: 15px !important; }
  .slerf-two-col,
  .form-grid,
  .liquidity-pair-grid,
  .split-settings,
  .openfour-tax-rates,
  .flap-tax-percent-grid,
  .newbuy-settings .settings-row,
  .slerf-new-main-wallet { grid-template-columns: 1fr !important; }
  .slerf-wallet-import-grid { grid-template-columns: 1fr !important; }
  .slerf-wallet-import-grid label + label { border-left: 0 !important; padding-left: 0 !important; }
}


/* 20260609 upload module harmony: compact avatar/logo upload blocks */
.token-info-section .slerf-two-col.align-start {
  align-items: stretch !important;
}
.token-info-section .slerf-two-col.align-start > label {
  min-height: 0 !important;
}
.token-info-section .slerf-two-col.align-start textarea {
  height: 150px !important;
  min-height: 150px !important;
}
.slerf-upload.flap-upload-box,
.slerf-upload:not(.legacy-upload) {
  min-height: 150px !important;
  height: 150px !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 16px 18px !important;
  overflow: hidden !important;
}
.slerf-upload input[type="file"] {
  display: none !important;
}
.slerf-upload .upload-actions {
  display: contents !important;
}
.slerf-upload button,
.slerf-upload.flap-upload-box .flap-upload-button {
  width: 92px !important;
  min-height: 84px !important;
  height: 84px !important;
  padding: 0 !important;
  justify-self: start !important;
}
.slerf-upload button span,
.slerf-upload.flap-upload-box .flap-upload-button span {
  font-size: 16px !important;
  line-height: 1 !important;
}
.slerf-upload button b,
.slerf-upload.flap-upload-box .flap-upload-button b,
.slerf-upload button {
  font-size: 12px !important;
  font-weight: 800 !important;
}
.flap-upload-copy,
.slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) {
  min-width: 0 !important;
  display: grid !important;
  align-content: center !important;
  gap: 6px !important;
  color: #626b7a !important;
}
.flap-upload-copy p,
.slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p {
  margin: 0 !important;
  color: #626b7a !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
}
.flap-upload-copy p:first-child,
.slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p:first-child {
  color: #2f3542 !important;
  font-weight: 750 !important;
}
@media (max-width: 900px) {
  .token-info-section .slerf-two-col.align-start textarea,
  .slerf-upload.flap-upload-box,
  .slerf-upload:not(.legacy-upload) {
    height: auto !important;
    min-height: 132px !important;
  }
  .slerf-upload.flap-upload-box,
  .slerf-upload:not(.legacy-upload) {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    padding: 14px !important;
  }
  .slerf-upload button,
  .slerf-upload.flap-upload-box .flap-upload-button {
    width: 84px !important;
    min-height: 76px !important;
    height: 76px !important;
  }
}

/* 20260609 launchpad theme sync: match Daoi launchpad colors, keep tool content unchanged */
html.dark,
body.dark {
  color-scheme: dark;
  --bg: #000000;
  --surface: rgba(0, 0, 0, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-warm: rgba(8, 8, 8, 0.95);
  --panel: rgba(0, 0, 0, 0.95);
  --panel2: rgba(255, 255, 255, 0.035);
  --panel3: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.36);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #3B6EFF;
  --accent-strong: #3B6EFF;
  --accent-soft: rgba(62, 95, 168, 0.12);
  --good: #3B6EFF;
  --warn: #FFD641;
  --bad: #FF494A;
  --sidebar-bg: rgba(0, 0, 0, 0.95);
  --sidebar-bg-2: #000000;
  --sidebar-panel: rgba(255, 255, 255, 0.04);
  --sidebar-line: rgba(255, 255, 255, 0.08);
  --sidebar-text: #ffffff;
  --sidebar-muted: rgba(255, 255, 255, 0.6);
  --shadow-card: none;
  --shadow-float: 0 18px 50px rgba(0, 0, 0, .42);
  --tool-bg: #000000;
  --tool-card: rgba(0, 0, 0, 0.95);
  --tool-section: rgba(255, 255, 255, 0.035);
  --tool-section-strong: rgba(62, 95, 168, 0.08);
  --tool-line: rgba(255, 255, 255, 0.08);
  --tool-line-soft: rgba(255, 255, 255, 0.08);
  --tool-text: #ffffff;
  --tool-muted: rgba(255, 255, 255, 0.62);
  --tool-faint: rgba(255, 255, 255, 0.36);
  --tool-accent: #3B6EFF;
  --tool-accent-soft: rgba(62, 95, 168, 0.12);
  --tool-green: #3B6EFF;
  --tool-warn: #FFD641;
}

html.light,
body.light {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-warm: #ffffff;
  --panel: #ffffff;
  --panel2: #f8fafc;
  --panel3: #eef3f6;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --faint: rgba(15, 23, 42, 0.5);
  --line: rgba(15, 23, 42, 0.14);
  --line-strong: rgba(15, 23, 42, 0.28);
  --accent: #3E5FA8;
  --accent-strong: #263F91;
  --accent-soft: rgba(62, 95, 168, 0.12);
  --good: #3E5FA8;
  --warn: #ca8a04;
  --bad: #dc2626;
  --sidebar-bg: #ffffff;
  --sidebar-bg-2: #ffffff;
  --sidebar-panel: #f8fafc;
  --sidebar-line: rgba(15, 23, 42, 0.14);
  --sidebar-text: #0f172a;
  --sidebar-muted: rgba(15, 23, 42, 0.72);
  --shadow-card: 0 8px 18px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 18px 50px rgba(15, 23, 42, .12);
  --tool-bg: #f6f8fb;
  --tool-card: #ffffff;
  --tool-section: #f8fafc;
  --tool-section-strong: #F4F6FF;
  --tool-line: rgba(15, 23, 42, 0.14);
  --tool-line-soft: rgba(15, 23, 42, 0.12);
  --tool-text: #0f172a;
  --tool-muted: rgba(15, 23, 42, 0.72);
  --tool-faint: rgba(15, 23, 42, 0.5);
  --tool-accent: #3E5FA8;
  --tool-accent-soft: rgba(62, 95, 168, 0.12);
  --tool-green: #3E5FA8;
  --tool-warn: #ca8a04;
}

body.dark,
body.dark html,
body.dark .main {
  background: #000000 !important;
}
body.dark .main::before {
  content: "";
  position: fixed;
  inset: 0 0 0 260px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 19% 24%, rgba(59,110,255,.22) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 18%, rgba(59,110,255,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 42%, rgba(59,110,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 37% 78%, rgba(59,110,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 82%, rgba(59,110,255,.18) 0 1px, transparent 2px),
    linear-gradient(126deg, rgba(120,120,120,0.08) 9%, rgba(0,0,0,0) 71%);
  background-size: 170px 170px, 240px 240px, 310px 310px, 220px 220px, 280px 280px, auto;
  opacity: .78;
}
body.dark #content,
body.dark .topbar,
body.dark .float-service { position: relative; z-index: 1; }

body.dark .sidebar,
body.dark .brand {
  background: rgba(0,0,0,.96) !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.light .sidebar,
body.light .brand {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.14) !important;
}
body.dark .brand h2,
body.dark .nav-title strong,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark .slerf-section h2,
body.dark .slerf-section h3,
body.dark .slerf-section h4,
body.dark .exact-section h2,
body.dark .exact-section h3,
body.dark .exact-section h4,
body.dark .slerf-card-head h1,
body.dark .slerf-title-left h1 { color: #ffffff !important; }
body.light .brand h2,
body.light .nav-title strong { color: #0f172a !important; }

body.dark .mark,
body.dark .nav-icon,
body.dark .nav-item::before,
body.dark .chain-logo {
  background: rgba(59,110,255,.10) !important;
  border-color: rgba(59,110,255,.30) !important;
  color: #3B6EFF !important;
}
body.light .mark,
body.light .nav-icon,
body.light .chain-logo {
  background: rgba(62,95,168,.12) !important;
  border-color: rgba(62,95,168,.25) !important;
  color: #3E5FA8 !important;
}
body.dark .nav-title,
body.dark .nav-item,
body.dark .nav-child-icon { color: rgba(255,255,255,.62) !important; }
body.light .nav-title,
body.light .nav-item,
body.light .nav-child-icon { color: rgba(15,23,42,.72) !important; }
body.dark .nav-title:hover,
body.dark .nav-item:hover { background: rgba(255,255,255,.05) !important; color: #ffffff !important; }
body.light .nav-title:hover,
body.light .nav-item:hover { background: rgba(62,95,168,.08) !important; color: #0f172a !important; }
body.dark .nav-item.active,
body.dark .nav-title.direct.active,
body.dark .nav-group.has-active > .nav-title {
  background: rgba(59,110,255,.10) !important;
  color: #3B6EFF !important;
  box-shadow: none !important;
}
body.light .nav-item.active,
body.light .nav-title.direct.active,
body.light .nav-group.has-active > .nav-title {
  background: rgba(62,95,168,.12) !important;
  color: #3E5FA8 !important;
  box-shadow: none !important;
}
body.dark .nav-group.has-active > .nav-title .nav-icon,
body.dark .nav-title.direct.active .nav-icon { background: rgba(59,110,255,.16) !important; color: #3B6EFF !important; }
body.light .nav-group.has-active > .nav-title .nav-icon,
body.light .nav-title.direct.active .nav-icon { background: rgba(62,95,168,.14) !important; color: #3E5FA8 !important; }

body.dark .topbar {
  background: rgba(0,0,0,.88) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(12px) !important;
}
body.light .topbar {
  background: rgba(246,248,251,.92) !important;
  border-bottom: 1px solid rgba(15,23,42,.12) !important;
}
body.dark .chain-pill,
body.dark .icon-btn,
body.dark #connect {
  color: #d8fff7 !important;
  background: linear-gradient(135deg, rgba(59,110,255,.24), rgba(59,110,255,.14)) !important;
  border: 1px solid rgba(59,110,255,.42) !important;
  box-shadow: 0 4px 12px rgba(59,110,255,.16) !important;
}
body.light .chain-pill,
body.light .icon-btn,
body.light #connect {
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1px solid rgba(62,95,168,.35) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}
body.dark #connect:hover,
body.dark .theme-toggle:hover { border-color: rgba(59,110,255,.62) !important; color: #EEF3FF !important; }
body.light #connect:hover,
body.light .theme-toggle:hover { border-color: rgba(62,95,168,.5) !important; background: #F4F6FF !important; }

body.dark .slerf-tool-card,
body.dark .slerf-tool-card.dex-page,
body.dark .exact-page,
body.dark .tool-card,
body.dark .panel-main,
body.dark .work-panel > aside,
body.dark .logpanel {
  background: rgba(0,0,0,.95) !important;
  background-image: linear-gradient(126deg, rgba(120,120,120,.12) 9%, rgba(0,0,0,0) 71%) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
}
body.light .slerf-tool-card,
body.light .slerf-tool-card.dex-page,
body.light .exact-page,
body.light .tool-card,
body.light .panel-main,
body.light .work-panel > aside,
body.light .logpanel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.14) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}
body.dark .slerf-card-head { background: rgba(255,255,255,.02) !important; border-color: rgba(255,255,255,.08) !important; }
body.light .slerf-card-head { background: #ffffff !important; border-color: rgba(15,23,42,.12) !important; }
body.dark .slerf-card-head p,
body.dark p,
body.dark .lead { color: rgba(255,255,255,.62) !important; }
body.light .slerf-card-head p,
body.light p,
body.light .lead { color: rgba(15,23,42,.72) !important; }

body.dark .slerf-section,
body.dark .exact-section,
body.dark .form-section,
body.dark .relay-box,
body.dark .notice,
body.dark .readonly-mode-note,
body.dark .slerf-alert,
body.dark .official-badge,
body.dark .flap-real-exec-note,
body.dark .flap-live-warning,
body.dark .advanced-sort,
body.dark .active-wallet-box,
body.dark .trade-log-section,
body.dark .slerf-work-left .sub-card,
body.dark .slerf-work-right {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.72) !important;
}
body.light .slerf-section,
body.light .exact-section,
body.light .form-section,
body.light .relay-box,
body.light .notice,
body.light .readonly-mode-note,
body.light .slerf-alert,
body.light .official-badge,
body.light .flap-real-exec-note,
body.light .flap-live-warning,
body.light .advanced-sort,
body.light .active-wallet-box,
body.light .trade-log-section,
body.light .slerf-work-left .sub-card,
body.light .slerf-work-right {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,.12) !important;
  color: rgba(15,23,42,.72) !important;
}

body.dark .slerf-wallet-import-grid,
body.dark .slerf-new-main-wallet,
body.dark .income-panel,
body.dark .exact-summary,
body.dark .openfour-exec-mode,
body.dark .openfour-tax-rates label,
body.dark .flap-create-mode-section,
body.dark .flap-dev-curve-create,
body.dark .income-choice button,
body.dark .income-choice > div,
body.dark .flap-create-mode-picker button,
body.dark .slerf-stat-row div,
body.dark .metric-grid div,
body.dark .mode-card,
body.dark .choice-card,
body.dark .flap-tax-percent-grid label,
body.dark .flap-tax-address,
body.dark .flap-tax-min-share,
body.dark .home-tool-card,
body.dark .wide-trade-card,
body.dark .home-benefits div,
body.dark .home-hero,
body.dark .micro-home-status > div {
  background: rgba(0,0,0,.72) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
}
body.light .slerf-wallet-import-grid,
body.light .slerf-new-main-wallet,
body.light .income-panel,
body.light .exact-summary,
body.light .openfour-exec-mode,
body.light .openfour-tax-rates label,
body.light .flap-create-mode-section,
body.light .flap-dev-curve-create,
body.light .income-choice button,
body.light .income-choice > div,
body.light .flap-create-mode-picker button,
body.light .slerf-stat-row div,
body.light .metric-grid div,
body.light .mode-card,
body.light .choice-card,
body.light .flap-tax-percent-grid label,
body.light .flap-tax-address,
body.light .flap-tax-min-share,
body.light .home-tool-card,
body.light .wide-trade-card,
body.light .home-benefits div,
body.light .home-hero,
body.light .micro-home-status > div {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
}

body.dark label,
body.dark .exact-field,
body.dark .slerf-section label,
body.dark .sub-card label,
body.dark .slerf-linear-page label,
body.dark th,
body.dark .advanced-sort summary { color: rgba(255,255,255,.72) !important; }
body.light label,
body.light .exact-field,
body.light .slerf-section label,
body.light .sub-card label,
body.light .slerf-linear-page label,
body.light th,
body.light .advanced-sort summary { color: rgba(15,23,42,.72) !important; }
body.dark input,
body.dark textarea,
body.dark select,
body.dark .slerf-section input,
body.dark .slerf-section textarea,
body.dark .slerf-section select,
body.dark .exact-field input,
body.dark .exact-field textarea,
body.dark .exact-field select,
body.dark .sub-card input,
body.dark .sub-card select,
body.dark .slerf-linear-page input,
body.dark .slerf-linear-page select,
body.dark .slerf-linear-page textarea,
body.dark .suffix-input,
body.dark .paste-input,
body.dark .amount-cell,
body.dark .exact-token-box,
body.dark .token-picker,
body.dark .slerf-buy-table input,
body.dark .slerf-sort-table input,
body.dark .flap-table input,
body.dark table input {
  background: rgba(0,0,0,.55) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.light input,
body.light textarea,
body.light select,
body.light .slerf-section input,
body.light .slerf-section textarea,
body.light .slerf-section select,
body.light .exact-field input,
body.light .exact-field textarea,
body.light .exact-field select,
body.light .sub-card input,
body.light .sub-card select,
body.light .slerf-linear-page input,
body.light .slerf-linear-page select,
body.light .slerf-linear-page textarea,
body.light .suffix-input,
body.light .paste-input,
body.light .amount-cell,
body.light .exact-token-box,
body.light .token-picker,
body.light .slerf-buy-table input,
body.light .slerf-sort-table input,
body.light .flap-table input,
body.light table input {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.14) !important;
  color: #0f172a !important;
}
body.dark input::placeholder,
body.dark textarea::placeholder { color: rgba(255,255,255,.35) !important; }
body.light input::placeholder,
body.light textarea::placeholder { color: rgba(15,23,42,.45) !important; }
body.dark input:focus,
body.dark textarea:focus,
body.dark select:focus { border-color: rgba(59,110,255,.8) !important; box-shadow: 0 0 0 2px rgba(59,110,255,.28) !important; }
body.light input:focus,
body.light textarea:focus,
body.light select:focus { border-color: rgba(62,95,168,.55) !important; box-shadow: 0 0 0 2px rgba(62,95,168,.18) !important; }

body.dark .slerf-upload,
body.dark .flap-upload-box {
  background: rgba(0,0,0,.55) !important;
  border-color: rgba(59,110,255,.26) !important;
}
body.light .slerf-upload,
body.light .flap-upload-box {
  background: #ffffff !important;
  border-color: rgba(62,95,168,.25) !important;
}
body.dark .slerf-upload button,
body.dark .flap-upload-box .flap-upload-button {
  background: rgba(59,110,255,.10) !important;
  border-color: rgba(59,110,255,.28) !important;
  color: #d8fff7 !important;
}
body.light .slerf-upload button,
body.light .flap-upload-box .flap-upload-button {
  background: #F4F6FF !important;
  border-color: rgba(62,95,168,.22) !important;
  color: #0f766e !important;
}
body.dark .flap-upload-copy,
body.dark .flap-upload-copy p,
body.dark .slerf-upload > div:not(.upload-actions):not(.flap-upload-copy),
body.dark .slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p { color: rgba(255,255,255,.62) !important; }
body.dark .flap-upload-copy p:first-child,
body.dark .slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p:first-child { color: #ffffff !important; }
body.light .flap-upload-copy,
body.light .flap-upload-copy p,
body.light .slerf-upload > div:not(.upload-actions):not(.flap-upload-copy),
body.light .slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p { color: rgba(15,23,42,.62) !important; }
body.light .flap-upload-copy p:first-child,
body.light .slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p:first-child { color: #0f172a !important; }

body.dark table { border-color: rgba(255,255,255,.08) !important; }
body.dark th { background: rgba(255,255,255,.04) !important; color: rgba(255,255,255,.55) !important; }
body.dark td { background: rgba(0,0,0,.45) !important; color: rgba(255,255,255,.76) !important; border-color: rgba(255,255,255,.08) !important; }
body.dark tr:hover td { background: rgba(59,110,255,.06) !important; }
body.light th { background: #f8fafc !important; color: rgba(15,23,42,.55) !important; }
body.light td { background: #ffffff !important; color: rgba(15,23,42,.78) !important; border-color: rgba(15,23,42,.10) !important; }
body.light tr:hover td { background: #F4F6FF !important; }

body.dark .slerf-submit,
body.dark .center-actions .slerf-submit,
body.dark button.slerf-submit {
  color: #FFFFFF !important;
  background: #3B6EFF !important;
  border-color: rgba(59,110,255,.72) !important;
  box-shadow: 0 4px 18px rgba(59,110,255,.18) !important;
}
body.light .slerf-submit,
body.light .center-actions .slerf-submit,
body.light button.slerf-submit {
  color: #ffffff !important;
  background: #3E5FA8 !important;
  border-color: rgba(62,95,168,.55) !important;
  box-shadow: 0 8px 18px rgba(62,95,168,.16) !important;
}
body.dark .secondary,
body.dark .ghost-btn,
body.dark .table-tools button,
body.dark .segmented button,
body.dark .mini,
body.dark .choice-card,
body.dark .exact-tabs span,
body.dark .exact-seg span,
body.dark .exact-tabs button,
body.dark .exact-seg button,
body.dark .radio-like button,
body.dark .radio-like span,
body.dark .chain-tabs button,
body.dark .chain-tabs span {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.78) !important;
}
body.light .secondary,
body.light .ghost-btn,
body.light .table-tools button,
body.light .segmented button,
body.light .mini,
body.light .choice-card,
body.light .exact-tabs span,
body.light .exact-seg span,
body.light .exact-tabs button,
body.light .exact-seg button,
body.light .radio-like button,
body.light .radio-like span,
body.light .chain-tabs button,
body.light .chain-tabs span {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.14) !important;
  color: rgba(15,23,42,.78) !important;
}
body.dark .segmented button.active,
body.dark .radio-like button.active,
body.dark .radio-like span.active,
body.dark .exact-tabs span.active,
body.dark .exact-seg span.active,
body.dark .chain-tabs button.active,
body.dark .chain-tabs span.active,
body.dark .income-choice button.active,
body.dark .income-choice > div.active,
body.dark .flap-create-mode-picker button.active {
  background: rgba(59,110,255,.12) !important;
  border-color: rgba(59,110,255,.35) !important;
  color: #3B6EFF !important;
}
body.light .segmented button.active,
body.light .radio-like button.active,
body.light .radio-like span.active,
body.light .exact-tabs span.active,
body.light .exact-seg span.active,
body.light .chain-tabs button.active,
body.light .chain-tabs span.active,
body.light .income-choice button.active,
body.light .income-choice > div.active,
body.light .flap-create-mode-picker button.active {
  background: rgba(62,95,168,.12) !important;
  border-color: rgba(62,95,168,.30) !important;
  color: #3E5FA8 !important;
}

body.dark .slerf-output,
body.dark code,
body.dark pre {
  background: rgba(0,0,0,.62) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.74) !important;
}
body.light .slerf-output,
body.light code,
body.light pre {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,.12) !important;
  color: rgba(15,23,42,.78) !important;
}
body.dark .readonly-mode-note b,
body.dark .official-badge b,
body.dark .flap-real-exec-note b,
body.dark .local-api-panel b,
body.dark .micro-home-status b,
body.dark .metric-grid b,
body.dark .slerf-stat-row b { color: #3B6EFF !important; }
body.light .readonly-mode-note b,
body.light .official-badge b,
body.light .flap-real-exec-note b,
body.light .local-api-panel b,
body.light .micro-home-status b,
body.light .metric-grid b,
body.light .slerf-stat-row b { color: #3E5FA8 !important; }
body.dark .flap-tax-progress { background: rgba(255,255,255,.08) !important; }
body.dark .flap-tax-progress i { background: #3B6EFF !important; }
body.light .flap-tax-progress { background: rgba(15,23,42,.10) !important; }
body.light .flap-tax-progress i { background: #3E5FA8 !important; }

/* 20260609 launchpad theme sticky topbar fix */
body.dark .topbar,
body.light .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
}
body.dark #content,
body.light #content {
  position: relative;
  z-index: 1;
}

/* 20260609 launchpad theme table contrast fix */
body.dark .slerf-table-wrap,
body.dark .fourmeme-table-wrap,
body.dark .flap-table-wrap,
body.dark .table-shell,
body.dark .active-wallet-box,
body.dark .trade-log-section {
  background: rgba(0,0,0,.72) !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.dark .slerf-buy-table,
body.dark .slerf-sort-table,
body.dark .flap-table,
body.dark .curve-table,
body.dark .fourmeme-wallet-table,
body.dark table {
  background: rgba(0,0,0,.68) !important;
  color: rgba(255,255,255,.78) !important;
}
body.dark .slerf-buy-table thead,
body.dark .slerf-sort-table thead,
body.dark .flap-table thead,
body.dark .curve-table thead,
body.dark .fourmeme-wallet-table thead,
body.dark table thead {
  background: rgba(255,255,255,.04) !important;
}
body.dark .slerf-buy-table th,
body.dark .slerf-sort-table th,
body.dark .flap-table th,
body.dark .curve-table th,
body.dark .fourmeme-wallet-table th,
body.dark table th {
  background: rgba(255,255,255,.04) !important;
  color: rgba(255,255,255,.58) !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.dark .slerf-buy-table td,
body.dark .slerf-sort-table td,
body.dark .flap-table td,
body.dark .curve-table td,
body.dark .fourmeme-wallet-table td,
body.dark table td {
  background: rgba(0,0,0,.52) !important;
  color: rgba(255,255,255,.76) !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.dark .slerf-buy-table tr:hover td,
body.dark .slerf-sort-table tr:hover td,
body.dark .flap-table tr:hover td,
body.dark .curve-table tr:hover td,
body.dark .fourmeme-wallet-table tr:hover td,
body.dark table tr:hover td {
  background: rgba(59,110,255,.08) !important;
}
body.dark .slerf-buy-table input,
body.dark .slerf-sort-table input,
body.dark .flap-table input,
body.dark .curve-table input,
body.dark .fourmeme-wallet-table input,
body.dark table input {
  background: rgba(255,255,255,.055) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.dark .slerf-buy-table p,
body.dark .fourmeme-muted,
body.dark .fourmeme-status,
body.dark td span {
  color: rgba(255,255,255,.62) !important;
}

/* 20260609 launchpad theme dark-surface sweep: remove leftover white islands in dark mode */
body.dark .main::before {
  background:
    radial-gradient(circle at 19% 24%, rgba(59,110,255,.30) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 18%, rgba(94,234,212,.22) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 42%, rgba(59,110,255,.30) 0 2px, transparent 3px),
    radial-gradient(circle at 37% 78%, rgba(94,234,212,.20) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 82%, rgba(59,110,255,.24) 0 1px, transparent 2px),
    linear-gradient(126deg, rgba(120,120,120,0.12) 9%, rgba(0,0,0,0) 71%) !important;
  background-size: 170px 170px, 240px 240px, 310px 310px, 220px 220px, 280px 280px, auto !important;
  animation: daoiToolStarPan 42s linear infinite;
}
body.dark .main::after {
  content: "";
  position: fixed;
  inset: 0 0 0 260px;
  pointer-events: none;
  z-index: 0;
  opacity: .42;
  background:
    radial-gradient(circle at 14% 18%, rgba(59,110,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 61%, rgba(94,234,212,.38) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 28%, rgba(59,110,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 78%, rgba(94,234,212,.38) 0 1px, transparent 2px);
  background-size: 390px 390px, 460px 460px, 520px 520px, 610px 610px;
  animation: daoiToolStarFloat 58s linear infinite;
}
@keyframes daoiToolStarPan {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 170px 120px, -240px 180px, 310px -220px, -220px -160px, 280px 210px, 0 0; }
}
@keyframes daoiToolStarFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-46px, 32px, 0) scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  body.dark .main::before,
  body.dark .main::after { animation: none !important; }
}

body.dark .original-note,
body.dark .original-note.slerf-note,
body.dark .exact-tip,
body.dark .official-badge,
body.dark .openfour-badge,
body.dark .flap-real-exec-note,
body.dark .flap-live-warning,
body.dark .real-tx-bar,
body.dark .real-tx-bar.warning,
body.dark .bsc-only,
body.dark .flap-salt-box,
body.dark .local-api-panel,
body.dark .closure-strip,
body.dark .flap-dev-curve-create,
body.dark .flap-create-mode-section,
body.dark .bundle-page .form-section.flap-section,
body.dark .bundle-page .switch-row,
body.dark .openfour-user-note,
body.dark .openfour-tax-rates label,
body.dark .openfour-exec-mode,
body.dark .slerf-side-note,
body.dark .slerf-stat-row div,
body.dark .slerf-log-empty,
body.dark .active-metrics,
body.dark .exec-grid span,
body.dark .wallet-toolbar,
body.dark .slerf-chain-select,
body.dark .big-chain,
body.dark .home-tool-card,
body.dark .wide-trade-card,
body.dark .home-benefits div,
body.dark .home-hero,
body.dark .income-panel,
body.dark .income-choice button,
body.dark .income-choice > div,
body.dark .flap-tax-percent-grid label,
body.dark .flap-tax-address,
body.dark .flap-tax-min-share,
body.dark .exact-summary,
body.dark .exact-stepper b,
body.dark .token-picker,
body.dark .exact-token-box,
body.dark .suffix-input,
body.dark .paste-input,
body.dark .amount-cell,
body.dark .active-wallet-box,
body.dark .trade-log-section,
body.dark .slerf-output,
body.dark .table-shell,
body.dark .slerf-table-wrap,
body.dark .fourmeme-table-wrap,
body.dark .flap-table-wrap {
  background: rgba(0,0,0,.62) !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.82) !important;
  box-shadow: none !important;
}

body.dark .slerf-section,
body.dark .exact-section,
body.dark .form-section,
body.dark .relay-box,
body.dark .notice,
body.dark .slerf-work-left .sub-card,
body.dark .slerf-work-right {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.08) !important;
}

body.dark .readonly-mode-note,
body.dark .slerf-alert,
body.dark .original-note.slerf-note,
body.dark .exact-tip {
  background: rgba(0,0,0,.58) !important;
  border-color: rgba(255,255,255,.10) !important;
}

body.dark .slerf-card-head p,
body.dark p,
body.dark .lead,
body.dark .readonly-mode-note span,
body.dark .original-note span,
body.dark .official-badge span,
body.dark .flap-real-exec-note span,
body.dark .flap-live-warning span,
body.dark .real-tx-bar span,
body.dark .local-api-panel span,
body.dark .closure-strip span,
body.dark .slerf-alert p,
body.dark .exact-tip,
body.dark .openfour-user-note,
body.dark .openfour-tax-rates small,
body.dark .openfour-exec-mode small,
body.dark .slerf-side-note,
body.dark .active-metrics,
body.dark .exec-grid span,
body.dark .slerf-log-empty {
  color: rgba(255,255,255,.78) !important;
}

body.dark .readonly-mode-note b,
body.dark .original-note.slerf-note b,
body.dark .official-badge b,
body.dark .flap-real-exec-note b,
body.dark .flap-live-warning b,
body.dark .real-tx-bar b,
body.dark .local-api-panel b,
body.dark .closure-badge,
body.dark .closure-strip b {
  background: rgba(59,110,255,.12) !important;
  color: #3B6EFF !important;
  border-color: rgba(59,110,255,.30) !important;
}

body.dark .closure-badge.entry-wired,
body.dark .closure-badge.blocked-original-disabled,
body.dark .closure-badge.blocked-no-relay,
body.dark .closure-badge.blocked-needs-official-signature,
body.dark .closure-badge.blocked-cost,
body.dark .closure-badge.blocked-needs-contract,
body.dark .closure-strip.entry-wired b,
body.dark .closure-strip.blocked-original-disabled b,
body.dark .closure-strip.blocked-no-relay b,
body.dark .closure-strip.blocked-needs-official-signature b,
body.dark .closure-strip.blocked-cost b,
body.dark .closure-strip.blocked-needs-contract b {
  background: rgba(255,214,65,.12) !important;
  color: #FFD641 !important;
  border-color: rgba(255,214,65,.24) !important;
}

body.dark .row-delete,
body.dark .add-wallet-btn,
body.dark .sort-actions button,
body.dark .slerf-action-line button,
body.dark .slerf-stop,
body.dark .slerf-alert button,
body.dark .local-api-panel button,
body.dark .real-tx-bar .secondary,
body.dark .real-tx-bar button.secondary,
body.dark .secondary.danger,
body.dark button.secondary.danger,
body.dark .chain-tabs a {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.82) !important;
}

body.dark .slerf-buy-table th,
body.dark .slerf-sort-table th,
body.dark .flap-table th,
body.dark .curve-table th,
body.dark .fourmeme-wallet-table th,
body.dark table th {
  color: rgba(255,255,255,.68) !important;
}
body.dark .slerf-buy-table td,
body.dark .slerf-sort-table td,
body.dark .flap-table td,
body.dark .curve-table td,
body.dark .fourmeme-wallet-table td,
body.dark table td {
  color: rgba(255,255,255,.84) !important;
}

/* 20260609 launchpad theme06 dark hard reset: unify dark surfaces and action buttons */
body.dark {
  --daoi-tool-primary: #3B6EFF;
  --daoi-tool-primary-hover: #6D8CFF;
  --daoi-tool-on-primary: #FFFFFF;
  --daoi-tool-surface: rgba(0,0,0,.86);
  --daoi-tool-surface-2: rgba(255,255,255,.045);
  --daoi-tool-surface-3: rgba(255,255,255,.07);
  --daoi-tool-border: rgba(255,255,255,.10);
  --daoi-tool-border-strong: rgba(59,110,255,.32);
  --daoi-tool-text: rgba(255,255,255,.92);
  --daoi-tool-muted: rgba(255,255,255,.70);
  --daoi-tool-faint: rgba(255,255,255,.52);
}
body.dark .app.slerf-shell,
body.dark .main,
body.dark #content {
  background: #000000 !important;
  color: var(--daoi-tool-text) !important;
}
body.dark .slerf-tool-card,
body.dark .slerf-tool-card.dex-page,
body.dark .exact-page,
body.dark .tool-card,
body.dark .panel-main,
body.dark .work-panel > aside,
body.dark .logpanel {
  background:
    radial-gradient(circle at 12% 0%, rgba(59,110,255,.10), transparent 30%),
    linear-gradient(126deg, rgba(120,120,120,.10) 9%, rgba(0,0,0,0) 71%),
    rgba(0,0,0,.95) !important;
  border-color: var(--daoi-tool-border) !important;
  color: var(--daoi-tool-text) !important;
  box-shadow: none !important;
}
body.dark .slerf-card-head,
body.dark .slerf-card-body {
  background: transparent !important;
  background-image: none !important;
  border-color: var(--daoi-tool-border) !important;
  color: var(--daoi-tool-text) !important;
}
body.dark #content :is(
  .slerf-section,
  .exact-section,
  .form-section,
  .relay-box,
  .notice,
  .plan-section,
  .sub-card,
  .slerf-work-left,
  .slerf-work-right,
  .slerf-work-left .sub-card,
  .slerf-workbench-body,
  .slerf-workbench-grid,
  .active-wallet-box,
  .trade-log-section,
  .wallet-toolbar,
  .slerf-new-main-wallet,
  .slerf-wallet-import-grid,
  .income-panel,
  .flap-create-mode-section,
  .flap-dev-curve-create,
  .openfour-exec-mode,
  .openfour-user-note,
  .openfour-tax-rates label,
  .flap-tax-percent-grid label,
  .flap-tax-address,
  .flap-tax-min-share,
  .local-log li,
  .mini-steps li,
  .metric-grid div,
  .slerf-stat-row div,
  .mode-card,
  .choice-card,
  .home-tool-card,
  .wide-trade-card,
  .home-benefits div,
  .micro-home-status > div,
  .home-hero,
  .active-metrics,
  .exec-grid span,
  .empty-log,
  .empty-wallet-state.static,
  .empty-wallet-state div,
  .token-swap-strip,
  .settings-row > div,
  .search-line,
  .slerf-log-empty,
  .slerf-side-note,
  .upload-box,
  .slerf-output,
  .flap-preview,
  .fourmeme-output,
  .table-shell,
  .slerf-table-wrap,
  .fourmeme-table-wrap,
  .flap-table-wrap,
  .advanced-sort,
  .readonly-mode-note,
  .slerf-alert,
  .original-note,
  .original-note.slerf-note,
  .official-badge,
  .openfour-badge,
  .flap-real-exec-note,
  .flap-live-warning,
  .real-tx-bar,
  .real-tx-bar.warning,
  .bsc-only,
  .flap-salt-box,
  .local-api-panel,
  .closure-strip,
  .radio-like,
  .slerf-segmented,
  .exact-stepper div,
  .exact-summary,
  .exact-token-box,
  .token-picker,
  .suffix-input,
  .paste-input,
  .amount-cell,
  .flap-slider-line,
  .chain-tabs span,
  .chain-tabs button,
  .dex-pills span,
  .dex-pills button,
  .big-chain,
  .mini-chains span
) {
  background: var(--daoi-tool-surface) !important;
  background-image: none !important;
  border-color: var(--daoi-tool-border) !important;
  color: var(--daoi-tool-text) !important;
  box-shadow: none !important;
}
body.dark #content :is(.slerf-section,.exact-section,.form-section,.sub-card,.active-wallet-box,.trade-log-section,.wallet-toolbar,.advanced-sort,.table-shell,.slerf-table-wrap,.fourmeme-table-wrap,.flap-table-wrap) {
  background: var(--daoi-tool-surface-2) !important;
}
body.dark #content :is(.official-badge,.openfour-badge,.flap-real-exec-note,.flap-live-warning,.real-tx-bar,.local-api-panel,.closure-strip,.readonly-mode-note,.slerf-alert,.original-note.slerf-note,.bsc-only) b {
  background: rgba(59,110,255,.13) !important;
  border-color: rgba(59,110,255,.34) !important;
  color: var(--daoi-tool-primary) !important;
}
body.dark #content :is(.flap-live-warning,.real-tx-bar.warning,.closure-strip.entry-wired,.closure-strip.blocked-original-disabled,.closure-strip.blocked-no-relay,.closure-strip.blocked-needs-official-signature,.closure-strip.blocked-cost,.closure-strip.blocked-needs-contract) b {
  background: rgba(255,214,65,.12) !important;
  border-color: rgba(255,214,65,.24) !important;
  color: #FFD641 !important;
}
body.dark #content :is(h1,h2,h3,h4,.slerf-section h2,.slerf-section h3,.slerf-section h4,.exact-section h2,.exact-section h3,.exact-section h4,.slerf-card-head h1,.slerf-title-left h1,.section-mini-label,.switch-title h3,.flap-create-mode-head span,.flap-create-mode-picker strong,.income-choice strong,.home-tool-card b,.wide-trade-card b,.home-benefits b,.micro-home-status b,.slerf-stat-row b,.metric-grid b) {
  color: #ffffff !important;
}
body.dark #content :is(p,span,small,em,label,.lead,.hint,.sort-help,.fee-line,.contract-line,.token-swap-strip small,.flap-upload-copy,.flap-upload-copy p,.slerf-card-head p,.closure-strip span,.official-badge span,.openfour-badge span,.real-tx-bar span,.flap-real-exec-note span,.flap-live-warning span,.local-api-panel span,.home-tool-card span,.wide-trade-card span,.home-benefits span,.micro-home-status span,.slerf-stat-row span,.metric-grid span,.exec-grid span,.active-metrics,.slerf-log-empty,.empty-wallet-state) {
  color: var(--daoi-tool-muted) !important;
}
body.dark #content :is(.flap-upload-copy p:first-child,.slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p:first-child) {
  color: #ffffff !important;
}
body.dark #content :is(input,textarea,select,.slerf-section input,.slerf-section textarea,.slerf-section select,.exact-field input,.exact-field textarea,.exact-field select,.sub-card input,.sub-card select,.slerf-linear-page input,.slerf-linear-page textarea,.slerf-linear-page select,.suffix-input input,.paste-input input,.amount-cell input,.token-picker input,.exact-token-box input,.flap-tax-address input,.flap-tax-min-share input,table input) {
  background: rgba(0,0,0,.64) !important;
  background-image: none !important;
  border-color: var(--daoi-tool-border) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.dark #content :is(input,textarea,select)::placeholder {
  color: rgba(255,255,255,.42) !important;
}
body.dark #content :is(input,textarea,select):focus {
  border-color: rgba(59,110,255,.80) !important;
  box-shadow: 0 0 0 2px rgba(59,110,255,.22) !important;
}
body.dark #content :is(table,.slerf-buy-table,.slerf-sort-table,.flap-table,.curve-table,.fourmeme-wallet-table) {
  background: rgba(0,0,0,.74) !important;
  border-color: var(--daoi-tool-border) !important;
  color: var(--daoi-tool-text) !important;
}
body.dark #content :is(thead,tbody,tr,th,td) {
  border-color: var(--daoi-tool-border) !important;
}
body.dark #content :is(th,table th,.slerf-buy-table th,.slerf-sort-table th,.flap-table th,.curve-table th,.fourmeme-wallet-table th) {
  background: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.72) !important;
}
body.dark #content :is(td,table td,.slerf-buy-table td,.slerf-sort-table td,.flap-table td,.curve-table td,.fourmeme-wallet-table td) {
  background: rgba(0,0,0,.55) !important;
  color: rgba(255,255,255,.86) !important;
}
body.dark #content tr:hover td {
  background: rgba(59,110,255,.08) !important;
}
body.dark #content :is(code,pre,.slerf-output,.flap-preview,.fourmeme-output) {
  background: rgba(0,0,0,.72) !important;
  border-color: var(--daoi-tool-border) !important;
  color: rgba(255,255,255,.82) !important;
}
body.dark #content :is(.slerf-upload,.flap-upload-box) {
  background: rgba(0,0,0,.62) !important;
  border-color: rgba(59,110,255,.30) !important;
  color: var(--daoi-tool-muted) !important;
}
body.dark #content :is(.flap-tax-progress) {
  background: rgba(255,255,255,.10) !important;
}
body.dark #content :is(.flap-tax-progress i,.slerf-switch input:checked + span) {
  background: var(--daoi-tool-primary) !important;
}
body.dark #content .slerf-switch span {
  background: rgba(255,255,255,.18) !important;
}
body.dark #content .slerf-switch span::after {
  background: #ffffff !important;
}
body.dark #content button:not([disabled]):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete),
body.dark #content :is(.slerf-submit,.center-actions > button,.two-submit > button,.real-tx-bar button,.wallet-toolbar button,.slerf-action-line button,.table-tools button,.sort-actions button,.add-wallet-btn,.local-api-panel button,.flap-salt-box button,.paste-input button,.search-line button,.slerf-wallet-tools button,.slerf-help-actions .safe-tip,.slerf-help-actions a,.mini,.secondary.danger,button.secondary.danger) {
  background: var(--daoi-tool-primary) !important;
  background-image: none !important;
  border-color: rgba(59,110,255,.72) !important;
  color: var(--daoi-tool-on-primary) !important;
  box-shadow: 0 6px 18px rgba(59,110,255,.16) !important;
}
body.dark #content button:not([disabled]):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete):hover,
body.dark #content :is(.slerf-submit,.center-actions > button,.two-submit > button,.real-tx-bar button,.wallet-toolbar button,.slerf-action-line button,.table-tools button,.sort-actions button,.add-wallet-btn,.local-api-panel button,.flap-salt-box button,.paste-input button,.search-line button,.slerf-wallet-tools button,.slerf-help-actions .safe-tip,.slerf-help-actions a,.mini,.secondary.danger,button.secondary.danger):hover {
  background: var(--daoi-tool-primary-hover) !important;
  color: var(--daoi-tool-on-primary) !important;
}
body.dark #content :is(.secondary,.ghost-btn) {
  border-color: rgba(59,110,255,.45) !important;
}
body.dark #content :is(.slerf-alert > button,.row-delete) {
  background: rgba(255,73,74,.10) !important;
  border-color: rgba(255,73,74,.24) !important;
  color: #ff8d8e !important;
  box-shadow: none !important;
}
body.dark #content :is(.radio-like,.slerf-segmented,.exact-tabs,.exact-seg) {
  background: rgba(255,255,255,.055) !important;
  border-color: var(--daoi-tool-border) !important;
}
body.dark #content :is(.radio-like button,.radio-like span,.segmented button,.segmented span,.slerf-segmented button,.slerf-segmented span,.exact-tabs button,.exact-tabs span,.exact-seg button,.exact-seg span,.chain-tabs button,.chain-tabs span,.dex-pills button,.dex-pills span,.income-choice button,.income-choice > div,.flap-create-mode-picker button,.home-tool-card,.wide-trade-card,.choice-card) {
  background: rgba(0,0,0,.58) !important;
  border-color: var(--daoi-tool-border) !important;
  color: var(--daoi-tool-muted) !important;
  box-shadow: none !important;
}
body.dark #content :is(.radio-like button.active,.radio-like span.active,.segmented button.active,.segmented span.active,.slerf-segmented button.active,.slerf-segmented span.active,.exact-tabs button.active,.exact-tabs span.active,.exact-seg button.active,.exact-seg span.active,.chain-tabs button.active,.chain-tabs span.active,.dex-pills button.active,.dex-pills span.active,.income-choice button.active,.income-choice > div.active,.flap-create-mode-picker button.active,.choice-card.active) {
  background: rgba(59,110,255,.16) !important;
  border-color: rgba(59,110,255,.42) !important;
  color: var(--daoi-tool-primary) !important;
}
body.dark #content :is(.home-tool-card:hover,.wide-trade-card:hover,.choice-card:hover,.income-choice button:hover,.flap-create-mode-picker button:hover) {
  background: rgba(59,110,255,.10) !important;
  border-color: rgba(59,110,255,.34) !important;
  color: #ffffff !important;
}
body.dark #content button[disabled],
body.dark #content :is(.readonly-options span,.muted-link) {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.38) !important;
  box-shadow: none !important;
}
body.dark #content :is(.chain-tabs a,.chain-tabs a.active) {
  background: rgba(59,110,255,.16) !important;
  border-color: rgba(59,110,255,.42) !important;
  color: var(--daoi-tool-primary) !important;
}
body.dark #content :is(.empty-wallet-state div,.exact-stepper b) {
  background: rgba(59,110,255,.10) !important;
  border-color: rgba(59,110,255,.30) !important;
  color: var(--daoi-tool-primary) !important;
}

/* 20260609 theme06 polish: badges and button inner text */
body.dark #content :is(.wide-trade-card em,.wide-trade-card strong,.flap-create-mode-head b,.section-mini-label b,.flap-tax-total.complete,.openfour-rate-total.complete) {
  background: rgba(59,110,255,.16) !important;
  border-color: rgba(59,110,255,.38) !important;
  color: var(--daoi-tool-primary) !important;
}
body.dark #content button:not([disabled]):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete) :is(span,b,em,strong),
body.dark #content :is(.slerf-submit,.center-actions > button,.two-submit > button,.real-tx-bar button,.wallet-toolbar button,.slerf-action-line button,.table-tools button,.sort-actions button,.add-wallet-btn,.local-api-panel button,.flap-salt-box button,.paste-input button,.search-line button,.slerf-wallet-tools button,.slerf-help-actions .safe-tip,.slerf-help-actions a,.mini,.secondary.danger,button.secondary.danger) :is(span,b,em,strong) {
  color: var(--daoi-tool-on-primary) !important;
}
body.dark #content :is(.readonly-options span.active,.dex-pills span.active,.chain-tabs span.active,.chain-tabs button.active,.radio-like span.active,.radio-like button.active,.slerf-segmented span.active,.slerf-segmented button.active) {
  background: rgba(59,110,255,.16) !important;
  border-color: rgba(59,110,255,.42) !important;
  color: var(--daoi-tool-primary) !important;
}
body.dark #content :is(.readonly-options span:not(.active),.dex-pills span:not(.active),.chain-tabs span:not(.active),.chain-tabs button:not(.active)) {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.42) !important;
}
body.dark #content :is(.flap-create-mode-head b,.wide-trade-card em,.wide-trade-card strong) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(59,110,255,.38) !important;
  border-radius: 999px;
}

/* 20260609 theme06 control reset: keep tabs/cards/close controls from becoming solid CTA buttons */
body.dark #content :is(.radio-like button,.slerf-segmented button,.segmented button,.exact-tabs button,.exact-seg button,.chain-tabs button,.dex-pills button,.income-choice button,.flap-create-mode-picker button,.choice-card):not([disabled]):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.row-delete) {
  background: rgba(0,0,0,.58) !important;
  border-color: var(--daoi-tool-border) !important;
  color: var(--daoi-tool-muted) !important;
  box-shadow: none !important;
}
body.dark #content :is(.radio-like button.active,.slerf-segmented button.active,.segmented button.active,.exact-tabs button.active,.exact-seg button.active,.chain-tabs button.active,.dex-pills button.active,.income-choice button.active,.flap-create-mode-picker button.active,.choice-card.active):not([disabled]):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.row-delete) {
  background: rgba(59,110,255,.16) !important;
  border-color: rgba(59,110,255,.42) !important;
  color: var(--daoi-tool-primary) !important;
  box-shadow: none !important;
}
body.dark #content :is(.radio-like button,.slerf-segmented button,.segmented button,.exact-tabs button,.exact-seg button,.chain-tabs button,.dex-pills button,.income-choice button,.flap-create-mode-picker button,.choice-card) :is(span,b,em,strong) {
  color: inherit !important;
}
body.dark #content .slerf-alert > button:not([disabled]):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete) {
  background: rgba(255,73,74,.10) !important;
  border-color: rgba(255,73,74,.24) !important;
  color: #ff8d8e !important;
  box-shadow: none !important;
}

/* 20260609 theme07 launchpad-like particle starfield for my-tools dark mode */
.tool-starfield-canvas {
  display: none;
}
body.dark .tool-starfield-canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  opacity: .86;
}
body.light .tool-starfield-canvas {
  display: none !important;
}
body.dark .app.slerf-shell {
  position: relative;
  overflow-x: hidden;
  background: #000000 !important;
}
body.dark .main {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
body.dark .sidebar,
body.dark .topbar,
body.dark #content {
  position: relative;
  z-index: 2;
}
body.dark .slerf-tool-card,
body.dark .slerf-tool-card.dex-page,
body.dark .exact-page,
body.dark .tool-card,
body.dark .panel-main,
body.dark .work-panel > aside,
body.dark .logpanel {
  background:
    radial-gradient(circle at 12% 0%, rgba(59,110,255,.09), transparent 31%),
    linear-gradient(126deg, rgba(120,120,120,.09) 9%, rgba(0,0,0,.08) 71%),
    rgba(0,0,0,.88) !important;
  backdrop-filter: blur(10px) !important;
}
@media (prefers-reduced-motion: reduce) {
  body.dark .tool-starfield-canvas { opacity: .56; }
}

/* 20260610 clean brand token override */
:root {
  --yy-bg-dark: #000000;
  --yy-primary: #3B6EFF;
  --yy-primary-hover: #6D8CFF;
  --yy-primary-dim: rgba(59,110,255,.10);
  --yy-primary-soft: rgba(59,110,255,.16);
  --yy-primary-border: rgba(59,110,255,.42);
  --yy-on-primary: #FFFFFF;
  --yy-card-dark: rgba(0,0,0,.95);
  --yy-card-dark-hover: rgba(8,8,8,.95);
  --yy-card-gradient: linear-gradient(126deg, rgba(120,120,120,.12) 9%, rgba(0,0,0,0) 71%);
  --yy-border-dark: rgba(255,255,255,.08);
  --yy-border-dark-hover: rgba(255,255,255,.15);
  --yy-text-dark: #ffffff;
  --yy-text-dark-dim: rgba(255,255,255,.64);
  --yy-text-dark-muted: rgba(255,255,255,.42);
  --yy-bg-light: #f6f8fb;
  --yy-primary-light: #3E5FA8;
  --yy-primary-light-dim: rgba(62,95,168,.12);
  --yy-primary-light-border: rgba(62,95,168,.35);
  --yy-card-light: #ffffff;
  --yy-card-light-hover: #f8fafc;
  --yy-border-light: rgba(15,23,42,.14);
  --yy-border-light-hover: rgba(15,23,42,.28);
  --yy-text-light: #0f172a;
  --yy-text-light-dim: rgba(15,23,42,.72);
  --yy-text-light-muted: rgba(15,23,42,.50);
  --yy-light-shadow: 0 8px 18px rgba(15,23,42,.08);
}
html.dark,
body.dark {
  color-scheme: dark;
  --bg: var(--yy-bg-dark);
  --surface: var(--yy-card-dark);
  --surface-soft: rgba(255,255,255,.035);
  --surface-warm: var(--yy-card-dark-hover);
  --panel: var(--yy-card-dark);
  --panel2: rgba(255,255,255,.035);
  --panel3: rgba(255,255,255,.06);
  --text: var(--yy-text-dark);
  --muted: var(--yy-text-dark-dim);
  --faint: var(--yy-text-dark-muted);
  --line: var(--yy-border-dark);
  --line-strong: var(--yy-border-dark-hover);
  --accent: var(--yy-primary);
  --accent-strong: var(--yy-primary);
  --accent-soft: var(--yy-primary-dim);
  --tool-bg: var(--yy-bg-dark);
  --tool-card: var(--yy-card-dark);
  --tool-section: rgba(255,255,255,.035);
  --tool-section-strong: rgba(59,110,255,.08);
  --tool-line: var(--yy-border-dark);
  --tool-line-soft: var(--yy-border-dark);
  --tool-text: var(--yy-text-dark);
  --tool-muted: var(--yy-text-dark-dim);
  --tool-faint: var(--yy-text-dark-muted);
  --tool-accent: var(--yy-primary);
  --tool-accent-soft: var(--yy-primary-dim);
  --tool-green: var(--yy-primary);
  --tool-warn: #FFD641;
  --daoi-tool-primary: var(--yy-primary);
  --daoi-tool-primary-hover: var(--yy-primary-hover);
  --daoi-tool-on-primary: var(--yy-on-primary);
  --daoi-tool-surface: rgba(0,0,0,.86);
  --daoi-tool-surface-2: rgba(255,255,255,.045);
  --daoi-tool-border: var(--yy-border-dark);
  --daoi-tool-text: rgba(255,255,255,.92);
  --daoi-tool-muted: rgba(255,255,255,.70);
}
html.light,
body.light {
  color-scheme: light;
  --bg: var(--yy-bg-light);
  --surface: var(--yy-card-light);
  --surface-soft: var(--yy-card-light-hover);
  --surface-warm: var(--yy-card-light);
  --panel: var(--yy-card-light);
  --panel2: var(--yy-card-light-hover);
  --panel3: #eef3f6;
  --text: var(--yy-text-light);
  --muted: var(--yy-text-light-dim);
  --faint: var(--yy-text-light-muted);
  --line: var(--yy-border-light);
  --line-strong: var(--yy-border-light-hover);
  --accent: var(--yy-primary-light);
  --accent-strong: #263F91;
  --accent-soft: var(--yy-primary-light-dim);
  --tool-bg: var(--yy-bg-light);
  --tool-card: var(--yy-card-light);
  --tool-section: var(--yy-card-light-hover);
  --tool-section-strong: #F4F6FF;
  --tool-line: var(--yy-border-light);
  --tool-line-soft: rgba(15,23,42,.12);
  --tool-text: var(--yy-text-light);
  --tool-muted: var(--yy-text-light-dim);
  --tool-faint: var(--yy-text-light-muted);
  --tool-accent: var(--yy-primary-light);
  --tool-accent-soft: var(--yy-primary-light-dim);
  --tool-green: var(--yy-primary-light);
  --tool-warn: #ca8a04;
}
body.dark,
body.dark .app.slerf-shell,
body.dark .main,
body.dark #content {
  background: var(--yy-bg-dark) !important;
  color: var(--yy-text-dark) !important;
}
body.light,
body.light .app.slerf-shell,
body.light .main,
body.light #content {
  background: var(--yy-bg-light) !important;
  color: var(--yy-text-light) !important;
}
body.dark .app.slerf-shell { isolation: isolate; }
body.dark .main { background: transparent !important; }
body.dark .tool-starfield-canvas {
  display: block !important;
  opacity: .9 !important;
  mix-blend-mode: screen;
}
body.light .tool-starfield-canvas { display: none !important; }

body.dark .sidebar,
body.dark .brand,
body.dark .topbar {
  background: var(--yy-card-dark) !important;
  border-color: var(--yy-border-dark) !important;
  color: var(--yy-text-dark) !important;
}
body.light .sidebar,
body.light .brand,
body.light .topbar {
  background: var(--yy-card-light) !important;
  border-color: var(--yy-border-light) !important;
  color: var(--yy-text-light) !important;
}
body.dark .topbar,
body.light .topbar { backdrop-filter: blur(12px) !important; }
body.light .topbar { background: rgba(246,248,251,.92) !important; }
body.dark .brand h2,
body.dark .nav-title strong { color: var(--yy-text-dark) !important; }
body.light .brand h2,
body.light .nav-title strong { color: var(--yy-text-light) !important; }
body.dark .nav-title,
body.dark .nav-item,
body.dark .nav-child-icon,
body.dark .chevron { color: var(--yy-text-dark-dim) !important; }
body.light .nav-title,
body.light .nav-item,
body.light .nav-child-icon,
body.light .chevron { color: var(--yy-text-light-dim) !important; }
body.dark .nav-title:hover,
body.dark .nav-item:hover {
  background: rgba(255,255,255,.05) !important;
  color: var(--yy-text-dark) !important;
}
body.light .nav-title:hover,
body.light .nav-item:hover {
  background: var(--yy-primary-light-dim) !important;
  color: var(--yy-text-light) !important;
}
body.dark .nav-item.active,
body.dark .nav-title.direct.active,
body.dark .nav-group.has-active > .nav-title {
  background: var(--yy-primary-dim) !important;
  color: var(--yy-primary) !important;
  box-shadow: inset 3px 0 0 var(--yy-primary) !important;
}
body.light .nav-item.active,
body.light .nav-title.direct.active,
body.light .nav-group.has-active > .nav-title {
  background: var(--yy-primary-light-dim) !important;
  color: var(--yy-primary-light) !important;
  box-shadow: inset 3px 0 0 var(--yy-primary-light) !important;
}
body.dark .mark,
body.dark .nav-icon,
body.dark .nav-item::before,
body.dark .chain-logo {
  background: var(--yy-primary-dim) !important;
  border-color: rgba(59,110,255,.30) !important;
  color: var(--yy-primary) !important;
}
body.light .mark,
body.light .nav-icon,
body.light .nav-item::before,
body.light .chain-logo {
  background: var(--yy-primary-light-dim) !important;
  border-color: rgba(62,95,168,.25) !important;
  color: var(--yy-primary-light) !important;
}
body.dark .chain-pill,
body.dark .icon-btn,
body.dark #connect {
  color: #d8fff7 !important;
  background: linear-gradient(135deg, rgba(59,110,255,.24), rgba(59,110,255,.14)) !important;
  border: 1px solid var(--yy-primary-border) !important;
  box-shadow: 0 4px 12px rgba(59,110,255,.16) !important;
}
body.light .chain-pill,
body.light .icon-btn,
body.light #connect {
  color: var(--yy-text-light) !important;
  background: var(--yy-card-light) !important;
  border: 1px solid var(--yy-primary-light-border) !important;
  box-shadow: var(--yy-light-shadow) !important;
}

body.dark #content :is(.slerf-tool-card,.exact-page,.tool-card,.panel-main,.work-panel > aside,.logpanel) {
  background: var(--yy-card-gradient), var(--yy-card-dark) !important;
  border: 1px solid var(--yy-border-dark) !important;
  color: var(--yy-text-dark) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
}
body.light #content :is(.slerf-tool-card,.exact-page,.tool-card,.panel-main,.work-panel > aside,.logpanel) {
  background: var(--yy-card-light) !important;
  border: 1px solid var(--yy-border-light) !important;
  color: var(--yy-text-light) !important;
  box-shadow: var(--yy-light-shadow) !important;
}
body.dark #content :is(.slerf-card-head,.slerf-card-body) {
  background: transparent !important;
  border-color: var(--yy-border-dark) !important;
}
body.light #content .slerf-card-head {
  background: var(--yy-card-light) !important;
  border-color: rgba(15,23,42,.12) !important;
}

body.dark #content :is(
  .slerf-section,.exact-section,.form-section,.relay-box,.notice,.plan-section,.sub-card,.slerf-work-left,.slerf-work-right,
  .slerf-work-left .sub-card,.slerf-workbench-body,.slerf-workbench-grid,.active-wallet-box,.trade-log-section,.wallet-toolbar,
  .slerf-new-main-wallet,.slerf-wallet-import-grid,.income-panel,.income-choice button,.income-choice > div,.flap-create-mode-section,
  .flap-create-mode-picker button,.flap-dev-curve-create,.openfour-exec-mode,.openfour-user-note,.openfour-tax-rates label,
  .flap-tax-percent-grid label,.flap-tax-address,.flap-tax-min-share,.local-log li,.mini-steps li,.metric-grid div,.slerf-stat-row div,
  .mode-card,.choice-card,.home-tool-card,.wide-trade-card,.home-benefits div,.micro-home-status > div,.home-hero,.active-metrics,
  .exec-grid span,.empty-log,.empty-wallet-state.static,.empty-wallet-state div,.token-swap-strip,.settings-row > div,.search-line,
  .slerf-log-empty,.slerf-side-note,.upload-box,.slerf-upload,.flap-upload-box,.slerf-output,.flap-preview,.fourmeme-output,
  .table-shell,.slerf-table-wrap,.fourmeme-table-wrap,.flap-table-wrap,.advanced-sort,.readonly-mode-note,.slerf-alert,.original-note,
  .original-note.slerf-note,.official-badge,.openfour-badge,.flap-real-exec-note,.flap-live-warning,.real-tx-bar,.real-tx-bar.warning,
  .bsc-only,.flap-salt-box,.local-api-panel,.closure-strip,.radio-like,.slerf-segmented,.exact-tabs,.exact-seg,.exact-stepper div,
  .exact-summary,.exact-token-box,.token-picker,.suffix-input,.paste-input,.amount-cell,.flap-slider-line,.chain-tabs span,.chain-tabs button,
  .dex-pills span,.dex-pills button,.big-chain,.mini-chains span,.bundle-page .switch-row,.bundle-page .form-section.flap-section,
  .overview-card,.batch-wallet-collapse,.tax-detail-grid,.cost-row,.builder-submit-section,.wallet-import-section,.buy-params-section,
  .create-options-section,.tax-section,.openfour-tax-section,.flap-checkgrid
) {
  background: rgba(255,255,255,.035) !important;
  background-image: none !important;
  border-color: var(--yy-border-dark) !important;
  color: var(--yy-text-dark-dim) !important;
  box-shadow: none !important;
}
body.dark #content :is(.slerf-wallet-import-grid,.income-panel,.exact-summary,.token-picker,.exact-token-box,.suffix-input,.paste-input,.amount-cell,.table-shell,.slerf-table-wrap,.fourmeme-table-wrap,.flap-table-wrap,.active-wallet-box,.trade-log-section,.slerf-output,.flap-preview,.fourmeme-output) {
  background: rgba(0,0,0,.60) !important;
}
body.light #content :is(
  .slerf-section,.exact-section,.form-section,.relay-box,.notice,.plan-section,.sub-card,.slerf-work-left,.slerf-work-right,
  .slerf-work-left .sub-card,.slerf-workbench-body,.slerf-workbench-grid,.active-wallet-box,.trade-log-section,.wallet-toolbar,
  .slerf-new-main-wallet,.slerf-wallet-import-grid,.income-panel,.income-choice button,.income-choice > div,.flap-create-mode-section,
  .flap-create-mode-picker button,.flap-dev-curve-create,.openfour-exec-mode,.openfour-user-note,.openfour-tax-rates label,
  .flap-tax-percent-grid label,.flap-tax-address,.flap-tax-min-share,.local-log li,.mini-steps li,.metric-grid div,.slerf-stat-row div,
  .mode-card,.choice-card,.home-tool-card,.wide-trade-card,.home-benefits div,.micro-home-status > div,.home-hero,.active-metrics,
  .exec-grid span,.empty-log,.empty-wallet-state.static,.empty-wallet-state div,.token-swap-strip,.settings-row > div,.search-line,
  .slerf-log-empty,.slerf-side-note,.upload-box,.slerf-upload,.flap-upload-box,.slerf-output,.flap-preview,.fourmeme-output,
  .table-shell,.slerf-table-wrap,.fourmeme-table-wrap,.flap-table-wrap,.advanced-sort,.readonly-mode-note,.slerf-alert,.original-note,
  .original-note.slerf-note,.official-badge,.openfour-badge,.flap-real-exec-note,.flap-live-warning,.real-tx-bar,.real-tx-bar.warning,
  .bsc-only,.flap-salt-box,.local-api-panel,.closure-strip,.radio-like,.slerf-segmented,.exact-tabs,.exact-seg,.exact-stepper div,
  .exact-summary,.exact-token-box,.token-picker,.suffix-input,.paste-input,.amount-cell,.flap-slider-line,.chain-tabs span,.chain-tabs button,
  .dex-pills span,.dex-pills button,.big-chain,.mini-chains span,.bundle-page .switch-row,.bundle-page .form-section.flap-section,
  .overview-card,.batch-wallet-collapse,.tax-detail-grid,.cost-row,.builder-submit-section,.wallet-import-section,.buy-params-section,
  .create-options-section,.tax-section,.openfour-tax-section,.flap-checkgrid
) {
  background: var(--yy-card-light-hover) !important;
  background-image: none !important;
  border-color: rgba(15,23,42,.12) !important;
  color: var(--yy-text-light-dim) !important;
  box-shadow: none !important;
}
body.light #content :is(.slerf-wallet-import-grid,.income-panel,.exact-summary,.token-picker,.exact-token-box,.suffix-input,.paste-input,.amount-cell,.table-shell,.slerf-table-wrap,.fourmeme-table-wrap,.flap-table-wrap,.active-wallet-box,.trade-log-section,.slerf-output,.flap-preview,.fourmeme-output) {
  background: var(--yy-card-light) !important;
}

body.dark #content :is(h1,h2,h3,h4,.slerf-card-head h1,.slerf-title-left h1,.slerf-section h2,.slerf-section h3,.slerf-section h4,.exact-section h2,.exact-section h3,.exact-section h4,.section-mini-label,.switch-title h3,.flap-create-mode-head span,.flap-create-mode-picker strong,.income-choice strong,.home-tool-card b,.wide-trade-card b,.home-benefits b,.micro-home-status b,.slerf-stat-row b,.metric-grid b,.exact-summary b,.token-picker b,.exact-token-box b) {
  color: var(--yy-text-dark) !important;
}
body.light #content :is(h1,h2,h3,h4,.slerf-card-head h1,.slerf-title-left h1,.slerf-section h2,.slerf-section h3,.slerf-section h4,.exact-section h2,.exact-section h3,.exact-section h4,.section-mini-label,.switch-title h3,.flap-create-mode-head span,.flap-create-mode-picker strong,.income-choice strong,.home-tool-card b,.wide-trade-card b,.home-benefits b,.micro-home-status b,.slerf-stat-row b,.metric-grid b,.exact-summary b,.token-picker b,.exact-token-box b) {
  color: var(--yy-text-light) !important;
}
body.dark #content :is(p,span,small,em,label,.lead,.hint,.sort-help,.fee-line,.contract-line,.token-swap-strip small,.flap-upload-copy,.flap-upload-copy p,.slerf-card-head p,.closure-strip span,.official-badge span,.openfour-badge span,.real-tx-bar span,.flap-real-exec-note span,.flap-live-warning span,.local-api-panel span,.home-tool-card span,.wide-trade-card span,.home-benefits span,.micro-home-status span,.slerf-stat-row span,.metric-grid span,.exec-grid span,.active-metrics,.slerf-log-empty,.empty-wallet-state,.fourmeme-muted,.fourmeme-status) {
  color: var(--yy-text-dark-dim) !important;
}
body.light #content :is(p,span,small,em,label,.lead,.hint,.sort-help,.fee-line,.contract-line,.token-swap-strip small,.flap-upload-copy,.flap-upload-copy p,.slerf-card-head p,.closure-strip span,.official-badge span,.openfour-badge span,.real-tx-bar span,.flap-real-exec-note span,.flap-live-warning span,.local-api-panel span,.home-tool-card span,.wide-trade-card span,.home-benefits span,.micro-home-status span,.slerf-stat-row span,.metric-grid span,.exec-grid span,.active-metrics,.slerf-log-empty,.empty-wallet-state,.fourmeme-muted,.fourmeme-status) {
  color: var(--yy-text-light-dim) !important;
}
body.dark #content :is(label,.exact-field,.slerf-section label,.sub-card label,.slerf-linear-page label,th,.advanced-sort summary) {
  color: rgba(255,255,255,.76) !important;
}
body.light #content :is(label,.exact-field,.slerf-section label,.sub-card label,.slerf-linear-page label,th,.advanced-sort summary) {
  color: rgba(15,23,42,.72) !important;
}

body.dark #content :is(input,textarea,select,.slerf-section input,.slerf-section textarea,.slerf-section select,.exact-field input,.exact-field textarea,.exact-field select,.sub-card input,.sub-card select,.slerf-linear-page input,.slerf-linear-page textarea,.slerf-linear-page select,.suffix-input input,.paste-input input,.amount-cell input,.token-picker input,.exact-token-box input,.flap-tax-address input,.flap-tax-min-share input,table input) {
  background: rgba(0,0,0,.62) !important;
  background-image: none !important;
  border-color: var(--yy-border-dark) !important;
  color: var(--yy-text-dark) !important;
  -webkit-text-fill-color: var(--yy-text-dark) !important;
  box-shadow: none !important;
}
body.light #content :is(input,textarea,select,.slerf-section input,.slerf-section textarea,.slerf-section select,.exact-field input,.exact-field textarea,.exact-field select,.sub-card input,.sub-card select,.slerf-linear-page input,.slerf-linear-page textarea,.slerf-linear-page select,.suffix-input input,.paste-input input,.amount-cell input,.token-picker input,.exact-token-box input,.flap-tax-address input,.flap-tax-min-share input,table input) {
  background: var(--yy-card-light) !important;
  background-image: none !important;
  border-color: var(--yy-border-light) !important;
  color: var(--yy-text-light) !important;
  -webkit-text-fill-color: var(--yy-text-light) !important;
  box-shadow: none !important;
}
body.dark #content :is(input,textarea,select)::placeholder { color: rgba(255,255,255,.38) !important; }
body.light #content :is(input,textarea,select)::placeholder { color: rgba(15,23,42,.46) !important; }
body.dark #content :is(input,textarea,select):focus {
  border-color: rgba(59,110,255,.8) !important;
  box-shadow: 0 0 0 2px rgba(59,110,255,.26) !important;
}
body.light #content :is(input,textarea,select):focus {
  border-color: rgba(62,95,168,.55) !important;
  box-shadow: 0 0 0 2px rgba(62,95,168,.18) !important;
}

body.dark #content :is(table,.slerf-buy-table,.slerf-sort-table,.flap-table,.curve-table,.fourmeme-wallet-table) {
  background: rgba(0,0,0,.66) !important;
  border-color: var(--yy-border-dark) !important;
  color: var(--yy-text-dark-dim) !important;
}
body.light #content :is(table,.slerf-buy-table,.slerf-sort-table,.flap-table,.curve-table,.fourmeme-wallet-table) {
  background: var(--yy-card-light) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: var(--yy-text-light-dim) !important;
}
body.dark #content :is(thead,tbody,tr,th,td) { border-color: var(--yy-border-dark) !important; }
body.light #content :is(thead,tbody,tr,th,td) { border-color: rgba(15,23,42,.10) !important; }
body.dark #content :is(th,table th,.slerf-buy-table th,.slerf-sort-table th,.flap-table th,.curve-table th,.fourmeme-wallet-table th) {
  background: rgba(255,255,255,.045) !important;
  color: rgba(255,255,255,.66) !important;
}
body.light #content :is(th,table th,.slerf-buy-table th,.slerf-sort-table th,.flap-table th,.curve-table th,.fourmeme-wallet-table th) {
  background: #f8fafc !important;
  color: rgba(15,23,42,.56) !important;
}
body.dark #content :is(td,table td,.slerf-buy-table td,.slerf-sort-table td,.flap-table td,.curve-table td,.fourmeme-wallet-table td) {
  background: rgba(0,0,0,.45) !important;
  color: rgba(255,255,255,.82) !important;
}
body.light #content :is(td,table td,.slerf-buy-table td,.slerf-sort-table td,.flap-table td,.curve-table td,.fourmeme-wallet-table td) {
  background: var(--yy-card-light) !important;
  color: rgba(15,23,42,.78) !important;
}
body.dark #content tr:hover td { background: rgba(59,110,255,.07) !important; }
body.light #content tr:hover td { background: #F4F6FF !important; }

body.dark #content :is(button,.slerf-submit,.center-actions > button,.two-submit > button,.real-tx-bar button,.wallet-toolbar button,.slerf-action-line button,.table-tools button,.sort-actions button,.add-wallet-btn,.local-api-panel button,.flap-salt-box button,.paste-input button,.search-line button,.slerf-wallet-tools button,.slerf-help-actions a,.mini):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete):not(.slerf-alert button) {
  background: var(--yy-primary) !important;
  background-image: none !important;
  border-color: rgba(59,110,255,.72) !important;
  color: var(--yy-on-primary) !important;
  box-shadow: 0 4px 12px rgba(59,110,255,.16) !important;
}
body.light #content :is(button,.slerf-submit,.center-actions > button,.two-submit > button,.real-tx-bar button,.wallet-toolbar button,.slerf-action-line button,.table-tools button,.sort-actions button,.add-wallet-btn,.local-api-panel button,.flap-salt-box button,.paste-input button,.search-line button,.slerf-wallet-tools button,.slerf-help-actions a,.mini):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete):not(.slerf-alert button) {
  background: var(--yy-primary-light) !important;
  background-image: none !important;
  border-color: rgba(62,95,168,.55) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 18px rgba(62,95,168,.16) !important;
}
body.dark #content :is(button,.slerf-submit,.center-actions > button,.two-submit > button,.real-tx-bar button,.wallet-toolbar button,.slerf-action-line button,.table-tools button,.sort-actions button,.add-wallet-btn,.local-api-panel button,.flap-salt-box button,.paste-input button,.search-line button,.slerf-wallet-tools button,.slerf-help-actions a,.mini):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete):not(.slerf-alert button):hover {
  background: var(--yy-primary-hover) !important;
  color: var(--yy-on-primary) !important;
}
body.light #content :is(button,.slerf-submit,.center-actions > button,.two-submit > button,.real-tx-bar button,.wallet-toolbar button,.slerf-action-line button,.table-tools button,.sort-actions button,.add-wallet-btn,.local-api-panel button,.flap-salt-box button,.paste-input button,.search-line button,.slerf-wallet-tools button,.slerf-help-actions a,.mini):not(.nav-title):not(.nav-item):not(.menu-fold):not(.icon-btn):not(.theme-toggle):not(.home-tool-card):not(.wide-trade-card):not(.choice-card):not(.row-delete):not(.slerf-alert button):hover {
  background: #6D8CFF !important;
  color: #FFFFFF !important;
}
body.dark #content :is(.secondary,.ghost-btn,.safe-btn,.exact-tabs button,.exact-tabs span,.exact-seg button,.exact-seg span,.radio-like button,.radio-like span,.segmented button,.segmented span,.slerf-segmented button,.slerf-segmented span,.chain-tabs button,.chain-tabs span,.dex-pills button,.dex-pills span,.income-choice button,.income-choice > div,.flap-create-mode-picker button,.choice-card,.home-tool-card,.wide-trade-card) {
  background: rgba(255,255,255,.04) !important;
  border-color: var(--yy-border-dark) !important;
  color: rgba(255,255,255,.76) !important;
  box-shadow: none !important;
}
body.light #content :is(.secondary,.ghost-btn,.safe-btn,.exact-tabs button,.exact-tabs span,.exact-seg button,.exact-seg span,.radio-like button,.radio-like span,.segmented button,.segmented span,.slerf-segmented button,.slerf-segmented span,.chain-tabs button,.chain-tabs span,.dex-pills button,.dex-pills span,.income-choice button,.income-choice > div,.flap-create-mode-picker button,.choice-card,.home-tool-card,.wide-trade-card) {
  background: var(--yy-card-light) !important;
  border-color: var(--yy-border-light) !important;
  color: rgba(15,23,42,.76) !important;
  box-shadow: none !important;
}
body.dark #content :is(.exact-tabs button.active,.exact-tabs span.active,.exact-seg button.active,.exact-seg span.active,.radio-like button.active,.radio-like span.active,.segmented button.active,.segmented span.active,.slerf-segmented button.active,.slerf-segmented span.active,.chain-tabs button.active,.chain-tabs span.active,.dex-pills button.active,.dex-pills span.active,.income-choice button.active,.income-choice > div.active,.flap-create-mode-picker button.active,.choice-card.active) {
  background: var(--yy-primary-soft) !important;
  border-color: var(--yy-primary-border) !important;
  color: var(--yy-primary) !important;
}
body.light #content :is(.exact-tabs button.active,.exact-tabs span.active,.exact-seg button.active,.exact-seg span.active,.radio-like button.active,.radio-like span.active,.segmented button.active,.segmented span.active,.slerf-segmented button.active,.slerf-segmented span.active,.chain-tabs button.active,.chain-tabs span.active,.dex-pills button.active,.dex-pills span.active,.income-choice button.active,.income-choice > div.active,.flap-create-mode-picker button.active,.choice-card.active) {
  background: var(--yy-primary-light-dim) !important;
  border-color: var(--yy-primary-light-border) !important;
  color: var(--yy-primary-light) !important;
}
body.dark #content :is(.row-delete,.slerf-alert > button) {
  background: rgba(255,73,74,.10) !important;
  border-color: rgba(255,73,74,.24) !important;
  color: #ff8d8e !important;
  box-shadow: none !important;
}
body.light #content :is(.row-delete,.slerf-alert > button) {
  background: rgba(220,38,38,.08) !important;
  border-color: rgba(220,38,38,.20) !important;
  color: #dc2626 !important;
  box-shadow: none !important;
}
body.dark #content button[disabled],
body.dark #content :is(.readonly-options span,.muted-link) {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.38) !important;
  box-shadow: none !important;
}
body.light #content button[disabled],
body.light #content :is(.readonly-options span,.muted-link) {
  background: rgba(15,23,42,.04) !important;
  border-color: rgba(15,23,42,.08) !important;
  color: rgba(15,23,42,.38) !important;
  box-shadow: none !important;
}
body.dark #content button :is(span,b,em,strong),
body.light #content button :is(span,b,em,strong) { color: inherit !important; }
body.dark #content :is(.wide-trade-card em,.wide-trade-card strong,.flap-create-mode-head b,.section-mini-label b,.flap-tax-total.complete,.openfour-rate-total.complete,.closure-badge,.closure-strip b,.readonly-mode-note b,.official-badge b,.openfour-badge b,.flap-real-exec-note b,.local-api-panel b,.micro-home-status b,.metric-grid b,.slerf-stat-row b) {
  background: var(--yy-primary-soft) !important;
  border-color: var(--yy-primary-border) !important;
  color: var(--yy-primary) !important;
}
body.light #content :is(.wide-trade-card em,.wide-trade-card strong,.flap-create-mode-head b,.section-mini-label b,.flap-tax-total.complete,.openfour-rate-total.complete,.closure-badge,.closure-strip b,.readonly-mode-note b,.official-badge b,.openfour-badge b,.flap-real-exec-note b,.local-api-panel b,.micro-home-status b,.metric-grid b,.slerf-stat-row b) {
  background: var(--yy-primary-light-dim) !important;
  border-color: var(--yy-primary-light-border) !important;
  color: var(--yy-primary-light) !important;
}
body.dark #content :is(.closure-badge.entry-wired,.closure-badge.blocked-original-disabled,.closure-badge.blocked-no-relay,.closure-badge.blocked-needs-official-signature,.closure-badge.blocked-cost,.closure-badge.blocked-needs-contract,.closure-strip.entry-wired b,.closure-strip.blocked-original-disabled b,.closure-strip.blocked-no-relay b,.closure-strip.blocked-needs-official-signature b,.closure-strip.blocked-cost b,.closure-strip.blocked-needs-contract b,.flap-live-warning b,.real-tx-bar.warning b) {
  background: rgba(255,214,65,.12) !important;
  border-color: rgba(255,214,65,.24) !important;
  color: #FFD641 !important;
}
body.light #content :is(.closure-badge.entry-wired,.closure-badge.blocked-original-disabled,.closure-badge.blocked-no-relay,.closure-badge.blocked-needs-official-signature,.closure-badge.blocked-cost,.closure-badge.blocked-needs-contract,.closure-strip.entry-wired b,.closure-strip.blocked-original-disabled b,.closure-strip.blocked-no-relay b,.closure-strip.blocked-needs-official-signature b,.closure-strip.blocked-cost b,.closure-strip.blocked-needs-contract b,.flap-live-warning b,.real-tx-bar.warning b) {
  background: rgba(202,138,4,.10) !important;
  border-color: rgba(202,138,4,.22) !important;
  color: #a16207 !important;
}
body.dark #content :is(.flap-tax-progress) { background: rgba(255,255,255,.08) !important; }
body.light #content :is(.flap-tax-progress) { background: rgba(15,23,42,.10) !important; }
body.dark #content :is(.flap-tax-progress i,.slerf-switch input:checked + span),
body.light #content :is(.flap-tax-progress i,.slerf-switch input:checked + span) { background: var(--accent) !important; }

body.dark #content :is(.slerf-upload,.flap-upload-box) {
  min-height: 150px !important;
  background: rgba(0,0,0,.58) !important;
  border-color: rgba(59,110,255,.28) !important;
}
body.light #content :is(.slerf-upload,.flap-upload-box) {
  min-height: 150px !important;
  background: var(--yy-card-light) !important;
  border-color: rgba(62,95,168,.24) !important;
}
body.dark #content :is(.flap-upload-copy p:first-child,.slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p:first-child) { color: var(--yy-text-dark) !important; }
body.light #content :is(.flap-upload-copy p:first-child,.slerf-upload > div:not(.upload-actions):not(.flap-upload-copy) p:first-child) { color: var(--yy-text-light) !important; }

@media (prefers-reduced-motion: reduce) {
  body.dark .main::before,
  body.dark .main::after { animation: none !important; }
  body.dark .tool-starfield-canvas { opacity: .55 !important; }
}

/* 20260610 daoi tools clean brand and bsc icon fix */
.brand .mark.brand-mark {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.brand-logo-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 8px rgba(59,110,255,.20));
}
body.light .brand-logo-img { filter: drop-shadow(0 4px 10px rgba(15,23,42,.08)); }
.chain-logo.bsc-logo,
.slerf-chain-select .bsc-logo {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #F0B90B !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(240,185,11,.28), 0 6px 16px rgba(240,185,11,.16) !important;
  overflow: hidden !important;
}
.chain-logo.bsc-logo svg,
.slerf-chain-select .bsc-logo svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
body.dark .chain-logo.bsc-logo,
body.light .chain-logo.bsc-logo,
body.dark .slerf-chain-select .bsc-logo,
body.light .slerf-chain-select .bsc-logo {
  background: #F0B90B !important;
  border: 0 !important;
  color: #fff !important;
}

/* 20260628 global language selector */
.tool-lang-select {
  height: 34px;
  min-width: 68px;
  border: 1px solid rgba(59,110,255,.24);
  border-radius: 999px;
  background: rgba(9,17,22,.72);
  color: var(--text);
  padding: 0 10px;
  font: 800 12px/1 inherit;
  letter-spacing: .04em;
  outline: none;
  cursor: pointer;
}
.tool-lang-select:focus-visible {
  border-color: rgba(59,110,255,.58);
  box-shadow: 0 0 0 3px rgba(59,110,255,.16);
}
body.light .tool-lang-select {
  background: rgba(255,255,255,.94);
  color: var(--yy-text-light);
  border-color: rgba(62,95,168,.28);
}
@media (max-width: 720px) {
  .tool-lang-select { min-width: 58px; height: 32px; padding: 0 7px; }
}

/* 20260701 my-tools mobile fit + locale boot guard */
html.locale-booting body {
  visibility: hidden;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
.top-actions > * {
  flex-shrink: 0;
}
.chain-pill {
  width: auto !important;
  white-space: nowrap !important;
}
.tool-lang-select {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 78px !important;
  height: 42px !important;
  padding: 0 32px 0 16px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  text-align: center !important;
  text-align-last: center !important;
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px !important;
}
.icon-btn,
.theme-toggle {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  flex: 0 0 42px !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  overflow: hidden !important;
}
.wallet {
  min-width: 0 !important;
  flex: 0 0 auto !important;
}
#connect {
  white-space: nowrap !important;
}
.home-hero::after,
.exact-home-hero::after {
  pointer-events: none !important;
  transform: translateZ(0) !important;
}

@media (max-width: 760px) {
  body.dark .main::before,
  body.dark .main::after {
    display: none !important;
  }
  body.dark .tool-starfield-canvas {
    opacity: .48 !important;
  }
  .app.slerf-shell {
    display: block !important;
    grid-template-columns: none !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    padding: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    overflow: visible !important;
  }
  .brand {
    position: relative !important;
    height: 56px !important;
    padding: 0 14px !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .brand .mark.brand-mark {
    width: 32px !important;
    height: 32px !important;
  }
  .brand h2 {
    font-size: 15px !important;
  }
  .menu-fold {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 999px !important;
  }
  #nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  #nav::-webkit-scrollbar { display: none !important; }
  .nav-group {
    position: relative !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  .nav-title,
  .nav-title.direct {
    min-height: 44px !important;
    height: 44px !important;
    grid-template-columns: auto minmax(0, auto) auto !important;
    gap: 7px !important;
    padding: 0 12px !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    background: var(--surface-soft) !important;
    box-shadow: none !important;
  }
  .nav-title.direct { grid-template-columns: auto minmax(0, auto) !important; }
  .nav-title strong {
    font-size: 12px !important;
    max-width: 5.5em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .nav-icon,
  .nav-child-icon,
  .nav-spacer {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 13px !important;
  }
  .chevron {
    font-size: 11px !important;
  }
  .nav-children {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    z-index: 80 !important;
    min-width: 220px !important;
    max-width: min(86vw, 320px) !important;
    max-height: 52dvh !important;
    overflow: auto !important;
    padding: 8px !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-float) !important;
  }
  .nav-item {
    min-height: 40px !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
  }
  .nav-item::before { display: none !important; }
  .nav-item-label {
    font-size: 13px !important;
  }
  .main {
    height: auto !important;
    min-height: calc(100dvh - 112px) !important;
    padding: 0 12px 36px !important;
    overflow: visible !important;
  }
  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
    height: auto !important;
    min-height: 64px !important;
    margin: 0 -12px 16px !important;
    padding: 10px 12px !important;
    align-items: stretch !important;
    justify-content: center !important;
  }
  .top-actions {
    display: grid !important;
    grid-template-columns: 48px 58px 44px minmax(96px, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: stretch !important;
  }
  .chain-pill,
  .tool-lang-select,
  #connect {
    height: 44px !important;
    min-height: 44px !important;
  }
  .chain-pill {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0 8px !important;
    gap: 6px !important;
  }
  .chain-logo.bsc-logo {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }
  .tool-lang-select {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 26px 0 10px !important;
  }
  .theme-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    flex-basis: 44px !important;
    border-radius: 999px !important;
  }
  .wallet {
    width: 100% !important;
    display: block !important;
  }
  #connect {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    margin: 0 !important;
  }
  .slerf-home,
  .tool-page,
  .work-panel,
  .work-panel.no-aside {
    max-width: none !important;
    width: 100% !important;
  }
  .exact-home-hero,
  .home-hero {
    min-height: 180px !important;
    border-radius: 18px !important;
    padding: 18px !important;
  }
  .hero-copy h1 {
    margin-bottom: 20px !important;
    font-size: 20px !important;
    line-height: 1.28 !important;
  }
  .chain-tabs {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  .chain-tabs a,
  .chain-tabs span,
  .chain-tabs button {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 520px) {
  .top-actions {
    grid-template-columns: 46px 56px 42px minmax(86px, 1fr) !important;
  }
  .wallet {
    grid-column: auto !important;
  }
}

@media (max-width: 340px) {
  .top-actions {
    grid-template-columns: 40px 48px 38px minmax(70px, .9fr) !important;
    gap: 4px !important;
  }
  .chain-pill {
    padding: 0 6px !important;
    gap: 4px !important;
    font-size: 11px !important;
  }
  .tool-lang-select {
    min-width: 50px !important;
    padding-left: 6px !important;
    padding-right: 16px !important;
    font-size: 12px !important;
  }
  #connect {
    padding: 0 6px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  .top-actions {
    grid-template-columns: 44px 54px 40px minmax(82px, 1fr) !important;
  }
  .chain-pill {
    padding: 0 10px !important;
  }
  .chain-pill > span:last-child {
    display: none !important;
  }
}

/* 20260701 keep mobile top controls in one row */
@media (max-width: 520px) {
  .topbar {
    min-height: 64px !important;
  }
  .top-actions {
    grid-template-columns: 44px 54px 40px minmax(84px, 1fr) !important;
    gap: 6px !important;
  }
  .wallet {
    grid-column: auto !important;
  }
  .chain-pill,
  .tool-lang-select,
  .theme-toggle,
  #connect {
    height: 44px !important;
    min-height: 44px !important;
  }
  .chain-pill {
    padding: 0 8px !important;
    gap: 6px !important;
    font-size: 13px !important;
  }
  .chain-logo.bsc-logo {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }
  .tool-lang-select {
    min-width: 56px !important;
    padding: 0 18px 0 8px !important;
    font-size: 13px !important;
    background-position: calc(100% - 12px) 18px, calc(100% - 7px) 18px !important;
  }
  #connect {
    min-width: 0 !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    letter-spacing: -.02em !important;
  }
}

@media (max-width: 360px) {
  .top-actions {
    grid-template-columns: 40px 48px 38px minmax(72px, .92fr) !important;
    gap: 5px !important;
  }
  .theme-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
  .chain-logo.bsc-logo {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
  }
  .chain-pill,
  .tool-lang-select,
  #connect {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 12px !important;
  }
}

/* 20260701 Android ultra-narrow guard: keep the scrollable nav inside the page, not the page itself. */
@media (max-width: 760px) {
  html,
  body,
  .app.slerf-shell {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  #nav {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overscroll-behavior-x: contain !important;
  }
}


/* 20260701 mobile touch target hardening: Android needs real 44px hit areas, not tiny visual pills. */
@media (max-width: 760px) {
  .nav-item,
  .nav-title,
  .nav-title.direct,
  .slerf-help-actions .safe-tip,
  .slerf-help-actions a,
  .slerf-chain-select,
  .wallet-toolbar button,
  .dex-pills button,
  .radio-like button,
  .chain-tabs a,
  .chain-tabs span,
  .chain-tabs button {
    min-height: 44px !important;
    touch-action: manipulation !important;
  }
  .nav-children .nav-item {
    min-height: 44px !important;
  }
  .social-row span {
    min-height: 32px !important;
  }
}

@media (max-width: 360px) {
  .chain-pill,
  .tool-lang-select,
  .theme-toggle,
  #connect {
    height: 42px !important;
    min-height: 42px !important;
  }
}


/* 20260702 Daoi mobile toolbar ratio: chain icon only, compact wallet visible on Android. */
@media (max-width: 760px) {
  .chain-pill {
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .chain-pill .chain-name { display: none !important; }
  .chain-pill .chain-caret {
    display: inline-block !important;
    margin-left: 3px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }
  .chain-logo.bsc-logo {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
  }
  .top-actions {
    grid-template-columns: 44px 54px 40px minmax(84px, 1fr) !important;
    gap: 6px !important;
  }
  .wallet { display: block !important; min-width: 0 !important; }
  #connect { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
}
@media (max-width: 360px) {
  .top-actions { grid-template-columns: 40px 48px 38px minmax(72px, .92fr) !important; gap: 5px !important; }
  .chain-pill { width: 40px !important; min-width: 40px !important; }
  .chain-logo.bsc-logo { width: 22px !important; min-width: 22px !important; height: 22px !important; }
  .chain-pill .chain-caret { font-size: 9px !important; margin-left: 2px !important; }
}


/* 20260702 final mobile toolbar: Daoi blue, icon-only chain, clean light mode. */
body.light .topbar {
  background: rgba(246,248,251,.96) !important;
  border-bottom-color: rgba(62,95,168,.18) !important;
}
body.dark .chain-pill,
body.dark .icon-btn,
body.dark #connect {
  color: #EEF3FF !important;
  background: linear-gradient(135deg, rgba(59,110,255,.24), rgba(62,95,168,.14)) !important;
  border-color: rgba(59,110,255,.42) !important;
}
body.light .chain-pill,
body.light .icon-btn,
body.light #connect {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(62,95,168,.34) !important;
}
@media (max-width: 760px) {
  .top-actions {
    display: grid !important;
    grid-template-columns: 42px 52px 40px minmax(86px, 1fr) !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .chain-pill {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 2px !important;
  }
  .chain-pill .chain-name { display: none !important; }
  .chain-pill .chain-caret { margin-left: 0 !important; font-size: 10px !important; }
  .chain-logo.bsc-logo { width: 23px !important; min-width: 23px !important; height: 23px !important; }
  .tool-lang-select { width: 52px !important; min-width: 52px !important; padding: 0 6px !important; }
  .theme-toggle { width: 40px !important; min-width: 40px !important; }
  .wallet { display: block !important; min-width: 0 !important; width: 100% !important; }
  #connect { width: 100% !important; min-width: 0 !important; padding: 0 8px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
}
@media (max-width: 360px) {
  .top-actions { grid-template-columns: 39px 48px 38px minmax(76px, 1fr) !important; gap: 5px !important; }
  .chain-pill { width: 39px !important; min-width: 39px !important; }
  .chain-logo.bsc-logo { width: 21px !important; min-width: 21px !important; height: 21px !important; }
  .tool-lang-select { width: 48px !important; min-width: 48px !important; }
  .theme-toggle { width: 38px !important; min-width: 38px !important; }
}


/* 20260705 home balance: fix desktop proportions on /my-tools/. */
@media (min-width: 761px) {
  .app.slerf-shell {
    --tool-gutter: clamp(18px, 2.1vw, 32px);
    grid-template-columns: 236px minmax(0, 1fr) !important;
  }
  .sidebar {
    width: 236px !important;
  }
  .brand {
    padding: 0 18px !important;
  }
  .nav-title {
    min-height: 50px !important;
    grid-template-columns: 24px minmax(0, 1fr) 16px !important;
    gap: 10px !important;
    padding: 0 18px !important;
  }
  .nav-title.direct {
    grid-template-columns: 24px minmax(0, 1fr) !important;
  }
  .nav-title strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .nav-item {
    min-height: 42px !important;
    gap: 8px !important;
    padding: 0 14px 0 20px !important;
  }
  .nav-item::before {
    left: 20px !important;
  }
  .main {
    padding: 0 var(--tool-gutter) 56px !important;
  }
  .topbar {
    margin: 0 calc(var(--tool-gutter) * -1) 18px !important;
    padding: 0 var(--tool-gutter) !important;
  }
}

.slerf-home {
  width: min(100%, 1128px) !important;
  max-width: 1128px !important;
  margin: 0 auto 52px !important;
  padding: 2px 0 36px !important;
}

.home-hero.exact-home-hero {
  min-height: 190px !important;
  justify-content: center !important;
  gap: 24px !important;
  padding: 28px 30px 24px !important;
  border-radius: 20px !important;
}

.home-hero::after {
  right: -64px !important;
  bottom: -86px !important;
  width: 300px !important;
  height: 190px !important;
}

.hero-copy h1 {
  max-width: 720px !important;
  margin: 0 !important;
  font-size: 26px !important;
  line-height: 1.28 !important;
  letter-spacing: -.03em !important;
}

.chain-tabs {
  gap: 10px !important;
  margin: 0 !important;
}

.chain-tabs a,
.chain-tabs span,
.chain-tabs button {
  min-height: 34px !important;
  padding: 0 17px !important;
}

.tool-showcase {
  margin-top: 30px !important;
}

.tool-showcase > .showcase-title:first-child {
  margin-top: 0 !important;
}

.showcase-title {
  margin: 28px 0 14px !important;
  gap: 10px !important;
}

.showcase-title h3 {
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.showcase-title span {
  font-size: 20px !important;
}

.showcase-title p {
  font-size: 13px !important;
}

.home-card-grid {
  gap: 18px !important;
}

.home-card-grid > .home-tool-card {
  margin-left: 0 !important;
}

.home-card-grid.two,
.home-card-grid.four {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.home-tool-card {
  min-height: 116px !important;
  padding: 20px !important;
  border-radius: 18px !important;
}

.home-tool-card b,
.wide-trade-card b {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.home-tool-card span,
.wide-trade-card span {
  line-height: 1.62 !important;
}

.wide-trade-card {
  grid-template-columns: auto auto minmax(0, 1fr) auto !important;
  min-height: 104px !important;
  gap: 12px 14px !important;
  margin-top: 18px !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
}

.wide-trade-card strong {
  grid-column: 4 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  white-space: nowrap !important;
}

.home-benefits {
  gap: 18px !important;
  margin-top: 30px !important;
}

.home-benefits div {
  min-height: 110px !important;
  padding: 18px !important;
}

.micro-home-status {
  margin: 18px 0 0 !important;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .home-card-grid.two,
  .home-card-grid.four,
  .home-benefits,
  .micro-home-status {
    grid-template-columns: 1fr !important;
  }
  .wide-trade-card {
    grid-template-columns: 1fr !important;
  }
  .wide-trade-card strong {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: start !important;
  }
}

@media (max-width: 760px) {
  .slerf-home {
    margin-bottom: 36px !important;
    padding-bottom: 28px !important;
  }
  .home-hero.exact-home-hero {
    min-height: 176px !important;
    padding: 22px 18px !important;
    gap: 18px !important;
  }
  .hero-copy h1 {
    font-size: 22px !important;
  }
  .home-card-grid.two,
  .home-card-grid.four,
  .wide-trade-card,
  .home-benefits,
  .micro-home-status {
    grid-template-columns: 1fr !important;
  }
  .wide-trade-card strong {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: start !important;
  }
  .chain-tabs a,
  .chain-tabs span,
  .chain-tabs button {
    min-height: 44px !important;
  }
}

/* 20260706 mobile tree navigation: top stays wallet controls, feature nav is a vertical drawer. */
@media (max-width: 760px) {
  .app.slerf-shell {
    display: block !important;
    grid-template-columns: none !important;
    overflow-x: hidden !important;
  }
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .brand {
    position: relative !important;
    height: 56px !important;
    padding: 0 12px !important;
    gap: 9px !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .brand h2 {
    max-width: calc(100vw - 112px) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
  .brand .mark.brand-mark {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }
  .menu-fold {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  body.dark .topbar,
  body.light .topbar,
  .topbar {
    position: sticky !important;
    top: 56px !important;
    right: auto !important;
    z-index: 70 !important;
    width: auto !important;
    min-height: 56px !important;
    height: auto !important;
    margin: 0 -12px 14px !important;
    padding: 8px 12px !important;
    background: rgba(5, 6, 9, .94) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22) !important;
    backdrop-filter: blur(12px) !important;
  }
  body.light .topbar {
    background: rgba(246, 248, 251, .96) !important;
  }
  .topbar .crumb {
    display: none !important;
  }
  .topbar .top-actions {
    width: 100% !important;
    height: 40px !important;
    display: grid !important;
    grid-template-columns: 40px 46px 38px minmax(90px, 1fr) !important;
    gap: 6px !important;
    align-items: center !important;
  }
  .topbar .chain-pill,
  .topbar .tool-lang-select,
  .topbar .theme-toggle,
  .topbar #connect {
    height: 40px !important;
    min-height: 40px !important;
  }
  .topbar .chain-pill {
    width: 40px !important;
    min-width: 40px !important;
  }
  .topbar .tool-lang-select {
    width: 46px !important;
    min-width: 46px !important;
    padding: 0 5px !important;
    font-size: 12px !important;
    background-image: none !important;
  }
  .topbar .theme-toggle {
    width: 38px !important;
    min-width: 38px !important;
  }
  .topbar .wallet,
  .topbar #connect {
    width: 100% !important;
    min-width: 0 !important;
  }
  .topbar #walletState {
    display: none !important;
  }
  .topbar #connect {
    padding: 0 7px !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #nav {
    position: fixed !important;
    top: 112px !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 85 !important;
    display: block !important;
    width: min(86vw, 320px) !important;
    max-width: 320px !important;
    padding: 12px 10px 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--line) !important;
    box-shadow: 18px 0 42px rgba(0, 0, 0, .38) !important;
    transform: translateX(-105%) !important;
    transition: transform 180ms ease-out !important;
    scrollbar-width: none !important;
  }
  #nav::-webkit-scrollbar { display: none !important; }
  .app.slerf-shell.mobile-nav-open #nav {
    transform: translateX(0) !important;
  }
  .nav-group {
    display: block !important;
    position: relative !important;
    margin: 0 0 8px !important;
    width: 100% !important;
  }
  .nav-title,
  .nav-title.direct {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) 20px !important;
    gap: 10px !important;
    padding: 0 12px !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: var(--surface-soft) !important;
    text-align: left !important;
  }
  .nav-title.direct {
    grid-template-columns: 24px minmax(0, 1fr) !important;
  }
  .nav-title strong {
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }
  .nav-title em {
    display: none !important;
  }
  .nav-icon,
  .nav-child-icon,
  .nav-spacer {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    font-size: 14px !important;
  }
  .nav-children {
    position: static !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 6px 0 4px 34px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .nav-group.open .nav-children {
    display: grid !important;
    gap: 5px !important;
  }
  .nav-item {
    min-height: 42px !important;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
  }
  .nav-item-label {
    font-size: 13px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .main {
    position: relative !important;
    z-index: 1 !important;
    min-height: calc(100dvh - 112px) !important;
    padding: 0 12px 36px !important;
    overflow: visible !important;
  }
}

@media (max-width: 360px) {
  .topbar .top-actions {
    grid-template-columns: 36px 40px 34px minmax(82px, 1fr) !important;
    gap: 5px !important;
  }
  .topbar .chain-pill {
    width: 36px !important;
    min-width: 36px !important;
  }
  .topbar .tool-lang-select {
    width: 40px !important;
    min-width: 40px !important;
  }
  .topbar .theme-toggle {
    width: 34px !important;
    min-width: 34px !important;
  }
  .topbar #connect {
    padding: 0 5px !important;
  }
}

/* 20260706 toolbar proportions: compact rectangular controls, matching the mobile Swap header rhythm. */
body.dark .topbar .chain-pill,
body.dark .topbar .tool-lang-select,
body.dark .topbar .theme-toggle,
body.dark .topbar #connect,
body.light .topbar .chain-pill,
body.light .topbar .tool-lang-select,
body.light .topbar .theme-toggle,
body.light .topbar #connect,
.topbar .chain-pill,
.topbar .tool-lang-select,
.topbar .theme-toggle,
.topbar #connect {
  border-radius: 14px !important;
  box-shadow: none !important;
}
.topbar .icon-btn,
.topbar .theme-toggle {
  aspect-ratio: auto !important;
}
@media (min-width: 761px) {
  body.dark .topbar,
  body.light .topbar,
  .topbar {
    justify-content: flex-end !important;
  }
  .topbar .top-actions {
    width: auto !important;
    display: grid !important;
    grid-template-columns: 108px 58px 42px 104px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: end !important;
  }
  .topbar .chain-pill,
  .topbar .tool-lang-select,
  .topbar .theme-toggle,
  .topbar #connect {
    height: 42px !important;
    min-height: 42px !important;
  }
  .topbar .chain-pill {
    width: 108px !important;
    min-width: 108px !important;
    padding: 0 10px !important;
    justify-content: center !important;
    gap: 7px !important;
  }
  .topbar .tool-lang-select {
    width: 58px !important;
    min-width: 58px !important;
    padding: 0 8px !important;
    text-align: center !important;
    text-align-last: center !important;
    background-image: none !important;
  }
  .topbar .theme-toggle {
    width: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
  }
  .topbar .wallet,
  .topbar #connect {
    width: 104px !important;
    min-width: 104px !important;
  }
  .topbar #connect {
    padding: 0 10px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
@media (max-width: 760px) {
  body.dark .topbar,
  body.light .topbar,
  .topbar {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  .topbar .top-actions {
    width: auto !important;
    max-width: 100% !important;
    margin-left: auto !important;
    display: grid !important;
    grid-template-columns: 44px 48px 44px 92px !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: end !important;
  }
  .topbar .chain-pill,
  .topbar .tool-lang-select,
  .topbar .theme-toggle,
  .topbar #connect {
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 13px !important;
  }
  .topbar .chain-pill {
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .topbar .tool-lang-select {
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 6px !important;
    text-align: center !important;
    text-align-last: center !important;
    background-image: none !important;
  }
  .topbar .theme-toggle {
    width: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
  }
  .topbar .wallet,
  .topbar #connect {
    width: 92px !important;
    min-width: 92px !important;
  }
  .topbar #connect {
    padding: 0 7px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
@media (max-width: 360px) {
  .topbar .top-actions {
    grid-template-columns: 40px 42px 40px 82px !important;
    gap: 5px !important;
  }
  .topbar .chain-pill {
    width: 40px !important;
    min-width: 40px !important;
  }
  .topbar .tool-lang-select {
    width: 42px !important;
    min-width: 42px !important;
  }
  .topbar .theme-toggle {
    width: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }
  .topbar .wallet,
  .topbar #connect {
    width: 82px !important;
    min-width: 82px !important;
  }
  .topbar #connect {
    padding: 0 5px !important;
    font-size: 11px !important;
  }
}
