/* Ishin Art Review: Discord's default dark theme, rebuilt. */
:root {
	--frame: #121214;
	--sidebar: #17171a;
	--content: #1c1c20;
	--elevated: #242429;
	--elevated-2: #2b2b31;
	--input: #222226;
	--border: rgba(255, 255, 255, 0.07);
	--border-strong: rgba(255, 255, 255, 0.12);
	--hover: rgba(78, 80, 88, 0.3);
	--active: rgba(78, 80, 88, 0.5);
	--text: #dbdee1;
	--text-strong: #f2f3f5;
	--muted: #949ba4;
	--faint: #6d6f78;
	--interactive: #b5bac1;
	--blurple: #5865f2;
	--blurple-hover: #4752c4;
	--green: #23a55a;
	--green-hover: #1a8a49;
	--red: #da373c;
	--red-hover: #a12828;
	--yellow: #f0b232;
	--purple: #a970ff;
	--link: #00a8fc;
	--mention: rgba(88, 101, 242, 0.3);
	--radius: 8px;
	--font: "gg sans", "Noto Sans", "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mono: "gg mono", "Source Code Pro", Consolas, "Andale Mono WT", monospace;
	--shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	--ease: cubic-bezier(0.2, 0.9, 0.3, 1);
}

* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	height: 100%;
	background: var(--frame);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.375;
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
}
button {
	font: inherit;
	color: inherit;
	border: 0;
	background: none;
	cursor: pointer;
	padding: 0;
}
input,
select,
textarea {
	font: inherit;
	color: var(--text);
}
a {
	color: var(--link);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a.channel:hover,
a.member:hover,
a.rail-item:hover,
a.btn:hover {
	text-decoration: none;
}
img {
	display: block;
}
/* icons default to 20px; the rules further down size them per place */
svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
::selection {
	background: rgba(88, 101, 242, 0.55);
}
::-webkit-scrollbar {
	width: 14px;
	height: 14px;
}
::-webkit-scrollbar-thumb {
	background: #3a3b41;
	border: 4px solid transparent;
	background-clip: padding-box;
	border-radius: 8px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
.thin-scroll::-webkit-scrollbar {
	width: 8px;
}
.thin-scroll::-webkit-scrollbar-thumb {
	border-width: 2px;
}

#root {
	height: 100%;
}
.boot {
	height: 100%;
	display: grid;
	place-items: center;
}
.boot-logo {
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: var(--blurple);
	animation: pulse 1.2s var(--ease) infinite;
}
@keyframes pulse {
	50% {
		transform: scale(0.88);
		opacity: 0.6;
	}
}

/* ---------------------------------------------------------------- shell */
.app {
	display: grid;
	grid-template-columns: 72px 248px 1fr auto;
	grid-template-rows: 32px 1fr;
	height: 100%;
}
.titlebar {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--interactive);
	user-select: none;
}
.titlebar .dot {
	width: 16px;
	height: 16px;
	border-radius: 5px;
	background: var(--blurple);
}

.rail {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 4px 0 12px;
	overflow-y: auto;
}
.rail-item {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	background: var(--elevated);
	color: var(--text-strong);
	transition: border-radius 0.15s var(--ease), background 0.15s;
	font-weight: 700;
}
.rail-item:hover,
.rail-item.on {
	border-radius: 14px;
	background: var(--blurple);
}
.rail-item::before {
	content: "";
	position: absolute;
	left: -12px;
	width: 4px;
	height: 0;
	border-radius: 0 4px 4px 0;
	background: var(--text-strong);
	transition: height 0.15s var(--ease);
}
.rail-item:hover::before {
	height: 20px;
}
.rail-item.on::before {
	height: 40px;
}
.rail-item svg {
	width: 26px;
	height: 26px;
}
.rail-sep {
	width: 32px;
	height: 1px;
	background: var(--border-strong);
	margin: 2px 0;
}
.rail-spacer {
	flex: 1;
}
.rail-item.ghost {
	background: var(--elevated);
	color: var(--green);
}
.rail-item.ghost:hover {
	background: var(--green);
	color: #fff;
}

.sidebar {
	position: relative;
	background: var(--sidebar);
	border: 1px solid var(--border);
	border-right: 0;
	border-bottom: 0;
	border-top-left-radius: 12px;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.guild-header {
	height: 48px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	color: var(--text-strong);
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}
.guild-header small {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
}
.guild-header svg {
	width: 18px;
	height: 18px;
	color: var(--interactive);
}
.channels {
	flex: 1;
	overflow-y: auto;
	padding: 8px 8px 96px;
}
.category {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 16px 8px 4px 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--muted);
	user-select: none;
}
.category svg {
	width: 12px;
	height: 12px;
}
.channel {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	height: 34px;
	padding: 0 8px;
	margin: 1px 0;
	border-radius: 6px;
	color: var(--muted);
	font-weight: 500;
	text-align: left;
}
.channel svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	opacity: 0.85;
}
.channel span {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.channel span.badge,
.channel span.count {
	flex: none;
}
.channel:hover {
	background: var(--hover);
	color: var(--interactive);
}
.channel.on {
	background: var(--active);
	color: var(--text-strong);
}
.channel.unread {
	color: var(--text-strong);
}
.badge {
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.count {
	font-size: 12px;
	color: var(--faint);
	font-weight: 600;
}

.user-panel {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	height: 56px;
	padding: 0 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 14px;
	background: var(--elevated);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}
.avatar {
	position: relative;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--elevated-2);
	object-fit: cover;
}
.avatar-wrap {
	position: relative;
	flex-shrink: 0;
}
.status-dot {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--green);
	border: 3px solid var(--elevated);
}
.user-panel .who {
	flex: 1;
	min-width: 0;
	line-height: 1.2;
}
.user-panel .who b {
	display: block;
	font-size: 14px;
	color: var(--text-strong);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.user-panel .who small {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}
.icon-btn {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	display: grid;
	place-items: center;
	color: var(--interactive);
	flex-shrink: 0;
}
.icon-btn:hover {
	background: var(--hover);
	color: var(--text-strong);
}
.icon-btn svg {
	width: 20px;
	height: 20px;
}

.main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: var(--content);
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
}
.topbar {
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px 0 16px;
	border-bottom: 1px solid var(--border);
}
.topbar .title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--text-strong);
	white-space: nowrap;
}
.topbar .title svg {
	width: 22px;
	height: 22px;
	color: var(--muted);
}
.topbar .topic {
	flex: 1;
	min-width: 0;
	padding-left: 12px;
	margin-left: 4px;
	border-left: 1px solid var(--border-strong);
	font-size: 14px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.search {
	position: relative;
	width: 220px;
}
.search input {
	width: 100%;
	height: 28px;
	padding: 0 28px 0 8px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--input);
	font-size: 14px;
	outline: none;
	transition: width 0.2s var(--ease);
}
.search input:focus {
	border-color: var(--blurple);
}
.search svg {
	position: absolute;
	right: 6px;
	top: 6px;
	width: 16px;
	height: 16px;
	color: var(--muted);
}
.menu-btn {
	display: none;
}
.view {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	position: relative;
}

/* ---------------------------------------------------------------- right panel (profile-style details) */
.details {
	width: 340px;
	background: var(--sidebar);
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
	overflow-y: auto;
	display: none;
	min-height: 0;
}
.app.with-details .details {
	display: block;
}
.details-banner {
	height: 96px;
	background: linear-gradient(135deg, #3b2f6e, #5865f2 60%, #8a63d2);
	position: relative;
}
.details-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
}
.details-body {
	padding: 0 16px 24px;
}
.details-preview {
	margin-top: -56px;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #0e0e10 var(--checker);
	border: 4px solid var(--sidebar);
	cursor: zoom-in;
}
.details-preview img {
	width: 100%;
	max-height: 280px;
	object-fit: contain;
}
.details h2 {
	margin: 12px 0 2px;
	font-size: 20px;
	color: var(--text-strong);
	display: flex;
	align-items: center;
	gap: 8px;
}
.section {
	margin-top: 16px;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--elevated);
	border: 1px solid var(--border);
}
.section h3 {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--text-strong);
}
.kv {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	font-size: 14px;
}
.kv dt {
	color: var(--muted);
}
.kv dd {
	margin: 0;
	text-align: right;
	color: var(--text);
	overflow-wrap: anywhere;
}
.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
}
.timeline li {
	position: relative;
	padding: 0 0 10px 16px;
	color: var(--interactive);
}
.timeline li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--faint);
}
.timeline li time {
	display: block;
	font-size: 12px;
	color: var(--faint);
}

/* ---------------------------------------------------------------- shared bits */
:root {
	--checker: repeating-conic-gradient(#19191c 0% 25%, #141416 0% 50%) 50% / 20px 20px;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 22px;
	padding: 0 8px;
	border-radius: 11px;
	font-size: 12px;
	font-weight: 600;
	background: var(--elevated-2);
	color: var(--interactive);
	white-space: nowrap;
}
.pill i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.st-Pending {
	color: #f0b232;
}
.st-Accepted,
.st-Uploading {
	color: #00a8fc;
}
.st-Live {
	color: #23a55a;
}
.st-Rejected,
.st-RobloxRejected {
	color: #f23f43;
}
.st-Removed {
	color: #949ba4;
}
.mention {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 0 3px;
	border-radius: 4px;
	background: var(--mention);
	color: #c9cdfb;
	font-weight: 500;
	cursor: pointer;
}
.mention:hover {
	background: var(--blurple);
	color: #fff;
}
code,
.mono {
	font-family: var(--mono);
	font-size: 0.875em;
}
.idchip {
	font-family: var(--mono);
	font-size: 13px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--elevated-2);
	color: var(--text-strong);
	cursor: copy;
}
.muted {
	color: var(--muted);
}
.faint {
	color: var(--faint);
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 38px;
	padding: 0 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	background: var(--blurple);
	color: #fff;
	transition: background 0.15s, transform 0.1s;
}
.btn:hover {
	background: var(--blurple-hover);
}
.btn:active {
	transform: translateY(1px);
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.btn.secondary {
	background: var(--elevated-2);
	color: var(--text);
}
.btn.secondary:hover {
	background: #3a3b41;
}
.btn.danger {
	background: var(--red);
}
.btn.danger:hover {
	background: var(--red-hover);
}
.btn.success {
	background: var(--green);
}
.btn.success:hover {
	background: var(--green-hover);
}
.btn.link {
	background: none;
	color: var(--text);
}
.btn.link:hover {
	text-decoration: underline;
}
.btn.small {
	height: 30px;
	padding: 0 12px;
	font-size: 13px;
}
.btn svg {
	width: 18px;
	height: 18px;
}
.kbd {
	font-family: var(--mono);
	font-size: 11px;
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Discord embed: a coloured left bar */
.embed {
	display: flex;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 4px;
	border-left: 4px solid var(--faint);
	background: var(--elevated);
	font-size: 14px;
}
.embed + .embed {
	margin-top: 6px;
}
.embed b {
	color: var(--text-strong);
}
.embed.warn {
	border-color: var(--yellow);
}
.embed.danger {
	border-color: var(--red);
}
.embed.ai {
	border-color: var(--purple);
}
.embed.info {
	border-color: var(--link);
}
.embed .ocr {
	margin-top: 4px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--interactive);
	max-height: 7.5em;
	overflow-y: auto;
}

.empty {
	height: 100%;
	min-height: 360px;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 32px;
}
.empty h2 {
	margin: 16px 0 4px;
	font-size: 20px;
	color: var(--text-strong);
}
.empty p {
	margin: 0;
	color: var(--muted);
}
.empty svg {
	width: 160px;
	height: 120px;
}

/* ---------------------------------------------------------------- queue (one card at a time) */
.queue {
	height: 100%;
	display: grid;
	grid-template-rows: auto 1fr auto;
	max-width: 760px;
	margin: 0 auto;
	padding: 16px 16px 0;
}
.queue-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px 12px;
	font-size: 14px;
	color: var(--muted);
}
.queue-head b {
	color: var(--text-strong);
}
.stack {
	position: relative;
	min-height: 0;
}
.card {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	background: var(--elevated);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow);
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
	will-change: transform;
	transition: transform 0.35s var(--ease), opacity 0.35s;
}
.card.behind {
	transform: scale(0.95) translateY(14px);
	opacity: 0.55;
	pointer-events: none;
}
.card.dragging {
	transition: none;
	cursor: grabbing;
}
.card .art {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #0e0e10 var(--checker);
	cursor: grab;
}
.card .art img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}
.stamp {
	position: absolute;
	top: 24px;
	padding: 4px 14px;
	border: 4px solid;
	border-radius: 10px;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.06em;
	opacity: 0;
	transform: rotate(-14deg);
	pointer-events: none;
}
.stamp.yes {
	left: 24px;
	color: var(--green);
}
.stamp.no {
	right: 24px;
	color: var(--red);
	transform: rotate(14deg);
}
.art-chips {
	position: absolute;
	left: 12px;
	top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.art-chips .pill {
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	color: #fff;
}
.spoiler {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(20, 20, 24, 0.35);
	backdrop-filter: blur(40px);
	cursor: pointer;
}
.spoiler span {
	padding: 6px 12px;
	border-radius: 16px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.05em;
}
.card .info {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 46%;
	overflow-y: auto;
}
.artist-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.artist-row .name {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-strong);
}
.artist-row .sub {
	font-size: 13px;
	color: var(--muted);
}
.meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.safety {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--muted);
}
.meter {
	display: inline-flex;
	gap: 2px;
	margin-left: 6px;
	vertical-align: middle;
}
.meter i {
	width: 10px;
	height: 6px;
	border-radius: 2px;
	background: var(--elevated-2);
}
.meter i.on {
	background: var(--green);
}
.meter.mid i.on {
	background: var(--yellow);
}
.meter.high i.on {
	background: var(--red);
}

/* the composer: decisions live where Discord's message box would be */
.composer {
	margin: 12px 0 16px;
	padding: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 14px;
	background: var(--input);
	border: 1px solid var(--border);
}
.composer .hint {
	flex: 1;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}
