/* Bookstagram v0.3 – standalone and strictly scoped. The homepage is unchanged. */
body{background:#0d1119}
.bs-page{--bs-gold:#d8b96c;--bs-blue:#75aaff;color:#eeeef1;line-height:1.5;padding:0 0 70px}
.bs-page main{width:min(1430px,calc(100% - 56px));margin:0 auto}
.bs-page h1,.bs-page h2,.bs-page h3{line-height:1.15;color:#fff;margin-top:0;letter-spacing:-.025em}
.bs-page p{margin:0}
.bs-kicker{font-size:.68rem;color:var(--bs-gold)!important;letter-spacing:.23em;font-weight:800;text-transform:uppercase}
.bs-hero{position:relative;isolation:isolate;margin:30px 0 17px;padding:42px 54px;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,290px);gap:32px;align-items:center;background:radial-gradient(ellipse at 94% 15%,rgba(92,61,145,.24),transparent 55%),linear-gradient(125deg,#1c2430,#0f1520);border:1px solid #62553d;border-radius:22px;box-shadow:0 10px 50px #0008}
.bs-hero h1{font-size:clamp(2.4rem,4.5vw,4.8rem);margin:8px 0 14px;font-weight:900}
.bs-hero h1 span{color:var(--bs-gold)}
.bs-lead{font-size:clamp(.99rem,1.3vw,1.1rem);line-height:1.65;color:#cbd1dc;max-width:735px}
.bs-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 0}
.bs-button,.bs-profile-actions a,.bs-profile-actions button,.bs-mini-admin{border-radius:10px;line-height:1.25;font-size:.84rem;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;text-decoration:none!important;transition:background .17s ease,transform .17s ease}
.bs-button:hover,.bs-profile-actions a:hover,.bs-profile-actions button:hover{transform:translateY(-1px)}
.bs-button-primary{background:#f4f0e7;border:1px solid #f4f0e7;color:#111!important}
.bs-button-gold{background:linear-gradient(130deg,#edcf83,#c5a456);border:1px solid #c6a356;color:#17120c!important}
.bs-button-outline{background:#161c25;border:1px solid #695c41;color:#f0daa2!important}
.bs-instagram-hero{display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:1px solid #654f77;border-radius:18px;background:radial-gradient(ellipse at 100% 0%,rgba(210,81,158,.18),transparent 65%),#161b27;padding:19px 22px;box-shadow:0 10px 22px #0003}
.bs-ig-symbol{width:42px;height:42px;display:grid;place-items:center;background:linear-gradient(35deg,#f9b04a,#e54880,#7955cc);border-radius:14px;color:#fff;margin-bottom:6px}
.bs-ig-label{font-size:.77rem;color:#cfcbda}
.bs-instagram-hero strong{font-size:clamp(2.3rem,4vw,3.5rem);letter-spacing:-.05em;line-height:1.05;color:white;font-variant-numeric:tabular-nums}
.bs-ig-sub{color:#aab5c3;font-size:.72rem}
.bs-instagram-hero a{font-weight:700;color:#ffd0e2!important;font-size:.9rem;text-decoration:none}
.bs-mini-admin{padding:6px 9px!important;font-size:.73rem!important;color:#dec994!important;border:1px solid #786745!important;background:#242734!important}
.bs-flash{padding:12px 16px;margin:13px 0;border:1px solid #b99a51;background:#252517;border-radius:12px}.bs-flash.is-error{border-color:#b96b77;background:#331d28}
.bs-network-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:13px 0 48px}
.bs-network-stats>div{min-width:0;display:flex;flex-direction:column;justify-content:center;border-radius:12px;border:1px solid #364454;padding:14px 17px;min-height:83px;background:linear-gradient(130deg,#222832,#161d26)}
.bs-network-stats strong{font-size:clamp(1.65rem,2.5vw,2.4rem);font-weight:850;font-variant-numeric:tabular-nums;line-height:1;color:#f7f4eb}
.bs-network-stats span{font-size:.76rem;color:#bac3cd;line-height:1.4;padding-top:5px}
.bs-network-section{margin-bottom:53px}
.bs-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}
.bs-section-head h2{font-size:clamp(1.6rem,2.5vw,2.55rem);margin:5px 0 10px}
.bs-section-head p:not(.bs-kicker){color:#b9c1cb;font-size:.94rem;line-height:1.55;max-width:750px}
.bs-section-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;max-width:620px}
.bs-key{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0;color:#b9c2cf;font-size:.79rem}
.bs-key span{display:inline-flex;align-items:center;gap:8px}.bs-key i{display:inline-block;width:27px;height:3px;border-radius:8px}.bs-key-gray{background:#71869e}.bs-key-gold{background:#dbb866}.bs-key-blue{background:#72adff}
.bs-filters{display:flex;align-items:center;flex-wrap:wrap;gap:11px;border-radius:12px;padding:11px 14px;margin:16px 0 30px;background:rgba(20,27,37,.94);border:1px solid #394b5d}
.bs-filters label{font-size:.8rem;color:#ced7df}.bs-filters input,.bs-filters select{color:#f7f7f7!important;background:#121a25!important;border:1px solid #506074!important;border-radius:8px;min-height:39px;padding:8px 12px;font-size:.87rem}
.bs-filters input{flex:1;min-width:180px}.bs-filters select{min-width:220px}.bs-filters #bs-visible-count{font-size:.78rem;color:#aebcca;margin-left:auto}
.bs-network-canvas{position:relative;isolation:isolate;padding:15px 10px}
.bs-lines{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}
.bs-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));column-gap:34px;row-gap:48px;align-items:start}
.bs-profile{position:relative;min-width:0;display:flex;flex-direction:column;gap:10px;background:linear-gradient(160deg,rgba(30,38,51,.97),rgba(17,24,34,.97));border:1px solid #43536a;border-radius:14px;padding:13px!important;box-shadow:0 7px 22px #0008;transition:transform .16s,border-color .16s}
.bs-profile:hover{border-color:#8a9db2;transform:translateY(-2px)}
.bs-profile.is-linked{border-color:#9c824a;box-shadow:0 8px 23px #0008,0 0 0 1px #caa05423}
.bs-profile.is-member{border-color:#609df0;box-shadow:0 8px 23px #0008,0 0 0 1px #569bff26}
.bs-profile[hidden]{display:none!important}
.bs-profile-top{display:flex;align-items:center;gap:10px;margin:0;min-height:20px}
.bs-node-symbol{height:11px;width:11px;flex:0 0 11px;background:#92a0b5;border-radius:50%;box-shadow:0 0 0 4px #8c9db322}
.bs-profile.is-linked .bs-node-symbol{background:#dbb968;box-shadow:0 0 0 4px #caa35933}
.bs-profile.is-member .bs-node-symbol{background:#75aaff;box-shadow:0 0 0 4px #4a95ee33}
.bs-state{font-size:.63rem;text-transform:uppercase;letter-spacing:.08em;color:#9faebf;margin-left:auto}
.bs-profile.is-linked .bs-state{color:#e0c479}.bs-profile.is-member .bs-state{color:#91c1ff}
/* The previous shared/global styles compressed the image-button to ~40px: reset both dimensions explicitly. */
.bs-page .bs-profile .bs-image-open{box-sizing:border-box!important;display:block!important;position:relative!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;border:1px solid #43505f!important;border-radius:9px!important;background:#0d1118!important;line-height:0!important;aspect-ratio:auto!important;cursor:zoom-in}
.bs-page .bs-profile .bs-image-open img{box-sizing:border-box!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;max-width:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;opacity:1!important;transform:none!important}
.bs-profile-caption{display:flex;flex-direction:column;gap:2px;min-width:0;margin:0!important}
.bs-profile-caption strong{font-size:.94rem;color:#fff;line-height:1.3;overflow-wrap:anywhere}
.bs-profile-caption span{font-size:.76rem;color:#b9c4d1;overflow-wrap:anywhere}
.bs-profile-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:auto}
.bs-profile-actions a,.bs-profile-actions button{font-size:.74rem;padding:7px 9px;background:#202b39;color:#eef1f6;border:1px solid #59677a;border-radius:8px}
.bs-profile-actions .bs-instagram{color:#f3d3e8;border-color:#846280}
.bs-profile-actions .bs-claimed{color:#f5dfab;border-color:#837142}
.bs-profile-actions form{margin:0}.bs-profile-actions form button{color:#cbdff8}
.bs-small{font-size:.77rem!important;line-height:1.7!important;color:#a8b3c4!important;margin:16px 0!important}
.bs-empty{text-align:center;border:1px dashed #65768c;padding:28px;margin:15px 0;background:#151b27;border-radius:14px}
.bs-join{padding:31px 37px;background:linear-gradient(130deg,#262731,#151d27);border:1px solid #6f603f;border-radius:19px;margin:60px 0 46px}
.bs-join h2{font-size:clamp(1.5rem,2.3vw,2.3rem);margin:8px 0 11px}.bs-join>p:not(.bs-kicker){color:#bec8d5;font-size:.91rem;max-width:850px;line-height:1.7}
/* Restore the actual multi-column component. Existing main.css alone did not provide its home-only grid layout. */
.bs-page .tp-community-status.bs-community-status{margin:0 0 44px!important;padding:18px 19px!important;border:1px solid #505864!important;border-radius:17px!important;background:rgba(21,27,36,.88)!important;min-height:0!important;height:auto!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.bs-page .bs-community-status .tp-community-status-heading{display:flex!important;justify-content:space-between;align-items:end;gap:18px;margin-bottom:15px}
.bs-page .bs-community-status h2{font-size:clamp(1.25rem,2vw,1.9rem)!important;margin:2px 0 0!important}
.bs-page .bs-community-status .tp-community-status-copy{font-size:.77rem!important;color:#adb7c4;max-width:310px}
.bs-page .bs-community-status .tp-community-status-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important;width:100%!important;height:auto!important;align-items:stretch!important}
.bs-page .bs-community-status .tp-community-stat-card{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-end!important;position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:112px!important;margin:0!important;padding:11px!important;border-radius:10px!important;background:rgba(255,255,255,.045)!important;border:1px solid #485260!important;box-shadow:none!important;text-decoration:none!important}
.bs-page .bs-community-status .tp-community-stat-number{font-size:clamp(1.4rem,2.5vw,2.35rem)!important;line-height:1.08!important;color:#f7f8fa!important;margin:0!important}
.bs-page .bs-community-status .tp-community-stat-icon{position:absolute!important;right:9px!important;top:9px!important;display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border:1px solid #394657!important;border-radius:50%!important;font-size:.56rem!important;color:#c2c9d0!important}
.bs-page .bs-community-status .tp-community-stat-label{font-size:.68rem!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.05em!important;color:#e4e6eb!important;margin:5px 0 0!important}
.bs-page .bs-community-status .tp-community-stat-note{font-size:.65rem!important;color:#a9b0bd!important;margin-top:3px!important}
.bs-dialog{color:#f3f4f7;background:linear-gradient(145deg,#232e3a,#151b24);border:1px solid #9b8655;border-radius:18px;box-shadow:0 23px 90px #000b;max-width:min(570px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:25px;box-sizing:border-box;position:fixed}
.bs-dialog::backdrop{background:#05090ce0;backdrop-filter:blur(4px)}.bs-dialog h2{font-size:1.5rem;margin:0 30px 14px 0!important;color:#fff}.bs-dialog p{color:#c8d0db;line-height:1.65;margin:10px 0 14px}
.bs-dialog-close{position:absolute;right:11px;top:11px;width:35px;height:35px;display:grid;place-items:center;border:1px solid #778394;border-radius:50%;font-size:25px;line-height:1;padding:0;background:#2b3543;color:#fff;cursor:pointer}
.bs-dialog form{display:flex;flex-direction:column;gap:10px;margin:0}.bs-dialog label{font-size:.87rem;font-weight:750}.bs-dialog input:not([type=checkbox]),.bs-dialog select,.bs-dialog textarea{width:100%!important;box-sizing:border-box!important;min-height:38px;padding:10px 12px;background:#111923!important;border:1px solid #677789!important;border-radius:8px;color:#fff!important;font-size:.88rem}
.bs-dialog .bs-checkbox{display:flex;gap:9px;line-height:1.55;align-items:flex-start;font-weight:500}.bs-dialog input[type=checkbox]{width:19px;height:19px;flex:0 0 auto;margin:2px 0 0}
.bs-dialog hr{border:0;border-top:1px solid #48515d;margin:18px 0}.bs-dialog .bs-button{width:100%}.bs-honeypot{position:absolute!important;left:-20000px!important}
.bs-image-dialog{max-width:min(1100px,94vw);width:max-content;text-align:center}.bs-image-dialog img{display:block;max-width:100%;width:auto;height:auto;max-height:73dvh;object-fit:contain;margin:12px auto!important;border-radius:5px}.bs-image-dialog p{margin:0}
.bs-admin-reports{border:1px solid #6c6348;padding:18px;margin:10px 0;border-radius:12px;background:#1a212c}.bs-admin-reports summary{cursor:pointer;font-weight:bold}.bs-admin-reports-list{margin:16px 0 0}.bs-report-entry{padding:12px;margin:10px 0;background:#242c36;border:1px solid #4b5764;border-radius:10px}.bs-report-entry p{margin:8px 0;overflow-wrap:anywhere}
/* Focus view: immersive network, no extra route, escape returns to normal. */
body.bs-focus-mode{background:#070a12!important}
body.bs-focus-mode .bs-page main{width:min(1850px,calc(100% - 34px))!important}
body.bs-focus-mode .bs-hero,body.bs-focus-mode .bs-network-stats,body.bs-focus-mode .bs-join,body.bs-focus-mode .bs-community-status,body.bs-focus-mode .bs-admin-reports{display:none!important}
body.bs-focus-mode .bs-network-section{padding-top:25px!important}
body.bs-focus-mode .bs-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr))}
body.bs-focus-mode .bs-network-canvas{padding:25px 15px}
@media(max-width:1170px){.bs-grid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:35px}.bs-section-head{align-items:flex-start;flex-direction:column}.bs-section-actions{justify-content:flex-start;max-width:none}.bs-page .bs-community-status .tp-community-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:830px){.bs-hero{grid-template-columns:1fr;padding:32px}.bs-instagram-hero{max-width:370px}.bs-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:19px;row-gap:29px}.bs-network-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bs-page .bs-community-status .tp-community-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:560px){.bs-page main{width:calc(100% - 28px)}.bs-hero{margin:14px 0;padding:23px 19px;gap:20px}.bs-hero h1{font-size:2.45rem}.bs-hero-actions>*{width:100%}.bs-network-stats{gap:8px;margin:14px 0 31px}.bs-network-stats>div{padding:10px;min-height:77px}.bs-network-stats strong{font-size:1.65rem}.bs-network-stats span{font-size:.68rem}.bs-section-head h2{font-size:1.6rem}.bs-section-actions{width:100%}.bs-section-actions .bs-button{flex:1 1 45%}.bs-key{font-size:.74rem;gap:10px}.bs-filters{display:grid;grid-template-columns:1fr;gap:7px}.bs-filters input,.bs-filters select{width:100%;min-width:0}.bs-filters #bs-visible-count{margin:0}.bs-grid,body.bs-focus-mode .bs-grid{grid-template-columns:1fr;gap:26px}.bs-network-canvas{padding-left:23px}.bs-network-canvas:before{content:'';position:absolute;left:7px;top:0;bottom:0;width:2px;background:linear-gradient(#7590b3,#dbb46e 50%,#7590b3);opacity:.55}.bs-profile:before{content:'';position:absolute;left:-18px;top:22px;width:18px;height:2px;background:#7d95b3}.bs-profile.is-linked:before{background:#e0bd70;height:3px}.bs-profile.is-member:before{background:#78aaff;height:3px}.bs-lines{display:none}.bs-join{padding:22px 19px;margin:36px 0}.bs-page .bs-community-status .tp-community-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bs-page .bs-community-status .tp-community-status-heading{display:block!important}.bs-page .bs-community-status .tp-community-stat-card{min-height:95px!important}.bs-page .bs-community-status .tp-community-stat-number{font-size:1.7rem!important}}
@media(prefers-reduced-motion:reduce){.bs-profile,.bs-button{transition:none!important}}

/* BEGIN BOOKSTAGRAM v0.3.1 – compact search and action buttons */
/* Limit only the search field; the network, filter controls and cards keep their layout. */
.bs-page .bs-filters #bs-search {
    flex: 0 1 390px !important;
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    min-width: 200px !important;
    box-sizing: border-box !important;
}
/* Match the small Instagram link: no inherited oversized or uppercase button styling. */
.bs-page .bs-profile .bs-profile-actions .bs-claim-open,
.bs-page .bs-profile .bs-profile-actions .bs-edit-profile {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 32px !important;
    padding: 7px 9px !important;
    margin: 0 !important;
    border: 1px solid #59677a !important;
    border-radius: 8px !important;
    background: #202b39 !important;
    color: #eef1f6 !important;
    box-shadow: none !important;
    font-size: .74rem !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: normal !important;
    text-decoration: none !important;
}
.bs-page .bs-profile .bs-profile-actions .bs-edit-profile {
    border-color: #786745 !important;
    color: #dec994 !important;
}
.bs-page .bs-profile .bs-profile-actions .bs-claim-open:hover,
.bs-page .bs-profile .bs-profile-actions .bs-edit-profile:hover {
    background: #2b394b !important;
}
/* On small screens the search field must still fill the available column. */
@media (max-width: 720px) {
    .bs-page .bs-filters #bs-search {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
/* END BOOKSTAGRAM v0.3.1 */

/* BEGIN BOOKSTAGRAM v0.3.2 — compact complete filter card */
/* The entire search+filter surface is compact, rather than only its search input. */
@media (min-width: 721px) {
  .bs-page .bs-filters {
    box-sizing: border-box !important;
    width: min(100%, 740px) !important;
    max-width: 740px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 10px 12px !important;
    display: grid !important;
    grid-template-columns: max-content minmax(150px, 1fr) max-content minmax(145px, 195px) !important;
    align-items: center !important;
    gap: 8px 10px !important;
  }
  .bs-page .bs-filters label[for="bs-search"] { grid-column: 1; }
  .bs-page .bs-filters #bs-search {
    grid-column: 2;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }
  .bs-page .bs-filters label[for="bs-status"] { grid-column: 3; }
  .bs-page .bs-filters #bs-status {
    grid-column: 4;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }
  .bs-page .bs-filters #bs-visible-count {
    grid-column: 1 / -1;
    justify-self: end;
    text-align: right;
    margin: 0 !important;
    font-size: .72rem !important;
  }
}
/* On mobile, input AND dropdown remain usable without horizontal scrolling. */
@media (max-width: 720px) {
  .bs-page .bs-filters {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
  }
  .bs-page .bs-filters #bs-status {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
/* END BOOKSTAGRAM v0.3.2 */
/* BEGIN BOOKSTAGRAM v0.3.3 — compact self-claim dialog */
/* The claim dialog lives outside .bs-page, so use its ID, not .bs-page descendants. */
dialog#bs-claim-dialog.bs-dialog {
  box-sizing: border-box !important;
  width: min(480px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  max-height: min(85dvh, 750px) !important;
  padding: 24px 24px 21px !important;
  overflow-y: auto !important;
}
dialog#bs-claim-dialog h2#bs-claim-heading {
  margin: 0 40px 14px 0 !important;
  padding: 0 !important;
  font-size: clamp(1.22rem, 2.3vw, 1.48rem) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: left !important;
}
dialog#bs-claim-dialog p {
  margin: 0 0 13px !important;
  font-size: .9rem !important;
  font-weight: 400 !important;
  line-height: 1.57 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: left !important;
}
dialog#bs-claim-dialog #bs-claim-name {
  font-size: .83rem !important;
  font-weight: 650 !important;
  color: #efdcab !important;
  overflow-wrap: anywhere !important;
  margin-bottom: 10px !important;
}
dialog#bs-claim-dialog form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin: 14px 0 0 !important;
}
/* Global auth/form styles formerly hid the checkbox and spaced every label letter. */
dialog#bs-claim-dialog label.bs-checkbox {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #546276 !important;
  border-radius: 10px !important;
  background: #161f2a !important;
  color: #e4e9f0 !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1.45 !important;
  text-align: left !important;
  cursor: pointer !important;
}
dialog#bs-claim-dialog label.bs-checkbox input[type="checkbox"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  inset: auto !important;
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  min-height: 19px !important;
  max-width: 19px !important;
  max-height: 19px !important;
  flex: 0 0 19px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 4px !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  accent-color: #d8b96c !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
dialog#bs-claim-dialog label.bs-checkbox:focus-within {
  outline: 2px solid #cfae69 !important;
  outline-offset: 2px !important;
}
dialog#bs-claim-dialog button.bs-button[type="submit"] {
  box-sizing: border-box !important;
  align-self: flex-end !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 37px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: normal !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
/* Consistent centered close icons across Bookstagram's own dialogs only. */
dialog.bs-dialog > button.bs-dialog-close {
  box-sizing: border-box !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-indent: 0 !important;
  text-align: center !important;
  transform: none !important;
}
@media (max-width: 540px) {
  dialog#bs-claim-dialog.bs-dialog { padding: 21px 17px 18px !important; }
  dialog#bs-claim-dialog h2#bs-claim-heading { font-size: 1.23rem !important; }
  dialog#bs-claim-dialog button.bs-button[type="submit"] { width: 100% !important; align-self: stretch !important; }
}
/* END BOOKSTAGRAM v0.3.3 */

/* BEGIN BOOKSTAGRAM v0.3.4 – status emphasis and calmer background */
/* Quiet page background: remove the old scene image on this page and blend Truepublishing + Instagram colors subtly. */
body {
    background: #0b1018 !important;
    background-image: none !important;
}
body::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background:
        radial-gradient(1200px 700px at 6% 14%, rgba(228, 82, 131, .10), transparent 60%),
        radial-gradient(900px 620px at 94% 10%, rgba(110, 118, 255, .12), transparent 56%),
        radial-gradient(900px 800px at 50% 100%, rgba(216, 185, 108, .08), transparent 64%),
        linear-gradient(180deg, #0a0f18 0%, #101826 50%, #0f1724 100%) !important;
}
.bs-page {
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}
.bs-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px) 0 0 / 120px 120px,
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 120px 120px;
    opacity: .10;
}

/* Make the entire filter card calmer and narrower on desktop. */
.bs-page .bs-filters {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    gap: 10px 12px !important;
    padding: 10px 14px !important;
    background: rgba(18, 26, 37, .92) !important;
    border-color: #44566b !important;
}
.bs-page .bs-filters #bs-search {
    flex: 0 1 320px !important;
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    min-width: 180px !important;
}
.bs-page .bs-filters select {
    flex: 0 1 210px !important;
    width: min(100%, 210px) !important;
    max-width: 210px !important;
    min-width: 0 !important;
}
.bs-page .bs-filters #bs-visible-count {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    text-align: right !important;
}

/* Smaller, calmer action buttons — including the login-claim version and the unclaim button. */
.bs-page .bs-profile .bs-profile-actions .bs-claim-open,
.bs-page .bs-profile .bs-profile-actions .js-open-modal[data-modal='login'],
.bs-page .bs-profile .bs-profile-actions .bs-inline-form button,
.bs-page .bs-profile .bs-profile-actions .bs-edit-profile {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 32px !important;
    height: auto !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: .74rem !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
}
.bs-page .bs-profile .bs-profile-actions .bs-claim-open,
.bs-page .bs-profile .bs-profile-actions .js-open-modal[data-modal='login'] {
    border: 1px solid #59677a !important;
    background: #202b39 !important;
    color: #eef1f6 !important;
}
.bs-page .bs-profile .bs-profile-actions .bs-edit-profile {
    border: 1px solid #786745 !important;
    background: rgba(42, 39, 26, .85) !important;
    color: #dec994 !important;
}
.bs-page .bs-profile .bs-profile-actions .bs-inline-form button {
    border: 1px solid #6b7e96 !important;
    background: rgba(31, 42, 57, .95) !important;
    color: #edf3fb !important;
}
.bs-page .bs-profile .bs-profile-actions .bs-claim-open:hover,
.bs-page .bs-profile .bs-profile-actions .js-open-modal[data-modal='login']:hover,
.bs-page .bs-profile .bs-profile-actions .bs-inline-form button:hover,
.bs-page .bs-profile .bs-profile-actions .bs-edit-profile:hover {
    background: #2a3748 !important;
}

/* Stronger visual distinction: follower / registered / Weltenpass */
.bs-page .bs-profile {
    overflow: hidden !important;
    border-color: #46566a !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(231, 96, 126, .08), transparent 34%),
        linear-gradient(160deg, rgba(28, 36, 49, .97), rgba(17, 24, 34, .98)) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.42) !important;
}
.bs-page .bs-profile .bs-node-symbol {
    background: #d96e92 !important;
    box-shadow: 0 0 0 4px rgba(217, 110, 146, .16) !important;
}
.bs-page .bs-profile .bs-state {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(214, 150, 178, .34) !important;
    background: rgba(216, 92, 140, .10) !important;
    color: #f0c9da !important;
    font-size: .60rem !important;
    font-weight: 800 !important;
    letter-spacing: .11em !important;
}
.bs-page .bs-profile.is-linked:not(.is-member) {
    border-color: #b79654 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(216, 185, 108, .18), transparent 34%),
        linear-gradient(160deg, rgba(34, 38, 31, .97), rgba(20, 25, 33, .98)) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.42), 0 0 0 1px rgba(216, 185, 108, .24) !important;
}
.bs-page .bs-profile.is-linked:not(.is-member) .bs-node-symbol {
    background: #dbb968 !important;
    box-shadow: 0 0 0 4px rgba(202, 163, 89, .22) !important;
}
.bs-page .bs-profile.is-linked:not(.is-member) .bs-state {
    border-color: rgba(216, 185, 108, .42) !important;
    background: rgba(216, 185, 108, .14) !important;
    color: #f5dfab !important;
}
.bs-page .bs-profile.is-member {
    border-color: #70aef8 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(117, 170, 255, .22), transparent 34%),
        linear-gradient(160deg, rgba(20, 32, 50, .98), rgba(14, 22, 34, .99)) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.46), 0 0 0 1px rgba(117, 170, 255, .30), inset 0 0 0 1px rgba(117,170,255,.08) !important;
}
.bs-page .bs-profile.is-member .bs-node-symbol {
    background: #75aaff !important;
    box-shadow: 0 0 0 4px rgba(74, 149, 238, .22) !important;
}
.bs-page .bs-profile.is-member .bs-state {
    border-color: rgba(117, 170, 255, .48) !important;
    background: rgba(117, 170, 255, .18) !important;
    color: #d7e7ff !important;
}
.bs-page .bs-profile.is-member .bs-profile-caption strong,
.bs-page .bs-profile.is-member .bs-profile-caption span {
    position: relative;
    z-index: 1;
}

/* The blue profile should feel visibly special without becoming noisy. */
.bs-page .bs-profile.is-member::after,
.bs-page .bs-profile.is-linked:not(.is-member)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    opacity: .95;
}
.bs-page .bs-profile.is-linked:not(.is-member)::after {
    background: linear-gradient(90deg, rgba(216,185,108,.15), #dbb968, rgba(216,185,108,.15));
}
.bs-page .bs-profile.is-member::after {
    background: linear-gradient(90deg, rgba(117,170,255,.15), #75aaff, rgba(117,170,255,.15));
}

/* Mobile fallback keeps the compact behavior. */
@media (max-width: 720px) {
    .bs-page .bs-filters {
        width: 100% !important;
        max-width: 100% !important;
    }
    .bs-page .bs-filters #bs-search,
    .bs-page .bs-filters select {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .bs-page .bs-profile .bs-profile-actions .bs-claim-open,
    .bs-page .bs-profile .bs-profile-actions .js-open-modal[data-modal='login'],
    .bs-page .bs-profile .bs-profile-actions .bs-inline-form button,
    .bs-page .bs-profile .bs-profile-actions .bs-edit-profile {
        white-space: normal !important;
    }
}
/* END BOOKSTAGRAM v0.3.4 */
/* BEGIN BOOKSTAGRAM v0.3.6 – spaced Instagram lines and profile link */
/* Match the line legend with the three-stop Instagram network gradient. */
.bs-page .bs-key .bs-key-gray {
    background: linear-gradient(90deg, #f6b151 0%, #e75a96 53%, #8977db 100%) !important;
    width: 31px;
}
/* An obvious, usable Instagram button under enlarged profile screenshots. */
.bs-page dialog.bs-image-dialog #bs-image-caption.bs-image-profile-link,
dialog.bs-image-dialog #bs-image-caption.bs-image-profile-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    min-height: 35px !important;
    margin: 10px auto 3px !important;
    padding: 8px 14px !important;
    border: 1px solid #c2799f !important;
    border-radius: 9px !important;
    background: rgba(85, 40, 67, .38) !important;
    color: #ffe1f1 !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
}
dialog.bs-image-dialog #bs-image-caption.bs-image-profile-link:hover,
dialog.bs-image-dialog #bs-image-caption.bs-image-profile-link:focus-visible {
    background: rgba(117, 49, 90, .58) !important;
    border-color: #f2a6cf !important;
    outline-offset: 3px;
}
dialog.bs-image-dialog #bs-image-caption.bs-image-profile-link:not([href]) {
    pointer-events: none;
    opacity: .65;
}
@media(max-width: 560px) {
    dialog.bs-image-dialog #bs-image-caption.bs-image-profile-link {
        font-size: .81rem !important;
        max-width: 100% !important;
    }
}
/* END BOOKSTAGRAM v0.3.6 */
/* BEGIN BOOKSTAGRAM v0.3.7 – stable network, mobile spine, connection gallery */
/* Keep screenshots fully visible, and reserve their geometry before lazy loading finishes. */
.bs-page .bs-profile .bs-image-open{
  aspect-ratio: 2.5 / 1 !important;
  height:auto !important;
  position:relative !important;
}
.bs-page .bs-profile .bs-image-open img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}
.bs-page .bs-profile:hover{transform:none !important;}
.bs-page .bs-lines{
  contain:paint;
  will-change:auto;
  transform:none !important;
}
dialog.bs-image-dialog{width:min(760px,95vw)!important;max-width:95vw!important;max-height:92dvh!important;}
dialog.bs-image-dialog img{max-height:49dvh!important;}
dialog.bs-image-dialog .bs-connection-panel{margin:14px auto 0;max-width:700px;text-align:left;border-top:1px solid rgba(140,160,190,.23);padding-top:12px;}
dialog.bs-image-dialog .bs-connection-panel h3{font-size:1rem;margin:0 0 5px;color:#f5f6fc;letter-spacing:normal;}
dialog.bs-image-dialog .bs-connection-panel .bs-network-hint,dialog.bs-image-dialog .bs-connection-panel .bs-no-links{font-size:.77rem;color:#aebdce;margin:4px 0 10px;line-height:1.45;}
dialog.bs-image-dialog .bs-connection-panel label{display:block;font-weight:700;font-size:.84rem;color:#e5e9ef;margin:12px 0 5px;}
dialog.bs-image-dialog .bs-connection-panel input{display:block;width:100%;box-sizing:border-box;border-radius:9px;border:1px solid #697890;padding:8px 11px;background:#121c29;color:#fff;font-size:.85rem;}
dialog.bs-image-dialog .bs-connection-chips{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0;}
dialog.bs-image-dialog .bs-connection-chip,dialog.bs-image-dialog .bs-connection-choice{border:1px solid #89689d!important;border-radius:8px!important;background:rgba(71,47,82,.43)!important;color:#f8dff3!important;cursor:pointer;font-weight:650;font-size:.74rem;letter-spacing:normal!important;text-transform:none!important;line-height:1.35;padding:6px 10px;box-shadow:none!important;min-height:32px;}
dialog.bs-image-dialog .bs-connection-choice{border-color:#576f89!important;background:#1c2c3a!important;color:#e0eaf7!important;text-align:left;}
dialog.bs-image-dialog .bs-connection-chip:hover,dialog.bs-image-dialog .bs-connection-choice:hover{filter:brightness(1.18);}
dialog.bs-image-dialog .bs-connection-incoming{margin-top:10px;}
dialog.bs-image-dialog .bs-connection-incoming>p{font-size:.78rem;color:#c3ccda;margin:0;}
dialog.bs-image-dialog .bs-connection-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0;}
dialog.bs-image-dialog .bs-connection-action{font-size:.8rem;margin:8px 0;}
dialog.bs-image-dialog .bs-connection-feedback{font-size:.78rem;min-height:1.3em;color:#dfc994;margin:5px 0!important;}
.bs-page .bs-key .bs-key-personal{background:repeating-linear-gradient(90deg,#9ed3ce 0px,#9ed3ce 8px,transparent 8px,transparent 12px);}
@media(max-width:560px){
 .bs-page .bs-network-canvas:before,.bs-page .bs-profile:before{display:none!important;}
 .bs-page .bs-lines{display:block!important;opacity:.96;}
 dialog.bs-image-dialog .bs-connection-choices{grid-template-columns:1fr;}
 dialog.bs-image-dialog{width:calc(100% - 16px)!important;}
 dialog.bs-image-dialog img{max-height:40dvh!important;}
}
/* END BOOKSTAGRAM v0.3.7 */
/* BEGIN BOOKSTAGRAM v0.3.8 – visible mobile network and real card graph */
/* 1. Remove the unexpected bright screenshot outlines from the normal grid. */
.bs-page .bs-profile .bs-image-open {
 border: 1px solid #40536b !important;
 outline: none !important;
 box-shadow: none !important;
 appearance: none !important;
 -webkit-appearance: none !important;
 background: #0b1018 !important;
}
.bs-page .bs-profile .bs-image-open::before,
.bs-page .bs-profile .bs-image-open::after { content: none !important; display: none !important; }
.bs-page .bs-profile .bs-image-open img {
 border: 0 !important;
 outline: none !important;
 box-shadow: none !important;
 border-radius: 0 !important;
 filter: none !important;
}
/* 2. The desktop SVG must not be clipped by paint containment at the left edge. */
.bs-page .bs-network-canvas { overflow: visible !important; isolation: isolate; padding-left: 30px !important; padding-right: 20px !important; }
.bs-page .bs-network-canvas .bs-lines {
 display: block !important;
 overflow: visible !important;
 contain: none !important;
 clip-path: none !important;
 transform: none !important;
 z-index: 0 !important;
}
.bs-page .bs-network-canvas .bs-grid { position: relative; z-index: 1; }
/* 3. First dot = Bookstagram, second = registered, third = Weltenpass. */
.bs-page .bs-profile .bs-profile-top .bs-node-symbol,
.bs-graph-card .bs-profile-top .bs-node-symbol {
 width: 52px !important;
 min-width: 52px !important;
 height: 14px !important;
 flex: 0 0 52px !important;
 display: inline-flex !important;
 align-items: center !important;
 justify-content: flex-start !important;
 gap: 6px !important;
 background: transparent !important;
 border: 0 !important;
 box-shadow: none !important;
 border-radius: 0 !important;
}
.bs-page .bs-profile .bs-dot,
.bs-graph-card .bs-dot {
 flex: 0 0 10px;
 width: 10px;
 height: 10px;
 display: none;
 border-radius: 50%;
 box-shadow: 0 0 0 4px currentColor;
}
.bs-page .bs-profile .bs-dot.is-visible,
.bs-graph-card .bs-dot.is-visible { display: inline-block !important; }
.bs-page .bs-profile .bs-dot-ig,
.bs-graph-card .bs-dot-ig { background: #e16b99; color: rgba(225,107,153,.17); }
.bs-page .bs-profile .bs-dot-registered,
.bs-graph-card .bs-dot-registered { background: #dfbc72; color: rgba(223,188,114,.17); }
.bs-page .bs-profile .bs-dot-member,
.bs-graph-card .bs-dot-member { background: #76adff; color: rgba(118,173,255,.17); }
/* 4. Mobile: draw a real persistent rail and branches with CSS. A 200-card SVG
   would exceed reliable browser SVG raster sizes. */
@media(max-width:560px){
 .bs-page .bs-network-canvas { padding: 15px 8px 30px 54px !important; overflow: visible !important; }
 .bs-page .bs-network-canvas .bs-lines { display: none !important; }
 .bs-page .bs-network-canvas::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  left: 24px !important;
  top: 28px !important;
  bottom: 56px !important;
  width: 3px !important;
  opacity: .85 !important;
  background: repeating-linear-gradient(to bottom,#f1a447 0px,#e26492 15px,#9674db 30px,#f1a447 45px) !important;
  border-radius: 8px !important;
 }
 .bs-page .bs-profile::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: -30px !important;
  top: 24px !important;
  width: 30px !important;
  height: 3px !important;
  border-radius: 2px !important;
  opacity: .9 !important;
  background: linear-gradient(90deg,#de6b93,#d99a8f,#e16a98) !important;
  pointer-events: none !important;
 }
 .bs-page .bs-profile.is-linked::before {background: #dfbc72 !important;}
 .bs-page .bs-profile.is-member::before {background: #76adff !important;}
}
/* 5. A large but contained movable graph (whole dialog never exceeds viewport). */
dialog.bs-image-dialog.bs-graph-dialog {
 box-sizing: border-box !important;
 width: min(1680px,96vw) !important;
 max-width: 96vw !important;
 height: min(95dvh,1020px) !important;
 max-height: 95dvh !important;
 overflow: hidden !important;
 padding: 14px !important;
 margin: auto !important;
 border-radius: 17px !important;
 background: #151e2a !important;
 display: none;
 flex-direction: column;
 gap: 10px;
}
dialog.bs-image-dialog.bs-graph-dialog[open] { display: flex !important; }
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-toolbar {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 5px 52px 7px 6px;
 min-height: 28px;
 flex-wrap: wrap;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-toolbar strong {
 color: #f8f9fb;
 font-size: .95rem;
 overflow-wrap: anywhere;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-toolbar small {font-size: .75rem; color: #aebbd0;}
dialog.bs-image-dialog.bs-graph-dialog #bs-graph-center {
 width: auto !important;
 min-height: 30px !important;
 padding: 6px 10px !important;
 margin-left: auto;
 border: 1px solid #586980;
 border-radius: 8px;
 background: #202d3d;
 color: #e2eaf7;
 text-transform: none;
 letter-spacing: normal;
 font-size: .75rem;
 font-weight: 650;
 cursor: pointer;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-dialog-close {z-index: 9;top: 10px !important;right: 10px !important;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-viewport {
 box-sizing: border-box !important;
 flex: 1 1 auto;
 width: 100%;
 min-height: 220px;
 overflow: auto !important;
 overscroll-behavior: contain;
 touch-action: pan-x pan-y;
 background: radial-gradient(ellipse at 48% 52%,rgba(98,71,135,.16),transparent 72%),#0d1520;
 border: 1px solid #435367;
 border-radius: 12px;
 cursor: grab;
 scrollbar-width: thin;
 scrollbar-color: #536a85 #172235;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-viewport.is-dragging {cursor: grabbing;user-select: none;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-stage {position: relative;isolation: isolate;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-lines {
 position: absolute !important;
 top: 0;left: 0;
 display: block !important;
 pointer-events: none;
 z-index: 0;
 overflow: visible;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-cards {position: absolute;inset: 0;z-index: 1;pointer-events: none;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-card {
 box-sizing: border-box;
 display: flex;
 flex-direction: column;
 gap: 9px;
 position: absolute;
 height: auto;
 min-height: 254px;
 padding: 13px;
 border-radius: 13px;
 border: 1px solid #576578;
 background: linear-gradient(155deg,#202a37,#141d29);
 box-shadow: 0 12px 28px #0007;
 pointer-events: auto;
 text-align: left;
 color: #eef4ff;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-centre {
 min-height: 410px;
 padding: 18px;
 border-color: #cc9d6f;
 background: linear-gradient(150deg,#242e3b,#182333);
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-card.is-linked {
 border-color: #bba068;
 box-shadow: 0 12px 30px #0008,0 0 0 1px #dbb96833;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-card.is-member {
 border-color: #75adff;
 box-shadow: 0 13px 32px #0008,0 0 0 1px #75adff55;
 background: linear-gradient(150deg,#203047,#101c2a);
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-card .bs-profile-top {min-height: 16px;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-card .bs-state {
 font-size: .62rem;
 padding: 3px 8px;
 margin-left: auto;
 border: 1px solid #885f82;
 border-radius: 20px;
 background: #36283a;
 color: #f1c6d9;
 text-transform: uppercase;
 letter-spacing: .07em;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-card.is-linked .bs-state {color: #e9ce8e;border-color: #94713b;background:#322c22;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-card.is-member .bs-state {color: #c9e2ff;border-color: #608dcd;background: #233f61;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-picture {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
 width: 100%;
 border: 1px solid #455a73;
 border-radius: 8px;
 overflow: hidden;
 display: block;
 line-height: 0;
 background: #070e17;
}
dialog.bs-image-dialog.bs-graph-dialog button.bs-graph-picture {cursor: pointer;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-picture img {
 box-sizing: border-box !important;
 display: block !important;
 border: 0 !important;
 box-shadow: none !important;
 outline: 0 !important;
 margin: 0 !important;
 padding: 0 !important;
 width: 100% !important;
 max-width: 100% !important;
 max-height: none !important;
 height: auto !important;
 aspect-ratio: 2.5 / 1;
 object-fit: contain;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-centre .bs-graph-picture img {
 aspect-ratio: 2.5 / 1;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-caption {display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-caption strong {font-size: .90rem;color: #fff;line-height: 1.28;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-centre .bs-graph-caption strong {font-size: 1.15rem;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-caption span {font-size: .77rem;color: #adbfd2;line-height: 1.25;}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-instagram-link,
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-choose {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 align-self: flex-start;
 text-decoration: none !important;
 border: 1px solid #9d6387;
 border-radius: 8px;
 min-height: 29px;
 padding: 6px 10px;
 color: #f6d0e7 !important;
 background: #322536;
 font-size: .75rem;
 font-weight: 700;
 text-transform: none;
 letter-spacing: normal;
 cursor: pointer;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-graph-choose {
 background: #1f2c3d;
 color: #dceaff !important;
 border-color: #49607a;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-panel {
 box-sizing: border-box;
 flex: 0 0 auto;
 max-height: min(21dvh,195px);
 min-height: 40px;
 overflow-y: auto;
 padding: 7px 8px 3px !important;
 margin: 0 !important;
 max-width: none !important;
 border-top: 1px solid #3b4e64;
 text-align: left;
 scrollbar-width: thin;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-panel h3 {font-size: .9rem !important;margin: 0 0 7px!important;}
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-editor {max-width: 780px;}
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-editor input {
 box-sizing: border-box;
 display: block;
 width: 100% !important;
 min-height: 35px;
 padding: 7px 10px;
 border-radius: 8px;
 background: #101b2a;
 color: #f2f6ff;
 border: 1px solid #5e718a;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-choices {
 display: grid;
 grid-template-columns: repeat(3,minmax(0,1fr));
 gap: 6px;
 margin: 8px 0;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-choice,
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-action {
 font-size: .72rem;
 border: 1px solid #586e89 !important;
 border-radius: 7px !important;
 background: #1a2839 !important;
 color: #e5eefc !important;
 padding: 7px 10px !important;
 min-height: 31px;
 line-height: 1.25;
 text-transform: none !important;
 text-align: left;
 white-space: normal;
 overflow-wrap:anywhere;
 cursor: pointer;
}
dialog.bs-image-dialog.bs-graph-dialog .bs-connection-feedback {font-size:.75rem;min-height:0;margin:3px 0!important;}
@media (max-width:680px){
 dialog.bs-image-dialog.bs-graph-dialog {
  width: calc(100vw - 10px) !important;
  max-width: calc(100vw - 10px) !important;
  height: calc(100dvh - 16px) !important;
  max-height: calc(100dvh - 16px) !important;
  padding: 8px !important;
  border-radius: 12px !important;
 }
 dialog.bs-image-dialog.bs-graph-dialog .bs-graph-toolbar {gap:5px;padding:5px 39px 5px 4px;}
 dialog.bs-image-dialog.bs-graph-dialog .bs-graph-toolbar strong{font-size:.82rem;}
 dialog.bs-image-dialog.bs-graph-dialog .bs-graph-toolbar small{display:none;}
 dialog.bs-image-dialog.bs-graph-dialog .bs-graph-viewport{min-height:260px;}
 dialog.bs-image-dialog.bs-graph-dialog .bs-graph-centre{min-height:298px;}
 dialog.bs-image-dialog.bs-graph-dialog .bs-connection-choices{grid-template-columns:repeat(2,minmax(0,1fr));}
 dialog.bs-image-dialog.bs-graph-dialog .bs-connection-panel{max-height:24dvh;}
}
@media (prefers-reduced-motion:reduce){
 dialog.bs-image-dialog.bs-graph-dialog *, .bs-page .bs-profile{animation:none!important;transition:none!important;}
}
/* END BOOKSTAGRAM v0.3.8 */
/* BEGIN BOOKSTAGRAM v0.3.9 – targeted interface stabilization */
/* 1. Override old status-pill backgrounds, including linked/member specificity.
   The container must NEVER become a long colored rectangle. */
.bs-page .bs-profile .bs-profile-top .bs-node-symbol,
.bs-page .bs-profile.is-linked .bs-profile-top .bs-node-symbol,
.bs-page .bs-profile.is-member .bs-profile-top .bs-node-symbol,
dialog.bs-graph-dialog .bs-graph-card .bs-profile-top .bs-node-symbol,
dialog.bs-graph-dialog .bs-graph-card.is-linked .bs-profile-top .bs-node-symbol,
dialog.bs-graph-dialog .bs-graph-card.is-member .bs-profile-top .bs-node-symbol {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 15px !important;
  min-height: 15px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bs-page .bs-profile .bs-profile-top .bs-node-symbol::before,
.bs-page .bs-profile .bs-profile-top .bs-node-symbol::after,
dialog.bs-graph-dialog .bs-profile-top .bs-node-symbol::before,
dialog.bs-graph-dialog .bs-profile-top .bs-node-symbol::after {
  content: none !important;
  display: none !important;
}
.bs-page .bs-profile .bs-dot,
dialog.bs-graph-dialog .bs-graph-card .bs-dot {
  display: none !important;
  box-sizing: border-box !important;
  width: 10px !important;
  min-width: 10px !important;
  height: 10px !important;
  min-height: 10px !important;
  flex: 0 0 10px !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 3px currentColor !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bs-page .bs-profile .bs-dot.is-visible,
dialog.bs-graph-dialog .bs-graph-card .bs-dot.is-visible {display: inline-block !important;}
.bs-page .bs-profile .bs-dot-ig,
dialog.bs-graph-dialog .bs-graph-card .bs-dot-ig {background:#e16b99 !important;color:rgba(225,107,153,.20) !important;}
.bs-page .bs-profile .bs-dot-registered,
dialog.bs-graph-dialog .bs-graph-card .bs-dot-registered {background:#dfbc72 !important;color:rgba(223,188,114,.20) !important;}
.bs-page .bs-profile .bs-dot-member,
dialog.bs-graph-dialog .bs-graph-card .bs-dot-member {background:#76adff !important;color:rgba(118,173,255,.20) !important;}

/* 2. Screenshot frames: no inherited white focus corner or artificial aspect cropping.
   Keep the image's native width:height ratio, especially on side cards. */
.bs-page .bs-profile .bs-image-open,
dialog.bs-graph-dialog .bs-graph-card .bs-graph-picture {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  border-radius: 8px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  line-height: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
}
.bs-page .bs-profile .bs-image-open::before,
.bs-page .bs-profile .bs-image-open::after,
dialog.bs-graph-dialog .bs-graph-card .bs-graph-picture::before,
dialog.bs-graph-dialog .bs-graph-card .bs-graph-picture::after {
  content:none !important;
  display:none !important;
  border:0 !important;
  box-shadow:none !important;
}
.bs-page .bs-profile .bs-image-open img,
dialog.bs-graph-dialog .bs-graph-card .bs-graph-picture img,
dialog.bs-graph-dialog .bs-graph-card.bs-graph-centre .bs-graph-picture img {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  border-radius: 0 !important;
}
/* v0.3.7 deliberately reserves fixed height in the grid to avoid reflow.
   Keep that reservation there, unlike the detached graph card. */
.bs-page .bs-profile .bs-image-open {aspect-ratio: 2.5 / 1 !important;}
.bs-page .bs-profile .bs-image-open img {position:absolute !important;inset:0 !important;height:100% !important;}
.bs-page .bs-profile .bs-image-open:focus-visible,
dialog.bs-graph-dialog .bs-graph-card .bs-graph-picture:focus-visible {
  outline: 2px solid #e3b96d !important;
  outline-offset: 3px !important;
}

/* 3. Same button typeface, casing and spacing across the entire Bookstagram UI. */
.bs-page button,
.bs-page .bs-button,
.bs-page .bs-profile-actions a,
.bs-page .bs-profile-actions button,
dialog.bs-graph-dialog button,
dialog.bs-graph-dialog .bs-graph-instagram-link {
  font-family: 'Source Sans Pro', Arial, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 650 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  font-style: normal !important;
  text-shadow: none !important;
}
.bs-page .bs-profile-actions button,
.bs-page .bs-profile-actions a,
dialog.bs-graph-dialog .bs-graph-choose,
dialog.bs-graph-dialog .bs-graph-instagram-link {
  padding: 7px 10px !important;
  min-height: 32px !important;
  width: auto !important;
  line-height: 1.2 !important;
}

/* 4. Detached graph: disable browser scroll anchoring/smooth scrolling while
   dragging its native scrollbar; keep the stage size fixed between paints. */
dialog.bs-graph-dialog .bs-graph-viewport {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  overflow-anchor: none !important;
  scrollbar-gutter: stable !important;
  overscroll-behavior: contain !important;
}
dialog.bs-graph-dialog .bs-graph-stage,
dialog.bs-graph-dialog .bs-graph-cards,
dialog.bs-graph-dialog .bs-graph-card {
  overflow-anchor: none !important;
}

/* 5. Fixed scroll-to-top action, visible only after scrolling down. */
#bs-back-to-top {
  position:fixed !important;
  right: 22px !important;
  bottom: 92px !important;
  z-index: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  padding: 10px 13px !important;
  width: auto !important;
  min-height: 39px !important;
  border:1px solid #c29b5d !important;
  border-radius: 999px !important;
  background:#192332 !important;
  color:#f6e4bf !important;
  box-shadow:0 5px 20px rgba(0,0,0,.38) !important;
  font-family:'Source Sans Pro',Arial,sans-serif !important;
  font-size:.82rem !important;
  font-weight:700 !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  cursor:pointer !important;
}
#bs-back-to-top[hidden],body:has(dialog.bs-graph-dialog[open]) #bs-back-to-top {display:none !important;}
#bs-back-to-top:hover {background:#29374a !important;}
#bs-back-to-top:focus-visible {outline:2px solid #f2c77b !important;outline-offset:3px;}

/* 6. Mobile vertical network: former branches disappeared because their parent
   profile had overflow:hidden. Put the spine on the grid and branches on cards. */
@media(max-width:560px){
  .bs-page .bs-network-canvas::before {display:none !important;content:none !important;}
  .bs-page .bs-network-canvas {overflow:visible !important;padding-left:54px !important;}
  .bs-page .bs-grid {position:relative !important;isolation:isolate !important;overflow:visible !important;}
  .bs-page .bs-grid::before {
    content:'' !important;
    display:block !important;
    position:absolute !important;
    top:24px !important;
    bottom:24px !important;
    left:-27px !important;
    width:4px !important;
    z-index:0 !important;
    border-radius:8px !important;
    opacity:.9 !important;
    background:linear-gradient(180deg,#e7a34f,#dc6399 42%,#977ce3 78%,#e7a34f) !important;
    pointer-events:none !important;
  }
  .bs-page .bs-profile {overflow:visible !important;z-index:1 !important;}
  .bs-page .bs-profile::before,
  .bs-page .bs-profile.is-linked::before,
  .bs-page .bs-profile.is-member::before {
    content:'' !important;
    display:block !important;
    position:absolute !important;
    left:-27px !important;
    top:23px !important;
    width:47px !important;
    height:3px !important;
    z-index:2 !important;
    opacity:1 !important;
    border-radius:3px !important;
    pointer-events:none !important;
    background:linear-gradient(90deg,#e7a34f,#dc6399,#977ce3) !important;
  }
  .bs-page .bs-profile.is-linked::before {background:#dfbc72 !important;}
  .bs-page .bs-profile.is-member::before {background:#76adff !important;}
  .bs-page .bs-profile .bs-profile-top {position:relative !important;z-index:3 !important;}
  #bs-back-to-top {right:12px !important;bottom:86px !important;padding:9px 12px !important;}
}
/* END BOOKSTAGRAM v0.3.9 */

/* BEGIN BOOKSTAGRAM v0.3.9.1 mobile direct card-to-card links */
/* A single centered, subtly wavy connection behind the cards replaces the
   left-hand rail/branches. No SVG spanning the ~200-profile page. */
@media (max-width: 560px) {
  .bs-page .bs-network-canvas,
  body.bs-focus-mode .bs-page .bs-network-canvas {
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow: visible !important;
  }
  .bs-page .bs-network-canvas::before,
  .bs-page .bs-network-canvas:before {
    display: none !important;
    content: none !important;
  }
  .bs-page .bs-network-canvas .bs-lines,
  body.bs-focus-mode .bs-page .bs-network-canvas .bs-lines {
    display: none !important;
  }
  .bs-page .bs-network-canvas .bs-grid,
  body.bs-focus-mode .bs-page .bs-network-canvas .bs-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 36px !important;
    padding: 0 !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
  }
  /* The line lies BEHIND the opaque cards: only the gap between cards shows it.
     The path is tiled, avoiding long SVG precision/performance problems. */
  .bs-page .bs-network-canvas .bs-grid::before,
  body.bs-focus-mode .bs-page .bs-network-canvas .bs-grid::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 16px !important;
    bottom: 16px !important;
    left: 50% !important;
    width: 44px !important;
    height: auto !important;
    transform: translateX(-50%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: .87 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 180' width='44' height='180'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23e6a04e'/%3E%3Cstop offset='.48' stop-color='%23dc6399'/%3E%3Cstop offset='1' stop-color='%239778dc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M22 0 C 11 28, 33 59, 22 90 S 11 151, 22 180' fill='none' stroke='url(%23g)' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-position: center top !important;
    background-repeat: repeat-y !important;
    background-size: 44px 180px !important;
  }
  .bs-page .bs-network-canvas .bs-grid > .bs-profile {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  /* Ensure that no old horizontal branch is left visible beside any card. */
  .bs-page .bs-network-canvas .bs-grid > .bs-profile::before,
  .bs-page .bs-network-canvas .bs-grid > .bs-profile.is-linked::before,
  .bs-page .bs-network-canvas .bs-grid > .bs-profile.is-member::before {
    content: none !important;
    display: none !important;
  }
}
/* END BOOKSTAGRAM v0.3.9.1 */
/* BEGIN BOOKSTAGRAM v0.3.9.2 – fixed single-profile view */
/* A profile with no outgoing connections is a normal dialog, not an empty graph. */
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone {
    box-sizing: border-box !important;
    width: min(700px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    height: fit-content !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    gap: 10px !important;
}
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-description,
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-center,
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-lines {display: none !important;}
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-viewport {
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    scroll-behavior: auto !important;
    scrollbar-width: none !important;
    scrollbar-gutter: auto !important;
    cursor: default !important;
    touch-action: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-stage {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    contain: none !important;
}
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-cards {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
}
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-cards > .bs-graph-centre {
    box-sizing: border-box !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(100%, 610px) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
}
dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-connection-panel {
    flex: 0 0 auto !important;
    max-height: min(30dvh, 220px) !important;
}
/* Retain the v0.3.9 scroll anchoring protection in the connected-graph mode. */
dialog.bs-image-dialog.bs-graph-dialog:not(.bs-standalone) #bs-graph-stage {
    contain: layout paint !important;
}
@media(max-width:680px){
    dialog.bs-image-dialog.bs-graph-dialog.bs-standalone {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: fit-content !important;
        max-height: calc(100dvh - 18px) !important;
        padding: 10px !important;
    }
    dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-graph-viewport {min-height: 0 !important;}
    dialog.bs-image-dialog.bs-graph-dialog.bs-standalone #bs-connection-panel {max-height: min(30dvh, 200px) !important;}
}
/* END BOOKSTAGRAM v0.3.9.2 */
