/* Kurogane Creators -- "black steel": brushed dark panels, a crimson accent, a channel-style sidebar (2026-12-01 restyle). */

:root {
	--bg: #090a0d;
	--bg-2: #0e1015;
	--panel: #14161c;
	--panel-2: #1b1e26;
	--panel-3: #232731;
	--line: #262a34;
	--line-2: #323745;
	--text: #eceef2;
	--muted: #969cab;
	--faint: #646b7a;
	--accent: #e5484d;
	--accent-2: #ff6b70;
	--accent-glow: rgba(229, 72, 77, 0.35);
	--good: #3dd68c;
	--warn: #f5b74f;
	--bad: #ff5c5c;
	--gold: #f5c451;
	--silver: #cbd3de;
	--bronze: #d8955a;
	--radius: 14px;
	--steel: linear-gradient(160deg, #1a1d25 0%, #12141a 55%, #0f1116 100%);
	--steel-hi: linear-gradient(160deg, #20242e 0%, #15181f 60%, #101217 100%);
	color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	background:
		radial-gradient(900px 500px at 85% -10%, rgba(229, 72, 77, 0.10), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, rgba(120, 130, 160, 0.06), transparent 60%),
		var(--bg);
	background-attachment: fixed;
	color: var(--text);
	font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
a { color: inherit; }

.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ boot / login */
.boot, .blocked {
	min-height: 100vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 24px 16px;
	color: var(--muted);
}
.blocked h1 { color: var(--text); font-size: 22px; margin: 0 0 6px; letter-spacing: -0.2px; }
.login {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	width: 100%; max-width: 380px; overflow-wrap: anywhere;
	background: var(--steel); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.login p { margin: 0 0 6px; }
.login .login-note { color: #ffc7c8; background: #3a1f22; border: 1px solid #5a2b30; border-radius: 10px; padding: 8px 12px; }
.login .btn { margin-top: 12px; }
.mark {
	width: 36px; height: 36px; border-radius: 10px; flex: none;
	background: linear-gradient(145deg, #2c303a, #0d0e12);
	border: 1px solid #3a3f4b;
	display: grid; place-items: center;
	font-weight: 900; color: var(--accent); letter-spacing: -0.5px;
	box-shadow: 0 0 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mark.big { width: 60px; height: 60px; border-radius: 16px; font-size: 28px; margin-bottom: 10px; }

/* ------------------------------------------------------------------ layout */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.page { min-width: 0; }
main { max-width: 1080px; margin: 0 auto; padding: 6px 28px 56px; }

/* sidebar */
.side {
	position: sticky; top: 0; height: 100vh;
	display: flex; flex-direction: column;
	background: linear-gradient(180deg, #101217 0%, #0c0d11 100%);
	border-right: 1px solid var(--line);
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 16px 14px 14px; border-bottom: 1px solid var(--line); }
.side-brand b { display: block; font-size: 14px; letter-spacing: 0.1px; }
.side-brand small { display: block; color: var(--faint); font-size: 11.5px; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 8px 12px; }
.nav-group { margin-top: 12px; }
.nav-label {
	font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
	color: var(--faint); padding: 0 10px 6px;
}
.nav-item {
	width: 100%; display: flex; align-items: center; gap: 9px;
	background: none; border: 0; border-radius: 8px;
	padding: 7px 10px; margin: 1px 0;
	color: var(--muted); cursor: pointer; text-align: left; font-weight: 600;
	position: relative;
}
.nav-item .ico { width: 17px; height: 17px; opacity: 0.8; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-item.on { background: linear-gradient(90deg, rgba(229, 72, 77, 0.16), rgba(229, 72, 77, 0.03)); color: var(--text); }
.nav-item.on::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav-item.on .ico { color: var(--accent-2); opacity: 1; }
.count {
	margin-left: auto; padding: 0 7px; border-radius: 999px;
	background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; font-weight: 800;
}
.side-user {
	display: flex; align-items: center; gap: 10px;
	margin: 8px; padding: 10px; border-radius: 12px;
	background: var(--steel-hi); border: 1px solid var(--line);
}
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.side-user .who span { font-size: 12px; color: var(--muted); }
.side-user strong { color: var(--gold); font-weight: 700; }
.side-user em { color: var(--warn); font-style: normal; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* page header */
.page-head {
	max-width: 1080px; margin: 0 auto;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 24px 28px 16px;
}
.ph-title { display: flex; align-items: center; gap: 10px; }
.ph-title .ico { width: 24px; height: 24px; color: var(--accent-2); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.ph-title h1 { margin: 0; font-size: 24px; letter-spacing: -0.4px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.reset-pill {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 12px; border-radius: 999px;
	background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
}
.reset-pill .ico { width: 15px; height: 15px; }
.reset-pill b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ shared pieces */
h2 { font-size: 18px; margin: 0; }
h3 { font-size: 11.5px; margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 1.1px; font-weight: 800; }
.sub { color: var(--muted); margin: 2px 0 0; }
.section { margin-top: 30px; }
.section > h3 { margin-bottom: 12px; }
.card {
	background: var(--steel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.empty {
	border: 1px dashed var(--line-2);
	border-radius: var(--radius);
	padding: 26px 16px;
	text-align: center;
	color: var(--muted);
}
.empty.big { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 46px 16px; }
.empty.big .ico { width: 34px; height: 34px; color: var(--faint); margin-bottom: 6px; }
.empty.big b { color: var(--text); font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

.btn {
	border: 1px solid var(--line-2);
	background: var(--panel-2);
	border-radius: 10px;
	padding: 8px 14px;
	cursor: pointer;
	font-weight: 700;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:hover { border-color: #444a58; background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ec5257, #cf3a3f); border-color: #e5484d; color: #fff; box-shadow: 0 4px 16px rgba(229, 72, 77, 0.25); }
.btn.primary:hover { background: linear-gradient(180deg, #ff6b70, #e2464b); }
.btn.good { background: #1d3a2b; border-color: #2b5a41; color: #9ef0c4; }
.btn.danger { background: #3a1d20; border-color: #5a2b30; color: #ffb3b5; }
.btn.small { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; transform: none; }
.input {
	background: #0b0c10;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	padding: 8px 11px;
	min-width: 0;
	outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15); }
.input:disabled { opacity: 0.6; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .grow, .actions .grow { flex: 1 1 220px; }
.row.grow { flex: 1 1 320px; }

.av { width: 40px; height: 40px; border-radius: 50%; background: #262a31; object-fit: cover; display: block; flex: none; }
.av.sm { width: 22px; height: 22px; }
.av.lg { width: 56px; height: 56px; }
.av.xl { width: 72px; height: 72px; }

.plat {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 11px; font-weight: 800; letter-spacing: 0.3px;
	padding: 2px 8px; border-radius: 6px; color: #fff;
}
.plat.youtube { background: #d92c2c; }
.plat.tiktok { background: #111; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.plat.twitch { background: #7c4ce0; }
.plat.instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }

.badge { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.6px; }
.badge.pending, .badge.queued, .badge.sent { background: rgba(245, 183, 79, 0.14); color: var(--warn); }
.badge.approved, .badge.delivered { background: rgba(61, 214, 140, 0.13); color: var(--good); }
.badge.rejected, .badge.removed, .badge.failed { background: rgba(255, 92, 92, 0.13); color: var(--bad); }
.badge.refunded { background: #262a31; color: var(--muted); }
.note { font-size: 12px; color: var(--muted); }
.note.bad { color: #ffb3b5; }

/* ------------------------------------------------------------------ leaderboard */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-top: 8px; }
.step {
	position: relative;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
	padding: 22px 12px 18px; border-radius: 18px;
	background: var(--steel-hi); border: 1px solid var(--line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	--tone: var(--bronze);
}
.step.p1 { --tone: var(--gold); padding-top: 34px; padding-bottom: 26px; background: radial-gradient(120% 90% at 50% 0%, rgba(245, 196, 81, 0.16), transparent 60%), var(--steel-hi); border-color: rgba(245, 196, 81, 0.4); }
.step.p2 { --tone: var(--silver); }
.step.mine { outline: 2px solid var(--accent); outline-offset: 2px; }
.step .crown { position: absolute; top: -14px; width: 30px; height: 30px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(245, 196, 81, 0.6)); }
.step-av { position: relative; margin-bottom: 8px; }
.step-av .av { box-shadow: 0 0 0 3px var(--tone), 0 0 24px color-mix(in srgb, var(--tone) 40%, transparent); }
.step-rank {
	position: absolute; right: -4px; bottom: -4px;
	width: 26px; height: 26px; border-radius: 50%;
	display: grid; place-items: center; font-weight: 900; font-size: 13px;
	background: var(--tone); color: #15161a; border: 2px solid #15171c;
}
.step-name { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-views { font-weight: 700; font-variant-numeric: tabular-nums; }
.step-pts { color: var(--gold); font-size: 12px; font-weight: 700; }

.ranks { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.rank {
	display: grid;
	grid-template-columns: 34px 40px 1fr auto;
	align-items: center;
	gap: 12px;
	background: var(--steel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 9px 14px 9px 10px;
}
.rank:hover { border-color: var(--line-2); }
.rank .pos { font-weight: 800; font-size: 15px; text-align: center; color: var(--faint); font-variant-numeric: tabular-nums; }
.rank.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.rank .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .who span { color: var(--muted); font-size: 12px; }
.rank .score { text-align: right; }
.rank .score b { display: block; font-variant-numeric: tabular-nums; }
.rank .score span { color: var(--gold); font-size: 12px; font-weight: 700; }

.last-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lw { display: flex; align-items: center; gap: 10px; }
.lw-rank { font-weight: 900; font-size: 15px; width: 28px; }
.lw.p1 .lw-rank { color: var(--gold); }
.lw.p2 .lw-rank { color: var(--silver); }
.lw.p3 .lw-rank { color: var(--bronze); }

/* video cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.video {
	background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.video:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #1a1d24 center / cover no-repeat; cursor: pointer; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.thumb .plat { position: absolute; left: 8px; top: 8px; z-index: 1; }
.thumb .views {
	position: absolute; right: 8px; bottom: 8px; z-index: 1;
	display: inline-flex; align-items: center; gap: 5px;
	background: rgba(0, 0, 0, 0.7); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 800;
}
.thumb .views .ico { width: 14px; height: 14px; }
.video .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.video .title { font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.by { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------------ creators */
.creator { display: flex; flex-direction: column; gap: 12px; }
.creator .top-line { display: flex; gap: 12px; align-items: center; }
.creator .top-line .av { box-shadow: 0 0 0 2px var(--line-2); }
.creator .figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.figure { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; }
.figure span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.figure b { font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ my videos / lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
	display: grid;
	grid-template-columns: 132px 1fr auto;
	gap: 14px;
	align-items: center;
	background: var(--steel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 10px;
}
.item .thumb { border-radius: 9px; overflow: hidden; }
.item .body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item .body .title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.rules div { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; color: var(--muted); font-size: 13px; }
.rules b { color: var(--text); display: block; margin-bottom: 2px; }

/* ------------------------------------------------------------------ shop */
.hero {
	position: relative; overflow: hidden;
	display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
	padding: 26px 28px; border-radius: 20px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(229, 72, 77, 0.22), transparent 55%),
		radial-gradient(90% 120% at 0% 100%, rgba(245, 196, 81, 0.07), transparent 60%),
		linear-gradient(160deg, #1d2029, #111319 70%);
	border: 1px solid #343947;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero::after {
	content: "K"; position: absolute; right: -10px; bottom: -70px;
	font-size: 240px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, 0.025); pointer-events: none;
}
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-2); }
.hero h2 { font-size: 26px; letter-spacing: -0.5px; margin: 4px 0 4px; }
.hero p { margin: 0; color: var(--muted); }
.hero p b { color: var(--text); }
.hero-stats { display: flex; gap: 12px; position: relative; z-index: 1; }
.hs {
	min-width: 140px; padding: 12px 16px; border-radius: 14px;
	background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.07);
}
.hs span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.hs b { display: block; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hs b.gold { color: var(--gold); text-shadow: 0 0 20px rgba(245, 196, 81, 0.35); }
.hs b.warn { color: var(--warn); }
.hs small { color: var(--faint); font-size: 11px; }
.link-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.link-text { flex: 1 1 240px; display: flex; flex-direction: column; }
.link-text span { color: var(--muted); font-size: 12.5px; }

.group-title { display: flex; align-items: center; gap: 8px; }
.group-title .ico { width: 16px; height: 16px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.offer {
	--tone: #e5484d; --tone-soft: rgba(229, 72, 77, 0.16);
	display: flex; flex-direction: column; gap: 4px;
	padding: 14px; border-radius: 16px;
	background: var(--steel-hi); border: 1px solid var(--line);
	transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.offer.tone-gold { --tone: #f5c451; --tone-soft: rgba(245, 196, 81, 0.15); }
.offer.tone-jade { --tone: #3dd68c; --tone-soft: rgba(61, 214, 140, 0.14); }
.offer:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.offer.ready { border-color: color-mix(in srgb, var(--tone) 35%, var(--line)); }
.offer-icon {
	display: grid; place-items: center;
	height: 84px; margin-bottom: 8px; border-radius: 12px;
	background: radial-gradient(60% 70% at 50% 45%, var(--tone-soft), transparent 70%), #0e1015;
	border: 1px solid var(--line);
	color: var(--tone);
}
.offer-icon .ico { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--tone)); }
.offer-name { font-weight: 800; font-size: 15px; }
.offer-cost { color: var(--muted); font-size: 12.5px; }
.offer-cost b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.meter { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 60%, #000), var(--tone)); box-shadow: 0 0 10px var(--tone); }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-foot .need { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.offer-foot .ok { color: var(--good); font-size: 12px; font-weight: 700; }
.purchase { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------------------------------------------ manage */
.subtabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.subtabs button { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--muted); font-weight: 700; }
.subtabs button:hover { color: var(--text); }
.subtabs button.on { color: var(--text); border-color: var(--accent); background: rgba(229, 72, 77, 0.1); }
.review { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.review .thumb { border-radius: 10px; overflow: hidden; }
.review .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; margin: 8px 0; }
.review .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
.scroll { overflow-x: auto; }

.subtabs .count { margin-left: 7px; }
.flags { margin: 8px 0 4px; padding: 10px 12px; border-radius: 11px; background: rgba(229, 72, 77, 0.08); border: 1px solid rgba(229, 72, 77, 0.3); }
.flags-title { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.flags ul { margin: 0 0 2px; padding-left: 18px; }
.flags li { margin: 2px 0; }
.note.held { color: var(--warn); }
.sus .thumb { margin-bottom: 8px; }
.chart { background: #0b0c10; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 4px; }
.chart svg { display: block; width: 100%; height: 90px; }
.chart.empty-chart { color: var(--faint); font-size: 12px; text-align: center; padding: 30px 8px; }
.chart-key { display: flex; gap: 10px; font-size: 11px; color: var(--faint); padding: 2px 4px 0; }
.chart-key .k-views::before, .chart-key .k-likes::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.chart-key .k-views::before { background: #e5484d; }
.chart-key .k-likes::before { background: #f5c451; }
.chart-key span:last-child { margin-left: auto; }

/* ------------------------------------------------------------------ toast + modal */
.toast {
	position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
	background: #20232b; border: 1px solid var(--line-2); border-radius: 12px;
	padding: 10px 16px; z-index: 50; max-width: calc(100% - 32px);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}
.toast.bad { border-color: #5a2b30; color: #ffc7c8; }
.toast.good { border-color: #2b5a41; color: #b6f5d2; }
.veil { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: var(--steel-hi); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; width: 100%; max-width: 380px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.modal p { color: var(--muted); margin: 8px 0 16px; }
.modal .row { justify-content: flex-end; }

/* ------------------------------------------------------------------ narrow (phones, a small Activity window) */
@media (max-width: 820px) {
	/* Rows sized to their content: a tall window must not stretch the top bar. */
	.layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
	.side-brand { border-bottom: 0; padding: 10px 12px; }
	.side-brand > div:last-child { display: none; }
	.side-nav { display: flex; gap: 2px; overflow-x: auto; padding: 6px 6px; scrollbar-width: none; }
	.nav-group { display: flex; margin: 0; }
	.nav-label { display: none; }
	.nav-item { width: auto; white-space: nowrap; padding: 7px 10px; }
	.nav-item.on::before { left: 8px; right: 8px; top: auto; bottom: -6px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
	.side-user { display: none; }
	.page-head { padding: 18px 16px 12px; }
	main { padding: 4px 16px 48px; }
}
@media (max-width: 640px) {
	.podium { gap: 8px; }
	.step { padding: 18px 6px 14px; }
	.step.p1 { padding-top: 26px; }
	.av.xl { width: 52px; height: 52px; }
	.step-name { font-size: 13px; }
	.item { grid-template-columns: 96px 1fr; }
	.item .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
	.review { grid-template-columns: 1fr; }
	.rank { grid-template-columns: 28px 34px 1fr auto; gap: 8px; }
	.rank .av { width: 34px; height: 34px; }
	.hero { padding: 20px; }
	.hero-stats { width: 100%; }
	.hs { flex: 1; min-width: 0; }
	.hs b { font-size: 22px; }
}
