/* The existing hub is the illustration. Its marks carry the app colours. */
#app-combinations {
  --st-ink: var(--hc-ink);
  --st-body: #464b52;
  --st-muted: var(--hc-muted);
  --st-glow: 82 101 126;
  --hc-tool-fill: #e6e8eb;
  --hc-trail: #c9ccd0;
  --hc-success: #236844;
}
[data-site-theme=dark] #app-combinations {
  --st-body: #c3c8cf;
  --st-glow: 170 200 255;
  --hc-tool-fill: #29292a;
  --hc-trail: #3a3a3c;
  --hc-success: #b7e2c8;
}
/* Use the transparent brand glyphs directly. The selected menu item reverses its own surface. */
#app-combinations {
  --mono-glyph: brightness(0);
  --shopify-glyph: brightness(.8);
  --airtable-glyph: brightness(.73);
}
[data-site-theme=dark] #app-combinations, #app-combinations .hc-pick[aria-pressed=true] {
  --mono-glyph: brightness(0) invert(1);
  --shopify-glyph: none;
  --airtable-glyph: none;
}
[data-site-theme=dark] #app-combinations .hc-pick[aria-pressed=true] {
  --mono-glyph: brightness(0);
  --shopify-glyph: brightness(.8);
  --airtable-glyph: brightness(.73);
}
#app-combinations [data-app] { --glyph: var(--mono-glyph); }
#app-combinations :is([data-app=stripe],[data-app=linear]) { --glyph: none; }
#app-combinations [data-app=shopify] { --glyph: var(--shopify-glyph); }
#app-combinations [data-app=airtable] { --glyph: var(--airtable-glyph); }
#app-combinations :is(.hc-mark,.hc-node-lit,.hc-node-dim,.hc-story-step[data-type=source] > .hc-step-dot) {
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#app-combinations :is(.hc-mark,.hc-node-lit,.hc-node-dim) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--glyph, none);
}
#app-combinations .hc-node { --active-size: 1.23; --peak-size: 1.34; }
#app-combinations .hc-node[data-word] { --active-size: 1.08; --peak-size: 1.13; }
#app-combinations .hc-node-dim {
  opacity: .74;
  transform: scale(.73);
  transition: opacity .3s var(--ease-settle), transform .4s var(--ease-settle);
}
#app-combinations .hc-node-dim :is(img,span) { opacity: 1; color: inherit; }
#app-combinations .hc-node-lit { opacity: 0; transform: scale(.73); }
#app-combinations .hc-node[data-state=lit] .hc-node-lit { opacity: 1; transform: scale(var(--active-size)); }
#app-combinations .hc-node[data-state=lit] .hc-node-dim { opacity: 0; }
#app-combinations .hc-node-name { color: var(--hc-ink); font-size: 12px; font-weight: 520; opacity: .78; }
#app-combinations .hc-node[data-state="lit"] .hc-node-name { top: calc(100% + .19 * var(--node) + 4px); opacity: 1; }
#app-combinations .hc-top { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
#app-combinations .hc-audiences { gap: 2px; padding: 3px; }
#app-combinations .hc-audiences button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 13px;
  line-height: 1.35;
}
#app-combinations .hc-picks { gap: 4px; }
#app-combinations .hc-pick {
  min-height: 56px;
  padding: 9px 12px;
  gap: 9px;
  border-radius: 15px;
}
#app-combinations .hc-pick-marks { width: 43px; align-items: center; justify-content: flex-start; gap: 5px; }
#app-combinations .hc-pick-marks .hc-mark { --m: 18px; }
#app-combinations :is(.hc-pick-marks,.hc-card-marks) .hc-mark + .hc-mark { margin-left: 0; }
#app-combinations .hc-pick-text small { display: block; font-size: 12px; }
#app-combinations .hc-pick-text strong { font-size: 14px; line-height: 1.42; font-weight: 520; }
#app-combinations .hc-pick[aria-pressed=true] .hc-pick-text strong { font-weight: 600; }
#app-combinations > .lcs-foot { display: flex; justify-content: center; margin: 26px 0 0; }

