/* Mocks 13 and 13b, Home (research/pages/dashboard.py). Layout only: the stage, tiles, cards, bars and facts are research.css's,
   wealth-money.css's and markets-now.css's own; the chart is chart.py lines() on the one chart's dark surface (system.css tokens). */
#rp.hm .hm-more{margin:var(--s4) 0 0}
#rp.hm .hm-more a{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-weight:600;color:var(--accent);text-decoration:none}
#rp.hm .hm-btns{display:flex;flex-wrap:wrap;gap:12px;margin:var(--s4) 0 0}
/* Your gain over time: the dark surface, then the line under it, then the chips */
#rp.hm .hm-surf{background:var(--chart-bg);border-radius:var(--r-lg);padding:12px 12px 6px;margin:var(--s3) 0 6px}
#rp.hm .hm-plot{height:240px;position:relative}
@media (max-width:640px){#rp.hm .hm-plot{height:200px}}
/* the axis labels and the ▲ glyph as dashboard.css draws them for Purchasing Power's chart (.ds .axl, .ds svg.tri) */
#rp.hm svg.tri{width:.62em;height:.62em;fill:currentColor;vertical-align:.02em;margin-right:.28em;flex:none}
#rp.hm .hm-surf .axl{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden;color:var(--chart-ink)}
#rp.hm .hm-surf .axg{position:absolute;left:0;right:0;height:0;border-top:1px solid color-mix(in srgb,currentColor 22%,transparent)}
#rp.hm .hm-surf .axb{border-top:1.5px dashed color-mix(in srgb,currentColor 75%,transparent)}
#rp.hm .hm-surf .axv{position:absolute;left:6px;transform:translateY(-100%);font-size:var(--t-xs);line-height:1.5;font-weight:500;padding:0 3px;white-space:nowrap;border-radius:var(--r-sm);background:color-mix(in srgb,var(--chart-bg) 78%,transparent);color:var(--chart-ink)}
#rp.hm .hm-surf .axlast{position:absolute;right:4px;transform:translateY(-50%);font-size:var(--t-xs);line-height:1.6;font-weight:600;border-radius:var(--r-sm);padding:0 5px}
#rp.hm .hm-surf .axbl{color:var(--chart-line)}
#rp.hm .hm-surf .axlast{background:var(--chart-line);color:var(--chart-bg)}
#rp.hm .hm-cap{color:var(--muted);font-size:var(--t-xs);margin:var(--s3) 0 0;max-width:var(--measure)}
/* Your week: one row a holding, its link at the end */
#rp.hm .hm-week{list-style:none;margin:var(--s3) 0 0;padding:0}
#rp.hm .hm-week li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:4px 12px;align-items:start;padding:10px 0;border-top:1px solid var(--line)}
#rp.hm .hm-week li:last-child{border-bottom:1px solid var(--line)}
#rp.hm .hm-i{display:inline-flex;justify-content:center;padding-top:3px;color:var(--muted)}
#rp.hm .hm-i .mv{font-size:var(--t-xs)}
#rp.hm .hm-i .cond[data-c=up]{color:var(--up)}#rp.hm .hm-i .cond[data-c=down]{color:var(--down)}#rp.hm .hm-i .cond[data-c=sale]{color:var(--pull)}#rp.hm .hm-i .cond[data-c=below]{color:var(--below)}
#rp.hm .hm-week a{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--accent);text-decoration:none;white-space:nowrap}
#rp.hm .hm-mk{margin-top:var(--s4)}
#rp.hm .hm-strip{margin:var(--s4) 0 0}  /* U-2: the private strip under Your stack, Your week's rows */
/* Look something up: one row, the box and the button */
#rp.hm .hm-find{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:var(--s3) 0 0}
#rp.hm .hm-find input{flex:1 1 240px;min-width:0;min-height:48px;border:0;border-bottom:1px solid var(--line-strong);background:none;color:var(--ink);font:inherit;font-size:var(--t-lg);padding:0}
#rp.hm .hm-find input:focus-visible{outline:2px solid var(--s-focus);outline-offset:4px;border-radius:var(--r-sm)}
#rp.hm .chartcredit{font-size:var(--t-xs);color:var(--muted);margin:0}
/* Work order 15 (mock 68's bottom row): the Today card, Your markets' tiles and What changed. The bar and its counts are Zone
   Watch's own (zone_watch.BAR_STYLE); the tiles row is My Wealth's; the small chart is the lists' (.spark). */
#rp.hm .wm-stage{position:relative}
#rp.hm .hm-open{color:inherit;text-decoration:none}
#rp.hm .hm-open::after{content:"";position:absolute;inset:0}   /* the whole card opens Zone Watch (or My Wealth) */
#rp.hm .wm-stage .zl-bar{margin:var(--s4) 0 var(--s2)}
#rp.hm .hm-row{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:var(--s3);margin:var(--s4) 0 0;padding:var(--s3) 0 0;border-top:1px solid var(--line);font-size:var(--t-xs);color:var(--muted)}
#rp.hm .hm-row p{margin:0}#rp.hm .hm-row b{color:var(--ink)}
#rp.hm .hm-btn{flex:none;background:transparent;border-color:rgb(255 255 255/.32);color:var(--ink)}
#rp.hm>.jump.tiles{margin:var(--s4) 0 0}
/* Your markets: two across on a phone, three on a tablet, six on a wide screen */
#rp.hm .hm-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3)}
@media (min-width:600px){#rp.hm .hm-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1180px){#rp.hm .hm-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}}
#rp.hm .hm-tile{display:flex;flex-direction:column;gap:4px;min-width:0;padding:var(--s3);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel);color:var(--ink);text-decoration:none;line-height:1.3}
#rp.hm .hm-tile:hover{background:var(--hover)}
#rp.hm .hm-tn{font-weight:600;font-size:var(--t-base);overflow-wrap:anywhere}
#rp.hm .hm-z{display:flex;align-items:center;gap:6px;font-size:var(--t-xs);color:var(--muted)}
#rp.hm .hm-z i{flex:none;width:10px;height:10px;border-radius:50%}  /* WO29: Home's approved small zone dots (option A) */
#rp.hm .hm-z i.green{background:var(--zone-value)}#rp.hm .hm-z i.amber{background:var(--zone-sale)}#rp.hm .hm-z i.off{background:var(--zone-outside)}
#rp.hm .hm-p{font-weight:700;font-size:var(--t-lg);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#rp.hm .hm-old{display:block;margin-top:-4px;color:var(--muted);font-size:var(--t-xs);line-height:1.2}   /* auditor 7: an older close says its day */
#rp.hm .hm-tile .spark{width:100%;height:auto;margin:4px 0 0}
#rp.hm .hm-tile .spark path{stroke-width:1.5;vector-effect:non-scaling-stroke}
#rp.hm .hm-tile.rise .spark path{stroke:var(--c-up)}#rp.hm .hm-tile.rise .spark circle{fill:var(--c-up)}
#rp.hm .hm-tile.fall .spark path{stroke:var(--c-down)}#rp.hm .hm-tile.fall .spark circle{fill:var(--c-down)}
#rp.hm .hm-tile .spark path.fill{stroke:none}
#rp.hm .hm-tile.rise .spark path.fill{fill:color-mix(in srgb,var(--c-up) 16%,transparent)}
#rp.hm .hm-tile.fall .spark path.fill{fill:color-mix(in srgb,var(--c-down) 16%,transparent)}
#rp.hm .hm-y{display:flex;justify-content:space-between;align-items:baseline;gap:4px;font-size:var(--t-xs)}
#rp.hm .hm-y small{color:var(--muted);font-size:var(--t-xs)}#rp.hm .hm-y b{font-variant-numeric:tabular-nums;white-space:nowrap}
#rp.hm .hm-y b.up{color:var(--up)}#rp.hm .hm-y b.down{color:var(--down)}
#rp.hm .hm-w{display:flex;align-items:flex-start;gap:8px;margin:6px 0 0;padding:8px 0 0;border-top:1px solid var(--line);font-size:var(--t-xs)}
#rp.hm .hm-w b{display:block;font-weight:600}#rp.hm .hm-w small{display:block;color:var(--muted);font-size:var(--t-xs)}
#rp.hm .hm-w.grey b{color:var(--muted);font-weight:500}
#rp.hm .hm-wi{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:var(--r-sm);background:var(--inset);color:var(--muted)}
#rp.hm .hm-wi.up{color:var(--c-up);background:color-mix(in srgb,var(--c-up) 14%,var(--panel))}
#rp.hm .hm-wi.down{color:var(--c-down);background:color-mix(in srgb,var(--c-down) 14%,var(--panel))}
#rp.hm .hm-wi.none{background:none}
#rp.hm .hm-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px var(--s3);margin:var(--s3) 0 0}
#rp.hm .hm-foot a{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-weight:600;color:var(--accent);text-decoration:none}
#rp.hm .hm-foot span{color:var(--muted);font-size:var(--t-xs)}
/* What changed: one row each, the icon in a small tinted square, the date on the right */
#rp.hm .hm-ch{list-style:none;margin:0;padding:0}
#rp.hm .hm-ch li{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:var(--s3);align-items:center;padding:10px 0;border-top:1px solid var(--line);font-size:var(--t-base);line-height:1.35}
#rp.hm .hm-ch li:last-child{border-bottom:1px solid var(--line)}
#rp.hm .hm-ci{width:32px;height:32px;display:grid;place-items:center;border-radius:var(--r-sm);background:var(--inset);color:var(--muted)}
#rp.hm .hm-ci.in-green{background:var(--zone-value-soft);color:var(--zone-value-ink)}
#rp.hm .hm-ci.in-amber{background:var(--zone-sale-soft);color:var(--zone-sale-ink)}
#rp.hm .hm-ci.engine,#rp.hm .hm-ci.wave{background:color-mix(in srgb,#F59E0B 18%,var(--panel));color:var(--ink)}
#rp.hm .hm-ci.fix{background:var(--warn-soft);color:var(--warn)}
#rp.hm .hm-ct b{font-weight:600}
#rp.hm .hm-cd{color:var(--muted);font-size:var(--t-xs);white-space:nowrap}
