/* Genesis in the defxn home redesign's grammar (owner, 2026-10-23: "the genesis site has branding
   that does not fit with the defxn mockup design"; flux/defxn/docs/home-redesign/kit.css and
   home-mockup.html). Loaded after css/genesis.css (and css/learn.css on a learn page), so these
   rules win. One home for:
     - the brand: the DEFXN word mark with its product line, mono metadata spaced wide, square
       corners, the one lime action with its cut corner, quiet links on a faint rule
     - the header (.top) and footer (.foot) of every Genesis page
     - the app: every screen a view in one place (js/genesis-views.js); the 3D fixed behind them
     - the motion between views: the old words wipe up and out, the new ones wipe up into place
       once most of the camera's flight is flown. Nothing fades and nothing reloads. */

/* ---------- the page ---------- */
/* No background here: the ground is the direction's, as on fxn-core-site (css/genesis.css says where). */
[data-dx-product="genesis"] body.g-body { height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.g-skip { position: absolute; left: 12px; top: -60px; z-index: 90; padding: var(--sp-4) var(--sp-4); background: hsl(var(--accent)); color: hsl(var(--action-ink)); font: 600 var(--fs-tertiary)/1 var(--font-body); }
.g-skip:focus { top: 10px; }
.mono { font-family: var(--font-meta); text-transform: uppercase; letter-spacing: .24em; }

/* ---------- header: the kit's bar (2026-11-25) ----------
   The page's own header (.top, its menus, its network dot and theme button) was dead since the kit's shell took the bar (2026-10-24) and is gone; the
   bar is the kit's .dx-bar, dressed by vendor/defxn/defxn-direction.shell.draft.css. The network label is the shell's one pill
   (js/genesis-bar.js); Genesis adds nothing to the bar. */

/* ---------- footer (every inner Genesis page): the core site's footer (2026-11-25) ----------
   The kit's footer as fxn-core-site shows it: the deepest teal from edge to edge with a hairline on top (the direction's border image),
   its words on the page's 1280 column. Row one: the learn pages (renderFooter's links), the address, Motion. Row two: where Genesis sits
   in the family, in one muted line. Superseded: the full-width glass bar with its own gutters, whose padding the direction's footer rule
   outranked, so its first words were cut at the window's left edge. */
:root[data-theme="defxn-teal"] body.g-body .dx-foot:not([data-dx-mode="home"]) {
  position: relative; z-index: 20; flex: none; margin-block: 0; /* its width and place: the kit's column */
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 26px 18px; align-content: center; align-items: center; gap: 0 var(--sp-5); block-size: 52px; padding: 0;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* 52px, the bar's own height: the links over the family line at the left, the address and Motion over both rows at the right. */
:root[data-theme="defxn-teal"] body.g-body .dx-foot > :is(.dx-foot__end, .g-motion) { grid-row: 1 / span 2; }
:root[data-theme="defxn-teal"] body.g-body .dx-foot > .g-origin__flow { grid-column: 1; grid-row: 2; }
@media (max-width: 980px) {
  :root[data-theme="defxn-teal"] body.g-body .dx-foot:not([data-dx-mode="home"]) { display: flex; flex-wrap: wrap; block-size: auto; min-block-size: 52px; padding: var(--sp-2) 0; }
}
:root[data-theme="defxn-teal"] body.g-body .dx-foot > .dx-foot__links { order: 1; flex: 1 1 auto; }
:root[data-theme="defxn-teal"] body.g-body .dx-foot > .dx-foot__end { order: 2; }
:root[data-theme="defxn-teal"] body.g-body .dx-foot > .g-motion { order: 3; margin: 0; }
:root[data-theme="defxn-teal"] body.g-body .dx-foot > .g-origin__flow {
  order: 4; flex: 1 1 100%; margin: 0; font: 400 var(--fs-tertiary)/1.4 var(--font-sans); letter-spacing: 0; text-transform: none; color: hsl(var(--text-muted));
}
:root[data-theme="defxn-teal"] body.g-body .dx-foot > .g-origin__flow .dx-link { display: inline; min-height: 0; color: hsl(var(--text-strong)); }

/* ---------- the brand's controls ---------- */
/* (2026-11-25: .cta and .more are gone; the drawer and the locked step take the kit's .dx-btn and the deck's .gd-link.) */
/* Superseded 2026-11-25: the lime cut-corner solid action and the squared controls of 2026-10-23 are gone. Every button and
   field is the kit's own (.dx-), as on fxn-core-site; cards and tabs are Genesis's clean card (css/genesis-home.css, CLEAN CARD). */

/* ---------- the 3D and its dimming ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene > canvas { display: block; width: 100%; height: 100%; }
.scene .g-scene__tags { z-index: 6; }
.scrim { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scrim i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--g-ease, cubic-bezier(.22,.7,.18,1)); }
.scrim .s-page { background: radial-gradient(ellipse 46% 34% at 12% 8%, hsl(var(--canvas) / .9), hsl(var(--canvas) / 0) 100%), linear-gradient(90deg, hsl(var(--canvas) / 0) 40%, hsl(var(--canvas) / .7) 62%, hsl(var(--canvas) / .9) 100%), linear-gradient(0deg, hsl(var(--canvas) / .9) 0, hsl(var(--canvas) / 0) 28%); }
body[data-view="page"] .scrim .s-page, body[data-view="schedule"] .scrim .s-page { opacity: 1; }
/* the schedule: a high shot over the supply ring, dimmed under the timeline, clear at the top */
body[data-view="schedule"] .scrim .s-page { background: linear-gradient(180deg, hsl(var(--canvas) / .55) 0, hsl(var(--canvas) / .8) 30%, hsl(var(--canvas) / .9) 60%); }

/* ---------- the app: views in one place ---------- */
[data-dx-product="genesis"] #main.g-app, .g-app { position: relative; z-index: 1; flex: 1 1 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); max-width: none; width: 100%; margin: 0; padding: 0; }
.g-app > .view { grid-area: 1 / 1; min-width: 0; min-height: 0; height: 100%; visibility: hidden; pointer-events: none; }
.g-app > .view.on, .g-app > .view.out { visibility: visible; }
/* A view's title takes focus after a move (js/genesis-views.js, landFocus): it is a landmark, not a control. */
.g-app > .view [tabindex="-1"]:focus { outline: none; }
.g-app > .view.on { pointer-events: auto; }
/* Words that rise: below their place and clipped until their view is on; out, they wipe up and
   leave fast, so no strip of a word stays while the camera moves. */
.rise { transform: translateY(16px); clip-path: inset(0 0 100% 0); transition: transform .62s var(--g-ease, cubic-bezier(.22,.7,.18,1)), clip-path .62s var(--g-ease, cubic-bezier(.22,.7,.18,1)); }
.view.on .rise { transform: none; clip-path: inset(-24px -60px -24px -60px); transition-duration: var(--rd, .62s); transition-delay: calc(var(--d, .6s) + var(--i, 0) * 45ms); }
.view.out .rise { transform: translateY(-22px); clip-path: inset(0 0 100% 0); transition-duration: .32s; transition-delay: calc(var(--i, 0) * 18ms); }
body.first .view.on .rise { --d: .12s; }
/* the sheet and the rail open from their own edge, not from below */
.view .rail.rise, .view .sheet-slot > .g-act.rise { transform: translateX(48px); clip-path: inset(0 0 0 100%); }
.view.on .rail.rise, .view.on .sheet-slot > .g-act.rise { transform: none; clip-path: inset(0 0 0 0); }
.view.out .rail.rise, .view.out .sheet-slot > .g-act.rise { transform: translateX(48px); clip-path: inset(0 0 0 100%); }
/* a new choice in the same view: its words wipe in again */
@keyframes g-reveal { from { transform: translateY(12px); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(-24px -60px); } }
.rise.swap { animation: g-reveal .6s var(--g-ease, cubic-bezier(.22,.7,.18,1)) both; animation-delay: calc(var(--i, 0) * 45ms + var(--sw, .1s)); }
/* A leaving view drops its swap: the animation's held end state outranks the leave transition, so after
   a part-to-part move the old head stayed open and the next view's head rose over it (audit round 5). */
.view.out .rise.swap { animation: none; }
@media (prefers-reduced-motion: reduce) { .rise, .view.on .rise, .view.out .rise { transition: none; } .rise.swap { animation: none; } }
html[data-motion="reduced"] .rise { transition: none !important; }
/* the old card and drawer motions give way to the wipe */
.g-app .g-act[data-size="open"], .g-app .g-drawer:not([hidden]) { animation: none !important; }

/* ---------- the eyebrow (a learn page's head) ----------
   The old hero home's rules (.view.hero and its lead, copy, title, rail, tiles and steps list) were removed on 2026-11-25 with the view. */
.g-app .g-eyebrow { display: flex; align-items: center; gap: var(--sp-5); margin: 0; font: 500 var(--fs-tertiary)/1.2 var(--font-meta); letter-spacing: .24em; text-transform: uppercase; color: hsl(var(--text)); }
.g-app .g-eyebrow i { width: 10px; height: 10px; border: 2px solid hsl(var(--text-faint)); flex: none; }
.g-app .g-eyebrow .dash { width: 54px; height: 1px; background: hsl(var(--text-faint)); }
.g-app .g-eyebrow__num { color: hsl(var(--signal)); letter-spacing: .06em; }
/* the legend of the split: square rows */
.g-app .g-split { border-radius: 2px; background: hsl(var(--canvas) / .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.g-app .g-split__icon { border-radius: 2px; }
.g-app .g-safe-row { border-radius: 0; border-left: 2px solid transparent; }
.g-app .g-safe-row:hover, .g-app .g-safe-row[data-hover], .g-app .g-safe-row[data-live] { border-left-color: hsl(var(--signal)); }
.g-app .g-share__track, .g-app .g-share__fill { rx: 3px; }

/* ---------- the inner page ---------- */
.view.page[data-view="page"] {
  --sheet: clamp(440px, 40vw, 640px); --pad: clamp(var(--sp-6), 3.6vw, var(--sp-7));
  display: grid; grid-template-columns: minmax(0, 1fr) var(--sheet); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: clamp(var(--sp-5), 2.6vw, var(--sp-7));
  padding: clamp(var(--sp-5), 3vh, var(--sp-6)) var(--pad) clamp(var(--sp-4), 2vh, var(--sp-5));
}
.page-top { grid-column: 1; grid-row: 1; display: grid; gap: var(--sp-4); max-width: 36em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); font: 400 var(--fs-tertiary)/1.3 var(--font-body); }
.crumbs .back { display: inline-flex; align-items: center; gap: var(--sp-3); color: hsl(var(--text-strong)); text-decoration: none; }
.crumbs .back svg { width: 14px; height: 12px; transform: scaleX(-1); }
.crumbs .back:hover { color: hsl(var(--reference)); }
.crumbs .path { font: 500 var(--fs-tertiary)/1.3 var(--font-meta); letter-spacing: .2em; text-transform: uppercase; color: hsl(var(--signal)); }
.page-title { margin: 0; font: 700 var(--fs-primary)/1.1 var(--font-head); letter-spacing: -.04em; color: hsl(var(--text-strong)); text-shadow: 0 0 18px hsl(var(--canvas)); }
.page-lede { margin: 0; font: 400 var(--fs-secondary)/1.55 var(--font-body); color: hsl(var(--text)); text-shadow: 0 0 14px hsl(var(--canvas)); }
.view.page .stage { grid-column: 1; grid-row: 2; min-height: 0; }
.turns { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: var(--sp-5); justify-self: center; }
.turns[hidden] { display: none; }
.turn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid hsl(var(--border-default)); color: hsl(var(--text-strong)); background: hsl(var(--canvas) / .5); }
.turn svg { width: 15px; height: 13px; }
.turn:hover { border-color: hsl(var(--reference)); color: hsl(var(--reference)); }
.turn[hidden] { visibility: hidden; display: grid; }
.turn-count { font: 500 var(--fs-tertiary)/1 var(--font-meta); letter-spacing: .14em; color: hsl(var(--text-muted)); min-width: 5em; text-align: center; }
.sheet-slot { grid-column: 2; grid-row: 1 / -1; min-height: 0; display: flex; }
/* the sheet: the step card or a drawer, dark glass with a thin light rim */
.g-app .sheet-slot > .g-act {
  position: relative; inset: auto; width: 100%; height: auto; max-height: none; flex: 1 1 auto; display: flex; flex-direction: column;
  padding: 0 clamp(var(--sp-5), 1.8vw, var(--sp-6)) var(--sp-5); border-radius: 0; border: 1px solid hsl(var(--border-default)); background: hsl(var(--canvas) / .82);
  box-shadow: inset 0 1px 0 hsl(var(--text-strong) / .06), 0 40px 80px -50px hsl(var(--theme-shadow));
  -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15);
}
.g-app .sheet-slot > .g-act > .g-step { flex: 1 1 auto; display: grid !important; grid-template-columns: minmax(0, 1fr) !important; align-content: start; padding: var(--sp-5) var(--sp-1) var(--sp-5) 0; overflow: auto; }
.g-app .sheet-slot > .g-act > .g-step:not([data-active]) { display: none !important; }
.g-app .sheet-slot > .g-act > .g-step::before { content: none !important; }
.g-app .sheet-slot > .g-act > .g-step > * { display: revert; }
.g-app .sheet-slot > .g-act > .g-step > .g-more, .g-app .sheet-slot > .g-act > .g-step > .g-rest-go { display: none !important; }
/* the page's own head names the step; the sheet keeps the form */
.g-app .sheet-slot > .g-act > .g-step > :is(.dx-h2, .g-step__lede), .g-app .sheet-slot > .g-act > .g-step > .g-step__head > .dx-h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-app .sheet-slot > .g-act .g-act__size { display: none; }
.g-app .sheet-slot > .g-act > .g-act__top { flex: none; }
/* (2026-11-25: the drawers are pages, laid out in css/genesis-home.css, "THE DRAWER PAGES"; the release schedule is a deck page there.) */
body[data-page="chain"] .g-app .g-drawer { display: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  [data-dx-product="genesis"] body.g-body { height: auto; min-height: 100dvh; overflow: auto; }
  .g-app { display: block; }
  .g-app > .view:not(.on) { display: none; }
  .view.page[data-view="page"] { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5); }
  .view.page .stage { height: 240px; flex: none; }
  .sheet-slot { display: block; }
  /* An inner page's 3D stands in the top half, above its sheet: shaded only where the sheet starts. */
  .scrim .s-page { background: linear-gradient(0deg, hsl(var(--canvas) / .92) 0, hsl(var(--canvas) / .6) 32%, hsl(var(--canvas) / .1) 58%, hsl(var(--canvas) / 0) 100%); }
}

