/* Giao diện app: trắng ngà lạnh, chữ mực, điểm nhấn đỏ hồng đậm; tiêu đề Cormorant, nội dung Be Vietnam Pro */
:root {
  --bg: #fbf9f8; --surface: #ffffff; --ink: #231a1c; --muted: #6f6265; --line: #e7dfe0;
  --accent: #9b2c3a; --accent-ink: #ffffff; --ok: #2f7a4f;
  --display: "Cormorant Garamond", "Times New Roman", serif; --body: "Be Vietnam Pro", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171213; --surface: #211a1b; --ink: #f2eaeb; --muted: #b3a5a8; --line: #3a2f31; --accent: #e0707f; --accent-ink: #1a1011; --ok: #6cc08f; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--body); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.logo { font: 600 26px var(--display); color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); font-weight: 600; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 48px); } h2 { font-size: 26px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 14px var(--body); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tpl { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tpl .frame { aspect-ratio: 9/16; max-height: 460px; width: 100%; position: relative; overflow: hidden; background: #000; }
.tpl iframe { position: absolute; inset: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; border: 0; pointer-events: none; }
.tpl .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tpl .row { display: flex; gap: 8px; flex-wrap: wrap; }
.mine { margin-top: 48px; } .mine ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mine li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
