/* ============================================================
   Savant chat widget, concierge.css
   Liquid Glass.

   The rule the whole sheet follows: CHROME IS GLASS, CONTENT IS
   OPAQUE. The panel, header, composer, menus and nudge are
   translucent layers that lens the storefront behind them; the
   things a shopper has to read (message bubbles, product cards,
   buttons) sit on top with their own solid-enough backing. Solid
   ink survives in exactly two places, the launcher and the
   shopper's own bubble, where the contrast is doing real work.

   Corollaries applied throughout:
     - Concentric radii. An inner radius is the outer radius minus
       the padding between them (28px shell, 10px pad, 18px card),
       so nested corners stay parallel instead of drifting.
     - One elevation per floating layer. Layered glows read as mud;
       a single shadow plus a specular top edge reads as glass.
     - The accent appears on the send button, the discount code and
       focus rings. Nowhere else.

   There is deliberately NO avatar beside the concierge's messages.
   The header already says who is talking, and the shopper is in a
   two-party conversation: repeating the face on every reply is
   decoration that costs a whole column of bubble width.

   Accent colour is injected via --concierge-accent on
   #concierge-root by Liquid, then hoisted to :root by concierge.js.
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
#cnc-launcher,
#cnc-nudge,
#cnc-panel,
#cnc-nudge *,
#cnc-panel * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Theme shield ─────────────────────────────────────────── */
/* Store themes style every bare `button` and `input` on the page, and this
   widget renders inside them. Caught on Indoniq's theme, 28 October 2026: its
   base button rule adds padding, margins, float:left, minimum sizes, a dark
   background and white text, and paints a full-size dark `::before` layer
   with `border-radius: 0 !important`. Our chat button became a black square,
   the header controls drifted, icons turned white on white, and its base
   input rule (width:100%, a fixed height, padding) pushed the message box
   past the panel's edge.
   These resets use one class worth of specificity, so they beat a theme's
   `button`/`input` rules wherever it loads, and they sit before every
   component rule in this sheet, so the widget's own styles still win. */
:where(button)[class*="cnc-"] {
  display: inline-block;
  float: none;
  position: relative;
  z-index: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
  text-transform: none;
  text-shadow: none;
  vertical-align: middle;
  cursor: pointer;
}
/* A theme's button pseudo-elements: none of ours draw a ::before, and the
   rim's ::after is redeclared below with its own radius. */
:where(button)[class*="cnc-"]::before {
  content: none !important;
  display: none !important;
}
:where(button)[class*="cnc-"]:not(.cnc-launcher)::after {
  content: none !important;
  display: none !important;
}
:where(input, textarea, select)[class*="cnc-"] {
  float: none;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  text-indent: 0;
}

/* ── Theme armour ─────────────────────────────────────────── */
/* This widget is injected into a stranger's storefront, so every form control
   it renders is fighting two things: the browser's native control painting,
   and whatever the merchant's theme does to bare `input` and `button`. Both
   are neutralised here at ID specificity, which a sane theme rule cannot
   outrank.
   This is load-bearing, not tidiness. The composer's input is transparent by
   design so the glass pill behind it shows through, and `background:
   transparent` alone does NOT achieve that: Safari keeps `-webkit-appearance:
   textfield` and paints an opaque native field straight over it, which is a
   white rectangle sitting inside the pill. The previous design never exposed
   this because the input carried its own solid white fill. */
/* The class-scoped selectors are the same rule for any context that renders
   more than one panel (mockups, visual tests): the id only ever matches the one
   live panel, so a second one would get the native field back. The id
   selectors stay because they are what outrank a merchant theme. */
.cnc-panel input,
.cnc-panel button,
.cnc-nudge button,
.cnc-launcher,
#cnc-panel input,
#cnc-panel button,
#cnc-nudge button,
#cnc-launcher {
  -webkit-appearance: none;
  appearance: none;
  /* Themes routinely uppercase buttons and give them a min-height. Both would
     wreck the composer and the chips; neither is set anywhere in this sheet,
     so pinning them here costs nothing. */
  text-transform: none;
  min-height: 0;
}

/* The composer's input owns no paint of its own: the glass pill around it is
   the visible control. Stated at ID specificity for the reason above. */
.cnc-panel .cnc-offer-input,
#cnc-panel .cnc-offer-input {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: auto;
}

/* ── Tokens ───────────────────────────────────────────────── */
/* Defined on :root, NOT #concierge-root: the launcher/panel/nudge are appended
   to <body> (outside #concierge-root), and CSS variables only inherit down the
   DOM tree. The merchant's accent is set inline on #concierge-root by Liquid;
   concierge.js hoists it up to :root. */
