:root {
	--accent: var(--drumix-color-primary);
	--accent-strong: var(--drumix-color-primary-hover);
	--ink: var(--drumix-color-text);
	--sub: var(--drumix-color-muted);
	--line: var(--drumix-color-border);
	--bg: var(--drumix-color-background);
	--panel: var(--drumix-color-surface);
	--soft: var(--drumix-color-surface-soft);
	--soft-blue: var(--drumix-color-primary-soft);
	--success: var(--drumix-color-success);
	--warning: var(--drumix-color-warning);
	--shadow: var(--drumix-shadow-card);
	--today-rail-width: 112px;
	color-scheme: light;
}

html.pb-public-dark {
	--accent: var(--drumix-color-primary);
	--accent-strong: var(--drumix-color-primary-hover);
	--ink: var(--drumix-color-text);
	--sub: var(--drumix-color-muted);
	--line: var(--drumix-color-border);
	--bg: var(--drumix-color-background);
	--panel: var(--drumix-color-surface);
	--soft: var(--drumix-color-surface-soft);
	--soft-blue: var(--drumix-color-primary-soft);
	--success: var(--drumix-color-success);
	--warning: var(--drumix-color-warning);
	--shadow: var(--drumix-shadow-card);
}

*, *::before, *::after { box-sizing: border-box; }

html {
	min-width: 320px;
	overflow-x: hidden;
	background: var(--bg);
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
	background:
		radial-gradient(circle at 78% 2%, rgba(0, 113, 227, .06), transparent 31rem),
		var(--bg);
	color: var(--ink);
	font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

html.pb-public-dark body {
	background:
		radial-gradient(circle at 78% 2%, rgba(10, 132, 255, .10), transparent 34rem),
		var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

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

.today-noscript {
	position: relative;
	z-index: 100;
	padding: 12px 18px;
	background: #fff4db;
	color: #664a13;
	text-align: center;
	font-weight: 650;
}

/* Header and desktop rail */
.today-top {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
}

html.pb-public-dark .today-top { background: rgba(21, 21, 23, .90); }

.today-top-in {
	width: min(1180px, calc(100% - 40px));
	min-height: 66px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.today-logo {
	flex: 0 0 142px;
	height: 38px;
	display: flex;
	align-items: center;
}

.today-logo img,
.today-rail-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

html.pb-public-dark .today-logo img,
html.pb-public-dark .today-rail-logo img { filter: invert(1) hue-rotate(180deg); }

.today-brand {
	min-width: 0;
	padding-left: 15px;
	border-left: 1px solid var(--line);
}

.today-brand b { display: block; font-size: 15px; letter-spacing: -.01em; }
.today-brand span { display: block; color: var(--sub); font-size: 11px; white-space: nowrap; }

.today-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 7px;
}

.today-top-link,
.today-profile-link {
	min-height: 38px;
	padding: 0 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--sub);
	font-size: 12px;
	font-weight: 700;
}

.today-top-link:hover,
.today-profile-link:hover {
	border-color: var(--line);
	background: var(--panel);
	color: var(--ink);
}

.today-profile-link {
	border-color: var(--line);
	background: var(--panel);
	color: var(--ink);
}

.today-profile-link > span:first-child { color: var(--accent); font-size: 15px; }

.today-rail { display: none; }

/* Page heading and common controls */
.today-page {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
	padding: 36px 0 72px;
}

.today-return-song {
	width: max-content;
	min-height: 44px;
	margin: 0 0 16px;
	padding: 0 15px;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-sizing: border-box;
	background: var(--panel);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--shadow-soft);
}

.today-return-song[hidden] { display: none !important; }
.today-return-song:hover { border-color: var(--accent); color: var(--accent); }
.today-return-song:focus-visible { outline: 3px solid rgba(10,132,255,.42); outline-offset: 2px; }
.today-return-song-icon { font-size: 19px; line-height: 1; }

.today-heading {
	margin-bottom: 20px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
}

.today-kicker,
.today-card-label,
.today-section-label {
	margin: 0 0 5px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.today-heading h1 {
	margin: 0;
	font-size: clamp(34px, 5vw, 49px);
	line-height: 1.02;
	letter-spacing: -.045em;
}

.today-lead {
	margin: 8px 0 0;
	color: var(--sub);
	font-size: 16px;
}

.today-refresh {
	min-width: 116px;
	min-height: 42px;
	padding: 0 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--panel);
	color: var(--ink);
	font-size: 13px;
	font-weight: 720;
	cursor: pointer;
}

