/* ==========================================================
   hadir. Camera
   Build 003
   Global Application Styles
========================================================== */

 *{ box-sizing: border-box; -webkit-tap-highlight-color: transparent;}
  html, body {
    margin: 0;
    height: 100%;
    background: #0a0a0a;
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    touch-action: pan-y;
  }

 .app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: calc(env(safe-area-inset-top, 16px) + 8px) 14px calc(env(safe-area-inset-bottom, 12px) + 10px);
    gap: 12px;
  }

  

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .icon-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
  }
  .event-title-wrap { text-align: center; color: #fff; }
  .event-title { font-size: 14px; font-weight: 600; }
  .event-sub { font-size: 10.5px; color: rgba(255,255,255,0.5); margin-top: 1px; }
  .top-right-stack { display: flex; flex-direction: column; gap: 8px; }

  .sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 25;
    display: none;
  }
  .sheet-backdrop.open { display: block; }
  .sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #1c1c1e;
    border-radius: 20px 20px 0 0;
    padding: 10px 20px calc(env(safe-area-inset-bottom, 14px) + 18px);
    z-index: 26;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
  }

  
 
  .sheet.open { transform: translateY(0); }
  .sheet-handle {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    margin: 0 auto 14px;
  }
  .sheet-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
  }
  .sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .sheet-slot {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }
  .sheet-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .sheet-slot.empty {
    border: 1.5px dashed rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    padding: 6px;
  }
  .sheet-note {
    color: rgba(255,255,255,0.4);
    font-size: 11.5px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
  }
  .sheet-quota {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 22px;
  }
  .sheet-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
  }
  .sheet-btn.done { background: #fff; color: #111; }

  .powered-by-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 12px;
  }
  .powered-by-row strong { color: rgba(255,255,255,0.7); }

  
  .sub-view-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }
  .sub-view-head button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
  }
  .sub-view-head h3 { color: #fff; font-size: 15px; margin: 0; }
