/**
 * Bornik (বর্ণিক) WordPress Admin Theme
 * Warm Bangla literary palette (Light: handmade paper; Dark: river night).
 */

.bornik-app {
	--b-forest: #0e6655;
	--b-forest-deep: #0a4d40;
	--b-forest-soft: #1f826e;
	--b-terracotta: #c44536;
	--b-gold: #c89b3c;
	--b-bg: #faf7f0;
	--b-surface: #fffdf8;
	--b-card: #f3eee3;
	--b-tray: #ebe4d6;
	--b-key: #fffdf8;
	--b-key-special: #e0d8c8;
	--b-ink: #15201e;
	--b-muted: #52615b;
	--b-border: #d8cebc;
	--b-shadow: 0 2px 10px rgba(14, 40, 34, 0.06);
	--b-glow-forest: rgba(14, 102, 85, 0.22);
	--b-glow-gold: rgba(200, 155, 60, 0.28);

	position: relative;
	isolation: isolate;
	overflow: hidden;

	font-family: "Noto Sans Bengali", "Nirmala UI", "Kalpurush", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--b-ink);
	background:
		radial-gradient(ellipse 120% 80% at 100% -20%, var(--b-glow-gold), transparent 55%),
		radial-gradient(ellipse 90% 60% at 0% 100%, var(--b-glow-forest), transparent 50%),
		var(--b-bg);
	border: 1px solid var(--b-border);
	border-radius: 20px;
	padding: 22px 26px 30px;
	margin: 16px 20px 24px 0;
	max-width: 1120px;
	box-sizing: border-box;
	box-shadow: 0 8px 28px rgba(14, 40, 34, 0.06);
}

.bornik-app.bornik-is-ready .bornik-header {
	animation: bornik-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bornik-app.bornik-is-ready .bornik-paper-card {
	animation: bornik-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.bornik-app::before {
	content: none;
}

.bornik-app > * {
	position: relative;
	z-index: 1;
}

.bornik-app[data-bornik-theme="dark"] {
	--b-forest: #5ad6bc;
	--b-forest-deep: #1f826e;
	--b-forest-soft: #2a9d86;
	--b-terracotta: #ff8375;
	--b-gold: #e2b95a;
	--b-bg: #0e1514;
	--b-surface: #15201e;
	--b-card: #182523;
	--b-tray: #111a19;
	--b-key: #1c2927;
	--b-key-special: #233431;
	--b-ink: #eef5f2;
	--b-muted: #9eb3ac;
	--b-border: #2b3e3b;
	--b-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	--b-glow-forest: rgba(90, 214, 188, 0.12);
	--b-glow-gold: rgba(226, 185, 90, 0.1);
}

.bornik-app *,
.bornik-app *::before,
.bornik-app *::after {
	box-sizing: border-box;
}

/* Header & Navigation */
.bornik-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.bornik-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Same PNG as Play Store / Android app (templates/partials/brand-emblem.php) */
.bornik-logo {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 4px 14px rgba(10, 77, 64, 0.32);
}

.bornik-logo-modal {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	box-shadow: none;
}

.bornik-logo-empty {
	width: 64px;
	height: 64px;
	border-radius: 18px;
}

.bornik-emblem {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	flex-shrink: 0;
}

.bornik-emblem-mark {
	position: relative;
	overflow: hidden;
}

.bornik-emblem-mark::after {
	content: none;
}

.bornik-emblem-letter {
	position: relative;
	z-index: 1;
	font-family: "Source Serif 4", "Noto Sans Bengali", serif;
	font-size: 1.45rem;
	line-height: 1;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.bornik-brand-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--b-ink);
	line-height: 1.2;
}

.bornik-date-pill {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--b-forest);
	background: var(--b-card);
	border: 1px solid var(--b-border);
	padding: 2px 10px;
	border-radius: 999px;
}

.bornik-brand-sub {
	margin: 2px 0 0;
	font-size: 0.82rem;
	color: var(--b-muted);
}

.bornik-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bornik-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--b-muted);
	background: transparent;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bornik-nav-link:hover,
.bornik-nav-link:focus {
	color: var(--b-ink);
	background: var(--b-card);
	box-shadow: none;
}

