:root {
    color-scheme: light;
    --ink: #f6f7fc;
    --panel: #ffffff;
    --panel-soft: #f1f3fa;
    --line: #dfe3ef;
    --muted: #6d7588;
    --text: #171a2b;
    --brand: #7357f6;
    --brand-strong: #5b38e6;
    --danger: #d9344d;
    --success: #159468;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(68, 54, 126, .14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ink);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 4% 12%, rgba(98, 118, 255, .14), transparent 31rem),
        radial-gradient(circle at 98% 22%, rgba(174, 87, 255, .12), transparent 30rem),
        radial-gradient(circle at 48% 100%, rgba(255, 173, 91, .09), transparent 34rem),
        var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.app-topbar {
    position: sticky;
    z-index: 20;
    top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1400px, calc(100% - 2rem));
    min-height: 72px;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 19px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 18px 55px rgba(65, 54, 110, .12);
    backdrop-filter: blur(22px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 11px;
    background: linear-gradient(145deg, #6f8cff, #8c35ee);
    box-shadow: 0 10px 26px rgba(108, 71, 230, .3);
}

.brand-mark svg {
    width: 20px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-width: 2.2;
}

.topbar-actions,
.button-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem;
}

.topbar-actions form {
    margin: 0;
}

.builder-mode-switch {
    display: inline-flex;
    gap: .25rem;
    margin-bottom: 1.15rem;
    padding: .28rem;
    border: 1px solid #dce0eb;
    border-radius: 13px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 8px 24px rgba(59, 48, 105, .07);
}

.builder-mode-switch a {
    min-width: 112px;
    padding: .56rem .82rem;
    color: var(--muted);
    border-radius: 9px;
    text-align: center;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 750;
}

.builder-mode-switch a.active {
    color: #fff;
    background: linear-gradient(135deg, #5d6df4, #922ee9);
    box-shadow: 0 8px 22px rgba(100, 65, 222, .22);
}

.app-topbar > .help {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .45rem .72rem;
    border: 1px solid #e0e3ed;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 2rem;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.builder-column {
    min-width: 0;
}

.workspace-eyebrow {
    display: inline-flex;
    margin-bottom: .75rem;
    color: var(--brand-strong);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .16em;
}

.workspace-title {
    max-width: 760px;
    margin: 0 0 .55rem;
    color: #20243a;
    font-size: clamp(2.35rem, 4.4vw, 4.35rem);
    line-height: .98;
    letter-spacing: -.065em;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .workspace-title {
        color: transparent;
        background: linear-gradient(115deg, #20243a 4%, #5967e8 52%, #9b36df 92%);
        background-clip: text;
        -webkit-background-clip: text;
    }
}

.workspace-intro {
    max-width: 680px;
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.panel {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(217, 222, 237, .9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 45px rgba(62, 54, 102, .08);
    backdrop-filter: blur(16px);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(116, 87, 246, .055), transparent 60%);
}

.panel-heading h2,
.panel-heading h3 {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    font-size: 1rem;
    letter-spacing: -.015em;
}

.panel-heading h2::before,
.panel-heading h3::before {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: linear-gradient(135deg, #5f70f5, #9a35e2);
    box-shadow: 0 0 0 4px rgba(115, 87, 246, .09);
    content: "";
}

.panel-body {
    padding: 1.25rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field,
.field-full {
    display: grid;
    gap: .45rem;
}

.field-full {
    grid-column: 1 / -1;
}

.field label,
.field-full label,
.field-label {
    color: #34394e;
    font-size: .875rem;
    font-weight: 650;
}

.help,
.field-hint,
.char-count {
    color: var(--muted);
    font-size: .78rem;
}

.char-count {
    justify-self: end;
    margin-top: -.3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: .7rem .8rem;
    color: var(--text);
    border: 1px solid #d4d9e6;
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, .94);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #7962ee;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(115, 87, 246, .13);
}

input[type="file"] {
    width: 100%;
    color: var(--muted);
    font-size: .85rem;
}

input[type="file"]::file-selector-button {
    margin-right: .75rem;
    padding: .6rem .8rem;
    color: #30354a;
    border: 1px solid #d3d8e6;
    border-radius: 9px;
    background: #f2f3fa;
    cursor: pointer;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: .8rem;
}

.color-field {
    display: grid;
    gap: .45rem;
    min-width: 0;
    color: var(--muted);
    font-size: .75rem;
}

.color-field input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 4px;
    border: 1px solid #d4d9e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding: .7rem .8rem;
    border: 1px solid #d4d9e6;
    border-radius: 13px;
    background: #f8f9fd;
}

.toggle-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.link-list {
    display: grid;
    gap: .75rem;
}

.link-editor-row {
    display: grid;
    grid-template-columns: 42px minmax(120px, .8fr) minmax(180px, 1.35fr) minmax(105px, .45fr) auto;
    gap: .6rem;
    align-items: end;
    padding: .85rem;
    border: 1px solid #dfe3ed;
    border-radius: 17px;
    background: #f8f9fd;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.drag-handle {
    display: grid;
    width: 38px;
    height: 42px;
    align-self: end;
    place-items: center;
    padding: 0;
    color: #7c8395;
    border: 1px solid #d9deea;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f0f2f8);
    box-shadow: 0 4px 12px rgba(65, 57, 100, .08);
    cursor: grab;
    font-size: 1.28rem;
    line-height: 1;
    touch-action: none;
}

.drag-handle:hover,
.drag-handle:focus-visible {
    color: var(--brand-strong);
    border-color: #9d8df2;
    outline: none;
    box-shadow: 0 0 0 4px rgba(115, 87, 246, .12), 0 8px 20px rgba(65, 57, 100, .12);
}

.drag-handle:active,
.is-reordering-links .drag-handle {
    cursor: grabbing;
}

.link-editor-row.is-dragging {
    min-height: 88px;
    border: 2px dashed #8f7fe4;
    background: rgba(115, 87, 246, .07);
    box-shadow: none;
}

.link-editor-row.is-dragging > * {
    opacity: .12;
}

.drag-ghost {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    opacity: .96;
    border-color: #8e7de9;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 75px rgba(49, 37, 101, .28);
    transform: rotate(.35deg) scale(1.015);
}

.is-reordering-links {
    cursor: grabbing;
    user-select: none;
}

.link-editor-row:focus-within {
    border-color: #b6acf1;
    box-shadow: 0 10px 28px rgba(88, 69, 170, .08);
    transform: translateY(-1px);
}

.link-editor-row .mini-field {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.link-editor-row .mini-field label {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 650;
}

.link-row-actions {
    display: flex;
    gap: .35rem;
    padding-bottom: .1rem;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: #4a5268;
    border: 1px solid #d6dbe7;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
    color: var(--brand-strong);
    border-color: #9d8df2;
}

.icon-button.danger:hover,
.icon-button.danger:focus-visible {
    color: #c32d46;
    border-color: rgba(244, 91, 105, .6);
    background: rgba(244, 91, 105, .14);
}

.button,
button.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem 1rem;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 13px;
    background: linear-gradient(135deg, #5d6df4, #922ee9);
    box-shadow: 0 11px 28px rgba(100, 65, 222, .24);
    cursor: pointer;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 720;
    transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}

.button:hover,
.button:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.button.secondary {
    color: #34394e;
    border-color: #d5d9e5;
    background: rgba(255, 255, 255, .84);
    box-shadow: none;
}

.button.ghost {
    color: #596176;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.button.danger {
    color: var(--danger);
    border-color: rgba(244, 91, 105, .28);
    background: rgba(244, 91, 105, .13);
    box-shadow: none;
}

.button.large {
    min-height: 50px;
    padding-inline: 1.35rem;
}

.button:disabled {
    cursor: not-allowed;
    filter: grayscale(.35);
    opacity: .6;
    transform: none;
}

.submit-bar {
    position: sticky;
    z-index: 12;
    bottom: 1rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(211, 216, 231, .95);
    border-radius: 19px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 55px rgba(61, 51, 105, .15);
    backdrop-filter: blur(18px);
}

.submit-key {
    flex: 1;
}

.preview-column {
    position: relative;
}

.preview-stage {
    position: sticky;
    top: 92px;
    display: grid;
    min-height: calc(100vh - 118px);
    place-items: center;
    padding: 2rem 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(217, 221, 237, .9);
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 20%, rgba(88, 111, 255, .2), transparent 12rem),
        radial-gradient(circle at 95% 72%, rgba(160, 63, 235, .18), transparent 13rem),
        linear-gradient(rgba(104, 91, 160, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 91, 160, .035) 1px, transparent 1px),
        rgba(255, 255, 255, .76);
    background-size: auto, auto, 30px 30px, 30px 30px, auto;
    box-shadow: 0 28px 75px rgba(69, 55, 125, .11);
}

.preview-badge {
    position: absolute;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .55rem .72rem;
    color: #41475c;
    border: 1px solid rgba(222, 225, 237, .9);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 35px rgba(58, 49, 98, .13);
    backdrop-filter: blur(16px);
    font-size: .72rem;
    font-weight: 750;
}

.preview-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28b47d;
    box-shadow: 0 0 0 4px rgba(40, 180, 125, .13);
}

.badge-live {
    top: 7%;
    left: 5%;
}

.badge-domain {
    top: 20%;
    right: 3%;
}

.badge-custom {
    right: 2%;
    bottom: 12%;
}

.phone {
    width: min(100%, 365px);
    padding: 9px;
    border: 1px solid #30323b;
    border-radius: 38px;
    background: #050609;
    box-shadow: 0 34px 85px rgba(41, 31, 80, .32), 0 0 0 1px rgba(255, 255, 255, .18) inset;
}

.phone-screen {
    height: min(710px, calc(100vh - 165px));
    min-height: 540px;
    overflow: auto;
    border-radius: 30px;
    scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
    display: none;
}

.phone-notch {
    position: absolute;
    z-index: 4;
    top: 20px;
    left: 50%;
    width: 96px;
    height: 25px;
    border-radius: 20px;
    background: #050609;
    transform: translateX(-50%);
}

.phone-wrap {
    position: relative;
    width: 100%;
}

.home-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.home-main {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 3.5rem 3rem 2rem;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    gap: clamp(2rem, 6vw, 7rem);
    min-height: calc(100vh - 170px);
    align-items: center;
}

.home-copy {
    position: relative;
    z-index: 2;
}

.home-eyebrow {
    display: inline-flex;
    margin-bottom: 1.25rem;
    color: var(--brand-strong);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .18em;
}

.home-title {
    max-width: 860px;
    margin: 0;
    color: #20243a;
    font-size: clamp(4.2rem, 7.2vw, 7.8rem);
    line-height: .87;
    letter-spacing: -.075em;
}

.home-title span {
    display: block;
    margin-top: .12em;
    color: transparent;
    background: linear-gradient(110deg, #5969ef 8%, #8d3ee8 58%, #ee8a37 105%);
    background-clip: text;
    -webkit-background-clip: text;
}

.home-intro {
    max-width: 700px;
    margin: 2rem 0 1.7rem;
    color: #697286;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
}

.slug-starter {
    display: grid;
    grid-template-columns: auto minmax(110px, 1fr) auto;
    gap: .35rem;
    max-width: 760px;
    align-items: center;
    padding: .55rem;
    border: 1px solid rgba(220, 224, 237, .95);
    border-radius: 19px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 55px rgba(67, 53, 122, .14);
    backdrop-filter: blur(18px);
}

.slug-starter > span {
    padding-left: .65rem;
    color: #3e455b;
    font-size: .96rem;
    font-weight: 780;
    white-space: nowrap;
}

.slug-starter input[type="text"] {
    min-width: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    font-size: .98rem;
}

.slug-starter .button {
    white-space: nowrap;
}

.home-note {
    margin: .85rem 0 0 .4rem;
    color: #8a91a1;
    font-size: .8rem;
}

.home-showcase {
    position: relative;
    display: grid;
    min-height: 720px;
    place-items: center;
}

.home-showcase::before {
    position: absolute;
    width: min(650px, 95%);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(83, 110, 255, .3), transparent 42%),
        radial-gradient(circle at 68% 70%, rgba(161, 58, 231, .26), transparent 45%),
        rgba(255, 255, 255, .35);
    filter: blur(4px);
    content: "";
}

.home-phone {
    position: relative;
    z-index: 3;
    width: min(100%, 370px);
    transform: rotate(1.5deg);
    transition: transform .35s ease;
}

.home-phone:hover {
    transform: rotate(0deg) translateY(-5px);
}

.home-phone .phone-screen {
    height: 640px;
    min-height: 0;
}

.home-phone .page-banner {
    height: 158px;
}

.home-phone .page-content {
    padding-inline: 1rem;
}

.home-phone .page-profile {
    width: 104px;
    height: 104px;
    margin-top: -46px;
}

.home-social-row {
    margin-top: .85rem;
}

.home-badge-live {
    top: 17%;
    left: 0;
}

.home-badge-domain {
    top: 28%;
    right: -2%;
}

.home-badge-style {
    right: 0;
    bottom: 18%;
}

.home-footer {
    display: flex;
    width: min(1400px, calc(100% - 2rem));
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    padding: 1.4rem 0 2rem;
    color: #858c9e;
    font-size: .78rem;
}

.home-footer span:first-child {
    color: #41475b;
    font-weight: 800;
}

.home-footer nav {
    display: flex;
    gap: .45rem;
}

.page-canvas {
    --page-bg: #0b0d12;
    --page-text: #f7f7fa;
    --page-muted: #c2c7d0;
    --page-accent: #8b5cf6;
    --button-bg: #fff;
    --button-text: #111318;
    --button-border: #465064;
    --icon-color: #fff;
    --icon-tile: #fff;
    --icon-size: 28px;
    --link-meta: #9ca3af;
    --banner-start: #8b5cf6;
    --banner-end: #11141a;
    --ring: #8b5cf6;
    --category-bg: #fff;
    --category-text: #111318;
    --portrait-gradient: #000;
    --portrait-opacity: .65;
    position: relative;
    min-height: 100%;
    overflow: hidden;
    color: var(--page-text);
    background: var(--page-bg);
    font-family: var(--page-font, Inter, ui-sans-serif, system-ui, sans-serif);
}

.page-banner {
    position: relative;
    z-index: 0;
    height: 132px;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 25%, color-mix(in srgb, var(--banner-start) 78%, transparent), transparent 48%),
        linear-gradient(135deg, var(--banner-start), var(--banner-end) 74%);
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-portrait {
    position: relative;
    display: none;
    aspect-ratio: 3 / 4;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--page-accent) 32%, var(--page-bg));
    box-shadow: none;
}

.page-portrait::after {
    position: absolute;
    inset: 28% 0 0;
    background: linear-gradient(to top, var(--portrait-gradient), transparent);
    opacity: var(--portrait-opacity);
    pointer-events: none;
    content: "";
}

.page-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-portrait > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--page-text);
    font-size: 4rem;
    font-weight: 850;
}

