/* Planning Poker — UI redesign (design handoff "Planning Poker Redesign v2").
   Editorial serif display (Source Serif 4) + Inter UI, Material Blue primary,
   card-based layout, subtle motion. Every class/id hook used by dashboard.js,
   prepare.js, room.js, retro.js and item-meta.js is preserved. */

:root {
  /* Core brand */
  --pp-primary:        #1976D2;
  --pp-primary-hover:  #1565C0;
  --pp-primary-light:  #E3F2FD;
  --pp-green:          #388E3C;
  --pp-green-hover:    #2E7D32;
  --pp-green-light:    #E8F5E9;
  --pp-red:            #D32F2F;
  --pp-red-light:      #FFEBEE;
  --pp-red-border:     #f3caca;
  --pp-warn:           #F57C00;
  --pp-warn-light:     #FFF3E0;
  --pp-warn-border:    #f5d9b8;
  --pp-neutral-border: #dbe3ea;

  /* The felt table */
  --pp-felt:        #1e4d36;
  --pp-felt-rail:   #2f6b4c;
  --pp-felt-text:   #a8cbb6;
  --pp-felt-accent: #9fe0b5;
  --pp-felt-you:    #7db3ea;

  /* AI agent surfaces */
  --pp-teal:        #00897B;
  --pp-teal-light:  #E0F2F1;
  --pp-teal-border: #b2dfdb;
  --pp-teal-text:   #00695C;
  --pp-teal-ink:    #004D40;

  /* Ink / text */
  --pp-ink:            #1a1a2e;
  --pp-text:           #363636;
  --pp-grey:           #7a7a7a;
  --pp-grey-light:     #b5b5b5;
  --pp-grey-lighter:   #dbdbdb;
  --pp-grey-faint:     #c9c9c9;

  /* Surfaces / borders */
  --pp-bg-app:         #f8f9fa;
  --pp-bg-warm:        #faf8f5;
  --pp-bg-cool:        #f0f4f8;
  --pp-bg-inset:       #fcfcfc;
  --pp-white:          #ffffff;
  --pp-border:         #e8e8e8;
  --pp-border-light:   #f0f0f0;
  --pp-border-input:   #dbdbdb;
  --pp-border-header:  #ebebeb;

  /* Type */
  --pp-display: "Source Serif 4", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --pp-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii / shadow */
  --pp-radius:      6px;
  --pp-radius-md:   8px;
  --pp-radius-card: 10px;
  --pp-radius-lg:   12px;
  --pp-radius-full: 9999px;
  --pp-shadow-card: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
  --pp-shadow-float: 0 20px 60px rgba(0, 0, 0, 0.14);
  --pp-shadow-picked: 0 14px 26px -8px rgba(25, 118, 210, 0.55);
  --pp-focus-ring: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--pp-sans);
  background: var(--pp-bg-app);
  color: var(--pp-text);
  -webkit-font-smoothing: antialiased;
}

@keyframes pp-rise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pp-pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pp-pulse { 0% { box-shadow: 0 0 0 0 rgba(56, 142, 60, 0.35); } 100% { box-shadow: 0 0 0 14px rgba(56, 142, 60, 0); } }
@keyframes pp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes pp-flip { from { transform: rotateY(90deg); opacity: 0; } to { transform: rotateY(0); opacity: 1; } }

/* ── Header (fragments/header.html) ─────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  height: 64px;
  background: var(--pp-white);
  border-bottom: 1px solid var(--pp-border-header);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--pp-ink);
  text-decoration: none;
  white-space: nowrap;
}
.app-brand span { font-size: 21px; }
.app-nav { display: flex; align-items: stretch; gap: 4px; height: 64px; margin-left: 18px; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pp-grey);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.app-nav a i { font-size: 13px; }
.app-nav a:hover { color: var(--pp-ink); }
.app-nav a[aria-current="page"] { color: var(--pp-ink); border-bottom-color: var(--pp-primary); }
.app-header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.header-rule { width: 1px; height: 26px; background: var(--pp-border); flex: none; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pp-radius);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-grey);
  text-decoration: none;
}
.header-link:hover, .header-link[aria-current="page"] { background: #f5f5f5; color: var(--pp-ink); }
.header-link i { color: var(--pp-warn); }
.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-ink);
  text-decoration: none;
}
.header-chip:hover { border-color: var(--pp-primary); }
.header-chip img { width: 20px; height: 28px; border-radius: 4px; object-fit: cover; }
button.header-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--pp-radius);
  background: transparent;
  color: var(--pp-grey);
  font-size: 14px;
}
button.header-icon-btn:hover { background: #f5f5f5; color: var(--pp-ink); }
.header-room { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-room-name {
  min-width: 0;
  font-family: var(--pp-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--pp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--pp-radius-full);
  white-space: nowrap;
}
.room-kind.poker { background: var(--pp-primary-light); color: var(--pp-primary-hover); }
.room-kind.retro { background: var(--pp-green-light); color: var(--pp-green-hover); }
.app-header .badge { padding: 4px 11px; }
button.header-invite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  white-space: nowrap;
}
.header-outline, .header-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-border-input);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-outline:hover { background: #f5f5f5; }
.header-outline i { color: var(--pp-primary); }
.header-dark { background: var(--pp-ink); border-color: var(--pp-ink); color: var(--pp-white); }
.header-dark:hover { background: #2c2c48; }
.header-thumb { display: inline-flex; border-radius: 4px; flex: none; }
.header-thumb img { width: 24px; height: 33px; border-radius: 4px; object-fit: cover; box-shadow: 0 1px 3px rgba(26, 26, 46, 0.2); }
.landing-anchors { display: flex; gap: 4px; margin-left: 18px; }
.landing-anchors a { padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--pp-grey); text-decoration: none; }
.landing-anchors a:hover { color: var(--pp-ink); }
@media (max-width: 800px) {
  .app-header { padding: 0 12px; gap: 8px; }
  .app-nav { margin-left: 4px; }
  .app-nav a { padding: 0 8px; }
  .app-nav a i, .header-link, .header-chip span, .header-room-name, .landing-anchors,
  .app-header .header-rule, .header-outline { display: none; }
  .header-chip { padding: 4px; }
}
@media (max-width: 480px) {
  .app-brand { font-size: 0; gap: 0; }
  .room-kind { display: none; }
}

.inline-form { display: inline-flex; margin: 0; }

/* ── Page scaffolding ──────────────────────────────────────────── */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}
.page-title {
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--pp-ink);
  margin: 0 0 6px;
}
.page-title .muted { color: var(--pp-grey-light); font-weight: 400; }
.page-sub {
  font-size: 15.5px;
  color: var(--pp-grey);
  line-height: 1.5;
  margin: 0 0 26px;
  max-width: 64ch;
}
.card {
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-card);
}

/* !important so it also wins over flex/grid utility blocks */
.hidden { display: none !important; }

/* Kicker — small uppercase section label */
.kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pp-grey);
  margin: 0 0 10px;
}

/* ── Forms & buttons ───────────────────────────────────────────── */
form { display: flex; gap: 10px; flex-wrap: wrap; }

input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  background: var(--pp-white);
  color: var(--pp-text);
  font-family: var(--pp-sans);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder { color: var(--pp-grey-light); }
input[type="text"]:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: var(--pp-focus-ring);
}

