/**
 * Bebche App – Mobile-first app styles.
 *
 * Single column by default; min 44px tap targets; cards with padding/shadows.
 * Desktop: two-column (sidebar + content) from 768px.
 * Optimized for 360px width.
 */

:root {
	--bebche-bg: #f5f5f4;
	--bebche-surface: #fff;
	--bebche-border: #e5e5e4;
	--bebche-text: #1c1917;
	--bebche-text-muted: #78716c;
	--bebche-sidebar-bg: #fafaf9;
	--bebche-sidebar-border: #e7e5e4;
	--bebche-primary: #44403c;
	--bebche-primary-hover: #292524;
	--bebche-accent: #0072ff;
	--bebche-accent-soft: rgba(0, 114, 255, 0.15);
	--bebche-radius: 12px;
	--bebche-radius-sm: 8px;
	--bebche-input-bg: var(--bebche-bg);
	--bebche-input-border: var(--bebche-border);
	--bebche-focus-ring: 0 0 0 3px var(--bebche-accent-soft);
	--bebche-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	--bebche-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
	--bebche-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tap-min: 44px;
}

/* Enforce accent inside plugin (wins over any later override on :root) */
.bebche-app-main {
	--bebche-accent: #0072ff;
	--bebche-accent-soft: rgba(0, 114, 255, 0.15);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body.bebche-app-body {
	margin: 0;
	font-family: var(--bebche-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--bebche-text);
	background: var(--bebche-bg);
	-webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------
   Mobile-first: single column shell with header
   ------------------------------------------------------------------------- */
.bebche-app-wrap {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: relative;
}

.bebche-app-wrap > .bebche-app-sidebar,
.bebche-app-wrap > .bebche-app-main {
	flex-shrink: 0;
}

/* Top header bar */
.bebche-app-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 56px;
	min-height: 56px;
	max-height: 56px;
	background: var(--bebche-surface);
	border-bottom: 1px solid var(--bebche-sidebar-border);
	padding: 0 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	box-shadow: var(--bebche-shadow);
	flex-shrink: 0;
}

.bebche-app-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--tap-min);
	height: var(--tap-min);
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--bebche-text);
	border-radius: var(--bebche-radius-sm);
	transition: background 0.15s ease;
}

.bebche-app-menu-toggle:hover,
.bebche-app-menu-toggle:focus {
	background: rgba(0, 0, 0, 0.04);
	outline: none;
}

.bebche-app-menu-toggle-icon {
	display: block;
	width: 24px;
	height: 18px;
	position: relative;
	background: linear-gradient(to bottom, transparent 7px, currentColor 7px, currentColor 9px, transparent 9px);
	transition: opacity 0.2s ease;
}

.bebche-app-menu-toggle-icon::before,
.bebche-app-menu-toggle-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bebche-app-menu-toggle-icon::before {
	top: 0;
}

.bebche-app-menu-toggle-icon::after {
	bottom: 0;
}

.bebche-app-wrap.menu-open .bebche-app-menu-toggle-icon::before {
	transform: translateY(8px) rotate(45deg);
}

.bebche-app-wrap.menu-open .bebche-app-menu-toggle-icon {
	opacity: 0;
}

.bebche-app-wrap.menu-open .bebche-app-menu-toggle-icon::after {
	transform: translateY(-8px) rotate(-45deg);
}

.bebche-app-header-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex: 1;
	min-width: 0;
	max-width: 100%;
}

.bebche-app-logo-img {
	height: 28px;
	width: auto;
	max-width: 160px;
	max-height: 40px;
	object-fit: contain;
	display: block;
}

/* Prevent images in header/sidebar from exceeding containers */
.bebche-app-header img,
.bebche-app-sidebar img {
	max-height: 40px;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

/* Overlay for mobile menu */
.bebche-app-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 199;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.bebche-app-wrap.menu-open .bebche-app-overlay {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

/* Sidebar: off-canvas on mobile */
.bebche-app-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 16rem;
	max-width: 85vw;
	height: 100vh;
	height: 100dvh;
	background: var(--bebche-sidebar-bg);
	border-right: 1px solid var(--bebche-sidebar-border);
	padding: 1rem 1.25rem;
	padding-bottom: calc(1rem + env(safe-area-inset-bottom));
	z-index: 200;
	overflow: hidden;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.bebche-app-wrap.menu-open .bebche-app-sidebar {
	transform: translateX(0);
}

.bebche-app-sidebar-header {
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex-shrink: 0;
}

.bebche-app-sidebar-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--tap-min);
	height: var(--tap-min);
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--bebche-text-muted);
	font-size: 1.5rem;
	line-height: 1;
	border-radius: var(--bebche-radius-sm);
	transition: color 0.15s ease, background 0.15s ease;
}

.bebche-app-sidebar-close:hover,
.bebche-app-sidebar-close:focus {
	color: var(--bebche-text);
	background: rgba(0, 0, 0, 0.04);
	outline: none;
}

.bebche-app-logo {
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--bebche-text);
	flex: 1;
}

.bebche-app-nav {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

.bebche-app-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bebche-app-nav li {
	margin: 0;
}

/* Tap target min 44px */
.bebche-app-nav-link,
.bebche-app-nav-link--tap {
	display: flex;
	align-items: center;
	min-height: var(--tap-min);
	padding: 0 0.25rem;
	color: var(--bebche-text-muted);
	text-decoration: none;
	border-radius: var(--bebche-radius-sm);
	transition: color 0.15s ease, background 0.15s ease;
}

.bebche-app-nav-link:hover,
.bebche-app-nav-link--tap:hover {
	color: var(--bebche-text);
	background: rgba(0, 0, 0, 0.04);
}

.bebche-app-sidebar-footer {
	margin-top: auto;
	padding-top: 1rem;
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--bebche-sidebar-border);
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
	background: var(--bebche-sidebar-bg);
	position: sticky;
	bottom: 0;
	z-index: 10;
	flex-shrink: 0;
}

.bebche-app-sidebar-footer .bebche-app-user {
	display: block;
	margin-bottom: 0.5rem;
}

.bebche-app-sidebar-footer .bebche-app-nav-link {
	min-height: var(--tap-min);
}

.bebche-app-main {
	flex: 1;
	padding: 1rem 1rem 5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
}

/* Desktop: larger logo, header visible, sidebar always visible */
@media (min-width: 901px) {
	.bebche-app-logo-img {
		height: 32px;
	}

	.bebche-app-menu-toggle {
		display: none;
	}

	.bebche-app-overlay {
		display: none !important;
	}

	.bebche-app-sidebar {
		position: fixed;
		left: 0;
		top: 56px;
		width: 14rem;
		height: calc(100vh - 56px);
		min-height: calc(100vh - 56px);
		transform: translateX(0);
		border-right: 1px solid var(--bebche-sidebar-border);
		padding: 1.5rem 1rem;
		overflow-y: auto;
	}

	.bebche-app-sidebar-close {
		display: none;
	}

	.bebche-app-main {
		flex: 1;
		padding: 1.5rem 2rem;
		min-width: 0;
		margin-left: 14rem;
	}
}

/* -------------------------------------------------------------------------
   Cards: padding, rounded, shadow
   ------------------------------------------------------------------------- */
.bebche-app-card {
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius);
	box-shadow: var(--bebche-shadow-card);
	border: 1px solid var(--bebche-border);
	padding: 1.25rem;
}

.bebche-app-card-title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--bebche-text);
}

.bebche-app-card--tap {
	display: block;
	min-height: var(--tap-min);
	text-decoration: none;
	color: inherit;
}

.bebche-app-card--tap:hover {
	opacity: 0.9;
}

/* -------------------------------------------------------------------------
   Page headers: sticky primary where used
   ------------------------------------------------------------------------- */
.bebche-app-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.bebche-app-page-header--sticky {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--bebche-bg);
	padding-bottom: 0.5rem;
}

.bebche-app-page-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--bebche-text);
}

.bebche-app-page-content {
	max-width: 40rem;
}

.bebche-app-lead {
	margin: 0 0 1rem;
	color: var(--bebche-text-muted);
	font-size: 1rem;
	line-height: 1.5;
}

.bebche-app-lead a {
	color: var(--bebche-accent);
}

.bebche-app-empty-state {
	text-align: center;
	padding: 1.5rem 0;
}

/* Success/info messages */
.bebche-app-message {
	padding: 1rem 1.25rem;
	border-radius: var(--bebche-radius-sm);
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.bebche-app-message--success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.bebche-app-message--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.bebche-app-message--info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

/* -------------------------------------------------------------------------
   Forms: big inputs, clear labels, min 44px
   ------------------------------------------------------------------------- */
.bebche-app-form {
	margin: 0;
}

.bebche-app-field {
	margin: 0 0 1.25rem;
}

.bebche-app-field label {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-bottom: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--bebche-text);
}

.bebche-app-required {
	color: #E53935;
	font-weight: 600;
}

.bebche-app-field-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--bebche-text-muted);
}

