/* Klientská zóna: jednoduché zobrazení (semafor, dlaždice, karty schránek, návody) a přepínač zobrazení.
   Klidnější než správa hostingu: méně rámečků, větší dotykové cíle (aspoň 44 px), stejné barvy a písma jako portal.css. */

/* ---------- přepínač zobrazení ---------- */

.p-userbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-bottom: 1.2rem;
}

.p-userbar .p-who {
	margin: 0;
}

.p-view {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: .35rem .6rem;
	max-width: 30rem;
	margin: 0 0 0 auto;
}

.p-view__label {
	color: var(--muted);
	font-size: .9rem;
}

.p-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	background: var(--paper-2);
}

.p-seg__btn {
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 600 .9rem var(--font-body);
	cursor: pointer;
}

.p-seg__btn:hover {
	background: var(--card);
}

.p-seg__btn.is-on {
	background: var(--card);
	color: var(--brand);
	box-shadow: 0 1px 3px rgb(42 15 24 / .14);
}

.p-view__help {
	flex-basis: 100%;
	color: var(--muted);
	font-size: .85rem;
	text-align: right;
}

@media (max-width: 40rem) {
	.p-view {
		justify-content: flex-start;
		margin-left: 0;
	}

	.p-view__help {
		text-align: left;
	}
}

/* ---------- vysvětlivky „?“ (pro vývojáře) ---------- */

.p-hhead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: .4rem;
}

.p-hhead > h2,
.p-hhead > h3 {
	margin-right: .2rem;
}

.p-hints {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: -.3rem 0 1rem;
}

.p-hint {
	position: relative;
}

.p-hint > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin: -.6rem 0;
	border-radius: 999px;
	color: var(--brand);
	font: 700 .95rem var(--font-head);
	list-style: none;
	cursor: pointer;
}

.p-hints .p-hint > summary {
	margin: 0;
}

.p-hint--label > summary {
	gap: .4rem;
	padding: 0 .8rem 0 .4rem;
	border-radius: 999px;
	background: var(--card);
	box-shadow: 0 0 0 1px var(--line);
	font: 600 .88rem var(--font-body);
}

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

.p-hint > summary > span[aria-hidden] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	background: var(--brand-soft);
}

.p-hint[open] > summary > span[aria-hidden] {
	background: var(--brand);
	color: #fff;
}

/* vysvětlivka = bublina u otazníku: neposouvá obsah, zavře se klikem jinam nebo Esc (hosting.js) */
.p-hint__body {
	position: absolute;
	top: calc(100% + .5rem);
	left: -.4rem;
	z-index: 30;
	width: min(22rem, calc(100vw - 2.5rem));
	margin: 0;
	padding: .75rem .9rem;
	border-radius: var(--radius-sm);
	background: var(--card);
	box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgb(40 10 20 / .14);
	color: var(--ink);
	font: 400 .9rem/1.5 var(--font-body);
	text-transform: none;
	letter-spacing: normal;
}

/* ---------- karty a sekce ---------- */

.z-card {
	margin-block: 1rem;
	padding: 1.25rem 1.3rem;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow);
}

.z-card > h2 {
	font-size: 1.15rem;
}

.z-card > :last-child {
	margin-bottom: 0;
}

.z-card--note {
	background: var(--paper-2);
	box-shadow: none;
}

.z-section {
	margin-block: 1.6rem;
}

.z-h2 {
	margin-top: 2rem;
}

.z-row {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-block: 1rem;
}

.z-big {
	margin-bottom: .2rem;
	font: 700 1.5rem/1.2 var(--font-head);
}

.z-big__unit {
	color: var(--muted);
	font-size: 1rem;
	font-weight: 500;
}

.z-icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
}

.p-btn .z-icon {
	margin-right: .45rem;
}

/* ---------- semafor ---------- */

.z-status {
	display: grid;
	gap: .2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.z-status__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .8rem;
	padding: .6rem 0;
}

