/* Rule Breaker Reset — Session app design
   Restrained brand: lilac as hero / butter yellow CTA / sticker shadows.
   The work is the focus; brand chrome is quiet.
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Archivo+Black&display=swap');
@import url('brand/colors_and_type.css');

:root {
  --rbr-paper: #FCF9FF;
  --rbr-ink: #0E192D;
  --rbr-lilac: #F3EAFC;
  --rbr-lilac-mid: #E2D1F2;
  --rbr-lilac-stroke: #B9A2D0;
  --rbr-purple: #9966CC;
  --rbr-butter: #FFD467;
  --rbr-butter-dark: #F5C843;
  --rbr-rose: #EB405F;
  --rbr-green: #1EA75F;

  --rbr-shadow: 4px 4px 0 0 #0E192D;
  --rbr-shadow-sm: 2px 2px 0 0 #0E192D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--rbr-paper);
  color: var(--rbr-ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── App shell ─────────────────────────────────────────── */
.rbr-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* topbar */
.rbr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(14, 25, 45, 0.08);
  background: var(--rbr-paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.rbr-logo {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  height: 28px;
}
.rbr-logo img {
  height: 100%;
  display: block;
}
.rbr-logo-suffix {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000;
  display: inline-flex;
  align-items: center;
  border-left: 1.5px solid rgba(14,25,45,0.2);
  padding-left: 10px;
}

/* phase indicator */
.rbr-phase {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(14, 25, 45, 0.55);
}
.rbr-phase-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms ease;
}
.rbr-phase-step.active { color: var(--rbr-ink); }
.rbr-phase-step.done { color: rgba(14, 25, 45, 0.4); }
.rbr-phase-dot {
  width: 8px; height: 8px;
  border: 1.5px solid var(--rbr-ink);
  border-radius: 50%;
  background: transparent;
}
.rbr-phase-step.active .rbr-phase-dot { background: var(--rbr-purple); border-color: var(--rbr-purple); }
.rbr-phase-step.done .rbr-phase-dot { background: var(--rbr-ink); }
.rbr-phase-arrow { color: rgba(14, 25, 45, 0.25); }

/* main canvas */
.rbr-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 40px 96px;
  position: relative;
}

/* the screen card */
.rbr-screen {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: rbr-fade-in 360ms ease;
}
@keyframes rbr-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* eyebrow — sits BELOW the headline as a breadcrumb */
.rbr-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rbr-purple);
  margin-top: -16px; /* tuck under headline */
}

/* headline */
.rbr-h {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  color: var(--rbr-ink);
}
.rbr-h-1 { font-size: 64px; }
.rbr-h-2 { font-size: 48px; }
.rbr-h-3 { font-size: 32px; }
.rbr-h .script {
  font-family: 'Isla', cursive;
  font-weight: 400;
  color: var(--rbr-purple);
  font-size: 1.2em;
  line-height: 0.85;
  text-transform: none;
  letter-spacing: 0;
}

/* body copy */
.rbr-lead {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--rbr-ink);
  max-width: 560px;
}
.rbr-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(14, 25, 45, 0.78);
  max-width: 560px;
}
.rbr-tiny {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14, 25, 45, 0.55);
}

/* aside / supporting prompt — quiet, no header label */
.rbr-aside {
  border-left: 2px solid var(--rbr-lilac-mid);
  padding: 4px 0 4px 16px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(14, 25, 45, 0.65);
  max-width: 540px;
}

/* inputs */
.rbr-input, .rbr-textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--rbr-ink);
  border-radius: 0;
  padding: 14px 16px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  color: var(--rbr-ink);
  outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}
.rbr-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.rbr-input:focus, .rbr-textarea:focus {
  box-shadow: var(--rbr-shadow-sm);
  border-color: var(--rbr-ink);
}
.rbr-input::placeholder, .rbr-textarea::placeholder { color: rgba(14, 25, 45, 0.4); }

.rbr-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rbr-field label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--rbr-ink);
}
.rbr-field .hint {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: rgba(14, 25, 45, 0.6);
}