/* The app clips its own sides: a sheet or the rail sliding out never widens the page. */
[data-dx-product="genesis"] #main.g-app { overflow: clip; }

/* The record's words in the middle of the ring on an inner page (the home's disc, smaller); on a
   part's page the part's name sits under its ring. */
.view.page .stage { position: relative; display: grid; place-items: center; }
.stage-label { display: grid; justify-items: center; gap: var(--sp-1); text-align: center; pointer-events: none; container-type: inline-size; width: clamp(120px, 14vw, 190px); }
.stage-label .g-disc__mark { width: 30cqi; height: 30cqi; margin-bottom: 4cqi; }
.stage-label b { font: 800 var(--fs-secondary)/1.05 var(--font-head); text-transform: uppercase; letter-spacing: .01em; color: hsl(var(--text-strong)); text-shadow: 0 0 12px hsl(var(--canvas)); }
.stage-label span:not(.g-disc__mark):not(.dx-mark) { font: 500 var(--fs-tertiary)/1.25 var(--font-body); color: hsl(var(--text-strong)); text-shadow: 0 0 10px hsl(var(--canvas)); white-space: nowrap; }
.stage-label #stageState { color: hsl(var(--text-muted)); }
.stage-label[data-mode="part"] { align-self: end; margin-bottom: 6%; width: auto; }
.stage-label[data-mode="part"] .g-disc__mark { display: none; }
.stage-label[data-mode="part"] b { font: 500 var(--fs-tertiary)/1.3 var(--font-meta); letter-spacing: .22em; text-transform: uppercase; }
.stage-label[data-mode="part"] span { font-size: var(--fs-tertiary) !important; color: hsl(var(--signal)) !important; }

