* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body {
	font-family:
		Inter,
		Arial,
		sans-serif;

	background: #111318;
	color: #d9dde7;
}

a {
	color: inherit;
	text-decoration: none;
}

.layout {
	display: grid;
	grid-template-columns: 280px 1fr;

	min-height: 100vh;
}

.sidebar {
	position: fixed;

	width: 280px;
	height: 100vh;

	padding: 28px 20px;

	background: #0c0e12;
	border-right: 1px solid #252832;

	overflow-y: auto;
}

.logo {
	display: block;

	margin-bottom: 28px;

	color: #ffffff;

	font-size: 20px;
	font-weight: 800;
	letter-spacing: 3px;
}

.search input {
	width: 100%;

	padding: 11px 12px;

	border: 1px solid #292d38;
	border-radius: 4px;

	background: #151820;
	color: white;

	outline: none;
}

.search input:focus {
	border-color: #596172;
}

.new-page {
	display: block;

	margin-top: 12px;
	padding: 10px 12px;

	border: 1px solid #303541;
	border-radius: 4px;

	text-align: center;

	background: #191c24;
}

.new-page:hover {
	background: #222630;
}

.navigation {
	margin-top: 30px;
}

.navigation h3 {
	margin-bottom: 18px;

	color: #656c7d;

	font-size: 11px;

	text-transform: uppercase;
	letter-spacing: 2px;
}

.category {
	margin-bottom: 24px;
}

.category-title {
	margin-bottom: 6px;

	color: #7d8495;

	font-size: 11px;
	font-weight: bold;

	text-transform: uppercase;
	letter-spacing: 1px;
}

.category a {
	display: block;

	margin: 2px 0;
	padding: 8px 10px;

	border-radius: 4px;

	color: #aeb4c2;

	font-size: 14px;
}

.category a:hover {
	background: #171a21;
	color: white;
}

.category a.active {
	background: #222630;
	color: white;
}

.content {
	grid-column: 2;
	min-width: 0;

	width: 100%;
	max-width: 1100px;

	padding: 65px 70px 120px;
}

.page-header {
	display: flex;

	justify-content: space-between;
	align-items: flex-start;

	gap: 30px;

	margin-bottom: 40px;

	padding-bottom: 22px;

	border-bottom: 1px solid #292d35;
}

.page-header h1 {
	margin: 0;

	color: white;

	font-size: 36px;
	font-weight: 700;
}

.page-category {
	margin-top: 8px;

	color: #737b8e;

	font-size: 13px;

	text-transform: uppercase;
	letter-spacing: 1px;
}

.actions {
	display: flex;

	align-items: center;
	gap: 8px;
}

.actions a,
.actions button {
	padding: 8px 12px;

	border: 1px solid #333845;
	border-radius: 4px;

	background: #1b1e25;
	color: #c6cad4;

	cursor: pointer;
}

.actions a:hover,
.actions button:hover {
	background: #272b35;
}

.actions form {
	margin: 0;
}

.actions .delete {
	color: #cf7373;
}

.wiki-content {
	max-width: 850px;

	font-size: 16px;
	line-height: 1.75;
}

.wiki-content h1 {
	margin-top: 45px;

	color: white;

	font-size: 30px;
}

.wiki-content h2 {
	margin-top: 38px;

	color: #eef0f6;

	font-size: 24px;
}

.wiki-content h3 {
	margin-top: 30px;

	color: #dce0ea;

	font-size: 19px;
}

.wiki-content a {
	color: #8aa9ff;

	border-bottom: 1px dashed #8aa9ff;
}

.wiki-content code {
	padding: 3px 6px;

	border-radius: 4px;

	background: #20232b;
	color: #e2bc78;

	font-family:
		Consolas,
		monospace;
}

.updated {
	margin-top: 70px;

	padding-top: 20px;

	border-top: 1px solid #242832;

	color: #5f6675;

	font-size: 12px;
}

