/* linkpro — public site, sign-in pages and the member app shell.
   Neutrals are tinted toward the wordmark navy. One accent: the violet of "pro". 4px spacing grid. */
:root {
  color-scheme: light;
  --ink: #14162b;
  --ink-2: #4a4e66;
  --ink-3: #6e7289;
  --canvas: #f5f5f8;
  --surface: #fff;
  --raise: #fafafc;
  --line: rgba(20, 22, 43, .1);
  --line-2: rgba(20, 22, 43, .18);
  --accent: #5b21d6;
  --accent-deep: #4a1ab3;
  --accent-soft: #f1ecfd;
  --ok: #157f4b;
  --warn: #9a5505;
  --err: #b42318;
  --r-ctl: 10px;
  --r-card: 14px;
  --r-panel: 18px;
  --font: "Prompt", "Leelawadee UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(20, 22, 43, .06), 0 8px 24px rgba(20, 22, 43, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--surface); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 600; }
h2 { font-size: 20px; line-height: 1.4; font-weight: 600; }
h3 { font-size: 16px; line-height: 1.5; font-weight: 500; }
p { color: var(--ink-2); }
a { color: var(--accent); text-underline-offset: 4px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--r-ctl); }
.skip:focus { top: 8px; }
.sprite { position: absolute; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-size: 13px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word { font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.logo-word b { font-weight: 600; color: var(--accent); }

/* Controls */
input, select, textarea, button { font: inherit; color: inherit; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); min-width: 0; }
label small { font-weight: 400; color: var(--ink-3); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select, textarea {
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 400;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { width: 40px; height: 40px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
form { display: grid; gap: 12px; }
output { display: block; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
output:empty { display: none; }

button, .btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--accent); border-radius: var(--r-ctl); background: var(--accent); color: #fff; font-size: 14px; font-weight: 500;
  line-height: 1.4; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
button:hover, .btn:hover, .button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
button:active, .btn:active { transform: scale(.98); }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn-line, .quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover, .quiet:hover { background: var(--raise); border-color: var(--ink-3); color: var(--ink); }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 16px; border-radius: 12px; }
.btn-wide { width: 100%; }
.btn-square { width: 40px; padding: 0; }
.btn-danger { background: var(--surface); color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.btn-danger:hover { background: #fdf1ef; border-color: var(--err); color: var(--err); }
.icon-btn { width: 36px; min-height: 36px; padding: 0; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--ink-2); list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--canvas); border-color: transparent; color: var(--ink); }
.icon-btn.flip .ic { transform: rotate(180deg); }
.icon-btn[aria-pressed=true], .icon-btn[aria-expanded=true] { background: var(--accent-soft); color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .ic { width: 16px; height: 16px; }
.lang { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border-radius: var(--r-ctl); color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.lang:hover { background: var(--canvas); color: var(--ink); }
.lang .ic { width: 16px; height: 16px; }

/* Switch */
.switch { position: relative; display: inline-flex; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { width: 100%; height: 100%; border-radius: 12px; background: #c9cbd6; transition: background-color .15s var(--ease); }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20, 22, 43, .3); transition: transform .15s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Surfaces */
.panel { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel > h2 { font-size: 16px; font-weight: 600; }
.panel > h2 + p { margin-top: 4px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hint { font-size: 13px; color: var(--ink-3); }
.empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }

/* ---------- Public site ---------- */
.site-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.site-logo, .app-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.site-links { display: flex; align-items: center; gap: 24px; flex: 1; }
.site-links a { color: var(--ink-2); font-weight: 400; text-decoration: none; }
.site-links a:hover { color: var(--ink); }
.site-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-signin { color: var(--ink); font-weight: 500; text-decoration: none; padding: 0 4px; }
.site-signin:hover { color: var(--accent); }
.site-menu { display: none; }
.site-main > section:first-child { padding-top: 64px; }
.page-head { padding-block: 64px 32px; }
.page-head > h1, .page-head > p { max-width: 760px; }
.page-head h1 { font-size: 36px; line-height: 1.25; }
.page-head p { margin-top: 12px; font-size: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; padding-bottom: 80px; }
.hero h1 { font-size: 44px; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.hero-text > p { margin-top: 20px; font-size: 17px; line-height: 1.7; max-width: 52ch; }
.hero-tool { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow); max-width: 560px; }
.hero-tool h2 { margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.hero-tool .shorten { grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.hero-tool .shorten input[type=url] { grid-column: 1 / -1; min-height: 48px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.hero-visual { display: grid; justify-items: center; gap: 16px; padding: 40px 24px 32px; background: var(--canvas); border-radius: 28px; }

/* The demo phone is content: a bakery's page, in the bakery's own colours. */
.demo-phone { width: 272px; padding: 8px; border-radius: 40px; background: var(--ink); box-shadow: 0 24px 48px -16px rgba(20, 22, 43, .35); }
.demo-screen { display: grid; justify-items: center; gap: 8px; min-height: 496px; padding: 32px 16px 20px; border-radius: 32px; background: #fbf4e6; color: #3d2a17; align-content: start; }
.demo-avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #b9632b; color: #fff8ea; font-size: 28px; font-weight: 600; }
.demo-name { margin-top: 4px; font-size: 16px; font-weight: 600; color: #3d2a17; }
.demo-tag { margin-bottom: 8px; font-size: 12px; text-align: center; color: #7a5a3c; }
.demo-btn { display: grid; place-items: center; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 12px; background: #3d2a17; color: #fbf4e6; font-size: 13px; font-weight: 500; text-align: center; }
.demo-btn-line { background: transparent; color: #3d2a17; box-shadow: inset 0 0 0 1.5px #3d2a17; }
.demo-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; padding: 8px; border-radius: 12px; background: #fff; text-align: left; }
.demo-card b { display: block; font-size: 13px; font-weight: 500; }
.demo-card i { font-style: normal; font-size: 12px; color: #7a5a3c; }
.demo-photo { width: 48px; height: 48px; flex: none; border-radius: 8px; background: radial-gradient(circle at 40% 35%, #e9b877, #b9632b 70%); }
.demo-social { display: flex; gap: 16px; margin-top: 8px; color: #7a5a3c; }
.demo-address { display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink); }
.demo-address span { color: var(--ink-3); }
.demo-address .ic { width: 14px; height: 14px; margin-left: 8px; color: var(--ink-3); }

.band { padding-block: 72px; border-top: 1px solid var(--line); }
.band > h2, .band-head h2, .split h2, .closing h2 { font-size: 28px; line-height: 1.3; text-wrap: balance; }
.band > h2 { margin-bottom: 32px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 64px; }
.split-flip > :first-child { order: 2; }
.split p { margin-top: 12px; font-size: 16px; max-width: 46ch; }
.split .text-link { margin-top: 20px; }

.tool { display: grid; gap: 8px; padding: 20px; background: var(--canvas); border-radius: var(--r-panel); }
.shorten { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.shorten output { grid-column: 1 / -1; padding: 12px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 16px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.tool-row .mono { color: var(--ink-2); overflow-wrap: anywhere; }
.tool-row b { color: var(--ink); font-weight: 500; }

.demo-page { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--raise); }
.demo-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.demo-bar .mono { margin-left: 12px; color: var(--ink-3); }
.demo-sale { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px; align-items: center; }
.demo-shot { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 35% 30%, #edc48a, #b9632b 60%, #7d3f17); }
.demo-sale b { font-size: 18px; font-weight: 600; }
.demo-sale p { margin-top: 4px; font-size: 13px; }
.demo-sale strong { display: block; margin-top: 12px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-cta { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: var(--r-ctl); background: #3d2a17; color: #fbf4e6; font-size: 13px; font-weight: 500; }

.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.feature-list li { display: flex; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.feature-list li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.feature-list .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.feature-list p { margin-top: 4px; }

.template-row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; font-size: 13px; color: var(--ink-2); text-align: center; }
.template-row li { display: grid; gap: 12px; }
.mini { display: grid; justify-items: center; align-content: start; gap: 6px; aspect-ratio: 9 / 14; padding: 20px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--m-bg, #fff); }
.mini i { width: 28px; height: 28px; border-radius: var(--m-av, 50%); background: var(--m-ink); }
.mini b { width: 56%; height: 6px; margin-bottom: 6px; border-radius: 3px; background: var(--m-ink); opacity: .7; }
.mini u { width: 100%; height: 18px; border-radius: var(--m-r, 6px); background: var(--m-btn); }
.mini-creator { --m-bg: #101624; --m-ink: #e8ecf7; --m-btn: #2b3550; --m-r: 9px; }
.mini-shop { --m-bg: #fbf4e6; --m-ink: #3d2a17; --m-btn: #3d2a17; --m-r: 6px; }
.mini-menu { --m-bg: #f3f7f1; --m-ink: #1d3a2a; --m-btn: #cfe3d2; --m-r: 3px; --m-av: 8px; }
.mini-event { --m-bg: #eef0fb; --m-ink: #272b6b; --m-btn: #5b21d6; --m-r: 9px; }
.mini-folio { --m-bg: #fff; --m-ink: #14162b; --m-btn: #ececf1; --m-r: 0; --m-av: 4px; }

.plan-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); }
.plan-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plan-table th, .plan-table td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--line); }
.plan-table thead th { border-top: 0; font-size: 16px; font-weight: 600; background: var(--raise); }
.plan-table tbody th { font-weight: 400; color: var(--ink-2); width: 28%; }
.plan-price { font-size: 24px; font-weight: 600; }

.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform .2s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding-bottom: 20px; max-width: 68ch; }

.closing { margin-block: 24px 80px; padding: 56px 32px; border-radius: 28px; background: var(--ink); text-align: center; }
.closing h2 { color: #fff; }
.closing .hero-actions { justify-content: center; margin-top: 24px; }
.closing .text-link { color: #d9d2f5; }
.closing .btn { background: #fff; border-color: #fff; color: var(--ink); }
.closing .btn:hover { background: #ecebf3; border-color: #ecebf3; }

.site-foot { border-top: 1px solid var(--line); background: var(--raise); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 48px 32px; }
.foot-grid h2 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.foot-grid a { display: block; padding-block: 4px; color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand p { margin-top: 12px; max-width: 32ch; font-size: 13px; }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Marketing sub-pages and articles */
.page-body { padding-bottom: 80px; }
.page-body > * + * { margin-top: 24px; }
.post-list { list-style: none; padding: 0; display: grid; gap: 0; max-width: 800px; }
.post-list li { padding-block: 24px; border-top: 1px solid var(--line); }
.post-list li:first-child { border-top: 0; padding-top: 0; }
.post-list a { font-size: 20px; font-weight: 500; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--accent); }
.post-list p { margin-top: 8px; max-width: 68ch; }
.prose { max-width: 720px; font-size: 16px; line-height: 1.8; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 40px; font-size: 22px; }
.prose h3 { margin-top: 28px; font-size: 18px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li + li { margin-top: 8px; }
.post-cta { margin-top: 48px; padding: 24px; border-radius: var(--r-panel); background: var(--canvas); }
.post-cta p { margin: 4px 0 16px; }
.post-cta .post-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; }
.prose .faq { margin-top: 8px; }
.band > p.center { margin-top: 8px; }
.public-form { max-width: 640px; }
.public-form textarea, #site-content textarea { width: 100%; }
.public-detail { max-width: 720px; }
.public-detail summary { cursor: pointer; font-weight: 500; }
.template-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.template-list li { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.qr-preview { display: block; width: min(100%, 240px); margin-block: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; }
.features article { padding-block: 16px; border-top: 1px solid var(--line); }
.features h2 { font-size: 18px; }
.features h2 a { color: var(--ink); text-decoration: none; }
.features h2 a:hover { color: var(--accent); }
.features p { margin-top: 4px; }

/* Sign-in pages */
.site-auth { background: var(--canvas); }
.site-auth .site-links, .site-auth .site-end .btn, .site-auth .site-signin, .site-auth .site-menu { display: none; }
.site-auth .site-foot { display: none; }
.auth { width: min(100%, 420px); margin: 56px auto 80px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); }
.auth h1 { font-size: 24px; }
.auth-note { margin: 4px 0 24px; }
.auth form + form, .auth form + a { margin-top: 16px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin-block: 16px; font-size: 13px; color: var(--ink-3); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; font-size: 13px; }
.auth-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.auth-switch a { font-weight: 500; }

/* ---------- Member app ---------- */
.app { background: var(--canvas); }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 64px; padding-inline: 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-logo { width: 208px; flex: none; }
.app-bar { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.app-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.app-menu { display: none; }
.dev-tag { padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.menu { position: relative; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; gap: 2px; width: 240px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.menu-name { padding: 8px 12px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-list a, .menu-item { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-weight: 400; text-decoration: none; }
.menu-list a:hover, .menu-item:hover { background: var(--canvas); color: var(--ink); }
.menu-list .ic { color: var(--ink-3); }
.menu-list form { gap: 0; }

.app-body { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.app-side { position: sticky; top: 64px; align-self: start; display: grid; gap: 2px; height: calc(100vh - 64px); padding: 16px 16px 24px; align-content: start; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); }
.app-side a { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.app-side a:hover { background: var(--canvas); color: var(--ink); }
.app-side a[aria-current=page] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.app-side hr { width: 100%; height: 1px; margin: 12px 0; border: 0; background: var(--line); }
.app-sub { display: grid; gap: 2px; margin: 2px 0 6px 30px; }
.app-side .app-sub a { min-height: 32px; font-size: 13px; }
.app-side .app-sub a[aria-current=true] { background: var(--canvas); color: var(--ink); font-weight: 500; }
.app-main { min-width: 0; padding: 24px 32px 96px; }
.app-main > * { max-width: 1120px; }
.app-tabs { display: none; }

.page-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 20px; }
.page-title p { font-size: 13px; color: var(--ink-3); }
.intro { margin-bottom: 20px; }
.intro > a { display: inline-block; margin-bottom: 4px; font-size: 13px; color: var(--ink-3); text-decoration: none; }
.intro > a:hover { color: var(--accent); }
.intro p { margin-top: 4px; }
.app-main .panel + .panel, .app-main .panel + .stats, .app-main .stats + .panel, .app-main form + .panel { margin-top: 16px; }
.editor-col { max-width: 760px; }

.add-card h2 { margin-bottom: 12px; }
.add-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.add-row output { grid-column: 1 / -1; }
.add-more { margin-top: 12px; }
.add-more summary { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); cursor: pointer; list-style: none; }
.add-more summary::-webkit-details-marker { display: none; }
.add-more summary .ic { width: 16px; height: 16px; }
.add-more[open] summary .ic { transform: rotate(180deg); }
.add-more .fields { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--raise); color: var(--ink); font-size: 13px; font-weight: 400; text-decoration: none; cursor: pointer; }
.chip:hover { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.chip .ic { width: 16px; height: 16px; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat { display: grid; gap: 4px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.stat span { font-size: 13px; color: var(--ink-2); }
.stat strong { font-size: 28px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-block: 16px; }
.metrics .panel { display: grid; gap: 4px; padding: 16px 20px; }
.metrics span { font-size: 13px; color: var(--ink-2); }
.metrics strong { font-size: 28px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.inline-form { grid-template-columns: minmax(0, 240px) auto; align-items: end; margin-top: 12px; }
.inline-form output { grid-column: 1 / -1; }
.plan-edit { padding-block: 16px; border-top: 1px solid var(--line); }
.plan-edit:first-of-type { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.security-grid .panel + .panel { margin-top: 0; }
.security-grid h2 { margin-bottom: 8px; }
.security-grid ul, .security-grid ol { padding-inline-start: 20px; color: var(--ink-2); }
.security-grid li { margin-block: 8px; overflow-wrap: anywhere; }
.security-grid li button { margin-top: 8px; }
.security-grid form { margin-top: 12px; }
#pixel-bindings { display: grid; gap: 12px; }
#pixel-bindings fieldset { display: grid; gap: 8px; margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); min-width: 0; }
#pixel-bindings legend { padding-inline: 4px; font-weight: 500; }
.rule-list { padding-inline-start: 20px; overflow-wrap: anywhere; }
.rule-list li { margin-block: 8px; }
#outbox-messages { display: grid; gap: 12px; padding-top: 12px; }
#outbox-messages pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#traffic-stats, #traffic-dimensions { margin-block: 16px; }
.traffic-days { list-style: none; padding: 0; margin-top: 12px; }
.traffic-days li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 12px; align-items: center; min-height: 28px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.traffic-days li span { display: block; width: var(--bar); min-width: 2px; height: 8px; border-radius: 4px; background: var(--accent); }
.consent { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.consent p { margin-top: 4px; }
.consent ul { margin: 4px 0 0; padding-inline-start: 20px; color: var(--ink-2); }
.consent button { margin-top: 12px; }

.new-link { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-family: var(--mono); }
.new-link a { overflow-wrap: anywhere; }
[data-copied] { color: var(--ok) !important; }

/* Cards for links and blocks */
.list-tools { display: flex; gap: 8px; margin-block: 20px 12px; }
.list-tools select { width: auto; }
.search { position: relative; display: block; flex: 1; }
.search .ic { position: absolute; left: 12px; top: 11px; color: var(--ink-3); }
.search input { padding-left: 40px !important; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: box-shadow .15s var(--ease), opacity .15s var(--ease); }
.item[data-off] .item-main { opacity: .6; }
.item[data-dragging] { opacity: .4; }
.item[data-over] { box-shadow: 0 -2px 0 0 var(--accent); }
.item-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px 8px 8px; }
.item-head.no-grip { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 16px; }
.item-head.no-grip + .item-tools { padding-left: 68px; }
.item-tools .icon-btn[data-on] { color: var(--accent); }
.item-grip { display: grid; place-items: center; width: 24px; height: 40px; border: 0; background: none; color: var(--ink-3); cursor: grab; padding: 0; min-height: 0; border-radius: 6px; }
.item-grip:hover { background: var(--canvas); color: var(--ink); }
.item-grip:active { cursor: grabbing; transform: none; }
.item-thumb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-ctl); background: var(--canvas); color: var(--ink-3); overflow: hidden; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-main { display: grid; gap: 0; min-width: 0; }
.item-main input.item-title, .item-main input.item-url { min-height: 28px !important; padding: 2px 8px !important; margin-left: -8px; border-color: transparent !important; background: transparent !important; text-overflow: ellipsis; }
.item-main input.item-title { font-size: 15px !important; font-weight: 500 !important; }
.item-main input.item-url { font-size: 13px !important; color: var(--ink-2) !important; }
.item-main input:hover { background: var(--canvas) !important; }
.item-main input:focus { background: var(--surface) !important; border-color: var(--accent) !important; }
.item-kind { font-size: 12px; color: var(--ink-3); padding-left: 0; }
.item-short { display: inline-flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; min-height: 28px; padding: 0; border: 0; background: none; color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 400; cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.item-short:hover { background: none; color: var(--accent-deep); text-decoration: underline; }
.item-short .ic { width: 14px; height: 14px; }
.item-tools { display: flex; align-items: center; gap: 4px; padding: 0 12px 8px 44px; }
.item-tools .spacer { flex: 1; }
.item-tools .icon-btn { width: 32px; min-height: 32px; }
.item-tools .icon-btn.danger:hover { background: #fdf1ef; color: var(--err); }
.item-count { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.item-panel { display: grid; gap: 12px; padding: 16px; border-top: 1px solid var(--line); }
.item-panel h3 { font-size: 14px; font-weight: 500; }
.item-panel .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item-panel .qr-preview { margin: 0; width: 160px; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.effects { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.effects button { min-height: 36px; padding: 6px 8px; font-size: 13px; }
.effects button[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 72px; }
.bars i { flex: 1; min-height: 2px; height: var(--h); border-radius: 2px 2px 0 0; background: var(--line-2); }
.bars i[data-top] { background: var(--accent); }
.saved { font-size: 13px; color: var(--ink-3); }
.saved[data-error] { color: var(--err); }

/* Dialog */
dialog { width: min(720px, calc(100% - 32px)); max-height: min(720px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-panel); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(20, 22, 43, .3); }
dialog::backdrop { background: rgba(20, 22, 43, .5); }
.dialog-head { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dialog-head h2 { flex: 1; font-size: 16px; }
.dialog-body { padding: 16px 20px 24px; }
.type-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.type-grid button { justify-content: flex-start; width: 100%; min-height: 48px; padding: 8px 12px; border-color: transparent; background: none; color: var(--ink); font-weight: 400; text-align: left; }
.type-grid button:hover { background: var(--canvas); border-color: transparent; }
.type-grid .ic { width: 20px; height: 20px; color: var(--accent); }

@media (max-width: 1000px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-flip > :first-child { order: 0; }
  .hero h1 { font-size: 36px; }
  .site-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .site-links[data-open] { display: flex; }
  .site-links a { padding-block: 12px; border-top: 1px solid var(--line); }
  .site-links a:first-child { border-top: 0; }
  .site-menu { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .app-top { height: 56px; padding-inline: 12px; gap: 8px; }
  .app-logo { width: auto; }
  .app-menu { display: inline-flex; }
  .app-logo .logo-word, .btn-plan { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 56px); }
  .app-side { display: none; position: fixed; inset: 56px 0 0 0; z-index: 25; height: auto; padding-bottom: 96px; border-right: 0; }
  body[data-nav-open] .app-side { display: grid; }
  .app-main { padding: 16px 16px 112px; }
  .app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .app-tabs a, .app-tabs button { display: grid; justify-items: center; gap: 2px; width: 100%; min-height: 52px; padding: 6px 2px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font-size: 11px; font-weight: 400; text-decoration: none; }
  .app-tabs a[aria-current=page] { color: var(--accent); font-weight: 500; }
  .app-tabs .ic { width: 20px; height: 20px; }
  .app-tabs .app-sub { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 24px; }
  .site-nav { gap: 12px; min-height: 56px; }
  .site-end .site-signin { display: none; }
  .site-main > section:first-child { padding-top: 40px; }
  .hero { padding-bottom: 56px; }
  .hero h1 { font-size: 30px; }
  .hero-text > p { font-size: 16px; }
  .hero-visual { padding: 24px 12px; }
  .band { padding-block: 48px; }
  .band > h2, .band-head h2, .split h2, .closing h2 { font-size: 22px; }
  .page-head { padding-block: 40px 24px; }
  .page-head h1 { font-size: 28px; }
  .feature-list, .features { grid-template-columns: minmax(0, 1fr); }
  .feature-list li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 20px; }
  .template-row { grid-template-columns: repeat(5, 128px); overflow-x: auto; padding-bottom: 8px; }
  .shorten, .hero-tool .shorten { grid-template-columns: minmax(0, 1fr); }
  .shorten .btn { width: 100%; }
  .demo-sale { grid-template-columns: minmax(0, 1fr); }
  .demo-shot { max-width: 160px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .closing { padding: 40px 20px; margin-bottom: 56px; }
  .auth { margin-block: 24px 48px; padding: 24px 20px; }
  .item-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding-right: 12px; }
  .item-thumb { display: none; }
  .item-tools { padding-left: 36px; flex-wrap: wrap; }
  .item-head.no-grip { grid-template-columns: minmax(0, 1fr) auto; }
  .item-head.no-grip + .item-tools { padding-left: 12px; }
  .type-grid { grid-template-columns: minmax(0, 1fr); }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 360px) {
  .site-nav, .site-end { gap: 6px; }
  .site-end .btn { padding-inline: 8px; }
}

/* ---------- Reference-style pass: gradient hero, card surfaces, roomier app chrome ----------
   The gradient is the logo's own cyan-blue-violet. It is used on the home hero and the upgrade button only. */
:root { --grad: linear-gradient(100deg, #4a1fb8 0%, #3d5fe6 48%, #19c3e3 100%); }

.site-home { padding-bottom: 72px; }
.site-home .site-top { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: 0; }
.site-home .site-links a, .site-home .site-signin, .site-home .site-top .lang, .site-home .site-top .icon-btn { color: #fff; }
.site-home .site-links a:hover, .site-home .site-signin:hover { color: #d7f6ff; }
.site-home .site-top .lang:hover, .site-home .site-top .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.site-home .site-top .logo-word, .site-home .site-top .logo-word b { color: #fff; }
.site-home .site-top .logo-mark g { stroke: #fff; }
.site-home .site-top .btn { background: #fff; border-color: #fff; color: var(--ink); }
.site-home .site-main > section:first-child { padding-top: 136px; }

.hero { display: block; padding-bottom: 0; background: var(--grad); color: #fff; text-align: center; overflow: hidden; }
.hero-text { display: grid; justify-items: center; }
.hero h1 { font-size: 56px; line-height: 1.2; color: #fff; }
.hero h1 span { display: block; color: #8ef0ff; }
.hero-text > p { margin-top: 16px; font-size: 18px; color: #eef2ff; max-width: 56ch; }
.hero-tool { width: min(100%, 600px); max-width: none; border: 0; text-align: left; color: var(--ink); }
.hero-actions { justify-content: center; }
.btn-light { background: #fff; border-color: #fff; color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-deep); }
.hero-signin { margin-top: 16px; font-size: 14px; color: #eef2ff; }
.hero-signin a { color: #fff; font-weight: 500; }
.hero-visual { position: relative; display: grid; justify-items: center; gap: 16px; margin: 56px auto -96px; padding: 0; background: none; border-radius: 0; }
.hero-visual .demo-address { order: -1; border: 0; }
.float { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--accent); box-shadow: 0 12px 32px rgba(20, 22, 43, .25); }
.float .ic { width: 28px; height: 28px; }
.float-a { left: calc(50% - 292px); top: 64px; transform: rotate(-10deg); }
.float-b { right: calc(50% - 292px); top: 104px; transform: rotate(8deg); background: var(--ink); color: #fff; }
.float-c { left: calc(50% - 264px); top: 320px; transform: rotate(7deg); }
.float-d { right: calc(50% - 268px); top: 352px; transform: rotate(-8deg); }

.facts { background: var(--canvas); }
.facts ul { list-style: none; padding: 40px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; color: var(--ink-2); }
.facts strong { display: block; font-size: 36px; line-height: 1.2; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts + .band { border-top: 0; }
.center { text-align: center; }
.trio { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: center; }
.trio .ic { width: 32px; height: 32px; margin-bottom: 12px; color: var(--accent); }
.trio h3 { font-size: 22px; font-weight: 600; }
.trio p { margin-top: 8px; }
.site-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px; background: var(--surface); box-shadow: 0 -4px 24px rgba(20, 22, 43, .12); font-size: 16px; color: var(--ink); }

/* App chrome */
.app { background: #f3f4f6; }
.app h1 { font-size: 30px; }
.app-top { height: 68px; }
.app-body { min-height: calc(100vh - 68px); }
.app-side { top: 68px; height: calc(100vh - 68px); padding-top: 12px; }
.app-main { background: radial-gradient(760px 360px at 100% 0, #e6dffb 0%, rgba(230, 223, 251, 0) 70%) no-repeat; }
.app .btn, .app button.btn { border-radius: 12px; }
.app .panel, .app .item, .app .stat { border: 0; border-radius: 16px; box-shadow: 0 1px 2px rgba(20, 22, 43, .05), 0 4px 16px rgba(20, 22, 43, .05); }
.btn-pro { background: var(--grad); border: 0; color: #fff; box-shadow: 0 2px 8px -2px rgba(74, 31, 184, .5); }
.btn-pro:hover { background: var(--grad); filter: brightness(1.07); color: #fff; }
.app-side a.side-pro { width: 100%; justify-content: center; margin-bottom: 12px; min-height: 40px; color: #fff; font-size: 14px; font-weight: 500; }
.app-side a.side-pro:hover { background: var(--grad); color: #fff; }
.app-side a { font-size: 15px; color: #52525b; }
.app-side a[aria-current=page], .app-side .app-sub a[aria-current=true] { background: #e7e7ec; color: var(--accent); font-weight: 600; }
.app-side .app-sub a { font-size: 14px; }
.app-end .lang { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.acct { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 4px 4px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink-2); cursor: pointer; list-style: none; }
.acct:hover { background: var(--raise); color: var(--ink); }
.acct-face { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--canvas); }
.btn-accent, .btn-accent:hover { color: var(--accent); }

/* Add card and link cards */
.btn-square { width: 48px; }
.add-row input:placeholder-shown + .btn-square { background: #a99df5; border-color: #a99df5; }
.chip { min-height: 40px; background: #f8f9fc; border-color: #e9ebed; font-size: 14px; }
.app .item-thumb { width: 64px; height: 64px; border-radius: 8px; background: #f3f4f6; }
.app .item-tools, .app .item-head.no-grip + .item-tools { padding-left: 16px; gap: 8px; }
.item-tools .icon-btn[aria-pressed=true] { background: var(--accent); color: #fff; border-radius: 8px; }
.item-tools .icon-btn.danger[aria-pressed=true] { background: var(--err); }
.switch { width: 48px; height: 26px; }
.switch span { border-radius: 13px; }
.switch span::after { content: "OFF"; display: grid; place-items: center; width: 20px; height: 20px; font-size: 8px; font-weight: 600; line-height: 1; color: #8b8fa3; }
.switch input:checked + span::after { content: "ON"; transform: translateX(22px); color: var(--accent); }

@media (max-width: 1000px) {
  .hero h1 { font-size: 44px; }
  .float { display: none; }
}
@media (max-width: 860px) {
  .app-top { height: 56px; }
  .app-body { min-height: calc(100vh - 56px); }
  .app-side { top: 0; height: auto; }
  .app-end .lang { display: none; }
  .acct { padding-left: 8px; }
}
@media (max-width: 640px) {
  .site-home .site-main > section:first-child { padding-top: 96px; }
  .hero h1 { font-size: 34px; }
  .hero-text > p { font-size: 16px; }
  .hero-visual { margin-top: 40px; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px 0; }
  .facts strong { font-size: 28px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .site-cta span { display: none; }
  .site-cta .btn { flex: 1; }
  .app h1 { font-size: 24px; }
  .app .item-thumb { display: none; }
}

/* The framed sale page builder fills the content area */
.app-main:has(> .embed) { padding: 0; }
.embed { display: block; width: 100%; max-width: none !important; height: calc(100vh - 68px); border: 0; }
@media (max-width: 860px) { .embed { height: calc(100vh - 56px - 64px); } }

/* Analytics, plan, security and pixel pages */
.stack { display: grid; gap: 16px; }
.app-main .stack > .panel + .panel { margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-bottom: 16px; }
.filters .spacer { flex: 1; }
.filters label { width: auto; }
.filters select { width: auto; min-height: 40px; }
.filters output { flex-basis: 100%; }
.pills { display: inline-flex; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 12px; background: var(--surface); min-width: 0; box-shadow: 0 1px 2px rgba(20, 22, 43, .06); }
.pills label { display: block; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: block; min-height: 32px; padding: 4px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 24px; white-space: nowrap; }
.pills input:checked + span { background: var(--accent); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.bars.tall { height: 200px; gap: 4px; }
.bars.tall i { border-radius: 4px 4px 0 0; background: #cfc6ef; }
.bars.tall i[data-top] { background: var(--accent); }
.chart-note { margin: 4px 0 12px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 16px; }
.app-main .dim-grid .panel + .panel { margin-top: 0; }
.rank { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 12px; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.rank span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.rank strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.rank i { grid-column: 1 / -1; width: var(--w); height: 4px; border-radius: 2px; background: #cfc6ef; }
.rank li:first-child i { background: var(--accent); }
.plan-name { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.plan-name strong { margin-right: 8px; font-size: 28px; font-weight: 600; color: var(--ink); }
.app .plan-scroll { margin-top: 12px; border-radius: 12px; }
.plan-table tr[data-current] th, .plan-table tr[data-current] td { background: var(--accent-soft); }
.plan-table tr[data-current] th { color: var(--accent); font-weight: 600; }
.rows { list-style: none; padding: 0 !important; margin-top: 12px; display: grid; gap: 0; }
.rows li { padding-block: 12px; margin: 0 !important; border-top: 1px solid var(--line); color: var(--ink-2); overflow-wrap: anywhere; }
.rows li:first-child { border-top: 0; }
.settings .panel form { margin-top: 16px; max-width: 420px; }
.state-line { font-weight: 500; color: var(--ink); }
.providers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.note summary { font-weight: 500; cursor: pointer; }
.note ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--ink-2); }
.note li { margin-block: 4px; }
.note .hint { margin-top: 8px; }
@media (max-width: 640px) {
  .stats-3 { grid-template-columns: minmax(0, 1fr); }
  .pills { width: 100%; }
  .pills label { flex: 1; text-align: center; }
  .pills span { padding-inline: 4px; }
  .bars.tall { height: 160px; gap: 2px; }
}
