/* Jin 名片 — v1 static, offline-first */
:root {
  --paper: #f3eee6;
  --paper-deep: #e7dfd2;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --muted: #8a8378;
  --line: #e4ddd2;
  --card: #fffdf9;
  --accent: #b33a2b;
  --accent-ink: #fff8f3;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--card));
  --shadow: 0 16px 40px rgba(48, 28, 18, 0.08);
  --radius: 22px;
  --font-zh: "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-tw: "Noto Sans CJK TC", "Noto Sans TC", "Source Han Sans TC",
    "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-ko: "Noto Sans CJK KR", "Noto Sans KR", "Source Han Sans KR",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-ja: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Sans",
    "Yu Gothic", sans-serif;
  --font-th: "Prompt", "Kanit", "Krub", "Noto Sans Thai", sans-serif;
  --font-latin: "Noto Sans", Inter, "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  --font: var(--font-zh);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; max-width: 100%; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-lang="zh"],
body[data-lang="zh-CN"] { --font: var(--font-zh); font-family: var(--font); }
body[data-lang="zh-TW"] { --font: var(--font-tw); font-family: var(--font); }
body[data-lang="ko"] { --font: var(--font-ko); font-family: var(--font); }
body[data-lang="ja"] { --font: var(--font-ja); font-family: var(--font); }
body[data-lang="th"] { --font: var(--font-th); font-family: var(--font); line-height: 1.55; }
body[data-lang="en"],
body[data-lang="vi"],
body[data-lang="ru"],
body[data-lang="es"],
body[data-lang="id"] { --font: var(--font-latin); font-family: var(--font); }

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  background: color-mix(in srgb, var(--paper-deep) 80%, #fff);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}
.lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
  font-weight: 700;
}

/* ========== Card sheet (shared by card page + editor preview) ========== */
.card-sheet {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-sheet .lang-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.avatar-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #1c1917));
  margin-bottom: 12px;
}
.avatar-wrap img,
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  border: 2px solid var(--card);
}
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.card-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
}
.card-title {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}
.card-city {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.card-city svg { width: 14px; height: 14px; }

.btn-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000);
  -webkit-tap-highlight-color: transparent;
}
.btn-action:hover { filter: brightness(1.06); }
.btn-action:active { transform: translateY(1px); }
.btn-action svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-action .btn-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-action .btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.btn-save {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  font-size: 15px;
}
.qr-block {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qr-frame {
  width: 228px;
  max-width: 72vw;
  aspect-ratio: 1;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-frame svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; shape-rendering: crispEdges; }
@media (min-width: 700px) { .qr-frame { width: 264px; } }
.qr-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.card-footer {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* Card page: the sheet is the page */
body.card-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 12px 24px;
}
body.card-page .card-sheet {
  box-shadow: 0 10px 36px rgba(48, 28, 18, 0.07);
  min-height: calc(100vh - 80px);
  justify-content: flex-start;
}
body.card-page .card-footer { margin-top: auto; padding-top: 14px; }

.card-empty {
  max-width: 360px;
  margin: 18vh auto;
  text-align: center;
  padding: 24px;
}
.card-empty h1 { font-size: 20px; margin: 0 0 8px; }
.card-empty p { color: var(--ink-soft); margin: 0 0 16px; }
.card-empty a.btn-action { display: inline-flex; padding: 10px 22px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== Editor ========== */
body.editor-page { padding-bottom: 40px; }
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand .tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
#header-lang {
  max-width: 100%;
}
#header-lang .lang-switch {
  max-width: 100%;
  flex-wrap: nowrap;
}
@media (max-width: 600px) {
  .editor-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .editor-header #header-lang {
    align-self: flex-end;
    max-width: 100%;
  }
  .brand {
    flex-wrap: wrap;
    min-width: 0;
  }
  .brand .tag { white-space: normal; }
}
@media (max-width: 430px) {
  .editor-header { padding: 14px 16px 8px; }
  .lang-switch button { padding: 6px 8px; font-size: 12px; }
}
.editor-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "preview" "form";
  gap: 20px;
  width: 100%;
}
.editor-form,
.preview-pane,
.phone-scale,
.group,
.field {
  grid-area: auto;
  min-width: 0;
  max-width: 100%;
}
.editor-form { grid-area: form; }
.preview-pane { grid-area: preview; }
@media (max-width: 430px) {
  .editor-layout { padding: 8px 16px 24px; }
  .editor-form { padding: 18px 14px 20px; }
}
.editor-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 24px;
}
.group { margin: 0 0 22px; }
.group:last-child { margin-bottom: 0; }
.group h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.field { margin: 0 0 12px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink-soft);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.avatar-field { display: flex; align-items: center; gap: 14px; }
.avatar-field .avatar-wrap { margin: 0; width: 72px; height: 72px; flex: 0 0 auto; }
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.file-btn input { display: none; }
.link-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  padding: 4px 0;
}

