/* Common styles shared across all pages */

/* Font Families */
body {
    font-family: 'Inter', 'Outfit', sans-serif;
}

/* Theme Tokens (aligned with iOS ThemePalette) */
:root {
    --ft-primary: #FF8A1F;
    --ft-primary-rgb: 255 138 31;
    --ft-secondary: #FFD59B;
    --ft-secondary-rgb: 255 213 155;
    --ft-accent: #FFC15A;
    --ft-accent-rgb: 255 193 90;
    --ft-background: #0A0A0A;
    --ft-background-rgb: 10 10 10;
    --ft-surface: #15171B;
    --ft-surface-rgb: 21 23 27;
    --ft-surface-elevated: #1E2229;
    --ft-surface-elevated-rgb: 30 34 41;
    --ft-text-primary: #F4F6FA;
    --ft-text-primary-rgb: 244 246 250;
    --ft-text-secondary: #A7B0BE;
    --ft-text-secondary-rgb: 167 176 190;
    --ft-text-muted: #7A8392;
    --ft-text-muted-rgb: 122 131 146;
    --ft-border: #2A2F38;
    --ft-border-rgb: 42 47 56;
    --ft-success: #22C55E;
    --ft-success-rgb: 34 197 94;
    --ft-warning: #F5C451;
    --ft-warning-rgb: 245 196 81;
    --ft-error: #EF4444;
    --ft-error-rgb: 239 68 68;
    --ft-info: #38BDF8;
    --ft-info-rgb: 56 189 248;

    /* Structural design tokens. Brand colors above may be trainer-customized. */
    --ft-font-sans: 'Inter', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ft-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --ft-space-1: 0.25rem;
    --ft-space-2: 0.5rem;
    --ft-space-3: 0.75rem;
    --ft-space-4: 1rem;
    --ft-space-5: 1.25rem;
    --ft-space-6: 1.5rem;
    --ft-space-8: 2rem;
    --ft-radius-sm: 0.5rem;
    --ft-radius-md: 0.75rem;
    --ft-radius-lg: 1rem;
    --ft-radius-xl: 1.25rem;
    --ft-radius-pill: 999px;
    --ft-control-sm: 2rem;
    --ft-control-md: 2.625rem;
    --ft-control-lg: 3rem;
    --ft-btn-radius: 12px;
    --ft-btn-radius-sm: 9px;
    --ft-btn-radius-lg: 14px;
    --ft-badge-radius: 6px;
    --ft-tab-radius: 10px;
    --ft-btn-weight: 600;
    --ft-btn-tracking: -0.2px;
    --ft-btn-weight-muted: 500;
    --ft-btn-tracking-sm: -0.1px;
    --ft-border-subtle: rgb(var(--ft-border-rgb) / 0.58);
    --ft-border-strong: rgb(var(--ft-border-rgb) / 0.9);
    --ft-border-secondary: var(--ft-border-subtle);
    --ft-surface-glass: rgb(var(--ft-surface-rgb) / 0.82);
    --ft-surface-soft: rgb(var(--ft-surface-elevated-rgb) / 0.48);
    --ft-surface-raised: var(--ft-surface-elevated);
    --ft-overlay: rgb(2 6 12 / 0.76);
    --ft-shadow-sm: 0 8px 24px rgb(0 0 0 / 0.16);
    --ft-shadow-md: 0 20px 50px rgb(0 0 0 / 0.24);
    --ft-shadow-lg: 0 32px 90px rgb(0 0 0 / 0.38);
    --ft-focus-ring: 0 0 0 3px rgb(var(--ft-primary-rgb) / 0.24);
    --ft-motion-fast: 140ms;
    --ft-motion-base: 200ms;
    --ft-ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --ft-button-text: #18110a;
    --ft-brand: var(--ft-primary);
    --ft-brand-dark: var(--ft-primary);
    --ft-brand-50: rgb(var(--ft-primary-rgb) / 0.13);
    --ft-brand-200: rgb(var(--ft-primary-rgb) / 0.38);
    --ft-brand-800: var(--ft-primary);
    --ft-danger: var(--ft-error);
    --ft-danger-bg: var(--ft-danger-surface);
    --ft-btn-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.18),
        0 2px 0 rgb(var(--ft-primary-rgb) / 0.22);
    --ft-btn-shadow-active: inset 0 1px 0 rgb(255 255 255 / 0.1);
    /* Brand roles: shared by every screen; derived from customizable primary. */
    --ft-primary-hover: color-mix(in srgb, var(--ft-primary) 90%, black);
    --ft-primary-pressed: color-mix(in srgb, var(--ft-primary) 80%, black);
    --ft-primary-text: var(--ft-primary);
    --ft-primary-tint: rgb(var(--ft-primary-rgb) / 0.10);
    --ft-primary-border: rgb(var(--ft-primary-rgb) / 0.36);
    --ft-primary-control-start: var(--ft-primary);
    --ft-primary-control-end: var(--ft-primary);
    --ft-primary-control-bg: var(--ft-primary);
    --ft-danger-surface: rgb(var(--ft-error-rgb) / 0.11);
    --ft-danger-border: rgb(var(--ft-error-rgb) / 0.38);
    --ft-success-surface: rgb(var(--ft-success-rgb) / 0.12);
    --ft-warning-surface: rgb(var(--ft-warning-rgb) / 0.12);
    --ft-info-surface: rgb(var(--ft-info-rgb) / 0.12);
}

