/* pro.css (11/9 night, Joseph: "Make the app professional grade"): the finishing layer, loaded LAST by web/index.html and linked by every built dashboard page
   (modules/dashboards/build_pages.py), so native screens and framed dashboards take the same scales together.

   What lives here
     1. ONE type scale (11 12 13 14 16 20 24 px), ONE spacing scale (4 8 12 16 24 px), one radius (8 cards, 6 controls) for look C, the default look.
     2. The shell: a one-line masthead that never wraps, the account menu, the data-feeds chip, the icon rail.
     3. One page header order, two tab styles (underline for places, segmented for views).
     4. One table style, one tile style, one chart frame, banners.
     5. Parts every look gets: the shortcuts overlay, skeleton loading, the error card, focus rings, print.
   Colours: tokens only (web/looks-tokens.css holds every value). Look A and B keep their own structure; only section 5 reaches them.
   Undo: remove the <link href="/pro.css"> and <script src="/pro.js"> lines from web/index.html and the PRO_LINK line from build_pages.py, rebuild the pages. */

/* ============================================================================================ 1. scales (look C) */
html[data-look="c"] {
  --p-1: 4px; --p-2: 8px; --p-3: 12px; --p-4: 16px; --p-5: 24px;
  --p-fs-xs: 11px; --p-fs-sm: 12px; --p-fs-md: 13px; --p-fs-lg: 14px; --p-fs-xl: 16px; --p-fs-h2: 20px; --p-fs-h1: 24px;
  --p-r: 8px; --p-r-ctl: 6px; --p-gutter: 24px; --p-mast-h: 48px; --p-rail: 76px;
  --k-lbl-size: 11px;
}
html[data-look="c"]:root body { font-size: var(--p-fs-lg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[data-look="c"]:root table { font-variant-numeric: tabular-nums lining-nums; }
html[data-look="c"]:root :focus-visible { outline: 2px solid var(--gn-wine); outline-offset: 2px; }
html[data-look="c"]:root ::selection { background: var(--gn-wine-soft); }

/* ============================================================================================ 2. shell */
/* masthead: one line, fixed height, never wraps (the page under it never jumps between screens) */
html[data-look="c"]:root .gn-mast.app-mast { border-bottom: 1px solid var(--mast-line); position: relative; z-index: 80; }
@media (min-width: 821px) { html[data-look="c"]:root .app-mast-in { flex-wrap: nowrap; height: var(--p-mast-h); min-height: var(--p-mast-h); padding: 0 var(--p-4) 0 14px; gap: 6px; align-items: center; } }
html[data-look="c"]:root .app-mast-in { gap: 6px; align-items: center; }
html[data-look="c"]:root .app-mast img { height: 24px; }
html[data-look="c"]:root .app-product { display: none; }
@media (min-width: 821px) { html[data-look="c"]:root .app-isearch { flex: 0 1 400px; min-width: 150px; margin-left: 18px; } }
html[data-look="c"]:root .app-isearch-field { position: relative; width: 100%; }
html[data-look="c"]:root .app-isearch-field input { width: 100%; box-sizing: border-box; height: 32px; padding: 0 58px 0 12px; font: 400 var(--p-fs-md)/1 var(--f-body); color: var(--mast-ink); background: var(--surface-2); border: 1px solid var(--mast-line); border-radius: var(--p-r); }
html[data-look="c"]:root .app-isearch-field input:hover { border-color: var(--line-strong); }
html[data-look="c"]:root .app-isearch-field input:focus { background: var(--surface); border-color: var(--gn-wine); outline: 0; box-shadow: 0 0 0 3px var(--gn-wine-soft); }
html[data-look="c"]:root .app-isearch-field::after { content: "Ctrl K"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 var(--p-fs-xs)/1 var(--f-body); color: var(--mast-muted); border: 1px solid var(--mast-line); border-radius: 4px; padding: 3px 5px; background: var(--surface); pointer-events: none; }
html[data-look="c"]:root .app-isearch-field:focus-within::after { content: "Esc"; }
html[data-look="c"]:root .app-isearch-list { border-radius: var(--p-r); box-shadow: var(--pop-shadow); }
html[data-look="c"]:root .app-toplink { font: 500 var(--p-fs-md)/1 var(--f-body); color: var(--mast-ink); padding: 8px 8px; border-radius: var(--p-r-ctl); }
html[data-look="c"]:root .app-toplink:hover { background: var(--surface-2); text-decoration: none; }
html[data-look="c"]:root .app-count { font: 600 var(--p-fs-xs)/1.6 var(--f-body); background: var(--gn-wine-soft); color: var(--gn-wine); }
html[data-look="c"]:root .app-mast-in > #asksLink, html[data-look="c"]:root .app-mast-in > .lk-switch, html[data-look="c"]:root .app-mast-in > #themeBtn, html[data-look="c"]:root .app-mast-in > .app-viewas { display: none; }   /* they live in the account menu (pro.js moves them; hidden here so nothing flashes before it runs) */
@media (min-width: 601px) { html[data-look="c"]:root .app-more { display: none; } }
@media (max-width: 600px) { .pro-acct { display: none; } }

/* the data-feeds chip: one quiet line; red only when the feed behind THIS screen is held (the pill's own class says so) */
html[data-look="c"]:root .app-mast #agePill, html[data-look="c"]:root .app-mast #checksPill { display: block; position: relative; flex: 0 1 auto; min-width: 0; max-width: 40ch; height: 30px; box-sizing: border-box; padding: 0 12px 0 26px; font: 500 var(--p-fs-sm)/28px var(--f-body); color: var(--mast-ink); background: var(--surface); border: 1px solid var(--mast-line); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
html[data-look="c"]:root .app-mast #agePill::before, html[data-look="c"]:root .app-mast #checksPill::before { content: ""; position: absolute; left: 10px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--st-watch-mark); }
html[data-look="c"]:root .app-mast #agePill.ok::before { background: var(--st-ok-mark); }
html[data-look="c"]:root .app-mast #agePill.warn::before { background: var(--st-warn-mark); border-radius: 1px; transform: rotate(45deg); }
html[data-look="c"]:root .app-mast #agePill.bad::before, html[data-look="c"]:root .app-mast #checksPill.bad::before { background: var(--st-bad-mark); border-radius: 1px; }
html[data-look="c"]:root .app-mast #agePill.bad { border-color: color-mix(in srgb, var(--st-bad-mark) 45%, var(--mast-line)); }
html[data-look="c"]:root .app-mast #agePill:hover, html.pro-feeds-open[data-look="c"] .app-mast #agePill { border-color: var(--line-strong); background: var(--surface-2); }
/* the strip becomes the chip's panel */
html[data-look="c"]:root .lk-timeline { display: none; }
html.pro-feeds-open[data-look="c"] .lk-timeline { display: flex; flex-direction: column; align-items: stretch; gap: var(--p-2); position: absolute; top: calc(100% + 6px); right: var(--p-4); z-index: 96; width: min(460px, calc(100vw - 32px)); height: auto; padding: var(--p-3) var(--p-4); white-space: normal; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: var(--p-r); box-shadow: var(--pop-shadow); }
html.pro-feeds-open[data-look="c"] .lk-timeline .tl-head { font: 600 var(--p-fs-sm)/1.2 var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
html.pro-feeds-open[data-look="c"] .lk-timeline .tl-segs { flex-direction: column; align-items: flex-start; gap: var(--p-2); }
html.pro-feeds-open[data-look="c"] .lk-timeline .tl-seg { display: block; line-height: 1.4; font-size: var(--p-fs-md); }
html.pro-feeds-open[data-look="c"] .lk-timeline .tl-more { margin: 2px 0 0; align-self: flex-start; }

/* account menu (every look: tokens only) */
.pro-acct { position: relative; flex: none; margin-left: 4px; }
.pro-acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 4px; font: 500 13px/1 var(--f-body); color: var(--mast-ink); background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; max-width: 240px; }
.pro-acct-btn:hover, .pro-acct-btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--mast-line); }
.pro-acct.need .pro-acct-btn { border-color: var(--gn-wine); color: var(--gn-wine); background: var(--gn-wine-soft); font-weight: 600; }
.pro-acct-av { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gn-wine); color: var(--surface); font: 700 11px/1 var(--f-body); letter-spacing: .02em; }
.pro-acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-acct-role { color: var(--mast-muted); font-size: 12px; }
.pro-acct-btn::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.pro-acct-panel { position: absolute; z-index: 97; top: calc(100% + 6px); right: 0; width: 300px; max-width: calc(100vw - 20px); box-sizing: border-box; padding: 6px 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--pop-shadow); }
.pro-acct-sec { padding: 10px 14px; display: grid; gap: 6px; }
.pro-acct-sec + .pro-acct-sec { border-top: 1px solid var(--line); }
.pro-acct-lab { font: 600 11px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pro-acct-panel .app-viewas { display: flex; font-size: 0; gap: 0; }
.pro-acct-panel .app-viewas select { width: 100%; max-width: none; font: 500 13px/1.2 var(--f-body); padding: 7px 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.pro-acct-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pro-acct-panel .lk-switch { display: inline-flex; align-items: center; }
.pro-acct-panel .lk-switch .lk-lab { display: none; }
.pro-acct-panel #themeBtn { display: inline-block; }
.pro-acct-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 14px; font: 500 13px/1.3 var(--f-body); color: var(--ink); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; box-sizing: border-box; }
.pro-acct-link:hover { background: var(--surface-2); text-decoration: none; }
.pro-acct-links { padding: 4px 0; display: block; }
.pro-acct-panel #asksLink { display: flex; color: var(--ink); font: 500 13px/1.3 var(--f-body); padding: 7px 14px; border-radius: 0; }
.pro-kbd { display: inline-block; min-width: 1.3em; text-align: center; font: 600 11px/1 var(--f-body); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; }

/* the rail: an icon over a short label, the current place tinted; System sits at the foot */
@media (min-width: 821px) {
  html[data-look="c"]:root .app-body { grid-template-columns: var(--p-rail) minmax(0, 1fr); }
  html[data-look="c"]:root .app-nav, html[data-look="c"]:root .app-nav:not(.lk-shut):focus-within, html[data-look="c"]:root .app-nav.lk-open { position: static; width: var(--p-rail); box-shadow: none; display: flex; flex-direction: column; padding: var(--p-2) 0; overflow: hidden auto; }
  html[data-look="c"]:root .app-nav .nav-item, html[data-look="c"]:root .app-nav:not(.lk-shut):focus-within .nav-item, html[data-look="c"]:root .app-nav.lk-open .nav-item { flex-direction: column-reverse; justify-content: center; gap: 4px; min-height: 54px; margin: 2px 6px; padding: 7px 2px 6px; font-size: 0; text-align: center; color: var(--muted); border: 0; border-radius: var(--p-r); }
  html[data-look="c"]:root .app-nav .nav-item::before, html[data-look="c"]:root .app-nav:not(.lk-shut):focus-within .nav-item::before, html[data-look="c"]:root .app-nav.lk-open .nav-item::before { content: attr(data-short); font: 600 var(--p-fs-xs)/1.15 var(--f-body); letter-spacing: 0; }
  html[data-look="c"]:root .app-nav .nav-item::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--pro-ico, none) center / contain no-repeat; mask: var(--pro-ico, none) center / contain no-repeat; }
  html[data-look="c"]:root .app-nav .nav-item:not([data-pro-ico])::after { display: none; }
  html[data-look="c"]:root .app-nav .nav-item:hover { background: var(--surface-2); color: var(--ink); }
  html[data-look="c"]:root .app-nav .nav-item[aria-current="page"] { background: var(--gn-wine-soft); color: var(--gn-wine); }
  html[data-look="c"]:root .app-nav .nav-item .nav-flag, html[data-look="c"]:root .app-nav:not(.lk-shut):focus-within .nav-item .nav-flag { display: none; }
  html[data-look="c"]:root .nav-system-group { margin-top: auto; border-top: 1px solid var(--line); padding-top: var(--p-1); }
  html[data-look="c"]:root .nav-system > summary { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; margin: 2px 6px; padding: 7px 2px 6px; font: 600 var(--p-fs-xs)/1.15 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); border-radius: var(--p-r); cursor: pointer; list-style: none; }
  html[data-look="c"]:root .nav-system > summary::-webkit-details-marker { display: none; }
  html[data-look="c"]:root .nav-system > summary::after { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--pro-ico-system) center / contain no-repeat; mask: var(--pro-ico-system) center / contain no-repeat; }
  html[data-look="c"]:root .nav-system > summary:hover { background: var(--surface-2); color: var(--ink); }
  html[data-look="c"]:root .nav-system[open] > summary { color: var(--ink); }
  /* System opens as a small menu beside the rail (the rail itself never grows or scrolls) */
  html[data-look="c"]:root .nav-system[open] > .nav-system-items { position: fixed; left: calc(var(--p-rail) + 6px); bottom: 10px; z-index: 90; width: 210px; box-sizing: border-box; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--p-r); box-shadow: var(--pop-shadow); }
  html[data-look="c"]:root .app-nav.app-nav.app-nav .nav-system .nav-item { flex-direction: row; justify-content: flex-start; min-height: 0; margin: 0; padding: 7px 10px; text-align: left; color: var(--ink); border-radius: var(--p-r-ctl); }
  html[data-look="c"]:root .app-nav.app-nav.app-nav .nav-system .nav-item::before { font: 500 var(--p-fs-md)/1.3 var(--f-body); }
  html[data-look="c"]:root .app-nav.app-nav.app-nav .nav-system .nav-item::after { display: none; }
  html[data-look="c"]:root .nav-system:has(.nav-item[aria-current="page"]) > summary { color: var(--gn-wine); background: var(--gn-wine-soft); }
}
html[data-look="c"] {
  --pro-ico-system: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E");
}
.nav-item[data-pro-ico="today"] { --pro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='16' rx='2.5'/%3E%3Cpath d='M8 2.5v4M16 2.5v4M3.5 10h17M9 15.5l2 2 4-4'/%3E%3C/svg%3E"); }
.nav-item[data-pro-ico="supply"] { --pro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 8L12 3.5 3.5 8v8l8.5 4.5 8.5-4.5V8z'/%3E%3Cpath d='M3.5 8l8.5 4.5L20.5 8M12 12.5v8M7.7 5.8l8.6 4.5'/%3E%3C/svg%3E"); }
.nav-item[data-pro-ico="plant"] { --pro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20.5V9.5l5.5 3.5V9.5L14 13V4.5h7v16H3z'/%3E%3Cpath d='M7 17h1.5M11.5 17H13M16.5 17H18M17.5 8v1'/%3E%3C/svg%3E"); }
.nav-item[data-pro-ico="sales"] { --pro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E"); }
.nav-item[data-pro-ico="finance"] { --pro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5v19M16.8 7c0-1.9-2.1-3-4.8-3S7.2 5.200 7.2 7.200 9 10.800 12 11.800s4.800 1.700 4.800 4.200-2.100 4-4.800 4-4.800-1.100-4.800-3'/%3E%3C/svg%3E"); }
.nav-item[data-pro-ico="model"] { --pro-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M19 6h1M4 12h3M13 12h7M4 18h10M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2.2'/%3E%3Ccircle cx='10' cy='12' r='2.2'/%3E%3Ccircle cx='17' cy='18' r='2.2'/%3E%3C/svg%3E"); }

/* the two floating buttons: smaller, sentence case, off the last table column */
html[data-look="c"]:root .gn-fb-btn, html[data-look="c"]:root .gn-ask-btn { bottom: 14px; height: 32px; padding: 0 12px; font: 600 var(--p-fs-sm)/1 var(--f-body); text-transform: none; letter-spacing: 0; border-radius: 999px; box-shadow: 0 2px 8px rgb(18 22 27 / .16); }
html[data-look="c"]:root .gn-fb-btn { right: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
html[data-look="c"]:root .gn-fb-btn:hover { filter: none; border-color: var(--gn-wine); color: var(--gn-wine); }
html[data-look="c"]:root .gn-ask-btn { right: 128px; }

/* ============================================================================================ 3. page header: places, title, views */
@media (min-width: 821px) {
  html[data-look="c"]:root .app-main:not(.is-frame) { padding: var(--p-3) var(--p-gutter) var(--gn-float-h); }
  html[data-look="c"]:root .app-main:not(.is-frame) > * + * { margin-top: var(--p-3); }
  html[data-look="c"]:root .app-main.is-frame > .place-tabs, html[data-look="c"]:root .app-main.is-frame > .place-purpose, html[data-look="c"]:root .app-main.is-frame > .view-tabs { margin-inline: var(--p-gutter); padding-inline: 0; }
  html[data-look="c"]:root .app-main.is-frame > .place-tabs { margin-top: var(--p-3); }
}
html[data-look="c"]:root .place-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 0; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--line); }
html[data-look="c"]:root .place-tab { margin: 0 0 -1px; padding: 7px 12px 8px; font: 500 var(--p-fs-lg)/1.3 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: var(--p-r-ctl) var(--p-r-ctl) 0 0; }
html[data-look="c"]:root .place-tab:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
html[data-look="c"]:root .place-tab[aria-current="page"], html[data-look="c"]:root .place-tab.on, html[data-look="c"]:root .place-tab[aria-selected="true"] { color: var(--gn-wine); font-weight: 600; border-bottom-color: var(--gn-wine); background: none; }
html[data-look="c"]:root .app-main > .place-purpose { margin-top: var(--p-2); margin-bottom: 0; padding-block: 0; font: 400 var(--p-fs-md)/1.4 var(--f-body); color: var(--muted); background: none; border: 0; }
html[data-look="c"]:root .view-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: var(--p-2); padding: 3px; width: fit-content; max-width: 100%; box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--p-r); }
html[data-look="c"]:root .app-main.is-frame > .view-tabs { width: fit-content; max-width: calc(100% - 2 * var(--p-gutter)); }
html[data-look="c"]:root .view-tab { padding: 5px 10px; font: 500 var(--p-fs-md)/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); background: none; border: 1px solid transparent; border-radius: var(--p-r-ctl); }
html[data-look="c"]:root .view-tab:hover { color: var(--ink); text-decoration: none; }
html[data-look="c"]:root .view-tab[aria-current="page"], html[data-look="c"]:root .view-tab.on, html[data-look="c"]:root .view-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; background: var(--surface); border-color: var(--line); box-shadow: var(--k-elev); }
html[data-look="c"]:root .range-band { margin: var(--p-2) 0 0; padding: 0 var(--p-gutter); background: none; border: 0; }
html[data-look="c"]:root .app-main.is-frame > .app-frame { margin-top: 0; }
html[data-look="c"]:root .app-main h1.gn-title, html[data-look="c"]:root .screen-head .gn-title, html[data-look="c"]:root .g-head .gn-title, html[data-look="c"]:root .db-bar h1 { font: 700 var(--p-fs-h1)/1.15 var(--f-title); letter-spacing: .015em; }
html[data-look="c"]:root .screen-source, html[data-look="c"]:root .g-range-asof { font-size: var(--p-fs-sm); color: var(--muted); }
html[data-look="c"]:root .g-answer { font: 500 var(--p-fs-xl)/1.4 var(--f-body); }
html[data-look="c"]:root .app-btn, html[data-look="c"]:root .g-btn, html[data-look="c"]:root .by-btn, html[data-look="c"]:root .db-btn { font: 600 var(--p-fs-sm)/1 var(--f-body); border-radius: var(--p-r-ctl); border-color: var(--line-strong); }
html[data-look="c"]:root .gn-pill { font-size: var(--p-fs-sm); font-weight: 600; border-radius: var(--p-r-ctl); }
/* a plain pill is a word, not a button: flat fill, no outline (buttons keep the strong outline on white) */
html[data-look="c"]:root .gn-pill.plain { background: var(--surface-2); border-color: transparent; }

/* one vertical rhythm inside a native screen: every block sits 12px under the one before it */
html[data-look="c"]:root .app-main:not(.is-frame) .screen-body > * + * { margin-top: var(--p-3); }
html[data-look="c"]:root .app-main:not(.is-frame) .screen-body > .gn-small + *, html[data-look="c"]:root .app-main:not(.is-frame) .screen-body > * + .gn-small { margin-top: var(--p-2); }

/* ============================================================================================ 4. tables, tiles, charts, banners */
/* one table: 13px rows, 11px capital head that stays put inside its own scroll box, hover, tabular figures, one total row */
html[data-look="c"]:root .by-table, html[data-look="c"]:root .app-main:not(.is-frame) .gn-table, html[data-look="c"]:root .gn-table.db-t { font-size: var(--p-fs-md); }
html[data-look="c"]:root .by-table thead th, html[data-look="c"]:root .app-main:not(.is-frame) .gn-table thead th, html[data-look="c"]:root .gn-table.db-t thead th { font: 600 var(--p-fs-xs)/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--head); padding-block: 6px; }
html[data-look="c"]:root .by-table th, html[data-look="c"]:root .by-table td, html[data-look="c"]:root .app-main:not(.is-frame) .gn-table th, html[data-look="c"]:root .app-main:not(.is-frame) .gn-table td { padding: 5px 10px; }
html[data-look="c"]:root .gn-table.db-t th, html[data-look="c"]:root .gn-table.db-t td { padding-inline: 10px; }
html[data-look="c"]:root .by-tablewrap thead th, html[data-look="c"]:root .db-scroll thead th, html[data-look="c"]:root .gn-table-wrap[style*="max-height"] thead th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--line); }
html[data-look="c"]:root .gn-table tbody tr:hover > td { background: var(--surface-2); }
html[data-look="c"]:root .by-table tbody tr:nth-child(even) td { background: none; }
html[data-look="c"]:root .by-table tbody tr.row:hover td { background: var(--surface-2); }
html[data-look="c"]:root .gn-table td.num, html[data-look="c"]:root .gn-table th.num, html[data-look="c"]:root .by-table td.num, html[data-look="c"]:root .by-table th.num { font-variant-numeric: tabular-nums lining-nums; }
html[data-look="c"]:root .gn-table tr.total > td, html[data-look="c"]:root .gn-table tr.tot > td, html[data-look="c"]:root .gn-table tr.sum > td, html[data-look="c"]:root .gn-table tfoot td, html[data-look="c"]:root .gn-table tfoot th, html[data-look="c"]:root .by-table tfoot td { font-weight: 700; background: var(--head); border-top: 1.5px solid var(--line-strong); }
html[data-look="c"]:root .by-tablewrap, html[data-look="c"]:root .db-tablebox, html[data-look="c"]:root .gn-table-wrap { border-radius: var(--p-r); }