.i18n-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.i18n-grid .mini label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
details.more {
  margin-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
details.more summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}
details.more summary::before { content: "▸ "; }
details.more[open] summary::before { content: "▾ "; }
details.more summary::-webkit-details-marker { display: none; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  padding: 0;
  background: var(--sw);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.swatch.custom {
  overflow: hidden;
  position: relative;
  background:
    conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}
.swatch.custom input[type="color"] {
  position: absolute;
  inset: -4px;
  border: 0;
  padding: 0;
  width: 140%;
  height: 140%;
  cursor: pointer;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.editor-actions .btn-action { flex: 1 1 140px; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  border: 1.5px solid var(--accent);
}

.preview-pane h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-align: center;
}
.phone-frame {
  margin: 0 auto;
  width: 100%;
  max-width: 390px;
  min-width: 0;
  background: #1c1917;
  border-radius: 32px;
  padding: 12px 8px 16px;
  box-shadow: var(--shadow);
}
.phone-frame .card-sheet {
  box-shadow: none;
  max-width: none;
  border-radius: 22px;
}
.limit-note {
  max-width: 100%;
  margin: 12px auto 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  padding: 0 4px;
}

.phone-scale {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  min-width: 0;
}

@media (max-width: 959px) {
  .phone-scale .phone-frame {
    width: 100%;
    max-width: 100%;
    max-height: min(560px, 68vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
@media (min-width: 960px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas: "form preview";
    align-items: start;
    gap: 28px;
    padding-top: 12px;
  }
  .preview-pane {
    position: sticky;
    top: 16px;
  }
  .i18n-grid.three { grid-template-columns: 1fr 1fr 1fr; }
}

/* Slightly tighter card on very short screens so QR stays in view */
@media (max-height: 800px) and (max-width: 500px) {
  .avatar-wrap { width: 80px; height: 80px; }
  .card-name { font-size: 23px; }
  .qr-frame { width: 208px; }
}

/* Language dropdown */
.lang-switch-wrap,
#header-lang {
  max-width: 100%;
  min-width: 0;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-deep) 80%, #fff)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2357534e' d='M1 1l5 5 5-5'/></svg>")
    no-repeat right 10px center;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
}
.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.card-sheet .lang-row .lang-select {
  background-color: color-mix(in srgb, var(--paper-deep) 80%, #fff);
}

.site-footer {
  max-width: 1200px;
  margin: 8px auto 28px;
  padding: 0 16px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--ink-soft); text-decoration: underline; }
.site-footer--card { margin-top: 4px; margin-bottom: 16px; }

/* Landing */
.landing,
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  width: 100%;
  min-width: 0;
}
.hero { text-align: center; padding: 12px 0 28px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 6vw, 2.15rem);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: break-word;
}
.lead {
  margin: 0 auto 20px;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.btn-cta {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  max-width: 100%;
  text-decoration: none;
}
.landing .btn-cta { width: 100%; max-width: 360px; }
.landing h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: center;
}
.landing section { margin: 0 0 36px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.feature {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.feature h3, .steps h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.feature p, .steps p, .faq p, .legal p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.demo-section { text-align: center; }
.demo-section .btn-cta { margin-top: 16px; }
.faq details {
  background: var(--card);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 8px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  overflow-wrap: break-word;
}
.faq details p { margin-top: 8px; }

.legal h1 {
  margin: 8px 0 20px;
  font-size: 1.5rem;
}
.legal section { margin: 0 0 22px; }
.legal h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent);
}

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .landing .btn-cta { width: auto; }
}

