/* Report screen (js/screens/report.js): summary card, "do this now", story cards, compact Directives / Path.
   Colours come from the app.css tokens; the UI kit frames (skin.js) dress .rp-sum and chips when the kit is present. */
:root { --rp-good: #7FD38A; --rp-bad: #E0705A; --rp-cyan: #6FD3C8; }
.rp-art { flex: none; }
.rp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.rp-count { margin-left: auto; min-width: 22px; padding: 0 6px; text-align: center; font-size: 12px; line-height: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); }

/* summary */
.rp-sum { background: linear-gradient(180deg, #1B2430, var(--surface-1)); border: 1px solid #34465A; padding: 14px; margin-bottom: 12px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.rp-sum-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rp-sum-head h2 { margin: 0; font-size: 18px; }
.rp-sum.quiet .rp-sum-head { margin-bottom: 0; }
.rp-gains { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 12px; }
.rp-gain { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: rgba(13,16,21,.55); border: 1px solid var(--line); min-width: 0; }
.rp-gain-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.rp-gain-l { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-gain b { font-size: 19px; }
.rp-gain.up b { color: var(--rp-good); }
.rp-gain.down b { color: var(--text-2); }
.rp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rp-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; background: rgba(13,16,21,.55); border: 1px solid var(--line); text-align: center; min-width: 0; }
.rp-tile b { font-size: 20px; line-height: 1.1; }
.rp-tile span { font-size: 11px; color: var(--text-2); line-height: 1.2; }
.rp-tile .rp-tile-sub { font-size: 10px; color: var(--text-1); }
.rp-tile.zero { opacity: .45; }
.rp-tile.bad b { color: var(--rp-bad); }

/* do this now */
.rp-todo { margin-bottom: 14px; }
.rp-do { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 6px; background: var(--surface-1); border: 1px solid var(--line); border-left: 3px solid var(--rp-cyan); }
.rp-do.hot { border-left-color: var(--signal-warn); background: #241F14; }
.rp-do .rp-body { flex: 1; min-width: 0; line-height: 1.3; }
.rp-do .rp-body b { display: block; font-size: 15px; }
.rp-go { flex: none; min-height: 44px; padding: 0 14px; font-size: 14px; }

/* feed */
.rp-feedwrap { margin-bottom: 14px; }
.rp-seg { display: flex; gap: 4px; align-items: center; margin-bottom: 8px; }
.rp-seg button { min-height: 36px; padding: 0 12px; background: var(--surface-1); border: 1px solid var(--line); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--font-head); font-weight: 600; }
.rp-seg button.on { color: var(--bg-void); background: var(--text-1); border-color: var(--text-1); }
.rp-seg button.on .rp-count { color: var(--bg-void); background: rgba(13,16,21,.12); border-color: transparent; }
.rp-seg .rp-seen { margin-left: auto; color: var(--text-1); border-color: var(--rp-cyan); }
.rp-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.rp-filters::-webkit-scrollbar { display: none; }
.rp-filter { flex: none; min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 13px; cursor: pointer; }
.rp-filter.on { background: var(--rp-cyan); border-color: var(--rp-cyan); color: var(--bg-void); font-weight: 600; }
.rp-group { margin-bottom: 12px; }
.rp-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin-bottom: 6px; background: var(--surface-1); border: 1px solid var(--line); cursor: pointer; }
.rp-card.minor { opacity: .78; padding: 8px 10px; }
.rp-card.lost { border-color: #5A2A22; }
.rp-vis { flex: none; width: 44px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.rp-body { flex: 1; min-width: 0; }
.rp-line { font-size: 14.5px; line-height: 1.4; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; }
.rp-ago { font-size: 12px; color: var(--text-2); margin-right: 2px; }
.rp-times { font-size: 12px; color: var(--rp-cyan); }
.rp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.rp-chip b { font-size: 13px; }
.rp-chip-l { color: var(--text-2); font-size: 11px; }
.rp-chip.good b { color: var(--rp-good); }
.rp-chip.bad b { color: var(--rp-bad); }
.rp-chip.lv { padding: 1px 6px; color: var(--rp-cyan); }
.rp-stack { position: relative; display: inline-block; }
.rp-badge-ic { position: absolute; right: -6px; bottom: -4px; background: var(--bg-void); border: 1px solid var(--line); border-radius: 50%; padding: 1px; display: flex; }
.rp-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; font-family: var(--font-head); font-weight: 600; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.rp-badge.win { background: #173226; border-color: #2E7A50; color: var(--rp-good); }
.rp-badge.lose { background: #3A1A16; border-color: #8A3A2C; color: var(--rp-bad); }

/* battle card */
.rp-battle { flex-direction: column; gap: 6px; align-items: stretch; border-color: #3A4A5E; background: linear-gradient(180deg, #1A202A, var(--surface-1)); }
.rp-vs { display: flex; align-items: center; gap: 8px; }
.rp-side { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; font-size: 13px; }
.rp-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-vs-x { font-family: var(--font-head); font-weight: 600; color: var(--text-2); font-size: 12px; }
.rp-vs .rp-badge { margin-left: auto; font-size: 15px; padding: 4px 12px; }
.rp-loss { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.rp-loss-l { font-size: 12px; color: var(--text-2); min-width: 64px; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rp-foot .rep-watch { margin-left: auto; }

/* compact Directives + Path */
.rp-minis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 700px) { .rp-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-mini { background: var(--surface-1); border: 1px solid var(--line); padding: 10px 12px; }
.rp-mini-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rp-mini-head h3 { margin: 0; flex: 1; min-width: 0; }
.rp-mini .bar { margin: 4px 0; }
.rp-mini .bar > i { background: linear-gradient(90deg, var(--rp-cyan), var(--text-1)); }
.rp-dir { list-style: none; margin: 0; padding: 0; }
.rp-dir li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rp-dir li:last-child { border-bottom: 0; }
.rp-dir li .rp-dir-t { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13.5px; }
.rp-dir li .bar { margin: 4px 0 0; }
.rp-dir li.done { opacity: .6; }
.rp-next { font-size: 13.5px; margin: 6px 0 8px; }
