/*
 * Ardwyn Farm V3 — application shell (phase 1).
 *
 * The only stylesheet on V3 pages. Mobile first.
 *
 * Scrolling contract (do not break):
 *  - The browser document is the only vertical scroller.
 *  - No height, max-height or overflow rules on html/body, and no inner
 *    application scroll container.
 *  - Safe areas are applied to the header, content and bottom navigation —
 *    never to body.
 *  - No standalone-only CSS: Safari and the installed app use the same rules;
 *    only the env() values differ.
 */

/* ---------- Tokens ---------- */
:root {
	--av3-blue: #1f2a59;
	--av3-blue-2: #35558a;
	--av3-blue-soft: #e8edf6;
	--av3-green: #2f7656;
	--av3-green-soft: #e6f2ea;
	--av3-pink: #d15c78;
	--av3-pink-soft: #fbe8ed;
	--av3-bg: #f5f0e6;          /* warm oat */
	--av3-surface: #fffdf8;     /* cream card */
	--av3-ink: #26303d;
	--av3-muted: #655f55;       /* warm grey, >= 4.5:1 on bg and surface */
	--av3-line: #e6ddcc;

	/* Farm accents (V3 visual language) */
	--av3-yolk: #f2b233;
	--av3-yolk-deep: #b8790b;   /* chart bars: validated >= 3:1 on --av3-surface */
	--av3-yolk-soft: #fdf1d4;
	--av3-straw: #f3e3b8;
	--av3-shell-cream: #fbf1dc;
	--av3-shell-brown: #c98d5a;
	--av3-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--av3-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--av3-radius: 18px;
	--av3-radius-lg: 24px;
	--av3-tap: 48px;
	--av3-gutter: 16px;
	--av3-header-h: 56px;
	--av3-tabbar-h: 64px;

	--av3-safe-t: env(safe-area-inset-top, 0px);
	--av3-safe-r: env(safe-area-inset-right, 0px);
	--av3-safe-b: env(safe-area-inset-bottom, 0px);
	--av3-safe-l: env(safe-area-inset-left, 0px);
}

/* ---------- Base (no height/overflow on html or body) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--av3-bg);
}
body.ardwyn-v3 {
	margin: 0;
	background: var(--av3-bg);
	color: var(--av3-ink);
	font-family: var(--av3-font);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
h1, h2, p { margin: 0; }
img, svg { display: block; }
a { color: var(--av3-blue-2); }
:focus-visible { outline: 3px solid var(--av3-pink); outline-offset: 2px; }
.av3-icon { width: 24px; height: 24px; flex: none; }

.av3-skip {
	position: absolute; left: -999px; top: 8px; z-index: 100;
	padding: 8px 12px; border-radius: 8px; background: var(--av3-blue); color: #fff;
}
.av3-skip:focus { left: 8px; top: calc(var(--av3-safe-t) + 8px); }

/* ---------- Header: sticky, owns the top safe area ---------- */
.av3-header {
	position: sticky; top: 0; z-index: 20;
	padding: var(--av3-safe-t) max(8px, var(--av3-safe-r)) 0 max(8px, var(--av3-safe-l));
	background: var(--av3-blue-2);
	color: #fff;
	box-shadow: 0 1px 0 rgba(31, 42, 89, .18);
}
.av3-header__row {
	display: grid; grid-template-columns: 96px 1fr 96px; align-items: center;
	min-height: var(--av3-header-h); max-width: 960px; margin: 0 auto;
}
.av3-header__lead { display: flex; justify-content: flex-start; }
.av3-header__trail { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.av3-header__mark,
.av3-header__back {
	display: grid; place-items: center; width: var(--av3-tap); height: var(--av3-tap);
	color: #fff; text-decoration: none; border-radius: 12px;
}
.av3-header__mark img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.av3-header__title { text-align: center; min-width: 0; }
.av3-header__app {
	display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: #f7d3dc;
}
.av3-header__title h1 { font-size: 18px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.av3-header__me,
.av3-bell {
	position: relative; display: grid; place-items: center; width: 44px; height: var(--av3-tap);
	color: #fff; text-decoration: none; border-radius: 12px;
}
.av3-bell.is-active,
.av3-header__me.is-active { background: rgba(255, 255, 255, .16); }
.av3-bell__count {
	position: absolute; top: 5px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
	display: grid; place-items: center; border-radius: 999px;
	background: var(--av3-pink); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
	box-shadow: 0 0 0 2px var(--av3-blue-2);
}

/* Avatar: existing Ardwyn avatar image or initials, with the user's ring colour. */
.av3-avatar {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
	background: var(--av3-surface); color: var(--av3-blue); font-size: 13px; font-weight: 800;
	box-shadow: 0 0 0 2px var(--av3-ring, var(--av3-pink));
}
.av3-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av3-avatar--lg { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 3px var(--av3-ring, var(--av3-pink)); }

/* ---------- Content: normal document flow, clears the fixed tab bar ---------- */
.av3-main {
	display: block; max-width: 960px; margin: 0 auto; outline: none;
	padding:
		16px
		max(var(--av3-gutter), var(--av3-safe-r))
		calc(var(--av3-tabbar-h) + var(--av3-safe-b) + 32px)
		max(var(--av3-gutter), var(--av3-safe-l));
}
body.av3--no-nav .av3-main { padding-bottom: calc(var(--av3-safe-b) + 32px); }

.av3-card {
	margin: 0 0 12px; padding: 18px 16px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius);
}
.av3-card__title { font-family: var(--av3-display); font-size: 20px; font-weight: 750; margin-bottom: 6px; }
.av3-card--note { background: var(--av3-blue-soft); border-color: #d3dcec; }
.av3-card--end { background: var(--av3-green-soft); border-color: #cfe5d8; }
.av3-eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--av3-pink); margin-bottom: 4px; }
.av3-muted { color: var(--av3-muted); }
.av3-card p + p { margin-top: 12px; }

.av3-hero__logo { width: 100%; max-width: 280px; height: auto; margin: 0 0 10px -6px; }
.av3-hero__title { font-size: 26px; font-weight: 800; line-height: 1.15; margin-bottom: 8px; overflow-wrap: anywhere; }

.av3-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: var(--av3-tap);
	padding: 0 18px; border-radius: 12px; background: var(--av3-green); color: #fff;
	font-weight: 700; text-decoration: none;
}
.av3-button--quiet { background: var(--av3-surface); color: var(--av3-blue-2); border: 1px solid var(--av3-line); }

