.bosky-index-page .bosky-index-group.bkib-ready{margin-top:22px}
.bkib-intro{font-size:13px;color:#637a89;margin:5px 0 14px}
.bkib-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
@media(min-width:720px){.bkib-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
.bkib-card{position:relative;min-width:0;overflow:hidden;border:1px solid #dce8ec;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(28,62,74,.06)}
.bkib-card-link{display:block!important;min-width:0!important;text-decoration:none!important;color:#173a4a!important;border:0!important;padding:0!important;background:transparent!important}
.bkib-image{height:auto;aspect-ratio:4/3;background:#f2f7f8;overflow:hidden;display:flex;align-items:center;justify-content:center}
.bkib-image img{display:block;width:100%;height:100%;object-fit:cover}
.bkib-placeholder{background:linear-gradient(140deg,#eff8f7,#d8ecf1)}.bkib-icon{font-size:43px;opacity:.65}
.bkib-card-text{padding:10px 11px 11px;min-width:0}.bkib-breed-name{display:block;font-size:14px;font-weight:800;line-height:1.3;white-space:normal;overflow-wrap:anywhere}.bkib-breed-meta{font-size:11px;color:#637e89;margin-top:5px;min-height:17px}
.bkib-edit{display:block!important;width:calc(100% - 20px);margin:0 10px 10px!important;padding:7px 10px!important;border:1px solid #91bfc9!important;border-radius:9px!important;background:#e8f7fa!important;color:#165469!important;font-size:12px!important;font-weight:800!important}
.bkib-hidden{opacity:.55}.bkib-hidden-label{display:block;color:#873e22;font-size:10px;margin:0 10px 10px}.bkib-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:13px 0}.bkib-count{font-size:12px;color:#78909b}.bkib-more{border:1px solid #dbe9ec!important;border-radius:10px!important;background:#f3f8fa!important;padding:10px 13px!important;font-size:13px!important;font-weight:700!important;color:#173a4a!important}
.bkib-modal-open{overflow:hidden}.bkib-overlay[hidden]{display:none!important}.bkib-overlay{position:fixed;inset:0;background:rgba(9,26,36,.65);z-index:1000005;display:flex;justify-content:center;align-items:center;padding:15px}
.bkib-modal{background:#fff;border-radius:18px;width:min(630px,100%);max-height:92dvh;overflow:auto;box-shadow:0 15px 48px rgba(0,0,0,.2);color:#173a4a}
.bkib-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px;background:#f5fafb;border-bottom:1px solid #dae7ea}.bkib-modal-head small{font-size:11px;color:#a07b32;font-weight:800;letter-spacing:.08em}.bkib-modal-head h3{margin:2px 0 0;font-size:21px;color:#14374a}.bkib-close{width:40px;height:40px;border:1px solid #d9e5e8;border-radius:50%;background:#fff;font-size:26px;line-height:1;flex-shrink:0}
.bkib-body{padding:18px}.bkib-tip{font-size:12px;color:#667e88;line-height:1.5}.bkib-modal-grid{display:grid;gap:16px}.bkib-preview{max-width:100%;display:grid;gap:6px}.bkib-preview img{display:block;width:100%;height:180px;object-fit:cover;border-radius:12px}.bkib-preview small{color:#69808a;font-size:12px}.bkib-no-photo{height:100px;border-radius:12px;background:#e4f2f5;display:flex;align-items:center;justify-content:center;font-size:37px}
.bkib-facts{display:grid;gap:12px}.bkib-weight{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bkib-field{display:grid;gap:5px;min-width:0}.bkib-label{font-weight:800;font-size:12px}.bkib-field input,.bkib-field select,.bkib-field textarea,.bkib-alias-form input{width:100%;box-sizing:border-box;min-height:39px;padding:8px 10px;border:1px solid #cfdee3;border-radius:9px;background:#fff;color:#173a4a;font:inherit;font-size:14px}
.bkib-alias-section{margin:17px 0;border-top:1px solid #e1ecef;padding-top:14px}.bkib-alias-section h4{font-size:15px;margin:0 0 10px}.bkib-alias-row{display:flex;gap:7px;align-items:center;justify-content:space-between;border-bottom:1px solid #e9f0f2;padding:8px 0;font-size:13px}.bkib-alias-row span{flex:1;min-width:0;overflow-wrap:anywhere}.bkib-alias-row button{font-size:11px;border:1px solid #d5e6eb;border-radius:8px;padding:6px 8px;background:#f2f8fa}.bkib-alias-row .bkib-remove{color:#8a3d3d}
.bkib-alias-form{display:flex;gap:8px;align-items:end;margin-top:12px}.bkib-alias-form label{font-weight:700;font-size:12px;flex:1}.bkib-alias-form button,.bkib-save{background:#069ab3!important;color:#fff!important;border:0!important;border-radius:9px!important;padding:11px!important;font-size:13px!important;font-weight:800!important}.bkib-save-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.bkib-hide{border:1px solid #e0b9aa;border-radius:9px;background:#fff7f3;color:#8b4e32;padding:10px;font-weight:700;font-size:13px}.bkib-status{font-size:12px;min-height:18px;color:#277b5c}.bkib-error{color:#b04332!important}.bkib-note{font-size:12px;color:#7a8d95}

.bkib-count-pill{display:inline-block;margin-top:5px;padding:2px 6px;background:#eaf3f5;color:#627f88;border-radius:20px;font-size:10px;font-weight:700}
.bosky-index-page.bkib-active .bk-si2{display:none!important}

/* v0.1.1: compact public actions, real navigational anchors and private corner editor. */
.bkib-card-photo-link{display:block!important;text-decoration:none!important;padding:0!important;border:0!important;position:relative}
.bkib-card-text{padding:10px 10px 13px}
.bkib-card-text .bkib-breed-name{display:block!important;text-decoration:none!important;color:#143a4a!important;font-weight:800!important;font-size:14px!important;line-height:1.3;margin:0 0 10px}
.bkib-actions{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.bkib-actions .bkib-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;flex:1 1 auto;border:1px solid #cbdfe4!important;background:#f3fafb!important;color:#17627b!important;padding:7px 4px!important;border-radius:8px!important;font:700 10px/1.15 system-ui,sans-serif!important;text-decoration:none!important;min-height:31px;cursor:pointer}
.bkib-actions .bkib-action:focus-visible,.bkib-card-photo-link:focus-visible,.bkib-breed-name:focus-visible,.bkib-edit-overlay:focus-visible{outline:3px solid #268ba6!important;outline-offset:2px}
.bkib-actions .bkib-guide{color:#1d695d!important;background:#eaf7f1!important}
.bkib-actions .bkib-guide-pending{color:#81989c!important;background:#f4f7f8!important;cursor:default;opacity:.75}
.bkib-actions .bkib-action:disabled{opacity:.55;cursor:wait}
.bkib-edit-overlay{position:absolute;top:8px;right:8px;z-index:2;width:33px!important;height:33px!important;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;background:#0b91ad!important;color:white!important;box-shadow:0 1px 6px #0005!important;font:800 21px/1 system-ui,sans-serif!important}
.bkib-card-status{display:block;padding:0 9px 8px;color:#22795f;font-size:10px;line-height:1.3}
.bkib-card-status:empty{display:none}
@media(max-width:370px){.bkib-actions .bkib-action{font-size:9px!important;padding-inline:3px!important}}


/* v0.1.2 — Index/Catalogue visual parity. One presentation-only update.
   Catalogue owner reference: .bosky-cat-grid (3 across/7px mobile) and
   .bosky-cat-media (3:4 image). Never share inventory/DB or duplicate renderer. */
.bosky-index-page[data-bosky-index-v2]{max-width:1100px}
.bosky-index-page .bkib-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch;
}
.bosky-index-page .bkib-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  border-radius:13px;
}
.bosky-index-page .bkib-card-photo-link{flex:0 0 auto;min-width:0}
.bosky-index-page .bkib-image{
  width:100%;
  aspect-ratio:3/4;
  height:auto;
  position:relative;
}
.bosky-index-page .bkib-image img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
}
.bosky-index-page .bkib-card-text{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
}
.bosky-index-page .bkib-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  margin-top:auto;
  min-width:0;
}
.bosky-index-page .bkib-actions .bkib-action{
  width:100%;min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  text-align:center;
}
.bosky-index-page .bkib-actions .bkib-guide,
.bosky-index-page .bkib-actions .bkib-guide-pending{
  grid-column:1/-1;
}
@media(max-width:900px){
  /* Use the same narrow outer gutter as Catalogue. Change Index layout only. */
  .bosky-index-page[data-bosky-index-v2]{
    box-sizing:border-box;
    width:calc(100vw - 16px);
    max-width:none;
    margin-left:calc(50% - 50vw + 8px);
    margin-right:0;
    padding-left:0;
    padding-right:0;
  }
}
@media(max-width:650px){
  .bosky-index-page .bkib-grid{gap:7px!important}
  .bosky-index-page .bkib-card{border-radius:11px}
  .bosky-index-page .bkib-card-text{padding:6px 5px 7px}
  .bosky-index-page .bkib-card-text .bkib-breed-name{
    font-size:10px!important;
    line-height:1.25!important;
    min-height:2.5em;
    margin:0 0 5px;
  }
  .bosky-index-page .bkib-actions{gap:4px}
  .bosky-index-page .bkib-actions .bkib-action{
    min-height:28px!important;
    padding:5px 1px!important;
    font:700 clamp(8px,2.25vw,10px)/1.15 system-ui,sans-serif!important;
    border-radius:7px!important;
  }
  .bosky-index-page .bkib-edit-overlay{
    top:6px;right:6px;
    width:29px!important;height:29px!important;
    font-size:20px!important;
  }
  .bosky-index-page .bkib-card-status{padding:0 5px 6px;font-size:9px}
  .bosky-index-page .bkib-hidden-label{font-size:9px;line-height:1.3;margin:0 5px 6px}
}


/* v0.1.3: customer-friendly no-available-share popup. Index-only; no share or data changes. */
.bkib-request-open{overflow:hidden}
.bkib-request-overlay[hidden]{display:none!important}
.bkib-request-overlay{position:fixed;inset:0;z-index:1000006;background:rgba(12,30,41,.65);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.bkib-request-dialog{width:min(420px,100%);max-height:90dvh;overflow:auto;box-sizing:border-box;background:#fff;color:#173a4a;border-radius:16px;box-shadow:0 16px 50px rgba(0,0,0,.22)}
.bkib-request-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4fafb;padding:16px 18px;border-bottom:1px solid #dbe9ed}
.bkib-request-title{font-size:18px;line-height:1.3;margin:0!important;color:#14394a}
.bkib-request-close{flex:none;display:flex;align-items:center;justify-content:center;width:35px!important;height:35px!important;padding:0!important;border:1px solid #d7e5e8!important;border-radius:50%!important;background:#fff!important;color:#174254!important;font-size:24px!important;line-height:1!important;cursor:pointer}
.bkib-request-body{padding:17px 18px 19px}
.bkib-request-message{font-size:15px;line-height:1.55;margin:0 0 18px!important;color:#3c5562}
.bkib-request-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bkib-request-home{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 14px;border-radius:9px;background:#098faa!important;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:800}
.bkib-request-dismiss{min-height:42px;padding:10px 14px!important;border:1px solid #d8e6e9!important;border-radius:9px!important;background:#f3f8f9!important;color:#245061!important;font-size:13px!important;font-weight:700!important;cursor:pointer}
.bkib-request-overlay a:focus-visible,.bkib-request-overlay button:focus-visible{outline:3px solid #0b91ad!important;outline-offset:2px}
@media(max-width:360px){.bkib-request-message{font-size:14px}}

/* 0.1.4 — Index-linked vocabulary review, B/M/D only. */
.bkib-keywords-title{font-size:16px;color:#184b5d;margin:12px 0 0;border-top:1px solid #dce9ed;padding-top:13px}
.bkib-keywords-tip,.bkib-keyword-status{font-size:12px;line-height:1.5;color:#687e88;margin:0}
.bkib-keyword-status{background:#f0f8f8;border-radius:8px;padding:9px}
.bkib-field textarea.bkib-unsaved-draft{border-color:#d5a04c;background:#fffaf0}
.bkib-observed-details{margin:9px 0;border:1px solid #dce9ed;border-radius:9px;padding:9px 11px;font-size:12px}
.bkib-observed-details summary{cursor:pointer;font-weight:800;color:#176582}
.bkib-observed-group{margin-top:12px;display:grid;gap:5px}
.bkib-observed-row{display:grid;gap:2px;border-bottom:1px solid #ecf1f3;padding:5px 0}
.bkib-observed-row small,.bkib-observed-group>small{color:#718690;line-height:1.4}

/* v0.1.5 — compact B/M/D breed +Edit; no change to public tiles or stored legacy fields. */
.bkib-compact-overlay{padding:9px;box-sizing:border-box}
.bkib-compact-modal{width:min(470px,100%);max-height:min(90dvh,810px);overscroll-behavior:contain}
.bkib-compact-modal .bkib-modal-head{padding:10px 13px;gap:8px}
.bkib-compact-modal .bkib-modal-head h3{margin:0;font-size:18px;line-height:1.2;overflow-wrap:anywhere}
.bkib-head-actions{display:flex;align-items:center;gap:7px;flex:none}
.bkib-compact-modal .bkib-close{height:32px;width:32px;font-size:22px;display:grid;place-items:center;padding:0}
.bkib-compact-modal .bkib-hide{height:32px;width:32px;display:grid;place-items:center;padding:0;font-size:16px;cursor:pointer}
.bkib-compact-modal .bkib-body{padding:11px 13px 0}
.bkib-compact-modal .bkib-modal-grid{gap:0}
.bkib-compact-modal .bkib-facts{gap:8px}
.bkib-compact-modal .bkib-field{gap:3px}
.bkib-compact-modal .bkib-label{font-size:12px;line-height:1.3}
.bkib-compact-modal .bkib-field select{min-height:35px;padding:6px 9px}
.bkib-compact-modal .bkib-field textarea{min-height:47px;max-height:140px;padding:6px 8px;line-height:1.3;resize:vertical;font-size:13px}
.bkib-compact-modal .bkib-alias-section{margin:10px 0 0;padding-top:10px}
.bkib-compact-modal .bkib-alias-section h4{font-size:13px;margin:0 0 5px;line-height:1.3}
.bkib-compact-modal .bkib-alias-row{padding:5px 0;font-size:12px;gap:5px}
.bkib-compact-modal .bkib-alias-row button{min-width:27px;min-height:27px;padding:3px 5px}
.bkib-compact-modal .bkib-alias-form{margin-top:8px;gap:6px}
.bkib-compact-modal .bkib-alias-form input{flex:1;min-width:0;min-height:35px;padding:6px 8px;font-size:13px}
.bkib-compact-modal .bkib-alias-form button{min-height:35px;padding:6px 12px!important}
.bkib-compact-modal .bkib-save-actions{position:sticky;bottom:0;z-index:1;background:#fff;padding:9px 0 11px;margin-top:8px;border-top:1px solid #e0e9ec;display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
.bkib-compact-modal .bkib-save{min-width:95px;padding:9px 14px!important}
.bkib-compact-modal .bkib-status{min-width:0;flex:1;margin:0;font-size:11px;line-height:1.35}
.bkib-compact-modal .bkib-status:empty{display:none}
@media(max-width:360px){.bkib-compact-modal .bkib-modal-head{padding:9px 11px}.bkib-compact-modal .bkib-body{padding:9px 11px 0}}

/* v0.1.6 — profile editing space and optional keyword mappings. */
.bkib-compact-modal .bkib-field textarea[name="traits"]{min-height:144px;max-height:330px;line-height:1.45;resize:vertical}
.bkib-compact-modal details.bkib-alias-section{display:block;margin:11px 0 0;padding:0;border-top:1px solid #dce9ed}
.bkib-compact-modal details.bkib-alias-section > summary{display:list-item;list-style:disclosure-closed inside;cursor:pointer;padding:11px 3px;color:#184b5d;font-size:13px;font-weight:700;line-height:1.4;user-select:none}
.bkib-compact-modal details.bkib-alias-section[open] > summary{list-style:disclosure-open inside}
.bkib-compact-modal details.bkib-alias-section > summary:focus-visible{outline:2px solid #069ab3;outline-offset:2px;border-radius:4px}
.bkib-compact-modal .bkib-alias-panel{padding:0 2px 6px}

.bkib-size-options{display:flex;flex-wrap:wrap;gap:6px}.bkib-size-choice{display:inline-flex;align-items:center;gap:5px;border:1px solid #c9dfe2;border-radius:16px;padding:7px 10px;font-size:13px;cursor:pointer}.bkib-size-choice input{width:15px!important;min-height:15px!important;margin:0;accent-color:#009db3}

/* Designer cross and editorial research controls, Index only */
.bkib-designer-section {margin:1.3rem 0;padding:10px 2px 18px;border-top:1px solid #d6e7e8}
.bkib-designer-section[hidden]{display:none!important}
.bkib-designer-title{font-size:1.06rem;margin:8px 0 12px;color:#15434b}
.bkib-designer-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.bkib-designer-create,.bkib-research-preview,.bkib-research-apply,.bkib-manage-cross,.bkib-parent-edit{border:1px solid #9dc3c8;border-radius:10px;padding:8px 12px;background:#e9f8f7;color:#12414b;font:inherit;cursor:pointer}
.bkib-designer-create{background:#0b9fb3;color:white;border:0}
.bkib-research-panel{border:1px solid #d9e7e9;border-radius:9px;padding:7px 10px;max-width:100%;flex:1 1 260px}
.bkib-research-panel summary{cursor:pointer;font-weight:600;font-size:.84rem;color:#265a60}
.bkib-research-panel button{margin:8px 5px 4px 0;font-size:.84rem}
.bkib-research-status{font-size:.8rem;margin:4px 0;line-height:1.45}
.bkib-cross-parents{font-size:.76rem;line-height:1.25;color:#44616a;margin:0 0 4px}
.bkib-pending-cross{display:flex;flex-direction:column;gap:5px;background:#eef7f7;border:1px dashed #a7cbce;border-radius:12px;padding:12px;min-height:130px}
.bkib-pending-label{color:#ab6d22}
.bkib-designer-overlay{z-index:100005!important}
.bkib-designer-form{background:white;width:min(94vw,520px);max-height:86vh;overflow:auto;margin:auto;padding:20px;border-radius:18px;display:grid;gap:15px;color:#163f47}
.bkib-designer-form h3{font-size:1.12rem;margin:0}
.bkib-designer-form label:not(.bkib-form-check){display:grid;gap:5px;font-weight:600}
.bkib-designer-form select,.bkib-designer-form input[type=text],.bkib-designer-form input[name=breed_name]{width:100%;min-height:42px;border:1px solid #c2d5d5;border-radius:9px;padding:8px;background:white;color:#193f49}
.bkib-designer-form .bkib-form-check{display:flex;align-items:center;gap:10px;font-weight:600}
.bkib-designer-form .bkib-parent-fields{display:grid;gap:10px}
.bkib-designer-form .bkib-parent-fields[hidden]{display:none!important}
.bkib-designer-guidance,.bkib-designer-message{font-size:.84rem;line-height:1.4;margin:0}
.bkib-designer-footer{display:flex;flex-wrap:wrap;gap:10px}
.bkib-designer-footer button{border-radius:9px;border:1px solid #afc8cb;padding:8px 13px;cursor:pointer;background:white;color:#153e47}
.bkib-designer-footer button[type=submit]{background:#009fb1;color:white;border-color:#009fb1}

.bkib-pending-review{color:#815d19;border-radius:9px;background:#fff5d7;padding:8px 10px;font-size:.77rem;margin:7px 0 3px;line-height:1.35}

.bkib-breed-research{border:1px solid #d6e4e6;border-radius:9px;padding:7px 10px;margin-top:9px;font-size:.87rem}
.bkib-breed-research summary{font-size:.87rem;color:#22525b;font-weight:600;cursor:pointer}
.bkib-breed-research-body{display:grid;gap:9px;margin:9px 0 3px}
.bkib-research-row{display:grid;gap:4px;border-top:1px solid #e2e9eb;padding-top:8px}
.bkib-research-row .bkib-research-label{font-weight:700;color:#2b535a}
.bkib-research-row .bkib-research-value{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.83rem;line-height:1.35;margin:0}
.bkib-research-use{border:1px solid #a3c7c9;border-radius:8px;padding:6px 9px;background:#effafa;color:#1d535d;justify-self:start;font-size:.79rem}
.bkib-research-source{color:#087f9d;text-decoration:underline;font-size:.78rem}
