.markdown-preview,
.markdown-content {
	color: var(--cs-muted);
	line-height: 1.6;
}

.markdown-tabs { display: flex; gap: 4px; margin: 0 0 10px; padding: 3px; background: #eef0f5; border-radius: 9px; width: max-content; }
.markdown-tabs button { border: 0; border-radius: 7px; padding: 7px 11px; color: var(--cs-muted); background: transparent; font-size: 12px; font-weight: 700; }
.markdown-tabs button.active { color: var(--cs-text); background: #fff; box-shadow: 0 2px 6px #1f243212; }
.markdown-field textarea { min-height: 150px; resize: none; line-height: 1.6; }

/* Pīlāru apraksti ir redzami tikai izvērstajā skatā. */
.pillars button small { display: none; }

.cs-pwa-meta { position: fixed; right: 16px; bottom: 16px; z-index: 800; display: flex; align-items: center; gap: 8px; color: #73798a; background: #fff; border: 1px solid var(--cs-border); border-radius: 9px; padding: 5px 7px 5px 10px; font-size: 11px; box-shadow: 0 4px 14px #1f243212; }
.cs-pwa-meta button { color: #fff; background: var(--cs-primary); border: 0; border-radius: 6px; padding: 5px 8px; font-size: 11px; }
.cs-pwa-meta button:disabled { opacity: .7; }
.cs-pwa-meta-menu { position: static !important; width: 100%; margin-top: 14px; padding: 12px 8px 0; border: 0; border-top: 1px solid #313247; border-radius: 0; background: transparent; box-shadow: none; color: #999caf; justify-content: space-between; font-size: 11px; }
.cs-pwa-meta-menu button { color: #fff; background: #6d5ef7; }
.cs-device-enrollment { position: fixed; z-index: 700; inset: 0; display: grid; place-items: center; background: #f6f7fb; padding: 24px; color: #18202f; font-family: Inter, system-ui, sans-serif; }
.cs-device-enrollment > div { width: min(440px, 100%); border: 1px solid #e7e9f0; border-radius: 18px; background: #fff; padding: 28px; box-shadow: 0 10px 30px #1f243212; }
.cs-device-enrollment strong { display: block; font-size: 23px; margin-bottom: 10px; }
.cs-device-enrollment p { color: #6d7585; line-height: 1.6; }
.cs-device-enrollment input { box-sizing: border-box; width: 100%; border: 1px solid #dfe1e8; border-radius: 10px; padding: 11px 12px; margin: 8px 0 12px; font: inherit; }
.cs-device-enrollment button { width: 100%; border: 0; border-radius: 10px; padding: 11px 14px; color: #fff; background: #6d5ef7; font: inherit; font-weight: 700; }
.cs-pwa-access-error { display: none; position: fixed; z-index: 400; inset: 0; background: #f6f7fb; color: var(--cs-text); padding: 28vh 24px 24px; text-align: center; font-size: 16px; }
.cs-pwa-access-error.visible { display: block; }
.cs-pwa-access-error strong { display: block; font-size: 22px; margin-bottom: 10px; }
.cs-pwa-access-error p { color: var(--cs-muted); margin: 0 auto; max-width: 420px; line-height: 1.6; }
#content-studio-pwa-fallback { position: fixed; z-index: 350; inset: 0; display: block; background: #f6f7fb; color: #18202f; padding: 28vh 24px 24px; text-align: center; font: 16px/1.6 Inter, system-ui, sans-serif; }
#content-studio-pwa-fallback strong { display: block; font-size: 22px; margin-bottom: 10px; }
#content-studio-pwa-fallback p { color: #6d7585; margin: 0 auto; max-width: 420px; }

.markdown-preview {
	border: 1px solid var(--cs-border);
	background: #f8f8fc;
	border-radius: 10px;
	margin-top: 0;
	margin-bottom: 16px;
	padding: 12px;
}

.markdown-preview[data-empty="1"] { color: var(--cs-muted); font-size: 13px; }
.markdown-preview p:first-child,
.markdown-content p:first-child { margin-top: 0; }
.markdown-preview p:last-child,
.markdown-content p:last-child { margin-bottom: 0; }
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 { color: var(--cs-text); margin: 10px 0 5px; }
.markdown-preview ul,
.markdown-preview ol,
.markdown-content ul,
.markdown-content ol { padding-left: 22px; }
.markdown-preview blockquote,
.markdown-content blockquote { border-left: 3px solid var(--cs-primary); margin: 10px 0; padding-left: 10px; }
.markdown-preview code,
.markdown-content code { background: #ececf5; border-radius: 4px; padding: 2px 4px; }
.markdown-preview pre,
.markdown-content pre { white-space: pre-wrap; }

@media (max-width: 760px) {
	.bottom-nav { grid-template-columns: repeat(4, 1fr); }
	.bottom-nav button:last-child { display: none; }
	.cs-shell { overscroll-behavior-y: none; }
	.cs-shell header { position: fixed !important; top: 0; left: 0; right: 0; }
	.cs-shell main { padding-top: 60px; }
}
