.personal-write{max-width:1140px;margin:auto;padding:24px 24px 100px}.personal-write h1{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.15}.personal-write label{display:grid;gap:8px;min-width:0}.personal-write input,.personal-write select,.personal-write textarea{width:100%;min-width:0;box-sizing:border-box}.write-library-head,.write-document-nav,.write-tag-filters,.write-exports,.write-save-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.write-library-head{justify-content:space-between;margin:16px 0}.write-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:14px;margin:20px 0}.write-tag-filters{margin-bottom:18px}.write-tag-filters button[aria-pressed=true]{background:#117e73;color:white}.write-personal-group{margin:16px 0;border:1px solid #dedbd1;border-radius:18px;background:#fffcf7;overflow:hidden}.write-personal-group>summary{display:flex;gap:12px;padding:16px;cursor:pointer}.write-personal-group>summary strong{flex:1}.write-personal-group>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px;padding:0 16px 16px}.write-personal-card{display:grid;gap:8px;padding:18px;border:1px solid #dedbd1;border-radius:14px;background:white;text-align:left;white-space:normal;overflow-wrap:anywhere;color:#222}.write-personal-card strong{font-size:1.15rem}.write-personal-card small{color:#65665f}.write-save-actions{position:sticky;bottom:10px;z-index:2;padding:12px;background:#fff7e8;border-radius:16px;margin-top:16px;border:1px solid #dedbd1}.write-save-actions button{flex:1;min-height:44px}.personal-write [hidden]{display:none!important}#writeStatus{min-height:1.4em;white-space:pre-wrap;overflow-wrap:anywhere}.write-exports{margin:16px 0}.write-exports a{min-height:44px;display:inline-flex;align-items:center}.write-comment{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:#f0f7f4;border-radius:12px;margin:12px 0}.personal-write button{min-height:44px}.personal-write footer{margin-top:30px}@media(max-width:600px){.personal-write{padding:16px 16px 110px}.write-document-nav{display:grid;grid-template-columns:1fr auto 1fr;width:100%;gap:6px}.write-document-nav button{padding:10px;font-size:.85rem}.write-library-head>button{width:100%}.write-personal-group>div{padding:0 12px 12px}.write-toolbar input{font-size:.9rem}.write-exports>a{flex:1}.write-save-actions{bottom:6px;padding:8px;gap:8px}}
.personal-write input,.personal-write select,.personal-write textarea{font:inherit;border:1px solid #d6d4ca;border-radius:12px;padding:12px;min-height:44px;background:#fff;color:#222}.personal-write label{margin:12px 0}.personal-write .write-confirm{display:flex;align-items:start;gap:12px}.write-confirm input{width:22px;min-height:22px;flex-shrink:0}#writeSharing{border-top:1px solid #dedbd1;margin-top:28px;padding-top:20px}#writeShareForm{max-width:760px}#writeProjectLinks a{overflow-wrap:anywhere}.write-save-actions{position:static}

/* Stella shell aligned with Stella PDF; editor and document styles stay scoped. */
.site-header.stella-topbar{width:100%;max-width:none;min-height:92px;margin:0;padding:16px clamp(20px,5vw,64px);border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:rgba(255,253,247,.94)}
.stella-topbar .brand{flex-shrink:0;gap:11px}.stella-topbar .brand-mark{width:50px;height:50px;border-radius:17px;background:var(--ink);color:var(--gold);font:900 1.45rem Georgia,serif;box-shadow:0 8px 20px rgba(40,38,37,.16)}
.stella-topbar .brand strong{font:700 1.35rem Georgia,serif}.stella-topbar .brand small{margin-top:5px;font-size:.72rem;font-weight:600}
.stella-topbar nav{gap:8px;flex-wrap:nowrap}.stella-topbar nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:800;white-space:nowrap}
.stella-topbar a:focus-visible,.stella-footer a:focus-visible{outline:3px solid var(--coral);outline-offset:3px}
.stella-footer{max-width:1200px;margin:0 auto;padding:38px 30px 28px;grid-template-columns:1.4fr 1fr 1fr;gap:28px;color:#514c47}.stella-footer>div{display:block}.stella-footer p{margin:7px 0 0;line-height:1.5}.stella-footer strong{display:block;margin-bottom:9px;color:var(--ink)}.stella-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.stella-footer a{display:inline-flex;align-items:center;min-height:32px;font-weight:700}.stella-footer .footer-copyright{grid-column:1/-1;padding-top:18px;border-top:1px solid var(--line);font-size:.8rem}
@media(max-width:760px){.site-header.stella-topbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 18px}.stella-topbar nav{width:100%;justify-content:flex-start;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:4px}.stella-topbar nav>a{flex:0 0 auto}.stella-footer{grid-template-columns:1fr;padding:28px 20px;gap:22px}.stella-footer .footer-copyright{grid-column:auto}.stella-footer a{min-height:44px}}
/* Native Help panel and locale controls, matching the existing Stella shell. */
.stella-topbar nav>button,.write-languages button{font:inherit;font-size:13px;font-weight:800;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:white;color:var(--ink);white-space:nowrap;cursor:pointer}.write-languages{display:flex;gap:3px;flex:0 0 auto}.write-languages button{padding:0 10px}.write-languages button[aria-pressed=true]{background:var(--ink);color:#fff}.write-languages button:disabled{opacity:.6;cursor:wait}.stella-topbar button:focus-visible,.write-help :focus-visible{outline:3px solid var(--coral);outline-offset:3px}.write-help{width:min(580px,calc(100% - 28px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:24px;border:1px solid var(--line);border-radius:22px;background:#fffdf7;color:var(--ink);overflow:auto}.write-help::backdrop{background:rgba(40,38,37,.5)}.write-help-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.write-help h2{margin:6px 0 12px}.write-help label{display:grid;gap:7px;margin:14px 0}.write-help input,.write-help select,.write-help textarea{box-sizing:border-box;width:100%;font:inherit;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:11px}.write-help button{min-height:44px}.write-help #writeHelpSend{width:100%}.write-help #writeHelpStatus{min-height:1.4em;white-space:pre-wrap}.write-help[open]{display:block}@media(max-width:760px){.stella-topbar nav>button{flex:0 0 auto}.write-help{padding:18px}}
