/* ExNiLingo Roadmap — calm, classic look built on FluentCommunity's colour variables (follows your theme and dark mode). */
.exn_rm_page {
  --rm-bg: var(--fcom-primary-bg, #fff);
  --rm-soft: var(--fcom-secondary-bg, #f4f5f7);
  --rm-line: var(--fcom-primary-border, #e3e8ee);
  --rm-text: var(--fcom-primary-text, #19283a);
  --rm-muted: var(--fcom-text-off, #8a8f99);
  --rm-link: var(--fcom-text-link, #2271b1);
  --rm-btn: var(--fcom-primary-button, #2b2e33);
  --rm-btn-text: var(--fcom-primary-button-text, #fff);
  --rm-idea: #4F8FCF;
  --rm-planned: #8C6BC4;
  --rm-progress: #D9893A;
  --rm-done: #4E9F6A;
  --rm-pending: #C8644E;
  --rm-declined: #B5656B;
}
.exn_rm_page .feeds_main, .exn_rm_page .exn_rm_layout { max-width: 1240px; margin: 0 auto; width: 100%; }

/* Header */
.exn_rm_hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 28px 18px; border-bottom: 1px solid var(--rm-line);
}
.exn_rm_hero_text { min-width: 0; flex: 1 1 380px; }
.exn_rm_title { margin: 0 0 6px !important; font-size: 26px !important; line-height: 1.2 !important; font-weight: 700 !important; color: var(--rm-text) !important; }
.exn_rm_intro { margin: 0; max-width: 62ch; color: var(--rm-muted); font-size: 14.5px; line-height: 1.55; }
.exn_rm_stats { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--rm-muted); }
.exn_rm_stats b { color: var(--rm-text); font-weight: 700; margin-right: 2px; }
.exn_rm_hero_actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Buttons (same shapes as FluentCommunity's) */
.exn_rm_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.exn_rm_btn:disabled { opacity: .5; cursor: default; }
.exn_rm_btn_primary { background: var(--rm-btn); color: var(--rm-btn-text); }
.exn_rm_btn_primary:hover:not(:disabled) { opacity: .9; }
.exn_rm_btn_ghost { background: transparent; color: var(--rm-text); border-color: var(--rm-line); padding: 6px 12px; font-size: 13px; }
.exn_rm_btn_ghost:hover { background: var(--rm-soft); }
.exn_rm_btn_ok { background: var(--rm-done); color: #fff; padding: 6px 12px; font-size: 13px; }

/* Body, notice, form */
.exn_rm_body { padding: 20px 28px 40px; }
.exn_rm_notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 16px; padding: 10px 14px; border-radius: 6px;
  background: var(--rm-soft); border: 1px solid var(--rm-line); border-left: 3px solid var(--rm-done);
  color: var(--rm-text); font-size: 14px;
}
.exn_rm_x { background: none; border: 0; color: var(--rm-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.exn_rm_form {
  display: grid; gap: 10px; max-width: 680px; margin: 0 0 22px; padding: 16px;
  background: var(--rm-bg); border: 1px solid var(--rm-line); border-radius: 8px;
}
.exn_rm_form_title { margin: 0; font-size: 15px; font-weight: 700; color: var(--rm-text); }
.exn_rm_input {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 6px;
  border: 1px solid var(--rm-line); background: var(--rm-bg); color: var(--rm-text);
  font: inherit; font-size: 14.5px;
}
.exn_rm_input:focus { outline: 2px solid var(--rm-link); outline-offset: 0; }
.exn_rm_textarea { resize: vertical; min-height: 80px; }
.exn_rm_form_actions { display: flex; justify-content: flex-end; gap: 8px; }
.exn_rm_state { padding: 50px 0; text-align: center; color: var(--rm-muted); }
.exn_rm_error { color: var(--rm-pending); }

/* Approval queue */
.exn_rm_queue { margin: 0 0 22px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--rm-line); border-left: 3px solid var(--rm-pending); background: var(--rm-bg); }
.exn_rm_queue_head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: 14px; color: var(--rm-text); }
.exn_rm_queue_list { display: grid; gap: 8px; }
.exn_rm_qcard {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 6px; background: var(--rm-soft); border: 1px solid var(--rm-line);
}
.exn_rm_qcard_main { min-width: 0; flex: 1 1 260px; }
.exn_rm_qcard .exn_rm_card_desc { margin-bottom: 4px; }
.exn_rm_qcard_actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Board */
.exn_rm_board { --rm-cols: 4; display: grid; grid-template-columns: repeat(var(--rm-cols), minmax(0, 1fr)); gap: 14px; align-items: start; }
.exn_rm_col { --c: var(--rm-idea); min-width: 0; }
.exn_rm_col_pending { --c: var(--rm-pending); }
.exn_rm_col_planned { --c: var(--rm-planned); }
.exn_rm_col_in_progress { --c: var(--rm-progress); }
.exn_rm_col_done { --c: var(--rm-done); }
.exn_rm_col_declined { --c: var(--rm-declined); }

.exn_rm_col_head { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; margin-bottom: 10px; border-bottom: 2px solid var(--c); }
.exn_rm_dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.exn_rm_col_head h2 { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rm-text); }
.exn_rm_count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--rm-muted); }
.exn_rm_queue .exn_rm_count { margin-left: 0; }
.exn_rm_col_list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.exn_rm_empty { margin: 0; padding: 14px 4px; color: var(--rm-muted); font-size: 13px; font-style: italic; }

/* Cards */
.exn_rm_card {
  display: block;
  padding: 12px; border-radius: 8px; background: var(--rm-bg); border: 1px solid var(--rm-line);
  transition: border-color .15s ease, opacity .15s ease;
}
.exn_rm_card:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--rm-line)); }
.exn_rm_card.is_busy, .exn_rm_qcard.is_busy { opacity: .55; }
.exn_rm_card_body { min-width: 0; flex: 1 1 0; }
.exn_rm_card_top { display: flex; align-items: flex-start; gap: 6px; }
.exn_rm_card_title { flex: 1; min-width: 0; margin: 0 0 4px !important; font-size: 14.5px !important; line-height: 1.35 !important; font-weight: 600 !important; color: var(--rm-text) !important; overflow-wrap: break-word; }
.exn_rm_card_desc { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--rm-muted); white-space: pre-line; overflow-wrap: break-word; }
.exn_rm_more { background: none; border: 0; padding: 0; color: var(--rm-link); cursor: pointer; font: inherit; font-size: 13px; }

