/* Roadmap — phased, auditable accessibility implementation plan. Shared suite
   shell from app-chrome.css + menu.js + assistant.js; this styles the hero +
   the organisation's standard (read-only — Accounts owns it), the Roadmap tab
   (progress, phases, tool cards with three responsibility columns + sign-off),
   the My Tasks queue, the kanban board modal, and the Audit Trail. Fonts: Lexend (headings) + Mulish (body). Category/status/type conveyed
   by text + colour, never colour alone. */

:root {
  --rm-navy: #16273F; --rm-ink: #33404F; --rm-muted: #5B6675; --rm-faint: #8791A0;
  --rm-line: #EAEDF3; --rm-line-soft: #F1F4F8; --rm-red: #E8402A; --rm-blue: #2F6FE0;
  --rm-green: #1FA97A; --rm-amber: #B5762F; --rm-shadow: 0 4px 16px rgba(18,38,63,0.05);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Mulish', system-ui, sans-serif; color: var(--rm-ink); background: linear-gradient(180deg, #F6F4FB 0%, #F1F6F6 100%); }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-shell .rm-header-inner, .app-shell .rm-footer-inner { max-width: 90%; }
@keyframes rmFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rmShimmer { 0% { background-position: -450px 0; } 100% { background-position: 450px 0; } }
@keyframes rmSlideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* ---- Hero + the organisation's standard ---- */
.rm-hero { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0)); border-bottom: 1px solid var(--rm-line); }
.rm-hero-inner { max-width: 90%; margin: 0 auto; padding: 26px 32px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rm-hero-title { font-family: 'Lexend'; font-weight: 800; font-size: 28px; margin: 0 0 10px; letter-spacing: -0.5px; color: var(--rm-navy); }
.rm-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-hpill { font-family: 'Lexend'; font-weight: 600; font-size: 12.5px; color: var(--rm-muted); background: #fff; border: 1px solid var(--rm-line); border-radius: 999px; padding: 5px 12px; }
.rm-hpill-strong { color: var(--rm-navy); background: #EEF3FF; border-color: #C9DDFB; font-weight: 700; }
.rm-hpill-deadline { color: var(--rm-amber); background: #FCF6E4; border-color: #F1E7C4; font-weight: 700; }
.rm-std { flex: 0 0 auto; }
.rm-std-label { display: block; font-family: 'Lexend'; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--rm-faint); margin-bottom: 6px; }
/* Read-only: the standard belongs to the organisation and is set on the Organisation page,
   so this states it rather than offering a choice. Deliberately not styled as a control —
   no border-radius button, no chevron, nothing that invites a click. */
.rm-std-value { display: flex; flex-direction: column; gap: 2px; min-width: 240px; background: #F7F9FC; border: 1px solid var(--rm-line); border-left: 3px solid var(--rm-blue); border-radius: 10px; padding: 9px 14px; }
.rm-std-value-name { font-family: 'Lexend'; font-weight: 700; font-size: 14px; color: var(--rm-navy); }
.rm-std-value-meta { font-size: 12px; color: var(--rm-faint); }
.rm-std-value--unset { border-left-color: var(--rm-amber); }
.rm-std-value--unset .rm-std-value-name { color: var(--rm-amber); }

/* Shown instead of a plan when the organisation has no standard set. */
.rm-nostd { background: #fff; border: 1px solid var(--rm-line); border-radius: 20px; padding: 56px 32px; text-align: center; box-shadow: var(--rm-shadow); }
.rm-nostd-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 17px; background: #FCF6E4; margin-bottom: 16px; }
.rm-nostd-title { font-family: 'Lexend'; font-weight: 700; font-size: 20px; color: var(--rm-navy); margin: 0 0 8px; }
.rm-nostd-body { font-size: 14.5px; color: var(--rm-muted); line-height: 1.6; max-width: 520px; margin: 0 auto 22px; }
.rm-nostd-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rm-nostd-actions .rm-btn { text-decoration: none; display: inline-block; }
.rm-nostd-note { font-size: 12.5px; color: var(--rm-faint); margin: 18px 0 0; }

/* ---- Tabs ---- */
.rm-tabbar { background: #fff; border-bottom: 1px solid var(--rm-line); position: sticky; top: 0; z-index: 20; }
.rm-tabbar-inner { max-width: 90%; margin: 0 auto; padding: 0 32px; display: flex; gap: 26px; }
.rm-tab { appearance: none; background: none; border: none; cursor: pointer; font-family: 'Lexend'; font-weight: 600; font-size: 16px; color: var(--rm-faint); padding: 18px 2px; border-bottom: 3px solid transparent; }
.rm-tab:hover { color: var(--rm-navy); }
.rm-tab.active { font-weight: 700; color: var(--rm-navy); border-bottom-color: var(--rm-red); }
/* Open-task count on the My Tasks tab — red once anything is overdue, so the
   queue does not need opening to know it needs attention. */
.rm-tab-count { margin-left: 8px; font-family: 'Lexend'; font-weight: 700; font-size: 11.5px; color: var(--rm-muted); background: #F1F4FA; border: 1px solid #E4E9F1; border-radius: 999px; padding: 2px 8px; }
.rm-tab-count.overdue { color: #C0392B; background: #FCECEC; border-color: #F5D5D5; }

/* ---- Main ---- */
.rm-main { flex: 1; width: 100%; }
.rm-body { max-width: 90%; margin: 0 auto; padding: 26px 32px 56px; animation: rmFade .35s ease both; }
.rm-prompt { text-align: center; color: var(--rm-faint); font-size: 15px; padding: 60px 20px; }
.rm-error { max-width: 90%; margin: 32px auto; padding: 30px; text-align: center; color: #C0392B; background: #fff; border: 1px solid var(--rm-line); border-radius: 18px; }
.rm-empty-soft { background: #fff; border: 1px dashed #D5DDE8; border-radius: 18px; padding: 40px; text-align: center; color: var(--rm-muted); }
.rm-empty-soft b { display: block; font-family: 'Lexend'; font-size: 16px; color: var(--rm-navy); margin-bottom: 6px; }
.rm-card { background: #fff; border: 1px solid var(--rm-line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--rm-shadow); }
.rm-card-h { font-family: 'Lexend'; font-weight: 700; font-size: 15px; color: var(--rm-navy); margin-bottom: 14px; }
.rm-pill { display: inline-flex; align-items: center; gap: 6px; font-family: 'Lexend'; font-weight: 700; font-size: 12px; border: 1px solid; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* ---- Buttons ---- */
.rm-btn { appearance: none; cursor: pointer; font-family: 'Lexend'; font-weight: 700; font-size: 13.5px; border-radius: 11px; padding: 10px 16px; border: 1px solid transparent; }
.rm-btn-primary { background: var(--rm-red); color: #fff; }
.rm-btn-primary:hover:not(:disabled) { background: #d3381f; }
.rm-btn-primary:disabled { opacity: .5; cursor: default; }
.rm-btn-ghost { background: #fff; color: var(--rm-muted); border-color: #E4E9F1; }
.rm-btn-ghost:hover:not(:disabled) { background: #F7F9FC; }

/* ---- Progress summary ---- */
.rm-summary { display: grid; grid-template-columns: minmax(300px, 1fr) 1.5fr; gap: 20px; margin-bottom: 16px; }
.rm-donut-card { display: flex; align-items: center; gap: 24px; }
.rm-donut-wrap { position: relative; flex: 0 0 auto; width: 124px; height: 124px; }
.rm-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rm-donut-num { font-family: 'Lexend'; font-weight: 800; font-size: 26px; color: var(--rm-navy); line-height: 1; }
.rm-donut-sub { font-size: 11.5px; color: var(--rm-faint); }
.rm-donut-stats { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.rm-dstat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--rm-muted); }
.rm-dstat b { margin-left: auto; font-family: 'Lexend'; font-weight: 800; font-size: 16px; color: var(--rm-navy); }
.rm-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.rm-pbars { display: flex; flex-direction: column; gap: 12px; }
.rm-pbar-row { display: flex; align-items: center; gap: 14px; }
.rm-pbar-name { flex: 1; min-width: 0; font-family: 'Lexend'; font-weight: 600; font-size: 13.5px; color: var(--rm-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-pbar-ratio { flex: 0 0 54px; text-align: right; font-size: 12.5px; color: var(--rm-faint); }
.rm-pbar-track { flex: 0 0 160px; display: block; height: 9px; border-radius: 999px; background: #EDF0F5; overflow: hidden; }
.rm-pbar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#1FA97A,#28BFC0); }

/* ---- Legend ---- */
.rm-legend { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 12px 16px; background: #fff; border: 1px solid var(--rm-line); border-radius: 14px; }
.rm-leg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rm-muted); }
.rm-leg-dot { width: 10px; height: 10px; border-radius: 3px; }
.rm-hidedone { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; appearance: none; cursor: pointer; font-family: 'Lexend'; font-weight: 600; font-size: 13px; color: var(--rm-muted); background: none; border: none; }
.rm-hidedone-box { width: 19px; height: 19px; border-radius: 6px; border: 2px solid #CBD4E0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; }
.rm-hidedone.on .rm-hidedone-box { background: var(--rm-blue); border: none; }

/* ---- Phases ---- */
.rm-phases { display: flex; flex-direction: column; gap: 16px; }
.rm-phase { background: #fff; border: 1px solid var(--rm-line); border-radius: 18px; box-shadow: var(--rm-shadow); overflow: hidden; }
.rm-phase-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 22px; background: none; border: none; cursor: pointer; text-align: left; }
.rm-phase-head:hover { background: #FBFCFE; }
.rm-phase-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: #EEF3FF; color: var(--rm-blue); display: flex; align-items: center; justify-content: center; font-family: 'Lexend'; font-weight: 800; font-size: 15px; }
.rm-phase-num.done { background: #E7F7F1; color: var(--rm-green); }
.rm-phase-id { flex: 1; min-width: 0; }
.rm-phase-name { display: block; font-family: 'Lexend'; font-weight: 700; font-size: 16.5px; color: var(--rm-navy); }
.rm-phase-meta { display: block; font-size: 12.5px; color: var(--rm-faint); }
.rm-phase-prog { display: flex; align-items: center; gap: 10px; }
.rm-phase-pct { font-family: 'Lexend'; font-weight: 700; font-size: 13px; color: var(--rm-navy); min-width: 36px; text-align: right; }
.rm-phase-chev { flex: 0 0 auto; transition: transform .2s ease; }
.rm-phase-head[aria-expanded="true"] .rm-phase-chev { transform: rotate(180deg); }
.rm-phase-body { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 16px; animation: rmFade .25s ease both; }

/* ---- Tool cards ---- */
.rm-tool { border: 1px solid var(--rm-line); border-radius: 16px; padding: 18px 20px; background: #FCFDFE; }
.rm-tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rm-tool-tile { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.rm-tool-id { flex: 1; min-width: 0; }
.rm-tool-name { display: block; font-family: 'Lexend'; font-weight: 700; font-size: 15.5px; color: var(--rm-navy); }
.rm-tool-meta { display: block; font-size: 12px; color: var(--rm-faint); }
.rm-tool-count { flex: 0 0 auto; }
.rm-board-btn { flex: 0 0 auto; appearance: none; cursor: pointer; font-family: 'Lexend'; font-weight: 700; font-size: 12.5px; color: var(--rm-navy); background: #fff; border: 1px solid #E4E8EF; border-radius: 10px; padding: 8px 14px; }
.rm-board-btn:hover { border-color: var(--rm-navy); }
.rm-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rm-col { border: 1px solid; border-radius: 13px; padding: 14px; }
.rm-col-does { background: #E7F7F1; border-color: #CDEDE1; }
.rm-col-uses { background: #EAF1FC; border-color: #C9DDFB; }
.rm-col-must { background: #FCF3E8; border-color: #F1DEC3; }
.rm-col-h { display: flex; align-items: center; gap: 7px; font-family: 'Lexend'; font-weight: 700; font-size: 12.5px; margin-bottom: 12px; }
.rm-col-items { display: flex; flex-direction: column; gap: 10px; }
.rm-col-empty { font-size: 12.5px; color: var(--rm-faint); padding: 4px 0; }
.rm-item { display: flex; align-items: flex-start; gap: 10px; }
.rm-item.signed .rm-item-text { color: var(--rm-faint); text-decoration: line-through; }
/* Checkbox border/fill colour is set inline per column (green/blue/amber). */
.rm-check { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 2px solid #CBD4E0; background: #fff; cursor: pointer; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rm-check:focus-visible { outline: 3px solid rgba(47,111,224,0.3); outline-offset: 2px; }
.rm-auto { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.rm-item-body { flex: 1; min-width: 0; }
.rm-item-text { font-size: 13px; line-height: 1.5; color: var(--rm-ink); }
.rm-sig { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: 'Lexend'; font-weight: 600; font-size: 11px; color: var(--rm-muted); background: #F4F6FA; border-radius: 999px; padding: 3px 9px 3px 3px; }
.rm-avatar { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Lexend'; font-weight: 800; font-size: 9px; color: #fff; }
.rm-avatar-sm { width: 18px; height: 18px; font-size: 8.5px; }
/* When a profile picture is present the disc becomes the photo frame. */
.rm-avatar.has-photo { background: transparent !important; overflow: hidden; }
.rm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Kanban board modal ---- */
.rm-board-overlay { position: fixed; inset: 0; background: rgba(18,38,63,0.46); z-index: 95; animation: rmFade .2s ease; }
.rm-board { position: fixed; top: 5vh; left: 5vw; width: 90vw; height: 90vh; background: #F6F8FC; border-radius: 20px; z-index: 96; box-shadow: 0 30px 80px rgba(18,38,63,0.34); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .2s ease; overflow: hidden; }
.rm-board.open { opacity: 1; pointer-events: auto; }
.rm-board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--rm-line); }
.rm-board-id { display: flex; align-items: center; gap: 13px; }
.rm-board-name { font-family: 'Lexend'; font-weight: 700; font-size: 18px; color: var(--rm-navy); }
.rm-board-sub { font-size: 12.5px; color: var(--rm-faint); }
.rm-board-close { appearance: none; background: #F1F4F9; border: none; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; color: var(--rm-muted); }
.rm-board-body { flex: 1; display: flex; min-height: 0; }
.rm-bcols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 24px; overflow-y: auto; align-content: start; transition: all .28s cubic-bezier(.22,.61,.36,1); }
.rm-bcol { background: #EEF1F6; border: 2px solid transparent; border-radius: 14px; padding: 14px; min-height: 150px; }
.rm-bcol.over { border: 2px dashed var(--rm-blue); background: #EAF1FC; }
.rm-bcol-h { display: flex; align-items: center; justify-content: space-between; font-family: 'Lexend'; font-weight: 700; font-size: 13px; color: var(--rm-navy); margin-bottom: 12px; }
.rm-bcol-n { font-weight: 700; font-size: 12px; color: var(--rm-faint); background: #fff; border-radius: 999px; padding: 1px 9px; }
.rm-bcol-body { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.rm-drop { text-align: center; font-size: 12.5px; color: var(--rm-faint); padding: 22px 0; border: 1.5px dashed #CBD4E0; border-radius: 10px; }
.rm-bcard { position: relative; background: #fff; border: 1px solid var(--rm-line); border-left: 4px solid; border-radius: 11px; padding: 12px 14px; cursor: grab; box-shadow: 0 2px 6px rgba(18,38,63,0.05); }
.rm-bcard.locked { cursor: default; opacity: 0.92; }
.rm-bcard.dragging { opacity: 0.5; }
.rm-bcard.active { box-shadow: 0 0 0 2px var(--rm-blue); }
.rm-bcard.raised { z-index: 5; }
.rm-bcard-tag { font-family: 'Lexend'; font-weight: 800; font-size: 9.5px; letter-spacing: 0.5px; margin-bottom: 6px; }
.rm-bcard-text { font-size: 13px; line-height: 1.5; color: var(--rm-ink); }
.rm-bcard-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rm-bcard-cmt { font-size: 11.5px; color: var(--rm-faint); }
.rm-assign-wrap { position: relative; margin-left: auto; }
.rm-assign { display: inline-flex; align-items: center; gap: 6px; appearance: none; cursor: pointer; font-family: 'Lexend'; font-weight: 600; font-size: 11.5px; color: var(--rm-muted); background: #fff; border: 1px dashed #CBD4E0; border-radius: 999px; padding: 3px 10px 3px 6px; }
.rm-assign.has { border-style: solid; border-color: var(--rm-line); }
.rm-assign-plus { font-weight: 800; }
.rm-assign-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; width: 230px; background: #fff; border: 1px solid #E7EBF1; border-radius: 12px; box-shadow: 0 16px 40px rgba(18,38,63,0.2); padding: 6px; }
.rm-assign-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; appearance: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 9px; }
.rm-assign-opt:hover { background: #F4F6FA; }
.rm-assign-opt.sel { background: #EEF3FF; }
.rm-assign-opt-txt { flex: 1; display: flex; flex-direction: column; }
.rm-assign-opt-txt b { font-family: 'Lexend'; font-weight: 700; font-size: 12.5px; color: var(--rm-navy); }
.rm-assign-opt-txt span { font-size: 11px; color: var(--rm-faint); }
.rm-tick { color: var(--rm-blue); font-weight: 800; }
.rm-assign-remove { width: 100%; text-align: left; appearance: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 9px; font-size: 12.5px; color: #C0392B; margin-top: 2px; border-top: 1px solid var(--rm-line-soft); }
.rm-assign-remove:hover { background: #FCECEC; }

/* ---- Task detail panel ---- */
.rm-task-panel { flex-basis: 0; width: 0; max-width: 44vw; overflow: hidden; background: #fff; border-left: 1px solid var(--rm-line); transition: width .28s cubic-bezier(.22,.61,.36,1), flex-basis .28s cubic-bezier(.22,.61,.36,1); }
.rm-task-panel.open { width: 400px; flex-basis: 400px; padding: 20px 22px; overflow-y: auto; }
.rm-tp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; animation: rmSlideIn .18s ease both; }
.rm-tp-close { appearance: none; background: #F1F4F9; border: none; cursor: pointer; width: 30px; height: 30px; border-radius: 9px; color: var(--rm-muted); }
.rm-tp-text { font-family: 'Lexend'; font-weight: 600; font-size: 15px; color: var(--rm-navy); line-height: 1.45; margin-bottom: 12px; }
.rm-tp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rm-tp-section { padding-top: 16px; border-top: 1px solid var(--rm-line-soft); margin-top: 16px; animation: rmSlideIn .22s ease both; }
.rm-tp-label { font-family: 'Lexend'; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--rm-faint); margin-bottom: 10px; }
.rm-tp-team { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-tp-avatar { appearance: none; background: none; border: none; cursor: pointer; padding: 2px; border-radius: 50%; opacity: 0.55; }
.rm-tp-avatar .rm-avatar { width: 30px; height: 30px; font-size: 11px; }
.rm-tp-avatar.on { opacity: 1; box-shadow: 0 0 0 2px var(--rm-navy); }
.rm-tp-assignee { font-size: 13px; color: var(--rm-navy); margin-top: 10px; font-weight: 600; font-family: 'Lexend'; }
.rm-tp-assignee.muted { color: var(--rm-faint); font-weight: 500; }
.rm-tp-comments { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.rm-cmt { display: flex; gap: 10px; }
.rm-cmt-body { flex: 1; min-width: 0; }
.rm-cmt-top { display: flex; align-items: baseline; gap: 8px; }
.rm-cmt-top b { font-family: 'Lexend'; font-weight: 700; font-size: 12.5px; color: var(--rm-navy); }
.rm-cmt-top span { font-size: 11px; color: var(--rm-faint); }
.rm-cmt-text { font-size: 13px; line-height: 1.5; color: var(--rm-ink); margin-top: 3px; }
.rm-composer { display: flex; flex-direction: column; gap: 8px; }
.rm-composer-input { width: 100%; min-height: 70px; resize: vertical; padding: 10px 13px; font-family: 'Mulish'; font-size: 13.5px; color: var(--rm-navy); background: #F6F8FC; border: 1.5px solid #E4E9F1; border-radius: 11px; outline: none; }
.rm-composer-input:focus { border-color: var(--rm-blue); background: #fff; }
.rm-composer .rm-btn { align-self: flex-end; }

/* ---- Audit trail ---- */
.rm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rm-head h2 { font-family: 'Lexend'; font-weight: 700; font-size: 22px; color: var(--rm-navy); margin: 0 0 4px; }
.rm-head-sub { font-size: 13.5px; color: var(--rm-faint); }
.rm-head-actions { display: flex; gap: 9px; }
.rm-trail { background: #fff; border: 1px solid var(--rm-line); border-radius: 18px; box-shadow: var(--rm-shadow); overflow: hidden; }
.rm-thead, .rm-trow { display: grid; grid-template-columns: minmax(0, 2.2fr) 110px minmax(0, 1.1fr) minmax(0, 1.2fr) 120px; gap: 16px; align-items: center; }
.rm-thead { padding: 13px 24px; background: #FAFBFD; border-bottom: 1px solid var(--rm-line); font-family: 'Lexend'; font-weight: 700; font-size: 11.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--rm-faint); }
.rm-trow { padding: 14px 24px; border-bottom: 1px solid var(--rm-line-soft); }
.rm-trow:last-child { border-bottom: none; }
.rm-trow.reopened { opacity: 0.7; }
.rm-tr-action { min-width: 0; }
.rm-tr-text { display: block; font-family: 'Lexend'; font-weight: 600; font-size: 13.5px; color: var(--rm-navy); }
.rm-tr-phase { display: block; font-size: 12px; color: var(--rm-faint); }
.rm-tr-tool { font-size: 13px; color: var(--rm-muted); }
.rm-tr-by { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--rm-navy); }
.rm-tr-date { font-size: 12.5px; color: var(--rm-muted); }
.rm-trail-skel { padding: 40px; text-align: center; color: var(--rm-faint); }

/* ---- My Tasks ---- */
.rm-mine-subrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rm-mine-donenote { font-family: 'Lexend'; font-weight: 700; font-size: 11.5px; color: #14795A; background: #E7F7F1; border: 1px solid #CDEDE1; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.rm-mine-chips { display: inline-flex; background: #F1F4F9; border: 1px solid #E5E9F0; border-radius: 13px; padding: 5px; gap: 5px; flex-wrap: wrap; }
.rm-mine-chip { display: flex; align-items: center; gap: 8px; appearance: none; background: none; border: 1px solid transparent; border-radius: 9px; padding: 8px 14px; cursor: pointer; font-family: 'Lexend'; font-weight: 600; font-size: 13.5px; color: var(--rm-muted); }
.rm-mine-chip:hover { color: var(--rm-navy); }
.rm-mine-chip.on { background: #fff; border-color: #DFE5EE; font-weight: 700; color: var(--rm-navy); box-shadow: 0 1px 3px rgba(18,38,63,0.1); }
.rm-mine-chip-n { font-family: 'Lexend'; font-weight: 700; font-size: 11px; color: var(--rm-faint); }

.rm-mine-group { margin-bottom: 22px; }
.rm-mine-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rm-mine-group-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.rm-mine-group-title { font-family: 'Lexend'; font-weight: 700; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }
.rm-mine-group-n { font-family: 'Lexend'; font-weight: 700; font-size: 12px; }
.rm-mine-group-rule { flex: 1; height: 1px; background: #EFF2F7; }
.rm-mine-list { display: flex; flex-direction: column; gap: 10px; }

.rm-mine-card { display: flex; align-items: flex-start; gap: 13px; background: #fff; border: 1px solid var(--rm-line); border-radius: 15px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(18,38,63,0.04); }
.rm-mine-card.overdue { border-color: #F5D5D5; }
.rm-mine-box { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; appearance: none; background: #fff; border: 1.6px solid #CBD4E0; font-size: 12px; font-weight: 700; color: #fff; line-height: 1; }
.rm-mine-box:hover { border-color: var(--rm-green); }
.rm-mine-box.on { background: var(--rm-green); border-color: var(--rm-green); }
.rm-mine-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rm-mine-tags { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rm-mine-sev { font-size: 10.5px; }
.rm-mine-sevdot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.rm-mine-due { display: inline-flex; align-items: center; font-family: 'Lexend'; font-weight: 700; font-size: 10.5px; color: var(--rm-ink); background: #F7F9FC; border: 1px solid #E4E9F1; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.rm-mine-due.overdue { color: #C0392B; background: #FCECEC; border-color: #F5D5D5; }
.rm-mine-due.done { color: #14795A; background: #E7F7F1; border-color: #CDEDE1; }
.rm-mine-due.undated { color: #5F6A79; }
.rm-mine-title { font-family: 'Lexend'; font-weight: 700; font-size: 15px; color: var(--rm-navy); }
.rm-mine-title.done { color: #5F6A79; text-decoration: line-through; }
.rm-mine-context { font-size: 12.5px; color: #5F6A79; line-height: 1.5; }
.rm-mine-prog { display: flex; align-items: center; gap: 10px; max-width: 280px; margin-top: 2px; }
.rm-mine-prog-track { flex: 1; min-width: 60px; height: 7px; border-radius: 999px; background: #EDF0F5; overflow: hidden; }
.rm-mine-prog-fill { display: block; height: 100%; border-radius: 999px; background: #E8763A; }
.rm-mine-prog-pct { flex: 0 0 auto; font-family: 'Lexend'; font-weight: 700; font-size: 11.5px; color: #B5462F; }
.rm-mine-cta { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; appearance: none; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 11px; padding: 9px 15px; cursor: pointer; text-decoration: none; font-family: 'Lexend'; font-weight: 600; font-size: 13px; color: #3B4757; white-space: nowrap; }
.rm-mine-cta:hover { border-color: var(--rm-navy); color: var(--rm-navy); }

.rm-mine-empty { background: #fff; border: 1px solid var(--rm-line); border-radius: 20px; padding: 64px 24px; text-align: center; }
.rm-mine-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: #E7F7F1; margin-bottom: 14px; }
.rm-mine-empty-title { font-family: 'Lexend'; font-weight: 700; font-size: 18px; color: var(--rm-navy); margin-bottom: 6px; }
.rm-mine-empty-body { font-size: 14.5px; color: #5F6A79; max-width: 420px; margin: 0 auto; }

/* ---- Skeleton + toast ---- */
.rm-skel { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 50%, #eef1f6 75%); background-size: 900px 100%; animation: rmShimmer 1.4s infinite; border: none; height: 150px; }
.rm-save-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--rm-navy); color: #fff; font-family: 'Lexend'; font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 999px; z-index: 130; box-shadow: 0 8px 24px rgba(18,38,63,0.28); }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .rm-summary { grid-template-columns: 1fr; }
  .rm-pbar-track { flex-basis: 100px; }
}
@media (max-width: 900px) {
  .rm-mine-card { flex-wrap: wrap; }
  .rm-mine-cta { margin-left: 35px; }
  .rm-cols { grid-template-columns: 1fr; }
  .rm-bcols { grid-template-columns: 1fr; }
  .rm-task-panel.open { width: 100%; flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 640px) {
  .rm-hero-inner, .rm-body, .rm-tabbar-inner { padding-left: 18px; padding-right: 18px; }
  .rm-thead { display: none; }
  .rm-trow { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-board, .rm-bcols, .rm-task-panel, .rm-phase-chev, .rm-tp-head, .rm-tp-section { transition: none; animation: none; }
}

/* ==================== Path to compliance ==================== */
.rm-hero-right { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.rm-path-btn {
  display: inline-flex; align-items: center; gap: 10px; appearance: none; cursor: pointer;
  background: linear-gradient(135deg, #16273F, #22395C); border: none; border-radius: 14px;
  padding: 15px 22px; font-family: 'Lexend'; font-weight: 700; font-size: 15px; color: #fff;
  box-shadow: 0 8px 22px rgba(22,39,63,0.32); transition: box-shadow .18s ease, transform .18s ease;
}
.rm-path-btn:hover { box-shadow: 0 10px 28px rgba(22,39,63,0.44); transform: translateY(-1px); }
.rm-path-btn:focus-visible { outline: 3px solid rgba(255,155,135,0.5); outline-offset: 2px; }

.rm-journey { position: fixed; inset: 0; z-index: 80; display: flex; padding: 24px; }
.rm-journey[hidden] { display: none; }
.rm-j-backdrop { position: absolute; inset: 0; background: rgba(14,24,38,0.62); backdrop-filter: blur(6px); }
.rm-j-panel { position: relative; margin: auto; width: 90%; height: 90%; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #1C2E48; box-shadow: 0 50px 120px rgba(8,16,28,0.6); animation: rmFade .34s cubic-bezier(.22,.61,.36,1) both; }
.rm-j-atmos { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(900px 520px at 8% -10%, rgba(122,90,240,0.30), transparent 60%),
  radial-gradient(760px 460px at 92% 8%, rgba(232,64,42,0.22), transparent 62%),
  radial-gradient(900px 620px at 50% 118%, rgba(31,169,122,0.24), transparent 60%); }
.rm-j-dotgrid { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 30px 30px; }

.rm-j-head { position: relative; flex: 0 0 auto; display: flex; align-items: flex-start; gap: 22px; padding: 34px 40px 26px; }
.rm-j-headcopy { flex: 1; min-width: 0; }
.rm-j-title { font-family: 'Lexend'; font-weight: 800; font-size: 44px; line-height: 1.02; letter-spacing: -1px; margin: 0; color: #fff; }
.rm-j-title span { background: linear-gradient(100deg, #FF9B87, #F3C24B 45%, #28BFC0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.rm-j-intro { max-width: 760px; font-size: 16px; line-height: 1.6; color: #C2CEDC; margin: 14px 0 0; }
.rm-j-headright { flex: 0 0 auto; display: flex; align-items: center; gap: 26px; }
.rm-j-stat { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.rm-j-stat-v { font-family: 'Lexend'; font-weight: 800; font-size: 30px; color: #fff; line-height: 1; }
.rm-j-stat-l { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #A2B3C7; }
.rm-j-close { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rm-j-close:hover { background: rgba(255,255,255,0.18); }

.rm-j-path { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 14px 40px 34px; }
.rm-j-path:focus-visible { outline: 2px solid rgba(255,255,255,0.35); outline-offset: -6px; border-radius: 18px; }
.rm-j-row { display: flex; align-items: stretch; min-width: min-content; }
.rm-j-station { display: flex; align-items: stretch; flex: 0 0 auto; }
.rm-j-card { position: relative; flex: 0 0 auto; width: 322px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(165deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)); border: 1px solid rgba(255,255,255,0.13); border-radius: 24px; padding: 26px 24px 24px; backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(8,16,28,0.34); }
.rm-j-glow { position: absolute; top: -70px; right: -60px; width: 210px; height: 210px; border-radius: 50%; filter: blur(18px); pointer-events: none; }
.rm-j-ghost { position: absolute; right: 16px; bottom: 4px; font-family: 'Lexend'; font-weight: 800; font-size: 108px; line-height: 1; color: rgba(255,255,255,0.055); pointer-events: none; }
.rm-j-cardhead { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.rm-j-ring { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px; padding: 2px; display: flex; align-items: center; justify-content: center; }
.rm-j-ring-inner { width: 100%; height: 100%; border-radius: 16px; background: #253956; display: flex; align-items: center; justify-content: center; }
.rm-j-stagecol { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rm-j-pill { display: inline-flex; align-items: center; align-self: flex-start; font-family: 'Lexend'; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(9,17,29,0.58); border: 1px solid; border-radius: 999px; padding: 5px 11px; }
.rm-j-when { font-size: 12px; color: #A2B3C7; }
.rm-j-name { position: relative; font-family: 'Lexend'; font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.3px; color: #fff; margin: 0 0 11px; }
.rm-j-desc { position: relative; font-size: 14px; line-height: 1.62; color: #C2CEDC; margin: 0 0 20px; }
.rm-j-tools-wrap { position: relative; margin-top: auto; }
.rm-j-tools-label { font-family: 'Lexend'; font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #9DAFC4; margin-bottom: 11px; }
.rm-j-tools { display: flex; flex-direction: column; gap: 8px; }
.rm-j-chip { position: relative; overflow: hidden; display: flex; align-items: center; gap: 9px; background: rgba(9,17,29,0.42); border: 1px solid rgba(255,255,255,0.12); border-radius: 11px; padding: 9px 12px; }
/* Completed-actions fill — the chip doubles as a progress bar. Rendered as a
   translucent tint of the tool's accent, clipped to the chip's rounded corners. */
.rm-j-chip-fill { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; opacity: 0.28; transition: width .3s ease; pointer-events: none; }
.rm-j-chip-dot { position: relative; z-index: 1; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.rm-j-chip-name { position: relative; z-index: 1; flex: 1; min-width: 0; font-family: 'Lexend'; font-weight: 600; font-size: 12.5px; color: #DCE4EE; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-j-chip-count { position: relative; z-index: 1; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #C7D4E4; font-family: 'Lexend'; }
.rm-j-outcome { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.10); font-family: 'Lexend'; font-weight: 600; font-size: 11.5px; color: #C2CEDC; }
.rm-j-outcome-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; }
.rm-j-connector { flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rm-j-line { width: 100%; height: 2px; border-radius: 2px; }
.rm-j-chev { margin-top: -2px; }

.rm-j-foot { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 18px 40px 26px; border-top: 1px solid rgba(255,255,255,0.09); }
.rm-j-foot-label { font-family: 'Lexend'; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #9DAFC4; }
.rm-j-leg { display: flex; align-items: center; gap: 9px; }
.rm-j-leg-dot { width: 9px; height: 9px; border-radius: 50%; }
.rm-j-leg-txt { font-size: 13px; color: #C2CEDC; }
.rm-j-leg-txt b { color: #fff; font-family: 'Lexend'; font-weight: 600; }
.rm-j-spacer { flex: 1; }
.rm-j-hint { font-size: 12.5px; color: #9DAFC4; }

@media (max-width: 900px) {
  .rm-j-head { flex-direction: column; gap: 16px; }
  .rm-j-title { font-size: 32px; }
  .rm-j-headright { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .rm-j-panel { animation: none; } }