.decide {
	height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	transition: background 0.15s, transform 0.1s;
}
.decide svg {
	width: 22px;
	height: 22px;
}
.decide:active {
	transform: scale(0.97);
}
.decide.no {
	background: var(--red);
}
.decide.no:hover {
	background: var(--red-hover);
}
.decide.yes {
	background: var(--green);
}
.decide.yes:hover {
	background: var(--green-hover);
}

/* ---------------------------------------------------------------- gallery grid (forum / media channel style) */
.page {
	padding: 16px 20px 40px;
}
.page-head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.page-head h1 {
	margin: 0;
	font-size: 24px;
	color: var(--text-strong);
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}
.tile {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: var(--elevated);
	border: 1px solid var(--border);
	cursor: pointer;
	transition: transform 0.15s var(--ease), border-color 0.15s;
	text-align: left;
}
.tile:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
}
.tile.selected {
	border-color: var(--blurple);
	box-shadow: 0 0 0 1px var(--blurple);
}
.tile .thumb {
	aspect-ratio: 1;
	background: #0e0e10 var(--checker);
	position: relative;
}
.tile .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tile .thumb .noimg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--faint);
	font-size: 13px;
}
.tile .cap {
	padding: 8px 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.tile .cap .t {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	line-height: 1.25;
}
.tile .cap .t b {
	display: block;
	color: var(--text-strong);
	font-family: var(--mono);
	font-size: 13px;
}
.tile .cap .t span {
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.tile .status {
	position: absolute;
	left: 8px;
	top: 8px;
}
.tile .status .pill {
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(6px);
}
.more {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

/* ---------------------------------------------------------------- artists */
.artist-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: 760px;
}
.member {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	text-align: left;
	width: 100%;
}
.member:hover {
	background: var(--hover);
}
.member .n {
	flex: 1;
	min-width: 0;
}
.member .n b {
	display: block;
	color: var(--text-strong);
	font-weight: 600;
}
.member .n small {
	color: var(--muted);
	font-size: 13px;
}
.profile {
	max-width: 960px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--elevated);
	border: 1px solid var(--border);
}
.profile-banner {
	height: 110px;
	background: linear-gradient(120deg, #1f6f5c, #2a4f9e 55%, #6b3fa0);
}
.profile-main {
	padding: 0 20px 20px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: end;
}
.profile-main .avatar {
	width: 104px;
	height: 104px;
	margin-top: -52px;
	border: 6px solid var(--elevated);
}
.profile-main h1 {
	margin: 0;
	font-size: 22px;
	color: var(--text-strong);
}
.profile-main .ids {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	font-size: 14px;
}
.tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}
.cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
	margin: 16px 0;
	max-width: 960px;
}
.bar {
	height: 10px;
	border-radius: 5px;
	background: var(--elevated-2);
	overflow: hidden;
	margin: 6px 0 2px;
}
.bar i {
	display: block;
	height: 100%;
	border-radius: 5px;
	background: linear-gradient(90deg, var(--blurple), #8a63d2);
	transition: width 0.5s var(--ease);
}
.bar.full i {
	background: linear-gradient(90deg, #f0b232, var(--red));
}
.budget-line {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}
.budget-line b {
	color: var(--text-strong);
}

/* ---------------------------------------------------------------- audit log (message list) */
.messages {
	padding: 8px 0 32px;
}
.msg {
	display: flex;
	gap: 16px;
	padding: 6px 20px 6px 16px;
}
.msg:hover {
	background: rgba(0, 0, 0, 0.12);
}
.msg .avatar {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-weight: 700;
	color: #fff;
}
.msg .body {
	min-width: 0;
	flex: 1;
}
.msg .head {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.msg .head b {
	color: var(--text-strong);
	font-weight: 600;
}
.msg .head time {
	font-size: 12px;
	color: var(--faint);
}
.msg .text {
	color: var(--text);
	overflow-wrap: anywhere;
}
.day-divider {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 16px 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}
.day-divider::before,
.day-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border-strong);
}

/* ---------------------------------------------------------------- modal, lightbox, toast */
.layer {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.7);
	animation: fade 0.15s;
	padding: 16px;
}
@keyframes fade {
	from {
		opacity: 0;
	}
}
.modal {
	width: 100%;
	max-width: 460px;
	border-radius: 12px;
	background: var(--elevated);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow);
	animation: pop 0.2s var(--ease);
	overflow: hidden;
}
@keyframes pop {
	from {
		transform: scale(0.92);
		opacity: 0;
	}
}
.modal header {
	padding: 20px 20px 0;
}
.modal header h2 {
	margin: 0;
	font-size: 20px;
	color: var(--text-strong);
}
.modal header p {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 14px;
}
.modal .content {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.modal footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px 20px;
	background: var(--sidebar);
}
.field label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--interactive);
}
.field label em {
	color: var(--red);
	font-style: normal;
}
.select,
.textarea,
.textfield {
	width: 100%;
	border-radius: 8px;
	border: 1px solid var(--border-strong);
	background: var(--input);
	padding: 10px 12px;
	outline: none;
	font-size: 15px;
}
.select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b5bac1'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 24px;
	cursor: pointer;
}
.select option {
	background: var(--elevated);
}
.textarea {
	resize: vertical;
	min-height: 84px;
}
.select:focus,
.textarea:focus,
.textfield:focus {
	border-color: var(--blurple);
}
.lightbox img {
	max-width: 92vw;
	max-height: 86vh;
	border-radius: 8px;
	box-shadow: var(--shadow);
	background: #0e0e10 var(--checker);
}
.lightbox .open {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--interactive);
	text-align: left;
}
.toasts {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	pointer-events: none;
}
.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--elevated-2);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow);
	font-size: 14px;
	font-weight: 500;
	animation: rise 0.25s var(--ease);
}
.toast.good::before,
.toast.bad::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--green);
}
.toast.bad::before {
	background: var(--red);
}
@keyframes rise {
	from {
		transform: translateY(12px);
		opacity: 0;
	}
}

/* ---------------------------------------------------------------- sign-in */
.login {
	height: 100%;
	display: grid;
	place-items: center;
	padding: 16px;
	background: radial-gradient(1200px 600px at 20% 10%, #2d2a6b 0%, transparent 60%), radial-gradient(900px 600px at 90% 90%, #1d4d55 0%, transparent 55%), var(--frame);
}
.login-card {
	width: 100%;
	max-width: 480px;
	padding: 32px;
	border-radius: 16px;
	background: var(--elevated);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow);
	text-align: center;
}
.login-card .logo {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 22px;
	background: var(--blurple);
	display: grid;
	place-items: center;
	color: #fff;
}
.login-card .logo svg {
	width: 40px;
	height: 40px;
}
.login-card h1 {
	margin: 0 0 8px;
	font-size: 24px;
	color: var(--text-strong);
}
.login-card p {
	margin: 0 0 24px;
	color: var(--muted);
}
.login-card .btn {
	width: 100%;
	height: 44px;
	font-size: 16px;
}

/* ---------------------------------------------------------------- phones */
.scrim {
	display: none;
}
@media (max-width: 1100px) {
	.app.with-details .details {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(380px, 100%);
		z-index: 40;
		box-shadow: var(--shadow);
	}
}
@media (max-width: 760px) {
	.app {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
	}
	.titlebar {
		display: none;
	}
	.rail,
	.sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		z-index: 30;
		transform: translateX(-110%);
		transition: transform 0.25s var(--ease);
	}
	.rail {
		left: 0;
		width: 72px;
		background: var(--frame);
		padding-top: 12px;
	}
	.sidebar {
		left: 72px;
		width: min(300px, calc(100% - 72px));
		border-radius: 0 12px 12px 0;
		/* it starts 72px in, so it has to travel its own width plus the rail's to leave the screen */
		transform: translateX(calc(-100% - 96px));
	}
	.app.nav-open .rail,
	.app.nav-open .sidebar {
		transform: none;
	}
	.app.nav-open .scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 20;
		background: rgba(0, 0, 0, 0.6);
	}
	.main {
		border: 0;
	}
	.menu-btn {
		display: grid;
	}
	.topbar {
		padding-left: 4px;
	}
	.topbar .topic {
		display: none;
	}
	.search {
		width: auto;
		flex: 1;
	}
	.queue {
		padding: 8px 8px 0;
	}
	.decide {
		padding: 0 16px;
	}
	.composer .hint {
		display: none;
	}
	.composer {
		justify-content: space-between;
	}
	.grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 8px;
	}
	.profile-main {
		grid-template-columns: 1fr;
	}
	.tools {
		justify-content: flex-start;
	}
	.page {
		padding: 12px 12px 32px;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
/* ================================================================ ishin.dev hub (PLAN_HUB.md §6): server list, panels, motion.
   Added after app.css by the build. */
.ic {
	display: contents;
}
.view-host {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	position: relative;
}
.topbar-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}
:root.darker {
	--frame: #050506;
	--sidebar: #0b0b0d;
	--content: #0f0f11;
	--elevated: #18181b;
	--elevated-2: #1e1e22;
	--input: #141417;
}
:root.reduce-motion *,
:root.reduce-motion *::before,
:root.reduce-motion *::after {
	animation: none !important;
	transition: none !important;
}

/* ---------------------------------------------------------------- server rail: circle to rounded square, the white pill */
.rail-item {
	border-radius: 50%;
	transition:
		border-radius 0.2s var(--ease),
		background 0.2s var(--ease),
		color 0.2s,
		transform 0.1s;
}
.rail-item:hover,
.rail-item.on {
	border-radius: 16px;
}
.rail-item:active {
	transform: translateY(1px);
}
.rail-item::before {
	left: -12px;
	height: 0;
	transition: height 0.2s var(--ease);
}
.rail-item:hover::before {
	height: 20px;
}
.rail-item.on::before {
	height: 40px;
}
.srv-cc:hover,
.srv-cc.on {
	background: linear-gradient(135deg, #fe2c55, #ff0033 45%, #25a2f4);
}
.srv-bot:hover,
.srv-bot.on {
	background: var(--green);
}
.rail-item.locked {
	color: var(--muted);
}
.rail-item.locked:hover {
	background: var(--elevated-2);
	border-radius: 50%;
}
.rail-item.locked:hover::before {
	height: 0;
}
.rail-lock {
	position: absolute;
	right: -3px;
	bottom: -3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--frame);
	color: var(--muted);
}
.rail-lock svg {
	width: 12px;
	height: 12px;
}
.rail-dot {
	display: none;
}
/* the red count on a server icon (shop_1120 phase 2): Discord's mention badge, ringed in the rail's colour */
.rail-badge {
	position: absolute;
	right: -4px;
	bottom: -4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	box-sizing: content-box;
	border: 3px solid var(--frame);
	border-radius: 11px;
	background: var(--red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
}
/* only when the count went up: the rail is redrawn on every page change */
.rail-badge.pop {
	animation: rail-badge-in 0.18s var(--ease);
}
@keyframes rail-badge-in {
	from {
		transform: scale(0.4);
		opacity: 0;
	}
}
/* who's online: avatars under the Discord link, the count at the bottom */
.rail-online[hidden],
.presence-sep[hidden] {
	display: none;
}
.rail-presence {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
/* The rail never squeezes a button: when more people are online than fit, only their list scrolls, its scrollbar hidden
   like the server list's (the user, 10-27: "when theres more people the buttons in the top left list just get
   squished"). It's as wide as the rail, so the online dots and the pop-in aren't clipped at its edges. */
.rail > * {
	flex-shrink: 0;
}
.rail > .rail-presence {
	flex-shrink: 1;
	min-height: 0;
	align-self: stretch;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 2px 0 4px;
	scrollbar-width: none;
}
.rail > .rail-presence::-webkit-scrollbar {
	display: none;
}
.online-user {
	position: relative;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	transition:
		opacity 0.2s,
		transform 0.2s var(--ease);
}
.online-user .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 16px;
}
.online-user.entering {
	animation: online-in 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.online-user.leaving {
	opacity: 0;
	transform: scale(0.6);
}
@keyframes online-in {
	from {
		opacity: 0;
		transform: scale(0.5);
	}
}
.online-dot {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--green);
	border: 3px solid var(--frame);
}
.rail-online {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 0 2px;
	background: var(--frame);
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	white-space: nowrap;
}
.rail-online i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.2);
}
.shake {
	animation: shake 0.4s;
}
@keyframes shake {
	20%,
	60% {
		transform: translateX(-4px);
	}
	40%,
	80% {
		transform: translateX(4px);
	}
}

/* ---------------------------------------------------------------- tooltips (the black bubble) */
.tooltip {
	position: fixed;
	z-index: 100;
	max-width: 260px;
	padding: 6px 10px;
	border-radius: 6px;
	background: #111214;
	color: var(--text-strong);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
	pointer-events: none;
	animation: tip-in 0.1s ease-out;
}
.tooltip::after {
	content: "";
	position: absolute;
	border: 5px solid transparent;
}
.tooltip.top::after {
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-top-color: #111214;
}
.tooltip.right::after {
	right: 100%;
	top: 50%;
	margin-top: -5px;
	border-right-color: #111214;
}
@keyframes tip-in {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
}

/* ---------------------------------------------------------------- pop-ups: a springy pop in, a quick fade out */
.modal {
	animation: discord-pop 0.26s cubic-bezier(0.3, 1.4, 0.55, 1);
}
@keyframes discord-pop {
	from {
		transform: scale(0.85);
		opacity: 0;
	}
}
.layer.out {
	animation: fade-out 0.16s forwards;
}
.layer.out .modal,
.layer.out .lightbox {
	animation: shrink-out 0.16s forwards;
}
@keyframes fade-out {
	to {
		opacity: 0;
	}
}
@keyframes shrink-out {
	to {
		transform: scale(0.92);
		opacity: 0;
	}
}
.layer.zoom .lightbox {
	animation: discord-pop 0.26s cubic-bezier(0.3, 1.4, 0.55, 1);
}
.toast.out {
	animation: fade-out 0.2s forwards;
}
.pop {
	animation: badge-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes badge-pop {
	40% {
		transform: scale(1.3);
	}
}

/* ---------------------------------------------------------------- right-click menu */
.ctx-menu {
	position: fixed;
	z-index: 90;
	min-width: 188px;
	padding: 6px 8px;
	border-radius: 8px;
	background: #111214;
	border: 1px solid var(--border);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
	animation: tip-in 0.1s ease-out;
}
.ctx-item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 8px;
	margin: 2px 0;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--interactive);
	text-align: left;
}
.ctx-item svg {
	width: 18px;
	height: 18px;
}
.ctx-item:hover {
	background: var(--blurple);
	color: #fff;
}
.ctx-item.danger {
	color: #f23f42;
}
.ctx-item.danger:hover {
	background: var(--red);
	color: #fff;
}
.ctx-sep {
	height: 1px;
	margin: 4px;
	background: var(--border-strong);
}

