/* Vibes: self-hosted fonts, mini glyphs, gallery + detail chrome. Loaded per page (Vibe::stylesheets()).
   Mockup frames keep their own palette in dark mode; only this chrome follows the AURA theme. */

/* ---------- Fonts (OFL, latin subset, see ../fonts/kits/NOTICE.txt) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/kits/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/kits/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/kits/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/kits/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/kits/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/kits/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('../fonts/kits/nunito-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('../fonts/kits/dm-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/kits/outfit-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/kits/fredoka-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/kits/space-grotesk-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/kits/dm-serif-display-latin-400-normal.woff2') format('woff2'); }

/* ---------- Shared chrome bits ---------- */
/* A .vibe wrapper used only to scope --k-* variables in page chrome: never paint the vibe's own page colours */
.kd-scope.vibe { background: transparent; color: inherit; font: inherit; padding: 0; border: 0; box-shadow: none; }

/* Tiny browser bar above a frame: always a light "screenshot" chrome, same in dark mode */
.vc-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: var(--aura-color-bg-sunken); border-bottom: 1px solid var(--aura-color-border-default); }
.vc-bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--md-rose); }
.vc-bar i:nth-child(2) { background: var(--md-amber); }
.vc-bar i:nth-child(3) { background: var(--md-green); }
.kd-bar { height: 32px; gap: 6px; padding: 0 12px; }
.kd-bar i { width: 9px; height: 9px; }
.kd-url { flex: 1; margin-left: 10px; max-width: 320px; padding: 4px 12px; border-radius: 999px; background: #fff; font: 500 11.5px/1.2 var(--aura-font-family-mono); color: var(--aura-color-text-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Placeholder when a layout partial is not available yet: three tinted blocks on the vibe's page colour */
.vc-missing { background: var(--k-bg, var(--aura-color-bg-sunken)); }
.vc-missing-fill { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6%; padding: 10% 8%; background: var(--k-bg); }
.vc-missing-fill i { display: block; border-radius: 12px; background: var(--k-surface); box-shadow: inset 0 0 0 1px var(--k-border); }
.vc-missing-fill i:first-child { background: var(--k-primary); opacity: .85; }
.vc-missing-fill i:last-child { background: var(--k-secondary); opacity: .75; }

/* Links inside section headers */
.kd-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--aura-font-family-body); color: var(--aura-color-brand-fg); text-decoration: none; white-space: nowrap; }
.kd-link:hover { text-decoration: underline; }
.kd-link .icon { width: 16px; height: 16px; }

/* =====================================================================
   Mini glyph (~160×100): an abstract thumbnail coloured from --k-*
   ===================================================================== */
