:root {
	--ceu-ink: #142821;
	--ceu-muted: #5d6d67;
	--ceu-green: #167456;
	--ceu-green-dark: #0f5a42;
	--ceu-lime: #dff25f;
	--ceu-mist: #eef5f1;
	--ceu-cream: #fbfaf5;
	--ceu-line: #d7e1dc;
	--ceu-white: #fff;
	--ceu-danger: #b42318;
	--ceu-shadow: 0 18px 55px rgba(20, 40, 33, .09);
	--ceu-radius: 20px;
}

.ceumgr-app-page main,
.ceumgr-app-page .site-main { max-width: none; }
.ceumgr-app-page .entry-title { display: none; }
.ceumgr-app-page .entry-content { margin: 0; }
.ceumgr-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 80px; color: var(--ceu-ink); font-size: 16px; line-height: 1.55; }
.ceumgr-shell *, .ceumgr-shell *::before, .ceumgr-shell *::after { box-sizing: border-box; }
.ceumgr-shell h1, .ceumgr-shell h2, .ceumgr-shell h3 { color: var(--ceu-ink); letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.ceumgr-shell h1 { font-size: clamp(2.35rem, 5vw, 4.7rem); }
.ceumgr-shell h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.ceumgr-shell p { color: var(--ceu-muted); }
.ceumgr-shell a { color: var(--ceu-green-dark); }
.ceumgr-eyebrow { color: var(--ceu-green) !important; font-size: .76rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 12px !important; text-transform: uppercase; }
.ceumgr-lede { font-size: clamp(1.05rem, 1.9vw, 1.3rem); max-width: 650px; }

.ceumgr-button { align-items: center; border: 1px solid transparent; border-radius: 999px; cursor: pointer; display: inline-flex; font: inherit; font-weight: 750; justify-content: center; min-height: 46px; padding: 10px 20px; text-decoration: none !important; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.ceumgr-button:hover { transform: translateY(-1px); }
.ceumgr-button--primary { background: var(--ceu-green); color: #fff !important; }
.ceumgr-button--primary:hover { background: var(--ceu-green-dark); }
.ceumgr-button--secondary { background: var(--ceu-white); border-color: var(--ceu-green); color: var(--ceu-green-dark) !important; }
.ceumgr-button--quiet { background: var(--ceu-mist); color: var(--ceu-green-dark) !important; }
.ceumgr-button--block { width: 100%; }
.ceumgr-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.ceumgr-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }

/* Keep app controls stable while preview pages still run inside the legacy theme. */
.ceumgr-shell .ceumgr-button--primary { background: var(--ceu-green) !important; border-color: var(--ceu-green) !important; color: #fff !important; }
.ceumgr-shell .ceumgr-button--primary:hover { background: var(--ceu-green-dark) !important; border-color: var(--ceu-green-dark) !important; }
.ceumgr-shell .ceumgr-button--secondary { background: var(--ceu-white) !important; border-color: var(--ceu-green) !important; color: var(--ceu-green-dark) !important; }
.ceumgr-shell .ceumgr-button--quiet { background: var(--ceu-mist) !important; border-color: transparent !important; color: var(--ceu-green-dark) !important; }
.ceumgr-shell .ceumgr-button--block { display: flex !important; width: 100% !important; }
.ceumgr-shell .ceumgr-text-button { background: transparent !important; border: 0 !important; color: var(--ceu-green) !important; width: auto !important; }
.ceumgr-shell .ceumgr-combined-field > button { background: var(--ceu-green) !important; border-color: var(--ceu-green) !important; color: #fff !important; width: auto !important; }

.ceumgr-hero { align-items: center; background: linear-gradient(135deg, #f7faed, var(--ceu-mist)); border: 1px solid var(--ceu-line); border-radius: 32px; display: grid; gap: 45px; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); min-height: 560px; overflow: hidden; padding: clamp(38px, 7vw, 84px); position: relative; }
.ceumgr-hero::after { background: var(--ceu-lime); border-radius: 50%; content: ''; filter: blur(2px); height: 340px; position: absolute; right: -130px; top: -130px; width: 340px; }
.ceumgr-hero__copy { position: relative; z-index: 1; }
.ceumgr-hero__copy .ceumgr-actions { margin-top: 30px; }
.ceumgr-hero__visual { display: grid; min-height: 300px; place-items: center; position: relative; z-index: 1; }
.ceumgr-demo-card { background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.7); border-radius: 26px; box-shadow: var(--ceu-shadow); padding: 32px; transform: rotate(3deg); width: min(320px, 100%); }
.ceumgr-demo-card span, .ceumgr-demo-card small { color: var(--ceu-muted); display: block; }
.ceumgr-demo-card strong { color: var(--ceu-green-dark); display: block; font-size: 5rem; letter-spacing: -.07em; line-height: 1; margin: 24px 0 2px; }
.ceumgr-demo-bar { background: var(--ceu-mist); border-radius: 8px; height: 10px; margin-top: 25px; overflow: hidden; }
.ceumgr-demo-bar i { background: var(--ceu-lime); display: block; height: 100%; width: 66%; }
.ceumgr-feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.ceumgr-feature-grid article { border: 1px solid var(--ceu-line); border-radius: var(--ceu-radius); padding: 30px; }
.ceumgr-feature-grid h2 { font-size: 1.25rem; margin: 18px 0 8px; }
.ceumgr-feature-number { color: var(--ceu-green); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }

.ceumgr-auth-shell { display: grid; min-height: 70vh; place-items: center; }
.ceumgr-auth-card { background: var(--ceu-white); border: 1px solid var(--ceu-line); border-radius: 28px; box-shadow: var(--ceu-shadow); max-width: 560px; padding: clamp(28px, 5vw, 54px); width: 100%; }
.ceumgr-auth-shell--wide .ceumgr-auth-card { max-width: 820px; }
.ceumgr-auth-card h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.ceumgr-centered { text-align: center; }
.ceumgr-auth-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 0; }

.ceumgr-form { margin-top: 26px; }
.ceumgr-form label { color: var(--ceu-ink); display: block; font-size: .89rem; font-weight: 750; margin: 18px 0 7px; }
.ceumgr-form input:not([type="checkbox"]), .ceumgr-form select, .ceumgr-form textarea { appearance: none; background: #fff; border: 1px solid #aebdb6; border-radius: 11px; color: var(--ceu-ink); font: inherit; min-height: 48px; padding: 10px 13px; width: 100%; }
.ceumgr-form input:focus, .ceumgr-form select:focus { border-color: var(--ceu-green); box-shadow: 0 0 0 3px rgba(22,116,86,.14); outline: none; }
.ceumgr-form fieldset { border: 0; border-top: 1px solid var(--ceu-line); margin: 34px 0 0; padding: 30px 0 0; }
.ceumgr-form legend { align-items: center; color: var(--ceu-ink); display: flex; font-size: 1.25rem; font-weight: 800; gap: 10px; padding: 0 10px 0 0; }
.ceumgr-form legend span { background: var(--ceu-green); border-radius: 50%; color: #fff; display: grid; font-size: .78rem; height: 26px; place-items: center; width: 26px; }
.ceumgr-form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ceumgr-form .ceumgr-button { margin-top: 18px; }
.ceumgr-check { align-items: center; display: flex !important; gap: 8px; }
.ceumgr-check input { height: 18px; width: 18px; }
.ceumgr-password-field { position: relative; }
.ceumgr-password-field input { padding-right: 70px !important; }
.ceumgr-text-button { background: transparent; border: 0; color: var(--ceu-green); cursor: pointer; font-weight: 750; padding: 8px; position: absolute; right: 7px; top: 6px; }
.ceumgr-combined-field { display: flex; }
.ceumgr-combined-field input { border-radius: 11px 0 0 11px !important; }
.ceumgr-combined-field button { background: var(--ceu-green); border: 0; border-radius: 0 11px 11px 0; color: #fff; cursor: pointer; flex: 0 0 auto; font: inherit; font-weight: 750; padding: 8px 16px; }
.ceumgr-code-row { align-items: end; display: grid; gap: 12px; grid-template-columns: 1fr auto; }
.ceumgr-inline-status { font-size: .88rem; margin: 9px 0 0; min-height: 1.4em; }
.ceumgr-inline-status.is-success { color: var(--ceu-green-dark); }
.ceumgr-inline-status.is-error { color: var(--ceu-danger); }
.ceumgr-field-help, .ceumgr-fine-print { font-size: .84rem; }
.ceumgr-honeypot { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }

.ceumgr-notice { border-left: 4px solid; border-radius: 7px; margin: 22px 0; padding: 13px 15px; }
.ceumgr-notice--success { background: #edf9f0; border-color: var(--ceu-green); }
.ceumgr-notice--error { background: #fff0ef; border-color: var(--ceu-danger); color: var(--ceu-danger); }

.ceumgr-dashboard-header, .ceumgr-page-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 30px; }
.ceumgr-dashboard-header h1, .ceumgr-page-heading h1 { font-size: clamp(2.15rem, 4.3vw, 3.75rem); }
.ceumgr-toolbar { background: var(--ceu-cream); border: 1px solid var(--ceu-line); border-radius: 16px; padding: 16px; }
.ceumgr-toolbar form { align-items: end; display: flex; gap: 12px; }
.ceumgr-toolbar label { display: block; font-size: .78rem; font-weight: 800; margin-bottom: 5px; }
.ceumgr-toolbar input, .ceumgr-toolbar select { background: #fff; border: 1px solid #b9c5bf; border-radius: 9px; font: inherit; min-height: 44px; padding: 8px 11px; }
.ceumgr-toolbar__search { flex: 1; }
.ceumgr-toolbar__search input { width: 100%; }
.ceumgr-text-link { margin: 0 5px 11px; }

.ceumgr-stat-grid { display: grid; gap: 14px; grid-template-columns: 1.35fr repeat(3, 1fr); margin: 18px 0; }
.ceumgr-stat { background: #fff; border: 1px solid var(--ceu-line); border-radius: var(--ceu-radius); padding: 25px; }
.ceumgr-stat--total { background: var(--ceu-green-dark); border-color: var(--ceu-green-dark); }
.ceumgr-stat span, .ceumgr-stat small { color: var(--ceu-muted); display: block; }
.ceumgr-stat strong { display: block; font-size: 2.65rem; letter-spacing: -.06em; line-height: 1; margin: 19px 0 5px; }
.ceumgr-stat--total span, .ceumgr-stat--total strong, .ceumgr-stat--total small { color: #fff; }

.ceumgr-progress-card { background: linear-gradient(120deg, #f5f9ed, var(--ceu-mist)); border: 1px solid var(--ceu-line); border-radius: var(--ceu-radius); margin: 18px 0 32px; padding: 26px; }
.ceumgr-progress-card__heading { align-items: center; display: flex; gap: 20px; justify-content: space-between; }
.ceumgr-progress-card__heading p { margin: 7px 0; }
.ceumgr-progress-card__heading > strong { color: var(--ceu-green-dark); font-size: 2.1rem; }
.ceumgr-progress { background: rgba(255,255,255,.75); border-radius: 99px; height: 13px; margin: 18px 0; overflow: hidden; }
.ceumgr-progress i { background: linear-gradient(90deg, var(--ceu-green), #86aa40); border-radius: inherit; display: block; height: 100%; }
.ceumgr-goal-grid { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.ceumgr-goal-grid span { color: var(--ceu-muted); }
.ceumgr-goal-grid b { color: var(--ceu-ink); }

.ceumgr-section-heading { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 16px; }
.ceumgr-section-heading p { margin: 5px 0 0; }
.ceumgr-report-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.ceumgr-report-actions form { margin: 0; }
.ceumgr-table-wrap { border: 1px solid var(--ceu-line); border-radius: var(--ceu-radius); overflow-x: auto; }
.ceumgr-table { background: #fff; border-collapse: collapse; font-size: .9rem; width: 100%; }
.ceumgr-table th { background: var(--ceu-cream); color: var(--ceu-muted); font-size: .73rem; letter-spacing: .06em; padding: 13px 12px; text-align: left; text-transform: uppercase; }
.ceumgr-table td { border-top: 1px solid var(--ceu-line); padding: 15px 12px; vertical-align: top; }
.ceumgr-table td small { color: var(--ceu-muted); display: block; margin-top: 3px; }
.ceumgr-row-actions { white-space: nowrap; }
.ceumgr-row-actions form { display: inline; margin-left: 10px; }
.ceumgr-row-actions button { background: transparent; border: 0; color: var(--ceu-danger); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.ceumgr-empty { background: var(--ceu-cream); border: 1px dashed #b6c4bd; border-radius: var(--ceu-radius); padding: 55px 24px; text-align: center; }
.ceumgr-empty p { margin: 8px 0 20px; }
.ceumgr-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.ceumgr-pagination .page-numbers { border: 1px solid var(--ceu-line); border-radius: 8px; padding: 7px 11px; text-decoration: none; }
.ceumgr-pagination .current { background: var(--ceu-green); border-color: var(--ceu-green); color: #fff; }

.ceumgr-back-link { display: inline-block; font-size: .88rem; margin-bottom: 22px; text-decoration: none; }
.ceumgr-panel { background: #fff; border: 1px solid var(--ceu-line); border-radius: 24px; box-shadow: var(--ceu-shadow); margin-top: 0; padding: clamp(24px, 5vw, 52px); }
.ceumgr-panel section + section { border-top: 1px solid var(--ceu-line); margin-top: 40px; padding-top: 36px; }
.ceumgr-panel section > p { margin: 7px 0 24px; }
.ceumgr-hours-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.ceumgr-hours-total { align-self: end; background: var(--ceu-mist); border-radius: 12px; min-height: 48px; padding: 8px 13px; }
.ceumgr-hours-total span { color: var(--ceu-muted); display: block; font-size: .72rem; }
.ceumgr-hours-total strong { font-size: 1.2rem; }
.ceumgr-form-actions { align-items: center; display: flex; gap: 10px; margin-top: 34px; }
.ceumgr-form-actions .ceumgr-button { margin-top: 0; }
.ceumgr-scanner { background: transparent; border: 0; max-width: 560px; padding: 0; width: calc(100% - 30px); }
.ceumgr-scanner::backdrop { background: rgba(10,25,20,.75); }
.ceumgr-scanner > div { background: #fff; border-radius: 20px; padding: 24px; }
.ceumgr-scanner video { background: #111; border-radius: 12px; display: block; margin-top: 15px; max-height: 55vh; width: 100%; }

@media (max-width: 900px) {
	.ceumgr-hero { grid-template-columns: 1fr; }
	.ceumgr-hero__visual { min-height: 220px; }
	.ceumgr-feature-grid { grid-template-columns: 1fr; }
	.ceumgr-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.ceumgr-dashboard-header, .ceumgr-page-heading { align-items: flex-start; flex-direction: column; }
	.ceumgr-hours-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.ceumgr-shell { padding-top: 28px; width: min(100% - 22px, 1180px); }
	.ceumgr-hero { border-radius: 22px; min-height: 0; padding: 34px 24px; }
	.ceumgr-form-grid, .ceumgr-hours-grid { grid-template-columns: 1fr; }
	.ceumgr-code-row { align-items: stretch; grid-template-columns: 1fr; }
	.ceumgr-toolbar form { align-items: stretch; flex-direction: column; }
	.ceumgr-toolbar input, .ceumgr-toolbar select { width: 100%; }
	.ceumgr-text-link { margin: 2px 0; }
	.ceumgr-stat-grid { grid-template-columns: 1fr 1fr; }
	.ceumgr-stat { padding: 19px; }
	.ceumgr-stat strong { font-size: 2.15rem; }
	.ceumgr-section-heading { align-items: flex-start; flex-direction: column; }
	.ceumgr-report-actions { width: 100%; }
	.ceumgr-report-actions form { flex: 1; }
	.ceumgr-report-actions button { width: 100%; }
	.ceumgr-table-wrap { border: 0; overflow: visible; }
	.ceumgr-table thead { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
	.ceumgr-table, .ceumgr-table tbody, .ceumgr-table tr, .ceumgr-table td { display: block; width: 100%; }
	.ceumgr-table tr { border: 1px solid var(--ceu-line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; padding: 9px 0; }
	.ceumgr-table td { border: 0; display: grid; gap: 10px; grid-template-columns: 92px 1fr; padding: 7px 14px; }
	.ceumgr-table td::before { color: var(--ceu-muted); content: attr(data-label); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
	.ceumgr-table .ceumgr-row-actions { border-top: 1px solid var(--ceu-line); display: flex; gap: 18px; margin-top: 8px; padding-top: 13px; }
	.ceumgr-row-actions::before { display: none; }
	.ceumgr-row-actions form { margin: 0; }
}

@media (max-width: 460px) {
	.ceumgr-stat-grid { grid-template-columns: 1fr; }
	.ceumgr-combined-field { display: block; }
	.ceumgr-combined-field input { border-radius: 11px !important; }
	.ceumgr-combined-field button { border-radius: 11px; margin-top: 8px; min-height: 44px; width: 100%; }
	.ceumgr-progress-card__heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.ceumgr-button { transition: none; }
}