.bebche-app-field-hint code {
	font-size: inherit;
	word-break: break-all;
}

/* -------------------------------------------------------------------------
   Diary: sections + events cards
   ------------------------------------------------------------------------- */
.bebche-app-section {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.bebche-app-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.bebche-app-section-title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 650;
	color: var(--bebche-text);
}

.bebche-app-events-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bebche-app-event-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.bebche-app-event-date {
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--bebche-text);
}

.bebche-app-event-type {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
}

.bebche-app-event-title {
	margin: 0.25rem 0 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--bebche-text);
}

.bebche-app-event-actions {
	margin-top: 0.75rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.bebche-app-event-actions form {
	margin: 0;
}

/* Diary history accordion */
.bebche-app-accordion {
	border: none;
	padding: 0;
}

.bebche-app-accordion > summary {
	list-style: none;
	cursor: pointer;
}

.bebche-app-accordion > summary::-webkit-details-marker {
	display: none;
}

.bebche-app-diary-list .bebche-app-diary-title {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-decoration: none;
	color: inherit;
	max-width: 100%;
}

.bebche-app-diary-excerpt {
	font-size: 0.9rem;
	color: var(--bebche-text-muted);
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	max-width: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.5;
}

.bebche-app-history-filter {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.bebche-app-diary .bebche-app-history-filter {
	gap: 0;
	margin-bottom: 0.4rem;
}

/* Diary: grouped filters block */
.bebche-diary-filters {
	background: color-mix(in srgb, var(--bebche-accent) 3%, #fff);
	border: 1px solid color-mix(in srgb, var(--bebche-accent) 10%, transparent);
	border-radius: var(--bebche-radius-sm);
	padding: 0.75rem 0.875rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.bebche-diary-filters .bebche-app-history-label {
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
	opacity: 0.8;
	margin-bottom: 0.15rem;
}

.bebche-diary-filters .bebche-app-history-select-wrap {
	max-width: 100%;
}

.bebche-diary-filters .bebche-app-history-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0;
}

.bebche-app-history-label {
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
}

.bebche-app-history-select-wrap {
	max-width: 100%;
}

.bebche-app-history-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.15rem;
}

.bebche-app-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #5b4634;
	background: #fff7ec;
	border: 1px solid #f6ddc3;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
	min-height: auto;
}

.bebche-app-chip:hover {
	background: #fbe9d5;
	border-color: #f2cba4;
}

.bebche-app-diary-day {
	margin-bottom: 0.875rem;
}

.bebche-app-diary .bebche-app-diary-day {
	margin-top: 0.5rem;
	margin-bottom: 0.75rem;
}

.bebche-app-diary-day-header {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bebche-text-muted);
	margin-bottom: 0.5rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid rgba(244, 226, 206, 0.5);
}

.bebche-app-diary .bebche-app-diary-day-header {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--bebche-text-muted);
	opacity: 0.85;
	margin-top: 0;
	margin-bottom: 0.35rem;
	padding-bottom: 0.2rem;
}

.bebche-app-diary-entry-full {
	margin-top: 1rem;
}

.bebche-app-diary-meta {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: var(--bebche-text-muted);
}

.bebche-app-entry-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.bebche-app-entry-menu-trigger {
	font-size: 1.5rem;
	line-height: 1;
	color: var(--bebche-text-muted);
	opacity: 0.6;
}

.bebche-app-entry-menu-items {
	display: flex;
	gap: 0.5rem;
}

.bebche-app-entry-menu-link {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
	text-decoration: none;
}

.bebche-app-entry-menu-link:hover {
	color: var(--bebche-text);
	text-decoration: underline;
}

/* Diary Today card – compact app card */
.bebche-app-diary-today-card {
	background: color-mix(in srgb, var(--bebche-accent) 4%, #fff);
	border: 1px solid color-mix(in srgb, var(--bebche-accent) 12%, transparent);
	border-radius: var(--bebche-radius);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.875rem 1rem;
}

.bebche-app-diary-today-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.bebche-app-diary-today-label {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
	opacity: 0.9;
}

.bebche-app-diary-today-baby {
	margin: 0;
	font-size: 0.95rem;
}

.bebche-app-diary-today-text p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--bebche-text);
	border-left: 3px solid #f4d7bc;
	padding-left: 0.75rem;
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	max-width: 100%;
}

.bebche-app-diary-today-empty {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--bebche-text-muted);
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	max-width: 100%;
}

.bebche-app-page-subtitle {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
}

/* Diary page: compact layout and section hierarchy */
.bebche-app-diary .bebche-app-page-header {
	margin-bottom: 0.5rem;
}

.bebche-app-diary .bebche-app-page-title {
	margin-bottom: 0.25rem;
}

.bebche-app-diary .bebche-app-page-subtitle {
	margin-top: 0.1rem;
	margin-bottom: 0;
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	opacity: 0.85;
}

.bebche-app-diary .bebche-app-page-content {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bebche-app-diary .bebche-app-section-today {
	margin-bottom: 0;
}

.bebche-app-diary .bebche-app-section-entries {
	margin-top: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--bebche-border);
}

.bebche-app-diary .bebche-app-section-head {
	margin-bottom: 0.35rem;
}

.bebche-app-diary .bebche-app-section-title {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--bebche-text-muted);
}

.bebche-app-history-hint {
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
	opacity: 0.8;
}

.bebche-app-diary .bebche-app-section-entries .bebche-app-history-hint:first-of-type {
	margin-top: 0;
	margin-bottom: 0.35rem;
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
	opacity: 0.75;
}

.bebche-app-diary .bebche-app-section-entries .bebche-app-history-hint:not(:first-of-type) {
	margin-top: 0.4rem;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
	opacity: 0.75;
}

.bebche-app-diary .bebche-app-lead {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
}

.bebche-app-diary-list {
	margin-top: 0.5rem;
}

.bebche-app-diary-item {
	margin-bottom: 0.75rem;
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* Calm soft primary button for diary */
.bebche-app-btn-soft {
	background: #fff7ec;
	border: 1px solid #f6ddc3;
	color: #5b4634;
	border-radius: 999px;
	padding-inline: 1.5rem;
}

.bebche-app-btn-soft:hover {
	background: #fbe9d5;
	border-color: #f2cba4;
	color: #4d3a2a;
}

.bebche-app-diary-body p {
	line-height: 1.7;
	font-weight: 400;
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	max-width: 100%;
}

.bebche-app-input,
.bebche-app-input--tap {
	width: 100%;
	min-height: var(--tap-min);
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	line-height: 1.4;
	color: var(--bebche-text);
	background: var(--bebche-surface);
	border: 1px solid var(--bebche-border);
	border-radius: var(--bebche-radius-sm);
	appearance: none;
	transition: border-color 0.15s ease;
}

.bebche-app-input:focus,
.bebche-app-input--tap:focus {
	outline: none;
	border-color: var(--bebche-primary);
	box-shadow: 0 0 0 3px rgba(68, 64, 60, 0.12);
}

.bebche-app-textarea,
.bebche-app-input.bebche-app-textarea {
	min-height: 6rem;
	padding: 0.75rem 1rem;
	resize: vertical;
}

.bebche-app-select {
	min-height: var(--tap-min);
	cursor: pointer;
}

.bebche-app-remember label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
	min-height: var(--tap-min);
}

.bebche-app-remember input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
}

.bebche-app-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

/* -------------------------------------------------------------------------
   Buttons: min 44px, sticky primary where needed
   ------------------------------------------------------------------------- */
.bebche-app-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--tap-min);
	padding: 0 1.25rem;
	font-size: 1rem;
	font-weight: 500;
	font-family: inherit;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: var(--bebche-radius-sm);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.bebche-app-btn--tap {
	min-height: var(--tap-min);
}

.bebche-app-btn--sticky {
	position: sticky;
	bottom: 1rem;
	z-index: 2;
	box-shadow: var(--bebche-shadow-card);
}

.bebche-app-btn-sm {
	min-height: 40px;
	padding: 0 1rem;
	font-size: 0.9375rem;
}

.bebche-app-btn-primary {
	color: #fff;
	background: var(--bebche-primary);
}

.bebche-app-btn-primary:hover {
	background: var(--bebche-primary-hover);
}

.bebche-app-btn-primary:focus {
	outline: 2px solid var(--bebche-primary);
	outline-offset: 2px;
}

/* Primary buttons: solid accent, no gradients (scoped to plugin main) */
.bebche-app-main .bebche-app-btn-primary {
	position: relative;
	background-color: var(--bebche-accent) !important;
	border: 1px solid var(--bebche-accent) !important;
	color: #fff;
	transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.bebche-app-main .bebche-app-btn-primary:hover {
	filter: brightness(1.06);
}

.bebche-app-main .bebche-app-btn-primary:active {
	transform: translateY(1px);
}

.bebche-app-main .bebche-app-btn-primary:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--bebche-accent-soft);
}

