/* Share or save (js/export.js, MB.exportSheet): the sheet the report's top-bar button opens (KB 33 2.13). The pdf-and-export
   area's own stylesheet, after css/report.css; every rule is scoped to this sheet. */
#sheet[data-name="share-save"] .radio { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--mist); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
#sheet[data-name="share-save"] [role="radio"][aria-checked="true"] .radio { border-color: var(--ember); }
#sheet[data-name="share-save"] [role="radio"][aria-checked="true"] .radio::after { content: ""; width: 12px; height: 12px; border-radius: 999px; background: var(--ember); }
/* the download is a real link (phones block a scripted one), drawn as the sheet's one action */
#sheet[data-name="share-save"] a.btn { text-decoration: none; }
#sheet[data-name="share-save"] #save-link { margin-top: 14px; }
#sheet[data-name="share-save"] .chiprow { margin: 4px 0 14px; }
#sheet[data-name="share-save"] #send-error { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--error, #B42336); }
#sheet[data-name="share-save"] #send-error:empty { display: none; }
/* Sent: one check on Jade's soft tint, the line that says who it went to */
#sheet[data-name="share-save"] .xs-sent { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 18px; text-align: center; }
#sheet[data-name="share-save"] .xs-sent .ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--jade-soft); color: var(--jade); }
#sheet[data-name="share-save"] .xs-sent .ok .ic { width: 32px; height: 32px; }
#sheet[data-name="share-save"] .xs-sent p { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--muted); }
/* the owner's way to add someone: a secondary pill at its own width, under the note */
#sheet[data-name="share-save"] .xs-invite { align-self: flex-start; width: auto; margin-top: 4px; }
/* Progress is stage/byte based. It never advances on a cosmetic timer. */
#sheet[data-name="share-save"] .xs-progress{display:flex;flex-direction:column;gap:16px;padding:8px 0}
#sheet[data-name="share-save"] .xs-progress-top{display:flex;align-items:center;gap:16px}
#sheet[data-name="share-save"] #save-percent{font-size:var(--pdf-progress-number,32px);font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
#sheet[data-name="share-save"] #save-stage{font-size:16px;line-height:24px}
#sheet[data-name="share-save"] progress{appearance:none;width:100%;height:var(--pdf-progress-height,8px);border:0;border-radius:999px;overflow:hidden;background:var(--mist);color:var(--ember)}
#sheet[data-name="share-save"] progress::-webkit-progress-bar{background:var(--mist)}
#sheet[data-name="share-save"] progress::-webkit-progress-value{background:var(--ember);border-radius:999px}
#sheet[data-name="share-save"] progress::-moz-progress-bar{background:var(--ember)}
#sheet[data-name="share-save"] #save-help{font-size:14px;line-height:21px;color:var(--muted)}
#sheet[data-name="share-save"] #save-error{font-size:14px;color:var(--error,#B42336)}
#sheet[data-name="share-save"] #save-error:empty,#sheet[data-name="share-save"] #save-retry:empty{display:none}

/* PDF choices use the existing fitted sheet, rows and the single Gradient arrow action. */
#sheet[data-name="share-save"] .xs-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 10px}
#sheet[data-name="share-save"] .xs-section-title h3{font-size:16px;font-weight:600}
#sheet[data-name="share-save"] .xs-check{width:var(--pdf-choice-size,22px);height:var(--pdf-choice-size,22px);border:1.5px solid var(--mist);border-radius:var(--pdf-choice-radius,6px);display:grid;place-items:center;flex-shrink:0}
#sheet[data-name="share-save"] [aria-checked="true"] .xs-check{background:var(--jade);border-color:var(--jade);color:white}
#sheet[data-name="share-save"] [aria-checked="false"] .xs-check .ic{visibility:hidden}
#sheet[data-name="share-save"] .xs-count{display:flex;align-items:center;gap:14px;padding:16px 0;margin-top:8px;border-top:1px solid var(--line)}
#sheet[data-name="share-save"] .xs-count strong{font-size:var(--pdf-progress-number,32px);font-weight:600;font-variant-numeric:tabular-nums;min-width:44px}
#sheet[data-name="share-save"] .xs-count span,#sheet[data-name="share-save"] .xs-cover-note{font-size:14px;line-height:21px;color:var(--muted)}
#sheet[data-name="share-save"] .xs-cover-note{margin-top:10px}
#sheet[data-name="share-save"] #save-picker{display:flex;flex-direction:column;min-height:0;max-height:calc(78dvh - 100px)}
#sheet[data-name="share-save"] #save-picker>.panel{flex-shrink:0;margin:0}
#sheet[data-name="share-save"] #save-picker>.panel>.list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#sheet[data-name="share-save"] #save-picker>.panel .row{flex-direction:column;gap:8px;padding:10px 4px;border-top:0;border-right:1px solid var(--rule);text-align:center}
#sheet[data-name="share-save"] #save-picker>.panel .row:last-child{border-right:0}
#sheet[data-name="share-save"] #save-picker>.panel .lead{display:none}
#sheet[data-name="share-save"] #save-picker>.panel .tx{flex:none;text-align:center}
#sheet[data-name="share-save"] #save-picker>.panel .t1{font-size:14px}
#sheet[data-name="share-save"] #save-sections{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#sheet[data-name="share-save"] #save-count,#sheet[data-name="share-save"] #save-link{flex-shrink:0}
@media(max-width:767px){#sheet[data-name="share-save"] #save-picker{max-height:calc(86dvh - 100px)}}
