/* Trakven Feedback Portal styles (shared by feedback pages) */

/* When rendered inside the Trakven mobile app WebView, hide site chrome. */
html.fb-in-app .fb-top { display: none !important; }
html.fb-in-app .fb-shell { padding-top: calc(env(safe-area-inset-top, 0px) + 14px) !important; }
html.fb-in-app .fb-shell { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px) !important; }
/* Reserved for any future embedded surface that intentionally keeps native bottom nav visible. */
html.fb-in-app.fb-has-native-bottom-nav .fb-shell { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 104px) !important; }
:root {
  --fb-bg: #fffaf5;
  --fb-surface: #ffffff;
  --fb-ink: #1c1a17;
  --fb-ink-2: #5d574e;
  --fb-ink-3: #938b7e;
  --fb-brand: #f0641e;
  --fb-brand-soft: #fff0e6;
  --fb-border: #efe6da;
  --fb-border-strong: #e4d8c8;
  --fb-success: #16a34a;
  --fb-danger: #ef4444;
  --fb-info: #2563eb;
  --fb-shadow: 0 18px 50px rgba(60, 40, 20, 0.10);
  --fb-radius: 22px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Keep keyboard focus rings (accessibility) but remove the blue tap-flash and
   the lingering focus box after a mouse/touch press on buttons & tappables. */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) { outline: none; }

body.fb-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fb-ink);
  background:
    radial-gradient(1100px 520px at 50% -10%, #fff2e7 0%, rgba(255,242,231,0) 60%),
    var(--fb-bg);
  -webkit-font-smoothing: antialiased;
}

.fb-shell { max-width: 1280px; margin: 0 auto; padding: 28px 28px 76px; }

/* Header */
.fb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.fb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fb-ink); }
.fb-brand img { width: 34px; height: 34px; border-radius: 9px; }
.fb-brand span { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.fb-back { color: var(--fb-ink-2); text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.fb-back:hover { color: var(--fb-brand); }

/* Card */
.fb-card {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  box-shadow: var(--fb-shadow);
  padding: 34px;
}
.fb-card-narrow { max-width: 480px; margin: 6vh auto 0; text-align: center; }

.fb-logo-badge {
  width: 64px; height: 64px; border-radius: 19px; margin: 0 auto 20px;
  background: var(--fb-brand-soft); display: grid; place-items: center;
  border: 1px solid #ffd9bf;
}
.fb-logo-badge img { width: 38px; height: 38px; }

.fb-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; color: var(--fb-brand); text-transform: uppercase; }
.fb-h1 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 27px; letter-spacing: -0.5px; margin: 10px 0 8px; }
.fb-sub { color: var(--fb-ink-2); font-size: 15px; line-height: 1.55; margin: 0 auto; max-width: 40ch; }

/* Disclaimer note (login is only to see reviews/responses) */
.fb-note {
  display: flex; gap: 11px; text-align: left;
  background: #f7fbff; border: 1px solid #dceafc; color: var(--fb-ink-2);
  border-radius: 15px; padding: 14px 15px; margin: 22px 0 4px; font-size: 13.5px; line-height: 1.5;
}
.fb-note ion-icon { color: var(--fb-info); font-size: 19px; flex: 0 0 auto; margin-top: 1px; }
.fb-note strong { color: var(--fb-ink); }

.fb-gbtn-wrap { display: flex; justify-content: center; margin: 26px 0 6px; min-height: 44px; }

.fb-hint { font-size: 13px; color: var(--fb-ink-3); margin-top: 14px; }
.fb-hint a { color: var(--fb-brand); font-weight: 600; text-decoration: none; }

/* Buttons */
.fb-btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.fb-btn:active { transform: translateY(1px); }
.fb-btn-primary { background: var(--fb-brand); color: #fff; box-shadow: 0 8px 22px rgba(240,100,30,.28); }
.fb-btn-primary:hover { background: #e05818; box-shadow: 0 10px 28px rgba(240,100,30,.36); }
/* Tinted ghost — matches the app's secondary button style (soft brand tint) */
.fb-btn-ghost { background: var(--fb-brand-soft); border-color: rgba(240,100,30,.22); color: var(--fb-brand); }
.fb-btn-ghost:hover { background: #ffe0cc; border-color: rgba(240,100,30,.44); }

/* Signed-in identity row */
.fb-id { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--fb-border); border-radius: 16px; background: #fffdfb; margin: 8px auto 0; }
.fb-id img { width: 40px; height: 40px; border-radius: 50%; }
.fb-id .fb-id-name { font-weight: 700; font-size: 15px; }
.fb-id .fb-id-email { font-size: 13px; color: var(--fb-ink-3); }

.fb-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* States visibility */
[data-fb-state] { display: none; }
[data-fb-state].is-active { display: block; }
[data-admin-step] { display: none; }
[data-admin-step].is-active { display: block; }

/* ── Spinners ── */
.fb-spin { width: 26px; height: 26px; border: 3px solid var(--fb-border-strong); border-top-color: var(--fb-brand); border-radius: 50%; animation: fb-rot .8s linear infinite; margin: 8px auto; }
/* Inline button spinner */
.fb-spin-sm { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: fb-rot .65s linear infinite; vertical-align: middle; margin-right: 7px; opacity: .85; }
@keyframes fb-rot { to { transform: rotate(360deg); } }

/* ── Sync bar (top-of-page loading indicator) ── */
.fb-sync-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 9999;
  background: linear-gradient(90deg, var(--fb-brand) 0%, #ffa94d 40%, var(--fb-brand) 80%);
  background-size: 200% 100%;
  animation: fb-sync-sweep 1.1s linear infinite;
  box-shadow: 0 1px 6px rgba(240,100,30,.4);
}
.fb-sync-bar[hidden] { display: none; }
@keyframes fb-sync-sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Skeleton shimmer ── */
.fb-skel {
  background: linear-gradient(90deg, #f0ebe4 25%, #e7e1da 50%, #f0ebe4 75%);
  background-size: 200% 100%;
  animation: fb-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px; display: block;
}
@keyframes fb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.fb-skel-card { pointer-events: none; opacity: .85; }

/* Form */
.fb-card-form { max-width: 640px; margin: 4vh auto 0; }
.fb-form-head { margin-bottom: 22px; }
.fb-form-head .fb-h1 { margin-bottom: 6px; }
.fb-form-head .fb-sub { margin: 0; max-width: none; }

.fb-field { margin-bottom: 20px; }
.fb-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 9px; color: var(--fb-ink); }
.fb-label .fb-opt { font-weight: 500; color: var(--fb-ink-3); font-size: 12.5px; }

.fb-input, .fb-textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--fb-ink);
  background: #fffdfb; border: 1px solid var(--fb-border-strong); border-radius: 13px;
  padding: 13px 14px; transition: border-color .12s ease, box-shadow .12s ease;
}
.fb-input:focus, .fb-textarea:focus {
  outline: none; border-color: var(--fb-brand); box-shadow: 0 0 0 3px var(--fb-brand-soft);
}
.fb-textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.fb-counter { text-align: right; font-size: 12px; color: var(--fb-ink-3); margin-top: 6px; }

/* Segmented category picker */
.fb-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-seg-btn {
  flex: 1 1 120px; cursor: pointer; border: 1px solid var(--fb-border-strong); background: var(--fb-surface);
  border-radius: 13px; padding: 13px 12px; display: flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--fb-ink-2);
  transition: all .12s ease;
}
.fb-seg-btn ion-icon { font-size: 19px; }
.fb-seg-btn:hover { border-color: var(--fb-brand); }
.fb-seg-btn[aria-pressed="true"] { border-color: var(--fb-brand); background: var(--fb-brand-soft); color: var(--fb-brand); box-shadow: 0 6px 16px rgba(240,100,30,.14); }

