/* Okra: anthracite background. Spring green from the logo (#5fe38c) leads;
   prickly pear pink marks highlights; Bahama ocean blue marks categories and secondary details. */
:root {
  --bg: #2b2f33;
  --panel: #353a3f;
  --panel-2: #3d4348;
  --hover: #344840;
  --deep: #1f2326;
  --text: #dde1e3;
  --bright: #ffffff;
  --muted: #b4bbc1;
  --dim: #8d949a;
  --link: #5fe38c;
  --chip: #2f4a3d;
  --line: rgba(255, 255, 255, .12);
  --buy-1: #74e99c;
  --buy-2: #46cf74;
  --shu: #ff5c9a;
  --okra: #5fe38c;
  --ok: #5fe38c;
  --warn: #ffc266;
  --care: #ff7a66;
  --font-body: "IBM Plex Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-round: "M PLUS Rounded 1c", "IBM Plex Sans JP", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 16px;
  --r-s: 10px;
  --shadow: 0 1px 0 rgba(52, 57, 44, .06), 0 6px 18px -8px rgba(52, 57, 44, .18);
  --pink: #ff5c9a;
  --ocean: #1fc3d6;
  --on-accent: #10261a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(rgba(95, 227, 140, .07) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  font: 15px/1.7 var(--font-body);
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--bright); line-height: 1.3; font-family: var(--font-round); font-weight: 800; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--okra); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-size: .9em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: .5rem 1rem; z-index: 10; border-radius: var(--r-s); }
.skip:focus { left: 1rem; }
.wrap { width: min(1100px, 100% - 2rem); margin-inline: auto; }

/* Header */
header.site { background: var(--bg); border-bottom: 2px solid var(--pink); }
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-round); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; color: var(--link); }
.brand:hover { text-decoration: none; color: var(--link); }
.brand img { display: block; height: 44px; width: auto; }
.brand.small img { height: 32px; }
.okra { display: block; width: 100%; height: 100%; }
.mainnav { display: flex; gap: .3rem; margin-right: auto; }
.mainnav a { color: var(--text); font-size: .92rem; font-weight: 500; padding: .35rem .85rem; border-radius: 999px; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--link); background: var(--chip); text-decoration: none; }
.lang { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem; background: var(--panel); }

/* Store sub-nav with search */
.storenav { display: flex; align-items: center; gap: 1rem; margin: 1.1rem 0 1.4rem; padding: .35rem .4rem .35rem .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.storenav-links { display: flex; gap: .2rem; overflow-x: auto; margin-right: auto; }
.storenav-links a { color: var(--text); font-size: .88rem; font-weight: 500; padding: .4rem .9rem; border-radius: 999px; white-space: nowrap; }
.storenav-links a:hover { background: var(--chip); color: var(--link); text-decoration: none; }
.search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.search input { width: 15rem; max-width: 46vw; border: 0; background: transparent; color: var(--bright); padding: .4rem .4rem .4rem 1rem; font: inherit; font-size: .88rem; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--okra); box-shadow: 0 0 0 3px rgba(95, 227, 140, .2); }
.search button { display: grid; place-items: center; width: 32px; height: 32px; margin: 2px; border: 0; border-radius: 50%; background: var(--okra); color: var(--on-accent); cursor: pointer; }
.search button:hover { background: var(--link); }

/* Review stamp, in the pink highlight colour */
.stamp { display: inline-grid; place-items: center; align-content: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--shu); color: var(--shu); transform: rotate(-8deg); flex: none; background: var(--panel); box-shadow: inset 0 0 0 3px var(--panel), inset 0 0 0 4px var(--shu); }
.stamp-mark { width: 30px; height: 30px; }
.stamp-date { font-family: var(--font-mono); font-size: .55rem; letter-spacing: -.02em; line-height: 1.4; }
.stamp.sm { width: 44px; height: 44px; box-shadow: none; }
.stamp.sm .stamp-mark { width: 20px; height: 20px; }
.stamp.sm .stamp-date { font-size: .48rem; }

