:root{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#292d32;background:#f6f4ee;font-synthesis:none;font-size:16px;--green:#285b4e;--line:#deded5}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#303b35;padding:10px 16px;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.3}button:hover,.button:hover{background:#eceee7}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ae873f;outline-offset:3px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#214b40}.danger{color:#a13232;border-color:#d6aaaa}.quiet{background:transparent}header{min-height:94px;padding:22px max(5vw,24px);background:#292334;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}header .brand{color:#fff;text-decoration:none;display:flex;align-items:center;gap:12px;font-size:25px;letter-spacing:-.7px;font-weight:700}.brand-mark{display:grid;place-items:center;background:#ecd29a;color:#292334;width:42px;height:44px;border-radius:11px;font-size:30px;font-family:Georgia,serif}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#c3bdc9;margin-top:3px}nav{display:flex;gap:12px;align-items:center;flex-wrap:wrap}nav button,nav .button{border-color:#62596a;background:transparent;color:#eee9f2;font-size:13px;padding:8px 12px}nav button:hover,nav .button:hover{background:#433a4d}.account-name{font-size:13px;color:#d0c8d6;margin-left:10px}main{max-width:1250px;margin:auto;padding:56px max(4vw,22px) 80px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:42px}h1{font-size:clamp(30px,4vw,48px);letter-spacing:-1.5px;margin:12px 0;font-weight:650;line-height:1.1}h2{font-size:23px;letter-spacing:-.4px;margin:8px 0 12px}.page-heading p,.intro{color:#646b67;line-height:1.7;margin:12px 0 0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#687365}.dot{color:#9a7837}.toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 28px}.search{width:min(460px,75%)}.search span{font-size:12px;color:#5e685f}label{display:grid;gap:7px;font-weight:600;font-size:14px}input,textarea{width:100%;border:1px solid #d0d5cb;border-radius:6px;padding:12px;background:#fff;color:#24392e;min-width:0}input:focus,textarea:focus{outline:2px solid #94b7a7;outline-offset:1px}small,.muted{font-size:12px;color:#6a716b;font-weight:400;line-height:1.5}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:20px}.panel{background:#fffefa;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 12px #242d2010}.idea{display:flex;flex-direction:column}.idea-link{display:block;padding:26px 26px 18px;text-decoration:none;color:inherit;flex:1}.idea-icon{display:block;font-size:26px;color:#53715e;margin:0 0 30px}.idea p{line-height:1.65;color:#687166;font-size:14px;overflow-wrap:anywhere}.idea h2{overflow-wrap:anywhere}.idea footer{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-top:1px solid #eae9e0;gap:8px;font-size:13px}.idea footer small{display:block;margin-top:3px}.idea footer>div{display:flex;gap:7px}.idea footer .button,.idea footer button{font-size:12px;padding:7px 10px}.empty{grid-column:1/-1;text-align:center;padding:64px 22px}.empty p{color:#666f64}.auth{max-width:1000px;padding-top:70px}.auth h1{font-size:54px}.auth-form{max-width:430px;padding:30px;margin-top:36px;display:grid;gap:19px}.auth-form h2{margin:0;font-size:20px}.auth .eyebrow{color:#6f7e66}.auth-form .primary{justify-content:space-between}.error{color:#a13a34;font-size:14px;line-height:1.5;margin:0}.error:empty{display:none}dialog{border:1px solid var(--line);border-radius:14px;width:min(660px,94vw);max-height:92vh;padding:28px;color:#292d32;background:#fffefa;box-shadow:0 24px 80px #0004}dialog::backdrop{background:#201a2a99;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:8px}.close{font-size:24px;padding:1px 8px;background:transparent;border:0}.editor{display:grid;gap:18px}.editor small{font-weight:400}.actions{display:flex;justify-content:space-between;gap:14px;margin-top:6px}.actions>.primary{margin-left:auto}.upload{border:1px dashed #9caf9a;border-radius:8px;padding:18px}.upload legend{font-size:13px;font-weight:650;padding:0 8px}.upload p{font-size:13px;line-height:1.5;color:#5e6c60;margin:0 0 13px}.file-buttons{display:flex;gap:10px}.file-buttons label{font-size:13px;position:relative;overflow:hidden}.file-buttons input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload .file-status{margin:14px 0 6px;font-weight:600;color:#2d5843}.checkbox{display:flex;align-items:center;gap:8px}.checkbox input{width:18px;height:18px}.invite-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0}.invite-result{background:#edf1e8;padding:16px;border-radius:8px;margin:18px 0}.invite-result button{justify-self:start}.people{margin-top:20px}.person{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:15px 0;border-top:1px solid var(--line)}.person small{display:block}.person button{font-size:12px}.preview-heading{padding:25px max(4vw,22px);display:flex;align-items:center;justify-content:space-between;gap:18px}.preview-heading h1{font-size:26px;letter-spacing:-.7px}.preview-heading p{font-size:14px;color:#667063;max-width:700px}.preview-actions{display:flex;flex-wrap:wrap;gap:8px}.preview-actions button,.preview-actions .button{font-size:12px}.preview-tools{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px max(4vw,22px);display:flex;align-items:center;justify-content:space-between}.preview-tools>span{font-size:10px;letter-spacing:1.5px;color:#667063}.preview-tools button{padding:5px 12px;font-size:12px;border:0;background:transparent}.preview-tools button[aria-pressed=true]{background:#e1e7db;color:#2e5f43}.preview-stage{background:#dddcd7;display:flex;justify-content:center;min-height:70vh;padding:0;overflow:auto}.preview-stage iframe{display:block;width:100%;height:calc(100vh - 270px);min-height:500px;border:0;background:#fff}.preview-stage.mobile{padding:20px}.preview-stage.mobile iframe{width:390px;max-width:100%;border-radius:12px;box-shadow:0 4px 30px #0002}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#292334;color:#fff;padding:14px 22px;border-radius:9px;font-size:14px;z-index:10;max-width:90vw}.loading{padding:40px}[hidden]{display:none!important}@media(max-width:680px){header{padding:18px;align-items:start;gap:12px}.brand-mark{width:32px;height:35px}header .brand{font-size:20px;gap:8px}.brand small{font-size:7px}nav{justify-content:flex-end;gap:7px}nav button,nav .button{font-size:11px;padding:7px 9px}.account-name{display:none}main{padding-top:34px}.page-heading{align-items:start;flex-direction:column;gap:22px;margin-bottom:30px}h1{font-size:36px}.toolbar{align-items:end}.search{width:80%}.auth{padding-top:38px}.auth h1{font-size:42px}.auth-form{padding:23px}.preview-heading{align-items:start;flex-direction:column}.preview-heading h1{font-size:25px}.preview-stage iframe{height:72vh}.preview-actions button,.preview-actions .button{font-size:11px}dialog{padding:22px}.invite-controls{align-items:start;flex-direction:column}.file-buttons{flex-wrap:wrap}}

.key-form{display:grid;gap:16px;margin:22px 0}.key-form>.primary{justify-self:start}.key-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.key-options select{width:100%;padding:11px;border:1px solid #d0d5cb;border-radius:6px;background:#fff;color:#24392e;font:inherit}.key-reveal{display:grid;gap:12px;border:1px solid #9bb89d;border-radius:9px;background:#edf4e8;padding:16px;margin:20px 0}.key-reveal>strong{font-size:14px}.key-reveal input{font-family:ui-monospace,monospace;font-size:13px}.key-reveal button{justify-self:start}.key-row{display:flex;align-items:start;justify-content:space-between;gap:14px;padding:16px 0;border-top:1px solid var(--line)}.key-row>div{min-width:0}.key-row strong,.key-row code,.key-row small{display:block;overflow-wrap:anywhere}.key-row code{font-size:12px;color:#59665b;margin:5px 0}.key-row button{font-size:12px;flex-shrink:0}.key-help{margin-top:20px;font-size:14px;line-height:1.6}.key-help summary{cursor:pointer;font-weight:600}.key-help pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf0e9;padding:12px;border-radius:6px}.key-help code{overflow-wrap:anywhere}@media(max-width:500px){.key-options{grid-template-columns:1fr}.key-row{gap:10px}}

/* Viewer controls overlay the prototype instead of consuming its height. */
.preview-viewer{height:100vh;height:100dvh;display:flex;flex-direction:column;min-height:0}
.preview-bar{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-height:52px;padding:6px 12px;background:#fffefa;border-bottom:1px solid var(--line);position:relative;z-index:2}
.preview-menu{flex:1;min-width:0}
.preview-menu>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:8px 4px;min-height:38px;font-size:14px}
.preview-menu>summary::-webkit-details-marker{display:none}
.preview-menu>summary>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-menu>summary>span{font-size:12px;color:#536353;white-space:nowrap}
.preview-menu>summary::after{content:'▾';color:#536353}.preview-menu[open]>summary::after{content:'▴'}
.preview-menu>summary:focus-visible{outline:3px solid #ae873f;outline-offset:1px;border-radius:5px}
.preview-menu-content{position:absolute;left:0;right:0;top:100%;width:100%;max-height:calc(100vh - 52px);max-height:calc(100dvh - 52px);overflow:auto;background:#fffefa;border-bottom:1px solid var(--line);box-shadow:0 10px 20px #201a2a22;transform-origin:top}
.preview-menu[open]>.preview-menu-content{animation:preview-header-slide .22s ease-out}
.preview-menu-content header{flex-wrap:wrap}.preview-menu-content .preview-heading{flex-wrap:wrap}
.preview-menu-content .preview-tools{gap:10px;flex-wrap:wrap}
@keyframes preview-header-slide{from{transform:translateY(-18px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.preview-menu[open]>.preview-menu-content{animation:none}}
.preview-bar>.preview-fullscreen{flex-shrink:0;font-size:12px;padding:8px 12px;min-height:38px}
.preview-viewer .preview-stage{flex:1;min-height:0}.preview-viewer .preview-stage iframe{height:100%;min-height:0}
@media(max-width:480px){.preview-bar{gap:6px;padding:6px 8px}.preview-menu>summary{gap:6px}.preview-menu>summary>span{display:none}.preview-bar>.preview-fullscreen{padding:8px}.preview-menu-content nav{justify-content:flex-start}.preview-viewer .preview-stage.mobile{padding:10px}}
