* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--bg);
	color: var(--tx);
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	max-width: 600px;
	margin: 0 auto;
	min-height: 100vh;
	border-left: 1px solid var(--bd);
	border-right: 1px solid var(--bd);
}

.topbar {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 16px;
	background: var(--bg);
	border-bottom: 1px solid var(--bd);
}
.wordmark {
	font-size: 20px; font-weight: 900; letter-spacing: .5px;
	background: linear-gradient(135deg, var(--h1), var(--h2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge {
	font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
	color: #eab308; border: 1px solid rgba(234,179,8,.4); background: rgba(234,179,8,.12);
	border-radius: 20px; padding: 3px 9px; margin-left: 8px;
}
.tb-actions { display: flex; gap: 6px; }
.icon-btn {
	cursor: pointer; border: 1px solid var(--bd2); background: var(--bg3);
	border-radius: 9px; width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center; font-size: 15px;
}

.nav {
	position: sticky; top: 59px; z-index: 19;
	display: flex; gap: 6px; overflow-x: auto;
	padding: 10px 16px; background: var(--bg);
	border-bottom: 1px solid var(--bd); scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav button {
	flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--mu);
	background: var(--bg3); border: 1px solid var(--bd2); border-radius: 20px;
	padding: 7px 13px; cursor: pointer; white-space: nowrap;
}
.nav button.active {
	color: #fff; background: linear-gradient(135deg, var(--h1), var(--h2)); border-color: transparent;
}

.demo-banner {
	font-size: 11.5px; color: var(--mu); background: var(--bg2);
	border-bottom: 1px solid var(--bd); padding: 7px 16px; text-align: center;
}

.tab-content { display: none; }
.tab-content.show { display: block; }

.card { background: var(--card); border: 1px solid var(--bd); border-radius: 14px; }

.nf-spinner {
	display: inline-block; width: 15px; height: 15px;
	border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
	border-radius: 50%; animation: nfspin .7s linear infinite; vertical-align: middle;
}
@keyframes nfspin { to { transform: rotate(360deg); } }

.hz-loading { text-align: center; color: var(--mu); padding: 30px 16px; font-size: 13px; line-height: 1.6; }
.hz-loading span { font-size: 11px; }
.hz-error { text-align: center; color: var(--rd); padding: 24px 16px; font-size: 13px; line-height: 1.5; }

#toast {
	position: fixed; left: 50%; bottom: 24px;
	transform: translateX(-50%) translateY(20px);
	background: #111827; color: #fff; border: 1px solid var(--bd2);
	border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600;
	opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; max-width: 90%;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