html[data-theme="light"] {
    --ft-primary-text: color-mix(in srgb, var(--ft-primary) 62%, black);
    --ft-primary: #FF8A1F;
    --ft-primary-rgb: 255 138 31;
    --ft-secondary: #FF9500;
    --ft-secondary-rgb: 255 149 0;
    --ft-accent: #FFC15A;
    --ft-accent-rgb: 255 193 90;
    --ft-background: #F2F4F8;
    --ft-background-rgb: 242 244 248;
    --ft-surface: #FCFDFE;
    --ft-surface-rgb: 252 253 254;
    --ft-surface-elevated: #E8EDF4;
    --ft-surface-elevated-rgb: 232 237 244;
    --ft-text-primary: #0F172A;
    --ft-text-primary-rgb: 15 23 42;
    --ft-text-secondary: #475569;
    --ft-text-secondary-rgb: 71 85 105;
    --ft-text-muted: #64748B;
    --ft-text-muted-rgb: 100 116 139;
    --ft-border: #D5DDE8;
    --ft-border-rgb: 213 221 232;
    --ft-success: #16A34A;
    --ft-success-rgb: 22 163 74;
    --ft-warning: #E99D1A;
    --ft-warning-rgb: 233 157 26;
    --ft-error: #DC2626;
    --ft-error-rgb: 220 38 38;
    --ft-info: #0284C7;
    --ft-info-rgb: 2 132 199;
    --ft-overlay: rgb(15 23 42 / 0.54);
    --ft-shadow-sm: 0 8px 24px rgb(15 23 42 / 0.08);
    --ft-shadow-md: 0 20px 50px rgb(15 23 42 / 0.12);
    --ft-shadow-lg: 0 32px 90px rgb(15 23 42 / 0.18);
    --ft-button-text: #18110a;
}

