/*!
 * Forma Photo — app styles. Everything is scoped under .forma-photo-root.
 * Design tokens come from Branding / Appearance (CSS variables printed by the shortcode).
 */
.forma-photo-root {
	--fp-primary: #CDE66A; --fp-on-primary: #0A090D; --fp-accent: #D3A6F2; --fp-on-accent: #1B0F24; --fp-plum: #3B1450;
	--fp-bg: #0A090D; --fp-sheet: #141318; --fp-surface: #1C1B21; --fp-surface2: #26252C;
	--fp-text: #F4F3F6; --fp-muted: #9A98A3; --fp-muted2: #6E6B77; --fp-line: #2A2830; --fp-line2: #3A3842;
	--fp-error: #FF7A8A; --fp-error-bg: #2A1419; --fp-aurora1: #E85AA0; --fp-aurora2: #7A4BD8;
	--fp-r-btn: 999px; --fp-r-card: 32px; --fp-r-input: 22px;
	--fp-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--fp-font-heading: var(--fp-font-main); --fp-font-button: var(--fp-font-main); --fp-font-body: var(--fp-font-main);
	--fp-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--fp-fs-main: 16px; --fp-fw-main: 400; --fp-lh-main: 1.45;
	--fp-fs-heading: 34px; --fp-fw-heading: 500; --fp-lh-heading: 1.1;
	--fp-fs-button: 16px; --fp-fw-button: 600; --fp-lh-button: 1.2;
	--fp-fs-body: 15px; --fp-fw-body: 400; --fp-lh-body: 1.45;
	--fp-sat: env(safe-area-inset-top, 0px); --fp-sab: env(safe-area-inset-bottom, 0px);
	--fp-ease: cubic-bezier(.2, .8, .2, 1);
	position: relative; width: 100%; color: var(--fp-text);
	font-family: var(--fp-font-main); font-size: var(--fp-fs-main); font-weight: var(--fp-fw-main); line-height: var(--fp-lh-main);
	-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-align: left;
}
.forma-photo-root *, .forma-photo-root *::before, .forma-photo-root *::after { box-sizing: border-box; }
.forma-photo-root :where(button, input, textarea, select) {
	font: inherit; color: inherit; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; outline: none;
	text-transform: none; letter-spacing: inherit; line-height: inherit; min-height: 0; min-width: 0; width: auto; height: auto; padding: 0; text-shadow: none; text-decoration: none; -webkit-appearance: none; appearance: none;
}
.forma-photo-root :where(button) { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.forma-photo-root :where(button:disabled) { cursor: default; opacity: .45; }
.forma-photo-root button:focus-visible, .forma-photo-root a:focus-visible, .forma-photo-root input:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: 2px; }
.forma-photo-root :where(img) { max-width: none; border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.forma-photo-root a { color: var(--fp-primary); text-decoration: none; }
.forma-photo-root p { margin: 0; }
.forma-photo-root h1, .forma-photo-root h2, .forma-photo-root h3 { margin: 0; color: inherit; font-family: var(--fp-font-heading); }
.forma-photo-root svg { display: block; }
.forma-photo-root [hidden] { display: none !important; }

/* ---------- Mobile / desktop containers ---------- */
.forma-photo-root .fp-desktop { display: none; }
.forma-photo-root .fp-mobile { position: relative; width: 100%; height: 100vh; height: 100dvh; background: var(--fp-bg); overflow: hidden; }
.forma-photo-root.fp-fullscreen { position: static; }
.forma-photo-root.fp-fullscreen .fp-mobile { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; height: var(--fp-vh, 100%); max-height: none; min-height: 0; margin: 0; padding: 0; z-index: 2147483000; transform: none; }
html.fp-lock, html.fp-lock body { overflow: hidden !important; overscroll-behavior: none !important; height: 100%; margin: 0 !important; padding: 0 !important; }
html.fp-lock body > *:not(.forma-photo-root):not(script):not(style):not(link) { visibility: hidden; }
html.fp-lock #wpadminbar { display: none !important; }
.forma-photo-root .fp-app { position: absolute; inset: 0; overflow: hidden; }
.forma-photo-root.fp-editing .fp-mobile { height: auto; min-height: 240px; position: relative; }
.forma-photo-root .fp-editor-placeholder { padding: 48px 24px; text-align: center; color: var(--fp-muted); border: 1px dashed var(--fp-line2); border-radius: 24px; margin: 16px; }
.forma-photo-root .fp-boot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.forma-photo-root .fp-boot__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--fp-primary); animation: fp-pulse 1s ease-in-out infinite; }
.forma-photo-root .fp-noscript { padding: 24px; color: var(--fp-muted); }

