.gm-page {
  --gm-ease: cubic-bezier(.22, 1, .36, 1);
  --gm-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gm-fast: 160ms;
  --gm-mid: 320ms;
  --gm-slow: 640ms;
  --gm-focus: #db9458;
  --gm-scene-ink: #f5efe6;
  --gm-scene-muted: #c6bfb4;
}
.gm-intro { padding-block: clamp(1.25rem, 4vw, 2.5rem) 1.25rem; }
.gm-intro .eyebrow { margin: 0 0 .35rem; }
.gm-intro h1 { font-size: clamp(2rem, 4.2vw, 3.7rem); margin: 0; }
.gm-intro .intro { margin: .4rem 0 .75rem; max-width: 96ch; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.gm-intro-steps { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--sub); font-size: .83rem; }
.gm-intro-steps li { display: inline-flex; gap: .5rem; align-items: baseline; }
.gm-intro-steps li::before { content: ''; width: .36rem; height: .36rem; background: var(--accent); border-radius: 50%; flex: none; align-self: center; }
.gm-app { position: relative; width: min(1500px, 94%); margin-bottom: 2rem; }
.gm-app [hidden] { display: none !important; }
.gm-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100dvh - 72px); min-height: 640px; border: 1px solid var(--rule); border-radius: .9rem; background: var(--surface); }
.gm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gm-app[data-phase="choose"] .gm-workbench,
.gm-app[data-phase="resume"] .gm-workbench,
.gm-app[data-phase="text"] .gm-workbench,
.gm-app[data-phase="scan"] .gm-workbench { grid-template-columns: minmax(0, 1fr); }
.gm-app:is([data-phase="choose"], [data-phase="resume"], [data-phase="text"], [data-phase="scan"]) :is(.gm-panel, .gm-tools, .gm-economy) { display: none; }
.gm-app[data-phase="brief"] .gm-tools,
.gm-app[data-phase="brief"] .gm-economy { display: none; }
.gm-app:not([data-phase="map"]) .gm-variants { pointer-events: none; }
.gm-app:is([data-phase="choose"], [data-phase="resume"], [data-phase="text"], [data-phase="scan"]) .gm-toolbar { justify-content: center; }
.gm-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; min-height: 56px; padding: .45rem .55rem; }
.gm-variants, .gm-tools, .gm-zoom { display: flex; align-items: center; gap: .2rem; }
.gm-tools { margin-inline-start: auto; }
.gm-variants button, .gm-tools button, .gm-tools summary { min-height: 36px; border-radius: .38rem; padding: .25rem .5rem; color: var(--sub); white-space: nowrap; }
.gm-variants button { position: relative; display: flex; align-items: center; gap: .35rem; font-size: .79rem; }
.gm-variants button[aria-pressed="true"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.gm-variants button[aria-pressed="true"][data-gm-variant="boost"] { box-shadow: inset 0 -2px var(--accent), inset 0 0 0 1px var(--rule); }
.gm-variants small { font-size: .59rem; font-weight: 650; color: var(--accent); }
.gm-variants [data-edited]::after { content: ''; width: .36rem; height: .36rem; background: var(--accent); border-radius: 50%; }
.gm-tools button, .gm-tools summary { min-width: 33px; display: grid; place-items: center; line-height: 1; }
.gm-tools button:hover, .gm-tools summary:hover, .gm-variants button:hover { background: var(--paper); color: var(--ink); }
.gm-tools button[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.gm-tools button:disabled, .gm-variants button:disabled { opacity: .52; cursor: default; }
.gm-zoom output { min-width: 3.25ch; text-align: center; font-size: .74rem; font-variant-numeric: tabular-nums; }
.gm-menu { position: relative; }
.gm-menu summary { cursor: pointer; list-style: none; }
.gm-menu summary::-webkit-details-marker { display: none; }
.gm-menu > div { position: absolute; right: 0; top: 100%; z-index: 10; width: max-content; padding: .35rem; max-width: min(20rem, 85vw); border: 1px solid var(--rule); border-radius: .45rem; background: var(--paper); box-shadow: 0 .6rem 1.4rem #0003; }
.gm-menu > div button { width: 100%; justify-items: start; padding: .6rem; min-height: 40px; }
.gm-scene { flex: 1; position: relative; isolation: isolate; min-height: 0; display: grid; background: var(--night); }
.gm-stage { min-height: 0; }
.gm-app:is([data-phase="choose"], [data-phase="resume"], [data-phase="text"]) .gm-stage { filter: blur(6px); }
.gm-overlay { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; align-content: center; padding: 1rem; overflow: auto; color: var(--gm-scene-ink); background: #14161275; }
.gm-overlay:empty { display: none; }
.gm-app[data-phase="map"] .gm-overlay { pointer-events: none; background: none; place-items: start center; }
.gm-app[data-phase="map"] .gm-overlay > * { pointer-events: auto; }
.gm-app :is(button,a,select,input,textarea,summary,[tabindex]):focus-visible { outline: 2px solid var(--gm-focus); outline-offset: 3px; }
.gm-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-inline-start: 1px solid var(--rule); }
.gm-panel-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gm-panel-actions { padding: .75rem .95rem; display: grid; gap: .55rem; border-top: 1px solid var(--rule); }
.gm-panel-currency { display: flex; padding: .3rem .95rem; justify-content: end; }
.gm-panel-currency .region-control { display: block; }
.gm-panel-currency .region-panel { top: auto; bottom: calc(100% + .35rem); }
.gm-handoff { width: 100%; justify-content: center; text-wrap: balance; }
.gm-action-links { display: flex; justify-content: space-between; gap: .3rem; }
.gm-action-links button { padding: .38rem .16rem; min-height: 36px; text-wrap: balance; font-size: .78rem; text-decoration: underline; text-underline-offset: .2em; }
.gm-feedback { position: fixed; z-index: 12; right: max(3vw, .75rem); bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; max-width: min(90vw, 34rem); padding: .6rem .85rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: .55rem; box-shadow: 0 .5rem 2rem #0003; }
.gm-feedback p { margin: 0; flex: 1; font-size: .88rem; }
.gm-feedback input { width: 100%; order: 2; }
.gm-feedback a { text-decoration: underline; font-size: .85rem; }
.gm-feedback button { min-width: 32px; min-height: 32px; border: 1px solid var(--rule); border-radius: .35rem; }
.gm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gm-no-script { padding-block: 1rem 2rem; }
.gm-no-script .gm-preview-art { width: min(100%, 560px); height: auto; padding: 1rem; border-radius: .75rem; background: var(--night); }
.gm-preview-art text { font-size: 10px; font-family: 'Bureau Sans', Arial, sans-serif; }
@media (max-width: 1100px) { .gm-workbench { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) {
  .gm-app { width: 100%; }
  .gm-workbench { display: block; height: auto; min-height: 0; border-inline: 0; border-radius: 0; }
  .gm-scene { flex: none; height: 60dvh; min-height: 320px; }
  .gm-toolbar { min-width: 0; max-width: 100%; flex-direction: column; align-items: stretch; justify-content: start; padding: .3rem .5rem; }
  .gm-variants { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .gm-tools button, .gm-tools summary { min-height: 44px; }
  .gm-variants button { flex: 1 0 auto; justify-content: center; }
  .gm-tools { min-width: 0; max-width: 100%; margin-inline-start: 0; justify-content: end; flex-wrap: wrap; }
  .gm-zoom { flex: none; }
  .gm-tools button, .gm-tools summary { min-width: 38px; }
  .gm-app[data-phase="brief"] .gm-main { display: none; }
  .gm-panel { border-inline: 0; }
  .gm-panel-actions { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .gm-action-links button { min-height: 44px; }
}
@media (max-width: 380px) {
  .gm-tools { gap: 0; }
  .gm-tools button, .gm-tools summary { min-width: 34px; }
  .gm-zoom { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-page *, .gm-page *::before, .gm-page *::after { scroll-behavior: auto !important; }
}

/* Brief, mode selection, library, comparison and inspector */
.gm-entry-panel {
  width: min(100%, 740px);
  padding: clamp(1rem, 3vw, 2.25rem);
  border: 1px solid #ffffff2f;
  border-radius: 1.05rem;
  background: #252520ee;
  box-shadow: 0 1rem 3.5rem #0006;
  color: #f8efe3;
  text-align: center;
}
.gm-entry-panel h2 { margin: 0 0 1rem; color: inherit; font-size: clamp(1.55rem, 3.5vw, 2.6rem); line-height: 1.08; }
.gm-entry-panel > p { margin: 1rem 0 .25rem; color: #dfd4c4; font-size: .87rem; }
.gm-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.gm-mode-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .4rem .55rem;
  min-height: 9.4rem;
  padding: .95rem;
  border: 1px solid #baa68c72;
  border-radius: .72rem;
  background: linear-gradient(140deg, #dcb48423, #fff0);
  text-align: start;
  color: inherit;
  transition: background var(--gm-fast), border-color var(--gm-fast);
}
.gm-mode-card:hover { border-color: #dea978; background: #dcb48432; }
.gm-mode-card strong, .gm-mode-card > :last-child { grid-column: 1 / -1; }
.gm-mode-card strong { font-size: 1.02rem; }
.gm-mode-card > :last-child { font-size: .85rem; color: #dfd4c4; line-height: 1.35; }
.gm-mode-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: .4rem; background: #e9ba8430; color: #f5c894; }
.gm-mode-icon svg { width: 20px; height: 20px; }
.gm-mode-time { justify-self: end; font-size: .75rem; color: #ead0b2; }
.gm-entry-panel > .gm-text-button { display: inline-block; margin: .25rem .45rem 0; color: #f3cca7; }
.gm-resume-panel { width: min(100%, 610px); }
.gm-text-form { max-width: 650px; text-align: start; }
.gm-text-form > fieldset { margin: 0 0 .6rem; padding: 0; border: 0; }
.gm-text-form label { display: block; margin-bottom: .35rem; color: #e8ddce; font-size: .92rem; }
.gm-text-form textarea { width: 100%; min-height: 130px; max-height: 32dvh; padding: .75rem; resize: vertical; border: 1px solid #b2a69590; border-radius: .5rem; background: #171813; color: #f8efe3; }
.gm-text-form-footer { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-top: .6rem; }
.gm-text-form-footer output { color: #e8ddce; font-size: .8rem; }
.gm-text-form .gm-chip { color: #f8efe3; background: #322f27; border-color: #968774; }
.gm-text-form .gm-chip:hover { background: #494035; }
.gm-text-form .gm-text-button { color: #f3cca7; }
.gm-resume-panel .gm-form-actions { justify-content: center; border: 0; padding: .4rem 0; }
.gm-scan-panel { width: min(100%, 420px); padding: 1.4rem; border: 1px solid #cfaa7d63; border-radius: .8rem; background: #23251ee8; text-align: end; }
.gm-scan-panel ol { list-style: none; padding: 0; margin: 0 0 1rem; min-height: 10rem; text-align: start; }
.gm-scan-panel li { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; color: #e1d6c7; min-height: 33px; }
.gm-scan-panel li[aria-current] { color: #fff0d9; }
.gm-scan-panel li span { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; flex: none; border: 1px solid #e5bd886b; border-radius: 50%; color: #f6c88f; }
.gm-scan-panel li svg { width: 14px; height: 14px; }
.gm-scan-line { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #efbe8800, #f1c98c, #efbe8800); box-shadow: 0 0 24px 4px #f1c98c88; animation: gm-sweep 1.2s var(--gm-ease) 3; pointer-events: none; }
@keyframes gm-sweep { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.gm-app[data-phase="brief"] .gm-overlay { pointer-events: none; align-content: start; justify-items: start; background: transparent; }
.gm-business-badge { margin: 0; padding: .35rem .6rem; border: 1px solid #ffffff38; border-radius: .35rem; background: #171813db; font-size: .8rem; }

.gm-pane, .gm-brief { min-height: 0; }
.gm-pane { padding: .85rem .95rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.gm-pane h2 { margin: 0 0 .6rem; line-height: 1.15; font-size: 1.42rem; }
.gm-pane h3 { margin: .9rem 0 .35rem; font-size: .98rem; line-height: 1.25; }
.gm-pane h4 { margin: 0; font-size: .9rem; }
.gm-pane p { margin: 0 0 .6rem; font-size: .86rem; }
.gm-pane-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem; }
.gm-tabs { display: flex; gap: .2rem; padding: .35rem .55rem 0; border-bottom: 1px solid var(--rule); flex: none; }
.gm-tab { flex: 1; min-height: 39px; padding: .3rem; color: var(--sub); border-bottom: 2px solid transparent; font-size: .83rem; font-weight: 600; }
.gm-tab[aria-selected="true"] { border-color: var(--accent); color: var(--ink); }
.gm-tab:hover { color: var(--accent); }
.gm-tab-panel { display: flex; flex: 1; min-height: 0; }
.gm-tab-panel > * { width: 100%; }
.gm-panel-nav { flex: none; }
.gm-back-to-map, .gm-economy-toggle { display: none; }
.gm-panel-label { display: none; }

.gm-brief { display: flex; flex: 1; flex-direction: column; }
.gm-brief-body { flex: 1; }
.gm-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .2rem; padding: .55rem .3rem .25rem; margin: 0; border-bottom: 1px solid var(--rule); list-style: none; }
.gm-progress-step { display: flex; flex-direction: column; align-items: center; width: 100%; gap: .2rem; padding: 0 .08rem .25rem; color: var(--sub); }
.gm-progress-step[aria-current] { color: var(--ink); }
.gm-progress-step:disabled { opacity: .62; }
.gm-progress-step > span { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1px solid var(--rule); border-radius: 50%; font-size: .69rem; line-height: 1; }
.gm-progress-step[aria-current] > span { border: 2px solid var(--accent); font-weight: 700; }
.gm-progress-step small { font-size: .59rem; line-height: 1.15; text-align: center; overflow-wrap: break-word; }
.gm-brief-field { display: block; width: 100%; min-width: 0; padding: 0; margin: 0 0 .55rem; border: 0; border-radius: .35rem; }
.gm-brief-field > :is(legend, label) { display: block; padding: 0; margin: 0 0 .25rem; color: var(--ink); font-size: .84rem; font-weight: 650; }
.gm-brief-field > small { display: block; margin: .32rem 0 0; color: var(--sub); font-size: .74rem; }
.gm-brief-field[data-detected] { outline: 1px solid color-mix(in srgb, var(--accent) 66%, var(--rule)); outline-offset: 3px; }
.gm-detected-label { display: flex; align-items: center; gap: .27rem; margin-bottom: .32rem; color: var(--accent); font-size: .73rem; }
.gm-detected-label svg { width: 13px; height: 13px; }
.gm-brief input:not([type="range"]), .gm-library input[type="search"], .gm-inspector select {
  width: 100%; min-height: 36px; min-width: 0; padding: .37rem .6rem; border: 1px solid var(--rule);
  border-radius: .35rem; background: var(--paper); color: var(--ink); font: inherit; font-size: .83rem;
}
.gm-brief input[type="range"] { width: 100%; accent-color: var(--accent); margin: .45rem 0 .1rem; }
.gm-brief input::placeholder, .gm-library input::placeholder { color: var(--sub); opacity: 1; }
.gm-number-unit { display: flex; align-items: center; gap: .5rem; }
.gm-number-unit span, [data-gm-p-revenue-value] { font-size: .79rem; color: var(--sub); }
.gm-category-options { max-height: 7.2rem; margin: .3rem 0 .1rem; padding: 3px; overflow: auto; scrollbar-width: thin; }
.gm-chip-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.gm-chip {
  display: inline-flex; align-items: center; justify-content: start; gap: .28rem;
  min-height: 29px; max-width: 100%; line-height: 1.22; padding: .24rem .45rem; border: 1px solid var(--rule);
  border-radius: .35rem; background: var(--paper); color: var(--ink); font-size: .77rem; text-align: start;
}
.gm-chip svg { flex: none; width: 14px; height: 14px; color: var(--accent); }
.gm-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 13%, var(--paper)); border-color: var(--accent); color: var(--ink); }
.gm-chip:hover { border-color: var(--accent); }
.gm-chip:disabled, .gm-recalc:disabled, .gm-entry-panel .button:disabled { opacity: .6; cursor: default; }
.gm-field-note { color: var(--sub); }
.gm-field-note a { text-decoration: underline; }
.gm-text-review { padding: .4rem .5rem; border-inline-start: 2px solid var(--accent); background: var(--paper); }
.gm-brief p.gm-brief-error { color: var(--ink); padding: .48rem .6rem; border-inline-start: 2px solid #bd514b; background: var(--paper); }
.gm-form-actions { display: flex; gap: .45rem; justify-content: end; padding: .55rem .95rem; border-top: 1px solid var(--rule); }
.gm-form-actions .button, .gm-secondary { min-height: 36px; padding: .45rem .76rem; border-radius: .35rem; font-size: .84rem; font-weight: 600; }
.gm-secondary { border: 1px solid var(--rule); color: var(--ink); background: var(--paper); }
.gm-secondary:hover { border-color: var(--accent); }
.gm-entry-panel .gm-secondary, .gm-scan-panel .gm-secondary { color: #f8efe3; border-color: #a99983; background: #383329; }
.gm-text-button { padding: .3rem .15rem; color: var(--accent); font-size: .82rem; text-decoration: underline; text-underline-offset: .18em; }
.gm-item-editor input { margin-block: .25rem; }
.gm-item-suggestions .gm-chip { color: var(--sub); }
.gm-item-remove span { font-weight: 650; }
.gm-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
.gm-source-row { display: flex; align-items: stretch; gap: .15rem; min-width: 0; }
.gm-source-row .gm-chip { flex: 1; min-height: 37px; }
.gm-source-star { display: grid; place-items: center; width: 26px; flex: none; padding: 0; color: var(--sub); }
.gm-source-star svg { width: 16px; height: 16px; }
.gm-source-star[aria-pressed="true"] { color: var(--accent); }
.gm-source-star[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--accent) 52%, transparent); }

.gm-library input { margin-bottom: .6rem; }
.gm-library-group { margin: 0 0 .38rem; border-bottom: 1px solid var(--rule); }
.gm-library-group summary { display: flex; align-items: center; gap: .4rem; padding: .42rem .08rem; border-radius: .25rem; cursor: pointer; list-style: none; font-weight: 650; font-size: .85rem; }
.gm-library-group summary::-webkit-details-marker { display: none; }
.gm-library-group summary::after { content: '+'; margin-inline-start: auto; color: var(--sub); }
.gm-library-group[open] summary::after { content: '−'; }
.gm-library-group summary > svg { width: 16px; height: 16px; color: var(--accent); }
.gm-library-list { display: grid; gap: .38rem; padding-block: .22rem .52rem; }
.gm-library-card { display: flex; align-items: start; gap: .48rem; width: 100%; padding: .48rem; border: 1px solid var(--rule); border-radius: .4rem; background: var(--paper); text-align: start; color: var(--ink); }
.gm-library-card:hover { border-color: var(--accent); }
.gm-library-card[draggable] { cursor: grab; }
.gm-library-present { background: color-mix(in srgb, var(--paper) 70%, var(--surface)); }
.gm-library-icon { display: grid; place-items: center; border-radius: .3rem; width: 29px; height: 29px; flex: none; background: color-mix(in srgb, var(--gm-stage-color) 26%, var(--paper)); }
.gm-library-icon svg, .gm-library-plus svg { width: 17px; height: 17px; }
.gm-library-card-text { display: grid; gap: .13rem; flex: 1; min-width: 0; line-height: 1.25; }
.gm-library-card-text strong { font-size: .85rem; }
.gm-library-card-text small { color: var(--sub); font-size: .74rem; }
.gm-library-effect { width: fit-content; color: var(--accent); font-size: .72rem; font-weight: 600; }
.gm-library-plus { margin: .32rem 0 0 auto; color: var(--accent); flex: none; }

.gm-compare-pane .gm-variant-description { margin: .2rem 0 .55rem; color: var(--sub); }
.gm-own-map { margin-bottom: .55rem; }
.gm-comparison-scroll { overflow-x: auto; scrollbar-width: thin; margin: .25rem 0 .5rem; border: 1px solid var(--rule); border-radius: .45rem; }
.gm-comparison { width: 100%; min-width: 392px; border-collapse: collapse; table-layout: fixed; font-size: .73rem; }
.gm-comparison th, .gm-comparison td { text-align: start; padding: .38rem .31rem; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; vertical-align: top; }
.gm-comparison th[scope="row"], .gm-comparison th[scope="col"] { font-weight: 650; }
.gm-comparison th[scope="col"] { white-space: nowrap; }
.gm-comparison th[scope="row"], .gm-comparison thead td { width: 23%; }
.gm-comparison td[data-active], .gm-comparison th[data-active] { background: color-mix(in srgb, var(--accent) 9%, var(--paper)); }
.gm-comparison td button { padding: 0; font-size: .72rem; }
.gm-comparison tr:last-child > * { border-bottom: 0; }
.gm-comparison thead { background: color-mix(in srgb, var(--surface) 72%, var(--paper)); }
.gm-comparison tbody td { font-variant-numeric: tabular-nums; }
.gm-defaults-note { text-align: start; }
.gm-differences, .gm-proof { margin-top: .75rem; }
.gm-difference, .gm-proof figure, .gm-proof > ul { margin: .42rem 0; padding: .58rem .64rem; border: 1px solid var(--rule); border-radius: .45rem; background: var(--paper); }
.gm-difference strong { display: block; color: var(--accent); margin-top: .18rem; font-variant-numeric: tabular-nums; }
.gm-difference p { margin: .26rem 0; }
.gm-difference ul { margin: .22rem 0 0; padding-inline-start: .95rem; color: var(--sub); font-size: .74rem; }
.gm-proof > ul { padding-inline-start: 1.5rem; }
.gm-proof blockquote { margin: 0 0 .35rem; font-size: .86rem; }
.gm-proof figcaption { font-size: .76rem; color: var(--sub); }
.gm-proof figcaption a { text-decoration: underline; }
.gm-inspector-heading { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; }
.gm-inspector-heading h2 { margin: 0; }
.gm-inspector-heading svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.gm-inspector-effect { color: var(--accent); }
.gm-settings, .gm-inspector-tools { display: grid; gap: .45rem; }
.gm-inspector-tools label, .gm-setting-label { display: grid; gap: .18rem; font-size: .81rem; }
.gm-inspector-tools { margin-top: .9rem; }
.gm-inspector .gm-danger { border-color: #b75a55; justify-self: start; }

/* Economy stays readable outside the dark canvas. */
.gm-economy { border-top: 1px solid var(--rule); padding: .65rem .85rem .55rem; }
.gm-economy:empty { display: none; }
.gm-economy-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem .7rem; margin: 0; }
.gm-economy-stats > div { min-width: 0; }
.gm-economy-stats dt, .gm-economy-stats small { color: var(--sub); font-size: .7rem; }
.gm-economy-stats small { display: block; font-weight: 400; }
.gm-economy-stats dd { margin: .12rem 0 0; font-size: clamp(.7rem, 1.32vw, 1.05rem); font-weight: 700; overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
.gm-economy-stats > :first-child dd { font-size: clamp(.9rem, 1.7vw, 1.4rem); }
.gm-economy-stats .gm-growth dd { color: light-dark(#2d6638, #93d8a3); }
.gm-economy-stats .gm-loss dd { color: light-dark(#9c413e, #ffafab); }
.gm-economy-footnote { margin: .36rem 0 0; color: var(--sub); font-size: .7rem; }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) {
  .gm-app[data-phase="brief"] .gm-panel { min-height: calc(100dvh - 64px); }
  .gm-tabs { padding-top: 0; }
  .gm-tab { min-height: 43px; }
  .gm-brief input:not([type="range"]), .gm-library input[type="search"], .gm-inspector select, .gm-text-form textarea { font-size: 16px; }
  .gm-brief .gm-chip, .gm-library-card, .gm-form-actions .button, .gm-form-actions .gm-secondary { min-height: 43px; }
  .gm-source-star { width: 40px; }
  .gm-brief-body { padding-inline: 1rem; }
  .gm-sources { gap: .42rem; }
  .gm-app[data-phase="brief"] .gm-progress { padding: .7rem .6rem .4rem; }
  .gm-app[data-phase="brief"] .gm-brief { min-height: calc(100dvh - 64px); }
  .gm-economy { padding-block: .1rem; }
  .gm-economy-toggle { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding-block: .4rem; min-height: 44px; width: 100%; color: var(--ink); font-size: .83rem; text-align: start; }
  .gm-economy-content[data-open="false"] { display: none; }
  .gm-economy-content { padding: .25rem 0 .6rem; }
  .gm-economy-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .65rem; }
}
@media (max-width: 520px) {
  .gm-overlay { padding: .45rem; }
  .gm-entry-panel { padding: .75rem; }
  .gm-entry-panel h2 { margin-bottom: .65rem; }
  .gm-mode-options { grid-template-columns: 1fr; gap: .45rem; }
  .gm-mode-card { min-height: 0; gap: .28rem .45rem; padding: .65rem; align-content: start; }
  .gm-mode-card strong, .gm-mode-card > :last-child { grid-column: 2; }
  .gm-mode-icon { grid-row: 1 / span 3; }
  .gm-mode-time { justify-self: start; }
  .gm-entry-panel > p { margin-top: .6rem; }
  .gm-comparison-scroll { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-scan-line { animation: none; }
  .gm-mode-card { transition: none; }
}


/* Growth Map canvas */
.gm-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: clip;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--night, #192027) 91%, var(--accent, #e8ac8c) 9%), var(--night, #192027));
  color: var(--gm-scene-ink, #f5efe6);
  font-family: "Bureau Sans", system-ui, sans-serif;
  outline-offset: -4px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  perspective: 1200px;
  cursor: grab;
  transition: filter var(--gm-slow, 640ms) var(--gm-ease, ease-out);
}
.gm-stage:focus-visible { outline: 2px solid var(--gm-focus, #e8ac8c); }
.gm-stage [hidden] { display: none !important; }
.gm-bg, .gm-world, .gm-lanes, .gm-nodes, .gm-node-shadows, .gm-guides, .gm-hud {
  position: absolute;
  inset: 0;
}
.gm-bg {
  pointer-events: none;
  background-image: radial-gradient(circle, #ffffff1c 1px, transparent 1.2px);
  background-size: 24px 24px;
  box-shadow: inset 0 0 160px #0007;
}
.gm-world { width: 0; height: 0; transform-origin: 0 0; transform-style: preserve-3d; will-change: transform; }
.gm-stage.gm-volume-transition .gm-world { transition: transform 260ms var(--gm-ease, ease-out); }
.gm-lanes, .gm-node-shadows, .gm-guides { pointer-events: none; }
.gm-lane {
  position: absolute;
  width: 248px;
  min-height: 140px;
  padding: 11px 14px;
  border: 1px solid color-mix(in oklab, var(--gm-color) 20%, transparent);
  border-top: 2px solid color-mix(in oklab, var(--gm-color) 68%, transparent);
  border-radius: 9px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--gm-color) 9%, transparent), #ffffff04 70%);
}
.gm-lane[data-stage="insight"] { min-height: 0; background: #86b9bd0b; }
.gm-lane.is-drop-target { border-color: var(--gm-color); background: color-mix(in oklab, var(--gm-color) 16%, transparent); }
.gm-lane-heading { display: flex; align-items: center; gap: 7px; color: var(--gm-color); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.gm-lane-heading svg { width: 17px; height: 17px; }
.gm-lane-caption { margin-top: 3px; color: var(--gm-scene-muted, #c6bfb4); font-size: 12px; }
.gm-node {
  position: absolute;
  width: 216px;
  border-radius: 14px;
  transform-style: preserve-3d;
  cursor: grab;
}
.gm-node:focus-visible { outline: 2px solid var(--gm-focus, #e8ac8c); outline-offset: 3px; z-index: 2; }
.gm-node-face {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  padding: 10px 11px;
  border: 1px solid #ffffff24;
  border-radius: inherit;
  background: color-mix(in oklab, var(--night, #192027) 83%, white);
  box-shadow: 0 1px 0 #ffffff14 inset, 0 10px 30px -10px #0009, 0 2px 6px #0005;
  transform-style: preserve-3d;
  transition: transform var(--gm-fast, 160ms) var(--gm-ease, ease-out), opacity var(--gm-fast, 160ms);
}
.gm-node-face::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in oklab, var(--gm-color) 37%, #121418);
  transform: translateY(6px) translateZ(-1px);
  transition: transform var(--gm-fast, 160ms) var(--gm-ease, ease-out);
}
.gm-node.is-compact .gm-node-face { padding-block: 6px; }
.gm-node-icon {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff32;
  border-radius: 9px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--gm-color) 73%, #18202a), color-mix(in oklab, var(--gm-color) 38%, #22232b));
  box-shadow: inset 0 1px #fff4, 0 2px 5px #0003;
  color: #fffaf3;
}
.gm-node-icon svg { width: 22px; height: 22px; }
.gm-node-text { display: grid; align-content: center; min-width: 0; width: 100%; padding-bottom: 9px; }
.gm-node-title, .gm-node-subtitle { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.3; }
.gm-node-title { color: #f2f0ea; font-size: 14px; font-weight: 600; }
.gm-node-subtitle { color: #d2ccc2; font-size: 12px; }
.gm-node-effect, .gm-node-badge {
  position: absolute;
  right: 9px;
  max-width: calc(100% - 65px);
  overflow: hidden;
  padding: 0 5px;
  border-radius: 4px;
  color: #f4ece1;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gm-node-effect { bottom: 3px; background: #ffffff16; }
.gm-node-badge { top: 3px; color: #e3d8ca; }
.gm-node-badge.is-new { color: #f5d0a9; background: #181411; }
.gm-node.is-orphan .gm-node-face { border-style: dashed; border-color: #ffffff85; animation: gm-orphan 2s ease-in-out infinite alternate; }
@keyframes gm-orphan { to { border-color: #ffffff35; opacity: .74; } }
.gm-node.is-leaking .gm-node-badge[hidden] { display: block !important; }
.gm-node.is-leaking .gm-node-badge { inset: 6px 7px auto auto; width: 7px; height: 7px; padding: 0; border-radius: 50%; color: transparent; background: #ff7a80; box-shadow: 0 0 9px #e5484d99; }
.gm-node.is-selected .gm-node-face {
  box-shadow: 0 0 0 2px var(--gm-focus, #e8ac8c), 0 0 22px color-mix(in oklab, var(--gm-focus, #e8ac8c) 42%, transparent);
}
.gm-node.is-link-target .gm-node-face { border-color: var(--gm-color); }
.gm-node.is-link-hover .gm-node-face { outline: 2px solid var(--gm-color); }
.gm-node.is-dragging { z-index: 4; will-change: left, top; }
.gm-node.is-dragging .gm-node-face { transform: translateZ(30px) scale(1.03); cursor: grabbing; }
.gm-stage.is-moving-node .gm-node:not(.is-dragging) { opacity: .85; }
.gm-stage.is-panning, .gm-stage.is-panning .gm-node { cursor: grabbing; }
.gm-node-shadow { display: none; position: absolute; width: 216px; border-radius: 12px; background: #0009; filter: blur(8px); }
.gm-stage.is-volume .gm-node { transform: translateZ(var(--gm-lift)); cursor: pointer; }
.gm-stage.is-volume .gm-node-face::after { transform: translateY(14px) translateZ(-1px); }
.gm-stage.is-volume .gm-node-shadow { display: block; }
.gm-stage.is-volume .gm-port { visibility: hidden; }
.gm-stage.is-listing :is(.gm-edge-endpoint, .gm-edge-action) { display: none; }
.gm-stage.gm-volume-transition .gm-node { transition: transform 700ms var(--gm-ease, ease-out); }
.gm-port {
  position: absolute;
  z-index: 2;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #25212a;
  background: var(--gm-color);
  opacity: .52;
}
.gm-port-in { left: -6px; }
.gm-port-out { right: -6px; cursor: crosshair; }
.gm-node:hover .gm-port, .gm-node:focus-visible .gm-port, .gm-stage.is-linking .gm-port { opacity: 1; }
.gm-edges { position: absolute; inset: auto; max-width: none; max-height: none; overflow: visible; pointer-events: none; }
.gm-edges path { fill: none; stroke-linecap: round; }
.gm-edge-depth { stroke: var(--gm-source-color); stroke-width: 8px; opacity: .15; }
.gm-edge-main { stroke-width: var(--gm-edge-width, 2px); opacity: .85; }
.gm-edge-pulse { stroke: #fff8; stroke-width: 1.5; stroke-dasharray: 2 14; animation: gm-edge-flow 1.6s linear infinite; }
.gm-edges .is-loop .gm-edge-main { stroke-width: 3; stroke-dasharray: 7 10; }
.gm-edges .is-loop .gm-edge-pulse { stroke-dasharray: 3 14; }
.gm-edges .is-data .gm-edge-main { stroke: #86b9bd; stroke-width: 2.25px; stroke-dasharray: 6 5; opacity: .9; }
.gm-edges .is-data :is(.gm-edge-depth, .gm-edge-pulse) { visibility: hidden; }
.gm-edge-hit { stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.gm-edges .is-selected .gm-edge-main { stroke-width: calc(var(--gm-edge-width, 2) + 2); opacity: 1; }
.gm-edge-endpoint {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 3px solid #29221f;
  border-radius: 50%;
  background: #f5d0a9;
  box-shadow: 0 0 0 1px #f5d0a9;
  cursor: crosshair;
  touch-action: none;
}
.gm-edge-action {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border: 1px solid #f5c8a6;
  border-radius: 50%;
  background: #292325;
  color: #fff2e6;
  font: 700 17px/1 "Bureau Sans", sans-serif;
  cursor: pointer;
}
@keyframes gm-edge-flow { to { stroke-dashoffset: -64px; } }
.gm-particle { fill: #f4c9a7; filter: drop-shadow(0 0 4px #f4c9a7); }
.gm-particle-loss { fill: #ff8187; filter: drop-shadow(0 0 4px #ff8187); }
.gm-edges .gm-leak path { fill: #e5484d; filter: drop-shadow(0 0 6px #e5484da0); }
.gm-leak text { fill: #ffb0b4; font-size: 13px; font-weight: 650; paint-order: stroke; stroke: var(--night, #192027); stroke-width: 5px; }
.gm-loop-guide path { stroke: #c6bfb4; stroke-width: 1.5; stroke-dasharray: 4 9; opacity: .35; }
.gm-loop-guide text { fill: #e1d9ca; font-size: 14px; letter-spacing: .018em; }
.gm-connection-trace { stroke: #e8ac8c; stroke-width: 2.5; stroke-dasharray: 5 7; }
.gm-guides i { position: absolute; z-index: 2; background: #e8ac8c; }
.gm-guide-x { width: 1px; }
.gm-guide-y { height: 1px; }
.gm-minimap {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  width: 160px;
  height: 100px;
  overflow: clip;
  border: 1px solid #fff3;
  border-radius: 10px;
  background: #0007;
  cursor: crosshair;
  touch-action: none;
}
.gm-minimap svg { display: block; width: 100%; height: 100%; }
.gm-mini-window { fill: #fff1; stroke: #fffc; stroke-width: 1; }
.gm-hud { z-index: 2; display: grid; place-items: center; pointer-events: none; }
.gm-empty {
  width: min(320px, calc(100% - 32px));
  padding: 1rem;
  border: 1px solid #fff4;
  border-radius: 12px;
  background: #1e242a;
  text-align: center;
  pointer-events: auto;
}
.gm-canvas-restore {
  margin-top: .7rem;
  padding: .4rem .8rem;
  border: 1px solid #f2bd99;
  border-radius: .35rem;
  color: #f2bd99;
}
.gm-selection-box, .gm-drop-ghost { position: absolute; z-index: 3; pointer-events: none; }
.gm-selection-box { border: 1px solid #e8ac8c; background: #e8ac8c28; }
.gm-drop-ghost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e8ac8ccc;
  border-radius: 9px;
  background: #242628e6;
  color: #f2e5d9;
  font-size: .8rem;
}
.gm-auto-wave {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #f5d0a9, transparent 63%);
  pointer-events: none;
}
.gm-stage.is-listing { touch-action: pan-y; cursor: auto; }
.gm-linear-list { position: absolute; inset: 0; overflow: auto; padding: clamp(1rem, 3vw, 2rem); -webkit-user-select: text; user-select: text; }
.gm-linear-list section + section { margin-top: 1rem; }
.gm-linear-list h3 { color: #f0bc9d; font-size: 1rem; }
.gm-linear-list ol { padding-left: 1.5rem; }
.gm-linear-list li + li { margin-top: .55rem; }
.gm-linear-list p { margin: 0; color: #d2ccc2; font-size: .85rem; }
.gm-linear-list strong { margin-inline-start: .5rem; color: #c2e1c5; font-size: .8rem; }
.gm-list-node { padding-inline: 0; text-decoration: underline; text-underline-offset: .18em; }
@media (hover: hover) and (pointer: fine) {
  .gm-stage:not(.is-volume, .is-panning, .is-moving-node) .gm-node:hover { z-index: 2; }
  .gm-stage:not(.is-volume, .is-panning, .is-moving-node) .gm-node:hover .gm-node-face { transform: translateZ(18px) rotateX(var(--gm-rx, 0deg)) rotateY(var(--gm-ry, 0deg)); }
  .gm-stage:not(.is-volume) .gm-node:hover .gm-node-face::after { transform: translateY(10px) translateZ(-1px); }
}
@media (max-width: 899px), (pointer: coarse) {
  .gm-minimap, .gm-particle { display: none; }
  .gm-port { width: 16px; height: 16px; top: calc(50% - 8px); }
  .gm-port-out { right: -8px; }
  .gm-port-in { left: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-stage, .gm-stage.gm-volume-transition .gm-world, .gm-stage.gm-volume-transition .gm-node, .gm-node-face, .gm-node-face::after { transition: none; }
  .gm-stage .gm-node .gm-node-face, .gm-stage .gm-node .gm-node-face::after { animation: none; }
  .gm-stage:not(.is-volume, .is-panning, .is-moving-node) .gm-node:hover .gm-node-face { transform: none; }
  .gm-edge-pulse, .gm-particle { display: none; }
}

/* ===== Redesign: calmer, site-native presentation ===== */
.gm-app { width: min(1680px, 96%); }
.gm-workbench { grid-template-columns: minmax(0, 1fr) clamp(18rem, 28vw, 24.5rem); box-shadow: 0 1px 0 var(--rule), 0 24px 60px -34px #0004; overflow: clip; }
.gm-app[data-phase="map"].is-panel-collapsed .gm-workbench { grid-template-columns: minmax(0, 1fr) 0; }
.gm-app[data-phase="map"].is-panel-collapsed .gm-panel { display: none; }
.gm-toolbar { gap: .5rem; background: var(--surface); border-bottom: 1px solid var(--rule); }
.gm-variants { gap: .15rem; padding: .18rem; border: 1px solid var(--rule); border-radius: .55rem; background: var(--paper); }
.gm-variants button { min-height: 34px; padding-inline: .7rem; font-size: .82rem; font-weight: 600; border-radius: .4rem; }
.gm-variants button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.gm-variants button[aria-pressed="true"][data-gm-variant="boost"] { box-shadow: none; }
.gm-variants small, .gm-progress-step small { font-family: inherit; letter-spacing: 0; text-transform: none; }
.gm-variants small { font-size: .62rem; font-weight: 700; color: var(--accent); }
.gm-variants button[aria-pressed="true"] small { color: color-mix(in srgb, var(--accent) 70%, var(--paper)); }
.gm-toolbar-cta { display: none; min-height: 36px; padding: .4rem .95rem; font-size: .84rem; white-space: nowrap; }
.gm-app[data-phase="map"] .gm-toolbar-cta { display: inline-flex; }
.gm-tools button[aria-pressed="true"][data-gm-action="panel"] { background: transparent; box-shadow: none; color: var(--sub); }
.gm-scene { background: var(--night); }
.gm-economy { background: var(--surface); }
.gm-economy-stats dd { font-family: 'Bureau Serif', Georgia, serif; font-weight: 600; }

/* Stage lanes and nodes: restrained, paper-and-copper */
.gm-lane { border-radius: 12px; background: linear-gradient(180deg, color-mix(in oklab, var(--gm-color) 7%, transparent), #ffffff03 70%); border-color: color-mix(in oklab, var(--gm-color) 16%, transparent); }
.gm-lane-heading { font-family: 'Bureau Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; }
.gm-node-face { background: color-mix(in oklab, var(--night, #192027) 88%, #f3dfc8); border-color: #ffffff1c; }
.gm-node-title { font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.gm-node-effect { color: color-mix(in oklab, var(--gm-color) 40%, #fff); background: color-mix(in oklab, var(--gm-color) 16%, transparent); }

/* Semantic zoom: at overview scale keep names readable, drop the fine print */
.gm-stage.is-small .gm-node-subtitle, .gm-stage.is-small .gm-node-effect { display: none; }
.gm-stage.is-small .gm-node-text { padding-bottom: 0; }
.gm-stage.is-small .gm-node-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.15;
  font-size: calc(14px * var(--gm-boost, 1));
}
.gm-stage.is-small .gm-node-icon { flex-basis: 44px; width: 44px; height: 44px; }
.gm-stage.is-small .gm-lane-heading { font-size: calc(11px * var(--gm-boost, 1)); }
.gm-stage.is-small .gm-lane-caption { font-size: calc(12px * var(--gm-boost, 1)); }
.gm-stage.is-small .gm-leak text { font-size: calc(13px * var(--gm-boost, 1)); }
.gm-stage.is-small .gm-loop-guide text { font-size: calc(14px * var(--gm-boost, 1)); }

/* Comparison cards */
.gm-baseline { margin: 0 0 .6rem; padding: .5rem .65rem; border-inline-start: 2px solid #bd514b; background: var(--paper); font-size: .82rem; }
.gm-vcards { display: grid; gap: .6rem; }
.gm-vcard { padding: .75rem .8rem; border: 1px solid var(--rule); border-radius: .6rem; background: var(--paper); }
.gm-vcard[data-active] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gm-vcard-head { display: flex; align-items: baseline; gap: .5rem; }
.gm-vcard h3 { margin: 0; font-size: 1.05rem; }
.gm-vcard-head small { color: var(--accent); font-size: .68rem; font-weight: 700; }
.gm-vcard-growth { margin-inline-start: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: light-dark(#2d6638, #93d8a3); }
.gm-pane .gm-vcard-revenue { margin: .2rem 0 .5rem; font-size: .8rem; color: var(--sub); }
.gm-vcard-revenue strong { font-family: 'Bureau Serif', Georgia, serif; font-size: 1.45rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.gm-vcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .8rem; margin: 0 0 .45rem; }
.gm-vcard dl > div { min-width: 0; }
.gm-vcard dt { color: var(--sub); font-size: .68rem; line-height: 1.2; }
.gm-vcard dd { margin: .1rem 0 0; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gm-vcard .gm-text-button { padding-inline: 0; }

/* Brief */
.gm-category-options { max-height: none; overflow: visible; padding: 0; }
.gm-progress-step small { font-size: .62rem; color: inherit; }
.gm-pane h2 { font-size: 1.5rem; }

/* Keep the panel below the map in a single-column workspace. */
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) {
  .gm-app[data-phase="map"] .gm-panel { border: 0; border-top: 1px solid var(--rule); }
  .gm-app[data-phase="map"].is-panel-collapsed .gm-panel { display: flex; }
  .gm-panel-nav { background: var(--surface); }
  .gm-back-to-map { display: inline-flex; min-height: 44px; align-items: center; margin-inline: .95rem; }
  .gm-app[data-phase="map"] .gm-pane { overflow: visible; }
  .gm-toolbar-cta { display: none !important; }
  .gm-scene { height: 58svh; min-height: min(340px, 75svh); }
  .gm-variants button[aria-pressed="true"] { background: var(--ink); }
  .gm-tools { flex-wrap: wrap; }
  .gm-tools :is([data-gm-action="undo"], [data-gm-action="redo"]):disabled { display: none; }
  .gm-tools [data-gm-action="panel"] { display: flex; gap: .35rem; padding-inline: .45rem; }
  .gm-panel-label { display: inline; font-size: .76rem; }
  .gm-variants button { min-height: 44px; }
}
.gm-foot { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--surface); border-top: 1px solid var(--rule); }
.gm-foot .gm-economy { flex: 1 1 19rem; min-width: 0; border-top: 0; }
.gm-map-actions { display: flex; flex-wrap: wrap; align-self: center; gap: .45rem; margin-inline-start: auto; padding: .5rem .85rem; }
.gm-map-actions button, .gm-share-actions button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.gm-foot .gm-toolbar-cta { align-self: center; margin: 0 .85rem; }
.gm-app:not([data-phase="map"]) .gm-foot { display: none; }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) { .gm-foot { display: block; } }
@media (max-width: 520px) {
  .gm-app[data-phase="map"] .gm-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-app[data-phase="map"] .gm-variants button { flex-wrap: wrap; gap: .2rem .35rem; white-space: normal; }
}
.gm-app small { font-family: inherit; letter-spacing: 0; text-transform: none; }
.gm-app:not(.is-panel-collapsed) .gm-foot .gm-toolbar-cta { display: none; }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) { .gm-app .gm-foot .gm-toolbar-cta { display: none !important; } }
.gm-intro { padding-block: clamp(1rem, 3vw, 1.75rem) .9rem; }
.gm-intro h1 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); }
.gm-workbench { --gm-map-height: clamp(640px, calc(100dvh - 96px), 900px); height: var(--gm-map-height); }
.gm-app[data-phase="map"] .gm-workbench:has(> .gm-guide:not([hidden])) { height: auto; grid-template-rows: calc(var(--gm-map-height) - 2px) auto; }
.gm-mobile-map-actions, .gm-app:not([data-phase="map"]) .gm-guide { display: none; }
.gm-guide { grid-column: 1 / -1; grid-row: 2; min-width: 0; padding: .8rem .95rem 1rem; border-top: 1px solid var(--rule); background: var(--surface); }
.gm-guide-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .45rem; }
.gm-guide-header h2 { margin: 0; font-size: 1.35rem; }
.gm-guide-header button { min-height: 44px; }
.gm-guide-actions { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; }
.gm-guide-actions button { display: flex; flex-direction: column; width: 100%; height: 100%; padding: .6rem .65rem; border: 1px solid var(--rule); border-radius: .45rem; background: var(--paper); color: var(--ink); text-align: start; }
.gm-guide-actions button:hover { border-color: var(--accent); }
.gm-guide-actions strong { display: flex; align-items: center; gap: .35rem; font-size: .86rem; line-height: 1.2; }
.gm-guide-actions svg, .gm-mobile-map-actions svg { width: 16px; height: 16px; }
.gm-guide-actions span { display: block; margin-top: .3rem; color: var(--sub); font-size: .78rem; line-height: 1.4; }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) {
  .gm-app[data-phase="map"] .gm-mobile-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; padding: .25rem .75rem; }
  .gm-mobile-map-actions .gm-secondary { display: inline-flex; align-items: center; gap: .4rem; }
  .gm-mobile-map-actions button { min-height: 44px; }
  .gm-app:not(:has(.gm-guide:not([hidden]))) .gm-guide-jump { display: none; }
  .gm-guide-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gm-app { scroll-margin-top: 4.6rem; }

/* ===== Polish pass: icons, tooltips, legend, hint, scan ===== */
.gm-app :is(h1, h2, h3, h4, section, aside)[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.gm-tools button svg, .gm-tools summary svg { width: 18px; height: 18px; display: block; }
.gm-tools button, .gm-tools summary { transition: background var(--gm-fast), color var(--gm-fast), transform var(--gm-fast) var(--gm-ease); }
.gm-tools button:not(:disabled):active { transform: scale(.92); }
.gm-menu > div button { display: flex; align-items: center; gap: .5rem; }

/* Nodes: full two-line names, fine print lives in the hover card */
.gm-node-subtitle { display: none; }
.gm-node-text { padding-bottom: 8px; }
.gm-node-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal;
  overflow: hidden; line-height: 1.2; font-size: 13.5px; text-wrap: balance;
}
.gm-stage.is-small .gm-node-title { font-size: calc(13.5px * var(--gm-boost, 1)); }
.gm-tip {
  position: absolute; z-index: 6; display: grid; gap: .22rem; width: 250px; padding: .65rem .8rem; pointer-events: none;
  transform: translate(-50%, -100%); border: 1px solid #ffffff2b; border-radius: .6rem;
  background: color-mix(in oklab, var(--night, #192027) 90%, #f3dfc8); box-shadow: 0 14px 34px -10px #000a;
  color: #f4ece1; font-size: 12.5px; line-height: 1.35; animation: gm-tip-in 160ms var(--gm-ease) both;
}
.gm-tip.is-below { transform: translate(-50%, 0); }
.gm-tip strong { font-size: 13.5px; }
.gm-tip span { color: #d5cdc0; }
.gm-tip em { width: fit-content; margin-top: .1rem; padding: 1px 7px; border-radius: 4px; background: #ffffff16; color: #f5d0a9; font-style: normal; font-size: 11.5px; }
@keyframes gm-tip-in { from { opacity: 0; margin-top: 4px; } to { opacity: 1; margin-top: 0; } }

/* Legend and first-run hint */
.gm-legend { position: absolute; z-index: 3; left: 14px; bottom: 12px; display: none; gap: .9rem; margin: 0; padding: .35rem .65rem; list-style: none; pointer-events: none;
  border: 1px solid #ffffff1c; border-radius: 999px; background: #0007; color: #d5cdc0; font-size: 11px; }
.gm-app[data-phase="map"] .gm-legend { display: flex; }
.gm-legend li { display: flex; align-items: center; gap: .4rem; }
.gm-legend li::before { content: ''; width: 18px; height: 0; border-top: 2px solid #f4c9a7; }
.gm-legend [data-kind="loss"]::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #e5484d; box-shadow: 0 0 8px #e5484da0; }
.gm-legend [data-kind="loop"]::before { border-top: 2px dashed #86bb9f; }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) { .gm-legend { display: none !important; } }

/* Analysis scene */
.gm-scan-panel { width: min(100%, 440px); padding: 1.45rem 1.6rem 1.3rem; text-align: start; }
.gm-scan-panel ol { display: grid; gap: .2rem; min-height: 0; margin-bottom: 1rem; }
.gm-scan-panel li { opacity: .42; transition: opacity 320ms var(--gm-ease), color 320ms; font-size: 1.02rem; }
.gm-scan-panel li:is([data-state="active"], [data-state="done"]) { opacity: 1; }
.gm-scan-panel li span { transition: background 320ms, border-color 320ms; }
.gm-scan-panel li[data-state="done"] span { background: #f6c88f2b; border-color: #f6c88f; }
.gm-scan-panel li[data-state="active"] span { border-color: #f6c88f66; border-top-color: #f6c88f; animation: gm-spin 780ms linear infinite; }
.gm-scan-bar { height: 3px; margin-bottom: 1rem; overflow: hidden; border-radius: 3px; background: #ffffff1f; }
.gm-scan-bar i { display: block; height: 100%; width: var(--gm-scan, 25%); border-radius: inherit; background: linear-gradient(90deg, #d99a85, #f5d0a9); transition: width 900ms var(--gm-ease); }
.gm-scan-panel .gm-secondary { display: block; margin-inline-start: auto; }
@keyframes gm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gm-scan-panel li[data-state="active"] span, .gm-tip { animation: none; } }

/* Form controls in the side panel */
.gm-inspector select, .gm-brief select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 2rem; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23887766' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .7rem center / .7rem;
}
.gm-inspector-effect { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.gm-inspector-heading h2 { font-size: 1.3rem; }

/* Comparison: revenue bars, livelier cards */
.gm-bars { display: grid; gap: .32rem; margin: .1rem 0 .85rem; }
.gm-bar { display: grid; grid-template-columns: 5.4rem 1fr auto; align-items: center; gap: .55rem; font-size: .76rem; color: var(--sub); }
.gm-bar i { display: block; height: 9px; width: var(--w); border-radius: 9px; background: color-mix(in srgb, var(--ink) 22%, var(--paper)); transform-origin: left; }
.gm-bar[data-key="now"] i { background: #bd514b; opacity: .75; }
.gm-bar[data-key="boost"] i { background: var(--accent); }
.gm-bar[data-active] { color: var(--ink); font-weight: 650; }
.gm-bar[data-active] i { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.gm-bar b { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); min-width: 5.2ch; text-align: end; }
.gm-vcard { transition: transform 220ms var(--gm-ease), box-shadow 220ms, border-color 220ms; }
[data-enter] .gm-vcard { animation: gm-rise 420ms var(--gm-ease) both; }
[data-enter] .gm-vcard:nth-child(2) { animation-delay: 70ms; }
[data-enter] .gm-vcard:nth-child(3) { animation-delay: 140ms; }
.gm-vcard:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px -14px #0006; }
.gm-vcard .gm-text-button { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; font-weight: 650; }
.gm-vcard .gm-text-button::after { content: '→'; transition: transform 220ms var(--gm-ease); }
.gm-vcard .gm-text-button:hover::after { transform: translateX(3px); }
@keyframes gm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gm-difference { transition: border-color 200ms, transform 200ms var(--gm-ease); }
.gm-difference:hover { border-color: var(--accent); transform: translateX(2px); }

/* Brief: invalid fields and step transitions */
.gm-brief-field[data-invalid] { padding: .55rem .6rem; border-radius: .5rem; background: color-mix(in srgb, #bd514b 8%, transparent); box-shadow: 0 0 0 1px #bd514b; animation: gm-shake 380ms var(--gm-ease); }
.gm-brief-field[data-invalid] > :is(legend, label) { color: #bd514b; }
@keyframes gm-shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
[data-enter] .gm-brief-body { animation: gm-step 340ms var(--gm-ease) both; }
@keyframes gm-step { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.gm-chip { transition: background 160ms, border-color 160ms, transform 160ms var(--gm-ease); }
.gm-chip:active { transform: scale(.96); }
.gm-chip[aria-pressed="true"] svg { transform: scale(1.12); }
.gm-progress-step > span { transition: background 200ms, border-color 200ms, color 200ms, transform 200ms var(--gm-spring); }
.gm-progress-step[aria-current] > span { transform: scale(1.12); }
.gm-progress-step:not(:disabled):not([aria-current]) > span { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { [data-enter] .gm-vcard, [data-enter] .gm-brief-body, .gm-brief-field[data-invalid] { animation: none; } }

/* Page: steps, trust chips, below-the-app sections */
.gm-intro-steps { counter-reset: gm-step; gap: .5rem 1.1rem; }
.gm-intro-steps li { counter-increment: gm-step; align-items: center; color: var(--ink); font-size: .9rem; }
.gm-intro-steps li::before { content: counter(gm-step); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--accent); border-radius: 50%; background: transparent; color: var(--accent); font-size: .74rem; font-weight: 700; align-self: center; }
.gm-intro-steps li + li::after { content: none; }
.gm-trust { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.gm-trust li { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--sub); font-size: .78rem; }
.gm-trust svg { width: 14px; height: 14px; color: var(--accent); }
.gm-about { padding-block: 3.2rem 1rem; }
.gm-about h2 { margin: 0 0 1.1rem; font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.gm-about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gm-about-grid article { padding: 1.15rem 1.2rem; border: 1px solid var(--rule); border-radius: .8rem; background: var(--surface); transition: transform 240ms var(--gm-ease), border-color 240ms; }
.gm-about-grid article:hover { transform: translateY(-3px); border-color: var(--accent); }
.gm-about-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; border-radius: .6rem; background: color-mix(in srgb, var(--accent) 14%, var(--paper)); color: var(--accent); }
.gm-about-icon svg { width: 22px; height: 22px; }
.gm-about-grid h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.gm-about-grid p { margin: 0; color: var(--sub); font-size: .92rem; }
.gm-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 3rem; }
.gm-how p { margin: 0; color: var(--sub); max-width: 62ch; }
.gm-faq details { border-bottom: 1px solid var(--rule); }
.gm-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; cursor: pointer; list-style: none; font-weight: 650; }
.gm-faq summary::-webkit-details-marker { display: none; }
.gm-faq summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; line-height: 1; transition: transform 220ms var(--gm-ease); }
.gm-faq details[open] summary::after { transform: rotate(45deg); }
.gm-faq details p { padding-bottom: .9rem; animation: gm-rise 300ms var(--gm-ease) both; }
.gm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 3rem; padding: 1.6rem 1.8rem; border-radius: 1rem; background: var(--night); color: #f5efe6; }
.gm-cta h2 { margin: 0 0 .3rem; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: inherit; }
.gm-cta p { margin: 0; color: #d5cdc0; }
.gm-cta .button { display: inline-flex; align-items: center; gap: .55rem; }
.gm-cta .button svg { width: 18px; height: 18px; }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) { .gm-about-grid, .gm-how { grid-template-columns: 1fr; } .gm-how { gap: 2rem; } .gm-about { padding-top: 2.2rem; } }
@media (prefers-reduced-motion: reduce) { .gm-faq details p { animation: none; } .gm-about-grid article { transition: none; } }
.gm-app [tabindex="-1"]:focus { outline: none; }
.gm-cta .button { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.gm-cta .button:hover { filter: brightness(1.06); text-decoration: none; }
.gm-app:is([data-phase="choose"], [data-phase="resume"], [data-phase="text"], [data-phase="scan"]) .gm-toolbar { display: none; }
@media (max-width: 899px), (max-width: 1024px) and (pointer: coarse) {
  .gm-workbench { height: auto; min-height: 0; }
  .gm-app:is([data-phase="choose"], [data-phase="resume"], [data-phase="text"], [data-phase="scan"]) .gm-scene {
    height: auto; min-height: 0;
  }
  .gm-app:is([data-phase="choose"], [data-phase="resume"], [data-phase="text"], [data-phase="scan"]) .gm-stage {
    position: absolute; inset: 0; filter: none; opacity: .24; transition: none;
  }
  .gm-app:is([data-phase="choose"], [data-phase="resume"], [data-phase="text"], [data-phase="scan"]) .gm-overlay {
    position: relative; min-width: 0; overflow: visible; padding: .75rem;
  }
  .gm-app .gm-text-form textarea { font-size: 1rem; max-height: none; }
  .gm-app .gm-brief input:not([type="range"], [type="checkbox"]) { font-size: 1rem; }
  .gm-app[data-phase="map"] .gm-stage.is-volume { perspective: none; }
  .gm-variants button { min-height: 44px; }
}
@media (max-width: 540px) {
  .gm-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-variants button { flex-wrap: wrap; align-content: center; gap: .15rem .35rem; padding: .25rem .35rem; }
}

/* Entry screen motion */
.gm-entry-panel { animation: gm-pop 560ms var(--gm-spring) both; }
@keyframes gm-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.gm-mode-card { transition: background var(--gm-fast), border-color var(--gm-fast), transform 260ms var(--gm-ease), box-shadow 260ms; }
.gm-mode-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px #000c; }
.gm-mode-card:active { transform: translateY(-1px) scale(.99); }
.gm-mode-icon { transition: transform 260ms var(--gm-spring), background 200ms; }
.gm-mode-card:hover .gm-mode-icon { transform: rotate(-6deg) scale(1.1); background: #e9ba8450; }
.gm-entry-panel > .gm-text-button { transition: color 160ms; }
.gm-entry-panel > .gm-text-button:hover { color: #fff0d9; }
.gm-variants button { transition: background 200ms, color 200ms, transform 200ms var(--gm-ease); }
.gm-variants button:not(:disabled):active { transform: scale(.96); }
.gm-toolbar-cta, .gm-handoff, .gm-form-actions .button { transition: transform 200ms var(--gm-ease), filter 200ms, box-shadow 200ms; }
.gm-toolbar-cta:hover, .gm-handoff:hover, .gm-form-actions .button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px #0008; text-decoration: none; }
.gm-handoff svg { transition: transform 260ms var(--gm-ease); }
.gm-handoff:hover svg { transform: translate(2px, -2px) rotate(-8deg); }
.gm-library-card { transition: border-color 160ms, transform 200ms var(--gm-ease), background 160ms; }
.gm-library-card:hover { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .gm-entry-panel { animation: none; } .gm-mode-card:hover, .gm-library-card:hover { transform: none; } }

/* ===== Sales layer ===== */
.gm-pane .gm-headline { margin: -.2rem 0 .35rem; font-family: 'Bureau Serif', Georgia, serif; font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.gm-rec {
  position: relative; margin: .2rem 0 .85rem; padding: .95rem 1rem .9rem; overflow: hidden;
  border-radius: .75rem; background: var(--night); color: #f4ece1; box-shadow: 0 16px 32px -22px #000c;
}
.gm-rec::before { content: ''; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 34%, transparent), transparent); pointer-events: none; }
.gm-rec > * { position: relative; }
.gm-pane .gm-rec-kicker { display: flex; align-items: center; gap: .35rem; margin: 0 0 .25rem; color: #f5c894; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gm-rec-kicker svg { width: 14px; height: 14px; }
.gm-pane .gm-rec h3 { margin: 0 0 .55rem; color: #fff6ea; font-size: 1.12rem; }
.gm-rec ul { display: grid; gap: .45rem; margin: 0 0 .6rem; padding: 0; list-style: none; }
.gm-rec li { display: grid; grid-template-columns: 18px 1fr; gap: .45rem; font-size: .84rem; line-height: 1.4; color: #e9dfd0; }
.gm-rec li svg { width: 16px; height: 16px; margin-top: .1rem; color: #93d8a3; }
.gm-pane .gm-rec-next { margin: 0 0 .7rem; padding-top: .55rem; border-top: 1px solid #ffffff1c; color: #d5cdc0; font-size: .8rem; }
.gm-rec-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.gm-rec-actions .button { display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .45rem .85rem; background: var(--accent); color: var(--night); border-color: transparent; font-size: .84rem; font-weight: 700; }
.gm-rec-actions .button svg { width: 16px; height: 16px; }
.gm-rec-actions .gm-secondary { color: #f8efe3; border-color: #a99983; background: transparent; }
[data-enter] .gm-rec { animation: gm-rise 460ms var(--gm-ease) both; }
.gm-objections { margin-top: .9rem; }
.gm-objections details { border-bottom: 1px solid var(--rule); }
.gm-objections summary { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; cursor: pointer; list-style: none; font-size: .86rem; font-weight: 650; }
.gm-objections summary::-webkit-details-marker { display: none; }
.gm-objections summary::before { content: '«'; color: var(--accent); }
.gm-objections summary::after { content: '+'; margin-inline-start: auto; color: var(--accent); transition: transform 200ms var(--gm-ease); }
.gm-objections details[open] summary::after { transform: rotate(45deg); }
.gm-pane .gm-objections p { margin: 0 0 .65rem; color: var(--sub); font-size: .82rem; }
.gm-nudge {
  display: inline-flex; align-items: center; gap: .45rem; margin: .4rem 0 0; padding: .32rem .7rem; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--rule));
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--paper)); color: var(--ink); font-size: .78rem; font-weight: 650;
  transition: transform 200ms var(--gm-ease), background 200ms;
}
.gm-nudge svg { width: 15px; height: 15px; color: var(--accent); }
button.gm-nudge:hover { transform: translateX(3px); background: color-mix(in srgb, var(--accent) 18%, var(--paper)); }
button.gm-nudge > span:last-child { transition: transform 200ms var(--gm-ease); }
button.gm-nudge:hover > span:last-child { transform: translateX(2px); }
.gm-nudge-top { border-style: dashed; cursor: default; color: var(--sub); font-weight: 500; }
.gm-ai-consent { display: flex; align-items: flex-start; gap: .5rem; margin: .6rem 0 .2rem; padding: .55rem .65rem; border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--rule)); border-radius: .5rem; font-size: .78rem; line-height: 1.35; color: var(--sub); cursor: pointer; }
.gm-ai-consent input { margin-top: .12rem; accent-color: var(--accent); flex: none; }
.gm-ai-consent svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.gm-text-form .gm-ai-consent { color: #d5cdc0; border-color: #a9998380; }
@media (prefers-reduced-motion: reduce) { [data-enter] .gm-rec { animation: none; } button.gm-nudge:hover { transform: none; } }
.gm-app .gm-ai-consent { display: grid; grid-template-columns: auto auto 1fr; align-items: start; }
.gm-app .gm-ai-consent input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; min-width: 0; margin: .1rem 0 0; padding: 0; border: 0; background: none; }
.gm-app .gm-ai-consent span { display: block; }

/* ===== v2: site-native, light canvas in copper/sky, dark kept for midnight ===== */
.gm-page{--gm-focus:var(--accent)}
.gm-intro{padding-block:clamp(7rem,10vw,8.5rem) 1.5rem}
.gm-intro .eyebrow{margin-bottom:.6rem}
.gm-intro h1{font-size:clamp(2.3rem,4.6vw,4rem)}
.gm-intro .intro{max-width:56ch;margin:.9rem 0 1rem}
.gm-trust{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;margin:0;padding:0;list-style:none;color:var(--sub);font-size:.92rem}
.gm-trust li{display:inline-flex;align-items:center;gap:.4rem;border:0;background:none;padding:0}
.gm-trust svg{width:1rem;height:1rem;color:var(--accent)}
.gm-app{width:min(1500px,calc(100% - 2*var(--pad)))}
.gm-workbench{border-radius:var(--r);border-color:var(--rule);box-shadow:none}
.gm-lane-heading{font-family:inherit;text-transform:none;letter-spacing:.01em;font-size:12.5px}
.gm-economy-stats dd,.gm-vcard-revenue strong{font-family:inherit}
.gm-variants button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}

/* verdict */
.gm-verdict{display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(1.2rem,3vw,2.5rem);margin:0 0 1.2rem;padding:clamp(1.4rem,3.5vw,2.6rem);border:1px solid var(--rule);border-radius:var(--r);background:var(--paper)}
.gm-verdict[hidden]{display:none}
.gm-verdict-label{margin:0 0 .5rem;font-size:.92rem;font-weight:600;color:var(--sub)}
.gm-verdict-sum{margin:0;line-height:1}
.gm-verdict-sum span{font-size:clamp(2.8rem,7vw,5.6rem);font-weight:700;letter-spacing:-.04em;color:#c4363c;font-variant-numeric:tabular-nums}
.gm-verdict-sum small{font-size:1.1rem;color:var(--sub)}
.gm-verdict-text{margin:.9rem 0 .4rem;max-width:44ch;font-size:1.05rem}
.gm-verdict-meta{margin:.2rem 0 0;color:var(--sub);font-size:.92rem}
.gm-verdict-where ul{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.gm-verdict-where li{display:flex;align-items:center;gap:.6rem;padding:.65rem .85rem;border:1px solid var(--rule);border-radius:var(--r2);background:var(--surface);font-weight:600}
.gm-verdict-where li:before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:#e5484d;flex:none}
.gm-verdict-paths{grid-column:1/-1}
.gm-verdict-paths>div{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.gm-path{display:grid;gap:.2rem;text-align:left;padding:1rem 1.1rem;border:1px solid var(--rule-strong);border-radius:var(--r2);background:var(--paper);transition:border-color .2s,background .2s}
.gm-path:hover{border-color:var(--ink)}
.gm-path[aria-pressed="true"]{border-color:var(--ink);background:var(--surface);box-shadow:inset 0 0 0 1px var(--ink)}
.gm-path-name{font-weight:600}.gm-path-name small{color:var(--accent);font-weight:600;font-size:.8rem}
.gm-path strong{font-size:1.9rem;font-weight:700;letter-spacing:-.03em;color:light-dark(#2d6638,#93d8a3);font-variant-numeric:tabular-nums}
.gm-path span:not(.gm-path-name){color:var(--sub);font-size:.88rem}
@media(max-width:899px){.gm-verdict{grid-template-columns:1fr}.gm-verdict-paths>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.gm-verdict:not([hidden]) .gm-verdict-sum{animation:gm-verdict-in .7s var(--gm-ease) both}@keyframes gm-verdict-in{from{opacity:0;transform:translateY(10px)}}}

/* light canvas for copper and sky */
:root:not([data-theme=midnight]) .gm-page{--gm-scene-ink:var(--ink);--gm-scene-muted:var(--sub)}
:root:not([data-theme=midnight]) .gm-scene,:root:not([data-theme=midnight]) .gm-stage{background:var(--surface);color:var(--ink)}
:root:not([data-theme=midnight]) .gm-bg{background-image:radial-gradient(circle,color-mix(in srgb,var(--ink) 14%,transparent) 1px,transparent 1.2px);box-shadow:none}
:root:not([data-theme=midnight]) .gm-lane{background:color-mix(in oklab,var(--gm-color) 7%,var(--paper));border-color:color-mix(in oklab,var(--gm-color) 30%,var(--rule))}
:root:not([data-theme=midnight]) .gm-lane-heading{color:color-mix(in oklab,var(--gm-color) 55%,var(--ink))}
:root:not([data-theme=midnight]) .gm-lane-caption{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-node-face{background:var(--paper);border-color:var(--rule-strong);box-shadow:0 8px 18px -12px var(--shadow)}
:root:not([data-theme=midnight]) .gm-node-face::after{background:color-mix(in oklab,var(--gm-color) 35%,var(--paper))}
:root:not([data-theme=midnight]) .gm-node-icon{border:0;box-shadow:none;background:color-mix(in oklab,var(--gm-color) 24%,var(--paper));color:color-mix(in oklab,var(--gm-color) 45%,var(--ink))}
:root:not([data-theme=midnight]) .gm-node-title{color:var(--ink)}
:root:not([data-theme=midnight]) .gm-node-subtitle,:root:not([data-theme=midnight]) .gm-node-badge{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-node-effect{color:color-mix(in oklab,var(--gm-color) 45%,var(--ink));background:color-mix(in oklab,var(--gm-color) 16%,transparent)}
:root:not([data-theme=midnight]) .gm-node-badge.is-new{background:var(--surface);color:var(--accent)}
:root:not([data-theme=midnight]) .gm-node.is-orphan .gm-node-face{border-color:var(--sub)}
:root:not([data-theme=midnight]) .gm-node.is-leaking .gm-node-badge{box-shadow:none}
:root:not([data-theme=midnight]) .gm-node.is-selected .gm-node-face{box-shadow:0 0 0 2px var(--accent)}
:root:not([data-theme=midnight]) .gm-port{border-color:var(--paper)}
:root:not([data-theme=midnight]) .gm-edge-main{opacity:1}
:root:not([data-theme=midnight]) .gm-edge-depth{opacity:.12}
:root:not([data-theme=midnight]) .gm-edge-pulse{stroke:rgba(255,255,255,.95)}
:root:not([data-theme=midnight]) .gm-particle{fill:var(--accent);filter:none}
:root:not([data-theme=midnight]) .gm-particle-loss{fill:#d33a40;filter:none}
:root:not([data-theme=midnight]) .gm-edges .gm-leak path{filter:none}
:root:not([data-theme=midnight]) .gm-leak text{fill:#b3262c;stroke:var(--surface)}
:root:not([data-theme=midnight]) .gm-loop-guide path{stroke:var(--sub)}
:root:not([data-theme=midnight]) .gm-loop-guide text{fill:var(--sub)}
:root:not([data-theme=midnight]) .gm-connection-trace{stroke:var(--accent)}
:root:not([data-theme=midnight]) .gm-guides i{background:var(--accent)}
:root:not([data-theme=midnight]) .gm-minimap{background:var(--paper);border-color:var(--rule)}
:root:not([data-theme=midnight]) .gm-mini-window{fill:color-mix(in srgb,var(--ink) 6%,transparent);stroke:var(--ink)}
:root:not([data-theme=midnight]) .gm-empty{background:var(--paper);border-color:var(--rule);color:var(--ink)}
:root:not([data-theme=midnight]) .gm-canvas-restore{border-color:var(--accent);color:var(--accent)}
:root:not([data-theme=midnight]) .gm-selection-box{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
:root:not([data-theme=midnight]) .gm-drop-ghost{background:var(--paper);color:var(--ink);border-color:var(--accent)}
:root:not([data-theme=midnight]) .gm-edge-action{background:var(--paper);color:var(--ink);border-color:var(--accent)}
:root:not([data-theme=midnight]) .gm-tip{background:var(--paper);border-color:var(--rule-strong);color:var(--ink);box-shadow:0 14px 30px -14px var(--shadow)}
:root:not([data-theme=midnight]) .gm-tip span{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-tip em{background:var(--surface);color:var(--accent)}
:root:not([data-theme=midnight]) .gm-legend{background:var(--paper);border-color:var(--rule);color:var(--sub)}
:root:not([data-theme=midnight]) .gm-legend li::before{border-top-color:var(--accent)}
:root:not([data-theme=midnight]) .gm-legend [data-kind="loss"]::before{box-shadow:none}
:root:not([data-theme=midnight]) .gm-hint{background:var(--paper);border-color:var(--rule);color:var(--ink);box-shadow:0 16px 36px -16px var(--shadow)}
:root:not([data-theme=midnight]) .gm-hint ul{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-hint :is(strong,li) svg{color:var(--accent)}
:root:not([data-theme=midnight]) .gm-hint .gm-secondary{background:var(--surface);color:var(--ink);border-color:var(--rule-strong)}
:root:not([data-theme=midnight]) .gm-overlay{color:var(--ink);background:color-mix(in srgb,var(--surface) 55%,transparent)}
:root:not([data-theme=midnight]) .gm-entry-panel{background:var(--paper);border-color:var(--rule);color:var(--ink);box-shadow:0 24px 60px -30px var(--shadow)}
:root:not([data-theme=midnight]) .gm-entry-panel>p{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-mode-card{background:var(--surface);border-color:var(--rule-strong)}
:root:not([data-theme=midnight]) .gm-mode-card:hover{border-color:var(--ink);background:var(--surface)}
:root:not([data-theme=midnight]) .gm-mode-card>:last-child,:root:not([data-theme=midnight]) .gm-mode-time{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-mode-icon{background:var(--paper);color:var(--accent)}
:root:not([data-theme=midnight]) .gm-entry-panel>.gm-text-button,:root:not([data-theme=midnight]) .gm-text-form .gm-text-button{color:var(--accent)}
:root:not([data-theme=midnight]) .gm-text-form label{color:var(--ink)}
:root:not([data-theme=midnight]) .gm-text-form textarea{background:var(--paper);color:var(--ink);border-color:var(--rule-strong)}
:root:not([data-theme=midnight]) .gm-text-form-footer output{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-text-form .gm-chip{background:var(--surface);color:var(--ink);border-color:var(--rule)}
:root:not([data-theme=midnight]) .gm-text-form .gm-chip:hover{background:var(--paper)}
:root:not([data-theme=midnight]) .gm-scan-panel{background:var(--paper);border-color:var(--rule)}
:root:not([data-theme=midnight]) .gm-scan-panel li{color:var(--sub)}
:root:not([data-theme=midnight]) .gm-scan-panel li[aria-current]{color:var(--ink)}
:root:not([data-theme=midnight]) .gm-scan-panel li span{border-color:var(--rule-strong);color:var(--accent)}
:root:not([data-theme=midnight]) .gm-scan-line{background:var(--accent);box-shadow:none}
:root:not([data-theme=midnight]) .gm-business-badge{background:var(--paper);border-color:var(--rule);color:var(--ink)}
.gm-map-actions svg, .gm-dialog .button svg, .gm-share-actions svg { width: 16px; height: 16px; }
.gm-dialog {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 1.3rem;
  border: 1px solid var(--rule);
  border-radius: .8rem;
  box-shadow: 0 1rem 3rem #0004;
}
.gm-dialog h2 { padding-inline-end: 2rem; margin-bottom: .45rem; font-size: 1.6rem; }
.gm-dialog p { color: var(--sub); }
.gm-captcha-overlay {
  position: fixed; z-index: 5000; inset: 0; display: grid; place-items: center; overflow: auto;
  background: #181b1780;
}
.gm-dialog.gm-captcha { box-sizing: border-box; width: min(26rem, 100%); padding: clamp(8px, calc((100vw - 302px) / 2), 1.3rem); background: var(--paper, #fcfaf7); color: var(--ink, #181b17); }
.gm-captcha h2 { padding: 0; }
.gm-captcha p:empty { display: none; }
.gm-captcha #gm-captcha-widget { margin-block: .7rem; }
.gm-pdf-dialog fieldset { display: grid; gap: .25rem; margin: 1rem 0 .45rem; padding: .45rem .7rem; border: 1px solid var(--rule); border-radius: .45rem; }
.gm-pdf-dialog .gm-pdf-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.gm-pdf-dialog label { display: flex; align-items: center; gap: .45rem; min-height: 44px; cursor: pointer; }
.gm-pdf-dialog input { accent-color: var(--accent); }
.gm-pdf-sheet-option { padding: .4rem; border-radius: .35rem; }
.gm-pdf-sheet-option:has(:checked) { background: var(--surface); }
.gm-pdf-sheet-option span { min-width: 0; }
.gm-pdf-sheet-option strong { display: block; font-size: .88rem; line-height: 1.2; }
.gm-pdf-sheet-option small { display: block; margin-top: .2rem; color: var(--sub); white-space: nowrap; }
.gm-pdf-sheet { flex: none; width: 1rem; margin-inline-start: auto; aspect-ratio: 210 / 297; border: 1px solid var(--sub); border-radius: .12rem; }
.gm-pdf-sheet[data-orientation="landscape"] { width: 1.4rem; aspect-ratio: 297 / 210; }
@media (max-width: 340px) {
  .gm-pdf-dialog .gm-pdf-options { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.gm-dialog-close { position: absolute; inset: .45rem .45rem auto auto; min-width: 44px; min-height: 44px; font-size: 1.45rem; }
.gm-pdf-status { min-height: 1.5rem; margin-top: .4rem; font-size: .85rem; }
.gm-share-dialog input { width: 100%; min-height: 44px; margin-block: .8rem .4rem; padding: .55rem .65rem; border: 1px solid var(--rule); border-radius: .4rem; background: var(--surface); color: var(--ink); font: inherit; }
.gm-share-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.gm-share-actions button:disabled { opacity: .55; }
.gm-share-note, .gm-share-status { font-size: .85rem; }
.gm-share-status:not(:empty) { margin-top: .6rem; }

/* plain labels, no mono (matches the site) */
.gm-page .eyebrow,.gm-intro .eyebrow,.gm-app small,.gm-lane-heading{font-family:'Bureau Sans',system-ui,sans-serif!important;text-transform:none!important;letter-spacing:0!important}

/* Brief on phones: bigger targets, readable progress, the Next button always within reach */
.gm-all-categories{margin-top:.5rem;font-weight:600;color:var(--accent);min-height:44px}
.gm-brief .gm-chip,.gm-brief [data-gm-p-field]{min-height:44px}
.gm-progress small{font-size:.72rem;line-height:1.2}
@media(max-width:899px){
  .gm-brief .gm-form-actions{position:sticky;bottom:0;z-index:5;display:flex;gap:.6rem;padding:.75rem 0 calc(.75rem + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--paper) 78%,transparent)}
  .gm-brief .gm-form-actions .button{flex:1;justify-content:center;min-height:3.1rem}
  .gm-progress li:not(:has([aria-current])) small{display:none}
  .gm-brief input,.gm-brief textarea,.gm-brief select{font-size:16px}
}

/* unified brief: one question per block, same card pattern everywhere */
.gm-format-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.gm-format-card{display:grid;gap:.25rem;align-content:start;text-align:left;padding:.9rem 1rem;min-height:5.2rem;border:1px solid var(--gm-line,var(--rule));border-radius:12px;background:var(--paper,#fff);color:inherit;font:inherit;cursor:pointer;transition:border-color .2s,background .2s,transform .25s}
.gm-format-card strong{font-size:1.05rem}
.gm-format-card small{color:var(--sub);font-size:.82rem;line-height:1.35}
.gm-format-card:hover{border-color:var(--ink);transform:translateY(-1px)}
.gm-format-card[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--paper,#fff));box-shadow:inset 0 0 0 1px var(--accent)}
.gm-brief-field>legend,.gm-brief-field>label{font-weight:650;font-size:1.02rem;margin-bottom:.5rem}
.gm-brief-field{animation:gmfieldin .45s var(--ease,ease) both}
@keyframes gmfieldin{from{opacity:0;transform:translateY(8px)}}
@media(max-width:760px){.gm-format-cards{grid-template-columns:1fr}.gm-format-card{min-height:0}}
@media(prefers-reduced-motion:reduce){.gm-brief-field{animation:none}}
.gm-format-cards{grid-template-columns:1fr}.gm-format-card{min-height:0;grid-template-columns:1fr}

/* every step uses the same card-like choice buttons with comfortable tap targets */
.gm-brief .gm-chip{min-height:44px;padding:.55rem .95rem;border-radius:12px;font-size:.95rem;line-height:1.25}
.gm-brief .gm-chip-list{gap:.5rem}
.gm-brief .gm-chip[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--paper,#fff));box-shadow:inset 0 0 0 1px var(--accent)}
.gm-brief .gm-brief-field{margin-bottom:1.35rem}
.gm-brief .gm-brief-field>small,.gm-brief .gm-brief-field>.gm-field-note{display:block;color:var(--sub);margin-top:.5rem}
.gm-brief input[type=number],.gm-brief input[type=text],.gm-brief input[type=search]{min-height:46px;border-radius:12px}
.gm-verdict-cta{display:grid;gap:.6rem;margin-top:1.2rem}.gm-verdict-cta a{display:grid;place-items:center;min-height:48px;border-radius:99px;padding:.6rem 1.2rem;font-weight:600;text-decoration:none}.gm-cta-main{background:var(--ink);color:var(--paper,#fff)}.gm-cta-alt{border:1px solid var(--rule-strong,var(--rule));color:inherit}

/* list view: readable on every theme, one row per block */
.gm-linear-list{background:var(--paper,#fff);color:var(--ink)}
.gm-linear-list section{padding:.2rem 0 .6rem;border-bottom:1px solid var(--rule)}
.gm-linear-list section:last-child{border-bottom:0}
.gm-linear-list h3{color:var(--accent);font-size:.82rem;font-weight:650;letter-spacing:.02em;margin:.2rem 0 .5rem}
.gm-linear-list ol{list-style:none;padding:0;margin:0;display:grid;gap:.35rem}
.gm-linear-list li{display:grid;gap:.15rem;padding:.65rem .8rem;border:1px solid var(--rule);border-radius:12px;background:var(--surface)}
.gm-linear-list li+li{margin-top:0}
.gm-linear-list li>*{min-width:0}
.gm-linear-list p{color:var(--sub);font-size:.8rem;line-height:1.35}
.gm-linear-list strong{margin-inline-start:.5rem;color:#2c7a4b;font-size:.8rem;font-weight:650}
.gm-list-node{display:inline;padding:0;text-align:left;font-weight:650;font-size:.95rem;text-decoration:none;color:var(--ink)}
@media(max-width:760px){.gm-stage.is-listing{min-height:26rem}}
