:root {
	--bg: #0c0d12;
	--bg-raised: #14161e;
	--border: #232633;
	--text: #e9ebf2;
	--text-dim: #969cb0;
	--accent: #e0483c;

	--lane-1: #3cc846;
	--lane-2: #dc3737;
	--lane-3: #ebc832;
	--lane-4: #3778e6;
	--lane-5: #f08c28;
}

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

main {
	flex: 1;
	width: 100%;
	max-width: 60rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header ------------------------------------------------------------------ */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 60rem;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.session {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
	color: var(--text-dim);
}

.session-email {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 16rem;
}

.linkish {
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-dim);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.linkish:hover {
	color: var(--text);
}

/* Auth cards -------------------------------------------------------------- */

.card-wrap {
	display: flex;
	justify-content: center;
	padding: 4rem 0;
}

.card {
	width: 100%;
	max-width: 26rem;
	padding: 2.25rem;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 0.9rem;
}

.card-title {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
	letter-spacing: -0.02em;
}

.card-text {
	margin: 0;
	color: var(--text-dim);
	font-size: 0.95rem;
}

.notice {
	margin: 1.25rem 0 0;
	padding: 0.7rem 0.9rem;
	border-radius: 0.5rem;
	background: rgba(224, 72, 60, 0.12);
	border: 1px solid rgba(224, 72, 60, 0.35);
	color: #f0918a;
	font-size: 0.88rem;
}

.card .button {
	display: block;
	margin-top: 1.75rem;
	text-align: center;
	width: 100%;
}

.missing {
	margin: 1.25rem 0 0;
	padding-left: 1.1rem;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.missing li {
	margin-bottom: 0.35rem;
}

.wordmark {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.wordmark-band {
	color: var(--text);
}

.wordmark-rivals {
	color: var(--accent);
}

/* Hero -------------------------------------------------------------------- */

.hero {
	padding: 3.5rem 0 3rem;
}

.hero.centred {
	text-align: center;
	padding-top: 5rem;
}

.eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	font-weight: 700;
}

.lede {
	margin: 0;
	max-width: 42rem;
	font-size: 1.1rem;
	color: var(--text-dim);
}

.hero.centred .lede {
	margin: 0 auto;
}

/* Decorative lanes -------------------------------------------------------- */

.lanes {
	display: flex;
	gap: 0.5rem;
	margin-top: 3rem;
	height: 0.4rem;
}

.lane {
	flex: 1;
	border-radius: 999px;
	opacity: 0.85;
}

.lane-1 { background: var(--lane-1); }
.lane-2 { background: var(--lane-2); }
.lane-3 { background: var(--lane-3); }
.lane-4 { background: var(--lane-4); }
.lane-5 { background: var(--lane-5); }

/* Panels ------------------------------------------------------------------ */

.panel {
	margin: 1rem 0 4rem;
	padding: 2rem;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 0.9rem;
}

.panel h2 {
	margin: 0 0 1.5rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.roadmap {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.5rem;
}

.roadmap li {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.roadmap h3 {
	margin: 0 0 0.2rem;
	font-size: 1rem;
	font-weight: 600;
}

.roadmap p {
	margin: 0;
	color: var(--text-dim);
	font-size: 0.95rem;
}

.status {
	flex: none;
	margin-top: 0.2rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.status-progress {
	background: rgba(60, 200, 70, 0.14);
	color: #6fdc78;
}

.status-next {
	background: rgba(150, 156, 176, 0.14);
	color: var(--text-dim);
}

code {
	padding: 0.1rem 0.35rem;
	border-radius: 0.3rem;
	background: rgba(150, 156, 176, 0.14);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.87em;
}

/* Bits and pieces --------------------------------------------------------- */

.button {
	display: inline-block;
	margin-top: 2rem;
	padding: 0.7rem 1.4rem;
	border-radius: 0.55rem;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.button:hover {
	filter: brightness(1.1);
}

.trace {
	margin: 2rem 0 0;
	padding: 1rem;
	overflow-x: auto;
	text-align: left;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.8rem;
	color: var(--text-dim);
}

.site-footer {
	max-width: 60rem;
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1.5rem 3rem;
	color: var(--text-dim);
	font-size: 0.85rem;
}

.dot {
	margin: 0 0.4rem;
	opacity: 0.5;
}

@media (max-width: 34rem) {
	.panel {
		padding: 1.5rem;
	}

	.roadmap li {
		flex-direction: column;
		gap: 0.5rem;
	}
}

/* Header nav -------------------------------------------------------------- */

.header-left {
	display: flex;
	align-items: baseline;
	gap: 1.75rem;
}

.nav a {
	color: var(--text-dim);
	font-size: 0.9rem;
	text-decoration: none;
}

.nav a:hover {
	color: var(--text);
}

/* Page furniture ---------------------------------------------------------- */

.page-head {
	padding: 1rem 0 2rem;
}

.back {
	display: inline-block;
	margin-bottom: 0.75rem;
	color: var(--text-dim);
	font-size: 0.85rem;
	text-decoration: none;
}

.back:hover {
	color: var(--text);
}

.page-title {
	margin: 0 0 0.35rem;
	font-size: 2rem;
	letter-spacing: -0.02em;
}

.page-sub {
	margin: 0;
	color: var(--text-dim);
	font-size: 0.95rem;
}

.panel + .panel {
	margin-top: 1.5rem;
}

.panel.two-up {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 2rem;
}

.panel.danger {
	border-color: rgba(224, 72, 60, 0.35);
}

.hint {
	margin: -0.75rem 0 1.25rem;
	color: var(--text-dim);
	font-size: 0.88rem;
}

.empty {
	color: var(--text-dim);
	text-align: center;
}

/* Flash ------------------------------------------------------------------- */

.flash {
	margin-bottom: 1.5rem;
	padding: 0.9rem 1.1rem;
	border-radius: 0.6rem;
	font-size: 0.9rem;
}

.flash p {
	margin: 0;
}

.flash ul {
	margin: 0.6rem 0 0;
	padding-left: 1.1rem;
	opacity: 0.85;
	font-size: 0.85rem;
}

.flash-success {
	background: rgba(60, 200, 70, 0.12);
	border: 1px solid rgba(60, 200, 70, 0.35);
	color: #7fe087;
}

.flash-error {
	background: rgba(224, 72, 60, 0.12);
	border: 1px solid rgba(224, 72, 60, 0.35);
	color: #f0918a;
}

/* Tables ------------------------------------------------------------------ */

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.table th {
	padding: 0 0.6rem 0.6rem;
	border-bottom: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: left;
}

.table td {
	padding: 0.6rem;
	border-bottom: 1px solid rgba(35, 38, 51, 0.6);
	vertical-align: middle;
}

.table tr:last-child td {
	border-bottom: 0;
}

.table .num {
	text-align: right;
	white-space: nowrap;
}

.table.compact input[type="number"] {
	width: 8rem;
}

.table tr.older td {
	opacity: 0.55;
}

.strong-link {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.strong-link:hover {
	color: var(--accent);
}

.muted {
	color: var(--text-dim);
	margin-left: 0.5rem;
}

/* Pills ------------------------------------------------------------------- */

.pill {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	background: rgba(150, 156, 176, 0.14);
	color: var(--text-dim);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pill-live { background: rgba(60, 200, 70, 0.16); color: #6fdc78; }
.pill-pending { background: rgba(235, 200, 50, 0.16); color: #e3c94f; }
.pill-draft { background: rgba(150, 156, 176, 0.14); color: var(--text-dim); }
.pill-rejected { background: rgba(224, 72, 60, 0.16); color: #f0918a; }
.pill-revision_requested { background: rgba(240, 140, 40, 0.16); color: #f0a355; }

/* Forms ------------------------------------------------------------------- */

.field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.75rem;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.field > span {
	color: var(--text-dim);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.field small {
	color: var(--text-dim);
	font-size: 0.78rem;
	line-height: 1.45;
}

input[type="text"],
input[type="number"],
select {
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: 0.45rem;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 0.9rem;
}

input:focus,
select:focus {
	outline: 2px solid var(--accent);
	outline-offset: -1px;
}

input[type="file"] {
	color: var(--text-dim);
	font-size: 0.9rem;
}

button.button {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	margin-top: 0;
}

.button-danger {
	background: transparent;
	border: 1px solid rgba(224, 72, 60, 0.5);
	color: #f0918a;
}

.button-danger:hover {
	background: rgba(224, 72, 60, 0.12);
	filter: none;
}

.import .import-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Lists ------------------------------------------------------------------- */

.plain {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.plain li {
	padding: 0.25rem 0;
}

.plain.inline {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.plain code {
	margin-right: 0.5rem;
}

/* Stems ------------------------------------------------------------------- */

.stem {
	padding: 1.25rem 0;
	border-top: 1px solid rgba(35, 38, 51, 0.7);
}

.stem:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.stem-head {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.stem-head h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.stem-head .muted {
	margin-left: 0;
	font-size: 0.85rem;
}

.stem audio {
	width: 100%;
	max-width: 32rem;
	height: 2.25rem;
	margin-bottom: 0.9rem;
	filter: invert(0.92) hue-rotate(180deg);
}

.stem-forms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.stem-forms form {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.stem-forms .button {
	margin-top: 0;
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
}

.asset-form input[type="text"] {
	width: 11rem;
	padding: 0.4rem 0.6rem;
	font-size: 0.85rem;
}

.button-quiet {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-dim);
}

.button-quiet:hover {
	background: rgba(150, 156, 176, 0.1);
	color: var(--text);
	filter: none;
}

.upload-status {
	color: var(--text-dim);
	font-size: 0.82rem;
}

.slot-note {
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: rgba(150, 156, 176, 0.12);
	color: var(--text-dim);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Mix player -------------------------------------------------------------- */

.mix {
	margin-top: 1.25rem;
}

.mix-transport {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-bottom: 1.25rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid rgba(35, 38, 51, 0.7);
}

.mix-transport .button {
	margin-top: 0;
	min-width: 5rem;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}

.mix-transport input[type="range"] {
	flex: 1;
}

.mix-clock {
	color: var(--text-dim);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85rem;
	white-space: nowrap;
}

.mix-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
}

.mix-name {
	width: 8rem;
	flex: none;
	font-size: 0.9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mix-row input[type="range"] {
	flex: 1;
	max-width: 16rem;
}

.mix-row-failed {
	opacity: 0.4;
}

.mix-toggle {
	padding: 0.25rem 0.6rem;
	border: 1px solid var(--border);
	border-radius: 0.4rem;
	background: transparent;
	color: var(--text-dim);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.mix-toggle:hover {
	color: var(--text);
}

.mix-toggle.on {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.mix-toggle[data-mix-toggle="solo"].on {
	background: var(--lane-3);
	border-color: var(--lane-3);
	color: #1f2430;
}

input[type="range"] {
	accent-color: var(--accent);
}

.stem-link {
	margin: -0.5rem 0 0.9rem;
	color: var(--text-dim);
	font-size: 0.8rem;
}

.stem-link a {
	color: var(--text-dim);
}

.stem-link a:hover {
	color: var(--text);
}

[data-mix-status] ul {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
}

[data-mix-status] li {
	margin-bottom: 0.2rem;
}

.checks {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.check {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.92rem;
	cursor: pointer;
}

.check input {
	accent-color: var(--accent);
	width: 1rem;
	height: 1rem;
}

.stem-divider {
	margin: 1.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stem-divider + .stem {
	border-top: 0;
}

/* Chart viewer ------------------------------------------------------------ */

.viewer-wrap {
	margin-top: 1.25rem;
}

.viewer {
	display: block;
	width: 100%;
	height: 22rem;
	background: #08090d;
	border: 1px solid var(--border);
	border-radius: 0.6rem;
}

.viewer-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.9rem;
}

.viewer-controls select {
	min-width: 10rem;
}

.viewer-offset {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	color: var(--text-dim);
	font-size: 0.82rem;
}

.viewer-offset input[type="range"] {
	width: 10rem;
}

.viewer-offset span {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	min-width: 4.5rem;
	text-align: right;
}

.viewer-click {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-dim);
	font-size: 0.82rem;
	white-space: nowrap;
	cursor: pointer;
}

.viewer-hint {
	margin: 0.9rem 0 0;
}

.viewer-hint + .viewer-hint {
	margin-top: 0.5rem;
}

.button.roblox {
	background: #fff;
	color: #1f2430;
}

.inline-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.inline-form .button,
.chart-actions .button {
	margin-top: 0;
	padding: 0.3rem 0.7rem;
	font-size: 0.78rem;
}

.chart-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-end;
}

.chart-actions form {
	display: inline;
}

.review-comment {
	width: 100%;
	max-width: 22rem;
	padding: 0.4rem 0.6rem;
	font-size: 0.82rem;
}

.review-note {
	margin-top: 0.3rem;
	margin-left: 0;
	font-size: 0.8rem;
	font-style: italic;
	max-width: 16rem;
}

/* Summary strip ----------------------------------------------------------- */

.summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1px;
	margin-bottom: 1.5rem;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 0.9rem;
	overflow: hidden;
}

.summary-item {
	padding: 1.1rem 1.25rem;
	background: var(--bg-raised);
}

.summary-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.summary-label {
	display: block;
	color: var(--text-dim);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.summary-item .pill {
	margin: 0.45rem 0.35rem 0 0;
}

/* Collapsible sections ---------------------------------------------------- */

details.panel {
	padding: 0;
}

details.panel > summary {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	flex-wrap: wrap;
	padding: 1.5rem 2rem;
	cursor: pointer;
	list-style: none;
}

details.panel > summary::-webkit-details-marker {
	display: none;
}

details.panel > summary::before {
	content: "▸";
	color: var(--text-dim);
	font-size: 0.8rem;
}

details.panel[open] > summary::before {
	content: "▾";
}

details.panel > summary h2 {
	margin: 0;
}

details.panel > summary .hint {
	margin: 0;
	font-size: 0.85rem;
}

details.panel > summary:hover h2 {
	color: var(--text);
}

.setup-body {
	padding: 0 2rem 2rem;
	border-top: 1px solid var(--border);
	padding-top: 1.75rem;
}

.setup-heading {
	margin: 2.5rem 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.setup-heading + .hint {
	margin-top: 0;
}

/* Status legend ----------------------------------------------------------- */

.legend {
	margin: 1.5rem 0 0;
	font-size: 0.88rem;
}

.legend > summary {
	color: var(--text-dim);
	cursor: pointer;
}

.legend > summary:hover {
	color: var(--text);
}

.legend dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.5rem 1rem;
	margin: 1rem 0 0;
	align-items: baseline;
}

.legend dt {
	margin: 0;
}

.legend dd {
	margin: 0;
	color: var(--text-dim);
}

.legend .pill {
	margin-left: 0;
}

/* Odds and ends ----------------------------------------------------------- */

.row-sub {
	margin-left: 0;
	font-size: 0.85rem;
}

.empty-line {
	margin: 1.5rem 0 0;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.version {
	margin-left: 0.5rem;
	color: var(--text-dim);
	font-size: 0.78rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.viewer-pick {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-dim);
	font-size: 0.82rem;
}

.page-sub .pill {
	margin-left: 0.6rem;
}

@media (max-width: 40rem) {
	details.panel > summary { padding: 1.25rem 1.5rem; }
	.setup-body { padding: 1.5rem; }
	.chart-actions { justify-content: flex-start; }
	.legend dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
	.legend dd { margin-bottom: 0.75rem; }
}

/* ── Folder import ────────────────────────────────────────────────────────── */

.button.secondary {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-dim);
}

.button.secondary:hover {
	color: var(--text);
	border-color: var(--text-dim);
}

.drop-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.75rem 1rem;
	border: 1px dashed var(--border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.015);
	text-align: center;
	transition: border-color 120ms ease, background 120ms ease;
}

.drop-zone p {
	margin: 0;
	color: var(--text-dim);
}

.drop-zone.drop-active {
	border-color: var(--accent);
	background: rgba(224, 72, 60, 0.06);
}

.scan {
	margin-top: 1.1rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
}

.scan-title {
	margin: 0 0 0.6rem;
	font-size: 1rem;
}

.scan-heading {
	margin: 1rem 0 0.4rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-dim);
}

.scan-heading:first-of-type {
	margin-top: 0.2rem;
}

.scan-row {
	display: flex;
	gap: 0.75rem;
	padding: 0.28rem 0;
	font-size: 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.scan-label {
	flex: 0 0 8.5rem;
	color: var(--text-dim);
	word-break: break-word;
}

.scan-value {
	flex: 1;
	word-break: break-word;
}

.scan-missing .scan-value { color: var(--text-dim); }
.scan-skipped { opacity: 0.65; }
.scan-problem .scan-value { color: var(--lane-3); }

@media (max-width: 620px) {
	.scan-row { flex-direction: column; gap: 0.1rem; }
	.scan-label { flex-basis: auto; }
}

.drop-zone .button { margin-top: 0; }

/* ── Mirror state ─────────────────────────────────────────────────────────── */

.mirror-state {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.mirror-on { color: #6fdc78; }
.mirror-drift { color: var(--lane-3); }
.mirror-off { color: var(--text-dim); }

.mirror-drift-list {
	margin: 0 0 0.5rem;
	padding-left: 1.2rem;
	color: var(--text-dim);
	font-size: 0.88rem;
}

.mirror .import-row form {
	display: inline;
}

/* ── Shared state colours ─────────────────────────────────────────────────── */

.ok-text { color: #6fdc78; }
.warn-text { color: var(--lane-3); }

.button.small,
button.button.small {
	padding: 0.4rem 0.85rem;
	font-size: 0.82rem;
}

.action-link {
	color: var(--text-dim);
	font-size: 0.85rem;
}

.action-link:hover { color: var(--text); }

/* ── Song status card ─────────────────────────────────────────────────────── */

.status-card {
	--state: var(--text-dim);
	border-left: 4px solid var(--state);
}

.status-in_game { --state: #3cc846; }
.status-out_of_date,
.status-stale { --state: var(--lane-3); }
.status-not_in_game { --state: #6b7086; }

.game-banner {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	margin-bottom: 1.25rem;
}

.game-dot {
	flex: 0 0 auto;
	width: 0.8rem;
	height: 0.8rem;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: var(--state);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--state) 22%, transparent);
}

.game-headline {
	font-size: 1.1rem;
}

.game-note {
	margin: 0.2rem 0 0;
	font-size: 0.86rem;
}

.checklist {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--border);
}

.check-step {
	display: grid;
	grid-template-columns: 1.6rem 10rem 1fr auto;
	align-items: center;
	gap: 0.75rem;
	min-height: 3rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.9rem;
}

.check-mark {
	display: inline-grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	border: 1.5px solid var(--border);
	font-size: 0.75rem;
	font-weight: 700;
}

.is-done .check-mark {
	border-color: transparent;
	background: rgba(60, 200, 70, 0.2);
	color: #6fdc78;
}

.check-label { font-weight: 600; }
.is-todo .check-label { color: var(--text); }
.check-detail { color: var(--text-dim); }

.check-action {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.check-action form { display: inline; }

@media (max-width: 40rem) {
	.check-step { grid-template-columns: 1.6rem 1fr; }
	.check-detail,
	.check-action { grid-column: 2; justify-content: flex-start; }
}

/* Live log of a running multi-step action. */
.steps {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.84rem;
}

.steps:empty { display: none; }

.step {
	padding: 0.15rem 0;
	color: var(--text-dim);
}

.step-working { color: var(--text); }
.step-working::after { content: ""; }
.step-done,
.step-uploaded { color: #6fdc78; }
.step-warn,
.step-processing { color: var(--lane-3); }
.step-failed { color: #f0918a; }

/* ── Approve all / upload all ─────────────────────────────────────────────── */

.approve-all {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	background: var(--bg);
	font-size: 0.86rem;
}

.approve-all form { display: inline; }

.approve-skips {
	flex-basis: 100%;
}

.approve-skips summary { cursor: pointer; }

/* ── Stem cards ───────────────────────────────────────────────────────────── */

.stem-facts {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 0.3rem 1rem;
	margin: 0 0 0.9rem;
	font-size: 0.88rem;
}

.stem-facts dt {
	color: var(--text-dim);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding-top: 0.15rem;
}

.stem-facts dd {
	margin: 0;
	word-break: break-word;
}

.asset-id {
	margin-right: 0.5rem;
	font-size: 0.9rem;
	user-select: all;
}

.stem-pill-ready { background: rgba(60, 200, 70, 0.16); color: #6fdc78; }
.stem-pill-silent { background: rgba(235, 200, 50, 0.16); color: #e3c94f; }
.stem-pill-processing { background: rgba(55, 120, 230, 0.18); color: #8db3f2; }
.stem-pill-empty { background: rgba(150, 156, 176, 0.1); color: var(--text-dim); }

.stem-empty .stem-facts { opacity: 0.75; }

.stem-edit {
	margin-top: 0.85rem;
	font-size: 0.86rem;
}

.stem-edit > summary {
	color: var(--text-dim);
	cursor: pointer;
}

.stem-edit > summary:hover { color: var(--text); }

.stem-edit[open] {
	padding: 0.85rem 1rem;
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	background: var(--bg);
}

.stem-edit[open] > summary { margin-bottom: 0.75rem; }

.stem-edit form {
	display: flex;
	align-items: flex-end;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.stem-edit form:last-child { margin-bottom: 0; }

.stem-edit .asset-form input[type="text"] { width: 18rem; max-width: 60vw; }

.stem-edit .button {
	padding: 0.45rem 0.9rem;
	font-size: 0.82rem;
}

@media (max-width: 40rem) {
	.stem-facts { grid-template-columns: 1fr; gap: 0 0; }
	.stem-facts dd { margin-bottom: 0.4rem; }
	.stem-edit form { flex-wrap: wrap; }
}

/* ── Song list ────────────────────────────────────────────────────────────── */

.table-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.9rem;
	margin-bottom: 1rem;
}

.table-tools input[type="search"] {
	flex: 1 1 14rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: 0.45rem;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 0.9rem;
}

.song-table td { vertical-align: top; }

.game-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.game-pill::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: currentColor;
}

.game-in_game { color: #6fdc78; }
.game-out_of_date,
.game-stale { color: var(--lane-3); }
.game-not_in_game { color: var(--text-dim); }

/* ── Bulk import ──────────────────────────────────────────────────────────── */

.bulk-summary {
	margin: 1.25rem 0 0.75rem;
	font-weight: 600;
}

.bulk-options {
	display: grid;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
}

.bulk-options .scan-heading { margin: 0 0 0.2rem; }

.bulk-option {
	align-items: flex-start;
	font-size: 0.88rem;
}

.bulk-option input { margin-top: 0.3rem; }
.bulk-option.disabled { opacity: 0.55; }

.bulk-list {
	display: grid;
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.bulk-song {
	padding: 0.8rem 1rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
	transition: border-color 120ms ease;
}

.bulk-song-active { border-color: var(--accent); }

.bulk-song-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.25rem 1rem;
}

.bulk-pick {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	cursor: pointer;
}

.bulk-folder {
	font-size: 0.78rem;
	word-break: break-all;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.55rem 0 0;
}

.chip {
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
	font-size: 0.74rem;
	border: 1px solid var(--border);
}

.chip-on { border-color: rgba(60, 200, 70, 0.4); color: #6fdc78; }
.chip-off { color: var(--text-dim); opacity: 0.6; text-decoration: line-through; }
.chip-bad { border-color: rgba(224, 72, 60, 0.5); color: #f0918a; }

.bulk-notes {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
	font-size: 0.82rem;
}

.bulk-status {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.bulk-working { color: var(--text); }
.bulk-done { color: #6fdc78; }
.bulk-warn { color: var(--lane-3); }
.bulk-failed { color: #f0918a; }
.bulk-skipped,
.bulk-waiting,
.bulk-ready { color: var(--text-dim); }

.bulk-status a { color: inherit; }

.bulk-details {
	margin-top: 0.5rem;
	font-size: 0.84rem;
}

.bulk-details > summary {
	color: var(--text-dim);
	cursor: pointer;
}

.bulk-details .scan { margin-top: 0.5rem; }

.drop-zone small { font-size: 0.78rem; }

[data-folder-preview] .import-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ── Result notices ───────────────────────────────────────────────────────── */

.toasts {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 50;
	display: grid;
	gap: 0.6rem;
	width: min(30rem, calc(100vw - 2.5rem));
	max-height: calc(100vh - 2.5rem);
	overflow-y: auto;
}

.toasts:empty { display: none; }

.toasts .flash {
	position: relative;
	margin: 0;
	padding-right: 2.5rem;
	background-color: var(--bg-raised);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.toasts .flash-success { background-image: linear-gradient(rgba(60, 200, 70, 0.12), rgba(60, 200, 70, 0.12)); }
.toasts .flash-error { background-image: linear-gradient(rgba(224, 72, 60, 0.12), rgba(224, 72, 60, 0.12)); }

.flash-close {
	position: absolute;
	top: 0.45rem;
	right: 0.55rem;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}

.flash-close:hover { opacity: 1; }

/* ── Upload accounts ──────────────────────────────────────────────────────── */

.account-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.account {
	padding: 1.1rem 0;
	border-top: 1px solid var(--border);
}

.account:first-child { border-top: 0; padding-top: 0; }

.account-head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.7rem;
}

.account-order {
	display: inline-grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: rgba(150, 156, 176, 0.14);
	color: var(--text-dim);
	font-size: 0.8rem;
	font-weight: 700;
}

.account-name { font-size: 1rem; }
.account-head .pill { margin-left: 0; }

.account-pill-ready { background: rgba(60, 200, 70, 0.16); color: #6fdc78; }
.account-pill-cooling { background: rgba(235, 200, 50, 0.16); color: #e3c94f; }
.account-pill-disabled { background: rgba(150, 156, 176, 0.12); color: var(--text-dim); }
.account-pill-unreadable { background: rgba(224, 72, 60, 0.16); color: #f0918a; }

.account-disabled .stem-facts { opacity: 0.6; }

.account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.account-actions form { display: inline; }

.account-actions .button {
	padding: 0.4rem 0.8rem;
	font-size: 0.82rem;
}

.account-actions .button[disabled] { opacity: 0.35; cursor: default; }

.account-env-note { margin: 0; }

.account-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	align-items: end;
	gap: 0.9rem;
}

.account-form .button { justify-self: start; }

input[type="password"] {
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: 0.45rem;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 0.9rem;
}

.stem-edit .account-form { display: grid; margin-bottom: 0; }

.account-security { margin: 1rem 0 0; }

.setup-steps,
.setup-notes {
	margin: 0;
	padding-left: 1.3rem;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.setup-steps li,
.setup-notes li { margin-bottom: 0.7rem; }

.setup-steps strong,
.setup-notes strong { color: var(--text); }

.account-actions .button-quiet { border: 1px solid var(--border); }

.setup-steps a { color: inherit; }

/* ── Stats ────────────────────────────────────────────────────────────────── */

:root {
	/* One hue for every stats bar: they're all single-series magnitudes. */
	--data: #5b8def;
	--data-dim: rgba(91, 141, 239, 0.18);
}

.stats-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin-bottom: 1.25rem;
}

.stats-controls .button {
	padding: 0.45rem 0.9rem;
	font-size: 0.82rem;
}

.stats-fresh {
	flex-basis: 100%;
	font-size: 0.8rem;
}

.stats-error { margin: 0 0 1.25rem; }

.stats-tiles { margin-bottom: 1.25rem; }

.stats-tiles .summary-item { padding: 0.9rem 1.1rem; }

.tile-note {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.76rem;
}

.chart-title {
	margin: 0 0 0.6rem;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Hover/focus tooltip for any mark carrying data-tip. */
[data-tip] { position: relative; }

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	padding: 0.3rem 0.55rem;
	border: 1px solid var(--border);
	border-radius: 0.4rem;
	background: var(--bg);
	color: var(--text);
	font-size: 0.75rem;
	white-space: nowrap;
	pointer-events: none;
}

.daily-chart { margin: 0.5rem 0 0; }

.daily-plot {
	position: relative;
	padding-top: 1.1rem;
}

.daily-axis-max {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 0.72rem;
}

.daily-bars {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 9rem;
	border-bottom: 1px solid var(--border);
	background-image: linear-gradient(var(--border) 1px, transparent 1px);
	background-size: 100% 50%;
}

.daily-col {
	flex: 1;
	display: flex;
	align-items: flex-end;
	height: 100%;
	outline: none;
}

.daily-col:hover,
.daily-col:focus-visible { background: rgba(255, 255, 255, 0.03); }

.daily-bar {
	width: 100%;
	height: var(--h);
	border-radius: 4px 4px 0 0;
	background: var(--data);
}

.daily-col.is-future .daily-bar { background: transparent; }

.daily-labels {
	display: flex;
	gap: 2px;
	margin-top: 0.3rem;
	font-size: 0.68rem;
	text-align: center;
}

.daily-labels span { flex: 1; }

.chart-table {
	margin-top: 0.75rem;
	font-size: 0.82rem;
}

.chart-table summary { cursor: pointer; }
.chart-table .table { max-width: 16rem; margin-top: 0.5rem; }

.breakdowns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.75rem 2rem;
}

.hbars {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hbar {
	display: grid;
	grid-template-columns: minmax(5rem, 8rem) 1fr auto;
	align-items: center;
	gap: 0.6rem;
	padding: 0.22rem 0;
	font-size: 0.84rem;
	outline: none;
}

.hbar[data-tip]:hover::after,
.hbar[data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }

.hbar-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hbar-track {
	height: 0.6rem;
	border-radius: 4px;
	background: var(--data-dim);
	overflow: hidden;
}

.hbar-fill {
	display: block;
	width: var(--w);
	height: 100%;
	border-radius: 4px;
	background: var(--data);
}

.hbar-value {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.table-scroll { overflow-x: auto; }

.stats-table th[data-sort] {
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.stats-table th[aria-sort="descending"]::after { content: " ↓"; }
.stats-table th[aria-sort="ascending"]::after { content: " ↑"; }
.stats-table td { font-variant-numeric: tabular-nums; }

.stats-tiles { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 40rem) {
	.stats-tiles { grid-template-columns: repeat(2, 1fr); }
	.hbar { grid-template-columns: 5rem 1fr auto; }
}

.tile-note.muted,
.stats-fresh.muted,
.hbar .muted { margin-left: 0; }

/* Fixed columns so every track in a list starts and ends in the same place. */
.hbar { grid-template-columns: 7rem 1fr 5.5rem; }
.hbar-value { text-align: right; }
.hbars-wide .hbar { grid-template-columns: 8.5rem 1fr 17rem; }

@media (max-width: 40rem) {
	.hbars-wide .hbar { grid-template-columns: 6rem 1fr; }
	.hbars-wide .hbar-value { grid-column: 1 / -1; text-align: left; }
}

.stats-controls {
	justify-content: space-between;
}

.stats-pick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
}

.stats-fresh {
	margin: -0.5rem 0 1.25rem;
	font-size: 0.82rem;
	line-height: 1.55;
}

.sync-dot {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.35rem;
	border-radius: 50%;
	background: #6fdc78;
	vertical-align: 0.05rem;
}

.sync-dot.is-running {
	background: var(--data);
	animation: sync-pulse 1.2s ease-in-out infinite;
}

@keyframes sync-pulse {
	50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
	.sync-dot.is-running { animation: none; }
}

.sync-error {
	display: block;
	margin-top: 0.25rem;
}

.stats-partial { margin: -0.75rem 0 1.25rem; }

.sync-dot.is-stale { background: var(--lane-3); }
.stats-check { margin-top: -0.75rem; }

/* Testing: in the test place only. */
.status-testing { --state: var(--data); }
.game-testing { color: #8db3f2; }
.pill-testing { background: rgba(91, 141, 239, 0.18); color: #8db3f2; }
.check-action { flex-wrap: wrap; }

/* ── Header ───────────────────────────────────────────────────────────────── */
/* Wordmark, then the three sections, then who's signed in pushed to the right. */

.site-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	width: 100%;
	max-width: 60rem;
	padding: 1.25rem 1.5rem;
}

.site-header .nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.nav-link {
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	color: var(--text-dim);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}

.nav .nav-link:hover {
	color: var(--text);
	background: rgba(150, 156, 176, 0.1);
}

.nav .nav-link.is-current {
	color: var(--text);
	background: rgba(150, 156, 176, 0.16);
}

.site-header .session {
	margin-left: auto;
	gap: 0.6rem;
}

.session-name {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	max-width: 14rem;
	overflow: hidden;
	color: var(--text);
	font-size: 0.85rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.role-tag {
	padding: 0.05rem 0.4rem;
	border-radius: 0.3rem;
	background: rgba(60, 200, 70, 0.14);
	color: #6fdc78;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.session-out {
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--text-dim);
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.session-out:hover {
	color: var(--text);
	border-color: var(--text-dim);
}

main { padding-top: 1.5rem; }

@media (max-width: 40rem) {
	.site-header { padding: 1rem; }
	.site-header .session { margin-left: 0; width: 100%; justify-content: space-between; }
	.session-name { max-width: 60vw; }
}

/* ── Settings ─────────────────────────────────────────────────────────────── */

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 1rem;
	border-bottom: 1px solid var(--border);
}

.tab {
	margin-bottom: -1px;
	padding: 0.5rem 0.9rem;
	border-bottom: 2px solid transparent;
	color: var(--text-dim);
	font-size: 0.9rem;
	text-decoration: none;
}

.tab:hover { color: var(--text); }

.tab.is-current {
	border-bottom-color: var(--accent);
	color: var(--text);
}

.heading-count {
	margin-left: 0.4rem;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.setting-value { margin: 0; font-size: 1rem; }

.setting-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
}

.setting-form .field input { width: 16rem; }
.setting-help { margin: 1rem 0 0; }

/* ── Adding a chart to a song ─────────────────────────────────────────────── */

.chart-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1.25rem;
}

.chart-upload .field em {
	font-style: normal;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.chart-upload-hint { margin: 0.75rem 0 1.25rem; }

.stem-pill-stale { background: rgba(240, 140, 40, 0.18); color: #f0a355; }

/* ── Shifting a chart ─────────────────────────────────────────────────────── */

/* The chart files uploaded for a song, under its charts table. */
.chart-sources { margin-top: 1rem; }
.chart-sources > summary { cursor: pointer; font-weight: 600; }
.chart-sources li { margin: 0.35rem 0; overflow-wrap: anywhere; }

.shift-chart { display: inline-block; position: relative; }
.shift-chart > summary { list-style: none; cursor: pointer; padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.shift-chart > summary::-webkit-details-marker { display: none; }

.shift-chart[open] > form {
	position: absolute;
	right: 0;
	z-index: 10;
	display: grid;
	gap: 0.5rem;
	width: 15rem;
	margin-top: 0.4rem;
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	background: var(--bg-raised);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	text-align: left;
}

.shift-chart .field input { width: 100%; }
.shift-chart small { font-size: 0.75rem; line-height: 1.4; }

.pill-superseded { background: rgba(150, 156, 176, 0.1); color: var(--text-dim); }
.legend-note { margin: 1rem 0 0; color: var(--text-dim); }
.mix-file { display: block; margin-left: 0; font-size: 0.72rem; font-weight: 400; }
