/* The logged-out home: the Endless mosaic (owner's pick, 2026-10-13: "Endless Mosaic. wow
   beautiful job well done!"). Plan: .cursor/plans/2026-10-13-logged-out-home-mosaic-build-handoff.md.

   PORTED FROM THE LAB, VALUE FOR VALUE. The spec is
   early-looks/home-splash-directions/r3-mosaic.html plus the parts of its shared.css this page
   uses (owner rule: the lab's numbers are the spec). Change a number here only after changing
   the lab, or with the owner's yes.

   What differs from the lab, and why:
   - The lab set its theme bridge (--hx-*, and cosmic's cyan --accent) on <body>. Here it is
     scoped to .hm, so the production navbar and footer keep their own tokens.
   - The lab's global resets (img, button, a, reduced motion) are scoped to .hm for the same
     reason.
   - The lab had its own sticky 64px nav. Production keeps its real navbar (language picker,
     theme picker, Pricing, One Tap), made sticky on this page only, and --m-nav is its
     measured height (mosaic.js), so the wall still sits flush under it as in the lab.
   - Themes the lab never drew (lumeta, glass, neon, legacy, tailwind, editorial: admin-only
     picks) get a generic bridge from tokens every theme names.
   - left/right on text became start/end, so hakolai.com (Hebrew, RTL) mirrors. Identical in LTR. */

/* ---------- Theme bridge (shared.css), scoped ---------- */
.hm {
  --m-nav: 57px;
  --hx-line: var(--border, var(--glass-border));
  --hx-line-strong: var(--border-strong, var(--glass-border-strong, var(--border)));
  --hx-solid: var(--bg-elev, var(--glass-bg-opaque, var(--glass-bg)));
  --hx-a1: var(--accent);
  --hx-a2: var(--accent-soft, var(--accent));
  --hx-a3: var(--accent-soft, var(--accent));
  --hx-on-accent: var(--accent-contrast, #09051a);
  --hx-shadow: var(--shadow-lg, 0 30px 80px -30px rgba(0, 0, 0, 0.7));
  --hx-radius: var(--radius-lg);
  --hx-radius-sm: var(--radius-md);
}
/* Custom Color (mono-hue), the default since 2026-10-13: flat near-black surfaces, one accent
   from a single hue (amber unless --accent-hue says otherwise). The third gradient stop is a
   warmer neighbor of the accent on the same OKLCH lightness, so the gradient follows any hue. */
body[data-theme^="mono"] .hm {
  --hx-line: var(--border);
  --hx-line-strong: var(--border-strong);
  --hx-solid: var(--bg-elev);
  --hx-a1: var(--accent);
  --hx-a2: var(--accent-soft);
  --hx-a3: oklch(0.8 0.17 calc(var(--accent-hue, 91.7) - 32));
  --hx-on-accent: var(--bg);
  --hx-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}
/* mono.css underlines every <a> with a border-bottom. Right for a text link, wrong for the
   cards, tiles and rows this page builds from anchors. */
body[data-theme^="mono"] .hm a { border-bottom: 0; }
body[data-theme="cosmic"] .hm {
  --accent: var(--accent-cyan);
  --border: var(--glass-border);
  --bg-elev: var(--glass-bg);
  --bg-elev-2: var(--glass-bg-strong);
  --hx-line: var(--glass-border);
  --hx-line-strong: var(--glass-border-strong);
  --hx-solid: var(--glass-bg-opaque);
  --hx-a1: var(--accent-cyan);
  --hx-a2: var(--accent-violet);
  --hx-a3: var(--accent-magenta);
  --hx-on-accent: var(--bg-deep);
  --hx-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
body[data-theme="cloud"] .hm {
  --border: var(--glass-border);
  --bg-elev: var(--glass-bg);
  --bg-elev-2: var(--glass-bg-strong);
  --hx-line: var(--glass-edge);
  --hx-line-strong: rgba(15, 23, 42, 0.12);
  --hx-solid: var(--glass-bg-strong);
  --hx-a1: var(--accent);
  --hx-a2: var(--accent-strong);
  --hx-a3: var(--accent-soft);
  --hx-on-accent: #fff;
  --hx-shadow: var(--shadow-lg);
}

/* The lab's resets, scoped. :where() keeps them as weak as the lab's bare element rules, so
   a class rule (.hx-go's weight and ink) still wins, as it did there. The lab page had no
   Bootstrap and a 16px body; production's body is 14.4px and Bootstrap gives headings
   line-height 1.2 and weight 500, so those are put back to what the lab rendered. */
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:where(.hm) :is(h1, h2, h3, h4) { line-height: inherit; font-weight: 700; }
:where(.hm) img, :where(.hm) video { display: block; max-width: 100%; }
/* Card art is a <picture> (AVIF, then the stored original); the lab's <img> was the flex item. */
.hm picture { display: contents; }
:where(.hm) button { font: inherit; color: inherit; }
:where(.hm) a { color: inherit; }
.hx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .hx-wrap { padding: 0 16px; } }
.hx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The production navbar stays put over the wall, as the lab's own nav did. */
body:has(> main.hm) > nav.navbar { position: sticky; top: 0; }

/* ---------- Buttons ---------- */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .16s, box-shadow .2s, background .2s, border-color .2s; }
.hx-btn:focus-visible, .hx-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hx-btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--hx-line); }
.hx-btn-ghost:hover { border-color: var(--hx-line-strong); background: var(--bg-elev-2); color: var(--text); }