html[data-theme] body {
    background-color: var(--ft-background);
    color: var(--ft-text-primary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

html {
    font-family: var(--ft-font-sans);
}

body {
    font-family: var(--ft-font-sans);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea,
[tabindex] {
    -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
    outline: none;
    box-shadow: var(--ft-focus-ring);
}

/* Neutral palette overrides (Tailwind utility remaps) */
html[data-theme] [class*="bg-gray-900"] {
    background-color: rgb(var(--ft-background-rgb) / var(--tw-bg-opacity, 1)) !important;
}

html[data-theme] [class*="bg-gray-800"] {
    background-color: rgb(var(--ft-surface-rgb) / var(--tw-bg-opacity, 1)) !important;
}

html[data-theme] [class*="bg-gray-700"] {
    background-color: rgb(var(--ft-surface-elevated-rgb) / var(--tw-bg-opacity, 1)) !important;
}

html[data-theme] [class*="bg-gray-600"] {
    background-color: rgb(var(--ft-surface-elevated-rgb) / var(--tw-bg-opacity, 0.85)) !important;
}

html[data-theme] [class*="bg-slate-900"] {
    background-color: rgb(var(--ft-background-rgb) / var(--tw-bg-opacity, 1)) !important;
}

html[data-theme] [class*="bg-slate-800"] {
    background-color: rgb(var(--ft-surface-rgb) / var(--tw-bg-opacity, 1)) !important;
}

html[data-theme] [class*="bg-slate-700"] {
    background-color: rgb(var(--ft-surface-elevated-rgb) / var(--tw-bg-opacity, 1)) !important;
}

html[data-theme] [class*="bg-slate-600"] {
    background-color: rgb(var(--ft-surface-elevated-rgb) / var(--tw-bg-opacity, 0.85)) !important;
}

html[data-theme] .bg-white\/5 {
    background-color: rgb(var(--ft-surface-rgb) / 0.5) !important;
}

html[data-theme] .bg-white\/10 {
    background-color: rgb(var(--ft-surface-rgb) / 0.1) !important;
}

html[data-theme] [class*="text-gray-100"],
html[data-theme] [class*="text-gray-200"] {
    color: rgb(var(--ft-text-primary-rgb) / var(--tw-text-opacity, 1)) !important;
}

/* Language toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem;
    border-radius: 999px;
    border: 1px solid rgb(var(--ft-border-rgb) / 0.8);
    background: rgb(var(--ft-surface-rgb) / 0.6);
}

.lang-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: rgb(var(--ft-text-secondary-rgb));
    transition: all 0.2s ease;
}

.lang-btn.is-active {
    color: rgb(var(--ft-text-primary-rgb));
    background: rgb(var(--ft-primary-rgb) / 0.18);
    border: 1px solid rgb(var(--ft-primary-rgb) / 0.42);
}

html[data-theme] [class*="text-gray-300"] {
    color: rgb(var(--ft-text-secondary-rgb) / var(--tw-text-opacity, 1)) !important;
}

html[data-theme] [class*="text-gray-400"],
html[data-theme] [class*="text-gray-500"],
html[data-theme] [class*="text-gray-600"],
html[data-theme] [class*="text-gray-700"] {
    color: rgb(var(--ft-text-muted-rgb) / var(--tw-text-opacity, 1)) !important;
}

html[data-theme] [class*="text-slate-100"],
html[data-theme] [class*="text-slate-200"] {
    color: rgb(var(--ft-text-primary-rgb) / var(--tw-text-opacity, 1)) !important;
}

html[data-theme] [class*="text-slate-300"],
html[data-theme] [class*="text-slate-400"],
html[data-theme] [class*="text-slate-500"] {
    color: rgb(var(--ft-text-secondary-rgb) / var(--tw-text-opacity, 1)) !important;
}

html[data-theme] [class*="border-gray-500"],
html[data-theme] [class*="border-gray-600"],
html[data-theme] [class*="border-gray-700"],
html[data-theme] [class*="border-gray-800"] {
    border-color: rgb(var(--ft-border-rgb) / var(--tw-border-opacity, 1)) !important;
}

html[data-theme] [class*="border-slate-600"],
html[data-theme] [class*="border-slate-700"],
html[data-theme] [class*="border-slate-800"] {
    border-color: rgb(var(--ft-border-rgb) / var(--tw-border-opacity, 1)) !important;
}

html[data-theme] [class*="placeholder-gray-400"]::placeholder {
    color: rgb(var(--ft-text-muted-rgb) / 1) !important;
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-white\/70,
html[data-theme="light"] .text-white\/80,
html[data-theme="light"] .text-white\/90 {
    color: rgb(var(--ft-text-primary-rgb) / var(--tw-text-opacity, 1)) !important;
}

html[data-theme="light"] [class*="bg-blue-"].text-white,
html[data-theme="light"] [class*="bg-cyan-"].text-white,
html[data-theme="light"] [class*="bg-rose-"].text-white,
html[data-theme="light"] [class*="bg-red-"].text-white,
html[data-theme="light"] [class*="bg-green-"].text-white,
html[data-theme="light"] [class*="bg-emerald-"].text-white,
html[data-theme="light"] [class*="bg-indigo-"].text-white,
html[data-theme="light"] [class*="bg-purple-"].text-white,
html[data-theme="light"] [class*="bg-amber-"].text-white,
html[data-theme="light"] [class*="bg-orange-"].text-white,
html[data-theme="light"] [class*="bg-sky-"].text-white,
html[data-theme="light"] [class*="bg-teal-"].text-white,
html[data-theme="light"] [class*="bg-black"].text-white,
html[data-theme="light"] .bg-gradient-to-r.text-white,
html[data-theme="light"] .bg-gradient-to-b.text-white {
    color: #ffffff !important;
}

html[data-theme="light"] [class*="bg-blue-"] .text-white,
html[data-theme="light"] [class*="bg-blue-"] .text-white\/70,
html[data-theme="light"] [class*="bg-blue-"] .text-white\/80,
html[data-theme="light"] [class*="bg-blue-"] .text-white\/90,
html[data-theme="light"] [class*="bg-cyan-"] .text-white,
html[data-theme="light"] [class*="bg-cyan-"] .text-white\/70,
html[data-theme="light"] [class*="bg-cyan-"] .text-white\/80,
html[data-theme="light"] [class*="bg-cyan-"] .text-white\/90,
html[data-theme="light"] [class*="bg-rose-"] .text-white,
html[data-theme="light"] [class*="bg-rose-"] .text-white\/70,
html[data-theme="light"] [class*="bg-rose-"] .text-white\/80,
html[data-theme="light"] [class*="bg-rose-"] .text-white\/90,
html[data-theme="light"] [class*="bg-red-"] .text-white,
html[data-theme="light"] [class*="bg-red-"] .text-white\/70,
html[data-theme="light"] [class*="bg-red-"] .text-white\/80,
html[data-theme="light"] [class*="bg-red-"] .text-white\/90,
html[data-theme="light"] [class*="bg-green-"] .text-white,
html[data-theme="light"] [class*="bg-green-"] .text-white\/70,
html[data-theme="light"] [class*="bg-green-"] .text-white\/80,
html[data-theme="light"] [class*="bg-green-"] .text-white\/90,
html[data-theme="light"] [class*="bg-emerald-"] .text-white,
html[data-theme="light"] [class*="bg-emerald-"] .text-white\/70,
html[data-theme="light"] [class*="bg-emerald-"] .text-white\/80,
html[data-theme="light"] [class*="bg-emerald-"] .text-white\/90,
html[data-theme="light"] [class*="bg-indigo-"] .text-white,
html[data-theme="light"] [class*="bg-indigo-"] .text-white\/70,
html[data-theme="light"] [class*="bg-indigo-"] .text-white\/80,
html[data-theme="light"] [class*="bg-indigo-"] .text-white\/90,
html[data-theme="light"] [class*="bg-purple-"] .text-white,
html[data-theme="light"] [class*="bg-purple-"] .text-white\/70,
html[data-theme="light"] [class*="bg-purple-"] .text-white\/80,
html[data-theme="light"] [class*="bg-purple-"] .text-white\/90,
html[data-theme="light"] [class*="bg-amber-"] .text-white,
html[data-theme="light"] [class*="bg-amber-"] .text-white\/70,
html[data-theme="light"] [class*="bg-amber-"] .text-white\/80,
html[data-theme="light"] [class*="bg-amber-"] .text-white\/90,
html[data-theme="light"] [class*="bg-orange-"] .text-white,
html[data-theme="light"] [class*="bg-orange-"] .text-white\/70,
html[data-theme="light"] [class*="bg-orange-"] .text-white\/80,
html[data-theme="light"] [class*="bg-orange-"] .text-white\/90,
html[data-theme="light"] [class*="bg-sky-"] .text-white,
html[data-theme="light"] [class*="bg-sky-"] .text-white\/70,
html[data-theme="light"] [class*="bg-sky-"] .text-white\/80,
html[data-theme="light"] [class*="bg-sky-"] .text-white\/90,
html[data-theme="light"] [class*="bg-teal-"] .text-white,
html[data-theme="light"] [class*="bg-teal-"] .text-white\/70,
html[data-theme="light"] [class*="bg-teal-"] .text-white\/80,
html[data-theme="light"] [class*="bg-teal-"] .text-white\/90,
html[data-theme="light"] [class*="bg-black"] .text-white,
html[data-theme="light"] [class*="bg-black"] .text-white\/70,
html[data-theme="light"] [class*="bg-black"] .text-white\/80,
html[data-theme="light"] [class*="bg-black"] .text-white\/90,
html[data-theme="light"] .bg-gradient-to-r .text-white,
html[data-theme="light"] .bg-gradient-to-r .text-white\/70,
html[data-theme="light"] .bg-gradient-to-r .text-white\/80,
html[data-theme="light"] .bg-gradient-to-r .text-white\/90,
html[data-theme="light"] .bg-gradient-to-b .text-white,
html[data-theme="light"] .bg-gradient-to-b .text-white\/70,
html[data-theme="light"] .bg-gradient-to-b .text-white\/80,
html[data-theme="light"] .bg-gradient-to-b .text-white\/90 {
    color: #ffffff !important;
}

html[data-theme="light"] button.bg-gradient-to-r,
html[data-theme="light"] button.bg-gradient-to-b,
html[data-theme="light"] a.bg-gradient-to-r,
html[data-theme="light"] a.bg-gradient-to-b {
    color: #ffffff;
}

/* Logo Box Small */
.logo-box-sm {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    color: white;
    background: linear-gradient(135deg, var(--ft-primary), var(--ft-accent));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--ft-primary), var(--ft-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect for Buttons */
.glow-effect {
    box-shadow: 0 0 30px rgb(var(--ft-secondary-rgb) / 0.2);
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 50px rgb(var(--ft-accent-rgb) / 0.4);
}

/* Form Input Styles */
.form-input {
    background: rgb(var(--ft-surface-rgb) / 0.7);
    border: 1px solid rgb(var(--ft-border-rgb) / 0.8);
    color: var(--ft-text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--ft-primary);
    box-shadow: var(--ft-focus-ring);
    background: rgb(var(--ft-surface-rgb) / 0.85);
    outline: none;
}

/* Shared component system */
.ft-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgb(var(--ft-primary-rgb) / 0.1), transparent 32rem),
        radial-gradient(circle at 92% 100%, rgb(var(--ft-accent-rgb) / 0.07), transparent 34rem),
        var(--ft-background);
    color: var(--ft-text-primary);
}

.ft-surface,
.ft-card,
.ft-card-elevated,
.ft-popover {
    border: 1px solid var(--ft-border-subtle);
    color: var(--ft-text-primary);
}

.ft-surface {
    background: rgb(var(--ft-surface-rgb) / 0.74);
}

.ft-card {
    border-radius: var(--ft-radius-lg);
    background: rgb(var(--ft-surface-rgb) / 0.94);
    box-shadow: var(--ft-shadow-sm);
}

.ft-card-elevated,
.ft-popover {
    border-radius: var(--ft-radius-xl);
    background:
        linear-gradient(180deg, rgb(var(--ft-surface-elevated-rgb) / 0.72), rgb(var(--ft-surface-rgb) / 0.98)),
        var(--ft-surface);
    box-shadow: var(--ft-shadow-md);
}

.ft-popover {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ft-backdrop {
    background: var(--ft-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ft-heading {
    margin: 0;
    color: var(--ft-text-primary);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.ft-text {
    color: var(--ft-text-primary);
    line-height: 1.55;
}

.ft-text-secondary {
    color: var(--ft-text-secondary);
}

.ft-text-muted {
    color: var(--ft-text-muted);
}

.ft-text-danger {
    color: var(--ft-error);
}

.ft-btn {
    --ft-btn-height: var(--ft-control-md);
    display: inline-flex;
    min-height: var(--ft-btn-height);
    align-items: center;
    justify-content: center;
    gap: var(--ft-space-2);
    border: 1px solid transparent;
    border-radius: var(--ft-btn-radius);
    padding: 0 1rem;
    color: var(--ft-text-primary);
    font-weight: var(--ft-btn-weight);
    letter-spacing: var(--ft-btn-tracking);
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition:
        transform var(--ft-motion-fast) var(--ft-ease-standard),
        border-color var(--ft-motion-fast) var(--ft-ease-standard),
        background var(--ft-motion-fast) var(--ft-ease-standard),
        color var(--ft-motion-fast) var(--ft-ease-standard),
        box-shadow var(--ft-motion-fast) var(--ft-ease-standard),
        opacity var(--ft-motion-fast) var(--ft-ease-standard);
}

.ft-btn:hover:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(-1px);
}

.ft-btn:active:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(0) scale(0.985);
}

.ft-btn-sm {
    --ft-btn-height: var(--ft-control-sm);
    border-radius: var(--ft-btn-radius-sm);
    padding-inline: 0.75rem;
    font-size: 0.78rem;
}

.ft-btn-lg {
    --ft-btn-height: var(--ft-control-lg);
    border-radius: var(--ft-btn-radius-lg);
    padding-inline: 1.35rem;
    font-size: 1rem;
}

.ft-btn-primary {
    border-color: rgb(var(--ft-primary-rgb) / 0.54);
    background: var(--ft-primary-control-bg);
    color: var(--ft-button-text);
    box-shadow: var(--ft-btn-shadow), 0 9px 20px rgb(var(--ft-primary-rgb) / 0.18);
}

.ft-btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    box-shadow: var(--ft-btn-shadow), 0 11px 24px rgb(var(--ft-primary-rgb) / 0.23);
    filter: brightness(1.025) saturate(1.02);
}

.ft-btn-secondary {
    border-color: var(--ft-border-strong);
    background: rgb(var(--ft-surface-elevated-rgb) / 0.58);
    color: var(--ft-text-primary);
}

.ft-btn-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: rgb(var(--ft-primary-rgb) / 0.42);
    background: rgb(var(--ft-primary-rgb) / 0.09);
}

.ft-btn-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--ft-text-secondary);
}