.bebche-app-main .bebche-app-btn-primary.is-loading,
.bebche-app-main .bebche-app-btn.is-loading,
.bebche-app-main .bebche-app-btn-primary[aria-busy="true"],
.bebche-app-main .bebche-app-btn[aria-busy="true"] {
	pointer-events: none;
	opacity: 0.95;
	color: transparent;
}

.bebche-app-main .bebche-app-btn-primary.is-loading::after,
.bebche-app-main .bebche-app-btn.is-loading::after,
.bebche-app-main .bebche-app-btn-primary[aria-busy="true"]::after,
.bebche-app-main .bebche-app-btn[aria-busy="true"]::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bebche-spin 0.8s linear infinite;
}

@keyframes bebche-spin {
	to {
		transform: rotate(360deg);
	}
}

.bebche-app-main .bebche-app-btn[disabled],
.bebche-app-main .bebche-app-btn.is-disabled {
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.55;
}

.bebche-app-main .bebche-app-btn[disabled]:hover,
.bebche-app-main .bebche-app-btn[disabled]:active,
.bebche-app-main .bebche-app-btn.is-disabled:hover,
.bebche-app-main .bebche-app-btn.is-disabled:active {
	filter: none;
	transform: none;
	box-shadow: none;
}

/* Active / selected states: accent only where active (restrained) */
.bebche-app-main .bebche-chip--active,
.bebche-app-main .is-active,
.bebche-app-main .active {
	color: var(--bebche-accent);
	background: rgba(0, 114, 255, 0.08);
}

.bebche-app-main .bebche-chip--active {
	border-left: 2px solid var(--bebche-accent);
}

.bebche-app-btn-secondary {
	color: var(--bebche-text);
	background: var(--bebche-border);
}

.bebche-app-btn-secondary:hover {
	background: var(--bebche-sidebar-border);
}

.bebche-app-btn-danger {
	color: #fff;
	background: #b91c1c;
}

.bebche-app-btn-danger:hover {
	background: #991b1b;
}

/* -------------------------------------------------------------------------
   Active baby bar (mobile-first, top of content)
   ------------------------------------------------------------------------- */
.bebche-app-active-baby-bar {
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	padding: 1rem;
	margin-bottom: 0.5rem;
}

.bebche-app-active-baby-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
}

.bebche-app-active-baby-label {
	display: block;
	width: 100%;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--bebche-text-muted);
	margin-bottom: 0.25rem;
}

.bebche-app-active-baby-form .bebche-app-select {
	flex: 1;
	min-width: 0;
}

@media (min-width: 360px) {
	.bebche-app-active-baby-form {
		flex-wrap: nowrap;
	}
	.bebche-app-active-baby-label {
		width: auto;
		margin-bottom: 0;
	}
}

/* -------------------------------------------------------------------------
   Login page
   ------------------------------------------------------------------------- */
.bebche-app-login-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 1rem;
}

.bebche-app-login-wrap {
	width: 100%;
	max-width: 22rem;
}

.bebche-app-login-card {
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius);
	box-shadow: var(--bebche-shadow-card);
	padding: 1.5rem;
	border: 1px solid var(--bebche-border);
}

.bebche-app-login-title {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--bebche-text);
}

.bebche-app-login-subtitle {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	color: var(--bebche-text-muted);
}

.bebche-app-login-error {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--bebche-radius-sm);
	color: #b91c1c;
	font-size: 0.875rem;
}

.bebche-app-login-links {
	margin-top: 1.5rem;
	text-align: center;
	font-size: 0.875rem;
}

.bebche-app-login-links a {
	color: var(--bebche-text-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.bebche-app-login-links a:hover {
	color: var(--bebche-text);
	text-decoration: underline;
}

.bebche-app-terms label {
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Landing page */
.bebche-app-landing-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 2rem 1rem;
}

.bebche-app-landing {
	width: 100%;
	max-width: 32rem;
}

.bebche-app-landing-content {
	text-align: center;
}

.bebche-app-landing-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.bebche-app-landing-logo .bebche-app-logo-img {
	height: 40px;
	max-height: 48px;
	max-width: 155px;
}

.bebche-app-landing-title {
	margin: 0 0 0.75rem;
	font-size: 2rem;
	font-weight: 600;
	color: var(--bebche-text);
	line-height: 1.2;
}

.bebche-app-landing-title-line {
	display: block;
}

.bebche-app-landing-title-line:first-child {
	margin-bottom: 0.15em;
}

.bebche-app-landing-subtitle {
	margin: 0 0 2rem;
	font-size: 1.125rem;
	color: var(--bebche-text-muted);
	line-height: 1.5;
}

.bebche-app-landing-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 3rem;
}

.bebche-app-landing-steps {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
	padding: 2rem 0;
	border-top: 1px solid var(--bebche-border);
	border-bottom: 1px solid var(--bebche-border);
}

.bebche-app-landing-step {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	text-align: left;
}

.bebche-app-landing-step-number {
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bebche-primary);
	color: #fff;
	border-radius: 50%;
	font-weight: 600;
	font-size: 1rem;
}

.bebche-app-landing-step-text {
	font-size: 1rem;
	color: var(--bebche-text);
	line-height: 1.5;
	padding-top: 0.25rem;
}

.bebche-app-landing-trust {
	margin: 0;
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
	line-height: 1.6;
}

@media (min-width: 768px) {
	.bebche-app-landing-title {
		font-size: 2.5rem;
	}

	.bebche-app-landing-subtitle {
		font-size: 1.25rem;
	}

	.bebche-app-landing-actions {
		flex-direction: row;
		justify-content: center;
	}

	.bebche-app-landing-steps {
		flex-direction: row;
		justify-content: space-around;
		gap: 2rem;
	}

	.bebche-app-landing-step {
		flex-direction: column;
		text-align: center;
		flex: 1;
	}
}

.bebche-app-standalone {
	margin: 0;
	padding: 0;
}

/* -------------------------------------------------------------------------
   Home: card grid (Твоето табло)
   ------------------------------------------------------------------------- */
.bebche-tip-container {
	margin-bottom: 0.875rem;
}

.bebche-tip-card {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	position: relative;
	padding: 0.625rem 2rem 0.625rem 0.75rem;
	background: color-mix(in srgb, var(--bebche-accent) 3%, #fff);
	border-left: 3px solid color-mix(in srgb, var(--bebche-accent) 25%, transparent);
	border-radius: var(--bebche-radius-sm);
}

.bebche-tip-card__content {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	flex: 1;
	min-width: 0;
}

.bebche-tip-card__content::before {
	content: '';
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	background: currentColor;
	opacity: 0.45;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z'/%3E%3C/svg%3E") no-repeat center;
	mask-size: contain;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z'/%3E%3C/svg%3E") no-repeat center;
	-webkit-mask-size: contain;
}

.bebche-tip-card__body {
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--bebche-text-muted);
	flex: 1;
	min-width: 0;
}

.bebche-tip-card__body p {
	margin: 0 0 0.25rem;
}

.bebche-tip-card__body p:last-child {
	margin-bottom: 0;
}

.bebche-tip-card__close {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--bebche-text-muted);
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.55;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bebche-tip-card__close:hover {
	opacity: 0.85;
}

.bebche-app-card-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.bebche-app-card-grid .bebche-app-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5rem;
	font-weight: 500;
	text-align: center;
	position: relative;
}

/* Shared card icon + content (reused from dashboard card pattern) */
.bebche-app-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-bottom: 0.5rem;
	opacity: 0.65;
	color: var(--bebche-accent);
}