/* The action, with its price on it (the floor: price at the point of action). */
.hx-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--hx-on-accent); font-weight: 700; font-size: 17px; cursor: pointer; transition: transform .16s, box-shadow .22s; white-space: nowrap; text-decoration: none; }
.hx-go:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px var(--accent); color: var(--hx-on-accent); }
.hx-go:active { transform: translateY(0); }
.hx-go[aria-busy="true"] { cursor: progress; opacity: .8; }
.hx-cost { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--hx-on-accent) 16%, transparent); }
.hx-fine { margin: 10px 0 0; font-size: 13.5px; color: var(--text-dim); }
.hx-fine b { color: var(--text); font-weight: 600; }
.hx-pro { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--hx-line-strong); color: var(--text-dim); }

/* ---------- Section heads ---------- */
.hx-sec { padding: 72px 0 0; }
.hx-sec-h { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0 0 8px; color: var(--text); }
.hx-sec-p { margin: 0 0 26px; color: var(--text-dim); font-size: 16px; max-width: 640px; }
@media (max-width: 600px) { .hx-sec { padding-top: 52px; } }

/* H1 carries the brand name small above the warm, descriptive line. */
.hx-h1-brand { display: block; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------- The floor ---------- */
.hx-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hx-new a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--hx-radius-sm); background: var(--bg-elev); border: 1px solid var(--hx-line); text-decoration: none; transition: border-color .18s, transform .16s; }
.hx-new a:hover { border-color: var(--hx-line-strong); transform: translateY(-1px); }
.hx-new img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.hx-new b { display: block; font-size: 15px; color: var(--text); }
.hx-new span { font-size: 13px; color: var(--text-dim); }
.hx-new em { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 800px) { .hx-new { grid-template-columns: 1fr; } }

.hx-agents { display: flex; align-items: center; gap: 28px; padding: 28px 32px; border-radius: var(--hx-radius); background: var(--bg-elev); border: 1px solid var(--hx-line); }
.hx-agents h3 { margin: 0 0 6px; font-size: 22px; color: var(--text); }
.hx-agents p { margin: 0; color: var(--text-dim); max-width: 620px; }
.hx-agents .hx-sp { flex: 1; }
.hx-agent-marks { display: flex; gap: 8px; }
.hx-agent-marks span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hx-line-strong); font-size: 13px; font-weight: 600; color: var(--text); }
@media (max-width: 800px) { .hx-agents { flex-direction: column; align-items: flex-start; padding: 22px; gap: 16px; } }

.hx-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.hx-faq details { border-bottom: 1px solid var(--hx-line); padding: 14px 0; }
.hx-faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; color: var(--text-dim); font-weight: 400; transition: transform .2s; }
.hx-faq details[open] summary::after { transform: rotate(45deg); }
.hx-faq p { margin: 10px 0 0; color: var(--text-dim); }
@media (max-width: 800px) { .hx-faq { grid-template-columns: 1fr; } }
.hm-made-by { margin: 64px 0 0; font-size: 13.5px; color: var(--text-dim); }