.km { position: relative; display: inline-block; width: 160px; height: 100px; overflow: hidden; border-radius: 12px; background: var(--k-bg); box-shadow: inset 0 0 0 1px var(--k-line, var(--k-border)); vertical-align: middle; font: inherit; color: var(--k-text); padding: 0; }
.km > i { position: absolute; display: block; border-radius: 6px; }
.km-aa { position: absolute; right: 10px; bottom: 6px; font: 700 18px/1 var(--k-font-head); font-weight: var(--k-head-weight, 700); color: var(--k-text); }
/* default (web app): top bar, left card, right card, accent pill */
.km-default .km-a { left: 0; right: 0; top: 0; height: 16px; border-radius: 0; background: var(--k-surface); box-shadow: inset 0 -1px 0 var(--k-line, var(--k-border)); }
.km-default .km-b { left: 12px; top: 28px; width: 70px; height: 50px; background: var(--k-primary); border-radius: var(--k-r-md, 8px); }
.km-default .km-c { left: 92px; top: 28px; width: 56px; height: 22px; background: var(--k-surface); box-shadow: inset 0 0 0 1px var(--k-line, var(--k-border)); border-radius: var(--k-r-sm, 6px); }
.km-default .km-d { left: 92px; top: 58px; width: 34px; height: 10px; border-radius: 999px; background: var(--k-accent); }
/* dashboard: sidebar, KPI card, two chart bars */
.km-dashboard .km-a { left: 0; top: 0; bottom: 0; width: 34px; border-radius: 0; background: var(--k-surface); box-shadow: inset -1px 0 0 var(--k-line, var(--k-border)); }
.km-dashboard .km-b { left: 46px; top: 14px; width: 100px; height: 28px; background: var(--k-primary); border-radius: var(--k-r-md, 8px); }
.km-dashboard .km-c { left: 46px; bottom: 14px; width: 18px; height: 34px; background: var(--k-secondary); border-radius: 4px 4px 0 0; }
.km-dashboard .km-d { left: 70px; bottom: 14px; width: 18px; height: 22px; background: var(--k-accent); border-radius: 4px 4px 0 0; }
/* booking: hero band, overlapping search bar, room card, book button */
.km-booking .km-a { left: 0; right: 0; top: 0; height: 48px; border-radius: 0; background: linear-gradient(135deg, var(--k-primary), var(--k-secondary)); }
.km-booking .km-b { left: 14px; right: 14px; top: 38px; height: 20px; background: var(--k-surface); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--k-line, var(--k-border)); border-radius: 999px; }
.km-booking .km-c { left: 14px; bottom: 10px; width: 62px; height: 26px; background: var(--k-surface); box-shadow: inset 0 0 0 1px var(--k-line, var(--k-border)); border-radius: var(--k-r-sm, 6px); }
.km-booking .km-d { left: 86px; bottom: 16px; width: 30px; height: 14px; border-radius: 999px; background: var(--k-accent); }
/* game: big blob, second blob, HUD bar, accent dot */
.km-game .km-a { left: -20px; top: -24px; width: 110px; height: 110px; border-radius: 50%; background: var(--k-primary); opacity: .9; }
.km-game .km-b { right: -16px; top: 30px; width: 70px; height: 70px; border-radius: 50%; background: var(--k-secondary); opacity: .85; }
.km-game .km-c { left: 12px; right: 60px; top: 10px; height: 10px; border-radius: 999px; background: var(--k-surface); box-shadow: inset 0 0 0 1px var(--k-line, var(--k-border)); }
.km-game .km-d { left: 20px; bottom: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--k-accent); }

/* =====================================================================
   Gallery
   ===================================================================== */
.vibes-page > * { min-width: 0; }
.vibes-page .crumb-card { margin-bottom: 22px; }

/* Owner review: "preview every vibe on <layout>" */
.vf-review { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--aura-color-bg-surface); box-shadow: var(--md-shadow); font-size: 14px; color: var(--aura-color-text-muted); }
.vf-review label { font-weight: 600; color: var(--aura-color-text-default); }
.vf-review select { width: auto; flex: 0 1 auto; min-width: 220px; min-height: 36px; max-width: 100%; padding: 6px 32px 6px 12px; border-radius: 10px; }

