/* --------------------------------------------------------------------------- shell/shell.css — the shell's OWN sheet, imported by `Shell.tsx` the way `NavExtras.tsx` imports `navExtras.css`. A shell-local override lives here rather than in `index.css`, where it would have a global blast radius. ⭐⭐ WAVE 53 · T35 (owner instruction 26, contract C4) — A DATABASE IS NOT A FOLDER. Owner, verbatim: *"The icon for a database should be standardized, including the one in the View rail. It shouldn't be filled with purple. The icon on the home page is the correct one."* ⛔ THE PURPLE IS CSS, NOT AN SVG FILL, AND THAT IS THE WHOLE DIAGNOSIS. `styles/wave45/data-applications.css` declares `.cg-folder-mark path { fill:var(--lp-purple-deep); stroke:var(--lp-purple-deep); }` — right for a folder (W45-T14/C6: one folder, one meaning), and wrong for a database, because `customer-grid/iconShapes.ts::DatabaseMark` renders under that same `cg-folder-mark` class. A class rule OUTRANKS a presentation attribute, so the mark's own `fill="none"` loses and the cylinder ships filled. That sheet is imported by `CustomerGrid.tsx`, so the repaint lands wherever the grid chunk has loaded — which is why Home looks right (it paints before that chunk arrives) and the View rail looks wrong. ⛔ THE FOLDER RULE IS NOT THE BUG AND MUST NOT BE TOUCHED: `verify_folders.py` and `verify_w45_data_applications.py` both assert it verbatim. The defect is that a DATABASE mark wears a FOLDER class, so the fix is a wrapper the database mark alone sits inside. ⚠ TWO CLASSES, ON PURPOSE — this wins on SPECIFICITY (0,2,1 against the folder rule's 0,1,1) and therefore does not depend on import order, which matters because the sheet it overrides ships in a LAZY chunk whose arrival time is not something this file can pin. ⚠ AND THE STROKE IS RESTATED, not merely the fill: dropping `fill` alone would leave the cylinder outlined in `--lp-purple-deep`, which is still not the mark Home draws. `--lp-muted` is `#6B7280`, which is exactly the `LP_MUTED` that `iconShapes.ts` paints `DATABASE_MARK_TONE = "neutral"` with — so the rail's cylinder and the Home tile's end up the same grey outline, which is what instruction 26 asked for. Guarded by `verify_icons.py` (gate `icons`), whose T35 leg reads this rule by name — a scan for `fill=` inside the SVG is green on exactly the broken screen the owner reported. --------------------------------------------------------------------------- */ .cg-db-mark .cg-folder-mark path, .home-db-glyph .cg-folder-mark path { fill: none; stroke: var(--lp-muted); } /* ⛔ THE HOME LEG IS NOT DECORATION, AND IT IS THE PART A SCREENSHOT OF A COLD LOAD CANNOT SHOW. Home draws the SAME `DatabaseMark` inside `.home-tile-chip.home-db-glyph`, and it looks correct today only because `data-applications.css` ships in the GRID chunk, which has not arrived yet on a first paint of Home. Open Data once and go back and the Home tiles fill purple too — the owner's "the icon on the home page is the correct one" is true of the page they were looking at, not of the page after a round trip. One rule, both surfaces, no dependence on which chunk loaded first. ⚠ It reads a `home-*` class from the shell's sheet deliberately: the alternative is a third copy of this override in `styles/wave50/rail.css`, which is the drift instruction 26 is complaining about, one layer down. */ /* The wrapper is a LAYOUT no-op by construction. `.cg-fold-toggle` lays its children out as flex items, and `index.css` gives the mark itself `flex: 0 0 auto`; putting a span around it would otherwise hand the row a shrinkable, baseline-aligned box in its place and nudge the label. These three declarations hand the span exactly what the svg had. */ .cg-db-mark { display: inline-flex; align-items: center; flex: 0 0 auto; }