/* Linkme2 · Tangerine Ink */
@import url("/static/fonts/fonts.css");
:root {
  color-scheme: light;
  --ink: #16123a;
  --ink-raised: #29234d;
  --tangerine: #ff5a1f;
  --tangerine-hover: #ff7747;
  --tangerine-deep: #c2410c;
  /* Deep tangerine needs a darker shade for small text on peach. */
  --tangerine-on-peach: #af3a0b;
  --cream: #fff6ec;
  --peach: #ffe1cc;
  --lilac: #c9b8ff;
  --white: #ffffff;
  --paper: #fffbf6;
  --muted: #5e5a73;
  --border: #eadfd3;
  --control-border: #86766e;
  --danger-ink: #9f241d;
  --danger-bg: #fef0ee;
  --danger-hover: #ffe1dc;
  --danger-border: #c66a5f;
  --success-ink: #235b39;
  --success-bg: #e7f5e8;
  --focus: var(--ink);
  --profile-gradient: linear-gradient(180deg, var(--cream), var(--peach));
  --font: "Avenir Next", Avenir, "Futura", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 500 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clipboard-buffer { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.shell { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: .75rem; left: .75rem; padding: .65rem 1rem; border-radius: var(--pill); background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem; border: 2px solid transparent; border-radius: var(--pill); font-weight: 700; line-height: 1.15; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.button:active:not(:disabled) { transform: scale(.97); }
.button-big { min-height: 60px; padding-inline: 1.9rem; font-size: 1.06rem; }
.button-small { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.button-wide { width: 100%; }
.button-dark { background: var(--ink); color: var(--cream); }
.button-dark:hover { background: var(--ink-raised); }
.button-light { background: var(--cream); color: var(--ink); border-color: var(--border); }
.button-light:hover { background: var(--peach); }
.button-white { background: var(--white); color: var(--ink); }
.button-white:hover { background: var(--cream); }
.button-google { border-color: var(--border); color: var(--ink); background: var(--white); }
.button-google:hover { background: var(--cream); }
.button-primary { background: var(--tangerine); color: var(--ink); }
.button-primary:hover:not(:disabled) { background: var(--tangerine-hover); }
.button-danger { background: var(--danger-bg); color: var(--danger-ink); border-color: var(--danger-border); }
.button-danger:hover { background: var(--danger-hover); }
.button.is-copied { background: var(--ink); color: var(--cream); }

/* Floating pill navigation */
.site-header { position: sticky; top: 0; z-index: 10; padding: clamp(10px, 2vw, 24px) var(--gutter) 0; margin-bottom: calc(-1 * clamp(70px, 8vw, 104px)); pointer-events: none; }
.studio-body .site-header, .error-body .site-header { position: static; margin-bottom: 0; padding-bottom: 0; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1296px, 100%); min-height: clamp(62px, 6vw, 84px); margin-inline: auto; padding: .55rem .6rem .55rem clamp(1rem, 2.5vw, 2rem); background: var(--white); border-radius: var(--pill); box-shadow: 0 2px 18px color-mix(in srgb, var(--ink) 10%, transparent); }
.brand { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--brand-ink, var(--ink)); font: 800 clamp(1.3rem, 2.4vw, 1.75rem)/1 var(--font); letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: block; flex: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-actions form { margin: 0; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .8rem; font-weight: 700; text-decoration: none; }
.nav-link:hover { color: var(--tangerine-deep); text-decoration: underline; }
.nav-settings { gap: .4rem; }

/* Landing bands */
.band { padding-block: clamp(4rem, 9vw, 8rem); }
.band h2 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); font-weight: 800; line-height: .98; letter-spacing: -.05em; text-wrap: balance; }
.band p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; }
.band-cream { background: var(--cream); }
.band-ink { background: var(--ink); color: var(--cream); --brand-ink: var(--cream); --focus: var(--tangerine-deep); }
.band-peach { background: var(--peach); }
.band-tangerine { background: var(--tangerine); }
.hero { min-height: min(100vh, 980px); display: flex; align-items: center; padding-top: clamp(8rem, 13vw, 11rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 6.6rem); font-weight: 800; line-height: .94; letter-spacing: -.055em; text-wrap: balance; }
.hero-accent { text-decoration: underline var(--tangerine) .085em; text-decoration-skip-ink: none; text-underline-offset: .12em; white-space: nowrap; }
.lede { max-width: 33rem; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.claim { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.claim-field { display: flex; flex: 1 1 260px; min-width: 0; align-items: center; min-height: 60px; padding-inline: 1.3rem; background: var(--white); color: var(--muted); border: 1px solid var(--control-border); border-radius: 14px; cursor: text; }
.claim-field span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.claim-field input { flex: 1 0 6.5rem; min-width: 6.5rem; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.claim-field input::placeholder { color: var(--muted); opacity: 1; }
.claim-field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero-copy > .button { margin-top: 2.2rem; }

/* Phone mock-ups used on the landing page and sign-up page */
.hero-art { position: relative; display: grid; place-items: center; }
.phone { width: min(100%, 310px); padding: 11px; background: var(--ink); border-radius: 46px; box-shadow: 0 30px 60px color-mix(in srgb, var(--ink) 21%, transparent); }
.phone-small { width: min(100%, 270px); }
.phone-screen { display: flex; flex-direction: column; align-items: center; gap: .62rem; min-height: 560px; padding: 2.6rem 1.05rem 1.5rem; border-radius: 36px; background: var(--profile-gradient); color: var(--ink); text-align: center; overflow: hidden; }
.phone-small .phone-screen { min-height: 470px; }
.demo-avatar { display: grid; place-items: center; width: 86px; height: 86px; margin-bottom: .2rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 2.3rem; font-weight: 800; border: 3px solid var(--white); }
.demo-name { font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.demo-bio { margin-bottom: .45rem; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.demo-pill { display: flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; min-height: 46px; padding: .5rem .9rem; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--pill); box-shadow: 0 4px 0 var(--ink); font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.floater { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.05rem; background: var(--white); color: var(--ink); border-radius: var(--pill); box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 16%, transparent); font-weight: 700; font-size: .92rem; }
.floater-a { top: 16%; left: -2%; }
.floater-b { bottom: 14%; right: 0; background: var(--tangerine); color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.split-copy p { max-width: 34rem; margin-top: 1.4rem; }
.split-copy .button { margin-top: 2rem; }
.paste-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; justify-items: center; width: min(100%, 440px); margin-inline: auto; }
.paste-box, .share-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .6rem .6rem .6rem 1.3rem; background: var(--white); color: var(--ink); border-radius: 18px; font-weight: 700; }
.paste-box span, .share-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paste-box b, .share-bar b { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.1rem; border-radius: var(--pill); background: var(--tangerine); color: var(--ink); white-space: nowrap; }
.paste-arrow { color: var(--tangerine); }
.paste-result { width: 100%; padding: 1rem; background: var(--cream); color: var(--ink); border-radius: var(--pill); text-align: center; font-weight: 800; box-shadow: 0 5px 0 var(--ink-raised); }
.paste-result:nth-child(3) { background: var(--peach); }
.share-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: center; width: min(100%, 460px); margin-inline: auto; }
.share-bar b { background: var(--ink); color: var(--cream); }
.share-toast { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.2rem; background: var(--ink); color: var(--cream); border-radius: var(--pill); font-weight: 700; }
.split-reverse .split-copy { order: 0; }
.closing { text-align: center; }
.closing .button { margin-top: 2.2rem; }

/* Account pages */
.account-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 100vh; }
.account-panel { display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter); }
.account-panel .brand { align-self: flex-start; }
.account-inner { width: min(100%, 470px); margin: auto; padding-block: 2.5rem; }
.account-inner h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; text-align: center; }
.account-lede { margin: .8rem 0 2rem; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.account-divider { display: flex; align-items: center; gap: .8rem; margin: .8rem 0; color: var(--muted); font-size: .9rem; }
.account-divider::before, .account-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.account-switch { margin-top: 1.4rem; color: var(--muted); text-align: center; }
.account-switch a { color: var(--tangerine-deep); font-weight: 700; }
.account-art { display: grid; place-items: center; padding: 2rem; background: var(--ink); color: var(--cream); --brand-ink: var(--cream); --focus: var(--tangerine-deep); }
.account-art .phone { box-shadow: 0 0 0 1px color-mix(in srgb, var(--cream) 35%, var(--ink)), 0 25px 60px color-mix(in srgb, var(--ink) 65%, transparent); }
.account-body .notice { margin-bottom: 1rem; }

/* Forms */
.stack { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: .95rem; font-weight: 700; }
.field input, .field textarea { width: 100%; min-width: 0; min-height: 52px; padding: .8rem 1rem; color: var(--ink); background: var(--cream); border: 2px solid var(--control-border); border-radius: 12px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { resize: vertical; line-height: 1.45; }
.field :is(input, textarea, select):hover { background: var(--peach); }
.field :is(input, textarea, select):focus { border-color: var(--ink); background: var(--white); }
.optional { margin-left: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.hint { color: var(--muted); font-size: .87rem; line-height: 1.45; }
.hint a { color: var(--tangerine-deep); }
.paste-row { display: flex; gap: .5rem; }
.paste-row input { flex: 1; }
.paste-button { min-height: 52px; border-radius: 12px; }
.notice { display: flex; align-items: flex-start; gap: .4rem; padding: .8rem 1rem; border-radius: 12px; font-size: .95rem; font-weight: 600; }
.notice svg { margin-top: .1rem; }
.notice-error { background: var(--danger-bg); color: var(--danger-ink); }
.notice-success { background: var(--success-bg); color: var(--success-ink); }

/* Shared cards and signed-in editors */
.studio-body { background: var(--cream); }
.studio-body .nav-pill { box-shadow: none; }
.studio-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 30%); gap: clamp(1.25rem, 3vw, 2.75rem); align-items: start; }
.settings-shell, .edit-shell { display: grid; gap: 1.15rem; width: min(100%, 700px); overflow-wrap: anywhere; }
.settings-shell form .button, .edit-shell .back-link { justify-self: start; }
.studio-work { display: grid; gap: 1.2rem; min-width: 0; }
.live-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem;
  padding: 1rem 1.15rem; background: var(--peach); color: var(--ink); border: 1px solid var(--border); border-radius: 24px;
}
.live-info { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.live-info > :first-child { font-weight: 650; }
.live-info .hint { margin-top: .25rem; }
.live-url { color: var(--tangerine-on-peach); font-weight: 800; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: .35rem; border-radius: 50%; background: var(--success-ink); }
.studio-shell [id] { scroll-margin-top: 1rem; }
.studio-title { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; }
.studio-section { display: grid; gap: 1rem; scroll-margin-top: 1rem; }
.card { padding: clamp(1.1rem, 3vw, 1.6rem); background: var(--white); border-radius: 24px; }
.add-card { display: grid; gap: 1rem; scroll-margin-top: 1rem; }
.add-card h3, .studio-section > h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.managed-links { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.managed-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: 1rem 1.1rem 1rem .7rem; }
.managed-link.is-hidden .managed-title { color: var(--muted); }
.sort-tools { display: grid; gap: .15rem; margin: 0; }
.managed-main { display: grid; gap: .2rem; min-width: 0; }
.managed-title { font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.managed-url { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.managed-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.click-pill, .state-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: var(--pill); font-size: .8rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.click-pill { background: var(--cream); color: var(--muted); }
.state-pill { background: var(--peach); color: var(--tangerine-on-peach); }
.link-tools { display: flex; align-items: center; gap: .35rem; }
.link-tools form { margin: 0; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 50%; text-decoration: none; }
.icon-button:hover:not(:disabled) { background: var(--cream); }
.icon-button:disabled { color: var(--border); }
.sort-tools .icon-button { width: 40px; height: 36px; border-radius: 10px; background: var(--cream); }
.sort-tools .icon-button:hover:not(:disabled) { background: var(--peach); }
.sort-tools .icon-button:disabled { background: transparent; }
.switch { position: relative; width: 52px; height: 30px; padding: 0; background: var(--muted); border: 0; border-radius: var(--pill); transition: background-color .15s ease; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: var(--white); border-radius: 50%; box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 25%, transparent); transition: transform .15s ease; }
.switch.is-on { background: var(--tangerine-deep); }
.switch.is-on span { transform: translateX(22px); }
.empty-note { padding: 1.5rem; border: 2px dashed var(--control-border); border-radius: 24px; color: var(--muted); text-align: center; }
.studio-preview { position: sticky; top: 1.5rem; display: grid; gap: 1rem; justify-items: center; min-width: 0; }
.studio-preview .preview-phone {
  --screen-height: clamp(340px, 67vh, 565px);
  width: min(100%, 310px); padding: 8px; border-radius: 38px;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--ink) 15%, transparent);
}
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: .3rem; width: min(100%, 310px); padding-inline: .2rem; }
.preview-bar a, .preview-label { color: var(--muted); font-size: .84rem; font-weight: 750; }
.preview-bar a { display: inline-flex; align-items: center; min-height: 32px; gap: .22rem; text-decoration: none; }
.preview-bar a:hover { text-decoration: underline; }
.preview-screen { height: var(--screen-height); overflow: auto; border-radius: 31px; scrollbar-width: none; }
.preview-screen .profile { min-height: calc(var(--screen-height) / .82); zoom: .82; }
.preview-screen .profile-title { font-size: 1.55rem; }
.preview-screen .profile-cover { --cover-height: 126px; width: calc(100% + 2rem); margin-inline: -1rem; border-radius: 0; }
.preview-screen .profile:is([data-layout="banner"], [data-layout="hero"]) { padding-top: 0; }
.preview-screen .profile:is([data-layout="banner"], [data-layout="hero"]) .profile-identity { margin-top: 0; }
.preview-screen .profile:is([data-layout="banner"], [data-layout="hero"]) .profile-top { top: .75rem; right: 0; }
.preview-screen .profile[data-layout="hero"] .profile-cover { --cover-height: 260px; }
.preview-screen:focus-visible { outline-color: var(--tangerine-deep); outline-offset: 1px; }
.edit-shell .card { display: grid; gap: 1rem; }
.edit-title { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-bottom: .6rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.delete-area { padding-top: 1rem; border-top: 1px solid var(--border); }
.delete-area summary { width: fit-content; min-height: 44px; padding-block: .6rem; color: var(--danger-ink); font-weight: 700; cursor: pointer; }
.delete-area p { margin-bottom: .8rem; color: var(--muted); font-size: .92rem; }

/* Signed-in admin shell */
.admin-body { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: clamp(250px, 21vw, 300px) minmax(0, 1fr); min-height: 100dvh; }
.admin-sidebar {
  position: sticky; top: 0; height: 100dvh; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem 1.2rem 1rem;
  overflow-y: auto; background: var(--cream); border-right: 1px solid var(--border);
}
.admin-masthead, .admin-nav, .admin-bottom, .setup-card-sidebar { flex: none; }
.admin-masthead { display: grid; gap: .3rem; min-width: 0; }
.admin-brand { justify-self: start; margin-inline: .68rem; font-size: 1.4rem; }
.admin-brand .brand-mark { width: 24px; height: 24px; }
.admin-identity { min-width: 0; }
.admin-identity-row, .setup-summary, .visitor-tips summary { list-style: none; cursor: pointer; }
.admin-identity-row::-webkit-details-marker, .setup-summary::-webkit-details-marker, .visitor-tips summary::-webkit-details-marker { display: none; }
.admin-identity-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem;
  min-height: 54px; padding: .35rem .68rem; border-radius: 15px; font-weight: 800;
}
.admin-identity-row:hover { background: var(--peach); }
.admin-identity-avatar, .dashboard-avatar {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--ink); color: var(--cream); font-weight: 800;
}
.admin-identity-avatar { width: 38px; font-size: 1.05rem; }
.admin-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account-menu {
  display: grid; gap: .2rem; margin-top: .35rem; padding: .25rem;
  border: 1px solid var(--border); border-radius: 16px; background: var(--white);
}
.admin-mobile-account { display: none; }
.admin-identity[open] .admin-identity-row > svg, .setup-card details[open] .setup-chevron, .visitor-tips[open] summary svg { transform: rotate(180deg); }
.admin-nav { position: relative; display: grid; gap: .22rem; margin-bottom: .75rem; }
.admin-nav-row {
  display: flex; align-items: center; gap: .72rem; width: 100%; min-height: 48px; padding: .45rem .8rem;
  border: 0; border-radius: 13px; background: transparent; color: inherit; text-decoration: none; font-weight: 700;
}
.admin-nav-row:hover { background: var(--peach); }
.admin-nav-row[aria-current="page"] { background: var(--peach); color: var(--tangerine-on-peach); }
.admin-nav-row:focus-visible { outline-offset: -3px; }
.admin-bottom { display: grid; gap: .22rem; }
.admin-sidebar form { margin: 0; }
.admin-content {
  width: min(100%, 1240px); min-width: 0; justify-self: center;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3rem) 4rem;
}
.admin-heading {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  padding-bottom: 1.25rem; margin-bottom: 1.65rem; border-bottom: 1px solid var(--border);
}
.admin-heading h1 {
  min-width: 0; font-size: clamp(1.75rem, 3.3vw, 2.125rem); line-height: 1.14;
  font-weight: 800; letter-spacing: -.045em; overflow-wrap: anywhere;
}
.admin-body .card { border: 1px solid var(--border); }
.admin-body .danger-zone { border-color: var(--danger-border); }
.danger-zone h2 { color: var(--danger-ink); }

