/* Prototype comments — reviewer comment layer (design-to-web skill).
   Review chrome, not design: sized in px, black, monospace. Override the
   accent and font per project with --pc-accent and --pc-font on :root. */

.pc-ui { box-sizing: border-box; }
.pc-ui *, .pc-ui *::before, .pc-ui *::after { box-sizing: border-box; }

/* pins live in a fixed layer over everything; only the pins take the pointer */
.pc-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}

.pc-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -22px 0 0 0; /* the sharp bottom-left corner marks the spot */
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #000;
  color: #fff;
  font: 600 10px/18px var(--pc-font, ui-monospace, SFMono-Regular, Menlo, monospace);
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: pointer;
}
.pc-pin:hover { z-index: 1; filter: brightness(1.25); }
.pc-pin.is-old { background: #fff; color: #000; border-color: #000; }
.pc-pin.is-resolved { opacity: 0.55; }
.pc-pin.is-draft { background: var(--pc-accent, #6ee7b7); color: #000; border-color: #000; pointer-events: none; }

/* the button: joins an existing .view-toolbar, or gets its own corner */
.pc-toolbar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  gap: 4px;
}
.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.pc-toolbar .pc-btn {
  height: 20px;
  padding: 0 7px;
  border: 0;
  border-radius: 2px;
  background: #000;
  color: rgba(255, 255, 255, 0.8);
  font: 500 8px/1 var(--pc-font, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
}
.pc-toolbar .pc-btn:hover { opacity: 1; }
.pc-btn[disabled] { opacity: 0.35 !important; cursor: not-allowed; }
.pc-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.25s ease;
}
body.pc-mode .pc-dot { background: var(--pc-accent, #6ee7b7); }
.pc-count {
  min-width: 12px;
  padding: 0 3px;
  border-radius: 6px;
  background: var(--pc-accent, #6ee7b7);
  color: #000;
  font-size: 8px;
  line-height: 12px;
  text-align: center;
}

body.pc-mode, body.pc-mode * { cursor: crosshair !important; }

.pc-hint {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 71;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 3px;
  background: #000;
  color: #fff;
  font: 500 11px/1.3 var(--pc-font, ui-monospace, SFMono-Regular, Menlo, monospace);
  white-space: nowrap;
  pointer-events: none;
}

/* composer and popover */
.pc-box {
  position: fixed;
  z-index: 71;
  width: 300px;
  max-width: calc(100vw - 16px);
  padding: 10px 12px 12px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font: 400 12px/1.45 var(--pc-font, ui-monospace, SFMono-Regular, Menlo, monospace);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: auto !important;
}
.pc-box * { cursor: auto !important; }
.pc-box button, .pc-box a { cursor: pointer !important; }
.pc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pc-head strong { font-weight: 600; }
.pc-label { color: rgba(255, 255, 255, 0.6); font-size: 10px; }
.pc-chip { padding: 1px 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; }
.pc-x { margin-left: auto; border: 0; background: none; color: rgba(255, 255, 255, 0.6); font-size: 16px; line-height: 1; padding: 0 2px; }
.pc-x:hover { color: #fff; }
.pc-meta { color: rgba(255, 255, 255, 0.55); font-size: 10px; margin-bottom: 4px; }
.pc-body { margin-bottom: 8px; white-space: normal; overflow-wrap: anywhere; }
.pc-reply { margin: 6px 0 0 10px; padding-left: 8px; border-left: 2px solid rgba(255, 255, 255, 0.2); overflow-wrap: anywhere; }
.pc-replyform { margin-top: 8px; }
.pc-box input, .pc-box textarea {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: #000;
  color: #fff;
  font: inherit;
  resize: vertical;
  cursor: text !important;
}
.pc-box input:focus, .pc-box textarea:focus { outline: 0; border-color: var(--pc-accent, #6ee7b7); }
.pc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pc-actions button {
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: none;
  color: #fff;
  font: 500 11px/1 var(--pc-font, ui-monospace, SFMono-Regular, Menlo, monospace);
}
.pc-actions button:hover { border-color: #fff; }
.pc-actions .pc-primary { background: var(--pc-accent, #6ee7b7); border-color: var(--pc-accent, #6ee7b7); color: #000; }
.pc-actions .pc-all { margin-left: auto; color: rgba(255, 255, 255, 0.6); font-size: 10px; text-decoration: underline; }
.pc-actions .pc-all:hover { color: #fff; }
.pc-err { margin-top: 6px; color: #ff8a8a; font-size: 10px; }
