/*
 * Mobile News Publisher – app styles.
 * Mobile first. Everything is scoped under .mnp so it can also live inside a theme page.
 * Font: --mnp-font is set by the plugin (Settings → Font). Default (2.0) = the bundled Noto Serif Bengali + Inter,
 * declared in the GLASS DESIGN layer at the end of this file together with the colours and surfaces.
 */

.mnp {
	--p: var(--mnp-primary, #B4510F);
	--on-p: var(--mnp-on-primary, #ffffff);
	--p-soft: #fbe9ec;
	--p-soft: color-mix(in srgb, var(--p) 10%, var(--surface));
	--bg: #f1f2f4;
	--surface: #ffffff;
	--surface-2: #f7f8f9;
	--text: #14171c;
	--muted: #5b6470;
	--line: #dcdfe4;
	--soft: #eaecef;
	--danger: #c62828;
	--ok: #16794a;
	--warn: #9a5b00;
	--info: #1f5fbf;
	--radius: 14px;
	--radius-s: 10px;
	--hdr-h: 54px;
	--nav-h: 62px;
	--bar-h: 66px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
	--font: var(--mnp-font, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", "Hind Siliguri", "Kalpurush", "SolaimanLipi", "Nikosh", "Siyam Rupali", "Vrinda", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif);
	--lift: 0%;
	--fs: 16px;

	font-family: var(--font);
	font-size: var(--fs);
	line-height: 1.55;
	color: var(--text);
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	text-align: left;
}

@media (prefers-color-scheme: dark) {
	.mnp:not([data-theme="light"]) {
		--p-soft: #3a1a20;
		--p-soft: color-mix(in srgb, var(--p) 22%, var(--surface));
		--bg: #0f1114;
		--surface: #181b20;
		--surface-2: #1f2329;
		--text: #eceef1;
		--muted: #9aa3ae;
		--line: #2c313a;
		--soft: #242932;
		--danger: #ef6b6b;
		--ok: #4cc38a;
		--warn: #e0a24a;
		--info: #6ea2f2;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4);
		--lift: 42%;
	}
}
.mnp[data-theme="dark"] {
	--p-soft: #3a1a20;
	--p-soft: color-mix(in srgb, var(--p) 22%, var(--surface));
	--bg: #0f1114; --surface: #181b20; --surface-2: #1f2329; --text: #eceef1; --muted: #9aa3ae;
	--line: #2c313a; --soft: #242932; --danger: #ef6b6b; --ok: #4cc38a; --warn: #e0a24a; --info: #6ea2f2;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4);
	--lift: 42%;
}
.mnp[data-fs="s"] { --fs: 15px; }
.mnp[data-fs="l"] { --fs: 18px; }

body.mnp-standalone { margin: 0; background: #f1f2f4; }
@media (prefers-color-scheme: dark) { body.mnp-standalone { background: #0f1114; } }

.mnp *, .mnp *::before, .mnp *::after { box-sizing: border-box; }
/* Base resets use :where() so they have zero specificity and never beat component classes. */
:where(.mnp) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.mnp) a { color: var(--p); }
:where(.mnp) :is(h1, h2, h3, p) { margin: 0; }
.mnp [hidden] { display: none !important; }
.mnp :focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.mnp svg.mnp-i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.mnp svg.mnp-i.mnp-i--inline { width: 1.05em; height: 1.05em; vertical-align: -.18em; }
.mnp-okline { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }

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

/* ---------- splash / spinner ---------- */
.mnp-splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.mnp-splash img { border-radius: 16px; }
.mnp-splash strong { color: var(--text); font-size: 20px; }
.mnp-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--p); animation: mnp-spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes mnp-spin { to { transform: rotate(360deg); } }
.mnp-center { display: flex; justify-content: center; padding: 28px 0; }

/* ---------- shell ---------- */
.mnp-shell { min-height: 100vh; min-height: 100dvh; max-width: 760px; margin: 0 auto; background: var(--bg); position: relative; }
.mnp-embedded .mnp-shell { min-height: 80vh; }
.mnp-hdr { position: sticky; top: 0; z-index: 30; height: calc(var(--hdr-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0; display: flex; align-items: center; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mnp-hdr__title { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.3; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mnp-hdr__brand { display: flex; align-items: center; gap: 8px; }
.mnp-hdr__brand img { width: 28px; height: 28px; border-radius: 7px; }
.mnp-hdr__actions { display: flex; align-items: center; gap: 2px; }
.mnp-iconbtn { appearance: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); font-size: 18px; position: relative; }
.mnp-iconbtn:active { background: var(--soft); }
.mnp-iconbtn .mnp-dot { position: absolute; top: 9px; right: 9px; }
.mnp-main { padding: 14px 14px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.mnp-main.mnp-has-bar { padding-bottom: calc(var(--bar-h) + 28px + env(safe-area-inset-bottom)); }
.mnp-main.mnp-no-nav:not(.mnp-has-bar) { padding-bottom: 28px; }

.mnp-netbar { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top)); z-index: 25; background: #3b2f00; color: #fff3c4; padding: 8px 14px; font-size: 14px; line-height: 1.4; display: flex; gap: 10px; align-items: center; }
.mnp-netbar small { display: block; opacity: .85; }

/* ---------- bottom navigation ---------- */
.mnp-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mnp-nav__in { max-width: 760px; margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.mnp-nav__item { appearance: none; border: 0; background: none; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; line-height: 1.2; cursor: pointer; text-decoration: none; }
.mnp-nav__ico { display: flex; align-items: center; justify-content: center; width: 58px; height: 30px; border-radius: 16px; transition: background-color .18s; }
.mnp-nav__item svg.mnp-i { width: 24px; height: 24px; }
.mnp-nav__item[aria-current="page"] { color: var(--p); font-weight: 700; }
.mnp-nav__item[aria-current="page"] .mnp-nav__ico { background: var(--p-soft); }
.mnp-nav__item[aria-current="page"] svg.mnp-i { stroke-width: 2.1; }
.mnp-nav__new { margin-top: -22px; }
.mnp-nav__new span.mnp-fab { width: 60px; height: 60px; border-radius: 50%; background: var(--p); color: var(--on-p); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px color-mix(in srgb, var(--p) 45%, transparent), 0 0 0 5px var(--surface); }
.mnp-nav__new span.mnp-fab svg.mnp-i { width: 28px; height: 28px; stroke-width: 2.25; }
.mnp-nav__new:active span.mnp-fab { transform: scale(.96); }
body.mnp-kb .mnp-nav, body.mnp-kb .mnp-actionbar { display: none; }

/* ---------- toast ---------- */
.mnp-toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.mnp-toasts.mnp-toasts--bar { bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); }
.mnp-toast { pointer-events: auto; max-width: 520px; width: 100%; background: #1d2127; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); font-size: 15px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; border-left: 5px solid #8892a0; }
.mnp-toast--success { border-left-color: #35c07a; }
.mnp-toast--error { border-left-color: #ff6b6b; }
.mnp-toast--warn { border-left-color: #ffc14d; }
.mnp-toast button { margin-left: auto; appearance: none; border: 0; background: none; color: #ffd9de; font-weight: 700; cursor: pointer; padding: 0 0 0 8px; }

/* ---------- buttons & fields ---------- */
.mnp-btn { appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); min-height: 48px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.mnp-btn:active { transform: translateY(1px); }
.mnp-btn[disabled] { opacity: .55; cursor: not-allowed; }
.mnp-btn--primary { background: var(--p); border-color: var(--p); color: var(--on-p); }
.mnp-btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.mnp-btn--ghost { background: transparent; }
.mnp-btn--soft { background: var(--soft); border-color: transparent; }
.mnp-btn--block { display: flex; width: 100%; }
.mnp-btn--lg { min-height: 56px; font-size: 17px; border-radius: 14px; }
.mnp-btn--sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.mnp-btn--link { border: 0; background: none; color: var(--p); min-height: 36px; padding: 4px 6px; }

.mnp-field { display: block; margin-bottom: 14px; }
.mnp-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.mnp-hint { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.mnp-input, .mnp-textarea, .mnp-select { width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; line-height: 1.4; }
.mnp-textarea { resize: vertical; min-height: 90px; }
.mnp-input:focus, .mnp-textarea:focus, .mnp-select:focus { border-color: var(--p); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 20%, transparent); }
.mnp-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.mnp-row { display: flex; gap: 10px; }
.mnp-row > * { flex: 1; min-width: 0; }
.mnp-counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 3px; }
.mnp-counter.is-over { color: var(--danger); font-weight: 700; }

.mnp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.mnp-check input { width: 22px; height: 22px; accent-color: var(--p); flex: none; }
.mnp-flags { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mnp-flag { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); min-height: 52px; cursor: pointer; font-weight: 600; }
.mnp-flag small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.mnp-flag input { position: absolute; opacity: 0; pointer-events: none; }
.mnp-flag .mnp-sw { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.mnp-flag .mnp-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.mnp-flag input:checked + .mnp-sw { background: var(--p); }
.mnp-flag input:checked + .mnp-sw::after { transform: translateX(18px); }
.mnp-flag:has(input:checked) { border-color: var(--p); background: var(--p-soft); }
.mnp-flag:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); }

.mnp-card { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.mnp-card > h2 { font-size: 17px; margin-bottom: 10px; }
.mnp-sub { font-size: 14px; color: var(--muted); }
.mnp-err { color: var(--danger); font-size: 14px; margin: 8px 0; line-height: 1.45; }

/* ---------- status chip ---------- */
.mnp-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 9px 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); line-height: 1.6; white-space: nowrap; }
.mnp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mnp-status--draft { color: #4b5563; }
.mnp-status--pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, var(--surface)); }
.mnp-status--publish { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, var(--surface)); }
.mnp-status--future { color: var(--info); background: color-mix(in srgb, var(--info) 13%, var(--surface)); }
.mnp-status--trash { color: var(--danger); background: color-mix(in srgb, var(--danger) 11%, var(--surface)); }
.mnp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--p); display: inline-block; }
.mnp-tag-flag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--p); color: var(--on-p); }
.mnp-tag-flag--soft { background: var(--p-soft); color: var(--p); }

/* ---------- login ---------- */
.mnp-login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; }
.mnp-login__brand { text-align: center; margin-bottom: 26px; }
.mnp-login__brand img, .mnp-login__logo { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 10px; }
.mnp-login__logo { display: flex; align-items: center; justify-content: center; background: var(--p); color: var(--on-p); box-shadow: 0 8px 20px color-mix(in srgb, var(--p) 30%, transparent); }
.mnp-login__logo svg.mnp-i { width: 40px; height: 40px; stroke-width: 1.6; }
.mnp-login__brand h1 { font-size: 24px; line-height: 1.3; }
.mnp-login__brand p { color: var(--muted); margin-top: 4px; }
.mnp-pw { position: relative; }
.mnp-pw .mnp-iconbtn { position: absolute; right: 3px; top: 3px; }
.mnp-pw .mnp-input { padding-right: 52px; }

/* ---------- home ---------- */
.mnp-greet { margin: 2px 2px 14px; }
.mnp-greet h2 { font-size: 20px; line-height: 1.35; }
.mnp-greet p { color: var(--muted); font-size: 14px; }
.mnp-hero { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; cursor: pointer; background: var(--p); color: var(--on-p); border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: 0 6px 18px color-mix(in srgb, var(--p) 32%, transparent); }
.mnp-hero__plus { width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--on-p) 20%, transparent); display: flex; align-items: center; justify-content: center; flex: none; }
.mnp-hero__plus svg.mnp-i { width: 30px; height: 30px; stroke-width: 2.6; }
.mnp-hero strong { display: block; font-size: 20px; line-height: 1.3; }
.mnp-hero span.mnp-hero__steps { display: block; font-size: 13px; opacity: .9; margin-top: 3px; line-height: 1.45; }
.mnp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mnp-stat { background: var(--surface); border-radius: 14px; padding: 10px 8px; text-align: center; box-shadow: var(--shadow); border: 0; cursor: pointer; }
.mnp-stat b { display: block; font-size: 24px; line-height: 1.2; }
.mnp-stat span { font-size: 12.5px; color: var(--muted); }
.mnp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mnp-tile { appearance: none; border: 0; background: var(--surface); border-radius: 18px; min-height: 108px; padding: 14px 6px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; box-shadow: var(--shadow); cursor: pointer; font-weight: 700; font-size: 14px; line-height: 1.3; text-align: center; position: relative; color: var(--text); transition: transform .12s; }
.mnp-tile:active { transform: scale(.97); }
.mnp-tile__ico { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ac, var(--muted)) 13%, var(--surface)); color: color-mix(in srgb, var(--ac, var(--muted)), #fff var(--lift)); }
.mnp-tile__ico svg.mnp-i { width: 25px; height: 25px; }
.mnp-tile__badge { position: absolute; top: 9px; right: 9px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; background: var(--p); color: var(--on-p); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.mnp-tone--red { --ac: var(--p); }
.mnp-tone--blue { --ac: #2563eb; }
.mnp-tone--amber { --ac: #c76a00; }
.mnp-tone--green { --ac: #16a34a; }
.mnp-tone--purple { --ac: #9333ea; }
.mnp-tone--teal { --ac: #0d9488; }
.mnp-tone--slate { --ac: #55616f; }
.mnp-tone--indigo { --ac: #4f46e5; }
.mnp-tone--rose { --ac: #e11d48; }
/* rounded icon tile used in banners */
.mnp-bico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ac, var(--p)) 14%, var(--surface)); color: color-mix(in srgb, var(--ac, var(--p)), #fff var(--lift)); }
.mnp-bico svg.mnp-i { width: 21px; height: 21px; }
.mnp-bico--amber { --ac: #c76a00; }
.mnp-bico--blue { --ac: #2563eb; }
.mnp-banner { display: flex; gap: 12px; align-items: flex-start; background: var(--p-soft); border: 1.5px solid color-mix(in srgb, var(--p) 35%, var(--line)); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; line-height: 1.5; }
.mnp-banner .mnp-btn { margin-top: 8px; }
.mnp-banner--info { background: color-mix(in srgb, var(--info) 10%, var(--surface)); border-color: color-mix(in srgb, var(--info) 35%, var(--line)); }

/* ---------- lists ---------- */
.mnp-search { position: relative; margin-bottom: 10px; }
.mnp-search svg.mnp-i { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.mnp-search .mnp-input { padding-left: 42px; padding-right: 42px; }
.mnp-search .mnp-iconbtn { position: absolute; right: 3px; top: 3px; }
.mnp-search .mnp-input::-webkit-search-cancel-button, .mnp-search .mnp-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.mnp-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
.mnp-filters::-webkit-scrollbar { display: none; }
.mnp-fchip { appearance: none; flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 7px 14px; min-height: 40px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.mnp-fchip b { font-weight: 700; color: var(--muted); font-size: 12.5px; }
.mnp-fchip[aria-pressed="true"] { background: var(--p); border-color: var(--p); color: var(--on-p); }
.mnp-fchip[aria-pressed="true"] b { color: inherit; opacity: .9; }
.mnp-seg { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.mnp-seg button { appearance: none; border: 0; background: none; padding: 7px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); min-height: 38px; }
.mnp-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.mnp-news { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.mnp-news__top { display: flex; gap: 12px; padding: 12px; cursor: pointer; }
.mnp-news__thumb { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--soft); flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.mnp-news__body { flex: 1; min-width: 0; }
.mnp-news__title { font-weight: 700; font-size: 16.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.mnp-news__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.mnp-news__actions { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.mnp-news__actions button, .mnp-news__actions a { flex: 1; appearance: none; border: 0; background: none; min-height: 46px; font-weight: 700; font-size: 14.5px; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.mnp-news__actions button + button, .mnp-news__actions a + button, .mnp-news__actions button + a { border-left: 1px solid var(--line); }
.mnp-news__actions .is-danger { color: var(--danger); }
.mnp-news__actions .is-ok { color: var(--ok); }
.mnp-news__actions .is-wide { flex: 1 0 100%; border-bottom: 1px solid var(--line); }
.mnp-news__actions .is-wide + * { border-left: 0 !important; }
.mnp-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.mnp-empty .mnp-empty__ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); }
.mnp-empty .mnp-empty__ico svg.mnp-i { width: 34px; height: 34px; stroke-width: 1.5; }
.mnp-empty .mnp-empty__ico--warn { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
.mnp-empty p { margin-bottom: 14px; }

/* ---------- editor ---------- */
.mnp-ed__state { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.mnp-ed__state .mnp-saved { display: inline-flex; align-items: center; gap: 6px; }
.mnp-ed__title { width: 100%; border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 8px 2px 12px; font-size: 24px; line-height: 1.45; font-weight: 800; resize: none; overflow: hidden; border-radius: 0; min-height: 64px; }
.mnp-ed__title:focus { outline: none; border-bottom-color: var(--p); }
.mnp-ed__title::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); font-weight: 600; }
.mnp-sec { margin-top: 18px; }
.mnp-sec > .mnp-label { display: flex; justify-content: space-between; align-items: center; }

.mnp-feat { border: 2px dashed var(--line); border-radius: 16px; background: var(--surface); }
.mnp-feat__empty { appearance: none; width: 100%; border: 0; background: none; padding: 26px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; min-height: 140px; justify-content: center; font-weight: 700; font-size: 16px; }
.mnp-feat__empty svg.mnp-i { width: 36px; height: 36px; color: var(--p); }
.mnp-feat--has { border-style: solid; border-color: transparent; background: transparent; }
.mnp-feat__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--soft); }
.mnp-feat__tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.mnp-feat__tools .mnp-btn { min-height: 44px; padding: 6px 4px; font-size: 13.5px; flex-direction: column; gap: 2px; }

.mnp-rt { border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.mnp-rt:focus-within { border-color: var(--p); }
.mnp-rt__bar { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top)); z-index: 12; display: flex; gap: 2px; padding: 6px; overflow-x: auto; background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: 13px 13px 0 0; scrollbar-width: none; }
.mnp-rt__bar::-webkit-scrollbar { display: none; }
.mnp-rt__btn { appearance: none; border: 0; background: none; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; color: var(--text); font-weight: 800; }
.mnp-rt__btn[aria-pressed="true"] { background: var(--p-soft); color: var(--p); }
.mnp-rt__btn:active { background: var(--soft); }
.mnp-rt__sep { width: 1px; background: var(--line); margin: 6px 4px; flex: none; }
.mnp-rt__sel { appearance: none; border: 0; background: var(--surface); border-radius: 10px; height: 42px; padding: 0 10px; font-size: 14.5px; font-weight: 700; flex: none; max-width: 120px; }
.mnp-rt__area { min-height: 260px; padding: 14px 14px 20px; font-size: 18px; line-height: 1.8; outline: none; overflow-wrap: anywhere; }
.mnp-rt__area:empty::before, .mnp-rt__area[data-empty="1"]::before { content: attr(data-ph); color: var(--muted); pointer-events: none; display: block; }
.mnp-rt__area p { margin: 0 0 .9em; }
.mnp-rt__area h2 { font-size: 1.35em; line-height: 1.45; margin: 1em 0 .5em; }
.mnp-rt__area h3 { font-size: 1.15em; line-height: 1.45; margin: 1em 0 .5em; }
.mnp-rt__area ul, .mnp-rt__area ol { margin: 0 0 .9em; padding-left: 1.5em; }
.mnp-rt__area blockquote { margin: 0 0 .9em; padding: 4px 14px; border-left: 4px solid var(--p); background: var(--surface-2); color: var(--muted); }
.mnp-rt__area figure { margin: .6em 0 1em; text-align: center; border-radius: 10px; }
.mnp-rt__area figure img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
.mnp-rt__area figure[contenteditable="false"] { cursor: pointer; outline: 2px dashed transparent; }
.mnp-rt__area figure[contenteditable="false"]:active { outline-color: var(--p); }
.mnp-rt__area figcaption { font-size: .8em; color: var(--muted); padding-top: 4px; }
.mnp-rt__foot { display: flex; justify-content: space-between; padding: 6px 14px 10px; font-size: 12.5px; color: var(--muted); }

.mnp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mnp-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--p-soft); color: var(--text); border-radius: 99px; padding: 4px 4px 4px 12px; font-size: 14.5px; font-weight: 600; min-height: 36px; }
.mnp-chip button { appearance: none; border: 0; background: color-mix(in srgb, var(--p) 18%, transparent); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.mnp-inline { display: flex; gap: 8px; }
.mnp-inline .mnp-input { flex: 1; }

.mnp-acc { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 12px; }
.mnp-acc > summary { list-style: none; cursor: pointer; padding: 0 14px; min-height: 54px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.mnp-acc > summary::-webkit-details-marker { display: none; }
.mnp-acc > summary .mnp-acc__chev { margin-left: auto; transition: transform .15s; color: var(--muted); }
.mnp-acc[open] > summary .mnp-acc__chev { transform: rotate(180deg); }
.mnp-acc__body { padding: 4px 14px 14px; }
.mnp-acc > summary small { font-weight: 400; color: var(--muted); font-size: 13px; }

.mnp-gal { display: grid; gap: 10px; margin-bottom: 10px; }
.mnp-gal__item { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 8px; align-items: start; }
.mnp-gal__item img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.mnp-gal__fields { display: grid; gap: 6px; min-width: 0; }
.mnp-gal__fields .mnp-input { min-height: 40px; padding: 7px 10px; font-size: 14.5px; border-radius: 9px; }
.mnp-gal__btns { display: flex; flex-direction: column; gap: 4px; }
.mnp-gal__btns .mnp-iconbtn { width: 38px; height: 38px; background: var(--soft); }
.mnp-gal__btns .mnp-iconbtn[disabled] { opacity: .35; }

.mnp-serp { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); margin-bottom: 12px; }
.mnp-serp__url { font-size: 12.5px; color: var(--ok); word-break: break-all; }
.mnp-serp__title { font-size: 17px; color: var(--info); line-height: 1.4; margin: 2px 0; font-weight: 600; }
.mnp-serp__desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.mnp-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.mnp-actionbar__in { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; }
.mnp-actionbar .mnp-btn { flex: 1; min-height: 48px; font-size: 15px; letter-spacing: .2px; }
.mnp-actionbar .mnp-btn--primary { flex: 1.35; }

/* ---------- modal / sheet ---------- */
.mnp-modal { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 14, .55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.mnp-modal--sheet { align-items: flex-end; padding: 0; }
.mnp-modal__dlg { background: var(--surface); color: var(--text); width: 100%; max-width: 460px; max-height: 88vh; max-height: 88dvh; overflow: auto; border-radius: 20px; padding: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); font-family: var(--font); font-size: var(--fs); line-height: 1.55; }
.mnp-modal--sheet .mnp-modal__dlg { max-width: 760px; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.mnp-modal--full .mnp-modal__dlg { max-width: 760px; height: 100%; max-height: 100%; border-radius: 0; }
.mnp-modal--full { padding: 0; }
.mnp-modal__title { font-size: 19px; font-weight: 800; margin-bottom: 8px; line-height: 1.4; }
.mnp-modal__body { margin-bottom: 14px; }
.mnp-modal__body p { margin-bottom: 8px; }
.mnp-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mnp-modal__actions .mnp-btn { flex: 1; min-width: 120px; }
.mnp-modal__actions--stack { flex-direction: column; }
.mnp-srcs { display: grid; gap: 10px; }
.mnp-src { appearance: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 8px 16px; font-weight: 700; font-size: 17px; cursor: pointer; text-align: left; }
.mnp-src__ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--p-soft); color: var(--p); }
.mnp-src__ico svg.mnp-i { width: 24px; height: 24px; }
.mnp-src small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------- media ---------- */
.mnp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mnp-thumb { position: relative; appearance: none; border: 0; padding: 0; background: var(--soft); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.mnp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mnp-thumb[aria-pressed="true"]::after { content: ""; position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px 16px no-repeat; box-shadow: 0 0 0 2px #fff; }
.mnp-thumb[aria-pressed="true"] { outline: 3px solid var(--p); outline-offset: -3px; }
.mnp-up { display: grid; gap: 8px; }
.mnp-up__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.mnp-bar { grid-column: 1 / -1; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.mnp-bar > i { display: block; height: 100%; width: 0; background: var(--p); transition: width .15s; }
.mnp-up__row.is-err .mnp-bar > i { background: var(--danger); }

/* ---------- crop ---------- */
.mnp-crop__stage { position: relative; margin: 6px auto 10px; touch-action: none; user-select: none; -webkit-user-select: none; background: #000; border-radius: 10px; overflow: hidden; width: fit-content; max-width: 100%; }
.mnp-crop__stage img { display: block; max-width: 100%; max-height: 52vh; max-height: 52dvh; pointer-events: none; }
.mnp-crop__box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; }
.mnp-crop__box::before, .mnp-crop__box::after { content: ""; position: absolute; background: rgba(255, 255, 255, .45); }
.mnp-crop__box::before { left: 33.3%; right: 33.3%; top: 0; bottom: 0; border-left: 1px solid rgba(255,255,255,.5); border-right: 1px solid rgba(255,255,255,.5); background: none; }
.mnp-crop__box::after { top: 33.3%; bottom: 33.3%; left: 0; right: 0; border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); background: none; }
.mnp-crop__ratios { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mnp-crop input[type="range"] { width: 100%; accent-color: var(--p); height: 32px; }

/* ---------- stats ---------- */
.mnp-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.mnp-kpi { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.mnp-kpi b { display: block; font-size: 28px; line-height: 1.2; }
.mnp-kpi span { font-size: 13.5px; color: var(--muted); }
.mnp-chart { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding-top: 8px; }
.mnp-chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.mnp-chart__bar { width: 100%; background: var(--p); border-radius: 5px 5px 2px 2px; min-height: 3px; opacity: .9; }
.mnp-chart__col.is-zero .mnp-chart__bar { background: var(--line); }
.mnp-chart__col span { font-size: 11px; color: var(--muted); line-height: 1; }
.mnp-chart__val { font-size: 11px; font-weight: 700; line-height: 1; }
.mnp-list { list-style: none; margin: 0; padding: 0; }
.mnp-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mnp-list li:last-child { border-bottom: 0; }

/* ---------- profile & settings ---------- */
.mnp-prof { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mnp-prof img { width: 68px; height: 68px; border-radius: 50%; background: var(--soft); }
.mnp-prof h2 { font-size: 20px; line-height: 1.3; }
.mnp-cat { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mnp-cat:last-child { border-bottom: 0; }
.mnp-cat b { margin-left: auto; color: var(--muted); font-size: 14px; }

/* desktop / tablet comfort */
@media (min-width: 761px) {
	.mnp-shell { box-shadow: 0 0 0 1px var(--line); }
	.mnp-nav__in, .mnp-actionbar__in { max-width: 760px; }
	.mnp-tiles { grid-template-columns: repeat(3, 1fr); }
	.mnp-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 360px) {
	.mnp-tile { font-size: 13px; min-height: 96px; }
	.mnp-rt__btn { width: 38px; }
}

/* ---------- automatic cover / SEO hints, flag icons ---------- */
.mnp-feat__wrap { position: relative; }
.mnp-autobadge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px 6px 8px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--p); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mnp-autobadge svg.mnp-i { width: 14px; height: 14px; }
.mnp-feat__wrap .mnp-autobadge { position: absolute; top: 10px; left: 10px; }
.mnp-autobadge--inline { box-shadow: none; padding: 4px 8px 4px 6px; background: var(--p-soft); }
.mnp-autonote { margin: 8px 12px 4px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.mnp-autonote svg.mnp-i { color: var(--p); width: 1.1em; height: 1.1em; margin-right: 4px; vertical-align: -.2em; }
.mnp-autonote .mnp-btn--link { display: inline; padding: 0; min-height: 0; font-size: inherit; vertical-align: baseline; }
.mnp-flag__lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mnp-flag__ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); }
.mnp-flag:has(input:checked) .mnp-flag__ico { background: var(--p); color: var(--on-p); }
.mnp-flag__ico svg.mnp-i { width: 19px; height: 19px; }


/* ======================================================================
 * GLASS DESIGN (v2.0.0)
 * Colours, typography and surfaces of the newsroom "glass" app, applied on top of the
 * components above. Fonts: Noto Serif Bengali + Inter (self-hosted, SIL OFL) — the
 * default "bundled" font source; Settings → Font can still switch to system / Google / own files.
 * ====================================================================== */

@font-face {
	font-family: "Noto Serif Bengali";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/noto-serif-bengali-bengali-wght.woff2") format("woff2-variations"), url("../fonts/noto-serif-bengali-bengali-wght.woff2") format("woff2");
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "Noto Serif Bengali";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/noto-serif-bengali-latin-wght.woff2") format("woff2-variations"), url("../fonts/noto-serif-bengali-latin-wght.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/inter-latin-wght.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
.mnp {
	--p: var(--mnp-primary, #B4510F);
	--p-strong: #C2410C;
	--p-strong: color-mix(in srgb, var(--p) 68%, #000);
	--on-p: #ffffff;
	--p-soft: #FFEDD5;
	--p-soft: color-mix(in srgb, var(--p) 14%, #fff);
	--bg: var(--mnp-bg, #FFF7ED);
	--surface: #FFFDFB;
	--surface-2: #FFF8F1;
	--text: var(--mnp-text, #1F2937);
	--muted: #5B6472;
	--line: rgba(31, 41, 55, .11);
	--soft: rgba(31, 41, 55, .06);
	--danger: #B42318;
	--ok: #047857;
	--warn: #9A4A00;
	--info: #1D4ED8;
	--ok-bg: #E7F8EF;
	--warn-bg: #FFF4DB;
	--info-bg: #EAF2FF;
	--danger-bg: #FDECEC;
	--glass: rgba(255, 255, 255, .62);
	--glass-strong: rgba(255, 255, 255, .9);
	--glass-border: rgba(255, 255, 255, .75);
	--input-bg: rgba(255, 255, 255, .88);
	--radius: 20px;
	--radius-s: 14px;
	--nav-h: 66px;
	--shadow: 0 10px 30px rgba(124, 45, 18, .08), 0 1px 2px rgba(17, 24, 39, .05);
	--shadow-lg: 0 18px 50px rgba(124, 45, 18, .16);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: var(--mnp-font, "Inter", "Noto Serif Bengali", "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Kalpurush", "Nirmala UI", "Vrinda", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--font-serif: var(--mnp-font, "Noto Serif Bengali", "Noto Sans Bengali", "SolaimanLipi", "Kalpurush", "Nirmala UI", Georgia, serif);
	--lift: 0%;
	-webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
	.mnp:not([data-theme="light"]) {
		--p-soft: #3B2414;
		--p-soft: color-mix(in srgb, var(--p) 22%, #1F1A16);
		--p-strong: color-mix(in srgb, var(--p) 82%, #000);
		--bg: #15110D;
		--surface: #201A16;
		--surface-2: #28211C;
		--text: #F3EEE9;
		--muted: #ABA39C;
		--line: rgba(255, 255, 255, .1);
		--soft: rgba(255, 255, 255, .07);
		--danger: #F28B82; --ok: #5DD39E; --warn: #F5B353; --info: #8AB4F8;
		--ok-bg: rgba(93, 211, 158, .14); --warn-bg: rgba(245, 179, 83, .14); --info-bg: rgba(138, 180, 248, .14); --danger-bg: rgba(242, 139, 130, .14);
		--glass: rgba(36, 30, 25, .66);
		--glass-strong: rgba(36, 30, 25, .94);
		--glass-border: rgba(255, 255, 255, .08);
		--input-bg: rgba(255, 255, 255, .06);
		--shadow: 0 10px 30px rgba(0, 0, 0, .35);
		--shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
		--lift: 38%;
	}
}
.mnp[data-theme="dark"] {
	--p-soft: #3B2414;
	--p-soft: color-mix(in srgb, var(--p) 22%, #1F1A16);
	--p-strong: color-mix(in srgb, var(--p) 82%, #000);
	--bg: #15110D; --surface: #201A16; --surface-2: #28211C; --text: #F3EEE9; --muted: #ABA39C;
	--line: rgba(255, 255, 255, .1); --soft: rgba(255, 255, 255, .07);
	--danger: #F28B82; --ok: #5DD39E; --warn: #F5B353; --info: #8AB4F8;
	--ok-bg: rgba(93, 211, 158, .14); --warn-bg: rgba(245, 179, 83, .14); --info-bg: rgba(138, 180, 248, .14); --danger-bg: rgba(242, 139, 130, .14);
	--glass: rgba(36, 30, 25, .66); --glass-strong: rgba(36, 30, 25, .94); --glass-border: rgba(255, 255, 255, .08);
	--input-bg: rgba(255, 255, 255, .06);
	--shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
	--lift: 38%;
}

/* ---------- page background: soft colour fields behind the glass ---------- */
body.mnp-standalone { background: var(--mnp-bg, #FFF7ED); color: var(--mnp-text, #1F2937); }
body.mnp-standalone::before {
	content: "";
	position: fixed;
	inset: -20vmax;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(40vmax 40vmax at 12% 8%, rgba(249, 115, 22, .22), transparent 60%),
		radial-gradient(36vmax 36vmax at 92% 22%, rgba(251, 191, 36, .2), transparent 62%),
		radial-gradient(44vmax 44vmax at 70% 96%, rgba(59, 130, 246, .12), transparent 60%),
		var(--mnp-bg, #FFF7ED);
}
@media (prefers-color-scheme: dark) {
	body.mnp-standalone:not(:has(.mnp[data-theme="light"])) { background: #15110D; }
	body.mnp-standalone:not(:has(.mnp[data-theme="light"]))::before {
		background:
			radial-gradient(40vmax 40vmax at 12% 8%, rgba(249, 115, 22, .16), transparent 60%),
			radial-gradient(36vmax 36vmax at 92% 22%, rgba(180, 83, 9, .14), transparent 62%),
			radial-gradient(44vmax 44vmax at 70% 96%, rgba(37, 99, 235, .1), transparent 60%),
			#15110D;
	}
}
body.mnp-standalone:has(.mnp[data-theme="dark"]) { background: #15110D; }
body.mnp-standalone:has(.mnp[data-theme="dark"])::before {
	background:
		radial-gradient(40vmax 40vmax at 12% 8%, rgba(249, 115, 22, .16), transparent 60%),
		radial-gradient(44vmax 44vmax at 70% 96%, rgba(37, 99, 235, .1), transparent 60%),
		#15110D;
}
body.mnp-standalone .mnp,
body.mnp-standalone .mnp-shell { background: transparent; }
.mnp-embedded { border-radius: var(--radius); overflow: hidden; }

/* ---------- typography ---------- */
.mnp :is(.mnp-hdr__title, .mnp-greet h2, .mnp-card > h2, .mnp-news__title, .mnp-modal__title, .mnp-login__brand h1, .mnp-prof h2, .mnp-hero strong, .mnp-ed__title, .mnp-acc > summary, .mnp-notice__txt strong) { font-family: var(--font-serif); }
.mnp-greet h2 { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.mnp-eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--p-strong); letter-spacing: .02em; }
.mnp-card > h2 { font-size: 18px; font-weight: 700; }
.mnp-news__title { font-weight: 600; font-size: 16px; line-height: 1.5; }
.mnp-hdr__title { font-size: 17px; }
.mnp svg.mnp-i { stroke-width: 2; }

/* ---------- glass surfaces ---------- */
.mnp :is(.mnp-card, .mnp-news, .mnp-stat, .mnp-tile, .mnp-kpi, .mnp-acc, .mnp-notice) {
	background: var(--glass);
	border: 1px solid var(--glass-border);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.mnp :is(.mnp-card, .mnp-news, .mnp-stat, .mnp-tile, .mnp-kpi, .mnp-acc, .mnp-notice, .mnp-hdr, .mnp-nav, .mnp-actionbar) { background: var(--glass-strong); }
}
@media (prefers-reduced-transparency: reduce) {
	.mnp :is(.mnp-card, .mnp-news, .mnp-stat, .mnp-tile, .mnp-kpi, .mnp-acc, .mnp-notice, .mnp-hdr, .mnp-nav, .mnp-actionbar) { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- header ---------- */
.mnp-shell { max-width: 700px; }
.mnp-hdr {
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-top: 0;
	border-radius: 0 0 22px 22px;
	box-shadow: 0 6px 20px rgba(124, 45, 18, .06);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	padding-left: 10px; padding-right: 10px;
}
.mnp-hdr__brand img { width: 32px; height: 32px; border-radius: 10px; background: #fff; }
.mnp-iconbtn { border-radius: 14px; }
.mnp-iconbtn:active { background: var(--soft); }
.mnp-netbar { background: var(--warn-bg); color: var(--warn); border-radius: 14px; margin: 10px 14px 0; top: calc(var(--hdr-h) + env(safe-area-inset-top) + 6px); }
.mnp-netbar small { opacity: .9; }

/* ---------- floating bottom navigation ---------- */
.mnp-main { padding: 12px 16px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
.mnp-nav {
	left: 50%; right: auto;
	bottom: calc(10px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	width: min(660px, calc(100% - 20px));
	padding: 0 4px;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
}
.mnp-nav__in { height: var(--nav-h); }
.mnp-nav__item { font-size: 11.5px; font-weight: 600; position: relative; }
.mnp-nav__ico { width: 52px; height: 28px; }
.mnp-nav__item svg.mnp-i { width: 22px; height: 22px; }
.mnp-nav__item[aria-current="page"] { color: var(--p-strong); font-weight: 700; }
.mnp-nav__item[aria-current="page"] .mnp-nav__ico { background: var(--p-soft); }
.mnp-nav__new { margin-top: -26px; color: var(--text); }
.mnp-nav__new span.mnp-fab {
	width: 56px; height: 56px;
	border-radius: 18px;
	background: linear-gradient(145deg, var(--p), var(--p-strong));
	color: #fff;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--p) 40%, transparent), 0 0 0 5px color-mix(in srgb, var(--bg) 90%, transparent);
	transition: transform .15s var(--ease);
}
.mnp-nav__new span.mnp-fab svg.mnp-i { stroke-width: 2.4; }
.mnp-nav__new:active span.mnp-fab { transform: scale(.94); }

/* editor action bar */
.mnp-actionbar {
	left: 50%; right: auto; transform: translateX(-50%);
	bottom: calc(8px + env(safe-area-inset-bottom));
	width: min(680px, calc(100% - 16px));
	padding: 10px;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: 22px;
	box-shadow: var(--shadow-lg);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
}
.mnp-main.mnp-has-bar { padding-bottom: calc(var(--bar-h) + 40px + env(safe-area-inset-bottom)); }

/* ---------- buttons ---------- */
.mnp-btn { border: 1px solid var(--line); background: var(--input-bg); border-radius: 14px; font-weight: 600; font-size: 15px; transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s; }
.mnp-btn:active { transform: scale(.97); }
.mnp-btn--primary {
	background: linear-gradient(160deg, var(--p-strong), var(--p-strong));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--p-strong) 30%, transparent);
}
.mnp-btn--primary:hover { filter: brightness(1.05); }
.mnp-btn--danger { background: var(--danger); border-color: transparent; color: #fff; }
.mnp-btn--ghost { background: transparent; }
.mnp-btn--soft { background: var(--p-soft); border-color: transparent; color: var(--p-strong); }
.mnp-btn--link { color: var(--p-strong); background: none; border: 0; }
.mnp-btn--lg { border-radius: 16px; }
.mnp-btn--sm { border-radius: 12px; }

/* ---------- fields ---------- */
.mnp-label { font-weight: 700; }
.mnp-input, .mnp-textarea, .mnp-select {
	border: 1px solid rgba(31, 41, 55, .14);
	border-radius: 14px;
	background-color: var(--input-bg);
	transition: border-color .2s, box-shadow .2s;
}
.mnp[data-theme="dark"] :is(.mnp-input, .mnp-textarea, .mnp-select) { border-color: var(--line); }
@media (prefers-color-scheme: dark) { .mnp:not([data-theme="light"]) :is(.mnp-input, .mnp-textarea, .mnp-select) { border-color: var(--line); } }
.mnp-input:focus, .mnp-textarea:focus, .mnp-select:focus { border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 18%, transparent); }
.mnp :focus-visible { outline-color: rgba(29, 78, 216, .55); }
.mnp-flag { border: 1px solid var(--line); border-radius: 14px; background: var(--input-bg); }
.mnp-flag input:checked + .mnp-sw { background: var(--p-strong); }
.mnp-check input { accent-color: var(--p-strong); }

/* ---------- status chips ---------- */
.mnp-status { background: #EEF1F5; color: #374151; padding: 2px 10px 2px 9px; }
.mnp-status--draft { background: #EEF1F5; color: #374151; }
.mnp-status--pending { background: var(--p-soft); color: var(--p-strong); }
.mnp-status--publish { background: var(--ok-bg); color: var(--ok); }
.mnp-status--future { background: var(--info-bg); color: var(--info); }
.mnp-status--trash { background: var(--danger-bg); color: var(--danger); }
.mnp-status--rv-revision_requested { background: var(--warn-bg); color: var(--warn); }
.mnp-status--rv-rejected { background: var(--danger-bg); color: var(--danger); }
.mnp-status--rv-approved { background: var(--info-bg); color: var(--info); }
.mnp[data-theme="dark"] :is(.mnp-status, .mnp-status--draft) { background: var(--soft); color: var(--muted); }
@media (prefers-color-scheme: dark) { .mnp:not([data-theme="light"]) :is(.mnp-status, .mnp-status--draft) { background: var(--soft); color: var(--muted); } }
.mnp-tag-flag { background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 8px; }
.mnp-tag-flag--soft { background: var(--p-soft); color: var(--p-strong); }
.mnp-full { margin-left: 8px; vertical-align: 1px; }
.mnp-dot { background: var(--p); }

/* ---------- home ---------- */
.mnp-greet { margin: 6px 4px 14px; }
.mnp-greet p { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.mnp-hero {
	background: linear-gradient(135deg, color-mix(in srgb, var(--p) 16%, transparent), var(--glass) 60%);
	color: var(--text);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
}
.mnp-hero__plus {
	width: 50px; height: 50px; border-radius: 16px;
	background: linear-gradient(145deg, var(--p), var(--p-strong));
	color: #fff;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--p) 32%, transparent);
}
.mnp-hero strong { font-size: 18px; }
.mnp-hero span.mnp-hero__steps { color: var(--muted); opacity: 1; }
.mnp-stats { gap: 10px; }
.mnp-stat { padding: 12px 8px; }
.mnp-stat b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.mnp-tiles { gap: 12px; }
.mnp-tile { min-height: 112px; font-weight: 600; border-radius: var(--radius); }
.mnp-tile__ico { border-radius: 14px; }
.mnp-tile__badge { background: var(--danger); color: #fff; }
.mnp-tone--red { --ac: var(--p-strong); }
.mnp-banner { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-s); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mnp-banner--info { background: color-mix(in srgb, var(--info-bg) 80%, transparent); }

/* urgent / important notices on the home screen */
.mnp-urgents:empty { display: none; }
.mnp-urgents { display: grid; gap: 10px; margin-bottom: 12px; }
.mnp-urgent {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 12px 14px;
	border-radius: var(--radius-s);
	background: var(--danger-bg); color: var(--danger);
	border: 1px solid color-mix(in srgb, var(--danger) 18%, transparent);
	text-decoration: none; font-size: 14px; line-height: 1.45;
}
.mnp-urgent.is-important { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 18%, transparent); }
.mnp-urgent strong { display: block; font-family: var(--font-serif); }
.mnp-urgent small { display: block; opacity: .85; }

/* ---------- lists & filters ---------- */
.mnp-search .mnp-input { border-radius: 14px; }
.mnp-fchip { border: 1px solid var(--line); background: var(--input-bg); }
.mnp-fchip[aria-pressed="true"] { background: var(--p-strong); border-color: transparent; color: #fff; }
.mnp-seg { background: var(--soft); border-radius: 14px; padding: 4px; }
.mnp-seg button { border-radius: 11px; font-weight: 600; }
.mnp-seg button[aria-pressed="true"] { background: var(--surface); color: var(--p-strong); box-shadow: 0 2px 8px rgba(17, 24, 39, .08); }
.mnp-news__thumb { border-radius: 12px; background: linear-gradient(135deg, var(--p-soft), var(--surface)); color: var(--p-strong); }
.mnp-news__actions { border-top-color: var(--line); }
.mnp-news__actions button + button, .mnp-news__actions a + button, .mnp-news__actions button + a { border-left-color: var(--line); }
.mnp-news__actions .is-ok { color: var(--ok); }
.mnp-empty .mnp-empty__ico { background: var(--p-soft); color: var(--p-strong); }
.mnp-cat-row { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.mnp-cat-row:last-child { border-bottom: 0; }
.mnp-cat-row .mnp-cat { border-bottom: 0; }
.mnp-cat-row .mnp-iconbtn { color: var(--muted); }

/* ---------- editor ---------- */
.mnp-ed__title { font-weight: 700; font-size: 23px; border-bottom: 1px solid var(--line); }
.mnp-ed__subtitle {
	width: 100%;
	border: 0; border-bottom: 1px dashed var(--line);
	background: transparent;
	padding: 8px 2px 10px;
	font-size: 17px; line-height: 1.5; color: var(--muted);
	font-family: var(--font-serif);
	border-radius: 0;
}
.mnp-ed__subtitle:focus { outline: none; border-bottom-color: var(--p); color: var(--text); }
.mnp-feat { border: 2px dashed color-mix(in srgb, var(--p) 35%, var(--line)); background: var(--glass); border-radius: var(--radius); }
.mnp-feat--has { border-color: transparent; background: transparent; }
.mnp-feat__empty svg.mnp-i { color: var(--p-strong); }
.mnp-rt { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--input-bg); }
.mnp-rt__bar { background: color-mix(in srgb, var(--surface-2) 85%, transparent); border-radius: 13px 13px 0 0; }
.mnp-rt__btn[aria-pressed="true"] { background: var(--p-soft); color: var(--p-strong); }
.mnp-rt__area { font-family: var(--font-serif); font-size: 18px; }
.mnp-rt__area blockquote { border-left-color: var(--p); }
.mnp-chip { background: var(--p-soft); color: var(--text); }
.mnp-chip--pick, .mnp-chip--add {
	appearance: none; cursor: pointer;
	border: 1px solid var(--line);
	background: var(--input-bg);
	padding: 6px 14px;
	font: inherit; font-size: 14px; font-weight: 600;
	min-height: 38px;
}
.mnp-chip--pick[aria-pressed="true"] { background: var(--p-strong); border-color: transparent; color: #fff; }
.mnp-chip--add { color: var(--p-strong); }
.mnp-chip--add svg.mnp-i { width: 15px; height: 15px; }
.mnp-bylines { margin: -6px 0 14px; }
.mnp-serp { background: var(--input-bg); border-color: var(--line); border-radius: var(--radius-s); }
.mnp-review { margin-bottom: 12px; }
.mnp-review--revision_requested { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.mnp-review--rejected { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.mnp-review--approved { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.mnp-review__note { margin: 4px 0 2px; font-family: var(--font-serif); font-size: 15.5px; white-space: pre-line; }

/* ---------- modal = bottom sheet look ---------- */
.mnp-modal { background: rgba(17, 24, 39, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mnp-modal__dlg { background: var(--surface); border-radius: 24px; box-shadow: 0 20px 60px rgba(17, 24, 39, .3); }
.mnp-modal--sheet .mnp-modal__dlg { border-radius: 26px 26px 0 0; padding-top: 10px; }
.mnp-modal--sheet .mnp-modal__dlg::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 5px; margin: 0 auto 10px; background: var(--line); }
.mnp-src { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--input-bg); }
.mnp-src__ico { background: var(--p-soft); color: var(--p-strong); }

/* ---------- toasts ---------- */
.mnp-toasts { bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); }
.mnp-toasts.mnp-toasts--bar { bottom: calc(var(--bar-h) + 30px + env(safe-area-inset-bottom)); }
.mnp-toast { background: rgba(31, 41, 55, .94); border-radius: 14px; border-left-width: 4px; box-shadow: 0 12px 30px rgba(17, 24, 39, .3); font-size: 14.5px; }
.mnp-toast--success { background: rgba(6, 78, 59, .95); border-left-color: #34D399; }
.mnp-toast--error { background: rgba(127, 29, 29, .96); border-left-color: #FCA5A5; }

/* ---------- login ---------- */
.mnp-login__logo { border-radius: 22px; background: linear-gradient(145deg, var(--p), var(--p-strong)); color: #fff; }
.mnp-login__brand img { border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.mnp-login__brand h1 { font-size: 25px; font-weight: 700; }
.mnp-login form, form.mnp-login { position: relative; }

/* ---------- statistics ---------- */
.mnp-kpi b { font-weight: 800; font-variant-numeric: tabular-nums; }
.mnp-chart__bar { background: linear-gradient(180deg, var(--p), var(--p-strong)); border-radius: 6px 6px 2px 2px; }
.mnp-catstats li { align-items: center; }
.mnp-catstats__name { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 5px; }
.mnp-catstats__bar { display: block; height: 6px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.mnp-catstats__bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--p), var(--p-strong)); }
.mnp-catstats b { white-space: nowrap; text-align: right; }
.mnp-catstats b small { font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- notices ---------- */
.mnp .mnp-notice { margin-bottom: 12px; overflow: hidden; border-left: 4px solid var(--info); }
.mnp .mnp-notice--important { border-left-color: var(--warn); }
.mnp .mnp-notice--urgent { border-left-color: var(--danger); }
.mnp-notice__head { appearance: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; font: inherit; }
.mnp-notice__ico { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); }
.mnp-notice--important .mnp-notice__ico { background: var(--warn-bg); color: var(--warn); }
.mnp-notice--urgent .mnp-notice__ico { background: var(--danger-bg); color: var(--danger); }
.mnp-notice__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.mnp-notice__txt strong { font-size: 16px; }
.mnp-notice__txt small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.mnp-notice.is-unread .mnp-notice__txt strong { font-weight: 800; }
.mnp-notice__msg { padding: 0 16px 12px 66px; line-height: 1.7; font-family: var(--font-serif); }
.mnp-notice__msg p { margin: 0 0 .6em; }
.mnp-notice__foot { padding: 0 16px 14px 66px; }
.mnp-mng { align-items: center; }
.mnp-mng > span:first-child { min-width: 0; }
.mnp-mng__acts { display: flex; gap: 2px; flex: none; }
@media (max-width: 380px) {
	.mnp-notice__msg, .mnp-notice__foot { padding-left: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
	.mnp-main > * { animation: mnp-fade .22s var(--ease); }
}
@keyframes mnp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- editor: form layout (labels above boxed fields) ---------- */
.mnp-ed .mnp-sec { margin-top: 20px; }
.mnp-ed .mnp-sec:first-of-type { margin-top: 8px; }
.mnp-ed .mnp-label { font-size: 14px; }
.mnp-req { color: var(--danger); }
.mnp-opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.mnp-ed .mnp-ed__title, .mnp-ed .mnp-ed__subtitle {
	width: 100%; display: block; resize: none; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--input-bg, var(--surface));
	padding: 12px 14px; color: var(--text); font-family: var(--font-serif);
}
.mnp-ed .mnp-ed__title { font-size: 19px; line-height: 1.5; font-weight: 700; min-height: 56px; }
.mnp-ed .mnp-ed__subtitle { font-size: 15.5px; line-height: 1.55; min-height: 56px; }
.mnp-ed .mnp-ed__title:focus, .mnp-ed .mnp-ed__subtitle:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
.mnp-ed .mnp-ed__subtitle::placeholder { font-weight: 400; color: color-mix(in srgb, var(--muted) 75%, transparent); }
.mnp-ed__count { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* featured photo + gallery cards */
.mnp-ed .mnp-feat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--input-bg, var(--surface)); box-shadow: var(--shadow); }
.mnp-ed .mnp-feat--has { border-color: transparent; background: transparent; box-shadow: none; }
.mnp-ed .mnp-feat__empty { min-height: 0; padding: 22px 14px 18px; gap: 10px; cursor: default; font-weight: 400; font-size: 14px; text-align: center; }
.mnp-feat__ico svg.mnp-i { width: 30px; height: 30px; color: var(--p); }
.mnp-feat__txt { color: var(--muted); font-size: 13.5px; }
.mnp-feat__srcs, .mnp-galbox__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mnp-feat__srcs .mnp-btn, .mnp-galbox__btns .mnp-btn { min-height: 40px; padding: 6px 12px; font-size: 13.5px; gap: 6px; border-radius: 10px; }
.mnp-feat__srcs svg.mnp-i, .mnp-galbox__btns svg.mnp-i { width: 17px; height: 17px; }
.mnp-ed .mnp-feat .mnp-autonote { margin: 0; padding: 0 14px 14px; text-align: center; }
.mnp-ed .mnp-feat--has .mnp-autonote { padding: 8px 0 0; text-align: left; }
.mnp-galbox { border: 1px solid var(--line); border-radius: var(--radius); background: var(--input-bg, var(--surface)); box-shadow: var(--shadow); padding: 12px; }
.mnp-galbox .mnp-gal:not(:empty) { margin-bottom: 10px; }
.mnp-ed .mnp-sec > .mnp-hint { margin-top: 6px; }

/* story body */
.mnp-ed .mnp-rt { box-shadow: var(--shadow); }
.mnp-ed .mnp-rt__bar { gap: 0; padding: 4px 6px; }
.mnp-ed .mnp-rt__btn { width: 38px; height: 40px; }
.mnp-ed .mnp-rt__btn svg.mnp-i { width: 18px; height: 18px; }
.mnp-rt__btn--h3 svg.mnp-i { width: 14px; height: 14px; }
.mnp-ed .mnp-rt__area { min-height: 220px; }
.mnp-ed .mnp-sec > .mnp-rt__foot { padding: 6px 2px 0; }

/* categories as tap-to-select pills */
.mnp-cats { gap: 7px; }
.mnp-ed .mnp-cat { min-height: 34px; padding: 4px 13px; font-size: 13.5px; font-weight: 600; border-radius: 99px; cursor: pointer; }

.mnp-stack { display: grid; gap: 8px; }
.mnp-stack > [hidden] { display: none; }

/* toggles: switch first, then icon + text */
.mnp-ed .mnp-flags { gap: 12px; }
.mnp-ed .mnp-flag { justify-content: flex-start; padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow); min-height: 60px; }
.mnp-ed .mnp-flag .mnp-sw { width: 42px; height: 24px; }
.mnp-ed .mnp-flag .mnp-sw::after { width: 18px; height: 18px; }
.mnp-ed .mnp-flag__ico { width: auto; height: auto; background: none; }
.mnp-ed .mnp-flag:has(input:checked) .mnp-flag__ico { background: none; color: var(--p); }
.mnp-ed .mnp-flag__lead { gap: 8px; align-items: flex-start; }
.mnp-ed .mnp-flag__lead svg.mnp-i { width: 17px; height: 17px; margin-top: 3px; }

/* SEO header badge */
.mnp-acc__head { display: inline-flex; align-items: center; gap: 8px; }
.mnp-acc__head svg.mnp-i { width: 18px; height: 18px; color: var(--muted); }
.mnp-badge-warn { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, #f59e0b 20%, var(--surface)); color: #b45309; font-family: var(--font); }

/* bottom bar: save · preview · publish */
.mnp-actionbar .mnp-btn { gap: 6px; }
.mnp-actionbar .mnp-btn svg.mnp-i { width: 17px; height: 17px; }
.mnp-actionbar .mnp-btn--primary { flex: 1.6; }

/* preview sheet */
.mnp-pv__title { font-family: var(--font-serif); font-size: 22px; line-height: 1.45; margin: 0 0 6px; }
.mnp-pv__sub { color: var(--muted); font-size: 16px; margin: 0 0 6px; }
.mnp-pv__by { font-size: 13px; font-weight: 700; color: var(--p); margin: 0 0 10px; }
.mnp-pv__img { width: 100%; border-radius: 12px; display: block; margin-bottom: 12px; }
.mnp-pv__body { min-height: 0; padding: 0; }
.mnp-pv__gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 10px; }
.mnp-pv__gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.mnp-ed .mnp-sec > .mnp-label { justify-content: flex-start; gap: 0; }
.mnp-ed .mnp-sec > .mnp-label > .mnp-btn--link { margin-left: auto; }
.mnp-ed .mnp-ed__title { font-size: 17px; }
.mnp-ed .mnp-ed__title::placeholder { font-weight: 600; }
.mnp-feat__srcs, .mnp-galbox__btns { gap: 6px; flex-wrap: nowrap; }
.mnp-feat__srcs .mnp-btn, .mnp-galbox__btns .mnp-btn { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.mnp-actionbar .mnp-btn { white-space: nowrap; padding-left: 8px; padding-right: 8px; font-size: 14.5px; }
.mnp-ed .mnp-label .mnp-opt, .mnp-ed .mnp-label .mnp-req { margin-left: 3px; }

/* tag suggestions */
.mnp-tagsug { margin-top: 12px; }
.mnp-tagsug[hidden] { display: none; }
.mnp-tagsug__head { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.mnp-tagsug__head svg.mnp-i { width: 16px; height: 16px; }
.mnp-ed .mnp-chip--sug { border: 1.5px dashed color-mix(in srgb, var(--p) 40%, var(--line)); background: var(--input-bg, var(--surface)); color: var(--text); border-radius: 99px; padding: 6px 14px; font-weight: 700; }
.mnp-ed .mnp-chip--sug:active { background: var(--p-soft); }
