:root {
	color-scheme: dark;
	--bg: #14130f;
	--bg-deep: #0e0d0a;
	--panel: #1b1a15;
	--panel-raised: #23211b;
	--panel-sunken: #100f0c;
	--line: #34302a;
	--line-soft: #26241e;
	--line-strong: #4a4438;
	--text: #ede6d6;
	--body: #d6cfc0;
	--muted: #a39c8c;
	--faint: #8c8677;
	--signal: #ff6a1a;
	--signal-ink: #170a02;
	--signal-soft: color-mix(in oklab, #ff6a1a 13%, transparent);
	--led: #7fd962;
	--warn: #f5b83d;
	--bad: #ff5a4d;
	--discord: #8e96f8;
	--font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--r: 2px;
	--r-panel: 3px;
	--ease: cubic-bezier(0.2, 0.7, 0.3, 1);
	--rail: 15.5rem;
	--content-max: 1180px;
	--site-max: 1240px;
	--grid-dot: rgb(237 230 214 / 0.05);
}

/* Scrollbars: thin square rails in the site's palette; the thumb turns signal orange on hover. */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
@supports selector(::-webkit-scrollbar) {
	* { scrollbar-width: auto; scrollbar-color: auto; }
	::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
	::-webkit-scrollbar-track { background: var(--panel-sunken); border-left: 1px solid var(--line-soft); }
	::-webkit-scrollbar-thumb { background: var(--line-strong); border: 2px solid var(--panel-sunken); border-radius: var(--r); }
	::-webkit-scrollbar-thumb:hover { background: var(--muted); }
	::-webkit-scrollbar-thumb:active { background: var(--signal); }
	::-webkit-scrollbar-corner { background: var(--panel-sunken); }
}

fieldset { min-width: 0; }
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100dvh;
	overflow-x: clip;
	color: var(--body);
	font: .9375rem/1.55 var(--font-sans);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	background-color: var(--bg);
	background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
	background-size: 22px 22px;
}
h1, h2, h3, h4 { font-family: var(--font-sans); font-stretch: 125%; font-weight: 700; color: var(--text); letter-spacing: -0.012em; margin: 0; line-height: 1.1; }
a { color: inherit; }
code, .mono, kbd { font-family: var(--font-mono); font-stretch: 87.5%; }
code, .mono { font-size: 0.8em; }
::selection { background: var(--signal); color: var(--signal-ink); }
*:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.eyebrow, .label {
	display: inline-flex; align-items: center; gap: .6rem;
	font: 500 .68rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--signal); flex: none; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 38px; padding: 0 1rem; border-radius: var(--r);
	border: 1px solid var(--line-strong); background: var(--panel-raised); color: var(--text);
	font: 600 .8rem/1 var(--font-sans); font-stretch: 112%; letter-spacing: .05em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: border-color .12s var(--ease), background .12s var(--ease), transform .06s;
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 0 rgb(0 0 0 / .35); }
.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn--primary:hover { background: #ff7d36; border-color: #ff7d36; }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--bad); }
.btn--danger:hover { border-color: var(--bad); }
.btn--sm { height: 30px; padding: 0 .75rem; font-size: .72rem; }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

.pill {
	display: inline-flex; align-items: center; gap: .4rem; height: 22px; padding: 0 .5rem;
	border-radius: var(--r); border: 1px solid var(--line); color: var(--muted);
	font: 500 .64rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.pill[data-tone="ok"] { color: var(--led); border-color: color-mix(in oklab, var(--led) 40%, transparent); }
.pill[data-tone="ok"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--led); box-shadow: 0 0 6px var(--led); }
.pill[data-tone="accent"] { color: var(--signal); border-color: color-mix(in oklab, var(--signal) 50%, transparent); }
.pill[data-tone="warn"] { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 40%, transparent); }
.pill[data-tone="bad"] { color: var(--bad); border-color: color-mix(in oklab, var(--bad) 40%, transparent); }

.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1.25rem 1.35rem; }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel__title { font-size: .98rem; font-stretch: 112%; }
.spine { overflow: visible; }
.panel--flush.spine { overflow: hidden; }

.alert, .notice { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: var(--r); margin-bottom: 1.25rem; font-size: .9rem; border: 1px solid; }
.alert { --tone: var(--bad); color: var(--bad); background: color-mix(in oklab, var(--bad) 7%, var(--panel)); border-color: color-mix(in oklab, var(--bad) 40%, transparent); }
.notice { --tone: var(--warn); color: var(--warn); background: color-mix(in oklab, var(--warn) 6%, var(--panel)); border-color: color-mix(in oklab, var(--warn) 35%, transparent); }
.notice::before, .alert::before { content: "!"; flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: var(--r); font: 700 .7rem/1 var(--font-mono); color: var(--bg); background: var(--tone); }
.field-error { color: var(--bad); font-size: .82rem; margin: -.4rem 0 .9rem; }

label.field { display: grid; gap: .45rem; margin-bottom: 1rem; color: var(--muted); font: 500 .66rem/1.2 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; }
label.field > :is(input, select, textarea) { letter-spacing: 0; text-transform: none; font-family: var(--font-sans); font-stretch: 100%; font-size: .95rem; }
label.field > input.mono { font-family: var(--font-mono); font-stretch: 87.5%; font-size: .85rem; }
label.check { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: var(--body); cursor: pointer; }
input, select, textarea {
	font: inherit; color: var(--text); background: var(--panel-sunken);
	border: 1px solid var(--line); border-radius: var(--r); padding: .55rem .75rem;
	transition: border-color .12s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
textarea { min-height: 7rem; resize: vertical; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--signal); padding: 0; border-radius: var(--r); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a39c8c' d='M6 9h12l-6 7z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 12px; padding-right: 2rem; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--panel-sunken); }
table.data td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--panel-raised); }
table.data code { color: var(--faint); word-break: break-all; font-size: .72rem; }
.who { display: flex; align-items: center; gap: .7rem; }
.who strong { color: var(--text); font-weight: 600; }

.chip { width: 32px; height: 32px; border-radius: var(--r); display: grid; place-items: center; font: 700 .85rem var(--font-sans); font-stretch: 125%; color: var(--text); background: var(--panel-raised); border: 1px solid var(--line); flex: none; object-fit: cover; }
.chip--lg { width: 52px; height: 52px; border-radius: var(--r-panel); font-size: 1.2rem; }
.chip[data-domain] { color: var(--muted); }
.chip svg { width: 17px; height: 17px; fill: currentColor; }
.chip--lg svg { width: 24px; height: 24px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font: 800 1.05rem/1 var(--font-sans); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; }
.brand__mark { width: 28px; height: 28px; border-radius: var(--r); background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 22px; height: 22px; }
.brand b { font-weight: inherit; color: var(--signal); }

