/*
 * Public roadmap pages. Scoped under .rm so the marketing theme is untouched.
 * Palette follows the marketing homepage (front/v2/components/*): navy ink, slate text,
 * hairline borders, mint surfaces and the #00e4e2 -> #81ee8e brand gradient used sparingly.
 */
.rm {
  --rm-ink: #1a1f36;
  --rm-ink-2: #415076;
  --rm-muted: #6b7a99;
  --rm-faint: #8492a6;
  --rm-line: #e8eaf0;
  --rm-line-strong: #d1d5e0;
  --rm-canvas: #f7f8fb;
  --rm-surface: #ffffff;
  --rm-hover: #fafbfd;
  --rm-mint: #f0fbf8;
  --rm-mint-line: #b9efe2;
  --rm-teal: #00b5b3;
  --rm-link: #0b7e7c;
  --rm-brand-a: #00e4e2;
  --rm-brand-b: #81ee8e;
  --rm-danger: #d9363e;
  --rm-skeleton: #e9edf3;
  --rm-radius: 10px;
  --rm-radius-sm: 6px;
  --rm-shadow: 0 1px 2px rgba(17, 24, 39, .04);
  --rm-shadow-pop: 0 12px 32px rgba(17, 24, 39, .12);
  background: var(--rm-canvas);
  color: var(--rm-ink);
  padding: 112px 0 72px;
  min-height: 70vh;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.rm *, .rm *::before, .rm *::after { box-sizing: border-box; }
.rm a { color: var(--rm-link); text-decoration: none; }
.rm a:hover { text-decoration: underline; text-underline-offset: 2px; }
.rm .ti { font-size: 16px; line-height: 1; vertical-align: -2px; }
.rm-container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.rm-hidden { display: none !important; }
.rm-num { font-variant-numeric: tabular-nums; }
.rm-grad { background: linear-gradient(90deg, var(--rm-brand-a), var(--rm-brand-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Page header + tabs (homepage tab style) ---------- */
.rm-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.rm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rm-faint); margin: 0 0 6px; }
.rm .rm-title { font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--rm-ink); margin: 0; letter-spacing: -.01em; }
.rm-subtitle { color: var(--rm-muted); margin: 6px 0 0; font-size: 15px; }
.rm-header-actions { display: flex; gap: 8px; align-items: center; }
.rm-tabs { display: flex; gap: 0; border-bottom: 1.5px solid var(--rm-line); margin: 20px 0 24px; overflow-x: auto; scrollbar-width: none; }
.rm-tabs::-webkit-scrollbar { display: none; }
.rm-tab { position: relative; padding: 10px 16px 12px; font-size: 14px; font-weight: 500; color: var(--rm-faint) !important; white-space: nowrap; }
.rm-tab:hover { color: var(--rm-ink-2) !important; text-decoration: none !important; }
.rm-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2px; background: var(--rm-ink); transform: scaleX(0); transition: transform .15s ease; }
.rm-tab.is-active { color: var(--rm-ink) !important; font-weight: 600; }
.rm-tab.is-active::after { transform: scaleX(1); }
.rm-tab-count { margin-left: 6px; font-size: 12px; color: var(--rm-faint); font-weight: 500; }