textarea {
  padding: 10px 12px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  font-family: var(--pp-sans);
  font-size: 14px;
  background: var(--pp-white);
  color: var(--pp-ink);
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
textarea::placeholder { color: var(--pp-grey-light); }
textarea:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: var(--pp-focus-ring);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 38px 12px 14px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  background: var(--pp-white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23757575' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  color: var(--pp-ink);
  font-family: var(--pp-sans);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
select:hover { border-color: var(--pp-grey-light); }
select:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: var(--pp-focus-ring);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--pp-radius);
  background: var(--pp-primary);
  color: #fff;
  font-family: var(--pp-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
button:hover { background: var(--pp-primary-hover); }
button:disabled { background: var(--pp-grey-lighter); color: #fff; cursor: default; }

button.secondary {
  background: var(--pp-white);
  color: var(--pp-ink);
  border: 1px solid var(--pp-border-input);
}
button.secondary:hover { background: #f5f5f5; }
button.secondary i { color: var(--pp-primary); }

/* Danger = outline red (destructive but quiet) */
button.danger {
  background: var(--pp-white);
  color: var(--pp-red);
  border: 1px solid var(--pp-red-border);
}
button.danger:hover { background: var(--pp-red-light); }
button.danger i { color: var(--pp-red); }

/* ── Landing (index.html + js/landing.js) ──────────────────────── */
.lp-hero { background: var(--pp-bg-warm); padding: 72px 8% 64px; }
.lp-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}
.lp-hero .kicker { margin: 0 0 14px; }
.lp-hero-title {
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--pp-ink);
  margin: 0 0 18px;
  text-wrap: balance;
}
.lp-hero-title .accent { color: var(--pp-primary); }
.lp-hero-lede { font-size: 18px; color: var(--pp-grey); line-height: 1.55; margin: 0 0 30px; max-width: 46ch; text-wrap: pretty; }
.lp-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--pp-radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.lp-btn.github { background: #24292e; color: #fff; }
.lp-btn.github:hover { background: #1a1e22; }
.lp-btn.google { padding: 13px 25px; background: var(--pp-white); border: 1px solid var(--pp-border-input); color: var(--pp-ink); }
.lp-btn.google:hover { background: #f5f5f5; }
.lp-btn.google i { color: var(--pp-red); }
.lp-hint { color: var(--pp-grey); font-size: 14px; margin: 16px 0 0; }
.lp-hint b { color: var(--pp-ink); font-weight: 600; }

/* Hero: three stacked browser windows, one active */
.lp-stack { position: relative; width: 100%; aspect-ratio: 6 / 5; }
.lp-stack svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-stack path { fill: none; stroke: var(--pp-primary); stroke-opacity: 0.18; stroke-width: 22; stroke-linecap: round; }
.lp-win {
  position: absolute;
  width: 58%;
  cursor: pointer;
  background: var(--pp-white);
  border: 1px solid #ddd;
  border-radius: var(--pp-radius-lg);
  overflow: hidden;
  opacity: 0.9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform .35s ease, box-shadow .35s ease, opacity .35s;
}
.lp-win[data-step="0"] { left: 0; top: 44%; z-index: 1; }
.lp-win[data-step="1"] { left: 21%; top: 22%; z-index: 2; }
.lp-win[data-step="2"] { left: 42%; top: 0; z-index: 3; }
.lp-win.is-active { transform: translateY(-10px) scale(1.04); z-index: 5; opacity: 1; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); }
.lp-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #f5f5f5; border-bottom: 1px solid var(--pp-border); }
.lp-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; flex: none; }
.lp-bar > span:nth-child(2) { background: #febc2e; }
.lp-bar > span:nth-child(3) { background: #27c93f; }
.lp-bar em {
  margin-left: 6px;
  flex: 1;
  min-width: 0;
  background: var(--pp-white);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-full);
  padding: 2px 9px;
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  color: var(--pp-grey);
  white-space: nowrap;
  overflow: hidden;
}
.lp-bar.big { gap: 8px; padding: 10px 14px; }
.lp-bar.big > span { width: 11px; height: 11px; }
.lp-bar.big em { margin-left: 10px; padding: 4px 14px; font-size: 11px; }
.lp-win-body { padding: 10px; background: var(--pp-bg-app); }
.lp-win-title { margin: 0 0 8px; font-family: var(--pp-display); font-weight: 700; font-size: 14px; color: var(--pp-ink); }
.teal { --lp-accent: var(--pp-teal); }
.blue { --lp-accent: var(--pp-primary); }
.pink { --lp-accent: #C2185B; }
.lp-win-title b { color: var(--lp-accent); }
.lp-mini-prep { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.lp-mini-chat, .lp-mini-agenda { background: var(--pp-white); border: 1px solid var(--pp-border); border-radius: var(--pp-radius-md); padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.lp-mini-label { font-size: 8.5px; font-weight: 600; color: var(--pp-grey); text-transform: uppercase; letter-spacing: .06em; }
.lp-mini-label i { color: var(--pp-teal); }
.lp-mini-chat .lp-bubble { font-size: 9px; padding: 5px 7px; }
.lp-mini-agenda { gap: 4px; padding: 6px 7px; }
.lp-mini-agenda div { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--pp-ink); padding: 2px 0; border-bottom: 1px solid var(--pp-border-light); }
.lp-mini-agenda i { font-size: 8px; width: 9px; }
.lp-mini-agenda b { font-weight: 600; }
.lp-mini-agenda span { flex: 1; height: 4px; border-radius: 2px; background: #ececec; }
i.t-story { color: var(--pp-green); }
i.t-bug { color: var(--pp-red); }
i.t-task { color: var(--pp-primary); }
i.t-risk { color: var(--pp-warn); }
.lp-mini-table { position: relative; height: 128px; }
.lp-mini-felt {
  position: absolute;
  inset: 18px 14%;
  border-radius: var(--pp-radius-full);
  background: var(--pp-felt);
  border: 5px solid var(--pp-felt-rail);
  box-shadow: inset 0 3px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.lp-mini-felt { flex-direction: column; gap: 4px; }
.lp-mini-bars { display: flex; gap: 2px; }
.lp-mini-bars i { width: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.lp-mini-bars i.on { background: #7ed39a; }
.lp-mini-voted { font-size: 8px; font-weight: 600; color: #fff; }
.lp-mini-card { position: absolute; width: 18px; height: 25px; border-radius: 3px; background-size: cover; background-position: center; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.lp-mini-card.empty { border: 1px dashed #c3d3c9; background: rgba(255, 255, 255, 0.6); box-shadow: none; }
.lp-mini-card.mine { outline: 1.5px solid var(--pp-primary); }
.lp-mini-card.top { left: 50%; top: 0; transform: translateX(-50%); }
.lp-mini-card.right { right: 6%; top: 40%; }
.lp-mini-card.bottom { left: 50%; bottom: 0; transform: translateX(-50%); }
.lp-mini-card.left { left: 6%; top: 40%; }
.lp-mini-retro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-mini-retro > div { background: var(--pp-white); border-radius: var(--pp-radius); border-top: 3px solid var(--lp-suit); padding: 5px; display: flex; flex-direction: column; gap: 4px; min-height: 112px; }
.lp-mini-retro > div > span { font-size: 8.5px; font-weight: 700; color: var(--pp-ink); }
.lp-mini-retro > div > span i { font-style: normal; color: var(--lp-suit); }
.lp-mini-retro p { margin: 0; background: var(--pp-white); border: 1px solid #eee; border-radius: 5px; padding: 4px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 1px 3px rgba(10, 10, 10, 0.06); }
.lp-mini-retro em { height: 3px; border-radius: 2px; background: #e4e4e4; }
.lp-mini-retro em + em { width: 60%; }
.lp-mini-retro small { font-size: 7.5px; color: var(--pp-grey); }
.spades { --lp-suit: var(--pp-green); }
.hearts { --lp-suit: var(--pp-red); }
.clubs { --lp-suit: var(--pp-primary); }
.diamonds { --lp-suit: var(--pp-warn); }

.lp-steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.lp-steps > i { color: var(--pp-grey-light); font-size: 12px; }
button.lp-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--pp-radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--pp-ink);
  font-size: 14px;
  transition: background .2s, border-color .2s;
}
button.lp-step:hover { background: rgba(255, 255, 255, 0.6); }
button.lp-step span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pp-grey-light); color: #fff; font-size: 11px; }
button.lp-step.is-active { background: var(--pp-white); border-color: var(--pp-border-input); }
button.lp-step.is-active span { background: var(--lp-accent); }
.lp-caption { text-align: center; font-size: 13.5px; color: var(--pp-grey); line-height: 1.5; margin: 12px 0 0; min-height: 20px; }
.lp-caption span:not(.is-active) { display: none; }

/* Feature blocks */
.lp-feature { background: var(--pp-white); padding: 96px 8%; }
.lp-feature.warm { background: var(--pp-bg-warm); }
.lp-feature-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.lp-feature-inner.reverse { flex-wrap: wrap-reverse; }
.lp-feature-text { flex: 1 1 320px; min-width: 0; }
.lp-feature-text .kicker { margin: 20px 0 10px; }
.lp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-accent);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 5px 12px -4px rgba(0, 0, 0, 0.28);
}
.lp-title { font-family: var(--pp-display); font-weight: 700; font-size: 34px; letter-spacing: -0.01em; line-height: 1.15; color: var(--pp-ink); margin: 0 0 14px; }
.lp-lede { font-size: 17px; color: var(--pp-text); line-height: 1.6; margin: 0 0 22px; max-width: 46ch; text-wrap: pretty; }
.lp-lede b { font-weight: 600; color: var(--pp-ink); }
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--pp-grey); }
.lp-checks li { display: flex; gap: 10px; align-items: baseline; }
.lp-checks i { color: var(--pp-green); }
.lp-mock { flex: 1.6 1 460px; min-width: 0; background: var(--pp-white); border: 1px solid #ddd; border-radius: var(--pp-radius-lg); box-shadow: var(--pp-shadow-float); overflow: hidden; }
.lp-bubble { font-size: 14px; line-height: 1.45; padding: 10px 13px; }
.lp-bubble.me { align-self: flex-end; max-width: 88%; background: var(--pp-primary); color: #fff; border-radius: 12px 12px 3px 12px; }
.lp-bubble.agent { align-self: flex-start; background: var(--pp-bg-cool); color: var(--pp-text); border-radius: 12px 12px 12px 3px; }
.lp-mini-chat .lp-bubble.me, .lp-mini-chat .lp-bubble.agent { border-radius: 8px; line-height: 1.35; }
.lp-prep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); background: var(--pp-bg-app); }
.lp-prep .kicker { margin: 0; }
.lp-prep-chat { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--pp-border); background: var(--pp-white); }
.lp-prep-chat .kicker i { color: var(--pp-teal); margin-right: 6px; }
.lp-prep-reply { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.lp-prep.is-empty .lp-prep-reply { display: none; }
.lp-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--pp-teal-text); background: var(--pp-teal-light); border-radius: var(--pp-radius); padding: 5px 9px; }
.lp-tool b { font-weight: 400; }
button.lp-outline, button.lp-primary { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
button.lp-outline { margin-top: auto; align-self: flex-start; padding: 8px 14px; background: var(--pp-white); border: 1px solid var(--pp-border-input); color: var(--pp-ink); font-size: 13px; }
button.lp-outline:hover { background: #f5f5f5; }
button.lp-outline i { color: var(--pp-primary); }
.lp-prep-agenda { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 340px; }
.lp-prep-agenda .kicker { display: flex; justify-content: space-between; margin-bottom: 2px; }
.lp-prep-item { background: var(--pp-white); border: 1px solid var(--pp-border); border-radius: var(--pp-radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04); }
.lp-prep-item[hidden] { display: none; }
.lp-prep-item p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--pp-grey); }
.lp-prep-item a { color: var(--pp-primary); white-space: nowrap; text-decoration: none; }
.lp-prep-item a i { font-size: 9px; }
.lp-prep-item b { font-family: var(--pp-display); font-weight: 600; font-size: 15px; color: var(--pp-ink); line-height: 1.3; }
.lp-risk { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: #E65100; background: var(--pp-warn-light); border: 1px solid var(--pp-warn-border); border-radius: var(--pp-radius-full); padding: 2px 9px; }

.lp-est { display: flex; flex-wrap: wrap; background: var(--pp-bg-app); }
.lp-est-table { flex: 1.4 1 300px; min-width: 0; padding: 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lp-est-box { position: relative; width: 100%; max-width: 420px; height: 300px; }
.lp-est-felt {
  position: absolute;
  inset: 48px 40px;
  border-radius: var(--pp-radius-full);
  background: var(--pp-felt);
  border: 8px solid var(--pp-felt-rail);
  box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.35), 0 18px 40px -16px rgba(20, 70, 40, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  color: #fff;
}
.lp-est-felt p { margin: 0; font-size: 13px; font-weight: 600; }
.lp-est-felt small { font-size: 11px; color: var(--pp-felt-text); }
.lp-est-kicker { font-size: 10px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-felt-text); }
.lp-est-name { margin: 4px 0 8px !important; font-family: var(--pp-display); font-weight: 700 !important; font-size: 16px !important; line-height: 1.2; }
.vote-bars { display: flex; gap: 3px; justify-content: center; margin-bottom: 6px; }
.vote-bars span { width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.vote-bars span.on { background: #7ed39a; }
.vote-bars span.mine { background: #90CAF9; }
.lp-est-shown, .lp-est-table.is-revealed .lp-est-hidden { display: none; }
.lp-est-table.is-revealed .lp-est-shown { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: pp-pop .35s ease both; animation-delay: .5s; }
.lp-verdict { display: flex; align-items: center; gap: 10px; }
.lp-verdict-card { width: 32px; height: 45px; border-radius: 5px; background: #fff; color: var(--pp-ink); display: flex; align-items: center; justify-content: center; font-family: var(--pp-display); font-weight: 700; font-size: 17px; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.6); }
.lp-verdict-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.lp-verdict-text b { font-size: 11.5px; }
.lp-agree { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: var(--pp-radius-full); background: var(--pp-green-light); color: var(--pp-green-hover); font-size: 10px; font-weight: 700; }
.lp-stepper { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 8px; border-radius: var(--pp-radius-full); background: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5); }
.lp-stepper-value { display: inline-flex; align-items: center; gap: 5px; color: var(--pp-grey); font-size: 8px; }
.lp-stepper-value b { min-width: 22px; height: 20px; border-radius: 4px; background: #f1f8f3; display: inline-flex; align-items: center; justify-content: center; font-family: var(--pp-display); font-size: 12px; color: var(--pp-ink); }
.lp-finalize { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--pp-radius-full); background: var(--pp-green); color: #fff; font-size: 10px; font-weight: 600; }
.lp-est-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lp-flip, .lp-slot { position: relative; width: 38px; height: 54px; }
.lp-slot { display: none; align-items: center; justify-content: center; border-radius: 6px; border: 1.5px dashed #c3d3c9; color: #9fb5a8; font-size: 10px; background: rgba(255, 255, 255, 0.6); }
.lp-est-seat[data-state="empty"] .lp-slot { display: flex; }
.lp-est-seat[data-state="empty"] .lp-flip { display: none; }
.lp-flip { transform-style: preserve-3d; transform: rotateY(180deg); transition: transform .55s cubic-bezier(.3, .75, .35, 1.08); }
.lp-est-seat[data-state="down"] .lp-flip { transform: rotateY(180deg) translateY(-3px); }
.lp-est-seat[data-state="up"] .lp-flip { transform: rotateY(0deg); }
.lp-est-seat:nth-child(3) .lp-flip { transition-delay: .07s; }
.lp-est-seat:nth-child(4) .lp-flip { transition-delay: .14s; }
.lp-est-seat:nth-child(5) .lp-flip { transition-delay: .21s; }
.lp-est-seat:nth-child(6) .lp-flip { transition-delay: .28s; }
.lp-flip > span { position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, 0.55); }
.lp-flip .face { background: var(--pp-white); display: flex; align-items: center; justify-content: center; font-family: var(--pp-display); font-weight: 700; font-size: 19px; color: var(--pp-ink); }
.lp-flip .face.red { color: var(--pp-red); }
.lp-flip .face i { position: absolute; top: 3px; left: 4px; display: flex; flex-direction: column; align-items: center; font-style: normal; font-size: 8px; line-height: 1; }
.lp-flip .face i.br { top: auto; left: auto; right: 4px; bottom: 3px; transform: rotate(180deg); }
.lp-flip .face small { font-size: 7px; }
.lp-flip .back { transform: rotateY(180deg); background-size: cover; background-position: center; border: 2px solid #fff; }
.lp-est-seat.mine .lp-flip, .lp-est-seat.mine .lp-slot { border-radius: 6px; box-shadow: 0 0 0 2px var(--pp-primary); }
.lp-check { position: absolute; top: -5px; right: -6px; width: 14px; height: 14px; border-radius: 4px; background: var(--pp-green); color: #fff; display: none; align-items: center; justify-content: center; font-size: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.lp-est-seat[data-state="down"] .lp-check { display: inline-flex; }
.lp-seat-label { padding: 1px 7px; border-radius: var(--pp-radius-full); background: var(--pp-white); box-shadow: 0 1px 3px rgba(10, 10, 10, 0.12); font-size: 10.5px; font-weight: 600; color: var(--pp-ink); white-space: nowrap; }
.lp-seat-label small { font-size: 9.5px; color: var(--pp-green-hover); }
.lp-est-seat.mine .lp-seat-label small { color: var(--pp-primary); }
.lp-est-seat[data-state="empty"] .lp-seat-label small { color: var(--pp-grey); font-style: italic; }
.lp-est-concerns { flex: 1 1 220px; min-width: 0; padding: 16px; background: var(--pp-white); border-left: 1px solid var(--pp-border); display: flex; flex-direction: column; gap: 10px; }
.lp-est-concerns .kicker { margin: 0; display: flex; align-items: center; gap: 8px; }
.lp-est-concerns .kicker i { color: var(--pp-primary); }
.lp-concern { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--pp-border-light); }
.lp-concern.reply { margin: 4px 0 0 18px; padding-top: 6px; }
.lp-concern-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.lp-concern-head img { width: 14px; height: 20px; border-radius: 2px; object-fit: cover; }
.lp-concern-head b { font-weight: 600; color: var(--pp-ink); }
.lp-concern-head small { margin-left: auto; font-size: 10.5px; color: var(--pp-grey-light); }
.lp-concern p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--pp-text); }
.lp-concern-acts { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--pp-grey); }
.lp-chip { padding: 1px 7px; border-radius: var(--pp-radius-full); background: #f5f5f5; color: var(--pp-ink); }
.lp-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: var(--pp-radius-full); white-space: nowrap; }
.lp-tag i { font-size: 8.5px; }
.lp-tag.impediment { background: var(--pp-red-light); color: #C62828; }
.lp-tag.shortcut { background: var(--pp-warn-light); color: #E65100; }
.lp-tag.overcomplication { background: #f3e8ff; color: #6b21a8; }
.lp-tag.requirement { background: var(--pp-primary-light); color: var(--pp-primary-hover); }
.lp-composer { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--pp-border-light); }
.lp-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.lp-pills .lp-tag { opacity: .55; }
.lp-pills .lp-tag.on { opacity: 1; box-shadow: inset 0 0 0 1px currentColor; }
.lp-fake-input { border: 1px solid var(--pp-border-input); border-radius: var(--pp-radius); padding: 7px 10px; font-size: 11.5px; color: var(--pp-grey-light); }
.lp-fake-btn { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--pp-radius); background: #b5cde6; color: #fff; font-size: 11.5px; font-weight: 600; }

.lp-retro { padding: 16px; background: var(--pp-bg-app); }
.lp-retro-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; align-items: start; }
.lp-retro-col { background: var(--pp-white); border-radius: var(--pp-radius-card); border-top: 4px solid var(--lp-suit); padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.08); }
.lp-retro-col > p { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 13px; line-height: 1.25; color: var(--pp-ink); }
.lp-retro-col > p i { font-style: normal; color: var(--lp-suit); margin-right: 5px; }
.lp-retro-col > p small { font-family: var(--pp-sans); font-weight: 600; font-size: 11px; color: var(--pp-grey-light); margin-left: 4px; }
.lp-retro-card { position: relative; background: var(--pp-white); border: 1px solid #ececec; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 6px rgba(10, 10, 10, 0.06); }
.lp-retro-card > i { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 10px; color: var(--lp-suit); opacity: .7; }
.lp-retro-card > p { margin: 0; padding-right: 12px; font-size: 12px; line-height: 1.4; color: var(--pp-text); }
.lp-retro-meta { display: flex; align-items: center; gap: 5px; font-size: 10.5px; }
.lp-retro-meta img { width: 12px; height: 17px; border-radius: 2px; object-fit: cover; }
.lp-retro-meta b { font-weight: 600; color: var(--pp-ink); }
.lp-retro-meta small { font-size: 10px; color: var(--pp-grey-light); }
.lp-retro-acts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
button.lp-react { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: var(--pp-radius-full); border: 1px solid transparent; background: #f5f5f5; color: var(--pp-ink); font-size: 10.5px; }
button.lp-react b { font-weight: 600; }
button.lp-react.on { background: var(--pp-primary-light); border-color: #90CAF9; }
.lp-smile { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--pp-border); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #9e9e9e; }
.lp-comments { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--pp-grey-light); }

.lp-guests { background: var(--pp-bg-cool); padding: 80px 8%; }
.lp-guests > div { max-width: 880px; margin: 0 auto; }
.lp-guests .kicker { margin: 0 0 10px; }
.lp-guests .lp-title { margin-bottom: 8px; }
.lp-guests .lp-lede { max-width: 52ch; margin: 8px 0 0; }
.lp-closing { background: var(--pp-bg-warm); padding: 72px 8%; text-align: center; }
.lp-closing .lp-title { margin-bottom: 24px; }
.lp-closing .lp-cta { justify-content: center; }

@media (max-width: 900px) {
  .lp-hero, .lp-feature, .lp-guests, .lp-closing { padding: 48px 16px; }
  .lp-est-concerns { border-left: none; border-top: 1px solid var(--pp-border); }
  .lp-prep-chat { border-right: none; border-bottom: 1px solid var(--pp-border); }
}

/* ── Guest join / error panels (room.html states) ──────────────── */
.panel {
  max-width: 560px;
  margin: 3.5rem auto;
  padding: 32px 34px;
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-card);
  text-align: center;
}
.panel h2 {
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--pp-ink);
  margin: 0 0 8px;
}
.panel > p { font-size: 16px; color: var(--pp-grey); line-height: 1.5; margin: 0 0 20px; }
.panel form { justify-content: center; }
.join-divider { color: var(--pp-grey-light); font-size: 13px; margin: 14px 0 10px; }

/* ── Prompt / confirm dialog (native <dialog>) ─────────────────── */
.pp-dialog {
  border: none;
  border-radius: var(--pp-radius-lg);
  padding: 28px 30px;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--pp-white);
  box-shadow: var(--pp-shadow-card);
  color: var(--pp-ink);
}
.pp-dialog::backdrop { background: rgba(26, 26, 46, .45); }
.pp-dialog[open] { animation: pp-dialog-in .12s ease-out; }
@keyframes pp-dialog-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
.pp-dialog form { display: block; } /* undo global `form { display:flex }` */
.pp-dialog label {
  display: block;
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pp-ink);
}
.pp-dialog input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  font-family: var(--pp-sans);
  font-size: 15px;
}
.pp-dialog input:focus { outline: none; border-color: var(--pp-primary); box-shadow: var(--pp-focus-ring); }
.pp-dialog p { margin: 0; font-size: 16px; line-height: 1.5; }
.pp-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ── Live / connection badge ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--pp-radius-full);
  background: #eef1f4;
  color: var(--pp-grey);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.badge.live { background: var(--pp-green-light); color: var(--pp-green); }
.badge.live::before { animation: pp-blink 2.4s ease infinite; }
.badge.disconnected { background: var(--pp-red-light); color: var(--pp-red); }

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hint { color: var(--pp-grey); font-size: 14px; }
#save-hint { color: var(--pp-green); font-weight: 500; }
.empty-row { font-size: 14px; color: var(--pp-grey-light); margin: 0; padding: 18px; text-align: center; }
.issue-icon { flex: none; font-size: 14px; }

/* Small square risk chips (22px prepare rows, 20px room sidebar) */
.risk-line { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.risk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
}
.risk-chip.danger { background: var(--pp-red-light); color: var(--pp-red); }
.risk-chip.warn { background: var(--pp-warn-light); color: var(--pp-warn); }
.risk-chip.ok { background: var(--pp-green-light); color: var(--pp-green); }
.risk-chip.neutral { background: var(--pp-bg-cool); color: var(--pp-grey); }

/* Room hero pill chips (icon + text label) */
.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--pp-radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.risk-pill i { font-size: 11px; }
.risk-pill.danger { background: var(--pp-red-light); color: var(--pp-red); }
.risk-pill.warn { background: var(--pp-warn-light); color: var(--pp-warn); }
.risk-pill.ok { background: var(--pp-green-light); color: var(--pp-green); }
.risk-pill.neutral { background: var(--pp-bg-cool); color: var(--pp-grey); }

/* Instant CSS tooltip on anything carrying data-tip (native title is too shy) */
[data-tip] { position: relative; }
[data-tip]:hover { z-index: 30; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--pp-ink);
  color: var(--pp-white);
  font-family: var(--pp-sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 60;
  pointer-events: none;
}

/* Risk picker: one row of icon buttons per risk dimension, inset panel */
.risk-groups {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--pp-border-light);
  border-radius: var(--pp-radius-md);
  padding: 10px 14px;
  background: var(--pp-bg-inset);
}
.risk-group { display: flex; align-items: center; gap: 6px; min-height: 38px; }
.risk-group-label { width: 122px; flex: none; font-size: 12px; font-weight: 600; color: var(--pp-grey); margin-right: 4px; }
.risk-group-value { font-size: 12.5px; font-weight: 400; color: var(--pp-grey-light); margin-left: 4px; }
.risk-group-value.assessed { font-weight: 600; }
.risk-group-value.sev-danger { color: var(--pp-red); }
.risk-group-value.sev-warn { color: var(--pp-warn); }
.risk-group-value.sev-ok { color: var(--pp-green); }
.risk-group-value.sev-neutral { color: var(--pp-grey); }
.risk-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  background: var(--pp-white);
  border: 1.5px solid var(--pp-border);
  border-radius: var(--pp-radius);
  color: var(--pp-grey-light);
  font-size: 12px;
  transition: background .15s, border-color .15s, color .15s;
}
.risk-btn:hover { border-color: var(--pp-primary); background: var(--pp-white); }
.risk-btn.active.sev-danger { background: var(--pp-red-light); border-color: var(--pp-red); color: var(--pp-red); }
.risk-btn.active.sev-danger i { color: var(--pp-red); }
.risk-btn.active.sev-warn { background: var(--pp-warn-light); border-color: var(--pp-warn); color: var(--pp-warn); }
.risk-btn.active.sev-ok { background: var(--pp-green-light); border-color: var(--pp-green); color: var(--pp-green); }
.risk-btn.active.sev-neutral { background: var(--pp-bg-cool); border-color: var(--pp-grey); color: var(--pp-grey); }

/* ── Room layout ───────────────────────────────────────────────── */
/* Current item hero */
.story {
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-card);
  padding: 24px 28px;
  margin-bottom: 22px;
}
#item-counter {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pp-grey);
  margin: 0;
  min-height: 15px;
}
/* Risk chip line under the hero title */
.story-risks { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
/* Description: folded to ~4 lines with a fade; the toggle only renders when it overflows. */
.story-desc { margin-top: 10px; color: var(--pp-text); overflow-wrap: anywhere; }
.story-desc.folded { max-height: 6em; overflow: hidden; }
.story-desc.fades { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.story-desc-toggle { margin-top: 6px; padding: 0; border: none; background: none; color: var(--pp-primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.story-desc-toggle:hover { color: var(--pp-primary-hover); }
.risk-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border: 1px dashed var(--pp-grey-faint);
  border-radius: var(--pp-radius-full);
  background: var(--pp-white);
  color: var(--pp-grey);
  font-size: 12px;
  font-weight: 600;
}
.risk-edit-btn i { font-size: 10px; }
.risk-edit-btn:hover { background: var(--pp-white); border-color: var(--pp-primary); color: var(--pp-primary); }

/* Room page: inline risk editor for the current item (owner only) */
.risk-editor {
  margin-top: 14px;
  border: 1px solid var(--pp-border-light);
  border-radius: var(--pp-radius-md);
  padding: 12px 16px;
  background: var(--pp-bg-inset);
  animation: pp-rise .25s ease both;
}
.risk-editor .risk-groups { border: none; background: transparent; padding: 0; }
.risk-editor .risk-group { min-height: 36px; }
.risk-editor .risk-btn { width: 28px; height: 28px; font-size: 11.5px; }
.risk-editor .risk-group-value { font-size: 12px; }
.risk-editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--pp-border-light);
  padding-top: 12px;
}
.risk-editor-actions button { padding: 9px 16px; font-size: 13.5px; }

/* The table — deep felt so the cards (and the reveal) get real contrast */
#voted-label { font-size: 12.5px; font-weight: 600; color: var(--pp-felt-text); }
/* One segment per seat, filled as votes come in */
.vote-segments { display: inline-flex; gap: 4px; }
.vote-segments span { width: 22px; height: 5px; border-radius: var(--pp-radius-full); background: rgba(255, 255, 255, 0.18); }
.vote-segments span.on { background: var(--pp-felt-you); }

.participants { list-style: none; padding: 0; margin: 0; }
.participants.seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.participants.seats li { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; border: none; width: 96px; }
/* Verdict bar — status banner + result chips + finalize merged into one decision point */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--pp-radius-full);
  background: var(--pp-white);
  color: var(--pp-ink);
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.08);
}
.chip.good { background: var(--pp-green-light); color: var(--pp-green); }
.chip.bad { background: var(--pp-red-light); color: var(--pp-red); }

