.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.tabs button{border:1px solid #c6c9bd;background:transparent;border-radius:999px;padding:8px 18px;font-weight:650;cursor:pointer;color:#151918}
.tabs button[aria-selected="true"]{background:#151918;border-color:#151918;color:#fff}

.sites{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.sites label{display:inline-flex;align-items:center;gap:7px;border:1px solid #d5d7cc;border-radius:6px;padding:7px 12px;cursor:pointer;font-size:14px;font-weight:600}
.sites label:has(input:checked){border-color:#151918;background:#f6f6f0}
.sites input{accent-color:#247958;margin:0}

.mock{border:1px solid #d5d7cc;border-radius:10px;overflow:hidden;background:#fcfcf9}
.mock-bar{display:flex;align-items:center;gap:6px;padding:9px 14px;background:#ecede5;border-bottom:1px solid #d5d7cc}
.mock-bar span{width:10px;height:10px;border-radius:50%;background:#c6c9bd}
.mock-bar em{font-style:normal;font-size:12px;color:#5b625d;margin-left:10px;background:#fff;border-radius:99px;padding:2px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book{display:grid;grid-template-columns:150px 1fr;gap:28px;padding:26px}
.cover{aspect-ratio:2/3;border-radius:4px;background:linear-gradient(160deg,#3a4a42,#151918);color:#f4f3ec;display:flex;align-items:flex-end;padding:14px;font-weight:800;letter-spacing:-.02em;line-height:1.15;box-shadow:0 6px 18px #15191830}
.book-body{display:grid;gap:12px;align-content:start;min-width:0}
.field{display:grid;gap:3px}
.field span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:#5b625d}
.field input{border:1px solid #d5d7cc;border-radius:6px;padding:9px 12px;background:#fff;font-size:17px;font-weight:650;min-width:0}
.site-actions{display:flex;flex-direction:column;gap:8px;max-width:360px;margin-top:6px}
.site-actions.row{flex-direction:row;flex-wrap:wrap;max-width:none;align-items:center}
.fake-btn{display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:99px;border:1px solid #c6c9bd;color:#5b625d;font-size:14px;font-weight:650;background:#fff;user-select:none}
.fake-btn.primary-fake{background:#e3e5dc;border-color:#e3e5dc;color:#3b413d}
.site-actions.row .fake-btn{padding:0 16px;border-radius:6px}
.injected{display:flex;flex-direction:column;gap:8px;margin:22px 0 4px;outline:2px dashed #247958;outline-offset:5px;border-radius:6px;position:relative}
.injected::after{content:"ajouté par MAM+ H";position:absolute;right:0;top:-25px;font-size:11px;font-weight:750;color:#247958;letter-spacing:.04em}
.site-actions.row .injected{flex-direction:row;flex-wrap:wrap}
.injected a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid #285c45;border-radius:6px;background:#356f55;color:#fff;font-size:14px;font-weight:650;text-decoration:none;line-height:1.2;text-align:center}
.injected a.second{background:#fff;color:#285c45}
.injected a:hover{filter:brightness(1.08)}
.injected.flash{animation:flash .6s}
@keyframes flash{from{outline-color:#c5f277}to{outline-color:#247958}}
.where{margin:6px 0 0;font-size:13px;color:#5b625d}

.counts{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:18px}
.counts p{margin:0;flex:1;min-width:260px}
.switch{display:inline-flex;align-items:center;gap:8px;font-weight:650;font-size:14px;cursor:pointer}
.switch input{accent-color:#247958;width:17px;height:17px;margin:0}
.url-line{margin:14px 0 0;font-size:13px;overflow-wrap:anywhere}

.check-all{margin:0 0 16px;padding:9px 16px;background:#52766c;color:#fff;border:0;border-radius:6px;font-weight:700;cursor:pointer}
.check-all:disabled{opacity:.7;cursor:default}
.shelf{width:100%;border-collapse:collapse;font-size:15px}
.shelf th{text-align:left;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#5b625d;padding:8px 10px;border-bottom:1px solid #d5d7cc}
.shelf td{padding:11px 10px;border-bottom:1px solid #ecede5;vertical-align:top}
.shelf td:first-child{font-weight:650}
.found{color:#507b67;font-weight:700;text-decoration:none}
.found:hover{text-decoration:underline}
.none{color:#b96060;font-weight:700}
.pending{color:#5b625d}
.credit{margin-top:30px}

@media (max-width:700px){
  .book{grid-template-columns:1fr;gap:18px}
  .cover{max-width:130px}
  .shelf th:nth-child(2),.shelf td:nth-child(2){display:none}
}
