:root {
  color-scheme: light dark;
  --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --main-padding-top: 12px;
  --main-padding-bottom: 20px;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.92);
  --radius-card: 12px;
  --radius-button: 25px;
  --radius-admin: 8px;
}
:root:has(> head > meta[name=color-scheme][content=dark]) {
  color-scheme: dark;
}
:root:has(> head > meta[name=color-scheme][content=light]) {
  color-scheme: light;
}
@media (max-width: 640px) {
  :root {
    --font-size-3xs: 0.53125rem;
    --font-size-2xs: 0.625rem;
    --font-size-xs: 0.6875rem;
    --font-size-sm: 0.75rem;
    --font-size-base: 0.8125rem;
    --font-size-md: 0.875rem;
    --font-size-lg: 0.96875rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.3125rem;
    --font-size-3xl: 1.5625rem;
    --font-size-brand: 1.09375rem;
    --main-padding-top: 10px;
    --main-padding-bottom: 72px;
    --card-padding: 10px 12px;
  }
}

html[data-daytime=morning],
html[data-theme=morning-ivory] {
  color-scheme: light;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.94);
}

html[data-daytime=afternoon],
html[data-theme=afternoon-saddle] {
  color-scheme: dark;
  --color-accent: #d4a359;
  --color-bg: #1b1109;
  --color-surface: #26180e;
  --color-sidebar-bg: #24160c;
  --color-sidebar-grad: linear-gradient(180deg, #2d1c10 0%, #1a0f08 100%);
  --color-launcher-tray: rgba(28, 18, 10, 0.94);
  --color-tile-bg: rgba(45, 29, 17, 0.90);
  --color-tile-hover: rgba(74, 48, 29, 0.95);
  --color-tile-border: rgba(213, 174, 120, 0.36);
  --color-tile-icon: #dfb982;
  --color-tile-text: #f5ece0;
  --color-nav-active-bg: #d5ae78;
  --color-nav-active-text: #1a0f08;
  --color-nav-badge-bg: #dfb880;
  --color-nav-badge-text: #1a0f08;
  --color-search-bg: rgba(64, 41, 22, 0.74);
  --color-search-text: #f5ece0;
  --color-search-border: rgba(213, 174, 120, 0.32);
  --color-text: #f7f2eb;
  --color-text-muted: #d6c3ad;
  --color-border: rgba(212, 163, 89, 0.30);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #312014;
  --btn-secondary-text: #f7f2eb;
  --btn-secondary-border: rgba(212, 163, 89, 0.45);
  --btn-secondary-hover-bg: #dfba78;
  --btn-secondary-hover-text: #140c07;
  --btn-secondary-hover-border: #ebd09e;
  --btn-ghost-hover-bg: rgba(212, 163, 89, 0.24);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #140c07;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #140c07;
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(34, 21, 12, 0) 0%, rgba(34, 21, 12, 0.10) 15%, rgba(34, 21, 12, 0.32) 38%, rgba(34, 21, 12, 0.54) 68%, rgba(34, 21, 12, 0.70) 100%);
  --hero-bottom-fade: rgba(28, 17, 10, 0.94);
}

html[data-daytime=evening],
html[data-theme=evening-midnight] {
  color-scheme: dark;
  --color-accent: #4c7eb5;
  --color-bg: #06111d;
  --color-surface: #0b1c2e;
  --color-sidebar-bg: #081625;
  --color-sidebar-grad: linear-gradient(180deg, #0b1b2d 0%, #050e18 100%);
  --color-launcher-tray: rgba(6, 17, 29, 0.95);
  --color-tile-bg: rgba(12, 28, 46, 0.90);
  --color-tile-hover: rgba(26, 54, 84, 0.95);
  --color-tile-border: rgba(92, 132, 172, 0.38);
  --color-tile-icon: #e2be84;
  --color-tile-text: #f0f5fa;
  --color-nav-active-bg: #dfba78;
  --color-nav-active-text: #071320;
  --color-nav-badge-bg: #dfb67c;
  --color-nav-badge-text: #081524;
  --color-search-bg: rgba(16, 35, 56, 0.76);
  --color-search-text: #e2ecf5;
  --color-search-border: rgba(123, 152, 182, 0.32);
  --color-text: #f1f5f9;
  --color-text-muted: #b6c8de;
  --color-border: rgba(148, 169, 196, 0.26);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #11263d;
  --btn-secondary-text: #f1f5f9;
  --btn-secondary-border: rgba(148, 169, 196, 0.42);
  --btn-secondary-hover-bg: #e2ecf5;
  --btn-secondary-hover-text: #06111d;
  --btn-secondary-hover-border: #ffffff;
  --btn-ghost-hover-bg: rgba(148, 169, 196, 0.22);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #06111d;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #06111d;
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(8, 19, 34, 0) 0%, rgba(8, 19, 34, 0.10) 15%, rgba(8, 19, 34, 0.32) 38%, rgba(8, 19, 34, 0.54) 68%, rgba(8, 19, 34, 0.70) 100%);
  --hero-bottom-fade: rgba(8, 19, 34, 0.94);
}

html[data-theme=ave-clean] {
  color-scheme: light;
  --color-accent: #059669;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-sidebar-bg: #ffffff;
  --color-sidebar-grad: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --color-launcher-tray: rgba(255, 255, 255, 0.95);
  --color-tile-bg: rgba(255, 255, 255, 0.92);
  --color-tile-hover: #e2e8f0;
  --color-tile-border: #e2e8f0;
  --color-tile-icon: #1e293b;
  --color-tile-text: #1e293b;
  --color-nav-active-bg: #0f172a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #0f172a;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(255, 255, 255, 0.88);
  --color-search-text: #0f172a;
  --color-search-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: #cbd5e1;
  --btn-secondary-hover-bg: #0f172a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #0f172a;
  --btn-ghost-hover-bg: #e2e8f0;
  --btn-ghost-hover-text: #020617;
  --pill-active-bg: #0f172a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #1e293b;
  --pill-active-hover-text: #ffffff;
  --hero-bg-fade: linear-gradient(180deg, rgba(56, 45, 36, 0) 0%, rgba(56, 45, 36, 0.08) 15%, rgba(56, 45, 36, 0.30) 38%, rgba(56, 45, 36, 0.52) 68%, rgba(56, 45, 36, 0.70) 100%);
  --hero-bottom-fade: rgba(248, 250, 252, 0.94);
}

html[data-daytime=morning] {
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
}

html[data-daytime=afternoon] {
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
}

html[data-daytime=evening] {
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
}

:where([data-density=compact]) {
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
}

:where([data-density=box-tablet]) {
  --font-size-3xs: 0.65625rem;
  --font-size-2xs: 0.75rem;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.90625rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.625rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.3125rem;
  --card-padding: 16px 18px;
  --tap-target-min: 46px;
}

:where([data-density=tv-wallboard]) {
  --font-size-3xs: 0.6875rem;
  --font-size-2xs: 0.78125rem;
  --font-size-xs: 0.84375rem;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1.0625rem;
  --font-size-md: 1.1875rem;
  --font-size-lg: 1.3125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-brand: 1.4375rem;
  --card-padding: 16px 20px;
  --tap-target-min: 48px;
}

:root {
  color-scheme: light dark;
  --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --main-padding-top: 12px;
  --main-padding-bottom: 20px;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.92);
  --radius-card: 12px;
  --radius-button: 25px;
  --radius-admin: 8px;
}
:root:has(> head > meta[name=color-scheme][content=dark]) {
  color-scheme: dark;
}
:root:has(> head > meta[name=color-scheme][content=light]) {
  color-scheme: light;
}
@media (max-width: 640px) {
  :root {
    --font-size-3xs: 0.53125rem;
    --font-size-2xs: 0.625rem;
    --font-size-xs: 0.6875rem;
    --font-size-sm: 0.75rem;
    --font-size-base: 0.8125rem;
    --font-size-md: 0.875rem;
    --font-size-lg: 0.96875rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.3125rem;
    --font-size-3xl: 1.5625rem;
    --font-size-brand: 1.09375rem;
    --main-padding-top: 10px;
    --main-padding-bottom: 72px;
    --card-padding: 10px 12px;
  }
}

html[data-daytime=morning],
html[data-theme=morning-ivory] {
  color-scheme: light;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.94);
}

html[data-daytime=afternoon],
html[data-theme=afternoon-saddle] {
  color-scheme: dark;
  --color-accent: #d4a359;
  --color-bg: #1b1109;
  --color-surface: #26180e;
  --color-sidebar-bg: #24160c;
  --color-sidebar-grad: linear-gradient(180deg, #2d1c10 0%, #1a0f08 100%);
  --color-launcher-tray: rgba(28, 18, 10, 0.94);
  --color-tile-bg: rgba(45, 29, 17, 0.90);
  --color-tile-hover: rgba(74, 48, 29, 0.95);
  --color-tile-border: rgba(213, 174, 120, 0.36);
  --color-tile-icon: #dfb982;
  --color-tile-text: #f5ece0;
  --color-nav-active-bg: #d5ae78;
  --color-nav-active-text: #1a0f08;
  --color-nav-badge-bg: #dfb880;
  --color-nav-badge-text: #1a0f08;
  --color-search-bg: rgba(64, 41, 22, 0.74);
  --color-search-text: #f5ece0;
  --color-search-border: rgba(213, 174, 120, 0.32);
  --color-text: #f7f2eb;
  --color-text-muted: #d6c3ad;
  --color-border: rgba(212, 163, 89, 0.30);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #312014;
  --btn-secondary-text: #f7f2eb;
  --btn-secondary-border: rgba(212, 163, 89, 0.45);
  --btn-secondary-hover-bg: #dfba78;
  --btn-secondary-hover-text: #140c07;
  --btn-secondary-hover-border: #ebd09e;
  --btn-ghost-hover-bg: rgba(212, 163, 89, 0.24);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #140c07;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #140c07;
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(34, 21, 12, 0) 0%, rgba(34, 21, 12, 0.10) 15%, rgba(34, 21, 12, 0.32) 38%, rgba(34, 21, 12, 0.54) 68%, rgba(34, 21, 12, 0.70) 100%);
  --hero-bottom-fade: rgba(28, 17, 10, 0.94);
}

html[data-daytime=evening],
html[data-theme=evening-midnight] {
  color-scheme: dark;
  --color-accent: #4c7eb5;
  --color-bg: #06111d;
  --color-surface: #0b1c2e;
  --color-sidebar-bg: #081625;
  --color-sidebar-grad: linear-gradient(180deg, #0b1b2d 0%, #050e18 100%);
  --color-launcher-tray: rgba(6, 17, 29, 0.95);
  --color-tile-bg: rgba(12, 28, 46, 0.90);
  --color-tile-hover: rgba(26, 54, 84, 0.95);
  --color-tile-border: rgba(92, 132, 172, 0.38);
  --color-tile-icon: #e2be84;
  --color-tile-text: #f0f5fa;
  --color-nav-active-bg: #dfba78;
  --color-nav-active-text: #071320;
  --color-nav-badge-bg: #dfb67c;
  --color-nav-badge-text: #081524;
  --color-search-bg: rgba(16, 35, 56, 0.76);
  --color-search-text: #e2ecf5;
  --color-search-border: rgba(123, 152, 182, 0.32);
  --color-text: #f1f5f9;
  --color-text-muted: #b6c8de;
  --color-border: rgba(148, 169, 196, 0.26);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #11263d;
  --btn-secondary-text: #f1f5f9;
  --btn-secondary-border: rgba(148, 169, 196, 0.42);
  --btn-secondary-hover-bg: #e2ecf5;
  --btn-secondary-hover-text: #06111d;
  --btn-secondary-hover-border: #ffffff;
  --btn-ghost-hover-bg: rgba(148, 169, 196, 0.22);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #06111d;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #06111d;
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(8, 19, 34, 0) 0%, rgba(8, 19, 34, 0.10) 15%, rgba(8, 19, 34, 0.32) 38%, rgba(8, 19, 34, 0.54) 68%, rgba(8, 19, 34, 0.70) 100%);
  --hero-bottom-fade: rgba(8, 19, 34, 0.94);
}

html[data-theme=ave-clean] {
  color-scheme: light;
  --color-accent: #059669;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-sidebar-bg: #ffffff;
  --color-sidebar-grad: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --color-launcher-tray: rgba(255, 255, 255, 0.95);
  --color-tile-bg: rgba(255, 255, 255, 0.92);
  --color-tile-hover: #e2e8f0;
  --color-tile-border: #e2e8f0;
  --color-tile-icon: #1e293b;
  --color-tile-text: #1e293b;
  --color-nav-active-bg: #0f172a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #0f172a;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(255, 255, 255, 0.88);
  --color-search-text: #0f172a;
  --color-search-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: #cbd5e1;
  --btn-secondary-hover-bg: #0f172a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #0f172a;
  --btn-ghost-hover-bg: #e2e8f0;
  --btn-ghost-hover-text: #020617;
  --pill-active-bg: #0f172a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #1e293b;
  --pill-active-hover-text: #ffffff;
  --hero-bg-fade: linear-gradient(180deg, rgba(56, 45, 36, 0) 0%, rgba(56, 45, 36, 0.08) 15%, rgba(56, 45, 36, 0.30) 38%, rgba(56, 45, 36, 0.52) 68%, rgba(56, 45, 36, 0.70) 100%);
  --hero-bottom-fade: rgba(248, 250, 252, 0.94);
}

html[data-daytime=morning] {
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
}

html[data-daytime=afternoon] {
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
}

html[data-daytime=evening] {
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
}

:where([data-density=compact]) {
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
}

:where([data-density=box-tablet]) {
  --font-size-3xs: 0.65625rem;
  --font-size-2xs: 0.75rem;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.90625rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.625rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.3125rem;
  --card-padding: 16px 18px;
  --tap-target-min: 46px;
}

:where([data-density=tv-wallboard]) {
  --font-size-3xs: 0.6875rem;
  --font-size-2xs: 0.78125rem;
  --font-size-xs: 0.84375rem;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1.0625rem;
  --font-size-md: 1.1875rem;
  --font-size-lg: 1.3125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-brand: 1.4375rem;
  --card-padding: 16px 20px;
  --tap-target-min: 48px;
}

.form-group,
.horse-form-field {
  margin-bottom: 12px;
  position: relative;
  min-width: 0;
}
.form-group:last-child,
.horse-form-field:last-child {
  margin-bottom: 0;
}
.form-group.is-span-2,
.horse-form-field.is-span-2 {
  grid-column: 1/-1;
}

.form-grid-2,
.horse-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.form-grid-2:last-child,
.horse-form-grid:last-child {
  margin-bottom: 0;
}
.form-grid-2 > *,
.horse-form-grid > * {
  min-width: 0;
}
.form-grid-2 > .form-group,
.form-grid-2 > .horse-form-field,
.horse-form-grid > .form-group,
.horse-form-grid > .horse-form-field {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .form-grid-2,
  .horse-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.form-grid-3:last-child {
  margin-bottom: 0;
}
.form-grid-3 > * {
  min-width: 0;
}
.form-grid-3 > .form-group,
.form-grid-3 > .horse-form-field {
  margin-bottom: 0;
}

.form-label,
.form-group > label,
.horse-form-field > label,
.settings-field-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.form-label .required-star,
.form-group > label .required-star,
.horse-form-field > label .required-star,
.settings-field-label .required-star {
  color: #f43f5e;
  margin-left: 2px;
}

.form-hint,
.settings-foot-hint {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.settings-foot-hint {
  margin-top: 0;
  margin-right: auto;
}

.form-control,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  padding: 8px 13px;
  min-height: var(--tap-target-min);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--font-size-sm);
  line-height: 1.25;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}
.form-control::placeholder,
.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.75;
}
.form-control:hover,
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-tile-border);
}
.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}
.form-control:disabled, .form-control[readonly],
.form-input:disabled,
.form-input[readonly],
.form-select:disabled,
.form-select[readonly],
.form-textarea:disabled,
.form-textarea[readonly] {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  height: var(--tap-target-min);
  padding: 0 34px 0 12px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 13px 13px;
  cursor: pointer;
}
.form-select:hover {
  border-color: var(--color-accent);
  background-color: var(--color-tile-hover);
}
.form-select:focus, .form-select.is-filtered {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
  background-color: var(--color-surface);
  color: var(--color-text);
}
.form-select.form-select-sm {
  height: 32px;
  min-height: 32px;
  padding: 0 28px 0 11px;
  font-size: var(--font-size-xs);
  line-height: 1.25;
  border-radius: 8px;
  background-position: right 9px center;
}

.be-filter-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.be-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-action .form-input {
  padding-right: 92px;
}
.input-with-action .action-btn-inline {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #059669;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-dark,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--tap-target-min);
  padding: 8px 16px;
  border-radius: var(--radius-button, 25px);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}
