/* Weblinked app: start page, forms, dashboard. Profile pages use profile.css. */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Outfit"; src: url("fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --c-bg: #0f0f0f; --c-surface: #1a1a1a; --c-field: #131313; --c-raised: #242424;
  --c-ink: #ffffff; --c-text: #dcdcdc; --c-muted: #9a9a9a;
  --c-line: rgba(255,255,255,.11); --c-line-strong: rgba(255,255,255,.22);
  --c-accent: #dafa9c; --c-accent-ink: #0f0f0f;
  --c-danger: #ff8f85; --c-warn: #f6c667; --c-ok: #9be7b0;
  --r-card: 16px; --r-ctl: 10px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: 24px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--c-bg); color: var(--c-text);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--c-ink); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.ic { display: block; flex: none; }
h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--c-accent); color: var(--c-accent-ink); padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 600; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.main { padding-top: 32px; padding-bottom: 64px; }

/* type */
h1, .h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; color: var(--c-ink); text-wrap: balance; }
h2, .h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; color: var(--c-ink); text-wrap: balance; }
h3, .h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--c-ink); }
.is-dash .h2, .auth .h2, .prose .h2, .center-card .h2 { font-size: 28px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--c-muted); max-width: 56ch; text-wrap: pretty; }
.text { color: var(--c-text); }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--c-muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15,15,15,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--c-ink); text-decoration: none; }
.logo svg { display: block; transition: transform .2s ease; }
.logo:hover svg { transform: rotate(-8deg); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-actions form { display: flex; }
.tabs { display: flex; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-ctl); color: var(--c-muted); text-decoration: none; font-weight: 500; transition: color .15s ease, background .15s ease; }
.tabs a:hover { color: var(--c-ink); background: var(--c-surface); }
.tabs a[aria-current] { color: var(--c-ink); background: var(--c-raised); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--r-ctl);
  border: 1px solid transparent; background: none; color: var(--c-ink); font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); font-weight: 600; }
