/* ═══ Edge-33 Review Overlay styles ═══ */
#edge33-review-root, #edge33-review-root * { box-sizing: border-box; }

/* Hover highlight on text elements */
.e33-hover {
  outline: 1px dashed #EE4379 !important;
  outline-offset: 2px !important;
  background: rgba(238,67,121,0.04) !important;
  cursor: help !important;
}

.e33-flash {
  outline: 2px solid #EE4379 !important;
  outline-offset: 4px !important;
  background: rgba(238,67,121,0.10) !important;
  transition: all 200ms;
}

/* Tooltip */
#e33-tooltip {
  position: fixed; z-index: 999999;
  background: #110D10; color: #fff;
  padding: 10px 14px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1.55;
  pointer-events: none;
  opacity: 0; transition: opacity 100ms;
  max-width: 320px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  word-break: break-word;
}
#e33-tooltip.show { opacity: 1; }
.e33-tt-title {
  color: #EE4379; font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.e33-tt-row {
  display: flex; gap: 10px; align-items: baseline;
}
.e33-tt-row > span:first-child {
  color: rgba(255,255,255,0.4);
  min-width: 70px;
  font-size: 10px;
}
.e33-tt-tag {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.5);
  font-size: 10px;
}

/* Floating buttons */
.e33-fab {
  position: fixed; z-index: 999998;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #110D10;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 150ms;
  font-family: 'Inter', sans-serif;
}
.e33-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.e33-fab.active { background: #EE4379; }
#e33-toggle { bottom: 20px; right: 20px; }
.e33-fab-icon { font-weight: 700; font-size: 18px; font-family: 'Fraunces', serif; font-style: italic; }
.e33-fab-count {
  position: absolute; top: -4px; right: -4px;
  background: #EE4379; color: #fff;
  border-radius: 9999px;
  font-size: 10px; font-weight: 600;
  min-width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  padding: 0 5px;
}
.e33-fab-count.show { display: flex; }
#e33-panel-btn { bottom: 80px; right: 20px; background: #fff; color: #110D10; border: 1px solid rgba(17,13,16,0.12); font-size: 18px; }

/* Panel */
#e33-panel {
  position: fixed; z-index: 999997;
  top: 0; right: -420px; width: 400px; height: 100vh;
  background: #fff;
  border-left: 1px solid rgba(17,13,16,0.12);
  box-shadow: -4px 0 16px rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
  transition: right 200ms ease-out;
  font-family: 'Inter', sans-serif;
}
#e33-panel.show { right: 0; }
.e33-panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(17,13,16,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.e33-panel-head h3 {
  font-size: 14px; font-weight: 600; margin: 0;
  color: #110D10;
}
.e33-page-name { color: #7A7570; font-weight: 400; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.e33-panel-close {
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: #7A7570; padding: 0; line-height: 1;
}
.e33-panel-close:hover { color: #110D10; }
.e33-panel-actions {
  padding: 12px 20px;
  display: flex; gap: 8px;
  border-bottom: 1px solid rgba(17,13,16,0.06);
}
.e33-panel-actions button {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(17,13,16,0.12);
  background: #fff;
  cursor: pointer;
  color: #110D10;
}
.e33-panel-actions button:hover { background: #EFEBE4; }
#e33-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.e33-empty {
  font-size: 12px; color: #ABA59E;
  font-style: italic;
  text-align: center; padding: 32px 12px;
  background: #EFEBE4;
  border-radius: 14px;
  line-height: 1.6;
}
.e33-card {
  background: #EFEBE4;
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid #EE4379;
}
.e33-card-ctx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #7A7570;
  margin-bottom: 4px;
}
.e33-card-text {
  font-size: 12px; color: #110D10;
  margin-bottom: 6px; line-height: 1.45;
}
.e33-card-body {
  font-size: 13px; color: #110D10;
  line-height: 1.55;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.e33-card-foot {
  display: flex; gap: 12px;
}
.e33-card-foot a {
  font-size: 11px; cursor: pointer;
  color: #7A7570;
  text-decoration: none;
}
.e33-card-foot a:hover { color: #110D10; text-decoration: underline; }
.e33-card-foot .e33-card-del { color: #B91C1C; }

/* Modal */
#e33-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(17,13,16,0.4);
  backdrop-filter: blur(4px);
  z-index: 9999999;
  display: none;
  align-items: center; justify-content: center;
}
#e33-modal-backdrop.show { display: flex; }
.e33-modal {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  width: 520px; max-width: 92vw;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  font-family: 'Inter', sans-serif;
}
.e33-modal h3 {
  font-size: 16px; font-weight: 600;
  margin: 0 0 12px;
  color: #110D10;
}
.e33-modal-ctx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #110D10;
  background: #EFEBE4;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  word-break: break-word;
}
.e33-modal-spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #7A7570;
  margin-bottom: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.e33-modal textarea {
  width: 100%; min-height: 110px;
  padding: 12px 14px;
  border: 1px solid rgba(17,13,16,0.12);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; line-height: 1.55;
  resize: vertical; outline: none;
  color: #110D10;
}
.e33-modal textarea:focus { border-color: #EE4379; }
.e33-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 14px;
}
.e33-modal-actions button {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid rgba(17,13,16,0.12);
  background: #fff;
  color: #110D10;
}
.e33-modal-actions button.primary {
  background: #EE4379; color: #fff; border-color: #EE4379;
}
.e33-modal-actions button.primary:hover { background: #C9255B; }
