/* The Drawer - main.css
 * Design tokens (Section 20). Shared shell styles.
 * No per-Thing styles. Those land per-Thing brief.
 */

:root {
  --white:       #f8f9f7;
  --off-white:   #f0f2ee;
  --slate:       #2e3d3a;
  --slate-mid:   #4a5e59;
  --slate-muted: #8a9e99;
  --sage:        #5c8a7a;
  --sage-pale:   #d4e8e2;
  --rose:        #b56e6e;
  --rose-pale:   #f0dede;
  --amber:       #b5853a;
  --amber-pale:  #f2e8d4;
  --rule:        #dce4e2;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--off-white);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

[hidden] { display: none !important; }

/* ----- Landing page --------------------------------------------------- */

.landing {
  min-height: 100vh;
  background: var(--slate);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.landing::after {
  content: '\25CE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(280px, 60vw, 640px);
  color: var(--white);
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}

.landing-wordmark {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  padding: 28px 32px;
  color: var(--white);
}

.landing-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 80px;
}

.landing-card {
  width: 100%;
  max-width: 720px;
}

.landing-headline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 40px;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-actions button {
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .landing-actions { flex-direction: column; align-items: stretch; }
  .landing-actions button { width: 100%; }
}

/* ----- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white);
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
  min-height: 48px;
  letter-spacing: 0.01em;
}

.btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.btn-primary:hover:not(:disabled) { background: #4f7768; border-color: #4f7768; }

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--slate-muted);
  padding: 8px 12px;
  min-height: 36px;
  font-size: 13px;
}
.btn-ghost:hover:not(:disabled) { color: var(--slate); }

/* ----- Auth forms ----------------------------------------------------- */

.auth-form {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  border-radius: 4px;
  max-width: 420px;
}

.auth-form .field { margin-bottom: 14px; }
.auth-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(248, 249, 247, 0.7);
  margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--sage);
  background: rgba(0, 0, 0, 0.3);
}

.auth-form .actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-error {
  margin-top: 12px;
  color: var(--rose);
  font-size: 14px;
  line-height: 1.5;
  min-height: 1em;
}

/* ----- Album shell ---------------------------------------------------- */

.nav {
  background: var(--slate);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-right: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav .btn-ghost { color: rgba(248, 249, 247, 0.7); }
.nav .btn-ghost:hover { color: var(--white); }

@media (max-width: 600px) {
  .nav { padding: 14px 20px; }
  .nav-wordmark { font-size: 18px; }
}

/* ----- Boss Mode toggle pill ------------------------------------------ */

.boss-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(248, 249, 247, 0.3);
  color: rgba(248, 249, 247, 0.75);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 32px;
}

.boss-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(248, 249, 247, 0.3);
  transition: background 0.15s;
}

.boss-pill:hover { color: var(--white); border-color: rgba(248, 249, 247, 0.5); }

.boss-pill.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.boss-pill.is-active::before { background: var(--white); }

/* ----- Main album area ------------------------------------------------ */

.album {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.album-loading {
  font-size: 14px;
  color: var(--slate-muted);
  padding: 60px 0;
}

.achievements {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.achievements-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 14px;
}

.achievements-row {
  min-height: 48px;
  /* Empty placeholder. Achievement stickers render here in a later brief. */
}

.category {
  margin-bottom: 56px;
}

.category-header {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--slate);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 900px) {
  .sticker-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.sticker-card {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  position: relative;
}

.sticker-build-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
}
.sticker-build-dot--red   { background: var(--rose); }
.sticker-build-dot--green { background: var(--sage); }

/* ----- Footer --------------------------------------------------------- */

.footer {
  text-align: center;
  font-size: 13px;
  color: var(--slate-muted);
  padding: 32px 24px 48px;
}

.footer a { color: var(--slate-mid); border-bottom: 1px dotted var(--slate-muted); }
.footer a:hover { color: var(--slate); }

.site-footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(46, 61, 58, 0.25);
  transition: border-color 0.15s;
}
.site-footer-link:hover {
  border-bottom-color: var(--sage);
}

/* ----- Sticker card states -------------------------------------------- */

.sticker--unlocked {
  background: var(--sage-pale);
  border-color: var(--sage-pale);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sticker--unlocked:hover { background: #c5dfd8; border-color: #c5dfd8; }

.sticker--locked {
  background: var(--off-white);
  border-color: var(--rule);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.15s;
}
.sticker--locked:hover { opacity: 0.8; }

.sticker--private {
  background: var(--off-white);
  border-color: var(--rule);
  border-left: 3px solid var(--amber);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sticker--private:hover { background: var(--amber-pale); }

.sticker-name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--slate);
  padding: 0 4px;
}

.sticker-desc {
  display: block;
  font-size: 11px;
  font-weight: 300;
  opacity: 0.75;
  margin-top: 4px;
  line-height: 1.4;
  padding: 0 4px;
}

/* ----- Thing shell (single-Thing pages) ------------------------------- */

.thing-shell {
  min-height: 100vh;
  background: var(--slate);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.thing-shell .footer { background: var(--slate); }
.thing-shell .footer a { color: var(--slate-muted); border-bottom-color: var(--slate-mid); }
.thing-shell .footer a:hover { color: var(--white); }

.nav-back {
  font-size: 22px;
  line-height: 1;
  color: rgba(248, 249, 247, 0.6);
  transition: color 0.15s;
  padding: 4px 4px 4px 0;
  flex-shrink: 0;
}
.nav-back:hover { color: var(--white); }

/* ----- Don't Push ----------------------------------------------------- */

.thing-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 24px;
}

.dp-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-muted);
  user-select: none;
}