.ft-btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) {
    background: rgb(var(--ft-surface-elevated-rgb) / 0.55);
    color: var(--ft-text-primary);
}

.ft-btn-danger {
    border-color: var(--ft-danger-border);
    background: var(--ft-danger-surface);
    color: var(--ft-error);
}

.ft-btn-danger-solid {
    border-color: rgb(var(--ft-error-rgb) / 0.72);
    background: var(--ft-error);
    color: #fff;
    box-shadow: 0 12px 26px rgb(var(--ft-error-rgb) / 0.2);
}

.ft-btn-icon {
    width: var(--ft-btn-height);
    padding: 0;
    border-radius: var(--ft-radius-pill);
}

.ft-btn:disabled,
.ft-btn[aria-disabled="true"],
.ft-btn.is-disabled {
    opacity: 0.46;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ft-btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.ft-btn.is-loading::after {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    color: var(--ft-text-primary);
    content: '';
    animation: ft-spin 0.7s linear infinite;
}

.ft-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    stroke-width: 2;
}

[data-ft-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ft-icon-family {
    stroke-width: 2 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ft-icon-sm {
    width: 1rem;
    height: 1rem;
}

.ft-icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.ft-chip,
.ft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--ft-border-subtle);
    background: rgb(var(--ft-surface-elevated-rgb) / 0.5);
    color: var(--ft-text-secondary);
    font-size: 0.75rem;
    font-weight: 750;
}

