:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #111419;
  --surface-raised: #171b21;
  --surface-hover: #1d2229;
  --border: #2a3038;
  --border-soft: #20252c;
  --text: #eef1f4;
  --muted: #9aa4af;
  --faint: #68737f;
  --green: #4ed59c;
  --green-bg: #143429;
  --red: #ff7c89;
  --red-bg: #3a1f25;
  --amber: #edb955;
  --amber-bg: #382c16;
  --cyan: #72c7d5;
  --blue: #7fb6ff;
	--open: #4ed59c;
	--add: #68a7ff;
	--reduce: #edb955;
	--close: #ff7c89;
  --radius: 6px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.login-gate {
	min-height: 100vh;
	padding: 24px;
	display: grid;
	place-items: center;
	background: #0b0d10;
}
.login-panel {
	width: min(360px, 100%);
	padding: 28px;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}
.login-panel .brand-mark { width: 42px; height: 42px; }
.login-panel label { grid-column: 1 / -1; margin-top: 12px; display: grid; gap: 7px; }
.login-panel label span { color: var(--muted); font-size: 11px; }
.login-panel input { height: 42px; font-size: 15px; }
.login-button {
	grid-column: 1 / -1;
	height: 42px;
	border: 1px solid #3ec78c;
	border-radius: var(--radius);
	background: var(--green);
	color: #07140f;
	font-weight: 750;
	cursor: pointer;
}
.login-button:hover { background: #68e0ad; }
.login-button:disabled { opacity: 0.55; cursor: default; }
.login-error { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--red); font-size: 11px; }

button, input, select, summary { font: inherit; letter-spacing: 0; }
button, input, select { outline: none; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid rgba(127, 182, 255, 0.72);
  outline-offset: 2px;
}

a { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: #0e1115;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-block, .topbar-actions, .record-identity, .hot-identity { display: flex; align-items: center; }
.brand-block { gap: 11px; }
.topbar-actions { gap: 14px; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #07140f;
  font-size: 18px;
  font-weight: 800;
}

.eyebrow { margin: 0 0 2px; color: var(--green); font-size: 9px; font-weight: 750; }
h1 { margin: 0; font-size: 18px; line-height: 1.1; font-weight: 680; }
h2 { margin: 0; font-size: 15px; font-weight: 680; }

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.connection-status i, .live-indicator i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--amber);
}

.connection-status.online i, .live-indicator i { background: var(--green); box-shadow: 0 0 0 3px rgba(78, 213, 156, 0.1); }
.connection-status.offline i { background: var(--red); }

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
}

.icon-button:hover { background: var(--surface-hover); }
.icon-button:disabled { opacity: 0.45; cursor: default; }

.summary-strip {
  min-height: 76px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.metric {
  min-width: 0;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--border-soft);
}

.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric span { color: var(--muted); font-size: 10px; }
.metric strong { font-size: 21px; font-weight: 680; font-variant-numeric: tabular-nums; }
.metric.buy strong { color: var(--green); }
.metric.sell strong { color: var(--red); }
.metric.hot strong { color: var(--amber); }

.dashboard-grid {
  width: 100%;
  padding: 20px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  align-items: start;
  gap: 18px;
}

.activity-pane, .hot-pane { min-width: 0; }
.hot-pane { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 2px; }

.pane-header {
  min-height: 44px;
  padding: 0 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pane-header p { margin: 4px 0 0; color: var(--faint); font-size: 11px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 750; }
.hot-mark { color: var(--amber); font-size: 10px; font-weight: 800; }
.hot-header-actions { display: flex; align-items: center; gap: 5px; }
.hot-header-button {
	height: 25px;
	padding: 0 8px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface);
	color: var(--muted);
	font-size: 10px;
	cursor: pointer;
}
.hot-header-button:hover { border-color: #46505d; color: var(--text); background: var(--surface-hover); }
.hot-header-button.active { border-color: rgba(78, 213, 156, 0.4); color: var(--green); background: var(--green-bg); }
.hot-header-button.danger:hover { border-color: rgba(255, 124, 137, 0.38); color: var(--red); background: var(--red-bg); }
.hot-header-button:disabled { opacity: 0.45; cursor: default; }
.hot-title-row { display: flex; align-items: center; gap: 7px; }
.hot-rule-info {
	position: relative;
	width: 18px;
	height: 18px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--amber);
	border-radius: 50%;
	color: var(--amber);
	font-size: 11px;
	font-weight: 800;
	cursor: help;
}
.hot-rule-tooltip {
	position: absolute;
	top: calc(100% + 8px);
	left: -8px;
	z-index: 30;
	width: 285px;
	padding: 11px 12px;
	display: none;
	gap: 7px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-raised);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.45;
}
.hot-rule-tooltip strong { color: var(--text); font-size: 12px; }
.hot-rule-tooltip span { display: block; white-space: nowrap; }
.hot-rule-tooltip b { color: var(--amber); }
.hot-rule-info:hover .hot-rule-tooltip, .hot-rule-info:focus .hot-rule-tooltip, .hot-rule-info:focus-within .hot-rule-tooltip { display: grid; }

