.link-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:11px 19px;background:#edf4e5;border-bottom:1px solid #dae6cc;font-size:12px;color:#526f43}.link-tools[hidden],.link-tools [hidden]{display:none!important}.link-tools>span{margin-right:auto;line-height:1.7}.link-tools button,.link-tools .button{font-size:11px;min-height:34px;padding:7px 11px;border-radius:8px;background:#fffefa;color:#557746}.link-tools .quiet{background:transparent}.doc-link-hint{font-size:11px;color:#6c805c;margin:0;padding:9px 20px;border-bottom:1px solid #edf0e5;background:#fcfdf8}.editor img[data-link-selected]{outline:3px solid #709a54;outline-offset:4px;border-radius:9px}.editor a[href]:not([data-file]),.article a[href]:not([data-file]){color:#2b7149;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}.editor a:has(img),.article a:has(img){display:block;text-decoration:none}.article a img{cursor:pointer}.editor a img{cursor:pointer}#documentLinkForm input{width:100%}#documentLinkForm .muted{line-height:1.8}#documentLinkError:empty{display:none}@media(max-width:650px){.link-tools{padding:10px 12px;gap:6px}.link-tools>span{flex-basis:100%;font-size:11px}.link-tools button,.link-tools .button{font-size:11px;min-height:37px;padding:8px 11px}.doc-link-hint{padding:9px 12px;font-size:10px;line-height:1.8}#documentLinkForm input{font-size:16px;min-height:45px}}

