/* Familien-Adventskalender — mobile first, festive dark red. */
:root {
	color-scheme: dark;
	--bg: #2a0707;
	--fg: #fff7ed;
	--muted: #f3d9c4;
	--card: rgba(255, 247, 237, 0.08);
	--line: rgba(255, 247, 237, 0.18);
	--gold: #facc15;
	--gold-2: #eab308;
	--danger: #fb7185;
	--radius: 18px;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
	margin: 0;
	min-height: 100dvh;
	color: var(--fg);
	font-family: var(--font);
	line-height: 1.5;
	background:
		radial-gradient(50rem 30rem at 50% -10%, rgba(250, 204, 21, 0.18), transparent 60%),
		radial-gradient(40rem 30rem at 0% 100%, rgba(22, 101, 52, 0.35), transparent 60%),
		linear-gradient(#5b0f0f, var(--bg));
	background-attachment: fixed;
}
button, input { font: inherit; color: inherit; }

/* ---------- Snow ---------- */
.snow {
	position: fixed;
	inset: -10% 0 0 0;
	pointer-events: none;
	z-index: 0;
	background-image:
		radial-gradient(2px 2px at 20px 30px, #fff, transparent 60%),
		radial-gradient(3px 3px at 120px 80px, rgba(255,255,255,.8), transparent 60%),
		radial-gradient(2px 2px at 200px 150px, #fff, transparent 60%),
		radial-gradient(2px 2px at 60px 190px, rgba(255,255,255,.7), transparent 60%),
		radial-gradient(3px 3px at 160px 240px, rgba(255,255,255,.9), transparent 60%);
	background-size: 240px 260px;
	animation: snow 18s linear infinite;
	opacity: 0.55;
}
@keyframes snow { to { background-position: 40px 260px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }

/* ---------- Layout ---------- */
#root { position: relative; z-index: 1; }
.shell {
	max-width: 62rem;
	margin: 0 auto;
	padding: max(1rem, env(safe-area-inset-top)) 0.9rem calc(2rem + env(safe-area-inset-bottom));
}
.shell.narrow { max-width: 28rem; padding-top: 12vh; }
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.row .input { flex: 1; min-width: 10rem; }
.center { text-align: center; align-items: center; }
.big-emoji { font-size: 3.5rem; }
h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-family: var(--serif); font-weight: 700; }
h2 { font-size: 1.15rem; }
.hint { margin: 0; color: var(--muted); font-size: 0.92rem; }

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.1rem;
	backdrop-filter: blur(6px);
}

/* ---------- Controls ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	min-height: 2.75rem; padding: 0.55rem 1.1rem;
	border: 0; border-radius: 12px; cursor: pointer;
	background: linear-gradient(var(--gold), var(--gold-2));
	color: #3b0a0a; font-weight: 700;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); font-weight: 600; }
.btn-danger { background: var(--danger); color: #3b0a0a; }
.btn:focus-visible, .chip:focus-visible, .big-door:focus-visible, .slide:focus-visible, .link-btn:focus-visible, .input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 0.3rem; color: var(--muted); text-decoration: underline; cursor: pointer; align-self: center; }
.field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.input {
	width: 100%; min-height: 2.75rem; padding: 0.5rem 0.8rem;
	border-radius: 12px; border: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.25);
}
.input.mono { font-family: ui-monospace, monospace; font-size: 0.8rem; }
.file-btn { align-self: flex-start; }
.confirm-box { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem; }
.confirm-box p { margin: 0; }
.alert { display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0.7rem 0.9rem; border-radius: 12px; }
.alert-error { background: rgba(251, 113, 133, 0.18); border: 1px solid var(--danger); }
.loading { display: flex; gap: 0.6rem; align-items: center; justify-content: center; padding: 2rem; color: var(--muted); }
.spinner { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.owner-bar { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 0.6rem; }
.chip { border: 1px solid var(--line); background: rgba(0,0,0,.2); border-radius: 999px; padding: 0.35rem 0.9rem; cursor: pointer; font-size: 0.9rem; }
.chip.on { background: var(--gold); color: #3b0a0a; border-color: var(--gold); font-weight: 700; }
.foot { text-align: center; margin-top: 2rem; opacity: 0.7; }

/* ---------- Slideshow (phone, portrait) ---------- */
.slideshow {
	height: 100dvh;
	max-width: 34rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; padding: 0.9rem 1rem 0.5rem; }
.titles { min-width: 0; }
.top h1 { font-size: 1.35rem; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.top .sub { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }
.top-actions { display: flex; gap: 0.4rem; align-items: center; flex: none; }
.chip.icon { width: 2.5rem; height: 2.5rem; padding: 0; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.menu-wrap { position: relative; }
.menu {
	position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 40; min-width: 14rem;
	display: flex; flex-direction: column; overflow: hidden;
	background: #3b0a0a; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.menu button { text-align: left; padding: 0.85rem 1rem; background: none; border: 0; cursor: pointer; }
.menu button + button { border-top: 1px solid var(--line); }
.float-error { position: fixed; top: calc(0.5rem + env(safe-area-inset-top)); left: 0.8rem; right: 0.8rem; z-index: 50; }

.stage { flex: 1; min-height: 0; display: flex; padding: 0.3rem 1rem; touch-action: pan-y; }
.photo-frame {
	position: relative; flex: 1; overflow: hidden;
	border-radius: 22px; border: 3px solid rgba(250, 204, 21, 0.85);
	background: #1a0404; perspective: 1600px;
	box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.photo-blur { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(26px) brightness(0.5); }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade 0.6s; }
.nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 3rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.1rem;
	background: linear-gradient(transparent, rgba(0,0,0,.8));
	animation: fade 0.8s;
}
.cap-day { font-family: var(--serif); color: var(--gold); font-size: 1.25rem; font-weight: 700; }
.cap-text { font-size: 1.05rem; }

.big-door {
	position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
	transform-origin: left center;
	transition: transform 1.1s cubic-bezier(.3,.7,.3,1);
	backface-visibility: hidden;
	box-shadow: inset 0 0 0 14px rgba(0,0,0,.14), inset 0 0 0 17px rgba(250,204,21,.6);
	/* soft light from the top + a pattern of little snowflakes */
	background-image:
		radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.16), transparent 60%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M15 8v14M8 15h14M10 10l10 10M20 10L10 20'/%3E%3Cpath d='M52 42v12M46 48h12M48 44l8 8M56 44l-8 8'/%3E%3C/g%3E%3Ccircle cx='45' cy='15' r='1.6' fill='%23fff' fill-opacity='.18'/%3E%3Ccircle cx='18' cy='52' r='1.3' fill='%23fff' fill-opacity='.15'/%3E%3C/svg%3E");
	background-size: 100% 100%, 70px 70px;
}
.big-door::after {
	content: ""; position: absolute; right: 7%; top: 50%; width: 18px; height: 18px; border-radius: 50%; z-index: 2;
	background: radial-gradient(circle at 35% 35%, #fef08a, var(--gold-2)); box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.big-door.wiggle { animation: wiggle 0.38s ease-in-out; }
@keyframes wiggle {
	25% { transform: rotateY(-7deg); }
	55% { transform: rotateY(3deg); }
	80% { transform: rotateY(-4deg); }
}
.big-door.swing { transform: rotateY(-112deg); }
.big-door.waiting { cursor: default; }

/* door decoration */
.snowcap { position: absolute; top: 0; left: 0; width: 100%; height: 6%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.lights { position: absolute; top: 7.5%; left: 8%; right: 8%; display: flex; justify-content: space-between; }
.lights::before {
	content: ""; position: absolute; left: -4%; right: -4%; top: -10px; height: 20px;
	border-bottom: 2px solid rgba(20, 30, 20, .7); border-radius: 0 0 50% 50%;
}
.lights i {
	position: relative; width: 10px; height: 15px; border-radius: 50% 50% 45% 45%;
	background: #facc15; box-shadow: 0 0 10px 3px currentColor; color: #facc15;
	animation: twinkle 1.6s ease-in-out infinite;
}
.lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; background: #374151; border-radius: 2px; }
.lights i:nth-child(4n+1) { background: #ef4444; color: #ef4444; }
.lights i:nth-child(4n+2) { background: #22c55e; color: #22c55e; animation-delay: .4s; }
.lights i:nth-child(4n+3) { background: #3b82f6; color: #60a5fa; animation-delay: .8s; }
.lights i:nth-child(4n) { animation-delay: 1.2s; }
.lights i:nth-child(1), .lights i:nth-child(9) { top: 0; }
.lights i:nth-child(2), .lights i:nth-child(8) { top: 5px; }
.lights i:nth-child(3), .lights i:nth-child(7) { top: 8px; }
.lights i:nth-child(4), .lights i:nth-child(6) { top: 10px; }
.lights i:nth-child(5) { top: 11px; }
@keyframes twinkle { 50% { opacity: 0.45; box-shadow: 0 0 3px 1px currentColor; } }
.wreath {
	position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%);
	width: min(84%, 52dvh); aspect-ratio: 1;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,.4));
}
.holly { position: absolute; bottom: 3%; width: 20%; max-width: 90px; }
.holly.hl { left: 4%; }
.holly.hr { right: 4%; transform: scaleX(-1); }
.door-num {
	position: relative; z-index: 1; margin-top: -4%;
	font-family: var(--serif); font-weight: 700; font-size: clamp(4.5rem, 26vw, 8rem); line-height: 1;
	color: #fff7ed; text-shadow: 0 0 2px #facc15, 0 4px 14px rgba(0,0,0,.55);
}
.door-hint {
	position: absolute; bottom: 8%; left: 22%; right: 22%; z-index: 1;
	color: #fff7ed; font-size: 0.95rem; font-weight: 600; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.6);
	animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.55; } }

/* opening: stars and snowflakes burst out, golden glow, photo fades in */
.burst { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.glow {
	position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.2);
	background: radial-gradient(circle, rgba(253, 230, 138, .75), rgba(250, 204, 21, .25) 35%, transparent 65%);
	animation: glow 1.8s ease-out forwards;
}
@keyframes glow {
	30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}
.spark {
	position: absolute; left: 50%; top: 50%; opacity: 0; line-height: 1;
	text-shadow: 0 0 8px rgba(250, 204, 21, .9);
	animation: fly 1.7s cubic-bezier(.15,.7,.35,1) var(--delay) forwards;
}
@keyframes fly {
	0% { opacity: 1; transform: translate(-50%, -50%) scale(.3) rotate(0); }
	70% { opacity: 1; }
	100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) scale(1) rotate(var(--rot)); }
}
.photo.reveal { animation: reveal 1.4s ease-out; }
@keyframes reveal {
	from { opacity: 0; transform: scale(1.08); filter: brightness(1.6) saturate(.6); }
	to { opacity: 1; transform: scale(1); filter: none; }
}
.c0.big-door, .slide.closed.c0 .slide-window { background-color: #b91c1c; }
.c1.big-door, .slide.closed.c1 .slide-window { background-color: #991b1b; }
.c2.big-door, .slide.closed.c2 .slide-window { background-color: #9f1239; }
.c3.big-door, .slide.closed.c3 .slide-window { background-color: #a11d2a; }
.c4.big-door, .slide.closed.c4 .slide-window { background-color: #881337; }
@media (prefers-reduced-motion: reduce) { .big-door { transition: none; } .door-hint, .lights i { animation: none; } }

/* Slide strip ("Dias" in cream mounts) */
.strip {
	flex: none; display: flex; gap: 0.65rem; overflow-x: auto;
	padding: 0.8rem 1rem 1rem; scroll-snap-type: x proximity; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.slide {
	flex: none; position: relative; width: 4.9rem; height: 4.9rem; scroll-snap-align: center;
	padding: 7px 7px 16px; border: 0; border-radius: 5px; cursor: pointer;
	background: #f5efe2; box-shadow: 0 4px 10px rgba(0,0,0,.4);
	transition: transform 0.2s, box-shadow 0.2s;
}
.slide.sel { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(0,0,0,.5); }
.slide-window {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	border-radius: 2px; background: #222 center / cover no-repeat;
	font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff7ed;
}
.slide-num { position: absolute; left: 0; right: 0; bottom: 1px; text-align: center; font-size: 0.68rem; font-weight: 700; color: #5b0f0f; }

/* ---------- Lightbox / sheets ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 20;
	background: rgba(15, 2, 2, 0.88);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem;
	animation: fade 0.25s;
}
@keyframes fade { from { opacity: 0; } }
.lightbox figure {
	margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
	max-width: min(56rem, 100%); max-height: 100%;
}
.lightbox img {
	max-width: 100%; max-height: 72dvh; border-radius: 12px;
	border: 3px solid var(--gold); box-shadow: 0 12px 40px rgba(0,0,0,.6);
	object-fit: contain;
}
.lb-day { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }
.lightbox figcaption { font-size: 1.1rem; text-align: center; }

.sheet {
	background: #3b0a0a; border: 1px solid var(--line); border-radius: var(--radius);
	width: min(52rem, 100%); max-height: 90dvh; overflow: auto; padding: 1rem;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; position: sticky; top: -1rem; background: #3b0a0a; padding: 0.5rem 0; z-index: 1; }

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.day-row { display: grid; grid-template-columns: 2rem 4.5rem 1fr auto; gap: 0.6rem; align-items: center; }
.day-num { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; text-align: center; color: var(--gold); }
.day-thumb {
	width: 4.5rem; height: 4.5rem; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer;
	border: 1px dashed var(--line); background: rgba(0,0,0,.25); font-size: 0.8rem; color: var(--muted);
}
.day-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.pool-item {
	position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
	background: rgba(0,0,0,.25); cursor: pointer; text-align: left; display: flex; flex-direction: column;
}
.pool-item.sel { border-color: var(--gold); }
.pool-item.none { align-items: center; justify-content: center; min-height: 7.5rem; border: 1px dashed var(--line); color: var(--muted); }
.pool-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pool-label { font-size: 0.72rem; padding: 0.25rem 0.4rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
	position: absolute; top: 0.3rem; left: 0.3rem; min-width: 1.6rem; height: 1.6rem; border-radius: 999px;
	background: var(--gold); color: #3b0a0a; font-weight: 700; font-size: 0.8rem;
	display: flex; align-items: center; justify-content: center; padding: 0 0.3rem;
}
.del {
	position: absolute; top: 0.3rem; right: 0.3rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
	border: 0; background: rgba(0,0,0,.65); cursor: pointer;
}
details summary { cursor: pointer; color: var(--muted); }

/* ---------- Printable A4 calendar ---------- */
.layout-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 40rem) { .layout-pick { grid-template-columns: repeat(4, 1fr); } }
.layout-opt {
	display: flex; flex-direction: column; gap: 0.3rem; text-align: left; padding: 0.5rem; cursor: pointer;
	border: 2px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2);
}
.layout-opt.sel { border-color: var(--gold); }
.layout-opt svg { width: 100%; height: auto; border-radius: 4px; }
.layout-opt span { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
select.input { appearance: auto; }

@page { size: A4 portrait; margin: 0; }
.a4-wrap { zoom: var(--z, 1); padding-bottom: 2rem; }
.a4 {
	position: relative; width: 210mm; height: 297mm; overflow: hidden; margin: 0 auto 12mm;
	box-shadow: 0 10px 30px rgba(0,0,0,.5);
	background: #fff center / cover no-repeat;
	-webkit-print-color-adjust: exact; print-color-adjust: exact;
	break-after: page; page-break-after: always;
	font-family: var(--font);
}
.a4:last-child { break-after: auto; page-break-after: auto; }

/* cover */
.a4-cover { color: #fff7ed; }
.a4-cover.cover-rot, .a4-cover.cover-gruen {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M15 8v14M8 15h14M10 10l10 10M20 10L10 20'/%3E%3Cpath d='M52 42v12M46 48h12M48 44l8 8M56 44l-8 8'/%3E%3C/g%3E%3C/svg%3E"),
		radial-gradient(120% 60% at 50% 0%, rgba(250,204,21,.25), transparent 60%);
	background-size: 18mm 18mm, 100% 100%;
	background-repeat: repeat, no-repeat;
}
.a4-cover.cover-rot { background-color: #8f1414; }
.a4-cover.cover-gruen { background-color: #12391f; }
.a4-veil { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.1) 30%, rgba(0,0,0,.15)); }
.a4-tree { position: absolute; inset: 0; width: 100%; height: 100%; }
.a4-title {
	position: absolute; left: 14mm; right: 14mm; top: 10mm; height: 38mm;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	border-top: 0.5mm solid #facc15; border-bottom: 0.5mm solid #facc15;
}
.a4-title h1 { margin: 0; font-family: var(--serif); font-size: 11mm; line-height: 1.1; color: #fde68a; text-shadow: 0 0.6mm 2mm rgba(0,0,0,.5); }
.a4-title p { margin: 1.5mm 0 0; font-size: 5mm; letter-spacing: 0.6mm; text-transform: uppercase; color: #fff7ed; }
.a4-door {
	position: absolute; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border: 0.4mm solid rgba(250, 204, 21, 0.9); border-radius: 1.5mm;
}
.cover-foto .a4-door { background: rgba(127, 29, 29, 0.55); }
.a4-door.star { background: rgba(250, 204, 21, 0.25); }
.a4-cover.cut .a4-door { border: 0.35mm dashed #ffffff; border-left: 0.35mm dotted rgba(255,255,255,.7); }
.round .a4-door, .round .a4-photo { border-radius: 5mm; }
.a4-door span { font-family: var(--serif); font-weight: 700; color: #fde68a; text-shadow: 0 0.5mm 1.5mm rgba(0,0,0,.6); line-height: 1; }

/* photo page */
.a4-photos { background: #fff; color: #333; }
.a4-photo { position: absolute; overflow: hidden; background: #f3efe6; border-radius: 1.5mm; }
.a4-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.a4-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10mm; }
.a4-photo-day {
	position: absolute; top: 1mm; left: 1mm; min-width: 5mm; height: 5mm; padding: 0 1mm; border-radius: 2.5mm;
	background: rgba(127,29,29,.85); color: #fff; font-size: 3mm; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.a4-cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 3mm 1.5mm 1mm;
	background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 2.6mm; line-height: 1.2;
}
.a4-foot { position: absolute; left: 14mm; right: 14mm; bottom: 4mm; margin: 0; text-align: center; font-size: 2.8mm; color: #999; }

@media print {
	body { background: #fff !important; }
	.snow, .no-print { display: none !important; }
	.a4-wrap { zoom: 1 !important; padding: 0; }
	.a4 { margin: 0; box-shadow: none; }
}

/* ---------- Focus point (faces stay visible when cropped) ---------- */
.chip.icon:disabled { opacity: 0.35; cursor: default; }
.focus-sheet { display: flex; flex-direction: column; gap: 0.8rem; }
.focus-pick { position: relative; align-self: center; line-height: 0; touch-action: none; }
.focus-pick img { max-width: 100%; max-height: 52dvh; border-radius: 10px; cursor: crosshair; user-select: none; }
.focus-dot {
	position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%); pointer-events: none;
	border: 3px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.6), inset 0 0 0 2px rgba(0,0,0,.6);
}
.focus-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); }
.focus-previews { display: flex; gap: 0.6rem; align-items: flex-end; }
.focus-previews figure { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; align-items: center; }
.focus-previews figure:nth-child(2) { flex: 1.6; }
.focus-previews img { width: 100%; max-height: 9rem; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); }
.focus-previews figcaption { font-size: 0.78rem; color: var(--muted); }
.a4-photo.editable { cursor: pointer; }
.a4-photo.editable:hover { outline: 0.6mm solid #facc15; }
.a4-photos.whole .a4-img { object-fit: contain; }
.a4-fill { filter: blur(3mm) brightness(.85); transform: scale(1.15); }
@media print { .a4-photo.editable:hover { outline: none; } }

/* ---------- Lists (family links, managers), menu label ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.list-row { display: flex; gap: 0.6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 12px; }
.list-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.list-main strong { overflow: hidden; text-overflow: ellipsis; }
.list-main .hint { font-size: 0.82rem; }
.inline-chip { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0 0.3rem; padding: 0.1rem 0.2rem 0.1rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; }
.inline-chip button { background: none; border: 0; cursor: pointer; padding: 0 0.3rem; }
.menu-label { padding: 0.6rem 1rem 0.2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.menu .menu-label + button { border-top: 0; }
