/* MURISURI — «В закладки» (общий компонент для страниц сайта) */
#bookmarkSlot{display:inline-flex;align-items:center}

.bm-btn{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 14px;border-radius:999px;
  border:1px solid rgba(217,184,119,.22);
  background:rgba(255,255,255,.03);
  color:#f2d9a0;text-decoration:none;white-space:nowrap;cursor:pointer;
  font:600 12px/1 "Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
}
.bm-btn:hover{
  border-color:rgba(217,184,119,.55);
  background:rgba(217,184,119,.09);
  box-shadow:0 0 26px -12px rgba(217,184,119,.7);
}
.bm-btn:active{transform:translateY(1px)}
.bm-btn svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.bm-btn.saved{
  border-color:rgba(217,184,119,.5);
  background:rgba(217,184,119,.13);
  color:#f6e3b7;
}
.bm-btn.saved svg{fill:rgba(217,184,119,.35)}
.bm-btn:focus-visible{outline:2px solid rgba(217,184,119,.65);outline-offset:2px}

.bm-panel{
  position:fixed;z-index:9999;width:336px;max-width:calc(100vw - 16px);
  padding:14px;border-radius:14px;
  border:1px solid rgba(217,184,119,.3);
  background:linear-gradient(180deg,#11161f,#0b0f15);
  box-shadow:0 30px 80px -26px #000;
  color:#e7ecf3;
  font:12px/1.45 "Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
}
.bm-panel[hidden]{display:none}
.bm-head{display:flex;align-items:flex-start;gap:9px}
.bm-head .bm-mark{
  width:30px;height:30px;flex:0 0 30px;border-radius:8px;
  border:1px solid rgba(217,184,119,.3);background:rgba(217,184,119,.1);
  display:flex;align-items:center;justify-content:center;color:#e9c887;
}
.bm-head .bm-mark svg{width:16px;height:16px;fill:rgba(217,184,119,.35);stroke:currentColor;stroke-width:1.7}
.bm-title{margin:0;font:400 16px/1.2 Georgia,"Times New Roman",serif;color:#f2d9a0;letter-spacing:.03em}
.bm-sub{margin:2px 0 0;font-size:10px;color:#7f899a;letter-spacing:.03em}
.bm-x{
  margin-left:auto;width:26px;height:26px;border-radius:7px;border:1px solid transparent;
  background:none;color:#7f899a;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.bm-x:hover{color:#f2d9a0;background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)}
.bm-x svg{width:14px;height:14px;stroke:currentColor;stroke-width:2}
.bm-status{
  margin:10px 0 8px;padding:7px 9px;border-radius:8px;font-size:11px;line-height:1.4;
  border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);color:#aeb8c7;
}
.bm-status.ok{border-color:rgba(116,211,154,.3);background:rgba(116,211,154,.07);color:#a8ecc2}
.bm-status.warn{border-color:rgba(224,181,106,.3);background:rgba(224,181,106,.07);color:#efcb8d}
.bm-main{
  width:100%;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 10px;border-radius:9px;cursor:pointer;
  border:1px solid rgba(217,184,119,.45);
  background:linear-gradient(180deg,rgba(217,184,119,.2),rgba(217,184,119,.07));
  color:#f6e3b7;font:600 12px/1 "Segoe UI",system-ui,sans-serif;
  transition:.15s ease;
}
.bm-main:hover{background:linear-gradient(180deg,rgba(217,184,119,.28),rgba(217,184,119,.1))}
.bm-main.ghost{border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.025);color:#aeb8c7}
.bm-main.ghost:hover{color:#f2d9a0;border-color:rgba(217,184,119,.35);background:rgba(217,184,119,.06)}
.bm-main svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8}
.bm-actions{display:flex;gap:6px;margin-top:7px}
.bm-actions .bm-main{flex:1}

.bm-hint{
  margin:9px 0 0;padding-top:9px;border-top:1px solid rgba(255,255,255,.06);
  font-size:10.5px;line-height:1.55;color:#7f899a;
}
.bm-hint kbd{
  display:inline-block;padding:0 4px;border-radius:4px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);color:#c9d2df;font:inherit;font-size:10px;
}
.bm-hint b{color:#c9d2df;font-weight:600}

.bm-list-wrap{margin-top:10px;border-top:1px solid rgba(255,255,255,.07);padding-top:8px}
.bm-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.bm-list-head span{font-size:9px;letter-spacing:.18em;text-transform:uppercase;color:#6f798a}
.bm-list-head b{font-size:10px;color:#d9b877;font-weight:600}
.bm-list{max-height:218px;overflow-y:auto;margin:0;padding:0;list-style:none;scrollbar-width:thin;scrollbar-color:rgba(217,184,119,.18) transparent}
.bm-list::-webkit-scrollbar{width:5px}
.bm-list::-webkit-scrollbar-thumb{background:rgba(217,184,119,.18);border-radius:8px}
.bm-item{display:flex;align-items:center;gap:6px;border-radius:7px;padding:1px 2px}
.bm-item:hover{background:rgba(255,255,255,.035)}
.bm-item.cur{background:rgba(217,184,119,.07)}
.bm-link{
  flex:1;min-width:0;display:block;padding:6px 7px;border-radius:6px;
  color:#cbd4e1;text-decoration:none;font-size:11px;line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.bm-link:hover{color:#f2d9a0}
.bm-item.cur .bm-link{color:#f2d9a0}
.bm-del{
  flex:0 0 24px;width:24px;height:24px;border-radius:6px;border:1px solid transparent;
  background:none;color:#6f798a;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.bm-del:hover{color:#e07178;background:rgba(224,113,120,.08);border-color:rgba(224,113,120,.2)}
.bm-del svg{width:12px;height:12px;stroke:currentColor;stroke-width:2}
.bm-empty{padding:9px 4px 4px;text-align:center;font-size:10.5px;line-height:1.5;color:#6f798a}

@media (max-width:640px){
  .bm-btn{padding:8px 10px}
  .bm-btn .bm-label{display:none}
  .bm-panel{
    left:8px !important;right:8px;bottom:8px !important;top:auto !important;
    width:auto;max-width:none;max-height:72vh;overflow:auto;
  }
}