.dp-btn {
  width: clamp(160px, 38vw, 240px);
  height: clamp(160px, 38vw, 240px);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ff3a1a, #cc2200 55%, #991800);
  border: none;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

.dp-btn::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.dp-btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }

.dp-btn.is-pressed {
  transform: scale(0.94);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.45),
    0 1px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ----- Popup overlay -------------------------------------------------- */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.popup {
  background: var(--white);
  color: var(--slate);
  border-radius: 4px;
  padding: 32px 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.popup-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 12px;
}

.popup-body {
  font-size: 15px;
  color: var(--slate-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ----- The Guest List ------------------------------------------------ */

.gl-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.gl-loading,
.gl-error {
  font-size: 14px;
  color: var(--slate-muted);
  padding: 60px 0;
  text-align: center;
}
.gl-error { color: var(--rose); }

.gl-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .gl-layout { grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
}

.gl-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 16px;
}

.gl-search {
  width: 100%;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 10px 14px;
  border-radius: 2px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.gl-search:focus { outline: none; border-color: var(--sage); }

.gl-list {
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  max-height: 70vh;
  overflow-y: auto;
}

.gl-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.15s;
}
.gl-row:last-child { border-bottom: none; }
.gl-row:hover { background: var(--off-white); }
.gl-row.is-selected { background: var(--sage-pale); }

.gl-row--empty {
  cursor: default;
  color: var(--slate-muted);
  font-size: 13px;
  text-align: center;
}
.gl-row--empty:hover { background: transparent; }

.gl-row-email {
  font-weight: 400;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 2px;
  word-break: break-all;
}

.gl-row-meta {
  font-size: 12px;
  color: var(--slate-muted);
}

.gl-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
}

.gl-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gl-panel-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--slate);
  word-break: break-all;
  flex: 1 1 auto;
}

.gl-field {
  margin-bottom: 18px;
}

.gl-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 6px;
}

.gl-field input[type="email"],
.gl-field input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 10px 14px;
  border-radius: 2px;
  transition: border-color 0.15s;
}
.gl-field input:focus { outline: none; border-color: var(--sage); }

.gl-multi {
  border: 1px solid var(--rule);
  border-radius: 4px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
}

.gl-multi-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--slate-muted);
  text-align: center;
}

.gl-multi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.15s;
}
.gl-multi-row:last-child { border-bottom: none; }
.gl-multi-row:hover { background: var(--off-white); }

.gl-multi-name {
  font-size: 14px;
  color: var(--slate);
  flex: 1 1 auto;
}

.gl-multi-meta {
  font-size: 12px;
  color: var(--slate-muted);
}

.gl-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--slate-mid);
  border: 1px solid var(--rule);
}
.gl-pill--unlocked { background: var(--sage-pale);  color: var(--slate);     border-color: var(--sage-pale); }
.gl-pill--locked   { background: var(--off-white);  color: var(--slate-mid); }
.gl-pill--private  { background: var(--amber-pale); color: var(--slate);     border-color: var(--amber-pale); }
.gl-pill--hidden   { background: var(--rose-pale);  color: var(--slate);     border-color: var(--rose-pale); }
.gl-pill--draft    { background: var(--rule);       color: var(--slate-mid); border-color: var(--rule); }

.gl-form-actions { margin-top: 4px; }

.gl-result {
  margin-top: 18px;
  font-size: 14px;
  color: var(--slate-mid);
}
.gl-result--error { color: var(--rose); }
.gl-result--ok    { color: var(--slate); }

.gl-result-label { margin-bottom: 8px; }

.gl-result-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.gl-result-link {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  background: var(--off-white);
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  border-radius: 2px;
}

.gl-result-row .btn-secondary {
  color: var(--slate);
  border-color: var(--rule);
  background: var(--white);
}
.gl-result-row .btn-secondary:hover { background: var(--off-white); }

.gl-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .gl-stats { grid-template-columns: 1fr; }
}

.gl-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gl-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-muted);
}

.gl-stat-value {
  font-size: 15px;
  color: var(--slate);
}

.gl-section { margin-top: 24px; }

.gl-section-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 10px;
}

.gl-thing-list,
.gl-list-flat {
  list-style: none;
}

.gl-thing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.gl-thing-row:last-child { border-bottom: none; }

.gl-thing-name {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--slate);
}

.gl-vis-select {
  font: inherit;
  font-size: 13px;
  padding: 4px 8px;
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  text-transform: capitalize;
}
.gl-vis-select:focus { outline: none; border-color: var(--sage); }

.gl-list-flat li {
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--slate-mid);
}
.gl-list-flat li:last-child { border-bottom: none; }

/* ----- Mailbox notice banner ----------------------------------------- */