.bornik-nav-link.is-active {
	background: linear-gradient(135deg, #0e6655, #0a4d40);
	color: #fffdf8;
	border-color: #0e6655;
	box-shadow: 0 6px 16px rgba(14, 102, 85, 0.32);
}

.bornik-header-controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bornik-alpana-divider {
	height: 3px;
	margin: 10px 0 14px;
	opacity: 0.55;
	background: repeating-linear-gradient(
		90deg,
		rgba(200, 155, 60, 0.55) 0 8px,
		transparent 8px 14px,
		rgba(196, 69, 54, 0.45) 14px 18px,
		transparent 18px 26px
	);
	border-radius: 2px;
}

/* Buttons */
.bornik-btn,
.bornik-pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 10px;
	border: 1px solid var(--b-border);
	background: var(--b-surface);
	color: var(--b-ink);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.14s ease, border-color 0.14s ease, transform 0.08s ease;
}

.bornik-btn:hover,
.bornik-pill-btn:hover {
	background: var(--b-card);
	color: var(--b-ink);
	border-color: var(--b-forest);
}

.bornik-btn:active,
.bornik-pill-btn:active {
	transform: translateY(1px);
}

.bornik-btn-primary {
	background: linear-gradient(135deg, #12806b, #0a4d40);
	border-color: #0e6655;
	color: #fffdf8;
	box-shadow: 0 4px 14px rgba(14, 102, 85, 0.28);
}

.bornik-btn-primary:hover,
.bornik-btn-primary:focus {
	background: #0a4d40;
	border-color: #0a4d40;
	color: #fffdf8;
}

.bornik-btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--b-muted);
	box-shadow: none;
}

.bornik-btn-ghost:hover {
	background: var(--b-card);
	border-color: var(--b-border);
	color: var(--b-ink);
}

.bornik-btn-icon {
	min-width: 36px;
	padding: 7px 10px;
	font-size: 1rem;
	font-weight: 700;
}

.bornik-pill-btn {
	padding: 5px 11px;
	font-size: 0.82rem;
	border-radius: 999px;
}

.bornik-icon-btn {
	min-width: 34px;
	padding: 5px 8px;
}

.bornik-link-btn {
	background: transparent;
	border: none;
	padding: 4px 8px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--b-forest);
	text-decoration: none;
	cursor: pointer;
}

.bornik-link-btn:hover {
	background: var(--b-tray);
	color: var(--b-forest);
}

.bornik-link-danger {
	color: var(--b-terracotta);
}

.bornik-link-danger:hover {
	color: var(--b-terracotta);
	background: rgba(196, 69, 54, 0.12);
}

.bornik-btn-danger-outline {
	border-color: rgba(196, 69, 54, 0.45);
	color: var(--b-terracotta);
}

.bornik-btn-danger-outline:hover {
	border-color: var(--b-terracotta);
	background: rgba(196, 69, 54, 0.1);
	color: var(--b-terracotta);
}

.bornik-note-title-btn {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	font-family: inherit;
	font-size: 1.04rem;
	font-weight: 700;
	color: var(--b-ink);
	text-align: left;
	cursor: pointer;
	line-height: 1.35;
}

.bornik-note-title-btn:hover {
	color: var(--b-forest);
}

.bornik-frontend-app:not(.bornik-shell-public) {
	margin: 1.25rem auto;
	max-width: min(980px, 100%);
}

.bornik-fe-footer {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid var(--b-border);
	font-size: 0.84rem;
}

.bornik-fe-footer a {
	color: var(--b-muted);
	text-decoration: none;
}

.bornik-fe-footer a:hover {
	color: var(--b-forest);
	text-decoration: underline;
}

/* Editor Shell */
.bornik-editor-shell {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bornik-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.bornik-toolbar-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.bornik-pin-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 10px;
	background: var(--b-card);
	border: 1px solid var(--b-border);
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--b-ink);
	cursor: pointer;
}

.bornik-pin-toggle--compact {
	padding: 5px 10px;
	font-size: 0.82rem;
	background: transparent;
	border-color: transparent;
}

.bornik-pin-toggle--compact:hover {
	background: var(--b-card);
	border-color: var(--b-border);
}

.bornik-toolbar-compact {
	gap: 8px;
	margin-bottom: 10px;
}

.bornik-toolbar-secondary {
	margin-left: auto;
}

.bornik-paper-card {
	position: relative;
	background: var(--b-surface);
	border: 1px solid var(--b-border);
	border-radius: 16px;
	padding: 16px 18px 18px;
	box-shadow: var(--b-shadow);
	overflow: hidden;
}


.bornik-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-bottom: 1px solid var(--b-border);
	padding-bottom: 8px;
	margin-bottom: 10px;
}