/* buttons — sticker shadow */
.rbr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rbr-butter);
  color: var(--rbr-ink);
  border: 1.5px solid var(--rbr-ink);
  border-radius: 2px;
  padding: 12px 24px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 120ms ease, transform 60ms ease, background 120ms ease;
}
.rbr-btn:hover { box-shadow: var(--rbr-shadow); }
.rbr-btn:active { box-shadow: 0 0 0 0 #000; transform: translate(2px, 2px); }
.rbr-btn[disabled] {
  background: rgba(14, 25, 45, 0.05);
  color: rgba(14, 25, 45, 0.35);
  cursor: not-allowed;
  border-color: rgba(14, 25, 45, 0.15);
}
.rbr-btn[disabled]:hover { box-shadow: none; }

.rbr-btn.ghost {
  background: transparent;
  border: none;
  color: rgba(14, 25, 45, 0.65);
  padding: 12px 16px;
}
.rbr-btn.ghost:hover { color: var(--rbr-ink); box-shadow: none; }

.rbr-btn.lilac { background: var(--rbr-lilac); }

/* checklist */
.rbr-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(14, 25, 45, 0.1);
}
.rbr-check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(14, 25, 45, 0.08);
  cursor: pointer;
  transition: background 120ms ease;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  color: var(--rbr-ink);
  user-select: none;
}
.rbr-check-row:hover { background: rgba(243, 234, 252, 0.5); }
.rbr-checkbox {
  width: 22px; height: 22px;
  border: 1.5px solid var(--rbr-ink);
  border-radius: 0;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background 120ms ease;
}
.rbr-check-row.checked .rbr-checkbox { background: var(--rbr-purple); border-color: var(--rbr-purple); }
.rbr-check-row.checked .rbr-checkbox::after {
  content: '';
  width: 11px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.rbr-check-row.checked { color: var(--rbr-ink); }

/* count moment */
.rbr-count {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: 'Archivo', sans-serif;
  margin-top: 8px;
}
.rbr-count .num {
  font-size: 168px;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--rbr-ink);
  font-family: 'Archivo', sans-serif;
}
.rbr-count .lbl {
  font-family: 'Isla', cursive;
  font-size: 56px;
  color: var(--rbr-purple);
  line-height: 0.9;
}

/* "your one" tag pill */
.rbr-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--rbr-purple);
  border-radius: 999px;
  background: var(--rbr-lilac);
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--rbr-purple);
  letter-spacing: 0.02em;
}

/* picker rows for pick-your-one */
.rbr-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--rbr-ink);
  background: #fff;
  cursor: pointer;
  transition: box-shadow 120ms ease, background 120ms ease;
  font-family: 'IBM Plex Sans', sans-serif;
}
.rbr-pick-row:hover { box-shadow: var(--rbr-shadow-sm); }
.rbr-pick-row.selected { background: var(--rbr-lilac); border-color: var(--rbr-purple); box-shadow: var(--rbr-shadow); }
.rbr-pick-row .cat {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rbr-purple);
  min-width: 90px;
}
.rbr-pick-row .text { font-size: 16px; color: var(--rbr-ink); flex: 1; }
.rbr-pick-row .check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--rbr-ink);
  border-radius: 50%;
  flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
}
.rbr-pick-row.selected .check { background: var(--rbr-purple); border-color: var(--rbr-purple); }
.rbr-pick-row.selected .check::after {
  content: ''; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* read-only "pulled forward" cards */
.rbr-pull-card {
  border: 1px solid var(--rbr-lilac-stroke);
  background: var(--rbr-lilac);
  padding: 14px 16px;
}
.rbr-pull-card .lbl {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rbr-purple);
  margin-bottom: 6px;
}
.rbr-pull-card .val {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: var(--rbr-ink);
  line-height: 1.5;
}

