/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
	color-scheme: light;
	--ink: #1e1b18;
	--muted: #6e6a65;
	--cream: #f7f2eb;
	--sand: #efe6dc;
	--paper: #ffffff;
	--paper-line: #e9e3db;
	--paper-edge: #cfc6bc;
	--accent: #1f6f8b;
	--accent-2: #e07a5f;
	--accent-3: #f2cc8f;
	--shadow: 0 24px 60px rgba(32, 24, 16, 0.18);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Space Grotesk", "Segoe UI", sans-serif;
	color: var(--ink);
	background: radial-gradient(circle at top left, #fef9f2 0%, #f2e7da 45%, #e9d8c4 100%);
	height: 100vh;
	overflow: hidden;
}

.page {
	max-width: 100%;
	margin: 0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	height: 100vh;
	animation: fade-in 0.8s ease both;
}

.hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: linear-gradient(120deg, #ffffff, #f7f1e8 60%, #efe2d3);
	padding: 24px 28px;
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.hero__brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hero__mark {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--accent);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.03em;
	box-shadow: 0 12px 24px rgba(31, 111, 139, 0.35);
}

.hero__title {
	margin: 0;
	font-family: "Fraunces", "Times New Roman", serif;
	font-size: 32px;
}

.hero__tagline {
	margin: 4px 0 0;
	color: var(--muted);
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.btn {
	border: none;
	background: var(--accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 12px 20px rgba(31, 111, 139, 0.25);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border: 1px solid #d7c8b7;
	box-shadow: none;
}

.btn--link {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dashboard {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
}

.calendar-filter {
	background: #fff9f2;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 0;
	border: 1px solid #e4d7c7;
}

.calendar-filter--header-center {
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin-bottom: 0;
	border: none;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.calendar-filter--header-center .calendar-filter__list {
	gap: 12px;
}

.calendar-filter--header-center .calendar-filter__item {
	background: transparent;
	padding: 0;
}

.calendar-filter__header {
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.calendar-filter__header h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.calendar-filter__manage {
	font-size: 12px;
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
}

.calendar-filter__manage:hover {
	text-decoration: underline;
}

.calendar-filter__list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.calendar-filter--sidebar .calendar-filter__list {
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 12px;
}

.calendar-filter--top-center .calendar-filter__list {
	gap: 12px;
}

.calendar-filter__item {
	background: #fff;
	border-radius: 8px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

/* Sidebar layout item */
.calendar-filter--sidebar .calendar-filter__item {
	flex-direction: column;
	background: transparent;
	padding: 0;
	gap: 8px;
}

/* Top center layout item */
.calendar-filter--top-center .calendar-filter__item {
	flex-direction: row;
	background: transparent;
	padding: 0;
	gap: 0;
}

.calendar-filter__avatar-wrapper {
	position: relative;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.calendar-filter__item:hover {
	background: #f9f6f2;
}

.calendar-filter__item--readonly {
	cursor: default;
}

.calendar-filter__checkbox {
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
	transition: all 0.15s ease;
	background: var(--accent);
	color: #fff;
	position: absolute;
	bottom: -2px;
	right: -2px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-filter__checkbox:not(.calendar-filter__checkbox--checked) {
	background: #fff;
	color: transparent;
	border-color: #d0c4b7;
}

.calendar-filter__checkbox--checked {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.calendar-filter__color {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	flex-shrink: 0;
}

.calendar-filter__name {
	color: var(--ink);
	font-weight: 500;
	font-size: 14px;
}

.global-nav-slot {
	display: contents;
}

.global-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.global-nav--inline {
	margin-left: auto;
}

.chip--menu {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-inline: 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #d9cbb8;
	box-shadow: 0 8px 24px rgba(28, 22, 16, 0.14);
	backdrop-filter: blur(4px);
}

.chip__icon {
	font-size: 13px;
	line-height: 1;
}

.chip--calendar-home {
	text-decoration: none;
	color: var(--ink);
	border: 1px solid #d9cbb8;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 8px 24px rgba(28, 22, 16, 0.12);
	backdrop-filter: blur(4px);
}

.chip--calendar-home:hover,
.chip--menu:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(28, 22, 16, 0.18);
}

.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown__content {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 8px;
	background: var(--paper);
	border: 1px solid #e4d7c7;
	border-radius: 12px;
	box-shadow: var(--shadow);
	min-width: 220px;
	padding: 8px;
	z-index: 10000;
}

.dropdown__label {
	margin: 6px 8px 8px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8b7f72;
}

.dropdown__content.show {
	display: block;
}

.dropdown__item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--ink);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.15s ease;
	border: none;
	background: none;
	cursor: pointer;
	font-family: inherit;
	box-sizing: border-box;
}

.dropdown__item-group {
	position: relative;
}

.dropdown__item--has-children {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.dropdown__item--has-children::before {
	content: "‹";
	font-size: 14px;
	color: #7a6d5f;
}

.dropdown__submenu {
	display: none;
	position: absolute;
	top: 0;
	left: auto;
	right: calc(100% - 4px);
	min-width: 220px;
	padding: 8px;
	border: 1px solid #e4d7c7;
	border-radius: 12px;
	background: var(--paper);
	box-shadow: var(--shadow);
	z-index: 10001;
}

.dropdown__item-group:hover .dropdown__submenu,
.dropdown__item-group:focus-within .dropdown__submenu {
	display: block;
}

.dropdown__subitem {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	text-align: left;
	cursor: pointer;
	text-decoration: none;
}

.dropdown__subitem:hover {
	background: #f7f2eb;
}

.dropdown__item--home {
	font-weight: 700;
	color: var(--accent);
	background: #eef7fb;
}

.dropdown__item:hover {
	background: #f7f2eb;
}

.dropdown__item--separator {
	border-top: 1px solid #e4d7c7;
	margin-top: 4px;
	padding-top: 14px;
}

.weather-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 13000;
}

.weather-modal.show {
	display: flex;
}

.weather-modal__card {
	width: min(560px, 100%);
	background: #fff;
	border-radius: 14px;
	padding: 18px;
	box-shadow: var(--shadow);
}

.weather-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.weather-modal__header h3 {
	margin: 0;
	font-family: "Fraunces", "Times New Roman", serif;
	font-size: 24px;
}

.weather-modal__close {
	border: none;
	background: transparent;
	font-size: 24px;
	cursor: pointer;
	color: #6e6a65;
}

.weather-modal__lookup-row,
.weather-modal__coord-row,
.weather-modal__actions {
	display: flex;
	gap: 10px;
}

.weather-modal__coord-row > div {
	flex: 1;
}

.weather-modal__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.weather-modal__label {
	font-size: 13px;
	font-weight: 600;
	color: #5b534c;
}

.weather-modal__input {
	width: 100%;
	border: 1px solid #d6c9ba;
	border-radius: 8px;
	padding: 9px 10px;
	font: inherit;
}

.weather-modal__status {
	min-height: 1.2em;
	font-size: 13px;
	margin-top: 4px;
}

.weather-modal__results {
	display: none;
	border: 1px solid #ddd;
	border-radius: 8px;
	max-height: 180px;
	overflow-y: auto;
	margin-top: 4px;
	background: #fff;
}

.weather-modal__result-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 9px 10px;
	border: none;
	border-bottom: 1px solid #f0f0f0;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
}

.weather-modal__result-item:hover {
	background: #f7f2eb;
}

.weather-modal__clear {
	margin-top: 10px;
}

.day-view-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.day-view-overlay.show {
	display: flex;
}

.day-view {
	position: relative;
	background: var(--paper);
	border-radius: 24px;
	box-shadow: var(--shadow);
	max-width: 1100px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.day-view__header {
	padding: 24px 28px;
	border-bottom: 1px solid #e4d7c7;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.day-view__header h2 {
	margin: 0;
	font-family: "Fraunces", "Times New Roman", serif;
	font-size: 28px;
	color: var(--ink);
}

.day-view__badge {
	display: inline-block;
	padding: 4px 12px;
	background: var(--accent-2);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	margin-left: 12px;
}

.day-view__close {
	width: 40px;
	height: 40px;
	border: none;
	background: #f7f2eb;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	transition: background 0.15s ease;
}

.day-view__close:hover {
	background: #e9e0d1;
}

.day-view__content {
	flex: 1;
	overflow-y: auto;
	padding: 24px 28px;
}

.day-view__all-day {
	margin: 0;
	padding: 24px 28px 24px 28px;
	border-bottom: 2px solid #e4d7c7;
	background: var(--paper);
	flex-shrink: 0;
}

.day-view__all-day h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.day-view__all-day-event {
	padding: 8px 16px;
	border-radius: 8px;
	margin-bottom: 2px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
}

.day-view__all-day-title {
	font-weight: 600;
	font-size: 14px;
}

.day-view__all-day-location {
	font-size: 12px;
	opacity: 0.9;
}

.day-view__empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--muted);
}

.day-view__empty p {
	margin: 0;
	font-size: 16px;
}

.day-view__timeline {
	position: relative;
}

.day-view__hours {
	display: flex;
	flex-direction: column;
}

.day-view__hour {
	display: flex;
	align-items: flex-start;
	height: 60px;
	position: relative;
}

.day-view__hour-label {
	width: 80px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	padding-right: 12px;
	text-align: right;
	flex-shrink: 0;
	transform: translateY(-8px);
}

.day-view__hour-line {
	flex: 1;
	border-top: 1px solid #e9e3db;
	margin-top: 0;
}

.day-view__events {
	position: absolute;
	top: 0;
	left: 92px;
	right: 0;
	height: 1440px;
}

.day-view__event {
	position: absolute;
	border-radius: 8px;
	padding: 12px 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-right: 4px;
	box-sizing: border-box;
	overflow: hidden;
	cursor: pointer;
}

.day-view__event--compact {
	padding: 6px 10px;
	justify-content: center;
	gap: 0;
}

.day-view__event-time {
	font-size: clamp(10px, 1.5vh, 12px);
	font-weight: 700;
	opacity: 0.95;
	flex-shrink: 0;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.day-view__event-title {
	font-size: clamp(11px, 1.8vh, 15px);
	font-weight: 600;
	line-height: 1.3;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.day-view__event--compact .day-view__event-title {
	font-size: clamp(10px, 1.4vh, 13px);
	line-height: 1.2;
	-webkit-line-clamp: 1;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.day-view__event-compact-text {
	font-size: clamp(10px, 1.4vh, 13px);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.day-view__event--compact.day-view__event--roomy {
	align-items: flex-start;
	justify-content: flex-start;
	padding-top: 8px;
}

.day-view__event--compact.day-view__event--roomy .day-view__event-compact-text {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
}

.day-view__event-location {
	font-size: clamp(10px, 1.5vh, 13px);
	opacity: 0.9;
	line-height: 1.2;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.day-view__event:focus-visible,
.day-view__all-day-event:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.75);
	outline-offset: -2px;
}

.panel {
	background: var(--paper);
	border-radius: 24px;
	padding: 24px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.panel--calendar {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
	gap: 0;
}

.calendar {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
}

.calendar-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
}

.calendar--kids {
	overflow: auto;
}

.kids-view {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 12px;
}

.kids-view__schedule-card {
	background: #f4f8ff;
	border: 1px solid #cfdcf2;
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kids-view__schedule-head h3 {
	margin: 0;
	font-size: 18px;
}

.kids-view__schedule-head p {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--muted);
}

.kids-recurring-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kids-recurring-presets {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.kids-recurring-presets__btn {
	border: 1px solid #b8caeb;
	background: #fff;
	color: #2c446e;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 10px;
	border-radius: 999px;
	cursor: pointer;
}

.kids-recurring-presets__btn:hover {
	background: #ebf2ff;
}

.kids-recurring-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.kids-recurring-form__row--dates {
	grid-template-columns: auto auto auto;
	align-items: end;
}

.kids-recurring-form__row--dates label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #5e6470;
}

.kids-recurring-form__input {
	width: 100%;
	border: 1px solid #b9c8e6;
	border-radius: 8px;
	padding: 8px;
	font-size: 13px;
	background: #fff;
}

.kids-recurring-form__days {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kids-recurring-form__day {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #44506b;
	background: #ffffff;
	border: 1px solid #c7d5ee;
	border-radius: 999px;
	padding: 4px 8px;
}

.kids-recurring-form__people {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kids-recurring-form__people-label {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	color: #4e5767;
}

.kids-recurring-form__people-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.kids-recurring-form__person {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #44506b;
	background: #ffffff;
	border: 1px solid #c7d5ee;
	border-radius: 999px;
	padding: 4px 8px 4px 4px;
	cursor: pointer;
}

.kids-recurring-form__person__avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	overflow: hidden;
}

.kids-recurring-form__person__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kids-emoji-picker {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	border: 1px solid #c9d6ee;
	border-radius: 10px;
	background: #f8fbff;
}

.kids-emoji-picker__search {
	border: 1px solid #c5d2ea;
	border-radius: 8px;
	padding: 6px 8px;
	font-size: 13px;
	background: #fff;
}

.kids-emoji-picker__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: 140px;
	overflow: auto;
}

.kids-emoji-picker__item {
	border: 1px solid #cfdbef;
	background: #fff;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	font-size: 20px;
}

.kids-emoji-picker__item:hover {
	background: #eef4ff;
}

.kids-emoji-picker__image {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 6px;
}

.emoji-manage-panel {
	max-width: 920px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.emoji-manage-create h3,
.emoji-manage-list-wrap h3 {
	margin: 0 0 10px;
}

.emoji-manage-list-wrap__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.emoji-manage-list-wrap__head h3 {
	margin: 0;
}

.emoji-manage-create {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.emoji-manage-form {
	display: grid;
	grid-template-columns: 80px 1fr 170px 220px auto;
	gap: 8px;
}

.emoji-manage-form__emoji,
.emoji-manage-form__name,
.emoji-manage-form__category,
.emoji-manage-form__file {
	border: 1px solid #d5c8bb;
	border-radius: 10px;
	padding: 10px;
	font-size: 15px;
	background: #fff;
}

.emoji-manage-form__emoji {
	text-align: center;
	font-size: 24px;
}

.emoji-manage-form__hint {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--muted);
}

.emoji-manage-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.emoji-manage-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.emoji-manage-group__title {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6f6458;
}

.emoji-manage-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #e0d4c6;
	border-radius: 12px;
	background: #fffdf9;
}

.emoji-manage-item__content {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.emoji-manage-item__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.emoji-manage-item__emoji {
	font-size: 26px;
}

.emoji-manage-item__emoji--image {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.emoji-manage-item__emoji--image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.emoji-manage-item__name {
	font-weight: 700;
	font-size: 15px;
}

.emoji-manage-empty {
	margin: 0;
	color: var(--muted);
}

.emoji-manage-form--modal {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.emoji-manage-form--modal .emoji-manage-form__emoji,
.emoji-manage-form--modal .emoji-manage-form__name,
.emoji-manage-form--modal .emoji-manage-form__category,
.emoji-manage-form--modal .emoji-manage-form__file {
	width: 100%;
}

.emoji-manage-form__current-image {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.emoji-manage-form__current-label {
	font-size: 13px;
	font-weight: 700;
	color: #6f6458;
}

.kids-recurring-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kids-recurring-list__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #d0def5;
	border-radius: 10px;
	font-size: 13px;
}

.kids-recurring-list__item span {
	color: var(--muted);
}

.kids-recurring-list__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.kids-recurring-list__remove {
	border: 0;
	background: #e76666;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	cursor: pointer;
}

.btn--sm {
	font-size: 12px;
	padding: 5px 10px;
}

.kids-view__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 10px;
}

.kids-day {
	background: #fff;
	border: 1px solid var(--paper-line);
	border-radius: 12px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 220px;
}

.kids-day--today {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px rgba(31, 111, 139, 0.2);
}

.kids-day__header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.kids-day__date-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kids-day__date {
	font-weight: 700;
	font-size: 14px;
}

.kids-day__meta {
	font-size: 12px;
	color: var(--muted);
	display: flex;
	gap: 6px;
	align-items: center;
}

.kids-day__weather {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--paper-line);
	border-radius: 8px;
	background: linear-gradient(180deg, #fff9ef 0%, #fff3df 100%);
}

.kids-day__weather-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.kids-day__weather-icon {
	font-size: 40px;
	flex-shrink: 0;
}

.kids-day__weather-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.kids-day__weather-label {
	font-weight: 700;
	font-size: 15px;
	color: #4d3f32;
	line-height: 1.2;
}

.kids-day__weather-temps {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
}

.kids-day__weather-temp {
	font-size: 16px;
	font-weight: 700;
}

.kids-day__weather-temp-divider {
	font-size: 12px;
	color: #999;
}

.kids-day__wear-row {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top: 6px;
}


.kids-day__wear-image {
	max-height: 120px;
	width: auto;
	display: block;
}

.kids-day__wear-item {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid #d7c8b7;
	background: #fff;
}

.kids-day__wear-emoji {
	font-size: 32px;
	line-height: 1;
}

.kids-day__add-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.kids-day__add-link:hover {
	text-decoration: underline;
}

.kids-day__events {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow: auto;
}

.kids-day__event {
	-webkit-line-clamp: unset;
	cursor: pointer;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kids-day__event--calendar .day__title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	line-height: 1;
}

.kids-day__event--calendar .event-display-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	line-height: 1;
}

.kids-day__event--calendar .sized-person-token,
.kids-day__event--calendar .sized-custom-emoji-token,
.kids-day__event--calendar .sized-emoji {
	vertical-align: middle;
}

.kids-day__event--recurring {
	background: #e6f0ff;
	border: 1px solid #c3d4f7;
	color: #1d355e;
	cursor: pointer;
	padding: 8px 10px;
	border-radius: 8px;
	flex-direction: column;
	gap: 6px;
}

.kids-day__event--recurring-trigger {
	width: 100%;
	text-align: center;
	border: 0;
	font: inherit;
}

.kids-day__recurring-open-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #506792;
}

.kids-day__recurring-actions {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kids-day__recurring-people-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.kids-day__recurring-person {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 8px 4px 4px;
	border-radius: 999px;
	border: 1px solid #bfd1f3;
	background: #fff;
	color: #3d4f6f;
	cursor: pointer;
}

.kids-day__recurring-person__avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	overflow: hidden;
}

.kids-day__recurring-person__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kids-day__recurring-form {
	display: flex;
	gap: 4px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.kids-day__recurring-input {
	border: 1px solid #bfd1f3;
	border-radius: 6px;
	font-size: 12px;
	padding: 4px 6px;
	background: #fff;
	min-width: 0;
	max-width: 130px;
}

.kids-day__recurring-btn {
	border: 0;
	background: #2f6ec9;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 999px;
	cursor: pointer;
}

.kids-day__recurring-btn--revert {
	background: #8a94a8;
}

.kids-day__recurring-btn--delete {
	background: #e76666;
}

.kids-day__title--kids-note {
	font-weight: 700;
	line-height: 1.35;
	display: block;
	width: 100%;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.kids-day__kids-note {
	font-size: 1.35em;
}

.kids-day__title--kids-note .event-extra-info,
.kids-day__title--kids-note .event-extra-info--emoji-only {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.2em;
	line-height: 1;
}

.kids-day__title--kids-note .sized-emoji,
.kids-day__title--kids-note .sized-person-token {
	vertical-align: middle;
}

.kids-day__event .sized-emoji--sm {
	font-size: 1.55em;
}

.kids-day__event .sized-emoji--md {
	font-size: 2em;
}

.kids-day__event .sized-emoji--lg {
	font-size: 2.4em;
}

.kids-day__event .sized-emoji--xl {
	font-size: 3.2em;
}

.kids-day__empty {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--muted);
}

@media (max-width: 1200px) {
	.kids-view__days {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 800px) {
	.kids-view__days {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kids-day__weather {
		padding: 9px;
	}

	.kids-day__weather-icon {
		font-size: 32px;
	}

	.kids-day__weather-label {
		font-size: 14px;
	}

	.kids-day__weather-temp {
		font-size: 14px;
	}

	.kids-day__wear-item {
		width: 44px;
		height: 44px;
	}

	.kids-day__wear-emoji {
		font-size: 29px;
	}

	.kids-recurring-form__row,
	.kids-recurring-form__row--dates {
		grid-template-columns: 1fr;
	}

	.kids-recurring-presets {
		flex-direction: column;
		align-items: stretch;
	}

	.kids-recurring-list__item {
		flex-direction: column;
		align-items: flex-start;
	}

	.emoji-manage-form {
		grid-template-columns: 1fr;
	}

	.kids-emoji-picker__grid {
		max-height: 110px;
	}

	.kids-view__schedule-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.kids-occurrence-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.panel__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	flex-shrink: 0;
	justify-content: space-between;
	position: relative;
}

/* Sidebar layout option */
.calendar-filter--sidebar {
	background: transparent;
	border-radius: 0;
	padding: 12px;
	margin-bottom: 0;
	border: none;
	border-right: 1px solid #e4d7c7;
	flex-shrink: 0;
	width: auto;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.calendar-filter__list--vertical {
	flex-direction: column !important;
	gap: 12px;
	flex-wrap: nowrap;
}

/* When panel is in row mode with sidebar */
.panel--calendar.panel--calendar--sidebar {
	flex-direction: row;
}

.panel__title {
	flex: 1;
}

.panel__eyebrow {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.panel__title h2 {
	margin: 6px 0 0;
	font-family: "Fraunces", "Times New Roman", serif;
	font-size: 26px;
}

.panel__sync-status {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--muted);
}
.kids-view__schedule-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.panel__controls {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-shrink: 0;
	justify-content: flex-end;
}

.chip {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid #e4d7c7;
	background: #fff6ec;
	font-size: 12px;
	font-weight: 600;
}

.pager {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.pager__group {
	display: inline-flex;
	gap: 0;
}

.pager__group .pager__btn {
	border-radius: 0;
	margin-left: -1px;
}

.pager__group .pager__btn:first-child {
	border-radius: 12px 0 0 12px;
	margin-left: 0;
}

.pager__group .pager__btn:last-child {
	border-radius: 0 12px 12px 0;
}

.pager__btn--today {
	width: auto;
	padding: 0 20px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.kids-recurring-page {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kids-recurring-page__section h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.kids-recurring-page__empty {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.kids-occurrence-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.kids-occurrence-day {
	border: 1px solid #d8e3f7;
	border-radius: 12px;
	padding: 10px;
	background: #f8fbff;
}

.kids-occurrence-day__header {
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 6px;
}

.kids-occurrence-day__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 13px;
}

.kids-occurrence-day__list li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.kids-occurrence-day__empty {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}

.kids-recurring-list--page .kids-recurring-list__item {
	padding: 10px 12px;
}

.pager__btn {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	border: 1px solid #e4d7c7;
	background: #fff;
	position: relative;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #6b6157;
	text-decoration: none;
	transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.pager__btn:hover {
	background: #fff6ec;
	border-color: #d8c8b6;
	transform: translateY(-1px);
}

.pager__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.pager__btn--loading .pager__icon {
	opacity: 0;
}

.pager__btn--loading::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #cdb9a4;
	border-top-color: #6b6157;
	animation: pager-spin 0.7s linear infinite;
	position: absolute;
}

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

.pager__btn:focus-visible {
	outline: 2px solid #4285f4;
	outline-offset: 2px;
}

.pager__icon {
	width: 18px;
	height: 18px;
}

.calendar__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.16em;
	color: #3a342f;
	background: #f6f2ed;
	border: 1px solid var(--paper-edge);
	flex-shrink: 0;
	border-bottom: none;
	min-width: 0;
}

.calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-auto-rows: minmax(0, 1fr);
	border: 1px solid var(--paper-edge);
	border-top: none;
	min-width: 0;
	flex: 1;
	max-height: 100%;
	overflow: hidden;
	min-height: 0;
}

.calendar__weekdays span {
	padding: 10px 12px;
	border-right: 1px solid var(--paper-edge);
	font-weight: 600;
}

.calendar__weekdays span:last-child {
	border-right: none;
}

.day {
	background: #ffffff;
	max-height: 100%;
	border-right: 1px solid var(--paper-edge);
	border-bottom: 1px solid var(--paper-edge);
	min-height: 0;
	padding: clamp(4px, 0.8vw, 10px);
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 4px;
	position: relative;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
	user-select: none;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent 18px,
		var(--paper-line) 18px,
		var(--paper-line) 19px
	);
	overflow: hidden;
}

.calendar__grid .day:nth-child(7n) {
	border-right: none;
	background-color: #f7f7f7;
}

.calendar__grid .day:nth-child(7n + 1) {
	background-color: #fafafa;
}

.day:hover {
	box-shadow: inset 0 0 0 1px #bfb6ac;
	background-color: #fffdf9;
}

.day:active {
	box-shadow: inset 0 0 0 2px #a79f96;
}

.day > span:first-of-type,
.day__header > span:first-child {
	font-weight: 700;
	font-size: clamp(11px, 1.3vw, 16px);
	color: #2c2621;
	line-height: 1.2;
}

.day__events {
	list-style: none;
	margin: 2px 0 0;
	padding: 0;
	display: grid;
	min-height: 0;
	max-height: 100%;
	gap: 3px;
	font-size: clamp(8px, 0.9vw, 10px);
	line-height: 1.3;
	overflow: hidden;

	align-self: start;
}
.day__event {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	line-height: 1.25;
	min-height: 0;
	transition: opacity 0.2s ease;
}

.day__event--hidden {
	display: none;
}

.day__event--collapsed {
	display: none;
}

.day__event-color {
	/* No longer needed - kept for backwards compatibility */
	display: none;
}

.day__time {
	font-weight: 600;
	white-space: nowrap;
	font-size: clamp(10px, 0.85vw, 14px);
	opacity: 0.95;
	color: inherit !important;
	overflow: visible;
	text-overflow: clip;
	display: inline;
}

.day__title {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	display: inline;
	word-wrap: break-word;
	overflow-wrap: break-word;
	font-size: clamp(11px, 0.95vw, 15px);
	color: inherit !important;
}

.day__event--roomy .day__title {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	line-height: 1.2;
	display: inline;
}

.day__event--roomy {
	-webkit-line-clamp: 3;
	align-self: start;
}

.day__event--roomy .day__time {
	overflow: visible;
	text-overflow: clip;
	line-height: 1.1;
}

.day__event--roomy .day__title {
	margin-top: 0;
}

.day__more {
	font-size: clamp(8px, 0.9vw, 10px);
	font-weight: 600;
	color: #7a736d;
	margin-top: 2px;
}

.day__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2px;
	margin-bottom: 1px;
}

.day__weather {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: clamp(9px, 0.85vw, 11px);
	line-height: 1.2;
	color: #555;
	white-space: nowrap;
	flex-shrink: 0;
}

.day__weather-temp {
	font-size: clamp(8px, 0.78vw, 10px);
	color: #666;
}

@media (max-width: 900px) {
	.day__weather-temp { display: none; }
}

/* Hide 5th and 6th events on smaller screens */
@media (max-width: 1200px) {
	.day__events {
		/* event slot visibility handled in JavaScript */
	}
}

@media (max-width: 1100px) {
	.day__event {
		padding: 3px 4px !important;
		border-radius: 3px !important;
		gap: 3px;
	}

	.day__time {
		font-size: clamp(10px, 0.95vw, 13px);
	}

	.day__title {
		font-size: clamp(11px, 1.05vw, 14px);
	}
}

@media (max-width: 900px) {
	.day__events {
		gap: 1px;
	}

	.day__event {
		grid-template-columns: 1fr;
		align-items: start;
		padding: 2px 3px !important;
		gap: 1px;
	}

	.day__time {
		font-size: clamp(10px, 1vw, 12px);
		line-height: 1.15;
	}

	.day__title {
		font-size: clamp(10px, 1.1vw, 13px);
		line-height: 1.15;
	}
}

@media (max-height: 980px) {
	.day {
		padding: 3px;
		gap: 2px;
	}

	.day__events {
		gap: 1px;
		min-height: 0;
		max-height: calc(4 * 24px + 3px);
		overflow-y: auto;
		overflow-x: hidden;
	}

	.day__event {
		padding: 2px 4px !important;
		border-radius: 3px !important;
		gap: 2px;
	}

	.day__time {
		font-size: clamp(10px, 0.95vw, 12px);
		line-height: 1.1;
	}

	.day__title {
		font-size: clamp(10px, 1.05vw, 13px);
		line-height: 1.1;
	}

	.day__events {
		/* event slot visibility handled in JavaScript */
	}
}

.day--today {
	background-color: #fff5ee;
	box-shadow: inset 0 0 0 2px var(--accent-2);
}

.day--today:hover {
	background-color: #fff0e6;
}

.day--today em {
	font-style: normal;
	font-size: clamp(9px, 0.9vw, 11px);
	color: var(--accent-2);
	font-weight: 600;
	text-transform: uppercase;
	grid-row: 1;
	justify-self: start;
	align-self: start;
	margin-left: clamp(20px, 2.2vw, 30px);
	margin-top: 1px;
}

.day--selected {
	box-shadow: inset 0 0 0 2px var(--accent);
	background-color: #fdf7f0;
}

.day--selected:hover {
	background-color: #fdf3ea;
}

.day--out {
	color: #b6aba0;
	background-color: #f6f3ef;
	opacity: 0.65;
}

.day--out:hover {
	opacity: 0.8;
	background-color: #f4efe8;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	justify-self: end;
	transition: transform 0.15s ease;
	background: #1e1b18;
}

.day:hover .dot {
	transform: scale(1.2);
}

.dot--pink {
	background: #d67aa0;
}

.dot--blue {
	background: #4d94b8;
}

.dot--amber {
	background: #e6a95d;
}

.agenda {
	display: grid;
	gap: 16px;
}

.agenda__item {
	background: #fff7ef;
	border-radius: 18px;
	padding: 14px 16px;
	display: grid;
	gap: 6px;
	position: relative;
}

.agenda__time {
	font-weight: 600;
	color: var(--accent);
	font-size: 14px;
}

.agenda__item h3 {
	margin: 0;
	font-size: 16px;
}

.agenda__item p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.tag {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
}

.tag--blue {
	background: #4d94b8;
}

.tag--amber {
	background: #e6a95d;
}

.tag--pink {
	background: #d67aa0;
}

.mini {
	margin-top: 24px;
	padding: 18px;
	border-radius: 18px;
	background: #f8efe5;
}

.mini h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.mini__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px dashed #e0d2c1;
	font-size: 14px;
}

.mini__row:last-child {
	border-bottom: none;
}

.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	border-radius: 20px;
	background: linear-gradient(110deg, #fff8f0 0%, #f2e0cf 100%);
}

.footer h3 {
	margin: 0 0 6px;
	font-family: "Fraunces", "Times New Roman", serif;
}

.footer p {
	margin: 0;
	color: var(--muted);
}

.flash {
	margin: 0 auto;
	max-width: 1400px;
	padding: 16px 24px 0;
}

.flash__item {
	background: #fff7ea;
	border: 1px solid #f0d9c2;
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 10px;
}

#toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.toast {
	background: #2d5016;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	font-size: 14px;
	font-weight: 500;
	pointer-events: auto;
	animation: toastSlideIn 0.3s ease-out;
	min-width: 200px;
	max-width: 400px;
}

.toast.toast--hide {
	animation: toastSlideOut 0.3s ease-in forwards;
}

.toast.toast--success {
	background: #2d5016;
}

.toast.toast--error {
	background: #c41e3a;
}

.toast.toast--info {
	background: #1a5490;
}

@keyframes toastSlideIn {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes toastSlideOut {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(100%);
	}
}

.auth {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 40px 20px;
}

.auth__card {
	width: min(420px, 100%);
	background: var(--paper);
	border-radius: 24px;
	padding: 32px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 16px;
}

.auth__card h1 {
	margin: 0;
	font-family: "Fraunces", "Times New Roman", serif;
}

.auth__card p {
	margin: 0;
	color: var(--muted);
}

.auth__form {
	display: grid;
	gap: 14px;
}

.auth__form label {
	display: grid;
	gap: 6px;
	font-size: 14px;
	color: var(--muted);
}

.auth__form input {
	border: 1px solid #e5d7c7;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 15px;
}

.auth__footer {
	font-size: 14px;
}

@keyframes fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 980px) {
	.dashboard {
		flex-direction: column;
	}
}

@media (max-width: 720px) {
	.calendar__grid {
		gap: 4px;
	}

	.day__events {
		display: none;
	}

	.day__more {
		display: none;
	}
}

@media (max-width: 560px) {
	.page {
		padding: 16px;
	}

	.calendar__weekdays {
		font-size: 9px;
		letter-spacing: 0.12em;
	}

	.calendar__weekdays span {
		padding: 8px 6px;
	}

	.day {
		min-height: 120px;
	}

	.hero {
		padding: 20px 16px;
		align-items: flex-start;
		flex-direction: column;
	}

	.hero__title {
		font-size: 24px;
	}

	.panel {
		padding: 20px;
	}

	.panel__title h2 {
		font-size: 24px;
	}

	.agenda__item {
		padding: 16px 18px;
	}
}

@media (max-height: 820px) {
	.page {
		padding: 12px;
	}

	.panel {
		padding: 16px;
	}

	.panel__header {
		margin-bottom: 12px;
	}

	.calendar__weekdays span {
		padding: 6px 8px;
	}

	.day {
		padding: 4px;
		gap: 2px;
	}

	.day > span:first-of-type {
		font-size: clamp(10px, 1.1vw, 14px);
	}
}

@media (max-width: 1366px) and (max-height: 900px) {
	.calendar__weekdays span {
		padding: 6px 8px;
	}

	.day {
		padding: 3px;
		gap: 2px;
	}

	.day__events {
		gap: 2px;
		font-size: clamp(9px, 0.9vw, 11px);
	}

	.day__event {
		gap: 3px;
	}

	.day__time {
		font-size: clamp(10px, 0.95vw, 12px);
	}

	.day__title {
		font-size: clamp(10px, 1.05vw, 13px);
	}
}

@media (min-width: 1700px) {
	.day {
		min-height: 170px;
	}
}

/* Extra info (emoji/notes) on events */
.event-extra-info {
  font-size: 1em;
  margin-left: 2px;
	color: inherit !important;
}

.event-display-title {
	font-size: 1em;
	color: inherit;
}

.sized-emoji {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	vertical-align: -0.08em;
}

.sized-emoji--sm {
	font-size: 0.9em;
}

.sized-emoji--md {
	font-size: 1em;
}

.sized-emoji--lg {
	font-size: 1.25em;
}

.sized-emoji--xl {
	font-size: 1.85em;
}

.event-display-title--sm {
	font-size: inherit;
}

.event-display-title--md {
	font-size: inherit;
}

.event-display-title--lg {
	font-size: inherit;
}

.event-display-title--xl {
	font-size: inherit;
}

.event-display-title--emoji-only {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.event-extra-info--sm {
	font-size: inherit;
}

.event-extra-info--md {
	font-size: inherit;
}

.event-extra-info--lg {
	font-size: inherit;
}

.event-extra-info--xl {
	font-size: inherit;
}

.event-extra-info--emoji-only {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.sized-person-token {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	vertical-align: -0.12em;
	font-weight: 700;
	overflow: hidden;
	object-fit: cover;
	margin: 0 1px;
}

.sized-custom-emoji-token {
	border-radius: 0.28em;
	object-fit: contain;
}

.sized-person-token--sm {
	width: 1em;
	height: 1em;
	font-size: 0.9em;
}

.sized-person-token--md {
	width: 1.2em;
	height: 1.2em;
	font-size: 1em;
}

.sized-person-token--lg {
	width: 1.45em;
	height: 1.45em;
	font-size: 1.1em;
}

.sized-person-token--xl {
	width: 2em;
	height: 2em;
	font-size: 1.2em;
}

.kids-day__event .sized-person-token--sm {
	width: 1.3em;
	height: 1.3em;
	font-size: 1.05em;
}

.kids-day__event .sized-person-token--md {
	width: 1.6em;
	height: 1.6em;
	font-size: 1.15em;
}

.kids-day__event .sized-person-token--lg {
	width: 1.95em;
	height: 1.95em;
	font-size: 1.25em;
}

.kids-day__event .sized-person-token--xl {
	width: 2.5em;
	height: 2.5em;
	font-size: 1.35em;
}

.day-view__extra-info {
  font-size: 1em;
  margin-left: 2px;
}

.day-view__display-title {
	font-size: 1em;
	color: inherit;
}

.day-view__display-title--sm {
	font-size: inherit;
}

.day-view__display-title--md {
	font-size: inherit;
}

.day-view__display-title--lg {
	font-size: inherit;
}

.day-view__display-title--xl {
	font-size: inherit;
}

.day-view__display-title--emoji-only {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.day-view__extra-info--sm {
	font-size: inherit;
}

.day-view__extra-info--md {
	font-size: inherit;
}

.day-view__extra-info--lg {
	font-size: inherit;
}

.day-view__extra-info--xl {
	font-size: inherit;
}

.day-view__extra-info--emoji-only {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

/* ── Event editor dialog ─────────────────────────────────────────── */

.event-editor {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.event-editor[hidden] {
	display: none !important;
}

.event-editor__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 12, 8, 0.65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.event-editor__dialog {
	position: relative;
	width: min(540px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fffdf9;
	color: #3b342e;
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.08), 0 60px 120px -20px rgba(0, 0, 0, 0.35);
	overscroll-behavior: contain;
	animation: editorSlideIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

.event-editor__emoji--person {
	padding: 0;
	overflow: hidden;
	border-radius: 999px;
}

.event-editor__emoji--person img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@keyframes editorSlideIn {
	from { opacity: 0; transform: scale(0.94) translateY(10px); }
	to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Colored strip at top — JS sets background-color inline */
.event-editor__strip {
	height: 6px;
	border-radius: 22px 22px 0 0;
	background: var(--accent);
}

.event-editor__inner {
	padding: 28px 28px 28px;
}

/* ── Head row ── */
.event-editor__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
}

.event-editor__head-text {
	flex: 1;
	min-width: 0;
}

.event-editor__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.event-editor__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-family: "Fraunces", "Times New Roman", serif;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.3;
	word-break: break-word;
	letter-spacing: -0.3px;
}

.event-editor__metas {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
}

.event-editor__meta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #6b6157;
	margin: 0;
}

.event-editor__close {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 1.5px solid #e8dfd4;
	background: linear-gradient(135deg, #f9f6f3 0%, #f7f2ec 100%);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9d8d7a;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	margin-top: 0;
}

.event-editor__close:hover {
	background: linear-gradient(135deg, #f5ede4 0%, #ede5db 100%);
	color: #7a6f66;
	border-color: #dcc9ba;
}

/* ── Form sections ── */
.event-editor__form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.event-editor__section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.event-editor__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7a6f66;
}

.event-editor__hint {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.4;
}

.event-editor__input {
	width: 100%;
	margin-top: 6px;
	border: 1.5px solid #e5d7ca;
	border-radius: 14px;
	background: #fdfaf6;
	padding: 13px 16px;
	font: inherit;
	font-size: 15px;
	color: #2f2924;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	outline: none;
}

.event-editor__input:focus {
	border-color: var(--accent);
	background-color: #fefcfb;
	box-shadow: 0 0 0 4px rgba(31, 111, 139, 0.15), inset 0 0 0 1px rgba(31, 111, 139, 0.05);
}

.event-editor__input--extra {
	letter-spacing: 0.04em;
}

/* ── Emoji bar ── */
.event-editor__extra-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.event-editor__emoji-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding: 14px 14px;
	background: linear-gradient(135deg, #f8eee5 0%, #f5ede4 100%);
	border: 1px solid #ead9cc;
	border-radius: 16px;
}

.event-editor__emoji {
	border: none;
	background: transparent;
	border-radius: 10px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.12s, transform 0.12s, box-shadow 0.12s;
}

.event-editor__emoji:hover {
	background: rgba(255,255,255,0.9);
	transform: scale(1.15);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-editor__emoji:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.event-editor__emoji-size-bar {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.event-editor__emoji-size {
	border: 1px solid #d9cabc;
	background: #fff;
	color: #6b6157;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: all 0.12s ease;
	min-width: 38px;
}

.event-editor__emoji-size:hover {
	background: #f7efe6;
	border-color: #cdb8a5;
}

.event-editor__emoji-size.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.event-editor__emoji-size:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ── People list ── */
.event-editor__people-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 0;
}

/* ── Related events checkbox ── */
.event-editor__related {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 16px 18px;
	border-radius: 16px;
	background: linear-gradient(135deg, #f0f8fb 0%, #eef6f9 100%);
	border: 1.5px solid #d0dfe8;
}

.event-editor__related[hidden] {
	display: none !important;
}

.event-editor__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	cursor: pointer;
}

.event-editor__checkbox-box {
	position: relative;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
}

.event-editor__checkbox-box input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
	margin: 0;
}

.event-editor__checkbox-check {
	position: absolute;
	inset: 0;
	border: 2px solid #8ab8c8;
	border-radius: 6px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: transparent;
	transition: background 0.12s, color 0.12s, border-color 0.12s;
	pointer-events: none;
}

.event-editor__checkbox-box input:checked ~ .event-editor__checkbox-check {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.event-editor__checkbox-text {
	flex: 1;
	font-size: 13px;
	color: #3a5a66;
	line-height: 1.45;
	padding-top: 1px;
}

/* ── Actions row ── */
.event-editor__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	padding-bottom: 2px;
	border-top: 1.5px solid #ede5db;
	margin-top: 6px;
}

.event-editor__revert-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: transparent;
	padding: 10px 14px;
	border-radius: 999px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #8a7060;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.event-editor__revert-btn:hover {
	background: #f7ece4;
	color: #b85c3a;
}

.event-editor__save-btn {
	border: none;
	background: var(--accent);
	color: #fff;
	padding: 13px 32px;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(31, 111, 139, 0.32), 0 2px 4px rgba(31, 111, 139, 0.16);
	transition: transform 0.18s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.18s, background-color 0.18s;
	flex: 1;
	text-align: center;
}

.event-editor__save-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(31, 111, 139, 0.38), 0 2px 4px rgba(31, 111, 139, 0.16);
}

.calendar-filter__item--link {
	border: 1px dashed #d7c8b7;
	padding: 6px 10px;
	gap: 8px;
	text-decoration: none;
}

.calendar-filter__item--link:hover {
	background: #f7f2eb;
}

.calendar-filter__color--chores {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
}

.calendar-filter__shortcut-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
}

.chores-panel {
	padding: 1rem;
	overflow-y: auto;
}

/* People row at the top */
.chores-people-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0.75rem 0 1.25rem;
	border-bottom: 1px solid #e4d7c7;
	margin-bottom: 1.25rem;
}

.chores-person-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.6rem 0.85rem;
	background: #faf6f1;
	border: 1px solid #e4d7c7;
	border-radius: 16px;
	min-width: 80px;
}

.chores-person-chip .chores-person-name {
	font-size: 0.9rem;
}

.chores-person-chip .chores-meta {
	font-size: 0.78rem;
}

/* Columns layout */
.chores-columns {
	display: grid;
	grid-template-columns: repeat(var(--chores-col-count, 1), minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
}

.chores-column {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.chores-column-header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.75rem;
	background: #faf6f1;
	border-radius: 12px;
	border-left: 4px solid #ccc;
	font-size: 0.95rem;
	font-weight: 700;
}

.chores-column-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	color: #fff;
	flex-shrink: 0;
	overflow: hidden;
	border: 2px solid #efe6dc;
}

@media (max-width: 700px) {
	.chores-columns {
		grid-template-columns: 1fr;
	}
	.chores-people-row {
		gap: 0.5rem;
	}
}

.chores-admin-section {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e4d7c7;
}

.chores-person-block {
	background: #fff;
	border: 1px solid #e4d7c7;
	border-radius: 12px;
	padding: 1rem;
	margin-bottom: 1rem;
}

.chores-person-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.85rem;
}

.chores-person-identity {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.chores-person-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: #fff;
	flex-shrink: 0;
	overflow: hidden;
	border: 2px solid #efe6dc;
}

.chores-person-avatar--image {
	background: #f5f5f5;
}

.chores-person-name {
	display: block;
	font-size: 1.1rem;
}

.chores-cards {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.person-chore-cards-container {
	animation: person-chore-cards-fade-in 180ms ease-out;
}

@keyframes person-chore-cards-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.person-chore-cards-container {
		animation: none;
	}
}

.chore-card {
	border: 1px solid #e9e3db;
	border-radius: 14px;
	padding: 0.75rem;
	background: linear-gradient(180deg, #fff 0%, #fcfaf7 100%);
	box-shadow: 0 8px 20px rgba(32, 24, 16, 0.06);
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	width: 100%;
}

.chore-card--done {
	border-color: #bfd9c4;
	background: linear-gradient(180deg, #ffffff 0%, #f3fbf4 100%);
}

.chore-card--overdue {
	border-color: #efb0aa;
	background: linear-gradient(180deg, #fff8f7 0%, #fff0ed 100%);
}

.chore-card--today {
	border-color: #f2cc8f;
	background: linear-gradient(180deg, #fffdf7 0%, #fff6e8 100%);
}

.chore-card--tomorrow {
	border-color: #cfe0f1;
	background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.chore-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.5rem;
}

.chore-card__title {
	font-weight: 700;
	font-size: 0.96rem;
}

.chore-card__title-link {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px dashed transparent;
	transition: border-color 0.15s ease;
}

.chore-card__title-link:hover {
	border-color: var(--accent);
}

.chore-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	color: var(--muted);
	font-size: 0.82rem;
	line-height: 1.35;
}

.chore-card__due {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.18rem 0.45rem;
	border-radius: 999px;
	background: #eef4fb;
	border: 1px solid #cfe0f1;
	color: #23506b;
	font-weight: 700;
	margin-bottom: 0.15rem;
}

.chore-card__due--pending {
	background: #fff3de;
	border-color: #f2cc8f;
	color: #7a4a00;
}

.chore-card__due--overdue {
	background: #fde8e5;
	border-color: #efb0aa;
	color: #9b2c1f;
}

.chore-card__due--today {
	background: #fff3de;
	border-color: #f2cc8f;
	color: #7a4a00;
}

.chore-card__due--tomorrow {
	background: #eef4fb;
	border-color: #cfe0f1;
	color: #23506b;
}

.chore-card__due--completed {
	background: #edf8ef;
	border-color: #bfd9c4;
	color: #2f6b3d;
}

.chore-card__description {
	margin: 0;
	font-size: 0.86rem;
	color: var(--ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.chore-card__actions {
	margin-top: auto;
	display: flex;
	justify-content: flex-start;
}

.chore-card__actions .btn {
	padding: 0.45rem 0.8rem;
	font-size: 0.84rem;
	box-shadow: 0 8px 16px rgba(31, 111, 139, 0.18);
}

.chore-insights {
	border: 1px solid #e4d7c7;
	background: #fff9f2;
	border-radius: 10px;
	padding: 0.65rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.chore-insights__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
}

.chore-insights__hide-link {
	font-size: 0.8rem;
	color: var(--accent);
	text-decoration: none;
}

.chore-insights__hide-link:hover {
	text-decoration: underline;
}

.chore-insights__summary {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.82rem;
}

.mini-calendar {
	border: 1px solid #e9e3db;
	border-radius: 10px;
	background: #fff;
	padding: 0.5rem;
}

.mini-calendar__month {
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.mini-calendar__weekdays,
.mini-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.2rem;
}

.mini-calendar__weekdays {
	font-size: 0.66rem;
	color: var(--muted);
	margin-bottom: 0.2rem;
}

.mini-calendar__weekdays span {
	text-align: center;
}

.mini-calendar__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	font-size: 0.72rem;
	border-radius: 6px;
	background: #f8f4ee;
	color: var(--ink);
	border: 1px solid transparent;
}

.mini-calendar__day--outside {
	opacity: 0.45;
}

.mini-calendar__day--completed {
	background: #edf8ef;
	border-color: #bfd9c4;
	font-weight: 700;
}

.chores-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-top: 1px solid #f1ece5;
}

.chores-note,
.chores-meta {
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.45;
}

.streak-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.5rem;
	font-size: 0.82rem;
	border-radius: 999px;
	background: #fff3de;
	border: 1px solid #f2cc8f;
	white-space: nowrap;
}

.chores-admin-card {
	background: #fff;
	border: 1px solid #e4d7c7;
	border-radius: 12px;
	padding: 0.75rem;
	margin-bottom: 0.75rem;
}

.manage-item-block {
	border-top: 1px solid #f1ece5;
	padding-top: 0.75rem;
	margin-top: 0.75rem;
}

.manage-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.manage-item-row__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.manage-item-row__actions form {
	margin: 0;
}

.manage-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.manage-modal[hidden] {
	display: none !important;
}

.manage-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 12, 8, 0.65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.manage-modal__dialog {
	position: relative;
	width: min(540px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fffdf9;
	color: #3b342e;
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.08), 0 60px 120px -20px rgba(0, 0, 0, 0.35);
	overscroll-behavior: contain;
	animation: editorSlideIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) both;
	z-index: 1;
}

.manage-modal__dialog--wide {
	width: min(760px, 100%);
}

.manage-modal__inner {
	padding: 24px;
}

.manage-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
}

.manage-modal__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.manage-modal__title {
	margin: 0;
	font-size: 24px;
	font-family: "Fraunces", "Times New Roman", serif;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.3;
}

.manage-modal__close {
	border: 1px solid #e3d7ca;
	background: #fff;
	color: #6b6157;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.manage-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.manage-modal__actions form {
	display: contents;
}

.chores-admin-card h4 {
	margin: 0 0 0.75rem 0;
}

.chores-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.chores-field input,
.chores-field select,
.chores-field textarea {
	border: 1px solid #d7c8b7;
	border-radius: 8px;
	padding: 0.45rem 0.55rem;
	font: inherit;
}

.chores-form-error {
	margin: 0 0 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #b33a2f;
}

.chores-field-inline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}

.chores-person-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.9rem;
}

.chores-person-checkboxes label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.chores-days-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.9rem;
}

.chores-days-checkboxes label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* ────────────────────────────────────────────────────────────────────
   MOBILE OPTIMIZATIONS - Nice calendar view for phones
   ──────────────────────────────────────────────────────────────────── */

/* Mobile responsive layout - switch to single column at 768px */
@media (max-width: 768px) {
	.page {
		padding: 12px 8px;
		height: 100vh;
	}

	.panel--calendar {
		display: flex;
		flex-direction: column;
		flex: 1;
		overflow-y: auto;
		overflow-x: hidden;
	}

	.panel__header {
		gap: 12px;
		margin-bottom: 12px;
		flex-wrap: wrap;
		overflow: visible;
	}

	.panel__title {
		flex: 1;
		min-width: 100%;
		margin-bottom: 0;
	}

	.panel__title h2 {
		font-size: 22px;
		margin: 0;
	}

	.panel__eyebrow {
		font-size: 11px;
	}

	.panel__controls {
		display: flex;
		gap: 6px;
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
	}

	.pager {
		order: -1;
		gap: 4px;
		flex-shrink: 0;
	}

	.pager__btn {
		width: 36px;
		height: 36px;
		padding: 0;
		flex-shrink: 0;
	}

	.pager__icon {
		width: 18px;
		height: 18px;
	}

	.chip {
		padding: 8px 12px;
		font-size: 13px;
		white-space: nowrap;
		flex-shrink: 0;
		min-width: auto;
	}

	.dropdown {
		position: relative;
		flex-shrink: 0;
		overflow: visible;
		z-index: 10001;
	}

	.global-nav {
		gap: 6px;
	}

	#actionsMenu {
		padding: 8px 12px;
		white-space: nowrap;
		font-size: 13px;
	}

	.dropdown__content {
		position: absolute;
		right: 0;
		top: 100%;
		background: white;
		border: 1px solid #e4d7c7;
		border-radius: 12px;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
		z-index: 10000;
		min-width: 200px;
		margin-top: 4px;
	}

	.dropdown__item {
		display: block;
		width: 100%;
		padding: 12px 16px;
		text-align: left;
		border: none;
		background: none;
		cursor: pointer;
		color: var(--ink);
		font-size: 14px;
		font-family: inherit;
		border-bottom: 1px solid #f1ece5;
		transition: background-color 0.2s ease;
	}

	.dropdown__item:last-child {
		border-bottom: none;
	}

	.dropdown__item:hover {
		background-color: #f9f6f2;
	}

	.dropdown__submenu {
		position: static;
		display: block;
		margin: 4px 8px 8px;
		padding: 6px;
		box-shadow: none;
		border-radius: 10px;
		min-width: 0;
	}

	.dropdown__item--has-children::before {
		content: "";
	}

	.weather-modal__lookup-row,
	.weather-modal__coord-row,
	.weather-modal__actions {
		flex-direction: column;
	}

	.chip--calendar-home,
	.chip--menu {
		padding: 8px 11px;
		font-size: 13px;
	}

	/* Hide month/year label on very small screens */
	.calendar-filter--header-center {
		display: flex;
		justify-content: center;
		position: static;
		transform: none;
		padding: 8px 0;
		margin-bottom: 8px;
		width: 100%;
		background: transparent;
		border: none;
		flex-wrap: wrap;
	}

	.calendar-filter--header-center .calendar-filter__list {
		gap: 8px;
		justify-content: center;
		flex-wrap: wrap;
	}

	.calendar-filter__item {
		background: white;
		border: 1px solid #e4d7c7;
		padding: 4px;
		border-radius: 50%;
		width: 48px;
		height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.calendar-filter__avatar-wrapper {
		width: 40px;
		height: 40px;
	}

	/* Improve calendar grid for tablets */
	.calendar__grid {
		grid-auto-rows: minmax(70px, 1fr);
	}

	.day {
		padding: 6px;
		gap: 3px;
		min-height: 70px;
	}

	.day > span:first-of-type {
		font-size: 14px;
	}

	.day__events {
		display: grid !important;
		gap: 2px;
		font-size: 11px;
		max-height: 100%;
		overflow: hidden;
	}

	.day__event {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1px;
		padding: 3px 4px;
		border-radius: 3px;
		align-items: start;
	}

	.day__event--hidden {
		display: none !important;
	}

	.day__time {
		display: none;
	}

	.day__title {
		font-size: 11px;
		line-height: 1.2;
		white-space: normal;
		-webkit-line-clamp: 1;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.day__more {
		display: block !important;
		font-size: 10px;
		margin-top: 2px;
	}
}

/* Phone breakpoint - 540px and below */
@media (max-width: 540px) {
	.page {
		padding: 8px;
		gap: 8px;
	}

	.panel {
		padding: 12px;
		border-radius: 12px;
	}

	.panel__header {
		padding: 0;
		gap: 8px;
		margin-bottom: 8px;
		overflow: visible;
	}

	.panel__title {
		min-width: 100%;
	}

	.panel__title h2 {
		font-size: 20px;
		margin: 0;
	}

	.panel__controls {
		display: flex;
		gap: 6px;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
	}

	.pager__btn {
		width: 36px;
		height: 36px;
		padding: 0;
		flex-shrink: 0;
	}

	.chip {
		padding: 8px 12px;
		font-size: 12px;
		white-space: nowrap;
		flex-shrink: 0;
	}

	#actionsMenu {
		padding: 8px 12px;
		white-space: nowrap;
		flex-shrink: 0;
	}

	.calendar {
		border-radius: 8px;
		overflow: hidden;
	}

	.calendar__weekdays {
		font-size: 10px;
		letter-spacing: 0.1em;
	}

	.calendar__weekdays span {
		padding: 6px 4px;
		font-weight: 600;
	}

	.calendar__grid {
		grid-auto-rows: minmax(80px, 1fr);
		gap: 0;
	}

	.day {
		padding: 6px 4px;
		gap: 2px;
		min-height: 80px;
		border-radius: 0;
	}

	.day > span:first-of-type {
		font-size: 13px;
		font-weight: 700;
	}

	.day__events {
		gap: 1px;
		font-size: 10px;
	}

	.day__event {
		padding: 2px 3px;
		border-radius: 3px;
		gap: 0;
	}

	.day__title {
		font-size: 10px;
		line-height: 1.15;
	}

	.day__more {
		font-size: 9px;
		font-weight: 600;
	}

	/* Hide weekday labels on very small screens to save space */
	@media (max-width: 380px) {
		.calendar__weekdays span {
			padding: 4px 2px;
			font-size: 8px;
		}

		.day > span:first-of-type {
			font-size: 12px;
		}

		.day {
			min-height: 70px;
		}
	}
}

/* Small phones - landscape orientation support */
@media (max-width: 900px) and (max-height: 500px) {
	.page {
		padding: 6px;
	}

	.panel {
		padding: 8px;
	}

	.panel__header {
		margin-bottom: 6px;
	}

	.calendar__grid {
		grid-auto-rows: minmax(50px, 1fr);
	}

	.day {
		padding: 4px 2px;
		gap: 1px;
		min-height: 50px;
	}

	.day > span:first-of-type {
		font-size: 12px;
	}

	.day__events {
		font-size: 9px;
		gap: 1px;
	}

	.day__event {
		padding: 1px 2px;
	}

	.day__title {
		font-size: 9px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.day__more {
		font-size: 8px;
	}
}

/* iPad/medium tablet - improved layout */
@media (min-width: 769px) and (max-width: 1024px) {
	.page {
		padding: 16px;
	}

	.panel--calendar {
		display: flex;
		flex-direction: column;
	}

	.calendar__grid {
		grid-auto-rows: minmax(90px, 1fr);
	}

	.day {
		padding: 8px;
		gap: 3px;
		min-height: 90px;
	}

	.day__events {
		gap: 2px;
		font-size: 12px;
	}

	.day__event {
		gap: 2px;
		padding: 4px 6px;
	}

	.day__title {
		font-size: 12px;
		line-height: 1.25;
	}

	.day__more {
		font-size: 11px;
	}
}

/* Touch target improvements for mobile */
@media (hover: none) and (pointer: coarse) {
	/* Increase touch targets */
	button,
	a,
	.day {
		min-height: 44px;
	}

	.pager__btn {
		min-width: 44px;
		min-height: 44px;
	}

	.chip {
		min-height: 40px;
	}

	.calendar-filter__item {
		min-width: 52px;
		min-height: 52px;
	}

	/* Remove hover effects on touch devices */
	button:not(:active)::after,
	.day:not(:active)::before {
		content: none;
	}

	/* Add active state feedback */
	.day:active,
	button:active {
		opacity: 0.8;
	}
}

/* Focus visible for accessibility on mobile */
@media (max-width: 768px) {
	.chip:focus-visible,
	.pager__btn:focus-visible,
	button:focus-visible {
		outline: 2px solid var(--accent);
		outline-offset: 2px;
	}
}
/* Weekly Calendar View */
.calendar--weekly {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--paper);
	border-radius: 12px;
}

.week-grid {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.week-header {
	display: grid;
	grid-template-columns: 80px repeat(7, 1fr);
	gap: 0;
	background: var(--paper);
	border-bottom: 2px solid var(--paper-line);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 10;
	flex-shrink: 0;
}

.week-header__spacer {
	background: var(--paper);
	border-right: 2px solid var(--paper-line);
}

.week-header__day {
	padding: 12px 8px;
	text-align: center;
	border-right: 1px solid var(--paper-line);
	background: var(--paper);
	font-size: 0.875rem;
	font-weight: 500;
}

.week-header__day-name {
	color: var(--muted);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.week-header__day-date {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.4;
}

.week-header__day-date--today {
	background: var(--accent);
	color: var(--paper);
	border-radius: 6px;
	padding: 2px 6px;
	display: inline-block;
	width: auto;
}

.week-header__day--today {
	background: rgba(31, 111, 139, 0.04);
}

.week-header__weather {
	font-size: 0.75rem;
	margin-top: 4px;
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.week-header__temp {
	font-size: 0.7rem;
	font-weight: 500;
}

.week-body {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 0;
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--paper);
	position: relative;
}

.week-body__times {
	display: flex;
	flex-direction: column;
	background: var(--cream);
	border-right: 2px solid var(--paper-line);
	position: sticky;
	top: 0;
	left: 0;
	z-index: 5;
	flex-shrink: 0;
	overflow: hidden;
	grid-row: 1 / -1;
}

.week-body__hour-label {
	min-height: 60px;
	padding: 4px 8px;
	text-align: right;
	font-size: 0.75rem;
	color: var(--muted);
	font-weight: 500;
	line-height: 1.2;
	flex-shrink: 0;
	border-bottom: 1px solid var(--paper-line);
}

.week-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0;
	position: relative;
}

.week-day {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--paper-line);
	background: var(--paper);
	position: relative;
	min-width: 0;
}

.week-day:last-child {
	border-right: none;
}

.week-day--today {
	background: rgba(31, 111, 139, 0.08);
}

.week-day--today .week-day__all-day {
	background: rgba(31, 111, 139, 0.1);
}

.week-day--today .week-day__hours {
	background-color: rgba(31, 111, 139, 0.04);
}

.week-day__all-day {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	max-height: 84px;
	overflow-y: auto;
	padding: 4px 2px;
	border-bottom: 1px solid var(--paper-line);
	background: var(--cream);
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-wrap: wrap;
}

.week-day__hours {
	display: flex;
	flex-direction: column;
	flex: 1;
	position: relative;
	min-height: 0;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent 59px,
		var(--paper-line) 59px,
		var(--paper-line) 60px
	);
}

.week-day__hour {
	min-height: 60px;
	position: relative;
	flex-shrink: 0;
	pointer-events: none;
}

.week-event {
	position: absolute;
	left: 2px;
	right: 2px;
	padding: 4px 6px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
	gap: 2px;
	pointer-events: auto;
}

.week-event:not(.week-event--all-day) {
	display: block;
	font-size: 0.66rem;
	line-height: 1.25;
}

.week-event__summary {
	display: block;
}

.week-event:not(.week-event--all-day) .week-event__summary {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	overflow-wrap: anywhere;
}

.week-event:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
	transform: translateY(-1px);
	z-index: 11;
}

.week-event--all-day {
	position: static;
	margin-bottom: 2px;
	padding: 6px 4px;
	height: auto;
	border-radius: 3px;
	font-size: 0.7rem;
	min-height: 24px;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.week-event__time {
	font-size: inherit;
	opacity: 0.9;
	font-weight: 600;
	display: inline;
}

.week-event__title {
	font-size: inherit;
	font-weight: 500;
	word-break: break-word;
	display: inline;
}

.week-event:not(.week-event--all-day) .week-event__title::before {
	content: " - ";
	font-weight: 600;
}

/* Weekly view responsive adjustments */
@media (max-width: 1200px) {
	.week-grid {
		font-size: 0.875rem;
	}

	.week-body__hour-label {
		font-size: 0.7rem;
		min-height: 48px;
		padding: 2px 4px;
	}

	.week-day__hour {
		min-height: 48px;
	}

	.week-day__hours {
		background-image: repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent 47px,
			var(--paper-line) 47px,
			var(--paper-line) 48px
		);
	}

	.week-event {
		font-size: 0.62rem;
		padding: 3px 4px;
	}

	.week-header__day {
		padding: 8px 4px;
	}

	.week-header__day-date {
		font-size: 1rem;
	}

	.week-header__day-name {
		font-size: 0.7rem;
	}
}

@media (max-width: 768px) {
	.week-header {
		grid-template-columns: 50px repeat(7, 1fr);
	}

	.week-header__spacer {
		width: 50px;
	}

	.week-body {
		grid-template-columns: 50px 1fr;
	}

	.week-body__times {
		width: 50px;
	}

	.week-body__hour-label {
		font-size: 0.6rem;
		min-height: 36px;
		padding: 0 2px;
	}

	.week-day__hour {
		min-height: 36px;
	}

	.week-day__hours {
		background-image: repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent 35px,
			var(--paper-line) 35px,
			var(--paper-line) 36px
		);
	}

	.week-event {
		font-size: 0.56rem;
		padding: 2px 2px;
	}

	.week-event--all-day {
		padding: 3px 2px;
		font-size: 0.55rem;
	}

	.week-header__day {
		padding: 6px 2px;
	}

	.week-header__day-date {
		font-size: 0.85rem;
	}

	.week-header__day-name {
		font-size: 0.6rem;
	}

	.week-header__weather {
		font-size: 0.6rem;
	}

	.week-header__temp {
		font-size: 0.5rem;
	}
}

/* Current Time Indicator */
.week-current-time-indicator {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(to right, #ff0000, #ff6b6b);
	z-index: 20;
	pointer-events: none;
	box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
}

.week-current-time-indicator::before {
	content: '';
	position: absolute;
	left: -6px;
	top: 50%;
	width: 12px;
	height: 12px;
	background: #ff0000;
	border-radius: 50%;
	transform: translateY(-50%);
	box-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
}