/* ---------------------------------------------------------------- loading shimmer */
.sk {
	display: block;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--elevated) 0%, var(--elevated-2) 40%, var(--elevated) 80%);
	background-size: 300% 100%;
	animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
	from {
		background-position: 100% 0;
	}
	to {
		background-position: -100% 0;
	}
}
.skeleton-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
}
.skeleton-row {
	display: flex;
	gap: 12px;
	align-items: center;
}
.skeleton-row > div {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sk-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
}
.sk-line {
	height: 12px;
	width: 70%;
}
.sk-line.short {
	width: 40%;
}
.sk-tile {
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sk-thumb {
	aspect-ratio: 1;
	width: 100%;
}
.queue-loading {
	display: grid;
	place-items: center;
	height: 60%;
}
.empty-line {
	padding: 48px 16px;
	text-align: center;
}
.empty-art svg {
	width: 160px;
	height: 120px;
}

/* ---------------------------------------------------------------- toggle switch (a tick or a cross in the knob) */
.switch {
	position: relative;
	width: 40px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 12px;
	background: #72767d;
	transition: background 0.2s var(--ease);
}
.switch .knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	transition: transform 0.2s var(--ease);
}
.switch .knob svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke-width: 2.4;
	stroke-linecap: round;
}
.switch .tick {
	stroke: var(--blurple);
	opacity: 0;
}
.switch .cross {
	stroke: #72767d;
}
.switch.on {
	background: var(--blurple);
}
.switch.on .knob {
	transform: translateX(16px);
}
.switch.on .tick {
	opacity: 1;
}
.switch.on .cross {
	opacity: 0;
}
.switch:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ---------------------------------------------------------------- panel and page bits */
.details-inner {
	min-height: 100%;
}
.action-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.member-link {
	display: block;
	color: inherit;
}
.member-link:hover {
	text-decoration: none;
}
.avatar.letter {
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	background: var(--blurple);
}
.update-bar {
	position: fixed;
	z-index: 95;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 6px 16px;
	background: var(--blurple);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	animation: rise 0.25s var(--ease);
}
.btn.light {
	background: #fff;
	color: var(--blurple);
}
.boot {
	align-content: center;
	gap: 24px;
}
.boot-logo {
	animation: spin-pulse 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes spin-pulse {
	50% {
		transform: rotate(180deg) scale(0.85);
		border-radius: 28px;
	}
	100% {
		transform: rotate(360deg);
	}
}
.boot-tip {
	max-width: 360px;
	margin: 0;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	animation: rise 0.4s var(--ease);
}
.boot-tip b {
	display: block;
	color: var(--text-strong);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}
.login-foot {
	display: block;
	margin-top: 16px;
	font-size: 13px;
	color: var(--muted);
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 20px;
	padding: 0 7px;
	border-radius: 4px;
	background: var(--elevated-2);
	color: var(--interactive);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.chip svg {
	width: 14px;
	height: 14px;
}
.chip.warn {
	background: rgba(240, 178, 50, 0.16);
	color: var(--yellow);
}
.chip.gold {
	background: rgba(240, 178, 50, 0.16);
	color: #f8c75e;
}
.fmt-long {
	background: rgba(88, 101, 242, 0.18);
	color: #a3abff;
}
.fmt-short {
	background: rgba(35, 165, 90, 0.16);
	color: #57d68d;
}
.textfield.small {
	height: 32px;
	max-width: 260px;
	font-size: 14px;
}

/* ---------------------------------------------------------------- Content Creators: leaderboard */
.board-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.board-head h1 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 24px;
	color: var(--text-strong);
}
.board-head h1 svg {
	width: 26px;
	height: 26px;
	color: var(--yellow);
}
.board-sub {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}
.countdown {
	background: rgba(88, 101, 242, 0.16);
	color: #a3abff;
}
.week-select {
	width: auto;
	min-width: 180px;
}
.board-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 16px;
}
.segmented {
	display: inline-flex;
	padding: 3px;
	border-radius: 8px;
	background: var(--elevated);
	border: 1px solid var(--border);
}
.segmented button {
	height: 26px;
	padding: 0 12px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	transition:
		background 0.15s,
		color 0.15s;
}
.segmented button:hover {
	color: var(--text);
}
.segmented button.on {
	background: var(--elevated-2);
	color: var(--text-strong);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.platform {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
}
.platform svg {
	width: 18px;
	height: 18px;
}
.vthumb {
	position: relative;
	flex-shrink: 0;
	width: 112px;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background: #0e0e10;
	display: grid;
	place-items: center;
}
.vthumb.tt {
	aspect-ratio: 3 / 4;
	width: 63px;
}
.vthumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vthumb svg {
	width: 28px;
	height: 28px;
	opacity: 0.5;
}
.vthumb.big {
	width: 100%;
}
.vthumb.big.tt {
	aspect-ratio: 9 / 13;
}
.vthumb.embed {
	width: 160px;
}
.vthumb.embed.tt {
	width: 90px;
}
.podium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
	margin-bottom: 16px;
}
.podium:empty {
	display: none;
}
.podium-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	border-radius: 12px;
	background: var(--elevated);
	border: 1px solid var(--border);
	color: inherit;
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.2s,
		border-color 0.2s;
	animation: podium-in 0.45s var(--ease) both;
}
.podium-card:hover {
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}
.podium-card.selected {
	border-color: var(--blurple);
}
.podium-card.place-1 {
	padding-top: 20px;
	border-color: rgba(240, 178, 50, 0.45);
	background: linear-gradient(180deg, rgba(240, 178, 50, 0.12), var(--elevated) 40%);
	animation-delay: 0.08s;
}
.podium-card.place-3 {
	animation-delay: 0.16s;
}
@keyframes podium-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.97);
	}
}
.medal {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 26px;
	z-index: 1;
}
.podium-card .vthumb.tt {
	width: 100%;
	aspect-ratio: 16 / 9;
}
.podium-title,
.lb-title {
	color: var(--text-strong);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.podium-score {
	font-size: 13px;
	color: var(--muted);
}
.podium-score b {
	font-size: 18px;
	color: var(--text-strong);
}
.lb-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.lb-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	color: inherit;
	transition: background 0.15s;
}
.lb-row:hover {
	background: var(--hover);
	text-decoration: none;
}
.lb-row.selected {
	background: var(--active);
}
.lb-rank {
	width: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}
.lb-rank b {
	font-size: 18px;
	color: var(--text-strong);
}
.move {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--faint);
}
.move svg {
	width: 12px;
	height: 12px;
}
.move.up {
	color: var(--green);
}
.move.down {
	color: #f23f42;
}
.move.new {
	color: #a3abff;
}
.lb-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.lb-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--muted);
	min-width: 0;
	flex-wrap: wrap;
}
.vstats {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: var(--interactive);
}
.vstats span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.vstats svg {
	width: 14px;
	height: 14px;
	color: var(--muted);
}
.lb-score {
	width: 92px;
	text-align: right;
	flex-shrink: 0;
}
.lb-score b {
	display: block;
	font-size: 16px;
	color: var(--text-strong);
	font-variant-numeric: tabular-nums;
}
.lb-score small {
	color: var(--faint);
	font-size: 11px;
}
/* how close each video is to first place */
.lb-bar {
	height: 6px;
	margin-top: 4px;
	border-radius: 3px;
	background: var(--elevated-2);
	overflow: hidden;
}
.lb-bar i {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--blurple), #a970ff);
	transition: width 0.7s var(--ease);
}
.lb-bar.place-1 i {
	background: linear-gradient(90deg, #f0b232, #ffd977);
}
.lb-bar.place-2 i {
	background: linear-gradient(90deg, #a5acb8, #e3e7ee);
}
.lb-bar.place-3 i {
	background: linear-gradient(90deg, #c27c3e, #eba66b);
}
.podium-card .vstats {
	font-size: 12px;
}
.avatars {
	display: flex;
}
.avatars > * + * {
	margin-left: -8px;
}
.avatars .avatar {
	border: 2px solid var(--content);
}

/* the video panel */
.details-banner.yt {
	background: linear-gradient(135deg, #5a0012, #ff0033 70%, #ff6f61);
}
.details-banner.tt {
	background: linear-gradient(135deg, #0b0b0f, #fe2c55 55%, #25f4ee);
}
.video-preview {
	position: relative;
	display: block;
	margin-top: -56px;
	border-radius: 12px;
	overflow: hidden;
	border: 4px solid var(--sidebar);
}
.video-preview .vthumb {
	border-radius: 0;
}
.video-preview .play {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	opacity: 0;
	transition: opacity 0.15s;
}
.video-preview:hover .play {
	opacity: 1;
}
.video-title {
	font-size: 17px !important;
	line-height: 1.3;
	display: block !important;
}
.score-card {
	display: flex;
	flex-direction: column;
	margin-top: 12px;
	padding: 12px;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(88, 101, 242, 0.06));
	border: 1px solid rgba(88, 101, 242, 0.35);
}
.score-card span {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #a3abff;
}
.score-card b {
	font-size: 26px;
	color: var(--text-strong);
}
.score-card small {
	color: var(--muted);
	font-size: 12px;
}
.vstat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-top: 12px;
}
.vstat {
	padding: 10px;
	border-radius: 8px;
	background: var(--elevated);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vstat-label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--muted);
}
.vstat-label svg {
	width: 14px;
	height: 14px;
}
.vstat b {
	font-size: 18px;
	color: var(--text-strong);
}
.vstat small {
	font-size: 12px;
	color: var(--muted);
}
.vstat small.up {
	color: var(--green);
}
.chart {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--elevated);
	border: 1px solid var(--border);
}
.chart-head {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-strong);
	margin-bottom: 6px;
}
.spark {
	width: 100%;
	height: 80px;
}
.chart-empty {
	margin-top: 12px;
	font-size: 13px;
}

/* #new-videos: link embeds */
.video-msg.selected {
	background: var(--hover);
}
.react {
	display: inline-block;
	margin-left: 4px;
	padding: 0 6px;
	border-radius: 8px;
	background: rgba(88, 101, 242, 0.15);
	border: 1px solid rgba(88, 101, 242, 0.5);
	font-size: 13px;
}
.link-embed {
	display: flex;
	gap: 16px;
	max-width: 520px;
	margin-top: 6px;
	padding: 12px 16px 12px 12px;
	border-radius: 4px;
	border-left: 4px solid #ff0033;
	background: var(--elevated);
	color: inherit;
	transition: background 0.15s;
}
.link-embed.tt {
	border-left-color: #25f4ee;
}
.link-embed:hover {
	background: var(--elevated-2);
	text-decoration: none;
}
.embed-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.embed-text small {
	font-size: 12px;
	color: var(--muted);
}
.embed-text b {
	color: var(--link);
}
.embed-score {
	font-size: 12px;
	color: var(--muted);
}

