/*
 * Calypso CRM — front (formularze + portal)
 * Deep Ocean Editorial: tokeny 1:1 z site.css nowej strony.
 */

.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal,
.calypso-reg-success, .calypso-reg-errors,
.calypso-med-success, .calypso-med-doctor, .calypso-med-errors,
.calypso-doc-success, .calypso-doc-errors, .calypso-lang {
	/* ── Aliasy starych nazw → wspólne tokeny panelu (assets/css/tokens.css).
	   Jasno i ciemno wynika z tokenów (.dark na <html>), bez osobnej palety. ── */
	--navy: var(--text-strong);
	--abyss: var(--surface-2);
	--mint: var(--accent);
	--mint-line: var(--accent-line);
	--mint-soft: var(--accent-soft);
	--white: var(--text-strong);
	--dim: var(--text-2);
	--faint: var(--muted);
	--error-bg: var(--crit-bg); --error-fg: var(--crit-fg); --error-border: var(--crit-line); --error-text: var(--crit-fg);
	--success-bg: var(--ok-bg); --success-fg: var(--ok-fg); --success-border: var(--ok-line);
	--serif: var(--font-sans);   /* szeryfowa Libre Caslon wycofana: panel jej nie używa */
	--ui: var(--font-sans);
	--mono: var(--font-mono);
	--r-sm: var(--r-lg);         /* 8 px jak pola i przyciski panelu; --r-lg / --r-md z tokenów */
	--glass: var(--surface);
	--glass-shadow: var(--shadow-sm);
	--ease-ui: var(--ease);
}

/* ── Tło strony: jasne domyślnie, „schodzi pod wodę" tylko w .dark ──── */
/* Motyw blokowy ustawia global body { color:#fff } (myślał o ciemnym Home) —
   na stronach gościa nadpisujemy jawnie, żeby wszystko poza kontenerem
   (gdyby coś tam trafiło) też było czytelne. */
body:has(.calypso-reg-form), body:has(.calypso-med-form),
body:has(.calypso-doc-form), body:has(.calypso-portal) {
	background: var(--bg) !important; /* płasko jak panel (tokens.css) */
	color: var(--text) !important;
}
html.dark body:has(.calypso-reg-form), html.dark body:has(.calypso-med-form),
html.dark body:has(.calypso-doc-form), html.dark body:has(.calypso-portal) {
	background: var(--bg) !important;
	color: var(--text) !important;
}
body:has(.calypso-reg-form) .site, body:has(.calypso-med-form) .site,
body:has(.calypso-doc-form) .site, body:has(.calypso-portal) .site,
body:has(.calypso-reg-form) .site-content, body:has(.calypso-med-form) .site-content,
body:has(.calypso-doc-form) .site-content, body:has(.calypso-portal) .site-content,
body:has(.calypso-reg-form) .ast-container, body:has(.calypso-med-form) .ast-container,
body:has(.calypso-doc-form) .ast-container, body:has(.calypso-portal) .ast-container,
body:has(.calypso-reg-form) article, body:has(.calypso-med-form) article,
body:has(.calypso-doc-form) article, body:has(.calypso-portal) article,
body:has(.calypso-reg-form) .entry-content, body:has(.calypso-med-form) .entry-content,
body:has(.calypso-doc-form) .entry-content, body:has(.calypso-portal) .entry-content {
	background: transparent !important;
}
/* Tytuł strony: jak nagłówek widoku w panelu (Work Sans 600) */
body:has(.calypso-reg-form) h1.entry-title, body:has(.calypso-med-form) h1.entry-title,
body:has(.calypso-doc-form) h1.entry-title, body:has(.calypso-portal) h1.entry-title {
	font-family: var(--font-sans) !important; /* jak nagłówek widoku w panelu; Hanken Grotesk wycofana 16.09 */
	font-weight: 600 !important;
	font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em !important;
	color: var(--text-strong) !important;
}
html.dark body:has(.calypso-reg-form) h1.entry-title, html.dark body:has(.calypso-med-form) h1.entry-title,
html.dark body:has(.calypso-doc-form) h1.entry-title, html.dark body:has(.calypso-portal) h1.entry-title {
	color: #fff !important;
}

/* ── Powierzchnia modułu: jasna karta domyślnie, ciemny „ocean panel" w .dark ── */
.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	box-shadow: var(--glass-shadow);
	font-family: var(--ui);
	font-weight: 300;
	font-size: 15px;
	color: var(--dim);
}
html.dark .calypso-reg-form, html.dark .calypso-med-form, html.dark .calypso-doc-form, html.dark .calypso-portal {
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(16, 32, 42, .9), transparent 60%),
		linear-gradient(175deg, #03080e, #020509);
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8);
}
.calypso-portal { max-width: 900px; }

/* ── Przełącznik języka ─────────────────────────────────────────── */
.calypso-lang {
	max-width: 760px;
	margin: 0 auto 14px;
	text-align: right;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .3em;
	text-transform: uppercase;
}
/* Przełącznik stoi POZA ciemnym panelem — kolory muszą działać na jasnym i ciemnym tle. */
.calypso-lang a { color: #6f7f8a; text-decoration: none; transition: color .35s var(--ease-ui); }
.calypso-lang a:hover { color: #2a9d87; }
.calypso-lang a.calypso-lang-on { color: #2a9d87; border-bottom: 1px solid #2a9d87; padding-bottom: 2px; }

/* ── Sekcje formularza = szklane karty ──────────────────────────── */
.calypso-reg-form fieldset, .calypso-med-form fieldset, .calypso-doc-form fieldset {
	background: var(--glass);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--r-md);
	box-shadow: var(--glass-shadow);
	margin: 0 0 24px;
	padding: 24px 26px 28px;
	transition: border-color .4s var(--ease-ui);
}
.calypso-reg-form fieldset:focus-within,
.calypso-med-form fieldset:focus-within,
.calypso-doc-form fieldset:focus-within { border-color: rgba(125, 211, 192, .45); }

.calypso-reg-form legend, .calypso-med-form legend, .calypso-doc-form legend {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .42em;
	text-transform: uppercase;
	color: var(--mint);
	padding: 0 10px;
}

/* ── Etykiety pól ───────────────────────────────────────────────── */
.calypso-reg-form label, .calypso-med-form label, .calypso-doc-form label {
	display: block;
	margin: 16px 0 8px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--faint);
}
.calypso-reg-form .calypso-required::after { content: " *"; color: var(--mint); }

/* ── Pola ───────────────────────────────────────────────────────── */
.calypso-reg-form input[type=text], .calypso-reg-form input[type=email],
.calypso-reg-form input[type=tel], .calypso-reg-form input[type=date],
.calypso-reg-form input[type=number], .calypso-reg-form select,
.calypso-med-form input[type=text], .calypso-med-form input[type=email],
.calypso-doc-form input[type=text], .calypso-doc-form input[type=email],
.calypso-doc-form select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	box-sizing: border-box;
	padding: 15px 16px;
	border-radius: var(--r-sm);
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .05);
	color: var(--white);
	font-family: var(--ui);
	font-size: 14px;
	font-weight: 300;
	outline: none;
	color-scheme: light;
	transition: border-color .3s, background .3s, box-shadow .3s;
}
html.dark .calypso-reg-form input[type=text], html.dark .calypso-reg-form input[type=email],
html.dark .calypso-reg-form input[type=tel], html.dark .calypso-reg-form input[type=date],
html.dark .calypso-reg-form input[type=number], html.dark .calypso-reg-form select,
html.dark .calypso-med-form input[type=text], html.dark .calypso-med-form input[type=email],
html.dark .calypso-doc-form input[type=text], html.dark .calypso-doc-form input[type=email],
html.dark .calypso-doc-form select {
	color-scheme: dark;
}
.calypso-reg-form select, .calypso-doc-form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%);
	background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}
.calypso-reg-form input:focus, .calypso-reg-form select:focus,
.calypso-med-form input:focus,
.calypso-doc-form input:focus, .calypso-doc-form select:focus {
	border-color: rgba(125, 211, 192, .6);
	background-color: rgba(255, 255, 255, .08);
	box-shadow: 0 0 0 4px rgba(125, 211, 192, .12);
}
.calypso-doc-form input[type=file] { color: var(--dim); font-family: var(--ui); font-size: 14px; margin-top: 4px; }
.calypso-doc-form input[type=file]::file-selector-button {
	font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
	color: var(--mint); background: rgba(125, 211, 192, .1);
	border: 1px solid rgba(125, 211, 192, .4); border-radius: 999px;
	padding: 10px 18px; margin-right: 14px; cursor: pointer;
	transition: background .35s var(--ease-ui);
}
.calypso-doc-form input[type=file]::file-selector-button:hover { background: rgba(125, 211, 192, .22); }

/* ── Pytania medyczne ───────────────────────────────────────────── */
.calypso-med-q { border-bottom: 1px solid var(--border); padding: 18px 0; }
html.dark .calypso-med-q { border-bottom-color: rgba(255, 255, 255, .1); }
.calypso-med-q:last-of-type { border-bottom: 0; }
.calypso-med-q p { margin: 0 0 12px; font-weight: 400; color: var(--white); font-size: 14.5px; line-height: 1.55; }
.calypso-med-q .calypso-med-opts { display: flex; gap: 28px; }
.calypso-med-q .calypso-med-opts label {
	display: flex; align-items: center; gap: 9px; margin: 0;
	font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--dim); cursor: pointer;
}

/* ── Radio / checkbox — mint ────────────────────────────────────── */
.calypso-reg-form input[type=checkbox], .calypso-reg-form input[type=radio],
.calypso-med-form input[type=checkbox], .calypso-med-form input[type=radio],
.calypso-doc-form input[type=checkbox] {
	accent-color: var(--mint);
	width: 17px; height: 17px; min-width: 17px;
}

/* ── Zgody ──────────────────────────────────────────────────────── */
.calypso-reg-form .calypso-consent, .calypso-med-form .calypso-med-consent {
	display: flex; gap: 12px; align-items: flex-start; margin-top: 10px;
}
.calypso-reg-form .calypso-consent input, .calypso-med-form .calypso-med-consent input { margin-top: 3px; }
.calypso-reg-form .calypso-consent label, .calypso-med-form .calypso-med-consent label {
	margin: 0;
	font-family: var(--ui); font-size: 13px; font-weight: 300;
	letter-spacing: 0; text-transform: none; color: var(--dim); line-height: 1.6;
}

/* ── Przyciski — mint pill (ciemny tekst na mięcie!) ────────────── */
.calypso-reg-form button[type=submit], .calypso-med-form button[type=submit],
.calypso-doc-form button[type=submit], .calypso-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 48px;
	padding: 15px 34px;
	font-family: var(--ui);
	font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
	color: var(--accent-contrast) !important;
	background: var(--mint);
	border: 1px solid var(--mint);
	border-radius: 999px;
	box-shadow: 0 14px 40px -8px rgba(125, 211, 192, .5);
	cursor: pointer;
	text-decoration: none;
	transition: all .35s var(--ease-ui);
}
.calypso-reg-form button[type=submit]:hover, .calypso-med-form button[type=submit]:hover,
.calypso-doc-form button[type=submit]:hover, .calypso-btn:hover {
	background: #1a675c;
	transform: translateY(-2px);
	box-shadow: 0 20px 50px -8px rgba(125, 211, 192, .55);
}
html.dark .calypso-reg-form button[type=submit]:hover, html.dark .calypso-med-form button[type=submit]:hover,
html.dark .calypso-doc-form button[type=submit]:hover, html.dark .calypso-btn:hover {
	background: #95e0cf;
}

/* ── Komunikaty ─────────────────────────────────────────────────── */
.calypso-reg-success, .calypso-med-success, .calypso-doc-success,
.calypso-med-doctor,
.calypso-reg-errors, .calypso-med-errors, .calypso-doc-errors {
	max-width: 760px;
	margin: 0 auto 20px;
	padding: 24px 28px;
	border-radius: var(--r-md);
	background: var(--glass);
	box-shadow: var(--glass-shadow);
	font-family: var(--ui);
	font-weight: 300;
	color: var(--dim);
}
.calypso-reg-success, .calypso-med-success, .calypso-doc-success {
	border: 1px solid rgba(125, 211, 192, .5);
	box-shadow: var(--glass-shadow), 0 0 60px -14px rgba(125, 211, 192, .3);
}
.calypso-med-doctor { border: 1px solid var(--border-strong); }
html.dark .calypso-med-doctor { border-color: rgba(255, 255, 255, .25); }
.calypso-reg-errors, .calypso-med-errors, .calypso-doc-errors { border: 1px solid var(--error-border); }
.calypso-reg-errors li, .calypso-med-errors li, .calypso-doc-errors li { color: var(--error-fg); }
.calypso-reg-success h3, .calypso-med-success h3, .calypso-doc-success h3, .calypso-med-doctor h3 {
	font-family: var(--serif); font-weight: 400; font-style: normal;
	font-size: clamp(1.25rem, 1.6vw, 1.5rem);
	color: var(--white); margin: 0 0 10px;
}

/* ── Portal ─────────────────────────────────────────────────────── */
.calypso-portal h3 {
	font-family: var(--serif); font-weight: 400; font-style: normal;
	font-size: clamp(1.7rem, 2.3vw, 2.3rem);
	line-height: 1.06; color: var(--white);
	margin: 0 0 26px;
	text-shadow: none;
}
html.dark .calypso-portal h3 { text-shadow: 0 2px 30px rgba(0, 0, 0, .5), 0 0 80px rgba(125, 211, 192, .12); }
.calypso-portal h4 {
	font-family: var(--mono); font-size: 10px; font-weight: 500;
	letter-spacing: .42em; text-transform: uppercase;
	color: var(--mint); margin: 26px 0 14px;
}
.calypso-portal-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px; margin: 0 0 10px;
}
.calypso-card {
	background: var(--glass);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	box-shadow: var(--glass-shadow);
	padding: 22px 24px;
	transition: all .4s var(--ease-ui);
}
.calypso-card:hover {
	border-color: rgba(125, 211, 192, .45);
	transform: translateY(-4px);
	box-shadow: var(--glass-shadow), 0 0 60px -14px rgba(125, 211, 192, .25);
}
.calypso-card h4 { margin-top: 0; }
.calypso-card p, .calypso-card li { font-size: 14px; line-height: 1.6; }
.calypso-card ul { margin: 0 0 10px 18px; padding: 0; }
.calypso-card a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(125, 211, 192, .35); transition: border-color .3s; }
.calypso-card a:hover { border-color: var(--mint); }
.calypso-card strong { color: var(--white); font-weight: 500; }
.calypso-muted { color: var(--faint); font-size: 13px; }
.calypso-portal p a { color: var(--mint); }

.calypso-table { width: 100%; border-collapse: collapse; }
.calypso-table th {
	font-family: var(--mono); font-size: 10px; font-weight: 500;
	letter-spacing: .24em; text-transform: uppercase;
	color: var(--faint); text-align: left; padding: 10px 12px;
	border-bottom: 1px solid rgba(125, 211, 192, .35);
}
.calypso-table td {
	padding: 12px; font-size: 14px; color: var(--dim);
	border-bottom: 1px solid var(--border);
}
html.dark .calypso-table td { border-bottom-color: rgba(255, 255, 255, .08); }
.calypso-table tr:hover td { color: var(--white); background: var(--hover); }
html.dark .calypso-table tr:hover td { background: rgba(255, 255, 255, .03); }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal { border-radius: var(--r-md); }
	.calypso-med-q .calypso-med-opts { gap: 18px; }
}

/* ════════════════════════════════════════════════════════════════
   v2 — „THE DESCENT": formularz jak zejście na nurkowaniu
   ════════════════════════════════════════════════════════════════ */

/* Kroki: bez JS wszystko widoczne; z JS (klasa .calypso-descent) jeden naraz */
.calypso-descent fieldset.calypso-step-off { display: none; }
.calypso-descent fieldset.calypso-step-on { display: block; }
@keyframes calypso-sink {
	from { opacity: 0; transform: translateY(-14px); }
	to { opacity: 1; transform: none; }
}
.calypso-descent .calypso-step-in { animation: calypso-sink .55s cubic-bezier(.23, 1, .32, 1) both; }

/* Głębokościomierz */
.calypso-gauge { margin: 0 0 26px; }
.calypso-gauge-label {
	font-family: var(--mono); font-size: 26px; font-weight: 500;
	color: var(--mint); letter-spacing: .08em; margin-bottom: 8px;
	text-shadow: 0 0 30px rgba(125, 211, 192, .4);
}
.calypso-gauge-track {
	position: relative; height: 4px; border-radius: 4px;
	background: var(--border);
}
html.dark .calypso-gauge-track { background: rgba(255, 255, 255, .1); }
.calypso-gauge-fill {
	height: 4px; border-radius: 4px; width: 0;
	background: linear-gradient(90deg, rgba(125, 211, 192, .4), var(--mint));
	transition: width .6s cubic-bezier(.23, 1, .32, 1);
}
.calypso-gauge-dot {
	position: absolute; top: 50%; left: -7px; width: 14px; height: 14px;
	transform: translateY(-50%); border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 4px rgba(125, 211, 192, .18), 0 0 24px rgba(125, 211, 192, .6);
	transition: left .6s cubic-bezier(.23, 1, .32, 1);
}
.calypso-gauge-ends {
	display: flex; justify-content: space-between; margin-top: 8px;
	font-family: var(--mono); font-size: 10px; letter-spacing: .24em;
	text-transform: uppercase; color: var(--faint);
}

