:root {
    font-family: "DM Sans", Inter, system-ui, sans-serif;
    color: #16342a;
    background: #fbfcf7;
    --ink: #16342a;
    --muted: #425d52;
    --deep: #0f3429;
    --accent: #c5f77c;
    --line: #d8e6dc;
    --surface: #fff;
    --soft: #eff6ec;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: #205946; text-underline-offset: .19em; font-weight: 650; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid #527d51; outline-offset: 4px;
}
h1, h2, h3, p { margin: 0 0 .7rem; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.14rem; }
.wrap { width: min(100% - 2.6rem, 1120px); margin-inline: auto; }
.top { background: #fbfcf7; border-bottom: 1px solid var(--line); }
.bar { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; min-height: 76px; padding-block: .85rem; }
.bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.bar nav a { font-size: .92rem; text-decoration: none; }
.bar nav a[aria-current] { text-decoration: underline; }
.brand { color: var(--deep); align-items: center; display: inline-flex; gap: .35rem; font-size: 1.85rem; letter-spacing: -.09em; font-weight: 850; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand-dot { color: #4b854f; margin-left: -.25rem; }
.mark { display: inline-grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: .6rem; background: var(--deep); color: var(--accent); font-size: 1.1rem; letter-spacing: 0; }
.button { display: inline-flex; gap: .65rem; justify-content: center; align-items: center; width: fit-content; min-height: 44px; padding: .68rem 1rem; border: 1px solid transparent; border-radius: .7rem; background: var(--deep); color: #fff; font-weight: 720; text-decoration: none; }
.button:hover { background: #195540; color: #fff; }
.button.small { min-height: 40px; padding: .45rem .72rem; font-size: .9rem; }
.button.ghost { background: var(--soft); border-color: var(--line); color: var(--deep); }
.button.ghost:hover { background: #e1eee0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5.25rem); padding-block: clamp(3rem, 8vw, 7rem); }
.hero h1 { font-size: clamp(2.7rem, 6.1vw, 5.2rem); margin-bottom: 1.35rem; }
.hero h1 span { color: #528746; }
.lead { font-size: clamp(1.03rem, 2vw, 1.22rem); max-width: 58ch; color: var(--muted); }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .14em; color: #42634d; margin-bottom: .95rem; }
.hero .cta { margin-top: 1rem; background: var(--accent); color: #1a3929; padding: .85rem 1.12rem; }
.hero .cta:hover { background: #a9e863; }
.hero-note { margin-top: .85rem; font-size: .9rem; color: var(--muted); }
.hero-visual {
    background: radial-gradient(ellipse at 100% 0%, #397256, transparent 65%), var(--deep);
    color: #fff; border-radius: 1.55rem; padding: clamp(1.2rem, 3vw, 2rem);
    box-shadow: 0 18px 44px #11352726;
}
.demo-top, .demo-foot { color: #dbf3e5; font-size: .9rem; font-weight: 650; }
.demo-dot { display: inline-block; height: .56rem; width: .56rem; border-radius: 50%; margin-right: .45rem; background: var(--accent); }
.demo-link { font: 500 clamp(.94rem, 2.3vw, 1.26rem) ui-monospace, monospace; background: #fff; color: var(--deep); border-radius: .7rem; margin: 1rem 0; padding: 1rem; overflow-wrap: anywhere; }
.demo-link strong { color: #2c6c4c; }
.chat-card { border-radius: 1rem; overflow: hidden; background: #e7f1e8; color: var(--deep); min-height: 155px; }
.chat-header { display: flex; gap: .7rem; align-items: center; padding: .7rem 1rem; background: #d6e7dc; }
.chat-header small { color: #36554a; }
.chat-avatar { display: grid; place-items: center; border-radius: 50%; background: #355f4b; color: #fff; width: 2.2rem; height: 2.2rem; font-weight: 800; }
.chat-bubble { position: relative; padding: .65rem 1.9rem .65rem .8rem; background: #c6f1d0; border-radius: .65rem .65rem .1rem .65rem; width: fit-content; max-width: calc(100% - 1.7rem); margin: 1rem .85rem 1rem auto; font-size: .92rem; }
.chat-bubble span { position: absolute; right: .55rem; bottom: .65rem; color: #15503b; }
.demo-foot { margin-top: 1rem; }
.demo-foot span { color: var(--accent); margin-right: .3rem; }
.band { background: #ecf4e8; border-block: 1px solid var(--line); }
.section { padding-block: clamp(2.4rem, 6.5vw, 5rem); }
.feature-grid, .portal-grid, .split { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { margin-top: 1.5rem; }
.feature-grid article, .info-card, .card { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); padding: clamp(1rem, 2.7vw, 1.6rem); min-width: 0; }
.feature-grid article p, .info-card p { color: var(--muted); }
.feature-grid article p:last-child { margin-bottom: 0; }
.portal-grid, .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.split { align-items: center; gap: 2rem; }
.info-card { background: #e5f2de; }
.card h2 { font-size: 1.5rem; }
.portal-grid { margin-top: 1.5rem; }
.narrow { max-width: 540px; margin-inline: auto; }
.narrow h1 { font-size: clamp(2rem, 5vw, 3rem); }
.faqs { padding-top: 0; max-width: 740px; }
details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
summary { cursor: pointer; color: inherit; font-weight: 700; }
details p { margin: .45rem 0 0; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; align-items: center; color: var(--muted); font-size: .9rem; }
form { display: grid; gap: .85rem; margin-top: 1rem; }
label { display: grid; gap: .22rem; font-weight: 690; color: var(--ink); min-width: 0; }
label small, .muted { color: var(--muted); font-size: .9rem; font-weight: 500; }
input, textarea, select { min-width: 0; width: 100%; color: var(--ink); background: #fff; border: 1px solid #aabdb1; border-radius: .52rem; padding: .62rem .75rem; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--deep); }
.check { display: flex; align-items: center; gap: .45rem; }
.actions { display: flex; gap: .65rem 1rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.search { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; margin-bottom: 1rem; }
.saved { margin-top: .9rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.saved p { white-space: pre-wrap; }
.short-url { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plain { text-decoration: underline; background: transparent; border: 0; padding: 0; color: #205946; width: fit-content; }
.notice { border-left: 4px solid #48835d; background: #e7f4e8; padding: .7rem .95rem; margin: .75rem 0; }
.notice.error { border-color: #b03b40; background: #fbe9e9; color: #651618; }
.avatar { border-radius: 50%; object-fit: cover; border: 3px solid #ffffffa8; display: block; margin: .75rem 0; }
.verified { display: inline-block; margin-bottom: .6rem; border-radius: 1rem; background: #e3f3e5; color: #17432a; padding: .28rem .6rem; font-size: .85rem; font-weight: 750; }
.public-bio { min-height: 100dvh; display: grid; align-content: start; justify-items: center; padding: clamp(1rem, 6vw, 4rem); background: #f0f3ed; }
.bio-shell { --bio-bg: #eaf6eb; --bio-ink: #153829; --bio-button: #24583d; color: var(--bio-ink); background: var(--bio-bg); border-radius: 1.3rem; text-align: center; padding: clamp(1.25rem, 4vw, 2.5rem); }
.bio-shell[data-theme="lila"] { --bio-bg: #f0e9fb; --bio-ink: #35234b; --bio-button: #5a3b79; }
.bio-shell[data-theme="mar"] { --bio-bg: #e2f1f8; --bio-ink: #15384f; --bio-button: #225775; }
.bio-shell[data-theme="sandia"] { --bio-bg: #faeaf0; --bio-ink: #532637; --bio-button: #7d3c53; }
.bio-shell h1 { font-size: clamp(2rem, 6vw, 3rem); }
.bio-shell .avatar { margin-inline: auto; }
.bio-public { width: min(100%, 520px); }
.bio-button { display: flex; justify-content: space-between; min-height: 46px; align-items: center; background: #fff; border-radius: .65rem; padding: .65rem .85rem; margin: .75rem 0; text-decoration: none; color: var(--bio-ink); }
.bio-button.highlight { background: var(--bio-button); color: #fff; }
.bio-brand { display: inline-block; color: var(--bio-ink); margin-top: 1rem; font-size: .88rem; }
.qr { margin-top: 1rem; }
.qr canvas { display: block; margin: .85rem auto .55rem; max-width: 100%; height: auto; }
.qr a { display: inline-block; }
[hidden] { display: none !important; }
.metrics { margin-bottom: 1.5rem; }
.metrics strong { font-size: 2.05rem; }
.totals { list-style: none; padding: 0; margin: 0; }
.totals li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding: .55rem 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .hero, .portal-grid, .split { grid-template-columns: 1fr; }
    .hero-visual { max-width: 500px; }
    .bar { align-items: baseline; }
    .bar nav { column-gap: .8rem; justify-content: flex-end; }
    .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .wrap { width: min(100% - 1.7rem, 1120px); }
    .bar { gap: .65rem; flex-wrap: wrap; }
    .bar nav { justify-content: flex-start; }
    .bar nav a { font-size: .84rem; }
    .demo-link { font-size: .86rem; }
}
.install-card { max-width: 660px; margin-inline: auto; }
.install-card fieldset { display: grid; gap: .75rem; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .7rem; padding: .85rem 1rem 1rem; }
.install-card legend { padding-inline: .3rem; font-weight: 750; }
.install-card details fieldset { margin-top: .8rem; }
.install-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .75rem; }
@media (max-width: 420px) { .install-columns { grid-template-columns: 1fr; } }
.account-alert { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: .85rem 1rem; margin-top: .9rem; background: #e7f4e8; border: 1px solid var(--line); border-radius: .75rem; }
.account-alert p { margin-bottom: 0; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-block: .9rem; }
.admin-list .actions, .admin-person p { margin: 0; }
.admin-person { min-width: 0; }
.notice-list { display: grid; gap: 1rem; max-width: 760px; }
.notice-text { white-space: pre-wrap; }
.bio-extra { margin-top: 1rem; }
.bio-extra h2 { font-size: 1.4rem; }
.link-update { max-width: 740px; padding-block: clamp(2.5rem, 7vw, 5rem); }
.home-bio + .faqs { padding-top: clamp(2.5rem, 6vw, 5rem); }
.demo-bio { width: min(100%, 390px); margin-inline: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 38px #18392c15; }
.bio-demo-avatar { display: grid; place-items: center; width: 3.7rem; height: 3.7rem; margin: 0 auto .65rem; border-radius: 50%; background: #dda66d; color: #27190c; font-size: 1.25rem; font-weight: 800; }
.bio-demo-name { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: 1.35rem; font-weight: 780; line-height: 1.2; }
.bio-demo-location { color: var(--muted); overflow-wrap: anywhere; font-size: .9rem; }
.bio-demo-check { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; color: #fff; background: #215c43; border-radius: 50%; font-size: .83rem; line-height: 1; flex-shrink: 0; }
.demo-bio .bio-button { background: #eef6ec; }
.demo-bio .bio-button.highlight { background: var(--bio-button); }
.home-verified { display: flex; gap: .45rem; align-items: center; font-weight: 650; margin-block: 1rem; }
@media (max-width: 760px) { .home-bio .split > :last-child { grid-row: 1; } }

.bio-design-controls { min-inline-size: 0; margin: 0; padding: .85rem 1rem 1rem; border: 1px solid var(--line); border-radius: .85rem; }
.bio-design-controls legend { padding-inline: .35rem; font-weight: 750; }
.bio-color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.bio-color-fields input { display: block; width: 100%; min-height: 2.75rem; padding: .25rem; cursor: pointer; }
.bio-editor-aside > h2 { margin: 0 0 .6rem; font-size: 1rem; }
.bio-preview { margin-bottom: 1rem; }
.bio-preview h3 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.055em; }
.bio-custom { position: relative; isolation: isolate; overflow: hidden; color: var(--bio-bg-text, var(--bio-ink)); }
.bio-backdrop { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; z-index: -1; pointer-events: none; }
.bio-custom .bio-content { overflow-wrap: anywhere; }
.bio-backdrop:not([hidden]) + .bio-content {
    background: var(--bio-bg);
    background: color-mix(in srgb, var(--bio-bg) 92%, transparent);
    padding: clamp(.9rem, 4vw, 1.6rem);
    border-radius: 1rem;
}
.bio-custom .bio-button { gap: .5rem; text-align: left; }
.bio-custom .bio-button.highlight { color: var(--bio-button-text, #fff); }
.bio-custom .bio-button:not(.highlight) { color: var(--bio-ink); }
.bio-custom a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bio-custom .bio-brand { color: inherit; }
.bio-custom .qr, .bio-custom .qr a { color: inherit; }
.bio-description { white-space: pre-line; }
.bio-custom[data-layout="editorial"] { text-align: left; }
.bio-custom[data-layout="editorial"] .avatar { margin-inline: 0; border-radius: 1.15rem; }
.bio-custom[data-layout="editorial"] .bio-button { border-radius: .35rem; }
.bio-custom[data-layout="cuadricula"] .bio-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.bio-custom[data-layout="cuadricula"] .bio-button { margin: 0; }
.bio-custom[data-layout="cuadricula"] .bio-button.highlight { grid-column: 1 / -1; }
@media (max-width: 360px) {
    .bio-custom[data-layout="cuadricula"] .bio-links { grid-template-columns: minmax(0, 1fr); }
}

[hidden] { display: none !important; }
.message-body, [data-chat-preview] { white-space: pre-wrap; }
.link-preview { margin-top: 1rem; }
.actions form { display: inline; margin: 0; }
.card + .card { margin-top: .9rem; }
.search { align-items: end; }
.bio-content .avatar { object-fit: cover; }
#bio-form details > label, #bio-form details > div { margin-block: .7rem; }
