/* T3rnel Marketplace — design system copied from 21st.dev (extracted spec:
   /mnt/ext4_work/t3rnel/products/os/t3rnel-marketplace/design/21st-design.md)
   Light is default; html.dark activates the dark theme. */

@font-face { font-family: "General Sans"; src: local("General Sans"); font-display: swap; }

html {
  --page-bg: 0.115 0.002 286;
  min-height: 100%;
  color-scheme: dark;
  background: oklch(var(--page-bg));
  scrollbar-color: oklch(0.34 0.006 286) oklch(var(--page-bg));
  scrollbar-width: thin;
}
html:not(.dark) {
  --page-bg: 0.985 0.001 286;
  color-scheme: light;
  background: oklch(var(--page-bg));
  scrollbar-color: oklch(0.78 0.004 286) oklch(0.96 0.002 286);
}
body { min-height: 100vh; margin: 0; background: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: oklch(var(--page-bg)); }
::-webkit-scrollbar-thumb { background: oklch(0.34 0.006 286); border: 2px solid oklch(var(--page-bg)); border-radius: 999px; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: oklch(0.78 0.004 286); }

:root {
  --g-wrap: 1152px;
  --g-wide: 1152px;
  --g-r-card: 20px;
  --g-r-media: 12px;
  --g-r-tile: 10px;
  --g-r-btn: 10px;
  --g-r-chip: 8px;
  --g-r-panel: 16px;
  --g-band-bg: var(--card);
  --g-tint-2: oklch(var(--primary) / 0.12);
  --g-lift: 0 1px 2px #1018400d, 0 18px 44px -24px #10184029;
  --g-panel-shadow: 0 24px 60px -28px #10184038, 0 0 0 1px oklch(17% .005 286 / .08);
}

html.dark {
  --g-lift: 0 1px 2px #0006, 0 30px 70px -36px #000c;
  --g-panel-shadow: 0 30px 80px -30px #000000bf, 0 0 0 1px oklch(97.5% .002 286 / .09);
}

/* .g3-root — dark base block; light overrides under html:not(.dark) */
.g3-root {
  --background: 0.115 0.002 286;
  --foreground: 0.975 0.002 286;
  --card: 0.158 0.003 286;
  --card-foreground: 0.975 0.002 286;
  --popover: 0.18 0.004 286;
  --popover-foreground: 0.975 0.002 286;
  --primary: 0.485 0.291 264.121;
  --primary-foreground: 1 0 0;
  --secondary: 0.21 0.004 286;
  --secondary-foreground: 0.975 0.002 286;
  --muted: 0.19 0.004 286;
  --muted-foreground: 0.68 0.008 286;
  --accent: 0.21 0.004 286;
  --accent-foreground: 0.975 0.002 286;
  --border: 0.24 0.004 286;
  --input: 0.27 0.004 286;
  --ring: 0.62 0.21 264;
  --g-media-bg: oklch(19% .004 286);
  color-scheme: dark;
}

html:not(.dark) .g3-root {
  --background: 0.985 0.001 286;
  --foreground: 0.17 0.005 286;
  --card: 1 0 0;
  --card-foreground: 0.17 0.005 286;
  --popover: 1 0 0;
  --popover-foreground: 0.17 0.005 286;
  --secondary: 0.955 0.002 286;
  --secondary-foreground: 0.17 0.005 286;
  --muted: 0.96 0.002 286;
  --muted-foreground: 0.5 0.01 286;
  --accent: 0.955 0.002 286;
  --accent-foreground: 0.17 0.005 286;
  --border: 0.915 0.003 286;
  --input: 0.89 0.003 286;
  --ring: 0.55 0.22 264;
  --g-media-bg: oklch(96% .002 286);
  color-scheme: light;
}

