/* POTRET shared application primitives. Page-specific camera and print geometry stays isolated. */
:root{--ui-ink:#29221d;--ui-muted:#6c5c4d;--ui-bg:#f5eddf;--ui-surface:#fffbf4;--ui-soft:#eee3d2;--ui-line:#ddcfbb;--ui-accent:#ad4825;--ui-radius:12px;--ui-control:8px;--ui-space:16px;--ui-content:1120px;--ui-form:760px}
.ui-system{font-size:16px;line-height:1.6;font-variant-numeric:lining-nums;background:var(--ui-bg);color:var(--ui-ink)}
.ui-system a,.ui-system .text-link,.ui-system .gallery-sheet figcaption a{text-decoration:none;text-underline-offset:0}
.ui-system #main a{text-decoration:none}
.ui-system #main p a:not(.button){font-weight:600}
.ui-system a:hover{color:var(--ui-accent)}.ui-system .button:hover{color:inherit}.ui-system .button:not(.ghost):not(.outline-light):hover{color:var(--ivory)}
.ui-system :focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}
.ui-system .skip{top:0;transform:translateY(-150%)}.ui-system .skip:focus{transform:translateY(0)}
.ui-system :where(button,input,select,textarea){font-family:var(--sans);font-variant-numeric:lining-nums tabular-nums}
.ui-system :where(button,.button){line-height:1.4}
.ui-system :where(.ui-back,.journey-back,.text-link){display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:500}
.ui-system :where(.event-console,.ws,.organizer-journey,.auth-card,.event-tools){min-width:0;overflow-wrap:anywhere}
.ui-system :where(.event-console,.ws,.organizer-journey) :where(h1,h2,h3,p){overflow-wrap:anywhere}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard,.ui-error) #main{min-height:60vh}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) .event-console{max-width:var(--ui-content);padding:28px 24px 40px}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) .event-console>h1,.ui-system .ui-page-title{font:600 clamp(28px,3vw,36px)/1.18 var(--serif);letter-spacing:-.025em;margin:12px 0}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) #main h1{font:600 clamp(28px,3vw,36px)/1.18 var(--serif);letter-spacing:-.025em}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) #main h2{font:600 24px/1.25 var(--serif);letter-spacing:-.02em;margin:0 0 12px}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) #main h3{font-size:18px;line-height:1.35;margin:0 0 10px}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) #main :where(p){margin:8px 0 16px}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) .event-console>.section-no{display:block;margin-top:16px}
.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) #main :where(.button,form>button,.inline-form>button){min-height:46px;align-self:center;padding:11px 18px;border-radius:var(--ui-control);font-size:14px;font-weight:600}
.ui-system :where(.inline-form,.gallery-filter){align-items:flex-end;gap:10px;flex-wrap:wrap}
.ui-system :where(.inline-form,.gallery-filter)>label{flex:1 1 220px;margin:0;min-width:0}
.ui-system :where(.inline-form,.gallery-filter)>button{flex:0 0 auto;align-self:flex-end;min-height:48px;margin:0}
.ui-system .inline-form>input:not([type=hidden]){flex:1 1 180px;min-width:0;width:auto}
.ui-system :where(.event-console,.auth-card,.ws,.et-card) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:48px;border-radius:var(--ui-control);font-size:16px;padding:10px 12px;max-width:100%}
.ui-system :where(.state-card,.management-grid>section){border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);padding:20px;min-width:0}
.ui-system :where(.management-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:24px;align-items:start}
.ui-system :where(.state-card)>:first-child{margin-top:0}.ui-system :where(.state-card)>:last-child{margin-bottom:0}
.ui-system :where(.metric-grid){margin:20px 0;border-color:var(--ui-line);background:var(--ui-surface)}
.ui-system :where(.metric-grid) article{padding:16px;min-width:0}.ui-system :where(.metric-grid) strong{font:600 24px/1.3 var(--sans);font-variant-numeric:lining-nums tabular-nums}.ui-system :where(.metric-grid) span{font:400 12px/1.5 var(--sans);letter-spacing:0}
.ui-system .ws{max-width:var(--ui-content)}.ui-system .ws-head h1{font-size:clamp(30px,3vw,38px)}.ui-system .ws-head{gap:20px;padding-bottom:20px;margin-bottom:24px}.ui-system .ws-head p{font-size:15px;max-width:60ch}
.ui-system .ws-metrics{margin:20px 0}.ui-system .ws-metrics article{padding:16px}.ui-system .ws-metrics strong{font:600 26px/1.3 var(--sans);font-variant-numeric:lining-nums tabular-nums}
.ui-system .ws-tools{margin:16px 0;gap:8px}.ui-system .ws-tools a{border-radius:var(--ui-control);padding:9px 13px}.ui-system .ws-event{padding:20px}.ui-system .ws-event h3{font:600 24px/1.25 var(--serif)!important}
.ui-system .ui-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0 24px}
.ui-system .ui-more{position:relative;min-width:0}.ui-system .ui-more>summary{display:flex;align-items:center;gap:8px;min-height:44px;list-style:none;cursor:pointer;border:1px solid var(--ui-line);border-radius:var(--ui-control);padding:9px 14px;font-size:14px;font-weight:600;background:var(--ui-surface)}
.ui-system .ui-more>summary::-webkit-details-marker{display:none}.ui-system .ui-more>summary:after{content:'';width:16px;height:16px;margin-left:4px;background:currentColor;-webkit-mask:var(--ui-dots) center/contain no-repeat;mask:var(--ui-dots) center/contain no-repeat}
.ui-system .ui-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:25;display:grid;gap:4px;min-width:220px;max-width:min(300px,85vw);padding:8px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius);box-shadow:0 10px 30px #2d211714}
.ui-system .ui-menu a{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;border-radius:6px;font-size:14px}.ui-system .ui-menu a:hover{background:var(--ui-soft)}
.ui-system .ui-help{margin:20px 0;border:1px solid var(--ui-line);background:var(--ui-surface);border-radius:var(--ui-radius);max-width:var(--ui-form)}
.ui-system .ui-help>summary{cursor:pointer;min-height:46px;padding:12px 16px;font-size:14px;font-weight:600}.ui-system .ui-help>div{padding:0 16px 16px;font-size:14px;color:var(--ui-muted)}
.ui-system .ui-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:12px 0 24px}.ui-system .ui-page-head h1{margin:4px 0 8px}.ui-system .ui-page-head p{margin:0;color:var(--ui-muted)}
.ui-system .ui-person{display:grid;gap:12px}.ui-system .ui-person-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.ui-system .ui-person-head h2{margin:0!important}.ui-system .ui-person dl{display:flex;gap:24px;margin:0}.ui-system .ui-person dl div{display:grid;gap:2px}.ui-system .ui-person dt{font-size:12px;color:var(--ui-muted)}.ui-system .ui-person dd{margin:0;font-weight:600}.ui-system .ui-person time{font-size:13px;color:var(--ui-muted)}.ui-system .ui-person-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--ui-line);padding-top:12px}
.ui-system.ui-guest{--ui-bg:#211b16;--ui-ink:#f5eddf;--ui-muted:#caba9f;--ui-surface:#2a231c;--ui-soft:#352b21;--ui-line:#594a38;--ui-accent:#e29a64;color:var(--ui-ink);background:var(--ui-bg)}
.ui-system.ui-event-theme-ivory{--ui-bg:#f5eddf;--ui-ink:#29221d;--ui-muted:#6c5c4d;--ui-surface:#fffbf4;--ui-soft:#eee3d2;--ui-line:#ddcfbb;--ui-accent:#ad4825}
.ui-system.ui-event-theme-noir{--ui-bg:#151515;--ui-surface:#232222;--ui-soft:#302e2b;--ui-line:#514c44}
.ui-system.ui-guest #main{min-height:70vh}.ui-system.ui-guest :where(.guest-gallery,.scrapbook,.guest-timeline){max-width:1200px;width:100%;margin:0 auto;padding:24px clamp(16px,4vw,32px) 40px;color:var(--ui-ink)}
.ui-system.ui-guest .gallery-head{padding:16px 0 20px;max-width:none}.ui-system.ui-guest .gallery-head h1,.ui-system.ui-guest .scrapbook h1{font:600 clamp(30px,4vw,44px)/1.15 var(--serif);letter-spacing:-.025em;margin:10px 0 12px}
.ui-system.ui-guest .gallery-head p{color:var(--ui-muted);margin:0;font-size:14px}.ui-system.ui-guest :where(.scrapbook,.guest-gallery) h2{font:600 24px/1.25 var(--serif);margin:24px 0 14px;letter-spacing:-.02em}.ui-system.ui-guest .scrapbook h3{font:600 18px/1.4 var(--sans);margin:0 0 8px}
.ui-system.ui-guest :where(.state-card,.scrapbook-entry,.metric-grid,.trust-notice){color:var(--ui-ink);background:var(--ui-surface);border-color:var(--ui-line)}
.ui-system.ui-guest :where(.button.ghost,.journey-back){color:var(--ui-ink);border-color:var(--ui-line)}
.ui-system.ui-guest :where(.scrapbook-entry small,.experience-grid time,.small-muted){color:var(--ui-muted)}
.ui-system.ui-guest :where(select,input:not([type=checkbox]):not([type=radio]),textarea){background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
.ui-system.ui-guest .gallery-rail{display:flex;gap:8px;overflow:visible;flex-wrap:wrap;justify-content:flex-start;border-color:var(--ui-line);padding:14px 0;margin:0 0 20px;max-width:none}
.ui-system.ui-guest .gallery-rail .button{min-height:44px;font-size:14px;border-radius:999px;padding:9px 15px;flex:0 0 auto}.ui-system.ui-guest .gallery-rail .active{background:var(--ui-ink);color:var(--ui-bg);border-color:var(--ui-ink)}
.ui-system.ui-guest .gallery-rail .ui-more{margin-left:auto}.ui-system.ui-guest .gallery-rail .ui-more>summary{background:transparent;border-color:var(--ui-line);border-radius:999px;white-space:nowrap;font-weight:400}
.ui-system.ui-guest .gallery-filter{max-width:620px;margin:16px 0 24px;padding:0}.ui-system.ui-guest .gallery-filter label{font-size:14px}.ui-system.ui-guest .gallery-filter select{min-height:48px;font-size:16px}.ui-system.ui-guest .gallery-filter .button{min-height:48px;margin:0;transform:none}
.ui-system.ui-guest .gallery-empty,.ui-system .ui-empty{padding:24px 18px;text-align:center;color:var(--ui-muted);border:1px dashed var(--ui-line);border-radius:var(--ui-radius);margin:20px 0}
.ui-system.ui-guest .scrapbook-grid{gap:16px}.ui-system.ui-guest .scrapbook-entry{transform:none;border-radius:var(--ui-radius);box-shadow:none}.ui-system.ui-guest .scrapbook .management-grid{margin:0}.ui-system.ui-guest .scrapbook .state-card{padding:16px}.ui-system.ui-guest .metric-grid article{border-color:var(--ui-line)}
.ui-system.ui-guest .contact-sheet figure{min-width:0}.ui-system.ui-guest .trust-notice{padding:16px;margin-top:28px;font-size:13px}.ui-system.ui-guest .trust-notice p{margin:4px 0}
.ui-system .ui-optional{border-top:1px solid var(--ui-line);margin-top:24px;padding-top:12px}.ui-system .ui-optional>summary{cursor:pointer;min-height:44px;font-size:16px;font-weight:600}.ui-system .ui-optional>div{padding-top:12px}
@media(max-width:640px){.ui-system:is(.ui-organizer,.ui-admin,.ui-business,.ui-wizard) .event-console{padding:20px 16px 32px}.ui-system .ws{width:calc(100% - 32px)}.ui-system .ws-tools{flex-wrap:wrap}.ui-system .ws-head-actions{width:auto}.ui-system .ws-head-actions .button{width:auto}.ui-system :where(.state-card,.management-grid>section){padding:16px}.ui-system .ui-toolbar{align-items:flex-start}.ui-system :where(.inline-form,.gallery-filter){flex-direction:row}.ui-system :where(.inline-form,.gallery-filter)>label{flex-basis:160px}.ui-system .ui-menu{min-width:200px}.ui-system.ui-guest .gallery-rail .ui-more{margin-left:0}.ui-system.ui-guest .gallery-rail{gap:6px}.ui-system.ui-guest .gallery-rail .button{padding:9px 12px;font-size:13px}.ui-system .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ui-system{scroll-behavior:auto}.ui-system .button{transition:none!important;animation:none!important}}
/* Shared site footer (views/layouts/app.php). Scoped to the body's direct footer so nested footers are untouched. */
body>footer.potret-footer{display:block;padding:20px 16px calc(20px + env(safe-area-inset-bottom));border-top:1px solid #d8c6af;background:#f6efe3;color:#1e1b18;font-size:14px}
body>footer.potret-footer .pf-inner{display:grid;grid-template-columns:1fr;gap:12px;max-width:1240px;margin:0 auto;min-width:0}
body>footer.potret-footer .pf-inner>*{min-width:0}
body>footer.potret-footer .pf-brand strong{display:block;font:600 20px/1.2 var(--serif,Georgia,serif);overflow-wrap:anywhere}
body>footer.potret-footer .pf-brand p{margin:2px 0 0;color:#6b5a48;line-height:1.45}
/* Links go through .pf-inner (0,2,3+) so landing-refresh.css `body:has(.frontpage)>footer a` (0,1,3) cannot re-add underlines on the homepage. */
body>footer.potret-footer .pf-inner a,body>footer.potret-footer .pf-inner a:is(:link,:visited,:hover,:focus,:focus-visible,:active){color:#1e1b18;text-decoration:none}
body>footer.potret-footer .pf-inner a:focus-visible{outline:3px solid #b85c2e;outline-offset:2px}
body>footer.potret-footer .pf-contact{display:flex;flex-wrap:wrap;gap:10px}
/* Thin bordered contact buttons; radius 22px keeps a pill at one line and a soft card if a long address wraps at 360px. */
body>footer.potret-footer .pf-inner .pf-contact a{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;box-sizing:border-box;padding:6px 16px;border:1px solid #c9b597;border-radius:22px;background:transparent;font-weight:500;line-height:1.35;min-width:0;overflow-wrap:anywhere;word-break:break-word;transition:border-color .15s,background-color .15s,color .15s}
body>footer.potret-footer .pf-inner .pf-contact a:hover{border-color:#b85c2e;background:#fbf6ee;color:#8e4220}
body>footer.potret-footer .pf-contact svg{flex:none;width:16px;height:16px;color:#b85c2e}
body>footer.potret-footer .pf-legal{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;padding-top:8px;border-top:1px solid #e2d4bf}
/* Refined legal links: small, regular weight, #5c4b3a on #f6efe3 is ~7:1. */
body>footer.potret-footer .pf-inner .pf-legal a{display:inline-flex;align-items:center;min-height:44px;color:#5c4b3a;font-size:13px;font-weight:400;letter-spacing:.02em}
body>footer.potret-footer .pf-inner .pf-legal a:hover{color:#8e4220}
body>footer.potret-footer .pf-inner .pf-legal a:focus-visible{border-radius:4px}
body>footer.potret-footer .pf-legal small{color:#6b5a48;font-size:13px}
@media(prefers-reduced-motion:reduce){body>footer.potret-footer .pf-inner .pf-contact a{transition:none}}
@media(min-width:760px){
body>footer.potret-footer{padding:22px clamp(24px,4vw,40px)}
body>footer.potret-footer .pf-inner{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 32px}
body>footer.potret-footer .pf-contact{justify-content:flex-end}
body>footer.potret-footer .pf-legal{grid-column:1/-1}
body>footer.potret-footer .pf-legal small{margin-inline-start:auto}
}
.ui-system .ws{--ws-ink:var(--ui-ink);--ws-paper:var(--ui-surface);--ws-line:var(--ui-line)}
.ui-system .ui-error-detail{max-width:65ch;margin:16px auto;color:var(--ui-muted);font-size:14px}
.ui-system.ui-error .error-page{max-width:800px;margin:0 auto;padding:72px 24px;text-align:center}.ui-system.ui-error .error-page h1{font:600 clamp(30px,4vw,44px)/1.2 var(--serif);margin:16px 0 20px}
.ui-system .ui-people-page .inline-form{max-width:600px}.ui-system .gallery-owner-tools{margin:0 0 20px;text-align:right;font-size:13px}
.ui-system.ui-organizer .cover-preview{display:block;width:min(100%,520px);aspect-ratio:3/2;object-fit:cover;border:8px solid var(--ui-surface);border-radius:8px;box-shadow:0 8px 24px #261c1414}.ui-system.ui-organizer .experience-grid img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.ui-system.ui-site #main>.page-head h1{font-size:clamp(32px,4vw,48px);line-height:1.15}.ui-system.ui-site #main>.price-grid{max-width:1120px;margin:auto;padding:24px;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.ui-system.ui-site #main>.price-grid .price-card{border-radius:12px;background:var(--ui-surface)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
.ui-system .ws-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ui-system :where(.ws-head,.ui-page-head,.ui-toolbar){position:relative}.ui-system :where(.ws-head,.ui-page-head,.ui-toolbar) .ui-more{position:static}.ui-system :where(.ws-head,.ui-page-head,.ui-toolbar) .ui-menu{right:0;max-width:100%}
.ui-system .ui-person-actions form{margin:0}.ui-system .ui-person-actions .button{font-size:13px;padding:9px 12px;min-height:44px}
.ui-system .inline-form>.button,.ui-system .gallery-filter>.button{align-self:flex-end;min-height:48px}
.ui-system .gallery-pagination{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin:24px 0}
.ui-system.ui-guest .gallery-sheet figure{background:#fffaf2;color:#342b22;border-color:#ddcfbb;box-shadow:none}.ui-system.ui-guest .gallery-sheet .photo-caption__meta{color:#6c5c4d;font-size:12px}.ui-system.ui-guest .gallery-rail .ui-more+.ui-more{margin-left:0}
.ui-system.ui-guest .gallery-rail{position:relative}.ui-system.ui-guest .gallery-rail .ui-more{position:static}.ui-system.ui-guest .gallery-rail .ui-menu{left:auto;right:0;top:calc(100% + 4px);width:min(100%,320px);max-width:100%;min-width:0}
@media(max-width:380px){.ui-system.ui-guest .gallery-sheet{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){html:not(.potret-js) .ui-system>.site-header{height:auto;min-height:64px;flex-wrap:wrap;gap:10px;padding-block:12px}html:not(.potret-js) .ui-system>.site-header nav{display:flex;position:static;flex-basis:100%;flex-wrap:wrap;gap:8px 16px;box-shadow:none;padding:8px 0}}
.ui-system.ui-guest .timeline{max-width:1120px;padding:24px;color:var(--ui-ink)}.ui-system.ui-guest .tl-head h1{font-size:clamp(30px,4vw,44px)}.ui-system.ui-guest .tl-note,.ui-system.ui-guest .tl-frame{background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
.ui-system.ui-guest .timeline{--tl-cream:var(--ui-bg);--tl-paper:var(--ui-surface);--tl-ink:var(--ui-ink);--tl-muted:var(--ui-muted);--tl-rust:var(--ui-accent);--tl-line:var(--ui-line);background:var(--ui-bg)}


.promo-toggle{margin:4px 0 12px}.promo-toggle summary{cursor:pointer;font-size:14px;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:flex;align-items:center}.promo-toggle label{margin-top:4px}

.ui-moderation .ui-bulk>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.ui-moderation .ui-bulk[open]>summary{margin-bottom:8px}

/* Gerakan kecil kamera (T-36): kilat shutter, foto dicuci, kaunter berdenyut */
@media (prefers-reduced-motion:no-preference){
 .camera-flash .viewfinder{position:relative}
 .camera-flash .viewfinder::after{content:"";position:absolute;inset:0;background:#fff;pointer-events:none;z-index:5;animation:potret-flash .34s ease-out forwards}
 .is-developing{animation:potret-develop .9s ease-out}
 .count-bump{animation:potret-bump .45s ease-out}
}
@keyframes potret-flash{0%{opacity:.9}100%{opacity:0}}
@keyframes potret-develop{0%{filter:brightness(1.9) saturate(0) blur(4px);opacity:.6}}
@keyframes potret-bump{0%{transform:scale(1)}35%{transform:scale(1.18)}100%{transform:scale(1)}}

/* T-36: foto & kad muncul bila diskrol (reveal.js), Live Wall foto baharu "dicuci", skrol lancar Lenis */
@media (prefers-reduced-motion:no-preference){
 .reveal-wait{opacity:0;transform:translateY(16px) scale(.985);transition:opacity .55s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
 .reveal-wait img{filter:brightness(1.35) saturate(.4);transition:filter .9s ease .1s}
 .reveal-wait.reveal-in{opacity:1;transform:none}
 .reveal-wait.reveal-in img{filter:none}
 .wall-grid img.wall-new{animation:potret-wall-new 1.4s cubic-bezier(.2,.8,.2,1) both}
 .wall-grid img.wall-slide{animation:potret-wall-slide 1s ease both}
}
@keyframes potret-wall-new{0%{opacity:0;transform:scale(.9);filter:brightness(1.9) saturate(0) blur(6px)}45%{opacity:1}100%{opacity:1;transform:none;filter:none}}
@keyframes potret-wall-slide{from{opacity:0;transform:scale(1.03)}}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
