/* MarkLoader Control — графитовая тема */
:root {
	color-scheme: dark;
	--bg: #0b0b0d;
	--shell: #0e0e11;
	--surface: #141417;
	--surface-2: #18181c;
	--field: #1d1d21;
	--raised: #28282d;
	--hover: #232327;
	--line: rgb(255 255 255 / 7%);
	--line-2: rgb(255 255 255 / 12%);
	--ink: #ededef;
	--ink-2: #c6c6cb;
	--muted: #8f8f97;
	--faint: #66666e;
	--silver: #e4e4e7;
	--signal: #f0a93c;
	--ok: #84cf9f;
	--info: #8fb6e6;
	--bad: #ec8f86;
	--warn: #e9b65c;
	--off: #74747c;
	--blue: #e4e4e7;
	--radius: 14px;
	--card-shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 16px 34px -24px rgb(0 0 0 / 90%);
	--mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
	font: 14px/1.45 Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, .brand { letter-spacing: -.03em; }
h2 { font-size: 15px; line-height: 1.3; font-weight: 620; }
p, dt { color: var(--muted); }
button, input, select { font: inherit; }
button, :where(a.tab-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 13px;
	border: 1px solid var(--line-2);
	border-radius: 9px;
	color: var(--ink);
	background: rgb(255 255 255 / 4%);
	font-weight: 550;
	font-size: 13px;
	cursor: pointer;
}
button:hover, :where(a.tab-button):hover { background: rgb(255 255 255 / 8%); }
button:disabled { opacity: .45; cursor: default; }
button, a, summary { touch-action: manipulation; }
a { color: inherit; }
.icon { width: 16px; height: 16px; flex: none; }
:focus-visible { outline: 2px solid rgb(232 232 236 / 70%); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
code, .record-id, .issue-date, .secret-output, kbd, .mono { font-family: var(--mono); }
.mono { font-size: 12.5px; }
.primary { background: var(--silver); color: #111114; border-color: transparent; font-weight: 620; }
.primary:hover { background: #fff; }
.primary .icon { color: #111114; }
.ghost { background: rgb(255 255 255 / 4%); }
.danger { color: var(--bad); }
.compact { padding: 6px 11px; font-size: 12.5px; }
.link-button { padding: 3px 6px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 550; }
.link-button:hover { color: var(--ink); background: rgb(255 255 255 / 5%); }

/* Статусы и оттенки */
.active { --status: var(--ok); }
.created { --status: #d4d4d9; }
.frozen { --status: var(--info); }
.banned { --status: var(--bad); }
.expired { --status: var(--off); }
.hue-0 { --hue-bg: #c4513c; --hue-ink: #2b110c; }
.hue-1 { --hue-bg: #c99a45; --hue-ink: #2f220a; }
.hue-2 { --hue-bg: #62a07c; --hue-ink: #0f251a; }
.hue-3 { --hue-bg: #7093c8; --hue-ink: #111d31; }
.hue-4 { --hue-bg: #9e80c6; --hue-ink: #22183a; }
.hue-5 { --hue-bg: #bd6e87; --hue-ink: #2f121d; }
.hue-admin { --hue-bg: #dcdce0; --hue-ink: #18181b; }

/* Фон: топографическая карта */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.backdrop.ready canvas { opacity: 1; }
.backdrop .lit {
	-webkit-mask-image: radial-gradient(circle 320px at var(--mx, 72%) var(--my, 18%), #000 0, rgb(0 0 0 / 55%) 35%, transparent 100%);
	mask-image: radial-gradient(circle 320px at var(--mx, 72%) var(--my, 18%), #000 0, rgb(0 0 0 / 55%) 35%, transparent 100%);
}
.backdrop.ready:not(.tracking) .lit { opacity: .5; }
.backdrop::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 85% at 62% 8%, transparent 35%, rgb(11 11 13 / 72%) 100%),
		linear-gradient(180deg, transparent 60%, rgb(11 11 13 / 55%));
}
main, .notice { position: relative; z-index: 1; }

/* Каркас */
.workspace {
	--gutter: 14px;
	display: grid;
	grid-template-columns: clamp(208px, 16%, 264px) minmax(0, 1fr);
	min-height: 100dvh;
}
.mast {
	position: sticky;
	top: 0;
	z-index: 2;
	align-self: start;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	padding: 0 14px 14px;
	border-right: 1px solid var(--line);
	background: rgb(13 13 16 / 78%);
	backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 680; }
.brand-mark { display: inline-flex; width: 32px; color: var(--silver); }
.brand-mark svg { width: 100%; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; }
.mast .brand { height: 78px; padding: 0 10px; }
#navigation { display: grid; gap: 14px; margin-top: 6px; }
.nav-group { display: grid; gap: 3px; }
.nav-group-title { margin: 0 12px 4px; color: var(--faint); font-size: 10.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.nav-group + .nav-group { padding-top: 14px; border-top: 1px solid var(--line); }
.nav-group:not(:has(.tab-button:not([hidden]))) { display: none; }
.tab-button {
	position: relative;
	min-height: 38px;
	justify-content: flex-start;
	gap: 11px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: var(--ink-2);
	font-size: 13.5px;
	text-align: left;
}
.tab-button:hover { color: var(--ink); background: rgb(255 255 255 / 4%); }
.tab-button .icon { width: 17px; height: 17px; color: var(--muted); }
.tab-button.active { color: var(--ink); background: rgb(255 255 255 / 7%); border-color: var(--line); }
.tab-button.active .icon { color: var(--ink); }
.tab-button.active::before { content: ''; position: absolute; left: -15px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--signal); }
.tab-button small { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: rgb(255 255 255 / 6%); color: var(--muted); font: 11px/1.5 var(--mono); text-align: center; }
.tab-button small:empty { display: none; }
.tab-button .external { width: 13px; height: 13px; margin-left: auto; color: var(--faint); }
a.tab-button { text-decoration: none; }
.mast-foot { margin-top: auto; padding-top: 14px; }
.health { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 2.5%); }
.health-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.health.ok .health-dot { background: var(--ok); box-shadow: 0 0 0 3px rgb(132 207 159 / 14%); }
.health.error .health-dot { background: var(--bad); box-shadow: 0 0 0 3px rgb(236 143 134 / 14%); }
.health-text { display: grid; min-width: 0; line-height: 1.3; }
.health-text strong { font-size: 12.5px; font-weight: 600; }
.health-text small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.main-area {
	--panel-width: min(calc(100% - 40px), 1280px);
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.content { flex: 1; min-height: 0; padding: 4px 0 18px; }
.content > section, .sync-footer { width: var(--panel-width); margin-inline: auto; }
.page-head, .utilities, .panel-heading, .dialog-heading, .artifact-heading { display: flex; align-items: center; }
.page-head { gap: 14px; width: var(--panel-width); min-height: 84px; margin-inline: auto; padding: 18px 0 14px; }
.crumb { display: grid; gap: 4px; min-width: 0; margin-right: auto; }
.crumb-path { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 10.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.crumb-path .icon { width: 11px; height: 11px; }
.crumb-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.crumb h1 { color: var(--ink); font-size: 23px; font-weight: 640; letter-spacing: -.035em; line-height: 1.15; }
.page-note { color: var(--muted); font-size: 13px; }
.utilities { gap: 8px; }
.page-head .utilities:not(:has(> button:not([hidden]))) { display: none; }
.utilities > * { min-height: 36px; white-space: nowrap; }
.session { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: rgb(255 255 255 / 3%); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #5a5a62, #2c2c32); color: var(--ink); }
.avatar .icon { width: 15px; height: 15px; }
.session strong { font-size: 12.5px; font-weight: 560; }
.icon-button { width: 32px; height: 32px; padding: 0; color: var(--muted); }
#logout-button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; }
#logout-button:hover { color: var(--ink); background: rgb(255 255 255 / 7%); }

/* Карточки */
.metric, .activity, .composition-panel, .insight, .registry, .stat-tile, .bundle-row, .person-card,
.product-row, .artifact-card, .artifact-history, .launches-panel, .launch-chart-panel, .empty-card, .pipeline {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgb(255 255 255 / 2.2%), transparent 120px), var(--surface);
	box-shadow: var(--card-shadow);
}
.panel { min-width: 0; }
.panel-heading, .dialog-heading, .artifact-heading { justify-content: space-between; gap: 10px; }
.panel-heading { padding: 15px 18px 8px; }
.panel-hint { color: var(--muted); font-size: 12px; }

/* Обзор */
#overview-tab { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.metric { display: grid; grid-template-rows: auto auto 1fr; min-width: 0; min-height: 152px; padding: 15px 17px 14px; overflow: hidden; }
.metric dt { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 520; }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink-2); }
.metric-icon .icon { width: 14px; height: 14px; }
.metric-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 13px; }
.metric-value strong, .chart-meta strong { font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-value strong { font-size: clamp(28px, 2.3vw, 36px); line-height: 1; }
.metric-note { color: var(--muted); font-size: 12px; }
.metric-visual { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; align-self: end; min-height: 34px; margin-top: 12px; }
.metric-visual.chips { flex-flow: row wrap; align-content: flex-end; justify-content: flex-start; gap: 6px; }
.sparkline { display: block; width: 100%; height: 34px; overflow: visible; }
.spark-line { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgb(240 169 60 / 9%); }
.meter { display: block; width: 100%; height: 6px; overflow: hidden; border-radius: 99px; background: var(--field); }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8d8d95, #e6e6e9); }
.metric .meter > span, .bundle-progress .meter > span { background: var(--ok); }
.meter.thin { width: 76px; height: 4px; }
.meter-legend { color: var(--muted); font-size: 11.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: var(--field); color: var(--ink-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chip.muted { color: var(--muted); }
.chip-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--hue-bg, var(--muted)); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.activity { grid-column: span 8; display: flow-root; }
.composition-panel { grid-column: span 4; display: flex; flex-direction: column; align-self: stretch; }
.insight { grid-column: span 4; align-self: stretch; }
.recent-keys-panel, .recent-launches-panel { grid-column: span 6; }
.seller-workspace [data-admin-only] { display: none !important; }
.seller-workspace .insight { grid-column: span 6; }
.seller-workspace .recent-keys-panel { grid-column: 1 / -1; }
.activity .panel-heading { flex-wrap: wrap; padding: 15px 18px 4px; }
.chart-tools { display: flex; align-items: center; gap: 8px; }
.chart-tools .icon-button { width: 30px; height: 30px; }
.chart-modes { margin: 8px 18px; max-width: calc(100% - 36px); }
.chart-modes button { min-height: 30px; }
#activity-title { display: flex; align-items: center; gap: 9px; }
#activity-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--signal); }
.segments { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgb(0 0 0 / 28%); }
.segments button { padding: 4px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11.5px; }
.segments button:hover { color: var(--ink); background: transparent; }
.segments [aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.chart-meta { display: flex; align-items: center; gap: 12px; padding: 4px 18px 0; }
.chart-meta strong { font-size: 36px; line-height: 1.15; }
.chart-meta div { display: grid; gap: 1px; color: var(--muted); font-size: 11.5px; }
#period-label { color: var(--ink-2); }
#history-chart { height: clamp(170px, 22vh, 260px); margin: 4px 17px 15px; }
#history-chart svg { display: block; width: 100%; height: 100%; }
#history-chart text { fill: var(--muted); font: 10px var(--mono); }
.grid-line { stroke: rgb(255 255 255 / 7%); stroke-dasharray: 2 5; }
.chart-line { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-guide { stroke: rgb(240 169 60 / 50%); stroke-dasharray: 3 4; }
.chart-marker { fill: var(--signal); stroke: var(--surface); stroke-width: 2; }
.chart-tip-bg { fill: #222226; stroke: #3c3c42; }
#history-chart .chart-tip-label { fill: var(--ink); font-size: 11px; }
#history-chart .chart-empty { font: 13px "Segoe UI", sans-serif; }

.composition { flex: 1; display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 20px; padding: 10px 18px 20px; }
.donut-wrap { position: relative; width: 128px; aspect-ratio: 1; }
.donut { display: block; width: 100%; height: 100%; }
.donut-track { fill: none; stroke: var(--field); stroke-width: 13; }
.donut-piece { fill: none; stroke: var(--status); stroke-width: 13; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-size: 26px; font-weight: 620; letter-spacing: -.04em; line-height: 1.05; }
.donut-center span { color: var(--muted); font-size: 11px; }
.legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 34px; align-items: center; gap: 9px; font-size: 12.5px; }
.legend li.zero { opacity: .42; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--status); }
.legend-label { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.legend strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.legend small { color: var(--muted); font: 11px var(--mono); text-align: right; }

.feed { display: grid; gap: 2px; margin: 0; padding: 2px 9px 11px; list-style: none; }
.feed-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px 9px; border-radius: 10px; }
.feed-item:hover { background: rgb(255 255 255 / 3%); }
.feed-tile, .feed-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--hue-bg); color: var(--hue-ink); font-size: 11px; font-weight: 700; }
.feed-tile .icon { width: 62%; height: 62%; }
.feed-main { display: grid; min-width: 0; }
.feed-main strong { overflow: hidden; font-size: 13px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.feed-main small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.feed-side { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.feed-item.warn .feed-time { color: var(--warn); }
.feed-item.warn .meter > span { background: var(--warn); }
.feed-empty { padding: 22px 8px; color: var(--muted); font-size: 13px; text-align: center; }
.breakdown { display: grid; gap: 15px; margin: 0; padding: 8px 18px 18px; list-style: none; }
.breakdown-row { display: grid; gap: 8px; }
.breakdown-head { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.breakdown-head strong { overflow: hidden; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-head .feed-tile, .breakdown-head .feed-avatar { width: 26px; height: 26px; border-radius: 8px; }
.breakdown-value { color: var(--muted); font: 11.5px var(--mono); }
.stack-bar { display: flex; gap: 2px; width: 100%; height: 8px; overflow: hidden; border-radius: 99px; background: var(--field); }
.stack-bar.slim { height: 6px; }
.stack-piece { flex: 1 1 0; min-width: 3px; background: var(--status); }
.seller-meter > span { background: linear-gradient(90deg, #6f6f77, #dadade); }

/* Плитки статистики */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-tile { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 14px 16px; border-radius: 12px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 24px; font-weight: 610; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-note { overflow: hidden; color: var(--faint); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.stat-tile.warn .stat-value { color: var(--warn); }
.stat-tile.live .stat-value { display: flex; align-items: center; gap: 9px; color: var(--info); }
.stat-tile.live .stat-value::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgb(143 182 230 / 16%); }

.empty-card { display: grid; justify-items: center; gap: 8px; padding: 40px 24px; text-align: center; }
.empty-card strong { font-size: 15px; font-weight: 600; }
.empty-card p { max-width: 52ch; font-size: 13px; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); color: var(--ink-2); }
.empty-icon .icon { width: 22px; height: 22px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; gap: 12px; }
.card-grid:empty { display: none; }

.file-tab { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: rgb(255 255 255 / 5%); font: 10px/1.5 var(--mono); }
.file-tab.exe { border-color: transparent; background: #dcdce0; color: #17171a; }
.file-tab.dll { border-color: transparent; background: #c99a45; color: #2f220a; }
.issue-date { margin-right: auto; }
.sync-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; padding: 13px 0 22px; color: var(--muted); font: 11px var(--mono); }
.sync-footer .icon-button { width: 29px; height: 29px; }

/* Таблицы */
.registry { min-width: 0; padding: 12px; background: var(--surface); }
.table-wrap { position: relative; overflow-x: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 540; white-space: nowrap; background: var(--field); }
td, th { padding: 12px; }
td { font-size: 13px; }
th:first-child, td:first-child { border-radius: 7px 0 0 7px; }
th:last-child, td:last-child { border-radius: 0 7px 7px 0; }
tbody tr:nth-child(even) { background: var(--field); }
tbody tr:hover { background: var(--hover); }
.column-title, .product-name { display: flex; align-items: center; gap: 7px; }
.column-title .icon { width: 14px; height: 14px; }
.product-name { gap: 10px; overflow-wrap: anywhere; }
.product-icon { display: inline-grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--hue-bg, #3a3a40); color: var(--hue-ink, var(--ink)); font: 600 11px var(--mono); }
.record-id { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.cell-note { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.key-full { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: 12px/1.5 var(--mono); text-align: left; white-space: normal; overflow-wrap: anywhere; }
button.key-full:hover { color: #fff; background: transparent; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
button.key-full { word-break: break-all; }
.status, .artifact-state { display: inline-flex; align-items: center; gap: 7px; color: var(--status, var(--muted)); font-size: 12px; }
.status { padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--status, var(--muted)) 13%, var(--surface)); font-size: 11px; white-space: nowrap; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.empty { padding: 24px 10px; text-align: center; }
.filters, .pager { display: flex; align-items: center; gap: 12px; padding: 15px 0; }
.filters select { width: auto; max-width: 32%; }
.search-field { position: relative; display: flex; align-items: center; flex: 1; }
.search-field > .icon { position: absolute; left: 13px; color: var(--muted); }
.search-field input { margin: 0; padding-left: 40px; padding-right: 70px; }
.search-hint { position: absolute; right: 10px; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); font-size: 10.5px; pointer-events: none; }
.registry table { min-width: 745px; }
.registry td:first-child { width: 28%; min-width: 155px; }
.registry td:nth-child(2) { min-width: 116px; }
.registry td:nth-child(3) { min-width: 130px; }
.registry .action { padding: 6px; border: 0; background: transparent; color: var(--ink-2); }
.registry .action:hover { background: var(--raised); color: var(--ink); }
.filters { padding: 0 0 12px; }
.pager { position: relative; flex-wrap: wrap; justify-content: center; color: var(--muted); font: 12px var(--mono); }
.pager > div { display: flex; align-items: center; padding: 2px; border-radius: 10px; background: var(--field); }
.pager .icon-button { border: 0; background: transparent; }
.pager .icon-button:hover:not(:disabled) { background: var(--raised); }
#rows-range { position: absolute; left: 3px; }

/* Поля */
label { display: block; font-size: 12px; font-weight: 560; color: var(--ink-2); }
input, select {
	width: 100%;
	min-width: 0;
	min-height: 39px;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--field);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}
input:hover, select:hover { border-color: var(--line-2); }
input:focus { border-color: rgb(255 255 255 / 22%); }
input:focus-visible, select:focus-visible { outline-width: 1px; outline-offset: 1px; }
input::placeholder { color: var(--faint); }
label > input, label > select, label > .field-pair { display: block; margin-top: 6px; }
label > .field-pair { display: flex; gap: 8px; }
input[type="file"] { font-size: 12px; }
input::file-selector-button { margin-right: 5px; padding: 4px 8px; border: 0; background: var(--raised); color: var(--ink); cursor: pointer; }

/* Связки */
#bundles-list { align-items: start; }
.bundle-row { min-width: 0; }
.bundle-row[open] { grid-column: 1 / -1; }
.bundle-row:hover:not([open]) { border-color: var(--line-2); }
.bundle-summary { display: grid; gap: 15px; padding: 16px; list-style: none; cursor: pointer; }
.bundle-summary::-webkit-details-marker { display: none; }
.bundle-row[open] .bundle-summary { border-bottom: 1px solid var(--line); }
.bundle-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bundle-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--hue-bg); color: var(--hue-ink); }
.bundle-icon .icon { width: 19px; height: 19px; }
.bundle-title { display: grid; min-width: 0; }
.bundle-title strong { overflow-wrap: anywhere; font-size: 14.5px; font-weight: 600; }
.bundle-meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.bundle-count { padding: 3px 10px; border-radius: 99px; background: var(--field); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.bundle-progress { display: grid; gap: 7px; }
.bundle-progress-label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.bundle-progress-label b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bundle-facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; color: var(--muted); font-size: 11.5px; }
.bundle-facts .stack-bar { flex-basis: 100%; }
.bundle-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 8px; }
.bundle-members { display: grid; gap: 2px; margin: 0; padding: 6px 16px 16px; list-style: none; }
.bundle-members li { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(92px, auto); align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; font-size: 13px; }
.bundle-members li:nth-child(odd) { background: var(--field); }
.bundle-members .status { justify-self: end; }
.bundle-members code { overflow-wrap: anywhere; font-size: 12.5px; }

/* Сотрудники */
.staff-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: 12px; }
.person-card { display: grid; gap: 14px; min-width: 0; padding: 16px; }
.person-card.owner { background: linear-gradient(160deg, rgb(255 255 255 / 5%), transparent 55%), var(--surface); border-color: var(--line-2); }
.person-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.person-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--hue-bg); color: var(--hue-ink); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.person-name { display: grid; min-width: 0; }
.person-name strong { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.person-role { color: var(--muted); font-size: 12px; }
.person-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.person-stats > div { padding: 9px 11px; border-radius: 10px; background: var(--field); }
.person-stats dt { font-size: 11px; }
.person-stats dd { margin-top: 1px; font-size: 18px; font-weight: 610; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.person-access { display: grid; gap: 7px; }
.person-foot { display: grid; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }

/* Продукты */
.products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); align-items: start; gap: 12px; min-width: 0; }
.product-row { min-width: 0; container-type: inline-size; }
.product-row[open] { grid-column: 1 / -1; }
.product-row:hover:not([open]) { border-color: var(--line-2); }
.product-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 14px 18px; padding: 16px 18px; list-style: none; cursor: pointer; }
.product-summary::-webkit-details-marker, .product-settings summary::-webkit-details-marker { display: none; }
.product-summary::after { grid-row: 1; grid-column: 3; justify-self: center; }
.product-row[open] > .product-summary { border-bottom: 1px solid var(--line); }
.product-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.catalog-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--hue-bg, #33333a); color: var(--hue-ink, var(--ink)); }
.catalog-icon svg { width: 21px; height: 21px; }
.product-title { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-width: 0; }
.product-title code { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.product-title strong { flex-basis: 100%; overflow-wrap: anywhere; font-size: 16px; font-weight: 620; }
.route-line, .release-label { display: grid; justify-items: start; gap: 3px; }
.route-line { justify-items: end; text-align: right; }
.column-label { color: var(--muted); font-size: 11px; font-weight: 500; }
.route-line strong { overflow-wrap: anywhere; font-weight: 560; }
.product-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.product-stats:empty { display: none; }
.product-stat { display: grid; padding: 9px 11px; border-radius: 10px; background: var(--field); }
.product-stat b { font-size: 18px; font-weight: 610; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.product-stat small { color: var(--muted); font-size: 11px; }
.product-stats .stack-bar { grid-column: 1 / -1; }
.product-releases { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.release-info { min-width: 0; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; }
.release-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.release-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.release-state.ready, .artifact-state.ready { color: var(--ok); }
.release-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; margin-top: 4px; color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.release-facts b { color: var(--ink); font-weight: 560; }
.release-hash { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.catalog-form, .product-publication { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.catalog-form { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto; padding: 16px 18px 14px; }
.product-settings form { padding: 6px 0 14px; }
.product-publication > label, .auto-version { grid-column: 1 / -1; }
.auto-version { margin: 0; font-size: 12px; }
.auto-version code { margin-left: 4px; color: var(--ink); }
.catalog-form [type=submit] { min-height: 40px; }
.product-publication [type=submit] { grid-column: 1 / -1; justify-self: start; min-height: 39px; }
.product-settings { margin: 0 18px; border-top: 1px solid var(--line); }
.product-settings summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; list-style: none; }
.product-summary::after, .product-settings summary::after, .choice-trigger::after {
	content: ''; width: 7px; height: 7px; flex: none;
	border: solid currentColor; border-width: 0 1.5px 1.5px 0;
	color: var(--muted); transform: translateY(-2px) rotate(45deg);
}
.product-row[open] > .product-summary::after, .product-settings[open] summary::after, .choice-trigger[aria-expanded=true]::after {
	transform: translateY(2px) rotate(225deg);
}
.product-key-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 18px 16px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.product-key-actions legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 12px; }
@container (max-width: 560px) {
	.product-summary { grid-template-columns: minmax(0, 1fr) 12px; padding: 14px; }
	.route-line { grid-column: 1; grid-row: 2; justify-items: start; text-align: left; }
	.product-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product-releases { grid-template-columns: minmax(0, 1fr); }
	.product-summary::after { grid-column: 2; }
	.catalog-form { grid-template-columns: minmax(0, 1fr); padding-inline: 14px; }
	.product-settings, .product-key-actions { margin-inline: 14px; }
}
summary { padding: 7px 0; color: var(--ink); font-size: 13px; font-weight: 560; cursor: pointer; }

/* Публикации */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 12px; padding: 14px 8px; list-style: none; }
.pipeline li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 2px 12px; }
.pipeline li + li::before { content: ''; position: absolute; left: -9px; top: 15px; width: 18px; height: 1px; background: var(--line-2); }
.pipeline-step { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--field); color: var(--ink-2); font: 600 12px var(--mono); }
.pipeline li:nth-child(3) .pipeline-step { border-color: transparent; background: var(--signal); color: #2a1c06; }
.pipeline strong { font-size: 13px; font-weight: 600; }
.pipeline small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.artifact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.artifact-card { display: grid; align-content: start; gap: 16px; padding: 18px; }
.artifact-heading { align-items: flex-start; }
.artifact-heading > div { display: flex; align-items: center; gap: 13px; min-width: 0; }
.artifact-heading .file-tab { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; font-size: 11px; font-weight: 700; }
.artifact-name { display: grid; min-width: 0; }
.artifact-name h2 { font-size: 16px; }
.artifact-name small { color: var(--muted); font-size: 12px; }
.artifact-state { flex: none; margin-top: 2px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--field); }
.artifact-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.artifact-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.artifact-meta > div { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--field); }
.artifact-meta dt { font-size: 11px; }
.artifact-meta dd { overflow: hidden; font: 12.5px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.artifact-upload { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.artifact-upload button { justify-self: start; }
.artifact-history { margin-top: 12px; padding-bottom: 6px; }
.artifact-history .table-wrap { padding: 0 8px; }
.artifact-history table { min-width: 620px; }
.artifact-history th { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 11.5px; }
.artifact-history td { border-bottom: 1px solid var(--line); border-radius: 0; }
.artifact-history tr:last-child td { border-bottom: 0; }
.artifact-history tbody tr, .artifact-history tbody tr:nth-child(even) { background: transparent; }
.artifact-history tbody tr:hover { background: rgb(255 255 255 / 2.5%); }
.artifact-history code { color: var(--ink-2); font-size: 12px; }
.artifact-file { display: flex; align-items: center; gap: 10px; }
.artifact-file strong { font-weight: 560; }

/* Вход (продавцы) */
.login-card h1 { margin-bottom: 16px; font-size: clamp(39px, 4.5vw, 74px); }

/* Диалоги */
dialog {
	width: min(440px, calc(100% - 24px));
	max-height: 90dvh;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 16px;
	background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 140px), #151518;
	box-shadow: 0 24px 70px rgb(0 0 0 / 60%);
	color: var(--ink);
}
dialog::backdrop { background: rgb(6 6 8 / 72%); backdrop-filter: blur(6px); }
.dialog-card { padding: 23px; }
.dialog-heading { margin-bottom: 18px; }
.dialog-card h2 { font-size: 18px; }
.dialog-heading .icon-button { border: 0; background: transparent; }
.dialog-heading .icon-button:hover { color: var(--ink); background: rgb(255 255 255 / 7%); }
.modal-form { display: grid; gap: 14px; }
.modal-form > button { min-height: 39px; margin-top: 4px; }
.dialog-card p { margin-top: 6px; font-size: 13px; }
.publication-dialog-card .dialog-heading > div { display: flex; align-items: center; gap: 10px; }
.publication-file { color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
.publication-status { min-height: 20px; margin-top: 16px !important; color: var(--ink); font-weight: 600; }
.publication-steps { display: grid; gap: 11px; margin-top: 18px; padding: 0; list-style: none; }
.publication-steps li { position: relative; padding-left: 26px; color: var(--muted); font-size: 13px; }
.publication-steps li::before { content: ''; position: absolute; left: 2px; top: 3px; width: 10px; height: 10px; border: 2px solid #55555d; border-radius: 50%; }
.publication-steps li.active { color: var(--ink); }
.publication-steps li.active::before { border-color: var(--silver); box-shadow: 0 0 0 4px rgb(228 228 231 / 12%); }
.publication-steps li.done { color: var(--ok); }
.publication-steps li.done::before { border-color: var(--ok); background: var(--ok); }
.publication-steps li.failed { color: var(--bad); }
.publication-steps li.failed::before { border-color: var(--bad); }
.publication-error { margin-top: 16px !important; padding: 10px 12px; border: 1px solid rgb(236 143 134 / 25%); border-radius: 9px; background: rgb(120 40 36 / 22%); color: #f3aaa2; }
.dialog-actions, .manage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.manage-actions .action { padding: 8px 12px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 4%); }
.launch-history { margin-top: 16px; overflow-wrap: anywhere; container-type: inline-size; }
.launch-history > details { padding: 10px 0; border-top: 1px solid var(--line); }
.launch-history > details > summary { font-size: 13px; cursor: pointer; }
.launch-history .launch-details { padding: 12px 0 0; }
.secret-output { display: block; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); overflow-wrap: anywhere; }
.notice { position: fixed; z-index: 5; right: 18px; bottom: 18px; max-width: min(440px, 90vw); padding: 12px 18px; border: 1px solid var(--line-2); border-left: 3px solid var(--silver); border-radius: 10px; background: #1c1c20; box-shadow: 0 14px 40px rgb(0 0 0 / 50%); color: var(--ink); }
.notice.error { border-left-color: var(--bad); }
dialog .notice { position: static; margin: 0 20px 16px; }

/* Запуски */
.launch-overview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; margin-bottom: 14px; }
.launch-overview .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.launch-chart-panel { display: flex; flex-direction: column; padding-bottom: 14px; }
.histogram { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 4px 18px 0; }
.histogram > .empty { padding: 30px 0; }
.histogram-bars { display: flex; align-items: flex-end; gap: 4px; height: 104px; border-bottom: 1px solid var(--line-2); }
.histogram-bar { display: flex; align-items: flex-end; flex: 1; height: 100%; border-radius: 4px 4px 0 0; }
.histogram-bar:hover { background: rgb(255 255 255 / 3%); }
.histogram-bar > span { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #d6d6da, #6c6c74); }
.histogram-bar.zero > span { min-height: 2px; background: var(--raised); }
.histogram-bar.today > span { background: var(--signal); }
.histogram-bar:hover > span { filter: brightness(1.25); }
.histogram-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font: 10.5px var(--mono); }
.launches-toolbar, .launches-filter, .launches-pagination, .launches-actions { display: flex; align-items: center; gap: 12px; }
.launches-toolbar { flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; }
.content:has(#launches-tab:not([hidden])) #refresh-button { display: none; }
.launches-filter { gap: 8px; }
.launches-filter label, .launches-count { color: var(--muted); font-size: 13px; }
.launches-filter input { width: min(155px, 38vw); min-height: 34px; padding-block: 6px; }
.launches-count { font-variant-numeric: tabular-nums; }
.launches-panel { container-type: inline-size; overflow: hidden; }
.launch-columns, .launch-summary {
	display: grid;
	grid-template-columns: minmax(150px, 1.05fr) minmax(110px, 1.3fr) minmax(95px, .95fr) minmax(86px, .7fr) minmax(125px, .95fr) 9px;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
}
.launch-columns { min-height: 43px; color: var(--muted); font-size: 12px; background: rgb(255 255 255 / 2%); }
.launch-row { border-top: 1px solid var(--line); }
.launch-summary { min-height: 62px; border-radius: inherit; font-size: 13px; list-style: none; cursor: pointer; }
.launch-summary::-webkit-details-marker { display: none; }
.launch-summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.launch-summary:hover, .launch-row[open] { background: rgb(255 255 255 / 2.5%); }
.launch-row[open] > .launch-summary::after { transform: translateY(2px) rotate(225deg); }
.launch-summary > time, .launch-duration, .launch-timeline time { font-variant-numeric: tabular-nums; }
.launch-summary > time { color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.launch-product, .launch-wall-time { display: grid; gap: 2px; }
.launch-mobile-label { display: none; }
.launch-product strong { font-weight: 600; }
.launch-product small, .launch-route, .launch-mobile-label { color: var(--muted); }
.launch-product, .launch-route { overflow-wrap: anywhere; }
.launch-duration { font-weight: 600; }
.launch-status { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 3px 9px; border-radius: 99px; background: rgb(255 255 255 / 6%); color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.launch-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.launch-status.completed { color: var(--ok); background: rgb(132 207 159 / 11%); }
.launch-status.open { color: var(--info); background: rgb(143 182 230 / 12%); }
.launch-status.failed { color: var(--bad); background: rgb(236 143 134 / 12%); }
.launch-details { display: grid; gap: 13px; padding: 2px 18px 16px; }
.launch-meta, .launch-hardware { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.launch-meta dd, .launch-hardware dd { margin-top: 3px; font-family: var(--mono); overflow-wrap: anywhere; }
.launch-hardware { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); }
.launch-streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.launch-stream { --stream-accent: #d8d8dc; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgb(0 0 0 / 22%); overflow-wrap: anywhere; }
.launch-stream.route { --stream-accent: var(--signal); }
.launch-stream h3 { margin: 0 0 8px; color: var(--stream-accent); font-size: 13px; font-weight: 600; }
.launch-stream p { font-size: 12px; }
.launch-timeline { margin: 0; padding: 0; list-style: none; }
.launch-timeline li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 4px 0 4px 11px; font-size: 12px; }
.launch-timeline li::before { content: ''; position: absolute; top: 11px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--stream-accent); }
.launch-timeline time { color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.launches-pagination { justify-content: end; margin-top: 12px; color: var(--muted); font-size: 13px; }
@container (max-width: 690px) {
	.launch-columns { display: none; }
	.launch-row:first-child { border-top: 0; }
	.launch-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 9px; gap: 5px 12px; }
	.launch-product { grid-row: 1; grid-column: 1; }
	.launch-summary > time { grid-row: 1; grid-column: 2; }
	.launch-route { grid-column: 1; }
	.launch-wall-time { grid-column: 2; }
	.launch-status { grid-column: 1 / -1; }
	.launch-mobile-label { display: block; }
	.launch-summary::after { grid-row: 1; grid-column: 3; }
	.launch-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 505px) {
	.launch-streams, .launch-hardware { grid-template-columns: minmax(0, 1fr); }
}

/* Таблица ключей */
.tab-button small { display: inline-block; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, max-content); gap: 12px; padding-bottom: 12px; }
.filters #page-action { padding-inline: 16px; white-space: nowrap; }
.filters .search-field input, .filters #page-action, .table-menu summary { min-height: 40px; border-radius: 12px; }
.table-menu { position: relative; }
.table-menu summary { display: flex; align-items: center; gap: 9px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); white-space: nowrap; }
.table-menu summary:hover, .table-menu[open] > summary { background: var(--field); border-color: var(--line-2); }
.table-menu summary::-webkit-details-marker { display: none; }
.table-menu summary::after { content: ''; width: 7px; height: 7px; margin: -4px 1px 0 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.menu-box { position: absolute; z-index: 3; top: calc(100% + 6px); right: 0; display: grid; gap: 7px; min-width: 200px; padding: 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #1b1b1f; box-shadow: 0 14px 34px rgb(0 0 0 / 55%); }
.menu-box select { width: 100%; max-width: none; }
#column-options label { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; }
#staff-form input[readonly] { color: var(--muted); }
#seller-login-form { max-width: 360px; margin-top: 18px; }
#seller-login-form button { margin-top: 1px; }
#keys-tab .registry { padding: 16px 16px 0; border-radius: 15px; background: var(--surface); }
#keys-tab table { min-width: 745px; }
#keys-tab th { height: 40px; color: #a3a3aa; font-size: 12px; }
#keys-tab td { font-size: 14px; }
#keys-tab th, #keys-tab td { padding: 7px clamp(6px, .73vw, 14px); }
#keys-tab tbody tr { height: 56px; background: transparent; }
#keys-tab tbody tr:nth-child(even) td { background: var(--field); }
#keys-tab tbody tr:hover td { background: #26262b; }
#keys-tab td:first-child { width: auto; min-width: 0; }
#keys-tab td:nth-child(2), #keys-tab td:nth-child(3) { min-width: 0; }
#keys-tab .key-full { font-size: 13px; word-break: normal; }
#keys-tab .record-id { display: none; }
#keys-tab .product-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 13px; }
#keys-tab .product-icon .icon { width: 63%; height: 63%; }
#keys-tab .cell-note { margin: 1px 0 0; font-size: .9em; }
#keys-tab .status.created { color: #cdcdd2; background: rgb(255 255 255 / 6%); font-size: 12px; }
#keys-tab .pager { font-family: inherit; font-size: 14px; line-height: 1.3; }
#page-numbers { display: inline-flex; align-items: center; gap: 2px; padding: 0; background: none; color: var(--ink); }
.page-number { min-width: 36px; min-height: 34px; padding: 5px 8px; border: 0; background: transparent; }
.page-number[aria-current="page"] { border-radius: 10px; background: var(--silver); color: #111114; box-shadow: 0 4px 12px -4px rgb(255 255 255 / 25%); }
.control-native { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.choice-trigger { width: 100%; min-width: 0; min-height: 40px; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font-size: 14px; font-weight: 450; text-align: left; }
label > .choice-trigger, label > .file-choice { margin-top: 6px; }
.field-pair > * { flex: 1; min-width: 0; }
.choice-trigger:hover, .choice-trigger[aria-expanded=true] { border-color: #44444b; background: #24242a; }
.choice-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.selection-chip { padding: 2px 7px; border-radius: 6px; background: #2d2d33; color: var(--ink); font-size: 12px; }
.choice-popup {
	position: fixed; z-index: 9; inset: auto; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box;
	margin: 0; padding: 6px; overflow: visible; border: 1px solid #36363d; border-radius: 11px;
	background: #1b1b1f; box-shadow: 0 16px 36px rgb(0 0 0 / 60%); color: var(--ink);
}
.choice-popup input { flex: none; min-height: 36px; padding: 7px 10px; }
.choice-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 6px 3px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.choice-footer button { padding: 4px 10px; background: #2c2c32; color: var(--ink); }
.choice-list { min-height: 0; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.choice-list [role=option] { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px; border-radius: 7px; font-size: 13px; overflow-wrap: anywhere; cursor: pointer; }
.choice-list [role=option]:hover, .choice-list .pointed { background: #29292f; }
.choice-list [aria-selected=true] { color: #fff; }
.choice-list [aria-selected=true]::after, input[type=checkbox]:checked::after {
	content: ''; flex: none; width: 5px; height: 9px; margin-left: auto;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg);
}
.choice-list p { padding: 8px; font-size: 13px; }
.choice-list [aria-disabled=true] { background: transparent; color: var(--muted); opacity: .55; cursor: not-allowed; }
.file-choice { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; padding: 7px; border: 1px dashed #45454c; border-radius: 10px; background: var(--field); }
.file-choice:hover, .file-choice:focus-within { border-color: #8c8c94; background: #222226; }
.file-choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-choice > span:first-of-type { flex: none; padding: 5px 9px; border-radius: 6px; background: var(--raised); color: var(--ink); font-size: 12px; }
.file-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=checkbox] {
	appearance: none; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; min-height: 0;
	margin: 0; padding: 0; border: 1px solid #5c5c64; border-radius: 4px; background: var(--field); cursor: pointer;
}
input[type=checkbox]:checked { border-color: var(--silver); background: var(--silver); color: #111114; }
input[type=checkbox]:checked::after { margin: 0; }
#first-page, #last-page { display: none; }
#keys-tab.hide-col-2 :is(th, td):nth-child(2),
#keys-tab.hide-col-3 :is(th, td):nth-child(3),
#keys-tab.hide-col-4 :is(th, td):nth-child(4),
#keys-tab.hide-col-5 :is(th, td):nth-child(5),
#keys-tab.hide-col-6 :is(th, td):nth-child(6),
#keys-tab.hide-col-7 :is(th, td):nth-child(7) { display: none; }
#created-key { max-height: 45vh; overflow-y: auto; white-space: pre-wrap; }
#extend-product-note { margin: 0 0 14px; }

@media (min-width: 601px) {
	#keys-tab :is(th, td):last-child { position: sticky; right: 0; }
	#keys-tab td:last-child { background: var(--surface); }
	#keys-tab tbody::before { content: ''; display: table-row; height: 5px; }
	#keys-tab td:nth-child(2) { min-width: 146px; }
	#keys-tab .key-full, #keys-tab .cell-note { white-space: nowrap; }
}
@media (min-width: 901px) {
	#keys-tab table { min-width: 730px; }
	#keys-tab .registry th { letter-spacing: -.012em; }
}
@media (min-width: 901px) and (max-width: 1150px) {
	.session strong { display: none; }
}
@media (max-width: 1180px) {
	.activity, .composition-panel { grid-column: 1 / -1; }
	.composition { grid-template-columns: 128px minmax(0, 360px); justify-content: start; }
	.insight, .seller-workspace .insight { grid-column: span 6; }
	.seller-panel { grid-column: 1 / -1; }
	.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
	.pipeline li:nth-child(4)::before { display: none; }
	.launch-overview { grid-template-columns: minmax(0, 1fr); }
	.launch-overview .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.catalog-form, .product-publication { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.artifact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.mast { position: static; z-index: 2; height: auto; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
	.mast .brand { height: auto; padding: 0; font-size: 15px; }
	.mast .brand-mark { width: 22px; }
	.brand-text small, .mast-foot, .tab-button.active::before { display: none; }
	#navigation { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; }
	.nav-group { grid-template-columns: repeat(3, max-content); align-content: start; gap: 3px; }
	.nav-group:first-child { grid-template-columns: repeat(4, max-content); }
	.nav-group-title { grid-column: 1 / -1; margin: 0 8px; }
	.nav-group + .nav-group { padding: 0 0 0 8px; border: 0; border-left: 1px solid var(--line); }
	.session strong, .tab-button small, .tab-button .external { display: none; }
	.tab-button { min-height: 32px; gap: 6px; }
	.main-area { --panel-width: calc(100% - 28px); }
}
@media (max-width: 700px) {
	.mast { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
	#navigation { flex-basis: 100%; }
	.session .avatar { display: none; }
	.content { padding: 4px 0 14px; }
	.page-head { min-height: 64px; padding: 12px 0 10px; }
	.crumb h1 { font-size: 20px; }
	.insight, .seller-workspace .insight, .recent-keys-panel, .recent-launches-panel { grid-column: 1 / -1; }
	.pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pipeline li::before { display: none; }
	.launch-overview .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.artifact-meta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.workspace { --gutter: 10px; }
	.main-area { --panel-width: calc(100% - 20px); }
	#navigation { gap: 6px; }
	.nav-group { flex-basis: 100%; }
	.nav-group + .nav-group { padding: 5px 0 0; border: 0; border-top: 1px solid var(--line); }
	.metric { min-height: 0; padding: 13px 14px; }
	.stat-strip, .launch-overview .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.stat-tile { padding: 12px; }
	.stat-value { font-size: 20px; }
	.stat-note { white-space: normal; }
	.crumb-path, .page-note, .search-hint { display: none; }
	.chart-meta { padding-inline: 13px; }
	#history-chart { margin-inline: 12px; }
	.activity .panel-heading { padding-inline: 13px; }
	.activity .chart-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin-inline: 13px; }
	.composition { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.legend { width: 100%; }
	.tab-button { padding: 6px; font-size: 12px; }
	.tab-button .icon { width: 13px; }
	.issue-date { font-size: 10px; }
	.filters { grid-template-columns: repeat(2, minmax(0, 1fr)) max-content; gap: 8px; }
	.filters select { width: 100%; max-width: none; }
	.search-field { grid-column: 1 / -1; }
	.search-field input { padding-right: 11px; }
	.filters .table-menu summary, .filters #page-action { justify-content: center; gap: 5px; padding-inline: 8px; font-size: 12px; }
	.filters .table-menu summary::after { margin-left: 0; }
	.registry table, .registry tbody { display: block; min-width: 0; }
	.registry thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.registry tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 9px; padding: 13px 8px; border-radius: 8px; }
	.registry tbody td, .registry tbody td:first-child, .registry tbody td:nth-child(2), .registry tbody td:nth-child(3) {
		width: auto; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere;
	}
	.registry td:first-child { grid-area: 1 / 1 / 2 / 3; }
	.registry td:nth-child(2) { grid-area: 2 / 1; }
	.registry td:nth-child(3) { grid-area: 3 / 1; }
	.registry td:nth-child(4) { grid-area: 2 / 2 / 3 / 4; }
	.registry td:nth-child(5) { grid-area: 3 / 2 / 4 / 4; }
	.registry td:nth-child(6) { grid-area: 4 / 1 / 5 / 4; }
	.registry td:last-child { grid-area: 1 / 3; }
	.registry td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; }
	#rows-range { position: static; }
	.pager { justify-content: space-between; }
	.product-name { margin-top: 3px; }
	.product-icon { flex-basis: 24px; height: 24px; }
	.catalog-form, .product-publication { grid-template-columns: minmax(0, 1fr); }
	#keys-tab .registry { padding: 10px 10px 0; }
	#keys-tab tbody tr:nth-child(even) { background: var(--field); }
	#keys-tab tbody tr:nth-child(n) td { background: transparent; }
	#keys-tab .product-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; }
	#keys-tab table { min-width: 0; }
	#keys-tab tbody tr { height: auto; grid-template-columns: 1fr 1fr auto; gap: 8px; }
	#keys-tab tbody td { min-width: 0; padding: 0; }
	#keys-tab tbody td:first-child { grid-area: 1 / 1 / 2 / 3; }
	#keys-tab tbody td:nth-child(2) { grid-area: 2 / 1; }
	#keys-tab tbody td:nth-child(3) { grid-area: 2 / 2 / 3 / 4; }
	#keys-tab tbody td:nth-child(4) { grid-area: 3 / 1; }
	#keys-tab tbody td:nth-child(5) { grid-area: 3 / 2 / 4 / 4; justify-self: start; }
	#keys-tab tbody td:nth-child(6) { grid-area: 4 / 1; }
	#keys-tab tbody td:nth-child(7) { grid-area: 4 / 2 / 5 / 4; }
	#keys-tab tbody td:last-child { grid-area: 1 / 3; }
	.table-menu .menu-box { right: auto; left: 0; }
	.table-menu:last-of-type .menu-box { left: auto; right: 0; }
	.bundle-summary { padding: 14px; }
	.bundle-members li { grid-template-columns: minmax(0, 1fr) auto; }
	.bundle-members .status { grid-column: 2; grid-row: 1; }
	.bundle-members .bundle-meta { grid-row: 2; }
	.person-stats dd { font-size: 16px; }
	.launches-filter { flex-wrap: wrap; }
	.launches-filter label { flex-basis: 100%; }
	.histogram-bars { gap: 2px; }
}
@media (max-width: 375px) {
	.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
	.page-head .session { grid-area: 1 / 2; }
	.page-head .utilities { grid-column: 1 / -1; justify-content: flex-end; }
	.filters .table-menu summary::after { display: none; }
	.nav-group:first-child { grid-template-columns: repeat(2, max-content); }
	#navigation .tab-button { gap: 4px; padding: 5px; }
	.utilities { gap: 4px; }
	.metric-value strong { font-size: 26px; }
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
	@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
	@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgb(132 207 159 / 16%); } 50% { box-shadow: 0 0 0 6px rgb(132 207 159 / 0%); } }
	[data-tab-panel]:not([hidden]), .choice-popup, .menu-box, .notice:not([hidden]) { animation: panel-in 200ms ease-out; }
	#history-chart svg, #keys-body > tr, .selection-chip, .launch-history:not([hidden]) { animation: fade-in 180ms ease-out; }
	.health.ok .health-dot { animation: pulse 2.4s ease-in-out infinite; }
	.meter > span, .histogram-bar > span { transition: width 500ms ease, height 500ms ease; }
	button, a.tab-button, summary, .entry-input, input, .file-choice, [role=option], .product-summary::after, .choice-trigger::after,
	.bundle-row, .product-row, .feed-item {
		transition: background-color 130ms, color 130ms, border-color 130ms, box-shadow 130ms, transform 130ms;
	}
	button:not(:disabled):active, a.tab-button:active { transform: translateY(1px); }
	dialog {
		opacity: 0; transform: translateY(6px) scale(.985);
		transition: opacity 150ms ease, transform 150ms ease, display 150ms allow-discrete, overlay 150ms allow-discrete;
	}
	dialog[open] { opacity: 1; transform: none; }
	dialog:not([open]), dialog:not([open])::backdrop { pointer-events: none; }
	dialog::backdrop { opacity: 0; transition: opacity 150ms, display 150ms allow-discrete, overlay 150ms allow-discrete; }
	dialog[open]::backdrop { opacity: 1; }
	@starting-style {
		dialog[open] { opacity: 0; transform: translateY(6px) scale(.985); }
		dialog[open]::backdrop { opacity: 0; }
	}
	.product-row::details-content, .product-settings::details-content { opacity: 0; transition: opacity 160ms ease, content-visibility 160ms allow-discrete; }
	.product-row[open]::details-content, .product-settings[open]::details-content { opacity: 1; }
}