:root {
  --concierge-accent: #101014;        /* fallback; hoisted from #concierge-root by JS */
  --cnc-accent:       var(--concierge-accent);
  --cnc-accent-dark:  color-mix(in srgb, var(--cnc-accent) 78%, #000 22%);
  --cnc-accent-tint:  color-mix(in srgb, var(--cnc-accent) 11%, #fff 89%);
  --cnc-accent-line:  color-mix(in srgb, var(--cnc-accent) 26%, transparent);

  /* Ink ramp. Near-black rather than pure black so it sits beside a
     storefront's own type instead of punching through it. */
  --cnc-ink:    #101014;
  --cnc-ink-2:  #6a6a75;
  --cnc-ink-3:  #8d8d99;
  --cnc-on-ink: #ffffff;
  --cnc-grad: linear-gradient(150deg, #3b3f45 0%, #17181c 62%, #050506 100%);

  /* ── Liquid Glass, per Apple's Materials guidance ────────────────────────
     https://developer.apple.com/design/human-interface-guidelines/materials

     TWO LAYERS, and the distinction is the whole design:

       functional layer   Liquid Glass. "forms a distinct functional layer for
                          controls and navigation elements ... that floats above
                          the content layer". Here that is exactly three things:
                          the panel, the launcher, the nudge.
       content layer      NOT glass. "Don't use Liquid Glass in the content
                          layer ... Instead, use [standard materials] for
                          elements in the content layer." Bubbles, cards, chips,
                          the composer and the header buttons are content: they
                          get system fills and vibrant labels, no blur of their
                          own.

     This is not a stylistic preference. Apple also says "avoid overcrowding or
     layering Liquid Glass elements on top of each other", and the reason is
     arithmetic: a backdrop-filter inside a backdrop-filtered parent samples the
     parent's already-composited result, so four stacked 40% whites resolve to a
     ~87% white card. Stacking the material is what turns glass into a popup.

     REGULAR variant, not clear: "Use the regular variant when background
     content might create legibility issues, or when components have a
     significant amount of text, such as alerts, sidebars, or popovers." A chat
     panel over an unknown storefront is that case exactly. Clear is "for
     components that float above media backgrounds", and would need "a dark
     dimming layer of 35% opacity" over a bright storefront.

     The regular variant "blurs AND ADJUSTS THE LUMINOSITY of background content
     to maintain legibility". That luminosity adjustment is the `brightness()`
     below, and it is what does the legibility work, so the fill can stay thin
     enough to actually read as glass. Fill thickness is the wrong lever. */
  --cnc-lg-fill:       rgba(255, 255, 255, .14);
  /* brightness lifts the backdrop, contrast(<1) compresses its range toward
     mid: together they are the "adjusts the luminosity of background content"
     the regular variant is specified to do. Measured, not guessed: this is the
     thinnest fill that still clears WCAG AA for body text over the worst
     (darkest) 1% of a real product photograph, at 5.17:1. A thicker fill would
     be easier and would stop looking like glass. */
  --cnc-lg-filter:     blur(30px) saturate(190%) brightness(1.06);
  /* Thinner still where the glass sits over its own panel's edge. */
  --cnc-lg-fill-soft:  rgba(255, 255, 255, .14);

  /* Content layer: iOS system fill levels, lowest contrast last.
     https://developer.apple.com/design/human-interface-guidelines/color */
  --cnc-fill-1: rgba(120, 120, 128, .20);
  --cnc-fill-2: rgba(120, 120, 128, .16);
  --cnc-fill-3: rgba(118, 118, 128, .12);
  --cnc-fill-4: rgba(116, 116, 128, .08);

  /* Vibrancy: label levels for text ON a material.
     "Help ensure legibility by using vibrant colors on top of materials." */
  /* Standard materials for the CONTENT layer. Not Liquid Glass (no
     backdrop-filter of their own), but not a whisper either: Apple's content
     layer is opaque enough to read and to hold its own boundary. Three levels,
     so a bubble, a card and a chip stay visibly different things. */
  /* The specular edge of a pane of glass: a gradient, not a flat stroke, so
     the top-left and bottom-right catch the light while the middle of each
     edge falls away. It is drawn, not refracted: a refracting band was tried
     and measured, and it returned 1.2 points of structure for a visible
     coloured halo, so it is not here. */
  --cnc-rim-w: 1px;
  --cnc-rim-grad: linear-gradient(145deg,
      rgba(255, 255, 255, .95)   0%,
      rgba(255, 255, 255, .34)  22%,
      rgba(255, 255, 255, .06)  48%,
      rgba(255, 255, 255, .28)  74%,
      rgba(255, 255, 255, .80) 100%);

  --cnc-mat-1:    rgba(255, 255, 255, .72);   /* bot bubble: has to be read */
  --cnc-mat-2:    rgba(255, 255, 255, .60);   /* card, composer             */
  --cnc-mat-3:    rgba(255, 255, 255, .46);   /* chip: a control, lighter   */
  /* Popover surface. The history menu is drawn OVER the transcript, so at .60
     with no blur behind it the old messages and the menu rows were legible
     through each other at once. A menu is not a bubble: it hides what it
     covers. */
  --cnc-mat-menu: rgb(252, 250, 251); /* opaque: at .97 the chat text read through it */
  --cnc-mat-line: rgba(16, 18, 27, .12);
  --cnc-mat-spec: rgba(255, 255, 255, .92);
  /* Carried by every content element, and it is what stops them blending:
     its own hairline boundary plus a lit top edge. */
  --cnc-mat-sh:   inset 0 0 0 .5px var(--cnc-mat-line), inset 0 1px 0 var(--cnc-mat-spec);

  --cnc-label-1: #000000;
  --cnc-label-2: rgba(60, 60, 67, .60);
  --cnc-label-3: rgba(60, 60, 67, .30);

  --cnc-inner-glow: inset 0 0 22px -10px rgba(255, 255, 255, .85);

  /* Edges. */
  --cnc-hair:        rgba(16, 18, 27, .12);
  --cnc-hairline:    0 0 0 .5px rgba(16, 18, 27, .10);
  --cnc-hairline-sm: 0 0 0 .5px rgba(16, 18, 27, .07);
  --cnc-spec:        inset 0 1px 0 rgba(255, 255, 255, .88);
  --cnc-spec-strong: inset 0 1px 0 rgba(255, 255, 255, .95);
  --cnc-rim:         inset 0 0 0 1px rgba(255, 255, 255, .30);


  /* The component rules below still name the old material tokens. They are now
     ALIASES onto the two-layer model above, which is what reclassifies every
     surface in one place:
       chrome  -> Liquid Glass (the panel). The only blurred surface.
       content -> a system fill, blur NONE. Nesting a backdrop-filter inside the
                  panel's is what produced the white card.
       trans   -> nothing at all: the transcript IS the panel's glass, and
                  painting another translucent sheet over it only thickened it. */
  --cnc-glass-chrome:  var(--cnc-lg-fill);
  --cnc-blur-chrome:   var(--cnc-lg-filter);
  --cnc-glass-content: var(--cnc-mat-1);
  --cnc-glass-raised:  var(--cnc-mat-2);
  --cnc-glass-ctl:     var(--cnc-mat-3);
  --cnc-blur-content:  none;
  --cnc-blur-ctl:      none;

  /* Depth. One shadow per floating layer, never stacked glows. */
  --cnc-lift:     0 30px 62px -22px rgba(16, 18, 27, .36), 0 10px 26px -14px rgba(16, 18, 27, .22);
  --cnc-lift-sm:  0 6px 18px -10px rgba(16, 18, 27, .22);
  --cnc-lift-btn: 0 6px 16px -6px rgba(16, 18, 27, .50);
  --cnc-lift-fab: 0 16px 34px -12px rgba(16, 18, 27, .62);

  --cnc-shell-sh: var(--cnc-hairline), var(--cnc-spec), var(--cnc-rim), var(--cnc-lift);
  --cnc-ctl-sh:   var(--cnc-hairline-sm), var(--cnc-spec-strong);

  --cnc-head-bg:  linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 100%);
  --cnc-trans-bg: transparent;
  --cnc-card-bg:  var(--cnc-mat-2);
  --cnc-chip-bg:  var(--cnc-mat-3);

  --cnc-text:  var(--cnc-ink);
  --cnc-muted: var(--cnc-ink-2);

  /* Status. Apple's system colours; they read correctly against both
     a light and a dark storefront without restating. */
  --cnc-live:  #34c759;
  --cnc-warn:  #ff9f0a;
  --cnc-warn-bg:   rgba(255, 159, 10, .11);
  --cnc-warn-line: rgba(255, 159, 10, .36);
  --cnc-warn-text: #8a5200;
  --cnc-warn-body: #6a5230;
  --cnc-danger: #dc2626;

  /* Concentric radii. */
  /* Capsules where the shape is a control, concentric rounding where it is a
     container. A pill is the shape that reads as glass: it has no corner for
     the rim to break on. */
  --cnc-r-panel:    32px;
  --cnc-r-composer: 999px;
  --cnc-r-menu:     24px;
  --cnc-r-bubble:   22px;
  --cnc-r-tail:      8px;
  --cnc-r-card:     22px;
  --cnc-r-btn:     999px;
  --cnc-r-thumb:    15px;
  /* Legacy aliases, kept so nothing that still names them breaks. */
  --cnc-radius:    var(--cnc-r-panel);
  --cnc-radius-sm: var(--cnc-r-btn);

  --cnc-panel-w: 396px;
  --cnc-panel-h: 604px;
  --cnc-z: 999999;       /* high enough above theme chrome; avoid INT_MAX wars */

  /* Motion. A single curve, deliberately overshoot-free: glass that
     wobbles reads as plastic. */
  --cnc-curve: cubic-bezier(.32, .94, .34, 1);
  --cnc-t:      .34s;
  --cnc-t-mid:  .24s;
  --cnc-t-fast: .12s;
  --cnc-transition: var(--cnc-t-mid) var(--cnc-curve);

  /* ── Corner geometry ──────────────────────────────────────────────────────
     Every fixed element in the widget (launcher, panel, nudge) is positioned
     from these three values and nothing else, so the launcher's distance to the
     right edge and to the bottom edge are the same number by construction, and
     the panel can never drift out of line with the button that opens it.
     --cnc-gap is the breathing room between the launcher and the panel above
     it. It must stay comfortably larger than the 3px hover lift, otherwise a
     hover closes the gap and the two visually collide. */
  --cnc-edge: 24px;             /* distance from the viewport's right + bottom */
  /* Room kept clear at the TOP, which is not the same as the side margin.
     Storefronts put a sticky header there, and on a 13 inch laptop the panel
     grew until it sat over the search, account and cart icons. The widget owns
     its corner and nothing above this line. Roughly the height of a typical
     Shopify sticky header plus breathing room. */
  --cnc-top-safe: 104px;
  --cnc-launcher-size: 60px;
  --cnc-gap: 16px;              /* clear space between launcher and panel */
  /* Where anything stacked above the launcher begins. */
  --cnc-stack-bottom: calc(var(--cnc-edge) + var(--cnc-launcher-size) + var(--cnc-gap));
}

/* ── Dark palette ─────────────────────────────────────────── */
/* Opt-in, never automatic. A storefront's colour scheme is the merchant's
   decision, not the shopper's OS setting: a white store with a dark widget
   bolted into the corner looks like a bug. The theme block offers light
   (default), dark, or auto, and only auto defers to prefers-color-scheme. */
:root[data-cnc-theme="dark"] {
  --cnc-ink:    #f5f5f7;
  /* Lifted from #a0a0ab / #7c7c88. The muted ramp used to be tuned against an
     opaque dark card; on a translucent pane over an unknown storefront it has
     far less to sit on, and "Online" and the composer placeholder were only
     just legible. */
  --cnc-ink-2:  #c2c2cc;
  --cnc-ink-3:  #a2a2ae;
  --cnc-on-ink: #101014;
  --cnc-grad: linear-gradient(150deg, #6d7078 0%, #3a3d43 100%);

  /* The reference look: a dark pane that takes its colour from whatever is
     behind it. The fills are deliberately low, because at this blur the
     backdrop does the colouring and any more fill turns it into a grey card. */
  --cnc-lg-fill:       rgba(0, 0, 0, .16);
  --cnc-lg-filter:     blur(30px) saturate(180%) brightness(.78);
  --cnc-lg-fill-soft:  rgba(0, 0, 0, .14);
  
  /* iOS system fills, dark. */
  --cnc-fill-1: rgba(120, 120, 128, .36);
  --cnc-fill-2: rgba(120, 120, 128, .32);
  --cnc-fill-3: rgba(118, 118, 128, .24);
  --cnc-fill-4: rgba(118, 118, 128, .18);
  
  --cnc-rim-grad: linear-gradient(145deg,
      rgba(255, 255, 255, .70)   0%,
      rgba(255, 255, 255, .18)  22%,
      rgba(255, 255, 255, .04)  48%,
      rgba(255, 255, 255, .14)  74%,
      rgba(255, 255, 255, .50) 100%);

  --cnc-mat-1: rgba(62, 62, 69, .74);
  
  --cnc-mat-2: rgba(58, 58, 65, .62);
  
  --cnc-mat-3: rgba(80, 80, 89, .50);
  --cnc-mat-menu: rgb(40, 40, 46);
  
  --cnc-mat-line: rgba(255, 255, 255, .16);
  
  --cnc-mat-spec: rgba(255, 255, 255, .16);

  
  --cnc-label-1: #ffffff;
  --cnc-label-2: rgba(235, 235, 245, .60);
  --cnc-label-3: rgba(235, 235, 245, .30);
  
  --cnc-glass-chrome:  var(--cnc-lg-fill);
  --cnc-blur-chrome:   var(--cnc-lg-filter);
  --cnc-glass-content: var(--cnc-mat-1);
  --cnc-glass-raised:  var(--cnc-mat-2);
  --cnc-glass-ctl:     var(--cnc-mat-3);
  --cnc-blur-content:  none;
  --cnc-blur-ctl:      none;
  --cnc-inner-glow: inset 0 0 22px -10px rgba(255, 255, 255, .30);
  --cnc-inner-glow: inset 0 0 22px -10px rgba(255, 255, 255, .30);

  --cnc-hair:        rgba(255, 255, 255, .14);
  --cnc-hairline:    0 0 0 .5px rgba(255, 255, 255, .12);
  --cnc-hairline-sm: 0 0 0 .5px rgba(255, 255, 255, .11);
  --cnc-spec:        inset 0 .5px 0 rgba(255, 255, 255, .24);
  --cnc-spec-strong: inset 0 .5px 0 rgba(255, 255, 255, .22);
  --cnc-rim:         inset 0 0 0 1px rgba(255, 255, 255, .05);

  --cnc-lift:     0 30px 64px -20px rgba(0, 0, 0, .78), 0 10px 26px -14px rgba(0, 0, 0, .60);
  --cnc-lift-sm:  0 6px 18px -10px rgba(0, 0, 0, .55);
  --cnc-lift-btn: 0 6px 16px -6px rgba(0, 0, 0, .60);
  --cnc-lift-fab: 0 16px 34px -12px rgba(0, 0, 0, .70);

  --cnc-head-bg:  linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 100%);
  --cnc-trans-bg: transparent;
  --cnc-card-bg:  var(--cnc-mat-2);
  --cnc-chip-bg:  var(--cnc-mat-3);

  --cnc-accent-tint: color-mix(in srgb, var(--cnc-accent) 20%, #16161a 80%);
  --cnc-accent-dark: color-mix(in srgb, var(--cnc-accent) 60%, #fff 40%);

  --cnc-warn-text: #ffc164;
  --cnc-warn-body: #d8c3a0;
  --cnc-danger: #ff6b6b;
}

@media (prefers-color-scheme: dark) {
  :root[data-cnc-theme="auto"] {
    --cnc-ink:    #f5f5f7;
    /* Lifted from #a0a0ab / #7c7c88. The muted ramp used to be tuned against an
       opaque dark card; on a translucent pane over an unknown storefront it has
       far less to sit on, and "Online" and the composer placeholder were only
       just legible. */
    --cnc-ink-2:  #c2c2cc;
    --cnc-ink-3:  #a2a2ae;
    --cnc-on-ink: #101014;
    --cnc-grad: linear-gradient(150deg, #6d7078 0%, #3a3d43 100%);

    /* The reference look: a dark pane that takes its colour from whatever is
       behind it. The fills are deliberately low, because at this blur the
       backdrop does the colouring and any more fill turns it into a grey card. */
    --cnc-lg-fill:       rgba(0, 0, 0, .16);
    --cnc-lg-filter:     blur(30px) saturate(180%) brightness(.78);
    --cnc-lg-fill-soft:  rgba(0, 0, 0, .14);
    
    /* iOS system fills, dark. */
    --cnc-fill-1: rgba(120, 120, 128, .36);
    --cnc-fill-2: rgba(120, 120, 128, .32);
    --cnc-fill-3: rgba(118, 118, 128, .24);
    --cnc-fill-4: rgba(118, 118, 128, .18);
    
    --cnc-rim-grad: linear-gradient(145deg,
        rgba(255, 255, 255, .70)   0%,
        rgba(255, 255, 255, .18)  22%,
        rgba(255, 255, 255, .04)  48%,
        rgba(255, 255, 255, .14)  74%,
        rgba(255, 255, 255, .50) 100%);

    --cnc-mat-1: rgba(62, 62, 69, .74);
    
    --cnc-mat-2: rgba(58, 58, 65, .62);
    
    --cnc-mat-3: rgba(80, 80, 89, .50);
  --cnc-mat-menu: rgb(40, 40, 46);
    
    --cnc-mat-line: rgba(255, 255, 255, .16);
    
    --cnc-mat-spec: rgba(255, 255, 255, .16);

    
    --cnc-label-1: #ffffff;
    --cnc-label-2: rgba(235, 235, 245, .60);
    --cnc-label-3: rgba(235, 235, 245, .30);
    
    --cnc-glass-chrome:  var(--cnc-lg-fill);
    --cnc-blur-chrome:   var(--cnc-lg-filter);
    --cnc-glass-content: var(--cnc-mat-1);
    --cnc-glass-raised:  var(--cnc-mat-2);
    --cnc-glass-ctl:     var(--cnc-mat-3);
    --cnc-blur-content:  none;
    --cnc-blur-ctl:      none;
    --cnc-inner-glow: inset 0 0 22px -10px rgba(255, 255, 255, .30);
    --cnc-inner-glow: inset 0 0 22px -10px rgba(255, 255, 255, .30);

    --cnc-hair:        rgba(255, 255, 255, .14);
    --cnc-hairline:    0 0 0 .5px rgba(255, 255, 255, .12);
    --cnc-hairline-sm: 0 0 0 .5px rgba(255, 255, 255, .11);
    --cnc-spec:        inset 0 .5px 0 rgba(255, 255, 255, .24);
    --cnc-spec-strong: inset 0 .5px 0 rgba(255, 255, 255, .22);
    --cnc-rim:         inset 0 0 0 1px rgba(255, 255, 255, .05);

    --cnc-lift:     0 30px 64px -20px rgba(0, 0, 0, .78), 0 10px 26px -14px rgba(0, 0, 0, .60);
    --cnc-lift-sm:  0 6px 18px -10px rgba(0, 0, 0, .55);
    --cnc-lift-btn: 0 6px 16px -6px rgba(0, 0, 0, .60);
    --cnc-lift-fab: 0 16px 34px -12px rgba(0, 0, 0, .70);

    --cnc-head-bg:  linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 100%);
    --cnc-trans-bg: transparent;
    --cnc-card-bg:  var(--cnc-mat-2);
    --cnc-chip-bg:  var(--cnc-mat-3);

    --cnc-accent-tint: color-mix(in srgb, var(--cnc-accent) 20%, #16161a 80%);
    --cnc-accent-dark: color-mix(in srgb, var(--cnc-accent) 60%, #fff 40%);

    --cnc-warn-text: #ffc164;
    --cnc-warn-body: #d8c3a0;
    --cnc-danger: #ff6b6b;
  }
}

/* ── Liquid glass rim ─────────────────────────────────────── */
/* The single thing that separates glass from a frosted rectangle.
 *
 * A box-shadow ring cannot do this: it is one colour all the way round, and a
 * real lit edge is not. The band is cut with the mask-composite border trick:
 * the element fills its whole box, the content box is then masked OUT of it,
 * and what survives is the padding band alone.
 *
 * A wider band carrying its OWN backdrop-filter was built and measured
 * against this, to see whether simulating the refraction at the rim was worth
 * it. Over the same storefront photograph it returned 1.2 points of structure
 * (69.3% against 68.1%) and painted a coloured halo all the way round, so it
 * was dropped. Apple's own specification names blur, the luminosity
 * adjustment and scroll edge effects, and no band at all.
 *
 * Drawn on ::after rather than ::before because the mobile panel already uses
 * ::before for its grab handle. pointer-events:none throughout, so a rim never
 * swallows a click meant for the control underneath it.
 *
 * THREE surfaces only, and that is the rule, not a shortcut: the rim is the
 * edge of a pane of Liquid Glass, and per Apple only the functional layer is
 * glass. A bubble, a chip and a card are content, so they have no edge to
 * catch light and putting one there is what makes a design look like glass
 * stickers on a card instead of one pane. */
.cnc-panel::after,
.cnc-launcher::after,
.cnc-nudge::after {
  content: "";
  position: absolute;
  inset: 0;
  /* !important because themes force `button::after { border-radius: 0
     !important }`, which squared the launcher's rim. */
  border-radius: inherit !important;
  padding: var(--cnc-rim-w);
  background: var(--cnc-rim-grad);
  /* Order matters: `mask` is a shorthand and resets mask-composite, so the
     composite mode has to be declared AFTER the shorthand it belongs to.
     Written the other way round the mask never subtracts and the gradient
     paints a sheet straight over the text. */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}

/* The three glass surfaces are all fixed already, so nothing needs a
   containing block added here; restating position would quietly unpin them. */

/* mask-composite is the one part of this with real support gaps. Without it
   the mask never subtracts the content box, so the gradient would fill the
   whole element and paint a translucent white sheet over the text. Drop the
   rim entirely rather than ship that. */
@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .cnc-panel::after,
  .cnc-launcher::after,
  .cnc-nudge::after { display: none; }
}

/* ── Launcher ─────────────────────────────────────────────── */
/* Stays solid ink. It has to be findable against an unknown storefront from
   the corner of the eye, which is the one job glass is bad at. */
.cnc-launcher {
  position: fixed;
  bottom: var(--cnc-edge);
  z-index: var(--cnc-z);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--cnc-launcher-size);
  height: var(--cnc-launcher-size);
  padding: 0;
  border: none;
  border-radius: calc(var(--cnc-launcher-size) / 2);
  /* Glass, like everything else, but over a dark core. The core is what keeps
     it findable from the corner of the eye on an unknown storefront, which is
     the one job glass is bad at; the blur and the rim are what make it belong
     to the same material as the panel it opens.

     That core was at .72, which is not a tint over glass, it is an opaque
     button with a blur behind it that nothing can be seen through. It read as
     cloudy grey plastic against the storefront. At .40 the backdrop comes
     through and the blur has something to do, while the icon keeps a dark
     substrate to sit on. The specular sweep is lifted to carry the top edge,
     which is what the lighter core gives up. */
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .03) 46%),
    rgba(20, 21, 26, .40);
  -webkit-backdrop-filter: var(--cnc-lg-filter);
  backdrop-filter: var(--cnc-lg-filter);
  color: #ffffff;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -.01em;
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  white-space: nowrap;
  box-shadow: inset 0 0 18px -8px rgba(255, 255, 255, .70),
              var(--cnc-lift-fab);
  /* Deliberately NOT animated in its resting state. The launcher used to float
     up and down 5px forever, which read as restlessness and, more concretely,
     carried it into the panel above whenever the panel was open. Movement here
     is now only ever a response to the shopper (hover / press). */
  transition:
    width var(--cnc-transition),
    padding var(--cnc-transition),
    transform var(--cnc-transition),
    box-shadow var(--cnc-transition);
  -webkit-tap-highlight-color: transparent;
}

.cnc-launcher--right { right: var(--cnc-edge); }
.cnc-launcher--left  { left:  var(--cnc-edge); }

/* Label: hidden in the circular resting state, revealed when the pill expands. */
.cnc-launcher__label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width var(--cnc-transition), opacity .18s ease, margin-left var(--cnc-transition);
}

/* Desktop (mouse) only: expand to a pill on hover/focus and reveal the label. */
@media (hover: hover) and (pointer: fine) {
  .cnc-launcher:hover,
  .cnc-launcher:focus-visible {
    width: auto;
    padding: 0 22px 0 18px;
  }
  .cnc-launcher:hover .cnc-launcher__label,
  .cnc-launcher:focus-visible .cnc-launcher__label {
    max-width: 240px;
    opacity: 1;
    margin-left: 9px;
  }
}

.cnc-launcher:hover,
.cnc-launcher:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26),
              0 0 0 .5px rgba(16, 18, 27, .22),
              0 20px 40px -12px rgba(16, 18, 27, .70);
  outline: none;
}
.cnc-launcher:focus-visible { outline: 3px solid var(--cnc-accent); outline-offset: 3px; }
.cnc-launcher:active { transform: translateY(-1px); }