.btn span,
.btn-primary span,
.btn-secondary span,
.btn-ghost span,
.btn-dark span,
.btn-danger span {
  text-box: trim-both cap alphabetic;
}
.btn .svg-icon,
.btn-primary .svg-icon,
.btn-secondary .svg-icon,
.btn-ghost .svg-icon,
.btn-dark .svg-icon,
.btn-danger .svg-icon {
  flex-shrink: 0;
}
.btn:active:not(:disabled),
.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.btn-ghost:active:not(:disabled),
.btn-dark:active:not(:disabled),
.btn-danger:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-dark:disabled,
.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--btn-primary-bg, #059669);
  border-color: var(--btn-primary-border, #059669);
  color: var(--btn-primary-text, #ffffff);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--btn-primary-hover-bg, #065f46);
  border-color: var(--btn-primary-hover-border, #065f46);
  color: var(--btn-primary-hover-text, #ffffff);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg, var(--color-surface));
  border-color: var(--btn-secondary-border, var(--color-border));
  color: var(--btn-secondary-text, var(--color-text));
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--btn-secondary-hover-bg, var(--color-tile-hover));
  border-color: var(--btn-secondary-hover-border, var(--color-accent));
  color: var(--btn-secondary-hover-text, var(--color-text));
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--btn-ghost-hover-text, var(--color-text));
  background-color: var(--btn-ghost-hover-bg, var(--color-tile-bg));
}

.btn-dark {
  background-color: var(--pill-active-bg, #0f172a);
  border-color: var(--pill-active-bg, #0f172a);
  color: var(--pill-active-text, #ffffff);
}
.btn-dark:hover:not(:disabled) {
  background-color: var(--pill-active-hover-bg, #1e140d);
  border-color: var(--pill-active-hover-bg, #1e140d);
  color: var(--pill-active-hover-text, #ffffff);
}

.btn-danger {
  background-color: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.32);
  color: #e11d48;
}
.btn-danger:hover:not(:disabled) {
  background-color: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: var(--font-size-xs);
}

.btn-lg {
  min-height: 48px;
  padding: 13px 24px;
  font-size: var(--font-size-md);
}

.btn-full {
  width: 100%;
}

.btn-round {
  border-radius: 25px;
}

.btn-square {
  border-radius: 8px;
}

.horse-filter-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-pill,
.box-pill,
.horse-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  box-sizing: border-box;
  border-radius: 25px;
  border: 1px solid var(--btn-secondary-border, var(--color-border));
  background-color: var(--btn-secondary-bg, var(--color-surface));
  color: var(--btn-secondary-text, var(--color-text));
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-pill span,
.box-pill span,
.horse-filter-pill span {
  text-box: trim-both cap alphabetic;
}
.btn-pill .horse-pill-count,
.box-pill .horse-pill-count,
.horse-filter-pill .horse-pill-count {
  font-size: var(--font-size-2xs);
  opacity: 0.72;
}
.btn-pill:hover:not(:disabled),
.box-pill:hover:not(:disabled),
.horse-filter-pill:hover:not(:disabled) {
  border-color: var(--btn-secondary-hover-border, var(--color-accent));
  background-color: var(--btn-secondary-hover-bg, var(--color-tile-hover));
  color: var(--btn-secondary-hover-text, var(--color-text));
}
.btn-pill.is-active,
.box-pill.is-active,
.horse-filter-pill.is-active {
  background-color: var(--pill-active-bg, var(--color-nav-active-bg));
  color: var(--pill-active-text, var(--color-nav-active-text));
  border-color: var(--pill-active-bg, var(--color-nav-active-bg));
}
.btn-pill.is-active:hover:not(:disabled),
.box-pill.is-active:hover:not(:disabled),
.horse-filter-pill.is-active:hover:not(:disabled) {
  background-color: var(--pill-active-hover-bg, var(--pill-active-bg));
  color: var(--pill-active-hover-text, var(--pill-active-text));
  border-color: var(--pill-active-hover-bg, var(--pill-active-bg));
}

.settings-segmented-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 25px;
  background-color: var(--color-tile-bg);
  border: 1px solid var(--color-border);
}

.settings-seg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 25px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.settings-seg-pill span {
  text-box: trim-both cap alphabetic;
}
.settings-seg-pill:hover:not(:disabled) {
  color: var(--btn-ghost-hover-text, var(--color-text));
  background-color: var(--btn-ghost-hover-bg, transparent);
}
.settings-seg-pill.is-active, .settings-seg-pill.btn-primary {
  background-color: var(--btn-primary-bg, #059669);
  border-color: var(--btn-primary-border, #059669);
  color: var(--btn-primary-text, #ffffff);
}
.settings-seg-pill.is-active:hover:not(:disabled), .settings-seg-pill.btn-primary:hover:not(:disabled) {
  background-color: var(--btn-primary-hover-bg, #065f46);
  border-color: var(--btn-primary-hover-border, #065f46);
  color: var(--btn-primary-hover-text, #ffffff);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target-min);
  height: var(--tap-target-min);
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--btn-secondary-border, var(--color-border));
  background-color: var(--btn-secondary-bg, var(--color-surface));
  color: var(--btn-secondary-text, var(--color-text));
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-icon:hover:not(:disabled) {
  border-color: var(--btn-secondary-hover-border, var(--color-accent));
  background-color: var(--btn-secondary-hover-bg, var(--color-tile-hover));
  color: var(--btn-secondary-hover-text, var(--color-text));
}

:root {
  color-scheme: light dark;
  --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --main-padding-top: 12px;
  --main-padding-bottom: 20px;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.92);
  --radius-card: 12px;
  --radius-button: 25px;
  --radius-admin: 8px;
}
:root:has(> head > meta[name=color-scheme][content=dark]) {
  color-scheme: dark;
}
:root:has(> head > meta[name=color-scheme][content=light]) {
  color-scheme: light;
}
@media (max-width: 640px) {
  :root {
    --font-size-3xs: 0.53125rem;
    --font-size-2xs: 0.625rem;
    --font-size-xs: 0.6875rem;
    --font-size-sm: 0.75rem;
    --font-size-base: 0.8125rem;
    --font-size-md: 0.875rem;
    --font-size-lg: 0.96875rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.3125rem;
    --font-size-3xl: 1.5625rem;
    --font-size-brand: 1.09375rem;
    --main-padding-top: 10px;
    --main-padding-bottom: 72px;
    --card-padding: 10px 12px;
  }
}

html[data-daytime=morning],
html[data-theme=morning-ivory] {
  color-scheme: light;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.94);
}

html[data-daytime=afternoon],
html[data-theme=afternoon-saddle] {
  color-scheme: dark;
  --color-accent: #d4a359;
  --color-bg: #1b1109;
  --color-surface: #26180e;
  --color-sidebar-bg: #24160c;
  --color-sidebar-grad: linear-gradient(180deg, #2d1c10 0%, #1a0f08 100%);
  --color-launcher-tray: rgba(28, 18, 10, 0.94);
  --color-tile-bg: rgba(45, 29, 17, 0.90);
  --color-tile-hover: rgba(74, 48, 29, 0.95);
  --color-tile-border: rgba(213, 174, 120, 0.36);
  --color-tile-icon: #dfb982;
  --color-tile-text: #f5ece0;
  --color-nav-active-bg: #d5ae78;
  --color-nav-active-text: #1a0f08;
  --color-nav-badge-bg: #dfb880;
  --color-nav-badge-text: #1a0f08;
  --color-search-bg: rgba(64, 41, 22, 0.74);
  --color-search-text: #f5ece0;
  --color-search-border: rgba(213, 174, 120, 0.32);
  --color-text: #f7f2eb;
  --color-text-muted: #d6c3ad;
  --color-border: rgba(212, 163, 89, 0.30);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #312014;
  --btn-secondary-text: #f7f2eb;
  --btn-secondary-border: rgba(212, 163, 89, 0.45);
  --btn-secondary-hover-bg: #dfba78;
  --btn-secondary-hover-text: #140c07;
  --btn-secondary-hover-border: #ebd09e;
  --btn-ghost-hover-bg: rgba(212, 163, 89, 0.24);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #140c07;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #140c07;
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(34, 21, 12, 0) 0%, rgba(34, 21, 12, 0.10) 15%, rgba(34, 21, 12, 0.32) 38%, rgba(34, 21, 12, 0.54) 68%, rgba(34, 21, 12, 0.70) 100%);
  --hero-bottom-fade: rgba(28, 17, 10, 0.94);
}

html[data-daytime=evening],
html[data-theme=evening-midnight] {
  color-scheme: dark;
  --color-accent: #4c7eb5;
  --color-bg: #06111d;
  --color-surface: #0b1c2e;
  --color-sidebar-bg: #081625;
  --color-sidebar-grad: linear-gradient(180deg, #0b1b2d 0%, #050e18 100%);
  --color-launcher-tray: rgba(6, 17, 29, 0.95);
  --color-tile-bg: rgba(12, 28, 46, 0.90);
  --color-tile-hover: rgba(26, 54, 84, 0.95);
  --color-tile-border: rgba(92, 132, 172, 0.38);
  --color-tile-icon: #e2be84;
  --color-tile-text: #f0f5fa;
  --color-nav-active-bg: #dfba78;
  --color-nav-active-text: #071320;
  --color-nav-badge-bg: #dfb67c;
  --color-nav-badge-text: #081524;
  --color-search-bg: rgba(16, 35, 56, 0.76);
  --color-search-text: #e2ecf5;
  --color-search-border: rgba(123, 152, 182, 0.32);
  --color-text: #f1f5f9;
  --color-text-muted: #b6c8de;
  --color-border: rgba(148, 169, 196, 0.26);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #11263d;
  --btn-secondary-text: #f1f5f9;
  --btn-secondary-border: rgba(148, 169, 196, 0.42);
  --btn-secondary-hover-bg: #e2ecf5;
  --btn-secondary-hover-text: #06111d;
  --btn-secondary-hover-border: #ffffff;
  --btn-ghost-hover-bg: rgba(148, 169, 196, 0.22);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #06111d;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #06111d;
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(8, 19, 34, 0) 0%, rgba(8, 19, 34, 0.10) 15%, rgba(8, 19, 34, 0.32) 38%, rgba(8, 19, 34, 0.54) 68%, rgba(8, 19, 34, 0.70) 100%);
  --hero-bottom-fade: rgba(8, 19, 34, 0.94);
}

html[data-theme=ave-clean] {
  color-scheme: light;
  --color-accent: #059669;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-sidebar-bg: #ffffff;
  --color-sidebar-grad: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --color-launcher-tray: rgba(255, 255, 255, 0.95);
  --color-tile-bg: rgba(255, 255, 255, 0.92);
  --color-tile-hover: #e2e8f0;
  --color-tile-border: #e2e8f0;
  --color-tile-icon: #1e293b;
  --color-tile-text: #1e293b;
  --color-nav-active-bg: #0f172a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #0f172a;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(255, 255, 255, 0.88);
  --color-search-text: #0f172a;
  --color-search-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: #cbd5e1;
  --btn-secondary-hover-bg: #0f172a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #0f172a;
  --btn-ghost-hover-bg: #e2e8f0;
  --btn-ghost-hover-text: #020617;
  --pill-active-bg: #0f172a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #1e293b;
  --pill-active-hover-text: #ffffff;
  --hero-bg-fade: linear-gradient(180deg, rgba(56, 45, 36, 0) 0%, rgba(56, 45, 36, 0.08) 15%, rgba(56, 45, 36, 0.30) 38%, rgba(56, 45, 36, 0.52) 68%, rgba(56, 45, 36, 0.70) 100%);
  --hero-bottom-fade: rgba(248, 250, 252, 0.94);
}

html[data-daytime=morning] {
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
}

html[data-daytime=afternoon] {
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
}

html[data-daytime=evening] {
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
}

:where([data-density=compact]) {
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
}

:where([data-density=box-tablet]) {
  --font-size-3xs: 0.65625rem;
  --font-size-2xs: 0.75rem;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.90625rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.625rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.3125rem;
  --card-padding: 16px 18px;
  --tap-target-min: 46px;
}

:where([data-density=tv-wallboard]) {
  --font-size-3xs: 0.6875rem;
  --font-size-2xs: 0.78125rem;
  --font-size-xs: 0.84375rem;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1.0625rem;
  --font-size-md: 1.1875rem;
  --font-size-lg: 1.3125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-brand: 1.4375rem;
  --card-padding: 16px 20px;
  --tap-target-min: 48px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px;
  background-color: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  transform: translateY(20px);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.is-active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.modal-header .modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target-min);
  height: var(--tap-target-min);
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-tile-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--font-size-md);
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.modal-header .modal-close:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background-color: var(--color-tile-hover);
}

.modal-body {
  padding: 24px;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

:root {
  color-scheme: light dark;
  --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --main-padding-top: 12px;
  --main-padding-bottom: 20px;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.92);
  --radius-card: 12px;
  --radius-button: 25px;
  --radius-admin: 8px;
}
:root:has(> head > meta[name=color-scheme][content=dark]) {
  color-scheme: dark;
}
:root:has(> head > meta[name=color-scheme][content=light]) {
  color-scheme: light;
}
@media (max-width: 640px) {
  :root {
    --font-size-3xs: 0.53125rem;
    --font-size-2xs: 0.625rem;
    --font-size-xs: 0.6875rem;
    --font-size-sm: 0.75rem;
    --font-size-base: 0.8125rem;
    --font-size-md: 0.875rem;
    --font-size-lg: 0.96875rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.3125rem;
    --font-size-3xl: 1.5625rem;
    --font-size-brand: 1.09375rem;
    --main-padding-top: 10px;
    --main-padding-bottom: 72px;
    --card-padding: 10px 12px;
  }
}

html[data-daytime=morning],
html[data-theme=morning-ivory] {
  color-scheme: light;
  --color-accent: #6e5a47;
  --color-bg: #f3ede2;
  --color-surface: #f9f6f0;
  --color-sidebar-bg: #eae2d4;
  --color-sidebar-grad: linear-gradient(180deg, #ede6d9 0%, #dfd6c6 100%);
  --color-launcher-tray: rgba(247, 244, 238, 0.96);
  --color-tile-bg: #e7e0d4;
  --color-tile-hover: #dfd4c2;
  --color-tile-border: rgba(255, 255, 255, 0.72);
  --color-tile-icon: #231d18;
  --color-tile-text: #231d18;
  --color-nav-active-bg: #2c221a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #5d4b38;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(238, 231, 220, 0.80);
  --color-search-text: #29211b;
  --color-search-border: rgba(255, 255, 255, 0.58);
  --color-text: #1e140d;
  --color-text-muted: #4a3b2f;
  --color-border: #c9bca6;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #f9f6f0;
  --btn-secondary-text: #1e140d;
  --btn-secondary-border: #b8a890;
  --btn-secondary-hover-bg: #2c221a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #2c221a;
  --btn-ghost-hover-bg: #dfd4c2;
  --btn-ghost-hover-text: #140c07;
  --pill-active-bg: #2c221a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #140c07;
  --pill-active-hover-text: #ffffff;
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(74, 55, 40, 0) 0%, rgba(74, 55, 40, 0.08) 15%, rgba(74, 55, 40, 0.30) 38%, rgba(74, 55, 40, 0.52) 68%, rgba(74, 55, 40, 0.70) 100%);
  --hero-bottom-fade: rgba(243, 237, 226, 0.94);
}

html[data-daytime=afternoon],
html[data-theme=afternoon-saddle] {
  color-scheme: dark;
  --color-accent: #d4a359;
  --color-bg: #1b1109;
  --color-surface: #26180e;
  --color-sidebar-bg: #24160c;
  --color-sidebar-grad: linear-gradient(180deg, #2d1c10 0%, #1a0f08 100%);
  --color-launcher-tray: rgba(28, 18, 10, 0.94);
  --color-tile-bg: rgba(45, 29, 17, 0.90);
  --color-tile-hover: rgba(74, 48, 29, 0.95);
  --color-tile-border: rgba(213, 174, 120, 0.36);
  --color-tile-icon: #dfb982;
  --color-tile-text: #f5ece0;
  --color-nav-active-bg: #d5ae78;
  --color-nav-active-text: #1a0f08;
  --color-nav-badge-bg: #dfb880;
  --color-nav-badge-text: #1a0f08;
  --color-search-bg: rgba(64, 41, 22, 0.74);
  --color-search-text: #f5ece0;
  --color-search-border: rgba(213, 174, 120, 0.32);
  --color-text: #f7f2eb;
  --color-text-muted: #d6c3ad;
  --color-border: rgba(212, 163, 89, 0.30);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #312014;
  --btn-secondary-text: #f7f2eb;
  --btn-secondary-border: rgba(212, 163, 89, 0.45);
  --btn-secondary-hover-bg: #dfba78;
  --btn-secondary-hover-text: #140c07;
  --btn-secondary-hover-border: #ebd09e;
  --btn-ghost-hover-bg: rgba(212, 163, 89, 0.24);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #140c07;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #140c07;
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(34, 21, 12, 0) 0%, rgba(34, 21, 12, 0.10) 15%, rgba(34, 21, 12, 0.32) 38%, rgba(34, 21, 12, 0.54) 68%, rgba(34, 21, 12, 0.70) 100%);
  --hero-bottom-fade: rgba(28, 17, 10, 0.94);
}

html[data-daytime=evening],
html[data-theme=evening-midnight] {
  color-scheme: dark;
  --color-accent: #4c7eb5;
  --color-bg: #06111d;
  --color-surface: #0b1c2e;
  --color-sidebar-bg: #081625;
  --color-sidebar-grad: linear-gradient(180deg, #0b1b2d 0%, #050e18 100%);
  --color-launcher-tray: rgba(6, 17, 29, 0.95);
  --color-tile-bg: rgba(12, 28, 46, 0.90);
  --color-tile-hover: rgba(26, 54, 84, 0.95);
  --color-tile-border: rgba(92, 132, 172, 0.38);
  --color-tile-icon: #e2be84;
  --color-tile-text: #f0f5fa;
  --color-nav-active-bg: #dfba78;
  --color-nav-active-text: #071320;
  --color-nav-badge-bg: #dfb67c;
  --color-nav-badge-text: #081524;
  --color-search-bg: rgba(16, 35, 56, 0.76);
  --color-search-text: #e2ecf5;
  --color-search-border: rgba(123, 152, 182, 0.32);
  --color-text: #f1f5f9;
  --color-text-muted: #b6c8de;
  --color-border: rgba(148, 169, 196, 0.26);
  --btn-primary-bg: #10b981;
  --btn-primary-text: #04130e;
  --btn-primary-border: #10b981;
  --btn-primary-hover-bg: #34d399;
  --btn-primary-hover-text: #04130e;
  --btn-primary-hover-border: #34d399;
  --btn-secondary-bg: #11263d;
  --btn-secondary-text: #f1f5f9;
  --btn-secondary-border: rgba(148, 169, 196, 0.42);
  --btn-secondary-hover-bg: #e2ecf5;
  --btn-secondary-hover-text: #06111d;
  --btn-secondary-hover-border: #ffffff;
  --btn-ghost-hover-bg: rgba(148, 169, 196, 0.22);
  --btn-ghost-hover-text: #ffffff;
  --pill-active-bg: #dfba78;
  --pill-active-text: #06111d;
  --pill-active-hover-bg: #ebd09e;
  --pill-active-hover-text: #06111d;
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
  --hero-bg-fade: linear-gradient(180deg, rgba(8, 19, 34, 0) 0%, rgba(8, 19, 34, 0.10) 15%, rgba(8, 19, 34, 0.32) 38%, rgba(8, 19, 34, 0.54) 68%, rgba(8, 19, 34, 0.70) 100%);
  --hero-bottom-fade: rgba(8, 19, 34, 0.94);
}

html[data-theme=ave-clean] {
  color-scheme: light;
  --color-accent: #059669;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-sidebar-bg: #ffffff;
  --color-sidebar-grad: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --color-launcher-tray: rgba(255, 255, 255, 0.95);
  --color-tile-bg: rgba(255, 255, 255, 0.92);
  --color-tile-hover: #e2e8f0;
  --color-tile-border: #e2e8f0;
  --color-tile-icon: #1e293b;
  --color-tile-text: #1e293b;
  --color-nav-active-bg: #0f172a;
  --color-nav-active-text: #ffffff;
  --color-nav-badge-bg: #0f172a;
  --color-nav-badge-text: #ffffff;
  --color-search-bg: rgba(255, 255, 255, 0.88);
  --color-search-text: #0f172a;
  --color-search-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --btn-primary-bg: #059669;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #059669;
  --btn-primary-hover-bg: #065f46;
  --btn-primary-hover-text: #ffffff;
  --btn-primary-hover-border: #065f46;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: #cbd5e1;
  --btn-secondary-hover-bg: #0f172a;
  --btn-secondary-hover-text: #ffffff;
  --btn-secondary-hover-border: #0f172a;
  --btn-ghost-hover-bg: #e2e8f0;
  --btn-ghost-hover-text: #020617;
  --pill-active-bg: #0f172a;
  --pill-active-text: #ffffff;
  --pill-active-hover-bg: #1e293b;
  --pill-active-hover-text: #ffffff;
  --hero-bg-fade: linear-gradient(180deg, rgba(56, 45, 36, 0) 0%, rgba(56, 45, 36, 0.08) 15%, rgba(56, 45, 36, 0.30) 38%, rgba(56, 45, 36, 0.52) 68%, rgba(56, 45, 36, 0.70) 100%);
  --hero-bottom-fade: rgba(248, 250, 252, 0.94);
}

html[data-daytime=morning] {
  --hero-bg-image: url("/images/backgrounds/stall-morning.jpg");
}

html[data-daytime=afternoon] {
  --hero-bg-image: url("/images/backgrounds/stall-afternoon.jpg");
}

html[data-daytime=evening] {
  --hero-bg-image: url("/images/backgrounds/stall-evening.jpg");
}

:where([data-density=compact]) {
  --font-size-3xs: 0.5625rem;
  --font-size-2xs: 0.65625rem;
  --font-size-xs: 0.71875rem;
  --font-size-sm: 0.78125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.1875rem;
  --card-padding: 12px 14px;
  --tap-target-min: 34px;
}

:where([data-density=box-tablet]) {
  --font-size-3xs: 0.65625rem;
  --font-size-2xs: 0.75rem;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.90625rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.625rem;
  --font-size-3xl: 2rem;
  --font-size-brand: 1.3125rem;
  --card-padding: 16px 18px;
  --tap-target-min: 46px;
}

:where([data-density=tv-wallboard]) {
  --font-size-3xs: 0.6875rem;
  --font-size-2xs: 0.78125rem;
  --font-size-xs: 0.84375rem;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1.0625rem;
  --font-size-md: 1.1875rem;
  --font-size-lg: 1.3125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-brand: 1.4375rem;
  --card-padding: 16px 20px;
  --tap-target-min: 48px;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: var(--color-surface);
  color: var(--color-text);
  box-shadow: -5px 0 25px rgba(15, 23, 42, 0.2);
  z-index: 901;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer-content.is-active {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h2 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.drawer-header .drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target-min);
  height: var(--tap-target-min);
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-tile-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--font-size-md);
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.drawer-header .drawer-close:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background-color: var(--color-tile-hover);
}

.drawer-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}
.os-main-col {
  position: relative;
  z-index: 0;
  background-color: var(--color-bg);
  background-image: none;
}
.os-main-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 460px;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.36) 56%, var(--color-bg) 100%), var(--hero-bg-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.os-hero-banner {
  position: relative;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  padding: 4px 0 0;
  margin-bottom: 12px;
  box-shadow: none;
  border: none;
  overflow: visible;
}
.os-hero-banner.is-subpage-hero {
  padding-bottom: 4px;
  margin-bottom: 12px;
  border-bottom: none;
}
@media (max-width: 768px) {
  .os-hero-banner {
    padding: 2px 0 0;
  }
}
.os-hero-banner .os-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .os-hero-banner .os-hero-topbar {
    flex-wrap: wrap;
    gap: 10px;
  }
}
.os-hero-banner .os-hero-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 960px) {
  .os-hero-banner .os-hero-topbar-left {
    order: 4;
    width: 100%;
  }
}
.os-hero-banner .os-hero-back-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  background-color: rgba(20, 14, 10, 0.52);
  backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: var(--font-size-xs);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.os-hero-banner .os-hero-back-pill span {
  text-box: trim-both cap alphabetic;
}
.os-hero-banner .os-hero-back-pill:hover {
  background-color: rgba(20, 14, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.48);
  transform: translateY(-1px);
}
.os-hero-banner .os-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-color: rgba(20, 14, 10, 0.44);
  backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
}
@media (max-width: 960px) {
  .os-hero-banner .os-mobile-menu-btn {
    display: inline-flex;
    order: 1;
  }
}
.os-hero-banner .os-mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
}
.os-hero-banner .os-mobile-brand img {
  width: 54px;
  height: auto;
  display: block;
}
@media (max-width: 960px) {
  .os-hero-banner .os-mobile-brand {
    display: inline-flex;
    order: 2;
  }
}
.os-hero-banner .os-search-wrap {
  position: relative;
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  flex: 0 0 380px;
}
@media (max-width: 960px) {
  .os-hero-banner .os-search-wrap {
    order: 4;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
}
.os-hero-banner .os-glass-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: var(--color-search-bg);
  backdrop-filter: blur(14px);
  color: var(--color-search-text);
  border: 1px solid var(--color-search-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (max-width: 960px) {
  .os-hero-banner .os-glass-search {
    width: 100%;
  }
}
.os-hero-banner .os-glass-search .svg-icon {
  color: var(--color-search-text);
  opacity: 0.78;
  flex-shrink: 0;
}
.os-hero-banner .os-glass-search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-search-text);
  outline: none;
}
.os-hero-banner .os-glass-search input::placeholder {
  color: var(--color-search-text);
  opacity: 0.72;
}
.os-hero-banner .os-hero-userbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 960px) {
  .os-hero-banner .os-hero-userbar {
    order: 3;
  }
}
.os-hero-banner .os-ios-segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  background-color: rgba(20, 14, 10, 0.48);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.os-hero-banner .os-ios-segmented .os-seg-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-size-2xs);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.os-hero-banner .os-ios-segmented .os-seg-pill:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
}
html:not([data-daytime]) .os-hero-banner .os-ios-segmented .os-seg-pill.is-active, html[data-daytime=morning] .os-hero-banner .os-ios-segmented .os-seg-pill[data-daytime=morning], html[data-daytime=afternoon] .os-hero-banner .os-ios-segmented .os-seg-pill[data-daytime=afternoon], html[data-daytime=evening] .os-hero-banner .os-ios-segmented .os-seg-pill[data-daytime=evening] {
  background-color: rgba(249, 246, 240, 0.95);
  color: #1e140d;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}
.os-hero-banner .os-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(20, 14, 10, 0.48);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.os-hero-banner .os-bell-btn:hover {
  background-color: rgba(20, 14, 10, 0.68);
  transform: scale(1.04);
}
.os-hero-banner .os-bell-btn .bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.os-hero-banner .os-avatar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  background-color: rgba(243, 237, 226, 0.92);
  color: #1e140d;
  font-size: var(--font-size-xs);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  text-box: trim-both cap alphabetic;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.os-hero-banner .os-avatar-pill .user-avatar-visual {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.os-hero-banner .os-avatar-pill:hover {
  transform: scale(1.05);
  background-color: #ffffff;
  border-color: #dfba78;
}
.os-hero-banner .os-hero-stage {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 195px;
  padding: 32px 4px 24px;
}
@media (max-width: 640px) {
  .os-hero-banner .os-hero-stage {
    min-height: 140px;
    padding: 16px 0 18px;
  }
}
.os-hero-banner.is-subpage-hero .os-hero-stage {
  min-height: 112px;
  padding: 12px 4px 8px;
}
@media (max-width: 640px) {
  .os-hero-banner.is-subpage-hero .os-hero-stage {
    min-height: 96px;
    padding: 10px 0 8px;
  }
}
.os-hero-banner .os-greeting-box {
  max-width: 620px;
  padding: 0;
  background: none;
}
.os-hero-banner .os-greeting-box .os-greeting-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-3xl);
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72), 0 2px 12px rgba(0, 0, 0, 0.42);
  margin: 0 0 6px;
}
.os-hero-banner .os-greeting-box .os-greeting-sub {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.76), 0 2px 8px rgba(0, 0, 0, 0.44);
  margin: 0;
}
.os-hero-banner .os-greeting-box.os-subpage-greeting .os-subpage-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.os-hero-banner .os-greeting-box.os-subpage-greeting .os-subpage-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(20, 14, 10, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.24);
  flex-shrink: 0;
}
.os-hero-banner .os-greeting-box.os-subpage-greeting .os-greeting-title {
  margin: 0;
}
.os-hero-banner .os-greeting-box.os-subpage-greeting .os-subpage-desc {
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
}
.os-hero-banner .os-hero-stage-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}
@media (max-width: 640px) {
  .os-hero-banner .os-hero-stage-right {
    align-items: flex-start;
    margin-left: 0;
    width: 100%;
  }
}
.os-hero-banner .os-hero-subpage-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-height: 34px;
  gap: 8px;
}
@media (max-width: 640px) {
  .os-hero-banner .os-hero-subpage-actions {
    justify-content: flex-start;
  }
}
.os-hero-banner .os-weather-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 0;
  background: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72), 0 2px 10px rgba(0, 0, 0, 0.42);
}
.os-hero-banner .os-weather-widget .os-weather-date {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #ffffff;
}
.os-hero-banner .os-weather-widget .os-weather-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.os-hero-banner .os-weather-widget .os-weather-main .svg-icon {
  color: #ebd09e;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.52));
}
.os-hero-banner .os-weather-widget .os-weather-main .os-weather-temp-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
}
.os-hero-banner .os-weather-widget .os-weather-main .os-weather-temp {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #ffffff;
}
.os-hero-banner .os-weather-widget .os-weather-cond {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #ffffff;
}