/* Setup disclosure: its mobile instance is part of the dashboard flow. */
.setup-card {
  padding: .9rem; background: var(--white); border: 1px solid var(--border);
  border-radius: 28px; box-shadow: 0 2px 12px color-mix(in srgb, var(--ink) 6%, transparent);
}
.setup-card-sidebar { margin-top: auto; }
.setup-card-mobile { display: none; }
.setup-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .52rem; border-radius: 12px; }
.setup-summary:hover strong { color: var(--tangerine-deep); }
.setup-ring { width: 60px; height: 60px; }
.setup-track, .setup-arc { fill: none; stroke-width: 5; }
.setup-track { stroke: var(--border); }
.setup-arc { stroke-linecap: round; }
.setup-stop-start { stop-color: var(--tangerine); }
.setup-stop-end { stop-color: var(--tangerine-hover); }
.setup-ring text { fill: currentColor; font-size: 17px; font-weight: 800; }
.setup-summary-copy { display: grid; gap: .2rem; line-height: 1.25; }
.setup-summary-copy strong { font-size: .92rem; font-weight: 800; }
.setup-summary-copy > span { color: var(--muted); font-size: .8rem; }
.setup-chevron { color: var(--muted); }
.setup-finish.button { min-height: 44px; margin-top: .73rem; padding-inline: .8rem; font-size: .9rem; }
.setup-steps {
  display: grid; gap: .15rem; padding: .65rem 0 0; margin: .65rem 0 0;
  border-top: 1px solid var(--border); list-style: none; font-size: .84rem;
}
.setup-steps li { display: flex; align-items: center; gap: .55rem; min-height: 32px; }
.setup-steps a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }
.setup-steps a:hover { color: var(--tangerine-deep); }
.setup-step-icon { display: inline-grid; place-items: center; flex: none; width: 17px; height: 17px; border: 1px solid var(--control-border); border-radius: 50%; }
.setup-step-icon.is-complete { border-color: var(--peach); background: var(--peach); color: var(--tangerine-on-peach); }

