.export-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px max(20px,calc((100vw - 1100px)/2));background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.export-toolbar .brand{white-space:nowrap}.export-status{max-width:960px;margin:18px auto;padding:0 20px;color:var(--green);font-size:.9rem}.export-paper{max-width:960px!important;margin:20px auto!important;padding:clamp(24px,5vw,56px)!important;background:#fff;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}.export-heading{border-bottom:2px solid #216749;padding-bottom:24px;margin-bottom:30px}.export-heading h1{font-size:2rem}.export-section{padding:24px 0;border-bottom:1px solid #d8dfd5}.export-section h2{font-size:1.4rem;line-height:1.5;margin:0 0 6px}.export-meta{font-size:.875rem;color:var(--muted);margin:0 0 20px}.export-section .ql-editor{padding:0;font-size:1rem;line-height:1.85;overflow:visible}.export-photo{display:block;max-width:100%;max-height:700px;object-fit:contain;margin:12px auto;cursor:zoom-in}.export-file-link{display:block;overflow-wrap:anywhere;font-size:.875rem;margin:8px 0;color:#216749}.export-attachment{margin:18px 0}.export-footer{text-align:center;max-width:900px;margin:20px auto;font-size:.875rem;padding:20px}.export-page .has-preview .export-paper{margin:0!important;width:100%!important}.notice-share-dialog{width:min(720px,calc(100vw - 24px))}.share-selection{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:12px;display:grid;gap:10px;margin:12px 0}.share-selection label{display:flex;align-items:start;gap:10px;font-size:.9375rem}.share-selection input{width:auto;margin-top:5px}.share-link-row{border-top:1px solid var(--line);padding:15px 0;display:grid;gap:10px}.share-link-row .actions{gap:8px}.share-output{width:100%;font-size:.875rem}.share-warning{background:#fff5db;padding:14px;border-radius:8px;color:#5c4709;font-size:.9rem;line-height:1.6}.share-local{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
@media(max-width:640px){.export-toolbar{position:static;align-items:flex-start;flex-direction:column}.export-toolbar .actions{flex-wrap:wrap}.export-paper{margin:12px!important;padding:24px!important}.export-heading h1{font-size:1.65rem}}
/* Sharing is a workspace with separate views, never a long combined settings list. */
.notice-main-toolbar{align-items:flex-start}.notice-main-actions{margin-left:auto;justify-content:flex-end}
#notice-share-dialog{width:min(760px,calc(100vw - 24px));max-height:88dvh;overflow:auto;padding:24px;scrollbar-gutter:stable}
#notice-share-dialog .share-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;background:#fff;z-index:10}
.share-dialog-header h2{font-size:22px;line-height:1.35;margin:0}.share-dialog-header .actions{flex:none;gap:8px}
.share-dialog-header .secondary{font-size:14px;padding:8px 12px}
.share-modes{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;background:#edf2ee;border-radius:12px;margin-bottom:18px}
.share-modes button{min-height:44px;padding:10px;font-size:15px;border-radius:8px;background:transparent;color:#52665b}
.share-modes button[aria-pressed="true"]{background:#fff;color:#216749;box-shadow:0 1px 5px #20352e15;font-weight:700}
#share-local{border:0;margin:0;padding:0}.share-scope-card{display:grid;gap:5px;border-left:3px solid #216749;padding:10px 16px;background:#f3f7f4;margin-bottom:16px}
.share-scope-card strong{font-size:17px;overflow-wrap:anywhere}.share-scope-card small{color:var(--muted);font-size:13px}
.share-export-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.share-option-card{border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:12px}
.share-option-card h3,.share-option-card p{margin:0}.share-option-card h3{font-size:18px}.share-option-card p{font-size:14px;line-height:1.65;flex:1}.share-option-card a,.share-option-card button{text-align:center}
.share-setting-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px;background:#fff}
.share-setting-card label{margin:0}.share-setting-card>summary{font-weight:700;cursor:pointer;min-height:30px;line-height:1.7}.share-setting-card>summary .badge{margin-left:8px}
.share-selection-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}.share-selection-actions button{min-height:36px;font-size:14px}
#share-selection{padding:0 6px 0 0;border:0;border-radius:0;gap:12px;max-height:260px;margin:10px 0 0}
.share-choice-group{border:0;margin:0;padding:0;min-width:0}.share-choice-group legend{font-size:13px;color:var(--muted);margin-bottom:4px;padding:0}
.share-choice-group label{padding:9px 10px;border-radius:8px;font-size:14px!important;line-height:1.6;cursor:pointer;min-height:40px}
.share-choice-group label:has(input:checked){background:#edf5ee}.share-choice-group input{flex:none;width:18px!important;height:18px;min-height:18px;margin:3px 0 0}
.share-setting-card .share-warning{margin:8px 0 10px;padding:12px;font-size:14px}.share-snapshot-note{font-size:14px}.share-snapshot-note summary{cursor:pointer;color:#52665b}.share-snapshot-note p{line-height:1.7}
.share-create-action{display:flex;justify-content:flex-end;padding-top:4px}.share-create-action button{min-width:180px}
.share-library-toolbar{display:flex;gap:10px;align-items:center}.share-library-toolbar label{margin:0;flex:1;min-width:0}.share-library-toolbar button{flex:none}
#share-links-count{font-size:14px;margin:12px 0}.share-link-list{display:grid;gap:12px}.share-link-row{border:1px solid var(--line);border-radius:12px;padding:16px;gap:12px;background:#fff}
.share-link-row.is-new{border-color:#51926f;background:#f3faf5}.share-link-heading h3{margin:0 0 5px;font-size:17px;line-height:1.5;overflow-wrap:anywhere}.share-link-heading .badge{margin-left:8px}.share-link-heading small{font-size:13px}
.share-link-row .actions{gap:8px}.share-link-row .actions>button,.share-link-row .actions>a{font-size:14px;min-height:40px;padding:8px 12px}.share-link-row .danger{margin-left:auto}
.share-link-address{font-size:13px;color:var(--muted)}.share-link-address summary{cursor:pointer;min-height:28px}.share-link-address input{margin-top:6px;font-size:14px}
.share-links-empty{padding:40px 16px;text-align:center;background:#f5f8f5;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
@media(max-width:760px){
  .notice-main-actions{width:100%;gap:8px}.notice-main-actions>button{flex:1;white-space:nowrap;padding-inline:10px;font-size:14px}
  #notice-share-dialog{padding:18px 14px;max-height:calc(var(--visible-height,100dvh) - 20px)}
  #notice-share-dialog .share-dialog-header{position:sticky;top:-18px;margin-top:-4px;padding:12px 0;flex-wrap:wrap;gap:8px}
  .share-dialog-header h2{font-size:20px;flex:1 1 100%}.share-dialog-header .actions{margin-left:auto}
  .share-dialog-header button{min-height:40px}.share-modes{margin-bottom:14px}.share-modes button{font-size:14px;padding:9px 5px}
  .share-export-options{grid-template-columns:1fr}.share-option-card{padding:16px;gap:10px}
  .share-setting-card{padding:13px}.share-create-action button{width:100%}.share-link-row{padding:14px}
  .share-library-toolbar{gap:8px}.share-library-toolbar button{padding:8px 10px;font-size:14px}.share-link-row .actions>button,.share-link-row .actions>a{padding:8px;font-size:13px}
}
@page{size:A4;margin:16mm 15mm}
@media print{
  html,body{background:#fff!important;color:#111!important;font-size:11pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .export-toolbar,.export-status,.export-footer,.file-dock,.export-attachment .attachment-grid{display:none!important}
  .reading-layout,.reading-layout.has-preview{display:block!important;padding:0!important}
  .export-paper,.export-page .has-preview .export-paper{border:0!important;border-radius:0!important;padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
  .export-section{break-inside:auto;padding:16px 0}.export-section h2,.export-meta{break-after:avoid}.export-section .ql-editor{font-size:11pt;line-height:1.7;min-height:0;overflow:visible}
  .export-section p{orphans:3;widows:3}.export-photo{max-height:215mm;break-inside:avoid}.export-attachment{break-inside:avoid}
  .export-file-link{font-size:9pt}.export-file-link:after{content:" (" attr(href) ")";font-size:8pt;overflow-wrap:anywhere}
}