.os-launcher-wrap {
  position: relative;
  z-index: 5;
  background-color: var(--color-launcher-tray);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-tile-border);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
@media (max-width: 640px) {
  .os-launcher-wrap {
    padding: 10px;
  }
}

.os-launcher-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 960px) {
  .os-launcher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

.os-app-tile {
  background-color: var(--color-tile-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--color-tile-border);
  border-radius: 13px;
  padding: 18px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
@media (max-width: 640px) {
  .os-app-tile {
    padding: 14px 8px 12px;
    gap: 7px;
  }
}
.os-app-tile .svg-icon {
  width: 56px;
  height: 56px;
  stroke-width: 0.95;
  color: var(--color-tile-icon);
  transition: transform 0.16s ease, color 0.2s ease;
}
@media (max-width: 640px) {
  .os-app-tile .svg-icon {
    width: 46px;
    height: 46px;
  }
}
.os-app-tile .os-tile-label {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-base);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-tile-text, var(--color-text));
  text-box: trim-both cap alphabetic;
}
@media (max-width: 640px) {
  .os-app-tile .os-tile-label {
    font-size: var(--font-size-sm);
  }
}
.os-app-tile:hover {
  background-color: var(--color-tile-hover);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}
.os-app-tile:hover .svg-icon {
  transform: scale(1.06);
}

.os-quick-theme-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}
.os-quick-theme-bar .os-theme-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
}
.os-quick-theme-bar .os-theme-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .kpi-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kpi-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.kpi-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.kpi-card .kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-card .kpi-label {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}
.kpi-card .kpi-val {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
}
.kpi-card .kpi-meta {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  padding-top: 5px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.dashboard-stage > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dashboard-stage > div > .dash-panel {
  margin-bottom: 0;
}
.dashboard-stage > .dash-panel {
  margin-bottom: 0;
}
@media (max-width: 960px) {
  .dashboard-stage {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dash-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--card-padding);
  margin-bottom: 12px;
}
.dash-panel:last-child {
  margin-bottom: 0;
}

.detail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.detail-panel-head .panel-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.detail-panel-head .panel-title-wrap .svg-icon {
  color: var(--color-tile-icon);
  flex-shrink: 0;
}
.detail-panel-head .panel-title-wrap h2 {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
  text-box: trim-both cap alphabetic;
}

.flat-list {
  display: flex;
  flex-direction: column;
}

.flat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.flat-row:first-child {
  padding-top: 2px;
}
.flat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.horse-os-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.horse-os-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.12s ease;
}
.horse-os-row:last-child {
  border-bottom: none;
}
.horse-os-row .horse-os-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.horse-os-row .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
}
.horse-os-row .status-dot.is-amber {
  background-color: #f59e0b;
}

.horse-portrait-svg,
.horse-portrait-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.horse-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border: 2px solid var(--color-tile-border);
  background-color: #5b3218;
}
.horse-avatar-circle .horse-portrait-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
.horse-avatar-circle.tone-chestnut {
  background-color: #8c4319;
}
.horse-avatar-circle.tone-dark-bay {
  background-color: #361e10;
}
.horse-avatar-circle.tone-grey {
  background-color: #7c858e;
}
.horse-avatar-circle.tone-black {
  background-color: #1c2026;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 25px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}
.status-pill.is-emerald, .status-pill.status-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #34d399;
}
.status-pill.is-amber, .status-pill.status-warning {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fbbf24;
}
.status-pill.is-rose, .status-pill.status-danger {
  background-color: #fff1f2;
  color: #e11d48;
  border: 1px solid #f43f5e;
}
.status-pill.is-sky {
  background-color: #f0f9ff;
  color: #1d4ed8;
  border: 1px solid #38bdf8;
}
.status-pill.is-violet {
  background-color: #eef2ff;
  color: #4f46e5;
  border: 1px solid #4f46e5;
}
.status-pill.status-neutral {
  background-color: var(--color-tile-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  white-space: nowrap;
  background-color: var(--color-tile-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  text-box: trim-both cap alphabetic;
}

.page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.page-hero .page-hero-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 240px;
  flex: 1 1 380px;
}
.page-hero .page-hero-title-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.page-hero .page-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--font-size-2xl);
  height: var(--font-size-2xl);
  color: var(--color-accent);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
  opacity: 0.88;
}
.page-hero .page-hero-icon .svg-icon {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
  display: block;
}
.page-hero .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}
.page-hero .page-eyebrow span {
  text-box: trim-both cap alphabetic;
}
.page-hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1;
  text-wrap: balance;
  text-box: trim-both cap alphabetic;
}
.page-hero h1 .svg-icon {
  width: 1em;
  height: 1em;
  color: var(--color-accent);
  stroke-width: 1.5;
  flex-shrink: 0;
  opacity: 0.88;
}
.page-hero .page-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
  text-wrap: pretty;
  max-width: 620px;
}
.page-hero .page-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-start;
  margin-left: auto;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.row-title.is-done {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.row-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.box-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.box-switcher .box-pill .svg-icon {
  color: currentColor;
  stroke: currentColor;
  stroke-width: 0.55px;
}

.alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: var(--font-size-xs);
  font-weight: 700;
}
.alert-banner .alert-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-kiosk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.box-kiosk-grid > .dash-panel {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .box-kiosk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.box-kiosk-grid + .dash-panel {
  margin-top: 12px;
  margin-bottom: 0;
}

.tv-wallboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.tv-wallboard-grid > .dash-panel {
  margin-bottom: 0;
}
@media (max-width: 1200px) {
  .tv-wallboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .tv-wallboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.quick-form-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.quick-form-bar > .form-group,
.quick-form-bar > .horse-form-field {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .quick-form-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-spacer {
  margin-bottom: 12px;
}

.theme-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .theme-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .theme-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.theme-select-card {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.theme-select-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.theme-select-card.is-selected, .theme-select-card.is-selected-theme {
  border-color: var(--color-nav-active-bg);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.theme-select-card .theme-card-preview {
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.theme-select-card .theme-card-preview.preview-morning {
  background: linear-gradient(135deg, #f3ede2 0%, #dcd0bc 60%, #b8986c 100%);
}
.theme-select-card .theme-card-preview.preview-afternoon {
  background: linear-gradient(135deg, #2d1b10 0%, #4a2f1d 60%, #996d38 100%);
}
.theme-select-card .theme-card-preview.preview-evening {
  background: linear-gradient(135deg, #0b192c 0%, #162e4d 60%, #2b4c73 100%);
}
.theme-select-card .theme-card-preview.preview-clean {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 60%, #cbd5e1 100%);
}
.theme-select-card .theme-card-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: #ffffff;
  background-color: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}
.theme-select-card .theme-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theme-select-card .theme-card-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
}
.theme-select-card .theme-card-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.35;
}
.theme-select-card .theme-swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}
.theme-select-card .theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.18);
}
.theme-select-card .theme-swatch.swatch-morning-bg {
  background-color: #f3ede2;
}
.theme-select-card .theme-swatch.swatch-morning-surface {
  background-color: #fbf8f3;
}
.theme-select-card .theme-swatch.swatch-morning-accent {
  background-color: #8c6239;
}
.theme-select-card .theme-swatch.swatch-afternoon-bg {
  background-color: #21150e;
}
.theme-select-card .theme-swatch.swatch-afternoon-surface {
  background-color: #2e1e14;
}
.theme-select-card .theme-swatch.swatch-afternoon-accent {
  background-color: #d4a359;
}
.theme-select-card .theme-swatch.swatch-evening-bg {
  background-color: #0b1624;
}
.theme-select-card .theme-swatch.swatch-evening-surface {
  background-color: #132338;
}
.theme-select-card .theme-swatch.swatch-evening-accent {
  background-color: #dfba78;
}
.theme-select-card .theme-swatch.swatch-clean-bg {
  background-color: #f8fafc;
}
.theme-select-card .theme-swatch.swatch-clean-surface {
  background-color: #ffffff;
}
.theme-select-card .theme-swatch.swatch-clean-accent {
  background-color: #ea580c;
}

.logo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 980px) {
  .logo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .logo-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.logo-variant-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.logo-variant-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.logo-variant-card.is-active-logo {
  border-color: var(--color-nav-active-bg);
}
.logo-variant-card .logo-preview-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
}
.logo-variant-card .logo-lockup-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-brand);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-text);
}
.logo-variant-card .logo-lockup-demo .dot {
  color: #fb8300;
}
.logo-variant-card .logo-card-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
}
.logo-variant-card .logo-card-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.logo-variant-card .logo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.setup-intro-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.setup-intro-banner .setup-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setup-intro-banner .setup-banner-left .svg-icon {
  color: var(--color-tile-icon);
  flex-shrink: 0;
}
.setup-intro-banner .setup-banner-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
}
.setup-intro-banner .setup-banner-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.setup-dialog {
  width: min(680px, 100vw - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background-color: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.32);
}
.setup-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}
.setup-dialog .setup-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}
.setup-dialog .setup-dialog-head .row-title,
.setup-dialog .setup-dialog-head .horse-modal-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.setup-dialog .setup-dialog-head .row-title .svg-icon,
.setup-dialog .setup-dialog-head .horse-modal-identity .svg-icon {
  color: var(--color-tile-icon);
  flex-shrink: 0;
}
.setup-dialog .setup-dialog-head .row-sub {
  display: none;
}
.setup-dialog .setup-dialog-head h2 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}
.setup-dialog .setup-dialog-head button:focus,
.setup-dialog .setup-dialog-head button:focus-visible {
  outline: none;
}
.setup-dialog .setup-steps-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 600px) {
  .setup-dialog .setup-steps-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.setup-dialog .setup-step-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
}
.setup-dialog .setup-step-tab.is-active {
  background-color: var(--color-nav-active-bg);
  border-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
}
.setup-dialog .setup-dialog-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.setup-dialog .setup-dialog-body > .form-group,
.setup-dialog .setup-dialog-body > .horse-form-field,
.setup-dialog .setup-dialog-body > .setup-grid-2,
.setup-dialog .setup-dialog-body > .horse-form-grid,
.setup-dialog .setup-dialog-body > .form-grid-2,
.setup-dialog .setup-dialog-body > .form-grid-3,
.setup-dialog .setup-dialog-body > .vdetail-cards-grid,
.setup-dialog .setup-dialog-body > .section-spacer {
  margin-bottom: 0;
}
.setup-dialog .js-setup-pane:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.setup-dialog .js-setup-pane:not([hidden]) > .form-group,
.setup-dialog .js-setup-pane:not([hidden]) > .horse-form-field,
.setup-dialog .js-setup-pane:not([hidden]) > .setup-grid-2,
.setup-dialog .js-setup-pane:not([hidden]) > .horse-form-grid,
.setup-dialog .js-setup-pane:not([hidden]) > .section-spacer {
  margin-bottom: 0;
}
.setup-dialog .setup-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.setup-dialog .setup-grid-2 > .form-group,
.setup-dialog .setup-grid-2 > .horse-form-field {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .setup-dialog .setup-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.setup-dialog .setup-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.setup-logo-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 2px;
}
@media (max-width: 600px) {
  .setup-logo-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.setup-logo-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  cursor: pointer;
  font-size: var(--font-size-3xs);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}