/* one tile: label, value, change. A status edge only when the tile carries a status. */
html[data-look="c"]:root .g-tile, html[data-look="c"]:root .db-kpi, html[data-look="c"]:root .by-kpi, html[data-look="c"]:root .app-main:not(.is-frame) .gn-kpi { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--p-r); box-shadow: var(--k-elev); background: var(--surface); }
html[data-look="c"]:root .g-tile:has(.lbl > .bad), html[data-look="c"]:root .g-tile:has(.lbl > .warn), html[data-look="c"]:root .g-tile:has(.lbl > .ok), html[data-look="c"]:root .g-tile:has(.lbl > .watch) { border-left-width: 3px; background: var(--surface); }
html[data-look="c"]:root .g-tile:has(.lbl > .bad) { border-left-color: var(--st-bad-mark); }
html[data-look="c"]:root .g-tile:has(.lbl > .warn) { border-left-color: var(--st-warn-mark); }
html[data-look="c"]:root .g-tile:has(.lbl > .ok) { border-left-color: var(--st-ok-mark); }
html[data-look="c"]:root .g-tile:has(.lbl > .watch) { border-left-color: var(--st-watch-mark); }
html[data-look="c"]:root .g-tile .lbl, html[data-look="c"]:root .db-kpi .l { font: 600 var(--p-fs-xs)/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
html[data-look="c"]:root .db-kpi { padding: var(--p-3) 14px; gap: 3px; }
html[data-look="c"]:root .db-kpi .v { font: 700 32px/1.05 var(--f-num); letter-spacing: .005em; }
html[data-look="c"]:root .db-kpi .c { font-size: var(--p-fs-sm); }
html[data-look="c"]:root .g-tile .val { font-size: clamp(28px, 17cqw, 36px); }
html[data-look="c"]:root .db-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--p-3); }
/* tiles never leave one orphan on a second row: five, six or seven sit in one row when the page is wide enough, else they split evenly (the width is the framed page's own) */
@media (min-width: 1000px) { html[data-look="c"]:root .db-kpis:has(> :nth-child(5)):not(:has(> :nth-child(6))) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
html[data-look="c"]:root .db-kpis:has(> :nth-child(6)):not(:has(> :nth-child(7))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1180px) { html[data-look="c"]:root .db-kpis:has(> :nth-child(6)):not(:has(> :nth-child(7))) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
html[data-look="c"]:root .db-kpis:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1300px) { html[data-look="c"]:root .db-kpis:has(> :nth-child(7)):not(:has(> :nth-child(8))) { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 700px) { html[data-look="c"]:root .db-kpis.db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* a held page used to dim every tile to 60%; the header already says the numbers are old, so the tile stays readable and its value goes quiet */
html[data-look="c"]:root .db-kpi { opacity: 1; filter: none; }
html[data-look="c"]:root[data-stale-copy] .db-kpi .v { color: var(--muted); }

/* one chart frame and one panel */
html[data-look="c"]:root .gn-chart, html[data-look="c"]:root .db-chart, html[data-look="c"]:root .g-panel { border: 1px solid var(--line); border-radius: var(--p-r); box-shadow: var(--k-elev); background: var(--surface); }
html[data-look="c"]:root .gn-chart-title, html[data-look="c"]:root .db-chart h3, html[data-look="c"]:root .g-panel h3 { font: 600 var(--p-fs-md)/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
html[data-look="c"]:root .gn-section { font: 600 var(--p-fs-md)/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border-bottom-color: var(--line); }
html[data-look="c"]:root .gn-axis-text { font-size: var(--p-fs-xs); }

/* section heads inside a desk read like every other section head; fields share one border and radius; an empty block says so in a quiet dashed box */
html[data-look="c"]:root .w5-sec > h2 { font: 600 var(--p-fs-md)/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
html[data-look="c"]:root .app-main select, html[data-look="c"]:root .app-main input[type="search"], html[data-look="c"]:root .app-main input[type="text"], html[data-look="c"]:root .app-main input[type="number"], html[data-look="c"]:root .app-main input[type="date"], html[data-look="c"]:root .gn-wrap select, html[data-look="c"]:root .gn-wrap input[type="search"], html[data-look="c"]:root .gn-wrap input[type="text"] { border-radius: var(--p-r-ctl); border-color: var(--line-strong); }
html[data-look="c"]:root .app-main select:focus, html[data-look="c"]:root .app-main input:focus, html[data-look="c"]:root .gn-wrap select:focus, html[data-look="c"]:root .gn-wrap input:focus { border-color: var(--gn-wine); outline: 0; box-shadow: 0 0 0 3px var(--gn-wine-soft); }
html[data-look="c"]:root .app-main .empty, html[data-look="c"]:root .gn-wrap .empty { padding: var(--p-4); color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--p-r); font-size: var(--p-fs-md); }
/* Today: the move rows on whole-pixel sizes */
html[data-look="c"]:root .g-move > summary { font-size: var(--p-fs-lg); }
html[data-look="c"]:root .g-mv-grp-t { font: 600 var(--p-fs-xs)/1.3 var(--f-body); letter-spacing: .04em; }

/* framed dashboards: the same gutter, quiet bars, the same segmented views */
html[data-look="c"]:root body:not(:has(.app-body)) .gn-wrap { padding: var(--p-3) var(--p-gutter) 40px; }
html[data-look="c"]:root .db-bar { background: none; border: 0; }
html[data-look="c"]:root .db-bar-in { padding: var(--p-2) var(--p-gutter) 0; }
html[data-look="c"]:root .db-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; width: fit-content; max-width: 100%; box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--p-r); }
html[data-look="c"]:root .db-tabs button { min-height: 0; padding: 5px 10px; font: 500 var(--p-fs-md)/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); background: none; border: 1px solid transparent; border-radius: var(--p-r-ctl); }
html[data-look="c"]:root .db-tabs button:hover { color: var(--ink); }
html[data-look="c"]:root .db-tabs button[aria-selected="true"], html[data-look="c"]:root .db-tabs button.on, html[data-look="c"]:root .db-tabs button[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--surface); border-color: var(--line); box-shadow: var(--k-elev); }
html[data-look="c"]:root .db-banner { border-radius: var(--p-r-ctl); font-size: var(--p-fs-md); border-left-width: 3px; }
html[data-look="c"]:root .db-note { font-size: var(--p-fs-md); }