.today-refresh:hover { border-color: rgba(0, 113, 227, .24); background: var(--soft-blue); }
.today-refresh > span:first-child { color: var(--accent); font-size: 20px; line-height: 1; }
.today-refresh[disabled] { opacity: .58; cursor: default; }
body.today-refreshing .today-refresh > span:first-child { animation: todaySpin .8s linear infinite; }

@keyframes todaySpin { to { transform: rotate(360deg); } }

.today-button {
	min-height: 46px;
	padding: 0 19px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 760;
	line-height: 1.15;
	cursor: pointer;
}

.today-button-primary {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 113, 227, .20);
}

.today-button-primary:hover { background: var(--accent-strong); }
.today-button-secondary { border-color: var(--line); background: var(--panel); color: var(--ink); }
.today-button-secondary:hover { background: var(--soft); }
.today-button-quiet { min-height: 40px; padding: 0 13px; border-color: var(--line); background: transparent; color: var(--sub); }
.today-button-quiet:hover { background: var(--soft); color: var(--ink); }
.today-button[disabled] { opacity: .55; cursor: wait; }

/* Loading */
.today-loading {
	min-height: 520px;
	padding: 27px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.today-loading-copy {
	display: flex;
	align-items: center;
	gap: 13px;
}

.today-loading-copy b,
.today-loading-copy span { display: block; }
.today-loading-copy b { font-size: 16px; }
.today-loading-copy span { margin-top: 2px; color: var(--sub); font-size: 12px; }

.today-loading-mark {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(0, 113, 227, .16);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: todaySpin .9s linear infinite;
}

.today-skeleton-primary {
	min-height: 280px;
	margin-top: 24px;
	padding: 30px;
	display: grid;
	grid-template-columns: 180px 1fr;
	align-items: center;
	gap: 32px;
	border-radius: 21px;
	background: linear-gradient(130deg, #e8ebef, #f4f5f7);
}

html.pb-public-dark .today-skeleton-primary { background: linear-gradient(130deg, #232326, #2d2d31); }

.today-skeleton-art,
.today-skeleton-lines i,
.today-skeleton-grid div {
	position: relative;
	overflow: hidden;
	background: rgba(128, 137, 148, .16);
}

.today-skeleton-art::after,
.today-skeleton-lines i::after,
.today-skeleton-grid div::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-110%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	animation: todayShimmer 1.45s ease-in-out infinite;
}

html.pb-public-dark .today-skeleton-art::after,
html.pb-public-dark .today-skeleton-lines i::after,
html.pb-public-dark .today-skeleton-grid div::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }

@keyframes todayShimmer { 100% { transform: translateX(110%); } }

.today-skeleton-art { width: 180px; aspect-ratio: 1; border-radius: 23px; }
.today-skeleton-lines { display: grid; gap: 14px; }
.today-skeleton-lines i { display: block; height: 15px; border-radius: 6px; }
.today-skeleton-lines i:nth-child(1) { width: 25%; }
.today-skeleton-lines i:nth-child(2) { width: 70%; height: 30px; }
.today-skeleton-lines i:nth-child(3) { width: 52%; }
.today-skeleton-lines i:nth-child(4) { width: 38%; height: 46px; margin-top: 16px; border-radius: 12px; }
.today-skeleton-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.today-skeleton-grid div { height: 130px; border-radius: 16px; }

/* Primary plan card */
.today-primary-card {
	position: relative;
	isolation: isolate;
	min-height: 342px;
	padding: 34px;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 228px;
	gap: 36px;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 26px;
	background:
		radial-gradient(circle at 90% 0%, rgba(92, 169, 225, .25), transparent 17rem),
		linear-gradient(140deg, #102c42 0%, #153a54 52%, #0f2435 100%);
	color: #fff;
	box-shadow: 0 24px 66px rgba(11, 38, 58, .22);
}

.today-primary-card::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -70px;
	bottom: -110px;
	width: 300px;
	height: 300px;
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
	box-shadow: 0 0 0 30px rgba(255,255,255,.018), 0 0 0 70px rgba(255,255,255,.012);
}

.today-primary-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.today-primary-card .today-card-label { color: #8fd0ff; }

.today-primary-reason {
	margin: 0 0 16px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, .76);
	font-size: 12px;
	font-weight: 680;
}

.today-primary-reason::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fd0ff; }

.today-primary-card h2 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(28px, 4.2vw, 45px);
	line-height: 1.04;
	letter-spacing: -.04em;
}