.ft-chip {
    min-height: 2rem;
    border-radius: var(--ft-radius-pill);
    padding: 0 0.75rem;
}

.ft-badge {
    min-height: 1.45rem;
    border-radius: var(--ft-badge-radius);
    padding: 0 0.5rem;
    font-size: 0.68rem;
}

.ft-badge-status {
    border-color: var(--ft-brand-200);
    background: var(--ft-brand-50);
    color: var(--ft-brand-800);
}

.ft-tabs {
    display: inline-flex;
    gap: 2px;
    border-radius: var(--ft-tab-radius);
    padding: 3px;
    background: var(--ft-surface-raised);
}

.ft-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 0;
    border-radius: calc(var(--ft-tab-radius) - 2px);
    padding: 0.4375rem 1rem;
    background: transparent;
    color: var(--ft-text-muted);
    font-size: 0.875rem;
    font-weight: var(--ft-btn-weight-muted);
    letter-spacing: var(--ft-btn-tracking-sm);
    cursor: pointer;
    transition: background var(--ft-motion-fast), color var(--ft-motion-fast), box-shadow var(--ft-motion-fast);
}

.ft-tab[aria-selected="true"],
.ft-tab.is-active {
    background: var(--ft-surface);
    color: var(--ft-text-primary);
    font-weight: var(--ft-btn-weight);
    box-shadow: var(--ft-shadow-sm);
}

.ft-action-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ft-action {
    border: 0;
    padding: 0;
    background: none;
    color: var(--ft-text-secondary);
    font-size: 0.875rem;
    font-weight: var(--ft-btn-weight-muted);
    letter-spacing: var(--ft-btn-tracking-sm);
    cursor: pointer;
    transition: color var(--ft-motion-fast);
}

.ft-action:hover {
    color: var(--ft-text-primary);
}

.ft-action-danger {
    color: var(--ft-danger);
}

.ft-action-sep {
    color: var(--ft-border-secondary);
    pointer-events: none;
    user-select: none;
}

.ft-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ft-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ft-toggle > span {
    position: relative;
    display: block;
    width: 3.2rem;
    height: 1.65rem;
    border-radius: var(--ft-radius-pill);
    background: rgb(var(--ft-text-muted-rgb) / 0.8);
    transition: background var(--ft-motion-fast);
}

.ft-toggle > span::after {
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.28rem;
    height: 1.28rem;
    border-radius: var(--ft-radius-pill);
    background: #fff;
    content: '';
    transition: transform var(--ft-motion-fast);
}

.ft-toggle input:checked + span {
    background: var(--ft-primary);
}

.ft-toggle input:checked + span::after {
    transform: translateX(1.55rem);
}

.ft-toggle input:focus-visible + span {
    box-shadow: var(--ft-focus-ring);
}

.ft-tooltip {
    position: relative;
}

