/* Ten native module controls become the physical pieces of one backend. */
#module-library { display: block; margin-top: 100px; padding: 96px 0 0; background: var(--dk); color: var(--ink-d); overflow: clip; scroll-margin-top: 68px; --assembly: 1; }
#module-library .module-index-header { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 90px; margin: 0 0 56px; padding: 0; border: 0; }
#module-library .module-index-copy { max-width: none; }
#module-library h3 { max-width: none; color: var(--ink-d); font: 500 clamp(52px,6.3vw,92px)/.99 var(--sans); letter-spacing: -.065em; }
#module-library .module-intro { max-width: 460px; padding-bottom: 4px; }
#module-library .lead { margin: 0; color: #bdbdc3; font-size: 18px; line-height: 1.55; }
#module-library .module-presets { margin-top: 25px; }
.module-presets > span { display: block; margin-bottom: 12px; color: #bdbdc3; font-size: 13px; }
.module-presets > div { display: flex; flex-wrap: wrap; gap: 7px; }
.module-presets button { min-height: 40px; padding: 9px 12px; background: #2a2c30; color: #f5f2ec; border-radius: 3px; font: 400 13px/1.3 var(--sans); transition: color 180ms,background-color 180ms,translate 220ms; }
.module-presets button:hover { background: #414349; translate: 0 -3px; }
.module-presets button[aria-pressed="true"] { background: var(--orange); color: var(--dk); }
.module-scroll { position: relative; padding-bottom: 72px; }
.module-sticky { position: relative; }
.module-scene-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #bdbdc3; font-size: 14px; padding-top: 20px; }
.module-scroll-cue { display: flex; align-items: center; gap: 14px; color: #f5f2ec; }
.module-scroll-cue i { font-size: 21px; font-style: normal; transform: translateY(calc(var(--assembly,1) * 8px)); }
.module-assembly-status { width: 190px; text-align: right; color: var(--orange); }
#module-library .module-explorer { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: center; gap: clamp(25px,3.5vw,60px); min-height: 560px; }
#module-library .module-selector { min-width: 0; }
.module-board-scene { display: grid; place-items: center; height: 555px; perspective: 1600px; --board-x: 28deg; --board-z: -10deg; --board-y: 0deg; }
.module-board { position: relative; width: 100%; aspect-ratio: 700/430; transform-style: preserve-3d; transform: translateY(var(--board-lift,0px)) rotateX(var(--board-x)) rotateY(var(--board-y)) rotateZ(var(--board-z)) scale(var(--board-scale,.93)); }
.module-platform { position: absolute; inset: -18px -18px -8px; border-radius: 14px; background: #24262b; border: 1px solid #41434a; transform: translateZ(-24px); opacity: var(--platform-alpha,1); } /* taste-skill-ignore: the edge of the assembly platform is part of the product illustration. */
.module-platform::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #17191c; transform: translateZ(-14px); }
.module-platform::after { content: ''; position: absolute; bottom: -14px; left: 0; right: 0; height: 14px; background: #191b1e; transform: rotateX(-90deg); transform-origin: 50% 0; }
.module-traces { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 2; }
.module-trace-base { stroke: #62636a; }
.module-trace-active { stroke: var(--orange); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--signal,1)); }
.module-platform-brand { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 25px; letter-spacing: -.04em; color: #f5f2ec; }
.module-platform-brand img { width: 36px; height: 30px; }
.module-platform-count { margin-left: auto; font: 400 13px var(--sans); letter-spacing: 0; color: #c1c1c5; }
#module-library .module-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 18px; padding: 0 0 88px; overflow: visible; border: 0; width: 100%; transform-style: preserve-3d; opacity: 1; transform: none; }
#module-library .module-tab { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; width: 100%; min-width: 0; min-height: 142px; padding: 0; background: transparent; color: #202126; border: 0; border-radius: 7px; transform-style: preserve-3d; transform: translate3d(var(--tile-x,0px),var(--tile-y,0px),calc(var(--tile-z,0px) + var(--hover-z,0px))) rotateZ(var(--tile-turn,0deg)); transition: background-color 220ms,color 220ms; opacity: 1; }
#module-library .module-tab::before { display: block; content: ''; position: absolute; inset: 0; width: auto; border-radius: inherit; background: var(--tile-edge,#a8a49e); transform: translateY(9px); opacity: 1; z-index: 0; }
#module-library .module-tab::after { content: none; }
.module-tile-face { display: flex; position: relative; z-index: 1; width: 100%; min-height: inherit; flex-direction: column; justify-content: space-between; align-items: stretch; padding: 13px 12px; border-radius: inherit; background: var(--tile-top,#e8e3da); transition: background-color 220ms; }
#module-library .module-tab-top { display: flex; flex-direction: row-reverse; align-items: start; gap: 5px; justify-content: space-between; width: 100%; }
#module-library .module-tab-icon { display: block; margin: 12px 0 0; }
#module-library .module-tab-icon svg { display: block; width: clamp(34px,3.6vw,52px); height: clamp(34px,3.6vw,52px); fill: none; stroke: currentColor; stroke-width: 1.25; }
#module-library .module-tab-number { display: block; color: currentColor; font: 400 11px/1 var(--sans); }
#module-library .module-tab-name { display: block; margin: 18px 0 0; font: 500 clamp(13px,1.13vw,16px)/1.1 var(--sans); letter-spacing: -.035em; white-space: nowrap; }
#module-library .module-tab-name i,#module-library .module-tab-summary { display: none; }
#module-library .module-tab:hover { --tile-top: #fffaf0; --hover-z: 16px; }
#module-library .module-tab[aria-selected="true"] { background: transparent; --tile-top: var(--orange); color: #101113; --tile-edge: #ac392c; --hover-z: 15px; }
#module-library .module-tab.flow-member:not([aria-selected="true"]) { background: transparent; --tile-top: #f7b6a8; --tile-edge: #b57b71; }
#module-library .module-tab[aria-selected="true"] .module-tab-icon svg { stroke: currentColor; }
#module-library .module-tab:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
#module-library .module-detail { position: relative; top: auto; padding: 14px 0 0; border-radius: 0; background: transparent; min-width: 0; }
#module-library .module-detail-copy { padding: 0; }
#module-library .module-detail-heading { margin: 0; gap: 12px; }
#module-library .module-detail-heading h4 { color: #f5f2ec; font: 500 clamp(30px,3vw,43px)/1.05 var(--sans); letter-spacing: -.055em; }
#module-library .module-detail-heading > span { display: block; color: var(--orange); font: 400 13px var(--sans); }
#module-library .module-detail-copy p { min-height: 100px; margin-top: 20px; color: #bdbdc3; font: 400 16px/1.6 var(--sans); }
#module-library .module-capabilities { margin: 12px 0 24px; gap: 7px 14px; }
#module-library .module-capabilities span { padding: 0; background: transparent; color: #e2e1df; border-radius: 0; font: 400 13px/1.3 var(--sans); }
#module-library .module-capabilities span::before { content: '+'; color: var(--orange); margin-right: 5px; }
#module-library .module-preview { height: 270px; background: #222429; border-radius: 6px; border: 1px solid #3a3c41; box-shadow: none; color: #f5f2ec; } /* taste-skill-ignore: a native Arky App preview keeps its real application frame and removes the inherited shadow. */
#module-library .mp-bar { height: 42px; background: #2c2e33; border-bottom: 1px solid #41434a; gap: 9px; padding-inline: 16px; font: 400 11px var(--sans); color: #bdbdc3; } /* taste-skill-ignore: native application toolbar boundary. */
#module-library .mp-bar > :first-child { color: #f5f2ec; }
#module-library .mp-live { font: 400 10px var(--sans); color: #ffb29e; }
#module-library .mp-body { height: 194px; padding: 15px 18px; }
#module-library .mp-footer { height: 34px; border-color: #41434a; padding-inline: 16px; font: 400 10px var(--sans); color: #bdbdc3; }
#module-library .mp-row { min-height: 51px; gap: 10px; border-color: #42444b; }
#module-library .mp-row b { color: #f5f2ec; font-size: 12px; }
#module-library .mp-row small,#module-library .mp-order-label,#module-library .mp-progress,#module-library .mp-days > span,#module-library .mp-person small,#module-library .mp-workflow small,#module-library .mp-chat-handoff,#module-library .mp-form span,#module-library .mp-campaign-stats > span,#module-library .mp-code-frameworks { color: #bdbdc3; font-family: var(--sans); font-size: 11px; }
#module-library .mp-row em,#module-library .mp-person em,#module-library .mp-order-total em { background: #4f3431; color: #ffb29e; font: 400 10px var(--sans); }
#module-library .mp-order-total { font-size: 39px; }
#module-library .mp-days b,#module-library .mp-form b,#module-library .mp-campaign-stats b { color: #f5f2ec; }
#module-library .mp-progress .on,#module-library .mp-code b { color: #ffb29e; }
#module-library .mp-bubble { font-size: 12px; }
#module-library .mp-bubble.visitor,#module-library .mp-form-submit,#module-library .mp-days .on { background: #4f3431; color: #ffb29e; border-color: #79534b; }
#module-library .mp-days .on b,#module-library .mp-form-submit span { color: #ffb29e; }
#module-library .mp-code { font-size: 10px; }
.module-route { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; font: 400 13px/1.4 var(--sans); color: #bdbdc3; }
.module-route code { color: #ffb29e; font: 400 13px var(--code); }
.module-route-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.module-route > :last-child { margin-left: auto; }
#module-library .module-foundation { margin-top: 24px; padding-top: 0; gap: 16px; border: 0; font: 400 13px/1.4 var(--sans); color: #bdbdc3; }
#module-library .module-foundation-label { color: #bdbdc3; font-size: 14px; max-width: 440px; }
#module-library .module-foundation a { color: #f5f2ec; }
#module-library .module-foundation > div { color: #f5f2ec; }
@media(min-width:1001px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
  .js-scrub #module-library { overflow: visible; }
  .js-scrub .module-scroll { height: calc(100svh + 720px); padding-bottom: 0; }
  .js-scrub .module-sticky { position: sticky; top: 78px; padding-bottom: 55px; }
}
@media(min-width:1001px) and (max-height:850px) {
  #module-library .module-explorer { min-height: 495px; }
  .module-board-scene { height: 490px; }
  #module-library .module-detail-copy p { min-height: 76px; }
  #module-library .module-preview { height: 240px; }
  #module-library .mp-body { height: 164px; padding-block: 10px; }
  #module-library .module-foundation { margin-top: 12px; }
}
@media(max-width:1200px) and (min-width:1001px) {
  #module-library .module-explorer { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 35px; }
  #module-library .module-tab { min-height: 120px; padding: 0; }
  #module-library .module-tab-name { font-size: 13px; }
}
@media(max-width:1000px) {
  #module-library { padding-top: 70px; }
  #module-library .module-index-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 35px; }
  #module-library .module-intro { max-width: 620px; }
  #module-library h3 { font-size: clamp(48px,8vw,78px); }
  #module-library .module-explorer { grid-template-columns: 1fr; gap: 24px; }
  #module-library .module-detail { max-width: 680px; margin-inline: auto; width: 100%; }
  #module-library .module-detail-copy p { min-height: 0; }
  .module-board-scene { max-width: 700px; margin-inline: auto; height: 500px; }
  .module-scroll { padding-bottom: 65px; }
  .module-scene-caption { font-size: 13px; }
  .module-assembly-status { width: auto; }
}
@media(max-width:600px) {
  #module-library { margin-top: 65px; padding-top: 60px; }
  #module-library h3 { font-size: clamp(38px,10.8vw,60px); letter-spacing: -.06em; }
  #module-library .lead { font-size: 16px; }
  #module-library .module-index-header { gap: 22px; margin-bottom: 20px; }
  #module-library .module-presets { margin-top: 22px; }
  .module-presets button { font-size: 13px; padding-inline: 11px; }
  .module-scene-caption { padding-top: 15px; gap: 12px; }
  .module-assembly-status { display: none; }
  .module-scroll-cue { gap: 8px; }
  .module-board-scene { height: 690px; perspective: 1600px; --board-x: 12deg; --board-z: 0deg; }
  .module-board { width: calc(100% - 20px); aspect-ratio: auto; }
  .module-platform { inset: -15px -12px -5px; border-radius: 10px; }
  .module-traces { display: none; }
  .module-platform-brand { left: 14px; right: 14px; bottom: 18px; font-size: 23px; }
  .module-platform-brand img { width: 29px; height: 24px; }
  .module-platform-count { font-size: 13px; }
  #module-library .module-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; padding: 0 0 70px; }
  #module-library .module-tab { min-height: 92px; padding: 0; }
  #module-library .module-tab-top { align-items: center; }
  #module-library .module-tab-icon { margin: 0; }
  #module-library .module-tab-icon svg { width: 30px; height: 30px; }
  #module-library .module-tab-name { margin-top: 12px; font-size: 16px; }
  #module-library .module-tab-number { font-size: 11px; }
  #module-library .module-explorer { gap: 12px; }
  #module-library .module-detail { padding-top: 18px; }
  #module-library .module-detail-heading h4 { font-size: 36px; }
  #module-library .module-detail-copy p { font-size: 16px; margin-top: 15px; }
  #module-library .module-capabilities { margin-block: 18px 24px; font-size: 12px; }
  #module-library .module-preview { height: 270px; }
  #module-library .mp-bar { padding-inline: 12px; font-size: 10px; gap: 8px; }
  #module-library .mp-body { padding-inline: 14px; }
  #module-library .mp-row b { font-size: 12px; }
  #module-library .mp-row small { font-size: 11px; }
  #module-library .mp-order-total { font-size: 35px; }
  #module-library .mp-code { font-size: 9px; }
  #module-library .mp-person em { font-size: 9px; }
  #module-library .module-foundation { margin-top: 35px; gap: 20px; }
  #module-library .module-foundation > div { font-size: 14px; }
  .module-route { font-size: 13px; }
  .module-route code { font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) {
  .module-scroll-cue { display: none; }
  .module-board { transform: none !important; }
  #module-library .module-tab { transform: none !important; transition: none; }
  .module-platform { opacity: 1; }
  #module-library .module-tab::before { display: none; }
  .module-tile-face { transition: none; }
  .module-trace-active { stroke-dashoffset: 0; }
  #module-library .module-presets button { transition: none; }
}

#module-library .mp-check { display: inline-block; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: middle; }