/* ---------------------------------------------------------------- the bot panel (the settings page) */
.settings-page {
	position: fixed;
	inset: 0;
	z-index: 45;
	display: grid;
	grid-template-columns: minmax(218px, 1fr) minmax(0, 3fr);
	background: var(--content);
	animation: settings-in 0.22s var(--ease);
}
.settings-page.out {
	animation: settings-out 0.18s forwards;
}
@keyframes settings-in {
	from {
		opacity: 0;
		transform: scale(1.04);
	}
}
@keyframes settings-out {
	to {
		opacity: 0;
		transform: scale(1.04);
	}
}
.settings-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 48px 8px 24px 16px;
	background: var(--sidebar);
	overflow-y: auto;
}
.settings-nav > * {
	width: 220px;
}
.settings-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 10px;
	background: var(--elevated);
	margin-bottom: 10px;
}
.settings-user b {
	display: block;
	color: var(--text-strong);
}
.settings-user small {
	color: var(--muted);
	font-size: 13px;
}
.settings-search {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid var(--border-strong);
	background: var(--input);
	margin-bottom: 8px;
}
.settings-search svg {
	width: 18px;
	height: 18px;
	color: var(--muted);
}
.settings-search input,
.search-box input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: none;
	font-size: 15px;
}
.settings-section {
	padding: 16px 10px 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--muted);
}
.settings-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	margin: 1px 0;
	border-radius: 8px;
	color: var(--interactive);
	font-weight: 500;
}
.settings-item svg {
	width: 20px;
	height: 20px;
}
.settings-item:hover {
	background: var(--hover);
	color: var(--text);
	text-decoration: none;
}
.settings-item.on {
	background: var(--active);
	color: var(--text-strong);
}
.settings-content {
	position: relative;
	overflow-y: auto;
	padding: 48px 72px 64px 40px;
}
.settings-inner {
	max-width: 740px;
}
.settings-inner h1 {
	margin: 0 0 8px;
	font-size: 20px;
	color: var(--text-strong);
}
.settings-inner > div > p.muted {
	margin: 0 0 20px;
	font-size: 14px;
}
.esc-btn {
	position: fixed;
	top: 48px;
	right: 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.esc-btn > span {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--muted);
	display: grid;
	place-items: center;
	transition:
		background 0.15s,
		border-color 0.15s,
		color 0.15s;
}
.esc-btn:hover > span {
	background: var(--hover);
	border-color: var(--text);
	color: var(--text);
}
.settings-card {
	margin-bottom: 16px;
	padding: 16px;
	border-radius: 10px;
	background: var(--elevated);
	border: 1px solid var(--border);
}
.settings-card h2 {
	margin: 0 0 4px;
	font-size: 16px;
	color: var(--text-strong);
	display: flex;
	align-items: center;
	gap: 8px;
}
.settings-card p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}
.kv.wide dd {
	text-align: left;
}
.kv dd.bad {
	color: #f23f42;
}
.state-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--faint);
	flex-shrink: 0;
}
.state-dot.online {
	background: var(--green);
	box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.25);
}
.state-dot.connecting {
	background: var(--yellow);
	animation: pulse 1.2s infinite;
}
.state-dot.offline,
.state-dot.stopped {
	background: var(--red);
}
.stat-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}
.stat-tile {
	padding: 10px;
	border-radius: 8px;
	background: var(--elevated-2);
	text-align: center;
}
.stat-tile b {
	display: block;
	font-size: 22px;
	color: var(--text-strong);
}
.stat-tile small {
	font-size: 12px;
	color: var(--muted);
}
.setting-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.setting-row:last-child {
	border-bottom: 0;
}
.setting-row b {
	color: var(--text-strong);
	font-weight: 600;
}
.setting-row p {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.settings-group {
	margin: 12px 0 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--muted);
}
.settings-modal {
	max-width: 520px;
}
.search-box {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--border-strong);
	background: var(--input);
	margin: 12px 0;
}
.search-box svg {
	width: 18px;
	height: 18px;
	color: var(--muted);
}
.role-head {
	display: grid;
	grid-template-columns: 1fr 140px 44px;
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--muted);
	border-bottom: 1px solid var(--border);
}
.role-row {
	display: grid;
	grid-template-columns: 28px 1fr 140px 44px;
	align-items: center;
	padding: 10px;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	transition: background 0.12s;
}
.role-row:hover {
	background: var(--hover);
	text-decoration: none;
}
.role-shield svg {
	width: 20px;
	height: 20px;
}
.role-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--text-strong);
	min-width: 0;
}
.role-count {
	font-size: 14px;
	color: var(--interactive);
}
.round-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--elevated-2);
	color: var(--interactive);
}
.round-btn svg {
	width: 18px;
	height: 18px;
}
.role-row:hover .round-btn {
	background: var(--active);
	color: var(--text-strong);
}
.role-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}
.role-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}
.role-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 8px;
	border-radius: 6px;
	background: var(--elevated-2);
	color: var(--text);
	font-size: 13px;
	font-weight: 500;
}
.role-chip:hover {
	background: var(--active);
	text-decoration: none;
}
.server-perm {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}
.server-perm:last-child {
	border-bottom: 0;
}
.server-perm b {
	color: var(--text-strong);
}
.edit-role {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
}
.edit-role-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	position: sticky;
	top: 0;
}
.back-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	margin-bottom: 8px;
	font-weight: 700;
	color: var(--text-strong);
}
.back-link svg {
	width: 18px;
	height: 18px;
}
.role-pick {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	border-radius: 6px;
	color: var(--interactive);
	font-size: 14px;
	font-weight: 500;
}
.role-pick:hover {
	background: var(--hover);
	text-decoration: none;
}
.role-pick.on {
	background: var(--active);
	color: var(--text-strong);
}
.edit-role-title {
	font-size: 16px !important;
	letter-spacing: 0.01em;
}
.tabs {
	display: flex;
	gap: 24px;
	border-bottom: 1px solid var(--border);
	margin: 12px 0;
}
.tab {
	padding: 10px 0;
	font-weight: 600;
	color: var(--muted);
	border-bottom: 2px solid transparent;
}
.tab.on {
	color: var(--text-strong);
	border-bottom-color: #a3abff;
}
.perm-group h2 {
	margin: 20px 0 4px;
	font-size: 18px;
	color: var(--text-strong);
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 1100px) {
	.vstats .s-comments {
		display: none;
	}
}
@media (max-width: 760px) {
	.rail-item.on::before,
	.rail-item:hover::before {
		height: 0;
	}
	/* on a phone each podium card is a compact row: medal, thumbnail, text */
	.podium {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}
	.podium-card,
	.podium-card.place-1 {
		display: grid;
		grid-template-columns: 30px 88px minmax(0, 1fr);
		grid-template-areas:
			"medal thumb title"
			"medal thumb meta"
			"medal thumb score";
		column-gap: 10px;
		row-gap: 2px;
		align-items: center;
		padding: 8px;
	}
	.podium-card.place-1 {
		order: -1;
	}
	.podium-card .medal {
		grid-area: medal;
		position: static;
		transform: none;
		font-size: 22px;
	}
	.podium-card .vthumb,
	.podium-card .vthumb.tt {
		grid-area: thumb;
		width: 88px;
	}
	.podium-title {
		grid-area: title;
	}
	.podium-card .lb-meta {
		grid-area: meta;
	}
	.podium-score {
		grid-area: score;
	}
	.podium-card {
		grid-template-areas:
			"medal thumb title"
			"medal thumb meta"
			"medal thumb score"
			"medal thumb stats"
			"medal thumb bar";
	}
	.podium-card .vstats {
		grid-area: stats;
	}
	.podium-card .lb-bar {
		grid-area: bar;
	}
	.lb-row {
		gap: 8px;
		padding: 8px 4px;
	}
	.lb-row .avatar {
		display: none;
	}
	.lb-score {
		width: auto;
	}
	.vthumb {
		width: 80px;
	}
	.vthumb.tt {
		width: 45px;
	}
	.settings-page {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}
	.settings-nav {
		align-items: stretch;
		padding: 56px 12px 8px;
		max-height: 38vh;
	}
	.settings-nav > * {
		width: auto;
	}
	.settings-content {
		padding: 16px 16px 48px;
	}
	.esc-btn {
		top: 10px;
		right: 12px;
	}
	.edit-role {
		grid-template-columns: 1fr;
	}
	.edit-role-list {
		position: static;
		max-height: 160px;
	}
	.role-row {
		grid-template-columns: 24px 1fr 90px 40px;
	}
	.role-head {
		grid-template-columns: 1fr 90px 40px;
	}
	.stat-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
	.card-head {
		flex-direction: column;
	}
	.server-perm {
		flex-direction: column;
	}
	.role-chips {
		justify-content: flex-start;
	}
}

/* ---------------------------------------------------------------- languages (site_languages/PLAN.md) */
/* each language's own font first, so Chinese and Japanese characters take their own shapes */
:root:lang(th) {
	--font: "gg sans", "Noto Sans", "Noto Sans Thai", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
:root:lang(zh-Hant) {
	--font: "gg sans", "Noto Sans", "Noto Sans TC", "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
:root:lang(zh-Hans) {
	--font: "gg sans", "Noto Sans", "Noto Sans SC", "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.lang-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 10px 0 8px;
	margin-left: auto;
	border-radius: 6px;
	color: var(--interactive);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}
.lang-btn:hover {
	background: var(--hover);
	color: var(--text-strong);
}
.lang-btn .ic svg {
	width: 18px;
	height: 18px;
}
.topbar-tools:not(:empty) + .lang-btn {
	margin-left: 4px;
}
.login {
	position: relative;
}
.login-lang {
	position: absolute;
	top: 12px;
	right: 12px;
}
@media (max-width: 760px) {
	/* the globe alone on a phone: the language's name needs room the title can't spare */
	.topbar .lang-btn span:not(.ic) {
		display: none;
	}
	.topbar .lang-btn {
		padding: 0 7px;
	}
}
/* ================================================================ Moderation (movement_guard/PLAN_FLAGS_SITE.md v2): the game's
   logs as Discord messages. Added after hub.css by the build. */
.srv-mod:hover,
.srv-mod.on {
	background: var(--red);
	color: #fff;
}

.mod-page-wrap {
	padding: 0 0 96px;
}
.mod-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px 8px;
}
.mod-h1 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	color: var(--text-strong);
}
.mod-h1 svg {
	width: 22px;
	height: 22px;
}

/* ---------------------------------------------------------------- the two tabs and the filters */
.mod-tabs {
	display: flex;
	gap: 4px;
}
.mod-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border-radius: 6px;
	font-weight: 600;
	color: var(--muted);
	transition:
		background 0.15s,
		color 0.15s;
}
.mod-tab:hover {
	background: var(--hover);
	color: var(--text);
}
.mod-tab.on {
	background: var(--active);
	color: var(--text-strong);
}
.mod-count {
	min-width: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--elevated-2);
	font-size: 12px;
	line-height: 18px;
	text-align: center;
	color: var(--interactive);
}
.mod-count.warn {
	background: var(--yellow);
	color: #1c1c20;
}
.mod-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
/* the shared field style is full-width with 10px padding; in the toolbar they sit in a row at the segmented height */
.mod-filters .select {
	width: auto;
	height: 34px;
	padding: 0 34px 0 10px;
	font-size: 13px;
}
.mod-filters .mod-lookup {
	height: 34px;
}
/* these set their own display, which would beat the hidden attribute */
.mod-pill[hidden],
.mod-bar[hidden],
.mod-filters [hidden],
.mod-selectall[hidden] {
	display: none;
}

/* ---------------------------------------------------------------- "N new logs": Discord's jump pill */
.mod-pill {
	position: sticky;
	top: 8px;
	left: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 50%;
	transform: translateX(-50%);
	height: 30px;
	padding: 0 14px;
	border-radius: 15px;
	background: var(--blurple);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	box-shadow: var(--shadow);
}
.mod-pill:hover {
	background: var(--blurple-hover);
}
.mod-pill svg {
	width: 14px;
	height: 14px;
}

.mod-listhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 20px 4px 22px;
	font-size: 13px;
}
.mod-selectall {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-weight: 600;
	cursor: pointer;
}
.mod-total {
	font-size: 12px;
}

/* ---------------------------------------------------------------- the message */
.mod-list {
	display: flex;
	flex-direction: column;
}
.mod-msg {
	position: relative;
	display: flex;
	gap: 16px;
	padding: 10px 20px 10px 16px;
	border-left: 2px solid transparent;
	transition:
		background 0.12s,
		border-color 0.12s;
}
.mod-msg + .mod-msg {
	margin-top: 4px;
}
.mod-msg:hover {
	background: rgba(0, 0, 0, 0.14);
}
.mod-msg.selected {
	background: var(--mention);
	border-left-color: var(--blurple);
}
.mod-list.enter .mod-msg {
	animation: mod-in 0.34s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 25ms);
}
@keyframes mod-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}
.mod-gutter {
	position: relative;
	flex: 0 0 40px;
	height: 40px;
	cursor: pointer;
}
.mod-app {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e04848, #9b2d55);
	color: #fff;
	transition:
		opacity 0.15s,
		transform 0.15s var(--ease);
}
.mod-app svg {
	width: 26px;
	height: 26px;
}
.mod-check {
	width: 18px;
	height: 18px;
	accent-color: var(--blurple);
	cursor: pointer;
}
.mod-gutter .mod-check {
	position: absolute;
	inset: 11px;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.15s;
}
.mod-msg:hover .mod-gutter .mod-check,
.mod-list.selecting .mod-gutter .mod-check,
.mod-msg.selected .mod-gutter .mod-check {
	opacity: 1;
}
.mod-msg:hover .mod-app,
.mod-list.selecting .mod-app,
.mod-msg.selected .mod-app {
	opacity: 0.12;
	transform: scale(0.9);
}
.mod-body {
	flex: 1;
	min-width: 0;
}
.mod-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}
.mod-head b {
	color: var(--text-strong);
	font-weight: 600;
}
.mod-apptag {
	padding: 0 4px;
	border-radius: 3px;
	background: var(--blurple);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
}
.mod-head time {
	margin-left: 2px;
	font-size: 12px;
	color: var(--faint);
}

/* ---------------------------------------------------------------- the embed */
.mod-embed {
	display: grid;
	gap: 8px;
	max-width: 600px;
	padding: 10px 16px 14px 12px;
	border-radius: 4px;
	border-left: 4px solid var(--bar, var(--faint));
	background: var(--elevated);
	font-size: 14px;
}
.mod-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}
.mod-headshot,
.mod-panel-headshot {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	overflow: hidden;
	border-radius: 50%;
	background: linear-gradient(135deg, #4e5058, #2b2b31);
	color: var(--text-strong);
	font-size: 12px;
	font-weight: 700;
}
.mod-headshot img,
.mod-panel-headshot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.25s;
}
.mod-headshot img.in,
.mod-panel-headshot img.in {
	opacity: 1;
}
.mod-name {
	font-weight: 600;
	color: var(--text-strong);
}
.mod-name:hover {
	text-decoration: underline;
}
.mod-handle {
	color: var(--muted);
}
.mod-id {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--faint);
	cursor: copy;
}
.mod-id:hover {
	color: var(--text);
}
.mod-banned {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 18px;
	padding: 0 6px;
	border-radius: 4px;
	background: rgba(218, 55, 60, 0.18);
	color: #f1787b;
	font-size: 12px;
	font-weight: 600;
	animation: pop 0.25s var(--ease);
}
.mod-banned svg {
	width: 12px;
	height: 12px;
}
.mod-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-strong);
	overflow-wrap: anywhere;
}
.md {
	line-height: 1.375;
	color: var(--text);
	overflow-wrap: anywhere;
}
.md strong {
	color: var(--text-strong);
}
.md-link {
	color: var(--link);
}
a.md-link:hover {
	text-decoration: underline;
}
.md-link.off {
	color: var(--muted);
	text-decoration: underline dotted;
	cursor: help;
}
.md-code {
	padding: 0 4px;
	border-radius: 4px;
	background: var(--frame);
	font-family: var(--mono);
	font-size: 0.85em;
}
.md-bullet {
	display: flex;
	gap: 8px;
}
.md-dot {
	flex: 0 0 5px;
	height: 5px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--text);
}
.mod-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 16px;
}
.mod-field:not(.inline) {
	grid-column: 1 / -1;
}
.mod-field-name {
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 700;
	color: var(--text-strong);
}
.mod-field-value {
	font-size: 14px;
	color: var(--text);
	overflow-wrap: anywhere;
}
.mod-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	font-size: 12px;
	color: var(--muted);
}
.mod-footer > * + *::before {
	content: "•";
	margin-right: 10px;
	color: var(--faint);
}
.mod-game {
	padding: 0 5px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
	letter-spacing: 0.02em;
	background: rgba(35, 165, 90, 0.2);
	color: #4fd18b;
}
.mod-game.dev {
	background: rgba(240, 178, 50, 0.18);
	color: var(--yellow);
}
.mod-footer > .mod-game + *::before,
.mod-footer > .mod-test + *::before {
	content: none;
}
.mod-test {
	padding: 0 5px;
	border-radius: 3px;
	background: rgba(169, 112, 255, 0.2);
	color: var(--purple);
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
}
.mod-job {
	cursor: copy;
}
.mod-job:hover {
	color: var(--text);
}

