/* The Aether Marketplace website. Its colours come from themes.js: the same five themes as Aether's download page. */
@font-face { font-family: 'Pixelify'; src: url(fonts/pixelify-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --bg: #0c0e16;
  --panel: #131724;
  --elevated: #1a1f30;
  --hover: #222840;
  --border: #272e45;
  --text: #e8eaf4;
  --muted: #a3a9bf;
  --accent: #8f7dff;
  --accent2: #3fd0c9;
  --accent-text: #0c0a1c;
  --code-bg: #0f121d;
  --glow: rgba(143, 125, 255, 0.22);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* code colours in the editor picture */
  --c-key: #c792ea;
  --c-str: #a5e075;
  --c-num: #f78c6c;
  --c-com: #7a86a8;
  --c-fn: #82aaff;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --elevated: #f0f2f8;
  --hover: #e6e9f3;
  --border: #d9dde9;
  --text: #1b1f2e;
  --muted: #555d75;
  --accent: #5b45e0;
  --accent2: #0d7d78;
  --accent-text: #ffffff;
  --code-bg: #f2f4fa;
  --glow: rgba(91, 69, 224, 0.14);
  --shadow: 0 10px 30px rgba(27, 31, 46, 0.1);
  --c-key: #8a3fc4;
  --c-str: #3f7a1c;
  --c-num: #b04a09;
  --c-com: #6b7488;
  --c-fn: #2457c5;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--panel); padding: 6px 10px; }

/* ---- the bar at the top */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font: 600 21px 'Pixelify', var(--sans); }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--hover); text-decoration: none; }
@media (max-width: 640px) {
  .nav .hide-small { display: none; }
  .nav a { padding: 6px 8px; }
  .top .wrap { gap: 8px; }
}
@media (max-width: 440px) {
  .brand span { display: none; } /* the logo alone, so the links fit */
}
@media (max-width: 380px) {
  .nav { gap: 0; }
  .nav a { padding: 6px 6px; font-size: 14px; }
  .brand { font-size: 16px; }
}

/* ---- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }

footer { padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }

/* ---- the marketplace */
.page-head { padding: 44px 0 18px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.01em; }
.page-head p { margin: 0; color: var(--muted); max-width: 44em; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 14px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 0 12px; }
.search:focus-within { border-color: var(--accent); }
.search .icon { width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 16px var(--sans); padding: 11px 0; }
.search input::placeholder { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 5px 12px; font: 14px var(--sans); cursor: pointer; }
.chip:hover { color: var(--text); background: var(--hover); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip .count { opacity: 0.75; font-size: 12px; }
.ext { display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.ext:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.ext .head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ext .head > div { min-width: 0; }
.ext .badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); flex: none; }
.ext h3 { margin: 0; font-size: 17px; }
.ext .by { color: var(--muted); font-size: 13px; }
.ext p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.ext .tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; color: var(--muted); background: var(--elevated); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.notice { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; color: var(--muted); }

/* ---- one extension */
.ext-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 36px 0 20px; }
.ext-head .badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); flex: none; }
.ext-head .badge .icon { width: 30px; height: 30px; }
.ext-head h1 { margin: 0 0 4px; font-size: clamp(26px, 5vw, 36px); }
.ext-head .meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ext-head > div { flex: 1 1 260px; min-width: 0; }
.install { margin: 0 0 26px; }
.install kbd { background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 15px; }
.back .icon { width: 16px; height: 16px; }

