:root{font-family:system-ui,-apple-system,"Microsoft JhengHei",sans-serif;color:#21382f;background:#f5f6f2;color-scheme:light;--accent:#245e48;--muted:#6a7971;--line:#dfe5df}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,summary{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:9px;padding:12px 18px;min-height:44px;font-weight:550}button.secondary{background:transparent;color:var(--accent);border-color:#bbcfc1}button.text-button{background:transparent;color:var(--accent);border-color:transparent;padding-left:0}button:disabled{opacity:.5;cursor:not-allowed}button.danger{background:#a44646;border-color:#a44646}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ba8735;outline-offset:3px}.skip{position:fixed;top:-1000px;left:20px;z-index:50;padding:12px;background:#fff}.skip:focus{top:8px}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:30px 18px 18px;background:#142720;color:#dbe6dd;display:flex;flex-direction:column;z-index:10;overflow-y:auto}.brand{display:block;color:#d9efc9;text-decoration:none;font-size:31px;font-weight:750;letter-spacing:-1px;padding:0 14px 25px}.brand span{display:block;color:#91ada0;font-size:11px;font-weight:400;letter-spacing:1px;margin-top:6px}.side-menu{flex:1}.side-menu>summary{display:none}.nav-label{font-size:10px;letter-spacing:1.5px;color:#8ba89a;margin:22px 14px 8px}nav{display:block}nav button{display:flex;align-items:center;width:100%;gap:12px;background:transparent;border:0;color:#bfcfc4;font-size:13px;text-align:left;padding:10px 13px;font-weight:450;border-radius:8px;margin:2px 0}nav button>span{color:#92b8a1;width:17px;font-size:18px;text-align:center}nav button:hover{background:#213d30}nav button[aria-current=page]{background:#d8ebca;color:#183726;font-weight:650}nav button[aria-current=page]>span{color:#245e48}nav small{margin-left:auto;font-size:9px;opacity:.65}.sidebar-account{display:flex;align-items:center;gap:9px;border-top:1px solid #345044;margin-top:24px;padding:20px 6px 0;font-size:11px}.sidebar-account p{font-size:10px;color:#8fa99a;margin:5px 0}.sidebar-account button{font-size:10px;color:#c2dfc9;border-color:#4b6859;padding:6px 8px;min-height:32px;margin-left:auto}.account-dot{width:8px;height:8px;background:#b7d69d;border-radius:50%;flex:none}.sidebar-note{font-size:10px;color:#82988c;padding:0 6px;margin-bottom:0}.main-column{margin-left:248px;min-width:0}.topbar{height:67px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 40px;font-size:12px;color:#718177}.badge,.chip{font-size:10px;border-radius:20px;border:1px solid #d8dcc8;padding:7px 11px;color:#746735;background:#faf7e9;white-space:nowrap}.chip{background:#edf3e8;color:#456747;border-color:#d5e0d0}.topbar .badge{font-size:10px}main{max-width:1120px;margin:0 auto;padding:0 40px 48px}.hero{padding:56px 0 32px;max-width:860px}.eyebrow{font-size:10px;letter-spacing:2px;color:#6c8b63;font-weight:650;margin:0 0 15px}h1{font-size:clamp(30px,3.4vw,45px);line-height:1.38;letter-spacing:-1.5px;font-weight:700;margin:0 0 22px}p{line-height:1.85;color:#6a7971;font-size:14px}h2{font-size:21px;letter-spacing:-.5px;font-weight:650;margin:4px 0 13px}h3{font-size:16px}.hero-question{max-width:610px;font-size:15px;margin-bottom:13px}.hero-answer{max-width:650px;font-size:14px;margin-bottom:26px}.hero-answer strong{color:#345a43;font-weight:650}.actions,.section-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.section-head{justify-content:space-between;gap:15px}.hero .actions button{font-size:13px}.benefits{display:flex;gap:22px;flex-wrap:wrap;color:#85917e;font-size:10px;margin-top:29px;padding-bottom:4px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin:20px 0;box-shadow:0 3px 10px #263d2710}.panel .eyebrow{margin:0 0 8px;font-size:9px}.panel p{font-size:13px}label{display:block;color:#617168;font-size:11px}input,select{display:block;width:100%;background:#f9faf7;color:#21382f;border:1px solid #d9e2d8;border-radius:8px;padding:12px;margin-top:8px;min-height:44px}input[type=file]{font-size:12px}form{display:grid;grid-template-columns:1fr 2fr 1fr auto;gap:14px;align-items:end;margin:24px 0}#browse-form{grid-template-columns:minmax(0,1fr) auto}#category-form{grid-template-columns:1fr auto;max-width:450px}#import-form{grid-template-columns:1fr auto}.notice{display:flex;align-items:flex-start;gap:13px;background:#f8f6eb;border:1px solid #e8e3c9;border-radius:9px;padding:14px 16px;color:#8e7849;margin:18px 0}.notice>span{font-size:22px}.notice strong{font-size:12px;font-weight:600}.notice p{font-size:11px!important;margin:5px 0 0;color:#8b805e;line-height:1.7}.notice>p{margin:0}.muted{font-size:11px!important;color:#8a988e}.future-strip{padding:30px 0 15px}.future-strip h2{font-size:19px}details{margin:18px 0}summary{cursor:pointer;color:#426f52;font-size:12px;line-height:1.7}#account-setup{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}.page-heading{padding:42px 0 8px}.page-heading h1{font-size:34px;margin-bottom:10px}.page-heading p{margin-bottom:0}.management-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.management-grid>.panel{margin:20px 0 0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.card,.row{padding:18px;border:1px solid var(--line);border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.card h3{margin-top:0}.card p{font-size:12px}.card .actions button,.row button{font-size:11px;padding:8px 10px}.row .actions{margin-top:12px}.row{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;flex-wrap:wrap}.row p{margin:4px 0}.danger-zone{border-color:#e4cccc}.danger-zone summary{color:#9b4d4d}#message{color:#94652f;font-size:13px;white-space:pre-wrap}#error-code{overflow-wrap:anywhere;font-size:11px}footer{border-top:1px solid var(--line);padding:20px 40px;color:#8b998e;font-size:10px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}[hidden]{display:none!important}
@media(max-width:1000px){.sidebar{width:218px;padding-left:12px;padding-right:12px}.main-column{margin-left:218px}main{padding:0 25px 35px}.topbar{padding:0 25px}form{grid-template-columns:1fr 1fr}.management-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{position:static;width:auto;padding:16px 18px 12px;overflow:visible}.brand{font-size:25px;padding:0}.brand span{font-size:9px;margin-top:3px}.side-menu{margin:12px 0 0}.side-menu>summary{display:block;color:#cae0ce;font-size:12px;padding:10px 0;border-top:1px solid #345044}.sidebar-account,.sidebar-note{display:none}.main-column{margin-left:0}.topbar{height:49px;padding:0 20px;font-size:11px}main{padding:0 20px 28px}.hero{padding:35px 0 16px}h1{font-size:29px;letter-spacing:-1px}.hero-question{font-size:14px}.hero-answer{font-size:13px}.hero .actions button{flex:1 1 180px}.benefits{gap:10px;margin-top:20px;font-size:9px}.panel{padding:20px;margin:16px 0}h2{font-size:19px}form,#browse-form,#category-form,#import-form{grid-template-columns:1fr}.page-heading{padding-top:30px}.page-heading h1{font-size:28px}.management-grid{gap:0}.actions button{flex:1 1 160px}.row button{flex:0 1 auto}footer{padding:18px 20px;line-height:1.8}}
textarea{display:block;width:100%;resize:vertical;margin-top:10px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#f7faf5;color:#21382f;font:12px/1.7 ui-monospace,monospace}textarea:focus-visible{outline:3px solid #ba8735;outline-offset:3px}
input[type="checkbox"]{width:auto;min-height:auto;margin-right:8px}
.favorite-rail{display:flex;gap:20px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:12px 4px 20px}.app-shortcut{flex:0 0 88px;background:transparent;color:var(--accent);border:0;padding:0;display:flex;align-items:center;flex-direction:column;gap:10px;scroll-snap-align:start;font-size:12px}.app-shortcut>span:last-child{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-icon,.gallery-title>span{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#dcebd6;color:#245e48;font-size:26px;box-shadow:0 3px 10px #1427200c}.home-gallery{padding:24px 0}.gallery-card{padding:24px;background:white;border:1px solid var(--line);border-radius:16px;min-width:0}.gallery-title{display:flex;gap:15px;align-items:center;text-decoration:none;color:inherit}.gallery-title h3{margin:0;font-size:17px}.gallery-title>span{width:48px;height:48px;flex-shrink:0;border-radius:14px;font-size:21px}.gallery-card small{display:block;color:var(--muted);overflow-wrap:anywhere;margin-bottom:20px}.studio-home{background:#e8eee1}.home-gallery .cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}#gallery-submit{grid-template-columns:1fr}#home-favorites h2{margin:0}@media(max-width:700px){.favorite-rail{margin-right:-20px;padding-right:20px}.home-gallery .cards{grid-template-columns:1fr}}
#sandbox-test-image{display:block;width:100%;border:1px solid var(--line);border-radius:8px;margin-top:20px}#sandbox-test-form{grid-template-columns:1fr}
#remote-browser{position:fixed;inset:0;z-index:1000;background:#17211c;display:grid;place-items:center;overscroll-behavior:none}#remote-browser[hidden],.remote-controls[hidden],.remote-status[hidden]{display:none!important}.remote-open{overflow:hidden}#remote-browser canvas{width:100%;height:100%;object-fit:contain;touch-action:none;outline:0}.remote-handle{position:absolute;right:12px;bottom:12px;width:42px;height:36px;padding:0;border-radius:18px;background:#17372ddd;color:white;opacity:.75;z-index:3}.remote-controls{position:absolute;top:10px;left:10px;right:10px;display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#10271ff2;color:#fff;border-radius:12px;z-index:3}.remote-controls button{padding:8px 12px;font-size:12px;min-height:36px}.remote-location{flex-basis:100%;overflow-wrap:anywhere;font:12px/1.6 ui-monospace,monospace}.remote-tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%}.remote-status{position:absolute;left:12px;right:65px;bottom:10px;padding:12px;background:#13291ff2;color:white;border-radius:8px;z-index:2;font-size:13px;pointer-events:none}.remote-text{position:absolute;width:1px;height:1px;opacity:.01;bottom:0;left:0;padding:0;margin:0}
/* P01: compact shared navigation and a mobile-first launcher home. */
:root{--accent:#275a46;--muted:#6d7972;--line:#e2e7e0;background:#f8f9f6;color:#243a30}
html{scroll-padding-top:88px}body{min-width:0}.layout,.main-column,main,.page{min-width:0;max-width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:root{--site-header-height:calc(72px + env(safe-area-inset-top,0px))}
.sidebar{position:sticky;inset:auto;top:0;width:100%;height:var(--site-header-height);padding:0 max(24px,calc((100vw - 1000px)/2));display:flex;flex-direction:row;align-items:center;gap:20px;overflow:visible;background:#f8f9f6f5;color:#243a30;border-bottom:1px solid var(--line);backdrop-filter:blur(12px);z-index:20}
.brand{display:flex;align-items:center;gap:10px;padding:0;color:#244b37;font-size:23px;letter-spacing:-.8px;white-space:nowrap}
.brand .brand-mark{display:grid;place-items:center;width:30px;height:30px;margin:0;background:#2c5a44;color:#f6f8ef;border-radius:10px;font-size:25px;letter-spacing:-1px;font-weight:650;line-height:1}
.side-menu{flex:0 0 auto;order:2;margin:0 0 0 auto;position:relative}.side-menu>summary{display:block;margin:0;padding:12px 10px;min-height:44px;border:0;color:#526459;font-size:13px;list-style:none}.side-menu>summary::-webkit-details-marker{display:none}.side-menu[open]>summary{color:var(--accent)}
.side-menu nav{position:absolute;top:52px;right:-92px;width:min(280px,calc(100vw - 32px));padding:10px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 15px 45px #18352218;max-height:calc(100dvh - 100px);overflow:auto}.side-menu nav button{color:#385442;padding:12px 14px;font-size:14px}.side-menu nav button:hover{background:#eff4eb}.side-menu nav button[aria-current=page]{background:#e9f0e3;color:#254f37}
.sidebar-account{order:3;display:flex;margin:0;padding:0;border:0}.sidebar-account button{margin:0;min-height:44px;padding:10px 16px;font-size:13px;color:#275a46;border-color:#cdd8cb;border-radius:24px;white-space:nowrap}
.main-column{margin-left:0}.topbar{height:48px;max-width:1000px;margin:auto;padding:0 24px;border:0}body[data-page=home] .topbar,body[data-page=browse] .topbar{display:none}
main{max-width:1000px;padding:0 24px 40px}.home-page{max-width:860px;margin:0 auto}.launch-surface{position:relative;isolation:isolate;transform-origin:center;min-width:0;padding:66px 0 42px}.launch-surface h1{font-size:clamp(26px,3.3vw,36px);line-height:1.35;letter-spacing:-1.1px;font-weight:650;margin:0 0 26px}
#browse-form{display:flex;align-items:center;gap:8px;margin:0;padding:8px;background:#fff;border:1px solid #cbd9c7;border-radius:22px;box-shadow:0 6px 25px #25492d08;min-width:0}
#browse-form:focus-within{border-color:#668c6a;box-shadow:0 0 0 3px #456e4910}#browse-form input{flex:1;min-width:0;width:0;border:0;background:transparent;font-size:18px;margin:0;min-height:52px;padding:14px 18px;border-radius:14px}#browse-form input:focus-visible{outline:0}#browse-form button{flex:none;min-height:52px;border-radius:16px;padding:13px 24px;font-size:16px}#browse-form button span{margin-left:12px;font-size:21px}
.home-section{padding:22px 0 28px;border-bottom:1px solid var(--line);margin:0}.home-section .section-head{margin-bottom:20px}.home-section h2{font-size:18px;margin:0;letter-spacing:-.3px}.section-hint{font-size:12px;color:#7c887e}.home-section .text-button{min-height:44px;font-size:12px;padding:8px 0}
.guest-invite{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:24px 0 32px;border-bottom:1px solid var(--line)}.guest-invite h2{font-size:16px;margin:0 0 6px}.guest-invite p{font-size:12px;margin:0;color:#758275}.guest-invite button{min-height:44px;font-size:12px;border-radius:22px;padding:10px 16px;flex-shrink:0}
.app-rail{display:flex;gap:22px;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:4px 2px 16px;scrollbar-width:thin;scrollbar-color:#d4dfce transparent}.favorite-rail{margin:0}.app-shortcut,.app-shortcut.secondary{flex:0 0 82px;min-width:0;min-height:110px;gap:12px;display:flex;align-items:center;flex-direction:column;padding:0;background:transparent;color:#314b38;border:0;scroll-snap-align:start;font-size:12px;line-height:1.5;font-weight:500}
.app-shortcut .app-icon{width:66px;height:66px;min-height:66px;border-radius:20px;background:#e4ecd9;color:#456239;box-shadow:inset 0 0 0 1px #193a1505,0 3px 7px #26392a05;font-size:27px}.app-shortcut:nth-child(4n+2) .app-icon{background:#e5e9ed;color:#536777}.app-shortcut:nth-child(4n+3) .app-icon{background:#f0e7db;color:#856a49}.app-shortcut:nth-child(4n+4) .app-icon{background:#e9e3ed;color:#786285}.app-shortcut>span:last-child{max-width:82px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-shortcut:hover .app-icon{box-shadow:0 5px 14px #28443318}.app-shortcut:focus-visible{outline-offset:3px;border-radius:10px}
.empty-state{font-size:13px;color:#7b867c;margin:8px 0 16px;white-space:normal;line-height:1.8}.community-entry{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:88px;gap:20px;padding:22px 0;background:transparent;color:#2b4c38;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left}.community-entry strong{display:block;font-size:18px;font-weight:600;margin-bottom:5px}.community-entry>span:first-child>span{display:block;font-size:12px;color:#7b887d;font-weight:400}.community-entry>span:last-child{display:grid;place-items:center;background:#edf1e8;border-radius:50%;width:42px;height:42px;font-size:22px}.community-entry:hover>span:last-child{background:#e0e9d7}
.home-publish{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:18px 0}.home-publish button{font-size:12px;font-weight:450;min-height:44px;color:#74806f}.home-publish #home-work-status{flex-basis:100%;font-size:12px;color:#7b867b}.home-publish #home-work-status:empty{display:none}
.account-page{max-width:560px;margin:auto}.account-page #account-setup{margin-top:28px}.account-page #register{width:100%;margin-top:12px}.account-page>#login{width:100%}.account-page p{font-size:13px}footer{max-width:1000px;margin:auto;padding:18px 24px;border-color:var(--line);color:#93a08f}body[data-page=home] footer{display:none}
#message:not(:empty){position:fixed;z-index:1100;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:14px 18px;border-radius:14px;background:#fffaf0;border:1px solid #e6d6b6;box-shadow:0 7px 30px #342c1b14;color:#785a27;font-size:13px}#message:empty{display:none}
@media(max-width:700px){.sidebar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));gap:10px}.brand{font-size:21px;gap:8px}.brand .brand-mark{width:28px;height:28px;font-size:23px}.side-menu{margin-left:auto}.side-menu>summary{padding:12px 8px;font-size:12px}.side-menu nav{right:-79px;top:50px}.sidebar-account button{padding:9px 13px;font-size:12px;min-height:44px}.topbar{padding:0 20px}main{padding:0 max(20px,env(safe-area-inset-left)) max(28px,env(safe-area-inset-bottom));}.launch-surface{padding:42px 0 30px}.launch-surface h1{font-size:27px;margin-bottom:22px}#browse-form{gap:3px;padding:6px;border-radius:18px}#browse-form input{padding:12px 10px;min-height:50px;font-size:16px}#browse-form button{min-height:50px;padding:12px 15px;border-radius:13px;font-size:14px}#browse-form button span{margin-left:4px;font-size:18px}.guest-invite{padding:10px 0 27px;margin-bottom:8px;gap:12px;align-items:flex-start;flex-direction:column}.guest-invite h2{font-size:15px}.guest-invite button{font-size:12px}.home-section{padding:23px 0 20px}.home-section h2{font-size:17px}.section-hint{font-size:11px}.app-rail{gap:18px;padding-bottom:12px}.app-shortcut,.app-shortcut.secondary{flex-basis:74px;min-height:104px;font-size:11px}.app-shortcut .app-icon{width:62px;height:62px;min-height:62px;border-radius:18px;font-size:25px}.app-shortcut>span:last-child{max-width:74px}.community-entry{padding:20px 0;min-height:90px}.community-entry strong{font-size:17px}.home-publish{padding-top:15px}.home-publish button{flex:0 1 auto;font-size:11px}.account-page .page-heading h1{font-size:28px}.cards{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.launch-surface,.app-icon,.community-entry{animation:none!important;transition:none!important}}
/* P02-R1: native-style launcher; editing is a separate page state. */
.app-shortcut .app-icon[data-tone]{color:#fff;border:1px solid #ffffff32;box-shadow:inset 0 1px 1px #ffffff45,0 5px 11px #243a3015;position:relative;overflow:hidden}
.app-shortcut .app-icon[data-tone="0"]{background:linear-gradient(145deg,#5caeab,#2f8586)}.app-shortcut .app-icon[data-tone="1"]{background:linear-gradient(145deg,#7c92d4,#5266ad)}.app-shortcut .app-icon[data-tone="2"]{background:linear-gradient(145deg,#d8a56b,#b87944)}.app-shortcut .app-icon[data-tone="3"]{background:linear-gradient(145deg,#9f87be,#79619a)}.app-shortcut .app-icon[data-tone="4"]{background:linear-gradient(145deg,#85af7d,#4e895c)}.app-shortcut .app-icon[data-tone="5"]{background:linear-gradient(145deg,#d18b8c,#b76370)}
.app-icon svg{width:38px;height:38px;display:block;filter:drop-shadow(0 1px 1px #18302512)}
#home-favorites .app-rail{gap:19px;padding-top:7px;padding-bottom:14px}.app-shortcut{position:relative}.app-shortcut>span:nth-child(2){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;text-overflow:ellipsis;line-height:1.45;max-width:88px;min-height:34px;overflow-wrap:anywhere}
@media(max-width:700px){#home-favorites .app-rail{gap:18px}.app-shortcut,.app-shortcut.secondary{flex-basis:76px;gap:10px;min-height:112px}.app-shortcut .app-icon{width:64px;height:64px;min-height:64px;border-radius:20px}.app-icon svg{width:35px;height:35px}}
body[data-page=apps] .topbar{display:none}
.app-rail{scrollbar-width:none}.app-rail::-webkit-scrollbar{display:none}body[data-page=apps] footer{display:none}
/* P03: one launcher scale for the rail and library. */
:root{--launcher-icon:68px;--launcher-radius:21px;--launcher-label:12px;--launcher-gap:10px;--launcher-cell:84px}
html{scroll-behavior:auto}body{min-height:100svh;-webkit-text-size-adjust:100%;text-size-adjust:100%}
:is(#home) .app-shortcut{gap:var(--launcher-gap);min-height:calc(var(--launcher-icon) + 42px);color:#344c3d;-webkit-tap-highlight-color:transparent;user-select:none}
:is(#home) .app-icon{width:var(--launcher-icon);height:var(--launcher-icon);min-height:var(--launcher-icon);border-radius:var(--launcher-radius);flex-shrink:0}
:is(#home) .app-icon svg{width:56%;height:56%;filter:drop-shadow(0 1px 1px #24362b14)}
:is(#home) .app-shortcut>span:nth-child(2){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere;font-size:var(--launcher-label);font-weight:500;letter-spacing:0;line-height:1.4;height:2.8em;min-height:2.8em;max-width:100%;margin:0;text-align:center}
#home .app-shortcut{flex:0 0 var(--launcher-cell)}.app-rail{touch-action:manipulation;-webkit-overflow-scrolling:touch;scroll-padding-inline:4px;scroll-snap-type:x proximity}
#home-favorites .app-rail{gap:16px;padding:8px 3px 14px}.is-editing .app-shortcut:focus-visible{outline:2px solid #537659;outline-offset:4px}
.account-loading{font-size:12px;color:#687563;padding:16px 0 24px;margin:0;min-height:70px}.launcher-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 12px}.launcher-feedback p{font-size:12px;line-height:1.6;margin:0;color:#796648}.launcher-feedback button{min-height:44px;padding:8px 14px;border-radius:22px;font-size:12px}
#account-feedback{font-size:13px;line-height:1.7;color:#66775f;min-height:24px;margin:14px 0 0}#account-feedback:empty{min-height:0;margin:0}.account-page button[aria-busy=true]{opacity:.65;cursor:wait}
.app-shortcut:active .app-icon{filter:brightness(.94)}.app-shortcut:focus-visible{outline:2px solid #587b51;outline-offset:3px}.section-hint,.guest-invite p,.empty-state{color:#687663}
#message:not(:empty){bottom:max(16px,env(safe-area-inset-bottom));max-width:min(460px,calc(100vw - 32px));font-size:13px;line-height:1.7}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.app-shortcut .app-icon{transition:filter 120ms ease,box-shadow 120ms ease}}
@media(max-width:700px){:root{--launcher-icon:64px;--launcher-radius:20px;--launcher-label:12px;--launcher-cell:76px}.sidebar{padding-top:env(safe-area-inset-top)}main{padding:0 max(20px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}.launch-surface h1{font-size:27px;letter-spacing:-.8px}.home-section .text-button{font-size:13px}.account-loading{padding-top:8px}.guest-invite{gap:14px}.home-publish{padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:350px){:root{--launcher-icon:56px;--launcher-radius:18px;--launcher-label:11px;--launcher-cell:68px}#home-favorites .app-rail{gap:14px}.brand{font-size:20px}.sidebar{gap:7px}.sidebar-account button{padding-inline:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}.app-shortcut .app-icon{transition:none!important;animation:none!important}}

/* Trusted launch layer: content is local and fixed until a remote renderer exists. */
.launch-viewport{position:fixed;inset:0;margin:0;padding:0;border:0;max-width:none;max-height:none;width:100%;height:100svh;height:100dvh;background:#f7f6ef;color:#21382f;transform-origin:0 0;overflow:hidden;box-sizing:border-box}
.launch-viewport::backdrop{background:#f7f6ef}
body.launch-open{overflow:hidden}
.launch-content{height:100%;width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));gap:20px;overflow:auto;text-align:center}
.launch-content h1{font-size:clamp(26px,6vw,48px);margin:0}.launch-content p{font-size:13px;max-width:100%;margin:0}.launch-content output{font-size:84px;font-weight:300;font-variant-numeric:tabular-nums}.launch-content button{min-height:48px;padding:12px 28px;border-radius:28px}
.launch-recall{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));width:48px;height:44px;border-radius:24px;background:#21382f;color:white;padding:0;box-shadow:0 2px 12px #0002}
.launch-controls{position:absolute;right:max(12px,env(safe-area-inset-right));top:calc(max(12px,env(safe-area-inset-top)) + 52px);padding:16px;background:#fff;border:1px solid #d5ddd6;box-shadow:0 8px 32px #0002;border-radius:20px;max-width:calc(100% - 24px);box-sizing:border-box}.launch-controls strong{display:block;font-size:13px;margin-bottom:12px}.launch-controls button{min-height:44px}
@media(prefers-reduced-motion:reduce){.launch-viewport,.launch-content{animation:none!important;transition:none!important}}

.claim-page{max-width:760px}.claim-list{list-style:none;padding:0;margin:20px 0;display:grid;gap:10px}.claim-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border-radius:16px;background:#f1f4ef;min-width:0}.claim-list strong{overflow-wrap:anywhere;min-width:0}.claim-list span{font-size:12px;white-space:nowrap;color:#5c6c60}.claim-page .actions{flex-wrap:wrap}.claim-page button{min-height:44px}

.security-page{max-width:900px;padding-bottom:24px}.security-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.security-heading h1{margin-bottom:8px}.security-page .panel{padding:24px;border-radius:20px;margin:16px 0}.security-page h2{font-size:19px;margin:0}.security-page .section-head{margin-bottom:12px}.security-page p{line-height:1.65}.security-current{background:#eef5ee!important}.security-badge{display:inline-flex;align-items:center;background:#dfece1;color:#36583e;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:600;white-space:nowrap}.security-count{color:#718377;font-size:13px;font-weight:400}.security-item{padding:16px 0;border-top:1px solid #e7ece5;min-width:0}.security-item:first-child{border-top:0}.security-item-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.security-item h3{font-size:15px;margin:0;overflow-wrap:anywhere}.security-item p{font-size:12px;color:#748177;margin:8px 0 12px;overflow-wrap:anywhere}.security-item-actions{display:flex;gap:8px}.security-item button{min-height:44px}.security-danger{background:transparent;color:#a24f42;border:1px solid #e9d5d0}.security-page .key-name-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:10px;margin:14px 0 0}.security-page input{min-width:0;font-size:16px}.security-session{display:flex;align-items:center;justify-content:space-between;gap:14px}.security-session p{margin-bottom:0}.security-note{font-size:12px!important;color:#687c61}.security-link{display:flex;align-items:center;justify-content:space-between;gap:18px}.security-link p{margin-bottom:0}.security-page details{margin:14px 0 0}.security-page details p{font-size:12px;color:#758078}.security-page button:disabled{opacity:.5;cursor:default}#security-feedback:empty{display:none}#security-feedback{font-size:13px;color:#3c6046;background:#edf3e8;padding:12px 16px;border-radius:12px;overflow-wrap:anywhere}.security-page .danger-zone{margin-top:26px}.security-page .danger-zone>summary{font-size:13px}@media(max-width:600px){.security-page .panel{padding:18px;border-radius:18px}.security-heading{align-items:flex-start}.security-heading>button{white-space:nowrap;font-size:12px}.security-page .section-head{align-items:flex-start}.security-page .section-head h2{flex:1 1 130px}.security-link{align-items:flex-start;flex-direction:column;gap:14px}.security-link>button{width:100%}.security-page .key-name-form{grid-template-columns:1fr 1fr}.key-name-form label{grid-column:1/-1}.security-page .section-head>button{font-size:12px}.security-page .security-item-actions button{flex:1 1 0}.security-session{align-items:flex-start}.security-session>div{min-width:0}.security-session>button{flex-shrink:0}.security-page h2{font-size:18px}}

.security-count{margin-left:6px}.security-confirm{border:1px solid #d8e3d8;border-radius:20px;max-width:min(430px,calc(100vw - 32px));width:100%;padding:24px;box-sizing:border-box;color:#21382f;box-shadow:0 20px 80px #14241d35}.security-confirm::backdrop{background:#14241d60}.security-confirm .actions{display:flex;flex-wrap:wrap;margin-top:20px}.security-confirm .actions button{flex:1;min-width:80px;min-height:44px}.security-confirm input{font-size:16px}.security-confirm h2{font-size:20px}.security-confirm p{overflow-wrap:anywhere}
.security-page details>summary{min-height:44px;padding:10px 0;box-sizing:border-box}

/* P12 recovery choices */
.legacy-choice{display:flex;align-items:center;gap:12px;padding:14px 0;min-height:52px;border-bottom:1px solid var(--line,#dde5df)}.legacy-choice input{width:22px;height:22px;flex:0 0 22px}.legacy-choice span{min-width:0;overflow-wrap:anywhere}.legacy-choice strong,.legacy-choice small{display:block}.legacy-choice small{margin-top:4px;color:var(--muted,#607064)}#legacy-confirmation{margin-top:16px;padding:16px;border:1px solid var(--line,#dde5df);border-radius:16px}#legacy-recovery button{min-height:44px}
/* Community cards use only local icons and the same layout for every member. */
.community-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.community-card{min-width:0;background:var(--surface,#fff);border:1px solid #dce5de;border-radius:24px;padding:22px}.community-card-head{display:flex;gap:15px;align-items:center}.community-card-head>div{min-width:0}.community-card h2{font-size:19px;margin:0 0 6px;overflow-wrap:anywhere}.community-card p{line-height:1.75;overflow-wrap:anywhere}.community-card small{display:block;line-height:1.7;color:#64786b}.community-author{font-size:14px;color:#285d47}.community-app{padding:0;border:0;background:transparent;flex:none;min-width:64px}.community-app .app-icon{width:64px;height:64px;border-radius:19px}.community-tags{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.community-tags span{font-size:12px;border-radius:18px;padding:4px 10px;background:#edf2eb;color:#48604e}.community-search{display:flex;gap:12px;align-items:end;margin:24px 0}.community-search label{flex:1;min-width:0;margin:0}.community-search button{margin:0}.community-card .actions{flex-wrap:wrap}.community-card .actions details button{display:block;margin-top:8px}#public-profile-ai{color:#52705b;font-size:14px}#member-share-tools input[type=file]{max-width:100%}@media(max-width:600px){.community-feed{grid-template-columns:1fr}.community-card{padding:18px}.community-search{flex-wrap:wrap}.community-search label{flex-basis:calc(50% - 12px)}.community-search button{width:100%}}
/* P21 compact interactions; homepage launcher rules remain unchanged. */
.community-card{padding:18px}.community-card-head{gap:12px}.community-card-head h2{font-size:19px}.community-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:14px 0 5px;line-height:1.65!important}.community-description.is-expanded{display:block}.community-expand{min-height:44px;padding:5px 0;background:transparent;color:var(--accent);border:0;font-size:12px}.community-tags{margin:7px 0 12px}.community-actions{display:flex;gap:6px;align-items:center;border-top:1px solid var(--line);padding-top:12px;flex-wrap:wrap}.community-actions>button{min-height:44px;flex:0 1 auto!important;font-size:13px;padding:8px 11px;border-radius:14px}.community-actions [aria-pressed=true]{color:#a63e56;background:#fff0f3;border-color:#e5bfca}.community-more{position:relative;margin:0 0 0 auto}.community-more>summary{min-height:44px;padding:12px 7px}.community-more[open]{flex-basis:100%;margin:0}.community-more small{padding:12px 0}.community-more button{font-size:12px;min-height:44px;margin:4px 8px 4px 0;padding:8px 12px}.community-thread{border-top:1px solid var(--line);margin-top:12px;padding-top:16px}.community-thread h3{font-size:15px}.comment-item{padding:12px 0;border-bottom:1px solid var(--line)}.comment-item>a{font-size:12px;color:var(--accent)}.comment-item p{margin:5px 0;white-space:pre-wrap}.comment-controls{display:flex;gap:8px;flex-wrap:wrap}.comment-controls button{border:0;min-height:44px;padding:4px 0;font-size:11px}.comment-form{display:block;margin:14px 0 0}.comment-form textarea{font:14px/1.6 system-ui;min-height:78px}.comment-form button{margin-top:8px;min-height:44px;padding:8px 18px}.profile-social-actions{display:flex;align-items:center;gap:12px;margin:16px 0;flex-wrap:wrap}.profile-social-actions span{font-size:13px;color:var(--muted)}#blocked-profiles>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0}#social-report-dialog{max-width:min(440px,calc(100vw - 32px));border:1px solid var(--line);border-radius:22px;padding:24px}#social-report-dialog::backdrop{background:#14272066}#social-report-form{display:block}#social-report-form label{margin:14px 0}#social-report-form textarea{font:14px/1.5 system-ui}@media(max-width:600px){.community-card{padding:16px}.community-app .app-icon{width:60px;height:60px}.community-actions{gap:4px}.community-actions>button{padding:7px 9px;font-size:12px}.community-search label{flex-basis:calc(50% - 12px)}.community-search label:has(select){flex-basis:100%}.community-search button{width:auto}.community-feed{gap:14px}}

/* P22 work-scoped creator attribution; no account-wide badge. */
.creator-info{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:13px;margin:8px 0}.creator-check{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;background:transparent;border:0;color:#1678cf;font-size:18px;box-shadow:none}.creator-help{flex-basis:100%;font-size:12px;line-height:1.6;color:#5e7267}.creator-help[hidden]{display:none}.hosted-creator-card h3{overflow-wrap:anywhere}.hosted-creator-card .community-app{float:left;margin-right:12px}#profile-hosted-section{margin:24px 0 30px}

/* P22A private community controls. */
.privacy-row{display:flex;align-items:center;gap:10px}.privacy-row input{width:22px;min-height:22px;flex:none}.follow-manager-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;flex-wrap:wrap}.follow-manager-row>div{display:flex;gap:6px;flex-wrap:wrap}.follow-manager-row button{min-height:44px;font-size:12px;padding:8px 12px}#profile-private-status{font-size:13px;color:#607467}.account-search a,.follow-manager-row a{overflow-wrap:anywhere}.account-search input{max-width:100%}


/* UX-R3 · 首頁第一頁：低噪音的操作層次；保留既有啟動器行為。 */
.home-page .launch-surface{padding-top:clamp(38px,7vw,76px);padding-bottom:32px}
.home-kicker{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--accent);margin:0 0 12px;line-height:1.4}
.home-page .launch-surface h1{margin:0 0 8px;font-size:clamp(30px,4vw,43px);letter-spacing:-.035em;line-height:1.2}
.home-subtitle{font-size:14px;line-height:1.7;margin:0 0 24px;color:var(--muted)}
.home-page #browse-form{margin:0;border-radius:18px;box-shadow:0 10px 28px #24452c0c}
.home-page #browse-form button{font-weight:650}
.home-page .home-section{padding-top:27px;padding-bottom:27px}
.home-page .home-section .section-head{margin-bottom:15px}
.home-page .section-head h2{font-size:19px;letter-spacing:-.025em}
.home-page .section-hint{font-size:12px;line-height:1.5}
.home-page .community-entry{border-top:0;margin-top:2px;border-radius:15px;background:#eff3ed;padding:17px 20px;min-height:74px}
.home-page .community-entry strong{font-size:15px}
.home-page .community-entry>span:first-child>span{font-size:12px}
.home-page .home-publish{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:22px 0 34px}
.home-page .home-publish .home-task{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;min-width:0;min-height:82px;width:100%;border:1px solid var(--line);background:#fff;color:#294d3a;padding:17px 19px;border-radius:16px}
.home-page .home-publish .home-task:hover{border-color:#9fb5a4;background:#f8faf7}
.home-page .home-publish .home-task strong{display:block;font-size:15px;line-height:1.35;margin-bottom:6px}
.home-page .home-publish .home-task small{display:block;font-size:12px;line-height:1.5;color:#718075;font-weight:400}
.home-page .home-publish .home-task>span:last-child{font-size:21px;color:var(--accent);flex:none}
.home-page #home-work-status{grid-column:1/-1;font-size:12px;color:var(--muted)}
@media(max-width:700px){
 .home-page .launch-surface{padding:34px 0 26px}
 .home-page .launch-surface h1{font-size:30px}
 .home-page .home-subtitle{font-size:13px;margin-bottom:20px}
 .home-page .home-section{padding:23px 0 22px}
 .home-page .home-publish{grid-template-columns:1fr;gap:10px;padding-top:17px}
 .home-page .home-publish .home-task{min-height:73px;padding:15px 17px}
 .home-page .community-entry{min-height:70px}
}
@media(max-width:360px){
 .home-page #browse-form button{padding-inline:12px;font-size:13px}
 .home-page #browse-form input{padding-inline:9px}
}

/* UX-R3 shared navigation and homepage */
body:is([data-page=home],[data-page=browse]){background:#F7F8F6}
body:is([data-page=home],[data-page=browse]) main{max-width:1120px;padding-inline:20px}
#home{--accent:#2E6A4B;--line:#E2E8E2;color:#1F2A24;padding-bottom:8px}
#home .launch-surface{padding:clamp(34px,6vw,70px) 0 28px}
#home .launch-surface h1{font-size:clamp(30px,5vw,52px);margin:0 0 12px;color:#1F2A24}
#home :is(.home-subtitle,.r3-empty p,.r3-share small,.r3-share p,.home-task small){color:#68736C}
#home .home-kicker{color:#2E6A4B}
#home #browse-form{max-width:760px;margin:20px 0 0;border-radius:18px;background:#FFFFFF;border:1px solid #E2E8E2;gap:6px;padding:6px}
#home #browse-form input{width:100%;min-width:0;min-height:50px;color:#1F2A24}
#home #browse-form button{min-height:50px;background:#2E6A4B;color:#FFFFFF;white-space:nowrap}
#home #launch-feedback{max-width:760px;margin:10px 0 0;color:#87451e}
#home #launch-feedback:empty,#home #home-gallery-status:empty{display:none}
#home .home-section{border-color:#E2E8E2;padding-block:24px}
#home .favorite-rail{margin-right:0}
#home :is(.r3-empty,.r3-share,.home-task){background:#FFFFFF;border:1px solid #E2E8E2;border-radius:16px;padding:16px;min-width:0}
#home :is(.r3-empty,.r3-share) h3{margin:0 0 6px;color:#1F2A24;overflow-wrap:anywhere}
#home .r3-shares,#home .home-publish{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#home .r3-share p{overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#home .r3-share small{overflow-wrap:anywhere}
#home .r3-share-actions{display:flex;gap:8px;flex-wrap:wrap}
#home .r3-share-actions button,#home .text-button{min-height:44px;color:#2E6A4B}
#home .home-task{width:100%;text-align:left;color:#1F2A24}
@media(max-width:700px){
 #home .r3-shares,#home .home-publish{grid-template-columns:minmax(0,1fr)}
 #home #browse-form button{padding-inline:11px}
}
#home{max-width:1080px}

.r3-nav{padding:env(safe-area-inset-top) 0 0;background:#F7F8F6;border-bottom:1px solid #E2E8E2;backdrop-filter:none}
.r3-nav-inner,.r3-footer-inner{width:100%;max-width:1120px;margin:auto;padding-inline:max(20px,env(safe-area-inset-left)) max(20px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:16px}
.r3-nav .brand{color:#1F2A24;font-size:24px;font-weight:700}
#site-menu-toggle{min-height:44px;min-width:44px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;margin:0}
html{scrollbar-gutter:stable}
body.drawer-open,html:has(body.drawer-open){overflow:hidden}
#site-drawer{position:fixed;inset:0;margin:0;padding:0;border:0;width:100%;height:100dvh;max-width:none;max-height:none;background:transparent;overflow:clip}
#site-drawer[open]{display:flex;justify-content:flex-end}
.drawer-panel{display:flex;flex-direction:column;flex:none;width:284px;max-width:92vw;height:100%;box-sizing:border-box;padding:max(calc(var(--drawer-toggle-top) + 56px),env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) 22px;background:#f7f9f4;color:#234736;box-shadow:-18px 0 70px #173a2829;overflow:auto;overscroll-behavior:contain}
#site-drawer[open] .drawer-panel{animation:drawer-in 280ms cubic-bezier(.2,.7,.25,1) both}
#site-drawer::backdrop{background:#172e2580;animation:drawer-backdrop-in 220ms ease both}
#site-drawer #site-menu-toggle{position:fixed;top:var(--drawer-toggle-top);left:var(--drawer-toggle-left);z-index:1}
#site-drawer[open][data-closing] .drawer-panel{animation:drawer-out 220ms ease-in both}
#site-drawer[data-closing]::backdrop{animation:drawer-backdrop-out 220ms ease both}
@keyframes drawer-out{from{transform:var(--drawer-exit-start)}to{transform:translateX(100%)}}
@keyframes drawer-backdrop-out{to{opacity:0}}
@keyframes drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes drawer-backdrop-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#site-drawer[open] .drawer-panel,#site-drawer[open][data-closing] .drawer-panel,#site-drawer::backdrop,#site-drawer[data-closing]::backdrop{animation:none}}
#site-menu-toggle{justify-content:center;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:#315746}
#site-menu-toggle:hover{background:#e7eee4}
#site-menu-toggle svg path{transition:opacity 120ms ease}
#site-menu-toggle .menu-toggle-cross,#site-menu-toggle[aria-expanded=true] .menu-toggle-lines{opacity:0}
#site-menu-toggle[aria-expanded=true] .menu-toggle-cross{opacity:1}
@media(prefers-reduced-motion:reduce){#site-menu-toggle svg path{transition:none}}
#site-menu{display:grid;gap:4px;padding-block:16px 24px}
#site-menu :is(button,a){position:relative;display:flex;align-items:center;gap:13px;width:100%;min-height:51px;border:0;border-radius:15px;background:transparent;color:#314d3d;text-align:left;text-decoration:none;font-size:16px;margin:0;padding:8px 36px 8px 10px}
#site-menu button img{flex:none;width:34px;height:34px;border-radius:10px}
#site-menu :is(button,a) svg{box-sizing:content-box;flex:none;padding:7px;border-radius:10px;background:#eaf0e6;color:#456954}
#site-menu :is(button,a):hover{background:#edf3e9}
#site-menu button[aria-current=page]{background:#deebdc;color:#214b34;font-weight:700}
#site-menu button[aria-current=page] svg{background:#315b47;color:#fff}
#site-menu button[aria-current=page]::after{content:"";position:absolute;right:17px;width:6px;height:6px;border-radius:50%;background:#477c54}
.drawer-accounts{display:grid;gap:12px;margin-top:auto}
.drawer-legacy a{display:flex;align-items:center;gap:12px;color:#294a37;text-decoration:none;font-weight:700}
.drawer-legacy a small:not([hidden]){margin-top:2px;font-weight:400}
.drawer-account{padding:16px;border-radius:18px;background:#eaf1e6}
.drawer-account p{margin:0 0 8px;color:#294a37;font-size:14px;font-weight:700}
.drawer-account small:not([hidden]){display:block;margin-top:8px;color:#486553;line-height:1.55}
#drawer-identity:not([hidden]){display:flex;align-items:center;gap:10px;margin-bottom:12px}
#drawer-avatar{display:grid;place-items:center;flex:none;width:38px;height:38px;overflow:hidden;border-radius:50%;background:#d8e7d9;color:#315746;font-weight:700}
#drawer-avatar img{width:100%;height:100%;object-fit:cover}
#drawer-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#drawer-account-error:not([hidden]){margin:8px 0 0;color:#96392d}
#drawer-account-action{width:100%;min-height:44px;margin:0;border:0;border-radius:12px;background:#305b48;color:#fff}
#drawer-account-action:hover{background:#244b3a}
#site-drawer :is(button,a):focus-visible,#site-menu-toggle:focus-visible{outline:2px solid #3d7255;outline-offset:2px}
#site-menu-toggle[data-pointer-focus]:focus{outline:none}
body .main-column .r3-footer{display:block;width:100%;max-width:none;border-top:1px solid #E2E8E2;background:#F7F8F6;padding:32px 0}
.r3-footer strong{color:#1F2A24;font-size:16px;font-weight:650}
.r3-footer p{margin:4px 0 0;color:#68736C;font-size:13px}
.r3-footer small{color:#89928B;font-size:12px}
@media(max-width:700px){
 :root{--site-header-height:calc(64px + env(safe-area-inset-top,0px))}
 body .main-column .r3-footer{padding:24px 0}
 .r3-footer-inner{flex-direction:column;align-items:flex-start;gap:10px}
}

/* Home V2 */
.page-container{width:min(calc(100% - 2 * clamp(20px,4.8vw,64px)),1240px);margin-inline:auto}
body:is([data-page=home],[data-page=browse]),.r3-nav,body .main-column .r3-footer{background:#F7F8F5}
body:is([data-page=home],[data-page=browse]) main{max-width:none;padding-inline:0}
#home{max-width:none;color:#192720;--accent:#176B4A;--line:#dce8de}
#home .home-subtitle,#home .featured-description,#home .featured-credit{color:#657469}
.r3-nav-inner,.r3-footer-inner{width:min(calc(100% - 2 * clamp(20px,4.8vw,64px)),1240px);max-width:none;padding-inline:0}
.r3-nav .brand{color:#173B30}
.r3-nav .brand img{display:block;flex:none;border-radius:22%}
#site-menu-toggle{width:48px;height:48px;padding:0;border:0;background:transparent;color:#173B30;justify-content:center;border-radius:12px}
#site-menu-toggle:hover{background:#E6F2E9}
#home .home-hero{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);align-items:center;gap:clamp(20px,4vw,56px);min-height:78svh;padding-block:40px}
#home .launch-surface{padding:0}
#home .home-kicker{color:#176B4A}
#home .launch-surface h1{font-size:clamp(36px,5.1vw,72px);letter-spacing:-.055em;line-height:1.14;color:#192720}
#home .home-subtitle{font-size:16px}
#home #browse-form{border-color:#dce8de;box-shadow:none}
#home #browse-form button,#home .featured-actions button:first-child,#featured-open{background:#176B4A;color:white}
#hero-works{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#hero-works .hero-work{position:relative;display:grid;align-items:end;min-width:0;min-height:105px;border:0;border-radius:16px;padding:0;overflow:hidden;text-align:left;color:#fff;background:#173B30}
#hero-works .hero-work:first-child{grid-column:1/-1;min-height:clamp(155px,24vw,275px)}
.hero-work .work-art{position:absolute;inset:0}
.hero-work .work-art span{align-self:center;margin-bottom:16px}
.hero-work-label{position:relative;display:grid;gap:2px;width:100%;padding:10px 12px;background:#10291ee6;overflow-wrap:anywhere}
.hero-work-label small{color:#dcf2e3}
.work-art{min-height:100px;display:grid;place-items:center;overflow:hidden;color:#fff;background:#173B30}
.work-art span{font-size:clamp(32px,6vw,82px);line-height:1.05;font-weight:750;letter-spacing:-.05em}
.work-art[data-tone="0"]{background:radial-gradient(ellipse at 75% 30%,#467f62 0 15%,transparent 16%),#173B30}
.work-art[data-tone="1"]{background:#85552d;color:#fff1d0}
.work-art[data-tone="2"]{background:#435e88;color:#e4f1ff}
.work-art[data-tone="3"]{background:#71527f;color:#fff1fc}
.work-art[data-tone="4"]{background:#487045;color:#f5ffd9}
.work-art[data-tone="5"]{background:#875540;color:#fff3e0}
#home :is(#intro,#discover,#my-apps){scroll-margin-top:80px}
#home :is(#discover,#my-apps){padding-block:clamp(24px,5vw,64px)}
#home #public-apps-title,#home #favorites-title{font-size:clamp(25px,3vw,38px);color:#192720}
.featured-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(12px,2vw,24px)}
.featured-work{grid-column:span 4;min-width:0;overflow:hidden;border-radius:16px;background:white}
.featured-work:first-child{grid-column:span 5}
.featured-work:nth-child(2){grid-column:span 4}
.featured-work:nth-child(3){grid-column:span 3}
.featured-copy{padding:16px;overflow-wrap:anywhere}
.featured-copy h3,.featured-copy p{margin:0 0 6px}
.featured-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.featured-category{color:#176B4A}
.featured-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.featured-actions button{min-height:44px}
.featured-actions form{display:contents}
#featured-detail{width:min(480px,calc(100% - 40px));border:0;border-radius:16px;padding:24px;color:#192720;overflow-wrap:anywhere}
#featured-detail::backdrop{background:rgba(18,30,23,.42)}
#featured-detail .community-card-head{display:flex}
#featured-detail .post-content{margin-top:12px;padding:0}
#featured-title{margin:0 0 6px}
#featured-detail .featured-actions{justify-content:flex-end}
#featured-detail .featured-actions button{border:0;border-radius:14px}
#home .r3-empty{padding:0;border:0;background:none}
#home #home-favorites{padding:0 0 14px}
@media(prefers-reduced-motion:no-preference){.home-enter{animation:home-enter 280ms ease-out both}}
@keyframes home-enter{from{transform:translateY(12px);opacity:.92}to{transform:translateY(0);opacity:1}}
@media(max-width:1000px){.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-grid .featured-work{grid-column:auto}}
@media(max-width:700px){
 #home .home-hero{min-height:0;grid-template-columns:minmax(0,1fr);gap:24px;padding-block:30px}
 #hero-works .hero-work:first-child{min-height:142px}
 .featured-grid{grid-template-columns:minmax(0,1fr)}
}

#home .home-hero{grid-template-columns:1fr;min-height:0;padding-block:clamp(36px,6vw,86px)}
#home .home-app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:16px;overflow:visible;padding-inline:0}
#home .app-shortcut{width:100%;min-width:0;min-height:110px;gap:7px;touch-action:pan-y;user-select:none}
#home .app-shortcut .app-icon{width:76px;height:76px;min-height:76px;border-radius:22%;transition:transform 170ms ease-out}
#home .app-shortcut>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;font-size:13px;text-align:center}
.app-icon.app-icon-neutral{background:#E6EBE8;color:#53665c}
.app-icon-neutral::before{content:"";width:100%;height:100%;border-radius:inherit;background:url("/codeback-192.png?v=c-arrow") center / contain no-repeat}
#home .arc-selected .app-icon{transform:scale(.94)}
#app-arc{position:fixed;inset:auto;margin:0;width:max-content;max-width:calc(100vw - 16px);padding:0;overflow:visible;display:flex;align-items:center;gap:0;border:0;background:transparent;color:#173b30;animation:app-actions-in 150ms ease-out both}
#app-arc:not(:popover-open){display:none}
#app-arc button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:inherit;-webkit-tap-highlight-color:transparent}
#app-arc button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#app-arc button:hover{color:#36725a}
#app-arc button[aria-pressed=true] svg{fill:currentColor}
#home .app-shortcut.arc-selected{padding-bottom:46px}
@keyframes app-actions-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){
 #home .home-app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 4px}
 #home .app-shortcut .app-icon{width:64px;height:64px;min-height:64px}
 #home .app-shortcut>span:last-child{font-size:12px;max-width:100%}
}
@media(prefers-reduced-motion:reduce){#app-arc{animation:none}#home .app-shortcut .app-icon{transition:none}}

.app-icon img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}

#gallery-submit .post-tag-editor{grid-column:1/-1;min-width:0}
.post-tag-editor label,.post-tag-editor small{display:block}
.post-tag-editor input{width:100%;margin-block:6px}
.community-tags{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.community-tags button{min-height:32px;max-width:100%;padding:4px 10px;border:0;border-radius:999px;background:#E6F2E9;color:#176B4A;font-size:12px;overflow-wrap:anywhere}

#studio-controls{border:0;padding:0;min-width:0}.studio-projects{display:flex;gap:12px;overflow:auto;padding:4px 0 12px}.studio-app{flex:0 0 80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.studio-app span{display:block;font-size:24px}.studio-app:first-child{position:sticky;left:0;z-index:1}#studio-preview{width:min(96vw,900px)}#studio-frame iframe{width:100%;height:70vh;border:0;background:white}

.profile-hosted-legacy{display:none!important}

.profile-avatar{display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:#222;color:white;font-size:1.4rem;font-weight:700}

.community-attachment{display:flex;align-items:center;gap:.75rem;margin:.65rem 0}.community-attachment span{overflow-wrap:anywhere}.community-attachment .community-app{flex:none;width:36px;height:36px}.community-card-head h2{margin:.2rem 0}

.feed-sentinel{height:1px}.post-avatar{display:grid;place-items:center;border-radius:50%;background:#222;color:white;width:2.5rem;height:2.5rem;flex:none}.community-card time{display:block;font-size:.8rem;color:#666}.post-body{white-space:pre-wrap;overflow-wrap:anywhere}.community-card[data-post-id]{cursor:pointer}

/* Social timelines share a single reading column. */
#public-gallery,#profile,#search-results{max-width:680px;margin-inline:auto}
.community-feed{grid-template-columns:minmax(0,1fr);gap:0}
.community-card{padding:16px 0;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}
.community-actions{gap:5px;border:0;padding-top:2px}
.community-actions .post-action,.community-more button,.community-card .post-tag{
 background:transparent;border:0;box-shadow:none;color:var(--muted)
}
.community-actions .post-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;padding:4px 6px;list-style:none}
.post-action::-webkit-details-marker{display:none}
.post-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.community-actions .post-action:hover,.community-actions .post-action[aria-pressed=true],.community-card .post-tag{color:var(--accent)}
.community-actions .post-action[data-icon=like][aria-pressed=true]{color:#a63e56}
.post-action[data-icon=like][aria-pressed=true] svg,.post-action[data-icon=save][aria-pressed=true] svg{fill:currentColor}
.post-action:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.community-card .post-tag{padding:4px 8px 4px 0;min-height:36px}

/* Shared social reading surface */
body[data-page=gallery] .topbar,body[data-page=profile] .topbar{display:none}
.social-page{width:100%;padding-top:clamp(16px,4vw,44px)}
.social-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.social-toolbar h1{font-size:clamp(26px,4vw,34px);letter-spacing:-.04em;margin:0;line-height:1.2}
.social-icon-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--accent)}
.social-icon-button:hover{background:#e3ede5}
.social-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.social-compose{margin-inline-start:auto;background:var(--accent);color:white}
.social-compose:hover{background:#174b38;color:white}
.profile-identity{display:flex;align-items:center;gap:clamp(14px,3vw,22px);margin:16px 0 14px}
.profile-identity-copy{min-width:0}
.profile-avatar{width:clamp(58px,11vw,80px);height:clamp(58px,11vw,80px);flex:none;background:linear-gradient(145deg,#d8ebdc,#a9d2bd);color:#174b38;font-size:clamp(23px,5vw,32px)}
#public-profile-name{font-size:clamp(25px,4vw,38px);letter-spacing:-.035em;line-height:1.18;margin:0;overflow-wrap:anywhere}
#public-profile-ai,#profile-private-status{display:inline-block;margin:6px 8px 0 0;font-size:12px;color:var(--muted)}
#public-profile-ai:empty,#profile-private-status:empty,#public-profile-bio:empty,.social-status:empty{display:none}
#public-profile-bio{font-size:15px;line-height:1.65;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 14px}
.profile-social-actions{margin:0 0 18px;min-height:0}
.profile-social-actions button{border:0;background:#e3ede5;padding-inline:14px}
#profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px;border-bottom:1px solid var(--line)}
#profile-tabs button{border:0;border-radius:0;background:transparent;color:var(--muted);position:relative;padding:10px 4px;font-size:14px}
#profile-tabs [aria-pressed=true]{color:var(--accent);font-weight:700}
#profile-tabs [aria-pressed=true]::after{content:'';position:absolute;inset:auto calc(50% - 16px) 0;height:3px;border-radius:3px;background:var(--accent)}
.community-card[data-post-id]{--avatar-space:52px;padding:16px 0 9px}
.community-card-head{align-items:center;gap:12px}
.post-avatar{background:#dcebe1;color:#245e48;font-weight:700}
.post-meta{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:9px;row-gap:2px}
.post-meta .community-author{font-weight:700;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.post-meta .community-author:hover{text-decoration:underline}
.post-meta time,.post-meta .post-ai{font-size:12px;color:var(--muted)}
.post-content{margin-inline-start:var(--avatar-space);min-width:0}
.post-content h2{font-size:16px;line-height:1.5;margin:0 0 4px;letter-spacing:0}
.post-content .post-body{font-size:15px;line-height:1.65;color:inherit;margin:0 0 8px}
.post-quote{display:block;font-size:13px;color:var(--accent);margin:8px 0}
.community-attachment{background:#eaf0eb;border-radius:12px;padding:8px 10px;color:var(--muted);font-size:13px}
.community-attachment .community-app{min-width:36px}
.community-attachment .app-icon{width:36px;height:36px;border-radius:8px}
.community-actions .post-action:first-child{margin-inline-start:-8px}
.social-status{margin:12px 0;color:var(--muted)}
@media(max-width:420px){
 .social-page{padding-top:14px}
 .community-card[data-post-id]{--avatar-space:42px}
 .community-card-head{gap:10px}
 .post-avatar{width:32px;height:32px}
 .community-actions{gap:0}
 .community-actions .post-action{min-width:40px}
 .community-more{margin-inline-start:0}
}

.post-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.post-layout .community-app{min-width:0;width:48px;min-height:48px;padding:0;border-radius:12px}
.post-layout .app-icon{width:48px;height:48px;border-radius:12px}
.community-actions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
.community-actions>.post-action,.community-actions .community-more>.post-action{flex:none!important;margin:0}
.community-actions .community-more[open]{display:flex;align-items:center;flex:0 0 auto;margin:0}
.community-actions .community-more::details-content{display:inline-flex;vertical-align:middle}
.community-actions .community-more:not([open])::details-content{display:none}
.community-actions .community-more>.post-action{padding:0;min-width:38px}
.community-actions .post-action:focus-visible{outline-offset:-3px}
@media(max-width:420px){.post-layout{gap:8px}.post-layout .community-app,.post-layout .app-icon{width:40px;height:40px;min-height:40px}.community-actions .post-action{min-width:36px}}

.profile-avatar{overflow:hidden}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-editor{border:0;border-radius:20px;width:min(440px,calc(100% - 32px));padding:24px;color:inherit;background:#f5f6f2}
.profile-editor::backdrop{background:#14272066}
.profile-editor form{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:12px 0 0}
.profile-editor input[type=file]{min-width:0}

.post-layout .community-app,.post-layout .app-icon{width:72px;height:72px;min-height:72px;border-radius:17px}
.post-layout .community-app{transition:transform .18s ease,filter .18s ease}
.post-layout .community-app:hover{transform:translateY(-2px);filter:brightness(1.15)}
.post-layout .community-app:active{transform:scale(.94)}
.community-actions .community-more[open]>summary{display:none}
.profile-social-actions .profile-edit-trigger{background:transparent;border:0;color:var(--accent);font-size:14px;padding-inline:8px}
.profile-social-actions .profile-edit-trigger:hover{background:#e4eee6}
.profile-editor{padding:clamp(18px,5vw,30px);max-height:calc(100dvh - 32px);box-shadow:0 18px 80px #10261b40}
.profile-editor header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-editor h2{font-size:23px;margin:0}
#profile-edit-cancel{border:0;border-radius:50%;background:#e5ede7;color:var(--accent);font-size:25px;width:44px;padding:0}
.profile-editor form{gap:14px}
.profile-editor label,.profile-editor input,.profile-editor textarea{font:inherit;font-size:16px;color:inherit}
.profile-editor label{font-weight:600}
.profile-editor textarea{min-height:78px}
.profile-editor input::file-selector-button{font:inherit;border:0;border-radius:8px;padding:6px 9px;background:#dcebe0;color:#174b38;margin-inline-end:8px}
.profile-editor .avatar-remove{display:flex;align-items:center;gap:8px;font-size:14px}
.profile-editor .avatar-remove input{margin:0;width:17px;height:17px;accent-color:var(--accent)}
.profile-privacy{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0}
.profile-privacy small{display:block;font-size:13px;font-weight:400;line-height:1.45;margin-top:5px;color:var(--muted)}
.privacy-switch{display:grid;justify-items:center;gap:4px;position:relative;flex:none}
.privacy-switch input{position:absolute;inset:0;margin:0!important;width:100%!important;height:100%;opacity:0;cursor:pointer}
.privacy-track{width:56px;height:30px;border-radius:99px;background:#203c32;box-shadow:inset 0 0 9px #68f0a688,0 0 10px #52d58c63;transition:background .22s,box-shadow .22s}
.privacy-track::before{content:'';display:block;width:22px;height:22px;margin:4px;border-radius:50%;background:#c3fadb;box-shadow:0 0 8px #76ffb5;transition:transform .28s cubic-bezier(.2,.8,.25,1.15),background .22s,box-shadow .22s}
.privacy-switch input:checked+.privacy-track{background:#4b2933;box-shadow:inset 0 0 9px #ff718eaa,0 0 10px #e84e7263}
.privacy-switch input:checked+.privacy-track::before{transform:translateX(26px);background:#ffe0e7;box-shadow:0 0 8px #ff7d9b}
.privacy-switch input:focus-visible+.privacy-track{outline:2px solid var(--accent);outline-offset:4px}
.privacy-state{font-size:13px;color:#20573c}
.privacy-state::after{content:'公開'}
.privacy-switch input:checked~.privacy-state{color:#9a2d49}
.privacy-switch input:checked~.privacy-state::after{content:'私人'}
#profile-settings-status{margin:0;color:#9a2d49}
#profile-settings-status:empty{display:none}
.profile-save{width:100%;font-size:16px}
@media(max-width:420px){.post-layout .community-app,.post-layout .app-icon{width:60px;height:60px;min-height:60px;border-radius:14px}}
@media(prefers-reduced-motion:reduce){.privacy-track,.privacy-track::before,.post-layout .community-app{transition:none}}

:is(.post-layout:has(.post-app),.compose-content){gap:clamp(12px,4vw,36px);padding-inline-end:clamp(8px,3vw,30px)}
.post-app{display:flex;align-items:center;gap:8px}
:is(.post-layout .post-app .community-app,#compose-link,.edit-post-app,.home-app-glass){display:grid;place-items:center;width:88px;height:88px;min-height:88px;padding:7px;border:0;border-radius:22px;background:linear-gradient(145deg,#ffffffbf,#c0d9d389 48%,#91b3a966);backdrop-filter:blur(12px) saturate(1.45);box-shadow:inset 0 1px 1px #ffffffeb,inset 0 -1px 1px #32675b36,0 7px 16px #29463a26}
:is(.post-layout .post-app .app-icon,#compose-link .app-icon,.edit-post-app .app-icon){width:100%;height:100%;min-height:0;border-radius:16px;overflow:hidden}
.post-app-tools{display:grid;gap:2px}
.post-app-tools .post-action{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:0;background:transparent;color:var(--accent);border-radius:10px}
.post-app-tools .post-action:hover,.post-app-tools .post-action[aria-pressed=true]{background:#e0ece4}
@media(max-width:480px){
 :is(.post-layout:has(.post-app),.compose-content){gap:10px;padding-inline-end:6px}
 .post-app{gap:4px}
 :is(.post-layout .post-app .community-app,#compose-link,.edit-post-app,.home-app-glass){width:62px;height:62px;min-height:62px;padding:5px;border-radius:16px}
 :is(.post-layout .post-app .app-icon,#compose-link .app-icon,.edit-post-app .app-icon){border-radius:12px}
 .post-app-tools .post-action{width:32px;height:32px;min-height:32px}
}

:is(.post-layout .post-app .community-app,#compose-link,.edit-post-app,.home-app-glass){
 background:radial-gradient(ellipse at 20% 0%,#fff 0%,#fff7 32%,transparent 58%),linear-gradient(155deg,#e8f6eddd,#82aca592 58%,#557d74ba);
 box-shadow:inset 0 2px 2px #fffffff5,inset 2px 0 2px #ffffff83,inset -2px -3px 4px #264d4866,0 2px 0 #466b5e65,0 7px 9px #243e393d,0 14px 22px #203b3425;
}
.repost-excerpt{border-inline-start:3px solid #b9cfc2;padding-inline-start:12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.repost-options{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.repost-options button{padding-inline:12px}
.repost-dialog [role=status]:empty{display:none}
.repost-dialog [role=status]{margin:0}

/* Profile identity, timeline, and the forms opened from either surface. */
#profile{
 --profile-ink:#173b31;
 --profile-accent:#21624e;
 --profile-wash:#e7efe9;
 color:var(--profile-ink);
}
#profile .social-toolbar{margin-bottom:0}
#profile .profile-identity{
 position:relative;isolation:isolate;
 gap:clamp(16px,4vw,28px);padding:clamp(18px,4vw,34px);
 margin:4px 0 14px;border-radius:28px;
 background:radial-gradient(ellipse at 83% 12%,#f9f0d8bb,transparent 43%),linear-gradient(118deg,#d6e9dc,#e8f1e9 58%,#eff4ec);
}
#profile .profile-avatar{box-shadow:0 8px 20px #225b4426,inset 0 1px 2px #fffc}
#profile #public-profile-name{font-size:clamp(28px,5vw,43px);letter-spacing:-.045em}
#profile #public-profile-bio{margin:16px 0;max-width:54ch;font-size:16px}
#profile .profile-social-actions{gap:12px;margin:0 0 18px}
#profile .profile-social-actions button{border:0;border-radius:999px;padding-inline:14px}
#profile .profile-social-actions .profile-edit-trigger{background:#e3eee6;font-weight:650}
#profile .profile-social-actions .profile-edit-trigger:hover{background:#d3e6d9}
#profile-tabs{padding:4px;gap:4px;background:#e8eee8;border:0;border-radius:16px}
#profile-tabs button{border-radius:12px;transition:background .16s,color .16s}
#profile-tabs button:hover{color:var(--profile-accent);background:#f5f8f3}
#profile-tabs [aria-pressed=true]{background:#fff;color:var(--profile-accent);box-shadow:0 2px 6px #23443612}
#profile-tabs [aria-pressed=true]::after{content:none}
#profile-feed,#profile-activity{margin-top:12px}
#profile .community-card{padding-block:19px 13px}
#profile .post-content .post-body{line-height:1.72}
.profile-editor{
 background:linear-gradient(160deg,#fbfcf8,#f0f5ef);
 box-shadow:0 24px 78px #112e2645;
}
.profile-editor::backdrop{backdrop-filter:blur(5px);background:#14272065}
.profile-editor label{display:block;color:#254638}
.profile-editor input:not([type=checkbox]):not([type=file]),
.profile-editor textarea,
#profile .comment-form textarea{
 appearance:none;border:0;border-radius:13px;background:#e9f0e9;
 color:#173b31;font:inherit;font-size:16px;line-height:1.45;
 padding:12px 14px;box-shadow:inset 0 1px 3px #1a473b0b;
 transition:background .16s,box-shadow .16s;
}
.profile-editor input:not([type=checkbox]):focus,
.profile-editor textarea:focus,
#profile .comment-form textarea:focus{outline:0;background:#fff;box-shadow:0 0 0 3px #6caa8e63}
.profile-editor textarea::placeholder,#profile .comment-form textarea::placeholder{color:#577164}
.profile-editor .profile-file{position:relative}
.profile-file input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.profile-file-face{
 display:flex;align-items:center;gap:10px;flex-wrap:wrap;
 min-height:46px;padding:8px 12px;margin-top:8px;border-radius:13px;background:#e9f0e9;
}
.profile-file-face span:first-child{color:#205b46;font-weight:700}
#profile-file-name{color:#577164;font-size:13px;font-weight:400;overflow-wrap:anywhere;min-width:0}
.profile-file input:focus-visible+.profile-file-face{outline:2px solid #21624e;outline-offset:2px}
.profile-editor .avatar-remove{width:max-content;max-width:100%;cursor:pointer}
.profile-editor .avatar-remove input{
 appearance:none;display:grid;place-content:center;flex:none;width:22px;height:22px;
 background:#dae9de;border:0;border-radius:7px;cursor:pointer;
}
.profile-editor .avatar-remove input:checked{background:#21624e}
.profile-editor .avatar-remove input:checked::after{content:'✓';color:white;font-size:15px;line-height:1}
.profile-editor .profile-privacy{display:flex}
.repost-dialog .repost-excerpt{
 border:0;background:#e4eee7;color:#315648;
 padding:11px 14px;border-radius:14px;font-size:15px;
}
.repost-options button,.profile-editor .profile-save,#profile .comment-form button{border:0;border-radius:12px}
.repost-options button.secondary{background:#deebe1;color:#205b46}
.repost-options button.secondary:hover:not(:disabled){background:#cee4d5}
.repost-options button.text-button:hover{background:#e5eee5}
@media(max-width:480px){#profile .profile-identity{border-radius:22px}#profile-tabs button{min-height:44px}}
@media(prefers-reduced-motion:reduce){#profile-tabs button,.profile-editor input,.profile-editor textarea{transition:none}}

#profile-tabs{
 --active-segment:0;
 position:relative;isolation:isolate;gap:0;padding:4px;
 border-radius:999px;background:#dfeae3;
}
#profile-tabs[data-active=replies]{--active-segment:1}
#profile-tabs[data-active=reposts]{--active-segment:2}
#profile-tabs::before{
 content:'';position:absolute;inset-block:4px;inset-inline-start:4px;
 width:calc((100% - 8px)/3);border-radius:999px;z-index:-1;
 background:#fff;box-shadow:0 2px 7px #213e3024;
 transform:translateX(calc(var(--active-segment)*100%));
 transition:transform .34s cubic-bezier(.23,.88,.28,1.06);
}
#profile-tabs button{-webkit-tap-highlight-color:transparent;appearance:none}
#profile-tabs button,#profile-tabs button:hover,#profile-tabs [aria-pressed=true]{
 display:flex;align-items:center;justify-content:center;gap:6px;
 min-width:0;min-height:44px;padding:8px 5px;border-radius:999px;
 background:transparent;box-shadow:none;
}
#profile-tabs svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#profile .profile-follow-stat{display:inline-flex;align-items:center;gap:9px;font-size:14px;color:#315e4e}
.profile-follow-stat strong{font-size:18px;font-variant-numeric:tabular-nums;color:#173b31}
#profile .profile-social-actions{justify-content:space-between;min-height:44px;padding-inline:4px}
#profile .profile-identity{overflow:hidden}
#profile .profile-identity::after{
 content:'';position:absolute;z-index:-1;pointer-events:none;
 width:clamp(140px,36vw,310px);aspect-ratio:1;inset-inline-end:-35px;top:-66%;
 border-radius:50%;
 background:repeating-radial-gradient(circle at center,transparent 0 17px,#579a7629 18px 19px,transparent 20px 26px);
 mask-image:linear-gradient(120deg,transparent,#000);
}
@media(prefers-reduced-motion:reduce){#profile-tabs::before{transition:none}}

body[data-page=compose] .topbar{display:none}
#compose{max-width:680px;margin-inline:auto}
#compose .social-toolbar{justify-content:flex-start;gap:10px;margin-bottom:18px}
#compose .social-toolbar h1{font-size:clamp(25px,4vw,34px)}
#gallery-submit{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;align-items:start}
#gallery-submit label{font-size:14px;color:#315e4e;font-weight:650}
#gallery-submit input:not([type=hidden]),#gallery-submit textarea{
 border:0;border-radius:14px;background:#e7efe8;color:#173b31;
 font:inherit;font-size:16px;padding:13px 15px;
}
#gallery-submit textarea{min-height:160px;line-height:1.65}
#gallery-submit input:focus,#gallery-submit textarea:focus{outline:2px solid #548e75;outline-offset:2px;background:#f4f8f2}
.compose-attachments{margin:0}
.compose-attachments summary{width:max-content;max-width:100%;border-radius:999px;background:#e3eee6;padding:9px 14px;font-size:14px;font-weight:650;color:#205b46}
.compose-attachments label{margin-top:12px}
#gallery-submit .compose-send{justify-self:end;border:0;border-radius:999px;padding-inline:22px}
.gallery-heading{
 position:relative;isolation:isolate;overflow:hidden;
 padding:clamp(16px,4vw,30px);border-radius:26px;
 background:radial-gradient(ellipse at 83% 12%,#f9f0d8bb,transparent 43%),linear-gradient(118deg,#d6e9dc,#e8f1e9 58%,#eff4ec);
}
.gallery-heading::after{
 content:'';position:absolute;z-index:-1;pointer-events:none;
 width:clamp(140px,36vw,300px);aspect-ratio:1;inset-inline-end:-24px;top:-100%;
 background:repeating-radial-gradient(circle,transparent 0 17px,#579a7629 18px 19px,transparent 20px 26px);
 mask-image:linear-gradient(120deg,transparent,#000);
}
#public-gallery .community-card{padding-block:19px 13px}
#public-gallery .post-body{line-height:1.72}
@media(max-width:480px){.gallery-heading{border-radius:22px}#gallery-submit .compose-send{width:100%}}

#public-gallery .gallery-heading{justify-content:flex-end;gap:8px;padding:0;margin-bottom:8px;background:none;border-radius:0;overflow:visible}
#public-gallery .gallery-heading::after{content:none}
#public-gallery .social-compose{margin-inline-start:0;flex:none}
#global-search{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin:0;min-width:0}
.community-search-field{width:0;opacity:0;overflow:hidden;transition:width .3s cubic-bezier(.2,.8,.25,1),opacity .2s}
#global-search.is-open .community-search-field{width:min(340px,calc(100vw - 150px));opacity:1}
#global-search input{box-sizing:border-box;margin:0;border:0;border-radius:999px;background:#e7efe8;padding:10px 14px;font-size:16px;width:100%}
#global-search input:focus{outline-offset:-3px}
#global-search .social-icon-button{flex:none}
#public-gallery.is-searching :is(#community-feed,#community-feedback,#community-more){display:none}
#community-search-output article:not(.community-card){padding:12px 0}
@media(prefers-reduced-motion:reduce){.community-search-field{transition:none}}

.community-card[data-post-id]{cursor:auto}
a.post-avatar{text-decoration:none}
a.post-avatar:hover{filter:brightness(.94)}
.post-body-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;cursor:pointer}
.community-thread .comment-form textarea{border:0;border-radius:14px;background:#e7efe8;color:#173b31;font:inherit;padding:12px 14px}
.post-quoted-preview{padding:12px 16px;border-radius:14px;background:#e7efe8;overflow-wrap:anywhere}
.post-quoted-preview p{white-space:pre-wrap;margin:4px 0 0}

.compose-byline{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.compose-byline time{display:block;font-size:13px;color:#577164;margin-top:3px}
.compose-content{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;margin-inline-start:52px}
#gallery-submit .compose-content textarea{margin:0}
#compose-link{color:#205b46}
#compose-link svg{width:24px;height:24px}
@media(max-width:420px){.compose-content{margin-inline-start:42px}}

.profile-editor .compose-byline{margin-bottom:0}
.profile-editor .compose-content textarea{margin:0}

/* Reserve the same column occupied by app actions on a published post. */
.compose-content :is(#compose-link,.edit-post-app){margin-inline-end:42px}
.profile-editor:has(.edit-post-app),.profile-editor:has(.compose-byline){width:min(740px,calc(100% - 32px))}
@media(max-width:480px){.compose-content :is(#compose-link,.edit-post-app){margin-inline-end:36px}}

/* Full viewport local app surface; no card shell or browser-style chrome. */
.local-sandbox{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#faf9f5;overflow:hidden}.local-sandbox::backdrop{background:#faf9f5}.local-sandbox-stage,.local-sandbox-stage iframe{width:100%;height:100%;border:0;display:block}.local-sandbox-open{overflow:hidden}.local-sandbox-handle{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:46px;height:46px;padding:0;border:0;border-radius:50%;background:#183a30cf;color:white;font-size:25px;backdrop-filter:blur(16px);box-shadow:0 5px 24px #08281d24}.local-sandbox-controls{position:absolute;right:16px;bottom:76px;padding:10px;border-radius:22px;background:#f8faf4e8;backdrop-filter:blur(20px);box-shadow:0 10px 35px #142f2726}.local-sandbox-controls[hidden],.local-sandbox-status[hidden]{display:none}.local-sandbox-controls button{border:0;border-radius:16px;padding:12px 18px}.local-sandbox-status{position:absolute;left:14px;bottom:14px;max-width:calc(100% - 86px);padding:6px 12px;margin:0;border-radius:18px;background:#f9faf3dc;color:#2b493d;font-size:13px;pointer-events:none}.local-sandbox-confirm{width:min(420px,calc(100% - 36px));padding:28px;border:0;border-radius:28px;background:#fafbf7;box-shadow:0 24px 100px #102f3940}.local-sandbox-confirm::backdrop{background:#14362d60;backdrop-filter:blur(8px)}.local-sandbox-confirm h2{font-size:23px;margin:0 0 14px}.local-sandbox-confirm p{font-size:16px;line-height:1.7;overflow-wrap:anywhere}.local-sandbox-confirm-actions{display:flex;gap:12px;margin-top:24px}.local-sandbox-confirm-actions>*{flex:1;text-align:center;padding:12px 14px;border:0;border-radius:18px;text-decoration:none;background:#e8efe8;color:#254537;font-size:16px}.local-sandbox-confirm-actions a{background:#305b48;color:white}

#public-gallery .gallery-heading{position:sticky;top:var(--site-header-height);z-index:8;background:#f5f6f2;box-shadow:0 10px 24px #173b300d}

/* One quiet control handle; modes share the same live iframe and save session. */
.sandbox-display-root{position:relative;z-index:1000}
.sandbox-display-root:fullscreen{width:100%;height:100%;background:#faf9f5}
.local-sandbox[data-display=windowed],.local-sandbox[data-display=fullscreen]{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0}
.local-sandbox[data-display=inline]{inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto;left:var(--float-left,auto);top:var(--float-top,auto);position:fixed;width:min(420px,calc(100vw - 24px));height:min(60dvh,560px);max-height:calc(100dvh - 24px);border-radius:24px;box-shadow:0 18px 70px #0b29284a;z-index:1000}
.local-sandbox[data-display=inline]::backdrop{background:transparent}
.local-sandbox-handle{width:40px;height:40px;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));opacity:.7;transition:opacity .2s,transform .2s}
.local-sandbox-handle:hover,.local-sandbox-handle:focus-visible{opacity:1;transform:scale(1.05)}
.local-sandbox-handle svg,.local-sandbox-controls svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin:auto}
.local-sandbox-controls{display:flex;gap:3px;align-items:center;padding:7px;right:12px;bottom:62px;border:0;border-radius:999px;background:#f4f8f0e8;backdrop-filter:blur(20px) saturate(1.3);box-shadow:0 8px 28px #142f2726;max-width:calc(100% - 20px)}
.local-sandbox-controls button{width:40px;height:40px;min-height:40px;padding:9px;border:0;border-radius:50%;background:transparent;color:#315a48}
.local-sandbox-controls button:hover,.local-sandbox-controls button:focus-visible{background:#dce9df}.local-sandbox-controls button[aria-pressed=true]{background:#d1e8d6;color:#174c36}
.local-sandbox-confirm-actions button:last-child{background:#305b48;color:white}
.local-sandbox-mover{display:none;position:absolute;top:3px;left:calc(50% - 30px);width:60px;height:23px;min-height:23px;padding:0;border:0;background:transparent;touch-action:none;cursor:move}
.local-sandbox[data-display=inline] .local-sandbox-mover{display:block}
.local-sandbox-mover::after{content:'';display:block;width:28px;height:4px;border-radius:99px;margin:auto;background:#4b685b55;box-shadow:0 1px 3px #fff9}
@media(max-width:480px){.local-sandbox[data-display=inline]{height:52dvh;border-radius:20px}.local-sandbox-controls{gap:0;padding:5px}.local-sandbox-controls button{width:38px;height:38px;min-height:38px}}
@media(prefers-reduced-motion:reduce){.local-sandbox-handle{transition:none}}

/* Give compose actions room before the feed and profile identity. */
#public-gallery .gallery-heading{padding-top:8px;padding-bottom:clamp(24px,3.5vw,36px);margin-bottom:8px}
#profile .social-toolbar{margin-bottom:clamp(20px,3vw,28px)}

/* The handle and actions share one expanding glass capsule. */
.local-sandbox-dock{--dock-controls-width:301px;--dock-width:50px;position:absolute;z-index:2;transition:opacity .2s;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:0;padding:5px;border-radius:999px;background:#f4f8f0e8;backdrop-filter:blur(20px) saturate(1.3);box-shadow:0 8px 28px #142f2726;max-width:calc(100% - 24px)}
.local-sandbox-dock .local-sandbox-controls{position:static;width:0;min-width:0;max-width:none;overflow:hidden;opacity:0;padding:0;gap:3px;flex:none;background:none;box-shadow:none;backdrop-filter:none;border-radius:999px;transition:width .3s cubic-bezier(.2,.8,.25,1),opacity .2s}
.local-sandbox-dock.is-open{--dock-width:calc(50px + var(--dock-controls-width))}
.local-sandbox-dock:not(.is-open):not(.is-dragging){opacity:.45}
.local-sandbox-dock[data-positioned]{
 right:auto;bottom:auto;
 left:clamp(4px,calc(var(--dock-x) + 25px - var(--dock-width)),max(4px,calc(100% - var(--dock-width) - 4px)));
 top:clamp(4px,calc(var(--dock-y) - 25px),max(4px,calc(100% - 54px)));
}
.local-sandbox.dock-pointer-active .local-sandbox-stage{pointer-events:none}
.local-sandbox-dock.expand-right{flex-direction:row-reverse}
.local-sandbox-dock[data-positioned].expand-right{left:clamp(4px,calc(var(--dock-x) - 25px),max(4px,calc(100% - var(--dock-width) - 4px)))}
.local-sandbox-dock.is-open .local-sandbox-controls{width:var(--dock-controls-width);opacity:1}
.local-sandbox-dock .local-sandbox-controls button{flex:0 0 40px}
.local-sandbox-dock .local-sandbox-handle{position:static;touch-action:none;cursor:grab;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:9px;background:#183a30e8;color:#fff;opacity:1;box-shadow:inset 0 1px 1px #ffffff25,0 2px 6px #08281d24;transition:background .2s}
.local-sandbox-dock .local-sandbox-handle svg{transition:transform .3s cubic-bezier(.2,.8,.25,1)}
.local-sandbox-dock.is-open .local-sandbox-handle svg{transform:rotate(90deg)}
.local-sandbox-dock .local-sandbox-handle:hover,.local-sandbox-dock .local-sandbox-handle:focus-visible{background:#245440;transform:none}
@media(max-width:480px){.local-sandbox-dock{--dock-controls-width:259px}.local-sandbox-dock .local-sandbox-controls button{flex-basis:34px;width:34px;height:40px;min-height:40px;padding:7px}}
@media(prefers-reduced-motion:reduce){.local-sandbox-dock,.local-sandbox-dock .local-sandbox-controls,.local-sandbox-dock .local-sandbox-handle,.local-sandbox-dock .local-sandbox-handle svg{transition:none}}

/* Keep feedback beside the controls that triggered it, including floating mode. */
.local-sandbox-status{left:auto;right:max(12px,env(safe-area-inset-right));bottom:calc(max(12px,env(safe-area-inset-bottom)) + 60px);max-width:min(360px,calc(100% - 24px));box-sizing:border-box;padding:10px 14px;border-radius:16px;background:#f9faf3f2;backdrop-filter:blur(16px);box-shadow:0 5px 22px #142f2720;font-size:14px;line-height:1.5;text-align:start;overflow-wrap:anywhere}

.post-avatar{overflow:hidden}.post-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}

#home .home-works-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.home-community-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 10px;color:var(--accent);border-radius:12px;text-decoration:none;font-size:14px;font-weight:650;white-space:nowrap}
.home-community-link:hover{background:#e7efe7}
.home-community-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-works-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#afc7b8 transparent}
#home-gallery-list{display:grid;grid-template-columns:repeat(10,minmax(78px,1fr));gap:14px clamp(8px,1vw,16px);padding:10px 7px 14px}
#home #home-gallery-list .app-shortcut{touch-action:pan-x pan-y;min-height:103px}
#home .app-shortcut .home-app-glass{width:72px;height:72px;min-height:72px;border-radius:20px;padding:6px;transition:transform 170ms ease-out}
#home .app-shortcut .home-app-glass .app-icon{width:100%;height:100%;min-height:0;border-radius:14px;overflow:hidden;box-shadow:none;transform:none}
#home .arc-selected .home-app-glass{transform:scale(.94)}
@media(max-width:700px){#home-gallery-list{grid-template-columns:repeat(10,76px);gap:10px 8px}#home #home-gallery-list .app-shortcut{min-height:94px}#home .app-shortcut .home-app-glass{width:64px;height:64px;min-height:64px;border-radius:17px;padding:5px}}
@media(prefers-reduced-motion:reduce){#home .app-shortcut .home-app-glass{transition:none}}


#home .home-maker {
  position:relative;
  padding-block:clamp(24px,4.2vw,64px);
  background:radial-gradient(ellipse at 90% 0%,#357459 0%,transparent 54%),linear-gradient(135deg,#112d26,#1d483a);
  color:#f7faf1;
  isolation:isolate;
}
.home-maker::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(circle,#dbffe01f 1px,transparent 1px) 0 0 / 20px 20px;
  mask-image:linear-gradient(115deg,transparent 15%,#000 94%);
}
.home-maker-inner {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(24px,4.5vw,68px);
  padding-inline:clamp(0px,2.6vw,40px);
}
.home-maker-story {min-width:0}
#home .home-maker h1 {margin:0;color:inherit;font-size:clamp(29px,3.9vw,59px);line-height:1.16;letter-spacing:-.055em;font-weight:790}
.home-maker h1 em {color:#c8f293;font-style:normal}
.home-maker-description {margin:18px 0 22px;max-width:32ch;color:#d9ebe1;font-size:clamp(14px,1.4vw,17px);line-height:1.75}
.home-maker-steps {display:flex;gap:8px 14px;flex-wrap:wrap;list-style:none;padding:0;margin:0;font-size:12px;color:#e0f1e6}
.home-maker-steps li {display:flex;align-items:center;gap:6px}
.home-maker-steps span {font-size:10px;letter-spacing:.05em;color:#b9e494;font-variant-numeric:tabular-nums}
.home-studio {min-width:0;color:#edf7ed}
#home-studio-form svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-chat-body {padding:0 0 20px}
.home-chat-message {display:flex;align-items:start;gap:8px}
.home-chat-message img {flex:none;border-radius:9px}
.home-chat-message p {margin:0;padding:14px 17px;background:#dceccf;border-radius:4px 20px 20px;color:#203e2e;font-size:16px;line-height:1.65;max-width:36ch}
.home-chat-examples {display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 0 38px}
.home-chat-examples button {display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:6px 12px;border:0;border-radius:999px;background:#d7f6ca16;color:#e0f3d6;font-size:13px}
.home-chat-examples button:hover {background:#d7f6ca2b}
.home-chat-examples button:disabled {opacity:.55}
.home-chat-examples span {font-size:14px;line-height:1}
.home-chat-footer {padding:0}
#home-studio-form {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin:0;padding:12px;border:0;border-radius:22px;background:#092b23b3;box-shadow:0 12px 28px #071e1824}
#home-studio-form:focus-within {background:#08271fe8}
#home-studio-prompt {width:100%;min-height:88px;max-height:180px;resize:vertical;border:0;outline:0;background:transparent;color:#f1f8e9;caret-color:#cff29e;font:inherit;font-size:17px;line-height:1.6;padding:7px 8px}
#home-studio-prompt::placeholder {color:#b9d4c3}
#home-studio-form button {display:grid;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:15px;background:#c8ef9f;color:#163e2a;box-shadow:0 4px 14px #061c1733}
#home-studio-form button:hover {background:#ddffc0}
#home-studio-status {margin:8px 2px 0;color:#d5ebcd;font-size:13px;line-height:1.45}
@media(max-width:760px){
  #home .home-maker {padding-block:clamp(22px,5vw,36px)}
  .home-maker-inner {grid-template-columns:1fr;gap:18px;padding-inline:0}
  .home-maker-description {margin:10px 0 12px;max-width:42ch}
}
@media(max-width:390px){
  #home-studio-prompt {min-height:72px;font-size:16px}
  .home-chat-examples {margin-inline-start:0}
}
#home-project-limit{width:min(440px,calc(100% - 32px));border:0;border-radius:20px;padding:24px;color:#192720}
#home-project-limit::backdrop{background:#121e236b}
#home-project-limit form{margin:0;justify-content:flex-end}
.studio-visitor-note{font-size:13px;color:var(--muted)}

/* Give wide social pages room to breathe without stretching the reading line. */
@media (min-width: 800px) {
  body:is([data-page=gallery],[data-page=profile]) main {
    max-width: 1368px;
    padding-inline: clamp(24px, 4vw, 64px);
  }

  :is(#public-gallery,#profile) {
    max-width: clamp(680px, calc(50vw + 280px), 1240px);
  }

  #public-gallery #search-results {
    max-width: none;
  }

  :is(#public-gallery,#profile) :is(.post-body,.post-quoted-preview,.community-thread) {
    max-inline-size: 72ch;
  }

  #global-search.is-open .community-search-field {
    width: min(460px, 40vw);
  }
}

.home-chat-examples button[aria-pressed=true]{background:#ccead5;color:#174b35}
@media(prefers-reduced-motion:no-preference){
 #home:not([hidden]) .home-maker-story>*{animation:home-welcome .6s cubic-bezier(.2,.7,.2,1) both}
 #home:not([hidden]) .home-maker-story h1{animation-delay:70ms}
 #home:not([hidden]) .home-maker-description{animation-delay:140ms}
 #home:not([hidden]) .home-maker-steps{animation-delay:210ms}
 #home:not([hidden]) .home-studio{animation:home-chat-arrive .7s cubic-bezier(.2,.7,.2,1) 100ms both}
 #home:not([hidden]) .home-chat-message{animation:home-welcome .5s ease-out 300ms both}
 #home:not([hidden]) .home-chat-examples button{animation:home-welcome .4s ease-out 400ms both}
 #home:not([hidden]) .home-chat-examples button:nth-child(2){animation-delay:480ms}
 #home:not([hidden]) .home-chat-examples button:nth-child(3){animation-delay:560ms}
 #home .home-chat-examples button,#home-studio-form,#home-studio-form button,.home-community-link svg{transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease}
 #home-studio-form:focus-within{box-shadow:0 5px 18px #285e3814;transform:translateY(-2px)}
 #home-studio-form button:hover svg{animation:home-send-nudge .55s ease}
 #home .home-chat-examples button:active,#home-studio-form button:active{scale:.94}
 .home-community-link:hover svg{transform:translateX(5px)}
 #home .home-scroll-ready:not(.home-enter){opacity:0}
 #home :is(#discover,#my-apps).home-enter{animation:home-section-fade .65s ease-out both}
 #home :is(#home-gallery-list,#favorite-rail) .app-shortcut{animation:home-app-arrive .5s cubic-bezier(.2,.7,.2,1) both}
 #home :is(#home-gallery-list,#favorite-rail) .app-shortcut:nth-child(4n+2){animation-delay:70ms}
 #home :is(#home-gallery-list,#favorite-rail) .app-shortcut:nth-child(4n+3){animation-delay:140ms}
 #home :is(#home-gallery-list,#favorite-rail) .app-shortcut:nth-child(4n){animation-delay:210ms}
 #home .app-shortcut:active .home-app-glass{transform:scale(.94)}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 #home .app-shortcut:not(.arc-selected):hover .home-app-glass{transform:translateY(-6px) rotate(-2deg) scale(1.04)}
 #home .home-chat-examples button:hover{translate:0 -2px}
}
@keyframes home-welcome{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes home-chat-arrive{from{opacity:0;transform:translateY(22px) scale(.98)}to{opacity:1;transform:none}}
@keyframes home-app-arrive{from{opacity:0;translate:0 12px;scale:.92}to{opacity:1;translate:0;scale:1}}
@keyframes home-send-nudge{0%,100%{transform:translateY(0)}45%{transform:translateY(-4px)}}
@keyframes home-section-fade{from{opacity:0}to{opacity:1}}
.home-prompt-field{position:relative;min-width:0}
.home-prompt-field textarea{display:block}
#home .home-prompt-field textarea::placeholder{color:transparent}
.home-prompt-hint{position:absolute;top:7px;left:8px;max-width:calc(100% - 8px);color:#b9d4c3;font-size:17px;line-height:1.6;white-space:nowrap;pointer-events:none;visibility:hidden}
#home-studio-prompt:placeholder-shown+.home-prompt-hint{visibility:visible}
.home-prompt-dot{opacity:0}
@media(max-width:390px){.home-prompt-hint{font-size:16px}}
@media(prefers-reduced-motion:no-preference){
 #home:not([hidden]) .home-chat-message img{animation:home-logo-float 3.6s ease-in-out infinite}
 #home:not([hidden]) .home-prompt-dot{animation:home-prompt-dots 2.4s steps(1,end) infinite}
 #home:not([hidden]) .home-prompt-dot:nth-child(2){animation-name:home-prompt-dots-two}
 #home:not([hidden]) .home-prompt-dot:nth-child(3){animation-name:home-prompt-dots-three}
 #home-studio-prompt:not(:placeholder-shown)+.home-prompt-hint .home-prompt-dot{animation:none}
}
@keyframes home-logo-float{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-4px) rotate(-5deg)}65%{transform:translateY(-2px) rotate(4deg)}}
@keyframes home-prompt-dots{0%,100%{opacity:0}20%,85%{opacity:1}}
@keyframes home-prompt-dots-two{0%,100%{opacity:0}40%,85%{opacity:1}}
@keyframes home-prompt-dots-three{0%,100%{opacity:0}60%,85%{opacity:1}}
/* The single-file workspace shares the launcher glass and profile switches. */
body[data-page=studio] main{max-width:1280px;padding-inline:clamp(20px,4vw,64px)}
body[data-page=studio] .topbar{display:none}
#studio{max-width:1100px;margin-inline:auto;padding-block:16px 32px;color:#203e32}
#studio-controls{margin:0;border:0;padding:0;min-width:0}
.studio-project-bar{position:sticky;top:var(--site-header-height);z-index:5;display:flex;align-items:flex-start;gap:20px;padding:14px 0 20px;background:#f7f8f5ed;backdrop-filter:blur(18px)}
#studio-projects{display:flex;flex:1;min-width:0;gap:18px;overflow-x:auto;overscroll-behavior-inline:contain;padding:0 6px 8px;scrollbar-width:thin;scrollbar-color:#aec6b8 transparent}
#studio .studio-app{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;flex:0 0 70px;min-width:0;padding:0 0 9px;border:0;border-radius:0;background:transparent;color:#3d5c4a;font-size:12px;font-weight:550;overflow:visible;white-space:normal}
#studio .studio-app>span:last-child{display:block;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4;font-size:12px}
#studio .studio-project-icon{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:17px;font-size:26px;font-weight:650;background:radial-gradient(ellipse at 20% 0%,#fff,#fff8 32%,transparent 58%),linear-gradient(155deg,#e8f6eddd,#82aca592 58%,#557d74ba);box-shadow:inset 0 2px 2px #fffffff5,inset 2px 0 2px #ffffff83,inset -2px -3px 4px #264d4844,0 3px 0 #466b5e45,0 8px 16px #203b341c;color:#235641;transition:transform .2s ease,background .2s ease}
#studio .studio-add .studio-project-icon{background:#e3ece2;box-shadow:none;color:#366b50}
#studio .studio-app[aria-pressed=true]::after{content:"";position:absolute;bottom:0;width:5px;height:5px;border-radius:50%;background:#387a55}
#studio .studio-app:hover .studio-project-icon{transform:translateY(-3px)}
#studio .studio-app:active .studio-project-icon{transform:scale(.94)}
#studio svg,.studio-dialog svg,#studio-preview svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.studio-workspace{width:100%;min-width:0;margin:14px 0 0}
.studio-heading{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:20px;margin-bottom:24px}
.studio-project-identity{min-width:0}
#studio-project-name{width:100%;min-width:0;padding:4px 0;border:0;border-radius:0;outline:0;background:transparent;color:inherit;font:inherit;margin:0;font-size:clamp(23px,3vw,34px);font-weight:720;line-height:1.3;letter-spacing:-.04em;overflow-wrap:anywhere;display:block;overflow:hidden}
.studio-project-actions,#studio-result{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}
#studio button,.studio-dialog button,#studio-preview button{border:0}
.studio-icon-button{display:grid;place-items:center;width:42px;height:42px;min-height:42px;padding:0;border:0;border-radius:50%;background:transparent;color:#668172}
.studio-icon-button:hover{background:#e4ece3;color:#294f3b}
.studio-icon-button:disabled{opacity:.3}
.studio-play,.studio-publish{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;min-height:44px;border:0;border-radius:999px;font-size:14px;font-weight:650}
.studio-play{background:#e1eddf;color:#2d6043}
.studio-publish{background:#305b48;color:#fff}
.studio-publish:hover{background:#214b39}
#studio-delete:hover{background:#f4e4e0;color:#9e564f}
.studio-mode-switch{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;gap:0;width:100%;max-width:100%;padding:5px;border-radius:999px;background:#e7ede5}
.studio-mode-switch::before{content:"";position:absolute;inset:5px auto 5px 5px;width:calc(50% - 5px);z-index:-1;border-radius:999px;background:#fbfcf8;box-shadow:0 3px 10px #213e3110;transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.studio-mode-switch[data-mode=manual]::before{transform:translateX(100%)}
.studio-mode-switch button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 15px;border:0;border-radius:999px;background:transparent;color:#788879;font-size:14px}
.studio-mode-switch button[aria-pressed=true]{color:#24563d}
#studio-form{display:block;width:100%;margin:0;align-items:stretch}
#studio-ai{width:100%;min-width:0}
.studio-conversation{padding:28px 0 22px;max-height:360px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}
.studio-assistant{display:flex;align-items:flex-start;gap:12px}
.studio-assistant img{flex:none;border-radius:11px;margin-top:3px}
.studio-guide{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.studio-guide p{max-width:100%;margin:0;padding:10px 15px;border-radius:4px 18px 18px;background:#e6efdf;color:#365342;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.studio-guide .studio-quota{font-weight:650;font-variant-numeric:tabular-nums}
#studio-messages{display:flex;flex-direction:column;gap:16px;margin-top:20px}
#studio-messages:empty{display:none}
.studio-user-message{align-self:flex-end;max-width:min(85%,65ch);margin:0;padding:14px 18px;border-radius:20px 4px 20px 20px;background:#305b48;color:#f1f8eb;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6}
.studio-assistant-answer{align-self:flex-start;max-width:calc(100% - 48px);margin:0 0 0 48px;padding:10px 15px;border-radius:4px 18px 18px;background:#e6efdf;color:#365342;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.studio-typing{display:flex;width:max-content;align-items:center;gap:5px;margin-top:12px;min-height:36px}
.studio-typing>span[aria-hidden]{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55}
@media(prefers-reduced-motion:no-preference){
 .studio-typing>span[aria-hidden]{animation:studio-typing-dot 1.1s ease-in-out infinite}
 .studio-typing>span[aria-hidden]:nth-child(3){animation-delay:.14s}
 .studio-typing>span[aria-hidden]:nth-child(4){animation-delay:.28s}
}
@keyframes studio-typing-dot{0%,60%,100%{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.studio-completion{margin:4px 0 0;color:#506b5a;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
.studio-composer{padding:15px 18px 12px;border-radius:24px;background:#e8eee4;box-shadow:0 12px 38px #24473508;transition:background .2s,box-shadow .2s}
.studio-composer:focus-within{background:#e3ecdf;box-shadow:0 12px 40px #24473512}
#studio-prompt{display:block;width:100%;min-height:0;max-height:260px;resize:vertical;margin:0;padding:4px 0;border:0;border-radius:0;outline:0;background:transparent;color:#244d35;caret-color:#326d47;font:17px/1.7 system-ui,-apple-system,"Microsoft JhengHei",sans-serif}
#studio-prompt::placeholder{color:#859380}
.studio-composer-bottom{display:flex;align-items:flex-end;justify-content:flex-end;gap:18px;margin-top:6px}
#studio-send{display:grid;place-items:center;flex:none;width:46px;height:46px;padding:0;border:0;border-radius:15px;background:#305b48;color:white}
#studio-send:hover{background:#224c37}
.studio-status{display:flex;align-items:center;gap:10px;margin:16px 4px 0;font-size:14px;line-height:1.6;color:#537159;overflow-wrap:anywhere}
.studio-status:empty{display:none}
#studio[data-busy=true] .studio-status:not(:empty)::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#70a36b;box-shadow:10px 0 #70a36b88,20px 0 #70a36b44;margin-right:22px;animation:studio-working 1s ease-in-out infinite}
.studio-code-editor{margin-top:24px;border-radius:22px;overflow:hidden;background:#18362c;color:#dbeddb;box-shadow:0 12px 38px #173b3010}
.studio-code-editor header{display:flex;align-items:center;gap:14px;padding:14px 18px}
.studio-code-language{display:flex;align-items:center;gap:8px;font:13px/1.5 ui-monospace,monospace;color:#a5c5ac}
#studio-draft-state{margin-left:auto;font-size:12px;color:#9bb39f}
#studio-save{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;min-height:38px;border-radius:999px;background:#d8eacb;color:#23472e;font-size:13px}
#studio-html{display:block;width:100%;min-height:360px;max-height:65dvh;resize:vertical;margin:0;padding:4px 22px 22px;border:0;border-radius:0;outline:0;background:transparent;color:#edf7e9;font:14px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;caret-color:#c9f19f;scrollbar-width:thin;scrollbar-color:#76927d #18362c}
#studio-html::placeholder{color:#86a38b}
#studio-visitor-note{max-width:900px;margin:24px auto 0;color:#8b9789;font-size:12px;line-height:1.6}
.studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;min-height:420px;text-align:center}
.studio-empty img{border-radius:19px;box-shadow:0 10px 30px #214b3012}
.studio-empty h1{margin:0;font-size:clamp(27px,4vw,42px);line-height:1.4;letter-spacing:-.04em;color:#2c5039}
.studio-empty p{margin:-8px 0 0;max-width:30ch;font-size:15px;color:#506b5a;text-wrap:balance}
.studio-empty button{display:inline-flex;align-items:center;gap:12px;border:0;border-radius:999px;padding:13px 22px;background:#305b48;color:white;font-size:15px}
.studio-dialog{width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:28px;border:0;border-radius:28px;background:#f7faf3;color:#244833;box-shadow:0 24px 90px #102e3733;overflow-y:auto}
.studio-dialog::backdrop,#studio-preview::backdrop{background:#183d3266;backdrop-filter:blur(9px)}
.studio-dialog form{display:block;margin:0}
.studio-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}
.studio-dialog h2{margin:0;font-size:24px;line-height:1.4;letter-spacing:-.03em}
.studio-dialog label{display:block;margin-bottom:9px;font-size:14px;color:#6c846e}
.studio-dialog input{width:100%;padding:15px 16px;border:0;border-radius:16px;background:#e8efe2;color:#244833;font:16px/1.5 system-ui;min-height:54px}
.studio-dialog input::placeholder{color:#85947e}
.studio-dialog input:focus-visible{outline:2px solid #6a9b6b;outline-offset:3px}
.studio-dialog p{font-size:15px;line-height:1.7;overflow-wrap:anywhere}
#studio-new-error:empty,#studio-delete-error:empty{display:none}
#studio-new-error,#studio-delete-error{color:#a55c4d}
#studio-new-submit{width:100%;margin-top:24px}
.studio-dialog-actions{display:flex;gap:12px;margin-top:24px}
.studio-dialog-actions button{flex:1;padding:13px 18px;border-radius:999px;background:#e6eddf;color:#46634b;font-size:15px}
#studio-delete-confirm{background:#a4574e;color:white}
#studio-preview{width:min(96vw,1240px);height:min(90dvh,920px);max-width:none;max-height:94dvh;padding:0;border:0;border-radius:24px;background:#f7faf3;color:#30513a;box-shadow:0 20px 90px #143c3433;overflow:hidden}
#studio-preview>header{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:10px 18px}
#studio-preview h2{margin:0;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#studio-preview form{display:block;margin:0}
#studio-frame{height:calc(100% - 64px)}
#studio-frame iframe{display:block;width:100%;height:100%;border:0;background:white}
@media(max-width:600px){
 #studio{padding-top:4px}
 .studio-project-bar{gap:8px;padding-top:14px;padding-bottom:14px}
 #studio-projects{gap:10px;padding-inline:3px}
 #studio .studio-app{flex-basis:62px;gap:8px}
 #studio .studio-project-icon{width:52px;height:52px;border-radius:15px;font-size:23px}
 #studio .studio-app>span:last-child{max-width:62px;font-size:11px}
 .studio-workspace{margin-top:8px}
 .studio-heading{gap:12px;flex-wrap:wrap;margin-bottom:18px}
 .studio-project-identity{flex:1 1 auto}
 .studio-project-actions,#studio-result{gap:4px}
 .studio-icon-button{width:36px;height:40px;min-height:40px}
 .studio-play,.studio-publish{gap:6px;padding:9px 12px;min-height:40px;font-size:13px}
 .studio-play span{display:none}
 .studio-play{width:40px;padding:0;border-radius:50%}
 .studio-mode-switch{width:100%}
 .studio-mode-switch button{min-height:40px;font-size:13px}
 .studio-conversation{overscroll-behavior-y:auto;padding-block:22px 18px;max-height:clamp(100px,calc(100dvh - 540px),240px)}
 .studio-assistant{gap:10px}
 .studio-guide p{padding:8px 11px;font-size:14px}
 .studio-composer{padding:12px 14px;border-radius:21px}
 #studio-prompt{font-size:16px}
 .studio-composer-bottom{gap:12px}
 .studio-code-editor header{padding:12px;gap:8px}
 #studio-html{min-height:300px;font-size:13px;padding-inline:16px}
 .studio-dialog{padding:24px}
 #studio-preview{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
}
@media(prefers-reduced-motion:no-preference){
 .studio-workspace{animation:home-welcome .35s ease-out}
 .studio-user-message,.studio-assistant-answer{animation:home-welcome .25s ease-out}
 .studio-dialog[open]{animation:device-prompt-enter .2s ease-out}
}
@keyframes studio-working{0%,100%{opacity:.5}50%{opacity:1}}
#home-studio-prompt,#studio-prompt{resize:none;max-height:none;overflow-y:hidden}
.studio-project-identity{display:flex;align-items:center;gap:14px}
#studio .studio-logo-edit{position:relative;flex:none;width:58px;height:58px;padding:0;border:0;border-radius:17px;background:transparent}
#studio .studio-project-icon img{display:block;width:calc(100% - 10px);height:calc(100% - 10px);border-radius:12px;object-fit:cover}
.studio-logo-edit-mark{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#305b48;color:#fff;box-shadow:0 3px 9px #173f3130}
#studio .studio-logo-edit-mark svg{width:14px;height:14px}
.studio-logo-edit:hover .studio-logo-edit-mark{background:#1e4734}
@media(max-width:600px){.studio-project-identity{gap:10px}#studio .studio-logo-edit{width:48px;height:48px}#studio .studio-logo-edit .studio-project-icon{width:48px;height:48px}}
.studio-heading{gap:18px}
.studio-project-identity{width:100%}
#studio-project-name{display:block;min-height:50px;line-height:1.4;white-space:nowrap;text-overflow:clip;transition:background .2s}
#studio-project-name:hover,#studio-project-name:focus{background:#e9f0e3;border-radius:12px}
#studio-project-name:focus-visible{outline:2px solid #82a17d;outline-offset:4px}
.studio-project-actions{width:100%;justify-content:flex-end}
.studio-mode-switch{width:100%}
.studio-mode-switch button{min-height:46px}
#studio-link-dialog input{margin-top:18px}
@media(max-width:600px){.studio-mode-switch{width:100%}.studio-project-identity{flex:auto}.studio-project-actions{justify-content:flex-end}#studio-project-name{font-size:24px}.studio-heading{gap:12px}.studio-workspace{max-width:100%}}
@media(prefers-reduced-motion:reduce){.studio-mode-switch::before,.studio-project-icon,.studio-composer{transition:none!important}#studio[data-busy=true] .studio-status::before{animation:none}}
#studio-html{resize:none}
#studio-publish{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
.studio-unsaved-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.studio-unsaved-actions button{flex:1;min-width:110px;border:0;border-radius:999px;padding:12px;background:#e6eddf;color:#46634b;font-size:14px}
.studio-unsaved-actions #studio-unsaved-save{background:#305b48;color:#fff}
.studio-unsaved-actions #studio-unsaved-stay{flex-basis:100%;background:transparent}
#studio-unsaved-error:empty{display:none}
#studio-unsaved-error{color:#a55c4d}
/* Member centre v1: open lists, shared navigation and focused editors. */
body:is([data-page=projects],[data-page=library],[data-page=security]) main{max-width:1280px;padding-inline:clamp(20px,4vw,64px)}
body:is([data-page=projects],[data-page=library],[data-page=security]) .topbar{display:none}
.member-page{width:100%;max-width:1100px;margin:0 auto;padding:28px 0 40px;color:#254534}
.member-tabs{display:flex;gap:4px;width:min(100%,420px);padding:5px;border-radius:999px;background:#e7ede4;margin-bottom:34px}
.member-tabs button{display:flex;justify-content:center;align-items:center;flex:1;min-height:44px;padding:10px 20px;margin:0;border:0;border-radius:999px;background:transparent;color:#7a8978;font-size:15px;text-align:center}
.member-tabs button[aria-current=page]{background:#fbfcf7;color:#28533b;box-shadow:0 3px 12px #203f3010}
.member-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.member-heading h1{margin:0;color:#244932;font-size:clamp(27px,3vw,38px);letter-spacing:-.04em;line-height:1.4}
.member-heading p{margin:8px 0 0;font-size:13px;color:#8a9784}
.member-count{margin-left:10px;font-size:16px;vertical-align:middle;color:#8a9b83;letter-spacing:0;font-weight:500;font-variant-numeric:tabular-nums}
.member-heading-actions{display:flex;align-items:center;gap:14px;flex:none}
.member-primary,.member-heading-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 20px;border:0;border-radius:999px;background:#305b48;color:white;font-size:14px}
.member-heading-actions #account-action{background:transparent;color:#547351}
.member-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.member-filters,.member-utilities{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.member-filters button{min-height:40px;padding:8px 14px;border:0;border-radius:999px;background:transparent;color:#84927e;font-size:13px}
.member-filters button[aria-pressed=true]{background:#e4eddd;color:#315d3e}
.member-utilities button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border:0;border-radius:999px;background:transparent;color:#758b70;font-size:13px}
.member-utilities button:hover{background:#e9eee4}
.member-utilities svg,.member-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.member-list{display:flex;flex-direction:column;gap:0;min-width:0}
.member-work{display:flex;align-items:center;gap:22px;min-width:0;padding:24px 4px;border:0;background:transparent}
.member-work+.member-work{box-shadow:0 -1px #e3e9df}
.member-artwork{display:grid;place-items:center;flex:none;width:74px;height:74px;min-height:74px;padding:0;border:0;border-radius:21px;background:transparent}
.member-artwork .home-app-glass{width:70px;height:70px;min-height:70px;padding:6px;border-radius:20px;transition:transform .2s}
.member-artwork .app-icon{width:100%;height:100%;min-height:0;border-radius:14px;overflow:hidden;box-shadow:none}
.member-artwork .app-icon img{width:100%;height:100%;object-fit:cover}
.member-artwork:hover .home-app-glass{transform:translateY(-3px)}
.member-artwork:disabled{opacity:.55;cursor:default}
.member-work-copy{min-width:0;flex:1}
.member-work-copy h2{margin:0;color:#2c5039;font-size:19px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}
.member-work-copy>p{margin:6px 0 0;font-size:13px;color:#899680}
.member-work-meta{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:9px;font-size:12px;color:#97a18e}
.member-work-state{color:#8e9483;background:#edf0e5;padding:4px 9px;border-radius:999px;white-space:nowrap}
.member-work-state.is-shared{color:#3f764b;background:#e6f0de}
.member-row-actions{display:flex;align-items:center;gap:4px;flex:none}
.member-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:#8b9d82}
.member-icon:hover{background:#e6eddf;color:#355f42}
.member-icon.member-danger:hover{background:#f3e4dd;color:#a45b4b}
.member-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:280px;padding:30px 20px;text-align:center}
.member-empty h2{margin:0;color:#58754e;font-size:23px;letter-spacing:-.02em;font-weight:600}
.member-empty p{margin:0;color:#8d9b82;font-size:14px;line-height:1.7}
#works-status,#home-work-status{margin:12px 0;font-size:13px;color:#8b977f}
#works-status:empty,#home-work-status:empty{display:none}
.member-categories{margin-top:34px;padding:22px 0}
.member-categories summary{font-size:14px;color:#6b805f}
#category-form{display:flex;gap:10px;max-width:460px;margin:20px 0}
#category-form input{flex:1;min-width:0;border:0;border-radius:15px;background:#e9eee3;padding:13px 16px;font-size:16px;color:#37543d}
#category-form button{flex:none;border:0;border-radius:999px;padding:10px 18px;background:#dce8d2;color:#466842;font-size:14px}
#categories{display:flex;flex-wrap:wrap;gap:10px}
.member-category{display:flex;align-items:center;gap:8px;padding:3px 4px 3px 16px;border-radius:999px;background:#e9eee2;font-size:14px;color:#637b55}
.member-category .member-icon{width:34px;height:34px;min-height:34px}
.member-dialog{width:min(500px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:28px;border:0;border-radius:28px;background:#f8faf3;color:#36533d;box-shadow:0 24px 90px #193e3530;overflow-y:auto}
.member-dialog::backdrop{background:#1a3d3266;backdrop-filter:blur(8px)}
.member-dialog h2{margin:0 0 22px;font-size:24px;line-height:1.4;letter-spacing:-.03em}
.member-dialog form{display:block;margin:0}
.member-dialog p{margin:14px 0;font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.member-dialog label{display:block;margin:18px 0 0;font-size:13px;color:#7d8c72}
.member-dialog input,.member-dialog select,.member-dialog textarea{width:100%;min-width:0;margin-top:8px;padding:14px 16px;border:0;border-radius:15px;background:#e8eee0;color:#36503b;font:16px/1.5 system-ui;outline:0}
.member-dialog input::placeholder{color:#9aa58b}
.member-dialog input:focus-visible,.member-dialog select:focus-visible,.member-dialog textarea:focus-visible{outline:2px solid #8ba57a;outline-offset:3px}
.member-dialog select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#6d8760 50%),linear-gradient(135deg,#6d8760 50%,transparent 50%);background-position:calc(100% - 20px) 52%,calc(100% - 15px) 52%;background-size:5px 5px;background-repeat:no-repeat;padding-right:38px}
.member-dialog textarea{min-height:260px;max-height:45dvh;resize:none;background:#18362c;color:#e0edda;font:13px/1.7 ui-monospace,Consolas,monospace;tab-size:2}
.member-dialog-actions{display:flex;gap:12px;margin-top:24px}
.member-dialog-actions button{flex:1;border:0;border-radius:999px;background:#e7eddf;color:#69805c;padding:13px;font-size:15px}
.member-dialog-actions button:last-child{background:#305b48;color:#fff}
.member-dialog-actions .member-danger-primary{background:#a65d50!important}
.member-dialog .member-dialog-error{color:#a65d50;font-size:14px}
.member-dialog-error:empty{display:none}
.member-page.security-page>.page-heading{padding-top:0}
.member-page.security-page .panel{border:0;border-radius:0;background:transparent;box-shadow:none;padding:24px 0;margin:0}
.member-page.security-page .panel+.panel{box-shadow:0 -1px #e3e9df}
.member-page.security-page .panel h2{font-size:19px;color:#38563c}
.member-page.security-page .panel p{font-size:14px;color:#8a977d;line-height:1.7}
.member-page .security-item{border:0;border-radius:0;background:transparent;box-shadow:none;padding:16px 0}
.member-page .security-item-actions button,.member-page .security-page button.secondary,.member-page.security-page button.secondary{border:0;border-radius:999px;background:#e7efdd;color:#52754c}
.member-page .key-name-form input{border:0;border-radius:14px;background:#e8eee0;font-size:16px}
.member-page.security-page details>summary{font-size:14px;color:#728864}
.member-page .security-current{background:linear-gradient(120deg,#e0ead8,#eff3e8)!important;padding:24px!important;border-radius:24px!important;margin-bottom:18px!important}
.member-page .security-confirm{border:0;box-shadow:0 24px 90px #193e3530}
.member-page .security-confirm input{border:0;border-radius:14px;background:#e8eee0;font-size:16px}
@media(max-width:650px){
 .member-page{padding-top:20px}
 .member-tabs{width:100%;margin-bottom:26px}
 .member-tabs button{font-size:14px;padding:10px}
 .member-heading{align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:20px}
 .member-heading h1{font-size:28px}
 .member-heading-actions{gap:8px}
 .member-heading-actions button{font-size:13px;padding:10px 16px}
 .member-toolbar{gap:8px;align-items:flex-start;flex-wrap:wrap}
 .member-filters button{padding:7px 12px}
 .member-utilities{gap:0}
 .member-utilities button{padding:7px 10px;font-size:12px}
 .member-work{gap:14px;flex-wrap:wrap;padding:20px 0}
 .member-artwork{width:62px;height:62px;min-height:62px}
 .member-artwork .home-app-glass{width:60px;height:60px;min-height:60px;border-radius:17px;padding:5px}
 .member-work-copy{flex-basis:calc(100% - 80px)}
 .member-work-copy h2{font-size:17px}
 .member-work-meta{font-size:11px;gap:7px}
 .member-row-actions{flex-basis:100%;justify-content:flex-end;padding-left:74px;margin-top:-6px}
 .member-icon{width:38px;height:38px;min-height:38px}
 .member-dialog{padding:24px}
 .member-page.security-page .section-head{flex-wrap:wrap;gap:12px}
}
@media(prefers-reduced-motion:no-preference){.member-work{animation:home-welcome .25s ease-out}.member-dialog[open]{animation:device-prompt-enter .2s ease-out}.member-icon,.member-tabs button{transition:background .18s,color .18s}}
@media(prefers-reduced-motion:reduce){.member-artwork .home-app-glass{transition:none}}
.member-work-meta{color:#718469;font-size:13px}
.member-work-copy>p{color:#6e8068}
.member-heading p{color:#788a6c}
/* App library: open home-screen grid and glass folders. */
.member-apps-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:44px}
.member-apps-heading .member-tabs{width:240px;margin:0;flex:none}
.member-apps-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.member-apps-tools button{border:0;background:transparent;color:#54745c}
.member-app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:30px 24px;align-content:start;padding:8px 4px 44px;min-height:300px}
.member-app-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.member-app-launch{position:relative;display:grid;place-items:center;width:90px;height:90px;min-height:90px;padding:0;border:0;background:transparent;border-radius:26px;color:#315b43;touch-action:pan-y}
.member-app-launch>.home-app-glass{width:82px;height:82px;padding:7px;border-radius:24px;transition:transform .22s,filter .22s}
.member-app-launch .app-icon{width:100%;height:100%;border-radius:18px;overflow:hidden;min-height:0}
.member-app-launch .app-icon img{width:100%;height:100%;object-fit:cover}
.member-app-launch:hover>.home-app-glass{transform:translateY(-4px) scale(1.035)}
.member-app-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;width:100%;max-width:150px;text-align:center;font-size:14px;line-height:1.45;color:#3d5948}
.app-owner-badge{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:linear-gradient(145deg,#507d61,#254d3a);box-shadow:0 3px 7px #163e3536,inset 0 1px #ffffff55;color:#f6fff0}
.app-owner-badge svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-tile-settings{position:absolute;right:-4px;top:-4px;width:28px;height:28px;min-height:28px;background:#edf3e7c9;backdrop-filter:blur(10px);opacity:0;transform:scale(.8);transition:opacity .15s,transform .15s}
.app-tile-settings svg{width:15px;height:15px}
.member-app-tile:hover .app-tile-settings,.member-app-tile:focus-within .app-tile-settings{opacity:1;transform:scale(1)}
.member-folder-launch{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px;align-content:start;justify-items:center;width:82px;height:82px;min-height:82px;margin:4px;padding:10px;border:0;border-radius:24px;background:linear-gradient(145deg,#ffffff9e,#d9e4d3a8);box-shadow:inset 0 1px 2px #ffffffcc,inset 0 -2px 4px #8fa28b33,0 6px 12px #2645331f;backdrop-filter:blur(18px);transition:transform .2s}
.member-folder-launch:hover{transform:translateY(-3px)}
.member-folder-launch>.home-app-glass{width:18px;height:18px;padding:1px;border-radius:5px;box-shadow:0 1px 3px #1b46372b;min-height:0}
.member-folder-launch .app-icon{width:100%;height:100%;border-radius:4px;min-height:0;overflow:hidden}
.member-folder-launch .app-icon img{width:100%;height:100%;object-fit:cover}
.app-drop-target .member-folder-launch,.app-drop-target .member-app-launch>.home-app-glass{transform:scale(1.14);filter:brightness(1.05);box-shadow:0 0 0 7px #60836c20,0 12px 25px #244c3d24}
.app-drag-source{opacity:.28}
.app-drag-ghost{position:fixed;z-index:2147483647;width:110px;pointer-events:none;transform:translate(-50%,-45%) scale(1.08);filter:drop-shadow(0 12px 14px #254f3b44)}
.app-drag-ghost .app-tile-settings{display:none}
.app-dragging,.app-dragging *{cursor:grabbing!important}
.member-app-empty{justify-self:center;width:82px;height:82px;min-height:82px;border:0;border-radius:24px;background:#e6eedf;color:#66855c;font-size:34px;font-weight:300}
.member-app-actions{display:flex;justify-content:center;padding:10px 0}
.member-app-actions .member-row-actions{flex-wrap:wrap;justify-content:center;padding:0}
.member-folder-dialog{width:min(660px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:30px;border:0;border-radius:34px;background:#f2f6edea;color:#315641;box-shadow:0 30px 100px #1035283b;backdrop-filter:blur(28px);overflow:auto}
.member-folder-dialog::backdrop{background:#29433644;backdrop-filter:blur(9px)}
.member-folder-heading{display:flex;align-items:center;gap:12px;margin-bottom:26px}
.member-folder-name{flex:1;min-width:0;padding:8px 4px;border:0;background:transparent;color:#315641;font:600 23px/1.4 system-ui;letter-spacing:-.025em;outline:0}
.member-folder-name:focus{background:#e6eedf;border-radius:12px;padding-inline:12px}
.member-folder-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:8px;border:0;border-radius:50%;background:#e3ecdb;color:#537c5a}
.member-folder-close svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none}
.member-folder-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:26px 16px;min-height:160px;padding-bottom:20px}
.member-folder-out{padding:18px;text-align:center;color:#7c9275;font-size:13px;border-radius:20px;background:#e1ead96e;opacity:0;transition:opacity .2s;pointer-events:none}
.app-dragging .member-folder-out{opacity:1;pointer-events:auto}
#profile-social-settings{margin:24px 0;padding:0}
#profile-social-settings details{padding:16px 0;border:0;border-radius:0;box-shadow:none;background:transparent}
#profile-social-settings summary{color:#628263;font-size:14px;cursor:pointer}
#profile-social-settings button{border:0;border-radius:999px;background:#e5eedf;color:#4c724f;padding:9px 14px}
#profile-social-settings h3{font-size:15px;color:#466849;margin-top:24px}
#profile-social-settings #follow-pending>div,#profile-social-settings #follow-members>div,#blocked-profiles>div{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:14px}
@media(hover:none){.app-tile-settings{opacity:1;transform:none;background:transparent;color:#82957b}}
@media(max-width:650px){.member-apps-heading{gap:8px;flex-wrap:wrap;margin-bottom:28px}.member-apps-heading .member-tabs{width:190px}.member-apps-tools{gap:2px}.member-apps-tools .member-icon{width:34px;height:34px;min-height:34px}.member-app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 10px;padding-inline:0}.member-app-launch{width:72px;height:72px;min-height:72px}.member-app-launch>.home-app-glass{width:66px;height:66px;border-radius:20px;padding:6px}.member-app-launch .app-icon{border-radius:14px}.member-app-name{font-size:12px;line-height:1.45}.app-owner-badge{width:22px;height:22px;border-radius:8px;right:0}.app-owner-badge svg{width:13px;height:13px}.member-folder-launch{width:66px;height:66px;min-height:66px;margin:3px;padding:9px;gap:3px;border-radius:20px}.member-folder-launch>.home-app-glass{width:14px;height:14px}.member-folder-dialog{padding:24px 18px;border-radius:28px}.member-folder-name{font-size:21px}.member-folder-grid{grid-template-columns:repeat(3,minmax(0,1fr));min-height:130px}.member-app-empty{width:66px;height:66px;min-height:66px}.app-tile-settings{right:-3px;width:23px;height:23px;min-height:23px}.app-tile-settings svg{width:13px;height:13px}}
@media(max-width:355px){.member-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.member-apps-heading .member-tabs{width:170px}}
@media(prefers-reduced-motion:no-preference){.member-app-tile{animation:home-welcome .25s ease-out}.member-folder-dialog[open]{animation:device-prompt-enter .2s ease-out}}
@media(prefers-reduced-motion:reduce){.member-app-launch>.home-app-glass,.member-folder-launch,.app-tile-settings{transition:none}}
/* Keep miniatures independent of the shared, full-size glass-icon selectors. */
:is(#works,#member-folder-dialog) .member-app-launch>.home-app-glass{width:82px;height:82px;min-height:82px;padding:7px;border-radius:24px}
:is(#works,#member-folder-dialog) .member-app-launch .app-icon{width:100%;height:100%;min-height:0;border-radius:18px;overflow:hidden;transform:none;box-shadow:none}
#works .member-folder-launch>.home-app-glass{width:18px;height:18px;min-width:0;min-height:0;padding:1px;border-radius:5px;overflow:hidden}
#works .member-folder-launch .app-icon{width:100%;height:100%;min-width:0;min-height:0;border-radius:4px;transform:none;box-shadow:none}
@media(max-width:650px){:is(#works,#member-folder-dialog) .member-app-launch>.home-app-glass{width:66px;height:66px;min-height:66px;padding:6px;border-radius:20px}:is(#works,#member-folder-dialog) .member-app-launch .app-icon{border-radius:14px}#works .member-folder-launch>.home-app-glass{width:14px;height:14px;min-height:0}}
.passkey-modes{position:relative;display:flex;padding:5px;border-radius:999px;background:#e4ecde;isolation:isolate}
.passkey-modes::before{content:"";position:absolute;z-index:-1;inset:5px auto 5px 5px;width:calc(50% - 5px);border-radius:999px;background:#fbfcf7;box-shadow:0 3px 12px #24443112;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.passkey-modes[data-mode=hybrid]::before{transform:translateX(100%)}
.passkey-modes button{flex:1;border:0;padding:12px 10px;border-radius:999px;background:transparent;color:#6e8567;font-size:15px}
.passkey-modes button[aria-pressed=true]{color:#2f5941}
@media(prefers-reduced-motion:reduce){.passkey-modes::before{transition:none}}
.member-app-tile.is-owned .app-tile-settings{top:64px;right:calc(50% - 45px);width:25px;height:25px;min-height:25px;border-radius:9px;opacity:1;transform:none;background:linear-gradient(145deg,#507d61,#254d3a);color:#f6fff0;box-shadow:0 3px 7px #163e3536,inset 0 1px #ffffff55}
.member-app-tile.is-owned .app-tile-settings:hover{background:#315e45;transform:scale(1.08)}
.member-app-tile.is-owned .app-tile-settings svg{width:14px;height:14px}
@media(max-width:650px){.member-app-tile.is-owned .app-tile-settings{top:50px;right:calc(50% - 36px);width:22px;height:22px;min-height:22px;border-radius:8px}.member-app-tile.is-owned .app-tile-settings svg{width:12px;height:12px}}
.member-arrange-done{border:0;border-radius:999px;padding:9px 15px;min-height:36px;background:#315f46!important;color:white!important;font-size:13px}
.member-arranging .member-app-tile{touch-action:none}
.member-arranging .member-app-launch{touch-action:none}
.member-arranging .app-tile-settings{opacity:1;transform:none}
.member-arranging .member-app-tile:not(.app-drag-source,.app-drag-ghost){animation:app-arrange-wiggle .23s ease-in-out infinite alternate;transform-origin:50% 40%}
.member-arranging .member-app-tile:nth-child(even){animation-delay:-.15s}
.app-drop-target:not(.app-merge-ready)::before{content:"";position:absolute;left:-7px;top:12px;width:3px;height:64px;border-radius:3px;background:#557d60}
.app-merge-ready .member-folder-launch,.app-merge-ready .member-app-launch>.home-app-glass{filter:brightness(1.1);box-shadow:0 0 0 8px #60836c26,0 12px 25px #244c3d24;transform:scale(1.13)}
@keyframes app-arrange-wiggle{from{transform:rotate(-1.4deg)}to{transform:rotate(1.4deg)}}
@media(prefers-reduced-motion:reduce){.member-arranging .member-app-tile:not(.app-drag-source,.app-drag-ghost){animation:none}}
.member-action-dial{position:fixed;inset:auto 0 0;margin:0 auto;width:min(820px,100vw);height:min(410px,50vw);padding:0 0 env(safe-area-inset-bottom);overflow:visible;border:0;background:transparent;box-shadow:none;pointer-events:none;color:#315b45;isolation:isolate}
.member-action-dial::backdrop{background:transparent;pointer-events:none}
.member-dial-zone{position:absolute;inset:0;pointer-events:none;transition:filter .2s,opacity .2s}
.member-dial-liquid{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;filter:drop-shadow(0 -4px 14px #33583d16)}
.member-dial-liquid>path{pointer-events:visiblePainted;stroke:#ffffffa8;stroke-width:1.4;transition:filter .2s,stroke-width .2s}
.member-dial-button{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100px;max-width:24vw;height:75px;border:0;border-radius:22px;padding:8px 2px;background:transparent;font-size:14px;font-weight:650;pointer-events:auto;transition:transform .2s}
.member-dial-button svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.member-dial-zone.is-drop-hover{filter:brightness(1.1) saturate(1.2)}
.member-dial-zone.is-drop-hover .member-dial-liquid>path{stroke:#ffffff;stroke-width:4;filter:drop-shadow(0 -5px 14px #36573f29)}
.member-dial-zone.is-drop-hover .member-dial-button{transform:translate(-50%,-50%) scale(1.12)}
.member-dial-zone.is-disabled{opacity:.35;filter:saturate(.3)}
body.member-arranging[data-page=projects] .main-column{padding-bottom:min(440px,54vw)}
.member-action-dial:popover-open{animation:app-dial-rise .36s cubic-bezier(.2,.8,.2,1)}
@keyframes app-dial-rise{from{opacity:0;translate:0 105%}to{opacity:1;translate:0 0}}
@media(max-width:650px){.member-action-dial{height:calc(50vw + env(safe-area-inset-bottom))}.member-dial-button{gap:5px;font-size:11px;height:62px}.member-dial-button svg{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.member-action-dial:popover-open{animation:none}.member-dial-zone,.member-dial-button,.member-dial-liquid>path{transition:none}}
.member-center-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1100px;margin:0 auto 34px;padding-top:28px}
.member-center-bar .member-tabs{position:relative;isolation:isolate;display:flex;flex:none;width:240px;height:54px;margin:0;padding:5px;border-radius:999px;background:#e7ede4}
.member-center-bar .member-tabs::before{content:"";position:absolute;z-index:-1;left:5px;top:5px;bottom:5px;width:calc(50% - 5px);border-radius:999px;background:#fbfcf7;box-shadow:0 3px 12px #203f3010;transform:translateX(calc(var(--member-tab,0)*100%));transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.member-center-bar .member-tabs button{flex:1 1 0;width:auto;min-width:0;min-height:44px;height:44px;padding:10px 16px;border:0;border-radius:999px;background:transparent;box-shadow:none;font-size:15px;font-weight:550;text-align:center;justify-content:center;color:#7a8978}
.member-center-bar .member-tabs button[aria-current=page]{background:transparent;color:#28533b;box-shadow:none}
body:is([data-page=projects],[data-page=security]) .member-page{padding-top:0}
@media(max-width:650px){.member-center-bar{gap:8px;flex-wrap:wrap;padding-top:20px;margin-bottom:28px}.member-center-bar .member-tabs{width:190px}.member-center-bar .member-tabs button{font-size:14px}}
@media(max-width:355px){.member-center-bar .member-tabs{width:170px}}
@media(prefers-reduced-motion:reduce){.member-center-bar .member-tabs::before{transition:none}}
.member-action-dial.dial-leaving{animation:app-dial-fall .22s cubic-bezier(.4,0,.8,.2) forwards;pointer-events:none}
.member-action-dial.dial-leaving *{pointer-events:none!important}
@keyframes app-dial-fall{to{opacity:0;translate:0 105%}}
.r3-footer.member-footer-exit{animation:member-footer-out .34s cubic-bezier(.4,0,.7,.3) forwards;pointer-events:none;overflow-anchor:none}
.r3-footer.member-footer-return{animation:member-footer-in .34s cubic-bezier(.2,.7,.2,1) both;overflow-anchor:none}
.r3-footer.member-footer-offscreen{visibility:hidden}
@keyframes member-footer-out{from{transform:translateY(0);opacity:1}to{transform:translateY(var(--footer-travel));opacity:0}}
@keyframes member-footer-in{from{transform:translateY(var(--footer-travel));opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.r3-footer.member-footer-exit{animation:none;visibility:hidden}.r3-footer.member-footer-return{animation:none}}
.member-app-tile,.member-app-tile .member-app-launch,.member-app-tile .member-folder-launch{touch-action:none}
.app-drag-ghost{animation:none!important;opacity:1}

.app-drag-ghost[popover]{inset:auto;margin:0;padding:0;border:0;background:transparent;overflow:visible;opacity:.72}
.app-drag-ghost,.app-drag-ghost *{pointer-events:none!important}
.profile-toolbar-actions{display:flex;align-items:center;gap:8px}
#profile-follow-requests{position:relative}
.profile-request-badge{position:absolute;top:0;right:-3px;min-width:19px;padding:0 4px;border-radius:999px;background:#bb2539;color:white;font-size:11px;font-weight:750;line-height:19px;text-align:center;font-variant-numeric:tabular-nums;pointer-events:none}
.profile-connection-stats{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
#profile .profile-social-actions .profile-follow-stat{background:transparent;padding:8px 10px}
#profile .profile-social-actions .profile-follow-stat:hover{background:#e3eee6}
#profile-connections header{margin-bottom:14px}
#profile-connections-status{margin:12px 0 0;font-size:14px}
#profile-connections-status:empty{display:none}
#profile-connections-more{margin-top:12px}
.profile-connection-row{display:flex;align-items:center;gap:6px;min-height:58px}
.connection-identity{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}
.connection-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.connection-identity:hover strong{text-decoration:underline}
.connection-identity .post-avatar{flex:none}
.connection-action{border:0;border-radius:999px;background:var(--accent);color:white;inline-size:6.5em;min-block-size:38px;padding:0;font-size:13px;white-space:nowrap;flex:none}
.connection-action[data-following=true]{background:#deebe2;color:#235442}

#home .home-app-glass{position:relative;overflow:visible}
#home .home-app-entry{position:relative;min-width:0}
#home #favorite-rail .home-app-entry{flex:0 0 var(--launcher-cell);scroll-snap-align:start}
#home .home-owner-badge{position:absolute;z-index:1;right:calc(50% - 40px);top:52px;border:0;padding:0;min-height:24px;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:linear-gradient(145deg,#507d61,#254d3a);color:#f6fff0;box-shadow:0 3px 7px #163e3536,inset 0 1px #ffffff55}
#home .home-owner-badge:hover{background:#315e45}
@media(max-width:700px){#home .home-owner-badge{right:calc(50% - 36px);top:44px}}
#home .home-owner-badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

#home .home-more-art{display:grid;place-items:center;background:linear-gradient(145deg,#f2faf3,#bcd4c4);color:#315d49}
#home .home-more-art svg{width:27px;height:27px;fill:currentColor}


@media (min-height:520px){
 #studio:has(#studio-form:not([hidden]) #studio-ai:not([hidden])){height:calc(100dvh - var(--site-header-height));padding-bottom:max(10px,env(safe-area-inset-bottom))}
 #studio:has(#studio-form:not([hidden]) #studio-ai:not([hidden])) #studio-controls{height:100%;display:flex;flex-direction:column}
 #studio:has(#studio-form:not([hidden]) #studio-ai:not([hidden])) .studio-workspace,
 #studio-form:has(#studio-ai:not([hidden])),#studio-ai{display:flex;flex:1;flex-direction:column;min-height:0}
 #studio .studio-project-bar,#studio .studio-heading,#studio .studio-composer,
 #studio .studio-status,#studio .studio-visitor-note{flex:none}
 #studio .studio-conversation{flex:1;min-height:0}
 #studio #studio-prompt{max-height:18dvh;overflow-y:auto}
}
@media (max-width:600px) and (min-height:520px){
 #studio:has(#studio-form:not([hidden]) #studio-ai:not([hidden])){padding-top:0}
 #studio .studio-project-bar{padding-block:9px 10px}
 #studio .studio-heading{gap:5px;margin-bottom:8px}
 #studio .studio-mode-switch button{min-height:36px}
 #studio .studio-conversation{max-height:none;padding-block:9px}
 #studio .studio-composer{padding:8px 12px}
 #studio #studio-send{width:39px;height:39px}
 #studio .studio-status,#studio .studio-visitor-note{margin-top:6px}
}

body[data-page=account] main,body[data-page=security]:has(#account:not([hidden])) main{max-width:1280px;padding-inline:clamp(16px,4vw,64px)}
#account.account-page{display:grid;grid-template-areas:"intro" "access" "guest";gap:24px;max-width:560px;margin:clamp(14px,6vh,70px) auto;padding:clamp(20px,4vw,56px);background:#f6f8f3;border-radius:26px}
.account-intro{grid-area:intro;align-content:start}
.account-access{grid-area:access;min-width:0}
.account-guest{grid-area:guest}
@media(min-width:760px){
 #account.account-page{max-width:1120px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"intro access" "guest access";grid-template-rows:auto 1fr;column-gap:clamp(32px,6vw,88px);align-items:start}
 #account .account-intro h1{font-size:clamp(34px,4vw,52px)}
 #account .account-guest{max-width:36ch}
}
.account-intro{display:grid;gap:10px}
.account-intro img{border-radius:15px}
.account-intro h1{margin:0;font-size:clamp(26px,6vw,36px);line-height:1.2;color:#234736}
.account-intro p,.account-guest p,.account-setup p{margin:0;line-height:1.6;color:#506b5a}
.account-actions{display:grid;gap:10px}
.account-actions button,.account-register{min-height:48px;border:0;border-radius:14px;font-size:16px;font-weight:650}
.account-actions .account-primary{background:#305b48;color:#fff}
.account-actions .account-secondary{background:#e4eee2;color:#244c37}
.account-actions .account-primary:hover{background:#244b3a}
.account-actions .account-secondary:hover{background:#d9e9d8}
.account-phone-hint{margin:0;color:#506b5a;font-size:13px;line-height:1.55}
.account-setup{margin-top:20px}
#account .account-register{width:100%;background:#d9e8d7;color:#234736}
#account .account-register:hover{background:#cbdcc9}
#account button:focus-visible{outline:2px solid #305b48;outline-offset:3px}
.account-setup details{margin-top:6px;font-size:14px;color:#506b5a}
.account-setup details p{margin-top:8px}
.account-guest{font-size:14px}
#account .text-button{color:#275840;font-weight:650;padding-inline:0}

.project-space {
  padding-block: clamp(3rem, 10vw, 7rem);
}
.project-space-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 1.125rem;
  background: #e2ece5;
  color: #295643;
}
.project-space-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
.project-space-status {
  margin: 1.5rem 0 .375rem;
  color: #416c57;
  font-weight: 650;
}
.project-space h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.project-space h1 + p {
  max-width: 34ch;
  line-height: 1.75;
}


.sandbox-permission-dialog{width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:clamp(20px,5vw,32px);color:#173b30;background:#f8faf5;box-shadow:0 28px 90px #0e2d3155;overscroll-behavior:contain}
.sandbox-permission-dialog[open]{animation:permission-dialog-in .2s ease-out both}
@keyframes permission-dialog-in{from{opacity:0;transform:translateY(8px) scale(.98)}}
.sandbox-permission-dialog h2{margin:0;font-size:clamp(22px,5vw,27px);line-height:1.25;letter-spacing:-.025em}
.sandbox-permission-dialog .sandbox-device-identity{margin:5px 0 20px;color:#546e60;font-size:14px;line-height:1.45}
.sandbox-permission-dialog form,.sandbox-device-features{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin:0;align-items:stretch}
.sandbox-permission-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:52px;padding:4px 8px;color:#254737;font-size:15px;font-weight:650}
.sandbox-device-features .sandbox-permission-row{grid-template-columns:36px minmax(0,1fr)}
.sandbox-permission-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#e7efe5;color:#305b48}
.sandbox-permission-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sandbox-permission-remember{grid-template-columns:minmax(0,1fr) auto;margin-top:9px;padding:5px 8px 5px 12px;border-radius:14px;background:#ecf2e9}
.sandbox-permission-switch{position:relative;display:grid;place-items:center;width:48px;height:44px}
.sandbox-permission-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.sandbox-permission-switch>span{position:relative;width:46px;height:26px;border-radius:99px;background:#d1ddd3;pointer-events:none;transition:background .18s}
.sandbox-permission-switch>span::before{content:'';position:absolute;inset:3px auto 3px 3px;width:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #173b3033;transition:transform .18s}
.sandbox-permission-switch input:checked+span{background:#2c6950}
.sandbox-permission-switch input:checked+span::before{transform:translateX(20px)}
.sandbox-permission-switch input:focus-visible+span{outline:2px solid #305b48;outline-offset:3px}
.sandbox-permission-dialog .sandbox-permission-note{margin:10px 0 0;color:#526b5e;font-size:13px;line-height:1.55}
.sandbox-permission-dialog .local-sandbox-confirm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}
.sandbox-permission-dialog .local-sandbox-confirm-actions button{min-height:46px;padding:8px;border-radius:13px;font-size:15px}
.sandbox-permission-dialog .local-sandbox-confirm-actions button:last-child{background:#305b48;color:#fff}
@media(prefers-reduced-motion:reduce){.sandbox-permission-dialog[open]{animation:none}.sandbox-permission-switch>span,.sandbox-permission-switch>span::before{transition:none}}
@media(max-width:350px){.local-sandbox-dock{--dock-controls-width:231px}.local-sandbox-dock .local-sandbox-controls button{flex-basis:30px;width:30px;padding:5px}}
