:root {
	--eapt-bg: #f4f6f8;
	--eapt-card: #ffffff;
	--eapt-card-2: #f8fafc;
	--eapt-text: #111827;
	--eapt-muted: #667085;
	--eapt-line: rgba(17, 24, 39, .10);
	--eapt-accent: #111827;
	--eapt-accent-2: #2563eb;
	--eapt-danger: #b42318;
	--eapt-radius: 22px;
	--eapt-shadow: 0 18px 60px rgba(16, 24, 40, .07);
}

html { -webkit-text-size-adjust: 100%; }
body:has(.eapt-app), body:has(.eapt-login) { margin: 0; background: var(--eapt-bg); }
.eapt-app, .eapt-login { box-sizing: border-box; color: var(--eapt-text); font-family: inherit; }
.eapt-app *, .eapt-app *::before, .eapt-app *::after, .eapt-login *, .eapt-login *::before, .eapt-login *::after { box-sizing: border-box; }
.eapt-app button, .eapt-app input, .eapt-app select, .eapt-app textarea, .eapt-login input { font: inherit; }

.eapt-app {
	width: 100vw;
	min-height: 100svh;
	margin-left: calc(50% - 50vw);
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	background: var(--eapt-bg);
}
.eapt-app__sidebar {
	position: sticky; top: 0; height: 100svh; overflow: auto;
	padding: 28px 18px; border-right: 1px solid var(--eapt-line);
	background: rgba(255,255,255,.82); backdrop-filter: blur(16px);
}
.eapt-app__brand { padding: 0 12px 22px; font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.eapt-app__nav-links { display: grid; gap: 6px; }
.eapt-app__nav-links a { display: block; min-height: 46px; padding: 12px 14px; border-radius: 13px; color: inherit; text-decoration: none; font-weight: 720; }
.eapt-app__nav-links a:hover, .eapt-app__nav-links a.is-current { background: #edf1f5; color: var(--eapt-accent-2); }
.eapt-app__main { min-width: 0; padding: 32px clamp(24px,4vw,64px) 80px; }
.eapt-app__topbar { width: min(100%,1480px); margin: 0 auto 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.eapt-app__eyebrow, .eapt-live__kicker { display: block; margin-bottom: 6px; color: var(--eapt-muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.eapt-app__topbar h1 { margin: 0; font-size: clamp(28px,3.8vw,48px); line-height: 1; letter-spacing: -.04em; }
.eapt-app__top-actions { display: flex; align-items: center; gap: 8px; }
.eapt-app__logout, .eapt-app__install { min-height: 42px; padding: 9px 13px; border: 1px solid var(--eapt-line); border-radius: 12px; background: var(--eapt-card); color: inherit; text-decoration: none; font-weight: 750; cursor: pointer; }
.eapt-app__install { color: var(--eapt-accent-2); }
.eapt-app__content, .eapt-app__notice { width: min(100%,1480px); margin-left: auto; margin-right: auto; }
.eapt-app__notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid var(--eapt-line); border-radius: 14px; background: var(--eapt-card); font-weight: 650; }
.eapt-app__module-header { display: none; }
.eapt-app__mobile-nav { display: none; }

.eapt-live__loading { min-height: 38vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--eapt-muted); }
.eapt-live__spinner { width: 30px; height: 30px; border: 3px solid var(--eapt-line); border-top-color: var(--eapt-accent-2); border-radius: 50%; animation: eapt-spin .8s linear infinite; }
@keyframes eapt-spin { to { transform: rotate(360deg); } }

.eapt-live__hero { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: clamp(22px,3vw,38px); margin-bottom: 20px; border-radius: 28px; background: linear-gradient(135deg,#111827 0%,#1f2937 56%,#263b63 100%); color: #fff; box-shadow: var(--eapt-shadow); }
.eapt-live__hero h2 { margin: 0 0 8px; font-size: clamp(30px,4vw,52px); line-height: 1; letter-spacing: -.04em; }
.eapt-live__hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.55; }
.eapt-live__hero .eapt-live__kicker { color: rgba(255,255,255,.58); }
.eapt-live__hero .eapt-live__button { background: #fff; color: #111827; }

.eapt-live__button, .eapt-live__inline-form button, .eapt-live__water-buttons button, .eapt-live__token-card button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 17px; border: 0; border-radius: 14px; background: var(--eapt-accent); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .14s ease, opacity .14s ease;
}
.eapt-live__button:hover, .eapt-live__inline-form button:hover, .eapt-live__water-buttons button:hover { opacity: .91; }
.eapt-live__button:active, .eapt-live__inline-form button:active, .eapt-live__water-buttons button:active { transform: scale(.985); }
.eapt-live__button:disabled { opacity: .45; cursor: not-allowed; }
.eapt-live__button.is-secondary { background: var(--eapt-card-2); color: var(--eapt-text); border: 1px solid var(--eapt-line); }
.eapt-live__button.is-large { min-height: 56px; padding: 14px 22px; font-size: 17px; }
.eapt-live__text-link, .eapt-live__text-button { color: var(--eapt-accent-2); text-decoration: none; font-weight: 800; }
.eapt-live__text-button { border: 0; background: transparent; padding: 8px 0; cursor: pointer; }

.eapt-live__metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.eapt-live__metric { min-width: 0; padding: 18px; border: 1px solid var(--eapt-line); border-radius: 18px; background: var(--eapt-card); }
.eapt-live__metric > span { display: block; margin-bottom: 7px; color: var(--eapt-muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.eapt-live__metric strong { display: block; overflow: hidden; font-size: clamp(19px,2vw,29px); line-height: 1.08; text-overflow: ellipsis; }
.eapt-live__metric small { display: block; margin-top: 7px; color: var(--eapt-muted); font-size: 12px; }

.eapt-live__panel { padding: clamp(18px,2.3vw,28px); margin-bottom: 18px; border: 1px solid var(--eapt-line); border-radius: var(--eapt-radius); background: var(--eapt-card); box-shadow: 0 7px 30px rgba(16,24,40,.035); }
.eapt-live__panel > h2, .eapt-live__panel > h3 { margin-top: 0; }
.eapt-live__section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 30px 0 16px; }
.eapt-live__section-head.compact { margin: 0 0 20px; align-items: center; }
.eapt-live__section-head h2, .eapt-live__section-head h3 { margin: 0; font-size: clamp(23px,2.4vw,34px); letter-spacing: -.025em; }
.eapt-live__action-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.eapt-live__action-card { min-height: 126px; display: flex; align-items: flex-end; padding: 20px; border: 1px solid var(--eapt-line); border-radius: 20px; background: var(--eapt-card); color: var(--eapt-text); text-decoration: none; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.eapt-live__action-card.is-main { background: var(--eapt-accent-2); color: #fff; border-color: transparent; }

.eapt-live__progress { margin: 17px 0; }
.eapt-live__progress-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; font-size: 14px; }
.eapt-live__progress-head span { color: var(--eapt-muted); }
.eapt-live__bar { height: 9px; overflow: hidden; border-radius: 999px; background: #e8edf3; }
.eapt-live__bar span { display: block; height: 100%; border-radius: inherit; background: var(--eapt-accent-2); }

.eapt-live__form { display: grid; gap: 15px; }
.eapt-live__form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.eapt-live__field { display: grid; gap: 7px; min-width: 0; }
.eapt-live__field > span, .eapt-live__plate-item label > span { font-size: 13px; font-weight: 800; color: #344054; }
.eapt-live__field input, .eapt-live__field select, .eapt-live__field textarea, .eapt-live__plate-item input, .eapt-live__plate-item select, .eapt-live__inline-form input, .eapt-live__declared-row input, .eapt-live__set-row input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #d8dee6; border-radius: 12px; background: #fff; color: #111827; outline: none; }
.eapt-live__field textarea { resize: vertical; }
.eapt-live__field input:focus, .eapt-live__field select:focus, .eapt-live__field textarea:focus, .eapt-live__plate-item input:focus, .eapt-live__plate-item select:focus, .eapt-live__inline-form input:focus, .eapt-live__declared-row input:focus, .eapt-live__set-row input:focus { border-color: var(--eapt-accent-2); box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
.eapt-live__field small { color: var(--eapt-muted); }
.eapt-live__field.is-inline { display: flex; align-items: center; gap: 10px; }
.eapt-live__field.is-inline select { min-width: 230px; }
.eapt-live__form-actions, .eapt-live__row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }

.eapt-live__info-grid, .eapt-live__mini-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.eapt-live__mini-grid .eapt-live__metric { padding: 13px; }
.eapt-live__profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.eapt-live__profile-head h2 { margin: 0 0 5px; font-size: 30px; }
.eapt-live__profile-head p { margin: 0; color: var(--eapt-muted); }
.eapt-live__avatar { width: 66px; height: 66px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 21px; background: #111827; color: #fff; font-size: 27px; font-weight: 900; }
.eapt-live__avatar.is-small { width: 44px; height: 44px; border-radius: 14px; font-size: 17px; }

.eapt-live__history { display: grid; gap: 11px; }
.eapt-live__history-card { padding: 18px; border: 1px solid var(--eapt-line); border-radius: 17px; background: var(--eapt-card-2); }
.eapt-live__history-card > p { margin-bottom: 0; color: var(--eapt-muted); }
.eapt-live__history-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eapt-live__history-head strong, .eapt-live__history-head span { display: block; }
.eapt-live__history-head span { margin-top: 3px; color: var(--eapt-muted); font-size: 13px; }
.eapt-live__pill { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 9px; border-radius: 999px; background: #edf3ff; color: #2458a9; font-size: 12px; font-weight: 800; white-space: nowrap; }

.eapt-live__tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 15px; padding-bottom: 2px; scrollbar-width: none; }
.eapt-live__tabs::-webkit-scrollbar { display: none; }
.eapt-live__tabs button { flex: 0 0 auto; min-height: 44px; padding: 9px 15px; border: 1px solid var(--eapt-line); border-radius: 999px; background: var(--eapt-card); color: var(--eapt-text); font-weight: 800; cursor: pointer; }
.eapt-live__tabs button.is-current { background: var(--eapt-accent); color: #fff; border-color: transparent; }
.eapt-live__exercise-list { display: grid; gap: 11px; }
.eapt-live__exercise-card { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 17px; border: 1px solid var(--eapt-line); border-radius: 19px; background: var(--eapt-card); }
.eapt-live__exercise-number { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; background: #edf1f5; color: #111827; font-weight: 900; }
.eapt-live__exercise-body h4 { margin: 2px 0 10px; font-size: 20px; }
.eapt-live__exercise-body p { color: var(--eapt-muted); line-height: 1.55; }
.eapt-live__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eapt-live__chips span { padding: 5px 8px; border-radius: 999px; background: #f0f3f6; color: #475467; font-size: 12px; font-weight: 750; }
.eapt-live__exercise-media { width: min(100%,520px); max-height: 300px; object-fit: cover; border-radius: 14px; margin-top: 12px; }
.eapt-live__sticky-action { position: sticky; bottom: 18px; z-index: 5; display: flex; justify-content: center; margin-top: 18px; padding: 9px; border-radius: 18px; background: rgba(255,255,255,.84); backdrop-filter: blur(12px); }
.eapt-live__running-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.eapt-live__running-head h2 { margin: 0; }
.eapt-live__timer { padding: 10px 14px; border-radius: 13px; background: #111827; color: #fff; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.eapt-live__set-table { display: grid; gap: 7px; overflow-x: auto; }
.eapt-live__set-row { min-width: 470px; display: grid; grid-template-columns: 48px 1fr 1fr 1fr 56px; gap: 7px; align-items: center; }
.eapt-live__set-row.is-head { color: var(--eapt-muted); font-size: 12px; font-weight: 800; text-align: center; }
.eapt-live__set-row input { min-height: 42px; padding: 7px 8px; text-align: center; }
.eapt-live__set-row input[type="checkbox"] { width: 25px; height: 25px; justify-self: center; }

.eapt-live__search-results { display: grid; gap: 6px; max-height: 270px; overflow: auto; }
.eapt-live__food-result { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--eapt-line); border-radius: 12px; background: var(--eapt-card-2); color: inherit; text-align: left; cursor: pointer; }
.eapt-live__food-result span { color: var(--eapt-muted); }
.eapt-live__meal-items { display: grid; gap: 7px; }
.eapt-live__meal-item, .eapt-live__meal-history { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 13px; background: var(--eapt-card-2); }
.eapt-live__meal-item strong, .eapt-live__meal-item span, .eapt-live__meal-history strong, .eapt-live__meal-history span { display: block; }
.eapt-live__meal-item span, .eapt-live__meal-history span { color: var(--eapt-muted); font-size: 13px; }
.eapt-live__meal-item button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #feeceb; color: var(--eapt-danger); font-size: 21px; cursor: pointer; }

.eapt-live__permission { min-height: 58vh; display: grid; place-items: center; align-content: center; text-align: center; max-width: 700px; margin: 0 auto; }
.eapt-live__permission-icon { width: 82px; height: 82px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 28px; background: #111827; color: #fff; font-size: 38px; }
.eapt-live__permission h2 { margin: 0 0 10px; font-size: clamp(30px,5vw,48px); letter-spacing: -.04em; }
.eapt-live__permission p { max-width: 620px; margin: 0 0 22px; color: var(--eapt-muted); line-height: 1.65; }
.eapt-live__camera-screen { max-width: 900px; margin: 0 auto; }
.eapt-live__camera-copy { text-align: center; margin-bottom: 20px; }
.eapt-live__camera-copy h2 { margin: 0 0 8px; font-size: clamp(30px,5vw,48px); }
.eapt-live__camera-copy p { margin: 0 auto; max-width: 650px; color: var(--eapt-muted); }
.eapt-live__camera-picker { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 24px; border: 2px dashed #cbd5e1; border-radius: 22px; background: #f8fafc; text-align: center; cursor: pointer; position: relative; }
.eapt-live__camera-picker input { position: absolute; opacity: 0; pointer-events: none; }
.eapt-live__camera-icon { font-size: 46px; }
.eapt-live__camera-picker small { color: var(--eapt-muted); }
.eapt-live__image-preview { overflow: hidden; border-radius: 18px; }
.eapt-live__image-preview img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.eapt-live__declared-items { display: grid; gap: 8px; }
.eapt-live__declared-row { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.eapt-live__plate-item { display: grid; grid-template-columns: minmax(130px,1.1fr) minmax(160px,1.3fr) 120px; gap: 12px; align-items: end; padding: 13px; margin-bottom: 8px; border-radius: 14px; background: var(--eapt-card-2); }
.eapt-live__plate-item strong, .eapt-live__plate-item small { display: block; }
.eapt-live__plate-item small { margin-top: 4px; color: var(--eapt-muted); }
.eapt-live__plate-item label { display: grid; gap: 5px; }

.eapt-live__hydration { max-width: 720px; margin: 0 auto; text-align: center; }
.eapt-live__water-ring { --progress: 0%; width: min(64vw,280px); aspect-ratio: 1; display: grid; place-items: center; margin: 10px auto 25px; border-radius: 50%; background: conic-gradient(var(--eapt-accent-2) var(--progress),#e5eaf0 0); position: relative; }
.eapt-live__water-ring::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: var(--eapt-card); }
.eapt-live__water-ring > div { position: relative; z-index: 1; }
.eapt-live__water-ring strong { display: block; font-size: clamp(44px,8vw,72px); line-height: .95; letter-spacing: -.05em; }
.eapt-live__water-ring span, .eapt-live__water-ring small { display: block; color: var(--eapt-muted); }
.eapt-live__water-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0 12px; }
.eapt-live__water-buttons button { background: var(--eapt-accent-2); }
.eapt-live__inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.eapt-live__toggle-list { display: grid; gap: 10px; }
.eapt-live__toggle-row { display: grid; grid-template-columns: minmax(0,1fr) 54px; gap: 16px; align-items: center; padding: 15px; border-radius: 16px; background: var(--eapt-card-2); cursor: pointer; position: relative; }
.eapt-live__toggle-row strong, .eapt-live__toggle-row span { display: block; }
.eapt-live__toggle-row span { margin-top: 4px; color: var(--eapt-muted); font-size: 13px; }
.eapt-live__toggle-row input { position: absolute; opacity: 0; }
.eapt-live__toggle-row i { width: 50px; height: 29px; border-radius: 999px; background: #d7dde5; position: relative; transition: background .16s ease; }
.eapt-live__toggle-row i::after { content: ''; position: absolute; top: 4px; left: 4px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: transform .16s ease; }
.eapt-live__toggle-row input:checked + i { background: var(--eapt-accent-2); }
.eapt-live__toggle-row input:checked + i::after { transform: translateX(21px); }
.eapt-live__token-card { display: grid; gap: 10px; width: min(100%,660px); margin-top: 20px; padding: 18px; border-radius: 18px; background: var(--eapt-card); border: 1px solid var(--eapt-line); text-align: left; }
.eapt-live__token-card code { overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; }

.eapt-live__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.eapt-live__search { min-width: min(100%,480px); display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--eapt-line); border-radius: 14px; background: var(--eapt-card); }
.eapt-live__search input { width: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; color: inherit; }
.eapt-live__student-list { display: grid; gap: 6px; }
.eapt-live__student-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px; border-radius: 15px; }
.eapt-live__student-row.is-button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.eapt-live__student-row.is-button:hover { background: var(--eapt-card-2); }
.eapt-live__student-row strong, .eapt-live__student-row span { display: block; }
.eapt-live__student-row span:not(.eapt-live__pill) { margin-top: 3px; color: var(--eapt-muted); font-size: 13px; }
.eapt-live__drawer[hidden] { display: none; }
.eapt-live__drawer { position: fixed; z-index: 10050; inset: 0; }
.eapt-live__drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.42); backdrop-filter: blur(3px); }
.eapt-live__drawer-panel { position: absolute; top: 0; right: 0; width: min(100%,610px); height: 100%; overflow-y: auto; padding: 30px; background: #fff; color: #111827; box-shadow: -24px 0 70px rgba(15,23,42,.18); }
.eapt-live__drawer-close { position: sticky; z-index: 2; top: 0; float: right; width: 42px; height: 42px; border: 0; border-radius: 13px; background: #eef2f6; color: #111827; font-size: 25px; cursor: pointer; }
.eapt-live__drawer-title { margin-bottom: 22px; }
.eapt-live__drawer-title h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.eapt-live__drawer-title p { color: var(--eapt-muted); }
.eapt-live__drawer-links { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.eapt-live__drawer-links a { padding: 8px 10px; border-radius: 10px; background: #edf3ff; color: #2458a9; text-decoration: none; font-weight: 750; font-size: 13px; }
.eapt-live__workspace-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 16px; align-items: start; }
.eapt-live__library { display: grid; gap: 5px; }
.eapt-live__library-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 12px; border-radius: 12px; background: var(--eapt-card-2); }
.eapt-live__library-row span { color: var(--eapt-muted); font-size: 13px; text-align: right; }
.eapt-live__exercise-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 310px; overflow: auto; padding: 4px; }
.eapt-live__exercise-picker label { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 9px 11px; border: 1px solid var(--eapt-line); border-radius: 12px; cursor: pointer; }
.eapt-live__exercise-picker input { width: 20px; height: 20px; flex: 0 0 auto; }

.eapt-live__empty, .eapt-live__error { min-height: 42vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 28px; border: 1px dashed var(--eapt-line); border-radius: 22px; background: var(--eapt-card); }
.eapt-live__empty-icon { font-size: 48px; }
.eapt-live__empty h3, .eapt-live__error strong { margin: 9px 0 5px; font-size: 25px; }
.eapt-live__empty p, .eapt-live__error p, .eapt-live__muted { color: var(--eapt-muted); line-height: 1.55; }
.eapt-live__error-text { color: var(--eapt-danger); }
.eapt-live__toasts { position: fixed; z-index: 20000; top: max(16px,env(safe-area-inset-top)); right: 16px; display: grid; gap: 8px; pointer-events: none; }
.eapt-live__toast { max-width: min(88vw,380px); padding: 13px 16px; border-radius: 14px; background: #111827; color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.22); transform: translateY(-10px); opacity: 0; transition: .2s ease; }
.eapt-live__toast.is-visible { transform: translateY(0); opacity: 1; }
.eapt-live__toast.is-error { background: #8f1d17; }

.eapt-login { width: 100vw; min-height: 100svh; margin-left: calc(50% - 50vw); display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 20%,rgba(37,99,235,.25),transparent 34%),#0d1117; }
.eapt-login__card { width: min(100%,450px); padding: clamp(24px,5vw,42px); border: 1px solid rgba(255,255,255,.10); border-radius: 27px; background: rgba(255,255,255,.98); color: #111827; box-shadow: 0 30px 90px rgba(0,0,0,.30); }
.eapt-login__brand { margin-bottom: 28px; font-weight: 900; }
.eapt-login h1 { margin: 0 0 7px; font-size: clamp(34px,7vw,50px); letter-spacing: -.045em; }
.eapt-login p { color: #667085; }
.eapt-login form { display: grid; gap: 15px; margin-top: 22px; }
.eapt-login label { display: block; margin-bottom: 6px; font-weight: 750; }
.eapt-login input[type="text"], .eapt-login input[type="password"] { width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid #d8dee6; border-radius: 13px; }
.eapt-login input[type="submit"] { min-height: 54px; border: 0; border-radius: 14px; background: #111827; color: #fff; font-weight: 850; cursor: pointer; }
.eapt-login__help a { color: var(--eapt-accent-2); font-weight: 750; }

@media (max-width: 1180px) {
	.eapt-live__metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.eapt-live__action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.eapt-live__info-grid, .eapt-live__mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
	body:has(.eapt-app) { overscroll-behavior-y: none; }
	.eapt-app { display: block; width: 100%; margin: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--eapt-bg); }
	.eapt-app__sidebar { display: none; }
	.eapt-app__main { padding: max(16px,env(safe-area-inset-top)) 14px 26px; }
	.eapt-app__topbar { position: sticky; z-index: 40; top: 0; margin: -16px -14px 16px; padding: max(14px,env(safe-area-inset-top)) 14px 12px; background: rgba(244,246,248,.92); backdrop-filter: blur(18px); }
	.eapt-app__eyebrow { display: none; }
	.eapt-app__topbar h1 { font-size: 22px; letter-spacing: -.025em; }
	.eapt-app__logout, .eapt-app__install { min-height: 38px; padding: 7px 10px; font-size: 12px; }
	.eapt-app__mobile-nav { position: fixed; z-index: 9999; left: 0; right: 0; bottom: 0; display: block; padding: 7px max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)); border-top: 1px solid var(--eapt-line); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); box-shadow: 0 -8px 30px rgba(15,23,42,.06); }
	.eapt-app__mobile-links { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; }
	.eapt-app__mobile-links a { min-width: 0; min-height: 55px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 5px 2px; border-radius: 12px; color: #667085; text-decoration: none; font-size: 10px; font-weight: 760; line-height: 1.05; text-align: center; }
	.eapt-app__mobile-links a.is-current { background: #eef2f6; color: #111827; }
	.eapt-app__nav-icon { display: block; font-size: 20px; line-height: 1; }
	.eapt-app__nav-label { display: block; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
	.eapt-live__hero { display: grid; padding: 22px 19px; border-radius: 23px; }
	.eapt-live__hero h2 { font-size: 33px; }
	.eapt-live__hero .eapt-live__button { width: 100%; }
	.eapt-live__metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
	.eapt-live__metric { padding: 14px; border-radius: 16px; }
	.eapt-live__metric strong { font-size: 20px; }
	.eapt-live__action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
	.eapt-live__action-card { min-height: 108px; padding: 15px; border-radius: 17px; font-size: 16px; }
	.eapt-live__panel { padding: 16px; border-radius: 19px; }
	.eapt-live__form-grid, .eapt-live__workspace-grid { grid-template-columns: 1fr; }
	.eapt-live__field.is-inline { display: grid; width: 100%; }
	.eapt-live__field.is-inline select { min-width: 0; width: 100%; }
	.eapt-live__toolbar { display: grid; grid-template-columns: 1fr auto; align-items: end; }
	.eapt-live__toolbar .eapt-live__search { grid-column: 1 / -1; min-width: 0; }
	.eapt-live__info-grid, .eapt-live__mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.eapt-live__exercise-card { grid-template-columns: 36px minmax(0,1fr); padding: 14px; }
	.eapt-live__exercise-number { width: 32px; height: 32px; border-radius: 10px; }
	.eapt-live__sticky-action { bottom: calc(72px + env(safe-area-inset-bottom)); }
	.eapt-live__sticky-action .eapt-live__button { width: 100%; }
	.eapt-live__plate-item { grid-template-columns: 1fr; }
	.eapt-live__water-buttons { grid-template-columns: repeat(3,1fr); }
	.eapt-live__water-buttons button { padding: 10px 5px; font-size: 13px; }
	.eapt-live__drawer-panel { top: auto; bottom: 0; width: 100%; height: min(88svh,900px); padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
	.eapt-live__library-row { align-items: flex-start; flex-direction: column; gap: 4px; }
	.eapt-live__library-row span { text-align: left; }
	.eapt-live__exercise-picker { grid-template-columns: 1fr; }
	.eapt-live__toasts { left: 12px; right: 12px; top: max(12px,env(safe-area-inset-top)); }
	.eapt-live__toast { max-width: 100%; }
}

@media (max-width: 430px) {
	.eapt-live__declared-row { grid-template-columns: 1fr 105px; }
	.eapt-live__profile-head h2 { font-size: 25px; }
}

@media (min-width: 1500px) {
	.eapt-app { grid-template-columns: 300px minmax(0,1fr); }
	.eapt-app__main { padding-left: 70px; padding-right: 70px; }
	.eapt-live__action-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}


@media (prefers-reduced-motion: reduce) {
	.eapt-app *, .eapt-app *::before, .eapt-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.eapt-live__meal-grams { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.eapt-live__meal-grams input { width: 88px; min-height: 38px; padding: 6px 8px; border: 1px solid #d8dee6; border-radius: 10px; background: #fff; color: #111827; }
.eapt-live__meal-grams span { margin: 0; color: var(--eapt-muted); font-size: 13px; }


/* ==== 1.2.0 theme + icons + invisible scrollbars ==== */
html.eapt-theme-light {
	--eapt-bg: #f4f6f8;
	--eapt-card: #ffffff;
	--eapt-card-2: #f8fafc;
	--eapt-text: #111827;
	--eapt-muted: #667085;
	--eapt-line: rgba(17, 24, 39, .10);
}
html.eapt-theme-dark {
	--eapt-bg: #0f141a;
	--eapt-card: #171d24;
	--eapt-card-2: #1d252e;
	--eapt-text: #f6f7f9;
	--eapt-muted: #a7b0bb;
	--eapt-line: rgba(255,255,255,.10);
}
html.eapt-theme-dark body,
html.eapt-theme-dark .eapt-app,
html.eapt-theme-dark .eapt-login {
	background: var(--eapt-bg);
	color: var(--eapt-text);
}
html.eapt-theme-dark .eapt-app__sidebar,
html.eapt-theme-dark .eapt-app__mobile-nav,
html.eapt-theme-dark .eapt-app__topbar,
html.eapt-theme-dark .eapt-live__drawer-panel {
	background: rgba(15,20,26,.93);
}
html.eapt-theme-dark .eapt-app__nav-links a:hover,
html.eapt-theme-dark .eapt-app__nav-links a.is-current,
html.eapt-theme-dark .eapt-app__mobile-links a.is-current {
	background: #202832;
	color: #8cb6ff;
}
html.eapt-theme-dark .eapt-live__field > span,
html.eapt-theme-dark .eapt-live__plate-item label > span {
	color: #d6dbe2;
}
html.eapt-theme-dark .eapt-live__field input,
html.eapt-theme-dark .eapt-live__field select,
html.eapt-theme-dark .eapt-live__field textarea,
html.eapt-theme-dark .eapt-live__plate-item input,
html.eapt-theme-dark .eapt-live__plate-item select,
html.eapt-theme-dark .eapt-live__inline-form input,
html.eapt-theme-dark .eapt-live__declared-row input,
html.eapt-theme-dark .eapt-live__set-row input {
	border-color: #38424e;
	background: #111820;
	color: #f6f7f9;
}
html.eapt-theme-dark .eapt-live__chips span { background: #252e39; color: #c2cad4; }
html.eapt-theme-dark .eapt-live__bar { background: #27313c; }
html.eapt-theme-dark .eapt-live__camera-picker { background: #151d25; border-color: #34404d; }

html, body, .eapt-app, .eapt-app *, .eapt-login, .eapt-login * {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, .eapt-app::-webkit-scrollbar, .eapt-app *::-webkit-scrollbar, .eapt-login::-webkit-scrollbar, .eapt-login *::-webkit-scrollbar {
	width: 0 !important;
	height: 0 !important;
	background: transparent !important;
}
.eapt-app__title-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.eapt-app__page-icon {
	width: 48px;
	height: 48px;
	display: inline-grid;
	place-items: center;
	border-radius: 16px;
	background: var(--eapt-card);
	border: 1px solid var(--eapt-line);
	font-size: 24px;
	flex: 0 0 auto;
}
.eapt-app__theme-toggle {
	min-height: 42px;
	padding: 8px 11px;
	border: 1px solid var(--eapt-line);
	border-radius: 12px;
	background: var(--eapt-card);
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.eapt-app__theme-icon { display:inline-grid; place-items:center; width:18px; height:18px; font-size:16px; line-height:1; }
html.eapt-theme-light .eapt-app__theme-icon--sun,
html.eapt-theme-dark .eapt-app__theme-icon--moon { opacity: 1; }
html.eapt-theme-light .eapt-app__theme-icon--moon,
html.eapt-theme-dark .eapt-app__theme-icon--sun { opacity: .35; }
.eapt-live__exercise-steps {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--eapt-card-2);
}
.eapt-live__exercise-steps strong { display:block; margin-bottom: 6px; }
.eapt-live__exercise-steps p { margin: 0; }
.eapt-live__exercise-demo {
	margin-top: 12px;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid var(--eapt-line);
	background: #000;
}
.eapt-live__exercise-video,
.eapt-live__exercise-iframe {
	display: block;
	width: 100%;
	min-height: 230px;
	border: 0;
	background: #000;
}
@media (max-width: 900px) {
	.eapt-app__page-icon { width: 40px; height: 40px; border-radius: 14px; font-size: 20px; }
	.eapt-app__title-row { gap: 10px; }
	.eapt-app__theme-toggle { min-height: 38px; padding: 7px 9px; }
	.eapt-app__mobile-links a { gap: 3px; }
	.eapt-app__nav-icon { font-size: 18px; }
	.eapt-live__exercise-video,
	.eapt-live__exercise-iframe { min-height: 190px; }
}


/* ==== 1.2.1 — explicit White/Dark, visual workout builder ==== */

/* Tema é controlado SOMENTE pelo botão Sol/Lua. O primeiro acesso começa Branco. */
html:not(.eapt-theme-dark) {
	--eapt-bg: #f4f6f8;
	--eapt-card: #ffffff;
	--eapt-card-2: #f8fafc;
	--eapt-text: #111827;
	--eapt-muted: #667085;
	--eapt-line: rgba(17, 24, 39, .10);
	color-scheme: light;
}

html.eapt-theme-dark {
	color-scheme: dark;
}

html.eapt-theme-light .eapt-login,
html.eapt-theme-light body:has(.eapt-login) {
	background:
		radial-gradient(
			circle at 20% 20%,
			rgba(37,99,235,.10),
			transparent 34%
		),
		#f4f6f8;
}

html.eapt-theme-dark .eapt-login,
html.eapt-theme-dark body:has(.eapt-login) {
	background:
		radial-gradient(
			circle at 20% 20%,
			rgba(37,99,235,.18),
			transparent 34%
		),
		#0f141a;
}

html.eapt-theme-dark .eapt-login__card {
	background: #171d24;
	color: #f6f7f9;
	border-color: rgba(255,255,255,.10);
}

html.eapt-theme-dark .eapt-login p {
	color: #a7b0bb;
}

html.eapt-theme-dark .eapt-login input[type="text"],
html.eapt-theme-dark .eapt-login input[type="password"] {
	background: #111820;
	color: #f6f7f9;
	border-color: #38424e;
}

.eapt-login__theme-toggle {
	position: fixed;
	z-index: 50;
	top: max(14px, env(safe-area-inset-top));
	right: max(14px, env(safe-area-inset-right));
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 11px;
	border: 1px solid var(--eapt-line);
	border-radius: 14px;
	background: var(--eapt-card);
	color: var(--eapt-text);
	box-shadow: 0 8px 24px rgba(15,23,42,.08);
	cursor: pointer;
}

/* A barra some, mas o gesto/rolagem continua funcionando. */
html,
body,
.eapt-app,
.eapt-app *,
.eapt-login,
.eapt-login * {
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.eapt-app::-webkit-scrollbar,
.eapt-app *::-webkit-scrollbar,
.eapt-login::-webkit-scrollbar,
.eapt-login *::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	background: transparent !important;
}

/* Montagem visual do treino */
.eapt-live__field-label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 850;
	color: #344054;
}

html.eapt-theme-dark .eapt-live__field-label {
	color: #d6dbe2;
}

.eapt-live__picker-help {
	margin: 0 0 10px;
	font-size: 13px;
}

.eapt-live__exercise-picker {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	max-height: 620px;
	overflow-y: auto;
	padding: 2px;
}

.eapt-live__exercise-picker-option {
	display: block !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 18px !important;
	background: transparent;
	position: relative;
	cursor: pointer;
}

.eapt-live__exercise-picker-option > input {
	position: absolute;
	z-index: 3;
	top: 12px;
	left: 12px;
	width: 24px !important;
	height: 24px !important;
	margin: 0;
	accent-color: #2563eb;
}

.eapt-live__exercise-picker-card {
	height: 100%;
	overflow: hidden;
	border: 2px solid var(--eapt-line);
	border-radius: 18px;
	background: var(--eapt-card);
	transition:
		border-color .16s ease,
		transform .16s ease,
		box-shadow .16s ease;
}

.eapt-live__exercise-picker-option:hover .eapt-live__exercise-picker-card {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

.eapt-live__exercise-picker-option > input:checked +
.eapt-live__exercise-picker-card {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.eapt-live__exercise-picker-media {
	min-height: 155px;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #0f141a;
}

.eapt-live__exercise-picker-media .eapt-live__exercise-demo {
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
}

.eapt-live__exercise-picker-media .eapt-live__exercise-media {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
}

.eapt-live__exercise-picker-media .eapt-live__exercise-video,
.eapt-live__exercise-picker-media .eapt-live__exercise-iframe {
	width: 100%;
	height: 180px;
	min-height: 180px;
}

.eapt-live__exercise-picker-media.is-empty {
	min-height: 150px;
	align-content: center;
	gap: 5px;
	background: var(--eapt-card-2);
	color: var(--eapt-muted);
}

.eapt-live__exercise-picker-media.is-empty > span {
	font-size: 34px;
	line-height: 1;
}

.eapt-live__exercise-picker-media.is-empty > small {
	font-size: 12px;
}

.eapt-live__exercise-picker-copy {
	padding: 14px;
}

.eapt-live__exercise-picker-copy > strong {
	display: block;
	padding-left: 28px;
	margin-bottom: 8px;
	font-size: 17px;
	line-height: 1.2;
}

.eapt-live__exercise-picker-copy > p {
	margin: 0 0 10px;
	color: var(--eapt-muted);
	font-size: 13px;
	line-height: 1.5;
}

.eapt-live__exercise-library-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.eapt-live__exercise-library-card {
	min-width: 0;
}

.eapt-live__exercise-library-card
.eapt-live__exercise-picker-copy > strong {
	padding-left: 0;
}

.eapt-live__exercise-demo {
	background: #0b0f14;
}

.eapt-live__exercise-media {
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: contain;
	background: #0b0f14;
}

/* mobile */
@media (max-width: 900px) {
	.eapt-live__exercise-picker {
		grid-template-columns: 1fr;
		max-height: none;
	}

	.eapt-live__exercise-library-grid {
		grid-template-columns: 1fr;
	}

	.eapt-live__exercise-picker-media .eapt-live__exercise-media,
	.eapt-live__exercise-picker-media .eapt-live__exercise-video,
	.eapt-live__exercise-picker-media .eapt-live__exercise-iframe {
		height: 210px;
		min-height: 210px;
	}

	.eapt-login__theme-toggle {
		min-height: 40px;
		padding: 7px 9px;
	}
}

@media (min-width: 1500px) {
	.eapt-live__exercise-picker {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eapt-live__exercise-library-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}


/* v1.4.0 — identidade visual PWA */
.eapt-login__brand-logo {
	display: block;
	width: auto;
	max-width: min(230px,72vw);
	max-height: 82px;
	margin: 0 auto;
	object-fit: contain;
}

.eapt-app__brand-logo {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 54px;
	object-fit: contain;
}


/* ==========================================================
   v1.4.2 — PERSONALIZAR APP DENTRO DO PRÓPRIO APP
   ========================================================== */

.eapt-brand-settings {
	width: min(100%, 1180px);
	margin: 0 auto;
	padding: 4px 0 110px;
}

.eapt-brand-settings__hero {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 18px;
}

.eapt-brand-settings__hero span,
.eapt-brand-card header > span {
	display: block;
	color: var(--eapt-accent,#2f7d5a);
	font-size: 10px;
	font-weight: 950;
	letter-spacing: .12em;
}

.eapt-brand-settings__hero h1 {
	margin: 5px 0 7px;
	font-size: clamp(30px,4vw,44px);
	line-height: 1;
	letter-spacing: -.045em;
}

.eapt-brand-settings__hero p {
	max-width: 680px;
	margin: 0;
	color: #6d7972;
	font-size: 14px;
	line-height: 1.55;
}

.eapt-brand-settings__notice {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 800;
}

.eapt-brand-settings__notice.is-success {
	background: rgba(46,137,91,.10);
	color: #226d47;
}

.eapt-brand-settings__notice.is-error {
	background: rgba(202,70,70,.10);
	color: #9a3333;
}

.eapt-brand-settings__form {
	display: grid;
	gap: 14px;
}

.eapt-brand-card {
	padding: 22px;
	border: 1px solid rgba(18,32,25,.10);
	border-radius: 20px;
	background: var(--eapt-card,#fff);
	box-shadow: 0 12px 38px rgba(18,32,25,.045);
}

.eapt-brand-card header {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(18,32,25,.08);
}

.eapt-brand-card header h2 {
	margin: 4px 0 0;
	font-size: 20px;
	letter-spacing: -.025em;
}

.eapt-brand-card header p {
	margin: 6px 0 0;
	color: #7a8580;
	font-size: 12px;
	line-height: 1.5;
}

.eapt-brand-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 14px;
}

.eapt-brand-grid label,
.eapt-brand-upload label {
	display: grid;
	gap: 7px;
}

.eapt-brand-grid label.is-wide {
	grid-column: 1 / -1;
}

.eapt-brand-grid label > span,
.eapt-brand-upload strong {
	color: #4b5a52;
	font-size: 12px;
	font-weight: 800;
}

.eapt-brand-grid input[type="text"],
.eapt-brand-grid textarea,
.eapt-brand-grid select,
.eapt-brand-upload input[type="file"] {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid rgba(18,32,25,.14);
	border-radius: 11px;
	background: var(--eapt-card,#fff);
	color: inherit;
	font: inherit;
}

.eapt-brand-grid input[type="color"] {
	width: 100%;
	height: 48px;
	padding: 4px;
	border: 1px solid rgba(18,32,25,.14);
	border-radius: 11px;
	background: var(--eapt-card,#fff);
}

.eapt-brand-upload {
	display: grid;
	grid-template-columns: 150px 1fr;
	align-items: center;
	gap: 18px;
}

.eapt-brand-upload__preview {
	width: 150px;
	height: 105px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px dashed rgba(18,32,25,.18);
	border-radius: 16px;
	background: rgba(18,32,25,.025);
	color: #8a948f;
	font-size: 11px;
}

.eapt-brand-upload__preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.eapt-brand-upload__preview.is-icon {
	width: 108px;
	height: 108px;
	border-radius: 24px;
}

.eapt-brand-upload__preview.is-icon img {
	object-fit: cover;
}

.eapt-brand-upload__preview.is-splash {
	height: 150px;
	border-style: solid;
}

.eapt-brand-upload__preview.is-splash img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}

.eapt-brand-upload small {
	color: #7c8781;
	font-size: 11px;
	line-height: 1.45;
}

.eapt-brand-remove {
	display: inline-flex !important;
	grid-auto-flow: column;
	justify-content: start;
	align-items: center;
	gap: 7px !important;
	margin-top: 8px;
	color: #a44343;
	font-size: 11px;
	font-weight: 700;
}

.eapt-brand-switch {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 11px;
	padding: 14px;
	border: 1px solid rgba(18,32,25,.10);
	border-radius: 13px;
	background: rgba(18,32,25,.025);
}

.eapt-brand-switch input {
	margin-top: 3px;
}

.eapt-brand-switch strong,
.eapt-brand-switch small {
	display: block;
}

.eapt-brand-switch strong {
	font-size: 13px;
}

.eapt-brand-switch small {
	margin-top: 4px;
	color: #748078;
	font-size: 11px;
	line-height: 1.45;
}

.eapt-brand-settings__save {
	position: sticky;
	z-index: 5;
	bottom: calc(16px + env(safe-area-inset-bottom));
	display: flex;
	justify-content: flex-end;
	padding: 12px;
	border: 1px solid rgba(18,32,25,.10);
	border-radius: 15px;
	background: rgba(255,255,255,.90);
	box-shadow: 0 14px 44px rgba(18,32,25,.13);
	backdrop-filter: blur(16px);
}

.eapt-brand-settings__save button {
	min-height: 46px;
	padding: 11px 18px;
	border: 0;
	border-radius: 12px;
	background: var(--eapt-accent,#2f7d5a);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

html.eapt-theme-dark .eapt-brand-settings__save {
	background: rgba(22,28,34,.92);
}

html.eapt-theme-dark .eapt-brand-settings__hero p,
html.eapt-theme-dark .eapt-brand-card header p,
html.eapt-theme-dark .eapt-brand-upload small,
html.eapt-theme-dark .eapt-brand-switch small {
	color: #a7b0bb;
}

@media (max-width: 700px) {
	.eapt-brand-settings {
		padding-bottom: 95px;
	}

	.eapt-brand-grid {
		grid-template-columns: 1fr;
	}

	.eapt-brand-grid label.is-wide {
		grid-column: auto;
	}

	.eapt-brand-upload {
		grid-template-columns: 1fr;
	}

	.eapt-brand-upload__preview,
	.eapt-brand-upload__preview.is-icon {
		width: 100%;
		max-width: 210px;
	}

	.eapt-brand-settings__save button {
		width: 100%;
	}
}


/* v1.5.0 SAFE — Painel Gestor */
.eapt-manager-dashboard {
	width: min(100%,1500px);
	margin: 0 auto;
	padding-bottom: 110px;
}

.eapt-manager-dashboard__hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 30px;
	border-radius: 24px;
	background: var(--eapt-accent,#2f7d5a);
	color: #fff;
}

.eapt-manager-dashboard__hero span {
	font-size: 10px;
	font-weight: 950;
	letter-spacing: .12em;
	opacity: .7;
}

.eapt-manager-dashboard__hero h1 {
	margin: 7px 0 5px;
	font-size: clamp(30px,4vw,48px);
	letter-spacing: -.045em;
}

.eapt-manager-dashboard__hero p {
	margin: 0;
	opacity: .78;
}

.eapt-manager-dashboard__hero > a {
	padding: 12px 16px;
	border-radius: 12px;
	background: #fff;
	color: #182019;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.eapt-manager-dashboard__grid {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 12px;
	margin-top: 18px;
}

.eapt-manager-dashboard__card {
	min-height: 150px;
	display: flex;
	flex-direction: column;
	justify-content: end;
	gap: 7px;
	padding: 20px;
	border: 1px solid rgba(18,32,25,.10);
	border-radius: 18px;
	background: var(--eapt-card,#fff);
	color: inherit;
	text-decoration: none;
}

.eapt-manager-dashboard__card strong {
	font-size: 17px;
}

.eapt-manager-dashboard__card span {
	color: #728078;
	font-size: 12px;
	line-height: 1.45;
}

@media (max-width:1000px) {
	.eapt-manager-dashboard__grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}

@media (max-width:620px) {
	.eapt-manager-dashboard__hero {
		display: grid;
		padding: 22px;
	}

	.eapt-manager-dashboard__hero > a {
		text-align: center;
	}

	.eapt-manager-dashboard__grid {
		grid-template-columns: 1fr;
	}
}


/* v1.5.1 SAFE — Painel Gestor integrado ao App Shell */
.eapt-manager-app .eapt-manager-dashboard {
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding-bottom: 40px;
}

body.eapt-native-shell-active
.eapt-manager-app {
	background: transparent !important;
}

@media (max-width:700px) {
	.eapt-manager-app .eapt-manager-dashboard {
		padding-bottom: 20px;
	}
}


/* ==========================================================
   v1.6.0 — Bioimpedância 14 indicadores
   ========================================================== */

.eapt-bio14__latest,
.eapt-bio14__form {
	margin-bottom: 18px;
}

.eapt-bio14__latest {
	padding: 22px;
	border: 1px solid rgba(18,32,25,.10);
	border-radius: 20px;
	background: var(--eapt-card,#fff);
	box-shadow: 0 12px 38px rgba(18,32,25,.045);
}

.eapt-bio14__source {
	padding: 7px 10px;
	border-radius: 999px;
	background: color-mix(in srgb,var(--eapt-accent,#2f7d5a) 10%,transparent);
	color: var(--eapt-accent,#2f7d5a);
	font-size: 10px;
	font-weight: 850;
}

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

.eapt-bio14__metric {
	min-height: 126px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	padding: 16px;
	border: 1px solid rgba(18,32,25,.09);
	border-radius: 16px;
	background: var(--eapt-card,#fff);
}

.eapt-bio14__metric.is-empty {
	opacity: .58;
}

.eapt-bio14__metric-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.eapt-bio14__metric-head > span {
	color: #68766e;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.eapt-bio14__metric > strong {
	font-size: clamp(21px,2.3vw,30px);
	line-height: 1;
	letter-spacing: -.035em;
}

.eapt-bio14__quality {
	flex: 0 0 auto;
	padding: 3px 6px;
	border-radius: 999px;
	background: rgba(18,32,25,.055);
	color: #6e7973;
	font-size: 8px;
	font-weight: 850;
}

.eapt-bio14__quality.is-high {
	background: rgba(39,139,86,.10);
	color: #25794d;
}

.eapt-bio14__quality.is-medium {
	background: rgba(194,139,29,.12);
	color: #88630e;
}

.eapt-bio14__quality.is-low {
	background: rgba(113,119,126,.10);
	color: #6b7378;
}

.eapt-bio14__method {
	overflow: hidden;
	color: #939c97;
	font-size: 8px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eapt-bio14__assessment .eapt-bio14__grid {
	margin-top: 14px;
}

.eapt-bio14__warnings {
	display: grid;
	gap: 5px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(194,139,29,.08);
	color: #715711;
}

.eapt-bio14__warnings strong {
	font-size: 11px;
}

.eapt-bio14__warnings p {
	margin: 0;
	font-size: 10px;
	line-height: 1.45;
}

.eapt-bio14__notes {
	margin: 12px 0 0;
	color: #6f7b74;
}

.eapt-bio14__mode-tabs {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 8px;
	margin: 4px 0 20px;
	padding: 5px;
	border-radius: 15px;
	background: rgba(18,32,25,.045);
}

.eapt-bio14__mode-tabs button {
	min-height: 58px;
	display: grid;
	place-items: center;
	gap: 2px;
	padding: 8px 10px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: #66736c;
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.eapt-bio14__mode-tabs button small {
	font-size: 9px;
	font-weight: 650;
	opacity: .65;
}

.eapt-bio14__mode-tabs button.is-active {
	background: var(--eapt-card,#fff);
	color: var(--eapt-accent,#2f7d5a);
	box-shadow: 0 7px 18px rgba(18,32,25,.075);
}

.eapt-bio14__common {
	margin-bottom: 19px;
}

.eapt-bio14__subhead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin: 5px 0 13px;
}

.eapt-bio14__subhead h4 {
	margin: 4px 0 0;
	font-size: 17px;
}

.eapt-bio14__subhead > p {
	max-width: 520px;
	margin: 0;
	color: #78837d;
	font-size: 10px;
	line-height: 1.45;
	text-align: right;
}

.eapt-bio14__details {
	margin: 15px 0;
	padding: 14px;
	border: 1px solid rgba(18,32,25,.09);
	border-radius: 13px;
	background: rgba(18,32,25,.018);
}

.eapt-bio14__details summary {
	cursor: pointer;
	font-size: 12px;
	font-weight: 850;
}

.eapt-bio14__details > p {
	color: #78837d;
	font-size: 10px;
	line-height: 1.5;
}

.eapt-bio14__photo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 14px 0;
}

.eapt-bio14__photo {
	display: grid;
	gap: 8px;
}

.eapt-bio14__photo > span {
	font-size: 11px;
	font-weight: 850;
}

.eapt-bio14__photo > div {
	aspect-ratio: 4 / 5;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px dashed rgba(18,32,25,.18);
	border-radius: 17px;
	background: rgba(18,32,25,.025);
	color: #87928c;
	font-size: 11px;
}

.eapt-bio14__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eapt-bio14__photo input {
	width: 100%;
	font-size: 11px;
}

.eapt-bio14__vision-status {
	display: grid;
	gap: 3px;
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(47,125,90,.07);
	color: #315d49;
}

.eapt-bio14__vision-status strong {
	font-size: 11px;
}

.eapt-bio14__vision-status span {
	font-size: 10px;
	line-height: 1.45;
}

.eapt-bio14__vision-status code {
	font-size: 9px;
}

.eapt-bio14__vision-status.is-warning {
	background: rgba(194,139,29,.09);
	color: #745910;
}

.eapt-bio14__vision-status.is-success {
	background: rgba(39,139,86,.10);
	color: #246d47;
}

.eapt-bio14__vision-measures {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 10px;
}

.eapt-bio14__vision-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 12px;
	border: 1px solid rgba(18,32,25,.08);
	border-radius: 12px;
	background: var(--eapt-card,#fff);
}

.eapt-bio14__vision-section > strong {
	grid-column: 1 / -1;
	font-size: 11px;
}

.eapt-bio14__vision-section .eapt-live__field {
	margin: 0;
}

html.eapt-theme-dark .eapt-bio14__metric-head > span,
html.eapt-theme-dark .eapt-bio14__subhead > p,
html.eapt-theme-dark .eapt-bio14__details > p,
html.eapt-theme-dark .eapt-bio14__notes {
	color: #a6b0aa;
}

@media (max-width:1100px) {
	.eapt-bio14__grid {
		grid-template-columns: repeat(3,minmax(0,1fr));
	}
}

@media (max-width:760px) {
	.eapt-bio14__grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.eapt-bio14__metric {
		min-height: 112px;
		padding: 13px;
	}

	.eapt-bio14__mode-tabs {
		grid-template-columns: 1fr;
	}

	.eapt-bio14__mode-tabs button {
		min-height: 47px;
		grid-template-columns: auto 1fr;
		justify-content: start;
		place-items: center start;
		text-align: left;
	}

	.eapt-bio14__subhead {
		display: grid;
		gap: 6px;
	}

	.eapt-bio14__subhead > p {
		text-align: left;
	}

	.eapt-bio14__photo-grid,
	.eapt-bio14__vision-measures {
		grid-template-columns: 1fr;
	}
}

@media (max-width:420px) {
	.eapt-bio14__grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================
   v1.6.1 — Abas Avaliação / Histórico da Bioimpedância
   ========================================================== */

.eapt-bio14__section-tabs {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 6px;
	margin: 0 0 16px;
	padding: 5px;
	border: 1px solid rgba(18,32,25,.07);
	border-radius: 16px;
	background: rgba(18,32,25,.035);
}

.eapt-bio14__section-tabs button {
	min-height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 3px 9px;
	padding: 9px 14px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #6c7971;
	font: inherit;
	cursor: pointer;
	transition:
		background .18s ease,
		box-shadow .18s ease,
		color .18s ease,
		transform .18s ease;
}

.eapt-bio14__section-tabs button:hover {
	color: var(--eapt-accent,#2f7d5a);
}

.eapt-bio14__section-tabs button.is-active {
	background: var(--eapt-card,#fff);
	color: var(--eapt-accent,#2f7d5a);
	box-shadow: 0 7px 20px rgba(18,32,25,.07);
}

.eapt-bio14__section-tabs button > span {
	font-size: 13px;
	font-weight: 900;
}

.eapt-bio14__section-tabs button > small {
	color: inherit;
	font-size: 9px;
	font-weight: 650;
	opacity: .62;
}

.eapt-bio14__tab-panel {
	animation: eapt-bio14-tab-in .2s ease both;
}

@keyframes eapt-bio14-tab-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.eapt-bio14__history-panel {
	margin-bottom: 18px;
}

.eapt-bio14__history-count {
	min-width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	padding: 0 8px;
	border-radius: 999px;
	background: color-mix(
		in srgb,
		var(--eapt-accent,#2f7d5a) 10%,
		transparent
	);
	color: var(--eapt-accent,#2f7d5a);
	font-size: 11px;
	font-weight: 900;
}

.eapt-bio14__tab-panel.is-history
.eapt-bio14__history {
	margin-top: 8px;
}

html.eapt-theme-dark
.eapt-bio14__section-tabs {
	background: rgba(255,255,255,.035);
	border-color: rgba(255,255,255,.06);
}

@media (max-width:620px) {
	.eapt-bio14__section-tabs {
		position: sticky;
		z-index: 4;
		top: calc(
			var(--eapt-native-header-height,64px) +
			8px
		);
	}

	body.eapt-admin-preview-active
	.eapt-bio14__section-tabs {
		top: calc(
			var(--eapt-native-header-height,64px) +
			54px
		);
	}

	.eapt-bio14__section-tabs button {
		min-height: 50px;
		display: grid;
		place-items: center;
		gap: 1px;
		padding: 7px 9px;
	}

	.eapt-bio14__section-tabs button > small {
		font-size: 8px;
	}
}


/* ==========================================================
   v1.6.2 — Gestão de Totens dentro do aplicativo
   ========================================================== */

.eapt-totem-manager {
	display: grid;
	gap: 16px;
}

.eapt-totem-manager__hero {
	margin-bottom: 0;
}

.eapt-totem-manager__layout {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 14px;
}

.eapt-totem-manager__devices {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 11px;
}

.eapt-totem-manager__device {
	display: grid;
	gap: 14px;
	padding: 17px;
	border: 1px solid rgba(18,32,25,.09);
	border-radius: 16px;
	background: var(--eapt-card,#fff);
}

.eapt-totem-manager__device-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.eapt-totem-manager__device-head > div {
	display: grid;
	gap: 3px;
}

.eapt-totem-manager__device-head strong {
	font-size: 15px;
}

.eapt-totem-manager__device-head span,
.eapt-totem-manager__device-meta {
	color: #78837d;
	font-size: 10px;
}

.eapt-totem-manager__status {
	flex: 0 0 auto;
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(18,32,25,.06);
	color: #68746d;
	font-size: 9px;
	font-weight: 850;
}

.eapt-totem-manager__status.is-paired {
	background: rgba(39,139,86,.10);
	color: #26774d;
}

.eapt-totem-manager__status.is-pending {
	background: rgba(194,139,29,.11);
	color: #80600f;
}

.eapt-totem-manager__status.is-revoked {
	background: rgba(175,64,64,.10);
	color: #8d3838;
}

.eapt-totem-manager__code-card {
	display: grid;
	justify-items: center;
	gap: 8px;
	margin: 0 0 2px;
	padding: 18px;
	border: 1px solid rgba(47,125,90,.15);
	border-radius: 16px;
	background: color-mix(
		in srgb,
		var(--eapt-accent,#2f7d5a) 7%,
		var(--eapt-card,#fff)
	);
	text-align: center;
}

.eapt-totem-manager__code-card > span {
	color: #6b7971;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.eapt-totem-manager__code-card > strong {
	font-size: clamp(30px,5vw,46px);
	letter-spacing: .18em;
	line-height: 1;
}

.eapt-totem-manager__code-card > small {
	color: #77837c;
	font-size: 10px;
}

.eapt-totem-manager__steps {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 10px;
}

.eapt-totem-manager__steps > div {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 13px;
	border-radius: 13px;
	background: rgba(18,32,25,.035);
}

.eapt-totem-manager__steps strong {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--eapt-accent,#2f7d5a);
	color: #fff;
	font-size: 11px;
}

.eapt-totem-manager__steps span {
	font-size: 10px;
	line-height: 1.4;
}

.eapt-live__button.is-danger {
	background: rgba(175,64,64,.08);
	color: #963c3c;
	border: 1px solid rgba(175,64,64,.14);
}

@media (max-width:900px) {
	.eapt-totem-manager__devices,
	.eapt-totem-manager__layout {
		grid-template-columns: 1fr;
	}

	.eapt-totem-manager__steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width:520px) {
	.eapt-totem-manager__device-head {
		display: grid;
	}

	.eapt-totem-manager__status {
		justify-self: start;
	}

	.eapt-totem-manager__device
	.eapt-live__row-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.eapt-totem-manager__device
	.eapt-live__button {
		width: 100%;
	}
}


/* ==========================================================
   v1.6.3 — Central de Automações do Gestor
   ========================================================== */

.eapt-auto-center {
	display: grid;
	gap: 16px;
}

.eapt-auto-center__hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 30px;
	border-radius: 24px;
	background: var(--eapt-accent,#2f7d5a);
	color: #fff;
	box-shadow: 0 18px 42px rgba(18,32,25,.08);
}

.eapt-auto-center__hero h2 {
	margin: 5px 0 6px;
	font-size: clamp(30px,4vw,46px);
	letter-spacing: -.045em;
}

.eapt-auto-center__hero p {
	max-width: 700px;
	margin: 0;
	color: rgba(255,255,255,.78);
	font-size: 13px;
	line-height: 1.55;
}

.eapt-auto-center__hero
.eapt-live__kicker {
	color: rgba(255,255,255,.60);
}

.eapt-auto-center__hero-count {
	min-width: 112px;
	display: grid;
	place-items: center;
	gap: 2px;
	padding: 16px;
	border-radius: 18px;
	background: rgba(255,255,255,.13);
	text-align: center;
}

.eapt-auto-center__hero-count strong {
	font-size: 34px;
	line-height: 1;
}

.eapt-auto-center__hero-count span {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.eapt-auto-center__tabs {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 6px;
	padding: 5px;
	border: 1px solid rgba(18,32,25,.07);
	border-radius: 16px;
	background: rgba(18,32,25,.035);
}

.eapt-auto-center__tabs button {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #6c7971;
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.eapt-auto-center__tabs button small {
	min-width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(18,32,25,.06);
	font-size: 9px;
}

.eapt-auto-center__tabs button.is-active {
	background: var(--eapt-card,#fff);
	color: var(--eapt-accent,#2f7d5a);
	box-shadow: 0 7px 20px rgba(18,32,25,.07);
}

.eapt-auto-center__rules {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 12px;
}

.eapt-auto-center__rule {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 15px;
	padding: 18px;
	border: 1px solid rgba(18,32,25,.09);
	border-radius: 18px;
	background: var(--eapt-card,#fff);
	box-shadow: 0 9px 26px rgba(18,32,25,.035);
	transition:
		opacity .18s ease,
		transform .18s ease;
}

.eapt-auto-center__rule.is-disabled {
	opacity: .68;
}

.eapt-auto-center__rule-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: color-mix(
		in srgb,
		var(--eapt-accent,#2f7d5a) 10%,
		transparent
	);
	color: var(--eapt-accent,#2f7d5a);
	font-size: 18px;
	font-weight: 900;
}

.eapt-auto-center__rule-body {
	min-width: 0;
	display: grid;
	gap: 14px;
}

.eapt-auto-center__rule-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.eapt-auto-center__rule-head > div {
	display: grid;
	gap: 5px;
}

.eapt-auto-center__rule-head strong {
	font-size: 15px;
}

.eapt-auto-center__rule-head span {
	color: #78837d;
	font-size: 10px;
	line-height: 1.5;
}

.eapt-auto-center__switch {
	flex: 0 0 auto;
	position: relative;
	width: 44px;
	height: 25px;
	cursor: pointer;
}

.eapt-auto-center__switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.eapt-auto-center__switch > span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d7ddd9;
	transition: .18s ease;
}

.eapt-auto-center__switch > span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.18);
	transition: .18s ease;
}

.eapt-auto-center__switch input:checked + span {
	background: var(--eapt-accent,#2f7d5a);
}

.eapt-auto-center__switch input:checked + span::after {
	transform: translateX(19px);
}

.eapt-auto-center__rule-details {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 8px;
}

.eapt-auto-center__rule-details > div {
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 10px;
	border-radius: 11px;
	background: rgba(18,32,25,.028);
}

.eapt-auto-center__rule-details small {
	color: #89938d;
	font-size: 7px;
	font-weight: 900;
	letter-spacing: .08em;
}

.eapt-auto-center__rule-details span {
	color: #59665f;
	font-size: 9px;
	line-height: 1.4;
}

.eapt-auto-center__rule-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.eapt-auto-center__rule-footer > small {
	color: #909993;
	font-size: 9px;
}

.eapt-auto-center__state {
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 850;
}

.eapt-auto-center__state.is-on {
	background: rgba(39,139,86,.10);
	color: #26774d;
}

.eapt-auto-center__state.is-off {
	background: rgba(118,126,121,.10);
	color: #737c76;
}

.eapt-auto-center__history-list {
	display: grid;
	gap: 7px;
}

.eapt-auto-center__history-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(18,32,25,.07);
	border-radius: 13px;
	background: var(--eapt-card,#fff);
}

.eapt-auto-center__history-icon {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(18,32,25,.04);
	font-size: 14px;
}

.eapt-auto-center__history-main {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.eapt-auto-center__history-main strong {
	font-size: 11px;
}

.eapt-auto-center__history-main span {
	overflow: hidden;
	color: #727e77;
	font-size: 9px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eapt-auto-center__history-main small {
	color: #9aa29d;
	font-size: 8px;
}

.eapt-auto-center__history-status {
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(18,32,25,.055);
	color: #6b756f;
	font-size: 8px;
	font-weight: 850;
	white-space: nowrap;
}

.eapt-auto-center__history-status.is-failed {
	background: rgba(175,64,64,.10);
	color: #913d3d;
}

.eapt-auto-center__history-status.is-sent,
.eapt-auto-center__history-status.is-delivered,
.eapt-auto-center__history-status.is-read,
.eapt-auto-center__history-status.is-completed {
	background: rgba(39,139,86,.10);
	color: #26774d;
}

.eapt-auto-center__technical {
	padding: 15px;
	border: 1px dashed rgba(18,32,25,.14);
	border-radius: 16px;
	background: rgba(18,32,25,.018);
}

.eapt-auto-center__technical summary {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.eapt-auto-center__technical summary span {
	padding: 4px 7px;
	border-radius: 999px;
	background: #111a16;
	color: #fff;
	font-size: 8px;
	font-weight: 850;
}

.eapt-auto-center__technical summary strong {
	font-size: 11px;
}

.eapt-auto-center__technical
.eapt-live__metrics {
	margin-top: 15px;
}

.eapt-auto-center__technical-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
}

.eapt-auto-center__technical-actions p {
	max-width: 650px;
	margin: 0;
	color: #7b867f;
	font-size: 9px;
	line-height: 1.45;
}

html.eapt-theme-dark
.eapt-auto-center__rule-head span,
html.eapt-theme-dark
.eapt-auto-center__rule-details span,
html.eapt-theme-dark
.eapt-auto-center__history-main span {
	color: #a6b0aa;
}

@media (max-width: 1050px) {
	.eapt-auto-center__rules {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.eapt-auto-center__hero {
		display: grid;
		padding: 22px;
	}

	.eapt-auto-center__hero-count {
		width: 100%;
		grid-template-columns: auto auto;
		justify-content: center;
	}

	.eapt-auto-center__tabs {
		position: sticky;
		z-index: 4;
		top: calc(
			var(--eapt-native-header-height,64px) +
			8px
		);
	}

	body.eapt-admin-preview-active
	.eapt-auto-center__tabs {
		top: calc(
			var(--eapt-native-header-height,64px) +
			54px
		);
	}

	.eapt-auto-center__rule-details {
		grid-template-columns: 1fr;
	}

	.eapt-auto-center__technical-actions {
		display: grid;
	}

	.eapt-auto-center__history-row {
		grid-template-columns: auto 1fr;
	}

	.eapt-auto-center__history-status {
		grid-column: 2;
		justify-self: start;
	}
}

@media (max-width: 480px) {
	.eapt-auto-center__tabs button {
		display: grid;
		place-items: center;
		gap: 2px;
		padding: 7px;
		font-size: 10px;
	}

	.eapt-auto-center__rule {
		grid-template-columns: 1fr;
	}

	.eapt-auto-center__rule-icon {
		width: 36px;
		height: 36px;
	}
}
