/* 4everCare Timesheets — iOS-style interface. Everything is scoped under .fec-app. */

.fec-app {
	--blue: #007aff;
	--green: #34c759;
	--red: #ff3b30;
	--orange: #ff9500;
	--bg: #f2f2f7;
	--card: #ffffff;
	--label: #000000;
	--label2: rgba(60, 60, 67, 0.62);
	--label3: rgba(60, 60, 67, 0.3);
	--sep: rgba(60, 60, 67, 0.18);
	--fill: rgba(120, 120, 128, 0.12);
	--fill2: rgba(120, 120, 128, 0.2);
	--blue-tint: rgba(0, 122, 255, 0.12);
	--red-tint: rgba(255, 59, 48, 0.12);
	--green-tint: rgba(52, 199, 89, 0.16);
	--green-text: #1e8e3e;
	--orange-tint: rgba(255, 149, 0, 0.18);
	--orange-text: #b25e00;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
	--ease: cubic-bezier(0.32, 0.72, 0, 1);
	color-scheme: light;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.35;
	color: var(--label);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}
.fec-app[data-theme="dark"] {
	--blue: #0a84ff;
	--green: #30d158;
	--red: #ff453a;
	--orange: #ff9f0a;
	--bg: #000000;
	--card: #1c1c1e;
	--label: #ffffff;
	--label2: rgba(235, 235, 245, 0.62);
	--label3: rgba(235, 235, 245, 0.3);
	--sep: rgba(84, 84, 88, 0.65);
	--fill: rgba(120, 120, 128, 0.24);
	--fill2: rgba(120, 120, 128, 0.36);
	--blue-tint: rgba(10, 132, 255, 0.22);
	--red-tint: rgba(255, 69, 58, 0.22);
	--green-tint: rgba(48, 209, 88, 0.22);
	--green-text: #5ee37f;
	--orange-tint: rgba(255, 159, 10, 0.24);
	--orange-text: #ffb340;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	.fec-app[data-theme="auto"] {
		--blue: #0a84ff;
		--green: #30d158;
		--red: #ff453a;
		--orange: #ff9f0a;
		--bg: #000000;
		--card: #1c1c1e;
		--label: #ffffff;
		--label2: rgba(235, 235, 245, 0.62);
		--label3: rgba(235, 235, 245, 0.3);
		--sep: rgba(84, 84, 88, 0.65);
		--fill: rgba(120, 120, 128, 0.24);
		--fill2: rgba(120, 120, 128, 0.36);
		--blue-tint: rgba(10, 132, 255, 0.22);
		--red-tint: rgba(255, 69, 58, 0.22);
		--green-tint: rgba(48, 209, 88, 0.22);
		--green-text: #5ee37f;
		--orange-tint: rgba(255, 159, 10, 0.24);
		--orange-text: #ffb340;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
		color-scheme: dark;
	}
}

/* ---------- page container: edge to edge of the browser window (core.js fits it past the theme's content column) ---------- */
.fec-app[data-fec-mode] {
	--fec-max: 1480px;
	--fec-gutter: clamp(14px, 4vw, 56px);
	--fec-pad: max(var(--fec-gutter), calc((var(--fec-vw, 100vw) - var(--fec-max)) / 2));
	position: relative;
	z-index: 3;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(18px, 3vw, 36px) var(--fec-pad) clamp(28px, 4vw, 56px);
	background: var(--bg);
	border-radius: 0;
	box-sizing: border-box;
	text-align: left;
}
.fec-app[data-fec-mode="form"] { --fec-max: 1320px; }
.fec-app[data-fec-mode="clock"] { --fec-max: 1200px; }
.fec-app[data-fec-mode].fec-narrow { --fec-max: 560px; }
/* shortcode attribute width="contained" keeps the old boxed look */
.fec-app[data-fec-mode][data-width="contained"] { width: auto; max-width: 880px; margin: 0 auto; padding: clamp(14px, 3.4vw, 30px); border-radius: 30px; }
.fec-app[data-fec-mode="list"][data-width="contained"] { max-width: 1240px; }
.fec-app[data-fec-mode][data-width="contained"].fec-narrow { max-width: 480px; }

/* the theme's page frame: remove the huge spacing and decorations around our pages */
body.fec-page .main_con { padding-top: 32px !important; padding-bottom: 40px !important; min-height: 0 !important; text-align: left !important; }
body.fec-page .main_con:before, body.fec-page .main_con:after { display: none !important; }
body.fec-page figure.main_img { display: none !important; }
body.fec-page .entry-content, body.fec-page .main_padd { text-align: left; }

/* ---------- reset inside our scope (themes love to restyle these) ----------
   :where() keeps the specificity of these resets low, so the component classes below always win. */
.fec-app *, .fec-app *::before, .fec-app *::after { box-sizing: border-box; }
.fec-app [hidden] { display: none !important; }
.fec-app.fec-app :where([data-tag], p, figure, figcaption, label, small, strong, span) {
	font-family: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
}
.fec-app.fec-app :where([data-tag], p, figure) { margin: 0; padding: 0; border: 0; color: inherit; background: none; }
.fec-app.fec-app :where(button, input, select, textarea) {
	font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; text-shadow: none;
	-webkit-appearance: none; appearance: none; border-radius: 0; box-shadow: none; min-width: 0; max-width: none;
}
.fec-app.fec-app :where(button) { background: none; border: 0; padding: 0; cursor: pointer; line-height: inherit; height: auto; width: auto; }
.fec-app button:focus-visible, .fec-app input:focus-visible, .fec-app select:focus-visible, .fec-app textarea:focus-visible, .fec-app th:focus-visible, .fec-app tr:focus-visible {
	outline: 3px solid rgba(0, 122, 255, 0.45); outline-offset: 2px;
}
.fec-app.fec-app :where(table, thead, tbody, tfoot, tr, th, td) {
	border: 0 !important; background-image: none; box-shadow: none; margin: 0;
}
.fec-app.fec-app :where(table) { border-collapse: collapse; width: 100% !important; table-layout: auto; background: transparent !important; }
.fec-app.fec-app :where(tr) { background-color: transparent; }
.fec-app.fec-app :where(mark) { background: rgba(255, 204, 0, 0.5); color: inherit; padding: 0 1px; border-radius: 3px; }
.fec-app.fec-app :where(img) { max-width: 100%; border: 0; box-shadow: none; }

.fec-app .fec-input:focus-visible, .fec-app .fec-search-input:focus-visible { outline: none; }
.fec-app.fec-narrow .fec-hero { text-align: center; margin-bottom: 14px; }
.fec-app.fec-narrow .fec-logo { margin-bottom: 0; }

.fec-app .fec-ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.fec-app .fec-ico svg { width: 100%; height: 100%; display: block; }

/* ---------- headings ---------- */
.fec-app .fec-hero { margin: 4px 0 22px; }
.fec-app .fec-logo {
	display: inline-block; background: #fff; border-radius: 18px; padding: 10px 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.fec-app .fec-logo img { display: block; height: 54px; width: auto; }
.fec-app .fec-logo.sm { padding: 7px 12px; border-radius: 14px; margin-bottom: 12px; }
.fec-app .fec-logo.sm img { height: 38px; }
.fec-app .fec-title { font-size: clamp(28px, 6vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -0.022em !important; margin: 0; }
.fec-app .fec-subtitle { color: var(--label2); font-size: 15px; margin-top: 6px; }

.fec-app .fec-section { margin-bottom: 26px; }
.fec-app .fec-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 7px; }
.fec-app .fec-section-head [data-tag="h2"] { font-size: 13px; font-weight: 400; text-transform: uppercase !important; letter-spacing: 0.02em !important; color: var(--label2); }
.fec-app .fec-h3 { font-size: 13px; font-weight: 400; text-transform: uppercase !important; letter-spacing: 0.02em !important; color: var(--label2); padding: 22px 16px 7px; }

/* ---------- grouped list ---------- */
.fec-app .fec-group { background: var(--card); border-radius: 14px; overflow: hidden; }
.fec-app .fec-group + .fec-group { margin-top: 14px; }
.fec-app .fec-row {
	display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; position: relative;
	background-image: linear-gradient(var(--sep), var(--sep)); background-repeat: no-repeat;
	background-size: calc(100% - 16px) 0.5px; background-position: left 16px bottom 0;
	transition: background-color 0.2s;
}
.fec-app .fec-row:last-child, .fec-app .fec-row-flat:last-child { background-image: none; }
.fec-app .fec-row:focus-within { background-color: var(--blue-tint); }
.fec-app .fec-row-flat:focus-within { background-color: transparent; }
.fec-app .fec-row-label { flex: 0 0 132px; font-size: 17px; }
.fec-app .fec-row-between { justify-content: space-between; cursor: pointer; }
.fec-app .fec-row-block { padding: 8px 12px; display: block; }
.fec-app .fec-value { margin-left: auto; text-align: right; color: var(--label2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fec-app .fec-readonly { color: var(--label2); }
.fec-app .fec-input {
	flex: 1 1 auto; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--label);
	font-size: 17px; outline: none; border-radius: 0;
}
.fec-app .fec-input::placeholder { color: var(--label3); opacity: 1; }
.fec-app .fec-textarea { min-height: 96px; padding: 8px 4px; resize: vertical; line-height: 1.4; }
.fec-app .fec-date { min-width: 0; }
.fec-app .fec-input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.fec-app .fec-input[type="date"], .fec-app .fec-input[type="time"] { font-variant-numeric: tabular-nums; }
.fec-app .fec-steps { display: inline-flex; gap: 6px; margin-left: auto; }
.fec-app .fec-step { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--blue); display: grid; place-items: center; transition: transform 0.15s, background 0.2s; }
.fec-app .fec-step:active { transform: scale(0.9); background: var(--fill2); }
.fec-app .fec-step .fec-ico { width: 16px; height: 16px; }
.fec-app .fec-link { color: var(--blue); font-size: 15px; padding: 4px 2px; }
.fec-app .fec-link:active { opacity: 0.5; }
.fec-app .fec-badge { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--fill); color: var(--label2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.fec-app .fec-badge.on { background: var(--blue-tint); color: var(--blue); }

/* invalid */
.fec-app .fec-invalid { animation: fec-shake 0.42s var(--ease); }
.fec-app .fec-row.fec-invalid { background-color: var(--red-tint); }
.fec-app .fec-row.fec-invalid .fec-row-label { color: var(--red); }
.fec-app .fec-group.fec-invalid, .fec-app .fec-sigcard.fec-invalid { box-shadow: 0 0 0 2px var(--red); }
.fec-app .fec-dayrow.fec-invalid { background-color: var(--red-tint); }
@keyframes fec-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.fec-app .fec-shake { animation: fec-shake 0.42s var(--ease); }

/* ---------- hours ---------- */
.fec-app .fec-dayrow {
	display: grid; grid-template-columns: 62px 1fr 1fr 74px; gap: 10px; align-items: center; padding: 9px 14px 9px 16px;
	background-image: linear-gradient(var(--sep), var(--sep)); background-repeat: no-repeat;
	background-size: calc(100% - 16px) 0.5px; background-position: left 16px bottom 0; transition: background-color 0.2s;
}
.fec-app .fec-dayrow:last-child { background-image: none; }
.fec-app .fec-day { display: flex; flex-direction: column; line-height: 1.15; }
.fec-app .fec-day strong { font-size: 17px; font-weight: 600; }
.fec-app .fec-dayrow.weekend .fec-day strong { color: var(--label2); }
.fec-app .fec-day-date { font-size: 13px; color: var(--label2); margin-top: 2px; white-space: nowrap; }
.fec-app .fec-timecell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fec-app .fec-timecell small { font-size: 11px; text-transform: uppercase !important; letter-spacing: 0.04em !important; color: var(--label2); padding-left: 4px; }
.fec-app .fec-time { min-height: 38px; padding: 0 10px; background: var(--fill); border-radius: 10px; font-size: 17px; text-align: left; transition: background 0.2s; }
.fec-app .fec-time:focus { background: var(--blue-tint); }
.fec-app .fec-hourscell { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fec-app .fec-hours-pill { display: inline-block; min-width: 56px; text-align: center; padding: 4px 10px; border-radius: 99px; background: var(--fill); color: var(--label2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background 0.25s, color 0.25s; white-space: nowrap; }
.fec-app .fec-hours-pill.ok { background: var(--green-tint); color: var(--green-text); }
.fec-app .fec-hours-pill.warn { background: var(--orange-tint); color: var(--orange-text); }
.fec-app .fec-hours-pill.zero { background: var(--fill); color: var(--label2); }
.fec-app .fec-day-clear { display: none; width: 22px; height: 22px; border-radius: 50%; background: var(--fill); color: var(--label2); place-items: center; }
.fec-app .fec-day-clear .fec-ico { width: 11px; height: 11px; }
.fec-app .fec-dayrow.has-value .fec-day-clear { display: grid; }
.fec-app .fec-total { margin-top: 14px; background: var(--card); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fec-app .fec-total > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.fec-app .fec-total-label { font-size: 17px; font-weight: 600; }
.fec-app .fec-total-val { font-size: 17px; color: var(--label2); white-space: nowrap; }
.fec-app .fec-total-num { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; color: var(--label2); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.fec-app .fec-total.has .fec-total-num { color: var(--blue); }

/* ---------- activities ---------- */
.fec-app .fec-act-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 38px); align-items: center; padding: 0 10px 0 16px; min-height: 46px; background-image: linear-gradient(var(--sep), var(--sep)); background-repeat: no-repeat; background-size: calc(100% - 16px) 0.5px; background-position: left 16px bottom 0; }
.fec-app .fec-act-row:last-child { background-image: none; }
.fec-app .fec-act-head { background-color: var(--fill); min-height: 38px; background-image: none; }
.fec-app .fec-act-head .fec-act-name, .fec-app .fec-act-head .fec-act-day { font-size: 12px; font-weight: 600; color: var(--label2); text-transform: uppercase !important; letter-spacing: 0.03em !important; }
.fec-app .fec-act-day { text-align: center; }
.fec-app .fec-act-name { font-size: 16px; padding: 10px 8px 10px 0; line-height: 1.25; }
.fec-app .fec-act-cell { display: grid; place-items: center; }
.fec-app .fec-tick { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1.6px solid var(--label3); background: transparent; color: #fff; display: grid; place-items: center; transition: background 0.18s, border-color 0.18s, transform 0.18s var(--ease); padding: 0; }
.fec-app .fec-tick::before { content: ""; position: absolute; inset: -9px; }
.fec-app .fec-tick .fec-ico { width: 15px; height: 15px; opacity: 0; transform: scale(0.3); transition: opacity 0.15s, transform 0.25s var(--ease); }
.fec-app .fec-tick.on { background: var(--blue); border-color: var(--blue); }
.fec-app .fec-tick.on .fec-ico { opacity: 1; transform: none; }
.fec-app .fec-tick:active { transform: scale(0.86); }
.fec-app .fec-tick.static { width: 22px; height: 22px; pointer-events: none; }
.fec-app .fec-tick.static .fec-ico { width: 13px; height: 13px; }
.fec-app .fec-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--label3); opacity: 0.6; }
.fec-app .fec-acts-view .fec-act-row.none .fec-act-name { color: var(--label2); }

/* ---------- signatures ---------- */
.fec-app .fec-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fec-app .fec-sigcard { background: var(--card); border-radius: 14px; overflow: hidden; padding-bottom: 2px; }
.fec-app .fec-sigcard-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; gap: 10px; }
.fec-app .fec-sigcard-head strong { font-size: 15px; font-weight: 600; }
.fec-app .fec-sig { position: relative; aspect-ratio: 3 / 1; background: var(--fill); margin: 0 12px 6px; border-radius: 12px; overflow: hidden; }
.fec-app .fec-sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; color: var(--label); background: transparent; }
.fec-app .fec-sig-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--label3); font-size: 20px; letter-spacing: 0.02em; pointer-events: none; transition: opacity 0.2s; }
.fec-app .fec-sig.signed .fec-sig-hint { opacity: 0; }
.fec-app .fec-sig-line { position: absolute; left: 14px; right: 14px; bottom: 26%; height: 0; border-top: 1px dashed var(--label3); pointer-events: none; }
.fec-app .fec-sig-line::before { content: "×"; position: absolute; left: 0; bottom: 2px; font-size: 18px; color: var(--label3); }

/* ---------- buttons ---------- */
.fec-app .fec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; position: relative; transition: transform 0.15s var(--ease), opacity 0.2s, background 0.2s; white-space: nowrap; }
.fec-app .fec-btn:active:not(:disabled) { transform: scale(0.97); opacity: 0.85; }
.fec-app .fec-btn:disabled { opacity: 0.4; cursor: default; }
.fec-app .fec-btn .fec-ico { width: 18px; height: 18px; }
.fec-app .fec-btn-primary { background: var(--blue); color: #fff; }
.fec-app .fec-btn-tinted { background: var(--blue-tint); color: var(--blue); }
.fec-app .fec-btn-danger { background: var(--red-tint); color: var(--red); }
.fec-app .fec-btn-plain { color: var(--label2); background: transparent; font-weight: 500; }
.fec-app .fec-btn-icon { width: 40px; padding: 0; }
.fec-app .fec-btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.fec-app .fec-btn-block { width: 100%; height: 52px; font-size: 17px; border-radius: 14px; }
.fec-app .fec-btn.loading { color: transparent !important; pointer-events: none; }
.fec-app .fec-btn.loading .fec-ico { opacity: 0; }
.fec-app .fec-btn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: fec-spin 0.7s linear infinite; }
.fec-app .fec-btn-icon.spin .fec-ico, .fec-app .fec-spinner { animation: fec-spin 0.8s linear infinite; }
.fec-app .fec-spinner { display: block; width: 28px; height: 28px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--fill2); border-top-color: var(--blue); }
@keyframes fec-spin { to { transform: rotate(360deg); } }
.fec-app .fec-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.fec-app .fec-footnote { text-align: center; color: var(--label2); font-size: 13px; margin-top: 14px; padding: 0 12px; }
.fec-app .fec-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.fec-app .fec-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding: 16px 6px 0; border-top: 0.5px solid var(--sep); color: var(--label2); font-size: 12.5px; line-height: 1.45; }
.fec-app .fec-offices div { display: flex; flex-direction: column; }
.fec-app .fec-offices strong { color: var(--label); font-weight: 600; }

/* ---------- success ---------- */
.fec-app .fec-success { text-align: center; padding: 10px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fec-app .fec-success [data-tag="h2"] { font-size: 28px; font-weight: 700; letter-spacing: -0.02em !important; margin-top: 6px; }
.fec-app .fec-success .fec-subtitle { max-width: 420px; margin-bottom: 18px; }
.fec-app .fec-success .fec-group { width: 100%; max-width: 460px; margin-bottom: 22px; text-align: left; }
.fec-app .fec-success-mark { width: 92px; height: 92px; margin-bottom: 8px; }
.fec-app .fec-checksvg { width: 100%; height: 100%; }
.fec-app .fec-checksvg .c { stroke: var(--green); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: fec-draw 0.7s var(--ease) forwards; stroke-linecap: round; }
.fec-app .fec-checksvg .t { stroke: var(--green); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: fec-draw 0.4s 0.45s var(--ease) forwards; }
@keyframes fec-draw { to { stroke-dashoffset: 0; } }

/* ---------- toasts ---------- */
.fec-app.fec-toasts { position: fixed; top: 14px; left: 0; right: 0; z-index: 100002; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.fec-app .fec-toast { display: inline-flex; align-items: center; gap: 8px; max-width: min(92vw, 520px); background: rgba(44, 44, 46, 0.92); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 15px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-14px) scale(0.96); transition: opacity 0.25s, transform 0.35s var(--ease); line-height: 1.25; }
.fec-app .fec-toast.in { opacity: 1; transform: none; }
.fec-app .fec-toast .fec-ico { width: 18px; height: 18px; }
.fec-app .fec-toast-error .fec-ico { color: #ff6961; }
.fec-app .fec-toast-success .fec-ico { color: #4cd964; }

/* ---------- overlays: sheet + alert ---------- */
.fec-app.fec-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, 0.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.fec-app.fec-overlay.in { opacity: 1; }
.fec-app .fec-sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 0 16px 28px; transform: translateY(60px); transition: transform 0.45s var(--ease); outline: none; -webkit-overflow-scrolling: touch; }
.fec-app .fec-sheet.wide { max-width: 780px; }
.fec-app.fec-overlay.in .fec-sheet { transform: none; }
.fec-app .fec-grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--label3); margin: 8px auto 4px; }
@media (min-width: 760px) { .fec-app.fec-overlay:not(.fec-center) { align-items: center; padding: 24px; } .fec-app .fec-sheet { border-radius: 22px; transform: translateY(30px) scale(0.97); } }
.fec-app.fec-center { align-items: center; }
.fec-app .fec-alert { width: min(300px, 86vw); background: var(--card); border-radius: 16px; overflow: hidden; text-align: center; transform: scale(1.12); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.2s; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.fec-app.fec-overlay.in .fec-alert { transform: none; opacity: 1; }
.fec-app .fec-alert-body { padding: 20px 18px 18px; }
.fec-app .fec-alert-body [data-tag="h3"] { font-size: 17px; font-weight: 600; }
.fec-app .fec-alert-body p { font-size: 13.5px; color: var(--label2); margin-top: 4px; }
.fec-app .fec-alert-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid var(--sep); }
.fec-app .fec-alert-btn { height: 46px; font-size: 17px; color: var(--blue); }
.fec-app .fec-alert-btn + .fec-alert-btn { border-left: 0.5px solid var(--sep); }
.fec-app .fec-alert-btn.strong { font-weight: 600; }
.fec-app .fec-alert-btn.danger { color: var(--red); }
.fec-app .fec-alert-btn:active { background: var(--fill); }
.fec-app .fec-alert-btn:focus-visible { outline-offset: -4px; }