/* A part's drawer: its facts, its rule, where it stands, and where to read more (restyled as a drawer in css/genesis-inner.css). */
.g-partsheet { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6) clamp(var(--sp-5), 1.8vw, var(--sp-6)); }
/* Its paint, only where no mech frame draws one (2026-11-25, "Mech only in popups, at most 2"): the part drawer (#partSheet) wears the
   kit's .mx-card frame, whose rules weigh nothing (:where), so any paint here would hide it. */
.g-partsheet:not(.mx-card) { border: 1px solid hsl(var(--border-default)); background: hsl(var(--canvas) / .82); -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15); box-shadow: inset 0 1px 0 hsl(var(--text-strong) / .06); }
.g-partsheet[hidden] { display: none; }
.g-partsheet__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid hsl(var(--border-default)); border-bottom: 1px solid hsl(var(--border-default)); }
.g-partsheet__facts > div { display: grid; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) var(--sp-4) 0; border-bottom: 1px solid hsl(var(--border-subtle)); }
.g-partsheet__facts > div:nth-child(odd) { border-right: 1px solid hsl(var(--border-subtle)); }
.g-partsheet__facts > div:nth-child(even) { padding-left: var(--sp-5); }
.g-partsheet__facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.g-partsheet__facts dt { font: 500 var(--fs-tertiary)/1.2 var(--font-meta); letter-spacing: .2em; text-transform: uppercase; color: hsl(var(--text-muted)); }
.g-partsheet__facts dd { margin: 0; font: 600 var(--fs-secondary)/1.15 var(--font-meta); letter-spacing: -.02em; color: hsl(var(--text-strong)); }
.g-partsheet__block { display: grid; gap: var(--sp-3); }
.dx-page h2.g-partsheet__label, .g-partsheet__label { margin: 0; font: 500 var(--fs-tertiary)/1.2 var(--font-meta); letter-spacing: .2em; text-transform: uppercase; color: hsl(var(--signal)); }
.g-partsheet__rule { margin: 0; font: 600 var(--fs-secondary)/1.45 var(--font-body); color: hsl(var(--text-strong)); }
.g-partsheet__note, .g-partsheet__now { margin: 0; font: 400 var(--fs-secondary)/1.55 var(--font-body); color: hsl(var(--text)); }
.g-partsheet__acts { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid hsl(var(--border-default)); }