.exn_rm_card_foot { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--rm-muted); }
.exn_rm_who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--rm-muted) !important; text-decoration: none; }
.exn_rm_who:hover { color: var(--rm-text) !important; text-decoration: underline; }
.exn_rm_who img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.exn_rm_who_name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exn_rm_time { white-space: nowrap; }

/* Hearts: one per vote, side by side */
.exn_rm_page { --rm-heart: #E0475B; }
.exn_rm_hearts { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; min-height: 28px; }
.exn_rm_heart_btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--rm-line); background: var(--rm-bg); color: var(--rm-muted);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.exn_rm_heart_btn svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.exn_rm_heart_btn:hover { color: var(--rm-heart); border-color: var(--rm-heart); }
.exn_rm_heart_btn:active { transform: scale(.92); }
.exn_rm_heart_btn.is_voted { color: var(--rm-heart); border-color: var(--rm-heart); background: color-mix(in srgb, var(--rm-heart) 10%, var(--rm-bg)); }
.exn_rm_heart_btn.is_voted svg path { fill: currentColor; }
.exn_rm_heart_row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; color: var(--rm-heart); }
.exn_rm_heart path { fill: currentColor; }
.exn_rm_heart { animation: exn-rm-pop .25s ease-out; }
.exn_rm_heart_more { margin-left: 3px; font-size: 12px; font-weight: 700; color: var(--rm-heart); }
.exn_rm_heart_none { font-size: 12px; color: var(--rm-muted); font-style: italic; }
.exn_rm_hearts.is_closed .exn_rm_heart_row { opacity: .8; }
@keyframes exn-rm-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .exn_rm_heart { animation: none; } }