.cnc-launcher__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--cnc-transition);
}
.cnc-launcher--open .cnc-launcher__icon { transform: rotate(-8deg); }

/* ── Panel ────────────────────────────────────────────────── */
.cnc-panel {
  position: fixed;
  /* Sits directly above the launcher with --cnc-gap between them. */
  bottom: var(--cnc-stack-bottom);
  z-index: var(--cnc-z);
  width: var(--cnc-panel-w);
  max-width: calc(100vw - (var(--cnc-edge) * 2));
  height: var(--cnc-panel-h);
  /* Leave the same margin at the top of the screen as at the sides. */
  max-height: calc(100dvh - var(--cnc-stack-bottom) - var(--cnc-top-safe));
  background: var(--cnc-glass-chrome);
  -webkit-backdrop-filter: var(--cnc-blur-chrome);
  backdrop-filter: var(--cnc-blur-chrome);
  border-radius: var(--cnc-r-panel);
  /* The edge lens is drawn separately (see Liquid glass edge lens); this is
     the specular line and the glow just
     inside it that gives the pane thickness, plus the float. */
  box-shadow: var(--cnc-rim), var(--cnc-inner-glow), var(--cnc-lift);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cncSlideUp var(--cnc-t) var(--cnc-curve) both;
}

.cnc-panel--right { right: var(--cnc-edge); }
.cnc-panel--left  { left:  var(--cnc-edge); }

