/* SOL116 · real account and sign-in views; decorative layers never intercept controls. */
.ff-account,.ff-login{--ff-account-sans:Inter,system-ui,sans-serif;--ff-account-serif:'Cormorant Garamond',Georgia,serif;min-width:0}
.ff-account{width:100%;max-width:1160px;margin:0 auto;color:var(--ff-ink)}
.ff-account,.ff-account *, .ff-login,.ff-login *{box-sizing:border-box}
.ff-account :is(input,select,textarea,button),.ff-login :is(input,select,textarea,button){font-family:var(--ff-account-sans)!important}
.ff-account :is(p,label),.ff-login p{font-family:var(--ff-account-sans)!important;line-height:1.65}
.ff-account :is(button,a):focus-visible,.ff-login :is(button,a):focus-visible,.ff-account :is(input,select,textarea):focus-visible,.ff-login input:focus-visible{outline:2px solid var(--ff-gold-light);outline-offset:4px}
.ff-account :is(input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea){min-height:46px;max-width:100%;font-size:16px!important;border-radius:9px!important;line-height:1.45}
.ff-account :is(button,a){overflow-wrap:anywhere}
.ff-account button{min-height:44px}
.ff-account input[type=range]{min-height:30px}
.ff-account-heading{padding:10px 0 25px;max-width:780px}
.ff-account-heading h1{font:400 clamp(34px,4vw,52px)/1.08 var(--ff-account-serif);color:var(--ff-ink);letter-spacing:-.02em;margin:0 0 10px}
.ff-account-heading p{font-size:14px;color:var(--ff-muted);margin:0}
.ff-account-card{padding:clamp(20px,3vw,34px)!important;border-color:var(--ff-line)!important;border-radius:18px!important;min-width:0}
.ff-account-section-title{font:400 30px/1.15 var(--ff-account-serif);margin:0 0 23px;color:var(--ff-ink)}
.ff-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;margin-bottom:26px}
.ff-profile-grid>section{min-width:0}
.ff-profile-billing{border-left:1px solid var(--ff-line);padding-left:32px}
.ff-profile-form>button{min-width:160px}
.ff-theme-section+.ff-theme-section{border-top:1px solid var(--ff-line);margin-top:30px;padding-top:30px}
.ff-theme-section-heading{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;margin-bottom:18px}
.ff-theme-section-heading h2{font:400 29px/1.15 var(--ff-account-serif);margin:0;color:var(--ff-ink);flex:1 1 38%}
.ff-theme-section-heading p{font-size:13px;line-height:1.7;color:var(--ff-muted);margin:0;flex:1 1 62%;max-width:580px}
.ff-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.ff-theme-option{min-width:0;text-align:left;padding:16px;border:1px solid var(--ff-line);border-radius:13px;background:var(--ff-bg);color:var(--ff-ink);cursor:pointer;display:flex;flex-direction:column;gap:9px;transition:border-color .18s,box-shadow .18s,transform .18s}
.ff-theme-option:hover{border-color:var(--ff-gold);transform:translateY(-2px)}
.ff-theme-option[aria-pressed=true]{border-color:var(--ff-gold);box-shadow:0 0 0 1px var(--ff-gold)}
.ff-theme-name{display:flex;align-items:center;justify-content:space-between;gap:12px;font:400 29px/1.15 var(--ff-account-serif);margin:5px 0 0}
.ff-theme-name>span{font:16px var(--ff-account-sans);color:var(--ff-gold)}
.ff-theme-description{font:13px/1.65 var(--ff-account-sans);color:var(--ff-muted)}
.ff-theme-status{font:12px/1.5 var(--ff-account-sans);color:var(--ff-gold);margin-top:auto;padding-top:7px}
.ff-theme-sample{display:flex;flex-direction:column;gap:10px;background:var(--sample-bg);border:1px solid var(--sample-line);border-radius:7px;min-height:136px;padding:15px;pointer-events:none;color:var(--sample-ink)}
.ff-theme-sample-header{height:13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--sample-line);padding-bottom:9px}
.ff-theme-sample-header>span{height:5px;width:25%;background:var(--sample-gold);border-radius:2px}
.ff-theme-sample-header>i{height:9px;width:9px;border:1px solid var(--sample-gold);border-radius:50%}
.ff-theme-sample-dashboard{display:grid;grid-template-columns:1.3fr 1fr .8fr;gap:8px;min-height:66px}
.ff-theme-sample-dashboard>i{background:var(--sample-card);border:1px solid var(--sample-line);border-radius:5px}
.ff-theme-sample-dashboard .ff-theme-sample-dial{background:radial-gradient(circle at center,transparent 31%,var(--sample-gold) 32%,var(--sample-gold) 33%,transparent 34%),var(--sample-card)}
.ff-theme-sample-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:66px}
.ff-theme-sample-gallery>i{border:1px solid var(--sample-line);border-radius:4px;background:linear-gradient(140deg,var(--sample-card),var(--sample-bg))}
.ff-theme-sample-gallery>i:nth-child(2){border-color:var(--sample-gold)}
.ff-theme-sample-footer{display:flex;justify-content:space-between;gap:10px}
.ff-theme-sample-footer>i:first-child{width:35%;height:4px;background:var(--sample-ink);opacity:.6;border-radius:3px}
.ff-theme-sample-footer>i:last-child{width:16%;height:7px;background:var(--sample-gold);border-radius:4px}
.ff-theme-option--mechanika .ff-theme-sample{border:3px double var(--sample-gold);border-radius:4px;padding:13px}
.ff-theme-option--mechanika .ff-theme-sample-dashboard .ff-theme-sample-dial{border-radius:50%;justify-self:center;width:66px;background:radial-gradient(circle at center,transparent 48%,var(--sample-gold) 49%,var(--sample-gold) 50%,transparent 51%),var(--sample-card);border:3px double var(--sample-gold)}
.ff-theme-option--mechanika .ff-theme-sample-gallery>i{border-radius:1px;border-style:double;border-width:3px}
.ff-palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ff-palette-grid>button{width:100%!important;min-width:0;border-radius:10px!important}
.ff-palette-grid>button>div:last-child{gap:7px;min-height:52px}
.ff-account-savebar{display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid var(--ff-line);margin-top:28px;padding-top:23px}
.ff-account-savebar>p{font-size:13px;color:var(--ff-muted);margin:0;max-width:600px}
.ff-account-savebar>button{flex-shrink:0}
.ff-logo-previews{max-width:100%;scrollbar-color:var(--ff-gold) var(--ff-bg);scrollbar-width:thin}
.ff-watermark-layout>.kolumna-podgladu{flex:1 1 300px!important;max-width:420px!important}
.ff-account--menu>div:has(>.ff-account-heading){min-width:0}
.ff-login{padding:34px 16px;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--ff-gold) 8%,transparent),transparent 64%),var(--ff-bg)!important}
.ff-login-shell{width:min(100%,440px)!important;max-width:440px!important;min-width:0}
.ff-login-card{padding:26px 23px;border:1px solid var(--ff-line);border-radius:20px;background:var(--ff-card);box-shadow:0 20px 70px #0002}
.ff-login-card>h2{font-family:var(--ff-account-serif)!important;font-size:36px!important;font-style:normal!important;line-height:1.15;margin-bottom:12px!important}
.ff-login-card input{min-height:48px;font-size:16px!important}
.ff-login-card>p{font-size:14px!important;line-height:1.6}
.ff-login-code{gap:6px!important}
.ff-login-code>input{width:min(44px,calc((100% - 30px)/6))!important;min-width:0;flex:0 1 44px;font-size:22px!important;padding:0!important}
html[data-panel-theme=mechanika] .ff-account-card,html[data-panel-theme=mechanika] .ff-login-card{border:4px double var(--ff-line)!important;border-radius:10px!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ff-gold) 15%,transparent),0 14px 28px #0002}
html[data-panel-theme=mechanika] .ff-account-heading{border-bottom:1px solid var(--ff-line);margin-bottom:24px}
html[data-panel-theme=mechanika] .ff-account :is(input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea),html[data-panel-theme=mechanika] .ff-theme-option{border-radius:5px!important}
html[data-panel-theme=mechanika] .ff-theme-option{box-shadow:inset 0 0 0 3px var(--ff-bg)}
html[data-panel-theme=mechanika] .ff-theme-option[aria-pressed=true]{box-shadow:inset 0 0 0 3px var(--ff-bg),0 0 0 1px var(--ff-gold)}
@media(max-width:760px){.ff-profile-grid{grid-template-columns:minmax(0,1fr);gap:24px}.ff-profile-billing{padding:24px 0 0;border-left:0;border-top:1px solid var(--ff-line)}.ff-theme-section-heading{display:block}.ff-theme-section-heading h2{margin-bottom:9px}.ff-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ff-watermark-layout>.kolumna-podgladu{position:static!important;max-width:100%!important;width:100%;top:auto}.ff-account-savebar{align-items:stretch;flex-direction:column;gap:14px}.ff-account-savebar>button{justify-content:center}}
@media(max-width:480px){.ff-account-card{padding:18px!important}.ff-theme-grid{gap:11px}.ff-theme-option{padding:11px;gap:8px}.ff-theme-name{font-size:25px}.ff-theme-description{font-size:12px;line-height:1.6}.ff-theme-sample{min-height:106px;padding:10px;gap:8px}.ff-theme-option--mechanika .ff-theme-sample{padding:8px}.ff-theme-sample-dashboard,.ff-theme-sample-gallery{min-height:44px;gap:4px}.ff-theme-sample-dashboard{grid-template-columns:1.2fr 1fr}.ff-theme-sample-dashboard>i:last-child{display:none}.ff-theme-option--mechanika .ff-theme-sample-dashboard .ff-theme-sample-dial{width:43px}.ff-login{padding:18px 12px}.ff-login-card{padding:24px 17px}.ff-account-heading{padding-top:5px}.ff-account-heading p{font-size:13px}}
@media(max-width:359px){.ff-theme-grid{grid-template-columns:minmax(0,1fr)}.ff-theme-option{display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:12px}.ff-theme-sample{grid-column:1;grid-row:1/4}.ff-theme-name,.ff-theme-description,.ff-theme-status{grid-column:2}.ff-theme-name{font-size:23px}.ff-theme-status{padding-top:0}.ff-login-card{padding:21px 14px}}
@media(prefers-reduced-motion:reduce){.ff-theme-option{transition:none}.ff-theme-option:hover{transform:none}}