/* ---------- Screens ---------- */
.forma-photo-root .fp-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--fp-bg); overflow: hidden; }
.forma-photo-root .fp-screen.is-in { animation: fp-in .32s var(--fp-ease) both; }
.forma-photo-root .fp-screen.is-back { animation: fp-back .32s var(--fp-ease) both; }
.forma-photo-root .fp-screen.is-fade { animation: fp-fade .35s ease both; }
@keyframes fp-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fp-back { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fp-pulse { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes fp-spin { to { transform: rotate(360deg); } }
@keyframes fp-shimmer { from { background-position: -200px 0; } to { background-position: 200px 0; } }
@media (prefers-reduced-motion: reduce) { .forma-photo-root .fp-screen.is-in, .forma-photo-root .fp-screen.is-back, .forma-photo-root .fp-screen.is-fade { animation: none; } }

.forma-photo-root .fp-aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background:
		radial-gradient(380px 320px at 0% 0%, color-mix(in srgb, var(--fp-aurora1) 55%, transparent), transparent 70%),
		radial-gradient(200px 160px at 5% 0%, rgba(255, 255, 255, .3), transparent 70%),
		radial-gradient(300px 260px at 55% 0%, color-mix(in srgb, var(--fp-aurora2) 35%, transparent), transparent 70%); }
.forma-photo-root .fp-aurora--center { background:
	radial-gradient(420px 420px at 50% 42%, color-mix(in srgb, var(--fp-aurora2) 50%, transparent), transparent 70%),
	radial-gradient(300px 300px at 35% 30%, color-mix(in srgb, var(--fp-aurora1) 45%, transparent), transparent 70%); }
.forma-photo-root .fp-top { position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: calc(var(--fp-sat) + 12px) 20px 10px; min-height: calc(var(--fp-sat) + 72px); }
.forma-photo-root .fp-top__title { position: absolute; left: 80px; right: 80px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fp-text); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forma-photo-root .fp-top__side { display: flex; gap: 10px; align-items: center; }
.forma-photo-root .fp-scroll { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 24px 24px; }
.forma-photo-root .fp-scroll--nav { padding-bottom: calc(var(--fp-sab) * .5 + 104px); }
.forma-photo-root .fp-bottom { position: relative; z-index: 3; flex: none; padding: 12px 20px calc(var(--fp-sab) + 16px); display: flex; flex-direction: column; gap: 10px; background: linear-gradient(transparent, var(--fp-bg) 30%); }
.forma-photo-root .fp-row { display: flex; gap: 10px; align-items: center; }
.forma-photo-root .fp-row > .fp-grow { flex: 1; }
.forma-photo-root .fp-stack { display: flex; flex-direction: column; gap: 22px; }
.forma-photo-root .fp-stack--s { gap: 12px; }
.forma-photo-root .fp-center { text-align: center; align-items: center; }
.forma-photo-root .fp-spacer { flex: 1; }

/* ---------- Type ---------- */
.forma-photo-root .fp-h1 { font-family: var(--fp-font-heading); font-size: var(--fp-fs-heading); font-weight: var(--fp-fw-heading); line-height: var(--fp-lh-heading); letter-spacing: -.01em; text-wrap: balance; }
.forma-photo-root .fp-h2 { font-family: var(--fp-font-heading); font-size: 22px; font-weight: 500; line-height: 1.2; }
.forma-photo-root .fp-h3 { font-family: var(--fp-font-heading); font-size: 17px; font-weight: 600; line-height: 1.25; }
.forma-photo-root .fp-text { font-family: var(--fp-font-body); font-size: var(--fp-fs-body); font-weight: var(--fp-fw-body); line-height: var(--fp-lh-body); color: var(--fp-muted); text-wrap: pretty; }
.forma-photo-root .fp-small { font-size: 13px; line-height: 1.45; color: var(--fp-muted); }
.forma-photo-root .fp-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fp-muted); }
.forma-photo-root .fp-mono { font-family: var(--fp-font-mono); font-variant-numeric: tabular-nums; }
.forma-photo-root .fp-html p + p { margin-top: 10px; }
.forma-photo-root .fp-html ul, .forma-photo-root .fp-html ol { margin: 8px 0 0 20px; padding: 0; }
.forma-photo-root .fp-html a { text-decoration: underline; }

/* ---------- Icons ---------- */
.forma-photo-root .fp-ico { width: 24px; height: 24px; fill: currentColor; flex: none; }
.forma-photo-root .fp-ico--s { width: 20px; height: 20px; }
.forma-photo-root .fp-ico--l { width: 32px; height: 32px; }

/* ---------- Buttons ---------- */
.forma-photo-root .fp-btn { height: 58px; padding: 0 24px; border-radius: var(--fp-r-btn) !important; gap: 8px; white-space: nowrap;
	font-family: var(--fp-font-button) !important; font-size: var(--fp-fs-button) !important; font-weight: var(--fp-fw-button) !important; line-height: var(--fp-lh-button);
	background: var(--fp-surface) !important; color: var(--fp-text) !important; transition: transform .15s ease, filter .15s ease, background-color .2s; }