.site-top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-top__in { max-width: var(--site-max); margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 2rem; }
.site-nav { display: flex; gap: 1.6rem; flex: 1; }
.site-nav a { text-decoration: none; color: var(--muted); font: 500 .68rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a:hover { color: var(--text); }
.site-main { max-width: var(--site-max); margin: 0 auto; padding: 0 20px 6rem; }
.site-foot { border-top: 1px solid var(--line); color: var(--faint); font: 500 .66rem/1.4 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; }
.site-foot__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.site-foot__legal a { color: inherit; text-decoration: none; }
.site-foot__legal a:hover, .site-foot__legal a:focus-visible { color: var(--text, inherit); text-decoration: underline; }
.legal-section { margin-bottom: 1.1rem; }
.legal-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; flex-wrap: wrap; padding: 1.1rem 1.1rem .9rem; }
.legal-docs__name { white-space: nowrap; vertical-align: top; }
.legal-docs__name strong { color: var(--heading); display: block; margin-bottom: .45rem; }
.legal-docs td { vertical-align: top; }
.legal-lang { display: grid; grid-template-columns: 2.4rem minmax(8rem, 16rem) 1fr; gap: .5rem 1rem; align-items: center; padding: .35rem 0; }
.legal-lang + .legal-lang { border-top: 1px solid var(--line-soft); }
.legal-lang__code { text-transform: uppercase; color: var(--faint); }
.legal-lang__versions { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.legal-lang__versions a.pill { text-decoration: none; }
.legal-lang__versions a.pill:hover { border-color: var(--signal); }
.legal-form form > .hint, .legal-form > .hint { margin: -.35rem 0 1rem; }
.legal-form form > .hint + .field-error { margin-top: -.6rem; }
@media (max-width: 720px) { .legal-lang { grid-template-columns: 2.4rem 1fr; } .legal-lang__versions { grid-column: 1 / -1; } .legal-docs__name { white-space: normal; } .legal-docs thead { display: none; } .legal-docs, .legal-docs tbody, .legal-docs tr, .legal-docs td { display: block; width: 100%; } .legal-docs td { padding-block: .5rem; border-bottom: 0; } .legal-docs tr { border-bottom: 1px solid var(--line-soft); padding-block: .5rem; } .legal-docs__name strong { display: inline; margin: 0 .6rem 0 0; } }
.legal { max-width: 46rem; margin: 0 auto; }
.legal__body { line-height: 1.65; }
.legal__body h2 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body ul { padding-left: 1.2rem; }
.site-foot__in { max-width: var(--site-max); margin: 0 auto; padding: 1.4rem 20px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; padding: 5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; line-height: .98; letter-spacing: -0.02em; margin: 1.2rem 0 1.3rem; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 520px; margin: 0 0 2rem; }
.hero__cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.rack { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-strong); border-radius: var(--r-panel); background: var(--panel); }
.rack__top { display: flex; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rack__row { display: grid; grid-template-columns: 2.2rem 12px 1fr auto; align-items: center; gap: .8rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); }
.rack__row:last-child { border-bottom: 0; }
.rack__ch { font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; color: var(--faint); }
.rack__name { color: var(--text); font-weight: 600; font-stretch: 112%; }
.rack .switch { display: block; pointer-events: none; }
.led { display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-panel); margin: 1rem 0 4rem; background: var(--panel-sunken); }
.stat { padding: 1.2rem 1.3rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 400 2rem/1 var(--font-mono); font-stretch: 87.5%; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .6rem; font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.1rem; }
.section-head h2 { font-size: 1.35rem; }
.plans, .addons { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-bottom: 3rem; }
.plans > .panel, .addons > .panel { border: 0; border-radius: 0; box-shadow: 0 0 0 1px var(--line); }
.plan { display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; }
.plan[data-featured="true"] { background: var(--panel-raised); box-shadow: 0 0 0 1px var(--line), inset 0 3px 0 var(--signal); }
.plan h3 { font-size: 1.15rem; }
.plan__price { font: 400 2rem/1 var(--font-mono); font-stretch: 87.5%; color: var(--text); letter-spacing: -0.02em; }
.plan__price small { font: 500 .66rem var(--font-mono); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.plan p { margin: 0; color: var(--muted); flex: 1; }
.addon { padding: 1.3rem 1.4rem; }
.addon h3 { font-size: 1rem; margin-bottom: .4rem; }
.addon p { margin: 0; color: var(--muted); font-size: .92rem; }

.app { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 1rem .8rem; background: var(--bg-deep); border-right: 1px solid var(--line); overflow-y: auto; counter-reset: group; }
.rail .brand { padding: .35rem .45rem; }
.rail__top { display: flex; align-items: center; justify-content: space-between; }
.rail__body { display: flex; flex-direction: column; gap: 1.5rem; flex: 1; margin-top: 1.1rem; }
.rail__group { display: grid; gap: 1px; counter-increment: group; }
.rail__label { display: flex; gap: .55rem; font: 500 .6rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: .3rem .6rem .55rem; }
.rail__label::before { content: counter(group, decimal-leading-zero); color: var(--signal); }
.rail__link { position: relative; display: flex; align-items: center; gap: .65rem; padding: .48rem .6rem; border-radius: var(--r); text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; }
.rail__link:hover { background: var(--panel); color: var(--text); }
.rail__link[data-active="true"] { background: var(--panel); color: var(--text); box-shadow: inset 2px 0 0 var(--signal); }
.rail__dot { width: 6px; height: 6px; background: var(--line-strong); flex: none; margin: 0 .3rem; }
.rail__link:hover .rail__dot { background: var(--muted); }
.rail__link[data-active="true"] .rail__dot { background: var(--signal); }
.rail__link .chip { width: 22px; height: 22px; font-size: .66rem; }
.rail__link span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__sub { display: grid; gap: 1px; margin: .1rem 0 .35rem 1.55rem; padding-left: .55rem; border-left: 1px solid var(--line); }
.rail__sublink { text-decoration: none; color: var(--faint); font-size: .84rem; padding: .3rem .55rem; border-radius: var(--r); }
.rail__sublink:hover { color: var(--text); }
.rail__sublink[data-active="true"] { color: var(--text); background: var(--panel); }
.rail__foot { margin-top: auto; display: flex; align-items: center; gap: .6rem; padding: .6rem; border-top: 1px solid var(--line); }
.rail__foot img, .avatar { width: 28px; height: 28px; border-radius: var(--r); background: var(--panel-raised); flex: none; }
.rail__foot .who-name { flex: 1; min-width: 0; color: var(--text); font-weight: 600; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__foot form { margin: 0; }
.rail__search { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; padding: .5rem .65rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel-sunken); color: var(--faint); font: inherit; font-size: .85rem; cursor: pointer; }
.rail__search:hover { color: var(--text); border-color: var(--line-strong); }
.rail__toggle { display: none; }
.rail__burger { display: none; width: 38px; height: 38px; border-radius: var(--r); border: 1px solid var(--line); place-content: center; gap: 4px; cursor: pointer; }
.rail__burger span { display: block; width: 16px; height: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--faint); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }
kbd { font-size: .62rem; line-height: 1; padding: .22rem .35rem; border-radius: var(--r); border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel); color: var(--muted); }
.app-main { min-width: 0; padding: 2rem clamp(1rem, 3vw, 2.6rem) 5rem; max-width: var(--content-max); margin-inline: auto; width: 100%; }

.page-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 1.85rem; font-weight: 750; }
.page-head p { margin: .35rem 0 0; color: var(--muted); }
.page-head__side { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.plan-pill { color: var(--signal); }
.crumbs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font: 500 .64rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--signal); }
.crumbs b { color: var(--text); font-weight: 500; }