/* Nawigacja kroków */
.calypso-descent-nav { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.calypso-descent-next {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 15px 34px;
	font-family: var(--ui); font-size: 10.5px; font-weight: 500;
	letter-spacing: .3em; text-transform: uppercase;
	color: var(--accent-contrast); background: var(--mint); border: 1px solid var(--mint);
	border-radius: 999px; cursor: pointer;
	box-shadow: 0 14px 40px -8px rgba(125, 211, 192, .5);
	transition: all .35s var(--ease-ui);
}
.calypso-descent-next:hover { background: #1a675c; transform: translateY(-2px); }
html.dark .calypso-descent-next:hover { background: #95e0cf; }
.calypso-descent-back {
	display: inline-flex; align-items: center; min-height: 48px; padding: 14px 24px;
	font-family: var(--ui); font-size: 10.5px; font-weight: 500;
	letter-spacing: .3em; text-transform: uppercase;
	color: var(--dim); background: var(--surface-2);
	border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer;
	transition: all .35s var(--ease-ui);
}
html.dark .calypso-descent-back { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); }
.calypso-descent-back:hover { color: var(--white); background: var(--hover); }
html.dark .calypso-descent-back:hover { background: rgba(255, 255, 255, .12); }
.calypso-descent-cheer {
	min-height: 22px; margin: 14px 0 4px;
	font-family: var(--serif); font-size: 17px; color: var(--mint);
}

/* Formularz-panel żyje: bąbelki wznoszące się w tle */
.calypso-reg-form, .calypso-med-form, .calypso-doc-form { position: relative; overflow: hidden; }
.calypso-reg-form::before, .calypso-med-form::before, .calypso-doc-form::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		radial-gradient(circle 3px at 12% 110%, rgba(33, 129, 114, .3) 40%, transparent 41%),
		radial-gradient(circle 2px at 78% 120%, rgba(33, 129, 114, .16) 40%, transparent 41%),
		radial-gradient(circle 4px at 45% 115%, rgba(33, 129, 114, .18) 40%, transparent 41%),
		radial-gradient(circle 2px at 92% 105%, rgba(33, 129, 114, .12) 40%, transparent 41%);
	background-repeat: no-repeat;
	animation: calypso-bubbles 16s linear infinite;
	opacity: .8;
}
html.dark .calypso-reg-form::before, html.dark .calypso-med-form::before, html.dark .calypso-doc-form::before {
	background-image:
		radial-gradient(circle 3px at 12% 110%, rgba(125, 211, 192, .35) 40%, transparent 41%),
		radial-gradient(circle 2px at 78% 120%, rgba(255, 255, 255, .25) 40%, transparent 41%),
		radial-gradient(circle 4px at 45% 115%, rgba(125, 211, 192, .2) 40%, transparent 41%),
		radial-gradient(circle 2px at 92% 105%, rgba(255, 255, 255, .18) 40%, transparent 41%);
}
@keyframes calypso-bubbles {
	from { transform: translateY(0); }
	to { transform: translateY(-130%); }
}
.calypso-reg-form > *, .calypso-med-form > *, .calypso-doc-form > * { position: relative; }

/* Medical w wizardzie: pytanie DUŻE, odpowiedzi jako wielkie pigułki */
.calypso-descent .calypso-med-q { border-bottom: 0; padding: 10px 0 4px; }
.calypso-descent .calypso-med-q p {
	font-family: var(--serif); font-weight: 400; font-size: 19px;
	line-height: 1.5; color: var(--white); margin-bottom: 20px;
}
.calypso-descent .calypso-med-opts { gap: 14px; }
.calypso-descent .calypso-med-opts label {
	position: relative; flex: 1; max-width: 180px; min-height: 56px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--border-strong); border-radius: 999px;
	font-family: var(--ui); font-size: 12px; font-weight: 500;
	letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
	cursor: pointer; transition: all .3s var(--ease-ui);
}
html.dark .calypso-descent .calypso-med-opts label { border-color: rgba(255, 255, 255, .25); }
.calypso-descent .calypso-med-opts label:hover { border-color: rgba(125, 211, 192, .5); color: var(--white); }
.calypso-descent .calypso-med-opts input[type=radio] {
	position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.calypso-descent .calypso-med-opts label:has(input:checked) {
	background: var(--mint); border-color: var(--mint); color: var(--accent-contrast);
	box-shadow: 0 10px 34px -8px rgba(125, 211, 192, .55);
}
.calypso-descent .calypso-med-opts input[type=radio]:focus-visible + * { outline: 2px solid var(--mint); }

/* Ekrany sukcesu: światło przez wodę */
.calypso-reg-success, .calypso-med-success, .calypso-doc-success {
	position: relative; overflow: hidden; text-align: center; padding: 44px 32px;
}
.calypso-reg-success::before, .calypso-med-success::before, .calypso-doc-success::before {
	content: ""; position: absolute; inset: -40% -20%; pointer-events: none;
	background:
		linear-gradient(100deg, transparent 42%, rgba(125, 211, 192, .12) 50%, transparent 58%),
		linear-gradient(80deg, transparent 55%, rgba(33, 129, 114, .05) 62%, transparent 70%);
	animation: calypso-rays 9s ease-in-out infinite alternate;
}
html.dark .calypso-reg-success::before, html.dark .calypso-med-success::before, html.dark .calypso-doc-success::before {
	background:
		linear-gradient(100deg, transparent 42%, rgba(125, 211, 192, .12) 50%, transparent 58%),
		linear-gradient(80deg, transparent 55%, rgba(255, 255, 255, .06) 62%, transparent 70%);
}
@keyframes calypso-rays {
	from { transform: translateX(-6%); }
	to { transform: translateX(6%); }
}
.calypso-reg-success h3, .calypso-med-success h3, .calypso-doc-success h3 {
	font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}
.calypso-reg-success p, .calypso-med-success p, .calypso-doc-success p { position: relative; }

/* Portal: eyebrow-kreska nad tytułem, ikony SVG przy kartach, większy oddech */
.calypso-portal h3 { font-size: clamp(2rem, 2.8vw, 2.7rem); }
.calypso-portal h3::before {
	content: ""; display: block; width: 34px; height: 1px; margin-bottom: 18px;
	background: linear-gradient(90deg, var(--mint), transparent);
}
.calypso-portal-grid { gap: 18px; }
.calypso-card { padding: 26px 26px 24px; }
.calypso-card h4 { display: flex; align-items: center; gap: 12px; }
.calypso-card h4::before {
	content: ""; width: 30px; height: 30px; flex: 0 0 30px;
	background-position: center; background-repeat: no-repeat; background-size: 30px 30px;
}
/* maska nurkowa (certyfikat) — jasno: brand-700 (kontrast na bieli), .dark: mięta */
.calypso-portal-grid .calypso-card:nth-child(1) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231a675c' stroke-width='1.4'><rect x='4' y='9' width='24' height='12' rx='6'/><path d='M13 15h6M8 21c0 4 3 6 6 6'/></svg>");
}
html.dark .calypso-portal-grid .calypso-card:nth-child(1) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%237dd3c0' stroke-width='1.4'><rect x='4' y='9' width='24' height='12' rx='6'/><path d='M13 15h6M8 21c0 4 3 6 6 6'/></svg>");
}
/* krzyż medyczny */
.calypso-portal-grid .calypso-card:nth-child(2) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231a675c' stroke-width='1.4'><circle cx='16' cy='16' r='12'/><path d='M16 10v12M10 16h12'/></svg>");
}
html.dark .calypso-portal-grid .calypso-card:nth-child(2) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%237dd3c0' stroke-width='1.4'><circle cx='16' cy='16' r='12'/><path d='M16 10v12M10 16h12'/></svg>");
}
/* strzałka — następny kurs */
.calypso-portal-grid .calypso-card:nth-child(3) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231a675c' stroke-width='1.4'><path d='M8 24L24 8M12 8h12v12'/></svg>");
}
html.dark .calypso-portal-grid .calypso-card:nth-child(3) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%237dd3c0' stroke-width='1.4'><path d='M8 24L24 8M12 8h12v12'/></svg>");
}
/* teczka — dokumenty */
.calypso-portal-grid .calypso-card:nth-child(4) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231a675c' stroke-width='1.4'><path d='M5 10a2 2 0 012-2h6l3 3h9a2 2 0 012 2v11a2 2 0 01-2 2H7a2 2 0 01-2-2z'/></svg>");
}
html.dark .calypso-portal-grid .calypso-card:nth-child(4) h4::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%237dd3c0' stroke-width='1.4'><path d='M5 10a2 2 0 012-2h6l3 3h9a2 2 0 012 2v11a2 2 0 01-2 2H7a2 2 0 01-2-2z'/></svg>");
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.calypso-card, .calypso-card:hover,
	.calypso-reg-form *, .calypso-med-form *, .calypso-doc-form *, .calypso-portal * {
		transition: none !important;
		transform: none !important;
	}
	.calypso-reg-form::before, .calypso-med-form::before, .calypso-doc-form::before,
	.calypso-reg-success::before, .calypso-med-success::before, .calypso-doc-success::before,
	.calypso-descent .calypso-step-in {
		animation: none !important;
	}
}

/* ══════════════════════════════════════════════════════════════════
   Panel zespołu „Calypso Staff" (/staff/) — aplikacja, nie strona
   ══════════════════════════════════════════════════════════════════ */
.calypso-staff {
	--navy: #03080e; --abyss: #020509; --mint: #7dd3c0; --white: #fff;
	--dim: rgba(255, 255, 255, .72); --faint: rgba(255, 255, 255, .45);
	--coral: #e08b6d;
	--serif: 'Libre Caslon Display', Georgia, serif;
	--ui: 'Work Sans', -apple-system, sans-serif;
	--mono: 'IBM Plex Mono', monospace;
	--r-lg: 28px; --r-md: 20px; --r-sm: 12px;
	--glass: linear-gradient(155deg, rgba(16, 32, 42, .8), rgba(6, 14, 20, .68));
	--glass-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .22), inset 0 -2px 10px rgba(0, 0, 0, .28), 0 40px 90px -30px rgba(0, 0, 0, .72);
	--ease-ui: cubic-bezier(.2, .8, .2, 1);
	max-width: 980px; margin: 0 auto; padding: clamp(16px, 3vw, 40px);
	font-family: var(--ui); color: var(--white);
	animation: calypso-staff-in .5s var(--ease-ui) both;
}
@keyframes calypso-staff-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Aplikacja: pełna toń, bez marketingowego headera/stopki/tytułu strony */
body:has(.calypso-staff) {
	background:
		radial-gradient(110% 65% at 50% -10%, rgba(125, 211, 192, .09), transparent 60%),
		radial-gradient(80% 50% at 20% 0%, rgba(16, 32, 42, .8), transparent 70%),
		#020509 !important;
}
body:has(.calypso-staff) #hdr,
body:has(.calypso-staff) .floor,
body:has(.calypso-staff) h1.entry-title { display: none !important; }
body:has(.calypso-staff) .site, body:has(.calypso-staff) .site-content,
body:has(.calypso-staff) article, body:has(.calypso-staff) .entry-content,
body:has(.calypso-staff) .wp-site-blocks { background: transparent !important; }

/* ── Nawigacja aplikacji ── */
.calypso-staff-nav {
	display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
	background: var(--glass); box-shadow: var(--glass-shadow);
	border-radius: 999px; padding: 10px 18px; margin-bottom: clamp(24px, 4vw, 44px);
}
.calypso-staff-brand {
	font-family: var(--mono); font-size: 11px; letter-spacing: .42em;
	text-transform: uppercase; color: var(--mint); margin-right: 14px; white-space: nowrap;
}
.calypso-staff-tab {
	font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
	text-transform: uppercase; color: var(--dim) !important; text-decoration: none;
	padding: 8px 12px; border-radius: 999px; transition: color .25s var(--ease-ui), background .25s var(--ease-ui);
}
.calypso-staff-tab:hover { color: var(--white) !important; background: rgba(255, 255, 255, .06); }
.calypso-staff-tab.is-active { color: #04110d !important; background: var(--mint); }
.calypso-staff-out { margin-left: auto; color: var(--faint) !important; }

/* ── Logowanie ── */
.calypso-staff-login {
	max-width: 420px; margin: clamp(40px, 10vh, 120px) auto 0;
	background: var(--glass); box-shadow: var(--glass-shadow);
	border-radius: var(--r-lg); padding: clamp(28px, 5vw, 44px);
}
.calypso-staff-eyebrow {
	font-family: var(--mono); font-size: 11px; letter-spacing: .42em;
	text-transform: uppercase; color: var(--mint); margin: 0 0 10px;
}
.calypso-staff-title {
	font-family: 'Hanken Grotesk', var(--ui); font-weight: 100;
	font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em;
	color: var(--white); margin: 0 0 8px;
}
.calypso-staff-sub { color: var(--faint); font-size: 14.5px; font-weight: 300; margin: 0 0 26px; }
.calypso-staff-login form p { margin: 0 0 16px; }
.calypso-staff-login label {
	display: block; font-family: var(--mono); font-size: 10.5px;
	letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px;
}
.calypso-staff-login input[type="text"],
.calypso-staff-login input[type="password"] {
	width: 100%; background: rgba(2, 5, 9, .6); color: var(--white);
	border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm);
	padding: 13px 15px; font-family: var(--ui); font-size: 15px;
	transition: border-color .25s var(--ease-ui), box-shadow .25s var(--ease-ui);
}
.calypso-staff-login input[type="text"]:focus,
.calypso-staff-login input[type="password"]:focus {
	outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(125, 211, 192, .18);
}
.calypso-staff-login .login-remember label {
	display: flex; align-items: center; gap: 8px; text-transform: none;
	letter-spacing: 0; font-family: var(--ui); font-size: 13.5px; color: var(--dim);
}
.calypso-staff-login input[type="submit"], .calypso-staff-btn {
	display: inline-block; background: var(--mint); color: #04110d !important;
	border: 0; border-radius: 999px; padding: 13px 30px; cursor: pointer;
	font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
	text-decoration: none; transition: transform .25s var(--ease-ui), box-shadow .25s var(--ease-ui);
}
.calypso-staff-login input[type="submit"]:hover, .calypso-staff-btn:hover {
	transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(125, 211, 192, .45);
}
.calypso-staff-gate { text-align: center; margin-top: 80px; color: var(--dim); }