/* room table */
.rbr-room {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1.5px solid var(--rbr-ink);
  font-family: 'IBM Plex Sans', sans-serif;
}
.rbr-room th, .rbr-room td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(14, 25, 45, 0.1);
  vertical-align: top;
}
.rbr-room th {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14, 25, 45, 0.6);
  background: var(--rbr-lilac);
  border-bottom: 1.5px solid var(--rbr-ink);
}
.rbr-room td.name { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 15px; }
.rbr-room td.one { font-size: 14px; color: var(--rbr-ink); }
.rbr-room td.corner { font-size: 14px; color: rgba(14, 25, 45, 0.6); font-style: italic; }
.rbr-room tr.you td { background: rgba(255, 212, 101, 0.18); }

/* footer nav */
.rbr-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 25, 45, 0.08);
  width: 100%;
  max-width: 720px;
}

/* layout helpers */
.rbr-stack { display: flex; flex-direction: column; }
.rbr-row { display: flex; align-items: center; }
.rbr-gap-2 { gap: 8px; } .rbr-gap-3 { gap: 12px; } .rbr-gap-4 { gap: 16px; }
.rbr-gap-5 { gap: 20px; } .rbr-gap-6 { gap: 28px; } .rbr-gap-8 { gap: 40px; }
.rbr-mt-2 { margin-top: 8px; } .rbr-mt-4 { margin-top: 16px; } .rbr-mt-6 { margin-top: 28px; }

/* tag chips for prompts */
.rbr-chip {
  display: inline-flex;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--rbr-lilac-stroke);
  padding: 5px 12px;
  border-radius: 999px;
  color: rgba(14, 25, 45, 0.7);
}