/* Fit large source images by default; explicit widths persist with the document. */
.doc-shell:has(.editor){overflow:clip}
.editor img,.article img{width:auto;max-width:min(100%,480px);max-height:520px;height:auto;object-fit:contain}
.editor img[data-image-width],.article img[data-image-width]{max-width:100%;max-height:none;height:auto}
.editor img[data-image-width="25"],.article img[data-image-width="25"]{width:25%}
.editor img[data-image-width="50"],.article img[data-image-width="50"]{width:50%}
.editor img[data-image-width="75"],.article img[data-image-width="75"]{width:75%}
.editor img[data-image-width="100"],.article img[data-image-width="100"]{width:100%}
.link-tools{position:sticky;z-index:3;box-shadow:0 4px 12px #27472a08}
.link-tools .image-width-control{display:inline-flex;align-items:center;gap:8px;margin:0 7px 0 0;font-size:11px;white-space:nowrap}
.link-tools .image-width-control select{font-size:12px;min-height:35px;padding:6px 9px;border:1px solid #cedec0;border-radius:8px;background:#fffefa;color:#476e39;max-width:190px}
@media(max-width:650px){.link-tools .image-width-control{font-size:11px;flex-basis:100%;margin:0}.link-tools .image-width-control select{font-size:14px;min-height:39px;flex:1;max-width:230px}.editor img,.article img{max-height:460px}.editor img[data-image-width],.article img[data-image-width]{max-height:none}}

dialog:has(.share-result){max-height:calc(100dvh - 36px);overflow:auto}.share-result h2{font-size:22px;line-height:1.5}.share-result>.muted{margin:10px 0 18px}.share-short-url{padding:13px 15px;background:#eff5e7;border:1px solid #dce7d0;border-radius:11px;overflow-wrap:anywhere}.share-short-url>span{display:block;color:#71855f;font-size:10px;margin-bottom:5px}.share-short-url>a{color:#315c37;font-size:14px;letter-spacing:.1px;text-decoration:none}.share-qr{text-align:center;margin:20px auto 13px}.share-qr img{display:block;width:200px;height:200px;max-width:100%;margin:auto;border:1px solid #e4eadb;border-radius:10px;image-rendering:pixelated;background:white}.share-qr small{display:block;margin-top:8px;font-size:11px;color:#6b7f5b}.share-access-note{font-size:11px;line-height:1.9;color:#6c7f5d;margin:12px 0 18px}.share-password{background:#f4f7ed;border-radius:8px;padding:10px 13px;color:#6c7e5c;font-size:12px}.share-password code{font-size:15px;color:#3f653a;margin-left:9px;font-weight:600;overflow-wrap:anywhere}.share-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.share-result-actions button,.share-result-actions .button{font-size:12px;min-height:43px;padding:10px 12px;line-height:1.5;border-radius:9px}.share-result-actions .primary{color:white}.share-result .dialog-actions{margin-top:13px}@media(max-width:650px){.share-result h2{font-size:21px}.share-short-url>a{font-size:13px}.share-result-actions button,.share-result-actions .button{font-size:12px}.share-qr{margin-top:18px}.share-qr img{width:185px;height:185px}.share-access-note{font-size:11px}.share-result .dialog-actions{margin-top:12px}}

.billing-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:5px 0 24px}.billing-heading h1{font-size:29px;font-weight:600;letter-spacing:-.7px;margin:8px 0 0}.billing-kicker{font-size:10px;letter-spacing:1.7px;color:#738760}.billing-intro{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:15px 0 24px}.billing-intro p{margin-right:auto;color:#657a55;font-size:13px}.billing-intro button,.billing-heading button{font-size:12px}.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}.plan-card{background:#fffefa;border:1px solid #dce6d0;border-radius:22px;padding:34px;position:relative}.plan-card.pro{background:#eaf1df;border-color:#c7d8b6}.plan-label{font-size:11px;letter-spacing:1.5px;color:#70855b}.plan-card h2{font-size:58px;line-height:1.2;margin:24px 0 12px;font-weight:600;letter-spacing:-2px;color:#345b36}.plan-card h2 small{font-size:23px;letter-spacing:0;color:#73865f}.plan-price{font-size:24px;font-weight:550;color:#456a38;margin-bottom:22px}.plan-price small{font-size:12px;font-weight:400;display:inline-block;margin-left:8px;color:#647b52}.plan-card ul{list-style:none;padding:0;margin:0;line-height:2.5;font-size:13px;color:#607852}.plan-card li:before{content:'✓';margin-right:10px;color:#87a36d}.plan-foot{margin-top:22px;font-size:12px;color:#71875b;min-height:21px}.billing-info{padding:28px 32px;background:#fffefa;border:1px solid #e1e8d6;border-radius:18px;font-size:13px;line-height:1.9;color:#657c55}.billing-info h2{font-size:21px;color:#466b39}.billing-info ol{padding-left:21px;line-height:2.4}.billing-info>.primary{max-width:330px;width:100%;margin-top:16px}.billing-info .primary:disabled{cursor:not-allowed;opacity:.55}.billing-policy{white-space:pre-wrap;font-size:12px;color:#647b54;line-height:1.95}.billing-agree{display:flex;align-items:flex-start;gap:9px;line-height:1.8;font-size:12px;color:#5e7850;margin:20px 0 6px}.billing-agree input{min-height:0;width:18px;height:18px;flex:0 0 auto;margin:3px 0 0;accent-color:#206b4c}.billing-current{padding:16px 19px;background:#eaf3dd;border:1px solid #d8e7c8;border-radius:12px;color:#567742;font-size:12px;line-height:1.9;margin:18px 0}.billing-current.is-expired{background:#faf2e1;border-color:#ebdbb5;color:#80633a}.billing-order-list{display:grid;gap:14px}.billing-order-card{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;padding:22px 24px;border-radius:15px;background:#fffefa;text-align:left}.billing-order-card b{font-weight:550;font-size:14px}.billing-order-card span:last-child{text-align:right}.billing-order-card small{display:block;font-size:11px;margin-top:7px;color:#708663}.billing-checkout{max-width:800px;margin:auto;background:#fffefa;border:1px solid #dce6d1;border-radius:22px;padding:32px;color:#5c784c;font-size:13px}.billing-order-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.billing-order-top h2{font-size:33px;margin:12px 0 0;color:#3e6533}.billing-order-top h2 small{font-size:13px;font-weight:400;color:#6f855e}.billing-state{font-size:11px;padding:5px 11px;background:#edf2e5;color:#6a805a;border-radius:20px;white-space:nowrap;display:inline-block}.billing-state.awaiting_review{background:#fff3d7;color:#896932}.billing-state.approved{background:#dfefd2;color:#51763c}.billing-state.rejected,.billing-state.expired{background:#f9e9de;color:#996748}.billing-details{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:12px;margin:20px 0 28px}.billing-details dt{color:#788c67;font-size:12px}.billing-details dd{margin:0;overflow-wrap:anywhere}.billing-details code,.billing-reference code{font-size:13px;color:#426b35}.billing-details button{font-size:10px;min-height:29px;padding:4px 8px}.billing-payment{padding:24px 15px;text-align:center;background:#f3f7eb;border:1px solid #dfe9d1;border-radius:15px}.billing-payment img{display:block;width:220px;max-width:100%;height:auto;object-fit:contain;margin:0 auto 20px;border:1px solid #dce6d0;border-radius:10px;background:#fff}.billing-payment b{font-size:15px;color:#446c36}.billing-payment p{font-size:11px;line-height:1.9;margin:12px 0 0}.billing-claim{margin:28px 0;padding:24px 0;border-top:1px solid #e4ebdb;border-bottom:1px solid #e4ebdb}.billing-claim h3{font-size:19px;font-weight:550;margin:0 0 10px}.billing-claim p{font-size:12px;color:#6c835b;line-height:1.9}.billing-claim label{display:block;margin:19px 0 8px;font-size:12px}.billing-claim input{width:100%;font-size:14px}.billing-claim button{margin-top:19px;width:100%}.billing-reference{overflow-wrap:anywhere;line-height:1.9}.billing-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.billing-actions button{font-size:12px}.billing-admin-card{background:#fffefa;border:1px solid #dfe7d4;border-radius:16px;padding:25px;font-size:13px;overflow-wrap:anywhere}.billing-admin-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.billing-admin-card p{line-height:1.9;margin:12px 0}.billing-admin-card small{font-size:11px;color:#728963}.billing-admin-card code{font-size:12px}.capacity .capacity-upgrade{margin-left:4px;padding:5px 10px;min-height:29px;font-size:10px;background:#e5efd9;border-color:#cddfbb;color:#5f8049}.billing-checkout details,.billing-info details{padding:13px 0;cursor:pointer}#billingApprove input:not([type=checkbox]){width:100%}#billingApprove label{font-size:12px}#billingApprove .billing-agree{display:flex;margin-top:22px}
@media(max-width:650px){.billing-heading{gap:10px;align-items:flex-start}.billing-heading h1{font-size:25px;margin-top:8px}.billing-heading button{font-size:11px;padding:9px 11px}.billing-kicker{font-size:9px}.billing-intro{margin:10px 0 22px}.billing-intro p{font-size:12px;flex-basis:100%;line-height:1.9;margin:0 0 7px}.plan-grid{grid-template-columns:1fr;gap:15px}.plan-card{padding:28px;border-radius:18px}.plan-card h2{font-size:50px;margin-top:20px}.plan-price{font-size:23px}.plan-card ul{font-size:12px}.billing-info{padding:24px 21px;font-size:12px}.billing-info h2{font-size:20px}.billing-checkout{padding:25px 20px;border-radius:18px}.billing-order-top{align-items:flex-start}.billing-order-top h2{font-size:27px}.billing-order-top h2 small{font-size:11px}.billing-details{grid-template-columns:70px 1fr;font-size:12px;gap:13px}.billing-details dt{font-size:11px}.billing-details code{font-size:12px}.billing-payment{padding:22px 13px}.billing-payment img{width:210px}.billing-payment b{font-size:14px}.billing-claim h3{font-size:18px}.billing-claim input{font-size:16px}.billing-claim button{font-size:13px}.billing-order-card{padding:19px 17px;gap:10px}.billing-order-card b{font-size:12px}.billing-order-card small{font-size:10px;line-height:1.8}.billing-order-card span:first-child{min-width:0;overflow-wrap:anywhere}.billing-state{font-size:10px;padding:5px 9px}.billing-current{padding:14px 16px;font-size:11px}.billing-actions button{font-size:11px}.billing-admin-card{padding:21px 18px;font-size:12px}.billing-admin-card>div:first-child{flex-wrap:wrap}.billing-agree{font-size:11px}#billingApprove input:not([type=checkbox]){font-size:16px}.capacity .capacity-upgrade{font-size:10px}}
