/* public/comments.css */
.cc-root, .cc-root * { box-sizing: border-box; }
.cc-root { position: fixed; inset: 0; pointer-events: none; z-index: 2147483600;
  font-family: "Instrument Sans", system-ui, sans-serif; color: #FAFAF9; }

.cc-fab { pointer-events: auto; position: fixed; right: 20px; bottom: 20px;
  background: #0A0A0A; color: #FAFAF9; border: 1px solid #2A2A2A; border-radius: 999px;
  padding: 10px 16px; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.35); transition: background .2s, border-color .2s; }
.cc-fab:hover { border-color: #C8B89A; }
.cc-fab[data-state="placing"] { background: #C8B89A; color: #0A0A0A; border-color: #C8B89A; }

.cc-panel { pointer-events: auto; position: fixed; right: 20px; bottom: 72px; width: 340px;
  max-height: 70vh; background: #0A0A0A; border: 1px solid #2A2A2A; border-radius: 8px;
  display: none; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.cc-panel[data-open="true"] { display: flex; }
.cc-panel-head { padding: 14px 16px; border-bottom: 1px solid #2A2A2A; display: flex; justify-content: space-between; align-items: center; }
.cc-panel-head h3 { margin: 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.cc-filter { background: transparent; color: #C8B89A; border: 1px solid #2A2A2A; border-radius: 4px; padding: 4px 8px; font-size: 11px; cursor: pointer; }

.cc-list { overflow-y: auto; padding: 8px 0; flex: 1; }
.cc-empty { padding: 24px 16px; color: #888; font-family: "IBM Plex Serif", Georgia, serif; font-weight: 300; line-height: 1.7; font-size: 14px; }

.cc-item { padding: 12px 16px; border-bottom: 1px solid #1A1A1A; cursor: pointer; }
.cc-item:hover { background: #111; }
.cc-item[data-resolved="true"] { opacity: 0.5; }
.cc-item .cc-who { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #C8B89A; }
.cc-item .cc-when { font-size: 11px; color: #666; margin-left: 8px; }
.cc-item .cc-body { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 300; line-height: 1.7; font-size: 14px; margin-top: 6px; white-space: pre-wrap; }
.cc-item .cc-acts { margin-top: 8px; display: flex; gap: 12px; }
.cc-item button.cc-act { background: none; border: none; color: #888; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; padding: 0; }
.cc-item button.cc-act:hover { color: #FAFAF9; }

.cc-pin { pointer-events: auto; position: absolute; width: 22px; height: 22px; border-radius: 999px;
  background: #C8B89A; color: #0A0A0A; border: 2px solid #0A0A0A; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transform: translate(-50%, -50%); }
.cc-pin[data-resolved="true"] { background: #2A2A2A; color: #888; }

.cc-form { padding: 12px 16px; border-top: 1px solid #2A2A2A; display: flex; flex-direction: column; gap: 8px; }
.cc-form input, .cc-form textarea { width: 100%; background: #1A1A1A; color: #FAFAF9; border: 1px solid #2A2A2A; border-radius: 4px; padding: 8px 10px; font: inherit; }
.cc-form textarea { min-height: 72px; resize: vertical; font-family: "IBM Plex Serif", Georgia, serif; font-weight: 300; line-height: 1.6; }
.cc-form .cc-row { display: flex; gap: 8px; justify-content: flex-end; }
.cc-form button { background: #FAFAF9; color: #0A0A0A; border: none; border-radius: 4px; padding: 8px 14px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; }
.cc-form button.cc-secondary { background: transparent; color: #888; border: 1px solid #2A2A2A; }

.cc-placing-overlay { pointer-events: auto; position: fixed; inset: 0; cursor: crosshair; background: rgba(10,10,10,0.08); }
.cc-drag-rect { pointer-events: none; position: fixed; border: 1.5px dashed #C8B89A; background: rgba(200,184,154,0.08); z-index: 2147483600; }
.cc-box { pointer-events: none; position: absolute; border: 1.5px solid #C8B89A; background: rgba(200,184,154,0.06); border-radius: 2px; }
.cc-box[data-resolved="true"] { border-color: #2A2A2A; background: rgba(42,42,42,0.05); }
.cc-box[data-pending="true"] { border-style: dashed; background: rgba(200,184,154,0.12); animation: cc-pulse 1.6s ease-in-out infinite; }
.cc-pin[data-pending="true"] { animation: cc-pulse 1.6s ease-in-out infinite; }
@keyframes cc-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.cc-placing-hint { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #0A0A0A; color: #C8B89A; border: 1px solid #C8B89A; padding: 8px 14px; border-radius: 4px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

@media (max-width: 640px) {
  .cc-panel { right: 8px; left: 8px; width: auto; bottom: 64px; }
  .cc-fab { right: 8px; bottom: 8px; }
}
