:root {
	--bg: #0b0d12;
	--bg-raised: #12151c;
	--surface: #171b24;
	--surface-2: #1e2330;
	--border: #262c3a;
	--border-strong: #343c4f;
	--text: #eef1f7;
	--text-2: #a9b1c4;
	--text-3: #6f7890;
	--accent: #6d78ff;
	--accent-hover: #8189ff;
	--accent-soft: rgba(109, 120, 255, 0.14);
	--success: #3ecf8e;
	--success-soft: rgba(62, 207, 142, 0.12);
	--danger: #ff5c6c;
	--danger-soft: rgba(255, 92, 108, 0.12);
	--warning: #f5b84a;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	color-scheme: dark;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(109, 120, 255, 0.10), transparent 60%),
		radial-gradient(900px 500px at 110% 0%, rgba(62, 207, 142, 0.05), transparent 60%),
		var(--bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent-hover);
	text-decoration: none;
}

h1, h2, h3 {
	margin: 0;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }

p { margin: 0; }

.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: 13px; }

/* ---------- top bar ---------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 28px;
	background: rgba(11, 13, 18, 0.75);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 700;
	font-size: 16px;
}

.brand-logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(255, 40, 40, 0.35));
}

.login-logo {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 auto 16px;
	object-fit: contain;
	filter: drop-shadow(0 6px 24px rgba(255, 40, 40, 0.35));
}

.user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
}

.user-chip img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
}

.user-chip .name {
	font-weight: 600;
	font-size: 14px;
}

/* ---------- layout ---------- */

.page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 36px 28px 80px;
}

.page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.page-header p {
	margin-top: 6px;
}

.shell {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 28px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 28px 100px;
	align-items: start;
}

.sidebar {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sidebar-guild {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.sidebar-guild .name {
	font-weight: 650;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-label {
	padding: 0 12px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-3);
}

.nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

.nav a:hover {
	background: var(--surface);
	color: var(--text);
}

.nav a.active {
	background: var(--accent-soft);
	color: var(--text);
	box-shadow: inset 2px 0 0 var(--accent);
}

.nav svg {
	width: 18px;
	height: 18px;
	flex: none;
	opacity: 0.85;
}

.content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---------- cards / sections ---------- */

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.section {
	padding: 24px;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.section-head p {
	margin-top: 4px;
	color: var(--text-2);
	font-size: 14px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

/* ---------- avatars ---------- */

.avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--surface-2);
	color: var(--text-2);
	font-weight: 700;
	font-size: 14px;
	overflow: hidden;
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avatar.lg {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	font-size: 17px;
}

/* ---------- forms ---------- */

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.field label,
.label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-2);
}

.hint {
	font-size: 12.5px;
	color: var(--text-3);
}

input[type="text"],
input[type="number"],
input[type="search"],
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--text);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
	resize: vertical;
	min-height: 84px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

select {
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9b1c4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

input[type="color"] {
	width: 44px;
	height: 40px;
	padding: 3px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.input-suffix {
	position: relative;
}

.input-suffix span {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-3);
	font-size: 13px;
	pointer-events: none;
}

/* pick-list: searchable checkbox list replacing ctrl-click multi selects */

.picker {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-raised);
	overflow: hidden;
}

.picker input[type="search"] {
	border: none;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
	background: transparent;
}

.picker input[type="search"]:focus {
	box-shadow: none;
}

.picker-list {
	max-height: 230px;
	overflow-y: auto;
	padding: 6px;
}

.picker-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	color: var(--text-2);
	user-select: none;
}

.picker-item:hover {
	background: var(--surface-2);
	color: var(--text);
}

.picker-item input {
	accent-color: var(--accent);
	width: 16px;
	height: 16px;
	margin: 0;
}

.picker-item.checked {
	color: var(--text);
}

.picker-count {
	padding: 7px 12px;
	font-size: 12px;
	color: var(--text-3);
	border-top: 1px solid var(--border);
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: none;
	background: var(--text-3);
}

.hash {
	color: var(--text-3);
	font-weight: 600;
	width: 10px;
	text-align: center;
}

/* segmented radio (reaction role mode) */