.ft-tooltip::before,
.ft-tooltip::after {
    position: absolute;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ft-motion-fast), transform var(--ft-motion-fast);
}

.ft-tooltip::before {
    left: 50%;
    bottom: calc(100% + 0.65rem);
    width: max-content;
    max-width: 16rem;
    transform: translate(-50%, 0.25rem);
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-sm);
    padding: 0.5rem 0.65rem;
    background: var(--ft-surface-elevated);
    color: var(--ft-text-primary);
    box-shadow: var(--ft-shadow-md);
    content: attr(data-tooltip);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.ft-tooltip--multiline::before {
    white-space: pre-line;
    text-align: left;
}

/* Placement variants for controls close to a viewport or scroll-container edge. */
.ft-tooltip.ft-tooltip--below::before {
    top: calc(100% + 0.65rem);
    bottom: auto;
}

.ft-tooltip.ft-tooltip--below::after {
    top: calc(100% + 0.38rem);
    bottom: auto;
    border: 0;
    border-top: 1px solid var(--ft-border-strong);
    border-left: 1px solid var(--ft-border-strong);
}

.ft-tooltip.ft-tooltip--align-right::before {
    right: 0;
    left: auto;
    transform: translate(0, 0.25rem);
}

.ft-tooltip.ft-tooltip--align-right::after {
    right: 0.75rem;
    left: auto;
    transform: translate(0, 0.25rem) rotate(45deg);
}

.ft-tooltip::after {
    left: 50%;
    bottom: calc(100% + 0.36rem);
    width: 0.55rem;
    height: 0.55rem;
    transform: translate(-50%, 0.25rem) rotate(45deg);
    border-right: 1px solid var(--ft-border-strong);
    border-bottom: 1px solid var(--ft-border-strong);
    background: var(--ft-surface-elevated);
    content: '';
}

.ft-tooltip:hover::before,
.ft-tooltip:hover::after,
.ft-tooltip:focus-visible::before,
.ft-tooltip:focus-visible::after {
    opacity: 1;
}

.ft-tooltip:hover::before,
.ft-tooltip:focus-visible::before {
    transform: translate(-50%, 0);
}

.ft-tooltip:hover::after,
.ft-tooltip:focus-visible::after {
    transform: translate(-50%, 0) rotate(45deg);
}

.ft-tooltip--align-right:hover::before,
.ft-tooltip--align-right:focus-visible::before {
    transform: translate(0, 0);
}

.ft-tooltip--align-right:hover::after,
.ft-tooltip--align-right:focus-visible::after {
    transform: translate(0, 0) rotate(45deg);
}

html.ft-floating-tooltips .ft-tooltip::before,
html.ft-floating-tooltips .ft-tooltip::after {
    display: none !important;
}

.ft-floating-tooltip {
    position: fixed;
    z-index: 2147483640;
    width: max-content;
    max-width: min(18rem, calc(100vw - 1.25rem));
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-surface-elevated);
    color: var(--ft-text-primary);
    box-shadow: var(--ft-shadow-md);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity var(--ft-motion-fast), transform var(--ft-motion-fast);
}

.ft-floating-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ft-floating-tooltip-copy {
    display: block;
    white-space: normal;
}

.ft-floating-tooltip.is-multiline .ft-floating-tooltip-copy {
    white-space: pre-line;
    text-align: left;
}

.ft-floating-tooltip-arrow {
    position: absolute;
    left: var(--ft-tooltip-arrow-left, 50%);
    width: 0.55rem;
    height: 0.55rem;
    background: var(--ft-surface-elevated);
    transform: translateX(-50%) rotate(45deg);
}

.ft-floating-tooltip[data-placement="top"] .ft-floating-tooltip-arrow {
    bottom: -0.34rem;
    border-right: 1px solid var(--ft-border-strong);
    border-bottom: 1px solid var(--ft-border-strong);
}

.ft-floating-tooltip[data-placement="bottom"] .ft-floating-tooltip-arrow {
    top: -0.34rem;
    border-top: 1px solid var(--ft-border-strong);
    border-left: 1px solid var(--ft-border-strong);
}

.ft-tab:focus-visible,
.ft-action:focus-visible {
    border-radius: var(--ft-btn-radius);
    outline: 2.5px solid var(--ft-brand);
    outline-offset: 3px;
}

.ft-chip.is-active,
.ft-badge-brand {
    border-color: rgb(var(--ft-primary-rgb) / 0.42);
    background: rgb(var(--ft-primary-rgb) / 0.14);
    color: var(--ft-primary);
}

.ft-badge-success {
    border-color: rgb(var(--ft-success-rgb) / 0.35);
    background: var(--ft-success-surface);
    color: var(--ft-success);
}

.ft-badge-danger {
    border-color: var(--ft-danger-border);
    background: var(--ft-danger-surface);
    color: var(--ft-error);
}

.ft-input,
.ft-select,
.ft-textarea {
    width: 100%;
    min-height: var(--ft-control-md);
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-md);
    background: rgb(var(--ft-surface-rgb) / 0.86);
    color: var(--ft-text-primary);
    transition: border-color var(--ft-motion-fast), background var(--ft-motion-fast), box-shadow var(--ft-motion-fast);
}

.ft-input,
.ft-select {
    padding: 0 0.9rem;
}

.ft-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' 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 0.65rem center;
    background-size: 1rem;
}

.ft-textarea {
    padding: 0.8rem 0.9rem;
    resize: vertical;
}