/* the player's replay (movement_guard/PLAN_REPLAYS.md §3): above the footer, a quiet strip with the command to copy */
.mod-replay {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	padding: 6px 8px;
	border-radius: 4px;
	background: rgba(88, 101, 242, 0.12);
	font-size: 13px;
	color: var(--text);
}
.mod-replay .ic svg {
	display: block;
	width: 16px;
	height: 16px;
}
.mod-replay b {
	color: var(--text-strong);
}
.mod-replay time {
	font-size: 12px;
	color: var(--muted);
}
.mod-replay-note {
	font-size: 12px;
	color: var(--yellow);
}
.mod-replay-copy {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	padding: 2px 6px;
	border: 0;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.25);
	color: var(--text);
	font: 12px var(--mono);
	cursor: copy;
}
.mod-replay-copy:hover {
	background: rgba(0, 0, 0, 0.4);
	color: var(--text-strong);
}
.mod-replay-copy .ic svg {
	width: 12px;
	height: 12px;
}
.mod-replay.none {
	padding: 0;
	background: none;
	font-size: 12px;
	color: var(--muted);
}
.mod-replay.none.off {
	color: var(--faint);
}

/* the player's other replays (movement_guard/replays/PLAN_REPLAYS_20.md §5): the row gets "+N more", and the list grows in
   place under it (grid rows 0fr -> 1fr: no measured height, no inline style) */
.mod-replays .mod-replay {
	cursor: pointer;
}
.mod-replay-more {
	padding: 1px 7px;
	border: 1px solid rgba(88, 101, 242, 0.45);
	border-radius: 999px;
	background: none;
	color: var(--text);
	font-size: 12px;
	cursor: pointer;
}
.mod-replay-more:hover,
.mod-replays.open .mod-replay-more {
	background: rgba(88, 101, 242, 0.3);
	color: var(--text-strong);
}
.mod-replay-panel {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.22s ease, opacity 0.18s ease;
}
.mod-replays.open .mod-replay-panel {
	grid-template-rows: 1fr;
	opacity: 1;
}
.mod-replay-inner {
	min-height: 0;
	overflow: hidden;
}
.mod-replay-items {
	display: grid;
	gap: 2px;
	max-height: 320px; /* about 8 rows; the rest scroll inside, so 20 never make the card a page long */
	margin: 4px 0 0;
	padding: 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.18);
}
.mod-replay-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	padding: 4px 6px;
	border-radius: 3px;
	font-size: 12px;
}
.mod-replay-item:hover {
	background: rgba(255, 255, 255, 0.04);
}
.mod-replay-item.own {
	box-shadow: inset 2px 0 0 #5865f2;
}
.mod-replay-when {
	color: var(--muted);
	white-space: nowrap;
}
.mod-replay-when time {
	font-size: 12px;
}
.mod-replay-flags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}
.mod-flag {
	padding: 0 6px;
	border-radius: 3px;
	background: rgba(88, 101, 242, 0.25);
	color: var(--text-strong);
	white-space: nowrap;
}
.mod-flag.extreme {
	background: rgba(218, 55, 60, 0.3);
}
.mod-flag.high {
	background: rgba(240, 136, 62, 0.3);
}
.mod-flag.medium {
	background: rgba(240, 178, 50, 0.28);
}
.mod-replay-this {
	color: #8c97ff;
	font-weight: 600;
}
.mod-replay-state {
	margin-top: 4px;
	padding: 6px 8px;
	font-size: 12px;
	color: var(--muted);
}
.mod-replay-state.bad {
	color: var(--yellow);
}
.mod-replay-retry {
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-strong);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------------------------------------------------------------- Discord's component buttons */
.mod-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.dc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: #4e5058;
	transition:
		background 0.15s,
		transform 0.1s;
}
.dc-btn:hover {
	background: #6d6f78;
}
.dc-btn:active {
	transform: translateY(1px);
}
.dc-btn svg {
	width: 16px;
	height: 16px;
}
.dc-btn.primary {
	background: var(--blurple);
}
.dc-btn.primary:hover {
	background: var(--blurple-hover);
}
.dc-btn.danger {
	background: var(--red);
}
.dc-btn.danger:hover {
	background: var(--red-hover);
}
.dc-btn.link svg {
	width: 14px;
	height: 14px;
	opacity: 0.8;
}

/* ---------------------------------------------------------------- the hover toolbar (Discord's message actions) */
.mod-hover {
	position: absolute;
	top: -14px;
	right: 20px;
	z-index: 2;
	display: flex;
	padding: 2px;
	border-radius: 8px;
	background: var(--elevated);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition:
		opacity 0.12s,
		transform 0.12s var(--ease);
}
.mod-msg:hover .mod-hover,
.mod-msg:focus-within .mod-hover {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.mod-hover .icon-btn {
	width: 32px;
	height: 32px;
}
.mod-hover .icon-btn.danger:hover {
	color: var(--red);
}

/* ---------------------------------------------------------------- the selection bar */
.mod-bar {
	position: sticky;
	bottom: 16px;
	z-index: 6;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 20px 0;
	padding: 10px 12px 10px 16px;
	border-radius: 12px;
	background: var(--elevated-2);
	border: 1px solid var(--border-strong);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.mod-bar-count {
	color: var(--text);
}
.mod-bar-count b {
	color: var(--text-strong);
}
.mod-bar-gap {
	flex: 1;
}

/* ---------------------------------------------------------------- pages */
.mod-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin: 20px 0 8px;
}
.mod-page {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 6px;
	font-weight: 600;
	color: var(--muted);
	transition:
		background 0.15s,
		color 0.15s;
}
.mod-page:hover:not(:disabled) {
	background: var(--hover);
	color: var(--text);
}
.mod-page.on {
	background: var(--blurple);
	color: #fff;
}
.mod-page:disabled {
	opacity: 0.35;
	cursor: default;
}
.mod-page.arrow {
	font-size: 18px;
}
.mod-gap {
	color: var(--faint);
	padding: 0 4px;
}

/* ---------------------------------------------------------------- loading and empty */
.mod-skel {
	display: flex;
	gap: 16px;
	padding: 12px 20px 12px 18px;
	animation: fade 0.6s ease both;
}
.mod-skel > div {
	flex: 1;
	display: grid;
	gap: 8px;
}
.mod-sk-embed {
	display: block;
	max-width: 600px;
	height: 120px;
	border-radius: 4px;
}
.mod-empty {
	padding: 64px 24px;
	text-align: center;
}
.mod-empty-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--elevated);
	color: var(--muted);
}
.mod-empty-icon svg {
	width: 32px;
	height: 32px;
}
.mod-empty h3 {
	color: var(--text-strong);
	margin-bottom: 4px;
}

/* ---------------------------------------------------------------- the ban dialog and its progress list */
.mod-ban-modal {
	width: min(520px, calc(100vw - 32px));
}
.mod-durations {
	flex-wrap: wrap;
}
.mod-check-row {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2px 10px;
	cursor: pointer;
}
.mod-check-row input {
	width: 18px;
	height: 18px;
	accent-color: var(--red);
}
.mod-check-row small {
	grid-column: 2;
}
.mod-ban-list,
.mod-progress {
	max-height: 220px;
	overflow-y: auto;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--frame);
	font-size: 13px;
}
.mod-ban-row,
.mod-progress-row {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 26px;
}
.mod-state {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
}
.mod-state svg {
	width: 12px;
	height: 12px;
}
.mod-state.ok {
	background: var(--green);
	color: #fff;
	animation: pop 0.25s var(--ease);
}
.mod-state.bad {
	background: var(--red);
	color: #fff;
	animation: pop 0.25s var(--ease);
}
.mod-state.skip {
	color: var(--faint);
}
.mod-err {
	color: #f1787b;
	font-size: 12px;
}
.spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid var(--border-strong);
	border-top-color: var(--blurple);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------------- the Undo toast */
.toast.undo {
	pointer-events: auto;
	position: relative;
	overflow: hidden;
	padding-right: 12px;
}
.toast-undo {
	padding: 2px 8px;
	border-radius: 4px;
	color: var(--link);
	font-weight: 600;
}
.toast-undo:hover {
	background: var(--hover);
}
.toast-timer {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 100%;
	background: var(--blurple);
	transform-origin: left;
	animation: mod-timer 6s linear forwards;
}
@keyframes mod-timer {
	to {
		transform: scaleX(0);
	}
}

/* ---------------------------------------------------------------- the player panel */
.mod-banner {
	height: 72px;
	background: linear-gradient(135deg, var(--bar), rgba(0, 0, 0, 0.35));
}
.mod-panel .details-body {
	position: relative;
}
.mod-panel .mod-panel-headshot {
	width: 80px;
	height: 80px;
	margin-top: -52px;
	border: 6px solid var(--sidebar);
	font-size: 30px;
}
.mod-panel-name {
	margin-top: 6px;
	font-size: 20px;
	color: var(--text-strong);
	overflow-wrap: anywhere;
}
.mod-panel-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--muted);
}
.mod-panel-sub .mono {
	cursor: copy;
}
.mod-banline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 12px 0 8px;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--elevated);
	font-size: 13px;
	font-weight: 600;
}
.mod-banline svg {
	width: 14px;
	height: 14px;
}
.mod-banline.on {
	background: rgba(218, 55, 60, 0.16);
	color: #f1787b;
}
.mod-banline small {
	flex-basis: 100%;
	font-weight: 400;
	color: var(--text);
}
.mod-panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.mod-panel-kv {
	margin-bottom: 10px;
}
.mod-types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.mod-panel-title {
	margin: 8px 0 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--muted);
}
.mod-list.compact .mod-msg {
	padding: 8px 4px;
}
.mod-list.compact .mod-gutter {
	display: none;
}
.mod-list.compact .mod-fields {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mod-list.compact .mod-hover {
	right: 4px;
}
.mod-panel-log.discarded {
	opacity: 0.6;
}
.mod-discarded {
	margin: 6px 4px -2px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--faint);
}

/* ---------------------------------------------------------------- the moderation log */
.mod-actions {
	display: flex;
	flex-direction: column;
	padding: 0 12px;
}
.mod-action {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 6px;
}
.mod-action:hover {
	background: rgba(0, 0, 0, 0.14);
}
.mod-action-icon {
	display: grid;
	place-items: center;
	flex: 0 0 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--elevated-2);
	color: var(--interactive);
}
.mod-action-icon svg {
	width: 16px;
	height: 16px;
}
.mod-action-icon.bad {
	background: rgba(218, 55, 60, 0.2);
	color: #f1787b;
}
.mod-action-icon.good {
	background: rgba(35, 165, 90, 0.2);
	color: #4fd18b;
}
.mod-action-icon.warn {
	background: rgba(240, 178, 50, 0.18);
	color: var(--yellow);
}
.mod-action-main {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 2px;
	overflow-wrap: anywhere;
}
.mod-action-main a {
	color: var(--link);
	font-family: var(--mono);
	font-size: 13px;
}
.mod-action.failed .mod-action-main > div:first-child {
	text-decoration: line-through;
	color: var(--muted);
}
.mod-action time {
	font-size: 12px;
	color: var(--faint);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 700px) {
	.mod-top {
		padding: 12px;
	}
	.mod-msg {
		gap: 10px;
		padding: 10px 12px 10px 8px;
	}
	.mod-gutter,
	.mod-app {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}
	.mod-gutter .mod-check {
		inset: 7px;
		opacity: 1;
	}
	.mod-app {
		opacity: 0.12;
	}
	.mod-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.mod-hover {
		display: none;
	}
	.mod-bar {
		margin: 12px 8px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mod-list.enter .mod-msg,
	.mod-banned,
	.mod-state.ok,
	.mod-state.bad,
	.toast-timer {
		animation: none;
	}
	.mod-replay-panel {
		transition: none;
	}
}
/* ================================================================ Song Submissions (song_submissions/PLAN.md §5): Music Band
   songs from players. Added after mod.css by the build. */
.srv-songs:hover,
.srv-songs.on {
	background: var(--purple);
	color: #fff;
}

.song-page {
	padding: 0 0 96px;
}
.song-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px 20px 8px;
}
.song-top .mod-h1 {
	margin-right: auto;
}
.song-note {
	margin: 0 20px 12px;
	font-size: 13px;
}
.song-list,
.song-blocks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 20px;
}

/* ---------------------------------------------------------------- a song */
.song-card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--elevated);
	overflow: hidden;
	transition: border-color 0.15s;
}
.song-card:hover {
	border-color: var(--border-strong);
}
.song-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px 10px;
}
.song-select {
	margin-top: 26px;
	width: 16px;
	height: 16px;
	accent-color: var(--blurple);
	cursor: pointer;
}
.song-thumb {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 6px;
	object-fit: cover;
	background: var(--input);
}
.song-thumb.gone {
	display: grid;
	place-items: center;
	color: var(--faint);
}
.song-thumb.gone svg {
	width: 28px;
	height: 28px;
}
.song-title {
	min-width: 0;
	flex: 1;
}
.song-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-strong);
	overflow-wrap: anywhere;
}
.song-meta {
	margin-top: 4px;
	font-size: 13px;
	overflow-wrap: anywhere;
}
.song-meta .chip {
	font-family: var(--mono);
	cursor: pointer;
}
.song-flags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.song-flags:empty {
	display: none;
}
.linkish {
	padding: 0;
	border: 0;
	background: none;
	color: var(--link);
	font: inherit;
	cursor: pointer;
}
.linkish:hover {
	text-decoration: underline;
}
.song-outcome {
	margin: 0 16px 10px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--input);
	font-size: 13px;
}
.song-outcome.added {
	color: var(--green);
}
.song-outcome.rejected {
	color: var(--red);
}