/* ============================================================================================ 5. every look: shortcuts overlay, skeleton, error card, print */
.pro-scrim { position: fixed; inset: 0; z-index: 2147483200; display: grid; place-items: start center; padding-top: 12vh; background: rgb(18 22 27 / .38); }
.pro-help { width: min(620px, calc(100vw - 32px)); max-height: 76vh; overflow: auto; box-sizing: border-box; padding: 18px 20px 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--pop-shadow); font: 400 14px/1.4 var(--f-body); }
.pro-help h2 { margin: 0 0 2px; font: 700 20px/1.2 var(--f-title); letter-spacing: .015em; color: var(--ink); }
.pro-help p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.pro-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px 28px; }
.pro-help-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pro-help-keys { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pro-help-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.pro-btn { font: 600 13px/1 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.pro-btn:hover { border-color: var(--gn-wine); color: var(--gn-wine); }
.pro-btn.primary { background: var(--gn-wine); border-color: var(--gn-wine); color: var(--surface); }
.pro-btn.primary:hover { filter: brightness(.94); color: var(--surface); }
.pro-go-hint { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2147483100; padding: 8px 12px; font: 500 13px/1 var(--f-body); color: var(--surface); background: var(--ink); border-radius: 8px; box-shadow: var(--pop-shadow); }

/* skeleton: while a screen or a framed page loads (pro.js sets .pro-loading on <main>) */
@keyframes pro-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pro-skel { display: grid; gap: 12px; padding: 4px 0; }
.app-main.is-frame > .pro-skel { padding: 16px 24px; }
.pro-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 37%, var(--line) 63%) 0 0 / 400% 100%; opacity: .6; animation: pro-shimmer 1.4s ease infinite; }
.pro-skel .t { width: 220px; height: 26px; }
.pro-skel .s { width: min(520px, 70%); }
.pro-skel .k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pro-skel .k i { height: 84px; border-radius: 8px; }
.pro-skel .r i { height: 30px; margin-bottom: 6px; }
.app-main.pro-loading > p.gn-small:only-of-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.app-main.is-frame.pro-frame-wait > .app-frame { visibility: hidden; height: 0; }
@media (prefers-reduced-motion: reduce) { .pro-skel i { animation: none; } }