#app-combinations .hc-stage {
  --hc-over: 0px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color-scheme: inherit;
}
/* The original Higgsfield loop and resting frame share a 600px square. The glass
   occupies 36.4% of that frame. Enlarge the frame around the visible body. */
#app-combinations :is(.hc-rings,.hc-glow,.hc-core-ring) { display: none; }
#app-combinations .hc-core {
  position: absolute;
  left: 50%;
  top: var(--centre-y, 50%);
  width: calc(var(--glass-width) / .364);
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  transform: translate(-50%, -50.8%);
}
/* Dark uses the original feathered film, including the two light rings.
   The light mask follows the film outline and the opening inside the F, leaving room for the moving bevels. */
:root:not([data-site-theme=dark]) #app-combinations :is(.hc-core-still,.hc-core-film) {
  clip-path: inset(19.4% 30.9% 17.8% round 999px);
}
:root:not([data-site-theme=dark]) #app-combinations .hc-core-still {
  mask-image: none;
  -webkit-mask-image: none;
}
:root:not([data-site-theme=dark]) #app-combinations .hc-core-film {
  mix-blend-mode: normal;
  --glass-silhouette: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 600 600%22%3E%3Cpath fill=%22white%22 fill-rule=%22evenodd%22 d=%22M300 120C362 120 412 169 412 230V384C412 445 362 490 299 490C236 490 189 444 189 383V230C189 170 237 120 300 120ZM298 197C318 197 330 210 330 233V380Q330 411 300 414Q267 414 265 383V326H286L316 279V271H265V234Q265 199 298 197Z%22/%3E%3C/svg%3E");
  -webkit-mask: var(--glass-silhouette) center / contain no-repeat;
  mask: var(--glass-silhouette) center / contain no-repeat;
}
#app-combinations :is(.hc-node,.hc-line) { --angle: var(--orbit); }
#app-combinations .hc-node {
  left: calc(50% + var(--radius) * cos(var(--angle)));
  top: calc(var(--centre-y, 50%) + var(--radius) * sin(var(--angle)));
}
#app-combinations .hc-line {
  --start: calc(var(--glass-width) * (.52 + .35 * sin(var(--angle)) * sin(var(--angle))) + 4px);
  --end-gap: calc(var(--node) * .64 + 5px);
  width: max(0px, calc(var(--radius) - var(--start) - var(--end-gap)));
  top: var(--centre-y, 50%);
  transform: rotate(var(--angle)) translateX(var(--start));
}
#app-combinations .hc-line[data-word] { --end-gap: 44px; }
#app-combinations .hc-line > i {
  background: linear-gradient(90deg, rgb(var(--st-glow) / .38), rgb(var(--st-glow) / .92));
  box-shadow: none;
}
#app-combinations .hc-line > b {
  left: 100%; right: auto; top: 50%; width: 4px; height: 4px;
  margin: 0; transform: translate(-50%, -50%); background: var(--hc-ink); box-shadow: none;
}
#app-combinations .hc-line[data-flow=waiting] > i { opacity: .45; }
#app-combinations .hc-line:is([data-flow=reading],[data-flow=drafting]) > i { background: color-mix(in srgb, var(--hc-ink) 64%, transparent); }
#app-combinations .hc-card {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#app-combinations .hc-card-apps { margin: 0 0 10px; }
#app-combinations .hc-agent-id {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--st-body);
  font-size: 13px;
}
#app-combinations .hc-agent-id strong { font-weight: 540; }
#app-combinations .hc-card-apps .fz-agent { width: 25px; height: 28px; margin: 0; }
#app-combinations .hc-card-apps .fz-agent-face { inset: 7px 4px; gap: 3px; }
#app-combinations .hc-card h3 {
  font-size: clamp(21px, 1.95vw, 27px);
  line-height: 1.17;
  letter-spacing: -.03em;
  text-wrap: pretty;
}
#app-combinations .hc-rule {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 10px;
}
#app-combinations .hc-rule > .hc-eyebrow {
  flex: none;
  color: var(--st-muted);
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}
#app-combinations .hc-rule-select { position: relative; display: inline-grid; min-width: 0; max-width: 100%; }
#app-combinations .hc-rule select, #app-combinations .hc-mobile-controls select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 5px 28px 5px 11px;
  border: 0;
  border-radius: 8px;
  appearance: none;
  min-height: 34px;
  background: var(--hc-tool-fill);
  color: var(--st-ink);
  font: 500 13px/1.4 var(--font-sans);
  cursor: pointer;
}
#app-combinations .hc-rule-select svg {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  pointer-events: none;
}
#app-combinations select option { background: var(--hc-page); color: var(--hc-ink); }
#app-combinations select:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