/* ---------- Buttons ---------- */
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--rm-line-strong); background: var(--rm-surface); color: var(--rm-ink) !important; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.rm-btn:hover { background: var(--rm-hover); border-color: var(--rm-faint); text-decoration: none !important; }
.rm-btn:focus-visible, .rm-vote:focus-visible, .rm-tab:focus-visible, .rm-seg label:focus-within { outline: 2px solid var(--rm-teal); outline-offset: 2px; }
.rm-btn-primary { background: var(--rm-ink); border-color: var(--rm-ink); color: #fff !important; }
.rm-btn-primary:hover { background: #0d1530; border-color: #0d1530; }
.rm-btn-ghost { border-color: transparent; background: transparent; color: var(--rm-ink-2) !important; }
.rm-btn-ghost:hover { background: #eef1f6; border-color: transparent; }
.rm-btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.rm-btn[disabled] { opacity: .55; cursor: not-allowed; }
.rm-btn-block { width: 100%; }
.rm-link-btn { background: none; border: 0; color: var(--rm-link); cursor: pointer; padding: 0; font-weight: 600; font-size: 13px; }
.rm-link-btn:hover { text-decoration: underline; }

/* ---------- Labels: status dot, board tag ---------- */
.rm-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--rm-ink-2); white-space: nowrap; }
.rm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--rm-faint); }
.rm-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--rm-line); border-radius: var(--rm-radius-sm); background: var(--rm-surface); font-size: 12px; font-weight: 500; color: var(--rm-ink-2); white-space: nowrap; }
.rm-tag .rm-dot { width: 6px; height: 6px; border-radius: 2px; }
.rm-meta { color: var(--rm-muted); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rm-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rm-line-strong); }
.rm-pin { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-link); }