.filters {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(115px, 0.28fr) minmax(115px, 0.28fr) auto;
  gap: 8px;
  padding-bottom: 12px;
}

.filters label { min-width: 0; }
input, select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}
input::placeholder { color: var(--faint); }
select { cursor: pointer; }

.text-button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--muted);
  cursor: pointer;
}
.text-button:hover { color: var(--text); background: var(--surface-hover); }

.record-feed, .hot-list { display: grid; gap: 9px; }

.record-card {
	position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
	border-left: 3px solid var(--open);
  border-radius: var(--radius);
  background: var(--surface);
}
.record-card:has(.more-details[open]) { z-index: 8; overflow: visible; }
.hot-card:has(.more-details[open]) { z-index: 8; overflow: visible; }
.record-card.type-add { border-left-color: var(--add); }
.record-card.type-reduce { border-left-color: var(--reduce); }
.record-card.type-close { border-left-color: var(--close); }
.record-card:hover { border-top-color: #39414c; border-right-color: #39414c; border-bottom-color: #39414c; }

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

.record-identity, .hot-identity { min-width: 0; gap: 9px; }
.record-identity { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; overflow: hidden; }
.record-identity .chain-image, .record-identity .chain-fallback,
.record-identity .token-image, .record-identity .token-fallback,
.hot-identity .chain-image, .hot-identity .chain-fallback,
.hot-identity .token-image, .hot-identity .token-fallback {
	width: 32px;
	height: 32px;
	flex-basis: 32px;
}
.token-head-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 5px; }
.token-head-line { min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
.token-head-line.secondary { align-items: center; gap: 3px; }
.token-head-meta { flex: 0 0 auto; color: var(--faint); font-size: 11px; font-weight: 520; white-space: nowrap; }
.token-head-meta.current-higher { color: var(--green); }
.token-head-meta.current-lower { color: var(--red); }
.token-head-meta.current-neutral { color: var(--muted); }
.identity-copy, .hot-title { min-width: 0; }
.title-line { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.project-name { flex: 0 1 190px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.token-name-link { color: var(--text); font-weight: 650; text-decoration: none; }
.token-name-link:hover { color: var(--blue); text-decoration: underline; }

.token-image, .token-fallback {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #222831;
}
.token-image { object-fit: cover; }
.token-fallback { display: grid; place-items: center; color: var(--cyan); font-size: 11px; font-weight: 750; }

.chain-image, .chain-fallback {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border-radius: 50%;
	object-fit: cover;
}
.chain-fallback { display: grid; place-items: center; background: var(--surface-raised); color: var(--muted); font-size: 9px; font-weight: 750; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.badge.type.position-open { color: var(--open); background: rgba(78, 213, 156, 0.14); }
.badge.type.position-add { color: var(--add); background: rgba(104, 167, 255, 0.14); }
.badge.type.position-reduce { color: var(--reduce); background: rgba(237, 185, 85, 0.14); }
.badge.type.position-close { color: var(--close); background: rgba(255, 124, 137, 0.14); }
.badge.mini-type.buy { color: var(--green); background: var(--green-bg); }
.badge.mini-type.sell { color: var(--red); background: var(--red-bg); }
.badge.chain { color: #07140f; background: var(--cyan); }
.badge.chain-bsc { color: #251b00; background: #f1c647; }
.badge.chain-robinhood { color: #041608; background: #43d568; }
.badge.chain-eth { color: #101827; background: #90b8ff; }
.badge.chain-base { color: #fff; background: #2865e8; }

.address-line { margin-top: 4px; display: flex; align-items: center; gap: 3px; color: var(--faint); font-size: 12px; }
.chain-name { color: var(--muted); }
.chain-name::after { content: "·"; margin-left: 3px; color: var(--faint); }
.token-ca { flex: 0 1 120px; min-width: 58px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.token-head-line .token-ca { flex-basis: 125px; }
.launch-separator { margin-left: 2px; }
.launch-age { flex: 0 0 auto; color: var(--cyan); font-size: 12px; font-weight: 560; white-space: nowrap; }
.record-time { flex: 0 0 auto; color: var(--text); font-size: 13px; font-weight: 620; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.record-time strong { display: block; color: var(--text); font-size: 13px; font-weight: 620; }
.record-time span { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; }

.copy-button {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.copy-button:hover { color: var(--blue); background: rgba(127, 182, 255, 0.08); }
.copy-button:disabled { display: none; }

.wallet-strip {
  min-height: 38px;
  padding: 7px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #13171c;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.wallet-identity { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.wallet-label { color: var(--faint); font-size: 11px; }
.wallet-address { margin-left: auto; display: inline-flex; align-items: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.transaction-link { flex: 0 0 auto; }

.wallet-remark-button {
	min-width: 0;
	max-width: 270px;
	padding: 2px 4px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--text);
	font-weight: 650;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: text;
}
.wallet-remark-button:hover { background: var(--surface-hover); color: var(--blue); }
.wallet-editor { min-width: 180px; display: grid; grid-template-columns: minmax(110px, 1fr) 25px 25px; align-items: center; gap: 3px; }
.wallet-remark-input { height: 27px; padding: 0 7px; font-size: 13px; }
.wallet-edit-action {
	width: 25px;
	height: 25px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface-raised);
	cursor: pointer;
}
.wallet-edit-action.save { color: var(--green); }
.wallet-edit-action.cancel { color: var(--red); }
.wallet-edit-action:disabled { opacity: 0.45; cursor: default; }

.record-summary-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: #13171c;
	border-bottom: 1px solid var(--border-soft);
}
.record-summary-cell {
	position: relative;
	min-width: 0;
	min-height: 46px;
	padding: 8px 11px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
	border-right: 1px solid var(--border-soft);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	text-align: left;
	white-space: nowrap;
}
.record-summary-cell:last-child { border-right: 0; }
.summary-identity { grid-column: span 2; gap: 3px; }
.summary-identity .badge { flex: 0 0 auto; margin-right: 5px; font-size: 11px; }
.summary-identity .wallet-remark-button { flex: 0 1 auto; max-width: 48%; padding-left: 0; font-size: 13px; }
.summary-wallet-address { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 11px; }
.summary-identity .copy-button { margin-left: 2px; }
.summary-identity .wallet-editor {
	position: absolute;
	left: 7px;
	top: 50%;
	z-index: 4;
	width: min(270px, 72vw);
	min-width: 0;
	padding: 4px;
	transform: translateY(-50%);
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface-raised);
}
.summary-value { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 650; }

.record-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid var(--border-soft);
}
.live-metrics { background: #101419; }
.live-metrics .data-metric {
	min-height: 42px;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
}
.live-metrics .data-metric span { flex: 0 0 auto; white-space: nowrap; }
.live-metrics .data-metric strong { min-width: 0; white-space: nowrap; }
.data-metric {
  min-width: 0;
  min-height: 52px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--border-soft);
}
.data-metric:last-child { border-right: 0; }
.data-metric span { color: var(--faint); font-size: 9px; }
.data-metric strong { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.record-card .data-metric span { font-size: 11px; }
.record-card .data-metric strong { font-size: 14px; }
.data-metric.positive strong, .positive { color: var(--green); }
.data-metric.negative strong, .negative { color: var(--red); }
.data-metric.current-value strong { color: var(--amber); }
.data-metric.current-higher strong { color: var(--green); }
.data-metric.current-lower strong { color: var(--red); }
.data-metric.current-neutral strong { color: var(--muted); }

.record-facts {
  min-height: 31px;
  padding: 6px 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.fact { display: inline-flex; gap: 5px; }
.fact i { color: var(--faint); font-style: normal; }

.record-footer {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 13px;
	color: var(--muted);
	font-size: 12px;
}
.dev-summary { min-width: 0; display: flex; align-items: center; gap: 16px; }
.viewer-count, .dev-count, .dev-best-token { min-width: 0; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.viewer-count span, .dev-count span, .dev-best-token > span { color: var(--faint); font-size: 11px; }
.viewer-count strong, .dev-count strong, .dev-best-token strong { color: var(--text); font-size: 12px; }
.dev-best-link { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dev-best-token small { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 9px; white-space: nowrap; }
.project-actions { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.more-details { position: relative; margin: 0; }
.more-details summary { cursor: pointer; color: var(--faint); font-size: 12px; user-select: none; list-style-position: inside; white-space: nowrap; }
.more-details[open] summary { color: var(--text); }
.more-details .project-detail-grid {
	position: absolute;
	top: calc(100% + 9px);
	right: 0;
	z-index: 12;
	width: min(390px, 76vw);
	padding: 12px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-raised);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}
.detail-item { min-width: 0; }
.detail-item span { display: block; margin-bottom: 3px; color: var(--faint); font-size: 9px; }
.detail-item strong { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-weight: 550; white-space: nowrap; }
.project-links, .hot-links { display: flex; align-items: center; gap: 13px; }
.project-actions .project-links { padding: 0; }
.project-actions .external-link { font-size: 12px; }
.external-link { color: var(--blue); font-size: 10px; text-decoration: none; }
.external-link:hover { text-decoration: underline; }
.external-link.disabled { color: #4e5660; pointer-events: none; }

.hot-list { padding-bottom: 4px; }
.hot-card {
	position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.hot-card-header {
  min-height: 59px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.hot-title .token-name-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.hot-token-meta { min-width: 0; margin-top: 4px; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.hot-token-ca { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 9px; white-space: nowrap; }
.hot-launch-age { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 520; white-space: nowrap; }
.hot-rank { flex: 0 0 auto; display: grid; justify-items: end; gap: 5px; }
.hot-rank-top { display: flex; align-items: center; gap: 5px; }
.hot-delete-button {
	width: 21px;
	height: 21px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: var(--faint);
	font-size: 17px;
	line-height: 17px;
	cursor: pointer;
}
.hot-delete-button:hover { border-color: rgba(255, 124, 137, 0.38); background: var(--red-bg); color: var(--red); }
.hot-level { min-width: 25px; padding: 3px 7px; border-radius: 4px; text-align: center; font-size: 11px; }
.hot-level.level-high { color: #ffb4bd; background: rgba(255, 87, 105, 0.16); }
.hot-level.level-medium { color: #ffd479; background: rgba(237, 185, 85, 0.15); }
.hot-level.level-low { color: #9ed6ff; background: rgba(104, 167, 255, 0.14); }
.hot-count { color: var(--faint); font-size: 9px; white-space: nowrap; }
.hot-listed-time { color: var(--muted); font-size: 9px; font-weight: 520; white-space: nowrap; }
.hot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border-soft); }
.hot-stats .data-metric { min-height: 49px; padding: 8px; }
.hot-stats .data-metric strong { font-size: 11px; }

.holding-strip {
	min-height: 42px;
	padding: 7px 10px;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	border-bottom: 1px solid var(--border-soft);
	background: #11151a;
}
.holding-strip-label { min-height: 26px; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.holding-strip-label strong { color: var(--text); font-weight: 620; white-space: nowrap; }
.holding-strip-label span { min-width: 19px; padding: 2px 5px; border-radius: 4px; background: var(--surface-raised); text-align: center; }
.holder-badges {
	min-width: 0;
	min-height: 26px;
	padding: 0;
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px;
}
.wallet-state-badge {
	max-width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 4px 7px;
	border: 1px solid;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 650;
	white-space: nowrap;
}
.wallet-state-badge.holding { border-color: rgba(78, 213, 156, 0.35); background: var(--green-bg); color: var(--green); }
.wallet-state-badge.closed { border-color: rgba(255, 124, 137, 0.38); background: var(--red-bg); color: var(--red); }
.holder-list { max-height: 174px; overflow-y: auto; padding: 0 6px; }
.holder-row {
  min-height: 42px;
  padding: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.holder-row:last-child { border-bottom: 0; }
.holder-copy { min-width: 0; }
.holder-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.holder-copy span { display: block; margin-top: 3px; color: var(--faint); font-size: 9px; }
.badge.mini-type { min-height: 18px; padding: 0 5px; font-size: 8px; }
.hot-links { padding-top: 9px; border-top: 1px solid var(--border-soft); }
.hot-card .record-footer { gap: 7px; padding-inline: 10px; }
.hot-card .dev-summary, .hot-card .project-actions, .hot-card .project-links { gap: 7px; }
.hot-card .dev-best-link { max-width: 70px; }
.hot-card .viewer-count span, .hot-card .dev-count span, .hot-card .dev-best-token > span,
.hot-card .viewer-count strong, .hot-card .dev-count strong, .hot-card .dev-best-token strong,
.hot-card .project-actions .external-link, .hot-card .more-details summary { font-size: 10px; }
.empty-inline { margin: 0; padding: 5px 0; color: var(--faint); font-size: 10px; }

.state-panel {
  min-height: 180px;
  padding: 44px 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.state-panel.compact { min-height: 130px; }
.state-panel strong { font-size: 12px; font-weight: 560; }
.state-panel.error strong { color: var(--red); }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text);
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

.browser-notification {
	position: fixed;
	top: 76px;
	right: 20px;
	z-index: 70;
	width: min(360px, calc(100vw - 32px));
	min-height: 66px;
	padding: 12px 42px 12px 14px;
	border: 1px solid rgba(237, 185, 85, 0.45);
	border-left: 3px solid var(--amber);
	border-radius: var(--radius);
	background: #181b20;
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 160ms ease, transform 160ms ease;
}
.browser-notification.visible { opacity: 1; transform: translateY(0); }
.browser-notification div { min-width: 0; display: grid; gap: 6px; }
.browser-notification strong { color: var(--amber); font-size: 13px; }
.browser-notification span { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 12px; white-space: nowrap; }
.browser-notification button {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-size: 18px;
	cursor: pointer;
}
.browser-notification button:hover { color: var(--text); }

@keyframes live-arrival {
  0% { background: rgba(78, 213, 156, 0.14); }
  100% { background: var(--surface); }
}
.live-arrival { animation: live-arrival 1.4s ease-out; }

@media (max-width: 1280px) {
	.dev-best-token small { max-width: 190px; }
}

@media (max-width: 980px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .hot-pane { position: static; max-height: none; overflow: visible; }
  .hot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .topbar { height: 60px; padding: 0 14px; }
  .connection-status span { display: none; }
  .summary-strip { padding: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 66px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(n+3) { border-bottom: 0; }
  .metric:first-child { padding-left: 0; }
  .dashboard-grid { padding: 16px 14px 24px; }
  .filters { grid-template-columns: 1fr 1fr auto; }
  .search-field { grid-column: 1 / -1; }
  .hot-list { grid-template-columns: 1fr; }
	.project-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .text-button { grid-column: 1 / -1; }
  .record-header { min-height: 52px; align-items: center; gap: 5px; padding: 7px 8px; }
  .record-identity { gap: 5px; }
  .record-header .chain-image, .record-header .chain-fallback { width: 28px; height: 28px; flex-basis: 28px; }
  .record-header .token-image, .record-header .token-fallback { width: 28px; height: 28px; flex-basis: 28px; }
  .project-name { flex-basis: 72px; max-width: 72px; font-size: 13px; }
  .token-ca { flex-basis: 68px; min-width: 42px; font-size: 10px; }
  .record-identity > .copy-button { display: none; }
  .launch-age { font-size: 10px; }
  .record-time { font-size: 11px; }
	.record-summary-cell { min-height: 42px; padding: 7px 6px; font-size: 11px; }
	.summary-identity .badge { padding-inline: 4px; font-size: 9px; }
	.summary-identity .wallet-remark-button { max-width: 48%; font-size: 11px; }
	.summary-wallet-address { font-size: 9px; }
	.summary-identity .copy-button { display: none; }
	.wallet-strip { align-items: flex-start; flex-wrap: wrap; }
	.wallet-identity { width: 100%; }
	.wallet-address { margin-left: 0; }
	.record-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.data-metric { padding: 8px 6px; }
	.data-metric strong { font-size: 10px; }
	.record-card .data-metric strong { font-size: 12px; }
	.live-metrics .data-metric { gap: 4px; padding-inline: 5px; }
	.live-metrics .data-metric span { font-size: 10px; }
	.live-metrics .data-metric strong { font-size: 11px; }
	.record-footer { gap: 6px; padding-inline: 8px; }
	.holding-strip { gap: 6px; padding-inline: 7px; }
	.holding-strip-label strong { font-size: 9px; }
	.wallet-state-badge { max-width: 150px; font-size: 9px; }
	.dev-summary { flex: 1 1 auto; gap: 7px; overflow: hidden; }
	.viewer-count { flex: 0 0 auto; }
	.dev-count { flex: 0 0 auto; }
	.dev-best-token { flex: 1 1 auto; }
	.dev-best-token small { max-width: 54px; }
	.project-actions { gap: 7px; }
	.project-links { gap: 7px; }
	.more-details .project-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