.setup-logo-option:hover {
  border-color: var(--color-accent);
}
.setup-logo-option.is-selected {
  border-color: var(--color-nav-active-bg);
  background-color: var(--color-bg);
}

.os-mobile-tabbar {
  display: none;
}
@media (max-width: 960px) {
  .os-mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    height: 58px;
    background-color: var(--color-sidebar-bg);
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 0 8px;
  }
}
.os-mobile-tabbar .os-tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--font-size-3xs);
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 4px 0;
}
.os-mobile-tabbar .os-tab-link.is-active {
  color: var(--color-tile-icon);
}

.info-box-toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #ffffff;
  background-color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.info-box-toast.is-success {
  background-color: #059669;
}
.info-box-toast.is-error {
  background-color: #e11d48;
}

#footerBox {
  margin-top: auto;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
#footerBox .lp-footer-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
}
#footerBox .lp-footer-link:hover {
  color: var(--color-text);
}

.tablet-bezel-shell,
.tv-wallboard-shell {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  margin-bottom: 12px;
  background: linear-gradient(145deg, #7c583c 0%, #3d2819 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.28);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}
.tablet-bezel-shell.frame-schwarz,
.tv-wallboard-shell.frame-schwarz {
  background: linear-gradient(145deg, #262629 0%, #111113 100%);
}
.tablet-bezel-shell.frame-anthrazit,
.tv-wallboard-shell.frame-anthrazit {
  background: linear-gradient(145deg, #474b52 0%, #26292e 100%);
}
.tablet-bezel-shell.frame-silber,
.tv-wallboard-shell.frame-silber {
  background: linear-gradient(145deg, #d8dce2 0%, #969da8 100%);
}
.tablet-bezel-shell.frame-bronze,
.tv-wallboard-shell.frame-bronze {
  background: linear-gradient(145deg, #7c583c 0%, #3d2819 100%);
}
.tablet-bezel-shell.frame-beige,
.tv-wallboard-shell.frame-beige {
  background: linear-gradient(145deg, #dfd3c0 0%, #b8a68e 100%);
}

.tv-wallboard-shell {
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(145deg, #262629 0%, #111113 100%);
}

.tablet-screen-inner,
.tv-screen-inner {
  background: radial-gradient(circle at 16% 0%, rgba(212, 163, 89, 0.14) 0%, transparent 48%), radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.08) 0%, transparent 42%), linear-gradient(180deg, #1d1510 0%, #110c09 100%);
  color: #fbf6ee;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(212, 163, 89, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (max-width: 640px) {
  .tablet-screen-inner,
  .tv-screen-inner {
    padding: 12px;
  }
}
.tablet-screen-inner.is-daylight-surface,
.tv-screen-inner.is-daylight-surface {
  background: radial-gradient(circle at 18% 0%, rgba(223, 186, 120, 0.18) 0%, transparent 50%), linear-gradient(180deg, #f9f6f0 0%, #f3ede2 100%);
  color: #1e140d;
  border-color: rgba(110, 90, 71, 0.28);
}
.tablet-screen-inner.is-daylight-surface .tablet-statusbar,
.tablet-screen-inner.is-daylight-surface .tv-statusbar,
.tv-screen-inner.is-daylight-surface .tablet-statusbar,
.tv-screen-inner.is-daylight-surface .tv-statusbar {
  color: #6e5a47;
  border-bottom-color: rgba(110, 90, 71, 0.16);
}
.tablet-screen-inner.is-daylight-surface .tablet-horse-header,
.tv-screen-inner.is-daylight-surface .tablet-horse-header {
  border-bottom-color: rgba(110, 90, 71, 0.16);
}
.tablet-screen-inner.is-daylight-surface .tablet-horse-header .tablet-horse-meta h2,
.tv-screen-inner.is-daylight-surface .tablet-horse-header .tablet-horse-meta h2 {
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .tablet-horse-header .tablet-horse-pedigree,
.tv-screen-inner.is-daylight-surface .tablet-horse-header .tablet-horse-pedigree {
  color: #6e5a47;
}
.tablet-screen-inner.is-daylight-surface .tablet-vital-chip,
.tv-screen-inner.is-daylight-surface .tablet-vital-chip {
  background-color: rgba(110, 90, 71, 0.08);
  border-color: rgba(110, 90, 71, 0.2);
  color: #2c221a;
}
.tablet-screen-inner.is-daylight-surface .tablet-location-pills,
.tv-screen-inner.is-daylight-surface .tablet-location-pills {
  background-color: rgba(110, 90, 71, 0.08);
  border-color: rgba(110, 90, 71, 0.2);
}
.tablet-screen-inner.is-daylight-surface .tablet-loc-pill,
.tv-screen-inner.is-daylight-surface .tablet-loc-pill {
  color: #2c221a;
}
.tablet-screen-inner.is-daylight-surface .tablet-loc-pill.is-active,
.tv-screen-inner.is-daylight-surface .tablet-loc-pill.is-active {
  background-color: #2c221a;
  color: #f9f6f0;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile,
.tv-screen-inner.is-daylight-surface .tablet-os-tile {
  background-color: rgba(255, 255, 255, 0.78);
  border-color: rgba(110, 90, 71, 0.2);
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile .tablet-tile-sub,
.tv-screen-inner.is-daylight-surface .tablet-os-tile .tablet-tile-sub {
  color: #6e5a47;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile:hover, .tablet-screen-inner.is-daylight-surface .tablet-os-tile.is-active,
.tv-screen-inner.is-daylight-surface .tablet-os-tile:hover,
.tv-screen-inner.is-daylight-surface .tablet-os-tile.is-active {
  background-color: #ffffff;
  border-color: #b8843b;
}
.tablet-screen-inner.is-daylight-surface .dash-panel,
.tv-screen-inner.is-daylight-surface .dash-panel {
  background-color: rgba(255, 255, 255, 0.84);
  border-color: rgba(110, 90, 71, 0.18);
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .dash-panel .detail-panel-head,
.tv-screen-inner.is-daylight-surface .dash-panel .detail-panel-head {
  border-bottom-color: rgba(110, 90, 71, 0.14);
}
.tablet-screen-inner.is-daylight-surface .dash-panel .detail-panel-head .panel-title-wrap h2,
.tv-screen-inner.is-daylight-surface .dash-panel .detail-panel-head .panel-title-wrap h2 {
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .dash-panel .flat-row,
.tv-screen-inner.is-daylight-surface .dash-panel .flat-row {
  border-bottom-color: rgba(110, 90, 71, 0.12);
}
.tablet-screen-inner.is-daylight-surface .dash-panel .row-title,
.tv-screen-inner.is-daylight-surface .dash-panel .row-title {
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .dash-panel .row-sub,
.tv-screen-inner.is-daylight-surface .dash-panel .row-sub {
  color: #6e5a47;
}
.tablet-screen-inner.is-daylight-surface .dash-panel .badge-count,
.tv-screen-inner.is-daylight-surface .dash-panel .badge-count {
  background-color: rgba(110, 90, 71, 0.08);
  color: #2c221a;
  border-color: rgba(110, 90, 71, 0.2);
}
.tablet-screen-inner.is-daylight-surface .tv-top-banner,
.tv-screen-inner.is-daylight-surface .tv-top-banner {
  background-color: rgba(255, 255, 255, 0.86);
  border-color: rgba(110, 90, 71, 0.2);
}
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-greeting-col h2,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-weather-temp,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-blanket-title,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-greeting-col h2,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-weather-temp,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-blanket-title {
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-greeting-col p,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-weather-sub,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-blanket-sub,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-greeting-col p,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-weather-sub,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-blanket-sub {
  color: #6e5a47;
}
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-weather-widget,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .tv-blanket-widget,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-weather-widget,
.tv-screen-inner.is-daylight-surface .tv-top-banner .tv-blanket-widget {
  border-left-color: rgba(110, 90, 71, 0.16);
}
.tablet-screen-inner.is-daylight-surface .tv-time-pill,
.tv-screen-inner.is-daylight-surface .tv-time-pill {
  background-color: rgba(110, 90, 71, 0.1);
  color: #1e140d;
  border-color: rgba(110, 90, 71, 0.22);
}
.tablet-screen-inner.is-daylight-surface .tv-staff-pill,
.tv-screen-inner.is-daylight-surface .tv-staff-pill {
  background-color: rgba(110, 90, 71, 0.12);
  color: #1e140d;
  border-color: rgba(110, 90, 71, 0.24);
}
.tablet-screen-inner.is-daylight-surface .tv-arena-slot .tv-slot-title,
.tv-screen-inner.is-daylight-surface .tv-arena-slot .tv-slot-title {
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .tv-arena-slot .tv-slot-time,
.tablet-screen-inner.is-daylight-surface .tv-arena-slot .tv-slot-meta,
.tv-screen-inner.is-daylight-surface .tv-arena-slot .tv-slot-time,
.tv-screen-inner.is-daylight-surface .tv-arena-slot .tv-slot-meta {
  color: #6e5a47;
}
.tablet-screen-inner .dash-panel,
.tv-screen-inner .dash-panel {
  background-color: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 163, 89, 0.24);
  border-radius: 16px;
  padding: var(--card-padding);
  color: #fbf6ee;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
}
.tablet-screen-inner .dash-panel .detail-panel-head,
.tv-screen-inner .dash-panel .detail-panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.tablet-screen-inner .dash-panel .detail-panel-head .panel-title-wrap .svg-icon,
.tv-screen-inner .dash-panel .detail-panel-head .panel-title-wrap .svg-icon {
  color: #dfba78;
}
.tablet-screen-inner .dash-panel .detail-panel-head .panel-title-wrap h2,
.tablet-screen-inner .dash-panel .detail-panel-head .panel-title-wrap h3,
.tv-screen-inner .dash-panel .detail-panel-head .panel-title-wrap h2,
.tv-screen-inner .dash-panel .detail-panel-head .panel-title-wrap h3 {
  color: #fbf6ee;
  font-size: var(--font-size-base);
  margin: 0;
}
.tablet-screen-inner .dash-panel .flat-row,
.tv-screen-inner .dash-panel .flat-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}
.tablet-screen-inner .dash-panel .row-title,
.tablet-screen-inner .dash-panel .row-title strong,
.tv-screen-inner .dash-panel .row-title,
.tv-screen-inner .dash-panel .row-title strong {
  color: #fbf6ee;
}
.tablet-screen-inner .dash-panel .row-sub,
.tv-screen-inner .dash-panel .row-sub {
  color: rgba(251, 246, 238, 0.84);
}
.tablet-screen-inner .dash-panel .row-sub strong,
.tv-screen-inner .dash-panel .row-sub strong {
  color: #ebd09e;
}
.tablet-screen-inner .dash-panel .btn-secondary,
.tv-screen-inner .dash-panel .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fbf6ee;
  border-color: rgba(223, 186, 120, 0.42);
}
.tablet-screen-inner .dash-panel .btn-secondary:hover:not(:disabled),
.tv-screen-inner .dash-panel .btn-secondary:hover:not(:disabled) {
  background-color: #dfba78;
  color: #140c07;
  border-color: #ebd09e;
}
.tablet-screen-inner .dash-panel .badge-count,
.tv-screen-inner .dash-panel .badge-count {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fbf6ee;
  border-color: rgba(255, 255, 255, 0.18);
}
.tablet-screen-inner .dash-panel .horse-filter-pill,
.tv-screen-inner .dash-panel .horse-filter-pill {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(251, 246, 238, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}
.tablet-screen-inner .dash-panel .horse-filter-pill:hover:not(:disabled),
.tv-screen-inner .dash-panel .horse-filter-pill:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(223, 186, 120, 0.5);
}
.tablet-screen-inner .dash-panel .horse-filter-pill.is-active,
.tv-screen-inner .dash-panel .horse-filter-pill.is-active {
  background-color: #d4a359;
  color: #140c07;
  border-color: #dfba78;
}
.tablet-screen-inner .dash-panel .horse-filter-pill.is-active:hover:not(:disabled),
.tv-screen-inner .dash-panel .horse-filter-pill.is-active:hover:not(:disabled) {
  background-color: #dfba78;
  color: #140c07;
  border-color: #ebd09e;
}
.tablet-screen-inner .dash-panel .form-control,
.tv-screen-inner .dash-panel .form-control {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fbf6ee;
}
.tablet-screen-inner .dash-panel .form-control::placeholder,
.tv-screen-inner .dash-panel .form-control::placeholder {
  color: rgba(251, 246, 238, 0.52);
}
.tablet-screen-inner .dash-panel .form-label,
.tv-screen-inner .dash-panel .form-label {
  color: #e8dccb;
}

.tablet-statusbar,
.tv-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(251, 246, 238, 0.76);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.18);
}
.tablet-statusbar .tablet-status-left,
.tablet-statusbar .tablet-status-center,
.tablet-statusbar .tablet-status-right,
.tv-statusbar .tablet-status-left,
.tv-statusbar .tablet-status-center,
.tv-statusbar .tablet-status-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tablet-statusbar .tablet-camera-dot,
.tv-statusbar .tablet-camera-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.kiosk-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #34d399;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kiosk-live-badge .kiosk-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
}

.tablet-horse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.16);
}
.tablet-horse-header .tablet-horse-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tablet-horse-header .tablet-horse-portrait-wrap {
  position: relative;
  flex-shrink: 0;
}
.tablet-horse-header .tablet-horse-portrait {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #d4a359;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.35);
  flex-shrink: 0;
}
.tablet-horse-header .tablet-box-tag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 9px;
  border-radius: 9999px;
  background-color: #d4a359;
  color: #140c07;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}
.tablet-horse-header .tablet-horse-meta {
  min-width: 0;
}
.tablet-horse-header .tablet-horse-meta .tablet-horse-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3px;
}
.tablet-horse-header .tablet-horse-meta h2 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: #fbf6ee;
  margin: 0;
  line-height: 1.1;
}
.tablet-horse-header .tablet-horse-meta .tablet-horse-pedigree {
  font-size: var(--font-size-xs);
  color: rgba(251, 246, 238, 0.82);
  margin: 0 0 8px 0;
}
.tablet-horse-header .tablet-horse-meta .tablet-horse-pedigree strong {
  color: #ebd09e;
}
.tablet-horse-header .tablet-horse-meta .tablet-status-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.38);
  font-size: var(--font-size-2xs);
  font-weight: 800;
  color: #34d399;
  text-box: trim-both cap alphabetic;
}
.tablet-horse-header .tablet-horse-meta .tablet-status-row .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
}
.tablet-horse-header .tablet-vital-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tablet-horse-header .tablet-vital-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: var(--font-size-2xs);
  font-weight: 600;
  color: #e8dccb;
}
.tablet-horse-header .tablet-vital-chip .svg-icon {
  color: #dfba78;
}
.tablet-horse-header .tablet-location-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
@media (max-width: 768px) {
  .tablet-horse-header .tablet-location-block {
    align-items: flex-start;
    width: 100%;
  }
}
.tablet-horse-header .tablet-control-caption {
  font-size: var(--font-size-3xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(251, 246, 238, 0.6);
}
.tablet-horse-header .tablet-location-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 163, 89, 0.24);
}
.tablet-horse-header .tablet-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(251, 246, 238, 0.88);
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.tablet-horse-header .tablet-loc-pill:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}
.tablet-horse-header .tablet-loc-pill.is-active, .tablet-horse-header .tablet-loc-pill.btn-primary {
  background: linear-gradient(145deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.38);
}
.tablet-horse-header .tablet-loc-pill.is-active:hover:not(:disabled), .tablet-horse-header .tablet-loc-pill.btn-primary:hover:not(:disabled) {
  background: linear-gradient(145deg, #059669 0%, #065f46 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.tablet-os-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 820px) {
  .tablet-os-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tablet-os-tile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 163, 89, 0.22);
  color: #fbf6ee;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.tablet-os-tile .ios-app-squircle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}
.tablet-os-tile .tablet-tile-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tablet-os-tile .tablet-tile-title {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: inherit;
  line-height: 1.2;
}
.tablet-os-tile .tablet-tile-sub {
  font-size: var(--font-size-3xs);
  font-weight: 600;
  color: rgba(251, 246, 238, 0.64);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tablet-os-tile:hover {
  background-color: rgba(212, 163, 89, 0.14);
  border-color: rgba(223, 186, 120, 0.55);
  transform: translateY(-1px);
}
.tablet-os-tile.is-active {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.28) 0%, rgba(184, 132, 59, 0.16) 100%);
  border-color: #dfba78;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.24);
}

.tv-top-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(212, 163, 89, 0.24);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .tv-top-banner {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tv-top-banner .tv-greeting-col h2 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: #fbf6ee;
  margin: 0 0 4px 0;
  line-height: 1.12;
}
.tv-top-banner .tv-greeting-col p {
  font-size: var(--font-size-xs);
  color: rgba(251, 246, 238, 0.78);
  margin: 0;
}
.tv-top-banner .tv-greeting-col p strong {
  color: #ebd09e;
}
.tv-top-banner .tv-weather-widget,
.tv-top-banner .tv-blanket-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 960px) {
  .tv-top-banner .tv-weather-widget,
  .tv-top-banner .tv-blanket-widget {
    padding-left: 0;
    padding-top: 8px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
.tv-top-banner .tv-weather-widget .ios-app-squircle,
.tv-top-banner .tv-blanket-widget .ios-app-squircle {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.tv-top-banner .tv-weather-temp,
.tv-top-banner .tv-blanket-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: #fbf6ee;
  margin-bottom: 2px;
}
.tv-top-banner .tv-weather-sub,
.tv-top-banner .tv-blanket-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--font-size-2xs);
  color: rgba(251, 246, 238, 0.72);
}

