:root{
  --bg:#031126;--bg2:#071a35;--navy:#062A5E;--navy2:#071f4e;
  --panel:#081a34;--panel2:#0a2142;--line:#26456f;--text:#f7fbff;--muted:#96aac7;
  --cyan:#24d9f1;--blue:#2797ff;--violet:#8b5cf6;--pink:#eb40e1;--green:#72e6a0;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;min-height:100vh;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:
  radial-gradient(900px 520px at 84% 9%,rgba(39,151,255,.13),transparent 62%),
  radial-gradient(760px 500px at 17% 20%,rgba(139,92,246,.10),transparent 58%),
  linear-gradient(180deg,#031126 0%,#06162d 46%,#031126 100%)}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
button{cursor:pointer}
.shell{width:min(1320px,calc(100% - 36px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:linear-gradient(90deg,#062A5E,#071f4e 55%,#062A5E);border-bottom:1px solid rgba(78,121,186,.35);box-shadow:0 8px 32px rgba(0,0,0,.18)}
.nav-shell{width:min(1380px,calc(100% - 28px));height:78px;margin:auto;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:8px;min-width:0}.brand-icon{width:auto;max-width:180px;height:50px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(34,211,238,.22))}
.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font-size:20px;letter-spacing:-.02em}.brand-copy em{font-style:normal;background:linear-gradient(100deg,var(--cyan),var(--pink));-webkit-background-clip:text;color:transparent}.brand-copy small{margin-top:6px;color:#7188ad;letter-spacing:.23em;font-size:8px}
.desktop-nav{display:flex;align-items:stretch;gap:8px;height:100%;margin-left:auto}.nav-link{position:relative;display:grid;place-items:center;padding:0 14px;color:#a8b8d3;font-weight:700;font-size:13px}.nav-link:hover{color:#fff}.nav-link.active{color:#fff}.nav-link.active:after{content:"";position:absolute;height:2px;left:13px;right:13px;bottom:0;background:linear-gradient(90deg,var(--cyan),var(--pink));box-shadow:0 0 18px var(--cyan)}
.header-status{display:flex;align-items:center;gap:7px;border:1px solid rgba(73,116,181,.4);border-radius:999px;padding:8px 11px;color:#8fa5c7;font-size:9px;font-weight:850;letter-spacing:.09em}.header-status .dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green)}
.hero{min-height:650px;display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center;padding:72px 0 55px}.eyebrow{color:var(--cyan);font-size:11px;font-weight:900;letter-spacing:.17em}.hero h1{margin:13px 0 18px;font-size:clamp(48px,6vw,82px);line-height:.96;letter-spacing:-.058em}.hero h1 span{background:linear-gradient(100deg,#fff 5%,#8ecbff 48%,#d989ff);-webkit-background-clip:text;color:transparent}.hero-copy>p{max-width:720px;color:#a5b5cf;font-size:15px;line-height:1.78;margin:0 0 28px}
.open-box{max-width:720px;border:1px solid #2a4d79;background:rgba(5,21,45,.74);border-radius:22px;padding:16px;box-shadow:inset 0 0 38px rgba(37,99,235,.04)}.open-box label{display:block;margin-bottom:9px;color:#7f97ba;font-size:9px;font-weight:900;letter-spacing:.16em}.code-row{display:grid;grid-template-columns:1fr auto;gap:10px}.code-row input{height:52px;min-width:0;border:1px solid #365f91;border-radius:14px;outline:0;background:#06172f;color:#fff;padding:0 15px;font-size:15px;text-transform:uppercase}.code-row input:focus{border-color:#37c7f2;box-shadow:0 0 0 3px rgba(55,199,242,.08)}.code-row button{height:52px;border:0;border-radius:14px;padding:0 20px;background:linear-gradient(115deg,#147df5,#7c53f4,#e13cdc);color:#fff;font-size:11px;font-weight:900;letter-spacing:.04em}.hint{margin-top:9px;color:#637c9f;font-size:9px;line-height:1.45}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.hero-actions a{min-height:46px;padding:0 17px;border-radius:14px;display:flex;align-items:center;font-size:10px;font-weight:900;letter-spacing:.04em}.primary-link{background:#0b264d;border:1px solid #32669f;color:#d8eaff}.secondary-link{color:#8ea6c8;border:1px solid #223f67}
.hero-visual{position:relative;min-height:500px}.orb{position:absolute;border-radius:50%;filter:blur(70px)}.orb1{width:280px;height:280px;background:rgba(34,211,238,.14);left:8%;top:5%}.orb2{width:300px;height:300px;background:rgba(217,70,239,.14);right:0;bottom:2%}
.device-card{position:absolute;border:1px solid #335f99;border-radius:34px;background:linear-gradient(150deg,rgba(8,35,77,.95),rgba(4,16,38,.96));box-shadow:0 38px 90px rgba(0,0,0,.38),inset 0 0 50px rgba(55,112,210,.06)}.back-card{width:420px;height:290px;right:5%;top:15%;transform:rotate(7deg);opacity:.55}.mini-bar{height:48px;border-bottom:1px solid #24446e}.mini-grid{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini-grid span{aspect-ratio:4/3;border-radius:14px;background:linear-gradient(135deg,#0e2e5f,#4c247d)}
.front-card{width:330px;height:380px;left:8%;top:78px;padding:38px;display:flex;flex-direction:column;justify-content:end}.front-card img{position:absolute;top:38px;left:38px;width:86px;height:86px;object-fit:contain}.front-card strong{font-size:38px;line-height:.98;letter-spacing:-.04em}.front-card small{margin-top:13px;color:#65d8ef;letter-spacing:.19em;font-size:9px}
.featured{padding:58px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:20px}.section-head h2{margin:7px 0 0;font-size:34px;letter-spacing:-.04em}.section-head>p{max-width:520px;margin:0;color:#8196b6;font-size:11px;line-height:1.6}
.event-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.event-card{border:1px solid #2b4c76;border-radius:24px;overflow:hidden;background:linear-gradient(160deg,#071a35,#051328);box-shadow:0 22px 48px rgba(0,0,0,.18);transition:.2s transform,.2s border-color}.featured-card:hover{transform:translateY(-3px);border-color:#4d7fbd}.event-cover,.placeholder-cover{position:relative;aspect-ratio:16/8;overflow:hidden;background:#07172e}.event-cover img{width:100%;height:100%;object-fit:cover}.event-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 48%,rgba(3,12,28,.66))}.event-badge{position:absolute;z-index:2;left:15px;top:15px;border:1px solid rgba(255,255,255,.5);border-radius:999px;padding:7px 10px;background:rgba(5,18,39,.5);backdrop-filter:blur(8px);font-size:8px;font-weight:900;letter-spacing:.12em}.placeholder-cover{display:grid;place-items:center;background:radial-gradient(circle at center,rgba(36,217,241,.07),transparent 44%),#06152d}.placeholder-cover img{width:108px;height:108px;opacity:.28}
.event-body{padding:18px}.event-date{color:#46caee;font-size:9px;font-weight:900;letter-spacing:.13em}.event-body h3{margin:8px 0 7px;font-size:22px}.event-meta{color:#7f94b2;font-size:10px}.event-open{margin-top:16px;color:#d9eaff;font-size:10px;font-weight:900;letter-spacing:.04em}.event-open span{margin-left:7px;color:#6bcdff}.event-open.muted{color:#617b9e}
.how{padding:65px 0 90px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.steps article{padding:25px;border:1px solid #28466f;border-radius:22px;background:rgba(7,24,49,.72)}.steps span{color:#41c8eb;font:900 10px/1 ui-monospace,monospace;letter-spacing:.14em}.steps h3{margin:18px 0 8px;font-size:19px}.steps p{margin:0;color:#8196b6;font-size:11px;line-height:1.65}
footer{border-top:1px solid rgba(56,88,130,.35);background:#031023}.footer-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;color:#647d9f;font-size:10px}.footer-brand{display:flex;align-items:center;gap:8px;color:#95aac7;font-weight:800}.footer-brand img{width:30px;height:30px;object-fit:contain}
.toast-stack{position:fixed;z-index:100;right:17px;bottom:18px;display:grid;gap:7px;max-width:min(360px,calc(100vw - 34px))}.toast{padding:11px 13px;border:1px solid #37577e;border-radius:13px;background:#07162c;color:#d7e7fa;box-shadow:0 15px 40px rgba(0,0,0,.32);font-size:11px;line-height:1.45}.toast.warn{border-color:rgba(251,191,36,.32);color:#f6dd99}
@media(max-width:980px){.hero{grid-template-columns:1fr;padding-top:50px}.hero-visual{min-height:400px}.desktop-nav{display:none}.header-status{margin-left:auto}.event-grid{grid-template-columns:1fr}.back-card{right:12%}.front-card{left:18%}}
@media(max-width:720px){
  .shell{width:min(100% - 22px,1320px)}.nav-shell{height:66px}.brand{min-width:0}.brand-icon{width:auto;max-width:150px;height:43px;object-fit:contain}.brand-copy strong{font-size:17px}.brand-copy small{font-size:7px}.header-status{display:none}
  .hero{padding:42px 0 34px;min-height:auto;gap:18px}.hero h1{font-size:44px}.hero-copy>p{font-size:12px}.code-row{grid-template-columns:1fr}.code-row button{width:100%}.hero-visual{min-height:320px}.back-card{width:300px;height:210px;right:0;top:35px}.front-card{width:235px;height:270px;left:8px;top:25px;padding:25px;border-radius:26px}.front-card img{width:65px;height:65px;left:25px;top:25px}.front-card strong{font-size:27px}.section-head{align-items:start;flex-direction:column;gap:10px}.section-head h2{font-size:28px}.steps{grid-template-columns:1fr}.event-body h3{font-size:19px}
}

/* R1.6.5 Gallery Home owner access. Public album access remains unchanged. */
.owner-access-button{height:36px;border:1px solid rgba(96,165,250,.45);border-radius:999px;background:rgba(7,27,58,.72);color:#cfe4ff;padding:0 12px;font-size:9px;font-weight:900;letter-spacing:.08em;white-space:nowrap}
.owner-access-button:hover{border-color:#5cc8ff;color:#fff}
.owner-dashboard{padding:58px 0 70px}.owner-dashboard[hidden]{display:none!important}.owner-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.owner-dashboard-head h1{margin:8px 0 7px;font-size:clamp(34px,5vw,58px);letter-spacing:-.045em}.owner-dashboard-head p{margin:0;color:#91a7c7;font-size:13px;line-height:1.65}.owner-logout-button{height:42px;border:1px solid #355b89;border-radius:13px;background:#081d3b;color:#cfe2fa;padding:0 15px;font-size:10px;font-weight:900;letter-spacing:.05em}
.owner-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;grid-auto-rows:1fr;gap:18px}.owner-event-card{overflow:hidden;border:1px solid #2c4f7b;border-radius:22px;background:linear-gradient(160deg,#081c38,#07162d);box-shadow:0 20px 54px rgba(0,0,0,.20);transition:.18s ease}.owner-event-card:hover{transform:translateY(-3px);border-color:#4484c7}.owner-event-cover{aspect-ratio:16/10;background:#06152b;overflow:hidden}.owner-event-cover img{width:100%;height:100%;object-fit:cover;display:block}.owner-event-body{padding:16px}.owner-event-date{color:#64ddff;font-size:9px;font-weight:900;letter-spacing:.11em}.owner-event-body h3{margin:8px 0 7px;font-size:19px}.owner-event-meta{color:#8ea4c3;font-size:11px}.owner-event-open{margin-top:15px;color:#dbeafe;font-size:10px;font-weight:900;letter-spacing:.06em}.owner-event-open span{color:#53d4ff}.owner-empty{grid-column:1/-1;border:1px dashed #35577e;border-radius:18px;padding:24px;color:#90a5c3;text-align:center}
.owner-home-modal{position:fixed;inset:0;z-index:160;display:none;place-items:center;padding:18px}.owner-home-modal.open{display:grid}.owner-home-backdrop{position:absolute;inset:0;background:rgba(0,4,13,.84);backdrop-filter:blur(12px)}.owner-home-card{position:relative;z-index:1;width:min(440px,100%);border:1px solid #355c8d;border-radius:24px;padding:25px;background:linear-gradient(160deg,#071d43,#06142c 68%,#0d1731);box-shadow:0 25px 80px rgba(0,0,0,.45)}.owner-home-close{position:absolute;right:13px;top:11px;width:36px;height:36px;border:1px solid #375477;border-radius:50%;background:#07152c;color:#fff;font-size:22px}.owner-home-kicker{color:#6ee7b7;font-size:10px;font-weight:900;letter-spacing:.13em}.owner-home-card h2{margin:8px 0 7px;font-size:25px}.owner-home-card p{margin:0 0 18px;color:#9eafc8;font-size:12px;line-height:1.65}.owner-home-card input{width:100%;height:50px;border:1px solid #365b86;border-radius:13px;background:#05152d;color:#fff;padding:0 14px;outline:none}.owner-home-card input:focus{border-color:#6f8dff;box-shadow:0 0 0 3px rgba(111,141,255,.12)}.owner-home-submit{width:100%;height:48px;margin-top:10px;border:0;border-radius:13px;background:linear-gradient(110deg,#147df5,#784df4,#ea3bdc);color:#fff;font-size:11px;font-weight:900}.owner-home-card.busy{pointer-events:none;opacity:.75}.owner-home-error{min-height:18px;margin-top:9px;color:#ff9da8;font-size:10px}
body.owner-home-mode .hero,body.owner-home-mode .featured,body.owner-home-mode .how{display:none}body.owner-home-mode main{min-height:calc(100vh - 150px)}
@media(max-width:980px){.owner-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-access-button{margin-left:auto}}
@media(max-width:720px){.owner-access-button{height:34px;padding:0 9px;font-size:8px}.owner-dashboard{padding:34px 0 56px}.owner-dashboard-head{align-items:flex-start;flex-direction:column}.owner-event-grid{grid-template-columns:1fr;grid-auto-rows:auto}.owner-logout-button{width:100%}}

/* R1.6.6 Staff Login Gate — Gallery root is staff-only; public /g/<album> remains direct/no-login. */
.staff-gallery-root{min-height:100vh;display:flex;flex-direction:column}.staff-site-header .brand{cursor:default}.staff-main{flex:1;display:flex;flex-direction:column}.staff-login-view{position:relative;isolation:isolate;min-height:calc(100vh - 153px);display:grid;place-items:center;padding:48px 18px;overflow:hidden}.staff-login-view[hidden]{display:none!important}.staff-login-glow{position:absolute;z-index:-1;border-radius:50%;filter:blur(95px);pointer-events:none}.staff-login-glow-a{width:430px;height:430px;left:8%;top:7%;background:rgba(25,151,255,.12)}.staff-login-glow-b{width:390px;height:390px;right:8%;bottom:4%;background:rgba(198,55,238,.11)}.staff-login-card{width:min(470px,100%);padding:38px 36px 34px;border:1px solid #315783;border-radius:28px;background:linear-gradient(155deg,rgba(8,31,67,.98),rgba(5,18,40,.98) 72%,rgba(13,22,48,.98));box-shadow:0 34px 95px rgba(0,0,0,.42),inset 0 0 45px rgba(44,128,255,.045)}.staff-login-logo{display:block;width:118px;max-height:72px;object-fit:contain;margin:0 auto 24px}.staff-login-kicker{color:#60dcf6;font-size:10px;font-weight:900;letter-spacing:.16em;text-align:center}.staff-login-card h1{margin:10px 0 10px;text-align:center;font-size:30px;letter-spacing:-.035em}.staff-login-card>p{margin:0 auto 25px;max-width:370px;text-align:center;color:#91a7c6;font-size:12px;line-height:1.7}.staff-key-label{display:block;margin:0 0 8px;color:#86a1c6;font-size:9px;font-weight:900;letter-spacing:.14em}.staff-login-card input{width:100%;height:52px;border:1px solid #365f90;border-radius:14px;background:#05152d;color:#fff;padding:0 15px;outline:none;font-size:14px}.staff-login-card input:focus{border-color:#57c8f5;box-shadow:0 0 0 3px rgba(87,200,245,.09)}.staff-login-submit{width:100%;height:50px;margin-top:12px;border:0;border-radius:14px;background:linear-gradient(112deg,#147df5,#7651f4,#dc3fdc);color:#fff;font-size:11px;font-weight:900;letter-spacing:.055em}.staff-login-submit:disabled{opacity:.6}.staff-login-card.busy{pointer-events:none;opacity:.82}.staff-login-error{min-height:20px;margin-top:10px;text-align:center;color:#ff9ca8;font-size:10px}.staff-customer-note{margin-top:14px;padding-top:14px;border-top:1px solid rgba(69,104,148,.32);text-align:center;color:#6f88aa;font-size:9px;line-height:1.6}.staff-dashboard{padding-top:54px;padding-bottom:74px;min-height:calc(100vh - 153px)}.staff-footer{margin-top:auto}.staff-authenticated .staff-login-view{display:none!important}
@media(max-width:720px){.staff-login-view{min-height:calc(100vh - 144px);padding:28px 14px}.staff-login-card{padding:30px 20px 26px;border-radius:23px}.staff-login-card h1{font-size:25px}.staff-login-logo{width:105px;margin-bottom:19px}.staff-dashboard{padding-top:34px}}

/* R1.7.0 Staff workspace additions */
.staff-head-actions{display:flex;align-items:center;gap:10px}.staff-create-button{border:0;border-radius:14px;padding:13px 18px;background:linear-gradient(135deg,#22d3ee,#8b5cf6);color:white;font-weight:900;letter-spacing:.02em;cursor:pointer}.temp-dev-banner{margin:0 0 18px;padding:12px 14px;border:1px solid rgba(251,191,36,.2);background:rgba(251,191,36,.06);border-radius:14px;color:#d9c17d;font-size:12px}.staff-album-card{overflow:hidden}.staff-album-cover-link{display:block;color:inherit;text-decoration:none}.staff-album-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.staff-album-actions button{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.04);color:#dcecff;border-radius:11px;padding:9px 11px;cursor:pointer;font-weight:800;font-size:11px}.staff-public-code{margin-top:9px;color:#7890aa;font-size:11px}.staff-public-code code{color:#aee9ff}.album-cover-placeholder{height:100%;min-height:220px;display:grid;place-items:center;align-content:center;gap:7px;background:radial-gradient(circle at 30% 20%,rgba(34,211,238,.25),transparent 38%),radial-gradient(circle at 75% 75%,rgba(139,92,246,.26),transparent 44%),#071327}.album-cover-placeholder span{font-weight:1000;font-size:42px;letter-spacing:-.08em}.album-cover-placeholder small{color:#85a0bc;font-size:10px;letter-spacing:.16em}.album-dialog{width:min(560px,calc(100% - 28px));border:1px solid rgba(255,255,255,.12);background:#07101e;color:#fff;border-radius:24px;padding:0;box-shadow:0 32px 90px #000b}.album-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(6px)}.album-dialog-card{padding:25px;display:grid;gap:16px}.album-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.album-dialog-head h2{margin:5px 0 0}.album-dialog-close{border:0;background:transparent;color:white;font-size:28px;cursor:pointer}.album-dialog label{display:grid;gap:7px;color:#a9bdd1;font-size:12px;font-weight:800}.album-dialog input{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);background:#050c17;color:#fff;border-radius:12px;padding:12px 13px;font:inherit}.album-dialog-note{font-size:11px;line-height:1.55;color:#7f96ae}.album-dialog-actions{display:flex;justify-content:flex-end;gap:10px}.album-dialog-actions>button:first-child{border:1px solid rgba(255,255,255,.12);background:transparent;color:#b8c9d9;border-radius:12px;padding:11px 15px;cursor:pointer}@media(max-width:700px){.owner-dashboard-head{gap:16px}.staff-head-actions .header-status{display:none}.staff-album-actions{align-items:stretch}.staff-album-actions>*{flex:1;text-align:center}}