.tiles { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr)); counter-reset: ch; }
.tiles > .panel { border: 0; border-radius: 0; box-shadow: 0 0 0 1px var(--line); }
.tiles > .panel.empty { grid-column: 1 / -1; }
.guild-card { display: flex; align-items: center; gap: 1rem; text-decoration: none; padding: 1.1rem 1.2rem; transition: background .12s; }
.guild-card:hover { background: var(--panel-raised); }
.guild-card:hover .guild-card__go { color: var(--signal); transform: translateX(2px); }
.guild-card strong { display: block; color: var(--text); font-weight: 600; font-stretch: 112%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-card .muted { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-card > span:nth-child(2) { flex: 1; min-width: 0; }
.guild-card__go { margin-left: auto; color: var(--faint); transition: transform .12s, color .12s; }
.guild-card__go svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.guild-card--invite { background: transparent; }
.guild-card--invite img, .guild-card--invite .chip { filter: grayscale(1); opacity: .7; }
.guild-card--invite:hover img, .guild-card--invite:hover .chip { filter: none; opacity: 1; }
.invite-cta { color: var(--signal); font-weight: 600; }

.module { display: flex; flex-direction: column; gap: .65rem; padding: 1rem 1.15rem 1rem; counter-increment: ch; }
.module[data-filtered="true"] { display: none; }
.module__head { display: flex; align-items: center; gap: .7rem; }
.module__head::before { content: counter(ch, decimal-leading-zero); font: 500 .6rem/1 var(--font-mono); font-stretch: 87.5%; color: var(--faint); width: 1.3rem; flex: none; }
.plans .module__head::before, .addons .module__head::before { display: none; }
.module__head h3 { flex: 1; min-width: 0; font-size: .98rem; font-stretch: 112%; display: flex; align-items: center; gap: .6rem; }
.module__head h3::before, .led { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: #2e2b24; box-shadow: inset 0 1px 1px rgb(0 0 0 / .6); }
.module[data-on="true"] .module__head h3::before, .led[data-on="true"] { background: var(--led); box-shadow: 0 0 0 2px color-mix(in oklab, var(--led) 18%, transparent), 0 0 10px var(--led); }
.plans .module__head h3::before, .addons .module__head h3::before { display: none; }
.module__head h3 a:hover { color: var(--signal); }
.module p { margin: 0 0 0 2rem; color: var(--muted); font-size: .87rem; flex: 1; }
.module__meta { display: flex; gap: .4rem; align-items: center; margin-left: 2rem; }
.module form { margin: 0; }
.module__go { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.module__go:hover { color: var(--signal); }
.module__go svg { width: 13px; height: 13px; fill: currentColor; }

.switch { position: relative; width: 58px; height: 24px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--panel-sunken); cursor: pointer; padding: 0; flex: none; box-shadow: inset 0 1px 3px rgb(0 0 0 / .5); transition: background .15s var(--ease), border-color .15s; }
.switch::before { content: "OFF"; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font: 500 .55rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .06em; color: var(--faint); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 18px; border-radius: 1px; background: linear-gradient(#57513f, #3b372c); box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 1px 2px rgb(0 0 0 / .6); transition: transform .16s var(--ease), background .16s; }
.switch[data-on="true"] { background: color-mix(in oklab, var(--led) 16%, var(--panel-sunken)); border-color: color-mix(in oklab, var(--led) 55%, transparent); }
.switch[data-on="true"]::before { content: "ON"; right: auto; left: 8px; color: var(--led); }
.switch[data-on="true"]::after { transform: translateX(32px); background: linear-gradient(#f4eee0, #cfc7b4); }
.switch:hover { border-color: var(--text); }
.switch-locked { font: 500 .6rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px dashed var(--line-strong); padding: .35rem .45rem; border-radius: var(--r); }
.toggle-line { display: flex; align-items: center; gap: .7rem; margin: 0; padding: .4rem .45rem .4rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-sunken); }
.toggle-line__state { font: 500 .64rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toggle-line__state[data-on="true"] { color: var(--led); }

.split { display: grid; gap: 1.1rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty h3 { margin-bottom: .5rem; }
.empty--sm { padding: 1.4rem 1rem 1.6rem; }
.empty--sm p { margin: 0 0 .8rem; }
.diff { font-family: var(--font-mono); font-stretch: 87.5%; font-size: .72rem; color: var(--faint); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.diff--after { color: var(--body); }

.center { min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1rem; }
.card-solo { width: min(440px, 100%); text-align: center; padding: 2.4rem 2rem; border-color: var(--line-strong); }
.card-solo h1 { font-size: 1.8rem; margin: 1.2rem 0 .6rem; }
.card-solo p { color: var(--muted); margin: 0 0 1.6rem; }
.discord svg { width: 17px; height: 17px; fill: currentColor; }

.jump { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 1.1rem; position: sticky; top: 0; z-index: 6; padding: .6rem 0; background: linear-gradient(var(--bg) 75%, transparent); }
.jump a { text-decoration: none; font: 500 .64rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .6rem .8rem; border: 1px solid var(--line); margin-right: -1px; background: var(--panel); }
.jump a:first-child { border-radius: var(--r) 0 0 var(--r); }
.jump a:last-child { border-radius: 0 var(--r) var(--r) 0; }
.jump a:hover { color: var(--text); background: var(--panel-raised); }
.jump a span { color: var(--signal); margin-left: .35rem; }

.settings { --pad: 1.4rem; padding: 1.1rem var(--pad) .4rem; scroll-margin-top: 70px; }
.list { scroll-margin-top: 70px; }
.settings__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.settings__filter { width: min(260px, 50%); padding: .4rem .7rem; font-size: .85rem; }
.frow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.4rem; padding: 1rem 0; border-top: 1px solid var(--line-soft); align-items: start; }
.frow::before { content: ""; position: absolute; left: calc(-1 * var(--pad, 1.4rem)); top: -1px; bottom: 0; width: 2px; background: var(--signal); transform: scaleY(0); transition: transform .15s var(--ease); }
.frow[data-changed="true"]::before { transform: none; }
.frow[data-changed="true"] .frow__label::after { content: "Modified"; margin-left: .2rem; font: 500 .56rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.frow[data-visible="false"], .frow[data-filtered="true"] { display: none; }
.frow__label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--text); font-weight: 600; font-size: .93rem; cursor: default; }
.frow__emoji { display: none; }
.frow__help { margin: .25rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.frow__vars { margin: .5rem 0 0; font-size: .74rem; color: var(--faint); line-height: 1.7; }
.frow__vars summary { cursor: pointer; color: var(--muted); font: 500 .62rem/1.6 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; width: fit-content; }
.frow__vars summary:hover { color: var(--signal); }
.frow__vars code { display: block; margin-top: .45rem; padding: .55rem .65rem; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); color: var(--signal); word-spacing: .4rem; }
.req { font: 500 .56rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent); padding: .18rem .3rem; border-radius: var(--r); }
.settings > :is(.settings__head, p.frow__help, input[type="hidden"]) + .frow { border-top: 0; }
.frow__control { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; min-width: 0; }
.frow__control input:not([type="checkbox"]), .frow__control select, .frow__control textarea { width: 100%; }
.frow[data-invalid]:not([data-invalid=""]) :is(input, select, textarea), .frow[data-invalid]:not([data-invalid=""]) .picker summary { border-color: var(--bad); }
.frow .field-error { margin: 0; }
.frow[data-conflict="true"]::before { transform: none; background: var(--warn); }
.frow[data-conflict="true"] :is(input, select, textarea), .frow[data-conflict="true"] .picker summary { border-color: color-mix(in oklab, var(--warn) 60%, var(--line)); }
.field-note { margin: 0; color: var(--warn); font-size: .82rem; line-height: 1.45; }
.mono-true { font-family: var(--font-mono); font-stretch: 87.5%; font-size: .82rem; }
textarea[data-document="true"] { min-height: 14rem; }
.hint { margin: 0; color: var(--faint); font-size: .78rem; }
.readonly { padding: .55rem .75rem; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); font-size: .9rem; }

.picker { position: relative; }
.picker summary { min-width: 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem; cursor: pointer; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-sunken); color: var(--text); }
.picker summary::-webkit-details-marker { display: none; }
.picker summary:hover { border-color: var(--line-strong); }
.picker[open] summary { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.picker__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__count { flex: none; min-width: 22px; height: 20px; padding: 0 .3rem; display: grid; place-items: center; border-radius: var(--r); background: var(--panel-raised); border: 1px solid var(--line); color: var(--muted); font: 500 .62rem/1 var(--font-mono); }
.picker__pop, .popover__body { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel-raised); border: 1px solid var(--line-strong); border-radius: var(--r-panel); box-shadow: 0 18px 40px -16px #000; padding: .4rem; }
.picker__search { width: 100%; margin-bottom: .4rem; }
.picker__list { max-height: 260px; overflow-y: auto; display: grid; gap: 1px; }
.picker__opt { display: flex; align-items: center; gap: .6rem; padding: .42rem .5rem; border-radius: var(--r); cursor: pointer; color: var(--body); font-size: .9rem; margin: 0; }
.picker__opt:hover { background: var(--panel); }
.picker__opt[hidden] { display: none; }
.picker--single .picker__opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.picker--single .picker__list { overflow-x: hidden; }
.picker--single .picker__opt { position: relative; }
.picker__opt:has(input:checked) { color: var(--text); background: var(--signal-soft); }

.savebar { position: sticky; bottom: 1rem; z-index: 10; display: none; align-items: center; gap: .5rem; margin: .4rem calc(-1 * var(--pad) + .4rem) 1rem; padding: .55rem .55rem .55rem 1rem; border-radius: var(--r-panel); background: var(--bg-deep); border: 1px solid var(--signal); box-shadow: 0 16px 40px -14px #000; animation: rise .18s var(--ease); }
form[data-dirty="true"] .savebar { display: flex; }
.savebar__text { flex: 1; display: flex; align-items: center; gap: .6rem; font: 500 .66rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.savebar__text i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blink { 50% { opacity: .25; } }

.list__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.2rem; padding: 1.1rem 1.2rem 1rem; border-bottom: 1px solid var(--line); }
.list__head .panel__title { display: flex; align-items: center; gap: .45rem; }
.list__side { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.list .data th:first-child, .list .data td:first-child { padding-left: 1.2rem; }
.data--click tbody tr { position: relative; }
.row-link { text-decoration: none; color: var(--text); }
.data--click .row-link::after { content: ""; position: absolute; inset: 0; }
.data--click tbody tr:hover td { background: var(--panel-raised); }
.data--click tbody tr:hover .chev { color: var(--signal); }
.chev { width: 30px; color: var(--faint); }
.chev svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.inline-action { margin: 0; position: relative; }
.popover { position: relative; }
.popover summary { list-style: none; }
.popover summary::-webkit-details-marker { display: none; }
.popover__body { width: 360px; left: auto; right: 0; padding: .4rem 1rem 1rem; }
.popover__body .frow { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.popover__body .frow::before { display: none; }
.actions { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr)); }
.action-card { margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-sunken); display: grid; gap: .6rem; align-content: start; }
.action-card__head { display: grid; gap: .2rem; }
.action-card__head strong { color: var(--text); }
.action-card__head .muted { font-size: .84rem; }
.action-card .frow { grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: .5rem 0; }
.action-card .frow::before { display: none; }
.action-card button { justify-self: start; }
.danger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-color: color-mix(in oklab, var(--bad) 35%, var(--line)); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(255 90 77 / .03) 10px 20px), var(--panel); }
.danger form { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl { display: grid; grid-template-columns: 32px 1fr; gap: .9rem; align-items: start; position: relative; }
.tl__who { position: relative; z-index: 1; }
.tl__body { padding: .8rem 1rem; }
.tl__line { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .92rem; }
.tl__line strong { color: var(--text); }
.tl__module { color: var(--text); font-weight: 600; text-decoration: none; }
.tl__module:hover { color: var(--signal); }
.tl__subject { color: var(--text); font-family: var(--font-mono); font-stretch: 87.5%; font-size: .76rem; padding: .1rem .4rem; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); }
.tl__when { margin-left: auto; color: var(--faint); font: 500 .66rem/1 var(--font-mono); font-stretch: 87.5%; white-space: nowrap; }
.tl__changes { margin: .7rem 0 0; display: grid; gap: .35rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.tl__changes div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: .8rem; font-size: .84rem; }
.tl__changes dt { color: var(--muted); }
.tl__changes dd { margin: 0; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tl__arrow { color: var(--signal); }
.tl__source { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font: 500 .6rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tl__source::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--source, var(--faint)); }
.tl__source[data-source="dashboard"] { --source: var(--signal); }
.tl__source[data-source="discord"] { --source: var(--discord); }
.tl__source[data-source="ai"] { --source: var(--led); }
.tl__fields { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.tl__fields-label { margin-right: .3rem; color: var(--muted); font-size: .84rem; }
.tl__field { padding: .25rem .4rem; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); color: var(--body); font: 500 .72rem/1 var(--font-mono); font-stretch: 87.5%; }
.tl__field--more { color: var(--faint); }

.palette { width: min(620px, calc(100vw - 2rem)); max-height: min(70vh, 560px); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-panel); background: var(--panel); color: var(--body); box-shadow: 0 40px 80px -30px #000; overflow: hidden; }
.palette[open] { display: flex; flex-direction: column; }
.palette::backdrop { background: rgb(8 7 5 / .7); }
.palette__input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 1rem 1.2rem; font-size: 1rem; }
.palette__input:focus { box-shadow: none; }
.palette__list { list-style: none; margin: 0; padding: .35rem; overflow-y: auto; }
.palette__list li[hidden] { display: none; }
.palette__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border-radius: var(--r); text-decoration: none; color: var(--text); }
.palette__item small { color: var(--faint); font: 500 .6rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.palette__item:hover, .palette__item[data-selected] { background: var(--panel-raised); box-shadow: inset 2px 0 0 var(--signal); }
.palette__empty { padding: 1rem 1.2rem; }
.palette__empty[hidden] { display: none; }
.palette__foot { display: flex; gap: .35rem; align-items: center; padding: .55rem 1rem; border-top: 1px solid var(--line); font-size: .74rem; color: var(--faint); background: var(--panel-sunken); }
.palette__foot kbd:not(:first-child) { margin-left: .5rem; }

.flash { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; margin: 0; display: flex; align-items: center; gap: .7rem; max-width: min(420px, calc(100vw - 2.5rem)); padding: .75rem 1rem; border-radius: var(--r-panel); color: var(--text); background: var(--bg-deep); border: 1px solid var(--line-strong); box-shadow: inset 2px 0 0 var(--led), 0 18px 40px -16px #000; font-size: .9rem; animation: toast-in .2s var(--ease), toast-out .3s var(--ease) 4.5s forwards; pointer-events: none; }
.flash::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led); flex: none; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; visibility: hidden; } }