.social-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip-add { border: 1px dashed #bbb; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; color: inherit; }
.chip-add:hover { border-color: currentColor; }
.field.social { position: relative; }
.field.social[hidden] { display: none; }
.chip-del { position: absolute; top: -2px; right: 0; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: #999; padding: 2px 6px; }

/* ===== Style skins ===== */
.skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.skin-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: inherit; font-size: 13px; cursor: pointer; }
.skin-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.skin-dot { width: 36px; height: 36px; border-radius: 50%; display: block; }
.skin-dot.classic { background: linear-gradient(145deg, #fffdf9 50%, #b33a2b 50%); border: 1px solid #e4ddd2; }
.skin-dot.gold { background: linear-gradient(145deg, #111 55%, #d4af6a 55%); }
.skin-dot.neon { background: linear-gradient(135deg, #ff2d95, #7b2ff7 50%, #00d4ff); }
.skin-dot.sakura { background: linear-gradient(160deg, #fff0f5, #f7a8c4); border: 1px solid #f3c6d6; }
#group-color[hidden] { display: none; }

/* 黑金 */
.card-sheet.skin-gold {
  --card: #121212; --accent: #d4af6a; --accent-ink: #121212;
  --ink-soft: #d9ccb0; --muted: #9b8f74; --accent-soft: #2a2418;
  background: radial-gradient(400px 220px at 50% 0, #2a2418, transparent 70%), #121212;
  color: #f5ecd7; border: 1px solid #3a3122;
  font-family: "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", serif, var(--font);
}
.card-sheet.skin-gold .card-name { letter-spacing: 0.12em; color: #e8c987; }
.card-sheet.skin-gold .btn-action { background: transparent; color: #e8c987; border: 1px solid #d4af6a; box-shadow: none; }
.card-sheet.skin-gold .btn-save { background: linear-gradient(90deg, #b8913f, #e8c987, #b8913f); color: #121212; border: 0; }

/* 霓虹 */
.card-sheet.skin-neon {
  --card: #0d0b1f; --accent: #ff2d95; --accent-ink: #fff;
  --ink-soft: #c7c3ff; --muted: #8e89c9; --accent-soft: #241a45;
  background: linear-gradient(160deg, #0d0b1f 0%, #1f1446 55%, #0b2a3f 100%);
  color: #fff; border: 1px solid #3b2d7a;
  box-shadow: 0 0 30px rgba(123, 47, 247, 0.35);
}
.card-sheet.skin-neon .avatar-wrap { background: linear-gradient(135deg, #ff2d95, #7b2ff7, #00d4ff); box-shadow: 0 0 18px rgba(255, 45, 149, 0.6); }
.card-sheet.skin-neon .card-name { text-shadow: 0 0 10px rgba(0, 212, 255, 0.7); }
.card-sheet.skin-neon .btn-action { background: linear-gradient(90deg, #ff2d95, #7b2ff7); box-shadow: 0 0 12px rgba(255, 45, 149, 0.45); }
.card-sheet.skin-neon .btn-action:nth-child(even) { background: linear-gradient(90deg, #7b2ff7, #00b8e6); box-shadow: 0 0 12px rgba(0, 212, 255, 0.4); }

/* 樱花 */
.card-sheet.skin-sakura {
  --card: #fff5f8; --accent: #e0668f; --accent-ink: #fff;
  --ink-soft: #8a4a60; --muted: #b07a8c; --accent-soft: #ffe1ea;
  background: radial-gradient(160px 160px at 100% 0, #ffd3e1, transparent 70%), radial-gradient(200px 160px at 0 100%, #ffe4ec, transparent 70%), #fff5f8;
  color: #5a2a3a; border: 1px solid #f7cfdc;
}
.card-sheet.skin-sakura .avatar-wrap { background: linear-gradient(145deg, #ffb6cc, #f48fb1); }
.card-sheet.skin-sakura .btn-action { background: #fff; color: #d0577f; border: 1.5px solid #f4a6bf; box-shadow: 0 3px 10px rgba(224, 102, 143, 0.15); }

body.card-page[data-skin="gold"] { background: #050505; }
body.card-page[data-skin="neon"] { background: #07061a; }
body.card-page[data-skin="sakura"] { background: #fde8ef; }
.card-sheet.skin-gold .avatar-fallback { background: #1c1810 !important; color: #e8c987 !important; border-color: #121212; }
.card-sheet.skin-neon .avatar-fallback { background: #1a1238 !important; color: #fff !important; border-color: #0d0b1f; }
.card-sheet.skin-sakura .avatar-fallback { background: #ffe1ea !important; color: #d0577f !important; border-color: #fff5f8; }

/* =====================================================================
   v2 — landing page, step-by-step editor, mockups, print images, help
   ===================================================================== */
.landing { max-width: 1080px; }
.landing.help { max-width: 760px; }
.section-lead { text-align: center; color: var(--ink-soft); margin: -6px auto 18px; max-width: 40em; font-size: 14.5px; line-height: 1.6; }

/* Hero */
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; padding: 6px 0 18px; }
.hero-kicker { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.hero2 .lead { margin-bottom: 18px; }
.hero-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-pair .btn-cta { flex: 1 1 200px; max-width: 320px; width: auto; }
.landing .cta-pair .btn-cta { width: auto; }
.btn-cta.btn-ghost { background: #fff; }
.free-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; line-height: 1.4; vertical-align: middle; }
.btn-action:not(.btn-ghost) .free-badge { background: #fff; color: var(--accent); }
.free-badge.big { font-size: 14px; padding: 3px 10px; }
.hero-visual { display: flex; justify-content: center; align-items: flex-end; gap: 6%; }
.hv-phone { width: 52%; max-width: 250px; }
.hv-case { width: 38%; max-width: 180px; }
.hv-cap { display: block; text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; font-weight: 600; }
@media (min-width: 860px) {
  .hero2 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding-top: 18px; }
  .hero2 .hero-text { text-align: left; }
  .hero2 .lead { margin-left: 0; }
  .hero2 .cta-pair { justify-content: flex-start; }
  .hero2 h1 { font-size: 2.4rem; }
}

/* Mockup devices (shared) */
.mock-handset { position: relative; background: #1c1917; border-radius: 36px; padding: 10px 8px; box-shadow: 0 18px 40px rgba(28, 25, 23, 0.22); max-width: 260px; margin: 0 auto; }
.mock-handset.small { border-radius: 30px; padding: 8px 6px; }
.mock-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 30%; height: 14px; background: #1c1917; border-radius: 0 0 10px 10px; z-index: 2; }
.mock-handset.small .mock-notch { top: 10px; height: 10px; }
.mock-phone-screen, .mock-screen { position: relative; overflow: hidden; background: var(--paper); }
.mock-phone-screen { border-radius: 28px; aspect-ratio: 390 / 800; }
.mock-handset.small .mock-phone-screen { border-radius: 23px; }
.mock-card { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }
.mock-card .card-sheet { box-shadow: 0 6px 24px rgba(48, 28, 18, 0.06); }
.mock-phone-screen .mock-card { padding: 36px 10px 10px; min-height: 800px; display: flex; }
.mock-phone-screen .mock-card .card-sheet { min-height: 754px; max-width: none; }
.mock-card .card-footer { margin-top: auto; padding-top: 12px; }
.mock-screen .mock-card { padding: 32px 0 0; }
.mock-screen .mock-card .card-sheet { width: 430px; }
[data-skin="gold"] { --mock-bg: #050505; }
.mock-phone-screen[data-skin="gold"], .mock-screen[data-skin="gold"] { background: #050505; }
.mock-phone-screen[data-skin="neon"], .mock-screen[data-skin="neon"] { background: #07061a; }
.mock-phone-screen[data-skin="sakura"], .mock-screen[data-skin="sakura"] { background: #fde8ef; }

.mock-laptop { background: #1c1917; border-radius: 14px 14px 0 0; padding: 8px 10px 12px; box-shadow: 0 18px 40px rgba(28, 25, 23, 0.18); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 0 2px 8px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex: 0 0 auto; }
.mock-bar i:nth-child(2) { background: #f59e0b; }
.mock-bar i:nth-child(3) { background: #22c55e; }
.mock-url { flex: 1; min-width: 0; margin-left: 8px; background: #2e2b29; color: #c9c4bd; font-size: 11px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-latin); }
.mock-screen { aspect-ratio: 16 / 10; border-radius: 4px; }
.mock-laptop-base { height: 14px; width: 112%; margin-left: -6%; background: linear-gradient(#e7e5e4, #a8a29e); border-radius: 0 0 20px 20px; position: relative; }
.mock-laptop-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #8f8a85; border-radius: 0 0 6px 6px; }

/* Phone back in clear case, with the printed card inside */
.case-back { position: relative; width: 100%; aspect-ratio: 9 / 18.6; border-radius: 17% / 8.2%; background: linear-gradient(140deg, #eef2f6, #cdd5de 60%, #e4e9ef); border: 3px solid rgba(150, 162, 175, 0.55); box-shadow: 0 16px 34px rgba(28, 25, 23, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.55); overflow: hidden; }
.case-cam { position: absolute; top: 4%; left: 7%; width: 38%; aspect-ratio: 1; border-radius: 26%; background: #23211f; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 8%; gap: 6%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.case-cam i { width: 82%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5d6a7a, #0d0d0d 60%); border: 2px solid #3a3735; }
.case-cam i:nth-child(3) { grid-column: 1; }
.case-back img { position: absolute; left: 50%; bottom: 6%; width: 68%; transform: translateX(-50%); border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); background: #fff; aspect-ratio: 54 / 86; object-fit: cover; }
.case-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.25) 100%); pointer-events: none; }

/* Acrylic table stand with the poster */
.stand { position: relative; width: 100%; }
.stand img { width: 100%; aspect-ratio: 105 / 148; object-fit: cover; border: 6px solid rgba(255, 255, 255, 0.85); outline: 1px solid rgba(150, 162, 175, 0.5); border-radius: 4px; box-shadow: 0 14px 28px rgba(28, 25, 23, 0.2); background: #fff; }
.stand-base { height: 14px; width: 116%; margin: -2px 0 0 -8%; background: linear-gradient(#f5f5f4, #c9c6c2); border-radius: 3px 3px 8px 8px; box-shadow: 0 8px 14px rgba(28, 25, 23, 0.18); }

/* Use cases */
.use-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.use { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.use-art { background: var(--bg, #f3eee6); padding: 10px 14px 4px; }
.use-art svg { display: block; width: 100%; height: auto; max-height: 160px; }
.use h3 { margin: 12px 16px 6px; font-size: 16px; }
.use p { margin: 0 16px 16px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
@media (min-width: 600px) { .use-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .use-grid { grid-template-columns: repeat(4, 1fr); } }

.get-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.get { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.get-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: color-mix(in srgb, var(--accent) 10%, #fff); }
.get h3 { margin: 0 0 4px; font-size: 15px; }
.get p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
@media (min-width: 600px) { .get-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .get-grid { grid-template-columns: 1fr 1fr 1fr; } }

.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; margin: 0 auto; }
.show-grid figure { margin: 0; text-align: center; }
.show-stage { height: 300px; display: flex; align-items: flex-end; justify-content: center; padding: 16px 10px 22px; border-radius: 18px; background: linear-gradient(#f8f4ee 72%, #d9b48c 72%, #c99c70); box-shadow: var(--shadow); }
.show-stage .case-back { width: 118px; }
.show-stage .stand { width: 150px; }
.show-grid figcaption { margin-top: 10px; font-weight: 700; font-size: 14px; }
@media (max-width: 420px) { .show-stage { height: 250px; } .show-stage .case-back { width: 100px; } .show-stage .stand { width: 120px; } }

.help-teaser, .final-cta { text-align: center; background: color-mix(in srgb, var(--accent) 7%, var(--card)); border-radius: 20px; padding: 24px 18px; box-shadow: var(--shadow); }
.help-teaser p { color: var(--ink-soft); margin: 0 auto 16px; max-width: 34em; line-height: 1.6; font-size: 14.5px; }
.help-teaser .btn-cta { width: auto; }
.final-cta { background: var(--card); }

/* ---------- Wizard ---------- */
.wiz-progress { max-width: 1200px; margin: 0 auto; padding: 4px 20px 6px; }
.wiz-progress ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.wiz-progress li { flex: 1 1 0; min-width: 0; }
.wiz-progress button { width: 100%; border: 0; background: none; padding: 2px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.wiz-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #fff; border: 2px solid var(--line); color: var(--muted); transition: all .2s; }
.wiz-label { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.wiz-progress li.done .wiz-dot { background: color-mix(in srgb, var(--accent) 16%, #fff); border-color: var(--accent); color: var(--accent); }
.wiz-progress li.current .wiz-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.wiz-progress li.current .wiz-label { color: var(--ink); }
.wiz-bar { height: 4px; border-radius: 4px; background: var(--line); margin: 8px 0 0; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.wiz-count { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; font-weight: 600; }
@media (max-width: 520px) {
  .wiz-progress li:not(.current) .wiz-label { display: none; }
  .wiz-progress { padding: 2px 14px 4px; }
}
.step-title { margin: 0 0 6px; font-size: 21px; color: var(--ink); letter-spacing: 0; }
.step-desc { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.sub-title { margin: 22px 0 10px; font-size: 15px; color: var(--ink); }
.req { color: #c0392b; }
.field-error { margin: 6px 0 0; color: #c0392b; font-size: 13px; font-weight: 600; }
.field-warn { margin: 6px 0 0; color: #a16207; font-size: 12.5px; }
.field input.invalid { border-color: #c0392b !important; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.note-box { background: color-mix(in srgb, var(--accent) 6%, #faf7f2); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.hint.center { text-align: center; }
.avatar-field.big { gap: 18px; margin: 4px 0 14px; }
.avatar-field.big .avatar-wrap { width: 104px; height: 104px; }
.avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wizard-nav { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 10px; margin: 22px -18px -24px; padding: 12px 18px 14px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.wizard-nav .btn-action { flex: 0 1 160px; min-height: 48px; font-size: 15px; }
.wizard-nav #btn-next { flex: 1 1 200px; max-width: 280px; }
.wizard-extra { display: flex; justify-content: center; gap: 18px; margin-top: 30px; }
body.wiz-final .wizard-extra { display: none; }
@media (max-width: 430px) { .wizard-nav { margin: 22px -14px -20px; padding: 10px 14px 12px; } }

.preview-pane { position: relative; }
.preview-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.preview-head h2 { margin: 0; }
.preview-toggle { display: none; }
.preview-pane.is-sample .phone-frame { opacity: .55; filter: grayscale(.3); }
.preview-pane.is-sample::after { content: attr(data-sample); position: absolute; top: 46px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; z-index: 3; }
@media (max-width: 959px) {
  .wizard .preview-head { justify-content: space-between; }
  .preview-toggle { display: inline-block; }
  .wizard .preview-body .phone-scale { zoom: .72; }
  .wizard .preview-body .phone-scale .phone-frame { max-height: 470px; }
  .preview-pane.collapsed .preview-body { display: none; }
  .preview-pane.collapsed.is-sample::after { display: none; }
}
body.wiz-final .preview-pane { display: none; }
body.wiz-final .editor-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form"; max-width: 1040px; }

/* Final step */
.mockups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: end; margin: 6px 0 8px; }
.mock { margin: 0; min-width: 0; }
.mock figcaption { text-align: center; font-weight: 700; font-size: 14px; margin-top: 12px; color: var(--ink-soft); }
.mock-phone .mock-handset { max-width: 230px; }
@media (min-width: 720px) { .mockups { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 34px; } }
.link-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin: 0 0 5px; }
.share-url { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--ink-soft); font-family: var(--font-latin); margin-bottom: 10px; }
.print-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 560px) { .print-grid { grid-template-columns: 1fr 1fr; } }
.print-item { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.print-item h4 { margin: 4px 0 0; font-size: 15px; }
.print-item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.print-preview { height: 290px; display: flex; align-items: flex-end; justify-content: center; border-radius: 12px; padding: 14px 10px 20px; background: linear-gradient(#f6f2ec 74%, #d9b48c 74%, #c99c70); }
.case-preview .case-back { width: 112px; }
.stand-preview .stand { width: 160px; }
.tips { margin: 18px 0 12px; background: #fffaf0; border: 1px dashed #e6c98f; border-radius: 14px; padding: 12px 16px; }
.tips h4 { margin: 0 0 6px; font-size: 14px; }
.tips ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

/* Help page */
.help-hero { text-align: center; padding: 8px 0 18px; }
.help-hero h1 { font-size: clamp(1.4rem, 6vw, 2rem); margin: 0 0 10px; }
.mini-steps { list-style: none; padding: 0; margin: 4px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.mini-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.mini-steps .step-num { width: 28px; height: 28px; font-size: 13px; }
.help-form, .help-result { max-width: 640px; margin: 0 auto 22px; }
.help-form textarea, .help-result textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font-size: 14px; line-height: 1.55; resize: vertical; }
.help-result textarea { background: var(--paper); font-size: 13px; margin: 10px 0; }
.help-result h2 { margin: 0 0 10px; font-size: 18px; }
.plain-select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 42px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; margin: 6px 0 12px; color: var(--ink-soft); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.btn-cta.wide { width: 100%; max-width: none; justify-content: center; }
.help-form .hint { margin-top: 10px; }

/* v3: realistic scene photos in use cards */
.use-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e2d8; }
.use-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.use:hover .use-photo img { transform: scale(1.03); }

/* QR placeholder while the short link is being made */
.qr-frame.qr-pending { background: rgba(255, 255, 255, 0.92); color: #57534e; font-size: 13px; text-align: center; padding: 12px; animation: qrPulse 1.2s ease-in-out infinite; }
@keyframes qrPulse { 50% { opacity: .55; } }

/* Step 6: small "open card page" link under the mockups */
.open-card-line { text-align: center; margin: 4px 0 18px; }
.small-link { font-size: 14px; color: var(--ink-soft, #57534e); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- phone: country/region picker + local number ---------- */
.phone-input { display: flex; gap: 8px; align-items: stretch; }
.phone-input .phone-local { flex: 1 1 auto; }
.cc-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 10px 0 11px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; color: var(--ink); font: inherit; font-size: 15px;
  cursor: pointer; white-space: nowrap;
}
.cc-btn:focus-visible, .phone-input.is-open .cc-btn { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.cc-flag { font-size: 19px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.cc-code { font-variant-numeric: tabular-nums; font-weight: 600; }
.cc-caret { font-size: 11px; color: var(--ink-soft); }
.field input.phone-local.is-bad { border-color: #c0392b; }
.cc-panel {
  margin-top: 6px; border: 1px solid var(--line); background: #fff; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(28, 25, 23, .14); overflow: hidden;
}
.field .cc-panel input.cc-search {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 11px 12px; min-height: 44px; font: inherit; font-size: 15px; outline: none; background: #fbf8f4;
}
.cc-list { list-style: none; margin: 0; padding: 4px 0; max-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cc-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 14.5px; }
.cc-item:hover, .cc-item.is-on { background: var(--accent-soft); }
.cc-item.cc-pin-last { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-num { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cc-none { padding: 12px; color: var(--ink-soft); font-size: 14px; }

/* ---- "my QR code" (WeChat / KakaoTalk add-friend) ---- */
html.qr-sheet-open, html.qr-sheet-open body { overflow: hidden; }
/* Hide the card's own QR while the sheet is open so a phone camera / WeChat
   scanner is not confused by a second, dimmed code showing through the backdrop. */
html.qr-sheet-open .qr-block { visibility: hidden; }
.qr-sheet { position: fixed; inset: 0; z-index: 1000; background: #0f0c0a; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.qr-sheet-box { position: relative; background: #fff; color: #1c1917; border-radius: 20px; width: 100%; max-width: 440px; padding: 22px 18px 18px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); margin: auto; }
.qr-sheet-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 28px 12px; font-size: 18px; color: #1c1917; }
.qr-sheet-title svg { width: 24px; height: 24px; color: #07c160; }
.qr-sheet-x { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: #666; cursor: pointer; padding: 4px 10px; }
.qr-sheet-img { display: block; width: min(100%, 72vh, 420px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 auto; background: #fff; padding: 0; max-width: none; -webkit-touch-callout: default; user-select: auto; }
.qr-sheet-img.is-snapped { image-rendering: pixelated; image-rendering: crisp-edges; max-width: none; max-height: none; aspect-ratio: 1 / 1; object-fit: contain; }
.qr-sheet-hint { font-size: 14px; line-height: 1.6; color: #44403c; margin: 12px 4px 14px; white-space: pre-line; }
.qr-sheet-open-hint { font-size: 13px; line-height: 1.55; color: #57534e; margin: 10px 4px 0; }
.qr-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.qr-sheet-actions .btn-action { flex: 1 1 140px; justify-content: center; }
.qr-sheet-actions .btn-ghost { color: #1c1917; border-color: #d6d3d1; background: #fff; }
.qr-up { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 70%, #fff); }
.qr-up-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qr-up-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); background: #fff; }
.qr-up-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qr-up-ok { font-size: 13px; color: #166534; word-break: break-all; }
.qr-up-del { border: 0; background: transparent; color: #b91c1c; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.qr-up-msg { font-size: 13px; margin: 6px 0 0; line-height: 1.5; }
.qr-up-msg.err { color: #b91c1c; }
.qr-up-msg.warn { color: #a16207; }
.qr-sheet--kakao .qr-sheet-title svg { color: #3a1d1d; }
.qr-sheet-x:focus { outline: none; box-shadow: none; } .qr-sheet-x:focus-visible { outline: 2px solid #a8a29e; border-radius: 8px; }
.qr-sheet-box:focus { outline: none; }