/* ---------------------------------------------------------------- its tracks */
.song-tracks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 8px;
	padding: 0 16px 12px;
}
.song-track {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 6px;
	background: var(--input);
}
.song-track-name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
}
.song-track-name b {
	color: var(--text-strong);
	font-size: 14px;
}
.song-track audio {
	width: 100%;
	height: 32px;
}
.song-diffs {
	font-size: 12px;
}
.song-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px 16px 14px;
	border-top: 1px solid var(--border);
}
.song-actions .btn svg {
	width: 16px;
	height: 16px;
}
.song-actions a.btn {
	text-decoration: none;
}

/* ---------------------------------------------------------------- the rules message, in the top bar */
.song-rules {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.song-rules a.chip {
	text-decoration: none;
}
.song-rules-modal {
	width: min(640px, calc(100vw - 32px));
}
.song-rules-preview {
	max-height: 50vh;
	overflow: auto;
	margin: 0;
	padding: 12px 14px;
	border-radius: 6px;
	background: var(--input);
	font-family: var(--mono);
	font-size: 12.5px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- #blocked */
.song-block {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--elevated);
}
.song-block-main {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	overflow-wrap: anywhere;
}
.song-block-main .faint {
	margin-top: 2px;
	font-size: 13px;
}

@media (max-width: 640px) {
	.song-top,
	.song-list,
	.song-blocks {
		padding-left: 12px;
		padding-right: 12px;
	}
	.song-tracks {
		grid-template-columns: 1fr;
	}
	.song-thumb {
		width: 56px;
		height: 56px;
	}
	.song-select {
		margin-top: 18px;
	}
}
/* ================================================================ Staff Shop (staff_shop/PLAN.md §4). Added after songs.css. */
.sp-page {
	max-width: 980px;
	margin: 0 auto;
}
.sp-head {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.sp-back {
	flex-basis: 100%;
	justify-content: flex-start;
	padding-left: 0;
}
.sp-who {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}
.sp-who .avatar {
	width: 56px;
	height: 56px;
	flex: none;
}
.sp-letter {
	font-size: 22px;
}
.sp-who h1 {
	margin: 0;
	font-size: 22px;
	color: var(--text-strong);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sp-role {
	font-size: 14px;
	font-weight: 500;
}
.sp-total {
	display: grid;
	justify-items: end;
	line-height: 1.1;
}
.sp-total b {
	font-size: 44px;
	font-weight: 800;
	color: var(--text-strong);
	font-variant-numeric: tabular-nums;
}
.sp-total small {
	font-size: 13px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.sp-week {
	margin-top: 6px;
	font-size: 13px;
	color: var(--faint);
}
.sp-week.up {
	color: var(--green);
}

.sp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}
.sp-card h2 {
	margin: 0 0 12px;
}
.sp-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}
/* "Robux to pay"'s head: the waiting count, then the Payout CSV button (site/src/core/csv.js) */
.sp-head-tools {
	display: flex;
	align-items: center;
	gap: 10px;
}
/* the payouts pages' Export paid CSV card (site/src/core/csv.js): a month, then the button; wraps on a phone */
.sp-export {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
.sp-export .select {
	flex: 0 1 240px;
	width: auto;
	min-width: 180px;
}

/* where the points came from: one bar, then a row per type */
.sp-bar {
	display: flex;
	height: 14px;
	border-radius: 7px;
	overflow: hidden;
	background: var(--elevated-2);
	margin-bottom: 14px;
}
.sp-bar i {
	display: block;
	height: 100%;
	transition: width 0.5s var(--ease);
}
.sp-bar i + i {
	box-shadow: -2px 0 0 var(--elevated);
}
.sp-types {
	display: grid;
	gap: 2px;
}
.sp-type {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto 56px;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border-radius: 6px;
	font-size: 14px;
}
.sp-type:hover {
	background: var(--hover);
}
.sp-swatch {
	width: 10px;
	height: 10px;
	border-radius: 3px;
}
.sp-type b {
	text-align: right;
	color: var(--text-strong);
	font-variant-numeric: tabular-nums;
}
.sp-type b.neg,
.sp-points.neg {
	color: var(--red);
}

/* the last 30 days */
.sp-chart {
	display: grid;
	grid-template-columns: repeat(30, minmax(0, 1fr));
	align-items: end;
	gap: 3px;
	height: 120px;
	padding-top: 4px;
}
.sp-col {
	height: 100%;
	display: flex;
	align-items: flex-end;
	border-radius: 3px;
}
.sp-col:hover {
	background: var(--hover);
}
.sp-col i {
	display: block;
	width: 100%;
	border-radius: 3px 3px 1px 1px;
	background: var(--blurple);
	transition: height 0.5s var(--ease);
}
.sp-col i.neg {
	background: var(--red);
}
.sp-axis {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 12px;
}

/* history */
.sp-entries {
	display: grid;
}
.sp-entry {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto auto 52px;
	align-items: center;
	gap: 12px;
	padding: 8px 4px;
	border-top: 1px solid var(--border);
}
.sp-entry:first-child {
	border-top: 0;
}
.sp-entry-icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--elevated-2);
}
.sp-entry-icon svg {
	width: 16px;
	height: 16px;
}
.sp-entry-main {
	min-width: 0;
}
.sp-entry-title {
	color: var(--text-strong);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sp-entry-main .faint {
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sp-entry.undone .sp-entry-title,
.sp-entry.undone .sp-points {
	text-decoration: line-through;
	color: var(--faint);
}
.sp-open {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--link);
}
.sp-open svg {
	width: 12px;
	height: 12px;
}
.sp-points {
	text-align: right;
	font-size: 16px;
	color: var(--green);
	font-variant-numeric: tabular-nums;
}
.sp-more {
	margin-top: 12px;
	width: 100%;
}

/* #all-staff */
.sp-people {
	display: grid;
	gap: 4px;
}
.sp-person {
	display: grid;
	grid-template-columns: 36px 36px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	background: var(--elevated);
	border: 1px solid var(--border);
	transition: background 0.15s, border-color 0.15s;
}
.sp-person:hover {
	background: var(--elevated-2);
	border-color: var(--border-strong);
}
/* #all-staff: your own row */
.sp-person.me {
	border-color: var(--link);
}
.sp-person .avatar {
	width: 36px;
	height: 36px;
}
.sp-rank {
	color: var(--faint);
	font-weight: 700;
	text-align: center;
}
.sp-person-main {
	min-width: 0;
	display: grid;
	gap: 2px;
}
.sp-person-main b {
	color: var(--text-strong);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sp-person-main small {
	font-size: 12px;
}
.sp-person-bar {
	height: 4px;
	border-radius: 2px;
	background: var(--elevated-2);
	overflow: hidden;
	margin-top: 4px;
}
.sp-person-bar i {
	display: block;
	height: 100%;
	background: var(--blurple);
}
.sp-person-score {
	display: grid;
	justify-items: end;
}
.sp-person-score b {
	font-size: 20px;
	color: var(--text-strong);
	font-variant-numeric: tabular-nums;
}
.sp-person-score small {
	font-size: 12px;
	color: var(--muted);
}

/* #shop */
.sp-shop-icon svg {
	width: 64px;
	height: 64px;
	color: var(--faint);
}
.sp-balance {
	display: inline-block;
	margin-top: 16px;
}

/* #shop, #shop-items, #requests (PLAN_SHOP §2.6) */
.sp-head-tools {
	margin-left: auto;
}
.sp-lede {
	margin: -8px 0 16px;
	font-size: 14px;
}
.sp-note {
	margin-bottom: 16px;
	padding: 10px 14px;
	border-radius: 8px;
	border-left: 4px solid var(--yellow);
	background: var(--elevated);
	font-size: 14px;
}
.sp-note p {
	margin: 0;
}
.sp-note p + p {
	margin-top: 4px;
}
.sp-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
.sp-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	gap: 10px 12px;
	padding: 14px;
	border-radius: 8px;
	background: var(--elevated);
	border: 1px solid var(--border);
	transition: border-color 0.15s;
}
.sp-item:hover {
	border-color: var(--border-strong);
}
.sp-item.off {
	opacity: 0.6;
}
.sp-item-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--elevated-2);
}
.sp-item-icon svg {
	width: 22px;
	height: 22px;
}
.sp-item-icon.small {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}
.sp-item-icon.small svg {
	width: 16px;
	height: 16px;
}
.sp-item-main {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 2px;
}
.sp-item-main b {
	color: var(--text-strong);
	display: flex;
	align-items: center;
	gap: 8px;
}
.sp-item-main small {
	font-size: 13px;
	color: var(--muted);
}
.sp-item-main p {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--muted);
}
.sp-item-buy {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}
.sp-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-strong);
	font-variant-numeric: tabular-nums;
}
.sp-price small {
	font-size: 13px;
	font-weight: 400;
	color: var(--muted);
}
.sp-modal-text {
	margin: 0;
	font-size: 14px;
	color: var(--text);
}
.sp-code {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid var(--border-strong);
	background: var(--input);
	color: var(--text-strong);
	cursor: pointer;
	font: inherit;
}
.sp-code code {
	font-size: 13px;
	letter-spacing: 0.04em;
}
.sp-code svg {
	width: 14px;
	height: 14px;
	color: var(--muted);
}
.sp-code:hover {
	border-color: var(--blurple);
}
.sp-code.big {
	justify-content: center;
	padding: 14px;
}
.sp-code.big code {
	font-size: 20px;
}
.sp-orders {
	display: grid;
}
.sp-order {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 4px;
	border-top: 1px solid var(--border);
}
.sp-order:first-child {
	border-top: 0;
}
.sp-order-main {
	min-width: 0;
	display: grid;
	gap: 2px;
}
.sp-order-main b {
	color: var(--text-strong);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sp-order-main small {
	font-size: 13px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 4px;
}
.sp-order-who {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text);
}
.sp-order-who .avatar {
	width: 20px;
	height: 20px;
	font-size: 11px;
}
.sp-order-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}
.sp-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	white-space: nowrap;
}
.sp-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.sp-status.good {
	color: var(--green);
}
.sp-status.warn {
	color: var(--yellow);
}
.sp-status.bad {
	color: var(--red);
}
.sp-status.faint {
	color: var(--faint);
}
.sp-editor {
	max-width: 520px;
}
/* an item's reward, fixed once it's made (security audit S2) */
.sp-editor .select:disabled {
	background-image: none;
	color: var(--muted);
	cursor: default;
}
.sp-editor-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.sp-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
}
.sp-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}
.field[hidden] {
	display: none;
}

/* #shop: the rewards' heading and the Robux exchange (staff_shop2 §2.6). Robux show the icon, never "R$". */
.rbx {
	display: inline-flex;
	align-items: center;
	gap: 0.22em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.rbx svg {
	width: 0.9em;
	height: 0.9em;
	flex: none;
}
/* the hero: the shop's name, where rewards go, and the balance */
.sp-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding: 22px 26px;
	border-radius: 14px;
	border: 1px solid var(--border-strong);
	background:
		radial-gradient(110% 150% at 100% 0%, rgba(88, 101, 242, 0.3), transparent 55%),
		radial-gradient(80% 130% at 0% 100%, rgba(169, 112, 255, 0.16), transparent 60%),
		var(--elevated);
}
.sp-hero-main {
	min-width: 0;
	display: grid;
	justify-items: start;
	gap: 4px;
}
.sp-hero h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	color: var(--text-strong);
}
.sp-hero p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.sp-ready {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid rgba(35, 165, 90, 0.4);
	background: rgba(35, 165, 90, 0.14);
	color: var(--green);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.sp-ready svg {
	width: 14px;
	height: 14px;
}
.sp-held {
	margin-top: 6px;
	font-size: 13px;
	color: var(--yellow);
}

/* the rewards: a group heading, then tiles (the art, the name, the price); a tile opens its Buy pop-up */
.sp-group {
	margin-bottom: 20px;
}
.sp-section {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}
.sp-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.sp-tile {
	display: grid;
	align-content: start;
	gap: 10px;
	min-width: 0;
	padding: 8px 8px 12px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--elevated);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		transform 0.15s var(--ease),
		border-color 0.15s,
		background 0.15s;
}
.sp-tile:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
	background: var(--elevated-2);
}
.sp-tile:focus-visible {
	outline: 2px solid var(--blurple);
	outline-offset: 2px;
}
.sp-art {
	display: grid;
	place-items: center;
	height: 100px;
	border-radius: 8px;
	background:
		radial-gradient(circle at 50% 50%, color-mix(in srgb, currentColor 28%, transparent), transparent 62%),
		var(--elevated-2);
}
.sp-art svg {
	width: 38px;
	height: 38px;
	filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 55%, transparent));
}
.sp-art.small {
	width: 48px;
	height: 48px;
	flex: none;
	border-radius: 12px;
}
.sp-art.small svg {
	width: 24px;
	height: 24px;
}
.sp-tile-name {
	padding: 0 4px;
	font-size: 15px;
	line-height: 1.25;
	color: var(--text-strong);
	overflow-wrap: anywhere;
}
.sp-tile-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 6px;
	padding: 0 4px;
}
.sp-tile .sp-price {
	font-size: 15px;
	white-space: nowrap;
}
.sp-tile-foot > small {
	font-size: 12px;
	white-space: nowrap;
}

/* a reward's Buy pop-up */
.sp-buy header {
	display: flex;
	align-items: center;
	gap: 14px;
}
.sp-buy-sum {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--elevated-2);
	font-size: 14px;
	color: var(--muted);
}
.sp-buy-sum b {
	color: var(--text-strong);
}

/* the Robux panel and My rewards */
.sp-panel {
	margin-bottom: 20px;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--elevated);
}
.sp-panel h2 {
	margin: 0 0 8px;
	font-size: 16px;
	color: var(--text-strong);
}
.sp-robux-top {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
}
.sp-panel .sp-robux-info h2 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}
.sp-robux-info p {
	margin: 2px 0 0;
	font-size: 13px;
}
.sp-rate {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(35, 165, 90, 0.14);
	color: var(--green);
	font-size: 13px;
	font-weight: 600;
}
.sp-robux-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px 16px;
}
.sp-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.sp-stepper .textfield {
	width: 96px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.sp-step {
	min-width: 32px;
	font-size: 16px;
}
.sp-get {
	font-size: 14px;
	color: var(--muted);
}
.sp-get b {
	font-size: 20px;
	color: var(--text-strong);
}
.sp-robux-hint {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--red);
	text-align: right;
}
.sp-robux-hint:empty {
	display: none;
}
.sp-robux-list {
	margin-top: 14px;
	border-top: 1px solid var(--border);
}
.sp-order-main small.sp-flag {
	color: var(--red);
}