.media-layout-portrait .page-banner,
.media-layout-portrait .page-profile {
    display: none;
}

.media-layout-portrait .page-portrait {
    display: block;
}

.media-layout-portrait .page-content {
    padding-top: .35rem;
}

.page-content {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 0 1.15rem 2rem;
    text-align: center;
}

.page-profile {
    position: relative;
    z-index: 2;
    display: grid;
    width: 112px;
    height: 112px;
    margin: -50px auto 1rem;
    place-items: center;
    overflow: hidden;
    color: var(--page-text);
    border: 3px solid var(--page-bg);
    border-radius: 50%;
    background: color-mix(in srgb, var(--page-accent) 35%, #242936);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .26);
    font-size: 1.65rem;
    font-weight: 800;
}

.page-profile.has-ring {
    border-color: var(--ring);
    box-shadow: 0 0 0 3px var(--page-bg), 0 12px 34px rgba(0, 0, 0, .36);
}

.page-profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-name {
    flex: 0 1 auto;
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.page-name-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .28rem .4rem;
}

.verified-badge {
    display: inline-grid;
    flex: 0 0 auto;
    width: 1.28rem;
    height: 1.28rem;
    place-items: center;
    color: #251507;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #ffd068, #f29a36);
    clip-path: polygon(50% 0%, 58.88% 5.37%, 69.13% 3.81%, 75.28% 12.17%, 85.36% 14.64%, 87.83% 24.72%, 96.19% 30.87%, 94.63% 41.12%, 100% 50%, 94.63% 58.88%, 96.19% 69.13%, 87.83% 75.28%, 85.36% 85.36%, 75.28% 87.83%, 69.13% 96.19%, 58.88% 94.63%, 50% 100%, 41.12% 94.63%, 30.87% 96.19%, 24.72% 87.83%, 14.64% 85.36%, 12.17% 75.28%, 3.81% 69.13%, 5.37% 58.88%, 0% 50%, 5.37% 41.12%, 3.81% 30.87%, 12.17% 24.72%, 14.64% 14.64%, 24.72% 12.17%, 30.87% 3.81%, 41.12% 5.37%);
    filter: drop-shadow(0 4px 7px rgba(167, 91, 21, .3));
    font-family: Arial, Helvetica, sans-serif;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.verified-badge.is-hidden,
.profile-category.is-hidden {
    display: none;
}

.profile-category {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    padding: .13rem .34rem;
    color: var(--category-text);
    border: 1px solid color-mix(in srgb, var(--category-text) 18%, transparent);
    border-radius: 6px;
    background: var(--category-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    font-size: .52rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.phone .page-name-line {
    display: grid;
    grid-template-columns: auto max-content;
    gap: .3rem .34rem;
}

.phone .page-name-line .page-name {
    grid-column: 1;
    grid-row: 1;
}

.phone .page-name-line .verified-badge {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.phone .page-name-line .profile-category {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
}

.page-bio {
    max-width: 34rem;
    margin: .65rem auto 1.25rem;
    color: var(--page-muted);
    white-space: pre-line;
    font-size: .92rem;
}

.page-links {
    display: grid;
    gap: .72rem;
    width: 100%;
}

.page-links.direction-column {
    grid-template-columns: minmax(0, 1fr);
}

.page-links.direction-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-links.direction-row.layout-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-link {
    position: relative;
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: .75rem;
    padding: .78rem .9rem;
    color: var(--button-text);
    border: 1px solid var(--button-border);
    border-radius: 14px;
    background: var(--button-bg);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
    text-decoration: none;
    font-weight: 700;
    transition: transform .18s ease, filter .18s ease;
}

.page-link:hover,
.page-link:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.page-link.is-sensitive {
    border-color: color-mix(in srgb, #ef9b38 58%, var(--button-border));
}

.sensitive-badge {
    position: absolute;
    z-index: 2;
    top: -.42rem;
    right: .5rem;
    display: inline-flex;
    min-width: 31px;
    min-height: 21px;
    align-items: center;
    justify-content: center;
    padding: .12rem .38rem;
    color: #251507;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd068, #f29a36);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.sensitive-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #905820;
    font-weight: 750;
}

.sensitive-toggle input {
    accent-color: #d77b24;
}

.button-style-outline .page-link:not(.is-icon) {
    color: var(--button-text);
    border-color: var(--button-border);
    background: transparent;
    box-shadow: none;
}

.button-style-glass .page-link:not(.is-icon) {
    color: var(--button-text);
    border-color: var(--button-border);
    background: color-mix(in srgb, var(--button-bg) 22%, transparent);
    box-shadow: 0 9px 25px rgba(0, 0, 0, .13);
    backdrop-filter: blur(14px);
}

.brand-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: var(--icon-color);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.link-label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.link-domain {
    display: block;
    margin-top: .1rem;
    overflow: hidden;
    color: var(--link-meta);
    font-size: .7rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-arrow {
    color: var(--link-meta);
    font-size: 1rem;
}

.page-link.is-pill {
    min-height: 52px;
    border-radius: 999px;
}

.page-link.is-pill .link-domain {
    display: none;
}

.page-link.is-icon {
    display: grid;
    min-height: 0;
    justify-items: center;
    gap: .45rem;
    padding: .7rem .25rem;
    color: var(--page-text);
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: .7rem;
}

.page-link.is-icon .brand-icon {
    width: var(--icon-size);
    height: var(--icon-size);
}

.page-link.is-icon .link-label {
    max-width: 100%;
    text-align: center;
}

.page-link.is-icon .link-domain,
.page-link.is-icon .link-arrow {
    display: none;
}

.page-link.is-icon.is-label-hidden {
    gap: 0;
}

.page-link.is-icon.is-label-hidden .link-label {
    display: none;
}

.page-link.is-card {
    min-height: 86px;
    padding: 1rem;
    border-left: 4px solid var(--page-accent);
    border-radius: 13px;
    box-shadow: 0 13px 30px rgba(0, 0, 0, .18);
}

.page-link.is-card .brand-icon {
    width: 32px;
    height: 32px;
}

.page-link.is-card .link-label {
    font-size: 1rem;
}

.page-link.is-card .link-domain {
    margin-top: .25rem;
    font-size: .73rem;
}

.direction-row .page-link.is-pill {
    padding-inline: .75rem;
}

.direction-row .page-link.is-pill .link-arrow {
    display: none;
}

.layout-icons {
    gap: .85rem .45rem;
}

.layout-icons .page-link {
    display: grid;
    min-height: 0;
    justify-items: center;
    gap: .45rem;
    padding: .7rem .15rem;
    color: var(--page-text);
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: .7rem;
}

.layout-icons .brand-icon {
    width: var(--icon-size);
    height: var(--icon-size);
}

.layout-icons .link-label {
    width: 100%;
    text-align: center;
}

.layout-icons .link-domain,
.layout-icons .link-arrow {
    display: none;
}

.icon-marquee {
    width: calc(100% + 1.2rem);
    margin: .15rem -.6rem 1rem;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.icon-marquee[hidden] {
    display: none;
}

.icon-marquee-track {
    display: flex;
    width: max-content;
    animation: icon-marquee 20s linear infinite;
    will-change: transform;
}

.icon-marquee:hover .icon-marquee-track,
.icon-marquee:focus-within .icon-marquee-track {
    animation-play-state: paused;
}

.icon-marquee-set {
    display: flex;
    flex: 0 0 auto;
    align-items: start;
    gap: .65rem;
    padding-right: .65rem;
}

.icon-marquee .page-link.is-carousel-link {
    width: max(48px, calc(var(--icon-size) + 22px));
    flex: 0 0 max(48px, calc(var(--icon-size) + 22px));
    padding: .48rem .2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.icon-marquee .page-link.is-carousel-link .brand-icon {
    width: var(--icon-size);
    height: var(--icon-size);
}

.has-icon-tiles .icon-marquee .page-link.is-carousel-link,
.has-icon-tiles .page-links .page-link.is-icon {
    border: 1px solid color-mix(in srgb, var(--page-text) 12%, transparent);
    border-radius: 12px;
    background: var(--icon-tile);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .11);
}

.icon-marquee .page-link.is-carousel-link .link-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes icon-marquee {
    to { transform: translateX(-50%); }
}

.verify-profile-link {
    display: inline-flex;
    margin-top: 1.25rem;
    color: var(--page-muted);
    opacity: .78;
    text-underline-offset: .2em;
    font-size: .72rem;
    font-weight: 700;
}

.verify-profile-link:hover,
.verify-profile-link:focus-visible {
    color: var(--page-text);
    opacity: 1;
}

.public-legal-links {
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-top: .55rem;
    color: var(--page-muted);
    opacity: .58;
    font-size: .67rem;
}

.legal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    color: var(--muted);
    font-size: .74rem;
}

.legal-footer a,
.home-footer a,
.public-legal-links a {
    text-underline-offset: .2em;
}

.page-credit {
    margin: 1.6rem 0 0;
    color: var(--page-muted);
    opacity: .62;
    font-size: .7rem;
}

.public-page-shell {
    min-height: 100vh;
    background: var(--page-bg);
}

.public-page-shell .page-canvas {
    min-height: 100vh;
}

.public-page-shell .page-banner {
    height: clamp(150px, 25vw, 240px);
}

.public-page-shell .page-content {
    padding-inline: 1.25rem;
    padding-bottom: 3rem;
}

.public-page-shell .page-profile {
    width: 142px;
    height: 142px;
    margin-top: -64px;
}

.public-page-shell .page-name {
    font-size: clamp(1.65rem, 6vw, 2.15rem);
}

.public-page-shell .page-bio {
    font-size: 1rem;
}

.sensitive-dialog {
    width: min(92vw, 470px);
    padding: 1.4rem;
    color: #1d2132;
    border: 1px solid rgba(226, 163, 72, .55);
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 35px 110px rgba(18, 13, 8, .48);
}

.sensitive-dialog::backdrop {
    background: rgba(10, 8, 7, .72);
    backdrop-filter: blur(10px);
}

.sensitive-dialog-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #241407;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffd467, #ef9231);
    box-shadow: 0 14px 30px rgba(205, 119, 31, .24);
    font-size: 1.1rem;
    font-weight: 900;
}

.sensitive-dialog h2 {
    margin: 1rem 0 .35rem;
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

.sensitive-dialog p {
    margin: .4rem 0;
    color: #5f6472;
}

.sensitive-dialog .sensitive-dialog-note {
    margin-bottom: 1.15rem;
    color: #8d5924;
    font-size: .84rem;
    font-weight: 650;
}

.alert {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(101, 109, 132, .18);
    border-radius: 13px;
    background: rgba(255, 255, 255, .68);
}

.alert.error {
    border-color: rgba(244, 91, 105, .35);
    background: rgba(244, 91, 105, .1);
}

.alert.success {
    border-color: rgba(66, 211, 146, .3);
    background: rgba(66, 211, 146, .1);
}

.alert.warning {
    border-color: rgba(231, 157, 50, .35);
    background: rgba(255, 185, 66, .13);
}

.alert ul {
    margin: 0;
    padding-left: 1.15rem;
}

.success-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(66, 211, 146, .35);
    border-radius: 15px;
    background: rgba(66, 211, 146, .09);
}

.success-card strong,
.success-card span {
    display: block;
}

.success-card span {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .84rem;
    word-break: break-all;
}

.success-card small {
    display: block;
    margin-top: .45rem;
    color: #28745b;
    font-size: .78rem;
}

.auth-shell,
.install-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card,
.install-card {
    width: min(100%, 480px);
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}

.access-card {
    width: min(100%, 580px);
    padding: 1.65rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.access-brand {
    margin-bottom: 1.5rem;
}

.access-card .builder-mode-switch {
    display: flex;
    width: 100%;
}

.access-card .builder-mode-switch a {
    flex: 1;
}

.access-card h1 {
    margin: .55rem 0 .35rem;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.access-card > p {
    margin: 0 0 1.35rem;
    color: var(--muted);
}

.access-note {
    display: grid;
    gap: .15rem;
    margin-top: 1.15rem;
    padding: .9rem 1rem;
    border: 1px solid #dfe3ed;
    border-radius: 13px;
    background: #f7f8fc;
}

.access-note span {
    color: var(--muted);
    font-size: .82rem;
}

.install-card {
    width: min(100%, 760px);
}

.auth-card h1,
.install-card h1 {
    margin: .7rem 0 .3rem;
    letter-spacing: -.04em;
}

.auth-card > p,
.install-card > p {
    margin: 0 0 1.35rem;
    color: var(--muted);
}

.stack {
    display: grid;
    gap: 1rem;
}

.admin-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
}

.settings-actions {
    margin-top: .25rem;
}

.social-preview-current {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: .4rem;
}

.social-preview-current img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border: 1px solid #d4d9e6;
    border-radius: 12px;
}

.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-heading h1 {
    margin: 0;
    letter-spacing: -.04em;
}

.admin-heading p {
    margin: .3rem 0 0;
    color: var(--muted);
}

.key-reveal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.15rem;
    border: 1px solid rgba(74, 190, 139, .38);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(68, 211, 146, .12), rgba(255, 255, 255, .8));
    box-shadow: 0 18px 45px rgba(46, 119, 89, .09);
}

.key-reveal h2 {
    margin: .25rem 0;
}

.key-reveal p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}

.key-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: center;
}

.key-copy-row code {
    display: block;
    min-width: 0;
    padding: .8rem;
    overflow: hidden;
    border: 1px solid #cad9d2;
    border-radius: 10px;
    background: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-key-panel {
    margin-bottom: 1rem;
}

.panel-heading > div p {
    margin: .18rem 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.issue-key-form {
    display: grid;
    grid-template-columns: minmax(160px, .7fr) minmax(220px, 1fr) auto;
    gap: .8rem;
    align-items: end;
}

.access-key-list {
    display: grid;
}

.access-key-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.access-key-item:last-child {
    border-bottom: 0;
}

.access-key-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
}

.access-key-title h3 {
    margin: 0;
    font-size: 1rem;
}

.access-key-title a {
    color: var(--muted);
    font-size: .82rem;
}

.key-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.4rem;
    margin: .75rem 0 .35rem;
}

.key-stats div {
    display: grid;
    gap: .05rem;
}

.key-stats dt {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.key-stats dd {
    margin: 0;
    font-size: .9rem;
    font-weight: 750;
}

.key-created {
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
}

.access-key-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.access-key-actions form {
    margin: 0;
}

.page-table {
    width: 100%;
    border-collapse: collapse;
}

.page-table th,
.page-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.page-table th {
    color: var(--muted);
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.page-table tr:last-child td {
    border-bottom: 0;
}

.table-meta {
    color: var(--muted);
    font-size: .72rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(66, 211, 146, .1);
    color: #117653;
    font-size: .75rem;
    font-weight: 700;
}

.status-pill.offline {
    background: rgba(154, 163, 178, .12);
    color: #697386;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: .45rem;
}

.table-actions form {
    margin: 0;
}

.empty-state {
    padding: 3.5rem 1rem;
    color: var(--muted);
    text-align: center;
}

.code-url {
    padding: .45rem .65rem;
    border: 1px solid #d4d9e6;
    border-radius: 8px;
    background: #f4f5fa;
    color: #34394e;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    word-break: break-all;
}

.verification-card {
    width: min(1240px, 100%);
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.verification-privacy-promise {
    display: grid;
    gap: .18rem;
    margin-top: 1rem;
    padding: .75rem 0 .1rem .85rem;
    color: #245e4a;
    border-left: 3px solid #39a77e;
    font-size: .78rem;
}

.legal-shell {
    min-height: 100vh;
}

.legal-topbar {
    position: relative;
    top: 0;
}

.legal-document {
    width: min(840px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0 5rem;
}

.legal-document h1 {
    margin: 0 0 .75rem;
    color: #20243a;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: .92;
    letter-spacing: -.065em;
}

.legal-lead {
    max-width: 700px;
    margin: 0 0 2.4rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.legal-document section {
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
}

.legal-document h2 {
    margin: 0 0 .45rem;
    color: #282d42;
    font-size: 1.12rem;
}

.legal-document p {
    margin: 0;
    color: #626a7e;
    line-height: 1.72;
}

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

.legal-document .legal-highlight {
    margin: .7rem 0;
    padding: 1.1rem;
    border: 1px solid rgba(55, 174, 128, .3);
    border-radius: 16px;
    background: rgba(66, 211, 146, .09);
}

.verification-layout {
    display: grid;
    grid-template-areas: "form info";
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.verification-info-column {
    grid-area: info;
    position: sticky;
    top: 1rem;
    padding: .5rem .25rem;
}

.verification-form-column {
    grid-area: form;
    min-width: 0;
}

.verification-info-column h1,
.verification-success h1 {
    margin: .45rem 0 .45rem;
    font-size: clamp(2.45rem, 5vw, 4.2rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.verification-info-column > p,
.verification-success p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.verification-steps {
    display: grid;
    gap: 0;
    margin: 1rem 0;
}

.verification-steps div {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .62rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
    font-weight: 750;
}

.verification-steps strong {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    border-radius: 7px;
    background: linear-gradient(135deg, #5d6df4, #922ee9);
}

.verification-form {
    margin: 0;
}

.verification-form-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.verification-form-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.verification-form-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.verification-form-heading span {
    color: var(--muted);
    font-size: .7rem;
}

.verification-form-divider {
    margin-top: .35rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
    color: var(--brand-strong);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.verification-key-field {
    padding-bottom: .35rem;
}

.verification-note-requirements {
    display: grid;
    gap: .35rem;
    margin: .85rem 0;
    padding: .75rem .85rem;
    color: #4f566a;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(247, 248, 252, .72);
    font-size: .76rem;
}

.verification-note-requirements strong {
    color: #2e3448;
}

.verification-form-card input[type="text"],
.verification-form-card input[type="email"],
.verification-form-card input[type="password"] {
    min-height: 40px;
    padding: .52rem .65rem;
    border-radius: 10px;
}

.verification-form-card input[type="file"]::file-selector-button {
    padding: .45rem .6rem;
}

.verification-consent {
    padding: .7rem;
    border-radius: 10px;
    background: #f5f6fb;
}

.verification-consent label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .76rem;
}

.verification-consent input {
    margin-top: .18rem;
    flex: 0 0 auto;
}

.verification-payment-note {
    margin-top: .8rem;
    padding: .65rem .75rem;
    color: #7c5420;
    border-left: 3px solid #d8993d;
    background: rgba(255, 190, 76, .09);
    font-size: .78rem;
}

.verification-success {
    max-width: 620px;
    padding: 2rem;
}

.privacy-notice {
    display: grid;
    gap: .18rem;
    padding: 1rem;
    color: #624a1f;
    border: 1px solid rgba(205, 150, 53, .35);
    border-radius: 14px;
    background: rgba(255, 196, 88, .13);
    font-size: .82rem;
}

.verification-list {
    display: grid;
    gap: 1rem;
}

.verification-review-card {
    margin: 0;
}

.verification-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 1.2rem;
}

.verification-details {
    display: grid;
    gap: .65rem;
    margin: 0;
}

.verification-details div {
    min-width: 0;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--line);
}

.verification-details dt {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verification-details dd {
    margin: .18rem 0 0;
    overflow-wrap: anywhere;
}

.verification-review-actions {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.status-pill.status-pending {
    color: #8a5911;
    background: rgba(255, 185, 66, .16);
}

.status-pill.status-rejected {
    color: #a6283d;
    background: rgba(244, 91, 105, .14);
}

.status-pill.status-hold {
    color: #8b4020;
    background: rgba(226, 111, 48, .16);
}

.status-pill.status-needs_changes {
    color: #7e581b;
    background: rgba(232, 171, 54, .15);
}

.admin-verified {
    width: 1.1rem;
    height: 1.1rem;
    border-width: 1px;
    font-size: .6rem;
    vertical-align: middle;
}

.compact-colors {
    grid-template-columns: repeat(2, minmax(80px, 1fr));
}

input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
}

@media (min-width: 900px) {
    .public-page-shell {
        display: grid;
        min-height: 100vh;
        place-items: center;
        padding: clamp(1.5rem, 4vw, 3.5rem);
        background:
            radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--page-bg) 74%, #7963ff), transparent 34rem),
            radial-gradient(circle at 92% 88%, color-mix(in srgb, var(--page-bg) 78%, #b34ee8), transparent 32rem),
            color-mix(in srgb, var(--page-bg) 88%, #151722);
    }

    .public-page-shell .page-canvas {
        width: min(1080px, 100%);
        min-height: min(720px, calc(100vh - 3rem));
        border: 1px solid color-mix(in srgb, var(--page-text) 10%, transparent);
        border-radius: 28px;
        box-shadow: 0 40px 110px rgba(0, 0, 0, .34);
    }

    .public-page-shell .media-layout-banner-avatar {
        display: grid;
        grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
        align-items: stretch;
    }

    .public-page-shell .media-layout-banner-avatar .page-banner {
        height: 100%;
        min-height: 680px;
    }

    .public-page-shell .media-layout-banner-avatar .page-content {
        width: 100%;
        margin: 0;
        align-self: center;
        padding: 3rem clamp(2rem, 4vw, 4rem);
    }

    .public-page-shell .media-layout-banner-avatar .page-profile {
        width: 132px;
        height: 132px;
        margin: 0 auto 1.15rem;
    }

    .public-page-shell .media-layout-portrait {
        display: grid;
        grid-template-columns: minmax(330px, .88fr) minmax(420px, 1.12fr);
        align-items: stretch;
    }

    .public-page-shell .media-layout-portrait .page-portrait {
        width: 100%;
        height: 100%;
        min-height: 680px;
        aspect-ratio: auto;
        margin: 0;
    }

    .public-page-shell .media-layout-portrait .page-content {
        width: 100%;
        margin: 0;
        align-self: center;
        padding: 3rem clamp(2rem, 4vw, 4rem);
    }
}

/* Dense editor treatment: more controls per screen without shrinking tap targets too far. */
.builder-shell .app-topbar {
    min-height: 60px;
}

.builder-shell .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: 1.25rem;
    padding: .9rem 1.5rem 2rem;
}

.workspace-compact-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.workspace-heading-copy {
    min-width: 0;
}

.workspace-compact-header .builder-mode-switch {
    flex: 0 0 auto;
    margin: 0;
}

.builder-shell .workspace-eyebrow {
    margin-bottom: .18rem;
    font-size: .62rem;
}

.builder-shell .workspace-title {
    margin: 0;
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
    line-height: 1;
}

.builder-shell .workspace-intro {
    margin-bottom: .65rem;
    font-size: .82rem;
}

.builder-shell .panel {
    margin-bottom: .7rem;
    border-radius: 17px;
}

.builder-shell .panel-heading {
    padding: .72rem .9rem;
}

.builder-shell .panel-body {
    padding: .85rem;
}

.builder-shell .field-grid {
    gap: .7rem .8rem;
}

.builder-shell .field,
.builder-shell .field-full {
    gap: .28rem;
}

.builder-shell .field label,
.builder-shell .field-full label,
.builder-shell .field-label {
    font-size: .79rem;
}

.builder-shell input[type="text"],
.builder-shell input[type="email"],
.builder-shell input[type="password"],
.builder-shell input[type="url"],
.builder-shell input[type="number"],
.builder-shell textarea,
.builder-shell select {
    min-height: 38px;
    padding: .52rem .65rem;
    border-radius: 10px;
    font-size: .88rem;
}

.builder-shell textarea {
    min-height: 88px;
    overflow-y: hidden;
    line-height: 1.45;
}

.builder-shell input[type="file"] {
    font-size: .76rem;
}

.builder-shell input[type="file"]::file-selector-button {
    margin-right: .5rem;
    padding: .42rem .58rem;
}

.builder-shell .color-grid {
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: .48rem;
}

.builder-shell .color-field {
    gap: .28rem;
    font-size: .68rem;
}

.builder-shell .color-field input[type="color"] {
    height: 34px;
    padding: 3px;
}

.builder-shell .toggle-row {
    min-height: 38px;
    padding: .52rem .65rem;
    border-radius: 10px;
}

.builder-shell .link-list {
    gap: .5rem;
}

.builder-shell .link-editor-row {
    gap: .45rem;
    padding: .62rem;
    border-radius: 13px;
}

.builder-shell .drag-handle,
.builder-shell .icon-button {
    height: 36px;
}

.builder-shell .drag-handle {
    width: 36px;
}

.builder-shell .preview-stage {
    top: 78px;
    min-height: calc(100vh - 96px);
    padding: 1rem;
    border-radius: 22px;
}

.builder-shell .phone-screen {
    height: min(690px, calc(100vh - 135px));
}

.builder-shell .submit-bar {
    bottom: .5rem;
    gap: .65rem;
    margin-top: .65rem;
    padding: .55rem;
    border-radius: 14px;
}

.builder-shell .submit-bar .button.large {
    min-height: 42px;
}

.builder-shell .alert {
    margin-bottom: .65rem;
    padding: .62rem .75rem;
    font-size: .82rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1080px) {
    .workspace {
        grid-template-columns: minmax(0, 1fr) 350px;
        padding-inline: 1.25rem;
    }

    .color-grid {
        grid-template-columns: repeat(3, minmax(76px, 1fr));
    }

    .link-editor-row {
        grid-template-columns: 42px 1fr 1.2fr;
    }

    .link-editor-row .mini-field:nth-of-type(3) {
        grid-column: 2;
    }

    .link-editor-row .link-row-actions {
        grid-column: 3;
    }

    .link-row-actions {
        justify-content: flex-end;
    }

    .preview-badge {
        display: none;
    }

    .home-main {
        padding-inline: 1.5rem;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 2rem;
    }

    .home-title {
        font-size: clamp(3.5rem, 7vw, 5.8rem);
    }
}

@media (max-width: 960px) {
    .verification-shell {
        display: block;
        padding: .75rem;
    }

    .verification-card {
        width: 100%;
    }

    .verification-layout {
        grid-template-areas: "info" "form";
        grid-template-columns: 1fr;
    }

    .verification-info-column {
        position: relative;
        top: auto;
    }
}

@media (max-width: 899px) {
    .public-page-shell .page-name-line {
        display: grid;
        grid-template-columns: auto max-content;
        gap: .3rem .34rem;
    }

    .public-page-shell .page-name-line .page-name {
        grid-column: 1;
        grid-row: 1;
    }

    .public-page-shell .page-name-line .verified-badge {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .public-page-shell .page-name-line .profile-category {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }
}

@media (max-width: 820px) {
    .app-topbar {
        padding-inline: 1rem;
    }

    .workspace {
        grid-template-columns: 1fr;
        padding: 1.15rem 1rem 3rem;
    }

    .workspace-title {
        font-size: clamp(2.3rem, 10vw, 3.6rem);
    }

    .preview-stage {
        position: relative;
        top: auto;
        min-height: auto;
        padding-block: 1.8rem;
    }

    .phone-screen {
        height: 620px;
    }

    .admin-main {
        padding-inline: 1rem;
    }

    .key-reveal,
    .access-key-item {
        grid-template-columns: 1fr;
    }

    .verification-review-grid {
        grid-template-columns: 1fr;
    }

    .access-key-actions {
        justify-content: flex-start;
    }

    .home-main {
        padding: 4rem 1.25rem 1rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-copy {
        text-align: center;
    }

    .home-intro,
    .slug-starter {
        margin-inline: auto;
    }

    .slug-starter {
        text-align: left;
    }

    .home-showcase {
        min-height: 680px;
    }

    .page-table,
    .page-table tbody,
    .page-table tr,
    .page-table td {
        display: block;
        width: 100%;
    }

    .page-table thead {
        display: none;
    }

    .page-table tr {
        padding: .7rem 0;
        border-bottom: 1px solid var(--line);
    }

    .page-table td {
        padding: .35rem 1rem;
        border: 0;
    }

    .table-actions {
        justify-content: flex-start;
        padding-top: .4rem;
    }
}

@media (max-width: 580px) {
    .field-grid {
        grid-template-columns: 1fr;
    }

    .link-editor-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .link-editor-row .drag-handle {
        grid-row: 1 / span 3;
        align-self: stretch;
        height: auto;
    }

    .link-editor-row .mini-field,
    .link-editor-row .mini-field:nth-of-type(3),
    .link-editor-row .link-row-actions {
        grid-column: 2;
    }

    .color-grid {
        grid-template-columns: repeat(2, minmax(76px, 1fr));
    }

    .submit-bar,
    .admin-heading,
    .success-card {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .submit-bar {
        display: grid;
    }

    .issue-key-form,
    .key-copy-row {
        grid-template-columns: 1fr;
    }

    .submit-bar .button {
        width: 100%;
    }

    .app-topbar {
        flex-wrap: wrap;
        padding-block: .7rem;
    }

    .phone {
        width: min(100%, 340px);
    }

    .home-main {
        padding-top: 3.25rem;
    }

    .home-title {
        font-size: clamp(3.1rem, 17vw, 4.5rem);
    }

    .home-intro {
        margin-top: 1.4rem;
    }

    .slug-starter {
        grid-template-columns: 1fr;
        padding: .7rem;
    }

    .slug-starter > span {
        padding: .25rem .55rem 0;
        white-space: normal;
    }

    .slug-starter .button {
        width: 100%;
    }

    .home-showcase {
        min-height: 620px;
    }

    .home-phone .phone-screen {
        height: 590px;
    }

    .home-footer {
        flex-direction: column;
        text-align: center;
    }

    .social-preview-current {
        grid-template-columns: 1fr;
    }

    .verification-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .builder-shell .workspace {
        grid-template-columns: 1fr;
        padding: 1rem .8rem 2rem;
    }

    .builder-shell .preview-stage {
        position: relative;
        top: auto;
        min-height: auto;
    }
}

@media (max-width: 580px) {
    .workspace-compact-header {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-compact-header .builder-mode-switch {
        display: flex;
        order: -1;
    }

    .verification-card {
        padding: .8rem;
        border-radius: 16px;
    }

    .verification-form-card {
        padding: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
