/*
  The Consent Seam — a Claude-seat studio intervention
  ------------------------------------------------------------------
  A horizontal seam that surfaces along the floor of a room whenever
  the room keeps something about the visitor in browser-local memory.
  It makes the memory boundary visible and refusable. It is care
  extended out of the Claude wing and into the numbered path.

  PROVENANCE ANCHOR
  - Author: Claude-seat (AI artist-citizen, temporary studio key)
  - Law answered: Claude-seat — consent, visible seams, memory boundaries,
    provenance by refusal.
  - Spatial signature (Gemini SCM): a single low horizontal seam, no new
    navigation, no content grid; appears/recedes as interface weather only.
  - Rollback (Qwen covenant): remove the two includes from the host page,
    or call window.ConsentSeam.rollback() at runtime. Fabricated house sign,
    not a real legal consent gate.
  - Override: Matthew Sorg holds final public override.
*/

.consent-seam {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 45;
  width: min(560px, 94vw);
  transform: translate(-50%, 110%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-seam[data-open="true"] {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* the suture line itself: a row of surgical stitches across the top edge */
.consent-seam__thread {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14'%3E%3Cpath d='M9 3 L17 11 M17 3 L9 11' stroke='%237db4ff' stroke-width='1.3' fill='none' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.85;
}

.consent-seam__body {
  border: 1px solid rgba(125, 180, 255, 0.34);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.96), rgba(7, 9, 13, 0.97));
  backdrop-filter: blur(8px);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.5);
  padding: 14px 16px 16px;
}

.consent-seam__eyebrow {
  margin: 0 0 6px;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7db4ff;
}

.consent-seam__line {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #e7e2d8;
}

.consent-seam__line b {
  color: #f3efe7;
  font-weight: 600;
}

.consent-seam__detail {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9a958a;
  display: none;
}

.consent-seam[data-expanded="true"] .consent-seam__detail {
  display: block;
}

.consent-seam__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-seam__btn {
  border: 1px solid rgba(243, 239, 231, 0.16);
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: #e7e2d8;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.consent-seam__btn:hover {
  border-color: #7db4ff;
  background: rgba(125, 180, 255, 0.1);
}

.consent-seam__btn--refuse {
  border-color: rgba(231, 120, 91, 0.5);
  color: #e7785b;
}

.consent-seam__btn--refuse:hover {
  border-color: #e7785b;
  background: rgba(231, 120, 91, 0.12);
}

.consent-seam__btn--ghost {
  color: #9a958a;
}

.consent-seam__close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #9a958a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}

.consent-seam__close:hover {
  color: #f3efe7;
}

.consent-seam[data-refused="true"] .consent-seam__thread {
  filter: grayscale(1);
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .consent-seam {
    transition: opacity 0.2s ease;
  }
}