.segmented {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.segmented label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.segmented label strong {
	font-size: 14px;
	color: var(--text);
}

.segmented label span {
	font-size: 12.5px;
	color: var(--text-3);
	font-weight: 400;
}

.segmented input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.segmented label:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

/* rows (reward roles, reaction entries) */

.rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.row {
	display: grid;
	gap: 8px;
	align-items: center;
}

.row.reward {
	grid-template-columns: 130px 1fr 40px;
}

.row.entry {
	grid-template-columns: 92px 1fr 1fr 40px;
}

.rows-head {
	display: grid;
	gap: 8px;
	padding: 0 2px 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-3);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.rows-head.reward { grid-template-columns: 130px 1fr 40px; }
.rows-head.entry { grid-template-columns: 92px 1fr 1fr 40px; }

.emoji-input {
	text-align: center;
	font-size: 18px !important;
}

.empty-rows {
	padding: 18px;
	text-align: center;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-sm);
	color: var(--text-3);
	font-size: 14px;
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--accent);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.btn.secondary {
	background: var(--surface-2);
	border-color: var(--border);
	color: var(--text);
}

.btn.secondary:hover {
	background: #262c3b;
	border-color: var(--border-strong);
}

.btn.ghost {
	background: transparent;
	color: var(--text-2);
}

.btn.ghost:hover {
	background: var(--surface-2);
	color: var(--text);
}

.btn.danger {
	background: transparent;
	color: var(--danger);
	border-color: rgba(255, 92, 108, 0.3);
}

.btn.danger:hover {
	background: var(--danger-soft);
}

.btn.sm {
	padding: 7px 12px;
	font-size: 13px;
}

.btn.block {
	width: 100%;
}

.icon-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--text-3);
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.icon-btn:hover {
	color: var(--danger);
	border-color: rgba(255, 92, 108, 0.35);
	background: var(--danger-soft);
}

.icon-btn svg {
	width: 16px;
	height: 16px;
}

/* ---------- save bar ---------- */

.savebar {
	position: sticky;
	bottom: 18px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 12px 18px;
	background: rgba(23, 27, 36, 0.92);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.savebar .status {
	font-size: 14px;
	color: var(--text-2);
}

.savebar.dirty .status {
	color: var(--warning);
}

/* ---------- alerts / badges ---------- */

.alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	border: 1px solid;
}

.alert.success {
	background: var(--success-soft);
	border-color: rgba(62, 207, 142, 0.3);
	color: #8ff0bf;
}

.alert.error {
	background: var(--danger-soft);
	border-color: rgba(255, 92, 108, 0.3);
	color: #ffb0b8;
}

.alert ul {
	margin: 4px 0 0;
	padding-left: 18px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--text-2);
	border: 1px solid var(--border);
}

.badge.online {
	color: var(--success);
	background: var(--success-soft);
	border-color: rgba(62, 207, 142, 0.25);
}

.badge.online::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

/* ---------- server list ---------- */

.toolbar {
	display: flex;
	gap: 10px;
	align-items: center;
}

.toolbar input[type="search"] {
	width: 260px;
}

.server-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.server-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px;
	transition: border-color 0.15s, transform 0.15s;
}

.server-card:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.server-card .top {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.server-card .name {
	font-weight: 650;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.server-card.inactive .avatar {
	filter: grayscale(1);
	opacity: 0.6;
}

.empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--text-2);
}

/* ---------- reaction role panels ---------- */

.panel-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.panel-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--panel-color, var(--accent));
}

.panel-item.editing {
	border-color: var(--accent);
	border-left-color: var(--panel-color, var(--accent));
	background: var(--accent-soft);
}

.panel-item .info {
	flex: 1;
	min-width: 0;
}

.panel-item .title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.panel-item .meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 3px;
	font-size: 13px;
	color: var(--text-3);
}

.panel-item .emojis {
	font-size: 18px;
	letter-spacing: 2px;
	white-space: nowrap;
	overflow: hidden;
	max-width: 180px;
	text-overflow: ellipsis;
}

.panel-item .actions {
	display: flex;
	gap: 6px;
}

.panel-item form {
	margin: 0;
}