/* ---------- Notice ---------- */
.rm-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--rm-mint); border: 1px solid var(--rm-mint-line); color: #0b5e57; border-radius: var(--rm-radius); padding: 10px 14px; margin-bottom: 16px; font-weight: 500; }
.rm-notice-warn { background: #fff8e6; border-color: #f5dc9c; color: #7a5a00; }

/* ---------- Toolbar ---------- */
.rm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.rm-search { position: relative; flex: 1 1 260px; max-width: 360px; }
/* Filter tabs (board, status, sort). Links, so every filter state has its own URL. */
.rm-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.rm-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rm-chips { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rm-chips::-webkit-scrollbar { display: none; }
.rm-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--rm-line-strong); border-radius: 8px; background: var(--rm-surface); font-size: 13.5px; font-weight: 500; color: var(--rm-ink-2) !important; white-space: nowrap; flex-shrink: 0; transition: border-color .12s, background .12s; }
.rm-chip .ti { font-size: 16px; }
.rm-chip:hover { border-color: var(--rm-faint); text-decoration: none !important; }
.rm-chip.is-active { background: var(--rm-ink); border-color: var(--rm-ink); color: #fff !important; font-weight: 600; }
.rm-chip.is-active .ti-layout-list { color: #fff; }
.rm-sortseg { display: inline-flex; padding: 2px; border: 1px solid var(--rm-line-strong); border-radius: 8px; background: var(--rm-canvas); flex-shrink: 0; }
.rm-sortseg a { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--rm-muted) !important; white-space: nowrap; }
.rm-sortseg a:hover { color: var(--rm-ink) !important; text-decoration: none !important; }
.rm-sortseg a.is-active { background: var(--rm-surface); color: var(--rm-ink) !important; font-weight: 600; box-shadow: 0 1px 2px rgba(17, 24, 39, .08), 0 0 0 1px var(--rm-line); }
.rm-chip:focus-visible, .rm-sortseg a:focus-visible { outline: 2px solid var(--rm-teal); outline-offset: 2px; }
.rm-filter-row > .rm-search { flex: 0 1 280px; }
.rm-status-filter { display: flex; align-items: center; gap: 8px; }
.rm-status-filter .rm-select { min-width: 170px; height: 32px; font-size: 13px; }
.rm-search .ti { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--rm-faint); }
.rm-search .rm-input { padding-left: 34px; }
.rm-input, .rm-select, .rm-textarea { width: 100%; height: 36px; border: 1px solid var(--rm-line-strong); border-radius: 8px; padding: 0 12px; font-size: 14px; background: var(--rm-surface); color: var(--rm-ink); transition: border-color .12s, box-shadow .12s; }
.rm-textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.rm-select { width: auto; min-width: 140px; padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238492a6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.rm-input:focus, .rm-select:focus, .rm-textarea:focus { outline: none; border-color: var(--rm-teal); box-shadow: 0 0 0 3px rgba(0, 228, 226, .15); }
.rm-input::placeholder, .rm-textarea::placeholder { color: var(--rm-faint); }

/* ---------- Vote button ---------- */
.rm-vote { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 48px; height: 52px; flex-shrink: 0; border: 1px solid var(--rm-line-strong); border-radius: 8px; background: var(--rm-surface); color: var(--rm-ink-2); cursor: pointer; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color .12s, background .12s, color .12s; padding: 0; }
.rm-vote .ti { font-size: 15px; color: var(--rm-faint); transition: color .12s, transform .12s; }
.rm-vote:hover { border-color: var(--rm-teal); color: var(--rm-ink); }
.rm-vote:hover .ti { color: var(--rm-teal); transform: translateY(-1px); }
.rm-vote.is-voted { background: var(--rm-mint); border-color: var(--rm-teal); color: var(--rm-ink); }
.rm-vote.is-voted .ti { color: var(--rm-link); }
.rm-vote.is-loading { opacity: .55; pointer-events: none; }
.rm-vote-sm { width: 40px; height: 44px; font-size: 13px; }

/* ---------- Issue list ---------- */
.rm-list { background: var(--rm-surface); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); overflow: hidden; }
.rm-row { display: flex; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--rm-line); align-items: flex-start; transition: background .12s; }
.rm-row:first-child { border-top: 0; }
.rm-row:hover { background: var(--rm-hover); }
.rm-row-body { flex: 1; min-width: 0; }
.rm-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rm-row-title { font-weight: 600; font-size: 15px; color: var(--rm-ink) !important; overflow-wrap: anywhere; }
.rm-row-snippet { color: var(--rm-muted); margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rm-row-private { display: inline-flex; align-items: center; gap: 6px; color: var(--rm-faint); margin: 3px 0 8px; font-size: 13px; }
.rm-row-private .rm-skel { width: 180px; }
.rm-list-empty { padding: 48px 16px; text-align: center; color: var(--rm-muted); }
.rm-list-empty .ti { font-size: 28px; color: var(--rm-line-strong); display: block; margin-bottom: 8px; }

/* ---------- Skeleton (homepage style) for private details ---------- */
.rm-skel { display: inline-block; height: 8px; border-radius: 999px; background: var(--rm-skeleton); vertical-align: middle; }
.rm-private { border: 1px dashed var(--rm-line-strong); border-radius: var(--rm-radius); background: var(--rm-hover); padding: 20px; margin: 4px 0 20px; }
.rm-private-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.rm-private-lines .rm-skel { height: 10px; }
.rm-private-note { display: flex; align-items: flex-start; gap: 10px; color: var(--rm-ink-2); font-weight: 600; }
.rm-private-note .ti { font-size: 18px; color: var(--rm-faint); margin-top: 1px; }
.rm-private-note small { display: block; font-weight: 400; color: var(--rm-muted); font-size: 13px; margin-top: 2px; }
.rm-banner { display: flex; align-items: center; gap: 8px; background: var(--rm-mint); border: 1px solid var(--rm-mint-line); color: #0b5e57; border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; font-size: 13px; font-weight: 500; }

/* ---------- Kanban ---------- */
.rm-kanban { display: grid; grid-template-columns: repeat(var(--rm-cols, 3), minmax(0, 1fr)); gap: 16px; align-items: start; }
.rm-col { background: var(--rm-surface); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); overflow: hidden; }
.rm-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--rm-line); font-weight: 700; font-size: 13px; color: var(--rm-ink); }
.rm-col-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--rm-muted); background: var(--rm-canvas); border: 1px solid var(--rm-line); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.rm-cards { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 64px; background: var(--rm-canvas); }
.rm-card { display: flex; gap: 10px; background: var(--rm-surface); border: 1px solid var(--rm-line); border-radius: 8px; padding: 10px; transition: border-color .12s; }
.rm-card:hover { border-color: var(--rm-line-strong); }
.rm-card-title { font-weight: 600; color: var(--rm-ink) !important; overflow-wrap: anywhere; line-height: 1.4; }
.rm-card-meta { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--rm-muted); }
.rm-card-shipped { margin-top: 8px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.rm-col-more { display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--rm-line); }
.rm-col-switch { display: none; margin: -8px 0 16px; }
.rm-empty { color: var(--rm-faint); text-align: center; padding: 18px 8px; font-size: 13px; }