/* ── Widok „Today" ── */
.calypso-staff-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.calypso-staff-head h3 {
	font-family: var(--serif); font-weight: 400; color: var(--white);
	font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0;
}
.calypso-staff-date { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--faint); }
.calypso-staff-session { margin-bottom: 28px; }
.calypso-staff-session h4 {
	font-family: var(--mono); font-size: 11.5px; letter-spacing: .3em;
	text-transform: uppercase; color: var(--mint); margin: 0 0 12px;
}
.calypso-staff-session h4 span { color: var(--faint); letter-spacing: .1em; text-transform: none; }
.calypso-staff-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.calypso-staff-person {
	display: grid; grid-template-columns: 14px minmax(140px, .8fr) minmax(120px, .8fr) 1.4fr;
	gap: 14px; align-items: center;
	background: var(--glass); box-shadow: var(--glass-shadow);
	border-radius: var(--r-md); padding: 14px 18px;
}
.calypso-staff-dot { width: 10px; height: 10px; border-radius: 50%; }
.is-ok .calypso-staff-dot { background: var(--mint); box-shadow: 0 0 10px rgba(125, 211, 192, .8); }
.is-attn .calypso-staff-dot { background: var(--coral); box-shadow: 0 0 10px rgba(224, 139, 109, .7); }
.calypso-staff-name { color: var(--white) !important; font-weight: 500; text-decoration: none; }
.calypso-staff-name:hover { color: var(--mint) !important; }
.calypso-staff-cert { color: var(--faint); font-size: 13px; }
.calypso-staff-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.calypso-staff-badges em {
	font-style: normal; font-family: var(--mono); font-size: 10.5px;
	letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.calypso-staff-badges em.ok { color: var(--mint); background: rgba(125, 211, 192, .1); }
.calypso-staff-badges em.attn { color: var(--coral); background: rgba(224, 139, 109, .12); }
.calypso-staff-empty {
	background: var(--glass); box-shadow: var(--glass-shadow); border-radius: var(--r-lg);
	padding: 44px; text-align: center; color: var(--dim);
}
.calypso-staff-empty p { margin: 0 0 18px; }

@media (max-width: 720px) {
	.calypso-staff-person { grid-template-columns: 12px 1fr; }
	.calypso-staff-cert { grid-column: 2; }
	.calypso-staff-badges { grid-column: 1 / -1; justify-content: flex-start; }
	.calypso-staff-out { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.calypso-staff { animation: none; }
	.calypso-staff-tab, .calypso-staff-btn, .calypso-staff-login input { transition: none !important; }
}

/* ── Poprawki pod motyw blokowy `calypso` (0.4.0) ──────────────────
   Motyw styluje surowe elementy (header{position:fixed}, section{padding:var(--sec)})
   i nie ma wrapperów Astry (.site/.ast-container) — neutralizujemy. */
.calypso-staff-head { position: static !important; padding: 0 !important; background: none !important; }
.calypso-staff-session { padding: 0 !important; }
.calypso-staff-nav { position: relative; z-index: 20; }

/* Tytuł bloku (nowy motyw używa .wp-block-post-title, nie .entry-title) */
body:has(.calypso-staff) h1.wp-block-post-title { display: none !important; }
body:has(.calypso-reg-form) h1.wp-block-post-title, body:has(.calypso-med-form) h1.wp-block-post-title,
body:has(.calypso-doc-form) h1.wp-block-post-title, body:has(.calypso-portal) h1.wp-block-post-title {
	font-family: var(--font-sans) !important; /* jak nagłówek widoku w panelu; Hanken Grotesk wycofana 16.09 */
	font-weight: 600 !important;
	font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em !important;
	color: var(--text-strong) !important;
}
html.dark body:has(.calypso-reg-form) h1.wp-block-post-title, html.dark body:has(.calypso-med-form) h1.wp-block-post-title,
html.dark body:has(.calypso-doc-form) h1.wp-block-post-title, html.dark body:has(.calypso-portal) h1.wp-block-post-title {
	color: #fff !important;
}

/* Wrappery motywu blokowego przezroczyste (odpowiednik reguł dla Astry) */
body:has(.calypso-reg-form) .wp-site-blocks, body:has(.calypso-med-form) .wp-site-blocks,
body:has(.calypso-doc-form) .wp-site-blocks, body:has(.calypso-portal) .wp-site-blocks,
body:has(.calypso-staff) .wp-site-blocks,
body:has(.calypso-reg-form) main, body:has(.calypso-med-form) main,
body:has(.calypso-doc-form) main, body:has(.calypso-portal) main,
body:has(.calypso-staff) main { background: transparent !important; }

/* Pasek pogody/kompas z mu-pluginu nie ma czego szukać na stronach aplikacji */
body:has(.calypso-staff) #calypso-weather, body:has(.calypso-staff) #ckg,
body:has(.calypso-reg-form) #calypso-weather, body:has(.calypso-reg-form) #ckg,
body:has(.calypso-med-form) #calypso-weather, body:has(.calypso-med-form) #ckg,
body:has(.calypso-doc-form) #calypso-weather, body:has(.calypso-doc-form) #ckg,
body:has(.calypso-portal) #calypso-weather, body:has(.calypso-portal) #ckg { display: none !important; }

/* Reszta elementów mu-pluginu (SSI badge, float, kompas, formularz) — poza aplikacją */
body:has(.calypso-staff) .calypso-ssi-badge, body:has(.calypso-staff) .calypso-float-buttons,
body:has(.calypso-staff) .calypso-kompas, body:has(.calypso-staff) .calypso-contact-form,
body:has(.calypso-staff) .calypso-weather-bar,
body:has(.calypso-reg-form) .calypso-ssi-badge, body:has(.calypso-reg-form) .calypso-float-buttons,
body:has(.calypso-reg-form) .calypso-kompas, body:has(.calypso-reg-form) .calypso-contact-form,
body:has(.calypso-reg-form) .calypso-weather-bar,
body:has(.calypso-med-form) .calypso-ssi-badge, body:has(.calypso-med-form) .calypso-float-buttons,
body:has(.calypso-med-form) .calypso-kompas, body:has(.calypso-med-form) .calypso-contact-form,
body:has(.calypso-med-form) .calypso-weather-bar,
body:has(.calypso-doc-form) .calypso-ssi-badge, body:has(.calypso-doc-form) .calypso-float-buttons,
body:has(.calypso-doc-form) .calypso-kompas, body:has(.calypso-doc-form) .calypso-contact-form,
body:has(.calypso-doc-form) .calypso-weather-bar,
body:has(.calypso-portal) .calypso-ssi-badge, body:has(.calypso-portal) .calypso-float-buttons,
body:has(.calypso-portal) .calypso-kompas, body:has(.calypso-portal) .calypso-contact-form,
body:has(.calypso-portal) .calypso-weather-bar { display: none !important; }

/* ── Panel staff: widoki Clients / karta / Dives / Stats ─────────── */
.calypso-staff-flash {
	font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	padding: 12px 18px; border-radius: var(--r-sm); margin: 0 0 18px;
}
.calypso-staff-flash.ok { color: var(--mint); background: rgba(125, 211, 192, .1); border: 1px solid rgba(125, 211, 192, .3); }
.calypso-staff-flash.err { color: var(--coral); background: rgba(224, 139, 109, .1); border: 1px solid rgba(224, 139, 109, .3); }

.calypso-staff-search { display: flex; gap: 10px; margin: 0 0 20px; }
.calypso-staff-search input[type="search"] {
	flex: 1; max-width: 380px; background: rgba(2, 5, 9, .6); color: var(--white);
	border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 11px 18px;
	font-family: var(--ui); font-size: 14.5px;
}
.calypso-staff-search input[type="search"]:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(125, 211, 192, .18); }

.calypso-staff-person.is-list { grid-template-columns: minmax(150px, .9fr) minmax(130px, .8fr) 1.2fr; }
.calypso-staff-meta { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; font-family: var(--mono); letter-spacing: .04em; }
.calypso-staff-badges em.dim { color: var(--faint); background: rgba(255, 255, 255, .05); }

.calypso-staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
.calypso-staff-card {
	background: var(--glass); box-shadow: var(--glass-shadow);
	border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 14px;
}
.calypso-staff-grid .calypso-staff-card { margin-bottom: 0; }
.calypso-staff-card h5 {
	font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
	color: var(--mint); margin: 0 0 14px; font-weight: 500;
}
.calypso-staff-card dl { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 7px 16px; margin: 0; }
.calypso-staff-card dt { color: var(--faint); font-size: 12.5px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.calypso-staff-card dd { color: var(--dim); font-size: 14.5px; margin: 0; overflow-wrap: anywhere; }
.calypso-staff-docs { list-style: none; margin: 0; padding: 0; }
.calypso-staff-docs li { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--dim); font-size: 14px; }
.calypso-staff-docs li:last-child { border-bottom: 0; }
.calypso-staff-docs a { color: var(--white) !important; text-decoration: none; }
.calypso-staff-docs a:hover { color: var(--mint) !important; }
.calypso-staff-docs span { color: var(--faint); font-size: 12px; font-family: var(--mono); margin-left: 8px; }
.calypso-staff-none { color: var(--faint); font-size: 14px; margin: 0; }

.calypso-staff-notes textarea {
	width: 100%; background: rgba(2, 5, 9, .6); color: var(--white);
	border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm);
	padding: 13px 15px; font-family: var(--ui); font-size: 14.5px; line-height: 1.55; resize: vertical;
}
.calypso-staff-notes textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(125, 211, 192, .18); }
.calypso-staff-notes p { margin: 14px 0 0; display: flex; align-items: center; gap: 18px; }
.calypso-staff-more { color: var(--faint) !important; font-size: 13px; text-decoration: none; }
.calypso-staff-more:hover { color: var(--mint) !important; }

.calypso-staff-form-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.calypso-staff-form-row label, .calypso-staff-label {
	display: block; font-family: var(--mono); font-size: 10.5px;
	letter-spacing: .22em; text-transform: uppercase; color: var(--faint);
}
.calypso-staff-label { margin: 0 0 10px; }
.calypso-staff-form-row input, .calypso-staff-form-row select {
	display: block; margin-top: 7px; background: rgba(2, 5, 9, .6); color: var(--white);
	border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm);
	padding: 11px 14px; font-family: var(--ui); font-size: 14.5px; color-scheme: dark;
}
.calypso-staff-form-row input:focus, .calypso-staff-form-row select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(125, 211, 192, .18); }
.calypso-staff-picker {
	columns: 3 190px; column-gap: 24px; max-height: 300px; overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px;
}
.calypso-staff-picker label {
	display: block; margin: 5px 0; break-inside: avoid; color: var(--dim);
	font-size: 14px; cursor: pointer;
}
.calypso-staff-picker input { accent-color: #7dd3c0; margin-right: 7px; }
.calypso-staff-picker label:has(input:checked) { color: var(--mint); }
.calypso-staff-h-small { font-size: clamp(1.3rem, 3vw, 1.7rem) !important; }

.calypso-staff-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.calypso-staff-tile {
	background: var(--glass); box-shadow: var(--glass-shadow); border-radius: var(--r-md);
	padding: 18px 20px; display: flex; flex-direction: column; gap: 6px;
	border-top: 2px solid rgba(125, 211, 192, .55);
}
.calypso-staff-tile .t-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.calypso-staff-tile .t-value { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--white); line-height: 1; }
.calypso-staff-tile .t-hint { color: var(--faint); font-size: 12.5px; }

