/* GROKAZON layout. Reads tokens.css only. Mobile first (430px), desktop from 900px. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); }
.mute { color: var(--mute); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* pills + chips */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); border: 0; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, opacity .15s; }
.pill.white { background: var(--ink); color: #000; }
.pill.white:hover { background: var(--ink-2); }
.pill.grey { background: var(--panel-2); color: var(--ink); }
.pill.grey:hover { background: #2a2a2a; }
.pill.line { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.pill.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.pill.block { width: 100%; }
.pill[disabled] { opacity: .45; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.chip:hover { border-color: rgba(255,255,255,.18); }
.chip.on { color: var(--accent); background: var(--accent-bg); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 500; white-space: nowrap; background: var(--panel-2); color: var(--ink-2); }
.tag.ok { background: var(--ok-bg); color: #4fd1a1; }
.tag.pick { background: var(--accent-bg); color: var(--accent); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.x { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line-2); }

/* nav (Grok Bot: 64px, fixed, transparent over the hero) */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(10,10,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav .in { height: 100%; display: flex; align-items: center; gap: 12px; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.mark { font-size: 20px; font-weight: 600; letter-spacing: -.4px; display: inline-flex; align-items: center; gap: 2px; }
.mark img { width: .74em; height: .74em; border-radius: 50%; display: inline-block; vertical-align: -.04em; margin: 0 .03em; }
.nav .links { display: none; gap: 24px; margin-left: 28px; font-size: 14px; color: var(--ink-2); }
.nav .links a:hover, .nav .links a.on { color: var(--ink); }
.nav .side { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav .side .pill { min-height: 36px; padding: 0 14px; font-size: 13px; }
.nav .xin, .nav .send { display: none; }
.nav .cartl { position: relative; }
.nav .cartl b { font-family: var(--mono); font-weight: 500; color: var(--accent); }
.nav .menu { background: var(--panel-2); border: 0; border-radius: var(--radius-pill); min-height: 36px; padding: 0 14px; font-size: 13px; }
.drawer { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; background: rgba(10,10,10,.97); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
.drawer.on { display: block; }
.drawer a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
.drawer .pill { margin-top: 16px; }
@media (min-width: 900px) {
  .nav .links { display: flex; }
  .nav .xin, .nav .send { display: inline-flex; }
  .nav .menu { display: none; }
  .drawer { display: none !important; }
}

/* hero */
.hero { padding: calc(var(--nav-h) + 48px) 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--panel); border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
.eyebrow b { color: var(--ink); font-weight: 500; }
.eyebrow:hover { border-color: rgba(255,255,255,.2); }
h1, h2, h3 { font-weight: 500; margin: 0; }
.hero h1 { margin: 22px auto 14px; font-size: 42px; line-height: 1.05; letter-spacing: -.6px; max-width: 760px; }
.hero h1 .glyph, .hero h1 img.glyph { display: inline-block; width: .82em; height: .82em; border-radius: 50%; vertical-align: -.08em; margin: 0 .08em; }
.hero .sub { font-size: 17px; color: var(--mute); margin: 0 auto 28px; max-width: 520px; }
.ask { display: flex; align-items: center; gap: 8px; max-width: 680px; margin: 0 auto; padding: 6px 6px 6px 20px; border-radius: var(--radius-pill); background: var(--panel); border: 1px solid var(--line-2); transition: border-color .15s; }
.ask:focus-within { border-color: rgba(74,216,236,.5); }
.ask input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 16px; padding: 10px 0; color: var(--ink); }
.ask input::placeholder { color: var(--mute); }
.ask .go { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #000; font-size: 20px; font-weight: 600; line-height: 1; }
.ask .go:hover { background: var(--ink-2); }
.hero .ctas { display: flex; gap: 10px; justify-content: center; margin: 22px 0 18px; flex-wrap: wrap; }
.hero .chips { justify-content: center; max-width: 760px; margin: 0 auto; }
.hero .chips .chip { white-space: normal; text-align: left; min-height: 36px; padding: 7px 14px; line-height: 1.35; }
@media (min-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 72px); }
  .hero h1 { font-size: 60px; }
  .hero .sub { font-size: 18px; }
}

/* the app window (Grok Bot: 24px radius, macOS dots, sidebar + thread) */
.window { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-window); overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.win-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar .t { margin-left: 10px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-body { display: grid; grid-template-columns: 1fr; min-height: 0; }
.side-list { border-bottom: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.side-list::-webkit-scrollbar { display: none; }
.side-list .search { display: none; }
.bot { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; flex: none; max-width: 240px; background: transparent; border: 0; text-align: left; }
.bot:hover { background: rgba(255,255,255,.03); }
.bot.on { background: var(--panel-2); }
.bot .who { min-width: 0; flex: 1; }
.bot .row1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; }
.bot .row1 .time { font-family: var(--mono); font-size: 11px; color: var(--mute); font-weight: 400; white-space: nowrap; }
.bot .rep { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot .st { margin-top: 4px; }
.av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #000; background: var(--accent); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.av:has(img) { background: transparent; border-radius: 0; overflow: visible; }
.av img { object-fit: contain; }
.av.g { background: #4fd1a1; } .av.o { background: #f59e5b; } .av.b { background: #7aa7ff; } .av.p { background: #e48ad6; } .av.y { background: #e9d36b; } .av.w { background: #d5d9e2; }
.av.lg { width: 40px; height: 40px; font-size: 15px; }
.av.sm { width: 22px; height: 22px; font-size: 10px; }
.newbot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--mute); font-size: 13px; flex: none; border: 1px dashed var(--line-2); background: transparent; }
.newbot:hover { color: var(--ink); }
@media (min-width: 900px) {
  .win-body { grid-template-columns: 270px 1fr; }
  .side-list { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--line); gap: 2px; }
  .side-list .search { display: block; margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); color: var(--mute); font-size: 13px; border: 1px solid var(--line); }
  .bot { max-width: none; width: 100%; }
}

/* the thread */
.thread { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.thread .head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.thread .sys { text-align: center; font-size: 12px; color: var(--mute); }
.msg { display: flex; gap: 10px; align-items: flex-start; min-width: 0; animation: rise .35s ease both; }
.msg.user { justify-content: flex-end; }
.msg.user .bub { background: var(--panel-3); border: 1px solid var(--line-2); max-width: 84%; }
.bub { background: var(--panel-2); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--ink); min-width: 0; max-width: 100%; }
.msg.gk .bub { flex: 1; }
.bub .pill.grey { background: #2c2c2c; }
.bub .pill.grey:hover { background: #363636; }
.bub .name { font-size: 12px; color: var(--mute); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.bub p { margin: 0 0 6px; } .bub p:last-child { margin-bottom: 0; }
.steps { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.steps .s { display: flex; gap: 8px; align-items: baseline; animation: rise .3s ease both; }
.steps .s::before { content: '✓'; color: #4fd1a1; flex: none; }
.steps .s.run::before { content: '•'; color: var(--accent); animation: blink 1s infinite; }
.steps .s.bad::before { content: '!'; color: var(--warn); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .msg, .steps .s { animation: none; } .steps .s.run::before { animation: none; } }
@media (min-width: 900px) { .thread { padding: 20px 24px; } }

/* product card: the Amazon anatomy inside a bot message */
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.pcard { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 10px; position: relative; min-width: 0; color: var(--ink); }
.pcard:hover { border-color: rgba(255,255,255,.16); }
.pcard.is-pick { border-color: rgba(74,216,236,.45); }
.pcard .ph { width: 96px; height: 96px; border-radius: 10px; background: #f3f3f3; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: contain; }
.pcard .bd { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pcard .ti { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .mer { font-size: 12px; color: var(--mute); }
.stars { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.stars .s5 { color: var(--warn); letter-spacing: 1px; }
.price { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.price small { font-family: var(--mono); }
.price small { font-size: 12px; color: var(--mute); margin-left: 6px; text-decoration: line-through; letter-spacing: 0; }
.deliv { font-size: 12px; color: var(--ink-2); }
.pcard .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.pcard .why { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 8px; }
.pcard .why b { color: var(--accent); font-weight: 500; }
.pcard .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 640px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.three .pcard { grid-template-columns: 1fr; } .cards.three .pcard .ph { width: 100%; height: 150px; } }

/* compare table */
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.cmp th, .cmp td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-weight: 500; color: var(--mute); font-size: 12px; background: var(--panel); white-space: nowrap; }
.cmp td.p { font-family: var(--mono); white-space: nowrap; }
.cmp td:first-child { min-width: 130px; }

/* sections (x.ai/bot rhythm) */
.sec { padding-top: 72px; padding-bottom: 72px; }
.sec h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.4px; }
.sec .lede { color: var(--mute); font-size: 16px; margin: 12px 0 0; max-width: 520px; }
.sec .lede b { color: var(--ink); font-weight: 500; }
.sec.center { text-align: center; } .sec.center .lede { margin-left: auto; margin-right: auto; }
.feat { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.feat .num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 12px; display: block; }
.feat .owner { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.feat .owner b { font-weight: 500; color: var(--ink); }
@media (min-width: 900px) {
  .sec { padding-top: 110px; padding-bottom: 110px; }
  .sec h2 { font-size: 44px; }
  .feat { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feat.flip .txt { order: 2; }
}
.mock { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-window); padding: 16px; min-width: 0; }
.phone { width: 100%; max-width: 320px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 40px; background: var(--panel); padding: 14px 10px; min-height: 440px; display: flex; flex-direction: column; gap: 10px; }
.phone .ptop { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--panel-2); align-self: center; }
.phone .thread { padding: 4px; gap: 10px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mrow:last-child { border-bottom: 0; }
.mrow .n { flex: 1; min-width: 0; }
.mrow .n small { display: block; color: var(--mute); font-size: 12px; }
.ctrl { border-radius: var(--radius-panel); background: var(--panel-2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ctrl .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.ctrl p { margin: 0; font-size: 14px; color: var(--ink-2); }
.watch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-pill); background: var(--panel-2); font-size: 14px; }
.watch .tm { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* mission chips section */
.jobs { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.jobs .chips { margin: 24px 0; }
.jobs .desc { font-size: 16px; color: var(--mute); min-height: 72px; }
.jobs .desc b { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .jobs { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* pricing cards (Grok Bot) */
.tiers { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; text-align: left; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-window); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tier .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.tier .amt { font-size: 40px; font-weight: 500; letter-spacing: -1px; line-height: 1; }
.tier .amt small { font-size: 14px; color: var(--mute); letter-spacing: 0; font-weight: 400; }
.tier .amt.see { font-size: 22px; letter-spacing: -.2px; }
.tier .bill { font-size: 13px; color: var(--mute); margin-top: -6px; }
.tier ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.tier li::before { content: '✓'; color: var(--mute); margin-right: 8px; }
.tier li.d { color: var(--ink); }
.tier li.d::before { color: var(--accent); }
.under { margin-top: 18px; font-size: 14px; color: var(--mute); }
.under a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

/* quote, steps, faq, cta */
.quote { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0 auto; max-width: 820px; font-size: 28px; line-height: 1.2; letter-spacing: -.3px; font-weight: 500; text-align: center; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; color: var(--mute); text-align: center; }
.quote cite a { text-decoration: underline; text-underline-offset: 3px; }
.quote .line2 { text-align: center; color: var(--ink-2); margin-top: 26px; font-size: 16px; }
@media (min-width: 900px) { .quote blockquote { font-size: 40px; } }
.how { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; text-align: left; }
.how div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 20px; }
.how b { font-family: var(--mono); font-weight: 400; color: var(--accent); font-size: 12px; display: block; margin-bottom: 10px; }
.how h3 { font-size: 18px; margin-bottom: 6px; }
.how p { margin: 0; color: var(--mute); font-size: 14px; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, 1fr); } }
.faq { max-width: 760px; margin: 32px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-size: 17px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 22px; color: var(--mute); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--mute); font-size: 15px; }
.cta { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-window); padding: 48px 20px; text-align: center; }
.cta h2 { font-size: 32px; }
.cta p { color: var(--mute); margin: 12px 0 24px; }
.cta .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 900px) { .cta { padding: 80px 40px; } .cta h2 { font-size: 44px; } }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--mute); }
.foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot .cols div { display: flex; flex-direction: column; gap: 8px; }
.foot .cols b { color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.foot .cols a:hover { color: var(--ink); }
.foot .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.foot .legal .concept { color: var(--ink-2); }
@media (min-width: 900px) { .foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* app pages (results, missions, cart, product): the full-screen window */
.app { padding: calc(var(--nav-h) + 16px) 12px 24px; max-width: 1280px; margin: 0 auto; }
.app .window { box-shadow: none; }
.app .win-body { min-height: calc(100vh - var(--nav-h) - 100px); }
.app .thread { max-width: 860px; }
.collapse { display: flex; justify-content: space-between; align-items: center; width: 100%; background: transparent; border: 0; padding: 0; font-size: 12px; color: var(--mute); }
.collapse .tog { color: var(--ink-2); }
.followup { margin-top: 4px; }
.followup .ask { max-width: none; margin: 0; }
@media (min-width: 900px) { .app { padding: calc(var(--nav-h) + 24px) 24px 40px; } }

/* product sheet */
.sheetp { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gal .main { background: #f3f3f3; border-radius: var(--radius-panel); aspect-ratio: 1 / 1; overflow: hidden; }
.gal .main img { width: 100%; height: 100%; object-fit: contain; }
.gal .thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gal .thumbs button { flex: none; width: 56px; height: 56px; border-radius: 10px; background: #f3f3f3; border: 2px solid transparent; padding: 0; overflow: hidden; }
.gal .thumbs button.on { border-color: var(--accent); }
.gal .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.3px; margin: 6px 0 8px; }
.pinfo .desc { color: var(--ink-2); font-size: 15px; }
.buybox { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.buybox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.buybox dt { color: var(--mute); }
.buybox dd { margin: 0; }
.buybox .pill.grey { background: #2c2c2c; }
.buybox .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.revs { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.revs .r { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; color: var(--ink-2); }
.revs .r small { color: var(--mute); font-family: var(--mono); font-size: 11px; }
@media (min-width: 900px) { .sheetp { grid-template-columns: 1fr 1.1fr; gap: 28px; } .buybox .pill.grey { background: #2c2c2c; }
.buybox .acts { flex-direction: row; flex-wrap: wrap; } }

/* cart groups */
.mgroup { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px; margin-top: 10px; }
.mgroup .mh { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.citem { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.citem .ph { width: 56px; height: 56px; border-radius: 8px; background: #f3f3f3; overflow: hidden; }
.citem .ph img { width: 100%; height: 100%; object-fit: contain; }
.citem .ti { font-size: 14px; line-height: 1.3; }
.citem .ti small { display: block; color: var(--mute); font-size: 12px; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 15px; line-height: 1; }
.qty span { font-family: var(--mono); min-width: 20px; text-align: center; font-size: 13px; }
.mgroup .mf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; flex-wrap: wrap; }
.mgroup .sum { font-family: var(--mono); font-size: 14px; }

/* sheets (modal) */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); display: none; align-items: flex-end; justify-content: center; }
.sheet.on { display: flex; }
.sheet .panel { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-window) var(--radius-window) 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet h3 { font-size: 22px; margin-bottom: 6px; }
.sheet p { color: var(--mute); font-size: 14px; margin: 0 0 14px; }
.sheet .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@media (min-width: 900px) { .sheet { align-items: center; } .sheet .panel { border-radius: var(--radius-window); } }
.fld { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.fld input, .fld select { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-card); padding: 12px 14px; font-size: 16px; color: var(--ink); outline: 0; }
.fld input:focus, .fld select:focus { border-color: rgba(74,216,236,.5); }
.fld2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--radius-card); background: var(--panel-2); font-size: 14px; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.empty { padding: 28px 8px; text-align: center; color: var(--mute); font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--ink); color: #000; padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.win-body.solo { grid-template-columns: 1fr; }
@media (max-width: 639px) {
  .cmp-wrap { overflow: visible; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr { display: block; }
  .cmp tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; border: 0; padding: 4px 12px; white-space: normal; }
  .cmp td::before { content: attr(data-l); color: var(--mute); font-size: 12px; font-family: var(--font); }
  .cmp td:first-child { min-width: 0; }
}
.newN { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--warn); margin-left: 4px; }
.newN:empty { display: none; }

/* sell page */
.rules { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rules h3 { font-size: 18px; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: '✓'; color: #4fd1a1; margin-right: 10px; }
.ticks.no li::before { content: '✕'; color: var(--mute); }
.err { color: var(--warn); font-size: 13px; margin: 10px 0 0; min-height: 1em; }
.err:empty { display: none; }
@media (min-width: 900px) { .rules { grid-template-columns: 1fr 1fr; } }
.needs { margin-top: 24px; }
@media (min-width: 900px) { .how.needs { grid-template-columns: repeat(4, 1fr); } }
#needs { text-align: left; }

/* signed in with X: avatar + handle in the nav pill and account sheet */
.xin { gap: 8px; }
.xav { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; }
.xav.lg { width: 44px; height: 44px; }
.xav.ini { background: var(--panel-3); color: var(--ink); font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); }
.xav.lg.ini { font-size: 18px; }

/* the thread that named it: quoted posts, text only (no avatars, not styled as X cards) */
.tq-list { display: flex; flex-direction: column; gap: 12px; }
.tq { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 18px 20px; }
.tq blockquote { margin: 0 0 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.tq.big { border-color: rgba(74,216,236,.35); }
.tq.big blockquote { font-size: 22px; line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -.2px; }
.tq figcaption { font-size: 13px; color: var(--mute); }
.tq figcaption a { color: var(--ink); font-weight: 500; }
.tq figcaption a span { color: var(--mute); font-weight: 400; }
.tq figcaption a:hover span { text-decoration: underline; }
@media (min-width: 900px) { .tq.big { margin-left: 28px; } }
