/* ITUMBI v0.3.4: separately versioned, full-coverage control surfaces. */
:root{--ui-border:rgba(91,210,237,.27);--ui-blue:#0b2e57;--ui-cyan:#27e3e8}
.admin-body .owner-tabs{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;max-width:1180px!important;width:calc(100% - 44px)!important;margin:20px auto 0!important;padding:10px 0 14px!important;border-bottom:1px solid var(--ui-border)!important}
.admin-body .owner-tabs>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;min-height:44px!important;padding:11px 20px!important;border-radius:12px!important;border:1px solid rgba(70,188,233,.33)!important;color:#d3eafa!important;background:#0d335e!important;font-weight:700!important;font-size:14px!important;letter-spacing:.01em!important;box-shadow:inset 0 1px rgba(255,255,255,.06)!important;transition:background .15s,border-color .15s,box-shadow .15s!important}
.admin-body .owner-tabs>a:hover,.admin-body .owner-tabs>a:focus-visible{background:#15517d!important;color:#fff!important;border-color:#3fe0ee!important;box-shadow:0 0 0 3px rgba(31,225,238,.09)!important}
.admin-body .owner-tabs>a[aria-current="page"]{background:linear-gradient(110deg,#16d3df,#43aaf5)!important;color:#032748!important;border-color:#42e5f5!important;font-weight:800!important}
.admin-body .admin-main{padding-top:46px!important}
.admin-body .admin-nav{display:flex!important;align-items:center!important;justify-content:space-between!important}
/* Analytics toolbars: meaningful separate regions; export always next to filter. */
.admin-body .analytics-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:22px!important;margin:28px 0 25px!important}
.admin-body .analytics-actions .pill-row{display:flex!important;flex-wrap:wrap!important;gap:11px!important;align-items:center!important}
.admin-body .analytics-actions .filter-pill{display:inline-flex!important;min-width:85px!important;justify-content:center!important;align-items:center!important;min-height:43px!important;padding:11px 17px!important;font-weight:700!important;color:#d8f1ff!important;border-radius:11px!important;background:#0d335e!important;border:1px solid var(--ui-border)!important}
.admin-body .analytics-actions .filter-pill.selected{color:#062545!important;background:#27dce6!important;border-color:#78f5f4!important}
.admin-body .analytics-country{display:flex!important;flex-direction:row!important;align-items:flex-end!important;gap:12px!important;flex-wrap:wrap!important;margin:0!important}
.admin-body .analytics-country label{display:flex!important;flex-direction:column!important;gap:8px!important;font-size:13px!important;color:#cceafa!important;font-weight:650!important}
.admin-body .analytics-country select{min-width:210px!important;height:44px!important;padding:0 13px!important;border-radius:10px!important;color:#fff!important;background:#0e355d!important;border:1px solid #4085a6!important}
.admin-body .analytics-country .small-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;margin:0!important;white-space:nowrap!important;padding:11px 19px!important;font-weight:700!important;border-radius:10px!important;border:1px solid #3289a4!important;background:#103d62!important;color:#d9faff!important}
.admin-body .analytics-country .small-btn:hover{background:#176080!important;border-color:#37dfee!important}
/* Campaign management: cards and actions remain distinct, never text-runs. */
.admin-body .ad-admin-list{display:grid!important;gap:18px!important}
.admin-body .ad-admin-row{display:grid!important;grid-template-columns:minmax(240px,340px) minmax(0,1fr)!important;gap:27px!important;align-items:center!important;background:rgba(13,51,93,.7)!important;border:1px solid var(--ui-border)!important;border-radius:18px!important;padding:21px!important}
.admin-body .ad-admin-preview{display:flex!important;flex-direction:column!important;gap:11px!important;min-width:0!important;background:linear-gradient(145deg,#17426b,#102b50)!important;border:1px solid rgba(81,208,238,.35)!important;border-radius:14px!important;padding:22px!important}
.admin-body .ad-admin-preview small{font-size:11px!important;color:#70eaf0!important;letter-spacing:.12em!important}
.admin-body .ad-admin-preview strong{font-size:22px!important;line-height:1.2!important;color:white!important}
.admin-body .ad-admin-preview span{font-size:14px!important;line-height:1.6!important;color:#c5daee!important}
.admin-body .ad-admin-info{min-width:0!important}
.admin-body .ad-admin-info>strong{font-size:20px!important}
.admin-body .ad-admin-info p{margin:12px 0!important;line-height:1.55!important}
.admin-body .ad-admin-info .action-row{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-top:18px!important}
.admin-body .ad-admin-info .action-row form{display:inline-flex!important;margin:0!important;padding:0!important}
.admin-body .ad-admin-info .action-row .small-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:85px!important;min-height:42px!important;padding:10px 17px!important;border:1px solid #337f9b!important;border-radius:10px!important;background:#0b335a!important;color:white!important}
.admin-body .ad-admin-info .action-row .danger{border-color:#b75f79!important;color:#ffc8d7!important}
/* Privacy: controls under paragraph in one row, copyright isolated at real page bottom. */
body:has(.privacy-page){min-height:100vh!important;display:flex!important;flex-direction:column!important;background:linear-gradient(140deg,#06182f,#092648)!important}
.privacy-page{width:100%!important;max-width:1240px!important;min-height:100vh!important;display:flex!important;flex-direction:column!important;padding-top:74px!important;padding-bottom:0!important}
.privacy-content{width:100%!important}
.privacy-content h1{font-size:clamp(33px,4vw,48px)!important;letter-spacing:-.035em!important;margin:18px 0 22px!important;color:#f7fbff!important}
.privacy-content>p{max-width:1120px!important;color:#b8d5ec!important;line-height:1.85!important;font-size:16px!important}
.privacy-controls{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;width:100%!important;margin-top:30px!important}
.privacy-controls form{display:block!important;margin:0!important}
.privacy-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;padding:12px 20px!important;border:1px solid #257e9c!important;background:#0c345d!important;color:#e3fbff!important;border-radius:11px!important;font-size:14px!important;font-weight:700!important;white-space:nowrap!important;cursor:pointer!important}
.privacy-action:hover{border-color:#3ce0eb!important;background:#16517a!important}
.privacy-toggle{background:linear-gradient(110deg,#15d1de,#37aafb)!important;border-color:transparent!important;color:#052346!important;font-weight:800!important}
.privacy-toggle:hover{background:linear-gradient(110deg,#52f5ed,#69c4ff)!important}
.privacy-bottom{width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;margin-top:auto!important;min-height:89px!important;padding:22px 0!important;border-top:1px solid var(--ui-border)!important;color:#a9c2d9!important;font-size:12px!important}
.privacy-message{display:flex!important;align-items:center!important;gap:15px!important;margin:24px 0 0!important;max-width:570px!important;padding:16px!important;background:linear-gradient(120deg,#0b4a5e,#123960)!important;border:1px solid #31cddf!important;border-radius:14px!important;box-shadow:0 15px 45px #0003!important;animation:ui-enter .2s ease-out!important}
.privacy-message-icon{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:50%!important;color:#042738!important;background:#35deda!important;font-weight:900!important}
.privacy-message strong{font-size:15px!important}.privacy-message p{margin:4px 0 0!important;font-size:13px!important;color:#c6e9f0!important}
.privacy-message button{margin-left:auto!important;background:transparent!important;border:0!important;color:white!important;font-size:23px!important}
@keyframes ui-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
/* Animated, draggable floating promotional cards. */
.hanging-ads{position:fixed!important;inset:0!important;z-index:90!important;pointer-events:none!important;overflow:visible!important}
.hanging-ads .hanging-ad{--ad-accent:#35e0e5;position:fixed!important;pointer-events:auto!important;display:block!important;box-sizing:border-box!important;left:auto;right:24px;top:145px;bottom:auto;width:min(310px,calc(100vw - 32px))!important;max-height:min(70vh,445px)!important;overflow:visible!important;padding:26px 19px 20px!important;color:#f9fcff!important;text-align:left!important;background:linear-gradient(152deg,#173c69,#071d42 86%)!important;border:1px solid var(--ad-accent)!important;border-radius:20px!important;box-shadow:0 22px 55px #0008,0 0 26px rgba(49,222,238,.19)!important;transform:translate3d(0,0,0)!important;animation:ui-ad-breathe 3.8s ease-in-out infinite!important;transition:box-shadow .25s,filter .25s!important;user-select:none;touch-action:none}
.hanging-ads .hanging-ad:nth-child(2){top:440px!important}
.hanging-ads .hanging-ad.side-left{left:24px;right:auto}
.hanging-ads .hanging-ad.tone-gold{--ad-accent:#f2c65e;background:linear-gradient(145deg,#573a29,#23204c 90%)!important}
.hanging-ads .hanging-ad.tone-blue{--ad-accent:#61b4f4}.hanging-ads .hanging-ad.tone-purple{--ad-accent:#ce9afb;background:linear-gradient(145deg,#3c245d,#18284c)!important}
.hanging-ads .hanging-ad:hover,.hanging-ads .hanging-ad:focus-within{animation-play-state:paused!important;filter:brightness(1.09)!important;box-shadow:0 30px 70px #0009,0 0 32px color-mix(in srgb,var(--ad-accent),transparent 45%)!important}
.hanging-ads .hanging-ad[data-dragging="true"]{animation:none!important;cursor:grabbing!important;z-index:100!important}
@keyframes ui-ad-breathe{0%,100%{box-shadow:0 22px 55px #0008,0 0 17px rgba(49,222,238,.1)}50%{box-shadow:0 25px 64px #0009,0 0 34px rgba(49,222,238,.29)}}
.hanging-ads .hanging-ad .hanger{position:absolute!important;top:-30px!important;left:50%!important;width:2px!important;height:30px!important;background:linear-gradient(#8ceeff,var(--ad-accent))!important;opacity:.85!important}
.hanging-ads .hanging-ad .ad-card-inner{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding-top:2px!important}
.hanging-ads .hanging-ad .ad-drag-handle{display:grid!important;grid-template-columns:repeat(3,4px)!important;grid-template-rows:repeat(2,4px)!important;gap:4px!important;place-content:center!important;width:47px!important;height:28px!important;margin:-14px auto 7px!important;cursor:grab!important;touch-action:none!important}
.hanging-ads .ad-drag-handle span{height:4px!important;width:4px!important;border-radius:50%!important;background:#b9ecf5!important;opacity:.85!important}
.hanging-ads .hanging-ad .ad-close{position:absolute!important;top:10px!important;left:10px!important;z-index:110!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;padding:0!important;background:#0e3654!important;color:white!important;border:1px solid #98d3e4!important;border-radius:10px!important;cursor:pointer!important;pointer-events:auto!important;font-size:23px!important}
.hanging-ads .hanging-ad .ad-close:hover{background:#bb4156!important}
.hanging-ads .hanging-ad .ad-eyebrow{display:block!important;margin:0!important;color:var(--ad-accent)!important;font-size:10px!important;font-weight:800!important;letter-spacing:.15em!important;line-height:1.4!important;text-transform:uppercase!important}
.hanging-ads .hanging-ad h3{display:block!important;margin:0!important;color:white!important;font-size:23px!important;line-height:1.13!important;letter-spacing:-.02em!important;font-weight:850!important}
.hanging-ads .hanging-ad p{display:block!important;margin:0!important;color:#d1e6f7!important;font-size:13px!important;line-height:1.65!important;max-height:170px!important;overflow:auto!important}
.hanging-ads .hanging-ad .ad-cta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:12px 14px!important;margin-top:3px!important;border-radius:10px!important;color:#052644!important;background:var(--ad-accent)!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important}
@media(max-width:850px){.admin-body .owner-tabs{flex-wrap:nowrap!important;overflow:auto!important;justify-content:flex-start!important;scrollbar-width:thin}.admin-body .ad-admin-row{grid-template-columns:1fr!important}.hanging-ads .hanging-ad{width:min(260px,65vw)!important;top:auto!important;bottom:18px!important;right:12px!important;left:auto!important}.hanging-ads .hanging-ad:nth-child(n+2){display:none!important}.hanging-ads .hanging-ad .hanger{display:none!important}}
@media(max-width:600px){.admin-body .analytics-country{flex-wrap:wrap!important}.admin-body .analytics-country label{width:100%!important}.admin-body .analytics-country select{width:100%!important}.privacy-page{padding-top:48px!important}.privacy-controls{flex-wrap:wrap!important}.privacy-controls form{margin-left:auto!important}.privacy-action{font-size:13px!important}.privacy-bottom{justify-content:center!important;text-align:center!important}.hanging-ads .hanging-ad{width:min(240px,77vw)!important}.hanging-ads .hanging-ad h3{font-size:20px!important}}
@media(prefers-reduced-motion:reduce){.hanging-ads .hanging-ad{animation:none!important}.privacy-message{animation:none!important}}

/* v0.3.4 — owner-managed photo gallery and reliable pointer dragging */
.hanging-ads .hanging-ad{cursor:grab!important;touch-action:none!important;will-change:transform}
.hanging-ads .hanging-ad a,.hanging-ads .hanging-ad button{cursor:pointer!important;touch-action:manipulation!important}
.hanging-ads .hanging-ad[data-dragging="true"]{cursor:grabbing!important;animation:none!important;transform:none!important;transition:none!important}
.hanging-ads .hanging-ad[data-dragging="true"] *:not(a):not(button){cursor:grabbing!important}
.hanging-ads .hanging-ad .ad-card-inner{pointer-events:auto!important}
.hanging-ads .hanging-ad[data-dragging="false"]{transition:box-shadow .2s,filter .2s!important}
/* Branding and approved photo-card dimensions remain unchanged. */
.hero-photo-stage{position:absolute;inset:0;overflow:hidden}
.photo-card .hero-photo-stage img.hero-photo{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 52%!important;opacity:0;visibility:hidden;transition:opacity .95s ease,visibility .95s ease;z-index:0}
.photo-card .hero-photo-stage img.hero-photo.is-active{opacity:1!important;visibility:visible!important;z-index:1}
.photo-card .photo-overlay{z-index:2;pointer-events:none}
.photo-card .photo-caption{z-index:3;pointer-events:none}
.hero-slide-controls{position:absolute;bottom:15px;right:20px;z-index:5;display:flex;gap:7px;align-items:center;max-width:48%;flex-wrap:wrap;justify-content:flex-end}
.hero-slide-dot{width:9px;height:9px;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:rgba(255,255,255,.32);padding:0;box-shadow:0 1px 7px rgba(0,0,0,.2);cursor:pointer;transition:width .2s,background .2s}
.hero-slide-dot.is-active{width:24px;background:#25e4e8;border-color:#25e4e8}
.hero-slide-dot:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* Privacy message floats above page; no navigation or reload required. */
.privacy-message{position:fixed!important;right:26px!important;top:26px!important;width:min(420px,calc(100vw - 40px))!important;max-width:unset!important;margin:0!important;z-index:150!important;pointer-events:auto!important;box-shadow:0 22px 65px #0008!important}
.privacy-message[role="alert"]{border-color:#f2ad7c!important;background:#603c24!important;color:#fff!important;padding:18px!important}
.privacy-toggle[disabled]{opacity:.72!important;cursor:wait!important}
/* Owner Photo Manager */
.photo-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:27px 0 42px}
.photo-dashboard-grid .admin-card{min-width:0}
.photo-dashboard-grid .admin-form{margin-top:18px}
.photo-dashboard-grid .admin-form input[type=file],.photo-replace-form input[type=file]{display:block;width:100%;padding:12px;border:1px dashed #4889a7;border-radius:10px;color:#daedff;background:#0c3154;font-size:13px}
.photo-dashboard-grid .admin-form select,.photo-dashboard-grid .admin-form input[type=number]{width:100%;min-height:46px}
.photo-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;margin-top:21px;margin-bottom:28px}
.photo-admin-card{border:1px solid rgba(92,207,241,.28);border-radius:18px;overflow:hidden;background:linear-gradient(150deg,#12365f,#082647);min-width:0;box-shadow:0 15px 42px rgba(0,0,0,.14)}
.photo-admin-card>img{width:100%;height:190px;object-fit:cover;display:block}
.photo-admin-details{display:flex;flex-direction:column;gap:12px;padding:20px}
.photo-admin-details>strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.photo-state{display:inline-flex;align-self:flex-start;background:rgba(28,215,222,.15);border-radius:7px;color:#76e8ed;padding:6px 10px;font-weight:700;font-size:11px}
.photo-card-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:2px 0 3px}
.photo-card-actions form{display:inline-flex;margin:0}
.photo-card-actions .small-btn{min-height:39px;display:inline-flex;align-items:center;justify-content:center;padding:9px 13px}
.photo-replace-form{display:flex;flex-direction:column;gap:10px;margin-top:4px;padding-top:14px;border-top:1px solid rgba(116,199,239,.18)}
.photo-replace-form label{font-size:12px;font-weight:700;color:#c3e6f1;display:flex;flex-direction:column;gap:8px}
.photo-replace-form .small-btn{align-self:start}
.photo-dashboard-grid .admin-form .button{justify-content:center}
#photo-delete-dialog{border:1px solid #5be5f3;border-radius:18px;padding:28px;max-width:420px;background:#0b2a50;color:white;box-shadow:0 30px 80px #0008}
#photo-delete-dialog::backdrop{background:rgba(2,12,27,.72)}
@media(max-width:900px){.photo-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:600px){.photo-library{grid-template-columns:1fr}.hero-slide-controls{bottom:11px;right:12px}}
@media(prefers-reduced-motion:reduce){.photo-card .hero-photo-stage img.hero-photo{transition:none!important}.hero-slide-dot{transition:none!important}}

/* v0.4.0 media presentation: source bytes remain full-resolution and intact */
.photo-card .hero-photo-stage img.hero-photo{
 object-fit:var(--hero-fit,cover)!important;
 object-position:var(--hero-pos,50% 52%)!important;
 background:#0a2545;
}
.photo-card .hero-photo-stage[data-effect="cylinder"],
.photo-card .hero-photo-stage[data-effect="wheel"]{
 perspective:1050px;perspective-origin:50% 45%;isolation:isolate;
 background:linear-gradient(160deg,#05152c,#0b4b74 50%,#071d3a);
}
.photo-card .hero-photo-stage[data-effect="cylinder"] img.hero-photo,
.photo-card .hero-photo-stage[data-effect="wheel"] img.hero-photo{
 inset:auto!important;left:50%!important;top:50%!important;
 width:76%!important;height:80%!important;border-radius:14px!important;
 border:1px solid rgba(213,239,255,.42)!important;
 box-shadow:0 14px 40px rgba(0,3,20,.45)!important;
 transition:transform .8s cubic-bezier(.2,.7,.24,1),opacity .6s ease,visibility .6s ease!important;
 will-change:transform,opacity;
 backface-visibility:hidden;transform-style:preserve-3d;
}
.photo-card .hero-photo-stage[data-effect="wheel"] img.hero-photo{height:78%!important;width:73%!important}
.photo-fit-form{display:grid;gap:12px;margin:16px 0;padding:13px;background:rgba(6,39,77,.4);border-radius:12px}
.photo-fit-form label{display:grid;gap:6px;color:#bdddef;font-size:12px}
.photo-fit-form input,.photo-fit-form select{max-width:100%;color:#f3faff;background:#0a2b50;border:1px solid #24648b;border-radius:8px;padding:10px}
.photo-fit-form .two-fields{gap:10px}
@media(max-width:760px){.photo-card .hero-photo-stage[data-effect="cylinder"] img.hero-photo,.photo-card .hero-photo-stage[data-effect="wheel"] img.hero-photo{width:77%!important;height:85%!important}}
@media(prefers-reduced-motion:reduce){.photo-card .hero-photo-stage img.hero-photo{transition:none!important}}
