*{box-sizing:border-box}.bio-profile{--paper:#fcfaf7;--ink:#252522;--soft:#eee7dd;--line:#e8dfd3;--accent:#877057;background:var(--paper);color:var(--ink);min-height:100vh;font-family:Inter,system-ui,sans-serif;position:relative;isolation:isolate}.theme-rose{--paper:#fff7f6;--ink:#512c3a;--soft:#f6e1e3;--line:#ebced5;--accent:#a85670}.theme-midnight{--paper:#181b24;--ink:#f5f5f8;--soft:#272c38;--line:#3a4151;--accent:#b8bfe5}.theme-sage{--paper:#f5f8f2;--ink:#293e35;--soft:#e3ebe0;--line:#cddbc8;--accent:#5a7d67}.bio-public{margin:0}.bio-decoration{height:190px;position:absolute;inset:0 0 auto;background:radial-gradient(ellipse at 15% 0,var(--soft),transparent 70%);z-index:-1}.bio-profile-inner{max-width:540px;margin:auto;padding:64px 24px 30px}.bio-identity{text-align:center}.bio-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;margin:0 auto 22px;border:4px solid var(--paper);box-shadow:0 0 0 1px var(--line),0 10px 35px #0000000d}.initials{display:grid;place-items:center;background:var(--soft);font-size:34px;font-weight:600;color:var(--accent)}.bio-identity h1{font-size:26px;line-height:1.3;letter-spacing:-.7px;margin:0 0 10px;font-weight:650;overflow-wrap:anywhere}.bio-headline{font-size:14px;line-height:1.65;margin:0 auto 12px;max-width:380px;font-weight:550}.bio-about{font-size:14px;line-height:1.8;opacity:.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 auto 20px;max-width:390px}.bio-socials{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:24px 0}.bio-socials a{color:inherit;width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;transition:background .2s,transform .2s}.bio-profile svg{width:21px;height:21px;flex-shrink:0}.bio-socials a:hover{background:var(--soft);transform:translateY(-2px)}.bio-links{display:grid;gap:12px;margin-top:26px}.bio-link{color:inherit;text-decoration:none;display:flex;align-items:center;gap:15px;border:1px solid var(--line);background:var(--soft);padding:14px 16px;min-height:70px;border-radius:16px;font-size:14px;font-weight:600;transition:transform .2s,box-shadow .2s}.bio-link:hover{transform:translateY(-2px);box-shadow:0 6px 18px #0000000b}.bio-link>span:nth-last-child(2){flex:1;overflow-wrap:anywhere}.bio-link>svg{width:17px;opacity:.6}.bio-link img,.bio-link-mark{width:42px;height:42px;object-fit:cover;border-radius:9px;display:grid;place-items:center;background:var(--paper)}.bio-video{aspect-ratio:16/9;margin:24px 0;border-radius:18px;overflow:hidden;background:var(--soft);border:1px solid var(--line)}.bio-video iframe{border:0;width:100%;height:100%}.bio-video-placeholder{height:100%;display:flex;gap:12px;align-items:center;justify-content:center;font-size:14px}.bio-credit{text-align:center;padding:44px 0 12px}.bio-credit a{font-size:11px;color:inherit;opacity:.6;text-decoration:none}.bio-profile a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.bio-workspace{font-family:Inter,system-ui,sans-serif;background:var(--bio-bg,#f7f8fa);color:var(--bio-ink,#202430);min-height:100vh;margin:0}.bio-workspace main{margin-left:240px;padding:32px 40px 70px;max-width:1550px}.bio-workspace .bio-topbar{margin-left:240px;min-height:76px;padding:16px 40px;border-bottom:1px solid var(--bio-border,#e7e9ef);display:flex;align-items:center;justify-content:space-between;background:var(--bio-card,#fff);gap:12px}.bio-topbar a{color:inherit;text-decoration:none;font-weight:600}.bio-topbar nav{display:flex;align-items:center;gap:12px}.bio-topbar button{border:1px solid var(--bio-border,#e0e4ec);background:var(--bio-card,#fff);color:inherit;border-radius:10px;padding:9px 13px;cursor:pointer}.bio-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.bio-eyebrow{text-transform:uppercase;letter-spacing:2px;color:#94795b;font-size:11px;font-weight:700;margin:0 0 10px}.bio-title-row h1{font-size:32px;letter-spacing:-1px;margin:0 0 8px}.bio-title-row p{font-size:14px;color:var(--bio-muted,#687080);margin:0;line-height:1.7}.bio-status{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--bio-muted,#687080);white-space:nowrap}.bio-status::before{content:'';width:7px;height:7px;border-radius:50%;background:#b9bec7}.bio-status.is-live::before{background:#27a471}.bio-grid{display:grid;grid-template-columns:minmax(330px,1fr) minmax(320px,410px);gap:44px;align-items:start}.bio-panel{padding:26px;background:var(--bio-card,#fff);border:1px solid var(--bio-border,#e6e8ed);border-radius:20px;margin-bottom:18px;box-shadow:0 2px 5px #00000002}.bio-panel h2{font-size:17px;margin:0 0 22px;letter-spacing:-.3px}.bio-field{display:block;font-size:12px;font-weight:600;line-height:1.5;margin:16px 0}.bio-field>input,.bio-field>textarea,.bio-field>select{display:block;width:100%;padding:12px 13px;margin-top:7px;font:400 14px/1.5 Inter,system-ui;border:1px solid var(--bio-border,#dfe2e9);border-radius:10px;background:var(--bio-card,#fff);color:inherit;outline:none}.bio-field>input:focus,.bio-field>textarea:focus,.bio-field>select:focus{border-color:#a58b6a;box-shadow:0 0 0 3px #a58b6a1a}.bio-field textarea{min-height:98px;resize:vertical}.bio-field small{display:block;font-weight:400;color:var(--bio-muted,#6a7484);margin-top:6px}.bio-upload{display:flex;align-items:center;gap:18px}.bio-upload .bio-avatar{margin:0;width:70px;height:70px;font-size:25px;border:1px solid var(--bio-border,#e7e7e7);background:#f0eae1;color:#76634b}.bio-upload label{cursor:pointer;font-size:13px;font-weight:600;border:1px solid var(--bio-border,#ddd);padding:10px 15px;border-radius:10px}.bio-upload input{width:1px;height:1px;opacity:0;position:absolute}.bio-quiet{border:0;background:none;color:var(--bio-muted,#707786);font:12px Inter;cursor:pointer;padding:8px}.bio-themes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.bio-theme{border:1px solid var(--bio-border,#e1e4ea);border-radius:12px;padding:9px 6px;background:transparent;color:inherit;cursor:pointer;font:11px Inter}.bio-theme span{display:block;width:100%;height:42px;border-radius:7px;margin-bottom:8px}.bio-theme[aria-pressed=true]{border:2px solid #9b7952;padding:8px 5px}.bio-link-editor{border:1px solid var(--bio-border,#e3e5eb);border-radius:13px;padding:15px;margin:12px 0;background:var(--bio-bg,#f9fafb)}.bio-link-editor .bio-field{margin:10px 0}.bio-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.bio-row strong{font-size:12px;color:var(--bio-muted,#768092)}.bio-actions{display:flex;gap:5px}.bio-actions button{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--bio-border,#ddd);background:var(--bio-card,#fff);border-radius:8px;color:inherit;cursor:pointer}.bio-actions button:disabled{opacity:.3;cursor:default}.bio-actions svg{width:15px;height:15px}.bio-add{width:100%;border:1px dashed var(--bio-border,#c9ced8);background:transparent;padding:13px;border-radius:11px;color:inherit;font:600 13px Inter;cursor:pointer;margin-top:9px}.bio-toolbar{display:flex;gap:10px;position:sticky;bottom:0;padding:16px 0;background:var(--bio-bg,#f7f8fa);z-index:10}.bio-button{border:1px solid var(--bio-border,#d9dfe8);background:var(--bio-card,#fff);color:inherit;padding:13px 20px;border-radius:11px;font:600 13px Inter;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.bio-button.primary{background:#242a35;color:#fff;border-color:#242a35}.bio-button:disabled{opacity:.45;cursor:wait}.bio-preview-wrap{position:sticky;top:28px}.bio-preview-title{display:flex;align-items:center;justify-content:space-between;margin:0 10px 18px;font-size:12px;color:var(--bio-muted,#6b7485)}.bio-preview{border:7px solid var(--bio-card,#fff);border-radius:36px;overflow:auto;max-height:760px;height:calc(100vh - 220px);min-height:480px;box-shadow:0 20px 60px #28344612,0 0 0 1px var(--bio-border,#e4e6eb);scrollbar-width:thin}.bio-preview .bio-profile{min-height:100%;pointer-events:none}.bio-preview .bio-profile-inner{padding:40px 21px 15px}.bio-preview .bio-identity h1{font-size:23px}.bio-preview .bio-avatar{width:82px;height:82px}.bio-preview .bio-link{font-size:13px}.bio-message{padding:13px 16px;border-radius:11px;background:#fff2f1;color:#a33535;font-size:13px;line-height:1.6;margin-bottom:18px}.bio-message[hidden]{display:none}.bio-message.success{background:#eaf6ee;color:#227448}.bio-published{padding:16px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.bio-published a{font-size:13px;color:inherit;overflow-wrap:anywhere}.bio-social-row{display:grid;grid-template-columns:110px 1fr 30px;align-items:center;gap:8px}.bio-social-row .bio-field{margin:6px 0}.bio-social-row button{border:0;background:transparent;color:inherit;cursor:pointer;padding:5px}.bio-empty{font-size:13px;color:var(--bio-muted,#737b8b);line-height:1.7}.bio-workspace button:focus-visible,.bio-workspace a:focus-visible,.bio-upload label:focus-within{outline:3px solid #b7986e;outline-offset:3px}[data-theme=dark] .bio-workspace{--bio-bg:#171b24;--bio-card:#212631;--bio-border:#343b4a;--bio-ink:#f0f2f6;--bio-muted:#b2bac8}[data-theme=dark] .bio-button.primary{background:#e5d5bd;color:#252525;border-color:#e5d5bd}@media(max-width:1100px){.bio-workspace main{padding:28px 24px}.bio-grid{gap:22px;grid-template-columns:minmax(300px,1fr) 310px}.bio-workspace .bio-topbar{padding:16px 24px}}@media(max-width:850px){.bio-workspace main,.bio-workspace .bio-topbar{margin-left:0}.bio-workspace main{padding:24px 18px}.bio-grid{grid-template-columns:1fr}.bio-preview-wrap{position:static;max-width:410px;width:100%;margin:auto;order:2}.bio-preview{height:660px;max-height:none}.bio-title-row{align-items:flex-start}.bio-title-row h1{font-size:27px}.bio-panel{padding:20px}.bio-topbar{padding:12px 18px!important}.bio-title-row p{max-width:260px}.bio-toolbar{flex-wrap:wrap}.bio-toolbar .bio-button{flex:1}.bio-status{font-size:11px}.bio-social-row{grid-template-columns:95px 1fr 28px}.bio-profile-inner{padding-top:42px}}@media(prefers-reduced-motion:reduce){.bio-link,.bio-socials a{transition:none}}

[hidden]{display:none!important}.bio-slug{display:flex;align-items:center;margin-top:7px;border:1px solid var(--bio-border,#dfe2e9);border-radius:10px;overflow:hidden}.bio-slug span{padding-left:13px;color:var(--bio-muted,#687080);font-size:13px;white-space:nowrap}.bio-slug input{border:0;outline:0;background:transparent;color:inherit;padding:12px 8px;font:14px Inter;min-width:0;width:100%}.bio-slug:focus-within{outline:2px solid #a58b6a}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.bio-social-row button svg{width:18px;height:18px}.bio-topbar button svg{width:19px;height:19px}
.bio-workspace .bio-topbar{margin-left:0!important;width:auto!important}.bio-workspace .bio-topbar #bio-theme-toggle{display:none}.bio-workspace .site-sidebar a[aria-current=page] svg{color:currentColor}.bio-workspace .bio-topbar{max-width:100%}

.theme-aurora{--paper:#bc59ac;--ink:#fff;--soft:#ffffffeb;--line:#ffffff45;--accent:#fff;background:linear-gradient(145deg,#ffce87 0%,#dc679c 33%,#ad4cbd 65%,#4c56cd 100%)}.theme-ocean{--paper:#e5f5f3;--ink:#243c47;--soft:#ffffffe8;--line:#ffffffa8;--accent:#497b8d;background:linear-gradient(145deg,#baf7ed,#e3e8fa 60%,#fce2e9)}.theme-sunset{--paper:#ed7b9d;--ink:#fff;--soft:#ffffffed;--line:#ffffff70;--accent:#fff;background:linear-gradient(150deg,#ffba91,#ed7b9d 55%,#d85698)}.theme-aurora .bio-link,.theme-sunset .bio-link{color:#302536}.theme-aurora .bio-link-mark,.theme-sunset .bio-link-mark{background:#f1e7f1}.bio-section-heading{text-align:center;font-size:17px;letter-spacing:.8px;margin:32px 0 20px}.bio-grid-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bio-grid-links .bio-link{display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;text-align:center;border-radius:12px}.bio-grid-links .bio-link img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:0}.bio-grid-links .bio-link-mark{width:100%;height:100px;border-radius:0}.bio-grid-links .bio-link>span:nth-last-child(2){padding:16px 10px;line-height:1.55}.bio-grid-links .bio-link>svg{display:none}.bio-photo-upload{display:block;font:500 12px Inter;padding:10px 12px;border:1px dashed var(--bio-border,#ccd2dc);border-radius:8px;cursor:pointer;margin-top:12px}.bio-photo-upload input{display:block;font-size:11px;margin-top:8px;max-width:100%}.bio-themes{grid-template-columns:repeat(4,minmax(0,1fr))}
.theme-lavender{--paper:#e8dcf8;--ink:#453659;--soft:#ffffffda;--line:#00000012;--accent:#453659;background:linear-gradient(145deg,#f6e7f7,#d7d7f5)}.theme-peach{--paper:#ffe9db;--ink:#714337;--soft:#fff9f3;--line:#00000012;--accent:#714337;background:linear-gradient(145deg,#fff2db,#ffd7cc)}.theme-coral{--paper:#ff7199;--ink:#fff;--soft:#e95789;--line:#ffffff33;--accent:#fff;background:linear-gradient(155deg,#ff8a9c,#ef58a1)}.theme-neon{--paper:#081b27;--ink:#b7ffed;--soft:#18ebbd;--line:#00000012;--accent:#b7ffed;background:radial-gradient(ellipse at 50% 100%,#4ce6b2,transparent 70%),#080f29}.theme-violet{--paper:#281366;--ink:#fff;--soft:#220c69;--line:#ffffff33;--accent:#fff;background:linear-gradient(160deg,#ec2cce,#6125ab 55%,#170d54)}.theme-sky{--paper:#e7f1ff;--ink:#29425e;--soft:#ffffffed;--line:#00000012;--accent:#29425e;background:linear-gradient(150deg,#d0e7ff,#f4f7ff)}.theme-forest{--paper:#183f35;--ink:#f4eddd;--soft:#2c5646;--line:#00000012;--accent:#f4eddd;background:linear-gradient(145deg,#295545,#112e27)}.theme-mono{--paper:#fff;--ink:#181818;--soft:#181818;--line:#00000012;--accent:#181818;background:#ffffff}.theme-terracotta{--paper:#efe1d4;--ink:#583d30;--soft:#e3c8b4;--line:#00000012;--accent:#583d30;background:linear-gradient(145deg,#f7ecdf,#e9d2bf)}.theme-neon .bio-link{color:#063d35}.theme-mono .bio-link{color:white}.bio-theme{font-size:12px;transition:transform .18s,box-shadow .18s}.bio-theme:hover{transform:translateY(-2px);box-shadow:0 7px 18px #15233d10}.bio-theme>span{height:110px;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;padding:16px 10px}.bio-theme i{width:100%;height:16px;border-radius:5px;background:#ffffffd9;box-shadow:0 1px 4px #0000000a}.bio-theme[data-theme=mono] i{background:#161616}.bio-theme[data-theme=neon] i{background:#18ebbd}.bio-theme[data-theme=violet] i{background:#240c60}.bio-theme[data-theme=coral] i{background:#dc548b;border:1px solid #c74980}.bio-theme[data-theme=linen] i{background:#fffaf5}.bio-theme[data-theme=midnight] i{background:#454958}.bio-theme[data-theme=forest] i{background:#587b64}.bio-themes{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}@media(max-width:500px){.bio-themes{grid-template-columns:repeat(2,minmax(0,1fr))}.bio-theme>span{height:120px}.bio-title-row{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.bio-theme{transition:none}}

.theme-aurora .initials,.theme-sunset .initials{color:#713a76;background:#fff1f8}.theme-mono .initials{color:#fff}.theme-neon .initials{color:#083b35}
/* Bio typography and interaction refinement: Inter throughout, no scaled text. */
.bio-workspace,.bio-profile,.bio-workspace button,.bio-workspace input,.bio-workspace select,.bio-workspace textarea{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}.bio-workspace{--bio-muted:#596477;--bio-ink:#202938}.bio-title-row h1{font-size:30px;line-height:1.25;font-weight:700;letter-spacing:-.7px}.bio-title-row p{color:var(--bio-muted);font-size:14px}.bio-panel{border-radius:18px;box-shadow:0 1px 3px #16274004}.bio-panel h2{font-size:16px;line-height:1.5;font-weight:650;margin-bottom:22px}.bio-field{font-size:13px;font-weight:550;line-height:1.5;margin:18px 0}.bio-field>input,.bio-field>textarea,.bio-field>select,.bio-slug input{font-size:14px;line-height:1.6;min-height:46px;transition:border-color .15s,box-shadow .15s}.bio-field>textarea{min-height:110px}.bio-field>input::placeholder,.bio-field>textarea::placeholder,.bio-slug input::placeholder{color:#7b8494;opacity:1}.bio-quiet,.bio-preview-title,.bio-status{color:var(--bio-muted,#596477)}.bio-button,.bio-topbar button,.bio-add{min-height:44px;font-weight:600;transition:background-color .16s,border-color .16s,box-shadow .16s}.bio-button.primary{background:#232c3b;border-color:#232c3b}.bio-button.primary:hover{background:#354258;border-color:#354258}.bio-add:hover{background:var(--bio-card,#fff);border-color:#8995a7}.bio-button:active{transform:translateY(1px)}.bio-preview{border-radius:34px;box-shadow:0 14px 38px #26334b0b,0 0 0 1px var(--bio-border,#e4e6eb)}.bio-identity h1{font-weight:650;letter-spacing:-.5px;line-height:1.35}.bio-headline{font-weight:500;font-size:14px}.bio-about{opacity:1;line-height:1.75;font-size:14px}.bio-link{font-weight:550;line-height:1.5;min-height:70px;box-shadow:0 1px 2px #00000004}.bio-credit a{opacity:.8}.bio-profile .bio-socials svg{stroke-width:1.8}.bio-theme[aria-pressed=true]{border-color:#55657b;box-shadow:0 0 0 2px #55657b18}.bio-eyebrow{color:#806445}.bio-upload .bio-quiet{min-height:44px}.bio-toolbar{gap:12px}.bio-upload{gap:16px;flex-wrap:wrap}[data-theme=dark] .bio-workspace{--bio-muted:#c0c8d6}[data-theme=dark] .bio-button.primary:hover{background:#f1e5d3;color:#222}@media(max-width:600px){.bio-field>input,.bio-field>textarea,.bio-field>select,.bio-slug input{font-size:16px}.bio-panel{padding:20px}.bio-title-row h1{font-size:27px}.bio-preview{min-height:520px}.bio-theme{min-height:150px}}@media(prefers-reduced-motion:reduce){.bio-workspace *,.bio-profile *{transition:none!important;scroll-behavior:auto!important}}

/* Device chrome stays outside the published Bio and its scrolling content. */
.bio-preview-wrap{isolation:isolate;padding:0 5px 12px}
.bio-preview-title{margin:0 4px 16px;font-size:12px;font-weight:500}
.bio-preview{position:relative;border:10px solid #17191c;border-radius:48px;height:min(760px,calc(100vh - 164px));min-height:560px;background:#17191c;box-shadow:0 0 0 2px #505256,0 0 0 3px #c8cace,0 18px 42px #18213022;scrollbar-width:none;overscroll-behavior:contain;scroll-behavior:smooth}
.bio-preview::-webkit-scrollbar{display:none}
.bio-preview-wrap::after{content:"";position:absolute;z-index:3;top:47px;left:50%;transform:translateX(-50%);width:96px;height:27px;border-radius:22px;background:#111214;box-shadow:inset 0 0 0 1px #27292b;pointer-events:none}
.bio-preview .bio-profile-inner{padding-top:66px;padding-bottom:32px}
.bio-preview .bio-profile{border-radius:36px}
.bio-preview .bio-identity h1{font-size:24px;font-weight:650}
.bio-preview .bio-link{font-size:14px}
@media(max-width:850px){.bio-preview-wrap{position:relative;max-width:390px}.bio-preview{height:740px;min-height:560px}}
@media(prefers-reduced-motion:reduce){.bio-preview{scroll-behavior:auto}}

/* Consistent form controls and optically balanced SVG actions. */
.bio-workspace{--bio-border:#dce1e8;--bio-muted:#596579;--bio-ink:#1d2939}
.bio-panel{padding:28px;border-radius:16px;border-color:var(--bio-border);box-shadow:0 3px 12px #16274005;margin-bottom:22px}
.bio-panel h2{font-size:17px;font-weight:650;letter-spacing:-.3px;margin-bottom:24px}
.bio-field{font-size:13px;font-weight:600;color:var(--bio-ink);margin:18px 0}
.bio-field>input,.bio-field>textarea,.bio-field>select,.bio-slug{border-color:var(--bio-border);border-radius:10px;background:var(--bio-card,#fff);box-shadow:0 1px 2px #10182806}
.bio-field>input,.bio-field>textarea,.bio-field>select,.bio-slug input{font-weight:450;font-size:14px;line-height:1.6;padding:12px 14px;min-height:48px}
.bio-field>input:hover,.bio-field>textarea:hover,.bio-field>select:hover{border-color:#aeb9c9}
.bio-field>input:focus,.bio-field>textarea:focus,.bio-field>select:focus{border-color:#607a9f;box-shadow:0 0 0 3px #607a9f18}
.bio-link-editor{padding:20px;background:var(--bio-bg,#f8fafc);border:1px solid var(--bio-border);border-radius:12px;margin:16px 0}
.bio-row{padding-bottom:6px}.bio-row strong{font-size:12px;font-weight:650;letter-spacing:.35px}
.bio-actions{gap:8px}.bio-actions button,.bio-social-row>button{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:8px;border:1px solid var(--bio-border);border-radius:9px;background:var(--bio-card,#fff);color:var(--bio-ink);cursor:pointer}
.bio-actions svg,.bio-social-row>button svg{display:block;width:18px;height:18px;min-width:18px;overflow:visible;flex-shrink:0}
.bio-actions button:hover:not(:disabled),.bio-social-row>button:hover{background:#edf2f7;border-color:#aab6c8}
.bio-actions button:disabled{opacity:.4}
.bio-photo-upload{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 16px;margin-top:16px;border:1px solid var(--bio-border);background:var(--bio-card,#fff);border-radius:10px;font-size:13px;font-weight:600;color:var(--bio-ink);transition:border-color .15s,background .15s;overflow:hidden}
.bio-photo-upload svg{display:block;width:20px;height:20px;flex:none}
.bio-photo-upload input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.bio-photo-upload:hover{background:#f0f4f9;border-color:#aab6c8}.bio-photo-upload:focus-within{outline:3px solid #607a9f35;outline-offset:2px}
.bio-social-row{grid-template-columns:140px minmax(0,1fr) 36px;gap:12px;padding:6px 0;align-items:center}.bio-social-row .bio-field{min-width:0}.bio-social-row select{padding-left:12px;padding-right:8px}
.bio-add{border-style:solid;border-color:var(--bio-border);border-radius:10px;background:var(--bio-card,#fff);font-size:13px;font-weight:600;min-height:48px}
.bio-theme{font-size:12px;font-weight:550;padding:9px;border-radius:12px;transition:border-color .15s,box-shadow .15s}.bio-theme[aria-pressed=true]{padding:8px;border-color:#526785;box-shadow:0 0 0 2px #52678520}
.bio-profile svg{display:block;width:22px;height:22px;flex-shrink:0;overflow:visible}.bio-socials a{width:44px;height:44px;border-width:1.5px}.bio-profile .bio-socials svg{width:22px;height:22px;stroke-width:2}.bio-link-mark svg{width:22px;height:22px}.bio-link>svg:last-child{width:18px;height:18px}
[data-theme=dark] .bio-workspace{--bio-border:#3b4657;--bio-ink:#eef2f8;--bio-muted:#bbc5d4}
[data-theme=dark] .bio-photo-upload:hover,[data-theme=dark] .bio-actions button:hover:not(:disabled),[data-theme=dark] .bio-social-row>button:hover{background:#303c4e}
@media(max-width:600px){.bio-panel{padding:20px}.bio-link-editor{padding:16px}.bio-social-row{grid-template-columns:112px minmax(0,1fr) 36px;gap:8px}.bio-field>input,.bio-field>textarea,.bio-field>select,.bio-slug input{font-size:16px}.bio-social-row select{font-size:14px}}

/* Clear, consistent controls for link ordering and removal. */
.bio-workspace .bio-actions{gap:8px;align-items:center}
.bio-workspace .bio-actions>button,.bio-workspace .bio-social-row>button{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:1px solid #d7dee8;border-radius:10px;background:#fff;color:#475569;box-shadow:0 1px 2px #10182808;line-height:1;transition:background-color .15s,border-color .15s,color .15s}
.bio-workspace .bio-actions>button svg,.bio-workspace .bio-social-row>button svg{width:20px;height:20px;min-width:20px;display:block;flex:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bio-workspace .bio-actions>button:hover:not(:disabled){background:#edf2f8;border-color:#a7b6ca;color:#24364e}
.bio-workspace .bio-actions>button[data-action=remove],.bio-workspace .bio-social-row>button{background:#fff5f5;border-color:#f1d9dc;color:#b94b59}
.bio-workspace .bio-actions>button[data-action=remove]:hover,.bio-workspace .bio-social-row>button:hover{background:#ffe9ec;border-color:#e4a7b0;color:#a32e40}
.bio-workspace .bio-actions>button:disabled{opacity:1;color:#c1c9d5;background:#f5f7fa;border-color:#e8ecf1;box-shadow:none;cursor:not-allowed}
.bio-workspace .bio-social-row{grid-template-columns:140px minmax(0,1fr) 40px}
[data-theme=dark] .bio-workspace .bio-actions>button{background:#293344;border-color:#455267;color:#e1e8f2}
[data-theme=dark] .bio-workspace .bio-actions>button[data-action=remove],[data-theme=dark] .bio-workspace .bio-social-row>button{background:#3a2630;border-color:#61404d;color:#f0a7b5}
[data-theme=dark] .bio-workspace .bio-actions>button:disabled{background:#242b36;border-color:#303a49;color:#657185}
@media(max-width:600px){.bio-workspace .bio-social-row{grid-template-columns:108px minmax(0,1fr) 40px}}

/* Compact square icons: never inherit flex stretching from form controls. */
.bio-workspace .bio-actions>button svg,.bio-workspace .bio-social-row>button svg{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;max-height:18px!important;aspect-ratio:1;flex:0 0 18px;stroke-width:1.8}
.bio-workspace .bio-actions>button[data-action=remove],.bio-workspace .bio-social-row>button{background:var(--bio-card,#fff);border-color:var(--bio-border,#d7dee8);color:#667085}
.bio-workspace .bio-actions>button[data-action=remove]:hover,.bio-workspace .bio-social-row>button:hover{background:#fff1f2;border-color:#fecdd3;color:#be3455}
[data-theme=dark] .bio-workspace .bio-actions>button[data-action=remove],[data-theme=dark] .bio-workspace .bio-social-row>button{background:#293344;border-color:#455267;color:#d1dae7}

/* Keep the device below the shared navigation throughout form scrolling. */
.bio-workspace .bio-eyebrow,.bio-workspace #bio-status{display:none!important}
.bio-workspace .bio-preview-wrap{position:sticky;top:100px;align-self:start;max-height:calc(100dvh - 116px)}
.bio-workspace .bio-preview{height:calc(100dvh - 164px);max-height:760px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
@media(max-width:850px){.bio-workspace .bio-preview-wrap{position:relative;top:auto;max-height:none}.bio-workspace .bio-preview{height:700px;max-height:calc(100dvh - 120px);min-height:360px}}

/* Refined profile surfaces, imagery and coordinated palette previews. */
.bio-profile{--button-radius:14px;--button-shadow:0 3px 12px #18203309}
.theme-linen{--paper:#fbf8f3;--soft:#ffffff;--line:#e9e1d6;--ink:#39342e}
.theme-rose{--paper:#fff5f7;--soft:#fff;--line:#efdce3;--ink:#653c4c}
.theme-sage{--paper:#f1f5ef;--soft:#fff;--line:#dce6d8;--ink:#304939}
.theme-aurora{background:linear-gradient(155deg,#efbd93 0%,#cb6eaa 36%,#a353b9 64%,#525bc8 100%);--soft:#fff;--line:#ffffff38}
.theme-sunset{background:linear-gradient(155deg,#f5b69e 0%,#df7e9d 50%,#bd5793 100%);--soft:#fff}
.theme-coral{background:linear-gradient(155deg,#f985a2,#d95f95);--soft:#fff;--line:#ffffff45}
.theme-ocean{background:linear-gradient(150deg,#bdf1e9 0%,#e4e9f8 55%,#f5dfe9 100%);--button-radius:28px}
.theme-midnight{--paper:#171c28;--soft:#252d3e;--line:#3b4559;--ink:#f4f6fc}
.theme-violet{background:linear-gradient(155deg,#c144be,#7436ae 48%,#241758);--soft:#ffffff;--line:#ffffff35}
.theme-neon{background:radial-gradient(ellipse at 50% 110%,#38c8a5 0%,#123c43 46%,#101728 80%);--soft:#64e4c5;--ink:#effffb}
.theme-forest{--soft:#35594b;--line:#ffffff24}
.theme-terracotta{--soft:#fff8f1;--line:#dec6b5}
.theme-violet .bio-link,.theme-coral .bio-link{color:#35243e}
.bio-profile .bio-avatar{border:3px solid #ffffffb3;box-shadow:0 0 0 1px #0000000b,0 6px 20px #0000000d;object-position:center}
.bio-profile .bio-identity h1{letter-spacing:-.55px;font-weight:650;margin-bottom:12px}
.bio-profile .bio-about{line-height:1.75;margin-top:14px;max-width:360px}
.bio-profile .bio-socials{gap:12px;margin:26px 0 30px}
.bio-profile .bio-socials a{border:0;border-radius:12px;background:color-mix(in srgb,var(--ink) 7%,transparent);width:42px;height:42px}
.bio-profile .bio-socials a:hover{background:color-mix(in srgb,var(--ink) 14%,transparent)}
.bio-profile .bio-section-heading{font-size:14px;font-weight:600;letter-spacing:.2px;margin:28px 0 16px}
.bio-profile .bio-links{gap:14px;margin-top:18px}
.bio-profile .bio-link{border-radius:var(--button-radius);min-height:64px;padding:13px 16px;gap:14px;box-shadow:var(--button-shadow);font-weight:550;transition:background-color .18s,box-shadow .18s,transform .18s}
.bio-profile .bio-link-mark{width:36px;height:36px;flex:none;background:transparent;color:inherit;border-radius:9px}
.bio-profile .bio-link img{width:46px;height:46px;flex:none;border-radius:10px;object-fit:cover}
.bio-profile .bio-link>svg:last-child{opacity:.5}
.bio-profile .bio-grid-links{gap:14px}
.bio-profile .bio-grid-links .bio-link{padding:0;gap:0;min-height:0;border-radius:14px;overflow:hidden}
.bio-profile .bio-grid-links .bio-link img{width:100%;height:auto;aspect-ratio:4/3;border-radius:0;object-fit:cover}
.bio-profile .bio-grid-links .bio-link-mark{width:100%;height:120px;background:color-mix(in srgb,var(--ink) 6%,var(--soft));border-radius:0}
.bio-profile .bio-grid-links .bio-link>span:nth-last-child(2){padding:16px 12px;font-size:13px;line-height:1.6}
.bio-profile .bio-video{border-radius:14px;box-shadow:var(--button-shadow)}
.bio-theme>span{height:126px!important;border-radius:9px;padding:18px 12px;gap:10px}
.bio-theme i{height:19px;border-radius:5px;background:#fff;box-shadow:0 2px 5px #1820330b}
.bio-theme[data-theme=aurora]>span{background:linear-gradient(155deg,#efbd93,#cb6eaa 36%,#a353b9 64%,#525bc8)!important}
.bio-theme[data-theme=sunset]>span{background:linear-gradient(155deg,#f5b69e,#df7e9d,#bd5793)!important}
.bio-theme[data-theme=violet]>span{background:linear-gradient(155deg,#c144be,#7436ae,#241758)!important}
.bio-theme[data-theme=violet] i,.bio-theme[data-theme=coral] i,.bio-theme[data-theme=linen] i,.bio-theme[data-theme=sage] i{background:#fff;border:0}
.bio-theme[data-theme=ocean] i{border-radius:20px}
.bio-theme[data-theme=neon] i{background:#64e4c5}
.bio-theme[data-theme=midnight] i{background:#252d3e;border:1px solid #3b4559}
.bio-theme[data-theme=forest] i{background:#35594b}
.bio-theme[data-theme=terracotta] i{background:#fff8f1}
@media(prefers-reduced-motion:reduce){.bio-profile .bio-link{transition:none}}
.bio-social-row .bio-field:first-child{position:relative}.bio-platform-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:20px;height:20px;pointer-events:none}.bio-platform-icon svg{width:20px;height:20px;display:block}.bio-social-row .bio-field:first-child select{padding-left:38px!important}.bio-workspace .bio-social-row{grid-template-columns:158px minmax(0,1fr) 40px}.bio-profile svg[stroke="none"]{stroke:none!important}.bio-profile svg[stroke="none"] path{fill:currentColor;stroke:none}
@media(max-width:600px){.bio-workspace .bio-social-row{grid-template-columns:136px minmax(0,1fr) 40px}}

/* Public Bio uses the same content width and type scale as the phone preview. */
.bio-public{background:#f3f4f6;min-height:100dvh;padding:24px 16px}
.bio-public>.bio-profile{width:100%;max-width:380px;min-height:calc(100dvh - 48px);margin:0 auto;border-radius:36px;overflow:hidden;box-shadow:0 12px 40px #18203312}
.bio-public .bio-profile-inner{padding:66px 21px 32px;max-width:none}
.bio-public .bio-avatar{width:82px;height:82px}
.bio-public .bio-identity h1{font-size:24px;font-weight:650}
.bio-public .bio-link{font-size:14px}
@media(max-width:420px){.bio-public{padding:0}.bio-public>.bio-profile{max-width:none;min-height:100dvh;border-radius:0;box-shadow:none}}

/* Public mobile Bio fills the viewport, including wider phones in landscape. */
@media(max-width:767px),(hover:none) and (pointer:coarse) and (max-width:1024px){
 html:has(>.bio-public){background:#f3f4f6}
 body.bio-public{padding:0;margin:0;width:100%;min-height:100svh;min-height:100dvh}
 .bio-public>.bio-profile{width:100%;max-width:none;margin:0;min-height:100svh;min-height:100dvh;border:0;border-radius:0;box-shadow:none}
 .bio-public .bio-profile-inner{max-width:540px;margin:0 auto;padding:calc(48px + env(safe-area-inset-top,0px)) max(22px,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) max(22px,env(safe-area-inset-left,0px))}
}

/* Published Bio fills desktop as well as mobile; only the editor has device chrome. */
body.bio-public{padding:0;margin:0;min-height:100dvh}
.bio-public>.bio-profile{width:100%;max-width:none;min-height:100dvh;margin:0;border-radius:0;box-shadow:none;border:0}
.bio-public .bio-profile-inner{max-width:540px;margin:0 auto}