/* ---------- login ---------- */
.fec-app .fec-login { text-align: center; }
.fec-app .fec-login .fec-group { text-align: left; }
.fec-app .fec-lock { width: 64px; height: 64px; border-radius: 18px; margin: 4px auto 14px; background: linear-gradient(145deg, #4da3ff, #007aff); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 122, 255, 0.35); }
.fec-app .fec-lock .fec-ico { width: 30px; height: 30px; }
.fec-app .fec-login [data-tag="h2"] { font-size: 26px; font-weight: 700; letter-spacing: -0.02em !important; }
.fec-app .fec-login .fec-subtitle { margin-bottom: 20px; }
.fec-app .fec-login-error { color: var(--red); font-size: 14px; min-height: 20px; margin: 12px 0 10px; font-weight: 500; }
.fec-app .fec-eye { width: 34px; height: 34px; color: var(--label2); display: grid; place-items: center; margin-right: -8px; }
.fec-app .fec-switch { position: relative; width: 51px; height: 31px; flex: none; }
.fec-app .fec-switch-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.fec-app .fec-switch-track { position: absolute; inset: 0; border-radius: 99px; background: var(--fill2); transition: background 0.25s; }
.fec-app .fec-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.fec-app .fec-switch-input:checked + .fec-switch-track { background: var(--green); }
.fec-app .fec-switch-input:checked + .fec-switch-track::after { transform: translateX(20px); }
.fec-app .fec-switch-input:focus-visible + .fec-switch-track { outline: 3px solid rgba(0, 122, 255, 0.45); outline-offset: 2px; }

/* ---------- submissions: header, stats, toolbar ---------- */
.fec-app .fec-listhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2px 0 20px; }
.fec-app .fec-listhead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fec-app .fec-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.fec-app .fec-stat { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.fec-app .fec-stat-label { font-size: 13px; color: var(--label2); }
.fec-app .fec-stat-val { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fec-app .fec-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.fec-app .fec-search { position: relative; display: flex; align-items: center; gap: 8px; height: 42px; background: var(--fill); border-radius: 12px; padding: 0 12px; color: var(--label2); }
.fec-app .fec-search:focus-within { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.35); }
.fec-app .fec-search .fec-ico { width: 18px; height: 18px; }
.fec-app .fec-search-input { flex: 1; height: 100%; border: 0; background: transparent; font-size: 17px; outline: none !important; color: var(--label); padding: 0; box-shadow: none !important; }
.fec-app .fec-search-input::placeholder { color: var(--label2); opacity: 0.8; }
.fec-app .fec-search-input::-webkit-search-cancel-button, .fec-app .fec-search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.fec-app .fec-search-clear { display: none; width: 20px; height: 20px; border-radius: 50%; background: var(--label3); color: var(--bg); place-items: center; }
.fec-app .fec-search-clear .fec-ico { width: 10px; height: 10px; }
.fec-app .fec-search.has .fec-search-clear { display: grid; }
.fec-app .fec-filterrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fec-app .fec-seg { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; }
.fec-app .fec-seg-btn { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--label); transition: background 0.2s, box-shadow 0.2s; }
.fec-app .fec-seg-btn.on { background: var(--card); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); font-weight: 600; }
.fec-app[data-theme="dark"] .fec-seg-btn.on { background: #636366; }
.fec-app .fec-dates { display: inline-flex; align-items: center; gap: 6px; }
.fec-app .fec-datefilter { flex: none; width: 152px; min-height: 36px; height: 36px; padding: 0 10px; background: var(--fill); border-radius: 10px; font-size: 15px; }
.fec-app .fec-dash { color: var(--label2); }
.fec-app .fec-select { min-height: 36px; height: 36px; width: auto; padding: 0 30px 0 12px; background: var(--fill) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 11px center; border-radius: 10px; font-size: 15px; cursor: pointer; flex: none; }
.fec-app .fec-select option { color: #000; background: #fff; }
.fec-app .fec-filterrow .fec-select { display: none; }
.fec-app .fec-chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.fec-app .fec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fec-app .fec-chip { height: 32px; padding: 0 14px; border-radius: 99px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--label); transition: background 0.2s, color 0.2s, transform 0.15s; }
.fec-app .fec-chip:active { transform: scale(0.95); }
.fec-app .fec-chip.on { background: var(--blue); color: #fff; }

.fec-app .fec-bulk { position: sticky; top: 10px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: color-mix(in srgb, var(--blue) 14%, var(--card)); box-shadow: var(--shadow); animation: fec-pop 0.3s var(--ease); }
@supports not (background: color-mix(in srgb, red, blue)) { .fec-app .fec-bulk { background: var(--card); box-shadow: 0 0 0 2px var(--blue); } }
.fec-app .fec-bulk-left, .fec-app .fec-bulk-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fec-app .fec-bulk-text { font-weight: 600; font-size: 15px; }
@keyframes fec-pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* ---------- table ---------- */
.fec-app .fec-tablecard { background: var(--card); border-radius: 14px; overflow: hidden; }
.fec-app .fec-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fec-app .fec-table th { position: relative; padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase !important; letter-spacing: 0.04em !important; color: var(--label2); white-space: nowrap; background: var(--card); cursor: default; user-select: none; box-shadow: inset 0 -0.5px 0 var(--sep) !important; }
.fec-app .fec-table th.fec-sortable { cursor: pointer; }
.fec-app .fec-table th.fec-sortable:hover { color: var(--label); }
.fec-app .fec-table th.sorted { color: var(--blue); }
.fec-app .fec-sortarrow { display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0; transition: transform 0.2s, opacity 0.2s; }
.fec-app .fec-table th.sorted .fec-sortarrow { opacity: 1; }
.fec-app .fec-table th.sorted.asc .fec-sortarrow { transform: rotate(180deg); }
.fec-app .fec-table td { padding: 13px 14px; font-size: 15px; vertical-align: middle; box-shadow: inset 0 -0.5px 0 var(--sep) !important; color: var(--label); }
.fec-app .fec-table tbody tr { cursor: pointer; transition: background-color 0.15s; }
.fec-app .fec-table tbody tr:last-child td { box-shadow: none !important; }
.fec-app .fec-table tbody tr:hover { background-color: var(--fill); }
.fec-app .fec-table tbody tr.sel { background-color: var(--blue-tint); }
.fec-app .fec-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.fec-app .fec-table .fec-c-id { color: var(--label2); }
.fec-app .fec-table .fec-c-created, .fec-app .fec-table .fec-c-week { color: var(--label2); white-space: nowrap; }
.fec-app .fec-table .fec-c-care strong { font-weight: 600; }
.fec-app .fec-col-check { width: 46px; padding-left: 16px !important; padding-right: 0 !important; }
.fec-app .fec-col-go { width: 34px; padding-left: 0 !important; color: var(--label3); }
.fec-app .fec-col-go .fec-ico { width: 16px; height: 16px; }
.fec-app .fec-check { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--label3); background: transparent center / 14px no-repeat; cursor: pointer; vertical-align: middle; transition: background-color 0.15s, border-color 0.15s; display: inline-block; }
.fec-app .fec-check:checked { background-color: var(--blue); border-color: var(--blue); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
.fec-app .fec-check:indeterminate { background-color: var(--blue); border-color: var(--blue); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'><path d='M6 12h12'/></svg>"); }
.fec-app .fec-empty { text-align: center; padding: 56px 20px 60px; }
.fec-app .fec-empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; margin: 0 auto 14px; color: var(--label2); }
.fec-app .fec-empty-icon .fec-ico { width: 28px; height: 28px; }
.fec-app .fec-empty [data-tag="h3"] { font-size: 20px; font-weight: 600; }
.fec-app .fec-empty p { color: var(--label2); font-size: 15px; margin: 4px 0 16px; }
.fec-app .fec-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 0; }
.fec-app .fec-pageinfo { color: var(--label2); font-size: 14px; }
.fec-app .fec-pager-ctl { display: flex; align-items: center; gap: 8px; }
.fec-app .fec-pagenow { color: var(--label2); font-size: 14px; min-width: 84px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- detail sheet ---------- */
.fec-app .fec-sheetbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 8px 0 10px; background: var(--bg); }
.fec-app .fec-sheetnav { display: flex; align-items: center; gap: 8px; }
.fec-app .fec-sheetpos { color: var(--label2); font-size: 14px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.fec-app .fec-detail-head { text-align: center; padding: 6px 0 4px; }
.fec-app .fec-detail-hours { font-variant-numeric: tabular-nums; }
.fec-app .fec-detail-hours strong { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; color: var(--blue); line-height: 1; }
.fec-app .fec-detail-hours span { font-size: 17px; color: var(--label2); }
.fec-app .fec-detail-head [data-tag="h2"] { font-size: 24px; font-weight: 700; letter-spacing: -0.015em !important; margin-top: 6px; }
.fec-app .fec-pad { padding: 8px 14px; }
.fec-app .fec-mini th { font-size: 12px; font-weight: 600; color: var(--label2); text-align: left; padding: 8px 6px; text-transform: uppercase !important; letter-spacing: 0.03em !important; }
.fec-app .fec-mini td { padding: 8px 6px; font-size: 15px; box-shadow: inset 0 -0.5px 0 var(--sep) !important; font-variant-numeric: tabular-nums; }
.fec-app .fec-mini .num { text-align: right; }
.fec-app .fec-mini tr.off td { color: var(--label3); }
.fec-app .fec-mini tfoot td { font-weight: 700; box-shadow: none !important; padding-top: 12px; }
.fec-app .fec-notes p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; padding: 6px 0; }
.fec-app .muted { color: var(--label2); }
.fec-app .fec-sigview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fec-app .fec-sigfig { background: var(--card); border-radius: 14px; overflow: hidden; }
.fec-app .fec-sigfig img { display: block; width: 100%; background: #fff; }
.fec-app .fec-sigfig figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--label2); flex-wrap: wrap; }
.fec-app .fec-sigfig figcaption strong { color: var(--label); font-weight: 600; }
.fec-app .fec-skeleton { height: 120px; border-radius: 14px; grid-column: 1 / -1; background: linear-gradient(90deg, var(--fill) 25%, var(--fill2) 37%, var(--fill) 63%); background-size: 400% 100%; animation: fec-shimmer 1.3s ease infinite; }
@keyframes fec-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.fec-app .fec-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- tab bar (submissions page) ---------- */
.fec-app .fec-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.fec-app .fec-seg-lg .fec-seg-btn { height: 36px; padding: 0 20px; font-size: 15px; }
.fec-app .fec-filterrow .fec-select.fec-keep { display: inline-block; }
.fec-app .fec-clk .fec-c-care { white-space: nowrap; }
.fec-app .fec-pane[hidden] { display: none !important; }
.fec-app .fec-maplink { color: var(--blue); text-decoration: none; }
.fec-app .fec-note { background: var(--orange-tint); color: var(--orange-text); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 14px 0; text-align: left; }

/* who is clocked in right now */
.fec-app .fec-whoin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 16px; }
.fec-app .fec-whoin-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--label2); text-transform: uppercase !important; letter-spacing: 0.03em !important; margin-right: 4px; }
.fec-app .fec-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6); animation: fec-pulse 1.8s infinite; }
@keyframes fec-pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }
.fec-app .fec-whochip { display: inline-flex; flex-direction: column; align-items: flex-start; background: var(--card); border-radius: 12px; padding: 7px 14px; text-align: left; box-shadow: var(--shadow); transition: transform 0.15s var(--ease); }
.fec-app .fec-whochip:active { transform: scale(0.97); }
.fec-app .fec-whochip strong { font-size: 15px; font-weight: 600; }
.fec-app .fec-whochip span { font-size: 12.5px; color: var(--green-text); font-variant-numeric: tabular-nums; }

/* ---------- time clock page ---------- */
.fec-app.fec-clockapp .fec-hero { margin-bottom: 12px; text-align: center; }
.fec-app.fec-clockapp .fec-logo { margin-bottom: 0; }
.fec-app .fec-face { text-align: center; margin: 4px 0 18px; }
.fec-app .fec-face-time { font-size: clamp(56px, 16vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fec-app .fec-face-ap { font-size: 0.32em; font-weight: 600; margin-left: 6px; letter-spacing: 0; color: var(--label2); }
.fec-app .fec-face-date { color: var(--label2); font-size: 17px; margin-top: 6px; }
.fec-app .fec-stage { min-height: 260px; }
.fec-app .fec-view { animation: fec-view-in 0.45s var(--ease); }
@keyframes fec-view-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.fec-app .fec-view-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em !important; text-align: center; }
.fec-app .fec-view-sub { text-align: center; margin: 4px 0 18px; }
.fec-app .fec-centered { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.fec-app .fec-center-link { display: block; margin: 16px auto 0; font-size: 15px; }
.fec-app .fec-offices-1 { grid-template-columns: 1fr; text-align: center; }
.fec-app .fec-offices-1 div { align-items: center; }

.fec-app .fec-staff { margin-top: 12px; max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fec-app .fec-staff-row { width: 100%; text-align: left; min-height: 60px; gap: 14px; }
.fec-app .fec-staff-row:active { background-color: var(--fill); }
.fec-app .fec-staff-name { font-size: 18px; font-weight: 500; flex: 1; }
.fec-app .fec-staff-row .fec-go { color: var(--label3); width: 16px; height: 16px; }
.fec-app .fec-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-size: 16px; font-weight: 600; flex: none; letter-spacing: 0.02em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.fec-app .fec-avatar.big { width: 76px; height: 76px; font-size: 28px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }

.fec-app .fec-pin-who { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 4px; }
.fec-app .fec-pin-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.fec-app .fec-dots { display: flex; justify-content: center; gap: 16px; margin: 14px 0 6px; min-height: 16px; }
.fec-app .fec-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--label3); transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease); }
.fec-app .fec-dots i.on { background: var(--label); border-color: var(--label); transform: scale(1.08); }
.fec-app .fec-pin-error { color: var(--red); font-size: 14px; font-weight: 500; min-height: 20px; margin: 4px 0; }
.fec-app .fec-keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; margin: 8px 0 16px; justify-content: center; }
.fec-app .fec-key { width: 76px; height: 76px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 30px; font-weight: 400; transition: background 0.12s, transform 0.12s var(--ease); box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.fec-app .fec-key:active { background: var(--fill2); transform: scale(0.93); }
.fec-app .fec-key-del { background: transparent; box-shadow: none; color: var(--label2); }
.fec-app .fec-key-del .fec-ico { width: 26px; height: 26px; }
.fec-app.fec-clockapp .fec-btn-block { max-width: 340px; }

.fec-app .fec-bigicon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; }
.fec-app .fec-bigicon.warn { background: var(--orange-tint); color: var(--orange); }
.fec-app .fec-bigicon .fec-ico { width: 34px; height: 34px; }
.fec-app .fec-centered [data-tag="h2"] { font-size: 24px; font-weight: 700; letter-spacing: -0.02em !important; }
.fec-app .fec-centered .fec-subtitle { max-width: 360px; margin-bottom: 8px; }
.fec-app .fec-centered .fec-btn { margin-top: 6px; }

.fec-app .fec-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 15px; font-weight: 600; margin-top: 2px; }
.fec-app .fec-status.in { background: var(--green-tint); color: var(--green-text); }
.fec-app .fec-status.out { background: var(--fill); color: var(--label2); }
.fec-app .fec-status-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.fec-app .fec-status.in .fec-status-dot { animation: fec-pulse 1.8s infinite; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6); }
.fec-app .fec-running { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-height: 8px; margin: 2px 0; }
.fec-app .fec-running:empty { display: none; }
.fec-app .fec-punch { position: relative; width: 190px; height: 190px; border-radius: 50%; margin: 14px 0 8px; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; display: grid; place-items: center; transition: transform 0.2s var(--ease), box-shadow 0.2s; touch-action: manipulation; }
.fec-app .fec-punch.in { background: radial-gradient(circle at 30% 25%, #5be37d, #28b84c 70%); box-shadow: 0 14px 36px rgba(52, 199, 89, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.35); }
.fec-app .fec-punch.out { background: radial-gradient(circle at 30% 25%, #ff7a70, #e8281c 70%); box-shadow: 0 14px 36px rgba(255, 59, 48, 0.42), inset 0 2px 6px rgba(255, 255, 255, 0.3); }
.fec-app .fec-punch:active:not(.loading) { transform: scale(0.95); }
.fec-app .fec-punch-ring { position: absolute; inset: -9px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.25; animation: fec-ring 2.4s ease-out infinite; pointer-events: none; }
.fec-app .fec-punch.in .fec-punch-ring { color: #34c759; }
.fec-app .fec-punch.out .fec-punch-ring { color: #ff3b30; }
@keyframes fec-ring { 0% { transform: scale(0.96); opacity: 0.45; } 100% { transform: scale(1.18); opacity: 0; } }
.fec-app .fec-punch.loading .fec-punch-label { opacity: 0; }
.fec-app .fec-punch.loading::after { content: ""; position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: fec-spin 0.7s linear infinite; }
.fec-app .fec-auto { font-size: 15px; color: var(--label2); margin-top: 2px; }
.fec-app .fec-weekcard { width: 100%; max-width: 340px; margin-top: 12px; text-align: left; }
.fec-app .fec-resetbar { width: 100%; max-width: 340px; height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; margin: 6px 0 4px; }
.fec-app .fec-resetbar i { display: block; height: 100%; width: 100%; background: var(--blue); transition: width 8s linear; }
.fec-app .fec-success .fec-group { max-width: 340px; width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.fec-app .fec-stats { grid-template-columns: repeat(2, 1fr); }
	.fec-app .fec-sigs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.fec-app .fec-filterrow .fec-select { display: inline-block; }
	.fec-app .fec-table thead { display: none; }
	.fec-app .fec-table, .fec-app .fec-table tbody, .fec-app .fec-table tr, .fec-app .fec-table td { display: block; }
	.fec-app .fec-table tbody tr { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; padding: 14px 16px 14px 54px; box-shadow: inset 0 -0.5px 0 var(--sep); }
	.fec-app .fec-table tbody tr:last-child { box-shadow: none; }
	.fec-app .fec-table td { padding: 0; box-shadow: none !important; }
	.fec-app .fec-table .fec-col-check { position: absolute; left: 16px; top: 16px; width: auto; padding: 0 !important; }
	.fec-app .fec-table .fec-c-id, .fec-app .fec-table .fec-col-go { display: none; }
	.fec-app .fec-table .fec-c-care { grid-column: 1; grid-row: 1; font-size: 17px; }
	.fec-app .fec-table .fec-c-hours { grid-column: 2; grid-row: 1; text-align: right; }
	.fec-app .fec-table .fec-c-client { grid-column: 1; grid-row: 2; color: var(--label2); }
	.fec-app .fec-table .fec-c-client span::before { content: "for "; }
	.fec-app .fec-table .fec-c-act { grid-column: 2; grid-row: 2; text-align: right; }
	.fec-app .fec-table .fec-c-week { grid-column: 1 / -1; grid-row: 3; font-size: 14px; margin-top: 4px; }
	.fec-app .fec-table .fec-c-created { grid-column: 1 / -1; grid-row: 4; font-size: 13px; }
	.fec-app .fec-clk .fec-c-client span::before { content: none; }
	.fec-app .fec-clk .fec-c-in, .fec-app .fec-clk .fec-c-out { display: inline-block; grid-row: 4; color: var(--label2); font-size: 14px; }
	.fec-app .fec-clk .fec-c-in { grid-column: 1; }
	.fec-app .fec-clk .fec-c-out { grid-column: 2; text-align: right; }
	.fec-app .fec-clk .fec-c-in span::before { content: 'In '; }
	.fec-app .fec-clk .fec-c-out span::before { content: 'Out '; }
	.fec-app .fec-clk .fec-c-method { grid-row: 2 !important; }
	.fec-app .fec-listhead-actions { width: 100%; }
	.fec-app .fec-listhead-actions .fec-btn-primary { flex: 1 1 100%; order: -1; }
	.fec-app .fec-listhead-actions .fec-btn-tinted:not(.fec-btn-icon) { flex: 1 1 0; }
	.fec-app .fec-datefilter { flex: 1 1 0; width: auto; min-width: 0; }
	.fec-app .fec-dates { display: flex; flex: 1 1 100%; width: 100%; min-width: 0; }
	.fec-app .fec-pager { justify-content: center; }
}
@media (max-width: 560px) {
	.fec-app { font-size: 16px; }
	.fec-app .fec-keypad { grid-template-columns: repeat(3, 70px); gap: 12px 18px; }
	.fec-app .fec-key { width: 70px; height: 70px; font-size: 28px; }
	.fec-app .fec-punch { width: 172px; height: 172px; }
	.fec-app .fec-tabbar { justify-content: center; }
	.fec-app .fec-row-label { flex-basis: 108px; font-size: 16px; }
	.fec-app .fec-input { font-size: 16px; }
	.fec-app .fec-dayrow { grid-template-columns: 56px 1fr 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 4px; padding: 10px 12px 10px 14px; align-items: start; }
	.fec-app .fec-day { grid-column: 1; grid-row: 1; }
	.fec-app .fec-hourscell { grid-column: 1; grid-row: 2; align-items: flex-start; }
	.fec-app .fec-timecell { grid-row: 1 / span 2; align-self: center; }
	.fec-app .fec-timecell:nth-of-type(2) { grid-column: 2; }
	.fec-app .fec-timecell:nth-of-type(3) { grid-column: 3; }
	.fec-app .fec-time { padding: 0 10px; font-size: 16px; }
	.fec-app .fec-time::-webkit-calendar-picker-indicator { display: none; }
	.fec-app .fec-hours-pill { min-width: 52px; padding: 3px 6px; font-size: 14px; }
	.fec-app .fec-day-clear { position: absolute; right: 10px; top: 7px; width: 20px; height: 20px; }
	.fec-app .fec-dayrow { position: relative; }
	.fec-app .fec-act-row { grid-template-columns: repeat(7, 1fr); padding: 8px 12px 10px 14px; row-gap: 6px; }
	.fec-app .fec-act-name { grid-column: 1 / -1; padding: 4px 0 0; font-size: 15px; }
	.fec-app .fec-act-head { padding-top: 6px; padding-bottom: 6px; }
	.fec-app .fec-act-head .fec-act-name { display: none; }
	.fec-app .fec-sigview { grid-template-columns: 1fr; }
	.fec-app .fec-offices { grid-template-columns: 1fr; }
	.fec-app .fec-total-num { font-size: 32px; }
}
@media (max-width: 380px) {
	.fec-app .fec-row-label { flex-basis: 92px; }
	.fec-app .fec-day-date { font-size: 12px; }
	.fec-app .fec-dayrow { grid-template-columns: 50px 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.fec-app *, .fec-app *::before, .fec-app *::after, .fec-app.fec-overlay, .fec-app.fec-overlay * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print { .fec-app.fec-toasts, .fec-app.fec-overlay { display: none !important; } }


/* =====================================================================
   Desktop layouts that use the full width
   ===================================================================== */
.fec-app input, .fec-app textarea, .fec-app select { -webkit-user-select: text; user-select: text; } /* some themes block text selection, which breaks typing on iOS */
.fec-app .fec-iconbtn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue-tint); color: var(--blue); transition: transform 0.15s var(--ease), background 0.2s; }
.fec-app .fec-iconbtn:active { transform: scale(0.9); }
.fec-app .fec-iconbtn:hover { background: var(--fill2); }
.fec-app .fec-iconbtn .fec-ico { width: 18px; height: 18px; }
.fec-app .fec-col-print { width: 52px; padding-left: 0 !important; padding-right: 0 !important; text-align: center; }
.fec-app .fec-sigcap { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--label2); flex-wrap: wrap; }
.fec-app .fec-sigcap strong { color: var(--label); font-weight: 600; }

@media (min-width: 1000px) {
	/* form: logo + title on one line, then two columns */
	.fec-app[data-fec-mode="form"] .fec-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: center; margin-bottom: 26px; }
	.fec-app[data-fec-mode="form"] .fec-hero .fec-logo { grid-row: 1 / span 2; margin: 0; }
	.fec-app[data-fec-mode="form"] .fec-hero .fec-title { align-self: end; }
	.fec-app[data-fec-mode="form"] .fec-hero .fec-subtitle { align-self: start; }
	.fec-app .fec-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: 32px; align-items: start; }
	.fec-app .fec-form > .fec-col { display: block; }
	.fec-app .fec-col { min-width: 0; }
	.fec-app .fec-form > .fec-actions, .fec-app .fec-form > .fec-footnote { grid-column: 1 / -1; }
	.fec-app .fec-actions { flex-direction: row; justify-content: center; gap: 14px; }
	.fec-app .fec-actions .fec-btn-block { width: 360px; max-width: 100%; }
	.fec-app .fec-acts .fec-act-row { grid-template-columns: minmax(0, 1fr) repeat(7, 46px); }
	.fec-app .fec-offices { max-width: 760px; }
}

@media (min-width: 900px) {
	/* time clock: brand + big clock on the left, the action card on the right */
	.fec-app.fec-clockapp { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); column-gap: clamp(32px, 6vw, 96px); align-items: center; min-height: min(78vh, 760px); }
	.fec-app.fec-clockapp .fec-hero { grid-column: 1; grid-row: 1; text-align: left; align-self: end; margin: 0 0 8px; }
	.fec-app.fec-clockapp .fec-face { grid-column: 1; grid-row: 2; text-align: left; margin: 0; align-self: center; }
	.fec-app.fec-clockapp .fec-face-time { font-size: clamp(84px, 9vw, 132px); }
	.fec-app.fec-clockapp .fec-face-date { font-size: 22px; }
	.fec-app.fec-clockapp .fec-offices-1 { grid-column: 1; grid-row: 3; border-top: 0; text-align: left; align-self: start; padding-left: 0; }
	.fec-app.fec-clockapp .fec-offices-1 div { align-items: flex-start; }
	.fec-app.fec-clockapp .fec-stage { grid-column: 2; grid-row: 1 / span 3; background: var(--card); border-radius: 28px; padding: 34px 32px; box-shadow: var(--shadow); min-height: 460px; display: flex; flex-direction: column; justify-content: center; }
	.fec-app.fec-clockapp .fec-stage .fec-view { --card: var(--bg); width: 100%; }
}

/* the signed-in submissions page uses the extra width for a roomier table */
@media (min-width: 1200px) {
	.fec-app[data-fec-mode="list"] .fec-table td, .fec-app[data-fec-mode="list"] .fec-table th { padding-left: 18px; padding-right: 18px; }
}

/* =====================================================================
   Phones
   ===================================================================== */
@media (max-width: 760px) {
	.fec-app .fec-col-print { position: absolute; right: 10px; bottom: 8px; width: auto; padding: 0 !important; }
	.fec-app .fec-table tbody tr { padding-bottom: 20px; }
	.fec-app .fec-tabbar { position: sticky; top: 0; z-index: 8; background: var(--bg); padding: 8px 0; margin-top: -8px; }
}
@media (max-width: 560px) {
	.fec-app .fec-hero .fec-logo img { height: 44px; }
	.fec-app .fec-sheet { padding-left: 12px; padding-right: 12px; }
	.fec-app .fec-detail-actions .fec-btn { flex: 1 1 calc(50% - 10px); }
	.fec-app .fec-listhead .fec-title { font-size: 28px; }
	.fec-app .fec-bulk { top: 56px; }
}

.fec-app .fec-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fec-app [data-tag] { display: block; }

/* phones and tablets: one column, same order as the paper form */
@media (max-width: 999px) {
	.fec-app .fec-form { display: flex; flex-direction: column; }
	.fec-app .fec-form > .fec-col { display: contents; }
	.fec-app .fec-s-details { order: 1; }
	.fec-app .fec-s-hours { order: 2; }
	.fec-app .fec-s-activity { order: 3; }
	.fec-app .fec-s-notes { order: 4; }
	.fec-app .fec-s-sign { order: 5; }
	.fec-app .fec-form > .fec-actions { order: 6; }
	.fec-app .fec-form > .fec-footnote { order: 7; }
}
.fec-app .fec-row { color: var(--label); }

@media (max-width: 560px) {
	.fec-app .fec-tabbar { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
	.fec-app .fec-tabbar .fec-seg { flex: 1 1 auto; min-width: 0; }
	.fec-app .fec-tabbar .fec-seg-btn { flex: 1; padding: 0 10px; }
	.fec-app .fec-tabbar > .fec-btn { width: 40px; padding: 0; flex: none; }
	.fec-app .fec-tabbar > .fec-btn span:last-child { display: none; }
}

@media (max-width: 420px) {
	.fec-app .fec-pager-ctl { flex-wrap: wrap; justify-content: center; max-width: 100%; }
	.fec-app .fec-pagenow { min-width: 0; }
}

/* =====================================================================
   v1.3  Log notes, caregiver profile, records calendar
   ===================================================================== */
.fec-app .fec-avatar-img { object-fit: cover; display: block; background: var(--fill2); }
.fec-app .fec-avatar.xl { width: 92px; height: 92px; font-size: 34px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16); }
.fec-app .fec-btn-linkbtn { text-decoration: none !important; }
.fec-app a.fec-btn-primary, .fec-app a.fec-btn-primary:hover { color: #fff; }
.fec-app a.fec-btn-tinted, .fec-app a.fec-btn-tinted:hover { color: var(--blue); }
.fec-app .fec-btn-disabled { opacity: 0.5; }
.fec-app .fec-btn .fec-ico { width: 18px; height: 18px; flex: none; }
.fec-app .fec-badge-red { background: var(--red-tint); color: var(--red); }
.fec-app .fec-chip-alert.on { background: var(--red); }
.fec-app .fec-act-head { padding-top: 5px; padding-bottom: 5px; }
.fec-app .fec-act-head .fec-act-day b { display: block; font-weight: 600; }
.fec-app .fec-act-date { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0 !important; text-transform: none !important; color: var(--label2); margin-top: 1px; font-variant-numeric: tabular-nums; }
.fec-app .fec-seg-wide { display: flex; width: 100%; }
.fec-app .fec-seg-wide .fec-seg-btn { flex: 1; }
.fec-app .fec-row .fec-seg-wide { flex: 1; max-width: 340px; margin-left: auto; }
.fec-app .fec-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 2px; }
.fec-app .fec-tag { display: inline-block; padding: 4px 11px; border-radius: 99px; background: var(--blue-tint); color: var(--blue); font-size: 13px; font-weight: 500; }
.fec-app .fec-scrollx { overflow-x: auto; }
.fec-app .fec-scrollx table { min-width: 520px; }
.fec-app .fec-h3-alert { color: var(--red); }
.fec-app .fec-alertbox { background: var(--red-tint); }
.fec-app .fec-concernline { color: var(--red); font-size: 14px; }
.fec-app .fec-alertgroup { box-shadow: inset 0 0 0 1.5px var(--red-tint); }
.fec-app .fec-moodval { display: inline-flex; align-items: center; gap: 6px; }
.fec-app .fec-face-ico { display: inline-flex; width: 22px; height: 22px; flex: none; color: var(--label2); }
.fec-app .fec-face-ico svg { width: 100%; height: 100%; }
.fec-app .fec-face-good { color: var(--green-text); } .fec-app .fec-face-fair { color: #7aa800; }
.fec-app .fec-face-okay { color: var(--orange-text); } .fec-app .fec-face-poor { color: var(--red); }
.fec-app .fec-painbig { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 18px; }
.fec-app .fec-painbig .fec-face-ico { width: 30px; height: 30px; }
.fec-app .fec-notes-p { padding: 6px 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fec-app .fec-sigshow { background: var(--card); border-radius: 14px; overflow: hidden; }
.fec-app .fec-sigshow img { display: block; width: 100%; background: #fff; }
.fec-app .fec-sigshow-empty { padding: 34px 10px; text-align: center; color: var(--label3); }
.fec-app .fec-sigcap { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--label2); flex-wrap: wrap; }
.fec-app .fec-scrollx, .fec-app .fec-detail { -webkit-overflow-scrolling: touch; }

/* body map */
.fec-app { --fec-body: #eef1f6; --fec-body-line: #9aa5b5; }
.fec-app[data-theme="dark"] { --fec-body: #2c2c2e; --fec-body-line: #8e8e93; }
.fec-app .fec-bodymap { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 4px; }
.fec-app .fec-bodybar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.fec-app .fec-bodyzoom .fec-seg-btn { padding: 0 11px; min-width: 40px; }
.fec-app .fec-bodyimg.zoomed { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.fec-app .fec-bodyimg.zoomed .fec-body-svg { max-width: none; }
.fec-app .fec-bodysex .fec-seg-btn { height: 30px; padding: 0 14px; font-size: 13.5px; }
.fec-app .fec-bodyimg { width: min(100%, 520px); margin-left: auto; margin-right: auto; }
.fec-app .fec-bodyimg { border-radius: 18px; overflow: hidden; }
.fec-app[data-theme="dark"] .fec-bodyimg { background: #f2f0f7; } /* the outlines are dark, so keep a light backdrop in dark mode */
.fec-app .fec-body-svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.fec-app .fec-body-svg.live { cursor: crosshair; }
.fec-app .fec-body-svg circle[fill="#ff3b30"] { filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }

/* log notes form layout */
.fec-app[data-fec-mode="lognotes"] .fec-hero { text-align: center; }
.fec-app .fec-lnform { display: block; }
.fec-app .fec-ln-grid { display: block; }
.fec-app .fec-ln-col { min-width: 0; }
@media (min-width: 1000px) {
	.fec-app .fec-ln-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
	.fec-app[data-fec-mode="lognotes"] .fec-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: center; text-align: left; margin-bottom: 26px; }
	.fec-app[data-fec-mode="lognotes"] .fec-hero .fec-logo { grid-row: 1 / span 2; margin: 0; }
}
.fec-app .fec-careitem { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 6px 16px; cursor: pointer; background-image: linear-gradient(var(--sep), var(--sep)); background-repeat: no-repeat; background-size: calc(100% - 16px) 0.5px; background-position: left 16px bottom 0; }
.fec-app .fec-careitem:last-child { background-image: none; }
.fec-app .fec-careitem-label { font-size: 16px; }
.fec-app .fec-careother { cursor: default; }
.fec-app .fec-careother .fec-input { text-align: right; flex: 1; min-width: 0; }
.fec-app .fec-meds { padding: 6px 16px 12px; background: var(--blue-tint); }
.fec-app .fec-meds[hidden] { display: none; }
.fec-app .fec-medhead { display: flex; flex-direction: column; padding: 4px 0 8px; font-size: 13px; color: var(--label2); }
.fec-app .fec-medhead strong { color: var(--label); font-size: 14px; }
.fec-app .fec-medrow { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; padding-right: 26px; }
.fec-app .fec-medcell small, .fec-app .fec-bpcell small { display: block; font-size: 11px; color: var(--label2); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.fec-app .fec-medcell .fec-input, .fec-app .fec-bpcell .fec-input { background: var(--card); border-radius: 9px; padding: 8px 9px; height: 38px; width: 100%; min-width: 0; text-align: left; }
.fec-app .fec-medrow-del { position: absolute; right: 0; top: 22px; }
.fec-app .fec-addrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; }
.fec-app .fec-addrow .fec-ico { width: 16px; height: 16px; }
.fec-app .fec-bprow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 28px 12px 0; border-bottom: 0.5px solid var(--sep); }
.fec-app .fec-bprow:last-child { border-bottom: 0; }
.fec-app .fec-bp-del { position: absolute; right: 0; top: 10px; }
.fec-app .bp-note { grid-column: span 2; }
.fec-app .fec-bp-actions { padding: 10px 0 4px; }
@media (min-width: 900px) {
	.fec-app .fec-bprow { grid-template-columns: 1.3fr 1fr repeat(5, minmax(0, 0.8fr)) 1.4fr; }
	.fec-app .bp-note { grid-column: auto; }
}
.fec-app .fec-painscale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.fec-app .fec-painbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 10px; background: var(--fill); transition: background 0.15s, transform 0.15s var(--ease); }
.fec-app .fec-painbtn .fec-face-ico { width: clamp(16px, 3.2vw, 24px); height: clamp(16px, 3.2vw, 24px); }
.fec-app .fec-painbtn b { font-size: 12px; font-weight: 600; color: var(--label2); }
.fec-app .fec-painbtn:active { transform: scale(0.93); }
.fec-app .fec-painbtn.on { background: var(--blue); }
.fec-app .fec-painbtn.on b, .fec-app .fec-painbtn.on .fec-face-ico { color: #fff; }
.fec-app .fec-paincap { display: flex; justify-content: space-between; font-size: 11px; color: var(--label2); padding: 6px 2px 2px; }
.fec-app .fec-maphead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; }
.fec-app .fec-markhint { margin: 0; font-size: 13px; }
.fec-app .fec-moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 0 4px; }
.fec-app .fec-moodbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 12px; background: var(--fill); font-size: 14px; font-weight: 500; transition: background 0.15s, transform 0.15s var(--ease); }
.fec-app .fec-moodbtn .fec-face-ico { width: 32px; height: 32px; }
.fec-app .fec-moodbtn:active { transform: scale(0.95); }
.fec-app .fec-moodbtn.on { background: var(--blue); color: #fff; }
.fec-app .fec-moodbtn.on .fec-face-ico { color: #fff; }
.fec-app .fec-savestate { color: var(--green-text); }
@media (max-width: 560px) {
	.fec-app .fec-medrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fec-app .fec-med-name { grid-column: 1 / -1; }
	.fec-app .fec-medrow-del { top: 0; }
	.fec-app .fec-painscale { gap: 2px; }
	.fec-app .fec-row .fec-seg-wide { max-width: none; }
}

/* lock + directory */
.fec-app .fec-lockwrap { max-width: 440px; margin: 24px auto; }
.fec-app .fec-pin-input { text-align: right; font-size: 20px; letter-spacing: 0.3em; }
.fec-app .fec-login .fec-pin-who { margin-bottom: 4px; }

/* profile page */
.fec-app .fec-pf-top { text-align: center; margin-bottom: 18px; }
.fec-app .fec-pf-top .fec-logo img { height: 52px; width: auto; }
.fec-app .fec-pf-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 900px) { .fec-app .fec-pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.fec-app .fec-pf-card { background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.fec-app .fec-pf-who { display: flex; align-items: center; gap: 16px; position: relative; flex-wrap: wrap; }
.fec-app .fec-pf-who-text { min-width: 0; flex: 1; }
.fec-app .fec-pf-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em !important; line-height: 1.15; overflow-wrap: anywhere; }
.fec-app .fec-pf-sub { font-size: 14px; color: var(--label2); margin-top: 2px; }
.fec-app .fec-pf-out { margin-left: auto; }
.fec-app .fec-pf-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--fill); color: var(--label2); }
.fec-app .fec-pf-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--label3); }
.fec-app .fec-pf-status.in { background: var(--green-tint); color: var(--green-text); }
.fec-app .fec-pf-status.in i { background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: fec-pulse 1.8s infinite; }
.fec-app .fec-pf-status.missed { background: var(--orange-tint); color: var(--orange-text); }
@keyframes fec-pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }
.fec-app .fec-pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; }
.fec-app .fec-pf-stat { background: var(--bg); border-radius: 14px; padding: 10px 6px; text-align: center; }
.fec-app .fec-pf-stat strong { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fec-app .fec-pf-stat span { font-size: 11.5px; color: var(--label2); }
.fec-app .fec-pf-sect { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; color: var(--label2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.fec-app .fec-pf-sect .fec-ico { width: 18px; height: 18px; }
.fec-app .fec-pf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fec-app .fec-pf-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); flex: none; }
.fec-app .fec-pf-ico.heart { background: var(--red-tint); color: var(--red); }
.fec-app .fec-pf-ico .fec-ico { width: 24px; height: 24px; }
.fec-app .fec-pf-title { font-size: 19px; font-weight: 700; letter-spacing: -0.015em !important; }
.fec-app .fec-pf-list { display: flex; flex-direction: column; gap: 2px; }
.fec-app .fec-pf-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; background: var(--bg); margin-bottom: 6px; transition: background 0.15s, transform 0.15s var(--ease); }
.fec-app .fec-pf-item:active { transform: scale(0.985); }
.fec-app .fec-pf-item-main { min-width: 0; }
.fec-app .fec-pf-item-main strong { display: block; font-size: 15px; }
.fec-app .fec-pf-item-main small { display: block; color: var(--label2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fec-app .fec-pf-item .fec-go { width: 16px; height: 16px; color: var(--label3); flex: none; }
.fec-app .fec-pf-empty { color: var(--label2); text-align: center; padding: 18px 8px; background: var(--bg); border-radius: 12px; font-size: 14px; }
.fec-app .fec-pf-more { display: block; margin: 2px auto 0; }
.fec-app .fec-pf-nfc .fec-pf-sect { margin-top: 20px; }
.fec-app .fec-pf-nfc-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--fill2); border-radius: 14px; }
.fec-app .fec-pf-nfc-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--label2) !important; text-decoration: none; }
.fec-app .fec-pf-nfc-row .fec-btn { flex: none; }
.fec-app .fec-pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fec-app .fec-pf-actions .fec-btn { flex: 1 1 140px; }
.fec-app .fec-pf-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.fec-app .fec-pf-listfull { max-height: none; }
.fec-app .fec-rec-head { margin-bottom: 14px; }
.fec-app .fec-rec-stats { margin-bottom: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fec-app .fec-rec-list { display: flex; flex-direction: column; }
.fec-app .fec-rec-list .fec-pf-item { background: var(--card); }
@media (min-width: 1000px) { .fec-app .fec-rec-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; } }