.calypso-staff-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.calypso-staff-chart { background: var(--glass); box-shadow: var(--glass-shadow); border-radius: var(--r-md); padding: 20px 22px; }
.calypso-staff-chart h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--mint); margin: 0 0 14px; font-weight: 500; }
.calypso-staff-chart .c-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr 34px; gap: 10px; align-items: center; margin: 7px 0; }
.calypso-staff-chart .c-label { color: var(--dim); font-size: 12.5px; overflow-wrap: anywhere; }
.calypso-staff-chart .c-track { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; display: block; }
.calypso-staff-chart .c-fill { display: block; height: 100%; background: linear-gradient(90deg, rgba(125, 211, 192, .5), #7dd3c0); border-radius: 999px; }
.calypso-staff-chart .c-count { color: var(--faint); font-family: var(--mono); font-size: 12px; text-align: right; }

@media (max-width: 720px) {
	.calypso-staff-person.is-list { grid-template-columns: 1fr; }
	.calypso-staff-form-row { flex-direction: column; }
}

/* Stopka motywu (footer.c-footer) też znika na stronie aplikacji zespołu */
body:has(.calypso-staff) footer.c-footer { display: none !important; }

/* ══════════════════════════════════════════════════════════════════
   STAFF REDESIGN v2 — feedback Oli: „szaro, ponuro, się zlewa".
   Jaśniejsze odcięte karty + kolorowy język statusów + ampułka.
   ══════════════════════════════════════════════════════════════════ */
.calypso-staff { --amber: #ffc46a; --coral: #ff8f70; }

/* Więcej światła w toni */
body:has(.calypso-staff) {
	background:
		radial-gradient(120% 70% at 50% -12%, rgba(125, 211, 192, .16), transparent 62%),
		radial-gradient(90% 55% at 18% 0%, rgba(28, 56, 74, .95), transparent 72%),
		linear-gradient(180deg, #04121b 0%, #020509 55%) !important;
}

/* Nawigacja: wyraźniejsza */
.calypso-staff-nav {
	background: linear-gradient(155deg, rgba(30, 54, 68, .92), rgba(10, 22, 30, .88));
	border: 1px solid rgba(125, 211, 192, .16);
}
.calypso-staff-tab { color: rgba(255, 255, 255, .82) !important; }

/* Karty osób: odcięte od tła, kolorowa krawędź statusu */
.calypso-staff-person {
	grid-template-areas: "ava who badges" "ava who ready";
	grid-template-columns: 46px 1fr auto;
	grid-template-rows: auto auto;
	row-gap: 4px;
	background: linear-gradient(160deg, rgba(36, 62, 78, .88), rgba(13, 27, 37, .94));
	border: 1px solid rgba(125, 211, 192, .15);
	border-left-width: 4px;
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .14), 0 22px 44px -22px rgba(0, 0, 0, .8);
	transition: transform .25s var(--ease-ui), border-color .25s var(--ease-ui);
}
.calypso-staff-person:hover { transform: translateY(-2px); border-color: rgba(125, 211, 192, .45); }
.calypso-staff-person.is-ok   { border-left-color: var(--mint); }
.calypso-staff-person.is-warn { border-left-color: var(--amber); }
.calypso-staff-person.is-crit { border-left-color: var(--coral); }
.calypso-staff-person.is-list { grid-template-areas: "ava who badges" "ava who ready"; grid-template-columns: 46px 1fr auto; }

.calypso-staff-ava {
	grid-area: ava; width: 42px; height: 42px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; align-self: center;
	font-family: var(--mono); font-size: 13.5px; letter-spacing: .04em; font-weight: 500;
}
.is-ok .calypso-staff-ava   { background: rgba(125, 211, 192, .18); color: var(--mint); box-shadow: 0 0 0 1px rgba(125, 211, 192, .35), 0 0 18px -6px rgba(125, 211, 192, .6); }
.is-warn .calypso-staff-ava { background: rgba(255, 196, 106, .15); color: var(--amber); box-shadow: 0 0 0 1px rgba(255, 196, 106, .32); }
.is-crit .calypso-staff-ava { background: rgba(255, 143, 112, .16); color: var(--coral); box-shadow: 0 0 0 1px rgba(255, 143, 112, .35); }

.calypso-staff-who { grid-area: who; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calypso-staff-name { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.calypso-staff-cert { color: rgba(255, 255, 255, .62); font-size: 13px; }
.calypso-staff-meta { grid-column: auto; color: rgba(255, 255, 255, .48); font-size: 12px; }

.calypso-staff-badges { grid-area: badges; align-self: start; justify-content: flex-end; }
.calypso-staff-badges em { font-size: 10.5px; padding: 5px 10px; }
.calypso-staff-badges em.ok   { color: #9fe8d8; background: rgba(125, 211, 192, .14); box-shadow: inset 0 0 0 1px rgba(125, 211, 192, .25); }
.calypso-staff-badges em.warn { color: var(--amber); background: rgba(255, 196, 106, .1); box-shadow: inset 0 0 0 1px rgba(255, 196, 106, .25); }
.calypso-staff-badges em.crit { color: var(--coral); background: rgba(255, 143, 112, .12); box-shadow: inset 0 0 0 1px rgba(255, 143, 112, .3); }
.calypso-staff-badges em.attn { color: var(--coral); background: rgba(255, 143, 112, .12); box-shadow: inset 0 0 0 1px rgba(255, 143, 112, .3); }
.calypso-staff-badges em.dim  { color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }

.calypso-staff-ready { grid-area: ready; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: right; align-self: end; }
.is-ok .calypso-staff-ready   { color: var(--mint); }
.is-warn .calypso-staff-ready { color: var(--amber); }
.is-crit .calypso-staff-ready { color: var(--coral); }

/* Szukajka i przyciski: jaśniej */
.calypso-staff-search input[type="search"] { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); }
.calypso-staff-search input[type="search"]::placeholder { color: rgba(255, 255, 255, .45); }

/* Karty/kafle/wykresy: ta sama jaśniejsza szkoła */
.calypso-staff-card, .calypso-staff-empty, .calypso-staff-tile, .calypso-staff-chart, .calypso-staff-login {
	background: linear-gradient(160deg, rgba(32, 56, 72, .82), rgba(12, 25, 34, .92));
	border: 1px solid rgba(125, 211, 192, .14);
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .12), 0 26px 52px -26px rgba(0, 0, 0, .8);
}
.calypso-staff-card dd { color: rgba(255, 255, 255, .85); }
.calypso-staff-tile .t-value { color: #fff; }
.calypso-staff-tile { border-top: 2px solid rgba(125, 211, 192, .6); }

@media (max-width: 720px) {
	.calypso-staff-person, .calypso-staff-person.is-list {
		grid-template-areas: "ava who" "badges badges" "ready ready";
		grid-template-columns: 46px 1fr;
	}
	.calypso-staff-badges { justify-content: flex-start; }
	.calypso-staff-ready { text-align: left; }
}

/* ── Panel staff: nowe komponenty (ampułka, peek, akcje, filtry) ── */
.calypso-staff-ampoule {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
	margin: -8px 0 18px;
}
.calypso-staff-ampoule .calypso-staff-dot { width: 12px; height: 12px; border-radius: 50%; }
.calypso-staff-ampoule.is-ok   { color: var(--mint); }
.calypso-staff-ampoule.is-ok .calypso-staff-dot   { background: var(--mint); box-shadow: 0 0 12px rgba(125, 211, 192, .8); }
.calypso-staff-ampoule.is-warn { color: var(--amber); }
.calypso-staff-ampoule.is-warn .calypso-staff-dot { background: var(--amber); box-shadow: 0 0 12px rgba(255, 196, 106, .7); }
.calypso-staff-ampoule.is-crit { color: var(--coral); }
.calypso-staff-ampoule.is-crit .calypso-staff-dot { background: var(--coral); box-shadow: 0 0 12px rgba(255, 143, 112, .7); }

.calypso-staff-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.calypso-staff-pill {
	font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--dim) !important; text-decoration: none;
	padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
	transition: all .25s var(--ease-ui);
}
.calypso-staff-pill:hover { border-color: rgba(125, 211, 192, .5); color: var(--white) !important; }
.calypso-staff-pill.is-active { background: var(--mint); color: #04110d !important; border-color: var(--mint); }

.calypso-staff-peek { margin-top: 4px; }
.calypso-staff-peek summary {
	cursor: pointer; list-style: none; font-family: var(--mono); font-size: 10.5px;
	letter-spacing: .16em; text-transform: uppercase; color: rgba(125, 211, 192, .75);
}
.calypso-staff-peek summary::-webkit-details-marker { display: none; }
.calypso-staff-peek summary:hover { color: var(--mint); }
.calypso-staff-peek .peek-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .09); }
.calypso-staff-peek dl { display: grid; grid-template-columns: minmax(70px, auto) 1fr; gap: 5px 14px; margin: 0 0 12px; }
.calypso-staff-peek dt { color: var(--faint); font-size: 11px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.calypso-staff-peek dd { color: var(--dim); font-size: 13px; margin: 0; overflow-wrap: anywhere; }

.calypso-staff-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.calypso-staff-btn--small { padding: 9px 18px; font-size: 10.5px; }
.calypso-staff-btn--ghost {
	background: transparent; color: var(--dim) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.calypso-staff-btn--ghost:hover { color: var(--coral) !important; box-shadow: inset 0 0 0 1px rgba(255, 143, 112, .5); }

.calypso-staff-quickadd {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
	background: var(--glass); border: 1px solid rgba(125, 211, 192, .14);
	border-radius: 999px; padding: 10px 14px; margin: 0 0 18px;
}
.calypso-staff-quickadd select {
	background: rgba(2, 5, 9, .6); color: var(--white);
	border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
	padding: 9px 14px; font-family: var(--ui); font-size: 13.5px; color-scheme: dark;
}
.calypso-staff-quickadd select:first-of-type { flex: 1; min-width: 200px; }

.calypso-staff-addform { margin-top: 14px; }
.calypso-staff-addform summary {
	cursor: pointer; list-style: none; font-family: var(--mono); font-size: 11px;
	letter-spacing: .18em; text-transform: uppercase; color: rgba(125, 211, 192, .8);
}
.calypso-staff-addform summary::-webkit-details-marker { display: none; }
.calypso-staff-addform summary:hover { color: var(--mint); }
.calypso-staff-addform form { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .09); }
.calypso-staff-inline { margin-top: 12px; }

.calypso-staff-x { grid-area: badges; justify-self: end; align-self: center; }
.calypso-staff-x button {
	background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: var(--faint);
	width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
	transition: all .25s var(--ease-ui);
}
.calypso-staff-x button:hover { color: var(--coral); border-color: rgba(255, 143, 112, .55); }
.calypso-staff-person.is-plain { border-left-color: rgba(125, 211, 192, .25); }
.calypso-staff-person.is-plain .calypso-staff-ava { background: rgba(255, 255, 255, .07); color: var(--dim); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.calypso-staff-hint { margin: 0 0 14px; }

@media (prefers-reduced-motion: reduce) {
	.calypso-staff-person, .calypso-staff-pill, .calypso-staff-x button { transition: none !important; }
	.calypso-staff-person:hover { transform: none; }
}

/* Fix: długa linia powodów nie może zgniatać kolumny z nazwiskiem */
.calypso-staff-person, .calypso-staff-person.is-list {
	grid-template-columns: 46px minmax(0, 1.5fr) minmax(0, 1fr);
}
.calypso-staff-ready { white-space: normal; line-height: 1.6; }
.calypso-staff-badges { flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════
   STAFF v3 — „instrument console" (impeccable pass, 07.07.2026)
   Feedback Oli: przejrzyście, logicznie, z ŻYCIEM, opcje widoczne.
   ══════════════════════════════════════════════════════════════════ */

.calypso-staff { max-width: 1180px; }

/* Ambient: kaustyka + bąbelki (życie oceanu, subtelnie, GPU-tanio) */
body:has(.calypso-staff) { position: relative; }
body:has(.calypso-staff)::before {
	content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
	background:
		radial-gradient(60% 40% at 30% -5%, rgba(125, 211, 192, .12), transparent 70%),
		radial-gradient(50% 35% at 75% -8%, rgba(90, 170, 200, .1), transparent 70%);
	animation: calypso-caustics 14s ease-in-out infinite alternate;
}
body:has(.calypso-staff)::after {
	content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
	background-image:
		radial-gradient(3px 3px at 12% 90%, rgba(125, 211, 192, .5), transparent 60%),
		radial-gradient(2px 2px at 28% 70%, rgba(255, 255, 255, .35), transparent 60%),
		radial-gradient(2.5px 2.5px at 46% 85%, rgba(125, 211, 192, .4), transparent 60%),
		radial-gradient(2px 2px at 64% 75%, rgba(255, 255, 255, .3), transparent 60%),
		radial-gradient(3px 3px at 82% 92%, rgba(125, 211, 192, .45), transparent 60%),
		radial-gradient(2px 2px at 93% 65%, rgba(255, 255, 255, .28), transparent 60%);
	background-repeat: no-repeat; background-size: 100% 100%;
	animation: calypso-bubbles 22s linear infinite;
	opacity: .7;
}
@keyframes calypso-caustics { from { transform: translateX(-2%); opacity: .8; } to { transform: translateX(2%); opacity: 1; } }
@keyframes calypso-bubbles { from { transform: translateY(12vh); opacity: 0; } 12% { opacity: .7; } 88% { opacity: .7; } to { transform: translateY(-105vh); opacity: 0; } }

/* Nav: JEDNA linia, sticky konsola */
.calypso-staff-nav {
	position: sticky; top: 12px; z-index: 30;
	flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px;
	padding: 8px 10px 8px 20px;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.calypso-staff-nav::-webkit-scrollbar { display: none; }
.calypso-staff-brand { letter-spacing: .3em; margin-right: 10px; }
.calypso-staff-brand::before {
	content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--mint); margin-right: 10px; vertical-align: 1px;
	box-shadow: 0 0 10px rgba(125, 211, 192, .9);
	animation: calypso-pulse 3s ease-in-out infinite;
}
@keyframes calypso-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.calypso-staff-tab { letter-spacing: .12em; padding: 9px 13px; white-space: nowrap; }

/* Pasek instrumentów */
.calypso-staff-gauges {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px; margin: 0 0 26px;
}
.calypso-staff-gauge {
	display: flex; align-items: baseline; gap: 10px; text-decoration: none;
	background: linear-gradient(160deg, rgba(32, 56, 72, .7), rgba(12, 25, 34, .85));
	border: 1px solid rgba(125, 211, 192, .13); border-radius: var(--r-md);
	padding: 12px 16px;
	transition: transform .3s var(--ease-ui), border-color .3s var(--ease-ui);
}
.calypso-staff-gauge:hover { transform: translateY(-2px); border-color: rgba(125, 211, 192, .45); }
.calypso-staff-gauge b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--white); line-height: 1; }
.calypso-staff-gauge span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.calypso-staff-gauge.is-ok b { color: var(--mint); }
.calypso-staff-gauge.is-warn b { color: var(--amber); }

/* Etykieta widoku */
.calypso-staff-viewtag {
	font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em;
	text-transform: uppercase; color: rgba(125, 211, 192, .65); margin: 0 0 2px;
}
.calypso-staff-head { margin: 0 0 16px; }

/* ── Wiersze osób: pigułki DO LEWEJ, chip stanu po prawej ── */
.calypso-staff-person, .calypso-staff-person.is-list {
	grid-template-areas: "ava who side" "ava badges badges";
	grid-template-columns: 46px minmax(0, 1fr) auto;
	row-gap: 8px; padding: 13px 16px;
	border: 1px solid rgba(255, 255, 255, .1); border-left-width: 1px;
	transition: transform .3s var(--ease-ui), border-color .3s var(--ease-ui), box-shadow .3s var(--ease-ui);
}
.calypso-staff-person:hover { border-color: rgba(125, 211, 192, .4); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .14), 0 18px 40px -18px rgba(125, 211, 192, .25); }
.calypso-staff-person.is-ok, .calypso-staff-person.is-warn, .calypso-staff-person.is-crit { border-left-color: rgba(255, 255, 255, .1); }
.calypso-staff-who { gap: 2px; }
.calypso-staff-name { font-size: 17.5px; }
.calypso-staff-cert { color: rgba(255, 255, 255, .7); font-size: 13px; }
.calypso-staff-meta { color: rgba(255, 255, 255, .55); font-size: 12px; }
.calypso-staff-badges { grid-area: badges; justify-content: flex-start; align-self: center; gap: 7px; }
.calypso-staff-badges em {
	font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .01em;
	text-transform: none; padding: 5px 11px;
}
.calypso-staff-side {
	grid-area: side; justify-self: end; align-self: start;
	font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
	padding: 7px 14px; border-radius: 999px; white-space: nowrap; cursor: default;
}
.calypso-staff-side.is-ok   { background: var(--mint); color: #04110d; box-shadow: 0 6px 18px -8px rgba(125, 211, 192, .8); }
.calypso-staff-side.is-warn { background: var(--amber); color: #241503; box-shadow: 0 6px 18px -8px rgba(255, 196, 106, .7); }
.calypso-staff-side.is-crit { background: var(--coral); color: #2a0d04; box-shadow: 0 6px 18px -8px rgba(255, 143, 112, .7); }
.calypso-staff-side.is-here { background: var(--mint); color: #04110d; }
.calypso-staff-side.is-soon { background: rgba(255, 255, 255, .08); color: var(--dim); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* Awatar niesie kolor stanu (zamiast zakazanego paska) */
.calypso-staff-ava { font-size: 14px; font-weight: 600; }
.is-ok .calypso-staff-ava   { background: rgba(125, 211, 192, .22); }
.is-warn .calypso-staff-ava { background: rgba(255, 196, 106, .2); }
.is-crit .calypso-staff-ava { background: rgba(255, 143, 112, .22); }

/* Login: snop światła (pierwsze wrażenie) */
.calypso-staff-login { position: relative; overflow: hidden; }
.calypso-staff-login::before {
	content: ''; position: absolute; inset: -40% -20% auto; height: 70%;
	background: radial-gradient(50% 90% at 50% 0%, rgba(125, 211, 192, .18), transparent 70%);
	animation: calypso-caustics 10s ease-in-out infinite alternate; pointer-events: none;
}

@media (max-width: 720px) {
	.calypso-staff-person, .calypso-staff-person.is-list {
		grid-template-areas: "ava who" "badges badges" "side side";
		grid-template-columns: 46px 1fr;
	}
	.calypso-staff-side { justify-self: start; }
	.calypso-staff-nav { position: static; }
}

@media (prefers-reduced-motion: reduce) {
	body:has(.calypso-staff)::before, body:has(.calypso-staff)::after,
	.calypso-staff-brand::before, .calypso-staff-login::before { animation: none !important; }
	.calypso-staff-gauge { transition: none; }
}

/* Fix: blokowy layout „constrained" motywu zwęża dziecko do content-size —
   aplikacja ma prawo do pełnej szerokości konsoli */
body:has(.calypso-staff) .calypso-staff {
	max-width: min(1180px, calc(100vw - 40px)) !important;
	width: 100%;
	margin-inline: auto !important;
	position: relative; z-index: 1;
}
.calypso-staff-nav { padding-right: 18px; }
.calypso-staff-gauges { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Fix właściwy: to entry-content (rodzic) jest zwężany przez constrained layout */
body:has(.calypso-staff) main.is-layout-constrained > .wp-block-post-content {
	max-width: min(1180px, calc(100vw - 40px)) !important;
	margin-inline: auto !important;
}

/* A11y: cele dotykowe ≥44px + wyraźny focus */
.calypso-staff-tab { padding: 12px 15px; }
.calypso-staff-btn, .calypso-staff-login input[type="submit"] { padding: 13px 26px; min-height: 44px; }
.calypso-staff-btn--small { min-height: 40px; }
.calypso-staff :is(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px;
}

/* Toolbar listy: szukajka na żywo + sort */
.calypso-staff-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; align-items: center; }
.calypso-staff-toolbar select {
	background: rgba(2, 5, 9, .6); color: var(--white); color-scheme: dark;
	border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
	padding: 11px 16px; font-family: var(--ui); font-size: 13.5px; min-height: 44px;
}
.calypso-staff-picker-filter {
	width: 100%; background: rgba(2, 5, 9, .6); color: var(--white);
	border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm);
	padding: 11px 14px; font-family: var(--ui); font-size: 14px; margin-bottom: 10px;
}
.calypso-staff-picker-filter:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(125, 211, 192, .18); }
.calypso-staff-count-note { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; }

/* Sort-select siedzi w formie szukajki, nie w .toolbar — ciemny styl tutaj */
.calypso-staff-search select {
	background: rgba(2, 5, 9, .6); color: var(--white); color-scheme: dark;
	border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
	padding: 11px 16px; font-family: var(--ui); font-size: 13.5px; min-height: 44px;
}
.calypso-staff-search select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(125, 211, 192, .18); }

/* Portret na karcie klienta */
.calypso-staff-idrow { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; }
.calypso-staff-idmeta { min-width: 0; }
.calypso-staff-idmeta .calypso-staff-head { margin-bottom: 6px; }
.calypso-staff-idmeta .calypso-staff-ampoule { margin: 0; }
.calypso-staff-portrait {
	width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none;
	box-shadow: 0 0 0 2px rgba(125, 211, 192, .5), 0 14px 34px -14px rgba(0, 0, 0, .8);
}
.calypso-staff-portrait.is-blank {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(160deg, rgba(36, 62, 78, .95), rgba(13, 27, 37, .95));
	font-family: var(--mono); font-size: 26px; color: var(--dim);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 34px -14px rgba(0, 0, 0, .8);
}
@media (max-width: 560px) { .calypso-staff-portrait { width: 72px; height: 72px; } }

/* Czytelniejsze instrumenty i daty (feedback Oli 07.07 08:25) */
.calypso-staff-gauge { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 18px; }
.calypso-staff-gauge b { font-size: 30px; }
.calypso-staff-gauge span {
	font-family: var(--ui); font-size: 13px; font-weight: 400;
	letter-spacing: .01em; text-transform: none; color: rgba(255, 255, 255, .78);
}
.calypso-staff-cert { color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.calypso-staff-side {
	font-family: var(--ui); font-size: 12.5px; font-weight: 600;
	letter-spacing: .02em; text-transform: none; padding: 8px 15px;
}
.calypso-staff-meta { color: rgba(255, 255, 255, .6); font-size: 12.5px; }

/* ══════════════════════════════════════════════════════════════════
   DIVER v3 — „friendly instrument" (07.07.2026)
   Strony nurka doganiają konsolę /staff/: jaśniejsze powierzchnie,
   ciemne studnie pól, statusy chipami, życie oceanu — i porządek
   z motywem (fixed header, stopka bez CSS na fallbacku index.html).
   ══════════════════════════════════════════════════════════════════ */

/* ── Scena: jasna domyślnie (czytelność), kaustyka + bąbelki tylko w .dark ── */
body:has(.calypso-reg-form), body:has(.calypso-med-form),
body:has(.calypso-doc-form), body:has(.calypso-portal) {
	position: relative;
	background:
		radial-gradient(120% 70% at 50% -12%, rgba(33, 129, 114, .05), transparent 62%),
		radial-gradient(90% 55% at 18% 0%, rgba(228, 231, 236, .45), transparent 72%),
		#f9fafb !important;
}
html.dark body:has(.calypso-reg-form), html.dark body:has(.calypso-med-form),
html.dark body:has(.calypso-doc-form), html.dark body:has(.calypso-portal) {
	background-image:
		radial-gradient(120% 70% at 50% -12%, rgba(125, 211, 192, .16), transparent 62%),
		radial-gradient(90% 55% at 18% 0%, rgba(28, 56, 74, .95), transparent 72%),
		linear-gradient(180deg, #04121b 0%, #020509 55%) !important;
	background-color: #020509 !important;
}
html.dark body:has(.calypso-reg-form)::before, html.dark body:has(.calypso-med-form)::before,
html.dark body:has(.calypso-doc-form)::before, html.dark body:has(.calypso-portal)::before {
	content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
	background:
		radial-gradient(60% 40% at 30% -5%, rgba(125, 211, 192, .12), transparent 70%),
		radial-gradient(50% 35% at 75% -8%, rgba(90, 170, 200, .1), transparent 70%);
	animation: calypso-caustics 14s ease-in-out infinite alternate;
}
html.dark body:has(.calypso-reg-form)::after, html.dark body:has(.calypso-med-form)::after,
html.dark body:has(.calypso-doc-form)::after, html.dark body:has(.calypso-portal)::after {
	content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
	background-image:
		radial-gradient(3px 3px at 12% 90%, rgba(125, 211, 192, .5), transparent 60%),
		radial-gradient(2px 2px at 28% 70%, rgba(255, 255, 255, .35), transparent 60%),
		radial-gradient(2.5px 2.5px at 46% 85%, rgba(125, 211, 192, .4), transparent 60%),
		radial-gradient(2px 2px at 64% 75%, rgba(255, 255, 255, .3), transparent 60%),
		radial-gradient(3px 3px at 82% 92%, rgba(125, 211, 192, .45), transparent 60%),
		radial-gradient(2px 2px at 93% 65%, rgba(255, 255, 255, .28), transparent 60%);
	background-repeat: no-repeat; background-size: 100% 100%;
	animation: calypso-bubbles-rise 22s linear infinite;
	opacity: .7;
}
@keyframes calypso-bubbles-rise {
	from { transform: translateY(12vh); opacity: 0; }
	12% { opacity: .7; } 88% { opacity: .7; }
	to { transform: translateY(-105vh); opacity: 0; }
}

/* ── Porządek z motywem: fixed header nie zjada tytułu ── */
body:has(.calypso-reg-form) main, body:has(.calypso-med-form) main,
body:has(.calypso-doc-form) main, body:has(.calypso-portal) main {
	padding-top: clamp(118px, 15vh, 158px);
	position: relative; z-index: 1;
}
/* Jedna kolumna rytmu: tytuł + przełącznik + panel (post-content ma 44rem,
   panel 760px — wyrównujemy kolumnę motywu do szerokości panelu) */
body:has(.calypso-reg-form) main.is-layout-constrained > .wp-block-post-title,
body:has(.calypso-med-form) main.is-layout-constrained > .wp-block-post-title,
body:has(.calypso-doc-form) main.is-layout-constrained > .wp-block-post-title,
body:has(.calypso-reg-form) main.is-layout-constrained > .wp-block-post-content,
body:has(.calypso-med-form) main.is-layout-constrained > .wp-block-post-content,
body:has(.calypso-doc-form) main.is-layout-constrained > .wp-block-post-content {
	max-width: min(760px, calc(100vw - 40px)) !important;
	margin-inline: auto !important;
}
body:has(.calypso-portal) main.is-layout-constrained > .wp-block-post-title,
body:has(.calypso-portal) main.is-layout-constrained > .wp-block-post-content {
	max-width: min(900px, calc(100vw - 40px)) !important;
	margin-inline: auto !important;
}
body:has(.calypso-reg-form) h1.wp-block-post-title, body:has(.calypso-med-form) h1.wp-block-post-title,
body:has(.calypso-doc-form) h1.wp-block-post-title, body:has(.calypso-portal) h1.wp-block-post-title {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
	margin: 0 0 20px !important;
	text-wrap: balance;
}
/* Martwy przełącznik EN/DE motywu myli — na stronach nurka działa nasz własny */
body:has(.calypso-reg-form) header .lang-en, body:has(.calypso-reg-form) header .lang-sep, body:has(.calypso-reg-form) header .lang-de,
body:has(.calypso-med-form) header .lang-en, body:has(.calypso-med-form) header .lang-sep, body:has(.calypso-med-form) header .lang-de,
body:has(.calypso-doc-form) header .lang-en, body:has(.calypso-doc-form) header .lang-sep, body:has(.calypso-doc-form) header .lang-de,
body:has(.calypso-portal) header .lang-en, body:has(.calypso-portal) header .lang-sep, body:has(.calypso-portal) header .lang-de { display: none !important; }

/* ── Przełącznik języka wtyczki: jasny/ciemny, dotykalny ── */
.calypso-lang { font-size: 10.5px; letter-spacing: .26em; margin-bottom: 16px; }
.calypso-lang a {
	display: inline-block; padding: 13px 8px; color: var(--faint);
}
html.dark .calypso-lang a { color: rgba(255, 255, 255, .62); }
.calypso-lang a:hover { color: var(--mint); }
.calypso-lang a.calypso-lang-on { color: var(--mint); border-bottom-color: var(--mint); }

/* ── Panel: powierzchnia jasna domyślnie, jak karta staff ── */
.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal {
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--glass-shadow);
	color: var(--dim);
	font-size: 15px;
}
html.dark .calypso-reg-form, html.dark .calypso-med-form, html.dark .calypso-doc-form, html.dark .calypso-portal {
	background: linear-gradient(160deg, rgba(36, 62, 78, .88), rgba(13, 27, 37, .94));
	border: 1px solid rgba(125, 211, 192, .15);
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .14), 0 40px 90px -30px rgba(0, 0, 0, .72);
	color: rgba(255, 255, 255, .85);
}

/* ── Sekcje-kroki: karta jaśniejsza, tytuł kroku serifem ── */
.calypso-reg-form fieldset, .calypso-med-form fieldset, .calypso-doc-form fieldset {
	background: var(--surface-2);
	border: 1px solid var(--border);
	box-shadow: none;
	padding: 22px 26px 28px;
}
html.dark .calypso-reg-form fieldset, html.dark .calypso-med-form fieldset, html.dark .calypso-doc-form fieldset {
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(255, 255, 255, .12);
}
.calypso-reg-form legend, .calypso-med-form legend, .calypso-doc-form legend {
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--white);
	padding: 0 8px;
}

/* Etykiety pól: czytelne zdania, nie mono-mikro */
.calypso-reg-form label, .calypso-med-form label, .calypso-doc-form label {
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .01em;
	text-transform: none;
	color: var(--dim);
	margin: 18px 0 8px;
}
html.dark .calypso-reg-form label, html.dark .calypso-med-form label, html.dark .calypso-doc-form label {
	color: rgba(255, 255, 255, .8);
}

/* Pola: jasne studnie na jasnej karcie (przepis staff — input-bg/input-border) */
.calypso-reg-form input[type=text], .calypso-reg-form input[type=email],
.calypso-reg-form input[type=tel], .calypso-reg-form input[type=date],
.calypso-reg-form input[type=number], .calypso-reg-form select,
.calypso-med-form input[type=text], .calypso-med-form input[type=email],
.calypso-doc-form input[type=text], .calypso-doc-form input[type=email],
.calypso-doc-form select {
	background-color: var(--input-bg); /* color-only: strzałki selectów z background-image zostają */
	border: 1px solid var(--input-border); /* 1.4.11: granica komponentu >=3:1 */
	padding: 14px 16px;
	min-height: 48px;
	font-size: 15px;
	font-weight: 400;
}
html.dark .calypso-reg-form input[type=text], html.dark .calypso-reg-form input[type=email],
html.dark .calypso-reg-form input[type=tel], html.dark .calypso-reg-form input[type=date],
html.dark .calypso-reg-form input[type=number], html.dark .calypso-reg-form select,
html.dark .calypso-med-form input[type=text], html.dark .calypso-med-form input[type=email],
html.dark .calypso-doc-form input[type=text], html.dark .calypso-doc-form input[type=email],
html.dark .calypso-doc-form select {
	background-color: rgba(2, 5, 9, .55);
	border: 1px solid rgba(255, 255, 255, .42);
}
.calypso-reg-form input:focus, .calypso-reg-form select:focus,
.calypso-med-form input:focus,
.calypso-doc-form input:focus, .calypso-doc-form select:focus {
	background-color: var(--input-bg);
	border-color: var(--mint);
	box-shadow: 0 0 0 3px var(--ring);
}
html.dark .calypso-reg-form input:focus, html.dark .calypso-reg-form select:focus,
html.dark .calypso-med-form input:focus,
html.dark .calypso-doc-form input:focus, html.dark .calypso-doc-form select:focus {
	background-color: rgba(2, 5, 9, .75);
}
.calypso-reg-form ::placeholder, .calypso-med-form ::placeholder, .calypso-doc-form ::placeholder {
	color: var(--faint);
}
html.dark .calypso-reg-form ::placeholder, html.dark .calypso-med-form ::placeholder, html.dark .calypso-doc-form ::placeholder {
	color: rgba(255, 255, 255, .58);
}
.calypso-reg-form input[type=checkbox], .calypso-reg-form input[type=radio],
.calypso-med-form input[type=checkbox], .calypso-med-form input[type=radio],
.calypso-doc-form input[type=checkbox] { width: 20px; height: 20px; min-width: 20px; }
.calypso-reg-form .calypso-consent label, .calypso-med-form .calypso-med-consent label {
	font-size: 13.5px; color: var(--dim);
}
html.dark .calypso-reg-form .calypso-consent label, html.dark .calypso-med-form .calypso-med-consent label {
	color: rgba(255, 255, 255, .8);
}
.calypso-doc-form input[type=file] { color: var(--dim); }
html.dark .calypso-doc-form input[type=file] { color: rgba(255, 255, 255, .8); }
.calypso-hint { color: var(--faint); font-size: 13px; margin: 10px 0 0; }
html.dark .calypso-hint { color: rgba(255, 255, 255, .62); }

/* Głębokościomierz: odczyt + nazwa kroku (HUD jak na Home) */
.calypso-gauge-label { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.calypso-gauge-sec {
	font-family: var(--ui); font-size: 13.5px; font-weight: 400;
	letter-spacing: .01em; color: var(--dim);
	text-shadow: none;
}
html.dark .calypso-gauge-sec { color: rgba(255, 255, 255, .78); }
.calypso-gauge-track { height: 5px; }
.calypso-gauge-fill { height: 5px; }
.calypso-gauge-dot { width: 16px; height: 16px; left: -8px; }
.calypso-gauge-ends { color: var(--faint); }
html.dark .calypso-gauge-ends { color: rgba(255, 255, 255, .55); }

/* Przyciski: rytm liter jak w staff */
.calypso-reg-form button[type=submit], .calypso-med-form button[type=submit],
.calypso-doc-form button[type=submit], .calypso-btn,
.calypso-descent-next, .calypso-descent-back {
	font-size: 11.5px; letter-spacing: .18em;
}
.calypso-descent-back { border-color: var(--border-strong); color: var(--dim); }
html.dark .calypso-descent-back { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }

/* Pytania medyczne: serif zostaje, pigułki oddychają */
.calypso-descent .calypso-med-q p { font-size: 20px; }
.calypso-descent .calypso-med-opts label {
	font-size: 12.5px; letter-spacing: .14em;
	border-color: var(--border-strong); color: var(--dim);
}
html.dark .calypso-descent .calypso-med-opts label {
	border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .82);
}
.calypso-descent .calypso-med-opts label:has(input:focus-visible) {
	outline: 2px solid var(--mint); outline-offset: 3px;
}
.calypso-med-q p { color: var(--white); font-size: 15px; }
.calypso-med-q .calypso-med-opts label { color: var(--dim); }
html.dark .calypso-med-q .calypso-med-opts label { color: rgba(255, 255, 255, .8); }

/* Komunikaty / ekrany sukcesu */
.calypso-reg-success, .calypso-med-success, .calypso-doc-success,
.calypso-med-doctor,
.calypso-reg-errors, .calypso-med-errors, .calypso-doc-errors {
	background: var(--surface);
	box-shadow: var(--glass-shadow);
	color: var(--dim);
}
html.dark .calypso-reg-success, html.dark .calypso-med-success, html.dark .calypso-doc-success,
html.dark .calypso-med-doctor,
html.dark .calypso-reg-errors, html.dark .calypso-med-errors, html.dark .calypso-doc-errors {
	background: linear-gradient(160deg, rgba(36, 62, 78, .88), rgba(13, 27, 37, .94));
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .14), 0 40px 90px -30px rgba(0, 0, 0, .72);
	color: rgba(255, 255, 255, .85);
}
.calypso-reg-success p, .calypso-med-success p, .calypso-doc-success p,
.calypso-med-doctor p { font-size: 15.5px; line-height: 1.65; }
.calypso-reg-success h3, .calypso-med-success h3, .calypso-doc-success h3 {
	font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

/* ── Portal: karty jak w konsoli, statusy kolorem + słowem ── */
.calypso-card {
	background: var(--surface);
	border: 1px solid var(--mint-line);
	box-shadow: var(--glass-shadow);
}
html.dark .calypso-card {
	background: linear-gradient(160deg, rgba(32, 56, 72, .82), rgba(12, 25, 34, .92));
	border: 1px solid rgba(125, 211, 192, .14);
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .12), 0 26px 52px -26px rgba(0, 0, 0, .8);
}
.calypso-card:hover {
	transform: translateY(-3px);
	border-color: rgba(125, 211, 192, .45);
	box-shadow: var(--glass-shadow), 0 0 40px -18px rgba(33, 129, 114, .18);
}
html.dark .calypso-card:hover {
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .12), 0 26px 52px -26px rgba(0, 0, 0, .8), 0 0 60px -18px rgba(125, 211, 192, .3);
}
.calypso-portal h4 { font-size: 11px; letter-spacing: .3em; }
.calypso-card p, .calypso-card li { font-size: 14.5px; color: var(--dim); }
html.dark .calypso-card p, html.dark .calypso-card li { color: rgba(255, 255, 255, .85); }
.calypso-card ul { margin: 0 0 10px; padding: 0; list-style: none; }
.calypso-card ul li { padding: 7px 0; border-bottom: 1px solid var(--border); }
html.dark .calypso-card ul li { border-bottom-color: rgba(255, 255, 255, .08); }
.calypso-card ul li:last-child { border-bottom: 0; }
.calypso-muted { color: var(--faint); }
html.dark .calypso-muted { color: rgba(255, 255, 255, .62); }

/* Status medyczny: świecąca kropka + zdanie (kolor + słowo, bez emoji) */
.calypso-medstat { display: flex; align-items: flex-start; gap: 10px; }
.calypso-medstat::before {
	content: ''; flex: none; width: 11px; height: 11px; border-radius: 50%;
	margin-top: 5px;
}
.calypso-medstat.is-ok::before   { background: var(--mint); box-shadow: 0 0 12px rgba(125, 211, 192, .8); }
.calypso-medstat.is-warn::before { background: #ffc46a; box-shadow: 0 0 12px rgba(255, 196, 106, .7); }
.calypso-medstat.is-ok   { color: var(--white); }
.calypso-medstat.is-warn { color: var(--white); }

.calypso-table th { color: var(--faint); letter-spacing: .28em; }
.calypso-table td { color: var(--dim); font-size: 14.5px; }
html.dark .calypso-table th { color: rgba(255, 255, 255, .62); }
html.dark .calypso-table td { color: rgba(255, 255, 255, .85); }

/* Brama portalu (wylogowany): snop światła jak login staff */
.calypso-portal { position: relative; overflow: hidden; }
.calypso-portal::before {
	content: ''; position: absolute; inset: -40% -20% auto; height: 70%;
	background: radial-gradient(50% 90% at 50% 0%, rgba(125, 211, 192, .14), transparent 70%);
	animation: calypso-caustics 12s ease-in-out infinite alternate; pointer-events: none;
}
.calypso-portal > * { position: relative; }

/* ── Stopka na stronach nurka: kontakt tak, poemat-dno nie ──
   (index.html wstawia stopkę Home, której CSS tu się nie ładuje) */
body:has(.calypso-reg-form) .floor, body:has(.calypso-med-form) .floor,
body:has(.calypso-doc-form) .floor, body:has(.calypso-portal) .floor { display: none; }
body:has(.calypso-reg-form) .contact, body:has(.calypso-med-form) .contact,
body:has(.calypso-doc-form) .contact, body:has(.calypso-portal) .contact {
	max-width: 1160px;
	margin: clamp(70px, 10vh, 110px) auto 0;
	padding: 44px 40px 36px;
	border-top: 1px solid #e4e7ec;
	font-family: 'Mulish', -apple-system, sans-serif; /* CZY1 28.10 */
	position: relative; z-index: 1;
}
html.dark body:has(.calypso-reg-form) .contact, html.dark body:has(.calypso-med-form) .contact,
html.dark body:has(.calypso-doc-form) .contact, html.dark body:has(.calypso-portal) .contact {
	border-top-color: rgba(255, 255, 255, .1);
}
body:has(.calypso-reg-form) .c-grid, body:has(.calypso-med-form) .c-grid,
body:has(.calypso-doc-form) .c-grid, body:has(.calypso-portal) .c-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 28px 34px;
}
body:has(.calypso-reg-form) .c-label, body:has(.calypso-med-form) .c-label,
body:has(.calypso-doc-form) .c-label, body:has(.calypso-portal) .c-label {
	display: block; margin-bottom: 10px;
	font-family: 'IBM Plex Mono', monospace; font-size: 10px;
	letter-spacing: .3em; text-transform: uppercase; color: #1a675c;
}
html.dark body:has(.calypso-reg-form) .c-label, html.dark body:has(.calypso-med-form) .c-label,
html.dark body:has(.calypso-doc-form) .c-label, html.dark body:has(.calypso-portal) .c-label {
	color: #7dd3c0;
}
body:has(.calypso-reg-form) .c-grid p, body:has(.calypso-med-form) .c-grid p,
body:has(.calypso-doc-form) .c-grid p, body:has(.calypso-portal) .c-grid p {
	margin: 0; font-size: 14px; font-weight: 300; line-height: 1.75;
	color: #344054;
}
html.dark body:has(.calypso-reg-form) .c-grid p, html.dark body:has(.calypso-med-form) .c-grid p,
html.dark body:has(.calypso-doc-form) .c-grid p, html.dark body:has(.calypso-portal) .c-grid p {
	color: rgba(255, 255, 255, .78);
}
body:has(.calypso-reg-form) .c-grid a, body:has(.calypso-med-form) .c-grid a,
body:has(.calypso-doc-form) .c-grid a, body:has(.calypso-portal) .c-grid a {
	color: #344054; text-decoration: none;
	border-bottom: 1px solid #d0d5dd;
	transition: color .3s, border-color .3s;
}
html.dark body:has(.calypso-reg-form) .c-grid a, html.dark body:has(.calypso-med-form) .c-grid a,
html.dark body:has(.calypso-doc-form) .c-grid a, html.dark body:has(.calypso-portal) .c-grid a {
	color: rgba(255, 255, 255, .78); border-bottom-color: rgba(255, 255, 255, .22);
}
body:has(.calypso-reg-form) .c-grid a:hover, body:has(.calypso-med-form) .c-grid a:hover,
body:has(.calypso-doc-form) .c-grid a:hover, body:has(.calypso-portal) .c-grid a:hover {
	color: #1a675c; border-bottom-color: #1a675c;
}
html.dark body:has(.calypso-reg-form) .c-grid a:hover, html.dark body:has(.calypso-med-form) .c-grid a:hover,
html.dark body:has(.calypso-doc-form) .c-grid a:hover, html.dark body:has(.calypso-portal) .c-grid a:hover {
	color: #7dd3c0; border-bottom-color: #7dd3c0;
}
body:has(.calypso-reg-form) .c-badges, body:has(.calypso-med-form) .c-badges,
body:has(.calypso-doc-form) .c-badges, body:has(.calypso-portal) .c-badges {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
	margin-top: 34px;
	font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
	letter-spacing: .14em; text-transform: uppercase; color: #475467;
}
html.dark body:has(.calypso-reg-form) .c-badges, html.dark body:has(.calypso-med-form) .c-badges,
html.dark body:has(.calypso-doc-form) .c-badges, html.dark body:has(.calypso-portal) .c-badges {
	color: rgba(255, 255, 255, .55);
}
body:has(.calypso-reg-form) .c-badges i, body:has(.calypso-med-form) .c-badges i,
body:has(.calypso-doc-form) .c-badges i, body:has(.calypso-portal) .c-badges i {
	width: 4px; height: 4px; border-radius: 50%; background: rgba(33, 129, 114, .55);
}
html.dark body:has(.calypso-reg-form) .c-badges i, html.dark body:has(.calypso-med-form) .c-badges i,
html.dark body:has(.calypso-doc-form) .c-badges i, html.dark body:has(.calypso-portal) .c-badges i {
	background: rgba(125, 211, 192, .45);
}
body:has(.calypso-reg-form) .legal, body:has(.calypso-med-form) .legal,
body:has(.calypso-doc-form) .legal, body:has(.calypso-portal) .legal {
	margin-top: 24px; padding-top: 18px;
	border-top: 1px solid #e4e7ec;
	font-size: 12.5px; font-weight: 300; color: #667085;
}
html.dark body:has(.calypso-reg-form) .legal, html.dark body:has(.calypso-med-form) .legal,
html.dark body:has(.calypso-doc-form) .legal, html.dark body:has(.calypso-portal) .legal {
	border-top-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .48);
}

/* ── A11y: fokus widoczny wszędzie, cele dotykowe ── */
.calypso-reg-form :is(a, button, input, select, textarea, summary):focus-visible,
.calypso-med-form :is(a, button, input, select, textarea, summary):focus-visible,
.calypso-doc-form :is(a, button, input, select, textarea, summary):focus-visible,
.calypso-portal :is(a, button, summary):focus-visible,
.calypso-lang a:focus-visible {
	outline: 2px solid #1a675c; outline-offset: 2px; border-radius: 6px;
}
html.dark .calypso-reg-form :is(a, button, input, select, textarea, summary):focus-visible,
html.dark .calypso-med-form :is(a, button, input, select, textarea, summary):focus-visible,
html.dark .calypso-doc-form :is(a, button, input, select, textarea, summary):focus-visible,
html.dark .calypso-portal :is(a, button, summary):focus-visible,
html.dark .calypso-lang a:focus-visible {
	outline-color: #7dd3c0;
}

/* Panel nad warstwami ambientu */
.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal,
.calypso-reg-success, .calypso-med-success, .calypso-doc-success,
.calypso-med-doctor, .calypso-reg-errors, .calypso-med-errors, .calypso-doc-errors,
.calypso-lang { position: relative; z-index: 1; }

/* ── Mobile ── */
@media (max-width: 600px) {
	body:has(.calypso-reg-form) main, body:has(.calypso-med-form) main,
	body:has(.calypso-doc-form) main, body:has(.calypso-portal) main {
		padding-top: 104px;
	}
	.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal {
		padding: 26px 18px;
	}
	.calypso-reg-form fieldset, .calypso-med-form fieldset, .calypso-doc-form fieldset {
		padding: 18px 16px 22px;
	}
	.calypso-gauge-label { font-size: 22px; }
	.calypso-descent .calypso-med-opts { flex-direction: column; }
	.calypso-descent .calypso-med-opts label { max-width: none; width: 100%; }
	body:has(.calypso-reg-form) .contact, body:has(.calypso-med-form) .contact,
	body:has(.calypso-doc-form) .contact, body:has(.calypso-portal) .contact {
		padding: 36px 22px 30px;
	}
}

/* ── Reduced motion: nowe warstwy też stają ── */
@media (prefers-reduced-motion: reduce) {
	body:has(.calypso-reg-form)::before, body:has(.calypso-med-form)::before,
	body:has(.calypso-doc-form)::before, body:has(.calypso-portal)::before,
	body:has(.calypso-reg-form)::after, body:has(.calypso-med-form)::after,
	body:has(.calypso-doc-form)::after, body:has(.calypso-portal)::after,
	.calypso-portal::before { animation: none !important; }
}

/* ── Karta klienta: pasek vitals (2026-07-08) ─────────────────────── */
.calypso-staff-vitals { list-style: none; margin: 14px 0 22px; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.calypso-staff-vitals li { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calypso-staff-vitals .calypso-staff-vitlabel { font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; opacity: .55; }
.calypso-staff-vitals strong { font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.calypso-staff-vitals li.is-ok   { border-color: rgba(125,211,192,.35); }
.calypso-staff-vitals li.is-ok strong   { color: var(--mint); }
.calypso-staff-vitals li.is-warn { border-color: rgba(255,196,106,.35); }
.calypso-staff-vitals li.is-warn strong { color: var(--amber); }
.calypso-staff-vitals li.is-crit { border-color: rgba(255,143,112,.4); }
.calypso-staff-vitals li.is-crit strong { color: var(--coral); }

/* ── Karta klienta: dokumenty z miniaturami ───────────────────────── */
.calypso-staff-docgrid { list-style: none; margin: 0 0 12px; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.calypso-staff-docitem { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 8px; min-width: 0; }
.calypso-staff-docthumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.calypso-staff-docthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.calypso-staff-docext { font-size: 10px; letter-spacing: .12em; font-weight: 600; opacity: .7; }
.calypso-staff-docmeta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.calypso-staff-docmeta a { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.calypso-staff-docmeta span { font-size: 11px; opacity: .55; }
@media (max-width: 560px) { .calypso-staff-docgrid { grid-template-columns: 1fr; } }

/* ── Portal nurka: awatar z inicjalami (2026-07-08) ───────────────── */
.calypso-portal-hello { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.calypso-portal-hello h3 { margin: 0; }
.calypso-portal-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
  letter-spacing: .06em; background: rgba(33,129,114,.1); border: 1px solid rgba(33,129,114,.35); color: #1a675c; }
html.dark .calypso-portal-avatar { background: rgba(125,211,192,.14); border-color: rgba(125,211,192,.4); color: #7dd3c0; }

/* trips v1.13 */
/* ── Panel staff: widok Trips (formularz wyjazdu, lista, karty na Today) ── */
.calypso-staff-seg { display: inline-flex; margin-top: 6px; border-radius: 999px; padding: 3px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.calypso-staff-seg label { position: relative; margin: 0; cursor: pointer; }
.calypso-staff-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calypso-staff-seg span { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13px;
  color: var(--dim); text-transform: none; letter-spacing: 0; transition: background .15s, color .15s; }
.calypso-staff-seg input:checked + span { background: rgba(125,211,192,.2); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(125,211,192,.45); }
.calypso-staff-seg input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.calypso-staff-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.calypso-staff-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--dim);
  text-transform: none; letter-spacing: 0; margin: 0; cursor: pointer; }
.calypso-staff-checks input { accent-color: #7dd3c0; margin: 0; }
.calypso-staff-form-row label.is-wide { flex: 1 1 260px; }
.calypso-staff-form-row .calypso-staff-none { display: block; margin-top: 8px; font-size: 13px; color: var(--faint); text-transform: none; letter-spacing: 0; }
.calypso-staff-conditions { margin: -6px 0 14px; }
.calypso-staff-conditions summary { font-size: 12px; }
.calypso-staff-conditions .calypso-staff-form-row { margin-bottom: 4px; }
.calypso-staff-label--divers { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calypso-staff-seats { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--mint); }
.calypso-staff-seats.is-over { color: var(--coral); }
.calypso-staff-picker--trip { display: flex; flex-direction: column; gap: 4px; }
.calypso-staff-diverrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 10px;
  border-radius: 10px; border: 1px solid transparent; }
.calypso-staff-diverrow:has(input[name="client_ids[]"]:checked) { background: rgba(125,211,192,.07); border-color: rgba(125,211,192,.28); }
.calypso-staff-diverrow .dr-who { flex: 1 1 200px; margin: 0; display: flex; align-items: center; gap: 4px; }
.calypso-staff-diverrow .dr-here { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mint); background: rgba(125,211,192,.12); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.calypso-staff-diverrow .dr-opts { display: inline-flex; align-items: center; gap: 6px; opacity: .55; transition: opacity .15s; }
.calypso-staff-diverrow:has(input[name="client_ids[]"]:checked) .dr-opts { opacity: 1; }
.calypso-staff-diverrow .dr-opts select { font-size: 12.5px; padding: 4px 8px; border-radius: 8px; color: var(--white);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.calypso-staff-diverrow .dr-rent { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dim); margin: 0; }
.calypso-staff-diverrow .dr-rent input { accent-color: #7dd3c0; margin: 0; }
.calypso-staff-diverrow[hidden] { display: none; }
.calypso-staff-cancelform h5 { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.calypso-staff-chip { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; color: var(--dim); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.calypso-staff-chip.is-done { color: #9fe8d8; background: rgba(125,211,192,.14); box-shadow: inset 0 0 0 1px rgba(125,211,192,.3); }
.calypso-staff-chip.is-cancel { color: var(--amber); background: rgba(255,196,106,.1); box-shadow: inset 0 0 0 1px rgba(255,196,106,.3); }
.calypso-staff-chip.is-mode { color: var(--mint); }
.calypso-staff-trips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.calypso-staff-trip { display: grid; grid-template-columns: 58px 1fr auto auto 34px; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-left: 3px solid rgba(125,211,192,.5); }
.calypso-staff-trip.is-cancelled { border-left-color: rgba(255,196,106,.6); opacity: .8; }
.calypso-staff-trip .tr-date { display: flex; flex-direction: column; line-height: 1.15; }
.calypso-staff-trip .tr-date b { color: var(--white); font-size: 14px; font-weight: 600; }
.calypso-staff-trip .tr-date small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.calypso-staff-trip .tr-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.calypso-staff-trip .tr-body strong { color: var(--white); font-weight: 500; font-size: 14.5px; }
.calypso-staff-trip .tr-meta { color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.calypso-staff-trip .tr-pax { font-family: var(--serif); font-size: 22px; color: var(--white); line-height: 1; }
.calypso-staff-trip .tr-pax small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.calypso-staff-trip .calypso-staff-x { grid-area: auto; }
.calypso-staff-tripcard { padding: 14px 16px 6px !important; border-radius: 14px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(125,211,192,.22); border-left: 3px solid var(--mint); }
.calypso-staff-tripcard.is-cancelled { border-color: rgba(255,196,106,.3); border-left-color: var(--amber); }
.calypso-staff-tripcard h4 { margin-bottom: 6px; }
.calypso-staff-tripmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; color: var(--dim); font-size: 13px; }
.calypso-staff-tripmeta .tm-sep { color: var(--faint); }
.calypso-staff-tripcard .calypso-staff-none { margin: 0 0 10px; color: var(--faint); font-size: 13px; }
@media (max-width: 640px) {
  .calypso-staff-trip { grid-template-columns: 52px 1fr 34px; }
  .calypso-staff-trip .tr-pax, .calypso-staff-trip .calypso-staff-chip { grid-column: 2; justify-self: start; }
  .calypso-staff-trip .calypso-staff-x { grid-column: 3; grid-row: 1; }
  .calypso-staff-diverrow .dr-opts { width: 100%; padding-left: 24px; }
}

/* ── Faza 4A: zwolnienie z odpowiedzialności, zgoda opiekuna, powracający gość ── */
.calypso-reg-form .calypso-waiver-text { max-height: 260px; overflow: auto; padding: 14px 16px; margin: 0 0 14px; border: 1px solid var(--mint-line); border-radius: 12px; background: var(--surface-2); font-size: 15px; line-height: 1.55; }
html.dark .calypso-reg-form .calypso-waiver-text { background: rgba(255,255,255,.04); }
.calypso-reg-form .calypso-waiver-text p { margin: 0 0 10px; }
.calypso-reg-form .calypso-guardian { margin-top: 12px; }
.calypso-reg-form .calypso-guardian summary { cursor: pointer; font-weight: 600; color: var(--mint, #7dd3c0); min-height: 44px; display: flex; align-items: center; }
.calypso-reg-returning h3 { margin-bottom: 6px; }

/* ── Faza 7: chipy jednym stuknięciem, błąd przy polu, podsumowanie, duże TAK / NIE ─────────────── */
.calypso-label, .calypso-sublabel { display: block; margin: 14px 0 6px; font-weight: 600; }
.calypso-sublabel { margin-top: 8px; font-weight: 500; font-size: .95em; opacity: .85; }
/* Chipy = jak w panelu staff (.calypso-staff-chips): pigułka 44px, zaznaczona = tło akcentu + biały tekst */
.calypso-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.calypso-chips label { position: relative; margin: 0; cursor: pointer; font-weight: 500; }
.calypso-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.calypso-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: inherit; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
html.dark .calypso-chips span { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.calypso-chips label:hover span { background: var(--hover); }
.calypso-chips input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--accent-contrast); font-weight: 600; }
.calypso-chips input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.calypso-chips[aria-invalid="true"] span { border-color: var(--error-text); }
.calypso-field-error { margin: 6px 0 10px; color: var(--error-fg); font-size: .95em; }
.calypso-reg-form input[aria-invalid="true"], .calypso-reg-form select[aria-invalid="true"] { border-color: var(--error-text); }
.calypso-summary { margin: 0 0 18px; display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 4px 12px; font-size: .95em; }
.calypso-summary dt { opacity: .75; }
.calypso-summary dd { margin: 0; font-weight: 500; }
.calypso-reg-errors li a { color: inherit; text-decoration: underline; }
[data-show-when][hidden] { display: none !important; }
.calypso-med-opts { display: flex; gap: 10px; margin: 6px 0 14px; }
.calypso-med-opts label { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0; border: 1px solid var(--border-strong); border-radius: 12px; font-weight: 600; font-size: 1.05em; cursor: pointer; position: relative; }
html.dark .calypso-med-opts label { border-color: rgba(255, 255, 255, .28); }
.calypso-med-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calypso-med-opts label:has(input:checked) { background: var(--mint); border-color: var(--mint); color: var(--accent-contrast); }
.calypso-med-opts label:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
@media (max-width: 480px) { .calypso-summary { grid-template-columns: 1fr; gap: 0 } .calypso-summary dd { margin-bottom: 8px; } }

/* ── Przełącznik jasno/ciemno (wstrzykiwany JS-em, class-assets.php::front) ──
   Zwykły przepływ, wyrównany do prawej marginesem — zero ryzyka nachodzenia
   na treść na telefonie (bez position:absolute). */
.calypso-theme-toggle {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	width: -moz-fit-content; width: fit-content;
	margin: 0 0 18px auto;
	min-height: 44px; padding: 0 16px;
	border: 1px solid var(--border-strong); border-radius: 999px;
	background: var(--surface); color: var(--dim);
	font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .04em;
	text-transform: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.calypso-theme-toggle:hover { background: var(--hover); color: var(--white); border-color: var(--mint); }
.calypso-theme-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
html.dark .calypso-theme-toggle { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); }
html.dark .calypso-theme-toggle:hover { background: rgba(255, 255, 255, .12); }
@media (prefers-reduced-motion: reduce) { .calypso-theme-toggle { transition: none; } }

/* Jak w panelu: tekst 16 px, etykiety 14 px, pola 16 px (iOS bez zoomu). */
.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal { font-size: 16px; }
.calypso-reg-form input[type=text], .calypso-reg-form input[type=email], .calypso-reg-form input[type=tel], .calypso-reg-form input[type=date], .calypso-reg-form input[type=time], .calypso-reg-form input[type=number], .calypso-reg-form select, .calypso-reg-form textarea, .calypso-med-form input, .calypso-med-form select, .calypso-doc-form input, .calypso-doc-form select { font-size: 16px; }
.calypso-reg-form label, .calypso-med-form label:not(.calypso-med-opts label), .calypso-doc-form label, .calypso-label, .calypso-sublabel { font-size: 14px; }
.calypso-med-form input[type=email], .calypso-med-form input[type=text], .calypso-doc-form input[type=email], .calypso-doc-form input[type=text], .calypso-doc-form input[type=file], .calypso-doc-form select { font-size: 16px; }

/* ── Faza podpisów cyfrowych (16.09.2026): pole podpisu canvas (waiver + zgoda medyczna) ──
   Zbudowane w JS (assets/js/front.js: buildSigPad) wewnątrz <div class="calypso-sigpad" data-sigpad="…">.
   Kreska = currentColor (var(--white), patrz tokeny na górze pliku) — czytelna jasno i w html.dark. */
.calypso-med-form .calypso-required::after { content: " *"; color: var(--mint); }
.calypso-sigpad { margin: 10px 0 4px; }
.calypso-sigpad-canvas {
	display: block;
	width: 100%;
	height: 160px;
	border: 1px solid var(--input-border);
	border-radius: var(--r-sm);
	background: var(--input-bg);
	color: var(--white);
	touch-action: none;
	cursor: crosshair;
}
.calypso-sigpad[aria-invalid="true"] .calypso-sigpad-canvas { border-color: var(--error-text); }
.calypso-sigpad-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.calypso-sigpad-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	font-family: var(--ui);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dim);
	background: transparent;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.calypso-sigpad-clear:hover { background: var(--hover); color: var(--white); }
.calypso-sigpad-clear:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
html.dark .calypso-sigpad-clear { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .28); }
html.dark .calypso-sigpad-clear:hover { background: rgba(255, 255, 255, .12); }
.calypso-sigpad + .calypso-field-error { margin-top: 6px; }

/* ══════════════════════════════════════════════════════════════════
   PARYTET Z PANELEM (16.09.2026, prośba Oli: „formularze mają wyglądać
   jak nasz panel"). Formularze gościa i portal używają WSPÓLNYCH tokenów
   (assets/css/tokens.css): te same czcionki (Work Sans / IBM Plex Mono),
   kolory, promienie (16 / 12 / 8 px), cienie, pola 44 px i przyciski
   co /staff/. Sekcja stoi celowo na końcu i nadpisuje starsze warstwy
   (Deep Ocean, DIVER v3). Ciemny tryb = te same tokeny pod html.dark,
   bez „oceanu" i poświat. Treść, kroki, logika medycznego, podpis — bez zmian.
   ══════════════════════════════════════════════════════════════════ */

/* Strona: płaskie tło panelu, tytuł strony jak nagłówek widoku w panelu */
body:has(.calypso-reg-form), body:has(.calypso-med-form), body:has(.calypso-doc-form), body:has(.calypso-portal),
html.dark body:has(.calypso-reg-form), html.dark body:has(.calypso-med-form), html.dark body:has(.calypso-doc-form), html.dark body:has(.calypso-portal) {
	background: var(--bg) !important;
	color: var(--text) !important;
	font-family: var(--font-sans);
}
body:has(.calypso-reg-form) h1.entry-title, body:has(.calypso-med-form) h1.entry-title,
body:has(.calypso-doc-form) h1.entry-title, body:has(.calypso-portal) h1.entry-title,
html.dark body:has(.calypso-reg-form) h1.entry-title, html.dark body:has(.calypso-med-form) h1.entry-title,
html.dark body:has(.calypso-doc-form) h1.entry-title, html.dark body:has(.calypso-portal) h1.entry-title {
	font-family: var(--font-sans) !important;
	font-weight: 600 !important;
	font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em !important;
	color: var(--text-strong) !important;
}

/* Moduł = karta panelu */
html .calypso-reg-form, html .calypso-med-form, html .calypso-doc-form, html .calypso-portal,
html.dark .calypso-reg-form, html.dark .calypso-med-form, html.dark .calypso-doc-form, html.dark .calypso-portal {
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-2xl);
	box-shadow: var(--shadow-sm);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--text);
}
@media (min-width: 640px) {
	html .calypso-reg-form, html .calypso-med-form, html .calypso-doc-form, html .calypso-portal,
	html.dark .calypso-reg-form, html.dark .calypso-med-form, html.dark .calypso-doc-form, html.dark .calypso-portal { padding: 24px; }
}
html .calypso-reg-form p, html .calypso-med-form p, html .calypso-doc-form p, html .calypso-portal p { color: var(--text); }

/* Kroki (fieldset) = wewnętrzna karta, tytuł kroku jak nagłówek karty */
html .calypso-reg-form fieldset, html .calypso-med-form fieldset, html .calypso-doc-form fieldset,
html.dark .calypso-reg-form fieldset, html.dark .calypso-med-form fieldset, html.dark .calypso-doc-form fieldset {
	margin: 0 0 16px; padding: 16px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
	box-shadow: none;
}
html .calypso-reg-form fieldset:focus-within, html .calypso-med-form fieldset:focus-within, html .calypso-doc-form fieldset:focus-within,
html.dark .calypso-reg-form fieldset:focus-within, html.dark .calypso-med-form fieldset:focus-within, html.dark .calypso-doc-form fieldset:focus-within { border-color: var(--accent-line); }
html .calypso-reg-form legend, html .calypso-med-form legend, html .calypso-doc-form legend,
html.dark .calypso-reg-form legend, html.dark .calypso-med-form legend, html.dark .calypso-doc-form legend {
	font-family: var(--font-sans); font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none;
	color: var(--text-strong); padding: 0 6px;
}

/* Etykiety i podpowiedzi jak w panelu */
html .calypso-reg-form label, html .calypso-med-form label, html .calypso-doc-form label, html .calypso-portal label,
html.dark .calypso-reg-form label, html.dark .calypso-med-form label, html.dark .calypso-doc-form label, html.dark .calypso-portal label {
	display: block; margin: 14px 0 6px;
	font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none;
	color: var(--text-2);
}
html .calypso-reg-form .calypso-required::after, html .calypso-med-form .calypso-required::after { color: var(--accent-text); }
html .calypso-hint, html .calypso-sublabel, html .calypso-muted, html .calypso-consent-hint, html .calypso-descent-cheer, html .calypso-med-counter,
html.dark .calypso-hint, html.dark .calypso-sublabel, html.dark .calypso-muted, html.dark .calypso-consent-hint, html.dark .calypso-descent-cheer, html.dark .calypso-med-counter {
	font-family: var(--font-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted);
}

/* Pola = pola panelu (44 px, 16 px, promień 8, pierścień fokusu) */
html .calypso-reg-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html .calypso-med-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html .calypso-doc-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html .calypso-portal input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html .calypso-reg-form select, html .calypso-med-form select, html .calypso-doc-form select, html .calypso-portal select,
html .calypso-reg-form textarea, html .calypso-med-form textarea, html .calypso-doc-form textarea, html .calypso-portal textarea,
html.dark .calypso-reg-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html.dark .calypso-med-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html.dark .calypso-doc-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html.dark .calypso-portal input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]),
html.dark .calypso-reg-form select, html.dark .calypso-med-form select, html.dark .calypso-doc-form select, html.dark .calypso-portal select,
html.dark .calypso-reg-form textarea, html.dark .calypso-med-form textarea, html.dark .calypso-doc-form textarea, html.dark .calypso-portal textarea {
	appearance: none; -webkit-appearance: none;
	width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px;
	border: 1px solid var(--input-border); border-radius: var(--r-lg);
	background: var(--input-bg); color: var(--text-strong);
	font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 1.4;
	outline: none; box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
html .calypso-reg-form input:focus-visible, html .calypso-med-form input:focus-visible, html .calypso-doc-form input:focus-visible, html .calypso-portal input:focus-visible,
html .calypso-reg-form select:focus-visible, html .calypso-med-form select:focus-visible, html .calypso-doc-form select:focus-visible,
html .calypso-reg-form textarea:focus-visible, html .calypso-med-form textarea:focus-visible, html .calypso-doc-form textarea:focus-visible,
html.dark .calypso-reg-form input:focus-visible, html.dark .calypso-med-form input:focus-visible, html.dark .calypso-doc-form input:focus-visible, html.dark .calypso-portal input:focus-visible,
html.dark .calypso-reg-form select:focus-visible, html.dark .calypso-med-form select:focus-visible, html.dark .calypso-doc-form select:focus-visible,
html.dark .calypso-reg-form textarea:focus-visible, html.dark .calypso-med-form textarea:focus-visible, html.dark .calypso-doc-form textarea:focus-visible {
	border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--ring); outline: none;
}
html .calypso-reg-form input[aria-invalid="true"], html .calypso-med-form input[aria-invalid="true"], html .calypso-doc-form input[aria-invalid="true"],
html .calypso-reg-form select[aria-invalid="true"], html .calypso-reg-form .is-invalid { border-color: var(--error-400); }
html .calypso-reg-form select, html .calypso-med-form select, html .calypso-doc-form select, html .calypso-portal select,
html.dark .calypso-reg-form select, html.dark .calypso-med-form select, html.dark .calypso-doc-form select, html.dark .calypso-portal select {
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center;
}
html .calypso-reg-form textarea, html .calypso-med-form textarea, html .calypso-doc-form textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
html .calypso-reg-form input[type=file], html .calypso-med-form input[type=file], html .calypso-doc-form input[type=file],
html.dark .calypso-reg-form input[type=file], html.dark .calypso-med-form input[type=file], html.dark .calypso-doc-form input[type=file] {
	font-family: var(--font-sans); font-size: 14px; color: var(--text-2); margin-top: 4px;
}
html .calypso-reg-form input[type=checkbox], html .calypso-reg-form input[type=radio],
html .calypso-med-form input[type=checkbox], html .calypso-med-form input[type=radio],
html .calypso-doc-form input[type=checkbox], html .calypso-doc-form input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-500); flex: 0 0 auto; }
html .calypso-reg-form ::placeholder, html .calypso-med-form ::placeholder, html .calypso-doc-form ::placeholder { color: var(--muted); }
html.dark .calypso-reg-form input, html.dark .calypso-med-form input, html.dark .calypso-doc-form input, html.dark .calypso-portal input,
html.dark .calypso-reg-form select, html.dark .calypso-reg-form textarea { color-scheme: dark; }

/* Przyciski = przyciski panelu (główny / drugorzędny) */
html .calypso-reg-form button[type=submit], html .calypso-med-form button[type=submit], html .calypso-doc-form button[type=submit],
html .calypso-btn, html .calypso-descent-next,
html.dark .calypso-reg-form button[type=submit], html.dark .calypso-med-form button[type=submit], html.dark .calypso-doc-form button[type=submit],
html.dark .calypso-btn, html.dark .calypso-descent-next {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 18px;
	border: 1px solid transparent; border-radius: var(--r-lg);
	background: var(--accent); color: var(--accent-contrast) !important;
	font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.2;
	box-shadow: var(--shadow-xs); text-decoration: none; cursor: pointer; transform: none;
	transition: background .15s, color .15s, border-color .15s;
}
html .calypso-reg-form button[type=submit]:hover, html .calypso-med-form button[type=submit]:hover, html .calypso-doc-form button[type=submit]:hover,
html .calypso-btn:hover, html .calypso-descent-next:hover,
html.dark .calypso-reg-form button[type=submit]:hover, html.dark .calypso-med-form button[type=submit]:hover, html.dark .calypso-doc-form button[type=submit]:hover,
html.dark .calypso-btn:hover, html.dark .calypso-descent-next:hover {
	background: var(--accent-hover); color: var(--accent-contrast) !important; transform: none; box-shadow: var(--shadow-xs);
}
html .calypso-descent-back, html .calypso-sigpad-clear, html .calypso-reg-form .calypso-more > summary, html .calypso-med-form .calypso-more > summary,
html.dark .calypso-descent-back, html.dark .calypso-sigpad-clear, html.dark .calypso-reg-form .calypso-more > summary, html.dark .calypso-med-form .calypso-more > summary {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 16px;
	border: 1px solid var(--border-strong); border-radius: var(--r-lg);
	background: var(--surface-solid); color: var(--text-2) !important;
	font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.2;
	box-shadow: none; text-decoration: none; cursor: pointer; transform: none;
}
html.dark .calypso-descent-back, html.dark .calypso-sigpad-clear, html.dark .calypso-reg-form .calypso-more > summary, html.dark .calypso-med-form .calypso-more > summary { background: transparent; }
html .calypso-descent-back:hover, html .calypso-sigpad-clear:hover, html.dark .calypso-descent-back:hover, html.dark .calypso-sigpad-clear:hover { background: var(--hover); color: var(--text-strong) !important; transform: none; }
html .calypso-descent-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
html .calypso-reg-form button:focus-visible, html .calypso-med-form button:focus-visible, html .calypso-doc-form button:focus-visible,
html .calypso-btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* Chipy (jedno stuknięcie) i duże TAK / NIE = chipy panelu */
html .calypso-chips, html.dark .calypso-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; padding: 0; border: 0; background: transparent; box-shadow: none; }
html .calypso-reg-form .calypso-chips legend, html .calypso-med-form .calypso-chips legend,
html.dark .calypso-reg-form .calypso-chips legend, html.dark .calypso-med-form .calypso-chips legend {
	font-size: 15px; font-weight: 500; color: var(--text-2); padding: 0; margin: 14px 0 6px; width: 100%;
}
html .calypso-chips label, html .calypso-med-opts label, html .calypso-descent .calypso-med-opts label,
html.dark .calypso-chips label, html.dark .calypso-med-opts label, html.dark .calypso-descent .calypso-med-opts label {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	margin: 0; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--border-strong); border-radius: var(--r-lg);
	background: var(--surface-solid); color: var(--text-2);
	font-family: var(--font-sans); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.2;
	cursor: pointer; box-shadow: none; transition: background .15s, color .15s, border-color .15s;
}
html.dark .calypso-chips label, html.dark .calypso-med-opts label, html.dark .calypso-descent .calypso-med-opts label { background: transparent; }
html .calypso-chips label:hover, html .calypso-med-opts label:hover, html .calypso-descent .calypso-med-opts label:hover,
html.dark .calypso-chips label:hover, html.dark .calypso-med-opts label:hover, html.dark .calypso-descent .calypso-med-opts label:hover { background: var(--hover); color: var(--text-strong); border-color: var(--border-strong); }
html .calypso-chips label:has(input:checked), html .calypso-med-opts label:has(input:checked), html .calypso-descent .calypso-med-opts label:has(input:checked),
html.dark .calypso-chips label:has(input:checked), html.dark .calypso-med-opts label:has(input:checked), html.dark .calypso-descent .calypso-med-opts label:has(input:checked) {
	background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
}
html .calypso-chips label:has(input:focus-visible), html .calypso-med-opts label:has(input:focus-visible), html .calypso-descent .calypso-med-opts label:has(input:focus-visible) {
	outline: 2px solid var(--brand-500); outline-offset: 2px;
}
html .calypso-med-q, html.dark .calypso-med-q { border-color: var(--border); }
html .calypso-med-q p, html .calypso-descent .calypso-med-q p, html.dark .calypso-med-q p, html.dark .calypso-descent .calypso-med-q p {
	font-family: var(--font-sans); font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--text-strong);
}

/* Zgody: zwykłe zdania z kratką */
html .calypso-reg-form .calypso-consent label, html .calypso-med-form .calypso-med-consent label, html .calypso-reg-form .calypso-consent-marketing label,
html.dark .calypso-reg-form .calypso-consent label, html.dark .calypso-med-form .calypso-med-consent label, html.dark .calypso-reg-form .calypso-consent-marketing label {
	display: flex; align-items: flex-start; gap: 10px; margin: 8px 0;
	font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--text);
}