.editor {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

.editor-fields {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* discord-style embed preview */

.preview {
	position: sticky;
	top: 88px;
}

.preview .label {
	display: block;
	margin-bottom: 8px;
}

.discord {
	padding: 16px;
	background: #313338;
	border-radius: var(--radius-sm);
	font-family: "gg sans", var(--font);
}

.discord .msg-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.discord .bot-name {
	font-weight: 600;
	color: #f2f3f5;
	font-size: 15px;
}

.discord .app-tag {
	padding: 1px 5px;
	font-size: 10px;
	font-weight: 700;
	background: #5865f2;
	color: #fff;
	border-radius: 3px;
}

.embed {
	padding: 10px 14px 12px;
	background: #2b2d31;
	border-left: 4px solid #5865f2;
	border-radius: 4px;
	color: #dbdee1;
	font-size: 14px;
}

.embed .e-title {
	font-weight: 700;
	color: #f2f3f5;
	margin-bottom: 6px;
	word-break: break-word;
}

.embed .e-desc {
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.45;
}

.embed .e-role {
	color: #c9cdfb;
	background: rgba(88, 101, 242, 0.3);
	padding: 0 2px;
	border-radius: 3px;
	font-weight: 500;
}

.embed .e-foot {
	margin-top: 10px;
	font-size: 12px;
	color: #b5bac1;
}

.reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
}

.reaction {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	background: #2b2d31;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	color: #b5bac1;
}

.reaction small {
	font-size: 13px;
	font-weight: 600;
}

/* ---------- custom dropdown ---------- */

.dd,
.cp {
	position: relative;
	min-width: 0;
}

/* the real control stays underneath so forms and validation still work */
.dd-native,
.cp-native {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	opacity: 0;
	pointer-events: none;
}

.dd-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	text-align: left;
	color: var(--text);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.dd-trigger:hover {
	border-color: var(--border-strong);
}

.dd-trigger:focus-visible,
.dd.open .dd-trigger {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.dd-trigger:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.dd-value {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.dd-value.placeholder {
	color: var(--text-3);
}

.dd-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dd-sym {
	flex: none;
	width: 12px;
	text-align: center;
	font-weight: 700;
	color: var(--text-3);
}

.dd-dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.dd-chev {
	display: grid;
	flex: none;
	color: var(--text-3);
	transition: transform 0.18s;
}

.dd-chev svg {
	width: 14px;
	height: 14px;
}

.dd.open .dd-chev {
	transform: rotate(180deg);
	color: var(--text-2);
}

.dd-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	display: none;
	flex-direction: column;
	min-width: 200px;
	max-height: 320px;
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
	overflow: hidden;
	transform-origin: top;
	animation: pop-in 0.14s ease-out;
}

.dd.up .dd-menu {
	top: auto;
	bottom: calc(100% + 6px);
	transform-origin: bottom;
}

.dd.open .dd-menu {
	display: flex;
}

@keyframes pop-in {
	from { opacity: 0; transform: scale(0.97) translateY(-4px); }
}

.dd-search {
	padding: 8px;
	border-bottom: 1px solid var(--border);
}

.dd-search input {
	padding: 8px 10px;
	font-size: 13.5px;
	background: var(--bg-raised);
}

.dd-list {
	overflow-y: auto;
	padding: 6px;
	overscroll-behavior: contain;
}

.dd-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	font-size: 14px;
	color: var(--text-2);
	border-radius: 7px;
	cursor: pointer;
	user-select: none;
}

.dd-option.active {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
}

.dd-option.selected {
	color: var(--text);
	font-weight: 600;
}

.dd-option.placeholder {
	color: var(--text-3);
	font-style: italic;
}

.dd-option.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.dd-check {
	display: none;
	margin-left: auto;
	color: var(--accent-hover);
}

.dd-check svg {
	width: 14px;
	height: 14px;
}

.dd-option.selected .dd-check {
	display: grid;
}

.dd-empty {
	padding: 14px;
	text-align: center;
	font-size: 13px;
	color: var(--text-3);
}

/* scrollbars inside popups/lists */
.dd-list::-webkit-scrollbar,
.picker-list::-webkit-scrollbar {
	width: 10px;
}

.dd-list::-webkit-scrollbar-thumb,
.picker-list::-webkit-scrollbar-thumb {
	background: var(--border-strong);
	border: 3px solid transparent;
	border-radius: 999px;
	background-clip: padding-box;
}

/* ---------- colour wheel ---------- */

.cp {
	flex: none;
}

.cp-swatch {
	display: block;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	box-shadow: inset 0 0 0 3px var(--bg-raised);
	cursor: pointer;
	transition: transform 0.1s, border-color 0.15s;
}

.cp-swatch:hover {
	border-color: var(--text-3);
}

.cp-swatch:focus-visible,
.cp.open .cp-swatch {
	outline: none;
	border-color: var(--accent);
	box-shadow: inset 0 0 0 3px var(--bg-raised), 0 0 0 3px var(--accent-soft);
}

.cp-pop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	display: none;
	flex-direction: column;
	gap: 14px;
	width: 220px;
	padding: 16px;
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
	animation: pop-in 0.14s ease-out;
}