.bornik-title-input {
	flex: 1 1 280px;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: inherit;
	font-size: 1.25rem !important;
	font-weight: 700;
	color: var(--b-ink) !important;
	padding: 4px 2px !important;
}

.bornik-title-input::placeholder,
.bornik-body-input::placeholder {
	color: var(--b-muted);
	opacity: 0.72;
}

.bornik-meta-right {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
}

.bornik-save-status {
	color: var(--b-forest);
	font-weight: 600;
}

.bornik-word-count {
	color: var(--b-muted);
	background: var(--b-card);
	padding: 3px 9px;
	border-radius: 999px;
}

.bornik-body-input {
	width: 100%;
	min-height: 230px;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--b-ink) !important;
	font-family: "Noto Sans Bengali", "Nirmala UI", "Kalpurush", sans-serif;
	font-size: 1.22rem;
	line-height: 1.85;
	padding: 4px 2px;
	resize: vertical;
	caret-color: var(--b-forest);
}

.bornik-body-input:focus-visible,
.bornik-title-input:focus-visible,
.bornik-search-input:focus-visible,
.bornik-guide-search-input:focus-visible {
	outline: 2px solid rgba(14, 102, 85, 0.45);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Candidates Bar */
.bornik-candidates {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	background: var(--b-card);
	border: 1px solid var(--b-border);
	border-radius: 12px;
}

.bornik-candidate {
	padding: 5px 13px;
	border-radius: 999px;
	border: 1px solid var(--b-border);
	background: var(--b-surface);
	color: var(--b-ink);
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	cursor: pointer;
}

.bornik-candidate:hover {
	border-color: var(--b-forest);
}

.bornik-candidate.is-primary {
	background: #0e6655;
	border-color: #0e6655;
	color: #fffdf8;
}

/* Mode Bar */
.bornik-mode-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.bornik-mode-tabs {
	display: inline-flex;
	background: var(--b-tray);
	padding: 4px;
	border-radius: 12px;
	border: 1px solid var(--b-border);
	gap: 4px;
}

.bornik-mode-btn {
	border: none;
	background: transparent;
	color: var(--b-muted);
	padding: 6px 16px;
	border-radius: 9px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.bornik-mode-btn.is-active {
	background: #0e6655;
	color: #fffdf8;
}

.bornik-mode-btn {
	touch-action: manipulation;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bornik-mode-hint {
	margin: 0 0 8px;
	font-size: 0.84rem;
	color: var(--b-muted);
	padding: 0;
	background: transparent;
	border: none;
}

/* Full On-Screen Keyboard */
.bornik-keyboard-tray {
	background: var(--b-tray);
	border: 1px solid var(--b-border);
	border-radius: 14px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	user-select: none;
}

/* display:flex on trays overrides native [hidden]; force hide when JS toggles */
.bornik-keyboard-tray[hidden],
#bornik-candidates[hidden],
#bornik-english-hint[hidden],
.bornik-app [data-bornik-fe-panel][hidden] {
	display: none !important;
}

.bornik-kb-row {
	display: flex;
	gap: 5px;
	justify-content: center;
}

.bornik-key {
	position: relative;
	flex: 1 1 0;
	min-width: 34px;
	height: 48px;
	border-radius: 9px;
	border: 1px solid var(--b-border);
	background: var(--b-key);
	color: var(--b-ink);
	font-family: "Noto Sans Bengali", "Nirmala UI", sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
	transition: background 0.1s ease, transform 0.06s ease;
}

.bornik-key:hover {
	border-color: var(--b-forest);
	background: var(--b-card);
}

.bornik-key:active {
	transform: translateY(1px);
}

.bornik-key-main {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1;
}

.bornik-key-hint {
	position: absolute;
	top: 3px;
	right: 5px;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--b-muted);
	line-height: 1;
	pointer-events: none;
}

.bornik-key-special {
	background: var(--b-key-special);
	font-weight: 700;
	font-size: 0.95rem;
}

.bornik-key-special.is-active {
	background: #0e6655;
	color: #fffdf8;
	border-color: #0e6655;
}

.bornik-key-special.is-locked {
	box-shadow: inset 0 -3px 0 #e2b95a;
}

.bornik-key-wide {
	flex: 1.55 1 0;
}

.bornik-key-space {
	flex: 4.5 1 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--b-muted);
}

.bornik-key-action {
	background: #0e6655;
	border-color: #0e6655;
	color: #fffdf8;
	font-size: 1.1rem;
}

.bornik-key-action:hover {
	background: #0a4d40;
	color: #fffdf8;
}

/* Pages & Cards */
.bornik-page-shell {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bornik-card {
	background: var(--b-surface);
	border: 1px solid var(--b-border);
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: var(--b-shadow);
}

.bornik-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.bornik-page-title {
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-size: 1.3rem !important;
	font-weight: 700;
	color: var(--b-ink);
}

.bornik-page-sub {
	margin: 0;
	color: var(--b-muted);
	font-size: 0.92rem;
}

.bornik-section-heading {
	margin: 0 0 10px;
	font-size: 1.05rem;
	color: var(--b-forest);
}

/* Saved Texts List */
.bornik-list-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.bornik-search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 1 1 320px;
}

.bornik-search-input {
	flex: 1 1 220px;
	max-width: 380px;
	padding: 7px 12px !important;
	border-radius: 10px !important;
	border: 1px solid var(--b-border) !important;
	background: var(--b-surface) !important;
	color: var(--b-ink) !important;
	font-family: inherit;
}

.bornik-notes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
}