/* category section header inside checklist */
.rbr-cat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 6px;
}
.rbr-cat .name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--rbr-ink);
  letter-spacing: -0.01em;
}
.rbr-cat .ct {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--rbr-purple);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* "add your own" row */
.rbr-add-row { display: flex; align-items: center; gap: 14px; padding: 10px 4px; }
.rbr-add-row.filled .rbr-checkbox {
  background: var(--rbr-purple);
  border-color: var(--rbr-purple);
  position: relative;
}
.rbr-add-row.filled .rbr-checkbox::after {
  content: '';
  position: absolute;
  left: 5px; top: 4px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.rbr-add-row input {
  flex: 1; border: none; background: transparent;
  border-bottom: 1.5px dashed var(--rbr-lilac-stroke);
  padding: 8px 0; font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; outline: none;
}

/* close screen — pillow note dark variant */
.rbr-app.pillow {
  background: #0E192D;
  color: #FCF9FF;
  transition: background 800ms ease;
}
.rbr-app.pillow .rbr-topbar { background: #0E192D; border-color: rgba(255,255,255,0.1); }
.rbr-app.pillow .rbr-wordmark { color: #FCF9FF; }
.rbr-app.pillow .rbr-wordmark .accent { color: #D4BBF2; }
.rbr-app.pillow .rbr-h, .rbr-app.pillow .rbr-lead, .rbr-app.pillow .rbr-body { color: #FCF9FF; }
.rbr-app.pillow .rbr-textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  color: #FCF9FF;
}
.rbr-app.pillow .rbr-textarea::placeholder { color: rgba(255,255,255,0.3); }
.rbr-app.pillow .rbr-btn {
  background: transparent; border-color: #FCF9FF; color: #FCF9FF;
}
.rbr-app.pillow .rbr-btn:hover { box-shadow: 4px 4px 0 0 #D4BBF2; }
.rbr-app.pillow .rbr-aside { border-left-color: rgba(212, 187, 242, 0.4); color: rgba(252, 249, 255, 0.7); }
.rbr-app.pillow .rbr-eyebrow { color: #D4BBF2; }

/* decorative flower (very restrained) */
.rbr-flower {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}

/* welcome / norms / close screens get a tinted backdrop */
.rbr-stage.tinted {
  background: var(--rbr-lilac);
}

/* numbered list (norms) */
.rbr-norms { display: flex; flex-direction: column; gap: 18px; max-width: 580px; }

/* tailor — chosen rule restate card (sits below header + eyebrow) */
.rbr-chosen-rule {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--rbr-lilac);
  border: 1.5px solid var(--rbr-lilac-stroke);
  border-radius: 2px;
  padding: 14px 18px;
  max-width: 620px;
  box-shadow: 3px 3px 0 0 var(--rbr-lilac-stroke);
  margin-top: 6px;
}
.rbr-chosen-rule__lbl {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: rgba(14,25,45,0.75);
  line-height: 1.5;
  margin-top: 4px;
}
.rbr-chosen-rule__val {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--rbr-ink);
  letter-spacing: -0.005em;
}

/* pile category chips — Career / Caregiving / Self-Care, active one highlighted */
.rbr-pile-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.rbr-pile-chip {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 2px;
  background: transparent;
  color: rgba(14,25,45,0.5);
  border: 2px solid rgba(14,25,45,0.18);
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rbr-pile-chip.done {
  color: rgba(14,25,45,0.7);
  border-color: rgba(14,25,45,0.4);
}
.rbr-pile-chip.done::before {
  content: '✓';
  margin-right: 6px;
  color: var(--rbr-purple);
  font-weight: 900;
}
.rbr-pile-chip.active {
  background: var(--rbr-lilac);
  color: var(--rbr-ink);
  border-color: var(--rbr-lilac-stroke);
  box-shadow: 3px 3px 0 0 var(--rbr-lilac-stroke);
}
.rbr-norm {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.rbr-norm .n {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--rbr-purple);
  line-height: 1;
}
.rbr-norm .t {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--rbr-ink);
}
.rbr-norm .d {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: rgba(14,25,45,0.7);
  line-height: 1.45;
  margin-top: 4px;
}

/* the checklist progress (subtle, only on pile screens) */
.rbr-pile-progress {
  display: flex; gap: 6px; align-items: center;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14,25,45,0.5);
}
.rbr-pile-progress .seg {
  width: 28px; height: 4px;
  background: rgba(14,25,45,0.15);
  border-radius: 0;
}
.rbr-pile-progress .seg.done { background: var(--rbr-purple); }
.rbr-pile-progress .seg.active { background: var(--rbr-ink); }

/* pillow note — softer treatment */
.pillow-note-input {
  background: rgba(255,255,255,0.04) !important;
  font-family: 'Archivo', sans-serif !important;
  font-size: 22px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  min-height: 140px !important;
  letter-spacing: -0.01em !important;
}

/* (asterisks removed — every field is required) */

/* norms — "drop a 👍 in chat if you're in." — bigger, lead-style */
.rbr-norms-in {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--rbr-ink);
  margin-top: 8px;
  letter-spacing: 0;
}

/* pile add-row remove button */
.rbr-add-x {
  background: transparent;
  border: none;
  color: rgba(14,25,45,0.4);
  font-size: 20px;
  cursor: pointer;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.rbr-add-x:hover { background: rgba(14,25,45,0.06); color: var(--rbr-ink); }

/* ── Language tweaks panel — custom inside TweaksPanel ── */
.rbr-tw-help {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(41,38,27,0.65);
  padding: 4px 0 6px;
}
.rbr-tw-summary {
  cursor: pointer;
  font-size: 11px;
  color: rgba(41,38,27,0.65);
  padding: 4px 0;
  list-style: none;
  user-select: none;
}
.rbr-tw-summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  transition: transform 120ms ease;
  font-size: 9px;
  color: rgba(41,38,27,0.5);
}
details[open] > .rbr-tw-summary::before { transform: rotate(90deg); }
.rbr-tw-fields {
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px 0 4px;
}
.rbr-tw-field {
  display: flex; flex-direction: column; gap: 3px;
}
.rbr-tw-key {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: rgba(41,38,27,0.5);
  text-transform: lowercase;
}
.rbr-tw-field input,
.rbr-tw-field textarea {
  width: 100%;
  font: inherit;
  font-size: 11.5px;
  line-height: 1.4;
  padding: 5px 7px;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 5px;
  background: rgba(255,255,255,0.7);
  color: #29261b;
  outline: none;
  resize: vertical;
  font-family: 'IBM Plex Sans', sans-serif;
}
.rbr-tw-field input:focus,
.rbr-tw-field textarea:focus {
  border-color: rgba(0,0,0,0.3);
  background: #fff;
}
.rbr-tw-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 4px 0;
}
.rbr-tw-btn {
  appearance: none;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: rgba(0,0,0,0.06);
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.rbr-tw-btn:hover { background: rgba(0,0,0,0.1); }
.rbr-tw-btn.primary { background: rgba(0,0,0,0.78); color: #fff; }
.rbr-tw-btn.primary:hover { background: rgba(0,0,0,0.88); }
.rbr-tw-btn.ghost { background: transparent; color: rgba(41,38,27,0.55); }
.rbr-tw-btn.ghost:hover { background: rgba(0,0,0,0.05); color: #29261b; }

/* progress chip in topbar (saved) — quiet */
.rbr-saved {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  color: rgba(14,25,45,0.4);
  display: flex; align-items: center; gap: 6px;
}
.rbr-saved::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rbr-green);
  display: inline-block;
}

/* ── close screen — jazzy ───────────────────────────────────── */
.rbr-close {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 8px 0 24px;
  text-align: center;
}
.rbr-close-confetti {
  position: absolute;
  inset: -20px -40px auto -40px;
  height: 280px;
  pointer-events: none;
  overflow: visible;
}
.rbr-close-confetti span {
  position: absolute;
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  color: var(--rbr-purple);
  opacity: 0.55;
  animation: rbr-float 4.6s ease-in-out infinite;
}

.rbr-close-headline {
  position: relative;
  z-index: 1;
  margin: 0;
  animation: rbr-rise 700ms ease-out both;
}
.rbr-close-headline .stamp {
  display: inline-block;
  background: var(--rbr-butter);
  border: 1.5px solid var(--rbr-ink);
  padding: 2px 14px;
  margin-right: 4px;
  box-shadow: var(--rbr-shadow-sm);
}
.rbr-close-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rbr-purple);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rbr-close-eyebrow::before,
.rbr-close-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rbr-lilac-stroke);
}