.cp.up .cp-pop {
	top: auto;
	bottom: calc(100% + 8px);
}

.cp.open .cp-pop {
	display: flex;
}

.cp-wheel {
	position: relative;
	width: 184px;
	height: 184px;
	margin: 0 auto;
	touch-action: none;
	cursor: crosshair;
}

.cp-wheel canvas {
	display: block;
	width: 184px;
	height: 184px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.35);
}

.cp-handle {
	position: absolute;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.cp-slider {
	position: relative;
	height: 14px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	cursor: pointer;
	touch-action: none;
	outline: none;
}

.cp-slider:focus-visible {
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.cp-thumb {
	position: absolute;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.cp-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cp-current {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cp-hex {
	flex: 1;
	min-width: 0;
	padding: 8px 10px !important;
	font-family: ui-monospace, "SF Mono", Consolas, monospace !important;
	font-size: 13.5px !important;
	text-transform: lowercase;
}

.cp-eye {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	padding: 0;
	color: var(--text-2);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.cp-eye:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

.cp-eye svg {
	width: 16px;
	height: 16px;
}

.cp-presets {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.cp-presets button {
	aspect-ratio: 1;
	padding: 0;
	border: none;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	cursor: pointer;
	transition: transform 0.1s;
}

.cp-presets button:hover {
	transform: scale(1.12);
}

.cp-presets button.on {
	box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--accent);
}

/* ---------- rank card preview ---------- */

.rank-preview {
	position: relative;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-raised);
	aspect-ratio: 934 / 282;
}

.rank-preview img {
	display: block;
	width: 100%;
	height: 100%;
}

.rank-preview-loading {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-2);
	background: rgba(11, 13, 18, 0.8);
	border-radius: 999px;
	opacity: 0;
	transition: opacity 0.15s;
}

.rank-preview-loading.show {
	opacity: 1;
}

.scope-toggle {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	margin-bottom: 24px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.scope-toggle:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.scope-toggle input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--accent);
	flex: none;
}

.scope-toggle > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.server-card .buttons {
	display: flex;
	gap: 8px;
}

.server-card .buttons .btn {
	flex: 1;
}

code {
	padding: 1px 5px;
	font-size: 0.9em;
	background: var(--surface-2);
	border-radius: 4px;
}

/* ---------- leaderboard ---------- */

.lb-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px;
	margin-bottom: 16px;
	background:
		radial-gradient(500px 200px at 0% 0%, rgba(109, 120, 255, 0.18), transparent 70%),
		var(--surface);
}

.lb-me {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
	color: var(--text);
	transition: border-color 0.15s;
}

.lb-me:hover {
	border-color: var(--accent);
}

.lb-me img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.lb {
	list-style: none;
	margin: 0 0 16px;
	padding: 6px;
}

.lb-row {
	display: grid;
	grid-template-columns: 44px 40px minmax(0, 1fr) 200px 64px;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	scroll-margin-top: 90px;
}

.lb-row:hover {
	background: var(--surface-2);
}

.lb-row.me {
	background: var(--accent-soft);
	box-shadow: inset 0 0 0 1px rgba(109, 120, 255, 0.4);
}

.lb-row:target {
	animation: lb-flash 1.6s ease-out;
}

@keyframes lb-flash {
	from { background: rgba(109, 120, 255, 0.35); }
}

.lb-rank {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	color: var(--text-2);
	background: var(--bg-raised);
	font-variant-numeric: tabular-nums;
}

.lb-row.top-1 .lb-rank { background: linear-gradient(135deg, #ffd76a, #e6a817); color: #3a2a00; }
.lb-row.top-2 .lb-rank { background: linear-gradient(135deg, #e9edf5, #a9b3c6); color: #22283a; }
.lb-row.top-3 .lb-rank { background: linear-gradient(135deg, #f0a76b, #b8652a); color: #2e1606; }

.lb-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface-2);
}

.lb-row.top .lb-avatar {
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--border-strong);
}

.lb-name {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-weight: 600;
}

.lb-name > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lb-progress {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lb-progress .subtle {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.lb-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--bg-raised);
	overflow: hidden;
}

.lb-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--accent), #a46bff);
}

.lb-level {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.1;
}

.lb-level .subtle {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.lb-level strong {
	font-size: 20px;
	font-variant-numeric: tabular-nums;
}

.pager {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
}

.pager > :last-child {
	justify-self: end;
}

@media (max-width: 640px) {
	.lb-row {
		grid-template-columns: 34px 36px minmax(0, 1fr) 52px;
		gap: 10px;
	}

	.lb-progress {
		display: none;
	}

	.lb-hero {
		padding: 18px;
	}
}

/* ---------- tickets: settings ---------- */

.switch-row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
}

.switch-row input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.switch {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: var(--border-strong);
	transition: background 0.18s;
}

.switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	transition: transform 0.18s;
}

.switch-row input:checked + .switch {
	background: var(--success);
}

.switch-row input:checked + .switch::after {
	transform: translateX(18px);
}

.switch-row input:focus-visible + .switch {
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 18px;
}

.stat strong {
	font-size: 24px;
	font-variant-numeric: tabular-nums;
}

.row.type,
.rows-head.type {
	grid-template-columns: 72px 1fr 130px 40px;
}

.type-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.type-row input,
.type-row .dd-trigger {
	background: var(--surface);
}

.d-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.d-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	border-radius: 8px;
	background: #5865f2;
}