/* Your hand — fanned in an arc; --fan (degrees) is set per card by room.js */
.deck { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; margin: 0 0 22px; }
.deck .card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 70px;
  height: 98px;
  background: var(--pp-white);
  color: var(--pp-ink);
  border: 2px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 24px;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transform-origin: 50% 130%;
  transform: rotate(calc(var(--fan, 0) * 1deg));
  transition: transform .18s ease, box-shadow .18s ease, border-color .15s, background .15s, opacity .3s;
}
.deck .card:hover:not(:disabled) { border-color: var(--pp-primary); transform: rotate(calc(var(--fan, 0) * 1deg)) translateY(-6px); background: var(--pp-white); }
.deck .card.picked {
  background: var(--pp-primary);
  color: #fff;
  border-color: var(--pp-primary);
  transform: translateY(-16px);
  box-shadow: var(--pp-shadow-picked);
}
.deck .card.picked:hover { transform: translateY(-16px); }
.deck .card:disabled { cursor: default; background: var(--pp-white); color: var(--pp-ink); }
.deck .card:disabled.picked { background: var(--pp-primary); color: #fff; }
.deck .card:disabled:not(.picked) { opacity: 0.45; }
.deck .card.pass { font-size: 17px; font-style: italic; color: var(--pp-grey); }
.deck .card.pass.picked { color: #fff; }

/* Owner controls */
#owner-controls { margin-bottom: 10px; gap: 10px; min-height: 46px; }
#owner-controls button { padding: 12px 22px; font-size: 15px; }
#owner-controls #restart-btn { padding: 11px 18px; font-size: 14.5px; }
.finalize { display: inline-flex; gap: 8px; align-items: center; animation: pp-rise .25s ease both; }
#finalize-select {
  padding: 11px 38px 11px 14px; /* room for the global select chevron */
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius);
  font-family: var(--pp-sans);
  font-size: 15px;
  background-color: var(--pp-white);
  color: var(--pp-ink);
}
#finalize-btn { background: var(--pp-green); animation: pp-pulse 1.6s ease infinite; }
#finalize-btn:hover { background: var(--pp-green-hover); }

/* ── Agenda sidebar ────────────────────────────────────────────── */
.progress-fill { height: 100%; width: 0; border-radius: var(--pp-radius-full); background: var(--pp-green); transition: width .5s ease; }

.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--pp-radius-md);
  transition: background .3s;
}
.agenda-item .issue-icon { width: 18px; flex: none; font-size: 12px; text-align: center; margin-top: 3px; }
.agenda-item .risk-line { display: inline-flex; gap: 4px; margin-top: 4px; }
.agenda-item .risk-chip { width: 20px; height: 20px; border-radius: 5px; font-size: 9.5px; }
.agenda-item.current { background: var(--pp-primary-light); }
.agenda-item.estimated .issue-icon { color: var(--pp-grey-light) !important; }
/* Quick-add an item without leaving the room */
.agenda-add-form { display: flex; gap: 8px; margin: 0 20px 16px; }
.agenda-add-form input { flex: 1; min-width: 0; }
.agenda-add-form button { padding: 9px 14px; flex: none; }

/* ── Concerns chat (right column) ──────────────────────────────── */
.concern-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Explicit 0px basis (not the 0% of `flex: 1`, which falls back to content
     size against the panel's indefinite height): the list takes leftover
     space but adds nothing to the panel's intrinsic height, so the chat
     matches the main column instead of outgrowing it; messages scroll inside. */
  flex: 1 1 0px;
  min-height: 60px;
  overflow-y: auto;
}
.concern-list .empty-row { padding: 14px 0; font-size: 13.5px; }
.concern-item {
  border: 1px solid var(--pp-border-light);
  border-radius: var(--pp-radius-md);
  padding: 12px 14px;
  animation: pp-rise .25s ease both;
}
.concern-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--pp-border);
  background: var(--pp-white);
  color: var(--pp-ink);
  border-radius: var(--pp-radius-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  font-family: var(--pp-sans);
  transition: background .15s, border-color .15s;
}
.reaction-chip:disabled { cursor: default; background: var(--pp-white); color: var(--pp-ink); }
.reaction-chip.active { border-color: var(--pp-primary); background: var(--pp-primary-light); }
.reaction-picker { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.reaction-add {
  border: 1px solid var(--pp-border);
  background: var(--pp-white);
  border-radius: var(--pp-radius-full);
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  color: var(--pp-grey-light);
  cursor: pointer;
}
.reaction-add:hover:not(:disabled) { background: var(--pp-white); color: var(--pp-grey); border-color: var(--pp-grey-faint); }
.reaction-add:disabled { background: var(--pp-white); color: var(--pp-grey-light); cursor: default; opacity: 0.45; }
/* Inline pill strip of reaction emoji, revealed by the smiley button */
.reaction-menu {
  display: inline-flex;
  gap: 2px;
  padding: 2px 6px;
  background: var(--pp-white);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-full);
  animation: pp-pop .2s ease both;
}
.reaction-menu button {
  border: none;
  background: transparent;
  font-size: 15px;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 5px;
}
.reaction-menu button:hover { background: var(--pp-primary-light); }
.reply-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--pp-primary);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--pp-sans);
  cursor: pointer;
  padding: 4px 6px;
}
.reply-btn:hover { background: transparent; color: var(--pp-primary-hover); }
.reply-btn i { margin-right: 5px; }
.concern-replies {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--pp-primary-light);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.concern-reply { border: none; padding: 0; animation: none; }
.concern-reply .concern-author { font-size: 12.5px; }
.concern-reply .concern-time { font-size: 11.5px; }
.concern-reply .concern-body { font-size: 13.5px; line-height: 1.45; }
.reply-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pp-primary-hover);
  background: var(--pp-primary-light);
  border-radius: var(--pp-radius);
  padding: 7px 11px;
  animation: pp-rise .2s ease both;
}
.reply-banner button {
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--pp-primary-hover);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.reply-banner button:hover { background: transparent; }
.concern-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.concern-author { font-weight: 600; font-size: 13px; color: var(--pp-ink); }
.concern-time { margin-left: auto; font-size: 12px; color: var(--pp-grey-light); }
.concern-body { font-size: 14px; line-height: 1.5; color: var(--pp-text); }
.concern-body p { margin: 0 0 8px; }
.concern-body p:last-child { margin-bottom: 0; }
.concern-body ul, .concern-body ol { margin: 0 0 8px; padding-left: 20px; }
.concern-body code {
  background: var(--pp-bg-cool);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.concern-body pre {
  background: var(--pp-bg-cool);
  border-radius: var(--pp-radius-md);
  padding: 10px 12px;
  overflow-x: auto;
}
/* ── Retro board (retro.html) ──────────────────────────────────── */
.retro-page { max-width: 1500px; margin: 0 auto; padding: 36px 24px 96px; }
.retro-page #members-label { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.retro-page .retro-sub { font-size: 14.5px; color: var(--pp-grey); margin: 0 0 24px; }
.retro-board {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.retro-column {
  width: 330px;
  flex: none;
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-card);
  padding: 16px;
  animation: pp-rise .25s ease both;
}
.retro-column-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; min-height: 32px; }
.retro-column-head h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--pp-ink);
}
.retro-count { font-family: var(--pp-sans); font-weight: 600; font-size: 12px; color: var(--pp-grey-light); margin-left: 4px; }
/* 28px ghost icon buttons: rename / delete column */
.col-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: none;
  border: 1px solid var(--pp-border-header);
  border-radius: var(--pp-radius);
  background: var(--pp-white);
  color: var(--pp-grey-light);
  font-size: 11px;
}
.col-btn:hover { background: var(--pp-white); color: var(--pp-primary); border-color: var(--pp-primary); }
.col-btn.col-btn-danger:hover { color: var(--pp-red); border-color: var(--pp-red-border); }
/* Inline column rename */
.retro-rename-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--pp-primary);
  border-radius: var(--pp-radius);
  font-family: var(--pp-sans);
  font-size: 14px;
  color: var(--pp-ink);
}
.retro-rename-input:focus { outline: none; box-shadow: var(--pp-focus-ring); }
.rename-save { width: 30px; height: 30px; padding: 0; flex: none; font-size: 12px; }

.retro-cards { display: flex; flex-direction: column; gap: 10px; }
.retro-card {
  border: 1px solid var(--pp-border-light);
  border-radius: var(--pp-radius-md);
  background: var(--pp-white);
  padding: 12px 14px;
  animation: pp-rise .25s ease both;
}
.retro-card-body { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--pp-text); white-space: pre-wrap; word-break: break-word; }
.retro-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.retro-card-meta .concern-author { font-size: 12px; }
.retro-card-meta .concern-time { margin-left: 0; }
/* Ghost trash on cards (author/owner only) */
.ghost-trash {
  margin-left: auto;
  width: 24px;
  height: 24px;
  padding: 0;
  flex: none;
  border: none;
  border-radius: var(--pp-radius);
  background: transparent;
  color: var(--pp-grey-faint);
  font-size: 11px;
}
.ghost-trash:hover { color: var(--pp-red); background: var(--pp-red-light); }
/* Ghost pencil on cards (author only) — same shape, primary hover */
.ghost-edit {
  margin-left: auto;
  width: 24px;
  height: 24px;
  padding: 0;
  flex: none;
  border: none;
  border-radius: var(--pp-radius);
  background: transparent;
  color: var(--pp-grey-faint);
  font-size: 11px;
}
.ghost-edit:hover { color: var(--pp-primary); background: var(--pp-primary-light); }
/* When both buttons show, the pencil carries the auto margin */
.ghost-edit + .ghost-trash { margin-left: 0; }
.retro-card .concern-actions { margin-top: 8px; gap: 5px; }
.retro-card .reaction-chip { padding: 2px 9px; }
.retro-card .reaction-add { width: 24px; height: 24px; font-size: 12px; }
/* Retro controls the viewer may not use: still shown with the reason as tooltip,
   so aria-disabled rather than :disabled (which would swallow the hover). */