.price-form { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.price-form .panel__title { margin-bottom: .8rem; font-size: .95rem; }
.price-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 1rem; }
.price-form__row .field { margin-bottom: .6rem; }
.links { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem .4rem; margin: 0 0 1rem; }
.links legend { padding: 0 .4rem; color: var(--muted); font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; }
.links__row { display: grid; grid-template-columns: 140px 1fr 1.6fr; gap: .5rem; margin-bottom: .5rem; }
.links__row > * { min-width: 0; width: 100%; }

@media (max-width: 1000px) {
	.hero { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; padding-top: 3.5rem; }
}
@media (max-width: 900px) {
	.app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.split { grid-template-columns: minmax(0, 1fr); }
	.site-nav { display: none; }
	.rail { position: sticky; top: 0; z-index: 25; height: auto; padding: .55rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg-deep) 94%, transparent); backdrop-filter: blur(10px); }
	.rail .brand { padding: 0; }
	.rail__burger { display: grid; }
	.rail__body { display: none; margin-top: 0; padding: 1rem 0 .4rem; max-height: calc(100dvh - 60px); overflow-y: auto; }
	.rail__toggle:checked ~ .rail__body { display: flex; }
	.rail__toggle:checked ~ .rail__top .rail__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.rail__toggle:checked ~ .rail__top .rail__burger span:nth-child(2) { opacity: 0; }
	.rail__toggle:checked ~ .rail__top .rail__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.app-main { padding-top: 1.2rem; }
	.page-head { flex-wrap: wrap; }
	.page-head > div:nth-child(2) { flex: 1; min-width: 0; }
	.page-head__side { margin-left: 0; width: 100%; justify-content: flex-start; }
	.page-head h1 { font-size: 1.45rem; }
	.jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.jump::-webkit-scrollbar { display: none; }
	.jump a { white-space: nowrap; }
	.settings { --pad: 1rem; }
	.settings__head { flex-wrap: wrap; }
	.settings__filter { width: 100%; }
	.frow { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
	.savebar { flex-wrap: wrap; }
	.savebar__text { flex-basis: 100%; padding: .2rem 0 .3rem; }
	.popover__body { width: min(360px, 90vw); }
	.timeline::before { display: none; }
	.tl { grid-template-columns: minmax(0, 1fr); }
	.tl__who { display: none; }
	.tl__changes div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
	.danger { flex-direction: column; align-items: flex-start; }
	.flash { left: 1rem; right: 1rem; bottom: auto; top: 4.4rem; max-width: none; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
	.list__head { grid-template-columns: minmax(0, 1fr); }
	.list__side { justify-content: flex-start; }
	.price-form__row { grid-template-columns: minmax(0, 1fr); }
	.links__row { grid-template-columns: minmax(0, 1fr); padding-bottom: .5rem; border-bottom: 1px solid var(--line-soft); }
	.module p, .module__meta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
.site-top__in > .btn { margin-left: auto; }
.brand__mark--lg { width: 52px; height: 52px; margin: 0 auto; border-radius: var(--r-panel); }
.brand__mark--lg svg { width: 42px; height: 42px; }
.module-group:not(:has(.module:not([data-filtered="true"]))) { display: none; }
.module-empty { display: none; }
#modules:not(:has(.module:not([data-filtered="true"]))) .module-empty { display: block; }
.live-note { position: fixed; z-index: 30; left: 50%; top: 1rem; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; max-width: calc(100vw - 32px); padding: .5rem .5rem .5rem 1rem; border-radius: var(--r-panel); background: var(--bg-deep); border: 1px solid var(--warn); font: 500 .66rem/1.3 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: var(--text); animation: rise .18s var(--ease); }
.live-note__dot { color: var(--faint); }

.perm-group { padding: 1rem 0 .4rem; border-top: 1px solid var(--line-soft); min-width: 0; }
.perm-group__title { margin-bottom: .6rem; color: var(--faint); font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; }
.perm { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .5rem 0; }
.perm input[type="checkbox"] { margin-top: .2rem; }
.perm input[type="checkbox"]:disabled { opacity: .55; }
.perm label { display: grid; gap: .1rem; cursor: pointer; }
.perm label strong { color: var(--text); font-weight: 600; font-size: .92rem; }
.perm label span { color: var(--muted); font-size: .82rem; }
.perm code { color: var(--faint); font-size: .7rem; padding-top: .2rem; }
@media (max-width: 700px) {
	.perm { grid-template-columns: 16px minmax(0, 1fr); }
	.perm code { grid-column: 2; padding-top: 0; }
}

.matrix-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.1rem; padding: .9rem 1.2rem; }
.matrix-bar p { margin: 0; max-width: 70ch; }
.matrix-bar form { margin: 0; flex: none; }
.matrix-form { --pad: 1rem; }
.matrix-wrap { overflow: auto; max-height: calc(100dvh - 11rem); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line-soft); padding: .55rem .8rem; }
.matrix thead th { position: sticky; top: 0; z-index: 3; background: var(--panel-sunken); border-bottom: 1px solid var(--line); text-align: center; vertical-align: bottom; }
.matrix__col span { display: block; color: var(--text); font-weight: 700; font-stretch: 112%; font-size: .85rem; }
.matrix__col small { display: block; margin-top: .25rem; color: var(--faint); font: 500 .58rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.matrix__col[data-addon="true"] { border-left: 1px solid var(--line); }
.matrix__col[data-addon="true"] ~ .matrix__col[data-addon="true"] { border-left: 0; }
.matrix th.matrix__name { position: sticky; left: 0; z-index: 2; min-width: 280px; max-width: 360px; background: var(--panel); text-align: left; font-weight: 400; }
.matrix thead th.matrix__name { z-index: 4; background: var(--panel-sunken); color: var(--faint); font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; }
.matrix__name strong { display: block; color: var(--text); font-weight: 600; }
.matrix__name span { display: block; margin-top: .15rem; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.matrix__name em { display: inline-block; margin-top: .3rem; color: var(--faint); font: 500 .58rem/1 var(--font-mono); font-style: normal; font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; }
.matrix__group th { position: sticky; left: 0; z-index: 1; padding: .8rem .8rem .6rem; background: var(--panel-raised); text-align: left; border-top: 1px solid var(--line); }
.matrix__group strong { color: var(--text); font-stretch: 112%; margin-right: .8rem; }
.matrix__group span { color: var(--muted); font-size: .8rem; font-weight: 400; }
.matrix__group[data-tone="warn"] th { background: color-mix(in oklab, var(--warn) 7%, var(--panel-raised)); }
.matrix__group[data-tone="warn"] strong { color: var(--warn); }
.matrix__cell { text-align: center; min-width: 96px; }
.matrix__cell input[type="number"] { width: 78px; padding: .3rem .4rem; text-align: right; font: 500 .82rem var(--font-mono); }
.matrix__cell[data-inherited="true"] input { color: var(--faint); background: transparent; border-style: dashed; }
.matrix__cell[data-inherited="true"] input::placeholder { color: var(--muted); }
.matrix__cell input[type="checkbox"]:disabled { opacity: .4; cursor: help; }
.matrix__cell[data-invalid="true"] input { border-color: var(--bad); }
.matrix__drop { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.matrix__drop span { color: var(--muted); font: 500 .72rem var(--font-mono); }
.matrix-form .savebar { margin: 1rem 0 0; }
.matrix-search { margin-bottom: .8rem; }
.matrix-search input { width: 100%; max-width: 28rem; }
.matrix__sethead th, .matrix__sethead td { background: var(--panel-sunken); }
.matrix__open-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.matrix__open-label b { color: var(--muted); font: 500 .72rem var(--font-mono); }
.matrix__sethead .matrix__name strong { display: inline; }
.matrix__bulk { vertical-align: middle; }
.matrix__locked { display: block; color: var(--muted); font-size: .76rem; }
.matrix__locked b { color: var(--text); }
.matrix__btns { display: inline-flex; flex-direction: column; gap: .25rem; margin-top: .35rem; }
.matrix__btns .btn { white-space: nowrap; }
.matrix__settings:not(:has(.matrix__open:checked)) .matrix__setting { display: none; }
.matrix[data-searching="true"] .matrix__settings .matrix__setting { display: table-row; }
.matrix .matrix__setting[data-filtered="true"] { display: none; }
.matrix__cell[data-changed="true"] { box-shadow: inset 0 0 0 2px var(--signal); }
.matrix__cell[data-tri] { padding: .4rem .5rem; }
.tri__select { width: 100%; min-width: 8.5rem; padding: .3rem 1.5rem .3rem .45rem; font-size: .76rem; }
.tri { position: relative; display: inline-block; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--faint); font: 600 .95rem/1 var(--font-mono); cursor: pointer; vertical-align: middle; }
.tri::before { content: "\2013"; position: absolute; inset: 0; display: grid; place-items: center; font-variant-emoji: text; }
.tri::after { position: absolute; right: 2px; bottom: 1px; font: 700 .66rem/1 var(--font-mono); color: var(--muted); font-variant-emoji: text; }
.tri:hover { border-color: var(--line-strong); }
.tri[data-state="neutral"] { border-style: dashed; }
.tri[data-state="neutral"][data-effective="true"]::after { content: "\2713"; }
.tri[data-state="neutral"][data-effective="false"]::after { content: "\2715"; }
.tri[data-state="allow"] { border-color: var(--signal); background: var(--signal-soft); color: var(--signal); }
.tri[data-state="allow"]::before { content: "\2713"; }
.tri[data-state="deny"] { border-color: var(--bad); background: color-mix(in oklab, var(--bad) 12%, transparent); color: var(--bad); }
.tri[data-state="deny"]::before { content: "\2715"; }
.tri--demo { cursor: default; flex: none; pointer-events: none; }
.matrix-legend { display: grid; gap: .5rem; margin-bottom: 1.1rem; padding: .9rem 1.2rem; }
.matrix-legend p { margin: 0; max-width: 78ch; }
.matrix-legend ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.matrix-legend li { display: flex; align-items: center; gap: .7rem; }
.matrix-legend li b { color: var(--text); font-weight: 600; margin-right: -.3rem; }
@media (max-width: 700px) {
	.matrix-bar { flex-direction: column; align-items: flex-start; }
	.matrix th.matrix__name { min-width: 190px; }
}

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.mode { margin: 0; display: grid; align-content: start; gap: .6rem; padding: 1.1rem 1.2rem; background: var(--panel); justify-items: start; }
.mode strong { color: var(--text); font-stretch: 112%; font-size: 1rem; }
.mode p { margin: 0; color: var(--muted); font-size: .85rem; flex: 1; }
.mode[data-current="true"] { background: color-mix(in oklab, var(--signal) 6%, var(--panel)); box-shadow: inset 0 2px 0 var(--signal); }
.override-form { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: .8rem; align-items: end; padding: 1rem 1.1rem 0; border-top: 1px solid var(--line-soft); }
.override-form .field { margin: 0; }
.override-form .btn { margin-bottom: 0; }
.panel--flush > .override-form { padding-bottom: 1.1rem; }
.stats--inline { margin: 0 1.1rem 1rem; }
@media (max-width: 900px) {
	.modes { grid-template-columns: minmax(0, 1fr); }
	.override-form { grid-template-columns: minmax(0, 1fr); }
}

.icon-lock { width: 11px; height: 11px; fill: currentColor; flex: none; }
.switch-locked { display: inline-flex; align-items: center; gap: .35rem; }
a.pill--lock { text-decoration: none; }
a.pill--lock:hover { border-color: var(--warn); }
.module[data-locked="true"] { background: color-mix(in oklab, var(--panel-sunken) 55%, var(--panel)); }
.module[data-locked="true"] p { color: var(--faint); }
.module[data-locked="true"] .module__head h3::before { background: var(--warn); box-shadow: none; opacity: .55; }
.alert__action { margin-left: auto; color: var(--text); }
.lock-banner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; margin-bottom: 1.25rem; border: 1px solid color-mix(in oklab, var(--warn) 35%, transparent); border-radius: var(--r); background: color-mix(in oklab, var(--warn) 6%, var(--panel)); }
.lock-banner__text { flex: 1; min-width: 14rem; display: grid; gap: .15rem; }
.lock-banner__text strong { color: var(--text); display: inline-flex; align-items: center; gap: .45rem; }
.lock-banner__text span { color: var(--muted); font-size: .88rem; }
.lock-line { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; color: var(--warn); font-size: .82rem; }
.lock-line a { color: var(--warn); }
.lock-line a:hover { color: var(--text); }
.effective-note { margin: 0; color: var(--muted); font-size: .8rem; }
.effective-note b { color: var(--text); font-weight: 600; }
.module__meta { flex-wrap: wrap; row-gap: .4rem; }
.btn--disabled { opacity: .55; cursor: not-allowed; }
.btn--disabled:hover { border-color: var(--line-strong); }
.btn--disabled:active { transform: none; box-shadow: none; }
.list > .lock-banner { margin: 0; border-width: 0 0 1px; border-radius: 0; }
@media (max-width: 700px) {
	.panel--flush.spine { overflow-x: auto; }
	.panel--flush.spine .data { min-width: 520px; }
}

.receipt { max-width: 640px; }
.receipt__lines { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line-soft); }
.receipt__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.receipt__lines .muted { font: 500 .64rem/1.6 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; }
.receipt__sum { margin: 0 0 1.1rem; display: grid; gap: .3rem; }
.receipt__sum div { display: flex; justify-content: space-between; gap: 1rem; }
.receipt__sum dt { color: var(--muted); }
.receipt__sum dd { margin: 0; color: var(--text); font-weight: 600; }
.receipt__wait { display: flex; align-items: center; gap: .6rem; color: var(--muted); margin-bottom: 1rem; }
.receipt__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.billing-slow { display: none; }
body[data-billing-stale="true"] .billing-slow { display: block; }