/* the two letter-cards */
.rbr-close-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
}
.rbr-close-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--rbr-ink);
  padding: 22px 26px 24px;
  text-align: left;
  box-shadow: var(--rbr-shadow);
  animation: rbr-rise 700ms ease-out both;
}
.rbr-close-card.kept     { animation-delay: 120ms; }
.rbr-close-card.let-go   { animation-delay: 240ms; background: var(--rbr-paper); }
.rbr-close-card .seal {
  position: absolute;
  top: -14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1.5px solid var(--rbr-ink);
  background: var(--rbr-lilac);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rbr-ink);
  box-shadow: var(--rbr-shadow-sm);
}
.rbr-close-card.let-go .seal {
  background: #fff;
  color: rgba(14,25,45,0.6);
}
.rbr-close-card .seal .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rbr-purple);
  flex-shrink: 0;
  display: block;
}
.rbr-close-card.let-go .seal .dot { background: rgba(14,25,45,0.35); }
.rbr-close-card .lbl {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rbr-purple);
  margin-bottom: 10px;
}
.rbr-close-card.let-go .lbl { color: rgba(14,25,45,0.55); }
.rbr-close-card .val {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--rbr-ink);
  letter-spacing: -0.005em;
}
.rbr-close-card.let-go .val {
  font-style: italic;
  color: rgba(14,25,45,0.78);
  text-decoration: line-through;
  text-decoration-color: rgba(14,25,45,0.35);
  text-decoration-thickness: 1px;
}

/* signoff envelope */
.rbr-close-signoff {
  position: relative;
  margin-top: 14px;
  padding: 18px 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: rbr-rise 700ms ease-out 360ms both;
}
.rbr-close-signoff::before,
.rbr-close-signoff::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--rbr-lilac-stroke);
}
.rbr-close-signoff::before { left: -42px; }
.rbr-close-signoff::after  { right: -42px; }
.rbr-close-signoff .from {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14,25,45,0.5);
}
.rbr-close-signoff .text {
  font-family: 'Isla', cursive;
  font-size: 56px;
  line-height: 0.95;
  color: var(--rbr-purple);
}

@keyframes rbr-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