/* ---------- Detail (issue layout) ---------- */
.rm-back { display: inline-flex; align-items: center; gap: 4px; color: var(--rm-muted) !important; font-weight: 500; margin-bottom: 14px; }
.rm-back:hover { color: var(--rm-ink) !important; text-decoration: none !important; }
.rm-issue { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.rm-card-box { background: var(--rm-surface); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); }
.rm-issue-main { padding: 24px; }
.rm-issue-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.rm .rm-issue-title { font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--rm-ink); margin: 0 0 6px; overflow-wrap: anywhere; }
.rm-issue-body { font-size: 15px; line-height: 1.65; color: var(--rm-ink); margin: 0 0 20px; overflow-wrap: anywhere; }
.rm-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.rm-thumb { width: 132px; height: 96px; border-radius: 8px; border: 1px solid var(--rm-line); object-fit: cover; background: var(--rm-canvas); display: block; }
.rm-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.rm-side-box { padding: 16px; }
.rm-side-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rm-line); font-size: 13px; }
.rm-side-row:first-child { border-top: 0; padding-top: 0; }
.rm-side-label { color: var(--rm-muted); }
.rm-side-value { color: var(--rm-ink); font-weight: 600; text-align: right; }
.rm-side-actions { display: flex; flex-direction: column; gap: 8px; }
.rm .rm-section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rm-faint); margin: 28px 0 12px; }
.rm .rm-section-title::after { content: ''; flex: 1; height: 1px; background: var(--rm-line); }

/* Activity timeline */
.rm-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.rm-timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--rm-line); }
.rm-timeline li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 4px 26px; font-size: 13px; color: var(--rm-ink-2); }
.rm-timeline li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--rm-surface); border: 2px solid var(--rm-line-strong); }
.rm-timeline time { color: var(--rm-faint); white-space: nowrap; }

/* Comments */
.rm-comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rm-line); }
.rm-comment:first-of-type { border-top: 0; }
.rm-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #eef1f6; color: var(--rm-ink-2); font-size: 12px; font-weight: 700; }
.rm-comment.is-official .rm-avatar { background: linear-gradient(135deg, var(--rm-brand-a), var(--rm-brand-b)); color: var(--rm-ink); }
.rm-comment-main { flex: 1; min-width: 0; }
.rm-comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--rm-faint); margin-bottom: 2px; }
.rm-comment-author { font-weight: 700; color: var(--rm-ink); }
.rm-official { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--rm-mint); border: 1px solid var(--rm-mint-line); color: #0b5e57; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.rm-comment-body { color: var(--rm-ink); overflow-wrap: anywhere; }
.rm-comment.is-system { color: var(--rm-muted); font-size: 13px; }
.rm-comment.is-system .rm-avatar { background: transparent; border: 1px dashed var(--rm-line-strong); color: var(--rm-faint); }
.rm-replies { margin-top: 4px; }
.rm-replies .rm-comment { padding: 10px 0 0; border-top: 0; }
.rm-comment-actions { margin-top: 4px; }
.rm-compose { border: 1px solid var(--rm-line-strong); border-radius: var(--rm-radius); background: var(--rm-surface); padding: 12px; }
.rm-compose .rm-textarea { border: 0; padding: 4px 2px; box-shadow: none !important; min-height: 72px; }
.rm-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rm-line); padding-top: 10px; margin-top: 6px; }

