.ops-page {
	--ops-bg: #ffffff;
	--ops-surface: #ffffff;
	--ops-soft: #f7f7f5;
	--ops-line: #e8e8e5;
	--ops-muted: #6b7280;
	--ops-text: #111111;
	--ops-red: var(--rtb-red);
	--ops-green: #159653;
	--ops-amber: #d99114;
	background: var(--ops-bg);
}

body.theme-dark.ops-page {
	--ops-bg: #0b0b0b;
	--ops-surface: #151515;
	--ops-soft: #1d1d1d;
	--ops-line: rgba(255, 255, 255, 0.11);
	--ops-muted: rgba(255, 255, 255, 0.68);
	--ops-text: #ffffff;
}

.ops-page .site-header.site-header-overlay,
.ops-page .site-header.site-header-scrolled {
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.95) !important;
	border-bottom: 1px solid rgba(17, 17, 17, 0.06) !important;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06) !important;
}

.ops-page .site-header .site-header-nav .nav-link {
	color: var(--rtb-black);
}

.ops-page .site-header .site-header-nav .nav-link:hover,
.ops-page .site-header .site-header-nav .nav-link:focus {
	color: var(--rtb-red);
}

.ops-page .site-header .logo-light {
	opacity: 0;
}

.ops-page .site-header .logo-dark {
	opacity: 1;
}

.ops-page .site-header .menu-toggle span {
	background: var(--rtb-black);
}