/* Image picker */
.fb-drop {
  border: 1.5px dashed var(--fb-border-strong); border-radius: 14px; padding: 18px;
  text-align: center; color: var(--fb-ink-3); cursor: pointer; background: #fffdfb;
  transition: border-color .12s ease, background .12s ease; font-size: 14px;
}
.fb-drop:hover { border-color: var(--fb-brand); background: var(--fb-brand-soft); color: var(--fb-brand); }
.fb-drop ion-icon { font-size: 26px; display: block; margin: 0 auto 6px; }
.fb-drop.is-full { opacity: .5; pointer-events: none; }
.fb-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.fb-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--fb-border); }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fb-thumb button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(28,26,23,.72); color: #fff; display: grid; place-items: center; font-size: 13px;
}
.fb-priv-note { font-size: 12.5px; color: var(--fb-ink-3); margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; }
.fb-priv-note ion-icon { color: var(--fb-success); margin-top: 1px; }

.fb-submit-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.fb-err { color: var(--fb-danger); font-size: 13.5px; font-weight: 600; }

.fb-success-icon { width: 64px; height: 64px; border-radius: 50%; background: #e9f9ef; color: var(--fb-success); display: grid; place-items: center; margin: 0 auto 18px; font-size: 34px; }

/* Category badges (used on the board + my requests) */
.fb-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.fb-badge ion-icon { font-size: 13px; }
.cat-suggestion { background: #fff0e6; color: #d2570f; }
.cat-bug { background: #fdecec; color: #d33; }
.cat-defect { background: #fef3e2; color: #b97400; }
.cat-feedback { background: #e9f1ff; color: #2563eb; }

/* Portal hub (tabs + board + my requests) */
[data-pane] { display: none; }
[data-pane].is-active { display: block; }
.fb-portal { max-width: 760px; margin: 0 auto; }
.fb-portal-head { text-align: center; margin-bottom: 22px; }
.fb-portal-head .fb-h1 { margin-bottom: 6px; }
.fb-portal-head .fb-sub { margin: 0 auto; }

.fb-authchip { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fb-ink-2); background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 999px; padding: 6px 8px 6px 14px; }
.fb-authchip img { width: 26px; height: 26px; border-radius: 50%; }
.fb-authchip a, .fb-authchip button { font: inherit; color: var(--fb-brand); font-weight: 700; background: none; border: none; cursor: pointer; text-decoration: none; }

.fb-tabs { display: flex; gap: 6px; background: #f4ece2; border-radius: 14px; padding: 5px; margin: 0 auto 22px; width: fit-content; }
.fb-tab { border: none; background: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--fb-ink-2); padding: 9px 18px; border-radius: 10px; transition: all .15s ease; }
.fb-tab[aria-selected="true"] { background: var(--fb-surface); color: var(--fb-ink); box-shadow: 0 3px 10px rgba(60,40,20,.08); }

.fb-board-tools { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.fb-pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fb-pill { cursor: pointer; border: 1px solid var(--fb-border-strong); background: var(--fb-surface); border-radius: 999px; padding: 7px 13px; font-family: inherit; font-weight: 600; font-size: 13px; color: var(--fb-ink-2); }
.fb-pill[aria-pressed="true"] { background: var(--fb-ink); border-color: var(--fb-ink); color: #fff; }

/* Post card */
.fb-post { display: flex; gap: 14px; background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.fb-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 auto; }
.fb-vote button { width: 38px; height: 32px; border: 1px solid var(--fb-border-strong); background: #fffdfb; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--fb-ink-3); font-size: 16px; transition: all .12s ease; }
.fb-vote button:hover { border-color: var(--fb-brand); color: var(--fb-brand); }
.fb-vote button.up[aria-pressed="true"] { background: #e9f9ef; border-color: #16a34a; color: #16a34a; }
.fb-vote button.down[aria-pressed="true"] { background: #fdecec; border-color: #d33; color: #d33; }
.fb-vote .fb-score { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--fb-ink); }
.fb-post-body { flex: 1; min-width: 0; }
.fb-post-title { font-weight: 800; font-size: 16px; letter-spacing: -.2px; margin: 0 0 5px; }
.fb-post-msg { color: var(--fb-ink-2); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.fb-post-meta { display: flex; gap: 8px; align-items: center; margin-top: 11px; font-size: 12.5px; color: var(--fb-ink-3); flex-wrap: wrap; }

/* My requests */
.fb-mine { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.fb-mine-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.fb-mine-title { font-weight: 800; font-size: 15.5px; flex: 1; min-width: 0; }
.fb-mine-msg { color: var(--fb-ink-2); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.fb-mine-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.fb-mine-imgs img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--fb-border); }
.fb-resp { background: #f6fbff; border: 1px solid #dceafc; border-radius: 12px; padding: 12px 13px; margin-top: 12px; }
.fb-resp-label { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--fb-info); display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.fb-resp-subject { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.fb-resp-body { font-size: 13.5px; line-height: 1.5; color: var(--fb-ink); white-space: pre-wrap; }
.fb-resp-date { font-size: 11.5px; color: var(--fb-ink-3); margin-top: 6px; }

.fb-stat { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; }
.fb-stat.s-new { background: #e9f1ff; color: #2563eb; }
.fb-stat.s-reviewing { background: #fef3e2; color: #b97400; }
.fb-stat.s-approved { background: #e9f9ef; color: #16a34a; }
.fb-stat.s-completed { background: #f1ecff; color: #7c3aed; }
.fb-stat.s-archived { background: #eee9e2; color: #6b6357; }

.fb-loadmore { display: block; margin: 6px auto 0; }
.fb-loadmore[hidden] { display: none; }
.fb-mini-note { text-align: center; font-size: 13px; color: var(--fb-ink-3); margin: 14px 0; }
.fb-mini-note a { color: var(--fb-brand); font-weight: 700; text-decoration: none; }

@media (max-width: 540px) {
  .fb-card { padding: 26px 20px; }
  .fb-h1 { font-size: 23px; }
  .fb-seg-btn { flex-basis: 100%; }
  .fb-tabs { width: 100%; }
  .fb-tab { flex: 1; padding: 9px 6px; }
}

/* Production polish for feedback + admin portal */
.fb-shell {
  width: min(100%, 1100px);
  padding: 24px clamp(18px, 4vw, 40px) 72px;
}

.fb-top {
  gap: 18px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.fb-top > span {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fb-back ion-icon {
  display: none;
}

.fb-card {
  border-radius: 20px;
}

.fb-card-narrow {
  max-width: 520px;
  margin: clamp(28px, 5vh, 52px) auto 0;
  padding: clamp(30px, 5vw, 46px);
}

.fb-card-narrow .fb-eyebrow:first-child {
  margin-top: 0;
}

.fb-logo-badge {
  display: none;
}

.fb-btn,
a.fb-btn,
button.fb-btn {
  min-height: 48px;
  min-width: 150px;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.fb-btn ion-icon {
  font-size: 18px;
  flex: 0 0 auto;
}

.fb-actions {
  align-items: center;
}

.fb-hint a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fb-hint a:hover {
  border-bottom-color: currentColor;
}

.fb-portal {
  max-width: none;
  width: 100%;
}

.fb-portal-head {
  margin-bottom: 24px;
}

.fb-tabs {
  margin-bottom: 34px;
}

.fb-portal > section.is-active {
  max-width: 760px;
  margin: 0 auto;
}

.fb-portal > section[data-pane="board"].is-active {
  max-width: 1080px;
  width: 100%;
}

.fb-board-tools {
  align-items: center;
  margin-bottom: 18px;
}

.fb-pill-row {
  align-items: center;
}

.fb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 124px;
  padding: 28px 22px;
  border: 1px dashed var(--fb-border-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--fb-ink-2);
  text-align: center;
  font-weight: 600;
}

.fb-empty[hidden] {
  display: none;
}

.fb-empty ion-icon {
  font-size: 22px;
  color: var(--fb-brand);
  flex: 0 0 auto;
}

[data-share-state="needs_login"],
[data-mine-state="needs_login"] {
  margin-top: clamp(24px, 4vh, 42px);
}

@media (max-width: 720px) {
  .fb-shell {
    padding: 18px 16px 52px;
  }

  .fb-top {
    align-items: flex-start;
    margin-bottom: 34px;
  }

  .fb-brand img {
    width: 30px;
    height: 30px;
  }

  .fb-brand span {
    font-size: 18px;
  }

  .fb-back {
    font-size: 13px;
  }

  .fb-authchip {
    padding: 5px 8px 5px 12px;
  }

  .fb-board-tools {
    justify-content: center;
  }

  /* Filter pill groups are left-labelled, so their pills must start-align
     (not centre) — keeps "All" flush with its CATEGORY/STATUS label. */
  .fb-pill-row {
    justify-content: flex-start;
  }

  .fb-card-narrow {
    padding: 28px 20px;
    margin-top: 24px;
  }

  .fb-actions {
    flex-direction: column;
  }

  .fb-actions .fb-btn {
    width: 100%;
  }
}

/* Clearer voting and tighter CTA buttons */

.fb-authchip {
  padding: 6px 14px;
}

.fb-authchip img {
  margin-left: -6px;
}

.fb-post {
  align-items: center;
  gap: 16px;
}

.fb-vote {
  width: 58px;
  gap: 5px;
  padding: 7px 6px;
  border: 1px solid var(--fb-border);
  border-radius: 16px;
  background: #fffdfb;
}

.fb-vote button {
  width: 38px;
  height: 26px;
  border-color: transparent;
  background: transparent;
  border-radius: 9px;
}

.fb-vote button:hover {
  background: var(--fb-brand-soft);
}

.fb-scorebox {
  min-width: 44px;
  text-align: center;
}

.fb-vote .fb-score {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  line-height: 1;
}

.fb-score-label {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--fb-ink-3);
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .fb-post {
    align-items: flex-start;
    gap: 12px;
  }

  .fb-vote {
    width: 52px;
  }

  .fb-score-label {
    font-size: 8px;
  }
}
/* Permanent feedback button and vote control cleanup */
.fb-btn,
a.fb-btn,
button.fb-btn {
  gap: 0;
}

.fb-btn ion-icon {
  margin-right: 8px;
}

.fb-authchip {
  gap: 7px;
}

.fb-chip-sep {
  color: var(--fb-border-strong);
  font-weight: 800;
}

.fb-post {
  align-items: stretch;
}

.fb-vote {
  width: 72px;
  flex: 0 0 72px;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--fb-border);
  border-radius: 15px;
  background: #fffdfb;
  justify-content: center;
}

.fb-vote button {
  width: 100%;
  height: 30px;
  border: 1px solid var(--fb-border-strong);
  background: var(--fb-surface);
  border-radius: 10px;
  color: var(--fb-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .35px;
  line-height: 1;
  text-transform: uppercase;
}

.fb-vote button:hover {
  background: var(--fb-brand-soft);
  border-color: var(--fb-brand);
  color: var(--fb-brand);
}

.fb-vote button.up[aria-pressed="true"] {
  background: #e9f9ef;
  border-color: #16a34a;
  color: #16a34a;
}

.fb-vote button.down[aria-pressed="true"] {
  background: #fdecec;
  border-color: #d33;
  color: #d33;
}

.fb-vote-arrow {
  font-size: 11px;
  line-height: 1;
}

.fb-vote-text {
  font-size: 9px;
}

.fb-scorebox {
  min-height: 35px;
}

@media (max-width: 540px) {
  .fb-post {
    gap: 10px;
    padding: 12px;
  }

  .fb-vote {
    width: 62px;
    flex-basis: 62px;
    padding: 7px 6px;
  }

  .fb-vote button {
    height: 28px;
  }

  .fb-vote-text {
    display: none;
  }
}

/* ── Auth chip — session time ── */
.fb-authchip-av { width: 26px; height: 26px; border-radius: 50%; margin-left: -4px; }
.fb-authchip-init {
  width: 26px; height: 26px; border-radius: 50%; margin-left: -4px;
  background: var(--fb-brand); color: #fff;
  font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-authchip-name { font-weight: 700; color: var(--fb-ink); }
.fb-session-chip {
  font-size: 11.5px; color: var(--fb-ink-3);
  background: var(--fb-bg); border: 1px solid var(--fb-border);
  border-radius: 6px; padding: 2px 7px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ── Image upload zone fix ── */
.fb-img-zone { display: flex; flex-direction: column; gap: 0; }
.fb-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.fb-drop ion-icon { font-size: 28px; margin: 0; display: block; }
.fb-drop .fb-drop-text { font-size: 13.5px; line-height: 1.4; text-align: center; }
.fb-thumbs { margin-top: 10px; }
.fb-thumb-count {
  font-size: 12px; color: var(--fb-ink-3); text-align: right;
  margin-top: 5px; font-weight: 600;
}

/* ── Mine toolbar ── */
.fb-mine-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 18px; flex-wrap: wrap;
}
/* fb-mine-period is now .fb-select inside .fb-select-wrap */

/* ── Custom select (user portal) ── */
.fb-select-wrap { position: relative; display: inline-flex; align-items: center; }
.fb-select {
  appearance: none; -webkit-appearance: none;
  background-color: var(--fb-brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23f0641e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  border: 1.5px solid rgba(240,100,30,.28); border-radius: 999px;
  padding: 7px 30px 7px 14px;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--fb-brand);
  cursor: pointer; transition: border-color .14s, box-shadow .14s;
}
.fb-select:focus { outline: none; border-color: var(--fb-brand); box-shadow: 0 0 0 3px var(--fb-brand-soft); }
.fb-select:hover { border-color: var(--fb-brand); background-color: #ffe0cc; }

/* ── Mine card redesign ── */
.fb-mine {
  border-radius: 18px;
  border: 1px solid var(--fb-border);
  background: var(--fb-surface);
  overflow: hidden;
  margin-bottom: 14px;
  transition: box-shadow .15s;
}
.fb-mine:hover { box-shadow: 0 4px 18px rgba(60,40,20,.08); }
.fb-mine-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 0; gap: 8px; flex-wrap: wrap;
}
.fb-mine-head-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.fb-mine-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fb-mine-title {
  font-weight: 800; font-size: 15px; flex: 1; min-width: 0; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal; word-break: break-word;
}
.fb-mine-ts-inline {
  font-size: 11.5px; color: var(--fb-ink-3); white-space: nowrap; font-weight: 500;
}
.fb-mine-msg {
  color: var(--fb-ink-2); font-size: 14px; line-height: 1.6;
  white-space: pre-wrap; padding: 0 16px 12px;
}
.fb-mine-msg-clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal;
}

/* ── Pending reply callout ── */
.fb-pending-reply {
  display: flex; align-items: center; gap: 11px;
  margin: 0 16px 14px; padding: 10px 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
}
.fb-pending-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: #fef3c7; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-pending-icon ion-icon { font-size: 15px; color: #d97706; }
.fb-pending-sub { font-size: 12.5px; color: #92400e; font-weight: 500; line-height: 1.4; }
.fb-mine-imgs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 16px 12px;
}
.fb-mine-imgs a { display: block; }
.fb-mine-imgs img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--fb-border);
  transition: transform .15s, box-shadow .15s;
}
.fb-mine-imgs img:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0,0,0,.14); }

/* ── Response accordion ── */
.fb-resp-wrap { border-top: 1px solid var(--fb-border); }

.fb-resp-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 11px 16px; background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
  border: none; cursor: pointer; font-family: inherit; text-align: left;
  gap: 10px; transition: background .14s;
}
.fb-resp-toggle:hover { background: linear-gradient(135deg, #eef5ff 0%, #e3eefe 100%); }
.fb-resp-tgl-left { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.fb-resp-tgl-left ion-icon { color: var(--fb-info); font-size: 16px; flex-shrink: 0; }
.fb-resp-tgl-label { font-weight: 700; font-size: 13.5px; color: var(--fb-info); }
.fb-resp-tgl-rel { font-size: 12px; color: var(--fb-ink-3); white-space: nowrap; }
.fb-acc-chev { color: var(--fb-ink-3); font-size: 15px; flex-shrink: 0; transition: transform .22s cubic-bezier(.22,.68,0,1.12); }

.fb-resp-acc { border-top: 1px solid #dceafc; }
.fb-resp-item {
  padding: 13px 16px;
  border-bottom: 1px solid #e8f0fc;
  animation: fb-fade-up .18s ease;
}
.fb-resp-item:last-child { border-bottom: none; }
.fb-resp-subj { font-weight: 800; font-size: 13.5px; color: var(--fb-ink); margin-bottom: 5px; }
.fb-resp-body { font-size: 13.5px; line-height: 1.6; color: var(--fb-ink-2); white-space: pre-wrap; }
.fb-resp-ts {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--fb-ink-3); margin-top: 7px; font-weight: 500;
}
.fb-resp-ts ion-icon { font-size: 13px; }

.fb-no-resp {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-top: 1px solid var(--fb-border);
  font-size: 13px; color: var(--fb-ink-3); font-style: italic;
}
.fb-no-resp ion-icon { font-size: 16px; flex-shrink: 0; }

/* ── Response thread — centered modal ──
   Responses open in a centered dialog (not inline) so a long thread never
   turns a card into a tall scroller; the thread scrolls inside the modal. */
.fb-rmodal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
}
.fb-rmodal[hidden] { display: none; }
.fb-rmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 22, 14, .42);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s ease;
}
.fb-rmodal.is-open .fb-rmodal-backdrop { opacity: 1; }
.fb-rmodal-card {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: 100%;
  display: flex; flex-direction: column;
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(40, 26, 10, .28);
  overflow: hidden;
  transform: translateY(10px) scale(.98); opacity: 0;
  transition: transform .22s cubic-bezier(.22,.68,0,1.12), opacity .2s ease;
}
.fb-rmodal.is-open .fb-rmodal-card { transform: none; opacity: 1; }
.fb-rmodal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--fb-border);
  flex-shrink: 0;
}
.fb-rmodal-head-copy { flex: 1; min-width: 0; }
.fb-rmodal-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--fb-info);
}
.fb-rmodal-kicker ion-icon { font-size: 15px; }
.fb-rmodal-title {
  margin: 4px 0 0; font-size: 16.5px; font-weight: 800; line-height: 1.3;
  color: var(--fb-ink); word-break: break-word;
}
.fb-rmodal-close {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--fb-border); background: var(--fb-bg, #fff);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fb-ink-2);
}
.fb-rmodal-close ion-icon { font-size: 18px; }
.fb-rmodal-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.fb-rmodal-body .fb-resp-item { animation: none; }
.fb-rmodal-body .fb-resp-item:last-child { border-bottom: none; }

/* ── stat badges ── */
.fb-stat { border: 1px solid transparent; }
.fb-stat.s-new { background: #e9f1ff; color: #1d4ed8; border-color: #bdd3fe; }
.fb-stat.s-reviewing { background: #fef3e2; color: #a56b00; border-color: #f9e0a0; }
.fb-stat.s-approved { background: #e9f9ef; color: #15803d; border-color: #bbf0d0; }
.fb-stat.s-completed { background: #f1ecff; color: #6d28d9; border-color: #ddd0fd; }
.fb-stat.s-archived { background: #f0ece8; color: #6b6357; border-color: #ddd5cc; }

@keyframes fb-fade-up { 0% { opacity: 0; transform: translateY(5px); } 100% { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .fb-mine-toolbar { flex-direction: column; align-items: flex-start; }
  .fb-mine-period { align-self: flex-end; }
  .fb-resp-tgl-rel { display: none; }
}
@media (max-width: 560px) {
  /* Give the title the full width and let date + status drop to their own
     row, so the title is fully readable instead of truncating to "Te…". */
  .fb-mine-head { align-items: flex-start; gap: 6px 8px; }
  .fb-mine-head-left { flex: 1 1 100%; align-items: flex-start; }
  .fb-mine-head-right { width: 100%; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .fb-mine-title { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   TICKET IDs + STATUS JOURNEY + MINE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* Ticket ref in Ideas board cards */
.fb-ticket-ref {
  font-family: 'Courier New', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  color: #15803d;
  margin-left: auto;
  padding: 2px 7px; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: 5px;
  white-space: nowrap;
}

/* Ticket ref in My requests cards */
.fb-mine-sub-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 16px 10px; flex-wrap: wrap;
}
.fb-ticket-mine {
  font-family: 'Courier New', monospace;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  color: #15803d; background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 5px; padding: 2px 7px; flex-shrink: 0;
  cursor: default;
}
.fb-status-desc {
  font-size: 12px; color: var(--fb-ink-3); font-style: italic;
  line-height: 1.3;
}

/* ── Status lifecycle strip (My requests) ── */
/* ── Lifecycle strip ── */
.fb-lifecycle {
  border: 1px solid var(--fb-border); border-radius: 18px;
  background: var(--fb-surface); margin-top: 22px; margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(60,40,20,.05);
}
.fb-lifecycle summary {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 13.5px; color: var(--fb-ink);
  user-select: none; transition: background .14s;
}
.fb-lifecycle summary:hover { background: var(--fb-bg); }
.fb-lifecycle summary::-webkit-details-marker { display: none; }
.fb-lifecycle summary ion-icon:first-child { color: var(--fb-brand); font-size: 17px; flex-shrink: 0; }
.fb-lc-chev {
  margin-left: auto; font-size: 16px; color: var(--fb-ink-3);
  transition: transform .22s cubic-bezier(.22,.68,0,1.12);
}
.fb-lifecycle[open] .fb-lc-chev { transform: rotate(180deg); }
.fb-lifecycle[open] summary {
  border-bottom: 1px solid var(--fb-border);
  background: var(--fb-bg);
}

.fb-lc-steps { padding: 20px 18px 18px; display: flex; flex-direction: column; }

/* Each step row: icon track on left, text on right */
.fb-lc-item { display: flex; gap: 14px; }
.fb-lc-track {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 36px;
}
.fb-lc-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.fb-lc-icon.s-new       { background: #dbeafe; color: #2563eb; }
.fb-lc-icon.s-reviewing { background: #fef3c7; color: #d97706; }
.fb-lc-icon.s-approved  { background: #dcfce7; color: #16a34a; }
.fb-lc-icon.s-completed { background: #ede9fe; color: #7c3aed; }
.fb-lc-icon.s-archived  { background: #f1f5f9; color: #64748b; }

/* Vertical connector line under each icon */
.fb-lc-vline {
  width: 2px; flex: 1; min-height: 18px;
  border-radius: 1px; margin: 4px 0;
}
.fb-lc-vline.s-new       { background: #bfdbfe; }
.fb-lc-vline.s-reviewing { background: #fde68a; }
.fb-lc-vline.s-approved  { background: #bbf7d0; }

.fb-lc-body {
  padding-bottom: 20px; flex: 1; padding-top: 7px;
}
.fb-lc-label {
  font-weight: 800; font-size: 13.5px; color: var(--fb-ink);
  margin-bottom: 3px; line-height: 1.2;
}
.fb-lc-desc {
  font-size: 12.5px; color: var(--fb-ink-3); line-height: 1.5;
}

/* "or" branch divider */
.fb-lc-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 16px 50px;
}
.fb-lc-divider::before, .fb-lc-divider::after {
  content: ''; flex: 1;
  border-top: 1.5px dashed var(--fb-border-strong);
}
.fb-lc-divider span {
  font-size: 10px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--fb-ink-3);
  background: var(--fb-surface); padding: 2px 8px;
  border: 1px solid var(--fb-border); border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════
   IDEAS BOARD — premium redesign
   ═══════════════════════════════════════════════════════════ */

/* ── Two-column board: sticky filter sidebar + ideas list ── */
.fb-board-layout {
  display: grid;
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.fb-board-side {
  position: sticky; top: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.fb-side-group { display: flex; flex-direction: column; gap: 9px; }
.fb-side-label {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--fb-ink-3);
}
.fb-side-group .fb-pill-row { gap: 7px; }

/* Sidebar CTA card */
.fb-side-cta {
  margin-top: 4px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff5ec 0%, #ffe9d8 100%);
  border: 1px solid #ffd9bf;
}
.fb-side-cta-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: 0 4px 12px rgba(240,100,30,.18);
  margin-bottom: 4px;
}
.fb-side-cta-icon ion-icon { font-size: 21px; color: var(--fb-brand); }
.fb-side-cta-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 16px; color: var(--fb-ink); }
.fb-side-cta-sub { font-size: 12.5px; line-height: 1.5; color: var(--fb-ink-2); margin-bottom: 6px; }
.fb-side-cta .fb-btn { width: 100%; justify-content: center; padding: 11px 18px; }

/* Main column header */
.fb-board-main { min-width: 0; }
.fb-board-main-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
}
.fb-board-title {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -.3px; margin: 0; color: var(--fb-ink);
}
.fb-board-count {
  font-size: 13px; font-weight: 700; color: var(--fb-ink-3);
  background: var(--fb-surface); border: 1px solid var(--fb-border);
  border-radius: 999px; padding: 3px 11px;
}
.fb-board-count[hidden] { display: none; }

/* Legacy/back-compat */
.fb-filters-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Keep Share & My-requests panes at a readable, centered width */
[data-pane="share"], [data-pane="mine"] { max-width: 760px; margin-inline: auto; }

@media (max-width: 880px) {
  .fb-portal > section[data-pane="board"].is-active { max-width: 760px; }
  .fb-board-layout { grid-template-columns: 1fr; gap: 18px; }
  .fb-board-side { position: static; }
  .fb-side-cta { display: none; }
  .fb-side-group .fb-pill-row { flex-wrap: wrap; }
}

/* ── Search bar ── */
.fb-search-wrap {
  position: relative; display: flex; align-items: center; width: 100%;
}
.fb-search-wrap > ion-icon {
  position: absolute; left: 14px; font-size: 17px;
  color: var(--fb-ink-3); pointer-events: none; z-index: 1; flex-shrink: 0;
}
.fb-board-search {
  width: 100%; padding: 11px 40px 11px 42px;
  border: 1.5px solid var(--fb-border-strong); border-radius: 14px;
  background: var(--fb-surface); font-family: inherit; font-size: 14px;
  font-weight: 500; color: var(--fb-ink); -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.fb-board-search:focus {
  outline: none; border-color: var(--fb-brand);
  box-shadow: 0 0 0 3px var(--fb-brand-soft);
}
.fb-board-search::placeholder { color: var(--fb-ink-3); }
.fb-board-search::-webkit-search-decoration,
.fb-board-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.fb-search-clear {
  position: absolute; right: 10px; background: none; border: none; cursor: pointer;
  color: var(--fb-ink-3); font-size: 18px; padding: 4px; border-radius: 50%;
  display: flex; align-items: center; transition: color .12s;
}
.fb-search-clear:hover { color: var(--fb-brand); }
.fb-search-clear[hidden] { display: none; }

/* ── Filter pills — brand-orange when active ── */
.fb-pill {
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .14s, border-color .14s, color .14s, transform .1s, box-shadow .14s;
}
.fb-pill ion-icon { font-size: 14px; }
.fb-pill[aria-pressed="true"] {
  background: var(--fb-brand-soft);
  border-color: rgba(240,100,30,.4);
  color: var(--fb-brand);
  box-shadow: 0 2px 8px rgba(240,100,30,.14);
}
.fb-pill:not([aria-pressed="true"]):hover {
  border-color: rgba(240,100,30,.3);
  color: var(--fb-brand);
  background: rgba(240,100,30,.06);
}

/* Pill-row divider */
.fb-pill-divider {
  width: 1px; height: 20px; background: var(--fb-border-strong);
  border-radius: 1px; flex-shrink: 0; align-self: center; margin: 0 4px;
}

/* ── Post card — premium ── */
.fb-post {
  display: flex; gap: 18px;
  background: var(--fb-surface); border: 1px solid var(--fb-border);
  border-radius: 18px; padding: 18px; margin-bottom: 14px;
  min-height: 136px;
  align-items: stretch;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  position: relative;
}
.fb-post:hover {
  box-shadow: 0 8px 30px rgba(60,40,20,.09);
  transform: translateY(-2px);
  border-color: var(--fb-border);
}

.fb-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fb-post-title { font-weight: 800; font-size: 18px; letter-spacing: -.2px; margin: 0 0 7px; color: var(--fb-ink); line-height: 1.3; }
.fb-post-msg { color: var(--fb-ink-2); font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fb-post-meta { display: flex; gap: 9px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--fb-ink-3); flex-wrap: wrap; }

/* ── Premium upvote button ── */
.fb-upvote-wrap { flex-shrink: 0; display: flex; }
.fb-upvote {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 64px;
  padding: 14px 8px;
  border-radius: 16px;
  border: 1.5px solid var(--fb-border-strong);
  background: linear-gradient(180deg, #ffffff 0%, var(--fb-surface) 100%);
  color: var(--fb-ink-2);
  cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 3px rgba(60,40,20,.06);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .16s;
  position: relative;
  align-self: stretch;
  user-select: none; -webkit-user-select: none;
}
.fb-upvote:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(240,100,30,.16);
  border-color: var(--fb-brand);
  color: var(--fb-brand);
  background: linear-gradient(180deg, #fff8f3 0%, var(--fb-brand-soft) 100%);
}
.fb-upvote:active { transform: scale(.96); }
/* Own-idea state — greyed, no pointer, shows "yours" label */
.fb-upvote.is-own {
  background: var(--fb-bg); color: var(--fb-ink-3);
  border-color: var(--fb-border); cursor: default; opacity: .7;
  box-shadow: none;
}
.fb-upvote.is-own:hover { background: var(--fb-bg); border-color: var(--fb-border); color: var(--fb-ink-3); transform: none; box-shadow: none; }
.fb-upvote.is-own .fb-upvote-ic { transform: none !important; }
/* Voted — rich premium gradient, the page's single richest pop of colour */
.fb-upvote[aria-pressed="true"], .fb-upvote.is-voted {
  background: linear-gradient(155deg, #ff9a4d 0%, var(--fb-brand) 52%, #df5016 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(240,100,30,.42), inset 0 1px 0 rgba(255,255,255,.35);
}
.fb-upvote[aria-pressed="true"]:hover, .fb-upvote.is-voted:hover {
  color: #fff;
  background: linear-gradient(155deg, #ff8e3a 0%, #ee5e1e 52%, #d2480f 100%);
  box-shadow: 0 14px 32px rgba(240,100,30,.5), inset 0 1px 0 rgba(255,255,255,.35);
}
.fb-upvote-ic {
  width: 20px; height: 20px; display: block; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
  transition: transform .18s;
}
.fb-upvote:hover .fb-upvote-ic { transform: translateY(-2px); }
.fb-upvote-n {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 900; line-height: 1;
  letter-spacing: -0.5px; font-variant-numeric: tabular-nums;
}
.fb-upvote-l {
  font-size: 9px; font-weight: 800; letter-spacing: .7px;
  text-transform: uppercase; opacity: .72;
}

/* ── Pop animation (spring bounce on vote) ── */
@keyframes fb-vote-pop {
  0%   { transform: scale(1) translateY(0); }
  28%  { transform: scale(1.28) translateY(-4px); }
  55%  { transform: scale(0.90) translateY(0); }
  78%  { transform: scale(1.08) translateY(-1px); }
  100% { transform: scale(1) translateY(0); }
}
.fb-vote-pop { animation: fb-vote-pop .48s cubic-bezier(.22,.68,0,1.2) forwards; }

/* ── Sparkle burst ── */
.fb-spark {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; pointer-events: none; z-index: 10;
  left: 50%; top: 50%; margin: -2.5px 0 0 -2.5px;
  animation: fb-spark-out .5s ease forwards;
}
@keyframes fb-spark-out {
  0%   { opacity: 1; transform: translate(0,0) scale(1.2); }
  60%  { opacity: .8; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* ── Load more button ── */
.fb-loadmore { display: block; margin: 18px auto 0; }

@media (max-width: 640px) {
  .fb-filters-row { justify-content: flex-start; }
  .fb-upvote { width: 58px; padding: 12px 6px; }
  .fb-upvote-n { font-size: 20px; }
  .fb-post { gap: 12px; padding: 13px; }
}
@media (max-width: 480px) {
  .fb-upvote-l { display: none; }
  .fb-post-msg { -webkit-line-clamp: 3; }
}

/* Final board sizing override: keep the public Ideas board desktop-sized. */
.fb-portal {
  max-width: none;
  width: 100%;
}
.fb-portal > section[data-pane="board"].is-active {
  max-width: 1080px;
  width: 100%;
}
.fb-portal > section[data-pane="share"].is-active,
.fb-portal > section[data-pane="mine"].is-active {
  max-width: 760px;
}
.fb-board-layout {
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  gap: 32px;
}
.fb-board-main {
  width: 100%;
}
.fb-post {
  min-height: 136px;
  padding: 18px;
}
@media (max-width: 880px) {
  .fb-portal > section[data-pane="board"].is-active { max-width: 760px; }
  .fb-board-layout { grid-template-columns: 1fr; gap: 18px; }
}
.fb-calendar-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fb-calendar-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.fb-calendar-field span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--fb-ink-3);
}
.fb-calendar-field .fb-select {
  width: 100%;
  border-radius: 12px;
  padding-block: 9px;
}
@media (max-width: 880px) {
  .fb-calendar-controls { max-width: 360px; }
}
/* Calm board workspace v3: stable toolbar rows and clean list cards. */
body.fb-body {
  background: linear-gradient(180deg, #fffaf5 0%, #fffdf9 58%, #fffaf5 100%);
}

.fb-shell {
  max-width: 1280px;
  padding: 22px 28px 74px;
}

.fb-top {
  max-width: 1120px;
  margin: 0 auto 34px;
}

.fb-portal {
  max-width: none;
  width: 100%;
}

.fb-portal-head {
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 0;
  text-align: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fb-portal-head::before,
.fb-portal-head::after {
  content: none;
}

.fb-portal-head-copy {
  max-width: 100%;
}

.fb-portal-head .fb-eyebrow {
  margin-bottom: 8px;
  letter-spacing: 2.25px;
}

.fb-portal-head .fb-h1 {
  max-width: none;
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.04;
  letter-spacing: -.5px;
}

.fb-portal-head .fb-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--fb-ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

.fb-tabs {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 26px;
  padding: 5px;
  display: flex;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(228,216,200,.9);
  border-radius: 16px;
  background: rgba(244,236,226,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 12px 26px rgba(64,42,20,.055);
}

.fb-tab {
  min-width: 138px;
  min-height: 40px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--fb-ink-2);
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
}

.fb-tab:hover {
  color: var(--fb-ink);
  background: rgba(255,255,255,.44);
}

.fb-tab[aria-selected="true"] {
  color: var(--fb-ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(56,38,20,.075), inset 0 1px 0 rgba(255,255,255,.9);
}

.fb-portal > section[data-pane="board"].is-active {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.fb-portal > section[data-pane="share"].is-active,
.fb-portal > section[data-pane="mine"].is-active {
  max-width: 760px;
}

.fb-board-layout {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.fb-board-side,
.fb-side-cta {
  display: none;
}

.fb-board-main {
  min-width: 0;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(228,216,200,.94);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 64px rgba(60,40,20,.07), inset 0 1px 0 rgba(255,255,255,.86);
}

.fb-board-main-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 4px 4px 0;
}

.fb-board-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.3px;
}

.fb-board-count {
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid var(--fb-border);
  border-radius: 999px;
  background: rgba(255,253,251,.9);
  color: var(--fb-ink-3);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.fb-board-count[hidden] {
  display: none;
}

.fb-board-share {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(240,100,30,.15);
  white-space: nowrap;
}

.fb-board-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 20px;
  margin-top: 7px;
}

.fb-board-filter-summary span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fb-ink-3);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.fb-board-filter-summary span + span::before {
  content: '/';
  margin: 0 9px;
  color: var(--fb-border-strong);
}

.fb-board-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto minmax(230px, 280px);
  grid-template-areas:
    "search search search calendar"
    "category category sort status";
  align-items: end;
  gap: 13px 16px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(239,230,218,.95);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,253,251,.96), rgba(255,249,244,.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.fb-board-toolbar-search {
  grid-area: search;
  width: 100%;
  min-width: 0;
}

.fb-category-group {
  grid-area: category;
}

.fb-sort-group {
  grid-area: sort;
  justify-self: start;
}

.fb-status-group {
  grid-area: status;
  justify-self: end;
}

.fb-calendar-group {
  grid-area: calendar;
  min-width: 0;
}

.fb-search-wrap {
  min-height: 44px;
  border-radius: 14px;
  background: #fff;
  border-color: var(--fb-border);
  box-shadow: 0 8px 18px rgba(60,40,20,.04);
}

.fb-search-wrap:hover {
  border-color: var(--fb-border);
}

.fb-board-search {
  min-height: 44px;
  border-radius: 14px;
  font-size: 14px;
}

.fb-board-search::placeholder {
  color: var(--fb-ink-3);
}

.fb-board-search::-webkit-search-decoration,
.fb-board-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.fb-side-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fb-side-label,
.fb-calendar-field span {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--fb-ink-3);
  font-weight: 900;
}

.fb-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.fb-pill {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--fb-border-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: var(--fb-ink-2);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: none;
}

.fb-pill:hover {
  color: var(--fb-brand);
  background: var(--fb-brand-soft);
  border-color: var(--fb-border-strong);
  transform: translateY(-1px);
}

.fb-pill[aria-pressed="true"] {
  color: var(--fb-brand);
  background: linear-gradient(180deg, #fff4eb, #ffeadc);
  border-color: rgba(240,100,30,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.fb-calendar-controls {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) minmax(104px, 1fr);
  gap: 8px;
}

.fb-calendar-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fb-calendar-field .fb-select {
  width: 100%;
  min-height: 36px;
  padding: 8px 31px 8px 11px;
  border-radius: 12px;
  border-color: var(--fb-border-strong);
  background-color: #fff;
  color: var(--fb-ink-2);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: none;
}

.fb-calendar-field .fb-select:hover {
  border-color: var(--fb-border-strong);
}

#boardList {
  display: grid;
  gap: 10px;
}

.fb-post {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-height: 116px;
  padding: 14px 16px;
  border: 1px solid rgba(228,216,200,.88);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,252,248,.92));
  box-shadow: 0 10px 24px rgba(64,42,20,.04);
  overflow: visible;
}

.fb-post::before {
  content: none;
}

.fb-post:hover {
  transform: translateY(-1px);
  border-color: rgba(228,216,200,.88);
  box-shadow: 0 16px 32px rgba(64,42,20,.07);
}

.fb-upvote {
  flex: 0 0 54px;
  width: 54px;
  min-height: 84px;
  align-self: stretch;
  border-radius: 14px;
  border-color: var(--fb-border-strong);
  background: rgba(255,253,251,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}

.fb-upvote:hover {
  border-color: var(--fb-border-strong);
  background: var(--fb-brand-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}

.fb-upvote ion-icon {
  font-size: 21px;
}

.fb-upvote-n {
  font-size: 20px;
  line-height: 1;
}

.fb-upvote-label {
  font-size: 9px;
  letter-spacing: .75px;
}

.fb-post-body {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: stretch;
  gap: 6px;
  margin: 0;
}

.fb-post-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
}

.fb-post-author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  color: var(--fb-ink-3);
}

.fb-post-author b {
  color: var(--fb-ink-2);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
}

.fb-post-author small {
  margin: 0;
  color: var(--fb-ink-3);
  font-size: 12px;
}

.fb-ticket-ref {
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: 100%;
  border-color: var(--fb-border);
  background: rgba(255,253,251,.92);
  color: var(--fb-ink-3);
  box-shadow: none;
}

.fb-post-title {
  margin: 0;
  color: var(--fb-ink);
  font-size: 17px;
  line-height: 1.24;
  letter-spacing: -.18px;
}

.fb-post-msg {
  max-width: 82ch;
  color: var(--fb-ink-2);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.fb-post-meta {
  margin-top: 3px;
  gap: 7px;
}

.fb-badge,
.fb-stat {
  min-height: 23px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.fb-loadmore {
  margin: 16px auto 0;
}

.fb-empty-premium {
  min-height: 154px;
  padding: 28px;
  border-radius: 17px;
  background: rgba(255,255,255,.74);
  box-shadow: none;
}

.fb-empty-premium .fb-empty-icon {
  display: none;
}

/* Title and helper text are inline siblings — stack them so the sentence
   doesn't run together (e.g. "…Jun 2026Try another month"). */
.fb-empty-premium strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 980px) {
  .fb-board-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "calendar"
      "category"
      "sort"
      "status";
  }
  .fb-sort-group {
    justify-self: start;
  }
  .fb-status-group {
    justify-self: start;
  }
  .fb-calendar-controls {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .fb-shell {
    padding: 18px 14px 60px;
  }
  .fb-top {
    margin-bottom: 26px;
  }
  .fb-tabs {
    width: 100%;
    max-width: 420px;
  }
  .fb-tab {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
  }
  .fb-board-main {
    padding: 13px;
    border-radius: 18px;
  }
  .fb-board-main-head {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .fb-board-share {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .fb-post {
    gap: 12px;
    padding: 13px;
  }
  .fb-upvote {
    flex-basis: 52px;
    width: 52px;
    min-height: 80px;
  }
}

@media (max-width: 520px) {
  .fb-portal-head .fb-h1 {
    font-size: 27px;
  }
  .fb-portal-head .fb-sub {
    font-size: 14.5px;
  }
  .fb-tabs {
    gap: 3px;
    padding: 4px;
  }
  .fb-tab {
    min-height: 38px;
    font-size: 12.5px;
  }
  .fb-board-main-head {
    grid-template-columns: 1fr;
  }
  .fb-board-count {
    justify-self: start;
  }
  .fb-calendar-controls {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .fb-post {
    display: grid;
    grid-template-columns: 1fr;
  }
  .fb-upvote {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: start;
    align-content: center;
    gap: 8px;
    padding-inline: 12px;
  }
  .fb-post-top {
    display: grid;
    grid-template-columns: 1fr;
  }
  .fb-ticket-ref {
    justify-self: start;
  }
}
/* Feedback toolbar polish v20: grouped filters and inline idea type. */
.fb-board-toolbar {
  grid-template-columns: minmax(280px, 1fr) minmax(220px, .72fr) minmax(230px, .72fr);
  grid-template-areas:
    "search search calendar"
    "category sort status";
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,253,251,.98), rgba(255,248,242,.9));
}

.fb-board-toolbar-search,
.fb-category-group,
.fb-sort-group,
.fb-status-group,
.fb-calendar-group {
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid rgba(239,230,218,.92);
  border-radius: 15px;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.fb-board-toolbar-search {
  display: flex;
  align-items: center;
}

.fb-board-toolbar-search .fb-board-search {
  width: 100%;
}

.fb-category-group,
.fb-sort-group,
.fb-status-group,
.fb-calendar-group {
  align-content: center;
}

.fb-sort-group,
.fb-status-group {
  justify-self: stretch;
}

.fb-sort-group .fb-pill-row,
.fb-status-group .fb-pill-row {
  justify-content: flex-start;
}

.fb-calendar-group > .fb-side-label {
  display: none;
}

.fb-calendar-group {
  justify-content: stretch;
}

.fb-calendar-controls {
  align-self: center;
}

.fb-post-author {
  gap: 6px;
}

.fb-inline-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 18px;
  padding: 2px 7px;
  border: 1px solid rgba(240,100,30,.16);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  text-transform: capitalize;
  white-space: nowrap;
}

.fb-inline-type ion-icon {
  font-size: 10.5px;
}

.fb-post-meta:empty {
  display: none;
}

@media (max-width: 980px) {
  .fb-board-toolbar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "search search"
      "calendar calendar"
      "category category"
      "sort status";
  }
}

@media (max-width: 620px) {
  .fb-board-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "calendar"
      "category"
      "sort"
      "status";
  }

  .fb-board-toolbar-search,
  .fb-category-group,
  .fb-sort-group,
  .fb-status-group,
  .fb-calendar-group {
    min-height: 0;
  }
}
/* Idea card right-side identifiers v21. */
.fb-post-side-meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 5px;
  max-width: 160px;
}

.fb-post-side-meta .fb-inline-type {
  justify-self: end;
}

.fb-post-side-meta .fb-ticket-ref {
  justify-self: end;
}

@media (max-width: 520px) {
  .fb-post-side-meta {
    justify-items: start;
    max-width: none;
  }
}
/* Idea card compact spacing v22. */
#boardList {
  gap: 8px;
}

.fb-post {
  min-height: 96px;
  padding: 12px 14px;
  gap: 14px;
  align-items: flex-start;
}

.fb-upvote-wrap {
  align-self: stretch;
}

.fb-upvote {
  flex-basis: 48px;
  width: 48px;
  min-height: 72px;
  padding: 8px 6px;
  border-radius: 12px;
}

.fb-upvote ion-icon,
.fb-upvote-ic {
  width: 17px;
  height: 17px;
  font-size: 17px;
}

.fb-upvote-n {
  font-size: 18px;
}

.fb-upvote-l,
.fb-upvote-label {
  font-size: 8.5px;
  letter-spacing: .55px;
}

.fb-post-body {
  justify-content: flex-start;
  gap: 4px;
  padding-top: 1px;
}

.fb-post-top {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1px;
}

.fb-post-author {
  gap: 6px;
  line-height: 1.15;
}

.fb-post-title {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.2;
}

.fb-post-msg {
  font-size: 13.5px;
  line-height: 1.42;
}

.fb-post-side-meta {
  gap: 4px;
  padding-top: 0;
}

.fb-inline-type {
  min-height: 17px;
  padding: 2px 6px;
  font-size: 9.5px;
}

.fb-ticket-ref {
  min-height: 17px;
  padding: 2px 7px;
  font-size: 9.5px;
}

@media (max-width: 520px) {
  .fb-post {
    gap: 10px;
    padding: 12px;
  }

  .fb-upvote {
    min-height: 44px;
  }
}
/* Idea card title spacing v23: keep right labels from pushing content down. */
.fb-post {
  position: relative;
  min-height: 86px;
  padding: 11px 14px;
}

.fb-post-body {
  justify-content: flex-start !important;
  gap: 2px !important;
  padding-top: 0;
  padding-right: 132px;
}

.fb-post-top {
  display: block;
  margin: 0 !important;
  min-height: 0;
}

.fb-post-author {
  min-height: 16px;
  line-height: 1.1;
}

.fb-post-author b,
.fb-post-author small {
  line-height: 1.1;
}

.fb-post-title {
  margin: 1px 0 0 !important;
  line-height: 1.15;
}

.fb-post-msg {
  margin-top: 1px;
}

.fb-post-side-meta {
  position: absolute;
  top: 11px;
  right: 14px;
  z-index: 1;
  max-width: 124px;
}

@media (max-width: 620px) {
  .fb-post-body {
    padding-right: 0;
  }

  .fb-post-side-meta {
    position: static;
    margin-top: 4px;
    justify-items: start;
  }
}
/* Search field icon alignment v24. */
.fb-board-toolbar-search.fb-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
}

.fb-board-toolbar-search.fb-search-wrap > ion-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  margin: 0;
  color: var(--fb-ink-3);
  pointer-events: none;
}

.fb-board-toolbar-search .fb-board-search {
  min-height: 42px;
  height: 42px;
  padding: 0 42px 0 40px;
  line-height: 42px;
}

.fb-board-toolbar-search .fb-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
/* Search field single-surface cleanup v25. */
.fb-board-toolbar-search.fb-search-wrap {
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--fb-border-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(60,40,20,.035);
  overflow: hidden;
}

.fb-board-toolbar-search .fb-board-search {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 42px 0 42px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
  line-height: normal;
}

.fb-board-toolbar-search .fb-board-search:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.fb-board-toolbar-search.fb-search-wrap:focus-within {
  border-color: rgba(240,100,30,.46);
  box-shadow: 0 0 0 3px rgba(240,100,30,.11);
}
/* Feedback responsive cleanup v26: compact search and stable mobile layout. */
.fb-board-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, .68fr) minmax(210px, .72fr);
  grid-template-areas:
    "search search calendar"
    "category sort status";
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
}

.fb-category-group,
.fb-sort-group,
.fb-status-group,
.fb-calendar-group {
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.74);
}

.fb-board-toolbar-search.fb-search-wrap {
  align-self: center;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--fb-border-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.fb-board-toolbar-search.fb-search-wrap > ion-icon {
  left: 12px;
  width: 15px;
  height: 15px;
}

.fb-board-toolbar-search .fb-board-search {
  min-height: 38px;
  height: 38px;
  padding: 0 36px 0 35px;
  font-size: 13px;
  line-height: normal;
}

.fb-board-toolbar-search .fb-search-clear {
  right: 8px;
}

.fb-side-label,
.fb-calendar-field span {
  font-size: 9.5px;
  letter-spacing: .62px;
}

.fb-pill {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.fb-calendar-controls {
  gap: 7px;
}

.fb-calendar-field {
  gap: 6px;
}

.fb-calendar-field .fb-select {
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 11px;
  font-size: 12px;
}

.fb-board-main {
  overflow: hidden;
}

@media (max-width: 900px) {
  .fb-shell {
    padding-inline: 18px;
  }

  .fb-portal > section[data-pane="board"].is-active {
    max-width: 100%;
  }

  .fb-board-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .64fr);
    grid-template-areas:
      "search calendar"
      "category category"
      "sort status";
  }

  .fb-category-group,
  .fb-sort-group,
  .fb-status-group,
  .fb-calendar-group {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .fb-shell {
    padding: 16px 12px 56px;
  }

  .fb-top {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .fb-top > span {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px !important;
  }

  .fb-portal-head {
    margin-bottom: 14px;
  }

  .fb-portal-head .fb-h1 {
    font-size: 27px;
  }

  .fb-portal-head .fb-sub {
    font-size: 14px;
  }

  .fb-tabs {
    width: 100%;
    max-width: 430px;
    margin-bottom: 18px;
  }

  .fb-tab {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 8px;
    font-size: 12.5px;
  }

  .fb-board-main {
    padding: 11px;
    border-radius: 17px;
  }

  .fb-board-main-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .fb-board-share {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .fb-board-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "calendar"
      "category"
      "sort"
      "status";
    gap: 9px;
    padding: 9px;
  }

  .fb-board-toolbar-search.fb-search-wrap,
  .fb-category-group,
  .fb-sort-group,
  .fb-status-group,
  .fb-calendar-group {
    width: 100%;
  }

  .fb-calendar-controls {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .fb-pill-row {
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .fb-board-title {
    font-size: 20px;
  }

  .fb-board-filter-summary {
    font-size: 11.5px;
  }

  .fb-calendar-controls {
    grid-template-columns: 1fr;
  }

  .fb-post {
    display: flex;
    gap: 10px;
    min-height: 0;
    padding: 11px;
  }

  .fb-upvote-wrap {
    align-self: flex-start;
  }

  .fb-upvote {
    flex: 0 0 44px;
    width: 44px;
    min-height: 58px;
    padding: 6px 5px;
  }

  .fb-post-body {
    min-width: 0;
    padding-right: 0 !important;
  }

  .fb-post-side-meta {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    justify-items: start;
    gap: 5px;
    max-width: none;
    margin-top: 5px;
  }

  .fb-post-side-meta .fb-inline-type,
  .fb-post-side-meta .fb-ticket-ref {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .fb-shell {
    padding-inline: 10px;
  }

  .fb-brand span {
    font-size: 17px;
  }

  .fb-back {
    font-size: 12.5px;
  }

  .fb-tabs {
    padding: 4px;
    gap: 3px;
  }

  .fb-tab {
    min-height: 36px;
    font-size: 12px;
  }

  .fb-board-main-head {
    grid-template-columns: 1fr;
  }

  .fb-board-count {
    justify-self: start;
  }

  .fb-post {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fb-upvote {
    width: 100%;
    min-height: 40px;
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: start;
    align-content: center;
    gap: 7px;
    padding-inline: 10px;
  }
}
/* Mobile board hardening v27: no overflow and app-like idea rows. */
html,
body.fb-body {
  max-width: 100%;
  overflow-x: hidden;
}

.fb-shell,
.fb-portal,
.fb-board-layout,
.fb-board-main,
.fb-board-toolbar,
.fb-post,
.fb-post-body {
  min-width: 0;
}

@media (max-width: 640px) {
  .fb-shell {
    width: 100%;
    max-width: none;
    padding: 14px 8px 44px;
  }

  .fb-top,
  .fb-portal-head,
  .fb-tabs,
  .fb-portal > section[data-pane="board"].is-active {
    max-width: 100%;
  }

  .fb-board-main {
    width: 100%;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(60,40,20,.055);
    overflow: visible;
  }

  .fb-board-main-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-inline: 2px;
  }

  .fb-board-count {
    justify-self: start;
  }

  .fb-board-share {
    grid-column: auto;
    width: 100%;
    min-height: 38px;
  }

  .fb-board-toolbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "search"
      "calendar"
      "category"
      "sort"
      "status";
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .fb-board-toolbar-search.fb-search-wrap,
  .fb-category-group,
  .fb-sort-group,
  .fb-status-group,
  .fb-calendar-group {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    border-radius: 12px;
  }

  .fb-board-toolbar-search.fb-search-wrap {
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .fb-calendar-controls {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    width: 100%;
  }

  .fb-pill-row {
    width: 100%;
    gap: 6px;
  }

  .fb-pill {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  #boardList {
    gap: 8px;
  }

  .fb-post {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: start;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border-radius: 14px;
  }

  .fb-upvote-wrap {
    align-self: start;
  }

  .fb-upvote {
    width: 46px !important;
    min-width: 46px;
    min-height: 62px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px !important;
    border-radius: 11px;
  }

  .fb-upvote-ic {
    width: 16px;
    height: 16px;
  }

  .fb-upvote-n {
    font-size: 17px;
  }

  .fb-upvote-l {
    font-size: 8px;
  }

  .fb-post-body {
    padding-right: 0 !important;
    gap: 2px !important;
  }

  .fb-post-top {
    display: block !important;
  }

  .fb-post-author {
    min-height: 0;
    gap: 5px;
  }

  .fb-post-author b,
  .fb-post-author small {
    font-size: 11.5px;
  }

  .fb-post-title {
    margin-top: 2px !important;
    font-size: 15px;
    line-height: 1.18;
  }

  .fb-post-msg {
    font-size: 13px;
    line-height: 1.34;
  }

  .fb-post-side-meta {
    position: static !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    max-width: none;
    margin-top: 5px;
  }

  .fb-inline-type,
  .fb-ticket-ref {
    min-height: 17px;
    padding: 2px 6px;
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .fb-shell {
    padding-inline: 6px;
  }

  .fb-board-main {
    padding: 8px;
    border-radius: 14px;
  }

  .fb-board-toolbar {
    padding: 7px;
  }

  .fb-calendar-controls {
    grid-template-columns: 1fr;
  }

  .fb-post {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 9px;
    padding: 9px;
  }

  .fb-upvote {
    width: 44px !important;
    min-width: 44px;
    min-height: 58px !important;
  }
}
/* Mobile category spacing v28. */
@media (max-width: 640px) {
  .fb-category-group {
    align-content: start;
    gap: 4px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .fb-category-group .fb-side-label {
    margin: 0;
    line-height: 1;
  }

  .fb-category-group .fb-pill-row {
    margin-top: 0;
  }
}
/* Feedback custom calendar dropdowns v29. */
.fb-native-select-hidden {
  display: none !important;
}

.fb-custom-select-mount,
.fb-custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.fb-custom-select-btn {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--fb-border-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--fb-ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.fb-custom-select-btn:hover {
  background: #fffaf5;
  border-color: var(--fb-border-strong);
  color: var(--fb-brand);
}

.fb-custom-select-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240,100,30,.14);
}

.fb-custom-select-btn ion-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--fb-brand);
  transition: transform .16s ease;
}

.fb-custom-select.is-open .fb-custom-select-btn ion-icon {
  transform: rotate(180deg);
}

.fb-custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  display: none;
  max-height: 220px;
  overflow: auto;
  padding: 5px;
  border: 1px solid rgba(228,216,200,.96);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(60,40,20,.14);
}

.fb-custom-select.is-open .fb-custom-select-menu {
  display: grid;
  gap: 2px;
}

.fb-custom-select-option {
  width: 100%;
  min-height: 30px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fb-ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.fb-custom-select-option:hover,
.fb-custom-select-option:focus-visible {
  outline: none;
  background: var(--fb-brand-soft);
  color: var(--fb-brand);
}

.fb-custom-select-option[aria-selected="true"] {
  background: linear-gradient(180deg, #fff4eb, #ffeadc);
  color: var(--fb-brand);
}

@media (max-width: 640px) {
  .fb-custom-select-menu {
    max-height: 190px;
  }
}
/* Custom select scrollbar cleanup v30. */
.fb-custom-select-menu {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fb-custom-select-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}