/* Admin menu */
.exn_rm_menu_wrap { position: relative; flex: none; }
.exn_rm_dots { width: 24px; height: 24px; margin: -3px -4px 0 0; border-radius: 4px; border: 0; cursor: pointer; background: transparent; color: var(--rm-muted); font-size: 16px; line-height: 1; }
.exn_rm_dots:hover, .exn_rm_dots[aria-expanded="true"] { background: var(--rm-soft); color: var(--rm-text); }
.exn_rm_menu {
  position: absolute; right: 0; top: 26px; z-index: 30; min-width: 170px; padding: 4px;
  background: var(--rm-bg); border: 1px solid var(--rm-line); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); display: grid;
}
.exn_rm_menu_label { padding: 6px 8px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rm-muted); }
.exn_rm_menu_item { text-align: left; padding: 7px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--rm-text); font: inherit; font-size: 13.5px; cursor: pointer; }
.exn_rm_menu_item:hover { background: var(--rm-soft); }
.exn_rm_menu_item.is_current { font-weight: 700; }
.exn_rm_menu_danger { color: var(--rm-pending); border-top: 1px solid var(--rm-line); border-radius: 0; margin-top: 4px; }

/* Responsive */
@media (max-width: 1100px) {
  .exn_rm_board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Column switcher: only shown on phones */
.exn_rm_tabs { display: none; }

/* Phones: one column at a time, picked with the chips (or a swipe on the board) */
@media (max-width: 700px) {
  .exn_rm_hero { padding: 18px 14px 14px; gap: 12px; }
  .exn_rm_title { font-size: 23px !important; }
  .exn_rm_intro { font-size: 14px; }
  .exn_rm_hero_actions { width: 100%; }
  .exn_rm_hero_actions .exn_rm_btn_primary { width: 100%; min-height: 44px; font-size: 15px; }
  .exn_rm_body { padding: 14px 12px 32px; }

  .exn_rm_tabs {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0 0 14px; padding: 0; scroll-margin-top: 70px;
  }
  .exn_rm_tab {
    --c: var(--rm-idea);
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
    padding: 6px 12px; border: 1px solid var(--rm-line); border-radius: 999px;
    background: var(--rm-bg); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600;
    color: var(--rm-muted); white-space: nowrap; -webkit-tap-highlight-color: transparent;
  }
  .exn_rm_tab.exn_rm_col_pending { --c: var(--rm-pending); }
  .exn_rm_tab.exn_rm_col_planned { --c: var(--rm-planned); }
  .exn_rm_tab.exn_rm_col_in_progress { --c: var(--rm-progress); }
  .exn_rm_tab.exn_rm_col_done { --c: var(--rm-done); }
  .exn_rm_tab.exn_rm_col_declined { --c: var(--rm-declined); }
  .exn_rm_tab.is_active { color: var(--rm-text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--rm-bg)); }
  .exn_rm_tab_n { font-weight: 500; color: var(--rm-muted); }

  .exn_rm_board { display: block; touch-action: pan-y; }
  .exn_rm_col { display: none; }
  .exn_rm_col.is_active_col { display: block; animation: exn-rm-in .18s ease-out; }
  .exn_rm_col_head { display: none; }
  .exn_rm_col_list { gap: 10px; }
  .exn_rm_empty { padding: 30px 4px; text-align: center; }

  .exn_rm_card { padding: 14px; }
  .exn_rm_card_title { font-size: 15.5px !important; }
  .exn_rm_card_desc { font-size: 14px; }
  .exn_rm_card_foot { font-size: 13px; gap: 4px 10px; }
  .exn_rm_dots { width: 36px; height: 36px; margin: -8px -8px 0 0; font-size: 20px; }
  /* the card menu opens as a sheet above the bottom bar */
  .exn_rm_menu {
    position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 2001;
    min-width: 0; max-height: 70vh; overflow: auto; padding: 6px; border-radius: 14px;
    box-shadow: 0 -10px 40px rgba(0,0,0,.45); animation: exn-rm-up .18s ease-out;
  }
  .exn_rm_menu_item { padding: 11px 10px; font-size: 15px; }
  .exn_rm_heart_btn { width: 38px; height: 38px; }
  .exn_rm_btn_ok, .exn_rm_btn_ghost { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .exn_rm_page .exn_rm_link_btn, .exn_rm_page .exn_rm_link { font-size: 14px; padding: 6px 0; }
  .exn_rm_qcard_actions .exn_rm_btn { flex: 1; }

  /* forms and dialogs: full width, 16px text so iPhones don't zoom, dialogs as bottom sheets */
  .exn_rm_form { padding: 14px; }
  .exn_rm_input { font-size: 16px; padding: 11px 12px; }
  .exn_rm_form_actions .exn_rm_btn { flex: 1; min-height: 44px; }
  .exn_rm_page .exn_rm_overlay { align-items: flex-end; padding: 0; }
  .exn_rm_page .exn_rm_dialog { max-width: none; max-height: 88vh; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-bottom: 0; animation: exn-rm-up .2s ease-out; }
  .exn_rm_page .exn_rm_also { grid-template-columns: 1fr; }
  .exn_rm_page .exn_rm_check { min-height: 32px; }
  .exn_rm_datepick { max-width: none; gap: 6px; }
}
@keyframes exn-rm-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes exn-rm-up { from { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .exn_rm_col.is_active_col, .exn_rm_dialog { animation: none; } }

/* Dates (managers can change them) */
.exn_rm_time_btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.exn_rm_time_btn:hover { color: var(--rm-text); }
.exn_rm_datepick { align-items: end; display: grid; grid-template-columns: minmax(70px, .8fr) minmax(120px, 1.6fr) minmax(90px, 1fr); gap: 8px; max-width: 420px; }
.exn_rm_datepick .exn_rm_label { font-size: 12.5px; }
.exn_rm_datepick select { color-scheme: light dark; text-transform: none; }
.exn_rm_datepick .exn_rm_dp_month select { text-transform: capitalize; }
.exn_rm_datefield { margin: 0; padding: 0; border: 0; min-width: 0; }
.exn_rm_datefield legend { padding: 0; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--rm-text); }

/* Done → community post */
.exn_rm_share_row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rm-line); font-size: 12.5px; }
.exn_rm_link { color: var(--rm-link) !important; font-weight: 600; text-decoration: none; }
.exn_rm_link:hover { text-decoration: underline; }
.exn_rm_link_btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--rm-muted); text-decoration: underline; text-underline-offset: 2px; }
.exn_rm_link_btn:hover { color: var(--rm-text); }
.exn_rm_overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.45); }
.exn_rm_dialog { display: grid; gap: 12px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 20px; border-radius: 8px; background: var(--rm-bg); border: 1px solid var(--rm-line); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.exn_rm_label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--rm-text); }
.exn_rm_label .exn_rm_input { font-weight: 400; }
.exn_rm_small { margin: 0; font-size: 13px; }