/* Family filter: radios first (hidden but focusable), then labels, then the grid, so :checked ~ works */
.vf { position: relative; display: grid; gap: 0; }
.vf-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.vf-tabs.pill-tabs { margin-bottom: 22px; }
.vf-tabs label.admin-nav-link { cursor: pointer; user-select: none; }
.vf-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--aura-color-bg-sunken); font: 700 11.5px/1 var(--aura-font-family-display); color: var(--aura-color-text-muted); }
#vf-all:checked ~ .vf-tabs label[for="vf-all"], #vf-clean:checked ~ .vf-tabs label[for="vf-clean"], #vf-business:checked ~ .vf-tabs label[for="vf-business"],
#vf-shops:checked ~ .vf-tabs label[for="vf-shops"], #vf-warm:checked ~ .vf-tabs label[for="vf-warm"], #vf-playful:checked ~ .vf-tabs label[for="vf-playful"],
#vf-elegant:checked ~ .vf-tabs label[for="vf-elegant"], #vf-dark:checked ~ .vf-tabs label[for="vf-dark"] { background: var(--aura-color-brand-solid); color: var(--aura-color-brand-on-solid); }
#vf-all:checked ~ .vf-tabs label[for="vf-all"] .vf-n, #vf-clean:checked ~ .vf-tabs label[for="vf-clean"] .vf-n, #vf-business:checked ~ .vf-tabs label[for="vf-business"] .vf-n,
#vf-shops:checked ~ .vf-tabs label[for="vf-shops"] .vf-n, #vf-warm:checked ~ .vf-tabs label[for="vf-warm"] .vf-n, #vf-playful:checked ~ .vf-tabs label[for="vf-playful"] .vf-n,
#vf-elegant:checked ~ .vf-tabs label[for="vf-elegant"] .vf-n, #vf-dark:checked ~ .vf-tabs label[for="vf-dark"] .vf-n { background: rgba(255, 255, 255, .22); color: #fff; }
#vf-all:focus-visible ~ .vf-tabs label[for="vf-all"], #vf-clean:focus-visible ~ .vf-tabs label[for="vf-clean"], #vf-business:focus-visible ~ .vf-tabs label[for="vf-business"],
#vf-shops:focus-visible ~ .vf-tabs label[for="vf-shops"], #vf-warm:focus-visible ~ .vf-tabs label[for="vf-warm"], #vf-playful:focus-visible ~ .vf-tabs label[for="vf-playful"],
#vf-elegant:focus-visible ~ .vf-tabs label[for="vf-elegant"], #vf-dark:focus-visible ~ .vf-tabs label[for="vf-dark"] { outline: 2px solid var(--aura-color-focus-ring); outline-offset: 2px; }
#vf-clean:checked ~ .vibes-grid .vibe-card:not([data-fam="clean"]), #vf-business:checked ~ .vibes-grid .vibe-card:not([data-fam="business"]),
#vf-shops:checked ~ .vibes-grid .vibe-card:not([data-fam="shops"]), #vf-warm:checked ~ .vibes-grid .vibe-card:not([data-fam="warm"]),
#vf-playful:checked ~ .vibes-grid .vibe-card:not([data-fam="playful"]), #vf-elegant:checked ~ .vibes-grid .vibe-card:not([data-fam="elegant"]),
#vf-dark:checked ~ .vibes-grid .vibe-card:not([data-fam="dark"]) { display: none; }

/* Grid of cards */
.vibes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.vf-empty { grid-column: 1 / -1; padding: 24px; text-align: center; }
.vibe-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 0; color: inherit; text-decoration: none; content-visibility: auto; contain-intrinsic-size: auto 380px; transition: transform .22s var(--aura-easing-standard, ease), box-shadow .22s var(--aura-easing-standard, ease); }
.vibe-card:hover, .vibe-card:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .32); text-decoration: none; color: inherit; }
.vibe-card:focus-visible { outline: 2px solid var(--aura-color-focus-ring); outline-offset: 3px; }

/* Thumbnail: a small browser window sitting on a soft tray, cropped to 16:10 */
.vc-shot { position: relative; padding: 14px 14px 0; background: var(--aura-color-bg-sunken); }
.vc-win { position: relative; overflow: hidden; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); }
.vc-win .kt-frame { display: block; aspect-ratio: 1280 / 800; }
.vc-win .kt-frame.is-tall { aspect-ratio: 1280 / 800; }

/* Text block */
.vc-body { display: grid; gap: 5px; padding: 14px 16px 16px; }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vc-name { font: 700 16.5px/1.3 var(--aura-font-family-display); color: var(--aura-color-text-heading); letter-spacing: -.01em; }
.vc-mood { font-size: 13.5px; line-height: 1.45; color: var(--aura-color-text-muted); }
.vc-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.vc-dot { display: block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.vc-dot-pri { background: var(--k-primary); }
.vc-dot-sec { background: var(--k-secondary); }
.vc-dot-acc { background: var(--k-accent); }
.vc-dot-bg { background: var(--k-bg); }
.vc-aa { margin-left: auto; font: 700 16px/1 var(--k-font-head); font-weight: var(--k-head-weight, 700); color: var(--aura-color-text-heading); }

/* Closing call to action */
.vibes-cta { margin-top: 32px; border: 0; }
.vibes-cta h2 { font-size: 24px; letter-spacing: -.02em; }

/* =====================================================================
   Detail
   ===================================================================== */
.vibe-page > * { min-width: 0; }
.kd-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.kd-hero > * { min-width: 0; }
.kd-hero.is-native { grid-template-columns: minmax(0, 1fr); }

/* Stage: window on a tray */
.kd-stage { padding: 14px; border-radius: var(--r-surface); background: var(--aura-color-bg-sunken); }
.kd-win { position: relative; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .45); }
.kd-win .kt-frame { display: block; }
.kd-stage.is-native .kd-win { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.kd-stage.is-native .kd-bar { position: sticky; left: 0; }
.kd-stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 0 4px; font-size: 13.5px; color: var(--aura-color-text-muted); }