.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--sage);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.notice-banner-text {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.notice-banner-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(248, 249, 247, 0.7);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.notice-banner-close:hover { color: var(--white); }

/* ----- The Broadcast ------------------------------------------------- */

.bc-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.bc-loading,
.bc-error {
  font-size: 14px;
  color: var(--slate-muted);
  padding: 60px 0;
  text-align: center;
}
.bc-error { color: var(--rose); }

.bc-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 32px;
}

.bc-section-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 12px;
}

.bc-current { margin-bottom: 40px; }

.bc-current-card {
  background: var(--sage-pale);
  border-left: 3px solid var(--sage);
  border-radius: 4px;
  padding: 20px 24px;
}

.bc-current-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.bc-current-body {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.bc-current-meta {
  font-size: 12px;
  color: var(--slate-mid);
  margin-bottom: 16px;
}

.bc-current-actions {
  display: flex;
  gap: 8px;
}

.bc-current-actions .btn-secondary {
  color: var(--slate);
  border-color: var(--rule);
  background: var(--white);
}
.bc-current-actions .btn-secondary:hover { background: var(--off-white); }

.bc-empty {
  font-size: 13px;
  color: var(--slate-muted);
  font-style: italic;
}

.bc-compose { margin-bottom: 40px; }

.bc-textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  border-radius: 2px;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s;
}
.bc-textarea:focus { outline: none; border-color: var(--sage); }

.bc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}

.bc-counter {
  font-size: 12px;
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
}
.bc-counter--over { color: var(--rose); font-weight: 500; }

.bc-result {
  margin-top: 12px;
  font-size: 14px;
  min-height: 1em;
}
.bc-result--ok    { color: var(--sage); font-weight: 500; }
.bc-result--error { color: var(--rose); }

.bc-history-list { list-style: none; }

.bc-history-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.bc-history-body {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.bc-history-meta {
  font-size: 12px;
  color: var(--slate-muted);
}

.bc-history-empty {
  font-size: 13px;
  color: var(--slate-muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* ----- The Numbers --------------------------------------------------- */

.num-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.num-loading,
.num-error {
  font-size: 14px;
  color: var(--slate-muted);
  padding: 60px 0;
  text-align: center;
}
.num-error { color: var(--rose); }

.num-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 32px;
}

.num-section { margin-bottom: 40px; }

.num-section-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 10px;
}

.num-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px 24px;
}

.num-card--featured {
  border-color: var(--sage);
  box-shadow: 0 1px 0 var(--sage-pale);
}

.num-loadfail {
  font-size: 13px;
  color: var(--rose);
  font-style: italic;
}

.num-empty {
  font-size: 13px;
  color: var(--slate-muted);
  font-style: italic;
}
.num-empty--ok { color: var(--sage); font-style: normal; }

.num-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate-mid);
}

.num-stat-grid {
  display: grid;
  gap: 16px 24px;
}
.num-stat-grid--one   { grid-template-columns: 1fr; }
.num-stat-grid--two   { grid-template-columns: repeat(2, 1fr); }
.num-stat-grid--three { grid-template-columns: repeat(3, 1fr); }
.num-stat-grid--five  { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 700px) {
  .num-stat-grid--three,
  .num-stat-grid--five  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .num-stat-grid--two,
  .num-stat-grid--three,
  .num-stat-grid--five  { grid-template-columns: 1fr; }
}

.num-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.num-stat-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.num-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-muted);
}

.num-rank-list {
  list-style: none;
}

.num-rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.num-rank-row:last-child { border-bottom: none; }

.num-rank-pos {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--slate-muted);
  min-width: 28px;
  font-variant-numeric: tabular-nums;
}

.num-rank-main {
  flex: 1 1 auto;
  min-width: 0;
}

.num-rank-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.num-rank-name {
  font-size: 15px;
  color: var(--slate);
}

.num-rank-cat {
  font-size: 12px;
  color: var(--slate-muted);
}

.num-rank-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.num-rank-bar-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  transition: width 0.2s;
}

.num-rank-count {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--slate);
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.num-list {
  list-style: none;
  margin-top: 16px;
}

.num-list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--slate-mid);
}
.num-list-item:last-child { border-bottom: none; }

.num-thing-list {
  list-style: none;
  margin-top: 20px;
}

.num-thing-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.num-thing-row:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .num-thing-row { grid-template-columns: 1fr auto; }
  .num-thing-cat,
  .num-thing-order { grid-column: 1 / -1; padding-left: 0; }
}

.num-thing-name {
  font-size: 14px;
  color: var(--slate);
  min-width: 0;
}

.num-thing-cat {
  font-size: 12px;
  color: var(--slate-muted);
}

.num-thing-order {
  font-size: 11px;
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
}

/* ----- The Changelog (admin write) ----------------------------------- */

.cl-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.cl-loading,
.cl-error {
  font-size: 14px;
  color: var(--slate-muted);
  padding: 60px 0;
  text-align: center;
}
.cl-error { color: var(--rose); }

.cl-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 32px;
}

.cl-compose { margin-bottom: 40px; }

.cl-textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  border-radius: 2px;
  resize: vertical;
  min-height: 90px;
  transition: border-color 0.15s;
}
.cl-textarea:focus { outline: none; border-color: var(--sage); }

.cl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}