.bebche-app-card-icon .bebche-app-icon {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

.bebche-app-card-content {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

/* Dashboard cards with icon + soft accent */
.bebche-app-card-grid .bebche-dashboard-card--diary,
.bebche-app-card-grid .bebche-dashboard-card--checkups,
.bebche-app-card-grid .bebche-dashboard-card--feeding,
.bebche-app-card-grid .bebche-dashboard-card--sleep,
.bebche-app-card-grid .bebche-dashboard-card--babies {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	justify-content: flex-start;
	padding: 1rem;
	min-height: 5rem;
}

.bebche-dashboard-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-bottom: 0.5rem;
	opacity: 0.65;
	color: var(--bebche-accent);
}

.bebche-dashboard-card-icon-svg {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

.bebche-dashboard-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.bebche-dashboard-card-title {
	display: block;
	font-weight: 500;
	font-size: 1rem;
	color: var(--bebche-text);
}

.bebche-dashboard-card-subtitle {
	display: block;
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	font-weight: 400;
}

/* Soft accent per card – very low opacity */
.bebche-dashboard-card--diary {
	background: linear-gradient(135deg, rgba(245, 242, 235, 0.6) 0%, transparent 60%);
}

.bebche-dashboard-card--checkups {
	background: linear-gradient(135deg, rgba(230, 242, 255, 0.5) 0%, transparent 60%);
}

.bebche-dashboard-card--feeding {
	background: linear-gradient(135deg, rgba(232, 245, 233, 0.5) 0%, transparent 60%);
}

.bebche-dashboard-card--babies {
	background: linear-gradient(135deg, rgba(255, 240, 235, 0.55) 0%, transparent 60%);
}

.bebche-dashboard-card--sleep {
	background: linear-gradient(135deg, rgba(230, 230, 250, 0.5) 0%, transparent 60%);
}

.bebche-dashboard-card--sleep .bebche-dashboard-card-icon {
	color: var(--bebche-accent);
}

.bebche-app-card-checkups {
	position: relative;
}

.bebche-app-card-feeding {
	flex-direction: column;
	gap: 0.25rem;
}

.bebche-app-card-feeding-title {
	display: block;
	font-weight: 500;
	font-size: 1rem;
	color: var(--bebche-text);
}

.bebche-app-card-feeding-subtitle {
	display: block;
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	font-weight: 400;
}

.bebche-app-card-sleep {
	flex-direction: column;
	gap: 0.25rem;
}

.bebche-app-card-sleep-title {
	display: block;
	font-weight: 500;
	font-size: 1rem;
	color: var(--bebche-text);
}

.bebche-app-card-sleep-subtitle {
	display: block;
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	font-weight: 400;
}

/* Sleep card: title/subtitle inside .bebche-app-card-content (mirror feeding) */
.bebche-app-card-sleep .bebche-app-card-content .bebche-app-card-title {
	display: block;
	font-weight: 500;
	font-size: 1rem;
	color: var(--bebche-text);
}

.bebche-app-card-sleep .bebche-app-card-content .bebche-app-card-subtitle {
	display: block;
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	font-weight: 400;
}

.bebche-dashboard-badge {
	position: absolute;
	top: 10px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	min-height: 18px;
	padding: 0 6px;
	background: #E53935;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	border-radius: 999px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

/* -------------------------------------------------------------------------
   Diary: card list
   ------------------------------------------------------------------------- */
.bebche-app-diary-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bebche-app-diary-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
}

.bebche-app-diary-title {
	font-weight: 600;
	font-size: 1.0625rem;
}

.bebche-app-diary-date {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
}

.bebche-app-diary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.bebche-app-diary-gate {
	padding: 1rem 0;
}

/* -------------------------------------------------------------------------
   Babies: cards with photo, name, age, actions
   ------------------------------------------------------------------------- */
.bebche-app-babies-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bebche-app-baby-card {
	display: flex;
	gap: 1rem;
	padding: 1rem;
}

.bebche-app-baby-card-photo {
	width: 4rem;
	height: 4rem;
	border-radius: var(--bebche-radius-sm);
	overflow: hidden;
	background: var(--bebche-border);
	flex-shrink: 0;
}

.bebche-app-baby-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bebche-app-baby-card-body {
	flex: 1;
	min-width: 0;
}

.bebche-app-baby-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.bebche-app-baby-card-name {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--bebche-text);
	flex: 1;
}

.bebche-app-baby-card-menu {
	position: relative;
	flex-shrink: 0;
}

.bebche-app-baby-card-menu .bebche-app-menu-dots {
	background: none;
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--bebche-text-muted);
	opacity: 0.7;
	transition: opacity 0.2s;
	min-height: var(--tap-min);
	min-width: var(--tap-min);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bebche-app-baby-card-menu .bebche-app-menu-dots:hover,
.bebche-app-baby-card-menu .bebche-app-menu-dots:focus {
	opacity: 1;
	outline: none;
}

.bebche-app-baby-card-menu .bebche-app-menu-dots-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bebche-surface);
	border: 1px solid var(--bebche-border);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0;
	min-width: 180px;
	z-index: 10;
	display: none;
	margin-top: 0.25rem;
}

.bebche-app-baby-card-menu .bebche-app-menu-dots:focus + .bebche-app-menu-dots-dropdown,
.bebche-app-baby-card-menu .bebche-app-menu-dots-dropdown:hover {
	display: block;
}

.bebche-app-baby-card-menu .bebche-app-menu-dots-item {
	display: block;
	padding: 0.625rem 1rem;
	color: var(--bebche-text);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: background 0.2s;
}

.bebche-app-baby-card-menu .bebche-app-menu-dots-item:hover {
	background: var(--bebche-bg);
}

.bebche-app-baby-card-menu .bebche-app-menu-dots-item--danger {
	color: #b91c1c;
}

.bebche-app-baby-card-menu .bebche-app-menu-dots-item--danger:hover {
	background: #fef2f2;
}

.bebche-app-baby-card-meta {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
}

.bebche-app-baby-card-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.bebche-app-baby-fact-chip {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	background: var(--bebche-bg);
	border: 1px solid var(--bebche-border);
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--bebche-text);
	line-height: 1.4;
	white-space: nowrap;
}

.bebche-app-form-card,
.bebche-app-delete-card {
	margin-bottom: 1rem;
}

/* Checkups */
.bebche-app-checkups-gate {
	text-align: center;
	padding: 2rem 1rem;
}

.bebche-app-checkups-actions {
	margin-bottom: 1.5rem;
}

.bebche-app-checkups-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bebche-app-checkup-card {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bebche-app-checkup-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.bebche-app-checkup-card-date {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--bebche-text);
}

.bebche-app-checkup-card-baby {
	font-size: 0.9375rem;
	color: var(--bebche-text);
}

.bebche-app-checkup-card-doctor {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
}

.bebche-app-checkup-card-action {
	margin-top: 0.5rem;
}

.bebche-app-checkup-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.bebche-app-checkup-delete-btn {
	min-height: 32px;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 999px;
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
	width: auto;
}

.bebche-app-checkup-delete-btn:hover {
	background: #fecaca;
}

.bebche-app-checkup-delete-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bebche-app-checkup-view .bebche-app-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.bebche-app-checkup-view-menu {
	position: relative;
	flex-shrink: 0;
}

.bebche-app-menu-dots {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--bebche-text);
	opacity: 0.7;
	transition: opacity 0.2s;
}

.bebche-app-menu-dots:hover,
.bebche-app-menu-dots:focus {
	opacity: 1;
}

.bebche-app-menu-dots-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bebche-surface);
	border: 1px solid var(--bebche-border);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0;
	min-width: 150px;
	z-index: 10;
	display: none;
	margin-top: 0.25rem;
}

.bebche-app-menu-dots-item {
	display: block;
	padding: 0.625rem 1rem;
	color: var(--bebche-text);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: background 0.2s;
}

.bebche-app-menu-dots-item:hover {
	background: var(--bebche-bg);
}

.bebche-app-checkup-detail {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bebche-app-checkup-detail-field {
	font-size: 0.9375rem;
	line-height: 1.6;
}

.bebche-app-checkup-detail-field strong {
	display: inline-block;
	min-width: 80px;
	color: var(--bebche-text);
}

.bebche-app-checkup-detail-note {
	margin-top: 0.5rem;
	color: var(--bebche-text);
}

.bebche-app-checkup-detail-note p {
	margin: 0.5rem 0;
}

.bebche-app-checkup-form {
	padding-bottom: 2rem;
}

/* Checkup attachments (documents / photos) */
.bebche-app-checkup-attachments-wrap {
	margin-top: 1rem;
}

.bebche-app-checkup-attachments-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--bebche-text);
	margin: 0 0 0.75rem;
}

.bebche-app-input-file-hidden {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.bebche-app-attachments-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-top: 0.75rem;
}

@media (min-width: 480px) {
	.bebche-app-attachments-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.bebche-app-attachment-thumbnail-wrap {
	position: relative;
	border-radius: 8px;
	border: 1px solid var(--bebche-border);
	overflow: hidden;
	background: var(--bebche-bg-subtle, #f5f5f5);
}

.bebche-app-attachment-thumbnail {
	display: block;
	aspect-ratio: 1;
}

.bebche-app-attachment-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bebche-app-attachments-grid--view .bebche-app-attachment-thumbnail-wrap {
	position: relative;
}

.bebche-app-attachments-grid--view .bebche-app-attachment-thumbnail-wrap .bebche-app-attachment-menu-wrap {
	display: none;
}

.bebche-app-attachment-menu-wrap {
	position: absolute;
	top: 4px;
	right: 4px;
}

.bebche-app-attachment-menu-dots {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bebche-app-attachment-menu-dots:hover {
	background: rgba(0, 0, 0, 0.7);
}

.bebche-app-attachment-menu-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 2px;
	background: var(--bebche-bg, #fff);
	border: 1px solid var(--bebche-border);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: none;
	z-index: 10;
	min-width: 10rem;
}

.bebche-app-attachment-menu-dropdown.is-open {
	display: block;
}

.bebche-app-attachment-menu-item {
	display: block;
	width: 100%;
	padding: 0.5rem 0.75rem;
	text-align: left;
	border: none;
	background: none;
	font-size: 0.875rem;
	color: var(--bebche-text);
	cursor: pointer;
}

.bebche-app-attachment-menu-item:hover {
	background: var(--bebche-bg-subtle, #f0f0f0);
}

.bebche-app-checkup-delete {
	padding: 1.5rem;
	text-align: center;
}

/* Summary Card */
.bebche-app-checkup-summary {
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.bebche-app-checkup-summary-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--bebche-text);
	margin: 0 0 0.5rem;
}

.bebche-app-checkup-summary-subtitle {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
	margin: 0 0 1rem;
}

.bebche-app-checkup-summary-section-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bebche-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 1.25rem;
	margin-bottom: 0.75rem;
}

.bebche-app-checkup-summary-section-title:first-of-type {
	margin-top: 1rem;
}

.bebche-app-checkup-summary-measurements {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 1rem;
}

.bebche-app-checkup-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	font-size: 0.9375rem;
	line-height: 1.5;
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--bebche-border);
}