.exn_rm_also { margin: 0; padding: 10px 12px; border: 1px solid var(--rm-line); border-radius: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; max-height: 180px; overflow: auto; }
.exn_rm_also legend { padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--rm-text); }
.exn_rm_check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--rm-text); cursor: pointer; min-width: 0; }
.exn_rm_check input { margin: 0; flex: none; }

/* Pending review + Rejected */
.exn_rm_col_pending .exn_rm_card { border-style: dashed; }
.exn_rm_col_declined .exn_rm_card_title { color: var(--rm-muted) !important; }
.exn_rm_pending_row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.exn_rm_hint { margin: 0; font-size: 12px; color: var(--rm-muted); }
.exn_rm_note { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--rm-soft); border-left: 3px solid var(--rm-declined); }
.exn_rm_note_label { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rm-declined); }
.exn_rm_note p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--rm-text); white-space: pre-line; overflow-wrap: break-word; }
.exn_rm_note_edit { display: inline-block; margin-top: 6px; font-size: 12px; }
.exn_rm_dialog_item { margin: -4px 0 0; font-size: 14px; color: var(--rm-muted); }

/* Highlight when arriving from a profile link (/roadmap#idea-12) */
.exn_rm_card.is_flash { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); transition: box-shadow .3s ease; }

/* ---------- Suggestions tab on profiles ---------- */
.exn_rm_profile { --c: var(--rm-idea); padding: 4px 0 30px; color: var(--rm-text); }
.exn_rm_pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.exn_rm_pstat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; background: var(--rm-bg); border: 1px solid var(--rm-line); min-width: 0; }
.exn_rm_pstat b { font-size: 22px; line-height: 1.1; font-weight: 700; color: var(--rm-text); }
.exn_rm_pstat span { font-size: 12.5px; color: var(--rm-muted); line-height: 1.3; }
.exn_rm_psec { margin: 0 0 24px; }
.exn_rm_psec_title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 15px !important; font-weight: 700 !important; color: var(--rm-text) !important; }
.exn_rm_psec_title .exn_rm_count { margin-left: 0; }
.exn_rm_prow {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline;
  padding: 12px 14px; margin: 0 0 8px; border-radius: 8px; background: var(--rm-bg); border: 1px solid var(--rm-line);
  color: var(--rm-text) !important; text-decoration: none !important; transition: border-color .15s ease;
}
.exn_rm_prow:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--rm-line)); }
.exn_rm_prow > :not(.exn_rm_chip) { grid-column: 2; }
.exn_rm_chip { grid-row: 1; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--rm-text); background: color-mix(in srgb, var(--c) 15%, var(--rm-bg)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.exn_rm_prow_title { font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.exn_rm_prow_desc { font-size: 13px; line-height: 1.5; color: var(--rm-muted); overflow-wrap: anywhere; }
.exn_rm_prow_note { font-size: 12.5px; line-height: 1.45; color: var(--rm-text); padding: 6px 8px; border-radius: 6px; background: var(--rm-soft); border-left: 3px solid var(--rm-declined); }
.exn_rm_prow_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 12px; color: var(--rm-muted); }
.exn_rm_prow_hearts { display: inline-flex; align-items: center; gap: 4px; color: var(--rm-heart); font-weight: 700; }
.exn_rm_prow_hearts path { fill: currentColor; }
.exn_rm_prow_hearts.is_given { font-weight: 600; }
.exn_rm_pempty { padding: 30px 16px; text-align: center; border: 1px dashed var(--rm-line); border-radius: 8px; color: var(--rm-muted); }
.exn_rm_pempty p { margin: 0 0 14px; }
@media (max-width: 700px) {
  .exn_rm_pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .exn_rm_prow { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .exn_rm_prow > :not(.exn_rm_chip) { grid-column: 1; }
  .exn_rm_chip { justify-self: start; }
  .exn_rm_prow_meta { font-size: 12.5px; }
}

/* Edit */
.exn_rm_menu_edit { font-weight: 600; border-bottom: 1px solid var(--rm-line); border-radius: 0; margin-bottom: 4px; }
.exn_rm_edit_link { font-size: 12px; text-decoration: none; }
.exn_rm_edit_link:hover { text-decoration: underline; }

/* ---------- Releases tab (1.9.0) — only for the team and invited members ---------- */
.exn_rm_views { display: flex; gap: 4px; padding: 12px 28px 0; border-bottom: 1px solid var(--rm-line); }
.exn_rm_view {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1px;
  padding: 9px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
  background: none; color: var(--rm-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.exn_rm_view:hover { color: var(--rm-text); }
.exn_rm_view.is_active { color: var(--rm-text); background: var(--rm-bg); border-color: var(--rm-line); }
.exn_rm_view:focus-visible, .exn_rm_plus:focus-visible { outline: 2px solid var(--rm-link); outline-offset: 2px; }
.exn_rm_lock { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.exn_rm_releases { max-width: 860px; --c: var(--rm-idea); }
.exn_rm_rel_dialog { --c: var(--rm-idea); }
.exn_rm_rel_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.exn_rm_rel_head_text { min-width: 0; }
.exn_rm_rel_h { margin: 0 0 4px !important; font-size: 20px !important; font-weight: 700 !important; color: var(--rm-text) !important; }
.exn_rm_rel_intro { margin: 0 0 6px; max-width: 62ch; color: var(--rm-muted); font-size: 14px; line-height: 1.55; }
.exn_rm_rel_meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--rm-muted); }
.exn_rm_rel_meta a { color: var(--rm-link); }
.exn_rm_team_only { display: inline-flex; align-items: center; gap: 5px; }

.exn_rm_plus {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--rm-btn); color: var(--rm-btn-text);
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .15s ease, opacity .15s ease;
}
.exn_rm_plus svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.exn_rm_plus:hover { transform: rotate(90deg); }

.exn_rm_rel_list { display: grid; gap: 14px; }
.exn_rm_rel_card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--rm-bg); border: 1px solid var(--rm-line); border-radius: 10px;
}
.exn_rm_rel_card.has_img { grid-template-columns: 200px 1fr; }
.exn_rm_rel_img { display: block; background: var(--rm-soft); }
.exn_rm_rel_img img { display: block; width: 100%; height: 100%; min-height: 140px; object-fit: cover; }
.exn_rm_rel_body { display: grid; gap: 6px; padding: 14px 16px; min-width: 0; }
.exn_rm_rel_date { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--rm-done); text-transform: uppercase; }
.exn_rm_rel_title { margin: 0 !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; }
.exn_rm_rel_title a { color: var(--rm-text) !important; text-decoration: none; }
.exn_rm_rel_title a:hover { text-decoration: underline; }
.exn_rm_rel_excerpt { margin: 0; color: var(--rm-muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.exn_rm_rel_feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.exn_rm_rel_feat { cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.exn_rm_rel_feat:hover { border-color: var(--c); }
.exn_rm_rel_foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12.5px; color: var(--rm-muted); }
.exn_rm_rel_read { margin-left: auto; font-weight: 600; }
.exn_rm_rel_more { justify-self: center; margin-top: 4px; }
.exn_rm_rel_empty p { margin: 0 0 14px; }

.exn_rm_rel_dialog { max-width: 640px; }
.exn_rm_rel_pick { grid-template-columns: 1fr; max-height: 170px; }
.exn_rm_rel_pick .exn_rm_hint { margin: 2px 0 0; }

@media (max-width: 700px) {
  .exn_rm_views { padding: 10px 14px 0; }
  .exn_rm_view { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .exn_rm_rel_list { padding-bottom: 72px; }
  .exn_rm_rel_card.has_img { grid-template-columns: 1fr; }
  .exn_rm_rel_img img { height: 160px; min-height: 0; }
  /* + floats above the bottom of the screen on phones, easy to reach with a thumb */
  .exn_rm_plus { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 50; width: 54px; height: 54px; }
  .exn_rm_rel_read { margin-left: 0; min-height: 32px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .exn_rm_plus { transition: none; } .exn_rm_plus:hover { transform: none; } }

/* ---------- Labels inside the columns (1.10.0) ---------- */
.exn_rm_label_chip {
  --lc: var(--rm-muted);
  display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; max-width: 100%;
  margin: 2px 0 6px; padding: 1px 8px; border-radius: 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.6;
  color: color-mix(in srgb, var(--lc) 75%, var(--rm-text));
  background: color-mix(in srgb, var(--lc) 14%, var(--rm-bg));
  border-left: 3px solid var(--lc);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.exn_rm_lfilter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.exn_rm_lchip {
  --lc: var(--rm-muted);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; min-height: 30px;
  border-radius: 999px; border: 1px solid var(--rm-line); background: var(--rm-bg);
  color: var(--rm-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.exn_rm_lchip:hover { color: var(--rm-text); }
.exn_rm_lchip.is_on { color: var(--rm-text); border-color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, var(--rm-bg)); }
.exn_rm_lchip:not([style]).is_on { border-color: var(--rm-text); }
.exn_rm_ldot { width: 8px; height: 8px; border-radius: 2px; background: var(--lc); flex: none; }
.exn_rm_lchip:focus-visible { outline: 2px solid var(--rm-link); outline-offset: 2px; }

/* ---------- History tab (1.10.0) ---------- */
.exn_rm_history { max-width: 860px; --c: var(--rm-planned); }
.exn_rm_tl { position: relative; padding-left: 26px; }
.exn_rm_tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--rm-line); }
.exn_rm_tl_year { margin: 0 0 22px; }
.exn_rm_tl_y {
  position: relative; margin: 0 0 12px -26px !important; padding-left: 26px;
  font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.01em; color: var(--rm-text) !important;
}
.exn_rm_tl_y::before { content: ""; position: absolute; left: 1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--rm-text); box-shadow: 0 0 0 4px var(--rm-soft); }
.exn_rm_tl_item { position: relative; margin: 0 0 12px; }
.exn_rm_tl_dot { position: absolute; left: -23px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--rm-bg); border: 2px solid var(--c); }
.exn_rm_tl_item.is_article .exn_rm_tl_dot { background: var(--c); }
.exn_rm_tl_card { display: grid; gap: 6px; padding: 14px 16px; background: var(--rm-bg); border: 1px solid var(--rm-line); border-radius: 10px; min-width: 0; }
.exn_rm_tl_item.is_feature .exn_rm_tl_card { background: transparent; border-style: dashed; padding: 10px 14px; }
.exn_rm_tl_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--rm-muted); }
.exn_rm_tl_meta time { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--c); }
.exn_rm_tl_meta .exn_rm_label_chip { margin: 0; }
.exn_rm_tl_kind { font-weight: 600; }
.exn_rm_tl_title { margin: 0 !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; color: var(--rm-text) !important; }
.exn_rm_tl_item.is_feature .exn_rm_tl_title { font-size: 15px !important; }
.exn_rm_tl_img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; margin: 4px 0; background: var(--rm-soft); }
.exn_rm_tl_story { color: var(--rm-text); font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.exn_rm_tl_story p { margin: 0 0 .7em; }
.exn_rm_tl_story p:last-child { margin-bottom: 0; }
.exn_rm_tl_story ul { margin: 0 0 .7em 1.2em; padding: 0; }
.exn_rm_tl_story a { color: var(--rm-link); }
.exn_rm_tl_story.is_clamped { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.exn_rm_tl_desc { margin: 0; color: var(--rm-muted); font-size: 14px; line-height: 1.55; }
.exn_rm_tl_foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 2px; font-size: 12.5px; color: var(--rm-muted); }
.exn_rm_tl_foot .exn_rm_who { margin-right: auto; }
.exn_rm_tl_card > .exn_rm_link_btn { justify-self: start; }

@media (max-width: 700px) {
  .exn_rm_lfilter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 2px; scrollbar-width: none; }
  .exn_rm_lchip { flex: none; min-height: 36px; }
  .exn_rm_tl { padding-left: 20px; padding-bottom: 72px; }
  .exn_rm_tl::before { left: 5px; }
  .exn_rm_tl_y { margin-left: -20px !important; padding-left: 22px; font-size: 20px !important; }
  .exn_rm_tl_y::before { left: 0; width: 12px; height: 12px; margin-top: -6px; }
  .exn_rm_tl_dot { left: -19px; }
  .exn_rm_tl_card { padding: 12px 13px; }
}
