/* Toyaab Handle - global stylesheet.
   Design tokens live in :root so every page stays consistent. */

:root {
    --ink: #0d1117;
    --ink-soft: #4a5568;
    --surface: #ffffff;
    --surface-alt: #f5f7fb;
    --line: #e3e8f0;
    --brand: #0f6f5c;
    --brand-strong: #0b5346;
    --brand-soft: #e6f4f0;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(13, 17, 23, .07);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
}

a { color: var(--brand-strong); }

code {
    background: var(--brand-soft);
    padding: .1rem .35rem;
    border-radius: 6px;
    font-size: .95em;
}

.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------------------------------------------------------------- header - */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.brand-name { font-size: 1.05rem; letter-spacing: .2px; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { text-decoration: none; font-weight: 600; }

/* ------------------------------------------------------------------ main - */
.site-main { max-width: 68rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 5vw, 2rem); }

.hero { max-width: 44rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--brand); font-weight: 700; margin: 0 0 .6rem; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.15; margin: 0 0 1rem; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.claim-form {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem;
    margin-top: 2rem;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .6rem;
}
.claim-prefix { display: grid; place-items: center; padding: 0 .6rem; color: var(--ink-soft); font-size: .95rem; }
.claim-form input {
    flex: 1 1 12rem; min-width: 0;
    border: 1px solid var(--line); border-radius: 10px;
    padding: .7rem .8rem; font: inherit; background: #fff;
}
.claim-form input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.claim-hint { font-size: .875rem; color: var(--ink-soft); margin-top: .6rem; }
.claim-hint.error { color: #b42318; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px;
    padding: .7rem 1.1rem; font: inherit; font-weight: 600;
    background: #fff; color: var(--ink); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ----------------------------------------------------------------- cards - */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 3.5rem; }
.card { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------------------------------------------------- panels and profile - */
.panel { max-width: 26rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form { display: grid; gap: .35rem; margin: 1.4rem 0; }
.form label { font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.form input { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; font: inherit; }
.form button { margin-top: 1.2rem; }

.profile { text-align: center; max-width: 32rem; margin: 0 auto; }
.avatar {
    width: 88px; height: 88px; margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong);
    font-size: 2.2rem; font-weight: 700;
}
.profile h1 { margin: 0 0 .5rem; }
.handle-url { font-size: .9rem; color: var(--ink-soft); word-break: break-all; }

/* ---------------------------------------------------------------- footer - */
.site-footer { border-top: 1px solid var(--line); padding: 2rem clamp(1rem, 5vw, 4rem); font-size: .9rem; color: var(--ink-soft); }
.site-footer p { margin: .2rem 0; }

/* --------------------------------------------------------- auth (Phase 2) - */
.panel-narrow { max-width: 30rem; }

.alert {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .75rem .9rem;
    margin: 0 0 1rem;
    font-size: .93rem;
}
.alert-success { background: var(--brand-soft); border-color: #bfe3d9; color: var(--brand-strong); }
.alert-error { background: #fdf0ef; border-color: #f4c9c4; color: #b42318; }

.field-error { color: #b42318; font-size: .85rem; margin: .15rem 0 0; }
.hint { color: var(--ink-soft); font-size: .85rem; margin: .15rem 0 0; }

.input-prefix {
    display: flex; align-items: stretch;
    border: 1px solid var(--line); border-radius: 10px;
    background: #fff; overflow: hidden;
}
.input-prefix span {
    display: grid; place-items: center;
    padding: 0 .7rem;
    background: var(--surface-alt);
    border-right: 1px solid var(--line);
    color: var(--ink-soft); font-size: .95rem;
}
.input-prefix input { flex: 1 1 auto; min-width: 0; border: 0; padding: .7rem .8rem; font: inherit; }
.input-prefix input:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.checkbox {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 500; font-size: .92rem; margin-top: .9rem;
}
.checkbox input { width: auto; margin: 0; }

.detail-grid {
    display: grid; gap: .35rem 1rem;
    grid-template-columns: max-content 1fr;
    margin: 1.2rem 0;
    font-size: .95rem;
}
.detail-grid dt { color: var(--ink-soft); }
.detail-grid dd { margin: 0; word-break: break-word; }

.nav-form { display: inline; margin: 0; }
.nav-form button {
    border: 0; background: none; padding: 0;
    font: inherit; font-weight: 600;
    color: var(--brand-strong); cursor: pointer;
}

/* ------------------------------------------ handle availability (Phase 3) - */
.handle-status.is-checking { color: var(--ink-soft); }
.handle-status.is-available { color: var(--brand-strong); font-weight: 600; }
.handle-status.is-unavailable,
.handle-status.is-invalid { color: #b42318; }
.handle-status.error { color: #b42318; }

/* ------------------------------------------------ dashboard (Phase 3.2) - */
/* Mobile-first: single column by default, no images, no web fonts. */
.dash { max-width: 46rem; margin: 0 auto; display: grid; gap: 1rem; }

.dash-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .3rem; }
.dash-title { margin: 0; font-size: clamp(1.35rem, 4.5vw, 1.8rem); line-height: 1.25; }
.dash-sub { margin: .15rem 0 0; font-size: .92rem; }
.dash-label { margin: 0 0 .25rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }

.avatar-sm { width: 56px; height: 56px; margin: 0; font-size: 1.35rem; flex: 0 0 auto; }

.dash-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.dash-nav-link {
    text-decoration: none; font-weight: 600; font-size: .9rem;
    padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--ink-soft);
}
.dash-nav-link.is-active { background: var(--brand-soft); border-color: #bfe3d9; color: var(--brand-strong); }

.dash-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.15rem;
}
.dash-card h2 { font-size: 1.02rem; margin: 0 0 .7rem; }

.handle-card { background: var(--surface-alt); }
.handle-name { margin: 0 0 .8rem; font-size: clamp(1.4rem, 6vw, 1.9rem); font-weight: 700; word-break: break-all; }

.dash-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; align-items: center; }
.dash-actions .btn { flex: 1 1 auto; }

.copy-field { display: flex; flex-wrap: wrap; gap: .5rem; }
.copy-input {
    flex: 1 1 14rem; min-width: 0;
    border: 1px solid var(--line); border-radius: 10px;
    padding: .65rem .75rem; font: inherit; font-size: .92rem;
    background: #fff; color: var(--ink-soft);
}
.copy-input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.copy-btn { flex: 0 0 auto; }
.copy-status { margin: .45rem 0 0; font-size: .85rem; min-height: 1.2em; color: var(--ink-soft); }
.copy-status.is-copied { color: var(--brand-strong); font-weight: 600; }
.copy-status.is-failed { color: #b42318; }

.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.check-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.check-item { display: flex; gap: .55rem; align-items: baseline; font-size: .95rem; }
.check-mark { color: var(--ink-soft); }
.check-item.is-done { color: var(--ink-soft); }
.check-item.is-done .check-mark { color: var(--brand); }

@media (min-width: 40rem) {
    .dash { gap: 1.25rem; }
    .dash-card { padding: 1.5rem; }
    .dash-actions .btn { flex: 0 0 auto; }
}

/* --------------------------------------------------- profile editor (P4) -- */
.avatar-img { object-fit: cover; padding: 0; }
.progress {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    height: .6rem;
    overflow: hidden;
    margin: .4rem 0 .6rem;
}
.progress-bar { display: block; height: 100%; background: var(--brand); }

.cover-preview {
    display: grid;
    place-items: center;
    min-height: 8rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
    overflow: hidden;
    margin-bottom: 1rem;
}
.cover-preview img { width: 100%; height: 100%; max-height: 12rem; object-fit: cover; display: block; }

.upload-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.upload-form { display: grid; gap: .4rem; }
.upload-form label { font-weight: 600; font-size: .9rem; }
.inline-form { margin: 0; }

.profile-form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field > label { font-weight: 600; font-size: .9rem; }
.field input[type="text"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .7rem .8rem;
    font: inherit;
    width: 100%;
    box-sizing: border-box;
}
.field textarea { resize: vertical; }
.static-value { margin: 0; font-weight: 600; }

.check { display: flex; align-items: center; gap: .5rem; font-size: .92rem; margin: .35rem 0; }
.check input { width: auto; margin: 0; }

.btn-secondary { background: var(--surface-alt); border-color: var(--line); color: var(--ink); }
.btn-link { background: none; border: 0; color: var(--brand-strong); text-decoration: underline; cursor: pointer; padding: .4rem 0; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ------------------------------------------- public identity page (P5.1) - */
/* Mobile-first, system fonts only, no JavaScript required to render. */
.identity { max-width: 44rem; margin: 0 auto; }

.identity-cover {
    position: relative;
    height: clamp(8rem, 32vw, 13rem);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 60%, #083d33 100%);
}
.identity-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.identity-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0 1.25rem 1.25rem;
    margin: -3rem 0 1.25rem;
    position: relative;
}

.identity-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.identity-avatar {
    width: 104px;
    height: 104px;
    margin-top: -52px;
    border-radius: 28px;
    border: 4px solid var(--surface);
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 auto;
}
.identity-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.identity-actions { display: flex; gap: .5rem; padding-top: .75rem; flex-wrap: wrap; }

.identity-name {
    margin: .9rem 0 0;
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.identity-badge {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .8rem;
    flex: 0 0 auto;
}
.identity-handle { margin: .15rem 0 0; color: var(--ink-soft); font-weight: 600; }
.identity-pronouns { font-weight: 400; }
.identity-title { margin: .6rem 0 0; font-weight: 600; }
.identity-headline { margin: .25rem 0 0; color: var(--ink-soft); }
.identity-bio { margin: .9rem 0 0; }

.identity-meta {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    color: var(--ink-soft);
    font-size: .95rem;
}
.identity-meta a { word-break: break-all; }

.identity-social {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.social-chip {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--ink);
}
.social-chip:hover, .social-chip:focus-visible {
    background: var(--brand-soft);
    border-color: #bfe3d9;
    color: var(--brand-strong);
}

.identity-links { display: grid; gap: .7rem; margin-bottom: 1.25rem; }
.identity-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .95rem 1.15rem;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.identity-link:hover, .identity-link:focus-visible {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}
.identity-link-host { color: var(--ink-soft); font-weight: 400; font-size: .88rem; word-break: break-all; }

.identity-share { margin-bottom: 1.5rem; }
.identity-share .copy-input { width: 100%; }

.identity-footer { text-align: center; font-size: .9rem; padding-bottom: 2rem; }

.not-found-code {
    margin: 0;
    font-size: clamp(3rem, 15vw, 5rem);
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}
.not-found .dash-actions { justify-content: center; }
.not-found .dash-actions .btn { flex: 0 0 auto; }

@media (min-width: 48rem) {
    .identity-card { padding: 0 2rem 1.75rem; }
    .identity-avatar { width: 128px; height: 128px; margin-top: -64px; font-size: 2.4rem; }
}

/* ------------------------------------------- Phase 6.1: profile links ---- */
.hint { font-size: .82rem; margin: .2rem 0 0; }
.check { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: .9rem; }
.field select {
    width: 100%; padding: .6rem .7rem; border: 1px solid #d6d9e0;
    border-radius: 10px; font: inherit; background: #fff;
}
.btn-danger { border-color: #f0c4c0; color: #b42318; }
.btn-danger:hover { background: #fdecea; }
.btn-icon { padding: .4rem .6rem; line-height: 1; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.link-item {
    border: 1px solid #e6e8ee; border-radius: 12px; padding: .8rem;
    background: #fff; display: grid; gap: .6rem;
}
.link-item.is-hidden { background: #f7f8fa; }
.link-main { display: flex; gap: .6rem; align-items: flex-start; }
.link-glyph { font-size: 1.2rem; line-height: 1.3; }
.link-text { display: grid; gap: .15rem; min-width: 0; }
.link-title { font-size: .98rem; }
.link-url {
    font-size: .82rem; color: #5a6070; word-break: break-all;
}
.link-tag {
    justify-self: start; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .04em; background: #eceef3; border-radius: 999px;
    padding: .1rem .5rem; color: #5a6070;
}
.link-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.link-actions form { margin: 0; }
.link-form { margin: 0; }

@media (min-width: 640px) {
    .link-item { grid-template-columns: 1fr auto; align-items: center; }
    .link-item .link-form { grid-column: 1 / -1; }
}

/* Public profile link cards */
.identity-links { display: grid; gap: .6rem; margin-top: 1rem; }
.identity-link {
    display: flex; align-items: center; gap: .7rem;
    padding: .85rem 1rem; border-radius: 14px; text-decoration: none;
    border: 1px solid #e6e8ee; background: #fff; color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}
.identity-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 24, 40, .08); }
.identity-link-glyph { font-size: 1.15rem; }
.identity-link-label { font-weight: 600; flex: 1; }
.identity-link-host { font-size: .8rem; color: #6b7280; }

/* =========================================================================
   Phase 6.2 - profile customization presets
   Each preset is a fixed class written by the server from a whitelisted key.
   No user supplied colour, CSS or markup ever reaches this file.
   ========================================================================= */

.identity {
    --p-ink: var(--ink);
    --p-soft: var(--ink-soft);
    --p-card: #ffffff;
    --p-line: var(--line);
    --p-accent: var(--brand);
    --p-accent-ink: #ffffff;
    --p-page: transparent;
    --p-radius: 14px;
    color: var(--p-ink);
    background: var(--p-page);
    padding-bottom: 1.5rem;
}

/* ---------------------------------------------------------------- themes - */
.identity.theme-default { --p-accent: #0f6f5c; --p-accent-ink: #fff; }
.identity.theme-clean {
    --p-accent: #111827; --p-accent-ink: #fff;
    --p-line: #ececf1; --p-soft: #6b7280;
}
.identity.theme-professional {
    --p-accent: #1d3a8a; --p-accent-ink: #fff;
    --p-ink: #16233f; --p-soft: #55658a; --p-line: #dde3f2;
}
.identity.theme-creator {
    --p-accent: #d9482b; --p-accent-ink: #fff;
    --p-ink: #221615; --p-soft: #7a5b55; --p-line: #f3ded7;
}
.identity.theme-dark {
    --p-accent: #4fd1a5; --p-accent-ink: #06251d;
    --p-ink: #e8eef5; --p-soft: #9fb0c4;
    --p-card: #151a23; --p-line: #2a3340;
}
.identity.theme-dark a { color: var(--p-accent); }

/* ----------------------------------------------------------- backgrounds - */
.identity.bg-plain { --p-page: transparent; }
.identity.bg-soft { --p-page: color-mix(in srgb, var(--p-accent) 8%, #ffffff); }
.identity.theme-dark.bg-soft { --p-page: #0f141b; }
.identity.bg-gradient {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--p-accent) 18%, #ffffff) 0%,
        transparent 55%);
}
.identity.theme-dark.bg-gradient {
    background: linear-gradient(180deg, #1b2530 0%, #0f141b 60%);
}
.identity.bg-dots {
    background-color: var(--p-page);
    background-image: radial-gradient(color-mix(in srgb, var(--p-accent) 22%, transparent) 1px, transparent 1px);
    background-size: 14px 14px;
}

/* ----------------------------------------------------- text and elements - */
.identity.align-center .identity-card,
.identity.align-center .identity-meta,
.identity.align-center .identity-social { text-align: center; }
.identity.align-center .identity-meta,
.identity.align-center .identity-social { justify-content: center; }
.identity.align-center .identity-head { justify-content: center; }

.identity.avatar-circle .identity-avatar { border-radius: 50%; }
.identity.avatar-rounded .identity-avatar { border-radius: 18px; }
.identity.avatar-square .identity-avatar { border-radius: 2px; }

.identity .btn,
.identity .social-chip { border-radius: var(--p-radius); }
.identity.btns-rounded { --p-radius: 12px; }
.identity.btns-pill { --p-radius: 999px; }
.identity.btns-square { --p-radius: 3px; }
.identity.btns-outline { --p-radius: 12px; }
.identity.btns-outline .social-chip {
    background: transparent;
    border: 1px solid var(--p-accent);
    color: var(--p-accent);
}

.identity .identity-link {
    border-radius: var(--p-radius);
    background: var(--p-card);
    border: 1px solid var(--p-line);
    color: var(--p-ink);
}
.identity.cards-flat .identity-link { border-color: transparent; background: color-mix(in srgb, var(--p-accent) 7%, var(--p-card)); box-shadow: none; }
.identity.cards-outline .identity-link { background: transparent; border: 1px solid var(--p-line); box-shadow: none; }
.identity.cards-elevated .identity-link { box-shadow: 0 8px 22px rgba(16, 24, 40, .10); }
.identity.align-center .identity-link { justify-content: center; }

/* ---------------------------------------------- dashboard customize screen */
.theme-grid, .style-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .6rem;
    grid-template-columns: 1fr;
}
.style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.theme-option, .style-option {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .7rem .8rem;
    cursor: pointer;
}
.theme-option.is-active, .style-option.is-active,
.theme-option:focus-within, .style-option:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-soft);
}
.theme-option input, .style-option input { margin-right: .5rem; }
.theme-name { font-weight: 600; }
.theme-note { display: block; font-size: .85rem; }
.theme-swatch {
    display: inline-block;
    width: 100%;
    height: 26px;
    border-radius: 8px;
    margin-bottom: .45rem;
    background: linear-gradient(90deg, var(--p-accent, #0f6f5c) 0 33%, #ffffff 33% 66%, #e3e8f0 66% 100%);
    border: 1px solid var(--line);
}
.theme-option.theme-default .theme-swatch { --p-accent: #0f6f5c; }
.theme-option.theme-clean .theme-swatch { --p-accent: #111827; }
.theme-option.theme-professional .theme-swatch { --p-accent: #1d3a8a; }
.theme-option.theme-creator .theme-swatch { --p-accent: #d9482b; }
.theme-option.theme-dark .theme-swatch {
    background: linear-gradient(90deg, #4fd1a5 0 33%, #151a23 33% 66%, #2a3340 66% 100%);
}

.style-preview {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem;
}
.style-preview-inner { display: grid; gap: .45rem; justify-items: start; }
.style-preview.align-center .style-preview-inner { justify-items: center; text-align: center; }
.style-preview-avatar {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    font-weight: 700;
    background: var(--p-accent, var(--brand));
    color: var(--p-accent-ink, #fff);
}
.style-preview-name { font-weight: 700; margin: 0; }
.style-preview-handle { margin: 0; color: var(--p-soft, var(--ink-soft)); }
.style-preview-btn, .style-preview-card {
    display: inline-block;
    padding: .5rem .9rem;
    background: var(--p-accent, var(--brand));
    color: var(--p-accent-ink, #fff);
    border-radius: var(--p-radius, 12px);
    font-size: .9rem;
}
.style-preview-card {
    background: var(--p-card, #fff);
    color: var(--p-ink, var(--ink));
    border: 1px solid var(--p-line, var(--line));
    width: 100%;
}

@media (min-width: 640px) {
    .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
