/* "Make it yours" for the SIGNED-IN presenter — RPM Car Club demo
 * (2026-11-08). Companion to presenter-yours.js; see it for the rules.
 * Scoped to .presenter-yours-* / .py-* classes so nothing else in the
 * app is affected. Visual language mirrors the showcase's Make It Yours
 * (showcase-login.css): the same red pill, the same white panel card.
 *
 * Placement: there is no showcase banner when signed in, so the pill
 * stacks in the presenter corner — bottom-left, directly above the
 * "Demo: club colors" wheel launcher (.rcd-launcher: left 18px,
 * bottom 18px, ~41px tall) — and the panel opens above the pill. No
 * layout is shifted and no sticky-header offset is touched. Member
 * tools (chat) live bottom-right and are never overlapped. */

.presenter-yours-btn {
  position: fixed;
  left: 18px;
  bottom: 70px;
  z-index: 9994;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #b70f19;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}
.presenter-yours-btn:hover { background: #960c14; }
.presenter-yours-btn[hidden] { display: none; }
.presenter-yours-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(#e33, #e8720c, #f2c94c, #1e8a3c, #0f8b8d, #1c5fd6, #7b2fd6, #e33);
  border: 1px solid rgba(255, 255, 255, 0.55);
  flex: none;
}

.py-panel {
  position: fixed;
  left: 18px;
  bottom: 122px;
  z-index: 9997;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 140px);
  overflow: auto;
  background: #ffffff;
  color: #1c2733;
  color-scheme: light;
  border: 1px solid #dde3ea;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  padding: 16px 18px;
  box-sizing: border-box;
  font-size: 14px;
}
.py-panel[hidden] { display: none; }
.py-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.py-panel-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: #5a6a7a; }
.py-panel-note { color: #5a6a7a; font-size: 13px; margin: 6px 0 12px; }
.py-field { display: grid; gap: 5px; margin: 10px 0; }
.py-field span { font-weight: 600; font-size: 13px; }
.py-field input[type="text"] {
  padding: 9px 10px; border: 1px solid #c8d1db; border-radius: 8px; font-size: 14px; width: 100%; box-sizing: border-box;
}
.py-field input[type="file"] { font-size: 13px; }
.py-logo-state { color: #5a6a7a; font-size: 12.5px; margin: 2px 0 0; }

.py-colors { border-top: 1px solid #eef1f5; margin: 12px 0 4px; padding-top: 10px; }
.py-color-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.py-color-label { font-weight: 600; font-size: 13px; flex: 1; }
.py-accent-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.py-color-row input[type="color"] {
  width: 46px; height: 32px; padding: 0; cursor: pointer;
  border: 1px solid #c8d1db; border-radius: 8px; background: #ffffff;
}
.py-color-row input[type="color"]:disabled { opacity: 0.4; cursor: default; }
.py-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #1c2733; min-width: 58px; }
.py-colors-note { color: #8a97a5; font-size: 12px; margin: 6px 0 0; }

.py-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.py-apply-btn {
  background: #b70f19; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.py-apply-btn:hover { background: #960c14; }
.py-reset-btn {
  background: #eef1f5; color: #1c2733; border: 1px solid #c8d1db; border-radius: 8px;
  padding: 8px 14px; font-size: 14px; cursor: pointer;
}
.py-panel-msg { color: #33691e; font-size: 13px; margin: 10px 0 0; }

/* On short screens the panel's upward opening could crowd the top;
 * let it use the space between the pill and the top edge. */
@media (max-height: 560px) {
  .py-panel { max-height: calc(100vh - 130px); }
}