/* day popup */
.fec-app .fec-dayline { gap: 10px; }
.fec-app .fec-dayline-main { min-width: 0; flex: 1; }
.fec-app .fec-dayline-main strong { display: block; font-size: 16px; }
.fec-app .fec-dayline-main small { display: block; color: var(--label2); font-size: 13px; }
.fec-app .fec-daycard { margin-bottom: 12px; }
.fec-app .fec-daycard .fec-tags { padding: 2px 0; }

/* calendar */
.fec-app .fec-cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fec-app .fec-cal-nav { display: flex; gap: 6px; }
.fec-app .fec-cal-title { flex: 1; font-size: 22px; font-weight: 700; letter-spacing: -0.02em !important; min-width: 140px; }
.fec-app .fec-cal-tools { display: flex; align-items: center; gap: 8px; }
.fec-app .fec-cal-pick { height: 36px; width: 150px; background: var(--fill); border-radius: 10px; padding: 0 10px; }
.fec-app .fec-cal-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fec-app .fec-cal-stat { background: var(--bg); border-radius: 12px; padding: 8px 12px; display: flex; align-items: baseline; gap: 6px; }
.fec-app .fec-cal-stat strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.fec-app .fec-cal-stat span { font-size: 12.5px; color: var(--label2); }
.fec-app .fec-cal-dow, .fec-app .fec-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fec-app .fec-cal-dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--label2); text-transform: uppercase; padding: 4px 0; }
.fec-app .fec-cal-cell { position: relative; aspect-ratio: 1 / 0.92; min-height: 54px; border-radius: 12px; background: var(--bg); padding: 5px 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; color: var(--label); transition: transform 0.15s var(--ease), background 0.15s; }
.fec-app .fec-cal-cell.blank { background: transparent; pointer-events: none; }
.fec-app .fec-cal-cell:not(.blank):active { transform: scale(0.94); }
.fec-app .fec-cal-cell:not(.blank):hover { background: var(--fill); }
.fec-app .fec-cal-cell.has { background: var(--blue-tint); }
.fec-app .fec-cal-cell.today { box-shadow: inset 0 0 0 2px var(--blue); }
.fec-app .fec-cal-num { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fec-app .fec-cal-hrs { font-size: 11.5px; font-weight: 700; color: var(--green-text); background: var(--green-tint); border-radius: 99px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.fec-app .fec-cal-hrs.live { color: var(--blue); background: var(--blue-tint); }
.fec-app .fec-cal-hrs.warn { color: var(--orange-text); background: var(--orange-tint); }
.fec-app .fec-cal-dots { display: flex; gap: 3px; margin-top: auto; }
.fec-app i.lg { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: middle; }
.fec-app i.lg.clock { background: var(--green); } .fec-app i.lg.sheet { background: var(--blue); }
.fec-app i.lg.note { background: var(--orange); } .fec-app i.lg.flag { background: var(--red); }
.fec-app .fec-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--label2); }
.fec-app .fec-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
	.fec-app .fec-pf-card { padding: 16px; border-radius: 18px; }
	.fec-app .fec-cal-cell { min-height: 46px; padding: 4px 2px; border-radius: 9px; }
	.fec-app .fec-cal-hrs { font-size: 10px; padding: 0 4px; }
	.fec-app .fec-cal-tools { width: 100%; }
	.fec-app .fec-cal-pick { flex: 1; }
	.fec-app .fec-avatar.xl { width: 72px; height: 72px; font-size: 28px; }
}


/* =====================================================================
   Time clock portal (v1.4): animated, glassy, iOS / Tesla-style
   ===================================================================== */
.fec-app.fec-clockapp {
	--glass: rgba(255, 255, 255, 0.64);
	--glass-b: rgba(255, 255, 255, 0.85);
	--tile: rgba(255, 255, 255, 0.72);
	--glow: 0 30px 80px rgba(20, 40, 90, 0.16), 0 2px 6px rgba(20, 40, 90, 0.06);
	--a1: #5ac8fa; --a2: #007aff; --a3: #34c759; --a4: #af82ff;
	position: relative; overflow: hidden; isolation: isolate;
}
.fec-app.fec-clockapp[data-theme="dark"] {
	--glass: rgba(28, 28, 32, 0.56);
	--glass-b: rgba(255, 255, 255, 0.1);
	--tile: rgba(255, 255, 255, 0.07);
	--glow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
	.fec-app.fec-clockapp[data-theme="auto"] {
		--glass: rgba(28, 28, 32, 0.56);
		--glass-b: rgba(255, 255, 255, 0.1);
		--tile: rgba(255, 255, 255, 0.07);
		--glow: 0 30px 90px rgba(0, 0, 0, 0.6);
		}
}
/* sky colours follow the time of day at the office */

.fec-app.fec-clockapp > *:not(.fec-aurora) { position: relative; z-index: 1; }
.fec-app.fec-clockapp > .fec-themebtn { position: absolute; }

/* ---------- Background: soft sky ----------
   Light: a soft pink-and-blue sky with feathery, softly glowing clouds drifting by, a happy sun, and now and then a little bird flying past.
   Dark: a dreamy night sky with twinkling stars, a sleepy moon, and now and then a falling star.
   Everything is painted once and then only moved with transform / opacity (cheap for the GPU); birds and falling stars are added by a small timer in clock.js. */
.fec-app.fec-clockapp {
	--sky1: #cfe8ff; --sky2: #efdcf7; --sky3: #ffe6ee;
	--d1: #bfe4ff; --d2: #d6e7ff; --d3: #f0def9; --d4: #ffe0ec; --d5: #fff0e0;
	--clc: 255 255 255; --clg: 238 244 255; --cl: #ffffff; --cl-sh: #ffdcec; --cl-glow: rgba(255, 160, 205, 0.32); --cl-o: 1; --ink: #7b5d92; --face-o: 1;
}
.fec-app.fec-clockapp[data-tod="dawn"] { --d1: #c9defc; --d2: #e6dcfb; --d3: #ffd9ea; --d4: #ffd8cf; --d5: #ffeccf; --cl-sh: #ffd6dc; --clg: 255 236 240; }
.fec-app.fec-clockapp[data-tod="dusk"] { --d1: #a9b9f0; --d2: #cdb6ef; --d3: #f2b8dc; --d4: #ffc7c4; --d5: #ffdcc0; --cl-sh: #f3c2e6; --cl-glow: rgba(214, 140, 220, 0.34); --clg: 255 224 244; }
.fec-app.fec-clockapp[data-theme="dark"] {
	--sky1: #0a0f2e; --sky2: #1b1b4d; --sky3: #3a2a68;
	--clc: 190 192 255; --clg: 130 120 255; --cl: #b8b5ff; --cl-sh: #7b6bd0; --cl-glow: rgba(120, 110, 255, 0.25); --cl-o: 0.34; --ink: #2c2560; --face-o: 0.7;
}
.fec-app.fec-clockapp > *:not(.fec-aurora) { position: relative; z-index: 1; }
.fec-app.fec-clockapp > .fec-themebtn { position: absolute; }
.fec-app .fec-aurora { position: fixed !important; inset: 0; z-index: -1 !important; overflow: hidden; pointer-events: none; contain: strict; background: var(--sky2); }

/* two sky layers that cross-fade when the theme changes */
.fec-app .fec-sky-layer { position: absolute; inset: 0; overflow: hidden; transition: opacity 1.4s ease; }
.fec-app .fec-sky-day { background: linear-gradient(180deg, var(--d1) 0%, var(--d2) 28%, var(--d3) 58%, var(--d4) 82%, var(--d5) 100%); opacity: 1; }
.fec-app .fec-sky-night { background: linear-gradient(180deg, #0a0f2e 0%, #17184a 42%, #34276a 76%, #55397e 100%); opacity: 0; }
.fec-app.fec-clockapp[data-theme="dark"] .fec-sky-day { opacity: 0; }
.fec-app.fec-clockapp[data-theme="dark"] .fec-sky-night { opacity: 1; }
.fec-app .fec-blob { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; will-change: transform; animation: fec-blob var(--dur, 50s) ease-in-out infinite alternate; }
.fec-app .fec-blob.b1 { left: -38vmax; bottom: -48vmax; background: radial-gradient(circle, rgba(255, 160, 205, 0.6), rgba(255, 160, 205, 0) 65%); }
.fec-app .fec-blob.b2 { right: -42vmax; top: -48vmax; background: radial-gradient(circle, rgba(140, 200, 255, 0.7), rgba(140, 200, 255, 0) 65%); }
.fec-app .fec-sky-night .fec-blob.b1 { background: radial-gradient(circle, rgba(255, 110, 200, 0.26), rgba(255, 110, 200, 0) 65%); }
.fec-app .fec-sky-night .fec-blob.b2 { background: radial-gradient(circle, rgba(120, 100, 255, 0.4), rgba(120, 100, 255, 0) 65%); }
@keyframes fec-blob { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vmax, -6vmax, 0) scale(1.12); } }

/* feathery, softly glowing clouds: soft-edged puffs painted with gradients (no outlines, no faces), so they stay light on the GPU */
.fec-app .fec-clouds { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.fec-app .fec-aurora.on .fec-clouds { opacity: 1; }
.fec-app .fec-cl { position: absolute; left: 0; top: var(--y); width: min(calc(var(--w) * 1.3), 56vw); opacity: calc(var(--o, 1) * var(--cl-o)); will-change: transform; transition: opacity 1.4s ease; animation: fec-drift var(--dur, 140s) linear var(--del, 0s) infinite; }
.fec-app .fec-cl-b { position: relative; display: block; aspect-ratio: 2.2 / 1; background: var(--g); animation: fec-bob var(--bob, 7s) ease-in-out infinite alternate; }
/* long, thin wisps along the base and the top edge give the feathered look */
.fec-app .fec-cl-b::before, .fec-app .fec-cl-b::after { content: ""; position: absolute; pointer-events: none; }
.fec-app .fec-cl-b::before { left: -6%; width: 112%; top: 56%; height: 26%; transform: rotate(-2deg); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(var(--clc) / 0.5) 0%, rgb(var(--clc) / 0.22) 50%, rgb(var(--clc) / 0) 100%); }
.fec-app .fec-cl-b::after { left: 30%; width: 58%; top: 20%; height: 16%; opacity: 0.4; transform: rotate(-3deg); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(var(--clc) / 0.45) 0%, rgb(var(--clc) / 0) 100%); }
.fec-app .fec-cl.v1 { --g: radial-gradient(ellipse 22.2% 30.4% at 35.2% 58.0%, rgb(var(--clc) / 0.9) 0%, rgb(var(--clc) / 0.5) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 20.7% 41.6% at 51.5% 43.6%, rgb(var(--clc) / 0.95) 0%, rgb(var(--clc) / 0.52) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 22.2% 32.0% at 66.3% 56.4%, rgb(var(--clc) / 0.88) 0%, rgb(var(--clc) / 0.48) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 35.5% 16.0% at 50.0% 70.8%, rgb(var(--clc) / 0.6) 0%, rgb(var(--clc) / 0.33) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 37.0% 40.0% at 50.0% 54.8%, rgb(var(--clg) / 0.4) 0%, rgb(var(--clg) / 0.22) 42%, rgb(var(--clg) / 0) 100%); }
.fec-app .fec-cl.v2 { --g: radial-gradient(ellipse 19.2% 28.8% at 30.8% 59.6%, rgb(var(--clc) / 0.85) 0%, rgb(var(--clc) / 0.47) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 23.7% 43.2% at 47.0% 45.2%, rgb(var(--clc) / 0.95) 0%, rgb(var(--clc) / 0.52) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 17.8% 33.6% at 63.3% 51.6%, rgb(var(--clc) / 0.9) 0%, rgb(var(--clc) / 0.5) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 16.3% 24.0% at 75.2% 62.8%, rgb(var(--clc) / 0.7) 0%, rgb(var(--clc) / 0.39) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 37.0% 14.4% at 51.5% 72.4%, rgb(var(--clc) / 0.55) 0%, rgb(var(--clc) / 0.3) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 37.0% 40.0% at 50.0% 54.8%, rgb(var(--clg) / 0.38) 0%, rgb(var(--clg) / 0.21) 42%, rgb(var(--clg) / 0) 100%); }
.fec-app .fec-cl.v3 { --g: radial-gradient(ellipse 26.6% 32.0% at 39.6% 56.4%, rgb(var(--clc) / 0.92) 0%, rgb(var(--clc) / 0.51) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 19.2% 40.0% at 57.4% 45.2%, rgb(var(--clc) / 0.92) 0%, rgb(var(--clc) / 0.51) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 20.7% 27.2% at 72.2% 59.6%, rgb(var(--clc) / 0.8) 0%, rgb(var(--clc) / 0.44) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 38.5% 14.4% at 47.0% 72.4%, rgb(var(--clc) / 0.6) 0%, rgb(var(--clc) / 0.33) 42%, rgb(var(--clc) / 0) 100%), radial-gradient(ellipse 37.0% 40.0% at 50.0% 54.8%, rgb(var(--clg) / 0.4) 0%, rgb(var(--clg) / 0.22) 42%, rgb(var(--clg) / 0) 100%); }
@keyframes fec-drift { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(100vw, 0, 0); } }
@keyframes fec-bob { from { transform: translate3d(0, -7px, 0); } to { transform: translate3d(0, 7px, 0); } }