body.theme-dark.ops-page .site-header.site-header-overlay,
body.theme-dark.ops-page .site-header.site-header-scrolled {
	background: rgba(11, 11, 11, 0.95) !important;
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark.ops-page .site-header .site-header-nav .nav-link {
	color: rgba(255, 255, 255, 0.9);
}

body.theme-dark.ops-page .site-header .logo-light {
	opacity: 1;
}

body.theme-dark.ops-page .site-header .logo-dark {
	opacity: 0;
}

body.theme-dark.ops-page .site-header .menu-toggle span {
	background: #ffffff;
}

body.theme-dark.ops-page .mobile-menu-overlay {
	background: rgba(16, 16, 16, 0.98);
}

body.theme-dark.ops-page .mobile-menu-link {
	color: #ffffff;
}

.ops-site-main {
	background: var(--ops-bg);
	min-height: 72vh;
	padding: 154px 0 72px;
}

.ops-page.admin-session .ops-site-main {
	padding-top: calc(154px + var(--admin-session-bar-height));
}

.ops-app {
	margin: 0 auto;
	max-width: 820px;
	padding: 0 24px;
}

.ops-identity-row {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 24px;
}

.ops-wordmark {
	color: var(--ops-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.17em;
}

.ops-person-pill {
	align-items: center;
	background: var(--ops-soft);
	border: 1px solid var(--ops-line);
	border-radius: 999px;
	color: var(--ops-text);
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	gap: 8px;
	max-width: 55%;
	overflow: hidden;
	padding: 9px 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ops-person-dot {
	background: var(--ops-green);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(21, 150, 83, 0.1);
	flex: 0 0 7px;
	height: 7px;
	width: 7px;
}

.ops-main {
	color: var(--ops-text);
}

.ops-intro {
	align-items: flex-end;
	background:
		radial-gradient(circle at 96% 5%, rgba(214, 31, 38, 0.08), transparent 15rem),
		var(--ops-soft);
	border: 1px solid var(--ops-line);
	border-radius: 26px;
	display: grid;
	gap: 26px;
	grid-template-columns: 1fr auto;
	margin-bottom: 28px;
	padding: clamp(24px, 5vw, 42px);
}

.ops-eyebrow,
.ops-section-kicker {
	color: var(--ops-red);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.ops-intro h1,
.ops-access-card h1 {
	color: var(--ops-text);
	font-size: clamp(2.25rem, 7vw, 3.8rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 0.98;
	margin: 0;
}

.ops-intro > div:first-child > p:last-child,
.ops-access-card > p:last-of-type {
	color: var(--ops-muted);
	font-size: 1rem;
	line-height: 1.65;
	margin: 18px 0 0;
	max-width: 590px;
}

.ops-today-count {
	align-items: center;
	background: var(--ops-surface);
	border: 1px solid var(--ops-line);
	border-radius: 20px;
	box-shadow: 0 8px 18px rgba(17, 17, 17, 0.05);
	display: flex;
	flex-direction: column;
	height: 100px;
	justify-content: center;
	min-width: 116px;
	padding: 12px;
}

.ops-today-count strong {
	color: var(--ops-text);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}

.ops-today-count span {
	color: var(--ops-muted);
	font-size: 0.7rem;
	font-weight: 700;
	margin-top: 6px;
	white-space: nowrap;
}

.ops-notice {
	background: var(--ops-soft);
	border: 1px solid var(--ops-line);
	border-left: 4px solid #7c8494;
	border-radius: 13px;
	color: var(--ops-text);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.45;
	margin-bottom: 20px;
	padding: 14px 16px;
}

.ops-notice-success {
	background: rgba(21, 150, 83, 0.08);
	border-left-color: var(--ops-green);
}

.ops-notice-error {
	background: rgba(214, 31, 38, 0.08);
	border-left-color: var(--ops-red);
}

.ops-notice-info {
	background: rgba(217, 145, 20, 0.08);
	border-left-color: var(--ops-amber);
}

.ops-section {
	margin-top: 38px;
}

.ops-section-heading {
	align-items: flex-end;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 15px;
}

.ops-section-heading h2,
.ops-empty h2,
.ops-dialog-heading h2 {
	color: var(--ops-text);
	font-size: 1.42rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin: 0;
}

.ops-section-heading > span {
	color: var(--ops-muted);
	font-size: 0.76rem;
	font-weight: 700;
	padding-bottom: 2px;
	white-space: nowrap;
}

.ops-task-list {
	display: grid;
	gap: 10px;
}

.ops-task-form {
	margin: 0;
}

.ops-task-button {
	align-items: center;
	background: var(--ops-surface);
	border: 1px solid var(--ops-line);
	border-radius: 18px;
	box-shadow: 0 7px 18px rgba(17, 17, 17, 0.045);
	color: var(--ops-text);
	cursor: pointer;
	display: flex;
	gap: 15px;
	min-height: 78px;
	padding: 13px 15px;
	text-align: left;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
	width: 100%;
}

.ops-task-button:hover,
.ops-task-button:focus-visible {
	border-color: rgba(214, 31, 38, 0.68);
	box-shadow: 0 12px 26px rgba(17, 17, 17, 0.08);
	outline: none;
}

.ops-task-button:active {
	transform: scale(0.987);
}

.ops-task-button[disabled] {
	cursor: wait;
	opacity: 0.62;
}

.ops-task-check {
	align-items: center;
	background: var(--ops-soft);
	border: 2px solid #c9ccd1;
	border-radius: 13px;
	color: #ffffff;
	display: flex;
	flex: 0 0 46px;
	height: 46px;
	justify-content: center;
	transition: background 0.16s ease, border-color 0.16s ease;
	width: 46px;
}

body.theme-dark .ops-task-check {
	border-color: rgba(255, 255, 255, 0.28);
}

.ops-task-button:hover .ops-task-check,
.ops-task-button:focus-visible .ops-task-check {
	background: var(--ops-red);
	border-color: var(--ops-red);
}

.ops-task-button.is-logged .ops-task-check {
	background: var(--ops-green);
	border-color: var(--ops-green);
	color: #ffffff;
}

.ops-task-check svg {
	fill: none;
	height: 24px;
	opacity: 0;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
	transition: opacity 0.16s ease;
	width: 24px;
}

.ops-task-button:hover .ops-task-check svg,
.ops-task-button:focus-visible .ops-task-check svg,
.ops-task-button.is-logged .ops-task-check svg {
	opacity: 1;
}

.ops-task-copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.ops-task-copy strong {
	color: var(--ops-text);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
}

.ops-task-copy small {
	color: var(--ops-muted);
	font-size: 0.78rem;
	line-height: 1.4;
	margin-top: 4px;
}

.ops-task-copy .ops-task-repeat {
	color: var(--ops-green);
	font-weight: 700;
}

.ops-area-tag {
	background: var(--ops-soft);
	border: 1px solid var(--ops-line);
	border-radius: 999px;
	color: var(--ops-muted);
	flex: 0 0 auto;
	font-size: 0.67rem;
	font-weight: 800;
	max-width: 26%;
	overflow: hidden;
	padding: 7px 9px;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.ops-task-button-scheduled {
	border-left: 4px solid var(--ops-amber);
}

.ops-report-button {
	align-items: center;
	background: var(--ops-red);
	border: 1px solid var(--ops-red);
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 0.92rem;
	font-weight: 800;
	gap: 10px;
	justify-content: center;
	margin-top: 32px;
	min-height: 58px;
	padding: 12px 20px;
	transition: background 0.16s ease, transform 0.16s ease;
	width: 100%;
}

.ops-report-button:hover,
.ops-report-button:focus-visible {
	background: #bb171e;
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.ops-report-button > span {
	font-size: 1.2rem;
	line-height: 1;
}

.ops-completed {
	border-top: 1px solid var(--ops-line);
	margin-top: 40px;
	padding-top: 30px;
}

.ops-completed-list {
	display: grid;
	gap: 8px;
}

.ops-completed-item {
	align-items: center;
	background: var(--ops-soft);
	border: 1px solid var(--ops-line);
	border-radius: 14px;
	display: grid;
	gap: 12px;
	grid-template-columns: 34px 1fr auto;
	min-height: 64px;
	padding: 10px 12px;
}

.ops-completed-check {
	align-items: center;
	background: rgba(21, 150, 83, 0.1);
	border-radius: 50%;
	color: var(--ops-green);
	display: flex;
	font-size: 0.82rem;
	font-weight: 800;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.ops-completed-item > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ops-completed-item strong {
	color: var(--ops-text);
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.35;
}

.ops-completed-item div span {
	color: var(--ops-muted);
	font-size: 0.72rem;
	margin-top: 3px;
}

.ops-undo-button {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--ops-muted);
	cursor: pointer;
	font-size: 0.74rem;
	font-weight: 700;
	min-height: 38px;
	padding: 6px 8px;
}

.ops-undo-button:hover,
.ops-undo-button:focus-visible {
	color: var(--ops-text);
	outline: 1px solid var(--ops-line);
}

.ops-empty,
.ops-access-card {
	background: var(--ops-soft);
	border: 1px solid var(--ops-line);
	border-radius: 26px;
	padding: clamp(26px, 7vw, 52px);
}

.ops-empty {
	margin-top: 26px;
	text-align: center;
}

.ops-empty-icon {
	align-items: center;
	background: rgba(21, 150, 83, 0.1);
	border-radius: 50%;
	color: var(--ops-green);
	display: flex;
	font-size: 1.2rem;
	height: 54px;
	justify-content: center;
	margin: 0 auto 16px;
	width: 54px;
}

.ops-empty p {
	color: var(--ops-muted);
	line-height: 1.55;
	margin: 10px auto 0;
	max-width: 430px;
}

.ops-access-card {
	margin: 10px auto 0;
	max-width: 680px;
	overflow: hidden;
	position: relative;
}

.ops-access-mark {
	color: rgba(214, 31, 38, 0.045);
	font-size: 10rem;
	font-weight: 800;
	letter-spacing: -0.1em;
	line-height: 1;
	pointer-events: none;
	position: absolute;
	right: -14px;
	top: -18px;
}

.ops-access-card > *:not(.ops-access-mark) {
	position: relative;
}

.ops-admin-link {
	background: var(--ops-red);
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 800;
	margin-top: 24px;
	padding: 13px 18px;
	text-decoration: none;
}

.ops-admin-link:hover {
	background: #bb171e;
	color: #ffffff;
}

.ops-dialog {
	background: var(--ops-surface);
	border: 1px solid var(--ops-line);
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
	color: var(--ops-text);
	max-width: 560px;
	padding: 26px;
	width: calc(100% - 32px);
}

.ops-dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
}

.ops-dialog-handle {
	background: #c8cbd0;
	border-radius: 999px;
	display: none;
	height: 4px;
	margin: -10px auto 22px;
	width: 46px;
}

.ops-dialog-heading {
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	margin-bottom: 24px;
}

.ops-dialog-close {
	align-items: center;
	background: var(--ops-soft);
	border: 1px solid var(--ops-line);
	border-radius: 50%;
	color: var(--ops-text);
	cursor: pointer;
	display: flex;
	font-size: 1.4rem;
	height: 42px;
	justify-content: center;
	line-height: 1;
	width: 42px;
}

.ops-field {
	display: block;
	margin-top: 18px;
}

.ops-field > span {
	color: var(--ops-text);
	display: block;
	font-size: 0.8rem;
	font-weight: 800;
	margin-bottom: 8px;
}

.ops-field select,
.ops-field textarea {
	background: var(--ops-bg);
	border: 1px solid var(--ops-line);
	border-radius: 12px;
	color: var(--ops-text);
	font-size: 1rem;
	line-height: 1.5;
	padding: 13px 14px;
	width: 100%;
}

.ops-field select:focus,
.ops-field textarea:focus {
	border-color: var(--ops-red);
	box-shadow: 0 0 0 3px rgba(214, 31, 38, 0.12);
	outline: none;
}

.ops-field textarea {
	min-height: 125px;
	resize: vertical;
}

.ops-submit-button {
	background: var(--ops-red);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	font-size: 0.92rem;
	font-weight: 800;
	margin-top: 22px;
	min-height: 54px;
	padding: 12px 18px;
	width: 100%;
}

.ops-submit-button:hover,
.ops-submit-button:focus-visible {
	background: #bb171e;
	outline: 2px solid rgba(214, 31, 38, 0.3);
	outline-offset: 2px;
}

body.theme-dark.ops-page .ops-today-count,
body.theme-dark.ops-page .ops-task-button,
body.theme-dark.ops-page .ops-dialog {
	box-shadow: none;
}

@media (max-width: 767.98px) {
	.ops-site-main {
		padding: 116px 0 52px;
	}

	.ops-page.admin-session .ops-site-main {
		padding-top: calc(116px + var(--admin-session-bar-height));
	}

	.ops-app {
		padding: 0 16px;
	}

	.ops-identity-row {
		margin-bottom: 18px;
	}

	.ops-intro {
		align-items: start;
		grid-template-columns: 1fr;
	}

	.ops-today-count {
		align-items: baseline;
		box-shadow: none;
		flex-direction: row;
		gap: 8px;
		height: auto;
		justify-content: flex-start;
		min-width: 0;
		padding: 11px 14px;
		width: fit-content;
	}

	.ops-today-count strong {
		font-size: 1.32rem;
	}

	.ops-today-count span {
		font-size: 0.76rem;
		margin: 0;
	}

	.ops-area-tag {
		display: none;
	}

	.ops-task-button {
		min-height: 72px;
		padding: 11px 12px;
	}

	.ops-task-check {
		border-radius: 12px;
		flex-basis: 44px;
		height: 44px;
		width: 44px;
	}

	.ops-dialog {
		border-bottom: 0;
		border-radius: 24px 24px 0 0;
		margin: auto 0 0;
		max-width: none;
		padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
		width: 100%;
	}

	.ops-dialog-handle {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ops-page *,
	.ops-page *::before,
	.ops-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