.bornik-note-card {
	background: var(--b-surface);
	border: 1px solid var(--b-border);
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: var(--b-shadow);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.bornik-note-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(14, 40, 34, 0.12);
	border-color: rgba(14, 102, 85, 0.35);
}

.bornik-note-card.is-pinned {
	border-color: var(--b-gold);
	box-shadow:
		var(--b-shadow),
		0 0 0 1px rgba(200, 155, 60, 0.35);
}

.bornik-note-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.bornik-note-title {
	font-size: 1.04rem;
	font-weight: 700;
	color: var(--b-ink);
	text-decoration: none;
	line-height: 1.35;
}

.bornik-note-title:hover {
	color: var(--b-forest);
}

.bornik-pin-badge {
	margin-right: 4px;
}

.bornik-note-date {
	font-size: 0.76rem;
	color: var(--b-muted);
	white-space: nowrap;
}

.bornik-note-preview {
	margin: 0;
	font-size: 0.92rem;
	color: var(--b-muted);
	line-height: 1.55;
	flex: 1;
}

.bornik-note-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--b-border);
}

.bornik-empty-card {
	text-align: center;
	padding: 48px 24px;
	background:
		radial-gradient(circle at 50% 0%, rgba(14, 102, 85, 0.08), transparent 55%),
		var(--b-surface);
	border: 1px dashed var(--b-border);
	border-radius: 18px;
	animation: bornik-empty-float 6s ease-in-out infinite;
}

.bornik-empty-title {
	margin: 0 0 8px;
	font-size: 1.28rem;
	font-weight: 700;
	color: var(--b-ink);
}

.bornik-empty-sub {
	margin: 0 auto 18px;
	max-width: 38ch;
	font-size: 0.94rem;
	color: var(--b-muted);
	line-height: 1.55;
}

.bornik-empty-emblem {
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bornik-footer-note {
	margin: 4px 0 0;
	font-size: 0.84rem;
	color: var(--b-muted);
}

/* Interactive Phonetic Guide */
.bornik-guide {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bornik-guide-hint {
	margin: 0;
	font-size: 0.85rem;
	color: var(--b-muted);
}

.bornik-guide-search-input {
	width: 100%;
	padding: 9px 14px !important;
	border-radius: 10px !important;
	border: 1px solid var(--b-border) !important;
	background: var(--b-card) !important;
	color: var(--b-ink) !important;
	font-family: inherit;
	font-size: 0.94rem;
}

.bornik-guide-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.bornik-guide-tab {
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid var(--b-border);
	background: var(--b-card);
	color: var(--b-muted);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.bornik-guide-tab.is-active {
	background: #0e6655;
	border-color: #0e6655;
	color: #fffdf8;
}

.bornik-guide-section-title {
	margin: 8px 0 10px;
	font-size: 0.96rem;
	font-weight: 700;
	color: var(--b-forest);
}

.bornik-recipe-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.bornik-recipe-card {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid var(--b-border);
	background: var(--b-card);
	color: var(--b-ink);
	font-family: inherit;
	cursor: pointer;
	text-align: left;
}

.bornik-recipe-card:hover {
	border-color: var(--b-forest);
}

.bornik-recipe-left {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bornik-recipe-roman {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--b-forest);
}

.bornik-recipe-steps {
	font-size: 0.74rem;
	color: var(--b-muted);
}

.bornik-recipe-arrow {
	color: var(--b-terracotta);
	font-weight: 700;
}

.bornik-recipe-bn {
	font-size: 1.25rem;
	font-weight: 700;
}

.bornik-glyph-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bornik-glyph-card {
	min-width: 78px;
	padding: 9px 11px;
	border-radius: 11px;
	border: 1px solid var(--b-border);
	background: var(--b-card);
	color: var(--b-ink);
	font-family: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.bornik-glyph-card:hover {
	border-color: var(--b-forest);
}

.bornik-glyph-bn {
	font-size: 1.32rem;
	font-weight: 700;
	line-height: 1.2;
}

.bornik-glyph-roman {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--b-muted);
	background: var(--b-tray);
	padding: 2px 7px;
	border-radius: 6px;
}

.bornik-tip-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bornik-tip-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 12px;
	background: var(--b-card);
	border-radius: 10px;
	font-size: 0.88rem;
}

.bornik-tip-badge {
	min-width: 34px;
	text-align: center;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--b-forest);
	background: var(--b-tray);
	padding: 2px 6px;
	border-radius: 6px;
}

.bornik-guide-banner {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--b-card);
	border-left: 3px solid var(--b-forest);
	font-size: 0.88rem;
	margin-bottom: 12px;
}