.forma-photo-root .fp-btn:active:not(:disabled) { transform: scale(.97); }
.forma-photo-root .fp-btn--primary { background: var(--fp-primary) !important; color: var(--fp-on-primary) !important; }
.forma-photo-root .fp-btn--accent { background: var(--fp-accent) !important; color: var(--fp-on-accent) !important; }
.forma-photo-root .fp-btn--light { background: var(--fp-text) !important; color: var(--fp-bg) !important; }
.forma-photo-root .fp-btn--ghost { background: transparent !important; color: var(--fp-muted) !important; }
.forma-photo-root .fp-btn--danger { background: var(--fp-error-bg) !important; color: var(--fp-error) !important; }
.forma-photo-root .fp-btn--outline { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--fp-line2) !important; }
.forma-photo-root .fp-btn--block { width: 100%; }
.forma-photo-root .fp-row > .fp-btn.fp-grow { padding: 0 12px; min-width: 0; gap: 6px; font-size: 15px !important; }
.forma-photo-root .fp-btn > span { overflow: hidden; text-overflow: ellipsis; }
.forma-photo-root :where(button, input, textarea, a).fp-btn, .forma-photo-root :where(button).fp-icon-btn { border: 0 !important; text-decoration: none !important; }
.forma-photo-root .fp-toggle, .forma-photo-root .fp-range, .forma-photo-root .fp-check input, .forma-photo-root .fp-code-input input { border: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none; }
.forma-photo-root .fp-btn--sm { height: 46px; padding: 0 18px; font-size: 14px !important; }
.forma-photo-root .fp-btn--xs { height: 36px; padding: 0 14px; font-size: 13px !important; gap: 6px; }
.forma-photo-root .fp-btn .fp-spinner { width: 20px; height: 20px; border-width: 2.5px; }
.forma-photo-root .fp-spinner { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: fp-spin .8s linear infinite; opacity: .8; }
.forma-photo-root .fp-icon-btn { width: 48px; height: 48px; border-radius: 50% !important; background: var(--fp-surface) !important; color: var(--fp-text) !important; flex: none; position: relative; transition: transform .15s ease, background-color .2s; }
.forma-photo-root .fp-icon-btn:active:not(:disabled) { transform: scale(.92); }
.forma-photo-root .fp-icon-btn--lg { width: 64px; height: 64px; }
.forma-photo-root .fp-icon-btn--sm { width: 40px; height: 40px; }
.forma-photo-root .fp-icon-btn--clear { background: transparent !important; }
.forma-photo-root .fp-icon-btn--glass { background: rgba(20, 19, 24, .6) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.forma-photo-root .fp-icon-btn--primary { background: var(--fp-primary) !important; color: var(--fp-on-primary) !important; }
.forma-photo-root .fp-icon-btn--accent { background: var(--fp-accent) !important; color: var(--fp-on-accent) !important; }
.forma-photo-root .fp-icon-btn.is-on { background: var(--fp-primary) !important; color: var(--fp-on-primary) !important; }
.forma-photo-root .fp-link { color: var(--fp-primary) !important; font-weight: 500; font-size: 14px; background: none !important; padding: 6px 0 !important; }
.forma-photo-root .fp-link--muted { color: var(--fp-muted) !important; }

/* ---------- Inputs ---------- */
.forma-photo-root .fp-field { display: flex; flex-direction: column; gap: 8px; }
.forma-photo-root .fp-input { border: 0 !important; outline: 0; margin: 0 !important; max-width: none !important; height: 58px !important; width: 100% !important; padding: 0 20px !important; border-radius: var(--fp-r-input) !important; background: var(--fp-surface) !important; color: var(--fp-text) !important;
	font-size: 16px !important; box-shadow: inset 0 0 0 1.5px transparent !important; transition: box-shadow .2s; }
.forma-photo-root .fp-input::placeholder, .forma-photo-root .fp-textarea::placeholder { color: var(--fp-muted2); opacity: 1; }
.forma-photo-root .fp-input:focus, .forma-photo-root .fp-textarea:focus { box-shadow: inset 0 0 0 1.5px var(--fp-primary) !important; }
.forma-photo-root .fp-field.is-error .fp-input { box-shadow: inset 0 0 0 1.5px var(--fp-error) !important; }
.forma-photo-root .fp-field__err { color: var(--fp-error); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.forma-photo-root .fp-textarea { border: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; min-height: 130px; padding: 18px 20px 40px !important; border-radius: var(--fp-r-input) !important; background: var(--fp-surface) !important; resize: none; font-size: 16px !important; line-height: 1.45 !important; box-shadow: inset 0 0 0 1.5px transparent !important; display: block; }
.forma-photo-root .fp-textarea-wrap { position: relative; }
.forma-photo-root .fp-textarea-wrap .fp-count { position: absolute; left: 20px; bottom: 12px; font-size: 12px; color: var(--fp-muted2); pointer-events: none; }
.forma-photo-root .fp-textarea-wrap .fp-mic { position: absolute; right: 8px; bottom: 8px; }
.forma-photo-root .fp-code-input { position: relative; display: flex; gap: 8px; justify-content: space-between; }
.forma-photo-root .fp-code-input input { position: absolute; inset: 0; opacity: 0 !important; width: 100% !important; height: 100% !important; font-size: 16px !important; z-index: 2; }
.forma-photo-root .fp-code-input span { flex: 1; height: 64px; border-radius: 18px; background: var(--fp-surface); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; font-family: var(--fp-font-mono); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.forma-photo-root .fp-code-input span.is-active { box-shadow: inset 0 0 0 1.5px var(--fp-primary); }
.forma-photo-root .fp-code-input.is-error span { box-shadow: inset 0 0 0 1.5px var(--fp-error); }
.forma-photo-root .fp-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.4; }
.forma-photo-root .fp-check input { width: 24px !important; height: 24px !important; flex: none; border-radius: 8px !important; background: var(--fp-surface2) !important; display: grid; place-content: center; cursor: pointer; }
.forma-photo-root .fp-check input:checked { background: var(--fp-primary) !important; }
.forma-photo-root .fp-check input:checked::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--fp-on-primary); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- Chips / segmented / tabs ---------- */
.forma-photo-root .fp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; flex-wrap: nowrap; }
.forma-photo-root .fp-chips::-webkit-scrollbar, .forma-photo-root .fp-tabs::-webkit-scrollbar, .forma-photo-root .fp-hscroll::-webkit-scrollbar { display: none; }
.forma-photo-root .fp-chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.forma-photo-root .fp-chip { display: inline-flex; align-items: center; justify-content: center; border: 0 !important; height: 46px; padding: 0 18px; border-radius: 999px !important; background: var(--fp-surface) !important; color: var(--fp-text) !important; font-size: 14px; font-weight: 500; gap: 6px; flex: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.forma-photo-root .fp-chip--s { height: 36px; padding: 0 14px; font-size: 13px; }
.forma-photo-root .fp-chip.is-active { background: var(--fp-primary) !important; color: var(--fp-on-primary) !important; }
.forma-photo-root .fp-chip--ok { background: color-mix(in srgb, var(--fp-primary) 16%, transparent) !important; color: var(--fp-primary) !important; }
.forma-photo-root .fp-chip--warn { background: rgba(255, 190, 90, .14) !important; color: #FFC46B !important; }
.forma-photo-root .fp-chip--static { cursor: default; }
.forma-photo-root .fp-seg { display: flex; padding: 4px; border-radius: 999px; background: var(--fp-surface); gap: 4px; }
.forma-photo-root .fp-seg button { flex: 1; height: 38px; border-radius: 999px !important; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--fp-muted) !important; padding: 0 14px; transition: background-color .2s, color .2s; }
.forma-photo-root .fp-seg button.is-active { background: var(--fp-text) !important; color: var(--fp-bg) !important; }
.forma-photo-root .fp-seg--glass { background: rgba(20, 19, 24, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.forma-photo-root .fp-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; flex: none; }
.forma-photo-root .fp-tab { height: 40px; padding: 0 14px; border-radius: 999px !important; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--fp-muted) !important; flex: none; transition: background-color .2s, color .2s; }
.forma-photo-root .fp-tab.is-active { color: var(--fp-text) !important; background: var(--fp-surface) !important; }
.forma-photo-root .fp-tab.is-set::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fp-primary); margin-left: 6px; }