.ft-input::placeholder,
.ft-textarea::placeholder {
    color: var(--ft-text-muted);
}

.ft-input:focus,
.ft-select:focus,
.ft-textarea:focus {
    border-color: rgb(var(--ft-primary-rgb) / 0.72);
    background-color: rgb(var(--ft-surface-rgb) / 0.98);
    box-shadow: var(--ft-focus-ring);
    outline: none;
}

.ft-bubble {
    width: fit-content;
    max-width: min(78%, 42rem);
    border: 1px solid var(--ft-border-subtle);
    border-radius: var(--ft-radius-lg) var(--ft-radius-lg) var(--ft-radius-lg) var(--ft-radius-sm);
    padding: 0.7rem 0.9rem;
    background: rgb(var(--ft-surface-elevated-rgb) / 0.72);
    color: var(--ft-text-primary);
    line-height: 1.45;
}

.ft-bubble-own {
    margin-left: auto;
    border-color: rgb(var(--ft-primary-rgb) / 0.38);
    border-radius: var(--ft-radius-lg) var(--ft-radius-lg) var(--ft-radius-sm) var(--ft-radius-lg);
    background: rgb(var(--ft-primary-rgb) / 0.16);
}

.ft-empty-state {
    display: grid;
    min-height: 12rem;
    place-items: center;
    gap: var(--ft-space-3);
    border: 1px dashed var(--ft-border-strong);
    border-radius: var(--ft-radius-lg);
    padding: var(--ft-space-8);
    background: rgb(var(--ft-surface-rgb) / 0.42);
    color: var(--ft-text-secondary);
    text-align: center;
}

.ft-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2147483647;
    display: flex;
    width: min(24rem, calc(100vw - 2rem));
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: none;
}

.ft-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-md);
    padding: 0.85rem;
    background: rgb(var(--ft-surface-rgb) / 0.98);
    color: var(--ft-text-primary);
    box-shadow: var(--ft-shadow-md);
    pointer-events: auto;
    animation: ft-toast-in var(--ft-motion-base) var(--ft-ease-standard);
}

.ft-toast[data-tone="success"] { border-color: rgb(var(--ft-success-rgb) / 0.42); }
.ft-toast[data-tone="warning"] { border-color: rgb(var(--ft-warning-rgb) / 0.45); }
.ft-toast[data-tone="error"] { border-color: var(--ft-danger-border); }
.ft-toast[data-tone="info"] { border-color: rgb(var(--ft-info-rgb) / 0.42); }

.ft-toast-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: var(--ft-radius-pill);
    background: rgb(var(--ft-primary-rgb) / 0.12);
    color: var(--ft-primary);
}

.ft-toast[data-tone="success"] .ft-toast-icon { background: var(--ft-success-surface); color: var(--ft-success); }
.ft-toast[data-tone="warning"] .ft-toast-icon { background: var(--ft-warning-surface); color: var(--ft-warning); }
.ft-toast[data-tone="error"] .ft-toast-icon { background: var(--ft-danger-surface); color: var(--ft-error); }
.ft-toast[data-tone="info"] .ft-toast-icon { background: var(--ft-info-surface); color: var(--ft-info); }

.ft-toast-message {
    margin: 0.28rem 0 0;
    color: var(--ft-text-secondary);
    font-size: 0.88rem;
    line-height: 1.4;
}

.ft-dialog-root {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.ft-dialog-root[hidden] {
    display: none;
}

.ft-dialog-panel {
    position: relative;
    width: min(100%, 28rem);
    max-height: min(90vh, 48rem);
    overflow: auto;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-xl);
    padding: 1.35rem;
    background:
        linear-gradient(180deg, rgb(var(--ft-surface-elevated-rgb) / 0.72), rgb(var(--ft-surface-rgb) / 0.99)),
        var(--ft-surface);
    color: var(--ft-text-primary);
    box-shadow: var(--ft-shadow-lg);
    animation: ft-dialog-in var(--ft-motion-base) var(--ft-ease-standard);
}

.ft-dialog-root[data-size="wide"] .ft-dialog-panel {
    width: min(100%, 36rem);
}

.ft-dialog-icon {
    display: grid;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: var(--ft-radius-pill);
    background: rgb(var(--ft-primary-rgb) / 0.13);
    color: var(--ft-primary);
}

.ft-dialog-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ft-dialog-root[data-tone="danger"] .ft-dialog-icon {
    background: var(--ft-danger-surface);
    color: var(--ft-error);
}

