/**
 * Ars Nova Practice — singer page.
 * Uses the Hub's colour tokens (--ansp-accent etc.) so it looks like the rest
 * of the Singers Hub. Large touch targets: this page is used on iPads with the
 * music open next to it.
 */

.anpr-page {
	--anpr-accent: var(--ansp-accent, #1d3557);
	--anpr-soft: var(--ansp-accent-soft, #eef2f8);
	--anpr-border: var(--ansp-border, #dfe3ea);
	--anpr-radius: var(--ansp-radius, 10px);
	--anpr-done: #2e7d4f;
	--anpr-muted: #5b6472;
	margin-top: 0.5rem;
}

/* Our buttons set display, which would otherwise override the hidden attribute. */
.anpr-page [hidden],
.anpr-player [hidden] { display: none !important; }

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

.anpr-privacy,
.anpr-footnote {
	margin: 0 0 1rem;
	font-size: 0.85em;
	color: var(--anpr-muted);
}
.anpr-footnote { margin: 1.25rem 0 0; }

.anpr-staff-hint,
.anpr-staff-badge {
	margin: 0 0 1rem;
	padding: 0.5rem 0.75rem;
	border-left: 4px solid #c98a00;
	background: #fff7e0;
	font-size: 0.9em;
}

.anpr-project + .anpr-project { margin-top: 2rem; }
.anpr-project-title { margin: 0 0 0.75rem; font-size: 1.2rem; }

/* ---------- week ---------- */
.anpr-week {
	border: 1px solid var(--anpr-border);
	border-radius: var(--anpr-radius);
	background: #fff;
	padding: 1rem 1rem 0.5rem;
	margin: 0 0 1rem;
}
.anpr-week.is-current { border-color: var(--anpr-accent); box-shadow: 0 1px 0 var(--anpr-accent); }

.anpr-week-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
.anpr-kicker {
	margin: 0 0 0.2rem;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--anpr-accent);
}
.anpr-week-title { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.anpr-week-meta { margin: 0.2rem 0 0; font-size: 0.9em; color: var(--anpr-muted); }

/* ---------- week summary (0.5.0) ---------- */
.anpr-summary {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0.75rem 0 0.25rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--anpr-border);
	border-radius: var(--anpr-radius);
	background: var(--anpr-soft);
}
.anpr-stat { display: grid; gap: 0.15rem; align-content: start; min-width: 0; }
.anpr-stat-label { font-size: 0.75em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--anpr-muted); }
.anpr-stat-value { font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: var(--anpr-accent); }
.anpr-stat-note { font-size: 0.78em; color: var(--anpr-muted); }
.anpr-bar { display: block; height: 0.5rem; border-radius: 999px; background: #fff; border: 1px solid var(--anpr-border); overflow: hidden; margin-top: 0.15rem; }
.anpr-bar-fill { display: block; height: 100%; background: var(--anpr-done); transition: width 0.25s ease; }

/* ---------- video Tom can add to a week or a task (0.5.0) ---------- */
.anpr-video { margin: 0.75rem 0; }
.anpr-video-label { margin: 0 0 0.3rem; font-size: 0.75em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--anpr-muted); }
.anpr-video-frame { position: relative; max-width: 30rem; padding-top: min(56.25%, 16.9rem); border-radius: var(--anpr-radius); overflow: hidden; background: #000; }
.anpr-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.anpr-video--task .anpr-video-frame { max-width: 22rem; padding-top: min(56.25%, 12.4rem); }

.anpr-note {
	margin: 0.9rem 0 0;
	padding: 0.6rem 0.85rem;
	background: var(--anpr-soft);
	border-radius: 8px;
}
.anpr-note-label {
	margin: 0 0 0.2rem;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--anpr-muted);
}
.anpr-note p { margin: 0 0 0.4rem; }

/* ---------- tasks ---------- */
.anpr-tasks { list-style: none; margin: 1rem 0 0; padding: 0; }
.anpr-task {
	border-top: 1px solid var(--anpr-border);
	padding: 0.9rem 0;
}
/* ---------- task accordion (0.5.0) ---------- */
.anpr-task-head { display: flex; gap: 0.5rem; align-items: center; }
.anpr-task-toggle {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
	padding: 0.5rem 0.4rem;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.anpr-task-toggle:hover { background: var(--anpr-soft); }
.anpr-task-toggle:focus-visible { outline: 3px solid var(--anpr-accent); outline-offset: 2px; }
.anpr-chev {
	flex: 0 0 auto;
	width: 0.65rem;
	height: 0.65rem;
	border-right: 3px solid var(--anpr-accent);
	border-bottom: 3px solid var(--anpr-accent);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}
.anpr-task.is-open .anpr-chev { transform: rotate(45deg); }
.anpr-task-body { margin: 0.2rem 0 0.6rem; }
/*
 * The score, as Jonathan asked for it in 0.5.0: a small button justified right
 * with the file name in small black text under it, "small only to confirm what
 * it is". Most singers will not open it. It was too faint to find on staging
 * (0.8.3): the label was 75% opacity and the file name was truncated mid-title
 * by an ellipsis, so it read as stray grey text rather than a button.
 */
.anpr-task-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; margin: -0.2rem 0 0.4rem; }
.anpr-openfile { display: grid; justify-items: end; gap: 0.15rem; max-width: 18rem; }
/* .anpr-btn is defined further down and would otherwise win on source order,
   which is exactly how these overrides went missing on staging. */
.anpr-page .anpr-btn.anpr-btn--quiet {
	min-height: 2rem;
	padding: 0.3rem 0.75rem;
	font-size: 0.85em;
	font-weight: 600;
	color: #1d2433;
	background: var(--anpr-soft);
	border-color: #b9c1d0;
}
.anpr-page .anpr-btn.anpr-btn--quiet:hover { background: #fff; border-color: var(--anpr-accent); }
.anpr-openfile-name {
	font-size: 0.72em;
	line-height: 1.3;
	color: #1d2433;
	max-width: 18rem;
	text-align: right;
	/* Two lines, then ellipsis - a title cut off at "Rivers, Op. 104 (2020), fo…"
	   confirms nothing, which is the whole job of this line. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.anpr-page .anpr-btn.anpr-btn--quiet.is-pending { opacity: 0.55; cursor: default; }
.anpr-openfile-note { display: block; font-size: 0.78rem; color: var(--anpr-muted); max-width: 16rem; margin-left: auto; text-align: right; }
.anpr-task-titles { display: grid; gap: 0.1rem; min-width: 0; }
.anpr-task-title { display: block; margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.anpr-task-num { color: var(--anpr-muted); font-weight: 400; margin-right: 0.15em; }
.anpr-task-meta { display: block; margin: 0; font-size: 0.85em; color: var(--anpr-muted); }
.anpr-task-detail { margin: 0.5rem 0 0; }
.anpr-note--task { margin: 0.6rem 0; }
.anpr-example-note { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--anpr-muted); }
.anpr-task-detail p { margin: 0 0 0.4rem; }

/* ---------- how it is going: one slider, 0-111% (0.6.0) ----------
   Jonathan: the Done switch is gone; this sits in its place. The colour runs
   red -> amber -> green with the value, and the sentence above it grows in
   confidence. 111% features the singer's newest take on their bio. */
.anpr-conf {
	--anpr-conf: 0;
	/* red at 0, amber in the middle, green at 100, gold at 111 */
	--anpr-conf-hue: calc(var(--anpr-conf) * 1.15);
	--anpr-conf-color: hsl(min(var(--anpr-conf-hue), 130), 72%, 38%);
	flex: 0 0 auto;
	display: grid;
	gap: 0.15rem;
	width: 15rem;
	max-width: 46%;
	margin: 0;
	padding: 0.35rem 0.55rem 0.45rem;
	border: 2px solid var(--anpr-conf-color);
	border-radius: 12px;
	background: #fff;
}
.anpr-conf.is-unset { --anpr-conf-color: var(--anpr-border); }
.anpr-conf-say {
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1.15;
	color: var(--anpr-conf-color);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.anpr-conf.is-unset .anpr-conf-say { color: var(--anpr-muted); }
.anpr-conf-row { display: flex; align-items: center; gap: 0.4rem; }
.anpr-page .anpr-conf input[type="range"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	accent-color: var(--anpr-conf-color);
}
.anpr-conf-num {
	flex: 0 0 auto;
	min-width: 2.6rem;
	text-align: right;
	font-size: 0.8em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--anpr-conf-color);
}
.anpr-task.is-proud .anpr-task-title { color: #1f7a45; }
.anpr-shared {
	margin: 0.4rem 0 0;
	padding: 0.4rem 0.6rem;
	border-radius: 8px;
	background: #e8f5ee;
	color: #1f7a45;
	font-size: 0.85em;
	font-weight: 600;
}
.anpr-shared.is-warning { background: #fdecec; color: #a4231b; }
.anpr-stat--going, .anpr-stat--grade { --anpr-conf: 0; }
.anpr-grade {
	display: block;
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: hsl(min(calc(var(--anpr-conf) * 1.15), 130), 72%, 38%);
}
.anpr-stat--going .anpr-stat-value { color: hsl(min(calc(var(--anpr-conf) * 1.15), 130), 72%, 38%); }
.anpr-stat--going .anpr-bar-fill { background: hsl(min(calc(var(--anpr-conf) * 1.15), 130), 72%, 38%); }

.anpr-practice,
.anpr-rating { margin: 0.6rem 0 0; }

.anpr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--anpr-border);
	border-radius: 8px;
	background: #fff;
	color: var(--anpr-accent) !important;
	font: inherit;
	font-size: 0.95em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.anpr-btn:hover { border-color: var(--anpr-accent); }
.anpr-btn:focus-visible { outline: 3px solid var(--anpr-accent); outline-offset: 2px; }
.anpr-btn--primary {
	background: var(--anpr-accent);
	border-color: var(--anpr-accent);
	color: #fff !important;
}
.anpr-btn[disabled] { opacity: 0.5; cursor: default; }
.anpr-btn[aria-pressed="true"] {
	background: var(--anpr-accent);
	border-color: var(--anpr-accent);
	color: #fff !important;
}

.anpr-practice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.anpr-plays { font-size: 0.85em; color: var(--anpr-muted); }
.anpr-player-host { margin-top: 0.75rem; }

/* ---------- rating ---------- */
.anpr-rating { max-width: 24rem; }
.anpr-rating-label { display: block; font-size: 0.85em; font-weight: 600; margin-bottom: 0.25rem; }
.anpr-rating input[type="range"] { width: 100%; margin: 0; accent-color: var(--anpr-accent); height: 2rem; }
.anpr-rating.is-unrated input[type="range"] { accent-color: #b8bfca; opacity: 0.7; }
.anpr-rating-scale {
	display: flex;
	justify-content: space-between;
	font-size: 0.75em;
	color: var(--anpr-muted);
}
.anpr-rating-out { display: block; margin-top: 0.15rem; font-size: 0.85em; font-weight: 600; }
.anpr-rating.is-unrated .anpr-rating-out { font-weight: 400; color: var(--anpr-muted); }

.anpr-task-error { margin: 0.5rem 0 0; color: #a4231b; font-size: 0.9em; }
.anpr-empty { color: var(--anpr-muted); }

/* ---------- earlier / coming up ---------- */
.anpr-more { margin: 0 0 1rem; }
.anpr-more > summary {
	cursor: pointer;
	padding: 0.6rem 0.2rem;
	font-weight: 600;
	color: var(--anpr-accent);
}
.anpr-more .anpr-week { margin-top: 0.5rem; }

/* ---------- player ---------- */
.anpr-player {
	border: 1px solid var(--anpr-border);
	border-radius: var(--anpr-radius);
	padding: 0.75rem;
	background: #fbfcfe;
}
.anpr-player-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 0.6rem;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	background: #eef2f8;
	border: 1px solid var(--anpr-border);
}
.anpr-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05em; justify-self: start; }
.anpr-status { margin: 0.4rem 0 0; font-size: 0.85em; color: var(--anpr-muted); min-height: 1.3em; }
.anpr-daw {
	display: block;
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	--daw-controls-width: 236px;
	--daw-background: #1d2433;
	--daw-track-background: #242d40;
	--daw-controls-background: #1d2433;
	--daw-wave-color: #9fb4d6;
	--daw-playhead-color: #ffb74d;
	--daw-ruler-color: #9fb4d6;
	--daw-ruler-background: #161b27;
	--daw-min-height: 80px;
}
.anpr-rec {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 2px dashed var(--anpr-border);
}
.anpr-rec-title { margin: 0 0 0.3rem; font-size: 1rem; }
.anpr-rec-help { margin: 0.2rem 0 0.5rem; font-size: 0.85em; color: var(--anpr-muted); }
.anpr-rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.4rem 0; }
.anpr-rec-corr { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.9em; }
.anpr-rec-corr input { width: 12rem; accent-color: var(--anpr-accent); }
/* The site theme boxes range inputs; keep ours plain. */
.anpr-page input[type="range"] {
	-webkit-appearance: auto;
	appearance: auto;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	min-height: 0;
}
.anpr-latency { font-size: 0.85em; color: var(--anpr-muted); }
.anpr-rec-status { margin: 0.3rem 0; font-weight: 600; }
.anpr-btn--rec.is-recording { background: #a4231b; border-color: #a4231b; color: #fff !important; }

/* ---------- one player per track ---------- */
.anpr-page .anpr-track-list { list-style: none; margin: 0 !important; padding: 0 !important; } /* the site theme pads lists */
.anpr-track-item + .anpr-track-item { margin-top: 0.5rem; }
.anpr-track-open { gap: 0.6rem; width: 100%; justify-content: flex-start; text-align: left; }
.anpr-track-open.is-open { border-color: var(--anpr-accent); background: var(--anpr-soft); }
.anpr-track-play {
	flex: 0 0 auto;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: #1f9d55;
	position: relative;
}
.anpr-track-play::after {
	content: "";
	position: absolute;
	left: 0.72rem;
	top: 0.55rem;
	border-style: solid;
	border-width: 0.4rem 0 0.4rem 0.65rem;
	border-color: transparent transparent transparent #fff;
}
.anpr-track-open.is-open .anpr-track-play { background: var(--anpr-accent); }
.anpr-track-name { font-weight: 600; }
.anpr-practice-bar { margin-top: 0.4rem; }

/* ---------- transport and icons ---------- */
.anpr-transport { display: inline-flex; gap: 0.5rem; }
.anpr-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	background: #444;
	text-decoration: none;
}
.anpr-icon svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.anpr-icon:focus-visible { outline: 3px solid var(--anpr-accent); outline-offset: 2px; }
.anpr-icon[disabled] { opacity: 0.4; cursor: default; }
.anpr-icon--play { background: #1f9d55; }
.anpr-icon--play.is-on { background: #16733e; }
.anpr-icon--record { background: #d62828; }
.anpr-icon--record.is-on { animation: anpr-pulse 1.2s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.3); }
.anpr-icon--stop { background: #111; }
.anpr-icon--small { width: 2.4rem; height: 2.4rem; background: #fff; color: #1d2433; border: 1px solid var(--anpr-border); }
.anpr-icon--small svg { width: 1.3rem; height: 1.3rem; }
.anpr-icon--trash:not([disabled]) { color: #a4231b; border-color: #a4231b; }
.anpr-icon[hidden] { display: none !important; }
@keyframes anpr-pulse { 50% { box-shadow: 0 0 0 9px rgba(214, 40, 40, 0.15); } }
@media (prefers-reduced-motion: reduce) { .anpr-icon--record.is-on { animation: none; } }
.anpr-zoom { display: inline-flex; gap: 0.3rem; justify-self: end; }
.anpr-status.is-error { color: #a4231b; font-weight: 600; }
.anpr-under { margin-top: 0.6rem; }
.anpr-take-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.4rem 0; }
.anpr-take-tools .anpr-rec-help { margin: 0; }

/* ---------- saved takes (0.4.0) ---------- */
.anpr-player-bar.has-takes { grid-template-columns: auto auto 1fr auto; }
.anpr-player-bar.has-takes .anpr-transport { justify-self: start; margin-left: 1.5rem; }
.anpr-take-buttons { display: inline-flex; gap: 0.4rem; justify-self: start; }
.anpr-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 2.4rem;
	padding: 0.35rem 0.85rem 0.35rem 0.6rem;
	border: 2px solid var(--anpr-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--anpr-accent);
	font: inherit;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}
.anpr-pill svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.anpr-pill:hover:not([disabled]) { background: var(--anpr-soft); }
.anpr-pill:focus-visible { outline: 3px solid var(--anpr-accent); outline-offset: 2px; }
.anpr-pill[disabled] { opacity: 0.45; cursor: default; }
.anpr-pill--saveTake:not([disabled]) { background: var(--anpr-accent); color: #fff; }
.anpr-pill--saveTake.is-saved { border-color: var(--anpr-done); color: var(--anpr-done); background: #e8f5ee; opacity: 1; }

.anpr-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem); gap: 1rem; align-items: start; margin-top: 0.4rem; }
.anpr-lower .anpr-under { margin-top: 0.2rem; }
.anpr-takes {
	border: 2px solid var(--anpr-accent);
	border-radius: var(--anpr-radius);
	background: #fff;
	padding: 0.7rem 0.8rem 0.6rem;
}
.anpr-takes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.anpr-takes-head h4 { margin: 0; font-size: 1.05rem; }
.anpr-takes-count { font-size: 0.85em; font-weight: 700; color: var(--anpr-muted); white-space: nowrap; }
.anpr-takes.is-full .anpr-takes-count { color: #a4231b; }
.anpr-takes-piece { margin: 0.1rem 0 0.5rem; font-size: 0.85em; color: var(--anpr-muted); }
.anpr-save-progress { display: grid; gap: 0.25rem; margin: 0 0 0.5rem; font-size: 0.85em; font-weight: 600; }
.anpr-save-progress progress { width: 100%; height: 0.6rem; accent-color: var(--anpr-accent); }
.anpr-tp {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	background: #1d2433;
	color: #e8eef9;
}
.anpr-tp .anpr-icon--tplay { background: #1f9d55; color: #fff; border: 0; flex: 0 0 auto; }
.anpr-tp-mid { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.15rem; }
.anpr-tp-name { font-size: 0.85em; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anpr-page .anpr-tp-seek { width: 100%; accent-color: #8fd0ff; margin: 0; }
.anpr-tp-time { flex: 0 0 auto; font-size: 0.8em; font-variant-numeric: tabular-nums; }
.anpr-page .anpr-takes-list { list-style: none; margin: 0.5rem 0 0 !important; padding: 0 !important; }
.anpr-tk {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.2rem;
	border-top: 1px solid var(--anpr-border);
}
.anpr-tk.is-current { background: var(--anpr-soft); border-radius: 6px; }
.anpr-tk-num {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #ff8a80;
	color: #1d2433;
	font-size: 0.8em;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.anpr-tk-text { flex: 1 1 auto; min-width: 0; display: grid; }
.anpr-tk-name { font-weight: 600; font-size: 0.92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anpr-tk-meta { font-size: 0.75em; color: var(--anpr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anpr-page .anpr-tk-input { width: 100%; min-width: 0; padding: 0.2rem 0.35rem; font: inherit; font-size: 0.92em; border: 1px solid var(--anpr-accent); border-radius: 4px; }
.anpr-tk-actions { flex: 0 0 auto; display: inline-flex; gap: 0.2rem; }
.anpr-tk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--anpr-border);
	border-radius: 6px;
	background: #fff;
	color: #1d2433;
	cursor: pointer;
}
.anpr-tk-btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.anpr-tk-btn:hover:not([disabled]) { border-color: var(--anpr-accent); }
.anpr-tk-btn:focus-visible { outline: 3px solid var(--anpr-accent); outline-offset: 1px; }
.anpr-tk-play { color: #1f9d55; }
.anpr-tk-del { color: #a4231b; }
.anpr-tk-del.is-confirm { background: #a4231b; border-color: #a4231b; color: #fff; }
.anpr-takes-empty { margin: 0.5rem 0 0; font-size: 0.85em; color: var(--anpr-muted); }

@media (max-width: 900px) {
	.anpr-lower { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.anpr-task-detail,
	.anpr-practice,
	.anpr-rating,
	.anpr-task-error { margin-left: 0; }
	.anpr-week { padding: 0.8rem 0.75rem 0.4rem; }
	.anpr-daw { --daw-controls-width: 172px; }
	.anpr-summary { grid-template-columns: 1fr 1fr; }
	.anpr-stat--grade { grid-column: 1 / -1; }
	.anpr-stat--going { grid-column: 1 / -1; }
	.anpr-stat-value { font-size: 1.15rem; }
	.anpr-task-head { flex-wrap: wrap; }
	.anpr-conf { width: 100%; max-width: 100%; margin-left: auto; }
	.anpr-openfile, .anpr-openfile-name { max-width: 100%; }
	.anpr-task-links { justify-content: flex-start; }
	.anpr-openfile { justify-items: start; }
	.anpr-openfile-name { text-align: left; }
	.anpr-player { padding: 0.5rem; }
	.anpr-player-bar { grid-template-columns: auto 1fr; padding: 0.5rem; }
	.anpr-player-bar .anpr-transport { justify-self: end; }
	.anpr-player-bar .anpr-zoom { grid-column: 1 / -1; justify-self: center; }
	.anpr-player-bar.has-takes { grid-template-columns: auto 1fr; }
	.anpr-player-bar.has-takes .anpr-transport { margin-left: 0; }
	.anpr-player-bar .anpr-take-buttons { grid-column: 1 / -1; justify-self: stretch; }
	.anpr-take-buttons .anpr-pill { flex: 1 1 0; justify-content: center; }
	.anpr-lower { grid-template-columns: 1fr; }
	.anpr-lower .anpr-takes { order: -1; }
}

/* ---------- featured clips on a singer's bio (0.6.0) ---------- */
.anpr-featured {
	margin: 1.5rem 0;
	padding: 0.9rem 1rem;
	border: 1px solid var(--ansp-border, #dfe3ea);
	border-radius: 10px;
	background: #fbfcfe;
}
.anpr-featured h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.anpr-featured-note { margin: 0 0 0.6rem; font-size: 0.85em; color: #5b6472; }
.anpr-featured ul { list-style: none; margin: 0; padding: 0; }
.anpr-featured li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.4rem 0; border-top: 1px solid var(--ansp-border, #dfe3ea); }
.anpr-featured-name { font-weight: 600; }
.anpr-featured-meta { font-size: 0.8em; color: #5b6472; }