.tv-main-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.tv-main-columns > .dash-panel {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .tv-main-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tv-right-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tv-right-stack > .dash-panel {
  margin-bottom: 0;
}

.tv-time-pill {
  font-size: var(--font-size-xs);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ebd09e;
  background-color: rgba(212, 163, 89, 0.14);
  border: 1px solid rgba(223, 186, 120, 0.34);
  padding: 5px 10px;
  border-radius: 8px;
  min-width: 58px;
  text-align: center;
  flex-shrink: 0;
}

.tv-staff-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fbf6ee;
  font-size: var(--font-size-2xs);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-box: trim-both cap alphabetic;
}

.tv-check-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(251, 246, 238, 0.75);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.14s ease;
}
.tv-check-btn:hover {
  background-color: rgba(16, 185, 129, 0.24);
  border-color: #34d399;
  color: #ffffff;
  transform: scale(1.05);
}
.tv-check-btn.is-checked {
  background-color: #10b981;
  border-color: #34d399;
  color: #ffffff;
}

.tv-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 7px;
  border-radius: 8px;
  background-color: rgba(212, 163, 89, 0.14);
  border: 1px solid rgba(223, 186, 120, 0.32);
  color: #ebd09e;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  flex-shrink: 0;
}

.tv-arena-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 600px) {
  .tv-arena-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tv-arena-slot {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left-width: 4px;
  transition: transform 0.15s ease;
}
.tv-arena-slot:hover {
  transform: translateY(-1px);
}
.tv-arena-slot .tv-slot-time {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: rgba(251, 246, 238, 0.74);
  margin-bottom: 3px;
}
.tv-arena-slot .tv-slot-title {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: #fbf6ee;
  margin-bottom: 2px;
}
.tv-arena-slot .tv-slot-meta {
  font-size: var(--font-size-3xs);
  color: rgba(251, 246, 238, 0.62);
}
.tv-arena-slot.is-lilac {
  background-color: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.34);
  border-left-color: #8b5cf6;
}
.tv-arena-slot.is-sand {
  background-color: rgba(217, 119, 6, 0.16);
  border-color: rgba(245, 158, 11, 0.36);
  border-left-color: #f59e0b;
}
.tv-arena-slot.is-sky {
  background-color: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.36);
  border-left-color: #38bdf8;
}
.tv-arena-slot.is-emerald {
  background-color: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.36);
  border-left-color: #34d399;
}
.tv-arena-slot.is-rose {
  background-color: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.36);
  border-left-color: #f43f5e;
}

body.is-kiosk-fullscreen #headerBox.os-sidebar,
body.is-kiosk-fullscreen .os-mobile-subpage-bar,
body.is-kiosk-fullscreen .os-mobile-dock,
body.is-kiosk-fullscreen .os-mobile-tabbar,
body.is-kiosk-fullscreen #footerBox {
  display: none;
}
body.is-kiosk-fullscreen .os-shell {
  grid-template-columns: minmax(0, 1fr);
}
body.is-kiosk-fullscreen .maxw-site {
  max-width: 100%;
}

.mail-template-pills {
  margin-bottom: 12px;
}

.mail-subject-bar {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  padding: 8px 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.mail-subject-bar strong {
  color: var(--color-text);
}

.mail-preview-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.mail-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background-color: #231710;
  color: #f7f1e6;
}
.mail-preview-header .mail-preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mail-preview-header .mail-preview-title {
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.mail-preview-header .mail-preview-sub {
  font-size: var(--font-size-3xs);
  color: rgba(247, 241, 230, 0.72);
  letter-spacing: 0.08em;
}

.mail-preview-body {
  padding: 12px;
}
.mail-preview-body h3 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
}
.mail-preview-body p {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.mail-kv-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  border-top: 1px solid var(--color-border);
}

.mail-kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
}
.mail-kv-row .mail-kv-key {
  color: var(--color-text-muted);
}
.mail-kv-row .mail-kv-val {
  color: var(--color-text);
  text-align: right;
}

.mail-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
}

.mail-send-box {
  margin-bottom: 12px;
}

.horse-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.dashboard-columns > .dash-panel {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.setup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.setup-form-grid > .form-group,
.setup-form-grid > .horse-form-field {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .setup-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.setup-wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.ios-subpage-statusbar {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px 5px 11px;
  border-radius: 9999px;
  background-color: rgba(31, 22, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  color: #f8f1e5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}
@media (max-width: 960px) {
  .ios-subpage-statusbar {
    display: none;
  }
}
.ios-subpage-statusbar .ios-statusbar-weather,
.ios-subpage-statusbar .ios-status-weather {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 0 4px;
  color: #f8f1e5;
}
.ios-subpage-statusbar .ios-statusbar-weather .svg-icon,
.ios-subpage-statusbar .ios-status-weather .svg-icon {
  color: #dfba78;
}
.ios-subpage-statusbar .ios-statusbar-bell,
.ios-subpage-statusbar .os-bell-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.ios-subpage-statusbar .ios-statusbar-bell:hover,
.ios-subpage-statusbar .os-bell-btn:hover {
  background-color: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}
.ios-subpage-statusbar .ios-statusbar-bell .bell-badge,
.ios-subpage-statusbar .os-bell-btn .bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ios-subpage-statusbar .ios-statusbar-bell .bell-dot,
.ios-subpage-statusbar .os-bell-btn .bell-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #f43f5e;
  border: 1.5px solid #1f1610;
}
.ios-subpage-statusbar .ios-statusbar-avatar,
.ios-subpage-statusbar .os-avatar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  font-size: var(--font-size-2xs);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  background-color: rgba(223, 186, 120, 0.24);
  border: 1.5px solid rgba(223, 186, 120, 0.55);
  color: #fff6e6;
  text-box: trim-both cap alphabetic;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.ios-subpage-statusbar .ios-statusbar-avatar:hover,
.ios-subpage-statusbar .os-avatar-pill:hover {
  background-color: rgba(223, 186, 120, 0.36);
  border-color: rgba(223, 186, 120, 0.85);
  transform: scale(1.04);
}

.os-hero-stage ~ .ios-subpage-statusbar {
  display: none;
}

.ios-notification-center {
  position: fixed;
  top: 58px;
  right: 16px;
  z-index: 1250;
  width: min(390px, 100vw - 24px);
  max-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(34, 24, 17, 0.88) 0%, rgba(20, 14, 10, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  color: #f9f3e8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(26px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.ios-notification-center.is-from-sidebar {
  top: 14px;
  left: calc(232px + 12px);
  right: auto;
  transform: translateX(-18px) scale(0.97);
}
@media (max-width: 960px) {
  .ios-notification-center.is-from-sidebar {
    left: 12px;
    top: 58px;
  }
}
.ios-notification-center.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.ios-nc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.ios-nc-header .ios-nc-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ios-nc-header .ios-nc-heading,
.ios-nc-header .ios-nc-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}
.ios-nc-header .ios-nc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  background-color: rgba(223, 186, 120, 0.25);
  color: #dfba78;
  border: 1px solid rgba(223, 186, 120, 0.4);
}
.ios-nc-header .ios-nc-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ios-nc-header .ios-nc-pill-btn,
.ios-nc-header .ios-nc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: #f9f3e8;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ios-nc-header .ios-nc-pill-btn:hover,
.ios-nc-header .ios-nc-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.ios-nc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.ios-nc-card {
  position: relative;
  display: block;
  padding: 12px 14px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  color: #f9f3e8;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.ios-nc-card:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(223, 186, 120, 0.45);
}
.ios-nc-card .ios-nc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ios-nc-card .ios-nc-app,
.ios-nc-card .ios-nc-app-meta,
.ios-nc-card .ios-nc-app-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(249, 243, 232, 0.85);
}
.ios-nc-card .ios-nc-time-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ios-nc-card .ios-nc-time {
  font-size: var(--font-size-3xs);
  color: rgba(249, 243, 232, 0.65);
}
.ios-nc-card .ios-nc-dismiss {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ios-nc-card .ios-nc-dismiss:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.ios-nc-card .ios-nc-card-body {
  display: block;
  font-size: var(--font-size-xs);
  color: rgba(249, 243, 232, 0.88);
  line-height: 1.38;
  text-decoration: none;
}
.ios-nc-card .ios-nc-card-title {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
}
.ios-nc-card .ios-nc-card-text {
  font-size: var(--font-size-xs);
  color: rgba(249, 243, 232, 0.84);
  margin: 0 0 6px 0;
  line-height: 1.38;
}
.ios-nc-card .ios-nc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: #dfba78;
}

.ios-app-squircle,
.ios-push-squircle {
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-tile-icon);
  background: transparent;
  flex-shrink: 0;
}
.ios-app-squircle.is-gold, .ios-app-squircle.is-emerald, .ios-app-squircle.is-amber, .ios-app-squircle.is-sky, .ios-app-squircle.is-rose,
.ios-push-squircle.is-gold,
.ios-push-squircle.is-emerald,
.ios-push-squircle.is-amber,
.ios-push-squircle.is-sky,
.ios-push-squircle.is-rose {
  background: transparent;
  color: var(--color-tile-icon);
}

.ios-nc-card .ios-app-squircle,
.ios-push-banner .ios-push-squircle {
  color: #ebd09e;
}

.tablet-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle,
.tablet-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle,
.tv-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle,
.tv-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(212, 163, 89, 0.2);
  border: 1px solid rgba(235, 208, 158, 0.42);
  color: #ebd09e;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}
.tablet-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-gold,
.tablet-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-gold,
.tv-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-gold,
.tv-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-gold {
  background-color: rgba(212, 163, 89, 0.22);
  border-color: rgba(235, 208, 158, 0.48);
  color: #ebd09e;
}
.tablet-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-amber,
.tablet-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-amber,
.tv-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-amber,
.tv-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-amber {
  background-color: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.48);
  color: #fde68a;
}
.tablet-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-sky,
.tablet-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-sky,
.tv-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-sky,
.tv-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-sky {
  background-color: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.48);
  color: #bae6fd;
}
.tablet-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-emerald,
.tablet-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-emerald,
.tv-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-emerald,
.tv-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-emerald {
  background-color: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.48);
  color: #a7f3d0;
}
.tablet-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-rose,
.tablet-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-rose,
.tv-screen-inner:not(.is-daylight-surface) .tablet-os-tile .ios-app-squircle.is-rose,
.tv-screen-inner:not(.is-daylight-surface) .tv-top-banner .ios-app-squircle.is-rose {
  background-color: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.48);
  color: #fecdd3;
}
.tablet-screen-inner:not(.is-daylight-surface) .tablet-os-tile.is-active .ios-app-squircle,
.tv-screen-inner:not(.is-daylight-surface) .tablet-os-tile.is-active .ios-app-squircle {
  background-color: #dfba78;
  border-color: #ebd09e;
  color: #140c07;
}
.tablet-screen-inner:not(.is-daylight-surface) .dash-panel .row-title .svg-icon,
.tv-screen-inner:not(.is-daylight-surface) .dash-panel .row-title .svg-icon {
  color: #ebd09e;
}

.tablet-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle,
.tv-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle,
.tv-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(110, 90, 71, 0.12);
  border: 1px solid rgba(110, 90, 71, 0.26);
  color: #1e140d;
  box-shadow: none;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-gold,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-gold,