/* "Try it on": grouped pills */
.kd-try { display: grid; gap: 8px; margin-top: 18px; }
.kd-try-label { font: 700 12px/1 var(--aura-font-family-display); letter-spacing: .08em; text-transform: uppercase; color: var(--aura-color-text-subtle); }
.kd-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kd-group-l { flex: none; min-width: 92px; font-size: 12.5px; font-weight: 600; color: var(--aura-color-text-muted); }
.kd-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--aura-color-bg-surface); font: 600 13px var(--aura-font-family-body); color: var(--aura-color-text-default); text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
a.kd-pill:hover { border-color: var(--aura-color-brand-fg); color: var(--aura-color-brand-fg); text-decoration: none; }
.kd-pill.is-active { background: var(--aura-color-brand-solid); border-color: transparent; color: var(--aura-color-brand-on-solid); box-shadow: 0 8px 18px -10px var(--aura-color-brand-glow); }
.kd-pill.kd-soon { border-style: dashed; background: transparent; color: var(--aura-color-text-subtle); font-weight: 500; }
.kd-pill.kd-soon small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }

/* Info card */
.kd-info { display: grid; gap: 20px; align-content: start; }
.kd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--aura-color-bg-sunken); font: 600 12.5px var(--aura-font-family-body); color: var(--aura-color-text-muted); text-decoration: none; }
.kd-chip .icon { width: 14px; height: 14px; }
.kd-chip.is-fam { background: var(--aura-color-brand-subtle); color: var(--aura-color-brand-fg); }
a.kd-chip.is-fam:hover { text-decoration: underline; }
.kd-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--aura-color-text-default); }
.kd-best { margin: -8px 0 0; font-size: 14px; line-height: 1.55; color: var(--aura-color-text-muted); }
.kd-best b { color: var(--aura-color-text-default); }
.kd-block > h2 { margin: 0 0 10px; font: 700 12px/1 var(--aura-font-family-display); letter-spacing: .08em; text-transform: uppercase; color: var(--aura-color-text-subtle); }
.kd-block .hint { margin-top: 8px; }