/* a README, from Markdown */
.md { max-width: 820px; padding-bottom: 30px; }
.md h1, .md h2, .md h3, .md h4 { line-height: 1.25; margin: 1.6em 0 0.5em; }
.md h1 { font-size: 28px; } .md h2 { font-size: 23px; } .md h3 { font-size: 19px; }
.md > :first-child { margin-top: 0; }
.md p, .md ul, .md ol, .md blockquote, .md pre, .md .table { margin: 0 0 1em; }
.md ul, .md ol { padding-left: 1.4em; }
.md li { margin: 0.25em 0; }
.md code { background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.35em; }
.md pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
.md pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.md blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }
.md img { border-radius: 8px; }
.md .table { overflow-x: auto; }
.md table { border-collapse: collapse; min-width: 50%; font-size: 15px; }
.md th, .md td { border: 1px solid var(--border); padding: 7px 12px; text-align: left; vertical-align: top; }
.md th { background: var(--elevated); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* category tabs */
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 13px; }
.cat { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 6px 4px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 15px var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.cat:hover { color: var(--text); background: var(--hover); }
.cat[aria-selected="true"] { background: var(--accent); color: var(--accent-text); }
.cat .count { font-size: 12px; font-weight: 500; opacity: .7; }
@media (max-width: 640px) { .cats { grid-template-columns: repeat(4, 1fr); } }

/* a theme's card, in the theme's own colours */
.theme-card { background: var(--t-panel); border-color: var(--t-border); color: var(--t-text); display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.theme-card:hover { border-color: var(--t-accent); }
.theme-card h3 { margin: 4px 2px 0; color: var(--t-text); font-size: 18px; }
.theme-card p { margin: 0 2px; color: var(--t-muted); font-size: 14px; }
.t-win { border-radius: 10px; overflow: hidden; border: 1px solid var(--t-border); background: var(--t-editor); }
.t-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--t-bg); border-bottom: 1px solid var(--t-border); }
.t-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--t-border); }
.t-bar i:first-child { background: var(--t-accent); }
.t-bar span { margin-left: 6px; color: var(--t-muted); font: 12px var(--mono, ui-monospace, Consolas, monospace); }
.t-code { margin: 0; padding: 10px 12px; color: var(--t-text); background: none; border: 0; font: 13px/1.55 var(--mono, ui-monospace, Consolas, monospace); overflow: hidden; }
.t-code .c { color: var(--t-comment); font-style: italic; }
.t-code .k { color: var(--t-keyword); }
.t-code .f { color: var(--t-fn); }
.t-code .s { color: var(--t-string); }
.t-code .n { color: var(--t-number); }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 0 2px; }
.t-foot .by { color: var(--t-muted); font-size: 12.5px; }
.t-btn { padding: 3px 12px; border-radius: 8px; background: var(--t-accent); color: var(--t-accentText); font-size: 13px; font-weight: 600; }