.bebche-app-checkup-summary-item:last-child {
	border-bottom: none;
}

.bebche-app-checkup-summary-label {
	font-weight: 500;
	color: var(--bebche-text);
	flex-shrink: 0;
}

.bebche-app-checkup-summary-value {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	color: var(--bebche-text);
	font-weight: 500;
}

.bebche-app-checkup-summary-delta {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--bebche-text-muted);
	margin-top: 0.25rem;
}

.bebche-app-checkup-summary-insights {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bebche-border);
}

.bebche-app-checkup-summary-insights p {
	margin: 0.5rem 0;
	font-size: 0.9375rem;
	color: var(--bebche-text);
	line-height: 1.6;
}

.bebche-analysis {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bebche-border);
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.bebche-analysis-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	background: var(--bebche-surface);
	border: 1px solid var(--bebche-border);
	border-radius: 14px;
	box-shadow: var(--bebche-shadow);
}

.bebche-analysis-item.is-up {
	border-color: rgba(34, 197, 94, 0.2);
	background: rgba(34, 197, 94, 0.04);
}

.bebche-analysis-item.is-down {
	border-color: rgba(239, 68, 68, 0.2);
	background: rgba(239, 68, 68, 0.04);
}

.bebche-analysis-item.is-flat {
	border-color: var(--bebche-border);
	background: rgba(0, 0, 0, 0.02);
}

.bebche-analysis-badge {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 1rem;
	line-height: 1;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.05);
	color: var(--bebche-text-muted);
}

.bebche-analysis-item.is-up .bebche-analysis-badge {
	background: rgba(34, 197, 94, 0.15);
	color: #22c55e;
}

.bebche-analysis-item.is-down .bebche-analysis-badge {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

.bebche-analysis-item.is-flat .bebche-analysis-badge {
	background: rgba(0, 0, 0, 0.05);
	color: var(--bebche-text-muted);
}

.bebche-analysis-meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.bebche-analysis-title {
	font-weight: 500;
	font-size: 0.9375rem;
	color: var(--bebche-text);
	line-height: 1.4;
}

.bebche-analysis-sub {
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
	line-height: 1.3;
}

.bebche-analysis-delta {
	flex-shrink: 0;
	font-weight: 600;
	font-size: 1rem;
	color: var(--bebche-text);
	text-align: right;
	white-space: nowrap;
}

.bebche-analysis-item.is-up .bebche-analysis-delta {
	color: #22c55e;
}

.bebche-analysis-item.is-down .bebche-analysis-delta {
	color: #ef4444;
}

.bebche-analysis-item.is-flat .bebche-analysis-delta {
	color: var(--bebche-text-muted);
}

@media (max-width: 480px) {
	.bebche-analysis {
		gap: 0.5rem;
	}

	.bebche-analysis-item {
		padding: 0.75rem 0.875rem;
		gap: 0.625rem;
	}

	.bebche-analysis-badge {
		width: 26px;
		height: 26px;
		font-size: 0.9375rem;
	}

	.bebche-analysis-title {
		font-size: 0.875rem;
	}

	.bebche-analysis-sub {
		font-size: 0.6875rem;
	}

	.bebche-analysis-delta {
		font-size: 0.9375rem;
	}
}

/* -------------------------------------------------------------------------
   Feeding module (UI polish v1: clean mobile app feel, scoped)
   ------------------------------------------------------------------------- */
#bebche-feeding-page .bebche-app-page-content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

#bebche-feeding-page .bebche-app-feeding-date-filter {
	margin-bottom: 0;
}

#bebche-feeding-page .bebche-app-feeding-date-filter input {
	width: 100%;
	max-width: 300px;
	min-height: 44px;
	padding: 0.625rem 0.75rem;
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	background: var(--bebche-surface);
	font-size: 1rem;
}

#bebche-feeding-page #bebche-feeding-date-input:focus {
	border-color: var(--bebche-accent) !important;
	box-shadow: 0 0 0 3px var(--bebche-accent-soft);
	outline: none;
}

#bebche-feeding-page .bebche-app-feeding-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 0;
}

#bebche-feeding-page .bebche-app-feeding-actions .bebche-app-btn {
	font-size: 14px;
	padding: 10px 12px;
	min-height: 42px;
	border-radius: 12px;
	line-height: 1.1;
	font-weight: 500;
}

#bebche-feeding-page .bebche-app-feeding-actions .bebche-app-btn:first-child,
#bebche-feeding-page .bebche-app-feeding-actions .bebche-app-btn:nth-child(2) {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 480px) {
	#bebche-feeding-page .bebche-app-feeding-actions {
		flex-direction: column;
	}
	#bebche-feeding-page .bebche-app-feeding-actions .bebche-app-btn {
		width: 100%;
	}
}

#bebche-feeding-page .bebche-app-feeding-stats,
#bebche-feeding-page .bebche-app-feeding-list,
#bebche-feeding-page .bebche-app-feeding-last {
	margin-bottom: 0;
}

/* Daily summary: compact strip, not heavy card */
#bebche-feeding-page .bebche-app-feeding-stats-card {
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 0.875rem 1rem;
	margin-bottom: 0;
}

#bebche-feeding-page .bebche-app-feeding-stats-card .bebche-app-card-title {
	font-size: 0.9375rem;
	font-weight: 500;
	margin: 0 0 0.375rem;
	color: var(--bebche-text);
}

#bebche-feeding-page .bebche-app-feeding-stats-duration {
	font-size: 1rem;
	font-weight: 600;
	color: var(--bebche-text);
	margin: 0 0 0.5rem;
}

#bebche-feeding-page .bebche-app-feeding-stats-breakdown {
	display: flex;
	gap: 1rem;
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	margin-top: 0;
}

/* Last feeding: pill/status bar */
#bebche-feeding-page .bebche-app-feeding-last .bebche-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.08);
	border: 1px solid rgba(34, 197, 94, 0.2);
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--bebche-text);
	box-shadow: none;
}

#bebche-feeding-page .bebche-app-feeding-last .bebche-chip__icon {
	flex-shrink: 0;
	font-size: 0.9375rem;
}

#bebche-feeding-page .bebche-app-feeding-last .bebche-chip__text {
	min-width: 0;
}

#bebche-feeding-page .bebche-app-feeding-last-empty {
	text-align: center;
	padding: 0.75rem 1rem;
	color: var(--bebche-text-muted);
	font-size: 0.875rem;
}

/* Feedings list: app list items with dividers */
#bebche-feeding-page .bebche-app-feeding-list-items {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#bebche-feeding-page .bebche-app-feeding-item {
	background: var(--bebche-surface);
	padding: 0.875rem 1rem;
	border: none;
	border-bottom: 1px solid var(--bebche-border);
	border-radius: 0;
	box-shadow: none;
	transition: background 0.15s ease;
}

#bebche-feeding-page .bebche-app-feeding-item:last-child {
	border-bottom: none;
}

#bebche-feeding-page .bebche-app-feeding-item:active {
	background: var(--bebche-bg);
}

#bebche-feeding-page .bebche-app-feeding-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.375rem;
	gap: 0.5rem;
}

#bebche-feeding-page .bebche-app-feeding-item-main {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
	min-width: 0;
}

#bebche-feeding-page .bebche-app-feeding-item-time {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--bebche-text);
}

#bebche-feeding-page .bebche-app-feeding-item-type {
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
	padding: 0.2rem 0.5rem;
	background: var(--bebche-bg);
	border-radius: 999px;
	display: inline-block;
	width: fit-content;
}

#bebche-feeding-page .bebche-app-feeding-item-menu {
	position: relative;
	flex-shrink: 0;
}

#bebche-feeding-page .bebche-app-feeding-menu-dots {
	background: none;
	border: none;
	font-size: 1.125rem;
	line-height: 1;
	padding: 0.375rem;
	cursor: pointer;
	color: var(--bebche-text-muted);
	opacity: 0.8;
	transition: opacity 0.2s, background 0.2s;
	min-height: 36px;
	min-width: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

#bebche-feeding-page .bebche-app-feeding-menu-dots:hover,
#bebche-feeding-page .bebche-app-feeding-menu-dots:focus {
	opacity: 1;
	background: var(--bebche-bg);
	outline: none;
}

