/* The Tissue Lab email signup (block + pop-up). Self-contained colors. */
.tls-block, .tls-modal {
  --tls-bg: #fbf6ec; --tls-text: #262626; --tls-muted: #5c5650; --tls-border: #e2d6c2; --tls-accent: #7b1e22; --tls-accent-on: #fff; --tls-btn: #7b1e22;
  font: inherit; color: var(--tls-text);
}
html[data-theme="dark"] .tls-block, html[data-theme="dark"] .tls-modal { --tls-bg: #221f1d; --tls-text: #f3ead8; --tls-muted: #c9bfae; --tls-border: #3d3834; --tls-accent: #d4656a; --tls-accent-on: #fff; --tls-btn: #a8323a; }
.tls-block { background: var(--tls-bg); border: 1px solid var(--tls-border); border-radius: 18px; padding: 24px 20px; margin: 32px auto; max-width: 760px; box-sizing: border-box; }
.tls-block *, .tls-modal * { box-sizing: border-box; }
.tls-eyebrow { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tls-accent); margin: 0 0 6px; }
.tls-title { font-family: "Clash Display", "Satoshi", system-ui, sans-serif; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.6rem); line-height: 1.15; margin: 0 0 8px; color: var(--tls-text); }
.tls-sub { color: var(--tls-muted); margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.tls-form { display: grid; gap: 12px; }
.tls-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .tls-row { grid-template-columns: 1fr 1.4fr; } }
.tls-field { display: grid; gap: 4px; min-width: 0; }
.tls-field label { font-size: 13px; font-weight: 700; }
.tls-field input { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--tls-border); border-radius: 10px; background: transparent; color: var(--tls-text); }
.tls-field input:focus, .tls-chip input:focus-visible, .tls-consent input:focus-visible { outline: 2px solid var(--tls-accent); outline-offset: 1px; }
.tls-interests { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tls-interests legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.tls-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; border: 1px solid var(--tls-border); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.tls-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.tls-consent input { margin-top: 3px; accent-color: var(--tls-accent); }
.tls-chip input { accent-color: var(--tls-accent); }
.tls-btn { font: inherit; font-weight: 700; font-size: 15px; background: var(--tls-btn); color: var(--tls-accent-on); border: 0; border-radius: 999px; padding: 13px 22px; min-height: 46px; cursor: pointer; justify-self: start; }
.tls-btn:hover { filter: brightness(1.08); }
.tls-status { margin: 0; font-size: 14px; font-weight: 700; color: var(--tls-accent); min-height: 1em; }
.tls-status:empty { display: none; }
.tls-privacy { margin: 0; font-size: 12px; line-height: 1.5; color: var(--tls-muted); }
.tls-done { margin: 0; font-size: 15px; }
/* Pop-up */
html.tls-lock { overflow: hidden; }
.tls-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 16, 14, .55); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.tls-overlay[hidden] { display: none; }
.tls-modal { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--tls-bg); border-radius: 20px 20px 0 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
@media (min-width: 640px) { .tls-overlay { align-items: center; padding: 24px; } .tls-modal { border-radius: 20px; padding: 32px 28px; } }
.tls-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--tls-muted); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.tls-close:hover { background: var(--tls-border); color: var(--tls-text); }
.tls-modal .tls-title { padding-right: 36px; }
@media (prefers-reduced-motion: no-preference) { .tls-modal { animation: tls-in .25s ease-out; } @keyframes tls-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } } }
[data-tl-signup]:empty { display: none; }
