/* NewsCMS reporter frontend. Mobile first; all selectors are namespaced with .newscms-. */

.newscms-app {
	--nc-bg: #f4f5f7;
	--nc-surface: #fff;
	--nc-border: #e4e7ec;
	--nc-border-strong: #d0d5dd;
	--nc-text: #101828;
	--nc-text-2: #475467;
	--nc-muted: #667085;
	--nc-accent: #0f6cbd;
	--nc-accent-hover: #0b5aa0;
	--nc-accent-soft: #eaf3fc;
	--nc-danger: #c0362c;
	--nc-danger-soft: #fdecea;
	--nc-success: #137a4b;
	--nc-success-soft: #e7f6ee;
	--nc-warning: #9a6200;
	--nc-warning-soft: #fff5e0;
	--nc-radius: 14px;
	--nc-radius-sm: 10px;
	--nc-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	--nc-shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
	--nc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--nc-safe-bottom: env(safe-area-inset-bottom, 0px);
	--nc-tabbar: 64px;

	box-sizing: border-box;
	color: var(--nc-text);
	font-family: var(--nc-font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

.newscms-app *,
.newscms-app *::before,
.newscms-app *::after { box-sizing: inherit; }

.newscms-app a { color: var(--nc-accent); text-decoration: none; }
.newscms-app h1, .newscms-app h2, .newscms-app h3 { color: var(--nc-text); font-family: var(--nc-font); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.newscms-app p { margin: 0 0 .75em; }
.newscms-app p:last-child { margin-bottom: 0; }
.newscms-app img { max-width: 100%; height: auto; }
.newscms-app [hidden] { display: none !important; }
.newscms-app :focus-visible { outline: 2px solid var(--nc-accent); outline-offset: 2px; }

.newscms-icon { flex: none; vertical-align: middle; }
.newscms-muted { color: var(--nc-muted); }
.newscms-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Standalone page */
body.newscms-standalone { margin: 0; background: #f4f5f7; }

/* ---------- Buttons ---------- */
.newscms-app .newscms-btn {
	align-items: center;
	background: var(--nc-surface);
	border: 1px solid var(--nc-border-strong);
	border-radius: var(--nc-radius-sm);
	color: var(--nc-text);
	cursor: pointer;
	display: inline-flex;
	font: 600 15px/1.2 var(--nc-font);
	gap: 8px;
	justify-content: center;
	min-height: 46px;
	padding: 10px 16px;
	text-decoration: none;
	transition: background-color .15s, border-color .15s, transform .1s;
	white-space: nowrap;
}
.newscms-app .newscms-btn:active { transform: scale(.98); }
.newscms-app .newscms-btn:hover { background: #f9fafb; }
.newscms-app .newscms-btn--primary { background: var(--nc-accent); border-color: var(--nc-accent); color: #fff; }
.newscms-app .newscms-btn--primary:hover { background: var(--nc-accent-hover); border-color: var(--nc-accent-hover); color: #fff; }
.newscms-app .newscms-btn--ghost { background: transparent; border-color: transparent; color: var(--nc-text-2); }
.newscms-app .newscms-btn--ghost:hover { background: #f2f4f7; }
.newscms-app .newscms-btn--danger { color: var(--nc-danger); }
.newscms-app .newscms-btn--sm { font-size: 14px; min-height: 38px; padding: 8px 12px; }
.newscms-app .newscms-btn--block { width: 100%; }
.newscms-app .newscms-btn[disabled],
.newscms-app .newscms-btn.is-busy { cursor: not-allowed; opacity: .6; }

.newscms-app .newscms-icon-btn {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--nc-text);
	cursor: pointer;
	display: inline-flex;
	flex: none;
	height: 40px;
	justify-content: center;
	padding: 0;
	width: 40px;
}
.newscms-app .newscms-icon-btn:hover { background: #f2f4f7; }
.newscms-app .newscms-icon-btn .newscms-icon { height: 22px; width: 22px; }

/* ---------- Alerts ---------- */
.newscms-alert { border: 1px solid; border-radius: var(--nc-radius-sm); margin: 0 0 14px; padding: 12px 14px; font-size: 14px; }
.newscms-alert ul { margin: 4px 0 0 18px; padding: 0; }
.newscms-alert--error { background: var(--nc-danger-soft); border-color: #f5c2bd; color: #7a1f17; }
.newscms-alert--success { background: var(--nc-success-soft); border-color: #b6e3c9; color: #0d5232; }
.newscms-alert--warning { background: var(--nc-warning-soft); border-color: #f5d79e; color: #6b4400; }
.newscms-alert--info { background: var(--nc-accent-soft); border-color: #c4ddf5; color: #0b4778; }

/* ---------- Badges ---------- */
.newscms-badge { border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px; white-space: nowrap; background: #f2f4f7; color: #344054; }
.newscms-badge--pending { background: #fff5e0; color: #8a5700; }
.newscms-badge--approved { background: #eaf3fc; color: #0b5aa0; }
.newscms-badge--published { background: #e7f6ee; color: #0d6b40; }
.newscms-badge--rejected { background: #fdecea; color: #a72d23; }
.newscms-badge--unpublished { background: #efe9fb; color: #5b3aa6; }

/* ---------- Auth ---------- */
.newscms-auth { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 80vh; padding: 40px 16px; }
body.newscms-standalone .newscms-auth { min-height: 100vh; min-height: 100dvh; }
.newscms-auth__card { background: var(--nc-surface); border: 1px solid var(--nc-border); border-radius: 16px; box-shadow: var(--nc-shadow-lg); max-width: 400px; padding: 32px; width: 100%; }
.newscms-app .newscms-auth__brand { align-items: center; color: var(--nc-text); display: flex; font-size: 17px; font-weight: 700; gap: 10px; justify-content: center; margin-bottom: 24px; text-decoration: none; }
.newscms-auth__brand .newscms-brand-logo { display: block; height: auto; max-height: 64px; max-width: 220px; object-fit: contain; width: auto; }
.newscms-auth__brand .newscms-brand-icon { border-radius: 10px; flex: none; height: 40px; object-fit: cover; width: 40px; }
.newscms-auth__title { font-size: 22px; margin-bottom: 6px !important; }
.newscms-auth .newscms-muted { margin-bottom: 20px; }
.newscms-auth__card > .newscms-auth__title,
.newscms-auth__card > p.newscms-muted { text-align: center; }
.newscms-auth__row { align-items: center; display: flex; font-size: 14px; justify-content: space-between; margin: -4px 0 18px; }
.newscms-auth__footer { font-size: 14px; margin-top: 16px !important; text-align: center; }
.newscms-auth__site { font-size: 13px; margin-top: 16px; }
.newscms-auth__site a { color: var(--nc-muted) !important; }

.newscms-logo { align-items: center; background: var(--nc-accent); border-radius: 9px; color: #fff; display: inline-flex; flex: none; font-weight: 700; height: 32px; justify-content: center; width: 32px; }

/* ---------- Forms ---------- */
.newscms-field { margin-bottom: 20px; }
.newscms-field:last-child { margin-bottom: 0; }
.newscms-app .newscms-field > label,
.newscms-app .newscms-label { color: var(--nc-text); display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.newscms-req { color: var(--nc-danger); }
.newscms-optional { color: var(--nc-muted); font-weight: 400; }
/* 16px text stops iOS from zooming into fields. */
.newscms-app input[type="text"],
.newscms-app input[type="email"],
.newscms-app input[type="password"],
.newscms-app input[type="search"],
.newscms-app input[type="tel"],
.newscms-app select,
.newscms-app textarea {
	-webkit-appearance: none;
	appearance: none;
	background: var(--nc-surface);
	border: 1px solid var(--nc-border-strong);
	border-radius: var(--nc-radius-sm);
	color: var(--nc-text);
	font: 16px/1.4 var(--nc-font);
	margin: 0;
	max-width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}
.newscms-app select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; background-size: 18px; padding-right: 40px; }
.newscms-app textarea { min-height: 96px; resize: vertical; }
.newscms-app textarea[data-newscms-single-line] { font-size: 18px; font-weight: 600; min-height: 56px; overflow: hidden; resize: none; }
.newscms-app input:focus,
.newscms-app select:focus,
.newscms-app textarea:focus { border-color: var(--nc-accent); box-shadow: 0 0 0 3px rgba(15, 108, 189, .15); outline: none; }
.newscms-app input[readonly] { background: #f9fafb; color: var(--nc-muted); }
.newscms-field.has-error input,
.newscms-field.has-error select,
.newscms-field.has-error textarea,
.newscms-field.has-error .newscms-editor-wrap,
.newscms-field.has-error .newscms-image__preview { border-color: var(--nc-danger); }
.newscms-field__hint { color: var(--nc-muted); font-size: 13px; margin: 6px 0 0 !important; }
.newscms-field__hint--right { text-align: right; }
.newscms-field__error { color: var(--nc-danger); font-size: 13px; font-weight: 500; margin: 6px 0 0 !important; }
.newscms-check { align-items: center; color: var(--nc-text-2); cursor: pointer; display: inline-flex; font-size: 15px; gap: 8px; min-height: 44px; }
.newscms-check input { height: 20px; margin: 0; width: 20px; }

.newscms-password { position: relative; }
.newscms-app .newscms-password input { padding-right: 48px; }
.newscms-app .newscms-password__toggle { align-items: center; background: none; border: 0; color: var(--nc-muted); cursor: pointer; display: flex; height: 100%; justify-content: center; position: absolute; right: 0; top: 0; width: 48px; }
.newscms-password__toggle.is-visible { color: var(--nc-accent); }

.newscms-file { overflow: hidden; position: relative; }
.newscms-file input[type="file"] { cursor: pointer; inset: 0; opacity: 0; position: absolute; width: 100%; }
.newscms-file:focus-within { outline: 2px solid var(--nc-accent); outline-offset: 2px; }

/* Collapsible "more" sections */
.newscms-more { border-top: 1px solid var(--nc-border); margin: 4px 0 20px; padding-top: 4px; }
.newscms-more > summary { align-items: center; color: var(--nc-text); cursor: pointer; display: flex; font-size: 15px; font-weight: 600; gap: 8px; list-style: none; min-height: 48px; }
.newscms-more > summary::-webkit-details-marker { display: none; }
.newscms-more > summary .newscms-icon { color: var(--nc-muted); transition: transform .15s; }
.newscms-more[open] > summary .newscms-icon { transform: rotate(90deg); }
.newscms-more[open] > summary { margin-bottom: 12px; }
.newscms-more--card { background: var(--nc-surface); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); margin-top: 14px; padding: 4px 16px; }
.newscms-more--card[open] { padding-bottom: 16px; }

/* ---------- Shell ---------- */
.newscms-shell { background: var(--nc-bg); min-height: 70vh; padding-bottom: calc(var(--nc-tabbar) + var(--nc-safe-bottom) + 16px); }
body.newscms-standalone .newscms-shell { min-height: 100vh; min-height: 100dvh; }
.newscms-shell.is-form { padding-bottom: calc(132px + var(--nc-safe-bottom)); }

.newscms-topbar { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--nc-border); position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.admin-bar .newscms-topbar { top: 46px; }
.newscms-topbar__inner { align-items: center; display: flex; gap: 8px; height: 56px; margin: 0 auto; max-width: 760px; padding: 0 12px 0 16px; }
.newscms-app .newscms-topbar__back { margin-left: -8px; }
.newscms-topbar__title { flex: 1; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newscms-app .newscms-brand { align-items: center; color: var(--nc-text); display: flex; flex: 1; font-size: 16px; font-weight: 700; gap: 10px; min-width: 0; }
.newscms-brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newscms-topnav { display: none; }
.newscms-app .newscms-avatar-link { border-radius: 50%; display: flex; flex: none; }
.newscms-avatar-link img { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--nc-border); height: 34px; object-fit: cover; width: 34px; }

.newscms-content { margin: 0 auto; max-width: 760px; padding: 16px; width: 100%; }

/* Bottom tab bar (phones) */
.newscms-tabbar { background: rgba(255, 255, 255, .96); border-top: 1px solid var(--nc-border); bottom: 0; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; left: 0; padding-bottom: var(--nc-safe-bottom); position: fixed; right: 0; z-index: 30; -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.newscms-app .newscms-tabbar__link { align-items: center; color: var(--nc-muted); display: flex; flex-direction: column; font-size: 12px; font-weight: 600; gap: 2px; height: var(--nc-tabbar); justify-content: center; }
.newscms-tabbar__link .newscms-icon { height: 24px; width: 24px; }
.newscms-app .newscms-tabbar__link.is-current { color: var(--nc-accent); }
.newscms-tabbar__link--add .newscms-tabbar__icon { align-items: center; background: var(--nc-accent); border-radius: 999px; box-shadow: 0 4px 12px rgba(15, 108, 189, .35); color: #fff; display: flex; height: 36px; justify-content: center; width: 52px; }
.newscms-tabbar__link--add .newscms-icon { height: 22px; width: 22px; }
.newscms-tabbar__icon { align-items: center; display: flex; height: 36px; }

/* ---------- News list ---------- */
.newscms-page-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.newscms-page-title { font-size: 24px !important; font-weight: 700; }
.newscms-app .newscms-page-head__btn { display: none; }

.newscms-chips { display: flex; gap: 8px; margin: 0 -16px 12px; overflow-x: auto; padding: 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.newscms-chips::-webkit-scrollbar { display: none; }
.newscms-app .newscms-chip { align-items: center; background: var(--nc-surface); border: 1px solid var(--nc-border); border-radius: 999px; color: var(--nc-text-2); display: inline-flex; flex: none; font-size: 14px; font-weight: 600; gap: 6px; min-height: 38px; padding: 0 14px; white-space: nowrap; }
.newscms-app .newscms-chip span { color: var(--nc-muted); font-weight: 500; }
.newscms-app .newscms-chip.is-current { background: var(--nc-text); border-color: var(--nc-text); color: #fff; }
.newscms-app .newscms-chip.is-current span { color: #d0d5dd; }

.newscms-search { align-items: center; display: flex; margin-bottom: 12px; position: relative; }
.newscms-search .newscms-icon { color: var(--nc-muted); left: 14px; pointer-events: none; position: absolute; }
.newscms-app .newscms-search input { border-radius: 999px; min-height: 44px; padding-left: 42px; }

.newscms-list { background: var(--nc-surface); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); list-style: none; margin: 0; overflow: hidden; padding: 0; }
.newscms-list li { border-bottom: 1px solid var(--nc-border); margin: 0; }
.newscms-list li:last-child { border-bottom: 0; }
.newscms-app .newscms-item { align-items: center; color: var(--nc-text); display: flex; gap: 12px; min-height: 80px; padding: 12px 10px 12px 12px; }
.newscms-app .newscms-item:active { background: #f9fafb; }
.newscms-item__thumb { align-items: center; background: #f2f4f7; border-radius: var(--nc-radius-sm); color: var(--nc-muted); display: flex; flex: none; height: 56px; justify-content: center; overflow: hidden; width: 56px; }
.newscms-item__thumb img { height: 100%; object-fit: cover; width: 100%; }
.newscms-item__body { display: grid; flex: 1; gap: 6px; min-width: 0; }
.newscms-item__title { -webkit-box-orient: vertical; display: -webkit-box; font-size: 15px; font-weight: 600; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.35; overflow: hidden; }
.newscms-item__meta { align-items: center; color: var(--nc-muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 8px; }
.newscms-item__chevron { color: #98a2b3; display: flex; }

.newscms-empty { color: var(--nc-text-2); padding: 48px 20px; text-align: center; }
.newscms-empty .newscms-icon { color: var(--nc-muted); height: 40px; margin-bottom: 10px; width: 40px; }
.newscms-empty h3 { font-size: 17px; margin-bottom: 6px; }
.newscms-empty .newscms-btn { margin-top: 16px; }

.newscms-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 16px 0 0; }
.newscms-app .newscms-pagination .page-numbers { align-items: center; background: var(--nc-surface); border: 1px solid var(--nc-border); border-radius: var(--nc-radius-sm); color: var(--nc-text-2); display: inline-flex; font-size: 14px; justify-content: center; min-height: 40px; min-width: 40px; padding: 0 12px; }
.newscms-app .newscms-pagination .current { background: var(--nc-text); border-color: var(--nc-text); color: #fff; }

/* ---------- News form ---------- */
.newscms-article-form,
.newscms-card-form { background: var(--nc-surface); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 18px 16px; }

.newscms-editor-wrap { border: 1px solid var(--nc-border-strong); border-radius: var(--nc-radius-sm); overflow: hidden; }
.newscms-editor-wrap .wp-editor-container { border: 0; }
.newscms-editor-wrap .wp-editor-tools { background: #f9fafb; padding: 6px 8px 0; }
.newscms-editor-wrap .wp-editor-area { border: 0 !important; box-shadow: none !important; font-family: var(--nc-font); font-size: 16px; min-height: 240px; }
.newscms-editor-wrap .mce-toolbar-grp { background: #fff !important; border-bottom: 1px solid var(--nc-border) !important; }
.newscms-editor-wrap .mce-toolbar .mce-btn button { padding: 6px 8px !important; }
.newscms-editor-wrap .mce-edit-area iframe { min-height: 240px; }

.newscms-app .newscms-image__preview { align-items: center; aspect-ratio: 16 / 9; background: #f9fafb; border: 2px dashed var(--nc-border-strong); border-radius: var(--nc-radius-sm); color: var(--nc-muted); cursor: pointer; display: flex; justify-content: center; margin: 0; overflow: hidden; position: relative; }
.newscms-image__preview:focus-within { border-color: var(--nc-accent); }
.newscms-image__preview.has-image { border-style: solid; }
.newscms-image__preview img { height: 100%; object-fit: cover; width: 100%; }
.newscms-image__placeholder { align-items: center; display: flex; flex-direction: column; font-size: 13px; gap: 4px; padding: 12px; text-align: center; }
.newscms-image__placeholder .newscms-icon { color: var(--nc-accent); height: 32px; margin-bottom: 4px; width: 32px; }
.newscms-image__placeholder strong { color: var(--nc-text); font-size: 15px; }
.newscms-image__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.newscms-image__buttons:empty { display: none; }

/* Sticky action bar on phones */
.newscms-actionbar { background: rgba(255, 255, 255, .97); border-top: 1px solid var(--nc-border); bottom: 0; box-shadow: 0 -4px 16px rgba(16, 24, 40, .06); left: 0; padding: 10px 16px calc(10px + var(--nc-safe-bottom)); position: fixed; right: 0; z-index: 30; }
.newscms-actionbar__hint { color: var(--nc-muted); font-size: 12px; margin: 0 0 8px !important; text-align: center; }
.newscms-actionbar__buttons { display: flex; gap: 10px; margin: 0 auto; max-width: 728px; }
.newscms-actionbar__buttons .newscms-btn { flex: 1; }
.newscms-actionbar__buttons .newscms-btn--primary { flex: 1.4; }

/* ---------- Single news ---------- */
.newscms-article-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.newscms-article-actions .newscms-btn { flex: 1; }
.newscms-article { background: var(--nc-surface); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 18px 16px; }
.newscms-article__meta { align-items: center; color: var(--nc-muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 6px 10px; }
.newscms-article__title { font-size: 22px; margin: 12px 0 14px !important; }
.newscms-article__image { margin: 0 -16px 16px; }
.newscms-article__image img { display: block; max-height: 60vh; object-fit: cover; width: 100%; }
.newscms-article__excerpt { color: var(--nc-text-2); font-size: 17px; }
.newscms-article__body { color: var(--nc-text); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.newscms-article__body blockquote { border-left: 3px solid var(--nc-border-strong); color: var(--nc-text-2); margin: 1em 0; padding-left: 14px; }
.newscms-article__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px !important; }
.newscms-article__tags span { background: #f2f4f7; border-radius: 999px; color: var(--nc-text-2); font-size: 13px; padding: 4px 10px; }
.newscms-dl { display: grid; font-size: 14px; gap: 6px 12px; grid-template-columns: auto 1fr; margin: 0 0 16px; }
.newscms-dl dt { color: var(--nc-muted); }
.newscms-dl dd { margin: 0; text-align: right; }
.newscms-timeline { border-left: 2px solid var(--nc-border); list-style: none; margin: 0 0 0 6px; padding: 0 0 0 16px; }
.newscms-timeline li { font-size: 14px; margin-bottom: 14px; position: relative; }
.newscms-timeline li:last-child { margin-bottom: 0; }
.newscms-timeline li::before { background: var(--nc-surface); border: 2px solid var(--nc-accent); border-radius: 50%; content: ""; height: 10px; left: -23px; position: absolute; top: 5px; width: 10px; }
.newscms-timeline span { display: block; font-size: 12px; }
.newscms-timeline blockquote { background: #f9fafb; border-radius: 8px; color: var(--nc-text-2); margin: 6px 0 0; padding: 8px 10px; }

/* ---------- Profile ---------- */
.newscms-profile-card { align-items: center; display: flex; flex-direction: column; padding: 8px 0 20px; text-align: center; }
.newscms-profile-card img { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(16, 24, 40, .12); height: 88px; margin-bottom: 12px; object-fit: cover; width: 88px; }
.newscms-profile-card h2 { font-size: 20px; margin-bottom: 4px; }
.newscms-label-tag { background: var(--nc-accent-soft); border-radius: 999px; color: var(--nc-accent); display: inline-block; font-size: 13px; font-weight: 600; line-height: 1; margin-bottom: 6px; padding: 6px 12px; }
.newscms-profile-card p { margin: 0 !important; }
.newscms-profile-card__stats { color: var(--nc-text-2); font-size: 14px; margin-top: 6px !important; }
.newscms-photo-row { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.newscms-card-form .newscms-btn--block { margin-top: 4px; }
.newscms-app .newscms-logout { color: var(--nc-danger); margin-top: 14px; }
.newscms-profile-site { margin-top: 14px !important; text-align: center; }
.newscms-app .newscms-link-muted { color: var(--nc-muted); font-size: 14px; }

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
	.newscms-shell { padding-bottom: 40px; }
	.newscms-shell.is-form { padding-bottom: 40px; }
	.admin-bar .newscms-topbar { top: 32px; }
	.newscms-topbar__inner { gap: 16px; height: 64px; padding: 0 24px; }
	.newscms-app .newscms-brand { flex: none; }
	.newscms-topnav { display: flex; flex: 1; gap: 4px; justify-content: center; }
	.newscms-app .newscms-topnav__link { border-radius: 999px; color: var(--nc-text-2); font-size: 15px; font-weight: 600; padding: 8px 16px; }
	.newscms-app .newscms-topnav__link:hover { background: #f2f4f7; }
	.newscms-app .newscms-topnav__link.is-current { background: var(--nc-accent-soft); color: var(--nc-accent); }
	.newscms-topbar__title { flex: none; }
	.newscms-tabbar { display: none; }
	.newscms-content { padding: 28px 24px; }
	.newscms-app .newscms-page-head__btn { display: inline-flex; }
	.newscms-chips { flex-wrap: wrap; margin: 0 0 14px; overflow: visible; padding: 0; }
	.newscms-article-form, .newscms-card-form, .newscms-article { padding: 24px; }
	.newscms-article__image { margin: 0 0 18px; }
	.newscms-article__image img { border-radius: var(--nc-radius-sm); }
	.newscms-article-actions .newscms-btn { flex: none; }
	.newscms-actionbar { background: none; border: 0; box-shadow: none; display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-top: 24px; padding: 20px 0 0; position: static; border-top: 1px solid var(--nc-border); }
	.newscms-actionbar__hint { margin: 0 !important; text-align: left; }
	.newscms-actionbar__buttons { margin: 0; }
	.newscms-actionbar__buttons .newscms-btn { flex: none; }
	.newscms-card-form .newscms-btn--block { width: auto; }
	.newscms-app .newscms-logout { width: auto; }
	.newscms-profile-site { text-align: left; }
}

@media (max-width: 480px) {
	.newscms-auth__card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.newscms-app * { transition: none !important; }
}