.tv-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-gold,
.tv-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-gold {
  background-color: rgba(212, 163, 89, 0.2);
  border-color: rgba(110, 90, 71, 0.32);
  color: #1e140d;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-amber,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-amber,
.tv-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-amber,
.tv-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-amber {
  background-color: rgba(245, 158, 11, 0.18);
  border-color: rgba(217, 119, 6, 0.32);
  color: #b45309;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-sky,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-sky,
.tv-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-sky,
.tv-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-sky {
  background-color: rgba(14, 165, 233, 0.16);
  border-color: rgba(37, 99, 235, 0.32);
  color: #1d4ed8;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-emerald,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-emerald,
.tv-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-emerald,
.tv-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-emerald {
  background-color: rgba(16, 185, 129, 0.16);
  border-color: rgba(5, 150, 105, 0.32);
  color: #065f46;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-rose,
.tablet-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-rose,
.tv-screen-inner.is-daylight-surface .tablet-os-tile .ios-app-squircle.is-rose,
.tv-screen-inner.is-daylight-surface .tv-top-banner .ios-app-squircle.is-rose {
  background-color: rgba(244, 63, 94, 0.16);
  border-color: rgba(225, 29, 72, 0.32);
  color: #e11d48;
}
.tablet-screen-inner.is-daylight-surface .tablet-os-tile.is-active .ios-app-squircle,
.tv-screen-inner.is-daylight-surface .tablet-os-tile.is-active .ios-app-squircle {
  background-color: #2c221a;
  border-color: #2c221a;
  color: #f9f6f0;
}
.tablet-screen-inner.is-daylight-surface .dash-panel .detail-panel-head .panel-title-wrap .svg-icon,
.tablet-screen-inner.is-daylight-surface .dash-panel .row-title .svg-icon,
.tv-screen-inner.is-daylight-surface .dash-panel .detail-panel-head .panel-title-wrap .svg-icon,
.tv-screen-inner.is-daylight-surface .dash-panel .row-title .svg-icon {
  color: #2c221a;
}

.ios-nc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--font-size-3xs);
  color: rgba(249, 243, 232, 0.7);
}
.ios-nc-footer a {
  color: #dfba78;
  font-weight: 700;
}

.ios-nc-empty {
  padding: 12px;
  text-align: center;
  font-size: var(--font-size-xs);
  color: rgba(249, 243, 232, 0.65);
}

.ios-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1260;
  width: min(410px, 100vw - 24px);
  max-height: min(440px, 100vh - 110px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 13px 14px;
  background: linear-gradient(165deg, rgba(34, 24, 17, 0.9) 0%, rgba(20, 14, 10, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.44);
  color: #f9f3e8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.ios-search-suggest.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.ios-search-suggest .ios-search-header {
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.ios-search-suggest .ios-search-header .ios-nc-heading {
  font-size: var(--font-size-sm);
  letter-spacing: 0.01em;
}
.ios-search-suggest .ios-search-hint {
  font-size: var(--font-size-3xs);
  font-weight: 700;
  color: rgba(249, 243, 232, 0.58);
  padding: 2px 7px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ios-search-suggest .ios-search-list {
  gap: 7px;
}
.ios-search-suggest .ios-search-card {
  padding: 9px 12px;
  border-radius: 15px;
  cursor: pointer;
}
.ios-search-suggest .ios-search-card.is-active, .ios-search-suggest .ios-search-card:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.17);
  border-color: rgba(223, 186, 120, 0.55);
}
.ios-search-suggest .ios-search-card .ios-nc-card-top {
  margin-bottom: 3px;
}
.ios-search-suggest .ios-search-card .ios-nc-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ios-search-suggest .ios-search-card .ios-search-card-main {
  min-width: 0;
  flex: 1 1 auto;
}
.ios-search-suggest .ios-search-card .ios-nc-card-title {
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ios-search-suggest .ios-search-card .ios-nc-card-text {
  margin-bottom: 0;
  font-size: var(--font-size-2xs);
  color: rgba(249, 243, 232, 0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ios-search-suggest .ios-search-card .ios-nc-card-cta {
  flex-shrink: 0;
}
.ios-search-suggest .ios-search-mark {
  background-color: rgba(223, 186, 120, 0.28);
  color: #fff8eb;
  padding: 0 3px;
  border-radius: 4px;
  font-weight: 800;
}

.ios-banner-stack {
  position: fixed;
  top: 14px;
  right: 16px;
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 1400;
  width: min(370px, 100vw - 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.ios-push-banner {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(34, 24, 17, 0.92) 0%, rgba(20, 14, 10, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.38);
  color: #f9f3e8;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.ios-push-banner.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}
.ios-push-banner .ios-push-content {
  flex: 1;
  min-width: 0;
}
.ios-push-banner .ios-push-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}
.ios-push-banner .ios-push-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #dfba78;
}
.ios-push-banner .ios-push-time,
.ios-push-banner .ios-push-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-3xs);
  color: rgba(249, 243, 232, 0.68);
}
.ios-push-banner .ios-push-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.ios-push-banner .ios-push-close:hover {
  background-color: rgba(255, 255, 255, 0.24);
}
.ios-push-banner .ios-push-title {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}
.ios-push-banner .ios-push-msg,
.ios-push-banner .ios-push-body {
  font-size: var(--font-size-xs);
  color: rgba(249, 243, 232, 0.88);
  line-height: 1.35;
}

.horse-circle-portrait-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: fit-content;
  aspect-ratio: 1/1;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.horse-circle-portrait-btn:hover, .horse-circle-portrait-btn:focus-visible {
  border-color: var(--color-accent);
  transform: scale(1.03);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  outline: none;
}
.horse-circle-portrait-btn .horse-circle-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4a3a2c;
}
.horse-circle-portrait-btn .horse-circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.horse-circle-portrait-btn .horse-circle-health {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #10b981;
  border: 2.5px solid var(--color-surface);
}
.horse-circle-portrait-btn .horse-circle-health.is-amber {
  background-color: #f59e0b;
}
.horse-circle-portrait-btn .horse-circle-box-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 9999px;
  background-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
  font-size: var(--font-size-2xs);
  font-weight: 800;
  white-space: nowrap;
  border: 1.5px solid var(--color-surface);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

.horse-circle-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-bottom: auto;
  padding-bottom: 10px;
}
.horse-circle-head .horse-circle-name {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 2px 0 0;
  line-height: 1.2;
}
.horse-circle-head .horse-circle-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.35;
}
.horse-circle-head .horse-circle-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.horse-circle-metrics {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  margin: 8px 0 12px;
  padding-top: 8px;
}
.horse-circle-metrics .horse-metric-cell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.horse-circle-metrics .horse-metric-cell:last-child {
  border-bottom: none;
}
.horse-circle-metrics .horse-metric-label {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.horse-circle-metrics .horse-metric-val {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horse-circle-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.horse-settings-dialog {
  width: min(640px, 100vw - 24px);
}
.horse-settings-dialog .horse-modal-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.horse-settings-dialog .horse-modal-identity .horse-avatar-circle {
  width: 48px;
  height: 48px;
}
.horse-settings-dialog .horse-status-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.horse-settings-dialog .horse-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}
.horse-settings-dialog .form-control + .horse-preset-chips {
  margin-top: 6px;
}

.settings-simple-page {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-simple-page > .os-hero-banner,
.settings-simple-page > .page-hero,
.settings-simple-page > .os-unified-toolbar,
.settings-simple-page > .dash-panel,
.settings-simple-page > .section-spacer {
  margin-bottom: 0;
}

.settings-master-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.settings-flat-section {
  margin-bottom: 0;
  width: 100%;
}

.theme-circle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
}
@media (max-width: 560px) {
  .theme-circle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.theme-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.16s ease;
}
.theme-circle-item:hover {
  transform: translateY(-2px);
}
.theme-circle-item:hover .theme-circle-ring {
  border-color: var(--color-accent);
}
.theme-circle-item .theme-circle-ring {
  position: relative;
  width: 60px;
  height: 60px;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.theme-circle-item .theme-circle-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.16);
}
.theme-circle-item .theme-circle-orb .theme-circle-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}
.theme-circle-item .theme-circle-orb.preview-auto {
  background: conic-gradient(from 210deg, #f3ede2 0deg 120deg, #2c221a 120deg 240deg, #0e1f36 240deg 360deg);
}
.theme-circle-item .theme-circle-orb.preview-auto .theme-circle-dot {
  background-color: #dfba78;
}
.theme-circle-item .theme-circle-orb.preview-morning {
  background: linear-gradient(135deg, #f9f6f0 0%, #e9e1d2 55%, #6e5a47 100%);
}
.theme-circle-item .theme-circle-orb.preview-morning .theme-circle-dot {
  background-color: #6e5a47;
}
.theme-circle-item .theme-circle-orb.preview-afternoon {
  background: linear-gradient(135deg, #140c07 0%, #2c221a 60%, #d4a359 100%);
}
.theme-circle-item .theme-circle-orb.preview-afternoon .theme-circle-dot {
  background-color: #dfba78;
}
.theme-circle-item .theme-circle-orb.preview-evening {
  background: linear-gradient(135deg, #081322 0%, #162d4c 65%, #4472a5 100%);
}
.theme-circle-item .theme-circle-orb.preview-evening .theme-circle-dot {
  background-color: #ebd09e;
}
.theme-circle-item .theme-circle-orb.preview-clean {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%);
}
.theme-circle-item .theme-circle-orb.preview-clean .theme-circle-dot {
  background-color: #059669;
}
.theme-circle-item .theme-circle-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #059669;
  color: #ffffff;
  border: 2px solid var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.theme-circle-item .theme-circle-label {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  white-space: nowrap;
}
.theme-circle-item .theme-circle-sub {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  line-height: 1.15;
  white-space: nowrap;
}
.theme-circle-item.is-selected {
  background: transparent;
  border: 0;
}
.theme-circle-item.is-selected .theme-circle-ring {
  border-color: var(--color-nav-active-bg);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  transform: scale(1.06);
}
.theme-circle-item.is-selected .theme-circle-check {
  opacity: 1;
  transform: scale(1);
}

.settings-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.settings-list-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.settings-list-row.settings-row-top-border {
  border-top: 1px solid var(--color-border);
  padding-bottom: 2px;
}
.settings-list-row.settings-single-row {
  padding: 4px 0;
  border-bottom: none;
}
.settings-list-row.settings-save-row {
  padding-top: 14px;
  padding-bottom: 2px;
  border-bottom: none;
}

.settings-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  flex: 1 1 220px;
  cursor: pointer;
}
.settings-row-info .settings-row-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.settings-row-info .settings-row-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

.settings-row-control {
  width: clamp(280px, 46%, 560px);
  flex: 0 1 560px;
}
@media (max-width: 720px) {
  .settings-row-control {
    width: 100%;
    flex: 1 1 100%;
  }
}

.settings-control-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 520px) {
  .settings-control-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.settings-inline-field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-inline-field .settings-inline-prefix {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.settings-inline-field .form-control {
  flex: 1;
  min-width: 0;
}

.settings-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  width: 100%;
}
.settings-bottom-bar .settings-bottom-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

.settings-logo-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-logo-select-wrap .settings-logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.settings-logo-select-wrap .form-select {
  flex: 1;
  min-width: 0;
}

.settings-input-sm {
  min-height: 34px;
  height: 34px;
  padding: 5px 10px;
  font-size: var(--font-size-xs);
  border-radius: 8px;
}

.settings-mail-dialog {
  width: min(860px, 100vw - 24px);
}

.settings-mail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}

.settings-mail-pills {
  margin-bottom: 0;
}

.settings-mail-send-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(340px, 100%);
}
.settings-mail-send-inline .form-control {
  flex: 1;
  min-width: 0;
}

.settings-mail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
@media (max-width: 900px) {
  .settings-mail-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.settings-subpanel-head {
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.settings-subpanel-head h3 {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.cal-app-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cal-app-shell > .os-hero-banner,
.cal-app-shell > .page-hero,
.cal-app-shell > .os-unified-toolbar,
.cal-app-shell > .dash-panel,
.cal-app-shell > .section-spacer {
  margin-bottom: 0;
}
.cal-app-shell > .os-bottom-pagination {
  margin-top: 0;
}

.cal-zones-section {
  margin-bottom: 0;
}

.cal-zones-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1120px) {
  .cal-zones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .cal-zones-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cal-zone-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.cal-zone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cal-zone-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cal-zone-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cal-zone-title-group .ios-app-squircle {
  width: auto;
  height: auto;
  border-radius: 0;
}

.cal-zone-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.cal-zone-sub {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  margin: 2px 0 0;
  line-height: 1.2;
}

.cal-zone-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cal-zone-slot-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-zone-slot-label {
  font-size: var(--font-size-3xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.cal-zone-slot-val {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.cal-zone-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.cal-zone-meta {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  line-height: 1.25;
}

.cal-command-panel {
  margin-bottom: 0;
}

.cal-week-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.cal-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cal-active-date-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cal-month-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.cal-selected-date-label {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}

.cal-week-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 640px) {
  .cal-week-strip {
    gap: 4px;
  }
}

.cal-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.cal-day-pill:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.cal-day-pill .cal-day-name {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.cal-day-pill .cal-day-num {
  font-size: var(--font-size-md);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cal-day-pill .cal-day-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}
.cal-day-pill .cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #10b981;
}
.cal-day-pill .cal-dot.is-sky {
  background-color: #0ea5e9;
}
.cal-day-pill .cal-dot.is-amber {
  background-color: #f59e0b;
}
.cal-day-pill .cal-dot.is-rose {
  background-color: #f43f5e;
}
.cal-day-pill.is-active {
  background-color: var(--color-nav-active-bg);
  border-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}
.cal-day-pill.is-active .cal-day-name {
  color: var(--color-nav-active-text);
  opacity: 0.85;
}

.cal-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.cal-filter-bar.task-list-toolbar {
  padding-top: 0;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-top: none;
  border-bottom: 1px solid var(--color-border);
}

.cal-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  background-color: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.cal-search-wrap {
  width: min(290px, 100%);
}

.cal-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-event-card {
  display: grid;
  grid-template-columns: 84px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
@media (max-width: 680px) {
  .cal-event-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
  }
  .cal-event-card .cal-event-avatar-col {
    display: none;
  }
  .cal-event-card .cal-event-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
.cal-event-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.cal-event-card.tone-sky {
  border-left-color: #0ea5e9;
}
.cal-event-card.tone-emerald {
  border-left-color: #10b981;
}
.cal-event-card.tone-amber {
  border-left-color: #f59e0b;
}
.cal-event-card.tone-rose {
  border-left-color: #f43f5e;
}
.cal-event-card.is-done {
  opacity: 0.65;
}

.cal-event-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  padding-right: 8px;
  border-right: 1px solid var(--color-border);
}
.cal-event-time-col .cal-time-start {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
}
.cal-event-time-col .cal-time-end {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  line-height: 1.15;
}
.cal-event-time-col .cal-time-duration {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-3xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.cal-facility-squircle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.cal-event-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cal-event-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cal-event-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
}
.cal-event-title.is-done {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.cal-event-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.cal-event-meta-row strong {
  color: var(--color-text);
}

.cal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cal-meta-note {
  color: var(--color-text-muted);
}

.cal-event-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cal-empty-state {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.cal-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-side-helper {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

.cal-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 560px) {
  .cal-preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cal-preset-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.cal-preset-btn:hover {
  border-color: var(--color-accent);
  background-color: var(--color-surface);
  transform: translateY(-1px);
}
.cal-preset-btn .ios-app-squircle {
  width: auto;
  height: auto;
  border-radius: 0;
}
.cal-preset-btn .cal-preset-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cal-preset-btn .cal-preset-copy strong {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-preset-btn .cal-preset-copy span {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-modal-time-inputs {
  margin-top: 12px;
}

.task-quick-composer {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) minmax(135px, 1fr) minmax(135px, 1fr) minmax(125px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 4px;
}
@media (max-width: 960px) {
  .task-quick-composer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-quick-composer .task-composer-field.is-title {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .task-quick-composer {
    grid-template-columns: minmax(0, 1fr);
  }
}

.task-composer-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.task-composer-action {
  display: flex;
  align-items: center;
}
.task-composer-action .btn-primary {
  min-height: 34px;
  height: 34px;
}

.os-page-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.os-page-stack > .os-hero-banner,
.os-page-stack > .page-hero,
.os-page-stack > .os-unified-toolbar,
.os-page-stack > .box-switcher,
.os-page-stack > .logo-gallery-grid,
.os-page-stack > .tablet-bezel-shell,
.os-page-stack > .tv-wallboard-shell,
.os-page-stack > .dash-panel,
.os-page-stack > .section-spacer {
  margin-bottom: 0;
}
.os-page-stack > .os-bottom-pagination {
  margin-top: 0;
}

.os-unified-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin-bottom: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}

html body [hidden],
html body [hidden][hidden],
html body [hidden][hidden][hidden] {
  display: none;
}

.os-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media (max-width: 860px) {
  .os-toolbar-controls {
    width: 100%;
    margin-left: 0;
  }
}

.os-toolbar-filter,
.os-toolbar-sort {
  display: inline-flex;
  align-items: center;
}
.os-toolbar-filter .os-filter-select,
.os-toolbar-filter .os-sort-select,
.os-toolbar-sort .os-filter-select,
.os-toolbar-sort .os-sort-select {
  width: auto;
  min-height: 36px;
  padding: 5px 30px 5px 14px;
  border-radius: 9999px;
  border: none;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}
.os-toolbar-filter .os-filter-select:focus,
.os-toolbar-filter .os-sort-select:focus,
.os-toolbar-sort .os-filter-select:focus,
.os-toolbar-sort .os-sort-select:focus {
  outline: none;
}

.os-toolbar-gridsize {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: none;
}

.os-gridsize-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-2xs);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.os-gridsize-btn:hover {
  color: var(--color-text);
}
html:not([data-grid-size=compact]) .os-gridsize-btn[data-grid-size=large], html[data-grid-size=compact] .os-gridsize-btn[data-grid-size=compact] {
  background-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
}

.os-pager-buttons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: none;
}

.os-pager-numbers {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.os-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.os-page-num:hover {
  color: var(--color-text);
}
.os-page-num.is-active {
  background-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
}

.os-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.os-pager-btn:hover:not(:disabled) {
  color: var(--color-accent);
}
.os-pager-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.os-bottom-pagination {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-left: auto;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
@media (max-width: 560px) {
  .os-bottom-pagination {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
.os-bottom-pagination .os-pager-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.os-bottom-pagination .os-pager-summary strong {
  color: var(--color-text);
  font-weight: 800;
}
.os-bottom-pagination .os-pager-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}
.os-bottom-pagination .os-pagesize-select {
  width: auto;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 4px 28px 4px 14px;
  border-radius: 9999px;
  border: none;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}
.os-bottom-pagination .os-pagesize-select:focus {
  outline: none;
}

.os-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  margin-top: 10px;
  text-align: center;
  background-color: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 16px;
}
.os-empty-card[hidden] {
  display: none;
}
.os-empty-card .os-empty-title {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-muted);
}

.horse-circle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 0;
}
@media (max-width: 1024px) {
  .horse-circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .horse-circle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.horse-circle-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-align: center;
  padding: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.horse-circle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
  border-color: var(--color-accent);
}
.horse-circle-card.is-done {
  opacity: 0.76;
}
.horse-circle-card.is-done .row-title.is-done {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.horse-circle-top {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.horse-box-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--font-size-2xs);
  font-weight: 800;
  white-space: nowrap;
}

.horse-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-2xs);
  font-weight: 700;
  white-space: nowrap;
}

.horse-circle-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: auto;
  padding-bottom: 10px;
  width: 100%;
}
.horse-circle-hero .horse-circle-avatar-btn {
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  margin-bottom: 6px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.horse-circle-hero .horse-circle-avatar-btn:hover {
  transform: scale(1.03);
  border-color: var(--color-accent);
}
.horse-circle-hero .horse-circle-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4a3a2c;
}
.horse-circle-hero .horse-circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.horse-circle-hero .horse-circle-name {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 2px 0 0;
  line-height: 1.22;
  min-height: 1.22em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.horse-circle-hero .horse-circle-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.35;
  min-height: 1.35em;
}

.os-card-avatar-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: 2px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-tile-icon);
  box-shadow: none;
  flex-shrink: 0;
}
.os-card-avatar-circle.is-emerald, .os-card-avatar-circle.is-sky, .os-card-avatar-circle.is-rose, .os-card-avatar-circle.is-amber {
  background-color: var(--color-bg);
  color: var(--color-tile-icon);
  border: 2px solid var(--color-border);
}
.os-card-avatar-circle .os-card-initials {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.horse-touch-locations {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.horse-loc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.horse-loc-chip:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}
.horse-loc-chip:active {
  transform: scale(0.97);
}
.horse-loc-chip.is-active {
  background-color: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.24);
}

.horse-touch-pills {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.horse-info-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.3;
}
.horse-info-chip strong {
  color: var(--color-text);
  font-weight: 800;
}
.horse-info-chip svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.horse-circle-actions {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}
.horse-circle-actions > button,
.horse-circle-actions > a,
.horse-circle-actions > span,
.horse-circle-actions .btn,
.horse-circle-actions .btn-primary,
.horse-circle-actions .btn-secondary,
.horse-circle-actions .btn-touch,
.horse-circle-actions .horse-touch-btn {
  flex: 1 1 0;
  width: 100%;
  min-height: 40px;
  justify-content: center;
  font-weight: 700;
}
.horse-circle-actions .is-disabled-touch {
  opacity: 0.72;
  pointer-events: none;
}

.os-standalone-list-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cal-timeline-list.is-standalone {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-timeline-list.is-standalone .cal-event-card.is-standalone-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 14px 16px;
}

html[data-grid-size=compact] .horse-circle-grid,
body[data-grid-size=compact] .horse-circle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1100px) {
  html[data-grid-size=compact] .horse-circle-grid,
  body[data-grid-size=compact] .horse-circle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  html[data-grid-size=compact] .horse-circle-grid,
  body[data-grid-size=compact] .horse-circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  html[data-grid-size=compact] .horse-circle-grid,
  body[data-grid-size=compact] .horse-circle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
html[data-grid-size=compact] .horse-circle-card,
body[data-grid-size=compact] .horse-circle-card {
  padding: 12px;
  border-radius: 16px;
}
html[data-grid-size=compact] .horse-circle-top,
body[data-grid-size=compact] .horse-circle-top {
  min-height: 24px;
  margin-bottom: 6px;
}
html[data-grid-size=compact] .horse-circle-top .horse-box-tag,
html[data-grid-size=compact] .horse-circle-top .horse-status-tag,
body[data-grid-size=compact] .horse-circle-top .horse-box-tag,
body[data-grid-size=compact] .horse-circle-top .horse-status-tag {
  padding: 2px 8px;
  font-size: var(--font-size-3xs);
}
html[data-grid-size=compact] .horse-circle-portrait-btn,
body[data-grid-size=compact] .horse-circle-portrait-btn {
  margin-bottom: 4px;
  padding: 2px;
}
html[data-grid-size=compact] .horse-circle-portrait-btn .horse-circle-avatar,
body[data-grid-size=compact] .horse-circle-portrait-btn .horse-circle-avatar {
  width: 60px;
  height: 60px;
}
html[data-grid-size=compact] .horse-circle-hero,
body[data-grid-size=compact] .horse-circle-hero {
  padding-bottom: 8px;
}
html[data-grid-size=compact] .horse-circle-hero .horse-circle-avatar-btn,
body[data-grid-size=compact] .horse-circle-hero .horse-circle-avatar-btn {
  padding: 2px;
  margin-bottom: 4px;
}
html[data-grid-size=compact] .horse-circle-hero .horse-circle-avatar,
body[data-grid-size=compact] .horse-circle-hero .horse-circle-avatar {
  width: 60px;
  height: 60px;
}
html[data-grid-size=compact] .horse-circle-hero .horse-circle-name,
body[data-grid-size=compact] .horse-circle-hero .horse-circle-name {
  font-size: var(--font-size-base);
}
html[data-grid-size=compact] .horse-circle-hero .horse-circle-sub,
body[data-grid-size=compact] .horse-circle-hero .horse-circle-sub {
  font-size: var(--font-size-2xs);
}
html[data-grid-size=compact] .task-avatar-medallion,
body[data-grid-size=compact] .task-avatar-medallion {
  margin-bottom: 4px;
}
html[data-grid-size=compact] .task-avatar-medallion .horse-circle-avatar,
body[data-grid-size=compact] .task-avatar-medallion .horse-circle-avatar {
  width: 60px;
  height: 60px;
}
html[data-grid-size=compact] .task-avatar-medallion .task-corner-badge,
body[data-grid-size=compact] .task-avatar-medallion .task-corner-badge {
  width: 24px;
  height: 24px;
}
html[data-grid-size=compact] .os-card-avatar-circle,
body[data-grid-size=compact] .os-card-avatar-circle {
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
}
html[data-grid-size=compact] .os-card-avatar-circle .os-card-initials,
body[data-grid-size=compact] .os-card-avatar-circle .os-card-initials {
  font-size: var(--font-size-base);
}
html[data-grid-size=compact] .horse-circle-head,
body[data-grid-size=compact] .horse-circle-head {
  padding-bottom: 8px;
}
html[data-grid-size=compact] .horse-circle-head .horse-circle-name,
body[data-grid-size=compact] .horse-circle-head .horse-circle-name {
  font-size: var(--font-size-base);
}
html[data-grid-size=compact] .horse-circle-head .horse-circle-sub,
body[data-grid-size=compact] .horse-circle-head .horse-circle-sub {
  font-size: var(--font-size-2xs);
}
html[data-grid-size=compact] .horse-touch-locations,
body[data-grid-size=compact] .horse-touch-locations {
  gap: 4px;
  margin-bottom: 8px;
}
html[data-grid-size=compact] .horse-touch-locations .horse-loc-chip,
body[data-grid-size=compact] .horse-touch-locations .horse-loc-chip {
  min-height: 30px;
  padding: 4px 6px;
  font-size: var(--font-size-2xs);
}
html[data-grid-size=compact] .horse-touch-pills,
body[data-grid-size=compact] .horse-touch-pills {
  gap: 4px;
  margin-bottom: 8px;
}
html[data-grid-size=compact] .horse-touch-pills .horse-info-chip,
body[data-grid-size=compact] .horse-touch-pills .horse-info-chip {
  min-height: 28px;
  padding: 4px 8px;
  font-size: var(--font-size-2xs);
}
html[data-grid-size=compact] .task-meta-pills,
body[data-grid-size=compact] .task-meta-pills {
  gap: 5px;
  margin-bottom: 8px;
}
html[data-grid-size=compact] .task-meta-pills .task-person-pill,
html[data-grid-size=compact] .task-meta-pills .task-steps-pill,
body[data-grid-size=compact] .task-meta-pills .task-person-pill,
body[data-grid-size=compact] .task-meta-pills .task-steps-pill {
  min-height: 28px;
  padding: 4px 7px;
  font-size: var(--font-size-2xs);
  gap: 4px;
}
html[data-grid-size=compact] .task-meta-pills .task-person-monogram,
body[data-grid-size=compact] .task-meta-pills .task-person-monogram {
  width: 18px;
  height: 18px;
  font-size: var(--font-size-3xs);
}
html[data-grid-size=compact] .horse-circle-actions,
body[data-grid-size=compact] .horse-circle-actions {
  gap: 6px;
}
html[data-grid-size=compact] .horse-circle-actions > button,
html[data-grid-size=compact] .horse-circle-actions > a,
html[data-grid-size=compact] .horse-circle-actions > span,
html[data-grid-size=compact] .horse-circle-actions .btn,
html[data-grid-size=compact] .horse-circle-actions .btn-primary,
html[data-grid-size=compact] .horse-circle-actions .btn-secondary,
html[data-grid-size=compact] .horse-circle-actions .btn-touch,
html[data-grid-size=compact] .horse-circle-actions .horse-touch-btn,
body[data-grid-size=compact] .horse-circle-actions > button,
body[data-grid-size=compact] .horse-circle-actions > a,
body[data-grid-size=compact] .horse-circle-actions > span,
body[data-grid-size=compact] .horse-circle-actions .btn,
body[data-grid-size=compact] .horse-circle-actions .btn-primary,
body[data-grid-size=compact] .horse-circle-actions .btn-secondary,
body[data-grid-size=compact] .horse-circle-actions .btn-touch,
body[data-grid-size=compact] .horse-circle-actions .horse-touch-btn {
  min-height: 34px;
  font-size: var(--font-size-2xs);
  padding: 4px 8px;
}
html[data-grid-size=compact] .cal-zones-grid,
body[data-grid-size=compact] .cal-zones-grid {
  gap: 8px;
}
html[data-grid-size=compact] .cal-zones-grid .cal-zone-card,
body[data-grid-size=compact] .cal-zones-grid .cal-zone-card {
  padding: 8px 10px;
}
html[data-grid-size=compact] .visual-zones-grid,
html[data-grid-size=compact] .task-smart-strip,
body[data-grid-size=compact] .visual-zones-grid,
body[data-grid-size=compact] .task-smart-strip {
  gap: 10px;
}

.page-hero-clean {
  padding: 4px 0 12px;
  margin-bottom: 12px;
}

.visual-zones-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1120px) {
  .visual-zones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .visual-zones-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.visual-zone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.visual-zone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}
.visual-zone-card:hover .visual-zone-hover-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.visual-zone-card:hover .visual-zone-badge {
  opacity: 0;
  pointer-events: none;
}

.visual-zone-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
}

.visual-zone-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.visual-zone-identity .ios-app-squircle {
  width: auto;
  height: auto;
  border-radius: 0;
  flex-shrink: 0;
}

.visual-zone-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.visual-zone-title {
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visual-zone-sub {
  font-size: var(--font-size-3xs);
  color: var(--color-text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visual-zone-badge {
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.visual-zone-hover-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 4;
}
@media (hover: none) {
  .visual-zone-hover-actions {
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    box-shadow: none;
  }
}

.zone-hover-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-bg);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}
.zone-hover-btn:hover {
  background-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
  transform: scale(1.06);
}
.zone-hover-btn.is-danger:hover {
  background-color: #e11d48;
  color: #ffffff;
}

.visual-zone-canvas {
  position: relative;
  height: 98px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.visual-zone-canvas:hover {
  border-color: var(--color-accent);
}
.visual-zone-canvas.is-dressage {
  background: linear-gradient(135deg, rgba(223, 186, 120, 0.18) 0%, rgba(16, 185, 129, 0.08) 100%);
}
.visual-zone-canvas.is-jumping {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(223, 186, 120, 0.14) 100%);
}
.visual-zone-canvas.is-walker {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(223, 186, 120, 0.08) 100%);
}
.visual-zone-canvas.is-pasture {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(52, 211, 153, 0.07) 100%);
}

.arena-pitch-dressage,
.arena-pitch-jumping {
  position: relative;
  width: calc(100% - 14px);
  height: calc(100% - 12px);
  border: 1.5px dashed rgba(110, 90, 71, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.pitch-letter {
  position: absolute;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: var(--color-text-muted);
  opacity: 0.72;
  line-height: 1;
}
.pitch-letter.is-a {
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.pitch-letter.is-c {
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.pitch-letter.is-e {
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}
.pitch-letter.is-b {
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.pitch-centerline {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 1px;
  background-color: rgba(110, 90, 71, 0.22);
  pointer-events: none;
}

.pitch-circle {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px dashed rgba(110, 90, 71, 0.26);
  pointer-events: none;
}

.jump-obstacle {
  position: absolute;
  width: 24px;
  height: 5px;
  border-radius: 9999px;
  background: repeating-linear-gradient(90deg, #f43f5e 0px, #f43f5e 5px, #ffffff 5px, #ffffff 10px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}
.jump-obstacle.is-oxer-1 {
  top: 12px;
  left: 22px;
  transform: rotate(-18deg);
}
.jump-obstacle.is-oxer-2 {
  bottom: 12px;
  right: 22px;
  transform: rotate(15deg);
  background: repeating-linear-gradient(90deg, #2563eb 0px, #2563eb 5px, #ffffff 5px, #ffffff 10px);
}
.jump-obstacle.is-steilsprung {
  top: 12px;
  right: 32px;
  transform: rotate(22deg);
}

.pitch-occupants-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.pitch-horse-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  max-width: 100%;
}

.pitch-horse-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #10b981;
}
.pitch-horse-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pitch-horse-chip {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.pitch-horse-chip strong {
  font-size: var(--font-size-2xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
}
.pitch-horse-chip small {
  font-size: var(--font-size-3xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.pitch-free-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669;
  font-size: var(--font-size-2xs);
  font-weight: 800;
}

.arena-pitch-walker {
  width: 100%;
  height: 100%;
  padding: 6px;
  display: flex;
  align-items: center;
}

.walker-bays-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 100%;
}

.walker-bay-cell {
  border-radius: 6px;
  border: 1px dashed rgba(110, 90, 71, 0.3);
  background-color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 4px;
  min-width: 0;
}
.walker-bay-cell.is-occupied {
  border-style: solid;
  border-color: #f59e0b;
  background-color: var(--color-surface);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.walker-bay-cell .walker-bay-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.walker-bay-cell .walker-bay-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.walker-bay-cell .walker-bay-name {
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.walker-bay-cell .walker-bay-num {
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: var(--color-text-muted);
  opacity: 0.7;
}
.walker-bay-cell .walker-bay-free {
  font-size: var(--font-size-3xs);
  color: var(--color-text-muted);
  opacity: 0.7;
}

.arena-pitch-pasture {
  width: 100%;
  height: 100%;
  padding: 6px;
  display: flex;
  align-items: center;
}

.pasture-paddocks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 100%;
}

.pasture-parcel {
  border-radius: 6px;
  border: 1px dashed rgba(5, 150, 105, 0.35);
  background-color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  min-width: 0;
}
.pasture-parcel.is-occupied {
  border-style: solid;
  border-color: #10b981;
  background-color: var(--color-surface);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.pasture-parcel .parcel-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.pasture-parcel .parcel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pasture-parcel .parcel-label {
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pasture-parcel .parcel-num {
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: #065f46;
}
.pasture-parcel .parcel-free {
  font-size: var(--font-size-3xs);
  color: var(--color-text-muted);
  margin-left: auto;
}

.visual-zone-foot {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
}
.visual-zone-foot > button,
.visual-zone-foot > a {
  flex: 1 1 0;
  justify-content: center;
}

.zone-foot-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.zone-foot-info-btn:hover {
  border-color: var(--color-accent);
  background-color: var(--color-tile-hover);
}

.fantastical-board {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fantastical-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fantastical-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.fantastical-week-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.fcal-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.fcal-day-chip:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.fcal-day-chip .fcal-day-short {
  font-size: var(--font-size-3xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.fcal-day-chip .fcal-day-num {
  font-size: var(--font-size-xs);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fcal-day-chip .fcal-day-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.fcal-day-chip .fcal-day-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.fcal-day-chip.is-active {
  background-color: var(--color-nav-active-bg);
  border-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
}
.fcal-day-chip.is-active .fcal-day-short {
  color: var(--color-nav-active-text);
  opacity: 0.85;
}
.fcal-day-chip.is-active .fcal-day-count {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: transparent;
  color: var(--color-nav-active-text);
}

.fantastical-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fantastical-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--color-border);
}

.fcal-color-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fcal-color-filter-bar .fcal-color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}
.fcal-color-filter-bar .fcal-color-swatch.is-sky {
  background-color: #0ea5e9;
}
.fcal-color-filter-bar .fcal-color-swatch.is-emerald {
  background-color: #10b981;
}
.fcal-color-filter-bar .fcal-color-swatch.is-rose {
  background-color: #f43f5e;
}
.fcal-color-filter-bar .fcal-color-swatch.is-amber {
  background-color: #f59e0b;
}
.fcal-color-filter-bar .horse-filter-pill.is-color-pill.is-sky.is-active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.fcal-color-filter-bar .horse-filter-pill.is-color-pill.is-emerald.is-active {
  background-color: #059669;
  border-color: #059669;
  color: #ffffff;
}
.fcal-color-filter-bar .horse-filter-pill.is-color-pill.is-rose.is-active {
  background-color: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}
.fcal-color-filter-bar .horse-filter-pill.is-color-pill.is-amber.is-active {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.fcal-visual-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: var(--color-text-muted);
}
.fcal-visual-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fcal-visual-legend .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.fcal-visual-legend .legend-dot.is-booked {
  background-color: #10b981;
}
.fcal-visual-legend .legend-dot.is-free {
  border: 1.5px dashed var(--color-text-muted);
  background-color: transparent;
}

.fcal-matrix-wrap {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg);
}

.fcal-matrix-head {
  display: grid;
  grid-template-columns: 68px repeat(4, minmax(0, 1fr));
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 860px) {
  .fcal-matrix-head {
    display: none;
  }
}

.fcal-time-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  font-size: var(--font-size-2xs);
  font-weight: 800;
  color: var(--color-text-muted);
  border-right: 1px solid var(--color-border);
}

.fcal-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-right: 1px solid var(--color-border);
}
.fcal-col-header:last-child {
  border-right: none;
}
.fcal-col-header .fcal-col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fcal-col-header .fcal-col-dot.is-sky {
  background-color: #0ea5e9;
}
.fcal-col-header .fcal-col-dot.is-emerald {
  background-color: #10b981;
}
.fcal-col-header .fcal-col-dot.is-rose {
  background-color: #f43f5e;
}
.fcal-col-header .fcal-col-dot.is-amber {
  background-color: #f59e0b;
}
.fcal-col-header .fcal-col-head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.fcal-col-header .fcal-col-title {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcal-col-header .fcal-col-hint {
  font-size: var(--font-size-3xs);
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcal-matrix-body {
  display: flex;
  flex-direction: column;
}

.fcal-matrix-row {
  display: grid;
  grid-template-columns: 68px repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--color-border);
}
.fcal-matrix-row:last-child {
  border-bottom: none;
}
@media (max-width: 860px) {
  .fcal-matrix-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fcal-time-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  font-variant-numeric: tabular-nums;
}
.fcal-time-cell .fcal-time-label {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text-muted);
}
@media (max-width: 860px) {
  .fcal-time-cell {
    justify-content: flex-start;
    padding: 4px 10px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

.fcal-slot-cell {
  min-height: 52px;
  padding: 5px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.fcal-slot-cell:last-child {
  border-right: none;
}

.fcal-event-block {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.fcal-event-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.fcal-event-block.tone-emerald {
  border-left-color: #10b981;
  background-color: rgba(16, 185, 129, 0.08);
}
.fcal-event-block.tone-sky {
  border-left-color: #0ea5e9;
  background-color: rgba(14, 165, 233, 0.08);
}
.fcal-event-block.tone-amber {
  border-left-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}
.fcal-event-block.tone-rose {
  border-left-color: #f43f5e;
  background-color: rgba(244, 63, 94, 0.08);
}
.fcal-event-block.is-done {
  opacity: 0.62;
}

.fcal-event-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fcal-event-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fcal-event-avatar .ios-app-squircle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-bg);
  color: var(--color-tile-icon);
}

.fcal-event-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.15;
}

.fcal-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.fcal-event-horse {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcal-event-horse.is-done {
  text-decoration: line-through;
}

.fcal-event-time {
  font-size: var(--font-size-3xs);
  font-weight: 700;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.fcal-event-sub-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 2px;
}

.fcal-event-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: var(--font-size-3xs);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.fcal-event-cat-pill.is-sky {
  background-color: rgba(14, 165, 233, 0.16);
  color: #1d4ed8;
}
.fcal-event-cat-pill.is-emerald {
  background-color: rgba(16, 185, 129, 0.16);
  color: #065f46;
}
.fcal-event-cat-pill.is-rose {
  background-color: rgba(244, 63, 94, 0.16);
  color: #e11d48;
}
.fcal-event-cat-pill.is-amber {
  background-color: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.fcal-event-sub {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcal-quick-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.fcal-quick-check:hover {
  border-color: #10b981;
  color: #059669;
}
.fcal-quick-check.is-checked {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.fcal-free-slot-btn {
  width: 100%;
  height: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px dashed transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.fcal-free-slot-btn .fcal-free-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.32;
  transition: opacity 0.14s ease, color 0.14s ease;
}
.fcal-free-slot-btn:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background-color: rgba(16, 185, 129, 0.06);
}
.fcal-free-slot-btn:hover .fcal-free-pill {
  opacity: 1;
  color: #059669;
}

.vdetail-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .vdetail-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vdetail-info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
}
.vdetail-info-card .vdetail-card-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.vdetail-info-card .ios-app-squircle {
  width: auto;
  height: auto;
  border-radius: 0;
  flex-shrink: 0;
  color: var(--color-tile-icon);
}
.vdetail-info-card .vdetail-card-label {
  display: block;
  font-size: var(--font-size-3xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.vdetail-info-card .vdetail-card-val {
  display: block;
  width: 100%;
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.35;
}

.vdetail-occupants-box {
  padding-top: 0;
}

.vdetail-occupants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.task-smart-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 780px) {
  .task-smart-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.task-smart-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.task-smart-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.task-smart-tile.is-active {
  background-color: var(--color-surface);
  border-color: var(--color-nav-active-bg);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1), inset 0 0 0 1px var(--color-nav-active-bg);
}
.task-smart-tile.is-active .task-smart-icon.is-sky {
  background-color: #2563eb;
  color: #ffffff;
}
.task-smart-tile.is-active .task-smart-icon.is-amber {
  background-color: #d97706;
  color: #ffffff;
}
.task-smart-tile.is-active .task-smart-icon.is-rose {
  background-color: #e11d48;
  color: #ffffff;
}
.task-smart-tile.is-active .task-smart-icon.is-emerald {
  background-color: #059669;
  color: #ffffff;
}

.task-smart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.task-smart-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.task-smart-icon.is-sky {
  background-color: rgba(14, 165, 233, 0.15);
  color: #2563eb;
}
.task-smart-icon.is-amber {
  background-color: rgba(245, 158, 11, 0.18);
  color: #d97706;
}
.task-smart-icon.is-rose {
  background-color: rgba(244, 63, 94, 0.15);
  color: #e11d48;
}
.task-smart-icon.is-emerald {
  background-color: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.task-smart-count {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  flex-shrink: 0;
}

.task-smart-label {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-smart-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.task-smart-bar {
  width: 100%;
  max-width: 110px;
  height: 5px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.task-smart-bar-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 9999px;
  background-color: #10b981;
  transition: width 0.25s ease;
}
.task-smart-bar-fill[data-progress="0"] {
  width: 0%;
}
.task-smart-bar-fill[data-progress="17"], .task-smart-bar-fill[data-progress="16"] {
  width: 17%;
}
.task-smart-bar-fill[data-progress="25"] {
  width: 25%;
}
.task-smart-bar-fill[data-progress="33"] {
  width: 33%;
}
.task-smart-bar-fill[data-progress="50"] {
  width: 50%;
}
.task-smart-bar-fill[data-progress="67"] {
  width: 67%;
}
.task-smart-bar-fill[data-progress="75"] {
  width: 75%;
}
.task-smart-bar-fill[data-progress="83"] {
  width: 83%;
}
.task-smart-bar-fill[data-progress="100"] {
  width: 100%;
}

.task-visual-card,
.horse-circle-card {
  position: relative;
}
.task-visual-card .task-card-top,
.task-visual-card .horse-circle-top,
.horse-circle-card .task-card-top,
.horse-circle-card .horse-circle-top {
  position: relative;
  min-height: 28px;
}
.task-visual-card:hover .visual-zone-hover-actions,
.horse-circle-card:hover .visual-zone-hover-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.task-visual-card:hover .visual-zone-badge,
.horse-circle-card:hover .visual-zone-badge {
  opacity: 0;
  pointer-events: none;
}

.task-visual-stage {
  cursor: pointer;
  width: 100%;
}

.task-avatar-medallion {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.task-avatar-medallion .horse-circle-avatar {
  width: 88px;
  height: 88px;
  border: 2px solid var(--color-border);
}
.task-avatar-medallion .task-corner-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface);
  background-color: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}
.task-avatar-medallion .task-corner-badge.is-rose {
  background-color: #f43f5e;
}
.task-avatar-medallion .task-corner-badge.is-emerald {
  background-color: #10b981;
}

.task-meta-pills {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  cursor: pointer;
}

.task-person-pill,
.task-steps-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.14s ease;
}
.task-person-pill:hover,
.task-steps-pill:hover {
  border-color: var(--color-accent);
}

.task-person-monogram {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
  font-size: var(--font-size-3xs);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-steps-pill {
  color: var(--color-text-muted);
}
.task-steps-pill svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.task-detail-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.task-step-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.task-step-chip:hover {
  border-color: var(--color-accent);
}
.task-step-chip .task-step-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-surface);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.task-step-chip.is-checked {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}
.task-step-chip.is-checked .task-step-check {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.task-step-chip.is-checked .task-step-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.dashboard-stage .dash-panel {
  background-color: var(--color-launcher-tray);
  backdrop-filter: blur(18px);
  border: 1px solid var(--color-tile-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.dash-horse-row,
.dash-task-row,
.dash-schedule-row,
.dash-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.14s ease;
}
.dash-horse-row:first-child,
.dash-task-row:first-child,
.dash-schedule-row:first-child,
.dash-order-row:first-child {
  padding-top: 4px;
}
.dash-horse-row:last-child,
.dash-task-row:last-child,
.dash-schedule-row:last-child,
.dash-order-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.dash-horse-row.is-done,
.dash-task-row.is-done,
.dash-schedule-row.is-done,
.dash-order-row.is-done {
  opacity: 0.65;
}

.dash-horse-identity,
.dash-task-main,
.dash-sched-left,
.dash-order-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.dash-task-main {
  cursor: pointer;
}
.dash-task-main:hover .row-title span:first-child {
  color: var(--color-accent);
}

.dash-single-loc-btn {
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.dash-single-loc-btn:hover {
  transform: translateY(-1px);
  border-color: var(--color-accent);
}

.dash-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(14, 165, 233, 0.14);
  color: #2563eb;
  border: 1px solid rgba(14, 165, 233, 0.26);
}
.dash-icon-circle.is-rose {
  background-color: rgba(244, 63, 94, 0.14);
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.26);
}
.dash-icon-circle.is-emerald {
  background-color: rgba(16, 185, 129, 0.14);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.26);
}
.dash-icon-circle.is-amber {
  background-color: rgba(245, 158, 11, 0.16);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.28);
}

.dash-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-2xs);
  font-weight: 800;
  color: var(--color-text);
}

.dash-progress-track {
  width: 44px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: inline-flex;
}

.dash-progress-fill {
  display: block;
  height: 100%;
  width: 17%;
  border-radius: 9999px;
  background-color: #10b981;
  transition: width 0.25s ease;
}
.dash-progress-fill[data-progress="0"] {
  width: 0%;
}
.dash-progress-fill[data-progress="17"] {
  width: 17%;
}
.dash-progress-fill[data-progress="25"] {
  width: 25%;
}
.dash-progress-fill[data-progress="33"] {
  width: 33%;
}
.dash-progress-fill[data-progress="50"] {
  width: 50%;
}
.dash-progress-fill[data-progress="67"] {
  width: 67%;
}
.dash-progress-fill[data-progress="75"] {
  width: 75%;
}
.dash-progress-fill[data-progress="83"] {
  width: 83%;
}
.dash-progress-fill[data-progress="100"] {
  width: 100%;
}

.dash-stock-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.dash-stock-amount {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.dash-stock-bar {
  width: 100%;
  max-width: 220px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: block;
}

.dash-stock-fill {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 9999px;
  background-color: #10b981;
  transition: width 0.25s ease, background-color 0.2s ease;
}
.dash-stock-fill.is-rose {
  background-color: #f43f5e;
}
.dash-stock-fill.is-sky {
  background-color: #0ea5e9;
}
.dash-stock-fill.is-emerald {
  background-color: #10b981;
}
.dash-stock-fill[data-fill="15"] {
  width: 15%;
}
.dash-stock-fill[data-fill="25"] {
  width: 25%;
}
.dash-stock-fill[data-fill="35"] {
  width: 35%;
}
.dash-stock-fill[data-fill="50"] {
  width: 50%;
}
.dash-stock-fill[data-fill="75"] {
  width: 75%;
}
.dash-stock-fill[data-fill="100"] {
  width: 100%;
}

.horse-circle-card.is-compact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.compact-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 24px;
}

.compact-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.compact-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.compact-avatar-medallion {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.compact-avatar-medallion .compact-horse-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  background-color: #4a3a2c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compact-avatar-medallion .compact-horse-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compact-avatar-medallion .compact-corner-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-surface);
  background-color: #0ea5e9;
  color: #ffffff;
}
.compact-avatar-medallion .compact-corner-badge.is-rose {
  background-color: #f43f5e;
}
.compact-avatar-medallion .compact-corner-badge.is-amber {
  background-color: #f59e0b;
}
.compact-avatar-medallion .compact-corner-badge.is-emerald {
  background-color: #10b981;
}

.compact-icon-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(14, 165, 233, 0.14);
  color: #2563eb;
  border: 1px solid rgba(14, 165, 233, 0.28);
}
.compact-icon-avatar.is-rose {
  background-color: rgba(244, 63, 94, 0.14);
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.28);
}
.compact-icon-avatar.is-amber {
  background-color: rgba(245, 158, 11, 0.16);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
}
.compact-icon-avatar.is-emerald {
  background-color: rgba(16, 185, 129, 0.14);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.28);
}

.compact-card-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.compact-card-title {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-card-title.is-done {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.compact-card-sub {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-card-sub strong {
  color: var(--color-text);
  font-weight: 700;
}

.compact-box-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-3xs);
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
}

.compact-card-body {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.compact-steps-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--font-size-2xs);
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.38;
}

.compact-health-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.compact-health-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
}
.compact-health-line strong {
  color: var(--color-text);
  font-weight: 700;
}
.compact-health-line svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.compact-health-note {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  padding-top: 2px;
}

.compact-meta-left {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
}
.compact-meta-left .task-person-pill,
.compact-meta-left .task-steps-pill {
  min-height: 30px;
  padding: 3px 10px;
  font-size: var(--font-size-2xs);
}
.compact-meta-left .task-person-monogram {
  width: 18px;
  height: 18px;
}

.compact-action-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.order-stage-pill {
  flex-shrink: 0;
}
.order-stage-pill.is-rose {
  background-color: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.32);
  color: #e11d48;
}
.order-stage-pill.is-amber {
  background-color: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}
.order-stage-pill.is-emerald {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
  color: #065f46;
}

.order-stock-meter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.order-stock-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--font-size-2xs);
}

.order-stock-current {
  color: var(--color-text);
  font-weight: 600;
}
.order-stock-current strong {
  font-weight: 800;
}

.order-stock-target {
  color: var(--color-text-muted);
  font-size: var(--font-size-3xs);
  font-weight: 700;
}

.order-stock-bar {
  width: 100%;
  height: 7px;
  border-radius: 9999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.order-stock-fill {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 9999px;
  background-color: #10b981;
  transition: width 0.25s ease, background-color 0.2s ease;
}
.order-stock-fill.is-rose {
  background-color: #f43f5e;
}
.order-stock-fill.is-amber {
  background-color: #f59e0b;
}
.order-stock-fill.is-sky {
  background-color: #0ea5e9;
}
.order-stock-fill.is-emerald {
  background-color: #10b981;
}
.order-stock-fill[data-fill="25"] {
  width: 25%;
}
.order-stock-fill[data-fill="45"] {
  width: 45%;
}
.order-stock-fill[data-fill="65"] {
  width: 65%;
}
.order-stock-fill[data-fill="100"] {
  width: 100%;
}

.order-receive-btn {
  border-color: rgba(245, 158, 11, 0.45);
  color: #b45309;
}
.order-receive-btn:hover {
  border-color: #059669;
  background-color: #059669;
  color: #ffffff;
}

.user-avatar-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 1;
}
.user-avatar-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.user-avatar-visual > svg {
  display: block;
  flex-shrink: 0;
}
.user-avatar-visual.user-avatar-monogram {
  background: linear-gradient(135deg, #dfba78 0%, #b8843b 100%);
  color: #140c07;
  font-size: var(--font-size-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.user-avatar-visual.user-avatar-crest {
  background-color: var(--color-tile-bg);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}
.user-avatar-visual.user-avatar-crest > svg {
  width: 28px;
  height: 28px;
}
.user-avatar-visual.is-upload-placeholder {
  width: 52px;
  height: 52px;
  background-color: var(--color-tile-bg);
  color: var(--color-accent);
  border: 1.5px dashed var(--color-accent);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.user-avatar-visual.is-upload-placeholder > svg {
  width: 22px;
  height: 22px;
}

.avatar-picker-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0 14px;
}

.avatar-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-circle-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 0 2px;
}
@media (max-width: 980px) {
  .avatar-circle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .avatar-circle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.avatar-circle-item {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease;
}
.avatar-circle-item:hover {
  transform: translateY(-2px);
}
.avatar-circle-item:hover .user-avatar-visual.is-upload-placeholder {
  background-color: rgba(223, 186, 120, 0.14);
  border-color: var(--color-nav-active-bg);
}
.avatar-circle-item .avatar-circle-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.avatar-circle-item .theme-circle-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #059669;
  color: #ffffff;
  border: 2px solid var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.avatar-circle-item .theme-circle-label {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  white-space: nowrap;
}
.avatar-circle-item .theme-circle-sub {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
  line-height: 1.15;
  white-space: nowrap;
}
.avatar-circle-item.is-selected .avatar-circle-ring {
  border-color: var(--color-nav-active-bg);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  transform: scale(1.06);
}
.avatar-circle-item.is-selected .theme-circle-check {
  opacity: 1;
  transform: scale(1);
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-prefix-wrap .input-at-prefix {
  position: absolute;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-accent);
  pointer-events: none;
  z-index: 2;
}
.input-prefix-wrap .input-with-prefix {
  padding-left: 32px;
  width: 100%;
}

.settings-username-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-username-control .input-prefix-wrap {
  flex: 1;
  min-width: 0;
}

.settings-security-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 720px) {
  .settings-security-actions {
    justify-content: flex-start;
  }
}

.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-field-wrap .form-control {
  padding-right: 40px;
  width: 100%;
}
.password-field-wrap .password-toggle-btn {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.password-field-wrap .password-toggle-btn:hover {
  color: var(--color-text);
  background-color: var(--color-tile-bg);
}

.account-quick-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: var(--color-tile-bg);
  border: 1px solid var(--color-border);
}
.account-quick-card .account-quick-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
}
.account-quick-card .account-quick-avatar .user-avatar-visual {
  width: 100%;
  height: 100%;
}
.account-quick-card .account-quick-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.account-quick-card .account-quick-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.account-quick-card .account-quick-name {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--color-text);
}
.account-quick-card .account-quick-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.account-quick-card .account-quick-stable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: var(--color-text);
}

.account-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.account-quick-link:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.account-quick-link .account-quick-link-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.account-quick-link .account-quick-link-copy strong {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
}
.account-quick-link .account-quick-link-copy span {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
}

.auth-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}
.auth-stage-grid > .dash-panel {
  margin-bottom: 0;
}
@media (max-width: 960px) {
  .auth-stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.auth-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-form-stack > .horse-form-grid,
.auth-form-stack > .form-group,
.auth-form-stack > .horse-form-field {
  margin-bottom: 0;
}
.auth-form-stack > .avatar-picker-block {
  padding: 2px 0;
}

.auth-register-grid {
  padding-top: 12px;
}

.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.auth-account-row {
  padding: 10px 0;
}
.auth-account-row .auth-account-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.auth-account-row .auth-account-left > .user-avatar-visual {
  width: 44px;
  height: 44px;
}
.auth-account-row.is-active-account .row-title strong {
  color: var(--color-accent);
}

.auth-bottom-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.auth-notice-banner {
  padding: 12px 16px;
}

.lp-site-shell {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: var(--color-bg);
  background-image: none;
}
.lp-site-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 540px;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.14) 0%, rgba(15, 23, 42, 0.46) 58%, var(--color-bg) 100%), var(--hero-bg-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.lp-body-col {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
}

.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 980;
  background-color: var(--color-launcher-tray);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.lp-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
}
.lp-brand .lp-brand-img {
  width: 52px;
  height: auto;
  display: block;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 880px) {
  .lp-nav-links {
    display: none;
  }
}

.lp-nav-link {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.lp-nav-link:hover {
  color: var(--color-text);
}

.lp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-main-stage {
  padding-top: 20px;
  padding-bottom: 20px;
}

.lp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
@media (max-width: 640px) {
  .lp-container {
    padding: 0 12px;
    gap: 24px;
  }
}

.lp-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  border-radius: 20px;
  background-color: var(--color-launcher-tray);
  backdrop-filter: blur(22px);
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
@media (max-width: 640px) {
  .lp-hero {
    padding: 20px 12px;
  }
}

.lp-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-hero-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-text);
  margin: 0;
  max-width: 820px;
  text-wrap: balance;
}
.lp-hero-title .lp-hero-accent {
  color: #34d399;
}