/* ---------- Forms ---------- */
.rm-field { margin-bottom: 16px; }
.rm-label { display: block; font-weight: 600; font-size: 13px; color: var(--rm-ink); margin-bottom: 6px; }
.rm-help { font-size: 12px; color: var(--rm-muted); margin-top: 5px; display: flex; justify-content: space-between; gap: 8px; }
.rm-error { color: var(--rm-danger); font-size: 12px; margin-top: 4px; }
.rm-error:empty { display: none; }
.rm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rm-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--rm-ink-2); cursor: pointer; }
.rm-check input { margin-top: 3px; accent-color: var(--rm-ink); }
.rm-seg { display: grid; grid-template-columns: repeat(var(--rm-seg, 3), minmax(0, 1fr)); gap: 8px; }
.rm-seg label { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--rm-line-strong); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--rm-ink-2); background: var(--rm-surface); transition: border-color .12s, background .12s; }
.rm-seg label:hover { border-color: var(--rm-faint); }
.rm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rm-seg label:has(input:checked) { border-color: var(--rm-ink); background: var(--rm-hover); color: var(--rm-ink); box-shadow: inset 0 0 0 1px var(--rm-ink); }
.rm-similar { border: 1px solid var(--rm-mint-line); background: var(--rm-mint); border-radius: 8px; padding: 10px 12px; margin: -6px 0 16px; }
.rm-similar-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0b5e57; margin-bottom: 6px; }
.rm-similar-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(11, 94, 87, .12); font-size: 13px; }
.rm-similar-item:first-child { border-top: 0; }
.rm-similar-item a { flex: 1; min-width: 0; color: var(--rm-ink) !important; font-weight: 600; overflow-wrap: anywhere; }
.rm-similar-votes { display: inline-flex; align-items: center; gap: 2px; color: var(--rm-muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.rm-uploads { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-upload-slot { width: 88px; height: 68px; border: 1px dashed var(--rm-line-strong); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--rm-hover); cursor: pointer; color: var(--rm-muted); font-size: 12px; position: relative; overflow: hidden; }
.rm-upload-slot:hover { border-color: var(--rm-faint); color: var(--rm-ink-2); }
.rm-upload-slot img { width: 100%; height: 100%; object-fit: cover; }
.rm-upload-remove { position: absolute; top: 4px; right: 4px; background: rgba(26, 31, 54, .75); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
.rm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Modal ---------- */
.rm-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: flex-start; justify-content: center; background: rgba(13, 21, 48, .45); padding: 48px 16px; overflow-y: auto; }
.rm-modal.is-open { display: flex; }
.rm-modal-dialog { background: var(--rm-surface); border-radius: 12px; width: 100%; max-width: 620px; box-shadow: var(--rm-shadow-pop); color: var(--rm-ink); font-size: 14px; overflow: hidden; }
.rm-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--rm-line); }
.rm .rm-modal-title { font-weight: 800; font-size: 18px; line-height: 1.3; margin: 0; color: var(--rm-ink); }
.rm-modal-sub { color: var(--rm-muted); font-size: 13px; margin: 2px 0 0; }
.rm-modal-close { background: none; border: 0; width: 32px; height: 32px; border-radius: 8px; color: var(--rm-faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rm-modal-close:hover { background: #eef1f6; color: var(--rm-ink); }
.rm-modal-body { padding: 18px 20px; }
.rm-modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rm-line); background: var(--rm-hover); }
.rm-posting-as { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--rm-muted); font-size: 13px; }
.rm-success { text-align: center; padding: 32px 20px; }
.rm-success-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--rm-mint); border: 1px solid var(--rm-mint-line); color: var(--rm-link); margin-bottom: 12px; }
.rm-success-icon .ti { font-size: 22px; }
.rm-success-title { font-size: 17px; font-weight: 800; margin: 0 0 4px; }

