/* GREIG LIBRARY - plain CSS (no build step required) */
:root {
  --background: 210 40% 98%; --foreground: 215 25% 15%;
  --card: 0 0% 100%; --card-foreground: 215 25% 15%;
  --popover: 0 0% 100%;
  --primary: 210 70% 45%; --primary-foreground: 0 0% 100%;
  --nav-blue: 212 27% 89%; --nav-blue-foreground: 215 25% 15%;
  --secondary: 142 70% 50%;
  --muted: 210 30% 94%; --muted-foreground: 215 15% 45%;
  --accent: 30 90% 60%;
  --border: 214 30% 88%; --input: 214 30% 92%; --ring: 210 70% 45%;
  --radius: 0.75rem;
  --shadow-hover: 0 8px 30px -4px hsl(210 40% 50% / 0.25);
}
html.dark {
  --background: 215 30% 10%; --foreground: 210 30% 95%;
  --card: 215 25% 13%; --card-foreground: 210 30% 95%;
  --popover: 215 25% 13%;
  --primary: 210 70% 50%;
  --nav-blue: 215 24% 16%; --nav-blue-foreground: 210 30% 95%;
  --secondary: 142 65% 45%;
  --muted: 215 20% 18%; --muted-foreground: 215 15% 60%;
  --accent: 30 85% 55%;
  --border: 215 20% 22%; --input: 215 20% 18%; --ring: 210 70% 50%;
  --shadow-hover: 0 8px 30px -4px hsl(210 70% 30% / 0.4);
}
html.text-large { font-size: 112.5%; }
html.text-xlarge { font-size: 125%; }
html.high-contrast {
  --background: 0 0% 100%; --foreground: 0 0% 0%; --card: 0 0% 100%; --card-foreground: 0 0% 0%;
  --muted: 0 0% 92%; --muted-foreground: 0 0% 15%; --border: 0 0% 20%;
  --primary: 215 100% 30%; --primary-foreground: 0 0% 100%;
}
html.high-contrast.dark {
  --background: 0 0% 0%; --foreground: 0 0% 100%; --card: 0 0% 4%; --card-foreground: 0 0% 100%;
  --muted: 0 0% 12%; --muted-foreground: 0 0% 90%; --border: 0 0% 80%;
  --primary: 45 100% 55%; --primary-foreground: 0 0% 0%;
  --nav-blue: 0 0% 0%; --nav-blue-foreground: 0 0% 100%;
}
html.high-contrast body { font-weight: 500; }

*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: hsl(var(--background)); color: hsl(var(--foreground));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
code { background: hsl(var(--muted)); padding: .15rem .5rem; border-radius: .25rem; font-size: .875rem; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1rem; }
.page { flex: 1; padding-top: 2rem; padding-bottom: 2rem; }
.narrow { max-width: 56rem; margin: 0 auto; }
.settings-wrap { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.muted { color: hsl(var(--muted-foreground)); }
.stack > * + * { margin-top: .75rem; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; width: 100%; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--nav-blue)); }
.nav-inner { display: flex; height: 6rem; align-items: center; justify-content: space-between; }
.nav-logo img { height: 5rem; width: 5rem; border-radius: .25rem; display: block; }
.marquee-wrap { flex: 1; overflow: hidden; margin: 0 1rem; position: relative; }
.marquee { display: inline-block; white-space: nowrap; animation: marquee 15s linear infinite; }
.brand { display: inline-block; font-size: 1.875rem; font-weight: 700; line-height: 2.25rem; text-transform: uppercase; color: hsl(var(--nav-blue-foreground)); }
.marquee .dot { display: inline-block; margin: 0 2rem; color: hsl(var(--nav-blue-foreground)); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 768px) {
  .marquee { animation: none; display: block; text-align: center; }
  .md-hide { display: none !important; }
}
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; height: 3.5rem; width: 3.5rem; border: 0; background: transparent; color: hsl(var(--nav-blue-foreground)); border-radius: calc(var(--radius) - 2px); cursor: pointer; }
.icon-btn:hover { background: hsl(var(--muted) / .5); }
.icon-btn .icon { width: 2.25rem; height: 2.25rem; }