.lp-hero-lead {
  font-size: var(--font-size-md);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0;
}
.lp-hero-lead strong {
  color: var(--color-text);
  font-weight: 800;
}

.lp-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.lp-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  text-align: left;
}
@media (max-width: 920px) {
  .lp-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .lp-trust-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lp-trust-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}
.lp-trust-pill > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lp-trust-pill strong {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
}
.lp-trust-pill span {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
}

.lp-showcase-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background-color: var(--color-launcher-tray);
  backdrop-filter: blur(18px);
  border: 1px solid var(--color-border);
}
.lp-showcase-toolbar h2 {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.lp-showcase-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-frame-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-frame-switcher .lp-frame-caption {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.landing-tablet-shell {
  margin-top: 0;
}

.lp-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lp-section-head h2 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}
.lp-section-head p {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.88;
  max-width: 620px;
  margin: 0;
}

.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 880px) {
  .lp-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lp-step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}
.lp-step-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}
.lp-step-card p {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}
.lp-step-card p strong {
  color: var(--color-text);
}

.lp-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-step-num,
.lp-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 9999px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
}

.lp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: #34d399;
  text-decoration: none;
  padding-top: 4px;
}
.lp-card-link:hover {
  text-decoration: underline;
}

.lp-pricing-shell {
  padding: 20px;
  margin-bottom: 0;
}

