:root {
	--bg: #f4f6f8;
	--panel: #ffffff;
	--text: #1a1a1a;
	--muted: #888;
	--line: #e8ecef;
	--primary: #111;
	--accent: #4fd5d1;
	--danger: #e5484d;
	--radius: 14px;
	--shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
}
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

.layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	min-height: 100vh;
}

.sider {
	background: #111;
	color: #fff;
	padding: 24px 16px;
}
.brand {
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 28px;
	padding: 0 8px;
}
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu__item {
	padding: 10px 12px;
	border-radius: 10px;
	color: #cfcfcf;
}
.menu__item:hover,
.menu__item--active {
	background: rgba(255,255,255,0.08);
	color: #fff;
}

.main { padding: 28px; }
.topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 20px;
}
.topbar__actions { display: flex; gap: 10px; }
.muted { color: var(--muted); font-size: 13px; margin-top: 6px; }

.toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}

.btn {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 999px;
	padding: 10px 16px;
	cursor: pointer;
	font-size: 14px;
}
.btn:hover { border-color: #ccc; }
.btn--primary {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}
.btn--danger {
	color: var(--danger);
	border-color: #ffd4d6;
	background: #fff5f5;
}
.btn--sm { padding: 6px 12px; font-size: 12px; }

.input, .textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	background: #fff;
}
.textarea { resize: vertical; line-height: 1.55; }
.textarea.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

.check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #444;
}

.table-wrap {
	background: var(--panel);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.table {
	width: 100%;
	border-collapse: collapse;
}
.table th, .table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	font-size: 14px;
}
.table th {
	background: #fafbfc;
	color: #666;
	font-weight: 600;
}
.table tr:last-child td { border-bottom: none; }

.cell-title {
	display: flex;
	gap: 10px;
	align-items: center;
}
.cell-title__icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #f3f6f8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	overflow: hidden;
}
.cell-title__icon img { width: 100%; height: 100%; object-fit: cover; }
.tag {
	display: inline-block;
	background: #f2f3f5;
	color: #666;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 12px;
	margin-right: 4px;
}
.badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
}
.badge--on { background: #e8fbf7; color: #0f766e; }
.badge--off { background: #f3f3f3; color: #888; }
.ops { display: flex; gap: 8px; flex-wrap: wrap; }

.form-grid { display: grid; gap: 16px; max-width: 980px; }
.card {
	background: var(--panel);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
}
.card h2 { font-size: 16px; margin-bottom: 14px; }
.card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.card__head h2 { margin-bottom: 0; }
.row { margin-bottom: 14px; }
.row label {
	display: block;
	font-size: 13px;
	color: #555;
	margin-bottom: 6px;
}
.row.two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.upload-line {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
}
.preview { margin-top: 8px; }
.preview img {
	max-width: 96px;
	max-height: 96px;
	border-radius: 12px;
	border: 1px solid var(--line);
}

@media (max-width: 860px) {
	.layout { grid-template-columns: 1fr; }
	.sider { display: none; }
	.row.two { grid-template-columns: 1fr; }
}