/* ---------- Toggle / slider ---------- */
.forma-photo-root .fp-toggle { position: relative; width: 52px !important; height: 30px !important; border-radius: 999px !important; background: var(--fp-surface2) !important; flex: none; transition: background-color .2s; cursor: pointer; }
.forma-photo-root .fp-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--fp-muted); transition: transform .2s var(--fp-ease), background-color .2s; }
.forma-photo-root .fp-toggle:checked { background: var(--fp-primary) !important; }
.forma-photo-root .fp-toggle:checked::after { transform: translateX(22px); background: var(--fp-on-primary); }
.forma-photo-root .fp-toggle--accent:checked { background: var(--fp-on-accent) !important; }
.forma-photo-root .fp-toggle--accent:checked::after { background: var(--fp-accent); }
.forma-photo-root .fp-toggle:disabled { opacity: .5; cursor: default; }
.forma-photo-root .fp-slider-row { display: flex; flex-direction: column; gap: 10px; }
.forma-photo-root .fp-slider-row__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.forma-photo-root .fp-slider-row__val { font-family: var(--fp-font-mono); font-size: 13px; color: var(--fp-muted); font-variant-numeric: tabular-nums; }
.forma-photo-root .fp-range { --v: 50%; width: 100% !important; height: 28px !important; background: transparent !important; cursor: pointer; touch-action: pan-y; display: block; }
.forma-photo-root .fp-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--fp-primary) var(--v), var(--fp-line2) var(--v)); }
.forma-photo-root .fp-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--fp-line2); }
.forma-photo-root .fp-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--fp-primary); }
.forma-photo-root .fp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--fp-primary) 35%, transparent), 0 2px 8px rgba(0, 0, 0, .4); }
.forma-photo-root .fp-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--fp-primary) 35%, transparent); }
.forma-photo-root .fp-range--center { --a: 50%; --b: 50%; }
.forma-photo-root .fp-range--center::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--fp-line2) var(--a), var(--fp-primary) var(--a), var(--fp-primary) var(--b), var(--fp-line2) var(--b)); }

/* ---------- Cards, tiles ---------- */
.forma-photo-root .fp-card { border-radius: var(--fp-r-card); background: var(--fp-surface); padding: 20px; }
.forma-photo-root .fp-card--sheet { background: var(--fp-sheet); }
.forma-photo-root .fp-card--accent { background: var(--fp-accent); color: var(--fp-on-accent); }
.forma-photo-root .fp-card--accent .fp-text, .forma-photo-root .fp-card--accent .fp-small { color: color-mix(in srgb, var(--fp-on-accent) 72%, transparent); }
.forma-photo-root .fp-card--plum { background: var(--fp-plum); }
.forma-photo-root .fp-card--error { background: var(--fp-error-bg); color: #FF9AA6; }
.forma-photo-root .fp-card__row { display: flex; align-items: center; gap: 14px; }
.forma-photo-root .fp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 8px; }
.forma-photo-root .fp-tile { height: 74px; border-radius: 20px !important; background: var(--fp-surface) !important; color: var(--fp-text) !important; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; padding: 0 4px !important; transition: background-color .2s, color .2s, transform .15s; }
.forma-photo-root .fp-tile .fp-tile__bars { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.forma-photo-root .fp-tile .fp-tile__bars i { width: 4px; border-radius: 2px; background: currentColor; opacity: .3; }
.forma-photo-root .fp-tile .fp-tile__bars i.on { opacity: 1; }
.forma-photo-root .fp-tile.is-active { background: var(--fp-primary) !important; color: var(--fp-on-primary) !important; }
.forma-photo-root .fp-card--accent .fp-tile { background: color-mix(in srgb, var(--fp-on-accent) 10%, transparent) !important; color: var(--fp-on-accent) !important; }
.forma-photo-root .fp-card--accent .fp-tile.is-active { background: var(--fp-on-accent) !important; color: var(--fp-accent) !important; }
.forma-photo-root .fp-list { display: flex; flex-direction: column; border-radius: var(--fp-r-card); background: var(--fp-surface); overflow: hidden; }
.forma-photo-root .fp-list__item { display: flex !important; align-items: center; gap: 14px; min-height: 62px; padding: 0 18px !important; width: 100%; text-align: left; justify-content: flex-start !important; font-size: 16px; }
.forma-photo-root .fp-list__item + .fp-list__item { box-shadow: inset 0 1px 0 var(--fp-line); }
.forma-photo-root .fp-list__item .fp-grow { flex: 1; min-width: 0; }
.forma-photo-root .fp-list__item .fp-list__sub { display: block; font-size: 13px; color: var(--fp-muted); margin-top: 2px; }
.forma-photo-root .fp-list__item > .fp-ico:last-child { color: var(--fp-muted2); }
.forma-photo-root .fp-list__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--fp-surface2); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Badges / tags ---------- */
.forma-photo-root .fp-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(20, 19, 24, .75); color: var(--fp-text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.forma-photo-root .fp-tag--primary { background: var(--fp-primary); color: var(--fp-on-primary); }
.forma-photo-root .fp-tag--accent { background: var(--fp-accent); color: var(--fp-on-accent); }
.forma-photo-root .fp-tag--error { background: var(--fp-error-bg); color: var(--fp-error); }
.forma-photo-root .fp-tag .fp-ico { width: 14px; height: 14px; }

/* ---------- Progress / dots ---------- */
.forma-photo-root .fp-progress { height: 6px; border-radius: 6px; background: var(--fp-line); overflow: hidden; }
.forma-photo-root .fp-progress > i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--fp-accent), var(--fp-primary)); transition: width .6s ease; }
.forma-photo-root .fp-dots { display: flex; gap: 6px; align-items: center; }
.forma-photo-root .fp-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--fp-line2); transition: width .3s var(--fp-ease), background-color .3s; }
.forma-photo-root .fp-dots i.is-active { width: 26px; background: var(--fp-primary); }
.forma-photo-root .fp-dots i.is-done { background: var(--fp-primary); }

/* ---------- Bottom nav ---------- */
.forma-photo-root .fp-nav { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: calc(var(--fp-sab) * .5 + 8px); height: 74px; border-radius: 999px; background: rgba(58, 57, 64, .72); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.forma-photo-root .fp-nav button { width: 60px; height: 60px; border-radius: 50% !important; color: var(--fp-text) !important; background: transparent !important; padding: 0 !important; transition: background-color .2s, color .2s; }
.forma-photo-root .fp-nav button.is-active { background: var(--fp-primary) !important; color: var(--fp-on-primary) !important; }
.forma-photo-root .fp-nav button.fp-nav__add { background: var(--fp-accent) !important; color: var(--fp-on-accent) !important; }
.forma-photo-root .fp-fade-bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(transparent, var(--fp-bg) 70%); pointer-events: none; }

