:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#302b40;background:#faf8f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}.top{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:24px}.brand{font-size:23px;font-weight:800;text-decoration:none;letter-spacing:-1px}.brand span{color:#8165a6}.top nav{display:flex;gap:20px;font-size:14px}main{max-width:1152px;margin:30px auto;padding:0 24px}h1{font-size:clamp(28px,4vw,44px);letter-spacing:-1.6px;margin:8px 0 14px}h2{font-size:20px;margin:0 0 22px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#79638c}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.heading p:not(.eyebrow){color:#756d80}.button,button{border:0;border-radius:12px;background:#735394;color:white;padding:13px 20px;cursor:pointer;font:600 14px system-ui;text-decoration:none;display:inline-block}.secondary{background:#f0eaf5;color:#554064}button:hover,.button:hover{filter:brightness(.94)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b38cce;outline-offset:3px}.share{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#eee8f4;padding:12px 16px;margin:24px 0;border-radius:15px}.share span{overflow-wrap:anywhere}.workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:48px}.panel{background:white;border:1px solid #e9e3eb;border-radius:20px;padding:26px;margin-bottom:20px}label{display:block;font-size:13px;font-weight:650;margin-bottom:17px}input,textarea,select{display:block;width:100%;padding:12px;border:1px solid #ded7e5;border-radius:9px;background:#fdfcfe;color:#302b40;margin-top:7px;font:inherit}textarea{resize:vertical}.hint{font-size:12px;line-height:1.6;color:#766d80}.link-row{padding:15px;background:#faf8fc;border-radius:12px;margin-bottom:14px}.row-actions{display:flex;gap:7px}.row-actions button{padding:8px 13px}.save{display:flex;align-items:center;gap:16px;margin:20px 0}.save span{font-size:12px;color:#746b7b}.workspace aside{position:sticky;top:24px;align-self:start}.profile{--surface:#f5edff;--ink:#443353;--button:#fff;--edge:#dfd0ed;background:var(--surface);color:var(--ink);max-width:440px;border-radius:26px;overflow:hidden;margin:0 auto;border:1px solid var(--edge);box-shadow:0 18px 50px #3823450d}.theme-mint{--surface:#eff7ed;--ink:#314b3e;--edge:#cddfce}.theme-midnight{--surface:#242135;--ink:#f1eaff;--button:#38334d;--edge:#4c4364}.banner{height:130px;background:linear-gradient(125deg,#c4b0e4,#efd5dc,#eee5c8)}.theme-mint .banner{background:linear-gradient(125deg,#b9d4b6,#e6e8b5)}.theme-midnight .banner{background:linear-gradient(125deg,#4d3b72,#9c688c)}.banner img{width:100%;height:100%;object-fit:cover}.profile-content{padding:0 26px 22px;text-align:center}.avatar{width:92px;height:92px;border-radius:50%;margin:-46px auto 16px;position:relative;border:5px solid var(--surface);background:var(--button);display:grid;place-items:center;font-size:34px;font-weight:700;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.profile h1{font-size:28px;letter-spacing:-.7px;margin-bottom:4px;overflow-wrap:anywhere}.handle{font-size:13px;opacity:.65;margin-top:5px}.bio{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.profile-links{display:grid;gap:12px;margin:24px 0}.profile-links a{display:flex;justify-content:space-between;gap:14px;background:var(--button);border:1px solid var(--edge);padding:17px;border-radius:13px;text-decoration:none;font-size:14px;font-weight:650;overflow-wrap:anywhere;text-align:left}.signature{font-size:10px;opacity:.55;margin:30px 0 5px}.auth{max-width:460px;margin:50px auto;background:white;border:1px solid #e9e3eb;border-radius:24px;padding:32px}.auth h1{font-size:32px;margin-bottom:26px}.auth button{width:100%}.auth-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px;font-size:12px}.check{display:flex;align-items:center;gap:10px}.check input{width:auto;margin:0}.notice{padding:15px 20px;background:#e8f1e5;border:1px solid #cfddc9;border-radius:12px}footer{text-align:center;padding:40px 20px;color:#837a8d;font-size:12px}@media(max-width:760px){.workspace{grid-template-columns:1fr;gap:24px}.workspace aside{position:static}.heading{align-items:flex-start;flex-direction:column}.top{padding:20px}.top nav{gap:12px}main{padding:0 16px;margin-top:18px}.panel{padding:20px}.save{align-items:flex-start;flex-direction:column}.share{font-size:12px}.share button{padding:10px;white-space:nowrap}.auth{padding:24px}}

