/* Shared powder/lavender surfaces; account, home, news and feedback. */
:root{--xp-panel:rgba(255,248,246,.32);--xp-field:rgba(255,251,249,.42);--xp-dialog:rgba(250,239,241,.88);--xp-ink:#5d1627;--xp-muted:#935e68;--xp-line:rgba(255,255,255,.78);--xp-button:linear-gradient(135deg,#fffafad1,#f1bacb70 55%,#fff0f28c);--xp-shadow:inset 0 1px 1px #fff9,0 8px 25px #9c576117;--xp-autofill:#f8eef1;--mj-glass:rgba(255,250,248,.12);--mj-optical:linear-gradient(135deg,#ffffff39,#ffffff08 38%,#fff4f710 76%,#ffffff24)}
:root.mj-dark{--xp-panel:rgba(40,30,53,.25);--xp-field:rgba(55,43,70,.34);--xp-dialog:rgba(31,23,42,.92);--xp-ink:#f4eafb;--xp-muted:#c8b8d9;--xp-line:rgba(222,199,245,.4);--xp-button:linear-gradient(135deg,#b8a2cd69,#725b8a70 55%,#a88eb549);--xp-shadow:inset 0 1px 1px #f1dbff35,0 8px 25px #08041030;--xp-autofill:#30253c;--mj-glass:rgba(36,26,51,.065);--mj-optical:linear-gradient(135deg,#efddff18,#ffffff04 38%,#a687ca08 76%,#ebd8ff12)}
/* Forms use the same material regardless of the route opening them. */
:root #dlg.account-dialog,:root #dlg.xp-dialog{color:var(--xp-ink)!important;background:var(--xp-dialog)!important;border:1px solid var(--xp-line)!important;box-shadow:var(--xp-shadow),0 24px 80px #190c3029!important;backdrop-filter:blur(24px)!important;-webkit-backdrop-filter:blur(24px)!important;border-radius:24px!important}
:root #dlg.account-dialog .account-form h2{font-weight:350;letter-spacing:-.03em;line-height:1.25;min-height:0;padding-right:24px}
:root #dlg.account-dialog .account-form .btn,:root .account-form .btn,:root .profile-page .profile-primary,:root #dlg.xp-dialog .btn{background:var(--xp-button)!important;color:var(--xp-ink)!important;border:1px solid var(--xp-line)!important;box-shadow:var(--xp-shadow)!important;border-radius:24px;font-weight:450}
:root #dlg.account-dialog input,:root .profile-page input,:root .profile-page select,:root #dlg.xp-dialog input,:root #dlg.xp-dialog textarea,:root #dlg.xp-dialog select{background:var(--xp-field)!important;border:1px solid var(--xp-line)!important;color:var(--xp-ink)!important;border-radius:13px;box-shadow:inset 0 1px 1px #fff3}
:root #dlg.account-dialog input:-webkit-autofill,:root .profile-page input:-webkit-autofill{-webkit-text-fill-color:var(--xp-ink)!important;-webkit-box-shadow:0 0 0 1000px var(--xp-autofill) inset!important;caret-color:var(--xp-ink)}
:root #dlg.account-dialog input:focus,:root .profile-page input:focus,:root #dlg.xp-dialog :is(input,textarea,select):focus{outline:1px solid var(--mj-accent);outline-offset:2px}
:root #dlg.account-dialog .account-links button{color:var(--xp-muted)!important}:root #dlg.account-dialog .account-hint,:root #dlg.account-dialog .account-status{color:var(--xp-muted)}
:root #dlg.account-dialog .dh .ib,:root #dlg.xp-dialog .dh .ib{background:var(--xp-field)!important;color:var(--xp-ink)!important;border:1px solid var(--xp-line);border-radius:14px}
/* Account routes share the Studio/MoJeCut shell; all existing account handlers remain. */
.mj-workspace .profile-page:not(.owner-page){max-width:1400px;margin:12px auto 26px 12px;padding:28px;color:var(--xp-ink);border:1px solid var(--studio-rim);border-radius:22px;background:var(--surf);box-shadow:var(--studio-shadow);backdrop-filter:blur(12px)}
.mj-workspace .profile-page:not(.owner-page) h1{font-size:34px;font-weight:300;letter-spacing:-.035em}.mj-workspace .profile-page h2{font-weight:400;font-size:21px}.mj-workspace .profile-card{background:var(--xp-panel);border-color:var(--xp-line);box-shadow:var(--xp-shadow);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:22px}.mj-workspace .profile-card p,.mj-workspace .profile-subtitle,.mj-workspace .profile-small{color:var(--xp-muted)}.mj-workspace .profile-tabs a{color:var(--xp-muted);font-weight:400;border:1px solid transparent}.mj-workspace .profile-tabs a[aria-current=page],.mj-workspace .profile-themes button[aria-pressed=true]{background:var(--xp-field);color:var(--xp-ink);border-color:var(--xp-line);box-shadow:var(--xp-shadow)}.mj-workspace .profile-balance{font-weight:350;font-size:36px}.mj-workspace .profile-link{color:var(--xp-muted)}
/* A smaller foreground preview leaves space around the original glass sculpture. */
.mj-home .mj-create.glass{background:var(--mj-optical),var(--mj-glass)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
:root:not(.mj-dark) .mj-page .mj-final.glass{background:var(--mj-optical),rgba(255,246,242,.33)!important;color:var(--mj-ink)!important;border-color:#ffffffd9;box-shadow:var(--mj-glass-shadow)}:root:not(.mj-dark) .mj-final:before{background:radial-gradient(ellipse at 85% 50%,#e4b7c033,transparent 65%)}:root:not(.mj-dark) .mj-final h2{font-weight:350}:root:not(.mj-dark) .mj-final .mj-primary{color:var(--mj-ink)!important}
/* The drawer has one scrolling body; neither its header nor the language badge can overlap links. */
:root body #dlg.mj-side-drawer{display:none;flex-direction:column;overflow:hidden!important;max-height:100dvh!important}:root body #dlg.mj-side-drawer[open]{display:flex!important}:root body #dlg.mj-side-drawer .dh{position:relative!important;flex:0 0 auto;top:auto;min-height:76px;padding:18px 20px!important;display:flex;align-items:center;justify-content:space-between;background:var(--nav-glass)!important;border-bottom:1px solid var(--nav-rim);z-index:2}:root body #dlg.mj-side-drawer .dh h2{margin:0;font-size:24px;font-weight:400}:root body #dlg.mj-side-drawer .dh .ib{position:static!important;width:44px;height:44px;flex:none}:root body #dlg.mj-side-drawer .mj-mobile-menu{position:relative!important;top:auto!important;flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px 16px 24px!important;display:flex!important;flex-direction:column;align-items:stretch;gap:4px}:root body #dlg.mj-side-drawer .mj-mobile-menu>.nb{position:relative!important;flex:none}:root body #dlg.mj-side-drawer .mj-language-trigger{position:relative!important;inset:auto!important;transform:none!important;align-self:flex-start;margin:14px 16px 4px!important;padding:0!important;display:flex!important;align-items:center;justify-content:center}:root body .mj-language-trigger svg.mj-language-badge{position:static!important;inset:auto!important;transform:none!important;display:block;width:32px;height:32px;margin:0!important;flex:none;overflow:visible}
/* News and a private, persistent suggestion book. */
.xp-news-grid:has(>.xp-news-card:only-child){grid-template-columns:1fr}.xp-news-grid:has(>.xp-news-card:only-child) .xp-news-card{max-width:none}.xp-news-grid:has(>.xp-news-card:only-child) .xp-news-card p{max-width:900px}
.xp-news{margin:28px 54px 8px;color:var(--mj-ink);scroll-margin-top:100px}.xp-news-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.xp-news-head p{font-size:14px;color:var(--mj-muted);margin:7px 0 0}.xp-news-actions{display:flex;flex-wrap:wrap;gap:8px}.xp-news-actions button{font-size:12px}.xp-news-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.xp-news-filters button{padding:8px 14px;border:1px solid var(--mj-line);border-radius:20px;font-size:12px;background:var(--mj-glass);color:var(--mj-muted);cursor:pointer}.xp-news-filters button[aria-pressed=true]{background:var(--mj-optical),var(--mj-glass);border-color:var(--mj-accent);color:var(--mj-ink)}.xp-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.xp-news-card{padding:22px!important;display:flex;flex-direction:column;gap:12px;min-width:0}.xp-news-card h3{font-size:20px!important;font-weight:350!important}.xp-news-card p{font-size:13px;color:var(--mj-muted);line-height:1.65;margin:0;white-space:pre-wrap}.xp-news-card button{align-self:flex-start;margin-top:auto}.xp-news-meta{display:flex;gap:10px;align-items:center;font-size:10px;color:var(--mj-muted);flex-wrap:wrap}.xp-news-empty{padding:24px;border:1px solid var(--mj-line);border-radius:18px;color:var(--mj-muted);font-size:14px;line-height:1.6}.xp-news-status{font-size:12px;color:var(--mj-muted);margin-top:12px}.xp-news-footer{display:flex;justify-content:flex-end;margin-top:14px}
#dlg.xp-dialog{width:min(720px,calc(100vw - 28px))!important;max-height:90dvh!important;overflow:auto}#dlg.xp-dialog .dh{position:sticky;top:0;background:var(--xp-dialog);backdrop-filter:blur(18px);z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px}#dlg.xp-dialog .dh h2{font-weight:350;font-size:23px;margin:0}#dlg.xp-dialog .db{display:grid;gap:18px;padding:24px}#dlg.xp-dialog form{display:grid;gap:16px}#dlg.xp-dialog .fl{color:var(--xp-ink);font-size:13px}#dlg.xp-dialog textarea{width:100%;min-height:130px;padding:12px;font:inherit;line-height:1.6;resize:vertical}#dlg.xp-dialog input,#dlg.xp-dialog select{padding:11px;min-height:42px;font:inherit}#dlg.xp-dialog p{line-height:1.65;margin:0}#dlg.xp-dialog .xp-hint{font-size:12px;color:var(--xp-muted)}.xp-entry{padding:16px;border:1px solid var(--xp-line);background:var(--xp-panel);border-radius:15px;display:grid;gap:9px}.xp-entry h3{margin:0;font-size:16px;font-weight:450}.xp-entry p{white-space:pre-wrap;overflow-wrap:anywhere}.xp-entry small{color:var(--xp-muted);font-size:11px}.xp-entry .btn{justify-self:start}.xp-entry-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.xp-article{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;color:var(--xp-ink)}.xp-article-meta{font-size:12px;color:var(--xp-muted)}.xp-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.xp-manager-list{display:grid;gap:12px}.xp-dialog button:focus-visible,.xp-news button:focus-visible{outline:2px solid var(--mj-accent);outline-offset:3px}
@media(max-width:1100px){.xp-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xp-news-head{align-items:flex-start;flex-direction:column}}
@media(max-width:767px){.mj-workspace .profile-page:not(.owner-page){margin:12px 8px 100px;padding:22px 15px}.mj-workspace .profile-page:not(.owner-page) h1{font-size:29px}.xp-news{margin:22px 20px 8px}.xp-news-grid{grid-template-columns:1fr}.xp-news-actions{width:100%}.xp-news-head h2{font-size:28px}.xp-news-card{padding:20px!important}.xp-columns{grid-template-columns:1fr}#dlg.xp-dialog .db{padding:20px}.mj-final{gap:16px!important}.mj-final h2{font-size:25px!important}}
/* One compact coordinate system for the clean backdrop, framed photo and video. */
:root{--mj-hero:url('hero-clean-light.png')}:root.mj-dark{--mj-hero:url('hero-clean-dark.png')}
.mj-home .mj-hero{min-height:680px;padding:106px 42px 24px}.mj-home .mj-hero-content{max-width:370px}.mj-home .mj-hero h1{font-size:clamp(36px,3.3vw,44px);line-height:1.03;letter-spacing:-.045em;margin-bottom:10px}.mj-home .mj-hero-sub{font-size:15px;margin-bottom:15px}.mj-home .mj-eyebrow{font-size:9px;margin-bottom:11px}.mj-home .mj-modes{width:340px;margin-bottom:9px}.mj-home .mj-modes button{padding:7px 10px}.mj-home .mj-create{max-width:370px;padding:12px!important;gap:8px}.mj-home .mj-create textarea{min-height:54px;padding:8px 10px}.mj-home .mj-create select{min-height:31px;padding:6px 9px}.mj-home .mj-materials{height:36px}.mj-home .mj-materials img{width:49px;height:36px}.mj-home .mj-materials button{width:40px;height:36px}.mj-home .mj-create .mj-primary{min-height:38px;padding:8px 17px}.mj-home .mj-hero-art{inset:0;opacity:1;background-size:contain!important;background-position:right center!important}
.mj-home .mj-hero-slot{position:absolute;inset:0;width:100%;height:100%;max-height:none;border-radius:0;transform:none;box-shadow:none;background:transparent;pointer-events:none;overflow:hidden;z-index:0}.mj-home .mj-hero-slot:after{display:none}.mj-hero-slot>.mj-video-frame{display:block;width:100%;height:100%;overflow:visible}.mj-frame-contents{position:relative;width:100%;height:100%;overflow:hidden;background:#14101c}.mj-home .mj-hero-view{top:auto;bottom:17%;right:5%;font-size:11px}
.mj-home .mj-section{padding:25px 42px 0}.mj-home .xp-news{margin:24px 42px 6px}.mj-home .mj-marquee{padding:14px 38px;letter-spacing:.19em;font-size:clamp(14px,1.7vw,22px)}.mj-home .mj-media-card{flex-basis:194px}.mj-home .mj-video-gallery .mj-media-card:nth-child(3n){flex-basis:315px}.mj-home .mj-media-card>button{height:222px}.mj-home .mj-gallery{margin:0 -42px}.mj-home .mj-track{padding-left:42px;padding-right:42px}.mj-home .mj-page h2{font-size:clamp(24px,2.35vw,35px)}.mj-home .mj-final{margin-left:42px;margin-right:42px;min-height:94px;padding:20px 28px}
@media(min-width:768px) and (max-width:1499px){.mj-home .mj-hero{padding-top:138px!important}}
@media(max-width:767px){.mj-home .mj-hero{min-height:0;padding:145px 20px 22px;display:flex;flex-direction:column}.mj-home .mj-hero-content{max-width:none}.mj-home .mj-hero h1{font-size:36px;max-width:330px}.mj-home .mj-hero-sub{font-size:14px}.mj-home .mj-hero-art,.mj-home .mj-hero-slot{inset:auto 0 auto 0;top:260px;width:100%;height:280px;max-height:none}.mj-home .mj-hero-art:after{background:linear-gradient(0deg,var(--mj-bg),transparent 18%),linear-gradient(180deg,var(--mj-bg),transparent 14%)}.mj-home .mj-modes{margin-top:280px;width:100%}.mj-home .mj-create{max-width:none}.mj-home .mj-hero-view{top:520px;bottom:auto;right:7%;font-size:10px}.mj-home .mj-section{padding:22px 20px 0}.mj-home .xp-news{margin:22px 20px 6px}.mj-home .mj-gallery{margin:0 -20px}.mj-home .mj-track{padding-left:20px;padding-right:20px}.mj-home .mj-media-card{flex-basis:170px}.mj-home .mj-media-card>button{height:200px}.mj-home .mj-video-gallery .mj-media-card:nth-child(3n){flex-basis:255px}.mj-home .mj-final{margin:20px 20px 0}.mj-home .mj-marquee{padding:13px 20px;font-size:15px;letter-spacing:.1em}}
/* Keep both media modes out of the text column. The two layers remain identical. */
.mj-home .mj-hero-art{background-repeat:no-repeat!important}
@media(min-width:768px){.mj-home .mj-hero-art,.mj-home .mj-hero-slot{inset:94px 0 22px auto;width:auto;height:calc(100% - 116px);aspect-ratio:3/2;max-width:78%;max-height:none}.mj-home .mj-hero-art{mask-image:linear-gradient(90deg,transparent,#000 24%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 24%)}.mj-home .mj-hero-view{bottom:19%;right:5%}}
@media(min-width:768px) and (max-width:1100px){.mj-home .mj-hero-content,.mj-home .mj-create{max-width:330px}.mj-home .mj-hero h1{font-size:39px}.mj-home .mj-hero-art,.mj-home .mj-hero-slot{top:126px;height:calc(100% - 148px);max-width:75%}}
/* Dark controls are thin clear glass, not a heavy opaque plum tile. */
.mj-dark .mj-home .mj-create.glass{background:linear-gradient(135deg,#f0ddff16,#ffffff02 42%,#d6b7f30b 75%,#eadcff0e),rgba(28,19,39,.035)!important;border-color:#dbc7f06b!important;box-shadow:inset 0 1px 1px #f4e8ff60,inset 0 -1px 1px #c6a7ea15,0 9px 28px #0804101a!important;backdrop-filter:blur(9px) saturate(112%)!important;-webkit-backdrop-filter:blur(9px) saturate(112%)!important}
.mj-dark .mj-home .mj-create :is(input,textarea,select){background:linear-gradient(135deg,#f2e7ff12,#ffffff03),rgba(33,24,46,.035)!important;border-color:#dfcdf54d;box-shadow:inset 0 1px 1px #f7edff24;backdrop-filter:blur(5px) saturate(110%);-webkit-backdrop-filter:blur(5px) saturate(110%)}
.mj-dark .mj-home .mj-create .mj-primary{background:linear-gradient(135deg,#eee0ff2e,#c1a2df17 52%,#ecddff14)!important;border-color:#e5d4fa70!important;box-shadow:inset 0 1px 2px #f7edff70,inset 0 -1px 2px #d6c3ed20,0 4px 16px #c0a0e011!important}

/* Compact previews; complete news remains in the Read dialog. */
.xp-news-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
@media(max-width:767px){.xp-news-card{padding:16px!important;gap:9px}.xp-news-card h3{font-size:18px!important;line-height:1.25}.xp-news-card p{font-size:12px;line-height:1.5;-webkit-line-clamp:2}.xp-news-card button{min-height:36px;padding:7px 13px}.xp-news-grid{gap:12px}}