#bebche-feeding-page .bebche-app-feeding-menu-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bebche-surface);
	border: 1px solid var(--bebche-border);
	border-radius: var(--bebche-radius-sm);
	box-shadow: var(--bebche-shadow-card);
	padding: 0.5rem 0;
	min-width: 150px;
	z-index: 10;
	display: none;
	margin-top: 0.25rem;
}

#bebche-feeding-page .bebche-app-feeding-menu-item {
	display: block;
	width: 100%;
	padding: 0.625rem 1rem;
	color: var(--bebche-text);
	text-decoration: none;
	font-size: 0.9375rem;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
}

#bebche-feeding-page .bebche-app-feeding-menu-item:hover {
	background: var(--bebche-bg);
}

#bebche-feeding-page .bebche-app-feeding-menu-item--danger {
	color: #b91c1c;
}

#bebche-feeding-page .bebche-app-feeding-menu-item--danger:hover {
	background: #fef2f2;
}

#bebche-feeding-page .bebche-app-feeding-item-duration {
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	margin: 0 0 0.25rem;
}

#bebche-feeding-page .bebche-app-feeding-item-note {
	font-size: 0.8125rem;
	color: var(--bebche-text);
	margin: 0.25rem 0 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--bebche-border);
}

#bebche-feeding-page .bebche-app-feeding-empty {
	text-align: center;
	padding: 1.5rem 1rem;
	color: var(--bebche-text-muted);
	font-size: 0.9375rem;
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
}

/* -------------------------------------------------------------------------
   Sleep module (mirrors Feeding UI, scoped)
   ------------------------------------------------------------------------- */
#bebche-sleep-page .bebche-app-page-content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

#bebche-sleep-page .bebche-app-sleep-date-filter {
	margin-bottom: 0;
}

#bebche-sleep-page .bebche-app-sleep-date-filter input {
	width: 100%;
	max-width: 300px;
	min-height: 44px;
	padding: 0.625rem 0.75rem;
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	background: var(--bebche-surface);
	font-size: 1rem;
}

#bebche-sleep-page #bebche-sleep-date-input:focus {
	border-color: var(--bebche-accent) !important;
	box-shadow: 0 0 0 3px var(--bebche-accent-soft);
	outline: none;
}

#bebche-sleep-page .bebche-app-sleep-actions {
	margin-bottom: 0;
}

#bebche-sleep-page .bebche-app-sleep-actions .bebche-app-btn {
	min-height: 44px;
	padding: 0.625rem 1.25rem;
	border-radius: var(--bebche-radius-sm);
	font-size: 0.9375rem;
	font-weight: 500;
}

#bebche-sleep-page .bebche-app-sleep-stats,
#bebche-sleep-page .bebche-app-sleep-list,
#bebche-sleep-page .bebche-app-sleep-last {
	margin-bottom: 0;
}

/* Daily summary: compact strip, not heavy card */
#bebche-sleep-page .bebche-app-sleep-stats-card {
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 0.875rem 1rem;
	margin-bottom: 0;
}

#bebche-sleep-page .bebche-app-sleep-stats-card .bebche-app-card-title {
	font-size: 0.9375rem;
	font-weight: 500;
	margin: 0 0 0.375rem;
	color: var(--bebche-text);
}

#bebche-sleep-page .bebche-app-sleep-stats-duration {
	font-size: 1rem;
	font-weight: 600;
	color: var(--bebche-text);
	margin: 0 0 0.5rem;
}

#bebche-sleep-page .bebche-app-sleep-stats-breakdown {
	display: flex;
	gap: 1rem;
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	margin-top: 0;
}

/* Last sleep: pill/status bar */
#bebche-sleep-page .bebche-app-sleep-last .bebche-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.08);
	border: 1px solid rgba(34, 197, 94, 0.2);
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--bebche-text);
	box-shadow: none;
}

#bebche-sleep-page .bebche-app-sleep-last .bebche-chip__icon {
	flex-shrink: 0;
	font-size: 0.9375rem;
}

#bebche-sleep-page .bebche-app-sleep-last .bebche-chip__text {
	min-width: 0;
}

#bebche-sleep-page .bebche-app-sleep-last-empty {
	text-align: center;
	padding: 0.75rem 1rem;
	color: var(--bebche-text-muted);
	font-size: 0.875rem;
}

#bebche-sleep-running-bar-root .bebche-sleep-running-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	padding: 12px 14px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
}

#bebche-sleep-running-bar-root .bebche-sleep-running-bar__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

#bebche-sleep-running-bar-root .bebche-sleep-running-bar__text {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.75);
}

#bebche-sleep-running-bar-root .bebche-sleep-running-bar__time {
	font-weight: 700;
	color: rgba(0, 0, 0, 0.9);
}

/* Feeding running bar (mirrors sleep) */
#bebche-feeding-running-bar-root .bebche-feeding-running-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	padding: 12px 14px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
}

#bebche-feeding-running-bar-root .bebche-feeding-running-bar__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

#bebche-feeding-running-bar-root .bebche-feeding-running-bar__text {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.75);
}

#bebche-feeding-running-bar-root .bebche-feeding-running-bar__time {
	font-weight: 700;
	color: rgba(0, 0, 0, 0.9);
}

/* Sleep list: app list items with dividers */
#bebche-sleep-page .bebche-app-sleep-list-items {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#bebche-sleep-page .bebche-app-sleep-item {
	background: var(--bebche-surface);
	padding: 0.875rem 1rem;
	border: none;
	border-bottom: 1px solid var(--bebche-border);
	border-radius: 0;
	box-shadow: none;
	transition: background 0.15s ease;
}

#bebche-sleep-page .bebche-app-sleep-item:last-child {
	border-bottom: none;
}

#bebche-sleep-page .bebche-app-sleep-item:active {
	background: var(--bebche-bg);
}

#bebche-sleep-page .bebche-app-sleep-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.375rem;
	gap: 0.5rem;
}

#bebche-sleep-page .bebche-app-sleep-item-main {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
	min-width: 0;
}

#bebche-sleep-page .bebche-app-sleep-item-time {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--bebche-text);
}

#bebche-sleep-page .bebche-app-sleep-item-time-meta {
	font-weight: 400;
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
}

#bebche-sleep-page .bebche-app-sleep-item-type {
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
	padding: 0.2rem 0.5rem;
	background: var(--bebche-bg);
	border-radius: 999px;
	display: inline-block;
	width: fit-content;
}

#bebche-sleep-page .bebche-app-sleep-item-menu {
	position: relative;
	flex-shrink: 0;
}

#bebche-sleep-page .bebche-app-sleep-menu-dots {
	background: none;
	border: none;
	font-size: 1.125rem;
	line-height: 1;
	padding: 0.375rem;
	cursor: pointer;
	color: var(--bebche-text-muted);
	opacity: 0.8;
	transition: opacity 0.2s, background 0.2s;
	min-height: 36px;
	min-width: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

#bebche-sleep-page .bebche-app-sleep-menu-dots:hover,
#bebche-sleep-page .bebche-app-sleep-menu-dots:focus {
	opacity: 1;
	background: var(--bebche-bg);
	outline: none;
}

#bebche-sleep-page .bebche-app-sleep-menu-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bebche-surface);
	border: 1px solid var(--bebche-border);
	border-radius: var(--bebche-radius-sm);
	box-shadow: var(--bebche-shadow-card);
	padding: 0.5rem 0;
	min-width: 150px;
	z-index: 10;
	display: none;
	margin-top: 0.25rem;
}

#bebche-sleep-page .bebche-app-sleep-menu-item {
	display: block;
	width: 100%;
	padding: 0.625rem 1rem;
	color: var(--bebche-text);
	text-decoration: none;
	font-size: 0.9375rem;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
}

#bebche-sleep-page .bebche-app-sleep-menu-item:hover {
	background: var(--bebche-bg);
}

#bebche-sleep-page .bebche-app-sleep-menu-item--danger {
	color: #b91c1c;
}

#bebche-sleep-page .bebche-app-sleep-menu-item--danger:hover {
	background: #fef2f2;
}

#bebche-sleep-page .bebche-app-sleep-item-duration {
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	margin: 0 0 0.25rem;
}

#bebche-sleep-page .bebche-app-sleep-item-note {
	font-size: 0.8125rem;
	color: var(--bebche-text);
	margin: 0.25rem 0 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--bebche-border);
}

#bebche-sleep-page .bebche-app-sleep-empty {
	text-align: center;
	padding: 1.5rem 1rem;
	color: var(--bebche-text-muted);
	font-size: 0.9375rem;
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
}

/* Global chip (used by last-feeding only on this page; keep for any other usage) */
.bebche-chip {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 10px 12px;
	border-radius: 14px;
	background: #f6f7f8;
	border: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--bebche-text);
}

.bebche-chip__icon {
	flex-shrink: 0;
	font-size: 1rem;
	line-height: 1;
}