.editor {
	max-width: 900px;
}

.editor label {
	display: block;

	margin-bottom: 25px;

	color: #81899a;

	font-size: 12px;
	font-weight: bold;

	text-transform: uppercase;
	letter-spacing: 1px;
}

.editor input,
.editor textarea {
	display: block;

	width: 100%;

	margin-top: 8px;
	padding: 12px;

	border: 1px solid #303541;
	border-radius: 4px;

	background: #151820;
	color: #e5e7ec;

	font: inherit;

	outline: none;
}

.editor textarea {
	min-height: 500px;

	resize: vertical;

	font-family:
		Consolas,
		monospace;

	line-height: 1.5;
}

.editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;

	margin-top: 8px;
	padding: 7px;

	border: 1px solid #303541;
	border-bottom: 0;
	border-radius: 4px 4px 0 0;

	background: #10131a;
}

.editor .editor-toolbar button {
	min-width: 34px;
	padding: 7px 10px;

	border: 1px solid transparent;
	border-radius: 3px;

	background: transparent;
	color: #b8bfcc;

	font: inherit;
	font-size: 13px;
}

.editor .editor-toolbar button:hover {
	border-color: #353b48;
	background: #20242d;
	color: white;
}

.editor-toolbar + textarea {
	margin-top: 0;
	border-radius: 0 0 4px 4px;
}

.editor input:focus,
.editor textarea:focus {
	border-color: #687184;
}

.editor button {
	padding: 12px 25px;

	border: 0;
	border-radius: 4px;

	background: #e3e6ed;
	color: #111318;

	font-weight: bold;

	cursor: pointer;
}

.editor button:hover {
	background: white;
}

.welcome {
	max-width: 850px;

	padding-top: 70px;
}

.welcome-label {
	margin-bottom: 12px;

	color: #686f80;

	font-size: 12px;

	letter-spacing: 4px;
}

.welcome h1 {
	margin: 0 0 20px;

	color: white;

	font-size: 56px;
}

.welcome p {
	max-width: 650px;

	color: #969dad;

	font-size: 18px;
	line-height: 1.7;
}

.start-button {
	display: inline-block;

	margin-top: 25px;
	padding: 13px 20px;

	border: 1px solid #3a3f4b;
	border-radius: 4px;

	background: #1c2028;
}

.page-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);

	gap: 15px;

	margin-top: 20px;
}

.page-card {
	padding: 20px;

	border: 1px solid #292d37;
	border-radius: 5px;

	background: #15181e;
}

.page-card:hover {
	border-color: #424957;
	background: #1a1e25;
}

.page-card h3 {
	margin: 7px 0 0;

	color: white;
}

.card-category {
	color: #687083;

	font-size: 10px;

	text-transform: uppercase;
	letter-spacing: 1px;
}

.empty {
	color: #555c6b;

	font-size: 13px;
}

.error {
	margin-bottom: 25px;
	padding: 12px 15px;

	border: 1px solid #663f43;

	background: #2b1d20;
	color: #e3a1a8;
}

@media (max-width: 800px) {
	.layout {
		display: block;
	}

	.sidebar {
		position: static;

		width: 100%;
		height: auto;
	}

	.content {
		padding: 35px 25px;
	}

	.page-grid {
		grid-template-columns: 1fr;
	}
}

.code-block {
	position: relative;

	margin: 24px 0;

	border: 1px solid #2c313c;
	border-radius: 6px;

	background: #0d1016;

	overflow: hidden;
}

.code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 14px;

	border-bottom: 1px solid #252a33;

	background: #141820;
}

.code-language {
	color: #a3adbe;

	font-family:
		Consolas,
		"Courier New",
		monospace;

	font-size: 11px;
	font-weight: bold;

	text-transform: uppercase;
	letter-spacing: 1px;
}

.copy-code {
	padding: 5px 9px;
	border: 1px solid #353c49;
	border-radius: 4px;
	background: transparent;
	color: #c6cad4;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.copy-code:hover {
	background: #252b36;
	color: white;
}