/* Scroll-test rows (ordinary flow content) */
.av3-rows { list-style: none; margin: 0 0 12px; padding: 0; }
.av3-row {
	display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0 0 8px; padding: 10px 14px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: 14px;
}
.av3-row--checkpoint { border-color: var(--av3-pink); background: var(--av3-pink-soft); }
.av3-row__dot {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
	font-size: 13px; font-weight: 800;
}
.av3-row__dot--blue { background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-row__dot--green { background: var(--av3-green-soft); color: var(--av3-green); }
.av3-row__dot--pink { background: var(--av3-pink-soft); color: #a83f58; }
.av3-row__body { display: flex; flex-direction: column; min-width: 0; }
.av3-row__body small { color: var(--av3-muted); font-size: 13.5px; }

/* Placeholder skeleton blocks */
.av3-card--ghost { display: grid; gap: 10px; }
.av3-ghost { display: block; height: 12px; border-radius: 6px; background: #e9edf2; }
.av3-ghost--title { width: 45%; height: 16px; }
.av3-ghost--short { width: 60%; }

/* Add placeholder actions */
.av3-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.av3-action {
	display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px;
	background: var(--av3-surface); border: 1px dashed #cdd6e2; border-radius: var(--av3-radius);
}
.av3-action__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--av3-pink-soft); color: var(--av3-pink); flex: none; }
.av3-action__body { display: flex; flex-direction: column; min-width: 0; }
.av3-action__body small { color: var(--av3-muted); }

.av3-meta { margin: 0; display: grid; gap: 8px; }
.av3-meta div { display: grid; gap: 2px; }
.av3-meta dt { font-size: 13px; color: var(--av3-muted); }
.av3-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Bottom navigation: fixed, owns the bottom safe area ---------- */
.av3-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	padding: 0 var(--av3-safe-r) var(--av3-safe-b) var(--av3-safe-l);
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--av3-line);
	box-shadow: 0 -4px 16px rgba(31, 42, 89, .06);
}
.av3-tabbar__list {
	display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
	max-width: 640px; margin: 0 auto; padding: 0; list-style: none;
}
.av3-tab {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	height: var(--av3-tabbar-h); color: var(--av3-muted); text-decoration: none;
	font-size: 11.5px; font-weight: 600;
}
.av3-tab.is-active { color: var(--av3-blue-2); }
.av3-tab.is-active .av3-tab__label { font-weight: 800; }
.av3-tab--add { color: var(--av3-pink); }
.av3-tab--add .av3-tab__icon {
	display: grid; place-items: center; width: 54px; height: 54px; margin-top: -22px; border-radius: 50%;
	background: var(--av3-pink); color: #fff;
	box-shadow: 0 6px 16px rgba(209, 92, 120, .35), 0 0 0 4px var(--av3-surface);
}
.av3-tab--add .av3-icon { width: 28px; height: 28px; stroke-width: 2.2; }
.av3-tab--add.is-active .av3-tab__icon { background: #b9475f; }


/* ---------- Shell components (lists, identity, notifications) ---------- */
.av3-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.av3-small { font-size: 13.5px; margin: 12px 2px; }
.av3-button--small { min-height: 40px; padding: 0 14px; font-size: 14.5px; gap: 6px; }
.av3-button--small .av3-icon { width: 18px; height: 18px; }
.av3-button[disabled] { opacity: .55; }
button.av3-button { font: inherit; font-weight: 700; cursor: pointer; }

.av3-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.av3-list__row {
	display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 14px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius);
	color: var(--av3-ink); text-decoration: none;
}
.av3-list__row > .av3-icon { color: #9aa6b5; width: 20px; height: 20px; }
.av3-list__row--danger { color: #a83f58; }
.av3-list__icon {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none;
	background: var(--av3-blue-soft); color: var(--av3-blue-2);
}
.av3-list__icon--tasks, .av3-list__icon--egg_tally { background: var(--av3-green-soft); color: var(--av3-green); }
.av3-list__icon--medical, .av3-list__icon--cabinet { background: var(--av3-pink-soft); color: var(--av3-pink); }
.av3-list__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.av3-list__body small { color: var(--av3-muted); font-size: 13.5px; }

/* Marks a link that leaves V3 for the current application. */
.av3-leaves {
	display: inline-flex; align-items: center; gap: 4px; flex: none;
	padding: 4px 8px; border-radius: 999px; background: var(--av3-bg); color: var(--av3-muted);
	font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.av3-leaves .av3-icon { width: 14px; height: 14px; }

.av3-identity { display: flex; align-items: center; gap: 16px; }
.av3-identity__text { min-width: 0; }
.av3-identity__text .av3-muted { overflow-wrap: anywhere; }

.av3-notify-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.av3-status { margin: 0 2px 8px; min-height: 1px; color: var(--av3-muted); font-size: 14px; }
.av3-notices { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.av3-notice {
	display: grid; gap: 10px; padding: 14px 16px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius);
}
.av3-notice.is-unread { border-color: #efb9c6; box-shadow: inset 4px 0 0 var(--av3-pink); }
.av3-notice__body { display: flex; flex-direction: column; min-width: 0; }
.av3-notice__body strong { overflow-wrap: anywhere; }
.av3-notice__body small { color: var(--av3-muted); font-size: 13.5px; }
.av3-notice__type { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--av3-blue-2); margin-bottom: 2px; }
.av3-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--av3-pink); flex: none; }
.av3-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
	:root { --av3-gutter: 24px; }
	.av3-header__title h1 { font-size: 20px; }
}

/* =====================================================================
 * Migrated screens (phase 3): Home dashboard + Egg Tally.
 * Ordinary document-flow content only — no heights on the page, no
 * overflow, no fixed/sticky elements. Scoped to .ardwyn-v3 classes.
 * ===================================================================== */