/* twinkling stars (night only: there are no stars in light mode) */
.fec-app .fec-stars, .fec-app .fec-moon, .fec-app .fec-sun { position: absolute; transition: opacity 1.4s ease; }
.fec-app .fec-stars { inset: 0; opacity: 0; }
.fec-app.fec-clockapp[data-theme="dark"] .fec-stars { opacity: 1; }
.fec-app .fec-star { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7); opacity: 0.3; }
.fec-app .fec-star.sp { border-radius: 0; background: var(--c, #fff6c9); box-shadow: none; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.fec-app .fec-aurora.on .fec-star { animation: fec-tw var(--dur, 3.6s) ease-in-out var(--del, 0s) infinite; }
@keyframes fec-tw { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }

/* sleepy moon */
.fec-app .fec-moon { right: 13%; top: 17%; width: clamp(54px, 9vmin, 84px); opacity: 0; filter: drop-shadow(0 0 18px rgba(255, 240, 170, 0.55)); }
.fec-app.fec-clockapp[data-theme="dark"] .fec-moon { opacity: 1; }
.fec-app .fec-moon svg { display: block; width: 100%; height: auto; }
.fec-app .fec-aurora.on .fec-moon svg { animation: fec-bob 6s ease-in-out infinite alternate; }

/* happy sun (day only) */
.fec-app .fec-sun { right: 13%; top: 16%; width: clamp(64px, 11vmin, 100px); opacity: 1; filter: drop-shadow(0 0 20px rgba(255, 214, 120, 0.65)); }
.fec-app.fec-clockapp[data-theme="dark"] .fec-sun { opacity: 0; }
.fec-app .fec-sun svg { display: block; width: 100%; height: auto; overflow: visible; }
.fec-app .fec-aurora.on .fec-sun svg { animation: fec-bob 6s ease-in-out infinite alternate; }
.fec-app .fec-sun .rays { transform-box: fill-box; transform-origin: center; }
.fec-app .fec-aurora.on .fec-sun .rays { animation: fec-sunspin 80s linear infinite; }
@keyframes fec-sunspin { to { transform: rotate(360deg); } }

/* little birds (added by clock.js now and then) */
.fec-app .fec-birds, .fec-app .fec-shoot { position: absolute; inset: 0; }
.fec-app .fec-bird { position: absolute; left: 0; top: var(--y); width: var(--w); will-change: transform; animation: fec-fly var(--dur, 18s) linear forwards; }
.fec-app .fec-bird.rev { animation-name: fec-fly-r; }
.fec-app .fec-bird > i { display: block; animation: fec-bob var(--bob, 1.4s) ease-in-out infinite alternate; }
.fec-app .fec-bird.rev svg { transform: scaleX(-1); }
.fec-app .fec-bird svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 6px rgba(255, 150, 200, 0.28)); }
.fec-app .fec-bird .b-body { fill: var(--bb, #fff); }
.fec-app .fec-bird .b-belly { fill: var(--bl, #ffd3e2); }
.fec-app .fec-bird .b-wg { fill: var(--bw, #bfe0ff); }
.fec-app .fec-bird .b-wing { transform-box: fill-box; transform-origin: 85% 75%; animation: fec-flap 0.42s ease-in-out infinite alternate; }
@keyframes fec-fly { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(100vw, 0, 0); } }
@keyframes fec-fly-r { from { transform: translate3d(100vw, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }
@keyframes fec-flap { from { transform: rotate(-32deg); } to { transform: rotate(20deg); } }

/* falling stars (night; added by clock.js now and then) */
.fec-app .fec-ss { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; transform: rotate(var(--a)); }
.fec-app .fec-ss i { position: absolute; left: 0; top: -1px; width: var(--len, 120px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 244, 200, 0.95)); opacity: 0; will-change: transform, opacity; animation: fec-shoot 1.25s cubic-bezier(0.3, 0.1, 0.6, 1) forwards; }
.fec-app .fec-ss i::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fffbe0; box-shadow: 0 0 10px 3px rgba(255, 236, 160, 0.85), 0 0 18px 6px rgba(255, 170, 220, 0.4); }
@keyframes fec-shoot { 0% { transform: translate3d(-40px, 0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate3d(var(--run, 320px), 0, 0); opacity: 0; } }

/* This page is an always-on display, so the slow ambient motion (clouds, blobs, twinkling) keeps running even when the device
   says "reduce motion". The faster extras (birds, falling stars) are not started at all in that case. */
@media (prefers-reduced-motion: reduce) {
	.fec-app.fec-clockapp .fec-aurora.on .fec-cl, .fec-app.fec-clockapp .fec-aurora.on .fec-blob, .fec-app.fec-clockapp .fec-aurora.on .fec-star { animation-duration: var(--dur) !important; animation-iteration-count: infinite !important; }
	.fec-app.fec-clockapp .fec-aurora.on .fec-cl-b { animation-duration: var(--bob) !important; animation-iteration-count: infinite !important; }
	.fec-app.fec-clockapp .fec-aurora.on .fec-moon svg, .fec-app.fec-clockapp .fec-aurora.on .fec-sun svg, .fec-app.fec-clockapp .fec-aurora.on .fec-sun .rays { animation: none !important; }
}
.fec-app .fec-aurora.paused * { animation-play-state: paused !important; }

/* weather card (sits under the date): animated SVG scene + a person walking by */
.fec-app .fec-wx { position: relative; overflow: hidden; width: 100%; max-width: 400px; margin: 14px auto 0; padding: 8px 20px 100px 10px; border-radius: 26px; background: var(--tile); border: 1px solid var(--glass-b); animation: fec-wx-in 0.7s var(--ease) both; }
.fec-app .fec-wx[hidden] { display: none; }
.fec-app .fec-wx-main { display: flex; align-items: center; gap: 14px; }
.fec-app .fec-wx-art { width: 92px; height: 92px; flex: none; }
.fec-app .fec-wx-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fec-app .fec-wx-info { min-width: 0; display: flex; flex-direction: column; text-align: left; }
.fec-app .fec-wx-temp { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--label); }
.fec-app .fec-wx-temp small { font-size: 0.4em; font-weight: 600; letter-spacing: 0; margin-left: 2px; vertical-align: top; position: relative; top: 0.35em; color: var(--label2); }
.fec-app .fec-wx-cond { font-size: 16px; font-weight: 600; margin-top: 5px; color: var(--label); }
.fec-app .fec-wx-meta { font-size: 13px; color: var(--label2); margin-top: 2px; }
@keyframes fec-wx-in { from { opacity: 0; transform: translateY(-8px) scale(0.97); } }
@media (min-width: 900px) { .fec-app.fec-clockapp .fec-wx { margin-left: 0; margin-right: auto; } }
@media (max-width: 380px) { .fec-app .fec-wx-art { width: 78px; height: 78px; } .fec-app .fec-wx-temp { font-size: 36px; } }


/* the walk lane along the bottom of the card */
.fec-app .fec-wx-lane { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; pointer-events: none; }
.fec-app .fec-wx-lane::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--label3); opacity: 0.6; }

/* ---------------------------------------------------------------------
   Jelly person. Everything animates through --anim (so the always-on-motion override below keeps working).
   Host attributes drive the acting:  data-mood (weather)  data-act (walk | react | idle)  data-dir (1 | -1)
   one-shots: data-startle (thunder)  data-poke (tap)
   --------------------------------------------------------------------- */
.fec-app .fec-wx-walker { position: absolute; left: 0; bottom: 4px; width: 64px; height: 90px; pointer-events: auto; cursor: pointer; will-change: transform; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
	--st: 0.42s; --aA: 0deg; --aB: 0deg; --sw: 34deg; --lg: 30deg; --eyeY: 1; --umb: #ff6b8b; --spk: #ffd75e;
	--jf1: #ffa3d6; --jf2: #93a8ff; --jf3: #86e6ff; --anim: none; }
.fec-app .fec-wx-walker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fec-app .jf-flip { width: 100%; height: 100%; transition: transform 0.38s cubic-bezier(0.34, 1.9, 0.5, 1); }
.fec-app .fec-wx-walker[data-dir="-1"] .jf-flip { transform: scaleX(-1); }

/* colours: the jelly's tint glides with the weather (stops transition) */
.fec-app .jf-s1 { stop-color: var(--jf1); stop-opacity: 0.95; transition: stop-color 1.6s ease; }
.fec-app .jf-s2 { stop-color: var(--jf2); stop-opacity: 0.85; transition: stop-color 1.6s ease; }
.fec-app .jf-s3 { stop-color: var(--jf3); stop-opacity: 0.95; transition: stop-color 1.6s ease; }
.fec-app .jf-canopy { fill: var(--umb); }
.fec-app .jf-spk { fill: var(--spk); }
.fec-app .fec-wx-walker[data-mood="sun"] { --jf1: #ffb199; --jf2: #ff8fc8; --jf3: #ffd68a; --spk: #ffd75e; --umb: #ff6b8b; }
.fec-app .fec-wx-walker[data-mood="night"] { --jf1: #a7b0ff; --jf2: #7e6bff; --jf3: #6be0ff; --spk: #cfe0ff; }
.fec-app .fec-wx-walker[data-mood="partly"] { --jf1: #ffa8d8; --jf2: #9db4ff; --jf3: #9ff0ff; }
.fec-app .fec-wx-walker[data-mood="cloudy"] { --jf1: #c8b9ff; --jf2: #94b4ff; --jf3: #a9e9f5; }
.fec-app .fec-wx-walker[data-mood="fog"] { --jf1: #dccff5; --jf2: #b6c8e8; --jf3: #cde6ee; }
.fec-app .fec-wx-walker[data-mood="rain"] { --jf1: #86d9ff; --jf2: #7f90ff; --jf3: #a3ecff; --umb: #ff6b8b; }
.fec-app .fec-wx-walker[data-mood="snow"] { --jf1: #c4e9ff; --jf2: #a6b8ff; --jf3: #e6f6ff; }
.fec-app .fec-wx-walker[data-mood="storm"] { --jf1: #b697ff; --jf2: #6f6bff; --jf3: #ffe56b; --umb: #6a5cff; }
.fec-app .fec-wx-walker[data-mood="hot"] { --jf1: #ff9fa4; --jf2: #ffb070; --jf3: #ffe18a; }
.fec-app .fec-wx-walker[data-mood="cold"] { --jf1: #9fdcff; --jf2: #8ea0ff; --jf3: #c1ecff; }

/* per-weather gait: step time, swing sizes, resting arm angles, eye openness */
.fec-app .fec-wx-walker[data-mood="sun"] { --st: 0.4s; --sw: 44deg; }
.fec-app .fec-wx-walker[data-mood="night"] { --st: 0.64s; --sw: 14deg; --lg: 20deg; --eyeY: 0.55; }
.fec-app .fec-wx-walker[data-mood="partly"] { --st: 0.44s; }
.fec-app .fec-wx-walker[data-mood="cloudy"] { --st: 0.52s; --sw: 20deg; }
.fec-app .fec-wx-walker[data-mood="fog"] { --st: 0.64s; --aA: -68deg; --aB: 68deg; --sw: 8deg; --lg: 14deg; --eyeY: 0.7; }
.fec-app .fec-wx-walker[data-mood="rain"] { --st: 0.44s; --sw: 26deg; }
.fec-app .fec-wx-walker[data-mood="snow"] { --st: 0.48s; --aA: 42deg; --aB: -42deg; --sw: 5deg; --lg: 22deg; }
.fec-app .fec-wx-walker[data-mood="storm"] { --st: 0.27s; --sw: 40deg; --lg: 38deg; --eyeY: 1.2; }
.fec-app .fec-wx-walker[data-mood="hot"] { --st: 0.6s; --aA: -82deg; --sw: 14deg; --lg: 18deg; --eyeY: 0.8; }
.fec-app .fec-wx-walker[data-mood="cold"] { --st: 0.3s; --aA: 44deg; --aB: -44deg; --sw: 4deg; --lg: 24deg; }

/* every animated part starts calm; the rules below switch things on */
.fec-wx-walker [class*="jf-"] { --anim: none; animation: var(--anim); }
.fec-app .jf-squash, .fec-app .jf-shadow { transform-origin: 32px 80px; }
.fec-app .jf-lean { transform-origin: 32px 72px; }
.fec-app .jf-bell { transform-origin: 32px 50px; }
.fec-app .jf-core { transform-origin: 32px 33px; }
.fec-app .jf-legA { transform-origin: 37px 50px; } .fec-app .jf-legB { transform-origin: 28px 50px; }
.fec-app .jf-armA, .fec-app .jf-armU { transform-origin: 43px 37px; } .fec-app .jf-armB { transform-origin: 21px 37px; }
.fec-app .jf-umb { transform-origin: 45px 30px; }
.fec-app .jf-ribA { transform-origin: 24px 51px; } .fec-app .jf-ribB { transform-origin: 40px 51px; }
.fec-app .jf-eyeL { transform-origin: 26px 29px; } .fec-app .jf-eyeR { transform-origin: 38px 29px; }
.fec-app .jf-tongue { transform-origin: 32px 38.5px; }
.fec-app .jf-pom { transform-origin: 32px 4px; } .fec-app .jf-pomc { transform-origin: 44px 14px; } .fec-app .jf-tail { transform-origin: 44px 50px; }
.fec-app .jf-ring, .fec-app .jf-sweat, .fec-app .jf-spk, .fec-app .jf-z, .fec-app .jf-drop { transform-box: fill-box; transform-origin: center; }

/* gear + faces by weather */
.fec-app .jf-acc, .fec-app .jf-mo, .fec-app .jf-armU, .fec-app .jf-umb, .fec-app .jf-fan, .fec-app .jf-fx { display: none; }
.fec-app .fec-wx-walker[data-mood="sun"] .jf-shades, .fec-app .fec-wx-walker[data-mood="hot"] .jf-shades,
.fec-app .fec-wx-walker[data-mood="snow"] .jf-beanie, .fec-app .fec-wx-walker[data-mood="cold"] .jf-beanie,
.fec-app .fec-wx-walker[data-mood="snow"] .jf-scarf, .fec-app .fec-wx-walker[data-mood="cold"] .jf-scarf,
.fec-app .fec-wx-walker[data-mood="night"] .jf-cap,
.fec-app .fec-wx-walker[data-mood="hot"] .jf-fan,
.fec-app .fec-wx-walker[data-mood="hot"] .jf-sweat-g { display: inline; }
.fec-app .fec-wx-walker[data-mood="rain"] .jf-armU, .fec-app .fec-wx-walker[data-mood="storm"] .jf-armU,
.fec-app .fec-wx-walker[data-mood="rain"] .jf-umb, .fec-app .fec-wx-walker[data-mood="storm"] .jf-umb { display: inline; }
.fec-app .fec-wx-walker[data-mood="rain"] .jf-armA, .fec-app .fec-wx-walker[data-mood="storm"] .jf-armA { display: none; }
.fec-app .fec-wx-walker[data-mood="night"][data-act]:not([data-act="react"]) .jf-zs { display: inline; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="sun"] .jf-sparks, .fec-app .fec-wx-walker[data-act="react"][data-mood="night"] .jf-sparks { display: inline; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="rain"] .jf-splash-g, .fec-app .fec-wx-walker[data-act="react"][data-mood="storm"] .jf-splash-g { display: inline; }
.fec-app .fec-wx-walker:not([data-mood]) .jf-mo-smile, .fec-app .fec-wx-walker[data-mood="night"] .jf-mo-smile, .fec-app .fec-wx-walker[data-mood="partly"] .jf-mo-smile,
.fec-app .fec-wx-walker[data-mood="sun"] .jf-mo-big, .fec-app .fec-wx-walker[data-mood="rain"] .jf-mo-big,
.fec-app .fec-wx-walker[data-mood="storm"] .jf-mo-o,
.fec-app .fec-wx-walker[data-mood="cloudy"] .jf-mo-flat,
.fec-app .fec-wx-walker[data-mood="fog"] .jf-mo-wavy, .fec-app .fec-wx-walker[data-mood="cold"] .jf-mo-wavy,
.fec-app .fec-wx-walker[data-mood="snow"] .jf-mo-tongue, .fec-app .fec-wx-walker[data-mood="hot"] .jf-mo-tongue { display: inline; }

/* ---- always-on life: jelly pulse, glow, blinking, drifting ribbons ---- */
.fec-app .jf-squash { --anim: fecjf-breathe 3.2s ease-in-out infinite; }
.fec-app .jf-bell { --anim: fecjf-wob 2.4s ease-in-out infinite alternate; }
.fec-app .jf-core { --anim: fecjf-core 2.8s ease-in-out infinite alternate; }
.fec-app .jf-spot { --anim: fecjf-spot 2.2s ease-in-out infinite alternate; }
.fec-app .jf-sp2 { animation-delay: -0.7s; } .fec-app .jf-sp3 { animation-delay: -1.3s; } .fec-app .jf-sp4 { animation-delay: -1.9s; }
.fec-app .jf-eye { --anim: fecjf-blink 4.6s ease-in-out infinite; }
.fec-app .jf-eyeR { animation-delay: 0s; }
.fec-app .jf-lean { --anim: fecjf-sway 2.6s ease-in-out infinite alternate; }
.fec-app .jf-ribA { --anim: fecjf-rib 1.9s ease-in-out infinite alternate; }
.fec-app .jf-ribB { --anim: fecjf-rib 2.3s ease-in-out infinite alternate-reverse; }
.fec-app .jf-armA { --anim: fecjf-armrest 2.6s ease-in-out infinite alternate; }
.fec-app .jf-armB { --anim: fecjf-armrest 2.9s ease-in-out infinite alternate-reverse; }
.fec-app .jf-pom, .fec-app .jf-tail { --anim: fecjf-flutter 1.1s ease-in-out infinite alternate; }
.fec-app .jf-umb { --anim: fecjf-umbsway 1.8s ease-in-out infinite alternate; }
.fec-app .jf-sweat { --anim: fecjf-sweat 1.5s ease-in infinite; }
.fec-app .jf-sw2 { animation-delay: -0.7s; }
.fec-app .jf-spk { --anim: fecjf-spark 1.2s ease-in-out infinite; }
.fec-app .jf-z { --anim: fecjf-z 3s ease-in infinite; } .fec-app .jf-z2 { animation-delay: -1.5s; }
.fec-app .jf-ring { --anim: fecjf-ring 0.9s ease-out infinite; } .fec-app .jf-ring2 { animation-delay: 0.08s; }
.fec-app .jf-drop { --anim: fecjf-drop 0.9s ease-out infinite; }
.fec-app .jf-tongue { --anim: fecjf-tongue 0.5s ease-in-out infinite alternate; }

/* ---- walking: a bouncy jelly hop with squash & stretch and lagging, wobbling bell ---- */
.fec-app .fec-wx-walker[data-act="walk"] .jf-squash { --anim: fecjf-stride var(--st) linear infinite; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-hop { --anim: fecjf-hop var(--st) linear infinite; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-shadow { --anim: fecjf-shadow var(--st) linear infinite; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-bell { --anim: fecjf-jig var(--st) ease-in-out infinite alternate; animation-delay: -0.09s; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-legA { --anim: fecjf-leg var(--st) ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-legB { --anim: fecjf-leg var(--st) ease-in-out infinite alternate-reverse; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-armA { --anim: fecjf-armA var(--st) ease-in-out infinite alternate-reverse; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-armB { --anim: fecjf-armB var(--st) ease-in-out infinite alternate-reverse; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-ribA, .fec-app .fec-wx-walker[data-act="walk"] .jf-ribB { --anim: fecjf-ribwalk calc(var(--st) * 2) ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-ribB { animation-delay: calc(var(--st) * -0.5); }
.fec-app .fec-wx-walker[data-act="walk"] .jf-umb { --anim: fecjf-umbwalk var(--st) ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-lean { --anim: fecjf-lean calc(var(--st) * 2) ease-in-out infinite alternate; }
/* the arms that hold something keep their pose while walking */
.fec-app .fec-wx-walker[data-mood="rain"] .jf-armU, .fec-app .fec-wx-walker[data-mood="storm"] .jf-armU { --anim: none; }
.fec-app .fec-wx-walker[data-act="walk"][data-mood="night"] .jf-eye { --anim: fecjf-blink 3.4s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="walk"][data-mood="cold"] .jf-lean, .fec-app .fec-wx-walker[data-act="idle"][data-mood="cold"] .jf-lean { --anim: fecjf-shiver 0.07s linear infinite alternate; }
.fec-app .fec-wx-walker[data-act="walk"][data-mood="storm"] .jf-lean { --anim: fecjf-stormlean 0.27s ease-in-out infinite alternate; }

/* ---- reactions: each weather has its own little performance (about 3 s, then it walks on) ---- */
/* sunny: arms up, happy squint, stretch toward the sun, sparkles */
.fec-app .fec-wx-walker[data-act="react"][data-mood="sun"] { --eyeY: 0.16; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="sun"] .jf-squash { --anim: fecjf-bask 1.1s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="sun"] .jf-armA { --anim: fecjf-cheerA 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="sun"] .jf-armB { --anim: fecjf-cheerB 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="sun"] .jf-lean { --anim: fecjf-sway 0.55s ease-in-out infinite alternate; }
/* clear night: tilts back, points at the stars */
.fec-app .fec-wx-walker[data-act="react"][data-mood="night"] { --eyeY: 1.12; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="night"] .jf-lean { --anim: fecjf-gaze 3s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="night"] .jf-armA { --anim: fecjf-point 0.9s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="night"] .jf-pupil { transform: translate(0, -2px); }
.fec-app .fec-wx-walker[data-act="react"][data-mood="night"] .jf-spot { --anim: fecjf-spot 0.7s ease-in-out infinite alternate; }
/* partly cloudy: shades eyes with a hand, looks up */
.fec-app .fec-wx-walker[data-act="react"][data-mood="partly"] .jf-armA { --anim: fecjf-salute 0.8s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="partly"] .jf-lean { --anim: fecjf-gaze 1.6s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="partly"] .jf-pupil { transform: translate(-1.2px, -1.8px); }
.fec-app .fec-wx-walker[data-act="react"][data-mood="partly"] .jf-squash { --anim: fecjf-bask 1.6s ease-in-out infinite; }
/* cloudy: big shrug, eyes wander */
.fec-app .fec-wx-walker[data-act="react"][data-mood="cloudy"] .jf-squash { --anim: fecjf-shrug 1.4s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cloudy"] .jf-armA { --anim: fecjf-shrugA 1.4s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cloudy"] .jf-armB { --anim: fecjf-shrugB 1.4s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cloudy"] .jf-pupil { --anim: fecjf-look 1.4s ease-in-out infinite; }
/* fog: feels its way forward, peeking left and right */
.fec-app .fec-wx-walker[data-act="react"][data-mood="fog"] .jf-armA { --anim: fecjf-feelA 0.7s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="fog"] .jf-armB { --anim: fecjf-feelB 0.7s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="fog"] .jf-lean { --anim: fecjf-peek 1.5s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="fog"] .jf-pupil { --anim: fecjf-look 1.2s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="fog"] .jf-squash { --anim: fecjf-tiptoe 1.5s ease-in-out infinite; }
/* rain: puddle jumping, splash rings, umbrella bobbing */
.fec-app .fec-wx-walker[data-act="react"][data-mood="rain"] .jf-hop { --anim: fecjf-jump 0.9s linear infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="rain"] .jf-squash { --anim: fecjf-jumpsq 0.9s linear infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="rain"] .jf-shadow { --anim: fecjf-shadow 0.9s linear infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="rain"] .jf-armB { --anim: fecjf-flail 0.45s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="rain"] .jf-umb { --anim: fecjf-umbsway 0.45s ease-in-out infinite alternate; }
/* snow: head back, tongue out, a full jelly twirl, arms wide */
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-squash { --anim: fecjf-twirl 1.5s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-hop { --anim: fecjf-twirlhop 1.5s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-armA { --anim: fecjf-wideA 0.6s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-armB { --anim: fecjf-wideB 0.6s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-lean { --anim: fecjf-gaze 1.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-pupil { transform: translate(0, -1.6px); }
/* storm: ducks and trembles, umbrella rattles */
.fec-app .fec-wx-walker[data-act="react"][data-mood="storm"] .jf-squash { --anim: fecjf-cower 0.8s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="storm"] .jf-lean { --anim: fecjf-shiver 0.06s linear infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="storm"] .jf-armB { --anim: fecjf-coverB 0.1s linear infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="storm"] .jf-umb { --anim: fecjf-umbshake 0.12s linear infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="storm"] .jf-hop { --anim: none; }
/* hot: fans itself, pants, wipes the sweat */
.fec-app .fec-wx-walker[data-act="react"][data-mood="hot"] .jf-armA { --anim: fecjf-fan 0.2s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="hot"] .jf-squash { --anim: fecjf-pant 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="hot"] .jf-armB { --anim: fecjf-wipe 0.9s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="hot"] .jf-sweat { --anim: fecjf-sweat 0.8s ease-in infinite; }
/* cold: full-body shiver, hugging itself */
.fec-app .fec-wx-walker[data-act="react"][data-mood="cold"] .jf-lean { --anim: fecjf-shiver 0.055s linear infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cold"] .jf-squash { --anim: fecjf-tight 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cold"] .jf-armA { --anim: fecjf-hugA 0.12s linear infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cold"] .jf-armB { --anim: fecjf-hugB 0.12s linear infinite alternate; }
/* turning around: a tiny anticipation squish */
.fec-app .fec-wx-walker[data-act="idle"] .jf-squash { --anim: fecjf-turn 0.4s ease-in-out 1; }

/* one-shots: thunder startle and tap (placed last so they win) */
.fec-app .fec-wx-walker[data-startle="1"][data-act] .jf-hop { --anim: fecjf-startle 0.65s ease-out 1; }
.fec-app .fec-wx-walker[data-startle="1"][data-act] .jf-squash { --anim: fecjf-startlesq 0.65s ease-out 1; }
.fec-app .fec-wx-walker[data-startle="1"][data-act] .jf-umb { --anim: fecjf-umbflip 0.65s ease-out 1; }
.fec-app .fec-wx-walker[data-startle="1"] { --eyeY: 1.3; }
.fec-app .fec-wx-walker[data-poke="1"][data-act] .jf-hop { --anim: fecjf-poke 0.8s ease-out 1; }
.fec-app .fec-wx-walker[data-poke="1"][data-act] .jf-squash { --anim: fecjf-pokesq 0.8s ease-out 1; }
.fec-app .fec-wx-walker[data-poke="1"][data-act] .jf-bell { --anim: fecjf-pokebell 0.8s ease-out 1; }

/* speech bubble */
.fec-app .jf-bubble { position: absolute; left: 54px; top: 2px; padding: 5px 10px; border-radius: 13px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--label); background: var(--glass); border: 1px solid var(--glass-b); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transform: translateY(8px) scale(0.6); transform-origin: 0 100%; transition: opacity 0.2s, transform 0.35s cubic-bezier(0.34, 1.7, 0.5, 1); pointer-events: none; }
.fec-app .jf-bubble.l { left: auto; right: 54px; transform-origin: 100% 100%; }
.fec-app .jf-bubble.on { opacity: 1; transform: none; }

/* keyframes (transform / opacity only) */
@keyframes fecjf-breathe { 50% { transform: scale(1.035, 0.965); } }
@keyframes fecjf-wob { from { transform: scale(1.025, 0.975) skewX(-1.6deg); } to { transform: scale(0.975, 1.03) skewX(1.6deg); } }
@keyframes fecjf-core { from { transform: scale(0.9); opacity: 0.7; } to { transform: scale(1.18); opacity: 1; } }
@keyframes fecjf-spot { from { opacity: 0.25; } to { opacity: 0.95; } }
@keyframes fecjf-blink { 0%, 90%, 100% { transform: scaleY(var(--eyeY, 1)); } 94% { transform: scaleY(0.08); } }
@keyframes fecjf-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes fecjf-rib { from { transform: rotate(-7deg) skewX(-6deg); } to { transform: rotate(9deg) skewX(8deg); } }
@keyframes fecjf-ribwalk { from { transform: rotate(6deg) skewX(8deg); } to { transform: rotate(20deg) skewX(-8deg); } }
@keyframes fecjf-armrest { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes fecjf-flutter { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes fecjf-umbsway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes fecjf-umbwalk { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(3deg) translateY(-1.5px); } }
@keyframes fecjf-sweat { 0% { transform: translateY(-3px) scale(0.5); opacity: 0; } 25% { opacity: 1; transform: translateY(0) scale(1); } 100% { transform: translateY(16px) scale(0.9); opacity: 0; } }
@keyframes fecjf-spark { 0%, 100% { transform: scale(0.2) rotate(0); opacity: 0; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
@keyframes fecjf-z { 0% { transform: translate(0, 4px) scale(0.5); opacity: 0; } 30% { opacity: 0.95; } 100% { transform: translate(8px, -16px) scale(1.15); opacity: 0; } }
@keyframes fecjf-ring { 0%, 66% { transform: scale(0.3); opacity: 0; } 70% { opacity: 0.85; } 100% { transform: scale(2); opacity: 0; } }
@keyframes fecjf-drop { 0%, 66% { transform: translate(0, 0); opacity: 0; } 72% { transform: translate(calc(var(--dx) * 0.6), -12px); opacity: 1; } 100% { transform: translate(var(--dx), 2px); opacity: 0; } }
@keyframes fecjf-tongue { from { transform: scaleY(0.85); } to { transform: scaleY(1.2); } }
/* walking */
@keyframes fecjf-hop { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); } 55% { transform: translateY(-9px); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.5); } 100% { transform: translateY(0); } }
@keyframes fecjf-stride { 0% { transform: scale(1.13, 0.85); } 22% { transform: scale(0.92, 1.13); } 55% { transform: scale(0.96, 1.06); } 85% { transform: scale(1.02, 0.98); } 100% { transform: scale(1.13, 0.85); } }
@keyframes fecjf-shadow { 0%, 100% { transform: scaleX(1.05); opacity: 0.2; } 55% { transform: scaleX(0.7); opacity: 0.1; } }
@keyframes fecjf-jig { from { transform: scale(1.06, 0.93) skewX(4.5deg); } to { transform: scale(0.95, 1.07) skewX(-4.5deg); } }
@keyframes fecjf-leg { from { transform: rotate(calc(var(--lg) * -1)); } to { transform: rotate(var(--lg)); } }
@keyframes fecjf-armA { from { transform: rotate(calc(var(--aA) - var(--sw))); } to { transform: rotate(calc(var(--aA) + var(--sw))); } }
@keyframes fecjf-armB { from { transform: rotate(calc(var(--aB) + var(--sw))); } to { transform: rotate(calc(var(--aB) - var(--sw))); } }
@keyframes fecjf-lean { from { transform: rotate(1deg); } to { transform: rotate(4.5deg); } }
@keyframes fecjf-shiver { from { transform: translateX(-1.2px) rotate(-1deg); } to { transform: translateX(1.2px) rotate(1deg); } }
@keyframes fecjf-stormlean { from { transform: rotate(7deg) translateX(-0.6px); } to { transform: rotate(11deg) translateX(0.6px); } }
@keyframes fecjf-turn { 0% { transform: scale(1, 1); } 40% { transform: scale(1.18, 0.82); } 100% { transform: scale(1, 1); } }
/* reactions */
@keyframes fecjf-bask { 50% { transform: scale(0.95, 1.09); } }
@keyframes fecjf-cheerA { from { transform: rotate(-146deg); } to { transform: rotate(-172deg); } }
@keyframes fecjf-cheerB { from { transform: rotate(146deg); } to { transform: rotate(172deg); } }
@keyframes fecjf-gaze { from { transform: rotate(-4deg); } to { transform: rotate(-9deg); } }
@keyframes fecjf-point { from { transform: rotate(-128deg); } to { transform: rotate(-142deg); } }
@keyframes fecjf-salute { from { transform: rotate(-122deg); } to { transform: rotate(-130deg); } }
@keyframes fecjf-shrug { 0%, 100% { transform: scale(1.02, 0.98); } 35%, 65% { transform: scale(1.07, 0.9); } }
@keyframes fecjf-shrugA { 0%, 100% { transform: rotate(0deg); } 35%, 65% { transform: rotate(-58deg); } }
@keyframes fecjf-shrugB { 0%, 100% { transform: rotate(0deg); } 35%, 65% { transform: rotate(58deg); } }
@keyframes fecjf-look { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.7px, -0.4px); } 70% { transform: translate(1.7px, -0.4px); } }
@keyframes fecjf-feelA { from { transform: rotate(-66deg); } to { transform: rotate(-88deg); } }
@keyframes fecjf-feelB { from { transform: rotate(88deg); } to { transform: rotate(66deg); } }
@keyframes fecjf-peek { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes fecjf-tiptoe { 0%, 100% { transform: scale(0.97, 1.05); } 50% { transform: scale(0.95, 1.08); } }
@keyframes fecjf-jump { 0%, 12% { transform: translateY(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); } 45% { transform: translateY(-19px); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.5); } 78%, 100% { transform: translateY(0); } }
@keyframes fecjf-jumpsq { 0% { transform: scale(1.2, 0.78); } 12% { transform: scale(0.88, 1.16); } 45% { transform: scale(0.94, 1.08); } 75% { transform: scale(1, 1); } 80% { transform: scale(1.2, 0.78); } 100% { transform: scale(1.2, 0.78); } }
@keyframes fecjf-flail { from { transform: rotate(-30deg); } to { transform: rotate(40deg); } }
@keyframes fecjf-twirl { 0% { transform: scaleX(1); } 22% { transform: scaleX(0.06); } 50% { transform: scaleX(-1); } 72% { transform: scaleX(0.06); } 100% { transform: scaleX(1); } }
@keyframes fecjf-twirlhop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes fecjf-wideA { from { transform: rotate(-96deg); } to { transform: rotate(-116deg); } }
@keyframes fecjf-wideB { from { transform: rotate(96deg); } to { transform: rotate(116deg); } }
@keyframes fecjf-cower { from { transform: scale(1.1, 0.86); } to { transform: scale(1.15, 0.81); } }
@keyframes fecjf-coverB { from { transform: rotate(134deg); } to { transform: rotate(146deg); } }
@keyframes fecjf-umbshake { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes fecjf-fan { from { transform: rotate(-3deg); } to { transform: rotate(30deg); } }
@keyframes fecjf-pant { from { transform: scale(1.04, 0.96); } to { transform: scale(0.97, 1.04); } }
@keyframes fecjf-wipe { from { transform: rotate(120deg); } to { transform: rotate(150deg); } }
@keyframes fecjf-tight { from { transform: scale(1.05, 0.95); } to { transform: scale(1.02, 0.98); } }
@keyframes fecjf-hugA { from { transform: rotate(40deg); } to { transform: rotate(50deg); } }
@keyframes fecjf-hugB { from { transform: rotate(-40deg); } to { transform: rotate(-50deg); } }
@keyframes fecjf-startle { 0% { transform: translateY(0); } 25% { transform: translateY(-21px); } 55% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes fecjf-startlesq { 0% { transform: scale(1.2, 0.8); } 20% { transform: scale(0.84, 1.24); } 60% { transform: scale(1.08, 0.94); } 100% { transform: scale(1, 1); } }
@keyframes fecjf-umbflip { 0% { transform: rotate(0); } 25% { transform: rotate(-32deg); } 55% { transform: rotate(18deg); } 100% { transform: rotate(0); } }
@keyframes fecjf-poke { 0% { transform: translateY(0); } 30% { transform: translateY(-24px); } 60% { transform: translateY(0); } 78% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
@keyframes fecjf-pokesq { 0% { transform: scale(1.25, 0.75); } 22% { transform: scale(0.8, 1.3); } 58% { transform: scale(1.18, 0.84); } 78% { transform: scale(0.94, 1.08); } 100% { transform: scale(1, 1); } }
@keyframes fecjf-pokebell { 0% { transform: skewX(0); } 25% { transform: skewX(-9deg) scale(1.06, 0.95); } 50% { transform: skewX(8deg) scale(0.95, 1.06); } 75% { transform: skewX(-4deg); } 100% { transform: skewX(0); } }

.fec-wx-art [class^="wx-"] { animation: var(--anim); }
.wx-rays { --anim: fecwx-spin 40s linear infinite; }
.wx-glow { --anim: fecwx-pulse 5s ease-in-out infinite; }
.wx-body { --anim: fecwx-breathe 6s ease-in-out infinite; }
.wx-moon { --anim: fecwx-rock 9s ease-in-out infinite alternate; }
.wx-star { --anim: fecwx-twinkle 3.2s ease-in-out infinite; }
.wx-drift { --anim: fecwx-drift 7s ease-in-out infinite alternate; }
.wx-drift2 { --anim: fecwx-drift 9s ease-in-out infinite alternate-reverse; }
.wx-fog { --anim: fecwx-fog 6s ease-in-out infinite; }
.wx-drop { --anim: fecwx-drop 1.1s linear infinite; opacity: 0; }
.wx-flake { --anim: fecwx-flake 2.6s ease-in-out infinite; opacity: 0; }
.wx-bolt { --anim: fecwx-flash 3.2s linear infinite; opacity: 0; }
@keyframes fecwx-spin { to { transform: rotate(360deg); } }
@keyframes fecwx-pulse { 50% { transform: scale(1.1); opacity: 0.7; } }
@keyframes fecwx-breathe { 50% { transform: scale(1.04); } }
@keyframes fecwx-rock { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes fecwx-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes fecwx-drift { from { transform: translateX(-5px); } to { transform: translateX(6px); } }
@keyframes fecwx-fog { 50% { transform: translateX(9px); } }
@keyframes fecwx-drop { 0% { transform: translate(0, -6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-7px, 24px); opacity: 0; } }
@keyframes fecwx-flake { 0% { transform: translate(0, -6px); opacity: 0; } 15% { opacity: 1; } 55% { transform: translate(5px, 12px); } 100% { transform: translate(-3px, 28px); opacity: 0; } }
@keyframes fecwx-flash { 0%, 50%, 60%, 100% { opacity: 0; } 53%, 57% { opacity: 1; } }

/* This page is an always-on display: its slow ambient motion keeps running even when the device says "reduce motion"
   (the global rule would otherwise freeze the weather scene). The aurora is a very slow drift (25-45 s per sweep). */
@media (prefers-reduced-motion: reduce) {
	.fec-app.fec-clockapp .fec-wx .fec-wx-walker [class*="jf-"], .fec-app.fec-clockapp .fec-wx [class^="wx-"] { animation: var(--anim) !important; }
}

/* appearance switch */
.fec-app .fec-themebtn { top: clamp(12px, 2vw, 22px); right: max(14px, var(--fec-pad)); z-index: 6 !important; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 11px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--label); background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); overflow: hidden; transition: transform 0.2s var(--ease); }
.fec-app .fec-themebtn:active { transform: scale(0.94); }
.fec-app .fec-themebtn .fec-ico { width: 17px; height: 17px; }

/* press ripple */
.fec-app .fec-key, .fec-app .fec-staff-row, .fec-app .fec-dashbtn, .fec-app .fec-punch, .fec-app .fec-welcome { position: relative; overflow: hidden; }
.fec-app .fec-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0.2; transform: scale(0); animation: fec-rip 0.6s ease-out forwards; pointer-events: none; }
@keyframes fec-rip { to { transform: scale(1); opacity: 0; } }

/* clock face: 3:25:47 AM */
.fec-app.fec-clockapp .fec-face-time { font-size: clamp(42px, 13vw, 66px); font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fec-app.fec-clockapp .fec-face-time { color: var(--label); }
.fec-app .fec-t-hm, .fec-app .fec-t-sec, .fec-app.fec-clockapp .fec-face-ap { color: var(--label); opacity: 1; }
.fec-app .fec-t-sec { font-weight: 300; margin-left: 0.04em; }
.fec-app.fec-clockapp .fec-face-ap { font-size: 0.3em; margin-left: 8px; }
.fec-app.fec-clockapp .fec-face-date { display: inline-flex; align-items: center; gap: 10px; }
.fec-app.fec-clockapp .fec-face-date::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); animation: fec-pulse 1.8s infinite; flex: none; }

/* dashboard button, under the clock */
.fec-app .fec-dashslot { display: flex; justify-content: center; }
.fec-app .fec-dashslot:empty { display: none; }
.fec-app.fec-clockapp a.fec-dashbtn { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 400px; padding: 12px 18px 12px 12px; border-radius: 24px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%); box-shadow: 0 14px 34px rgba(10, 132, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3); animation: fec-dash-in 0.7s 0.12s cubic-bezier(0.34, 1.56, 0.64, 1) both; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.fec-app.fec-clockapp a.fec-dashbtn:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(10, 132, 255, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.3); color: #fff; text-decoration: none; }
.fec-app.fec-clockapp a.fec-dashbtn:active { transform: scale(0.98); }
.fec-app .fec-dash-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.22); flex: none; }
.fec-app .fec-dash-ico .fec-ico { width: 24px; height: 24px; }
.fec-app .fec-dash-text { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: left; }
.fec-app .fec-dash-text strong { font-size: 18px; font-weight: 650; letter-spacing: -0.01em !important; color: #fff; }
.fec-app .fec-dash-text small { font-size: 12.5px; color: rgba(255, 255, 255, 0.82); }
.fec-app .fec-dash-go { display: grid; place-items: center; opacity: 0.9; transition: transform 0.25s var(--ease); }
.fec-app .fec-dash-go .fec-ico { width: 22px; height: 22px; }
.fec-app a.fec-dashbtn:hover .fec-dash-go { transform: translateX(5px); }
@keyframes fec-dash-in { from { opacity: 0; transform: translateY(18px) scale(0.9); } }

/* glass action card */
.fec-app.fec-clockapp .fec-stage { position: relative; background: var(--glass); border: 1px solid var(--glass-b); border-radius: 32px; padding: 28px 22px 24px; box-shadow: var(--glow); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); margin-top: 12px; }
.fec-app.fec-clockapp .fec-stage .fec-view { --card: var(--tile); }
.fec-app.fec-clockapp .fec-view { animation: fec-view-in2 0.6s cubic-bezier(0.22, 1.1, 0.36, 1); }
@keyframes fec-view-in2 { from { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(6px); } }
.fec-app .fec-group { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fec-app.fec-clockapp .fec-btn-primary:not(:disabled) { background: linear-gradient(135deg, #0a84ff, #5e5ce6); box-shadow: 0 10px 24px rgba(10, 132, 255, 0.32); }
.fec-app .fec-loadwrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 54px 0; }

/* name list + welcome back */
.fec-app .fec-stagger { animation: fec-stagger 0.5s cubic-bezier(0.22, 1.1, 0.36, 1) both; }
@keyframes fec-stagger { from { opacity: 0; transform: translateY(12px); } }
.fec-app .fec-staff-row { transition: background-color 0.2s, transform 0.2s var(--ease); }
.fec-app .fec-staff-row:hover { background-color: var(--fill); }
.fec-app .fec-staff-row:hover .fec-go { transform: translateX(3px); color: var(--blue); }
.fec-app .fec-staff-row .fec-go { transition: transform 0.2s var(--ease), color 0.2s; }
.fec-app .fec-welcome { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 12px; border-radius: 20px; text-align: left; background: linear-gradient(135deg, var(--blue-tint), var(--green-tint)); transition: transform 0.2s var(--ease); }
.fec-app .fec-welcome:hover { transform: translateY(-2px); }
.fec-app .fec-welcome:active { transform: scale(0.98); }
.fec-app .fec-welcome-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fec-app .fec-welcome-txt small { font-size: 12.5px; color: var(--label2); }
.fec-app .fec-welcome-txt strong { font-size: 17px; font-weight: 650; }
.fec-app .fec-welcome .fec-go { width: 16px; height: 16px; color: var(--label3); }

/* PIN pad */
.fec-app.fec-clockapp .fec-key { background: var(--tile); border: 1px solid var(--glass-b); transition: transform 0.15s var(--ease), background 0.15s; }
.fec-app.fec-clockapp .fec-key:hover { background: var(--fill); }
.fec-app.fec-clockapp .fec-key-del { background: transparent; border-color: transparent; backdrop-filter: none; }
.fec-app .fec-dots i.pop { animation: fec-dotpop 0.3s cubic-bezier(0.34, 1.8, 0.64, 1); }
@keyframes fec-dotpop { 0% { transform: scale(0.4); } 100% { transform: scale(1.08); } }
.fec-app .fec-dots.ok i { background: var(--green); border-color: var(--green); transform: scale(1.15); animation: none; }
.fec-app .fec-dots.fec-shake i.on { background: var(--red); border-color: var(--red); }

/* greeting avatar with a live ring */
.fec-app .fec-avaring { position: relative; display: inline-grid; padding: 4px; border-radius: 50%; }
.fec-app .fec-avaring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #34c759, #5ac8fa, #af82ff, #34c759); animation: fec-spin 5s linear infinite; }
.fec-app .fec-avaring.out::before { background: var(--fill2); animation: none; }
.fec-app .fec-avaring > * { position: relative; z-index: 1; border: 3px solid var(--bg); box-sizing: content-box; }
.fec-app.fec-clockapp .fec-ready .fec-pin-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }

/* the punch button + seconds ring */
.fec-app .fec-punchwrap { --rx: 0deg; --ry: 0deg; position: relative; width: 236px; height: 236px; margin: 12px auto 6px; transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.25s var(--ease); transform-style: preserve-3d; }
.fec-app .fec-ringsvg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fec-app .fec-ringsvg circle { stroke-width: 5; }
.fec-app .fec-ringsvg .trk { stroke: var(--fill2); }
.fec-app .fec-ringsvg .prg { stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.fec-app .fec-punchwrap.in .prg { stroke: var(--green); filter: drop-shadow(0 0 6px rgba(52, 199, 89, 0.7)); }
.fec-app .fec-punchwrap.out .prg { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.7)); }
.fec-app.fec-clockapp .fec-punchwrap .fec-punch { position: absolute; inset: 22px; width: auto; height: auto; margin: 0; animation: fec-breathe 3.2s ease-in-out infinite; }
.fec-app .fec-punch-label { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 26px; transition: opacity 0.2s; }
.fec-app .fec-punch-label .fec-ico { width: 38px; height: 38px; opacity: 0.95; }
.fec-app .fec-punch-shine { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.4), transparent 52%); pointer-events: none; }
.fec-app .fec-punch.loading .fec-punch-label { opacity: 0; }
@keyframes fec-breathe { 50% { transform: scale(1.025); } }

/* tiles under the button */
.fec-app .fec-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; margin-top: 14px; }
.fec-app .fec-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 16px; border-radius: 20px; background: var(--tile); border: 1px solid var(--glass-b); }
.fec-app .fec-tile small { font-size: 12.5px; font-weight: 600; color: var(--label2); }
.fec-app .fec-tilenum { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fec-app .fec-tilenum.dim { color: var(--label3); }

/* confetti */
.fec-app .fec-confetti { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 4; }
.fec-app .fec-confetti i { position: absolute; top: -14px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: fec-conf var(--t) var(--d) cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes fec-conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), 560px) rotate(var(--r)); } }

/* desktop: clock + dashboard button on the left, glass card on the right */
@media (min-width: 900px) {
	.fec-app.fec-clockapp .fec-face-time { font-size: clamp(54px, 6.6vw, 104px); }
	.fec-app.fec-clockapp .fec-dashslot { grid-column: 1; grid-row: 3; justify-content: flex-start; align-self: start; margin-top: 14px; }
	.fec-app.fec-clockapp .fec-wx { grid-column: 1; grid-row: 4; align-self: start; }
	.fec-app.fec-clockapp .fec-offices-1 { grid-row: 5; }
	.fec-app.fec-clockapp .fec-stage { grid-row: 1 / span 5; background: var(--glass); border-radius: 36px; padding: 36px 32px; margin-top: 0; min-height: 520px; }
	.fec-app.fec-clockapp .fec-stage .fec-view { --card: var(--tile); }
}
@media (max-width: 899px) {
	.fec-app.fec-clockapp .fec-dashslot { margin: 14px 0 0; }
	.fec-app.fec-clockapp .fec-face { margin-bottom: 14px; }
}
@media (max-width: 380px) {
	.fec-app .fec-punchwrap { width: 212px; height: 212px; }
	.fec-app.fec-clockapp .fec-punchwrap .fec-punch { inset: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.fec-app .fec-avaring::before, .fec-app.fec-clockapp .fec-punchwrap .fec-punch { animation: none !important; }
}

/* v1.4 polish */
.fec-app.fec-clockapp[data-fec-mode] { padding-top: 64px; }
.fec-app .fec-tile .fec-tilenum { margin: 0; text-align: left; color: var(--label); flex: none; }
.fec-app .fec-tile .fec-tilenum.dim { color: var(--label3); }
.fec-app .fec-ready .fec-pin-error:empty { display: none; }
.fec-app .fec-ready .fec-punchwrap { margin-bottom: 0; }
@media (min-width: 900px) {
	.fec-app.fec-clockapp[data-fec-mode] { padding-top: 76px; padding-bottom: 48px; }
}
@media (min-width: 900px) {
	.fec-app.fec-clockapp .fec-stage { min-height: 660px; }
}

/* ---------- Time clock fills the whole window (no white theme header / footer showing above and below) ---------- */
html.fec-clock-lock, html.fec-clock-lock body { overflow: hidden !important; height: 100%; background: #050a1c !important; }
.fec-app.fec-clockapp[data-fec-mode="clock"]:not([data-width="contained"]) {
	--fec-pad: max(var(--fec-gutter), calc((100% - var(--fec-max)) / 2));
	position: fixed !important; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0 !important;
	width: auto !important; max-width: none !important; margin: 0 !important; z-index: 99990 !important;
	overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	background: var(--sky2); min-height: 0;
	padding-bottom: max(28px, env(safe-area-inset-bottom));
}
.fec-app.fec-clockapp[data-fec-mode="clock"] > .fec-themebtn { position: fixed; top: calc(var(--wp-admin--admin-bar--height, 0px) + clamp(12px, 2vw, 22px)); right: max(14px, var(--fec-pad)); }
@media (min-width: 900px) {
	.fec-app.fec-clockapp[data-fec-mode="clock"]:not([data-width="contained"]) { min-height: 100%; align-content: center; padding-top: 76px; padding-bottom: 40px; }
	.fec-app.fec-clockapp[data-fec-mode="clock"] .fec-stage { min-height: clamp(480px, 74dvh, 660px); }
}
@media (max-width: 899px) {
	.fec-app.fec-clockapp[data-fec-mode="clock"]:not([data-width="contained"]) { padding-top: 68px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
	.fec-app.fec-clockapp[data-fec-mode="clock"] .fec-stage { min-height: 0; }
}


/* =====================================================================
   v1.5  Daily caregiver log notes: guided steps, icon rail, tiles
   Apple Health cards + Tesla-style side rail. Everything below is scoped to .fec-ln2.
   ===================================================================== */
.fec-app[data-fec-mode="lognotes"] { --fec-max: 1240px; }
.fec-app.fec-ln2 { background: radial-gradient(120% 55% at 50% -12%, rgba(10, 132, 255, 0.11), transparent 62%), var(--bg); }

/* header */
.fec-ln2 .fec-lnx-head { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin: 2px 0 22px; }
.fec-ln2 .fec-lnx-head .fec-logo { margin: 0; flex: none; }
.fec-ln2 .fec-lnx-titles { flex: 1 1 320px; min-width: 0; }
.fec-ln2 .fec-lnx-titles .fec-title { font-size: clamp(26px, 4.4vw, 36px); }
.fec-ln2 .fec-linkbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 15px; font-weight: 500; padding: 8px 4px; }
.fec-ln2 .fec-linkbtn .fec-ico { width: 17px; height: 17px; }
.fec-ln2 .fec-linkbtn:active { opacity: 0.5; }
.fec-ln2 .fec-startover { margin-left: auto; color: var(--label2); }
@media (max-width: 760px) {
	.fec-ln2 .fec-lnx-titles { order: 3; flex-basis: 100%; }
	.fec-ln2 .fec-lnx-head { margin-bottom: 14px; }
}

/* shell: rail + main */
.fec-ln2 .fec-lnx { --acc: #0a84ff; --acc-t: rgba(10, 132, 255, 0.14); display: block; }
.fec-ln2 .fec-lmain { min-width: 0; }
@media (min-width: 1000px) {
	.fec-ln2 .fec-lnx { display: grid; grid-template-columns: 296px minmax(0, 1fr); column-gap: 30px; align-items: start; }
	.fec-ln2 .fec-rail { position: sticky; top: 24px; }
}

/* rail */
.fec-ln2 .fec-rail { background: var(--card); border-radius: 30px; padding: 16px; box-shadow: var(--shadow); z-index: 30; }
.fec-ln2 .fec-railhead { display: flex; align-items: center; gap: 14px; padding: 6px 8px 16px; margin-bottom: 8px; border-bottom: 0.5px solid var(--sep); }
.fec-ln2 .fec-ringwrap { position: relative; width: 52px; height: 52px; flex: none; }
.fec-ln2 .fec-ring { width: 100%; height: 100%; display: block; }
.fec-ln2 .fec-ring .trk { stroke: var(--fill2); }
.fec-ln2 .fec-ring .arc { stroke: var(--blue); transition: stroke-dashoffset 0.7s var(--ease), stroke 0.3s; }
.fec-ln2 .fec-ring.full .arc { stroke: var(--green); }
.fec-ln2 .fec-ringwrap b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fec-ln2 .fec-railhead-txt { display: flex; flex-direction: column; min-width: 0; }
.fec-ln2 .fec-railhead-txt strong { font-size: 15px; font-weight: 600; }
.fec-ln2 .fec-railhead-txt span { font-size: 13.5px; color: var(--label2); }
.fec-ln2 .fec-rsteps { display: flex; flex-direction: column; gap: 4px; }
.fec-ln2 .fec-rstep { display: flex; align-items: center; gap: 13px; width: 100%; padding: 9px 10px; border-radius: 20px; text-align: left; transition: background 0.2s; }
.fec-ln2 .fec-rstep:hover { background: var(--fill); }
.fec-ln2 .fec-rstep.on { background: var(--fill); }
.fec-ln2 .fec-rstep-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--acc-t); color: var(--acc); flex: none; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.fec-ln2 .fec-rstep-ico .fec-ico { width: 22px; height: 22px; }
.fec-ln2 .fec-rstep.on .fec-rstep-ico { background: var(--acc); color: #fff; transform: scale(1.04); }
.fec-ln2 .fec-rstep-dot { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--card); background: var(--green); color: #fff; display: none; place-items: center; }
.fec-ln2 .fec-rstep.on .fec-rstep-dot { border-color: var(--fill-solid, var(--card)); }
.fec-ln2 .fec-rstep-dot .fec-ico { width: 9px; height: 9px; }
.fec-ln2 .fec-rstep-dot .fec-ico svg { stroke-width: 3.4; }
.fec-ln2 .fec-rstep.done .fec-rstep-dot { display: grid; }
.fec-ln2 .fec-rstep.warn .fec-rstep-dot { display: grid; background: var(--orange); }
.fec-ln2 .fec-rstep.warn .fec-rstep-dot .fec-ico, .fec-ln2 .fec-rstep.bad .fec-rstep-dot .fec-ico { display: none; }
.fec-ln2 .fec-rstep.bad .fec-rstep-dot { display: grid; background: var(--red); }
.fec-ln2 .fec-rstep-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.fec-ln2 .fec-rstep-txt b { font-size: 15.5px; font-weight: 600; }
.fec-ln2 .fec-rstep-txt small { font-size: 12.5px; color: var(--label2); margin-top: 2px; }
.fec-ln2 .fec-rstep.bad .fec-rstep-txt small { color: var(--red); font-weight: 500; }
.fec-ln2 .fec-rstep.warn .fec-rstep-txt small { color: var(--orange-text); font-weight: 500; }

/* phones and tablets: the rail becomes a sticky strip of icons; the current step shows its name */
@media (max-width: 999px) {
	.fec-ln2 .fec-rail { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 -4px 16px; border-radius: 24px;
		background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
	.fec-ln2 .fec-railhead { padding: 0; margin: 0; border: 0; flex: none; }
	.fec-ln2 .fec-ringwrap { width: 44px; height: 44px; }
	.fec-ln2 .fec-ringwrap b { font-size: 14px; }
	.fec-ln2 .fec-railhead-txt { display: none; }
	.fec-ln2 .fec-rsteps { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 6px 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
	.fec-ln2 .fec-rsteps::-webkit-scrollbar { display: none; }
	.fec-ln2 .fec-rstep { width: auto; flex: none; padding: 3px; gap: 8px; border-radius: 17px; scroll-snap-align: center; }
	.fec-ln2 .fec-rstep:hover { background: transparent; }
	.fec-ln2 .fec-rstep.on { padding-right: 14px; background: var(--acc-t); }
	.fec-ln2 .fec-rstep-ico { width: 38px; height: 38px; border-radius: 13px; }
	.fec-ln2 .fec-rstep-txt { display: none; }
	.fec-ln2 .fec-rstep.on .fec-rstep-txt { display: flex; }
	.fec-ln2 .fec-rstep.on .fec-rstep-txt small { display: none; }
	.fec-ln2 .fec-rstep.on .fec-rstep-txt b { white-space: nowrap; font-size: 15px; }
}

/* step panel header */
.fec-ln2 .fec-lpanel { min-width: 0; }
.fec-ln2 .fec-lpanel.fec-pin { animation: fec-lpin 0.42s var(--ease); }
@keyframes fec-lpin { from { opacity: 0; transform: translateY(14px); } }
.fec-ln2 .fec-lhead { display: flex; align-items: center; gap: 16px; margin: 4px 2px 20px; }
.fec-ln2 .fec-lhead-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 19px; flex: none; color: #fff; background: var(--acc); background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 72%, #fff), var(--acc)); box-shadow: 0 10px 24px color-mix(in srgb, var(--acc) 34%, transparent); }
.fec-ln2 .fec-lhead-ico .fec-ico { width: 28px; height: 28px; }
.fec-ln2 .fec-lhead-title { font-size: clamp(24px, 4vw, 32px); font-weight: 700; letter-spacing: -0.024em; line-height: 1.1; }
.fec-ln2 .fec-lhead-sub { color: var(--label2); font-size: 15px; margin-top: 4px; }

/* cards */
.fec-ln2 .fec-lcard { background: var(--card); border-radius: 28px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.fec-ln2 .fec-lcard-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; margin-bottom: 16px; }
.fec-ln2 .fec-lcard-title > .fec-ico { width: 22px; height: 22px; color: var(--acc); }
.fec-ln2 .fec-lcard-title > :last-child:not(:first-child):not(span:nth-child(2)) { margin-left: auto; }
.fec-ln2 .fec-lcard-title .fec-badge { margin-left: auto; }
.fec-ln2 .fec-badge.on { background: var(--acc-t); color: var(--acc); }
.fec-ln2 .fec-count { margin-left: auto; font-size: 13px; color: var(--label2); font-variant-numeric: tabular-nums; }
.fec-ln2 .fec-lcard-alert { box-shadow: var(--shadow), inset 0 0 0 1.5px transparent; transition: box-shadow 0.3s; }
.fec-ln2 .fec-lcard-alert .fec-lcard-title > .fec-ico { color: var(--orange); }
.fec-ln2 .fec-lcard-alert.flag { box-shadow: var(--shadow), inset 0 0 0 2px var(--orange); }

/* fields */
.fec-ln2 .fec-fgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.fec-ln2 .fec-fgrid:last-child { margin-bottom: 0; }
.fec-ln2 .fec-fgrid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fec-ln2 .fec-fgrid-tri { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .fec-ln2 .fec-fgrid-2, .fec-ln2 .fec-fgrid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 820px) { .fec-ln2 .fec-fgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fec-ln2 .fec-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; cursor: text; }
.fec-ln2 .fec-fld-label { font-size: 13.5px; font-weight: 500; color: var(--label2); padding-left: 4px; }
.fec-ln2 .fec-fld-box { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; border-radius: 17px; border: 1.5px solid transparent; background: var(--fill); transition: border-color 0.2s, background 0.2s, box-shadow 0.25s; }
.fec-ln2 .fec-fld-box:focus-within { border-color: var(--acc); background: var(--card); box-shadow: 0 0 0 4px var(--acc-t); }
.fec-ln2 .fec-fld-ico { width: 21px; height: 21px; color: var(--label2); transition: color 0.2s; }
.fec-ln2 .fec-fld-box:focus-within .fec-fld-ico { color: var(--acc); }
.fec-ln2 .fec-fld-box .fec-input { min-height: 52px; font-size: 17px; flex: 1 1 0; min-width: 0; }
.fec-ln2 .fec-fld-box .fec-select, .fec-ln2 .fec-fld-box select { width: 100%; }
.fec-ln2 .fec-fld-area .fec-fld-box { align-items: flex-start; padding: 6px 14px; }
.fec-ln2 .fec-fld-area .fec-textarea { padding: 8px 0; min-height: 84px; background: transparent; }
.fec-ln2 .fec-fld-block { cursor: default; }
.fec-ln2 .fec-unit { font-size: 13.5px; color: var(--label2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fec-ln2 .fec-nowbtn { height: 32px; padding: 0 13px; border-radius: 99px; background: var(--acc-t); color: var(--acc); font-size: 13.5px; font-weight: 600; flex: none; transition: transform 0.15s var(--ease); }
.fec-ln2 .fec-nowbtn:active { transform: scale(0.92); }
.fec-ln2 .fec-fld.fec-invalid .fec-fld-box, .fec-ln2 .fec-fld.fec-invalid .fec-picker { border-color: var(--red); background: var(--red-tint); }
.fec-ln2 .fec-fld.fec-invalid .fec-fld-label { color: var(--red); }
.fec-ln2 .fec-fld.fec-invalid .fec-picker { border: 1.5px solid var(--red); border-radius: 20px; padding: 3px; }
.fec-ln2 .fec-lcard .fec-fld-box:has(input[type="date"]) .fec-input, .fec-ln2 .fec-fld-box .fec-input[type="time"] { font-variant-numeric: tabular-nums; }
.fec-ln2 .fec-medcard .fec-fld-box, .fec-ln2 .fec-bpcard .fec-fld-box, .fec-ln2 .fec-sigcard2 .fec-fld-box { background: var(--card); }
.fec-ln2 .fec-medcard .fec-fld-box:focus-within, .fec-ln2 .fec-bpcard .fec-fld-box:focus-within, .fec-ln2 .fec-sigcard2 .fec-fld-box:focus-within { background: var(--card); }
@media (max-width: 559px) {
	.fec-ln2 .fec-fgrid-tri .fec-fld-ico, .fec-ln2 .fec-fgrid-pair .fec-fld-ico { display: none; }
	.fec-ln2 .fec-fgrid-tri .fec-fld-box, .fec-ln2 .fec-fgrid-pair .fec-fld-box { padding: 0 11px; gap: 6px; }
	.fec-ln2 .fec-lcard { padding: 16px; border-radius: 26px; }
}

/* tile pickers (shift, bowel movement) */
.fec-ln2 .fec-picker { display: grid; gap: 10px; }
.fec-ln2 .fec-pick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fec-ln2 .fec-pick-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fec-ln2 .fec-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 84px; padding: 12px 6px; border-radius: 20px; border: 1.5px solid transparent; background: var(--fill); font-size: 14.5px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--label); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease); }
.fec-ln2 .fec-pick .fec-ico { width: 27px; height: 27px; color: var(--label2); transition: color 0.2s, transform 0.3s var(--ease); }
.fec-ln2 .fec-pick:active { transform: scale(0.96); }
.fec-ln2 .fec-pick.on { background: var(--acc-t); border-color: var(--acc); color: var(--acc); }
.fec-ln2 .fec-pick.on .fec-ico { color: var(--acc); transform: scale(1.1); }

/* duration */
.fec-ln2 .fec-dur { margin-top: 16px; padding: 14px 16px 16px; border-radius: 20px; background: var(--fill); }
.fec-ln2 .fec-dur-txt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fec-ln2 .fec-dur-txt b { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--label2); transition: color 0.3s; }
.fec-ln2 .fec-dur.ok .fec-dur-txt b { color: var(--acc); }
.fec-ln2 .fec-dur.warn .fec-dur-txt b { color: var(--orange-text); }
.fec-ln2 .fec-dur-txt span { font-size: 14px; color: var(--label2); }
.fec-ln2 .fec-dur-meter { height: 6px; border-radius: 3px; background: var(--fill2); margin-top: 12px; overflow: hidden; }
.fec-ln2 .fec-dur-meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--acc); transition: width 0.5s var(--ease), background 0.3s; }
.fec-ln2 .fec-dur.warn .fec-dur-meter i { background: var(--orange); }

/* care tiles */
.fec-ln2 .fec-tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .fec-ln2 .fec-tiles2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.fec-ln2 .fec-ctile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 104px; padding: 14px; border-radius: 22px; border: 1.5px solid transparent; background: var(--fill); text-align: left; transition: background 0.22s, border-color 0.22s, transform 0.15s var(--ease); }
.fec-ln2 .fec-ctile:active { transform: scale(0.97); }
.fec-ln2 .fec-ctile-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--card); color: var(--label2); transition: background 0.22s, color 0.22s; }
.fec-ln2 .fec-ctile-ico .fec-ico { width: 23px; height: 23px; }
.fec-ln2 .fec-ctile-label { font-size: 14.5px; font-weight: 600; line-height: 1.22; }
.fec-ln2 .fec-ctile-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--label3); display: grid; place-items: center; color: #fff; transition: background 0.2s, border-color 0.2s; }
.fec-ln2 .fec-ctile-check .fec-ico { width: 14px; height: 14px; opacity: 0; transform: scale(0.3); transition: opacity 0.15s, transform 0.3s var(--ease); }
.fec-ln2 .fec-ctile-check .fec-ico svg { stroke-width: 3; }
.fec-ln2 .fec-ctile.on { background: var(--acc-t); border-color: var(--acc); }
.fec-ln2 .fec-ctile.on .fec-ctile-ico { background: var(--acc); color: #fff; }
.fec-ln2 .fec-ctile.on .fec-ctile-check { background: var(--acc); border-color: var(--acc); }
.fec-ln2 .fec-ctile.on .fec-ctile-check .fec-ico { opacity: 1; transform: none; }
.fec-ln2 .fec-fld-other { margin-top: 14px; }

/* medications (slides open under the care tiles) */
.fec-ln2 .fec-medsbox { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease), margin 0.3s; margin: 0; }
.fec-ln2 .fec-medsbox.open { grid-template-rows: 1fr; margin: 14px 0 0; }
.fec-ln2 .fec-medsinner { overflow: hidden; min-height: 0; border-radius: 22px; }
.fec-ln2 .fec-medsbox.open .fec-medsinner { background: var(--acc-t); padding: 14px; }
.fec-ln2 .fec-medhead2 { display: flex; align-items: center; gap: 12px; padding: 2px 2px 12px; color: var(--acc); }
.fec-ln2 .fec-medhead2 .fec-ico { width: 24px; height: 24px; }
.fec-ln2 .fec-medhead2 div { display: flex; flex-direction: column; color: var(--label); }
.fec-ln2 .fec-medhead2 strong { font-size: 15.5px; font-weight: 650; }
.fec-ln2 .fec-medhead2 span { font-size: 13px; color: var(--label2); }
.fec-ln2 .fec-medcard { background: var(--card); border-radius: 20px; padding: 12px; margin-bottom: 10px; }
.fec-ln2 .fec-medcard .fec-fld-box { background: var(--fill); }
.fec-ln2 .fec-medcard-top { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.fec-ln2 .fec-fld-grow { flex: 1; min-width: 0; }
.fec-ln2 .fec-xbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--fill); color: var(--label2); margin-bottom: 9px; transition: background 0.2s, color 0.2s, transform 0.15s; }
.fec-ln2 .fec-xbtn .fec-ico { width: 15px; height: 15px; }
.fec-ln2 .fec-xbtn:hover { background: var(--red-tint); color: var(--red); }
.fec-ln2 .fec-xbtn:active { transform: scale(0.9); }
.fec-ln2 .fec-addbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 18px; border: 1.5px dashed var(--label3); color: var(--acc); font-size: 15.5px; font-weight: 600; transition: background 0.2s, border-color 0.2s; }
.fec-ln2 .fec-addbtn:hover { background: var(--acc-t); border-color: var(--acc); }
.fec-ln2 .fec-addbtn .fec-ico { width: 18px; height: 18px; }
.fec-ln2 .fec-medcard + .fec-addbtn, .fec-ln2 .fec-bpadd { margin-top: 4px; }

/* quick chips + meal blocks */
.fec-ln2 .fec-meal { display: flex; flex-direction: column; min-width: 0; }
.fec-ln2 .fec-qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.fec-ln2 .fec-qchip { height: 32px; padding: 0 13px; border-radius: 99px; background: var(--fill); color: var(--label2); font-size: 13.5px; font-weight: 500; transition: background 0.18s, color 0.18s, transform 0.15s var(--ease); }
.fec-ln2 .fec-qchip:hover { background: var(--acc-t); color: var(--acc); }
.fec-ln2 .fec-qchip:active { transform: scale(0.94); }
.fec-ln2 .fec-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease), margin 0.3s; }
.fec-ln2 .fec-reveal.open { grid-template-rows: 1fr; margin-top: 14px; }
.fec-ln2 .fec-reveal-in { overflow: hidden; min-height: 0; padding: 4px; margin: -4px; }

/* blood pressure cards */
.fec-ln2 .fec-bpcard { background: var(--fill); border-radius: 22px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.fec-ln2 .fec-bpcard .fec-fgrid { margin: 0; }
.fec-ln2 .fec-bpcard-top { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.fec-ln2 .fec-bpcard-top .fec-xbtn { margin: 0; background: var(--card); }

/* pain + mood (reuses the shared faces) */
.fec-ln2 .fec-painscale { gap: 6px; }
.fec-ln2 .fec-painbtn { border-radius: 14px; padding: 10px 0 8px; border: 1.5px solid transparent; }
.fec-ln2 .fec-painbtn.on { background: var(--acc); }
.fec-ln2 .fec-maphead2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 4px; }
.fec-ln2 .fec-markhint { color: var(--label2); font-size: 14px; }
.fec-ln2 .fec-bodymap { padding: 6px 0 16px; }
.fec-ln2 .fec-moods2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.fec-ln2 .fec-moodbtn { padding: 16px 4px 12px; border-radius: 20px; border: 1.5px solid transparent; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease); font-size: 13.5px; font-weight: 600; }
.fec-ln2 .fec-moodbtn .fec-face-ico { width: 36px; height: 36px; }
.fec-ln2 .fec-moodbtn.on { background: var(--acc); color: #fff; }

/* review + signatures */
.fec-ln2 .fec-sumgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 700px) { .fec-ln2 .fec-sumgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fec-ln2 .fec-sumitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 20px; background: var(--fill); text-align: left; transition: background 0.2s, transform 0.15s var(--ease); }
.fec-ln2 .fec-sumitem:hover { background: var(--fill2); }
.fec-ln2 .fec-sumitem:active { transform: scale(0.98); }
.fec-ln2 .fec-sumico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--card); color: var(--acc); flex: none; }
.fec-ln2 .fec-sumico .fec-ico { width: 22px; height: 22px; }
.fec-ln2 .fec-sumtxt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fec-ln2 .fec-sumtxt small { font-size: 12.5px; color: var(--label2); }
.fec-ln2 .fec-sumtxt b { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.fec-ln2 .fec-sumgo { width: 16px; height: 16px; margin-left: auto; color: var(--label3); flex: none; }
.fec-ln2 .fec-sumitem.miss b, .fec-ln2 .fec-sumitem.miss .fec-sumico { color: var(--red); }
.fec-ln2 .fec-sumitem.warn b, .fec-ln2 .fec-sumitem.warn .fec-sumico { color: var(--orange-text); }
.fec-ln2 .fec-todo { margin-top: 14px; padding: 14px 16px 6px; border-radius: 20px; background: var(--red-tint); animation: fec-lpin 0.35s var(--ease); }
.fec-ln2 .fec-todo[hidden] { display: none; }
.fec-ln2 .fec-todo-title { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: 15px; margin-bottom: 4px; }
.fec-ln2 .fec-todo-title .fec-ico { width: 19px; height: 19px; }
.fec-ln2 .fec-todo-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 0; border-top: 0.5px solid var(--sep); font-size: 15px; text-align: left; }
.fec-ln2 .fec-todo-item .fec-ico { width: 16px; height: 16px; color: var(--label3); }
.fec-ln2 .fec-sigs2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .fec-ln2 .fec-sigs2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fec-ln2 .fec-sigcard2 { background: var(--fill); border-radius: 24px; padding: 4px 4px 14px; box-shadow: none; display: flex; flex-direction: column; gap: 4px; }
.fec-ln2 .fec-sigcard2 .fec-sig { background: var(--card); margin: 0 10px 6px; border-radius: 18px; }
.fec-ln2 .fec-sigcard2 .fec-fld { padding: 0 10px; }
.fec-ln2 .fec-sigcard2.fec-invalid { box-shadow: 0 0 0 2px var(--red); }

/* sticky action bar */
.fec-ln2 .fec-actionbar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 4px; border-radius: 26px;
	background: color-mix(in srgb, var(--card) 84%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 0.5px var(--sep); }
.fec-ln2 .fec-stepcount { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.25; }
.fec-ln2 .fec-stepcount b { font-size: 14px; font-weight: 600; color: var(--label2); font-variant-numeric: tabular-nums; }
.fec-ln2 .fec-savestate { font-size: 12px; color: var(--green-text); min-height: 15px; }
.fec-ln2 .fec-navbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 18px; font-size: 16.5px; font-weight: 600; white-space: nowrap; transition: transform 0.15s var(--ease), opacity 0.2s, background 0.2s; }
.fec-ln2 .fec-navbtn[hidden] { display: none; }
.fec-ln2 .fec-navbtn .fec-ico { width: 20px; height: 20px; }
.fec-ln2 .fec-navbtn:active:not(:disabled) { transform: scale(0.96); }
.fec-ln2 .fec-navback { background: var(--fill); color: var(--label); padding: 0 18px 0 14px; }
.fec-ln2 .fec-navback:disabled { opacity: 0.35; cursor: default; }
.fec-ln2 .fec-navnext { background: var(--acc); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--acc) 36%, transparent); }
.fec-ln2 .fec-navsubmit { background: linear-gradient(135deg, #0a84ff, #5e5ce6); box-shadow: 0 8px 22px rgba(10, 132, 255, 0.36); }
.fec-ln2 .fec-navbtn.loading { color: transparent !important; pointer-events: none; }
.fec-ln2 .fec-navbtn.loading .fec-ico { opacity: 0; }
.fec-ln2 .fec-navbtn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: fec-spin 0.7s linear infinite; }
@media (max-width: 559px) {
	.fec-ln2 .fec-navback span:not(.fec-ico) { display: none; }
	.fec-ln2 .fec-navback { padding: 0; width: 52px; }
	.fec-ln2 .fec-navnext { flex: 1; }
	.fec-ln2 .fec-stepcount { flex: none; }
	.fec-ln2 .fec-stepcount .fec-savestate { display: none; }
}
.fec-ln2 .fec-success.fec-lcard { padding: 28px 20px; max-width: 620px; margin: 10px auto 18px; }
.fec-ln2 .fec-offices-1 { margin-top: 26px; }

/* v1.5 polish */
.fec-ln2 .fec-fld-box .fec-time, .fec-ln2 .fec-fld-box .fec-date { background: transparent; padding: 0; border-radius: 0; min-height: 52px; text-align: left; }
.fec-ln2 .fec-fld-box .fec-input[type="time"], .fec-ln2 .fec-fld-box .fec-input[type="date"], .fec-ln2 .fec-fld-box .fec-input[type="datetime-local"] { min-width: 0; }
.fec-ln2 .fec-paincap2 { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--fill); color: var(--label2); font-size: 14.5px; text-align: center; transition: background 0.25s, color 0.25s; }
.fec-ln2 .fec-paincap2.on { background: var(--acc-t); color: var(--acc); font-weight: 650; }
@media (max-width: 559px) {
	.fec-ln2 .fec-painscale { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
	.fec-ln2 .fec-painbtn { padding: 12px 0 9px; border-radius: 16px; }
	.fec-ln2 .fec-painbtn .fec-face-ico { width: 27px; height: 27px; }
	.fec-ln2 .fec-navback:disabled { visibility: hidden; }
}

.fec-ln2 .fec-fld-box .fec-input[type="time"]::-webkit-calendar-picker-indicator { display: none; }


/* =====================================================================
   v1.5  Weekly timesheet (shares the log notes look: rail, cards, action bar)
   ===================================================================== */
.fec-app.fec-ln2[data-fec-mode="form"] { --fec-max: 1240px; }
.fec-ln2 .fec-lcard.fec-invalid, .fec-ln2 .fec-daycard.fec-invalid { box-shadow: 0 0 0 2px var(--red); }
.fec-ln2 .fec-roundbtn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none; background: var(--fill); color: var(--label); transition: background 0.2s, transform 0.15s var(--ease); }
.fec-ln2 .fec-roundbtn .fec-ico { width: 20px; height: 20px; }
.fec-ln2 .fec-roundbtn:hover { background: var(--acc-t); color: var(--acc); }
.fec-ln2 .fec-roundbtn:active { transform: scale(0.9); }
.fec-ln2 .fec-weekbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 10px; border-radius: 22px; background: var(--fill); }
.fec-ln2 .fec-weektxt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.fec-ln2 .fec-weektxt b { font-size: clamp(19px, 4.4vw, 24px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fec-ln2 .fec-weektxt small { font-size: 13.5px; color: var(--label2); margin-top: 3px; }
.fec-ln2 .fec-deadlines { margin-top: 16px; }
.fec-ln2 .fec-dl { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 99px; background: var(--fill); color: var(--label2); font-size: 13.5px; font-weight: 500; }
.fec-ln2 .fec-dl .fec-ico { width: 16px; height: 16px; color: var(--acc); }

/* hours */
.fec-ln2 .fec-total2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fec-ln2 .fec-total2.has .fec-dur-txt b { color: var(--acc); }
.fec-ln2 .fec-total2 .fec-dur-meter { margin-top: 14px; }
.fec-ln2 .fec-total2-foot { margin-top: 14px; }
.fec-ln2 .fec-copychip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; background: var(--acc-t); color: var(--acc); font-weight: 600; }
.fec-ln2 .fec-copychip:hover { background: var(--acc-t); filter: brightness(0.96); }
.fec-ln2 .fec-copychip .fec-ico { width: 17px; height: 17px; }
.fec-ln2 .fec-days2 { display: flex; flex-direction: column; gap: 10px; }
.fec-ln2 .fec-daycard { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "day tools" "fields fields"; gap: 10px 8px; align-items: center; padding: 12px; border-radius: 22px; background: var(--fill); border: 1.5px solid transparent; transition: border-color 0.25s; }
.fec-ln2 .fec-daycard.has-value { border-color: color-mix(in srgb, var(--acc) 38%, transparent); }
.fec-ln2 .fec-dc-day { grid-area: day; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; padding-left: 4px; }
.fec-ln2 .fec-dc-day strong { font-size: 16.5px; font-weight: 650; }
.fec-ln2 .fec-daycard.weekend .fec-dc-day strong { color: var(--label2); }
.fec-ln2 .fec-dc-date { font-size: 13px; color: var(--label2); margin-top: 2px; }
.fec-ln2 .fec-dc-tools { grid-area: tools; display: flex; align-items: center; gap: 6px; }
.fec-ln2 .fec-dc-tools .fec-xbtn, .fec-ln2 .fec-actrow-top .fec-xbtn { margin: 0; background: var(--card); }
.fec-ln2 .fec-cpybtn:hover { background: var(--acc-t); color: var(--acc); }
.fec-ln2 .fec-dc-fields { grid-area: fields; margin: 0; }
.fec-ln2 .fec-daycard .fec-fld-box { background: var(--card); }
@media (min-width: 760px) {
	.fec-ln2 .fec-daycard { grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-areas: "day fields tools"; }
}

/* activities */
.fec-ln2 .fec-hint { display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; color: var(--label2); font-size: 14px; }
.fec-ln2 .fec-hint .fec-ico { width: 18px; height: 18px; color: var(--acc); flex: none; }
.fec-ln2 .fec-actlist { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1240px) { .fec-ln2 .fec-actlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fec-ln2 .fec-actrow { background: var(--fill); border-radius: 22px; padding: 12px; min-width: 0; }
.fec-ln2 .fec-actrow-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fec-ln2 .fec-actico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--card); color: var(--acc); flex: none; }
.fec-ln2 .fec-actico .fec-ico { width: 22px; height: 22px; }
.fec-ln2 .fec-actname { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.fec-ln2 .fec-actcount { font-size: 12.5px; font-weight: 650; color: var(--acc); white-space: nowrap; }
.fec-ln2 .fec-dchips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fec-ln2 .fec-dchip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 56px; border-radius: 15px; background: var(--card); color: var(--label2); border: 1.5px solid transparent; transition: background 0.18s, color 0.18s, transform 0.15s var(--ease); }
.fec-ln2 .fec-dchip b { font-size: 12.5px; font-weight: 600; }
.fec-ln2 .fec-dchip-n { font-size: 16px; font-weight: 650; color: var(--label); font-variant-numeric: tabular-nums; }
.fec-ln2 .fec-dchip:active { transform: scale(0.92); }
.fec-ln2 .fec-dchip.worked::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--acc); }
.fec-ln2 .fec-dchip.on { background: var(--acc); color: #fff; }
.fec-ln2 .fec-dchip.on .fec-dchip-n { color: #fff; }
.fec-ln2 .fec-dchip.on.worked::after { background: #fff; }
.fec-ln2 .fec-footnote2 { margin-top: 14px; text-align: center; color: var(--label2); font-size: 13.5px; }


/* ---------- time picker ---------- */
.fec-app .fec-timebtn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; color: var(--acc, var(--blue)); background: var(--acc-t, rgba(10, 132, 255, 0.12)); transition: transform 0.15s var(--ease), filter 0.2s; }
.fec-app .fec-timebtn:hover { filter: brightness(0.95); }
.fec-app .fec-timebtn:active { transform: scale(0.9); }
.fec-app .fec-timebtn .fec-ico, .fec-app .fec-timebtn svg { width: 18px; height: 18px; }
.fec-app .fec-tp { width: min(340px, 92vw); background: var(--card); border-radius: 28px; padding: 18px 16px 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); transform: translateY(16px) scale(0.97); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.2s; color: var(--label); }
.fec-app.fec-overlay.in .fec-tp { transform: none; opacity: 1; }
.fec-app .fec-tp-title { text-align: center; font-size: 14px; font-weight: 600; color: var(--label2); margin-bottom: 4px; }
.fec-app .fec-tp-read { text-align: center; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.fec-app .fec-tp-cols { position: relative; display: grid; grid-template-columns: 1fr auto 1fr 78px; align-items: center; gap: 4px; height: 220px; }
.fec-app .fec-tp-cols::before { content: ""; position: absolute; left: 0; right: 86px; top: 88px; height: 44px; border-radius: 13px; background: var(--fill); pointer-events: none; }
.fec-app .fec-tp-col { position: relative; height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 88px 0; scrollbar-width: none; overscroll-behavior: contain; outline: none; -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.fec-app .fec-tp-col::-webkit-scrollbar { display: none; }
.fec-app .fec-tp-it { display: block; width: 100%; height: 44px; scroll-snap-align: center; font-size: 22px; font-weight: 500; color: var(--label2); font-variant-numeric: tabular-nums; transition: color 0.15s, transform 0.2s var(--ease); }
.fec-app .fec-tp-it.on { color: var(--label); font-weight: 700; transform: scale(1.1); }
.fec-app .fec-tp-colon { font-size: 24px; font-weight: 700; color: var(--label2); position: relative; z-index: 1; }
.fec-app .fec-tp-aps { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.fec-app .fec-tp-ap { height: 46px; border-radius: 14px; background: var(--fill); color: var(--label2); font-size: 16px; font-weight: 650; transition: background 0.2s, color 0.2s, transform 0.15s var(--ease); }
.fec-app .fec-tp-ap.on { background: var(--blue); color: #fff; }
.fec-app .fec-tp-ap:active { transform: scale(0.95); }
.fec-app .fec-tp-actions { display: flex; gap: 8px; margin-top: 14px; }
.fec-app .fec-tp-btn { flex: 1; height: 48px; border-radius: 16px; background: var(--fill); color: var(--label); font-size: 16px; font-weight: 600; transition: transform 0.15s var(--ease); }
.fec-app .fec-tp-btn.strong { background: var(--blue); color: #fff; flex: 1.4; }
.fec-app .fec-tp-btn:active { transform: scale(0.96); }


/* locked caregiver name + gate */
.fec-ln2 .fec-fld-tools { display: flex; align-items: center; gap: 6px; }
.fec-ln2 .fec-fld-locked { cursor: not-allowed; }
.fec-ln2 .fec-fld-locked .fec-fld-box, .fec-ln2 .fec-fld-locked .fec-fld-box:focus-within { background: transparent; border: 1.5px dashed var(--label3); box-shadow: none; }
.fec-ln2 .fec-fld-locked .fec-input { color: var(--label2); -webkit-text-fill-color: var(--label2); cursor: not-allowed; font-weight: 600; }
.fec-ln2 .fec-fld-locked .fec-fld-ico, .fec-ln2 .fec-fld-locked .fec-fld-box:focus-within .fec-fld-ico { color: var(--label2); }
.fec-ln2 .fec-lockmark { display: grid; place-items: center; color: var(--label3); flex: none; }
.fec-ln2 .fec-lockmark .fec-ico, .fec-ln2 .fec-lockmark svg { width: 19px; height: 19px; }
.fec-ln2 .fec-gate { max-width: 560px; margin: 8px auto 20px; padding: 34px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fec-ln2 .fec-gate-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--acc-t, rgba(10, 132, 255, 0.14)); color: var(--blue); margin-bottom: 6px; }
.fec-ln2 .fec-gate-ico svg, .fec-ln2 .fec-gate-ico .fec-ico { width: 30px; height: 30px; }
.fec-ln2 .fec-gate h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.fec-ln2 .fec-gate .fec-btn { margin-top: 10px; }

.fec-app .fec-tp-title::first-letter { text-transform: uppercase; }

/* ---------- time clock on phones and tablets (under 900px) ----------
   Top row: the logo (left) and the Dark / Light button (right) share one line and are the same height, so they line up.
   Under it: the clock and date, the name picker (login card), the weather card right below the login card, then the office phone. */
@media (max-width: 899px) {
	.fec-app.fec-clockapp { display: flex; flex-direction: column; --fec-topbar-h: 40px; }
	/* Never let a block shrink: the page scrolls instead. (Shrinking is what made the login card's border cut through its own list.) */
	.fec-app.fec-clockapp > *:not(.fec-aurora) { flex: 0 0 auto; }
	/* the logo row starts at the same height as the fixed Dark / Light button */
	.fec-app.fec-clockapp[data-fec-mode],
	.fec-app.fec-clockapp[data-fec-mode="clock"]:not([data-width="contained"]) { padding-top: clamp(12px, 2vw, 22px); }
	.fec-app.fec-clockapp .fec-hero { order: 1; align-self: flex-start; text-align: left; margin: 0 0 18px; line-height: 0; height: var(--fec-topbar-h); }
	.fec-app.fec-clockapp .fec-hero .fec-logo { display: flex; align-items: center; box-sizing: border-box; height: var(--fec-topbar-h); padding: 0 10px; border-radius: 13px; }
	.fec-app.fec-clockapp .fec-hero .fec-logo img { height: 30px; }
	.fec-app.fec-clockapp[data-fec-mode] > .fec-themebtn { box-sizing: border-box; height: var(--fec-topbar-h); padding-top: 0; padding-bottom: 0; right: max(16px, env(safe-area-inset-right)); }
	.fec-app.fec-clockapp .fec-face { order: 2; margin: 0 0 12px; }
	.fec-app.fec-clockapp .fec-stage { order: 4; }
	.fec-app.fec-clockapp .fec-dashslot { order: 5; }
	.fec-app.fec-clockapp .fec-wx { order: 6; margin: 12px auto 0; }
	.fec-app.fec-clockapp .fec-offices { order: 7; }
}


/* ---------- Time clock v1.5.6: see-through login card, and a still, lightweight sky on phones ---------- */
.fec-app.fec-clockapp { --stage-bg: rgba(255, 255, 255, 0.42); --stage-bg-m: rgba(255, 255, 255, 0.6); }
.fec-app.fec-clockapp[data-theme="dark"] { --stage-bg: rgba(22, 20, 46, 0.42); --stage-bg-m: rgba(22, 20, 46, 0.6); }
/* the login card is a little see-through, with only a light blur, so clouds and birds can be seen drifting behind it */
.fec-app.fec-clockapp .fec-stage { background: var(--stage-bg); -webkit-backdrop-filter: blur(4px) saturate(1.2); backdrop-filter: blur(4px) saturate(1.2); }

/* Phones: the background does not move at all and is kept very light (no animation, no timers, no blur or glow filters,
   fewer pieces), so it stays smooth and uses little memory. The picture itself (sky, clouds, sun or moon and stars) is the same. */
@media (max-width: 767px) {
	.fec-app .fec-blob, .fec-app .fec-birds, .fec-app .fec-shoot { display: none !important; }
	.fec-app .fec-sky-layer, .fec-app .fec-clouds, .fec-app .fec-stars, .fec-app .fec-moon, .fec-app .fec-sun, .fec-app .fec-cl { transition: none !important; }
	.fec-app .fec-clouds { opacity: 1; }
	.fec-app .fec-cl { left: var(--x, 0%); animation: none !important; will-change: auto; }
	.fec-app .fec-cl-b, .fec-app .fec-star, .fec-app .fec-moon svg, .fec-app .fec-sun svg, .fec-app .fec-sun .rays { animation: none !important; will-change: auto; }
	.fec-app .fec-cl svg, .fec-app .fec-moon, .fec-app .fec-sun { filter: none; }
	.fec-app .fec-star { opacity: 0.8; box-shadow: none; }
	.fec-app .fec-moon, .fec-app .fec-sun { right: 7%; top: 11%; }
	.fec-app.fec-clockapp .fec-stage { background: var(--stage-bg-m); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.fec-app.fec-clockapp > .fec-themebtn { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =====================================================================
   Office dashboard  [fourever_admin]   (Tesla-style tiles, iOS-style controls)
   ===================================================================== */
.fec-app[data-fec-mode="admin"] { --fec-max: 1380px; }
.fec-app.fd-root {
	--fd-w: #ffffff; --fd-w-border: rgba(60, 60, 67, 0.08); --fd-w-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 40px rgba(20, 30, 70, 0.07);
	--fd-inset: #f4f5f9; --fd-inset2: #ebedf3; --fd-glow1: rgba(0, 122, 255, 0.10); --fd-glow2: rgba(52, 199, 89, 0.07);
	--fd-teal: #30b0c7; --fd-chipshadow: 0 6px 14px rgba(0, 0, 0, 0.14);
	background: radial-gradient(1100px 520px at 85% -8%, var(--fd-glow1), transparent 62%), radial-gradient(900px 480px at -5% 0%, var(--fd-glow2), transparent 60%), var(--bg);
	min-height: 100vh;
}
.fec-app.fd-root[data-theme="dark"] {
	--fd-w: #141417; --fd-w-border: rgba(255, 255, 255, 0.07); --fd-w-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.45);
	--fd-inset: rgba(255, 255, 255, 0.05); --fd-inset2: rgba(255, 255, 255, 0.09); --fd-glow1: rgba(62, 106, 225, 0.22); --fd-glow2: rgba(48, 209, 88, 0.08);
	--fd-teal: #64d2ff; --bg: #08080a; --fd-chipshadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
	.fec-app.fd-root[data-theme="auto"] {
		--fd-w: #141417; --fd-w-border: rgba(255, 255, 255, 0.07); --fd-w-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.45);
		--fd-inset: rgba(255, 255, 255, 0.05); --fd-inset2: rgba(255, 255, 255, 0.09); --fd-glow1: rgba(62, 106, 225, 0.22); --fd-glow2: rgba(48, 209, 88, 0.08);
		--fd-teal: #64d2ff; --bg: #08080a; --fd-chipshadow: 0 6px 16px rgba(0, 0, 0, 0.5);
	}
}
.fec-app.fd-root a { text-decoration: none; }

/* ---------- top bar ---------- */
.fec-app .fd-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: clamp(18px, 3vw, 30px); }
.fec-app .fd-logo { justify-self: start; background: #fff; border-radius: 14px; padding: 0 12px; height: 46px; display: flex; align-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 22px rgba(0, 0, 0, 0.1); }
.fec-app .fd-logo img { height: 30px; width: auto; display: block; }
.fec-app .fd-top-mid { text-align: center; line-height: 1.1; }
.fec-app .fd-time { font-size: clamp(30px, 4vw, 44px); font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fec-app .fd-date { margin-top: 4px; font-size: 13px; color: var(--label2); letter-spacing: 0.01em; }
.fec-app .fd-top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.fec-app .fd-upd { font-size: 12.5px; color: var(--label2); margin-right: 4px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fec-app .fd-upd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); animation: fd-pulse 2.2s ease-out infinite; }
.fec-app .fd-upd.off::before { background: var(--orange); animation: none; }
.fec-app .fd-pill-btn, .fec-app .fd-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border: 1px solid var(--fd-w-border); background: var(--fd-w); color: var(--label); border-radius: 999px; padding: 0 15px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: transform 0.15s var(--ease), background 0.15s; -webkit-appearance: none; appearance: none; }
.fec-app .fd-icon-btn { width: 40px; padding: 0; }
.fec-app .fd-pill-btn:hover, .fec-app .fd-icon-btn:hover { background: var(--fd-inset2); }
.fec-app .fd-pill-btn:active, .fec-app .fd-icon-btn:active { transform: scale(0.95); }
.fec-app .fd-pill-btn .fec-ico, .fec-app .fd-icon-btn .fec-ico { width: 18px; height: 18px; display: block; }
.fec-app .fd-icon-btn.spin .fec-ico { animation: fec-spin 0.6s linear infinite; }

/* ---------- greeting ---------- */
.fec-app .fd-hello { margin-bottom: clamp(16px, 2.4vw, 26px); }
.fec-app .fd-hello-title { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.fec-app .fd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fec-app .fd-chip-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--fd-w); border: 1px solid var(--fd-w-border); font-size: 13.5px; font-weight: 600; color: var(--label2); }
.fec-app .fd-chip-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--label3); }
.fec-app .fd-chip-pill.green { color: var(--green-text); background: var(--green-tint); border-color: transparent; }
.fec-app .fd-chip-pill.green i { background: var(--green); animation: fd-pulse 2s ease-out infinite; }
.fec-app .fd-chip-pill.orange { color: var(--orange-text); background: var(--orange-tint); border-color: transparent; }
.fec-app .fd-chip-pill.orange i { background: var(--orange); }
.fec-app .fd-chip-pill.mute i { background: var(--green); }

/* ---------- grid + widgets ---------- */
.fec-app .fd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.fec-app .fd-w-new { grid-column: span 4; }
.fec-app .fd-w-staff { grid-column: span 8; }
.fec-app .fd-w-subs { grid-column: span 7; }
.fec-app .fd-w-tools { grid-column: span 5; }
.fec-app .fd-w { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(16px, 1.8vw, 24px); background: var(--fd-w); border: 1px solid var(--fd-w-border); border-radius: 28px; box-shadow: var(--fd-w-shadow); animation: fd-rise 0.6s var(--ease) both; }
.fec-app .fd-w-staff { animation-delay: 0.06s; } .fec-app .fd-w-subs { animation-delay: 0.12s; } .fec-app .fd-w-tools { animation-delay: 0.18s; }
.fec-app .fd-w-head { display: flex; align-items: center; gap: 13px; }
.fec-app .fd-w-titles { flex: 1; min-width: 0; }
.fec-app .fd-w-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.fec-app .fd-w-sub { font-size: 13px; color: var(--label2); margin-top: 2px; }
.fec-app .fd-w-body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; }
.fec-app .fd-chip { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; box-shadow: var(--fd-chipshadow); }
.fec-app .fd-chip .fec-ico { width: 22px; height: 22px; display: block; }
.fec-app .fd-chip.blue { background: linear-gradient(150deg, #4da3ff, #0a64ff); }
.fec-app .fd-chip.green { background: linear-gradient(150deg, #5ee37f, #1fb34a); }
.fec-app .fd-chip.orange { background: linear-gradient(150deg, #ffb340, #ff7a00); }
.fec-app .fd-link-btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.fec-app .fd-link-btn .fec-ico { width: 16px; height: 16px; }
.fec-app .fd-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--label2); margin: 4px 4px 0; }
.fec-app .fd-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.08em; color: var(--green-text); }
.fec-app .fd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: fd-pulse 2s ease-out infinite; }

/* ---------- 1. new caregiver ---------- */
.fec-app .fd-form { display: flex; flex-direction: column; gap: 10px; }
.fec-app .fd-field { position: relative; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 16px; background: var(--fd-inset); border-radius: 16px; border: 1.5px solid transparent; transition: border-color 0.15s, background 0.15s; }
.fec-app .fd-field:focus-within { border-color: var(--blue); background: var(--fd-w); }
.fec-app .fd-field-label { width: 54px; flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label2); }
.fec-app .fd-input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--label); font: inherit; font-size: 17px; padding: 0; -webkit-appearance: none; appearance: none; }
.fec-app .fd-input::placeholder { color: var(--label3); }
.fec-app .fd-field-btn { flex: none; display: grid; place-items: center; height: 38px; min-width: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--label2); cursor: pointer; font: inherit; }
.fec-app .fd-field-btn.txt { padding: 0 12px; background: var(--blue-tint); color: var(--blue); font-size: 13.5px; font-weight: 600; }
.fec-app .fd-field-btn .fec-ico { width: 20px; height: 20px; display: block; }
.fec-app .fd-field-photo { height: 64px; }
.fec-app .fd-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fec-app .fd-photo-thumb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fd-w) center / cover no-repeat; color: var(--label3); cursor: pointer; border: 1.5px dashed var(--label3); }
.fec-app .fd-photo-thumb.has { border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.fec-app .fd-photo-thumb .fec-ico { width: 21px; height: 21px; display: block; }
.fec-app .fd-photo-hint { flex: 1; min-width: 0; font-size: 15px; color: var(--label3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fec-app .fd-field-btn[hidden] { display: none; }
.fec-app .fd-err { margin: 0; min-height: 0; font-size: 13.5px; color: var(--red); font-weight: 500; padding: 0 4px; }
.fec-app .fd-err:empty { display: none; }
.fec-app .fd-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--blue); color: #fff !important; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: transform 0.15s var(--ease), filter 0.15s; text-decoration: none; -webkit-appearance: none; appearance: none; }
.fec-app .fd-btn:hover { filter: brightness(1.06); }
.fec-app .fd-btn:active { transform: scale(0.98); }
.fec-app .fd-btn.ghost { background: var(--blue-tint); color: var(--blue) !important; height: 46px; font-size: 15px; }
.fec-app .fd-btn .fec-ico { width: 18px; height: 18px; display: block; }
.fec-app .fd-btn.loading { pointer-events: none; opacity: 0.75; }
.fec-app .fd-btn.loading span { opacity: 0; }
.fec-app .fd-btn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: fec-spin 0.7s linear infinite; }
.fec-app .fd-done { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px 0 2px; animation: fd-rise 0.45s var(--ease) both; }
.fec-app .fd-done-check { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #5ee37f, #1fb34a); box-shadow: 0 10px 24px rgba(48, 209, 88, 0.35); animation: fd-pop 0.5s var(--ease) both; }
.fec-app .fd-done-check .fec-ico { width: 28px; height: 28px; }
.fec-app .fd-done-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.fec-app .fd-done-rows { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fec-app .fd-done-rows > div { background: var(--fd-inset); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fec-app .fd-done-rows span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label2); }
.fec-app .fd-done-rows b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.fec-app .fd-done-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.fec-app .fd-recent { display: flex; flex-direction: column; gap: 2px; }
.fec-app .fd-recent .fec-avatar { width: 38px; height: 38px; font-size: 14px; }
.fec-app .fd-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 6px; }
.fec-app .fd-glance-cell { background: var(--fd-inset); border-radius: 18px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fec-app .fd-glance-cell b { font-size: 32px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fec-app .fd-glance-cell span { font-size: 11.5px; color: var(--label2); line-height: 1.2; }

/* ---------- 2. caregivers ---------- */
.fec-app .fd-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
.fec-app .fd-pane-list, .fec-app .fd-pane-feed { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.fec-app .fd-pane-feed { padding-left: 20px; border-left: 1px solid var(--fd-w-border); }
.fec-app .fd-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fec-app .fd-search { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--fd-inset); color: var(--label2); }
.fec-app .fd-search .fec-ico { width: 18px; height: 18px; flex: none; }
.fec-app .fd-search-input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--label); font: inherit; font-size: 16px; height: 100%; padding: 0; -webkit-appearance: none; appearance: none; }
.fec-app .fd-search-input::-webkit-search-cancel-button { display: none; }
.fec-app .fd-seg { display: inline-flex; background: var(--fill); border-radius: 11px; padding: 2px; }
.fec-app .fd-seg-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--label); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.2s var(--ease), box-shadow 0.2s; }
.fec-app .fd-seg-btn em { font-style: normal; font-size: 12px; color: var(--label2); font-weight: 600; }
.fec-app .fd-seg-btn.on { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.fec-app.fd-root[data-theme="dark"] .fd-seg-btn.on { background: #3a3a3e; }
.fec-app .fd-list, .fec-app .fd-feed { display: flex; flex-direction: column; gap: 2px; max-height: 452px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; overscroll-behavior: contain; scrollbar-width: thin; }
.fec-app .fd-feed-subs { max-height: 380px; }
.fec-app .fd-row { display: flex; align-items: center; gap: 13px; padding: 10px 10px; border-radius: 18px; color: inherit !important; transition: background 0.15s, transform 0.15s var(--ease); }
.fec-app a.fd-row:hover, .fec-app a.fd-ev:hover { background: var(--fd-inset); }
.fec-app a.fd-row:active, .fec-app a.fd-ev:active { transform: scale(0.99); }
.fec-app .fd-row.fd-new { animation: fd-flash 2.6s ease-out; }
.fec-app .fd-ava { position: relative; flex: none; width: 48px; height: 48px; }
.fec-app .fd-ava .fec-avatar { width: 48px; height: 48px; font-size: 17px; }
.fec-app .fd-ava.in .fec-avatar { box-shadow: 0 0 0 2.5px var(--fd-w), 0 0 0 4.5px var(--green); }
.fec-app .fd-dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--fd-w); background: #8e8e93; }
.fec-app .fd-ava.in .fd-dot { background: var(--green); animation: fd-pulse 2s ease-out infinite; }
.fec-app .fd-ava.missed .fd-dot { background: var(--orange); }
.fec-app .fd-row-main { flex: 1; min-width: 0; }
.fec-app .fd-row-name { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fec-app .fd-row-sub { font-size: 13.5px; color: var(--label2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.fec-app .fd-st b { font-weight: 600; }
.fec-app .fd-st.in b { color: var(--green-text); }
.fec-app .fd-st.warn b { color: var(--orange-text); }
.fec-app .fd-hrs { text-align: right; flex: none; line-height: 1.1; }
.fec-app .fd-hrs b { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fec-app .fd-hrs small { font-size: 11px; color: var(--label2); }
.fec-app .fd-chev { flex: none; width: 16px; height: 16px; color: var(--label3); }
.fec-app .fd-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; text-align: center; color: var(--label2); font-size: 14.5px; }
.fec-app .fd-empty .fec-ico { width: 34px; height: 34px; color: var(--label3); }
.fec-app .fd-empty.small { padding: 22px 12px; }
.fec-app .fd-ev { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 16px; color: inherit !important; transition: background 0.15s, transform 0.15s var(--ease); animation: fd-rise 0.4s var(--ease) both; }
.fec-app .fd-ev-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fill); color: var(--label2); }
.fec-app .fd-ev-ico .fec-ico { width: 19px; height: 19px; display: block; }
.fec-app .fd-ev-ico.in { background: var(--green-tint); color: var(--green-text); }
.fec-app .fd-ev-ico.out { background: var(--fill); color: var(--label2); }
.fec-app .fd-ev-ico.signin, .fec-app .fd-ev-ico.sheet { background: var(--blue-tint); color: var(--blue); }
.fec-app .fd-ev-ico.note { background: rgba(48, 176, 199, 0.18); color: var(--fd-teal); }
.fec-app .fd-ev-ico.warn { background: var(--orange-tint); color: var(--orange-text); }
.fec-app .fd-ev-ico.alert { background: var(--red-tint); color: var(--red); }
.fec-app .fd-ev-ico.ok { background: var(--green-tint); color: var(--green-text); }
.fec-app .fd-ev-main { flex: 1; min-width: 0; }
.fec-app .fd-ev-title { font-size: 14.5px; line-height: 1.3; }
.fec-app .fd-ev-title b { font-weight: 600; }
.fec-app .fd-ev-title span { color: var(--label2); }
.fec-app .fd-ev-sub { font-size: 12.5px; color: var(--label2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fec-app .fd-ev-time { flex: none; font-size: 12px; color: var(--label2); white-space: nowrap; }
.fec-app .fd-tag { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.fec-app .fd-ev-title .fd-tag.warn { background: var(--orange-tint); color: var(--orange-text); }

/* ---------- 3. submissions ---------- */
.fec-app .fd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fec-app .fd-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; border-radius: 22px; background: var(--fd-inset); min-width: 0; }
.fec-app .fd-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; opacity: 0.9; }
.fec-app .fd-stat.blue::before { background: linear-gradient(90deg, #4da3ff, #0a64ff); }
.fec-app .fd-stat.teal::before { background: linear-gradient(90deg, #64d2ff, #30b0c7); }
.fec-app .fd-stat.green::before { background: linear-gradient(90deg, #5ee37f, #1fb34a); }
.fec-app .fd-stat-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label2); }
.fec-app .fd-stat b { font-size: clamp(34px, 3.6vw, 46px); font-weight: 200; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 4px; }
.fec-app .fd-stat-sub { font-size: 12px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 4. insights & tools ---------- */
.fec-app .fd-attn { display: flex; flex-direction: column; gap: 2px; max-height: 270px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.fec-app .fd-clear { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 16px; background: var(--green-tint); }
.fec-app .fd-clear > div { display: flex; flex-direction: column; font-size: 13px; color: var(--label2); }
.fec-app .fd-clear b { font-size: 15px; color: var(--green-text); font-weight: 600; }
.fec-app .fd-chart-sum b { font-size: 15px; letter-spacing: 0; color: var(--label); font-weight: 600; }
.fec-app .fd-chart-sum small { font-size: 11px; color: var(--label2); text-transform: none; letter-spacing: 0; }
.fec-app .fd-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 136px; align-items: stretch; padding: 0 4px; }
.fec-app .fd-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fec-app .fd-bar-val { height: 14px; font-size: 11px; font-weight: 600; color: var(--label2); font-variant-numeric: tabular-nums; }
.fec-app .fd-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.fec-app .fd-bar-track i { display: block; width: 100%; max-width: 36px; border-radius: 11px 11px 6px 6px; background: var(--fd-inset2); transform-origin: bottom; animation: fd-grow 0.8s var(--ease) both; }
.fec-app .fd-bar.today .fd-bar-track i { background: linear-gradient(180deg, #4da3ff, #0a64ff); box-shadow: 0 6px 16px rgba(10, 100, 255, 0.35); }
.fec-app .fd-bar:not(.today) .fd-bar-track i { background: linear-gradient(180deg, rgba(10, 132, 255, 0.5), rgba(10, 132, 255, 0.22)); }
.fec-app .fd-bar-lbl { font-size: 11.5px; color: var(--label2); font-weight: 500; }
.fec-app .fd-bar.today .fd-bar-lbl, .fec-app .fd-bar.today .fd-bar-val { color: var(--blue); font-weight: 700; }
.fec-app .fd-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fec-app .fd-tool { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; background: var(--fd-inset); color: var(--label) !important; font-size: 13.5px; font-weight: 600; line-height: 1.2; transition: background 0.15s, transform 0.15s var(--ease); min-width: 0; }
.fec-app .fd-tool:hover { background: var(--fd-inset2); }
.fec-app .fd-tool:active { transform: scale(0.97); }
.fec-app .fd-tool.off { opacity: 0.45; }
.fec-app .fd-tool > .fec-ico { width: 24px; height: 24px; color: var(--blue); display: block; }
.fec-app .fd-tool-copy { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 9px; background: var(--fd-w); color: var(--label2); cursor: pointer; opacity: 0; transition: opacity 0.15s; padding: 0; }
.fec-app .fd-tool-copy .fec-ico { width: 15px; height: 15px; display: block; }
.fec-app .fd-tool:hover .fd-tool-copy, .fec-app .fd-tool-copy:focus-visible { opacity: 1; }
@media (hover: none) { .fec-app .fd-tool-copy { opacity: 0.7; } }
.fec-app .fd-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 0 6px; font-size: 12px; color: var(--label3); }

/* ---------- motion ---------- */
@keyframes fd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fd-pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes fd-grow { from { transform: scaleY(0.04); } to { transform: scaleY(1); } }
@keyframes fd-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }
@keyframes fd-flash { 0%, 55% { background: var(--blue-tint); } 100% { background: transparent; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
	.fec-app .fd-w-new, .fec-app .fd-w-staff, .fec-app .fd-w-subs, .fec-app .fd-w-tools { grid-column: span 12; }
	.fec-app .fd-w-new .fd-w-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: end; }
	.fec-app .fd-w-new .fd-glance { margin-top: 0; padding-top: 0; }
}
@media (max-width: 900px) {
	.fec-app .fd-split { grid-template-columns: minmax(0, 1fr); }
	.fec-app .fd-pane-feed { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--fd-w-border); }
	.fec-app .fd-list { max-height: 420px; }
	.fec-app .fd-feed { max-height: 360px; }
}
@media (max-width: 720px) {
	.fec-app .fd-top { grid-template-columns: auto 1fr; row-gap: 14px; }
	.fec-app .fd-top-actions { grid-column: 2; grid-row: 1; }
	.fec-app .fd-top-mid { grid-column: 1 / -1; grid-row: 2; text-align: left; display: flex; align-items: baseline; gap: 12px; }
	.fec-app .fd-date { margin: 0; }
	.fec-app .fd-upd { display: none; }
	.fec-app .fd-pill-btn span { display: none; }
	.fec-app .fd-pill-btn { width: 40px; padding: 0; }
	.fec-app .fd-w { border-radius: 24px; }
	.fec-app .fd-w-new .fd-w-body { display: flex; flex-direction: column; align-items: stretch; }
	.fec-app .fd-w-new .fd-glance { margin-top: 6px; }
	.fec-app .fd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.fec-app .fd-stat { padding: 14px 12px 12px; border-radius: 18px; }
	.fec-app .fd-stat-sub { display: none; }
	.fec-app .fd-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fec-app .fd-hrs small { display: none; }
}
@media (max-width: 380px) { .fec-app .fd-glance-cell b { font-size: 26px; } .fec-app .fd-stat b { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) {
	.fec-app .fd-w, .fec-app .fd-ev, .fec-app .fd-done, .fec-app .fd-done-check, .fec-app .fd-bar-track i { animation: none !important; }
}

/* Back to my profile (timesheet, log notes, records) */
.fec-app .fec-backrow { display: flex; margin: 0 0 12px; }
.fec-app .fec-backrow[hidden] { display: none; }
.fec-app .fec-backrow .fec-btn { min-height: 40px; }

/* ---------- v1.6.9: sign-in / login button alignment (desktop + mobile) ----------
   Block buttons (Sign in, Continue, View my profile) always fill the card and stay centred, so they line up with the PIN pad and fields.
   While loading, a theme's generic ".loading" rule can no longer push the button sideways, and the spinner is centred with inset:0 + auto margins. */
.fec-app .fec-btn-block { display: flex; box-sizing: border-box; width: 100%; margin-left: auto; margin-right: auto; align-self: center; }
.fec-app .fec-btn.loading, .fec-app .fec-navbtn.loading, .fec-ln2 .fec-navbtn.loading, .fec-app .fd-btn.loading {
	position: relative; left: auto; right: auto; top: auto; bottom: auto; float: none; transform: none; margin-left: auto; margin-right: auto; text-indent: 0; text-align: center;
}
.fec-app .fec-btn-block.loading { width: 100%; }
.fec-app .fec-btn.loading::after, .fec-ln2 .fec-navbtn.loading::after, .fec-app .fd-btn.loading::after {
	position: absolute; inset: 0; margin: auto; left: 0; right: 0; top: 0; bottom: 0; transform-origin: center; box-sizing: border-box;
}
.fec-app .fec-btn-block .fec-ico, .fec-app .fec-btn-block span { pointer-events: none; }
@media (max-width: 560px) {
	.fec-app .fec-btn-block, .fec-app.fec-clockapp .fec-btn-block { max-width: 100%; }
}

/* ---------- v1.7.0: compact PIN screen + dashboard button under the date (phones and tablets, under 900px) ---------- */
.fec-app .fec-pin-row { display: contents; }
@media (max-width: 899px) {
	.fec-app.fec-clockapp .fec-dashslot { order: 3; margin: 0 0 14px; }
	.fec-app.fec-clockapp .fec-pinview { gap: 4px; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-who { flex-direction: row; align-items: center; justify-content: flex-start; align-self: stretch; gap: 14px; margin: 0; text-align: left; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-who .fec-avatar.big, .fec-app.fec-clockapp .fec-pinview .fec-pin-who .fec-avatar { width: 60px; height: 60px; font-size: 22px; flex: none; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-who .fec-lock { margin: 0; width: 52px; height: 52px; border-radius: 15px; flex: none; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-who .fec-lock .fec-ico { width: 26px; height: 26px; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-name { font-size: 24px; text-align: left; min-width: 0; overflow-wrap: anywhere; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-row { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: 12px; margin: 6px 0 0; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-row .fec-subtitle { margin: 0; max-width: none; text-align: left; white-space: nowrap; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-row .fec-dots { margin: 0; gap: 12px; flex: none; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-error { margin: 0; min-height: 0; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-error:empty { display: none; }
	.fec-app.fec-clockapp .fec-pinview .fec-keypad { margin: 6px 0 10px; gap: 10px 20px; }
}

/* ---------- v1.7.1: Back + Continue on one row (phones and tablets) ---------- */
.fec-app .fec-pin-actions { display: contents; }
@media (max-width: 899px) {
	.fec-app.fec-clockapp .fec-pinview .fec-pin-actions { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; align-self: stretch; gap: 12px; margin-top: 4px; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-actions .fec-btn-block { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; margin: 0; height: 48px; }
	.fec-app.fec-clockapp .fec-pinview .fec-pin-actions .fec-center-link { flex: none; display: block; margin: 0; padding: 12px 10px; }
}

/* ---------- v1.7.2: hide floating accessibility buttons and social share bars on this plugin's pages only ---------- */
body.fec-page #pojo-a11y-toolbar, body.fec-page .pojo-a11y-toolbar, body.fec-page #ocaw-container, body.fec-page .ocaw-widget,
body.fec-page #userway-widget, body.fec-page .userway_buttons_wrapper, body.fec-page [data-uw-styling-context], body.fec-page .uwy, body.fec-page #userwayAccessibilityIcon,
body.fec-page #acsb-trigger, body.fec-page .acsb-trigger, body.fec-page [data-acsb-custom-trigger], body.fec-page #INDWrap, body.fec-page .INDWrap,
body.fec-page #wpa-toolbar, body.fec-page .wahout, body.fec-page .wahi, body.fec-page #accessibility-toolbar, body.fec-page .accessibility-toolbar,
body.fec-page #accessibility-widget, body.fec-page .accessibility-widget, body.fec-page .a11y-toolbar, body.fec-page #a11y-toolbar,
body.fec-page .sticky-social, body.fec-page .social-sticky, body.fec-page .social-share-bar, body.fec-page .sticky-share-bar, body.fec-page .mobile-share-bar,
body.fec-page .a2a_floating_style, body.fec-page .addtoany_floating, body.fec-page .heateor_sss_sharing_ul, body.fec-page .heateor_sss_vertical_sharing, body.fec-page .heateor_sss_horizontal_sharing,
body.fec-page .ssbp-wrap, body.fec-page .ssba-wrap, body.fec-page .shareaholic-share-buttons-container, body.fec-page .sumome-share-client-wrapper,
body.fec-page .swp_social_panel, body.fec-page .social-warfare, body.fec-page .wpsr-fixed, body.fec-page .easy-social-share-buttons, body.fec-page .essb_displayed_sidebar, body.fec-page .essb-mobile-sharebar, body.fec-page .essb_mobile_sharebottom,
body.fec-page .jssocials-floating, body.fec-page .floating-social, body.fec-page .social-float, body.fec-page .mashsb-container, body.fec-page .wp-social-sharing-floating, body.fec-page .nsc_bar_wrapper, body.fec-page .kiwi-sticky-sharing,
body.fec-page [class*="floating-share"], body.fec-page [class*="sticky-share"], body.fec-page [class*="share-floating"], body.fec-page [class*="social-floating"], body.fec-page [class*="floating-social"], body.fec-page [class*="mobile-share"], body.fec-page [id*="floating-share"], body.fec-page [id*="sticky-share"],
body.fec-page [class*="accessibility-icon"], body.fec-page [class*="accessibility-button"], body.fec-page [id*="accessibility-button"], body.fec-page [class*="a11y-button"], body.fec-page [class*="a11y-widget"], body.fec-page [id*="a11y-widget"] { display: none !important; visibility: hidden !important; }

/* =====================================================================
   v1.8.0  Brown bear mascot (replaces the jellyfish; same animation rig)
   The bear keeps every jf-* part, so the walking and weather acts above still work.
   New: silly dances ([data-act="dance"][data-dance="..."]), picked at random or when you tap the bear.
   ===================================================================== */
.fec-app .jf-hop { transform-origin: 32px 56px; }
.fec-app .jf-bell { transform-origin: 32px 46px; }
.fec-app .jf-armA, .fec-app .jf-armU { transform-origin: 42px 52px; } .fec-app .jf-armB { transform-origin: 22px 52px; }
.fec-app .jf-legA { transform-origin: 37.5px 68px; } .fec-app .jf-legB { transform-origin: 26.5px 68px; }
.fec-app .jf-tuft { transform-origin: 30px 11px; --anim: fecjf-flutter 1.3s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker { --lg: 26deg; }
/* the bear's fur does not change colour with the weather; the gait stays gentle (no jelly squash-and-stretch overdone) */
.fec-app .fec-wx-walker[data-act="walk"] .jf-squash { --anim: fecbr-waddle var(--st) ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-bell { --anim: fecbr-headbob var(--st) ease-in-out infinite alternate; animation-delay: 0s; }
.fec-app .jf-bell { --anim: fecbr-headidle 3s ease-in-out infinite alternate; }
.fec-app .jf-squash { --anim: fecbr-breathe 3s ease-in-out infinite; }
.fec-app .jf-fx.jf-notes { display: none; }
.fec-app .fec-wx-walker[data-act="dance"] .jf-notes, .fec-app .fec-wx-walker[data-act="dance"] .jf-sparks { display: inline; }
.fec-app .fec-wx-walker[data-act="dance"] .jf-zs { display: none; }
.fec-app .fec-wx-walker[data-act="dance"] .jf-n2 { animation-delay: -1s; } .fec-app .fec-wx-walker[data-act="dance"] .jf-n3 { animation-delay: -2s; }
.fec-app .fec-wx-walker[data-act="dance"] .jf-notes .jf-z { --anim: fecjf-z 1.6s ease-in infinite; }
.fec-app .fec-wx-walker[data-act="dance"] .jf-mo { display: none; }
.fec-app .fec-wx-walker[data-act="dance"] .jf-mo-big { display: inline; }
.fec-app .fec-wx-walker[data-act="dance"] { --eyeY: 1; }

@keyframes fecbr-waddle { 0%, 100% { transform: rotate(-3.5deg) scale(1.04, 0.96); } 50% { transform: rotate(3.5deg) scale(0.97, 1.04); } }
@keyframes fecbr-headbob { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-1px); } }
@keyframes fecbr-headidle { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes fecbr-breathe { 50% { transform: scale(1.025, 0.975); } }

/* ---- the dances ---- */
/* shimmy: shoulders shake, paws flap */
.fec-app .fec-wx-walker[data-dance="shimmy"] .jf-lean { --anim: fecbr-shimmy 0.14s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="shimmy"] .jf-armA { --anim: fecbr-flapA 0.28s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="shimmy"] .jf-armB { --anim: fecbr-flapB 0.28s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="shimmy"] .jf-hop { --anim: fecbr-bounce 0.28s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="shimmy"] .jf-legA { --anim: fecjf-leg 0.28s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="shimmy"] .jf-legB { --anim: fecjf-leg 0.28s ease-in-out infinite alternate-reverse; }
/* disco: point to the sky, hips swinging */
.fec-app .fec-wx-walker[data-dance="disco"] .jf-armA { --anim: fecbr-disco 0.9s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="disco"] .jf-armB { --anim: fecbr-discoB 0.9s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="disco"] .jf-lean { --anim: fecbr-hip 0.9s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="disco"] .jf-hop { --anim: fecbr-hiphop 0.45s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="disco"] .jf-legA { --anim: fecjf-leg 0.45s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="disco"] .jf-legB { --anim: fecjf-leg 0.45s ease-in-out infinite alternate-reverse; }
/* spin: a full twirl with arms out */
.fec-app .fec-wx-walker[data-dance="spin"] .jf-squash { --anim: fecjf-twirl 1s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="spin"] .jf-hop { --anim: fecjf-twirlhop 1s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="spin"] .jf-armA { --anim: fecjf-wideA 0.3s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="spin"] .jf-armB { --anim: fecjf-wideB 0.3s ease-in-out infinite alternate; }
/* robot: stiff, stepped moves */
.fec-app .fec-wx-walker[data-dance="robot"] .jf-armA { --anim: fecbr-robA 1s steps(1, end) infinite; }
.fec-app .fec-wx-walker[data-dance="robot"] .jf-armB { --anim: fecbr-robB 1s steps(1, end) infinite; }
.fec-app .fec-wx-walker[data-dance="robot"] .jf-bell { --anim: fecbr-robhead 1s steps(1, end) infinite; }
.fec-app .fec-wx-walker[data-dance="robot"] .jf-lean { --anim: fecbr-robbody 2s steps(1, end) infinite; }
.fec-app .fec-wx-walker[data-dance="robot"] .jf-legA { --anim: fecjf-leg 0.5s steps(2, end) infinite alternate; }
.fec-app .fec-wx-walker[data-dance="robot"] .jf-legB { --anim: fecjf-leg 0.5s steps(2, end) infinite alternate-reverse; }
/* moonwalk: smooth glide backwards, one paw up */
.fec-app .fec-wx-walker[data-dance="moon"] .jf-legA { --anim: fecbr-moonA 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="moon"] .jf-legB { --anim: fecbr-moonB 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="moon"] .jf-armA { --anim: fecbr-moonarm 1s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="moon"] .jf-armB { --anim: fecjf-armrest 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="moon"] .jf-lean { transform: rotate(-5deg); --anim: none; }
.fec-app .fec-wx-walker[data-dance="moon"] .jf-bell { --anim: fecbr-headbob 0.5s ease-in-out infinite alternate; }
/* chicken: elbows out, flapping, head pecking */
.fec-app .fec-wx-walker[data-dance="chicken"] .jf-armA { --anim: fecbr-flapA2 0.2s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="chicken"] .jf-armB { --anim: fecbr-flapB2 0.2s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="chicken"] .jf-bell { --anim: fecbr-peck 0.4s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="chicken"] .jf-squash { --anim: fecbr-squat 0.4s ease-in-out infinite; }
/* backflip: a big tumble */
.fec-app .fec-wx-walker[data-dance="flip"] .jf-hop { --anim: fecbr-flip 1.2s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="flip"] .jf-armA { --anim: fecjf-cheerA 0.3s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="flip"] .jf-armB { --anim: fecjf-cheerB 0.3s ease-in-out infinite alternate; }
/* wiggle: big booty shake */
.fec-app .fec-wx-walker[data-dance="wiggle"] .jf-lean { --anim: fecbr-wiggle 0.18s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="wiggle"] .jf-squash { --anim: fecbr-squat 0.36s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="wiggle"] .jf-armA { --anim: fecbr-handsonhips 0.36s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="wiggle"] .jf-armB { --anim: fecbr-handsonhipsB 0.36s ease-in-out infinite alternate; }
/* headbang: rock on! */
.fec-app .fec-wx-walker[data-dance="bang"] .jf-bell { --anim: fecbr-bang 0.34s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="bang"] .jf-armA { --anim: fecbr-horns 0.34s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="bang"] .jf-armB { --anim: fecjf-cheerB 0.34s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="bang"] .jf-squash { --anim: fecbr-squat 0.34s ease-in-out infinite; }
/* worm: dive down, wave the body along the floor, pop up */
.fec-app .fec-wx-walker[data-dance="worm"] .jf-squash { --anim: fecbr-worm 1.4s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="worm"] .jf-lean { --anim: fecbr-wormwave 0.35s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="worm"] .jf-armA { --anim: fecjf-cheerA 0.35s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="worm"] .jf-armB { --anim: fecjf-cheerB 0.35s ease-in-out infinite alternate; }

@keyframes fecbr-shimmy { from { transform: translateX(-1.6px) skewX(-7deg); } to { transform: translateX(1.6px) skewX(7deg); } }
@keyframes fecbr-flapA { from { transform: rotate(-30deg); } to { transform: rotate(-120deg); } }
@keyframes fecbr-flapB { from { transform: rotate(30deg); } to { transform: rotate(120deg); } }
@keyframes fecbr-bounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes fecbr-disco { from { transform: rotate(-135deg); } to { transform: rotate(-160deg); } }
@keyframes fecbr-discoB { from { transform: rotate(18deg); } to { transform: rotate(32deg); } }
@keyframes fecbr-hip { from { transform: rotate(-11deg) translateX(-2px); } to { transform: rotate(11deg) translateX(2px); } }
@keyframes fecbr-hiphop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fecbr-robA { 0% { transform: rotate(-90deg); } 25% { transform: rotate(-155deg); } 50% { transform: rotate(-155deg); } 75% { transform: rotate(-90deg); } }
@keyframes fecbr-robB { 0% { transform: rotate(90deg); } 25% { transform: rotate(90deg); } 50% { transform: rotate(155deg); } 75% { transform: rotate(155deg); } }
@keyframes fecbr-robhead { 0% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 50% { transform: rotate(0); } 75% { transform: rotate(9deg); } }
@keyframes fecbr-robbody { 0% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes fecbr-moonA { from { transform: rotate(-26deg); } to { transform: rotate(8deg) translateY(-3px); } }
@keyframes fecbr-moonB { from { transform: rotate(8deg) translateY(-3px); } to { transform: rotate(-26deg); } }
@keyframes fecbr-moonarm { from { transform: rotate(-110deg); } to { transform: rotate(-135deg); } }
@keyframes fecbr-flapA2 { from { transform: rotate(-62deg); } to { transform: rotate(-98deg); } }
@keyframes fecbr-flapB2 { from { transform: rotate(62deg); } to { transform: rotate(98deg); } }
@keyframes fecbr-peck { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(3px) rotate(10deg); } }
@keyframes fecbr-squat { 0%, 100% { transform: scale(1.04, 0.95); } 50% { transform: scale(0.97, 1.05); } }
@keyframes fecbr-flip { 0% { transform: translateY(0) rotate(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); } 18% { transform: translateY(2px) rotate(0); } 55% { transform: translateY(-24px) rotate(-200deg); } 85%, 100% { transform: translateY(0) rotate(-360deg); } }
@keyframes fecbr-wiggle { from { transform: rotate(-10deg) translateX(-2px); } to { transform: rotate(10deg) translateX(2px); } }
@keyframes fecbr-handsonhips { from { transform: rotate(-26deg); } to { transform: rotate(-40deg); } }
@keyframes fecbr-handsonhipsB { from { transform: rotate(26deg); } to { transform: rotate(40deg); } }
@keyframes fecbr-bang { from { transform: rotate(-16deg) translateY(-1px); } to { transform: rotate(18deg) translateY(2px); } }
@keyframes fecbr-horns { from { transform: rotate(-150deg); } to { transform: rotate(-170deg); } }
@keyframes fecbr-worm { 0%, 12% { transform: scale(1, 1); } 30%, 70% { transform: translateY(14px) scale(1.18, 0.62); } 88%, 100% { transform: scale(1, 1); } }
@keyframes fecbr-wormwave { from { transform: skewX(-12deg) translateX(-2px); } to { transform: skewX(12deg) translateX(2px); } }

/* ---------- v1.8.1: the mascot is a hamster (same rig as the bear/jelly) ---------- */
.fec-app .jf-fx.jf-wheel { display: none; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-wheel { display: inline; }
.fec-app .jf-wheelspin { transform-origin: 32px 54px; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-wheelspin { --anim: fecbr-spinwheel 0.9s linear infinite; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-legA { --anim: fecjf-leg 0.14s linear infinite alternate; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-legB { --anim: fecjf-leg 0.14s linear infinite alternate-reverse; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-armA { --anim: fecbr-runA 0.14s linear infinite alternate; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-armB { --anim: fecbr-runB 0.14s linear infinite alternate; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-lean { transform: rotate(6deg); --anim: none; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-hop { --anim: fecbr-bounce 0.14s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-mo-big { display: none; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-mo-o { display: inline; }
@keyframes fecbr-spinwheel { to { transform: rotate(-360deg); } }
@keyframes fecbr-runA { from { transform: rotate(-50deg); } to { transform: rotate(40deg); } }
@keyframes fecbr-runB { from { transform: rotate(40deg); } to { transform: rotate(-50deg); } }
.fec-app .jf-tuft { display: none; }

/* ---------- v1.9.0: the mascot is the supplied sticker-sheet hamster (sprites in assets/img/hamster) ---------- */
.fec-app .jf-img { display: block; }
.fec-app .jf-bell { transform-origin: 32px 62px; }
.fec-app .jf-lean { transform-origin: 32px 78px; }
.fec-app .jf-umb { transform-origin: 32px 26px; }
.fec-app .fec-wx-walker[data-act="walk"] .jf-lean { --anim: fecjf-lean calc(var(--st) * 2) ease-in-out infinite alternate; }
/* mood-only tweaks that still make sense for a sprite */
.fec-app .fec-wx-walker[data-act="react"][data-mood="cold"] .jf-lean, .fec-app .fec-wx-walker[data-act="walk"][data-mood="cold"] .jf-lean { --anim: fecjf-shiver 0.06s linear infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="hot"] .jf-squash { --anim: fecjf-pant 0.5s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="night"] .jf-lean { --anim: fecjf-sway 2.4s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-hop { --anim: fecjf-twirlhop 1.5s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="snow"] .jf-squash { --anim: fecjf-twirl 1.5s ease-in-out infinite; }

/* ---------- v1.9.1: more hamster faces (seed snack, chef, superhero, wheel, scarf, book) and their dances ---------- */
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-wheel { display: none; }
/* wheel: the picture has its own wheel, so the whole thing hops and rocks like it is running */
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-hop { --anim: fecbr-bounce 0.16s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-lean { --anim: fecbr-wheelrock 0.32s ease-in-out infinite alternate; transform: none; }
.fec-app .fec-wx-walker[data-dance="wheel"] .jf-squash { --anim: fecbr-squat 0.32s ease-in-out infinite; }
/* snack: cheeks munching */
.fec-app .fec-wx-walker[data-dance="snack"] .jf-squash { --anim: fecbr-munch 0.24s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="snack"] .jf-bell { --anim: fecbr-chew 0.48s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="snack"] .jf-hop { --anim: fecbr-bounce 0.48s ease-in-out infinite alternate; }
/* chef: stirring and swaying */
.fec-app .fec-wx-walker[data-dance="chef"] .jf-lean { --anim: fecbr-stir 0.6s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-dance="chef"] .jf-hop { --anim: fecbr-hiphop 0.6s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="chef"] .jf-bell { --anim: fecbr-headbob 0.3s ease-in-out infinite alternate; }
/* superhero: takes off, cape fluttering */
.fec-app .fec-wx-walker[data-dance="hero"] .jf-hop { --anim: fecbr-fly 1.5s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="hero"] .jf-lean { --anim: fecbr-flylean 1.5s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-dance="hero"] .jf-bell { --anim: fecbr-cape 0.22s ease-in-out infinite alternate; }
/* reading a book while it is cloudy: calm, slow sway */
.fec-app .fec-wx-walker[data-act="react"][data-mood="cloudy"] .jf-squash { --anim: fecbr-breathe 2.4s ease-in-out infinite; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cloudy"] .jf-lean { --anim: fecjf-sway 2.6s ease-in-out infinite alternate; }
.fec-app .fec-wx-walker[data-act="react"][data-mood="cloudy"] .jf-hop { --anim: none; }
@keyframes fecbr-wheelrock { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes fecbr-munch { from { transform: scale(1.06, 0.94); } to { transform: scale(0.95, 1.05); } }
@keyframes fecbr-chew { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes fecbr-stir { from { transform: rotate(-8deg) translateX(-1.5px); } to { transform: rotate(8deg) translateX(1.5px); } }
@keyframes fecbr-fly { 0% { transform: translateY(0); } 40% { transform: translateY(-16px); } 60% { transform: translateY(-14px); } 100% { transform: translateY(0); } }
@keyframes fecbr-flylean { 0%, 100% { transform: rotate(0); } 40%, 60% { transform: rotate(-9deg); } }
@keyframes fecbr-cape { from { transform: skewX(-3deg) rotate(-1.5deg); } to { transform: skewX(3deg) rotate(1.5deg); } }