.today-primary-author { margin: 7px 0 0; color: rgba(255,255,255,.68); font-size: 17px; font-weight: 650; }
.today-primary-target { margin: 22px 0 0; color: #fff; font-size: 17px; font-weight: 730; line-height: 1.35; }
.today-primary-explanation { max-width: 630px; margin: 7px 0 0; color: rgba(255,255,255,.70); font-size: 14px; }

.today-primary-places {
	margin: 13px 0 0;
	padding: 0;
	display: grid;
	gap: 5px;
	list-style: none;
	color: rgba(255,255,255,.82);
	font-size: 12px;
}

.today-primary-places li { position: relative; padding-left: 14px; }
.today-primary-places li::before { content: ""; position: absolute; left: 0; top: .52em; width: 5px; height: 5px; border-radius: 50%; background: #8fd0ff; }

.today-primary-meta {
	margin: 18px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.today-primary-meta span,
.today-primary-status {
	min-height: 29px;
	padding: 5px 10px;
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(255,255,255,.11);
	border-radius: 999px;
	background: rgba(255,255,255,.07);
	color: rgba(255,255,255,.84);
	font-size: 11px;
	font-weight: 720;
}

.today-primary-progress { width: min(540px, 100%); margin-top: 21px; }
.today-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.72); font-size: 11px; }
.today-progress-top b { color: #fff; font-size: 12px; }
.today-progress-track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.13); }
.today-progress-track span { display: block; height: 100%; border-radius: inherit; background: #6dc1ff; }

.today-primary-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.today-primary-actions .today-button-primary { min-width: 190px; border-color: #fff; background: #fff; color: #12324a; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.today-primary-actions .today-button-primary:hover { background: #eff7fd; }
.today-primary-actions .today-button-secondary { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; }
.today-primary-actions .today-button-secondary:hover { background: rgba(255,255,255,.14); }

.today-primary-art {
	align-self: center;
	justify-self: end;
	width: 218px;
	aspect-ratio: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 27px;
	background:
		linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04)),
		repeating-linear-gradient(125deg, transparent 0 26px, rgba(255,255,255,.025) 26px 27px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 42px rgba(0,0,0,.14);
}

.today-art-mark { font-size: 47px; line-height: 1; color: #8fd0ff; }
.today-art-copy { width: 100%; }
.today-art-copy b, .today-art-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-art-copy b { font-size: 15px; }
.today-art-copy span { margin-top: 3px; color: rgba(255,255,255,.61); font-size: 11px; }

/* Goal */
.today-goal {
	margin-top: 16px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 19px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.today-goal-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.today-goal h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.today-goal-main > b { color: var(--ink); font-size: 15px; }
.today-goal-track { height: 7px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: var(--soft); }
.today-goal-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3589ce, #48a27a); transition: width .28s ease; }
.today-goal.goal-complete .today-goal-track span { background: #48a27a; }

.today-goal-footer {
	margin-top: 11px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.today-goal-footer > p { margin: 0; color: var(--sub); font-size: 12px; }
.today-goal-settings { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.today-goal-settings label:first-child { display: flex; align-items: center; gap: 7px; color: var(--sub); font-size: 11px; font-weight: 700; }
.today-goal-settings select {
	height: 36px;
	padding: 0 29px 0 10px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--panel);
	color: var(--ink);
	font-size: 12px;
}

.today-goal-settings button {
	height: 36px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--soft);
	color: var(--ink);
	font-size: 11px;
	font-weight: 750;
	cursor: pointer;
}

.today-goal-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.today-goal-switch input { position: absolute; opacity: 0; pointer-events: none; }
.today-goal-switch > span { position: relative; width: 35px; height: 21px; border-radius: 99px; background: #c8ccd2; transition: background .2s; }
.today-goal-switch > span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: transform .2s; }
.today-goal-switch input:checked + span { background: var(--accent); }
.today-goal-switch input:checked + span::after { transform: translateX(14px); }
.today-goal-switch b { color: var(--sub); font-size: 11px; }
.today-goal.goal-disabled .today-goal-track { opacity: .45; }

/* Secondary cards */
.today-secondary,
.today-suggestions { margin-top: 34px; }

.today-section-head {
	margin-bottom: 14px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
}

.today-section-head h2 { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: -.03em; }
.today-section-head p { margin: 0; color: var(--sub); font-size: 12px; }
.today-section-head > a { color: var(--accent); font-size: 13px; font-weight: 740; }

.today-secondary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.today-secondary-card {
	min-width: 0;
	min-height: 236px;
	padding: 21px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.today-secondary-icon {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--soft-blue);
	color: var(--accent);
	font-size: 19px;
}

.today-secondary-card h3 { margin: 15px 0 0; font-size: 18px; line-height: 1.23; letter-spacing: -.02em; }
.today-secondary-song { margin: 5px 0 0; color: var(--ink); font-size: 13px; font-weight: 680; }
.today-secondary-card p { margin: 7px 0 0; color: var(--sub); font-size: 12px; line-height: 1.45; }
.today-secondary-places { margin: 9px 0 0; padding-left: 17px; color: var(--ink); font-size: 11px; line-height: 1.42; }
.today-secondary-places li + li { margin-top: 3px; }
.today-secondary-meta { margin-top: 9px; color: var(--sub); font-size: 11px; font-weight: 700; }
.today-secondary-card .today-button { width: 100%; min-height: 42px; margin-top: auto; padding-top: 10px; padding-bottom: 10px; }

/* Suggestions and empty state */
.today-suggestion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }

.today-suggestion-card {
	min-width: 0;
	padding: 15px;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--panel);
}

.today-suggestion-art { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--soft-blue); color: var(--accent); font-size: 20px; }
.today-suggestion-copy { min-width: 0; }
.today-suggestion-copy b, .today-suggestion-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-suggestion-copy b { font-size: 13px; }
.today-suggestion-copy span { margin-top: 3px; color: var(--sub); font-size: 10px; }
.today-suggestion-card button { width: 37px; height: 37px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--accent); cursor: pointer; }
.today-suggestion-card button:hover { background: var(--soft-blue); }