.cnc-panel--closing { animation: cncSlideDown .18s ease both; }

@keyframes cncSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes cncSlideDown {
  from { opacity: 1; transform: translateY(0)    scale(1);   }
  to   { opacity: 0; transform: translateY(20px) scale(.96); }
}

/* ── Panel header ─────────────────────────────────────────── */
.cnc-panel__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 12px 13px 14px;
  background: var(--cnc-head-bg);
  /* No divider. On a glass pane the header is separated from the transcript by
     its own lighter fill, the way a real surface catches more light at the top.
     A hairline rule across it reads as two stacked cards instead of one pane. */
  color: var(--cnc-text);
  flex-shrink: 0;
}

.cnc-panel__agent {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.cnc-panel__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

/* History and new-chat grouped into one glass capsule, close on its own.
   The grouping says what they are: two ways to move between conversations,
   as against the one control that ends this one. */
.cnc-panel__ctlgroup {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--cnc-glass-ctl);
  box-shadow: var(--cnc-ctl-sh);
}

.cnc-panel__avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cnc-glass-ctl);
  -webkit-backdrop-filter: var(--cnc-blur-ctl);
  backdrop-filter: var(--cnc-blur-ctl);
  box-shadow: var(--cnc-inner-glow), inset 0 0 0 1px rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cnc-text);
  flex-shrink: 0;
}