/* SOL117 · Account and session-form proportions from the accepted SOL113/115 views.
   These selectors stay inside the account/session surfaces; shared panel and editor rules are untouched. */
.ff-account .ff-account-heading{padding:4px 0 30px;max-width:800px}
.ff-account .ff-account-heading h1{font-size:clamp(36px,4.1vw,46px);line-height:1.08;margin-bottom:13px}
.ff-account .ff-account-functional-lead{margin-top:8px;font-size:14px;color:var(--ff-muted)}
.ff-account-eyebrow{display:block;font:12px/1.5 var(--ff-account-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ff-gold);margin-bottom:12px}
.ff-account .ff-account-card{background:linear-gradient(120deg,color-mix(in srgb,var(--ff-card) 94%,var(--ff-gold)),var(--ff-card))!important;padding:30px!important;border-radius:17px!important}
.ff-account-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-bottom:34px}
.ff-account-overview-card{padding:28px 30px;background:linear-gradient(120deg,color-mix(in srgb,var(--ff-card) 95%,var(--ff-gold)),var(--ff-card));border:1px solid var(--ff-line);border-radius:17px;min-width:0}
.ff-account-overview-card h2{font:400 30px/1.15 var(--ff-account-serif);color:var(--ff-ink);margin:0 0 18px;overflow-wrap:anywhere}
.ff-account-overview-card>p{font-size:14px;color:var(--ff-muted);margin:0 0 13px;line-height:1.7}
.ff-account-summary{margin:0}
.ff-account-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:13px 0;border-bottom:1px solid var(--ff-line);font:14px/1.55 var(--ff-account-sans)}
.ff-account-summary>div:last-child{border-bottom:0}
.ff-account-summary dt{color:var(--ff-muted);min-width:0;flex:1}
.ff-account-summary dd{margin:0;color:var(--ff-ink);font-weight:400;min-width:0;max-width:60%;text-align:right;overflow-wrap:anywhere}
.ff-account .ff-account-text-link{display:inline-flex;align-items:center;justify-content:flex-start;gap:14px;margin-top:16px;padding:7px 0;background:transparent;border:0;border-bottom:1px solid var(--ff-line);border-radius:0;color:var(--ff-gold);font-size:14px;cursor:pointer}
.ff-account-text-link>span{transition:transform .18s}
.ff-account-text-link:hover>span{transform:translateX(3px)}
.ff-account-load-note{padding:22px 0;color:var(--ff-muted)}
.ff-d1-usage{box-sizing:border-box;width:min(100%,42rem);margin:9px auto 14px;padding:16px 18px;border:1px solid var(--ff-line);border-radius:14px;background:var(--ff-card);color:var(--ff-ink);text-align:left}
.ff-d1-usage h3{margin:0 0 3px;font:400 22px/1.2 var(--ff-account-serif)}
.ff-d1-usage p,.ff-d1-usage small{display:block;margin:0;color:var(--ff-muted);font-size:13px;line-height:1.45}
.ff-d1-usage small{margin-top:3px}
.ff-d1-usage table{width:100%;table-layout:fixed;border-collapse:collapse;margin:12px 0 9px;font-size:14px;line-height:1.35;font-variant-numeric:tabular-nums}
.ff-d1-usage th,.ff-d1-usage td{padding:9px 5px;text-align:right;vertical-align:top;overflow-wrap:anywhere}
.ff-d1-usage th:first-child{width:42%;padding-left:0;text-align:left}
.ff-d1-usage th:last-child,.ff-d1-usage td:last-child{padding-right:0}
.ff-d1-usage thead th{font-weight:600;color:var(--ff-muted)}
.ff-d1-usage tbody tr{border-top:1px solid var(--ff-line)}
.ff-d1-usage tbody th,.ff-d1-usage td{font-weight:600}
.ff-d1-usage small{font-weight:400}
@media(max-width:420px){.ff-d1-usage{padding:13px 10px}}
.ff-account--studio-menu .ff-account-menu-toolbar{padding-top:4px;margin-bottom:17px!important}
.ff-account--studio-menu .ff-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important}
.ff-account--studio-menu .ff-card-grid.ff-grid-duze{grid-template-columns:repeat(2,minmax(0,1fr))}
.ff-account--studio-menu .ff-card-grid.ff-grid-male{grid-template-columns:repeat(4,minmax(0,1fr))}
.ff-account--studio-menu .ff-card-grid>.ff-card{width:100%!important;min-width:0;max-width:none;min-height:170px;border-radius:14px!important;background:var(--ff-card)!important;padding:21px!important}
.ff-account--studio-menu .ff-card-grid .ff-card-image{width:48px!important;height:45px!important;aspect-ratio:auto!important;justify-content:flex-start!important;background:transparent!important;border-radius:0!important}
.ff-account--studio-menu .ff-card-grid .ff-card-copy{padding:12px 0 0!important}
.ff-account--studio-menu .ff-card-title{white-space:normal!important;overflow-wrap:anywhere;font:400 26px/1.15 var(--ff-account-serif)!important}
.ff-account--studio-menu .ff-card-copy>div:last-child:not(.ff-card-title){font:14px/1.65 var(--ff-account-sans)!important;margin-top:10px!important}
.ff-account--studio-menu .ff-card-list>.ff-card{padding:16px 20px!important;border-radius:12px!important}
.ff-account .ff-themes-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;background:transparent!important;padding:0!important;border:0!important}
.ff-account .ff-theme-section{padding:26px;background:var(--ff-card);border:1px solid var(--ff-line);border-radius:17px;min-width:0}
.ff-account .ff-theme-section+.ff-theme-section{margin:0;padding-top:26px}
.ff-account .ff-theme-section:nth-child(3){grid-column:1/-1}
.ff-account .ff-theme-section-heading{display:block;margin-bottom:22px}
.ff-account .ff-theme-section-heading h2{font-size:30px;line-height:1.15;margin-bottom:12px}
.ff-account .ff-theme-section-heading p{font-size:14px;max-width:none;line-height:1.7}
.ff-account .ff-theme-grid{gap:13px}
:is(.ff-account,.ff-login-themes) .ff-theme-option{display:flex;min-height:214px;gap:8px;padding:19px 17px;border:1px solid var(--sample-line,var(--ff-line));border-radius:14px;background:var(--sample-card,var(--ff-card));color:var(--sample-ink,var(--ff-ink));box-shadow:none;position:relative}
:is(.ff-account,.ff-login-themes) .ff-theme-option[aria-pressed=true]{border-color:var(--sample-gold,var(--ff-gold));background:color-mix(in srgb,var(--sample-card) 90%,var(--sample-gold));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sample-gold) 45%,transparent)}
:is(.ff-account,.ff-login-themes) .ff-theme-option:hover{border-color:var(--sample-gold,var(--ff-gold))}
.ff-theme-symbol{display:flex;align-items:center;min-height:58px;font:400 48px/1 var(--ff-account-serif);color:var(--sample-gold,var(--ff-gold));margin-bottom:8px}
.ff-theme-symbol svg{width:55px;height:55px;stroke:currentColor;stroke-width:1.1}
:is(.ff-account,.ff-login-themes) .ff-theme-name{font-size:27px;color:var(--sample-ink,var(--ff-ink));margin:0}
:is(.ff-account,.ff-login-themes) .ff-theme-name>span{color:var(--sample-gold,var(--ff-gold))}
:is(.ff-account,.ff-login-themes) .ff-theme-description{font-size:14px;line-height:1.6;color:var(--sample-ink,var(--ff-ink));opacity:.82}
:is(.ff-account,.ff-login-themes) .ff-theme-status{font-size:13px;color:var(--sample-gold,var(--ff-gold));padding-top:15px}
:is(.ff-account,.ff-login-themes) .ff-theme-option--mechanika{border:3px double var(--sample-gold);border-radius:9px;padding:17px 15px;background:linear-gradient(130deg,color-mix(in srgb,var(--sample-card) 91%,var(--sample-gold)),var(--sample-card));box-shadow:inset 0 0 0 3px var(--sample-bg)}
:is(.ff-account,.ff-login-themes) .ff-theme-option--mechanika::after{content:"";position:absolute;inset:6px;border-radius:3px;background:radial-gradient(circle at 2px 2px,var(--sample-gold) 0 1px,transparent 1.5px),radial-gradient(circle at calc(100% - 2px) 2px,var(--sample-gold) 0 1px,transparent 1.5px),radial-gradient(circle at 2px calc(100% - 2px),var(--sample-gold) 0 1px,transparent 1.5px),radial-gradient(circle at calc(100% - 2px) calc(100% - 2px),var(--sample-gold) 0 1px,transparent 1.5px);pointer-events:none}
.ff-account .ff-account-savebar{grid-column:1/-1;padding-top:22px;margin-top:0}
.ff-account .ff-palette-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ff-account .ff-palette-grid>button{border-radius:10px!important}
.ff-account .ff-account-savebar>button{border-radius:8px!important;min-height:46px;padding-inline:24px!important}
html[data-panel-theme=mechanika] .ff-account-overview-card,html[data-panel-theme=mechanika] .ff-account .ff-theme-section{position:relative;border:1px solid var(--ff-gold);border-radius:10px;background:linear-gradient(125deg,color-mix(in srgb,var(--ff-card) 88%,var(--ff-gold)),var(--ff-card));box-shadow:inset 0 0 0 3px var(--ff-bg),inset 0 0 0 4px color-mix(in srgb,var(--ff-gold) 22%,transparent)}