/* Menu sheet */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .8); opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: 20rem; max-width: 85vw; background: hsl(var(--background)); border-left: 1px solid hsl(var(--border)); box-shadow: 0 10px 40px rgb(0 0 0 / .3); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.sheet.open { transform: translateX(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid hsl(var(--border)); }
.sheet-head h2 { font-size: 1.125rem; font-weight: 600; }
.sheet-close { background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; padding: .25rem; }
.sheet-body { overflow-y: auto; padding: 1rem; flex: 1; }
.menu-link { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: var(--radius); font-weight: 500; }
.menu-link:hover, .sub-link:hover { background: hsl(var(--muted)); }
.sub-links { display: flex; flex-direction: column; gap: .25rem; margin: .5rem 0 .5rem 2rem; }
.sub-link { padding: .5rem .75rem; border-radius: .25rem; font-size: .875rem; }
.menu-sep { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid hsl(var(--border)); }

/* Search dialog */
.dialog { position: fixed; z-index: 71; left: 50%; top: 12%; transform: translateX(-50%); width: calc(100% - 2rem); max-width: 42rem; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 10px 40px rgb(0 0 0 / .3); display: none; }
.dialog.open { display: block; }
.dialog h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.dialog .sheet-close { position: absolute; top: 1rem; right: 1rem; }
.search-input, .select { width: 100%; height: 2.5rem; padding: 0 .75rem; border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--background)); color: inherit; font-size: 1rem; }
.search-results { max-height: 24rem; overflow-y: auto; margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.search-results a { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: var(--radius); }
.search-results a:hover { background: hsl(var(--muted)); }
.search-results .type { font-size: .875rem; color: hsl(var(--muted-foreground)); text-transform: capitalize; }
.search-empty { text-align: center; color: hsl(var(--muted-foreground)); padding: 2rem 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; font: inherit; font-size: .875rem; font-weight: 500; height: 2.5rem; padding: 0 1rem; border-radius: calc(var(--radius) - 2px); border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-sm { height: 2.25rem; padding: 0 .75rem; }
.btn-block { width: 100%; }
.btn-default { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-default:hover { filter: brightness(.92); }
.btn-outline { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--input)); }
.btn-outline:hover { background: hsl(var(--accent)); color: #fff; }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent)); color: #fff; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn.is-busy .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back-btn { margin-bottom: 1.5rem; }

/* ---------- Cards / layout ---------- */
.card { background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(0 0 0 / .05); overflow: hidden; }
.card-pad { padding: 1.5rem; }
.card-header { padding: 1.5rem 1.5rem 0; }
.card-title { font-size: 1.5rem; font-weight: 600; line-height: 1; display: flex; align-items: center; gap: .5rem; }
.card-desc { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .375rem; }
.card-body { padding: 1.5rem; }
.card-link { display: block; }
.card-link .card { transition: all .2s; }
.card-link:hover .card { box-shadow: var(--shadow-hover); transform: scale(1.02); }
.card-link:hover .chev { color: hsl(var(--primary)); }
.chev { color: hsl(var(--muted-foreground)); transition: color .2s; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.grid-home { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
.grid-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } .grid-cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-home { grid-template-columns: repeat(2, 1fr); } }

.cat-head { padding: 1.5rem; color: #fff; }
.grad-blue { background-image: linear-gradient(to bottom right, #3b82f6, #2563eb); }
.grad-green { background-image: linear-gradient(to bottom right, #22c55e, #16a34a); }
.grad-purple { background-image: linear-gradient(to bottom right, #a855f7, #9333ea); }
.grad-orange { background-image: linear-gradient(to bottom right, #f97316, #ea580c); }
.grad-teal { background-image: linear-gradient(to bottom right, #14b8a6, #0d9488); }
html.dark .cat-head { background-image: none; background-color: hsl(var(--muted)); color: hsl(var(--foreground)); }
.cat-head .title-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.cat-head .icon { width: 2rem; height: 2rem; color: #fde047; }
html.dark .cat-head .icon { color: hsl(var(--accent)); }
.cat-head h3 { font-size: 1.25rem; font-weight: 600; }
.cat-head p { font-size: .875rem; color: rgb(255 255 255 / .9); }
html.dark .cat-head p { color: hsl(var(--muted-foreground)); }
.badge-icon { display: flex; height: 4rem; width: 4rem; align-items: center; justify-content: center; border-radius: .75rem; color: #fff; flex-shrink: 0; }
.badge-icon .icon { width: 2rem; height: 2rem; }
.page-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.page-head h1 { font-size: 1.875rem; font-weight: 700; }
.section-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.term-icon { display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: var(--radius); background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }
.list { display: flex; flex-direction: column; gap: .75rem; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); transition: background .15s; scroll-margin-top: 7rem; }
.list-row:hover { background: hsl(var(--accent) / .5); }
.list-row .label { min-width: 0; font-size: 1.125rem; font-weight: 500; }
.bordered { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); }

/* ---------- Accordion (details/summary) ---------- */
.acc { border-bottom: 1px solid hsl(var(--border)); scroll-margin-top: 7rem; }
.acc.no-border { border-bottom: 0; }
.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.5rem; font-weight: 500; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: hsl(var(--muted)); }
.acc > summary .chev-icon { transition: transform .2s; }
.acc[open] > summary .chev-icon { transform: rotate(180deg); }
.acc-content { padding: 0 1.5rem 1rem; }
.acc.compact > summary { padding: .75rem; }
.acc.compact .acc-content { padding: 0 .75rem .5rem; }
.acc.menu > summary { padding: .75rem; border-radius: var(--radius); }
.acc.menu .acc-content { padding: 0 .75rem .5rem; }
.acc.small > summary { font-size: .875rem; }
.summary-left { display: flex; align-items: center; gap: .75rem; text-align: left; }
.nested { padding-left: .75rem; }
.nested > .acc { border-bottom: 0; }
.nested > .acc > summary { padding: .5rem .75rem; border-radius: .25rem; font-size: .875rem; }
.nested-rows { display: flex; flex-direction: column; gap: .25rem; padding-left: .75rem; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border-radius: .25rem; transition: background .15s; }
.mini-row:hover { background: hsl(var(--muted)); }
.mini-row .t { min-width: 0; font-size: .875rem; }
.rows { display: flex; flex-direction: column; gap: .25rem; }

/* ---------- Prose / About ---------- */
.prose h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: .75rem; }
.prose p { color: hsl(var(--muted-foreground)); }
.prose section { margin-top: 1.5rem; }
.prose section > * + * { margin-top: .75rem; }
.prose .lead { font-size: 1.125rem; }
.prose ul { margin: 0; padding-left: 1.25rem; color: hsl(var(--muted-foreground)); }
.prose li + li { margin-top: .5rem; }
.prose strong { color: hsl(var(--foreground)); }
.prose blockquote { margin: 0; border-left: 4px solid hsl(var(--primary) / .5); padding-left: 1rem; font-style: italic; color: hsl(var(--foreground) / .9); }
.dev { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.dev img { width: 12rem; height: 12rem; border-radius: var(--radius); object-fit: cover; box-shadow: 0 10px 25px rgb(0 0 0 / .2); }
.dev > div > * + * { margin-top: 1rem; }
@media (min-width: 768px) { .dev { flex-direction: row; } }

/* ---------- Settings ---------- */
.field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.field-left { display: flex; align-items: center; gap: .5rem; }
.field-left .icon { color: hsl(var(--muted-foreground)); }
.panel { display: flex; align-items: center; gap: .75rem; background: hsl(var(--muted)); border-radius: var(--radius); padding: 1rem; }
.panel .icon { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.panel .ok { color: hsl(var(--secondary)); }
.panel p:first-child { font-weight: 500; }
.panel p + p { font-size: .875rem; color: hsl(var(--muted-foreground)); }
.btn-row { display: flex; gap: 1rem; }
.btn-row .btn { flex: 1; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.vstack { display: flex; flex-direction: column; gap: 1rem; }
.vstack-sm { display: flex; flex-direction: column; gap: .75rem; }
.switch { position: relative; width: 2.75rem; height: 1.5rem; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: hsl(var(--input)); border: 1px solid hsl(var(--border)); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: hsl(var(--background)); box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.switch input:checked + span { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.switch input:checked + span::after { transform: translateX(1.25rem); }
.label-title { font-weight: 500; font-size: .875rem; }
.help { font-size: .875rem; color: hsl(var(--muted-foreground)); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px); z-index: 100; background: hsl(var(--foreground)); color: hsl(var(--background)); padding: .75rem 1.25rem; border-radius: var(--radius); font-size: .875rem; opacity: 0; transition: all .25s; max-width: calc(100vw - 2rem); box-shadow: 0 10px 30px rgb(0 0 0 / .3); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: hsl(0 72% 45%); color: #fff; }

/* Footer */
.footer { margin-top: auto; border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1.5rem; padding: 1.5rem 0; }
.footer nav a { display: flex; min-height: 44px; align-items: center; gap: .5rem; padding: 0 .75rem; font-size: .875rem; font-weight: 500; color: hsl(var(--foreground) / .8); transition: color .15s; }
.footer nav a:hover { color: hsl(var(--primary)); }
.footer nav .icon { width: 18px; height: 18px; }
.copyright { border-top: 1px solid hsl(var(--border) / .6); padding: 1rem 0; text-align: center; font-size: .75rem; color: hsl(var(--muted-foreground)); }

/* Resource page */
.frame-wrap { border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--muted) / .3); padding: 1.5rem; text-align: center; }
.frame-wrap iframe { width: 100%; height: 600px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: #fff; margin-top: 1rem; }

/* 404 */
.center-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: hsl(var(--muted)); text-align: center; padding: 3rem 1rem; }
.center-screen h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.center-screen p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.center-screen a.home { color: hsl(var(--primary)); text-decoration: underline; }

[hidden] { display: none !important; }

/* ---------- Payment dialog ---------- */
.pay-dialog { max-height: 90vh; overflow-y: auto; }
.pay-dialog form { display: flex; flex-direction: column; gap: .6rem; }
.pay-dialog .muted { font-size: .875rem; }
.pay-price { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: hsl(var(--primary)); }
.op-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.op-list label { display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem; text-align: center; border: 2px solid hsl(var(--input)); border-radius: var(--radius); cursor: pointer; font-weight: 500; font-size: .9rem; }
.op-list input { position: absolute; opacity: 0; pointer-events: none; }
.op-list input:checked + span { color: hsl(var(--primary)); }
.op-list label:has(input:checked) { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .08); }
.pay-error { color: hsl(0 72% 45%); font-size: .875rem; font-weight: 500; }
html.dark .pay-error { color: hsl(0 85% 70%); }
.pay-state { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; padding: 1rem 0; }
.pay-state .big { width: 3rem; height: 3rem; color: hsl(var(--primary)); }
.pay-state .ok { color: hsl(var(--secondary)); }
.icon.spin { animation: spin 1s linear infinite; }

.grad-rose-old { background-image: linear-gradient(to bottom right, #f43f5e, #e11d48); }

/* ---- section palette (matches the original app's blue/violet scheme) ---- */
.grad-violet1 { background-image: linear-gradient(to bottom right, #080f2b, #080f2b); }
.grad-blue1   { background-image: linear-gradient(to bottom right, #1b1a55, #1b1a55); }
.grad-violet2 { background-image: linear-gradient(to bottom right, #535c91, #535c91); }
.grad-violet3 { background-image: linear-gradient(to bottom right, #3d3b61, #3d3b61); }
.grad-azure   { background-image: linear-gradient(to bottom right, #101b3d, #101b3d); }
.grad-royal   { background-image: linear-gradient(to bottom right, #302573, #302573); }
.grad-cyan    { background-image: linear-gradient(to bottom right, #2d314b, #2d314b); }

/* ---- guides: lock icon, payment dialog steps ---- */
.sm-icon { width: 14px; height: 14px; }
.lock-ico { display: inline-flex; margin-right: .4rem; color: hsl(var(--muted-foreground)); }
.lock-ico[hidden], .js-locked[hidden], .js-unlocked[hidden] { display: none !important; }
.pay-step[hidden] { display: none !important; }
.pay-step { display: flex; flex-direction: column; gap: .75rem; margin-top: .75rem; }
.method-btn { justify-content: flex-start; height: 3.5rem; font-size: 1rem; gap: .75rem; }
.remember { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.remember[hidden] { display: none !important; }
.pay-state { align-items: center; text-align: center; }
.big.err { color: hsl(0 72% 51%); }
.dl-two { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.dl-sub { font-size: .75rem; font-weight: 400; opacity: .9; }
.grad-amber { background-image: linear-gradient(to bottom right, #31266a, #31266a); }


/* install message with an Install button */
.install-banner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); padding: .7rem .8rem .7rem 1rem; text-align: left; cursor: default; }
.install-title { font-size: 1rem; }
.install-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.install-go { font-weight: 600; padding-left: 1.1rem; padding-right: 1.1rem; }
.install-close { position: static; transform: none; color: hsl(var(--muted-foreground)); }

* whole install message is clickable */
.install-banner { cursor: pointer; }

/* ---- install message (final) ---- */
.install-banner {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 90;
  max-width: 32rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: .7rem .8rem .7rem 1rem; text-align: left; cursor: pointer; box-shadow: var(--shadow-hover);
}
.install-title { font-size: 1rem; }
.install-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.install-go { font-weight: 600; padding-left: 1.1rem; padding-right: 1.1rem; }
.install-close { position: static; transform: none; background: transparent; border: 0; color: hsl(var(--muted-foreground)); font-size: 1.5rem; line-height: 1; width: 2rem; height: 2rem; cursor: pointer; }
.install-help { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.install-help-card { background: hsl(var(--card)); color: hsl(var(--card-foreground)); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; max-width: 26rem; width: 100%; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow-hover); }
.install-help-card ol { margin: 0; padding-left: 1.2rem; font-size: .9rem; display: flex; flex-direction: column; gap: .4rem; }

.grad-mock { background-image: linear-gradient(to bottom right, #31266a, #31266a); }