.cnc-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.cnc-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cnc-panel__agent-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.cnc-panel__agent-name {
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -.012em;
  color: var(--cnc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cnc-panel__agent-status {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cnc-muted);
}

/* The live dot moved onto the avatar, where a presence indicator belongs.
   It pulses only while the concierge is actually reachable. */
.cnc-panel__avatar-wrap::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cnc-live);
  box-shadow: 0 0 0 2px var(--cnc-glass-raised), 0 0 0 0 rgba(52, 199, 89, .6);
  animation: cncLive 2.4s ease-in-out infinite;
}
@keyframes cncLive {
  0%   { box-shadow: 0 0 0 2px var(--cnc-glass-raised), 0 0 0 0 rgba(52, 199, 89, .6); }
  70%  { box-shadow: 0 0 0 2px var(--cnc-glass-raised), 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 2px var(--cnc-glass-raised), 0 0 0 0 rgba(52, 199, 89, 0); }
}
/* Not connected: amber, and still. The live pulse is what tells a shopper the
   concierge is there, so it must not run while it is not. */
.cnc-panel--offline .cnc-panel__avatar-wrap::after {
  background: var(--cnc-warn);
  box-shadow: 0 0 0 2px var(--cnc-glass-raised);
  animation: none;
}

/* ── Header buttons ───────────────────────────────────────── */
.cnc-close-btn,
.cnc-newchat-btn,
.cnc-history-btn {
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cnc-text);
  background: var(--cnc-glass-ctl);
  -webkit-backdrop-filter: var(--cnc-blur-ctl);
  backdrop-filter: var(--cnc-blur-ctl);
  box-shadow: var(--cnc-inner-glow);
  transition: background var(--cnc-t-fast) var(--cnc-curve), color var(--cnc-t-fast) var(--cnc-curve);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.cnc-newchat-btn,
.cnc-history-btn { width: 28px; height: 28px; }

.cnc-close-btn {
  width: 32px;
  height: 32px;
  color: var(--cnc-text);
  background: var(--cnc-glass-ctl);
  box-shadow: var(--cnc-ctl-sh);
}

.cnc-newchat-btn:hover,
.cnc-newchat-btn:focus-visible,
.cnc-history-btn:hover,
.cnc-history-btn:focus-visible {
  background: var(--cnc-glass-raised);
  color: var(--cnc-text);
  outline: none;
}
.cnc-close-btn:hover,
.cnc-close-btn:focus-visible {
  background: var(--cnc-glass-raised);
  outline: none;
}
.cnc-close-btn:focus-visible,
.cnc-newchat-btn:focus-visible,
.cnc-history-btn:focus-visible {
  outline: 2px solid var(--cnc-accent);
  outline-offset: 2px;
}

/* ── Chat history dropdown ────────────────────────────────── */
/* Overlays the chat area, does not push it: the panel keeps its size and the
   list simply floats above the transcript until a thread is picked or it's
   dismissed. */
.cnc-history-menu {
  position: absolute;
  top: 72px;
  left: 10px;
  right: 10px;
  z-index: 3;
  max-height: min(320px, calc(100% - 96px));
  overflow-y: auto;
  padding: 6px;
  /* The menu opens INSIDE the panel, so it is content, not a second pane.
     It carried the chrome blur until now, which is glass stacked on glass. */
  background: var(--cnc-mat-menu);
  -webkit-backdrop-filter: var(--cnc-blur-content);
  backdrop-filter: var(--cnc-blur-content);
  border-radius: var(--cnc-r-menu);
  box-shadow: var(--cnc-mat-sh), var(--cnc-lift);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: cncMenuIn .2s var(--cnc-curve) both;
}
/* The menu is built hidden and revealed by JS. `display: flex` above is an
   author rule and outranks the UA stylesheet's [hidden] { display: none },
   so the attribute has to be honoured explicitly or the menu never closes. */
.cnc-history-menu[hidden] { display: none; }

@keyframes cncMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.cnc-history-menu__status {
  margin: 0;
  padding: 16px 10px;
  text-align: center;
  font-size: 13px;
  color: var(--cnc-muted);
}

.cnc-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: none;
  border: none;
  border-radius: var(--cnc-r-btn);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--cnc-text);
  transition: background var(--cnc-t-fast) var(--cnc-curve);
}
.cnc-history-item:hover,
.cnc-history-item:focus-visible {
  background: var(--cnc-glass-content);
  box-shadow: var(--cnc-hairline-sm);
  outline: none;
}

.cnc-history-item__preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 540;
}

.cnc-history-item__date {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--cnc-ink-3);
}

/* ── Chat area ────────────────────────────────────────────── */
.cnc-chat {
  /* 1 1 0%, not 1 1 auto: the transcript claims the free space from its own
     zero basis, so it fills the panel even while it is still empty and waiting
     for the opening line. With an `auto` basis an empty transcript can be laid
     out at its content height (zero) and leave the composer sitting under the
     header instead of at the foot of the panel. */
  flex: 1 1 0%;
  /* A flex item's default min-height:auto refuses to shrink below its content,
     which breaks scrolling once the transcript is long. */
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--cnc-trans-bg);
  scroll-behavior: smooth;
  /* Scroll edge effect. Apple: "Scroll edge effects further enhance legibility
     by blurring and reducing the opacity of background content." The transcript
     scrolls under the header, so its top few pixels fade out rather than
     colliding with the header's label.
     https://developer.apple.com/design/human-interface-guidelines/materials */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
}

/* ── Bubbles ──────────────────────────────────────────────── */
.cnc-bubble {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: var(--cnc-r-bubble);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.005em;
  word-break: break-word;
  animation: cncBubbleIn var(--cnc-t-mid) var(--cnc-curve) both;
}

@keyframes cncBubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

.cnc-bubble--bot {
  /* A system fill on the panel's glass, not a second pane. No sheen and no
     blur of its own: both belong to the material underneath it. */
  background: var(--cnc-glass-content);
  -webkit-backdrop-filter: var(--cnc-blur-content);
  backdrop-filter: var(--cnc-blur-content);
  color: var(--cnc-text);
  border-bottom-left-radius: var(--cnc-r-tail);
  align-self: flex-start;
  /* The rim is the edge of the pane. Without it a low-alpha bubble has no
     boundary at all on a busy storefront photo. */
  box-shadow: var(--cnc-mat-sh), var(--cnc-lift-sm);
}

/* The shopper's own words stay solid ink. Glass on both sides makes the two
   voices hard to tell apart at a glance, and this is the one element that
   must never lose contrast. */
.cnc-bubble--shopper {
  max-width: 78%;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--cnc-ink) 88%, #fff 12%) 0%, var(--cnc-ink) 58%);
  color: var(--cnc-on-ink);
  border-bottom-right-radius: var(--cnc-r-tail);
  align-self: flex-end;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 20px -10px rgba(16, 18, 27, .55);
}

/* ── Reply structure inside a bubble ──────────────────────── */
/* The concierge answers in shape: a lead-in line, the list, then the ask. The
   bubble owns that rhythm, so a three-product answer reads as three products
   instead of one long line (see web/lib/text/structure.js). */
.cnc-bubble p {
  margin: 0;
}
.cnc-bubble p + p,
.cnc-bubble p + .cnc-bubble__list,
.cnc-bubble__list + p {
  margin-top: 7px;
}

.cnc-bubble__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cnc-bubble__list li {
  position: relative;
  padding-left: 14px;
}

/* A dot drawn by the stylesheet, not a "-" inherited from the model's text:
   it stays put when a long product name wraps onto a second line. */
.cnc-bubble__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .42;
}

.cnc-bubble strong {
  font-weight: 600;
}