.z-status__item + .z-status__item {
	border-top: 1px solid var(--paper-2);
}

.z-status__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
}

.is-ok .z-status__icon {
	background: var(--ok-soft);
	color: var(--ok);
}

.is-wait .z-status__icon {
	background: var(--warn-soft);
	color: var(--warn);
}

.is-bad .z-status__icon {
	background: var(--danger);
	color: #fff;
}

.is-neutral .z-status__icon {
	background: var(--paper-2);
	color: var(--muted);
}

.z-status__text {
	flex: 1 1 12rem;
	min-width: 0;
}

.z-status__text strong {
	display: block;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.z-status__sub {
	display: block;
	color: var(--muted);
	font-size: .9rem;
}

.z-status__act {
	margin-left: 3.05rem;
}

/* ---------- dlaždice ---------- */

.z-tiles {
	display: grid;
	gap: .7rem;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.z-tile {
	display: flex;
	align-items: center;
	gap: .8rem;
	min-height: 4.25rem;
	padding: .8rem 1rem;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
}

.z-tile:hover {
	background: var(--brand-soft);
	color: var(--ink);
}

.z-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: var(--radius-sm);
	background: var(--brand-soft);
	color: var(--brand);
}

.z-tile:hover .z-tile__icon {
	background: var(--card);
}

.z-tile__text strong {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.z-tile__sub {
	display: block;
	margin-top: .1rem;
	color: var(--muted);
	font-size: .88rem;
	line-height: 1.35;
}

/* ---------- co čeká, kontakt ---------- */

.z-todo,
.z-contact__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.z-todo a,
.z-contact__list a {
	display: flex;
	align-items: center;
	gap: .7rem;
	min-height: 2.75rem;
	padding: .4rem 0;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.z-todo li + li a {
	border-top: 1px solid var(--paper-2);
}

.z-todo a span,
.z-contact__list a span {
	text-decoration: underline;
	text-underline-offset: .18em;
}

.z-calm {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0;
	color: var(--ok);
	font-weight: 600;
}

/* ---------- schránky ---------- */

.z-boxes {
	display: grid;
	gap: .9rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.z-box {
	padding: 1.1rem 1.2rem;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow);
}

.z-box__head {
	display: flex;
	align-items: flex-start;
	gap: .8rem;
}

.z-box__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand);
}

.z-box__address {
	margin: 0;
	font-size: 1.1rem;
	overflow-wrap: anywhere;
}

.z-box__meta {
	margin: .15rem 0 0;
	color: var(--muted);
	font-size: .9rem;
}

.z-box__actions {
	display: grid;
	gap: .5rem;
	grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
	margin-top: 1rem;
}

.z-box__actions .p-btn {
	justify-content: flex-start;
	padding-inline: .9rem;
}

.z-pulse {
	background: var(--brand-soft);
}

.z-dev {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}

.z-dev .p-note {
	margin: 0;
}

/* ---------- rozbalovací „pro správce“ ---------- */

.z-more {
	margin-block: 1rem;
	border-radius: var(--radius);
	background: var(--paper-2);
}

.z-more > summary {
	display: flex;
	align-items: center;
	gap: .6rem;
	list-style: none;
	min-height: 3rem;
	padding: .4rem 1.2rem;
	font-weight: 600;
	cursor: pointer;
}

.z-more__body {
	padding: 0 1.2rem 1.2rem;
}

.z-records {
	display: grid;
	gap: .6rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.z-records li {
	display: grid;
	gap: .3rem;
	padding: .7rem .8rem;
	border-radius: var(--radius-sm);
	background: var(--card);
}

.z-records__type {
	font: 700 .85rem var(--font-head);
	color: var(--brand);
}

.z-records__kv {
	display: grid;
	gap: .1rem;
	min-width: 0;
}

.z-records__k {
	color: var(--muted);
	font-size: .8rem;
}

.z-copy {
	min-width: 0;
}

.z-copy .p-code {
	overflow-wrap: anywhere;
}

/* ---------- web ---------- */

.z-site__name {
	margin-bottom: .4rem;
	font-size: 1.3rem;
	overflow-wrap: anywhere;
}

.z-site__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: 1rem;
}

.z-domain {
	margin-top: 1.4rem;
	padding: 1rem 1.1rem;
	border-radius: var(--radius-sm);
	background: var(--warn-soft);
}

.z-domain > summary {
	display: flex;
	align-items: center;
	gap: .6rem;
	min-height: 2.75rem;
	list-style: none;
	cursor: pointer;
}

.z-domain > summary::-webkit-details-marker,
.z-more > summary::-webkit-details-marker {
	display: none;
}

/* šipka u rozbalovacích částí */
.z-domain > summary::after,
.z-more > summary::after {
	content: "";
	flex: none;
	width: .55rem;
	height: .55rem;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.z-domain[open] > summary::after,
.z-more[open] > summary::after {
	transform: rotate(-135deg);
}

.z-domain__title {
	margin: 0;
	font-size: 1.02rem;
	overflow-wrap: anywhere;
}

.z-domain[open] > summary {
	margin-bottom: .6rem;
}

.z-domain .z-records li {
	background: var(--card);
}

/* ---------- výběr zařízení / registrátora ---------- */

.z-choose ul,
.z-choose__list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.z-choose__title {
	margin: 1rem 0 .5rem;
	font-size: 1rem;
}

.z-choose__item {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--card);
	box-shadow: 0 0 0 1px var(--line);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.z-choose__item:hover {
	box-shadow: 0 0 0 2px var(--brand);
	color: var(--ink);
}

.z-choose__item.is-current {
	background: var(--brand);
	box-shadow: none;
	color: #fff;
}

/* ---------- návod krok za krokem ---------- */

.z-steps {
	counter-reset: step;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.z-steps li {
	position: relative;
	min-height: 2rem;
	margin-bottom: .9rem;
	padding-left: 2.8rem;
	counter-increment: step;
	overflow-wrap: anywhere;
}

.z-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font: 700 .95rem var(--font-head);
}

.z-kv {
	display: grid;
	gap: .2rem;
	margin: 0;
}

.z-kv > div {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: .2rem 1rem;
	padding: .55rem 0;
	border-top: 1px solid var(--paper-2);
}

.z-kv dt {
	color: var(--muted);
	font-weight: 600;
}

.z-kv dd {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.z-kv__sub {
	display: block;
	color: var(--muted);
	font-size: .88rem;
}

/* ---------- faktury a smlouvy ---------- */

.z-lines {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.z-lines > li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .5rem 0;
	border-top: 1px solid var(--paper-2);
}

.z-lines--links > li {
	display: block;
	padding: 0;
}

.z-lines--links a {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .3rem 1rem;
	min-height: 3.2rem;
	padding: .6rem 0;
	color: var(--ink);
	text-decoration: none;
}

.z-lines--links a:hover strong {
	color: var(--brand);
	text-decoration: underline;
}

.z-lines__main,
.z-lines__side {
	display: flex;
	flex-direction: column;
}

.z-lines__side {
	flex-direction: row;
	align-items: center;
	gap: .6rem;
}

.z-lines__sub {
	color: var(--muted);
	font-size: .88rem;
}

/* ---------- nová schránka: údaje pro kolegu ---------- */

.z-address {
	display: grid;
	gap: 0 .8rem;
	grid-template-columns: 1fr 1fr;
}

.z-cred {
	border: 2px dashed var(--brand);
}

.z-cred__warn {
	margin-top: 1rem;
}

@media (max-width: 40rem) {
	.z-address {
		grid-template-columns: 1fr;
	}

	.z-kv > div {
		grid-template-columns: 1fr;
	}

	.z-status__act {
		margin-left: 3.05rem;
	}

	.z-tiles {
		grid-template-columns: 1fr;
	}

	/* přehled: akce po dvou, ikona nad textem */
	.z-tiles--compact {
		grid-template-columns: 1fr 1fr;
		gap: .6rem;
	}

	.z-tiles--compact .z-tile {
		flex-direction: column;
		align-items: flex-start;
		gap: .5rem;
		min-height: 6.2rem;
		padding: .8rem .85rem;
	}

	.z-tiles--compact .z-tile__text strong {
		font-size: .95rem;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.z-box__actions {
		grid-template-columns: 1fr 1fr;
	}

	.z-box__actions .p-btn {
		font-size: .92rem;
		padding-inline: .6rem;
	}
}

@media print {
	.p-top,
	.p-nav,
	.p-userbar,
	.p-foot,
	.p-back,
	.p-flash,
	.z-noprint,
	.skip {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.z-card {
		box-shadow: none;
	}
}

@media (min-width: 48rem) {
	/* DNS záznamy na širší obrazovce v řádku: typ, název, hodnota */
	.z-records li {
		grid-template-columns: 4.5rem 1fr 1fr;
		align-items: start;
		gap: .3rem 1rem;
	}
}

.z-site__tech {
	margin: .2rem 0 .8rem;
	color: var(--ink-soft, var(--ink));
}

.z-site__tech .p-note {
	display: block;
}

.p-label-row {
	display: flex;
	align-items: center;
	gap: .35rem;
}

.p-label-row .p-hint > summary {
	margin: -.7rem 0;
}

/* prodloužení hostingu čeká na platbu (Faktury a smlouvy) */
.z-card--alert {
	box-shadow: inset 4px 0 0 #c77700, var(--shadow);
}

/* Můj nový web: výzva k žádosti o návrh */
.z-card--accent {
	box-shadow: inset 4px 0 0 var(--brand, #7b1e3a), var(--shadow);
}

/* Začínáme: kroky k webu na vlastní doméně */
.z-start__steps {
	display: grid;
	gap: 1rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.z-start__step {
	display: grid;
	grid-template-columns: 2.2rem 1fr;
	gap: .8rem;
	align-items: start;
}

.z-start__step h3 {
	margin: .2rem 0 .3rem;
	font-size: 1.05rem;
}

.z-start__step p {
	margin: 0 0 .5rem;
}

.z-start__mark {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border: 2px solid var(--line, #e7dad6);
	border-radius: 50%;
	font-weight: 700;
}

.z-start__mark .z-icon {
	width: 1.2rem;
	height: 1.2rem;
}

.z-start__step.is-done .z-start__mark {
	border-color: #1f7a4d;
	background: #1f7a4d;
	color: #fff;
}

.z-start__step.is-done h3 {
	color: var(--muted, #5e4a51);
}

/* FTP přístupy (SFTP) u webu */
.z-ftp__list {
	display: grid;
	gap: .6rem;
	margin: .8rem 0 1rem;
	padding: 0;
	list-style: none;
}

.z-ftp__list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	padding: .6rem .8rem;
	border: 1px solid var(--line, #e7dad6);
	border-radius: 12px;
}

.z-ftp__list .p-note {
	display: block;
}

.z-inline {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
}

.z-ftp__form {
	display: grid;
	gap: .6rem;
	max-width: 28rem;
}

.p-userbar .p-who {
	padding-top: .55rem;
}

/* nadpis karty a „?“ na jedné ose (nadpis bez vlastního okraje, mezeru dává hlavička) */
.p-hhead {
	align-items: center;
	margin-bottom: .75rem;
}

.p-hhead > h2,
.p-hhead > h3 {
	margin-top: 0;
	margin-bottom: 0;
}

/* Orqana Shield na přehledu (jednoduché zobrazení) */
.z-shield__hint {
	display: flex;
	gap: .5rem;
	align-items: flex-start;
	color: var(--muted);
}

.z-shield__hint .z-icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: .1rem;
}