.grace { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; margin-bottom: 1.25rem; border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent); border-radius: var(--r); background: color-mix(in oklab, var(--warn) 7%, var(--panel)); }
.grace[data-restricted="true"] { border-color: color-mix(in oklab, var(--bad) 45%, transparent); background: color-mix(in oklab, var(--bad) 8%, var(--panel)); }
.grace__text { display: grid; gap: .15rem; font-size: .9rem; }
.grace__text strong { color: var(--warn); }
.grace[data-restricted="true"] .grace__text strong { color: var(--bad); }
.grace__text span { color: var(--body); }

.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.offer { display: grid; align-content: start; gap: .7rem; }
.offer[data-featured="true"] { border-color: color-mix(in oklab, var(--signal) 50%, var(--line)); }
.offer[data-current="true"] { border-color: color-mix(in oklab, var(--led) 45%, var(--line)); }
.offer .hint, .offer form { margin: 0; }

.sources { list-style: none; margin: 0; padding: 0; }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.source:last-child { border-bottom: 0; }
.source[data-active="false"] { opacity: .65; }
.source__main { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; flex: 1 1 320px; }
.source__main strong { color: var(--text); }
.source__notes { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; }
.source__actions { display: flex; gap: .5rem; }
.source__actions form { margin: 0; }

