
  .ph-add-card { position:fixed; left:50%; bottom:calc(18px + env(safe-area-inset-bottom, 0px)); transform:translate(-50%, 140%); width:min(420px, calc(100vw - 28px)); background:#0f172a; color:#fff; border-radius:16px; padding:10px 14px 10px 10px; display:flex; align-items:center; gap:12px; box-shadow:0 12px 28px rgba(2,6,23,.4); z-index:2147482000; transition:transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s; font-family:Inter, sans-serif; }
  .ph-add-card.in { transform:translate(-50%, 0); }
  .ph-add-card.out { transform:translate(-50%, 140%); opacity:0; }
  .ph-add-card .th { display:flex; flex:none; }
  .ph-add-card .th img, .ph-add-card .th span { width:36px; height:36px; border-radius:8px; object-fit:cover; border:2px solid #0f172a; background:#334155; display:block; }
  .ph-add-card .th > * + * { margin-left:-10px; }
  .ph-add-card .mid { flex:1; min-width:0; }
  .ph-add-card b { display:block; font-size:14px; font-weight:700; white-space:nowrap; }
  .ph-add-card .bar { height:4px; border-radius:2px; background:#334155; margin-top:7px; overflow:hidden; }
  .ph-add-card .bar i { display:block; height:100%; width:0; background:#22c55e; border-radius:2px; transition:width .4s; }
  .ph-add-card em { font-style:normal; font-size:12.5px; font-weight:600; color:#94a3b8; white-space:nowrap; }
  .img-time-cap { position:absolute; left:50%; bottom:80px; transform:translateX(-50%); z-index:100005; display:none; align-items:center; gap:7px;
                  background:rgba(15,23,42,0.78); color:#fff; border:1px solid rgba(255,255,255,0.22); border-radius:12px; padding:7px 14px;
                  font:700 14px 'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; white-space:nowrap; font-variant-numeric:tabular-nums; pointer-events:none; }
  .img-time-cap .k { color:#94a3b8; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.5px; }
  html body #image-modal .img-time-cap { background:none !important; border:0 !important; padding:0 !important; border-radius:0 !important; gap:0 !important; bottom:auto; top:auto;
    color:rgba(255,255,255,.62) !important; font:500 13px 'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif !important; letter-spacing:.2px; text-shadow:0 1px 3px rgba(0,0,0,.85); }
  html body #image-modal .img-time-cap .k { color:inherit !important; font:inherit !important; text-transform:none !important; letter-spacing:inherit !important; }
  #tsp-cam { display:none; position:fixed; inset:0; z-index:100200; background:#000; touch-action:none; user-select:none; -webkit-user-select:none; }
  #tsp-cam * { font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; box-sizing:border-box; }
  #tsp-cam video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#000; }
  #tsp-cam .tc-flash { position:absolute; inset:0; background:#fff; opacity:0; pointer-events:none; transition:opacity .18s ease-out; }
  #tsp-cam .tc-flash.on { opacity:0.55; transition:none; }
  #tsp-cam .tc-top { position:absolute; left:0; right:0; top:0; display:flex; align-items:center; gap:10px; padding:calc(env(safe-area-inset-top) + 12px) 14px 12px;
                     background:linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0)); }
  #tsp-cam .tc-title { flex:1; min-width:0; color:#fff; font-size:14px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #tsp-cam .tc-title small { display:block; color:#cbd5e1; font-size:11.5px; font-weight:700; margin-top:1px; }
  #tsp-cam .tc-round { width:44px; height:44px; border-radius:22px; border:none; background:rgba(0,0,0,0.45); color:#fff; font-size:20px; font-weight:800; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
  #tsp-cam .tc-round.on { background:#facc15; color:#0f172a; }
  #tsp-cam .tc-bottom { position:absolute; left:0; right:0; bottom:0; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:18px 22px calc(env(safe-area-inset-bottom) + 26px);
                        background:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6)); }
  #tsp-cam .tc-last { justify-self:start; position:relative; width:56px; height:56px; border-radius:12px; overflow:hidden; border:2px solid rgba(255,255,255,0.85); background:rgba(255,255,255,0.08); visibility:hidden; }
  #tsp-cam .tc-last img { width:100%; height:100%; object-fit:cover; display:block; }
  #tsp-cam .tc-last b { position:absolute; right:-2px; top:-2px; min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:#10b981; color:#fff; font-size:12px; font-weight:900; display:flex; align-items:center; justify-content:center; }
  #tsp-cam .tc-shutter { width:78px; height:78px; border-radius:50%; border:5px solid #fff; background:rgba(255,255,255,0.25); cursor:pointer; padding:0; position:relative; }
  #tsp-cam .tc-shutter::after { content:''; position:absolute; inset:6px; border-radius:50%; background:#fff; transition:transform .1s; }
  #tsp-cam .tc-shutter:active::after, #tsp-cam .tc-shutter.busy::after { transform:scale(0.86); }
  #tsp-cam .tc-shutter[disabled] { opacity:0.35; }
  #tsp-cam .tc-done { justify-self:end; height:46px; padding:0 22px; border-radius:23px; border:none; background:#fff; color:#0f172a; font-size:15px; font-weight:900; cursor:pointer; }
  #tsp-cam .tc-zoom { position:absolute; left:50%; bottom:calc(env(safe-area-inset-bottom) + 176px); transform:translateX(-50%); display:none; gap:6px; padding:4px; border-radius:999px; background:rgba(0,0,0,0.45); }   
  #tsp-cam .tc-zoom.on { display:flex; } #tsp-cam .tc-zoom button { min-width:40px; height:32px; padding:0 8px; border:none; border-radius:999px; background:transparent; color:#e2e8f0; font-size:12.5px; font-weight:800; cursor:pointer; }
  #tsp-cam .tc-zoom button.on { background:rgba(255,255,255,0.92); color:#0f172a; }
  #tsp-cam video { transform-origin:50% 50%; }
  #tsp-cam .tc-mode { position:absolute; left:50%; bottom:calc(env(safe-area-inset-bottom) + 128px); transform:translateX(-50%); display:flex; gap:4px; padding:4px; border-radius:999px; background:rgba(0,0,0,0.45); }
  #tsp-cam .tc-mode button { height:32px; padding:0 16px; border:none; border-radius:999px; background:transparent; color:#e2e8f0; font-size:13px; font-weight:800; letter-spacing:.04em; cursor:pointer; }
  #tsp-cam .tc-mode button.on { background:#fff; color:#0f172a; }
  #tsp-cam.rec .tc-mode { visibility:hidden; }
  #tsp-cam .tc-shutter.vid::after { background:#ef4444; inset:10px; }
  #tsp-cam.rec .tc-shutter.vid::after { inset:22px; border-radius:6px; }
  #tsp-cam .tc-rec { position:absolute; left:50%; top:calc(env(safe-area-inset-top) + 72px); transform:translateX(-50%); display:none; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; background:rgba(239,68,68,0.92); color:#fff; font-size:14px; font-weight:800; font-variant-numeric:tabular-nums; }
  #tsp-cam .tc-rec i { width:9px; height:9px; border-radius:50%; background:#fff; animation:tcBlink 1s steps(2) infinite; }
  @keyframes tcBlink { 50% { opacity:0; } }
  #tsp-cam.rec .tc-rec { display:flex; }
  #tsp-cam .tc-last .tc-play { position:absolute; inset:0; display:none; align-items:center; justify-content:center; color:#fff; font-size:20px; text-shadow:0 1px 4px rgba(0,0,0,.6); }
  #tsp-cam .tc-last.is-vid .tc-play { display:flex; }
  #tsp-vplay { display:none; position:fixed; inset:0; z-index:100300; background:#000; align-items:center; justify-content:center; }
  #tsp-vplay.open { display:flex; }
  #tsp-vplay iframe, #tsp-vplay video { width:100%; height:100%; border:0; background:#000; }
  #tsp-vplay video { object-fit:contain; }
  #tsp-vplay .vp-x { position:absolute; top:calc(env(safe-area-inset-top) + 12px); left:14px; z-index:2; width:44px; height:44px; border-radius:22px; border:none; background:rgba(0,0,0,0.55); color:#fff; font-size:20px; font-weight:800; cursor:pointer; }
  .photo-item-wrapper.is-vid::after { content:''; position:absolute; left:50%; top:50%; width:26px; height:26px; margin:-13px 0 0 -13px; border-radius:50%; background:rgba(15,23,42,0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/16px no-repeat; pointer-events:none; }
  #tsp-cam .tc-msg { position:absolute; left:50%; top:46%; transform:translate(-50%,-50%); color:#fff; font-size:14px; font-weight:700; text-align:center; background:rgba(0,0,0,0.55); border-radius:12px; padding:10px 16px; display:none; max-width:86vw; }