.cl-counter {
  font-size: 12px;
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
}
.cl-counter--over { color: var(--rose); font-weight: 500; }

.cl-result {
  margin-top: 12px;
  font-size: 14px;
  min-height: 1em;
}
.cl-result--ok    { color: var(--sage); font-weight: 500; }
.cl-result--error { color: var(--rose); }

.cl-section-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 12px;
}

.cl-history-list { list-style: none; }

.cl-empty {
  font-size: 13px;
  color: var(--slate-muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

.cl-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.cl-entry:last-child { border-bottom: none; }

.cl-entry-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 4px;
}

.cl-entry-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate);
  white-space: pre-wrap;
}

/* ----- Public /changelog -------------------------------------------- */

.pcl-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.pcl-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--slate);
  margin-bottom: 32px;
}

.pcl-loading {
  font-size: 14px;
  color: var(--slate-muted);
  padding: 40px 0;
  text-align: center;
}

.pcl-list { list-style: none; }

.pcl-empty {
  font-size: 14px;
  color: var(--slate-muted);
  font-style: italic;
  padding: 40px 0;
  text-align: center;
}

.pcl-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.pcl-entry:last-child { border-bottom: none; }

.pcl-entry-date {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 6px;
}

.pcl-entry-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  white-space: pre-wrap;
}

/* ----- The Board ----------------------------------------------------- */

.bd-page {
  max-width: none;
  margin: 0;
  padding: 32px 24px 64px;
}

.bd-loading,
.bd-error {
  font-size: 14px;
  color: var(--slate-muted);
  padding: 60px 24px;
  text-align: center;
}
.bd-error { color: var(--rose); }

.bd-header {
  max-width: 1400px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bd-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--slate);
}

.bd-new-btn { color: var(--white); }

.bd-board {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

@media (max-width: 900px) {
  .bd-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
}

.bd-column {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: background 0.15s, border-color 0.15s;
}

.bd-column.is-drag-over {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.bd-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.bd-column-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-mid);
}

.bd-column-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-muted);
  border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.bd-column-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}

.bd-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 28px 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s, transform 0.15s;
}
.bd-card:hover { border-color: var(--slate-muted); }
.bd-card.is-dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.bd-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.bd-card-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.3;
  flex: 1 1 auto;
}

.bd-card-dot-wrap {
  flex-shrink: 0;
  padding-top: 4px;
}

.bd-card-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.bd-card-dot--red   { background: var(--rose); }
.bd-card-dot--green { background: var(--sage); }

.bd-card-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--slate-mid);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
}

.bd-card-handle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-muted);
  cursor: grab;
  user-select: none;
}
.bd-card-handle:hover { color: var(--slate-mid); }
.bd-card-handle:active { cursor: grabbing; }
.bd-card-handle svg { fill: currentColor; }

.bd-card-snap {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--rose-pale);
  color: var(--rose);
  font-size: 12px;
  border-radius: 2px;
  animation: bd-snap-fade 3s ease forwards;
}

@keyframes bd-snap-fade {
  0%   { opacity: 0; transform: translateY(-4px); }
  10%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* Board category pills */
.bd-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--slate);
}
.bd-pill--thinking     { background: var(--amber-pale); }
.bd-pill--deciding     { background: var(--sage-pale); }
.bd-pill--language     { background: #d4e4f0; }
.bd-pill--systems      { background: #dce4e2; }
.bd-pill--building     { background: #ede8e4; }
.bd-pill--just-for-fun { background: var(--rose-pale); }

/* Archived */
.bd-archived {
  max-width: 1400px;
  margin: 32px auto 0;
}

.bd-archived-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-muted);
  padding: 8px 0;
  cursor: pointer;
}
.bd-archived-toggle:hover { color: var(--slate); }

.bd-archived-arrow { font-size: 10px; }

.bd-archived-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--rule);
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.bd-archived-body { margin-top: 12px; }

.bd-archived-empty {
  font-size: 13px;
  color: var(--slate-muted);
  font-style: italic;
  padding: 16px 0;
}

.bd-archived-list { list-style: none; }

.bd-archived-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 6px;
}

.bd-archived-name {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--slate);
}

.bd-archived-restore { flex-shrink: 0; }

/* Detail panel */
.bd-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 300;
  display: flex;
  justify-content: flex-end;
}

.bd-detail {
  width: 380px;
  max-width: 100%;
  background: var(--white);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: bd-slide-in 0.2s ease;
}

@keyframes bd-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@media (max-width: 700px) {
  .bd-detail { width: 100%; }
}

.bd-detail-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.bd-detail-title {
  flex: 1 1 auto;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--slate);
  word-break: break-word;
}

.bd-detail-saved {
  font-size: 11px;
  color: var(--sage);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
}
.bd-detail-saved.is-flashing {
  animation: bd-saved-flash 2.1s ease forwards;
}

@keyframes bd-saved-flash {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

.bd-detail-close {
  background: transparent;
  border: none;
  color: var(--slate-muted);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.15s;
  flex-shrink: 0;
}
.bd-detail-close:hover { color: var(--slate); }

.bd-detail-body {
  padding: 20px;
  flex: 1;
}

.bd-detail-field { margin-bottom: 16px; }

.bd-detail-field--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bd-detail-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 6px;
}
.bd-detail-field--row .bd-detail-label { margin-bottom: 0; }