.confirm { margin-bottom: 1.4rem; max-width: 560px; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub__pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.sub__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.sub__actions form { margin: 0; }
.slots-wrap { overflow-x: auto; }
.slot__name, .slot__server { color: var(--text); }
.slot__move, .buy__form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 0; }
.slot__move select { min-width: 150px; max-width: 220px; }
.slot__actions { min-width: 190px; }
.slot__actions form { margin: 0 .4rem .4rem 0; display: inline-block; }
.qty { width: 5.2rem; }
.cooldown { display: grid; gap: .3rem; }
.cooldown__bar { display: block; width: 160px; height: 6px; background: var(--panel-sunken); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cooldown__bar i { display: block; height: 100%; background: var(--led); }
.cooldown[data-waiting="true"] .cooldown__bar i { background: var(--warn); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.history li:last-child { border-bottom: 0; }
.currency-form { display: flex; align-items: end; gap: .8rem; }
.currency-form label.field { margin: 0; }
.btn[data-primary="true"] { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }

.flow > .section-head ~ .section-head { margin-top: 2.4rem; }
.flow > :is(.panel, .stack, .offers, .notice) + .hint { margin-top: .7rem; }
.flow > .hint + .section-head { margin-top: 2.4rem; }
.offer__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.offer__head h3 { font-size: 1.05rem; }
.offer .btn { white-space: normal; height: auto; min-height: 38px; padding: .55rem 1rem; text-align: center; }

.guild-card__link { color: inherit; text-decoration: none; }
.guild-card__link::after { content: ""; position: absolute; inset: 0; }
.guild-card__plan { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.upgrade-chip { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 22px; padding: 0 .55rem; border: 1px solid var(--signal); border-radius: var(--r); color: var(--signal); font: 600 .64rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.upgrade-chip:hover { background: var(--signal); color: var(--signal-ink); }

.plan__bundle { color: var(--muted); margin-top: -.3rem; }
.popover--pick .popover__body { display: grid; gap: .1rem; min-width: 220px; }
.pick-link { display: block; padding: .5rem .6rem; color: var(--text); text-decoration: none; border-radius: var(--r); }
.pick-link:hover { background: var(--panel-raised); color: var(--signal); }

.search-form { display: flex; gap: .6rem; margin-bottom: 1.4rem; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem .8rem; margin: .7rem 0 0; }
.inline-fields label.field { margin: 0; min-width: 150px; flex: 1 1 160px; }
.inline-fields label.check { margin: 0 0 .5rem; }
.inline-fields .qty, .inline-fields .amount { width: 100%; }
.staff-actions { border-top: 1px solid var(--line-soft); margin-top: 1rem; padding-top: .3rem; }
.mini { list-style: none; margin: .6rem 0 0; padding: 0; }
.mini li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--body); }
.mini form { margin: 0; }

.flow > .stats--inline { margin: 0 0 .7rem; }
.flow .stat strong { font-size: 1.45rem; overflow-wrap: anywhere; }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tab { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); text-decoration: none; font-size: .85rem; }
.tab[data-current="true"] { color: var(--text); border-color: var(--signal); }
.pick__list { list-style: none; margin: 0 0 1rem; padding: 0; border: 1px solid var(--line-soft); border-radius: var(--r); }
.pick__item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line-soft); }
.pick__item:last-child { border-bottom: 0; }
.pick__item label.check { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pick__item[data-paused="true"] label.check { color: var(--muted); }
.pick__item input:disabled + span { opacity: .5; }
.pick__actions { display: flex; gap: .6rem; }
.lock-banner__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.row--paused .row-link, .row--paused td.muted { opacity: .6; }
.row--paused .row-link strong { color: var(--muted); }
.panel > .stats--inline, .panel > .notice, .panel > table.data { margin-top: .9rem; }
.launch-form { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-top: 1rem; }
.launch-form label.field { margin: 0; min-width: 14rem; }
.meter { height: 6px; margin: .2rem 0 .8rem; background: var(--panel-sunken); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--led); }
table.data code.slot__id { white-space: nowrap; word-break: normal; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-head--tight { margin-bottom: 1rem; }
.frow__canvas { margin: 0; }
.frow__advanced { margin-top: .4rem; }
.frow__advanced summary { cursor: pointer; color: var(--muted); font: 500 .62rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; padding: .35rem 0; }
.frow__advanced summary:hover { color: var(--signal); }
.frow__advanced textarea { width: 100%; margin-top: .5rem; min-height: 14rem; }

.dsg-slots { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.dsg-slot { display: grid; grid-template-rows: auto 1fr; padding: 0; border: 0; border-radius: 0; }
.dsg-slot__preview { aspect-ratio: 1024 / 360; background: var(--panel-sunken); border-bottom: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; }
.dsg-slot__body { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .65rem; align-content: start; }
.dsg-slot__head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.dsg-slot__head h3 { font-size: 1rem; font-stretch: 112%; }
.dsg-slot__current { margin: 0; color: var(--body); font-size: .9rem; }
.dsg-slot[data-kind="none"] .dsg-slot__current { color: var(--faint); }
.dsg-slot__pick { display: flex; gap: .5rem; margin: 0; }
.dsg-slot__pick select { flex: 1; min-width: 0; }
.dsg-slot__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dsg-slot__actions:empty { display: none; }
.dsg-slot__actions form { margin: 0; }
.dsg-thumb { display: block; width: 100%; height: 100%; object-fit: contain; }
canvas.dsg-thumb { height: auto; max-height: 100%; }
.dsg-thumb--empty { display: grid; place-items: center; align-content: center; gap: .6rem; padding: 1rem; text-align: center; color: var(--faint); font-size: .84rem; background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgb(237 230 214 / .025) 10px 20px); }
.dsg-thumb[data-has-card="false"] span { font: 500 .66rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; }
.dsg-thumb__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dsg-options { border-top: 1px solid var(--line-soft); padding-top: .7rem; margin: 0; display: grid; gap: .6rem; }
.dsg-options fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.dsg-templates, .dsg-assets { list-style: none; margin: 0; padding: 0; }
.dsg-template, .dsg-asset { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; border-top: 1px solid var(--line-soft); }
.dsg-thumb--sm { width: 132px; flex: none; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); }
.dsg-template__text, .dsg-asset__text { flex: 1; min-width: 0; display: grid; gap: .15rem; overflow-wrap: anywhere; }
.dsg-template__actions { display: flex; gap: .5rem; flex: none; }
.dsg-template__actions form, .dsg-asset form { margin: 0; }
.dsg-asset img { width: 64px; height: 64px; object-fit: cover; flex: none; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); }
.dsg-create { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); background: var(--panel-sunken); margin: 0; }
.dsg-create__field { display: grid; gap: .4rem; color: var(--muted); font: 500 .62rem/1.2 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; flex: 1 1 200px; }
.dsg-create__field :is(input, select) { font: .95rem var(--font-sans); letter-spacing: 0; text-transform: none; width: 100%; }
.dsg-create__field input.mono-true { font-family: var(--font-mono); font-size: .85rem; }
.dsg-upload { padding: .9rem 1.2rem; border-top: 1px solid var(--line-soft); }
.list > .lock-banner + .dsg-templates .dsg-template:first-child { border-top: 0; }

