:root {
  color-scheme: dark;
  --page: #0f1115;
  --surface: #15181d;
  --surface-raised: #1b1f26;
  --surface-soft: #20242c;
  --line: #2c313a;
  --line-strong: #39414d;
  --text: #e7eaf0;
  --muted: #a1a9b7;
  --quiet: #707a88;
  --accent: #3d8bfd;
  --accent-hover: #6ea8fe;
  --danger: #f07979;
  --shell: 1420px;
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); color: var(--text); font-size: 14px; line-height: 1.55; }
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 70px; align-items: center; gap: 32px; padding: 0 clamp(18px, 3.5vw, 52px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(12px); }
.brand { display: inline-flex; min-width: max-content; align-items: center; gap: 10px; }
.brand__logo { display: block; width: 33px; height: 33px; border-radius: 8px; object-fit: cover; }
.brand__name { display: grid; font-size: 14px; font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.brand__name span { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .01em; }
.top-nav { display: flex; height: 70px; align-items: stretch; gap: 25px; }
.nav-link { position: relative; display: inline-flex; align-items: center; padding: 0 1px; border: 0; background: transparent; color: var(--muted); font-size: 13px; transition: color .18s ease; }
.nav-link::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: scaleX(1); }
.top-actions { display: flex; min-width: 0; align-items: center; gap: 11px; margin-left: auto; }
.search-box { display: flex; width: min(300px, 25vw); min-width: 180px; height: 38px; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--quiet); transition: border-color .18s ease, background .18s ease; }
.search-box:focus-within { border-color: #4b79ba; background: var(--surface-raised); }
.search-box .icon { width: 15px; height: 15px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: var(--quiet); }
.search-box input:focus-visible { outline: 0; }
.search-box kbd { display: grid; min-width: 19px; height: 20px; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--quiet); font-family: inherit; font-size: 11px; }
.button { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-raised); color: var(--text); font-size: 12px; font-weight: 550; white-space: nowrap; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); border-color: #4b5665; background: #242a33; }
.button:active { transform: translateY(0) scale(.985); }
.button .icon { width: 15px; height: 15px; }
.button--primary { border-color: #347bd8; background: #2f74d0; color: #fff; }
.button--primary:hover { border-color: #4d93f1; background: #3d8bfd; }
.button--quiet { background: transparent; }
.button--quiet:hover { background: var(--surface-raised); }
.page-shell { width: min(var(--shell), calc(100% - 64px)); margin: 0 auto; }
.page-heading { display: flex; min-height: 140px; align-items: center; justify-content: space-between; gap: 24px; padding: 29px 0 25px; animation: enter-up .45s both; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(25px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.05em; line-height: 1.15; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.project-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; transition: color .18s ease; }
.project-link:hover { color: var(--text); }
.project-link .icon { width: 14px; height: 14px; }
.catalog-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 34px; padding-bottom: 72px; }
.sidebar { align-self: start; padding-top: 4px; }
.sidebar-section h2 { margin: 0 0 10px; color: var(--quiet); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.side-nav { display: grid; gap: 3px; }
.side-link { position: relative; display: flex; min-height: 38px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; transition: color .18s ease, background .18s ease; }
.side-link .icon { width: 16px; height: 16px; color: var(--quiet); }
.side-link:hover { background: #191d23; color: var(--text); }
.side-link.is-active { background: #1b222d; color: #dbe9ff; }
.side-link.is-active .icon { color: var(--accent-hover); }
.sidebar-section--separated { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.sidebar-note { margin-top: 30px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 6px; background: #12151a; }
.sidebar-note strong { font-size: 11px; font-weight: 600; }
.sidebar-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.results { min-width: 0; }
.results-heading { display: flex; min-height: 47px; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.results-heading h2 { margin: 0 0 3px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.results-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.results-tools { display: flex; align-items: center; gap: 17px; }
.result-count { color: var(--quiet); font-size: 11px; white-space: nowrap; }
.sort-control { position: relative; z-index: 5; }
.sort-trigger { display: inline-flex; height: 33px; align-items: center; gap: 9px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 11px; transition: border-color .18s ease, color .18s ease; }
.sort-trigger:hover, .sort-trigger[aria-expanded="true"] { border-color: var(--line-strong); color: var(--text); }
.sort-trigger .icon { width: 13px; height: 13px; transition: transform .18s ease; }
.sort-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sort-menu { position: absolute; top: calc(100% + 6px); right: 0; display: grid; width: 185px; gap: 2px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 7px; background: #1b1f26; box-shadow: 0 12px 26px #0006; animation: menu-in .16s ease both; }
.sort-menu button { min-height: 33px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); text-align: left; font-size: 11px; }
.sort-menu button:hover, .sort-menu button[aria-selected="true"] { background: #252b34; color: var(--text); }
.active-filters { display: flex; align-items: center; gap: 7px; margin: -5px 0 15px; }
.filter-chip { padding: 4px 8px; border: 1px solid #29456b; border-radius: 4px; color: #bdd6fa; font-size: 10px; }
.filter-clear { border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.filter-clear:hover { color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); opacity: 0; animation: card-in .42s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--card-index, 0) * 45ms); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #3c4653; box-shadow: 0 8px 22px #0002; }
.card-cover { display: block; width: 100%; aspect-ratio: 1.95; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #0d1014; text-align: left; }
.card-cover > .launcher-preview, .card-cover > .plugin-card-preview { width: 100%; height: 100%; }
.product-card:hover .theme-preview { filter: brightness(1.035); }
.launcher-preview { width: 100%; min-width: 0; overflow: hidden; background: var(--pv-bg); color: var(--pv-text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.launcher-preview--card { height: 100%; min-height: 176px; }
.launcher-preview--large { height: clamp(280px, 39vw, 430px); border: 1px solid #303742; border-radius: 7px; }
.launcher-preview--form { height: 235px; border: 1px solid var(--line); border-radius: 6px; }
.launcher-window { display: grid; width: 100%; height: 100%; grid-template-columns: minmax(82px, 23%) minmax(0, 1fr); transition: transform .25s ease; transform-origin: center; }
.launcher-sidebar { display: flex; min-width: 0; flex-direction: column; padding: 11px 8px 8px; border-right: 1px solid color-mix(in srgb, var(--pv-text) 10%, transparent); background: color-mix(in srgb, var(--pv-panel) 96%, var(--pv-bg)); }
.launcher-brand { display: flex; height: 23px; align-items: center; gap: 6px; margin: 0 0 13px 2px; font-size: 9px; font-weight: 600; }
.launcher-brand img { width: 15px; height: 15px; object-fit: contain; }
.launcher-nav { display: grid; gap: 3px; }
.launcher-nav-item { display: flex; min-height: 23px; align-items: center; gap: 6px; overflow: hidden; padding: 0 5px; border-radius: 4px; color: var(--pv-muted); font-size: 7px; white-space: nowrap; }
.launcher-nav-item > svg { width: 11px; height: 11px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.launcher-nav-item.is-current { background: color-mix(in srgb, var(--pv-accent) 19%, var(--pv-panel)); color: var(--pv-strong); }
.launcher-profile { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--pv-text) 9%, transparent); color: var(--pv-muted); font-size: 7px; }
.launcher-avatar { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--pv-soft); color: var(--pv-strong); font-size: 8px; }
.launcher-profile i { width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: #6fc589; }
.launcher-main { min-width: 0; overflow: hidden; background: var(--pv-bg); }
.launcher-titlebar { display: flex; height: 27px; align-items: center; justify-content: space-between; padding: 0 9px; border-bottom: 1px solid color-mix(in srgb, var(--pv-text) 9%, transparent); color: var(--pv-muted); font-size: 7px; }
.launcher-titlebar div { display: flex; gap: 7px; }
.launcher-titlebar i { width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--pv-text) 38%, transparent); }
.launcher-content { min-width: 0; padding: 10px 11px; }
.launcher-page-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.launcher-page-head h3 { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: -.03em; }
.launcher-page-head p { margin: 2px 0 0; color: var(--pv-muted); font-size: 6px; }
.launcher-new-button { display: inline-flex; min-height: 18px; align-items: center; padding: 0 7px; border: 1px solid var(--pv-accent); border-radius: 4px; background: var(--pv-accent); color: white; font-size: 6px; }
.launcher-controls { display: flex; align-items: center; gap: 5px; margin: 11px 0 10px; }
.launcher-controls > span { display: flex; min-width: 35%; height: 19px; align-items: center; gap: 4px; padding: 0 5px; border: 1px solid color-mix(in srgb, var(--pv-text) 11%, transparent); border-radius: 4px; color: var(--pv-muted); }
.launcher-controls > span .icon { width: 9px; height: 9px; }
.launcher-controls small { font-size: 6px; }
.launcher-controls b { padding: 3px 5px; border-radius: 3px; background: var(--pv-soft); color: var(--pv-muted); font-size: 5px; font-weight: 500; }
.launcher-group-label { margin: 0 0 5px; color: var(--pv-muted); font-size: 5px; letter-spacing: .08em; }
.launcher-instance { display: flex; min-width: 0; height: 34px; align-items: center; gap: 6px; margin-bottom: 5px; padding: 4px 6px; border: 1px solid color-mix(in srgb, var(--pv-text) 10%, transparent); border-radius: 5px; background: var(--pv-panel); }
.instance-mark { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 4px; background: color-mix(in srgb, var(--pv-accent) 18%, var(--pv-panel)); color: var(--pv-strong); font-size: 10px; font-weight: 650; }
.instance-mark--second { background: color-mix(in srgb, #6a9b68 23%, var(--pv-panel)); color: color-mix(in srgb, #a4d59f 75%, var(--pv-text)); }
.instance-copy { display: grid; min-width: 0; gap: 1px; }
.instance-copy strong { overflow: hidden; font-size: 6px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.instance-copy small { overflow: hidden; color: var(--pv-muted); font-size: 5px; text-overflow: ellipsis; white-space: nowrap; }
.launcher-instance em { margin-left: auto; padding: 4px 6px; border-radius: 4px; background: var(--pv-accent); color: #fff; font-size: 5px; font-style: normal; white-space: nowrap; }
.launcher-footer-line { display: flex; justify-content: space-between; margin-top: 8px; color: var(--pv-muted); font-size: 5px; }
.launcher-preview--large .launcher-window { grid-template-columns: minmax(142px, 21%) minmax(0, 1fr); }
.launcher-preview--large .launcher-sidebar { padding: 20px 14px 14px; }
.launcher-preview--large .launcher-brand { height: 30px; gap: 8px; margin-bottom: 23px; font-size: 12px; }
.launcher-preview--large .launcher-brand img { width: 21px; height: 21px; }
.launcher-preview--large .launcher-nav { gap: 5px; }
.launcher-preview--large .launcher-nav-item { min-height: 34px; gap: 9px; padding: 0 8px; font-size: 10px; }
.launcher-preview--large .launcher-nav-item > svg { width: 15px; height: 15px; }
.launcher-preview--large .launcher-profile { gap: 8px; font-size: 9px; }
.launcher-preview--large .launcher-avatar { width: 24px; height: 24px; font-size: 11px; }
.launcher-preview--large .launcher-titlebar { height: 36px; padding-inline: 13px; font-size: 9px; }
.launcher-preview--large .launcher-titlebar i { width: 6px; height: 6px; }
.launcher-preview--large .launcher-content { padding: 20px 24px; }
.launcher-preview--large .launcher-page-head h3 { font-size: 22px; }
.launcher-preview--large .launcher-page-head p { font-size: 10px; }
.launcher-preview--large .launcher-new-button { min-height: 29px; padding-inline: 10px; font-size: 9px; }
.launcher-preview--large .launcher-controls { gap: 8px; margin: 21px 0 18px; }
.launcher-preview--large .launcher-controls > span { height: 28px; padding-inline: 8px; }
.launcher-preview--large .launcher-controls > span .icon { width: 13px; height: 13px; }
.launcher-preview--large .launcher-controls small { font-size: 9px; }
.launcher-preview--large .launcher-controls b { padding: 5px 8px; font-size: 8px; }
.launcher-preview--large .launcher-group-label { margin-bottom: 8px; font-size: 8px; }
.launcher-preview--large .launcher-instance { height: 51px; gap: 10px; margin-bottom: 8px; padding: 7px 9px; }
.launcher-preview--large .instance-mark { width: 32px; height: 32px; font-size: 15px; }
.launcher-preview--large .instance-copy strong { font-size: 10px; }
.launcher-preview--large .instance-copy small { font-size: 8px; }
.launcher-preview--large .launcher-instance em { padding: 6px 9px; font-size: 8px; }
.launcher-preview--large .launcher-footer-line { margin-top: 12px; font-size: 8px; }
.launcher-preview--form .launcher-sidebar { padding: 10px 8px; }
.launcher-preview--form .launcher-content { padding: 10px; }
.launcher-preview--form .launcher-page-head h3 { font-size: 12px; }
.launcher-preview { display: grid; width: 100%; height: 100%; min-width: 0; overflow: hidden; place-items: center; background: var(--theme-bg); color: var(--theme-strong); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.launcher-preview--card { min-height: 0; }
.launcher-preview--large { height: clamp(280px, 39vw, 430px); border: 1px solid #303742; border-radius: 7px; }
.launcher-preview--form { height: 235px; border: 1px solid var(--line); border-radius: 6px; }
.theme-preview { display: grid; width: 100%; height: 100%; min-height: 100%; grid-template-columns: minmax(60px, 24%) minmax(0, 1fr); gap: 0; padding: 12px; background: var(--theme-bg); color: var(--theme-strong); }
.theme-preview-sidebar { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 7px; border-right: 1px solid color-mix(in srgb, var(--theme-strong) 12%, transparent); background: color-mix(in srgb, var(--theme-panel) 94%, var(--theme-bg)); }
.theme-preview-mark { display: block; width: 22px; height: 22px; margin: 1px 0 3px; background: var(--theme-accent); -webkit-mask: url("/assets/uni-black-mark.png") center / contain no-repeat; mask: url("/assets/uni-black-mark.png") center / contain no-repeat; }
.theme-preview-sidebar i { display: block; width: min(100%, 46px); height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--theme-strong) 18%, var(--theme-panel)); }
.theme-preview-sidebar i:first-of-type { background: color-mix(in srgb, var(--theme-accent) 30%, var(--theme-panel)); }
.theme-preview-main { display: grid; align-content: start; justify-items: start; gap: 13px; min-width: 0; padding: 8px 12px; }
.theme-preview-top { display: block; width: min(48%, 76px); height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--theme-strong) 18%, var(--theme-bg)); }
.theme-preview-card { display: grid; width: min(100%, 220px); min-height: 64px; align-content: center; gap: 7px; padding: 10px; border: 1px solid color-mix(in srgb, var(--theme-strong) 10%, var(--theme-panel)); border-radius: 6px; background: var(--theme-panel); }
.theme-preview-card span { width: 18px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--theme-accent) 36%, var(--theme-panel)); }
.theme-preview-card strong { display: block; width: 60%; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--theme-strong) 48%, var(--theme-panel)); }
.theme-preview-card small { display: block; width: 42%; height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--theme-strong) 20%, var(--theme-panel)); }
.theme-preview-button { width: 54px; height: 17px; border-radius: 4px; background: var(--theme-accent); }
.launcher-preview--large .theme-preview { grid-template-columns: minmax(105px, 24%) minmax(0, 1fr); padding: 22px; }
.launcher-preview--large .theme-preview-sidebar { gap: 16px; padding: 12px; }
.launcher-preview--large .theme-preview-mark { width: 34px; height: 34px; margin-bottom: 6px; }
.launcher-preview--large .theme-preview-sidebar i { height: 9px; }
.launcher-preview--large .theme-preview-main { gap: 22px; padding: 15px 20px; }
.launcher-preview--large .theme-preview-top { height: 10px; }
.launcher-preview--large .theme-preview-card { min-height: 112px; gap: 11px; padding: 18px; }
.launcher-preview--large .theme-preview-card span { width: 27px; height: 27px; }
.launcher-preview--large .theme-preview-card strong { height: 9px; }
.launcher-preview--large .theme-preview-card small { height: 6px; }
.launcher-preview--large .theme-preview-button { width: 78px; height: 26px; }
.launcher-preview--form .theme-preview { grid-template-columns: 65px minmax(0, 1fr); padding: 8px; }
.launcher-preview--form .theme-preview-sidebar { gap: 8px; padding: 5px; }
.launcher-preview--form .theme-preview-mark { width: 18px; height: 18px; }
.launcher-preview--form .theme-preview-main { gap: 8px; padding: 5px 8px; }
.launcher-preview--form .theme-preview-card { min-height: 50px; gap: 5px; padding: 7px; }
.launcher-preview--form .theme-preview-card span { width: 14px; height: 14px; }
.launcher-preview--form .theme-preview-button { width: 42px; height: 13px; }
/* Keep geometry aligned with ThemeGallery.vue; scale the same mini-preview in the detail dialog. */
.launcher-preview--card, .launcher-preview--form { place-items: center; }
.theme-preview { width: 100%; height: 145px; min-height: 145px; grid-template-columns: 78px minmax(0, 1fr); padding: 12px; color: var(--theme-strong); background: var(--theme-bg); }
.theme-preview-sidebar { gap: 10px; padding: 5px; background: color-mix(in srgb, var(--theme-panel) 92%, #000); }
.theme-preview-mark { width: 24px; height: 24px; margin: 0 0 4px; border-radius: 5px; }
.theme-preview-sidebar i { width: 45px; height: 7px; border-radius: 3px; background: color-mix(in srgb, var(--theme-strong) 18%, transparent); }
.theme-preview-sidebar i:first-of-type { background: color-mix(in srgb, var(--theme-accent) 36%, transparent); }
.theme-preview-main { gap: 13px; padding: 8px 12px; }
.theme-preview-top { width: 60px; height: 6px; background: color-mix(in srgb, var(--theme-strong) 35%, transparent); }
.theme-preview-card { min-height: 0; gap: 7px; padding: 11px; border: 1px solid color-mix(in srgb, var(--theme-strong) 18%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--theme-panel) 90%, transparent); }
.theme-preview-card span { width: auto; height: 34px; border-radius: 5px; background: var(--theme-accent); }
.theme-preview-card strong { width: 75px; height: 6px; background: var(--theme-strong); opacity: .65; }
.theme-preview-card small { width: 45px; height: 5px; background: var(--theme-strong); opacity: .28; }
.theme-preview-button { width: 42px; height: 12px; margin-left: auto; border-radius: 4px; }
.launcher-preview--large .theme-preview { width: 50%; height: 145px; min-height: 145px; grid-template-columns: 78px minmax(0, 1fr); padding: 12px; transform: scale(2); transform-origin: center; }
.launcher-preview--large .theme-preview-sidebar { gap: 10px; padding: 5px; }
.launcher-preview--large .theme-preview-mark { width: 24px; height: 24px; margin: 0 0 4px; }
.launcher-preview--large .theme-preview-sidebar i { height: 7px; }
.launcher-preview--large .theme-preview-main { gap: 13px; padding: 8px 12px; }
.launcher-preview--large .theme-preview-top { width: 60px; height: 6px; }
.launcher-preview--large .theme-preview-card { min-height: 0; gap: 7px; padding: 11px; }
.launcher-preview--large .theme-preview-card span { width: auto; height: 34px; }
.launcher-preview--large .theme-preview-card strong { height: 6px; }
.launcher-preview--large .theme-preview-card small { height: 5px; }
.launcher-preview--large .theme-preview-button { width: 42px; height: 12px; }
.launcher-preview--form .theme-preview { height: 145px; min-height: 145px; }
.product-card__body { padding: 14px 15px 13px; }
.product-card__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.product-kind { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.product-card h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.save-button { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; margin: -2px -4px 0 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--quiet); transition: color .18s ease, background .18s ease, border-color .18s ease; }
.save-button:hover { border-color: var(--line); background: var(--surface-raised); color: var(--text); }
.save-button.is-saved { color: var(--accent-hover); }
.save-button.is-saved .icon { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
.save-button.save-pop { animation: bookmark-pop .25s ease; }
.save-button .icon { width: 17px; height: 17px; }
.product-description { display: -webkit-box; min-height: 39px; overflow: hidden; margin: 9px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; }
.card-open-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; padding: 0; border: 0; background: transparent; color: #8eb8f2; font-size: 11px; font-weight: 550; transition: gap .18s ease, color .18s ease; }
.card-open-link:hover { gap: 10px; color: #c0d8fc; }
.card-open-link .icon { width: 13px; height: 13px; }
.plugin-card-preview { display: flex; height: 100%; min-height: 176px; flex-direction: column; padding: 15px 17px 12px; background: #12151a; color: #e5e8ed; }
.plugin-preview-head { display: flex; align-items: center; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid #2a3038; color: #bac2ce; font-size: 9px; }
.plugin-file-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7b46a; }
.plugin-preview-version { margin-left: auto; color: #9ba5b2; }
.plugin-card-preview pre { margin: 13px 0 10px; color: #bcc5d1; font: 10px/1.7 "JetBrains Mono", ui-monospace, monospace; }
.code-key { color: #8eb8f2; }
.code-value { color: #b8d39b; }
.plugin-preview-note { margin-top: auto; padding-top: 8px; border-top: 1px solid #2a3038; color: #9ba5b2; font-size: 9px; }
.empty-state { display: grid; min-height: 250px; align-content: center; justify-items: center; padding: 25px; border: 1px dashed var(--line-strong); border-radius: 8px; text-align: center; animation: enter-up .25s ease both; }
.empty-state__icon { width: 22px; height: 22px; margin-bottom: 13px; color: var(--quiet); }
.empty-state h3 { margin: 0 0 4px; font-size: 16px; font-weight: 550; }
.empty-state p { max-width: 330px; margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.empty-state .button { min-height: 32px; }
.catalog-info { margin-top: 36px; padding: 17px 0 0; border-top: 1px solid var(--line); }
.catalog-info h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; }
.catalog-info p { max-width: 790px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.site-footer { display: flex; min-height: 68px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px clamp(18px, 3.5vw, 52px); border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; }
.brand--footer .brand__logo { width: 27px; height: 27px; }
.brand--footer .brand__name { font-size: 12px; }
.brand--footer .brand__name span { font-size: 9px; }
.site-footer .footer-source { color: var(--muted); }
.site-footer .footer-source:hover { color: var(--text); }
.overlay { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: #050609c9; backdrop-filter: blur(5px); animation: fade-in .18s ease both; }
.modal { position: relative; width: min(880px, 100%); max-height: min(91vh, 940px); overflow: auto; padding: 27px; border: 1px solid var(--line-strong); border-radius: 9px; background: #14171c; box-shadow: 0 20px 70px #0009; animation: modal-in .24s cubic-bezier(.2,.7,.2,1) both; scrollbar-color: #414a57 transparent; scrollbar-width: thin; }
.modal--publish { width: min(760px, 100%); padding: 25px 27px 22px; }
.modal-close { position: absolute; z-index: 2; top: 15px; right: 15px; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--muted); transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.icon-button:hover { transform: rotate(4deg); border-color: var(--line-strong); color: var(--text); }
.icon-button .icon { width: 15px; height: 15px; }
.detail-header { display: flex; justify-content: space-between; gap: 20px; padding-right: 45px; }
.detail-header .product-kind { margin-bottom: 3px; }
.detail-header h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.045em; line-height: 1.2; }
.detail-byline { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.detail-description { max-width: 670px; margin: 13px 0 16px; color: var(--muted); font-size: 12px; }
.detail-preview-wrap { margin: 0 0 19px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-columns h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; }
.detail-copy { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.theme-facts, .plugin-facts { display: grid; gap: 8px; }
.fact-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.fact-row strong, .fact-row code { color: var(--text); font-size: 11px; font-weight: 500; text-align: right; }
.fact-row code { font-family: "JetBrains Mono", monospace; }
.palette-row { display: flex; gap: 7px; margin-top: 8px; }
.palette-row span { width: 27px; height: 27px; border: 1px solid #ffffff24; border-radius: 5px; }
.detail-help { margin-top: 2px; }
.plugin-detail-preview { max-width: 530px; margin: 17px 0 16px; border: 1px solid var(--line); border-radius: 6px; }
.plugin-detail-preview .plugin-card-preview { min-height: 175px; }
.detail-tabs { display: flex; gap: 17px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.detail-tab { position: relative; min-height: 39px; padding: 0 1px; border: 0; background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; }
.detail-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transition: transform .18s ease; }
.detail-tab:hover, .detail-tab.is-active { color: var(--text); }
.detail-tab.is-active::after { transform: scaleX(1); }
.detail-tab-panel { min-height: 155px; padding: 15px 0; }
.code-block { max-height: 250px; overflow: auto; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #101217; color: #d0d7e2; font: 11px/1.7 "JetBrains Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-note, .security-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.security-note { padding: 10px 11px; border-left: 2px solid #627d9f; background: #181d24; }
.detail-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 13px; border-top: 1px solid var(--line); }
.detail-bottom p { max-width: 460px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.publish-heading { padding-right: 38px; }
.publish-heading h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.publish-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.publish-local-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 19px; padding: 10px 11px; border: 1px solid #3e4b5c; border-radius: 5px; background: #171d25; color: #c0cde0; font-size: 10px; line-height: 1.6; }
.publish-local-note .icon { width: 15px; height: 15px; margin-top: 1px; color: #8fb7ec; }
.publish-local-note strong { display: block; margin-bottom: 2px; font-weight: 650; }
#publish-form { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.field-group { display: grid; min-width: 0; gap: 6px; margin: 0; }
.field-label { color: #c4cad4; font-size: 11px; font-weight: 550; }
.field-hint { margin: 1px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.field-optional { margin-left: 4px; color: var(--quiet); font-weight: 400; }
.text-input { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #101318; color: var(--text); font-size: 11px; transition: border-color .16s ease, background .16s ease; }
.text-input::placeholder { color: #67717e; }
.text-input:hover { border-color: var(--line-strong); }
.text-input:focus { border-color: #4d83cb; background: #121720; }
.text-area { min-height: 76px; resize: vertical; }
.segmented { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #101318; }
.segment { min-height: 29px; flex: 1; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.segment:hover { color: var(--text); }
.segment.is-active { background: #252c36; color: #e7eef8; box-shadow: 0 1px 2px #0003; }
.segmented--wrap .segment { min-width: 80px; }
.color-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.color-grid .field-label { color: var(--muted); font-size: 9px; }
.color-value { min-height: 34px; padding-inline: 8px; font: 10px "JetBrains Mono", monospace; text-transform: uppercase; }
.publish-theme-preview { overflow: hidden; }
.publish-theme-preview .launcher-preview--form { height: 218px; }
.plugin-fields { display: grid; gap: 15px; }
.source-input { min-height: 135px; font: 10px/1.6 "JetBrains Mono", monospace; tab-size: 2; }
.license-input { min-height: 115px; font: 9px/1.5 "JetBrains Mono", monospace; }
.permission-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.permission-item { display: flex; min-height: 43px; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #101318; cursor: pointer; }
.permission-item input, .check-row input { width: 15px; height: 15px; flex: 0 0 auto; appearance: none; border: 1px solid #596371; border-radius: 3px; background: #14181e; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.permission-item input:checked, .check-row input:checked { border-color: var(--accent); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 11px; }
.permission-item span { display: grid; min-width: 0; gap: 2px; }
.permission-item code { overflow: hidden; color: #cbd9ee; font: 9px "JetBrains Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.permission-item small { color: var(--quiet); font-size: 9px; }
.upload-zone { display: flex; min-height: 66px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed #424b57; border-radius: 5px; background: #111419; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.upload-zone:hover { border-color: #5d82b1; background: #151a22; }
.upload-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.upload-zone__icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: #9fbfea; }
.upload-zone__icon .icon { width: 16px; height: 16px; }
.upload-zone strong { display: block; color: #d6dce6; font-size: 10px; font-weight: 550; }
.upload-zone small { display: block; margin-top: 2px; color: var(--quiet); font-size: 9px; }
.media-list { display: flex; flex-wrap: wrap; gap: 7px; }
.media-item { position: relative; display: flex; max-width: 185px; align-items: center; gap: 7px; overflow: hidden; padding: 5px 26px 5px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--muted); font-size: 9px; animation: media-in .2s ease both; }
.media-item img, .media-item video { display: block; width: 29px; height: 24px; flex: 0 0 auto; border-radius: 3px; object-fit: cover; }
.media-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item button { position: absolute; top: 3px; right: 3px; display: grid; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 3px; background: transparent; color: var(--quiet); }
.media-item button:hover { background: #313842; color: var(--text); }
.media-item button .icon { width: 12px; height: 12px; }
.moderation-box { border: 1px solid var(--line); border-radius: 5px; background: #111419; }
.moderation-toggle { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; background: transparent; color: #c8ced8; text-align: left; font-size: 10px; }
.moderation-toggle .icon { width: 14px; height: 14px; color: var(--quiet); transition: transform .18s ease; }
.moderation-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.moderation-content { display: grid; gap: 10px; padding: 0 10px 11px; animation: enter-up .18s ease both; }
.moderation-content p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.moderation-content .field-group { max-width: 330px; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; cursor: pointer; }
.form-error { margin: 0; padding: 9px 10px; border: 1px solid #704141; border-radius: 5px; background: #291a1c; color: #ffb4b4; font-size: 11px; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.form-actions .button { min-height: 37px; }
.toast { position: fixed; z-index: 70; right: 24px; bottom: 22px; max-width: min(420px, calc(100% - 32px)); padding: 11px 14px; border: 1px solid #3b4654; border-radius: 6px; background: #202630; color: #e6ebf3; box-shadow: 0 8px 25px #0005; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
@keyframes enter-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bookmark-pop { 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes media-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1020px) {
  .topbar { gap: 22px; }
  .top-nav { gap: 17px; }
  .search-box { width: min(250px, 22vw); }
  .catalog-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .page-shell { width: min(var(--shell), calc(100% - 44px)); }
}
@media (max-width: 800px) {
  .topbar { min-height: 62px; gap: 17px; padding-inline: 18px; flex-wrap: wrap; }
  .top-nav { height: 44px; order: 3; width: 100%; gap: 23px; overflow-x: auto; margin: -2px 0 0; }
  .nav-link { min-height: 40px; white-space: nowrap; }
  .top-actions { gap: 8px; }
  .search-box { width: min(270px, 37vw); min-width: 145px; }
  .topbar .button { min-height: 35px; }
  .page-shell { width: calc(100% - 36px); }
  .page-heading { min-height: 122px; padding-top: 22px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { padding: 0; }
  .sidebar-section h2, .sidebar-section--separated, .sidebar-note { display: none; }
  .side-nav { display: flex; gap: 5px; overflow-x: auto; padding: 2px 0 5px; }
  .side-link { min-width: max-content; min-height: 34px; padding-inline: 9px; border: 1px solid transparent; }
  .side-link.is-active { border-color: #2c3c50; }
  .product-grid { gap: 13px; }
}
@media (max-width: 560px) {
  .topbar { gap: 11px; padding-inline: 13px; }
  .brand { gap: 7px; }
  .brand__logo { width: 30px; height: 30px; }
  .brand__name { font-size: 12px; }
  .top-actions { margin-left: auto; }
  .search-box { width: 37px; min-width: 37px; padding: 0 10px; justify-content: center; }
  .search-box input, .search-box kbd { display: none; }
  .search-box:focus-within { position: absolute; right: 116px; left: 13px; z-index: 2; width: auto; justify-content: flex-start; }
  .search-box:focus-within input { display: block; }
  .topbar .button { width: 36px; min-width: 36px; padding: 0; }
  .topbar .button span:not(.icon) { display: none; }
  .top-nav { gap: 18px; }
  .page-shell { width: calc(100% - 26px); }
  .page-heading { min-height: 105px; align-items: flex-start; padding: 21px 0 17px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { max-width: 280px; font-size: 11px; }
  .project-link { display: none; }
  .results-heading { align-items: flex-start; }
  .results-heading h2 { font-size: 16px; }
  .results-heading p { max-width: 230px; font-size: 10px; }
  .results-tools { flex-direction: column-reverse; align-items: flex-end; gap: 5px; }
  .result-count { font-size: 9px; }
  .sort-trigger { height: 29px; font-size: 10px; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-cover { aspect-ratio: 1.88; }
  .launcher-window { grid-template-columns: minmax(83px, 24%) minmax(0, 1fr); }
  .product-card__body { padding: 12px; }
  .product-description { min-height: unset; }
  .catalog-info { margin-top: 25px; }
  .site-footer { min-height: 60px; padding-inline: 13px; font-size: 9px; }
  .site-footer > span { display: none; }
  .overlay { padding: 8px; }
  .modal, .modal--publish { max-height: 96vh; padding: 21px 15px 16px; border-radius: 7px; }
  .detail-header h2 { font-size: 22px; }
  .detail-columns { grid-template-columns: 1fr; gap: 17px; }
  .launcher-preview--large { height: 280px; }
  .launcher-preview--large .launcher-window { grid-template-columns: 102px minmax(0, 1fr); }
  .launcher-preview--large .launcher-sidebar { padding: 13px 8px 8px; }
  .launcher-preview--large .launcher-nav-item { min-height: 29px; gap: 5px; padding-inline: 5px; font-size: 8px; }
  .launcher-preview--large .launcher-nav-item > svg { width: 12px; height: 12px; }
  .launcher-preview--large .launcher-brand { margin-bottom: 14px; font-size: 10px; }
  .launcher-preview--large .launcher-content { padding: 14px 10px; }
  .launcher-preview--large .launcher-page-head h3 { font-size: 17px; }
  .launcher-preview--large .launcher-page-head p { font-size: 8px; }
  .launcher-preview--large .launcher-controls { flex-wrap: wrap; margin-block: 13px; }
  .launcher-preview--large .launcher-controls > span { min-width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permission-list { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .publish-local-note { font-size: 9px; }
  .modal-close { top: 11px; right: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:root {
  color-scheme: light;
  --page: #f3f2eb;
  --surface: #fbfaf6;
  --surface-raised: #e9e9df;
  --surface-soft: #e9e9df;
  --line: #d4d8cf;
  --line-strong: #879188;
  --text: #202923;
  --muted: #606c63;
  --quiet: #879188;
  --accent: #66845d;
  --accent-hover: #536e4c;
  --danger: #9c4c43;
  --shell: 1200px;
}
html, body { background: var(--page); color: var(--text); }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(14px); }
.header-inner { display: flex; width: min(var(--shell), calc(100% - 64px)); min-height: 74px; align-items: center; gap: 32px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 680; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { position: relative; display: block; width: 32px; height: 32px; flex: none; overflow: hidden; }
.brand-mark img { position: absolute; top: -54%; left: -55%; width: 210%; height: 210%; max-width: none; object-fit: cover; mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"] { font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-box { width: min(290px, 24vw); min-width: 190px; height: 40px; border-color: var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); background: var(--surface); }
.search-box input { color: var(--text); }
.search-box kbd { border-color: var(--line); color: var(--quiet); }
.button { min-height: 40px; border-radius: 8px; font-weight: 620; }
.button--primary { border-color: var(--text); background: var(--text); color: var(--page); }
.button--primary:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.button--quiet { border-color: var(--line); background: var(--surface); color: var(--text); }
.button--quiet:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.page-shell { width: min(var(--shell), calc(100% - 64px)); }
.page-heading { min-height: 152px; padding: 30px 0 26px; }
.page-heading-brand { display: flex; align-items: center; gap: 16px; }
.store-mark { display: block; width: 48px; height: 48px; flex: none; object-fit: contain; background: transparent; border: 0; }
.page-heading h1 { margin-bottom: 7px; color: var(--text); font-size: clamp(28px, 3.2vw, 38px); font-weight: 640; letter-spacing: -.055em; }
.page-heading p { color: var(--muted); font-size: 13px; }
.project-link { color: var(--muted); }
.project-link:hover { color: var(--accent); }
.catalog-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 30px; padding-bottom: 76px; }
.sidebar-section h2 { color: var(--muted); font-size: 12px; }
.side-link { border-radius: 7px; color: var(--muted); transition: color .18s ease, background .18s ease, transform .18s ease; }
.side-link .icon { color: var(--muted); }
.side-link:hover { background: var(--surface-raised); color: var(--text); transform: translateX(2px); }
.side-link.is-active { background: var(--surface-raised); color: var(--text); }
.side-link.is-active .icon { color: var(--accent); }
.sidebar-section--separated { border-color: var(--line); }
.sidebar-note { border-color: var(--line); border-radius: 8px; background: var(--surface); }
.sidebar-note strong { color: var(--text); }
.results-heading h2 { color: var(--text); font-size: 22px; }
.results-heading p { color: var(--muted); }
.result-count { color: var(--muted); }
.sort-trigger { border-radius: 8px; background: var(--surface); color: var(--muted); }
.sort-trigger:hover, .sort-trigger[aria-expanded="true"] { border-color: var(--line-strong); color: var(--text); }
.sort-menu { border-color: var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 25px rgb(32 41 35 / 12%); }
.sort-menu button:hover, .sort-menu button.is-active { background: var(--surface-raised); color: var(--text); }
.filter-chip { border-color: var(--line); color: var(--accent); }
.filter-clear { color: var(--muted); }
.product-grid { gap: 18px; }
.product-card { border-color: var(--line); border-radius: 9px; background: var(--surface); box-shadow: none; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.product-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 12px 28px rgb(32 41 35 / 9%); }
.card-cover { border-color: var(--line); background: var(--surface-raised); }
.product-card__body { padding: 16px 17px 15px; }
.product-kind { color: var(--muted); }
.product-card h3 { color: var(--text); }
.product-description { color: var(--muted); }
.product-card__meta { border-color: var(--line); color: var(--muted); }
.card-open-link { color: var(--accent); }
.card-open-link:hover { color: var(--accent-hover); }
.save-button { border-radius: 7px; color: var(--muted); }
.save-button:hover { border-color: var(--line); background: var(--surface-raised); color: var(--text); }
.save-button.is-saved { color: var(--accent); }
.empty-state { border-color: var(--line); border-radius: 9px; background: var(--surface); }
.catalog-info { border-color: var(--line); }
.catalog-info h3 { color: var(--text); }
.catalog-info p { color: var(--muted); }
.site-footer { min-height: 74px; flex-wrap: wrap; padding: 12px max(32px, calc((100% - var(--shell)) / 2)); border-color: var(--line); background: var(--surface); color: var(--muted); }
.brand--footer { color: var(--text); }
.footer-project-nav { display: flex; gap: 20px; margin-left: auto; }
.footer-project-nav a, .site-footer .footer-source { color: var(--muted); transition: color .18s ease; }
.footer-project-nav a:hover, .site-footer .footer-source:hover { color: var(--text); }
.site-footer .footer-source { display: inline-flex; align-items: center; gap: 7px; }
.site-footer .footer-source .icon { width: 14px; height: 14px; }
.overlay { background: rgb(32 41 35 / 48%); backdrop-filter: none; }
.modal { border-color: var(--line); border-radius: 11px; background: var(--surface); color: var(--text); box-shadow: 0 8px 28px rgb(32 41 35 / 14%); }
.modal-close { border-color: var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); }
.detail-header h2, .publish-heading h2 { color: var(--text); }
.detail-byline, .detail-description, .detail-copy, .fact-row { color: var(--muted); }
.detail-columns, .detail-bottom { border-color: var(--line); }
.security-note { border-left-color: var(--accent); background: var(--surface-raised); color: var(--muted); }
.code-block { border-color: var(--line); background: #202923; color: #fbfaf6; }
.publish-local-note { border-color: var(--line); border-radius: 7px; background: var(--surface-raised); color: var(--muted); }
.publish-local-note .icon { color: var(--accent); }
.field-label { color: var(--text); }
.text-input { border-color: var(--line); border-radius: 7px; background: var(--surface); color: var(--text); color-scheme: light; }
.text-input::placeholder { color: var(--quiet); }
.text-input:focus { border-color: var(--accent); background: var(--surface); }
.segmented { border-color: var(--line); border-radius: 8px; background: var(--surface-raised); }
.segment { border-radius: 6px; color: var(--muted); }
.segment.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(32 41 35 / 10%); }
.permission-item { border-color: var(--line); border-radius: 7px; background: var(--surface); }
.permission-item code { color: var(--text); }
.permission-item small { color: var(--muted); }
.permission-item input, .check-row input { border-color: var(--line-strong); background-color: var(--surface); }
.permission-item input:checked, .check-row input:checked { border-color: var(--accent); background-color: var(--accent); }
.upload-zone, .moderation-box { border-color: var(--line); border-radius: 8px; background: var(--surface); }
.upload-zone:hover { border-color: var(--accent); background: var(--surface-raised); }
.upload-zone__icon { border-color: var(--line); color: var(--accent); }
.upload-zone strong, .moderation-toggle { color: var(--text); }
.upload-zone small, .moderation-content p { color: var(--muted); }
.moderation-content .field-group { color: var(--text); }
.form-error { border-color: #d4b3aa; border-radius: 7px; background: #f2e6e1; color: #733e34; }
.toast { border-color: var(--line); border-radius: 8px; background: var(--ink); color: var(--page); box-shadow: 0 8px 22px rgb(32 41 35 / 16%); }
@media (max-width: 1020px) {
  .header-inner, .page-shell { width: min(var(--shell), calc(100% - 44px)); }
  .header-inner { gap: 18px; }
  .main-nav { gap: 17px; }
  .search-box { width: min(250px, 21vw); min-width: 170px; }
  .catalog-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 800px) {
  .header-inner { min-height: 66px; }
  .main-nav { display: none; }
  .page-shell { width: calc(100% - 36px); }
  .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
  .sidebar-section { flex: 0 0 auto; }
  .sidebar-section--separated { display: flex; flex: 0 0 auto; gap: 5px; margin: 0; padding: 0; border: 0; }
  .sidebar-section--separated h2 { display: none; }
  .sidebar-note { display: none; }
  .site-footer { padding-inline: 18px; }
}
@media (max-width: 560px) {
  .header-inner { width: calc(100% - 28px); gap: 10px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-actions { gap: 7px; }
  .search-box { position: static; width: 38px; min-width: 38px; padding: 0 10px; justify-content: center; }
  .search-box input, .search-box kbd { display: none; }
  .search-box:focus-within { position: absolute; right: 102px; left: 14px; z-index: 3; width: auto; justify-content: flex-start; }
  .search-box:focus-within input { display: block; }
  .header-actions .button { width: 38px; min-width: 38px; padding: 0; }
  .header-actions .button span:not(.icon) { display: none; }
  .page-shell { width: calc(100% - 28px); }
  .page-heading { min-height: 120px; align-items: flex-start; padding-block: 23px 18px; }
  .page-heading-brand { align-items: center; gap: 11px; }
  .store-mark { width: 38px; height: 38px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { max-width: 250px; font-size: 11px; }
  .project-link { display: none; }
  .site-footer { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .footer-project-nav { order: 3; width: 100%; margin-left: 0; }
  .site-footer .footer-source { margin-left: auto; }
  .site-footer .legal-links { order: 4; }
  .detail-columns { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.card-cover > .theme-palette-preview { width: 100%; height: 100%; }
.theme-palette-preview { display: grid; min-width: 0; min-height: 176px; align-content: center; gap: 14px; overflow: hidden; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--theme-strong) 16%, transparent); background: var(--theme-bg); color: var(--theme-strong); }
.theme-palette-preview--large { min-height: clamp(280px, 39vw, 430px); border-radius: 7px; }
.theme-palette-preview--form { min-height: 218px; border-radius: 6px; }
.theme-palette-heading { color: var(--theme-strong); font-size: 12px; font-weight: 600; }
.theme-palette-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.theme-palette-swatch { display: grid; min-width: 0; gap: 6px; }
.theme-palette-swatch i { display: block; min-width: 0; min-height: 55px; border: 1px solid color-mix(in srgb, var(--theme-strong) 20%, transparent); border-radius: 5px; }
.theme-palette-swatch span { overflow: hidden; color: var(--theme-strong); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.theme-palette-preview--large .theme-palette-heading { font-size: 15px; }
.theme-palette-preview--large .theme-palette-swatches { gap: 14px; }
.theme-palette-preview--large .theme-palette-swatch i { min-height: 105px; }
.theme-palette-preview--large .theme-palette-swatch span { font-size: 10px; }
.theme-palette-preview--form .theme-palette-swatch i { min-height: 70px; }
@media (max-width: 560px) {
  .theme-palette-preview { gap: 10px; padding: 13px; }
  .theme-palette-swatches { gap: 6px; }
  .theme-palette-swatch i { min-height: 42px; }
  .theme-palette-swatch span { font-size: 7px; }
}
