# Wingman GLASS — design source of truth
Written 5 Nov 2026 from live code (site/*.css, site/fv3.js, site/app.html). Any future page must use this file.
Draft classes: [wm-glass-kit.draft.css](wm-glass-kit.draft.css) (UNUSED, not linked from any page).

## Blur budget (site/wm-glass.css)
Real `backdrop-filter` is kept ONLY on the top bar (header.topbar/.wmtop), the pill (#wmC, .wcpill, .wcglass, .wmpill, .wmknob, nav.tabbar, nav.lgp, .sheet.mp) and sheets (.sheet.glass, .fs-spot, .wmf-sh, .wx-menu, .wds-sm, .ipop, .sug, .wm-tcard — capped at blur(20px) saturate(170%)). Everything else is fake glass: tint, gradient and inner border only, blur off. fv3.js restores blur for the aerodrome filter box/chips with 7-id rules. The recipes below list the blur, but on most surfaces it is switched off live.

## Theme values (midnight / amethyst / day-white / day-beige)
Theme selection in code: `html[data-theme=night|day][data-pal=...]`.
| var | midnight | amethyst | day-white | day-beige |
|---|---|---|---|---|
| --bg | `#000` | `#0B0716` | `#F2F2F5` | `#F4EEE3` |
| --bg2 | `#000` | `#1A0F33` | `#E9E6F0` | `#E9DFCC` |
| --tx | `#F5F5F7` | `#F7F4FF` | `#111114` | `#1C1814` |
| --tx2 | `rgba(245,245,247,.62)` | `rgba(236,228,255,.64)` | `rgba(17,17,20,.62)` | `rgba(28,24,20,.62)` |
| --gl | `rgba(28,28,30,.55)` | `rgba(40,26,74,.48)` | `rgba(255,255,255,.62)` | `rgba(255,251,243,.66)` |
| --gl2 | `rgba(255,255,255,.06)` | `rgba(200,170,255,.07)` | `rgba(255,255,255,.5)` | `rgba(255,250,240,.55)` |
| --ln | `rgba(255,255,255,.10)` | `rgba(210,190,255,.13)` | `rgba(0,0,0,.07)` | `rgba(60,40,10,.08)` |
| --hl | `rgba(255,255,255,.16)` | `rgba(230,215,255,.20)` | `rgba(255,255,255,.95)` | `rgba(255,253,248,.95)` |
| --sh | `0 20px 50px rgba(0,0,0,.6)` | `0 20px 50px rgba(5,0,20,.6)` | `0 14px 40px rgba(30,20,60,.10)` | `0 14px 40px rgba(70,50,20,.10)` |
| --pill | `rgba(30,32,40,.52)` | `rgba(46,26,84,.5)` | `rgba(250,251,255,.62)` | `rgba(252,245,233,.68)` |
| --rimT | `rgba(255,255,255,.34)` | `rgba(235,220,255,.38)` | `#fff` | `#fff` |
| --rimB | `rgba(255,255,255,.08)` | `rgba(235,220,255,.08)` | `rgba(255,255,255,.55)` | `rgba(255,250,240,.6)` |
| --hair | `rgba(255,255,255,.10)` | `rgba(220,200,255,.12)` | `rgba(20,30,70,.10)` | `rgba(90,70,35,.10)` |
| --sh1 | `rgba(0,0,0,.35)` | `rgba(5,0,20,.4)` | `rgba(20,30,70,.06)` | `rgba(80,60,25,.06)` |
| --sh2 | `rgba(0,0,0,.65)` | `rgba(5,0,20,.7)` | `rgba(20,30,70,.16)` | `rgba(80,60,25,.16)` |
| --sheet | `rgba(30,32,40,.4173)` | `rgba(46,26,84,.4016)` | `rgba(250,251,255,.4957)` | `rgba(252,245,233,.5427)` |
| --tint | `rgba(10,132,255,.10)` | `rgba(196,170,255,.075)` | `rgba(0,25,201,.05)` | `rgba(176,120,40,.05)` |
| --fln | `rgba(255,255,255,.1)` | `rgba(210,190,255,.13)` | `rgba(0,0,0,.07)` | `rgba(60,40,10,.08)` |
| --fhi | `rgba(255,255,255,.1)` | `rgba(230,215,255,.2)` | `rgba(255,255,255,.9)` | `rgba(255,253,248,.95)` |
| --fsh | `rgba(0,0,0,.35)` | `rgba(5,0,20,.6)` | `rgba(0,0,0,.35)` | `rgba(70,50,20,.35)` |
| --solid | `#1E2028` | `#2E1A54` | `#FAFBFF` | `#FCF5E9` |

Status colours (all themes): `--go:#22C55E` `--cau:#FF8A00` `--nogo:#F80F3B`. Ease `cubic-bezier(.32,.72,0,1)`.

## The 7 glass styles (site class -> draft class)
1 .wcglass -> .g-pill · 2 .sheet.mp -> .g-sheet · 3 .wmf-sh/.c.wx -> .g-panel · 4 .tiles -> .g-status · 5 .tile.sel -> .g-tinted · 6 .wm-tcard -> .g-popover · 7 wds chip/.wmf-show -> .g-chip

### 1. Pill glass
- Where used: Bottom nav pill (.wcglass) + top bar buttons
- Recipe: `background:var(--pill);backdrop-filter:blur(26px) saturate(180%);border-radius:30px;box-shadow:inset 0 0 0 .5px var(--hair),inset 0 .5px 0 var(--rimT),inset 0 -.5px 0 var(--rimB),inset 0 -10px 18px -14px rgba(0,0,0,.18),0 1px 2px var(--sh1),0 8px 18px -8px var(--sh1),0 24px 48px -18px var(--sh2)`

### 2. Menu sheet glass
- Where used: More menu sheet (.sheet.mp)
- Recipe: `background:var(--sheet);backdrop-filter:blur(30px) saturate(190%);border-radius:30px;box-shadow:var(--rimT) 0 .5px 0 0 inset,var(--hair) 0 0 0 .5px inset,var(--sh1) 0 2px 6px 0,var(--sh2) 0 28px 56px -18px;background-image:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,0) 35%)`

### 3. Filter panel glass
- Where used: ATO/DFE filter panel (.wmf-sh) + open ATO/DFE cards (.c.wx)
- Recipe: `background:linear-gradient(160deg,var(--tint),rgba(0,0,0,0) 60%),var(--gl);backdrop-filter:blur(30px) saturate(1.6);border-radius:30px;box-shadow:var(--fhi) 0 1px 0 0 inset,var(--fln) 0 0 0 1px inset,var(--fsh) 0 20px 40px -24px`

### 4. Status box glass
- Where used: Aerodrome GO/CAUTION/NO-GO tiles box (.tiles)
- Recipe: `background:var(--gl);backdrop-filter:blur(30px) saturate(160%);border-radius:28px;box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln),var(--sh)`

### 5. GO/NO-GO tinted glass
- Where used: Selected aerodrome tile (.tile.sel) - shown in GO green
- Recipe: `background:var(--gl);backdrop-filter:blur(30px) saturate(160%);border-radius:28px;box-shadow:inset 0 0 0 1.5px #22C55E,inset 0 0 22px color-mix(in srgb,#22C55E 30%,transparent),var(--sh)`

### 6. Popover glass
- Where used: Time card popover (.wm-tcard)
- Recipe: `background:color-mix(in srgb,var(--solid) 84%,transparent);backdrop-filter:blur(30px) saturate(180%);border-radius:22px;box-shadow:inset 0 0 0 .5px var(--hair),inset 0 .5px 0 var(--rimT),0 24px 48px -18px var(--sh2)`

### 7. Chip glass
- Where used: Small chips / Show button (wds chip, .wmf-show)
- Recipe: `background:var(--gl2);backdrop-filter:blur(14px) saturate(160%);border-radius:24px;box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln)`

## PILL STANDARD — aerodrome filter condition pills (GO / CAUTION / NO-GO) -> .g-cond
MT's choice (t1970u): every pill and toggle on the status page uses this glass. Outer box = 3 Filter panel glass (to confirm).
Source: site/fv3.js `.wmf.wmf-aero .chips .c` and `.c.on[data-v=go|caution|nogo]`.
- Off: `background:var(--gl2); box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 1px var(--tx3),0 8px 24px -14px rgba(0,0,0,.35); backdrop-filter:blur(18px) saturate(1.6)`
- On (status): `--cc` = --go/--cau/--nogo; `background:linear-gradient(color-mix(in srgb,var(--cc) 20%,transparent),same),var(--gl2); box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 1px var(--cc),0 0 16px -4px color-mix(in srgb,var(--cc) 55%,transparent); color:var(--tx)`; small label colour var(--cc)
- On (non-status chips VFR/IFR etc.): day `background:rgba(255,255,255,.96); box-shadow:0 1px 2px rgba(0,0,0,.10),0 3px 8px -2px rgba(0,0,0,.14)`; night `background:rgba(255,255,255,.16); box-shadow:inset 0 .5px 0 rgba(255,255,255,.18),0 1px 2px rgba(0,0,0,.35),0 3px 8px -2px rgba(0,0,0,.4)`
- Press `scale(.94)`, .25s transform / .3s colour. Zero-count chips opacity .38. Show pill: padding 8px 14px, radius 999px, 600 14.5px.

## The TWO toggle styles
### Toggle A — sliding segmented switch `.sw` -> .g-seg
Where: app.html, calculator.html, library.html, brief.html, status_demo.html (More menu theme switch and other two/three-way choices).
- Track: `padding:3px;border-radius:14px;background:var(--gl2);box-shadow:inset 0 0 0 .5px var(--ln)`
- Button off: `color:var(--tx2);font:600 13px/1 -apple-system;height:32px;border-radius:11px` · on: `color:var(--tx)`
- Thumb `i`: `background:var(--gl)` (day themes `#fff`); `box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln),0 3px 10px rgba(0,0,0,.18)`; slides `.5s var(--ease)`
- Night palette overrides (site/wst/wq.css) on `.sw button.on`: black & purple `linear-gradient(135deg,#F7F8FA,#D5D9E0 45%,#AEB4BE 70%,#EEF0F4)` text #1B1D22; purple icon-set d `linear-gradient(135deg,#FAF8FF,#DCD4F2 45%,#B5A9D6 72%,#F2EEFF)` text #1E1830; swap-purple `#F4CCFF→#E79BFF→#C774EE` text #22102E; swap-black `#8FA4FF→#5A78FF→#2F52F0` text #FFF.
### Toggle B — on/off switch `.sw` (site/profile-preview/pp.css) -> .g-switch
- Off: 44x26, radius 13, `background:var(--ln)`; knob 20px white, `box-shadow:0 2px 6px rgba(0,0,0,.25)`, left 3px
- On: `background:var(--go)` (#22C55E), knob left 21px, transition .2s

## Fonts (self-hosted: site/fonts/wm-fonts.css; Nippo embedded in calculator.html)
| Family | Weights | Where / details |
|---|---|---|
| Sora | 600 (+inherit) | Headings, search results `.fs-go b` (letter-spacing -.2px), `.fs-kbd` (.02em); most-used family |
| General Sans | 500/600/700 | Labels/titles on glass (often `'General Sans',Sora,sans-serif`) |
| Satoshi | 400/500/700 | Body text on some pages |
| Clash Display | 600 | Display titles |
| Cabinet Grotesk | 700 | Display/brand |
| JetBrains Mono | 500/600 | Numbers: time card `.t-big` 600 30px/1, letter-spacing -.02em, tabular-nums; `.t-sub` 500 11px |
| Nippo | 500/700 | CALCULATOR NUMBER FONT: `.icao,.icx,.nbar b` 700, letter-spacing .04em; badges 500 12px .3em uppercase / 30px .02em |
| -apple-system (SF) | 500/600 | Text on glass: toggles/pills 600 13px/1, steppers 500 16px, Show pill 600 14.5px |
| Nunito, SF Mono, Inter | — | Minor/legacy spots |

## Pictures
- Glass 1-7 per theme: pictures/midnight_390.png, amethyst_390.png, day-white_390.png, day-beige_390.png, all_themes.png
- Condition pills, both toggles (off/on), font samples: pictures/samples_toggles_fonts_<theme>.png (rendered on Linux, so -apple-system shows a fallback font)

## Theme 1–4 box wallpapers
See [THEMES.md](THEMES.md) and [theme-wallpapers.draft.css](theme-wallpapers.draft.css) (backlog item 6).