.btn--primary:hover { background: #e6ffb4; box-shadow: 0 8px 24px -12px rgba(218,250,156,.55); }
.btn--ghost { border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-ink); background: rgba(255,255,255,.04); }
.btn--danger { border-color: rgba(255,143,133,.5); color: var(--c-danger); }
.btn--danger:hover { border-color: var(--c-danger); background: rgba(255,143,133,.08); }
.btn--sm { height: 38px; padding: 0 12px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn--icon { width: 38px; padding: 0; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--c-muted); cursor: pointer; transition: color .15s ease, background .15s ease; }
.icon-btn:hover { color: var(--c-ink); background: var(--c-raised); }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.form > .field, .form > .btn--block, .form > fieldset { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 500; color: var(--c-ink); }
.field > legend { margin-bottom: 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; background: var(--c-field); color: var(--c-ink); border: 1px solid var(--c-line-strong); border-radius: var(--r-ctl);
  font: 400 16px/1.4 var(--font); transition: border-color .15s ease, box-shadow .15s ease; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder, textarea::placeholder { color: #6f6f6f; }
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,.36); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-accent) !important; box-shadow: 0 0 0 3px rgba(218,250,156,.18); }
[aria-invalid=true] { border-color: var(--c-danger) !important; }
.field-hint { font-size: 13px; color: var(--c-muted); }
.field-hint.is-ok { color: var(--c-ok); }
.field-hint.is-err, .field-err { font-size: 14px; color: var(--c-danger); }
.prefixed { display: flex; align-items: stretch; background: var(--c-field); border: 1px solid var(--c-line-strong); border-radius: var(--r-ctl); transition: border-color .15s ease, box-shadow .15s ease; }
.prefixed:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(218,250,156,.18); }
.prefixed > span { display: flex; align-items: center; padding-left: 14px; color: var(--c-muted); white-space: nowrap; font-family: var(--mono); font-size: 14px; }
.prefixed > input { border: 0 !important; background: none !important; box-shadow: none !important; padding-left: 2px !important; min-width: 0; font-family: var(--mono) !important; font-size: 15px !important; }
.prefixed--lg { border-radius: 14px; }
.prefixed--lg > input { min-height: 54px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--c-text); cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-accent); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; border: 1px solid; font-size: 15px; }
.notice--ok { border-color: rgba(155,231,176,.4); background: rgba(155,231,176,.07); color: #d5f5dd; }
.notice--err { border-color: rgba(255,143,133,.45); background: rgba(255,143,133,.07); color: #ffd3ce; }
.notice--warn { border-color: rgba(246,198,103,.42); background: rgba(246,198,103,.07); color: #f8e3b5; }
.notice strong { color: var(--c-ink); font-weight: 600; }

.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card--danger { border-color: rgba(255,143,133,.3); }
.empty { color: var(--c-muted); font-size: 15px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--c-line-strong); font-size: 12px; font-weight: 500; line-height: 1; color: var(--c-text); white-space: nowrap; }
.pill--ok { border-color: rgba(155,231,176,.5); color: var(--c-ok); }
.pill--err { border-color: rgba(255,143,133,.5); color: var(--c-danger); }

/* small pages */
.auth, .center-card { max-width: 440px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 16px; }
.center-card { text-align: center; align-items: center; margin-top: 12vh; }
.big-code { font: 500 96px/1 var(--mono); color: var(--c-accent); letter-spacing: -0.04em; }
.auth-alt { color: var(--c-muted); font-size: 15px; text-align: center; }
.prose { max-width: 680px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 20px; letter-spacing: -0.01em; margin-top: 18px; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* footer */
.foot { border-top: 1px solid var(--c-line); padding: 24px 0; font-size: 14px; color: var(--c-muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--c-muted); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s ease, color .15s ease; }
.foot a:hover { color: var(--c-ink); background-size: 100% 1px; }
.foot-note { margin-top: 12px; font-size: 13px; }

/* start page */
.hero { min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); display: flex; align-items: center; padding: 40px 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.claim { display: flex; gap: 12px; width: 100%; max-width: 560px; }
.claim .prefixed { flex: 1; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--c-text); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .ic { color: var(--c-accent); }
.hero-visual { display: flex; justify-content: flex-end; }

.phone { width: 340px; max-width: 100%; aspect-ratio: 340 / 680; border-radius: 44px; padding: 10px; background: #050505; border: 1px solid var(--c-line-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6) inset; }
.phone iframe, .phone-screen { display: block; width: 100%; height: 100%; border: 0; border-radius: 34px; background: var(--c-bg); }
.phone-screen { overflow: hidden; }
.phone-screen .p-wrap { padding: 40px 14px 24px; }
.phone-screen .p-avatar { width: 76px; height: 76px; }
.phone-screen .p-avatar--letter { font-size: 32px; }
.phone-screen .p-name { font-size: 20px; margin-top: 12px; }
.phone-screen .p-bio { font-size: 14px; }
.phone-screen .p-list { gap: 10px; margin-top: 20px; }
.phone-screen .p-btn { min-height: 50px; font-size: 14.5px; padding: 8px 14px; }
.phone-screen .p-icons a { width: 38px; height: 38px; }
.phone-screen a, .phone-screen button { pointer-events: none; }
.phone--hero { width: 360px; aspect-ratio: 360 / 700; }

.features { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 72px 0; border-top: 1px solid var(--c-line); }
.features .wrap { display: flex; flex-direction: column; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.fcard { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, border-color .2s ease; }
.fcard:hover { transform: translateY(-2px); border-color: var(--c-line-strong); }
.fcard p { color: var(--c-muted); font-size: 16px; }
.fcard h3 { font-size: 20px; margin-top: 10px; }
.fcard-visual { height: 190px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-line); padding: 18px; overflow: hidden; }
.marks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-content: center; justify-items: center; }
.marks span { display: grid; place-items: center; width: 100%; max-width: 48px; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--c-line); transition: transform .2s ease; }
.fcard:hover .marks span:nth-child(odd) { transform: translateY(-3px); }
.fcard:hover .marks span:nth-child(even) { transform: translateY(3px); }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: center; }
.themes span, .swatch-box { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; border-radius: 10px; border: 1px solid; height: 70px; transition: transform .2s ease; }
.themes i, .swatch-box i { display: block; height: 9px; border-radius: 5px; }
.fcard:hover .themes span:nth-child(3n+1) { transform: scale(1.05); }
.mini-stats { display: flex; flex-direction: column; gap: 12px; }
.mini-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.mini-bars i { flex: 1; background: #3a3a3a; border-radius: 3px 3px 0 0; transform-origin: bottom; transition: background .2s ease, transform .3s ease; }
.mini-bars i:nth-last-child(-n+3) { background: var(--c-accent); }
.fcard:hover .mini-bars i { transform: scaleY(1.06); }
.mini-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-legend span { font-size: 12px; color: var(--c-muted); border: 1px solid var(--c-line-strong); border-radius: 999px; padding: 2px 9px; }

.close { border-top: 1px solid var(--c-line); padding: 96px 0; }
.close-in { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--c-line-strong); color: var(--c-muted); }
.steps li::before { content: "0" counter(step); font: 500 14px/1 var(--mono); color: var(--c-accent); margin-bottom: 8px; }
.steps strong { font-size: 20px; font-weight: 500; color: var(--c-ink); letter-spacing: -0.01em; }

/* dashboard */
.is-dash .main { padding-top: 24px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-main > .notice { margin-bottom: 0; }
.dash-main--narrow { max-width: 640px; margin: 0 auto; }
.dash-main form#theme-form { display: flex; flex-direction: column; gap: 16px; }
.preview { position: sticky; top: 88px; }
.preview .phone { width: 340px; }

.share { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.share-url { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.share-url a { font: 500 17px/1.3 var(--mono); color: var(--c-ink); text-decoration: none; overflow-wrap: anywhere; }
.share-url a:hover { text-decoration: underline; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.profile-edit { display: flex; flex-direction: column; gap: 16px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent) center / cover; color: var(--c-accent-ink); font-size: 30px; font-weight: 600; border: 1px solid var(--c-line-strong); }
.avatar[style] { color: transparent; }
.avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.add { display: flex; gap: 8px; }
.add input { flex: 1; min-width: 0; }
.add-more { display: flex; flex-wrap: wrap; gap: 8px; }
.blocks { display: flex; flex-direction: column; gap: 8px; }
.block { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.block:hover { border-color: var(--c-line-strong); }
.block.is-open { border-color: var(--c-line-strong); }
.block.is-hidden .block-main, .block.is-hidden .block-ic { opacity: .45; }
.block.is-dragging { border-color: var(--c-accent); box-shadow: 0 12px 32px -12px rgba(0,0,0,.8); position: relative; z-index: 2; }
.block-row { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 6px 12px 6px 4px; }
.block-grip { display: grid; place-items: center; width: 32px; height: 44px; flex: none; border: 0; background: none; color: #6a6a6a; cursor: grab; touch-action: none; border-radius: 8px; }
.block-grip:hover { color: var(--c-ink); }
.block.is-dragging .block-grip { cursor: grabbing; }
.block-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--c-raised); color: var(--c-ink); }
.block-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 6px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.block-title { font-weight: 500; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-sub { font: 400 13px/1.4 var(--mono); color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-main:hover .block-title { text-decoration: underline; text-underline-offset: 3px; }
.block-move { display: none; }
.block-form { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-top: 1px solid var(--c-line); }
.block-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.block-actions [data-delete] { margin-left: auto; }
@media (pointer: coarse) { .block-move { display: flex; } }
.blocks:focus-within .block-move { display: flex; }

.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; padding: 8px 0 8px 4px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span[aria-hidden] { width: 42px; height: 24px; border-radius: 999px; background: #3a3a3a; transition: background .15s ease; position: relative; }
.switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch input:checked + span { background: var(--c-accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--c-accent-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swatch { display: flex; flex-direction: column; gap: 6px; cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch-box { border-color: var(--c-line-strong); height: 76px; }
.swatch:hover .swatch-box { transform: translateY(-2px); }
.swatch input:checked + .swatch-box { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.swatch input:focus-visible + .swatch-box { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.swatch-name { font-size: 14px; color: var(--c-text); }
.accent-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
input[type=color] { width: 56px; height: 46px; padding: 4px; background: var(--c-field); border: 1px solid var(--c-line-strong); border-radius: var(--r-ctl); cursor: pointer; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; align-self: flex-start; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--c-muted); transition: background .15s ease, color .15s ease; }
.seg label:hover span, .seg a:hover span { color: var(--c-ink); }
.seg input:checked + span, .seg a[aria-current] span { background: var(--c-raised); color: var(--c-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.seg a { text-decoration: none; }

.stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tile { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.tile strong { font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--c-muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; }
.lg--views, .bar-views { background: #4a4a4a; fill: #4a4a4a; }
.lg--clicks, .bar-clicks { background: var(--c-accent); fill: var(--c-accent); }
.chart { display: block; width: 100%; height: auto; }
.chart .axis { stroke: var(--c-line-strong); stroke-width: 1; }
.chart .tick { fill: var(--c-muted); font: 400 12px var(--mono); }
.chart g:hover .bar-views { fill: #6a6a6a; }
.stats-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.rank { display: flex; flex-direction: column; gap: 4px; }
.rank li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; overflow: hidden; font-size: 15px; }
.rank li i { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.06); border-radius: 8px; }
.rank-name { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-ink); }
.rank-n { position: relative; z-index: 1; font: 500 14px/1.6 var(--mono); color: var(--c-text); }
.h3--gap { margin-top: 12px; }

.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-list li { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 16px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; }
.admin-main { min-width: 0; flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-main p { flex-basis: 100%; overflow-wrap: anywhere; }
.admin-actions { display: flex; gap: 8px; align-items: flex-start; }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.table th { font-weight: 500; color: var(--c-muted); font-size: 13px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table form { display: inline-flex; }

.dialog { width: min(92vw, 380px); padding: 24px; border-radius: 20px; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line-strong); }
.dialog::backdrop { background: rgba(0,0,0,.7); }
.dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.qr { background: #fff; border-radius: 14px; padding: 16px; display: grid; place-items: center; }
.qr canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; min-height: 48px; border-radius: 999px;
  background: #f2f2f2; color: #0f0f0f; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.is-err { background: #ffd3ce; }
.toast button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #0f0f0f; background: none; color: #0f0f0f; font: 600 14px var(--font); cursor: pointer; }
.toast:not(:has(button)) { padding-right: 18px; }

/* responsive: wide rules first, narrow last */
@media (max-width: 1040px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .preview { display: none; }
  .dash-main { max-width: 720px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .fcard:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 48px 0 56px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { justify-content: center; }
  .features { min-height: 0; }
  .stats-cols { grid-template-columns: 1fr; }
  .hide-s { display: none; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .is-dash .top-in { gap: 12px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(15,15,15,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--c-line); }
  .tabs a { flex: 1; flex-direction: column; gap: 3px; height: 52px; padding: 0 4px; font-size: 12px; justify-content: center; }
  .tabs a[aria-current] { background: none; color: var(--c-accent); }
  .is-dash .main { padding-bottom: 104px; }
  .is-dash .toast { bottom: 84px; }
  .card { padding: 18px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .cards .fcard:last-child { grid-column: auto; }
  .close { padding: 64px 0; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .claim { flex-direction: column; }
  .claim .btn, .close-in .btn { width: 100%; }
  .add { flex-direction: column; }
  .add .btn { width: 100%; }
  .hide-xs { display: none; }
  .share { flex-direction: column; align-items: stretch; }
  .share-actions .btn { flex: 1; }
  .marks { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .tile strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