/* Generated capsule banner: bright, soft colors */
.cap { position: relative; overflow: hidden; display: block; aspect-ratio: 460 / 215; border-radius: var(--r-s); background: #cfe3b6; isolation: isolate; }
.cap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap:not(:has(img)) {
  background:
    radial-gradient(110% 130% at 100% 0, hsl(var(--h) 75% 72%), transparent 62%),
    radial-gradient(90% 120% at 0 100%, hsl(calc(var(--h) + 50) 70% 60%), transparent 65%),
    linear-gradient(135deg, hsl(var(--h) 55% 52%), hsl(calc(var(--h) + 30) 50% 40%));
}
.cap:not(:has(img))::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .28) 1.5px, transparent 1.6px); background-size: 16px 16px; mask-image: linear-gradient(90deg, transparent, #000 75%); }
.cap-kind { position: absolute; left: 7%; top: 12%; font-family: var(--font-mono); font-size: .6em; font-weight: 500; letter-spacing: .15em; color: #fff; background: rgba(0, 0, 0, .18); padding: .1em .7em; border-radius: 999px; }
.cap-title { position: absolute; left: 7%; right: 26%; bottom: 13%; font-family: var(--font-round); font-weight: 800; font-size: 1.4em; line-height: 1.15; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.cap-mark { position: absolute; right: 5%; top: 50%; translate: 0 -50%; width: 36%; aspect-ratio: 1; opacity: .3; rotate: -12deg; --okra-skin: #fff; --okra-edge: #fff; --okra-flesh: rgba(255, 255, 255, .35); --okra-seed: #fff; }
.row-cap { width: 184px; font-size: 9px; flex: none; border-radius: var(--r-s); }
.pv-cap { font-size: 12px; }
.feat-cap { aspect-ratio: auto; height: 100%; font-size: 20px; border-radius: 0; }
.hero-cap { aspect-ratio: 16 / 9; font-size: 26px; }
.head-cap { font-size: 13px; }
.mini-cap { width: 96px; font-size: 5px; flex: none; border-radius: 6px; }

/* Chips */
.tagrow { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { display: inline-block; padding: .1rem .65rem; border-radius: 999px; background: var(--chip); color: var(--link); font-size: .75rem; line-height: 1.6; }
.chip.sample { background: #4a3d24; color: #ffd489; }
.perm-chip::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; margin-right: .35rem; background: var(--c); vertical-align: .05em; }
.perm { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-mono); font-size: .7rem; padding: 0 .55rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--text); line-height: 1.7; }
.perm::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--c); }
.l0 { --c: var(--dim); } .l1 { --c: var(--ok); } .l2 { --c: var(--warn); } .l3 { --c: var(--care); }

/* Verdict (review summary) */
.verdict { color: var(--link); font-weight: 500; }
.verdict::before { content: "✓ "; }
.tested-sum { margin-left: .6rem; font-size: .85em; }
.tested-sum.ok { color: var(--ok); } .tested-sum.warn { color: var(--warn); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1.3rem; border: 2px solid var(--link); border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--link); background: var(--panel); transition: transform .12s, box-shadow .12s; }
.btn:hover { text-decoration: none; color: var(--link); transform: translateY(-1px); box-shadow: 0 3px 0 var(--buy-2); }
.btn.buy { border-color: transparent; background: linear-gradient(180deg, var(--buy-1), var(--buy-2)); color: var(--on-accent); box-shadow: 0 3px 0 #27a862; }
.btn.buy:hover { color: var(--on-accent); box-shadow: 0 4px 0 #27a862; }
.btn.dark { border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: .85rem; font-weight: 500; padding: .35rem .95rem; }
.btn.dark:hover { box-shadow: none; background: var(--chip); }

/* Trust bar */
.checkbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .75rem 1.1rem; margin-bottom: 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font-size: .85rem; }
.checkbar-head { margin: 0; color: var(--bright); font-weight: 700; }
.checkbar ol { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; margin: 0 auto 0 0; color: var(--muted); }
.checkbar li { display: inline-flex; align-items: center; gap: .35rem; }
.checkbar .num { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--chip); font-family: var(--font-mono); font-size: .7rem; color: var(--link); font-weight: 500; }

