/* PERSONALIZATODO AR — iOS-style local gallery. Independent visual component. */
.ptar-ar-gallery{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:0 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(0,0,0,.28);color:#fff;font-size:12px;font-weight:600;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 3px 14px rgba(0,0,0,.18);cursor:pointer}
.ptar-ar-gallery span:first-child{font-size:16px;line-height:1}
.ptar-ar-gallery-label{line-height:1}
.ptar-gallery-sheet{position:absolute;inset:0;z-index:120;display:none;flex-direction:column;background:rgba(247,247,250,.98);color:#111;overflow:hidden;isolation:isolate;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Inter,Arial,sans-serif}
.ptar-gallery-sheet.is-open{display:flex}
.ptar-gallery-nav{height:64px;min-height:64px;padding:calc(8px + env(safe-area-inset-top)) 14px 8px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;background:rgba(247,247,250,.84);border-bottom:1px solid rgba(60,60,67,.12);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.ptar-gallery-title{font-size:20px;font-weight:700;letter-spacing:-.02em}
.ptar-gallery-close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(118,118,128,.12);font-size:22px;line-height:34px;cursor:pointer}
.ptar-gallery-segmented{margin:10px 14px 8px;padding:2px;display:flex;gap:2px;border-radius:10px;background:rgba(118,118,128,.12)}
.ptar-gallery-tab{flex:1;border:0;border-radius:8px;background:transparent;padding:7px 10px;color:#666;font-size:12px;font-weight:600;cursor:pointer}
.ptar-gallery-tab.is-active{background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.ptar-gallery-count{padding:0 14px 8px;color:#6e6e73;font-size:11px}
.ptar-gallery-grid{flex:1;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:0 2px 12px;align-content:start;-webkit-overflow-scrolling:touch}
.ptar-gallery-item{position:relative;aspect-ratio:1/1;overflow:hidden;border:0;padding:0;background:#ddd;cursor:pointer}
.ptar-gallery-item img,.ptar-gallery-item video{width:100%;height:100%;display:block;object-fit:cover}
.ptar-gallery-video-badge{position:absolute;right:7px;bottom:7px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.58);color:#fff;font-size:10px}
.ptar-gallery-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;padding:30px;text-align:center;color:#6e6e73}
.ptar-gallery-empty-icon{font-size:38px;margin-bottom:10px}
.ptar-gallery-empty strong{font-size:16px;color:#1d1d1f;margin-bottom:5px}
.ptar-gallery-empty span{font-size:12px;line-height:1.45;max-width:260px}
.ptar-gallery-viewer{position:absolute;inset:0;z-index:130;display:none;flex-direction:column;background:#000;color:#fff}
.ptar-gallery-viewer.is-open{display:flex}
.ptar-gallery-viewer-head{height:64px;min-height:64px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;display:flex;align-items:flex-end;justify-content:space-between;background:linear-gradient(rgba(0,0,0,.7),transparent);position:absolute;left:0;right:0;top:0;z-index:3}
.ptar-gallery-viewer-close{border:0;background:rgba(255,255,255,.14);color:#fff;width:34px;height:34px;border-radius:50%;font-size:22px;cursor:pointer}
.ptar-gallery-viewer-body{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}
.ptar-gallery-viewer-body img,.ptar-gallery-viewer-body video{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.ptar-gallery-viewer-foot{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:10px 14px calc(12px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:8px;background:linear-gradient(transparent,rgba(0,0,0,.72))}
.ptar-gallery-action{border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;padding:8px 13px;font-size:12px;font-weight:600;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer}
.ptar-gallery-action.danger{color:#ffb4b4}
@media(max-width:600px){.ptar-ar-gallery-label{display:none}.ptar-ar-gallery{width:40px;justify-content:center;padding:0}.ptar-gallery-title{font-size:19px}}
.ptar-ar-leftbar{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:25;display:flex;flex-direction:column;gap:8px}
.ptar-ar-leftbar .ptar-ar-gallery{margin:0}
.ptar-gallery-page{position:relative;width:100%;min-height:520px;background:#f7f7fa;color:#111;border-radius:24px;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Inter,Arial,sans-serif;box-shadow:0 8px 30px rgba(0,0,0,.08)}
.ptar-gallery-page-header{padding:28px 22px 8px;background:rgba(247,247,250,.92)}
.ptar-gallery-page-title{font-size:30px;font-weight:750;letter-spacing:-.03em}
.ptar-gallery-page-subtitle{margin-top:4px;font-size:13px;color:#6e6e73}
.ptar-gallery-page .ptar-gallery-sheet{position:absolute!important;inset:72px 0 0!important;background:transparent}
.ptar-gallery-page .ptar-gallery-nav{display:none}
@media(min-width:900px){.ptar-gallery-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:600px){.ptar-ar-leftbar{left:8px}.ptar-gallery-page{border-radius:18px}.ptar-gallery-page-title{font-size:26px}}