/* Dashboard and reusable reporting charts. The bar geometry is rendered as SVG attributes. */
.dashboard-url {
  display: flex; align-items: center; gap: .15rem; max-width: 100%; min-height: 46px; padding: .05rem .15rem .05rem 1rem;
  background: var(--cream); border-radius: var(--pill); font-size: .9rem; font-weight: 700;
}
.dashboard-url a { display: block; min-width: 0; padding: .55rem .15rem .55rem 0; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-url a:hover { text-decoration: underline; }
.admin-copy { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: inherit; }
.dashboard-url .admin-copy { background: transparent; }
.admin-copy:hover, .dashboard-url .admin-copy:hover { background: var(--peach); }
.admin-copy .copy-done, .admin-copy.is-copied .copy-default { display: none; }
.admin-copy.is-copied .copy-done { display: inline-grid; color: var(--tangerine-on-peach); }
.dashboard-section + .dashboard-section { margin-top: 1.85rem; }
.dashboard-section > h2 { margin-bottom: .82rem; font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.18; font-weight: 800; letter-spacing: -.035em; }
.dashboard-profile {
  display: grid; justify-items: center; gap: .18rem; width: min(100%, 370px); min-width: 0;
  padding: 1.3rem 1.2rem 1rem; background: var(--peach); border-radius: 30px;
}
.dashboard-avatar { width: clamp(148px, 17vw, 196px); font-size: clamp(3rem, 6vw, 4.7rem); }
.dashboard-profile h3 { margin-top: .45rem; font-size: 1.33rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.dashboard-profile > p { color: var(--muted); font-size: .93rem; }
.dashboard-profile-actions { display: flex; justify-self: end; gap: .45rem; margin-top: .35rem; }
.dashboard-profile-actions .button { min-height: 44px; padding: .48rem 1.22rem; font-size: .92rem; }
.week-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.week-card.card, .insight-chart.card, .insight-links.card { padding: clamp(1rem, 2.3vw, 1.6rem); border-radius: 30px; }
.week-card { display: flex; flex-direction: column; gap: .5rem; min-width: 0; min-height: 258px; }
.week-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; }
.week-heading h2, .week-heading h3, .insight-links h2 { font-size: 1.13rem; font-weight: 800; letter-spacing: -.02em; }
.week-heading > span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.metric-value { display: block; font-size: clamp(1.8rem, 3.5vw, 2.3rem); line-height: 1.12; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.week-empty { display: grid; justify-items: center; align-content: center; gap: .4rem; margin-block: auto; padding: .35rem 0 .15rem; text-align: center; }
.week-empty > p { font-weight: 750; }
.week-empty > span:not(.top-empty-icon) { color: var(--muted); font-size: .87rem; }
.empty-globe { margin-bottom: .02rem; }
.top-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: .2rem; border-radius: 18px; background: var(--cream); color: var(--muted); }
.visitor-tips { margin-top: .2rem; }
.visitor-tips summary {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 42px; padding: .44rem .8rem;
  border: 1px solid var(--control-border); border-radius: var(--pill); font-size: .83rem; font-weight: 700;
}
.visitor-tips summary:hover { background: var(--paper); }
.visitor-tips ul { display: grid; gap: .32rem; margin: .75rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: .87rem; text-align: left; }
.daily-chart { min-width: 0; margin-top: .7rem; }
.week-card .daily-chart { margin-top: auto; }
.daily-bars { display: block; width: 100%; height: clamp(100px, 13vw, 142px); }
.chart-guides { fill: none; stroke: var(--border); stroke-width: 1; }
.chart-bar { fill: var(--tangerine); }
.chart-bar-zero, .top-bar rect { fill: var(--lilac); stroke: var(--ink); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.daily-labels { display: flex; min-height: 1.2em; margin: .35rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .76rem; }
.daily-labels li { position: relative; flex: 1; min-width: 0; text-align: center; }
.is-month .chart-tick { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.is-month li:first-child .chart-tick { left: 0; transform: none; }
.is-month li:last-child .chart-tick { left: auto; right: 0; transform: none; }
.top-links { display: grid; gap: 1.02rem; margin: .85rem 0 .25rem; padding: 0; list-style: none; }
.top-link-label { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; overflow-wrap: anywhere; }
.top-link-label strong { min-width: 0; font-weight: 750; }
.top-link-label > span { flex: none; max-width: 50%; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; }
.top-bar { display: block; width: 100%; margin-top: .32rem; border-radius: var(--pill); background: var(--border); }

/* Insights */
.range-filter { display: inline-flex; flex-wrap: wrap; gap: .2rem; max-width: 100%; padding: .24rem; border: 1px solid var(--border); border-radius: var(--pill); background: var(--cream); }
.range-filter a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .4rem .78rem; border-radius: var(--pill); font-size: .84rem; font-weight: 750; text-decoration: none; }
.range-filter a:hover { background: var(--peach); }
.range-filter a[aria-current="page"] { background: var(--white); color: var(--tangerine-deep); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 9%, transparent); }
.insights-heading { margin-bottom: .95rem; }
.insight-period { margin-bottom: .85rem; color: var(--muted); font-size: .87rem; }
.insight-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.insight-total { min-width: 0; }
.insight-total h2 { margin-bottom: .38rem; font-size: .92rem; font-weight: 750; }
.insight-note { max-width: 76ch; margin: .8rem 0 1.25rem; color: var(--muted); font-size: .87rem; }
.insight-chart .daily-bars { height: clamp(110px, 21vw, 220px); }
.insight-chart > .hint { margin-top: .3rem; }
.insight-links { margin-top: 1.1rem; }
.insight-links > .hint { margin-top: .6rem; }
.insight-table { width: 100%; margin-top: .5rem; border-collapse: collapse; table-layout: fixed; font-size: .91rem; }
.insight-table :is(th, td) { padding: .61rem 0 .61rem .5rem; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.insight-table th:first-child { width: 54%; padding-left: 0; text-align: left; }
.insight-table thead th { color: var(--muted); font-size: .8rem; }
.insight-hidden { display: inline-block; margin-left: .4rem; padding: .12rem .4rem; border-radius: var(--pill); background: var(--paper); color: var(--muted); font-size: .73rem; }

/* Profile photos */
.avatar-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: inherit; }
.avatar-tools { display: grid; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.avatar-tools h3 { font-size: 1rem; }
.avatar-tools .button { justify-self: start; }
.avatar-tools input[type="file"]::file-selector-button { margin-right: .6rem; padding: .35rem .7rem; border: 0; border-radius: var(--pill); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }

/* Header and Design use the same two-column workbench as Links. */
.editor-shell { grid-template-columns: minmax(0, 1fr) minmax(220px, 32%); }
.header-form, .design-form { min-width: 0; display: grid; gap: 1rem; }
.editor-heading { position: sticky; top: 0; z-index: 5; margin: 0; padding-top: .5rem; background: var(--paper); }
.editor-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.editor-actions .button { min-width: 4.5rem; }
.editor-save:disabled { background: var(--cream); color: var(--muted); border-color: var(--border); }
.editor-card.card { display: grid; gap: 1.05rem; padding: clamp(1rem, 3vw, 1.75rem); }
.editor-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.editor-fieldset legend, .editor-media strong, .editor-toggle strong { padding: 0; font-size: .95rem; font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: .5rem; margin-top: .42rem; }
.choice-card { position: relative; cursor: pointer; min-width: 0; }
.choice-card > span {
  display: grid; min-height: 82px; place-items: center; align-content: center; gap: .18rem; padding: .35rem .15rem;
  border: 2px solid var(--border); border-radius: 14px; background: var(--paper); line-height: 1.2;
}
.choice-card:hover > span { background: var(--peach); }
.choice-card input:checked + span { border-color: var(--ink); background: var(--peach); }
.choice-card input:focus-visible + span,
.media-picker input:focus-visible + span, .media-remove input:focus-visible + span { outline: 3px solid var(--tangerine-deep); outline-offset: 2px; }
.choice-card strong { font-size: .85rem; }
.type-sample { font-size: 1.35rem; font-weight: 750; }
.editor-media { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .8rem; align-items: center; }
.media-copy .hint { margin-top: .22rem; max-width: 36ch; }
.media-tools { display: grid; justify-items: center; gap: .1rem; }
.media-picker, .media-remove { position: relative; cursor: pointer; }
.media-thumb {
  position: relative; display: grid; place-items: center; width: 78px; height: 64px;
  border: 1px dashed var(--control-border); border-radius: 14px; background: var(--cream); color: var(--muted);
}
.media-avatar .media-thumb { width: 64px; height: 64px; border-radius: 50%; background: var(--peach); }
.media-banner .media-thumb { width: clamp(96px, 13vw, 150px); height: auto; aspect-ratio: 3 / 1; }
.media-add { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .18rem; font-size: .68rem; font-weight: 750; }
.media-thumb :is(img, canvas) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.media-logo .media-thumb :is(img, canvas) { object-fit: contain; }
.media-initial { font-size: 1.5rem; font-weight: 800; }
.media-picker:hover .media-thumb { border-color: var(--tangerine-deep); }
.media-pencil { position: absolute; right: -.2rem; bottom: -.22rem; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); }
.media-remove > span, .media-clear {
  display: inline-flex; align-items: center; justify-content: center; padding: .14rem .35rem; min-height: 32px;
  border: 0; border-radius: 6px; background: transparent; color: var(--danger-ink); font-size: .76rem;
}
.media-remove:hover > span, .media-clear:hover { background: var(--danger-bg); }
.media-remove input:checked + span > :first-child, .media-remove input:not(:checked) + span > :nth-child(2) { display: none; }
.editor-media:has(input:checked) .media-thumb { opacity: .4; }
.media-feedback { grid-column: 1 / -1; color: var(--danger-ink); }
.header-form:has(#title_style-text:checked) .media-logo:not(.has-photo) { display: none; }
.counter-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.field-count { color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
.field-count.is-over { color: var(--danger-ink); font-weight: 750; }
.title-font-control { display: grid; gap: .7rem; }
.editor-toggle { display: flex; justify-content: space-between; align-items: center; gap: .7rem; cursor: pointer; }
.editor-toggle .hint { display: block; margin-top: .2rem; }
.editor-toggle input {
  appearance: none; flex: none; position: relative; width: 43px; height: 26px; margin: 0;
  background: var(--muted); border: 0; border-radius: var(--pill); cursor: pointer;
}
.editor-toggle input::before { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: var(--white); }
.editor-toggle input:checked { background: var(--tangerine-deep); }
.editor-toggle input:checked::before { transform: translateX(17px); }
.field select {
  width: 100%; min-width: 0; min-height: 48px; padding: .6rem .75rem; border: 2px solid var(--control-border);
  border-radius: 12px; background: var(--cream); color: var(--ink); font: inherit;
}
.colour-row { display: flex; gap: .48rem; }
.colour-row input[type="color"] { flex: 0 0 48px; width: 48px; padding: .15rem .3rem; cursor: pointer; }
.colour-row input[type="text"] { flex: 1; }

/* Theme gallery, social management, and the dashboard share panel. */
.theme-hint { margin: .24rem 0 .72rem; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.3rem, 1.5vw, .65rem); }
.theme-card { position: relative; display: block; min-width: 0; cursor: pointer; }
.theme-card > span { display: grid; grid-template-rows: auto 1fr; height: 100%; gap: .25rem; padding: .28rem; border: 2px solid var(--border); border-radius: 13px; background: var(--cream); }
.theme-art { display: block; width: 100%; max-height: 100px; aspect-ratio: 1.85; border-radius: 8px; }
.theme-card strong { display: grid; align-content: center; min-height: 1.5rem; font-size: .86rem; line-height: 1.2; text-align: center; }
.theme-selected { position: absolute; top: .54rem; right: .55rem; display: none; place-items: center; width: 20px; height: 20px; color: var(--cream); background: var(--ink); border-radius: 50%; }
.theme-card input:checked + span .theme-selected { display: grid; }
@media (min-width: 1200px) { .theme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 360px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-card:hover > span, .theme-card input:checked + span { border-color: var(--ink); }
.theme-card input:checked + span { background: var(--peach); }
.theme-card input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-controls-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.theme-controls-heading h2 { font-size: 1.15rem; line-height: 1.2; letter-spacing: -.025em; }
.editor-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.editor-pairs > div, .social-fields > div { min-width: 0; }
.social-card { scroll-margin-top: 1rem; }
.social-fields, .social-position { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: end; gap: .65rem; min-width: 0; }
.social-fields > button { justify-self: start; }
.social-position { grid-template-columns: minmax(0, 1fr) auto; align-items: end; border-top: 1px solid var(--border); padding-top: 1rem; }
.social-managed { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.social-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; align-items: start; border: 1px solid var(--border); border-radius: 14px; padding: .55rem; }
.social-item details { min-width: 0; }
.social-item summary { list-style: none; cursor: pointer; min-height: 50px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-content: center; align-items: center; gap: .1rem .4rem; padding: .2rem .4rem; border-radius: 9px; }
.social-item summary::-webkit-details-marker, .dashboard-qr summary::-webkit-details-marker { display: none; }
.social-item details[open] summary > svg:nth-of-type(2) { transform: rotate(180deg); }
.social-item form + form, .social-item details > form, .social-item .notice { margin-top: .6rem; }
.social-address { grid-column: 2 / -1; font-size: .78rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.social-item .sort-tools .icon-button { width: 34px; height: 34px; }
.dashboard-qr { width: min(100%, 370px); margin-top: .7rem; }
.dashboard-qr summary { list-style: none; width: fit-content; cursor: pointer; }
.qr-panel.card { display: grid; justify-items: center; gap: .8rem; text-align: center; margin-top: .7rem; }
.qr-panel img { display: block; max-width: 100%; height: auto; background: var(--white); border: 1px solid var(--border); border-radius: 12px; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }

/* One public profile renderer, including inside the editor's phone frame. */
.theme-surface {
  background: var(--lm-background, var(--profile-gradient));
  color: var(--lm-text, var(--ink)); font-family: var(--lm-font, var(--font));
}
.public-body { min-height: 100vh; }
.profile { position: relative; width: min(620px, calc(100% - 2rem)); min-height: 100vh; margin-inline: auto; padding: 1rem 0 2rem; display: flex; flex-direction: column; }
.profile-top { display: flex; justify-content: flex-end; min-height: 48px; }
.round-button { position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; color: var(--ink); background: var(--white); border: 0; border-radius: 50%; }
.round-button:hover { background: var(--cream); }
.round-button.is-copied::after { content: "Link copied"; position: absolute; top: calc(100% + .5rem); right: 0; padding: .45rem .8rem; background: var(--ink); color: var(--cream); border-radius: var(--pill); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.profile-identity { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .3rem; margin-top: .5rem; text-align: center; overflow-wrap: anywhere; }
.profile-avatar { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: .6rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 2.6rem; font-weight: 800; }
.profile-title { min-width: 0; color: var(--lm-title-ink, inherit); font-family: var(--lm-title-font, inherit); font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.profile-logo { display: block; width: auto; max-width: min(72vw, 360px, 100%); max-height: 91px; margin-inline: auto; object-fit: contain; }
.profile-cover {
  position: relative; display: grid; width: 100%; min-height: var(--cover-height, clamp(122px, 26vw, 207px));
  background: color-mix(in srgb, currentColor 18%, var(--lm-button-bg, var(--peach))); border-radius: 24px; overflow: hidden;
}
.profile-cover-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.profile[data-layout="classic"] .profile-cover, .profile[data-layout="hero"] .profile-avatar { display: none; }
.profile[data-layout="banner"] .profile-avatar { z-index: 1; margin-top: -50px; border: 3px solid var(--white); }
.profile:is([data-layout="banner"], [data-layout="hero"]) .profile-top { position: absolute; z-index: 3; top: 1.85rem; right: .75rem; }
.profile[data-layout="hero"] .profile-cover {
  min-height: var(--cover-height, clamp(232px, 50vw, 306px)); background: var(--ink-raised);
}
.profile[data-layout="hero"] .profile-cover::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 12%, var(--lm-hero-scrim, color-mix(in srgb, var(--ink) 92%, transparent)) 100%);
}
.profile[data-layout="hero"] :is(.profile-cover, .profile-title) { grid-area: 1 / 1; }
.profile[data-layout="hero"] .profile-title {
  z-index: 1; align-self: end; width: 100%; padding: 1.25rem 1rem; color: var(--lm-title-ink, var(--lm-hero-ink, var(--cream)));
  font-size: clamp(1.65rem, 5vw, 2.25rem);
}
.profile[data-layout="hero"] .profile-handle { margin-top: .48rem; }
.preview-screen .profile-logo { max-height: 66px; }
.profile-handle { font-weight: 700; }
.profile-bio { max-width: 34rem; margin-top: .2rem; white-space: pre-wrap; }
.profile-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.profile-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.profile-social a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.profile-social[data-position="bottom"] { margin: 0 0 .8rem; }
.profile-links { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.profile-social + .profile-links, .profile-social + [data-social-slot] + .profile-links { margin-top: 1rem; }
.profile-link {
  display: flex; align-items: center; justify-content: center; min-height: 64px; padding: .9rem 1.5rem;
  background: var(--lm-button-bg, var(--white)); color: var(--lm-button-text, var(--ink)); border: 2px solid var(--lm-button-border, var(--ink));
  border-radius: var(--lm-radius, var(--pill)); box-shadow: var(--lm-shadow, 0 5px 0 var(--ink));
  font-weight: 700; text-align: center; text-decoration: none; overflow-wrap: anywhere; transition: transform .12s ease, box-shadow .12s ease;
}
.profile-link:hover { transform: translateY(-2px); box-shadow: var(--lm-shadow-hover, 0 7px 0 var(--ink)); }
.profile-link:active { transform: translateY(var(--lm-press, 4px)); box-shadow: var(--lm-shadow-active, 0 1px 0 var(--ink)); }
.profile-video { display: grid; gap: .6rem; justify-items: center; margin-top: 1.5rem; }
.video-cover { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 96px; padding: 1rem; background: var(--ink); color: var(--cream); border-radius: 24px; text-decoration: none; }
.video-cover:hover { background: var(--ink-raised); }
.video-play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tangerine); color: var(--ink); }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; border-radius: 24px; background: var(--ink); }
.video-note { font-size: .88rem; }
.video-fallback { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 700; font-size: .92rem; }
.profile-empty { margin-top: 2rem; padding: 1.4rem; border: 2px dashed color-mix(in srgb, currentColor 38%, transparent); border-radius: 24px; text-align: center; }
.profile-footer { margin-top: auto; padding: 3rem 0 max(1rem, env(safe-area-inset-bottom)); text-align: center; }
.profile-footer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.profile-footer-actions > a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: var(--pill); text-decoration: none; }
.profile-footer-actions > a:hover { background: var(--cream); }
.profile-footer-actions .profile-brand { font-size: 1rem; }
.profile-brand .brand-mark { width: 20px; height: 20px; }
.profile-footer-actions .profile-growth { padding-inline: .75rem; font-size: .82rem; font-weight: 700; }
/* White separator keeps the ink outline visible even on custom dark profiles or photos. */
.theme-surface :focus-visible { box-shadow: 0 0 0 3px var(--white); }

/* Legal links share the surrounding page's colours. */
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; font-size: .88rem; font-weight: 700; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
.home-footer { padding: 0 var(--gutter) 1rem; background: var(--tangerine); color: var(--ink); }
.account-panel .legal-links { color: var(--muted); }
.profile-footer .legal-links { margin-top: .5rem; }
.legal-shell { display: grid; gap: 1rem; width: min(680px, calc(100% - 2 * var(--gutter))); margin: 1.5rem auto 3rem; }
.legal-heading { background: var(--peach); color: var(--ink); }
.legal-copy { display: grid; gap: .75rem; }
.legal-copy h2 { margin-top: .65rem; font-size: 1.15rem; font-weight: 800; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy a { color: var(--tangerine-deep); font-weight: 700; }

/* Errors */
.error-body { background: var(--cream); color: var(--ink); }
.error-page { width: min(680px, calc(100% - 2 * var(--gutter))); margin: clamp(3rem, 10vw, 7rem) auto; }
.error-code { color: var(--tangerine-deep); font-weight: 800; font-size: 1.1rem; }
.error-page h1 { margin-top: .5rem; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; line-height: .98; letter-spacing: -.05em; }
.error-page p:not(.error-code) { margin-top: 1rem; font-size: 1.1rem; }
.error-page .button { margin-top: 2rem; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero-art { margin-top: 1rem; }
  .floater-a { left: 0; }
  .split-reverse .share-art { order: 1; }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-art { display: none; }
  .admin-shell { display: block; }
  .admin-sidebar {
    position: static; display: block; height: auto; padding: .45rem 0 0; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .admin-masthead { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .5rem; margin-inline: 1rem; }
  .admin-brand { align-self: start; min-height: 48px; margin: 0; font-size: 1.25rem; }
  .admin-identity-row { min-height: 48px; padding: .26rem .4rem; }
  .admin-identity-avatar { width: 34px; }
  .admin-mobile-account { display: grid; gap: .2rem; }
  .admin-bottom, .setup-card-sidebar { display: none; }
  .admin-nav {
    display: flex; gap: .2rem; margin: 0; padding: .42rem 1rem .5rem; overflow-x: auto;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .admin-nav .admin-nav-row { flex: none; gap: .4rem; width: auto; min-height: 44px; padding-inline: .6rem; font-size: .88rem; white-space: nowrap; }
  .admin-nav .admin-nav-row svg { width: 18px; height: 18px; }
  .admin-content { margin-inline: auto; padding: 1.55rem clamp(1rem, 4vw, 2rem) 3rem; }
  .setup-card-mobile { display: block; width: min(100%, 370px); margin-bottom: 1.45rem; }
}
@media (max-width: 780px) {
  .studio-shell { grid-template-columns: minmax(0, 1fr); }
  .studio-preview { position: static; margin-top: .25rem; }
}
@media (max-width: 680px) {
  .week-grid { grid-template-columns: minmax(0, 1fr); }
  .week-card { min-height: 228px; }
  .week-card-top { min-height: 0; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .nav-pill { padding-left: 1rem; gap: .4rem; }
  .nav-actions { gap: .25rem; }
  .nav-actions .button { min-height: 42px; padding-inline: .85rem; font-size: .9rem; }
  .nav-link { padding-inline: .4rem; font-size: .92rem; }
  .nav-settings { width: 44px; justify-content: center; padding-inline: 0; }
  .nav-settings-label { display: none; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 22px; height: 22px; }
  .claim .button { width: 100%; }
  .floater { display: none; }
  .phone-screen { min-height: 500px; }
  .managed-link { grid-template-columns: auto minmax(0, 1fr); padding-right: .8rem; }
  .link-tools { grid-column: 2; justify-content: flex-start; }
  .paste-row { flex-wrap: wrap; }
  .paste-row .paste-button { width: 100%; }
  .admin-nav {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: .15rem; padding-inline: .75rem;
  }
  .admin-nav .admin-nav-row {
    flex-direction: column; justify-content: center; gap: .2rem; width: 100%; min-height: 56px;
    padding: .32rem .1rem; font-size: clamp(.68rem, 2.9vw, .78rem); line-height: 1.18; white-space: normal; text-align: center;
  }
  .admin-content { padding-top: 1.35rem; }
  .admin-heading { margin-bottom: 1.2rem; padding-bottom: 1rem; }
  .admin-heading h1 { font-size: clamp(1.6rem, 7.2vw, 2rem); }
  .dashboard-section + .dashboard-section { margin-top: 1.45rem; }
  .dashboard-profile { padding: 1rem 1rem .85rem; }
  .dashboard-avatar { width: clamp(128px, 37vw, 148px); }
  .insight-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .insight-total:last-child { grid-column: 1 / -1; }
  .insight-table th:first-child { width: 50%; }
  .is-month .daily-labels { font-size: .71rem; }
  .public-body .profile-cover { margin-inline: -1rem; width: calc(100% + 2rem); border-radius: 0; }
  .public-body .profile:is([data-layout="banner"], [data-layout="hero"]) { padding-top: 0; }
  .public-body .profile:is([data-layout="banner"], [data-layout="hero"]) .profile-identity { margin-top: 0; }
  .public-body .profile:is([data-layout="banner"], [data-layout="hero"]) .profile-top { top: .75rem; right: 0; }
}
@media (max-width: 430px) {
  .editor-pairs, .social-fields { grid-template-columns: minmax(0, 1fr); }
  .social-position { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .social-position .field { width: 100%; }
}
@media (max-width: 360px) {
  .nav-actions > a.button-light, .nav-my-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .profile-link:is(:hover, :active) { transform: none; }
}