/* ---------- The wall (r3-mosaic.html) ---------- */
@media (max-width: 720px) { .hm { --m-nav: 56px; } }

.m-hero { position: relative; height: calc(100svh - var(--m-nav) + 55svh); min-height: 900px;
  --m-bg: var(--bg, var(--bg-deep, var(--bg-mid))); }
.m-sticky { position: sticky; top: var(--m-nav); height: calc(100svh - var(--m-nav)); min-height: 560px; overflow: hidden; isolation: isolate; background: var(--m-bg); }
.m-stage { position: absolute; inset: 0; cursor: grab; touch-action: none; outline: none; -webkit-user-select: none; user-select: none; }
.m-stage.is-drag { cursor: grabbing; }
.m-stage:focus-visible::after { content: ""; position: absolute; inset: 6px; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--accent); pointer-events: none; }
.m-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s ease; }
.m-stage.is-ready canvas { opacity: 1; }
/* Edge scrim: the wall melts into the page at its edges, so it reads as endless, not boxed. */
.m-vig { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, color-mix(in srgb, var(--m-bg) 72%, transparent) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--m-bg) 55%, transparent), transparent 14%, transparent 86%, color-mix(in srgb, var(--m-bg) 70%, transparent)); }

/* ---------- The panel: frosted glass over the wall ---------- */
.m-panel { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100% - 48px));
  padding: 34px 36px 24px; border-radius: 30px; text-align: center;
  background: color-mix(in srgb, var(--hx-solid) 60%, transparent);
  backdrop-filter: blur(26px) saturate(1.45); -webkit-backdrop-filter: blur(26px) saturate(1.45);
  border: 1px solid var(--hx-line-strong);
  box-shadow: var(--hx-shadow), 0 0 0 1px color-mix(in srgb, var(--m-bg) 30%, transparent), inset 0 1px 0 color-mix(in srgb, var(--text) 9%, transparent);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0s; }
.m-hero.is-focus .m-panel { opacity: 0; transform: translate(-50%, -46%) scale(.965); pointer-events: none; visibility: hidden; transition: opacity .3s ease, transform .5s ease, visibility 0s linear .3s; }
.m-h1 { margin: 0; font-size: clamp(34px, 3.9vw, 52px); line-height: 1.04; letter-spacing: -0.03em; color: var(--text); text-wrap: balance; font-weight: 700; }
.m-h1 .hx-h1-brand { margin-bottom: 12px; }
.m-grad { background: linear-gradient(100deg, var(--hx-a1), var(--hx-a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-sub { margin: 14px auto 0; max-width: 470px; font-size: 16.5px; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }
.m-box { margin: 22px 0 0; text-align: start; border-radius: 20px; padding: 10px 10px 10px;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent); border: 1px solid var(--hx-line-strong); transition: border-color .2s, box-shadow .2s; }
.m-box:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--hx-line-strong)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
/* The lab wrote `font: 500 17.5px/1.45 inherit`, which is not valid CSS (inherit cannot sit
   inside the shorthand), so browsers dropped it and the owner judged the textarea at its
   default 13.33px, weight 400, line-height normal. Those rendered values are the spec. */
.m-box textarea { display: block; width: 100%; min-height: 56px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 13.3333px; font-weight: 400; line-height: normal; font-family: inherit; padding: 6px 8px 4px; }
.m-box textarea::placeholder { color: var(--text-faint, var(--text-dim)); }
.m-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.m-row .hx-sp { flex: 1; }
.m-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--bg-elev-2) 80%, transparent); border: 1px solid var(--hx-line); }
.m-seg button { height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--text-dim); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .18s, color .18s; }
.m-seg button:hover { color: var(--text); }
.m-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); }
.m-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.m-row .hx-go { min-height: 46px; font-size: 16px; padding: 0 18px; }
.m-pick { margin: 12px 4px 0; font-size: 13.5px; color: var(--text-dim); text-align: center; min-height: 20px; }
.m-pick b { color: var(--text); font-weight: 600; }
.m-panel .hx-fine { margin: 4px 4px 0; text-align: center; }
.m-hint { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  margin: 1em 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--text-dim); white-space: nowrap; pointer-events: none;
  background: color-mix(in srgb, var(--hx-solid) 55%, transparent); border: 1px solid var(--hx-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .3s; }