/* The record's disc and the stage's words leave with their view: they close to the centre as the camera starts to fly, and
   open again as the ring lands round them, so the words never sit off their ring. */
.view.page .cs-disc { clip-path: circle(0 at 50% 50%); transition: clip-path .32s var(--g-ease, cubic-bezier(.22,.7,.18,1)); }
.view.page.on .cs-disc { clip-path: circle(75% at 50% 50%); transition-duration: .62s; transition-delay: var(--d, .6s); }
body.first .view.page.on .cs-disc { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .view.page .cs-disc { transition: none; } }
/* The stage's record words do the same on an inner page. */
.stage-label { clip-path: circle(0 at 50% 50%); transition: clip-path .32s var(--g-ease, cubic-bezier(.22,.7,.18,1)); }
.view.on .stage-label { clip-path: circle(80% at 50% 50%); transition-duration: .62s; transition-delay: var(--d, .6s); }

/* ---------- a learn page, as a view ----------
   The frame, the head, the page list, the cards and the tabs are css/genesis-learn-view.css's (2026-11-25). Here: the body's motion only. */
.learn-body:focus { outline: none; }
.learn-page { display: grid; gap: var(--sp-5); align-content: start; max-width: 1280px; margin: 0; padding: 0; }
.learn-page[hidden] { display: none; }
/* the page body arrives from the side of its chapter and leaves the other way: no gap, no fade */
.learn-page { transition: transform .5s var(--g-ease, cubic-bezier(.22,.7,.18,1)), clip-path .5s var(--g-ease, cubic-bezier(.22,.7,.18,1)); clip-path: inset(-40px -40px -40px -40px); }
.learn-page[data-enter="next"] { transform: translateX(48px); clip-path: inset(0 0 0 100%); transition: none; }
.learn-page[data-enter="back"] { transform: translateX(-48px); clip-path: inset(0 100% 0 0); transition: none; }
.learn-page[data-enter="up"] { transform: translateY(24px); clip-path: inset(0 0 100% 0); transition: none; }
.learn-page[data-leave] { position: absolute; left: 0; right: 0; transition-duration: .3s; }
.learn-page[data-leave="next"] { transform: translateX(-40px); clip-path: inset(0 100% 0 0); }
.learn-page[data-leave="back"] { transform: translateX(40px); clip-path: inset(0 0 0 100%); }
.learn-page[data-leave="up"] { transform: translateY(-20px); clip-path: inset(0 0 100% 0); }
.learn-body { position: relative; }
.view.page[data-view="learn"]:not(.on) .learn-body { visibility: hidden; }
.view.page[data-view="learn"].on .learn-body { transition: visibility 0s var(--d, .6s); }
@media (prefers-reduced-motion: reduce) { .learn-page, .learn-page[data-enter], .learn-page[data-leave] { transition: none; transform: none; clip-path: none; } }
/* the old learn pages' own links back to Genesis are the bar's and the page list's job now */
.learn-page .l-onward a[href*="index.html"] { display: none; }
/* small parts in the brand's square grammar; the cards and tabs are the kit's own (css/genesis-learn-view.css) */
.view[data-view="learn"] :is(.l-pages a, .l-flow li, .dx-disclosure, .l-vtab, .l-onward a) { border-radius: 2px !important; }