/* ---------- Toasts ---------- */
.forma-photo-root .fp-toasts { position: absolute; z-index: 60; left: 16px; right: 16px; top: calc(var(--fp-sat) + 12px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.forma-photo-root .fp-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--fp-text); color: var(--fp-bg); font-size: 15px; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: fp-toast .3s var(--fp-ease) both; }
.forma-photo-root .fp-toast.is-out { animation: fp-toast-out .25s ease both; }
.forma-photo-root .fp-toast .fp-grow { flex: 1; padding: 8px 0; line-height: 1.3; }
.forma-photo-root .fp-toast--error { background: var(--fp-error-bg); color: #FF9AA6; box-shadow: inset 0 0 0 1px rgba(255, 122, 138, .25), 0 16px 40px rgba(0, 0, 0, .4); }
.forma-photo-root .fp-toast button { height: 42px; padding: 0 18px; border-radius: 999px !important; background: var(--fp-bg) !important; color: var(--fp-text) !important; font-size: 14px; font-weight: 600; }
.forma-photo-root .fp-toast .fp-toast__ok { width: 32px; height: 32px; border-radius: 50%; background: var(--fp-primary); color: var(--fp-on-primary); display: flex; align-items: center; justify-content: center; flex: none; margin-left: -8px; }
@keyframes fp-toast { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fp-toast-out { to { transform: translateY(-12px); opacity: 0; } }

/* ---------- Sheets / modal ---------- */
.forma-photo-root .fp-layer { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; }
.forma-photo-root .fp-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 8, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fp-fade .25s ease both; }
.forma-photo-root .fp-sheet { position: relative; max-height: 88%; display: flex; flex-direction: column; background: var(--fp-sheet); border-radius: 36px 36px 0 0; padding: 12px 24px calc(var(--fp-sab) + 24px); animation: fp-sheet .35s var(--fp-ease) both; box-shadow: 0 -20px 60px rgba(0, 0, 0, .4); }
.forma-photo-root .fp-sheet.is-out { animation: fp-sheet-out .25s ease both; }
.forma-photo-root .fp-layer.is-out .fp-backdrop { animation: fp-fade .25s ease reverse both; }
.forma-photo-root .fp-sheet__grip { width: 40px; height: 5px; border-radius: 5px; background: var(--fp-line2); margin: 0 auto 18px; flex: none; }
.forma-photo-root .fp-sheet__body { overflow-y: auto; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.forma-photo-root .fp-sheet__icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fp-surface); margin: 0 auto; }
.forma-photo-root .fp-sheet__icon--danger { background: var(--fp-error-bg); color: var(--fp-error); }
.forma-photo-root .fp-sheet__icon--accent { background: var(--fp-accent); color: var(--fp-on-accent); }
.forma-photo-root .fp-sheet .fp-menu { display: flex; flex-direction: column; gap: 4px; }
.forma-photo-root .fp-sheet .fp-menu button { justify-content: flex-start; gap: 14px; height: 56px; padding: 0 16px; border-radius: 18px !important; font-size: 16px; width: 100%; }
.forma-photo-root .fp-sheet .fp-menu button:active { background: var(--fp-surface) !important; }
.forma-photo-root .fp-sheet .fp-menu button.is-danger { color: var(--fp-error) !important; }
@keyframes fp-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fp-sheet-out { to { transform: translateY(100%); } }

/* ---------- Photos / before-after ---------- */
.forma-photo-root .fp-ph { position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, #1A1820 0 10px, #201E27 10px 20px); }
.forma-photo-root .fp-ph--after { background: repeating-linear-gradient(135deg, #2A1E33 0 10px, #33253D 10px 20px); }
.forma-photo-root .fp-ph img, .forma-photo-root .fp-ph canvas, .forma-photo-root .fp-ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.forma-photo-root .fp-ph--contain img, .forma-photo-root .fp-ph--contain canvas { object-fit: contain; }
.forma-photo-root .fp-ph__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--fp-font-mono); font-size: 11px; color: #77747F; }
.forma-photo-root .fp-ba { position: relative; overflow: hidden; border-radius: 32px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; background: var(--fp-surface); }
.forma-photo-root .fp-ba__layer { position: absolute; inset: 0; }
.forma-photo-root .fp-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.forma-photo-root .fp-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--fp-text); pointer-events: none; }
.forma-photo-root .fp-ba__handle { position: absolute; top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--fp-text); color: var(--fp-bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); pointer-events: none; }
.forma-photo-root .fp-ba--big .fp-ba__handle { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: var(--fp-primary); color: var(--fp-on-primary); }
.forma-photo-root .fp-ba__tag-l { position: absolute; left: 14px; top: 14px; z-index: 2; }
.forma-photo-root .fp-ba__tag-r { position: absolute; right: 14px; top: 14px; z-index: 2; }
.forma-photo-root .fp-ba img, .forma-photo-root .fp-ba canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.forma-photo-root .fp-ba--contain img, .forma-photo-root .fp-ba--contain canvas { object-fit: contain; }

/* ---------- Splash ---------- */
.forma-photo-root .fp-splash { align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; }
.forma-photo-root .fp-splash__mark { width: 96px; height: 96px; border-radius: 50%; background: var(--fp-primary); color: var(--fp-on-primary); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; overflow: hidden; animation: fp-pop .6s var(--fp-ease) both; }
.forma-photo-root .fp-splash__mark img { width: 100%; height: 100%; object-fit: cover; }
.forma-photo-root .fp-splash__mark--img { background: transparent; border-radius: 28px; }
.forma-photo-root .fp-splash__title { font-size: 44px; font-weight: 600; letter-spacing: -.02em; margin-top: 22px; position: relative; z-index: 1; font-family: var(--fp-font-heading); }
.forma-photo-root .fp-splash__tag { color: var(--fp-muted); font-size: 15px; margin-top: 6px; position: relative; z-index: 1; }
.forma-photo-root .fp-splash__bar { position: absolute; z-index: 1; left: 50%; bottom: calc(var(--fp-sab) + 64px); width: 120px; margin-left: -60px; }
@keyframes fp-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Onboarding ---------- */
.forma-photo-root .fp-onb__slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; z-index: 1; min-height: 0; }
.forma-photo-root .fp-onb__slides::-webkit-scrollbar { display: none; }
.forma-photo-root .fp-onb__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; gap: 24px; padding: 6px 24px 12px; min-height: 0; }
.forma-photo-root .fp-onb__visual { flex: 1; min-height: 200px; border-radius: 36px; position: relative; overflow: hidden; }
.forma-photo-root .fp-onb__chips { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.forma-photo-root .fp-onb__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px calc(var(--fp-sab) + 24px); position: relative; z-index: 2; gap: 16px; }