.is-disabled { cursor: not-allowed; opacity: 0.45; }
.ghost-edit.is-disabled:hover, .ghost-trash.is-disabled:hover { color: var(--pp-grey-faint); background: transparent; }
.col-btn.is-disabled:hover { color: var(--pp-grey-light); border-color: var(--pp-border-header); }
.reaction-add.is-disabled:hover { color: var(--pp-grey-light); border-color: var(--pp-border); }
.reaction-chip.is-disabled { opacity: 1; }
/* Retro offers 40 reactions: an 8 x 5 grid on its own row of the card. In flow,
   not a popover, because .retro-board scrolls horizontally and would clip it. */
.retro-card .reaction-picker { display: contents; }
.retro-card .reaction-menu:not(.hidden) {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  padding: 6px;
  border-radius: var(--pp-radius-md);
}

.retro-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.retro-comment { display: flex; gap: 5px; align-items: baseline; font-size: 13px; line-height: 1.45; color: var(--pp-text); word-break: break-word; }
.retro-comment .concern-author { font-size: 13px; flex: none; }

/* Composers ("+ Add card" / "+ Comment") */
.retro-column > .retro-composer { margin-bottom: 12px; }
.retro-composer { display: flex; flex-direction: column; gap: 8px; }
.retro-composer textarea { width: 100%; font-size: 13.5px; }
.retro-composer-open {
  border: none;
  background: transparent;
  color: var(--pp-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  justify-content: flex-start;
}
.retro-composer-open:hover { background: transparent; color: var(--pp-primary-hover); }
.retro-composer-open.add-card {
  width: 100%;
  padding: 9px;
  border: 1.5px dashed var(--pp-border-input);
  border-radius: var(--pp-radius-md);
  background: transparent;
  color: var(--pp-grey);
  font-weight: 600;
  font-size: 13px;
  justify-content: center;
  transition: border-color .15s, color .15s;
}
.retro-composer-open.add-card:hover { background: transparent; border-color: var(--pp-primary); color: var(--pp-primary); }
.retro-composer-actions { display: flex; gap: 8px; }
.retro-composer-actions button { padding: 8px 16px; font-size: 13px; }
.retro-comments .retro-composer { margin-top: 2px; animation: pp-rise .2s ease both; }
.retro-comments .retro-composer textarea { font-size: 13px; }
.retro-comments .retro-composer-actions button { padding: 6px 14px; font-size: 12.5px; }

/* "+ Add column" dashed tile → small panel with input + Add/Cancel */
.retro-add-column {
  width: 240px;
  flex: none;
  border: 2px dashed var(--pp-border-input);
  background: transparent;
  border-radius: var(--pp-radius-lg);
  padding: 20px;
  color: var(--pp-grey);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.retro-add-column:hover { background: transparent; color: var(--pp-primary); border-color: var(--pp-primary); }
.retro-add-column-form {
  width: 280px;
  flex: none;
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: pp-rise .2s ease both;
}
.retro-add-column-form input[type="text"] { padding: 9px 12px; font-size: 14px; min-width: 0; }
.retro-add-column-form .retro-composer-actions button { padding: 8px 16px; font-size: 13px; }

@media (max-width: 900px) {
  .retro-board { flex-wrap: wrap; }
  .retro-column { flex: 1 1 100%; width: auto; }
}

/* ── Profile page ─────────────────────────────────────────────── */
.page.wide { max-width: 1020px; }

/* Two panes: the form and a cool-gray live-preview rail */
.profile-card { display: grid; grid-template-columns: 1fr 292px; overflow: hidden; }
.profile-card form { display: flex; flex-direction: column; gap: 26px; padding: 28px 32px 24px; min-width: 0; }
.profile-card input[type="text"] { width: 100%; max-width: 360px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.field-help { font-size: 12.5px; color: var(--pp-grey); }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#selected-avatar-label { font-size: 13px; font-weight: 600; color: var(--pp-primary-hover); }
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--pp-neutral-border);
  padding-top: 18px;
  margin-top: auto;
}
.save-hint { font-size: 13.5px; font-weight: 500; color: var(--pp-grey); min-height: 17px; }
.field-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pp-grey); }
.form-error { color: var(--pp-red); font-size: 13.5px; font-weight: 600; margin: 0; }

/* Category filter pills */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--pp-border-input);
  border-radius: var(--pp-radius-full);
  background: var(--pp-white);
  color: var(--pp-grey);
  font-size: 13px;
  font-weight: 600;
}
.cat-pill:hover { background: var(--pp-white); border-color: var(--pp-primary); color: var(--pp-primary); }
.cat-pill .count { font-weight: 500; opacity: 0.55; }
.cat-pill.active { background: var(--pp-primary-light); border-color: var(--pp-primary); color: var(--pp-primary-hover); }

/* Fixed thumb size: fr/aspect-ratio columns blow up the flex parent's intrinsic height */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, 92px); gap: 14px; padding-top: 2px; }
.avatar-option { cursor: pointer; position: relative; }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-option img {
  width: 92px;
  height: 129px;
  border-radius: 8px;
  transition: transform .2s;
  display: block;
}
.avatar-option:hover img { transform: translateY(-3px); }
.avatar-option input:checked + img,
.avatar-option input:focus-visible + img {
  outline: 3px solid var(--pp-primary);
  outline-offset: 3px;
  transform: scale(1.03);
  box-shadow: 0 8px 18px -8px rgba(25, 118, 210, 0.55);
}
.avatar-option:has(input:checked)::after {
  content: ""; /* fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pp-primary);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* Live-preview rail (right pane of .profile-card) */
.profile-preview {
  background: var(--pp-bg-cool);
  border-left: 1px solid var(--pp-border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.profile-preview .kicker { align-self: flex-start; margin: 0; }
.preview-seat-wrap { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 6px; }
.preview-seat {
  width: 108px;
  height: 150px;
  border-radius: 8px;
  border: 2px solid rgba(26, 26, 46, 0.35);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px -4px rgba(26, 26, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-seat i {
  background: rgba(255, 255, 255, 0.92);
  color: var(--pp-ink);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.25);
}
.preview-name { font-size: 13.5px; font-weight: 600; color: var(--pp-ink); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-sub { font-size: 11.5px; font-weight: 500; color: var(--pp-grey-light); margin-top: -5px; }
.preview-divider { width: 100%; height: 1px; background: var(--pp-neutral-border); }
.preview-chip-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--pp-grey); }
.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pp-white);
  border: 1px solid var(--pp-border-header);
  border-radius: var(--pp-radius-full);
  padding: 6px 14px 6px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pp-ink);
}
.preview-chip img { width: 20px; height: 28px; border-radius: 3px; object-fit: cover; display: block; }
.preview-foot { font-size: 12.5px; color: var(--pp-grey-light); text-align: center; line-height: 1.5; margin: auto 0 0; }

@media (max-width: 860px) {
  .profile-card { grid-template-columns: 1fr; }
  .profile-preview { border-left: none; border-top: 1px solid var(--pp-border); }
}

/* Account card under the profile card */
.account-card { display: flex; align-items: center; gap: 14px; padding: 18px 24px; margin-top: 20px; }
.account-card > i { font-size: 22px; color: var(--pp-ink); }
.account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.account-title { font-size: 14px; font-weight: 600; color: var(--pp-ink); }
.account-sub { font-size: 12.5px; color: var(--pp-grey); }
.account-card .inline-form { margin-left: auto; }
.account-card button { padding: 9px 14px; font-size: 13.5px; }

.snippet { position: relative; margin: 0; padding: 12px 70px 12px 12px; background: var(--pp-bg-cool);
  border: 1px solid var(--pp-neutral-border); border-radius: 8px; overflow-x: auto; font-size: 12.5px; }
.snippet code { white-space: pre-wrap; word-break: break-all; }
.snippet .copy-btn { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: 12px; }

/* ── Guest join (room.html #join-panel) ───────────────────────────── */
.join-hero { background: var(--pp-bg-warm); min-height: calc(100vh - 64px); padding: 64px 8%; }
.join-hero.hidden { display: none; }
.join-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: center; }
.join-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-primary); }
.join-headline { font-family: var(--pp-display); font-weight: 700; font-size: clamp(40px, 4vw, 58px); line-height: 1.05; letter-spacing: -0.015em; color: var(--pp-ink); margin: 0 0 16px; }
.join-headline span { color: var(--pp-primary); }
.join-intro { font-size: 18px; color: var(--pp-grey); line-height: 1.55; margin: 0 0 28px; max-width: 42ch; }
.join-form-card { background: var(--pp-white); border-radius: var(--pp-radius-lg); box-shadow: var(--pp-shadow-card); padding: 22px; display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.join-form-card label { font-size: 13.5px; font-weight: 600; color: var(--pp-ink); }
.join-name-row { display: flex; gap: 10px; flex-wrap: wrap; }
.join-name-row input { flex: 1; min-width: 180px; padding: 12px 14px; font-size: 16px; }
.join-name-row button { padding: 12px 20px; font-size: 15px; }
.join-or { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--pp-grey-light); }
.join-or span { flex: 1; height: 1px; background: #ececec; }
.join-oauth { display: flex; gap: 10px; flex-wrap: wrap; }
.join-oauth-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: var(--pp-radius); font-weight: 600; font-size: 14px; text-decoration: none; }
.join-oauth-btn.github { background: #24292e; color: #fff; }
.join-oauth-btn.github:hover { background: #1a1e22; }
.join-oauth-btn.google { border: 1px solid var(--pp-border-input); background: var(--pp-white); color: var(--pp-ink); }
.join-oauth-btn.google:hover { background: #f5f5f5; }
.join-oauth-btn.google i { color: var(--pp-red); }
.join-hint { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13.5px; color: var(--pp-grey); }
.join-context { background: var(--pp-white); border: 1px solid #ddd; border-radius: var(--pp-radius-lg); box-shadow: var(--pp-shadow-float); overflow: hidden; }
.join-context-felt { background: var(--pp-felt); padding: 22px 24px; color: #fff; }
.join-context-felt p { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-felt-text); }
.join-context-felt h2 { margin: 0 0 6px; font-family: var(--pp-display); font-weight: 700; font-size: 26px; color: #fff; }
.join-context-felt span { font-size: 14px; color: var(--pp-felt-text); }
.join-context-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.join-context-label { display: flex; justify-content: space-between; margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-grey); }
.join-context-label span { letter-spacing: 0; }
.join-seated { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.join-seated li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--pp-radius-md); background: var(--pp-bg-app); }
.join-seated img { width: 22px; height: 30px; border-radius: 4px; object-fit: cover; }
.join-seated-name { font-size: 13.5px; font-weight: 600; color: var(--pp-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.join-seated-sub { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--pp-grey); }
.join-seated-sub.host { color: var(--pp-primary); }
.join-empty { margin: 0; font-size: 13.5px; color: var(--pp-grey-light); }
.join-deck-cards { display: flex; gap: 6px; flex-wrap: wrap; }
.join-deck-cards span { width: 32px; height: 44px; border-radius: 5px; border: 1px solid #e0e0e0; display: inline-flex; align-items: center; justify-content: center; font-family: var(--pp-display); font-weight: 700; font-size: 14px; color: var(--pp-ink); background: var(--pp-white); box-shadow: 0 2px 4px rgba(10, 10, 10, 0.06); }
@media (max-width: 700px) {
  .join-hero { padding: 40px 16px; }
}

/* ── Suggestion box (suggestions.html) ─────────────────────────── */
.suggest-page { max-width: 720px; padding: 44px 28px 80px; }
.suggest-page .title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.suggest-page .title-row .page-title { margin: 0; }
.suggest-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--pp-warn-light);
  color: var(--pp-warn);
  box-shadow: 0 5px 12px -4px rgba(0, 0, 0, 0.12);
}
.suggest-page .page-sub .fa-telegram { color: #229ED9; font-size: 15px; }
.suggest-page #send-btn:disabled { background: #90b8e0; color: #fff; }

.suggest-card form { display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; }
.suggest-card textarea { width: 100%; box-sizing: border-box; font-size: 15px; line-height: 1.55; padding: 12px 14px; }
/* Sentence-case ink label (the global .field-label is uppercase grey) */
.suggest-card .field-label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--pp-ink); }

.char-counter {
  font-size: 12px;
  font-weight: 500;
  color: var(--pp-grey-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-height: 15px;
}
.char-counter.near { color: var(--pp-warn); }

.suggest-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pp-green-light);
  color: var(--pp-green);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--pp-radius);
  padding: 12px 16px;
  animation: pp-rise .25s ease both;
}

.suggest-card .form-actions {
  justify-content: flex-start;
  margin-top: 0;
  border-top: 1px solid var(--pp-border-light);
  padding-top: 18px;
}
/* ── Dashboard (dashboard.html + js/dashboard.js) ──────────────── */
.dash-page { max-width: 1120px; padding: 44px 28px 80px; }
.dash-page [hidden] { display: none !important; }
.suit-spades { color: var(--pp-green); }
.suit-hearts { color: var(--pp-red); }
.suit-clubs { color: var(--pp-primary); }
.suit-diamonds { color: var(--pp-warn); }

.dash-create { padding: 22px 24px; margin-bottom: 40px; border-radius: var(--pp-radius-lg); }
.dash-create .kicker { margin: 0 0 12px; }
.dash-create form { display: block; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-bottom: 14px; }
button.dash-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--pp-radius-card);
  border: 1.5px solid var(--pp-border);
  background: var(--pp-bg-inset);
  color: var(--pp-ink);
  text-align: left;
  font-weight: 400;
  transition: border-color .15s, background .15s;
}
button.dash-tile:hover { background: var(--pp-white); border-color: var(--pp-grey-light); }
button.dash-tile.active { border-color: var(--pp-primary); background: var(--pp-primary-light); }
button.dash-tile.retro.active { border-color: var(--pp-green); background: var(--pp-green-light); }
.dash-tile-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-grey-light);
  color: #fff;
  font-size: 15px;
}
.dash-tile.active .dash-tile-icon { background: var(--pp-primary); }
.dash-tile.retro.active .dash-tile-icon { background: var(--pp-green); }
.dash-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-tile-text b { font-size: 14.5px; font-weight: 600; color: var(--pp-ink); }
.dash-tile-text small { font-size: 12.5px; color: var(--pp-grey); }
.dash-name-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-name-row input { flex: 1; min-width: 220px; padding: 12px 14px; font-size: 16px; }
.dash-name-row button { padding: 12px 22px; font-size: 15px; }
.deck-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.deck-chips-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-grey); margin-right: 6px; }
button.deck-chip {
  min-width: 36px;
  height: 34px;
  padding: 0 9px;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-border);
  background: #f5f5f5;
  color: var(--pp-grey-faint);
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 15px;
  transition: background .15s;
}
button.deck-chip.on { background: var(--pp-white); color: var(--pp-ink); border-color: var(--pp-primary); }
button.deck-chip:hover { background: var(--pp-white); }
.deck-chips-hint { font-size: 13px; color: var(--pp-grey); margin-left: 6px; }
.dash-retro-columns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; font-size: 13.5px; color: var(--pp-grey); }
.dash-retro-columns span { font-weight: 600; }