.bd-detail-input,
.bd-detail-textarea,
.bd-detail-select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 8px 12px;
  border-radius: 2px;
  transition: border-color 0.15s;
}
.bd-detail-input:focus,
.bd-detail-textarea:focus,
.bd-detail-select:focus {
  outline: none;
  border-color: var(--sage);
}

.bd-detail-textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

.bd-detail-select { text-transform: capitalize; }

.bd-detail-toggle {
  width: auto;
  margin: 0;
}

.bd-detail-archive-section {
  padding: 20px;
  border-top: 1px solid var(--rule);
}

.bd-detail-archive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 2px;
  border: 1px solid var(--rose);
  background: var(--white);
  color: var(--rose);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bd-detail-archive:hover {
  background: var(--rose);
  color: var(--white);
}

.bd-detail-confirm-text {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
}

.bd-detail-confirm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bd-detail-section-label {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--slate-mid);
  margin:         24px 0 12px;
  padding-top:    16px;
  border-top:     1px solid var(--rule);
}

.bd-detail-office-section { margin-top: 0; }

.bd-office-progress {
  font-size:   11px;
  font-weight: 400;
  color:       var(--slate-muted);
  margin-bottom: 12px;
}

.bd-office-progress--ready {
  color: var(--sage);
}

/* AI creation modal */
.bd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bd-modal {
  background: var(--white);
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}

@media (max-width: 600px) {
  .bd-modal-overlay { padding: 0; }
  .bd-modal {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

.bd-modal-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 16px;
}

.bd-modal-textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  border-radius: 2px;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s;
}
.bd-modal-textarea:focus { outline: none; border-color: var(--sage); }
.bd-modal-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bd-modal-error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--rose);
}

.bd-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ----- The Board: filter bar + view toggle + swimlanes + ideas ------- */

.bd-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bd-filters {
  max-width: 1400px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--rule);
}

.bd-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bd-filter-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-right: 4px;
}

.bd-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bd-filter-chip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--slate-mid);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.bd-filter-chip:hover { color: var(--slate); border-color: var(--slate-muted); }
.bd-filter-chip.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.bd-filter-clear {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--slate-muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  text-decoration: underline;
}
.bd-filter-clear:hover { color: var(--slate); }

.bd-view-toggle {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.bd-view-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--slate-mid);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bd-view-btn:hover { color: var(--slate); }
.bd-view-btn.is-active {
  background: var(--slate);
  color: var(--white);
}

/* Swimlane grid */
.bd-board--swimlanes {
  display: grid;
  grid-template-columns: 140px repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.bd-swimlane-header {
  background: var(--off-white);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-muted);
}

.bd-swimlane-cat {
  background: var(--off-white);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  display: flex;
  align-items: flex-start;
}

.bd-swimlane-cell {
  background: var(--white);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.bd-swimlane-note {
  max-width: 1400px;
  margin: 0 auto 8px;
  font-size: 11px;
  color: var(--slate-muted);
  font-style: italic;
  padding: 8px 0 4px;
}

/* Static card (swimlane view): no drag handle. */
.bd-card--static {
  padding-right: 14px;
}

/* Ideas section (mirrors archived pattern) */
.bd-ideas {
  max-width: 1400px;
  margin: 32px auto 0;
}

.bd-ideas-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-muted);
  padding: 8px 0;
  cursor: pointer;
}
.bd-ideas-toggle:hover { color: var(--slate); }

.bd-ideas-arrow { font-size: 10px; }

.bd-ideas-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--rule);
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.bd-ideas-body { margin-top: 12px; }

.bd-ideas-empty {
  font-size: 13px;
  color: var(--slate-muted);
  font-style: italic;
  padding: 16px 0;
}

.bd-ideas-list { list-style: none; }

.bd-ideas-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.bd-ideas-name {
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
}

.bd-ideas-desc {
  flex: 1 1 200px;
  font-size: 12px;
  color: var(--slate-mid);
  min-width: 0;
}

.bd-ideas-promote {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid var(--sage);
  background: var(--white);
  color: var(--sage);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bd-ideas-promote:hover {
  background: var(--sage);
  color: var(--white);
}

/* ===== Album ===================================================== */

.body--album { background: #f4f1ea; }

.alb-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px 60px;
  background: #f4f1ea;
}

@media (max-width: 600px) {
  .alb-wrap { padding: 16px 18px 60px; }
}

/* Tabs */
.alb-tabs {
  display: flex;
  gap: 2px;
  padding-left: 4px;
  border-bottom: 0.5px solid rgba(46, 61, 58, 0.18);
  margin-bottom: 24px;
  overflow-x: auto;
}

.alb-tab {
  flex: 1 1 0;
  min-width: 72px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(60, 102, 85, 0.55);
  text-align: center;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1.2;
  transition: color 150ms, border-color 150ms;
}
.alb-tab:hover { color: var(--slate); }
.alb-tab.is-active {
  color: var(--slate);
  border-bottom-color: #b5853a;
  font-weight: 500;
}

.alb-tab-pip {
  display: inline-block;
  font-size: 8px;
  font-weight: 500;
  color: var(--sage);
  margin-left: 4px;
  opacity: 0.8;
}

.alb-tab-label-full  { display: inline; }
.alb-tab-label-short { display: none; }

@media (max-width: 900px) {
  .alb-tab-label-full  { display: none; }
  .alb-tab-label-short { display: inline; }

  .alb-tabs { gap: 0; }

  .alb-tab {
    flex: 1;
    font-size: 8px;
    padding: 7px 4px;
    min-width: 0;
    white-space: nowrap;
  }
}

/* Pages */
.alb-pages { position: relative; }

.alb-page {
  display: none;
  flex-direction: column;
  padding: 8px 0 0;
  opacity: 1;
  transition: opacity 100ms ease;
}
.alb-page.is-active { display: flex; }
.alb-page--leaving { opacity: 0; pointer-events: none; }

.alb-page-spine {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5c8a7a;
  margin-bottom: 6px;
}

.alb-page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .alb-page-title { font-size: 28px; }
}