.cved { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin: 0; }
.cved > * { min-width: 0; }
.cved-wait { color: var(--muted); padding: 2rem 0; }
.cved-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .5rem .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); position: sticky; top: 0; z-index: 5; }
.cved-bar__group { display: flex; align-items: center; gap: .3rem; }
.cved-bar__group + .cved-bar__group { padding-left: .9rem; border-left: 1px solid var(--line-soft); }
.cved-bar__end { margin-left: auto; }
.cved-bar__label { display: flex; align-items: center; gap: .45rem; color: var(--muted); font: 500 .6rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; }
.cved-bar select, .cved-bar .cved-input { font-family: var(--font-sans); font-stretch: 100%; letter-spacing: 0; text-transform: none; height: 30px; padding-top: 0; padding-bottom: 0; font-size: .82rem; }
.cved-bar .btn:disabled, .cved .btn:disabled { opacity: .45; cursor: not-allowed; }
.cved-zoom { min-width: 3.4rem; text-align: center; font: 500 .72rem/1 var(--font-mono); font-stretch: 87.5%; color: var(--muted); }
.cved-status { font-size: .78rem; color: var(--faint); white-space: nowrap; }
.cved-status[data-status="dirty"] { color: var(--warn); }
.cved-status[data-status="error"] { color: var(--bad); }
.cved-status[data-status="saving"] { color: var(--muted); }
.cved-banner { position: static; transform: none; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.cved-banner[hidden], .cved-messages:empty { display: none; }
.cved-messages > * { margin: 0; }
.cved-plan { margin: 0; }
.cved-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: .8rem; align-items: start; }
.cved-side, .cved-props { display: grid; gap: .8rem; position: sticky; top: 3.6rem; max-height: calc(100dvh - 4.5rem); overflow-y: auto; }
.cved-side > section, .cved-props { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: .8rem; }
.cved-heading { font-size: .7rem; font-family: var(--font-mono); font-stretch: 87.5%; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.cved-center { display: grid; gap: .6rem; min-width: 0; }
.cved-stage { position: relative; overflow: auto; max-height: 72vh; min-height: 220px; padding: 16px; background-color: var(--bg-deep); background-image: linear-gradient(45deg, rgb(237 230 214 / .035) 25%, transparent 25%, transparent 75%, rgb(237 230 214 / .035) 75%), linear-gradient(45deg, rgb(237 230 214 / .035) 25%, transparent 25%, transparent 75%, rgb(237 230 214 / .035) 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; border: 1px solid var(--line); border-radius: var(--r-panel); display: grid; place-items: center; }
.cved-stage:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.cved-stage[data-pan="true"] { cursor: grab; }
.cved-stage__surface { position: relative; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px -20px #000; }
.cved-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cved-stage__overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: none; cursor: default; }
.cved-select { fill: none; stroke: var(--signal); }
.cved-select--hidden { stroke-dasharray: 4 3; opacity: .7; }
.cved-handle { fill: var(--bg-deep); stroke: var(--signal); cursor: pointer; }
.cved-handle--nw, .cved-handle--se { cursor: nwse-resize; }
.cved-handle--ne, .cved-handle--sw { cursor: nesw-resize; }
.cved-handle--n, .cved-handle--s { cursor: ns-resize; }
.cved-handle--e, .cved-handle--w { cursor: ew-resize; }
.cved-handle--rotate { fill: var(--signal); cursor: grab; }
.cved-handle-line { stroke: var(--signal); }
.cved-guide { stroke: var(--led); stroke-dasharray: 3 3; }
.cved-anchor { fill: rgb(127 217 98 / .06); stroke: var(--led); stroke-dasharray: 5 4; }
.cved-anchor__label { fill: var(--led); font-family: var(--font-mono); }
.cved-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.cved-issues:empty { display: none; }
.cved-layers__tools { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .5rem; }
.cved-tool { height: 26px; padding: 0 .5rem; font-size: .64rem; }
.cved-layers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 40vh; overflow-y: auto; }
.cved-layer { display: grid; grid-template-columns: 12px 3.2rem minmax(0, 1fr) auto; align-items: center; gap: .4rem; padding: .4rem .45rem; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; font-size: .84rem; color: var(--body); user-select: none; }
.cved-layer:hover { background: var(--panel-raised); }
.cved-layer[aria-selected="true"] { background: var(--signal-soft); border-color: color-mix(in oklab, var(--signal) 45%, transparent); color: var(--text); }
.cved-layer:focus-visible { outline: 2px solid var(--signal); outline-offset: -1px; }
.cved-layer[data-hidden="true"] .cved-layer__name { opacity: .55; }
.cved-layer[data-drop="true"] { box-shadow: inset 0 2px 0 var(--signal); }
.cved-layer[data-dragging="true"] { opacity: .5; }
.cved-layer__grip { color: var(--faint); font-size: .62rem; letter-spacing: -.1em; cursor: grab; }
.cved-layer__type { font: 500 .56rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cved-layer__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cved-layer__flag { font: 500 .56rem/1 var(--font-mono); text-transform: uppercase; color: var(--warn); }
.cved-layer__rename { width: 100%; padding: .2rem .4rem; font-size: .84rem; }
.cved-layers__empty { color: var(--faint); font-size: .84rem; padding: .4rem; }
.cved-layers__bg { margin-top: .5rem; width: 100%; text-align: left; padding: .45rem .55rem; border: 1px dashed var(--line-strong); border-radius: var(--r); background: transparent; color: var(--muted); font: inherit; font-size: .84rem; cursor: pointer; }
.cved-layers__bg[aria-pressed="true"] { border-style: solid; border-color: color-mix(in oklab, var(--signal) 45%, transparent); color: var(--text); background: var(--signal-soft); }
.cved-assets__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cved-assets__head .cved-heading { margin: 0; }
.cved-assets > * + * { margin-top: .6rem; }
.cved-assets__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; max-height: 30vh; overflow-y: auto; }
.cved-asset { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: .1rem .5rem; font-size: .8rem; }
.cved-asset__img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); grid-row: span 2; }
.cved-asset__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cved-asset__actions { grid-column: 2 / -1; display: flex; gap: .25rem; }
.cved-asset__actions .btn { height: 24px; padding: 0 .45rem; font-size: .6rem; }
.cved-upload { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cved-upload__bar { flex: 1; min-width: 6rem; height: 6px; accent-color: var(--signal); }
.cved-upload__bar[hidden] { display: none; }
.cved-upload__status:empty { display: none; }
.cved-assets--compact { background: none; border: 0; padding: 0; }
.cved-props__body { display: grid; gap: .8rem; }
.cved-props__what { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.cved-group { border: 0; border-top: 1px solid var(--line-soft); margin: 0; padding: .6rem 0 0; display: grid; gap: .55rem; min-width: 0; }
.cved-group__title { padding: 0 .4rem 0 0; color: var(--faint); font: 500 .58rem/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; }
.cved-field { display: grid; gap: .3rem; min-width: 0; }
.cved-field[data-input="number"], .cved-field[data-input="select"] { grid-template-columns: minmax(0, 1fr) 7.5rem; align-items: center; }
.cved-field[data-input="number"] .lock-line, .cved-field[data-input="select"] .lock-line { grid-column: 1 / -1; }
.cved-field__label { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.cved-field[data-locked="true"] .cved-field__label { color: var(--faint); }
.cved-input { width: 100%; min-width: 0; padding: .35rem .5rem; font-size: .85rem; }
textarea.cved-input { min-height: 3.6rem; }
.cved-input.mono { font-family: var(--font-mono); font-stretch: 87.5%; font-size: .78rem; }
.cved-color { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .35rem; }
.cved-swatch { width: 34px; height: 32px; padding: 2px; cursor: pointer; }
.cved-input:disabled, .cved-swatch:disabled, .cved-check:disabled { opacity: .5; cursor: not-allowed; }
.cved-vars { justify-self: start; height: 24px; font-size: .6rem; }
.cved-lockline { display: block; margin: 0; font-size: .74rem; line-height: 1.45; }
.cved-lockline .cved-lock { vertical-align: -1px; margin-right: .3rem; }
.cved-lockline a { margin-left: .35rem; }
.cved-lock { width: 12px; height: 12px; fill: currentColor; flex: none; }
.cved-dialog { width: min(560px, calc(100vw - 2rem)); max-height: min(80vh, 720px); padding: 1.1rem 1.2rem; color: var(--body); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-panel); box-shadow: 0 30px 80px -20px #000; }
.cved-dialog::backdrop { background: rgb(10 9 7 / .7); }
.cved-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cved-dialog__text { margin: .6rem 0 1rem; }
.cved-dialog__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.cved-dialog .hint { margin-bottom: .7rem; }
.cved-drawer { margin-right: 0; margin-top: 0; height: 100dvh; max-height: 100dvh; width: min(720px, 100vw); border-radius: 0; border-width: 0 0 0 1px; }
.cved-render__img { display: block; max-width: 100%; height: auto; margin: .4rem 0 .5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-deep); }
.cved-render__wait { color: var(--muted); padding: 2rem 0; }
.cved-render__issues ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.cved-vars__list { display: grid; gap: .8rem; margin-top: .7rem; max-height: 55vh; overflow-y: auto; }
.cved-vars__list ul { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: 2px; }
.cved-vars__dialog .cved-input { margin-top: .2rem; }
.cved-var { width: 100%; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: .1rem .7rem; text-align: left; padding: .45rem .55rem; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--body); font: inherit; font-size: .84rem; cursor: pointer; }
.cved-var:hover, .cved-var:focus-visible { background: var(--panel-raised); border-color: var(--line); }
.cved-var code { color: var(--signal); grid-row: span 2; align-self: center; }
.cved-var__sample { color: var(--faint); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cved-keys { width: 100%; border-collapse: collapse; font-size: .86rem; }
.cved-keys th, .cved-keys td { text-align: left; padding: .4rem .3rem; border-top: 1px solid var(--line-soft); vertical-align: top; }
.cved-keys th { width: 42%; font-weight: 400; }
.cved-keys kbd { font-size: .74rem; color: var(--text); }
@media (max-width: 1280px) {
	.cved-body { grid-template-columns: 220px minmax(0, 1fr); }
	.cved-props { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 760px) {
	.cved-body { grid-template-columns: minmax(0, 1fr); }
	.cved-side { position: static; max-height: none; }
	.cved-bar__end { margin-left: 0; }
	.cved-bar__group { flex-wrap: wrap; }
	.cved-bar__group + .cved-bar__group { padding-left: 0; border-left: 0; }
	.cved-center { order: -1; }
	.dsg-template { flex-wrap: wrap; }
	.dsg-thumb--sm { width: 100%; }
}
.cved [hidden], .cved-assets [hidden], .cved-dialogs [hidden] { display: none !important; }
.dsg-slot__pick select { height: 30px; padding-top: 0; padding-bottom: 0; font-size: .85rem; }
.cved--studio .cved-side { max-height: calc(100dvh - 4.5rem); }
.cved-variant { margin: 0; border-color: color-mix(in oklab, var(--led) 45%, transparent); }
.cved-options > * + * { margin-top: .6rem; }
.cved-options__list { display: grid; gap: .6rem; }
.cved-option { border: 1px solid var(--line-soft); border-radius: var(--r); margin: 0; padding: .55rem .6rem .7rem; display: grid; gap: .5rem; min-width: 0; }
.cved-option legend { display: flex; align-items: center; gap: .4rem; padding: 0 .3rem; color: var(--text); font-size: .84rem; font-weight: 600; max-width: 100%; }
.cved-option legend span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cved-option__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.cved-option__tools .btn { height: 26px; padding: 0 .5rem; font-size: .62rem; }
.cved-option .check { font-size: .82rem; }
.cved-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cved-choice { display: grid; gap: .3rem; padding: .45rem; border-radius: var(--r); background: var(--panel-sunken); }
.cved-choice[data-recording="true"], .cved-option__tools[data-recording="true"] { outline: 1px dashed var(--led); }
.cved-anchors > * + * { margin-top: .6rem; }
.cved-anchors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.cved-anchors__grid .cved-field { grid-template-columns: 1.2rem minmax(0, 1fr); align-items: center; }
.cved-bind { justify-self: start; height: 24px; font-size: .6rem; }
.cved-bind__list { display: grid; gap: .4rem; }
.cved-bind__item { justify-content: flex-start; gap: .5rem; height: auto; padding: .45rem .6rem; text-align: left; }
.cved-bind__item[aria-pressed="true"] { border-color: var(--signal); }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid var(--line-strong); flex: none; }
.cved-checks { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .35rem; }
.cved-checks li { display: flex; gap: .5rem; align-items: baseline; font-size: .88rem; }
.cved-checks li::before { content: "✓"; color: var(--led); font-weight: 700; }
.cved-checks li[data-ok="false"]::before { content: "✕"; color: var(--bad); }
.cved-publish__issues ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .2rem; font-size: .84rem; overflow-wrap: anywhere; }
.cved-publish__result:empty { display: none; }
.cved-publish__result > * { margin: .4rem 0 .8rem; }
.studio-below { margin-top: 1.2rem; }
.studio-row { display: flex; align-items: center; gap: .8rem; }
.studio-row__thumb { width: 96px; aspect-ratio: 1024 / 360; object-fit: cover; flex: none; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); }
.studio-row__thumb--empty { display: block; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgb(237 230 214 / .05) 6px 12px); }
.studio-versions { list-style: none; margin: 0; padding: 0 1.1rem 1.1rem; display: grid; gap: .8rem; }
.studio-version { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: .8rem; align-items: start; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.studio-version[data-current="true"] .studio-version__img { border-color: color-mix(in oklab, var(--led) 55%, transparent); }
.studio-version__img { width: 160px; aspect-ratio: 1024 / 360; object-fit: contain; border-radius: var(--r); background: var(--panel-sunken); border: 1px solid var(--line-soft); }
.studio-version__img--empty { display: grid; place-items: center; color: var(--faint); font: 500 .6rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.studio-version__text { display: grid; gap: .25rem; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; }
@media (max-width: 760px) {
	.studio-version { grid-template-columns: minmax(0, 1fr); }
	.studio-version__img { width: 100%; }
	.studio-row__thumb { width: 72px; }
}
.cved-studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; align-items: start; }
.cved-anchors__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: .6rem; }
.cved-studio > section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: .8rem; }
.cved-studio > section:only-child { grid-column: 1 / -1; }
.cved-studio .cved-options__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; }
.cved-studio .cved-options > .cved-add { max-width: 220px; }
.lookup-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.lookup { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin: 0; }
.lookup .field { flex: 1 1 12rem; min-width: 0; margin: 0; }
.panel--flush.grants-history { overflow-x: auto; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1.2rem; margin: 0 0 .9rem; }
.facts dt { color: var(--muted); font-size: .86rem; }
.facts dd { margin: 0; color: var(--text); }

