/* ============================================================
   The Tech Pad — conversation actions (archive / block / report)
   Light-theme styles matching the app palette; shares the
   .ip-toast / .ip-modal look from inbox-polish.css.
   ============================================================ */

/* ---------------- action bar in the contact pane ---------------- */

.ct-pane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 2px;
}

.ct-pane-actions .ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #c3d2cb;
  border-radius: 9px;
  background: #fff;
  color: #2f443d;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.ct-pane-actions .ct-btn:hover {
  background: #f1f5f3;
  border-color: #a9c0b8;
}

.ct-pane-actions .ct-btn.ct-active {
  background: #e3f5ee;
  border-color: #9fd8c4;
  color: #0f6b5f;
}

.ct-pane-actions .ct-btn.ct-block {
  color: #9b2c20;
  border-color: #eec2ba;
}

.ct-pane-actions .ct-btn.ct-block:hover {
  background: #fdecea;
  border-color: #df9d92;
}

.ct-pane-actions .ct-btn.ct-blocked {
  background: #fdecea;
  border-color: #df9d92;
  color: #7d2218;
}

/* ---------------- archived chip in .inbox-filters ---------------- */

/* Row visibility is CSS-only, driven by a parent class + a data attribute on
   each row. React re-renders rows constantly and wipes inline styles and
   unknown classes, but never touches attributes it does not manage
   (data-ct-arch), so the marker survives and the stylesheet does the hiding
   without fighting React. */
aside.conversation-pane:not(.ct-arch-view) .conversation-list > button[data-ct-arch="1"],
aside.conversation-pane.ct-arch-view .conversation-list > button:not([data-ct-arch="1"]) {
  display: none;
}

.ct-arch-chip {
  min-height: 26px;
  padding: 3px 11px;
  border: 1px solid #dfe6e2;
  border-radius: 999px;
  background: #fafcfb;
  color: #74827c;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: lowercase;
  cursor: pointer;
}

.ct-arch-chip:hover {
  background: #f1f5f3;
  border-color: #c3d2cb;
}

.ct-arch-chip.active {
  background: #0d2b22;
  border-color: #0d2b22;
  color: #fff;
}

/* Empty-state hint (pane level, OUTSIDE the React-owned list) */
.ct-arch-empty {
  padding: 26px 14px;
  font-size: 12px;
  font-weight: 650;
  color: #8b9a93;
  text-align: center;
}

/* ---------------- report modal ---------------- */

.ct-modal .ip-modal {
  width: min(470px, 100%);
}

.ct-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ct-cat {
  position: relative;
  cursor: pointer;
}

.ct-cat input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-cat span {
  display: block;
  padding: 9px 10px;
  border: 1.5px solid #ccd9d3;
  border-radius: 10px;
  background: #fff;
  color: #3d5249;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.ct-cat input:checked + span {
  border-color: #0f6b5f;
  background: #e3f5ee;
  color: #0f6b5f;
}

.ct-note {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #ccd9d3;
  border-radius: 11px;
  background: #fff;
  color: #14231e;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.ct-limits {
  font-size: 11px;
  line-height: 1.5;
  color: #8b9a93;
}

.ip-modal button.ct-danger {
  background: #9b2c20;
  border-color: #9b2c20;
  color: #fff;
}

.ip-modal button.ct-danger:hover {
  background: #7d2218;
}

.ct-summary {
  margin: 0;
  padding: 10px 12px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #dfe6e2;
  border-radius: 11px;
  background: #f4f8f6;
  color: #2f443d;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Mobile: buttons stack full-width, chips stay two-up */
@media (max-width: 520px) {
  .ct-pane-actions .ct-btn {
    flex: 1 1 45%;
    justify-content: center;
  }
}
