/* Halaman publik: galeri, halaman app (/a/), 404 */

/* ---------- halaman app /a/<slug> ---------- */
body.apppage { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
.appbar { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 12px 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.appbar .made { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.appbar .made img { width: 24px; height: 24px; }
.appbar .made b { color: var(--text); font-weight: 600; }
.appbar .vsep { width: 1px; height: 22px; background: var(--line-strong); }
.appbar .t { min-width: 0; display: grid; }
.appbar .t h1 { font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .t small { color: var(--dim); font: 11.5px var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .t small a { color: var(--muted); text-decoration: none; }
.appbar .t small a:hover { color: var(--text); }
.appbar .acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.appbar .btn svg { width: 15px; height: 15px; }
.app-warn { margin: 0; padding: 6px 16px; font: 500 12px/1.4 var(--font-body, system-ui, sans-serif); color: #c9cfe6; background: #10142a; border-bottom: 1px solid rgba(255,255,255,.06); text-align: center; }
.app-warn a { color: #5ee6d6; text-decoration: underline; text-underline-offset: 2px; }
.app-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
@media (max-width: 720px) {
  .appbar { gap: 10px; padding: 8px 10px; }
  .appbar .made span, .appbar .vsep, .appbar .hide-sm { display: none; }
  .appbar .btn .lbl { display: none; }
  .appbar .btn.lblkeep .lbl { display: inline; }
}

/* ---------- galeri ---------- */
.gal-wrap { max-width: 1240px; margin: 0 auto; padding: 44px 24px 80px; }
.gal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.gal-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1; margin-top: 10px; }
.gal-head p { color: var(--muted); margin-top: 10px; max-width: 52ch; font-size: 15px; }
.gal-ctrl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gal-ctrl .seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.gal-ctrl .seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.gal-ctrl .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.gal-ctrl .input { width: 220px; }
.gal-count { font: 11.5px var(--font-mono); color: var(--dim); margin-bottom: 12px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 20px; }
.gcard { text-decoration: none; color: var(--text); display: grid; gap: 10px; }
.gthumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .25s var(--ease); }
.gcard:hover .gthumb { box-shadow: 0 0 0 1px rgba(94, 230, 214, .45), 0 20px 50px -24px rgba(94, 230, 214, .25); transform: translateY(-2px); }
.gthumb iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.gthumb .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.gthumb .ph img { width: 44px; height: 44px; opacity: .25; }
.gthumb .shield { position: absolute; inset: 0; }
.gmeta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.gmeta b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmeta span { font: 11.5px var(--font-mono); color: var(--dim); white-space: nowrap; }
.gsub { font: 11.5px var(--font-mono); color: var(--dim); margin-top: -6px; }
.gal-empty { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.gal-empty .avatar { width: 72px; height: 72px; }
.gal-more { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 560px) {
  .gal-wrap { padding: 28px 16px 60px; }
  .gal-ctrl, .gal-ctrl .input { width: 100%; }
  .gal-ctrl .input { flex: 1; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.nf .avatar { width: 96px; height: 96px; margin: 0 auto 18px; }
.nf h1 { font-size: 34px; margin-bottom: 8px; }
.nf p { color: var(--muted); margin-bottom: 20px; }
