/* Home 59: composition and priority are independent; all color rules are scoped to home/settings. */
#autumn4[data-home59],#home-settings57.hp59-settings{--hp59-surface:var(--au-surface,var(--panel,#fff));--hp59-soft:var(--au-soft,var(--surface,#f3f6fa));--hp59-text:var(--au-text,var(--ink,#162c43));--hp59-muted:var(--au-muted,var(--muted,#61758a));--hp59-line:var(--au-line,var(--line,#dbe4ed));--hp59-accent:var(--au-link,#256caa);--hp59-scene:url('/assets/themes/prague-night-clean.perf-20261010.webp');color:var(--hp59-text);font-family:inherit}
body.theme-night2 #autumn4[data-home59],body.theme-night2 #home-settings57.hp59-settings{--hp59-surface:#12223c;--hp59-soft:#182f4c;--hp59-text:#f0f6ff;--hp59-muted:#b3c4db;--hp59-line:#36506e;--hp59-accent:#95caff}
body.theme-newyear #autumn4[data-home59],body.theme-newyear #home-settings57.hp59-settings{--hp59-surface:#142e38;--hp59-soft:#193c46;--hp59-text:#f4fbfc;--hp59-muted:#b9d7df;--hp59-line:#3c6570;--hp59-accent:#a9e9f0}
body.theme-newyear-light #autumn4[data-home59],body.theme-newyear-light #home-settings57.hp59-settings{--hp59-surface:#fcfeff;--hp59-soft:#edf6fa;--hp59-text:#153b4d;--hp59-muted:#516f7e;--hp59-line:#c4dfe9;--hp59-accent:#206d8e}
body.theme-night #autumn4[data-home59],body.theme-night2 #autumn4[data-home59]{--hp59-scene:url('/assets/themes/night-hero-scene.jpg')}
body.theme-powder #autumn4[data-home59],body.theme-love #autumn4[data-home59]{--hp59-scene:url('/assets/themes/powder.jpg')}
body.theme-aurora #autumn4[data-home59]{--hp59-scene:url('/assets/themes/aurora.jpg')}
body.theme-emerald #autumn4[data-home59]{--hp59-scene:url('/assets/themes/emerald.jpg')}
body.theme-sakura #autumn4[data-home59]{--hp59-scene:url('/assets/themes/sakura.jpg')}
body.theme-newyear #autumn4[data-home59],body.theme-newyear-light #autumn4[data-home59]{--hp59-scene:url('/assets/themes/winter-panorama-20261015.webp')}
html body #autumn4[data-home59]{display:grid!important;gap:22px!important;max-width:1560px!important;min-width:0;isolation:isolate;padding:0!important}
html body #autumn4[data-home59]::before,html body #autumn4[data-home59]::after,html body #autumn4[data-home59]>.a4-night-leaf-layer{display:none!important}
html body #autumn4[data-home59] :is(h1,h2,h3,b,strong){color:var(--hp59-text)}
html body #autumn4[data-home59] :is(small,.muted){color:var(--hp59-muted)}
html body #autumn4[data-home59] a{color:var(--hp59-accent)}
.hp59-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;color:var(--hp59-muted);min-width:0}
.hp59-toolbar>a{display:inline-flex;align-items:center;gap:7px;flex-shrink:0}.hp59-toolbar svg{width:17px;height:17px}.hp59-toolbar>span{overflow-wrap:anywhere}
html body #autumn4[data-home59] .hp59-hero{position:relative;border:1px solid var(--hp59-line);border-radius:22px;overflow:hidden;min-height:310px;display:flex;align-items:center;padding:clamp(22px,3vw,48px);background:linear-gradient(90deg,#071b2fed 0%,#122d42a3 52%,#132f4822 100%),var(--hp59-scene) center/cover!important;box-shadow:none!important}
.hp59-hero-copy{width:100%;max-width:930px;position:relative;z-index:1}
html body #autumn4[data-home59] .hp59-hero h1{color:#fff!important;font-size:clamp(28px,3.8vw,52px)!important;line-height:1.08;margin:8px 0 16px;font-weight:750;letter-spacing:-.035em;max-width:760px;text-wrap:balance}
html body #autumn4[data-home59] .hp59-hero p{color:#eaf4ff!important;font-size:15px;max-width:650px;margin:0 0 22px;line-height:1.6}
html body #autumn4[data-home59] .hp59-hero .hp59-welcome{font-size:13px;letter-spacing:.035em;margin:0}
html body #autumn4[data-home59] .hp59-primary{display:inline-flex;padding:12px 20px;border-radius:9px;background:var(--hp59-surface)!important;color:var(--hp59-text)!important;font-size:14px;font-weight:700;border:1px solid var(--hp59-line);align-items:center;min-height:44px}
html body #autumn4[data-home59] .hp59-hero-secondary{display:inline-flex;margin-left:18px;font-size:13px;color:#fff!important;padding:12px 0}
html body #autumn4[data-home59] .hp59-search{display:grid;grid-template-columns:1.6fr 1fr auto;gap:8px;background:var(--hp59-surface);border:1px solid var(--hp59-line);padding:8px;border-radius:12px;width:100%;max-width:900px;margin:24px 0 0}
html body #autumn4[data-home59] .hp59-search label{min-width:0;margin:0}
html body #autumn4[data-home59] .hp59-search input{width:100%;min-width:0;box-sizing:border-box;background:var(--hp59-soft)!important;color:var(--hp59-text)!important;border:1px solid var(--hp59-line)!important;border-radius:6px;min-height:46px;margin:0;padding:10px 13px;font:inherit;font-size:14px}
html body #autumn4[data-home59] .hp59-search input::placeholder{color:var(--hp59-muted)!important;opacity:1}
html body #autumn4[data-home59] .hp59-search button{margin:0;padding:10px 18px;border-radius:7px;background:var(--hp59-accent)!important;color:var(--hp59-surface)!important;border:0;font-size:14px;min-height:46px;white-space:nowrap}
.hp59-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap;border:0}
.hp59-feature{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:22px;align-items:start}
.hp59-main,.hp59-side{display:grid;gap:22px;min-width:0}.hp59-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.hp59-section{min-width:0;scroll-margin-top:105px}
html body #autumn4[data-home59] .hp59-section>section{min-width:0;box-sizing:border-box;background:var(--hp59-surface)!important;color:var(--hp59-text)!important;border:1px solid var(--hp59-line)!important;border-radius:15px!important;padding:20px!important;margin:0!important;box-shadow:none!important;overflow:hidden}
html body #autumn4[data-home59] .section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px;flex-wrap:wrap}
html body #autumn4[data-home59] .section-head h2{display:flex;gap:9px;align-items:center;font-size:17px!important;line-height:1.3;margin:0!important;min-width:0;overflow-wrap:anywhere}
html body #autumn4[data-home59] .section-head>a{font-size:11px;line-height:1.4;max-width:100%;white-space:normal}
.hp59-icon{display:inline-flex;flex:none}.hp59-icon svg{width:23px;height:23px}.hp59-personal-links svg{width:19px;height:19px;flex:none}
html body #autumn4[data-home59] .sv26-home-card{background:var(--hp59-soft)!important;border-color:var(--hp59-line)!important;color:var(--hp59-text)!important}
html body #autumn4[data-home59] .sv26-home-card h3{font-size:15px;line-height:1.45}.hp59-section-divider{display:flex;align-items:center;gap:18px;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--hp59-muted)}.hp59-section-divider::after{content:'';height:1px;background:var(--hp59-line);flex:1}
html body #autumn4[data-home59] .hp59-main .section-head h2{font-size:23px!important}
html body #autumn4[data-home59] .hp59-main .a4-jobs .sv26-home-card>div{padding:21px}
html body #autumn4[data-home59] .hp59-main .a4-jobs h3{font-size:20px;margin:0 0 7px}
html body #autumn4[data-home59] .hp59-main .a4-jobs strong{font-size:19px}
html body #autumn4[data-home59] .hp59-main .a4-homes .sv26-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
html body #autumn4[data-home59] .hp59-main .a4-homes .sv26-home-card{display:block}
html body #autumn4[data-home59] .hp59-main .a4-homes .sv26-home-card>img{width:100%;height:190px;object-fit:cover}
html body #autumn4[data-home59] .hp59-section .a4-market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body #autumn4[data-home59] .hp59-section .a4-market-card{min-width:0;background:var(--hp59-soft)!important;border:1px solid var(--hp59-line)!important;color:var(--hp59-text)!important}
html body #autumn4[data-home59] .hp59-section .a4-market-card img{width:100%;height:128px;object-fit:cover}.hp59-section .a4-market-card b{font-size:13px}.hp59-section .a4-market-card small{font-size:11px}
html body #autumn4[data-home59] .hp59-section .a4-withme-list{grid-template-columns:1fr!important}
html body #autumn4[data-home59] .hp59-main .a4-withme-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.hp59-cover{display:block;margin:0 0 15px;overflow:hidden;border-radius:9px}.hp59-cover img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.hp59-overview>p,.hp59-news>p{font-size:14px}.hp59-text-link{font-size:12px;font-weight:650}
.hp59-list{display:grid;gap:11px}.hp59-list>a{display:flex;gap:12px;align-items:start;padding:13px;background:var(--hp59-soft);border:1px solid var(--hp59-line);border-radius:9px;color:var(--hp59-text)!important;min-width:0}.hp59-list>a>div{min-width:0;flex:1}.hp59-list b{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.hp59-list small{display:block;font-size:11px;margin:5px 0}.hp59-list p{font-size:12px;margin:5px 0}.hp59-list strong{font-size:14px}
.hp59-personal-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hp59-personal-links>a{display:flex;gap:8px;align-items:center;padding:11px 8px;border:1px solid var(--hp59-line);border-radius:8px;background:var(--hp59-soft);font-size:12px;line-height:1.35;min-width:0}.hp59-personal-links span{overflow-wrap:anywhere}
.hp59-media-cover{display:block;border-radius:9px;overflow:hidden;margin-bottom:14px}.hp59-media-cover img{width:100%;aspect-ratio:16/8;object-fit:cover;display:block}.hp59-media-links{display:flex;flex-wrap:wrap;gap:7px}.hp59-media-links>a{display:flex;gap:5px;align-items:center;font-size:12px;padding:8px;border:1px solid var(--hp59-line);border-radius:8px;background:var(--hp59-soft)}.hp59-media-links svg{width:16px;height:16px}
.hp59-moments{min-width:0}.hp59-moments:empty{display:none}.hp59-extra{min-width:0}
/* Ten compositions, all using the current theme rather than choosing a color scheme. */
html body #autumn4[data-home59][data-home-layout="minimal"] .hp59-hero{background:var(--hp59-surface)!important;min-height:180px;border:0;padding:24px 0}
html body #autumn4[data-home59][data-home-layout="minimal"] .hp59-hero :is(h1,p,.hp59-hero-secondary){color:var(--hp59-text)!important}
#autumn4[data-home-layout="minimal"] .hp59-grid{gap:12px}#autumn4[data-home59][data-home-layout="minimal"] .hp59-section>section{border-radius:6px!important}
#autumn4[data-home-layout="minimal"] .hp59-grid :is(.hp59-cover,.hp59-media-cover,.a4-market-card>img,.a4-homes .sv26-home-card>img,.a4-feed .sv26-home-card>a>img){display:none!important}
#autumn4[data-home-layout="minimal"] .hp59-grid .a4-homes .sv26-home-card{display:block}
#autumn4[data-home-layout="portal"] .hp59-hero{min-height:370px!important}#autumn4[data-home-layout="portal"] .hp59-grid .hp59-section-feed{grid-column:span 2}
#autumn4[data-home-layout="social"] .hp59-hero{min-height:210px!important}#autumn4[data-home-layout="social"] .hp59-hero h1{font-size:38px!important}#autumn4[data-home-layout="social"] .hp59-feature{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}
#autumn4[data-home-layout="professional"] .hp59-hero{border-radius:7px!important;min-height:285px!important}#autumn4[data-home59][data-home-layout="professional"] .hp59-section>section{border-radius:7px!important}#autumn4[data-home-layout="professional"] .hp59-main .a4-jobs .sv26-home-card{border-width:0 0 1px!important;border-radius:0!important;background:transparent!important}
#autumn4[data-home-layout="gallery"] .hp59-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#autumn4[data-home-layout="gallery"] .hp59-cover img{aspect-ratio:16/10}#autumn4[data-home-layout="gallery"] .a4-homes .sv26-home-card{display:block!important}#autumn4[data-home-layout="gallery"] .a4-homes .sv26-home-card>img{width:100%!important;height:230px!important}#autumn4[data-home-layout="gallery"] .a4-market-card img{height:210px!important}
#autumn4[data-home-layout="cinema"] .hp59-hero{min-height:400px!important}#autumn4[data-home-layout="cinema"] .hp59-main .hp59-media-cover img{aspect-ratio:21/9}#autumn4[data-home-layout="cinema"] .hp59-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#autumn4[data-home-layout="cinema"] .hp59-cover img{aspect-ratio:21/9}
#autumn4[data-home-layout="magazine"] :is(h1,h2){font-family:Georgia,'Times New Roman',serif!important;letter-spacing:-.03em}#autumn4[data-home-layout="magazine"] .hp59-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#autumn4[data-home59][data-home-layout="magazine"] .hp59-section>section{border-radius:2px!important;border-width:0 0 1px!important}#autumn4[data-home-layout="magazine"] .hp59-feature{grid-template-columns:minmax(0,2fr) minmax(260px,1fr)}
#autumn4[data-home-layout="widgets"] .hp59-hero{min-height:175px!important;padding:25px!important}#autumn4[data-home-layout="widgets"] .hp59-hero h1{font-size:32px!important}#autumn4[data-home-layout="widgets"] .hp59-grid,#autumn4[data-home-layout="widgets"] .hp59-feature{gap:12px}#autumn4[data-home59][data-home-layout="widgets"] .hp59-section>section{padding:14px!important}#autumn4[data-home-layout="widgets"] .hp59-grid .hp59-cover img{aspect-ratio:21/8}
#autumn4[data-home-layout="mosaic"] .hp59-grid{grid-auto-flow:row dense}#autumn4[data-home-layout="mosaic"] .hp59-grid>:nth-child(6n+1){grid-column:span 2}#autumn4[data-home-layout="mosaic"] .hp59-cover img{aspect-ratio:16/8}#autumn4[data-home-layout="mosaic"] .hp59-hero{min-height:245px!important}
#autumn4[data-home-layout="panorama"] .hp59-hero{min-height:440px!important;border-radius:20px!important}#autumn4[data-home-layout="panorama"] .hp59-feature{margin-top:-65px;position:relative;z-index:2;padding:0 20px}#autumn4[data-home-layout="panorama"] .hp59-hero-copy{padding-bottom:45px}#autumn4[data-home-layout="panorama"] .hp59-grid{gap:24px}
/* Preferences have real visual references, native controls and a server-side preview. */
#home-settings57.hp59-settings{max-width:1320px;margin:0 auto;padding:0!important;min-width:0;background:transparent!important}.hp59-settings-head{display:flex;gap:24px;align-items:start;justify-content:space-between;margin-bottom:24px}.hp59-settings-head>div{max-width:850px}.hp59-settings h1{font-size:clamp(26px,3vw,40px);line-height:1.2;margin:8px 0 14px;color:var(--hp59-text)}.hp59-settings p{color:var(--hp59-muted);line-height:1.6;font-size:14px}.hp59-eyebrow{font-size:12px!important;letter-spacing:.05em;margin:0}.hp59-theme-note{display:flex;align-items:center;gap:16px;border:1px solid var(--hp59-line);padding:20px;border-radius:14px;background:var(--hp59-surface);margin-bottom:28px}.hp59-theme-note>span>svg{width:28px;height:28px}.hp59-theme-note>div{flex:1}.hp59-theme-note p{margin:5px 0 0}.hp59-theme-note>a{flex:none;font-size:13px}.hp59-fieldset{border:0;padding:0;margin:0 0 32px;min-width:0}.hp59-fieldset legend{font-size:21px;font-weight:750;padding:0;color:var(--hp59-text)}.hp59-fieldset>p{margin:9px 0 18px}.hp59-focus-options{display:flex;flex-wrap:wrap;gap:9px}.hp59-focus-options label{position:relative;margin:0;cursor:pointer}.hp59-focus-options input{position:absolute;opacity:0;width:1px;height:1px}.hp59-focus-options span{display:block;padding:11px 15px;border:1px solid var(--hp59-line);border-radius:9px;background:var(--hp59-surface);font-size:13px;color:var(--hp59-text)}.hp59-focus-options input:checked+span{border-color:var(--hp59-accent);box-shadow:inset 0 0 0 1px var(--hp59-accent);background:var(--hp59-soft)}.hp59-focus-options input:focus-visible+span{outline:3px solid var(--hp59-accent);outline-offset:3px}.hp59-layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.hp59-choice{min-width:0;border:1px solid var(--hp59-line);border-radius:14px;overflow:hidden;background:var(--hp59-surface)}.hp59-choice label{position:relative;display:block;cursor:pointer;margin:0}.hp59-choice input{position:absolute;left:14px;top:14px;z-index:1;width:21px;height:21px;accent-color:var(--hp59-accent)}.hp59-choice-body{display:block;border:3px solid transparent;border-radius:12px}.hp59-choice input:checked+.hp59-choice-body{border-color:var(--hp59-accent)}.hp59-choice input:focus-visible+.hp59-choice-body{outline:3px solid var(--hp59-accent);outline-offset:-3px}.hp59-choice img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:var(--hp59-soft)}.hp59-choice-copy{display:grid;gap:7px;padding:16px 18px}.hp59-choice-copy strong{font-size:17px;color:var(--hp59-text)}.hp59-choice-copy small{font-size:13px;color:var(--hp59-muted);line-height:1.5}.hp59-preview-link{display:block;padding:12px 21px 16px;font-size:13px;font-weight:650;border-top:1px solid var(--hp59-line);color:var(--hp59-accent)}.hp59-extras{display:flex;flex-wrap:wrap;gap:16px}.hp59-extras legend{margin-bottom:16px}.hp59-extras label{display:flex;gap:9px;align-items:center;font-size:14px}.hp59-extras input{width:18px;height:18px;accent-color:var(--hp59-accent)}.hp59-save{display:flex;gap:15px;align-items:center;flex-wrap:wrap;padding:20px;background:var(--hp59-surface);border:1px solid var(--hp59-line);border-radius:12px}.hp59-save-help{font-size:12px!important}.hp59-preview-notice{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:18px;background:var(--hp59-surface);border:1px solid var(--hp59-accent);border-radius:12px}.hp59-preview-notice>div{flex:1;min-width:180px}.hp59-preview-notice p{font-size:12px;margin:6px 0 0}.hp59-preview-notice form{margin:0}.hp59-preview-notice>a{font-size:13px}
@media(max-width:1100px){.hp59-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hp59-feature{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr)}html body #autumn4[data-home59] .hp59-search{grid-template-columns:1fr 1fr}html body #autumn4[data-home59] .hp59-search button{grid-column:1/-1}}
@media(max-width:760px){html body #autumn4[data-home59]{gap:16px!important}.hp59-toolbar{align-items:start;font-size:11px;gap:8px}.hp59-toolbar>a{font-size:11px;max-width:145px}.hp59-feature,#autumn4[data-home-layout] .hp59-feature{grid-template-columns:1fr!important;gap:16px!important;margin:0!important;padding:0!important}.hp59-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hp59-grid,#autumn4[data-home-layout] .hp59-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}#autumn4[data-home-layout="mosaic"] .hp59-grid>*{grid-column:auto!important}html body #autumn4[data-home59] .hp59-hero{padding:22px!important;min-height:260px!important;border-radius:14px!important}html body #autumn4[data-home59] .hp59-hero h1{font-size:32px!important}html body #autumn4[data-home59] .hp59-hero p{font-size:13px}.hp59-hero-copy{padding:0!important}.hp59-settings-head{display:block}.hp59-theme-note{align-items:start;flex-wrap:wrap}.hp59-theme-note>div{min-width:180px}.hp59-theme-note>a{margin-left:44px}.hp59-layout-options{gap:14px}.hp59-choice-copy{padding:12px}.hp59-choice-copy strong{font-size:15px}.hp59-choice-copy small{font-size:12px}}
@media(max-width:540px){.hp59-side,.hp59-grid,#autumn4[data-home-layout] .hp59-grid,.hp59-layout-options{grid-template-columns:1fr!important}html body #autumn4[data-home59] .hp59-section>section{padding:16px!important}html body #autumn4[data-home59] .hp59-search{grid-template-columns:1fr!important}html body #autumn4[data-home59] .hp59-hero h1{font-size:29px!important}html body #autumn4[data-home59] .hp59-search input{font-size:16px}html body #autumn4[data-home59] .hp59-main .a4-homes .sv26-home-cards{grid-template-columns:1fr}html body #autumn4[data-home59] .hp59-main .a4-withme-list{grid-template-columns:1fr!important}.hp59-save{padding:14px}.hp59-save button{width:100%;white-space:normal}.hp59-toolbar>span{max-width:50%}.hp59-focus-options{gap:7px}.hp59-focus-options span{padding:10px 12px}.hp59-hero-secondary{margin-left:12px!important}.hp59-section-divider{font-size:10px}}
@media(prefers-reduced-motion:reduce){#autumn4[data-home59] *,#home-settings57.hp59-settings *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:540px){#autumn4[data-home-layout] .hp59-grid>*{grid-column:auto!important}}

/* Existing content cards inherit the scoped palette in the three newer themes. */
body:is(.theme-night2,.theme-newyear,.theme-newyear-light) :is(#autumn4[data-home59],#home-settings57.hp59-settings){--au-surface:var(--hp59-surface);--au-soft:var(--hp59-soft);--au-text:var(--hp59-text);--au-muted:var(--hp59-muted);--au-line:var(--hp59-line);--au-link:var(--hp59-accent);--au-bg:var(--hp59-soft)}
html body #autumn4[data-home59] .hp59-section .a4-recommend{grid-template-columns:1fr!important;gap:10px!important}
html body #autumn4[data-home59] .hp59-section .a4-recommend>a{min-width:0;background:var(--hp59-soft)!important;border-color:var(--hp59-line)!important;color:var(--hp59-text)!important;padding:14px!important}
html body #autumn4[data-home59] .hp59-main .a4-recommend{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:540px){html body #autumn4[data-home59] .hp59-main .a4-recommend{grid-template-columns:1fr!important}}

html body #autumn4[data-home59][data-home-layout="professional"] .hp59-main .a4-jobs .sv26-home-card>div{background:transparent!important}