/* g3-island — always dark, even on light theme */
.g3-island {
  --background: 0.115 0.002 286;
  --foreground: 0.975 0.002 286;
  --card: 0.158 0.003 286;
  --card-foreground: 0.975 0.002 286;
  --popover: 0.18 0.004 286;
  --popover-foreground: 0.975 0.002 286;
  --primary: 0.485 0.291 264.121;
  --primary-foreground: 1 0 0;
  --secondary: 0.21 0.004 286;
  --secondary-foreground: 0.975 0.002 286;
  --muted: 0.19 0.004 286;
  --muted-foreground: 0.68 0.008 286;
  --accent: 0.21 0.004 286;
  --accent-foreground: 0.975 0.002 286;
  --border: 0.24 0.004 286;
  --input: 0.27 0.004 286;
  --ring: 0.62 0.21 264;
  --g-media-bg: oklch(19% .004 286);
  color-scheme: dark;
}

.g3-root, .g3-island {
  background: oklch(var(--background));
  color: oklch(var(--foreground));
  font-family: "General Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
.g3-root { min-height: 100vh; }
.g3-root h1, .g3-root h2, .g3-root h3 { font-weight: 500; text-wrap: balance; }
.g3-root p { text-wrap: pretty; }
.g3-root ::selection { background: oklch(var(--primary) / .25); }

.g-wide { max-width: var(--g-wide); margin-inline: auto; padding-inline: 24px; }

/* ---------- header ---------- */
.g3-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(var(--background) / .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid oklch(var(--foreground) / .06);
}
.g3-header-inner { display: flex; align-items: center; gap: 8px; height: 60px; }
.g-logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: oklch(var(--foreground)); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; margin-right: 12px; }
.g-logo svg { display: block; }
.g-logo .g-logo-st { color: oklch(var(--primary)); }

.g-nav { display: flex; align-items: center; gap: 2px; }
.g-nav-item {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px;
  border-radius: var(--g-r-chip); font-size: 14px; font-weight: 500;
  color: oklch(var(--muted-foreground)); text-decoration: none; background: none; border: 0;
  cursor: pointer; transition: color .15s, background .15s;
  font-family: inherit;
}
.g-nav-item:hover { color: oklch(var(--foreground)); background: oklch(var(--foreground) / .06); }
.g-nav-item svg { width: 12px; height: 12px; opacity: .7; }

.g-header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.g-search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  border-radius: var(--g-r-btn); font-size: 14px; color: oklch(var(--muted-foreground));
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.g-search-btn:hover { background: oklch(var(--foreground) / .06); color: oklch(var(--foreground)); }
.g-search-btn svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .g-search-btn .g-search-label { display: none; } }

.g-ghost-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 10px;
  font-size: 14px; font-weight: 500; color: oklch(var(--muted-foreground));
  background: none; border: 0; border-radius: var(--g-r-chip); cursor: pointer;
  font-family: inherit; text-decoration: none; transition: color .15s, background .15s;
}
.g-ghost-btn:hover { color: oklch(var(--foreground)); background: oklch(var(--foreground) / .06); }
@media (max-width: 640px) { .g-ghost-login { display: none; } }