/* ---------- Popover + toast ---------- */
.rm-popover { position: absolute; z-index: 9000; width: 300px; background: var(--rm-surface); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow-pop); padding: 14px; font-size: 13px; }
.rm-popover-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; color: var(--rm-ink); }
.rm-popover-row { display: flex; gap: 6px; margin: 10px 0 8px; }
.rm-toast-wrap { position: fixed; top: 88px; right: 16px; z-index: 10001; display: flex; flex-direction: column; gap: 8px; }
.rm-toast { display: flex; align-items: center; gap: 8px; background: var(--rm-ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; max-width: 340px; box-shadow: var(--rm-shadow-pop); }
.rm-toast.is-error { background: #9f1d24; }

/* ---------- Pagination ---------- */
.rm-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; color: var(--rm-muted); font-size: 13px; }

/* ---------- Changelog ---------- */
.rm-releases { position: relative; }
.rm-release { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--rm-line); }
.rm-release:first-child { border-top: 0; padding-top: 4px; }
.rm-release-date { color: var(--rm-muted); font-size: 13px; font-weight: 600; padding-top: 3px; font-variant-numeric: tabular-nums; }
.rm .rm-release-title { display: inline-block; font-size: 18px; font-weight: 800; color: var(--rm-ink) !important; margin: 0 0 6px; line-height: 1.35; }
.rm-release-snippet { color: var(--rm-ink-2); margin: 0 0 10px; }
.rm-release-body { font-size: 15px; line-height: 1.7; color: var(--rm-ink); }
.rm-release-body img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--rm-line); }
.rm-release-body h2, .rm-release-body h3 { font-size: 17px; font-weight: 800; margin: 20px 0 8px; color: var(--rm-ink); }
.rm-shipped { display: flex; gap: 6px; flex-wrap: wrap; }
.rm-shipped a { color: var(--rm-ink-2) !important; }

/* ---------- System pages ---------- */
.rm-box { max-width: 440px; margin: 32px auto; background: var(--rm-surface); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); padding: 28px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .rm-kanban { grid-template-columns: 1fr; }
  .rm-col-switch { display: flex; }
  .rm-kanban .rm-col:not(.is-current) { display: none; }
  .rm-issue { grid-template-columns: 1fr; }
  .rm-side { position: static; }
}
@media (max-width: 767px) {
  .rm { padding: 92px 0 48px; }
  .rm .rm-title { font-size: 24px; }
  .rm-header-actions { width: 100%; }
  .rm-header-actions .rm-btn-primary { flex: 1; }
  .rm-grid-2 { grid-template-columns: 1fr; }
  .rm-seg { grid-template-columns: 1fr; }
  .rm-search { max-width: none; flex-basis: 100%; }
  .rm-filter-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .rm-filter-row > .rm-search { flex-basis: auto; }
  .rm-chips { margin: 0 -16px; padding: 0 16px; }
  .rm-filter-row + .rm-filter-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .rm-status-filter { flex: 1; min-width: 0; }
  .rm-status-filter .rm-select { width: 100%; min-width: 0; padding: 0 24px 0 10px; background-position: right 8px center; }
  .rm-sortseg a { padding: 0 9px; }
  .rm-toolbar .rm-select { flex: 1; min-width: 0; font-size: 13px; padding: 0 22px 0 9px; background-position: right 7px center; }
  .rm-meta { gap: 4px 10px; }
  .rm-meta-sep { display: none; }
  .rm-row { padding: 12px; gap: 12px; }
  .rm-row-head { flex-direction: column; gap: 4px; }
  .rm-issue-main { padding: 16px; }
  .rm .rm-issue-title { font-size: 20px; }
  .rm-release { grid-template-columns: 1fr; gap: 4px; }
  .rm-modal { padding: 0; }
  .rm-modal-dialog { max-width: none; min-height: 100vh; border-radius: 0; }
  .rm-pager { justify-content: center; }
}