/* Thinking dots */
.cnc-bubble--thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 17px;
}
.cnc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cnc-muted);
  animation: cncDotBounce 1.2s ease-in-out infinite;
}
.cnc-dot:nth-child(2) { animation-delay: .18s; }
.cnc-dot:nth-child(3) { animation-delay: .36s; }
@keyframes cncDotBounce {
  0%, 80%, 100% { transform: scale(.72); opacity: .35; }
  40%           { transform: scale(1);   opacity: .95; }
}

/* ── Info line ────────────────────────────────────────────── */
/* A centred glass pill, not a sentence floating in the transcript: it is the
   widget narrating, so it should not look like something anyone said. */
.cnc-info-line {
  align-self: center;
  max-width: 92%;
  margin: 2px 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cnc-glass-ctl);
  box-shadow: var(--cnc-ctl-sh);
  font-size: 11.5px;
  font-weight: 560;
  color: var(--cnc-muted);
  text-align: center;
  animation: cncBubbleIn var(--cnc-t-mid) var(--cnc-curve) both;
}
.cnc-info-line strong { color: var(--cnc-text); font-weight: 680; }

/* ── Connection notice ────────────────────────────────────── */
/* Deliberately not a chat bubble: this is the widget speaking about itself,
   and dressing it as the concierge would make a technical failure read as
   something the assistant said. */
.cnc-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--cnc-r-btn);
  background: var(--cnc-warn-bg);
  box-shadow: inset 0 0 0 .5px var(--cnc-warn-line);
  animation: cncBubbleIn var(--cnc-t-mid) var(--cnc-curve) both;
}
/* When the notice is the only thing in the transcript, it IS the panel's
   content. Centre it rather than stranding it under the header above 500px of
   empty glass, which reads as a panel that failed to finish loading. Stops
   applying by itself the moment a real message arrives. */
.cnc-chat > .cnc-notice:only-child {
  margin-top: auto;
  margin-bottom: auto;
}

.cnc-notice__icon { display: flex; flex-shrink: 0; color: var(--cnc-warn-text); }
.cnc-notice__text {
  flex: 1 1 auto;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--cnc-warn-body);
}
.cnc-notice__retry {
  flex-shrink: 0;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--cnc-glass-raised);
  box-shadow: 0 0 0 .5px var(--cnc-warn-line);
  color: var(--cnc-warn-text);
  font: inherit;
  font-size: 12px;
  font-weight: 640;
  cursor: pointer;
  transition: background var(--cnc-t-fast) var(--cnc-curve);
}
.cnc-notice__retry:hover:not(:disabled) { background: rgba(255, 159, 10, .18); }
.cnc-notice__retry:focus-visible { outline: 2px solid var(--cnc-warn-text); outline-offset: 2px; }
.cnc-notice__retry:disabled { opacity: .5; cursor: default; }

/* ── Checkout / primary action ────────────────────────────── */
.cnc-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 4px;
  background: var(--cnc-ink);
  color: var(--cnc-on-ink);
  text-align: center;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 660;
  letter-spacing: -.01em;
  border-radius: var(--cnc-r-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -10px rgba(16, 18, 27, .55);
  transition: transform var(--cnc-t-fast) var(--cnc-curve), box-shadow var(--cnc-transition);
  animation: cncBubbleIn var(--cnc-t-mid) var(--cnc-curve) both;
}
.cnc-checkout-btn:hover,
.cnc-checkout-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 30px -10px rgba(16, 18, 27, .62);
  outline: none;
}
.cnc-checkout-btn:focus-visible { outline: 2px solid var(--cnc-accent); outline-offset: 2px; }
.cnc-checkout-btn:active { transform: translateY(0); }
button.cnc-checkout-btn { border: none; cursor: pointer; font-family: inherit; }
button.cnc-checkout-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* After an add to cart: the two ways onward, side by side. */
.cnc-cart-actions { display: flex; gap: 8px; margin-top: 4px; }
.cnc-cart-actions .cnc-checkout-btn { flex: 1; margin-top: 0; }
.cnc-checkout-btn--secondary {
  background: transparent;
  color: var(--cnc-ink);
  box-shadow: inset 0 0 0 1.5px var(--cnc-ink);
}
.cnc-checkout-btn--secondary:hover,
.cnc-checkout-btn--secondary:focus-visible { box-shadow: inset 0 0 0 1.5px var(--cnc-ink); }

/* ── Quick-action chips ───────────────────────────────────── */
.cnc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0;
  animation: cncBubbleIn var(--cnc-t-mid) var(--cnc-curve) both;
}
.cnc-chip {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 570;
  letter-spacing: -.005em;
  color: var(--cnc-text);
  background: var(--cnc-glass-ctl);
  -webkit-backdrop-filter: var(--cnc-blur-ctl);
  backdrop-filter: var(--cnc-blur-ctl);
  border: none;
  border-radius: 999px;
  box-shadow: var(--cnc-mat-sh), 0 4px 12px -8px rgba(16, 18, 27, .28);
  cursor: pointer;
  transition: transform var(--cnc-t-fast) var(--cnc-curve), box-shadow var(--cnc-transition);
}
.cnc-chip:hover,
.cnc-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--cnc-hairline-sm), var(--cnc-spec-strong), 0 8px 18px -8px rgba(16, 18, 27, .34);
  outline: none;
}
.cnc-chip:focus-visible { outline: 2px solid var(--cnc-accent); outline-offset: 2px; }
.cnc-chip:active { transform: translateY(0); }

/* ── Contact capture ──────────────────────────────────────── */
/* Lives in the transcript, not the footer. Replacing the footer was how a
   shopper got stranded with no composer, so this is a block like any other. */
.cnc-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 2px 0;
  padding: 11px 12px 12px;
  border-radius: var(--cnc-r-card);
  background: var(--cnc-glass-content);
  box-shadow: var(--cnc-mat-sh), var(--cnc-lift-sm);
  animation: cncBubbleIn var(--cnc-t-mid) var(--cnc-curve) both;
}
.cnc-contact .cnc-email-prompt {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cnc-muted);
}
.cnc-contact .cnc-hint:empty { display: none; }
/* A confirmation, not a problem: the hint is the error colour by default. */
.cnc-contact .cnc-hint--ok { color: var(--cnc-muted); }