#app-combinations .hc-story-trail {
  display: grid;
  list-style: none;
  margin: 20px 0 16px;
  padding: 0;
}
#app-combinations .hc-story-step {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  column-gap: 11px;
  padding-bottom: 13px;
}
#app-combinations .hc-story-step:last-child { padding-bottom: 0; }
#app-combinations .hc-story-step:not(:last-child)::before {
  position: absolute;
  content: "";
  left: 13px;
  top: 32px;
  bottom: 5px;
  width: 1px;
  background: var(--hc-trail);
}
#app-combinations .hc-step-dot {
  align-self: start;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin: 0;
  border-radius: 8px;
  background: var(--hc-tool-fill);
  color: var(--hc-ink);
}
#app-combinations .hc-step-dot > .hc-mark { --m: 19px; }
#app-combinations .hc-step-dot svg { width: 15px; height: 15px; }
#app-combinations .hc-story-step[data-state=waiting] > .hc-step-dot { opacity: .6; }
#app-combinations .hc-step-copy { min-width: 0; }
#app-combinations .hc-step-copy > strong, #app-combinations .hc-step-line { display: block; font-size: 14px; line-height: 1.45; }
#app-combinations .hc-step-copy > strong { font-weight: 560; color: var(--st-ink); }
#app-combinations .hc-step-copy .hc-rule { align-items: center; gap: 4px 8px; margin: -3px 0 0; }
#app-combinations .hc-step-copy .hc-rule > .hc-eyebrow { font-size: 13px; letter-spacing: 0; color: var(--st-body); }
#app-combinations .hc-step-ink b, #app-combinations .hc-step-tail b { font-weight: 585; font-variant-numeric: tabular-nums; color: var(--st-ink); }
#app-combinations [data-state=waiting] .hc-step-copy > strong { color: var(--st-muted); font-weight: 450; }
#app-combinations .hc-step-line { margin-top: 2px; color: var(--st-body); }
#app-combinations .hc-step-line[data-typing] .hc-step-ink { position: relative; }
#app-combinations .hc-step-line[data-typing] .hc-step-ink::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: .95em;
  margin-right: -1px;
  vertical-align: -.12em;
  background: currentColor;
}
#app-combinations .hc-step-tail { visibility: hidden; user-select: none; }
#app-combinations .hc-story-status {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#app-combinations .hc-prepared {
  display: grid;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 17px 19px;
  border-radius: 15px;
  background: var(--hc-fill);
  box-shadow: none;
}
#app-combinations .hc-outlet[data-ready=true] { visibility: visible; }
#app-combinations .hc-prepared > .hc-eyebrow { margin-bottom: 7px; }
#app-combinations .hc-result-caption { display: flex; align-items: center; gap: 7px; }
#app-combinations .hc-result-caption > .hc-mark { --m: 19px; }
#app-combinations .hc-result-caption > svg { width: 15px; height: 15px; }
#app-combinations .hc-prepared-head { min-width: 0; gap: 4px; }
#app-combinations .hc-prepared .hc-eyebrow {
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 480;
  text-transform: none;
  letter-spacing: 0;
}
#app-combinations .hc-prepared > strong, #app-combinations .hc-prepared-head strong { font-size: 16px; line-height: 1.35; font-weight: 560; color: var(--st-ink); }
#app-combinations .hc-story-card .hc-prepared > strong { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.28; letter-spacing: -.024em; text-wrap: pretty; }
#app-combinations .hc-outcome-note, #app-combinations .hc-decision-receipt p { margin-top: 5px; font-size: 13px; line-height: 1.42; color: var(--st-body); }
#app-combinations .hc-prepared-actions { gap: 6px; margin-top: 11px; }
#app-combinations .hc-prepared-actions button { justify-content: center; min-height: 37px; color: var(--hc-ink); background: var(--hc-tool-fill); }
#app-combinations .hc-prepared-actions button[data-primary] { background: var(--hc-sel); color: var(--hc-on-sel); }
#app-combinations .hc-prepared-actions button > svg { width: 14px; height: 14px; }
#app-combinations .hc-decision-receipt h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; color: var(--st-ink); font-size: 16px; font-weight: 580; letter-spacing: -.015em; line-height: 1.35; }
#app-combinations .hc-decision-receipt h4 > svg { width: 15px; height: 15px; color: var(--hc-success); }
#app-combinations .hc-decision-receipt h4 { color: var(--hc-success); font-size: 14px; }
#app-combinations .hc-decision-receipt[data-decision=declined] h4 { color: var(--hc-muted); }
#app-combinations .hc-decision-receipt[data-decision=declined] h4 > svg { color: var(--st-muted); }
#app-combinations .hc-mobile-controls { display: none; }