.today-empty,
.today-error {
	min-height: 410px;
	padding: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--panel);
	text-align: center;
	box-shadow: var(--shadow);
}

.today-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 38px; text-align: left; }
.today-empty-main { min-width: 0; }
.today-state-icon { width: 58px; height: 58px; margin-bottom: 17px; display: grid; place-items: center; border-radius: 18px; background: var(--soft-blue); color: var(--accent); font-size: 25px; }
.today-error .today-state-icon { margin-left: auto; margin-right: auto; }
.today-empty h2, .today-error h2 { margin: 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.today-empty p, .today-error p { max-width: 590px; margin: 12px 0 0; color: var(--sub); }
.today-state-actions { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 9px; }
.today-error .today-state-actions { justify-content: center; }
.today-empty-suggestions { display: grid; gap: 9px; }
.today-empty-suggestions .today-suggestion-card { grid-template-columns: 44px minmax(0, 1fr) auto; }

/* Plan controls */
.today-plan-controls { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.today-control-primary { min-height: 40px; margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.today-control-primary::before { content: "Управление планом"; margin-right: 5px; color: var(--sub); font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }

.today-quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.today-quick-links a {
	min-width: 0;
	min-height: 76px;
	padding: 13px;
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: var(--panel);
}
.today-quick-links a:hover { background: var(--soft); }
.today-quick-links a > span { grid-row: 1 / 3; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--soft-blue); color: var(--accent); font-size: 17px; }
.today-quick-links b { min-width: 0; align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.today-quick-links small { min-width: 0; align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); font-size: 9px; }

/* Auth */
.today-auth {
	min-height: 520px;
	padding: 42px;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(330px, .72fr);
	align-items: center;
	gap: 58px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.today-auth-copy h2 { max-width: 620px; margin: 0; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.today-auth-copy > p { max-width: 600px; margin: 15px 0 0; color: var(--sub); font-size: 16px; }
.today-auth-copy ul { margin: 21px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.today-auth-copy li { position: relative; padding-left: 25px; color: var(--ink); font-weight: 640; }
.today-auth-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.today-text-link { display: inline-flex; margin-top: 25px; color: var(--accent); font-weight: 730; }

.today-auth-form-wrap { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.today-auth-tabs { margin-bottom: 17px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 11px; background: var(--soft); }
.today-auth-tabs button { min-height: 39px; border: 0; border-radius: 9px; background: transparent; color: var(--sub); font-size: 12px; font-weight: 750; cursor: pointer; }
.today-auth-tabs button.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.today-field { display: block; margin-top: 12px; }
.today-field > span { display: block; margin-bottom: 5px; color: var(--sub); font-size: 11px; font-weight: 720; }
.today-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--panel); color: var(--ink); font-size: 15px; }
.today-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.10); }
.today-auth-submit { width: 100%; margin-top: 17px; }
.today-auth-forgot { width: 100%; min-height: 40px; margin-top: 5px; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 690; cursor: pointer; }
.today-form-message { min-height: 20px; margin-top: 8px; color: #b33a32; font-size: 12px; text-align: center; }
.today-form-message.success { color: var(--success); }

/* Toast and mobile nav */
.today-toast {
	position: fixed;
	z-index: 100;
	left: 50%;
	bottom: 25px;
	max-width: min(420px, calc(100vw - 24px));
	padding: 11px 15px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 12px;
	background: rgba(29,29,31,.94);
	color: #fff;
	box-shadow: 0 12px 38px rgba(0,0,0,.25);
	font-size: 12px;
	font-weight: 650;
	text-align: center;
	opacity: 0;
	transform: translate(-50%, 16px);
	pointer-events: none;
	transition: opacity .18s, transform .18s;
}
.today-toast.show { opacity: 1; transform: translate(-50%, 0); }
.today-mobile-nav { display: none; }

body[data-today-state="idle"] [data-today-view],
body[data-today-state="loading"] [data-today-view]:not([data-today-view="loading"]),
body[data-today-state="auth"] [data-today-view]:not([data-today-view="auth"]),
body[data-today-state="error"] [data-today-view]:not([data-today-view="error"]),
body[data-today-state="empty"] [data-today-view]:not([data-today-view="empty"]),
body[data-today-state="ready"] [data-today-view]:not([data-today-view="ready"]) { display: none !important; }

body[data-today-state="idle"] .today-loading,
body[data-today-state="loading"] .today-loading,
body[data-today-state="auth"] .today-auth,
body[data-today-state="error"] .today-error,
body[data-today-state="empty"] .today-empty,
body[data-today-state="ready"] .today-content { display: block; }
body[data-today-state="auth"] .today-auth { display: grid; }
body[data-today-state="empty"] .today-empty { display: grid; }
body.today-refreshing .today-content { opacity: .985; }

@media (min-width: 900px) {
	body { padding-left: var(--today-rail-width); }
	.today-top-in { width: min(1180px, calc(100% - 40px)); }
	.today-rail {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 50;
		width: var(--today-rail-width);
		padding: 8px 6px 10px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		border-right: 1px solid var(--line);
		background: rgba(251,251,252,.97);
		backdrop-filter: blur(18px);
	}
	html.pb-public-dark .today-rail { background: rgba(21,21,23,.97); }
	.today-rail-logo { width: 100px; height: 52px; padding: 8px 0; display: flex; align-items: center; }
	.today-rail-link {
		position: relative;
		width: 100px;
		min-height: 57px;
		padding: 5px 2px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		border-radius: 7px;
		color: var(--sub);
		font-size: 10px;
		font-weight: 650;
	}
	.today-rail-link:hover { background: var(--soft); color: var(--ink); }
	.today-rail-link.active { background: var(--soft-blue); color: var(--accent); }
	.today-rail-link.active::before { content: ""; position: absolute; left: -6px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
	.today-rail-icon { min-height: 20px; display: grid; place-items: center; font-size: 17px; line-height: 1; }
	.today-rail-help { margin-top: auto; }
}

@media (max-width: 1080px) and (min-width: 900px) {
	.today-page { width: calc(100% - 34px); }
	.today-top-in { width: calc(100% - 34px); }
	.today-top-link:nth-of-type(2) { display: none; }
	.today-primary-card { grid-template-columns: minmax(0, 1fr) 190px; gap: 25px; }
	.today-primary-art { width: 186px; }
	.today-secondary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 899px) {
	html, body { overscroll-behavior-y: none; }
	body { padding: 0; }
	.today-top { padding-top: env(safe-area-inset-top, 0px); }
	.today-top-in {
		width: 100%;
		height: 64px;
		min-height: 64px;
		padding-top: 9px;
		padding-right: max(12px, env(safe-area-inset-right, 0px));
		padding-bottom: 9px;
		padding-left: max(12px, env(safe-area-inset-left, 0px));
		display: grid;
		grid-template-columns: 118px minmax(0, 1fr) 44px;
		gap: 9px;
	}
	.today-logo { grid-column: 1; grid-row: 1; width: 118px; height: 34px; }
	.today-brand { grid-column: 2; grid-row: 1; min-width: 0; padding-left: 9px; }
	.today-brand b { font-size: 13px; }
	.today-brand span { overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
	.today-actions { display: contents; }
	.today-actions > a { display: none; }
	.today-top-in > .pbPublicThemeToggle { grid-column: 3; grid-row: 1; }
	.pbPublicThemeToggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
	.today-page {
		width: 100%;
		padding-top: 20px;
		padding-right: max(14px, env(safe-area-inset-right, 0px));
		padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
		padding-left: max(14px, env(safe-area-inset-left, 0px));
	}
	.today-return-song { margin-bottom: 12px; }
	.today-heading { margin-bottom: 15px; align-items: center; }
	.today-kicker { font-size: 9px; }
	.today-heading h1 { font-size: 34px; }
	.today-lead { max-width: 270px; margin-top: 5px; font-size: 12px; }
	.today-refresh { width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 50%; }
	.today-refresh > span:last-child { display: none; }
	.today-loading { min-height: 470px; padding: 18px; border-radius: 19px; }
	.today-loading-copy { align-items: flex-start; }
	.today-loading-copy b { font-size: 14px; }
	.today-loading-copy span { font-size: 10px; }
	.today-skeleton-primary { min-height: 270px; padding: 19px; grid-template-columns: 92px minmax(0,1fr); gap: 18px; border-radius: 16px; }
	.today-skeleton-art { width: 92px; border-radius: 16px; }
	.today-skeleton-lines { gap: 10px; }
	.today-skeleton-lines i:nth-child(2) { height: 24px; width: 88%; }
	.today-skeleton-lines i:nth-child(4) { width: 72%; height: 44px; }
	.today-skeleton-grid { grid-template-columns: 1fr; }
	.today-skeleton-grid div { height: 90px; }
	.today-primary-card {
		min-height: 0;
		padding: 24px 21px 21px;
		grid-template-columns: 1fr;
		gap: 22px;
		border-radius: 21px;
	}
	.today-primary-card h2 { font-size: clamp(29px, 9.2vw, 39px); }
	.today-primary-author { font-size: 15px; }
	.today-primary-target { margin-top: 17px; font-size: 15px; }
	.today-primary-explanation { font-size: 12px; }
	.today-primary-art { display: none; }
	.today-primary-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
	.today-primary-actions .today-button { width: 100%; min-height: 50px; }
	.today-primary-meta { margin-top: 15px; }
	.today-goal { padding: 19px 17px; border-radius: 17px; }
	.today-goal-main { align-items: center; }
	.today-goal h2 { font-size: 18px; }
	.today-goal-main > b { font-size: 12px; }
	.today-goal-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
	.today-goal-settings { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
	.today-goal-settings label:first-child { flex: 1 1 128px; }
	.today-goal-settings select { flex: 1; min-width: 100px; height: 44px; font-size: 16px; }
	.today-goal-settings button { min-height: 44px; margin-left: auto; padding: 0 14px; }
	.today-goal-switch { min-height: 44px; }
	.today-secondary, .today-suggestions { margin-top: 29px; }
	.today-section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
	.today-section-head h2 { font-size: 23px; }
	.today-section-head p { font-size: 10px; }
	.today-secondary-grid, .today-suggestion-grid { grid-template-columns: 1fr; }
	.today-secondary-card { min-height: 0; padding: 18px; }
	.today-secondary-card .today-button { margin-top: 18px; min-height: 46px; }
	.today-suggestion-card { min-height: 68px; }
	.today-plan-controls { margin-top: 28px; }
	.today-control-primary { display: grid; grid-template-columns: 1fr 1fr; }
	.today-control-primary::before { grid-column: 1 / -1; }
	.today-control-primary .today-button { width: 100%; min-height: 44px; }
	.today-quick-links { grid-template-columns: 1fr 1fr; }
	.today-quick-links a { min-height: 72px; }
	.today-auth { min-height: 0; padding: 24px 19px; grid-template-columns: 1fr; gap: 27px; border-radius: 20px; }
	.today-auth-copy h2 { font-size: 31px; }
	.today-auth-copy > p { font-size: 13px; }
	.today-auth-copy ul { font-size: 13px; }
	.today-auth-form-wrap { padding: 17px; }
	.today-field input { height: 48px; font-size: 16px; }
	.today-auth-submit { min-height: 49px; }
	.today-empty, .today-error { min-height: 0; padding: 34px 21px; border-radius: 20px; }
	.today-empty { display: flex; flex-direction: column; align-items: stretch; text-align: left; }
	.today-empty-suggestions { width: 100%; margin-top: 25px; }
	.today-empty h2, .today-error h2 { font-size: 30px; }
	.today-state-actions { display: grid; grid-template-columns: 1fr; }
	.today-state-actions .today-button { width: 100%; }
	.today-toast { bottom: calc(75px + env(safe-area-inset-bottom, 0px)); }
	.today-mobile-nav {
		position: fixed;
		z-index: 60;
		left: 0;
		right: 0;
		bottom: 0;
		height: calc(64px + env(safe-area-inset-bottom, 0px));
		padding-top: 5px;
		padding-right: max(6px, env(safe-area-inset-right, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		padding-left: max(6px, env(safe-area-inset-left, 0px));
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		border-top: 1px solid var(--line);
		background: rgba(255,255,255,.94);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}
	body.today-no-last-song .today-mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	html.pb-public-dark .today-mobile-nav { background: rgba(21,21,23,.94); }
	.today-mobile-nav a {
		min-width: 0;
		padding: 3px 1px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		border-radius: 9px;
		color: var(--sub);
		font-size: 9px;
		font-weight: 650;
		line-height: 1;
	}
	.today-mobile-nav a.active { background: var(--soft-blue); color: var(--accent); }
	.today-mobile-icon { min-height: 20px; display: grid; place-items: center; font-size: 18px; }
	.today-mobile-last .today-mobile-icon { width: 34px; height: 34px; margin-top: -13px; border: 3px solid rgba(255,255,255,.96); border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 17px rgba(0,113,227,.27); font-size: 12px; }
	html.pb-public-dark .today-mobile-last .today-mobile-icon { border-color: rgba(21,21,23,.98); }
	.today-mobile-profile { color: var(--accent); font-size: 15px; }
}

@media (max-width: 370px) {
	.today-page { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
	.today-top-in { padding-left: max(9px, env(safe-area-inset-left, 0px)); padding-right: max(9px, env(safe-area-inset-right, 0px)); grid-template-columns: 108px minmax(0,1fr) 44px; }
	.today-logo { width: 108px; }
	.today-brand { padding-left: 7px; }
	.today-primary-card { padding-left: 18px; padding-right: 18px; }
	.today-primary-card h2 { font-size: 29px; }
	.today-primary-meta span { font-size: 10px; }
	.today-control-primary { grid-template-columns: 1fr; }
	.today-control-primary::before { grid-column: 1; }
	.today-quick-links { grid-template-columns: 1fr; }
	.today-mobile-nav a { font-size: 8px; }
}

@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) {
	.today-page { padding-top: 12px; }
	.today-heading { margin-bottom: 11px; }
	.today-kicker, .today-lead { display: none; }
	.today-heading h1 { font-size: 29px; }
	.today-primary-card { padding: 20px; grid-template-columns: minmax(0, 1fr) 145px; gap: 18px; }
	.today-primary-art { display: flex; width: 140px; border-radius: 18px; }
	.today-art-mark { font-size: 31px; }
	.today-primary-card h2 { font-size: 28px; }
	.today-primary-target { margin-top: 11px; }
	.today-primary-explanation { display: none; }
	.today-primary-progress { margin-top: 13px; }
	.today-primary-actions { margin-top: 15px; display: flex; }
	.today-primary-actions .today-button { width: auto; min-height: 44px; }
	.today-secondary-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.today-mobile-nav { height: calc(58px + env(safe-area-inset-bottom, 0px)); }
	.today-mobile-nav a { flex-direction: row; gap: 5px; }
	.today-mobile-icon { min-height: 18px; font-size: 15px; }
	.today-mobile-last .today-mobile-icon { width: 30px; height: 30px; margin-top: 0; border-width: 2px; }
	.today-toast { bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