/* Colour swatches: buttons that copy the hex (app.js [data-copy-hex]) */
.kd-sw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.kd-sw { display: grid; gap: 4px; justify-items: start; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.kd-sw:focus-visible { outline: 2px solid var(--aura-color-focus-ring); outline-offset: 3px; }
.kd-sw-chip { display: block; width: 100%; aspect-ratio: 1.45; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .15s; }
.kd-sw:hover .kd-sw-chip { transform: translateY(-2px); }
.kd-sw.copied .kd-sw-chip { box-shadow: 0 0 0 2px var(--aura-color-bg-surface), 0 0 0 4px var(--aura-color-brand-fg); }
.kd-sw > span { font: 600 12px/1.2 var(--aura-font-family-mono); color: var(--aura-color-text-default); }
.kd-sw > small { font-size: 11.5px; line-height: 1.2; color: var(--aura-color-text-subtle); }
.sw-pri { background: var(--k-primary); }
.sw-sec { background: var(--k-secondary); }
.sw-acc { background: var(--k-accent); }
.sw-bg { background: var(--k-bg); }
.sw-surface { background: var(--k-surface); }
.sw-text { background: var(--k-text); }
.sw-muted { background: var(--k-muted); }
.sw-ok { background: var(--k-success); }
.sw-warn { background: var(--k-warning); }
.sw-bad { background: var(--k-danger); }
.sw-info { background: var(--k-info); }
.sw-border { background: var(--k-border); }

/* Fonts: big Aa tile in the heading font, names, a body sample */
.kd-fonts { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.kd-font-aa { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 16px; background: var(--k-surface); box-shadow: inset 0 0 0 1px var(--k-line, var(--k-border)); font: 400 38px/1 var(--k-font-head); font-weight: var(--k-head-weight, 700); color: var(--k-text); letter-spacing: -.02em; }
.kd-font-rows { display: grid; gap: 4px; min-width: 0; }
.kd-font-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--aura-color-text-muted); }
.kd-font-row span { flex: none; min-width: 64px; }
.kd-font-row b { font-size: 15px; color: var(--aura-color-text-heading); }
.kd-font-head { font-family: var(--k-font-head); font-weight: var(--k-head-weight, 700); }
.kd-font-body { font-family: var(--k-font-body); font-weight: 600; }
.kd-font-sample { margin: 6px 0 0; font: 15px/1.5 var(--k-font-body); color: var(--aura-color-text-default); }

/* CTA row */
.kd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hairline); }

/* Sections below the hero */
.kd-section { margin-top: 36px; }
.kd-section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.kd-section-h h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.kd-section-h p { flex: 1 1 320px; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--aura-color-text-muted); }
.kd-sheet { overflow: hidden; padding: 0; }
.kd-sheet > .kc-sheet { border-radius: inherit; }
.kd-sheet-missing { padding: 28px; text-align: center; }

/* How your AI uses it */
.kd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kd-step { padding: 22px 24px; }
.kd-step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--md-primary-tint); color: var(--aura-color-brand-fg); font: 800 16px var(--aura-font-family-display); }
.kd-step-n.is-teal { background: var(--md-teal-tint); color: var(--md-teal); }
.kd-step-n.is-green { background: var(--md-green-tint); color: var(--aura-color-status-healthy-fg); }
.kd-step h3 { margin: 0 0 6px; font-size: 17px; }
.kd-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--aura-color-text-muted); }
.kd-notes { margin-top: 16px; }
.kd-notes summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 600 14.5px var(--aura-font-family-body); color: var(--aura-color-brand-fg); }
.kd-notes summary::-webkit-details-marker { display: none; }
.kd-notes summary .icon { width: 18px; height: 18px; }
.kd-notes-body { margin-top: 12px; padding: 16px 18px; border-radius: 12px; background: var(--aura-color-bg-sunken); font-size: 14.5px; line-height: 1.65; color: var(--aura-color-text-default); white-space: pre-wrap; overflow-wrap: anywhere; }

