/* MAGNO Gallery — quiet light workspace shared by studio, editor and guests. */
.studio-light,.studio-light.gallery-page,.studio-light.auth-page{--paper:#f7f6f2;--white:#fff;--ink:#1b1b18;--muted:#74716a;--line:rgba(30,29,25,.13);background:#f7f6f2;color:#1b1b18}
.header-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:18px;flex:1}
.refresh-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:9px 15px;border:1px solid rgba(255,255,255,.92);outline:1px solid rgba(35,34,30,.15);outline-offset:-1px;border-radius:999px;color:#25241f;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(242,243,239,.58));box-shadow:0 10px 26px rgba(42,39,32,.1),inset 0 1px #fff;backdrop-filter:blur(22px) saturate(1.35);-webkit-backdrop-filter:blur(22px) saturate(1.35);font-size:12px;letter-spacing:.04em;transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .3s ease}
.refresh-button:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgba(42,39,32,.14),inset 0 1px #fff}.refresh-button:active{transform:scale(.97)}
.refresh-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.refresh-button.is-refreshing svg{animation:magnoRefresh .65s cubic-bezier(.4,0,.2,1) infinite}@keyframes magnoRefresh{to{transform:rotate(360deg)}}
body.studio-light>header{position:sticky;top:0;z-index:80;height:88px;padding:0 3.5vw;border-bottom:1px solid rgba(30,29,25,.11);background:rgba(250,249,246,.92)!important;color:#282722!important;box-shadow:0 9px 35px rgba(42,39,32,.055);backdrop-filter:blur(25px) saturate(1.25);-webkit-backdrop-filter:blur(25px) saturate(1.25)}
body.studio-light>header:before{display:none!important}body.studio-light>header .brand-logo img{filter:none!important;opacity:1}body.studio-light>header nav{color:#282722!important}body.studio-light>header nav a,body.studio-light>header nav button{color:#282722!important;border-color:rgba(30,29,25,.15);background:transparent;box-shadow:none}body.studio-light>header .quiet{text-decoration:none}
.studio-light .dashboard{max-width:1660px}.studio-light .dashboard .heading{padding-top:18px}.studio-light .gallery-card{display:block}.studio-light .card-photo{background:#e9e7e1}.studio-light .badge{background:rgba(255,255,255,.82);border:1px solid rgba(30,29,25,.1);backdrop-filter:blur(12px)}
.studio-light.dashboard-page{--paper:#f7f6f2;--white:#fff;--ink:#1b1b18;--muted:#74716a;--line:rgba(30,29,25,.13);background:#f7f6f2!important;color:#1b1b18!important;color-scheme:light}
.studio-light.dashboard-page #app{min-height:calc(100svh - 88px);background:#f7f6f2;color:#1b1b18}
.studio-light.dashboard-page .dashboard .eyebrow,.studio-light.dashboard-page .dashboard p,.studio-light.dashboard-page .card-meta{color:#74716a}
.studio-light.dashboard-page .dashboard h1,.studio-light.dashboard-page .dashboard h2{color:#1b1b18}
.studio-light.dashboard-page .dashboard-bar,.studio-light.dashboard-page .card-meta{border-color:rgba(30,29,25,.13)}
.studio-light.dashboard-page .gallery-card{padding-bottom:4px;color:#1b1b18}
.studio-light.dashboard-page .card-photo{background:#e9e7e1;color:#74716a}
.studio-light.dashboard-page .badge{color:#1b1b18;background:rgba(255,255,255,.86);border-color:rgba(30,29,25,.12)}
.studio-light.dashboard-page .primary{color:#fff;background:#1d1d1a;border-color:#1d1d1a}
.studio-light.dashboard-page .quiet{color:#25241f}
.studio-light.dashboard-page dialog:not(:has(#lightbox)){color:#1d1d19!important;border-color:rgba(30,29,25,.13)!important;background:#f9f8f5!important;box-shadow:0 36px 110px rgba(40,36,29,.25)}
.studio-light.dashboard-page dialog:not(:has(#lightbox)) input,.studio-light.dashboard-page dialog:not(:has(#lightbox)) select{color:#1d1d19!important;border-color:rgba(30,29,25,.16)!important;background:#fff!important;color-scheme:light}
.studio-light.dashboard-page dialog:not(:has(#lightbox))>.close{color:#282722!important;border-color:rgba(30,29,25,.15)!important;background:rgba(255,255,255,.78)!important}
.studio-light.dashboard-page footer{color:#77736b;border-color:rgba(30,29,25,.11);background:#f7f6f2}
.studio-light .primary{background:#1d1d1a;color:#fff;border-color:#1d1d1a}.studio-light .primary:hover{background:#36352f}.studio-light .outline{color:#25241f;border:1px solid rgba(30,29,25,.18);background:rgba(255,255,255,.58);box-shadow:inset 0 1px #fff;backdrop-filter:blur(16px)}.studio-light .outline:hover{background:#fff}
.studio-login{width:min(1500px,100%);min-height:calc(100svh - 88px);margin:auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.72fr);gap:clamp(55px,9vw,150px);align-items:center;padding:clamp(64px,8vw,125px) clamp(24px,7vw,110px)}
.studio-login-intro{position:relative;min-width:0}.studio-login-intro>img{display:block;width:min(210px,38vw);height:auto;margin-bottom:clamp(26px,4vw,48px)}.aries-constellation{width:min(610px,100%);margin:0 0 clamp(34px,5vw,62px)}.aries-constellation svg{display:block;width:100%;height:auto;overflow:visible}.aries-constellation path{fill:none;stroke:#171714;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.aries-constellation circle{fill:#171714;stroke:#f7f6f2;stroke-width:2;vector-effect:non-scaling-stroke}.aries-constellation figcaption{margin-top:10px;color:#6e6a62;font-size:10px;letter-spacing:.28em}.studio-login-intro h1{font-size:clamp(54px,7.2vw,108px);letter-spacing:-.055em;margin-bottom:30px}.studio-login-intro p:last-child{max-width:530px;color:#6d6a63;font:clamp(16px,1.25vw,20px)/1.65 var(--serif)}
.studio-login-form{align-self:center;margin:0;padding:clamp(30px,4vw,52px);border:1px solid rgba(30,29,25,.13);border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(244,243,238,.7));box-shadow:0 36px 100px rgba(45,41,34,.11),inset 0 1px #fff;backdrop-filter:blur(28px) saturate(1.15)}
.studio-login-form h2{font-size:clamp(39px,4.2vw,58px);margin-bottom:34px}.studio-login-form label{color:#403e38}.studio-login-form input{height:60px;border-radius:15px;border-color:rgba(30,29,25,.16);background:rgba(255,255,255,.78)}.studio-login-form input:focus{border-color:#6c6a61;box-shadow:0 0 0 4px rgba(71,68,61,.06)}.studio-login-form .pin-input{text-align:center}.studio-login-form .auth-submit{border-radius:15px;min-height:58px}.studio-login-form .hint{color:#79756d}
.studio-light.gallery-page #app{background:#f8f7f4;color:#1c1c18}.studio-light.gallery-page .neural-intro{display:none}.studio-light.gallery-page .studio-actions{position:relative;z-index:25;display:flex;align-items:center;justify-content:flex-start;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:13px 3.5vw;border-bottom:1px solid rgba(30,29,25,.11);background:#fbfaf7;scrollbar-width:none}.studio-light.gallery-page .studio-actions::-webkit-scrollbar{display:none}.studio-light.gallery-page .top-button{min-width:max-content;padding:9px 14px;border:1px solid rgba(30,29,25,.14);border-radius:999px;color:#393731;background:#fff;font-size:12px}.studio-light.gallery-page .top-button.strong{color:#fff;background:#22221f;border-color:#22221f}.studio-light.gallery-page .top-button.danger{color:#8c312f;background:#fff;border-color:rgba(140,49,47,.22)}.studio-light.gallery-page .editor-studio-actions>span{margin-right:auto;color:#77736b;font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.studio-light.gallery-page .roman-watermark{color:rgba(30,29,25,.055)}.studio-light.gallery-page .gallery-topbar{top:88px;background:rgba(250,249,246,.91);border-color:rgba(30,29,25,.12);box-shadow:0 15px 44px rgba(42,39,32,.07),inset 0 1px #fff;backdrop-filter:blur(25px) saturate(1.2)}
.studio-light.gallery-page .set-nav button{color:#77736b}.studio-light.gallery-page .set-nav button small{color:#99948b}.studio-light.gallery-page .set-nav button:hover,.studio-light.gallery-page .set-nav button.active{color:#1e1e1a}.studio-light.gallery-page .set-nav button.active{border-color:#2f2e29}.studio-light.gallery-page .set-nav button.active small{color:#615d55}
.studio-light.gallery-page .guest-action-row{border-color:rgba(30,29,25,.12);background:#f8f7f4}.studio-light.gallery-page .guest-upload-cta{color:#25231f;border-color:rgba(30,29,25,.12);background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(239,237,230,.78));box-shadow:inset 0 1px #fff}.studio-light.gallery-page .guest-upload-cta span{color:#83704d}.studio-light.gallery-page .guest-upload-cta i{color:#25231f;border-color:rgba(30,29,25,.2)}
.studio-light.gallery-page .editorial-content{background:#f8f7f4}.studio-light.gallery-page .collection-heading{border-color:rgba(30,29,25,.12)}.studio-light.gallery-page .collection-heading h2,.studio-light.gallery-page .empty h2{color:#1c1c18}.studio-light.gallery-page .collection-heading p:not(.eyebrow),.studio-light.gallery-page .eyebrow,.studio-light.gallery-page .hint,.studio-light.gallery-page .selection-help,.studio-light.gallery-page .photo-name{color:#77736b}
.studio-light.gallery-page .selection-bar{border-color:rgba(30,29,25,.13)}.studio-light.gallery-page .tabs button{color:#7d7971}.studio-light.gallery-page .tabs button.active{color:#1d1d19;box-shadow:0 2px #1d1d19}.studio-light.gallery-page .processing{color:#77736b;background:#ebe9e3}
.studio-light.gallery-page .admin-selection-panel{border-color:rgba(30,29,25,.12);background:rgba(255,255,255,.65);box-shadow:inset 0 1px #fff}.studio-light.gallery-page .selection-summary-grid article{border-color:rgba(30,29,25,.12);background:#fff}.studio-light.gallery-page .selection-summary-copy span{color:#77736b}.studio-light.gallery-page .selection-summary-copy strong,.studio-light.gallery-page .admin-selection-heading h3{color:#1c1c18}
.studio-light.gallery-page .editor-toolbar{padding:13px 15px;border:1px solid rgba(30,29,25,.12);border-radius:16px;background:rgba(255,255,255,.65)}.studio-light.gallery-page .cover-button{opacity:1;left:8px;bottom:8px;border:1px solid rgba(30,29,25,.14);border-radius:999px;background:rgba(255,255,255,.86);box-shadow:0 5px 18px rgba(0,0,0,.09);backdrop-filter:blur(12px)}
.studio-light.gallery-page .photo-editor-icons{opacity:1;background:rgba(255,255,255,.88);border-color:rgba(30,29,25,.14);box-shadow:0 5px 18px rgba(0,0,0,.12)}
.studio-light.gallery-page .photo-editor-icons .photo-tool{color:#262521}.studio-light.gallery-page .photo-editor-icons .photo-tool.danger{color:#8c302b}
.studio-light .cover-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.studio-light .cover-form-actions .primary{flex:1 1 260px}.studio-light .cover-form-actions .danger{color:#8c302b}
.studio-light .cover-choice{position:relative}.studio-light .cover-choice>[data-choose-cover]{width:100%}.studio-light .cover-choice-remove{position:absolute;z-index:3;right:7px;top:7px;width:34px;height:34px;padding:8px;border:1px solid rgba(30,29,25,.16);border-radius:50%;background:rgba(255,255,255,.9);color:#8c302b;box-shadow:0 4px 15px rgba(0,0,0,.12);backdrop-filter:blur(10px)}.studio-light .cover-choice-remove svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.studio-light.gallery-page dialog:not(:has(#lightbox)):not(:has(#video-lightbox)){color:#1d1d19!important;border-color:rgba(30,29,25,.13)!important;background:#f9f8f5!important;box-shadow:0 36px 110px rgba(40,36,29,.25)}body.studio-light.gallery-page dialog:not(:has(#lightbox)):not(:has(#video-lightbox)) input,body.studio-light.gallery-page dialog:not(:has(#lightbox)):not(:has(#video-lightbox)) select{color:#1d1d19!important;border-color:rgba(30,29,25,.16)!important;background:#fff!important}body.studio-light.gallery-page dialog:not(:has(#lightbox)):not(:has(#video-lightbox))>.close{color:#282722!important;border-color:rgba(30,29,25,.15)!important;background:rgba(255,255,255,.78)!important;box-shadow:0 8px 24px rgba(40,36,29,.09),inset 0 1px #fff}.studio-light.gallery-page dialog::backdrop{background:rgba(35,33,28,.32);backdrop-filter:blur(12px)}.studio-light.gallery-page dialog:has(#lightbox),.studio-light.gallery-page dialog:has(#video-lightbox){background:#050505;color:#f5f1e9}
.studio-light.gallery-page footer{color:#77736b;border-color:rgba(30,29,25,.11);background:#f7f6f2}.cover-upload-complete{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;color:#315e45;background:#e7f1e9;font-weight:600}
.guest-page .header-actions{gap:14px}.guest-page .refresh-button{flex:0 0 auto}.guest-page .refresh-button:disabled{opacity:.75}
@media(max-width:900px){.studio-login{grid-template-columns:1fr;gap:48px;padding-top:55px}.studio-login-intro>img{margin-bottom:26px}.aries-constellation{width:min(520px,100%);margin-bottom:36px}.studio-login-intro h1{font-size:clamp(50px,11vw,78px)}.studio-login-form{width:min(620px,100%)}.studio-light.gallery-page .gallery-topbar{top:80px}}
@media(max-width:720px){body.studio-light>header,body.guest-page>header{height:auto;min-height:78px;padding:12px 16px;align-items:flex-start;gap:12px}.header-actions{align-items:flex-start;gap:9px}.studio-light .brand-logo,.guest-page .brand-logo{width:52px;height:52px;flex:0 0 52px}.studio-light .brand-logo img,.guest-page .brand-logo img{width:52px}.studio-light .header-actions nav{gap:9px;flex-wrap:wrap;justify-content:flex-end}.refresh-button{min-width:43px;width:43px;height:43px;padding:0}.refresh-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.guest-page .header-actions{display:grid;grid-template-columns:minmax(0,1fr) 43px;width:100%}.guest-page .guest-navigation{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.studio-login{min-height:calc(100svh - 78px);padding:46px 20px 65px}.studio-login-intro h1{font-size:48px}.studio-login-intro p:last-child{font-size:15px}.studio-login-form{padding:28px 20px;border-radius:23px}.studio-light.gallery-page .gallery-topbar{top:78px}.studio-light.gallery-page .studio-actions{padding-inline:16px}.studio-light.gallery-page .editor-studio-actions>span{display:none}}
@media(prefers-reduced-motion:reduce){.refresh-button,.refresh-button svg{transition:none!important;animation:none!important}}

/* Keep the private-gallery PIN field clearly visible on the light login card. */
body.studio-light .studio-login-form input{border:1px solid #bbb6ac;background:#e3e0d8;color:#1b1b18;box-shadow:inset 0 2px 5px rgba(35,32,26,.1),0 1px 0 rgba(255,255,255,.92);transition:border-color .25s ease,background .25s ease,box-shadow .25s ease}
body.studio-light .studio-login-form input:hover{border-color:#9f9a90;background:#ddd9d0}
body.studio-light .studio-login-form input:focus{border-color:#4e4c45;background:#f1eee7;box-shadow:0 0 0 4px rgba(71,68,61,.12),inset 0 1px 2px rgba(35,32,26,.06);outline:none}

/* La portada del administrador conserva el lenguaje claro del resto del estudio. */
.studio-light.gallery-page.role-admin .cover{background:#eeeae2;color:#1b1b18}
.studio-light.gallery-page.role-admin .cover:before{background:linear-gradient(145deg,#e8e5dd,#fbfaf7);opacity:1}
.studio-light.gallery-page.role-admin .cover.has-photo:before{opacity:0}
.studio-light.gallery-page.role-admin .cover.has-photo:after{background:linear-gradient(180deg,rgba(5,5,4,.02) 0,rgba(5,5,4,.07) 46%,rgba(5,5,4,.62) 100%)}
.studio-light.gallery-page.role-admin .cover-copy,.studio-light.gallery-page.role-admin .cover-scroll{color:#1b1b18;text-shadow:none}
.studio-light.gallery-page.role-admin .cover-copy .eyebrow{color:rgba(27,27,24,.68)}

/* Portada editorial limpia: texto sobre la fotografía, sin cristal ni brillo. */
.studio-light.gallery-page .cover.has-photo .cover-copy{isolation:isolate;width:min(92vw,1500px);padding:0;color:#fff;text-shadow:none!important;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.studio-light.gallery-page .cover.has-photo .cover-copy:after{display:none!important}
.studio-light.gallery-page .cover.has-photo .cover-copy .eyebrow,.studio-light.gallery-page .cover.has-photo .cover-copy>p:last-child{color:rgba(255,255,255,.86);text-shadow:none}
.studio-light.gallery-page .cover.has-photo .cover-copy h1{color:#fff;text-shadow:none}
.studio-light.gallery-page .cover.has-photo .cover-scroll{color:rgba(255,255,255,.9);text-shadow:none}
@media(max-width:640px){.studio-light.gallery-page .cover.has-photo .cover-copy{width:calc(100vw - 44px);padding:0;margin-bottom:11vh}}

/* Compartir se resume en dos destinos: invitados y enlace privado. */
.share-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:26px 0}.share-access-card{padding:20px;border:1px solid rgba(30,29,25,.13);border-radius:20px;background:rgba(255,255,255,.66);box-shadow:inset 0 1px #fff}.share-access-card>span{display:block;margin-bottom:8px;color:#77736b;font-size:9px;letter-spacing:.18em}.share-access-card h3{margin-bottom:10px;font-size:27px}.share-access-card>p{color:#69655d;font-size:13px}.share-access-card .actions{margin-top:12px}.share-access-card .pin-grid{grid-template-columns:1fr 1fr}.share-access-card .pin-grid>div{padding:15px}.share-access-card .pin-grid strong{font-size:31px}.admin-access-note{margin-top:18px;padding-top:17px;border-top:1px solid rgba(30,29,25,.12)}
@media(max-width:760px){.share-access-grid{grid-template-columns:1fr}.share-access-card .pin-grid{grid-template-columns:1fr 1fr}}

/* PIN de cliente y editor: contraste editorial sobre el modal claro. */
.studio-light.gallery-page dialog .pin-grid>div{color:#1b1b18;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(235,232,224,.82));border:1px solid rgba(30,29,25,.16);box-shadow:inset 0 1px rgba(255,255,255,.95),0 14px 34px rgba(43,39,31,.08);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.studio-light.gallery-page dialog .pin-grid span{color:#555149;font-weight:600}
.studio-light.gallery-page dialog .pin-grid strong{color:#171714;opacity:1}
.studio-light.gallery-page dialog .pin-grid small{color:#69655d}
/* Ajustes: sección de invitados */
.guest-settings{margin:22px 0 8px;padding:18px 18px 6px;border:1px solid rgba(30,29,25,.13);border-radius:18px;background:rgba(255,255,255,.6)}
.guest-settings legend{padding:0 8px;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#77736b}
.guest-settings>.hint{margin:0 0 14px}
.guest-settings .check-row{display:flex;align-items:flex-start;gap:12px;margin:0 0 14px;cursor:pointer}
.guest-settings .check-row input{width:20px;min-height:20px;height:20px;margin:2px 0 0;flex:0 0 20px;accent-color:#1b1b18}
.guest-settings .check-row span{display:grid;gap:2px;font-size:14px}
.guest-settings small{display:block;margin-top:4px;color:#77736b;font-size:12px;line-height:1.4}
.guest-limits{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.guest-limits label{margin-bottom:16px;font-size:13px}
.share-access-card .pin-grid:has(>div:only-child){grid-template-columns:1fr}
@media(max-width:560px){.guest-limits{grid-template-columns:1fr}}
