.sh-capture-fab{display:none !important;}
.sh-capture-fab-legacy{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:12000;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  min-height:44px;
  padding:.65rem 1rem;
  border:0;
  border-radius:999px;
  background:#1d4ed8;
  color:#fff;
  font:600 .92rem/1.2 system-ui,sans-serif;
  box-shadow:0 10px 24px rgba(29,78,216,.28);
  cursor:pointer;
}
.sh-capture-fab:focus-visible{outline:3px solid #93c5fd;outline-offset:3px;}
.sh-capture-root{position:fixed;inset:0;z-index:12010;}
.sh-capture-backdrop{
  min-height:100%;
  background:rgba(15,23,42,.55);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:1rem;
}
.sh-capture-panel{
  width:min(560px,100%);
  max-height:min(92vh,900px);
  overflow:auto;
  background:#fff;
  color:#0f172a;
  border-radius:16px;
  padding:1.1rem 1.15rem 1.25rem;
  box-shadow:0 20px 50px rgba(15,23,42,.28);
}
.sh-capture-wide{width:min(820px,100%);}
.sh-capture-panel h2{margin:0 0 .5rem;font-size:1.15rem;}
.sh-capture-panel p,.sh-capture-panel label{display:block;margin:.55rem 0;font-size:.92rem;}
.sh-capture-panel input,.sh-capture-panel textarea,.sh-capture-panel select{
  width:100%;
  margin-top:.3rem;
  padding:.55rem .65rem;
  border:1px solid #cbd5e1;
  border-radius:8px;
  font:inherit;
}
.sh-capture-img{display:block;width:100%;max-height:42vh;object-fit:contain;background:#0f172a;border-radius:10px;}
.sh-capture-actions,.sh-capture-tools,.sh-capture-grid{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem;}
.sh-capture-foot{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem;}
.sh-capture-tools,.sh-capture-history,.sh-capture-foot .sh-capture-actions{
  display:grid;
  align-items:stretch;
  justify-items:stretch;
  margin-top:0;
}
.sh-capture-tools{grid-template-columns:repeat(9,minmax(0,1fr));gap:.45rem;margin-top:.85rem;}
.sh-capture-history{grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;}
.sh-capture-foot .sh-capture-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;}
.sh-capture-tools .sh-capture-btn,
.sh-capture-history .sh-capture-btn,
.sh-capture-foot .sh-capture-actions .sh-capture-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  margin:0;
  padding:.45rem .35rem;
  text-align:center;
  line-height:1.1;
}
.sh-capture-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;}
.sh-capture-btn{
  min-height:44px;
  padding:.55rem .85rem;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#f8fafc;
  color:#0f172a;
  font:600 .88rem/1 system-ui,sans-serif;
  cursor:pointer;
}
.sh-capture-btn.primary{background:#1d4ed8;border-color:#1d4ed8;color:#fff;}
.sh-capture-btn.ghost{background:transparent;}
.sh-capture-btn.active{border-color:#1d4ed8;color:#1d4ed8;}
.sh-capture-btn:focus-visible{outline:3px solid #93c5fd;outline-offset:2px;}
.sh-capture-error{color:#991b1b;background:#fee2e2;border-radius:8px;padding:.55rem .7rem;}
.sh-capture-meta,.sh-capture-url{color:#475569;word-break:break-all;}
.sh-capture-dups{background:#eff6ff;border-radius:8px;padding:.65rem .75rem;}
.sh-capture-dups ul{margin:.4rem 0 0;padding-left:1.1rem;}
.sh-capture-shot{margin:.65rem 0 .35rem;}
.sh-capture-caption{display:block;margin:.55rem 0 .2rem;}
.sh-capture-caption span{display:block;font-size:.82rem;color:#475569;margin-bottom:.3rem;}
.sh-capture-caption textarea,.sh-capture-panel #shCapCaption{min-height:4.5rem;}
.sh-capture-caption small,.sh-capture-caption-note{display:block;margin:.3rem 0 0;color:#64748b;font-size:.78rem;}
.sh-capture-identifying{color:#1d4ed8;font-style:normal;font-weight:600;}
.sh-suggest-list{display:flex;flex-direction:column;gap:.65rem;margin:.75rem 0;}
.sh-suggest{border:1px solid #e2e8f0;border-radius:12px;padding:.7rem .75rem;background:#f8fafc;}
.sh-suggest header{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin-bottom:.35rem;font-size:.78rem;color:#475569;}
.sh-suggest textarea{min-height:4.2rem;}
.sh-suggest-actions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem;}
.sh-suggest-actions .sh-capture-btn{min-height:36px;}
.sh-suggest.is-dismissed{opacity:.55;}
.sh-shot-wrap{position:relative;}
.sh-annotate-layer{position:absolute;touch-action:none;cursor:crosshair;}
.sh-region{position:absolute;border:2px solid #f59e0b;background:rgba(245,158,11,.18);pointer-events:none;border-radius:4px;}
.sh-analysis-note{margin:.4rem 0;font-size:.85rem;color:#1e3a8a;}
.sh-analysis-fail{color:#991b1b;background:#fee2e2;border-radius:8px;padding:.55rem .7rem;}
.sh-tech-evidence{border-left:3px solid #64748b;padding-left:.55rem;}
.sh-ext-message{font-weight:600;line-height:1.45;color:#422006;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:.6rem .75rem;}
.sh-dup-flag{margin:.5rem 0;padding:.6rem .75rem;border-radius:8px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;}
.sh-dup-flag strong{display:block;letter-spacing:.02em;}
.sh-dup-flag p{margin:.3rem 0 0;font-size:.85rem;}
.sh-unique-flag{margin:.5rem 0;padding:.45rem .7rem;border-radius:8px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-size:.85rem;}
.sh-ext-context{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.35rem .75rem;margin:.5rem 0;padding:.55rem .7rem;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;font-size:.8rem;}
.sh-ext-context div{min-width:0;}
.sh-ext-context dt{color:#64748b;font-weight:600;}
.sh-ext-context dd{margin:0;color:#0f172a;overflow-wrap:anywhere;}
.sh-capture-mode{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.5rem 0;font-size:.85rem;color:#475569;}
.sh-capture-btn.is-busy{opacity:.7;pointer-events:none;}
a.sh-capture-btn{text-decoration:none;display:inline-flex;align-items:center;}
html.sh-compact .sh-capture-fab{
  left:.75rem;
  right:.75rem;
  justify-content:center;
}
html.sh-compact .sh-capture-backdrop{padding:.35rem;}
html.sh-compact .sh-capture-panel{width:100%;border-radius:16px 16px 0 0;}
html.sh-compact .sh-capture-grid{grid-template-columns:1fr;}
html.sh-compact .sh-capture-tools{grid-template-columns:repeat(3,minmax(0,1fr));}
html.sh-compact .sh-capture-history{grid-template-columns:repeat(3,minmax(0,1fr));}
html.sh-compact .sh-capture-foot .sh-capture-actions{grid-template-columns:repeat(2,minmax(0,1fr));}
@media (max-width:900px){
  .sh-capture-fab{left:.75rem;right:.75rem;justify-content:center;}
  .sh-capture-backdrop{padding:.35rem;}
  .sh-capture-panel{width:100%;border-radius:16px 16px 0 0;}
  .sh-capture-grid{grid-template-columns:1fr;}
  .sh-capture-tools{grid-template-columns:repeat(3,minmax(0,1fr));}
  .sh-capture-history{grid-template-columns:repeat(3,minmax(0,1fr));}
  .sh-capture-foot .sh-capture-actions{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (min-width:901px){
  .sh-capture-backdrop{align-items:center;}
}