.support-mode-bar {
    position: sticky;
    z-index: 1000;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px clamp(16px, 4vw, 42px);
    border-bottom: 2px solid #d6a928;
    background: #fff1b9;
    color: #4f3b00;
    box-shadow: 0 4px 16px #3d2e001f;
}
.support-mode-bar > div { display: grid; gap: 2px; }
.support-mode-bar strong { font-size: 13px; }
.support-mode-bar span { font-size: 12px; line-height: 1.45; }
.support-mode-bar form { margin: 0; }
.support-mode-bar button { padding: 9px 14px; border-radius: 10px; background: #5d4600; white-space: nowrap; }
@media (max-width: 620px) {
    .support-mode-bar { align-items: stretch; flex-direction: column; gap: 8px; }
    .support-mode-bar button { width: 100%; }
}
.section-editor{border:1px solid #e4dce9;border-radius:12px;padding:16px;margin:12px 0;background:#fdfbff}.section-editor summary{cursor:pointer;font-size:15px;font-weight:700; padding:2px 0}.section-editor[open] summary{margin-bottom:20px}.profile-section{text-align:left;margin-top:22px;border-top:1px solid var(--edge);padding-top:22px}.profile-section h2{font-size:18px;margin:0 0 14px;overflow-wrap:anywhere}.section-answers{display:grid;gap:12px}.section-favorites .section-answers{grid-template-columns:repeat(2,minmax(0,1fr))}.section-answer{min-width:0;background:var(--button);border:1px solid var(--edge);border-radius:12px;padding:14px}.section-answer h3{font-size:11px;opacity:.72;line-height:1.5;margin:0 0 7px}.section-answer p{font-size:14px;line-height:1.65;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.workspace aside{max-height:calc(100vh - 48px);overflow:auto;padding-bottom:10px}@media(max-width:760px){.workspace aside{max-height:none;overflow:visible}}

/* Crinkle.Contact brand and member pages. */
:root {
    color: #163361;
    background: #fffaf0;
    font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif;
}
body {
    background: radial-gradient(ellipse at 90% 8%, #fff0b7 0, transparent 30%), #fffaf0;
}
.top {
    border-bottom: 2px solid #f3dc8b;
    padding-block: 18px;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #006bc9;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -1px;
}
.brand img {
    width: 64px;
    height: auto;
    flex-shrink: 0;
}
.brand .wordmark { color: #006bc9; }
.brand .wordmark span { color: #12366f; }
.top nav { align-items: center; font-weight: 700; }
.top nav a { text-underline-offset: 5px; }
h1, h2, h3 { font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; }
.heading h1, .auth h1 { color: #064b9b; font-weight: 800; }
.heading p:not(.eyebrow), .hint, .save span { color: #52627a; }
.eyebrow { color: #3d648d; }
.button, button {
    background: linear-gradient(180deg, #087ee1, #0059bf);
    border: 1px solid #0059bf;
    border-radius: 16px;
    box-shadow: 0 3px 0 #00448d;
}
.secondary {
    background: #e6f3ff;
    color: #154879;
    border-color: #b8d9ef;
    box-shadow: none;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #bd332a;
    outline-offset: 4px;
}
.share {
    background: #fff0b9;
    border: 1px solid #ecd18a;
    border-radius: 18px;
    font-weight: 700;
}
.panel, .auth {
    border: 1px solid #dae4ec;
    border-radius: 24px;
    box-shadow: 0 5px 0 #e8e4d9;
}
.panel h2 {
    color: #123e78;
    padding-bottom: 14px;
    border-bottom: 2px dashed #d4e5f3;
}
input, textarea, select {
    color: #183a62;
    background: #fcfeff;
    border-color: #bacfdf;
    border-radius: 12px;
    font-size: 14px;
}
.link-row { background: #f0f7ff; }
.section-editor {
    background: #fffcf0;
    border-color: #ecdca7;
    border-radius: 16px;
}
.section-editor summary { color: #244c7c; }
.section-editor .check { margin-top: 18px; }
input[type="checkbox"] { accent-color: #006bc9; }
.notice { background: #e7f5e9; color: #244b32; }
footer { color: #53627a; }

/* Rounded profile cards and soft illustrated skies. */
.profile {
    border-radius: 28px;
    box-shadow: 0 8px 0 #2034510d, 0 18px 45px #24375112;
}
.theme-sky {
    --surface: #f6fbff;
    --ink: #15386d;
    --button: #ffffff;
    --edge: #c7dff2;
}
.banner { position: relative; z-index: 0; height: 150px; }
.banner img { position: relative; z-index: 2; }
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, #fff6bb 0 3px, transparent 4px),
        radial-gradient(circle at 68% 25%, #fff6bb 0 4px, transparent 5px),
        radial-gradient(circle at 83% 49%, #fff6bb 0 2px, transparent 3px),
        radial-gradient(ellipse at 8% 105%, #ffffffa6 0 23%, transparent 24%),
        radial-gradient(ellipse at 36% 113%, #ffffff90 0 25%, transparent 26%),
        radial-gradient(ellipse at 83% 120%, #ffffffa6 0 34%, transparent 35%);
    pointer-events: none;
}
.theme-sky .banner {
    background: radial-gradient(circle at 82% 15%, #fff2ac 0 20px, transparent 21px),
        linear-gradient(145deg, #0085ed, #80d0ff);
}
.theme-lilac .banner { background: linear-gradient(145deg, #9e83d5, #dbc9f2); }
.theme-mint .banner { background: linear-gradient(145deg, #6fae99, #cde8bf); }
.theme-midnight .banner { background: linear-gradient(145deg, #142954, #544477); }
.theme-midnight .banner::before { opacity: .55; }

/* Expressive profile themes: neon rave, crayon paper, and sticker kidcore. */
.theme-rave {
    --surface: #171038;
    --ink: #fff8ff;
    --button: #281b58;
    --edge: #18def2;
    border: 3px solid #ff43cf;
    box-shadow: 0 0 0 3px #18def2, 0 0 28px #ff43cf66, 0 18px 45px #10052366;
}
.theme-rave:not(.profile-has-background) {
    background-color: var(--surface);
    background-image:
        radial-gradient(circle at 12% 24%, #ff43cf2b 0 3px, transparent 4px),
        radial-gradient(circle at 88% 44%, #c9ff2f29 0 4px, transparent 5px),
        radial-gradient(circle at 30% 76%, #18def226 0 3px, transparent 4px);
    background-size: 56px 56px, 74px 74px, 66px 66px;
}
.theme-rave .banner {
    background:
        radial-gradient(circle at 17% 28%, #c9ff2f 0 6px, transparent 7px),
        radial-gradient(circle at 79% 22%, #ffef54 0 8px, transparent 9px),
        linear-gradient(130deg, #13072f 0%, #5520a1 42%, #ff2fa8 72%, #10d9ef 100%);
}
.theme-rave .banner::before {
    opacity: 1;
    background:
        linear-gradient(38deg, transparent 44%, #18def2cc 45% 47%, transparent 48%),
        linear-gradient(-32deg, transparent 57%, #ffef54a8 58% 60%, transparent 61%),
        radial-gradient(circle at 30% 72%, #ff43cf 0 5px, transparent 6px),
        radial-gradient(circle at 67% 52%, #c9ff2f 0 4px, transparent 5px);
}
.theme-rave .avatar {
    border-color: #ff43cf;
    box-shadow: 0 0 0 4px #18def2, 0 0 22px #ff43cfaa;
}
.theme-rave .profile-name {
    color: #ffffff;
    text-shadow: 2px 2px 0 #8c2cff, 0 0 10px #18def299;
}
.theme-rave .profile-links a,
.theme-rave .profile-pages a,
.theme-rave .section-answer,
.theme-rave .comfort-item,
.theme-rave .kind-word {
    box-shadow: 0 3px 0 #ff43cf, 0 0 12px #18def21f;
}
.theme-rave .profile-links a:nth-child(even),
.theme-rave .profile-pages a:nth-child(even) { box-shadow: 0 3px 0 #c9ff2f, 0 0 12px #ff43cf26; }
.theme-rave .pronouns { border-color: #ffef54; background: #342464; color: #fff8c7; }
.theme-rave .comfort-note { border-color: #18def2; background: #21174e; color: #fff8ff; }

.theme-crayon {
    --surface: #fff8dc;
    --ink: #243b73;
    --button: #fffdf3;
    --edge: #2d5fc7;
    border: 3px solid #2d5fc7;
    border-radius: 24px 30px 22px 28px;
    box-shadow: 7px 8px 0 #f34f5d, 12px 14px 0 #ffd83d, 0 20px 45px #243b7321;
    font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
}
.theme-crayon:not(.profile-has-background) {
    background-color: var(--surface);
    background-image: repeating-linear-gradient(0deg, transparent 0 27px, #79bfe72b 28px 29px);
}
.theme-crayon .banner {
    background:
        radial-gradient(circle at 14% 28%, #ffd83d 0 14px, transparent 15px),
        linear-gradient(155deg, transparent 0 18%, #ffffff66 19% 22%, transparent 23% 100%),
        linear-gradient(125deg, #39a8ef 0 36%, #69d47c 37% 61%, #ffd83d 62% 78%, #f34f5d 79%);
}
.theme-crayon .banner::before {
    opacity: 1;
    background:
        repeating-linear-gradient(18deg, transparent 0 16px, #243b7340 17px 19px, transparent 20px 35px),
        radial-gradient(circle at 78% 28%, #ffffff 0 4px, transparent 5px),
        radial-gradient(circle at 83% 35%, #ffffff 0 3px, transparent 4px);
}
.theme-crayon .avatar { border-color: #fffdf3; box-shadow: 0 0 0 4px #f34f5d, 4px 5px 0 #ffd83d; }
.theme-crayon .profile-name {
    color: #244aa4;
    font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
    text-shadow: 2px 2px 0 #ffd83d;
}
.theme-crayon h2,
.theme-crayon h3 { font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif; }
.theme-crayon .profile-links a,
.theme-crayon .profile-pages a,
.theme-crayon .section-answer,
.theme-crayon .comfort-item,
.theme-crayon .kind-word {
    border-width: 2px;
    border-style: dashed;
    border-radius: 17px 12px 18px 13px;
    box-shadow: 3px 4px 0 #ffd83d;
}
.theme-crayon .profile-links a:nth-child(even),
.theme-crayon .profile-pages a:nth-child(even) { box-shadow: 3px 4px 0 #f58eae; }
.theme-crayon .section-favorites .section-answer:nth-child(4n+1) { background: #fff0a8; }
.theme-crayon .section-favorites .section-answer:nth-child(4n+2) { background: #d8efff; }
.theme-crayon .section-favorites .section-answer:nth-child(4n+3) { background: #ffdce8; }
.theme-crayon .section-favorites .section-answer:nth-child(4n+4) { background: #dcf3d0; }

.theme-stickers {
    --surface: #effcff;
    --ink: #29356f;
    --button: #ffffff;
    --edge: #7449bf;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 4px #7449bf, 8px 9px 0 #ffca3a, 0 20px 45px #29356f24;
}
.theme-stickers:not(.profile-has-background) {
    background-color: var(--surface);
    background-image:
        radial-gradient(circle at 10% 14%, #ff6fae2b 0 8px, transparent 9px),
        radial-gradient(circle at 88% 32%, #ffca3a36 0 10px, transparent 11px),
        radial-gradient(circle at 18% 76%, #67d7c42e 0 7px, transparent 8px);
    background-size: 92px 92px, 118px 118px, 104px 104px;
}
.theme-stickers .banner {
    background:
        radial-gradient(circle at 18% 25%, #fff 0 5px, transparent 6px),
        radial-gradient(circle at 75% 38%, #ffca3a 0 16px, transparent 17px),
        linear-gradient(135deg, #6ee7d4 0 28%, #65b5ff 29% 51%, #c48df0 52% 73%, #ff79b4 74%);
}
.theme-stickers .banner::before {
    opacity: 1;
    background:
        radial-gradient(circle at 12% 74%, #ffca3a 0 7px, #fff 8px 11px, transparent 12px),
        radial-gradient(circle at 52% 22%, #ff79b4 0 6px, #fff 7px 10px, transparent 11px),
        radial-gradient(circle at 88% 72%, #6ee7d4 0 8px, #fff 9px 12px, transparent 13px);
}
.theme-stickers .avatar { border-color: #ffffff; box-shadow: 0 0 0 4px #ffca3a, 4px 5px 0 #ff79b4; }
.theme-stickers .profile-name { color: #57349a; text-shadow: 2px 2px 0 #ffd95d; }
.theme-stickers .profile-links a,
.theme-stickers .profile-pages a,
.theme-stickers .section-answer,
.theme-stickers .comfort-item,
.theme-stickers .kind-word { border-width: 2px; box-shadow: 0 4px 0 #ffca3a; }
.theme-stickers .profile-links a:nth-child(3n+2),
.theme-stickers .profile-pages a:nth-child(3n+2) { background: #fff0f7; box-shadow: 0 4px 0 #ff79b4; }
.theme-stickers .profile-links a:nth-child(3n+3),
.theme-stickers .profile-pages a:nth-child(3n+3) { background: #ecfff7; box-shadow: 0 4px 0 #67d7c4; }
.theme-stickers .section-favorites .section-answer:nth-child(4n+1) { background: #fff0a9; }
.theme-stickers .section-favorites .section-answer:nth-child(4n+2) { background: #dff4ff; }
.theme-stickers .section-favorites .section-answer:nth-child(4n+3) { background: #ffe3f0; }
.theme-stickers .section-favorites .section-answer:nth-child(4n+4) { background: #e4f9df; }

/* Space Kid: planets, rockets, and bright stars on a deep cosmic sky. */
.theme-space {
    --surface: #120f35;
    --ink: #fff8ea;
    --button: #211c55;
    --edge: #6ee7ff;
    border: 3px solid #8c6cff;
    box-shadow: 0 0 0 3px #35d8ef, 7px 9px 0 #ff6fb5, 0 22px 48px #09051f66;
}
.theme-space:not(.profile-has-background) {
    background-color: var(--surface);
    background-image:
        radial-gradient(circle at 12% 17%, #ffffff 0 2px, transparent 3px),
        radial-gradient(circle at 78% 31%, #8eeaff 0 2px, transparent 3px),
        radial-gradient(circle at 34% 72%, #ffd970 0 2px, transparent 3px),
        radial-gradient(circle at 91% 83%, #ff8ac1 0 3px, transparent 4px);
    background-size: 64px 64px, 83px 83px, 72px 72px, 96px 96px;
}
.theme-space .banner {
    background:
        radial-gradient(ellipse at 76% 37%, transparent 0 20px, #ffd36d 21px 24px, transparent 25px),
        radial-gradient(circle at 76% 37%, #ff78b7 0 14px, #8e6dff 15px 20px, transparent 21px),
        radial-gradient(circle at 18% 26%, #8eeaff 0 4px, transparent 5px),
        linear-gradient(135deg, #09051f 0%, #24145b 45%, #5035a0 72%, #1c8eb1 100%);
}
.theme-space .banner::before {
    opacity: 1;
    background:
        radial-gradient(circle at 15% 72%, #ffffff 0 3px, transparent 4px),
        radial-gradient(circle at 32% 34%, #ffd970 0 2px, transparent 3px),
        radial-gradient(circle at 54% 69%, #8eeaff 0 3px, transparent 4px),
        radial-gradient(circle at 91% 18%, #ffffff 0 2px, transparent 3px),
        linear-gradient(28deg, transparent 48%, #ff8ac180 49% 50%, transparent 51%);
}
.theme-space .banner::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 18%;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ctext y='52' font-size='52'%3E%F0%9F%9A%80%3C/text%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 3px 3px #09051f99);
    transform: rotate(28deg);
    pointer-events: none;
}
.theme-space .avatar { border-color: #120f35; box-shadow: 0 0 0 4px #6ee7ff, 0 0 20px #8c6cff; }
.theme-space .profile-name { color: #ffffff; text-shadow: 2px 2px 0 #7353dc, 0 0 9px #6ee7ff99; }
.theme-space .profile-links a,
.theme-space .profile-pages a,
.theme-space .section-answer,
.theme-space .comfort-item,
.theme-space .kind-word { border-width: 2px; box-shadow: 0 4px 0 #8c6cff; }
.theme-space .profile-links a:nth-child(even),
.theme-space .profile-pages a:nth-child(even),
.theme-space .comfort-item:nth-child(even) { box-shadow: 0 4px 0 #ff6fb5; }
.theme-space .pronouns { border-color: #ffd970; background: #302469; color: #fff7ce; }
.theme-space .comfort-note { border-color: #6ee7ff; background: #181243; color: #fff8ea; }

/* Dino Dig: friendly prehistoric greens, sunny fossils, and jungle hills. */
.theme-dino {
    --surface: #eef7d9;
    --ink: #294a2c;
    --button: #fffbea;
    --edge: #4f8c3f;
    border: 3px solid #4f8c3f;
    box-shadow: 7px 8px 0 #e6bd4e, 11px 13px 0 #76b85d, 0 22px 45px #294a2c26;
}
.theme-dino:not(.profile-has-background) {
    background-color: var(--surface);
    background-image:
        radial-gradient(ellipse at 16% 22%, #76b85d24 0 8px, transparent 9px),
        radial-gradient(ellipse at 82% 38%, #e6bd4e2b 0 7px, transparent 8px),
        radial-gradient(ellipse at 28% 82%, #4f8c3f20 0 9px, transparent 10px);
    background-size: 86px 74px, 102px 91px, 96px 83px;
}
.theme-dino .banner {
    background:
        radial-gradient(circle at 82% 20%, #ffe36e 0 18px, transparent 19px),
        radial-gradient(ellipse at 12% 118%, #3e793f 0 39%, transparent 40%),
        radial-gradient(ellipse at 66% 123%, #68a94f 0 48%, transparent 49%),
        linear-gradient(180deg, #69c4e1 0%, #bde9dd 60%, #d9efb7 61%);
}
.theme-dino .banner::before {
    opacity: 1;
    background:
        radial-gradient(circle at 19% 43%, #294a2c80 0 3px, transparent 4px),
        radial-gradient(circle at 24% 38%, #294a2c80 0 3px, transparent 4px),
        radial-gradient(ellipse at 22% 51%, #294a2c80 0 7px, transparent 8px),
        radial-gradient(circle at 63% 25%, #ffffffb8 0 4px, transparent 5px),
        radial-gradient(circle at 69% 22%, #ffffffa6 0 3px, transparent 4px);
}
.theme-dino .banner::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 14%;
    bottom: 12px;
    width: 52px;
    height: 52px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ctext y='52' font-size='52'%3E%F0%9F%A6%95%3C/text%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(2px 3px 0 #294a2c55);
    transform: rotate(-4deg);
    pointer-events: none;
}
.theme-dino .avatar { border-color: #fffbea; box-shadow: 0 0 0 4px #4f8c3f, 4px 5px 0 #e6bd4e; }
.theme-dino .profile-name { color: #356d39; text-shadow: 2px 2px 0 #f6d66d; }
.theme-dino .profile-links a,
.theme-dino .profile-pages a,
.theme-dino .section-answer,
.theme-dino .comfort-item,
.theme-dino .kind-word { border-width: 2px; border-radius: 18px 13px 18px 13px; box-shadow: 0 4px 0 #d6a83e; }
.theme-dino .profile-links a:nth-child(even),
.theme-dino .profile-pages a:nth-child(even),
.theme-dino .comfort-item:nth-child(even) { background: #f8f2c9; box-shadow: 0 4px 0 #76b85d; }
.theme-dino .pronouns { border-color: #4f8c3f; background: #dff0bf; color: #294a2c; }
.theme-dino .comfort-note { border-color: #76b85d; background: #f8f3cf; color: #294a2c; }

/* Starry Bedtime: warm moonlight and softer sleepy-night colors. */
.theme-starry {
    --surface: #182743;
    --ink: #fff8d8;
    --button: #26395e;
    --edge: #ffd66b;
    border: 3px solid #ffd66b;
    box-shadow: 0 0 0 3px #7085d8, 7px 9px 0 #a77bd4, 0 22px 48px #09111f66;
}
.theme-starry:not(.profile-has-background) {
    background-color: var(--surface);
    background-image:
        radial-gradient(circle at 14% 18%, #fff3a8 0 2px, transparent 3px),
        radial-gradient(circle at 71% 26%, #ffffff 0 2px, transparent 3px),
        radial-gradient(circle at 35% 73%, #9fd8ff 0 2px, transparent 3px),
        radial-gradient(circle at 88% 82%, #fff3a8 0 3px, transparent 4px);
    background-size: 69px 69px, 88px 88px, 77px 77px, 104px 104px;
}
.theme-starry .banner {
    background:
        radial-gradient(circle at 78% 30%, #fff3b0 0 19px, #dce7ff 20px 25px, transparent 26px),
        radial-gradient(circle at 20% 28%, #fff8d8 0 3px, transparent 4px),
        linear-gradient(145deg, #0c1730, #263d70 54%, #72528f 100%);
}
.theme-starry .banner::before {
    opacity: 1;
    background:
        radial-gradient(circle at 13% 72%, #fff3a8 0 3px, transparent 4px),
        radial-gradient(circle at 35% 42%, #ffffff 0 2px, transparent 3px),
        radial-gradient(circle at 58% 70%, #9fd8ff 0 3px, transparent 4px),
        radial-gradient(circle at 91% 71%, #fff3a8 0 2px, transparent 3px);
}
.theme-starry .avatar { border-color: #182743; box-shadow: 0 0 0 4px #ffd66b, 0 0 18px #9fd8ff88; }
.theme-starry .profile-name { color: #fff8d8; text-shadow: 2px 2px 0 #7658a4; }
.theme-starry .profile-links a,
.theme-starry .profile-pages a,
.theme-starry .section-answer,
.theme-starry .comfort-item,
.theme-starry .kind-word { border-width: 2px; box-shadow: 0 4px 0 #7085d8; }
.theme-starry .profile-links a:nth-child(even),
.theme-starry .profile-pages a:nth-child(even),
.theme-starry .comfort-item:nth-child(even) { box-shadow: 0 4px 0 #a77bd4; }
.theme-starry .pronouns { border-color: #ffd66b; background: #354a73; color: #fff8d8; }
.theme-starry .comfort-note { border-color: #7085d8; background: #1f3051; color: #fff8d8; }

/* Undersea Friends: clear water, coral accents, and lots of bubbles. */
.theme-undersea {
    --surface: #e8fbf7;
    --ink: #144b5d;
    --button: #ffffff;
    --edge: #37a7a3;
    border: 3px solid #37a7a3;
    box-shadow: 7px 8px 0 #ff8c82, 11px 13px 0 #7ed7d0, 0 22px 45px #144b5d24;
}
.theme-undersea:not(.profile-has-background) {
    background-color: var(--surface);
    background-image:
        radial-gradient(circle at 15% 24%, transparent 0 6px, #37a7a32e 7px 9px, transparent 10px),
        radial-gradient(circle at 84% 38%, transparent 0 8px, #5dbdd436 9px 11px, transparent 12px),
        radial-gradient(circle at 31% 82%, transparent 0 5px, #ff8c8233 6px 8px, transparent 9px);
    background-size: 88px 88px, 113px 113px, 97px 97px;
}
.theme-undersea .banner {
    background:
        radial-gradient(circle at 18% 28%, transparent 0 6px, #ffffff99 7px 9px, transparent 10px),
        radial-gradient(circle at 72% 21%, transparent 0 9px, #ffffff8c 10px 12px, transparent 13px),
        linear-gradient(180deg, #48cce0 0%, #279fc1 52%, #176f95 100%);
}
.theme-undersea .banner::before {
    opacity: 1;
    background:
        radial-gradient(ellipse at 8% 112%, #ff8c82 0 18%, transparent 19%),
        radial-gradient(ellipse at 34% 118%, #f4cc62 0 16%, transparent 17%),
        radial-gradient(ellipse at 86% 116%, #60c8a4 0 22%, transparent 23%),
        radial-gradient(circle at 54% 39%, #ffffff9c 0 3px, transparent 4px);
}
.theme-undersea .banner::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 23%;
    top: 40px;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ctext y='52' font-size='52'%3E%F0%9F%90%A0%3C/text%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(2px 3px 0 #144b5d44);
    transform: rotate(-3deg);
    pointer-events: none;
}
.theme-undersea .avatar { border-color: #ffffff; box-shadow: 0 0 0 4px #37a7a3, 4px 5px 0 #ff8c82; }
.theme-undersea .profile-name { color: #176f78; text-shadow: 2px 2px 0 #a9ebe6; }
.theme-undersea .profile-links a,
.theme-undersea .profile-pages a,
.theme-undersea .section-answer,
.theme-undersea .comfort-item,
.theme-undersea .kind-word { border-width: 2px; border-radius: 21px 13px 21px 13px; box-shadow: 0 4px 0 #37a7a3; }
.theme-undersea .profile-links a:nth-child(even),
.theme-undersea .profile-pages a:nth-child(even),
.theme-undersea .comfort-item:nth-child(even) { background: #fff4ef; box-shadow: 0 4px 0 #ff8c82; }
.theme-undersea .pronouns { border-color: #37a7a3; background: #d8f4ef; color: #144b5d; }
.theme-undersea .comfort-note { border-color: #5dbdd4; background: #e0f7f4; color: #144b5d; }

/* Candy Clouds: sherbet skies, cotton-candy blobs, and sprinkle colors. */
.theme-candy {
    --surface: #fff1f8;
    --ink: #6a3158;
    --button: #fffdfd;
    --edge: #ea73aa;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 4px #ea73aa, 7px 9px 0 #78d5cf, 0 22px 45px #6a315824;
}
.theme-candy:not(.profile-has-background) {
    background-color: var(--surface);
    background-image:
        linear-gradient(62deg, transparent 45%, #ff83b52b 46% 51%, transparent 52%),
        linear-gradient(-35deg, transparent 47%, #73d7d02b 48% 53%, transparent 54%),
        radial-gradient(circle at 72% 28%, #ffd86b40 0 4px, transparent 5px);
    background-size: 42px 42px, 51px 51px, 63px 63px;
}
.theme-candy .banner {
    background:
        radial-gradient(ellipse at 12% 82%, #ffffffbd 0 23%, transparent 24%),
        radial-gradient(ellipse at 43% 102%, #fff5c9b8 0 30%, transparent 31%),
        radial-gradient(ellipse at 83% 91%, #ffffffb8 0 28%, transparent 29%),
        linear-gradient(135deg, #ff88b8 0%, #d59aee 45%, #7adad0 74%, #ffe18a 100%);
}
.theme-candy .banner::before {
    opacity: 1;
    background:
        radial-gradient(circle at 18% 24%, #fff0a8 0 5px, transparent 6px),
        radial-gradient(circle at 67% 26%, #ffffff 0 4px, transparent 5px),
        linear-gradient(55deg, transparent 47%, #ff6fae 48% 51%, transparent 52%) 0 0 / 48px 48px;
}
.theme-candy .avatar { border-color: #ffffff; box-shadow: 0 0 0 4px #ea73aa, 4px 5px 0 #78d5cf; }
.theme-candy .profile-name { color: #8a3970; text-shadow: 2px 2px 0 #ffd86b; }
.theme-candy .profile-links a,
.theme-candy .profile-pages a,
.theme-candy .section-answer,
.theme-candy .comfort-item,
.theme-candy .kind-word { border-width: 2px; box-shadow: 0 4px 0 #ea73aa; }
.theme-candy .profile-links a:nth-child(3n+2),
.theme-candy .profile-pages a:nth-child(3n+2),
.theme-candy .comfort-item:nth-child(3n+2) { background: #edfffc; box-shadow: 0 4px 0 #78d5cf; }
.theme-candy .profile-links a:nth-child(3n+3),
.theme-candy .profile-pages a:nth-child(3n+3),
.theme-candy .comfort-item:nth-child(3n+3) { background: #fff8d8; box-shadow: 0 4px 0 #ffd86b; }
.theme-candy .pronouns { border-color: #ea73aa; background: #ffe0ef; color: #6a3158; }
.theme-candy .comfort-note { border-color: #78d5cf; background: #effffc; color: #6a3158; }

.theme-picker {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}
.theme-picker > legend {
    margin-bottom: 10px;
    color: #123e78;
    font-size: 13px;
    font-weight: 800;
}
.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 11px;
}
.theme-choice { position: relative; margin: 0; cursor: pointer; }
.theme-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}
.theme-choice-card {
    display: grid;
    grid-template-rows: 52px auto 1fr;
    min-height: 128px;
    overflow: hidden;
    border: 2px solid #cad9e5;
    border-radius: 16px;
    background: #ffffff;
    color: #183a62;
    box-shadow: 0 3px 0 #e4e9ed;
}
.theme-choice-card strong { padding: 10px 11px 2px; font-size: 12px; line-height: 1.25; }
.theme-choice-card small { padding: 0 11px 11px; color: #617187; font-size: 10px; line-height: 1.35; }
.theme-choice input:checked + .theme-choice-card {
    border-color: #006bc9;
    box-shadow: 0 0 0 3px #bfe2ff, 0 4px 0 #006bc9;
}
.theme-choice input:focus-visible + .theme-choice-card { outline: 3px solid #bd332a; outline-offset: 3px; }
.theme-choice-swatch { position: relative; overflow: hidden; background: linear-gradient(135deg, #0085ed, #80d0ff); }
.theme-choice-swatch::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: -13px;
    width: 42px;
    height: 42px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #ffffffcc;
}
.theme-choice-lilac .theme-choice-swatch { background: linear-gradient(135deg, #9e83d5, #dbc9f2); }
.theme-choice-mint .theme-choice-swatch { background: linear-gradient(135deg, #6fae99, #cde8bf); }
.theme-choice-midnight .theme-choice-swatch { background: linear-gradient(135deg, #142954, #544477); }
.theme-choice-rave .theme-choice-swatch { background: linear-gradient(135deg, #19083b, #7e27d7 45%, #ff36bd 72%, #18def2); }
.theme-choice-rave .theme-choice-swatch::after { border-color: #18def2; background: #ff43cf; box-shadow: 0 0 12px #ff43cf; }
.theme-choice-crayon .theme-choice-swatch { background: linear-gradient(135deg, #39a8ef 0 34%, #69d47c 35% 58%, #ffd83d 59% 78%, #f34f5d 79%); }
.theme-choice-crayon .theme-choice-swatch::after { border-color: #fffdf3; background: #ffd83d; box-shadow: 3px 3px 0 #2d5fc7; }
.theme-choice-stickers .theme-choice-swatch { background: linear-gradient(135deg, #6ee7d4, #65b5ff 38%, #c48df0 66%, #ff79b4); }
.theme-choice-stickers .theme-choice-swatch::after { border-color: #ffffff; background: #ffca3a; box-shadow: 3px 3px 0 #7449bf; }
.theme-choice-space .theme-choice-swatch { background: linear-gradient(135deg, #09051f, #4f35a0 58%, #1c9fba); }
.theme-choice-space .theme-choice-swatch::before { content: "✦  🪐  ★"; position: absolute; z-index: 1; top: 12px; left: 12px; color: #fff5bd; font-size: 16px; text-shadow: 0 0 7px #6ee7ff; }
.theme-choice-space .theme-choice-swatch::after { border-color: #6ee7ff; background: #ff78b7; box-shadow: 0 0 10px #8c6cff; }
.theme-choice-dino .theme-choice-swatch { background: linear-gradient(155deg, #67c3df 0 43%, #91c96e 44% 67%, #4f8c3f 68%); }
.theme-choice-dino .theme-choice-swatch::before { content: "🦕"; position: absolute; z-index: 1; top: 8px; left: 17px; font-size: 27px; }
.theme-choice-dino .theme-choice-swatch::after { border-color: #fffbea; background: #ffe36e; box-shadow: 3px 3px 0 #4f8c3f; }
.theme-choice-starry .theme-choice-swatch { background: linear-gradient(135deg, #0c1730, #314979 58%, #76558f); }
.theme-choice-starry .theme-choice-swatch::before { content: "☾  ✦  ★"; position: absolute; z-index: 1; top: 11px; left: 12px; color: #fff3a8; font-size: 17px; text-shadow: 0 0 7px #9fd8ff; }
.theme-choice-starry .theme-choice-swatch::after { border-color: #fff3a8; background: #dce7ff; box-shadow: 0 0 9px #9fd8ff; }
.theme-choice-undersea .theme-choice-swatch { background: linear-gradient(180deg, #57d6df, #2aa4c2 55%, #176f95); }
.theme-choice-undersea .theme-choice-swatch::before { content: "◌  🐠  ◦"; position: absolute; z-index: 1; top: 10px; left: 12px; color: #ffffff; font-size: 18px; }
.theme-choice-undersea .theme-choice-swatch::after { border-color: #ffffff; background: #ff8c82; box-shadow: 3px 3px 0 #37a7a3; }
.theme-choice-candy .theme-choice-swatch { background: linear-gradient(135deg, #ff88b8, #d59aee 43%, #7adad0 72%, #ffe18a); }
.theme-choice-candy .theme-choice-swatch::before { content: "☁  •  ✦"; position: absolute; z-index: 1; top: 11px; left: 12px; color: #ffffff; font-size: 18px; text-shadow: 2px 2px 0 #ea73aa; }
.theme-choice-candy .theme-choice-swatch::after { border-color: #ffffff; background: #ffd86b; box-shadow: 3px 3px 0 #ea73aa; }

.link-bubble-picker {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 8px 0 4px;
    padding: 0;
    border: 0;
}
.link-bubble-picker > legend {
    margin-bottom: 4px;
    color: #123e78;
    font-size: 13px;
    font-weight: 800;
}
.link-bubble-picker > .hint { margin: 0 0 11px; }
.link-bubble-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.link-bubble-choice { position: relative; margin: 0; cursor: pointer; }
.link-bubble-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}
.link-bubble-card {
    display: grid;
    grid-template-rows: 48px 1fr;
    min-height: 132px;
    overflow: hidden;
    border: 2px solid #cad9e5;
    border-radius: 15px;
    background: #ffffff;
    color: #183a62;
    box-shadow: 0 3px 0 #e4e9ed;
}
.link-bubble-demo {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    overflow: hidden;
    background: #eef7ff;
}
.link-bubble-demo i {
    display: block;
    width: 70%;
    height: 9px;
    border: 1px solid #4f78a1;
    border-radius: 7px;
    background: #ffffff;
}
.link-bubble-demo i:last-child { width: 53%; }
.link-bubble-copy { display: grid; align-content: start; padding: 9px 9px 10px; }
.link-bubble-copy strong { font-size: 11px; line-height: 1.25; }
.link-bubble-copy small { margin-top: 3px; color: #617187; font-size: 9px; line-height: 1.35; }
.link-bubble-choice input:checked + .link-bubble-card {
    border-color: #006bc9;
    box-shadow: 0 0 0 3px #bfe2ff, 0 4px 0 #006bc9;
}
.link-bubble-choice input:focus-visible + .link-bubble-card { outline: 3px solid #bd332a; outline-offset: 3px; }
.link-bubble-choice-soft .link-bubble-demo i { border-radius: 999px; box-shadow: 0 3px 0 #9fc8e8; }
.link-bubble-choice-pill .link-bubble-demo { background: #fff0f7; }
.link-bubble-choice-pill .link-bubble-demo i { border-color: #bc4383; border-radius: 999px; background: linear-gradient(#ffffff, #ffd9ec); }
.link-bubble-choice-square .link-bubble-demo { background: #fff7d6; }
.link-bubble-choice-square .link-bubble-demo i { border-width: 2px; border-radius: 3px; box-shadow: 3px 3px 0 #ffd24c; }
.link-bubble-choice-sticker .link-bubble-demo { background: #f0edff; }
.link-bubble-choice-sticker .link-bubble-demo i { border-color: #734cb5; box-shadow: 0 0 0 2px #fff, 3px 4px 0 #ff79b4; transform: rotate(-2deg); }
.link-bubble-choice-sticker .link-bubble-demo i:last-child { box-shadow: 0 0 0 2px #fff, 3px 4px 0 #6ed8ca; transform: rotate(2deg); }
.link-bubble-choice-doodle .link-bubble-demo { background: #fff9dd; }
.link-bubble-choice-doodle .link-bubble-demo i { border: 2px dashed #365fab; border-radius: 8px 4px 9px 5px; transform: rotate(-1.5deg); }
.link-bubble-choice-doodle .link-bubble-demo i:last-child { border-color: #e95d6a; transform: rotate(1.5deg); }
.link-bubble-choice-neon .link-bubble-demo { background: #1b103d; }
.link-bubble-choice-neon .link-bubble-demo i { border-color: #18def2; background: #2b1b57; box-shadow: 0 0 7px #18def2; }
.link-bubble-choice-neon .link-bubble-demo i:last-child { border-color: #ff43cf; box-shadow: 0 0 7px #ff43cf; }
.link-bubble-choice-ticket .link-bubble-demo { background: #e8fff8; }
.link-bubble-choice-ticket .link-bubble-demo i { border: 2px dashed #267d70; border-radius: 9px 3px 9px 3px; background: #ffffff; }
@media (max-width: 430px) {
    .theme-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-choice-card { min-height: 136px; }
    .link-bubble-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 431px) and (max-width: 1050px) {
    .link-bubble-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.profile-name { font-weight: 800; }
.profile-links a { box-shadow: 0 3px 0 var(--edge); }
.profile-links a:hover { transform: translateY(-1px); }
.profile-section { border-top-style: dashed; border-top-width: 2px; }
.section-answer { border-radius: 16px; }
.theme-sky .section-favorites .section-answer:nth-child(4n+1) { background: #fff1b9; }
.theme-sky .section-favorites .section-answer:nth-child(4n+2) { background: #dff0ff; }
.theme-sky .section-favorites .section-answer:nth-child(4n+3) { background: #eee4fc; }
.theme-sky .section-favorites .section-answer:nth-child(4n+4) { background: #e7f2dd; }
.section-answer h3 { opacity: 1; font-size: 12px; }
.section-answer p { font-weight: 600; }
.auth { border-top: 6px solid #ffd55a; }
@media (max-width: 760px) {
    .top { flex-wrap: wrap; }
    .top nav { margin-left: auto; font-size: 13px; }
    .brand img { width: 48px; }
    .brand { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-links a:hover { transform: none; }
}

.design-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.design-controls .hint { grid-column: 1 / -1; }
textarea[name="custom_css"] {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
}
input[type="file"] { max-width: 100%; font-size: 12px; }
input[type="range"] { accent-color: #006bc9; }
@media (max-width: 420px) {
    .design-controls { grid-template-columns: 1fr; }
}

.profile-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid #b8d9ef;
    border-radius: 16px;
    background: #eaf6ff;
    color: #244c7c;
}
.profile-status strong { min-width: 68px; }
.profile-status span { font-size: 13px; line-height: 1.55; }
.profile-status.status-draft,
.draft-preview-notice {
    background: #fff3c9;
    border: 1px solid #e7c76a;
    color: #664b08;
}
.profile-status.status-public {
    background: #e7f5e9;
    border-color: #b9d4bf;
    color: #244b32;
}
.draft-preview-notice {
    max-width: 680px;
    margin: 0 auto 22px;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.6;
}
.draft-preview-notice strong { display: block; font-size: 15px; }
.private-access-notice {
    max-width: 680px;
    margin: 0 auto 22px;
    padding: 14px 18px;
    border: 1px solid #b8d9ef;
    border-radius: 16px;
    background: #eaf6ff;
    color: #244c7c;
    font-size: 13px;
    line-height: 1.6;
}
.private-access-notice strong { display: block; font-size: 15px; }
@media (max-width: 520px) {
    .profile-status { flex-direction: column; gap: 4px; }
}

.profile-links:empty,
.profile-pages:empty,
.profile-link-sections:empty { display: none; }
.profile-nav-section {
    margin: 24px 0;
    text-align: left;
}
.profile-nav-section.is-empty { display: none; }
.profile-nav-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .8px;
    line-height: 1.2;
    text-transform: uppercase;
}
.profile-nav-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--edge);
    border-radius: 10px;
    background: var(--button);
    font-size: 15px;
    line-height: 1;
}
.profile-social-section {
    margin-top: 27px;
    padding-top: 22px;
    border-top: 2px dashed var(--edge);
}
.profile-social-section .profile-links { margin: 0; }
.profile-link-sections:not(:empty) { display: grid; gap: 24px; }
.profile-link-section { margin: 0; }
.profile-link-section:first-child { margin-top: 27px; }
.profile-links a { align-items: center; }
.profile-link-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}
.profile-link-label { min-width: 0; overflow-wrap: anywhere; }
.profile-link-arrow { flex: 0 0 auto; }
.profile-link-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--edge);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
}
.profile-link-icon svg { width: 18px; height: 18px; }
.profile-link-icon img { width: 100%; height: 100%; object-fit: cover; }
.profile-link-icon.is-emoji { font-family: system-ui, sans-serif; }
.profile-pages {
    display: grid;
    gap: 12px;
    margin: 0;
}
.profile-pages a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
    border: 2px dashed var(--edge);
    border-radius: 16px;
    background: var(--button);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 3px 0 var(--edge);
}
.profile-pages a:hover { transform: translateY(-1px); }
.profile.profile-detail { max-width: 760px; }
.profile-detail .profile-content { padding-inline: clamp(22px, 5vw, 48px); }
.profile-back {
    display: inline-block;
    margin: 0 0 24px;
    font-size: 13px;
    font-weight: 800;
    text-underline-offset: 4px;
}
.profile-detail > .profile-content > .eyebrow { margin-top: 0; }
.profile-detail .profile-sections { margin-top: 26px; }
.detail-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 2px dashed var(--edge);
}
.detail-nav a {
    padding: 9px 13px;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: var(--button);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

/* Link bubbles can be chosen separately from the overall profile theme. */
.profile.links-soft .profile-links,
.profile.links-soft .profile-pages { gap: 16px; }
.profile.links-soft .profile-links a,
.profile.links-soft .profile-pages a,
.profile.links-soft .detail-nav a {
    padding: 18px;
    border: 2px solid var(--edge);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff7a, transparent 58%), var(--button);
    box-shadow: 0 7px 0 var(--edge), inset 0 2px 0 #ffffff99;
    transition: transform .18s ease, box-shadow .18s ease;
}
.profile.links-soft .profile-link-icon { border-radius: 50%; box-shadow: 0 2px 0 var(--edge); }
.profile.links-soft .profile-links a:hover,
.profile.links-soft .profile-pages a:hover,
.profile.links-soft .detail-nav a:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 9px 0 var(--edge), inset 0 2px 0 #ffffff99; }

.profile.links-pill .profile-links a,
.profile.links-pill .profile-pages a,
.profile.links-pill .detail-nav a {
    padding: 15px 19px;
    border: 2px solid var(--edge);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff80, transparent 60%), var(--button);
    box-shadow: 0 4px 0 var(--edge), inset 0 2px 0 #ffffffa8;
    transition: transform .18s ease, box-shadow .18s ease;
}
.profile.links-pill .profile-link-icon { border-radius: 50%; }
.profile.links-pill .profile-link-arrow,
.profile.links-pill .profile-pages a > span:last-child {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid var(--edge);
    border-radius: 50%;
    background: var(--surface);
}
.profile.links-pill .profile-links a:hover,
.profile.links-pill .profile-pages a:hover,
.profile.links-pill .detail-nav a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge), inset 0 2px 0 #ffffffa8; }

.profile.links-square .profile-links,
.profile.links-square .profile-pages { gap: 17px; }
.profile.links-square .profile-links a,
.profile.links-square .profile-pages a,
.profile.links-square .detail-nav a {
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 17px;
    border: 2px solid var(--edge);
    border-radius: 7px;
    background: var(--button);
    box-shadow: 6px 6px 0 var(--edge);
    transition: transform .16s ease, box-shadow .16s ease;
}
.profile.links-square .profile-link-icon { border-width: 2px; border-radius: 5px; }
.profile.links-square .profile-links a:nth-child(even),
.profile.links-square .profile-pages a:nth-child(even) { border-radius: 11px 5px 11px 5px; }
.profile.links-square .profile-links a:hover,
.profile.links-square .profile-pages a:hover,
.profile.links-square .detail-nav a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--edge); }

.profile.links-sticker .profile-links,
.profile.links-sticker .profile-pages { gap: 18px; }
.profile.links-sticker .profile-links a,
.profile.links-sticker .profile-pages a,
.profile.links-sticker .detail-nav a {
    margin: 3px 6px 5px 3px;
    padding: 17px;
    border: 2px solid var(--edge);
    border-radius: 18px 12px 20px 14px;
    background: var(--button);
    box-shadow: 0 0 0 3px #ffffff, 6px 7px 0 #ff79b4;
    transform: rotate(-.45deg);
    transition: transform .18s ease, box-shadow .18s ease;
}
.profile.links-sticker .profile-links a:nth-child(even),
.profile.links-sticker .profile-pages a:nth-child(even) { box-shadow: 0 0 0 3px #ffffff, 6px 7px 0 #67d7c4; transform: rotate(.45deg); }
.profile.links-sticker .profile-link-icon { border-radius: 50%; background: #ffffff; }
.profile.links-sticker .profile-links a:hover,
.profile.links-sticker .profile-pages a:hover,
.profile.links-sticker .detail-nav a:hover { transform: rotate(0) translateY(-2px) scale(1.01); }

.profile.links-doodle .profile-links a,
.profile.links-doodle .profile-pages a,
.profile.links-doodle .detail-nav a {
    padding: 17px;
    border: 2px dashed var(--edge);
    border-radius: 18px 10px 20px 11px;
    background: var(--button);
    box-shadow: 3px 4px 0 var(--edge);
    transform: rotate(-.35deg);
    transition: transform .16s ease, box-shadow .16s ease;
}
.profile.links-doodle .profile-links a:nth-child(even),
.profile.links-doodle .profile-pages a:nth-child(even) { border-radius: 10px 19px 12px 18px; transform: rotate(.35deg); }
.profile.links-doodle .profile-link-icon { border-style: dashed; border-radius: 10px 6px 11px 7px; }
.profile.links-doodle .profile-links a:hover,
.profile.links-doodle .profile-pages a:hover,
.profile.links-doodle .detail-nav a:hover { transform: rotate(0) translateY(-2px); box-shadow: 4px 6px 0 var(--edge); }

.profile.links-neon .profile-links a,
.profile.links-neon .profile-pages a,
.profile.links-neon .detail-nav a {
    padding: 17px;
    border: 3px solid transparent;
    border-radius: 16px;
    background: linear-gradient(var(--button), var(--button)) padding-box, linear-gradient(110deg, #18def2, #8a52ff 48%, #ff43cf) border-box;
    box-shadow: 0 0 12px #18def288, 0 0 22px #ff43cf33;
    transition: transform .18s ease, box-shadow .18s ease;
}
.profile.links-neon .profile-links a:nth-child(even),
.profile.links-neon .profile-pages a:nth-child(even) { background: linear-gradient(var(--button), var(--button)) padding-box, linear-gradient(110deg, #ffef54, #ff43cf 52%, #18def2) border-box; }
.profile.links-neon .profile-link-icon { border-color: #18def2; border-radius: 50%; box-shadow: 0 0 8px #18def2; }
.profile.links-neon .profile-links a:hover,
.profile.links-neon .profile-pages a:hover,
.profile.links-neon .detail-nav a:hover { transform: translateY(-2px); box-shadow: 0 0 16px #18def2bb, 0 0 28px #ff43cf66; }

.profile.links-ticket .profile-links a,
.profile.links-ticket .profile-pages a,
.profile.links-ticket .detail-nav a {
    padding: 17px 23px;
    border: 2px dashed var(--edge);
    border-radius: 15px 5px 15px 5px;
    background:
        radial-gradient(circle at 0 50%, var(--surface) 0 7px, transparent 8px),
        radial-gradient(circle at 100% 50%, var(--surface) 0 7px, transparent 8px),
        var(--button);
    box-shadow: 0 4px 0 var(--edge);
    transition: transform .18s ease, box-shadow .18s ease;
}
.profile.links-ticket .profile-link-icon { border-style: dashed; border-radius: 8px 3px 8px 3px; }
.profile.links-ticket .profile-links a:hover,
.profile.links-ticket .profile-pages a:hover,
.profile.links-ticket .detail-nav a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); }

.profile.a11y-reduced-motion .profile-links a,
.profile.a11y-reduced-motion .profile-pages a,
.profile.a11y-reduced-motion .detail-nav a { transition: none; }
@media (prefers-reduced-motion: reduce) {
    .profile .profile-links a,
    .profile .profile-pages a,
    .profile .detail-nav a { transition: none; }
}
.comfort-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid #d8e4ed;
    border-radius: 16px;
    background: #f5faff;
}
.comfort-row .row-actions { grid-column: 1 / -1; }
.consent-editor-note,
.consent-reminder {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #e4c661;
    border-radius: 16px;
    background: #fff4c9;
    color: #5f490c;
    font-size: 13px;
    line-height: 1.65;
}
.comfort-intro { white-space: pre-wrap; line-height: 1.7; }
.comfort-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    text-align: left;
}
.comfort-item {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--edge);
    border-radius: 18px;
    background: var(--button);
}
.comfort-item h2 { margin: 0 0 10px; font-size: 16px; }
.comfort-status {
    display: inline-block;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e6edf4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2px;
}
.comfort-note { margin: 12px 0 0; font-size: 13px; line-height: 1.55; }
.comfort-item.status-yes .comfort-status { background: #d9f1dc; color: #285c32; }
.comfort-item.status-ask .comfort-status { background: #fff0b7; color: #6c5108; }
.comfort-item.status-trusted .comfort-status { background: #e6ddfa; color: #4f3a78; }
.comfort-item.status-no .comfort-status { background: #f8dfe2; color: #792f3a; }
@media (max-width: 720px) {
    .comfort-row { grid-template-columns: 1fr; }
    .comfort-row .row-actions { grid-column: auto; }
}
@media (max-width: 520px) {
    .comfort-grid { grid-template-columns: 1fr; }
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 20px;
}
.role-choice {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #c9dce9;
    border-radius: 14px;
    background: #f3f9ff;
}
.identity-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 18px;
}
.identity-meta:empty { display: none; }
.role-pill,
.pronouns {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: var(--button);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}
.pronouns {
    border-style: dashed;
    background: #fff4c9;
    color: #5f490c;
}

/* Public profiles use a distraction-free Linktree-style shell. */
body.public-profile {
    min-height: 100vh;
    min-height: 100svh;
}
.public-profile .profile-main {
    display: grid;
    justify-items: center;
    align-items: start;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: clamp(24px, 5vw, 64px) 20px;
}
.public-profile .profile {
    display: flex;
    flex-direction: column;
    width: min(100%, 440px);
}
.public-profile .profile.profile-detail { width: min(100%, 760px); }
.public-profile .profile-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.public-profile .signature { margin-top: auto; padding-top: 30px; }
.signature a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 600px) {
    body.public-profile { background: #fff; }
    .public-profile .profile-main { display: block; padding: 0; }
    .public-profile .profile {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100svh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .public-profile .profile.profile-detail { width: 100%; max-width: none; }
    .public-profile .profile-content,
    .public-profile .profile-detail .profile-content {
        padding-right: clamp(20px, 6vw, 30px);
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        padding-left: clamp(20px, 6vw, 30px);
    }
    .public-profile .draft-preview-notice { margin: 12px; }
}
@media (max-width: 620px) {
    .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Larger profile photo and non-destructive image framing. */
.banner { overflow: hidden; }
.avatar {
    width: 118px;
    height: 118px;
    margin-top: -59px;
    z-index: 3;
    font-size: 40px;
}
.profile-content { position: relative; z-index: 2; }
.avatar img,
.banner img { will-change: transform; }
.image-framing fieldset {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d8e4ed;
    border-radius: 16px;
    background: #f8fcff;
}
.image-framing legend {
    padding: 0 8px;
    color: #123e78;
    font-size: 13px;
    font-weight: 800;
}
.crop-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.crop-controls label { margin-bottom: 10px; }
.ref-sheet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 0 var(--edge);
}
.ref-sheet-link:hover { transform: translateY(-1px); }
.profile.profile-has-background { background-repeat: no-repeat; }

/* Compact, playful Care & Comforts rows. */
.comfort-grid { gap: 10px; }
.comfort-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 3px 0 var(--edge);
}
.comfort-item h2 {
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}
.comfort-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--edge);
    border-radius: 13px;
    background: #eef7ff;
    font-size: 21px;
    line-height: 1;
}
.comfort-item:nth-child(4n+2) .comfort-icon { background: #fff1bd; }
.comfort-item:nth-child(4n+3) .comfort-icon { background: #eee5ff; }
.comfort-item:nth-child(4n+4) .comfort-icon { background: #e7f4df; }
.comfort-status {
    margin: 0;
    white-space: nowrap;
}
.comfort-note {
    grid-column: 2 / -1;
    margin: 0;
    text-align: left;
}
.comfort-emoji-picker select { font-size: 15px; }
.comfort-icon-field input { min-height: 46px; font-size: 22px; }
.comfort-note-field { grid-column: 1 / -1; }
.fursona-ref-editor {
    margin: 14px 0;
    padding: 16px;
    border: 1px solid #cbddea;
    border-radius: 16px;
    background: #f6fbff;
}
.fursona-ref-upload {
    padding: 13px;
    border: 2px dashed #9fc5df;
    border-radius: 14px;
    background: #fff;
    color: #174f87;
}
.fursona-ref-upload input { margin-top: 9px; background: #f9fcff; }
.fursona-ref-status {
    margin: -4px 2px 10px;
    color: #48667e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}
.fursona-ref-status.is-error { color: #9a2638; }
@media (max-width: 520px) {
    .crop-controls { grid-template-columns: 1fr; }
    .comfort-grid { grid-template-columns: 1fr; }
    .comfort-item { min-height: 62px; padding: 10px 12px; }
}

/* Image tools live beside their uploaders instead of at the bottom of the editor. */
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.panel-heading h2 { margin-bottom: 4px; }
.panel-heading .eyebrow { margin: 0 0 5px; }
.panel-step {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff1bd;
    color: #684c00;
    font-size: 11px;
    font-weight: 800;
}
.media-intro { margin: 12px 0 20px; }
.media-editor-list { display: grid; gap: 16px; }
.media-editor-card {
    padding: 18px;
    border: 1px solid #cbddea;
    border-radius: 18px;
    background: #f6fbff;
    box-shadow: 0 3px 0 #dceaf4;
}
.media-editor-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.media-editor-heading h3 { margin: 0 0 3px; color: #123e78; font-size: 16px; }
.media-editor-heading p { margin: 0; color: #657285; font-size: 12px; line-height: 1.45; }
.media-editor-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #cbddea;
    border-radius: 14px;
    background: #fff;
    font-size: 22px;
}
.media-file-label {
    margin: 0;
    padding: 13px;
    border: 2px dashed #9fc5df;
    border-radius: 14px;
    background: #fff;
    color: #174f87;
    font-weight: 800;
}
.media-file-label input {
    margin-top: 9px;
    padding: 7px;
    border-color: #d8e4ed;
    background: #f9fcff;
    font-weight: 500;
}
.media-file-status {
    margin: 9px 2px 0;
    color: #68788a;
    font-size: 11px;
    line-height: 1.45;
}
.media-framing {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #d4e3ed;
    border-radius: 14px;
    background: #fff;
}
.media-framing[hidden] { display: none; }
.media-framing h4 { margin: 0 0 12px; color: #174f87; font-size: 13px; }
.media-inline-preview { margin: 0 0 16px; }
.media-inline-preview-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 9px;
}
.media-inline-preview-heading strong { color: #123e78; font-size: 12px; }
.media-inline-preview-heading span { color: #6a788a; font-size: 10px; }
.media-profile-preview {
    --media-preview-banner-height: 98px;
    --media-preview-surface: #f5edff;
    --media-preview-ink: #443353;
    --media-preview-avatar-size: 94px;
    --media-preview-avatar-half: 47px;
    --media-preview-body-height: 126px;
    --media-preview-copy-offset: 58px;
    position: relative;
    height: calc(var(--media-preview-banner-height) + var(--media-preview-body-height));
    min-height: 210px;
    overflow: hidden;
    border: 1px solid #bfd5e5;
    border-radius: 15px;
    background: var(--media-preview-surface);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.media-preview-banner {
    position: relative;
    height: var(--media-preview-banner-height);
    overflow: hidden;
    background: linear-gradient(135deg, #dceeff, #f7e9ff 55%, #fff1c8);
}
.media-preview-banner img,
.media-preview-avatar img,
.media-background-preview > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-preview-banner img,
.media-preview-avatar img { display: block; }
.media-preview-banner img[hidden],
.media-preview-avatar img[hidden],
.media-background-preview > img[hidden],
.media-preview-placeholder[hidden] { display: none; }
.media-preview-avatar {
    position: absolute;
    z-index: 3;
    top: calc(var(--media-preview-banner-height) - var(--media-preview-avatar-half));
    left: 50%;
    display: grid;
    width: var(--media-preview-avatar-size);
    height: var(--media-preview-avatar-size);
    overflow: hidden;
    place-items: center;
    border: 5px solid var(--media-preview-surface);
    border-radius: 50%;
    background: #edf7ff;
    box-shadow: 0 3px 10px rgba(20,63,112,.2);
    color: #184979;
    font-size: 30px;
    transform: translateX(-50%);
}
.media-profile-preview.focus-avatar .media-preview-avatar { box-shadow: 0 0 0 3px #1695df, 0 5px 13px rgba(20,63,112,.25); }
.media-profile-preview.focus-banner .media-preview-banner { box-shadow: inset 0 0 0 3px #1695df; }
.media-preview-profile-surface {
    height: var(--media-preview-body-height);
    background: var(--media-preview-surface);
}
.media-preview-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #46647f;
    font-size: 11px;
    font-weight: 800;
}
.media-preview-profile-copy {
    position: absolute;
    z-index: 2;
    top: calc(var(--media-preview-banner-height) + var(--media-preview-copy-offset));
    right: 18px;
    left: 18px;
    display: grid;
    gap: 3px;
    color: var(--media-preview-ink);
    text-align: center;
}
.media-preview-profile-copy strong {
    overflow: hidden;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.45px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.media-preview-profile-copy span { font-size: 11px; line-height: 1.35; opacity: .65; }
.media-background-preview {
    position: relative;
    display: grid;
    height: 176px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #bfd5e5;
    border-radius: 15px;
    background: linear-gradient(135deg, #dceeff, #f7e9ff);
}
.media-background-preview > img {
    position: absolute;
    inset: 0;
}
.media-background-tint {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(245,237,255,.82);
}
.media-background-profile {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(72%, 230px);
    padding: 17px;
    gap: 10px;
    border: 1px solid rgba(44,81,121,.22);
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 22px rgba(26,56,91,.18);
}
.media-background-profile i {
    width: 46px;
    height: 46px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #acd9f6;
    box-shadow: 0 2px 6px rgba(24,73,121,.2);
}
.media-background-profile b { height: 8px; border-radius: 999px; background: #b9ccda; }
.media-background-profile b:nth-of-type(1) { width: 52%; background: #7fa8c6; }
.media-background-profile b:nth-of-type(2) { width: 88%; }
.media-background-profile b:nth-of-type(3) { width: 74%; }
.range-control { margin: 0 0 12px; }
.range-control > span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #536579;
    font-size: 11px;
}
.range-control output {
    min-width: 46px;
    color: #006bc9;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.range-control input {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}
.image-url-options {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e2d7b5;
    border-radius: 14px;
    background: #fffcf0;
}
.image-url-options summary { color: #244c7c; cursor: pointer; font-size: 13px; font-weight: 800; }
.image-url-options[open] summary { margin-bottom: 14px; }
.media-upload-note { margin: 14px 2px 0; }
@media (max-width: 520px) {
    .panel-heading { display: block; }
    .panel-step { display: inline-block; margin-top: 7px; }
    .media-editor-card { padding: 15px; }
    .media-inline-preview-heading { display: grid; }
    .media-profile-preview {
        --media-preview-avatar-size: 86px;
        --media-preview-avatar-half: 43px;
        --media-preview-body-height: 116px;
        --media-preview-copy-offset: 52px;
        min-height: 200px;
    }
    .media-preview-profile-copy { right: 12px; left: 12px; }
    .media-preview-profile-copy strong { font-size: 18px; }
}

/* Link icons: automatic social logos with optional emoji or custom images. */
.link-row {
    padding: 18px;
    border: 1px solid #d8e7f4;
}
.link-main-fields,
.link-icon-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}
.link-icon-fields {
    margin-top: 4px;
    padding-top: 15px;
    border-top: 1px dashed #c8dceb;
}
.link-section-field { grid-column: 1 / -1; }
.link-section-field > span {
    margin-left: 4px;
    color: #617187;
    font-size: 11px;
    font-weight: 600;
}
.link-icon-fields > label:only-child,
.link-icon-url { grid-column: 1 / -1; }
.link-icon-extra[hidden] { display: none; }
.link-icon-fields select { min-height: 46px; }
.link-icon-fields [data-link-emoji] { font-size: 20px; }
@media (max-width: 520px) {
    .link-main-fields,
    .link-icon-fields { grid-template-columns: 1fr; }
    .link-section-field { grid-column: auto; }
    .link-icon-url { grid-column: auto; }
}

/* Self-service account deletion stays separate from ordinary profile editing. */
.account-settings {
    margin-top: 34px;
    border-color: #e4d9dc;
    scroll-margin-top: 24px;
}
.heading-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.account-jump { color: #53627a; font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
.account-settings > h2 { margin-bottom: 8px; }
.danger-zone {
    margin-top: 22px;
    border: 1px solid #e2aab2;
    border-radius: 16px;
    background: #fff7f8;
    overflow: hidden;
}
.danger-zone summary {
    padding: 16px 18px;
    color: #8e2637;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
}
.danger-zone[open] summary { border-bottom: 1px solid #efd0d5; }
.danger-zone-content { max-width: 680px; padding: 20px; }
.danger-warning {
    margin: 0 0 20px;
    padding: 15px 16px;
    border-left: 5px solid #bd3148;
    border-radius: 10px;
    background: #ffe8ec;
    color: #6d2030;
    font-size: 13px;
    line-height: 1.65;
}
.delete-acknowledgement {
    align-items: flex-start;
    margin: 4px 0 20px;
    color: #6d2030;
    line-height: 1.5;
}
.delete-acknowledgement input { margin-top: 2px; }
.danger-button {
    background: #a9293e;
    box-shadow: 0 3px 0 #721b2a;
}
.danger-button:hover { background: #8f2034; }
.danger-button:disabled { cursor: wait; opacity: .72; }
.account-deleted { max-width: 720px; margin: 24px auto; }
@media (max-width: 760px) {
    .heading-actions { align-items: flex-start; }
}

/* 1.0 community, privacy, and accessibility tools. */
.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.drag-handle {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    min-height: 0;
    align-items: center;
    justify-self: start;
    margin: 0 0 12px;
    padding: 6px 10px;
    border: 1px solid #b8d9ef;
    border-radius: 999px;
    background: #fff;
    color: #47647e;
    box-shadow: none;
    cursor: grab;
    font-size: 11px;
    line-height: 1.2;
}
.drag-handle:active { cursor: grabbing; }
.comfort-row > .drag-handle { grid-column: 1 / -1; }
.link-row[draggable="true"],
.comfort-row[draggable="true"] { cursor: grab; }
.link-row[draggable="true"] label,
.comfort-row[draggable="true"] label { cursor: default; }
.link-row[draggable="true"] input,
.comfort-row[draggable="true"] input,
.link-row[draggable="true"] textarea,
.comfort-row[draggable="true"] textarea { cursor: text; }
.is-dragging { cursor: grabbing; opacity: .55; outline: 2px dashed #006bc9; }
.section-editor > .drag-handle { margin-top: 14px; }
.section-title-icon { margin-right: 8px; }
.image-alt-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin-top: 18px;
}
.image-alt-fields label > span,
.community-settings label > span,
.kind-word-form label > span,
.profile-report label > span { color: #657285; font-size: 11px; font-weight: 600; }
.accessibility-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 20px;
    padding: 16px;
    border: 1px solid #cbddea;
    border-radius: 16px;
    background: #f6fbff;
}
.accessibility-options legend { padding: 0 7px; color: #123e78; font-weight: 800; }
.accessibility-options .check { margin: 0; align-items: flex-start; }
.profile.a11y-large { font-size: 115%; }
.profile.a11y-large .bio,
.profile.a11y-large .profile-links a,
.profile.a11y-large .profile-pages a { font-size: 16px; }
.profile.a11y-contrast { --edge: currentColor; }
.profile.a11y-contrast .profile-links a,
.profile.a11y-contrast .profile-pages a,
.profile.a11y-contrast .section-answer { border-width: 2px; }
.profile.a11y-reduced-motion *,
.profile.a11y-reduced-motion *::before,
.profile.a11y-reduced-motion *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
.profile.a11y-reduced-motion .profile-links a:hover,
.profile.a11y-reduced-motion .profile-pages a:hover { transform: none; }

.starter-layout-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
    align-items: end;
    gap: 22px;
    border-top: 6px solid #ffd55a;
}
.starter-layout-panel h2 { margin-bottom: 8px; }
.starter-layout-controls { display: flex; align-items: end; gap: 10px; }
.starter-layout-controls label { flex: 1; margin: 0; }
.starter-layout-controls button { margin-bottom: 1px; white-space: nowrap; }
.privacy-sharing { border-top: 6px solid #7ec8f7; }
.private-link-box {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 17px;
    border: 1px solid #bdd9ec;
    border-radius: 16px;
    background: #f3faff;
}
.private-link-box > span { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.private-link-box > div { display: flex; flex-wrap: wrap; gap: 9px; }
.private-link-box form { display: inline; }
.private-link-box small { color: #617187; }
.emergency-hide-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px;
    border: 1px solid #e1abb3;
    border-radius: 16px;
    background: #fff6f7;
}
.emergency-hide-form div { display: grid; gap: 4px; }
.emergency-hide-form span { color: #70545a; font-size: 12px; line-height: 1.5; }
.draft-recovery {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 18px;
    border: 2px solid #e2bd49;
    border-radius: 18px;
    background: #fff5c9;
}
.draft-recovery[hidden] { display: none; }
.draft-recovery > div { display: flex; flex-wrap: wrap; gap: 8px; }
.draft-recovery > div:first-child { display: grid; gap: 3px; }
.draft-recovery span { color: #685412; font-size: 12px; }
.preview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.preview-heading .eyebrow { margin: 0 0 8px; }
.preview-heading label { min-width: 150px; margin: 0; font-size: 11px; }
.preview-heading select { margin-top: 4px; padding: 8px; font-size: 12px; }

.profile-discovery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 15px;
}
.profile-discovery:empty { display: none; }
.profile-region,
.profile-tag,
.directory-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: var(--button);
    font-size: 10px;
    font-weight: 800;
}
.community-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    padding: 5px 10px;
    border: 1px solid #d9b22e;
    border-radius: 999px;
    background: #fff2b5;
    color: #5e4700;
    font-size: 10px;
    font-weight: 900;
}

.kind-words { margin-top: 28px; padding-top: 22px; border-top: 2px dashed var(--edge); text-align: left; }
.kind-word-list { display: grid; gap: 10px; }
.kind-word {
    margin: 0;
    padding: 15px;
    border: 1px solid var(--edge);
    border-radius: 16px;
    background: var(--button);
}
.kind-word blockquote { margin: 0 0 8px; white-space: pre-wrap; font-size: 13px; line-height: 1.6; }
.kind-word figcaption { opacity: .72; font-size: 11px; font-weight: 800; }
.kind-word-form,
.profile-report {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid var(--edge);
    border-radius: 14px;
    background: var(--button);
    text-align: left;
}
.kind-word-form summary,
.profile-report summary { cursor: pointer; font-size: 12px; font-weight: 900; }
.kind-word-form[open] summary,
.profile-report[open] summary { margin-bottom: 16px; }
.profile-report { opacity: .82; }
.profile-report button,
.kind-word-form button { width: 100%; }
.kind-word-review-list { display: grid; gap: 12px; }
.kind-word-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    border: 1px solid #d8e4ed;
    border-radius: 16px;
    background: #f8fcff;
}
.kind-word-review blockquote { margin: 9px 0 6px; white-space: pre-wrap; }
.kind-word-review p { margin: 0; color: #617187; font-size: 12px; }
.kind-word-review .row-actions form { margin: 0; }
.review-status { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #fff1bd; font-size: 10px; font-weight: 900; }
.review-status.is-approved { background: #d9f1dc; color: #285c32; }
.public-action-notice { width: min(100% - 24px, 680px); margin: 0 auto 16px; }

.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.account-card { padding: 16px; border: 1px solid #d8e4ed; border-radius: 16px; background: #f8fcff; }
.account-card h3 { margin: 0 0 8px; color: #123e78; }
.account-card p { font-size: 12px; line-height: 1.55; }
.account-card summary { cursor: pointer; color: #174f87; font-size: 12px; font-weight: 800; }
.account-card details[open] summary { margin-bottom: 14px; }
.verification-state { display: inline-block; padding: 5px 8px; border-radius: 999px; background: #fff1bd; color: #614a00; font-weight: 800; }
.verification-state.is-verified { background: #d9f1dc; color: #285c32; }

.directory-shell { max-width: 1100px; margin: 0 auto; }
.directory-heading { max-width: 720px; }
.directory-heading > p:last-child { color: #536579; line-height: 1.7; }
.directory-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #d8e4ed;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 0 #ece5d7;
}
.directory-filters label { margin: 0; }
.directory-count { color: #536579; font-size: 13px; font-weight: 800; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.directory-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 19px;
    border: 1px solid #d5e3ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 5px 0 #e8e4d9;
}
.directory-card-main { display: flex; align-items: center; gap: 12px; color: #123e78; text-decoration: none; }
.directory-card-main > span:last-child { display: grid; min-width: 0; }
.directory-card-main strong { overflow-wrap: anywhere; font-size: 16px; }
.directory-card-main small { color: #657285; }
.directory-avatar { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; overflow: hidden; border-radius: 50%; background: #e4f3ff; color: #075fae; font-size: 22px; font-weight: 900; }
.directory-avatar img { width: 100%; height: 100%; object-fit: cover; }
.directory-card .identity-meta { justify-content: flex-start; margin: 14px 0 8px; }
.directory-region { margin: 6px 0; color: #47647e; font-size: 12px; font-weight: 800; }
.directory-bio { display: -webkit-box; overflow: hidden; margin: 8px 0; color: #425a70; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: 13px; line-height: 1.55; }
.directory-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.directory-tags span { border-color: #cbddea; background: #f2f9ff; color: #345979; }
.directory-open { margin-top: auto; color: #006bc9; font-size: 13px; font-weight: 900; text-underline-offset: 4px; }
.directory-empty { padding: 40px; border: 2px dashed #cbddea; border-radius: 22px; text-align: center; }
.guidelines { max-width: 900px; margin: 0 auto; }
.guidelines-intro { max-width: 700px; color: #52627a; font-size: 18px; line-height: 1.7; }
.guideline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 30px 0; }
.guideline-grid section { padding: 22px; border: 1px solid #d5e3ee; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 #e8e4d9; }
.guideline-grid section > span { font-size: 28px; }
.guideline-grid h2 { margin: 10px 0 8px; padding: 0; border: 0; color: #123e78; }
.guideline-grid p { margin: 0; color: #425a70; line-height: 1.7; }
.guidelines-footer { padding: 18px; border: 1px solid #e4c661; border-radius: 16px; background: #fff4c9; color: #5f490c; font-weight: 800; text-align: center; }

@media (max-width: 900px) {
    .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-grid { grid-template-columns: 1fr; }
    .directory-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .starter-layout-panel { grid-template-columns: 1fr; }
    .starter-layout-controls { display: grid; }
    .accessibility-options,
    .image-alt-fields,
    .directory-grid,
    .directory-filters { grid-template-columns: 1fr; }
    .guideline-grid { grid-template-columns: 1fr; }
    .emergency-hide-form,
    .draft-recovery,
    .kind-word-review { align-items: stretch; flex-direction: column; }
    .private-link-box > div { display: grid; }
    .private-link-box button,
    .emergency-hide-form button { width: 100%; }
    .top nav { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}

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

/* 1.2 dashboard navigation. */
.dashboard-tabs-shell {
    position: sticky;
    z-index: 30;
    top: 0;
    margin: 24px 0;
    padding: 10px;
    border: 1px solid #cbddea;
    border-radius: 22px;
    background: #fffdf8f2;
    box-shadow: 0 5px 18px #1d416312;
    backdrop-filter: blur(12px);
}
.dashboard-tabs-label {
    margin: 0 4px 8px;
    color: #52627a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.dashboard-tabs-label::after {
    display: none;
    margin-left: 9px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff0b9;
    color: #6a5000;
    content: "Unsaved changes";
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
}
.dashboard-tabs-shell.has-unsaved-changes .dashboard-tabs-label::after { display: inline-flex; }
.dashboard-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
}
.dashboard-tab {
    display: inline-flex;
    min-width: max-content;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: #365775;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.dashboard-tab:hover { background: #edf7ff; filter: none; }
.dashboard-tab[aria-selected="true"] {
    border-color: #8cc5eb;
    background: #e4f4ff;
    color: #064b9b;
    box-shadow: inset 0 -3px 0 #1680d2;
}
.dashboard-tab-icon { font-size: 15px; line-height: 1; }
.dashboard-tab-panel[hidden],
[data-dashboard-workspace][hidden],
.draft-recovery.is-tab-hidden { display: none !important; }
.dashboard-editor-workspace { margin-top: 0; }
.dashboard-standalone-panels { max-width: 1020px; margin: 0 auto; }
.dashboard-standalone-panels > .dashboard-tab-panel { scroll-margin-top: 116px; }
.dashboard-save-bar {
    position: sticky;
    z-index: 16;
    bottom: 12px;
    margin: 18px 0 2px;
    padding: 12px;
    border: 1px solid #bed7e8;
    border-radius: 18px;
    background: #fffffff2;
    box-shadow: 0 7px 24px #1737541f;
    backdrop-filter: blur(12px);
}
.dashboard-save-bar button { flex: 0 0 auto; }
.mobile-preview-toggle { display: none; width: 100%; margin: 0 0 16px; }

@media (max-width: 760px) {
    .dashboard-tabs-shell {
        margin: 20px -16px;
        padding: 9px 14px 6px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
    .dashboard-tabs { scroll-snap-type: x proximity; }
    .dashboard-tab { flex: 0 0 auto; scroll-snap-align: start; }
    .mobile-preview-toggle { display: block; }
    .dashboard-editor-workspace aside[data-preview-column] { display: none; }
    .dashboard-editor-workspace aside[data-preview-column].is-mobile-open {
        display: block;
        margin-top: 22px;
        padding-top: 20px;
        border-top: 2px dashed #bdd9ec;
    }
    .save.dashboard-save-bar {
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }
    .dashboard-save-bar span { line-height: 1.4; }
}

@media (max-width: 430px) {
    .dashboard-tab { padding: 9px 11px; }
    .save.dashboard-save-bar { align-items: stretch; flex-direction: column; }
    .dashboard-save-bar button { width: 100%; }
}

/* Quick visibility and guided profile setup. */
.dashboard-heading { align-items: flex-start; margin-bottom: 22px; }
.dashboard-heading > :first-child { max-width: 430px; }
.heading-actions {
    width: min(100%, 570px);
    align-items: stretch;
}
.heading-primary-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
}
.quick-visibility-form {
    display: grid;
    min-width: 360px;
    grid-template-columns: minmax(190px, 1fr) auto;
    gap: 7px 9px;
    padding: 10px 11px;
    border: 1px solid #b8d9ef;
    border-radius: 16px;
    background: #f4faff;
    box-shadow: 0 3px 0 #d8eaf7;
}
.quick-visibility-form label { margin: 0; }
.quick-visibility-form label > span {
    display: block;
    color: #174f87;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15px;
}
.quick-visibility-form select {
    min-height: 40px;
    margin-top: 4px;
    padding: 8px 10px;
    background: #fff;
}
.quick-visibility-form button {
    align-self: end;
    min-height: 40px;
    padding: 9px 14px;
}
.quick-visibility-form button:disabled,
.quick-visibility-form select:disabled { cursor: not-allowed; opacity: .65; }
.quick-visibility-form small {
    grid-column: 1 / -1;
    color: #5e7186;
    font-size: 10px;
    line-height: 1.35;
}
.open-preview-button {
    display: inline-flex;
    min-width: 132px;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}
.heading-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}
.setup-guide-button {
    padding: 8px 13px;
    border: 1px solid #e5bd43;
    background: #fff0b9;
    color: #654b00;
    box-shadow: none;
    font-size: 12px;
}
.setup-guide-button:hover { background: #ffe694; filter: none; }
.notice-warning { border-color: #e7c76a; background: #fff3c9; color: #664b08; }
.visibility-moved-note {
    margin: 18px 0 0;
    padding: 13px 15px;
    border: 1px solid #c4dced;
    border-radius: 13px;
    background: #f4faff;
}

.setup-progress-card {
    display: grid;
    grid-template-columns: minmax(250px, .85fr) minmax(330px, 1.15fr);
    gap: 26px;
    margin: 22px 0;
    padding: 24px;
    border: 1px solid #b9d9ee;
    border-radius: 24px;
    background: linear-gradient(135deg, #eef8ff 0%, #fffdf5 58%, #fff3c7 100%);
    box-shadow: 0 6px 22px #17375412;
}
.setup-progress-copy { align-self: center; }
.setup-progress-copy .eyebrow { margin: 0 0 6px; }
.setup-progress-copy h2 { margin-bottom: 8px; color: #064b9b; }
.setup-progress-copy > p:not(.eyebrow) { margin: 0 0 16px; color: #52627a; font-size: 13px; line-height: 1.55; }
.setup-progress-copy button { background: #0877ca; box-shadow: 0 3px 0 #075b9c; }
.setup-progress-details { align-self: center; }
.setup-progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: #365775; font-size: 12px; }
.setup-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #d8e8f3; }
.setup-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1386d6, #62b9e9); }
.setup-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.setup-checklist li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #cfdfeb;
    border-radius: 13px;
    background: #ffffffc7;
}
.setup-checklist li > span {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 10px;
    background: #edf5fb;
    font-size: 15px;
}
.setup-checklist li.is-done > span { background: #dcf1df; color: #277143; font-weight: 900; }
.setup-checklist li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.setup-checklist li div { min-width: 0; }
.setup-checklist strong,
.setup-checklist small { display: block; }
.setup-checklist strong { color: #294e72; font-size: 11px; }
.setup-checklist small { margin-top: 2px; color: #6b7888; font-size: 9px; line-height: 1.35; }

.setup-dialog {
    width: min(760px, calc(100vw - 28px));
    max-width: 760px;
    max-height: calc(100vh - 28px);
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: transparent;
    color: #302b40;
    box-shadow: 0 24px 70px #142f4d55;
}
.setup-dialog::backdrop { background: rgba(20, 36, 55, .64); backdrop-filter: blur(4px); }
.setup-dialog-card {
    position: relative;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #c4dbea;
    border-radius: 26px;
    background: #fffdf9;
}
.setup-dialog-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    background: #edf5fb;
    color: #365775;
    box-shadow: none;
    font-size: 24px;
    line-height: 1;
}
.setup-dialog-header { display: flex; align-items: center; gap: 15px; padding-right: 35px; }
.setup-dialog-header .eyebrow { margin: 0 0 3px; }
.setup-dialog-header h2 { margin: 0 0 5px; color: #064b9b; font-size: 25px; }
.setup-dialog-header p:last-child { margin: 0; color: #647186; font-size: 12px; line-height: 1.5; }
.setup-dialog-mascot {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 1px solid #e6c75e;
    border-radius: 19px;
    background: #fff1bd;
    font-size: 29px;
    transform: rotate(-4deg);
}
.setup-step-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 11px; color: #536b82; font-size: 11px; }
.setup-step-progress > div { display: flex; gap: 6px; }
.setup-step-progress [data-setup-dot] { width: 25px; height: 6px; border-radius: 999px; background: #d9e5ed; }
.setup-step-progress [data-setup-dot].is-complete { background: #76bd83; }
.setup-step-progress [data-setup-dot].is-current { background: #1680d2; }
.setup-step {
    min-height: 390px;
    padding: 25px;
    border: 1px solid #c9ddea;
    border-radius: 20px;
    background: linear-gradient(145deg, #f5fbff, #fff);
    text-align: center;
}
.setup-step[hidden] { display: none; }
.setup-step-icon { display: block; margin-bottom: 5px; font-size: 38px; }
.setup-step-state {
    display: inline-flex;
    margin: 0 0 7px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff0b9;
    color: #6b5000;
    font-size: 10px;
    font-weight: 850;
}
.setup-step-state.is-done { background: #dcf1df; color: #277143; }
.setup-step h3 { margin: 3px 0 9px; color: #174f87; font-size: 22px; }
.setup-step > p:not(.setup-step-state) { max-width: 480px; margin: 0 auto 18px; color: #5e6e7f; font-size: 13px; line-height: 1.6; }
.setup-step-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.setup-verification-note { padding: 10px 12px; border-radius: 12px; background: #fff3c9; color: #664b08 !important; }
.setup-dialog-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.setup-dialog-footer [hidden] { display: none; }
.setup-dialog-footer button:disabled { cursor: wait; opacity: .7; }
.setup-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    margin-top: 18px;
    text-align: left;
}
.setup-fields label,
.setup-upload-card label { margin-bottom: 14px; }
.setup-fields label > span,
.setup-upload-card label > span,
.setup-role-picker legend > span { color: #758294; font-size: 10px; font-weight: 600; }
.setup-fields small { display: block; margin-top: 6px; color: #69788a; font-size: 10px; line-height: 1.45; }
.setup-field-full { grid-column: 1 / -1; }
.setup-repeat-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.setup-repeat-row {
    padding: 15px;
    border: 1px solid #cbdfea;
    border-radius: 16px;
    background: #fff;
    text-align: left;
}
.setup-repeat-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.setup-repeat-heading strong { color: #174f87; font-size: 12px; }
.setup-row-remove {
    padding: 6px 9px;
    border-color: #e7c9cd;
    background: #fff5f6;
    color: #8a3440;
    box-shadow: none;
    font-size: 10px;
}
.setup-repeat-row .setup-fields { margin-top: 12px; }
.setup-repeat-row .setup-fields label { margin-bottom: 0; }
.setup-add-row { margin-top: 12px; box-shadow: none; }
.setup-add-row:disabled { cursor: not-allowed; opacity: .55; }
.setup-comfort-settings {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #cbdfea;
    border-radius: 16px;
    background: #f7fbfe;
    text-align: left;
}
.setup-comfort-settings .setup-fields { margin-top: 12px; }
.setup-comfort-enable {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eaf6ff;
    color: #174f87;
}
.setup-consent-note {
    margin: 15px 0 0 !important;
    padding: 11px 13px;
    border: 1px solid #e4c661;
    border-radius: 13px;
    background: #fff4c9;
    color: #5f490c !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
}
.setup-role-picker {
    margin: 2px 0 0;
    padding: 15px;
    border: 1px solid #cfdfeb;
    border-radius: 15px;
    background: #fff;
}
.setup-role-picker legend { padding: 0 7px; color: #174f87; font-size: 12px; font-weight: 850; }
.setup-role-picker > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.setup-role-picker .check {
    min-width: 0;
    margin: 0;
    padding: 7px 8px;
    border-radius: 10px;
    background: #f2f8fc;
    font-size: 11px;
}
.setup-role-picker input { flex: 0 0 auto; }
.setup-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; text-align: left; }
.setup-upload-card { padding: 15px; border: 1px solid #cfdfeb; border-radius: 17px; background: #fff; }
.setup-image-preview {
    display: grid;
    width: 92px;
    height: 92px;
    overflow: hidden;
    margin: 0 auto 14px;
    place-items: center;
    border: 4px solid #e1f0fa;
    border-radius: 50%;
    background: #f1f8fd;
    color: #4d6b85;
    font-size: 30px;
}
.setup-image-preview.is-banner { width: 100%; height: 92px; border-width: 1px; border-radius: 13px; }
.setup-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.setup-help-note { margin-top: 13px !important; font-size: 11px !important; }
.setup-privacy-options { display: grid; gap: 10px; max-width: 560px; margin: 18px auto; text-align: left; }
.setup-privacy-choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #c8dcea;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.setup-privacy-choice:has(input:checked) { border-color: #1680d2; background: #eaf6ff; box-shadow: 0 0 0 2px #b7def7; }
.setup-privacy-choice.is-disabled { cursor: not-allowed; opacity: .55; }
.setup-privacy-choice input { width: auto; flex: 0 0 auto; margin: 3px 0 0; }
.setup-privacy-choice span,
.setup-privacy-choice strong,
.setup-privacy-choice small { display: block; }
.setup-privacy-choice strong { color: #174f87; font-size: 13px; }
.setup-privacy-choice small { margin-top: 3px; color: #69788a; font-size: 10px; line-height: 1.45; }

@media (max-width: 980px) {
    .dashboard-heading { flex-direction: column; }
    .dashboard-heading > :first-child { max-width: 620px; }
    .heading-actions { width: 100%; align-items: stretch; }
    .heading-primary-actions { justify-content: flex-start; }
    .heading-secondary-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .setup-progress-card { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
    .heading-primary-actions { flex-direction: column; }
    .quick-visibility-form { min-width: 0; width: 100%; }
    .open-preview-button { width: 100%; min-height: 44px; }
    .heading-secondary-actions { justify-content: space-between; }
    .setup-checklist { grid-template-columns: 1fr; }
    .setup-progress-card { padding: 19px; border-radius: 20px; }
    .setup-dialog-card { padding: 22px 17px 18px; }
    .setup-dialog-header { align-items: flex-start; padding-right: 29px; }
    .setup-dialog-mascot { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; font-size: 23px; }
    .setup-dialog-header h2 { font-size: 21px; }
    .setup-step { min-height: 280px; padding: 21px 15px; }
    .setup-step-actions { display: grid; }
    .setup-dialog-footer button { flex: 1; padding: 11px 10px; }
    .setup-fields,
    .setup-upload-grid { grid-template-columns: 1fr; }
    .setup-field-full { grid-column: auto; }
    .setup-role-picker > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .setup-checklist li:last-child:nth-child(odd) { grid-column: auto; }
    .setup-repeat-row,
    .setup-comfort-settings { padding: 13px; }
}

/* 1.2 Telegram sign-in and account connection. */
.telegram-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-color: #168acd;
    background: #229ed9;
    color: #fff;
    text-decoration: none;
}
.telegram-login-button:hover { background: #168acd; color: #fff; filter: none; }
.telegram-login-button > span,
.telegram-mark {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff2b;
    font-size: 17px;
}
.auth > .telegram-login-button { width: 100%; }
.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #6b7886;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { height: 1px; background: #d9e4ec; content: ""; }
.telegram-privacy-note { margin: 9px 0 0; color: #607083; font-size: 11px; line-height: 1.5; text-align: center; }
.telegram-signup-identity,
.telegram-connected {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #a9d8f0;
    border-radius: 16px;
    background: #effaff;
}
.telegram-signup-identity .telegram-mark,
.telegram-connected .telegram-mark { flex: 0 0 42px; width: 42px; height: 42px; background: #229ed9; color: #fff; }
.telegram-signup-identity div,
.telegram-connected div { display: grid; gap: 3px; }
.telegram-signup-identity p,
.telegram-connected p { margin: 0; color: #536b80; font-size: 12px; line-height: 1.5; }
.telegram-account-settings { border-top: 6px solid #229ed9; }
.telegram-account-settings > p { max-width: 720px; }
.account-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Branded profile-not-found page for missing, private, or unavailable profiles. */
.profile-not-found {
    max-width: 980px;
    min-height: calc(100vh - 245px);
    margin: 38px auto 54px;
    display: grid;
    align-items: center;
}
.not-found-card {
    display: grid;
    grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid #bed8ea;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 9px 0 #e8e4d9, 0 25px 60px rgba(26,65,102,.12);
}
.not-found-art {
    position: relative;
    display: grid;
    min-height: 430px;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(circle at 82% 17%, #fff4a9 0 25px, transparent 26px),
        linear-gradient(155deg, #007fe5 0%, #75ccff 58%, #d9f2ff 100%);
}
.not-found-art::after {
    position: absolute;
    right: -12%;
    bottom: -70px;
    left: -12%;
    height: 155px;
    border-radius: 50% 50% 0 0;
    background: #fff;
    content: "";
}
.not-found-art img {
    position: relative;
    z-index: 3;
    width: min(75%, 260px);
    height: auto;
    border: 8px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: #fff7be;
    box-shadow: 0 12px 34px rgba(0,58,114,.28);
}
.not-found-cloud {
    position: absolute;
    z-index: 1;
    width: 118px;
    height: 35px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
}
.not-found-cloud::before,
.not-found-cloud::after {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    content: "";
}
.not-found-cloud::before { left: 19px; width: 50px; height: 50px; }
.not-found-cloud::after { right: 17px; width: 65px; height: 65px; }
.not-found-cloud.cloud-one { top: 65px; left: -38px; transform: scale(.82); }
.not-found-cloud.cloud-two { right: -43px; bottom: 92px; transform: scale(.67); }
.not-found-paws {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 28px;
    display: grid;
    color: rgba(255,255,255,.72);
    font-size: 27px;
    transform: rotate(21deg);
}
.not-found-paws i,
.not-found-paws b { font-style: normal; font-weight: 400; }
.not-found-paws i { margin: 9px 0 0 24px; font-size: 20px; }
.not-found-paws b { margin: 4px 0 0 45px; font-size: 14px; }
.not-found-copy {
    align-self: center;
    padding: clamp(32px, 5vw, 62px);
}
.not-found-copy .eyebrow { margin: 0 0 8px; color: #3d648d; }
.not-found-copy h1 {
    max-width: 560px;
    margin: 0 0 14px;
    color: #064b9b;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -2px;
}
.missing-handle {
    display: inline-flex;
    max-width: 100%;
    margin: 5px 0 17px;
    padding: 8px 13px;
    overflow-wrap: anywhere;
    border: 1px solid #b9d9ef;
    border-radius: 999px;
    background: #edf8ff;
    color: #145383;
    font-size: 13px;
    font-weight: 800;
}
.not-found-intro {
    max-width: 570px;
    margin: 0;
    color: #53657a;
    font-size: 16px;
    line-height: 1.7;
}
.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 27px 0 22px;
}
.not-found-actions .button { text-align: center; }
.not-found-help {
    margin: 0;
    padding-top: 18px;
    border-top: 1px dashed #c7dce9;
    color: #647287;
    font-size: 12px;
    line-height: 1.6;
}
.not-found-help a { color: #006bc9; font-weight: 800; text-underline-offset: 3px; }

@media (max-width: 760px) {
    .profile-not-found { min-height: 0; margin: 24px auto 42px; }
    .not-found-card { grid-template-columns: 1fr; border-radius: 24px; }
    .not-found-art { min-height: 225px; }
    .not-found-art::after { bottom: -92px; height: 138px; }
    .not-found-art img { width: 155px; border-width: 6px; }
    .not-found-copy { padding: 29px 22px 32px; text-align: center; }
    .not-found-copy h1 { margin-inline: auto; font-size: clamp(32px, 11vw, 44px); letter-spacing: -1.4px; }
    .not-found-intro { font-size: 14px; }
    .not-found-actions { display: grid; }
    .not-found-actions .button { width: 100%; }
    .not-found-help { text-align: left; }
}

/* Staff navigation in the existing member dashboard */
.crinkle-staff-shortcut{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;margin:12px 0 22px;background:#fff5ce;border:2px solid #f6d25d;border-radius:18px;color:#063b87;font-weight:800;box-shadow:0 4px 0 #e8e3d8}.crinkle-staff-shortcut a{display:inline-block;padding:10px 15px;border-radius:12px;background:#064b99;color:white;text-decoration:none;font-weight:800}.crinkle-staff-shortcut a:hover{background:#023670}@media(max-width:540px){.crinkle-staff-shortcut{flex-direction:column;align-items:stretch}.crinkle-staff-shortcut a{text-align:center}}

/* Bluesky preview (works with native Crinkle shell) */
/* Scoped, native-dashboard-friendly preview styling */
.cb-preview{--cb-ink:#302b42;--cb-line:#e8e2d6;--cb-soft:#fffaf0;color:var(--cb-ink);background:#fffdf7;border:1px solid var(--cb-line);border-radius:20px;padding:clamp(16px,3vw,28px);margin:15px 0 22px;box-shadow:0 5px 18px #66573b0a}.cb-preview *{box-sizing:border-box}.cb-preview .cb-header{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}.cb-preview .cb-header h2,.cb-preview .cb-header h3{margin:3px 0 12px;color:var(--cb-ink)}.cb-preview .cb-state{display:inline-block;border-radius:99px;background:#fff0c6;color:#77591a;padding:7px 12px;font-size:12px;font-weight:750;white-space:nowrap}.cb-preview .cb-identity{background:var(--cb-soft);border:1px solid var(--cb-line);border-radius:14px;padding:16px;display:grid;gap:14px;margin:18px 0}.cb-preview .cb-identity>div{display:grid;gap:3px;overflow-wrap:anywhere}.cb-preview .cb-identity small,.cb-preview .cb-kpis small{font-size:12px;color:#746b83}.cb-preview .cb-identity strong{font-size:18px;color:#3d4d9b}.cb-preview .cb-identity a{font-weight:650}.cb-preview .cb-action{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:20px}.cb-preview .cb-action button{background:#9eabc8!important;opacity:.72!important;color:white!important;cursor:not-allowed!important;border:0;border-radius:12px;padding:11px 15px;font-weight:700}.cb-preview .cb-action p,.cb-preview .cb-fine{font-size:13px;color:#746b83;margin:4px 0}.cb-preview .cb-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.cb-preview .cb-kpis>div{background:#f7f5fa;border-radius:13px;padding:14px;display:grid;gap:3px}.cb-preview .cb-kpis strong{font-size:24px}.cb-preview .cb-checklist{padding-left:22px;line-height:1.7}.cb-preview .cb-warning{background:#fff0d2;padding:12px;border-radius:12px}@media(max-width:650px){.cb-preview .cb-kpis{grid-template-columns:1fr}.cb-preview .cb-action{display:grid}.cb-preview .cb-action button{width:100%}}


/* Identity v0.2.0 */
.cci-root .cci-feature{background:#fff;border:1px solid #ece2cf;border-radius:16px;padding:18px;margin:15px 0;display:grid;gap:12px}
.cci-root .cci-feature h3{margin:0;font-size:19px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cci-root .cci-feature p{margin:0;line-height:1.5}
.cci-root .cci-pill{display:inline-block;border:1px solid #e8dab9;background:#fff4d8;color:#79551e;font-size:11px;border-radius:20px;padding:5px 9px}
.cci-root .cci-form{display:grid;gap:10px;margin:0;max-width:100%}.cci-root .cci-form label:not(.cci-checkbox){display:grid;gap:5px;font-weight:650}.cci-root .cci-form input:not([type=checkbox]){width:100%;max-width:100%;border:1px solid #cec7b8;border-radius:10px;padding:10px;font:inherit;background:#fff}
.cci-root .cci-checkbox{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700}.cci-root .cci-checkbox input{width:18px;height:18px;flex-shrink:0}
.cci-root .cci-form button,.cci-root .cci-search button{justify-self:start;background:#1455a1;color:#fff;border:0;border-radius:10px;padding:11px 16px;font:inherit;font-weight:750;cursor:pointer}
.cci-root .cci-form button:disabled{background:#aab7c9!important;color:#fff!important;cursor:not-allowed;opacity:.65}.cci-root .cci-form .cci-secondary{background:#fff3d9;color:#674d27;border:1px solid #ebd29d}
.cci-root .cci-proof{background:#f1f7ff;border:1px solid #d4e4fc;border-radius:12px;padding:14px}.cci-root .cci-proof code{display:block;overflow-wrap:anywhere;font-size:14px;padding:10px;margin:9px 0;background:#fff;border-radius:8px}
.cci-root .cci-notice{background:#eaf5fd;border-left:4px solid #2b6cb0;border-radius:7px;padding:11px;margin:10px 0}.cci-root .cci-search{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.cci-root .cci-search label{flex:1;min-width:180px;display:grid;gap:5px}
.cci-root .cci-members{display:grid;gap:9px;margin:16px 0}.cci-root .cci-member{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#fff;border:1px solid #eee2cd;border-radius:12px;padding:12px;flex-wrap:wrap}.cci-root .cci-member p{margin:4px 0}.cci-root .cci-member small{color:#607084}.cci-root .cci-trust{display:flex;align-items:center;flex-wrap:wrap}

/* Front-end compact rich-text editing */
.crinkle-rich-editor{border:1px solid #cddceb;border-radius:16px;background:#fff;overflow:hidden;margin:.5rem 0 1rem}
.crinkle-rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;border-bottom:1px solid #e4eaf3;background:#f6faff}
.crinkle-rich-toolbar button{width:auto;min-width:35px;padding:6px 9px;border:1px solid #d6e1f0;border-radius:8px;background:white;color:#174d8b;box-shadow:none;line-height:1.3;font:inherit;font-size:.88rem}
.crinkle-rich-toolbar button:hover,.crinkle-rich-toolbar button:focus-visible{background:#e5f3ff;outline:2px solid #78c5ff;outline-offset:0}
.crinkle-rich-surface{min-height:110px;max-height:440px;overflow:auto;padding:12px 14px;line-height:1.6;color:#173358;outline:none;overflow-wrap:anywhere;white-space:normal}
.crinkle-rich-surface:focus{box-shadow:inset 0 0 0 2px #80c4ff}
.crinkle-rich-surface p{margin:0 0 .7em}
.crinkle-rich-surface ul,.crinkle-rich-surface ol,.rich-output ul,.rich-output ol{padding-left:1.5em;margin:.5em 0}
.crinkle-rich-surface a,.rich-output a{color:#0666bb;text-decoration:underline;overflow-wrap:anywhere}
.rich-output{white-space:normal;overflow-wrap:anywhere}
.rich-output p{margin:0 0 .65em}.rich-output p:last-child{margin-bottom:0}
.crinkle-rich-editor textarea[data-rich-editor]{display:none}