.lp-faq-narrow {
  width: 100%;
  margin: 0;
}

.lp-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 28px;
  border-radius: 16px;
  background-color: var(--color-surface);
  border: 2px solid #10b981;
}
.lp-bottom-cta h2 {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 4px;
}
.lp-bottom-cta p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.lp-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-launcher-tray);
  padding: 16px 0;
}
.lp-footer .lp-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 640px) {
  .lp-footer .lp-footer-inner {
    padding: 0 12px;
  }
}
.lp-footer .lp-footer-link {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
}
.lp-footer .lp-footer-link:hover {
  color: var(--color-text);
}

.landing-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 960px) {
  .landing-problem-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.landing-contrast-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.landing-contrast-card h3 {
  font-size: var(--font-size-base);
  font-weight: 800;
  color: var(--color-text);
  margin: 6px 0 4px;
}
.landing-contrast-card p {
  font-size: var(--font-size-xs);
  line-height: 1.55;
  color: var(--color-text);
  opacity: 0.9;
  margin: 0;
}
.landing-contrast-card p strong {
  color: var(--color-text);
  font-weight: 800;
}

.landing-contrast-bad {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(244, 63, 94, 0.07);
}

.landing-contrast-good {
  padding: 12px;
  flex: 1;
  background-color: rgba(16, 185, 129, 0.08);
}

.landing-comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: var(--color-surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  margin-bottom: 12px;
}

.landing-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--font-size-xs);
}
.landing-comparison-table th,
.landing-comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}
.landing-comparison-table thead th {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-text);
  background-color: var(--color-surface);
}
.landing-comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.landing-comparison-table .is-ave-col {
  background-color: rgba(16, 185, 129, 0.09);
  color: var(--color-text);
  border-left: 2px solid #10b981;
}
.landing-comparison-table .lp-table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.landing-comparison-table .lp-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.landing-comparison-table .lp-table-icon.is-rose {
  color: #e11d48;
}
.landing-comparison-table .lp-table-icon.is-amber {
  color: #d97706;
}
.landing-comparison-table .lp-table-icon.is-emerald {
  color: #059669;
}

.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .landing-testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.landing-quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.landing-quote-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.landing-quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.landing-quote-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
  line-height: 1;
}
.landing-quote-stars svg {
  fill: currentColor;
}

.landing-quote-text {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  flex: 1;
}
.landing-quote-text strong {
  color: var(--color-text);
  font-weight: 700;
}

.landing-quote-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.landing-quote-head .horse-avatar-circle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.landing-quote-head > img.horse-portrait-svg,
.landing-quote-head > img.horse-portrait-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-tile-border);
}
.landing-quote-head .landing-quote-meta,
.landing-quote-head > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.landing-quote-head strong {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.pricing-controls-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .pricing-controls-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pricing-control-group .form-label {
  margin-bottom: 0;
}
.pricing-control-group .horse-filter-pills {
  display: flex;
  width: 100%;
  gap: 6px;
}
.pricing-control-group .horse-filter-pill {
  flex: 1 1 0;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
}

.pricing-box-quick-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
}
.pricing-box-quick-row .horse-filter-pills {
  flex: 1 1 auto;
}
@media (max-width: 520px) {
  .pricing-box-quick-row {
    flex-wrap: wrap;
  }
}

.pricing-box-input {
  width: 72px;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 25px;
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
}

.roi-profit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.38);
  margin-bottom: 12px;
}

.roi-profit-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.roi-profit-title {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 2px;
}

.roi-profit-sub {
  font-size: var(--font-size-xs);
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
}

.roi-metrics-strip {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
}

.roi-metric-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}
.roi-metric-item.is-highlight {
  border-color: #10b981;
}

.roi-metric-label {
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.roi-metric-val {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.roi-metric-val.is-emerald {
  color: #10b981;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .pricing-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
}
.pricing-plan-card.is-featured-plan {
  border: 2px solid #d4a359;
  background-color: var(--color-surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.pricing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pricing-card-head h3 {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.pricing-price-block {
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pricing-main-figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-main-figure strong {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.pricing-main-figure span {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.pricing-sub-figure {
  display: block;
  margin-top: 4px;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--font-size-xs);
  line-height: 1.45;
  color: var(--color-text-muted);
}
.pricing-feature-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #10b981;
}
.pricing-feature-list li strong {
  color: var(--color-text);
}

.pricing-card-foot {
  margin-top: auto;
  padding-top: 8px;
}

.landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-faq-item {
  border-radius: 8px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.landing-faq-item[open] {
  border-color: var(--color-accent);
}
.landing-faq-item[open] .landing-faq-summary svg {
  transform: rotate(90deg);
}

.landing-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}
.landing-faq-summary::-webkit-details-marker {
  display: none;
}
.landing-faq-summary svg {
  flex-shrink: 0;
  transition: transform 0.16s ease;
  color: var(--color-text-muted);
}

.landing-faq-body {
  padding: 0 12px 12px;
  font-size: var(--font-size-xs);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.landing-faq-body p {
  margin: 0;
}
.landing-faq-body strong {
  color: var(--color-text);
}

.landing-order-summary-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
}

.landing-order-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-order-price-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.landing-order-price-tag strong {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text);
}

.landing-order-guarantees {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

/*# sourceMappingURL=main.css.map */