/* ── Product cards ────────────────────────────────────────── */
.cnc-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0;
}
.cnc-card {
  display: flex;
  flex-wrap: wrap;   /* so the option picker can take a full row underneath */
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--cnc-card-bg);
  -webkit-backdrop-filter: var(--cnc-blur-content);
  backdrop-filter: var(--cnc-blur-content);
  border-radius: var(--cnc-r-card);
  box-shadow: var(--cnc-mat-sh), var(--cnc-lift-sm);
  animation: cncBubbleIn var(--cnc-t-mid) var(--cnc-curve) both;
}
.cnc-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.cnc-card__img {
  width: 52px;
  height: 52px;
  border-radius: var(--cnc-r-thumb);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cnc-glass-ctl);
  box-shadow: inset 0 0 0 .5px rgba(16, 18, 27, .10);
}
.cnc-card__title {
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: -.008em;
  color: var(--cnc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Price and action stack on the right: the two things a shopper is actually
   deciding between, in the order they decide them. */
.cnc-card__action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cnc-card__price {
  font-size: 13.5px;
  font-weight: 680;
  letter-spacing: -.01em;
  color: var(--cnc-text);
  white-space: nowrap;
}
.cnc-card__add {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 630;
  color: var(--cnc-on-ink);
  background: var(--cnc-ink);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--cnc-t-fast) var(--cnc-curve), opacity var(--cnc-t-fast) var(--cnc-curve);
}
.cnc-card__add:hover,
.cnc-card__add:focus-visible { transform: translateY(-1px); outline: none; }
.cnc-card__add:focus-visible { outline: 2px solid var(--cnc-accent); outline-offset: 2px; }
.cnc-card__add:disabled { opacity: .55; cursor: default; transform: none; }

/* ── Option picker (sizes, colours) ───────────────────────── */
/* Opens inside the card when a product has more than one variant, so the
   shopper picks the exact one before anything reaches the cart. One labelled
   select per option; the browser's own control does the keyboard and screen
   reader work. */
.cnc-card__picker {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 9px;
  border-top: .5px solid var(--cnc-hair);
}
.cnc-card__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cnc-card__field {
  flex: 1 1 110px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cnc-card__field-name {
  padding-left: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--cnc-muted);
}
.cnc-card__select {
  width: 100%;
  height: 32px;
  padding: 0 28px 0 10px;
  font: inherit;
  font-size: 13px;
  color: var(--cnc-text);
  border: none;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--cnc-glass-ctl);
  /* A drawn chevron, so the control still reads as a dropdown with the
     native arrow turned off. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cnc-muted) 50%),
    linear-gradient(135deg, var(--cnc-muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 .5px var(--cnc-label-3);
  cursor: pointer;
  text-overflow: ellipsis;
}
.cnc-card__select:focus-visible { outline: 2px solid var(--cnc-accent); outline-offset: 2px; }
/* The open list is drawn by the browser. Tell it the panel is dark, or it
   paints dark text on a dark list in some browsers. */
:root[data-cnc-theme="dark"] .cnc-card__select { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root[data-cnc-theme="auto"] .cnc-card__select { color-scheme: dark; }
}
.cnc-card__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* "Choose Size" sits where the price will be, in the quieter colour, so it
   reads as a step still to take rather than as a figure. */
.cnc-card__buy .cnc-card__price { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cnc-card__price--hint { color: var(--cnc-muted); font-weight: 560; }

/* ── Composer ─────────────────────────────────────────────── */
.cnc-panel__footer {
  /* Pins the composer to the foot of the panel unconditionally. Even if the
     transcript above it collapses to nothing (empty, still loading, or a
     failed boot), the input row stays where the shopper expects it instead of
     riding up under the header. */
  margin-top: auto;
  /* 12px, not 10px: the lens band is 10px deep and the composer must sit
     clear of it, or its own edge gets refracted along with the storefront. */
  padding: 8px 12px 10px;
  flex-shrink: 0;
}

/* A floating glass control rather than a bar welded to the panel edge, so the
   transcript reads as continuing underneath it. */
.cnc-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: var(--cnc-r-composer);
  background: var(--cnc-glass-raised);
  -webkit-backdrop-filter: var(--cnc-blur-content);
  backdrop-filter: var(--cnc-blur-content);
  box-shadow: var(--cnc-mat-sh), 0 8px 22px -12px rgba(16, 18, 27, .30);
  transition: box-shadow var(--cnc-transition);
}
.cnc-input-row:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cnc-accent) 22%, transparent),
              var(--cnc-mat-sh), 0 8px 22px -12px rgba(16, 18, 27, .30);
}

.cnc-offer-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  letter-spacing: -.005em;
  color: var(--cnc-text);
}
.cnc-offer-input::-webkit-inner-spin-button,
.cnc-offer-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cnc-offer-input::placeholder { color: var(--cnc-ink-3); }
/* Themes hide placeholders on focus (`:focus::placeholder { opacity: 0 }`) and
   resize them. The composer opens focused, so "Ask me anything…" vanished the
   moment the panel opened. */
#cnc-panel .cnc-offer-input::placeholder,
#cnc-panel .cnc-offer-input:focus::placeholder,
.cnc-panel .cnc-offer-input:focus::placeholder {
  opacity: 1;
  font-size: inherit;
}
.cnc-offer-input:focus { outline: none; }
.cnc-offer-input:disabled { color: var(--cnc-ink-3); cursor: not-allowed; }

/* Circular, icon-only, accent-filled. The one place the merchant's colour
   lands in the composer, so "send" is the brightest thing in the row. */
.cnc-send-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  /* Ink, not accent. Accent is the merchant's colour and the default is
     near-black, which on a dark glass pane is a black circle on a dark
     background. The ink pair inverts with the theme, so "send" is always the
     brightest thing in the row. */
  background: var(--cnc-ink);
  color: var(--cnc-on-ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--cnc-lift-btn);
  transition: transform var(--cnc-t-fast) var(--cnc-curve), opacity var(--cnc-t-fast) var(--cnc-curve);
}
.cnc-send-btn:hover:not(:disabled),
.cnc-send-btn:focus-visible:not(:disabled) { transform: scale(1.05); outline: none; }
.cnc-send-btn:focus-visible { outline: 2px solid var(--cnc-accent); outline-offset: 2px; }
.cnc-send-btn:active:not(:disabled) { transform: scale(.96); }
.cnc-send-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* Text-labelled variant, used where the action needs a verb (the contact
   handoff) rather than a direction. */
.cnc-send-btn--text {
  width: auto;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 640;
}

/* Busy state: the spinner replaces the glyph in place, so the button never
   changes width mid-send. */
.cnc-send-btn--busy .cnc-send-btn__icon,
.cnc-send-btn--busy .cnc-send-btn__text { display: none; }
.cnc-send-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #ffffff;
  animation: cncSpin .7s linear infinite;
}
.cnc-send-btn--busy .cnc-send-btn__spinner { display: block; }
@keyframes cncSpin { to { transform: rotate(360deg); } }

.cnc-hint {
  margin: 7px 4px 0;
  font-size: 12px;
  color: var(--cnc-danger);
  min-height: 16px;
}

/* ── Email / contact capture ──────────────────────────────── */
.cnc-email-prompt {
  margin: 0 0 8px;
  padding-left: 6px;
  font-size: 12.5px;
  font-weight: 540;
  color: var(--cnc-muted);
}

/* ── Scrollbar ────────────────────────────────────────────── */
.cnc-chat::-webkit-scrollbar,
.cnc-history-menu::-webkit-scrollbar { width: 5px; }
.cnc-chat::-webkit-scrollbar-track,
.cnc-history-menu::-webkit-scrollbar-track { background: transparent; }
.cnc-chat::-webkit-scrollbar-thumb,
.cnc-history-menu::-webkit-scrollbar-thumb {
  background: var(--cnc-hair);
  border-radius: 4px;
}

/* ── Proactive nudge ──────────────────────────────────────── */
/* Glass now, not a black card. It arrives uninvited, so it should feel like
   part of the page it interrupted rather than a banner dropped on top of it. */
.cnc-nudge {
  position: fixed;
  /* Same shelf as the panel: both sit one --cnc-gap above the launcher. */
  bottom: var(--cnc-stack-bottom);
  z-index: var(--cnc-z);
  width: 292px;
  max-width: calc(100vw - (var(--cnc-edge) * 2));
  padding: 14px 14px 13px;
  background: var(--cnc-lg-fill);
  -webkit-backdrop-filter: var(--cnc-lg-filter);
  backdrop-filter: var(--cnc-lg-filter);
  border-radius: var(--cnc-r-bubble) var(--cnc-r-bubble) var(--cnc-r-tail) var(--cnc-r-bubble);
  box-shadow: var(--cnc-inner-glow), var(--cnc-lift);
  color: var(--cnc-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 11px;
  animation: cncNudgeIn .38s var(--cnc-curve) both;
}
.cnc-nudge--right { right: var(--cnc-edge); }
.cnc-nudge--left  { left:  var(--cnc-edge); }
.cnc-nudge--closing { animation: cncNudgeOut .18s ease both; }

.cnc-nudge__close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cnc-glass-ctl);
  box-shadow: var(--cnc-ctl-sh);
  color: var(--cnc-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--cnc-t-fast) var(--cnc-curve);
}
.cnc-nudge__close:hover { color: var(--cnc-text); }
.cnc-nudge__close:focus-visible { outline: 2px solid var(--cnc-accent); outline-offset: 2px; }

.cnc-nudge__text {
  margin: 0 26px 0 0;
  font-size: 13.5px;
  line-height: 1.48;
  letter-spacing: -.005em;
  font-weight: 450;
  color: var(--cnc-text);
}
.cnc-nudge__cta {
  align-self: flex-start;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--cnc-ink);
  color: var(--cnc-on-ink);
  font-size: 13px;
  font-weight: 640;
  letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px -10px rgba(16, 18, 27, .55);
}

@keyframes cncNudgeIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes cncNudgeOut {
  from { opacity: 1; transform: translateY(0);  }
  to   { opacity: 0; transform: translateY(10px); }
}