/* Labels in the scene (js/genesis-scene.js): the home redesign's callouts. A square on the thing, a
   1px leader, the name in mono. The bands' wipe in on the home once their rings stand; a part's page
   names its own ring the same way, once the camera has nearly landed. */
.g-callout { opacity: 0; transition: opacity .5s var(--g-ease, cubic-bezier(.22,.7,.18,1)); }
.g-callout.seen { opacity: 1; transition-delay: .2s; }
.g-callout line { stroke: hsl(var(--text-muted) / .7); stroke-width: 1; }
.g-callout rect { fill: hsl(var(--canvas) / .75); stroke: hsl(var(--text-muted)); stroke-width: 1.5; }
.g-callout .g-callout__dot { fill: hsl(var(--text-strong)); stroke: none; }
.g-callout[data-kind="public"] rect:not(.g-callout__dot), .g-callout[data-kind="supply"] rect:not(.g-callout__dot) { stroke: hsl(var(--signal)); }
.g-callout[data-kind="public"] .g-callout__dot, .g-callout[data-kind="supply"] .g-callout__dot { fill: hsl(var(--signal)); }
.g-callout[data-kind="operations"] rect:not(.g-callout__dot) { stroke: hsl(var(--chain-pool)); }
.g-callout[data-kind="operations"] .g-callout__dot { fill: hsl(var(--chain-pool)); }
.g-callout__name { font: 500 var(--fs-tertiary) var(--font-meta); letter-spacing: .22em; fill: hsl(var(--text-strong)); paint-order: stroke; stroke: hsl(var(--canvas)); stroke-width: 4px; }
.g-callout__sub { font: 400 var(--fs-tertiary) var(--font-body); fill: hsl(var(--text-muted)); paint-order: stroke; stroke: hsl(var(--canvas)); stroke-width: 4px; }
@media (prefers-reduced-motion: reduce) { .g-callout { transition: none; } }