.m-hint svg { color: var(--accent); flex: none; }
.m-hint i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.m-hero.is-focus .m-hint { opacity: 0; }

/* ---------- Focus: the clicked tile, sharp, with its story ---------- */
.m-fig { position: absolute; z-index: 2; left: 0; top: 0; width: 100px; height: 100px; margin: 0; border-radius: 3%; overflow: hidden; opacity: 0; pointer-events: none;
  transform-origin: 0 0; box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); transition: opacity .45s ease; background: var(--m-bg); }
.m-fig.on { opacity: 1; }
.m-fig img, .m-fig video { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-card { position: absolute; z-index: 4; top: 50%; left: 54%; width: min(410px, 38vw); transform: translate(16px, -50%); opacity: 0; visibility: hidden;
  padding: 24px 24px 20px; border-radius: 24px; background: color-mix(in srgb, var(--hx-solid) 72%, transparent);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border: 1px solid var(--hx-line-strong); box-shadow: var(--hx-shadow);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s; }
.m-card.on { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .35s ease .15s, transform .5s cubic-bezier(.2,.8,.2,1) .15s, visibility 0s; }
.m-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hx-line); background: var(--bg-elev); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: border-color .18s, transform .18s; }
.m-x:hover { border-color: var(--hx-line-strong); transform: rotate(90deg); }
.m-x:focus-visible, .m-use:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-kick { margin: 0 0 6px; margin-inline-end: 48px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.m-card h2 { margin: 0; margin-inline-end: 44px; font-size: 25px; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); font-weight: 700; }
.m-card-media { display: none; margin: 14px 0 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-elev); }
.m-card-media img, .m-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-hero.no-gl .m-card-media { display: block; }
.m-prompt { margin: 12px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--text-dim); }
.m-prompt q { color: var(--text); }
.m-before { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 13px; color: var(--text-dim); }
.m-before img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; border: 1px solid var(--hx-line); }
.m-tool { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--bg-elev) 70%, transparent); border: 1px solid var(--hx-line); }
.m-tool img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.m-tool b { display: block; font-size: 14.5px; color: var(--text); line-height: 1.25; }
.m-tool span { font-size: 13px; color: var(--text-dim); }
.m-card .hx-go { width: 100%; margin-top: 16px; }
.m-card .hx-fine { text-align: center; }
.m-use { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--text-dim); font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px 10px; border-radius: 10px; min-height: 40px; transition: color .18s; }
.m-use:hover { color: var(--text); }
.m-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--hx-line-strong); font-size: 10.5px; letter-spacing: .06em; color: var(--text-dim); vertical-align: 2px; }

/* ---------- The one free picture, made in the panel ---------- */
.m-result { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding: 8px; border-radius: 16px; text-align: start;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--hx-line)); animation: m-pop .4s cubic-bezier(.2,.8,.2,1); }
.m-result[hidden] { display: none; }
.m-result img { width: 84px; height: 84px; border-radius: 11px; object-fit: cover; flex: none; }
.m-result b { display: block; font-size: 15px; color: var(--text); }
.m-result span { display: block; font-size: 13px; color: var(--text-dim); margin-top: 2px; }
@keyframes m-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------- Sign-in prompt (opened by the visitor, never on load) ---------- */
.m-sign { width: min(400px, calc(100% - 32px)); padding: 28px 26px 22px; border-radius: 24px; border: 1px solid var(--hx-line-strong); text-align: center;
  background: var(--hx-solid); color: var(--text); box-shadow: var(--hx-shadow); }