/* ---------- Auth ---------- */
.forma-photo-root .fp-logo { width: 72px; height: 72px; border-radius: 50%; background: var(--fp-primary); color: var(--fp-on-primary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.forma-photo-root .fp-logo img { width: 100%; height: 100%; object-fit: cover; }
.forma-photo-root .fp-logo--img { background: transparent; border-radius: 22px; }
.forma-photo-root .fp-divider { display: flex; align-items: center; gap: 14px; color: var(--fp-muted2); font-size: 13px; }
.forma-photo-root .fp-divider::before, .forma-photo-root .fp-divider::after { content: ""; flex: 1; height: 1px; background: var(--fp-line); }

/* ---------- Home ---------- */
.forma-photo-root .fp-avatar { width: 54px; height: 54px; border-radius: 50% !important; background: var(--fp-surface2) !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); font-size: 20px; font-weight: 600; color: var(--fp-text) !important; flex: none; }
.forma-photo-root .fp-avatar--xl { width: 104px; height: 104px; font-size: 40px; box-shadow: 0 0 0 3px var(--fp-primary), inset 0 0 0 0 transparent; }
.forma-photo-root .fp-counter { font-size: 13px; color: var(--fp-muted); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Camera ---------- */
.forma-photo-root .fp-cam { background: #000; }
.forma-photo-root .fp-cam__view { position: absolute; inset: 0; overflow: hidden; background: #000; }
.forma-photo-root .fp-cam__view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forma-photo-root .fp-cam__view video.is-mirror { transform: scaleX(-1); }
.forma-photo-root .fp-cam__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 33.333% 33.333%; background-position: -1px -1px; }
.forma-photo-root .fp-cam__guide { position: absolute; left: 22%; right: 22%; top: 18%; bottom: 24%; border: 2px dashed rgba(255, 255, 255, .45); border-radius: 120px 120px 40px 40px; pointer-events: none; }
.forma-photo-root .fp-cam__top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding: calc(var(--fp-sat) + 12px) 20px 0; display: flex; justify-content: space-between; align-items: center; }
.forma-photo-root .fp-cam__hint { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: calc(var(--fp-sat) + 84px); white-space: nowrap; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; }
.forma-photo-root .fp-cam__bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 20px 24px calc(var(--fp-sab) + 26px); display: flex; flex-direction: column; gap: 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .75) 40%); }
.forma-photo-root .fp-cam__modes { display: flex; justify-content: center; gap: 6px; }
.forma-photo-root .fp-cam__modes button { height: 34px; padding: 0 14px; border-radius: 999px !important; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .7) !important; }
.forma-photo-root .fp-cam__modes button.is-active { background: rgba(255, 255, 255, .16) !important; color: var(--fp-primary) !important; }
.forma-photo-root .fp-cam__row { display: flex; align-items: center; justify-content: space-between; }
.forma-photo-root .fp-shutter { width: 84px; height: 84px; border-radius: 50% !important; background: var(--fp-primary) !important; box-shadow: 0 0 0 5px rgba(0, 0, 0, .6), 0 0 0 8px rgba(255, 255, 255, .85); transition: transform .12s; }
.forma-photo-root .fp-shutter:active { transform: scale(.92); }
.forma-photo-root .fp-cam__thumb { width: 54px; height: 54px; border-radius: 16px !important; overflow: hidden; background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.forma-photo-root .fp-cam__thumb img { width: 100%; height: 100%; object-fit: cover; }
.forma-photo-root .fp-cam__count { position: absolute; z-index: 4; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 120px; font-weight: 600; color: #fff; text-shadow: 0 8px 40px rgba(0, 0, 0, .5); pointer-events: none; font-family: var(--fp-font-heading); }
.forma-photo-root .fp-cam__flash { position: absolute; z-index: 5; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.forma-photo-root .fp-cam__flash.is-on { opacity: 1; }
.forma-photo-root .fp-cam__error { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center; color: var(--fp-muted); }

/* ---------- Preview ---------- */
.forma-photo-root .fp-preview__img { position: relative; flex: 1; min-height: 0; margin: 0 16px; border-radius: 32px; overflow: hidden; background: var(--fp-sheet); }
.forma-photo-root .fp-preview__img img, .forma-photo-root .fp-preview__img canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.forma-photo-root .fp-box { position: absolute; border: 2px solid var(--fp-primary); border-radius: 18px; pointer-events: none; }
.forma-photo-root .fp-box > span { position: absolute; top: -28px; left: -2px; }
.forma-photo-root .fp-box--face { border-color: var(--fp-accent); }

/* ---------- Editor ---------- */
.forma-photo-root .fp-editor__stage { position: relative; flex: 1; min-height: 140px; margin: 0 16px; border-radius: 32px; overflow: hidden; background: var(--fp-sheet); }
.forma-photo-root .fp-editor__stage canvas, .forma-photo-root .fp-editor__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.forma-photo-root .fp-editor__stage .fp-seg { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; width: 190px; z-index: 2; }
.forma-photo-root .fp-editor__stage .fp-stage-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.forma-photo-root .fp-editor__stage .fp-stage-tag-r { position: absolute; top: 14px; right: 14px; z-index: 2; }
.forma-photo-root .fp-editor__panel { flex: none; display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.forma-photo-root .fp-editor__content { padding: 4px 20px 0; max-height: 36vh; max-height: 36dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.forma-photo-root .fp-editor__content.is-tall { max-height: 44dvh; }
.forma-photo-root .fp-hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
.forma-photo-root .fp-filter { flex: none; width: 76px; display: flex !important; flex-direction: column; gap: 8px; align-items: center; font-size: 12px; font-weight: 500; color: var(--fp-muted) !important; }
.forma-photo-root .fp-filter__img { width: 76px; height: 96px; border-radius: 20px; overflow: hidden; position: relative; background: var(--fp-surface); box-shadow: inset 0 0 0 2px transparent; }
.forma-photo-root .fp-filter__img canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.forma-photo-root .fp-filter.is-active { color: var(--fp-text) !important; }
.forma-photo-root .fp-filter.is-active .fp-filter__img { box-shadow: 0 0 0 2px var(--fp-primary); }
.forma-photo-root .fp-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.forma-photo-root .fp-tool { height: 64px; border-radius: 22px !important; background: var(--fp-surface) !important; justify-content: flex-start !important; gap: 12px; padding: 0 16px !important; font-size: 14px; font-weight: 500; text-align: left; line-height: 1.2; }
.forma-photo-root .fp-tool.is-active { background: var(--fp-accent) !important; color: var(--fp-on-accent) !important; }
.forma-photo-root .fp-loupe { position: absolute; right: 14px; bottom: 64px; width: 110px; height: 110px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--fp-text), 0 10px 30px rgba(0, 0, 0, .5); z-index: 2; background: #000; }
.forma-photo-root .fp-loupe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.forma-photo-root .fp-loupe__label { position: absolute; right: 14px; bottom: 180px; z-index: 2; }
.forma-photo-root .fp-pro-list { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Processing ---------- */
.forma-photo-root .fp-proc__stage { position: relative; flex: 1; min-height: 0; margin: 0 16px; border-radius: 36px; overflow: hidden; background: var(--fp-sheet); }
.forma-photo-root .fp-proc__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.8); }
.forma-photo-root .fp-proc__scan { position: absolute; left: 0; right: 0; height: 36%; top: -36%; background: linear-gradient(transparent, color-mix(in srgb, var(--fp-accent) 30%, transparent) 80%, var(--fp-primary) 100%); border-bottom: 2px solid var(--fp-primary); box-shadow: 0 8px 30px color-mix(in srgb, var(--fp-primary) 55%, transparent); animation: fp-scan 2.6s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes fp-scan { 0% { top: -36%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .forma-photo-root .fp-proc__scan { animation-duration: 8s; } }
.forma-photo-root .fp-proc__info { padding: 22px 24px calc(var(--fp-sab) + 22px); display: flex; flex-direction: column; gap: 16px; flex: none; }
.forma-photo-root .fp-proc__stagetext { font-size: 22px; font-weight: 500; min-height: 56px; font-family: var(--fp-font-heading); animation: fp-fade .4s ease both; }
.forma-photo-root .fp-proc__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fp-muted); gap: 12px; }

/* ---------- Result ---------- */
.forma-photo-root .fp-result__stage { position: relative; flex: 1; min-height: 0; margin: 0 16px; border-radius: 36px; overflow: hidden; background: var(--fp-sheet); }
.forma-photo-root .fp-result__stage > img, .forma-photo-root .fp-result__stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forma-photo-root .fp-result__chips { position: absolute; left: 14px; bottom: 14px; right: 80px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.forma-photo-root .fp-result__cmp { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.forma-photo-root .fp-result__panel { padding: 16px 20px calc(var(--fp-sab) + 16px); display: flex; flex-direction: column; gap: 14px; flex: none; }
.forma-photo-root .fp-result__levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.forma-photo-root .fp-result__levels .fp-tile { height: 58px; }

/* ---------- Compare fullscreen ---------- */
.forma-photo-root .fp-cmp { background: #000; }
.forma-photo-root .fp-cmp .fp-ba { position: absolute; inset: 0; border-radius: 0; }
.forma-photo-root .fp-cmp .fp-ba__tag-l, .forma-photo-root .fp-cmp .fp-ba__tag-r { top: calc(var(--fp-sat) + 84px); }
.forma-photo-root .fp-cmp__foot { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: calc(var(--fp-sab) + 20px); display: flex; justify-content: space-between; align-items: center; }

/* ---------- History ---------- */
.forma-photo-root .fp-search { position: relative; }
.forma-photo-root .fp-search .fp-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--fp-muted); pointer-events: none; }
.forma-photo-root .fp-search .fp-input { padding-left: 52px !important; height: 52px !important; border-radius: 999px !important; }
.forma-photo-root .fp-masonry { column-count: 2; column-gap: 10px; }
.forma-photo-root .fp-pcard { break-inside: avoid; margin-bottom: 10px; display: block !important; width: 100%; border-radius: 26px !important; overflow: hidden; position: relative; background: var(--fp-surface) !important; text-align: left; padding: 0 !important; }
.forma-photo-root .fp-pcard__img { position: relative; width: 100%; background: var(--fp-surface); }
.forma-photo-root .fp-pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.forma-photo-root .fp-pcard__img img.is-loaded { opacity: 1; }
.forma-photo-root .fp-pcard__tag { position: absolute; top: 10px; left: 10px; z-index: 1; }
.forma-photo-root .fp-pcard__fav { position: absolute; top: 10px; right: 10px; z-index: 1; color: var(--fp-primary); }
.forma-photo-root .fp-pcard__foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; color: rgba(255, 255, 255, .85); gap: 6px; white-space: nowrap; }
.forma-photo-root .fp-pcard__foot span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.forma-photo-root .fp-pcard__state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--fp-muted); text-align: center; padding: 10px; }
.forma-photo-root .fp-skel { background: linear-gradient(90deg, var(--fp-surface) 0, var(--fp-surface2) 50%, var(--fp-surface) 100%); background-size: 400px 100%; animation: fp-shimmer 1.2s linear infinite; }
.forma-photo-root .fp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 12px; }
.forma-photo-root .fp-empty__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--fp-surface); display: flex; align-items: center; justify-content: center; color: var(--fp-muted); }