/* points given with /points add lately (security audit S3) */
.sp-order-main small.sp-given {
	color: var(--yellow);
}

@media (max-width: 760px) {
	.sp-order {
		grid-template-columns: 32px minmax(0, 1fr);
	}
	.sp-hero {
		padding: 18px;
	}
	.sp-hero h1 {
		font-size: 22px;
	}
	.sp-hero .sp-total {
		justify-items: start;
	}
	.sp-robux-top {
		grid-template-columns: 48px minmax(0, 1fr);
	}
	.sp-robux-form {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
	.sp-robux-hint {
		text-align: left;
	}
	.sp-order > .sp-code,
	.sp-order > .sp-order-tools,
	.sp-order > .sp-status {
		grid-column: 2;
		justify-self: start;
	}
	.sp-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.sp-total b {
		font-size: 34px;
	}
	.sp-entry {
		grid-template-columns: 32px minmax(0, 1fr) auto 44px;
	}
	.sp-entry .sp-open {
		display: none;
	}
}
@media (max-width: 560px) {
	.sp-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.sp-art {
		height: 80px;
	}
}

/* #shop-items: an item's CC price beside its price, or Staff only (cc_shop/PLAN.md §4.1) */
.sp-item-prices {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
}

/* ================================================================ Content Creators' #shop and #payouts
   (cc_shop/PLAN.md §5). They wear the Staff Shop's .sp-* classes; only what they add is here. */
/* the hero's Pending CC Points: this week so far, under the Usable ones and plainly not them */
.cc-pending {
	flex-basis: 100%;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 4px 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--border-strong);
}
.cc-pending-total {
	display: grid;
	line-height: 1.1;
}
.cc-pending-total b {
	font-size: 24px;
	font-weight: 800;
	color: var(--interactive);
	font-variant-numeric: tabular-nums;
}
.cc-pending-total small {
	font-size: 12px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.sp-hero .cc-pending p {
	font-size: 13px;
}
/* the Robux card: its text is longer than staff's, so the form drops under it whenever the card itself is narrow (the
   sidebar open on a small laptop too, not only a phone), and the stepper has what it costs in CC points under it */
.cc-robux {
	container-type: inline-size;
}
.cc-robux .sp-rate {
	white-space: nowrap;
}
@container (max-width: 700px) {
	.cc-robux .sp-robux-top {
		grid-template-columns: 48px minmax(0, 1fr);
	}
	.cc-robux .sp-robux-form {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
	.cc-robux .sp-robux-hint {
		text-align: left;
	}
}
.cc-robux-amount {
	display: grid;
	justify-items: center;
	gap: 6px;
}
.cc-robux-amount .sp-get b {
	font-size: 16px;
}
/* My verified channels */
.cc-channels {
	display: grid;
}
.cc-channel {
	display: grid;
	grid-template-columns: 24px 72px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	border-top: 1px solid var(--border);
	font-size: 14px;
}
.cc-channel:first-child {
	border-top: 0;
}
.cc-channel .sp-open {
	font-size: 14px;
	min-width: 0;
	overflow-wrap: anywhere;
}
.cc-channels-foot {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--faint);
}
/* both shops while they're down for maintenance: one card in place of the rewards, a strip of hazard tape along its top */
.sp-down {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 10px;
	max-width: 560px;
	margin: 8px auto 28px;
	padding: 38px 24px 30px;
	text-align: center;
	overflow: hidden;
}
.sp-down::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, color-mix(in srgb, var(--yellow) 12%, transparent) 10px 20px);
}
.sp-down-icon svg {
	animation: sp-down-turn 6s linear infinite;
}
@keyframes sp-down-turn {
	to {
		transform: rotate(360deg);
	}
}
.sp-panel.sp-down h2 {
	margin: 6px 0 0;
	font-size: 20px;
}
.sp-down p {
	max-width: 46ch;
	margin: 0;
	font-size: 14px;
	color: var(--muted);
	text-wrap: pretty;
}
.sp-down p.sp-down-lead {
	font-size: 15px;
	color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
	.sp-down-icon svg {
		animation: none;
	}
}

/* not verified: one card that points to #cc-verify */
.cc-verify {
	display: grid;
	justify-items: center;
	gap: 10px;
	max-width: 520px;
	margin: 48px auto;
	padding: 32px 24px;
	text-align: center;
}
.sp-panel.cc-verify h2 {
	margin: 6px 0 0;
	font-size: 20px;
}
.cc-verify p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.cc-verify .btn {
	margin-top: 8px;
}
/* #payouts: the verify message's button, and the creators table (a card of labelled values each wherever the table
   itself is narrow: a phone, or a small laptop with the sidebar open) */
.cc-verify-post {
	margin-top: 12px;
}
.cc-table-wrap {
	container-type: inline-size;
	overflow-x: auto;
}
.cc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.cc-table th {
	padding: 6px 8px;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--muted);
	white-space: nowrap;
	border-bottom: 1px solid var(--border);
}
.cc-table td {
	padding: 10px 8px;
	border-top: 1px solid var(--border);
	overflow-wrap: break-word;
}
.cc-table tbody tr:first-child td {
	border-top: 0;
}
.cc-table tbody tr:hover td {
	background: var(--hover);
}
.cc-table .num {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.cc-table .cc-edit {
	width: 1%;
	text-align: right;
}
.cc-who {
	color: var(--text-strong);
	font-weight: 500;
}

@media (max-width: 760px) {
	.cc-pending {
		grid-template-columns: minmax(0, 1fr);
	}
	.cc-robux-amount {
		justify-items: start;
	}
	.cc-verify {
		margin: 16px auto;
		padding: 24px 16px;
	}
}
@container (max-width: 720px) {
	.cc-table {
		display: block;
	}
	.cc-table thead {
		display: none;
	}
	.cc-table tbody {
		display: grid;
	}
	.cc-table tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px 12px;
		padding: 12px 4px;
		border-top: 1px solid var(--border);
	}
	.cc-table tbody tr:first-child {
		border-top: 0;
	}
	.cc-table td,
	.cc-table tbody tr:hover td {
		display: block;
		padding: 0;
		border: 0;
		background: none;
	}
	.cc-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		color: var(--muted);
	}
	.cc-table td:first-child {
		grid-column: 1 / -1;
	}
	.cc-table .num {
		text-align: left;
	}
	/* Edit sits beside the limit */
	.cc-table .cc-edit {
		width: auto;
		align-self: end;
	}
}

/* #verifications (cc_shop/PLAN.md §15.4): the tips, then a card per waiting request (who, their channels, what those have
   scored, any clash in warning tone, Approve / Deny); the decided ones wear #payouts' .sp-order rows */
.cc-tips {
	border-left-color: var(--blurple);
}
.cc-requests {
	display: grid;
}
.cc-request {
	display: grid;
	gap: 12px;
	min-width: 0;
	padding: 14px 4px;
	border-top: 1px solid var(--border);
}
.cc-request:first-child {
	padding-top: 4px;
	border-top: 0;
}
.cc-request-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	min-width: 0;
}
/* the avatar stays beside the name when a long name wraps */
.cc-request-who {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.cc-request-who .avatar {
	width: 28px;
	height: 28px;
}
.cc-request-who .cc-who {
	min-width: 0;
	overflow-wrap: anywhere;
}
.cc-request-head small {
	font-size: 13px;
}
/* the Discord id to copy: a smaller .sp-code */
.cc-id {
	padding: 2px 8px;
}
.cc-id code {
	font-size: 12px;
	letter-spacing: 0;
}
.cc-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.cc-stat {
	display: grid;
	align-content: start;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--elevated-2);
}
.cc-stat b {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-strong);
	font-variant-numeric: tabular-nums;
}
.cc-stat small {
	font-size: 12px;
	color: var(--muted);
}
.cc-conflicts {
	display: grid;
	gap: 6px;
}
.cc-conflict {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(240, 178, 50, 0.12);
	color: var(--yellow);
	font-size: 13px;
	overflow-wrap: anywhere;
}
.cc-conflict svg {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}
.cc-conflict code {
	white-space: nowrap;
}
.cc-request-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}
.cc-request-tools small {
	margin-right: auto;
	font-size: 13px;
}
/* a denied request's reason, on #verifications and #shop: staff's own words, so a long one breaks anywhere */
.cc-note,
.cc-verify b {
	min-width: 0;
	overflow-wrap: anywhere;
}
/* #shop while their request waits for staff: when they sent it */
.cc-verify .cc-verify-sent {
	font-size: 13px;
	color: var(--faint);
}

/* the bot panel's Staff points card: posts skipped from another author */
.setting-row p.bad {
	color: var(--red);
}


/* #payroll (AICHAT_OTHER/payroll/NOTES.md): this week's payout, the payroll roles and own amounts, the paid weeks */
.pr-run-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}
.pr-run-head h2 {
	margin: 0;
}
.pr-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 12px 0 14px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--faint);
}
.pr-steps li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.pr-steps b {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 12px;
	border: 1px solid var(--border-strong);
	color: var(--muted);
}
.pr-steps b .ic svg {
	width: 13px;
	height: 13px;
}
.pr-steps li.now {
	color: var(--text-strong);
	font-weight: 600;
}
.pr-steps li.now b {
	border-color: var(--blurple);
	background: var(--blurple);
	color: #fff;
}
.pr-steps li.done b {
	border-color: var(--green);
	background: var(--green);
	color: #fff;
}
.pr-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.pr-actions .btn .ic,
.pr-actions .btn svg {
	margin-right: 6px;
}
.pr-page .danger-text {
	color: var(--red);
}
.pr-working {
	display: flex;
	align-items: center;
	gap: 10px;
}
.pr-spinner {
	width: 16px;
	height: 16px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--border-strong);
	border-top-color: var(--blurple);
	animation: pr-spin 0.8s linear infinite;
}
@keyframes pr-spin {
	to {
		transform: rotate(360deg);
	}
}
.pr-lines {
	display: grid;
	gap: 6px;
	margin: 12px 0;
}
.pr-line {
	display: grid;
	grid-template-columns: auto 32px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--content);
	border: 1px solid var(--border);
}
.pr-line.off {
	opacity: 0.55;
}
.pr-line .avatar {
	width: 32px;
	height: 32px;
}
.pr-pick input {
	width: 18px;
	height: 18px;
	accent-color: var(--blurple);
	cursor: pointer;
}
.pr-pick input:disabled {
	cursor: default;
}
.pr-line-main {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.pr-line-main b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text-strong);
}
.pr-line-main small {
	color: var(--muted);
	font-size: 12px;
}
.pr-problem {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: var(--yellow);
}
.pr-role {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: var(--text);
}
.pr-role i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: none;
}
.pr-amount {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--text-strong);
	white-space: nowrap;
}
.pr-amount small {
	font-weight: 400;
}
.pr-total {
	margin: 4px 0 0;
	font-size: 15px;
}
.pr-howto {
	margin: 4px 0 12px;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.6;
}
.pr-settings,
.pr-history {
	display: grid;
	gap: 6px;
	margin-top: 10px;
}
/* a row: the name, its amount, its button; a paid week's who and by whom go under its name */
.pr-setting {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 2px 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--content);
	border: 1px solid var(--border);
}
.pr-setting > :first-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pr-history .pr-setting > .faint {
	grid-column: 1;
	grid-row: 2;
	font-size: 13px;
}
.pr-history .pr-setting > .pr-amount {
	grid-column: 2;
	grid-row: 1 / span 2;
}
.pr-history .pr-setting > a {
	grid-column: 3;
	grid-row: 1 / span 2;
}
/* someone on the payroll: their avatar, name and role, their weekly amount, the pencil */
.pr-person {
	grid-template-columns: 32px minmax(0, 1fr) auto auto;
	gap: 2px 12px;
}
.pr-person .avatar {
	width: 32px;
	height: 32px;
}
@media (max-width: 560px) {
	.pr-line {
		grid-template-columns: auto 32px minmax(0, 1fr);
	}
	.pr-line .pr-amount {
		grid-column: 3;
	}
	.pr-person {
		grid-template-columns: 32px minmax(0, 1fr) auto;
	}
	.pr-person .avatar {
		grid-row: 1 / span 2;
	}
	.pr-person .pr-amount {
		grid-column: 2;
		grid-row: 2;
	}
	.pr-person > button {
		grid-column: 3;
		grid-row: 1 / span 2;
	}
}

/* ---------------------------------------------------------------- #name-reviews + custom text (shop_1120 phase 3) */
.nr-lead {
	margin: 0 0 12px;
	max-width: 760px;
}
.nr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	margin-top: 12px;
}
.nr-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--elevated);
	min-width: 0;
}
.nr-top {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.nr-top .sp-order-who {
	flex: 1;
	min-width: 0;
}
.nr-kind {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--faint);
}
.nr-text {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-strong);
	overflow-wrap: anywhere;
}
.nr-tag {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #0d0f12;
	color: #fff;
	text-align: center;
	overflow-wrap: anywhere;
}
.nr-tag small {
	font-size: 11px;
	color: #9aa0a6;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.nr-tag b {
	font-size: 16px;
	letter-spacing: 0.02em;
}
.nr-preview {
	min-height: 52px;
	display: grid;
	align-items: center;
	margin: 4px 0 8px;
}
.nr-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}
.nr-note {
	margin: 0;
	font-size: 13px;
}
.nr-tools {
	display: flex;
	gap: 8px;
}
.sp-order-text {
	font-weight: 600;
	color: var(--text);
}