/* More like this */
.kd-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Dark mode: frames keep their own palette, chrome gets a hairline outline ---------- */
:root[data-aura-theme="dark"] .vc-win, :root[data-aura-theme="dark"] .kd-win { box-shadow: 0 0 0 1px var(--hairline); }
:root[data-aura-theme="dark"] .kd-step-n.is-teal { color: var(--ink-teal); }
:root[data-aura-theme="dark"] .kd-step-n.is-green { color: var(--aura-color-status-healthy-fg); }
:root[data-aura-theme="dark"] .vc-dot, :root[data-aura-theme="dark"] .kd-sw-chip { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .vibe-card, .kd-sw-chip, .kd-pill { transition: none; }
  .vibe-card:hover, .vibe-card:focus-visible, .kd-sw:hover .kd-sw-chip { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kd-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
  .kd-hero { grid-template-columns: minmax(0, 1fr); }
  .kd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .kd-step { padding: 18px; }
}
@media (max-width: 760px) {
  .vf-tabs.pill-tabs { flex-wrap: nowrap; overflow-x: auto; width: auto; max-width: 100%; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .vf-tabs.pill-tabs .admin-nav-link { flex: none; }
  .kd-steps { grid-template-columns: minmax(0, 1fr); }
  .kd-more-grid { grid-template-columns: minmax(0, 1fr); }
  .kd-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .kd-group-l { position: sticky; left: 0; min-width: 0; padding-right: 6px; background: var(--aura-color-bg-canvas); }
}
@media (max-width: 640px) {
  .vibes-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vc-shot { padding: 10px 10px 0; }
  .kd-stage { padding: 10px; border-radius: 14px; }
  .kd-win { border-radius: 10px; }
  .kd-info.card.pad { padding: 20px 16px; }
  .kd-sw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; }
  .kd-sw > span { font-size: 11px; }
  .kd-fonts { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .kd-font-aa { width: 64px; height: 64px; font-size: 32px; border-radius: 14px; }
  .kd-cta .btn { flex: 1 1 auto; justify-content: center; }
  .kd-section { margin-top: 28px; }
  .kd-section-h h2 { font-size: 20px; }
  .kd-url { max-width: 160px; }
  .vibes-cta { padding: 24px 20px; }
  .vibes-cta .btn { width: 100%; justify-content: center; }
}

/* Landing teaser (flag on): four featured vibes in a row, swipe on phones */
.vt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.vt-head .story-title, .vt-head .eyebrow { margin-top: 0; }
.vt-head .story-lead { margin: 10px 0 0; max-width: 56ch; }
.vt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .vt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .vt-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; }
  .vt-row > .vibe-card { flex: 0 0 78vw; scroll-snap-align: start; content-visibility: visible; }
}

/* Template gallery: section tabs, category pills (links), template cards, pager */
.tg-tabs.pill-tabs { margin: 0 0 14px; }
.tg-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tg-cat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--aura-color-bg-surface); box-shadow: var(--md-shadow); font: 600 13.5px/1.2 var(--aura-font-family-display); color: var(--aura-color-text-default); text-decoration: none; white-space: nowrap; }
.tg-cat:hover { color: var(--aura-color-brand-fg); }
.tg-cat.is-active { background: var(--aura-color-brand-solid); color: var(--aura-color-brand-on-solid); }
.tg-cat.is-active .vf-n { background: rgba(255, 255, 255, .22); color: #fff; }
.tpl-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
.tpl-meta .vc-meta { margin: 0 0 0 auto; }
.tpl-look { font-size: 12.5px; color: var(--aura-color-text-muted); white-space: nowrap; }
.vc-win.is-stage { padding-top: 0; }
.tg-pager { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 28px 0 8px; }
.tg-pages { display: flex; gap: 6px; }
.tg-pg { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--aura-color-bg-surface); box-shadow: var(--md-shadow); font: 600 14px var(--aura-font-family-display); color: var(--aura-color-text-default); text-decoration: none; }
.tg-pg.is-active { background: var(--aura-color-brand-solid); color: var(--aura-color-brand-on-solid); }
.kd-in-vibe { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--aura-color-bg-sunken); font-size: 12.5px; font-weight: 600; color: var(--aura-color-text-muted); vertical-align: middle; }
@media (max-width: 640px) { .tg-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 8px; } }