.dash-owned-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-section-title { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 22px; color: var(--pp-ink); }
.dash-section-title span { font-family: var(--pp-sans); font-size: 13px; font-weight: 600; color: var(--pp-grey-light); }
.dash-filter { display: flex; gap: 2px; padding: 3px; background: #eef1f4; border-radius: var(--pp-radius-md); }
.dash-filter button { padding: 6px 12px; border: none; border-radius: var(--pp-radius); background: transparent; color: var(--pp-grey); font-size: 13px; font-weight: 600; }
.dash-filter button:hover { background: rgba(255, 255, 255, 0.6); color: var(--pp-ink); }
.dash-filter button.active { background: var(--pp-white); color: var(--pp-ink); box-shadow: 0 1px 3px rgba(10, 10, 10, 0.12); }

.dash-empty { border: 1.5px dashed var(--pp-neutral-border); border-radius: var(--pp-radius-lg); padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 40px; }
.dash-empty-icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--pp-primary-light); color: var(--pp-primary); font-size: 21px; }
.dash-empty-title { font-family: var(--pp-display); font-weight: 700; font-size: 21px; color: var(--pp-ink); margin: 6px 0 0; }
.dash-empty-sub { font-size: 14.5px; color: var(--pp-grey); margin: 0; max-width: 44ch; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 48px; }
.dash-grid:empty { display: none; }
.dash-card {
  background: var(--pp-white);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-lg);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.dash-card:hover { border-color: #c9d6e3; box-shadow: 0 8px 24px -12px rgba(10, 10, 10, 0.18); }
.dash-card-head { display: flex; align-items: flex-start; gap: 12px; }
.dash-icon { width: 44px; height: 44px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--pp-primary-light); color: var(--pp-primary); font-size: 17px; }
.dash-icon.retro { background: var(--pp-green-light); color: var(--pp-green); }
.dash-icon.sm { width: 36px; height: 36px; border-radius: 9px; font-size: 14px; }
.dash-card-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dash-card-name { font-family: var(--pp-display); font-weight: 700; font-size: 18px; color: var(--pp-ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.dash-card-name:hover { color: var(--pp-primary); }
.dash-card-name.sm { font-size: 16px; }
.dash-card-meta { font-size: 13px; color: var(--pp-grey); }
.live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--pp-radius-full); background: var(--pp-green-light); color: var(--pp-green-hover); font-size: 12px; font-weight: 600; white-space: nowrap; }
.live-chip > span { width: 7px; height: 7px; border-radius: 50%; background: var(--pp-green); }
.live-chip b { font-weight: 600; }
.dash-progress { display: flex; flex-direction: column; gap: 7px; }
.dash-progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; color: var(--pp-grey); }
.dash-progress-meta .room-progress-text { color: var(--pp-primary); font-weight: 600; }
.dash-progress-meta .room-progress-text.done { color: var(--pp-green); }
.dash-progress-track { height: 6px; border-radius: 3px; background: #eef1f4; overflow: hidden; }
.dash-progress-track .progress-fill { background: var(--pp-primary); border-radius: 3px; }
.dash-progress-track .progress-fill.done { background: var(--pp-green); }
.dash-board { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pp-grey); }
.dash-suits { letter-spacing: 2px; }
.dash-suits i { font-style: normal; }
.dash-card-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--pp-border-light); margin-top: auto; }
.dash-avatars { display: flex; padding-left: 7px; }
.dash-avatars img { width: 20px; height: 28px; border-radius: 4px; border: 2px solid #fff; margin-left: -7px; object-fit: cover; background: var(--pp-primary-light); box-shadow: 0 1px 3px rgba(26, 26, 46, 0.18); }
.dash-stat { font-size: 12.5px; font-weight: 500; color: var(--pp-grey); }
.dash-actions { margin-left: auto; display: flex; gap: 6px; }
.dash-sq {
  height: 32px;
  min-width: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-border-input);
  background: var(--pp-white);
  color: var(--pp-grey);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
button.dash-sq { font-size: 12px; }
.dash-sq:hover { background: #f5f5f5; color: var(--pp-ink); }
.dash-sq.danger { border-color: var(--pp-red-border); color: var(--pp-red); }
.dash-sq.danger:hover { background: var(--pp-red-light); color: var(--pp-red); }
.dash-sq span:empty { display: none; }
.copy-link.copied, .copy-link.copied:hover { color: var(--pp-green); }

.dash-joined-sub { margin: 4px 0 14px; }
.dash-joined { border: 1px solid var(--pp-border); border-radius: var(--pp-radius-lg); overflow: hidden; box-shadow: none; padding: 0; }
.dash-joined-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pp-border-light); flex-wrap: wrap; }
.dash-joined-row:last-child { border-bottom: none; }
.dash-joined-row .dash-card-titles { min-width: 160px; }
button.dash-copy {
  height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-border-input);
  background: var(--pp-white);
  color: var(--pp-ink);
  font-size: 12.5px;
}
button.dash-copy:hover { background: #f5f5f5; }
button.dash-copy i { color: var(--pp-primary); }
button.dash-copy.copied i { color: var(--pp-green); }
.dash-joined-row .forget-room { border-color: var(--pp-border); }

/* ── Agenda prepare (prepare.html + js/prepare.js) ────────────────── */
.prep-page { max-width: 1180px; padding: 28px 28px 120px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; color: var(--pp-grey); }
.breadcrumb a { color: var(--pp-grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--pp-primary); }
.breadcrumb i { font-size: 9px; color: var(--pp-grey-faint); }
.breadcrumb [aria-current] { color: var(--pp-ink); font-weight: 500; }
.prep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.prep-head .page-sub { margin: 0; max-width: 62ch; }
.prep-go {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--pp-radius);
  background: var(--pp-primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.prep-go:hover { background: var(--pp-primary-hover); }

.agent-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 22px; border-radius: var(--pp-radius-lg); background: var(--pp-teal-light); border: 1px solid var(--pp-teal-border); }
.agent-banner-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--pp-teal); color: #fff; font-size: 15px; }
.agent-banner-text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.agent-banner-text b { font-size: 14.5px; font-weight: 600; color: var(--pp-teal-ink); }
.agent-banner-text > span { font-size: 14px; color: var(--pp-teal-text); line-height: 1.45; }
button.agent-banner-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #80cbc4; background: var(--pp-white); color: var(--pp-teal-text); font-size: 13px; }
button.agent-banner-btn:hover { background: #f1faf9; }
.agent-banner-link { font-size: 13px; font-weight: 600; color: var(--pp-teal-text); }

.prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.prep-list-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.prep-list-head { display: flex; align-items: center; gap: 12px; }
.prep-list-head .kicker { margin: 0; }
.prep-summary { font-size: 13px; color: var(--pp-grey); }
.prep-track { flex: 1; min-width: 60px; height: 5px; border-radius: 3px; background: #e8ecf0; overflow: hidden; }
.prep-fill { height: 100%; width: 0; border-radius: 3px; background: var(--pp-green); transition: width .5s ease; }
.prep-list { border-radius: var(--pp-radius-lg); overflow: hidden; padding: 0; }
.agenda-editor { list-style: none; padding: 0; margin: 0; }
.agenda-view-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 14px 10px;
  border-bottom: 1px solid var(--pp-border-light);
  cursor: pointer;
  transition: background .15s;
}
.agenda-view-row:last-child { border-bottom: none; }
.agenda-view-row:hover { background: #fafbfc; }
.agenda-view-row.editing { background: #F3F8FE; box-shadow: inset 3px 0 0 var(--pp-primary); }
.agenda-view-row.dragging { opacity: 0.45; }
.agenda-view-row.drag-over { box-shadow: inset 0 2px 0 var(--pp-primary); }
.agenda-view-row .drag-handle { flex: none; padding-top: 3px; color: var(--pp-grey-faint); font-size: 13px; cursor: grab; }
.agenda-view-row .row-num { width: 22px; flex: none; padding-top: 2px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--pp-grey-light); }
.agenda-view-row .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-type { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--pp-grey); }
.row-type .issue-icon { font-size: 12px; }
.row-type a { color: var(--pp-primary); white-space: nowrap; text-decoration: none; }
.row-type a:hover { text-decoration: underline; }
.row-type a i { font-size: 9px; }
.agenda-view-row .row-name { font-family: var(--pp-display); font-weight: 600; font-size: 16px; color: var(--pp-ink); line-height: 1.3; }
.agenda-view-row .row-desc { font-size: 12.5px; color: var(--pp-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-view-row .risk-line { display: flex; gap: 5px; flex-wrap: wrap; }
.agenda-view-row .risk-pill { padding: 2px 8px; font-size: 11.5px; }
.estimate-badge {
  min-width: 40px;
  height: 34px;
  padding: 0 8px;
  flex: none;
  border-radius: var(--pp-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 17px;
  background: #f5f5f5;
  color: var(--pp-grey-faint);
}
.estimate-badge.done { background: var(--pp-green-light); color: var(--pp-green-hover); }
button.row-delete { width: 32px; height: 32px; flex: none; padding: 0; justify-content: center; border: 1px solid var(--pp-border); background: var(--pp-white); color: var(--pp-grey); font-size: 12px; }
button.row-delete:hover { background: var(--pp-red-light); color: var(--pp-red); border-color: var(--pp-red-border); }
button.prep-add { justify-content: center; gap: 9px; padding: 13px; border-radius: var(--pp-radius-card); border: 1.5px dashed #c9d6e3; background: transparent; color: var(--pp-primary); font-size: 14.5px; }
button.prep-add:hover { background: var(--pp-primary-light); border-color: var(--pp-primary); }

.prep-form { position: sticky; top: 88px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; max-width: 460px; width: 100%; justify-self: end; border-radius: var(--pp-radius-lg); }
.prep-form-title { display: flex; align-items: center; gap: 10px; }
#form-title { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 20px; color: var(--pp-ink); }
.editing-badge { display: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: var(--pp-radius-full); background: var(--pp-primary-light); color: var(--pp-primary-hover); }
.prep-form.editing .editing-badge { display: inline-block; }
.prep-field { display: flex; flex-direction: column; gap: 6px; }
.prep-field > span:first-child { font-size: 13.5px; font-weight: 600; color: var(--pp-ink); }
.prep-field small { font-size: inherit; font-weight: 400; color: var(--pp-grey-light); }
.prep-field input, .prep-field textarea { padding: 11px 13px; font-size: 15px; }
.prep-field textarea { font-size: 14.5px; padding: 10px 13px; resize: vertical; }
.prep-help { font-size: 12.5px; color: var(--pp-grey); }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.type-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--pp-radius-full); border: 1px solid var(--pp-border); background: var(--pp-white); color: var(--pp-ink); font-size: 12.5px; }
button.type-chip:hover { border-color: var(--pp-grey-light); background: var(--pp-white); }
button.type-chip.active { border-color: var(--pp-primary); background: var(--pp-primary-light); }
.prep-form .risk-groups { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--pp-border-light); border-radius: var(--pp-radius-md); overflow: hidden; padding: 0; background: none; }
.prep-form .risk-group { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--pp-border-light); min-height: 0; }
.prep-form .risk-group.hidden { display: none; }
.prep-form .risk-group-label { width: 112px; flex: none; font-size: 12.5px; font-weight: 500; color: var(--pp-grey); }
.prep-form .risk-btn { width: 30px; height: 30px; flex: none; border-radius: var(--pp-radius); border: 1px solid var(--pp-border); background: var(--pp-white); color: #9e9e9e; font-size: 12px; }
.prep-form .risk-btn i { color: inherit; }
.prep-form .risk-btn.active.sev-danger { background: var(--pp-red-light); border-color: #C62828; color: #C62828; }
.prep-form .risk-btn.active.sev-warn { background: var(--pp-warn-light); border-color: #E65100; color: #E65100; }
.prep-form .risk-btn.active.sev-ok { background: var(--pp-green-light); border-color: var(--pp-green-hover); color: var(--pp-green-hover); }
.prep-form .risk-btn.active.sev-neutral { background: #f5f5f5; border-color: #555; color: #555; }
.prep-form .risk-btn.active i { color: inherit; }
.prep-form .risk-group-value { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--pp-grey-faint); text-align: right; }
.prep-form .risk-group-value.sev-danger { color: #C62828; }
.prep-form .risk-group-value.sev-warn { color: #E65100; }
.prep-form .risk-group-value.sev-ok { color: var(--pp-green-hover); }
.prep-form .risk-group-value.sev-neutral { color: #555; }
button.risk-toggle { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin: 0; border: none; border-radius: 0; background: var(--pp-bg-inset); color: var(--pp-primary); font-size: 12.5px; font-weight: 600; text-align: left; justify-content: flex-start; }
button.risk-toggle:hover { background: #f5f5f5; color: var(--pp-primary-hover); }
button.risk-toggle.hidden { display: none; }
button.risk-toggle i { font-size: 10px; }
.prep-form-actions { display: flex; gap: 10px; padding-top: 4px; }
.prep-form-actions button { padding: 11px 20px; font-size: 15px; }
#form-cancel.hidden { display: none; }

.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--pp-white); border-top: 1px solid var(--pp-border-header); box-shadow: 0 -6px 20px -12px rgba(10, 10, 10, 0.2); }
.save-bar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#save-agenda { padding: 11px 20px; font-size: 15px; }
#save-agenda.clean { background: #90b8e0; }
.dirty-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #E65100; }
.dirty-hint.hidden, .save-hint.hidden { display: none; }
.dirty-hint .diamond { width: 8px; height: 8px; background: var(--pp-warn); transform: rotate(45deg); }
.save-hint { font-size: 14px; color: var(--pp-grey); }
.save-hint i { color: var(--pp-green); margin-right: 2px; }
#fresh-agenda { margin-left: auto; padding: 10px 16px; font-size: 14px; }
@media (max-width: 700px) {
  .prep-page { padding: 20px 16px 140px; }
  .prep-form .risk-group { flex-wrap: wrap; }
  .prep-form .risk-group-label { width: 100%; }
  .prep-form { position: static; max-width: none; }
  .save-bar-inner { padding: 10px 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   Playing-card redesign (handoff "poker playing cards").
   Appended last so these rules win over the older ones by order;
   no existing class is renamed.
   ═══════════════════════════════════════════════════════════════ */

/* ── Card face: corner indices + center value; suit from deck position ── */
.pcard {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #fff;
  border: 1.5px solid var(--pp-grey-lighter);
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.08);
  font-family: var(--pp-display);
  font-weight: 700;
  color: var(--pp-ink);
  line-height: 1;
}
.pcard-idx {
  position: absolute;
  left: 5px;
  top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}
.pcard-idx.br { left: auto; top: auto; right: 5px; bottom: 5px; transform: rotate(180deg); }
.pcard-idx .pcard-suit { font-size: 10px; }
.pcard-center { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pcard-center .pcard-suit { font-size: 13px; }
.pcard-suit { color: var(--pp-ink); }
.pcard.red, .pcard.red .pcard-suit { color: var(--pp-red); }
.pcard.pass { font-size: 15px; font-style: italic; font-weight: 600; color: var(--pp-grey); }
.pcard.picked { background: var(--pp-primary); border-color: var(--pp-primary); color: #fff; box-shadow: var(--pp-shadow-picked); }
.pcard.picked .pcard-suit, .pcard.picked.pass { color: #fff; }
.pcard.off { opacity: 0.45; }
.pcard.ring-consensus { box-shadow: 0 0 0 2.5px #4CAF50, 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.pcard.ring-polar { box-shadow: 0 0 0 2.5px #EF5350, 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
/* Sizes: hand 60x86, seat 54x76, verdict 58x80, agenda estimate 30x42 */
.pcard-hand { width: 60px; height: 86px; font-size: 22px; }
.pcard-seat { width: 54px; height: 76px; font-size: 26px; border: none; border-radius: 8px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.pcard-seat .pcard-idx { left: 4px; top: 4px; font-size: 10px; }
.pcard-seat .pcard-idx.br { left: auto; top: auto; right: 4px; bottom: 4px; }
.pcard-seat .pcard-idx .pcard-suit { font-size: 9px; }
/* ── Status badges: rounded squares, never circles ──────────────── */
.avatar-option:has(input:checked)::after, .preview-seat i { border-radius: 5px; }

/* ── Avatars are portrait cards: 5:7-ish, 3px radius, white frame ── */
.avatar-stack img, .join-seated img, .concern-ava, #preview-chip-img {
  border-radius: 3px;
  object-fit: cover;
  outline: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: none;
}
#preview-chip-img { width: 22px; height: 30px; }
.concern-ava { width: 21px; height: 28px; flex: none; }
.concern-reply .concern-ava { width: 16px; height: 22px; }

/* Table box: oval felt, seats on an ellipse around it (left/top set per seat) */
.felt {
  position: absolute;
  inset: 44px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 90px;
  border-radius: var(--pp-radius-full);
  background: var(--pp-felt);
  border: 10px solid var(--pp-felt-rail);
  box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.35), 0 18px 40px -16px rgba(13, 71, 161, 0.45);
  color: #fff;
}
.felt #voted-label { font-size: 14px; font-weight: 600; color: #fff; }
/* The hand: fanned 60x86 cards at the bottom of the stage */
.deck.hand { margin: auto 0 0; height: 110px; align-items: flex-end; gap: 0; padding-top: 12px; }
.deck.hand .card.pcard {
  flex: none;
  width: 60px;
  max-width: none;
  height: 86px;
  margin: 0 -3px;
  border: 1.5px solid var(--pp-grey-lighter);
  border-radius: 9px;
  font-size: 22px;
  transform-origin: 50% 160%;
  transform: rotate(calc(var(--fan, 0) * 1deg));
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.08);
  transition: transform .18s, box-shadow .18s, opacity .3s;
}
.deck.hand .card.pcard:hover:not(:disabled) { border-color: var(--pp-primary); transform: rotate(calc(var(--fan, 0) * 1deg)) translateY(-6px); }
.deck.hand .card.pcard.picked,
.deck.hand .card.pcard.picked:hover { z-index: 1; background: var(--pp-primary); color: #fff; border-color: var(--pp-primary); box-shadow: var(--pp-shadow-picked); transform: rotate(calc(var(--fan, 0) * 1deg)) translateY(-16px); }
.deck.hand .card.pcard:disabled:not(.picked) { opacity: 0.45; }
.deck.hand .card.pcard.pass { font-size: 15px; }

/* Side column: item details then concerns, composer pinned to the bottom */
.count-chip { font-family: var(--pp-sans); font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: var(--pp-radius-full); background: #f5f5f5; color: #555; }
@media (max-width: 800px) {
  .felt { position: static; border-radius: 24px; border-width: 6px; padding: 18px 16px; }
  /* Two rows of seats, scrolling sideways when they don't fit */
  .deck.hand { width: 100%; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; height: auto; padding: 24px 12px 6px; }
}

/* ── Profile 2a ─────────────────────────────────────────────────── */
.page.wide.profile-page { max-width: 1080px; padding: 40px 24px 48px; }
.profile-page .page-title { font-size: 34px; }
.profile-page .page-sub { font-size: 15.5px; }
.profile-page .profile-card { grid-template-columns: minmax(0, 1fr) 300px; border-radius: var(--pp-radius-lg); }
.profile-page .profile-card form { gap: 22px; padding: 26px 28px; }
.profile-page .profile-card input[type="text"] { max-width: 420px; }
.profile-page .profile-card input[type="text"]:focus { box-shadow: var(--pp-focus-ring); }
.profile-page .cat-pill .count { opacity: 0.6; }
.profile-page .cat-pill.active { background: var(--pp-ink); border-color: var(--pp-ink); color: #fff; }
/* Avatar grid: each option is a playing card — white 5px frame, 5:7 */
/* Fixed card size, not 1fr + aspect-ratio: those blow up the flex form's intrinsic height */
.profile-page .avatar-grid { grid-template-columns: repeat(auto-fill, 92px); gap: 16px; }
.profile-page .avatar-option {
  width: 92px;
  height: 129px;
  box-sizing: border-box;
  padding: 5px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.12);
  transition: transform .18s, box-shadow .18s;
}
.profile-page .avatar-option img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.profile-page .avatar-option:hover img,
.profile-page .avatar-option input:checked + img,
.profile-page .avatar-option input:focus-visible + img { transform: none; outline: none; box-shadow: none; }
.profile-page .avatar-option:hover { transform: translateY(-3px); }
.profile-page .avatar-option:has(input:checked) { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--pp-primary), 0 14px 24px -10px rgba(25, 118, 210, 0.55); }
.profile-page .avatar-option:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--pp-primary); }
.profile-page .avatar-option:has(input:checked)::after { top: -7px; right: -7px; border-radius: 5px; }
.profile-page .form-actions { border-top: 1px solid var(--pp-border-light); padding-top: 16px; }

/* Live preview on felt */
.felt-preview { background: var(--pp-felt); border-left: none; padding: 26px 24px; color: var(--pp-felt-text); }
.felt-preview .kicker { color: var(--pp-felt-text); }
.preview-cards { position: relative; display: flex; justify-content: center; height: 104px; width: 140px; }
.felt-preview .preview-seat {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 64px;
  height: 90px;
  border: 3px solid #fff;
  border-radius: 8px;
  background-color: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6);
}
.preview-card.pcard {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 64px;
  height: 90px;
  border: none;
  font-size: 26px;
  transform: rotate(4deg);
  box-shadow: 0 0 0 3px var(--pp-felt-you), 0 10px 20px -10px rgba(0, 0, 0, 0.6);
}
.felt-preview .preview-name { color: #fff; }
.felt-preview .preview-sub { color: var(--pp-felt-you); }
.felt-preview .preview-divider { background: var(--pp-felt-rail); }
.felt-preview .preview-chip-wrap { color: var(--pp-felt-text); }
.felt-preview .preview-chip { border-radius: 8px; }
.felt-preview .preview-foot { color: var(--pp-felt-text); }

/* Account: provider glyph in a rounded square */
.provider-sq { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: #24292e; color: #fff; font-size: 20px; }
.provider-sq.google { background: var(--pp-red); }

@media (max-width: 860px) {
  .profile-page .profile-card { grid-template-columns: minmax(0, 1fr); }
}

.profile-page #save-hint { color: var(--pp-grey); }
/* Block, not flex: as a column-flex item the auto-fill avatar grid sizes for one
   column fewer and leaves a row of empty space above the footer. */
.profile-page .profile-card form { display: block; }
.profile-page .profile-card form > .form-field + .form-field,
.profile-page .profile-card form > .form-actions { margin-top: 22px; }

/* ── Retro board in the playing-card language ──────────────────── */
/* Columns share the width and the tallest one's height */
.retro-board { align-items: stretch; }
.retro-column { flex: 1 0 280px; width: auto; max-width: 420px; display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
/* Board order picks a suit and an accent, like a card's deck position */
.retro-column[data-suit="0"] { --accent: var(--pp-green); --suit: "♠"; }
.retro-column[data-suit="1"] { --accent: var(--pp-red); --suit: "♥"; }
.retro-column[data-suit="2"] { --accent: var(--pp-primary); --suit: "♣"; }
.retro-column[data-suit="3"] { --accent: var(--pp-warn); --suit: "♦"; }
.retro-column-head h3::before { content: var(--suit); margin-right: 8px; color: var(--accent); }
.retro-count { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: var(--pp-radius-full); background: #f5f5f5; color: #555; text-align: center; }
.retro-column .retro-composer-open.add-card:hover { border-color: var(--accent); color: var(--accent); }
/* Cards: a corner suit index in the column's accent */
.retro-card { position: relative; border-radius: 9px; box-shadow: 0 2px 6px rgba(10, 10, 10, 0.06); }
.retro-card::after { content: var(--suit); position: absolute; top: 8px; right: 10px; font-size: 12px; line-height: 1; color: var(--accent); opacity: 0.7; pointer-events: none; }
.retro-card-body { padding-right: 14px; }
.retro-card-meta .concern-ava { width: 16px; height: 22px; }
/* "+ Add column": a slim full-height tile instead of a clipped 280px block */
.retro-add-column { flex: none; width: 120px; min-height: 120px; align-self: stretch; border-radius: var(--pp-radius-lg); }
@media (max-width: 900px) {
  .retro-column { max-width: none; }
  .retro-add-column { width: 100%; min-height: 56px; }
}
/* Preview as a felt card sized to its content, sticky beside the long avatar
   grid, instead of a full-height blue column with nothing under the chip. */
/* overflow visible: the old overflow:hidden makes the card a scroll container and breaks sticky */
.profile-page .profile-card { align-items: start; overflow: visible; }
.profile-page .felt-preview {
  position: sticky;
  top: 84px;
  margin: 20px 20px 20px 0;
  border-radius: var(--pp-radius-lg);
  gap: 16px;
}
.profile-page .felt-preview .preview-foot { margin: 0; }
@media (max-width: 860px) {
  .profile-page .felt-preview { position: static; margin: 0 20px 20px; }
}

/* Profile redesign: 76×106 card-back tiles, the suit picker and the save status */
.profile-page .avatar-grid { grid-template-columns: repeat(auto-fill, 76px); gap: 12px; padding-top: 4px; }
.profile-page .avatar-option { width: 76px; height: 106px; padding: 0; border-radius: 8px; background: var(--pp-primary-light); box-shadow: none; }
.profile-page .avatar-option img { border-radius: 8px; }
.profile-page .avatar-option:has(input:checked) { transform: none; outline: 3px solid var(--pp-primary); outline-offset: 3px; box-shadow: 0 8px 18px -8px rgba(25, 118, 210, 0.55); }
.profile-page .avatar-option:has(input:checked)::after { top: -8px; right: -8px; border-radius: 50%; border: 2px solid #fff; }
.suit-grid { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.suit-option {
  position: relative;
  width: 76px;
  height: 106px;
  border-radius: 9px;
  border: 1.5px solid #e0e0e0;
  background: var(--pp-white);
  color: var(--pp-ink);
  font-family: var(--pp-display);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.08);
  transition: transform .15s;
}
.suit-option.red { color: var(--pp-red); }
.suit-option:hover { transform: translateY(-3px); }
.suit-option input { position: absolute; opacity: 0; pointer-events: none; }
.suit-option:has(input:checked) { border-color: var(--pp-primary); outline: 3px solid var(--pp-primary); outline-offset: 3px; box-shadow: 0 8px 18px -8px rgba(25, 118, 210, 0.55); }
.suit-option:has(input:focus-visible) { outline: 3px solid var(--pp-primary); outline-offset: 3px; }
.suit-option:has(input:checked)::after {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--pp-primary);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.suit-corner { position: absolute; top: 6px; left: 7px; display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: 13px; }
.suit-corner small { font-size: 10px; }
.suit-glyph { position: absolute; inset: 0 0 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; }
.suit-name { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-family: var(--pp-sans); font-size: 11px; font-weight: 600; color: var(--pp-grey); }
.profile-page #save-hint.dirty { color: #E65100; }
.profile-page #save-hint.saved { color: var(--pp-green-hover); }
.profile-page .field-label-row .field-help { margin: 0; }

/* ── Agent access: consent page, profile tabs, AI agents tab ──────────── */

/* Agent mark: blank playing card with ✦ (replaces fa-robot) */
.agent-mark { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 30px; border-radius: 4px; border: 2px solid var(--pp-primary);
  background: var(--pp-white); color: var(--pp-primary); font-size: 13px; line-height: 1; }
.agent-mark.sm { width: 13px; height: 18px; border-width: 1.5px; border-radius: 3px; font-size: 9px; }
.agent-mark.lg { width: 40px; height: 56px; border-radius: 6px; font-size: 22px; box-shadow: 4px 4px 0 var(--pp-primary-light); }
.agent-mark.filled { background: var(--pp-primary); color: #fff; }

/* Profile tabs */
.profile-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--pp-border); margin: 4px 0 24px; }
.profile-tabs a { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; font-size: 14.5px;
  font-weight: 500; color: var(--pp-grey); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.profile-tabs a:hover { color: var(--pp-ink); }
.profile-tabs a.active { color: var(--pp-ink); font-weight: 600; border-bottom-color: var(--pp-primary); }
.profile-tabs .tab-count { font-size: 11.5px; font-weight: 600; background: var(--pp-primary-light);
  color: var(--pp-primary); padding: 2px 7px; border-radius: var(--pp-radius-full); }

/* Agents tab */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.agents-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.agents-card-head { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 24px 16px; }
.agents-card h3, .connect-card h3 { margin: 0; font-family: var(--pp-display); font-size: 19px; font-weight: 700; color: var(--pp-ink); }
.agents-card-head span { font-size: 12.5px; color: var(--pp-grey); }
.agent-rows { border-top: 1px solid var(--pp-border-light); }
.agent-row { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--pp-border-light); }
.agent-client-sq { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 8px; background: var(--pp-teal-light); color: var(--pp-teal); font-size: 17px; }
.agent-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.agent-row-name { font-size: 14.5px; font-weight: 600; color: var(--pp-ink); }
.agent-row-meta { font-size: 12.5px; color: var(--pp-grey); }
.agent-row .disconnect-btn { padding: 7px 12px; font-size: 12.5px; border-color: var(--pp-red-border); }
.agents-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 32px 24px; margin: 16px 20px; border: 1.5px dashed var(--pp-neutral-border); border-radius: var(--pp-radius-lg); }
.agents-empty-title { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--pp-ink); }
.agents-empty-sub { max-width: 280px; font-size: 13.5px; color: var(--pp-grey); text-wrap: pretty; }
.agents-can { display: flex; flex-direction: column; gap: 8px; padding: 18px 24px 22px; background: var(--pp-bg-inset);
  font-size: 13.5px; color: var(--pp-text); }
.agents-can .kicker { margin: 0 0 2px; }
.agents-can i { width: 16px; margin-right: 6px; color: var(--pp-primary); }
.agents-can i.green { color: var(--pp-green); }

.connect-card { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.client-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.client-tiles button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px;
  border-radius: 8px; border: 1px solid var(--pp-border); background: var(--pp-white); color: var(--pp-ink);
  font-size: 13px; font-weight: 600; box-shadow: none; }
.client-tiles button i { font-size: 18px; color: var(--pp-grey); }
.client-tiles button:hover { background: #f5f5f5; }
.client-tiles button.active { border: 1.5px solid var(--pp-primary); background: var(--pp-primary-light); }
.client-tiles button.active i { color: var(--pp-primary); }
.setup-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.setup-steps li { counter-increment: step; position: relative; padding-left: 36px; display: flex; flex-direction: column;
  gap: 8px; font-size: 14px; line-height: 1.5; color: var(--pp-text); }
.setup-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  border-radius: 50%; background: var(--pp-primary-light); color: var(--pp-primary); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.setup-steps li > a { align-self: flex-start; }
.connect-card .snippet { background: var(--pp-ink); color: #e3f2fd; font-size: 12.5px; border: none; border-radius: 8px; }
.connect-card .snippet .copy-btn { background: var(--pp-felt-rail); color: #fff; border: none; }
.connect-try { margin: 0; padding-top: 14px; border-top: 1px solid var(--pp-border-light); font-size: 13px; color: var(--pp-grey); }
.connect-try em { color: var(--pp-text); }
@media (max-width: 860px) { .agents-grid { grid-template-columns: minmax(0, 1fr); } }

/* Consent page */
.consent-card { max-width: 560px; margin: 56px auto; padding: 36px 36px 28px; border-radius: 14px; box-shadow: var(--pp-shadow-float); display: flex; flex-direction: column; gap: 24px; }
.consent-link { display: flex; align-items: center; justify-content: center; gap: 14px; }
.consent-tile { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; }
.consent-tile.client { background: var(--pp-ink); color: #fff; font-size: 24px; }
.consent-tile.app { background: var(--pp-white); border: 1px solid var(--pp-border); font-size: 28px; }
.consent-dots { display: flex; align-items: center; gap: 6px; }
.consent-dots > i { width: 6px; height: 6px; border-radius: 50%; background: var(--pp-grey-lighter); }
.consent-link-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--pp-primary-light); color: var(--pp-primary); font-size: 12px; }
.consent-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.consent-title { margin: 0; font-family: var(--pp-display); font-size: 25px; line-height: 1.2; font-weight: 700;
  color: var(--pp-ink); letter-spacing: -0.01em; text-wrap: balance; }
.consent-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-full); font-size: 13px; color: var(--pp-text); }
.consent-user img { width: 22px; height: 30px; object-fit: cover; border-radius: 4px; }
.consent-user b { color: var(--pp-ink); font-weight: 600; }
.consent-user .fab { color: var(--pp-grey); }
.consent-perms { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--pp-border-light); }
.consent-perms .kicker { margin: 0; }
.consent-perm { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--pp-ink); }
.perm-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
  border-radius: 8px; background: var(--pp-primary-light); color: var(--pp-primary); font-size: 14px; }
.perm-icon.green { background: var(--pp-green-light); color: var(--pp-green); }
.consent-note { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--pp-grey); }
.consent-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px;
  background: var(--pp-warn-light); border: 1px solid var(--pp-warn-border); font-size: 13px; line-height: 1.45; color: #5d3a00; }
.consent-warn i { margin-top: 2px; color: var(--pp-warn); }
.consent-warn code { font-size: 12px; color: var(--pp-ink); background: none; padding: 0; }
.consent-card .consent-actions { display: flex; gap: 10px; }
.consent-actions form.deny { flex: 1; }
.consent-actions form.approve { flex: 2; }
.consent-actions button { width: 100%; padding: 12px 16px; font-size: 14.5px; justify-content: center; }
.consent-actions button:disabled { background: #90CAF9; }
.consent-actions button.secondary:disabled { background: var(--pp-white); color: var(--pp-grey-light); }

/* Prepare page: the agenda changed elsewhere while the owner has unsaved edits */
.remote-change { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--pp-warn-light); border: 1px solid var(--pp-warn-border); color: var(--pp-ink); font-size: 13.5px; }
.remote-change > span { flex: 1; }
.remote-change button { padding: 6px 12px; font-size: 13px; white-space: nowrap; }

/* ── Voting room (room.html + frontend/src/room) ───────────────────── */
.rm .hidden, .rm-seat .hidden { display: none !important; }

/* Agenda rail */
.rm-rail { background: var(--pp-white); border-bottom: 1px solid var(--pp-border-header); }
.rm-rail-inner { max-width: 1400px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px; }
.rm-rail-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-grey); white-space: nowrap; }
.rm-rail-items { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.rm-rail-items::-webkit-scrollbar { display: none; }
.rm-rail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: var(--pp-radius-full);
  border: 1px solid var(--pp-border);
  background: var(--pp-white);
  font-size: 13px;
  font-weight: 500;
  color: var(--pp-grey);
  white-space: nowrap;
}
.rm-rail-pill i { font-size: 11px; color: var(--pp-grey-light); }
.rm-rail-name { overflow: hidden; text-overflow: ellipsis; }
.rm-rail-pill.estimated { color: var(--pp-ink); }
.rm-rail-pill.estimated i { color: var(--pp-green); }
.rm-rail-est { font-family: var(--pp-display); color: var(--pp-green); }
.rm-rail-pill.current { border-color: var(--pp-primary); background: var(--pp-primary-light); color: var(--pp-ink); font-weight: 600; }
.rm-rail-pill.current i { color: var(--pp-primary); font-size: 8px; }
.rm-rail-owner { display: flex; align-items: center; gap: 6px; flex: none; }
.rm-rail-nav { display: inline-flex; gap: 6px; }
button.rm-sq { width: 32px; height: 32px; padding: 0; justify-content: center; border: 1px solid var(--pp-border-input); background: var(--pp-white); color: var(--pp-grey); font-size: 12px; }
button.rm-sq:hover { background: #f5f5f5; color: var(--pp-ink); }
.rm-rail-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: var(--pp-radius); border: 1px solid var(--pp-border-input); background: var(--pp-white); color: var(--pp-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
button.rm-rail-btn:hover, a.rm-rail-btn:hover { background: #f5f5f5; }
.rm-rail-btn i { color: var(--pp-primary); font-size: 11px; }
.rm-rail-owner .agenda-add-form { display: flex; gap: 6px; margin: 0; }
.rm-rail-owner .agenda-add-form input { width: 180px; padding: 6px 10px; font-size: 13px; }
.rm-rail-owner .agenda-add-form button { padding: 6px 10px; }

/* Body: table column + side column */
.rm-body { max-width: 1400px; margin: 0 auto; padding: 22px 24px 48px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.rm-stage { flex: 2 1 640px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.rm-side { flex: 1 1 340px; max-width: 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }

/* The table */
.rm-table { position: relative; width: 100%; max-width: 900px; height: 520px; margin: 4px 0 34px; }
.rm-felt {
  position: absolute;
  top: 23%;
  bottom: 23%;
  left: 15%;
  right: 15%;
  border-radius: var(--pp-radius-full);
  background: var(--pp-felt);
  border: 10px solid var(--pp-felt-rail);
  box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.35), 0 18px 40px -16px rgba(20, 70, 40, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0 56px;
  color: #fff;
}
.rm-kicker { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-felt-text); }
.rm-kicker .issue-icon { color: inherit !important; font-size: 11px; }
.rm-title {
  margin: 0;
  max-width: 26ch;
  font-family: var(--pp-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-title .jira-link { color: var(--pp-felt-accent); font-size: 13px; }
button.rm-felt-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: var(--pp-radius-full);
  background: var(--pp-white);
  color: var(--pp-ink);
  font-size: 14.5px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5);
}
button.rm-felt-btn:hover { background: #f1f8f3; }
button.rm-felt-btn i { color: var(--pp-green-hover); }
.rm-progress { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rm-progress .vote-segments { display: flex; gap: 3px; }
.rm-progress .vote-segments span { width: 20px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.rm-progress .vote-segments span.on { background: #7ed39a; }
.rm-progress .vote-segments span.mine { background: #90CAF9; }
#voted-label { font-size: 14px; font-weight: 600; color: #fff; }
.rm-waiting { font-size: 12.5px; color: var(--pp-felt-text); }
button.rm-revote { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font-size: 13px; }
button.rm-revote:hover { background: rgba(255, 255, 255, 0.1); }
.rm-progress button.rm-revote { margin-top: 4px; width: 32px; height: 32px; }
.rm-revealed { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rm-verdict { display: flex; align-items: center; gap: 14px; animation: pp-pop .35s ease both; }
.rm-verdict-card { width: 44px; height: 62px; border-radius: 7px; background: var(--pp-white); color: var(--pp-ink); display: flex; align-items: center; justify-content: center; font-family: var(--pp-display); font-weight: 700; font-size: 23px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6); }
.rm-verdict-text { text-align: left; display: flex; flex-direction: column; gap: 3px; }
.rm-muted { font-size: 12px; color: var(--pp-felt-text); }
.rm-stats { font-size: 14px; font-weight: 600; }
.rm-verdict-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--pp-radius-full); font-size: 12px; font-weight: 700; }
.rm-verdict-chip.good { background: var(--pp-green-light); color: var(--pp-green-hover); }
.rm-verdict-chip.bad { background: var(--pp-red-light); color: #C62828; }
.rm-owner-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rm-stepper-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: var(--pp-radius-full); background: var(--pp-white); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5); }
.rm-stepper { display: inline-flex; align-items: center; gap: 2px; }
.rm-stepper button { width: 26px; height: 30px; padding: 0; justify-content: center; border-radius: var(--pp-radius); background: transparent; color: var(--pp-grey); font-size: 11px; }
.rm-stepper button:hover:not(:disabled) { background: #f5f5f5; color: var(--pp-ink); }
.rm-stepper button:disabled { background: transparent; color: var(--pp-grey-lighter); }
.rm-stepper-value { min-width: 34px; height: 30px; padding: 0 6px; border-radius: var(--pp-radius); background: #f1f8f3; display: inline-flex; align-items: center; justify-content: center; font-family: var(--pp-display); font-weight: 700; font-size: 17px; color: var(--pp-ink); }
button.rm-finalize { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--pp-radius-full); background: var(--pp-green); font-size: 13.5px; }
button.rm-finalize:hover { background: var(--pp-green-hover); }

/* Seats on the ellipse */
.rm-seats { list-style: none; margin: 0; padding: 0; }
.rm-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.rm-seat-card { position: relative; width: 60px; height: 84px; perspective: 600px; border-radius: 9px; transition: transform .2s; }
.rm-seat-card.mine { box-shadow: 0 0 0 3px var(--pp-primary); }
.rm-seat-card.played { transform: translateY(-4px); }
.rm-seat-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .75, .35, 1.08); }
.rm-seat-inner.flipped { transform: rotateY(180deg); }
.rm-seat-back, .rm-seat-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.rm-seat-face { transform: rotateY(180deg); }
.rm-seat-back.empty { border: 1.5px dashed #c3d3c9; background: rgba(255, 255, 255, 0.5); color: #9fb5a8; font-size: 14px; }
.rm-seat-back.card-back, .rm-seat-face.card-back {
  background-color: #fff;
  background-size: cover;
  background-position: center;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.55);
}
.rm-seat-face.empty { background: var(--pp-white); color: var(--pp-grey-light); font-family: var(--pp-display); font-size: 20px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.4); }
.rm-seat-face.pcard { width: 60px; height: 84px; font-size: 28px; border: none; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.rm-seat-face.pcard .pcard-idx { left: 6px; top: 5px; font-size: 12px; }
.rm-seat-face.pcard .pcard-idx.br { left: auto; top: auto; right: 6px; bottom: 5px; }
.rm-seat-face.pcard .pcard-idx .pcard-suit { font-size: 10px; }
.rm-seat-face.pcard.pass { font-size: 15px; font-style: italic; color: var(--pp-grey); }
.rm-seat-face.ring-consensus { box-shadow: 0 0 0 2.5px #4CAF50, 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.rm-seat-face.ring-polar { box-shadow: 0 0 0 2.5px #EF5350, 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.rm-seat-check { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 6px; background: var(--pp-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); animation: pp-pop .35s ease both; z-index: 3; }
button.rm-seat-kick { position: absolute; bottom: -6px; right: -6px; width: 22px; height: 22px; padding: 0; justify-content: center; border-radius: 6px; border: 1px solid var(--pp-border); background: var(--pp-white); color: var(--pp-grey); font-size: 9px; opacity: 0; transition: opacity .15s; z-index: 3; }
.rm-seat:hover button.rm-seat-kick, button.rm-seat-kick:focus-visible { opacity: 1; }
button.rm-seat-kick:hover { color: var(--pp-red); border-color: var(--pp-red-border); background: var(--pp-white); }
.rm-seat-label { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pp-radius-full); background: var(--pp-white); box-shadow: 0 1px 4px rgba(10, 10, 10, 0.12); font-size: 12.5px; font-weight: 600; color: var(--pp-ink); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.rm-seat-sub { font-size: 11px; font-weight: 600; color: var(--pp-grey); white-space: pre; }
.rm-seat-sub.voted { color: var(--pp-green-hover); }
.rm-seat-sub.thinking { font-style: italic; }
.rm-seat-sub.you { color: var(--pp-primary); }

.rm-round-line { width: 100%; max-width: 900px; margin: 0 0 6px; padding: 8px 14px; border-radius: var(--pp-radius-md); background: var(--pp-bg-cool); font-size: 14px; color: var(--pp-text); text-align: center; }
.rm-round-line.danger { background: var(--pp-red-light); color: #C62828; font-weight: 600; }

/* The hand: in page flow, fanned */
.rm-hand { width: 100%; max-width: 900px; padding: 8px 12px 14px; border-top: 1px solid var(--pp-border); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rm-hand-head { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.rm-hand-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-grey); }
.rm-suit-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--pp-radius-full); border: 1px solid var(--pp-border); background: var(--pp-white); font-size: 12.5px; font-weight: 600; color: var(--pp-ink); text-decoration: none; }
a.rm-suit-chip:hover { border-color: var(--pp-primary); }
.rm-suit-glyph { font-size: 14px; line-height: 1; color: var(--pp-ink); }
.rm-suit-glyph.red { color: var(--pp-red); }
.rm-hand-cards { display: flex; justify-content: safe center; gap: 4px; padding: 30px 8px 24px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.rm-hand-cards::-webkit-scrollbar { display: none; }
.rm .pcard-hand {
  width: 54px;
  height: 78px;
  padding: 0;
  border-radius: 8px;
  font-size: 22px;
  transform: rotate(calc(var(--off, 0) * 2.2deg)) translateY(calc(var(--off, 0) * var(--off, 0) * 0.9px));
  transition: transform .18s ease, box-shadow .18s ease, background .15s, opacity .15s;
}
.rm .pcard-hand .pcard-idx { left: 5px; top: 4px; font-size: 11px; }
.rm .pcard-hand .pcard-idx.br { left: auto; top: auto; right: 5px; bottom: 4px; }
.rm .pcard-hand .pcard-idx .pcard-suit { font-size: 9px; }
.rm .pcard-hand:hover:not(:disabled) { border-color: var(--pp-primary); transform: rotate(calc(var(--off, 0) * 2.2deg)) translateY(calc(var(--off, 0) * var(--off, 0) * 0.9px - 6px)); }
.rm .pcard-hand:disabled { background: var(--pp-white); color: var(--pp-ink); cursor: default; }
.rm .pcard-hand.red:disabled { color: var(--pp-red); }
.rm .pcard-hand.picked { background: var(--pp-primary); border-color: var(--pp-primary); color: #fff; box-shadow: var(--pp-shadow-picked); transform: rotate(calc(var(--off, 0) * 2.2deg)) translateY(calc(var(--off, 0) * var(--off, 0) * 0.9px - 14px)); }
.rm .pcard-hand.picked, .rm .pcard-hand.picked:disabled, .rm .pcard-hand.picked .pcard-suit { color: #fff; }
.rm .pcard-hand.picked:disabled { background: var(--pp-primary); }
.rm .pcard-hand.faded { opacity: 0.45; }
.rm .pcard-hand.pass { font-size: 13px; font-style: italic; font-weight: 600; color: var(--pp-grey); }

/* Side column cards */
.rm-card { background: var(--pp-white); border-radius: var(--pp-radius-lg); box-shadow: var(--pp-shadow-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.rm-story-type { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--pp-grey); }
.rm-story-type a { color: var(--pp-primary); white-space: nowrap; text-decoration: none; }
.rm-story-type a i { font-size: 9px; }
.rm-story-name { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 19px; color: var(--pp-ink); line-height: 1.25; }
.rm-story .story-desc { margin-top: 0; font-size: 14px; line-height: 1.55; color: var(--pp-text); }
.rm-story .story-risks { margin-top: 0; gap: 6px; }
.rm-story .risk-pill { padding: 4px 10px; font-size: 12.5px; }
.rm-card-title { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--pp-display); font-weight: 700; font-size: 19px; color: var(--pp-ink); }
.rm-card-title .count-chip.hidden { display: none; }
.rm-hint { margin: 4px 0 0; font-size: 13.5px; color: var(--pp-grey); }
.rm-empty { margin: 0; padding: 14px; border-radius: var(--pp-radius-md); background: var(--pp-bg-app); font-size: 13.5px; color: var(--pp-grey); text-align: center; list-style: none; }
.rm-note { margin: 0; padding: 10px 12px; border-radius: var(--pp-radius-md); background: var(--pp-bg-app); font-size: 13.5px; color: var(--pp-grey); }
.rm-note i { color: var(--pp-grey-light); margin-right: 4px; }

/* Concerns: threads */
.rm-concerns .concern-list { list-style: none; margin: 0; padding: 0; flex: none; min-height: 0; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0; }
.rm-concerns .concern-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 2px; border-top: 1px solid var(--pp-border-light); border-bottom: none; }
.rm-concerns .concern-replies { list-style: none; margin: 4px 0 0 26px; padding: 0; }
.rm-concerns .concern-reply { padding-top: 10px; }
.rm-concerns .concern-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.rm-concerns .concern-ava { width: 18px; height: 25px; border-radius: 3px; object-fit: cover; }
.rm-concerns .concern-author { font-weight: 600; color: var(--pp-ink); }
.rm-concerns .concern-time { margin-left: auto; font-size: 12px; color: var(--pp-grey-light); }
.rm-concerns .concern-body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pp-text); overflow-wrap: anywhere; }
.rm-concerns .concern-body p { margin: 0 0 6px; }
.rm-concerns .concern-body p:last-child { margin-bottom: 0; }
.rm-concerns .concern-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rm-concerns .reaction-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--pp-radius-full); border: 1px solid transparent; background: #f5f5f5; font-size: 12px; font-weight: 600; color: var(--pp-ink); }
.rm-concerns .reaction-chip.active { background: var(--pp-primary-light); border-color: #90CAF9; }
.rm-concerns .reaction-add, .rm-concerns .reply-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: none; background: transparent; font-size: 12px; font-weight: 600; color: var(--pp-grey); }
.rm-concerns .reaction-add:hover:not(:disabled), .rm-concerns .reply-btn:hover { background: transparent; color: var(--pp-primary); }
.rm-concerns .reaction-add:disabled { background: transparent; color: var(--pp-grey-lighter); }
.concern-type, .concern-pick { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--pp-radius-full); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.concern-type i, .concern-pick i { font-size: 10.5px; }
.concern-type.impediment, .concern-pick.impediment { background: var(--pp-red-light); color: #C62828; }
.concern-type.shortcut, .concern-pick.shortcut { background: var(--pp-warn-light); color: #E65100; }
.concern-type.overcomplication, .concern-pick.overcomplication { background: #f3e8ff; color: #6b21a8; }
.concern-type.requirement, .concern-pick.requirement { background: var(--pp-primary-light); color: var(--pp-primary-hover); }

/* Concerns: composer */
.rm-composer { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--pp-border-light); }
.rm-composer .reply-banner { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--pp-radius); background: var(--pp-primary-light); font-size: 12.5px; color: var(--pp-primary-hover); }
.rm-composer .reply-banner.hidden { display: none; }
.rm-composer .reply-banner button { margin-left: auto; padding: 0 4px; border: none; background: transparent; color: var(--pp-primary-hover); font-size: 15px; }
.rm-composer .concern-picker { display: flex; gap: 5px; flex-wrap: wrap; }
.rm-composer .concern-picker.hidden { display: none; }
button.concern-pick { flex: none; height: auto; padding: 5px 9px; font-size: 12px; border: 1px solid transparent; opacity: 0.55; }
button.concern-pick:hover { opacity: 0.85; }
button.concern-pick.active { opacity: 1; border-color: currentColor; }
button.concern-pick.impediment:hover, button.concern-pick.impediment.active { background: var(--pp-red-light); color: #C62828; }
button.concern-pick.shortcut:hover, button.concern-pick.shortcut.active { background: var(--pp-warn-light); color: #E65100; }
button.concern-pick.overcomplication:hover, button.concern-pick.overcomplication.active { background: #f3e8ff; color: #6b21a8; }
button.concern-pick.requirement:hover, button.concern-pick.requirement.active { background: var(--pp-primary-light); color: var(--pp-primary-hover); }
.rm-composer textarea { padding: 10px 12px; font-size: 14px; resize: vertical; }
button.rm-post { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; }

/* Joining as a guest: the header is bare (logo only) until the guest takes a seat. */
body.joining .app-header > :not(.app-brand) { display: none; }

@media (max-width: 1000px) {
  .rm-side { position: static; max-width: none; }
}
@media (max-width: 760px) {
  .rm-rail-inner { flex-wrap: wrap; padding: 8px 12px; }
  .rm-rail-items { order: 3; flex-basis: 100%; }
  .rm-body { padding: 16px 12px 40px; }
  .rm-table { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .rm-felt { position: static; border-radius: 24px; border-width: 6px; padding: 18px 16px; }
  /* Two rows of seats, scrolling sideways when they don't fit */
  .rm-seats { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 8px 4px; }
  .rm-seat { position: relative; left: auto !important; top: auto !important; transform: none; }
  .rm-seat-label { max-width: 112px; }
}

/* ── Retro board (retro.html + frontend/src/retro) ─────────────────── */
.retro-page { max-width: 1560px; padding: 28px 28px 64px; }
.retro-page .hidden { display: none !important; }
.retro-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.retro-title { margin: 0 0 6px; font-family: var(--pp-display); font-weight: 700; font-size: 32px; letter-spacing: -0.01em; line-height: 1.15; color: var(--pp-ink); }
.retro-page .retro-sub { margin: 0; font-size: 15px; color: var(--pp-grey); }
.retro-here { display: flex; align-items: center; gap: 10px; }
.retro-here .avatar-stack { display: flex; padding-left: 7px; }
.retro-here .avatar-stack img { width: 22px; height: 30px; border-radius: 4px; border: 2px solid var(--pp-bg-app); outline: none; margin-left: -7px; object-fit: cover; box-shadow: 0 1px 3px rgba(26, 26, 46, 0.18); }
.retro-here #members-label { font-size: 13.5px; font-weight: 500; color: var(--pp-grey); }
.retro-here #members-label.warn { color: var(--pp-red); font-weight: 600; }
.retro-board { gap: 16px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.retro-column { flex: 1 0 280px; max-width: 400px; border-radius: var(--pp-radius-lg); padding: 14px; gap: 10px; box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.08), 0 0 0 1px rgba(10, 10, 10, 0.02); }
.retro-column-head { margin-bottom: 0; }
.retro-column-head h3 { flex: 1; margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 17px; color: var(--pp-ink); }
.retro-count { padding: 0; min-width: 0; background: none; font-family: var(--pp-sans); font-weight: 600; font-size: 12px; color: var(--pp-grey-light); margin-left: 4px; }
button.col-btn { width: 28px; height: 28px; padding: 0; justify-content: center; border: none; border-radius: var(--pp-radius); background: transparent; color: var(--pp-grey-light); font-size: 11px; }
button.col-btn:hover { background: #f5f5f5; color: var(--pp-ink); border: none; }
button.col-btn.col-btn-danger:hover { background: var(--pp-red-light); color: var(--pp-red); }
.retro-column > .retro-composer { margin-bottom: 0; }
button.retro-composer-open.add-card { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border-radius: var(--pp-radius-md); border: 1.5px dashed var(--pp-neutral-border); background: transparent; color: var(--pp-grey); font-size: 13.5px; }
.retro-column .retro-composer textarea { padding: 10px 12px; border: 1px solid var(--accent); border-radius: var(--pp-radius-md); font-size: 14px; box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.08); }
.retro-composer-actions button { padding: 8px 14px; font-size: 13.5px; }
.retro-card { padding: 12px 12px 10px; border: 1px solid #ececec; display: flex; flex-direction: column; gap: 8px; }
.retro-card::after { top: 9px; right: 11px; }
.retro-card-body { margin: 0; padding-right: 16px; }
.retro-card-meta { gap: 7px; }
.retro-card-meta .concern-time { color: var(--pp-grey-light); }
.retro-card .concern-actions { margin-top: 0; }
.retro-card .reaction-chip { border: 1px solid transparent; background: #f5f5f5; font-weight: 600; }
.retro-card .reaction-chip.active { background: var(--pp-primary-light); border-color: #90CAF9; }
.retro-card button.reaction-add { width: 24px; height: 24px; padding: 0; justify-content: center; border-radius: var(--pp-radius-full); border: 1px solid var(--pp-border); background: var(--pp-white); color: #9e9e9e; }
.retro-card button.reaction-add:hover:not(.is-disabled) { border-color: var(--pp-primary); color: var(--pp-primary); background: var(--pp-white); }
button.thread-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border: none; background: transparent; color: var(--pp-grey-light); font-size: 12px; font-weight: 600; }
button.thread-toggle:hover, button.thread-toggle.active { background: transparent; color: var(--pp-primary); }
.retro-comments { margin-top: 0; padding-top: 8px; border-top: 1px solid var(--pp-border-light); gap: 8px; }
.retro-comment { display: flex; gap: 8px; align-items: flex-start; }
.retro-comment .concern-ava { width: 16px; height: 22px; flex: none; }
.retro-comment p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--pp-text); overflow-wrap: anywhere; }
.retro-comment b { font-weight: 600; color: var(--pp-ink); }
.retro-comment-form { display: flex; gap: 6px; }
.retro-comment-form input { flex: 1; min-width: 0; padding: 7px 10px; font-size: 13px; }
.retro-comment-form button { width: 32px; padding: 0; justify-content: center; font-size: 12px; }
button.retro-add-column { flex: 0 0 180px; width: auto; min-height: 120px; align-self: flex-start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: var(--pp-radius-lg); border: 1.5px dashed var(--pp-neutral-border); background: transparent; color: var(--pp-grey); font-size: 13.5px; }
button.retro-add-column:hover { border-color: var(--pp-primary); color: var(--pp-primary); background: transparent; }
.retro-add-column-form { flex: 0 0 260px; border-radius: var(--pp-radius-lg); padding: 14px; gap: 8px; }

/* ── Error page (error.html) and warm-background pages ─────────────── */
body.warm { background: var(--pp-bg-warm); }
.error-page { max-width: 520px; margin: 0 auto; padding: 80px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.error-cards { display: flex; gap: 8px; margin-bottom: 8px; }
.error-cards span { width: 64px; height: 90px; border-radius: 9px; background: var(--pp-white); border: 1px solid var(--pp-border); box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.3); display: inline-flex; align-items: center; justify-content: center; font-family: var(--pp-display); font-weight: 700; font-size: 38px; color: var(--pp-ink); transform: rotate(-5deg); }
.error-cards span:nth-child(2) { transform: rotate(2deg); }
.error-cards span:nth-child(3) { transform: rotate(6deg); }
.error-cards span.red { color: var(--pp-red); }
.error-title { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 30px; color: var(--pp-ink); }
.error-page p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--pp-grey); max-width: 44ch; text-wrap: pretty; }
.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.error-back { margin-top: 10px; display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: var(--pp-radius); background: var(--pp-primary); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.error-back:hover { background: var(--pp-primary-hover); }

/* ── Admin (admin.html + js/admin-sort.js) ─────────────────────────── */
.admin-page { max-width: 1120px; padding: 44px 28px 80px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-radius: var(--pp-radius-lg); }
.admin-stat-label { font-size: 13px; font-weight: 600; color: var(--pp-grey); }
.admin-stat-label i { color: var(--pp-primary); margin-right: 6px; }
.admin-stat-label i.green { color: var(--pp-green); }
.admin-stat-value { font-family: var(--pp-display); font-weight: 700; font-size: 36px; color: var(--pp-ink); }
.admin-table-wrap { overflow-x: auto; padding: 0; border-radius: var(--pp-radius-lg); }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 12px 16px; border-bottom: 1px solid #ececec; background: var(--pp-bg-inset); text-align: left; }
.admin-table th.num { text-align: right; }
.admin-table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: none; background: transparent; color: var(--pp-grey); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.admin-table th button:hover { background: transparent; color: var(--pp-ink); }
.admin-table th[aria-sort="ascending"] button, .admin-table th[aria-sort="descending"] button { color: var(--pp-ink); }
.admin-table th button i { font-size: 10px; color: var(--pp-grey-light); }
.admin-table th[aria-sort="ascending"] button i, .admin-table th[aria-sort="descending"] button i { color: var(--pp-primary); }
.admin-table td { padding: 11px 16px; border-bottom: 1px solid #f3f3f3; color: var(--pp-text); }
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table td.muted { color: var(--pp-grey); }
.admin-table td.nowrap { white-space: nowrap; }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--pp-ink); font-weight: 600; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user img { width: 20px; height: 28px; border-radius: 4px; object-fit: cover; }
.admin-user b { font-weight: 600; color: var(--pp-ink); }
.provider-github { color: #24292e; margin-right: 6px; }
.provider-google { color: var(--pp-red); margin-right: 6px; }

/* ── Risk proposals in the concerns panel ──────────────────────────── */
.concern-type.risk, .concern-pick.risk { background: #FCE4EC; color: #AD1457; }
button.concern-pick.risk:hover, button.concern-pick.risk.active { background: #FCE4EC; color: #AD1457; }
.risk-choice { display: block; padding: 8px 10px; border: 1px solid var(--pp-border-light); border-radius: var(--pp-radius-md); background: var(--pp-bg-inset); }
.risk-choice-value { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--pp-grey-light); }
.risk-choice-value.picked { color: #AD1457; }
/* Fixed columns, not auto-fill: inside the column-flex composer an auto-fill grid is sized as one column and leaves a gap. */
.risk-choice .risk-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; padding: 0; border: none; background: none; }
.risk-choice .risk-group { display: flex; align-items: center; gap: 4px; min-height: 0; padding: 2px 0; }
.risk-choice .risk-group-label { width: 92px; flex: none; font-size: 11.5px; color: var(--pp-grey); }
.risk-choice .risk-btn { width: 24px; height: 24px; padding: 0; justify-content: center; border-radius: 5px; border: 1px solid var(--pp-border); background: var(--pp-white); color: #9e9e9e; font-size: 10.5px; }
.risk-choice .risk-btn i { color: inherit; }
.risk-choice .risk-btn.active.sev-danger { background: var(--pp-red-light); border-color: #C62828; color: #C62828; }
.risk-choice .risk-btn.active.sev-warn { background: var(--pp-warn-light); border-color: #E65100; color: #E65100; }
.risk-choice .risk-btn.active.sev-ok { background: var(--pp-green-light); border-color: var(--pp-green-hover); color: var(--pp-green-hover); }
.risk-choice .risk-btn.active.sev-neutral { background: #f5f5f5; border-color: #555; color: #555; }
.proposal-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.proposal-line .risk-pill { padding: 2px 8px; font-size: 11.5px; }
.proposal-state { padding: 1px 7px; border-radius: var(--pp-radius-full); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.proposal-state.open { background: #FCE4EC; color: #AD1457; }
.proposal-state.accepted { background: var(--pp-green-light); color: var(--pp-green-hover); }
.proposal-state.dismissed { background: #f5f5f5; color: var(--pp-grey); }
@media (max-width: 480px) {
  .risk-choice .risk-groups { grid-template-columns: minmax(0, 1fr); }
}
.rm-concerns .concern-item { border: none; border-top: 1px solid var(--pp-border-light); border-radius: 0; }
button.proposal-accept, button.proposal-dismiss { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pp-radius-full); font-size: 12px; }
button.proposal-accept { background: var(--pp-green); }
button.proposal-accept:hover { background: var(--pp-green-hover); }
button.proposal-dismiss { border: 1px solid var(--pp-border-input); background: var(--pp-white); color: var(--pp-ink); }
button.proposal-dismiss:hover { background: #f5f5f5; }