.ft-dialog-title {
    margin: 0;
    color: var(--ft-text-primary);
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.ft-dialog-message {
    margin: 0.55rem 0 0;
    color: var(--ft-text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-line;
}

.ft-dialog-field {
    margin-top: 1rem;
}

.ft-dialog-hint {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ft-text-muted);
    font-size: 0.78rem;
}

.ft-dialog-field-feedback {
    display: block;
    margin-top: 0.45rem;
    color: var(--ft-text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
}

.ft-dialog-field-feedback[hidden] {
    display: none;
}

.ft-dialog-field-feedback.is-error {
    color: var(--ft-error);
}

.ft-dialog-field .ft-input.is-error {
    border-color: var(--ft-error);
}

.ft-dialog-details {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: rgb(var(--ft-surface-rgb) / 0.58);
}

.ft-dialog-details-label {
    margin: 0 0 0.45rem;
    color: var(--ft-text-primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.ft-dialog-details-list {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ft-text-secondary);
    font-size: 0.84rem;
    line-height: 1.4;
}

.ft-dialog-details-overflow {
    margin: 0.45rem 0 0;
    color: var(--ft-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.ft-dialog-choice {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-md);
    background: var(--ft-danger-surface);
    cursor: pointer;
}

.ft-dialog-choice-input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.15rem 0 0;
    accent-color: var(--ft-error);
    flex: 0 0 auto;
}

.ft-dialog-choice-copy {
    display: grid;
    gap: 0.25rem;
}

.ft-dialog-choice-label {
    color: var(--ft-text-primary);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
}

.ft-dialog-choice-description {
    color: var(--ft-text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
}

.ft-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

@keyframes ft-spin {
    to { transform: rotate(360deg); }
}

@keyframes ft-toast-in {
    from { opacity: 0; transform: translateY(-0.5rem) scale(0.98); }
}

@keyframes ft-dialog-in {
    from { opacity: 0; transform: translateY(0.5rem) scale(0.98); }
}

@media (max-width: 640px) {
    .ft-dialog-actions {
        flex-direction: column-reverse;
    }

    .ft-dialog-actions .ft-btn {
        width: 100%;
    }

    .ft-toast-stack {
        top: auto;
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Compatibility aliases while legacy screens migrate to the shared primitives. */
.premium-btn-primary,
.library-primary-btn,
.library-action-primary,
.training-btn-primary,
.education-post-submit-btn,
.onboarding-flow-primary-btn,
.schedule-primary-btn,
.settings-primary-btn {
    border-color: rgb(var(--ft-primary-rgb) / 0.54) !important;
    background: var(--ft-primary-control-bg) !important;
    color: var(--ft-button-text) !important;
}

.premium-btn-secondary,
.library-secondary-btn,
.library-action-secondary,
.settings-secondary-btn {
    border-color: var(--ft-border-strong) !important;
    background: rgb(var(--ft-surface-elevated-rgb) / 0.58) !important;
    color: var(--ft-text-primary) !important;
}

.library-action-danger {
    border-color: var(--ft-danger-border) !important;
    background: var(--ft-danger-surface) !important;
    color: var(--ft-error) !important;
}

/* Legacy Tailwind primary actions inherit the semantic brand role during migration. */
html[data-theme] :where(button, a)[class*="bg-blue-"],
html[data-theme] :where(button, a)[class*="bg-indigo-"],
html[data-theme] :where(button, a)[class*="bg-sky-"] {
    border-color: rgb(var(--ft-primary-rgb) / 0.54) !important;
    background-color: var(--ft-primary) !important;
    color: var(--ft-button-text) !important;
}

html[data-theme] :where(button, a)[class*="hover:bg-blue-"]:hover,
html[data-theme] :where(button, a)[class*="hover:bg-indigo-"]:hover,
html[data-theme] :where(button, a)[class*="hover:bg-sky-"]:hover {
    background-color: var(--ft-accent) !important;
}

/* Card Hover Animation */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 40px -10px rgba(96, 165, 250, 0.1);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Drop Indicator for Drag & Drop */
.drop-indicator-top {
    position: relative;
}

.drop-indicator-top::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ft-secondary), var(--ft-accent));
    border-radius: 2px;
    box-shadow: 0 0 12px rgb(var(--ft-secondary-rgb) / 0.6), 0 0 24px rgb(var(--ft-accent-rgb) / 0.4);
    animation: pulse-glow 1s ease-in-out infinite;
}

.drop-indicator-bottom {
    position: relative;
}

.drop-indicator-bottom::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ft-secondary), var(--ft-accent));
    border-radius: 2px;
    box-shadow: 0 0 12px rgb(var(--ft-secondary-rgb) / 0.6), 0 0 24px rgb(var(--ft-accent-rgb) / 0.4);
    animation: pulse-glow 1s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 12px rgb(var(--ft-secondary-rgb) / 0.6), 0 0 24px rgb(var(--ft-accent-rgb) / 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgb(var(--ft-secondary-rgb) / 0.8), 0 0 36px rgb(var(--ft-accent-rgb) / 0.6);
    }
}

/* Canonical action states, including existing legacy action classes. */
:is(.ft-btn-primary,.premium-btn-primary,.library-action-primary,.training-btn-primary,.education-post-submit-btn,.onboarding-flow-primary-btn,.schedule-primary-btn,.settings-primary-btn):hover:not(:disabled) {
    background: var(--ft-primary-hover) !important;
}
:is(.ft-btn-primary,.premium-btn-primary,.library-action-primary,.training-btn-primary,.education-post-submit-btn,.onboarding-flow-primary-btn,.schedule-primary-btn,.settings-primary-btn):active:not(:disabled) {
    background: var(--ft-primary-pressed) !important;
}

/* Trainly Momentum Lift platform logo: independently scalable at every size. */
.ft-brand-logo { overflow: hidden; padding: 0 !important; background: transparent !important; }
.ft-brand-logo > img[data-trainly-logo] { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-short.ft-brand-logo { width: 32px; height: 32px; }
.set-selector-label-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 16px;
    margin-bottom: 3px;
}
.set-selector-label-row .set-selector-label { margin: 0 !important; }
.set-selector-label-row :is(.technique-info-icon, .extended-info-icon) {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
