/* Keep personal reading and family sharing together, above the author tools. */
.storybd-v7.storybd-library[data-storybd-library-layout] .cxrc-author-row:has(>button.storybd-library-family-share[data-storybd-family-share]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;gap:16px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxrc-author-row:has(>button.storybd-library-family-share[data-storybd-family-share])>:not(.storybd-library-reader-primary):not(.storybd-library-family-share){grid-column:1/-1!important;min-width:0}
.storybd-v7.storybd-library[data-storybd-library-layout] button.storybd-library-family-share{display:flex!important;align-items:center;justify-content:flex-start;width:100%;min-width:0;min-height:96px;margin:0!important;padding:20px!important;gap:16px;border:1px solid #cbdbea!important;border-radius:14px!important;background:#f5f9ff!important;color:#17375d!important;font-family:Arial,Helvetica,sans-serif!important;text-align:left!important;box-sizing:border-box;box-shadow:none!important;cursor:pointer;transition:background .15s,border-color .15s}
.storybd-v7.storybd-library[data-storybd-library-layout] button.storybd-library-family-share:hover{background:#edf5ff!important;border-color:#829ebd!important}
.storybd-library-family-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:#e4eefb;color:#315886}
.storybd-library-family-icon svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.storybd-library-family-copy{flex:1;min-width:0}
.storybd-v7.storybd-library .storybd-library-family-copy strong{display:block;font-size:19px!important;line-height:1.3!important;font-weight:750!important;color:#17375d!important}
.storybd-v7.storybd-library .storybd-library-family-copy small{display:block;margin-top:5px;font-size:12px!important;line-height:1.45!important;color:#607a98!important}
.storybd-library-family-share>b{font-size:23px;line-height:1;color:#315886}
.storybd-v7.storybd-library[data-storybd-library-layout] button.storybd-library-family-share:focus-visible{outline:3px solid #27649f;outline-offset:3px}
.storybd-v7.storybd-library[data-storybd-library-layout] button.storybd-library-family-share:disabled{background:#f1f4f7!important;border-color:#e0e5ec!important;opacity:.7;cursor:default}
body.storybd-family-dialog-open{overflow:hidden}
dialog.storybd-family-dialog{width:calc(100% - 32px);max-width:510px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #d6e0eb;border-radius:20px;background:#fff;color:#1c2c42;box-shadow:0 24px 85px #10244040;overflow:auto;font:15px/1.5 Arial,Helvetica,sans-serif}
dialog.storybd-family-dialog:not([open]){display:none}
dialog.storybd-family-dialog::backdrop{background:#10243f80;backdrop-filter:blur(2px)}
.storybd-family-dialog-card{position:relative;padding:30px}
.storybd-family-dialog-kicker{display:block;padding-right:35px;font-size:12px;letter-spacing:.06em;font-weight:700;color:#44678e;text-transform:uppercase}
dialog.storybd-family-dialog h2{font:750 25px/1.2 Arial,Helvetica,sans-serif;margin:9px 0 8px;padding:0 20px 0 0;color:#192f50;text-shadow:none}
.storybd-family-dialog-album{margin:0 0 17px;font-weight:700;font-size:14px;color:#647890;overflow-wrap:anywhere}
.storybd-family-dialog-description{margin:0 0 22px;color:#506277;font-size:14px}
.storybd-family-dialog-label{display:block;font-size:12px;font-weight:700;color:#354d68;margin-bottom:7px}
.storybd-family-dialog-url{display:block;box-sizing:border-box;width:100%;height:46px;padding:10px 12px;border:1px solid #c8d6e6!important;border-radius:8px;background:#f8fbff;color:#244264;font:13px Arial,Helvetica,sans-serif;text-overflow:ellipsis}
.storybd-family-dialog-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.storybd-family-dialog-copy,.storybd-family-dialog-open-link{display:inline-flex;align-items:center;justify-content:center;flex:1;min-height:44px;box-sizing:border-box;padding:11px 15px;border:1px solid #24496f;border-radius:9px;font:700 13px/1.3 Arial,Helvetica,sans-serif;text-decoration:none!important;cursor:pointer}
.storybd-family-dialog-copy{background:#24496f;color:#fff}
.storybd-family-dialog-copy:disabled{background:#edf2f8;border-color:#dce5ef;color:#8a9caf;cursor:wait}
.storybd-family-dialog-open-link{background:#fff;color:#24496f!important}
.storybd-family-dialog-open-link:hover{background:#f0f6ff}
.storybd-family-dialog-status{margin:13px 0 0;min-height:20px;font-size:12px;line-height:1.5;color:#536f8d}
.storybd-family-dialog-close{position:absolute;top:15px;right:15px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#edf2f8;color:#526b88;font:26px/1 Arial,sans-serif;cursor:pointer}
.storybd-family-dialog-retry{margin-top:9px;border:0;background:none;padding:4px 0;color:#24496f;font:700 13px Arial,sans-serif;cursor:pointer;text-decoration:underline}
.storybd-family-dialog :focus-visible{outline:3px solid #27649f;outline-offset:2px}
.storybd-family-dialog [hidden],.storybd-family-backdrop[hidden]{display:none!important}
.storybd-family-backdrop{position:fixed;inset:0;background:#10243f80;z-index:2147483000}
dialog.storybd-family-dialog.is-fallback{position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);z-index:2147483001}
@media(max-width:760px){
 .storybd-v7.storybd-library[data-storybd-library-layout] .cxrc-author-row:has(>button.storybd-library-family-share[data-storybd-family-share]){grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] button.storybd-library-family-share{min-height:76px;padding:16px 18px!important;gap:14px}
 .storybd-library-family-icon{width:38px;height:38px;flex-basis:38px}
 .storybd-v7.storybd-library .storybd-library-family-copy strong{font-size:17px!important}
 .storybd-v7.storybd-library .storybd-library-family-copy small{font-size:11px!important}
 .storybd-family-dialog-card{padding:26px 22px}
 dialog.storybd-family-dialog h2{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.storybd-v7.storybd-library[data-storybd-library-layout] button.storybd-library-family-share{transition:none}}