@media (min-width: 721px) {
  #app-combinations .hc-stage {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 1.06fr);
    align-items: start;
    gap: clamp(18px, 2.1vw, 34px);
    min-height: 0;
    padding: 5px 0 0;
  }
  #app-combinations .hc-result { align-self: start; width: 100%; max-width: none; margin: 0; }
  #app-combinations .hc-hub {
    width: 100%; height: auto; aspect-ratio: 1 / 1;
    container-type: inline-size;
    align-self: start; justify-self: center; margin: 0;
  }
  #app-combinations .hc-hub-art {
    --glass-width: 30cqw;
    --radius: 37cqw;
    --node: clamp(27px, 9.7cqw, 46px);
  }
  #app-combinations .hc-node[data-word] { width: clamp(61px, 20cqw, 88px); }
  #app-combinations .hc-node:not([data-state=lit]) { opacity: .86; }
  #app-combinations .hc-hub .hc-node-name { font-size: 11px; }
}
@media (min-width: 961px) {
  #app-combinations .hc-layout { grid-template-columns: minmax(198px, .64fr) minmax(0, 2.28fr); gap: clamp(16px,2.3vw,32px); }
  #app-combinations .hc-picks { display: grid; padding-top: 2px; }
  #app-combinations .hc-pick { width: 100%; }
}
@media (min-width: 721px) and (max-width: 960px) {
  #app-combinations .hc-picks { gap: 3px 8px; }
  #app-combinations .hc-pick { padding-inline: 10px; min-height: 40px; }
  #app-combinations .hc-pick-text strong { font-size: 13px; }
}
@media (min-width: 721px) and (max-width: 820px) {
  #app-combinations .hc-node:not([data-state=lit]) { display: block; }
}
@media (hover: hover) {
  #app-combinations .hc-rule select:hover, #app-combinations .hc-prepared-actions button:hover { filter: brightness(.92); }
}
@media (pointer:coarse) {
  #app-combinations :is(.hc-audiences button, .hc-prepared-actions button, .hc-rule select) { min-height: 44px; }
}
@media (max-width: 720px) {
  #app-combinations .hc-top { margin-bottom: 14px; }
  #app-combinations .hc-head p { margin-top: 8px; }
  #app-combinations[data-story=ready] .hc-audiences, #app-combinations[data-story=ready] .hc-picks { display: none; }
  #app-combinations .hc-mobile-controls {
    display: grid;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--hc-fill);
    border-radius: 12px;
  }
  #app-combinations .hc-mobile-controls label { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; min-width: 0; }
  #app-combinations .hc-mobile-controls label > span { font-size: 12px; color: var(--hc-muted); }
  #app-combinations .hc-mobile-controls select { min-height: 44px; padding: 6px 16px 6px 2px; border-radius: 3px; background: transparent; color: var(--hc-ink); font-size: 14px; text-overflow: ellipsis; }
  #app-combinations .hc-mobile-controls label::after { content:""; position:absolute; right:3px; top:calc(50% - 4px); width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); pointer-events:none; color:var(--hc-muted); }
  #app-combinations .hc-layout { display: block; }
  #app-combinations .hc-stage { display: block; min-height: 0; padding: 12px 0; }
  #app-combinations .hc-result { width: 100%; max-width: none; margin: 0; }
  #app-combinations .hc-hub {
    width: min(100%, 360px); height: 132px; margin: 0 auto 15px;
    container-type: inline-size;
    --centre-y: 46%;
  }
  #app-combinations .hc-hub:has(.hc-line:nth-child(3)) { height: 196px; --centre-y: 66%; }
  #app-combinations .hc-hub-art { --glass-width: 61px; --radius: clamp(68px, 31cqw, 101px); --node: 31px; }
  #app-combinations :is(.hc-node,.hc-line) { --angle: calc(180deg + (var(--ap) - 210deg) * 1.5); }
  #app-combinations .hc-node[data-word] { width: 68px; height: 29px; }
  #app-combinations .hc-node[data-word] .hc-node-lit { font-size: 11px; }
  #app-combinations .hc-node-name { font-size: 11px; }
  #app-combinations .hc-node:not([data-state=lit]) { display: none; }
  #app-combinations .hc-card h3 { font-size: 21px; }
  #app-combinations .hc-prepared-actions button, #app-combinations .hc-rule select { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  #app-combinations[data-motion=true] .hc-nodes { animation: none; }
  #app-combinations[data-motion=true] .hc-node[data-state=lit] .hc-node-lit {
    animation: hc-select-mark .7s var(--ease-settle) var(--d, 0s) both;
  }
  #app-combinations[data-motion=true] .hc-story-step[data-state=active] > .hc-step-dot {
    animation: hc-read-source .45s var(--ease-settle) both;
  }
  #app-combinations[data-motion=true] .hc-outlet[data-ready=true],
  #app-combinations[data-motion=true] .hc-prepared[data-decision] h4 {
    animation: hc-open-review .38s var(--ease-settle) both;
  }
  @keyframes hc-read-source { from { transform: scale(.85); opacity: .62; } 60% { transform: scale(1.1); } to { transform: none; opacity: 1; } }
  @keyframes hc-open-review { from { opacity: .1; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  @keyframes hc-select-mark {
    0% { transform: scale(.78); }
    58% { transform: scale(var(--peak-size)); }
    100% { transform: scale(var(--active-size)); }
  }
  #app-combinations[data-motion=true] :is(.hc-line > i,.hc-line > b,.hc-core-ring),
  #app-combinations[data-story=ready] :is(.hc-result-card,.hc-prepared) { animation: none; }
  #app-combinations[data-motion=true] .hc-line:is([data-flow=reading],[data-flow=drafting]) > b {
    animation: hc-source-signal .92s linear infinite;
  }
  #app-combinations[data-motion=true] .hc-line[data-flow=drafting] > b { animation-direction: reverse; }
  #app-combinations[data-motion=true] .hc-node:is([data-flow=reading],[data-flow=drafting]) .hc-node-lit > :is(img,span) {
    animation: hc-source-work 1.12s ease-in-out infinite;
  }
  @keyframes hc-source-signal {
    0% { left: 100%; opacity: 0; } 20%, 75% { opacity: 1; } 100% { left: 0; opacity: 0; }
  }
  @keyframes hc-source-work {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1.5px) scale(1.08); }
  }
  #app-combinations .hc-story-step > .hc-step-dot { transition: background .2s; }
}