.shop-slots { margin-bottom: .2rem; }
.shop-pass { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.shop-pass__text { display: grid; gap: .3rem; min-width: 0; flex: 1 1 18rem; }
.shop-pass__text p { margin: 0; color: var(--muted); }
.shop-pass__side { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.shop-card { display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; min-width: 0; }
.shop-card[data-owned="true"] { background: color-mix(in oklab, var(--panel) 92%, var(--led)); }
.shop-card__preview { display: grid; place-items: center; aspect-ratio: 1024 / 360; background: var(--panel-sunken); border-bottom: 1px solid var(--line-soft); overflow: hidden; color: var(--faint); font-size: .8rem; text-decoration: none; }
.shop-card__preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-card__body { padding: .9rem 1.1rem 1.1rem; display: grid; gap: .45rem; align-content: start; min-width: 0; }
.shop-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.shop-card__head h3 { font-size: 1rem; font-stretch: 112%; overflow-wrap: anywhere; }
.shop-card__meta { margin: 0; color: var(--faint); font: 500 .66rem/1.3 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; }
.shop-card__text { margin: 0; color: var(--body); font-size: .88rem; overflow-wrap: anywhere; }
.shop-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.shop-pills:empty { display: none; }
.shop-detail__side .shop-pills { margin: .7rem 0; }
.shop-fonts { list-style: none; margin: 0; padding: 0; }
.shop-font { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1.2rem; border-top: 1px solid var(--line-soft); }
.shop-font__text { display: grid; gap: .1rem; min-width: 0; }
.shop-font__side { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.shop-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.shop-detail__main, .shop-detail__side { display: grid; gap: 1rem; min-width: 0; }
.shop-detail__side { align-content: start; }
.shop-stage { display: grid; place-items: center; aspect-ratio: 1024 / 360; background: var(--panel-sunken); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; color: var(--faint); font-size: .84rem; }
.shop-stage[aria-busy="true"] { opacity: .65; }
.shop-stage img, .shop-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-status { margin: .5rem 0 0; min-height: 1.2em; }
.shop-status[data-tone="bad"] { color: var(--bad); }
.shop-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.shop-actions:not(:has(:not([hidden]))) { display: none; }
.shop-options { border: 0; border-top: 1px solid var(--line-soft); margin: 1rem 0 0; padding: .9rem 0 0; display: grid; gap: .8rem; }
.shop-option { display: grid; gap: .4rem; min-width: 0; }
.shop-option__label { color: var(--body); font-size: .88rem; padding: 0; }
.shop-option__control { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.shop-option__control input[type="color"] { width: 44px; height: 30px; padding: 2px; }
.shop-option__choices { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .4rem; }
.shop-option__toggle { margin: 0; }
.swatches { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.swatch { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--swatch, transparent); cursor: pointer; }
.swatch[hidden] { display: none; }
.swatch:hover { border-color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-choice { position: relative; display: inline-flex; margin: 0; }
.chip-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-choice span { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); font-size: .85rem; }
.chip-choice input:checked + span { color: var(--text); border-color: var(--signal); }
.chip-choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (max-width: 900px) {
	.shop-detail { grid-template-columns: minmax(0, 1fr); }
}

.shop-options[data-off="true"] { display: none; }
.inv { display: grid; gap: 1rem; margin: 1rem 0 0; }
.inv-slots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.inv-slot { display: grid; gap: .8rem; align-content: start; min-width: 0; }
.inv-slot__head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.inv-field { display: grid; gap: .35rem; margin: 0; min-width: 0; }
.inv-field label { color: var(--muted); font: 500 .62rem/1.2 var(--font-mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase; }
.inv-field .muted { font-size: .88rem; }
.inv-slot select, .inv-pieces select { width: 100%; }
.inv-slot .shop-status { margin: .4rem 0 0; }
.inv-slot .shop-options { margin: 0; }
.inv-pieces__grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: .9rem; }
.inv-bar { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.inv-clear { margin: 0; }
.shop-buy { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; align-items: center; }
.shop-buy select { flex: 1 1 10rem; min-width: 0; }
.shop-buybox { display: grid; gap: .8rem; align-content: start; }
.shop-buybox .panel__head { margin-bottom: 0; }
.shop-buybox p { margin: 0; }
.shop-font__buy { flex: 1 1 18rem; display: grid; gap: .4rem; justify-items: end; min-width: 0; }
.shop-font__buy .shop-buy { justify-content: flex-end; width: 100%; }
.shop-font__buy .hint { margin: 0; text-align: right; }

/* Responsive tiers. Phones and tablets collapse the rail at 900px (rules above); wide screens
   widen the content column, centre it in the space beside the rail and scale the rem. */
@media (min-width: 1600px) {
	:root { --content-max: 1440px; --site-max: 1440px; }
}
@media (min-width: 2000px) {
	html { font-size: 112.5%; }
	:root { --content-max: 1760px; --site-max: 1680px; }
	.stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.stack > .panel--flush, .stack > .notice, .stack > .alert, .stack > .lock-banner { grid-column: 1 / -1; }
}
@media (min-width: 2800px) {
	html { font-size: 125%; }
	:root { --content-max: 2200px; --site-max: 2000px; }
}
@media (max-width: 900px) {
	.panel:has(table.data) { overflow-x: auto; }
	.panel:has(table.data) table.data { min-width: 520px; }
	.panel--flush.list .list__head { position: sticky; left: 0; }
}
@media (max-width: 480px) {
	.app-main { padding-inline: .9rem; }
	.site-main, .site-top__in, .site-foot__in { padding-inline: 14px; }
	.site-top__in { gap: 1rem; }
	.page-head h1 { font-size: 1.3rem; }
	.stats { grid-template-columns: minmax(0, 1fr); }
	.stat, .stat:last-child { border-right: 0; border-bottom: 1px solid var(--line); }
	.stat:last-child { border-bottom: 0; }
	.rk-cols, .rk-cols--3, .rk-cols--4 { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
	.btn { min-height: 44px; }
	.btn--sm { min-height: 38px; }
	.icon-btn { width: 40px; height: 40px; }
	.rail__link { padding-block: .7rem; }
	.rail__sublink { padding-block: .55rem; }
	.picker__opt { padding-block: .65rem; }
	.switch { height: 30px; }
	.switch::after { height: 24px; }
	input, select, textarea { font-size: 16px; }
}
.panel__foot { padding: .8rem 1.1rem; border-top: 1px solid var(--line-soft); }
table.invoices td:last-child { white-space: nowrap; }