.copy-code:focus-visible,
.code-block pre:focus-visible {
	outline: 2px solid #8aa9ff;
	outline-offset: -2px;
}

.code-block pre {
	margin: 0;
	padding: 18px;

	overflow-x: auto;

	tab-size: 4;
	-moz-tab-size: 4;
}

.code-block pre code {
	padding: 0;

	border: 0;
	border-radius: 0;

	background: transparent;
	color: #d8dee9;

	font-family:
		Consolas,
		"Courier New",
		monospace;

	font-size: 14px;
	line-height: 1.6;

	white-space: pre;
}

.inline-code {
	padding: 3px 6px;

	border: 1px solid #303642;
	border-radius: 4px;

	background: #1c2028;
	color: #e5b978;

	font-family:
		Consolas,
		"Courier New",
		monospace;

	font-size: 0.9em;
}

/* Hosted wiki: workspace, editor, navigation and small-screen layout. */
:root { color-scheme: dark; --accent: #c3d999; --muted: #8e97a8; }
[hidden] { display: none !important; }
body { background: #111318; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:not(.copy-code):not(.text-button), select { border: 1px solid #343b46; border-radius: 6px; background: #20252e; color: #e0e5ef; padding: 10px 14px; }
input, textarea, select { max-width: 100%; }
.muted { color: var(--muted); line-height: 1.65; font-size: 14px; }
.logo { font-size: 19px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.logo-sub { display: block; color: #697385; font-size: 9px; letter-spacing: 2px; margin-top: 10px; }
.sidebar { display: flex; flex-direction: column; padding: 32px 22px 22px; }
.sidebar .new-page { background: var(--accent); color: #1a2110; border-color: var(--accent); font-weight: 700; font-size: 13px; padding: 12px; }
.quick-nav { display: grid; gap: 4px; padding-top: 25px; }
.quick-nav a { padding: 9px 5px; font-size: 13px; color: #a4acba; display: flex; justify-content: space-between; }
.quick-nav a:hover { color: var(--accent); }
.quick-nav span { font-size: 11px; color: #737d8e; }
.navigation { margin-top: 20px; }
.category-title { cursor: pointer; padding: 6px 0; display: flex; align-items: center; justify-content: space-between; }
.category .category-title a { padding: 0; margin: 0; font-size: 10px; color: #929bac; }
.category-title span { font-size: 10px; color: #596372; }
.category { margin-bottom: 18px; }
.category a { font-size: 13px; }
.category a.active { background: #252c23; color: var(--accent); }
.tag-cloud { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 0; }
.tag { display: inline-block; font-size: 11px; color: #b0bba0; padding: 5px 9px; border: 1px solid #30372b; border-radius: 5px; background: #1a2018; }
.tag:hover { border-color: #687851; }
.tag small { color: #748467; }
.sidebar-footer { margin-top: auto; padding-top: 25px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 12px; color: #929aab; }
.sidebar-footer form { margin: 0; }
.owner-badge { color: var(--accent); font-size: 11px; }
.text-button { background: none; padding: 4px 0; border: 0; color: #a4adbd; cursor: pointer; font-size: 12px; }
.danger { color: #db9999; }
.content { max-width: 1400px; padding: 55px 64px 32px; }
.dashboard { padding-top: 10px; }
.welcome h1 { font-size: clamp(32px, 4vw, 56px); letter-spacing: -2px; overflow-wrap: anywhere; }
.welcome p { font-size: 16px; max-width: 540px; }
.welcome-label, .eyebrow { color: #8e9a7b; font-size: 10px; letter-spacing: 2px; }
.eyebrow { margin-bottom: 12px; }
.accent-dot { color: var(--accent); }
.stats-row { display: flex; gap: 45px; padding: 24px 0 32px; margin-bottom: 24px; border-bottom: 1px solid #292e37; }
.stats-row div { display: flex; flex-direction: column; gap: 6px; }
.stats-row strong { color: #e8eee1; font-size: 27px; font-weight: 500; }
.stats-row span { color: #778191; font-size: 11px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input { min-width: 150px; flex: 1; background: #181c24; color: #e6eaf2; border: 1px solid #303743; padding: 11px 13px; border-radius: 6px; }
.filters select, .filters button { font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 35px; }
.section-heading h2 { font-size: 16px; font-weight: 500; }
.page-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 10px; }
.page-card { padding: 23px; border-radius: 9px; transition: background .15s, border-color .15s; display: flex; flex-direction: column; min-width: 0; }
.page-card h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.4px; margin-top: 20px; overflow-wrap: anywhere; }
.page-card p { color: #8a94a5; font-size: 13px; line-height: 1.7; margin: 12px 0 24px; overflow-wrap: anywhere; }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-category { color: #97a582; font-size: 9px; }
.card-bottom { color: #677183; font-size: 10px; padding-top: 15px; margin-top: auto; border-top: 1px solid #272d35; }
.card-bottom span:last-child { color: #a0ad8e; }
.status-pill { display: inline-block; padding: 4px 7px; color: #919baa; border: 1px solid #303743; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.empty-state { padding: 50px 25px; border: 1px dashed #343c48; border-radius: 8px; color: #a3adbc; margin: 25px 0; line-height: 1.7; }
.empty-state h2 { color: #dce4d0; }
.content-footer { margin-top: 70px; padding-top: 20px; border-top: 1px solid #252b34; display: flex; gap: 18px; color: #5c6779; font-size: 9px; letter-spacing: 1px; }
.content-footer span { letter-spacing: 0; }
.notice { background: #1e2b1d; color: #c4d9ae; border: 1px solid #3c5235; border-radius: 6px; padding: 13px 16px; margin-bottom: 22px; font-size: 13px; line-height: 1.6; }
.error { border-radius: 6px; line-height: 1.6; }
.page-header { gap: 20px; margin-bottom: 28px; }
.page-header h1 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -1px; overflow-wrap: anywhere; }
.page-header > div:first-child { min-width: 0; }
.page-header .actions { flex-shrink: 0; flex-wrap: wrap; }
.actions a { font-size: 12px; white-space: nowrap; }
.breadcrumbs { color: #778192; font-size: 11px; margin-bottom: 26px; line-height: 1.8; }
.page-meta { margin-top: 15px; display: flex; align-items: center; gap: 14px; color: #738092; font-size: 11px; }
.page-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.wiki-content { overflow-wrap: anywhere; }
.wiki-content img { max-width: 100%; height: auto; border: 1px solid #333c48; border-radius: 6px; margin: 15px 0; }
.wiki-content h1, .wiki-content h2, .wiki-content h3 { scroll-margin-top: 25px; }
.wiki-content h1:first-child, .wiki-content h2:first-child { margin-top: 16px; }
.wiki-content blockquote { margin: 15px 0; border-left: 3px solid #8a9e70; padding: 10px 18px; color: #acb59e; background: #1a2019; }
.wiki-content hr { border: 0; border-top: 1px solid #303641; margin: 24px 0; }
.wiki-content li { padding: 3px 0; }
.wiki-content .missing-link { color: #d19b8a; border-bottom-color: #d19b8a; }
.paragraph-gap { height: 12px; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.wiki-content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.wiki-content th, .wiki-content td { border: 1px solid #343c49; padding: 10px 14px; text-align: left; min-width: 100px; }
.wiki-content th { background: #1c232b; color: #c2d1af; }
.toc { margin: 24px 0 30px; border: 1px solid #2c343e; border-radius: 6px; background: #14191f; padding: 14px 18px; max-width: 450px; }
.toc summary { font-size: 12px; color: #a4ae99; cursor: pointer; }
.toc nav { display: grid; gap: 10px; margin-top: 16px; }
.toc a { font-size: 12px; color: #909bab; }
.toc .toc-level-3 { padding-left: 15px; }
.backlinks { padding-top: 25px; margin-top: 40px; border-top: 1px solid #2c333d; }
.backlinks h3 { font-size: 13px; color: #8b97a7; }
.updated { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #8b96a8; margin-top: 40px; }
.updated form { margin: 0; }
.form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.editor label { letter-spacing: .5px; font-size: 10px; color: #9da8b9; }
.editor input, .editor textarea, .editor select { font-size: 14px; font-weight: normal; text-transform: none; letter-spacing: 0; }
.editor select { display: block; width: 100%; margin-top: 8px; height: 43px; }
.editor textarea { min-height: 450px; font-size: 14px; line-height: 1.7; }
.editor-toolbar { margin-top: 0; }
.editor .editor-toolbar button { font-size: 11px; padding: 7px 9px; }
.editor-tabs { display: flex; gap: 6px; align-items: center; margin: 24px 0 12px; }
.editor-tabs span { margin-left: auto; font-size: 10px; color: #788674; }
.editor .editor-tabs button { background: #20252d; color: #8d98aa; font-size: 12px; padding: 9px 15px; }
.editor .editor-tabs button[aria-pressed="true"] { background: #293222; color: var(--accent); border-color: #526242; }
.editor .editor-footer > button, .settings-form > button { background: var(--accent); color: #1b2611; border-color: var(--accent); }
.editor-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.editor-footer .muted { font-size: 11px; }
.preview-panel { min-height: 450px; padding: 20px; border: 1px solid #303947; border-radius: 6px; }
.template-picker { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border: 1px dashed #343d46; border-radius: 6px; padding: 12px; }
.template-picker label { margin: 0; text-transform: none; }
.template-picker select { width: auto; margin: 0; font-size: 12px; }
.editor .template-picker button { padding: 8px 10px; font-size: 11px; background: #232b20; color: #baccaa; }
.markdown-help { margin-top: 25px; color: #8c97a9; font-size: 12px; line-height: 1.8; }
.markdown-help summary { cursor: pointer; }
.markdown-help code { color: #b6c4a4; }
.history-item { padding: 20px; border: 1px solid #303844; border-radius: 7px; margin: 15px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.history-item h3 { margin: 0 0 8px; }
.history-entry { padding: 18px; border: 1px solid #303844; border-radius: 7px; margin: 15px 0; }
.history-entry > summary { cursor: pointer; font-size: 13px; color: #acb89c; }
.history-entry .wiki-content { padding: 20px 0; }
.settings-section { margin-top: 45px; padding-top: 20px; border-top: 1px solid #303743; max-width: 700px; }
.settings-form { max-width: 650px; }
.settings-form h2 { margin-top: 35px; font-size: 20px; }
.editor .checkbox-label { display: flex; align-items: center; gap: 12px; text-transform: none; font-size: 14px; margin-bottom: 10px; }
.editor .checkbox-label input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(ellipse at 30% 20%, #212a1c 0, transparent 65%); }
.login-card { padding: 45px; max-width: 480px; width: 100%; border: 1px solid #353d31; border-radius: 12px; background: #14191a; box-shadow: 0 30px 100px #0005; }
.login-card h1 { font-size: 36px; letter-spacing: -1px; margin-bottom: 12px; overflow-wrap: anywhere; }
.login-card .editor { margin-top: 30px; }
.login-card .editor button { width: 100%; background: var(--accent); color: #182210; }
.mobile-bar { display: none; }
.login-warning { color: #b7a17c; font-size: 12px; line-height: 1.65; margin-top: 24px; }
.code-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: #111820; border: 1px solid #303541; border-top: 0; }
.editor .code-tools label { margin: 0; font-size: 10px; }
.editor .code-tools select { width: auto; margin: 0; height: 33px; font-size: 12px; padding: 5px 8px; }
.editor .code-tools button { font-size: 11px; padding: 8px 10px; background: #202a1d; color: #c3d999; }
.editor #editor-content { margin-top: 0; border-radius: 0 0 6px 6px; tab-size: 4; font-family: Consolas, 'Liberation Mono', monospace; }
.editor-workspace { min-width: 0; }
.editor-workspace > * { min-width: 0; }
.editor-workspace.split-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.split-view .preview-panel { max-height: 75vh; overflow-y: auto; }
.split-view #editor-content { min-height: 60vh; }
.editor-tabs { flex-wrap: wrap; }
.editor-tabs span { flex-basis: 100%; margin: 8px 0 0; }
.editor .editor-tabs button { font-size: 11px; padding: 8px 11px; }
body.has-focused-editor { overflow: hidden; }
.editor.editor-focused { position: fixed; inset: 12px; z-index: 20; max-width: none; overflow-y: auto; padding: 24px; background: #111318; border: 1px solid #3c4934; border-radius: 10px; box-shadow: 0 0 0 30px #000b; }
.editor-focused .editor-workspace { min-height: 60vh; }
.editor-focused .preview-panel { max-width: none; }
#code-dialog { width: min(950px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: #151b22; color: #dce5d2; border: 1px solid #61764c; border-radius: 10px; padding: 24px; }
#code-dialog::backdrop { background: #000b; }
.code-dialog-header, .code-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.code-dialog-header h2 { margin: 0; font-size: 22px; }
#code-dialog label { display: block; font-size: 12px; color: #a7b49b; margin: 12px 0 7px; }
#code-input { display: block; width: 100%; min-height: 240px; max-height: 55dvh; resize: vertical; padding: 14px; border: 1px solid #3c4855; border-radius: 6px; background: #0e1319; color: #dce5ef; font: 14px/1.6 Consolas, 'Liberation Mono', monospace; tab-size: 4; white-space: pre; overflow: auto; }
#code-input:focus { outline: 1px solid var(--accent); }
#insert-code-block { background: var(--accent); color: #182210; font-weight: bold; }
.preview-panel[aria-busy="true"] { opacity: .7; }
@media (max-width: 1000px) { .editor-workspace.split-view { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .editor.editor-focused { inset: 0; padding: 16px; border-radius: 0; } #code-dialog { padding: 18px; } .code-dialog-actions { flex-wrap: wrap; } .code-dialog-header h2 { font-size: 18px; } }
@media (min-width: 1600px) { .content { padding-left: 85px; padding-right: 85px; } }
@media (max-width: 1100px) { .content { padding: 40px 30px; } .page-header { flex-direction: column; gap: 16px; } }
@media (max-width: 800px) {
    .mobile-bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #10151a; border-bottom: 1px solid #303743; }
    .mobile-logo { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
    .mobile-bar button { font-size: 11px; }
    .sidebar { display: none; position: static; width: 100%; max-height: 75vh; height: auto; padding: 24px; border-bottom: 1px solid #303743; }
    .sidebar.is-open { display: flex; }
    .sidebar .logo { display: none; }
    .sidebar-footer { margin-top: 15px; }
    .content { padding: 32px 20px; }
    .dashboard { padding-top: 0; }
    .stats-row { gap: 40px; }
    .page-grid { grid-template-columns: 1fr; }
    .filters input { flex-basis: 100%; }
    .filters select { flex: 1; min-width: 0; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .editor-tabs { flex-wrap: wrap; }
    .editor-tabs span { width: 100%; margin: 8px 0; }
    .history-item { flex-direction: column; align-items: flex-start; }
    .login-card { padding: 28px; }
    .content-footer { flex-direction: column; gap: 8px; }
    .wiki-content { font-size: 15px; }
    .wiki-content h1, .wiki-content h2, .wiki-content h3 { scroll-margin-top: 85px; }
    .updated { align-items: flex-start; }
}