.bornik-guide-empty {
	text-align: center;
	color: var(--b-muted);
	padding: 24px 0;
}

/* Help Page Grid */
.bornik-help-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.bornik-shortcut-list,
.bornik-bullet-list {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.9rem;
}

.bornik-shortcut-list {
	list-style: none;
	padding-left: 0;
}

.bornik-shortcut-list kbd {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 6px;
	border: 1px solid var(--b-border);
	background: var(--b-card);
	font-size: 0.8rem;
	font-weight: 700;
	margin-right: 4px;
}

/* Privacy Policy Admin View */
.bornik-notice-success {
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(14, 102, 85, 0.12);
	border: 1px solid var(--b-forest);
	color: var(--b-ink);
	font-weight: 600;
}

.bornik-url-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border-radius: 12px;
	background: var(--b-card);
	border: 1px solid var(--b-border);
}

.bornik-url-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}

.bornik-url-row code {
	background: var(--b-surface);
	color: var(--b-ink);
	border: 1px solid var(--b-border);
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 0.86rem;
	word-break: break-all;
}

.bornik-url-hint {
	font-size: 0.84rem;
	color: var(--b-muted);
	padding-top: 6px;
	border-top: 1px dashed var(--b-border);
}

.bornik-policy-document {
	line-height: 1.7;
}

.bornik-policy-meta {
	font-size: 0.88rem;
	color: var(--b-muted);
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--b-border);
}

.bornik-policy-document h2 {
	font-size: 1.08rem;
	color: var(--b-forest);
	margin: 1.35em 0 0.4em;
}

.bornik-policy-document ul {
	padding-left: 20px;
}

.bornik-policy-document .bornik-policy-bn {
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px dashed var(--b-gold);
}

.bornik-license-note {
	margin-top: 20px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--b-card);
	font-size: 0.85rem;
	color: var(--b-muted);
}

/* Modal */
.bornik-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100050;
	background: rgba(14, 21, 20, 0.62);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bornik-modal-backdrop[hidden] {
	display: none;
}

.bornik-modal {
	width: 100%;
	max-width: 720px;
	max-height: 86vh;
	background: var(--b-surface);
	color: var(--b-ink);
	border: 1px solid var(--b-border);
	border-radius: 16px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.bornik-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--b-border);
	background: var(--b-card);
}

.bornik-modal-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bornik-modal-icon {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: #0e6655;
	color: #fffdf8;
	font-weight: 700;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bornik-modal-header h2 {
	margin: 0;
	font-size: 1.08rem;
	color: var(--b-ink);
}

.bornik-modal-body {
	padding: 16px 18px 20px;
	overflow-y: auto;
}

/* Floating Auto-Dismiss Toast */
.bornik-toast {
	position: fixed;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	z-index: 100100;
	background: #0a4d40;
	color: #fffdf8;
	padding: 10px 18px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.bornik-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.28),
		0 0 0 1px rgba(226, 185, 90, 0.45);
}

.bornik-toast[hidden] {
	display: none;
}

.bornik-toast-undo {
	background: rgba(255, 255, 255, 0.18);
	color: #fffdf8;
	border: none;
	padding: 4px 10px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}