.d-btn.secondary { background: #4e5058; }
.d-btn.success { background: #248046; }
.d-btn.danger { background: #da373c; }

.ticket-table {
	display: flex;
	flex-direction: column;
}

.ticket-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 150px 150px 100px;
	align-items: center;
	gap: 12px;
	padding: 10px 6px;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}

.ticket-row:last-child {
	border-bottom: none;
}

.ticket-row > span:last-child {
	justify-self: end;
}

.ticket-num {
	font-weight: 700;
	color: var(--text-2);
	font-variant-numeric: tabular-nums;
}

.ticket-who {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ticket-who img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex: none;
}

.ticket-who > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ticket-who .subtle {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- transcripts ---------- */

.t-header {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 16px;
}

.t-facts {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.t-facts > div,
.t-reasons > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 14px;
}

.t-person {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.t-person img {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.t-reasons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.t-reasons p {
	padding: 10px 12px;
	background: var(--bg-raised);
	border-radius: var(--radius-sm);
	white-space: pre-wrap;
	word-break: break-word;
}

.t-chat {
	padding: 12px 0;
	background: #313338;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: "gg sans", var(--font);
	color: #dbdee1;
}

.t-day {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 16px 6px;
	font-size: 12px;
	font-weight: 600;
	color: #949ba4;
}

.t-day::before,
.t-day::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #3f4147;
}

.t-msg {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 16px;
	padding: 6px 16px 2px;
	margin-top: 12px;
}

.t-msg.grouped {
	margin-top: 0;
	padding-top: 1px;
}

.t-msg:hover {
	background: #2e3035;
}

.t-msg:target {
	background: rgba(250, 168, 26, 0.1);
}

.t-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.t-gutter-time {
	visibility: hidden;
	padding-top: 3px;
	font-size: 11px;
	color: #949ba4;
	text-align: right;
}

.t-msg.grouped:hover .t-gutter-time {
	visibility: visible;
}

.t-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 1px;
}

.t-meta .subtle {
	font-size: 12px;
	color: #949ba4;
}

.t-author {
	font-weight: 600;
	color: #f2f3f5;
}

.t-content {
	font-size: 15px;
	line-height: 1.375;
	word-break: break-word;
}

.t-edited {
	font-size: 11px;
	color: #949ba4;
}

.t-mention {
	padding: 0 2px;
	border-radius: 3px;
	color: #c9cdfb;
	background: rgba(88, 101, 242, 0.3);
	font-weight: 500;
}

.t-emoji {
	width: 22px;
	height: 22px;
	vertical-align: -5px;
	object-fit: contain;
}

.t-time {
	padding: 0 2px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.06);
}

.t-code {
	padding: 1px 4px;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.85em;
	background: #2b2d31;
	border-radius: 4px;
}

.t-codeblock {
	margin: 6px 0;
	padding: 10px 12px;
	max-width: 100%;
	overflow-x: auto;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 13px;
	line-height: 1.45;
	background: #2b2d31;
	border: 1px solid #1e1f22;
	border-radius: 4px;
	white-space: pre;
}

.t-quote {
	display: block;
	padding-left: 12px;
	border-left: 4px solid #4e5058;
}

.t-li {
	display: block;
	padding-left: 16px;
	position: relative;
}

.t-li::before {
	content: "•";
	position: absolute;
	left: 4px;
}

.t-h1 { display: block; font-size: 24px; font-weight: 700; margin: 6px 0 2px; }
.t-h2 { display: block; font-size: 20px; font-weight: 700; margin: 6px 0 2px; }
.t-h3 { display: block; font-size: 16px; font-weight: 700; margin: 6px 0 2px; }
.t-sub { display: block; font-size: 12px; color: #949ba4; }

.t-spoiler {
	padding: 0 2px;
	border-radius: 3px;
	color: transparent;
	background: #1e1f22;
	cursor: pointer;
}

.t-spoiler.shown {
	color: inherit;
	background: rgba(255, 255, 255, 0.1);
	cursor: auto;
}

.t-content a,
.t-embed a {
	color: #00a8fc;
}

.t-image {
	display: inline-block;
	position: relative;
	margin-top: 6px;
	max-width: 400px;
	border-radius: 8px;
	overflow: hidden;
}

.t-image img {
	display: block;
	max-width: 100%;
	max-height: 320px;
}

.t-expired-note {
	display: none;
	padding: 12px 14px;
	font-size: 13px;
	color: #949ba4;
	background: #2b2d31;
	border: 1px dashed #4e5058;
	border-radius: 8px;
}

.t-image.expired img {
	display: none;
}

.t-image.expired .t-expired-note {
	display: block;
}

.t-file {
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	max-width: 400px;
	margin-top: 6px;
	padding: 10px 14px;
	color: #dbdee1;
	background: #2b2d31;
	border: 1px solid #1e1f22;
	border-radius: 8px;
}

.t-file svg {
	width: 28px;
	height: 28px;
	color: #949ba4;
	flex: none;
}

.t-file > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.t-file strong {
	color: #00a8fc;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.t-embed {
	position: relative;
	max-width: 520px;
	margin-top: 6px;
}

.t-embed-author {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #f2f3f5;
}

.t-embed-author img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.t-embed-thumb {
	float: right;
	max-width: 80px;
	max-height: 80px;
	margin: 0 0 8px 12px;
	border-radius: 4px;
}

.t-embed-image {
	display: block;
	max-width: 100%;
	margin-top: 10px;
	border-radius: 4px;
}

.t-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 8px;
}

.t-fields > div {
	flex: 1 1 100%;
	min-width: 0;
}

.t-fields > div.inline {
	flex: 1 1 140px;
}

.t-field-name {
	margin-bottom: 2px;
	font-size: 14px;
	font-weight: 600;
	color: #f2f3f5;
}

@media (max-width: 820px) {
	.stat-row,
	.t-facts {
		grid-template-columns: repeat(2, 1fr);
	}

	.ticket-row {
		grid-template-columns: 54px minmax(0, 1fr) 96px;
	}

	.ticket-row > span:nth-child(3),
	.ticket-row > span:nth-child(4) {
		display: none;
	}

	.row.type,
	.rows-head.type {
		grid-template-columns: 60px 1fr 40px;
	}

	.row.type .dd,
	.row.type select {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.rows-head.type span:nth-child(3) {
		display: none;
	}
}

/* ---------- automod ---------- */

.filter-pair {
	align-items: start;
}

.filter-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.filter-head > div {
	flex: 1;
	min-width: 0;
}

.filter-head p {
	margin-top: 3px;
	font-size: 14px;
	color: var(--text-2);
}

.filter-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: var(--accent-hover);
	background: var(--accent-soft);
	transition: color 0.15s, background 0.15s;
}

.filter-icon svg {
	width: 19px;
	height: 19px;
}

.filter-body {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
	transition: opacity 0.15s;
}

.filter-body.grid-2,
.filter-body.grid-3 {
	display: grid;
}

.filter-card.off .filter-body {
	opacity: 0.45;
}

.filter-card.off .filter-icon {
	color: var(--text-3);
	background: var(--surface-2);
}

.preset-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 8px;
}

.preset {
	display: flex;
	flex-direction: column;
}

.preset .scope-toggle {
	flex: 1;
}

.preset:has(details[open]) .scope-toggle {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.preset-words {
	font-size: 12.5px;
	color: var(--text-3);
}

.preset-words summary {
	padding: 6px 16px 0 46px;
	cursor: pointer;
	user-select: none;
	list-style: none;
}

.preset-words summary::-webkit-details-marker {
	display: none;
}

.preset-words summary:hover {
	color: var(--text-2);
}

.preset-words > div {
	padding: 10px 16px;
	line-height: 1.6;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-top: none;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	word-break: break-word;
}

/* tag input */

.tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: text;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.tags:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.tags-list {
	display: contents;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 3px 4px 3px 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	word-break: break-all;
}

.tag button {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	padding: 0;
	font-size: 15px;
	line-height: 1;
	color: var(--text-3);
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

.tag button:hover {
	color: #fff;
	background: var(--danger);
}

.tags-input {
	flex: 1;
	min-width: 140px;
	padding: 5px 6px !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.tags-count {
	width: 100%;
	padding: 0 4px;
	font-size: 11.5px;
	color: var(--text-3);
	text-align: right;
}

.tags-count:empty {
	display: none;
}

/* "try it" box */

.tester {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 18px;
	padding: 14px;
	background: var(--bg-raised);
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-sm);
}

.tester-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.tester-row input {
	flex: 1;
	background: var(--surface) !important;
}

.tester-result {
	flex: none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.tester-result.good { color: var(--success); }
.tester-result.bad { color: var(--danger); }

@media (max-width: 820px) {
	.preset-grid {
		grid-template-columns: 1fr;
	}

	.tester-row {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ---------- login ---------- */

.login {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px;
}

.login-card {
	width: 100%;
	max-width: 420px;
	padding: 40px 36px;
	text-align: center;
}

.login-card h1 {
	margin-bottom: 8px;
}

.login-card p {
	margin-bottom: 28px;
}

.features {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin-top: 24px;
	font-size: 13px;
	color: var(--text-3);
}

.discord-btn {
	background: #5865f2;
	padding: 12px 20px;
	font-size: 15px;
}

.discord-btn:hover {
	background: #4752c4;
}

.discord-btn svg {
	width: 22px;
	height: 22px;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
	.editor {
		grid-template-columns: 1fr;
	}

	.preview {
		position: static;
	}
}

@media (max-width: 820px) {
	.shell {
		grid-template-columns: 1fr;
		padding-top: 20px;
	}

	.sidebar {
		position: static;
	}

	.nav {
		flex-direction: row;
		overflow-x: auto;
	}

	.nav-label {
		display: none;
	}

	.grid-3,
	.grid-2,
	.segmented {
		grid-template-columns: 1fr;
	}

	.toolbar input[type="search"] {
		width: 100%;
	}

	.topbar .user-chip .name {
		display: none;
	}

	.panel-item {
		flex-wrap: wrap;
	}
}

@media (max-width: 560px) {
	.row.entry,
	.rows-head.entry {
		grid-template-columns: 64px 1fr 40px;
	}

	.row.entry .label-input,
	.rows-head.entry .label-col {
		display: none;
	}
}