/* Komunikaty: błąd / sukces / lekarz = paski panelu */
html .calypso-reg-errors, html .calypso-med-errors, html .calypso-doc-errors,
html.dark .calypso-reg-errors, html.dark .calypso-med-errors, html.dark .calypso-doc-errors {
	margin: 0 0 16px; padding: 12px 16px;
	background: var(--crit-bg); border: 1px solid var(--crit-line); border-radius: var(--r-xl); box-shadow: none;
	color: var(--crit-fg); font-family: var(--font-sans); font-size: 15px; font-weight: 500;
}
html .calypso-reg-errors a, html .calypso-med-errors a, html .calypso-doc-errors a { color: inherit; }
html .calypso-field-error, html.dark .calypso-field-error { margin: 6px 0 0; font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--error-600); }
html.dark .calypso-field-error { color: var(--error-400); }
html .calypso-reg-success, html .calypso-med-success, html .calypso-doc-success,
html.dark .calypso-reg-success, html.dark .calypso-med-success, html.dark .calypso-doc-success {
	max-width: 760px; margin: 0 auto; padding: 24px;
	background: var(--surface); border: 1px solid var(--ok-line); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm);
	font-family: var(--font-sans); font-size: 16px; font-weight: 400; color: var(--text);
}
html .calypso-reg-success::before, html .calypso-med-success::before, html .calypso-doc-success::before { display: none; }
html .calypso-reg-success h3, html .calypso-med-success h3, html .calypso-doc-success h3, html .calypso-med-doctor h3,
html.dark .calypso-reg-success h3, html.dark .calypso-med-success h3, html.dark .calypso-doc-success h3, html.dark .calypso-med-doctor h3 {
	font-family: var(--font-sans); font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--text-strong); margin: 0 0 10px;
}
html .calypso-med-doctor, html.dark .calypso-med-doctor {
	padding: 12px 16px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-xl); color: var(--warn-fg); font-family: var(--font-sans); font-size: 15px;
}