/* a theme's card is only the theme: its colours, its name */
.theme-card { position: relative; overflow: hidden; gap: 8px; padding: 22px 20px 18px; min-height: 176px; box-shadow: inset 0 3px 0 var(--t-accent); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .2s; }
.theme-card::after { content: ''; position: absolute; width: 170px; height: 170px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, var(--t-accent), transparent 68%); opacity: .22; transition: opacity .3s, transform .5s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.theme-card h3 { font-size: 21px; margin: 0; }
.theme-card:hover { transform: translateY(-5px); box-shadow: inset 0 3px 0 var(--t-accent), 0 18px 40px -18px var(--t-accent); }
.theme-card:hover::after { opacity: .42; transform: scale(1.25); }
/* a pixel theme's card: the same rules as Aether's pixel style */
@font-face { font-family: "Jersey 15"; src: url(fonts/jersey-15-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Departure Mono"; src: url(fonts/DepartureMono-Regular.woff2) format("woff2"); font-display: swap; }
.theme-card.pixel { border: 3px solid var(--t-border); border-radius: 0; box-shadow: 4px 4px 0 #000; background: repeating-conic-gradient(color-mix(in srgb, var(--t-accent) 6%, transparent) 0 25%, transparent 0 50%) 0 0 / 8px 8px, var(--t-panel); font-family: "Jersey 15", "VT323", monospace; letter-spacing: .03em; -webkit-font-smoothing: none; font-synthesis: none; }
.theme-card.pixel:hover { transform: translate(-1px, -1px); border-color: var(--t-accent); box-shadow: 5px 5px 0 #000; }
.theme-card.pixel::after { display: block; inset: 0; width: auto; height: auto; border-radius: 0; opacity: 1; transform: none; background: repeating-linear-gradient(0deg, #0000 0 2px, #00000014 2px 3px); transition: none; }
.theme-card.pixel:hover::after { opacity: 1; transform: none; }
.theme-card.pixel h3 { font-family: inherit; font-size: 23px; font-weight: 400; letter-spacing: 0; line-height: 1; text-shadow: 2px 2px 0 #000; }
.theme-card.pixel.light h3 { text-shadow: 2px 2px 0 var(--t-border); }
.theme-card.pixel p { font-size: 17px; line-height: 1.15; }
.theme-card.pixel .t-btn { border: 2px solid #000; border-radius: 0; background: var(--t-accent); color: var(--t-accentText); box-shadow: 3px 3px 0 #000; font-size: 17px; font-weight: 400; line-height: 1; padding: 4px 13px; }
.theme-card.pixel .by { font-family: "Departure Mono", monospace; font-size: 11px; letter-spacing: 0; }
/* the tabs: one highlight that slides */
.cats { position: relative; }
.cat { position: relative; z-index: 1; }
.cat[aria-selected="true"] { background: none; }
.cat-pill { position: absolute; left: 0; top: 0; border-radius: 10px; background: var(--accent); transition: transform .32s cubic-bezier(.2,.9,.2,1), width .32s cubic-bezier(.2,.9,.2,1); box-shadow: 0 6px 20px -8px var(--accent); }
/* cards flow in */
#list .card { animation: card-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(min(var(--i, 0), 12) * 34ms); }
#list .card.ext:not(.theme-card) { transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .22s; }
#list .card.ext:not(.theme-card):hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 36px -20px var(--accent); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { #list .card { animation: none; } .cat-pill, .theme-card, .theme-card::after { transition: none; } }

/* ---- the theme menu, as on the download page */
.theme-pick { position: relative; flex: none; }
.theme-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 15px var(--sans); cursor: pointer; transition: border-color .2s; }
.theme-btn:hover { border-color: var(--accent); }
.theme-btn svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.theme-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.theme-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 18%, transparent); }
.theme-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 440px; max-width: calc(100vw - 32px); padding: 8px 12px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); box-shadow: 0 30px 70px -24px #000; z-index: 20; }
.theme-menu[hidden] { display: none; }
.tm-h { margin: 8px 4px 6px; font: 600 15px 'Pixelify', var(--sans); color: var(--accent2); letter-spacing: .04em; }
.tm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.tm-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text); font: 600 14.5px var(--sans); text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.tm-row.px { font-family: 'Jersey 15', 'Pixelify', monospace; font-size: 18px; font-weight: 400; letter-spacing: .03em; }
.tm-row:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.tm-row[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tm-sw { flex: none; display: flex; align-items: flex-end; gap: 2px; width: 34px; height: 26px; padding: 3px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); }
.tm-sw i { flex: 1; height: 100%; border-radius: 2px; } .tm-sw i:nth-child(2) { height: 72%; } .tm-sw i:nth-child(3) { height: 46%; }
.tm-row.px .tm-sw, .tm-row.px .tm-sw i { border-radius: 0; }
@media (max-width: 640px) {
  .theme-btn span { display: none; }
  .brand { flex: none; }
  .tm-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the pixel themes: the whole site turns pixel, as Aether does */
:root[data-style="pixel"] { --sans: 'Jersey 15', 'VT323', monospace; --mono: 'Departure Mono', ui-monospace, monospace; }
[data-style="pixel"] *, [data-style="pixel"] *::before, [data-style="pixel"] *::after { border-radius: 0 !important; font-synthesis: none; }
[data-style="pixel"] body { font-size: 20px; letter-spacing: .03em; -webkit-font-smoothing: none; }
[data-style="pixel"] body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: repeating-conic-gradient(color-mix(in srgb, var(--accent) 6%, transparent) 0 25%, transparent 0 50%) 0 0 / 8px 8px; }
[data-style="pixel"] body::after { content: ''; position: fixed; inset: 0; z-index: 300; pointer-events: none; background: repeating-linear-gradient(0deg, #0000 0 2px, #00000014 2px 3px); }
[data-style="pixel"] .brand { font: 400 26px 'Jersey 15', monospace; }
[data-style="pixel"] .brand img { content: url(logo-pixel.png); }
[data-style="pixel"] :is(h1, h2, h3) { font-weight: 400; letter-spacing: 0; line-height: 1.05; text-shadow: 3px 3px 0 #000; }
[data-style="pixel"][data-theme="light"] :is(h1, h2, h3) { text-shadow: none; }
[data-style="pixel"] .page-head h1, [data-style="pixel"] .ext-head h1 { font-size: clamp(40px, 7vw, 60px); }
[data-style="pixel"] :is(.nav a, .theme-btn, .cat, .tm-row) { font-size: 20px; font-weight: 400; }
[data-style="pixel"] .tm-h { font: 400 18px 'Jersey 15', monospace; }
[data-style="pixel"] .search input { font: 20px var(--sans); }
[data-style="pixel"] :is(.small, .ext .by, .tag, .meta, .cat .count, .chip .count, kbd, footer) { font-family: 'Departure Mono', monospace; font-size: 12px; letter-spacing: 0; }
[data-style="pixel"] .ext h3 { font-size: 23px; }
[data-style="pixel"] .ext p, [data-style="pixel"] .notice { font-size: 19px; line-height: 1.25; }
[data-style="pixel"] .top { background: var(--panel); backdrop-filter: none; border-bottom: 3px solid var(--border); }
[data-style="pixel"] :is(.card, .search, .cats, .notice, .theme-menu) { border: 3px solid var(--border); box-shadow: 4px 4px 0 #000; }
[data-style="pixel"] .notice { border-left-color: var(--accent); }
[data-style="pixel"] :is(.theme-btn, .tag, .badge) { border: 2px solid var(--border); box-shadow: 2px 2px 0 #000; }
[data-style="pixel"] .cat-pill { box-shadow: 2px 2px 0 #000; transition-timing-function: steps(6, end); }
[data-style="pixel"] .tm-row[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: #000; box-shadow: 2px 2px 0 #000; }
[data-style="pixel"] .tm-sw { border: 2px solid #000; }
[data-style="pixel"] #list .card.ext:not(.theme-card):hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
[data-style="pixel"] svg { shape-rendering: crispEdges; }

/* ---- a theme's picture on its page: Aether's window in the theme's colours */
.preview { margin: 0 0 22px; padding: 0; border: 0; }
.pv-win { overflow: hidden; border-radius: 12px; border: 1px solid var(--t-border); background: var(--t-bg); color: var(--t-text); box-shadow: 0 30px 60px -30px #000; font: 13px/1.4 var(--sans); }
.pv-title { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--t-bg); border-bottom: 1px solid var(--t-border); }
.pv-title b { font-size: 13px; }
.pv-search { flex: 0 1 300px; margin: 0 auto; padding: 3px 10px; border-radius: 7px; border: 1px solid var(--t-border); background: var(--t-panel); color: var(--t-muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.pv-title i { width: 10px; height: 10px; border-radius: 50%; background: var(--t-border); } .pv-title i:last-child { background: var(--t-accent); }
.pv-body { display: grid; grid-template-columns: 44px 170px minmax(0, 1fr); min-height: 230px; }
.pv-act { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; background: var(--t-panel); border-right: 1px solid var(--t-border); }
.pv-act i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--t-muted); opacity: .7; } .pv-act i.on { border-color: var(--t-accent); background: color-mix(in srgb, var(--t-accent) 30%, transparent); opacity: 1; }
.pv-side { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; background: var(--t-panel); border-right: 1px solid var(--t-border); color: var(--t-muted); }
.pv-side b { margin: 0 4px 6px; color: var(--t-text); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pv-side span { padding: 3px 6px; border-radius: 6px; } .pv-side span.on { background: color-mix(in srgb, var(--t-accent) 22%, transparent); color: var(--t-text); }
.pv-main { display: flex; flex-direction: column; min-width: 0; background: var(--t-editor); }
.pv-tabs { display: flex; background: var(--t-panel); border-bottom: 1px solid var(--t-border); }
.pv-tabs span { padding: 7px 14px; color: var(--t-muted); border-right: 1px solid var(--t-border); } .pv-tabs span.on { background: var(--t-editor); color: var(--t-text); box-shadow: inset 0 2px 0 var(--t-accent); }
.pv-code { margin: 0; padding: 12px 14px; background: none; border: 0; color: var(--t-text); font: 13.5px/1.7 var(--mono); white-space: pre; overflow: hidden; }
.pv-code .ln { display: inline-block; width: 2.2em; color: var(--t-muted); opacity: .6; user-select: none; }
.pv-code .k { color: var(--t-keyword); } .pv-code .s { color: var(--t-string); } .pv-code .f { color: var(--t-fn); } .pv-code .n { color: var(--t-number); } .pv-code .c { color: var(--t-comment); font-style: italic; }
.pv-status { display: flex; gap: 16px; padding: 4px 12px; background: var(--t-accent); color: var(--t-accentText); font-size: 12px; font-weight: 600; } .pv-status span:last-child { margin-left: auto; }
.preview figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .pv-body { grid-template-columns: 36px minmax(0, 1fr); } .pv-side { display: none; } .pv-search { display: none; } }
/* a pixel theme's picture is pixel too, as the theme makes Aether */
.preview.pixel .pv-win { border: 3px solid var(--t-border); border-radius: 0; box-shadow: 5px 5px 0 #000; font-family: 'Jersey 15', monospace; font-size: 17px; letter-spacing: .03em; -webkit-font-smoothing: none; }
.preview.pixel .pv-win * { border-radius: 0; }
.preview.pixel .pv-code { font: 13px/1.75 'Departure Mono', monospace; }
.preview.pixel .pv-code .c { font-style: normal; }
.preview.pixel :is(.pv-title b, .pv-search, .pv-side b, .pv-status) { font-size: 16px; font-weight: 400; letter-spacing: .03em; text-transform: none; }
.preview.pixel .pv-title img { image-rendering: auto; }
