@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #eceef1;
  --card: #ffffff;
  --text: #181d27;
  --text-2: #414651;
  --text-3: #535862;
  --text-4: #717680;
  --line: #e9eaeb;
  --line-2: #d5d7da;
  --soft: #f5f5f6;
  --brand: #444ce7;
  --brand-hover: #3538cd;
  --brand-soft: #eef4ff;
  --ring: rgba(68, 76, 231, 0.16);
  --error: #d92d20;
  --error-line: #fda29b;
  --error-ring: rgba(240, 68, 56, 0.14);
  --success: #079455;
  --shadow-xs: 0 1px 2px rgba(10, 13, 18, 0.05);
  --shadow-sm: 0 1px 3px rgba(10, 13, 18, 0.1), 0 1px 2px -1px rgba(10, 13, 18, 0.1);
  --shadow-xl: 0 20px 24px -4px rgba(10, 13, 18, 0.08), 0 8px 8px -4px rgba(10, 13, 18, 0.03), 0 3px 3px -1.5px rgba(10, 13, 18, 0.04);
  --radius: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.sat-probe { position: absolute; top: 0; left: 0; width: 1px; height: 0; padding-top: env(safe-area-inset-top); visibility: hidden; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px calc(24px + env(safe-area-inset-bottom));
}
.brand { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 52px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand .brand-mark { width: 28px; height: 28px; }
.brand-text { font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-4); }
.brand-text b { font-weight: 650; color: var(--text); }
.noscript { text-align: center; color: var(--error); font-size: 14px; }
.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(10, 13, 18, 0.03);
}
.card-body { padding: 0 24px 24px; }
.featured {
  position: relative;
  width: 64px;
  height: 64px;
  margin: -27px auto 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#e4e8f5 1px, transparent 1px),
    linear-gradient(90deg, #e4e8f5 1px, transparent 1px);
  background-size: 11px 11px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
}
.featured svg { position: relative; width: 34px; height: 34px; color: var(--brand); }
.card h1 {
  margin: 16px 0 4px;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card .sub {
  margin: 0 auto 20px;
  max-width: 320px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  line-height: 20px;
}
.tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  margin: 0 0 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-4);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { background: #fff; color: var(--text-2); box-shadow: var(--shadow-sm); }
.tab:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.field { margin: 0 0 14px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2); }
.label .opt { font-weight: 400; color: var(--text-4); }
.input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { height: auto; min-height: 96px; resize: vertical; }
.input::placeholder { color: var(--text-4); opacity: 1; }
.input:focus { border-color: #8098f9; box-shadow: var(--shadow-xs), 0 0 0 4px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--error-line); }
.input[aria-invalid="true"]:focus { box-shadow: var(--shadow-xs), 0 0 0 4px var(--error-ring); }
.hint, .err { margin: 6px 0 0; font-size: 14px; line-height: 20px; }
.hint { color: var(--text-4); }
.err { color: var(--error); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.counter { font-size: 12px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .eye {
  position: absolute; top: 2px; right: 2px; width: 40px; height: 40px;
  border: 0; background: transparent; border-radius: 6px; color: var(--text-4);
  display: grid; place-items: center; cursor: pointer;
}
.input-wrap .eye:hover { color: var(--text-2); }
.input-wrap .eye:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.input-wrap .eye svg { width: 20px; height: 20px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-2); background: #fff; cursor: pointer; box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: #3538cd; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 0; width: 18px; height: 18px; border: 1px solid var(--line-2);
  border-radius: 5px; background: #fff; display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after {
  content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg);
}
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.qr-box {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 22px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  display: grid;
  place-items: center;
}
.qr-box svg.qr { width: 100%; height: 100%; display: block; }
.qr-box.is-stale svg.qr { opacity: 0.12; filter: blur(1px); transition: opacity 0.2s; }
.qr-box .qr-empty, .qr-box .qr-note {
  position: absolute; inset: 12px; display: grid; place-items: center; text-align: center;
  font-size: 13px; line-height: 18px; color: var(--text-4); padding: 0 10px;
}
.qr-empty .ph { display: block; width: 56px; height: 56px; margin: 0 auto 10px; color: #d5d7da; }
.qr-box .qr-note { color: var(--text-2); font-weight: 500; }
.qr-box.is-loading::after {
  content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.7s linear infinite;
}
.qr-box.is-loading > * { opacity: 0.15; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-box.pop svg.qr { animation: pop 0.28s ease-out; }
@keyframes pop { from { transform: scale(0.94); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
.divider { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; color: var(--text-3); font-size: 13px; line-height: 18px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input {
  flex: 1; min-width: 0; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; color: var(--text-2);
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; background: #fff;
}
.icon-btn {
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2);
  border-radius: 8px; background: #fff; color: var(--text-2); box-shadow: var(--shadow-xs); cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--shadow-xs), 0 0 0 4px var(--ring); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.ok { color: var(--success); }
.card-foot { display: flex; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 10px 16px;
  font-size: 16px; line-height: 24px; font-weight: 600; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-primary {
  flex: 1; color: #fff; background: var(--brand); border: 1px solid var(--brand);
  box-shadow: var(--shadow-xs), inset 0 0 0 1px rgba(10, 13, 18, 0.18), inset 0 -2px 0 rgba(10, 13, 18, 0.05);
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--shadow-xs), 0 0 0 4px var(--ring); }
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }
.btn-secondary {
  color: var(--text-2); background: #fff; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xs), inset 0 0 0 1px rgba(10, 13, 18, 0.18), inset 0 -2px 0 rgba(10, 13, 18, 0.05);
}
.btn-secondary:hover { background: var(--soft); }
.btn-secondary:focus-visible { outline: none; box-shadow: var(--shadow-xs), 0 0 0 4px var(--ring); }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.new-link { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--text-4); font-size: 14px; font-weight: 500; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.new-link:hover { color: var(--text-2); }
.foot { margin: 28px 0 0; font-size: 13px; line-height: 18px; color: var(--text-4); text-align: center; }
.foot a { color: var(--text-3); font-weight: 500; }
.foot .dot { margin: 0 6px; }
.toast {
  position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -16px);
  background: #0c111d; color: #fff; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 10px;
  box-shadow: var(--shadow-xl); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(12, 17, 29, 0.55); }
.sheet-card { width: 100%; max-width: 360px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-xl); padding: 20px; text-align: center; }
.sheet-card h2 { margin: 0 0 4px; font-size: 17px; line-height: 26px; font-weight: 600; }
.sheet-card p { margin: 0 0 14px; font-size: 14px; line-height: 20px; color: var(--text-3); }
.sheet-card img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 12px; -webkit-touch-callout: default; user-select: auto; }
.sheet-card .btn { width: 100%; }
.doc { max-width: 640px; }
.doc .card-body { padding: 28px 28px 32px; }
.doc h1 { text-align: left; margin-top: 0; font-size: 22px; line-height: 30px; }
.doc h2 { font-size: 16px; line-height: 24px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 15px; line-height: 24px; color: var(--text-3); }
.doc ul { padding-left: 20px; margin: 6px 0; }
.qr-box.is-sample { border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.qr-chip {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 11px; line-height: 20px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-4); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 9px;
}
.qr-status { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px auto 0; max-width: 320px;
  text-align: center; font-size: 14px; line-height: 20px; color: var(--text-3); min-height: 20px; }
.qr-status b { color: var(--text-2); font-weight: 600; }
.qr-status.ok { color: var(--success); font-weight: 600; }
.qr-status.warn { color: #b54708; font-weight: 500; }
.qr-status svg { width: 18px; height: 18px; flex: 0 0 auto; }
.qr-box.is-done { animation: done 1.6s ease-out; }
@keyframes done {
  0% { border-color: #17b26a; box-shadow: 0 0 0 0 rgba(23, 178, 106, 0.35); }
  35% { border-color: #17b26a; box-shadow: 0 0 0 8px rgba(23, 178, 106, 0.12); }
  100% { border-color: var(--line); box-shadow: var(--shadow-xs); }
}
@media (min-width: 640px) {
  .page { padding-top: 48px; justify-content: flex-start; }
  .brand { margin-bottom: 60px; }
  .qr-box { width: 216px; height: 216px; }
}
@media (max-width: 440px) {
  .card-body { padding: 0 20px 22px; }
  .card-foot { padding: 18px 20px 20px; }
  .tabs { gap: 0; padding: 3px; }
  .tab { flex: 1 1 auto; padding: 7px 6px; font-size: 13px; }
}
@media (max-width: 350px) {
  .card-body { padding: 0 16px 20px; }
  .card-foot { padding: 16px 16px 18px; gap: 8px; }
  .tab { padding: 7px 5px; font-size: 12.5px; }
  .foot .dot:nth-of-type(2), .foot .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