/* Przełącznik języka, pasek postępu, podsumowanie, tekst zwolnienia, podpis */
html .calypso-lang, html.dark .calypso-lang { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; margin-bottom: 16px; }
html .calypso-lang a, html.dark .calypso-lang a { color: var(--muted); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
html .calypso-lang a:hover, html.dark .calypso-lang a:hover { color: var(--text-strong); }
html .calypso-lang a.calypso-lang-on, html.dark .calypso-lang a.calypso-lang-on { color: var(--accent-text); border-bottom-color: var(--accent); }
html .calypso-gauge-label, html .calypso-gauge-sec, html .calypso-gauge-ends,
html.dark .calypso-gauge-label, html.dark .calypso-gauge-sec, html.dark .calypso-gauge-ends {
	font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted);
}
html .calypso-gauge-track, html.dark .calypso-gauge-track { background: var(--track); border-radius: 999px; }
html .calypso-gauge-fill, html.dark .calypso-gauge-fill { background: var(--accent); border-radius: 999px; }
html .calypso-gauge-dot, html.dark .calypso-gauge-dot { background: var(--accent); box-shadow: none; }
html .calypso-summary, html .calypso-med-summary, html.dark .calypso-summary, html.dark .calypso-med-summary {
	margin: 0 0 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
	font-family: var(--font-sans); font-size: 15px; color: var(--text);
}
html .calypso-summary dt, html .calypso-med-summary dt { font-weight: 600; color: var(--text-2); }
html .calypso-summary dd, html .calypso-med-summary dd { color: var(--text); margin: 0 0 6px; }
html .calypso-waiver-text, html.dark .calypso-waiver-text {
	max-height: 260px; overflow: auto; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
	font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--text);
}
html .calypso-sigpad, html.dark .calypso-sigpad { border: 1px solid var(--input-border); border-radius: var(--r-lg); background: var(--input-bg); color: var(--text-strong); box-shadow: none; }
html .calypso-sigpad-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

