:root {
	--ink: #1a1424;
	--plum: #2c2140;
	--violet: #4a2f78;
	--cream: #f7f2e8;
	--fog: #ebe4d6;
	--card: #fffdf8;
	--line: #d9d0c2;
	--live: #1e4d34;
	--live-bg: #e7f3ec;
	--wait: #6b3d00;
	--wait-bg: #fff4df;
	--bad: #7a2430;
	--bad-bg: #fdecee;
	--muted: #4a4158;
	color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-padding-bottom: 6.5rem; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--cream);
	color: var(--ink);
	font: 18px/1.45 "Source Sans 3", "Segoe UI", sans-serif;
}

body { padding-bottom: 5.5rem; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.cx-skip {
	position: absolute;
	left: 0.5rem;
	top: -3rem;
	background: var(--plum);
	color: white;
	padding: 0.4rem 0.7rem;
}

.cx-skip:focus { top: 0.5rem; }

body.page-id-32010,
body.page-id-32010 .content-area,
body.page-id-32010 .entry-content,
body.page-id-32010 .content-bg {
	background: var(--cream);
}

.cx-wrap {
	width: min(1200px, calc(100% - 1.5rem));
	margin-left: 0.75rem;
	margin-right: auto;
}

#cx-gate { max-width: 28rem; margin-top: 1rem; }

.cx-banner {
	background: var(--plum);
	color: #fffdf8;
	padding: 0.7rem 1rem 0.85rem;
}

.cx-banner strong { font-weight: 700; }

.cx-banner p { margin: 0.2rem 0 0; font-size: 0.95rem; }

.cx-top {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: end;
	justify-content: space-between;
	padding: 1rem 0 0.4rem;
}

.cx-top h1 {
	font-family: Georgia, "Iowan Old Style", serif;
	font-size: 1.8rem;
	font-weight: 600;
	margin: 0;
}

.cx-who label { display: block; font-size: 0.85rem; color: var(--muted); }

.cx-who select,
.cx-field input,
.cx-field select,
.cx-field textarea {
	width: 100%;
	min-height: 48px;
	border: 2px solid var(--plum);
	border-radius: 10px;
	background: white;
	padding: 0.4rem 0.6rem;
}

.cx-field textarea { min-height: 6rem; }

.cx-field { margin: 0.7rem 0; }

.cx-field span, .cx-field legend { display: block; font-weight: 700; margin-bottom: 0.25rem; }

.cx-modal {
	position: fixed;
	inset: 0;
	z-index: 20;
	background: rgba(26, 20, 36, 0.45);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 1rem 0.75rem 6.5rem;
	overflow: auto;
}

.cx-modal-card {
	width: min(640px, 100%);
	background: var(--card);
	border: 2px solid var(--plum);
	border-radius: 16px;
	padding: 1rem 1rem 1.2rem;
}

.cx-modal-card h2:focus { outline: none; }

.cx-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	gap: 0.25rem;
	justify-content: space-between;
	background: var(--card);
	border-top: 2px solid var(--plum);
	padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
	z-index: 5;
}

.cx-nav button {
	flex: 1;
	min-height: 48px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--plum);
	font-weight: 700;
	font-size: 0.82rem;
}

.cx-nav button[aria-current="page"] {
	background: var(--plum);
	color: white;
}

.cx-notice {
	background: var(--wait-bg);
	border: 2px solid var(--wait);
	border-radius: 12px;
	padding: 0.7rem 0.85rem;
	margin: 0.6rem 0;
}

.cx-grid {
	display: grid;
	gap: 0.8rem;
}

@media (min-width: 800px) {
	.cx-grid.cx-two { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

.cx-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 0.9rem 1rem 1rem;
	box-shadow: 0 1px 0 rgba(44, 33, 64, 0.04);
}

.cx-card h2, .cx-card h3 {
	font-family: Georgia, "Iowan Old Style", serif;
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
}

.cx-muted { color: var(--muted); margin: 0.2rem 0 0.6rem; }

.cx-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.cx-btn {
	min-height: 48px;
	border-radius: 12px;
	border: 2px solid var(--plum);
	background: var(--plum);
	color: white;
	padding: 0.45rem 0.9rem;
	font-weight: 700;
}

.cx-btn.secondary { background: white; color: var(--plum); }

.cx-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cx-pill {
	display: inline-block;
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	font-weight: 700;
	font-size: 0.92rem;
}

.cx-pill.ready { background: var(--live-bg); color: var(--live); border: 2px solid var(--live); }
.cx-pill.wait { background: var(--wait-bg); color: var(--wait); border: 2px solid var(--wait); }
.cx-pill.bad { background: var(--bad-bg); color: var(--bad); border: 2px solid var(--bad); }

.cx-bill {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.35rem 0.75rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--line);
}

.cx-bill strong { font-size: 1.15rem; }

.cx-step { display: flex; align-items: center; gap: 0.35rem; }

.cx-step button {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 2px solid var(--plum);
	background: white;
	font-size: 1.4rem;
	font-weight: 700;
}

.cx-count {
	width: 4.2rem;
	min-height: 48px;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 700;
	border: 2px solid var(--plum);
	border-radius: 12px;
}

.cx-split { grid-column: 1 / -1; margin: 0; font-size: 1rem; }

.cx-split.under { color: var(--live); font-weight: 700; }
.cx-split.short { color: var(--bad); font-weight: 700; }

.cx-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.cx-chips button {
	min-height: 44px;
	border-radius: 999px;
	border: 2px solid var(--violet);
	background: white;
	padding: 0.2rem 0.75rem;
}

.cx-chips button[aria-pressed="true"] {
	background: var(--plum);
	color: white;
	border-color: var(--plum);
}

.cx-month {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.cx-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.35rem;
}

.cx-cal p {
	margin: 0;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

.cx-day {
	background: white;
	border: 1px solid var(--line);
	border-radius: 10px;
	min-height: 5.5rem;
	padding: 0.25rem;
}

.cx-day time { display: block; font-weight: 700; font-size: 0.85rem; }

.cx-day button, .cx-shift {
	display: block;
	width: 100%;
	text-align: left;
	margin-top: 0.2rem;
	border-radius: 8px;
	border: 2px solid transparent;
	min-height: 36px;
	padding: 0.15rem 0.3rem;
	background: var(--fog);
	font-size: 0.78rem;
	font-weight: 700;
}

.cx-shift.mine { border-color: var(--violet); background: #f3eef8; }
.cx-shift.open { background: var(--wait-bg); border-color: var(--wait); }
.cx-shift.closed { background: var(--fog); color: var(--muted); }

.cx-day small { display: block; font-weight: 600; }

.cx-agenda { list-style: none; padding: 0; margin: 0; }
.cx-agenda li { margin: 0.45rem 0; }

.cx-text {
	white-space: pre-wrap;
	background: var(--fog);
	border-radius: 12px;
	padding: 0.7rem 0.8rem;
	margin: 0.4rem 0 0;
}

.cx-check {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.65rem 0;
	border-top: 1px solid var(--line);
	font-weight: 700;
}

.cx-check input {
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.2rem;
	accent-color: var(--plum);
}

.cx-check small {
	display: block;
	font-weight: 400;
	color: var(--muted);
}

.cx-progress { margin: 0.2rem 0 0.8rem; font-weight: 700; }

.cx-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cx-links a, .cx-textlink {
	color: var(--violet);
	font-weight: 700;
}

@media (max-width: 720px) {
	.cx-cal { gap: 0.2rem; }
	.cx-shift { font-size: 0.68rem; padding: 0.1rem 0.15rem; }
}