/* the error card: what failed, what still works, what to do. Never a stack trace. */
.pro-error { max-width: 640px; margin: 32px auto; padding: 20px 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--st-warn-mark); border-radius: 8px; box-shadow: var(--k-elev); font: 400 14px/1.5 var(--f-body); }
.pro-error h2 { margin: 0 0 6px; font: 700 20px/1.2 var(--f-title); letter-spacing: .015em; }
.pro-error p { margin: 0 0 10px; }
.pro-error .why { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.pro-error .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pro-empty { display: grid; justify-items: start; gap: 6px; padding: 18px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 8px; font: 400 14px/1.45 var(--f-body); }
.pro-empty b { color: var(--ink); font-size: 15px; }

/* print: the page, not the app. No rail, no controls, no clipped tables; the title and the "as of" print with it. */
.pro-print-foot { display: none; }
@media print {
  @page { margin: 12mm; }
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body { display: block !important; font-size: 11pt; }
  .app-nav, .app-isearch, .app-toplink, .pro-acct, #agePill, #checksPill, .lk-timeline, .lk-switch, #themeBtn, .app-viewas, .gn-fb-btn, .gn-ask-btn, .gn-ask-panel, .app-toast, .place-tabs, .view-tabs, .db-tabs, .g-about-wrap, .by-filters, .tpf-bar, .pro-scrim, .pro-go-hint, .app-btn, .by-btn, .db-btn, .g-btn { display: none !important; }
  .app-mast { border-bottom: 1px solid #999 !important; }
  .app-body { display: block !important; }
  .app-main { overflow: visible !important; padding: 0 !important; height: auto !important; }
  .by-tablewrap, .db-scroll, .gn-table-wrap, .db-tablebox { max-height: none !important; overflow: visible !important; box-shadow: none !important; }
  .gn-chart, .g-tile, .db-kpi, .g-panel, .db-chart { box-shadow: none !important; break-inside: avoid; }
  thead { display: table-header-group; }
  thead th { position: static !important; }
  tr { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
  .pro-print-foot { display: block; margin-top: 10pt; padding-top: 4pt; border-top: 1px solid #999; font-size: 9pt; color: #444; }
}

/* ============================================================================================ 6. Today: the desks at a glance (pro.js todayPulse) */
.pro-pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin: 12px 0; }
.pro-tile { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 14px 16px 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--k-elev); text-decoration: none; }
a.pro-tile:hover { border-color: var(--line-strong); text-decoration: none; }
a.pro-tile:hover .lbl::after { content: " \203A"; color: var(--gn-wine); }
.pro-tile .lbl { font: 600 11px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pro-tile .val { font: 700 34px/1 var(--f-num, var(--f-title)); letter-spacing: .005em; font-variant-numeric: tabular-nums lining-nums; }
.pro-tile .val small { font: 500 13px/1 var(--f-body); letter-spacing: 0; color: var(--muted); }
.pro-tile.bad:not([data-key="feeds"]) .val { color: var(--bad); }
.pro-tile .val small { margin-left: 2px; }
.pro-tile .sub { font: 400 12px/1.4 var(--f-body); color: var(--muted); }
.pro-tile .note { font: 400 12px/1.4 var(--f-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-bar { display: flex; gap: 2px; height: 8px; margin-top: 2px; }
.pro-bar i { display: block; min-width: 3px; border-radius: 2px; background: var(--line); }
.pro-bar i.bad { background: var(--st-bad-mark); }
.pro-bar i.warn { background: var(--st-warn-mark); }
.pro-bar i.ok { background: var(--st-ok-mark); }
.pro-bar i.watch { background: var(--st-watch-mark); }
.pro-bar i.quiet { background: var(--line-strong); opacity: .55; }
.pro-bar-key { display: flex; flex-wrap: wrap; gap: 2px 12px; font: 500 11px/1.4 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.pro-bar-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--line-strong); vertical-align: -0.5px; }
.pro-bar-key .bad::before { background: var(--st-bad-mark); }
.pro-bar-key .warn::before { background: var(--st-warn-mark); }
.pro-bar-key .ok::before { background: var(--st-ok-mark); }
.pro-bar-key .watch::before { background: var(--st-watch-mark); }
.pro-bar-key .quiet::before { opacity: .55; }
@media print { .pro-pulse { break-inside: avoid; } }

/* ============================================================================================ 7. a desk's one-line answer (pro.js buyHead) */
.pro-desk-answer { margin: 10px 0; font: 500 16px/1.4 var(--f-body); color: var(--ink); }

/* ============================================================================================ 8. search as a command bar (pro.js jumpList): the screens to go to, before anything is typed */
.pro-jump { position: absolute; z-index: 96; top: calc(100% + 6px); left: 0; width: max(100%, 340px); max-width: calc(100vw - 24px); box-sizing: border-box; padding: 6px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--pop-shadow); }
.pro-jump-h { padding: 6px 8px 4px; font: 600 11px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pro-jump-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px; font: 500 13px/1.3 var(--f-body); color: var(--ink); border-radius: 6px; text-decoration: none; }
.pro-jump-row:hover, .pro-jump-row:focus { background: var(--surface-2); text-decoration: none; outline: 0; }
.pro-jump-row:focus-visible { box-shadow: inset 0 0 0 2px var(--gn-wine); }
.pro-jump-f { margin-top: 4px; padding: 7px 8px 4px; border-top: 1px solid var(--line); font: 400 12px/1.4 var(--f-body); color: var(--muted); }
@media print { .pro-jump { display: none !important; } }

/* ============================================================================================ 8. APP-PRO-2 (11/10): the second pass, drawn by pro-kit.js */
/* 8a. Today's band: the company's numbers for today in ONE card with hairline dividers. Every card is a button that opens the side panel. */
html[data-pro-band] .pro-pulse { display: none; }
.pro-band { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 14px 0 16px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--k-elev); }
.pro-band[data-n="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pro-band[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pro-band[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pro-band[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pro-band[data-n="1"] { grid-template-columns: minmax(0, 420px); background: none; border: 0; box-shadow: none; }
@media (max-width: 1240px) { .pro-band, .pro-band[data-n="5"], .pro-band[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pro-band[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pro-band, .pro-band[data-n="3"], .pro-band[data-n="4"], .pro-band[data-n="5"], .pro-band[data-n="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; } }
.pro-kpi { display: grid; grid-template-rows: auto auto auto minmax(50px, auto) auto auto; align-content: start; gap: 4px; min-width: 0; padding: 16px 18px 14px; text-align: left; color: var(--ink); background: var(--surface); border: 0; border-radius: 0; font: 400 13px/1.35 var(--f-body); cursor: pointer; position: relative; transition: background-color .12s ease; }
.pro-kpi:hover { background: var(--surface-2); }
.pro-kpi:focus-visible { outline: 2px solid var(--gn-wine); outline-offset: -2px; z-index: 1; }
.pro-kpi::after { content: "\203A"; position: absolute; right: 14px; top: 13px; font: 400 16px/1 var(--f-body); color: var(--muted); opacity: 0; transition: opacity .12s ease; }
.pro-kpi:hover::after, .pro-kpi:focus-visible::after { opacity: 1; }
.pro-kpi .k-lbl { font: 600 12px/1.3 var(--f-body); color: var(--muted); padding-right: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-kpi .k-val { font: 700 30px/1.05 var(--f-num, var(--f-title)); letter-spacing: .005em; font-variant-numeric: tabular-nums lining-nums; margin-top: 2px; }
.pro-kpi .k-val small { display: block; margin-top: 3px; font: 400 12px/1.3 var(--f-body); letter-spacing: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-kpi .k-delta { display: block; font: 400 12px/1.3 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.pro-kpi .k-delta i { font-style: normal; font-size: 9px; margin-right: 4px; vertical-align: 1px; }
.pro-kpi .k-delta b { font-weight: 600; color: var(--ink); }
.pro-kpi .k-delta em { font-style: normal; }
.pro-kpi .k-delta.good i { color: var(--st-ok-mark); }
.pro-kpi .k-delta.worse i { color: var(--st-bad-mark); }
.pro-kpi .k-pic { display: block; align-self: end; min-width: 0; padding-top: 4px; }
.pro-kpi .k-sub { display: block; font: 400 12px/1.35 var(--f-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-kpi .k-src { display: block; font: 400 11px/1.3 var(--f-body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-kpi .k-src.untied { color: var(--st-bad-mark); font-weight: 600; }
/* the trend line: wine, the one accent; the last point marked; first and last week named under it */
.pro-spark { display: block; position: relative; }
.pro-spark .plot { display: block; position: relative; height: 30px; }
.pro-spark svg { display: block; width: 100%; height: 30px; overflow: visible; }
.pro-spark .l { fill: none; stroke: var(--gn-wine); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pro-spark .a { fill: var(--gn-wine-soft); stroke: none; opacity: .7; }
.pro-spark .dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--gn-wine); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.pro-spark .dot.hov { background: var(--ink); }
.pro-spark .ends { display: flex; justify-content: space-between; margin-top: 4px; font: 400 11px/1 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.pro-spark .tip { position: absolute; left: 0; top: -18px; padding: 2px 6px; font: 500 11px/1.3 var(--f-body); color: var(--surface); background: var(--ink); border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 2; }
.pro-spark .tip.on { opacity: 1; }
.pro-parts { display: grid; gap: 5px; }
.pro-parts .pro-bar { height: 10px; margin: 0; }
.pro-parts .pro-bar-key { gap: 2px 8px; white-space: nowrap; max-height: 32px; overflow: hidden; }
.pro-parts .pro-bar-key span::before { margin-right: 4px; }
.pro-parts .pro-bar-key b { font-weight: 600; color: var(--ink); }
.pro-kpi.skel { cursor: default; grid-template-rows: none; gap: 10px; }
.pro-kpi.skel::after { content: none; }
.pro-kpi.skel i { display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: pro-kit-shimmer 1.3s linear infinite; }
.pro-kpi.skel i:nth-child(1) { width: 55%; } .pro-kpi.skel i:nth-child(2) { width: 40%; height: 28px; } .pro-kpi.skel i:nth-child(3) { width: 70%; } .pro-kpi.skel i:nth-child(4) { width: 100%; height: 36px; }
@keyframes pro-kit-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pro-kpi.skel i { animation: none; } .pro-drawer, .pro-drawer-scrim { transition: none !important; } }
@media (max-width: 700px) { .pro-kpi { padding: 12px 12px 10px; } .pro-kpi .k-val { font-size: 24px; } .pro-kpi .k-val small { white-space: normal; } .pro-kpi .k-sub { display: none; } .pro-kpi::after { content: none; } .pro-kpi .k-lbl { padding-right: 0; } }

/* 8b. The side panel: the records behind a number or a row, each linked to NetSuite */
.pro-drawer-scrim { position: fixed; inset: 0; z-index: 2990; background: color-mix(in srgb, var(--ink) 22%, transparent); opacity: 0; transition: opacity .16s ease; }
.pro-drawer-scrim.on { opacity: 1; }
.pro-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 3000; width: min(780px, 100vw); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-left: 1px solid var(--line); box-shadow: var(--pop-shadow); transform: translateX(102%); transition: transform .18s ease; font: 400 13px/1.45 var(--f-body); }
.pro-drawer.on { transform: none; }
.pro-drawer-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.pro-drawer-h .kick { margin: 0 0 4px; font: 600 12px/1.3 var(--f-body); color: var(--muted); }
.pro-drawer-h h2 { margin: 0; font: 700 20px/1.25 var(--f-title, var(--f-body)); color: var(--ink); letter-spacing: 0; text-transform: none; }
.pro-drawer-h .val { margin: 6px 0 0; font: 600 16px/1.3 var(--f-body); font-variant-numeric: tabular-nums; }
.pro-drawer-x { flex: none; width: 32px; height: 32px; font: 400 22px/1 var(--f-body); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.pro-drawer-x:hover { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.pro-drawer-b { flex: 1 1 auto; overflow: auto; padding: 14px 24px 20px; }
.pro-drawer-b .ln { margin: 0 0 8px; max-width: 70ch; }
.pro-drawer-b .ln.quiet, .pro-drawer-b .src { color: var(--muted); }
.pro-drawer-b .src { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.pro-drawer-b h3 { margin: 14px 0 6px; font: 600 13px/1.3 var(--f-body); color: var(--ink); letter-spacing: 0; text-transform: none; }
.pro-drawer-f { padding: 12px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.pro-drawer-f a.pro-btn { display: inline-block; text-decoration: none; }
.pro-dtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.pro-dtable { width: 100%; border-collapse: collapse; font: 400 13px/1.35 var(--f-body); font-variant-numeric: tabular-nums lining-nums; }
.pro-dtable th { position: sticky; top: 0; padding: 8px 10px; font: 600 11px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; text-align: left; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pro-dtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pro-dtable tbody tr:last-child td { border-bottom: 0; }
.pro-dtable tbody tr:hover td { background: var(--surface-2); }
.pro-dtable th.num, .pro-dtable td.num { text-align: right; white-space: nowrap; }
.pro-dtable td:first-child { white-space: nowrap; font-weight: 600; }
.pro-dtable td a { color: var(--gn-wine); text-decoration: none; }
.pro-dtable td a:hover { text-decoration: underline; }
.pro-dtable td.bar { min-width: 140px; white-space: nowrap; }
.pro-dtable td.bar .b { display: inline-block; width: calc(100% - 96px); min-width: 36px; height: 8px; margin-right: 8px; vertical-align: 0; background: var(--surface-2); border-radius: 2px; }
.pro-dtable td.bar .b i { display: block; height: 100%; background: var(--gn-wine); border-radius: 2px; }
.pro-dtable td.bar .t { display: inline-block; width: 84px; text-align: right; }
.pro-dtable tfoot td { padding: 9px 10px; font-weight: 700; border-top: 2px solid var(--line-strong); background: var(--surface); }
@media (max-width: 700px) { .pro-drawer-h { padding: 14px 12px 12px 16px; } .pro-drawer-b { padding: 12px 16px 16px; } .pro-drawer-f { padding: 10px 16px; } }

/* 8c. The masthead goes quiet: data age is ONE dot that opens the list; NetSuite requests and Notes left sit in the account menu */
html[data-pro-quiet][data-look="c"]:root .app-mast #agePill { flex: none; width: 30px; min-width: 30px; max-width: 30px; padding: 0; font-size: 0; color: transparent; border-radius: 50%; border-color: transparent; background: transparent; cursor: pointer; overflow: hidden; }
html[data-pro-quiet][data-look="c"]:root .app-mast #agePill::before { left: 10px; top: 10px; }
html[data-pro-quiet][data-look="c"]:root .app-mast #agePill.bad { border-color: transparent; }
html[data-pro-quiet][data-look="c"]:root .app-mast #agePill:hover, html[data-pro-quiet].pro-feeds-open[data-look="c"] .app-mast #agePill { background: var(--surface-2); border-color: var(--line); }
html[data-pro-quiet] .pro-acct-link.pro-moved { text-decoration: none; }
html[data-pro-quiet] .pro-acct-link.pro-moved .app-count { margin-left: auto; }
html[data-pro-quiet] #mastMorePanel .pro-moved { display: flex; width: auto; padding: 8px 2px; }

/* 8d. Today's action list as a table: What, Who, By when, How much, Records. Comfortable rows, money on one right edge, overdue as a calm marker. */
html[data-pro-kit][data-look="c"]:root .g-moves.fv { padding: 6px 18px 8px; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-head { padding: 10px 2px 8px; font: 600 11px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-head .g-mv-hint { letter-spacing: .04em; text-transform: uppercase; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-grp-t { margin: 14px 0 0; padding: 0 2px 6px; font: 600 12px/1.3 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--line); }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-move > summary { padding: 13px 2px; align-items: start; cursor: pointer; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-move > summary:hover { background: var(--surface-2); box-shadow: -18px 0 0 var(--surface-2), 18px 0 0 var(--surface-2); }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-act-t { font: 500 14px/1.4 var(--f-body); }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .pro-mv-who { font: 400 13px/1.5 var(--f-body); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .pro-mv-who.me { color: var(--muted); }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-cons { font: 500 13px/1.5 var(--f-body); font-variant-numeric: tabular-nums lining-nums; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-usd { font-weight: 600; font-size: 14px; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-sub { font-size: 12px; color: var(--muted); }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-when.overdue { color: var(--ink); }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .pro-od { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--st-bad-mark); vertical-align: 0; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-ev { font-size: 13px; gap: 0 10px; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-ev a { color: var(--gn-wine); text-decoration: none; font-weight: 500; }
html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-ev a:hover { text-decoration: underline; }
@container (min-width: 900px) {
  html[data-pro-kit][data-look="c"]:root .g-moves.fv:has(.pro-mv-who) .g-move > summary, html[data-pro-kit][data-look="c"]:root .g-moves.fv:has(.pro-mv-whoh) .g-mv-head { grid-template-columns: minmax(0, 1fr) 150px 170px 190px minmax(200px, 260px) 12px; column-gap: 16px; }
  html[data-pro-kit][data-look="c"]:root .g-moves.fv:has(.pro-mv-who) .g-move > summary::after { grid-column: 6; }
  html[data-pro-kit][data-look="c"]:root .g-moves.fv:has(.pro-mv-whoh) .g-mv-head .hc { grid-column: 3 / 5; grid-template-columns: 170px 190px; column-gap: 16px; }
  html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-head .hc span:nth-child(2), html[data-pro-kit][data-look="c"]:root .g-moves.fv .g-mv-mcell { padding-right: 0; }
}
@container (max-width: 899px) {
  html[data-pro-kit][data-look="c"]:root .g-moves.fv .pro-mv-who { grid-column: 1 / 2; font-size: 12px; color: var(--muted); }
  html[data-pro-kit][data-look="c"]:root .g-moves.fv .pro-mv-who::before { content: "Who "; }
  html[data-pro-kit][data-look="c"]:root .g-moves.fv .pro-mv-whoh { display: none; }
}

/* 8e. print: the band and the action table read as a document; the side panel never prints */
@media print {
  .pro-drawer, .pro-drawer-scrim { display: none !important; }
  .pro-band { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; box-shadow: none !important; break-inside: avoid; border-color: gray; background: gray; }
  .pro-kpi { padding: 8pt 10pt; background: white !important; }
  .pro-kpi::after { content: none; }
  .pro-kpi .k-val { font-size: 18pt; }
  .pro-spark .tip { display: none; }
  .g-moves.fv .g-move > summary { padding: 6pt 0 !important; }
  .g-moves.fv .g-move > summary::after { content: none !important; }
}

/* 8f. Ranked bars under Today's action table: biggest first, zero baseline, each bar's number at its end */
.pro-ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 4px; }
.pro-ranks[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pro-ranks[data-n="1"] { grid-template-columns: minmax(0, 560px); }
@media (max-width: 1100px) { .pro-ranks, .pro-ranks[data-n="2"] { grid-template-columns: minmax(0, 1fr); } }
.pro-rank { min-width: 0; padding: 14px 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--k-elev); }
.pro-rank h3 { margin: 0 0 10px; font: 600 14px/1.3 var(--f-body); color: var(--ink); letter-spacing: 0; text-transform: none; }
.pro-rank h3 small { margin-left: 8px; font: 400 12px/1.3 var(--f-body); color: var(--muted); }
.pro-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pro-rank li { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto; align-items: center; gap: 10px; font: 400 13px/1.3 var(--f-body); }
.pro-rank .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; }
.pro-rank a.n:hover { color: var(--gn-wine); text-decoration: underline; }
.pro-rank .b { display: block; height: 10px; background: var(--surface-2); border-radius: 2px; }
.pro-rank .b i { display: block; height: 100%; background: var(--gn-wine); border-radius: 2px; }
.pro-rank .v { min-width: 86px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.pro-rank .f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font: 400 11px/1.3 var(--f-body); color: var(--muted); }
.pro-rank-more { font: 500 12px/1.3 var(--f-body); color: var(--gn-wine); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.pro-rank-more:hover { text-decoration: underline; }
.pro-rank-more::after { content: " \203A"; }
@media print { .pro-ranks { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .pro-rank { box-shadow: none; break-inside: avoid; } .pro-rank-more { display: none; } }
html.pro-drawer-open .gn-fb-btn, html.pro-drawer-open .gn-ask-btn { visibility: hidden; }
.pro-dtable td { overflow-wrap: anywhere; }
.pro-dtable td.num, .pro-dtable td:first-child { overflow-wrap: normal; }
.pro-kpi > * { min-width: 0; }
/* phone: the masthead stays one row (wordmark, search, the status dot, Settings) */
@media (max-width: 600px) {
  html[data-pro-quiet][data-look="c"]:root .app-mast-in > .app-spacer { display: none; }
  html[data-pro-quiet][data-look="c"]:root .app-mast-in > #agePill { order: 4; margin-left: auto; }
  html[data-pro-quiet][data-look="c"]:root .app-mast-in > #mastMore { order: 5; margin-left: 4px; }
}

/* 8g. Screen briefs: three numbers above the fold (Margin four), the rest behind "more numbers"; one sentence composed from the tiles a framed page keeps */
.db-kpis.pro-trim:not(.pro-all) > .pro-x, .g-tiles.pro-trim:not(.pro-all) > .pro-x { display: none !important; }
html[data-look="c"]:root .db-kpis.db-kpis.pro-trim:not(.pro-all), html[data-look="c"]:root .g-tiles.pro-trim:not(.pro-all) { grid-template-columns: repeat(var(--pro-keep, 3), minmax(0, 1fr)); }
@media (max-width: 700px) { html[data-look="c"]:root .db-kpis.db-kpis.pro-trim:not(.pro-all), html[data-look="c"]:root .g-tiles.pro-trim:not(.pro-all) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pro-more { display: block; max-width: 100%; margin: 6px 0 12px auto; padding: 2px 0; font: 500 12px/1.3 var(--f-body); color: var(--muted); background: none; border: 0; cursor: pointer; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-more:hover { color: var(--gn-wine); text-decoration: underline; }
.pro-more::before { content: "+ "; }
.pro-more[aria-expanded="true"]::before { content: "\2212  "; }
.pro-brief { margin: 2px 0 12px; max-width: 110ch; font: 500 16px/1.45 var(--f-body); color: var(--ink); }
.pro-band.pro-inframe { margin: 0 0 16px; }
.pro-kpi.pro-empty { cursor: default; grid-template-rows: none; }
.pro-kpi.pro-empty::after { content: none; }
.pro-kpi.pro-empty .k-sub { white-space: normal; }
.pro-error .will { color: var(--ink); }
/* a framed page's status line goes quiet: words, no boxes; the detail stays behind Why and About */
html[data-pro-kit][data-look="c"]:root .db-bar .g-status .gn-pill { padding: 0; border: 0; background: none; box-shadow: none; font: 500 12px/1.4 var(--f-body); color: var(--muted); }
html[data-pro-kit][data-look="c"]:root .db-bar .g-status .gn-pill.bad { color: var(--st-bad-mark); }
html[data-pro-kit][data-look="c"]:root .db-bar .g-status .gn-pill.warn { color: var(--ink); }
@media print { .pro-more { display: none; } .db-kpis.pro-trim > .pro-x, .g-tiles.pro-trim > .pro-x { display: block !important; } }
/* native screens: the data-age chips beside a title go quiet too (words, no boxes) */
html[data-pro-kit][data-look="c"]:root .app-main .g-head .g-chip, html[data-pro-kit][data-look="c"]:root .app-main .screen-body .g-chip { padding: 0 6px 0 0; border: 0; background: none; box-shadow: none; font: 500 12px/1.4 var(--f-body); }
html[data-pro-kit][data-look="c"]:root .app-main .g-chip.current, html[data-pro-kit][data-look="c"]:root .app-main .g-chip.ok { color: var(--muted); }

/* =================================================================================================================================================================
   9. APP-PRO-3 (11/10): the third pass. Every rule is gated on html[data-pro3], which web/pro-kit3.js sets (on a framed page's document too), so ?prokit=off
      leaves the app as the first pass left it. Tokens only. Tests: tests/test_pro_layer3.py.
   ================================================================================================================================================================= */

/* 9a. Nothing floats over data: "Ask Claude" and "Leave a note" sit in the masthead (in Settings on a phone) */
html[data-pro3][data-look="c"]:root .gn-fb-btn.pro3-docked, html[data-pro3][data-look="c"]:root .gn-ask-btn.pro3-docked { position: static !important; flex: none; height: 30px; margin: 0; padding: 0 11px; font: 500 12px/1 var(--f-body); border-radius: 8px; box-shadow: none; z-index: auto; visibility: visible; white-space: nowrap; }
html[data-pro3][data-look="c"]:root .gn-fb-btn.pro3-docked { background: transparent; color: var(--mast-ink, var(--ink)); border: 1px solid var(--line); }
html[data-pro3][data-look="c"]:root .gn-ask-btn.pro3-docked { background: transparent; color: var(--gn-wine); border: 1px solid color-mix(in srgb, var(--gn-wine) 40%, var(--line)); }
html[data-pro3][data-look="c"]:root .gn-fb-btn.pro3-docked:hover, html[data-pro3][data-look="c"]:root .gn-ask-btn.pro3-docked:hover { background: var(--surface-2); border-color: var(--gn-wine); color: var(--gn-wine); filter: none; }
html[data-pro3][data-look="c"]:root #mastMorePanel .pro3-docked { display: block; width: 100%; height: 36px; margin-top: 8px; text-align: left; }
html[data-pro3][data-look="c"]:root .gn-fb-panel { top: 58px; bottom: auto; right: 12px; }
html[data-pro3][data-look="c"]:root .app-mast-in > .app-spacer { display: block; flex: 1 1 auto; min-width: 8px; }

/* 9b. The status dot: one shape (a circle; the colour and the words carry the state), and its plain words on hover and on keyboard focus */
html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill { overflow: visible; }
html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill::before, html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill.warn::before, html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill.bad::before { width: 10px; height: 10px; left: 9px; top: 9px; border-radius: 50%; transform: none; }
html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill[data-tip]::after { content: attr(data-tip) ". Click for the list."; position: absolute; top: calc(100% + 8px); right: -4px; width: max-content; max-width: min(340px, 80vw); padding: 6px 9px; font: 500 12px/1.35 var(--f-body); letter-spacing: 0; text-align: left; white-space: normal; color: var(--surface); background: var(--ink); border-radius: 6px; box-shadow: var(--pop-shadow, none); opacity: 0; visibility: hidden; pointer-events: none; z-index: 9300; transition: opacity .12s ease; }
html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill[data-tip]:hover::after, html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill[data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
html[data-pro3].pro-feeds-open[data-pro-quiet][data-look="c"] .app-mast #agePill[data-tip]::after { opacity: 0; visibility: hidden; }
html[data-pro3][data-pro-quiet][data-look="c"]:root .app-mast #agePill:focus-visible { outline: 2px solid var(--gn-wine); outline-offset: 1px; }

/* 9c. Today's band: every card's label, number, change, picture, note and "as of" sit on shared lines (a subgrid), nothing is cut short, and a line's first and
       last value are printed under it */
@supports (grid-template-rows: subgrid) {
  html[data-pro3] .pro-band:not(.loading) > .pro-kpi:not(.skel):not(.pro-empty) { grid-row: span 6; grid-template-rows: subgrid; row-gap: 5px; }
  html[data-pro3] .pro-band:not(.loading) > .pro-kpi > .k-lbl { grid-row: 1; }
  html[data-pro3] .pro-band:not(.loading) > .pro-kpi > .k-val { grid-row: 2; }
  html[data-pro3] .pro-band:not(.loading) > .pro-kpi > .k-delta { grid-row: 3; }
  html[data-pro3] .pro-band:not(.loading) > .pro-kpi > .k-pic { grid-row: 4; }
  html[data-pro3] .pro-band:not(.loading) > .pro-kpi > .k-sub { grid-row: 5; }
  html[data-pro3] .pro-band:not(.loading) > .pro-kpi > .k-src { grid-row: 6; }
}
html[data-pro3] .pro-kpi .k-lbl, html[data-pro3] .pro-kpi .k-val small, html[data-pro3] .pro-kpi .k-sub, html[data-pro3] .pro-kpi .k-src { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
html[data-pro3] .pro-kpi .k-val { font-variant-numeric: tabular-nums lining-nums; }
html[data-pro3] .pro-kpi .k-pic { align-self: end; padding-top: 6px; display: grid; gap: 6px; }
html[data-pro3] .pro-kpi .k-sub { color: var(--muted); }
html[data-pro3] .pro-kpi .k-sub, html[data-pro3] .pro-kpi .k-src { align-self: start; }
html[data-pro3] .pro-spark .plot, html[data-pro3] .pro-spark svg { height: 34px; }
html[data-pro3] .pro-spark .ends { margin-top: 5px; gap: 8px; font: 400 11px/1.2 var(--f-body); }
html[data-pro3] .pro-spark .ends b { font-weight: 600; color: var(--ink); }
html[data-pro3] .pro-spark .ends span { white-space: nowrap; }
html[data-pro3] .pro-parts .pro-bar-key { display: grid; gap: 2px; max-height: none; overflow: visible; white-space: normal; }
html[data-pro3] .pro-parts .pro-bar-key span { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
html[data-pro3] .pro-parts .pro-bar-key span::before { flex: none; align-self: center; margin-right: 0; }
html[data-pro3] .pro-parts .pro-bar-key b { margin-left: auto; padding-left: 6px; white-space: nowrap; }
html[data-pro3] .pro-kpi .k-pic.has-line .pro-bar-key { display: none; }
html[data-pro3] .pro-kpi .k-hist { display: block; font: 400 11px/1.3 var(--f-body); color: var(--muted); }
html[data-pro3] .pro-kpi .k-delta.none { color: var(--muted); }
html[data-pro3] .pro3-since { margin: -4px 0 14px; padding: 0 2px; font: 400 13px/1.45 var(--f-body); color: var(--ink); }
html[data-pro3] .pro3-since.still { color: var(--muted); }
@media (max-width: 700px) { html[data-pro3] .pro-kpi .k-sub { display: block; } html[data-pro3] .pro3-since { margin: -2px 0 12px; } }

/* 9d. What a row of tiles all repeat is said once: the date line leaves each tile and is printed above the row (or stays in the sentence or range control that already says it) */
html[data-pro3] .pro3-per-same > .per { display: none !important; }
html[data-pro3] .db-kpi { align-content: start; }
html[data-pro3] .pro3-date { margin: 0 0 8px; font: 500 12px/1.4 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-pro3] table { font-variant-numeric: tabular-nums lining-nums; }

/* 9e. The Ctrl+K list in groups */
html[data-pro3] .pro-jump .pro3-jump-g { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
html[data-pro3] .pro-jump .pro3-jump-g:first-child { margin-top: 0; border-top: 0; }
html[data-pro3] .pro-jump .pro-jump-row.here > span:first-child::after { content: "you are here"; margin-left: 8px; font: 400 11px/1 var(--f-body); color: var(--muted); }

/* 9f. One keyboard focus ring, everywhere (the app's own screens and the framed pages) */
html[data-pro3][data-look="c"] :is(a, button, summary, select, [role="button"], [role="tab"], [tabindex="0"]):focus-visible { outline: 2px solid var(--gn-wine); outline-offset: 2px; }
html[data-pro3][data-look="c"] :is(input, textarea):focus-visible { outline: 2px solid var(--gn-wine); outline-offset: 0; }

@media print { .pro3-since { display: none; } html[data-pro3] .pro3-per-same > .per { display: block !important; } html[data-pro3] .pro3-date { display: none; } }

/* 9g. Print: a wide desk table (Buy) fits the page: it takes the page's width, its cells wrap, and its type steps down */
@media print {
  html[data-pro3] .app-main table.by-table, html[data-pro3] .app-main .by-table { width: 100% !important; min-width: 0 !important; max-width: 100% !important; table-layout: fixed; font-size: 7pt; }
  html[data-pro3] .app-main .by-table th, html[data-pro3] .app-main .by-table td { padding: 2pt 3pt !important; white-space: normal !important; overflow-wrap: anywhere; word-break: normal; min-width: 0 !important; max-width: none !important; width: auto !important; position: static !important; }
  html[data-pro3] .app-main .by-table td a { overflow-wrap: anywhere; }
  html[data-pro3] .app-main .by-wrap, html[data-pro3] .app-main .tpf-scroll, html[data-pro3] .app-main [class*="-scroll"], html[data-pro3] .app-main [class*="-wrap"] { overflow: visible !important; max-width: 100% !important; }
  html[data-pro3] .app-main, html[data-pro3] .app-main > * { max-width: 100% !important; min-width: 0 !important; }
}

/* 9h. Model: while the baseline loads, its empty boxes read as loading (a label bar and a number bar that shimmer), not as blank cards */
html[data-pro3][data-look="c"]:root .sb-skel-b { position: relative; overflow: hidden; background: var(--surface); border-color: var(--line); }
html[data-pro3][data-look="c"]:root .sb-skel-b::before, html[data-pro3][data-look="c"]:root .sb-skel-b::after { content: ""; position: absolute; left: 16px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: pro-kit-shimmer 1.3s linear infinite; }
html[data-pro3][data-look="c"]:root .sb-skel-b::before { top: 16px; width: 42%; height: 10px; }
html[data-pro3][data-look="c"]:root .sb-skel-b::after { top: 38px; width: 28%; height: 26px; }
@media (prefers-reduced-motion: reduce) { html[data-pro3][data-look="c"]:root .sb-skel-b::before, html[data-pro3][data-look="c"]:root .sb-skel-b::after { animation: none; } }

/* 9i. With the two buttons in the masthead, a framed page no longer keeps an empty strip under it for them */
html[data-pro3][data-look="c"]:root .app-main.is-frame { padding-bottom: 0; }