/* Portal: karty i tabela jak w panelu */
html .calypso-card, html.dark .calypso-card {
	padding: 20px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: none; transform: none;
	font-family: var(--font-sans); color: var(--text);
}
html .calypso-card:hover, html.dark .calypso-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
html .calypso-card h4, html.dark .calypso-card h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-strong); margin: 0 0 12px; }
html .calypso-card h4::before { display: none; }
html .calypso-card p, html .calypso-card li, html.dark .calypso-card p, html.dark .calypso-card li { font-size: 15px; line-height: 1.6; color: var(--text); }
html .calypso-card a, html.dark .calypso-card a { color: var(--accent-text); border-bottom: 0; text-decoration: underline; text-underline-offset: 2px; }
html .calypso-card strong, html.dark .calypso-card strong { color: var(--text-strong); font-weight: 600; }
html .calypso-portal-hello, html.dark .calypso-portal-hello { font-family: var(--font-sans); font-size: 22px; font-weight: 600; letter-spacing: 0; color: var(--text-strong); }
html .calypso-portal-avatar, html.dark .calypso-portal-avatar { background: var(--ava-bg); color: var(--ava-fg); font-family: var(--font-sans); font-weight: 600; }
html .calypso-table th, html.dark .calypso-table th {
	padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border);
	font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-2); text-align: left;
}
html .calypso-table td, html.dark .calypso-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); font-size: 16px; color: var(--text); }
html .calypso-table tr:hover td, html.dark .calypso-table tr:hover td { background: var(--hover); color: var(--text-strong); }
html .calypso-medstat, html.dark .calypso-medstat { font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: var(--r-lg); }

