/* QrTapz public card page. Self-contained: no build step needed. Six styles, set by data-theme on <body>. */
body {
    --bg: #020d28; --card: #071537; --ink: #f8fafc; --muted: #b9c5de; --line: rgba(255,255,255,.14);
    --tile: rgba(255,255,255,.06); --accent: #38bdf8; --accent-ink: #04122e; --band: #0b2a5e;
}
body[data-theme="classic"] { --bg: #f1f4fa; --card: #ffffff; --ink: #0f172a; --muted: #475569; --line: #dbe2ee; --tile: #ffffff; --accent: #2563eb; --accent-ink: #ffffff; --band: #dbe7ff; }
body[data-theme="gradient"] { --bg: linear-gradient(160deg, #1d4ed8, #0ea5e9); --card: rgba(255,255,255,.14); --ink: #ffffff; --muted: #e0f2fe; --line: rgba(255,255,255,.28); --tile: rgba(255,255,255,.16); --accent: #ffffff; --accent-ink: #1d4ed8; --band: rgba(255,255,255,.18); }
body[data-theme="minimal"] { --bg: #ffffff; --card: #ffffff; --ink: #111827; --muted: #4b5563; --line: #e5e7eb; --tile: #ffffff; --accent: #111827; --accent-ink: #ffffff; --band: #f3f4f6; }
body[data-theme="glass"] { --bg: linear-gradient(135deg, #dbeafe, #fce7f3); --card: rgba(255,255,255,.62); --ink: #0f172a; --muted: #334155; --line: rgba(255,255,255,.9); --tile: rgba(255,255,255,.75); --accent: #2563eb; --accent-ink: #ffffff; --band: rgba(255,255,255,.5); }
body[data-theme="bold"] { --bg: #020617; --card: #111827; --ink: #ffffff; --muted: #e5e7eb; --line: rgba(250,204,21,.32); --tile: rgba(250,204,21,.10); --accent: #facc15; --accent-ink: #111827; --band: #facc15; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; background: var(--bg); background-attachment: fixed; color: var(--ink);
    font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
img { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 16px 40px; }
.flash { margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: #e2f6ee; color: #0b5c3e; font-weight: 700; text-align: center; }
.card { border-radius: 28px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
body[data-theme="glass"] .card, body[data-theme="gradient"] .card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body[data-theme="minimal"] .card { border-color: transparent; }

.cover { height: 150px; background: var(--band); overflow: hidden; }
.cover.is-small { height: 110px; }
.cover.is-large { height: 200px; }
.cover img { width: 100%; height: 100%; }
.who { padding: 0 22px 8px; text-align: center; }
.avatar {
    width: 112px; height: 112px; margin: -56px auto 0; position: relative; overflow: hidden;
    border-radius: 50%; border: 5px solid var(--card); background: var(--accent); color: var(--accent-ink);
    display: grid; place-items: center; font-family: "Bricolage Grotesque", sans-serif; font-size: 2.75rem; font-weight: 800;
}
body[data-theme="gradient"] .avatar, body[data-theme="glass"] .avatar { border-color: #ffffff; }
.avatar img { width: 100%; height: 100%; }
.who h1 { margin-top: 14px; font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; font-size: clamp(1.75rem, 7vw, 2.125rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; overflow-wrap: anywhere; }
.headline { margin-top: 8px; color: var(--ink); font-weight: 600; }
.about { margin-top: 10px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }

.actions { display: grid; gap: 10px; padding: 18px 22px 4px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 18px;
    border: 2px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
    font: inherit; font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; font-size: 1.0625rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.is-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn i { font-size: 1.125rem; }

.links { list-style: none; margin: 0; padding: 18px 22px 6px; display: grid; gap: 10px; }
.link {
    display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; min-height: 68px; padding: 10px 16px 10px 10px;
    border-radius: 18px; background: var(--tile); border: 1px solid var(--line); color: var(--ink);
    font-size: 1.125rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
}
.link:active { transform: scale(.99); }
.link .icon { width: 48px; height: 48px; border-radius: 14px; background: #ffffff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }

.note { margin: 18px 22px 0; padding: 16px; border-radius: 16px; border: 2px dashed var(--line); text-align: center; color: var(--muted); }
.owner { padding: 14px 22px 0; }
.end { padding: 22px; text-align: center; }
.made { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 1rem; font-weight: 600; text-decoration: none; }
.made img { width: 28px; height: 28px; border-radius: 8px; }
.made:hover { color: var(--ink); }

dialog { width: min(440px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 24px; background: #ffffff; color: #14142B; }
dialog::backdrop { background: rgba(2, 6, 23, .7); }
.sheet { padding: 24px; display: grid; gap: 16px; }
.sheet h2 { font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.sheet p { color: #4A4A68; }
.sheet label { display: grid; gap: 6px; font-weight: 700; }
.sheet input { width: 100%; height: 54px; padding: 0 14px; border: 2px solid #C9CCE0; border-radius: 12px; background: #ffffff; color: #14142B; font: inherit; font-size: 1.125rem; }
.sheet input:focus { outline: none; border-color: #2B3FF2; box-shadow: 0 0 0 4px rgba(43,63,242,.18); }
.sheet .btn { border-color: #C9CCE0; color: #14142B; }
.sheet .btn.is-main { background: #2B3FF2; border-color: #2B3FF2; color: #ffffff; }
