
.photo-page .main-content{max-width:none;width:100%}
.photo-page-shell{width:min(1440px,calc(100% - 24px));margin:18px auto;display:grid;gap:18px}
.photo-page-hero{position:relative;overflow:hidden;border-radius:28px;min-height:260px;color:#fff;box-shadow:0 24px 70px rgba(15,23,42,.16)}
.photo-page-hero-bg{position:absolute;inset:0;background-size:cover;background-repeat:no-repeat;filter:saturate(1.03)}
.photo-page-hero-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(15,23,42,.82),rgba(79,70,229,.42) 50%,rgba(15,23,42,.7))}
.photo-page-hero-inner{position:relative;z-index:1;display:flex;align-items:flex-end;gap:20px;padding:28px;min-height:260px}
.photo-page-layout>.photo-page-hero{grid-column:1 / -1}
.photo-page-avatar{width:104px;height:104px;border-radius:28px;object-fit:cover;border:4px solid rgba(255,255,255,.9)}
.photo-page-kicker{display:inline-block;background:rgba(255,255,255,.14);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.photo-page-copy h1{margin:10px 0 6px;font-size:clamp(30px,5vw,52px);line-height:1.02}
.photo-page-copy p{margin:0;color:rgba(255,255,255,.92)}
.photo-page-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end}.photo-page-link{display:inline-flex;padding:12px 18px;border-radius:999px;background:#fff;color:#0f172a;text-decoration:none;font-weight:800}
.photo-upload-card,.photo-grid-card{border-radius:24px;padding:22px;box-shadow:0 18px 50px rgba(15,23,42,.08)}
.photo-upload-head{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.photo-upload-head h2{margin:0;font-size:clamp(28px,3vw,38px);line-height:1.05;color:#0f172a}
.photo-upload-head p{margin:0;color:#475569;line-height:1.55;max-width:64ch}
.photo-upload-grid{display:grid;grid-template-columns:minmax(340px,1.05fr) minmax(320px,.95fr);gap:24px;align-items:start}
.photo-upload-preview-wrap{display:flex;flex-direction:column;gap:14px}
.photo-upload-preview{min-height:300px;border-radius:26px;background:linear-gradient(180deg,#f8fafc,#eef2ff);border:1px dashed #cbd5e1;display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
.photo-upload-preview span{font-size:18px;font-weight:800;color:#64748b}
.photo-upload-preview img,.photo-upload-preview video{width:100%;height:300px;object-fit:cover}
.photo-upload-helper{margin:0;color:#64748b;font-size:13px;line-height:1.5}
.photo-upload-file-btn{position:relative;overflow:hidden;display:inline-flex;align-self:flex-start;padding:12px 18px;border-radius:999px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 14px 30px rgba(79,70,229,.24)}
.photo-upload-file-btn input{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;cursor:pointer}
.photo-upload-fields{display:grid;gap:16px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid rgba(226,232,240,.95);border-radius:24px;padding:18px;box-shadow:0 18px 45px rgba(15,23,42,.05)}
.photo-upload-field{display:grid;gap:8px}
.photo-upload-field span{font-size:13px;font-weight:900;letter-spacing:.02em;color:#334155}
.photo-upload-fields textarea{width:100%;border:1px solid #cbd5e1;border-radius:18px;padding:14px 16px;min-height:156px;background:#f8fafc;resize:vertical}
.photo-upload-option-card{display:grid;gap:6px;padding:14px 16px;border-radius:20px;background:#fff7ed;border:1px solid rgba(251,146,60,.18)}
.photo-upload-option-card small{color:#7c2d12;line-height:1.45}
.photo-upload-check{display:flex;gap:10px;align-items:center;font-weight:800;color:#1f2937}
.photo-upload-check input{width:18px;height:18px}
.photo-upload-progress{position:relative;height:12px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.photo-upload-progress b{display:block;height:100%;background:linear-gradient(135deg,#22c55e,#4f46e5)}
.photo-upload-progress span{position:absolute;right:8px;top:-2px;font-size:10px;font-weight:800}
.photo-upload-status{font-weight:700;color:#475569;min-height:22px}
.photo-upload-actions-row{display:flex;align-items:center;justify-content:flex-end}
.photo-upload-submit{border:0;border-radius:18px;padding:15px 24px;background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff;font-weight:900;cursor:pointer;min-width:220px;box-shadow:0 18px 36px rgba(234,88,12,.22)}
.photo-upload-open-btn{box-shadow:0 16px 36px rgba(79,70,229,.22)}
.photo-upload-modal.hidden{display:none!important}
.photo-upload-modal{position:fixed;inset:0;z-index:240000;display:grid;place-items:center;padding:18px}
.photo-upload-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.78);backdrop-filter:blur(12px)}
.photo-upload-modal-card{position:relative;z-index:2;width:min(1080px,calc(100vw - 28px));max-height:min(92vh,980px);overflow:auto;padding:28px;border-radius:30px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 36px 96px rgba(15,23,42,.32);border:1px solid rgba(255,255,255,.74)}
.photo-upload-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.photo-upload-modal-copy{display:grid;gap:8px}
.photo-upload-modal-kicker{display:inline-flex;align-self:flex-start;padding:7px 12px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.photo-upload-modal-head h2{margin:0;font-size:clamp(28px,4vw,42px);line-height:1.02;color:#0f172a}
.photo-upload-modal-head p{margin:0;color:#475569;line-height:1.6;max-width:58ch}
.photo-upload-modal-close{border:0;width:46px;height:46px;border-radius:999px;background:#e2e8f0;color:#0f172a;font-size:28px;line-height:1;cursor:pointer;flex:0 0 auto}
.photo-upload-form-modal{display:grid;gap:0}
.photo-grid-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.photo-grid-head-copy{display:grid;gap:6px;min-width:0}
.photo-grid-head-copy h2{margin:0}
.photo-grid-head-copy p{margin:0;color:#64748b;line-height:1.55;max-width:54ch}
.photo-grid-head-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.photo-grid-total{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.photo-grid-sort{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;background:#f8fafc;border:1px solid rgba(203,213,225,.95)}
.photo-grid-sort span{font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.photo-grid-sort select{border:0;background:transparent;color:#0f172a;font-weight:800;padding-right:8px}
.photo-sidebar-rail{display:grid;gap:18px;align-self:start}
.photo-sidebar-card{padding:16px 14px;border-radius:24px;box-shadow:0 18px 50px rgba(15,23,42,.08)}
.photo-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.photo-sidebar-head h3{margin:0;font-size:18px;line-height:1.1;color:#0f172a}
.photo-sidebar-head span{font-size:12px;font-weight:900;color:#64748b;background:#eef2ff;padding:6px 10px;border-radius:999px}
.photo-sidebar-list{display:grid;gap:12px}
.photo-sidebar-item{display:grid;gap:10px;padding:10px;border-radius:18px;background:#f8fafc;border:1px solid rgba(226,232,240,.95);box-shadow:0 10px 26px rgba(15,23,42,.05)}
.photo-sidebar-open{display:block;border:0;padding:0;background:transparent;cursor:pointer;border-radius:14px;overflow:hidden}
.photo-sidebar-open img,.photo-sidebar-open video{display:block;width:100%;height:148px;object-fit:cover;border-radius:14px}
.photo-sidebar-copy p{margin:0;font-size:13px;line-height:1.45;color:#334155;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.photo-sidebar-copy p.is-muted{color:#94a3b8}
.photo-sidebar-empty{padding:18px;border-radius:18px;background:#f8fafc;color:#64748b;font-weight:700;text-align:center}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.photo-grid-item{position:relative;overflow:hidden;border-radius:22px;background:#f8fafc;box-shadow:0 12px 32px rgba(15,23,42,.08)}.photo-grid-item img,.photo-grid-item video{display:block;width:100%;height:240px;object-fit:cover}.photo-grid-caption{padding:10px 12px;color:#334155;font-size:13px;line-height:1.45}.photo-grid-more{padding:16px;text-align:center;color:#64748b;font-weight:700}.photo-grid-more.is-visible{display:block!important}
@media (min-width:981px){
  body.profile-photo-page .photo-sidebar-rail{
    position:sticky!important;
    top:72px!important;
    max-height:calc(100vh - 84px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    padding-bottom:22px!important;
    scrollbar-width:thin;
    scroll-behavior:auto;
  }
  body.profile-photo-page .photo-sidebar-rail::-webkit-scrollbar{
    width:8px;
  }
  body.profile-photo-page .photo-sidebar-rail::-webkit-scrollbar-thumb{
    background:rgba(15,23,42,.22);
    border-radius:999px;
  }
  body.profile-photo-page .photo-sidebar-rail > :last-child{
    margin-bottom:120px!important;
  }
}
@media (max-width:980px){
  body.profile-photo-page .app-shell{
    min-height:100dvh!important;
    display:flex!important;
    flex-direction:column!important;
  }
  body.profile-photo-page .layout-grid,
  body.profile-photo-page .main-content{
    flex:1 0 auto!important;
  }
  body.profile-photo-page .pro-mobile-bottom-nav{
    display:grid!important;
    visibility:visible!important;
  }
}
@media (max-width:900px){.photo-page-shell{width:100%;margin:0}.photo-page-hero,.photo-upload-card,.photo-grid-card{border-radius:0}.photo-page-hero-inner,.photo-upload-card,.photo-grid-card{padding:18px}.photo-upload-grid{grid-template-columns:1fr}.photo-page-hero-inner{flex-direction:column;align-items:flex-start}.photo-page-actions{margin-left:0;width:100%;justify-content:flex-start;flex-wrap:wrap}.photo-upload-fields{padding:16px}.photo-upload-actions-row{justify-content:stretch}.photo-upload-submit{width:100%;min-width:0}.photo-upload-modal{padding:0;align-items:end}.photo-upload-modal-card{width:100vw;max-height:100vh;height:100vh;border-radius:24px 24px 0 0;padding:20px 18px calc(96px + env(safe-area-inset-bottom,0px))}.photo-upload-modal-head{position:sticky;top:0;background:linear-gradient(180deg,#fff 86%,rgba(255,255,255,.88));padding-bottom:12px;z-index:2}.photo-upload-modal-close{width:42px;height:42px}.photo-grid-head{align-items:flex-start;flex-direction:column}.photo-grid-head-copy p{max-width:none}.photo-grid-head-controls{width:100%;justify-content:space-between}.photo-grid-sort{width:100%;justify-content:space-between}}
.photo-upload-open{overflow:hidden}

.photos-fire-btn{
  width:64px;
  height:64px;
  border:0;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  font-size:30px;
  cursor:pointer;
  background:linear-gradient(135deg,#f97316,#dc2626);
  color:#fff;
  box-shadow:0 18px 40px rgba(220,38,38,.28);
}
.photos-fire-modal.hidden{display:none!important}
.photos-fire-modal{
  position:fixed;
  inset:0;
  z-index:250000;
  display:grid;
  place-items:center;
  padding:18px;
}
.photos-fire-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.74);
  backdrop-filter:blur(10px);
}
.photos-fire-card{
  position:relative;
  z-index:2;
  width:min(520px,calc(100vw - 24px));
  padding:28px 24px;
  border-radius:30px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:0 36px 90px rgba(15,23,42,.32);
  text-align:center;
  border:1px solid rgba(255,255,255,.7);
}
.photos-fire-icon{
  width:82px;
  height:82px;
  margin:0 auto 16px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:38px;
  background:linear-gradient(135deg,#ffedd5,#fee2e2);
  box-shadow:0 14px 32px rgba(249,115,22,.18);
}
.photos-fire-card h3{
  margin:0 0 10px;
  font-size:30px;
  line-height:1.15;
  color:#0f172a;
}
.photos-fire-text{
  margin:0 auto;
  color:#475569;
  line-height:1.6;
  max-width:34ch;
}
.photos-fire-actions{
  margin-top:22px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.photos-fire-no,
.photos-fire-yes{
  border:0;
  border-radius:999px;
  padding:12px 22px;
  font-weight:800;
  cursor:pointer;
}
.photos-fire-no{
  background:#e2e8f0;
  color:#0f172a;
}
.photos-fire-yes{
  background:linear-gradient(135deg,#f97316,#dc2626);
  color:#fff;
  box-shadow:0 14px 30px rgba(220,38,38,.24);
}
.photos-fire-open{overflow:hidden}


.photos-fire-btn{width:72px;height:72px;border:0;border-radius:999px;display:inline-grid;place-items:center;font-size:34px;cursor:pointer;background:linear-gradient(135deg,#fb923c,#dc2626);color:#fff;box-shadow:0 22px 48px rgba(220,38,38,.30);transition:transform .18s ease, box-shadow .18s ease}
.photos-fire-btn:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 26px 58px rgba(220,38,38,.36)}
.photos-fire-modal.hidden{display:none!important}.photos-fire-modal{position:fixed;inset:0;z-index:250000;display:grid;place-items:center;padding:18px}.photos-fire-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.78);backdrop-filter:blur(12px)}
.photos-fire-card{position:relative;z-index:2;width:min(560px,calc(100vw - 24px));padding:34px 28px 28px;border-radius:34px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 40px 100px rgba(15,23,42,.36);text-align:center;border:1px solid rgba(255,255,255,.76);overflow:hidden;transform:translateY(0) scale(1);opacity:1}
.photos-fire-card.is-entering{animation:photosFireIn .28s ease}.photos-fire-card.is-leaving{animation:photosFireOut .18s ease forwards}.photos-fire-orb{position:absolute;width:220px;height:220px;right:-70px;top:-80px;border-radius:999px;background:radial-gradient(circle, rgba(251,146,60,.28), rgba(220,38,38,.06) 60%, transparent 72%);pointer-events:none}.photos-fire-icon{width:88px;height:88px;margin:0 auto 16px;border-radius:999px;display:grid;place-items:center;font-size:42px;background:linear-gradient(135deg,#ffedd5,#fee2e2);box-shadow:0 16px 36px rgba(249,115,22,.20)}
.photos-fire-card h3{margin:0 0 10px;font-size:32px;line-height:1.12;color:#0f172a}.photos-fire-text{margin:0 auto;color:#475569;line-height:1.65;max-width:34ch}.photos-fire-summary{margin:16px auto 0;padding:12px 14px;border-radius:18px;background:linear-gradient(180deg,#fff7ed,#fff1f2);color:#7c2d12;font-weight:700;line-height:1.5;max-width:42ch;border:1px solid rgba(249,115,22,.16)}
.photos-fire-steps{display:flex;justify-content:center;gap:10px;margin-top:18px}.photos-fire-steps span{width:12px;height:12px;border-radius:999px;background:#e2e8f0;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}.photos-fire-steps span.is-active{background:#fb923c}.photos-fire-steps span.is-current{transform:scale(1.18);background:#dc2626}.photos-fire-actions{margin-top:24px;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.photos-fire-no,.photos-fire-yes{border:0;border-radius:999px;padding:13px 24px;font-weight:800;cursor:pointer;min-width:120px}.photos-fire-no{background:#e2e8f0;color:#0f172a}.photos-fire-yes{background:linear-gradient(135deg,#fb923c,#dc2626);color:#fff;box-shadow:0 14px 30px rgba(220,38,38,.24)}.photos-fire-open{overflow:hidden}@keyframes photosFireIn{from{transform:translateY(16px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes photosFireOut{from{transform:translateY(0) scale(1);opacity:1}to{transform:translateY(10px) scale(.97);opacity:0}}

.photo-standalone-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#fff;border-bottom:1px solid rgba(15,23,42,.08);position:sticky;top:0;z-index:20}.photo-standalone-brand,.photo-standalone-back{text-decoration:none;font-weight:800;color:#0f172a}.photo-page-standalone{background:#f8fafc;min-height:100vh}