/* ---------- buttons ---------- */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--g-r-btn);
  font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer;
  text-decoration: none; border: 0; white-space: nowrap;
  transition: background-color .18s, color .18s, box-shadow .18s, filter .18s, transform .12s;
}
.g-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px #00000073; }
.g-btn:active { transform: scale(.97); box-shadow: none; }
.g-btn-primary {
  background: oklch(var(--primary)); color: oklch(var(--primary-foreground));
  box-shadow: inset 0 1px #ffffff38;
}
.g-btn-primary:hover { background: #2a52ff; box-shadow: inset 0 1px #ffffff4d, 0 10px 28px -12px #0034ffd9; }
.g-btn-secondary {
  background: oklch(var(--foreground) / .06); color: oklch(var(--foreground));
}
.g-btn-secondary:hover { background: oklch(var(--foreground) / .12); }
.g-btn-ghost { color: oklch(var(--muted-foreground)); background: none; box-shadow: none; }
.g-btn-ghost:hover { background: oklch(var(--foreground) / .07); color: oklch(var(--foreground)); box-shadow: none; }
.g-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.g-btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.g-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* detail/library-style buttons */
.g-btn-lib {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 8px; font-size: 16px; font-weight: 500; font-family: inherit;
  background: oklch(var(--primary)); color: oklch(var(--primary-foreground));
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .12s;
}
.g-btn-lib:hover { background: oklch(var(--primary) / .9); }
.g-btn-lib:active { transform: scale(.98); }
.g-btn-lib-sec {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 8px; font-size: 16px; font-weight: 500; font-family: inherit;
  background: oklch(var(--foreground) / .06); color: oklch(var(--foreground));
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .12s;
}
.g-btn-lib-sec:hover { background: oklch(var(--foreground) / .1); }
.g-btn-lib-sec:active { transform: scale(.98); }

/* ---------- layout: sidebar + grid ---------- */
.g-browse { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 80px; }
@media (max-width: 900px) { .g-browse { grid-template-columns: 1fr; } .g-sidebar { display: none; } }

.g-sidebar { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 24px; }
.g-sidebar h2 { font-size: 13px; font-weight: 500; color: oklch(var(--muted-foreground)); padding: 0 10px; margin: 0 0 8px; }
.g-cat-list { list-style: none; margin: 0 0 20px; padding: 0; }
.g3-cat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 34px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; text-align: left;
  color: oklch(var(--muted-foreground)); border-radius: 8px; text-decoration: none;
  transition: background .12s, color .12s;
}
.g3-cat-row:hover { background: oklch(var(--foreground) / .06); color: oklch(var(--foreground)); }
.g3-cat-row.active { color: oklch(var(--foreground)); background: oklch(var(--foreground) / .06); }
.g3-cat-row .g-cat-count { font-size: 12px; color: oklch(var(--muted-foreground)); font-weight: 400; }

/* ---------- toolbar: pill tabs + search ---------- */
.g-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.g-cattabs {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: calc(var(--g-r-btn) + 2px);
  background: oklch(var(--foreground) / .06);
  position: relative;
}
.g-cattab {
  position: relative; z-index: 1; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: oklch(var(--muted-foreground)); transition: color .2s;
}
.g-cattab:hover { color: oklch(var(--foreground)); }
.g-cattab.active { color: oklch(var(--background)); }
.g-cattab-pill {
  position: absolute; top: 3px; bottom: 3px; border-radius: 999px;
  background: oklch(var(--foreground));
  transition: transform .46s cubic-bezier(.22,1,.36,1), width .46s cubic-bezier(.22,1,.36,1);
  z-index: 0;
}
.g-catsearch {
  position: relative; margin-left: auto; min-width: 220px; flex: 0 1 300px;
}
.g-catsearch-input {
  width: 100%; height: 36px; padding: 0 44px 0 36px;
  border-radius: 999px; border: 1px solid oklch(var(--border));
  background: oklch(var(--foreground) / .03);
  font-family: inherit; font-size: 14px; color: oklch(var(--foreground));
  outline: none; transition: border-color .15s;
}
.g-catsearch-input::placeholder { color: oklch(var(--muted-foreground) / .7); }
.g-catsearch-input:focus { border-color: oklch(var(--primary) / .6); }
.g-catsearch-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: oklch(var(--muted-foreground)); pointer-events: none;
}
/* ---------- card grid ---------- */
.g-card-grid {
  list-style: none; margin: 0 -20px; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 420px) { .g-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .g-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .g-card-grid { grid-template-columns: repeat(4, 1fr); } }
.g-card-grid > li { padding: 20px; }
@media (max-width: 767px) { .g-card-grid > li { padding: 12px; } }