/* Review screen card 3: "Choose a template" (three looks from the idea; look.js refreshes it) */
.look-card { position: relative; }
.look-as { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 14px; }
.look-as-label { font: 600 13px var(--aura-font-family-body); color: var(--aura-color-text-muted); white-space: nowrap; }
.look-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.look-chip.chip-pick { min-height: 34px; padding: 5px 13px; font-size: 13px; border-width: 1px; }
.look-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.look-opt { position: relative; display: block; min-width: 0; cursor: pointer; }
.look-opt > input { position: absolute; top: 12px; left: 12px; width: 18px; height: 18px; margin: 0; opacity: 0; }
.look-face { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: var(--aura-color-bg-surface); box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow var(--aura-duration-fast, .15s), transform var(--aura-duration-fast, .15s); }
.look-opt:hover .look-face { box-shadow: inset 0 0 0 1px var(--aura-color-brand-fg), 0 14px 28px -20px rgba(0, 0, 0, .45); }
.look-opt > input:checked + .look-face { box-shadow: inset 0 0 0 2px var(--aura-color-brand-solid), 0 16px 30px -20px color-mix(in srgb, var(--aura-color-brand-solid) 55%, transparent); }
.look-opt > input:focus-visible + .look-face { outline: 2px solid var(--aura-color-focus-ring); outline-offset: 3px; }
.look-shot.vc-shot { display: block; padding: 10px 10px 0; }
.look-shot .vc-win { display: block; }
.look-shot .vc-bar { height: 16px; padding: 0 8px; gap: 4px; }
.look-shot .vc-bar i { width: 5px; height: 5px; }
.look-meta { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px 13px; min-width: 0; }
.look-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.look-name b { font: 700 15px/1.25 var(--aura-font-family-display); color: var(--aura-color-text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.look-tag.tag { flex: none; font-size: 11px; }
.look-tick { display: none; flex: none; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: var(--aura-color-brand-solid); color: var(--aura-color-brand-on-solid); }
.look-tick .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.look-opt > input:checked + .look-face .look-tick { display: grid; }
.look-meta small { font-size: 12.5px; line-height: 1.4; color: var(--aura-color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.look-meta .vc-meta { margin-top: 5px; }
.look-meta .vc-dot { width: 12px; height: 12px; }
.look-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.look-none { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-size: 14px; color: var(--aura-color-text-default); cursor: pointer; }
.look-none input { width: 18px; height: 18px; margin: 0; accent-color: var(--aura-color-brand-solid); }
.look-links { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.look-status { margin: 8px 0 0; min-height: 0; font: 600 13.5px var(--aura-font-family-body); color: var(--aura-color-brand-fg); }
.look-status:empty { display: none; }
.look-off { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--aura-color-text-muted); font-size: 14px; }
.look-card.is-loading .look-opts { opacity: .5; transition: opacity .2s; }
.look-card.is-loading .look-opts, .look-card.is-loading .look-chips { pointer-events: none; }
@media (max-width: 720px) {
  .look-opts { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch; }
  .look-opts > .look-opt { flex: 0 0 74vw; max-width: 320px; scroll-snap-align: start; }
  .look-opts.is-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .look-opts.is-more > .look-opt { flex: none; max-width: none; }
  .look-opts.is-more .look-meta small, .look-opts.is-more .look-meta .vc-meta { display: none; }
  .look-foot { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .look-face, .look-card.is-loading .look-opts { transition: none; } }

/* Files page: the companions of the UI kit */
.uikit-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--aura-color-bg-sunken); font-size: 14px; color: var(--aura-color-text-muted); }
.uikit-extra b { color: var(--aura-color-text-default); }

/* Template catalogue and interactive preview stage. */
.template-filters{display:grid;grid-template-columns:minmax(220px,2fr) 1fr 1fr auto;gap:16px;align-items:end;margin:24px 0}.template-filters label{display:grid;gap:7px;font-size:13px;font-weight:600}.template-filters input,.template-filters select{width:100%;min-height:44px}.template-results{margin:16px 0;color:var(--aura-color-text-muted)}.template-shot{display:block;width:100%;height:100%;object-fit:cover;object-position:top;background:var(--aura-color-bg-sunken)}.tpl-card:has(.template-shot) .vc-shot{aspect-ratio:1280/900;height:auto;overflow:hidden}.tpl-card:has(.template-shot) .vc-win{height:100%;padding:0;overflow:hidden}.template-card-actions{display:flex;gap:10px;padding:0 20px 18px}.template-card-actions a{font-size:12px}.template-card-wrap{display:flex;flex-direction:column;border:1px solid var(--hairline);border-radius:18px;overflow:hidden}.template-card-wrap .tpl-card{border:0;box-shadow:none;flex:1;border-radius:0}.template-card-wrap:focus-within{outline:2px solid var(--aura-color-brand-fg);outline-offset:3px}.experience-heading{display:flex;justify-content:space-between;align-items:center;gap:28px;margin:25px 0}.experience-heading h1{margin:15px 0 8px;font-size:40px}.experience-heading p{max-width:65ch}.experience-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 12px}.experience-toolbar [aria-pressed=true]{outline:2px solid var(--aura-color-brand-fg);outline-offset:2px}.experience-stage{padding:20px;background:var(--aura-color-bg-sunken);border:1px solid var(--hairline);border-radius:16px;display:flex;justify-content:center;overflow:hidden}.experience-stage iframe{display:block;width:100%;height:850px;border:0;background:white;border-radius:8px}.experience-stage[data-preview-stage=tablet] iframe{max-width:768px}.experience-stage[data-preview-stage=mobile] iframe{max-width:390px;height:844px}.experience-spec{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:35px 0}.experience-spec h2{font-size:20px}.experience-detail details{overflow-wrap:anywhere}.experience-detail details li{margin-bottom:12px}.look-shot .template-shot{object-fit:contain}.template-filters button{min-height:44px}@media(max-width:800px){.template-filters{grid-template-columns:1fr 1fr}.experience-heading{align-items:start;flex-direction:column}.experience-spec{grid-template-columns:1fr}.experience-stage{padding:6px}}@media(max-width:520px){.template-filters{grid-template-columns:1fr}.experience-toolbar{align-items:start;flex-direction:column}.experience-heading h1{font-size:32px}}

/* Gallery filters in one calm row (7 Oct 2026): search, type, style; the dropdowns filter as soon as you pick. */
.template-filters.tg-bar { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 4px 0 10px; }
.tg-bar label { display: block; position: relative; margin: 0; }
.tg-bar input, .tg-bar select { min-height: 46px; border-radius: 999px; }
.tg-search > .icon { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--aura-color-text-muted); pointer-events: none; }
.tg-search input { padding-left: 44px; }
.tg-bar select { padding-left: 16px; }
.tg-go { min-height: 46px; padding: 0 20px; border-radius: 999px; }
.tg-go .icon { width: 18px; height: 18px; }
.template-results { margin: 0 0 12px; font-size: 14px; }
.template-results b { color: var(--aura-color-text-heading); }
.tg-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-bottom: 18px; }
.tg-cats::-webkit-scrollbar { display: none; }
.tg-cat { flex: none; }
@media (max-width: 860px) {
  .template-filters.tg-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .tg-search { grid-column: 1 / -1; }
  .tg-go-t { display: none; }
}