/* Draw the eye to the launcher while the nudge is up. A glow ring only: it
   pulses in place and never displaces the button, so the gap to the panel holds
   even when the nudge is up and the panel is open at the same time. */
.cnc-launcher--pulse { animation: cncPulse 2s ease-in-out infinite; }
@keyframes cncPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), var(--cnc-lift-fab), 0 0 0 0 color-mix(in srgb, var(--cnc-accent) 50%, transparent); }
  50%      { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), var(--cnc-lift-fab), 0 0 0 12px color-mix(in srgb, var(--cnc-accent) 0%, transparent); }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 440px) {
  :root {
    --cnc-panel-w: 100vw;
    --cnc-panel-h: 84dvh;
    /* One value moves the launcher in from both edges; it stays square in the
       corner because right and bottom read from the same token. */
    --cnc-edge: 16px;
  }
  /* A bottom sheet on a phone: it sets its own edges rather than sitting on
     the launcher's shelf, and keeps only its top corners rounded. */
  .cnc-panel--right,
  .cnc-panel--left {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100vw;
    max-height: 92dvh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  /* Grab handle, the standard "this sheet is dismissible" affordance. */
  .cnc-panel--right::before,
  .cnc-panel--left::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 5px;
    border-radius: 3px;
    background: var(--cnc-hair);
    z-index: 4;
  }
  .cnc-panel__header { padding-top: 20px; }
  .cnc-history-menu { top: 80px; }
  /* With the panel full-bleed there is no shelf to sit on, so the launcher
     would float on top of the conversation. Hide it while the panel is open;
     the panel has its own close button. The class is removed before focus
     returns to the launcher on close, so keyboard focus still lands. */
  .cnc-launcher--open { display: none; }
  .cnc-nudge { width: calc(100vw - (var(--cnc-edge) * 2)); }

  /* Touch targets. Nothing a thumb has to hit drops below 44px. */
  .cnc-chip { height: 44px; padding: 0 17px; font-size: 14px; }
  .cnc-send-btn { width: 44px; height: 44px; }
  .cnc-send-btn--text { width: auto; padding: 0 18px; }
  .cnc-input-row { border-radius: 28px; padding: 6px 6px 6px 18px; }
  .cnc-offer-input { font-size: 16px; }   /* 16px stops iOS zooming on focus */
  .cnc-card__add { height: 36px; padding: 0 14px; font-size: 13px; }
  .cnc-card__select { height: 40px; font-size: 16px; }   /* 16px stops iOS zooming on focus */
  .cnc-close-btn { width: 36px; height: 36px; }
  .cnc-newchat-btn,
  .cnc-history-btn { width: 34px; height: 34px; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cnc-launcher,
  .cnc-launcher--pulse,
  .cnc-panel,
  .cnc-panel--closing,
  .cnc-history-menu,
  .cnc-bubble,
  .cnc-chips,
  .cnc-card,
  .cnc-checkout-btn,
  .cnc-info-line,
  .cnc-notice,
  .cnc-nudge,
  .cnc-panel__avatar-wrap::after {
    animation: none !important;
    transition: none !important;
  }
  /* The thinking dots and the send spinner are the exception: they are the
     only signal that something is happening, so they keep moving. */
}

/* ── When glass cannot be glass ───────────────────────────── */
/* The alphas above assume the blur is doing half the work of separating the
   panel from the storefront behind it. Two cases where it is not: */

/* 1. No backdrop-filter (older WebKit, some in-app browsers). Without the blur
      a 42% white panel is just the storefront showing through the text. */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  :root {
    --cnc-glass-chrome:  rgba(255, 255, 255, .95);
    --cnc-glass-content: rgba(255, 255, 255, .97);
    --cnc-glass-raised:  rgba(255, 255, 255, .98);
    --cnc-glass-ctl:     rgba(255, 255, 255, .92);
    --cnc-card-bg:       rgba(255, 255, 255, .96);
    --cnc-chip-bg:       rgba(255, 255, 255, .96);
  }
  :root[data-cnc-theme="dark"] {
    --cnc-glass-chrome:  rgba(26, 26, 31, .97);
    --cnc-glass-content: rgba(58, 58, 65, .97);
    --cnc-glass-raised:  rgba(50, 50, 57, .98);
    --cnc-glass-ctl:     rgba(64, 64, 72, .95);
    --cnc-card-bg:       rgba(58, 58, 65, .96);
    --cnc-chip-bg:       rgba(64, 64, 72, .96);
  }
  @media (prefers-color-scheme: dark) {
    :root[data-cnc-theme="auto"] {
      --cnc-glass-chrome:  rgba(26, 26, 31, .97);
      --cnc-glass-content: rgba(58, 58, 65, .97);
      --cnc-glass-raised:  rgba(50, 50, 57, .98);
      --cnc-glass-ctl:     rgba(64, 64, 72, .95);
      --cnc-card-bg:       rgba(58, 58, 65, .96);
      --cnc-chip-bg:       rgba(64, 64, 72, .96);
    }
  }
}

/* 2. The shopper has asked their OS for less transparency. Honour it: the
      look is a preference, being able to read the reply is not. The rim stays,
      since it costs no transparency and is what keeps the shapes legible once
      the panes are solid. */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --cnc-glass-chrome:  rgba(255, 255, 255, .96);
    --cnc-glass-content: rgba(255, 255, 255, .98);
    --cnc-glass-raised:  rgba(255, 255, 255, .99);
    --cnc-glass-ctl:     rgba(255, 255, 255, .94);
    --cnc-card-bg:       rgba(255, 255, 255, .97);
    --cnc-chip-bg:       rgba(255, 255, 255, .97);
  }
  :root[data-cnc-theme="dark"] {
    --cnc-glass-chrome:  rgba(26, 26, 31, .98);
    --cnc-glass-content: rgba(58, 58, 65, .98);
    --cnc-glass-raised:  rgba(50, 50, 57, .99);
    --cnc-glass-ctl:     rgba(64, 64, 72, .96);
    --cnc-card-bg:       rgba(58, 58, 65, .97);
    --cnc-chip-bg:       rgba(64, 64, 72, .97);
  }
}

/* ── Accessibility adaptations ────────────────────────────────────────────
   Apple ships three for Liquid Glass, automatically for system components and
   by hand for custom ones: "people can ... turn on accessibility settings that
   reduce transparency or motion in the interface. These settings can remove or
   modify certain effects ... Ensure you test your app's custom elements."
   https://developer.apple.com/documentation/technologyoverviews/adopting-liquid-glass

   Reduced Motion already has its block further up. The other two follow. */

/* Increased Contrast: the system makes glass "predominantly black or white and
   highlights [it] with a contrasting border". */
@media (prefers-contrast: more) {
  :root {
    --cnc-lg-fill: rgba(255, 255, 255, .94);
    --cnc-lg-filter: blur(12px) saturate(120%);
    --cnc-fill-1: rgba(0, 0, 0, .16);
    --cnc-fill-2: rgba(0, 0, 0, .12);
    --cnc-fill-3: rgba(0, 0, 0, .10);
    --cnc-fill-4: rgba(0, 0, 0, .07);
    --cnc-label-2: rgba(0, 0, 0, .78);
    --cnc-label-3: rgba(0, 0, 0, .62);
  }
  :root[data-cnc-theme="dark"] {
    --cnc-lg-fill: rgba(0, 0, 0, .94);
    --cnc-fill-1: rgba(255, 255, 255, .22);
    --cnc-fill-2: rgba(255, 255, 255, .18);
    --cnc-fill-3: rgba(255, 255, 255, .15);
    --cnc-fill-4: rgba(255, 255, 255, .11);
    --cnc-label-2: rgba(255, 255, 255, .82);
    --cnc-label-3: rgba(255, 255, 255, .66);
  }
  /* The contrasting border the system adds. */
  .cnc-panel, .cnc-launcher, .cnc-nudge { box-shadow: 0 0 0 1.5px currentColor, var(--cnc-lift); }
  .cnc-chip, .cnc-card, .cnc-input-row { box-shadow: inset 0 0 0 1px var(--cnc-label-3); }
}