/* ---------------------------------------------------------------- gifts (shop_1120 phase 4) */
.sp-section-note {
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
.sp-gift .sp-art {
	position: relative;
}
.sp-gift-count {
	display: block;
	margin-top: 4px;
	text-align: right;
}
/* the gift dialog's "In Discord": the embed its link makes (src/gift_page.js) */
.sp-gift-embed {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px 12px;
	border-left: 4px solid #8b5cf6;
	border-radius: 4px;
	background: var(--input);
	font-size: 14px;
	overflow-wrap: anywhere;
}
.sp-gift-embed b {
	color: var(--text-strong);
	margin-bottom: 2px;
}
.sp-gift-embed img {
	width: 100%;
	max-width: 320px;
	height: auto;
	margin-top: 8px;
	border-radius: 6px;
}
.sp-gift-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
}
.sp-gift-link svg {
	width: 16px;
	height: 16px;
}
.sp-code.sp-link {
	padding: 6px 8px;
}

/* ================================================================ the Art Shop (src/gallery, AICHAT_OTHER/art_points) */
.srv-gallery:hover,
.srv-gallery.on {
	background: var(--yellow);
	color: #1c1c20;
}
.ag-posts {
	display: flex;
	flex-direction: column;
}
.ag-post {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid var(--border);
}
.ag-post:first-child {
	border-top: 0;
}
.ag-post.copy,
.ag-post.gone,
.ag-post.removed {
	opacity: 0.7;
}
.ag-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	overflow: hidden;
	border-radius: 8px;
	background: var(--elevated-2);
	color: var(--muted);
}
.ag-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ag-play {
	position: absolute;
	right: 4px;
	bottom: 4px;
	display: flex;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}
.ag-play svg {
	width: 10px;
	height: 10px;
}
.ag-main {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}
.ag-main b {
	color: var(--text-strong);
}
.ag-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--yellow);
	font-weight: 700;
}
.ag-stars svg {
	width: 16px;
	height: 16px;
}
.ag-stars.locked {
	color: var(--muted);
}
.ag-foot {
	margin: 4px 2px 24px;
	font-size: 13px;
}
.ag-warn {
	border-color: rgba(240, 178, 50, 0.35) !important;
	background: rgba(240, 178, 50, 0.08) !important;
}
.ag-sub {
	color: var(--yellow) !important;
}
.ag-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0;
	color: var(--text);
	font-size: 14px;
}
.ag-check input {
	margin-top: 3px;
}
.ag-price {
	width: 110px;
}
.ag-onsale {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 13px;
}
@media (max-width: 640px) {
	.ag-post {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}
	.ag-post > :last-child {
		grid-column: 2 / -1;
		justify-self: start;
	}
}
/* Competitive League (site/src/league): #brackets and #league-log */
.lg-page {
	padding: 16px 20px 40px;
}
.lg-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 16px;
}
.lg-card {
	display: flex;
	flex-direction: column;
	min-width: 150px;
	max-width: 260px;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--elevated);
	color: var(--text);
	text-decoration: none;
}
.lg-card:hover {
	background: var(--hover);
}
.lg-card.on {
	background: var(--active);
	color: var(--text-strong);
	box-shadow: inset 0 0 0 1px var(--border-strong);
}
.lg-card b {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lg-card small {
	color: var(--muted);
}
.lg-new {
	margin-left: auto;
}
.lg-none {
	margin: 0 8px 0 0;
}
.lg-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 16px;
	align-items: start;
}
@media (max-width: 1100px) {
	.lg-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}
.lg-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.lg-spread {
	justify-content: space-between;
	align-items: flex-start;
}
.lg-sub {
	margin: 4px 0 0;
}
.lg-h3 {
	margin: 16px 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}
.lg-tools {
	margin: 12px 0;
}
.lg-tools .select {
	width: auto;
	min-width: 180px;
}
.lg-pic {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--input);
	flex-shrink: 0;
	object-fit: cover;
}
.lg-pic.none {
	visibility: hidden;
}
.lg-ents {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}
.lg-ent {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 6px;
	background: var(--elevated);
	min-width: 0;
}
.lg-seed {
	width: 22px;
	text-align: right;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.lg-ent-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lg-elo {
	margin-left: auto;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.lg-move {
	display: inline-flex;
	gap: 2px;
}
.lg-add {
	margin-top: 10px;
	position: relative;
}
.lg-results {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 4px;
}
.lg-result {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 6px;
	text-align: left;
	color: var(--text);
}
.lg-result:hover {
	background: var(--hover);
}
.lg-result small {
	margin-left: auto;
	color: var(--muted);
}
.lg-img-wrap {
	overflow-x: auto;
	border-radius: 12px;
}
.lg-img {
	display: block;
	max-width: 100%;
	border-radius: 12px;
}
.lg-match {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--elevated);
}
.lg-match + .lg-match {
	margin-top: 6px;
}
.lg-who {
	flex: 1;
	min-width: 200px;
}
.lg-who small {
	display: block;
	color: var(--faint);
}
.lg-side {
	font-weight: 600;
	color: var(--text-strong);
}
.lg-side.won::after {
	content: " ✓";
	color: var(--yellow);
}
.lg-side.tbd {
	color: var(--faint);
	font-weight: 400;
}
.lg-score {
	width: 64px;
	text-align: center;
}
.lg-final {
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.lg-all summary {
	cursor: pointer;
	list-style: none;
}
.lg-all summary::-webkit-details-marker {
	display: none;
}
.lg-all summary h2 {
	display: inline;
}
.lg-all summary::before {
	content: "▸ ";
	color: var(--muted);
}
.lg-all[open] summary::before {
	content: "▾ ";
}
.lg-all[open] summary {
	margin-bottom: 10px;
}
.lg-history {
	display: flex;
	flex-direction: column;
	margin-top: 8px;
}
.lg-hist {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-top: 1px solid var(--border);
	color: var(--muted);
}
.lg-hist:first-child {
	border-top: 0;
}
.lg-hist.top {
	color: var(--text);
}
.lg-hist time {
	flex-shrink: 0;
	color: var(--faint);
}
.lg-fields {
	display: grid;
	gap: 6px;
	margin: 12px 0;
}
.lg-fields label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 6px;
}
.lg-fields .segmented {
	justify-self: start;
}

/* the bot panel's Command lists: a message drawn as Discord shows it */
.lg-preview {
	margin-top: 12px;
	padding: 12px 16px;
	border-radius: var(--radius);
	background: var(--content);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 15px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.lg-preview h3 {
	margin: 0 0 6px;
	font-size: 22px;
	color: var(--text-strong);
}
.settings-card .lg-preview p {
	margin: 8px 0 0;
	color: var(--text);
	font-size: 15px;
}
.lg-preview-li {
	position: relative;
	padding-left: 18px;
}
.lg-preview-li::before {
	content: "•";
	position: absolute;
	left: 4px;
	color: var(--muted);
}
.lg-preview small {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--muted);
}
/* Custom faces (site/src/faces): the buyer's face page, the reviewers' detail and #face-reviews */
.fc-page {
	max-width: 1120px;
	margin: 0 auto;
}
.fc-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.fc-hero h1 {
	margin: 2px 0 4px;
	font-size: 24px;
	color: var(--text-strong);
}
.fc-hero p {
	margin: 0;
}
.fc-back {
	font-size: 13px;
	color: var(--link);
	text-decoration: none;
}
.fc-back:hover {
	text-decoration: underline;
}

.fc-banner {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: var(--radius);
	border-left: 4px solid var(--muted);
	background: var(--elevated);
}
.fc-banner svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--muted);
}
.fc-banner b {
	color: var(--text-strong);
}
.fc-banner p {
	margin: 4px 0 0;
	overflow-wrap: anywhere;
}
.fc-banner .sp-code {
	margin-top: 10px;
}
.fc-banner.good {
	border-color: var(--green);
}
.fc-banner.good svg {
	color: var(--green);
}
.fc-banner.warn {
	border-color: var(--yellow);
}
.fc-banner.warn svg {
	color: var(--yellow);
}
.fc-banner.bad {
	border-color: var(--red);
}
.fc-banner.bad svg {
	color: var(--red);
}

.fc-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 16px;
	align-items: start;
}
.fc-side,
.fc-stagecol {
	display: grid;
	gap: 16px;
	min-width: 0;
}
.fc-stagecol {
	position: sticky;
	top: 12px;
}
.fc-card {
	padding: 14px 16px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--elevated);
	min-width: 0;
}
.fc-card h3 {
	margin: 0 0 10px;
	font-size: 15px;
	color: var(--text-strong);
}
.fc-card h4 {
	margin: 14px 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.fc-card p {
	margin: 6px 0 0;
}

/* the five layers */
.fc-slots {
	display: grid;
	gap: 10px;
}
.fc-slot {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}
.fc-slot-main {
	display: grid;
	gap: 3px;
	min-width: 0;
}
.fc-slot-main b {
	color: var(--text-strong);
}
.fc-req {
	color: var(--yellow);
	font-weight: 600;
}
.fc-slot-actions {
	display: flex;
	gap: 6px;
	margin-top: 4px;
	flex-wrap: wrap;
}
.fc-thumb {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 6px;
	border: 1px solid var(--border-strong);
	background: var(--checker);
	overflow: hidden;
	cursor: default;
}
.fc-thumb canvas {
	width: 100%;
	height: 100%;
}
.fc-thumb.fc-none {
	border-style: dashed;
	background: var(--input);
}
.fc-thumb.fc-pick {
	cursor: pointer;
}
.fc-thumb.over {
	border-color: var(--blurple);
	box-shadow: 0 0 0 2px var(--mention);
}
.fc-thumb.loading {
	opacity: 0.6;
}
.fc-drop {
	display: grid;
	justify-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--muted);
	text-align: center;
}
.fc-drop svg {
	width: 18px;
	height: 18px;
}
.fc-layers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
}
.fc-layer {
	margin: 0;
	display: grid;
	gap: 4px;
	justify-items: center;
	font-size: 12px;
	color: var(--muted);
}

/* Eye Recolorable? */
.fc-choices {
	display: inline-flex;
	border-radius: 6px;
	border: 1px solid var(--border-strong);
	overflow: hidden;
}
.fc-choice {
	padding: 6px 18px;
	border: 0;
	background: var(--input);
	color: var(--interactive);
	font: inherit;
	cursor: pointer;
}
.fc-choice.on {
	background: var(--blurple);
	color: #fff;
}
.fc-choice:disabled:not(.on) {
	cursor: default;
	opacity: 0.6;
}
.fc-choice:disabled.on {
	cursor: default;
}

.fc-rules ul {
	margin: 0 0 12px;
	padding-left: 18px;
	display: grid;
	gap: 4px;
}
.fc-rules .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.fc-rules .btn svg {
	width: 14px;
	height: 14px;
}
.fc-submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.fc-submit p {
	margin: 0;
	flex: 1 1 220px;
}

/* the head */
.fc-stage {
	display: grid;
	gap: 10px;
}
.fc-3d {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	max-width: 100%;
	border-radius: 6px;
	background: radial-gradient(circle at 50% 40%, #2a2a31, #18181b);
	overflow: hidden;
	touch-action: none;
}
.fc-3d-canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
}
.fc-3d-canvas:active {
	cursor: grabbing;
}
.fc-no3d {
	display: grid;
	place-items: center;
	padding: 16px;
	text-align: center;
}
.fc-stage-tools {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.fc-stage-tools > div {
	display: grid;
	gap: 4px;
}
.fc-tints {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.fc-swatches {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.fc-swatch {
	width: 22px;
	height: 22px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--border-strong);
	cursor: pointer;
}
.fc-swatch.on {
	border-color: var(--text-strong);
	box-shadow: 0 0 0 2px var(--blurple);
}
.fc-drag {
	display: block;
}
.fc-flat canvas {
	display: block;
	width: 100%;
	max-width: 320px;
	aspect-ratio: 1;
	margin: 0 auto;
	border-radius: 6px;
}

/* reviewers */
.fc-facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 4px 12px;
	margin: 0;
	font-size: 14px;
}
.fc-facts dt {
	color: var(--muted);
}
.fc-facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}
.fc-flags,
.fc-history {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 4px;
	font-size: 14px;
	overflow-wrap: anywhere;
}
.fc-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.btn.danger-text {
	color: var(--red);
}

/* #face-reviews */
.fc-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--border);
}
.fc-tab {
	padding: 8px 12px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--muted);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.fc-tab.on {
	color: var(--text-strong);
	border-bottom-color: var(--blurple);
}
.fc-search {
	margin-bottom: 14px;
}
.fc-search .textfield {
	width: 100%;
	max-width: 420px;
}
.fc-qgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}
.fc-qcard {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 12px;
	padding: 10px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--elevated);
	color: inherit;
	text-decoration: none;
}
.fc-qcard:hover {
	border-color: var(--border-strong);
	background: var(--hover);
}
.fc-qthumb {
	width: 80px;
	height: 80px;
	border-radius: 6px;
	background: var(--input);
	overflow: hidden;
}
.fc-qthumb canvas {
	width: 100%;
	height: 100%;
	display: block;
}
.fc-qmain {
	display: grid;
	gap: 4px;
	align-content: start;
	min-width: 0;
}
.fc-qmain b {
	color: var(--text-strong);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fc-qtags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
}
.fc-tag {
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--input);
	font-size: 12px;
	color: var(--muted);
}
.fc-tag.warn {
	color: var(--yellow);
}

/* #my-faces: Visualise Face, the dashed card that's always first (nothing bought, nothing uploaded) */
.fc-qcard.fc-visual {
	border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent);
	padding: 9px;
	background: transparent;
}
.fc-qcard.fc-visual:hover {
	border-color: var(--blurple);
	background: var(--hover);
}
.fc-visual .fc-qthumb {
	display: grid;
	place-items: center;
	background: transparent;
	border: 1px dashed color-mix(in srgb, var(--muted) 40%, transparent);
	color: var(--blurple);
}
.fc-visual .fc-qthumb svg {
	width: 32px;
	height: 32px;
}
.fc-warn {
	color: var(--yellow);
}

/* My rewards: a package's code and Open side by side */
.sp-order-tools {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 900px) {
	.fc-body {
		grid-template-columns: minmax(0, 1fr);
	}
	.fc-stagecol {
		position: static;
		order: -1;
	}
}
@media (max-width: 480px) {
	.fc-slot {
		grid-template-columns: 72px minmax(0, 1fr);
	}
	.fc-thumb {
		width: 72px;
		height: 72px;
	}
	.sp-order-tools {
		flex-wrap: wrap;
	}
}
