.share-dialog{box-sizing:border-box;width:min(94vw,650px);max-height:90dvh;overflow:auto;border:1px solid var(--ios-line,#394550);border-radius:26px;padding:24px;background:var(--ios-surface,#191c22);color:var(--ios-text,#edf3f7)}
.portal-dialog .portal-back:focus,.portal-dialog .portal-back:focus-visible{outline:0!important;box-shadow:none!important;border:0!important;-webkit-tap-highlight-color:transparent}
.portal-dialog .portal-back:focus-visible{text-decoration:underline;text-decoration-color:var(--ios-blue,#0a84ff);text-underline-offset:5px}
.share-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}body .share-dialog header{position:sticky;top:-24px;z-index:5;display:flex!important;align-items:center;justify-content:space-between;gap:12px;height:auto;padding:14px 0;background:var(--ios-surface,#191c22);border:0}.share-dialog header small{display:block;margin-bottom:5px;color:var(--ios-cyan,#32ade6);font-size:10px;font-weight:750;letter-spacing:.16em}.share-dialog h2,.share-dialog h3{margin:0}.share-dialog h2{font-size:24px}.share-dialog p{line-height:1.5;font-size:14px}.share-dialog form,.share-dialog label,.share-existing{display:grid;gap:9px}.share-dialog form{gap:20px}.share-dialog input:not([type=checkbox]):not([type=radio]),.share-dialog textarea{box-sizing:border-box;width:100%;min-width:0;min-height:52px;border:1px solid #54616a;border-radius:14px;padding:13px;background:var(--ios-raised,#202023);color:var(--ios-text,#edf3f7);font:inherit;font-size:16px}.share-dialog input:focus,.share-dialog textarea:focus{border-color:var(--ios-blue,#0a84ff);outline:0;box-shadow:0 0 0 3px #0a84ff22}.share-dialog input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:1px 0;accent-color:var(--ios-blue,#0a84ff)}.share-dialog button{min-height:48px;padding:12px 18px;border-radius:14px;white-space:normal}.share-dialog fieldset{min-width:0;border:1px solid var(--ios-line,#54616a);border-radius:17px;padding:12px}.share-dialog legend{padding:0 7px;color:var(--ios-secondary,#929299);font-size:13px}.share-dialog .share-choice{display:flex;align-items:flex-start;margin:10px 0;gap:11px}.share-choice span{min-width:0;overflow-wrap:anywhere}.share-choice b,.share-choice small{display:block}.share-choice small{margin-top:4px;color:var(--ios-secondary,#929299);font-size:12px}.share-options{display:grid;gap:9px}.share-option{position:relative;display:flex!important;align-items:center;min-height:66px;padding:11px 44px 11px 13px;border:1px solid var(--ios-line,#465665);border-radius:14px;background:var(--ios-raised,#202023);cursor:pointer}.share-option input{position:absolute;opacity:0;pointer-events:none}.share-option span{display:block}.share-option b,.share-option small{display:block}.share-option b{font-size:15px}.share-option small{margin-top:4px;color:var(--ios-secondary,#929299);font-size:12px;line-height:1.35}.share-option i{position:absolute;right:14px;width:20px;height:20px;border:2px solid var(--ios-secondary,#929299);border-radius:50%}.share-option input:checked~i{border:6px solid var(--ios-blue,#0a84ff)}.share-option:has(input:checked){border-color:var(--ios-blue,#0a84ff);background:#0a84ff16}.share-option.disabled{opacity:.45;cursor:not-allowed}.share-expiry-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.share-expiry-grid .share-option{min-height:72px}.share-existing{padding:17px;border:1px solid var(--ios-line,#54616a);border-radius:18px;margin:14px 0;background:var(--ios-raised,#202023);overflow-wrap:anywhere}.share-existing h3{font-size:17px}.share-existing p{margin:0}.share-state{display:flex;align-items:center;gap:10px}.share-state>i{width:13px;height:13px;border-radius:50%;background:#ff9f0a}.share-state.opened>i{background:#30d158}.share-state.expired>i{background:#ff453a}.share-state span>*{display:block}.share-state small{margin-top:2px;color:var(--ios-secondary,#929299);font-size:12px}.share-closed-note{padding:10px 12px;border-radius:12px;background:#ff9f0a18;color:#ffc266}.share-message span{font-size:13px;color:var(--ios-secondary,#929299)}.share-section-head{display:flex;align-items:end;justify-content:space-between;gap:10px}.share-section-head span{font-size:20px;font-weight:700}.share-section-head small{color:var(--ios-secondary,#929299)}.share-dialog [role=status]{position:sticky;top:61px;z-index:4;margin:0;padding:11px 13px;border-radius:13px;color:#8edbff;background:#123047;border:1px solid #24516b;overflow-wrap:anywhere}.share-dialog [role=status]:empty{display:none}.share-dialog [role=status][data-kind=success]{color:#68dfa9;background:#12382b;border-color:#246549}.share-dialog [role=status][data-kind=error]{color:#ffc266;background:#3a2b14;border-color:#74551d}.share-dialog #share-public-warning{margin:0;color:#ffc266}.share-dialog [hidden]{display:none!important}.share-footnote,.share-explain{color:var(--ios-secondary,#929299);font-size:13px!important}.share-dialog #share-close{flex:0 0 48px;padding:0;font-size:25px}.share-dialog textarea{resize:vertical}.share-dialog #share-sms-state{margin:0;color:var(--ios-secondary,#929299)}
html[data-theme=light] .share-dialog [role=status]{color:#00648f;background:#e9f7ff;border-color:#b8e5f7}html[data-theme=light] .share-dialog [role=status][data-kind=success]{color:#137455;background:#e9f9f1;border-color:#bce8d2}html[data-theme=light] .share-dialog [role=status][data-kind=error]{color:#815200;background:#fff4d9;border-color:#efd294}html[data-theme=light] .share-closed-note{color:#815200}
@media(max-width:380px){.share-dialog{padding:16px}body .share-dialog header{top:-16px}.share-dialog [role=status]{top:61px}.share-expiry-grid{grid-template-columns:1fr}.share-section-head{display:grid}}
.share-dialog input[type=radio]{appearance:none;-webkit-appearance:none;width:22px;height:22px;flex:0 0 22px;border:1.5px solid #8796a5;border-radius:50%;margin:0;background:transparent}.share-dialog input[type=radio]:checked{border-color:#1688ff;background:#1688ff;box-shadow:inset 0 0 0 4px var(--ios-surface,#191c22)}.share-dialog input[type=radio]:focus-visible{outline:3px solid #1688ff66;outline-offset:3px}.share-dialog .share-option input{width:1px;height:1px}.portal-body>form>p{margin:0;color:var(--ios-secondary,#929299)}.portal-body .share-choice{align-items:center;line-height:1.45;padding:5px 0}.portal-body fieldset:disabled{opacity:.55}.smart-confirm>div{flex-wrap:wrap}.smart-confirm button{min-width:100px}

.share-dialog>#share-quick,.share-dialog>#share-advanced{display:flex;width:100%;margin-top:12px}.share-dialog>#share-advanced{margin-bottom:18px}.share-dialog>.share-footnote{margin:18px 0 0}.share-dialog.is-loading #share-list{display:grid;min-height:190px;place-items:center}.share-dialog.is-loading #share-list::before{content:"";width:42px;height:42px;border:3px solid #2d3942;border-top-color:var(--ios-cyan,#32ade6);border-radius:50%;animation:share-spin .75s linear infinite}.share-dialog.is-loading>#share-quick,.share-dialog.is-loading>#share-advanced,.share-dialog.is-loading>.share-footnote{visibility:hidden}.share-dialog #share-close{color:#73c8ff!important;border:1px solid #0a84ff70!important;background:#0a84ff18!important;box-shadow:0 0 0 3px #0a84ff10!important;outline:0!important}@keyframes share-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.share-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:18px 18px calc(26px + env(safe-area-inset-bottom));border:0;border-radius:0;overscroll-behavior:contain}.share-dialog::backdrop{background:#000}.share-dialog body{overscroll-behavior:none}body .share-dialog header{top:-18px;margin:0 -2px;padding:18px 2px 14px}.share-dialog [role=status]{top:72px}.share-dialog #share-list{min-height:1px}.share-dialog.is-loading #share-list{min-height:calc(100dvh - 190px)}.share-dialog #share-close{border-radius:16px}.share-dialog>#share-quick,.share-dialog>#share-advanced{min-height:54px;margin-top:14px}.share-dialog>#share-advanced{margin-bottom:22px}}
@media(max-width:380px){.share-dialog{padding-left:14px;padding-right:14px}body .share-dialog header{top:-18px}}
.portal-notification-settings{display:grid;gap:12px;margin-bottom:26px;padding:16px;border:1px solid var(--line,#34363a);border-radius:18px;background:var(--surface,#1a1d21)}.portal-notification-settings .share-choice{margin:0}.portal-notification-settings button{width:100%}.portal-events{display:grid;gap:12px}.portal-events h3{margin:0 0 2px}.portal-events-empty{margin:0;padding:22px;text-align:center;color:#8f989f;border:1px dashed var(--line,#34363a);border-radius:16px}
.portal-dialog .portal-modal-header{justify-content:flex-start!important;padding-bottom:8px!important}.portal-dialog .portal-back{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:auto;min-height:42px;padding:8px 2px!important;border:0!important;border-radius:0!important;color:var(--ios-blue,#0a84ff)!important;background:transparent!important;box-shadow:none!important;font-size:15px;font-weight:650}.portal-dialog .portal-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2}.portal-modal-title{margin:7px 0 22px}.portal-modal-title>small{display:block;margin-bottom:7px;color:var(--ios-cyan,#32ade6);font-size:10px;font-weight:750;letter-spacing:.16em}.portal-modal-title h2{font-size:28px;letter-spacing:-.025em}.portal-loading{display:flex;align-items:center;gap:10px;padding:18px 2px;color:var(--ios-secondary,#929299);font-size:13px}.portal-loading i{width:18px;height:18px;border:2px solid var(--ios-line,#45484d);border-top-color:var(--ios-blue,#0a84ff);border-radius:50%;animation:share-spin .7s linear infinite}@media(max-width:700px){body .portal-dialog .portal-modal-header{top:-18px;margin:0;padding-top:18px!important}.portal-dialog .portal-modal-title{margin-top:3px}}
.portal-dialog .portal-modal-title{margin:4px 0 13px}.portal-dialog .portal-modal-title p{margin:9px 0 0;color:var(--ios-secondary,#929299);font-size:14px;line-height:1.5}.portal-dialog .portal-modal-header{position:static!important;top:auto!important;margin:0 0 20px!important;padding:0!important;background:transparent!important}.portal-dialog .portal-back{min-height:40px;padding:7px 2px!important}@media(max-width:700px){body .portal-dialog .portal-modal-header{position:static!important;top:auto!important;margin:0 0 20px!important;padding:0!important}.portal-dialog .portal-modal-title{margin-top:4px}}
.share-dialog #share-quick[hidden],.share-dialog #share-advanced[hidden]{display:none!important}.share-dialog #share-create.share-simple{display:grid;gap:18px;margin-top:18px}.share-dialog #share-create.share-simple>.share-section-head,.share-dialog #share-create.share-simple>.share-documents-internal,.share-dialog #share-create.share-simple>.share-default-internal,.share-dialog #share-create.share-simple>label:first-of-type,.share-dialog #share-create.share-simple>#share-code,.share-dialog #share-create.share-simple>#share-custom-date,.share-dialog #share-create.share-simple>.share-explain{display:none!important}.share-dialog #share-create.share-simple .share-options{border:0;padding:0;gap:8px}.share-dialog #share-create.share-simple .share-options legend{padding:0 0 10px;color:var(--ios-text,#edf3f7);font-size:16px;font-weight:700}.share-dialog #share-create.share-simple .share-option{min-height:58px}.share-dialog #share-create.share-simple .share-option small{font-size:12px}.share-dialog .share-copy-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.share-dialog .share-copy-actions button{font-size:13px;padding:11px 8px}.share-dialog #share-list:not(:empty)+#share-quick+ #share-advanced + #share-create[hidden]{display:none!important}@media(max-width:400px){.share-dialog .share-copy-actions{grid-template-columns:1fr}}
.share-dialog>.share-footnote{display:none}
.portal-notification-settings{gap:0;padding:0;border:0;background:transparent}.portal-notification-settings h3{margin:0 0 12px;font-size:17px}.notification-sector{overflow:hidden;border:1px solid var(--ios-line,#35383d);border-radius:18px;background:var(--ios-surface,#1b1d20)}.portal-dialog .notification-switch{position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:75px;padding:12px 16px;cursor:pointer}.portal-dialog .notification-switch+.notification-switch{border-top:1px solid var(--ios-line,#35383d)}.notification-copy{display:grid;gap:4px;min-width:0}.notification-copy b{font-size:15px}.notification-copy small{color:var(--ios-secondary,#929299);font-size:12px;line-height:1.35}.portal-dialog .notification-switch input{position:absolute;right:16px;width:52px!important;height:31px!important;margin:0!important;opacity:0;cursor:pointer}.notification-track{position:relative;flex:0 0 52px;width:52px;height:31px;border-radius:18px;background:#4a4d52;transition:background .2s ease}.notification-track::after{content:"";position:absolute;top:3px;left:3px;width:25px;height:25px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0004;transition:transform .2s cubic-bezier(.2,.8,.2,1)}.notification-switch input:checked+.notification-track{background:#34c759}.notification-switch input:checked+.notification-track::after{transform:translateX(21px)}.notification-switch input:focus-visible+.notification-track{outline:3px solid #0a84ff88;outline-offset:3px}.notification-switch input:disabled+.notification-track{opacity:.65}.notification-help{margin:11px 2px 0!important;color:var(--ios-secondary,#929299);font-size:12px!important}.portal-events{margin-top:27px}.portal-events-empty{border:0;border-radius:16px;background:var(--ios-surface,#1b1d20)}@media(prefers-reduced-motion:reduce){.notification-track,.notification-track::after{transition:none}}
.notification-track{pointer-events:none}
.share-dialog .share-copy-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.share-dialog .share-copy-actions .share-revoke{grid-column:1/-1}
.share-dialog .share-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:0}
.share-dialog .share-icon-button svg{flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.share-dialog .share-revoke{border:1px solid #ff696955;background:#ff696916;color:#ff8585}
html[data-theme=light] .share-dialog .share-revoke{border-color:#d3404038;background:#d340400c;color:#b62929}
.share-dialog .share-recipient-summary{font-size:14px;color:var(--ios-secondary,#a3a7ad)}
.share-dialog .share-contact-note{margin:0;color:var(--ios-secondary,#a3a7ad);font-size:12px}
.share-dialog .share-duplicate-note{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid var(--ios-line,#465665);border-radius:13px;background:#ffffff05;color:var(--ios-secondary,#a3a7ad);font-size:12px}
.share-dialog .share-duplicate-note button{min-height:38px;padding:8px 11px;font-size:12px}
@media(max-width:400px){.share-dialog .share-duplicate-note{align-items:stretch;flex-direction:column}}
@media(max-width:400px){.share-dialog .share-copy-actions{grid-template-columns:1fr}}
.share-signed-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.share-signed-actions button{min-width:0;font-size:13px}
.share-dialog.share-preview-open{overflow:hidden}
.share-pdf-viewer{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));background:var(--ios-surface,#191c22)}
.share-pdf-head,.share-pdf-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.share-pdf-head{padding:0 0 12px}.share-pdf-head button{min-width:48px}.share-pdf-nav{justify-content:center;padding:12px 0 0}.share-pdf-nav span{min-width:66px;text-align:center;color:var(--ios-secondary,#a3a7ad)}
.share-pdf-page{flex:1;min-height:0;overflow:auto;background:#e6e9eb;border-radius:12px;padding:6px}
.share-pdf-sheet{position:relative;margin:0 auto;background:white;box-shadow:0 3px 20px #0003}
.share-pdf-sheet canvas{display:block;background:white}
.share-pdf-sheet .textLayer{position:absolute;inset:0;overflow:clip;line-height:1;text-align:initial;-webkit-text-size-adjust:none;text-size-adjust:none;transform-origin:0 0;user-select:text;-webkit-user-select:text}
.share-pdf-sheet .textLayer span,.share-pdf-sheet .textLayer br{position:absolute;color:transparent;white-space:pre;cursor:text;transform-origin:0% 0%}
.share-pdf-sheet .textLayer ::selection{background:#0a84ff55}