.av3-eyebrow--yolk { color: #9a6408; }
.av3-button--block { width: 100%; min-height: 54px; font-size: 17px; }
.av3-button--danger { background: #b23a55; color: #fff; }
.av3-button--danger-quiet { background: var(--av3-surface); color: #a83f58; border: 1px solid #efc3cf; }
button.av3-button { border: 0; }
button.av3-button--quiet, button.av3-button--danger-quiet { border: 1px solid var(--av3-line); }

/* Section scaffold */
.av3-section { margin: 22px 0 8px; }
.av3-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.av3-section__title { font-family: var(--av3-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.av3-section__link { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.av3-section__aside { color: var(--av3-muted); font-size: 13.5px; }
.av3-note { display: flex; align-items: center; gap: 6px; margin: 10px 4px 0; color: var(--av3-muted); font-size: 13.5px; }
.av3-note .av3-icon { width: 15px; height: 15px; }

/* Greeting */
.av3-hello { padding: 6px 4px 16px; }
.av3-hello__date { color: var(--av3-muted); font-size: 14.5px; font-weight: 600; }
.av3-hello__title { font-family: var(--av3-display); font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.015em; margin: 2px 0 6px; overflow-wrap: anywhere; }
.av3-hello__sub { color: var(--av3-muted); font-size: 16px; }

/* ---------- Eggs (shared shapes) ---------- */
.av3-egg {
	position: relative; display: inline-grid; place-items: center;
	width: 58px; height: 72px;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: radial-gradient(circle at 34% 28%, #fffdf6 0 14%, var(--av3-shell-cream) 45%, #efdcb8 100%);
	box-shadow: inset -4px -6px 10px rgba(151, 104, 45, .16), 0 3px 0 rgba(120, 84, 40, .12);
	color: #6b4a1c; font-family: var(--av3-display);
}
.av3-egg--brown {
	background: radial-gradient(circle at 34% 28%, #f3d3b2 0 12%, #d9a576 48%, var(--av3-shell-brown) 100%);
	color: #4a2c12;
}
.av3-egg b { font-size: 26px; font-weight: 800; line-height: 1; }
.av3-egg--none { background: repeating-linear-gradient(135deg, #fbf6ea 0 6px, #f2e8d4 6px 9px); color: var(--av3-muted); }

/* ---------- Home: egg card ---------- */
.av3-eggcard {
	display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
	margin: 0 0 8px; padding: 18px 18px 16px;
	border-radius: var(--av3-radius-lg);
	background: linear-gradient(160deg, #fff7df 0%, var(--av3-straw) 100%);
	border: 1px solid #ecd79f;
	color: var(--av3-ink); text-decoration: none;
	box-shadow: 0 6px 18px rgba(184, 121, 11, .12);
}
.av3-eggcard__art { display: flex; align-items: flex-end; grid-row: span 2; }
.av3-eggcard__art .av3-egg { width: 44px; height: 55px; }
.av3-eggcard__art .av3-egg + .av3-egg { margin-left: -12px; transform: rotate(10deg); }
.av3-eggcard__body { display: flex; flex-direction: column; min-width: 0; }
.av3-eggcard__total { font-family: var(--av3-display); font-size: 18px; font-weight: 700; }
.av3-eggcard__total strong { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.av3-eggcard__meta { color: #6a5a3c; font-size: 14px; }
.av3-eggcard__cta {
	grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 2px;
	min-height: 44px; padding: 0 12px 0 16px; border-radius: 999px;
	background: var(--av3-green); color: #fff; font-weight: 800;
}
.av3-eggcard__cta .av3-icon { width: 20px; height: 20px; }
.av3-minibars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; height: 34px; margin-top: 6px; }
.av3-minibars__bar { display: block; height: max(3px, var(--h)); border-radius: 4px 4px 1px 1px; background: rgba(184, 121, 11, .45); }
.av3-minibars__bar.is-today { background: var(--av3-yolk-deep); }

/* ---------- Home: farm tiles ---------- */
.av3-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.av3-tile {
	position: relative; display: flex; flex-direction: column; min-height: 128px; padding: 14px 14px 12px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius);
	color: var(--av3-ink); text-decoration: none;
	box-shadow: 0 2px 0 rgba(101, 95, 85, .06);
}
.av3-tile__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 8px; background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-tile__icon .av3-icon { width: 22px; height: 22px; }
.av3-tile--tasks .av3-tile__icon { background: var(--av3-green-soft); color: var(--av3-green); }
.av3-tile--medical .av3-tile__icon, .av3-tile--cabinet .av3-tile__icon { background: var(--av3-pink-soft); color: var(--av3-pink); }
.av3-tile__value { font-family: var(--av3-display); font-size: 30px; font-weight: 800; line-height: 1; }
.av3-tile__label { font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.av3-tile__meta { color: var(--av3-muted); font-size: 13px; margin-top: auto; padding-top: 4px; }
.av3-tile.is-alert { border-color: #efc3cf; }
.av3-tile.is-alert .av3-tile__meta { color: #a83f58; font-weight: 700; }
.av3-tile__out { position: absolute; top: 12px; right: 12px; color: #a39a88; }
.av3-tile__out .av3-icon { width: 16px; height: 16px; }

/* ---------- Home: feeds ---------- */
.av3-feed { list-style: none; margin: 0; padding: 0; background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius); }
.av3-feed li + li { border-top: 1px solid var(--av3-line); }
.av3-feed__row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; color: var(--av3-ink); text-decoration: none; }
.av3-feed__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.av3-feed__body strong { font-size: 15.5px; overflow-wrap: anywhere; }
.av3-feed__body small { color: var(--av3-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.av3-feed__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-feed__icon .av3-icon { width: 19px; height: 19px; }
.av3-feed__icon--medical { background: var(--av3-pink-soft); color: var(--av3-pink); }
.av3-feed__icon--task { background: var(--av3-green-soft); color: var(--av3-green); }
.av3-feed__icon--egg-tally { background: var(--av3-yolk-soft); color: #9a6408; }
.av3-pill { flex: none; min-width: 78px; padding: 5px 8px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 800; }
.av3-pill--overdue { background: #fbe0e6; color: #9b2f48; }
.av3-pill--today { background: var(--av3-yolk-soft); color: #87580a; }
.av3-pill--upcoming { background: var(--av3-green-soft); color: #245c43; }

.av3-empty { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--av3-surface); border: 1px dashed var(--av3-line); border-radius: var(--av3-radius); color: var(--av3-muted); }
.av3-empty__art { font-size: 28px; line-height: 1; }
.av3-empty strong { color: var(--av3-ink); }

/* ---------- Egg Tally: the nest (today + add) ---------- */
.av3-flash { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--av3-green-soft); color: #245c43; font-weight: 700; }
.av3-nest {
	padding: 20px 16px 16px; margin-bottom: 8px; text-align: center;
	border-radius: var(--av3-radius-lg);
	background: radial-gradient(120% 90% at 50% 0%, #fffaf0 0%, #fff3d6 55%, var(--av3-straw) 100%);
	border: 1px solid #ecd79f;
	box-shadow: 0 6px 18px rgba(184, 121, 11, .12);
}
.av3-nest__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9a6408; }
.av3-nest__total { font-family: var(--av3-display); font-size: 22px; font-weight: 700; margin-top: 2px; }
.av3-nest__total strong { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.av3-nest__checks { color: #6a5a3c; font-size: 14.5px; }
.av3-nest__ask { font-family: var(--av3-display); font-size: 19px; font-weight: 800; margin: 18px 0 10px; }

.av3-eggbuttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.av3-eggbtn {
	display: grid; place-items: center; min-height: 96px; padding: 8px 0;
	border: 0; border-radius: 22px; background: rgba(255, 253, 248, .75);
	box-shadow: 0 1px 0 rgba(120, 84, 40, .12), inset 0 0 0 1px rgba(236, 215, 159, .9);
	cursor: pointer; font: inherit; color: inherit;
	-webkit-user-select: none; user-select: none;
}
.av3-eggbtn:active { background: #fff; }
.av3-eggbtn:active .av3-egg { transform: scale(.93); }
.av3-eggbtn[disabled] { opacity: .6; }
.av3-eggbtn--none {
	grid-column: 1 / -1; min-height: 56px; display: flex; justify-content: center; gap: 8px;
	font-weight: 800; color: #6a5a3c;
}
.av3-eggbtn__nest { font-size: 22px; }
.av3-eggbtn.is-hop .av3-egg { animation: av3-hop .38s ease-out; }
@keyframes av3-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-9px) rotate(-6deg); } 100% { transform: translateY(0); } }

.av3-nest__note { margin-top: 12px; text-align: left; }
.av3-nest__note summary { min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #7a5a1c; cursor: pointer; }
.av3-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 700; font-size: 14.5px; }
.av3-field input {
	min-height: 50px; padding: 12px 14px; border: 1px solid #d9ccb2; border-radius: 12px;
	background: #fff; color: var(--av3-ink); font: inherit; font-size: 17px; font-weight: 400;
}
.av3-egg-status { min-height: 24px; margin-top: 10px; font-weight: 700; color: #4f4430; }
.av3-undo { margin-left: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--av3-blue-2); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* Today's checks and history rows */
.av3-checks { list-style: none; margin: 0; padding: 0; background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius); }
.av3-checks > li + li { border-top: 1px solid var(--av3-line); }
.av3-checks__empty { padding: 16px; color: var(--av3-muted); }
.av3-check { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; color: var(--av3-ink); text-decoration: none; }
.av3-check > .av3-icon { color: #a39a88; width: 20px; height: 20px; }
.av3-check__count {
	display: grid; place-items: center; flex: none; width: 44px; height: 52px;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: var(--av3-shell-cream); box-shadow: inset -3px -4px 8px rgba(151, 104, 45, .14);
	font-family: var(--av3-display); font-weight: 800; color: #6b4a1c;
}
.av3-check__count.is-zero { background: #f1ece2; color: var(--av3-muted); }
.av3-check__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.av3-check__body small { color: var(--av3-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.av3-checks > li.is-new { animation: av3-in .35s ease-out; }
@keyframes av3-in { from { background: var(--av3-yolk-soft); } to { background: transparent; } }
.av3-tag { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--av3-blue-soft); color: var(--av3-blue-2); vertical-align: 2px; }

/* Totals */
.av3-eggstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 8px; }
.av3-eggstats div { display: flex; flex-direction: column; padding: 12px 14px; background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius); }
.av3-eggstats span { color: var(--av3-muted); font-size: 13.5px; font-weight: 600; }
.av3-eggstats strong { font-family: var(--av3-display); font-size: 28px; font-weight: 800; line-height: 1.15; }

/* 14-day chart: one series, thin rounded bars on a baseline */
.av3-chart {
	list-style: none; margin: 0; padding: 14px 10px 10px;
	display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; align-items: end;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius);
}
.av3-chart__day { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.av3-chart__value { font-size: 12px; font-weight: 800; color: var(--av3-ink); min-height: 16px; }
.av3-chart__value[data-quiet] { visibility: hidden; }
.av3-chart__track { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 88px; border-bottom: 1px solid #d9ccb2; }
.av3-chart__bar { display: block; width: min(14px, 70%); height: var(--h); min-height: 3px; border-radius: 4px 4px 0 0; background: var(--av3-yolk-deep); }
.av3-chart__bar.is-zero { height: 3px; background: #e2d7c1; }
.av3-chart__label { font-size: 11.5px; color: var(--av3-muted); margin-top: 4px; }
.av3-chart__day.is-today .av3-chart__label { color: var(--av3-ink); font-weight: 800; }

/* Recent days */
.av3-days { display: grid; gap: 8px; }
.av3-day { background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius); }
.av3-day summary { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; min-height: 60px; padding: 10px 14px; cursor: pointer; list-style: none; }
.av3-day summary::-webkit-details-marker { display: none; }
.av3-day__date { font-weight: 700; }
.av3-day__total { font-family: var(--av3-display); font-weight: 800; font-size: 18px; }
.av3-day__checks { grid-column: 1; color: var(--av3-muted); font-size: 13.5px; }
.av3-day[open] summary { border-bottom: 1px solid var(--av3-line); }
.av3-checks--compact { border: 0; border-radius: 0 0 var(--av3-radius) var(--av3-radius); background: transparent; }

/* Correction view */
.av3-crumb { margin: 0 0 10px; }
.av3-crumb a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-weight: 800; text-decoration: none; }
.av3-crumb .av3-icon { width: 20px; height: 20px; }
.av3-entry-note { margin: 8px 0 0; font-style: italic; color: #4f4430; }
.av3-form { margin-top: 16px; }
.av3-eggpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.av3-eggpick legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.av3-eggpick__opt { position: relative; display: grid; place-items: center; min-height: 84px; border-radius: 18px; cursor: pointer; }
.av3-eggpick__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av3-eggpick__opt .av3-egg { width: 46px; height: 58px; }
.av3-eggpick__opt .av3-egg b { font-size: 21px; }
.av3-eggpick__opt:has(input:checked) { background: var(--av3-yolk-soft); box-shadow: inset 0 0 0 3px var(--av3-yolk-deep); }
.av3-eggpick__opt:has(input:focus-visible) { outline: 3px solid var(--av3-pink); outline-offset: 2px; }
.av3-danger .av3-button { margin-top: 12px; }
.av3-confirm { display: flex; flex-wrap: wrap; gap: 8px; }
.av3-audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av3-audit span { color: var(--av3-muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	.av3-eggbtn.is-hop .av3-egg, .av3-checks > li.is-new { animation: none; }
	.av3-eggbtn:active .av3-egg { transform: none; }
}

@media (min-width: 640px) {
	.av3-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.av3-eggbuttons { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.av3-eggstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.av3-eggpick { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* =====================================================================
 * Migrated screen: Medical Cabinet.
 * Ordinary document-flow content only — no heights on the page, no
 * scrollable overflow, no fixed/sticky elements. The status switcher is a
 * wrapping segmented control, not a horizontal scroll strip. Image boxes
 * clip with overflow:hidden but never scroll.
 * ===================================================================== */

.av3-eyebrow--green { color: var(--av3-green); }
.av3-cab-msg { min-height: 22px; margin: 10px 0 0; font-weight: 700; color: #245c43; }
.av3-cab-msg.is-error { color: #a8323f; }
.av3-cab-msg:empty { min-height: 0; margin: 0; }

/* Badges: stored/effective status and expiry */
.av3-cab-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.av3-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.4; }
.av3-badge--in_stock { background: var(--av3-green-soft); color: #245c43; }
.av3-badge--out_of_stock, .av3-badge--soon { background: #fdefd7; color: #83541a; }
.av3-badge--archived { background: #ece8df; color: #5e584e; }
.av3-badge--expired { background: #f8e0e0; color: #96302a; }
.av3-badge--current { background: #efece4; color: #57524a; }

/* Container meter (div, not <progress>, for consistent iOS rendering) */
.av3-meter { display: block; height: 8px; border-radius: 999px; background: #e7e0d2; overflow: hidden; }
.av3-meter__fill { display: block; width: var(--p, 0%); height: 100%; border-radius: 999px; background: var(--av3-green); }
.av3-meter--low .av3-meter__fill, .av3-meter--empty .av3-meter__fill { background: #b16b2f; }
.av3-meter--archived { opacity: .6; }

/* Register: intro, search, status switcher */
.av3-cab-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.av3-cab-intro__lead { color: var(--av3-muted); font-size: 14.5px; }
.av3-cab-intro .av3-button { flex: none; }
.av3-cab-search { display: flex; gap: 8px; margin: 0 0 10px; }
.av3-cab-search input {
	flex: 1; min-width: 0; min-height: var(--av3-tap); padding: 10px 14px;
	border: 1px solid #d9ccb2; border-radius: 12px; background: #fff; color: var(--av3-ink);
	font: inherit; font-size: 17px;
}
.av3-cab-search .av3-button { flex: none; }
.av3-cab-searching { margin: 0 4px 10px; color: var(--av3-muted); font-size: 14px; }
.av3-cab-searching a { font-weight: 700; }

.av3-seg {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 0 14px; padding: 4px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: 14px;
}
.av3-seg__opt {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px;
	min-height: var(--av3-tap); padding: 6px 4px; border-radius: 10px; text-align: center;
	color: var(--av3-muted); font-size: 13.5px; font-weight: 700; text-decoration: none; line-height: 1.2;
}
.av3-seg__opt b { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--av3-bg); color: var(--av3-ink); font-size: 12px; }
.av3-seg__opt.is-active { background: var(--av3-blue-2); color: #fff; }
.av3-seg__opt.is-active b { background: rgba(255, 255, 255, .22); color: #fff; }

/* Register: item cards */
.av3-cab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av3-cab-card {
	display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: start;
	padding: 12px; background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius);
	color: var(--av3-ink); text-decoration: none;
}
.av3-cab-card > .av3-icon { align-self: center; color: #a39a88; width: 20px; height: 20px; }
.av3-cab-card__img, .av3-cab-current__img {
	display: grid; place-items: center; width: 72px; height: 72px; border-radius: 14px; overflow: hidden;
	background: var(--av3-green-soft);
}
.av3-cab-card__img img, .av3-cab-current__img img, .av3-cab-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.av3-cab-noimage { display: grid; place-items: center; color: #7fa892; }
.av3-cab-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.av3-cab-card__name { font-size: 16.5px; line-height: 1.25; margin-top: 3px; overflow-wrap: anywhere; }
.av3-cab-card__cat { color: var(--av3-green); font-size: 13.5px; font-weight: 700; }
.av3-cab-card__purpose { color: var(--av3-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.av3-cab-stock { display: grid; gap: 5px; margin-top: 6px; }
.av3-cab-stock__label { font-size: 13px; font-weight: 800; color: var(--av3-green); }
.av3-cab-stock small { color: var(--av3-muted); font-size: 12.5px; font-weight: 600; }
.av3-cab-stock--empty { padding: 6px 9px; border-radius: 9px; background: #fdefd7; color: #83541a; font-size: 13px; font-weight: 800; }
.av3-cab-stock--unknown { color: var(--av3-muted); font-size: 13px; }

/* Item view */
.av3-cab-hero {
	margin: 0 0 12px; background: var(--av3-surface); border: 1px solid var(--av3-line);
	border-radius: var(--av3-radius-lg); overflow: hidden;
}
.av3-cab-hero__img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--av3-green-soft); }
.av3-cab-hero__body { padding: 16px; }
.av3-cab-hero__body .av3-cab-badges { margin-bottom: 12px; }
.av3-cab-hero__name { font-family: var(--av3-display); font-size: 26px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.av3-cab-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.av3-cab-actions .av3-button { flex: 1 1 140px; }
.av3-cab-confirm { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--av3-bg); }
.av3-cab-confirm p { margin: 0 0 10px; font-weight: 600; }
.av3-cab-panels { display: grid; gap: 0; }
.av3-cab-rich { overflow-wrap: anywhere; }
.av3-cab-rich p + p, .av3-cab-rich ul, .av3-cab-rich ol { margin-top: 10px; }
.av3-cab-rich ul, .av3-cab-rich ol { padding-left: 20px; margin-bottom: 0; }
.av3-cab-meta { gap: 0; }
.av3-cab-meta > div { padding: 10px 0; border-bottom: 1px solid var(--av3-line); }
.av3-cab-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }
.av3-cab-container { display: grid; gap: 6px; }
.av3-cab-container strong { font-family: var(--av3-display); font-size: 22px; }
.av3-cab-total dd { color: var(--av3-green); font-size: 17px; font-weight: 800; }
.av3-cab-warn { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #fdefd7; color: #83541a; }

/* Add / edit form (uses .av3-field from the shared components) */
.av3-cab-form { padding-bottom: 16px; }
.av3-cab-form .av3-card__title { margin-bottom: 16px; overflow-wrap: anywhere; }
.av3-field small { color: var(--av3-muted); font-size: 13px; font-weight: 400; }
.av3-field select, .av3-field textarea {
	min-height: 50px; padding: 12px 14px; border: 1px solid #d9ccb2; border-radius: 12px;
	background: #fff; color: var(--av3-ink); font: inherit; font-size: 17px; font-weight: 400;
}
.av3-field textarea { resize: vertical; line-height: 1.4; }
.av3-field select {
	-webkit-appearance: none; appearance: none; padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23655f55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px 18px;
}
.av3-field input[type=date] { display: block; width: 100%; text-align: left; -webkit-appearance: none; appearance: none; }
.av3-field input[type=date]::-webkit-date-and-time-value { text-align: left; }
.av3-field input[type=file] { min-height: 0; padding: 10px; font-size: 15px; background: var(--av3-bg); }
.av3-cab-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.av3-cab-current { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.av3-cab-current__img { width: 64px; height: 64px; }
.av3-cab-tick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.av3-cab-tick input { width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; }
.av3-cab-progress { display: grid; gap: 6px; margin: 4px 0 0; font-weight: 700; color: var(--av3-muted); }
.av3-cab-progress[hidden] { display: none; }
.av3-cab-form .av3-button--block { margin-top: 14px; }
.av3-cab-cancel { margin: 8px 0 0; }
.av3-cab-cancel .av3-button { margin-top: 0; }

@media (min-width: 640px) {
	.av3-cab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av3-cab-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
	.av3-cab-panel--wide { grid-column: 1 / -1; }
	.av3-cab-hero--img { display: grid; grid-template-columns: 38% 1fr; }
	.av3-cab-hero__img { aspect-ratio: auto; min-height: 260px; }
	.av3-cab-hero__body { align-self: center; padding: 24px; }
}

/* =====================================================================
 * Migrated screen: Tasks.
 * Ordinary document-flow content only — no heights on the page, no
 * scrollable overflow, no fixed/sticky elements. The animal picker is a
 * wrapping grid in the page flow, never an inner scroller. Completion and
 * attachment removal confirm inline (no modal).
 * ===================================================================== */

.av3-task [hidden] { display: none !important; }
.av3-task-msg { min-height: 22px; margin: 10px 0 0; font-weight: 700; color: #245c43; }
.av3-task-msg.is-error { color: #a8323f; }
.av3-task-msg:empty { min-height: 0; margin: 0; }

/* Status and priority badges */
.av3-badge--task-open { background: var(--av3-green-soft); color: #245c43; }
.av3-badge--task-overdue { background: #fbe0e6; color: #9b2f48; }
.av3-badge--task-scheduled { background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-badge--task-completed { background: #ece8df; color: #5e584e; }
.av3-task-pri {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
	background: #f1ece2; color: var(--av3-ink); font-size: 12px; font-weight: 800; line-height: 1.4;
}
.av3-task-pri::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pri, #a39a88); }

/* Register cards */
.av3-task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av3-task-card { background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius); }
.av3-task-card__link { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 8px; color: var(--av3-ink); text-decoration: none; }
.av3-task-card__title { font-size: 16.5px; line-height: 1.25; margin-top: 5px; overflow-wrap: anywhere; }
.av3-task-card__target { color: var(--av3-green); font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.av3-task-card__desc { color: var(--av3-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.av3-task-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 12px; }
.av3-task-card__due { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.av3-task-card__due small { color: var(--av3-muted); font-size: 12.5px; font-weight: 600; }
.av3-task-card__foot .av3-button { flex: none; min-height: 44px; }

/* Task view */
.av3-task-hero { margin: 0 0 12px; padding: 16px; background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius-lg); }
.av3-task-hero .av3-cab-badges { margin-bottom: 12px; }
.av3-task-hero__title { font-family: var(--av3-display); font-size: 26px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.av3-task-target { margin-top: 6px; color: var(--av3-green); font-weight: 700; overflow-wrap: anywhere; }
.av3-task-complete { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--av3-bg); }
.av3-task-complete .av3-field { margin-bottom: 10px; }
.av3-task-resolution { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--av3-green-soft); overflow-wrap: anywhere; }
.av3-task-resolution strong { display: block; margin-bottom: 4px; color: #245c43; }

.av3-task-medref { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 4px; padding: 12px; border-radius: 14px; background: var(--av3-bg); }
.av3-task-medref__img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--av3-green-soft); color: #7fa892; }
.av3-task-medref__img img { width: 100%; height: 100%; object-fit: cover; }
.av3-task-medref__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.av3-task-medref__body small { color: var(--av3-muted); font-size: 13.5px; }
.av3-task-medref__body a { font-weight: 700; font-size: 14px; margin-top: 2px; }

.av3-task-media { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.av3-task-media__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.av3-task-media__thumb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--av3-bg); text-decoration: none; }
.av3-task-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.av3-task-pdf { font-weight: 800; font-size: 14px; color: #a8323f; }
.av3-task-media__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av3-task-media__body strong { font-size: 15px; overflow-wrap: anywhere; }
.av3-task-media__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.av3-task-media__links a, .av3-task-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.av3-task-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--av3-blue-2); cursor: pointer; }
.av3-task-link--danger { color: #a83f58; }
.av3-task-remove { margin-top: 4px; padding: 10px; border-radius: 12px; background: var(--av3-bg); }
.av3-task-remove p { margin: 0 0 8px; font-weight: 600; }
.av3-task-upload { display: grid; gap: 8px; }
.av3-task-upload__pick { position: relative; cursor: pointer; }
.av3-task-upload__pick:focus-within { outline: 3px solid var(--av3-pink); outline-offset: 2px; }
.av3-task-upload .av3-muted { font-size: 13px; }

.av3-task-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.av3-task-history li { display: flex; flex-direction: column; padding-left: 12px; border-left: 3px solid var(--av3-line); }
.av3-task-history span { color: var(--av3-muted); font-size: 14px; }
.av3-task-history p { margin-top: 4px; overflow-wrap: anywhere; }

/* Add / edit form (uses .av3-field from the shared components) */
.av3-task-form { padding-bottom: 16px; }
.av3-task-form .av3-card__title { margin-bottom: 16px; overflow-wrap: anywhere; }
.av3-task-hint { margin: -6px 0 14px; color: var(--av3-muted); font-size: 13px; }
.av3-task-set { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.av3-task-set legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: 15px; }
.av3-task-choices { display: grid; gap: 8px; margin-bottom: 12px; }
.av3-task-choice, .av3-task-animal {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px;
	border: 1px solid #d9ccb2; border-radius: 12px; background: #fff; cursor: pointer;
}
.av3-task-choice input, .av3-task-animal input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--av3-green); }
.av3-task-choice span, .av3-task-animal span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.av3-task-choice small, .av3-task-animal small { color: var(--av3-muted); font-size: 13px; }
.av3-task-choice:has(input:checked), .av3-task-animal:has(input:checked) { border-color: var(--av3-green); background: var(--av3-green-soft); box-shadow: inset 0 0 0 1px var(--av3-green); }
.av3-task-panel__label { margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.av3-task-animals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.av3-task-form .av3-button--block { margin-top: 14px; }
.av3-task-cancel { margin: 8px 0 0; }
.av3-task-cancel .av3-button { margin-top: 0; }

@media (min-width: 640px) {
	.av3-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av3-task-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.av3-task-choices:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av3-task-animals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
 * Migrated screen: Animals.
 * Ordinary document-flow content only — no heights on the page, no
 * scrollable overflow, no fixed/sticky elements. Image boxes clip with
 * overflow:hidden but never scroll. No modal: the photograph is replaced
 * or removed inline in the form.
 * ===================================================================== */

.av3-animal [hidden] { display: none !important; }

/* Status badges (same wording as the live register) */
.av3-badge--animal-active { background: var(--av3-green-soft); color: #245c43; }
.av3-badge--animal-rainbow { background: #efe7f6; color: #5f3f82; }

/* Register: two-option status switcher and cards */
.av3-seg--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av3-animal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av3-animal-card {
	display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center;
	padding: 12px; background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius);
	color: var(--av3-ink); text-decoration: none;
}
.av3-animal-card > .av3-icon { color: #a39a88; width: 20px; height: 20px; }
.av3-animal-card__img { display: block; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--av3-green-soft); }
.av3-animal-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av3-animal-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av3-animal-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.av3-animal-card__name { font-size: 16.5px; line-height: 1.25; overflow-wrap: anywhere; }
.av3-animal-card__who { color: var(--av3-green); font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.av3-animal-card__life { color: var(--av3-muted); font-size: 13.5px; }
.av3-animal-nomatch { margin-top: 8px; }

/* Animal view */
.av3-animal-hero {
	margin: 0 0 12px; background: var(--av3-surface); border: 1px solid var(--av3-line);
	border-radius: var(--av3-radius-lg); overflow: hidden;
}
.av3-animal-hero__img { aspect-ratio: 4 / 3; background: var(--av3-green-soft); }
.av3-animal-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av3-animal-hero__body { padding: 16px; }
.av3-animal-hero__body .av3-cab-badges { margin-bottom: 10px; }
.av3-animal-hero__name { font-family: var(--av3-display); font-size: 28px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.av3-animal-hero__who { margin-top: 4px; color: var(--av3-green); font-weight: 700; overflow-wrap: anywhere; }
.av3-animal-hero .av3-button { gap: 6px; }
.av3-animal-hero .av3-leaves { background: var(--av3-bg); }

.av3-animal-rel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.av3-animal-rel__head .av3-card__title { margin-bottom: 0; }
.av3-animal-rel__counts { display: flex; gap: 14px; margin: 0; text-align: right; }
.av3-animal-rel__counts div { display: flex; flex-direction: column; }
.av3-animal-rel__counts dt { color: var(--av3-muted); font-size: 12px; font-weight: 700; }
.av3-animal-rel__counts dd { margin: 0; font-family: var(--av3-display); font-size: 20px; font-weight: 800; }
.av3-animal-rel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.av3-animal-rel__list a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 12px;
	border-radius: 12px; background: var(--av3-bg); color: var(--av3-ink); text-decoration: none;
}
.av3-animal-rel__list a > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.av3-animal-rel__list small { color: var(--av3-muted); font-size: 13px; }
.av3-animal-rel__list time { flex: none; color: var(--av3-muted); font-size: 13px; font-weight: 700; }
.av3-animal-rel__all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-weight: 700; text-decoration: none; }
.av3-animal-rel__all > .av3-icon { width: 18px; height: 18px; }

/* Add / edit form (uses .av3-field from the shared components) */
.av3-animal-form { padding-bottom: 16px; }
.av3-animal-form .av3-card__title { overflow-wrap: anywhere; }
.av3-animal-form__lead { margin-bottom: 16px; font-size: 14px; }
.av3-field input[type=month] { display: block; width: 100%; text-align: left; -webkit-appearance: none; appearance: none; }
.av3-field input[type=month]::-webkit-date-and-time-value { text-align: left; }
.av3-animal-photo { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 0 16px; }
.av3-animal-photo__img { display: block; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--av3-green-soft); }
.av3-animal-photo__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av3-animal-photo__none { display: none; width: 100%; height: 100%; place-items: center; color: #7fa892; }
.av3-animal-photo__img[data-removed] img { display: none; }
.av3-animal-photo__img[data-removed] .av3-animal-photo__none { display: grid; }
.av3-animal-photo__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.av3-animal-photo__pick { position: relative; cursor: pointer; }
.av3-animal-photo__pick:focus-within { outline: 3px solid var(--av3-pink); outline-offset: 2px; }
.av3-animal-photo__state { margin: 0; font-size: 14px; font-weight: 700; color: #245c43; }
.av3-animal-photo__state:empty { display: none; }
.av3-animal-photo small { font-size: 13px; }
.av3-animal-library { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 44px; color: var(--av3-muted); font-size: 13px; font-weight: 600; text-underline-offset: 2px; }
.av3-animal-library .av3-leaves { text-decoration: none; }
.av3-animal-readonly strong { min-height: 50px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--av3-bg); font-size: 17px; }
.av3-animal-form .av3-button--block { margin-top: 14px; }

@media (min-width: 640px) {
	.av3-animal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av3-animal-hero { display: grid; grid-template-columns: 40% 1fr; }
	.av3-animal-hero__img { aspect-ratio: auto; min-height: 280px; }
	.av3-animal-hero__body { align-self: center; padding: 24px; }
}
.av3-animal-rel__list a > span .av3-leaves { align-self: flex-start; margin-top: 4px; }

/* =====================================================================
 * Migrated screen: Medical Cases + Medical Reminders.
 * Ordinary document-flow content only — no scrollable overflow, no
 * fixed/sticky elements, no modal. V2's dialogs are full pages or inline
 * confirmations. The image page's frame has a height and clips
 * (overflow:hidden) but never scrolls; at scale 1 it allows vertical page
 * panning (touch-action: pan-y), and only while zoomed does it take
 * one-finger drags (touch-action: none) for panning the image.
 * ===================================================================== */

.av3-med [hidden] { display: none !important; }

/* Status badges */
.av3-badge--med-open { background: #fdefd7; color: #83541a; }
.av3-badge--med-resolved { background: var(--av3-green-soft); color: #245c43; }
.av3-badge--med-type { background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-badge--rem-pending { background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-badge--rem-due, .av3-badge--rem-processing { background: #fbe0e6; color: #9b2f48; }
.av3-badge--rem-completed { background: var(--av3-green-soft); color: #245c43; }
.av3-badge--rem-cancelled { background: #ece8df; color: #5e584e; }

/* List */
.av3-med-remlink {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 0 12px; padding: 10px 12px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius); color: var(--av3-ink); text-decoration: none;
}
.av3-med-remlink__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-med-remlink.is-due .av3-med-remlink__icon { background: #fbe0e6; color: #9b2f48; }
.av3-med-remlink__body { display: flex; flex-direction: column; min-width: 0; }
.av3-med-remlink__body small { color: var(--av3-muted); font-size: 13.5px; }
.av3-med-remlink.is-due .av3-med-remlink__body small { color: #9b2f48; font-weight: 700; }
.av3-med-remlink > .av3-icon:last-child { color: #a39a88; width: 20px; height: 20px; }
.av3-med-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av3-med-card {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px;
	background: var(--av3-surface); border: 1px solid var(--av3-line); border-radius: var(--av3-radius); color: var(--av3-ink); text-decoration: none;
}
.av3-med-card > .av3-icon { color: #a39a88; width: 20px; height: 20px; }
.av3-med-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.av3-med-card__title { font-size: 16.5px; line-height: 1.25; margin-top: 4px; overflow-wrap: anywhere; }
.av3-med-card__who { color: var(--av3-green); font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.av3-med-card__dates { color: var(--av3-muted); font-size: 13px; }

/* Case view */
.av3-med-opened { margin-top: 4px; font-size: 14px; }
.av3-med-warn { margin-top: 12px; }
.av3-med-confirm-text { margin: 0 0 10px; font-weight: 600; }
.av3-med-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.av3-med-head .av3-card__title { margin-bottom: 0; }
.av3-med-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.av3-med-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.av3-med-note {
	padding: 12px 0 0 14px; border-top: 1px solid var(--av3-line); border-left: 3px solid var(--av3-green-soft);
	scroll-margin-top: calc(var(--av3-header-h) + var(--av3-safe-t) + 12px);
}
.av3-med-note:first-child { border-top: 0; padding-top: 0; }
.av3-med-note:target { border-left-color: var(--av3-pink); }
.av3-med-note__when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--av3-muted); font-size: 13.5px; font-weight: 700; }
.av3-med-note__when time { color: var(--av3-ink); }
.av3-med-latest { color: var(--av3-green); }
.av3-med-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--av3-blue-soft); color: var(--av3-blue-2); font-size: 12.5px; }
.av3-med-pill .av3-icon { width: 14px; height: 14px; }
.av3-med-pill.is-due { background: #fbe0e6; color: #9b2f48; }
.av3-med-note__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.av3-med-note__head h3 { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.av3-med-treated { margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.av3-med-prose { margin-top: 8px; }
.av3-med-media { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.av3-med-media__item { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--av3-ink); text-decoration: none; }
.av3-med-media__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--av3-bg); }
.av3-med-media__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av3-med-media__item small { font-size: 12px; color: var(--av3-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av3-med-note__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.av3-med-danger .av3-button { margin-top: 12px; }
.av3-med-inline { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--av3-bg); }
.av3-med-inline p { margin: 0 0 10px; font-weight: 600; overflow-wrap: anywhere; }
.av3-med-inline .av3-field { margin-bottom: 10px; }
.av3-med-danger .av3-med-inline .av3-button { margin-top: 0; }

/* Reminder cards */
.av3-med-rems { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av3-med-rem { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--av3-surface); border: 1px solid var(--av3-line); border-left: 4px solid var(--av3-blue-soft); border-radius: 14px; }
.av3-card .av3-med-rem { background: var(--av3-bg); border-color: transparent; border-left-color: var(--av3-blue-soft); }
.av3-med-rem--due, .av3-med-rem--processing, .av3-card .av3-med-rem--due, .av3-card .av3-med-rem--processing { border-left-color: #e79aae; }
.av3-med-rem__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.av3-med-rem__top time { display: inline-flex; align-items: center; gap: 4px; color: var(--av3-muted); font-size: 13.5px; font-weight: 700; }
.av3-med-rem__top time .av3-icon { width: 16px; height: 16px; }
.av3-med-rem__title { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.av3-med-rem__who { color: var(--av3-green); font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.av3-med-rem__notes { color: var(--av3-muted); font-size: 14px; overflow-wrap: anywhere; }
.av3-med-rem__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.av3-med-rem__links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.av3-med-rem .av3-task-msg:empty { display: none; }

/* Forms */
.av3-med-hint { margin: -2px 0 10px; }
.av3-med-remset .av3-field input[type=datetime-local] { display: block; width: 100%; text-align: left; -webkit-appearance: none; appearance: none; }
.av3-med-inline input[type=datetime-local] { display: block; width: 100%; text-align: left; -webkit-appearance: none; appearance: none; }
.av3-field input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; }
.av3-med-record { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px; border-radius: 14px; background: var(--av3-blue-soft); color: var(--av3-blue-2); }
.av3-med-record > .av3-icon { flex: none; }
.av3-med-record span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; color: var(--av3-ink); }
.av3-med-record small { color: var(--av3-muted); font-size: 13px; }
.av3-med-files { display: grid; gap: 8px; margin-bottom: 8px; }
.av3-med-remove:has(input:checked) { border-color: #b23a55; background: #fbe8ed; box-shadow: inset 0 0 0 1px #b23a55; }
.av3-med-quiet { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 44px; color: var(--av3-muted); font-weight: 600; }

/* Image page (replaces V2's lightbox: a normal page, no overlay) */
.av3-med-viewer { margin: 0 0 8px; }
.av3-med-viewer__frame {
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	height: calc(100vh - var(--av3-header-h) - var(--av3-safe-t) - var(--av3-tabbar-h) - var(--av3-safe-b) - 240px);
	height: calc(100svh - var(--av3-header-h) - var(--av3-safe-t) - var(--av3-tabbar-h) - var(--av3-safe-b) - 240px);
	min-height: 260px; border-radius: var(--av3-radius); background: #1d2320;
	touch-action: pan-y;
}
.av3-med-viewer__frame.is-zoomed { touch-action: none; }
.av3-med-viewer__frame img {
	display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
	transform: translate3d(0, 0, 0) scale(1); transform-origin: center center; will-change: transform;
	-webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.av3-med-viewer figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; overflow-wrap: anywhere; }
.av3-med-viewer figcaption small { color: var(--av3-muted); font-size: 13.5px; }
.av3-med-viewer__hint { margin: 0 0 12px; font-size: 13.5px; }
.av3-med-viewer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.av3-med-viewer__nav .av3-button { padding: 0 8px; gap: 2px; font-size: 15px; }
.av3-med-viewer__nav .av3-button:only-child { grid-column: 1 / -1; }
.av3-med-viewer__nav .av3-icon { width: 18px; height: 18px; flex: none; }

@media (min-width: 640px) {
	.av3-med-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av3-med-media { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =====================================================================
 * Sign in (/app/login/). Ordinary document flow inside the standard shell
 * (header + safe areas unchanged, no tab bar). No scripts, no modal.
 * ===================================================================== */

.av3-login { max-width: 420px; margin: 8px auto 0; text-align: center; }
.av3-login__logo { display: block; width: min(240px, 70%); height: auto; margin: 4px auto 14px; }
.av3-login__title { font-family: var(--av3-display); font-size: 26px; font-weight: 800; line-height: 1.15; }
.av3-login__lead { margin: 6px 0 16px; }
.av3-login__notice { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--av3-green-soft); color: #245c43; font-weight: 700; text-align: left; }
.av3-login__notice--error { background: #fbe0e6; color: #9b2f48; }
.av3-login__form { text-align: left; padding-bottom: 18px; }
.av3-login__remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -4px 0 6px; font-weight: 600; font-size: 15px; }
.av3-login__remember input { width: 22px; height: 22px; margin: 0; accent-color: var(--av3-green); }
.av3-login__form .av3-button--block { margin-top: 6px; }
.av3-login__lost { margin: 14px 0 0; }
.av3-login__lost a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* =====================================================================
 * Profile (/app/profile/). Ordinary document-flow cards; no scrollers,
 * no fixed elements, no modal (photo removal confirms inline).
 * ===================================================================== */

.av3-pro [hidden] { display: none !important; }
.av3-pro-id { display: flex; align-items: center; gap: 16px; }
.av3-pro-id__avatar {
	flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
	background: var(--av3-blue-soft); color: var(--av3-blue-2); font-family: var(--av3-display); font-size: 30px; font-weight: 800;
	box-shadow: 0 0 0 3px var(--av3-surface), 0 0 0 6px var(--av3-ring, #D15C78);
}
.av3-pro-id__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av3-pro-id__text { min-width: 0; overflow-wrap: anywhere; }
.av3-pro-id__text .av3-card__title { margin-bottom: 2px; }
.av3-pro-hint { margin: 0 0 12px; font-size: 13.5px; }
.av3-pro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.av3-pro-pick { position: relative; cursor: pointer; }
.av3-pro-pick:focus-within { outline: 3px solid var(--av3-pink); outline-offset: 2px; }
.av3-pro-inline { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--av3-bg); }
.av3-pro-inline p { margin: 0 0 10px; font-weight: 600; }
.av3-pro-ring input[type=color] { width: 72px; min-height: 48px; padding: 4px; border: 1px solid #d9ccb2; border-radius: 12px; background: #fff; }
.av3-pro-sub { margin: 14px 0 8px; font-size: 15px; font-weight: 800; }
.av3-pro-sub:first-of-type { margin-top: 4px; }
.av3-pro-device { margin: 0 0 10px; font-weight: 600; }
.av3-pro-set { margin: 12px 0 0; display: grid; gap: 8px; }
.av3-pro-check { min-height: 52px; }
.av3-pro-check--master { margin-top: 4px; }
.av3-pro .av3-button--block { margin-top: 14px; }
.av3-pro-logout { margin: 4px 0 0; }
.av3-pro-logout .av3-button { gap: 8px; }
.av3-pro-test { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--av3-line); }
.av3-pro-test .av3-pro-hint { margin-bottom: 10px; }
.av3-pro-devices { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.av3-pro-devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--av3-bg); }
.av3-pro-devices__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.av3-pro-devices__body small { color: var(--av3-muted); font-size: 13px; }
.av3-pro-devices li .av3-task-link { flex: none; }
