
:root{
	--pfc-text:#1f1f1f;
	--pfc-muted:#6f6a63;
	--pfc-line:#e7e1d8;
	--pfc-soft:#f6f3ee;
	--pfc-card:#ffffff;
	--pfc-success:#176f43;
	--pfc-warning:#966400;
	--pfc-danger:#a62a2a;
	--pfc-shadow:0 18px 50px rgba(44,35,26,.09);
}

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

.pfc-app{
	max-width:1240px;
	margin:28px auto 56px;
	color:var(--pfc-text);
	font-family:inherit;
}

.pfc-studio-form{display:block}

.pfc-studio-head{
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:24px;
	margin:0 0 18px;
}

.pfc-studio-head h2{
	margin:5px 0 8px;
	font-size:clamp(28px,4vw,46px);
	line-height:1.03;
	letter-spacing:-.035em;
}

.pfc-studio-head p{
	max-width:720px;
	margin:0;
	color:var(--pfc-muted);
	font-size:15px;
	line-height:1.55;
}

.pfc-eyebrow{
	display:block;
	color:#746b61;
	font-size:12px;
	font-weight:800;
	letter-spacing:.09em;
	text-transform:uppercase;
}

.pfc-head-summary{
	flex:0 0 auto;
	min-width:150px;
	padding:12px 16px;
	border:1px solid var(--pfc-line);
	border-radius:16px;
	background:#fff;
	text-align:right;
	box-shadow:0 7px 20px rgba(45,36,27,.05);
}
.pfc-head-summary span{display:block;color:var(--pfc-muted);font-size:12px}
.pfc-head-summary strong{display:block;margin-top:2px;font-size:24px}

.pfc-stage-card{
	position:relative;
	padding:12px;
	border:1px solid var(--pfc-line);
	border-radius:24px;
	background:#fff;
	box-shadow:var(--pfc-shadow);
}

.pfc-preview-mode-switch{
	position:absolute;
	z-index:15;
	top:24px;
	right:24px;
	display:flex;
	gap:4px;
	padding:4px;
	border:1px solid rgba(55,48,40,.12);
	border-radius:12px;
	background:rgba(255,255,255,.9);
	backdrop-filter:blur(10px);
	box-shadow:0 6px 20px rgba(30,25,20,.08);
}

.pfc-preview-mode{
	appearance:none;
	border:0;
	border-radius:8px;
	background:transparent;
	color:#676057;
	padding:9px 12px;
	font:inherit;
	font-size:12px;
	font-weight:800;
	cursor:pointer;
}
.pfc-preview-mode:hover{color:#222}
.pfc-preview-mode.is-active{background:#1f1f1f;color:#fff}

.pfc-preview-panel[hidden]{display:none!important}

.pfc-preview-shell{
	position:relative;
	min-height:650px;
	display:grid;
	place-items:center;
	padding:72px 54px 46px;
	overflow:hidden;
	border-radius:17px;
	background:
		radial-gradient(circle at 28% 18%,rgba(255,255,255,.98),rgba(245,241,235,.88) 44%,rgba(231,225,216,.97));
	transition:box-shadow .15s ease,background .15s ease;
}

.pfc-preview-shell.is-dragging{
	box-shadow:inset 0 0 0 3px #1f1f1f;
	background:#f7f3ed;
}

.pfc-frame{
	--frame-color:#d7d1c8;
	--frame-border:clamp(16px,2vw,25px);
	position:relative;
	box-sizing:border-box;
	width:min(52%,390px);
	padding:var(--frame-border);
	background:var(--frame-color);
	border-radius:2px;
	box-shadow:0 28px 58px rgba(32,24,17,.20),inset 0 0 0 1px rgba(0,0,0,.14),inset 0 0 18px rgba(255,255,255,.12);
	transition:width .22s ease,background .18s ease,padding .22s ease,border-width .22s ease;
}
.pfc-studio.is-landscape .pfc-frame{width:min(78%,760px)}
.pfc-frame:before{
	content:"";
	position:absolute;
	inset:0;
	pointer-events:none;
	opacity:.18;
	background:
		repeating-linear-gradient(94deg,rgba(255,255,255,.22) 0 1px,transparent 1px 8px),
		repeating-linear-gradient(88deg,rgba(0,0,0,.11) 0 1px,transparent 1px 13px);
	mix-blend-mode:soft-light;
}
.pfc-frame.has-texture{
	border:var(--frame-border) solid transparent;
	padding:0;
	background:transparent;
	border-image-source:var(--frame-texture);
	border-image-slice:25%;
	border-image-repeat:stretch;
}

.pfc-photo-window{
	position:relative;
	width:100%;
	aspect-ratio:2/3;
	overflow:hidden;
	background:#eeeae3;
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);
	touch-action:none;
	user-select:none;
}
.pfc-photo{
	position:absolute;
	left:50%;
	top:50%;
	max-width:none!important;
	max-height:none!important;
	transform-origin:center center;
	display:none;
	pointer-events:none;
	user-select:none;
	will-change:transform;
}
.pfc-photo.is-visible{display:block}

.pfc-empty{
	position:absolute;
	inset:0;
	z-index:3;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:8px;
	padding:22px;
	color:#766d63;
	text-align:center;
	background:linear-gradient(180deg,#f7f4ef,#ece7df);
}
.pfc-empty.is-hidden{display:none}
.pfc-empty strong{font-size:17px;color:#443e38}
.pfc-empty>span:not(.pfc-upload-mark){font-size:11px;color:#8f877e}
.pfc-empty small{font-size:9px;color:#9d958c;line-height:1.4}
.pfc-upload-mark{
	width:46px;
	height:46px;
	display:grid;
	place-items:center;
	margin-bottom:2px;
	border-radius:50%;
	background:#fff;
	box-shadow:0 5px 16px rgba(40,33,26,.08);
}
.pfc-upload-mark svg{width:23px;height:23px;fill:#4a433c}
.pfc-empty-upload{
	appearance:none;
	margin-top:5px;
	border:0;
	border-radius:9px;
	background:#1f1f1f;
	color:#fff;
	padding:10px 13px;
	font:inherit;
	font-size:10px;
	font-weight:800;
	cursor:pointer;
}
.pfc-empty-upload:hover{background:#3a342e}

.pfc-drop-overlay{
	position:absolute;
	z-index:20;
	inset:18px;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:6px;
	border:2px dashed #1f1f1f;
	border-radius:18px;
	background:rgba(255,255,255,.94);
	text-align:center;
	pointer-events:none;
}
.pfc-drop-overlay[hidden]{display:none!important}
.pfc-drop-overlay strong{font-size:24px}
.pfc-drop-overlay span{color:var(--pfc-muted);font-size:13px}

.pfc-stage-caption{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:10px 5px 1px;
	color:var(--pfc-muted);
	font-size:12px;
}
.pfc-stage-caption [data-active-photo-label]{
	min-width:0;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	font-weight:700;
	color:#4c4640;
}

.pfc-photo-strip-wrap{
	margin-top:14px;
	padding:14px;
	border:1px solid var(--pfc-line);
	border-radius:18px;
	background:#fff;
	box-shadow:0 8px 24px rgba(44,35,26,.04);
}
.pfc-photo-strip-wrap[hidden]{display:none!important}
.pfc-photo-strip-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin-bottom:10px;
}
.pfc-photo-strip-head>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pfc-photo-strip-head strong{font-size:14px}
.pfc-photo-strip-head span{color:var(--pfc-muted);font-size:11px}
.pfc-strip-add{
	appearance:none;
	border:0;
	background:transparent;
	color:#222;
	font:inherit;
	font-size:12px;
	font-weight:800;
	cursor:pointer;
}
.pfc-strip-add:hover{text-decoration:underline}
.pfc-photo-strip-head small{display:block;flex-basis:100%;margin-top:0;color:var(--pfc-muted);font-size:9px;font-weight:500}

.pfc-photo-strip{
	display:flex;
	gap:9px;
	overflow-x:auto;
	padding:2px 2px 7px;
	scrollbar-width:thin;
}
.pfc-photo-thumb{
	position:relative;
	flex:0 0 92px;
	height:72px;
	padding:3px;
	overflow:hidden;
	border:2px solid transparent;
	border-radius:12px;
	background:#eee9e2;
	cursor:pointer;
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.07);
}
.pfc-photo-thumb:hover{border-color:#b6aea5}
.pfc-photo-thumb.is-active{border-color:#1f1f1f}
.pfc-photo-thumb.is-order-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.07),0 0 0 2px rgba(25,114,68,.20)}
.pfc-photo-thumb img{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	border-radius:8px;
}
.pfc-thumb-number{
	position:absolute;
	left:6px;
	top:6px;
	min-width:19px;
	height:19px;
	display:grid;
	place-items:center;
	padding:0 4px;
	border-radius:999px;
	background:rgba(20,20,20,.78);
	color:#fff;
	font-size:9px;
	font-weight:800;
}
.pfc-thumb-state{
	position:absolute;
	right:31px;
	top:6px;
	width:19px;
	height:19px;
	display:grid;
	place-items:center;
	border-radius:999px;
	background:#eee8de;
	color:#5f574f;
	font-size:11px;
	font-weight:900;
	box-shadow:0 1px 4px rgba(0,0,0,.12);
}
.pfc-thumb-state.is-ready{background:#197244;color:#fff}
.pfc-thumb-state.is-error{background:#a62a2a;color:#fff}
.pfc-thumb-state.is-uploading{background:#fff;color:#444}

.pfc-thumb-remove{
	position:absolute;
	right:6px;
	top:6px;
	width:20px;
	height:20px;
	display:grid;
	place-items:center;
	padding:0;
	border:0;
	border-radius:999px;
	background:rgba(20,20,20,.78);
	color:#fff;
	font:inherit;
	font-size:15px;
	line-height:1;
	cursor:pointer;
	box-shadow:0 1px 4px rgba(0,0,0,.14);
}
.pfc-thumb-remove:hover{background:#a62a2a}
.pfc-thumb-order{
	position:absolute;
	left:6px;
	bottom:6px;
	width:22px;
	height:22px;
	display:grid;
	place-items:center;
	padding:0;
	border:2px solid rgba(255,255,255,.96);
	border-radius:7px;
	background:rgba(255,255,255,.92);
	color:#fff;
	cursor:pointer;
	box-shadow:0 1px 5px rgba(0,0,0,.18);
}
.pfc-thumb-order span{width:12px;height:12px;display:grid;place-items:center;border:1px solid #928a82;border-radius:3px;font-size:9px;font-weight:900}
.pfc-thumb-order.is-selected{background:#197244}
.pfc-thumb-order.is-selected span{border-color:transparent;color:#fff}
.pfc-thumb-badge{
	position:absolute;
	left:33px;
	bottom:6px;
	max-width:54px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	padding:3px 6px;
	border-radius:7px;
	background:rgba(255,255,255,.9);
	color:#312d29;
	font-size:8px;
	font-weight:800;
}

.pfc-tool-panel{
	display:none;
	margin-top:14px;
	border:1px solid var(--pfc-line);
	border-radius:18px;
	background:#fff;
	box-shadow:0 9px 25px rgba(44,35,26,.05);
	overflow:hidden;
}
.pfc-tool-panel.is-open{display:block}
.pfc-tool-content{
	padding:20px 22px;
}
.pfc-tool-content[hidden]{display:none!important}
.pfc-panel-title{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:16px;
	margin-bottom:16px;
}
.pfc-panel-title>div{min-width:0}
.pfc-panel-title span{
	display:block;
	margin-bottom:3px;
	color:#887f76;
	font-size:10px;
	font-weight:800;
	letter-spacing:.08em;
	text-transform:uppercase;
}
.pfc-panel-title strong{
	display:block;
	font-size:18px;
	line-height:1.25;
}
.pfc-panel-close{
	appearance:none;
	width:30px;
	height:30px;
	flex:0 0 auto;
	border:0;
	border-radius:50%;
	background:#f2eee8;
	color:#514a43;
	font:inherit;
	font-size:21px;
	line-height:1;
	cursor:pointer;
}
.pfc-panel-close:hover{background:#e9e3db}

.pfc-photo-actions{display:flex;gap:12px;flex-wrap:wrap}
.pfc-primary-soft,.pfc-secondary-soft,.pfc-danger-soft,.pfc-apply-all,.pfc-center-button,.pfc-preview-choice-button{
	appearance:none;
	border:1px solid #d9d2c8;
	border-radius:10px;
	background:#fff;
	color:#2a2724;
	padding:10px 14px;
	font:inherit;
	font-size:12px;
	font-weight:800;
	cursor:pointer;
}
.pfc-primary-soft{background:#1f1f1f;color:#fff;border-color:#1f1f1f}
.pfc-secondary-soft{background:#f7f4ef;color:#2a2724}
.pfc-secondary-soft:hover{background:#efebe5}
.pfc-primary-soft:hover{background:#39332e}
.pfc-danger-soft{color:#8f2424}
.pfc-danger-soft:disabled,.pfc-secondary-soft:disabled,.pfc-apply-all:disabled{opacity:.45;cursor:not-allowed}

.pfc-upload-status{
	margin-top:10px;
	min-height:18px;
	color:var(--pfc-muted);
	font-size:12px;
}
.pfc-upload-status.is-ok{color:var(--pfc-success)}
.pfc-upload-status.is-error{color:var(--pfc-danger)}

.pfc-size-grid{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:10px;
}
.pfc-frame-grid{
	display:grid;
	grid-template-columns:repeat(5,minmax(0,1fr));
	gap:10px;
}
.pfc-size-button,.pfc-frame-button{
	appearance:none;
	border:1px solid #dcd5cc;
	border-radius:12px;
	background:#fff;
	color:inherit;
	font:inherit;
	cursor:pointer;
	transition:.14s ease;
}
.pfc-size-button:hover,.pfc-frame-button:hover{border-color:#9d948a}
.pfc-size-button.is-active,.pfc-frame-button.is-active{
	border-color:#1f1f1f;
	box-shadow:0 0 0 1px #1f1f1f;
}
.pfc-size-button:disabled,.pfc-frame-button:disabled{opacity:.45;cursor:not-allowed}
.pfc-size-button.is-unavailable{background:#f6f3ef;border-style:dashed}
.pfc-size-button{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	padding:13px 14px;
	text-align:left;
	font-size:13px;
}
.pfc-size-button small{
	color:var(--pfc-muted);
	font-size:10px;
	white-space:nowrap;
}
.pfc-size-button small .woocommerce-Price-amount{font-size:10px}
.pfc-size-availability{margin-top:12px;padding:10px 12px;border:1px solid #e2dbd2;border-radius:11px;background:#faf8f5;color:#6d655d;font-size:10px;line-height:1.45}
.pfc-size-availability strong{color:#2d2925}
.pfc-frame-button{
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	gap:8px;
	padding:10px;
	font-size:11px;
	font-weight:800;
}
.pfc-swatch{
	width:100%;
	height:28px;
	border-radius:7px;
	background:
		repeating-linear-gradient(92deg,rgba(255,255,255,.15) 0 1px,transparent 1px 6px),
		var(--swatch);
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.13);
}
.pfc-apply-all{margin-top:12px;background:#f7f4ef}
.pfc-apply-all:not(:disabled):hover{background:#efebe5}

.pfc-crop-tools{
	display:grid;
	grid-template-columns:40px minmax(0,1fr) 40px auto;
	gap:10px;
	align-items:center;
}
.pfc-zoom-step{
	appearance:none;
	width:40px;
	height:40px;
	border:1px solid #d8d1c8;
	border-radius:10px;
	background:#fff;
	font:inherit;
	font-size:22px;
	cursor:pointer;
}
.pfc-zoom-row{
	display:grid;
	grid-template-columns:auto 1fr auto;
	gap:10px;
	align-items:center;
	color:var(--pfc-muted);
	font-size:10px;
}
.pfc-zoom-row input[type="range"]{
	-webkit-appearance:none;
	appearance:none;
	width:100%;
	height:28px;
	background:transparent;
	cursor:pointer;
}
.pfc-zoom-row input[type="range"]::-webkit-slider-runnable-track{
	height:6px;
	border-radius:999px;
	background:#ded8cf;
	box-shadow:inset 0 1px 2px rgba(0,0,0,.12);
}
.pfc-zoom-row input[type="range"]::-webkit-slider-thumb{
	-webkit-appearance:none;
	appearance:none;
	width:20px;
	height:20px;
	margin-top:-7px;
	border:3px solid #fff;
	border-radius:50%;
	background:#1f1f1f;
	box-shadow:0 1px 5px rgba(0,0,0,.26);
}
.pfc-zoom-row input[type="range"]::-moz-range-track{
	height:6px;
	border-radius:999px;
	background:#ded8cf;
}
.pfc-zoom-row input[type="range"]::-moz-range-thumb{
	width:16px;
	height:16px;
	border:3px solid #fff;
	border-radius:50%;
	background:#1f1f1f;
}
.pfc-center-button{white-space:nowrap}

.pfc-quality{
	margin-top:14px;
	padding:11px 13px;
	border:1px solid #e3ddd4;
	border-radius:11px;
	background:#f8f6f2;
	color:#60584f;
	font-size:11px;
	line-height:1.45;
}
.pfc-quality.is-good{border-color:#b8dec8;background:#eff8f2;color:#176f43}
.pfc-quality.is-medium{border-color:#ead397;background:#fff8e5;color:#7a5500}
.pfc-quality.is-low{border-color:#ebbbbb;background:#fff1f1;color:#982929}

.pfc-preview-choice{display:flex;gap:10px;flex-wrap:wrap}
.pfc-preview-choice-button.is-active{background:#1f1f1f;color:#fff;border-color:#1f1f1f}
.pfc-panel-note{margin:12px 0 0;color:var(--pfc-muted);font-size:11px;line-height:1.5}

.pfc-tool-dock{
	position:sticky;
	z-index:25;
	bottom:12px;
	display:grid;
	grid-template-columns:minmax(0,1fr) auto;
	gap:12px;
	align-items:stretch;
	margin-top:14px;
	padding:10px;
	border:1px solid rgba(47,40,33,.14);
	border-radius:18px;
	background:rgba(255,255,255,.94);
	backdrop-filter:blur(14px);
	box-shadow:0 14px 38px rgba(38,31,24,.13);
}
.pfc-tool-buttons{
	display:grid;
	grid-template-columns:repeat(5,minmax(80px,1fr));
	gap:6px;
}
.pfc-tool-button{
	appearance:none;
	min-height:64px;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:4px;
	border:0;
	border-radius:12px;
	background:transparent;
	color:#655d55;
	font:inherit;
	font-size:10px;
	font-weight:800;
	cursor:pointer;
}
.pfc-tool-button:hover{background:#f3efe9;color:#222}
.pfc-tool-button.is-active{background:#1f1f1f;color:#fff}
.pfc-tool-button svg{width:21px;height:21px;fill:currentColor}
.pfc-order-summary{
	display:flex;
	align-items:center;
	gap:14px;
	padding-left:14px;
	border-left:1px solid var(--pfc-line);
}
.pfc-order-summary-text{
	min-width:150px;
	display:grid;
	grid-template-columns:1fr auto;
	gap:1px 10px;
	align-items:baseline;
}
.pfc-order-summary-text span{color:var(--pfc-muted);font-size:10px}
.pfc-order-summary-text strong{font-size:20px;text-align:right}
.pfc-order-summary-text small{
	grid-column:1/-1;
	max-width:240px;
	color:#8a8178;
	font-size:9px;
	line-height:1.3;
}
.pfc-add-button{
	appearance:none;
	min-width:188px;
	min-height:50px;
	border:0;
	border-radius:12px;
	background:#1f1f1f;
	color:#fff;
	padding:0 18px;
	font:inherit;
	font-size:12px;
	font-weight:900;
	cursor:pointer;
}
.pfc-add-button:hover:not(:disabled){background:#39332e}
.pfc-add-button:disabled{background:#c9c4bd;color:#fff;cursor:not-allowed}

.pfc-cart-notice{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	margin-top:14px;
	padding:14px 16px;
	border:1px solid #b8dec8;
	border-radius:14px;
	background:#eff8f2;
	color:#176f43;
}
.pfc-cart-notice[hidden]{display:none!important}
.pfc-cart-notice.is-error{border-color:#ebbbbb;background:#fff1f1;color:#982929}
.pfc-cart-notice strong{display:block;font-size:13px}
.pfc-cart-notice span{display:block;margin-top:2px;font-size:10px}
.pfc-cart-notice a{color:inherit;font-weight:800;font-size:11px;text-decoration:underline}

/* Interiérový náhled */
.pfc-interior-preview{
	padding:18px;
	border-radius:17px;
	background:#f7f4ef;
}
.pfc-interior-head{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:14px;
	margin:0 0 12px;
}
.pfc-interior-head>div:first-child strong{display:block;font-size:15px}
.pfc-interior-head>div:first-child span{display:block;margin-top:2px;color:var(--pfc-muted);font-size:10px}
.pfc-scene-tabs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pfc-scene-tab{
	appearance:none;
	border:1px solid #d8d1c8;
	border-radius:999px;
	background:#fff;
	color:#625b53;
	padding:7px 10px;
	font:inherit;
	font-size:9px;
	font-weight:800;
	cursor:pointer;
}
.pfc-scene-tab.is-active{background:#1f1f1f;color:#fff;border-color:#1f1f1f}
.pfc-room-stage{
	position:relative;
	height:560px;
	overflow:hidden;
	border:1px solid #e4ddd4;
	border-radius:14px;
	background:#eee9e1;
	isolation:isolate;
	box-shadow:inset 0 0 45px rgba(64,50,36,.04);
}
.pfc-room-stage:before{
	content:"";
	position:absolute;
	inset:0 0 31% 0;
	background:linear-gradient(180deg,#f8f5f0 0%,#eee7dc 100%);
	z-index:-4;
}
.pfc-room-stage:after{
	content:"";
	position:absolute;
	left:0;right:0;bottom:0;height:31%;
	background:linear-gradient(180deg,#bda98e 0%,#9d8669 100%);
	z-index:-4;
	box-shadow:inset 0 8px 12px rgba(80,58,38,.08);
}
.pfc-room-wall-decor{position:absolute;border-radius:50%;opacity:.22;filter:blur(.2px)}
.pfc-room-wall-decor-a{width:82px;height:118px;left:7%;top:12%;background:linear-gradient(140deg,#b3c1a8,#72806d);border-radius:55% 45% 60% 40%}
.pfc-room-wall-decor-b{width:52px;height:52px;right:9%;top:15%;background:#d4b184}
.pfc-scene-frame{
	--scene-frame-color:#d7d1c8;
	--scene-border:5px;
	position:absolute;
	box-sizing:border-box;
	padding:var(--scene-border);
	background:var(--scene-frame-color);
	box-shadow:0 7px 18px rgba(32,24,17,.22),inset 0 0 0 1px rgba(0,0,0,.12);
	z-index:6;
	transition:width .22s ease,height .22s ease,left .22s ease,top .22s ease,bottom .22s ease,background .2s ease;
}
.pfc-scene-frame:before{
	content:"";
	position:absolute;
	inset:0;
	pointer-events:none;
	opacity:.15;
	background:
		repeating-linear-gradient(94deg,rgba(255,255,255,.28) 0 1px,transparent 1px 5px),
		repeating-linear-gradient(88deg,rgba(0,0,0,.11) 0 1px,transparent 1px 10px);
	mix-blend-mode:soft-light;
}
.pfc-scene-frame.has-texture{
	border:var(--scene-border) solid transparent;
	padding:0;
	background:transparent;
	border-image-source:var(--scene-frame-texture);
	border-image-slice:25%;
	border-image-repeat:stretch;
}
.pfc-scene-photo-window{
	position:relative;
	width:100%;
	height:100%;
	overflow:hidden;
	background:#ece7df;
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.16);
}
.pfc-scene-photo{
	position:absolute;
	left:50%;
	top:50%;
	max-width:none!important;
	max-height:none!important;
	display:none;
	transform-origin:center center;
	pointer-events:none;
}
.pfc-scene-photo.is-visible{display:block}
.pfc-scene-empty{
	position:absolute;
	inset:0;
	display:grid;
	place-items:center;
	text-align:center;
	padding:4px;
	color:#9a9187;
	font-size:9px;
	background:linear-gradient(135deg,#f3f0eb,#e7e1d8);
}
.pfc-scene-empty.is-hidden{display:none}
.pfc-room-sofa,.pfc-room-bed,.pfc-room-desk{display:none;position:absolute;z-index:2}
.pfc-room-stage.is-living .pfc-room-sofa{
	display:block;left:18%;right:18%;bottom:17%;height:76px;
	border-radius:14px 14px 7px 7px;
	background:linear-gradient(180deg,#c9c3ba,#aaa299);
	box-shadow:0 14px 18px rgba(50,38,29,.16);
}
.pfc-room-stage.is-living .pfc-room-sofa:before{
	content:"";position:absolute;left:-7%;right:-7%;bottom:-9px;height:24px;border-radius:8px;background:#8f877f;z-index:-1;
}
.pfc-room-stage.is-living .pfc-room-sofa i{
	position:absolute;top:13px;width:28%;height:45px;border-radius:9px;background:linear-gradient(150deg,#e5e1db,#bdb6ad);
	box-shadow:inset 0 -5px 9px rgba(70,58,48,.08);
}
.pfc-room-stage.is-living .pfc-room-sofa i:nth-child(1){left:4%}
.pfc-room-stage.is-living .pfc-room-sofa i:nth-child(2){left:36%}
.pfc-room-stage.is-living .pfc-room-sofa i:nth-child(3){right:4%}
.pfc-room-stage.is-living .pfc-scene-frame{left:50%;top:15%;transform:translateX(-50%)}
.pfc-room-stage.is-bedroom:before{background:linear-gradient(180deg,#f5efe8 0%,#e9ded1 100%)}
.pfc-room-stage.is-bedroom:after{background:linear-gradient(180deg,#c3aa8c,#a48c70)}
.pfc-room-stage.is-bedroom .pfc-room-bed{
	display:block;left:13%;right:13%;bottom:8%;height:105px;
	background:linear-gradient(180deg,#f1ece5 0 38%,#c7b3a1 38% 100%);
	border-radius:9px 9px 2px 2px;
	box-shadow:0 14px 22px rgba(67,49,34,.18);
}
.pfc-room-stage.is-bedroom .pfc-room-bed:before{
	content:"";position:absolute;left:0;right:0;bottom:70px;height:80px;background:#bca38e;border-radius:15px 15px 0 0;z-index:-1;
}
.pfc-room-stage.is-bedroom .pfc-room-bed i{
	position:absolute;top:8px;width:32%;height:38px;border-radius:8px;background:#fffaf3;box-shadow:0 3px 8px rgba(70,55,42,.08);
}
.pfc-room-stage.is-bedroom .pfc-room-bed i:first-child{left:15%}
.pfc-room-stage.is-bedroom .pfc-room-bed i:last-child{right:15%}
.pfc-room-stage.is-bedroom .pfc-scene-frame{left:50%;top:11%;transform:translateX(-50%)}
.pfc-room-stage.is-desk:before{background:linear-gradient(180deg,#f7f5f1,#ebe5dc)}
.pfc-room-stage.is-desk:after{height:22%;background:linear-gradient(180deg,#b08c67,#89684b)}
.pfc-room-stage.is-desk .pfc-room-desk{
	display:block;left:8%;right:8%;bottom:15%;height:18px;background:linear-gradient(180deg,#9f744d,#7f593a);
	border-radius:3px;box-shadow:0 9px 14px rgba(64,43,28,.18);
}
.pfc-room-stage.is-desk .pfc-room-desk:before,.pfc-room-stage.is-desk .pfc-room-desk:after{
	content:"";position:absolute;top:16px;width:11px;height:68px;background:#715039;
}
.pfc-room-stage.is-desk .pfc-room-desk:before{left:8%}
.pfc-room-stage.is-desk .pfc-room-desk:after{right:8%}
.pfc-room-lamp{position:absolute;right:15%;bottom:15px;width:36px;height:56px;border-left:4px solid #50545a;transform:skewX(-10deg)}
.pfc-room-lamp:before{
	content:"";position:absolute;width:34px;height:20px;left:-9px;top:-8px;background:#555b60;
	clip-path:polygon(20% 0,80% 0,100% 100%,0 100%);
}
.pfc-room-plant{position:absolute;left:12%;bottom:16px;width:30px;height:24px;background:#9d704e;border-radius:4px 4px 8px 8px}
.pfc-room-plant:before{
	content:"";position:absolute;width:44px;height:52px;left:-8px;bottom:15px;
	background:
		radial-gradient(ellipse at 50% 100%,#65805d 0 35%,transparent 37%),
		radial-gradient(ellipse at 15% 60%,#718b68 0 25%,transparent 27%),
		radial-gradient(ellipse at 85% 55%,#60765a 0 25%,transparent 27%);
}
.pfc-room-stage.is-desk .pfc-scene-frame{
	left:50%;bottom:calc(15% + 18px);top:auto;transform:translateX(-50%);
	box-shadow:0 8px 14px rgba(39,28,19,.25);
}
.pfc-interior-foot{margin:9px 2px 0;color:#837b71;font-size:9px;line-height:1.4}

.pfc-error{
	max-width:900px;
	margin:30px auto;
	padding:16px;
	border:1px solid #e1b8b8;
	border-radius:10px;
	background:#fff2f2;
	color:#8c2222;
}

/* WooCommerce cart thumbnail */
.pfc-cart-thumbnail{object-fit:cover}

@media(max-width:980px){
	.pfc-preview-shell{min-height:590px;padding:70px 34px 38px}
	.pfc-frame{width:min(58%,360px)}
	.pfc-studio.is-landscape .pfc-frame{width:min(84%,700px)}
	.pfc-size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.pfc-tool-dock{grid-template-columns:1fr}
	.pfc-order-summary{border-left:0;border-top:1px solid var(--pfc-line);padding:10px 0 0}
	.pfc-order-summary-text{flex:1}
}

@media(max-width:720px){
	.pfc-app{margin:16px auto 40px}
	.pfc-studio-head{align-items:flex-start}
	.pfc-head-summary{display:none}
	.pfc-studio-head h2{font-size:32px}
	.pfc-studio-head p{font-size:13px}
	.pfc-stage-card{padding:7px;border-radius:18px}
	.pfc-preview-mode-switch{top:15px;right:15px}
	.pfc-preview-mode{padding:8px 9px;font-size:10px}
	.pfc-preview-shell{min-height:480px;padding:60px 16px 28px;border-radius:13px}
	.pfc-frame{--frame-border:14px;width:min(60%,290px)}
	.pfc-studio.is-landscape .pfc-frame{width:min(92%,590px)}
	.pfc-empty{padding:12px;gap:6px}
	.pfc-empty strong{font-size:13px}
	.pfc-empty-upload{font-size:9px;padding:8px 9px}
	.pfc-upload-mark{width:38px;height:38px}
	.pfc-upload-mark svg{width:20px;height:20px}
	.pfc-stage-caption{font-size:10px}
	.pfc-frame-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
	.pfc-crop-tools{grid-template-columns:38px 1fr 38px}
	.pfc-center-button{grid-column:1/-1}
	.pfc-zoom-row span{display:none}
	.pfc-tool-dock{bottom:7px;padding:7px;border-radius:15px}
	.pfc-tool-buttons{grid-template-columns:repeat(5,minmax(54px,1fr));gap:3px}
	.pfc-tool-button{min-height:56px;padding:4px 2px;font-size:8px}
	.pfc-tool-button svg{width:19px;height:19px}
	.pfc-order-summary{display:grid;grid-template-columns:1fr auto;gap:8px}
	.pfc-order-summary-text{min-width:0}
	.pfc-order-summary-text strong{font-size:18px}
	.pfc-add-button{min-width:150px;min-height:46px;padding:0 12px;font-size:10px}
	.pfc-room-stage{height:420px}
	.pfc-interior-head{flex-direction:column}
	.pfc-scene-tabs{justify-content:flex-start}
}

@media(max-width:520px){
	.pfc-studio-head h2{font-size:28px}
	.pfc-studio-head p{font-size:12px}
	.pfc-preview-shell{min-height:420px;padding-top:56px}
	.pfc-frame{width:min(66%,245px)}
	.pfc-studio.is-landscape .pfc-frame{width:min(95%,470px)}
	.pfc-photo-strip-wrap{padding:10px}
	.pfc-photo-thumb{flex-basis:78px;height:62px}
	.pfc-tool-content{padding:16px}
	.pfc-panel-title strong{font-size:15px}
	.pfc-size-grid{grid-template-columns:1fr 1fr}
	.pfc-size-button{padding:11px 10px;font-size:11px}
	.pfc-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.pfc-order-summary{grid-template-columns:1fr}
	.pfc-add-button{width:100%}
	.pfc-order-summary-text{grid-template-columns:1fr auto}
	.pfc-cart-notice{align-items:flex-start;flex-direction:column}
	.pfc-room-stage{height:330px}
}

/* v0.2.2 – čistší editor, větší fotografie a zoom přímo pod náhledem */
.pfc-stage-card{
	padding:0;
	border:0;
	border-radius:0;
	background:transparent;
	box-shadow:none;
}
.pfc-preview-shell{
	min-height:650px;
	padding:58px 18px 24px;
	border-radius:0;
	background:transparent;
}
.pfc-frame{
	width:min(68%,520px);
}
.pfc-studio.is-landscape .pfc-frame{
	width:min(94%,960px);
}
.pfc-stage-caption{
	padding:7px 2px 0;
}
.pfc-quick-zoom{
	display:grid;
	grid-template-columns:40px minmax(160px,1fr) 40px auto minmax(190px,auto);
	gap:10px;
	align-items:center;
	margin:6px 0 0;
	padding:10px 12px;
	border-top:1px solid var(--pfc-line);
	border-bottom:1px solid var(--pfc-line);
	background:#fff;
}
.pfc-quick-zoom[hidden]{display:none!important}
.pfc-quick-zoom .pfc-quality{
	margin:0;
	padding:8px 10px;
	font-size:10px;
}
.pfc-tool-dock{
	margin-top:8px;
}
.pfc-tool-buttons{
	grid-template-columns:repeat(4,minmax(80px,1fr));
}

@media(max-width:980px){
	.pfc-preview-shell{
		min-height:560px;
		padding:48px 8px 20px;
	}
	.pfc-frame{width:min(74%,440px)}
	.pfc-studio.is-landscape .pfc-frame{width:min(98%,820px)}
	.pfc-quick-zoom{
		grid-template-columns:38px minmax(120px,1fr) 38px auto;
	}
	.pfc-quick-quality{grid-column:1/-1}
}

@media(max-width:720px){
	.pfc-app{
		margin:0 auto 34px;
		padding:0;
	}
	.pfc-studio-head{
		display:none;
	}
	.pfc-preview-mode-switch{
		display:none;
	}
	.pfc-stage-card{
		padding:0;
		border-radius:0;
	}
	.pfc-preview-shell{
		min-height:500px;
		padding:10px 0 12px;
		border-radius:0;
	}
	.pfc-frame{
		--frame-border:14px;
		width:min(88%,340px);
	}
	.pfc-studio.is-landscape .pfc-frame{
		width:100%;
	}
	.pfc-stage-caption{
		display:none;
	}
	.pfc-quick-zoom{
		grid-template-columns:38px minmax(0,1fr) 38px;
		gap:7px;
		margin:0;
		padding:8px 4px 6px;
		border-top:1px solid #ece7e0;
		border-bottom:0;
	}
	.pfc-quick-zoom .pfc-zoom-row span{
		display:none;
	}
	.pfc-quick-zoom .pfc-center-button{
		grid-column:1/-1;
		justify-self:center;
		padding:7px 12px;
		font-size:9px;
		min-height:0;
	}
	.pfc-quick-quality{
		grid-column:1/-1;
		text-align:center;
		border:0!important;
		background:transparent!important;
		padding:2px 4px!important;
		font-size:9px!important;
	}
	.pfc-tool-dock{
		position:relative;
		bottom:auto;
		grid-template-columns:1fr;
		gap:5px;
		margin-top:0;
		padding:4px 0 0;
		border:0;
		border-radius:0;
		background:transparent;
		box-shadow:none;
		backdrop-filter:none;
	}
	.pfc-tool-buttons{
		grid-template-columns:repeat(4,minmax(0,1fr));
		gap:2px;
		padding:0 2px;
	}
	.pfc-tool-button{
		min-height:54px;
		border-radius:9px;
		padding:4px 2px;
		font-size:9px;
	}
	.pfc-tool-button svg{
		width:21px;
		height:21px;
	}
	.pfc-order-summary{
		margin-top:4px;
		padding:9px 4px 0;
		border-left:0;
		border-top:1px solid var(--pfc-line);
	}
	.pfc-tool-panel{
		margin-top:6px;
		border-radius:12px;
		box-shadow:none;
	}
	.pfc-photo-strip-wrap{
		margin-top:8px;
		border-radius:12px;
		box-shadow:none;
	}
}

@media(max-width:520px){
	.pfc-preview-shell{
		min-height:470px;
		padding:6px 0 10px;
	}
	.pfc-frame{
		width:min(91%,330px);
	}
	.pfc-studio.is-landscape .pfc-frame{
		width:100%;
	}
	.pfc-empty{
		padding:10px;
	}
	.pfc-empty>span:not(.pfc-upload-mark),
	.pfc-empty small{
		display:none;
	}
	.pfc-empty strong{
		font-size:13px;
	}
	.pfc-tool-content{
		padding:13px 12px;
	}
	.pfc-panel-title strong{
		font-size:14px;
	}
	.pfc-order-summary{
		grid-template-columns:1fr;
	}
}


/* v0.2.3 – mobile-first editor: nejdřív jen nahrání, potom piktogramy a vždy jediný aktivní panel */
.pfc-editor-controls[hidden]{display:none!important}
.pfc-editor-controls{margin-top:8px}
.pfc-editor-controls .pfc-tool-dock{
	grid-template-columns:1fr;
	margin-top:0;
}
.pfc-editor-controls .pfc-tool-buttons{
	grid-template-columns:repeat(5,minmax(72px,1fr));
}
.pfc-editor-controls>.pfc-order-summary{
	margin-top:10px;
	padding:10px 0 0;
	border-left:0;
	border-top:1px solid var(--pfc-line);
	justify-content:flex-end;
}
.pfc-editor-controls>.pfc-tool-panel{margin-top:6px}

@media(max-width:720px){
	/* První obrazovka: pouze velká čtvercová plocha pro nahrání. */
	.pfc-app.is-empty .pfc-stage-card,
	.pfc-app.is-empty .pfc-preview-panel{
		width:100%;
	}
	.pfc-app.is-empty .pfc-preview-shell{
		width:100vw;
		max-width:100vw;
		min-height:0;
		aspect-ratio:1/1;
		margin-left:calc(50% - 50vw);
		padding:0;
		background:#f7f4ef;
		overflow:hidden;
	}
	.pfc-app.is-empty .pfc-frame{
		width:100%!important;
		max-width:none!important;
		height:100%;
		padding:0;
		border:0;
		background:transparent;
		box-shadow:none;
	}
	.pfc-app.is-empty .pfc-frame:before{display:none}
	.pfc-app.is-empty .pfc-photo-window{
		height:100%;
		aspect-ratio:1/1!important;
		border:2px dashed #c9c1b7;
		box-sizing:border-box;
		box-shadow:none;
		background:#f7f4ef;
	}
	.pfc-app.is-empty .pfc-empty{
		background:linear-gradient(180deg,#fbfaf8,#f2eee8);
	}
	.pfc-app.is-empty .pfc-empty strong{font-size:16px}
	.pfc-app.is-empty .pfc-empty-upload{
		padding:11px 15px;
		font-size:11px;
	}

	/* Po nahrání je fotografie co největší a ovládání začíná hned pod ní. */
	.pfc-app.has-photos .pfc-preview-shell{
		width:100vw;
		max-width:100vw;
		min-height:0;
		margin-left:calc(50% - 50vw);
		padding:6px 0 4px;
		background:transparent;
	}
	.pfc-app.has-photos .pfc-frame{
		width:min(94vw,440px)!important;
		max-width:94vw!important;
	}
	.pfc-app.has-photos.is-landscape .pfc-frame{
		width:100vw!important;
		max-width:100vw!important;
	}

	.pfc-editor-controls{
		width:100vw;
		max-width:100vw;
		margin:0 0 0 calc(50% - 50vw);
	}
	.pfc-editor-controls .pfc-tool-dock{
		position:relative;
		bottom:auto;
		padding:0;
		border:0;
		border-top:1px solid #ece7e0;
		border-bottom:1px solid #ece7e0;
		border-radius:0;
		background:#fff;
		box-shadow:none;
		backdrop-filter:none;
	}
	.pfc-editor-controls .pfc-tool-buttons{
		grid-template-columns:repeat(5,minmax(0,1fr));
		gap:0;
		padding:0;
	}
	.pfc-editor-controls .pfc-tool-button{
		min-height:60px;
		border-radius:0;
		padding:6px 1px;
		font-size:8px;
	}
	.pfc-editor-controls .pfc-tool-button.is-active{
		background:#1f1f1f;
		color:#fff;
	}
	.pfc-editor-controls .pfc-tool-button svg{width:22px;height:22px}

	.pfc-editor-controls>.pfc-tool-panel{
		margin:0;
		border-left:0;
		border-right:0;
		border-top:0;
		border-radius:0;
		box-shadow:none;
	}
	.pfc-editor-controls .pfc-tool-content{padding:13px 12px 14px}
	.pfc-editor-controls .pfc-panel-title{margin-bottom:11px}
	.pfc-editor-controls .pfc-panel-title span{font-size:9px}
	.pfc-editor-controls .pfc-panel-title strong{font-size:14px}
	.pfc-editor-controls .pfc-panel-close{width:28px;height:28px;font-size:19px}

	/* Ořez/zoom je jedna samostatná část a je výchozí po nahrání fotografie. */
	.pfc-editor-controls .pfc-quick-zoom{
		grid-template-columns:40px minmax(0,1fr) 40px;
		gap:7px;
		margin:0;
		padding:2px 0 0;
		border:0;
		background:transparent;
	}
	.pfc-editor-controls .pfc-quick-zoom .pfc-zoom-row span{display:none}
	.pfc-editor-controls .pfc-quick-zoom .pfc-center-button{
		grid-column:1/-1;
		justify-self:center;
		padding:7px 13px;
		font-size:9px;
		min-height:0;
	}
	.pfc-editor-controls .pfc-quick-quality{
		grid-column:1/-1;
		margin:0;
		text-align:center;
		border:0!important;
		background:transparent!important;
		padding:2px 4px!important;
		font-size:9px!important;
	}
	.pfc-editor-controls [data-tool-content="crop"] .pfc-panel-note{
		margin-top:7px;
		text-align:center;
		font-size:9px;
	}

	.pfc-editor-controls>.pfc-order-summary{
		display:grid;
		grid-template-columns:1fr auto;
		gap:8px;
		align-items:center;
		margin:0;
		padding:10px 10px 0;
		border-top:1px solid var(--pfc-line);
	}
	.pfc-editor-controls>.pfc-order-summary .pfc-order-summary-text{min-width:0}
	.pfc-editor-controls>.pfc-order-summary .pfc-add-button{
		min-width:150px;
		min-height:46px;
		padding:0 12px;
		font-size:10px;
	}

	.pfc-photo-strip-wrap{
		width:100vw;
		max-width:100vw;
		margin:8px 0 0 calc(50% - 50vw);
		padding:10px;
		border-left:0;
		border-right:0;
		border-radius:0;
		box-shadow:none;
	}
}

@media(max-width:520px){
	.pfc-app.is-empty .pfc-preview-shell{aspect-ratio:1/1;min-height:0;padding:0}
	.pfc-app.has-photos .pfc-frame{width:94vw!important;max-width:94vw!important}
	.pfc-app.has-photos.is-landscape .pfc-frame{width:100vw!important;max-width:100vw!important}
	.pfc-editor-controls>.pfc-order-summary{grid-template-columns:1fr}
	.pfc-editor-controls>.pfc-order-summary .pfc-add-button{width:100%}
}


/* v0.2.4 – mobil: maximálně jednoduché ovládání */
.pfc-photo-window{touch-action:pan-y;}
.pfc-photo-window.is-crop-active{touch-action:none;cursor:grab;}
.pfc-photo-window.is-crop-active:active{cursor:grabbing;}

@media(max-width:720px){
	/* Náhled co nejvýš a bez zbytečných mezer. */
	.pfc-app{margin-top:0!important;}
	.pfc-app.has-photos .pfc-preview-shell{padding-top:0!important;}
	.pfc-app.has-photos .pfc-frame{margin-top:0;}

	/* Po nahrání jsou nejdřív jen piktogramy. Panel se otevře až po klepnutí. */
	.pfc-editor-controls{margin-top:0!important;}
	.pfc-editor-controls .pfc-tool-dock{border-top:0;}

	/* Informační nadpisy nejsou na mobilu potřeba. */
	.pfc-editor-controls .pfc-panel-title{display:none!important;}
	.pfc-editor-controls .pfc-panel-note{display:none!important;}
	.pfc-editor-controls .pfc-upload-status:not(.is-error){display:none!important;}

	/* Velikosti: pouze samotný rozměr. Nevhodné formáty se vůbec nenabízejí. */
	.pfc-editor-controls .pfc-size-grid{
		grid-template-columns:repeat(3,minmax(0,1fr));
		gap:6px;
	}
	.pfc-editor-controls .pfc-size-button{
		justify-content:center;
		min-height:38px;
		padding:7px 5px;
		border-radius:8px;
		text-align:center;
		font-size:10px;
		font-weight:700;
	}
	.pfc-editor-controls .pfc-size-button small{display:none!important;}
	.pfc-editor-controls .pfc-size-button.is-unavailable{display:none!important;}
	.pfc-editor-controls .pfc-size-availability{display:none;}
	.pfc-editor-controls .pfc-size-availability.is-error{
		display:block;
		margin-top:7px;
		padding:7px 8px;
		border:0;
		border-radius:8px;
		background:#fff2f2;
		color:#8c2222;
		text-align:center;
		font-size:9px;
	}

	/* Rámy o něco subtilnější. */
	.pfc-editor-controls .pfc-frame-grid{gap:6px;}
	.pfc-editor-controls .pfc-frame-button{
		padding:7px;
		border-radius:8px;
		font-size:10px;
	}
	.pfc-editor-controls .pfc-swatch{height:22px;}

	/* Ořez jako jediný režim, ve kterém dotyk po fotografii posouvá snímek. */
	.pfc-editor-controls [data-tool-content="crop"]{padding-top:10px;}
	.pfc-editor-controls .pfc-quick-zoom{padding-top:0;}
}

@media(max-width:390px){
	.pfc-editor-controls .pfc-size-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* v0.2.5 – zjednodušený desktopový editor */
.pfc-stage-caption,
.pfc-preview-mode-switch,
.pfc-studio-head,
.pfc-editor-controls .pfc-panel-title{display:none!important;}

.pfc-photo-thumb.is-order-selected{
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.08),0 0 0 2px rgba(31,31,31,.14);
}
.pfc-thumb-order.is-selected{background:#222;border-color:#fff;}
.pfc-thumb-state{right:31px;left:auto;}
.pfc-thumb-state.is-ready{background:#23814d;color:#fff;}

.pfc-frame-info{
	min-height:18px;
	margin-top:8px;
	color:#6d655d;
	font-size:10px;
	line-height:1.35;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
.pfc-size-availability.is-good{border-color:#cbe3d3;background:#f2f8f4;color:#236b40;}
.pfc-size-availability.is-medium{border-color:#ead89d;background:#fff9e8;color:#765700;}

@media(min-width:721px){
	/* Divi/WordPress title is hidden by pfc-global.css; configurator starts with the image. */
	.pfc-app{margin-top:0!important;}
	.pfc-stage-card{margin-top:0!important;}
	.pfc-preview-shell{padding-top:18px;}

	/* Tabs and the active content behave like one compact control bar. */
	.pfc-editor-controls{margin-top:4px;}
	.pfc-editor-controls .pfc-tool-dock{margin-top:0;}
	.pfc-editor-controls>.pfc-tool-panel{
		margin-top:0;
		border-top-left-radius:0;
		border-top-right-radius:0;
		box-shadow:none;
	}
	.pfc-editor-controls .pfc-tool-content{padding:9px 12px 10px;}
	.pfc-editor-controls .pfc-tool-buttons{grid-template-columns:repeat(5,minmax(0,1fr));}

	/* Fotografie: miniatury jsou první věc hned pod piktogramy. */
	.pfc-photo-strip-inline{
		margin:0 0 7px;
		padding:0;
		border:0;
		border-radius:0;
		background:transparent;
		box-shadow:none;
	}
	.pfc-photo-strip{gap:7px;padding:0 0 5px;}
	.pfc-photo-thumb{flex-basis:86px;height:66px;border-radius:9px;}
	.pfc-photo-thumb img{border-radius:6px;}
	.pfc-thumb-number{display:none!important;}
	.pfc-photo-actions{display:flex;gap:7px;margin-top:2px;}
	.pfc-photo-actions button{min-height:32px;padding:6px 10px;font-size:9px;}
	.pfc-upload-status{margin-top:5px;min-height:14px;font-size:9px;}

	/* Velikosti: šest kompaktních dlaždic v jediném řádku. */
	.pfc-size-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;}
	.pfc-size-button{
		justify-content:center;
		min-height:40px;
		padding:7px 5px;
		border:0;
		border-radius:8px;
		color:#fff;
		text-align:center;
		font-size:10px;
		font-weight:800;
	}
	.pfc-size-button small{display:none!important;}
	.pfc-size-button.is-quality-good{background:#4f8562;}
	.pfc-size-button.is-quality-medium{background:#b58a2b;}
	.pfc-size-button.is-quality-low{background:#a94f4f;opacity:1;}
	.pfc-size-button:disabled{opacity:1;cursor:not-allowed;}
	.pfc-size-button.is-active{
		box-shadow:0 0 0 2px #fff,0 0 0 4px #24211e;
	}
	.pfc-size-availability{
		min-height:16px;
		margin:7px 0 0;
		padding:0;
		border:0!important;
		background:transparent!important;
		font-size:9px;
		line-height:1.35;
	}
	.pfc-apply-all{margin-top:7px;padding:6px 9px;font-size:9px;}

	/* Rámy: jediný řádek a krátký popis pod ním. */
	.pfc-frame-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
	.pfc-frame-button{padding:7px;border-radius:8px;font-size:9px;gap:5px;}
	.pfc-swatch{height:22px;border-radius:5px;}

	/* Ořez a náhled bez mezery po titulku. */
	.pfc-crop-tools,.pfc-quick-zoom{margin-top:0;}
	.pfc-preview-choice{margin-top:0;}
}

/* v0.2.5 – informační popisky uvnitř panelů nejsou potřeba ani na desktopu. */
@media(min-width:721px){
	.pfc-editor-controls .pfc-panel-note{display:none!important;}
}


/* v0.2.6 – desktop: prázdný náhled je na šířku, výběr objednávaných fotografií bez černých checkboxů. */
.pfc-thumb-order,.pfc-thumb-badge{display:none!important;}
.pfc-photo-thumb.is-order-selected{
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.07),0 0 0 2px rgba(25,114,68,.30);
}
.pfc-order-toggle{
	appearance:none;
	border:1px solid #cfc7bd;
	border-radius:9px;
	background:#fff;
	color:#2e2a26;
	padding:7px 10px;
	font:inherit;
	font-size:9px;
	font-weight:800;
	cursor:pointer;
}
.pfc-order-toggle:hover:not(:disabled){border-color:#197244;color:#197244;}
.pfc-order-toggle.is-selected{background:#197244;border-color:#197244;color:#fff;}
.pfc-order-toggle:disabled{opacity:.42;cursor:not-allowed;}

@media(min-width:721px){
	.pfc-app.is-empty .pfc-preview-shell{
		min-height:455px;
		padding:18px 28px;
	}
	.pfc-app.is-empty .pfc-frame{
		width:min(72%,620px)!important;
		max-width:620px!important;
	}
	.pfc-app.is-empty .pfc-photo-window{
		aspect-ratio:3/2!important;
	}
	.pfc-photo-actions{align-items:center;flex-wrap:wrap;}
}

/* v0.2.7 – kompaktnější desktop/notebook: menší hlavní náhled a stejně široké podmenu. */
@media(min-width:721px){
	.pfc-app{
		width:calc(100% - 40px);
		max-width:1040px;
		margin-left:auto;
		margin-right:auto;
	}

	/* Hlavní pracovní plocha je na notebooku nižší a rámeček nepřeroste přes rozumnou velikost. */
	.pfc-preview-shell{
		min-height:500px;
		padding:14px 18px 16px;
	}
	.pfc-frame{
		width:min(48%,330px);
	}
	.pfc-studio.is-landscape .pfc-frame{
		width:min(76%,700px);
	}

	/* Prázdný vstup zůstává na šířku, ale je kompaktnější. */
	.pfc-app.is-empty .pfc-preview-shell{
		min-height:390px;
		padding:14px 22px;
	}
	.pfc-app.is-empty .pfc-frame{
		width:min(68%,560px)!important;
		max-width:560px!important;
	}

	/* Podmenu kopíruje šířku hlavního náhledu a je nižší. */
	.pfc-editor-controls{
		width:100%;
		max-width:1040px;
		margin-left:auto;
		margin-right:auto;
	}
	.pfc-editor-controls .pfc-tool-dock{
		padding:6px 8px;
		border-radius:14px;
	}
	.pfc-editor-controls .pfc-tool-button{
		min-height:52px;
		padding:4px 3px;
		gap:3px;
		border-radius:9px;
		font-size:9px;
	}
	.pfc-editor-controls .pfc-tool-button svg{
		width:18px;
		height:18px;
	}
	.pfc-editor-controls>.pfc-tool-panel{
		border-radius:0 0 12px 12px;
	}
	.pfc-editor-controls .pfc-tool-content{
		padding:7px 10px 8px;
	}
	.pfc-editor-controls>.pfc-order-summary{
		margin-top:7px;
		padding-top:8px;
	}
}

/* Užší notebook / malé desktopové okno. */
@media(min-width:721px) and (max-width:1100px){
	.pfc-app{
		width:calc(100% - 24px);
		max-width:940px;
	}
	.pfc-preview-shell{
		min-height:455px;
	}
	.pfc-frame{
		width:min(48%,310px);
	}
	.pfc-studio.is-landscape .pfc-frame{
		width:min(76%,640px);
	}
	.pfc-app.is-empty .pfc-preview-shell{
		min-height:360px;
	}
	.pfc-app.is-empty .pfc-frame{
		width:min(66%,520px)!important;
		max-width:520px!important;
	}
}

/* v0.2.8 – vizuál podle schváleného mockupu: čistší karty, trvalý zoom pod obrazem a mobilní ovládání. */
.pfc-global-zoom{
	width:min(560px,72%);
	margin:8px auto 7px;
	padding:0;
	border:0;
	background:transparent;
	grid-template-columns:40px minmax(0,1fr) 40px;
	gap:10px;
}
.pfc-global-zoom .pfc-zoom-row span{display:none!important}
.pfc-global-zoom .pfc-zoom-step{
	width:38px;
	height:38px;
	border:1px solid #ded9d2;
	border-radius:10px;
	background:#fff;
	box-shadow:0 4px 12px rgba(31,31,31,.06);
	font-size:21px;
}
.pfc-global-zoom .pfc-zoom-row input[type="range"]::-webkit-slider-runnable-track{height:4px;background:#ddd8d1;box-shadow:none}
.pfc-global-zoom .pfc-zoom-row input[type="range"]::-webkit-slider-thumb{width:19px;height:19px;margin-top:-8px;background:#fff;border:1px solid #ddd7cf;box-shadow:0 2px 8px rgba(0,0,0,.16)}
.pfc-global-zoom .pfc-zoom-row input[type="range"]::-moz-range-track{height:4px;background:#ddd8d1}
.pfc-global-zoom .pfc-zoom-row input[type="range"]::-moz-range-thumb{width:17px;height:17px;background:#fff;border:1px solid #ddd7cf;box-shadow:0 2px 8px rgba(0,0,0,.16)}

.pfc-photo-panel-meta{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin:0 0 9px;
}
.pfc-photo-panel-meta strong{font-size:13px;line-height:1.2}
.pfc-photo-panel-meta span{color:#756e67;font-size:10px;white-space:nowrap}

.pfc-thumb-select{
	position:absolute;
	right:6px;
	bottom:6px;
	width:24px;
	height:24px;
	display:grid;
	place-items:center;
	padding:0;
	border:2px solid rgba(255,255,255,.96);
	border-radius:50%;
	background:rgba(255,255,255,.94);
	color:#fff;
	font:inherit;
	font-size:13px;
	font-weight:900;
	cursor:pointer;
	box-shadow:0 1px 6px rgba(0,0,0,.20);
}
.pfc-thumb-select:before{
	content:"";
	width:10px;
	height:10px;
	border:1px solid #aaa29a;
	border-radius:50%;
}
.pfc-thumb-select.is-selected{background:#3c9a54;border-color:#fff}
.pfc-thumb-select.is-selected:before{display:none}
.pfc-thumb-state{right:34px}

.pfc-crop-compact{display:flex;align-items:center;justify-content:center;gap:10px;min-height:40px}
.pfc-crop-compact .pfc-center-button{min-width:180px}
.pfc-crop-compact .pfc-quality{display:none!important}

@media(min-width:721px){
	/* Desktop zůstává kompaktní, ale přebírá čistší rytmus schváleného návrhu. */
	.pfc-stage-card{border-color:#eee9e3;box-shadow:0 16px 42px rgba(40,32,24,.07)}
	.pfc-editor-controls .pfc-tool-dock{
		background:#fff;
		border-color:#ece7e0;
		box-shadow:0 10px 26px rgba(40,32,24,.07);
	}
	.pfc-editor-controls>.pfc-tool-panel{
		border-color:#ece7e0;
		background:#fff;
	}
	.pfc-global-zoom{margin-top:6px;margin-bottom:6px}
}

@media(max-width:720px){
	/* Celý konfigurátor na mobilu má lehké, vzdušné karty jako ve schváleném mockupu. */
	.pfc-app{background:#fbfaf8;margin-bottom:0!important}
	.pfc-stage-card{border:0;background:transparent;box-shadow:none}

	/* Prázdný stav: rám na šířku, žádný vysoký čtverec. */
	.pfc-app.is-empty .pfc-preview-shell{
		width:100%;
		max-width:100%;
		aspect-ratio:3/2;
		margin:0;
		padding:15px 14px;
		background:transparent;
	}
	.pfc-app.is-empty .pfc-frame{
		width:100%!important;
		max-width:100%!important;
		height:auto;
		padding:11px;
		border:0;
		background:var(--frame-color);
		box-shadow:0 12px 26px rgba(41,31,22,.16),inset 0 0 0 1px rgba(0,0,0,.12);
	}
	.pfc-app.is-empty .pfc-frame:before{display:block}
	.pfc-app.is-empty .pfc-photo-window{
		height:auto;
		aspect-ratio:3/2!important;
		border:0;
		background:#f8f6f2;
		box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
	}
	.pfc-app.is-empty .pfc-empty{
		gap:7px;
		padding:16px;
		background:linear-gradient(180deg,#fbfaf8,#f5f1eb);
	}
	.pfc-app.is-empty .pfc-upload-mark{width:44px;height:44px}
	.pfc-app.is-empty .pfc-empty strong{font-size:15px}
	.pfc-app.is-empty .pfc-empty>span:not(.pfc-upload-mark){font-size:10px}
	.pfc-app.is-empty .pfc-empty-upload{
		min-width:180px;
		padding:10px 15px;
		border-radius:10px;
		font-size:10px;
	}
	.pfc-app.is-empty .pfc-empty small{display:none}

	/* Po nahrání: velký rám, ale ne přes výšku celé obrazovky. */
	.pfc-app.has-photos .pfc-preview-shell{
		box-sizing:border-box;
		width:100%;
		max-width:100%;
		margin:0;
		padding:12px 10px 4px!important;
		background:#fbfaf8;
	}
	.pfc-app.has-photos .pfc-frame,
	.pfc-app.has-photos.is-landscape .pfc-frame{
		--frame-border:10px;
		width:calc(100% - 24px)!important;
		max-width:590px!important;
		margin-inline:auto;
		box-shadow:0 14px 28px rgba(40,30,20,.16),inset 0 0 0 1px rgba(0,0,0,.11);
	}

	/* Zoom je vždy těsně pod hlavním náhledem, nikoli ukrytý v kartě Ořez. */
	.pfc-global-zoom{
		width:min(76vw,410px);
		grid-template-columns:38px minmax(0,1fr) 38px;
		gap:9px;
		margin:7px auto 10px;
		padding:0;
		border:0;
		background:transparent;
	}

	/* Pět hlavních funkcí v jedné bílé kartě. */
	.pfc-editor-controls{
		width:100%;
		max-width:100%;
		margin:0!important;
		padding:0 10px 14px;
		background:#fbfaf8;
	}
	.pfc-editor-controls .pfc-tool-dock{
		border:1px solid #eee9e3!important;
		border-radius:18px!important;
		background:#fff!important;
		box-shadow:0 9px 24px rgba(38,31,24,.07)!important;
		overflow:hidden;
	}
	.pfc-editor-controls .pfc-tool-buttons{padding:0 5px}
	.pfc-editor-controls .pfc-tool-button{
		min-height:72px;
		padding:8px 2px;
		border-radius:14px;
		font-size:10px;
		color:#1f1f1f;
		gap:5px;
	}
	.pfc-editor-controls .pfc-tool-button svg{width:24px;height:24px}
	.pfc-editor-controls .pfc-tool-button.is-active{
		background:linear-gradient(180deg,#222,#171717);
		color:#fff;
	}

	/* Aktivní panel je samostatná měkká karta přímo pod záložkami. */
	.pfc-editor-controls>.pfc-tool-panel{
		margin-top:10px;
		border:1px solid #eee9e3;
		border-radius:18px;
		background:#fff;
		box-shadow:0 9px 24px rgba(38,31,24,.06);
		overflow:hidden;
	}
	.pfc-editor-controls .pfc-tool-content{padding:14px 13px 15px}

	/* Fotografie: úzký horizontální pás, zelená fajfka jen pro skutečně vybranou a připravenou fotku. */
	.pfc-photo-panel-meta{margin-bottom:10px}
	.pfc-photo-panel-meta strong{font-size:15px}
	.pfc-photo-panel-meta span{font-size:10px}
	.pfc-photo-strip-inline{
		width:100%!important;
		max-width:100%!important;
		margin:0!important;
		padding:0!important;
		border:0!important;
		background:transparent!important;
	}
	.pfc-photo-strip{gap:8px;padding:0 1px 7px}
	.pfc-photo-thumb{
		flex:0 0 76px;
		height:88px;
		padding:2px;
		border-radius:12px;
		background:#eee9e2;
	}
	.pfc-photo-thumb img{border-radius:9px}
	.pfc-photo-thumb.is-active{border-color:#1f1f1f}
	.pfc-photo-thumb.is-order-selected{box-shadow:0 0 0 2px rgba(60,154,84,.23)}
	.pfc-thumb-remove{width:22px;height:22px;right:5px;top:5px;background:rgba(255,255,255,.95);color:#1f1f1f;font-size:15px}
	.pfc-thumb-select{right:5px;bottom:5px;width:25px;height:25px}
	.pfc-thumb-state{right:auto;left:5px;top:5px}
	.pfc-photo-actions{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:8px;
		margin-top:4px;
	}
	.pfc-photo-actions .pfc-primary-soft,
	.pfc-photo-actions .pfc-danger-soft{
		min-height:40px;
		border-radius:10px;
		font-size:10px;
	}
	.pfc-photo-actions .pfc-primary-soft{background:#fff;color:#1f1f1f;border-color:#ded8d0}
	.pfc-photo-actions .pfc-order-toggle{display:none!important}
	.pfc-upload-status{margin-top:6px}

	/* Velikosti: všechny varianty zůstávají viditelné v jednom řádku se srozumitelnou barvou kvality. */
	.pfc-editor-controls .pfc-size-grid{
		display:grid;
		grid-auto-flow:column;
		grid-auto-columns:minmax(76px,1fr);
		grid-template-columns:none;
		gap:7px;
		overflow-x:auto;
		padding:1px 1px 5px;
		scrollbar-width:none;
	}
	.pfc-editor-controls .pfc-size-grid::-webkit-scrollbar{display:none}
	.pfc-editor-controls .pfc-size-button{
		display:flex!important;
		min-height:44px;
		justify-content:center;
		padding:8px 8px;
		border:0;
		border-radius:10px;
		color:#fff;
		font-size:11px;
		font-weight:800;
		opacity:1!important;
	}
	.pfc-editor-controls .pfc-size-button.is-quality-good{background:#58a649}
	.pfc-editor-controls .pfc-size-button.is-quality-medium{background:#efad35}
	.pfc-editor-controls .pfc-size-button.is-quality-low,
	.pfc-editor-controls .pfc-size-button.is-unavailable{display:flex!important;background:#df4d43;color:#fff;border-style:solid}
	.pfc-editor-controls .pfc-size-button.is-active{box-shadow:0 0 0 2px #fff,0 0 0 4px #276d31}
	.pfc-editor-controls .pfc-size-availability{
		display:block!important;
		min-height:18px;
		margin:8px 0 0;
		padding:0 2px;
		border:0!important;
		background:transparent!important;
		font-size:9px;
		line-height:1.35;
		text-align:left;
	}
	.pfc-editor-controls .pfc-size-availability.is-good{color:#2f7c3d}
	.pfc-editor-controls .pfc-size-availability.is-medium{color:#9a6b08}
	.pfc-editor-controls .pfc-size-availability.is-error{color:#a7322e}
	.pfc-editor-controls [data-apply-size-all]{display:none!important}

	/* Rámy: pět vzorků v jednom horizontálním řádku. */
	.pfc-editor-controls .pfc-frame-grid{
		display:grid;
		grid-auto-flow:column;
		grid-auto-columns:minmax(74px,1fr);
		grid-template-columns:none;
		gap:8px;
		overflow-x:auto;
		padding:1px 1px 5px;
		scrollbar-width:none;
	}
	.pfc-editor-controls .pfc-frame-grid::-webkit-scrollbar{display:none}
	.pfc-editor-controls .pfc-frame-button{
		min-width:74px;
		padding:6px 5px 7px;
		border-radius:12px;
		align-items:center;
		gap:6px;
		font-size:10px;
	}
	.pfc-editor-controls .pfc-frame-button.is-active{box-shadow:0 0 0 1px #1f1f1f}
	.pfc-editor-controls .pfc-swatch{height:62px;border-radius:9px}
	.pfc-editor-controls .pfc-frame-info{margin-top:8px;font-size:9px;white-space:normal;min-height:14px}
	.pfc-editor-controls [data-apply-frame-all]{display:none!important}

	/* Ořez: pod záložkou jen jediné jasné tlačítko; samotný zoom zůstává nad záložkami. */
	.pfc-crop-compact{min-height:42px}
	.pfc-crop-compact .pfc-center-button{min-width:190px;padding:9px 13px;border-radius:10px;font-size:10px}

	/* Náhled: rovnou interiér, bez duplicitních přepínačů pracovního náhledu. */
	.pfc-editor-controls [data-tool-content="preview"]{padding:0}
	.pfc-editor-controls .pfc-preview-choice,
	.pfc-editor-controls [data-tool-content="preview"] .pfc-panel-note{display:none!important}
	.pfc-interior-preview{padding:0;border-radius:16px;background:#f6f1eb;overflow:hidden}
	.pfc-interior-head{padding:10px 11px 6px}
	.pfc-interior-head>div:first-child{display:none}
	.pfc-scene-tabs{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
	.pfc-scene-tab{padding:7px 4px;font-size:9px}
	.pfc-room-stage{min-height:330px}
	.pfc-interior-foot{margin:0;padding:8px 11px 10px;font-size:9px}

	/* Spodní objednávková lišta jako v mockupu – stále viditelná při procházení nastavení. */
	.pfc-editor-controls>.pfc-order-summary{
		position:sticky;
		z-index:40;
		bottom:0;
		display:grid;
		grid-template-columns:minmax(98px,.45fr) minmax(190px,1fr);
		gap:10px;
		align-items:center;
		margin:12px -2px 0;
		padding:10px;
		border:1px solid #eee9e3;
		border-radius:16px;
		background:rgba(255,255,255,.97);
		box-shadow:0 -4px 22px rgba(38,31,24,.08);
		backdrop-filter:blur(12px);
	}
	.pfc-editor-controls>.pfc-order-summary .pfc-order-summary-text{
		display:block;
		min-width:0;
	}
	.pfc-editor-controls>.pfc-order-summary .pfc-order-summary-text span{display:block;font-size:9px;color:#6f6861;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
	.pfc-editor-controls>.pfc-order-summary .pfc-order-summary-text strong{display:block;margin-top:1px;font-size:24px;line-height:1.1;text-align:left;color:#111}
	.pfc-editor-controls>.pfc-order-summary .pfc-order-summary-text small{display:none}
	.pfc-editor-controls>.pfc-order-summary .pfc-add-button{
		width:100%;
		min-width:0;
		min-height:50px;
		border-radius:12px;
		background:linear-gradient(180deg,#222,#171717);
		font-size:11px;
	}
}

@media(max-width:390px){
	.pfc-editor-controls .pfc-tool-button{font-size:9px;min-height:68px}
	.pfc-editor-controls .pfc-tool-button svg{width:22px;height:22px}
	.pfc-photo-thumb{flex-basis:72px;height:84px}
	.pfc-editor-controls>.pfc-order-summary{grid-template-columns:100px minmax(0,1fr)}
	.pfc-editor-controls>.pfc-order-summary .pfc-add-button{font-size:10px;padding:0 9px}
}


/* v0.2.9 – PC/notebook: dvousloupcové studio podle schváleného vizuálu.
   Mobil (<=720 px) zůstává beze změny. Menší tablet/notebook do 980 px používá
   předchozí kompaktní skládané rozložení. */
@media(min-width:981px){
	.pfc-app{
		width:min(1480px,calc(100vw - 36px));
		max-width:none;
		margin:0 auto 22px!important;
		position:relative;
		left:50%;
		transform:translateX(-50%);
	}

	.pfc-studio-form{
		display:grid;
		grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);
		gap:14px;
		align-items:start;
	}

	/* Před nahráním zůstane jednoduchý široký vstup uprostřed stránky. */
	.pfc-app.is-empty .pfc-stage-card{
		grid-column:1 / -1;
		width:min(900px,78vw);
		margin:0 auto;
	}
	.pfc-app.is-empty .pfc-preview-shell{
		min-height:0;
		height:min(53vh,500px);
		padding:18px 28px;
	}
	.pfc-app.is-empty .pfc-frame{
		width:min(76%,690px)!important;
		max-width:690px!important;
	}

	/* Levá polovina – pracovní scéna. */
	.pfc-app.has-photos .pfc-stage-card{
		grid-column:1;
		grid-row:1;
		margin:0;
		border:1px solid #eee9e3;
		border-radius:18px;
		background:linear-gradient(180deg,#fbfaf8 0%,#f7f3ee 100%);
		box-shadow:0 16px 42px rgba(40,32,24,.07);
		overflow:hidden;
		position:sticky;
		top:18px;
	}
	.pfc-app.has-photos .pfc-preview-shell{
		min-height:0!important;
		height:clamp(405px,58vh,590px);
		padding:24px 24px 10px;
		background:transparent;
	}
	.pfc-app.has-photos .pfc-frame{
		width:min(55%,380px)!important;
		max-width:380px!important;
	}
	.pfc-app.has-photos.is-landscape .pfc-frame{
		width:min(86%,760px)!important;
		max-width:760px!important;
	}

	/* Zoom patří na PC pod hlavní scénu. JS ho v desktopovém režimu přesune sem. */
	.pfc-stage-card>.pfc-global-zoom{
		display:grid!important;
		width:min(390px,62%);
		margin:4px auto 18px;
		padding:0;
	}

	/* Pravá polovina – samostatná ovládací karta. */
	.pfc-app.has-photos .pfc-editor-controls{
		grid-column:2;
		grid-row:1;
		width:100%;
		max-width:none;
		margin:0!important;
		padding:0;
		border:1px solid #eee9e3;
		border-radius:18px;
		background:#fff;
		box-shadow:0 16px 42px rgba(40,32,24,.07);
		overflow:hidden;
		position:sticky;
		top:18px;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-dock{
		margin:0;
		padding:8px 10px;
		border:0;
		border-bottom:1px solid #eee9e3;
		border-radius:0;
		background:#fff;
		box-shadow:none;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-buttons{
		gap:4px;
		padding:0;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button{
		min-height:68px;
		padding:7px 4px;
		border-radius:11px;
		font-size:10px;
		gap:5px;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button svg{
		width:22px;
		height:22px;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button.is-active{
		background:linear-gradient(180deg,#222,#171717);
		color:#fff;
	}

	.pfc-app.has-photos .pfc-editor-controls>.pfc-tool-panel{
		margin:0;
		min-height:205px;
		border:0;
		border-radius:0;
		background:#fff;
		box-shadow:none;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-content{
		padding:16px 18px 15px;
	}

	/* Fotografie – jedna řada, aby panel zůstal nízký i na notebooku. */
	.pfc-app.has-photos .pfc-photo-panel-meta{margin-bottom:10px}
	.pfc-app.has-photos .pfc-photo-panel-meta strong{font-size:13px}
	.pfc-app.has-photos .pfc-photo-strip-inline{
		margin:0 0 8px;
		padding:0;
		border:0;
		background:transparent;
	}
	.pfc-app.has-photos .pfc-photo-strip{
		display:flex;
		gap:8px;
		padding:0 1px 6px;
		overflow-x:auto;
		scrollbar-width:thin;
	}
	.pfc-app.has-photos .pfc-photo-thumb{
		flex:0 0 82px;
		height:72px;
		border-radius:10px;
	}
	.pfc-app.has-photos .pfc-photo-actions{
		display:flex;
		gap:7px;
		margin-top:2px;
		flex-wrap:nowrap;
	}
	.pfc-app.has-photos .pfc-photo-actions button{
		min-height:32px;
		padding:6px 9px;
		font-size:9px;
		white-space:nowrap;
	}

	/* Velikosti – skutečných šest formátů v jediné kompaktní řadě. */
	.pfc-app.has-photos .pfc-size-grid{
		display:grid;
		grid-template-columns:repeat(6,minmax(0,1fr));
		gap:7px;
	}
	.pfc-app.has-photos .pfc-size-button{
		min-height:48px;
		padding:7px 5px;
		border-radius:9px;
		font-size:10px;
	}
	.pfc-app.has-photos .pfc-size-availability{
		margin-top:9px;
		font-size:9px;
	}
	.pfc-app.has-photos .pfc-apply-all{
		margin-top:8px;
		padding:6px 9px;
		font-size:9px;
	}

	/* Rámy – pět variant v jedné řadě. */
	.pfc-app.has-photos .pfc-frame-grid{
		display:grid;
		grid-template-columns:repeat(5,minmax(0,1fr));
		gap:8px;
	}
	.pfc-app.has-photos .pfc-frame-button{
		padding:7px 6px;
		border-radius:10px;
		font-size:9px;
	}
	.pfc-app.has-photos .pfc-swatch{
		height:48px;
		border-radius:7px;
	}
	.pfc-app.has-photos .pfc-frame-info{
		margin-top:8px;
		font-size:9px;
		white-space:normal;
	}

	/* Ořez / náhled zůstávají jednoduché a bez zbytečných popisků. */
	.pfc-app.has-photos .pfc-crop-compact{
		justify-content:flex-start;
		min-height:52px;
	}
	.pfc-app.has-photos .pfc-crop-compact .pfc-center-button{
		min-width:190px;
	}
	.pfc-app.has-photos .pfc-preview-choice{
		margin:0;
	}

	/* Cena a košík jsou vždy dole v pravém panelu. */
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary{
		display:grid;
		grid-template-columns:145px minmax(0,1fr);
		gap:12px;
		align-items:center;
		margin:0;
		padding:12px 14px;
		border:0;
		border-top:1px solid #eee9e3;
		background:#fff;
	}
	.pfc-app.has-photos .pfc-order-summary-text{
		display:block;
		min-width:0;
	}
	.pfc-app.has-photos .pfc-order-summary-text span{
		display:block;
		font-size:9px;
		color:#766f68;
	}
	.pfc-app.has-photos .pfc-order-summary-text strong{
		display:block;
		margin-top:2px;
		font-size:24px;
		line-height:1.05;
		text-align:left;
		color:#111;
	}
	.pfc-app.has-photos .pfc-order-summary-text small{display:none}
	.pfc-app.has-photos .pfc-add-button{
		width:100%;
		min-height:50px;
		border-radius:11px;
		font-size:11px;
		background:linear-gradient(180deg,#222,#171717);
	}

	.pfc-cart-notice{grid-column:1 / -1}
}

/* Menší notebook: stále dva sloupce, ale ještě úspornější. */
@media(min-width:981px) and (max-width:1250px){
	.pfc-app{width:calc(100vw - 24px)}
	.pfc-studio-form{grid-template-columns:minmax(0,1fr) minmax(410px,.95fr);gap:10px}
	.pfc-app.has-photos .pfc-preview-shell{height:clamp(390px,54vh,510px);padding:18px 16px 8px}
	.pfc-app.has-photos.is-landscape .pfc-frame{width:min(90%,620px)!important}
	.pfc-stage-card>.pfc-global-zoom{width:min(360px,70%);margin-bottom:14px}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button{min-height:60px;font-size:9px}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-content{padding:12px 13px}
	.pfc-app.has-photos .pfc-editor-controls>.pfc-tool-panel{min-height:184px}
	.pfc-app.has-photos .pfc-photo-thumb{flex-basis:72px;height:64px}
	.pfc-app.has-photos .pfc-size-button{font-size:9px;min-height:44px}
	.pfc-app.has-photos .pfc-swatch{height:40px}
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary{grid-template-columns:125px minmax(0,1fr);padding:10px 12px}
	.pfc-app.has-photos .pfc-order-summary-text strong{font-size:21px}
	.pfc-app.has-photos .pfc-add-button{min-height:46px;font-size:10px}
}

/* v0.3.0 – Velikost + zoom + posun v jednom nástroji, bez mezikroku výběru k objednání. */
.pfc-tool-buttons{
	grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.pfc-photo-window.is-pan-active{
	touch-action:none;
	cursor:grab;
}
.pfc-photo-window.is-pan-active:active{cursor:grabbing}

.pfc-thumb-ready{
	position:absolute;
	right:6px;
	bottom:6px;
	width:24px;
	height:24px;
	border-radius:50%;
	display:grid;
	place-items:center;
	background:#3c9a54;
	color:#fff;
	font-size:15px;
	font-weight:800;
	line-height:1;
	box-shadow:0 2px 8px rgba(23,91,44,.28);
	border:2px solid #fff;
	z-index:3;
}
.pfc-photo-thumb.is-order-selected{box-shadow:none!important}
.pfc-order-toggle{display:none!important}

.pfc-size-edit-tools{
	margin-top:12px;
	padding:13px 14px;
	border:1px solid #e8e2dc;
	border-radius:12px;
	background:#fbfaf8;
}
.pfc-size-edit-head{
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	gap:12px;
	margin-bottom:10px;
}
.pfc-size-edit-head strong{font-size:13px;color:#222}
.pfc-size-edit-head span{font-size:9px;color:#837b74;text-align:right}
.pfc-size-zoom-row{
	display:grid;
	grid-template-columns:auto 34px minmax(120px,1fr) 34px 54px;
	align-items:center;
	gap:8px;
}
.pfc-size-zoom-label{font-size:10px;font-weight:700;color:#4b4540}
.pfc-size-zoom-row input[type="range"]{
	width:100%;
	min-width:0;
	accent-color:#1f1f1f;
}
.pfc-size-zoom-row .pfc-zoom-step{
	width:34px;
	height:34px;
	min-width:34px;
	padding:0;
	border:1px solid #ded8d2;
	border-radius:9px;
	background:#fff;
	color:#1f1f1f;
	font-size:20px;
	line-height:1;
}
.pfc-zoom-percent{
	font-size:10px;
	font-variant-numeric:tabular-nums;
	white-space:nowrap;
	text-align:right;
}
.pfc-size-pan-row{
	display:grid;
	grid-template-columns:auto minmax(0,1fr) auto;
	align-items:center;
	gap:10px;
	margin-top:10px;
}
.pfc-pan-toggle{
	display:inline-flex;
	align-items:center;
	gap:7px;
	min-height:38px;
	padding:7px 10px;
	border:1px solid #d9d3cd;
	border-radius:10px;
	background:#fff;
	color:#25211e;
	font-size:9px;
	font-weight:700;
	cursor:pointer;
}
.pfc-pan-toggle svg{width:20px;height:20px;fill:currentColor;flex:0 0 auto}
.pfc-pan-toggle.is-active{
	background:#1f1f1f;
	border-color:#1f1f1f;
	color:#fff;
}
.pfc-pan-help{font-size:9px;color:#807871;line-height:1.35}
.pfc-size-pan-row .pfc-center-button{
	min-height:36px;
	padding:7px 10px;
	border-radius:9px;
	font-size:9px;
	white-space:nowrap;
}
.pfc-size-quality{
	margin-top:9px!important;
	padding:8px 10px!important;
	font-size:9px!important;
	line-height:1.35!important;
	border-radius:9px!important;
}
.pfc-size-quality br{display:none}
.pfc-size-quality strong{margin-right:5px}
[data-apply-size-all]{display:none!important}

/* PC/notebook: pravý panel zůstává kompaktní, levá fotografie je jediným místem úprav. */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button{min-height:64px}
	.pfc-app.has-photos .pfc-editor-controls>.pfc-tool-panel{min-height:260px}
	.pfc-app.has-photos .pfc-editor-controls [data-tool-content="size"]{padding-top:14px}
	.pfc-app.has-photos .pfc-size-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
	.pfc-app.has-photos .pfc-size-button{min-height:48px}
	.pfc-app.has-photos .pfc-size-edit-tools{margin-top:10px;padding:11px 12px}
	.pfc-app.has-photos .pfc-size-edit-head{margin-bottom:8px}
	.pfc-app.has-photos .pfc-size-quality{margin-bottom:0}
	.pfc-app.has-photos .pfc-photo-actions{grid-template-columns:1fr 1fr}
	.pfc-app.has-photos .pfc-photo-actions button{flex:1}
}

/* Menší notebook: vše se vejde do pravého panelu bez zbytečné výšky. */
@media(min-width:981px) and (max-width:1250px){
	.pfc-app.has-photos .pfc-editor-controls>.pfc-tool-panel{min-height:248px}
	.pfc-size-edit-tools{padding:9px 10px;margin-top:8px}
	.pfc-size-edit-head span{display:none}
	.pfc-size-zoom-row{grid-template-columns:auto 32px minmax(100px,1fr) 32px 48px;gap:6px}
	.pfc-size-zoom-row .pfc-zoom-step{width:32px;height:32px;min-width:32px}
	.pfc-size-pan-row{margin-top:8px;gap:7px}
	.pfc-pan-help{font-size:8px}
}

/* Mobil/tablet: stejné logické spojení Velikost + zoom + ruka, ale kompaktně pod záložkami. */
@media(max-width:980px){
	.pfc-tool-buttons{grid-template-columns:repeat(4,minmax(0,1fr))!important}
	.pfc-size-edit-tools{margin-top:10px;padding:11px 10px}
	.pfc-size-edit-head{display:none}
	.pfc-size-zoom-row{grid-template-columns:34px minmax(0,1fr) 34px 48px;gap:7px}
	.pfc-size-zoom-label{display:none}
	.pfc-size-zoom-row .pfc-zoom-step{width:34px;height:34px;min-width:34px}
	.pfc-size-pan-row{grid-template-columns:auto 1fr;gap:8px}
	.pfc-size-pan-row .pfc-center-button{grid-column:1 / -1;width:100%}
	.pfc-pan-help{font-size:8px}
	.pfc-size-quality{margin-top:8px!important}
}

@media(max-width:560px){
	.pfc-pan-toggle span{display:none}
	.pfc-pan-toggle{width:40px;min-width:40px;height:40px;padding:0;justify-content:center}
	.pfc-pan-toggle svg{width:22px;height:22px}
	.pfc-size-pan-row{grid-template-columns:40px minmax(0,1fr)}
	.pfc-size-zoom-row{grid-template-columns:32px minmax(0,1fr) 32px 44px}
	.pfc-size-zoom-row .pfc-zoom-step{width:32px;height:32px;min-width:32px}
}

@media(min-width:981px){.pfc-app.has-photos .pfc-photo-actions{display:grid!important;grid-template-columns:1fr 1fr!important}}


/* v0.3.1 – PC: třetí úzký sloupec s fotografiemi. Mobilní/tabletový editor zůstává beze změny. */
.pfc-desktop-photo-rail{display:none}

@media(min-width:981px){
	.pfc-app.has-photos{
		width:min(1540px,calc(100vw - 28px));
	}
	.pfc-app.has-photos .pfc-studio-form{
		grid-template-columns:minmax(0,1.04fr) minmax(430px,.84fr) 104px;
		gap:12px;
	}
	.pfc-app.has-photos .pfc-stage-card{grid-column:1;grid-row:1}
	.pfc-app.has-photos .pfc-editor-controls{grid-column:2;grid-row:1}

	/* Fotografie jsou trvale v pravém railu, proto desktop nepotřebuje záložku Fotografie. */
	.pfc-app.has-photos .pfc-editor-controls [data-tool="photos"]{display:none!important}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-buttons{
		grid-template-columns:repeat(3,minmax(0,1fr))!important;
	}

	.pfc-desktop-photo-rail{
		grid-column:3;
		grid-row:1;
		display:flex;
		flex-direction:column;
		gap:8px;
		align-items:stretch;
		padding:8px;
		border:1px solid #eee9e3;
		border-radius:18px;
		background:#fff;
		box-shadow:0 16px 42px rgba(40,32,24,.07);
		position:sticky;
		top:18px;
		max-height:calc(100vh - 36px);
		min-height:0;
		overflow:hidden;
	}
	.pfc-desktop-photo-rail-list{
		display:flex;
		flex-direction:column;
		gap:8px;
		min-height:0;
		overflow-y:auto;
		overflow-x:hidden;
		padding:1px 2px 3px;
		scrollbar-width:thin;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail{
		flex:0 0 auto;
		width:100%;
		height:72px;
		min-width:0;
		border-radius:11px;
		padding:3px;
		background:#f0ece7;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail.is-active{
		border-color:#1f1f1f;
		box-shadow:0 0 0 1px rgba(31,31,31,.15);
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail .pfc-thumb-remove{
		right:5px;
		top:5px;
		width:18px;
		height:18px;
		font-size:13px;
		opacity:.9;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail .pfc-thumb-ready{
		right:5px;
		bottom:5px;
		width:21px;
		height:21px;
		font-size:12px;
	}
	.pfc-desktop-photo-add{
		flex:0 0 64px;
		width:100%;
		min-height:64px;
		border:1px dashed #cfc7bf;
		border-radius:11px;
		background:#fff;
		color:#2a2622;
		font:inherit;
		font-size:10px;
		font-weight:800;
		cursor:pointer;
		display:grid;
		place-items:center;
		transition:border-color .15s ease,background .15s ease;
	}
	.pfc-desktop-photo-add span{font-size:28px;line-height:1;font-weight:400}
	.pfc-desktop-photo-add:hover{border-color:#7f766d;background:#faf8f5}

	/* Původní obsah Fotografie zůstává v DOM pouze pro mobil/tablet. */
	.pfc-app.has-photos [data-tool-content="photos"]{display:none!important}

	/* Zachovat současné malé barevné dlaždice velikostí. */
	.pfc-app.has-photos .pfc-size-grid{
		grid-template-columns:repeat(6,minmax(0,1fr));
		gap:7px;
	}
	.pfc-app.has-photos .pfc-size-button{
		min-height:48px;
		padding:7px 5px;
	}
}

@media(min-width:981px) and (max-width:1250px){
	.pfc-app.has-photos{width:calc(100vw - 18px)}
	.pfc-app.has-photos .pfc-studio-form{
		grid-template-columns:minmax(0,1fr) minmax(395px,.9fr) 82px;
		gap:8px;
	}
	.pfc-desktop-photo-rail{padding:6px;gap:6px;border-radius:14px}
	.pfc-desktop-photo-rail-list{gap:6px}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail{height:60px;border-radius:9px}
	.pfc-desktop-photo-add{min-height:54px;flex-basis:54px;border-radius:9px}
	.pfc-desktop-photo-add span{font-size:24px}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button{min-height:58px}
}

/* <=980 px: bez třetího sloupce, záložka Fotografie zůstává normálně dostupná. */
@media(max-width:980px){
	.pfc-desktop-photo-rail{display:none!important}
	.pfc-editor-controls [data-tool="photos"]{display:flex!important}
	.pfc-editor-controls .pfc-tool-buttons{grid-template-columns:repeat(4,minmax(0,1fr))!important}
	.pfc-editor-controls [data-tool-content="photos"]:not([hidden]){display:block!important}
}


/* v0.3.2 – PC: ovládání záložky Náhled patří do středního sloupce.
   Levý sloupec zobrazuje pouze samotnou scénu. Mobilní rozložení zůstává zachováno. */
.pfc-scene-tabs-controls{display:none}

@media(min-width:981px){
	/* V hlavním levém náhledu už nejsou tlačítka místností nad scénou. */
	.pfc-app.has-photos .pfc-interior-head-mobile{display:none!important}
	.pfc-app.has-photos .pfc-interior-preview{
		padding:0;
		border-radius:0;
		background:transparent;
	}
	.pfc-app.has-photos .pfc-room-stage{
		height:clamp(405px,58vh,590px);
		min-height:0;
		border:0;
		border-radius:0;
		box-shadow:none;
	}
	.pfc-app.has-photos .pfc-interior-foot{
		margin:0;
		padding:9px 14px 12px;
		border-top:1px solid #eee9e3;
		background:#fbfaf8;
	}

	/* Záložka Náhled ve středním panelu je stejně plnohodnotná jako Velikost a Rám. */
	.pfc-app.has-photos .pfc-editor-controls [data-tool-content="preview"]{
		display:block;
		padding:16px 18px 15px;
	}
	.pfc-app.has-photos .pfc-editor-controls [data-tool-content="preview"][hidden]{display:none!important}
	.pfc-app.has-photos .pfc-preview-scenes-panel{
		display:block;
		padding:0;
	}
	.pfc-app.has-photos .pfc-preview-scenes-head{
		display:flex;
		align-items:baseline;
		justify-content:space-between;
		gap:12px;
		margin-bottom:12px;
	}
	.pfc-app.has-photos .pfc-preview-scenes-head strong{
		font-size:13px;
		color:#222;
	}
	.pfc-app.has-photos .pfc-preview-scenes-head span{
		font-size:9px;
		color:#837b74;
		text-align:right;
	}
	.pfc-app.has-photos .pfc-scene-tabs-controls{
		display:grid;
		grid-template-columns:repeat(3,minmax(0,1fr));
		gap:8px;
		width:100%;
		justify-content:stretch;
	}
	.pfc-app.has-photos .pfc-scene-tabs-controls .pfc-scene-tab{
		min-height:48px;
		padding:8px 7px;
		border-radius:10px;
		font-size:10px;
		font-weight:800;
		background:#fff;
		color:#5d5650;
	}
	.pfc-app.has-photos .pfc-scene-tabs-controls .pfc-scene-tab.is-active{
		background:linear-gradient(180deg,#222,#171717);
		border-color:#1f1f1f;
		color:#fff;
	}
	.pfc-app.has-photos .pfc-preview-scenes-note{
		margin-top:12px;
		padding:10px 11px;
		border:1px solid #ebe4dc;
		border-radius:10px;
		background:#fbfaf8;
		color:#817970;
		font-size:9px;
		line-height:1.4;
	}
}

@media(min-width:981px) and (max-width:1250px){
	.pfc-app.has-photos .pfc-editor-controls [data-tool-content="preview"]{padding:12px 13px}
	.pfc-app.has-photos .pfc-preview-scenes-head span{display:none}
	.pfc-app.has-photos .pfc-scene-tabs-controls{gap:6px}
	.pfc-app.has-photos .pfc-scene-tabs-controls .pfc-scene-tab{min-height:43px;font-size:9px}
}

@media(max-width:980px){
	/* Na mobilu zůstává výběr místnosti u samotného interiérového náhledu. */
	.pfc-preview-scenes-panel{display:none!important}
	.pfc-scene-tabs-stage{display:flex}
}


/* v0.3.5 – oprava čtvercových miniatur v pravém desktopovém pásu */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-studio-form{
		grid-template-columns:minmax(0,1.04fr) minmax(430px,.84fr) 108px;
	}
	.pfc-desktop-photo-rail{
		padding:8px;
		gap:8px;
	}
	.pfc-desktop-photo-rail-list{
		gap:8px;
		padding:1px 1px 3px;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail{
		width:100%;
		height:auto !important;
		aspect-ratio:1 / 1;
		min-height:0;
		padding:4px;
		border:2px solid transparent;
		border-radius:12px;
		background:#f3efe9;
		box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail img{
		width:100%;
		height:100%;
		object-fit:cover;
		border-radius:8px;
		display:block;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail:hover{
		border-color:#b8afa6;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail.is-active{
		border-color:#181818;
		box-shadow:0 0 0 2px rgba(24,24,24,.14),0 14px 24px rgba(44,35,26,.12);
		background:#f5f2ed;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail .pfc-thumb-remove{
		right:6px;
		top:6px;
	}
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail .pfc-thumb-ready,
	.pfc-desktop-photo-rail .pfc-photo-thumb-rail .pfc-thumb-state{
		right:6px;
		bottom:6px;
	}
	.pfc-desktop-photo-add{
		width:100%;
		min-height:auto;
		aspect-ratio:1 / 1;
		flex:0 0 auto;
		border-radius:12px;
	}
}

/* v0.3.6 – doladění polohy rámečku v realistických interiérech */
.pfc-room-stage{
	background-color:#ece7df;
	background-repeat:no-repeat;
	background-position:center center;
	background-size:cover;
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.04), inset 0 0 55px rgba(34,26,19,.05);
}
.pfc-room-stage:before,
.pfc-room-stage:after,
.pfc-room-stage .pfc-room-window,
.pfc-room-stage .pfc-room-rug,
.pfc-room-stage .pfc-room-wall-decor,
.pfc-room-stage .pfc-room-sofa,
.pfc-room-stage .pfc-room-bed,
.pfc-room-stage .pfc-room-desk,
.pfc-room-stage .pfc-room-coffee-table,
.pfc-room-stage .pfc-room-sideboard,
.pfc-room-stage .pfc-room-floor-plant,
.pfc-room-stage .pfc-room-nightstand,
.pfc-room-stage .pfc-room-bedroom-lamp,
.pfc-room-stage .pfc-room-desk-chair,
.pfc-room-stage .pfc-room-desk-shelf,
.pfc-room-stage .pfc-room-lamp,
.pfc-room-stage .pfc-room-plant{
	display:none !important;
}
.pfc-room-stage.is-living{
	background-image:url('../images/scene-living-room.png');
}
.pfc-room-stage.is-bedroom{
	background-image:url('../images/scene-bedroom.png');
}
.pfc-room-stage.is-desk{
	background-image:url('../images/scene-desk-v2.png');
}
.pfc-room-stage.is-living .pfc-scene-frame{
	left:50%;
	top:21.8%;
	transform:translateX(-50%);
}
.pfc-room-stage.is-bedroom .pfc-scene-frame{
	left:50%;
	top:21%;
	transform:translateX(-50%);
}
.pfc-room-stage.is-desk .pfc-scene-frame{
	left:50%;
	bottom:14.8%;
	top:auto;
	transform:translateX(-50%) rotate(-2.35deg);
	transform-origin:50% 100%;
	box-shadow:0 13px 24px rgba(39,28,19,.26), 0 2px 3px rgba(39,28,19,.10);
}
.pfc-room-stage.is-desk .pfc-scene-frame:after{
	content:"";
	position:absolute;
	left:50%;
	bottom:calc(-1 * var(--scene-border) - 9px);
	width:18px;
	height:18px;
	background:linear-gradient(180deg, rgba(88,66,47,.92), rgba(44,31,21,.92));
	clip-path:polygon(50% 0%, 0% 100%, 100% 100%);
	transform:translateX(-50%) rotate(7deg);
	transform-origin:50% 0%;
	box-shadow:0 2px 3px rgba(28,20,14,.22);
	z-index:-1;
	opacity:.72;
}
.pfc-interior-foot{
	margin-top:10px;
	font-size:10px;
}

/* v0.3.7 – vlastní místnost s více samostatně upravitelnými rámečky */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-scene-tabs-controls{
		grid-template-columns:repeat(4,minmax(0,1fr));
	}
}

.pfc-room-stage.is-bedroom .pfc-scene-frame{
	left:53.5%;
	top:21%;
}
.pfc-room-stage.is-desk .pfc-scene-frame{
	left:50%;
	bottom:var(--pfc-desk-frame-bottom,28.5%);
	top:auto;
	transform:translateX(-50%) rotate(-2deg);
	transform-origin:50% 100%;
	box-shadow:0 9px 15px rgba(39,28,19,.20),0 2px 3px rgba(39,28,19,.10);
}

.pfc-room-stage.is-custom{
	background-color:#292725;
	background-repeat:no-repeat;
	background-position:center center;
	background-size:cover;
}
.pfc-room-stage.is-custom .pfc-scene-frame{display:none!important}
.pfc-custom-room-layer{
	position:absolute;
	inset:0;
	z-index:8;
	touch-action:none;
	user-select:none;
}
.pfc-custom-room-layer[hidden]{display:none!important}
.pfc-custom-room-empty{
	position:absolute;
	left:50%;
	top:50%;
	z-index:10;
	width:min(360px,82%);
	transform:translate(-50%,-50%);
	padding:22px 20px;
	border:1px solid rgba(255,255,255,.34);
	border-radius:16px;
	background:rgba(25,23,21,.82);
	box-shadow:0 18px 48px rgba(0,0,0,.28);
	backdrop-filter:blur(8px);
	color:#fff;
	text-align:center;
}
.pfc-custom-room-empty[hidden]{display:none!important}
.pfc-custom-room-empty strong{display:block;font-size:16px;margin-bottom:7px}
.pfc-custom-room-empty span{display:block;font-size:11px;line-height:1.55;color:rgba(255,255,255,.76);margin-bottom:14px}
.pfc-custom-room-empty .pfc-primary-soft{background:#fff;color:#222;border-color:#fff}

.pfc-custom-room-frame{
	--room-frame-border:5px;
	--room-frame-color:#d7d1c8;
	position:absolute;
	box-sizing:border-box;
	padding:var(--room-frame-border);
	background:var(--room-frame-color);
	box-shadow:0 7px 17px rgba(20,15,12,.26),inset 0 0 0 1px rgba(0,0,0,.13);
	cursor:grab;
	z-index:2;
	transform-origin:50% 50%;
	will-change:left,top,width,height,transform;
}
.pfc-custom-room-frame:active{cursor:grabbing}
.pfc-custom-room-frame.has-texture{
	padding:0;
	border:var(--room-frame-border) solid transparent;
	background:transparent;
	border-image-source:var(--room-frame-texture);
	border-image-slice:25%;
	border-image-repeat:stretch;
}
.pfc-custom-room-frame.is-selected{
	outline:2px solid #fff;
	outline-offset:4px;
	box-shadow:0 0 0 5px rgba(17,17,17,.52),0 14px 28px rgba(0,0,0,.28);
	z-index:5;
}
.pfc-custom-room-photo-window{position:relative;width:100%;height:100%;overflow:hidden;background:#f2efe9}
.pfc-custom-room-photo{
	position:absolute;
	left:50%;
	top:50%;
	max-width:none!important;
	max-height:none!important;
	user-select:none;
	pointer-events:none;
}
.pfc-custom-room-remove{display:none;position:absolute;z-index:12}
.pfc-custom-room-frame.is-selected .pfc-custom-room-remove{display:block}
.pfc-custom-room-remove{
	right:-13px;
	top:-13px;
	width:25px;
	height:25px;
	padding:0;
	border:2px solid #fff;
	border-radius:50%;
	background:#222;
	color:#fff;
	font-size:17px;
	line-height:19px;
	cursor:pointer;
}
.pfc-custom-room-tools{
	margin-top:12px;
	padding:12px;
	border:1px solid #e9e2da;
	border-radius:12px;
	background:#fbfaf8;
}
.pfc-custom-room-actions{display:flex;flex-wrap:wrap;gap:7px}
.pfc-custom-room-actions button{flex:1 1 145px;min-height:38px;font-size:9px}
.pfc-custom-room-file{margin-top:8px;color:#7b736b;font-size:9px;line-height:1.4}
.pfc-custom-room-help{margin:10px 0 0;color:#817970;font-size:9px;line-height:1.5}

@media(max-width:980px){
	.pfc-scene-tabs-stage{gap:5px}
	.pfc-scene-tabs-stage .pfc-scene-tab{flex:1 1 calc(50% - 5px)}
}

/* v0.3.10 – mobilní fotoaparát + plnohodnotná Moje místnost bez zásahu do desktopového editoru */
.pfc-mobile-camera,
.pfc-mobile-custom-room-actions{display:none}

@media(max-width:980px){
	.pfc-mobile-camera{display:inline-flex}
	.pfc-mobile-custom-room-actions{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:7px;
		margin-top:9px;
	}
	.pfc-mobile-custom-room-actions[hidden]{display:none!important}
	.pfc-mobile-custom-room-actions button{
		min-height:40px;
		padding:8px 9px;
		font-size:9px;
		line-height:1.25;
	}
	.pfc-mobile-custom-room-actions [data-room-add-frame-mobile],
	.pfc-mobile-custom-room-actions [data-room-remove-frame-mobile]{
		grid-column:span 1;
	}
	.pfc-mobile-room-status{
		grid-column:1 / -1;
		margin:1px 2px 0;
		color:#756e67;
		font-size:9px;
		line-height:1.4;
		text-align:left;
	}
}


/* v0.3.17 – úprava náhledu interiéru */
.pfc-scene-tab.is-disabled,
.pfc-scene-tab:disabled{
	opacity:.45;
	cursor:not-allowed;
}
.pfc-room-stage.is-desk .pfc-scene-frame{
	left:50.5%;
	bottom:var(--pfc-desk-frame-bottom,28.5%);
	top:auto;
	transform:translateX(-50%);
	transform-origin:50% 100%;
	box-shadow:0 10px 16px rgba(39,28,19,.18),0 2px 3px rgba(39,28,19,.08);
}
.pfc-room-stage.is-desk .pfc-scene-frame:after{
	content:none !important;
	display:none !important;
}


/* v0.3.21 – skutečný profil rámu podle výrobního vzorku */
.pfc-frame.has-texture,
.pfc-scene-frame.has-texture,
.pfc-custom-room-frame.has-texture{
	border-image-slice:25%;
	border-image-width:1;
	border-image-outset:0;
	border-image-repeat:stretch;
}
.pfc-frame.has-texture .pfc-photo-window{
	box-shadow:
		0 0 0 1px rgba(68,48,30,.34),
		0 0 0 2px rgba(255,255,255,.34),
		inset 0 0 0 1px rgba(36,26,18,.20),
		inset 0 3px 7px rgba(28,19,12,.13);
}
.pfc-scene-frame.has-texture .pfc-scene-photo-window,
.pfc-custom-room-frame.has-texture .pfc-custom-room-photo-window{
	box-shadow:
		0 0 0 1px rgba(61,43,28,.30),
		0 0 0 1.5px rgba(255,255,255,.24),
		inset 0 0 0 1px rgba(37,27,19,.18);
}
.pfc-frame-button[data-frame-key="natural"] .pfc-swatch{background-image:url('../images/frames/frame-natural.png');background-size:150% 150%;background-position:center}
.pfc-frame-button[data-frame-key="oak"] .pfc-swatch{background-image:url('../images/frames/frame-oak.png');background-size:150% 150%;background-position:center}
.pfc-frame-button[data-frame-key="walnut"] .pfc-swatch{background-image:url('../images/frames/frame-walnut.png');background-size:150% 150%;background-position:center}
.pfc-frame-button[data-frame-key="black"] .pfc-swatch{background-image:url('../images/frames/frame-black.png');background-size:150% 150%;background-position:center}
.pfc-frame-button[data-frame-key="white"] .pfc-swatch{background-image:url('../images/frames/frame-white.png');background-size:150% 150%;background-position:center}


/* v0.3.22 – profil rámu upravený podle výrobního vzorku a čtvercové náhledy výběru */
.pfc-frame-button{
	align-items:center;
	text-align:center;
	padding:10px 8px;
	gap:8px;
}
.pfc-frame-button > span:last-child{
	display:block;
	width:100%;
	text-align:center;
	line-height:1.2;
}
.pfc-swatch{
	width:100%;
	height:auto;
	aspect-ratio:1 / 1;
	border-radius:10px;
	background-repeat:no-repeat;
	background-position:center;
	background-size:100% 100%;
	box-shadow:inset 0 0 0 1px rgba(0,0,0,.13), 0 1px 0 rgba(255,255,255,.35);
}
.pfc-frame.has-texture:before,
.pfc-scene-frame.has-texture:before{
	opacity:.08;
}
.pfc-frame-button[data-frame-key="natural"] .pfc-swatch{background-image:url('../images/frames/frame-natural-v5.png');}
.pfc-frame-button[data-frame-key="oak"] .pfc-swatch{background-image:url('../images/frames/frame-oak-v5.png');}
.pfc-frame-button[data-frame-key="walnut"] .pfc-swatch{background-image:url('../images/frames/frame-walnut-v5.png');}
.pfc-frame-button[data-frame-key="black"] .pfc-swatch{background-image:url('../images/frames/frame-black-v5.png');}
.pfc-frame-button[data-frame-key="white"] .pfc-swatch{background-image:url('../images/frames/frame-white-v5.png');}


/* v0.3.23 – sjednocené rohy rámu a čistší čtvercový výběr */
.pfc-frame-grid{align-items:start;}
.pfc-frame-button{
	border:none;
	background:transparent;
	box-shadow:none;
	padding:0;
	gap:6px;
	align-items:center;
}
.pfc-frame-button:hover{border-color:transparent;box-shadow:none;transform:none;}
.pfc-frame-button .pfc-swatch{
	border-radius:8px;
	box-shadow:none;
	outline:1px solid rgba(0,0,0,.16);
	outline-offset:0;
}
.pfc-frame-button.is-active .pfc-swatch{
	outline:2px solid #1f1f1f;
	outline-offset:2px;
}
.pfc-frame-button > span:last-child{
	font-size:11px;
	font-weight:800;
}


/* v0.3.24 – skutečně čtvercové vzorky rámu + dočasné vyřazení fotografie z objednávky */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-grid{
		display:grid;
		grid-template-columns:repeat(5,minmax(64px,78px));
		grid-auto-flow:row;
		grid-auto-columns:auto;
		justify-content:start;
		overflow:visible;
		gap:12px;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button{
		width:78px;
		min-width:0;
		padding:0;
		border:0!important;
		border-radius:0;
		background:transparent!important;
		box-shadow:none!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button .pfc-swatch{
		box-sizing:border-box;
		display:block;
		width:72px!important;
		height:72px!important;
		aspect-ratio:1/1!important;
		margin:0 auto;
		border:14px solid transparent;
		border-radius:0!important;
		background:none!important;
		background-image:none!important;
		outline:0!important;
		box-shadow:none!important;
		border-image-slice:25%;
		border-image-width:1;
		border-image-repeat:stretch;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button[data-frame-key="natural"] .pfc-swatch{border-image-source:url('../images/frames/frame-natural-v5.png');}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button[data-frame-key="oak"] .pfc-swatch{border-image-source:url('../images/frames/frame-oak-v5.png');}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button[data-frame-key="walnut"] .pfc-swatch{border-image-source:url('../images/frames/frame-walnut-v5.png');}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button[data-frame-key="black"] .pfc-swatch{border-image-source:url('../images/frames/frame-black-v5.png');}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button[data-frame-key="white"] .pfc-swatch{border-image-source:url('../images/frames/frame-white-v5.png');}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button.is-active .pfc-swatch{
		outline:0!important;
		box-shadow:none!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-frame-button.is-active > span:last-child{
		text-decoration:underline;
		text-decoration-thickness:2px;
		text-underline-offset:3px;
	}
}
.pfc-active-order-control{
	display:flex;
	align-items:center;
	gap:10px;
	padding:8px 14px;
	border-top:1px solid #eee9e3;
	background:#fbfaf8;
}
.pfc-active-order-control[hidden]{display:none!important;}
.pfc-order-toggle-active{
	flex:0 0 auto;
	appearance:none;
	border:1px solid #cfc7bd;
	border-radius:9px;
	background:#fff;
	color:#37312b;
	padding:7px 10px;
	font:inherit;
	font-size:10px;
	font-weight:800;
	cursor:pointer;
}
.pfc-order-toggle-active:hover:not(:disabled){border-color:#8f857a;background:#f7f4ef;}
.pfc-order-toggle-active.is-excluded{background:#26221f;color:#fff;border-color:#26221f;}
.pfc-order-toggle-active:disabled{opacity:.48;cursor:not-allowed;}
.pfc-active-order-control span{font-size:9px;line-height:1.35;color:#766e66;}
.pfc-photo-thumb.is-order-excluded img{opacity:.52;filter:saturate(.65);}
.pfc-thumb-paused{
	position:absolute;
	right:5px;
	bottom:5px;
	z-index:4;
	width:19px;
	height:19px;
	display:grid;
	place-items:center;
	border-radius:50%;
	background:#64584d;
	color:#fff;
	font-size:9px;
	font-weight:900;
	box-shadow:0 1px 4px rgba(0,0,0,.24);
}
@media(max-width:980px){
	.pfc-active-order-control{padding:9px 10px;align-items:flex-start;}
	.pfc-active-order-control span{font-size:9px;}
	.pfc-order-toggle-active{font-size:10px;}
}


/* v0.3.26 – pouze PC: čistší pracovní plocha, spodní galerie a výraznější ovládání */
@media(min-width:981px){
	/* 1 + 2: hlavní fotografie bez šedého podkladu; galerie fotografií pod ní. */
	.pfc-app.has-photos .pfc-studio-form{
		grid-template-columns:minmax(0,1.05fr) minmax(430px,.84fr) !important;
		grid-template-rows:auto auto;
		gap:12px 14px;
	}
	.pfc-app.has-photos .pfc-stage-card{
		grid-column:1 !important;
		grid-row:1 !important;
		background:transparent !important;
		border:0 !important;
		box-shadow:none !important;
		border-radius:0 !important;
		overflow:visible;
	}
	.pfc-app.has-photos .pfc-preview-shell{
		background:transparent !important;
		box-shadow:none !important;
		border-radius:0 !important;
	}
	.pfc-app.has-photos .pfc-stage-caption{
		background:transparent;
		border-top:0;
	}
	.pfc-app.has-photos .pfc-editor-controls{
		grid-column:2 !important;
		grid-row:1 / span 2 !important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail{
		grid-column:1 !important;
		grid-row:2 !important;
		position:static !important;
		display:flex !important;
		flex-direction:row !important;
		align-items:center !important;
		width:100%;
		max-height:none !important;
		height:100px;
		padding:8px !important;
		gap:8px !important;
		border-radius:14px;
		box-shadow:none;
		background:#fff;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail-list{
		flex:1 1 auto;
		display:flex !important;
		flex-direction:row !important;
		align-items:center;
		gap:8px !important;
		min-width:0;
		height:82px;
		overflow-x:auto !important;
		overflow-y:hidden !important;
		padding:2px 3px 6px !important;
		scrollbar-width:thin;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail .pfc-photo-thumb-rail{
		flex:0 0 72px !important;
		width:72px !important;
		height:72px !important;
		aspect-ratio:1 / 1 !important;
		padding:3px;
		border-radius:10px;
	}
	.pfc-app.has-photos .pfc-desktop-photo-add{
		flex:0 0 72px !important;
		width:72px !important;
		height:72px !important;
		min-height:72px !important;
		aspect-ratio:1 / 1;
		border-radius:10px;
	}

	/* 3: hlavní záložky VELIKOSTI / RÁMY / NÁHLED. */
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-dock{
		padding:10px 12px;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-buttons{
		gap:8px;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button{
		min-height:78px !important;
		padding:10px 8px !important;
		border:0;
		border-radius:11px;
		background:#b74444 !important;
		color:#fff !important;
		font-size:12px !important;
		font-weight:900;
		letter-spacing:.04em;
		text-transform:uppercase;
		transition:background .16s ease,transform .16s ease,box-shadow .16s ease;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button:hover{
		background:#963333 !important;
		color:#fff !important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button.is-active{
		background:#8f2929 !important;
		box-shadow:0 4px 12px rgba(115,29,29,.22);
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button svg{
		width:25px !important;
		height:25px !important;
		fill:currentColor;
	}
	.pfc-app.has-photos .pfc-editor-controls [data-tool="size"] span,
	.pfc-app.has-photos .pfc-editor-controls [data-tool="frame"] span,
	.pfc-app.has-photos .pfc-editor-controls [data-tool="preview"] span{font-size:0;}
	.pfc-app.has-photos .pfc-editor-controls [data-tool="size"] span:after{content:"VELIKOSTI";font-size:13px;}
	.pfc-app.has-photos .pfc-editor-controls [data-tool="frame"] span:after{content:"RÁMY";font-size:13px;}
	.pfc-app.has-photos .pfc-editor-controls [data-tool="preview"] span:after{content:"NÁHLED";font-size:13px;}

	/* 4: rozměry – větší písmo, ztmavení při hoveru a výrazný aktivní stav. */
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button{
		min-height:52px !important;
		font-size:12px !important;
		font-weight:900 !important;
		letter-spacing:.01em;
		transition:background .14s ease,box-shadow .14s ease,transform .14s ease;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-quality-good{background:#4f8562 !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-quality-medium{background:#9b6d3b !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-quality-low,
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-unavailable{background:#b64f4f !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-quality-good:hover{background:#3d6d4d !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-quality-medium:hover{background:#7d542c !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-quality-low:hover,
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-unavailable:hover{background:#b64f4f !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-active{
		transform:translateY(-1px);
		box-shadow:0 0 0 2px #fff,0 0 0 5px rgba(54,42,34,.62) !important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-active.is-quality-good{background:#31583f !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-active.is-quality-medium{background:#704923 !important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button.is-active.is-quality-low{background:#8e3434 !important;}

	/* 5: ovládání fotografie ve stejném červeném stylu jako hlavní menu. */
	.pfc-app.has-photos .pfc-size-zoom-label,
	.pfc-app.has-photos .pfc-size-zoom-row .pfc-zoom-step,
	.pfc-app.has-photos .pfc-pan-toggle,
	.pfc-app.has-photos .pfc-size-pan-row .pfc-center-button,
	.pfc-app.has-photos .pfc-order-toggle-active{
		border:0 !important;
		border-radius:9px !important;
		background:#b74444 !important;
		color:#fff !important;
		font-weight:900 !important;
		text-transform:uppercase;
		letter-spacing:.025em;
		box-shadow:none !important;
		transition:background .14s ease,transform .14s ease;
	}
	.pfc-app.has-photos .pfc-size-zoom-label{
		display:flex;
		align-items:center;
		justify-content:center;
		align-self:stretch;
		min-width:58px;
		padding:0 10px;
		font-size:11px !important;
	}
	.pfc-app.has-photos .pfc-size-zoom-row .pfc-zoom-step{
		font-size:21px !important;
	}
	.pfc-app.has-photos .pfc-pan-toggle,
	.pfc-app.has-photos .pfc-size-pan-row .pfc-center-button,
	.pfc-app.has-photos .pfc-order-toggle-active{
		min-height:40px !important;
		padding:9px 13px !important;
		font-size:11px !important;
	}
	.pfc-app.has-photos .pfc-size-zoom-row .pfc-zoom-step:hover,
	.pfc-app.has-photos .pfc-pan-toggle:hover,
	.pfc-app.has-photos .pfc-size-pan-row .pfc-center-button:hover,
	.pfc-app.has-photos .pfc-order-toggle-active:hover:not(:disabled){background:#963333 !important;}
	.pfc-app.has-photos .pfc-pan-toggle.is-active,
	.pfc-app.has-photos .pfc-order-toggle-active.is-excluded{background:#8f2929 !important;}
	.pfc-app.has-photos .pfc-pan-toggle span{font-size:0;}
	.pfc-app.has-photos .pfc-pan-toggle span:after{content:"POSUNOUT FOTOGRAFII";font-size:11px;}
	.pfc-app.has-photos .pfc-size-zoom-row input[type="range"]{accent-color:#9b3030;}

	/* 6: výrazné Přidat do košíku. */
	.pfc-app.has-photos .pfc-add-button{
		min-height:52px !important;
		border:0;
		border-radius:10px;
		background:#b74444 !important;
		color:#fff !important;
		font-size:13px !important;
		font-weight:900 !important;
		text-transform:uppercase;
		letter-spacing:.035em;
		box-shadow:0 5px 14px rgba(115,29,29,.18);
	}
	.pfc-app.has-photos .pfc-add-button:hover:not(:disabled){background:#8f2929 !important;}
	.pfc-app.has-photos .pfc-add-button:disabled{background:#d1aaaa !important;color:#fff !important;}

	/* 7: Použít vybraný rám na všechny fotografie – text měníme pouze vizuálně na PC. */
	.pfc-app.has-photos .pfc-apply-all{
		min-height:44px;
		padding:10px 16px !important;
		border:0 !important;
		border-radius:9px;
		background:#b74444 !important;
		color:#fff !important;
		font-size:0 !important;
		font-weight:900 !important;
		text-transform:uppercase;
		letter-spacing:.025em;
	}
	.pfc-app.has-photos .pfc-apply-all:after{
		content:"POUŽÍT VYBRANÝ RÁM NA VŠECHNY FOTOGRAFIE";
		font-size:11px;
	}
	.pfc-app.has-photos .pfc-apply-all:not(:disabled):hover{background:#963333 !important;}
	.pfc-app.has-photos .pfc-apply-all:disabled{background:#d1aaaa !important;color:#fff !important;opacity:.72;}

	/* 8: prostředí v Náhledu – tmavě zelená, větší a výraznější. */
	.pfc-app.has-photos .pfc-preview-scenes-panel .pfc-scene-tabs-controls{
		gap:9px !important;
	}
	.pfc-app.has-photos .pfc-preview-scenes-panel .pfc-scene-tabs-controls .pfc-scene-tab{
		min-height:50px !important;
		padding:10px 12px !important;
		border:0 !important;
		border-radius:9px;
		background:#477858 !important;
		color:#fff !important;
		font-size:11px !important;
		font-weight:900 !important;
		text-transform:uppercase;
		letter-spacing:.025em;
		transition:background .14s ease,transform .14s ease;
	}
	.pfc-app.has-photos .pfc-preview-scenes-panel .pfc-scene-tabs-controls .pfc-scene-tab:hover{
		background:#345d43 !important;
	}
	.pfc-app.has-photos .pfc-preview-scenes-panel .pfc-scene-tabs-controls .pfc-scene-tab.is-active{
		background:#274b35 !important;
		box-shadow:0 4px 10px rgba(24,72,45,.18);
	}
	.pfc-app.has-photos .pfc-preview-scenes-panel .pfc-scene-tabs-controls .pfc-scene-tab:disabled{
		background:#9baa9f !important;
		color:#f7f7f7 !important;
	}
	.pfc-app.has-photos .pfc-custom-room-tools .pfc-primary-soft{
		background:#477858 !important;
		border-color:#477858 !important;
		color:#fff !important;
		font-size:11px !important;
		font-weight:900 !important;
		text-transform:uppercase;
	}
	.pfc-app.has-photos .pfc-custom-room-tools .pfc-primary-soft:hover{background:#345d43 !important;border-color:#345d43 !important;}
}


/* v0.3.27 – pouze PC: klidnější paleta, subtilnější spodní galerie a úprava zoomu */
@media(min-width:981px){
	/* 1: galerie bez vlastní karty, přibližně ve stejné šířce jako hlavní rám. */
	.pfc-app.has-photos .pfc-desktop-photo-rail{
		width:min(55%,380px) !important;
		height:86px !important;
		margin:16px auto 0 !important;
		padding:0 !important;
		gap:7px !important;
		border:0 !important;
		border-radius:0 !important;
		background:transparent !important;
		box-shadow:none !important;
		align-self:start !important;
		position:relative !important;
		z-index:1;
	}
	.pfc-app.has-photos.is-landscape .pfc-desktop-photo-rail{
		width:min(86%,760px) !important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail-list{
		height:78px !important;
		padding:1px 2px 5px !important;
		gap:7px !important;
		background:transparent !important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail .pfc-photo-thumb-rail{
		flex-basis:66px !important;
		width:66px !important;
		height:66px !important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-add{
		flex-basis:66px !important;
		width:66px !important;
		height:66px !important;
		min-height:66px !important;
		background:transparent !important;
	}

	/* 2: teplá grafitově-hnědá pro pracovní ovládání; červená zůstává jen CTA košíku. */
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button{
		background:#625b56 !important;
		color:#fff !important;
		box-shadow:none !important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button:hover{
		background:#504a46 !important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button.is-active{
		background:#3f3a37 !important;
		box-shadow:0 4px 12px rgba(48,43,40,.16) !important;
	}

	.pfc-app.has-photos .pfc-size-zoom-row .pfc-zoom-step,
	.pfc-app.has-photos .pfc-pan-toggle,
	.pfc-app.has-photos .pfc-size-pan-row .pfc-center-button,
	.pfc-app.has-photos .pfc-order-toggle-active,
	.pfc-app.has-photos .pfc-apply-all{
		background:#625b56 !important;
		color:#fff !important;
		box-shadow:none !important;
	}
	.pfc-app.has-photos .pfc-size-zoom-row .pfc-zoom-step:hover,
	.pfc-app.has-photos .pfc-pan-toggle:hover,
	.pfc-app.has-photos .pfc-size-pan-row .pfc-center-button:hover,
	.pfc-app.has-photos .pfc-order-toggle-active:hover:not(:disabled),
	.pfc-app.has-photos .pfc-apply-all:not(:disabled):hover{
		background:#504a46 !important;
	}
	.pfc-app.has-photos .pfc-pan-toggle.is-active,
	.pfc-app.has-photos .pfc-order-toggle-active.is-excluded{
		background:#3f3a37 !important;
	}
	.pfc-app.has-photos .pfc-size-zoom-row input[type="range"]{accent-color:#625b56 !important;}
	.pfc-app.has-photos .pfc-apply-all:disabled{
		background:#b9b3af !important;
		color:#fff !important;
	}

	/* Jediná výrazná nákupní akce zůstává červená. */
	.pfc-app.has-photos .pfc-add-button{
		background:#b54a46 !important;
		box-shadow:0 5px 14px rgba(140,48,43,.16) !important;
	}
	.pfc-app.has-photos .pfc-add-button:hover:not(:disabled){background:#963a36 !important;}
	.pfc-app.has-photos .pfc-add-button:disabled{background:#d6b1ae !important;}

	/* 3: nadpis obsahuje zoom; samostatný červený štítek ZOOM mizí. */
	.pfc-app.has-photos .pfc-size-edit-head strong{
		font-size:0 !important;
	}
	.pfc-app.has-photos .pfc-size-edit-head strong:after{
		content:"Úprava fotografie – zoom";
		font-size:13px;
		font-weight:800;
		color:#222;
	}
	.pfc-app.has-photos .pfc-size-zoom-label{
		display:none !important;
	}
	.pfc-app.has-photos .pfc-size-zoom-row{
		grid-template-columns:34px minmax(120px,1fr) 34px 54px !important;
	}
}

@media(min-width:981px) and (max-width:1250px){
	.pfc-app.has-photos.is-landscape .pfc-desktop-photo-rail{
		width:min(90%,620px) !important;
	}
}


/* v0.3.28 – pouze PC: jasně červené CTA košíku */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-add-button:not(:disabled){
		background:#FF0000 !important;
		color:#fff !important;
		box-shadow:0 5px 14px rgba(255,0,0,.18) !important;
	}
	.pfc-app.has-photos .pfc-add-button:hover:not(:disabled){
		background:#D90000 !important;
	}
}


/* v0.3.29 – mobilní kalibrace skutečného měřítka vlastní místnosti */
.pfc-room-calibration-overlay{display:none}
@media(max-width:980px){
	.pfc-mobile-custom-room-actions [data-room-calibrate-mobile]{
		grid-column:1 / -1;
		min-height:42px;
		font-weight:800;
		letter-spacing:.02em;
	}
	.pfc-mobile-custom-room-actions [data-room-calibrate-mobile].is-calibrated{
		background:#356b4a;
		border-color:#356b4a;
		color:#fff;
	}
	.pfc-mobile-room-calibration{
		grid-column:1 / -1;
		padding:12px;
		border:1px solid #ded7ce;
		border-radius:11px;
		background:#fff;
		color:#423d38;
		text-align:left;
	}
	.pfc-mobile-room-calibration[hidden]{display:none!important}
	.pfc-mobile-room-calibration strong{
		display:block;
		margin-bottom:5px;
		font-size:12px;
	}
	.pfc-mobile-room-calibration p{
		margin:0 0 10px;
		font-size:10px;
		line-height:1.45;
		color:#706960;
	}
	.pfc-mobile-room-calibration label{
		display:flex;
		align-items:center;
		justify-content:space-between;
		gap:10px;
		font-size:10px;
		font-weight:700;
	}
	.pfc-mobile-room-calibration label span{
		display:flex;
		align-items:center;
		gap:5px;
		white-space:nowrap;
	}
	.pfc-mobile-room-calibration input{
		width:86px;
		min-height:38px;
		box-sizing:border-box;
		border:1px solid #cfc7bd;
		border-radius:8px;
		background:#fff;
		padding:7px 9px;
		font:inherit;
		font-size:14px;
		font-weight:800;
		text-align:right;
	}
	.pfc-room-calibration-buttons{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:7px;
		margin-top:10px;
	}
	.pfc-room-calibration-buttons [data-room-calibration-reset]{grid-column:1 / -1}
	.pfc-room-calibration-status{
		margin-top:8px;
		font-size:9px;
		line-height:1.4;
		color:#756e67;
	}
	.pfc-room-calibration-overlay:not([hidden]){
		display:block;
		position:absolute;
		inset:0;
		z-index:30;
		touch-action:none;
		user-select:none;
		cursor:crosshair;
		background:rgba(0,0,0,.035);
	}
	.pfc-room-calibration-line{
		position:absolute;
		height:3px;
		transform-origin:0 50%;
		background:#fff;
		box-shadow:0 0 0 1px rgba(20,20,20,.65),0 1px 4px rgba(0,0,0,.35);
		pointer-events:none;
	}
	.pfc-room-calibration-line[hidden]{display:none!important}
	.pfc-room-calibration-point{
		position:absolute;
		width:30px;
		height:30px;
		box-sizing:border-box;
		transform:translate(-50%,-50%);
		display:grid;
		place-items:center;
		border:2px solid #fff;
		border-radius:50%;
		background:#b52d2d;
		color:#fff;
		font-size:11px;
		font-weight:900;
		box-shadow:0 2px 7px rgba(0,0,0,.42);
		pointer-events:none;
	}
	.pfc-room-calibration-point[hidden]{display:none!important}
	.pfc-room-calibration-hint{
		position:absolute;
		left:12px;
		right:12px;
		top:12px;
		padding:9px 11px;
		border-radius:9px;
		background:rgba(20,20,20,.82);
		color:#fff;
		font-size:10px;
		font-weight:700;
		line-height:1.35;
		text-align:center;
		pointer-events:none;
	}
}


/* v0.3.30 – pouze mobil: celá fotografie vlastní místnosti + celoobrazovkový náhled */
@media(max-width:980px){
	.pfc-room-stage.is-custom{
		background-size:contain !important;
		background-position:center center !important;
		background-color:#191919;
	}
	.pfc-mobile-custom-room-actions [data-room-fullscreen-mobile]{
		grid-column:1 / -1;
		min-height:42px;
		font-weight:800;
		letter-spacing:.02em;
	}
	.pfc-room-stage.is-mobile-fullscreen{
		position:fixed !important;
		inset:0 !important;
		z-index:999999 !important;
		width:100vw !important;
		height:100dvh !important;
		min-height:100vh !important;
		max-width:none !important;
		aspect-ratio:auto !important;
		margin:0 !important;
		border:0 !important;
		border-radius:0 !important;
		background-size:contain !important;
		background-position:center center !important;
		background-color:#111 !important;
		box-shadow:none !important;
	}
	html.pfc-room-fullscreen-open,
	body.pfc-room-fullscreen-open{
		overflow:hidden !important;
		overscroll-behavior:none;
	}
	.pfc-room-fullscreen-close{
		display:block;
		position:absolute;
		right:max(12px,env(safe-area-inset-right));
		top:max(12px,env(safe-area-inset-top));
		z-index:60;
		min-height:40px;
		padding:0 14px;
		border:1px solid rgba(255,255,255,.75);
		border-radius:999px;
		background:rgba(16,16,16,.82);
		color:#fff;
		font:inherit;
		font-size:11px;
		font-weight:900;
		letter-spacing:.04em;
	}
	.pfc-room-fullscreen-close[hidden]{display:none!important}
	.pfc-room-fullscreen-hint{
		position:absolute;
		left:50%;
		bottom:max(14px,env(safe-area-inset-bottom));
		z-index:55;
		transform:translateX(-50%);
		width:min(86vw,420px);
		box-sizing:border-box;
		padding:8px 12px;
		border-radius:999px;
		background:rgba(16,16,16,.78);
		color:#fff;
		font-size:10px;
		font-weight:700;
		line-height:1.35;
		text-align:center;
		pointer-events:none;
	}
	.pfc-room-fullscreen-hint[hidden]{display:none!important}
}
@media(min-width:981px){
	[data-room-fullscreen-mobile],
	[data-room-fullscreen-close],
	[data-room-fullscreen-hint]{display:none!important}
}


/* v0.3.31 – pouze mobil: vždy celý snímek místnosti + ovládání přímo ve fullscreen režimu */
.pfc-custom-room-background,
.pfc-room-fullscreen-toolbar,
.pfc-room-fullscreen-calibration{display:none}
@media(max-width:980px){
    .pfc-room-stage.is-custom:not(.is-mobile-fullscreen){
        min-height:0 !important;
        height:auto !important;
        max-height:none !important;
        overflow:hidden;
        background-image:none !important;
    }
    .pfc-room-stage.is-custom .pfc-custom-room-background:not([hidden]){
        display:block;
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        object-fit:contain;
        object-position:center center;
        z-index:0;
        pointer-events:none;
        user-select:none;
    }
    .pfc-room-stage.is-custom .pfc-custom-room-layer{z-index:10}
    .pfc-room-stage.is-custom .pfc-custom-room-empty{z-index:20}
    .pfc-room-stage.is-mobile-fullscreen .pfc-custom-room-background:not([hidden]){
        display:block;
        width:100%;
        height:100%;
        object-fit:contain;
        object-position:center center;
    }
    .pfc-room-fullscreen-toolbar:not([hidden]){
        display:flex;
        position:absolute;
        left:50%;
        bottom:max(16px,env(safe-area-inset-bottom));
        transform:translateX(-50%);
        z-index:70;
        gap:8px;
        padding:7px;
        border:1px solid rgba(255,255,255,.22);
        border-radius:18px;
        background:rgba(15,15,15,.78);
        backdrop-filter:blur(7px);
        box-shadow:0 5px 22px rgba(0,0,0,.35);
    }
    .pfc-room-fullscreen-tool{
        min-width:62px;
        min-height:54px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:2px;
        border:0;
        border-radius:12px;
        background:transparent;
        color:#fff;
        font:inherit;
        font-weight:800;
    }
    .pfc-room-fullscreen-tool span{font-size:24px;line-height:1}
    .pfc-room-fullscreen-tool small{font-size:9px;line-height:1.1;font-weight:800}
    .pfc-room-fullscreen-tool:hover,
    .pfc-room-fullscreen-tool:active,
    .pfc-room-fullscreen-tool.is-active{background:rgba(255,255,255,.16)}
    .pfc-room-fullscreen-tool:disabled{opacity:.35}
    .pfc-room-fullscreen-close{display:none!important}
    .pfc-room-fullscreen-calibration:not([hidden]){
        display:grid;
        position:absolute;
        left:12px;
        right:12px;
        top:max(12px,env(safe-area-inset-top));
        z-index:71;
        grid-template-columns:1fr auto;
        gap:5px 10px;
        align-items:center;
        padding:10px 12px;
        border-radius:13px;
        background:rgba(15,15,15,.86);
        color:#fff;
        box-shadow:0 4px 18px rgba(0,0,0,.32);
    }
    .pfc-room-fullscreen-calibration strong{font-size:11px}
    .pfc-room-fullscreen-calibration > span{grid-column:1 / -1;font-size:9px;opacity:.86}
    .pfc-room-fullscreen-calibration label{
        display:flex;
        align-items:center;
        gap:5px;
        font-size:11px;
        font-weight:800;
    }
    .pfc-room-fullscreen-calibration input{
        width:88px;
        min-height:36px;
        box-sizing:border-box;
        border:1px solid rgba(255,255,255,.45);
        border-radius:8px;
        background:#fff;
        color:#222;
        padding:6px 8px;
        font-size:14px;
        font-weight:800;
        text-align:right;
    }
    .pfc-room-fullscreen-calibration > div{display:flex;gap:6px}
    .pfc-room-fullscreen-calibration button{
        min-height:36px;
        border:1px solid rgba(255,255,255,.55);
        border-radius:8px;
        background:rgba(255,255,255,.12);
        color:#fff;
        padding:0 10px;
        font:inherit;
        font-size:10px;
        font-weight:800;
    }
    .pfc-room-fullscreen-calibration button:disabled{opacity:.38}
}
@media(min-width:981px){
    .pfc-custom-room-background,
    .pfc-room-fullscreen-toolbar,
    .pfc-room-fullscreen-calibration{display:none!important}
}


/* v0.3.32 – pouze mobil: spolehlivé fullscreen ovládání + nedestruktivní výřez/zoom místnosti */
.pfc-room-fullscreen-view{display:none}
@media(max-width:980px){
    .pfc-mobile-custom-room-actions [data-room-view-mobile]{
        grid-column:1 / -1;
        min-height:42px;
        font-weight:800;
        letter-spacing:.02em;
    }
    .pfc-room-stage.is-custom .pfc-custom-room-background:not([hidden]){
        right:auto !important;
        bottom:auto !important;
        max-width:none !important;
        max-height:none !important;
        object-fit:fill !important;
        object-position:center !important;
        transform:none !important;
        will-change:left,top,width,height;
    }
    .pfc-room-stage.is-mobile-fullscreen{touch-action:none !important;}
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-toolbar:not([hidden]){
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        position:fixed !important;
        left:50% !important;
        right:auto !important;
        top:max(10px,env(safe-area-inset-top)) !important;
        bottom:auto !important;
        transform:translateX(-50%) !important;
        z-index:2147483646 !important;
        pointer-events:auto !important;
        gap:4px !important;
        padding:5px !important;
        width:auto !important;
        max-width:calc(100vw - 16px) !important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool{
        min-width:58px;
        min-height:50px;
        padding:4px 5px;
        pointer-events:auto !important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool span{font-size:21px}
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool small{font-size:8.5px}
    .pfc-room-fullscreen-view:not([hidden]){
        display:grid !important;
        position:fixed !important;
        left:10px !important;
        right:10px !important;
        bottom:max(10px,env(safe-area-inset-bottom)) !important;
        z-index:2147483645 !important;
        gap:7px;
        box-sizing:border-box;
        padding:11px 12px;
        border:1px solid rgba(255,255,255,.28);
        border-radius:14px;
        background:rgba(15,15,15,.90);
        color:#fff;
        box-shadow:0 5px 24px rgba(0,0,0,.42);
        backdrop-filter:blur(8px);
        pointer-events:auto !important;
    }
    .pfc-room-fullscreen-view strong{font-size:12px;line-height:1.2}
    .pfc-room-fullscreen-view > span{font-size:9px;line-height:1.35;opacity:.86}
    .pfc-room-view-zoom-row{
        display:grid;
        grid-template-columns:38px minmax(100px,1fr) 38px 52px;
        gap:7px;
        align-items:center;
    }
    .pfc-room-view-zoom-row button,
    .pfc-room-view-buttons button{
        min-height:38px;
        border:1px solid rgba(255,255,255,.5);
        border-radius:9px;
        background:rgba(255,255,255,.11);
        color:#fff;
        font:inherit;
        font-size:11px;
        font-weight:900;
    }
    .pfc-room-view-zoom-row button{font-size:20px}
    .pfc-room-view-zoom-row input{width:100%;accent-color:#fff}
    .pfc-room-view-zoom-row b{font-size:10px;text-align:right;white-space:nowrap}
    .pfc-room-view-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}
    .pfc-room-view-buttons button:last-child{background:#fff;color:#202020}
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-calibration:not([hidden]){
        position:fixed !important;
        top:auto !important;
        left:10px !important;
        right:10px !important;
        bottom:max(10px,env(safe-area-inset-bottom)) !important;
        z-index:2147483645 !important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-calibration-overlay:not([hidden]){
        z-index:2147483643 !important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-custom-room-layer{z-index:2147483642 !important}
}
@media(min-width:981px){
    [data-room-view-mobile],
    .pfc-room-fullscreen-view{display:none!important}
}


/* v0.3.33 – mobil: postupné ovládání Moje místnost, spodní fullscreen menu, výrazný zoom jezdec a režim ruky */
@media(max-width:980px){
    /* Na prázdné místnosti nepřidáváme druhou dvojici upload tlačítek přímo do plochy. */
    .pfc-custom-room-empty [data-room-upload],
    .pfc-custom-room-empty [data-room-camera]{display:none!important;}

    .pfc-mobile-custom-room-actions > button[hidden],
    .pfc-mobile-room-status[hidden]{display:none!important;}

    /* Hlavní fullscreen menu je malé a nenápadné v pravém dolním rohu. */
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-toolbar:not([hidden]){
        display:flex!important;
        position:fixed!important;
        left:auto!important;
        right:max(8px,env(safe-area-inset-right))!important;
        top:auto!important;
        bottom:max(8px,env(safe-area-inset-bottom))!important;
        transform:none!important;
        z-index:2147483646!important;
        gap:2px!important;
        padding:4px!important;
        width:auto!important;
        max-width:calc(100vw - 16px)!important;
        border-radius:13px!important;
        background:rgba(15,15,15,.62)!important;
        box-shadow:0 3px 14px rgba(0,0,0,.28)!important;
        backdrop-filter:blur(5px);
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool{
        min-width:46px!important;
        min-height:43px!important;
        padding:3px 4px!important;
        border-radius:9px!important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool span{font-size:18px!important;}
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool small{font-size:7.5px!important;}

    /* Při otevřeném editoru výřezu jeho vlastní panel stačí; hlavní menu nepřekáží. */
    .pfc-room-stage.is-mobile-fullscreen.is-room-view-mode .pfc-room-fullscreen-toolbar{display:none!important;}
    /* Při kalibraci posuneme menu nad spodní kalibrační panel. */
    .pfc-room-stage.is-mobile-fullscreen.is-room-calibration-mode .pfc-room-fullscreen-toolbar:not([hidden]){
        bottom:128px!important;
    }

    .pfc-room-fullscreen-view:not([hidden]){
        left:8px!important;
        right:8px!important;
        bottom:max(8px,env(safe-area-inset-bottom))!important;
        padding:10px!important;
    }
    .pfc-room-view-zoom-row{
        grid-template-columns:38px minmax(120px,1fr) 38px 54px!important;
        gap:7px!important;
    }
    .pfc-room-view-zoom-row input[type="range"]{
        display:block!important;
        width:100%!important;
        min-width:0!important;
        height:30px!important;
        margin:0!important;
        accent-color:#fff!important;
        opacity:1!important;
    }
    .pfc-room-view-buttons{
        display:grid!important;
        grid-template-columns:1fr 1fr 1fr!important;
        gap:7px!important;
    }
    .pfc-room-view-buttons [data-room-view-pan].is-active{
        background:#fff!important;
        color:#202020!important;
        border-color:#fff!important;
    }
    .pfc-room-stage.is-room-pan-mode{touch-action:none!important;}
    .pfc-room-stage.is-room-pan-mode .pfc-custom-room-layer{cursor:grabbing;}

    /* Kalibrační nápověda už neleží úplně nahoře pod systémovými prvky. */
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-calibration-hint{
        top:max(8px,env(safe-area-inset-top))!important;
        left:8px!important;
        right:8px!important;
    }
}


/* v0.3.34 – mobil: skutečný fullscreen + přirozená gesta pinch/posun */
@media(max-width:980px){
    .pfc-room-stage.is-mobile-fullscreen,
    .pfc-room-stage.is-mobile-fullscreen:fullscreen,
    .pfc-room-stage.is-mobile-fullscreen:-webkit-full-screen{
        width:100vw!important;
        height:100vh!important;
        height:100dvh!important;
        max-width:none!important;
        max-height:none!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        border-radius:0!important;
        background:#000!important;
        overflow:hidden!important;
        touch-action:none!important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-custom-room-background{
        user-select:none!important;
        -webkit-user-drag:none!important;
        touch-action:none!important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-custom-room-layer{touch-action:none!important;}
    .pfc-room-fullscreen-view > span:after{
        content:' · Gesta fungují i přímo na fotografii.';
    }
    .pfc-room-view-buttons{grid-template-columns:1fr 1fr!important;}
    .pfc-room-view-buttons [data-room-view-pan]{display:none!important;}
}


/* v0.3.36 – mobil: spolehlivý jednoprstý posun přiblížené vlastní místnosti */
@media(max-width:980px){
    .pfc-room-stage.is-mobile-fullscreen{
        touch-action:none!important;
        overscroll-behavior:none!important;
        -webkit-user-select:none!important;
        user-select:none!important;
    }
    .pfc-room-stage.is-mobile-fullscreen .pfc-custom-room-background,
    .pfc-room-stage.is-mobile-fullscreen .pfc-custom-room-layer{
        touch-action:none!important;
        -webkit-user-select:none!important;
        user-select:none!important;
    }
}


/* v0.3.37 – mobil: oprava skutečného centrovaného pinch zoomu a pan posunu místnosti */
@media(max-width:980px){
    .pfc-room-stage.is-custom .pfc-custom-room-background:not([hidden]){
        right:auto!important;
        bottom:auto!important;
        transform:none!important;
        transform-origin:center center!important;
        will-change:left,top,width,height!important;
    }
}


/* v0.3.41 – pouze PC: větší odstup konfigurátoru od horního Divi menu */
@media(min-width:981px){
    .pfc-app{
        margin-top:58px!important;
    }
}


/* v0.3.42 – pouze PC: čistší prázdný stav, větší odsazení, srovnání bloků a lupa pro hlavní náhled */
@media(min-width:981px){
	/* Celý konfigurátor ještě o něco níž pod Divi menu. */
	.pfc-app{
		margin-top:84px!important;
	}

	/* Úvodní stav: bez plovoucího plus vpravo a bez bílé/stínované karty za rámem. */
	.pfc-app.is-empty .pfc-desktop-photo-rail,
	.pfc-app.is-empty .pfc-desktop-photo-add{
		display:none!important;
	}
	.pfc-app.is-empty .pfc-stage-card{
		background:transparent!important;
		border:0!important;
		box-shadow:none!important;
	}
	.pfc-app.is-empty .pfc-preview-shell{
		background:transparent!important;
		box-shadow:none!important;
		border-radius:0!important;
	}
	.pfc-app.is-empty .pfc-frame,
	.pfc-app.is-empty .pfc-photo-window{
		box-shadow:none!important;
	}

	/* Po nahrání: levý i pravý blok sedí níž a bez stínů. */
	.pfc-app.has-photos .pfc-stage-card{
		box-shadow:none!important;
		background:transparent!important;
		border:0!important;
		top:36px!important;
	}
	.pfc-app.has-photos .pfc-editor-controls{
		margin-top:22px!important;
		box-shadow:none!important;
		top:36px!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-dock,
	.pfc-app.has-photos .pfc-editor-controls > .pfc-tool-panel,
	.pfc-app.has-photos .pfc-editor-controls > .pfc-order-summary{
		box-shadow:none!important;
	}

	/* Hlavní plocha kolem rámečku zůstane čistá, bez bílého pozadí. */
	.pfc-app.has-photos .pfc-preview-shell{
		background:transparent!important;
		box-shadow:none!important;
		border-radius:0!important;
	}
	.pfc-app.has-photos .pfc-preview-panel[data-preview-panel="edit"] .pfc-preview-shell{
		padding-top:24px!important;
		padding-bottom:28px!important;
	}

	/* Portrétní rámeček je o něco menší, aby se celý vešel a nechyběl spodní profil. */
	.pfc-app.has-photos .pfc-frame{
		width:min(48%,330px)!important;
		max-width:330px!important;
		box-shadow:none!important;
	}
	.pfc-app.has-photos.is-landscape .pfc-frame{
		width:min(84%,720px)!important;
		max-width:720px!important;
	}
	.pfc-app.has-photos .pfc-photo-window,
	.pfc-app.has-photos .pfc-scene-photo-window{
		box-shadow:none!important;
	}

	/* Spodní pás s miniaturami naváže šířkou na hlavní náhled a nebude stínovaný. */
	.pfc-app.has-photos .pfc-desktop-photo-rail{
		width:min(48%,330px)!important;
		height:86px!important;
		margin:24px auto 0!important;
		background:transparent!important;
		box-shadow:none!important;
	}
	.pfc-app.has-photos.is-landscape .pfc-desktop-photo-rail{
		width:min(84%,720px)!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail .pfc-photo-thumb-rail,
	.pfc-app.has-photos .pfc-desktop-photo-add{
		box-shadow:none!important;
	}

	/* Tlačítko lupa pro zvětšení hlavního náhledu. */
	.pfc-stage-card{position:sticky;}
	.pfc-stage-zoom-trigger{
		position:absolute;
		right:14px;
		top:14px;
		z-index:30;
		width:42px;
		height:42px;
		display:inline-flex;
		align-items:center;
		justify-content:center;
		padding:0;
		border:1px solid rgba(0,0,0,.12);
		border-radius:999px;
		background:rgba(255,255,255,.94);
		color:#4a433e;
		cursor:pointer;
		box-shadow:none;
		transition:background .15s ease,border-color .15s ease,transform .15s ease;
	}
	.pfc-stage-zoom-trigger:hover{
		background:#fff;
		border-color:rgba(0,0,0,.22);
		transform:translateY(-1px);
	}
	.pfc-stage-zoom-trigger svg{
		width:20px;
		height:20px;
		fill:currentColor;
	}
	.pfc-app.is-empty .pfc-stage-zoom-trigger{display:none!important;}

	/* Desktop lightbox pro zvětšení náhledu. */
	.pfc-stage-lightbox[hidden]{display:none!important;}
	.pfc-stage-lightbox{
		position:fixed;
		inset:0;
		z-index:999999;
		display:flex;
		align-items:center;
		justify-content:center;
		padding:34px;
		background:rgba(18,16,14,.82);
	}
	.pfc-stage-lightbox__dialog{
		position:relative;
		max-width:92vw;
		max-height:92vh;
		padding:28px;
		border-radius:18px;
		background:#fff;
		overflow:auto;
	}
	.pfc-stage-lightbox__content > *{margin:0 auto;}
	.pfc-stage-lightbox__content .pfc-frame{
		width:auto!important;
		max-width:min(74vw,980px)!important;
		box-shadow:none!important;
	}
	.pfc-stage-lightbox__content .pfc-room-stage{
		width:min(84vw,1180px)!important;
		height:min(76vh,820px)!important;
		max-width:100%;
		margin:0 auto;
		box-shadow:none!important;
		border-radius:12px;
	}
	.pfc-stage-lightbox__content .pfc-photo-window,
	.pfc-stage-lightbox__content .pfc-scene-photo-window{
		box-shadow:none!important;
	}
	.pfc-stage-lightbox__close{
		position:absolute;
		right:12px;
		top:12px;
		width:38px;
		height:38px;
		display:grid;
		place-items:center;
		padding:0;
		border:0;
		border-radius:999px;
		background:#47403b;
		color:#fff;
		font-size:24px;
		line-height:1;
		cursor:pointer;
	}
	body.pfc-stage-lightbox-open{overflow:hidden!important;}
}
@media(max-width:980px){
	.pfc-stage-zoom-trigger,
	.pfc-stage-lightbox{display:none!important;}
}


/* v0.3.43 – pouze PC: funkční lupa přímo v pravém dolním rohu hlavní fotografie */
@media(min-width:981px){
	/* Staré umístění lupy na kartě vypnout; tlačítko se přesune do foto okna. */
	.pfc-stage-card > .pfc-stage-zoom-trigger{display:none!important;}
	.pfc-photo-window > .pfc-stage-zoom-trigger{
		display:inline-flex!important;
		position:absolute!important;
		right:10px!important;
		bottom:10px!important;
		left:auto!important;
		top:auto!important;
		z-index:45!important;
		width:40px!important;
		height:40px!important;
		align-items:center;
		justify-content:center;
		padding:0!important;
		border:1px solid rgba(255,255,255,.88)!important;
		border-radius:999px!important;
		background:rgba(35,31,28,.78)!important;
		color:#fff!important;
		box-shadow:none!important;
		backdrop-filter:blur(4px);
		cursor:pointer;
		transition:background .15s ease,transform .15s ease;
	}
	.pfc-photo-window > .pfc-stage-zoom-trigger:hover{
		background:rgba(20,18,16,.92)!important;
		transform:scale(1.04);
	}
	.pfc-photo-window > .pfc-stage-zoom-trigger svg{
		width:19px!important;
		height:19px!important;
		fill:currentColor;
	}
	.pfc-app.is-empty .pfc-photo-window > .pfc-stage-zoom-trigger{display:none!important;}
}

/* Lightbox je nově připojen přímo k body, aby ho neomezoval transformovaný wrapper pluginu. */
.pfc-stage-lightbox-v2[hidden]{display:none!important;}
.pfc-stage-lightbox-v2{
	position:fixed;
	inset:0;
	z-index:2147483000;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:28px;
	box-sizing:border-box;
	background:rgba(12,11,10,.86);
}
.pfc-stage-lightbox-v2__dialog{
	position:relative;
	width:min(94vw,1200px);
	max-height:94vh;
	box-sizing:border-box;
	padding:28px;
	border-radius:16px;
	background:#fff;
	overflow:auto;
	box-shadow:none;
}
.pfc-stage-lightbox-v2__content{
	display:flex;
	align-items:center;
	justify-content:center;
	min-height:0;
}
.pfc-stage-lightbox-v2__content .pfc-frame{
	width:auto!important;
	max-width:min(82vw,1000px)!important;
	max-height:82vh!important;
	margin:0 auto!important;
	box-shadow:none!important;
}
.pfc-stage-lightbox-v2__content .pfc-photo-window{
	box-shadow:none!important;
}
.pfc-stage-lightbox-v2__content .pfc-stage-zoom-trigger{display:none!important;}
.pfc-stage-lightbox-v2__close{
	position:absolute;
	right:10px;
	top:10px;
	z-index:10;
	width:40px;
	height:40px;
	display:grid;
	place-items:center;
	padding:0;
	border:0;
	border-radius:999px;
	background:#403a36;
	color:#fff;
	font:inherit;
	font-size:25px;
	line-height:1;
	cursor:pointer;
}
body.pfc-stage-lightbox-v2-open{overflow:hidden!important;}
@media(max-width:980px){
	.pfc-stage-lightbox-v2{display:none!important;}
}


/* v0.3.44 – PC: zvětšení lupou škáluje celý živý náhled včetně fotografie a cropu */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__content{
		width:100%;
		min-height:min(78vh,820px);
		overflow:auto;
		padding:10px;
		box-sizing:border-box;
	}
	.pfc-stage-lightbox-v2__snapshot{
		margin:auto;
	}
	.pfc-stage-lightbox-v2__snapshot .pfc-frame{
		max-width:none!important;
		max-height:none!important;
	}
	.pfc-stage-lightbox-v2__snapshot .pfc-photo-window{
		width:100%!important;
		height:auto;
	}
	.pfc-stage-lightbox-v2__snapshot .pfc-photo{
		display:block;
	}
}


/* v0.3.45 – PC: lightbox bez bílé karty + listování mezi náhledy */
@media(min-width:981px){
	.pfc-stage-lightbox-v2{
		padding:28px 70px!important;
		background:rgba(12,11,10,.90)!important;
	}
	.pfc-stage-lightbox-v2__dialog{
		width:auto!important;
		max-width:94vw!important;
		max-height:94vh!important;
		padding:0!important;
		border-radius:0!important;
		background:transparent!important;
		overflow:visible!important;
	}
	.pfc-stage-lightbox-v2__content{
		width:auto!important;
		min-height:0!important;
		max-width:88vw!important;
		max-height:88vh!important;
		padding:0!important;
		overflow:visible!important;
	}
	.pfc-stage-lightbox-v2__snapshot{
		position:relative;
		margin:auto!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-scene{
		width:min(86vw,1180px)!important;
		height:min(82vh,760px)!important;
		display:flex;
		align-items:center;
		justify-content:center;
	}
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-room-stage{
		position:relative!important;
		width:100%!important;
		height:100%!important;
		min-height:0!important;
		margin:0!important;
		border:0!important;
		border-radius:0!important;
		box-shadow:none!important;
		overflow:hidden!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-room-stage .pfc-custom-room-remove,
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-room-calibration-overlay,
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-room-fullscreen-toolbar,
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-room-fullscreen-view,
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-room-fullscreen-calibration,
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-room-fullscreen-hint{
		display:none!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-scene .pfc-custom-room-frame.is-selected{
		outline:0!important;
		box-shadow:none!important;
	}
	.pfc-stage-lightbox-v2__close{
		right:-18px!important;
		top:-18px!important;
		background:rgba(58,53,49,.92)!important;
		border:1px solid rgba(255,255,255,.45)!important;
	}
	.pfc-stage-lightbox-v2__nav{
		position:absolute;
		top:50%;
		z-index:20;
		width:48px;
		height:48px;
		display:grid;
		place-items:center;
		padding:0;
		border:1px solid rgba(255,255,255,.58);
		border-radius:999px;
		background:rgba(43,39,36,.72);
		color:#fff;
		font:inherit;
		font-size:32px;
		line-height:1;
		cursor:pointer;
		transform:translateY(-50%);
		backdrop-filter:blur(5px);
		transition:background .15s ease,transform .15s ease;
	}
	.pfc-stage-lightbox-v2__nav:hover{
		background:rgba(25,23,21,.94);
	}
	.pfc-stage-lightbox-v2__prev{left:-62px;}
	.pfc-stage-lightbox-v2__next{right:-62px;}
	.pfc-stage-lightbox-v2__label{
		position:absolute;
		left:50%;
		bottom:-38px;
		z-index:20;
		transform:translateX(-50%);
		max-width:70vw;
		padding:7px 13px;
		border-radius:999px;
		background:rgba(35,31,28,.76);
		color:#fff;
		font-size:11px;
		font-weight:800;
		line-height:1.2;
		white-space:nowrap;
		backdrop-filter:blur(5px);
	}
}


/* v0.3.46 – PC lightbox: čisté šipky, živé interiéry a nabídka Moje místnost */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__nav{
		width:44px!important;
		height:70px!important;
		border:0!important;
		border-radius:0!important;
		background:transparent!important;
		box-shadow:none!important;
		backdrop-filter:none!important;
		color:rgba(255,255,255,.92)!important;
		font-size:48px!important;
		font-weight:300!important;
		text-shadow:0 2px 8px rgba(0,0,0,.55);
	}
	.pfc-stage-lightbox-v2__nav:hover{
		background:transparent!important;
		color:#fff!important;
		transform:translateY(-50%) scale(1.08)!important;
	}
	.pfc-stage-lightbox-v2__nav[hidden]{display:none!important;}
	.pfc-stage-lightbox-v2__prev{left:-58px!important;}
	.pfc-stage-lightbox-v2__next{right:-58px!important;}

	/* Živý roomStage je dočasně přemístěn do lightboxu, proto má vlastní pevný viewport. */
	.pfc-stage-lightbox-v2__snapshot.is-scene{
		width:min(86vw,1180px)!important;
		height:min(82vh,760px)!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-scene > .pfc-room-stage{
		position:relative!important;
		width:100%!important;
		height:100%!important;
		min-height:0!important;
		max-height:none!important;
		margin:0!important;
		border:0!important;
		border-radius:0!important;
		box-shadow:none!important;
		overflow:hidden!important;
	}

	.pfc-stage-lightbox-v2__custom-empty{
		width:min(74vw,760px);
		min-height:420px;
		display:flex;
		flex-direction:column;
		align-items:center;
		justify-content:center;
		gap:14px;
		padding:42px;
		box-sizing:border-box;
		border:1px dashed rgba(255,255,255,.36);
		background:rgba(255,255,255,.055);
		color:#fff;
		text-align:center;
	}
	.pfc-stage-lightbox-v2__custom-icon{font-size:44px;line-height:1;opacity:.92;}
	.pfc-stage-lightbox-v2__custom-empty strong{font-size:24px;}
	.pfc-stage-lightbox-v2__custom-empty > span{max-width:520px;font-size:14px;line-height:1.5;color:rgba(255,255,255,.78);}
	.pfc-stage-lightbox-v2__custom-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:6px;}
	.pfc-stage-lightbox-v2__custom-actions button{
		min-height:44px;
		padding:0 18px;
		border:1px solid rgba(255,255,255,.45);
		border-radius:10px;
		background:rgba(255,255,255,.12);
		color:#fff;
		font:inherit;
		font-size:12px;
		font-weight:800;
		cursor:pointer;
	}
	.pfc-stage-lightbox-v2__custom-actions button:hover{background:rgba(255,255,255,.20);}
}


/* v0.3.47 – pouze PC: Moje místnost v lightboxu jen přes výběr souboru */
@media(min-width:981px){
    .pfc-stage-lightbox-v2__custom-actions [data-pfc-lightbox-room-file]{
        min-width:180px;
    }
    .pfc-stage-lightbox-v2__custom-actions [data-pfc-lightbox-room-file]:disabled{
        opacity:.55;
        cursor:wait;
    }
    .pfc-stage-lightbox-v2__custom-loading{
        display:block;
        margin-top:10px;
        color:rgba(255,255,255,.76);
        font-size:12px;
        font-weight:700;
    }
    .pfc-stage-lightbox-v2__custom-loading[hidden]{display:none!important;}
}


/* v0.3.50 – PC lightbox: obraz v Moje místnost lze táhnout myší */
@media(min-width:981px){
	.pfc-stage-lightbox-v2:not([hidden]) .pfc-room-stage.is-custom .pfc-custom-room-frame{
		cursor:grab!important;
		user-select:none!important;
		touch-action:none!important;
	}
	.pfc-stage-lightbox-v2:not([hidden]) .pfc-room-stage.is-custom .pfc-custom-room-frame:active{
		cursor:grabbing!important;
	}
}


/* v0.3.52 – PC lightbox: spodní pás miniatur místo bočních šipek */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__nav{display:none!important;}
	.pfc-stage-lightbox-v2__label{
		position:absolute!important;
		width:1px!important;
		height:1px!important;
		padding:0!important;
		margin:-1px!important;
		overflow:hidden!important;
		clip:rect(0 0 0 0)!important;
		white-space:nowrap!important;
		border:0!important;
	}
	.pfc-stage-lightbox-v2__dialog{
		padding-bottom:104px!important;
	}
	.pfc-stage-lightbox-v2__thumbs{
		position:absolute;
		left:50%;
		bottom:4px;
		z-index:28;
		transform:translateX(-50%);
		display:flex;
		align-items:flex-start;
		justify-content:center;
		gap:10px;
		max-width:min(94vw,1040px);
		overflow-x:auto;
		overflow-y:hidden;
		padding:8px 10px 5px;
		scrollbar-width:thin;
	}
	.pfc-stage-lightbox-v2__thumb{
		flex:0 0 142px;
		display:flex;
		flex-direction:column;
		align-items:stretch;
		gap:5px;
		padding:4px;
		border:1px solid rgba(255,255,255,.16);
		border-radius:9px;
		background:rgba(255,255,255,.055);
		color:#fff;
		font:inherit;
		cursor:pointer;
		transition:border-color .15s ease,background .15s ease,transform .15s ease;
	}
	.pfc-stage-lightbox-v2__thumb:hover{
		background:rgba(255,255,255,.11);
		border-color:rgba(255,255,255,.38);
	}
	.pfc-stage-lightbox-v2__thumb.is-active{
		border-color:#fff;
		background:rgba(255,255,255,.14);
		transform:translateY(-2px);
	}
	.pfc-stage-lightbox-v2__thumb-visual{
		position:relative;
		display:block;
		width:100%;
		aspect-ratio:16/9;
		border-radius:6px;
		background-color:#2f2a27;
		background-position:center;
		background-size:cover;
		background-repeat:no-repeat;
		overflow:hidden;
	}
	.pfc-stage-lightbox-v2__thumb-visual.is-living{background-image:url('../images/scene-living-room.png');}
	.pfc-stage-lightbox-v2__thumb-visual.is-bedroom{background-image:url('../images/scene-bedroom.png');}
	.pfc-stage-lightbox-v2__thumb-visual.is-desk{background-image:url('../images/scene-desk-v2.png');}
	.pfc-stage-lightbox-v2__thumb-visual.is-frame:after{
		content:"";
		position:absolute;
		inset:5px;
		border:5px solid rgba(214,180,125,.95);
		box-shadow:inset 0 0 0 1px rgba(56,37,22,.55);
		pointer-events:none;
	}
	.pfc-stage-lightbox-v2__thumb-visual.is-custom.is-empty{
		display:grid;
		place-items:center;
		background:rgba(255,255,255,.07);
		border:1px dashed rgba(255,255,255,.45);
		color:#fff;
		font-size:32px;
		font-weight:300;
	}
	.pfc-stage-lightbox-v2__thumb-label{
		display:block;
		padding:0 2px 2px;
		font-size:10px;
		font-weight:800;
		line-height:1.15;
		text-align:center;
		white-space:nowrap;
		overflow:hidden;
		text-overflow:ellipsis;
	}
}


/* v0.3.53 – PC lightbox: miniatury jsou přesné zmenšené kopie výsledných náhledů */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__thumb-visual.is-exact{
		display:block!important;
		background-image:none!important;
		background:#191715!important;
	}
	.pfc-stage-lightbox-v2__thumb-visual.is-frame.is-exact:after{
		display:none!important;
		content:none!important;
	}
	.pfc-stage-lightbox-v2__thumb-canvas{
		position:absolute;
		left:50%;
		top:50%;
		transform:translate(-50%,-50%);
		display:block;
		overflow:hidden;
		pointer-events:none;
	}
	.pfc-stage-lightbox-v2__thumb-canvas .pfc-frame,
	.pfc-stage-lightbox-v2__thumb-canvas .pfc-room-stage{
		margin:0!important;
		box-shadow:none!important;
	}
	.pfc-stage-lightbox-v2__thumb-canvas .pfc-scene-frame{
		box-shadow:0 1px 3px rgba(0,0,0,.18)!important;
	}
	.pfc-stage-lightbox-v2__thumb-canvas img{
		image-rendering:auto;
	}
	.pfc-stage-lightbox-v2__thumb-stage{
		position:fixed!important;
		left:-200vw!important;
		top:0!important;
		z-index:-1!important;
		visibility:hidden!important;
		pointer-events:none!important;
	}
}


/* v0.3.54 – PC lightbox: sjednocená výška prvního náhledu a trvalé přesné miniatury */
@media(min-width:981px){
	/* První samostatný rám nesmí opticky přerůst interiérové náhledy. */
	.pfc-stage-lightbox-v2__snapshot:not(.is-scene){
		max-height:min(72vh,660px)!important;
	}
	/* Pás miniatur zůstává na stejném místě bez ohledu na poměr stran velkého náhledu. */
	.pfc-stage-lightbox-v2__thumbs{
		min-height:84px;
	}
}

/* v0.3.55 – pouze PC: Moje místnost v lightboxu jako editor více obrazů, kalibrace a zoom 0–100 % */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor{
		position:relative!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor > .pfc-room-stage{
		cursor:default;
		background-image:none!important;
		background-color:#151515!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor > .pfc-room-stage.is-pfc-desktop-room-zoomed{
		cursor:grab;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor > .pfc-room-stage.is-pfc-desktop-room-panning{
		cursor:grabbing!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-custom-room-background:not([hidden]){
		display:block!important;
		position:absolute!important;
		right:auto!important;
		bottom:auto!important;
		max-width:none!important;
		max-height:none!important;
		object-fit:fill!important;
		object-position:0 0!important;
		z-index:0!important;
		pointer-events:none!important;
		user-select:none!important;
		transform:none!important;
		will-change:left,top,width,height;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-custom-room-layer{
		z-index:10!important;
		pointer-events:auto!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-custom-room-frame{
		cursor:grab!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-custom-room-frame:active{
		cursor:grabbing!important;
	}
	/* V editoru PC se kalibrační vrstva naopak zobrazuje – starší lightbox ji schovával. */
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-overlay:not([hidden]){
		display:block!important;
		position:absolute!important;
		inset:0!important;
		z-index:40!important;
		cursor:crosshair!important;
		background:rgba(0,0,0,.025)!important;
		user-select:none!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-line{
		position:absolute;
		height:3px;
		transform-origin:0 50%;
		background:#fff;
		box-shadow:0 0 0 1px rgba(20,20,20,.7),0 1px 5px rgba(0,0,0,.4);
		pointer-events:none;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-line[hidden]{display:none!important;}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-point{
		position:absolute;
		width:32px;
		height:32px;
		box-sizing:border-box;
		transform:translate(-50%,-50%);
		display:grid;
		place-items:center;
		border:2px solid #fff;
		border-radius:50%;
		background:#d62d2d;
		color:#fff;
		font-size:11px;
		font-weight:900;
		box-shadow:0 2px 8px rgba(0,0,0,.42);
		pointer-events:none;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-point[hidden]{display:none!important;}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-hint{
		position:absolute;
		left:50%;
		top:14px;
		transform:translateX(-50%);
		z-index:1;
		padding:8px 12px;
		border-radius:999px;
		background:rgba(20,20,20,.78);
		color:#fff;
		font-size:11px;
		font-weight:800;
		line-height:1.25;
		white-space:nowrap;
		pointer-events:none;
	}

	.pfc-stage-lightbox-v2__room-tools{
		position:absolute;
		left:50%;
		bottom:14px;
		z-index:55;
		transform:translateX(-50%);
		width:min(calc(100% - 28px),980px);
		box-sizing:border-box;
		padding:8px;
		border:1px solid rgba(255,255,255,.22);
		border-radius:14px;
		background:rgba(20,18,17,.80);
		backdrop-filter:blur(8px);
		box-shadow:0 8px 30px rgba(0,0,0,.22);
		color:#fff;
	}
	.pfc-stage-lightbox-v2__room-main-tools{
		display:flex;
		align-items:center;
		justify-content:center;
		gap:7px;
		min-width:0;
	}
	.pfc-stage-lightbox-v2__room-main-tools > button,
	.pfc-stage-lightbox-v2__room-calibration button{
		min-height:36px;
		padding:0 12px;
		border:1px solid rgba(255,255,255,.28);
		border-radius:9px;
		background:rgba(255,255,255,.10);
		color:#fff;
		font:inherit;
		font-size:10px;
		font-weight:900;
		white-space:nowrap;
		cursor:pointer;
	}
	.pfc-stage-lightbox-v2__room-main-tools > button:hover:not(:disabled),
	.pfc-stage-lightbox-v2__room-calibration button:hover:not(:disabled){background:rgba(255,255,255,.18);}
	.pfc-stage-lightbox-v2__room-main-tools > button:disabled,
	.pfc-stage-lightbox-v2__room-calibration button:disabled{opacity:.38;cursor:not-allowed;}
	.pfc-stage-lightbox-v2__room-main-tools > button.is-active{
		background:#fff;
		border-color:#fff;
		color:#292522;
	}
	.pfc-stage-lightbox-v2__room-zoom{
		min-width:300px;
		flex:1 1 380px;
		max-width:470px;
		display:grid;
		grid-template-columns:34px minmax(120px,1fr) 34px 52px;
		align-items:center;
		gap:7px;
	}
	.pfc-stage-lightbox-v2__room-zoom button{
		width:34px;
		height:34px;
		padding:0;
		border:1px solid rgba(255,255,255,.28);
		border-radius:8px;
		background:rgba(255,255,255,.10);
		color:#fff;
		font:inherit;
		font-size:20px;
		cursor:pointer;
	}
	.pfc-stage-lightbox-v2__room-zoom button:disabled{opacity:.35;cursor:not-allowed;}
	.pfc-stage-lightbox-v2__room-zoom input[type="range"]{
		width:100%;
		accent-color:#fff;
		cursor:pointer;
	}
	.pfc-stage-lightbox-v2__room-zoom b{
		font-size:10px;
		font-weight:900;
		text-align:right;
		white-space:nowrap;
	}
	.pfc-stage-lightbox-v2__room-calibration{
		display:flex;
		align-items:center;
		justify-content:center;
		gap:8px;
		margin-top:7px;
		padding-top:7px;
		border-top:1px solid rgba(255,255,255,.16);
	}
	.pfc-stage-lightbox-v2__room-calibration[hidden]{display:none!important;}
	.pfc-stage-lightbox-v2__room-calibration > span{
		font-size:10px;
		font-weight:700;
		color:rgba(255,255,255,.82);
	}
	.pfc-stage-lightbox-v2__room-calibration label{
		display:flex;
		align-items:center;
		gap:5px;
		font-size:10px;
		font-weight:800;
		white-space:nowrap;
	}
	.pfc-stage-lightbox-v2__room-calibration input{
		width:82px;
		height:34px;
		box-sizing:border-box;
		border:1px solid rgba(255,255,255,.35);
		border-radius:8px;
		background:#fff;
		color:#222;
		padding:5px 7px;
		font:inherit;
		font-size:12px;
		font-weight:800;
		text-align:right;
	}
	.pfc-stage-lightbox-v2__room-calibration [data-pfc-room-calibration-reset][hidden]{display:none!important;}
}


/* v0.3.56 – pouze PC: čtvercová miniatura Moje místnost + odebrání vybraného obrazu z místnosti */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__thumb-visual.is-custom{
		aspect-ratio:1/1!important;
		background-position:center!important;
		background-size:cover!important;
	}
	.pfc-stage-lightbox-v2__thumb-visual.is-custom.is-custom-room-photo{
		background-color:#272321!important;
	}
	.pfc-stage-lightbox-v2__room-main-tools [data-pfc-room-remove-selected]:not(:disabled){
		border-color:rgba(255,145,145,.48);
		background:rgba(153,45,45,.35);
	}
	.pfc-stage-lightbox-v2__room-main-tools [data-pfc-room-remove-selected]:hover:not(:disabled){
		background:rgba(178,48,48,.58);
	}
	/* Vybraný obraz má v PC editoru i přímý křížek v rohu. */
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-custom-room-frame.is-selected .pfc-custom-room-remove{
		display:grid!important;
		place-items:center;
	}
}


/* v0.3.57 – pouze PC: miniatury pod velkým náhledem + Moje místnost jako přesná 16:9 kopie */
@media(min-width:981px){
	/* Pás miniatur je součástí toku pod obrázkem, takže už nikdy neleží přes něj. */
	.pfc-stage-lightbox-v2__dialog{
		display:flex!important;
		flex-direction:column!important;
		align-items:center!important;
		justify-content:center!important;
		padding-bottom:0!important;
		gap:12px!important;
	}
	.pfc-stage-lightbox-v2__content{
		flex:0 1 auto!important;
		max-height:calc(94vh - 112px)!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-scene{
		height:min(72vh,700px)!important;
	}
	.pfc-stage-lightbox-v2__snapshot:not(.is-scene){
		max-height:min(68vh,620px)!important;
	}
	.pfc-stage-lightbox-v2__thumbs{
		position:relative!important;
		left:auto!important;
		bottom:auto!important;
		transform:none!important;
		flex:0 0 auto!important;
		margin:0 auto!important;
		padding:4px 8px 2px!important;
		min-height:0!important;
		max-width:min(92vw,920px)!important;
	}
	/* Všechny miniatury včetně Moje místnost mají stejný vodorovný formát. */
	.pfc-stage-lightbox-v2__thumb-visual,
	.pfc-stage-lightbox-v2__thumb-visual.is-custom{
		aspect-ratio:16/9!important;
		background-position:center!important;
		background-size:cover!important;
	}
}


/* v0.3.58 – pouze PC: miniatury pevně dole, hlavní náhled využije maximum místa, správná miniatura Moje místnost */
@media(min-width:981px){
	/* Lightbox zabere celý viewport a vyhradí spodní pás pouze miniaturám. */
	.pfc-stage-lightbox-v2{
		padding:0!important;
	}
	.pfc-stage-lightbox-v2__dialog{
		position:relative!important;
		display:block!important;
		width:100vw!important;
		height:100dvh!important;
		max-width:none!important;
		max-height:none!important;
		padding:0!important;
		margin:0!important;
		overflow:hidden!important;
	}
	.pfc-stage-lightbox-v2__content{
		position:absolute!important;
		left:24px!important;
		right:24px!important;
		top:18px!important;
		bottom:122px!important;
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
		width:auto!important;
		height:auto!important;
		max-width:none!important;
		max-height:none!important;
		padding:0!important;
		overflow:hidden!important;
	}

	/* Interiéry využijí maximum prostoru nad miniaturami, ale nikdy do nich nezasáhnou. */
	.pfc-stage-lightbox-v2__snapshot.is-scene{
		width:min(92vw,1280px)!important;
		height:min(calc(100dvh - 154px),820px)!important;
		max-height:100%!important;
		margin:0 auto!important;
	}
	.pfc-stage-lightbox-v2__snapshot:not(.is-scene){
		max-width:92vw!important;
		max-height:100%!important;
		margin:0 auto!important;
	}

	/* Pás miniatur je vždy u spodního okraje monitoru. */
	.pfc-stage-lightbox-v2__thumbs{
		position:absolute!important;
		left:50%!important;
		bottom:10px!important;
		z-index:80!important;
		transform:translateX(-50%)!important;
		display:flex!important;
		align-items:flex-start!important;
		justify-content:center!important;
		gap:10px!important;
		width:auto!important;
		max-width:calc(100vw - 40px)!important;
		min-height:0!important;
		margin:0!important;
		padding:5px 8px!important;
		overflow-x:auto!important;
		overflow-y:hidden!important;
	}
	.pfc-stage-lightbox-v2__thumb{
		display:flex!important;
	}
	.pfc-stage-lightbox-v2__thumb-visual.is-custom.is-empty{
		display:grid!important;
	}

	/* Zavírací kříž zůstane vždy uvnitř viewportu. */
	.pfc-stage-lightbox-v2__close{
		position:fixed!important;
		right:18px!important;
		top:18px!important;
		z-index:95!important;
	}

	/* Přesná miniatura Moje místnost musí obsahovat i skutečný obrázek místnosti. */
	.pfc-stage-lightbox-v2__thumb-canvas .pfc-custom-room-background:not([hidden]){
		display:block!important;
		position:absolute!important;
		right:auto!important;
		bottom:auto!important;
		max-width:none!important;
		max-height:none!important;
		object-fit:fill!important;
		object-position:0 0!important;
		z-index:0!important;
		pointer-events:none!important;
		transform:none!important;
	}
	.pfc-stage-lightbox-v2__thumb-canvas .pfc-custom-room-layer{
		position:absolute!important;
		inset:0!important;
		z-index:10!important;
	}
}

/* v0.3.63 – pouze mobil: čistší Náhled, lupa a fullscreen centrum pro místnosti */
.pfc-mobile-preview-loupe,
.pfc-room-fullscreen-scenes,
.pfc-room-fullscreen-room-actions{display:none}

@media(max-width:980px){
	/* Celý konfigurátor pod mobilní navigaci – nic nesmí lézt pod menu. */
	.pfc-app{
		margin-top:72px!important;
	}

	/* Po nahrání vlastní místnosti už běžný náhled nezahlcujeme akcemi. */
	.pfc-mobile-custom-room-actions[hidden]{display:none!important;}
	.pfc-mobile-custom-room-actions > [data-room-add-frame-mobile],
	.pfc-mobile-custom-room-actions > [data-room-remove-frame-mobile],
	.pfc-mobile-custom-room-actions > [data-room-fullscreen-mobile],
	.pfc-mobile-custom-room-actions > [data-room-view-mobile],
	.pfc-mobile-custom-room-actions > [data-room-calibrate-mobile],
	.pfc-mobile-custom-room-actions > .pfc-mobile-room-status{
		display:none!important;
	}

	/* Jediná běžná cesta do rozšířeného náhledu: malá lupa přímo na scéně. */
	.pfc-mobile-preview-loupe:not([hidden]){
		display:grid!important;
		place-items:center;
		position:absolute;
		right:10px;
		bottom:10px;
		z-index:35;
		width:38px;
		height:38px;
		padding:0;
		border:1px solid rgba(255,255,255,.76);
		border-radius:50%;
		background:rgba(20,20,20,.68);
		color:#fff;
		box-shadow:0 2px 10px rgba(0,0,0,.22);
		backdrop-filter:blur(5px);
		cursor:pointer;
	}
	.pfc-mobile-preview-loupe svg{width:19px;height:19px;fill:currentColor}
	.pfc-room-stage.is-mobile-fullscreen .pfc-mobile-preview-loupe{display:none!important;}

	/* Fullscreen presetové místnosti musí zachovat své skutečné pozadí. */
	.pfc-room-stage.is-mobile-fullscreen.is-living{
		background-image:url('../images/scene-living-room.png')!important;
		background-size:cover!important;
		background-position:center!important;
		background-color:#111!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-bedroom{
		background-image:url('../images/scene-bedroom.png')!important;
		background-size:cover!important;
		background-position:center!important;
		background-color:#111!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-desk{
		background-image:url('../images/scene-desk-v2.png')!important;
		background-size:cover!important;
		background-position:center!important;
		background-color:#111!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-custom{background-image:none!important;}

	/* Přepínání místností podobně jako na PC, ale kompaktně a vodorovně. */
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes:not([hidden]){
		display:flex!important;
		position:fixed!important;
		left:8px!important;
		right:8px!important;
		bottom:66px!important;
		z-index:2147483645!important;
		gap:6px!important;
		padding:5px!important;
		overflow-x:auto!important;
		overflow-y:hidden!important;
		border-radius:12px!important;
		background:rgba(15,15,15,.48)!important;
		backdrop-filter:blur(5px);
		scrollbar-width:none;
	}
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes::-webkit-scrollbar{display:none}
	.pfc-room-fullscreen-scenes > button{
		flex:0 0 72px;
		min-width:72px;
		padding:3px;
		border:1px solid rgba(255,255,255,.20);
		border-radius:9px;
		background:rgba(20,20,20,.62);
		color:#fff;
		font:inherit;
		cursor:pointer;
	}
	.pfc-room-fullscreen-scenes > button[hidden]{display:none!important}
	.pfc-room-fullscreen-scenes > button.is-active{
		border-color:#fff;
		box-shadow:0 0 0 1px rgba(255,255,255,.65);
	}
	.pfc-room-scene-thumb{
		display:block;
		position:relative;
		width:100%;
		aspect-ratio:16/9;
		border-radius:6px;
		background-position:center;
		background-size:cover;
		background-repeat:no-repeat;
		overflow:hidden;
	}
	.pfc-room-scene-thumb.is-living{background-image:url('../images/scene-living-room.png')}
	.pfc-room-scene-thumb.is-bedroom{background-image:url('../images/scene-bedroom.png')}
	.pfc-room-scene-thumb.is-desk{background-image:url('../images/scene-desk-v2.png')}
	.pfc-room-scene-thumb.is-custom{background-color:#383431}
	.pfc-room-scene-thumb.is-custom.is-empty:after{
		content:'+';
		position:absolute;
		inset:0;
		display:grid;
		place-items:center;
		font-size:22px;
		font-weight:500;
		color:#fff;
	}
	.pfc-room-fullscreen-scenes small{
		display:block;
		margin-top:3px;
		font-size:7px;
		font-weight:800;
		line-height:1.1;
		white-space:nowrap;
		text-align:center;
	}

	/* Spodní toolbar – jen relevantní akce. Gesta řeší zoom/posun bez dalších tlačítek. */
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-toolbar:not([hidden]){
		display:flex!important;
		position:fixed!important;
		left:50%!important;
		right:auto!important;
		top:auto!important;
		bottom:max(8px,env(safe-area-inset-bottom))!important;
		transform:translateX(-50%)!important;
		z-index:2147483646!important;
		gap:3px!important;
		padding:4px!important;
		border-radius:12px!important;
		background:rgba(15,15,15,.65)!important;
		box-shadow:0 3px 14px rgba(0,0,0,.28)!important;
		backdrop-filter:blur(5px);
	}
	.pfc-room-fullscreen-tool[hidden]{display:none!important}
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool{
		min-width:50px!important;
		min-height:44px!important;
		padding:3px 5px!important;
		border-radius:8px!important;
	}
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool span{font-size:18px!important}
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-tool small{font-size:7.5px!important}

	/* Výběr jiné místnosti zůstává uvnitř fullscreen režimu. */
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-room-actions:not([hidden]){
		display:grid!important;
		position:fixed!important;
		left:12px!important;
		right:12px!important;
		bottom:126px!important;
		z-index:2147483647!important;
		grid-template-columns:1fr 1fr!important;
		gap:7px!important;
		padding:10px!important;
		border:1px solid rgba(255,255,255,.24)!important;
		border-radius:12px!important;
		background:rgba(15,15,15,.90)!important;
		color:#fff!important;
		box-shadow:0 5px 22px rgba(0,0,0,.32)!important;
		backdrop-filter:blur(8px);
	}
	.pfc-room-fullscreen-room-actions strong{grid-column:1/-1;font-size:11px}
	.pfc-room-fullscreen-room-actions button{
		min-height:38px;
		border:1px solid rgba(255,255,255,.38);
		border-radius:8px;
		background:rgba(255,255,255,.10);
		color:#fff;
		font:inherit;
		font-size:9px;
		font-weight:800;
	}
	.pfc-room-fullscreen-room-actions [data-room-fullscreen-room-actions-close]{grid-column:1/-1}

	/* Kalibrace patří nahoru, aby se netloukla s miniaturami ani spodním menu. */
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-calibration:not([hidden]){
		position:fixed!important;
		left:8px!important;
		right:8px!important;
		top:max(8px,env(safe-area-inset-top))!important;
		bottom:auto!important;
		z-index:2147483647!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-room-calibration-mode .pfc-room-fullscreen-toolbar:not([hidden]){
		bottom:max(8px,env(safe-area-inset-bottom))!important;
	}
	.pfc-room-fullscreen-hint{display:none!important}
}

@media(max-width:420px){
	.pfc-app{margin-top:66px!important}
	.pfc-room-fullscreen-scenes > button{flex-basis:66px;min-width:66px}
}

@media(min-width:981px){
	.pfc-mobile-preview-loupe,
	.pfc-room-fullscreen-scenes,
	.pfc-room-fullscreen-room-actions{display:none!important}
}


/* v0.3.64 – pouze mobil: kalibrační číselné pole musí zůstat editovatelné i při softwarové klávesnici */
@media(max-width:980px){
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-calibration,
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-calibration label,
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-calibration input,
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-calibration button{
		pointer-events:auto!important;
	}
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-calibration input{
		touch-action:manipulation!important;
		-webkit-user-select:text!important;
		user-select:text!important;
	}
}


/* v0.3.66 – pouze mobil: keyboard-safe portál kalibrace mimo gesture vrstvu místnosti */
@media(max-width:980px){
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe:not([hidden]){
		display:grid!important;
		position:fixed!important;
		left:8px!important;
		right:8px!important;
		top:max(8px,env(safe-area-inset-top))!important;
		bottom:auto!important;
		z-index:2147483647!important;
		grid-template-columns:1fr auto!important;
		gap:5px 10px!important;
		align-items:center!important;
		padding:10px 12px!important;
		border-radius:13px!important;
		background:rgba(15,15,15,.94)!important;
		color:#fff!important;
		box-shadow:0 4px 18px rgba(0,0,0,.32)!important;
		pointer-events:auto!important;
		touch-action:auto!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe input{
		width:96px!important;
		min-height:42px!important;
		background:#fff!important;
		color:#111!important;
		font-size:16px!important; /* 16 px brání automatickému zoomu iOS při focusu */
		text-align:right!important;
		touch-action:auto!important;
		pointer-events:auto!important;
		-webkit-user-select:text!important;
		user-select:text!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe button{
		pointer-events:auto!important;
		touch-action:manipulation!important;
	}
}


/* v0.3.67 – pouze mobil: vlastní numerická klávesnice kalibrace bez systémové soft klávesnice */
@media(max-width:980px){
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe:not([hidden]){
		grid-template-columns:1fr!important;
		max-height:calc(100dvh - 16px)!important;
		overflow:auto!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe label{
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
		gap:8px!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe input{
		width:130px!important;
		font-size:22px!important;
		font-weight:900!important;
		cursor:default!important;
	}
	.pfc-room-calibration-keypad{
		display:grid!important;
		grid-template-columns:repeat(3,minmax(0,1fr))!important;
		gap:7px!important;
		width:min(300px,92vw)!important;
		margin:4px auto 2px!important;
	}
	.pfc-room-calibration-keypad button{
		min-height:46px!important;
		border:1px solid rgba(255,255,255,.22)!important;
		border-radius:10px!important;
		background:rgba(255,255,255,.12)!important;
		color:#fff!important;
		font-size:18px!important;
		font-weight:800!important;
		touch-action:manipulation!important;
	}
	.pfc-room-calibration-keypad button:active{background:rgba(255,255,255,.24)!important;}
	.pfc-room-calibration-keypad .pfc-room-calibration-keypad-clear{
		grid-column:1 / -1!important;
		min-height:38px!important;
		font-size:12px!important;
	}
}
@media(min-width:981px){.pfc-room-calibration-keypad{display:none!important;}}


/* v0.3.68 – pouze mobil: kompaktní kalibrační keypad, aby zůstala vidět většina místnosti */
@media(max-width:980px){
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe:not([hidden]){
		left:6px!important;
		right:6px!important;
		top:max(6px,env(safe-area-inset-top))!important;
		padding:7px 8px!important;
		border-radius:11px!important;
		grid-template-columns:auto 1fr!important;
		gap:5px 8px!important;
		align-items:center!important;
		max-height:none!important;
		overflow:visible!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > strong{
		grid-column:1!important;
		grid-row:1!important;
		font-size:11px!important;
		white-space:nowrap!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > span{
		display:none!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > label{
		grid-column:2!important;
		grid-row:1!important;
		justify-self:end!important;
		justify-content:flex-end!important;
		gap:5px!important;
		font-size:11px!important;
		white-space:nowrap!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe input{
		width:82px!important;
		min-height:32px!important;
		height:32px!important;
		padding:4px 7px!important;
		font-size:17px!important;
		line-height:1!important;
		border-radius:7px!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-keypad{
		grid-column:1 / -1!important;
		grid-row:2!important;
		display:grid!important;
		grid-template-columns:repeat(7,minmax(0,1fr))!important;
		gap:4px!important;
		width:100%!important;
		margin:0!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-keypad button{
		min-width:0!important;
		min-height:32px!important;
		height:32px!important;
		padding:0!important;
		border-radius:7px!important;
		font-size:15px!important;
		line-height:1!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-keypad .pfc-room-calibration-keypad-clear{
		grid-column:auto!important;
		min-height:32px!important;
		height:32px!important;
		font-size:13px!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > div:last-child{
		grid-column:1 / -1!important;
		grid-row:3!important;
		display:grid!important;
		grid-template-columns:1fr 1fr!important;
		gap:5px!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > div:last-child button{
		min-height:31px!important;
		height:31px!important;
		padding:0 8px!important;
		font-size:10px!important;
		border-radius:7px!important;
	}
}


/* v0.3.69 – pouze mobil: lupa i u hlavního rámu, jednotné procházení náhledů a čisté zavření */
@media(max-width:980px){
	/* Lupa funguje i v běžném editoru Velikost/Rám, pokud má fotografie nastavený rozměr i rám. */
	.pfc-preview-shell{position:relative;}
	.pfc-mobile-stage-loupe:not([hidden]){
		display:grid!important;
		right:10px!important;
		bottom:10px!important;
	}

	/* Samostatná fotografie v rámečku jako první položka fullscreen procházení. */
	.pfc-room-stage.is-mobile-fullscreen.is-frame{
		background:#111!important;
		background-image:none!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-frame .pfc-scene-frame{
		display:block!important;
		left:50%!important;
		top:50%!important;
		right:auto!important;
		bottom:auto!important;
		transform:translate(-50%,-53%)!important;
		box-shadow:0 18px 42px rgba(0,0,0,.42)!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-frame .pfc-custom-room-background,
	.pfc-room-stage.is-mobile-fullscreen.is-frame .pfc-custom-room-layer,
	.pfc-room-stage.is-mobile-fullscreen.is-frame .pfc-custom-room-empty{
		display:none!important;
	}
	.pfc-room-scene-thumb.is-frame{
		background-color:#242322;
		background-position:center!important;
		background-size:cover!important;
		box-shadow:inset 0 0 0 4px rgba(205,188,164,.9), inset 0 0 0 5px rgba(0,0,0,.35);
	}
	.pfc-room-scene-thumb.is-frame.is-empty:after{
		content:'▣';
		position:absolute;
		inset:0;
		display:grid;
		place-items:center;
		color:#fff;
		font-size:20px;
	}

	/* Pět náhledů se na běžných telefonech vejde bez zbytečně velkého posouvání. */
	.pfc-room-fullscreen-scenes > button{
		flex-basis:64px!important;
		min-width:64px!important;
	}

	/* Horní křížek zůstává jako rychlé zavření; v Moje místnost je od v0.3.70 navíc i Zavřít ve spodním menu. */
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-close-float:not([hidden]){
		display:grid!important;
		place-items:center!important;
		position:fixed!important;
		right:max(10px,env(safe-area-inset-right))!important;
		top:max(10px,env(safe-area-inset-top))!important;
		z-index:2147483647!important;
		width:42px!important;
		height:42px!important;
		padding:0!important;
		border:1px solid rgba(255,255,255,.72)!important;
		border-radius:50%!important;
		background:rgba(18,18,18,.72)!important;
		color:#fff!important;
		box-shadow:0 3px 14px rgba(0,0,0,.28)!important;
		backdrop-filter:blur(5px);
		font:inherit!important;
		cursor:pointer;
		touch-action:manipulation!important;
	}
	.pfc-room-fullscreen-close-float span{
		font-size:31px!important;
		font-weight:300!important;
		line-height:1!important;
		transform:translateY(-1px);
	}

	/* U přednastavených scén nejsou žádné další spodní ovladače potřeba. */
	.pfc-room-stage.is-mobile-fullscreen:not(.is-custom) .pfc-room-fullscreen-toolbar{
		display:none!important;
	}
}

@media(max-width:420px){
	.pfc-room-fullscreen-scenes > button{flex-basis:61px!important;min-width:61px!important;}
}
@media(min-width:981px){
	.pfc-mobile-stage-loupe,
	.pfc-room-fullscreen-close-float{display:none!important;}
}


/* v0.3.70 – pouze mobil: spolehlivé ovládání lupy/náhledů a návrat tlačítka Zavřít do spodní lišty Moje místnost */
@media(max-width:980px){
	/* Ovládací prvky musí být vždy nad gesty a musí přijímat tap samy. */
	.pfc-mobile-preview-loupe:not([hidden]),
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes:not([hidden]),
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes > button,
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-toolbar:not([hidden]),
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-toolbar button,
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-close-float:not([hidden]){
		pointer-events:auto!important;
		touch-action:manipulation!important;
		-webkit-tap-highlight-color:transparent;
	}

	/* Lupa funguje stejně v hlavním rámu i ve všech interiérových scénách. */
	.pfc-preview-shell > .pfc-mobile-stage-loupe:not([hidden]),
	.pfc-room-stage > [data-room-mobile-loupe]:not([hidden]){
		z-index:2147483600!important;
	}

	/* Miniatury jsou samostatné UI – gesta vlastní místnosti je nesmí překrýt. */
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes:not([hidden]){
		z-index:2147483646!important;
	}
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes > button{
		position:relative!important;
		z-index:1!important;
	}

	/* Ve vlastní místnosti zůstává Zavřít i jako poslední položka spodního menu. */
	.pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar [data-room-fullscreen-toolbar-close]{
		display:flex!important;
	}
	.pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-toolbar [data-room-fullscreen-toolbar-close] span{
		font-size:21px!important;
		font-weight:300!important;
		line-height:1!important;
	}

	/* Čtyři položky Fotky / Místnost / Měřítko / Zavřít se vejdou i na menší telefon. */
	.pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar:not([hidden]){
		max-width:calc(100vw - 12px)!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-tool{
		min-width:48px!important;
	}
}

/* v0.3.71 – pouze mobil: jednotný fullscreen pro všechny scény + uchopitelné body kalibrace */
@media(max-width:980px){
	.pfc-preview-shell > .pfc-mobile-stage-loupe:not([hidden]),
	.pfc-room-stage > [data-room-mobile-loupe]:not([hidden]){
		display:grid!important;
		visibility:visible!important;
		opacity:1!important;
		pointer-events:auto!important;
		touch-action:manipulation!important;
	}

	.pfc-room-stage.is-mobile-fullscreen{
		position:fixed!important;
		inset:0!important;
		width:100vw!important;
		height:100dvh!important;
		min-height:100dvh!important;
		max-height:none!important;
		z-index:2147483600!important;
		overflow:hidden!important;
	}

	.pfc-room-stage.is-mobile-fullscreen.is-frame .pfc-scene-frame{
		top:calc(50% - 42px)!important;
		transform:translate(-50%,-50%)!important;
	}

	.pfc-room-stage.is-mobile-fullscreen .pfc-room-calibration-point,
	.pfc-room-calibration-overlay .pfc-room-calibration-point{
		pointer-events:auto!important;
		touch-action:none!important;
		cursor:grab!important;
		width:34px!important;
		height:34px!important;
		z-index:4!important;
	}
	.pfc-room-calibration-overlay .pfc-room-calibration-point:active{cursor:grabbing!important;}

	.pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-custom-room-frame.is-selected .pfc-custom-room-remove{
		display:grid!important;
		place-items:center!important;
		pointer-events:auto!important;
		touch-action:manipulation!important;
		z-index:30!important;
	}
}


/* v0.3.72 – pouze mobil: maximální fullscreen po lupě + jednodušší kalibrační keypad 0–9/C */
@media(max-width:980px){
	html:fullscreen,
	html:-webkit-full-screen{
		background:#111!important;
		width:100%!important;
		height:100%!important;
	}
	html:fullscreen body.pfc-room-fullscreen-open,
	html:-webkit-full-screen body.pfc-room-fullscreen-open{
		width:100%!important;
		height:100%!important;
		min-height:100%!important;
		overflow:hidden!important;
	}
	html:fullscreen .pfc-room-stage.is-mobile-fullscreen,
	html:-webkit-full-screen .pfc-room-stage.is-mobile-fullscreen{
		inset:0!important;
		width:100%!important;
		height:100%!important;
		min-height:100%!important;
		max-height:none!important;
	}
	body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-keypad{
		grid-template-columns:repeat(6,minmax(0,1fr))!important;
	}
}


/* v0.3.73 – pouze mobil: ve fullscreen „Moje místnost“ je ovládací menu nad miniaturami; miniatury jsou úplně dole. */
@media(max-width:980px){
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-scenes:not([hidden]){
        bottom:max(6px,env(safe-area-inset-bottom))!important;
    }
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar:not([hidden]){
        bottom:calc(max(6px,env(safe-area-inset-bottom)) + 64px)!important;
    }
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-room-actions:not([hidden]){
        bottom:calc(max(6px,env(safe-area-inset-bottom)) + 122px)!important;
    }
}

/* v0.3.74 – vyrovnané focení vlastní místnosti + bezpečný přenos rozpracovaného projektu mobil → PC. */
.pfc-project-transfer-bar{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:8px;
	margin:8px 0 0;
}
.pfc-project-transfer-button{
	appearance:none;
	border:1px solid #d8d0c7;
	border-radius:999px;
	background:#fff;
	color:#554c43;
	padding:8px 14px;
	font-size:12px;
	font-weight:700;
	line-height:1.2;
	cursor:pointer;
}
.pfc-project-transfer-button:hover{background:#f7f3ef;border-color:#bfb4a8}
.pfc-project-transfer-to-pc{display:none}
.pfc-project-transfer-from-mobile{display:inline-flex}

.pfc-project-transfer-modal[hidden],
.pfc-room-camera-guide[hidden]{display:none!important}
html.pfc-transfer-open,body.pfc-transfer-open,
html.pfc-room-camera-open,body.pfc-room-camera-open{overflow:hidden!important}
.pfc-project-transfer-modal{
	position:fixed;
	inset:0;
	z-index:2147483646;
	display:grid;
	place-items:center;
	padding:18px;
	background:rgba(15,13,12,.68);
	backdrop-filter:blur(5px);
}
.pfc-project-transfer-card{
	position:relative;
	width:min(430px,100%);
	padding:26px 22px 22px;
	border-radius:20px;
	background:#fff;
	box-shadow:0 24px 70px rgba(0,0,0,.28);
	text-align:center;
}
.pfc-project-transfer-card strong{display:block;font-size:21px;line-height:1.2;color:#211d19}
.pfc-project-transfer-card p{margin:9px 0 16px;color:#756b61;font-size:14px;line-height:1.45}
.pfc-project-transfer-close{
	position:absolute;
	top:8px;
	right:10px;
	width:34px;
	height:34px;
	border:0;
	border-radius:50%;
	background:transparent;
	font-size:28px;
	line-height:1;
	cursor:pointer;
}
.pfc-project-transfer-create,.pfc-project-transfer-load,.pfc-project-transfer-code-wrap button{
	appearance:none;
	border:0;
	border-radius:10px;
	background:#3f3832;
	color:#fff;
	font-weight:800;
	padding:11px 16px;
	cursor:pointer;
}
.pfc-project-transfer-create:disabled,.pfc-project-transfer-load:disabled{opacity:.55;cursor:wait}
.pfc-project-transfer-code-wrap{margin-top:16px;display:grid;gap:8px;justify-items:center}
.pfc-project-transfer-code-wrap[hidden]{display:none!important}
.pfc-project-transfer-code-wrap code{
	display:block;
	font:800 30px/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
	letter-spacing:.1em;
	color:#201c18;
	background:#f4f1ed;
	border:1px solid #dfd7ce;
	border-radius:12px;
	padding:12px 14px;
}
.pfc-project-transfer-code-wrap small{color:#776d63;font-size:11px}
.pfc-project-transfer-card input[data-project-transfer-input]{
	display:block;
	width:min(260px,100%);
	margin:0 auto 12px;
	border:1px solid #cfc5bb;
	border-radius:12px;
	padding:12px 14px;
	font:800 22px/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
	text-align:center;
	letter-spacing:.08em;
	text-transform:uppercase;
}
.pfc-project-transfer-status{min-height:18px;margin-top:12px;color:#5e554d;font-size:12px;line-height:1.4}
.pfc-project-transfer-status.is-error{color:#a31d1d}

.pfc-room-camera-guide{
	position:fixed;
	inset:0;
	z-index:2147483600;
	background:#000;
	color:#fff;
	overflow:hidden;
	touch-action:none;
}
.pfc-room-camera-video{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	object-fit:cover;
	background:#000;
}
.pfc-room-camera-shade{
	position:absolute;
	inset:0;
	pointer-events:none;
	background:linear-gradient(180deg,rgba(0,0,0,.48) 0,transparent 18%,transparent 70%,rgba(0,0,0,.62) 100%);
}
.pfc-room-camera-top{
	position:absolute;
	z-index:4;
	top:max(12px,env(safe-area-inset-top));
	left:12px;
	right:12px;
	display:grid;
	grid-template-columns:42px 1fr 42px;
	align-items:center;
	pointer-events:none;
}
.pfc-room-camera-top strong{grid-column:2;text-align:center;font-size:15px;text-shadow:0 1px 3px #000}
.pfc-room-camera-top button{
	grid-column:1;
	pointer-events:auto;
	width:42px;height:42px;
	border:0;border-radius:50%;
	background:rgba(0,0,0,.48);color:#fff;
	font-size:31px;line-height:1;
}
.pfc-room-camera-level{
	position:absolute;
	z-index:3;
	left:50%;
	top:46%;
	width:120px;
	height:120px;
	transform:translate(-50%,-50%);
	pointer-events:none;
}
.pfc-room-camera-cross{
	position:absolute;
	left:50%;top:50%;
	width:66px;height:66px;
	transform:translate(-50%,-50%);
	transition:transform .06s linear,border-color .15s,opacity .15s;
}
.pfc-room-camera-cross::before,.pfc-room-camera-cross::after{
	content:"";
	position:absolute;
	left:50%;top:50%;
	background:currentColor;
	border-radius:2px;
	transform:translate(-50%,-50%);
}
.pfc-room-camera-cross::before{width:66px;height:2px}
.pfc-room-camera-cross::after{width:2px;height:66px}
.pfc-room-camera-cross.is-fixed{color:rgba(255,255,255,.92);filter:drop-shadow(0 1px 2px #000)}
.pfc-room-camera-cross.is-moving{color:#ffcf40;filter:drop-shadow(0 1px 2px #000)}
.pfc-room-camera-guide.is-level .pfc-room-camera-cross.is-moving{color:#66f18b}
.pfc-room-camera-guide.is-level .pfc-room-camera-level{filter:drop-shadow(0 0 7px rgba(75,255,123,.45))}
.pfc-room-camera-bottom{
	position:absolute;
	z-index:4;
	left:0;right:0;
	bottom:max(12px,env(safe-area-inset-bottom));
	display:grid;
	gap:12px;
	justify-items:center;
	padding:0 16px;
}
.pfc-room-camera-bottom>span{
	min-height:20px;
	padding:5px 10px;
	border-radius:999px;
	background:rgba(0,0,0,.48);
	font-size:12px;
	text-align:center;
}
.pfc-room-camera-bottom>div{position:relative;width:min(360px,100%);height:68px;display:flex;align-items:center;justify-content:center}
.pfc-room-camera-shutter{
	width:66px;height:66px;
	border:3px solid #fff!important;
	border-radius:50%!important;
	background:rgba(0,0,0,.2)!important;
	padding:5px!important;
}
.pfc-room-camera-shutter i{display:block;width:100%;height:100%;border-radius:50%;background:#fff}
.pfc-room-camera-shutter:disabled{opacity:.4}
.pfc-room-camera-native{
	position:absolute;
	left:0;
	max-width:112px;
	border:0;
	border-radius:9px;
	background:rgba(0,0,0,.5);
	color:#fff;
	padding:8px 9px;
	font-size:10px;
	line-height:1.2;
}
.pfc-room-camera-guide.has-camera-error .pfc-room-camera-level{opacity:.25}

@media(max-width:980px){
	.pfc-project-transfer-from-mobile{display:none!important}
	.pfc-project-transfer-to-pc{display:none}
	.pfc-app.has-photos .pfc-project-transfer-to-pc{display:inline-flex}
	.pfc-project-transfer-bar{margin:5px 0 8px}
	.pfc-project-transfer-button{font-size:11px;padding:7px 12px}
}
@media(min-width:981px){
	.pfc-project-transfer-bar{grid-column:1 / -1;grid-row:2;margin:2px 0 0;justify-content:flex-end}
	.pfc-app.is-empty .pfc-project-transfer-bar{justify-content:center}
}


/* v0.3.75 – profesionálnější vodováha: oba zaměřovací kříže přes celý obraz fotoaparátu. */
@media (max-width: 767px){
  .pfc-room-camera-level{
    inset:0;
    width:100%;
    height:100%;
    transform:none;
    pointer-events:none;
    overflow:hidden;
  }
  .pfc-room-camera-cross{
    position:absolute;
    left:50%;
    top:50%;
    width:0;
    height:0;
  }
  .pfc-room-camera-cross::before{
    width:100vw;
    height:2px;
    background:currentColor;
    box-shadow:0 1px 3px rgba(0,0,0,.75);
  }
  .pfc-room-camera-cross::after{
    width:2px;
    height:100vh;
    background:currentColor;
    box-shadow:1px 0 3px rgba(0,0,0,.75);
  }
  .pfc-room-camera-cross.is-fixed::before,
  .pfc-room-camera-cross.is-fixed::after{opacity:.78}
  .pfc-room-camera-cross.is-moving::before,
  .pfc-room-camera-cross.is-moving::after{opacity:.88}
  .pfc-room-camera-guide.is-level .pfc-room-camera-cross.is-moving::before,
  .pfc-room-camera-guide.is-level .pfc-room-camera-cross.is-moving::after{opacity:.96}
}

/* v0.3.76 – vyšší kvalita vlastní místnosti, vodováha ve všech orientacích,
 * maximální mobilní fullscreen a přesunutí přenosu mobil → PC pod levou galerii. */

/* Fotoaparát vlastní místnosti se používá jen na mobilu, proto může být vodováha
   přes celý viewport bez width media query – funguje tak i po otočení telefonu naležato. */
.pfc-room-camera-guide .pfc-room-camera-level{
	position:absolute!important;
	inset:0!important;
	left:0!important;
	top:0!important;
	width:100dvw!important;
	height:100dvh!important;
	transform:none!important;
	pointer-events:none!important;
	overflow:hidden!important;
}
.pfc-room-camera-guide .pfc-room-camera-cross{
	position:absolute!important;
	left:50%!important;
	top:50%!important;
	width:0!important;
	height:0!important;
}
.pfc-room-camera-guide .pfc-room-camera-cross::before{
	width:100dvw!important;
	height:2px!important;
}
.pfc-room-camera-guide .pfc-room-camera-cross::after{
	width:2px!important;
	height:100dvh!important;
}

@media(max-width:980px){
	html.pfc-room-fullscreen-open,
	body.pfc-room-fullscreen-open{
		width:100%!important;
		height:100%!important;
		min-height:100dvh!important;
		margin:0!important;
		padding:0!important;
		overflow:hidden!important;
		overscroll-behavior:none!important;
		background:#111!important;
	}
	.pfc-room-stage.is-mobile-fullscreen{
		position:fixed!important;
		inset:0!important;
		width:100dvw!important;
		height:100dvh!important;
		min-width:100dvw!important;
		min-height:100dvh!important;
		max-width:none!important;
		max-height:none!important;
		margin:0!important;
		border:0!important;
		border-radius:0!important;
	}
	body:fullscreen .pfc-room-stage.is-mobile-fullscreen,
	body:-webkit-full-screen .pfc-room-stage.is-mobile-fullscreen,
	html:fullscreen .pfc-room-stage.is-mobile-fullscreen,
	html:-webkit-full-screen .pfc-room-stage.is-mobile-fullscreen{
		width:100%!important;
		height:100%!important;
		min-width:100%!important;
		min-height:100%!important;
	}

	/* Pátý piktogram „Na PC“ v menu vlastní místnosti. */
	.pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar:not([hidden]){
		gap:2px!important;
		max-width:calc(100dvw - 10px)!important;
	}
	.pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-tool{
		min-width:44px!important;
		padding-left:4px!important;
		padding-right:4px!important;
	}
	.pfc-room-transfer-to-pc span svg{
		display:block;
		width:19px;
		height:19px;
		fill:currentColor;
	}
	.pfc-room-transfer-to-pc small{white-space:nowrap;}

	/* Desktopové tlačítko v galerii se na mobilu nikdy nezobrazuje. */
	.pfc-desktop-transfer-button{display:none!important;}
}

@media(min-width:981px){
	/* Při rozpracovaném projektu je původní globální tlačítko schované –
	   nové je přímo pod miniaturami u fotografie. V prázdném stavu zůstává
	   globální tlačítko dostupné, aby bylo možné projekt načíst kódem. */
	.pfc-app.has-photos .pfc-project-transfer-bar{display:none!important;}
	.pfc-app.is-empty .pfc-project-transfer-bar{display:flex!important;}

	.pfc-app.has-photos .pfc-desktop-photo-rail{
		display:grid!important;
		grid-template-columns:minmax(0,1fr) 64px!important;
		grid-template-rows:68px auto!important;
		align-items:center!important;
		column-gap:7px!important;
		row-gap:7px!important;
		height:auto!important;
		min-height:0!important;
		margin:7px auto 0!important;
		padding:0!important;
		background:transparent!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail-list{
		grid-column:1!important;
		grid-row:1!important;
		height:68px!important;
		padding:2px 2px 3px!important;
		gap:6px!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail .pfc-photo-thumb-rail{
		flex-basis:62px!important;
		width:62px!important;
		height:62px!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-add{
		grid-column:2!important;
		grid-row:1!important;
		width:62px!important;
		height:62px!important;
		min-height:62px!important;
		align-self:center!important;
	}
	.pfc-desktop-transfer-button{
		grid-column:1 / -1!important;
		grid-row:2!important;
		display:inline-flex!important;
		align-items:center!important;
		justify-content:center!important;
		width:100%!important;
		min-height:36px!important;
		padding:7px 12px!important;
		border:1px solid #d8d0c7!important;
		border-radius:10px!important;
		background:#fff!important;
		color:#554c43!important;
		font:800 11px/1.2 inherit!important;
		cursor:pointer!important;
		box-shadow:none!important;
	}
	.pfc-desktop-transfer-button:hover{
		background:#f7f3ef!important;
		border-color:#bfb4a8!important;
	}
}


/* v0.3.77 – PC: galerie těsně pod hlavní fotografií, přesná desktopová kalibrace
 * a vizuální stav vícenásobného výběru ve vlastní místnosti. */
@media(min-width:981px){
    /* Galerie je od v0.3.77 přímo uvnitř levé stage-card, takže už ji výška pravého
       editoru nemůže odtlačit dolů. */
    .pfc-app.has-photos .pfc-stage-card > .pfc-desktop-photo-rail{
        position:relative!important;
        inset:auto!important;
        grid-column:auto!important;
        grid-row:auto!important;
        width:min(48%,330px)!important;
        margin:2px auto 0!important;
        align-self:auto!important;
        z-index:5!important;
    }
    .pfc-app.has-photos.is-landscape .pfc-stage-card > .pfc-desktop-photo-rail{
        width:min(84%,720px)!important;
    }
    .pfc-app.has-photos .pfc-preview-panel[data-preview-panel="edit"] .pfc-stage-caption{
        margin-bottom:0!important;
        padding-bottom:0!important;
    }

    .pfc-room-calibration-point{
        pointer-events:auto!important;
        cursor:grab!important;
        touch-action:none!important;
        user-select:none!important;
    }
    .pfc-room-calibration-point:active{cursor:grabbing!important}

    .pfc-custom-room-frame.is-multi-selected{
        outline:2px solid rgba(65,135,255,.95)!important;
        outline-offset:3px!important;
    }
    .pfc-custom-room-frame.is-multi-selected.is-selected{
        outline-width:3px!important;
    }
    .pfc-stage-lightbox-v2__room-main-tools [data-pfc-room-select-all],
    .pfc-stage-lightbox-v2__room-main-tools [data-pfc-room-align-h],
    .pfc-stage-lightbox-v2__room-main-tools [data-pfc-room-align-v],
    .pfc-stage-lightbox-v2__room-main-tools [data-pfc-room-distribute]{
        white-space:nowrap;
    }
    .pfc-stage-lightbox-v2__room-main-tools button:disabled{opacity:.38!important;cursor:not-allowed!important}
}

@media(min-width:981px){
    /* V širším desktopovém editoru se nástroje skupinového rozložení mohou zalomit,
       aby zoom a kalibrace zůstaly použitelné i na menším notebooku. */
    .pfc-stage-lightbox-v2__room-tools{width:min(calc(100% - 28px),1280px)!important;}
    .pfc-stage-lightbox-v2__room-main-tools{flex-wrap:wrap!important;}
    .pfc-stage-lightbox-v2__room-zoom{min-width:250px!important;flex:1 1 300px!important;}
}

/* v0.3.78 – mobil: jasný stav nahrávání velkých tiskových fotografií */
.pfc-mobile-upload-overlay{display:none}
@media(max-width:980px){
	.pfc-mobile-upload-overlay{
		position:fixed;
		inset:0;
		z-index:2147483647;
		display:flex;
		align-items:center;
		justify-content:center;
		padding:20px;
		background:rgba(15,15,15,.48);
		backdrop-filter:blur(2px);
		-webkit-backdrop-filter:blur(2px);
	}
	.pfc-mobile-upload-overlay[hidden]{display:none!important}
	.pfc-mobile-upload-card{
		width:min(88vw,360px);
		box-sizing:border-box;
		padding:20px 18px 17px;
		border-radius:16px;
		background:#fff;
		box-shadow:0 18px 55px rgba(0,0,0,.3);
		text-align:center;
		color:#222;
	}
	.pfc-mobile-upload-spinner{
		width:34px;
		height:34px;
		margin:0 auto 12px;
		border:4px solid #e5e1dc;
		border-top-color:#39332e;
		border-radius:50%;
		animation:pfc-mobile-upload-spin .8s linear infinite;
	}
	.pfc-mobile-upload-card strong{display:block;font-size:16px;line-height:1.25;margin-bottom:6px}
	.pfc-mobile-upload-card>span{display:block;font-size:12px;line-height:1.4;color:#69625c;min-height:34px}
	.pfc-mobile-upload-progress{height:8px;margin:13px 0 6px;border-radius:999px;background:#ece9e5;overflow:hidden}
	.pfc-mobile-upload-progress i{display:block;width:0;height:100%;border-radius:inherit;background:#39332e;transition:width .18s ease}
	.pfc-mobile-upload-card>b{display:block;font-size:12px;color:#39332e;font-variant-numeric:tabular-nums}
	.pfc-mobile-upload-close{margin-top:12px;min-width:120px;padding:10px 14px;border:0;border-radius:10px;background:#24211f;color:#fff;font:inherit;font-size:13px;font-weight:800}
	.pfc-mobile-upload-overlay.is-error .pfc-mobile-upload-spinner{display:none}
	.pfc-mobile-upload-overlay.is-error .pfc-mobile-upload-progress{display:none}
	.pfc-mobile-upload-overlay.is-error .pfc-mobile-upload-card>span{color:#8f2424}
	@keyframes pfc-mobile-upload-spin{to{transform:rotate(360deg)}}
}

/* v0.3.79 – mobilní vlastní fotoaparát: robustní spuštění preview a viditelný stav kamery. */
@media(max-width:980px){
	.pfc-room-camera-video{
		z-index:0!important;
		transform:translateZ(0);
		-webkit-transform:translateZ(0);
	}
	.pfc-room-camera-shade{z-index:1!important;}
	.pfc-room-camera-guide:not(.is-camera-ready):not(.has-camera-error)::before{
		content:"";
		position:absolute;
		z-index:5;
		left:50%;
		top:50%;
		width:34px;
		height:34px;
		margin:-30px 0 0 -17px;
		border:4px solid rgba(255,255,255,.28);
		border-top-color:#fff;
		border-radius:50%;
		animation:pfc-room-camera-spin .8s linear infinite;
		pointer-events:none;
	}
	.pfc-room-camera-guide:not(.is-camera-ready):not(.has-camera-error)::after{
		content:"Spouštím fotoaparát…";
		position:absolute;
		z-index:5;
		left:50%;
		top:calc(50% + 18px);
		transform:translateX(-50%);
		padding:7px 11px;
		border-radius:999px;
		background:rgba(0,0,0,.55);
		color:#fff;
		font-size:12px;
		font-weight:700;
		white-space:nowrap;
		pointer-events:none;
	}
	.pfc-room-camera-guide.has-camera-error::after{
		content:"Kameru se nepodařilo spustit";
		position:absolute;
		z-index:3;
		left:50%;top:50%;
		transform:translate(-50%,-50%);
		padding:8px 12px;
		border-radius:10px;
		background:rgba(0,0,0,.62);
		color:#fff;
		font-size:12px;
		font-weight:800;
		pointer-events:none;
	}
	@keyframes pfc-room-camera-spin{to{transform:rotate(360deg)}}
}


/* v0.3.80 – mobilní kamera místnosti: méně restriktivní spuštění, retry a iOS vodováha. */
@media(max-width:980px){
	.pfc-room-camera-motion,
	.pfc-room-camera-retry{
		position:absolute;
		right:0;
		max-width:112px;
		border:0;
		border-radius:9px;
		background:rgba(0,0,0,.5);
		color:#fff;
		padding:8px 9px;
		font-size:10px;
		font-weight:800;
		line-height:1.2;
	}
	.pfc-room-camera-motion[hidden],
	.pfc-room-camera-retry[hidden]{display:none!important}
	.pfc-room-camera-guide.has-camera-error .pfc-room-camera-retry{display:block}
	.pfc-room-camera-guide.has-camera-error .pfc-room-camera-level{opacity:.18}
	.pfc-room-camera-guide.has-camera-error::after{display:none!important}
}


/* v0.3.81 – před zapnutím senzoru je vidět jen pevný kříž;
 * pohyblivý kříž se objeví až po aktivaci vodováhy. */
.pfc-room-camera-guide:not(.has-motion) .pfc-room-camera-cross.is-moving{
	opacity:0!important;
}
.pfc-room-camera-guide.has-motion .pfc-room-camera-cross.is-moving{
	opacity:1;
}


/* v0.3.83 – pouze mobil: pás miniatur je ve všech fullscreen scénách vždy úplně dole.
 * U vlastní místnosti zůstává akční toolbar nad miniaturami; u rámu a presetových
 * místností se pás již zbytečně nezvedá do obrazu. */
@media(max-width:980px){
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes:not([hidden]){
        bottom:max(6px,env(safe-area-inset-bottom))!important;
    }
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar:not([hidden]){
        bottom:calc(max(6px,env(safe-area-inset-bottom)) + 64px)!important;
    }
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-room-actions:not([hidden]){
        bottom:calc(max(6px,env(safe-area-inset-bottom)) + 122px)!important;
    }
}

/* v0.3.85 – mobilní fotoaparát vlastní místnosti: spolehlivý zoom 1× / 1,5× / 2×. */
@media(max-width:980px){
    .pfc-room-camera-video{
        transform:translateZ(0) scale(var(--pfc-room-camera-video-zoom,1))!important;
        -webkit-transform:translateZ(0) scale(var(--pfc-room-camera-video-zoom,1))!important;
        transform-origin:50% 50%!important;
        transition:transform .16s ease;
    }
    .pfc-room-camera-zoom{
        position:absolute;
        z-index:4;
        left:50%;
        top:max(62px,calc(env(safe-area-inset-top) + 52px));
        transform:translateX(-50%);
        display:flex;
        align-items:center;
        gap:5px;
        padding:4px;
        border-radius:999px;
        background:rgba(0,0,0,.42);
        backdrop-filter:blur(7px);
        -webkit-backdrop-filter:blur(7px);
        box-shadow:0 2px 9px rgba(0,0,0,.2);
    }
    .pfc-room-camera-zoom button{
        min-width:45px;
        height:34px;
        padding:0 10px;
        border:0;
        border-radius:999px;
        background:transparent;
        color:rgba(255,255,255,.88);
        font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
        font-variant-numeric:tabular-nums;
        white-space:nowrap;
    }
    .pfc-room-camera-zoom button.is-active{
        background:#fff;
        color:#171513;
        box-shadow:0 1px 4px rgba(0,0,0,.22);
    }
    .pfc-room-camera-guide:not(.is-camera-ready) .pfc-room-camera-zoom{
        opacity:.45;
        pointer-events:none;
    }
}



/* v0.3.85 – stav nahrávání místnosti je vždy nad scénou i vlastním fotoaparátem. */
@media(max-width:980px){
    body > .pfc-mobile-upload-overlay{
        position:fixed!important;
        inset:0!important;
        z-index:2147483647!important;
        isolation:isolate;
    }
    .pfc-room-camera-guide{z-index:2147483600!important;}
}

/* v0.3.86 – PC → mobil: volba zdroje, QR/kód a rychlé focení do otevřeného projektu. */
.pfc-desktop-source-modal[hidden],
.pfc-remote-capture-modal[hidden],
.pfc-remote-mobile-capture[hidden]{display:none!important}
.pfc-desktop-source-modal,
.pfc-remote-capture-modal{
    position:fixed;
    inset:0;
    z-index:2147483646;
    display:grid;
    place-items:center;
    padding:18px;
    background:rgba(15,13,12,.66);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}
.pfc-desktop-source-card,
.pfc-remote-capture-card{
    position:relative;
    width:min(560px,100%);
    border-radius:22px;
    background:#fff;
    box-shadow:0 26px 80px rgba(0,0,0,.3);
    padding:28px 24px 24px;
    color:#241f1b;
    text-align:center;
}
.pfc-desktop-source-card>strong,
.pfc-remote-capture-card>strong{display:block;font-size:22px;line-height:1.2}
.pfc-desktop-source-card>p,
.pfc-remote-capture-card>p{margin:9px auto 18px;max-width:460px;color:#71675e;font-size:14px;line-height:1.5}
.pfc-desktop-source-close,
.pfc-remote-capture-close{
    position:absolute;
    top:9px;
    right:11px;
    width:36px;
    height:36px;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#28231f;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}
.pfc-desktop-source-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pfc-desktop-source-actions>button{
    display:grid;
    grid-template-columns:46px 1fr;
    grid-template-rows:auto auto;
    column-gap:12px;
    align-items:center;
    text-align:left;
    min-height:104px;
    padding:16px;
    border:1px solid #ddd5cc;
    border-radius:16px;
    background:#faf8f5;
    color:#302a25;
    cursor:pointer;
}
.pfc-desktop-source-actions>button:hover{background:#f4efe9;border-color:#bfb3a7}
.pfc-desktop-source-actions>button>span{grid-row:1/3;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#e9e1d8;font-size:22px}
.pfc-desktop-source-actions b{font-size:15px}
.pfc-desktop-source-actions small{margin-top:4px;color:#766b61;font-size:11px;line-height:1.35}
.pfc-remote-capture-main{display:grid;grid-template-columns:230px 1fr;gap:22px;align-items:center;text-align:left}
.pfc-remote-capture-qr{display:grid;place-items:center;min-height:220px;border:1px solid #e1d9d1;border-radius:16px;background:#fff;padding:5px}
.pfc-remote-capture-qr img{display:block;width:220px;max-width:100%;height:auto;border-radius:8px}
.pfc-remote-capture-info{display:grid;gap:8px;justify-items:start}
.pfc-remote-capture-info>span{font-size:12px;color:#746a61}
.pfc-remote-capture-info code{font:800 27px/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;background:#f3efea;border:1px solid #ddd4ca;border-radius:12px;padding:11px 12px;color:#211d19}
.pfc-remote-capture-info a{display:inline-flex;padding:9px 12px;border-radius:10px;background:#453d36;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:800}
.pfc-remote-capture-info small{color:#7c7167;font-size:11px}
.pfc-remote-capture-waiting{margin-top:17px;min-height:20px;color:#584f47;font-size:13px;font-weight:700}
.pfc-remote-capture-waiting.is-error{color:#a42020}
.pfc-mobile-capture-entry{margin-top:22px;padding-top:18px;border-top:1px solid #e7dfd7;text-align:left}
.pfc-mobile-capture-entry>strong{font-size:15px!important}
.pfc-mobile-capture-entry p{margin:6px 0 10px!important;font-size:12px!important}
.pfc-mobile-capture-entry>div{display:flex;gap:7px}
.pfc-mobile-capture-entry input{min-width:0;flex:1;border:1px solid #cfc5bb;border-radius:10px;padding:10px 11px;font:800 17px/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-transform:uppercase;text-align:center}
.pfc-mobile-capture-entry button{border:0;border-radius:10px;background:#403831;color:#fff;padding:10px 12px;font-size:12px;font-weight:800}
.pfc-remote-mobile-capture{
    position:fixed;
    inset:0;
    z-index:2147483500;
    display:grid;
    place-items:center;
    padding:20px;
    background:linear-gradient(180deg,#171411,#26211d);
    color:#fff;
}
.pfc-remote-mobile-capture-card{width:min(420px,100%);text-align:center}
.pfc-remote-mobile-capture-card>strong{display:block;font-size:24px;line-height:1.2}
.pfc-remote-mobile-capture-card>p{margin:10px auto 20px;color:rgba(255,255,255,.75);font-size:14px;line-height:1.5}
.pfc-remote-mobile-capture-actions{display:grid;gap:10px}
.pfc-remote-mobile-capture-actions button{width:100%;min-height:50px;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.1);color:#fff;font-size:14px;font-weight:800;padding:12px 14px}
.pfc-remote-mobile-capture-actions button.is-primary{background:#fff;color:#1e1a17;border-color:#fff}
.pfc-remote-mobile-capture-actions button:disabled{opacity:.5}
.pfc-remote-mobile-capture-status{min-height:24px;margin-top:16px;font-size:13px;font-weight:700;color:#cfd8cd}
.pfc-remote-mobile-capture-status.is-error{color:#ffb1b1}

@media(max-width:700px){
    .pfc-desktop-source-actions{grid-template-columns:1fr}
    .pfc-remote-capture-main{grid-template-columns:1fr;justify-items:center;text-align:center}
    .pfc-remote-capture-info{justify-items:center}
}


/* v0.3.86 – QR capture režim na telefonu: vizuálně samostatná stránka bez editoru na pozadí. */
body.pfc-remote-capture-page{
    overflow:hidden!important;
    background:#171411!important;
}
body.pfc-remote-capture-page::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:2147483490;
    background:linear-gradient(180deg,#171411,#26211d);
}
body.pfc-remote-capture-page .pfc-app>.pfc-studio-form>:not(.pfc-mobile-upload-overlay):not(.pfc-room-camera-guide):not(.pfc-remote-mobile-capture){
    display:none!important;
}
body.pfc-remote-capture-page .pfc-app,
body.pfc-remote-capture-page .pfc-studio-form{
    min-height:100dvh!important;
    margin:0!important;
    padding:0!important;
}
body.pfc-remote-capture-page .pfc-remote-mobile-capture,
body.pfc-remote-capture-page .pfc-room-camera-guide,
body.pfc-remote-capture-page .pfc-mobile-upload-overlay{
    isolation:isolate;
}

/* v0.3.88 – PC/notebook: celý úvodní uploadovací rám musí zůstat viditelný i v nízkém viewportu.
 * Desktopová prázdná scéna má výšku 53vh, proto kromě šířky omezujeme rám také podle
 * dostupné výšky okna. Na vysokých monitorech nadále platí původní maximum 690 px. */
@media(min-width:981px){
	.pfc-app.is-empty .pfc-frame{
		width:min(76%,690px,calc(79.5vh - 34px))!important;
		max-width:690px!important;
	}
}


/* v0.3.90 – pouze PC: ostřejší a lépe čitelné miniatury fotografií pod hlavním náhledem. */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-stage-card > .pfc-desktop-photo-rail{
		width:min(64%,500px)!important;
	}
	.pfc-app.has-photos.is-landscape .pfc-stage-card > .pfc-desktop-photo-rail{
		width:min(90%,780px)!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail{
		grid-template-columns:minmax(0,1fr) 78px!important;
		grid-template-rows:84px auto!important;
		column-gap:8px!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail-list{
		height:84px!important;
		padding:2px 2px 4px!important;
		gap:8px!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail .pfc-photo-thumb-rail{
		flex:0 0 78px!important;
		flex-basis:78px!important;
		width:78px!important;
		height:78px!important;
		padding:2px!important;
	}
	.pfc-app.has-photos .pfc-desktop-photo-rail .pfc-photo-thumb-rail img{
		width:100%!important;
		height:100%!important;
		object-fit:cover!important;
		object-position:center!important;
		image-rendering:auto;
	}
	.pfc-app.has-photos .pfc-desktop-photo-add{
		width:78px!important;
		height:78px!important;
		min-height:78px!important;
	}
}

/* v0.3.94 – PC: sedm velikostí v jednom řádku, ale tlačítka už nevyplňují celý panel.
 * Text zůstává dobře čitelný a hlavní rozměr je o 1 px větší než dřívější 12px varianta. */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-grid{
		grid-template-columns:repeat(7,minmax(46px,72px))!important;
		column-gap:8px!important;
		row-gap:0!important;
		justify-content:space-between!important;
		align-items:center!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button{
		width:100%!important;
		min-width:0!important;
		min-height:40px!important;
		padding:4px 4px!important;
		gap:1px!important;
		flex-direction:column!important;
		align-items:center!important;
		justify-content:center!important;
		text-align:center!important;
		font-size:13px!important;
		line-height:1.05!important;
		border-radius:8px!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button > span{
		display:block;
		max-width:100%;
		font-size:13px!important;
		white-space:nowrap;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button small,
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button small .woocommerce-Price-amount{
		font-size:8.5px!important;
		line-height:1!important;
		white-space:nowrap;
	}
}



/* v0.3.95 – PC: tlačítka velikostí jsou o něco širší a mají pevnou mezeru cca 3 mm.
 * Typografie z v0.3.94 se nemění. */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-grid{
		grid-template-columns:repeat(7,minmax(0,1fr))!important;
		column-gap:11px!important;
		row-gap:0!important;
		justify-content:stretch!important;
	}
}


/* v0.3.98 – mobil: čistý vycentrovaný úvodní stav bez oříznutí uploadovacího rámu.
 * Dřívější kombinace aspect-ratio + padding na preview-shellu mohla mít menší vnitřní
 * výšku než samotný frame, který pak overflow:hidden opticky uřízl. */
@media(max-width:720px){
	.pfc-app.is-empty{
		box-sizing:border-box!important;
		min-height:calc(100dvh - 72px)!important;
		margin-top:0!important;
		margin-bottom:0!important;
		padding:12px 8px max(18px,env(safe-area-inset-bottom))!important;
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
	}
	.pfc-app.is-empty .pfc-studio-form{
		width:100%!important;
		max-width:440px!important;
		margin:0 auto!important;
	}
	.pfc-app.is-empty .pfc-stage-card{
		width:100%!important;
		max-width:430px!important;
		margin:0 auto!important;
	}
	.pfc-app.is-empty .pfc-preview-shell{
		box-sizing:border-box!important;
		width:100%!important;
		max-width:430px!important;
		height:auto!important;
		min-height:0!important;
		aspect-ratio:auto!important;
		margin:0 auto!important;
		padding:8px!important;
		overflow:visible!important;
		border-radius:16px!important;
	}
	.pfc-app.is-empty .pfc-frame{
		box-sizing:border-box!important;
		width:100%!important;
		max-width:414px!important;
		height:auto!important;
		margin:0 auto!important;
		padding:12px!important;
	}
	.pfc-app.is-empty .pfc-photo-window{
		box-sizing:border-box!important;
		width:100%!important;
		height:auto!important;
		aspect-ratio:4/3!important;
		overflow:hidden!important;
	}
	.pfc-app.is-empty .pfc-empty{
		box-sizing:border-box!important;
		padding:14px 12px!important;
	}
}

/* Na velmi nízkém telefonu necháme kartu o něco kompaktnější, ale stále celou viditelnou. */
@media(max-width:720px) and (max-height:620px){
	.pfc-app.is-empty{align-items:flex-start!important;padding-top:10px!important;}
	.pfc-app.is-empty .pfc-photo-window{aspect-ratio:3/2!important;}
	.pfc-app.is-empty .pfc-empty{gap:5px!important;padding:10px!important;}
	.pfc-app.is-empty .pfc-upload-mark{width:38px!important;height:38px!important;}
	.pfc-app.is-empty .pfc-empty-upload{padding:8px 13px!important;}
}

/* v0.3.99 – mobilní UX: jednoduchý průvodce, rychlejší interiéry a viditelné načítání. */
.pfc-mobile-welcome-copy,
.pfc-mobile-desktop-note,
.pfc-mobile-step-guide,
.pfc-mobile-preview-tip,
.pfc-label-mobile,
.pfc-room-loading{display:none;}

@media(max-width:980px){
	/* Mobil načítá stejné scény v lehkém WebP; desktopové PNG zůstávají beze změny. */
	.pfc-room-stage.is-living,
	.pfc-room-stage.is-mobile-fullscreen.is-living{background-image:url('../images/scene-living-room-mobile.webp')!important;}
	.pfc-room-stage.is-bedroom,
	.pfc-room-stage.is-mobile-fullscreen.is-bedroom{background-image:url('../images/scene-bedroom-mobile.webp')!important;}
	.pfc-room-stage.is-desk,
	.pfc-room-stage.is-mobile-fullscreen.is-desk{background-image:url('../images/scene-desk-v2-mobile.webp')!important;}
	.pfc-room-scene-thumb.is-living{background-image:url('../images/scene-living-room-mobile.webp')!important;}
	.pfc-room-scene-thumb.is-bedroom{background-image:url('../images/scene-bedroom-mobile.webp')!important;}
	.pfc-room-scene-thumb.is-desk{background-image:url('../images/scene-desk-v2-mobile.webp')!important;}

	.pfc-room-loading:not([hidden]){
		position:absolute;
		inset:0;
		z-index:80;
		display:flex;
		flex-direction:column;
		align-items:center;
		justify-content:center;
		gap:7px;
		padding:24px;
		box-sizing:border-box;
		background:linear-gradient(180deg,rgba(248,246,242,.97),rgba(240,236,230,.96));
		color:#403a34;
		text-align:center;
		pointer-events:none;
	}
	.pfc-room-loading-spinner{
		width:32px;
		height:32px;
		border:3px solid #d9d2ca;
		border-top-color:#3d3732;
		border-radius:50%;
		animation:pfc-room-scene-spin .8s linear infinite;
	}
	.pfc-room-loading strong{font-size:13px;line-height:1.25;}
	.pfc-room-loading small{font-size:10px;line-height:1.35;color:#7a7168;}
	@keyframes pfc-room-scene-spin{to{transform:rotate(360deg)}}

	/* Jeden nenápadný řádek vysvětluje vždy jen aktuální krok. */
	.pfc-mobile-step-guide{
		display:block;
		box-sizing:border-box;
		width:100%;
		padding:9px 12px 8px;
		border-top:1px solid #ece6df;
		background:#faf8f5;
	}
	.pfc-mobile-step-head{
		display:flex;
		align-items:baseline;
		gap:7px;
		line-height:1.2;
	}
	.pfc-mobile-step-head span{
		font-size:9px;
		font-weight:800;
		letter-spacing:.045em;
		text-transform:uppercase;
		color:#8b8177;
	}
	.pfc-mobile-step-head strong{font-size:12px;color:#342f2b;}
	.pfc-mobile-step-dots{display:flex;gap:4px;margin:6px 0 5px;}
	.pfc-mobile-step-dots i{
		display:block;
		flex:1 1 0;
		height:3px;
		border-radius:999px;
		background:#e0dad3;
	}
	.pfc-mobile-step-dots i.is-done{background:#a99f95;}
	.pfc-mobile-step-dots i.is-active{background:#2d2925;}
	.pfc-mobile-step-guide p{
		margin:0;
		font-size:10.5px;
		line-height:1.35;
		color:#6f665e;
	}

	.pfc-mobile-preview-tip{
		display:block;
		width:100%;
		box-sizing:border-box;
		margin:2px 0 4px;
		padding:7px 9px;
		border-radius:9px;
		background:#f5f1ec;
		color:#6e655d;
		font-size:9.5px;
		line-height:1.35;
	}
	.pfc-mobile-preview-tip strong{color:#3d3732;}
}

@media(max-width:720px){
	/* Úvod: jednoduché rozhodnutí, žádný dlouhý návod. */
	.pfc-app.is-empty .pfc-photo-window{aspect-ratio:5/4!important;}
	.pfc-app.is-empty .pfc-empty{
		gap:7px!important;
		padding:15px 15px 13px!important;
	}
	.pfc-mobile-welcome-copy{
		display:flex;
		flex-direction:column;
		align-items:center;
		gap:3px;
		order:-3;
		margin-bottom:1px;
	}
	.pfc-mobile-welcome-copy strong{
		font-size:18px!important;
		line-height:1.15;
		color:#332e2a;
	}
	.pfc-mobile-welcome-copy span{
		display:block!important;
		font-size:11px!important;
		line-height:1.35;
		color:#766d64!important;
	}
	.pfc-app.is-empty .pfc-upload-mark{order:-2;margin:1px 0 2px;}
	.pfc-app.is-empty .pfc-empty-desktop-title,
	.pfc-app.is-empty .pfc-empty-desktop-copy{display:none!important;}
	.pfc-label-desktop{display:none!important;}
	.pfc-label-mobile{display:inline!important;}
	.pfc-app.is-empty .pfc-empty-upload{
		width:min(270px,92%);
		min-height:42px;
		margin-top:1px!important;
		padding:10px 14px!important;
		border:1px solid #24211f;
		border-radius:11px!important;
		font-size:11px!important;
		line-height:1.2;
	}
	.pfc-app.is-empty .pfc-mobile-camera{
		background:#24211f!important;
		color:#fff!important;
	}
	.pfc-app.is-empty .pfc-empty-file{
		background:#fff!important;
		color:#39332e!important;
	}
	.pfc-mobile-desktop-note{
		display:flex;
		flex-direction:column;
		align-items:center;
		gap:2px;
		width:min(300px,94%);
		box-sizing:border-box;
		margin-top:5px;
		padding-top:9px;
		border-top:1px solid #e1dad2;
	}
	.pfc-mobile-desktop-note strong{
		font-size:10px!important;
		line-height:1.25;
		color:#554d46!important;
	}
	.pfc-mobile-desktop-note span{
		display:block!important;
		font-size:9px!important;
		line-height:1.35;
		color:#8a8077!important;
	}
	.pfc-project-transfer-to-pc{
		max-width:260px;
		white-space:normal;
		text-align:center;
	}
}

@media(max-width:720px) and (max-height:620px){
	.pfc-app.is-empty .pfc-photo-window{aspect-ratio:4/3!important;}
	.pfc-mobile-welcome-copy strong{font-size:16px!important;}
	.pfc-mobile-desktop-note{margin-top:2px;padding-top:6px;}
	.pfc-mobile-desktop-note span{font-size:8.5px!important;}
}


/* v0.3.101 – kompaktní mobilní editor: minimum rolování, ovládání přímo u obsahu.
 * PC layout zůstává beze změny. */
.pfc-mobile-image-toolbar,
.pfc-mobile-scene-dock,
.pfc-mobile-pc-tab{display:none;}

@media(max-width:720px){
	/* Po vložení fotografie už nezabírá výšku průvodce ani samostatný transfer bar. */
	.pfc-app.has-photos .pfc-mobile-step-guide,
	.pfc-app.has-photos .pfc-project-transfer-bar,
	.pfc-app.has-photos .pfc-stage-caption{display:none!important;}
	.pfc-app.has-photos{overflow-x:hidden;}
	.pfc-app.has-photos .pfc-stage-card{padding:0!important;border-radius:14px!important;}

	/* Hlavní fotografie: dostatečně velká, ale už nevyplní skoro celý displej. */
	.pfc-app.has-photos .pfc-preview-shell{
		height:clamp(292px,42dvh,342px)!important;
		min-height:0!important;
		padding:7px 7px 5px!important;
		border-radius:13px!important;
	}
	.pfc-app.has-photos.is-portrait .pfc-frame{
		width:min(56vw,228px)!important;
		max-width:228px!important;
	}
	.pfc-app.has-photos.is-landscape .pfc-frame{
		width:min(86vw,350px)!important;
		max-width:350px!important;
	}
	.pfc-app.has-photos .pfc-mobile-stage-loupe:not([hidden]){top:8px!important;right:8px!important;bottom:auto!important;width:34px;height:34px;}

	/* Jedna kompaktní ikonová lišta přímo uvnitř hlavního náhledu. */
	.pfc-mobile-image-toolbar:not([hidden]){
		display:flex!important;
		position:absolute;
		left:50%;
		bottom:8px;
		z-index:38;
		transform:translateX(-50%);
		align-items:center;
		justify-content:center;
		gap:4px;
		padding:4px 5px;
		border:1px solid rgba(255,255,255,.72);
		border-radius:999px;
		background:rgba(27,25,23,.76);
		box-shadow:0 3px 14px rgba(0,0,0,.20);
		backdrop-filter:blur(7px);
		max-width:calc(100% - 16px);
		white-space:nowrap;
	}
	.pfc-mobile-image-toolbar button{
		display:grid;place-items:center;
		width:30px;height:30px;padding:0;
		border:0;border-radius:50%;
		background:rgba(255,255,255,.13);color:#fff;
		font:inherit;font-size:18px;font-weight:800;line-height:1;
		flex:0 0 auto;
	}
	.pfc-mobile-image-toolbar button.is-active{background:#fff;color:#1d1b19;}
	.pfc-mobile-image-toolbar button svg{width:17px;height:17px;fill:currentColor;}
	.pfc-mobile-image-toolbar strong{min-width:40px;color:#fff;font-size:10px;text-align:center;white-space:nowrap;flex:0 0 auto;}

	/* Původní vysoký blok zoom/posun je na mobilu nahrazen plovoucí lištou. */
	.pfc-editor-controls [data-tool-content="size"] .pfc-size-edit-tools{display:none!important;}

	/* Hlavní navigace: pět funkcí v jednom nízkém řádku včetně PC. */
	.pfc-editor-controls{padding:0 7px 8px!important;}
	.pfc-editor-controls .pfc-tool-dock{border-radius:12px!important;}
	.pfc-editor-controls .pfc-tool-buttons{
		display:grid!important;
		grid-template-columns:repeat(5,minmax(0,1fr))!important;
		gap:2px!important;
		padding:3px!important;
	}
	.pfc-editor-controls .pfc-tool-button,
	.pfc-editor-controls .pfc-mobile-pc-tab{
		display:flex!important;
		min-width:0!important;
		min-height:49px!important;
		padding:5px 1px!important;
		border:0!important;
		border-radius:9px!important;
		background:transparent;
		color:#27231f;
		flex-direction:column;
		align-items:center;
		justify-content:center;
		gap:2px!important;
		font:inherit;
		font-size:8px!important;
		font-weight:800;
		line-height:1.05;
	}
	.pfc-editor-controls .pfc-tool-button svg,
	.pfc-editor-controls .pfc-mobile-pc-tab svg{width:20px!important;height:20px!important;fill:currentColor;}
	.pfc-editor-controls .pfc-tool-button.is-active{background:#1d1b19!important;color:#fff!important;}
	.pfc-editor-controls .pfc-mobile-pc-tab{display:flex!important;}

	/* Obsah aktivní záložky je nízký; případný přebytek se roluje uvnitř panelu, ne celá stránka. */
	.pfc-editor-controls>.pfc-tool-panel{
		margin-top:5px!important;
		border-radius:12px!important;
		max-height:185px;
		overflow-y:auto;
		overscroll-behavior:contain;
	}
	.pfc-editor-controls .pfc-tool-content{padding:8px 9px 9px!important;}

	/* Velikosti – stále vodorovně, ale o něco nižší. */
	.pfc-editor-controls .pfc-size-grid{gap:5px!important;padding-bottom:3px!important;}
	.pfc-editor-controls .pfc-size-button{min-height:38px!important;padding:5px 7px!important;}
	.pfc-editor-controls .pfc-size-availability{min-height:14px!important;margin-top:4px!important;font-size:8px!important;}
	.pfc-editor-controls .pfc-size-quality{margin-top:4px!important;padding:5px 7px!important;font-size:8px!important;line-height:1.25!important;}

	/* Rámy – nižší vzorky ušetří výšku, názvy zůstávají. */
	.pfc-editor-controls .pfc-frame-grid{gap:6px!important;padding-bottom:3px!important;}
	.pfc-editor-controls .pfc-frame-button{padding:4px 4px 5px!important;gap:3px!important;font-size:9px!important;}
	.pfc-editor-controls .pfc-swatch{height:44px!important;border-radius:7px!important;}
	.pfc-editor-controls .pfc-frame-info{margin-top:4px!important;min-height:11px!important;font-size:8px!important;line-height:1.25!important;}

	/* Fotografie – zůstává horizontální galerie, ale je kompaktnější. */
	.pfc-photo-panel-meta{margin-bottom:5px!important;}
	.pfc-photo-panel-meta strong{font-size:12px!important;}
	.pfc-photo-thumb{flex-basis:66px!important;height:72px!important;}
	.pfc-photo-strip{gap:6px!important;padding-bottom:4px!important;}
	.pfc-photo-actions{gap:5px!important;margin-top:2px!important;}
	.pfc-photo-actions .pfc-primary-soft,
	.pfc-photo-actions .pfc-danger-soft{min-height:34px!important;font-size:9px!important;}

	/* Vyřazení z objednávky zůstává dostupné, ale bez dlouhého vysvětlení. */
	.pfc-active-order-control{padding:4px 2px!important;border-top:0!important;background:transparent!important;}
	.pfc-active-order-control span{display:none!important;}
	.pfc-order-toggle-active{padding:5px 8px!important;font-size:8px!important;}

	/* Cena + košík zůstávají stále po ruce, ale lišta je nižší. */
	.pfc-editor-controls>.pfc-order-summary{
		grid-template-columns:minmax(78px,.38fr) minmax(155px,1fr)!important;
		gap:6px!important;
		margin:5px 0 0!important;
		padding:6px!important;
		border-radius:12px!important;
	}
	.pfc-editor-controls>.pfc-order-summary .pfc-order-summary-text span{font-size:8px!important;}
	.pfc-editor-controls>.pfc-order-summary .pfc-order-summary-text strong{font-size:19px!important;}
	.pfc-editor-controls>.pfc-order-summary .pfc-add-button{min-height:42px!important;border-radius:9px!important;font-size:10px!important;}

	/* Náhled: nejdřív samotná místnost. Staré texty a záložky nad ní na mobilu mizí. */
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-interior-head-mobile,
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-interior-foot,
	.pfc-mobile-preview-tip{display:none!important;}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-interior-preview{border-radius:13px!important;overflow:hidden!important;}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-room-stage{
		height:clamp(282px,42dvh,342px)!important;
		min-height:0!important;
		border-radius:13px!important;
	}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-preview-loupe:not([hidden]){top:8px!important;right:8px!important;bottom:auto!important;width:34px;height:34px;}

	/* Přepínač místností jako čtyři piktogramy přímo uvnitř obrazu. */
	.pfc-mobile-scene-dock{
		display:flex!important;
		position:absolute;
		left:50%;bottom:8px;z-index:42;
		transform:translateX(-50%);
		gap:4px;padding:4px;
		border:1px solid rgba(255,255,255,.70);
		border-radius:999px;
		background:rgba(24,22,20,.72);
		box-shadow:0 3px 14px rgba(0,0,0,.22);
		backdrop-filter:blur(7px);
	}
	.pfc-mobile-scene-dock button{
		display:grid;place-items:center;
		width:36px;height:36px;padding:0;
		border:1px solid transparent;border-radius:50%;
		background:transparent;color:#fff;
	}
	.pfc-mobile-scene-dock button svg{width:19px;height:19px;fill:currentColor;}
	.pfc-mobile-scene-dock button.is-active{background:#fff;color:#1d1b19;}
	.pfc-mobile-scene-dock button:disabled{display:none!important;}
	.pfc-room-stage.is-mobile-fullscreen .pfc-mobile-scene-dock{display:none!important;}
}

@media(max-width:720px) and (max-height:700px){
	.pfc-app.has-photos .pfc-preview-shell,
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-room-stage{height:285px!important;}
	.pfc-app.has-photos.is-portrait .pfc-frame{width:min(51vw,205px)!important;max-width:205px!important;}
	.pfc-app.has-photos.is-landscape .pfc-frame{width:min(82vw,326px)!important;max-width:326px!important;}
	.pfc-editor-controls>.pfc-tool-panel{max-height:162px;}
}


/* v0.3.103 – mobilní hlavní navigace vždy v jednom řádku; PC pouze v menu. */
@media(max-width:720px){
	.pfc-app.has-photos .pfc-project-transfer-bar{display:none!important;}

	.pfc-app.has-photos .pfc-editor-controls{
		padding-left:4px!important;
		padding-right:4px!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-buttons{
		display:grid!important;
		grid-template-columns:repeat(5,minmax(0,1fr))!important;
		gap:1px!important;
		padding:2px!important;
		width:100%!important;
		box-sizing:border-box!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button,
	.pfc-app.has-photos .pfc-editor-controls .pfc-mobile-pc-tab{
		min-width:0!important;
		width:100%!important;
		min-height:44px!important;
		padding:4px 0!important;
		margin:0!important;
		gap:1px!important;
		box-sizing:border-box!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button svg,
	.pfc-app.has-photos .pfc-editor-controls .pfc-mobile-pc-tab svg{
		width:18px!important;
		height:18px!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-button span,
	.pfc-app.has-photos .pfc-editor-controls .pfc-mobile-pc-tab span{
		display:block!important;
		max-width:100%!important;
		overflow:hidden!important;
		text-overflow:clip!important;
		white-space:nowrap!important;
	}
}


/* v0.3.104 – mobil: menu o kousek níž, bez duplicitního mazání a akce vlastní místnosti přímo ve scéně. */
@media(max-width:720px){
	/* U portrétních fotografií necháme mezi hlavním náhledem a navigací malou bezpečnou mezeru. */
	.pfc-app.has-photos .pfc-editor-controls{
		margin-top:8px!important;
	}

	/* Mazání je už přímo na miniatuře, proto další tlačítko v Galerii jen zabíralo místo. */
	.pfc-app.has-photos .pfc-photo-actions [data-remove-photo]{
		display:none!important;
	}
	.pfc-app.has-photos .pfc-photo-actions{
		grid-template-columns:1fr 1fr!important;
	}

	/* „Moje místnost“: výběr / focení patří přímo do scény, nikoli pod ni. */
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-interior-preview{
		position:relative!important;
	}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]){
		display:grid!important;
		position:absolute!important;
		left:50%!important;
		bottom:55px!important;
		z-index:48!important;
		width:min(310px,calc(100% - 28px))!important;
		grid-template-columns:1fr 1fr!important;
		gap:6px!important;
		margin:0!important;
		padding:0!important;
		transform:translateX(-50%)!important;
		background:transparent!important;
		pointer-events:auto!important;
	}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]) > [data-room-upload],
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]) > [data-room-camera]{
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
		min-width:0!important;
		min-height:34px!important;
		padding:6px 8px!important;
		border:1px solid rgba(255,255,255,.80)!important;
		border-radius:999px!important;
		background:rgba(25,23,21,.76)!important;
		color:#fff!important;
		box-shadow:0 3px 12px rgba(0,0,0,.20)!important;
		backdrop-filter:blur(7px)!important;
		font-size:9px!important;
		font-weight:800!important;
		line-height:1.1!important;
		white-space:nowrap!important;
	}

	/* Ostatní pokročilé akce zůstávají v běžném náhledu skryté. */
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions > [data-room-add-frame-mobile],
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions > [data-room-remove-frame-mobile],
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions > [data-room-fullscreen-mobile],
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions > [data-room-view-mobile],
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions > [data-room-calibrate-mobile],
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions > .pfc-mobile-room-status{
		display:none!important;
	}
}

@media(max-width:720px) and (max-height:700px){
	.pfc-app.has-photos .pfc-editor-controls{margin-top:5px!important;}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]){bottom:53px!important;}
}


/* v0.3.105 – mobil: vlastní místnost jen dvě ikonová tlačítka, posunutá cca 5 mm výš. */
@media(max-width:720px){
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]){
		bottom:74px!important;
		width:auto!important;
		grid-template-columns:42px 42px!important;
		gap:10px!important;
	}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]) > .pfc-room-source-icon{
		display:grid!important;
		place-items:center!important;
		width:42px!important;
		height:42px!important;
		min-width:42px!important;
		min-height:42px!important;
		padding:0!important;
		border-radius:50%!important;
		font-size:0!important;
	}
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]) > .pfc-room-source-icon svg{
		display:block!important;
		width:21px!important;
		height:21px!important;
		fill:currentColor!important;
	}
}
@media(max-width:720px) and (max-height:700px){
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-mobile-custom-room-actions:not([hidden]){bottom:72px!important;}
}


/* v0.3.106 – mobil: poslední bezpečnostní rezerva proti ořezu hlavního rámu.
 * Přesnou šířku dopočítává JS podle skutečné šířky i výšky preview-shellu. */
@media(max-width:720px){
    .pfc-app.has-photos .pfc-preview-shell{
        box-sizing:border-box!important;
    }
    .pfc-app.has-photos .pfc-frame{
        flex-shrink:0!important;
    }
}


/* v0.3.108 – mobil: hlavní fotografie má být dominantní, ne miniatura.
 * JS ji následně přesně dopočítá tak, aby se celý rám vešel do této plochy. */
@media(max-width:720px){
	.pfc-app.has-photos .pfc-preview-shell{
		height:clamp(340px,50dvh,430px)!important;
		padding:6px!important;
	}
	.pfc-app.has-photos.is-portrait .pfc-frame{
		width:min(70vw,290px)!important;
		max-width:none!important;
	}
	.pfc-app.has-photos.is-landscape .pfc-frame{
		width:min(94vw,400px)!important;
		max-width:none!important;
	}
}
@media(max-width:720px) and (max-height:700px){
	.pfc-app.has-photos .pfc-preview-shell{height:clamp(315px,48dvh,350px)!important;}
}

/* v0.3.109 – mobil: stejná mezera mezi skutečným spodním okrajem rámu a hlavním menu.
 * Preview-shell se nově výškově přizpůsobí samotnému rámu místo pevné výšky podle dVH. */
@media(max-width:720px){
	.pfc-app.has-photos .pfc-preview-panel[data-preview-panel="edit"] .pfc-preview-shell{
		height:auto!important;
		min-height:0!important;
		padding:6px 6px 6px!important;
		place-items:start center!important;
		overflow:hidden!important;
	}
	/* 6 px spodní padding shellu + 13 px mezera = cca 19 px, tedy přibližně 5 mm. */
	.pfc-app.has-photos .pfc-editor-controls{
		margin-top:13px!important;
	}
}
@media(max-width:720px) and (max-height:700px){
	.pfc-app.has-photos .pfc-preview-panel[data-preview-panel="edit"] .pfc-preview-shell{
		height:auto!important;
	}
	.pfc-app.has-photos .pfc-editor-controls{
		margin-top:13px!important;
	}
}

/* v0.3.114 – mobil: jemnější ••• a výraznější středový jezdec úprav; základní lišta zůstává v jednom řádku; rozšířené úpravy
 * se otevřou až přes ••• a plavou nad hlavní lištou, takže nezvyšují výšku stránky. */
@media(max-width:720px){
	.pfc-mobile-image-toolbar:not([hidden]){
		display:flex!important;
		flex-direction:row!important;
		align-items:center!important;
		justify-content:center!important;
		gap:4px!important;
		bottom:7px!important;
		padding:4px 5px!important;
		border-radius:999px!important;
		max-width:calc(100% - 14px)!important;
		white-space:nowrap!important;
	}
	.pfc-mobile-image-toolbar > button{
		width:30px!important;
		height:30px!important;
		flex:0 0 30px!important;
	}
	.pfc-mobile-image-toolbar > strong{
		min-width:39px!important;
		font-size:9px!important;
		flex:0 0 auto!important;
	}
	.pfc-mobile-more-toggle{background:rgba(255,255,255,.07)!important;}
	.pfc-mobile-more-toggle span{
		display:block;
		font-size:12px;
		line-height:10px;
		letter-spacing:.35px;
		opacity:.58;
		transform:translateY(-1px);
	}
	.pfc-mobile-more-toggle.is-active{background:rgba(255,255,255,.18)!important;color:#fff!important;}
	.pfc-mobile-more-toggle.is-active span{opacity:.82;}
	.pfc-mobile-advanced-toolbar:not([hidden]){
		display:flex!important;
		position:absolute;
		left:50%;
		bottom:calc(100% + 7px);
		transform:translateX(-50%);
		align-items:center;
		justify-content:center;
		gap:4px;
		padding:4px 5px;
		border:1px solid rgba(255,255,255,.74);
		border-radius:999px;
		background:rgba(27,25,23,.86);
		box-shadow:0 4px 16px rgba(0,0,0,.24);
		backdrop-filter:blur(8px);
		white-space:nowrap;
		z-index:2;
	}
	.pfc-mobile-advanced-toolbar button{
		display:grid;place-items:center;
		width:30px!important;height:30px!important;padding:0!important;
		border:0!important;border-radius:50%!important;
		background:rgba(255,255,255,.13)!important;color:#fff!important;
		flex:0 0 30px!important;
	}
	.pfc-mobile-advanced-toolbar button svg{width:17px!important;height:17px!important;fill:currentColor!important;}
	.pfc-mobile-advanced-toolbar button.is-active{background:#fff!important;color:#1d1b19!important;}
	.pfc-mobile-adjust-popover:not([hidden]){
		display:flex!important;
		align-items:center;
		gap:6px;
		position:absolute;
		left:50%;
		bottom:calc(100% + 51px);
		transform:translateX(-50%);
		width:min(255px,calc(100vw - 34px));
		padding:7px 9px;
		border:1px solid rgba(255,255,255,.76);
		border-radius:999px;
		background:rgba(27,25,23,.9);
		box-shadow:0 4px 16px rgba(0,0,0,.24);
		backdrop-filter:blur(8px);
		z-index:3;
	}
	.pfc-mobile-adjust-sign{
		display:grid;place-items:center;
		width:16px;flex:0 0 16px;
		color:rgba(255,255,255,.72);
		font-size:15px;font-weight:800;line-height:1;
	}
	.pfc-mobile-adjust-track{
		position:relative;
		min-width:0;flex:1;
		height:24px;
		display:flex;align-items:center;
	}
	.pfc-mobile-adjust-zero{
		position:absolute;left:50%;top:50%;
		width:2px;height:9px;
		transform:translate(-50%,-50%);
		border-radius:999px;
		background:rgba(255,255,255,.38);
		pointer-events:none;
		z-index:0;
	}
	.pfc-mobile-adjust-popover input[type="range"]{
		-webkit-appearance:none;appearance:none;
		position:relative;z-index:1;
		width:100%;min-width:0;height:24px;margin:0;padding:0;
		background:transparent;outline:0;
	}
	.pfc-mobile-adjust-popover input[type="range"]::-webkit-slider-runnable-track{
		height:5px;border-radius:999px;background:rgba(255,255,255,.30);
	}
	.pfc-mobile-adjust-popover input[type="range"]::-webkit-slider-thumb{
		-webkit-appearance:none;appearance:none;
		width:18px;height:18px;margin-top:-6.5px;
		border:2px solid rgba(35,31,28,.78);border-radius:50%;
		background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.42);
	}
	.pfc-mobile-adjust-popover input[type="range"]::-moz-range-track{
		height:5px;border:0;border-radius:999px;background:rgba(255,255,255,.30);
	}
	.pfc-mobile-adjust-popover input[type="range"]::-moz-range-thumb{
		width:18px;height:18px;
		border:2px solid rgba(35,31,28,.78);border-radius:50%;
		background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.42);
	}
	.pfc-mobile-adjust-popover output{min-width:28px;color:rgba(255,255,255,.82);font-size:9px;font-weight:800;text-align:right;}
	/* Hlavní rám zůstává vizuálně stabilní; reálná velikost se projeví v místnostech. */
	.pfc-app.has-photos .pfc-frame{transition:background .18s ease,padding .18s ease,border-width .18s ease!important;}
}
@media(max-width:380px){
	.pfc-mobile-image-toolbar:not([hidden]){gap:3px!important;padding-left:4px!important;padding-right:4px!important;}
	.pfc-mobile-image-toolbar > button{width:28px!important;height:28px!important;flex-basis:28px!important;}
	.pfc-mobile-image-toolbar > strong{min-width:36px!important;}
	.pfc-mobile-advanced-toolbar:not([hidden]){gap:3px;padding-left:4px;padding-right:4px;}
	.pfc-mobile-advanced-toolbar button{width:28px!important;height:28px!important;flex-basis:28px!important;}
}


/* v0.3.118 – mobilní lupa uvnitř rámu, jednodušší stav velikost/DPI a tvrdý limit zoomu;
 * vlastní rám a živé editační nástroje se při otevření přesunou do fullscreen overlaye. */
.pfc-mobile-photo-edit-launch,
.pfc-mobile-photo-editor{display:none;}
@media(max-width:980px){
	.pfc-app.has-photos .pfc-preview-panel[data-preview-panel="edit"] .pfc-mobile-image-toolbar{display:none!important;}
	.pfc-app.has-photos .pfc-preview-panel[data-preview-panel="edit"] .pfc-mobile-stage-loupe{display:none!important;}
	.pfc-mobile-photo-edit-launch:not([hidden]){
		display:grid!important;place-items:center;
		position:absolute;right:calc(var(--frame-border) + 7px);bottom:calc(var(--frame-border) + 7px);z-index:44;
		width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.82);border-radius:50%;
		background:rgba(26,24,22,.68);color:#fff;box-shadow:0 3px 12px rgba(0,0,0,.28);backdrop-filter:blur(7px);
	}
	.pfc-frame.has-texture .pfc-mobile-photo-edit-launch:not([hidden]){right:7px;bottom:7px;}
	.pfc-mobile-photo-edit-launch svg{width:19px;height:19px;fill:currentColor;opacity:1;}
	.pfc-mobile-photo-editor:not([hidden]){
		display:flex!important;flex-direction:column;
		position:fixed;inset:0;z-index:2147482500;
		width:100vw;height:100vh;height:100dvh;min-height:100svh;
		background:#171513;color:#fff;
		padding:max(8px,env(safe-area-inset-top)) 10px max(9px,env(safe-area-inset-bottom));
		box-sizing:border-box;overflow:hidden;
	}
	html.pfc-mobile-photo-editor-open,body.pfc-mobile-photo-editor-open{overflow:hidden!important;overscroll-behavior:none!important;}
	.pfc-mobile-photo-editor__header{
		display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;
		min-height:48px;flex:0 0 auto;padding:1px 0 5px;
	}
	.pfc-mobile-photo-editor__close{
		grid-column:3;justify-self:end;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;
		background:rgba(255,255,255,.10);color:#fff;font:400 29px/1 system-ui,sans-serif;z-index:6;
	}
	.pfc-mobile-photo-editor__quality{
		grid-column:2;justify-self:center;display:flex;flex-direction:column;align-items:center;gap:3px;
		max-width:100%;text-align:center;color:#eee;
	}
	.pfc-mobile-photo-editor__size{
		display:flex;align-items:center;justify-content:center;min-width:88px;min-height:34px;padding:5px 12px;
		border:1px solid rgba(255,255,255,.42);border-radius:8px;background:rgba(255,255,255,.10);
		font-size:13px;font-weight:850;line-height:1;white-space:nowrap;box-shadow:0 0 0 1px rgba(0,0,0,.08);
	}
	.pfc-mobile-photo-editor__dpi{font-size:10px;font-weight:800;line-height:1.1;color:#ded9d4;}
	.pfc-mobile-photo-editor__quality.is-good .pfc-mobile-photo-editor__size{background:#31583f;border-color:#31583f;color:#fff;}
	.pfc-mobile-photo-editor__quality.is-medium .pfc-mobile-photo-editor__size{background:#704923;border-color:#704923;color:#fff;}
	.pfc-mobile-photo-editor__quality.is-low .pfc-mobile-photo-editor__size{background:#8e3434;border-color:#b74a4a;color:#fff;}
	.pfc-mobile-photo-editor__quality.is-good .pfc-mobile-photo-editor__dpi{color:#ccebd5;}
	.pfc-mobile-photo-editor__quality.is-medium .pfc-mobile-photo-editor__dpi{color:#ffe2a5;}
	.pfc-mobile-photo-editor__quality.is-low .pfc-mobile-photo-editor__dpi{color:#ffb9b9;}
	.pfc-mobile-photo-editor__quality.is-empty .pfc-mobile-photo-editor__size{color:#d5d0cb;}
	.pfc-mobile-photo-editor.is-zoom-limit::after{
		content:"";position:fixed;inset:0;z-index:2147483600;pointer-events:none;
		background:rgba(186,24,24,.20);box-shadow:inset 0 0 0 5px rgba(255,72,72,.80),inset 0 0 80px rgba(190,0,0,.30);
		animation:pfc-zoom-limit-flash .62s ease-out both;
	}
	@keyframes pfc-zoom-limit-flash{0%{opacity:0}18%{opacity:1}100%{opacity:0}}
	.pfc-mobile-photo-editor__stage{
		position:relative;display:flex;align-items:center;justify-content:center;
		min-height:0;flex:1 1 auto;padding:7px 2px 6px;overflow:hidden;
	}
	.pfc-mobile-photo-editor__stage .pfc-frame{
		flex:0 0 auto;margin:0!important;max-width:none!important;transition:background .18s ease,padding .18s ease,border-width .18s ease!important;
		box-shadow:0 22px 52px rgba(0,0,0,.42),inset 0 0 0 1px rgba(0,0,0,.14),inset 0 0 18px rgba(255,255,255,.12)!important;
	}
	.pfc-mobile-photo-editor__footer{
		position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
		gap:17px;flex:0 0 136px;min-height:136px;padding:4px 0 4px;z-index:3;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){
		display:flex!important;position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;
		flex-direction:row!important;align-items:center!important;justify-content:center!important;
		gap:4px!important;padding:4px 5px!important;max-width:calc(100vw - 22px)!important;
		border:1px solid rgba(255,255,255,.68)!important;border-radius:999px!important;
		background:rgba(35,31,28,.88)!important;box-shadow:0 3px 16px rgba(0,0,0,.34)!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar:not([hidden]){bottom:calc(100% + 8px)!important;}
	.pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover:not([hidden]){bottom:calc(100% + 52px)!important;}
	.pfc-mobile-photo-editor-scenes:not([hidden]){
		display:flex;align-items:flex-start;justify-content:center;gap:6px;
		width:100%;max-width:calc(100vw - 18px);padding:0 2px 2px;overflow-x:auto;overflow-y:hidden;
		-webkit-overflow-scrolling:touch;scrollbar-width:none;
	}
	.pfc-mobile-photo-editor-scenes::-webkit-scrollbar{display:none;}
	.pfc-mobile-photo-editor-scenes > button{
		flex:0 0 58px;min-width:58px;padding:0;border:0;background:none;color:#eee;
		display:flex;flex-direction:column;align-items:center;gap:5px;
	}
	.pfc-mobile-photo-editor-scenes > button.is-active small{color:#fff;font-weight:800;}
	.pfc-mobile-photo-editor-scenes > button[hidden]{display:none!important;}
	.pfc-mobile-photo-editor-scenes small{font-size:10px;line-height:1.15;opacity:.92;}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{width:54px;height:44px;border-radius:11px;}
}
@media(max-width:380px){
	.pfc-mobile-photo-editor__size{min-width:82px;min-height:32px;font-size:12px;padding-left:9px;padding-right:9px;}
	.pfc-mobile-photo-editor__dpi{font-size:9.5px;}
	.pfc-mobile-photo-editor__footer{min-height:130px;gap:15px;}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){gap:3px!important;padding-left:4px!important;padding-right:4px!important;}
	.pfc-mobile-photo-editor-scenes > button{flex-basis:55px;min-width:55px;}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{width:51px;height:42px;}
}


/* v0.3.117 – mobilní Moje místnost: stejná výška zmenšeného náhledu jako přednastavené scény. */
@media(max-width:720px){
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-room-stage.is-custom:not(.is-mobile-fullscreen){
		height:clamp(282px,42dvh,342px)!important;
		min-height:0!important;
		max-height:none!important;
		aspect-ratio:auto!important;
	}
}
@media(max-width:720px) and (max-height:700px){
	.pfc-preview-panel[data-preview-panel="interior"] .pfc-room-stage.is-custom:not(.is-mobile-fullscreen){height:285px!important;}
}


/* v0.3.119 – telefon otočený na šířku zůstává v mobilním UX.
 * JS používá mobilní větev do 980 px, proto zde sjednocujeme navigaci i pro
 * šířky 721–980 px, které typicky vzniknou po otočení telefonu. */
@media(min-width:721px) and (max-width:980px) and (orientation:landscape){
	.pfc-app.has-photos .pfc-project-transfer-bar{display:none!important;}
	.pfc-app.has-photos .pfc-editor-controls{padding-left:4px!important;padding-right:4px!important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-tool-buttons{
		display:grid!important;
		grid-template-columns:repeat(5,minmax(0,1fr))!important;
		gap:2px!important;
		padding:3px!important;
		width:100%!important;
		box-sizing:border-box!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-mobile-pc-tab{
		display:flex!important;
		min-width:0!important;
		width:100%!important;
		min-height:46px!important;
		padding:4px 1px!important;
		margin:0!important;
		border:0!important;
		border-radius:9px!important;
		background:transparent;
		color:#27231f;
		flex-direction:column;
		align-items:center;
		justify-content:center;
		gap:2px!important;
		font:inherit;
		font-size:8px!important;
		font-weight:800;
		line-height:1.05;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-mobile-pc-tab svg{width:19px!important;height:19px!important;fill:currentColor;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-mobile-pc-tab span{display:block!important;white-space:nowrap!important;}
}


/* v0.3.120 – mobil: ikonové zdroje fotografie + akce objednávky v jedné spodní liště. */
.pfc-photo-action-icon{display:none;}
@media(max-width:980px){
	/* Galerie: jen složka a fotoaparát, bez dlouhých textů. */
	.pfc-app.has-photos .pfc-photo-actions{
		display:flex!important;
		align-items:center!important;
		justify-content:flex-start!important;
		gap:8px!important;
		grid-template-columns:none!important;
	}
	.pfc-app.has-photos .pfc-photo-actions .pfc-photo-action-source{
		display:grid!important;
		place-items:center!important;
		flex:0 0 44px!important;
		width:44px!important;
		height:40px!important;
		min-height:40px!important;
		padding:0!important;
		border-radius:10px!important;
		background:#fff!important;
		color:#24211f!important;
		border:1px solid #ddd6ce!important;
		box-shadow:0 1px 2px rgba(0,0,0,.04)!important;
	}
	.pfc-app.has-photos .pfc-photo-actions .pfc-photo-action-source:active{
		transform:translateY(1px);
		background:#f5f2ef!important;
	}
	.pfc-app.has-photos .pfc-photo-action-icon{
		display:block!important;
		width:21px!important;
		height:21px!important;
		fill:currentColor!important;
	}
	.pfc-app.has-photos .pfc-photo-action-label{display:none!important;}

	/* Vyřazení se na mobilu přesouvá mezi cenu a hlavní akci. */
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary{
		display:grid!important;
		grid-template-columns:minmax(66px,.42fr) minmax(76px,.52fr) minmax(132px,1fr)!important;
		align-items:stretch!important;
		gap:6px!important;
	}
	.pfc-app.has-photos .pfc-order-summary>.pfc-active-order-control{
		display:flex!important;
		align-items:stretch!important;
		justify-content:stretch!important;
		margin:0!important;
		padding:0!important;
		border:0!important;
		background:transparent!important;
		min-width:0!important;
	}
	.pfc-app.has-photos .pfc-order-summary>.pfc-active-order-control[hidden]{display:none!important;}
	.pfc-app.has-photos .pfc-order-summary>.pfc-active-order-control>span{display:none!important;}
	.pfc-app.has-photos .pfc-order-summary .pfc-order-toggle-active{
		width:100%!important;
		min-width:0!important;
		min-height:42px!important;
		padding:4px 6px!important;
		border:1px solid #d6cfc8!important;
		border-radius:9px!important;
		background:#fff!important;
		color:#403a35!important;
		font-size:8px!important;
		font-weight:800!important;
		line-height:1.15!important;
		white-space:normal!important;
		text-align:center!important;
	}
	.pfc-app.has-photos .pfc-order-summary .pfc-order-toggle-active.is-excluded{
		background:#f2eee9!important;
		color:#27231f!important;
		border-color:#bdb3aa!important;
	}

	/* Hlavní konverzní akce – výrazná zelená, nikoli varovná červená. */
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary .pfc-add-button:not(:disabled){
		background:#16a34a!important;
		border-color:#16a34a!important;
		color:#fff!important;
		box-shadow:0 3px 10px rgba(22,163,74,.24)!important;
		font-weight:900!important;
	}
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary .pfc-add-button:not(:disabled):active{
		background:#15803d!important;
		border-color:#15803d!important;
		transform:translateY(1px);
	}
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary .pfc-add-button:disabled{
		background:#dedbd7!important;
		border-color:#dedbd7!important;
		color:#8a847e!important;
		box-shadow:none!important;
	}
}
@media(max-width:370px){
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary{
		grid-template-columns:minmax(61px,.38fr) minmax(70px,.47fr) minmax(124px,1fr)!important;
		gap:4px!important;
	}
	.pfc-app.has-photos .pfc-order-summary .pfc-order-toggle-active{font-size:7.5px!important;padding-left:4px!important;padding-right:4px!important;}
	.pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary .pfc-add-button{font-size:9px!important;padding-left:6px!important;padding-right:6px!important;}
}


/* v0.3.124 – PC: všechny formáty velikostí zůstávají v jediném vodorovném řádku.
 * Posun zůstává funkční, ale technický scrollbar je skrytý stejně jako na mobilu. */
@media(min-width:981px){
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-grid{
		display:grid!important;
		grid-template-columns:none!important;
		grid-auto-flow:column!important;
		grid-auto-columns:minmax(68px,1fr)!important;
		column-gap:8px!important;
		row-gap:0!important;
		justify-content:start!important;
		align-items:center!important;
		overflow-x:auto!important;
		overflow-y:hidden!important;
		padding:1px 1px 3px!important;
		scroll-snap-type:x proximity;
		overscroll-behavior-inline:contain;
		scrollbar-width:none;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-grid::-webkit-scrollbar{display:none!important;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-button{
		scroll-snap-align:start;
		min-width:68px!important;
	}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-grid{cursor:grab;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-grid.is-dragging{cursor:grabbing;scroll-snap-type:none!important;user-select:none;}
	.pfc-app.has-photos .pfc-editor-controls .pfc-size-grid.is-dragging .pfc-size-button{pointer-events:none;}
}


/* v0.3.126 – PC: úprava fotografie až po otevření lupou, stejně jako na mobilu. */
@media(min-width:981px){
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools{display:none!important;}
	.pfc-stage-lightbox-v2__photo-tools[hidden]{display:none!important;}
	.pfc-stage-lightbox-v2__photo-tools{
		position:relative;z-index:35;display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:52px;
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-size-edit-tools{
		display:block!important;position:relative!important;margin:0!important;padding:6px!important;
		border:1px solid rgba(255,255,255,.55)!important;border-radius:999px!important;
		background:rgba(34,31,29,.88)!important;box-shadow:0 5px 22px rgba(0,0,0,.28)!important;backdrop-filter:blur(8px);
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-size-edit-head,
	.pfc-stage-lightbox-v2__photo-tools .pfc-size-zoom-row,
	.pfc-stage-lightbox-v2__photo-tools .pfc-size-pan-row{display:none!important;}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-photo-toolbar{
		display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:auto!important;min-width:0!important;
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-icon{
		display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;
		min-width:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:50%!important;
		background:rgba(255,255,255,.12)!important;color:#fff!important;font:inherit!important;font-size:20px!important;font-weight:800!important;
		line-height:1!important;cursor:pointer!important;
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-icon:hover{background:rgba(255,255,255,.22)!important;}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-icon.is-active{background:#fff!important;color:#25211e!important;}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-icon svg{
		display:block!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;fill:currentColor!important;stroke:none!important;
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-zoom-percent{
		display:block!important;flex:0 0 48px!important;min-width:48px!important;color:#fff!important;font-size:11px!important;font-weight:850!important;text-align:center!important;white-space:nowrap!important;
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-zoom-range{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-more-toggle span{font-size:12px!important;letter-spacing:.7px!important;opacity:.72!important;transform:translateY(-1px);}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-advanced-toolbar:not([hidden]){
		position:absolute!important;left:50%!important;bottom:calc(100% + 8px)!important;transform:translateX(-50%)!important;z-index:80!important;
		display:flex!important;align-items:center!important;gap:5px!important;padding:6px!important;border:1px solid rgba(255,255,255,.55)!important;
		border-radius:999px!important;background:rgba(34,31,29,.92)!important;box-shadow:0 7px 24px rgba(0,0,0,.34)!important;
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-advanced-toolbar .pfc-desktop-edit-icon{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-adjust-popover:not([hidden]){
		position:absolute!important;left:50%!important;bottom:calc(100% + 53px)!important;transform:translateX(-50%)!important;
		display:grid!important;grid-template-columns:auto minmax(150px,220px) auto auto!important;align-items:center!important;gap:7px!important;
		padding:8px 10px!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:12px!important;background:rgba(34,31,29,.94)!important;
		color:#fff!important;box-shadow:0 8px 26px rgba(0,0,0,.36)!important;
	}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-adjust-popover input{width:100%!important;accent-color:#fff!important;}
	.pfc-stage-lightbox-v2__photo-tools .pfc-desktop-adjust-popover output{min-width:30px!important;text-align:right!important;font-weight:850!important;color:#fff!important;}
	.pfc-stage-lightbox-v2__live-photo{display:flex!important;align-items:center!important;justify-content:center!important;max-width:86vw!important;max-height:calc(94vh - 190px)!important;}
	.pfc-app.is-desktop-photo-editing .pfc-photo-window.is-pan-active{cursor:grab!important;touch-action:none!important;}
	.pfc-app.is-desktop-photo-editing .pfc-photo-window.is-pan-active:active{cursor:grabbing!important;}
}


/* v0.3.127 – PC: rychlá editace i v záložce Velikosti + ovládání dole uvnitř velkého obrazu. */
@media(min-width:981px){
	/* V běžné záložce Velikosti je stejná kompaktní ikonová lišta jako ve velkém editoru. */
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools{
		display:block!important;
		position:relative!important;
		margin:9px 0 0!important;
		padding:6px 7px!important;
		border:1px solid #e3ddd7!important;
		border-radius:12px!important;
		background:#fbfaf8!important;
		box-shadow:none!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-photo-toolbar{
		display:flex!important;
		align-items:center!important;
		justify-content:flex-start!important;
		gap:5px!important;
		width:100%!important;
		min-width:0!important;
		overflow:visible!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-edit-icon{
		display:grid!important;
		place-items:center!important;
		flex:0 0 34px!important;
		width:34px!important;
		height:34px!important;
		min-width:34px!important;
		min-height:34px!important;
		padding:0!important;
		border:1px solid #ddd6cf!important;
		border-radius:9px!important;
		background:#fff!important;
		color:#37322e!important;
		font:inherit!important;
		font-size:18px!important;
		font-weight:800!important;
		line-height:1!important;
		cursor:pointer!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-edit-icon:hover{
		background:#f1eeeb!important;
		border-color:#c9c0b8!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-edit-icon.is-active{
		background:#4b4540!important;
		border-color:#4b4540!important;
		color:#fff!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-edit-icon svg{
		display:block!important;
		width:18px!important;
		height:18px!important;
		fill:currentColor!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-zoom-percent{
		display:block!important;
		flex:0 0 43px!important;
		min-width:43px!important;
		font-size:10px!important;
		font-weight:850!important;
		text-align:center!important;
		color:#3d3732!important;
		white-space:nowrap!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-zoom-range{
		position:absolute!important;
		width:1px!important;height:1px!important;
		opacity:0!important;pointer-events:none!important;overflow:hidden!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-more-toggle span{
		font-size:11px!important;letter-spacing:.6px!important;opacity:.72!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-advanced-toolbar:not([hidden]){
		position:absolute!important;
		left:50%!important;
		top:calc(100% + 6px)!important;
		transform:translateX(-50%)!important;
		z-index:90!important;
		display:flex!important;
		align-items:center!important;
		gap:5px!important;
		padding:6px!important;
		border:1px solid #d8d0c9!important;
		border-radius:999px!important;
		background:rgba(255,255,255,.98)!important;
		box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-advanced-toolbar .pfc-desktop-edit-icon{
		width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
	}
	.pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-adjust-popover:not([hidden]){
		position:absolute!important;
		left:50%!important;
		top:calc(100% + 50px)!important;
		transform:translateX(-50%)!important;
		z-index:95!important;
		display:grid!important;
		grid-template-columns:auto minmax(145px,210px) auto auto!important;
		align-items:center!important;
		gap:7px!important;
		padding:8px 10px!important;
		border:1px solid #d8d0c9!important;
		border-radius:12px!important;
		background:#fff!important;
		box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
		color:#3d3732!important;
	}

	/* Ve velkém náhledu je lišta opravdu uvnitř obrazu, dole jako na mobilu. */
	.pfc-stage-lightbox-v2__live-photo{
		position:relative!important;
	}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools{
		position:absolute!important;
		left:50%!important;
		bottom:14px!important;
		transform:translateX(-50%)!important;
		z-index:92!important;
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
		min-height:0!important;
		width:auto!important;
		max-width:calc(100% - 24px)!important;
		pointer-events:auto!important;
	}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools[hidden]{display:none!important;}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-size-edit-tools{
		margin:0!important;
		padding:5px 6px!important;
		border:1px solid rgba(255,255,255,.62)!important;
		border-radius:999px!important;
		background:rgba(30,27,25,.78)!important;
		box-shadow:0 4px 18px rgba(0,0,0,.28)!important;
		backdrop-filter:blur(8px)!important;
	}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-photo-toolbar{
		display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
	}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-icon{
		width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
	}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-advanced-toolbar:not([hidden]){
		top:auto!important;
		bottom:calc(100% + 8px)!important;
	}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-adjust-popover:not([hidden]){
		top:auto!important;
		bottom:calc(100% + 52px)!important;
	}
}

/* v0.3.128 – PC velký editor: čisté obrazové miniatury, formát+DPI a tvrdý tiskový zoom limit. */
@media(min-width:981px){
	/* Spodní volby jsou čistě obrazové; názvy zůstávají v aria-label pro přístupnost. */
	.pfc-stage-lightbox-v2__thumb-label{display:none!important;}
	.pfc-stage-lightbox-v2__thumb{gap:0!important;padding:4px!important;}

	/* I při přesné zmenšené kopii scény je aktuální fotografie zřetelně vidět v malém rámu. */
	.pfc-stage-lightbox-v2__thumb-photo-overlay{
		--thumb-frame-color:#d8bd91;
		position:absolute;
		left:50%;
		top:31%;
		z-index:40;
		width:22%;
		min-width:18px;
		max-width:31px;
		transform:translate(-50%,-50%);
		box-sizing:border-box;
		border:3px solid var(--thumb-frame-color);
		background-position:center;
		background-size:cover;
		background-repeat:no-repeat;
		box-shadow:0 1px 4px rgba(0,0,0,.55),inset 0 0 0 1px rgba(48,34,23,.38);
		pointer-events:none;
	}
	.pfc-stage-lightbox-v2__thumb-photo-overlay.is-bedroom{top:31%;}
	.pfc-stage-lightbox-v2__thumb-photo-overlay.is-desk{top:45%;width:19%;}
	.pfc-stage-lightbox-v2__thumb-photo-overlay.is-custom{top:36%;}

	/* Formát a DPI stejně jako v mobilním velkém editoru – nahoře přímo přes fotografii. */
	.pfc-stage-lightbox-v2__photo-status{
		position:absolute;
		left:50%;
		top:14px;
		z-index:94;
		transform:translateX(-50%);
		display:flex;
		flex-direction:column;
		align-items:center;
		gap:3px;
		pointer-events:none;
	}
	.pfc-stage-lightbox-v2__photo-status strong{
		display:grid;
		place-items:center;
		min-width:76px;
		height:35px;
		padding:0 13px;
		box-sizing:border-box;
		border:1px solid rgba(255,255,255,.66);
		border-radius:9px;
		background:rgba(40,36,33,.84);
		color:#fff;
		font-size:12px;
		font-weight:900;
		line-height:1;
		box-shadow:0 3px 14px rgba(0,0,0,.26);
		backdrop-filter:blur(7px);
	}
	.pfc-stage-lightbox-v2__photo-status span{
		display:block;
		padding:3px 8px;
		border-radius:999px;
		background:rgba(31,28,26,.78);
		color:#fff;
		font-size:10px;
		font-weight:850;
		line-height:1;
		box-shadow:0 2px 8px rgba(0,0,0,.22);
	}
	.pfc-stage-lightbox-v2__photo-status.is-good strong{background:rgba(48,132,82,.90);}
	.pfc-stage-lightbox-v2__photo-status.is-medium strong{background:rgba(166,115,40,.92);}
	.pfc-stage-lightbox-v2__photo-status.is-low strong{background:rgba(168,49,49,.94);}

	/* Při pokusu o zoom pod povolené DPI se další zoom neprovede a celý editor krátce červeně upozorní. */
	.pfc-stage-lightbox-v2::after{
		content:"";
		position:fixed;
		inset:0;
		z-index:2147483200;
		pointer-events:none;
		opacity:0;
		background:rgba(210,26,26,.10);
		box-shadow:inset 0 0 0 7px rgba(235,43,43,.92),inset 0 0 80px rgba(220,30,30,.30);
	}
	.pfc-stage-lightbox-v2.is-zoom-limit::after{animation:pfc-desktop-zoom-limit-flash .62s ease-out both;}
	@keyframes pfc-desktop-zoom-limit-flash{0%{opacity:0}18%{opacity:1}100%{opacity:0}}
}

/* v0.3.131 – PC vlastní místnost: jeden aktivní rámeček bez rušivého obrysu; skupina 2+ zůstává modrá. */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-custom-room-frame.is-selected:not(.is-multi-selected){
		outline:0!important;
		box-shadow:none!important;
	}
	.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-custom-room-frame.is-multi-selected{
		outline:2px solid rgba(65,135,255,.95)!important;
		outline-offset:3px!important;
	}
}

/* v0.3.132 – PC velký editor: stabilní jas/kontrast + spolehlivá první miniatura. */
@media(min-width:981px){
	/* Posuvník patří těsně nad rozšířenou řadu ikon, ne vysoko nad fotografii. */
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-adjust-popover:not([hidden]){
		top:auto!important;
		bottom:calc(100% + 6px)!important;
		z-index:98!important;
		pointer-events:auto!important;
	}
	.pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-adjust-popover input[type="range"]{
		pointer-events:auto!important;
		cursor:pointer!important;
	}

	/* První miniatura je vlastní malý rám s právě upravovanou fotografií. */
	.pfc-stage-lightbox-v2__thumb-visual.is-frame-photo{
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
		background:#272421!important;
	}
	.pfc-stage-lightbox-v2__thumb-visual.is-frame-photo:after{display:none!important;content:none!important;}
	.pfc-stage-lightbox-v2__frame-thumb-shell{
		--thumb-shell-frame-color:#d8bd91;
		display:block;
		position:relative;
		max-width:88%;
		max-height:88%;
		width:auto;
		height:84%;
		box-sizing:border-box;
		border:5px solid var(--thumb-shell-frame-color);
		border-radius:1px;
		background:var(--thumb-shell-frame-color);
		background-image:var(--thumb-shell-frame-texture,none);
		background-size:cover;
		background-position:center;
		box-shadow:0 1px 5px rgba(0,0,0,.48),inset 0 0 0 1px rgba(0,0,0,.16);
		overflow:hidden;
	}
	.pfc-stage-lightbox-v2__frame-thumb-photo{
		display:block;
		position:absolute;
		inset:0;
		background-position:center;
		background-size:cover;
		background-repeat:no-repeat;
	}
}


/* v0.3.134 – první PC miniatura: spolehlivý IMG náhled uvnitř aktuálního rámu. */
@media(min-width:981px){
	.pfc-stage-lightbox-v2__frame-thumb-shell{
		position:relative!important;
		display:block!important;
		height:84%!important;
		width:auto!important;
		max-width:90%!important;
		max-height:88%!important;
		box-sizing:border-box!important;
		padding:5px!important;
		border:0!important;
		background-color:var(--thumb-shell-frame-color,#d8bd91)!important;
		background-image:var(--thumb-shell-frame-texture,none)!important;
		background-size:cover!important;
		background-position:center!important;
		overflow:hidden!important;
	}
	.pfc-stage-lightbox-v2__frame-thumb-window{
		position:absolute;inset:5px;display:block;overflow:hidden;background:#ddd;
	}
	.pfc-stage-lightbox-v2__frame-thumb-photo{
		position:absolute!important;left:50%!important;top:50%!important;
		display:block!important;width:100%!important;height:100%!important;
		max-width:none!important;max-height:none!important;object-fit:cover!important;
		transform-origin:center center!important;
	}
	.pfc-stage-lightbox-v2__frame-thumb-canvas{
		display:block!important;
		width:100%!important;
		height:100%!important;
	}
}


/* v0.3.137 – pouze mobil: velký editor fotografie zůstává funkční i po otočení telefonu. */
@media(min-width:721px) and (max-width:980px) and (orientation:landscape){
	.pfc-mobile-photo-editor:not([hidden]){
		display:flex!important;
		padding:max(5px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
	}
	.pfc-mobile-photo-editor__header{min-height:42px!important;padding-bottom:2px!important;}
	.pfc-mobile-photo-editor__close{width:36px!important;height:36px!important;}
	.pfc-mobile-photo-editor__stage{padding:2px 2px 4px!important;}
	.pfc-mobile-photo-editor__footer{flex-basis:104px!important;min-height:104px!important;gap:9px!important;padding-top:2px!important;}
	.pfc-mobile-photo-editor-scenes:not([hidden]){justify-content:center!important;gap:6px!important;max-width:min(92vw,560px)!important;}
	.pfc-mobile-photo-editor-scenes > button{flex-basis:56px!important;min-width:56px!important;}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{width:52px!important;height:40px!important;}
}


/* v0.3.139 – pouze mobil landscape: viditelné editační ikony a větší fotografie v rámu. */
@media(min-width:721px) and (max-width:980px) and (orientation:landscape){
	.pfc-mobile-photo-editor__header{
		min-height:36px!important;
		padding:0 0 1px!important;
	}
	.pfc-mobile-photo-editor__close{
		width:34px!important;
		height:34px!important;
		font-size:25px!important;
	}
	.pfc-mobile-photo-editor__quality{
		transform:scale(.94);
		transform-origin:center top;
	}
	.pfc-mobile-photo-editor__stage{
		padding:0 2px 2px!important;
	}
	.pfc-mobile-photo-editor__footer{
		flex-basis:90px!important;
		min-height:90px!important;
		gap:6px!important;
		padding:1px 0 2px!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){
		display:flex!important;
		flex-direction:row!important;
		align-items:center!important;
		justify-content:center!important;
		gap:4px!important;
		padding:4px 5px!important;
		border:1px solid rgba(255,255,255,.72)!important;
		border-radius:999px!important;
		background:rgba(27,25,23,.86)!important;
		color:#fff!important;
		white-space:nowrap!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button{
		display:grid!important;
		place-items:center!important;
		width:30px!important;
		height:30px!important;
		min-width:30px!important;
		flex:0 0 30px!important;
		padding:0!important;
		border:0!important;
		border-radius:50%!important;
		background:rgba(255,255,255,.13)!important;
		color:#fff!important;
		font-size:18px!important;
		font-weight:800!important;
		line-height:1!important;
		opacity:1!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button.is-active{
		background:#fff!important;
		color:#1d1b19!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button svg,
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar .pfc-mobile-advanced-toolbar button svg{
		display:block!important;
		width:17px!important;
		height:17px!important;
		fill:currentColor!important;
		stroke:none!important;
		opacity:1!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > strong{
		min-width:39px!important;
		color:#fff!important;
		font-size:9px!important;
		font-weight:800!important;
		text-align:center!important;
		opacity:1!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-more-toggle span{
		display:block!important;
		color:currentColor!important;
		font-size:12px!important;
		line-height:10px!important;
		opacity:.68!important;
	}
	.pfc-mobile-photo-editor-scenes:not([hidden]){
		justify-content:center!important;
		gap:5px!important;
		max-width:min(94vw,590px)!important;
		padding-bottom:0!important;
	}
	.pfc-mobile-photo-editor-scenes > button{
		flex-basis:52px!important;
		min-width:52px!important;
	}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{
		width:49px!important;
		height:37px!important;
	}
}


/* v0.3.139 – mobil landscape: dvousloupcový fullscreen editor.
 * Rám využívá téměř celou výšku vlevo; ovládání a náhledy jsou v pravém panelu. */
@media(min-width:721px) and (max-width:980px) and (orientation:landscape){
	.pfc-mobile-photo-editor:not([hidden]){
		display:grid!important;
		grid-template-columns:minmax(0,1fr) clamp(182px,28vw,238px)!important;
		grid-template-rows:minmax(0,1fr)!important;
		column-gap:8px!important;
		padding:max(5px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))!important;
	}
	.pfc-mobile-photo-editor__header{
		position:absolute!important;
		top:max(6px,env(safe-area-inset-top))!important;
		right:max(8px,env(safe-area-inset-right))!important;
		width:clamp(182px,28vw,238px)!important;
		height:42px!important;
		min-height:42px!important;
		display:grid!important;
		grid-template-columns:38px minmax(0,1fr) 38px!important;
		padding:0!important;
		z-index:12!important;
		pointer-events:none!important;
	}
	.pfc-mobile-photo-editor__header > *{pointer-events:auto!important;}
	.pfc-mobile-photo-editor__quality{
		grid-column:2!important;
		transform:scale(.90)!important;
		transform-origin:center top!important;
	}
	.pfc-mobile-photo-editor__close{
		grid-column:3!important;
		justify-self:end!important;
		width:34px!important;height:34px!important;
		font-size:25px!important;
	}
	.pfc-mobile-photo-editor__stage{
		grid-column:1!important;
		grid-row:1!important;
		min-width:0!important;
		min-height:0!important;
		width:100%!important;height:100%!important;
		padding:5px 4px!important;
		align-items:center!important;
		justify-content:center!important;
		overflow:hidden!important;
	}
	.pfc-mobile-photo-editor__stage .pfc-frame{
		max-width:none!important;
		max-height:none!important;
		margin:0!important;
	}
	.pfc-mobile-photo-editor__footer{
		grid-column:2!important;
		grid-row:1!important;
		position:relative!important;
		width:100%!important;height:100%!important;
		min-width:0!important;min-height:0!important;
		box-sizing:border-box!important;
		padding:50px 4px 5px!important;
		margin:0!important;
		display:flex!important;
		flex-direction:column!important;
		align-items:center!important;
		justify-content:center!important;
		gap:10px!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){
		position:relative!important;
		left:auto!important;bottom:auto!important;
		transform:none!important;
		display:grid!important;
		grid-template-columns:repeat(4,32px)!important;
		grid-auto-rows:32px!important;
		align-items:center!important;
		justify-content:center!important;
		gap:5px!important;
		width:auto!important;
		max-width:100%!important;
		padding:6px!important;
		border:1px solid rgba(255,255,255,.68)!important;
		border-radius:16px!important;
		background:rgba(35,31,28,.88)!important;
		box-shadow:0 3px 16px rgba(0,0,0,.34)!important;
		white-space:normal!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button{
		width:32px!important;height:32px!important;min-width:32px!important;
		flex:0 0 32px!important;padding:0!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > strong{
		min-width:32px!important;width:32px!important;
		font-size:9px!important;text-align:center!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar:not([hidden]){
		left:auto!important;right:calc(100% + 8px)!important;
		top:50%!important;bottom:auto!important;
		transform:translateY(-50%)!important;
		z-index:20!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover:not([hidden]){
		left:auto!important;right:calc(100% + 8px)!important;
		top:50%!important;bottom:auto!important;
		transform:translateY(-50%)!important;
		width:min(240px,44vw)!important;
		z-index:21!important;
	}
	.pfc-mobile-photo-editor-scenes:not([hidden]){
		display:grid!important;
		grid-template-columns:repeat(2,56px)!important;
		grid-auto-rows:auto!important;
		justify-content:center!important;
		align-items:start!important;
		gap:7px 8px!important;
		width:auto!important;
		max-width:100%!important;
		padding:0!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor-scenes > button{
		min-width:56px!important;width:56px!important;
		flex:none!important;gap:2px!important;
	}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{
		width:56px!important;height:39px!important;border-radius:9px!important;
	}
	.pfc-mobile-photo-editor-scenes small{
		font-size:8px!important;line-height:1!important;
	}
}


/* v0.3.141 – mobil: pojistka viditelnosti právě načtené fotografie.
 * Uploadovací logika zůstává beze změny; po načtení nesmí landscape layout
 * překrýt ani skrýt samotnou IMG vrstvu. */
@media(max-width:980px){
	.pfc-app.has-photos [data-preview-panel="edit"] .pfc-photo.is-visible[src]{
		display:block!important;
		visibility:visible!important;
		opacity:1!important;
	}
}

/* v0.3.141 – mobil landscape: bezpečné dvousloupcové rozložení.
 * Vlevo zůstává velká fotografie v rámu. Vpravo jsou dva kompaktní
 * vodorovné řádky: nahoře všechny editační nástroje, dole všechny scény.
 * Pravý panel zůstává úzký, takže nezasahuje do výpočtu velikosti fotografie. */
@media(min-width:721px) and (max-width:980px) and (orientation:landscape){
	.pfc-mobile-photo-editor:not([hidden]){
		grid-template-columns:minmax(0,1fr) clamp(230px,31vw,260px)!important;
		column-gap:8px!important;
	}
	.pfc-mobile-photo-editor__header{
		width:clamp(230px,31vw,260px)!important;
	}
	.pfc-mobile-photo-editor__footer{
		grid-column:2!important;
		grid-row:1!important;
		display:flex!important;
		flex-direction:column!important;
		align-items:center!important;
		justify-content:center!important;
		gap:12px!important;
		padding:48px 4px 7px!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){
		position:relative!important;
		left:auto!important;
		right:auto!important;
		top:auto!important;
		bottom:auto!important;
		transform:none!important;
		display:flex!important;
		flex-direction:row!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		justify-content:center!important;
		gap:2px!important;
		width:auto!important;
		max-width:100%!important;
		padding:4px!important;
		border:1px solid rgba(255,255,255,.68)!important;
		border-radius:999px!important;
		background:rgba(35,31,28,.88)!important;
		box-shadow:0 3px 16px rgba(0,0,0,.34)!important;
		white-space:nowrap!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button{
		width:27px!important;
		height:27px!important;
		min-width:27px!important;
		flex:0 0 27px!important;
		padding:0!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > strong{
		width:34px!important;
		min-width:34px!important;
		flex:0 0 34px!important;
		font-size:8px!important;
		text-align:center!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button svg{
		width:15px!important;
		height:15px!important;
	}
	.pfc-mobile-photo-editor-scenes:not([hidden]){
		display:flex!important;
		flex-direction:row!important;
		flex-wrap:nowrap!important;
		align-items:flex-start!important;
		justify-content:center!important;
		gap:4px!important;
		width:auto!important;
		max-width:100%!important;
		padding:0!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor-scenes > button{
		flex:0 0 40px!important;
		width:40px!important;
		min-width:40px!important;
		gap:2px!important;
	}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{
		width:40px!important;
		height:29px!important;
		border-radius:7px!important;
	}
	.pfc-mobile-photo-editor-scenes small{
		font-size:7px!important;
		line-height:1!important;
		max-width:40px!important;
		overflow:hidden!important;
		text-overflow:ellipsis!important;
		white-space:nowrap!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar:not([hidden]){
		left:50%!important;
		right:auto!important;
		top:auto!important;
		bottom:calc(100% + 7px)!important;
		transform:translateX(-50%)!important;
		display:flex!important;
		flex-direction:row!important;
		flex-wrap:nowrap!important;
		gap:4px!important;
		z-index:22!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover:not([hidden]){
		left:50%!important;
		right:auto!important;
		top:auto!important;
		bottom:calc(100% + 50px)!important;
		transform:translateX(-50%)!important;
		width:min(230px,30vw)!important;
		z-index:23!important;
	}
}


/* v0.3.142 – mobil landscape: svislé ovládání a svislé náhledy vedle fotografie.
 * Vlevo zůstává maximálně velký rám. Vpravo jsou dva úzké svislé sloupce:
 * editační nástroje + náhledy prostředí. Portrait a desktop se nemění. */
@media(min-width:721px) and (max-width:980px) and (orientation:landscape){
	.pfc-mobile-photo-editor:not([hidden]){
		grid-template-columns:minmax(0,1fr) clamp(118px,18vw,154px)!important;
		column-gap:6px!important;
	}
	.pfc-mobile-photo-editor__header{
		width:clamp(118px,18vw,154px)!important;
		grid-template-columns:30px minmax(0,1fr) 34px!important;
		height:38px!important;
		min-height:38px!important;
	}
	.pfc-mobile-photo-editor__quality{
		transform:scale(.78)!important;
		transform-origin:center top!important;
	}
	.pfc-mobile-photo-editor__close{
		width:32px!important;
		height:32px!important;
		font-size:24px!important;
	}
	.pfc-mobile-photo-editor__stage{
		padding:4px 2px!important;
	}
	.pfc-mobile-photo-editor__footer{
		grid-column:2!important;
		grid-row:1!important;
		display:grid!important;
		grid-template-columns:38px 58px!important;
		grid-template-rows:minmax(0,1fr)!important;
		align-items:center!important;
		justify-content:center!important;
		column-gap:7px!important;
		width:100%!important;
		height:100%!important;
		padding:42px 2px 5px!important;
		box-sizing:border-box!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){
		position:relative!important;
		left:auto!important;
		right:auto!important;
		top:auto!important;
		bottom:auto!important;
		transform:none!important;
		grid-column:1!important;
		grid-row:1!important;
		display:flex!important;
		flex-direction:column!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		justify-content:center!important;
		gap:2px!important;
		width:36px!important;
		max-width:36px!important;
		padding:4px 3px!important;
		border:1px solid rgba(255,255,255,.68)!important;
		border-radius:18px!important;
		background:rgba(35,31,28,.88)!important;
		box-shadow:0 3px 16px rgba(0,0,0,.34)!important;
		white-space:normal!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button{
		width:28px!important;
		height:28px!important;
		min-width:28px!important;
		min-height:28px!important;
		flex:0 0 28px!important;
		padding:0!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > strong{
		width:28px!important;
		min-width:28px!important;
		height:22px!important;
		min-height:22px!important;
		flex:0 0 22px!important;
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
		font-size:8px!important;
		line-height:1!important;
		text-align:center!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button svg{
		width:15px!important;
		height:15px!important;
	}
	.pfc-mobile-photo-editor-scenes:not([hidden]){
		grid-column:2!important;
		grid-row:1!important;
		display:flex!important;
		flex-direction:column!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		justify-content:center!important;
		gap:3px!important;
		width:56px!important;
		max-width:56px!important;
		padding:0!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor-scenes > button{
		flex:0 0 auto!important;
		width:54px!important;
		min-width:54px!important;
		max-width:54px!important;
		gap:1px!important;
	}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{
		width:52px!important;
		height:29px!important;
		border-radius:7px!important;
	}
	.pfc-mobile-photo-editor-scenes small{
		font-size:7px!important;
		line-height:1!important;
		max-width:54px!important;
		overflow:hidden!important;
		text-overflow:ellipsis!important;
		white-space:nowrap!important;
	}
	/* Rozšířené nástroje se otevřou jako další svislý pás vlevo od základních ikon. */
	.pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar:not([hidden]){
		left:auto!important;
		right:calc(100% + 6px)!important;
		top:50%!important;
		bottom:auto!important;
		transform:translateY(-50%)!important;
		display:flex!important;
		flex-direction:column!important;
		flex-wrap:nowrap!important;
		gap:3px!important;
		padding:4px!important;
		z-index:22!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar > button{
		width:28px!important;
		height:28px!important;
		min-width:28px!important;
		min-height:28px!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover:not([hidden]){
		left:auto!important;
		right:calc(100% + 46px)!important;
		top:50%!important;
		bottom:auto!important;
		transform:translateY(-50%)!important;
		width:min(210px,34vw)!important;
		z-index:23!important;
	}
}


/* v0.3.143 – mobil landscape: pořadí zleva = informace / fotografie / náhledy / nástroje.
 * Náhledy jsou bezprostředně vpravo od fotografie, editační ikony až za nimi.
 * Velikost + DPI jsou vlevo od fotografie, otočené o 90° a lépe čitelné. */
@media(max-width:980px) and (orientation:landscape){
	.pfc-mobile-photo-editor:not([hidden]){
		display:grid!important;
		grid-template-columns:52px minmax(0,1fr) 104px!important;
		grid-template-rows:minmax(0,1fr)!important;
		column-gap:4px!important;
		padding:max(5px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))!important;
	}
	/* Header se v landscape neroztahuje nad pravým panelem; jeho děti jsou součástí hlavního gridu. */
	.pfc-mobile-photo-editor__header{
		display:contents!important;
		position:static!important;
		width:auto!important;
		height:auto!important;
		min-height:0!important;
		padding:0!important;
	}
	.pfc-mobile-photo-editor__quality{
		grid-column:1!important;
		grid-row:1!important;
		align-self:center!important;
		justify-self:center!important;
		display:flex!important;
		flex-direction:row!important;
		align-items:center!important;
		justify-content:center!important;
		gap:7px!important;
		width:max-content!important;
		max-width:none!important;
		text-align:center!important;
		transform:rotate(-90deg)!important;
		transform-origin:center center!important;
		z-index:14!important;
	}
	.pfc-mobile-photo-editor__size{
		min-width:76px!important;
		min-height:35px!important;
		padding:6px 11px!important;
		font-size:15px!important;
		font-weight:900!important;
		line-height:1!important;
		white-space:nowrap!important;
	}
	.pfc-mobile-photo-editor__dpi{
		font-size:12.5px!important;
		font-weight:900!important;
		line-height:1!important;
		white-space:nowrap!important;
	}
	.pfc-mobile-photo-editor__close{
		position:absolute!important;
		top:max(6px,env(safe-area-inset-top))!important;
		right:max(8px,env(safe-area-inset-right))!important;
		width:34px!important;
		height:34px!important;
		font-size:25px!important;
		z-index:30!important;
	}
	.pfc-mobile-photo-editor__stage{
		grid-column:2!important;
		grid-row:1!important;
		min-width:0!important;
		min-height:0!important;
		width:100%!important;
		height:100%!important;
		padding:4px 2px!important;
		align-items:center!important;
		justify-content:center!important;
		overflow:hidden!important;
	}
	.pfc-mobile-photo-editor__footer{
		grid-column:3!important;
		grid-row:1!important;
		position:relative!important;
		display:grid!important;
		grid-template-columns:58px 38px!important;
		grid-template-rows:minmax(0,1fr)!important;
		align-items:center!important;
		justify-content:start!important;
		column-gap:5px!important;
		width:104px!important;
		height:100%!important;
		min-width:104px!important;
		min-height:0!important;
		padding:40px 0 4px!important;
		margin:0!important;
		box-sizing:border-box!important;
		overflow:visible!important;
	}
	/* Náhledy jsou první – tedy opravdu hned vedle hlavní fotografie. */
	.pfc-mobile-photo-editor-scenes:not([hidden]){
		grid-column:1!important;
		grid-row:1!important;
		display:flex!important;
		flex-direction:column!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		justify-content:center!important;
		gap:3px!important;
		width:58px!important;
		max-width:58px!important;
		padding:0!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor-scenes > button{
		flex:0 0 auto!important;
		width:56px!important;
		min-width:56px!important;
		max-width:56px!important;
		gap:1px!important;
	}
	.pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{
		width:54px!important;
		height:30px!important;
		border-radius:7px!important;
	}
	.pfc-mobile-photo-editor-scenes small{
		font-size:7.5px!important;
		line-height:1!important;
		max-width:56px!important;
		overflow:hidden!important;
		text-overflow:ellipsis!important;
		white-space:nowrap!important;
	}
	/* Editační nástroje jsou druhý, pravý svislý sloupec. */
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){
		grid-column:2!important;
		grid-row:1!important;
		position:relative!important;
		left:auto!important;
		right:auto!important;
		top:auto!important;
		bottom:auto!important;
		transform:none!important;
		display:flex!important;
		flex-direction:column!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		justify-content:center!important;
		gap:2px!important;
		width:36px!important;
		max-width:36px!important;
		padding:4px 3px!important;
		border:1px solid rgba(255,255,255,.68)!important;
		border-radius:18px!important;
		background:rgba(35,31,28,.88)!important;
		box-shadow:0 3px 16px rgba(0,0,0,.34)!important;
		white-space:normal!important;
		overflow:visible!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button{
		width:28px!important;
		height:28px!important;
		min-width:28px!important;
		min-height:28px!important;
		flex:0 0 28px!important;
		padding:0!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > strong{
		width:28px!important;
		min-width:28px!important;
		height:22px!important;
		min-height:22px!important;
		flex:0 0 22px!important;
		display:flex!important;
		align-items:center!important;
		justify-content:center!important;
		font-size:8px!important;
		line-height:1!important;
		text-align:center!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button svg{
		width:15px!important;
		height:15px!important;
	}
	/* Rozšířené nástroje se vysunou doleva od sloupce náhledů a nepřeskupí layout. */
	.pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar:not([hidden]){
		left:auto!important;
		right:calc(100% + 7px)!important;
		top:50%!important;
		bottom:auto!important;
		transform:translateY(-50%)!important;
		display:flex!important;
		flex-direction:column!important;
		flex-wrap:nowrap!important;
		gap:3px!important;
		padding:4px!important;
		z-index:32!important;
	}
	.pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover:not([hidden]){
		left:auto!important;
		right:calc(100% + 49px)!important;
		top:50%!important;
		bottom:auto!important;
		transform:translateY(-50%)!important;
		width:min(210px,34vw)!important;
		z-index:33!important;
	}
}


/* v0.3.144 – pouze mobil landscape: 5mm rozestupy a fyzicky přesný 18mm rám. */
@media(max-width:980px) and (orientation:landscape){
	.pfc-mobile-photo-editor:not([hidden]){
		/* cca 5 mm mezi skutečným okrajem rámu a náhledy */
		grid-template-columns:52px minmax(0,1fr) 115px!important;
		column-gap:19px!important;
	}
	.pfc-mobile-photo-editor__stage{
		/* Rám přisuneme k pravému okraji své plochy, takže 19px mezera začíná
		 * skutečně až za rámem, ne za nevyužitou částí stage. */
		justify-content:flex-end!important;
		padding-left:2px!important;
		padding-right:0!important;
	}
	.pfc-mobile-photo-editor__footer{
		/* náhledy 58 px + cca 5 mm + sloupec nástrojů 38 px */
		grid-template-columns:58px 38px!important;
		column-gap:19px!important;
		width:115px!important;
		min-width:115px!important;
	}
}


/* v0.3.145 – pouze mobil landscape fullscreen.
 * Hlavní rám je skutečně uprostřed telefonu. Pravý panel jeho pozici ani velikost
 * neovlivňuje: náhledy začínají cca 5 mm od pravého okraje rámu a editační ikony
 * dalších cca 5 mm za náhledy. */
@media(max-width:980px) and (orientation:landscape){
    .pfc-mobile-photo-editor:not([hidden]){
        position:fixed!important;
        inset:0!important;
        display:block!important;
        padding:0!important;
        overflow:hidden!important;
        --pfc-mobile-landscape-frame-half:120px;
    }
    .pfc-mobile-photo-editor__stage{
        position:absolute!important;
        inset:0!important;
        width:100%!important;
        height:100%!important;
        min-width:0!important;
        min-height:0!important;
        padding:0!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        overflow:hidden!important;
        z-index:2!important;
    }
    .pfc-mobile-photo-editor__stage .pfc-frame{
        flex:0 0 auto!important;
        margin:0!important;
        max-width:none!important;
        max-height:none!important;
    }
    .pfc-mobile-photo-editor__header{
        display:contents!important;
    }
    .pfc-mobile-photo-editor__quality{
        position:absolute!important;
        left:calc(50% - var(--pfc-mobile-landscape-frame-half) - 5mm)!important;
        top:50%!important;
        width:max-content!important;
        max-width:none!important;
        transform:translate(-100%,-50%) rotate(-90deg)!important;
        transform-origin:center center!important;
        z-index:20!important;
    }
    .pfc-mobile-photo-editor__close{
        position:absolute!important;
        top:max(6px,env(safe-area-inset-top))!important;
        right:max(8px,env(safe-area-inset-right))!important;
        z-index:40!important;
    }
    .pfc-mobile-photo-editor__footer{
        position:absolute!important;
        left:calc(50% + var(--pfc-mobile-landscape-frame-half) + 5mm)!important;
        top:50%!important;
        width:auto!important;
        min-width:0!important;
        height:auto!important;
        min-height:0!important;
        padding:0!important;
        margin:0!important;
        transform:translateY(-50%)!important;
        display:grid!important;
        grid-template-columns:58px 38px!important;
        grid-template-rows:auto!important;
        column-gap:5mm!important;
        align-items:center!important;
        justify-content:start!important;
        overflow:visible!important;
        z-index:22!important;
    }
    .pfc-mobile-photo-editor-scenes:not([hidden]){
        grid-column:1!important;
        grid-row:1!important;
        display:flex!important;
        flex-direction:column!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
        justify-content:center!important;
        gap:3px!important;
        width:58px!important;
        max-width:58px!important;
        padding:0!important;
        margin:0!important;
        overflow:visible!important;
    }
    .pfc-mobile-photo-editor-scenes > button{
        flex:0 0 auto!important;
        width:56px!important;
        min-width:56px!important;
        max-width:56px!important;
    }
    .pfc-mobile-photo-editor-scenes .pfc-room-scene-thumb{
        width:54px!important;
        height:30px!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar:not([hidden]){
        grid-column:2!important;
        grid-row:1!important;
        position:relative!important;
        left:auto!important;
        right:auto!important;
        top:auto!important;
        bottom:auto!important;
        transform:none!important;
        display:flex!important;
        flex-direction:column!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
        justify-content:center!important;
        gap:2px!important;
        width:36px!important;
        max-width:36px!important;
        margin:0!important;
        padding:4px 3px!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > button{
        width:28px!important;
        height:28px!important;
        min-width:28px!important;
        min-height:28px!important;
        flex:0 0 28px!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > strong{
        width:28px!important;
        min-width:28px!important;
        height:22px!important;
        min-height:22px!important;
        flex:0 0 22px!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar:not([hidden]){
        left:auto!important;
        right:calc(100% + 5mm)!important;
        top:50%!important;
        bottom:auto!important;
        transform:translateY(-50%)!important;
        flex-direction:column!important;
        z-index:34!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover:not([hidden]){
        left:auto!important;
        right:calc(100% + 18mm)!important;
        top:50%!important;
        bottom:auto!important;
        transform:translateY(-50%)!important;
        z-index:35!important;
    }
}

/* v0.3.150 – mobil landscape fullscreen: rozšířené úpravy jsou další svislý
 * sloupec napravo od základních ikon; Jas/Kontrast používají další svislý jezdec. */
@media(max-width:980px) and (orientation:landscape){
    /* Základní sloupec zůstává beze změny; rozšířené nástroje se pouze vysunou doprava. */
    .pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar:not([hidden]){
        position:absolute!important;
        left:calc(100% + 5mm)!important;
        right:auto!important;
        top:50%!important;
        bottom:auto!important;
        transform:translateY(-50%)!important;
        display:flex!important;
        flex-direction:column!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
        justify-content:center!important;
        gap:3px!important;
        width:36px!important;
        min-width:36px!important;
        max-width:36px!important;
        height:auto!important;
        max-height:calc(100dvh - 12px)!important;
        margin:0!important;
        padding:4px 3px!important;
        border-radius:999px!important;
        overflow:visible!important;
        z-index:34!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar > button{
        display:grid!important;
        place-items:center!important;
        width:28px!important;
        height:28px!important;
        min-width:28px!important;
        min-height:28px!important;
        max-width:28px!important;
        max-height:28px!important;
        flex:0 0 28px!important;
        margin:0!important;
        padding:0!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-advanced-toolbar > button svg{
        width:15px!important;
        height:15px!important;
        display:block!important;
        fill:currentColor!important;
    }

    /* Jas / kontrast: třetí svislý sloupec, opět bez změny velikosti hlavního layoutu. */
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover:not([hidden]){
        position:absolute!important;
        left:calc(100% + 10mm + 36px)!important;
        right:auto!important;
        top:50%!important;
        bottom:auto!important;
        transform:translateY(-50%)!important;
        display:flex!important;
        flex-direction:column!important;
        align-items:center!important;
        justify-content:center!important;
        gap:3px!important;
        width:40px!important;
        min-width:40px!important;
        max-width:40px!important;
        height:196px!important;
        min-height:196px!important;
        max-height:calc(100dvh - 12px)!important;
        padding:6px 4px!important;
        border-radius:999px!important;
        box-sizing:border-box!important;
        overflow:visible!important;
        z-index:35!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover > .pfc-mobile-adjust-sign:first-of-type{
        order:3!important; /* minus dole */
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover > .pfc-mobile-adjust-sign:nth-of-type(2){
        order:1!important; /* plus nahoře */
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover .pfc-mobile-adjust-track{
        order:2!important;
        position:relative!important;
        display:block!important;
        flex:1 1 auto!important;
        width:28px!important;
        min-width:28px!important;
        height:128px!important;
        min-height:100px!important;
        margin:0!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover input[type="range"]{
        position:absolute!important;
        left:50%!important;
        top:50%!important;
        width:124px!important;
        min-width:124px!important;
        height:28px!important;
        margin:0!important;
        padding:0!important;
        transform:translate(-50%,-50%) rotate(-90deg)!important;
        transform-origin:center center!important;
        touch-action:none!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover .pfc-mobile-adjust-zero{
        left:50%!important;
        top:50%!important;
        width:10px!important;
        height:2px!important;
        transform:translate(-50%,-50%)!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover .pfc-mobile-adjust-sign{
        display:grid!important;
        place-items:center!important;
        width:22px!important;
        min-width:22px!important;
        height:16px!important;
        min-height:16px!important;
        flex:0 0 16px!important;
        font-size:14px!important;
        line-height:1!important;
    }
    .pfc-mobile-photo-editor__footer .pfc-mobile-adjust-popover output{
        order:4!important;
        width:30px!important;
        min-width:30px!important;
        height:13px!important;
        min-height:13px!important;
        flex:0 0 13px!important;
        margin:0!important;
        font-size:8px!important;
        line-height:13px!important;
        text-align:center!important;
    }
}


/* v0.3.151 – mobil landscape fullscreen: celý pracovní cluster (rám + náhledy + nástroje
 * + rozšířené nástroje + jas/kontrast) je posunutý doleva. DPI/velikost vlevo zůstává
 * na původním místě. Tím zůstává svislý jezdec bezpečně uvnitř obrazovky. */
@media(max-width:980px) and (orientation:landscape){
    .pfc-mobile-photo-editor:not([hidden]){
        --pfc-mobile-landscape-cluster-shift:14mm;
    }
    /* Hlavní rám už nemusí být geometricky přesně ve středu telefonu – celý pracovní
       celek je vyvážený i s pravými nástroji. */
    .pfc-mobile-photo-editor__stage{
        transform:translateX(calc(-1 * var(--pfc-mobile-landscape-cluster-shift)))!important;
    }
    /* Náhledy zůstanou cca 5 mm od skutečného pravého okraje rámu a vezmou stejný posun. */
    .pfc-mobile-photo-editor__footer{
        left:calc(50% + var(--pfc-mobile-landscape-frame-half) + 5mm - var(--pfc-mobile-landscape-cluster-shift))!important;
    }
    /* Informaci velikost/DPI neposouváme – zůstává na levé straně jako dosud. */
    .pfc-mobile-photo-editor__quality{
        left:calc(50% - var(--pfc-mobile-landscape-frame-half) - 5mm)!important;
    }
}

/* v0.3.155 – stabilní fullscreen z v0.3.152; plugin nevykresluje žádnou spodní fullscreen nápovědu. */
@media(max-width:980px){
  .pfc-room-fullscreen-hint,[data-room-fullscreen-hint]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
}


/* v0.3.158 – mobilní fullscreen: pás náhledů se při přepínání scén neposouvá doleva.
 * Všechny dostupné miniatury jsou pořád vycentrované; skrývá se jen Na stole
 * u formátů, které tuto scénu nepodporují. */
@media(max-width:980px){
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes:not([hidden]){
        justify-content:center!important;
    }
    .pfc-mobile-photo-editor-scenes:not([hidden]){
        justify-content:center!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
}

/* Náhled zákazníkovy fotografie v klasickém i blokovém/mini košíku. */
.pfc-cart-thumbnail,
.pfc-block-cart-thumbnail{
    display:block;
    width:72px;
    height:72px;
    max-width:72px;
    max-height:72px;
    object-fit:cover;
    border-radius:5px;
}

/* v0.3.165 – košík: i náhrada produktového obrázku musí být na mobilu výrazně větší,
 * jinak zákazník svůj motiv prakticky nepozná. */
@media(max-width:980px){
    .pfc-cart-thumbnail,
    .pfc-block-cart-thumbnail{
        width:min(150px,40vw)!important;
        height:auto!important;
        max-width:min(150px,40vw)!important;
        max-height:190px!important;
        aspect-ratio:auto!important;
        object-fit:contain!important;
        border-radius:8px!important;
        background:#f5f2ee!important;
        box-shadow:0 2px 10px rgba(0,0,0,.16)!important;
    }
    .pfc-block-cart-thumbnail-fallback{display:block!important;width:100%!important;text-align:center!important;}
}


/* v0.3.158 – poslední mobilní UX doladění. */
.pfc-empty-mobile-icon{display:none;}
.pfc-cart-inline-preview{display:none;}
@media(max-width:980px){
    /* Úvod bez fotografie: dvě jednoznačné ikonové volby vedle sebe a vyšší karta,
       aby se vešel celý text o pokračování na PC. */
    .pfc-app.is-empty .pfc-photo-window{
        aspect-ratio:auto!important;
        min-height:min(470px,72dvh)!important;
        overflow:hidden!important;
    }
    .pfc-app.is-empty .pfc-empty{
        align-content:center!important;
        justify-items:center!important;
    }
    .pfc-app.is-empty .pfc-empty-upload{
        display:inline-grid!important;
        place-items:center!important;
        width:64px!important;
        height:64px!important;
        min-width:64px!important;
        min-height:64px!important;
        padding:0!important;
        margin:2px 5px!important;
        border-radius:50%!important;
        vertical-align:middle!important;
    }
    .pfc-app.is-empty .pfc-empty-upload.pfc-mobile-camera,
    .pfc-app.is-empty .pfc-empty-upload.pfc-empty-file{display:inline-grid!important;}
    .pfc-app.is-empty .pfc-empty-upload .pfc-label-mobile{display:none!important;}
    .pfc-app.is-empty .pfc-empty-mobile-icon{display:grid!important;place-items:center!important;width:30px;height:30px;}
    .pfc-app.is-empty .pfc-empty-mobile-icon svg{display:block;width:30px;height:30px;fill:currentColor;}
    .pfc-app.is-empty .pfc-mobile-desktop-note{
        width:min(330px,96%)!important;
        margin-top:12px!important;
        padding-top:11px!important;
    }
    .pfc-app.is-empty .pfc-mobile-desktop-note strong{font-size:11px!important;}
    .pfc-app.is-empty .pfc-mobile-desktop-note span{font-size:10px!important;line-height:1.4!important;}

    /* Mobilní spodní objednávková lišta: mezikrok „Vyřadit z objednávky“ je skrytý.
       Odebrání je dostupné v galerii fotografií a následně v košíku. */
    .pfc-app.has-photos .pfc-order-summary>.pfc-active-order-control{display:none!important;}
    .pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary{
        grid-template-columns:minmax(94px,.44fr) minmax(160px,1fr)!important;
        gap:8px!important;
    }
    .pfc-app.has-photos .pfc-editor-controls>.pfc-order-summary .pfc-add-button{
        min-width:0!important;
        width:100%!important;
    }

    /* Ložnice: rámeček o něco výš a cca 5 mm doprava v běžném mobilním náhledu. */
    .pfc-room-stage.is-bedroom:not(.is-mobile-fullscreen) .pfc-scene-frame{
        left:56.5%!important;
        top:17.5%!important;
    }

    /* Velký náhled používá stejné jednoduché piktogramy jako malý náhled. */
    .pfc-mobile-scene-icons:not([hidden]){
        justify-content:center!important;
    }
    .pfc-mobile-scene-icons > button{
        display:grid!important;
        place-items:center!important;
        box-sizing:border-box!important;
        width:48px!important;
        min-width:48px!important;
        max-width:48px!important;
        height:48px!important;
        min-height:48px!important;
        flex:0 0 48px!important;
        padding:0!important;
        border-radius:50%!important;
    }
    .pfc-mobile-scene-icons > button[hidden]{display:none!important;}
    .pfc-mobile-scene-icons .pfc-mobile-scene-icon{
        display:grid!important;
        place-items:center!important;
        width:26px!important;
        height:26px!important;
    }
    .pfc-mobile-scene-icons .pfc-mobile-scene-icon svg{
        display:block!important;
        width:25px!important;
        height:25px!important;
        fill:currentColor!important;
    }
    .pfc-mobile-scene-icons small{display:none!important;}
    .pfc-room-stage.is-mobile-fullscreen .pfc-room-fullscreen-scenes:not([hidden]){
        left:50%!important;
        right:auto!important;
        width:max-content!important;
        max-width:calc(100vw - 24px)!important;
        transform:translateX(-50%)!important;
        justify-content:center!important;
        gap:8px!important;
        padding:6px 8px!important;
        overflow-x:auto!important;
    }
    .pfc-mobile-photo-editor-scenes:not([hidden]){
        width:max-content!important;
        max-width:calc(100vw - 24px)!important;
        gap:8px!important;
        justify-content:center!important;
    }

    /* Mobilní košík: skutečný náhled fotografie je součástí řádku Fotografie,
       i když šablona standardní WooCommerce thumbnail schová. */
    .pfc-cart-inline-preview{
        display:block!important;
        margin-top:8px!important;
    }
    .pfc-cart-inline-preview img{
        display:block!important;
        width:auto!important;
        height:auto!important;
        max-width:96px!important;
        max-height:118px!important;
        object-fit:contain!important;
        border-radius:6px!important;
        box-shadow:0 1px 5px rgba(0,0,0,.14)!important;
        background:#f3f1ee!important;
    }
}
@media(max-width:720px) and (max-height:620px){
    .pfc-app.is-empty .pfc-photo-window{min-height:390px!important;}
    .pfc-app.is-empty .pfc-empty-upload{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;}
    .pfc-app.is-empty .pfc-empty-mobile-icon svg{width:26px!important;height:26px!important;}
}


/* v0.3.162 – oprava finálního mobilního doladění z v0.3.158. */
.pfc-mobile-empty-actions{display:contents;}
.pfc-cart-large-preview{display:none;}

@media(max-width:980px){
    /* Úvod: foťák + složka skutečně vedle sebe, obě stejně neutrální. */
    .pfc-app.is-empty .pfc-mobile-empty-actions{
        display:flex!important;
        flex-direction:row!important;
        align-items:center!important;
        justify-content:center!important;
        gap:14px!important;
        width:100%!important;
        margin:2px 0 3px!important;
    }
    .pfc-app.is-empty .pfc-mobile-empty-actions .pfc-empty-upload{
        margin:0!important;
        flex:0 0 64px!important;
    }
    .pfc-app.is-empty .pfc-empty-upload.pfc-mobile-camera,
    .pfc-app.is-empty .pfc-empty-upload.pfc-empty-file{
        background:#fff!important;
        color:#302b27!important;
        border:1px solid #d8d1c8!important;
        box-shadow:0 5px 15px rgba(42,34,28,.10)!important;
    }
    .pfc-app.is-empty .pfc-empty-upload.pfc-mobile-camera:active,
    .pfc-app.is-empty .pfc-empty-upload.pfc-empty-file:active{
        background:#f3efe9!important;
    }
    .pfc-app.is-empty .pfc-photo-window{
        min-height:min(500px,76dvh)!important;
    }
    .pfc-app.is-empty .pfc-mobile-desktop-note{
        flex-shrink:0!important;
        margin-bottom:2px!important;
    }

    /* Ložnice: ještě cca 5 mm výš. Fullscreen si tuto polohu přebírá přes uložený anchor. */
    .pfc-room-stage.is-bedroom:not(.is-mobile-fullscreen) .pfc-scene-frame{
        left:56.5%!important;
        top:calc(17.5% - 5mm)!important;
    }

    /* Košík: náhled jako samostatný, výrazný a čitelný blok. */
    .pfc-cart-inline-preview{display:none!important;}
    .pfc-cart-large-preview{
        display:flex!important;
        width:100%!important;
        margin:7px 0 12px!important;
        justify-content:center!important;
        align-items:center!important;
    }
    .pfc-cart-large-preview img{
        display:block!important;
        width:auto!important;
        height:auto!important;
        max-width:min(220px,72vw)!important;
        max-height:220px!important;
        object-fit:contain!important;
        border-radius:8px!important;
        background:#f5f2ee!important;
        box-shadow:0 2px 10px rgba(0,0,0,.16)!important;
    }
    dl.variation dt:has(+ dd .pfc-cart-large-preview){
        display:block!important;
        float:none!important;
        width:100%!important;
        max-width:100%!important;
        clear:both!important;
        padding-top:9px!important;
        text-align:left!important;
    }
    dl.variation dd:has(.pfc-cart-large-preview){
        display:block!important;
        float:none!important;
        width:100%!important;
        max-width:100%!important;
        clear:both!important;
        margin:0!important;
        padding:0!important;
        text-align:center!important;
    }
}

@media(max-width:720px) and (max-height:620px){
    .pfc-app.is-empty .pfc-mobile-empty-actions{gap:12px!important;}
    .pfc-app.is-empty .pfc-mobile-empty-actions .pfc-empty-upload{flex-basis:56px!important;}
}


/* v0.3.162 – mobilní finální doladění úvodu a Ložnice. */
@media(max-width:980px){
    /* Úvod: obě volby stejně výrazné – černý podklad, bílý piktogram. */
    .pfc-app.is-empty .pfc-empty-upload.pfc-mobile-camera,
    .pfc-app.is-empty .pfc-empty-upload.pfc-empty-file{
        background:#1f1f1f!important;
        color:#fff!important;
        border-color:#1f1f1f!important;
        box-shadow:0 5px 15px rgba(0,0,0,.18)!important;
    }
    .pfc-app.is-empty .pfc-empty-upload.pfc-mobile-camera svg,
    .pfc-app.is-empty .pfc-empty-upload.pfc-empty-file svg{
        fill:currentColor!important;
        color:#fff!important;
    }
    .pfc-app.is-empty .pfc-empty-upload.pfc-mobile-camera:active,
    .pfc-app.is-empty .pfc-empty-upload.pfc-empty-file:active{
        background:#343434!important;
    }
}

/* Ve fullscreen Ložnici na výšku posunout stejným směrem pozadí i rámeček.
 * Rámeček dostává svůj 10mm posun v JS přes applyPresetSceneAnchor(). */
@media(max-width:980px) and (orientation:portrait){
    .pfc-room-stage.is-mobile-fullscreen.is-bedroom{
        background-position:calc(50% - 10mm) center!important;
    }
}


/* v0.3.162 – mobilní košík: výrazný náhled fotografie, aby zákazník jasně viděl objednávaný motiv. */
@media(max-width:980px){
    .pfc-cart-large-preview{
        margin:10px 0 16px!important;
        padding:8px 0!important;
    }
    .pfc-cart-large-preview img{
        width:min(320px,82vw)!important;
        max-width:min(320px,82vw)!important;
        height:auto!important;
        max-height:360px!important;
        object-fit:contain!important;
        border-radius:10px!important;
        box-shadow:0 3px 14px rgba(0,0,0,.18)!important;
    }
}


/* v0.3.162 – mobil: Ložnice jen o cca 2 mm doleva; fullscreen si stejnou
 * polohu převezme přes preset anchor. */
@media(max-width:980px){
    .pfc-room-stage.is-bedroom:not(.is-mobile-fullscreen) .pfc-scene-frame{
        left:calc(56.5% - 2mm)!important;
    }
}

/* v0.3.164 – mobilní Ložnice v malém náhledu: po testu vracíme obraz
 * přibližně o 10 mm výš, aby už nezasahoval do postele. */
@media(max-width:980px){
    .pfc-room-stage.is-bedroom:not(.is-mobile-fullscreen) .pfc-scene-frame{
        left:calc(56.5% - 2mm)!important;
        top:calc(17.5% - 5mm)!important;
    }
}

/* v0.3.164 – mobilní fullscreen Ložnice na šířku:
 * posuneme celý výřez místnosti i rámeček cca o 20 mm dolů,
 * aby se u vyšších formátů (A3/A3+) nahoře nic neuřízlo. */
@media(max-width:980px) and (orientation:landscape){
    .pfc-room-stage.is-mobile-fullscreen.is-bedroom{
        background-position:center calc(50% + 20mm)!important;
    }
}

/* v0.3.166 – mobilní klasický WooCommerce košík:
 * náhled v řádku „Náhled“ má skutečných cca 3–4 cm. Předchozí široký
 * obrázek byl uvnitř úzkého <dd> ořezán, takže byla vidět jen jeho část. */
@media(max-width:980px){
    dl.variation dt:has(+ dd .pfc-cart-large-preview){
        float:none!important;
        display:block!important;
        width:100%!important;
        max-width:none!important;
        clear:both!important;
        text-align:left!important;
    }
    dl.variation dd:has(.pfc-cart-large-preview){
        float:none!important;
        display:block!important;
        width:100%!important;
        max-width:none!important;
        clear:both!important;
        margin:6px 0 12px!important;
        padding:0!important;
        overflow:visible!important;
        text-align:left!important;
    }
    dl.variation dd .pfc-cart-large-preview{
        display:block!important;
        width:150px!important;
        max-width:150px!important;
        margin:0!important;
        padding:0!important;
        overflow:visible!important;
    }
    dl.variation dd .pfc-cart-large-preview img{
        display:block!important;
        width:150px!important;
        max-width:150px!important;
        height:auto!important;
        max-height:none!important;
        object-fit:contain!important;
        margin:0!important;
        border-radius:8px!important;
    }
}


/* v0.3.171 – pouze mobil: prázdná „Moje místnost“ ve velkém náhledu kopíruje
   jednoduché ovládání malého náhledu. Ostatní scény a jejich geometrie beze změny. */
@media(max-width:980px){
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-custom-room-empty:not([hidden]){
        display:block!important;
        z-index:2147483644!important;
        width:min(360px,82%)!important;
    }
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-custom-room-empty:not([hidden]) [data-room-upload],
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-custom-room-empty:not([hidden]) [data-room-camera]{
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:52px!important;
        height:52px!important;
        min-width:52px!important;
        min-height:52px!important;
        margin:0 5px!important;
        padding:0!important;
        border:1px solid rgba(255,255,255,.88)!important;
        border-radius:50%!important;
        background:rgba(255,255,255,.96)!important;
        color:#292725!important;
        box-shadow:0 4px 16px rgba(0,0,0,.22)!important;
        pointer-events:auto!important;
        touch-action:manipulation!important;
    }
    .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-custom-room-empty .pfc-room-empty-source-icon svg{
        display:block!important;
        width:25px!important;
        height:25px!important;
        fill:currentColor!important;
    }
    /* Při prázdné vlastní místnosti používáme tlačítka přímo v informační kartě;
       duplicitní dvojice pod běžným náhledem se ve fullscreen nezobrazuje. */
    body.pfc-room-fullscreen-open .pfc-mobile-custom-room-actions:not([hidden]){
        display:none!important;
    }
}


/* v0.3.176 – pouze mobil / fullscreen Moje místnost: kompaktní toolbar a změna místnosti */
@media(max-width:980px){
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar [data-room-fullscreen-transfer],
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar [data-room-fullscreen-toolbar-close]{display:none!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar .pfc-room-fullscreen-tool small{display:none!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar .pfc-room-fullscreen-tool{min-width:42px!important;width:42px!important;height:42px!important;min-height:42px!important;border-radius:50%!important;padding:0!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-room-actions:not([hidden]){left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;padding:8px 10px!important;border:0!important;background:rgba(15,15,15,.72)!important;border-radius:999px!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-room-actions .pfc-room-source-icon{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-room-actions .pfc-room-source-icon svg{width:23px!important;height:23px!important;fill:currentColor!important;}
}

/* v0.3.179 – pouze mobilní úvod bez fotografie: karta o kousek níž a čitelnější
 * doprovodné texty. Ostatní editor, místnosti a geometrie rámečků beze změny. */
@media(max-width:720px){
    .pfc-app.is-empty .pfc-empty{
        transform:translateY(8px)!important;
    }
    .pfc-app.is-empty .pfc-mobile-welcome-copy span{
        font-size:12px!important;
        line-height:1.42!important;
    }
    .pfc-app.is-empty .pfc-mobile-desktop-note strong{
        font-size:12px!important;
        line-height:1.3!important;
    }
    .pfc-app.is-empty .pfc-mobile-desktop-note span{
        font-size:11px!important;
        line-height:1.45!important;
    }
}


/* v0.3.180 – pouze mobilní úvod: bezpečný odstup od hlavičky, menu nad
 * konfigurátorem, bez nadbytečného obrázkového piktogramu a vycentrované zdroje. */
@media(max-width:720px){
    .pfc-app.is-empty{
        margin-top:18px!important;
        position:relative!important;
        z-index:0!important;
    }
    .pfc-app.is-empty .pfc-stage-card,
    .pfc-app.is-empty .pfc-preview-shell,
    .pfc-app.is-empty .pfc-frame{
        z-index:auto!important;
    }
    .pfc-app.is-empty .pfc-empty{
        transform:translateY(14px)!important;
    }
    .pfc-app.is-empty .pfc-upload-mark{
        display:none!important;
    }
    .pfc-app.is-empty .pfc-mobile-empty-actions{
        margin:10px 0 10px!important;
        align-items:center!important;
        justify-content:center!important;
    }
    .pfc-app.is-empty .pfc-mobile-welcome-copy{
        margin-bottom:2px!important;
    }
    .pfc-app.is-empty .pfc-mobile-desktop-note{
        margin-top:2px!important;
    }
    /* Běžné WordPress hlavičky musí při otevření navigace ležet nad konfigurátorem. */
    body:has(.pfc-app) #masthead,
    body:has(.pfc-app) .site-header,
    body:has(.pfc-app) header.site-header,
    body:has(.pfc-app) .wp-site-blocks > header{
        position:relative;
        z-index:100000!important;
    }
}

/* v0.3.181 – pouze mobilní Moje místnost: celý malý náhled + jedna řada ikon */
@media(max-width:980px){
  /* Malý náhled má stejnou stabilní výšku jako ostatní mobilní scény. */
  .pfc-room-stage.is-custom:not(.is-mobile-fullscreen){height:330px!important;min-height:330px!important;max-height:330px!important;}
  .pfc-room-stage.is-custom:not(.is-mobile-fullscreen) .pfc-custom-room-background:not([hidden]){object-fit:contain!important;object-position:center center!important;}

  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar:not([hidden]){
    left:6px!important;right:6px!important;transform:none!important;width:auto!important;max-width:none!important;
    justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;gap:4px!important;
    padding:5px 6px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;
  }
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar::-webkit-scrollbar{display:none!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar .pfc-room-fullscreen-tool{
    flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;
  }
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar .pfc-room-fullscreen-tool span{
    display:grid!important;place-items:center!important;font-size:18px!important;line-height:1!important;
  }
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar .pfc-room-fullscreen-tool svg{width:19px!important;height:19px!important;fill:currentColor!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar .pfc-room-fullscreen-tool:disabled{opacity:.32!important;}
  .pfc-room-stage.is-mobile-fullscreen.is-custom .pfc-room-fullscreen-toolbar .pfc-room-fullscreen-tool.is-active{background:#fff!important;color:#111!important;}

  .pfc-room-mobile-help:not([hidden]){
    display:block!important;position:fixed!important;left:12px!important;right:12px!important;bottom:62px!important;
    z-index:2147483647!important;padding:12px 38px 12px 13px!important;border-radius:12px!important;
    background:rgba(15,15,15,.92)!important;color:#fff!important;box-shadow:0 5px 22px rgba(0,0,0,.35)!important;
    font-size:11px!important;line-height:1.45!important;
  }
  .pfc-room-mobile-help strong{display:block!important;margin-bottom:4px!important;font-size:12px!important;}
  .pfc-room-mobile-help span{display:block!important;}
  .pfc-room-mobile-help button{position:absolute!important;right:7px!important;top:5px!important;width:30px!important;height:30px!important;border:0!important;background:transparent!important;color:#fff!important;font-size:22px!important;}
  .pfc-custom-room-frame.is-multi-selected{outline:2px solid rgba(255,255,255,.95)!important;outline-offset:3px!important;}
}
\n\n/* v0.3.182 – přesné kalibrační křížky A/B na mobilu i PC. */\n.pfc-room-calibration-point{\n  width:34px!important;height:34px!important;border:0!important;border-radius:0!important;\n  background:transparent!important;box-shadow:none!important;color:transparent!important;\n}\n.pfc-room-calibration-point::before,.pfc-room-calibration-point::after{\n  content:"";position:absolute;left:50%;top:50%;background:#c62828;\n  box-shadow:0 0 0 1px rgba(255,255,255,.92),0 1px 3px rgba(0,0,0,.35);\n  transform:translate(-50%,-50%);pointer-events:none;\n}\n.pfc-room-calibration-point::before{width:28px;height:2px;}\n.pfc-room-calibration-point::after{width:2px;height:28px;}\n\n/* v0.3.182 – pouze mobil: jedno pole vzdálenosti + jemné šipky místo numerické klávesnice. */\n@media(max-width:980px){\n  .pfc-room-fullscreen-room-actions{display:none!important;}\n  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-keypad{display:none!important;}\n  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-number{\n    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;\n  }\n  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-number input{\n    width:86px!important;min-height:34px!important;height:34px!important;padding:4px 7px!important;\n    font-size:17px!important;font-weight:900!important;border-radius:7px!important;cursor:text!important;\n  }\n  .pfc-room-calibration-steppers{display:grid!important;grid-template-rows:1fr 1fr;gap:2px;height:34px;}\n  .pfc-room-calibration-steppers button{\n    width:30px!important;min-width:30px!important;height:16px!important;min-height:16px!important;padding:0!important;\n    border:1px solid rgba(255,255,255,.25)!important;border-radius:4px!important;background:rgba(255,255,255,.13)!important;\n    color:#fff!important;font-size:9px!important;line-height:1!important;touch-action:manipulation!important;\n  }\n}\n@media(min-width:981px){.pfc-room-calibration-steppers{display:none!important;}}\n

/* v0.3.183 – přesný zaměřovací kříž kalibrace; průsečík je měřený bod. */
.pfc-room-calibration-point,
.pfc-room-stage.is-mobile-fullscreen .pfc-room-calibration-point,
.pfc-room-calibration-overlay .pfc-room-calibration-point{
  width:38px!important;height:38px!important;margin-left:-19px!important;margin-top:-19px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:transparent!important;font-size:0!important;overflow:visible!important;
}
.pfc-room-calibration-point::before,.pfc-room-calibration-point::after{
  content:""!important;position:absolute!important;left:50%!important;top:50%!important;
  margin:0!important;border:0!important;border-radius:0!important;background:#d50000!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.95),0 1px 2px rgba(0,0,0,.35)!important;
  transform:translate(-50%,-50%)!important;pointer-events:none!important;
}
.pfc-room-calibration-point::before{width:32px!important;height:2px!important;}
.pfc-room-calibration-point::after{width:2px!important;height:32px!important;}
@media(max-width:980px){
  .pfc-room-calibration-steppers button{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;}
}


/* v0.3.184 – kalibrace: přesná tenká úsečka střed A → střed B a jemné kříže. */
.pfc-room-calibration-line,
.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-line{
  height:1px!important;
  background:#d50000!important;
  box-shadow:0 0 0 .5px rgba(255,255,255,.9)!important;
  transform-origin:0 50%!important;
}
.pfc-room-calibration-point,
.pfc-room-stage.is-mobile-fullscreen .pfc-room-calibration-point,
.pfc-room-calibration-overlay .pfc-room-calibration-point,
.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-point{
  width:36px!important;height:36px!important;
  margin:0!important;
  transform:translate(-50%,-50%)!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  overflow:visible!important;
}
.pfc-room-calibration-point::before,.pfc-room-calibration-point::after,
.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-point::before,
.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-point::after{
  content:""!important;position:absolute!important;left:50%!important;top:50%!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:#d50000!important;box-shadow:0 0 0 .5px rgba(255,255,255,.9)!important;
  transform:translate(-50%,-50%)!important;pointer-events:none!important;
}
.pfc-room-calibration-point::before,
.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-point::before{width:30px!important;height:1px!important;}
.pfc-room-calibration-point::after,
.pfc-stage-lightbox-v2__snapshot.is-custom-editor .pfc-room-calibration-point::after{width:1px!important;height:30px!important;}

/* v0.3.184 – mobil: kompaktní panel měřítka těsně nad hlavní lištou. */
@media(max-width:980px){
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe:not([hidden]){
    position:fixed!important;
    top:auto!important;
    left:6px!important;right:6px!important;
    bottom:calc(max(6px,env(safe-area-inset-bottom)) + 118px)!important;
    min-height:44px!important;
    padding:5px 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border-radius:10px!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > strong,
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > span,
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe .pfc-room-calibration-keypad{display:none!important;}
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > label{
    display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;
  }
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > div:last-child{
    display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;
  }
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > div:last-child button{
    width:auto!important;min-width:40px!important;height:34px!important;min-height:34px!important;
    padding:0 10px!important;font-size:12px!important;font-weight:900!important;border-radius:7px!important;
  }
  body > .pfc-room-fullscreen-calibration.is-pfc-keyboard-safe > div:last-child [data-room-fullscreen-calibration-cancel]{
    min-width:34px!important;width:34px!important;padding:0!important;font-size:20px!important;line-height:1!important;
    background:rgba(255,255,255,.10)!important;
  }
}

/* v0.3.185 – pouze přehledná nápověda mobilní a PC verze */
.pfc-help-items{list-style:none!important;margin:8px 0 0!important;padding:0!important;display:grid!important;gap:0!important;}
.pfc-help-items li{display:grid!important;grid-template-columns:minmax(112px,38%) minmax(0,1fr)!important;column-gap:10px!important;align-items:start!important;padding:7px 0!important;border-bottom:1px solid rgba(150,150,150,.24)!important;line-height:1.4!important;}
.pfc-help-items li:last-child{border-bottom:0!important;}
.pfc-help-items li b{font-weight:700!important;}
.pfc-help-items li span{display:block!important;min-width:0!important;}
.pfc-room-mobile-help:not([hidden]){max-height:min(72vh,550px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;}
.pfc-room-mobile-help .pfc-help-items{font-size:11px!important;}
.pfc-room-mobile-help .pfc-help-items li{grid-template-columns:minmax(94px,35%) minmax(0,1fr)!important;}
.pfc-desktop-room-help{position:relative;flex:0 0 auto;align-self:center;z-index:20;}
.pfc-desktop-room-help summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid #bdb7b0;border-radius:7px;font-weight:700;user-select:none;}
.pfc-desktop-room-help summary::-webkit-details-marker{display:none;}
.pfc-desktop-room-help-content{position:absolute;z-index:50;right:0;top:calc(100% + 8px);width:min(480px,85vw);padding:15px;background:#fff;color:#242424;border:1px solid #d4d0cb;border-radius:10px;box-shadow:0 8px 25px rgba(0,0,0,.18);font-size:12px;line-height:1.5;}
.pfc-desktop-room-help-content>strong{display:block;font-size:14px;margin-bottom:4px;}
@media(max-width:980px){.pfc-desktop-room-help{display:none!important;}}

/* v0.3.188 – výhradně PC: kontextová nápověda v liště úprav a ve vlastní místnosti. */
@media(min-width:981px){
 .pfc-desktop-edit-help{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;z-index:100;}
 .pfc-desktop-edit-help>summary{list-style:none;display:grid;place-items:center;cursor:pointer;width:34px;height:34px;border:1px solid #d9d2ca;border-radius:9px;background:#fff;color:#37322e;font-weight:800;font-size:17px;}
 .pfc-desktop-edit-help>summary::-webkit-details-marker{display:none;}
 .pfc-desktop-edit-help[open]>summary{background:#315e49;color:#fff;border-color:#315e49;}
 .pfc-desktop-edit-help-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(430px,88vw);max-height:60vh;overflow:auto;background:#fff;color:#25221f;border:1px solid #ddd4ca;border-radius:12px;padding:15px;box-shadow:0 12px 32px rgba(0,0,0,.24);z-index:110;text-align:left;line-height:1.45;}
 .pfc-desktop-edit-help-panel>strong{display:block;font-size:15px;margin-bottom:10px;}
 .pfc-desktop-edit-help-panel .pfc-help-items{margin:0;padding:0;list-style:none;}
 .pfc-desktop-edit-help-panel .pfc-help-items li{display:grid;grid-template-columns:minmax(128px,38%) 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #eee9e4;font-size:12px;}
 .pfc-desktop-edit-help-panel .pfc-help-items li:last-child{border:0;}
 .pfc-desktop-edit-help-panel .pfc-help-items b{font-weight:750;}
 .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-help>summary{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:white;}
 .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-help[open]>summary{background:#fff;color:#272320;}
 .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-edit-help-panel{top:auto;bottom:calc(100% + 12px);}
 .pfc-stage-lightbox-v2__room-main-tools .pfc-desktop-large-room-help>summary{border-radius:8px;}
 .pfc-stage-lightbox-v2__room-main-tools .pfc-desktop-large-room-help .pfc-desktop-edit-help-panel{top:auto;bottom:calc(100% + 10px);}
}
@media(max-width:980px){.pfc-desktop-edit-help{display:none!important;}}

/* v0.3.190 – PC help as separate layer; do not inherit editor overflow. */
@media(min-width:981px){
 .pfc-desktop-edit-help-panel.pfc-help-floating{
   display:block!important;position:fixed!important;z-index:2147483000!important;
   box-sizing:border-box!important;left:50vw!important;top:50vh!important;
   right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;
   width:var(--pfc-floating-help-width,470px)!important;max-width:calc(100vw - 32px)!important;
   max-height:min(77vh,700px)!important;overflow-y:auto!important;
   margin:0!important;background:#fff!important;color:#292521!important;
 }
 .pfc-desktop-edit-help-panel .pfc-help-items b{display:flex;align-items:center;gap:9px;}
 .pfc-desktop-edit-help-panel .pfc-help-icon{display:inline-grid;place-items:center;flex:0 0 21px;width:21px;min-width:21px;height:21px;color:#292521;font-size:19px;font-weight:750;}
 .pfc-desktop-edit-help-panel .pfc-help-icon svg{display:block;width:19px;height:19px;fill:currentColor;}
}

/* v0.3.194 – pouze PC: prostor pro celé rámy a rozbalené úpravy. */
@media (min-width:981px) {
    /* Výška editoru se musí řídit skutečnou výškou vybraného rámu.
       Nesmí se tak překrýt miniatury ani u vyšších formátů. */
    .pfc-app.has-photos .pfc-preview-panel[data-preview-panel="edit"] .pfc-preview-shell {
        height:auto!important;
        min-height:clamp(405px,58vh,590px)!important;
        padding-bottom:34px!important;
        overflow:visible!important;
    }
    .pfc-app.has-photos .pfc-stage-card > .pfc-desktop-photo-rail {
        margin-top:12px!important;
    }
    /* Při otevření dalších nástrojů / posuvníku vyhradit svislé místo
       uvnitř panelu, místo aby ovládání přetékalo přes objednávku. */
    .pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools:has(.pfc-desktop-advanced-toolbar:not([hidden])) {
        margin-bottom:54px!important;
    }
    .pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools:has(.pfc-desktop-adjust-popover:not([hidden])) {
        margin-bottom:104px!important;
    }
}

/* v0.3.195 – úpravy výhradně v PC verzi. */
@media (min-width:981px) {
    /* Jas/kontrast držet přímo pod druhou rozbalenou řadou nástrojů. */
    .pfc-desktop-advanced-toolbar > .pfc-desktop-adjust-popover:not([hidden]),
    .pfc-tool-content[data-tool-content="size"] > .pfc-size-edit-tools .pfc-desktop-advanced-toolbar > .pfc-desktop-adjust-popover:not([hidden]),
    .pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-advanced-toolbar > .pfc-desktop-adjust-popover:not([hidden]) {
        position:absolute!important;
        top:calc(100% + 6px)!important;
        bottom:auto!important;
        left:50%!important;
        transform:translateX(-50%)!important;
        z-index:99!important;
        margin:0!important;
    }
    .pfc-stage-lightbox-v2__photo-tools .pfc-lightbox-size-picker {
        position:relative;flex:0 0 auto;margin-left:5px;
    }
    .pfc-stage-lightbox-v2__photo-tools .pfc-lightbox-size-button {
        display:grid;place-items:center;width:36px;height:36px;padding:7px;
        border:1px solid rgba(255,255,255,.3);border-radius:50%;
        background:rgba(255,255,255,.12);color:white;cursor:pointer;
    }
    .pfc-stage-lightbox-v2__photo-tools .pfc-lightbox-size-button:hover,
    .pfc-stage-lightbox-v2__photo-tools .pfc-lightbox-size-button[aria-expanded="true"] {background:#fff;color:#292522;}
    .pfc-lightbox-size-button svg {width:20px;height:20px;fill:currentColor;}
    .pfc-stage-lightbox-v2__photo-tools .pfc-lightbox-size-menu:not([hidden]) {
        display:grid;grid-template-columns:repeat(4,max-content);gap:5px;
        position:absolute;bottom:calc(100% + 12px);right:0;
        padding:10px;border:1px solid rgba(255,255,255,.5);border-radius:12px;
        background:rgba(35,32,30,.97);box-shadow:0 8px 24px rgba(0,0,0,.4);
        z-index:110;max-width:min(90vw,420px);
    }
    .pfc-lightbox-size-option {border:1px solid rgba(255,255,255,.25);border-radius:7px;
        background:#4b7e61;color:white;font-size:12px;font-weight:700;white-space:nowrap;
        padding:8px 9px;cursor:pointer;}
    .pfc-lightbox-size-option:hover,.pfc-lightbox-size-option.is-active {background:#25583c;outline:2px solid white;outline-offset:-2px;}
}

/* v0.3.196 – pouze PC: volba velikosti patří do jedné společné lišty. */
@media(min-width:981px){
 .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-photo-toolbar > .pfc-lightbox-size-picker{
  display:flex;align-items:center;justify-content:center;position:relative;flex:0 0 36px;margin:0!important;
 }
 .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-photo-toolbar .pfc-lightbox-size-button{
  margin:0!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  padding:7px!important;border:0!important;box-shadow:none!important;
  background:rgba(255,255,255,.12)!important;color:#fff!important;
 }
 .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-photo-toolbar .pfc-lightbox-size-button:hover,
 .pfc-stage-lightbox-v2__photo-tools .pfc-desktop-photo-toolbar .pfc-lightbox-size-button[aria-expanded="true"]{
  background:#fff!important;color:#292522!important;
 }
}

/* v0.3.199 – mobilní diagnostika více chyb při uploadu; dlouhé názvy
   souborů nesmí vytlačit tlačítko Zavřít mimo obrazovku. */
@media (max-width:980px) {
  .pfc-mobile-upload-overlay.is-error .pfc-mobile-upload-card>span {
    max-height:26vh;
    overflow-y:auto;
    overflow-wrap:anywhere;
  }
}

/* v0.3.202: pouze mobil – nové výrobní velikosti a výběr přímo ve fullscreen editoru. */
@media (min-width:981px){.pfc-mobile-only-size{display:none!important;}}
@media (max-width:980px){
 .pfc-mobile-photo-editor__footer .pfc-mobile-image-toolbar > .pfc-mobile-size-toggle{display:flex!important;align-items:center!important;justify-content:center!important;}
 .pfc-mobile-photo-editor__footer .pfc-mobile-editor-size-picker:not([hidden]){
   position:absolute!important;z-index:100!important;display:block!important;
   left:50%!important;bottom:calc(100% + 12px)!important;top:auto!important;
   transform:translateX(-50%)!important;width:min(290px,85vw)!important;max-height:46dvh!important;
   overflow-y:auto!important;box-sizing:border-box!important;padding:12px!important;
   border-radius:13px!important;border:1px solid rgba(255,255,255,.55)!important;
   color:#222!important;background:#fff!important;box-shadow:0 8px 28px rgba(0,0,0,.35)!important;
 }
 .pfc-mobile-editor-size-picker strong{display:block;font-size:13px;margin-bottom:8px;text-align:center;}
 .pfc-mobile-editor-size-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
 .pfc-mobile-editor-size-grid button{border:1px solid #d4d6d3;background:#eff5ee;color:#22583a;border-radius:7px;padding:9px 4px;min-height:34px;font-size:12px;font-weight:700;}
 .pfc-mobile-editor-size-grid button.is-active{background:#28583e;color:white;}
 .pfc-mobile-editor-size-grid button:disabled{opacity:.4;}
}
@media (max-width:980px) and (orientation:landscape){
 .pfc-mobile-photo-editor__footer .pfc-mobile-editor-size-picker:not([hidden]){
   left:auto!important;right:calc(100% + 12px)!important;bottom:auto!important;top:50%!important;
   transform:translateY(-50%)!important;width:min(250px,48vw)!important;max-height:80dvh!important;
 }
}


/* v0.3.204 – Mobil: ve fullscreen výběru má celý formát vlastní stejně široké tlačítko. */
@media (max-width:980px) {
 .pfc-mobile-photo-editor__footer .pfc-mobile-editor-size-picker .pfc-mobile-editor-size-grid {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:9px!important;
  row-gap:9px!important;
  width:100%!important;
  align-items:stretch!important;
 }
 .pfc-mobile-photo-editor__footer .pfc-mobile-editor-size-picker .pfc-mobile-editor-size-grid > button {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:43px!important;
  min-height:43px!important;
  margin:0!important;
  padding:6px 3px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:15px!important;
  line-height:1.15!important;
  flex:none!important;
  text-align:center!important;
 }
}


/* v0.3.205 – mobilní místnosti: vysoký 50×30/60×30 cm obraz drží
 * stejnou pozici při prvním zobrazení i po přepínání scén.
 * Horní okraj je omezen výškou rámečku vůči linii nábytku; výpočet
 * probíhá v CSS až po definitivním rozložení scény. */
@media (max-width:980px) {
  .pfc-room-stage.is-living:not(.is-mobile-fullscreen) .pfc-scene-frame.pfc-mobile-large-portrait {
    top:clamp(2.5%,calc(53% - var(--pfc-large-portrait-height, 0px)),21.8%)!important;
  }
  .pfc-room-stage.is-bedroom:not(.is-mobile-fullscreen) .pfc-scene-frame.pfc-mobile-large-portrait {
    top:max(2.5%,min(calc(47% - var(--pfc-large-portrait-height, 0px)),calc(17.5% - 5mm)))!important;
  }
}

/* v0.3.207 – pouze PC: všech deset aktivních formátů v hlavním panelu.
   Dvě řady po pěti tlačítkách, aby 50 × 30 a 60 × 30 nebyly skryté
   a všechny varianty byly viditelné bez vodorovného posouvání. */
@media (min-width:981px) {
  .pfc-app.has-photos .pfc-editor-controls .pfc-size-grid {
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    gap:6px!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    cursor:default!important;
  }
  .pfc-app.has-photos .pfc-editor-controls .pfc-size-grid .pfc-size-button {
    min-width:0!important;
    width:100%!important;
    scroll-snap-align:none!important;
    white-space:nowrap!important;
  }
  /* v0.3.208 – pouze PC: lišta 57 px níže než ve v0.3.207,
     do prostoru pod obrazem; pozice samotného obrazu se nemění. */
  .pfc-stage-lightbox-v2__live-photo > .pfc-stage-lightbox-v2__photo-tools {
    bottom:-69px!important;
  }
}