/* ---------- Details ---------- */
.forma-photo-root .fp-details__img { position: relative; border-radius: 32px; overflow: hidden; background: var(--fp-sheet); aspect-ratio: 3 / 4; }
.forma-photo-root .fp-details__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forma-photo-root .fp-details__img .fp-seg { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; width: 220px; }
.forma-photo-root .fp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.forma-photo-root .fp-info__cell { background: var(--fp-surface); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.forma-photo-root .fp-info__cell--wide { grid-column: 1 / -1; }
.forma-photo-root .fp-info__k { font-size: 12px; color: var(--fp-muted); }
.forma-photo-root .fp-info__v { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Profile / settings ---------- */
.forma-photo-root .fp-stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.forma-photo-root .fp-stat2 { background: var(--fp-surface); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.forma-photo-root .fp-stat2__v { font-size: 30px; font-weight: 500; font-family: var(--fp-font-heading); }
.forma-photo-root .fp-stat2__k { font-size: 13px; color: var(--fp-muted); }
.forma-photo-root .fp-setting { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 18px; }
.forma-photo-root .fp-setting + .fp-setting { box-shadow: inset 0 1px 0 var(--fp-line); }
.forma-photo-root .fp-setting .fp-grow { flex: 1; min-width: 0; }
.forma-photo-root .fp-setting .fp-seg { width: 170px; flex: none; }
.forma-photo-root .fp-setting .fp-seg button { height: 32px; padding: 0 8px; letter-spacing: 0; }

/* ---------- Subscription ---------- */
.forma-photo-root .fp-plan { display: flex !important; align-items: center; gap: 14px; width: 100%; padding: 18px 20px !important; border-radius: 26px !important; background: var(--fp-surface) !important; text-align: left; justify-content: flex-start !important; box-shadow: inset 0 0 0 2px transparent !important; }
.forma-photo-root .fp-plan.is-active { box-shadow: inset 0 0 0 2px var(--fp-primary) !important; }
.forma-photo-root .fp-plan__radio { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--fp-line2); flex: none; }
.forma-photo-root .fp-plan.is-active .fp-plan__radio { box-shadow: inset 0 0 0 7px var(--fp-primary); }
.forma-photo-root .fp-plan__price { margin-left: auto; text-align: right; font-size: 18px; font-weight: 600; }
.forma-photo-root .fp-feature { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.forma-photo-root .fp-feature .fp-ico { color: var(--fp-primary); }

/* ---------- Light theme ---------- */
.forma-photo-root.fp-theme-light { --fp-bg: #F5F4F7; --fp-sheet: #FFFFFF; --fp-surface: #ECEBF0; --fp-surface2: #E0DFE6; --fp-text: #141318; --fp-muted: #5F5C68; --fp-muted2: #8C8996; --fp-line: #E0DFE6; --fp-line2: #CBC9D3; --fp-error-bg: #FFE4E8; --fp-error: #C6263D; }
.forma-photo-root.fp-theme-light .fp-nav { background: rgba(255, 255, 255, .78); }
.forma-photo-root.fp-theme-light .fp-tag:not(.fp-tag--primary):not(.fp-tag--accent):not(.fp-tag--error) { color: #F4F3F6; }

/* ---------- Desktop screen ---------- */
.forma-photo-root .fp-desktop { min-height: 100vh; min-height: 100dvh; align-items: center; justify-content: center; padding: 48px; background: var(--fp-bg); position: relative; overflow: hidden; }
.forma-photo-root .fp-desk { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.forma-photo-root .fp-desk__glow { position: absolute; inset: -200px; pointer-events: none; background: radial-gradient(520px 420px at 25% 30%, color-mix(in srgb, var(--fp-aurora1) 40%, transparent), transparent 70%), radial-gradient(520px 420px at 75% 70%, color-mix(in srgb, var(--fp-aurora2) 40%, transparent), transparent 70%); }
.forma-photo-root .fp-desk__card { position: relative; display: flex; gap: 56px; align-items: center; padding: 56px; border-radius: 48px; background: rgba(20, 19, 24, .78); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 40px 100px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06); max-width: 980px; }
.forma-photo-root .fp-desk__info { display: flex; flex-direction: column; gap: 20px; max-width: 440px; }
.forma-photo-root .fp-desk__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; }
.forma-photo-root .fp-desk__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--fp-primary); display: flex; align-items: center; justify-content: center; }
.forma-photo-root .fp-desk__mark svg { width: 24px; height: 24px; fill: var(--fp-on-primary); }
.forma-photo-root .fp-desk__icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.forma-photo-root .fp-desk__title { font-family: var(--fp-font-heading); font-size: 48px; line-height: 1.05; font-weight: var(--fp-fw-heading); letter-spacing: -.02em; }
.forma-photo-root .fp-desk__text { font-size: 18px; color: var(--fp-muted); line-height: 1.5; }
.forma-photo-root .fp-desk__instruction { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--fp-primary); color: var(--fp-on-primary); font-weight: 600; }
.forma-photo-root .fp-desk__instruction svg { width: 22px; height: 22px; fill: currentColor; }
.forma-photo-root .fp-desk__qrwrap { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: none; }
.forma-photo-root .fp-desk__qr { width: 280px; height: 280px; padding: 20px; border-radius: 32px; background: #fff; }
.forma-photo-root .fp-desk__qr svg { width: 100%; height: 100%; }
.forma-photo-root .fp-desk__hint { font-size: 14px; color: var(--fp-muted); text-align: center; max-width: 280px; }
.forma-photo-root .fp-desktop-template { width: 100%; }
.forma-photo-root .fp-desktop-placeholder { padding: 48px; border: 1px dashed var(--fp-line2); border-radius: 24px; color: var(--fp-muted); text-align: center; }
@media (max-width: 900px) { .forma-photo-root .fp-desk__card { flex-direction: column; padding: 36px; gap: 32px; } .forma-photo-root .fp-desk__title { font-size: 36px; } }

/* ---------- Install (PWA) ---------- */
.forma-photo-root .fp-istep { display: flex; gap: 14px; align-items: center; font-size: 15px; line-height: 1.35; }
.forma-photo-root .fp-istep__n { width: 36px; height: 36px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--fp-surface); font-weight: 600; font-family: var(--fp-font-mono); }
.forma-photo-root .fp-istep .fp-ico { color: var(--fp-primary); }
.forma-photo-root .fp-install-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 10px 14px 16px; border-radius: 26px; background: var(--fp-surface); }
.forma-photo-root .fp-install-card .fp-grow { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.forma-photo-root .fp-install-card__icon { width: 44px; height: 44px; border-radius: 14px; flex: none; background: var(--fp-primary); color: var(--fp-on-primary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.forma-photo-root .fp-install-card__icon img { width: 100%; height: 100%; object-fit: cover; }
