#bdastra-toolbar {
  position: fixed;
  top: 68px;
  left: 16px;
  z-index: 2147483640;
  font-family: "Segoe UI", Arial, sans-serif;
}

#bdastra-crack-button {
  appearance: none;
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  background: #c8241d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

#bdastra-crack-button.is-active {
  background: #8f1712;
  outline: 3px solid rgba(255, 255, 255, 0.75);
}

#bdastra-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 100vh;
  z-index: 2147483641;
  box-sizing: border-box;
  padding: 22px;
  background: #fff;
  color: #171717;
  font-family: "Segoe UI", Arial, sans-serif;
  box-shadow: -8px 0 26px rgba(0, 0, 0, 0.24);
  transform: translateX(105%);
  transition: transform 160ms ease;
  overflow-y: auto;
}

#bdastra-sidebar.is-open { transform: translateX(0); }
#bdastra-sidebar h2 { margin: 0 40px 18px 0; }
#bdastra-sidebar label { display: block; margin: 14px 0 6px; font-weight: 650; }
#bdastra-sidebar input,
#bdastra-sidebar select,
#bdastra-sidebar textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #c8c8c8;
  border-radius: 5px;
  font: inherit;
}
#bdastra-sidebar textarea { min-height: 130px; resize: vertical; }
#bdastra-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
#bdastra-save {
  width: 100%;
  margin-top: 18px;
  padding: 11px;
  border: 0;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
#bdastra-status {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483640;
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(15, 15, 15, 0.85);
  color: #fff;
  font: 13px "Segoe UI", Arial, sans-serif;
  display: none;
}
.bdastra-pin {
  position: fixed;
  z-index: 2147483639;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50% 50% 50% 0;
  background: #d5251d;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.bdastra-pin::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 6px;
  left: 6px;
  border-radius: 50%;
  background: #fff;
}

.bdastra-crack-links{margin-top:22px;padding-top:18px;border-top:1px solid #e2e6ea}
.bdastra-crack-links h3{margin:0 0 12px;font-size:16px}
.bdastra-link-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}
.bdastra-link-summary button{border:1px solid #d7dde3;border-radius:8px;background:#f7f9fb;padding:10px;cursor:pointer;text-align:left}
.bdastra-link-summary strong{display:block;font-size:20px}.bdastra-link-summary span{font-size:12px;color:#65717e}
.bdastra-linked-item{display:flex;align-items:center;gap:9px;width:100%;border:0;border-top:1px solid #edf0f2;background:#fff;padding:10px 2px;text-align:left;cursor:pointer}
.bdastra-linked-item>span{font-size:20px}.bdastra-linked-item div{min-width:0}.bdastra-linked-item strong,.bdastra-linked-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bdastra-linked-item small,.bdastra-links-empty,.bdastra-links-loading{color:#687482;font-size:12px}

/* Sprint 9 - noyau Projet */
#bdastra-project-modal{position:fixed;inset:0;z-index:2147483646;background:rgba(3,8,18,.68);display:none;align-items:center;justify-content:center;padding:24px;font-family:Segoe UI,Arial,sans-serif}
#bdastra-project-modal.is-open{display:flex}
.bdastra-project-dialog{width:min(720px,96vw);max-height:92vh;overflow:auto;background:#111827;color:#f8fafc;border:1px solid rgba(255,255,255,.14);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.bdastra-project-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px;border-bottom:1px solid rgba(255,255,255,.1)}
.bdastra-project-dialog h2{margin:0;font-size:22px}.bdastra-project-dialog header p{margin:5px 0 0;color:#94a3b8}
.bdastra-project-dialog header button{border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}
.bdastra-project-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:22px 24px}.bdastra-project-grid label{display:grid;gap:7px;color:#cbd5e1;font-size:13px;font-weight:600}.bdastra-project-grid .is-wide{grid-column:1/-1}
.bdastra-project-grid input,.bdastra-project-grid textarea{box-sizing:border-box;width:100%;border:1px solid #334155;border-radius:10px;background:#0f172a;color:#fff;padding:11px 12px;font:inherit;resize:vertical}
.bdastra-project-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 24px 22px}.bdastra-project-summary div{background:#0f172a;border:1px solid #263449;border-radius:12px;padding:14px}.bdastra-project-summary strong{display:block;font-size:18px}.bdastra-project-summary span{font-size:12px;color:#94a3b8}
.bdastra-project-dialog footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid rgba(255,255,255,.1)}.bdastra-project-dialog footer button{border:1px solid #475569;background:#1e293b;color:#fff;border-radius:9px;padding:10px 16px;cursor:pointer}.bdastra-project-dialog footer .is-primary{background:#2563eb;border-color:#2563eb}
#bdastra-project-toast{position:fixed;left:50%;bottom:26px;z-index:2147483647;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#166534;color:white;padding:10px 16px;border-radius:999px;transition:.2s}#bdastra-project-toast.is-visible{opacity:1;transform:translate(-50%,0)}#bdastra-project-toast.is-error{background:#b91c1c}
@media(max-width:650px){.bdastra-project-grid{grid-template-columns:1fr}.bdastra-project-grid .is-wide{grid-column:auto}.bdastra-project-summary{grid-template-columns:1fr}}