/* Ops budgets (js/genesis-rules.js): a category suggested but not decided reads quieter, dashed. */
.g-budget-chip--open { border-style: dashed; color: hsl(var(--text-muted)); }
.g-budget-chip--open[aria-pressed="true"] { border-style: dashed; }
.g-budget[data-status="open"] .g-budget__name { color: hsl(var(--text-muted)); }
.g-budget__name .l-tag { margin-left: var(--sp-3); }
.g-app .g-budgets .g-budget-chip.g-budget-chip--open { border-style: dashed; color: hsl(var(--text-muted)); }

/* Phone: the app flows and every shown view grows with its words; hidden views take no room. */
@media (max-width: 980px) {
  [data-dx-product="genesis"] #main.g-app { display: block; flex: none; overflow: visible; }
  [data-dx-product="genesis"] #main.g-app > .view:not(.on) { display: none; }
  [data-dx-product="genesis"] #main.g-app > .view.on { height: auto; }
}
/* Phone: the token preview keeps its name on one line beside the logo. */
@media (max-width: 640px) {
  .g-app .meta-preview { grid-template-columns: 56px minmax(0, 1fr); }
  .g-app .meta-preview-body { min-width: 0; }
  .g-app .meta-preview-text strong { overflow-wrap: normal; word-break: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* The sign-in dialog's safety notes: how FXN ID keeps the reader safe, beside the boxes that ask. */
#identityDialog .identity-broker-note { margin: var(--sp-3) 0 0; font: 400 var(--fs-tertiary)/1.5 var(--font-body); color: hsl(var(--text-muted)); }
#identityDialog .identity-safety { margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); border: 1px solid hsl(var(--border-default)); border-left: 2px solid hsl(var(--signal)); border-radius: 10px; background: hsl(var(--canvas) / .5); }
#identityDialog .identity-safety__title { margin: 0 0 var(--sp-3); font: 600 var(--fs-tertiary)/1.3 var(--font-body); letter-spacing: 0; color: hsl(var(--text-strong)); }
#identityDialog .identity-safety__list { margin: 0; padding-left: var(--sp-5); display: grid; gap: var(--sp-3); font: 400 var(--fs-tertiary)/1.5 var(--font-body); color: hsl(var(--text)); }
#identityDialog .identity-safety__more { margin-top: var(--sp-4); }
#identityDialog .identity-safety__more > summary { cursor: pointer; font: 600 var(--fs-tertiary)/1.4 var(--font-body); color: hsl(var(--signal)); }
#identityDialog .identity-safety__more[open] > summary { margin-bottom: var(--sp-3); }
