/* Bitpost workspace: fluid desktop columns and purpose-built phone navigation. */
:root{--rail:214px;--aside:304px;--top-height:72px;--bottom-height:0px;--gutter:24px;--radius:14px}
[data-theme=dark]{--bg:#0d1017;--bg2:#171c26;--bg3:#202735;--line:#282f3d;--txt:#edf1f8;--muted:#9aa6ba;--acc:#7b9fff;--acc2:#a6bdff;--card:#131822;--input:#0f141e;--shadow:0 16px 50px #0004}
[data-theme=light]{--bg:#f4f6f9;--bg2:#f2f5fa;--bg3:#e8eef8;--line:#dfe5ee;--txt:#182234;--muted:#65748a;--acc:#315ed6;--acc2:#234ebc;--card:#fff;--input:#f8fafd;--shadow:0 16px 50px #24396315}
html{scroll-padding-top:calc(var(--top-height) + 20px)}body{font-size:14px;line-height:1.5;-webkit-text-size-adjust:100%}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:disabled{cursor:default}[hidden]{display:none!important}input,textarea,select{min-width:0;max-width:100%;border-radius:10px}textarea{line-height:1.6}input[type=checkbox]{width:17px;height:17px;accent-color:var(--acc)}input:focus,textarea:focus,select:focus{outline:2px solid color-mix(in srgb,var(--acc) 25%,transparent);outline-offset:1px;border-color:var(--acc)}
.btn-primary{min-height:40px;border-radius:10px;padding:10px 17px;font-size:13px;background:var(--acc);color:#101a32;transition:filter .15s}
[data-theme=light] .btn-primary{color:#fff}.btn-ghost{min-height:38px;border-radius:10px;padding:8px 13px;font-size:12px;background:var(--card)}.btn-ghost:hover{border-color:var(--acc);background:var(--bg2)}.icon-btn{width:40px;height:40px;flex-shrink:0;border-radius:11px}.icon-btn svg{width:20px;height:20px}.tag{font-size:11px;border-radius:7px;background:var(--bg2);padding:3px 8px;white-space:nowrap}
/* App header and columns */
.topbar{height:var(--top-height);padding:0 var(--gutter);display:grid;grid-template-columns:var(--rail) minmax(0,1fr) var(--aside);gap:24px;background:var(--bg);backdrop-filter:none;border-bottom:1px solid var(--line);z-index:40}
.top-logo{gap:10px;color:var(--txt);font-size:24px;letter-spacing:-1px;text-decoration:none!important;justify-self:start}.top-logo>svg{width:33px;height:33px;color:var(--acc);padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--card)}.brand-dot{color:var(--acc)}.top-search{width:100%;max-width:640px;margin:0;justify-self:start;min-width:0;background:var(--card);border-radius:11px;padding:9px 13px}.top-search input{font-size:13px;outline:none!important;min-height:22px;box-shadow:none}.top-search kbd{font:11px var(--font);border:1px solid var(--line);padding:0 5px;border-radius:4px;color:var(--muted)}.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}.topbar #top-back,#mobile-search,#mobile-profile{display:none}
.layout{max-width:none;width:100%;margin:0;padding:24px var(--gutter);display:grid;grid-template-columns:var(--rail) minmax(0,1fr) var(--aside);gap:24px;align-items:start;min-height:calc(100dvh - var(--top-height))}.layout>*{min-width:0}.main{background:var(--card);border:1px solid var(--line);border-radius:16px;min-height:calc(100dvh - var(--top-height) - 48px);overflow:clip}.main:focus{outline:none}.sidebar{padding:0;border:0;top:calc(var(--top-height) + 24px);height:calc(100dvh - var(--top-height) - 48px);display:flex;gap:4px;overflow:visible}.section-label{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--muted)}.nav-item{border-radius:10px;font-size:13px;font-weight:500;padding:11px 13px;min-height:44px;gap:13px;flex-shrink:0}.nav-item>svg{width:20px;height:20px;color:var(--muted)}.nav-item.active{background:color-mix(in srgb,var(--acc) 12%,transparent);color:var(--acc);font-weight:700}.nav-item.active>svg{color:var(--acc)}.nav-item .dot{left:28px;top:8px}.nav-post{margin:17px 0 20px;min-height:44px;flex-shrink:0}.me-card{background:var(--card);border:1px solid var(--line);padding:10px 8px;gap:8px;flex-shrink:0;border-radius:12px}.me-card .n,.me-card .u{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.me-card .u{font-size:11px}.me-card .icon-btn{width:30px;height:34px}.me-card .avatar{width:32px;height:32px;font-size:12px}.rightbar{padding:0;top:calc(var(--top-height) + 24px);gap:20px;max-height:calc(100dvh - var(--top-height) - 48px);overflow:auto;scrollbar-width:thin}.rightbar .panel{background:var(--card);border-radius:14px;flex-shrink:0}.panel h3{font-size:14px;padding:18px 18px 8px;letter-spacing:-.2px}.panel .row{padding:12px 18px;min-width:0}.panel .row:last-child{padding-bottom:18px}.panel .row>div{min-width:0;overflow-wrap:anywhere}.sidebar-footer{font-size:11px;color:var(--muted);line-height:2;padding:0 2px 10px}.sidebar-footer a{color:var(--muted)}
.workspace-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;flex-shrink:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.wallet-pill{color:var(--acc);background:color-mix(in srgb,var(--acc) 10%,transparent);padding:4px 8px;border-radius:7px;font-size:11px;font-weight:700}.workspace-card h3{font-size:19px;font-weight:650;letter-spacing:-.6px;line-height:1.3;margin:22px 0 9px}.workspace-card p{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 18px}.workspace-link{display:flex;align-items:center;gap:10px;color:var(--txt);font-size:12px;padding:12px 0;border-top:1px solid var(--line)}.workspace-link>svg{width:16px;height:16px;color:var(--acc)}.workspace-link span{flex:1}.workspace-link>svg:last-child{transform:rotate(180deg);width:14px;color:var(--muted)}.workspace-link:hover{text-decoration:none;color:var(--acc)}
/* Feed, compose and profiles */
.page-head{top:var(--top-height);min-height:72px;padding:18px 24px;background:var(--card);backdrop-filter:none;font-size:18px;font-weight:650;letter-spacing:-.5px;border-color:var(--line);justify-content:space-between}.page-head small{display:block;font-size:11px;line-height:1.5;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:2px}.page-head>.btn-ghost{margin-left:auto;font-size:11px}.feed-live{font-size:11px;font-weight:500;color:var(--muted);letter-spacing:0;display:flex;align-items:center;gap:7px}.feed-live i{width:6px;height:6px;border-radius:50%;background:var(--repost)}.composer{background:var(--card);padding:20px 24px;gap:13px}.composer>div{min-width:0}.composer textarea{min-height:60px;font-size:15px;resize:vertical}.composer .tools{border:0;padding-top:10px;margin-top:0;gap:8px;flex-wrap:wrap}.composer .tools select{max-width:240px;font-size:11px;padding:8px 10px;background:var(--input);min-height:35px}.composer .tools .icon-btn{margin:0;width:35px;height:35px}.char{font-size:11px;white-space:nowrap}.composer-options{color:var(--muted);font-size:11px;margin:2px 0 4px}.composer-options summary{cursor:pointer;width:fit-content}.composer-options .markdown-hint{font-size:11px;margin-top:9px}.composer-options .toggle-row{flex-wrap:wrap;gap:12px}.composer-options .toggle-row label{font-size:12px}.post{padding:20px 24px;gap:12px;background:var(--card);transition:background .12s}.post:hover{background:var(--bg2)}.post .meta{font-size:12px;gap:6px;line-height:1.6}.post .meta b{font-size:13px;font-weight:650}.post .content{font-size:14px;line-height:1.7;margin:5px 0 12px;max-width:90ch}.post .content .markdown-body{font-size:inherit}.post .actions{max-width:none;gap:10px;margin-top:4px}.act{padding:8px 10px;font-size:11px;min-width:34px;min-height:34px;border-radius:9px}.act svg{width:16px;height:16px}.avatar{width:38px;height:38px;font-size:14px}.avatar.sm{width:32px;height:32px;font-size:12px}.avatar.lg{width:84px;height:84px;font-size:28px}.post img.pimg{max-height:540px;object-fit:contain;background:var(--bg2);margin:10px 0 4px}.banner{height:220px}.pf-info{padding:0 24px 22px}.pf-actions{padding:16px 24px}.pf-info h2{font-size:25px;letter-spacing:-.8px}.pf-info .bio{line-height:1.7;font-size:14px;max-width:80ch}.stats{font-size:12px;gap:20px;flex-wrap:wrap}.tabs button{padding:15px 10px;font-size:12px;min-height:48px}.tabs button.active{background:color-mix(in srgb,var(--acc) 5%,transparent)}.empty{padding:40px 22px;font-size:13px;line-height:1.8}.grid2{gap:18px;padding:22px;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}.comm-card{border-radius:12px}.comm-card .cb{height:100px}.comm-card .ci{padding:17px}.settings-body{padding:24px;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}.settings-body>h3,.settings-body>div,.settings-body>small{grid-column:1/-1;margin:0}.settings-body>label{font-size:12px;margin:0}.settings-body>label input,.settings-body>label textarea{margin-top:7px}.settings-body>h3{font-size:16px;letter-spacing:-.3px}.settings-body .markdown-hint{margin-top:-12px}
/* Messaging uses the full workspace width. */
.layout[data-page=messages],.layout[data-page=units]{grid-template-columns:var(--rail) minmax(0,1fr)}.layout[data-page=messages]>.rightbar,.layout[data-page=units]>.rightbar{display:none}.msg-layout{grid-template-columns:minmax(240px,28%) minmax(0,1fr);min-height:calc(100dvh - var(--top-height) - 122px)}.convs{min-width:0;background:var(--card);max-height:calc(100dvh - var(--top-height) - 122px);overflow:auto}.conv{padding:17px;gap:12px;min-height:76px}.conv.active{background:color-mix(in srgb,var(--acc) 10%,var(--card));box-shadow:inset 3px 0 var(--acc)}.chat{height:calc(100dvh - var(--top-height) - 122px);min-height:360px;min-width:0}.chat-peer{min-height:65px;flex-shrink:0}.chat-peer b{font-size:13px}.chat-peer>span:not(#typing-ind){font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-back{display:none}.chat-log{padding:24px;gap:14px;overscroll-behavior:contain;min-height:0}.bubble{padding:10px 14px;border-radius:14px;font-size:13px;line-height:1.7;background:var(--bg3);max-width:min(82%,700px)}.bubble.me{background:color-mix(in srgb,var(--acc) 24%,var(--card));color:var(--txt)}.bubble .markdown-body{color:inherit}.chat-box{padding:14px 18px;background:var(--card);flex-shrink:0;align-items:center;gap:10px}.chat-box label{margin:0}.chat-box input{min-height:42px}.chat-box .btn-primary{min-width:44px;padding:10px}
/* Unit dashboard: projects beside creation, wallet, and limits. */
.units-wrap{padding:24px;gap:20px}.units-hero{border:0;background:var(--bg2);border-radius:12px;padding:24px;position:relative}.units-eyebrow{font-size:10px;letter-spacing:1.5px}.units-hero h1{font-size:28px;line-height:1.15;letter-spacing:-1px;margin:10px 0}.units-hero p{font-size:13px;margin:8px 0 16px;line-height:1.6;max-width:65ch}.units-hero .btn-ghost{font-size:11px;min-height:34px}.units-owner-plan{display:flex;gap:14px;align-items:center;padding:12px 15px;border:1px solid var(--line);border-radius:10px;font-size:12px}.units-owner-plan span{color:var(--muted)}.units-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.units-primary,.units-secondary{min-width:0}.units-primary>.units-row{margin-bottom:16px}.units-primary>.units-row h2{font-size:16px;font-weight:650}.units-secondary{display:grid;gap:18px}#unit-search{margin-bottom:16px;font-size:13px;min-height:40px}#units-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:16px}.units-card,.units-usage,.units-plan{padding:18px;border-radius:12px;margin-bottom:0}.units-card h2,.units-card h3,.units-usage h3{font-size:14px;letter-spacing:-.2px}.units-card h3{margin:0}.units-card p{font-size:12px}.units-card label{font-size:11px;font-weight:500;color:var(--muted);margin:12px 0}.units-card input,.units-card select,.units-card textarea{font-size:13px;padding:10px;border-radius:8px}.units-card textarea{min-height:90px}.units-row{flex-wrap:wrap;gap:8px}.units-muted{font-size:11px;line-height:1.7}.units-actions{gap:7px;margin-top:14px}.units-actions button{padding:8px 10px;font-size:11px;min-height:34px}.units-card[data-unit]>.units-row{margin-bottom:8px}.units-card[data-unit]>a{font-size:12px;display:block}.units-card[data-unit] .units-row h3{font-size:15px}.unit-status{margin:12px 0 0!important}.unit-options{margin-top:13px;padding-top:10px;border-top:1px solid var(--line)}.unit-options summary{font-size:11px;color:var(--muted);cursor:pointer;width:fit-content}.unit-options[open] summary{color:var(--acc)}.unit-options .units-actions{margin-top:10px}.unit-create-shell{border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}.unit-create-shell>summary{display:none;padding:16px;font-size:13px;font-weight:650;cursor:pointer}.unit-create-shell>.units-card{border:0}.units-wallet>.units-row{margin-bottom:12px}.units-wallet .units-badge{background:color-mix(in srgb,var(--acc) 13%,transparent);color:var(--acc);border-radius:7px}.units-wallet>button{width:100%;font-size:11px;margin:5px 0;min-height:36px}.units-wallet details{font-size:11px;border-top:1px solid var(--line);padding-top:10px;margin-top:12px}.units-wallet summary,.units-plan-details>summary{cursor:pointer;color:var(--muted)}.units-usage h3{margin:0 0 16px}.units-usage h3 span{display:block;font-size:10px;margin-top:4px}.units-meters{gap:13px}.units-plan-details>summary{font-size:12px;font-weight:600}.units-plans{margin-top:16px;gap:16px}.units-price{font-size:23px;margin:14px 0}.units-plan p{font-size:12px}#unit-admin{max-width:600px}#units-templates>summary{border:0;background:none;padding:0;min-height:0;font-size:14px;color:var(--acc)}#units-templates[open]>summary{padding-bottom:18px}#units-template-hub .page-head{position:static;padding:0;border:0;min-height:40px}#units-template-hub .units-wrap{padding:0;gap:16px}#units-template-hub .units-hero{padding:20px}#units-template-hub .units-hero h1{font-size:25px}#hub-search{margin:18px 0 12px}.hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;max-height:500px;overflow:auto;padding:2px 2px 12px;scrollbar-width:thin}.hub-tile{text-align:left;color:var(--txt);font:inherit;background:var(--card);border:1px solid var(--line);border-radius:11px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;cursor:pointer;min-height:190px}.hub-tile:hover,.hub-tile.selected{border-color:var(--acc);background:var(--bg2)}.hub-tile-icon{background:color-mix(in srgb,var(--acc) 10%,transparent);color:var(--acc);width:32px;height:32px;border-radius:8px;display:grid;place-items:center}.hub-tile-icon svg{width:17px;height:17px}.hub-tile strong{font-size:13px}.hub-tile>span:not(.hub-tile-icon){font-size:11px;line-height:1.6;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hub-tile small{font-size:10px;color:var(--acc);margin-top:auto}.hub-asking-title{padding-top:22px;border-top:1px solid var(--line);margin-top:20px}.hub-asking-title h3{font-size:19px}#hub-questions{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}#hub-questions label:has(textarea),#hub-questions>p,#hub-questions>button{grid-column:1/-1}#hub-questions>button{justify-self:start}#hub-questions small{display:block;font-size:11px;color:var(--muted);margin-top:6px}#hub-asking{scroll-margin-top:90px}#hub-upload{max-width:none}
/* Dialogs, account access and reduced motion */
.modal-bg{background:#080d18b8;backdrop-filter:blur(4px);padding:7dvh 20px;overflow:auto;align-items:flex-start}.modal{border-radius:16px;max-height:85dvh;overflow:auto;padding:22px;max-width:620px}.modal>.composer{padding:10px 0;border:0}.modal h3{font-size:18px}.auth-screen{padding:40px;gap:30px;align-items:center;min-height:100dvh;max-width:1600px;margin:auto}.auth-card{width:440px;flex-shrink:0;padding:36px;background:var(--card);border:1px solid var(--line);border-radius:20px}.auth-logo{font-size:26px;letter-spacing:-1px}.auth-card h1{font-size:25px;letter-spacing:-.8px;margin:30px 0 8px}.auth-sub{font-size:13px;color:var(--muted);line-height:1.7}.auth-card label{font-size:12px;margin:16px 0 5px}.auth-card input{margin-top:7px;padding:12px}.auth-card #auth-submit{width:100%;margin-top:20px;min-height:44px}.auth-card .link-btn{font-size:12px}.auth-side{background:transparent;min-height:450px;padding:30px;color:var(--txt)}.auth-side h2{font-size:clamp(32px,4vw,58px);letter-spacing:-2px;line-height:1.08;font-weight:650}.auth-side ul{list-style:none;padding:0;line-height:2.7;font-size:15px;color:var(--muted)}.auth-side li:before{content:'—';color:var(--acc);margin-right:12px}.auth-side .big-logo{width:52px;height:52px;color:var(--acc)}#toast-root{bottom:24px;max-width:calc(100% - 32px);width:max-content}.toast{background:var(--card);color:var(--txt);border-color:var(--line);font-size:12px;line-height:1.6}.drawer-heading,.nav-backdrop,.mobilebar,.fab{display:none}main,aside,nav{min-width:0}.toggle-row{flex-wrap:wrap}pre{max-width:100%;overflow:auto}.verification-app{flex-wrap:wrap}.verification-app>div{flex:1;min-width:180px}button:focus-visible,a:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
@media(min-width:1700px){:root{--rail:230px;--aside:350px;--gutter:32px}.layout,.topbar{gap:32px}.post{padding-left:28px;padding-right:28px}.units-workspace{grid-template-columns:minmax(0,1fr) 330px}.hub-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}
@media(max-width:1180px) and (min-width:761px){:root{--rail:194px;--gutter:20px}.layout,.layout[data-page=units],.layout[data-page=messages]{grid-template-columns:var(--rail) minmax(0,1fr);gap:20px}.rightbar{display:none}.topbar{grid-template-columns:var(--rail) minmax(0,1fr) auto;gap:20px}.units-workspace{grid-template-columns:minmax(0,1fr) 270px;gap:18px}}
@media(max-width:960px) and (min-width:761px){:root{--rail:68px;--gutter:16px}.sidebar .nav-item span,.sidebar .nav-post span,.sidebar .me-card>div{display:none}.sidebar .nav-item{justify-content:center;padding:12px}.sidebar .nav-item svg{width:21px;height:21px}.sidebar .nav-post{padding:13px}.sidebar .me-card{flex-direction:column;padding:10px 4px}.top-logo{font-size:0;gap:0}.top-logo>span{display:none}.units-workspace{grid-template-columns:1fr}.units-secondary{grid-template-columns:1fr 1fr}.unit-create-shell{grid-column:1/-1}.unit-create-shell form{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.unit-create-shell form>h3,.unit-create-shell form>p,.unit-create-shell form>button{grid-column:1/-1}.msg-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:760px){
 :root{--rail:0px;--gutter:0px;--top-height:60px;--bottom-height:calc(66px + env(safe-area-inset-bottom,0px))}body{padding:0}html{scroll-padding-top:75px}.topbar{display:flex;height:calc(var(--top-height) + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 14px 0;gap:8px;background:var(--card)}.top-logo{font-size:22px;gap:8px;margin-right:auto;min-width:0}.top-logo>svg{width:30px;height:30px;padding:4px;border:0;background:none}.top-search{display:none}.top-actions{gap:3px}.top-actions>.icon-btn{width:38px;height:40px}.top-actions #mobile-search,.top-actions #mobile-profile{display:inline-flex}.top-actions #mobile-profile .avatar{width:29px;height:29px;font-size:11px}.layout,.layout[data-page=units],.layout[data-page=messages]{display:block;padding:0;min-height:calc(100dvh - var(--top-height))}.rightbar{display:none}.main{border:0;border-radius:0;min-height:calc(100dvh - var(--top-height));padding-bottom:calc(var(--bottom-height) + 18px);overflow:clip}.page-head{top:calc(var(--top-height) + env(safe-area-inset-top,0px));padding:16px;min-height:64px;font-size:18px}.page-head>.btn-ghost{font-size:10px;padding:7px 9px;max-width:150px}.page-head small{font-size:10px}.post{padding:17px 16px;gap:10px}.post>.avatar{width:34px;height:34px}.post .meta{font-size:11px}.post .meta b{font-size:12px}.post .content{font-size:14px;line-height:1.65}.post .actions{gap:3px}.act{min-height:38px;min-width:35px;padding:8px 5px;font-size:10px;gap:4px}.act svg{width:17px;height:17px}.post img.pimg{max-height:450px}.composer{padding:17px 16px;gap:10px}.composer>.avatar{width:34px;height:34px}.composer textarea{font-size:16px;min-height:55px}.composer .tools{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px}.composer .tools select{width:100%;max-width:none;font-size:11px;min-height:36px}.composer .tools .char{grid-row:2;grid-column:2;margin-left:0;align-self:center}.composer .tools #composer-send{grid-row:2;grid-column:3;min-height:36px;padding:8px 16px!important;font-size:12px}.composer-options summary{min-height:28px;display:flex;align-items:center}.composer .toggle-row{gap:8px}.composer .tools label{grid-column:1;grid-row:1}.composer .tools select{grid-column:2;grid-row:1}.composer .tools #composer-send{grid-row:1;grid-column:3}.composer:not(:focus-within) .tools .char{display:none}.main input,.main textarea,.main select,.modal input,.modal textarea,.modal select{font-size:16px}.composer .tools select,.composer-options select{font-size:16px}.banner{height:160px}.pf-info{padding:0 16px 20px}.pf-info h2{font-size:23px}.pf-actions{padding:12px 16px}.avatar.lg{width:72px;height:72px}.stats{gap:13px;font-size:12px}.tabs button{font-size:11px;padding:13px 5px}.settings-body{padding:20px 16px;grid-template-columns:1fr;gap:18px}.grid2{padding:16px;grid-template-columns:1fr;gap:14px}
 /* A real navigation drawer keeps every destination accessible. */
 .sidebar{position:fixed;top:0;bottom:0;left:0;width:min(310px,86vw);height:100dvh;z-index:72;background:var(--card);padding:calc(16px + env(safe-area-inset-top,0px)) 16px calc(20px + env(safe-area-inset-bottom,0px));border-right:1px solid var(--line);transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s;display:flex;overflow:visible;gap:3px}.navigation-open{overflow:hidden}.navigation-open .sidebar{transform:translateX(0);visibility:visible}.drawer-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;font-size:17px}.drawer-heading>.icon-btn{width:42px;height:42px}.sidebar .nav-item{padding:12px;font-size:14px;min-height:46px}.sidebar .nav-post{margin-top:14px;min-height:46px}.sidebar .me-card{margin-top:auto}.sidebar .me-card .n{font-size:13px}.sidebar .me-card .u{font-size:12px}.nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#060b16a8;border:0;z-index:71;cursor:pointer;backdrop-filter:blur(3px)}
 .mobilebar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;height:var(--bottom-height);padding:7px 8px calc(5px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--card);z-index:65;box-shadow:0 -8px 28px #00000008}.mobilebar button{border:0;position:relative;min-width:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;border-radius:10px;min-height:48px;font-size:10px;font-weight:600;cursor:pointer}.mobilebar button svg{width:21px;height:21px}.mobilebar button.active,.mobilebar button[aria-expanded=true]{color:var(--acc);background:color-mix(in srgb,var(--acc) 9%,transparent)}.mobilebar .dot{top:4px;left:calc(50% + 5px);width:8px;height:8px}.fab{display:flex;position:fixed;bottom:calc(var(--bottom-height) + 18px);right:18px;width:49px;height:49px;align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--acc) 70%,white);border-radius:15px;background:var(--acc);color:#101a32;box-shadow:0 6px 22px #0003;z-index:45}.fab svg{width:22px;height:22px}[data-theme=light] .fab{color:white}.keyboard-open{--bottom-height:0px}.keyboard-open .mobilebar,.keyboard-open .fab{display:none}body[data-page=messages] .fab,body[data-page=units] .fab{display:none}#toast-root{bottom:calc(var(--bottom-height) + 12px);width:calc(100% - 32px);max-width:420px}.modal-bg{padding:20px 12px calc(var(--bottom-height) + 12px);align-items:flex-start}.modal{max-height:calc(var(--viewport-height,100dvh) - var(--bottom-height) - 40px);width:100%;padding:18px;border-radius:15px}.modal .composer{padding:10px 0}.modal .composer textarea{min-height:100px}.auth-screen{padding:20px 16px;min-height:100dvh;align-items:center;justify-content:center}.auth-card{width:min(100%,430px);padding:28px 24px;border-radius:18px}.auth-side{display:none}.auth-card label input{font-size:16px}.auth-card h1{font-size:24px}.auth-card[style]{max-width:100%}
 /* Only the active conversation appears above the keyboard. */
 .msg-layout{display:block;min-height:0}.convs{max-height:45dvh;border-right:0}.msg-layout.has-peer>.convs{display:none}.msg-layout.has-peer .chat{height:calc(var(--viewport-height,100dvh) - var(--top-height) - var(--bottom-height) - 64px - env(safe-area-inset-top,0px));min-height:260px}.msg-layout:not(.has-peer) .chat{height:auto;min-height:250px;border-top:1px solid var(--line)}.chat-back{display:inline-flex}.chat-peer{padding:10px 12px!important;gap:8px!important;min-height:58px}.chat-peer>span:not(#typing-ind){display:none}.chat-log{padding:16px;gap:12px}.chat-box{padding:10px 12px;gap:7px}.chat-box .icon-btn{width:34px;height:40px}.chat-box input{min-height:42px}.chat-box .btn-primary{min-height:42px;width:42px;padding:9px}.bubble{max-width:88%;font-size:13px}.main:has(.msg-layout.has-peer){padding-bottom:var(--bottom-height)}
 .units-wrap{padding:16px;gap:16px}.units-hero{padding:20px}.units-hero h1{font-size:26px}.units-hero p{font-size:12px}.units-owner-plan{flex-direction:column;align-items:flex-start;gap:4px;font-size:11px}.units-workspace{display:flex;flex-direction:column;gap:20px}.units-primary,.units-secondary{width:100%}.units-secondary{gap:14px}.units-card,.units-usage,.units-plan{padding:17px}.units-primary>.units-row{margin-bottom:14px}#units-projects{grid-template-columns:1fr;gap:14px}.unit-create-shell>summary{display:list-item;list-style-position:inside}.unit-create-shell>.units-card{padding-top:4px}.unit-create-shell>.units-card>h3{display:none}.units-plan-details{padding:16px}.units-plans{grid-template-columns:1fr}.units-card label{font-size:12px}.units-card input,.units-card select,.units-card textarea{font-size:16px}.units-actions button{min-height:40px;font-size:11px}.unit-options summary{min-height:32px;display:flex;align-items:center}.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:420px}.hub-tile{padding:12px;gap:8px;min-height:190px}.hub-tile strong{font-size:12px}.hub-tile>span:not(.hub-tile-icon){font-size:10px}.hub-tile small{font-size:9px}#hub-questions{grid-template-columns:1fr}#units-template-hub .units-hero h1{font-size:24px}#hub-asking{scroll-margin-top:80px}.verification-app>div{min-width:0;flex-basis:100%}
}
@media(max-width:360px){.top-logo{font-size:20px}.topbar{padding-left:10px;padding-right:10px}.top-actions{gap:0}.top-actions>.icon-btn{width:34px}.post{padding:15px 12px}.post .actions{gap:0}.act{padding:8px 3px;gap:3px;font-size:9px}.page-head{padding-left:12px;padding-right:12px}.hub-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Changelog page */
.changelog-page{max-width:820px;margin:0 auto;padding:clamp(22px,5vw,54px)}
.changelog-hero{display:flex;align-items:center;gap:20px;padding:0 0 30px;border-bottom:1px solid var(--line)}
.changelog-mark{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:color-mix(in srgb,var(--acc) 13%,var(--card));color:var(--acc);flex:0 0 auto}
.changelog-mark svg{width:27px;height:27px}
.changelog-eyebrow{color:var(--acc);font-size:10px;font-weight:800;letter-spacing:1.6px}
.changelog-hero h1{margin:3px 0 1px;font-size:clamp(26px,4vw,34px);letter-spacing:-1px}
.changelog-hero p{margin:0;color:var(--muted);font-size:14px}
.changelog-entry{position:relative;margin:30px 0 0 10px;padding:0 0 0 27px;border-left:1px solid var(--line)}
.changelog-entry-date{position:relative;margin:0 0 13px;color:var(--muted);font-size:12px;font-weight:650}
.changelog-dot{position:absolute;width:9px;height:9px;left:-32px;top:5px;border:2px solid var(--acc);border-radius:50%;background:var(--card);box-shadow:0 0 0 4px color-mix(in srgb,var(--acc) 12%,var(--card))}
.changelog-card{padding:22px 24px 24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--acc) 7%,var(--card)),var(--card) 58%);box-shadow:0 12px 34px #0000000a}
.changelog-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.changelog-tag{padding:5px 9px;border-radius:7px;background:color-mix(in srgb,var(--acc) 13%,transparent);color:var(--acc);font-size:10px;font-weight:750;letter-spacing:.3px}
.changelog-product{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:1.1px}
.changelog-card h2{margin:17px 0 7px;font-size:21px;letter-spacing:-.5px}
.changelog-card p{max-width:590px;margin:0;color:var(--muted);font-size:14px;line-height:1.7}
@media(max-width:600px){.changelog-page{padding:24px 18px}.changelog-hero{align-items:flex-start;gap:14px;padding-bottom:24px}.changelog-mark{width:48px;height:48px;border-radius:15px}.changelog-hero p{font-size:13px}.changelog-entry{margin-top:25px;padding-left:20px}.changelog-dot{left:-25px}.changelog-card{padding:18px}.changelog-card h2{font-size:19px}}

/* Secondary destinations live in a top-layer popover, never a scrolling sidebar. */
.nav-more-menu{position:fixed;inset:auto;margin:0;width:246px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:8px;background:var(--card);color:var(--txt);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:auto}
.nav-more-menu:popover-open{display:grid;gap:3px}.nav-more-menu .nav-item{width:100%;justify-content:flex-start!important;min-height:43px;font-size:13px;padding:11px 13px!important}.nav-more-menu .nav-item span{display:inline!important}.nav-more-menu::backdrop{background:transparent}.sidebar{overscroll-behavior:none}
@media(max-height:700px){.sidebar{gap:2px}.sidebar>.nav-item{min-height:38px;padding:8px 12px}.sidebar>.nav-post{min-height:38px;padding:8px;margin:10px 0}.sidebar>.me-card{padding:8px}.drawer-heading{margin-bottom:6px}}