.ff-session-page{--ff-session-serif:'Cormorant Garamond',Georgia,serif;--ff-session-sans:Inter,system-ui,sans-serif;max-width:1100px;min-width:0}
.ff-session-page *{box-sizing:border-box}
.ff-session-page-heading{max-width:800px;margin:0 0 31px}
.ff-session-page-heading>span{display:block;font:12px/1.5 var(--ff-session-sans);text-transform:uppercase;letter-spacing:.16em;color:var(--ff-gold);margin-bottom:12px}
.ff-session-page-heading h1{font:400 clamp(36px,4vw,46px)/1.08 var(--ff-session-serif);letter-spacing:-.01em;color:var(--ff-ink);margin:0 0 13px;overflow-wrap:anywhere}
.ff-session-page-heading>p{font:14px/1.7 var(--ff-session-sans);color:var(--ff-muted);margin:0}
.ff-panel .ff-session-page .ff-session-layout--atelier{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:32px;max-width:1000px}
.ff-panel .ff-session-page .ff-session-form{padding:30px!important;background:linear-gradient(120deg,color-mix(in srgb,var(--ff-card) 95%,var(--ff-gold)),var(--ff-card))!important;border:1px solid var(--ff-line)!important;border-radius:17px!important;min-width:0}
.ff-session-section-title{display:flex;align-items:center;gap:13px;margin:0 0 25px}
.ff-session-section-title>span{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border:1px solid var(--ff-gold);border-radius:50%;color:var(--ff-gold);font:12px/1 var(--ff-session-sans);font-variant-numeric:tabular-nums}
.ff-panel .ff-session-page .ff-form-heading{font:400 32px/1.1 var(--ff-session-serif);margin:0;border:0;padding:0}
.ff-session-section-title--divided{padding-top:29px;margin-top:28px;border-top:1px solid var(--ff-line)}
.ff-panel .ff-session-page .ff-session-form label{font:400 12px/1.5 var(--ff-session-sans)!important;letter-spacing:.08em!important;color:var(--ff-ink)!important;margin-bottom:9px!important}
.ff-panel .ff-session-page .ff-session-form :is(input,select){min-height:49px;padding:12px 14px!important;border:1px solid var(--ff-line)!important;border-radius:9px!important;background:var(--ff-bg)!important;color:var(--ff-ink)!important;font:400 16px/1.5 var(--ff-session-sans)!important;max-width:100%;min-width:0}
.ff-panel .ff-session-page .ff-session-form :is(input,select):focus-visible{outline:2px solid var(--ff-gold);outline-offset:3px}
.ff-panel .ff-session-page .ff-session-form .ff-session-help{font:14px/1.65 var(--ff-session-sans)!important;color:var(--ff-muted)!important;margin:8px 0 23px!important}
.ff-panel .ff-session-page .ff-form-field{margin-bottom:0}
.ff-session-page .ff-custom-kind{display:block;margin-top:17px}
.ff-session-page .ff-custom-kind input{display:block;margin-top:9px}
.ff-panel .ff-session-page .ff-session-field-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px!important;margin-bottom:0!important}
.ff-session-field-pair>div{min-width:0}
.ff-panel .ff-session-page .ff-session-actions{gap:12px!important;align-items:center;margin-top:25px;padding-top:24px}
.ff-panel .ff-session-page .ff-session-actions button{min-height:46px;border-radius:8px!important;font:400 14px/1.45 var(--ff-session-sans)!important;padding:12px 18px!important;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ff-panel .ff-session-page .ff-session-preview--photo{position:sticky;top:105px;min-width:0;padding:9px 0 0;display:block;background:transparent;border:0;box-shadow:none}
.ff-panel .ff-session-page .ff-session-preview--photo>.ff-eyebrow{font:12px/1.5 var(--ff-session-sans);letter-spacing:.1em;display:flex;align-items:center;gap:9px;margin:0 0 16px}
.ff-session-preview--photo>.ff-eyebrow>span{font-size:18px;color:var(--ff-gold)}
.ff-panel .ff-session-page .ff-session-photo-frame{position:relative;isolation:isolate;display:block;overflow:hidden;border-radius:13px;border:1px solid var(--ff-line);aspect-ratio:4/4.1;min-height:0;margin:0;padding:0;background:#171714}
.ff-session-photo-frame>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 50%;z-index:-2}
.ff-session-photo-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#080807eb,transparent 90%);pointer-events:none;z-index:-1}
.ff-session-photo-copy{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;text-align:center;padding:30px 20px;color:#fff5e6;min-width:0}
.ff-session-photo-copy>span{font:italic 25px/1 var(--ff-session-serif);color:#eed392;margin-bottom:14px}
.ff-session-photo-copy h2{font:italic 43px/.98 var(--ff-session-serif);margin:0;overflow-wrap:anywhere;color:#fff5e6;font-weight:400}
.ff-panel .ff-session-page .ff-session-preview--photo>p:not(.ff-eyebrow){font:14px/1.75 var(--ff-session-sans);color:var(--ff-muted);margin:16px 0 0}
.ff-panel .ff-session-page .ff-session-preview--photo .ff-private-name{border-top:1px solid var(--ff-line);padding-top:18px;margin-top:21px;overflow-wrap:anywhere}
.ff-private-name strong{font-weight:500;color:var(--ff-ink)}
html[data-panel-theme=mechanika] .ff-session-page .ff-session-form{border-color:var(--ff-gold)!important;border-radius:10px!important;box-shadow:inset 0 0 0 3px var(--ff-bg),inset 0 0 0 4px color-mix(in srgb,var(--ff-gold) 28%,transparent)}
html[data-panel-theme=mechanika] .ff-session-page .ff-session-photo-frame{border:4px double var(--ff-gold);border-radius:7px}
@media(max-width:900px){.ff-account .ff-themes-card{grid-template-columns:minmax(0,1fr)}.ff-account .ff-theme-section:nth-child(3){grid-column:auto}.ff-account--studio-menu .ff-card-grid.ff-grid-male{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.ff-panel .ff-session-page .ff-session-layout--atelier{grid-template-columns:minmax(0,1fr)}.ff-panel .ff-session-page .ff-session-preview--photo{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px}.ff-panel .ff-session-page .ff-session-photo-frame{grid-column:1;grid-row:2/6;aspect-ratio:4/4.1}.ff-panel .ff-session-page .ff-session-preview--photo>.ff-eyebrow{grid-column:1/-1}.ff-panel .ff-session-page .ff-session-preview--photo>p:not(.ff-eyebrow){grid-column:2;margin-top:0;margin-bottom:15px}}
@media(max-width:760px){.ff-account .ff-themes-card{padding:0!important}.ff-account-overview{grid-template-columns:minmax(0,1fr);gap:18px}.ff-account .ff-account-card,.ff-account-overview-card{padding:24px!important}.ff-account--studio-menu .ff-card-grid,.ff-account--studio-menu .ff-card-grid.ff-grid-male{grid-template-columns:repeat(2,minmax(0,1fr))}.ff-account .ff-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ff-session-page-heading,.ff-account .ff-account-heading{margin-bottom:0;padding-bottom:25px}.ff-session-page-heading h1,.ff-account .ff-account-heading h1{font-size:36px}.ff-account-overview-card,.ff-account .ff-theme-section{padding:21px!important}:is(.ff-account,.ff-login-themes) .ff-theme-option{padding:16px 13px;min-height:210px}:is(.ff-account,.ff-login-themes) .ff-theme-name{font-size:25px}:is(.ff-account,.ff-login-themes) .ff-theme-description{font-size:13px}:is(.ff-account,.ff-login-themes) .ff-theme-status{font-size:12px}.ff-account .ff-themes-card{padding:0!important;gap:20px}.ff-account .ff-theme-section-heading h2{font-size:29px}.ff-account--studio-menu .ff-card-grid>.ff-card{padding:17px!important}.ff-account--studio-menu .ff-card-title{font-size:25px!important}.ff-account--studio-menu .ff-card-copy>div:last-child:not(.ff-card-title){font-size:13px!important}.ff-panel .ff-session-page .ff-session-form{padding:21px!important;border-radius:13px!important}.ff-panel .ff-session-page .ff-session-field-pair{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}.ff-panel .ff-session-page .ff-form-heading{font-size:29px}.ff-panel .ff-session-page .ff-session-preview--photo{display:block;padding-top:5px}.ff-panel .ff-session-page .ff-session-photo-frame{aspect-ratio:1.2}.ff-panel .ff-session-page .ff-session-preview--photo>p:not(.ff-eyebrow){margin-top:16px;margin-bottom:0}.ff-panel .ff-session-page .ff-session-actions{align-items:stretch}.ff-session-photo-copy h2{font-size:39px}.ff-account .ff-account-savebar{gap:14px}}
@media(max-width:359px){.ff-account .ff-theme-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}:is(.ff-account,.ff-login-themes) .ff-theme-option{display:flex;padding:13px 10px}:is(.ff-account,.ff-login-themes) .ff-theme-name{font-size:23px}:is(.ff-account,.ff-login-themes) .ff-theme-description{font-size:13px}.ff-account--studio-menu .ff-card-grid,.ff-account--studio-menu .ff-card-grid.ff-grid-duze,.ff-account--studio-menu .ff-card-grid.ff-grid-male{grid-template-columns:minmax(0,1fr)}.ff-account-summary>div{gap:12px}}
@media(prefers-reduced-motion:reduce){.ff-account-text-link>span{transition:none}.ff-account-text-link:hover>span{transform:none}}

/* SOL118: jeden wspólny motyw, odrębny link podglądu i potwierdzenie autosave. */
.ff-theme-choice{min-width:0;display:flex;flex-direction:column;gap:12px}
.ff-theme-choice>.ff-theme-option{width:100%;flex:1}
.ff-theme-preview-link{display:block;align-self:center;text-align:center;min-height:44px;padding:10px 8px;color:var(--ff-gold);font:14px/1.6 var(--ff-sans);text-underline-offset:4px;overflow-wrap:anywhere}
.ff-theme-preview-link:focus-visible{outline:2px solid var(--ff-gold);outline-offset:3px;border-radius:4px}
.ff-account .ff-themes-card{display:block;max-width:850px}
.ff-account .ff-themes-card>.ff-theme-section{margin:0}
.ff-theme-save-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:22px;padding:18px 24px;border-top:1px solid var(--ff-line);color:var(--ff-muted);font:15px/1.65 var(--ff-sans)}
.ff-theme-save-status p{margin:0;flex:1 1 240px}
.ff-theme-save-status[data-theme-save-state="saved"]{color:var(--ff-gold)}
.ff-theme-save-status[data-theme-save-state="error"]{border-color:var(--ff-gold);color:var(--ff-ink)}
@media(max-width:600px){.ff-theme-save-status{padding:18px 20px}.ff-theme-preview-link{font-size:13px}}

/* SOL120: the approved Atelier card finish; fields, validation and theme states are unchanged. */
html[data-panel-theme="atelier"] :is(.ff-account .ff-account-card:not(.ff-themes-card), .ff-account-overview-card, .ff-account .ff-theme-section, .ff-panel .ff-session-page .ff-session-form) {
  background: linear-gradient(135deg, #29231d66, #1a1613) !important;
  border-color: #b6a36135 !important;
  box-shadow: inset 0 1px #e5d3a414, 0 8px 20px #0002;
}
html[data-panel-theme="atelier"] .ff-session-page .ff-session-photo-frame { background: #171716; }
html[data-panel-theme="atelier"] .ff-session-photo-copy > span { color: #e7d29c; }

/* SOL125: the Mechanika option previews its real instrument, without fictitious balance. */
.ff-theme-option--mechanika .ff-mechanika-theme-preview { display:block;position:relative;width:96px;aspect-ratio:1;pointer-events:none; }
.ff-theme-option--mechanika .ff-mechanika-theme-preview>img { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }
.ff-theme-option--mechanika .ff-mechanika-theme-preview>span { display:grid;place-items:center;position:absolute;inset:28%;font:28px/1 var(--ff-account-serif);color:#e3c28b; }
.ff-theme-option--mechanika .ff-theme-symbol { min-height:96px;justify-content:center;margin-bottom:4px; }
@media(max-width:480px){.ff-theme-option--mechanika .ff-mechanika-theme-preview{width:80px}.ff-theme-option--mechanika .ff-theme-symbol{min-height:80px}}

/* SOL128 · one shared theme, now including the approved Editorial. */
.ff-account .ff-themes-card{max-width:1120px}
.ff-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ff-theme-option--editorial .ff-theme-symbol{background:linear-gradient(#fffcf7b8,#fffcf7b8),url('/images/editorial-paper.webp');background-size:auto,350px;border:1px solid #d8cec1;border-radius:3px;color:#7a3546;min-height:96px;display:grid;place-items:center}
.ff-editorial-theme-preview{font:italic 44px/1 var(--ff-account-serif);text-align:center}
.ff-editorial-theme-preview>span{display:block;font:9px/1.5 var(--ff-account-sans);letter-spacing:.16em;margin-top:7px}
html[data-panel-theme="editorial"] :is(.ff-account .ff-account-card:not(.ff-themes-card),.ff-account-overview-card,.ff-account .ff-theme-section,.ff-panel .ff-session-page .ff-session-form){background:#fffcf7a6!important;border-color:#c7b7aa!important;border-radius:5px!important;box-shadow:0 2px 6px #4b352608}
html[data-panel-theme="editorial"] .ff-account-overview-card{color:var(--ff-ink)}
html[data-panel-theme="editorial"] .ff-account :is(input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea),html[data-panel-theme="editorial"] .ff-session-page .ff-session-form :is(input,select){border-radius:5px!important;background:#fffcf7!important;color:var(--ff-ink)!important}
html[data-panel-theme="editorial"] .ff-session-page .ff-session-photo-frame{border-radius:4px;border-color:#c2b0a1}
html[data-panel-theme="editorial"] .ff-session-photo-copy>span{color:#fff6ed}
html[data-panel-theme="editorial"] .ff-theme-option{border-radius:5px}
html[data-panel-theme="editorial"] .ff-account .ff-account-savebar{background:#f8f3ecf7;border-color:#c6b7aa;box-shadow:0 -4px 14px #563a1f0d}
@media(max-width:760px){.ff-theme-grid,.ff-account .ff-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ff-theme-grid,.ff-account .ff-theme-grid{grid-template-columns:minmax(0,1fr)}.ff-theme-option--editorial .ff-theme-symbol{min-height:80px}}

/* SOL131: fourth actual theme choice, with the same autosave and separate preview link. */
.ff-theme-grid,.ff-account .ff-theme-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.ff-account .ff-themes-card{max-width:1240px}
.ff-theme-option--kobalt .ff-theme-symbol{display:grid;place-items:center;min-height:96px;background:linear-gradient(120deg,#ffffffaa,#eaf1ff30),url('/images/kobalt-light.webp') center/cover;border:1px solid #c5d1e5;border-radius:10px;color:#1749dc}
.ff-kobalt-theme-preview{position:relative;display:block;width:96px;aspect-ratio:1;pointer-events:none}
.ff-kobalt-theme-preview img{display:block;width:100%;height:100%;object-fit:contain}
:is(.ff-account,.ff-login-themes) .ff-theme-option--kobalt{border-color:#c5d1e5;border-radius:10px;background:#fff;color:#142348}
.ff-theme-option--kobalt :is(.ff-theme-name,.ff-theme-description,.ff-theme-status){font-family:Inter,system-ui,sans-serif}
html[data-panel-theme="kobalt"] :is(.ff-account,.ff-login){--ff-account-serif:Inter,system-ui,sans-serif;--ff-account-sans:Inter,system-ui,sans-serif}
html[data-panel-theme="kobalt"] .ff-session-page{--ff-session-serif:Inter,system-ui,sans-serif;--ff-session-sans:Inter,system-ui,sans-serif}
html[data-panel-theme="kobalt"] :is(.ff-account .ff-account-card:not(.ff-themes-card),.ff-account-overview-card,.ff-account .ff-theme-section,.ff-panel .ff-session-page .ff-session-form){background:#fff!important;border-color:#c5d1e5!important;border-radius:12px!important;box-shadow:0 8px 25px -18px #294c8a35}
html[data-panel-theme="kobalt"] :is(.ff-account-heading h1,.ff-account-section-title,.ff-account-overview-card h2,.ff-theme-section-heading h2,.ff-session-page-heading h1){font-weight:600;letter-spacing:-.04em}
html[data-panel-theme="kobalt"] .ff-account .ff-account-heading h1{font-size:clamp(30px,3.6vw,44px);line-height:1.15}
html[data-panel-theme="kobalt"] .ff-account-overview-card h2,html[data-panel-theme="kobalt"] .ff-account .ff-theme-section-heading h2{font-size:25px}
html[data-panel-theme="kobalt"] .ff-account :is(input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea),html[data-panel-theme="kobalt"] .ff-session-page .ff-session-form :is(input,select){border:1px solid #bccde8!important;border-radius:8px!important;background:#fbfcff!important;color:#142348!important;box-shadow:none;color-scheme:light}
html[data-panel-theme="kobalt"] .ff-account :is(input,textarea)::placeholder,html[data-panel-theme="kobalt"] .ff-session-page input::placeholder{color:#68758c;opacity:1}
html[data-panel-theme="kobalt"] .ff-account :is(input:disabled,textarea:disabled,select:disabled){background:#edf2fe!important;color:#5e6b86!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-session-page .ff-form-heading{font:600 25px/1.2 var(--ff-session-sans);letter-spacing:-.035em}
html[data-panel-theme="kobalt"] .ff-panel .ff-session-page .ff-session-form label{font-size:13px!important;letter-spacing:0!important}
html[data-panel-theme="kobalt"] .ff-session-section-title>span{border-color:#aec4ed;color:#1749dc;background:#f3f7ff}
html[data-panel-theme="kobalt"] .ff-session-photo-frame{border-color:#bfceea!important;border-radius:10px!important}
html[data-panel-theme="kobalt"] .ff-session-photo-copy>span{color:#fff;font-style:normal}
html[data-panel-theme="kobalt"] .ff-session-photo-copy h2{font:600 35px/1.1 var(--ff-session-sans);letter-spacing:-.04em;color:#fff}
html[data-panel-theme="kobalt"] .ff-account .ff-account-savebar{background:#f7fafff5;border-color:#c6d3ea;box-shadow:0 -5px 18px #294c8a0d}
html[data-panel-theme="kobalt"] :is(.ff-account,.ff-login-themes) .ff-theme-name{font-family:Inter,system-ui,sans-serif;font-size:23px;font-weight:600}
html[data-panel-theme="kobalt"] :is(.ff-account,.ff-login-themes) .ff-theme-status{font-size:13px}
html[data-panel-theme="kobalt"] .ff-account--studio-menu .ff-card-title{font-family:Inter,system-ui,sans-serif!important;font-size:22px!important;font-weight:600!important}
html[data-panel-theme="kobalt"] .ff-account--studio-menu .ff-card-grid>.ff-card{border-color:#c5d1e5!important;border-radius:12px!important;box-shadow:0 6px 17px -14px #345b9f35}
@media(max-width:1000px){.ff-theme-grid,.ff-account .ff-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ff-theme-grid,.ff-account .ff-theme-grid{grid-template-columns:minmax(0,1fr)}.ff-theme-option--kobalt .ff-theme-symbol{min-height:80px}.ff-kobalt-theme-preview{width:80px}}

/* SOL142: fifth shared theme; the existing autosave/ACK/retry controls stay unchanged. */
.ff-theme-grid,.ff-account .ff-theme-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.ff-account .ff-themes-card { max-width:1400px; }
.ff-theme-option--riviera .ff-theme-symbol { display:grid;place-items:center;min-height:96px;border:1px solid #dcc6b4;border-radius:12px;background:linear-gradient(#fff8efb3,#fff8efcc),url('/images/riviera-linen.webp') center/cover;color:#a7431d; }
.ff-riviera-theme-preview { display:block;position:relative;width:96px;aspect-ratio:1;pointer-events:none; }
.ff-riviera-theme-preview>img { display:block;width:100%;height:100%;object-fit:contain; }
.ff-riviera-theme-preview>span { position:absolute;inset:0;display:grid;place-items:center;padding-top:12px;font:45px/1 'Cormorant Garamond',Georgia,serif;color:#a7431d; }
:is(.ff-account,.ff-login-themes) .ff-theme-option--riviera { border-color:#dcc6b4;border-radius:14px;background:#fff8ef;color:#38291f;box-shadow:inset 0 1px #fffaf1,0 4px 9px #72503612; }
html[data-panel-theme="riviera"] :is(.ff-account,.ff-login) { --ff-account-serif:'Cormorant Garamond',Georgia,serif;--ff-account-sans:Inter,system-ui,sans-serif; }
html[data-panel-theme="riviera"] :is(.ff-account .ff-account-card:not(.ff-themes-card),.ff-account-overview-card,.ff-account .ff-theme-section,.ff-panel .ff-session-page .ff-session-form) { background:#fff8efd9!important;border-color:#dcc6b4!important;border-radius:19px!important;box-shadow:inset 0 1px 2px #fff,0 6px 16px #7250340e; }
html[data-panel-theme="riviera"] :is(.ff-account-heading h1,.ff-account-section-title,.ff-account-overview-card h2,.ff-theme-section-heading h2,.ff-session-page-heading h1) { font-weight:500;letter-spacing:-.015em; }
html[data-panel-theme="riviera"] .ff-account :is(input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea),html[data-panel-theme="riviera"] .ff-session-page .ff-session-form :is(input,select) { border:1px solid #cdb295!important;border-radius:9px!important;background:#fffdf8!important;color:#38291f!important;box-shadow:none;color-scheme:light; }
html[data-panel-theme="riviera"] .ff-account :is(input,textarea)::placeholder,html[data-panel-theme="riviera"] .ff-session-page input::placeholder { color:#8b7563;opacity:1; }
html[data-panel-theme="riviera"] .ff-account :is(input:disabled,textarea:disabled,select:disabled) { background:#f1e4d4!important;color:#756253!important; }
html[data-panel-theme="riviera"] .ff-account-studio-title { display:flex;align-items:center;gap:18px; }
html[data-panel-theme="riviera"] .ff-account-studio-title>.ff-riviera-emblem { position:relative;inset:auto;flex:0 0 90px;width:90px;height:90px; }
html[data-panel-theme="riviera"] .ff-account-studio-title .ff-riviera-monogram { font-size:calc(48px * var(--ff-riviera-monogram-scale,1)); }
html[data-panel-theme="riviera"] .ff-account-studio-title>span:last-child { min-width:0;overflow-wrap:anywhere; }
html[data-panel-theme="riviera"] .ff-session-section-title>span { border-color:#c7a686;color:#a7431d;background:#f3e4d4; }
html[data-panel-theme="riviera"] .ff-session-photo-frame { border-color:#e2c7a9!important;border-radius:16px!important; }
html[data-panel-theme="riviera"] .ff-session-photo-copy>span,html[data-panel-theme="riviera"] .ff-session-photo-copy h2 { color:#fff9ef; }
html[data-panel-theme="riviera"] .ff-account .ff-account-savebar { background:#fff8eff5;border-color:#dcc6b4;box-shadow:0 -5px 18px #7250340d; }
html[data-panel-theme="riviera"] .ff-account--studio-menu .ff-card-grid>.ff-card { border-color:#dcc6b4!important;border-radius:17px!important;box-shadow:var(--ff-riviera-shadow); }
html[data-panel-theme="riviera"] .ff-login { background-color:#f8f0e5!important;background-image:linear-gradient(115deg,#fff8ef99,#f8f0e5dc),url('/images/riviera-linen.webp')!important;background-size:auto,cover!important;background-repeat:no-repeat!important; }
html[data-panel-theme="riviera"] .ff-login-card { border-color:#dcc6b4;background:#fff8efeb;box-shadow:inset 0 1px 2px #fff,0 12px 35px #72503416; }
@media(max-width:1150px) { .ff-theme-grid,.ff-account .ff-theme-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:800px) { .ff-theme-grid,.ff-account .ff-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) {
 .ff-theme-grid,.ff-account .ff-theme-grid { grid-template-columns:minmax(0,1fr); }
 .ff-theme-option--riviera .ff-theme-symbol { min-height:80px; }
 .ff-riviera-theme-preview { width:80px; }
 html[data-panel-theme="riviera"] .ff-account-studio-title { gap:14px; }
 html[data-panel-theme="riviera"] .ff-account-studio-title>.ff-riviera-emblem { flex-basis:74px;width:74px;height:74px; }
 html[data-panel-theme="riviera"] .ff-account-studio-title .ff-riviera-monogram { font-size:calc(40px * var(--ff-riviera-monogram-scale,1)); }
}

/* Onboarding: the theme picker uses its container width and the same sample colours as Account. */
.ff-login-shell.ff-login-themes{width:min(100%,1160px)!important;max-width:1160px!important}
.ff-login-themes .ff-theme-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:17px}
.ff-login-themes .ff-theme-choice{min-width:0}
.ff-login-themes .ff-theme-option{width:100%;height:100%;overflow-wrap:anywhere}
.ff-login-themes .ff-theme-name{min-width:0}
.ff-login-themes .ff-theme-preview-link{overflow-wrap:anywhere}