.bebche-chip__text {
	min-width: 0;
}

.bebche-chip--neutral {
	background: color-mix(in srgb, var(--bebche-accent) 8%, transparent);
	border-color: color-mix(in srgb, var(--bebche-accent) 30%, transparent);
}

/* Unified form UI – forms with .bebche-ui-form only (no side effects on other .bebche-app-card) */
.bebche-ui-form-card,
.bebche-ui-form.bebche-app-card {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

.bebche-ui-form .bebche-app-field {
	margin-bottom: 12px;
}

.bebche-ui-form .bebche-app-field:last-child {
	margin-bottom: 0;
}

.bebche-ui-form label {
	font-size: 13px;
	font-weight: 600;
	opacity: 0.75;
	margin-bottom: 6px;
	display: block;
}

.bebche-ui-form .bebche-app-measurement-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	background: var(--bebche-input-bg);
	border: 1px solid var(--bebche-input-border);
	border-radius: 12px;
	padding: 0 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.bebche-ui-form .bebche-app-measurement-wrap:focus-within {
	border-color: var(--bebche-accent) !important;
	box-shadow: var(--bebche-focus-ring);
}

.bebche-ui-form .bebche-app-measurement-wrap .bebche-app-input,
.bebche-ui-form .bebche-app-measurement-wrap .bebche-app-select {
	flex: 1;
	min-width: 0;
	height: 44px;
	border: none;
	background: transparent;
	padding: 0;
	font-size: 1rem;
	color: var(--bebche-text);
	outline: none;
}

.bebche-ui-form .bebche-app-input,
.bebche-ui-form .bebche-app-select {
	height: 44px;
	border-radius: 12px;
	background: var(--bebche-input-bg);
	border: 1px solid var(--bebche-input-border);
	padding: 0 12px;
	width: 100%;
	font-size: 1rem;
	color: var(--bebche-text);
	outline: none;
}

.bebche-ui-form .bebche-app-input:focus,
.bebche-ui-form .bebche-app-select:focus,
.bebche-ui-form textarea.bebche-app-input:focus {
	border-color: var(--bebche-accent) !important;
	box-shadow: 0 0 0 3px var(--bebche-accent-soft);
	outline: none;
}

.bebche-ui-form textarea.bebche-app-input {
	min-height: 96px;
	padding: 10px 12px;
	resize: vertical;
}

.bebche-ui-form .bebche-app-measurement-wrap textarea.bebche-app-input {
	min-height: 96px;
	padding: 10px 12px;
}

.bebche-ui-form .bebche-app-measurement-icon {
	width: 24px;
	flex: 0 0 24px;
	text-align: center;
	opacity: 0.9;
	font-size: 1rem;
}

.bebche-ui-form .bebche-app-measurement-unit {
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 12px;
	color: var(--bebche-text-muted);
	background: rgba(0, 0, 0, 0.06);
}

.bebche-ui-form input[type="date"],
.bebche-ui-form input[type="time"] {
	padding-right: 40px;
}

.bebche-ui-form select {
	padding-right: 40px;
	appearance: auto;
	cursor: pointer;
}

.bebche-ui-form .bebche-app-measurements-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 420px) {
	.bebche-ui-form .bebche-app-measurements-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.bebche-ui-form .bebche-app-measurement-hint {
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.bebche-ui-form .bebche-app-measurement-hint + .bebche-app-field {
	margin-top: 0;
}

.bebche-ui-form .bebche-app-feeding-textarea-wrap {
	align-items: flex-start;
	min-height: auto;
}

.bebche-ui-form .bebche-app-feeding-textarea-wrap .bebche-app-measurement-icon {
	align-self: flex-start;
	padding-top: 0.75rem;
}

.bebche-app-checkup-summary-empty {
	font-size: 0.9375rem;
	color: var(--bebche-text-muted);
	margin: 1rem 0;
	text-align: center;
}

.bebche-app-checkup-summary-badge {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--bebche-bg);
	border: 1px solid var(--bebche-border);
	border-radius: 999px;
	font-size: 0.875rem;
	color: var(--bebche-text);
	margin: 1rem 0;
}

/* Awaiting Card */
.bebche-app-checkup-card--awaiting {
	border-left: 3px solid var(--bebche-primary);
}

.bebche-app-checkup-measurements-form {
	padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

/* Checkup form UI v1.1 + v1.2: app-like inputs, tighter spacing */
.bebche-app-checkup-measurements-form .bebche-app-page-header {
	margin-bottom: 0.5rem;
}

.bebche-app-checkup-measurements-form .bebche-app-form {
	padding-top: 0.25rem;
}

.bebche-app-checkup-measurements-form .bebche-app-field {
	margin-bottom: 0;
}

.bebche-app-checkup-measurements-form .bebche-app-field label {
	margin-bottom: 4px;
}

.bebche-app-checkup-measurements-form .bebche-app-measurements-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-bottom: 0.375rem;
}

@media (min-width: 420px) {
	.bebche-app-checkup-measurements-form .bebche-app-measurements-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-wrap {
	display: flex;
	align-items: center;
	min-height: 44px;
	background: var(--bebche-input-bg);
	border: 1px solid var(--bebche-input-border);
	border-radius: var(--bebche-radius);
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-wrap:focus-within {
	border-color: var(--bebche-accent) !important;
	box-shadow: var(--bebche-focus-ring);
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-icon {
	flex-shrink: 0;
	width: 40px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	line-height: 1;
	color: var(--bebche-text-muted);
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 8px 10px;
	padding-left: 6px;
	padding-right: 8px;
	border: none;
	background: transparent;
	font-size: 1rem;
	color: var(--bebche-text);
	outline: none;
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-input::placeholder {
	color: var(--bebche-text-muted);
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-unit {
	flex-shrink: 0;
	padding: 0.2rem 0.4rem;
	margin-right: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--bebche-text-muted);
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-hint {
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-hint + .bebche-app-field {
	margin-top: 0;
}

.bebche-app-checkup-measurements-form .bebche-app-measurement-textarea {
	min-height: 90px;
	border-radius: var(--bebche-radius);
	border: 1px solid var(--bebche-input-border);
	background: var(--bebche-input-bg);
	padding: 0.625rem 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
	resize: vertical;
	margin-top: 0;
}

.bebche-app-diary-form .bebche-app-page-header {
	margin-bottom: 0.5rem;
}

.bebche-app-diary-form .bebche-app-form-actions {
	margin-top: 1rem;
}

/* Sticky bottom action bar – fixed, full-width, all forms (Diary, Feeding, Checkups) */
.bebche-app-main .bebche-sticky-actions {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 999;
	background: var(--bebche-surface, #fff);
	border-top: 1px solid var(--bebche-border);
	padding: 12px 14px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
	border-radius: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: space-between;
}

/* Unify button/link box model so primary and secondary align vertically */
.bebche-app-main .bebche-sticky-actions .bebche-app-btn {
	height: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0 16px;
	vertical-align: middle;
	position: relative;
	top: 0;
}

.bebche-app-main .bebche-sticky-actions .bebche-app-btn-primary {
	flex: 1;
}

.bebche-app-main .bebche-sticky-actions .bebche-app-btn-secondary {
	flex: 0 0 auto;
}

/* Reserve space so content is not hidden behind the fixed bar */
.bebche-app-main:has(.bebche-sticky-actions) {
	padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* Desktop add button */
.bebche-app-checkups-actions-desktop {
	display: none;
	margin-bottom: 1.5rem;
}

/* Floating Action Button (FAB) – solid accent */
.bebche-app-fab {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bebche-accent) !important;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 300;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(0, 114, 255, 0.35);
	z-index: 100;
	transition: transform 0.2s, box-shadow 0.2s;
	border: none;
	cursor: pointer;
}

.bebche-app-fab:hover,
.bebche-app-fab:focus {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 114, 255, 0.35);
	background: var(--bebche-accent) !important;
	color: #fff;
	text-decoration: none;
}

.bebche-app-fab:active {
	transform: translateY(0);
}

/* Ensure content doesn't get covered by FAB */
.bebche-app-checkups .bebche-app-page-content {
	padding-bottom: 5rem;
}

@media (min-width: 901px) {
	.bebche-app-checkups-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 1.25rem;
	}

	.bebche-app-checkup-card {
		padding: 1.5rem;
	}

	.bebche-app-checkup-summary {
		padding: 2rem;
	}

	.bebche-app-checkups-actions-desktop {
		display: block;
	}

	.bebche-app-fab {
		display: none;
	}

	.bebche-app-checkups .bebche-app-page-content {
		padding-bottom: 0;
	}
}

/* -------------------------------------------------------------------------
   Checkups UI polish v1 (match Feeding: clean app feel, list-item, pills)
   Scoped to list page only.
   ------------------------------------------------------------------------- */
#bebche-checkups-page .bebche-app-page-content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

#bebche-checkups-page .bebche-app-checkups-actions-desktop {
	margin-bottom: 0;
}

#bebche-checkups-page .bebche-app-checkups-actions-desktop .bebche-app-btn {
	min-height: 44px;
	padding: 0.625rem 1.25rem;
	border-radius: var(--bebche-radius-sm);
	font-size: 0.9375rem;
	font-weight: 500;
}

/* Summary: compact block, not heavy report card */
#bebche-checkups-page .bebche-app-checkup-summary {
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 0.875rem 1rem;
	margin-bottom: 0;
}

#bebche-checkups-page .bebche-app-checkup-summary-title {
	font-size: 0.9375rem;
	font-weight: 500;
	margin: 0 0 0.25rem;
	color: var(--bebche-text);
}

#bebche-checkups-page .bebche-app-checkup-summary-subtitle {
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
	margin: 0 0 0.75rem;
}

#bebche-checkups-page .bebche-app-checkup-summary-section-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bebche-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

#bebche-checkups-page .bebche-app-checkup-summary-section-title:first-of-type {
	margin-top: 0.5rem;
}