.g-cell {
  position: relative; display: flex; width: 100%; flex-direction: column;
  border-radius: var(--g-r-card); overflow: hidden;
  background: oklch(var(--card)); color: oklch(var(--card-foreground));
  box-shadow: 0 48px 72px -12px #00000005, 0 32px 44px -12px #00000008;
  transition: box-shadow .25s;
}
html.dark .g-cell { box-shadow: 0 48px 72px -12px #00000030, 0 32px 44px -12px #00000025; }
.g-cell:hover { box-shadow: 0 56px 72px 0 #0000000f, 0 32px 48px -14px #0000000f; }
html.dark .g-cell:hover { box-shadow: 0 56px 72px 0 #00000055, 0 32px 48px -14px #00000040; }

.g-cell-media {
  position: relative; display: block; aspect-ratio: 4 / 3; width: 100%;
  overflow: hidden; border-radius: 14px; background: var(--g-media-bg);
  box-shadow: inset 0 0 0 1px #0000000a, 0 1px 3px #00000012;
  text-decoration: none;
}
html.dark .g-cell-media { box-shadow: inset 0 0 0 1px #ffffff10, 0 1px 3px #00000040; }
.g-cell-media img, .g-cell-media .g-cell-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.23,1,.32,1);
}
.g-cell:hover .g-cell-media img, .g-cell:hover .g-cell-media .g-cell-thumb { transform: scale(1.03); }
.g-cell-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px;
  background: oklch(var(--background) / .85); color: oklch(var(--foreground));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px oklch(var(--foreground) / .08);
}

.g-cell-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.g-cell-title {
  font-size: 16px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.35;
  color: oklch(var(--foreground)); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
a.g-cell-title:hover { color: oklch(var(--primary)); }
.g-cell-line { font-size: 13px; color: oklch(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.g-cell-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  transform: translateY(0); opacity: 1;
  transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .3s;
}
.g-cell-avatar {
  width: 18px; height: 18px; border-radius: 30%; object-fit: cover; flex: none;
  box-shadow: 0 .5px 1px #00000040;
}
.g-cell-author { font-size: 13px; font-weight: 500; line-height: 18px; color: oklch(var(--foreground) / .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cell-saves { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: oklch(var(--muted-foreground)); padding: 2px 4px; border-radius: 6px; }
.g-cell-saves svg { width: 14px; height: 14px; stroke-width: 1.8; }

/* ---------- empty state ---------- */
.g-empty { padding: 80px 24px; text-align: center; color: oklch(var(--muted-foreground)); }
.g-empty h3 { font-size: 17px; font-weight: 500; color: oklch(var(--foreground)); margin: 0 0 6px; }
.g-empty p { font-size: 14px; margin: 0; }

/* ---------- detail page ---------- */
.g-detail { padding-top: 28px; padding-bottom: 80px; }
.g-crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: oklch(var(--muted-foreground)); margin-bottom: 20px; flex-wrap: wrap; }
.g-crumbs a { color: oklch(var(--muted-foreground)); text-decoration: none; }
.g-crumbs a:hover { color: oklch(var(--foreground)); }
.g-crumbs svg { width: 14px; height: 14px; opacity: .6; }
.g-detail h1 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 8px 0 10px; }
.g-detail-author { font-size: 14px; color: oklch(var(--muted-foreground)); }
.g-detail-meta { display: flex; align-items: center; gap: 8px; font-size: 15px; color: oklch(var(--muted-foreground)); margin-top: 6px; }
.g-detail-meta svg { width: 15px; height: 15px; }
.g-detail-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.g-preview-hero {
  position: relative; aspect-ratio: 16 / 10; width: 100%; margin-top: 28px;
  overflow: hidden; border-radius: 12px; background: var(--g-media-bg);
  box-shadow: 0 25px 50px -12px #00000040;
  outline: 1px solid oklch(var(--foreground) / .08); outline-offset: -1px;
}
.g-preview-hero img, .g-preview-hero .g-cell-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.g-preview-pill {
  position: absolute; bottom: 12px; right: 12px; height: 40px; padding: 0 14px;
  border-radius: 8px; background: rgba(0,0,0,.85); color: #fff;
  font-size: 15px; font-weight: 500; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  backdrop-filter: blur(8px); transition: background .15s;
}
.g-preview-pill:hover { background: #000; }

.g-tabs { display: flex; gap: 24px; border-bottom: 1px solid oklch(var(--border)); margin-top: 36px; }
.g-tab {
  padding: 0 2px 12px; font-size: 16px; font-weight: 500; font-family: inherit;
  color: oklch(var(--muted-foreground)); background: none; border: 0; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.g-tab:hover { color: oklch(var(--foreground)); }
.g-tab.active { color: oklch(var(--foreground)); border-bottom-color: oklch(var(--foreground)); }

.g-about-grid { display: grid; gap: 48px; margin-top: 32px; }
@media (min-width: 768px) { .g-about-grid { grid-template-columns: minmax(0,1fr) 260px; } }
.g-about-prose { max-width: 72ch; font-size: 16px; line-height: 1.75; color: oklch(var(--foreground) / .85); }
.g-about-prose h2 { font-size: 16px; font-weight: 500; margin: 28px 0 8px; }
.g-about-prose p { margin: 0 0 14px; }
.g-about-prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em;
  background: oklch(var(--foreground) / .07); border-radius: 5px; padding: 1px 5px;
}
.g-about-meta { align-self: start; }
.g-about-meta dl { margin: 0; display: flex; flex-direction: column; gap: 0; }
.g-about-meta .g-meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid oklch(var(--border)); font-size: 14px; }
.g-about-meta dt { color: oklch(var(--muted-foreground)); }
.g-about-meta dd { margin: 0; color: oklch(var(--foreground) / .85); text-align: right; }
.g-about-meta dd a { color: oklch(var(--foreground) / .85); }
.g-about-meta dd a:hover { color: oklch(var(--primary)); }

.g-code-block {
  margin-top: 36px; border-radius: 12px; overflow: hidden;
  outline: 1px solid oklch(var(--border)); outline-offset: -1px;
  background: oklch(var(--card));
}
.g-code-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid oklch(var(--border)); font-size: 13px; color: oklch(var(--muted-foreground)); }
.g-code-head .g-code-file { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: oklch(var(--foreground) / .85); }
.g-code-pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.6; color: oklch(var(--foreground) / .85); white-space: pre; }
.g-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.g-tag {
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  background: oklch(var(--foreground) / .06); color: oklch(var(--muted-foreground)); text-decoration: none;
}
.g-tag:hover { color: oklch(var(--foreground)); background: oklch(var(--foreground) / .1); }

.g-more { margin-top: 64px; }
.g-more h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 20px; }
.g-more-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.g-more-head a { font-size: 14px; color: oklch(var(--muted-foreground)); text-decoration: none; }
.g-more-head a:hover { color: oklch(var(--foreground)); }

/* ---------- footer ---------- */
.g-footer { border-top: 1px solid oklch(var(--foreground) / .08); padding: 56px 0 48px; }
.g-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.g-footer h3 { font-size: 13px; font-weight: 500; color: oklch(var(--muted-foreground)); margin: 0 0 14px; }
.g-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.g-footer a { font-size: 14px; color: oklch(var(--foreground) / .8); text-decoration: none; }
.g-footer a:hover { color: oklch(var(--foreground)); }
.g-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid oklch(var(--foreground) / .06); font-size: 13px; color: oklch(var(--muted-foreground)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* theme toggle */
.g-theme-btn {
  width: 36px; height: 36px; border-radius: var(--g-r-chip); border: 0; background: none;
  color: oklch(var(--muted-foreground)); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.g-theme-btn:hover { background: oklch(var(--foreground) / .06); color: oklch(var(--foreground)); }
.g-theme-btn svg { width: 16px; height: 16px; }