.bornik-toast-undo:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Compose hero & quick tips */
.bornik-hero-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(14, 102, 85, 0.22);
	background:
		linear-gradient(105deg, rgba(14, 102, 85, 0.1) 0%, transparent 42%),
		linear-gradient(285deg, rgba(200, 155, 60, 0.14) 0%, transparent 38%),
		var(--b-card);
}

.bornik-hero-kicker {
	margin: 0;
	font-family: "Source Serif 4", "Noto Sans Bengali", serif;
	font-size: 1.12rem;
	font-weight: 600;
	font-style: italic;
	color: var(--b-forest);
	letter-spacing: 0.01em;
}

.bornik-hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bornik-tip-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--b-ink);
	background: var(--b-surface);
	border: 1px solid var(--b-border);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.bornik-tip-chip-soft {
	color: var(--b-muted);
	font-weight: 600;
	background: transparent;
}

/* Staggered list entrance */
.bornik-rise-in {
	animation: bornik-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	animation-delay: var(--bornik-stagger, 0ms);
}

@keyframes bornik-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bornik-emblem-shine {
	0%,
	78% {
		transform: rotate(0deg);
		opacity: 0;
	}
	88% {
		opacity: 1;
	}
	100% {
		transform: rotate(25deg);
		opacity: 0;
	}
}

@keyframes bornik-empty-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

/* Public /bornik — full-viewport app shell (no centered “card”) */
html:has(.bornik-public-body) {
	height: 100%;
}

.bornik-public-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	height: 100%;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200, 155, 60, 0.22), transparent 60%),
		radial-gradient(ellipse 60% 40% at 100% 100%, rgba(14, 102, 85, 0.15), transparent 55%),
		#f2ece0;
	transition: background 0.2s ease;
}

body.bornik-public-body[data-bornik-theme="dark"] {
	background:
		radial-gradient(ellipse 70% 45% at 50% 0%, rgba(90, 214, 188, 0.08), transparent 55%),
		#080d0c;
}

.bornik-public-stage {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.bornik-app.bornik-shell-public {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	margin: 0;
	border: none;
	border-radius: 0;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(10px, 2vw, 18px) clamp(12px, 3vw, 32px) clamp(12px, 2vw, 20px);
	box-shadow: none;
}

.bornik-shell-public.bornik-frontend-app {
	margin: 0;
	max-width: none;
}

.bornik-shell-public [data-bornik-fe-panel]:not([hidden]) {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
}

.bornik-shell-public .bornik-nav .bornik-nav-link[data-bornik-fe-tab] {
	touch-action: manipulation;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bornik-shell-public .bornik-editor-shell {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.bornik-shell-public .bornik-paper-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.bornik-shell-public .bornik-body-input {
	flex: 1;
	min-height: calc(100dvh - 26rem);
	min-height: max(220px, calc(100dvh - 26rem));
}

.bornik-shell-public .bornik-fe-footer {
	margin-top: auto;
	padding-top: 12px;
}

.bornik-shell-public .bornik-header {
	padding-bottom: 4px;
	flex-shrink: 0;
}

.bornik-shell-public .bornik-brand-title span:first-child {
	font-family: "Source Serif 4", "Noto Sans Bengali", serif;
	font-size: 1.5rem;
}

.bornik-fe-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-align: left;
}

/* wp-admin: use full content width */
.bornik-app.bornik-shell-admin {
	max-width: none;
	width: calc(100% - 12px);
	margin: 10px 0 20px;
}

.bornik-shell-admin.wrap {
	max-width: none;
}

.bornik-shell-admin .bornik-body-input {
	min-height: max(240px, calc(100vh - 22rem));
}

.bornik-shell-admin .bornik-nav-link:focus-visible,
.bornik-btn:focus-visible,
.bornik-pill-btn:focus-visible,
.bornik-mode-btn:focus-visible {
	outline: 2px solid rgba(14, 102, 85, 0.5);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.bornik-app,
	.bornik-rise-in,
	.bornik-empty-card,
	.bornik-emblem-mark::after {
		animation: none !important;
		transition: none !important;
	}

}

@media (max-width: 782px) {
	.bornik-app:not(.bornik-shell-public) {
		margin-right: 10px;
		padding: 14px;
	}

	.bornik-app.bornik-shell-public {
		padding: 10px 10px 14px;
	}

	.bornik-shell-public .bornik-body-input {
		min-height: max(180px, calc(100dvh - 24rem));
	}
	.bornik-guide-tabs {
		grid-template-columns: repeat(2, 1fr);
	}
	.bornik-key {
		height: 44px;
		min-width: 26px;
	}
}