#bebche-checkups-page .bebche-app-checkup-summary-measurements {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 0.75rem;
}

#bebche-checkups-page .bebche-app-checkup-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	font-size: 0.875rem;
	line-height: 1.45;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--bebche-border);
}

#bebche-checkups-page .bebche-app-checkup-summary-item:last-child {
	border-bottom: none;
}

#bebche-checkups-page .bebche-app-checkup-summary-label {
	font-weight: 400;
	color: var(--bebche-text-muted);
	font-size: 0.8125rem;
	flex-shrink: 0;
}

#bebche-checkups-page .bebche-app-checkup-summary-value {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	color: var(--bebche-text);
	font-weight: 600;
	font-size: 0.9375rem;
}

#bebche-checkups-page .bebche-app-checkup-summary-delta {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--bebche-text-muted);
	margin-top: 0.2rem;
	padding: 0.15rem 0.4rem;
	border-radius: 999px;
	background: var(--bebche-bg);
	display: inline-block;
}

#bebche-checkups-page .bebche-app-checkup-summary-note {
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
	margin-top: 0.2rem;
}

/* Analysis: lighter rows, pill badges */
#bebche-checkups-page .bebche-analysis {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--bebche-border);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

#bebche-checkups-page .bebche-analysis-item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 0.75rem;
	background: var(--bebche-bg);
	border: 1px solid var(--bebche-border);
	border-radius: var(--bebche-radius-sm);
	box-shadow: none;
}

#bebche-checkups-page .bebche-analysis-item.is-up {
	border-color: rgba(34, 197, 94, 0.25);
	background: rgba(34, 197, 94, 0.06);
}

#bebche-checkups-page .bebche-analysis-item.is-down {
	border-color: rgba(239, 68, 68, 0.25);
	background: rgba(239, 68, 68, 0.06);
}

#bebche-checkups-page .bebche-analysis-item.is-flat {
	border-color: var(--bebche-border);
	background: rgba(0, 0, 0, 0.02);
}

#bebche-checkups-page .bebche-analysis-badge {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: 0.875rem;
	line-height: 1;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.06);
	color: var(--bebche-text-muted);
}

#bebche-checkups-page .bebche-analysis-item.is-up .bebche-analysis-badge {
	background: rgba(34, 197, 94, 0.15);
	color: #22c55e;
}

#bebche-checkups-page .bebche-analysis-item.is-down .bebche-analysis-badge {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

#bebche-checkups-page .bebche-analysis-item.is-flat .bebche-analysis-badge {
	background: rgba(0, 0, 0, 0.06);
	color: var(--bebche-text-muted);
}

#bebche-checkups-page .bebche-analysis-title {
	font-size: 0.875rem;
	font-weight: 500;
}

#bebche-checkups-page .bebche-analysis-sub {
	font-size: 0.6875rem;
	color: var(--bebche-text-muted);
}

#bebche-checkups-page .bebche-analysis-delta {
	font-size: 0.875rem;
	font-weight: 600;
}

/* Empty states: match Feeding */
#bebche-checkups-page .bebche-app-checkup-summary-empty {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
	margin: 0.75rem 0;
	text-align: center;
}

#bebche-checkups-page .bebche-app-checkup-summary-badge {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	background: rgba(34, 197, 94, 0.08);
	border: 1px solid rgba(34, 197, 94, 0.2);
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--bebche-text);
	margin: 0.5rem 0 0;
}

/* Section headers: compact */
#bebche-checkups-page .bebche-app-section-head {
	margin-bottom: 0.5rem;
}

#bebche-checkups-page .bebche-app-section-title {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--bebche-text);
}

#bebche-checkups-page .bebche-app-lead {
	font-size: 0.875rem;
	color: var(--bebche-text-muted);
	text-align: center;
	padding: 1rem;
	margin: 0;
}

/* Checkups list: list-item feel, dividers */
#bebche-checkups-page .bebche-app-checkups-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--bebche-surface);
	border-radius: var(--bebche-radius-sm);
	border: 1px solid var(--bebche-border);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#bebche-checkups-page .bebche-app-checkup-card {
	background: var(--bebche-surface);
	padding: 0.875rem 1rem;
	border: none;
	border-bottom: 1px solid var(--bebche-border);
	border-radius: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	transition: background 0.15s ease;
}

#bebche-checkups-page .bebche-app-checkups-list .bebche-app-checkup-card:last-child {
	border-bottom: none;
}

#bebche-checkups-page .bebche-app-checkup-card:active {
	background: var(--bebche-bg);
}

#bebche-checkups-page .bebche-app-checkup-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

#bebche-checkups-page .bebche-app-checkup-card-date {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--bebche-text);
}

#bebche-checkups-page .bebche-app-checkup-card-baby {
	font-size: 0.8125rem;
	color: var(--bebche-text-muted);
}

#bebche-checkups-page .bebche-app-checkup-card-doctor {
	font-size: 0.75rem;
	color: var(--bebche-text-muted);
}

#bebche-checkups-page .bebche-app-checkup-card-time {
	opacity: 0.85;
	font-weight: 400;
}

#bebche-checkups-page .bebche-app-checkup-card-action {
	margin-top: 0.25rem;
}

#bebche-checkups-page .bebche-app-checkup-card-action .bebche-app-btn {
	min-height: 36px;
	padding: 0.4rem 0.75rem;
	font-size: 0.8125rem;
	border-radius: 999px;
}

/* Awaiting card: pill-style accent */
#bebche-checkups-page .bebche-app-checkup-card--awaiting {
	border-left: 3px solid var(--bebche-accent);
}

@media (min-width: 901px) {
	#bebche-checkups-page .bebche-app-checkups-list {
		display: flex;
		flex-direction: column;
		gap: 0;
		background: var(--bebche-surface);
		border-radius: var(--bebche-radius-sm);
		border: 1px solid var(--bebche-border);
		overflow: hidden;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	}

	#bebche-checkups-page .bebche-app-checkup-card {
		padding: 0.875rem 1rem;
	}
}

.bebche-app-assistant-container {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 200px);
	min-height: 400px;
	max-height: 800px;
}

.bebche-app-assistant-messages {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	background: #fafafa;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.bebche-app-assistant-message {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
}

.bebche-app-assistant-message--user {
	background: #e3f2fd;
	margin-left: auto;
	max-width: 80%;
}

.bebche-app-assistant-message--assistant {
	background: #fff;
	border: 1px solid #e0e0e0;
	max-width: 80%;
}

.bebche-app-assistant-message--system {
	background: #f5f5f5;
	text-align: center;
	color: #666;
	font-size: 0.9rem;
}

.bebche-app-assistant-message p {
	margin: 0;
	word-wrap: break-word;
}

.bebche-app-assistant-loading {
	padding: 1rem;
	text-align: center;
	color: #666;
	font-style: italic;
}

.bebche-app-assistant-form {
	background: #fff;
	padding: 1rem;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.bebche-app-assistant-form .bebche-app-form-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

@media (min-width: 901px) {
	.bebche-app-assistant-container {
		height: calc(100vh - 150px);
		max-height: 900px;
	}
}

/* -------------------------------------------------------------------------
   ADD TO assets/app.css – Home “Днес” pills (single today summary)
   ------------------------------------------------------------------------- */
.bebche-today-pills {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 1rem;
	padding: 0;
}

.bebche-today-label {
	font-size: 13px;
	line-height: 1;
	color: var(--bebche-text-muted);
	margin-right: 2px;
}

.bebche-today-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border: 1px solid rgba(0, 114, 255, 0.25);
	border-radius: 999px;
	font-size: 12.5px;
	line-height: 1.1;
	text-decoration: none;
	color: var(--bebche-text);
	background: rgba(0, 0, 0, 0.04);
	transition: background 0.15s;
}

.bebche-today-pill:hover {
	background: rgba(0, 0, 0, 0.05);
}

.bebche-today-pill:active {
	background: rgba(0, 0, 0, 0.07);
}