/* ── Boxy A–G: doprecyzowanie rozwijane pod pytaniem ─────────────
   Kolor mint (nie bursztyn): box to zwykłe doprecyzowanie, nie ostrzeżenie.
   Bursztyn rezerwujemy dla .calypso-med-note, czyli realnego „potrzebny lekarz". */
.calypso-med-box {
	margin: 4px 0 2px; padding: 16px 18px 6px;
	border-left: 3px solid var(--accent-line, #7dd3c0);
	background: rgba(125, 211, 192, .07);
	border-radius: 0 var(--r-lg, 8px) var(--r-lg, 8px) 0;
}
.calypso-med-box[hidden] { display: none; }
.calypso-med-box .calypso-med-box-intro {
	margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--dim);
}
.calypso-med-box .calypso-med-box-title {
	margin: 0 0 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .24em;
	text-transform: uppercase; color: var(--accent-text, #7dd3c0);
}
.calypso-med-sub-q { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; }
.calypso-med-sub-q:last-of-type { border-bottom: 0; }
.calypso-med-sub-q p { margin: 0 0 12px; font-weight: 400; color: var(--white); font-size: 14px; line-height: 1.55; }
.calypso-med-sub-q .calypso-med-opts { display: flex; gap: 28px; }
.calypso-med-sub-q .calypso-med-opts label {
	display: flex; align-items: center; gap: 9px; margin: 0; min-height: 44px;
	font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--dim); cursor: pointer;
}
/* Pasek stanu: spokojny dopóki lekarz nie jest potrzebny, bursztynowy dopiero wtedy. */
.calypso-med-counter.is-doctor { border-left-color: var(--warning-400, #fdb022); }

/* ── Strona 1 dokumentu: wstęp, Anleitung, uwaga o ciąży, oświadczenie ──
   To nie są nasze teksty, tylko treść dokumentu — musi być widoczna, nie schowana. */
.calypso-med-intro { margin: 0 0 22px; }
.calypso-med-intro p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--dim); }
.calypso-med-intro h3 {
	margin: 18px 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .24em;
	text-transform: uppercase; color: var(--dim);
}
/* Ciąża: dokument mówi wprost „do not dive" — to ostrzeżenie, nie drobny druk. */
.calypso-med-intro .calypso-med-pregnancy {
	margin: 14px 0 0; padding: 12px 14px;
	border-left: 3px solid var(--warning-400, #fdb022);
	background: rgba(253, 176, 34, .1);
	border-radius: 0 var(--r-lg, 8px) var(--r-lg, 8px) 0;
	color: var(--white); font-size: 14px; line-height: 1.55;
}
/* Oświadczenie uczestnika: to treść, pod którą gość się podpisuje — musi być tuż nad podpisem. */
.calypso-med-statement {
	margin: 4px 0 20px; padding: 14px 16px;
	border: 1px solid var(--accent-line, #7dd3c0);
	border-radius: var(--r-lg, 8px);
	background: rgba(125, 211, 192, .06);
}
.calypso-med-statement p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--white); }

/* Oznaczenie dokumentu źródłowego — drobny druk, ale musi być czytelny (to dowód przy kontroli). */
.calypso-med-docref {
	margin: 24px 0 0; padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 11.5px; line-height: 1.6; color: var(--dim);
}

/* Telefon: rozwinięta sekcja nie może zjadać ćwierci ekranu.
   Na 375 px wcięcie + padding zabierały ~100 px — tekst medyczny robił się wąskim paskiem. */
@media (max-width: 480px) {
	.calypso-med-box { margin-left: -4px; margin-right: -4px; padding: 12px 10px 4px; border-left-width: 2px; }
	.calypso-med-box .calypso-med-box-intro { font-size: 13px; }
	.calypso-med-sub-q p { font-size: 15px; }
	.calypso-med-sub-q .calypso-med-opts { gap: 20px; }
}

/* „Najpierw rejestracja" — na pierwszym kroku, żeby gość nie dowiedział się o tym
   dopiero po wypełnieniu 44 pytań. */
.calypso-med-prereq {
	margin: 10px 0 0; padding: 12px 14px;
	border-left: 3px solid var(--accent-line, #7dd3c0);
	background: rgba(125, 211, 192, .08);
	border-radius: 0 var(--r-lg, 8px) var(--r-lg, 8px) 0;
	font-size: 13.5px; line-height: 1.6;
}
.calypso-med-prereq a { text-decoration: underline; }

/* ── Wersja robocza: pasek nad formularzem po przywróceniu odpowiedzi ───
   Spokojny, nie alarmowy — to dobra wiadomość, nie błąd. Przycisk „Zacznij
   od nowa" ma 44 px jak wszystkie dotykowe elementy formularzy gościa. */
.calypso-draft-note {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
	margin: 0 0 18px; padding: 12px 16px;
	border: 1px solid var(--border-strong); border-left: 3px solid var(--accent-text, #7dd3c0);
	border-radius: 8px; background: var(--surface);
	font-family: var(--font-sans); font-size: 14px; line-height: 1.5;
}
.calypso-draft-note span { flex: 1 1 220px; }
.calypso-draft-reset {
	min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong);
	border-radius: 999px; background: transparent; color: inherit;
	font: inherit; cursor: pointer; transition: background .15s, border-color .15s;
}
.calypso-draft-reset:hover { background: rgba(125, 211, 192, .12); border-color: var(--accent-text, #7dd3c0); }
.calypso-draft-reset:focus-visible { outline: 2px solid var(--accent-text, #7dd3c0); outline-offset: 2px; }
html.dark .calypso-draft-note { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .28); }

/* ── Powtarzalne bloki (dodatkowe certyfikaty) ───────────────────────── */
.calypso-repeat-item { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 8px; }
.calypso-repeat-add {
	margin: 10px 0 0; min-height: 44px; padding: 0 16px; border: 1px dashed var(--border-strong);
	border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.calypso-repeat-add:hover { border-style: solid; background: rgba(125, 211, 192, .10); }
.calypso-repeat-add:focus-visible { outline: 2px solid var(--accent-text, #7dd3c0); outline-offset: 2px; }
.calypso-repeat-item label { display: block; }
.calypso-repeat-item label input { display: block; width: 100%; margin-top: 4px; }

/* ── Your Calypso (K2, 09.10.2026): lista spraw gościa pod osobistym linkiem ─────────
   Trzy wiersze: znak stanu z lewej, nazwa, jedno zdanie, jedna czynność. Stan także słowem (nie samym kolorem). */
.calypso-checkin-sum { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.calypso-checkin-list { list-style: none; margin: 0; padding: 0; }
.calypso-checkin-step { position: relative; margin: 0; padding: 16px 0 16px 34px; border-top: 1px solid var(--border); }
.calypso-checkin-step::before {
	content: ''; position: absolute; left: 0; top: 18px; box-sizing: border-box;
	width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted);
}
.calypso-checkin-step.is-wait::before { border-style: dashed; }
.calypso-checkin-step.is-done::before { background: var(--accent); border-color: var(--accent); }
.calypso-checkin-step.is-done::after {
	content: ''; position: absolute; left: 6px; top: 22px; width: 4px; height: 8px;
	border: solid var(--accent-contrast); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.calypso-checkin-badge { float: right; margin-left: 12px; font-size: 12.5px; line-height: 21px; color: var(--muted); }
.calypso-portal .calypso-checkin-step h4 {
	margin: 0 0 4px; font: 500 16px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--text-strong);
}
.calypso-portal .calypso-checkin-step h4::before { display: none; }
.calypso-checkin-step p, .calypso-checkin-step ul { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; }
.calypso-checkin-step ul { padding-left: 18px; }
.calypso-checkin-step > :last-child { margin-bottom: 0; }
.calypso-doc-known { margin: 0 0 18px; }
.calypso-doc-known a { margin-left: .5em; white-space: nowrap; }
.calypso-mylink-form button[type=submit] { margin-top: 18px; }
.calypso-mylink-form .calypso-field-error { margin: 6px 0 0; font-size: 13px; }
/* Pole „wyślij mi link" stoi już w karcie My Calypso: bez drugiej karty w środku. */
html .calypso-portal .calypso-mylink-form.calypso-doc-form { max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html .calypso-portal .calypso-mylink-form.calypso-doc-form::before { display: none !important; }
/* 09.10.2026: fokus pól. Reguła :focus-visible wyżej przegrywała z regułą podstawową pól (ta ma pięć :not()),
   więc pole wybrane klawiaturą nie miało żadnego znaku. Te same wartości, wyższa waga. Wyglądu ?fg=1 nie dotyka. */
html body:not(.fg) :is(.calypso-reg-form, .calypso-med-form, .calypso-doc-form, .calypso-portal) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]):not([type=file]):focus-visible {
	border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--ring);
}

/* 10.10.2026, sesja TEL2 (Fable), prośba Oli 16:37: pastylki płci w rejestracji miały podwójną ramkę (pudełko na label z bloku wyżej + własna pigułka na span z linii ok. 1830).
   Zostaje jedno pudełko na label (zaznaczenie, najechanie i fokus już tam są); span w środku jest zwykłym napisem. Laptop i telefon. */
html .calypso-chips label span, html.dark .calypso-chips label span,
html .calypso-chips input:checked + span, html.dark .calypso-chips input:checked + span,
html .calypso-chips label:hover span, html.dark .calypso-chips label:hover span {
	border: 0; border-radius: 0; background: transparent; padding: 0; min-height: 0; color: inherit; font-weight: inherit; transition: none;
}
html .calypso-chips input:focus-visible + span { outline: 0; }
html .calypso-chips[aria-invalid="true"] label { border-color: var(--error-text); }

/* 10.10.2026 TEL2 (Fable), Ola 16:44 o My Calypso: numery listy kroków wisiały poza tekstem (ol bez wcięcia), tytuły kart w Work Sans odstawały od reszty strony (tytuły są w Libre Caslon Display). Laptop i telefon. */
html .calypso-portal ol, html.dark .calypso-portal ol { padding-left: 1.5em; margin: 8px 0 0; }
html .calypso-portal h3, html.dark .calypso-portal h3 { font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }

/* 10.10.2026 TEL3, Ola 18:05 „tak”: zaznaczona pastylka była miętowa jak przycisk wysyłki (ten sam problem co na Contact). Teraz ciemna z białym napisem; w ciemnej skórce biała z ciemnym napisem. Przycisk wysyłki zostaje miętowy. */
/* REJ2 27.10.2026 (Ola 15:32): ciemne tło trafiało tylko na napis w środku morskiej pastylki (czarny prostokąt). Napis przezroczysty, kolor daje cała pastylka. Ostateczny kolor zaznaczenia: sesja wyglądu (Fable). */
html .calypso-chips input:checked + span, html.dark .calypso-chips input:checked + span { background: transparent; border-color: transparent; color: inherit; }

/* REJ2 27.10.2026 (Ola 15:38): „More address details” przyklejone do pola kodu pocztowego - odstęp jak między polami. */
html .calypso-reg-form .calypso-more, html.dark .calypso-reg-form .calypso-more { margin-top: 16px; }

/* REJ2 27.10.2026: data urodzenia w trzech polach obok siebie (wygląd ostateczny: sesja Fable). */
html .calypso-dob { display: flex; gap: 10px; flex-wrap: wrap; }
html .calypso-dob label { display: flex; flex-direction: column; margin: 0; }
html .calypso-dob input[name="birth_day"] { width: 5.5em; }
html .calypso-dob input[name="birth_year"] { width: 7em; }
html .calypso-dob select { min-width: 10em; }

/* KAL1 28.10: fieldset rośnie do najszerszego dziecka (min-width: min-content); pole podpisu na Retinie wypychało krok poza kartę */
.calypso-reg-form fieldset, .calypso-med-form fieldset, .calypso-doc-form fieldset { min-width: 0; }