.alb-page-sub {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: #5c8a7a;
  line-height: 1.5;
  margin-bottom: 24px;
}

.alb-page-empty {
  font-size: 13px;
  color: var(--slate-muted);
  font-style: italic;
  padding: 12px 0;
}

.alb-section-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(60, 102, 85, 0.7);
  margin-bottom: 12px;
}

/* Filter pills (overview only) */
.alb-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0 16px;
  margin-bottom: 16px;
  border-bottom: 0.5px dashed rgba(60, 102, 85, 0.2);
}

.alb-filter-chip {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  padding: 5px 13px;
  border-radius: 20px;
  border: 0.5px solid rgba(60, 102, 85, 0.3);
  background: transparent;
  color: rgba(60, 102, 85, 0.75);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.alb-filter-chip:hover { color: var(--slate); border-color: var(--slate-muted); }
.alb-filter-chip.is-active {
  background: #5c8a7a;
  border-color: #5c8a7a;
  color: #f4f7f5;
}

/* Thing grid */
.alb-grid-host { margin-bottom: 8px; }

.alb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}

@media (max-width: 900px) {
  .alb-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Card (locked is the bounded frame; unlocked keeps its sticker treatment) */
.alb-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alb-card--locked {
  gap: 0;
  min-height: 180px;
  padding: 14px 12px 12px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background: repeating-linear-gradient(
    45deg,
    #f4f1ea,
    #f4f1ea 3px,
    #eae7df 3px,
    #eae7df 5px
  );
  border: 0.5px solid rgba(46, 61, 58, 0.15);
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.alb-card--locked:hover { transform: none; }
.alb-card--locked:active {
  transform: scale(0.96);
  box-shadow: inset 0 2px 6px rgba(46, 61, 58, 0.12);
}
.alb-card--locked:focus-visible {
  outline: 2px solid #b5853a;
  outline-offset: 4px;
}

.alb-card--locked.alb-card--requested {
  background: repeating-linear-gradient(
    45deg,
    #f4f1ea,
    #f4f1ea 3px,
    #ede9e3 3px,
    #ede9e3 5px
  );
}


.alb-card-upper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
}

.alb-card-name {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  text-align: center;
  line-height: 1.3;
  margin: 0;
}
.alb-card--locked .alb-card-name { color: var(--slate); }

.alb-card-name--unlocked {
  color: rgba(244, 247, 245, 0.95);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}

.alb-card-lower {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Unlocked card frame (same upper/lower structure as locked, colour bg) */
.alb-card--unlocked {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 14px 12px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.alb-card--unlocked:hover { transform: translateY(-2px); }
.alb-card--unlocked:focus-visible {
  outline: 2px solid #b5853a;
  outline-offset: 3px;
}

.alb-card--private { border-left: 3px solid var(--amber); }

/* Sticker */
.alb-sticker {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 0.5px solid rgba(60, 102, 85, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
}
.alb-sticker:hover { transform: translateY(-2px); }
.alb-sticker:focus-visible {
  outline: 2px solid #b5853a;
  outline-offset: 3px;
}

.alb-sticker-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

@media (max-width: 600px) {
  .alb-sticker-name { font-size: 18px; }
}

/* Unlocked per-category palette */
.alb-sticker--unlocked { color: #f4f7f5; border-color: rgba(0, 0, 0, 0.18); }
.alb-sticker--thinking      { background: #b5853a; }
.alb-sticker--deciding      { background: #5c8a7a; }
.alb-sticker--language      { background: #4a7e95; }
.alb-sticker--systems       { background: #4a5e59; }
.alb-sticker--building      { background: #8a9e99; }
.alb-sticker--just-for-fun  { background: #b56e6e; }
.alb-sticker--mine          { background: #2e3d3a; }

/* Locked: flat grey */
.alb-sticker--locked {
  background: #e3e7e2;
  color: rgba(60, 102, 85, 0.55);
  cursor: pointer;
}
.alb-sticker--locked .alb-sticker-name {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: rgba(46, 61, 58, 0.55);
}

@media (max-width: 600px) {
  .alb-sticker--locked .alb-sticker-name { font-size: 13px; }
}

/* Admin private overlay */
.alb-sticker--private { border-left: 3px solid var(--amber); }

/* Description + rule + "I want this" (locked cards) */
.alb-card-desc {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 300;
  font-style: normal;
  color: var(--slate-mid);
  line-height: 1.45;
  text-align: center;
  margin: 0 0 8px 0;
}

.alb-card-rule {
  width: 100%;
  border-top: 0.5px solid rgba(46, 61, 58, 0.15);
  margin-top: 12px;
  margin-bottom: 8px;
}

.alb-card-want {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--slate-muted);
  text-align: center;
  padding-bottom: 2px;
  letter-spacing: 0;
  text-transform: none;
}

.alb-card-want--requested {
  color: var(--sage);
  font-weight: 500;
}

.alb-card-desc--unlocked {
  color: rgba(244, 247, 245, 0.65);
  font-style: normal;
  font-size: 10px;
  font-weight: 300;
  text-align: center;
  line-height: 1.4;
  margin-top: 6px;
}

/* Placeholder slot (row completion, BRIEF-079E) */
.alb-placeholder {
  aspect-ratio: 1;
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    #f4f1ea,
    #f4f1ea 3px,
    #eae7df 3px,
    #eae7df 5px
  );
  border: 0.5px solid rgba(46, 61, 58, 0.08);
  min-height: 140px;
  pointer-events: none;
}

.alb-more-coming {
  font-size: 10px;
  font-weight: 300;
  color: var(--slate-muted);
  font-style: italic;
  margin-top: 12px;
}

/* Admin build-status dot */
.alb-admin-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
}
.alb-admin-dot--red   { background: var(--rose); }
.alb-admin-dot--green { background: var(--sage); }

/* Achievements row (overview only) */
.alb-ach-slots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.alb-ach {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  border: 0.5px solid rgba(60, 102, 85, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px;
  overflow: hidden;
  cursor: default;
}

.alb-ach--earned {
  background: #5c8a7a;
  color: #f4f7f5;
  border-color: #3d6655;
}

.alb-ach--soon {
  background: #e3e7e2;
  color: rgba(60, 102, 85, 0.5);
  font-style: italic;
}

@media (max-width: 600px) {
  .alb-ach { width: 48px; height: 48px; font-size: 8px; }
}

/* New achievements section (BRIEF-079I): five large circles, first earned. */
.alb-ach-section {
  margin-bottom: 32px;
}

.alb-ach-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 20px;
}

.alb-ach-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.alb-ach-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.alb-ach-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 61, 58, 0.15);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.alb-ach-circle--earned {
  background: var(--sage);
  border-color: var(--sage);
  padding: 8px;
}

.alb-ach-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alb-ach-name {
  font-size: 10px;
  font-weight: 300;
  color: var(--slate-muted);
  text-align: center;
  font-style: italic;
  max-width: 80px;
  line-height: 1.3;
}

/* Welcome line */
.alb-welcome {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: var(--slate-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Overview summary count */
.alb-overview-summary {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: #5c8a7a;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 0.5px dashed rgba(60, 102, 85, 0.25);
}

/* Category page footer */
.alb-page-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 0.5px dashed rgba(60, 102, 85, 0.25);
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  font-style: italic;
  color: #5c8a7a;
}

/* Notice banner */
.alb-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sage-pale);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 22px;
  color: var(--slate);
}

.alb-notice-mark {
  font-size: 14px;
  color: var(--sage);
  flex-shrink: 0;
  line-height: 1;
}

.alb-notice-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slate);
}

.alb-notice-dismiss {
  background: none;
  border: none;
  color: var(--sage);
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.alb-notice-dismiss:hover { color: var(--slate); }

/* ===== Mine tab (admin-only, amber accent) =========================== */

.alb-tab[data-tab="mine"].is-active {
  border-bottom-color: #b5853a;
  color: #b5853a;
}

.alb-page[data-tab="mine"] .alb-page-spine { color: #b5853a; }
.alb-page[data-tab="mine"] .alb-page-title { color: var(--slate); }
.alb-page[data-tab="mine"] .alb-page-sub   { color: #b5853a; }

/* ===== Guest List mini album ========================================= */

.gl-mini-album {
  margin-top: 12px;
}

.gl-mini-tabs {
  display: flex;
  gap: 1px;
  border-bottom: 0.5px solid var(--rule);
  margin-bottom: 12px;
  overflow-x: auto;
}

.gl-mini-tab {
  font-size: 8px;
  font-weight: 400;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  padding: 5px 8px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  color: var(--slate-muted);
  cursor: pointer;
  white-space: nowrap;
}

.gl-mini-tab.is-active {
  color: var(--sage);
  border-bottom-color: #b5853a;
}

.gl-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.gl-mini-empty {
  font-size: 12px;
  color: var(--slate-muted);
  font-style: italic;
  padding: 8px 0;
}

.gl-mini-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 6px 14px;
  border: 0.5px solid var(--rule);
}

.gl-mini-card--hidden {
  background: var(--off-white);
  opacity: 0.5;
}

.gl-mini-card--locked {
  background: repeating-linear-gradient(
    45deg,
    #f4f1ea,
    #f4f1ea 3px,
    #eae7df 3px,
    #eae7df 5px
  );
}

.gl-mini-card--unlocked {
  background: var(--sage);
}

.gl-mini-card-name {
  font-size: 8px;
  font-weight: 500;
  color: var(--slate);
  text-align: center;
  line-height: 1.2;
}

.gl-mini-card--unlocked .gl-mini-card-name {
  color: var(--white);
}

.gl-mini-toggle {
  display: flex;
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 0.5px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  white-space: nowrap;
}

.gl-mini-toggle-btn {
  font-size: 7px;
  font-weight: 400;
  font-family: var(--sans);
  padding: 2px 5px;
  background: transparent;
  border: none;
  color: var(--slate-muted);
  cursor: pointer;
}

.gl-mini-toggle-btn.is-active {
  background: var(--sage);
  color: var(--white);
}

/* ===== Mobile swipe album (BRIEF-079G + BRIEF-079I header) =========== */

.alb-mobile-wrap {
  display: none;
  position: relative;
}

.alb-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}

.alb-mobile-indicator {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--slate);
  text-align: center;
  flex: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.alb-mobile-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid rgba(46, 61, 58, 0.2);
  background: rgba(244, 241, 234, 0.9);
  color: var(--slate);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.alb-mobile-credit {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 11px;
  font-weight: 300;
  color: var(--slate-muted);
}

@media (max-width: 900px) {
  .alb-wrap     { display: none; }
  .site-footer  { display: none; }

  .alb-mobile-wrap {
    display: block;
    width: 100%;
  }

  .alb-mobile-pages {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .alb-mobile-pages::-webkit-scrollbar { display: none; }

  .alb-mobile-page {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100vw;
    min-height: calc(100vh - 140px);
    padding: 16px 20px 40px;
    box-sizing: border-box;
  }

  .alb-mobile-page .alb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .alb-mobile-page .alb-page-sub    { margin-bottom: 16px; }
  .alb-mobile-page .alb-page-meta   { margin-top: 16px; }
}

/* ----- Landing page ---------------------------------------------------- */

.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 28px;
  z-index: 10;
}

.lp-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: block;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.lp-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
}

.lp-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--slate);
  padding: 80px 24px 40px;
}

.lp-mark {
  position: absolute;
  font-size: 36vw;
  color: var(--white);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lp-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
}

.lp-headline {
  font-family: var(--sans);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.lp-tagline {
  font-size: 14px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.5);
  margin-bottom: 36px;
  line-height: 1.5;
}

.lp-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.lp-btn-primary {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.lp-btn-primary:hover { opacity: 0.85; }
.lp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.lp-btn-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
}
.lp-btn-text:hover { color: rgba(248, 249, 247, 0.8); }

.lp-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.lp-input {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  background: rgba(248, 249, 247, 0.08);
  border: 0.5px solid rgba(248, 249, 247, 0.2);
  border-radius: 4px;
  color: var(--white);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.lp-input::placeholder { color: rgba(248, 249, 247, 0.3); }
.lp-input:focus { border-color: rgba(248, 249, 247, 0.5); }

.lp-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.5);
  line-height: 1.4;
  cursor: pointer;
}

.lp-consent-check {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--sage);
}

.lp-terms-note {
  font-size: 11px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.3);
  line-height: 1.4;
}