/* "Try it on": the groups as one row of tabs, then the screens of the open group (7 Oct 2026) */
.kd-gtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hairline); margin-bottom: 4px; }
.kd-gtabs::-webkit-scrollbar { display: none; }
.kd-gtab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 600 13.5px var(--aura-font-family-body); color: var(--aura-color-text-muted); text-decoration: none; }
.kd-gtab:hover { color: var(--aura-color-text-heading); text-decoration: none; }
.kd-gtab.is-active { color: var(--aura-color-text-heading); border-bottom-color: var(--aura-color-brand-solid); }
.kd-gtab .vf-n { font-size: 11.5px; }

/* Building blocks: the first row (buttons, chips, fields, alerts) by default, the rest on "Show all" */
.kd-sheet-toggle:not(:checked) + .kd-sheet .kc-sheet > .kc-group:nth-child(n+5) { display: none; }
.kd-sheet-more { display: flex; width: fit-content; margin: 14px auto 0; gap: 6px; cursor: pointer; }
.kd-sheet-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.kd-sheet-toggle:checked ~ .kd-sheet-more .icon { transform: rotate(180deg); }
.kd-sheet-toggle:checked ~ .kd-sheet-more .kd-more-show, .kd-sheet-toggle:not(:checked) ~ .kd-sheet-more .kd-more-hide { display: none; }
.kd-sheet-toggle:focus-visible ~ .kd-sheet-more { outline: 2px solid var(--aura-color-focus-ring); outline-offset: 2px; }
@media (max-width: 860px) { .kd-sheet-toggle:not(:checked) + .kd-sheet .kc-sheet > .kc-group:nth-child(n+3) { display: none; } }