/* Store layout */
.store { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.side { position: sticky; top: 1rem; font-size: .88rem; padding: 1rem .75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.side-group { margin-bottom: 1.1rem; }
.side h3 { margin: 0 0 .3rem .5rem; font-size: .78rem; color: var(--muted); }
.side ul { list-style: none; padding: 0; margin: 0; }
.side button, .side li a { display: block; width: 100%; text-align: left; padding: .28rem .7rem; border: 0; border-radius: 999px; background: none; color: var(--text); cursor: pointer; }
.side button:hover, .side li a:hover { background: var(--bg); color: var(--bright); text-decoration: none; }
.side button[aria-pressed="true"] { background: var(--chip); color: var(--link); font-weight: 700; }
.side-sell { display: block; margin-top: 1rem; padding: .75rem .85rem; background: var(--deep); border-radius: var(--r-s); color: #e3f2cf; font-size: .85rem; }
.side-sell:hover { color: #fff; text-decoration: none; }

.sec-head { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .8rem; font-size: 1.15rem; color: var(--bright); }
.sec-head::before { content: ""; width: .55rem; height: .55rem; border-radius: 3px; background: var(--pink); rotate: 45deg; translate: 0 -.1em; flex: none; }

/* Featured carousel */
.feat { margin-bottom: 2.25rem; }
.feat-stage { position: relative; }
.feat-slide { display: grid; grid-template-columns: 62% 1fr; height: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.feat-media { display: block; min-height: 0; }
.feat-info { display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem 1.35rem; min-width: 0; }
.feat-info h3 { margin: 0; font-size: 1.4rem; }
.feat-info h3 a { color: var(--bright); }
.feat-sum { margin: 0; color: var(--text); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pv-verdict { margin: 0; font-size: .85rem; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; margin: auto 0 0; }
.feat-seller { color: var(--muted); font-size: .85rem; }
.feat-arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 .2rem; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--link); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.feat-prev { left: -20px; } .feat-next { right: -20px; }
.feat-arrow:hover { background: var(--chip); }
.feat-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .8rem; }
.feat-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); cursor: pointer; transition: width .2s; }
.feat-dots button[aria-current="true"] { width: 24px; background: var(--pink); }

/* Category tiles */
.tiles-sec { margin-bottom: 2.25rem; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: 96px; padding: .75rem .95rem; border: 0; border-radius: var(--r); cursor: pointer; text-align: left; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 60% 62%), hsl(calc(var(--h) + 40) 55% 45%)); box-shadow: var(--shadow); transition: transform .15s; }
.tile::after { content: ""; position: absolute; right: -14px; top: -14px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.tile:hover { transform: translateY(-3px) rotate(-.6deg); }
.tile span { font-family: var(--font-round); font-size: 1.15rem; font-weight: 800; color: #fff; }
.tile small { font-size: .75rem; color: rgba(255, 255, 255, .9); }
.tile[aria-pressed="true"] { outline: 3px solid var(--link); outline-offset: 2px; }

/* Tabs + list + hover preview */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .7rem; }
.tabs button { padding: .35rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .85rem; cursor: pointer; }
.tabs button:hover { color: var(--bright); border-color: var(--okra); }
.tabs button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--on-accent); }
.count { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); font-weight: 400; }
.browse { display: grid; grid-template-columns: minmax(0, 1fr) 290px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.rows { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; align-content: start; }
.row a { display: flex; align-items: center; gap: .9rem; padding: 6px .9rem 6px 6px; border-radius: 12px; color: var(--text); transition: background .12s; }
.row a:hover, .row.is-active a { background: var(--hover); color: var(--bright); text-decoration: none; }
.row-info { display: grid; gap: .2rem; min-width: 0; padding: .2rem 0; margin-right: auto; }
.row-title { color: var(--bright); font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-perms { display: flex; flex-wrap: wrap; gap: .3rem; }
.row-sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-price { flex: none; }
.price-tag { display: inline-block; min-width: 4.2rem; padding: .2rem .7rem; text-align: center; background: var(--bg); color: var(--bright); font-size: .9rem; font-weight: 700; border-radius: 999px; }
.price-tag.free { background: var(--pink); color: var(--on-accent); }
.preview { padding: 1.1rem; background: var(--bg); border-left: 1px solid var(--line); font-size: .85rem; }
.preview h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.preview .pv-cap { margin: .75rem 0; }
.pv-sum { margin: 0 0 .6rem; }
.pv-note { margin: 0 0 .75rem; padding: .55rem .75rem; background: var(--panel); border-radius: var(--r-s); border-left: 3px solid var(--shu); color: var(--muted); font-size: .8rem; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.empty button { border: 1px solid var(--line); background: var(--panel); color: var(--link); padding: .3rem 1rem; border-radius: 999px; cursor: pointer; }

/* For authors */
.sell { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin: 3rem 0; padding: 2.25rem; background: var(--deep); color: #dbe8cc; border-radius: calc(var(--r) + 8px); }
.sell h2 { margin: 0 0 .5rem; font-size: 1.6rem; color: #fff; }
.sell a:not(.btn) { color: #5fe38c; }
.sell .btn { border-color: transparent; color: var(--on-accent); background: var(--okra); }
.sell .btn:hover { box-shadow: 0 3px 0 var(--okra); }
.terms { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.terms li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; padding: .75rem 1rem; background: rgba(255, 255, 255, .07); border-radius: var(--r-s); font-size: .9rem; }
.terms .big { font-family: var(--font-round); font-size: 1.4rem; font-weight: 800; color: #fff; }

/* Listing page */
.app-head { margin: .5rem 0 1rem; }
.crumb { margin: 0 0 .3rem; font-size: .8rem; color: var(--muted); }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--link); }
.app-title { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.app-title h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.glance { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 1.1rem; padding: 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 1.75rem; }
.glance-side { display: flex; flex-direction: column; gap: .75rem; font-size: .85rem; }
.glance-sum { margin: 0; color: var(--bright); font-size: .92rem; }
.glance-rows { margin: 0; display: grid; gap: .3rem; }
.glance-rows div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.glance-rows dt { color: var(--muted); font-size: .78rem; padding-top: .1rem; }
.glance-rows dd { margin: 0; }
.glance-rows .tested-sum { margin: 0; }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 1.75rem; align-items: start; }
.purchase { position: relative; margin: 0 0 2.5rem; padding: 1.1rem 1.35rem 2.5rem; background: var(--hover); border: 1px solid rgba(95, 227, 140, .3); border-radius: var(--r); }
.purchase h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.purchase-note { margin: 0; color: var(--muted); font-size: .8rem; max-width: 34rem; }
.purchase-action { position: absolute; right: 1.1rem; bottom: -1.25rem; display: flex; align-items: center; gap: .5rem; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.purchase-action form { display: contents; }
.purchase-price { display: grid; place-items: center; padding: 0 .4rem 0 .9rem; color: var(--bright); font-weight: 700; font-size: 1rem; }
.purchase-action .btn { padding: .5rem 1.4rem; }

.memo { display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 2rem; padding: 1.1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--shu); border-radius: var(--r); }
.memo figcaption { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.memo figcaption span:first-child { color: var(--bright); font-weight: 700; }
.memo blockquote { margin: 0; color: var(--text); }

.sec { margin-bottom: 2.25rem; }
.sec p { margin: 0 0 .9rem; }
.sec h3 { font-size: 1rem; margin: 1.4rem 0 .5rem; }
.can, .limits { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.can li, .limits li { position: relative; padding-left: 1.6rem; }
.can li::before, .limits li::before { position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; font-size: .7rem; font-weight: 700; color: var(--on-accent); }
.can li::before { content: "✓"; background: var(--ok); }
.limits li::before { content: "×"; background: var(--care); }
.steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .4rem; }
.steps li::marker { color: var(--link); font-family: var(--font-mono); font-weight: 500; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.matrix { width: 100%; border-collapse: collapse; font-size: .85rem; }
.matrix th, .matrix td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { font-weight: 500; color: var(--muted); font-size: .78rem; background: var(--bg); }
.matrix tbody th { font-weight: 700; color: var(--bright); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.res { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.res::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }
.res.pass { --c: var(--ok); } .res.partial { --c: var(--warn); } .res.fail { --c: var(--care); }
.report { font-size: .85rem; }
.report a { color: var(--muted); text-decoration: underline; }

.app-side { display: grid; gap: .8rem; }
.block { padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font-size: .85rem; }
.block h3 { margin: 0 0 .6rem; font-size: .85rem; color: var(--muted); }
.block p { margin: 0; }
.block.passed { display: flex; gap: .9rem; align-items: center; background: #45313a; border-color: rgba(255, 92, 154, .35); }
.block.passed strong { display: block; color: var(--bright); font-weight: 700; }
.rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.right { display: flex; flex-direction: column; align-items: center; padding: .5rem .2rem; background: var(--bg); border-radius: var(--r-s); font-size: .72rem; text-align: center; }
.yn { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.yn.y { color: var(--ok); } .yn.n { color: var(--care); }
.perm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.perm-list li { display: flex; gap: .5rem; align-items: center; }
.endpoints { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .6rem; color: var(--muted); font-size: .78rem; }
.endpoints code { font-family: var(--font-mono); font-size: .75rem; color: var(--bright); background: var(--bg); border-radius: 999px; padding: 0 .55rem; }
.facts { margin: 0; display: grid; gap: .35rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.mini { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mini a { display: flex; gap: .6rem; align-items: center; color: var(--text); }
.mini a:hover { color: var(--bright); text-decoration: none; }
.mini a > span { font-size: .8rem; line-height: 1.35; }
.mini-price { margin-left: auto; color: var(--muted); white-space: nowrap; }

/* Seller page */
.seller-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 2rem; margin: .5rem 0 2rem; border-radius: calc(var(--r) + 8px); background: linear-gradient(120deg, hsl(var(--h) 30% 26%), var(--panel) 70%); border: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(135deg, hsl(var(--h) 60% 60%), hsl(calc(var(--h) + 40) 55% 42%)); font-family: var(--font-round); font-size: 2.4rem; font-weight: 800; color: #fff; box-shadow: var(--shadow); rotate: -4deg; }
.eyebrow { margin: 0; font-size: .78rem; color: var(--muted); }
.seller-head h1 { margin: .1rem 0 .4rem; font-size: 2.1rem; }
.bio { max-width: 38em; margin: 0 0 .5rem; }
.seller-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; font-size: .9rem; }
.seller-stats { display: flex; gap: .5rem; margin: 0; }
.seller-stats div { min-width: 5.5rem; padding: .6rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.seller-stats dt { font-size: .75rem; color: var(--muted); }
.seller-stats dd { margin: 0; font-family: var(--font-round); font-size: 1.6rem; font-weight: 800; color: var(--link); }
.browse-sec .rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }

/* Content pages (review / legal / thanks) */
.prose { max-width: 760px; margin: .5rem auto 3rem; }
.prose .listing { padding: 2rem 2.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.prose h1 { margin-top: 0; }
.prose h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; padding-bottom: .3rem; border-bottom: 2px dotted var(--line); }
.prose dl.facts { gap: 0; }
.prose dl.facts div { display: grid; grid-template-columns: 11rem 1fr; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.prose dl.facts dd { text-align: left; }
.todo { background: #4a3d24; color: #ffd489; padding: 0 .3rem; border-radius: 4px; }

/* Footer */
footer.site { margin-top: 3rem; background: var(--deep); color: #cfdcc0; font-size: .85rem; }
footer.site .bar { flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1.1rem 0; }
footer.site .brand { margin-right: auto; color: #fff; }
footer.site a { color: #5fe38c; }
.op { color: #9fb38c; font-family: var(--font-mono); font-size: .75rem; }

/* Responsive */
@media (max-width: 1180px) {
  .feat-prev { left: .6rem; } .feat-next { right: .6rem; }
}
@media (max-width: 960px) {
  .store { grid-template-columns: 1fr; }
  .side { display: none; }
  .browse { grid-template-columns: 1fr; }
  .preview { display: none; }
  .glance, .app-body { grid-template-columns: 1fr; }
  .head-cap { display: none; }
  .sell { grid-template-columns: 1fr; }
  .seller-head { grid-template-columns: auto 1fr; }
  .seller-stats { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .mainnav { display: none; }
  .lang { margin-left: auto; }
  .storenav { flex-wrap: wrap; padding: .5rem; border-radius: var(--r); }
  .search, .search input { width: 100%; max-width: none; }
  .checkbar ol { display: none; }
  .feat-slide { grid-template-columns: 1fr; height: auto; }
  .feat-cap { aspect-ratio: 460 / 215; height: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .row-cap { width: 112px; font-size: 6px; }
  .row-sub { display: none; }
  .terms li { grid-template-columns: 1fr; gap: 0; }
  .app-title { flex-direction: column; align-items: flex-start; }
  .purchase-action { position: static; margin-top: 1rem; display: inline-flex; }
  .purchase { padding-bottom: 1.1rem; }
  .seller-head { grid-template-columns: 1fr; padding: 1.25rem; }
  .prose .listing { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Loading spinner */
#loader { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(31, 35, 38, .75); }
#loader img { width: 96px; height: 96px; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #loader img { animation-duration: 6s; } }

/* Purpose-first browsing */
.row-use { font-size: .82rem; line-height: 1.5; }
.row-use b { color: var(--pink); margin-right: .35rem; font-weight: 700; }
.use p { margin: 0 0 .6rem; }
.use b { color: var(--pink); margin-right: .35rem; }
.preview .use { margin-bottom: .75rem; }
.feat-can { font-size: .82rem; }
.feat-slide { height: auto; min-height: 340px; }
.sort { font-size: .8rem; color: var(--muted); }
.sort select { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; }
#save[aria-pressed="true"] { background: var(--pink); color: var(--on-accent); }

/* Home */
.hero { text-align: center; padding: 2.5rem 0 2rem; }
.hero h1 { margin: 0 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--okra); }
.hero p { max-width: 38rem; margin: 0 auto 1.25rem; }
.hero .search { max-width: 34rem; margin: 0 auto; border: 2px solid var(--okra); }
.hero .search input { flex: 1; width: auto; max-width: none; padding-block: .75rem; font-size: 1rem; }
.hero .search button { width: 42px; height: 42px; }
.store { scroll-margin-top: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--ocean); }
.tile::after { background: rgba(31, 195, 214, .16); }
.tile[aria-pressed="true"] { outline: 3px solid var(--okra); }
.tabs .sec-head { margin: 0 auto 0 0; }
.tabs .count { margin: 0 .5rem; }
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.kinds { margin: 0; display: grid; gap: .75rem; }
.kinds div { padding: .85rem 1rem; background: var(--panel); border-left: 4px solid var(--ocean); border-radius: var(--r-s); }
.kinds dt { font-weight: 700; color: var(--ocean); }
.kinds dd { margin: 0; }
.checks { padding-left: 1.2rem; display: grid; gap: .5rem; }
.checks li::marker { color: var(--okra); font-weight: 700; }
.checks b { color: var(--bright); margin-right: .35rem; }
.chip { color: var(--ocean); background: rgba(31, 195, 214, .14); }
.chip.sample { color: #ffd489; background: #4a3d24; }
.mainnav { flex-wrap: wrap; }
@media (max-width: 960px) {
  .side { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; position: static; }
  .side-group { margin: 0; }
  .side ul { display: flex; flex-wrap: wrap; }
  .explain { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .bar { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .5rem; }
  .mainnav { display: flex; order: 3; width: 100%; }
}

/* Full-width layout */
.wrap { width: auto; margin-inline: clamp(1rem, 2vw, 2.5rem); }
.shell { display: grid; grid-template-columns: clamp(320px, 24vw, 460px) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2.5rem); align-items: start; padding-top: 1.25rem; }
.stage { min-width: 0; }
.library { position: sticky; top: 1rem; display: flex; flex-direction: column; height: calc(100vh - 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lib-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.lib-head .sec-head { margin: 0 auto 0 0; }
.lib-head .sort { margin-right: auto; }
.filters summary { cursor: pointer; font-size: .85rem; color: var(--ocean); }
.filters[open] { width: 100%; }
.lib-head .side { display: flex; flex-wrap: wrap; gap: .6rem 1rem; position: static; max-height: 35vh; overflow-y: auto; margin-top: .5rem; padding: .75rem; background: var(--bg); }
.lib-head .side-group { margin: 0; }
.lib-head .side ul { display: flex; flex-wrap: wrap; }
.lib-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.library .row a { align-items: flex-start; gap: .7rem; padding: .5rem; }
.library .row-cap { width: 96px; font-size: 5px; }
.library .row-title { white-space: normal; font-size: .92rem; }
.library .row-use { font-size: .76rem; }
.library .row-use b { display: block; }
.library .row-perms, .library .row-sub { display: none; }
.library .price-tag { min-width: 0; font-size: .75rem; padding: .1rem .5rem; }
.stage .hero { padding: .5rem 0 1.5rem; }
.stage .feat-slide { grid-template-columns: minmax(0, 68%) 1fr; min-height: clamp(360px, 50vh, 600px); }
.stage .feat-cap { font-size: clamp(20px, 2.4vw, 42px); }
.stage .feat-prev { left: .75rem; } .stage .feat-next { right: calc(32% + .75rem); }
.quick { margin-top: 2.25rem; }
.quick .preview { display: block; border: 1px solid var(--line); border-radius: var(--r); columns: 2 20rem; column-gap: 2rem; }
.quick .preview > * { break-inside: avoid; }
.quick .pv-cap { display: none; }
.stage .sell { margin-bottom: 0; }
.prose { max-width: 1100px; }
.app-body, .glance { grid-template-columns: minmax(0, 1fr) clamp(324px, 24vw, 440px); }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .library { position: static; order: 1; height: auto; }
  /* Phones: search, then the full list, then everything else. */
  .stage { display: contents; }
  .stage > * { order: 2; min-width: 0; }
  .stage > .hero { order: 0; }
  .stage > .results { display: none; }
  .stage .feat-slide { grid-template-columns: 1fr; min-height: 0; }
  .stage .feat-next { right: .75rem; }
  .app-body, .glance { grid-template-columns: minmax(0, 1fr); }
}

/* Banners: spring green, prickly pear pink, Bahama ocean blue */
.cap.brand-0:not(:has(img)) { background: var(--okra); }
.cap.brand-1:not(:has(img)) { background: var(--pink); }
.cap.brand-2:not(:has(img)) { background: var(--ocean); }
.cap .cap-title { color: var(--on-accent); text-shadow: none; }
.cap .cap-kind { color: var(--on-accent); background: rgba(255, 255, 255, .4); }
.cap-mark { opacity: .45; }

/* Task tiles: large, highlighted in green */
.tiles { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.tile { height: 170px; padding: 1.4rem 1.6rem; border: 2px solid var(--okra); border-top-width: 8px; }
.tile span { font-size: clamp(1.4rem, 1.9vw, 2rem); line-height: 1.2; }
.tile small { font-size: 1.05rem; color: var(--okra); }
.tile::after { background: rgba(95, 227, 140, .18); width: 96px; height: 96px; right: -20px; top: -20px; }
.tile:hover, .tile[aria-pressed="true"] { background: var(--chip); }
.explain { grid-template-columns: minmax(0, 1fr); }
.hero .btn { font-size: 1.1rem; padding: .7rem 1.8rem; }
.stage .sell { margin: 0 0 2.25rem; }

/* Slideshow as a deck of cards: slides share one spot and the top card is swiped off */
.feat { overflow: clip; }
.feat-stage { display: grid; isolation: isolate; padding-bottom: 14px; }
.feat-slide { grid-area: 1 / 1; position: relative; z-index: 1; }
.feat-stage::before, .feat-stage::after { content: ""; position: absolute; height: 40px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); z-index: -1; }
.feat-stage::before { left: 12px; right: 12px; bottom: 7px; }
.feat-stage::after { left: 26px; right: 26px; bottom: 0; z-index: -2; }
.feat-slide.swipe-out { z-index: 2; pointer-events: none; animation: swipe-left .6s ease-in-out forwards; }
.feat-slide.swipe-out.back { animation-name: swipe-right; }
.feat-arrow { z-index: 3; }
@keyframes swipe-left { to { transform: translateX(-102%); } }
@keyframes swipe-right { to { transform: translateX(102%); } }

/* Author portal and review page */
.portal { max-width: 46rem; margin: 2rem auto; }
.portal form, .portal .subs { display: grid; gap: .9rem; }
.portal [hidden] { display: none; }
.portal label { display: grid; gap: .3rem; }
.portal label.check { display: flex; gap: .5rem; align-items: baseline; }
.portal fieldset { border: 1px solid var(--line); border-radius: var(--r); }
.portal input:not([type=checkbox]), .portal select, .portal textarea { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: .55rem .7rem; width: 100%; }
.portal .subs { list-style: none; padding: 0; }
.portal .sub { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; overflow-wrap: anywhere; }
.portal .sub .btn { margin: .6rem .5rem 0 0; }

.author-frame { width: 100%; height: 32rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

.portal .tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.portal .tabs [aria-pressed="true"] { outline: 2px solid var(--okra); }
.portal .scan summary { cursor: pointer; font-weight: 700; }
.portal .scan.fail summary { color: var(--care); }
.portal .scan.review summary { color: var(--warn); }
.portal .scan.pass summary { color: var(--ok); }

.verdict.none { color: var(--muted); }
.hero-sell { margin: .8rem 0 0; font-size: .85rem; text-align: center; }
.results { margin-bottom: 2rem; }
.results[hidden], .stage [hidden] { display: none; }
@media (max-width: 680px) {
  .feat-arrow { display: none; }
  .mainnav { flex-wrap: nowrap; gap: 0; overflow-x: auto; }
  .mainnav a { font-size: .8rem; padding: .3rem .55rem; white-space: nowrap; }
}
/* The posting link is already under the search box on phones. */
@media (max-width: 680px) { .mainnav a[href$="#sell"] { display: none; } }
