/* Výzva s okénky - tmavá stránka, 30 okének, otevírání dvířek a okno s úkolem dne */
body {
	background: var(--dark);
	background-image:
		radial-gradient(900px 500px at 85% -10%, rgba(255, 90, 31, 0.16), transparent 60%),
		radial-gradient(700px 400px at -10% 20%, rgba(255, 176, 32, 0.07), transparent 60%);
	background-attachment: fixed;
	color: #e7eaf0;
	min-height: 100vh;
}

.wrap-narrow { max-width: 720px; }

/* Lišta ukázky */
.demo-bar {
	background: var(--accent);
	color: #fff;
	font-size: 0.92rem;
}
.demo-bar .wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.demo-back { color: #fff; text-decoration: none; font-weight: 700; }
.demo-badge {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	padding: 3px 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
}
.demo-text { flex: 1 1 240px; }
.demo-reset {
	background: none;
	border: 0;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	opacity: 0.85;
}
.demo-reset:hover { opacity: 1; }
.demo-bar .btn-primary { background: var(--dark); box-shadow: none; }

/* Hlavička */
.challenge-top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
	color: #fff;
}
.top-link {
	color: var(--muted-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}
.top-link:hover { color: #fff; }
.top-links { display: flex; gap: 20px; }

.challenge { padding: 24px 0 72px; }
.challenge h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.2em; }
.eyebrow {
	color: var(--accent);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 10px;
}
.author-line { color: var(--gold); font-weight: 600; margin: 0 0 6px; }
.hello, .lead-dark { color: var(--muted-dark); margin: 0; font-size: 1.1rem; }
.lead-dark { margin-bottom: 28px; }

.flash {
	background: rgba(34, 197, 94, 0.14);
	color: #b8f5cd;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-weight: 600;
}

/* Statistiky */
.challenge-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 32px;
}
.stats {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}
@media (max-width: 640px) {
	.challenge-head { display: block; }
	.stats { display: grid; grid-template-columns: 84px 1fr 1fr; margin-top: 22px; }
	.stats .stat { min-width: 0; padding: 12px; }
	.stats .stat:last-child { grid-column: 2 / 4; }
	.stat-value { font-size: 1.1rem; }
	.stat-ring { grid-row: span 2; align-self: center; }
}
.stat {
	background: var(--dark-2);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	padding: 14px 18px;
	min-width: 120px;
}
.stat-value { font-family: var(--heading); font-weight: 800; font-size: 1.35rem; color: #fff; white-space: nowrap; }
.stat-value .fa-fire { color: var(--accent); }
.stat-label { color: var(--muted-dark); font-size: 0.8rem; }
.stat-ring {
	position: relative;
	width: 84px;
	height: 84px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
}
.ring { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-track { stroke: var(--dark-3); }
.ring-value {
	stroke: var(--accent);
	stroke-linecap: round;
	stroke-dasharray: 326.7;
	stroke-dashoffset: calc(326.7 - 326.7 * var(--percent) / 100);
	transition: stroke-dashoffset 0.8s cubic-bezier(.2, .8, .2, 1);
}
.ring-label {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--heading);
	font-size: 1.3rem;
	color: #fff;
}
.ring-label small { font-size: 0.7rem; margin-left: 1px; }

/* Dokončeno */
.finished-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(120deg, rgba(255, 176, 32, 0.18), rgba(255, 90, 31, 0.18));
	border: 1px solid rgba(255, 176, 32, 0.4);
	border-radius: 18px;
	padding: 16px 20px;
	margin-bottom: 24px;
	color: #fff;
}
.finished-banner[hidden] { display: none; }
.finished-banner > div:nth-child(2) { flex: 1; }
.finished-banner strong { display: block; font-family: var(--heading); font-size: 1.2rem; }
.finished-banner span { color: #f2d9c9; }
.finished-icon { font-size: 2.4rem; }

/* Okénka */
.window-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	perspective: 1200px;
}
@media (max-width: 900px) { .window-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .window-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

.window {
	position: relative;
	aspect-ratio: 1 / 0.86;
	min-width: 0;
	border: 0;
	border-radius: 16px;
	padding: 12px;
	background: linear-gradient(160deg, #1d2433 0%, #141a25 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 24px rgba(0, 0, 0, 0.25);
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	opacity: 0;
	animation: window-in 0.5s ease forwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.window:not(:disabled):hover {
	transform: translateY(-3px);
	box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.6), 0 16px 32px rgba(0, 0, 0, 0.35);
}
.window:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .window { aspect-ratio: 1 / 1.05; padding: 10px; } }
@keyframes window-in {
	from { opacity: 0; transform: translateY(12px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.window-day {
	font-family: var(--heading);
	font-weight: 900;
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	line-height: 1;
}
.window-date { font-size: 0.78rem; color: var(--muted-dark); margin-top: 4px; }
.window-face {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	gap: 5px;
	color: var(--muted-dark);
}
.window-face i { font-size: 1.15rem; }
.window-face small { font-size: 0.78rem; }
.window-target { font-family: var(--heading); font-weight: 800; font-size: 1.15rem; color: #fff; white-space: nowrap; }
.window-face { flex-wrap: wrap; }

/* Zavřené odemčené okénko - obsah je schovaný za dvířky, dokud se neotevře */
.window:not(.is-opened):not(.is-locked) .window-face { visibility: hidden; }
.window:not(.is-opened):not(.is-locked)::after {
	content: '';
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.window.is-locked {
	cursor: default;
	background: rgba(255, 255, 255, 0.025);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.window.is-locked .window-day { color: rgba(255, 255, 255, 0.28); }
.window.is-locked .window-face { color: rgba(255, 255, 255, 0.22); }
.window.is-locked.is-final .window-face { color: rgba(255, 176, 32, 0.5); }

.window.is-today {
	background: linear-gradient(160deg, #ff6a2f 0%, #e0400e 100%);
	box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.28), 0 18px 36px rgba(255, 90, 31, 0.3);
	animation: window-in 0.5s ease forwards, today-pulse 2.4s ease-in-out 1s infinite;
}
.window.is-today .window-date,
.window.is-today .window-face,
.window.is-today .window-face small { color: rgba(255, 255, 255, 0.85); }
.window.is-today:not(.is-opened)::after { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
@keyframes today-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.28), 0 18px 36px rgba(255, 90, 31, 0.3); }
	50% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0.1), 0 18px 36px rgba(255, 90, 31, 0.3); }
}

.window.is-rest.is-opened .window-face { color: #9fb4ff; }

.window-check {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--green);
	color: #06210f;
	font-size: 0.8rem;
	transform: scale(0);
	transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
}
.window.is-done .window-check { transform: scale(1); }
.window.is-done:not(.is-today) {
	background: linear-gradient(160deg, #14301f 0%, #10231a 100%);
	box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

/* Dvířka při otevírání - klon okénka rozdělený na dvě půlky */
.door-overlay {
	position: fixed;
	z-index: 50;
	perspective: 900px;
	pointer-events: none;
}
.door-light {
	position: absolute;
	inset: 8%;
	border-radius: 14px;
	background: radial-gradient(circle, #fff 0%, #ffd1b8 40%, rgba(255, 90, 31, 0) 72%);
	opacity: 0;
	animation: door-light 0.9s ease forwards;
}
.door {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	overflow: hidden;
}
.door-left { left: 0; transform-origin: left center; animation: door-left 0.85s cubic-bezier(.5, 0, .2, 1) forwards; }
.door-right { right: 0; transform-origin: right center; animation: door-right 0.85s cubic-bezier(.5, 0, .2, 1) forwards; }
.door-face { position: absolute; top: 0; opacity: 1 !important; animation: none !important; margin: 0; }
.door-left .door-face { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.door-right .door-face { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.window.door-hidden { visibility: hidden; }
@keyframes door-left { to { transform: rotateY(-105deg); opacity: 0.2; } }
@keyframes door-right { to { transform: rotateY(105deg); opacity: 0.2; } }
@keyframes door-light {
	0% { opacity: 0; transform: scale(0.4); }
	40% { opacity: 1; }
	100% { opacity: 0; transform: scale(1.6); }
}

.grid-note { color: var(--muted-dark); font-size: 0.92rem; margin-top: 22px; }

/* Okno s úkolem */
.day-dialog {
	border: 0;
	padding: 0;
	background: none;
	max-width: 520px;
	width: calc(100% - 32px);
	color: var(--ink);
}
.day-dialog::backdrop {
	background: rgba(5, 8, 13, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.day-dialog[open] .day-dialog-inner { animation: dialog-in 0.45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dialog-in {
	from { opacity: 0; transform: translate(var(--from-x, 0), var(--from-y, 30px)) scale(0.3); }
	to { opacity: 1; transform: none; }
}
.day-dialog-inner {
	position: relative;
	background: #fff;
	border-radius: 24px;
	padding: 34px 32px 28px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}
.day-dialog-inner::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--accent), var(--gold));
}
.dialog-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: var(--paper);
	color: var(--muted);
	font-size: 1.1rem;
	cursor: pointer;
}
.dialog-eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }
.day-dialog h2 { font-size: 1.9rem; margin: 6px 0 14px; }
.dialog-target { display: flex; align-items: baseline; gap: 10px; }
.dialog-target-value { font-family: var(--heading); font-weight: 900; font-size: 4.2rem; line-height: 1; color: var(--dark); }
.dialog-target-unit { font-family: var(--heading); font-weight: 700; font-size: 1.4rem; color: var(--muted); }
.dialog-approx { color: var(--muted); font-weight: 600; margin-top: 6px; }
.dialog-approx:empty { display: none; }
.dialog-sets { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.dialog-sets:empty { display: none; }
.dialog-sets .set {
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-weight: 800;
	border-radius: 8px;
	padding: 3px 10px;
}
.dialog-text { font-size: 1.05rem; color: #3a4256; margin: 16px 0 24px; }
.dialog-done { width: 100%; font-size: 1.1rem; padding: 17px; }
.dialog-done.is-done { background: var(--green); box-shadow: 0 10px 26px rgba(34, 197, 94, 0.3); }
.dialog-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
.dialog-hint:empty { display: none; }
.is-rest-dialog .dialog-target-value { font-size: 2.6rem; }

/* Formuláře startu a nastavení */
.panel {
	background: #fff;
	color: var(--ink);
	border-radius: 22px;
	padding: 30px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.field { margin-bottom: 24px; }
.field-label { display: block; font-weight: 700; margin-bottom: 8px; }
.field-error { color: #c62828; font-size: 0.9rem; margin-top: 6px; font-weight: 600; }
.input {
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	font: inherit;
	color: inherit;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15); }
.input:disabled { background: var(--paper); color: var(--muted); }
.choices { display: grid; gap: 10px; }
.choice { display: block; cursor: pointer; }
.choice input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
	display: block;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	padding: 14px 16px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.choice input:checked + .choice-body { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + .choice-body { box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.2); }
.choice-title { display: block; font-weight: 800; }
.choice-note { display: block; color: var(--muted); font-size: 0.93rem; }
.choice-meta { display: block; color: var(--accent-dark); font-size: 0.85rem; font-weight: 700; margin-top: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; }
.pill span {
	display: inline-block;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
}
.pill input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.btn-wide { width: 100%; }
.panel-danger { margin-top: 18px; }
.panel-danger h2 { font-size: 1.25rem; margin-bottom: 6px; }
.panel-danger p { color: var(--muted); margin: 0 0 16px; }
.panel-danger .btn-outline { color: #c62828; box-shadow: inset 0 0 0 1.5px #f3c4c4; }
.panel-danger .btn-outline:hover { background: #fff5f5; }
.form-note { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }
.challenge .form-note { color: var(--muted-dark); }
.panel .form-note { color: var(--muted); }
.health-note { color: var(--muted-dark); font-size: 0.9rem; margin-top: 22px; }
.health-note i { color: var(--accent); margin-right: 6px; }

/* Efekty - konfety a výbuchy */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.fx { position: absolute; will-change: transform, opacity; }
.fx-confetti { width: 10px; height: 14px; border-radius: 2px; }
.fx-emoji { font-size: 28px; line-height: 1; }
.fx-trophy { font-size: 120px; line-height: 1; filter: drop-shadow(0 20px 40px rgba(255, 176, 32, 0.5)); }

@media (prefers-reduced-motion: reduce) {
	.window, .window.is-today { animation: none; opacity: 1; }
	.day-dialog[open] .day-dialog-inner { animation: none; }
}

/* Odkazy v hlavičce výzvy */
.top-links { align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.top-link-account {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	padding: 8px 14px;
}
.top-link-account:hover { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 640px) {
	.challenge-top .brand span { display: none; }
	.top-links { gap: 6px 14px; }
	.top-link { font-size: 0.88rem; }
}

/* Kalendář pro výběr dne startu (flatpickr) v barvách webu */
.date-input {
	cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
	padding-right: 46px;
}
.date-end { margin-top: 8px; }
.date-end::first-letter { text-transform: uppercase; }
.flatpickr-calendar {
	font-family: var(--text);
	border: 0;
	border-radius: 18px;
	padding: 8px;
	width: 324px;
	box-shadow: 0 24px 60px rgba(13, 17, 23, 0.25), 0 0 0 1px rgba(31, 37, 51, 0.06);
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none; }
.flatpickr-months { padding: 4px 0 10px; }
.flatpickr-months .flatpickr-month { height: 40px; }
.flatpickr-current-month {
	font-family: var(--heading);
	font-size: 1.05rem;
	font-weight: 800;
	padding-top: 8px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 800; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
	top: 10px;
	height: 36px;
	width: 36px;
	padding: 10px;
	border-radius: 10px;
}
.flatpickr-months .flatpickr-prev-month { left: 8px; }
.flatpickr-months .flatpickr-next-month { right: 8px; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--paper); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--accent); }
span.flatpickr-weekday { color: var(--muted); font-weight: 700; font-size: 0.78rem; }
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer { width: 308px; min-width: 308px; max-width: 308px; }
.flatpickr-day {
	border-radius: 10px;
	height: 40px;
	line-height: 40px;
	max-width: 44px;
	font-weight: 600;
	color: var(--ink);
}
.flatpickr-day:hover { background: var(--accent-soft); border-color: transparent; }
.flatpickr-day.today { border-color: var(--accent); }
.flatpickr-day.today:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.flatpickr-day.selected, .flatpickr-day.selected:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	box-shadow: 0 6px 14px rgba(255, 90, 31, 0.35);
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #c3c8d2; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #d7dbe3; background: none; }

/* Sdílený pokrok - okénka jen ke čtení */
.window-grid-readonly .window { cursor: default; }
.window-grid-readonly .window:hover { transform: none; }
.window-grid-readonly .window:not(.is-done):not(.is-locked):not(.is-today) .window-day { color: rgba(255, 255, 255, 0.55); }
.share-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
	background: var(--dark-2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 22px 24px;
	color: #fff;
}
.share-cta strong { display: block; font-family: var(--heading); font-size: 1.3rem; }
.share-cta span { color: var(--muted-dark); }

/* Sdílení pokroku */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-row[hidden] { display: none; }
.btn-facebook { background: #1877f2; color: #fff; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3); }
.btn-facebook:hover { background: #0f63d6; color: #fff; }
.dialog-share .btn { flex: 1 1 auto; }
/* Tlačítko odkazu má místo i na „Zkopírováno“, aby po kliknutí neskočilo na nový řádek */
.dialog-share .js-share-copy { flex: 0 0 auto; min-width: 10em; padding-left: 16px; padding-right: 16px; }
.dialog-share .btn-outline { box-shadow: inset 0 0 0 1.5px var(--line); }
.head-share { margin-top: 14px; }

/* Pokračování na další úroveň a dokončené měsíce */
.continue-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: var(--dark-2);
	border: 1px solid rgba(255, 90, 31, 0.45);
	border-radius: 18px;
	padding: 18px 22px;
	margin: -10px 0 24px;
	color: #fff;
}
.continue-card[hidden] { display: none; }
.continue-copy { flex: 1 1 320px; }
.continue-eyebrow { display: block; color: var(--accent); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.continue-copy strong { display: block; font-family: var(--heading); font-size: 1.25rem; margin: 2px 0 4px; }
.continue-copy span:last-child { color: var(--muted-dark); }
.panel-runs { margin-top: 18px; }
.panel-runs h2 { font-size: 1.25rem; margin-bottom: 10px; }
.run-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.run-round { font-family: var(--heading); font-weight: 900; font-size: 1.3rem; color: var(--accent); width: 28px; }
.run-info { flex: 1; }
.run-info strong { display: block; }
.run-info small { color: var(--muted); }

/* Dokončené měsíce na stránce výzvy */
.runs-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.run-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 176, 32, 0.12);
	border: 1px solid rgba(255, 176, 32, 0.45);
	color: #ffd88a;
	border-radius: 99px;
	padding: 6px 14px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.88rem;
}
.run-chip:hover { background: rgba(255, 176, 32, 0.22); color: #fff; }
.run-chip .fa-trophy { color: var(--gold); }
.run-chip small { color: #fff; font-weight: 600; opacity: 0.8; }

/* Řádek se stavem výzvy a odkazem na její nastavení */
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; }
.eyebrow-row .eyebrow { margin-bottom: 0; }
.eyebrow-edit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted-dark);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 99px;
	padding: 3px 11px;
}
.eyebrow-edit:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.eyebrow-edit .fa-pen { font-size: 0.72rem; }

/* Složená výzva - sestava cviků v okně dne */
.dialog-rounds { color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.dialog-rounds:empty, .dialog-items:empty { display: none; }
.day-dialog.is-composite .dialog-target { display: none; }
.day-dialog.is-composite .dialog-text { margin-top: 12px; }
.dialog-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; }
.dialog-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--paper);
	border-radius: 14px;
	padding: 10px 14px;
	transition: background 0.15s ease;
}
.dialog-item.is-checked { background: #e9f9ef; }
.dialog-item-check {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid #cfd4de;
	background: #fff;
	color: transparent;
	cursor: pointer;
	font-size: 0.8rem;
}
.dialog-item.is-checked .dialog-item-check { background: var(--green); border-color: var(--green); color: #fff; }
.dialog-item-body { flex: 1; min-width: 0; }
.dialog-item-name { display: block; font-weight: 800; }
.dialog-item-tip { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.dialog-item-target { text-align: right; white-space: nowrap; }
.dialog-item-target b { font-family: var(--heading); font-size: 1.4rem; }
.dialog-item-target small { color: var(--muted); font-weight: 600; }
.dialog-item.is-checked .dialog-item-name { text-decoration: line-through; text-decoration-color: var(--green); }

/* Jak na to - animace techniky v okně dne */
.dialog-howto { margin: -10px 0 22px; border: 1.5px solid #eceef2; border-radius: 14px; background: #fff; overflow: hidden; }
.dialog-howto summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--accent); list-style: none; }
.dialog-howto summary::-webkit-details-marker { display: none; }
.dialog-howto summary i { margin-right: 6px; }
.dialog-howto[open] summary { border-bottom: 1px solid #eceef2; }
.dialog-howto ul { margin: 4px 0 0; padding: 8px 16px 14px 34px; color: #3a4256; font-size: 0.93rem; }
.dialog-howto li { margin: 4px 0; }