.lp-terms-link {
  color: rgba(248, 249, 247, 0.5);
  text-decoration: underline;
}
.lp-terms-link:hover { color: rgba(248, 249, 247, 0.8); }

.lp-error {
  font-size: 12px;
  color: var(--rose);
  margin-top: 4px;
}

/* ----- Terms ----------------------------------------------------------- */

.terms-body {
  background: var(--slate);
  color: var(--white);
  min-height: 100vh;
}

.terms-header {
  padding: 20px 28px;
}

.terms-back {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.15s;
}
.terms-back:hover { opacity: 0.7; }

.terms-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.terms-title {
  font-family: var(--sans);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 36px;
}

.terms-section {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
}

.terms-body-text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.75);
  line-height: 1.6;
  margin-bottom: 12px;
}

.terms-footer-note {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.5);
}

.terms-footer-note a {
  color: rgba(248, 249, 247, 0.85);
  border-bottom: 0.5px solid rgba(248, 249, 247, 0.3);
  text-decoration: none;
  transition: border-color 0.15s;
}
.terms-footer-note a:hover { border-bottom-color: var(--sage); }

/* ----- First-login ToS modal ------------------------------------------ */

.tos-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 61, 58, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.tos-modal {
  background: var(--white);
  border-radius: 6px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
}

.tos-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.tos-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--slate-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tos-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--slate-mid);
  line-height: 1.4;
  cursor: pointer;
  margin: 20px 0 24px;
}

.tos-consent-check {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--sage);
}

.tos-accept-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}
.tos-accept-btn:hover { opacity: 0.85; }
.tos-accept-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ----- Guest List email consent toggle -------------------------------- */

.gl-consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.gl-consent-row .gl-consent-label {
  font-size: 13px;
  color: var(--slate);
}

.gl-consent-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.gl-consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gl-consent-slider {
  position: absolute;
  inset: 0;
  background: var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.gl-consent-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gl-consent-toggle input:checked + .gl-consent-slider {
  background: var(--sage);
}
.gl-consent-toggle input:checked + .gl-consent-slider::before {
  transform: translateX(16px);
}
.gl-consent-toggle input:disabled + .gl-consent-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