body[data-theme="cosmic"] .m-sign { background: var(--bg-deep); }
.m-sign::backdrop { background: color-mix(in srgb, var(--m-bg, black) 55%, transparent); backdrop-filter: blur(6px); }
.m-sign[open] { animation: m-pop .28s cubic-bezier(.2,.8,.2,1); }
.m-sign h2 { margin: 6px 30px 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; color: var(--text); font-weight: 700; }
.m-find input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }
.m-sign p { margin: 8px 0 0; color: var(--text-dim); font-size: 15px; }
.m-sign-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hx-line); background: var(--bg-elev); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.m-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--hx-on-accent); font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .16s, box-shadow .2s; }
.m-google:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px var(--accent); color: var(--hx-on-accent); }
.m-google:focus-visible, .m-sign-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.m-sign .m-sign-fine { font-size: 13px; color: var(--text-faint, var(--text-dim)); margin-top: 12px; }
/* signinConsentDisclosureHtml(): the terms line every Google button carries. */
.m-sign .m-sign-consent { margin-top: 10px; font-size: 12px; color: var(--text-faint, var(--text-dim)); }
.m-sign .m-sign-consent a { text-decoration: underline; }

/* ---------- Everything you can do: tasks, then the models inside ---------- */
.m-find { position: relative; max-width: 560px; margin: 0 0 22px; }
.m-find svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.m-find input { width: 100%; height: 50px; padding: 0 16px; padding-inline-start: 46px; border-radius: 999px; border: 1px solid var(--hx-line-strong); background: var(--bg-elev); color: var(--text); font: inherit; font-size: 16px; outline: 0; transition: border-color .18s, box-shadow .18s; }
.m-find input:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--hx-line-strong)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.m-find input::placeholder { color: var(--text-faint, var(--text-dim)); }
.m-count { margin: -10px 0 18px; font-size: 13.5px; color: var(--text-dim); }
.m-tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.m-task { border-radius: var(--hx-radius-sm); background: var(--bg-elev); border: 1px solid var(--hx-line); transition: border-color .18s; }
.m-task:hover, .m-task[open] { border-color: var(--hx-line-strong); }
.m-task summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: inherit; }
.m-task summary::-webkit-details-marker { display: none; }
.m-task summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-task-ic { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.m-task-tx { flex: 1; min-width: 0; }
.m-task-tx b { display: block; font-size: 16px; color: var(--text); line-height: 1.3; }
.m-task-tx span { display: block; font-size: 13.5px; color: var(--text-dim); margin-top: 2px; }
.m-task-meta { flex: none; text-align: end; font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.m-task-meta em { display: block; font-style: normal; font-weight: 600; color: var(--text); }
.m-task summary::after { content: "+"; flex: none; width: 18px; text-align: center; color: var(--text-dim); font-size: 18px; transition: transform .2s; }
.m-task[open] summary::after { transform: rotate(45deg); }
.m-task ul { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; gap: 4px; }
.m-task li[hidden] { display: none; }
.m-task li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14.5px; transition: background .16s; }
.m-task li a:hover, .m-task li a:focus-visible { background: var(--bg-elev-2); outline: none; color: var(--text); }
.m-task li img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; }
.m-task li small { margin-inline-start: auto; color: var(--text-dim); font-size: 12.5px; white-space: nowrap; }
.m-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.m-brand { padding: 16px 18px; border-radius: var(--hx-radius-sm); background: var(--bg-elev); border: 1px solid var(--hx-line); }
.m-brand h3 { margin: 0; font-size: 17px; color: var(--text); letter-spacing: -0.01em; font-weight: 700; }
.m-brand h3 small { font-size: 12.5px; font-weight: 500; color: var(--text-dim); margin-inline-start: 6px; letter-spacing: 0; }
.m-brand p { margin: 6px 0 10px; font-size: 14px; color: var(--text-dim); }
.m-brand-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.m-brand-tags button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--hx-line); background: transparent; color: var(--text-dim); font-size: 12.5px; cursor: pointer; transition: border-color .16s, color .16s; }
.m-brand-tags button:hover, .m-brand-tags button:focus-visible { border-color: var(--accent); color: var(--text); outline: none; }
.m-empty { padding: 26px; border-radius: var(--hx-radius-sm); border: 1px dashed var(--hx-line-strong); color: var(--text-dim); text-align: center; }
.m-empty button { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 4px; }
.m-sub-h { margin: 40px 0 6px; font-size: 22px; color: var(--text); font-weight: 700; }
.hm [hidden] { display: none !important; }
.m-agent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.m-agent-chips a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--hx-line)); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-align: center; cursor: pointer; text-decoration: none; transition: background .16s, border-color .16s; }
.m-agent-chips a:hover, .m-agent-chips a:focus-visible { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); outline: none; color: var(--text); }
@media (max-width: 900px) { .m-brands { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .m-tasks, .m-brands { grid-template-columns: 1fr; }
  .m-task summary { padding: 12px; gap: 12px; }
  .m-task-meta { display: none; }
  .m-task-tx .m-task-meta-sm { display: block; }
  .m-result img { width: 64px; height: 64px; }
}
.m-task-meta-sm { display: none !important; }
@media (max-width: 720px) { .m-task-tx .m-task-meta-sm { display: block !important; } }

/* ---------- No-WebGL fallback: the same atlas as a CSS mosaic ---------- */
.m-fb { position: absolute; inset: -20%; display: none; }
.m-hero.no-gl .m-fb { display: block; }
.m-hero.no-gl canvas { display: none; }
.m-fb-in { position: absolute; left: 0; top: 0; display: grid; gap: 10px; transform: rotate(-7deg); animation: m-drift 90s linear infinite; }
.m-fb-in button { width: var(--fb); height: var(--fb); padding: 0; border: 0; border-radius: 9px; cursor: pointer; background-repeat: no-repeat; filter: brightness(.62) saturate(.95); transition: filter .25s, transform .25s; }
body[data-theme-mode="light"] .m-fb-in button { filter: saturate(.9) opacity(.78); }
.m-fb-in button:hover, .m-fb-in button:focus-visible { filter: none; transform: scale(1.08); outline: 2px solid var(--accent); outline-offset: 2px; position: relative; z-index: 1; }
@keyframes m-drift { to { transform: rotate(-7deg) translate(calc(var(--fbp) * -1), calc(var(--fbp) * -1)); } }

.m-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Phone: the wall on top, the panel low like a sheet ---------- */
@media (max-width: 720px) {
  .m-hero { height: calc(100svh - var(--m-nav) + 30svh); min-height: 0; }
  .m-sticky { min-height: 600px; }
  .m-stage { touch-action: pan-y; }
  .m-panel { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; text-align: start; padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0; border-bottom: 0; background: color-mix(in srgb, var(--hx-solid) 74%, transparent); }
  .m-panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--hx-line-strong); }
  .m-hero.is-focus .m-panel { transform: translateY(30px); }
  .m-h1 { font-size: 29px; line-height: 1.08; }
  .m-h1 .hx-h1-brand { font-size: 13px; margin-bottom: 8px; }
  .m-sub { display: none; }
  .m-box { margin-top: 14px; padding: 8px; border-radius: 18px; }
  .m-box textarea { font-size: 16px; min-height: 48px; }
  .m-row { flex-wrap: wrap; }
  .m-row .hx-sp { display: none; }
  .m-seg { flex: 1; } .m-seg button { flex: 1; padding: 0 8px; }
  .m-row #m-go { order: 9; width: 100%; margin-top: 6px; } .m-row #m-go .hx-go { width: 100%; min-height: 50px; }
  .m-pick { margin-top: 8px; font-size: 13px; text-align: start; }
  .m-panel .hx-fine { text-align: start; }
  .m-hint { top: 12px; bottom: auto; font-size: 12.5px; padding: 7px 12px; }
  .m-card { top: auto; bottom: 0; left: 0; right: 0; width: auto; transform: translateY(40px); border-radius: 26px 26px 0 0; border-bottom: 0;
    padding: 20px 16px calc(14px + env(safe-area-inset-bottom)); max-height: 64%; overflow-y: auto; background: color-mix(in srgb, var(--hx-solid) 86%, transparent); }
  .m-card.on { transform: none; }
  .m-card h2 { font-size: 21px; }
  .m-prompt { font-size: 14.5px; margin-top: 8px; }
  .m-tool { margin-top: 12px; }
  .m-hero.no-gl .m-card-media { width: 120px; float: inline-end; margin: 6px 0; margin-inline-start: 12px; }
}

/* Motion: Less, the visitor's own setting (templates/header.php). */
:where(:root[data-motion='less']) .hm *,
:where(:root[data-motion='less']) .hm *::before,
:where(:root[data-motion='less']) .hm *::after { animation: none !important; }
