:root {
    --gf-motion-fast: 140ms;
    --gf-motion-base: 220ms;
    --gf-motion-slow: 280ms;
    --gf-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gf-field-surface: rgb(243 244 246);
    --gf-field-hover: rgb(255 255 255);
    --gf-editor-toolbar: rgb(229 231 235);
}

/* Shared visual hierarchy for all CMS pages. Filament's default white-on-white
   treatment makes long editorial forms difficult to scan, so the workspace,
   containers and nested groups deliberately use three distinct surfaces. */
.fi-main-ctn {
    background: rgb(243 244 246);
}

.fi-sc-tabs.fi-contained {
    overflow: hidden;
    border: 1px solid rgb(209 213 219);
    box-shadow: 0 8px 28px rgb(15 23 42 / 0.06);
}

.fi-sc-tabs.fi-contained > .fi-tabs {
    padding-inline: 0.75rem;
    background: rgb(248 250 252);
    border-bottom: 1px solid rgb(209 213 219);
}

.fi-sc-tabs.fi-contained > .fi-sc-tabs-tab.fi-active {
    background: linear-gradient(180deg, rgb(255 255 255) 0%, rgb(255 248 242) 100%);
}

.fi-section:not(.fi-section-not-contained) {
    overflow: hidden;
    border: 1px solid rgb(209 213 219);
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.04);
}

.fi-section:not(.fi-section-not-contained) > .fi-section-header {
    background: rgb(248 250 252);
    border-bottom: 1px solid rgb(229 231 235);
}

.fi-fo-repeater-item {
    background: rgb(248 250 252) !important;
    box-shadow: 0 0 0 1px rgb(209 213 219) !important;
}

.fi-fo-repeater-item:not(.fi-collapsed) > .fi-fo-repeater-item-header {
    background: rgb(241 245 249);
}

.fi-input-wrp:not(.fi-disabled) {
    background: var(--gf-field-surface) !important;
    box-shadow: 0 0 0 1px rgb(156 163 175 / 0.75), 0 1px 2px rgb(15 23 42 / 0.04);
    transition:
        background-color var(--gf-motion-fast) ease,
        box-shadow var(--gf-motion-fast) ease;
}

.fi-input-wrp .fi-input,
.fi-input-wrp .fi-select-input,
.fi-input-wrp textarea {
    background: transparent !important;
}

.fi-input-wrp:not(.fi-disabled):hover {
    background: var(--gf-field-hover);
    box-shadow: 0 0 0 1px rgb(107 114 128 / 0.8), 0 2px 5px rgb(15 23 42 / 0.06);
}

.fi-input-wrp:focus-within {
    background: var(--gf-field-hover);
    box-shadow: 0 0 0 2px rgb(249 115 22 / 0.55);
}

.fi-fo-field-label-content {
    color: rgb(31 41 55);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.fi-fo-rich-editor {
    overflow: hidden;
    background: var(--gf-field-surface);
    box-shadow: 0 0 0 1px rgb(156 163 175 / 0.75), 0 1px 2px rgb(15 23 42 / 0.04);
    transition:
        background-color var(--gf-motion-fast) ease,
        box-shadow var(--gf-motion-fast) ease;
}

.fi-fo-rich-editor-main,
.fi-fo-rich-editor-content {
    background: transparent !important;
}

.fi-fo-rich-editor:hover,
.fi-fo-rich-editor:focus-within {
    background: var(--gf-field-hover);
}

.fi-fo-rich-editor:focus-within {
    box-shadow: 0 0 0 2px rgb(249 115 22 / 0.55);
}

.fi-fo-rich-editor-toolbar {
    background: var(--gf-editor-toolbar);
    border-bottom: 1px solid rgb(209 213 219);
}

/* Filament forces the idle label opaque. Hide it while the single photo is
   present, including after the cropper replaces the uploaded file. */
.gf-trainer-photo-upload .filepond--root:has(.filepond--item) .filepond--drop-label {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

/* Trainer photos only need a square crop. Keep Filament's editor enabled so an
   existing image can be reopened, but replace its oversized transform panel
   with a compact crop dialog whose actions remain inside the viewport. */
.gf-trainer-photo-upload .fi-fo-file-upload-editor {
    padding: 1rem;
}

/* Filament animates tab panels with a transform and clips the tab container.
   A fixed dialog nested there would otherwise be positioned and cropped by the
   form card instead of the browser viewport. Disable that containing block only
   while this editor is open. */
.fi-sc-tabs.fi-contained:has(.gf-trainer-photo-upload .fi-fo-file-upload-editor:not([style*="display: none"])) {
    overflow: visible;
}

.fi-sc-tabs-tab:has(.gf-trainer-photo-upload .fi-fo-file-upload-editor:not([style*="display: none"])) {
    animation: none !important;
    transform: none !important;
}

.gf-trainer-photo-upload .fi-fo-file-upload-editor-window {
    flex-direction: column !important;
    width: min(100%, 48rem) !important;
    max-height: calc(100dvh - 2rem) !important;
}

.gf-trainer-photo-upload .fi-fo-file-upload-editor-image-ctn {
    margin: 0.75rem;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.gf-trainer-photo-upload .fi-fo-file-upload-editor-control-panel {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

.gf-trainer-photo-upload .fi-fo-file-upload-editor-control-panel-main {
    display: none;
}

.gf-trainer-photo-upload .fi-fo-file-upload-editor-control-panel-footer {
    flex: none;
    border-top: 1px solid rgb(229 231 235);
}

.fi-fo-field-wrp-helper-text {
    color: rgb(100 116 139);
}

.dark .fi-main-ctn {
    background: rgb(3 7 18);
}

.dark .fi-sc-tabs.fi-contained > .fi-tabs,
.dark .fi-section:not(.fi-section-not-contained) > .fi-section-header,
.dark .fi-fo-repeater-item:not(.fi-collapsed) > .fi-fo-repeater-item-header {
    background: rgb(17 24 39);
}

.dark .fi-sc-tabs.fi-contained > .fi-sc-tabs-tab.fi-active {
    background: linear-gradient(180deg, rgb(17 24 39) 0%, rgb(25 20 18) 100%);
}

.dark .fi-section:not(.fi-section-not-contained),
.dark .fi-sc-tabs.fi-contained {
    border-color: rgb(55 65 81);
}

.dark .fi-fo-repeater-item {
    background: rgb(17 24 39) !important;
    box-shadow: 0 0 0 1px rgb(55 65 81) !important;
}

.dark .fi-input-wrp:not(.fi-disabled),
.dark .fi-fo-rich-editor {
    background: rgb(17 24 39);
}

.dark .fi-input-wrp:not(.fi-disabled):hover,
.dark .fi-input-wrp:focus-within,
.dark .fi-fo-rich-editor:hover,
.dark .fi-fo-rich-editor:focus-within {
    background: rgb(23 31 46);
}

.dark .fi-fo-rich-editor-toolbar {
    background: rgb(15 23 42);
    border-bottom-color: rgb(55 65 81);
}

.dark .fi-fo-field-label-content {
    color: rgb(229 231 235);
}

/* Custom pages are loaded as a plain Filament asset, so their layout must use
   explicit project classes instead of relying on Tailwind utilities that are
   not part of Filament's compiled stylesheet. */
.gf-integration-page {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.5rem;
}

.gf-integration-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.gf-integration-grid > *,
.gf-integration-page > * {
    min-width: 0;
}

.gf-integration-grid > .fi-section {
    height: 100%;
}

.gf-abonement-status-card > .fi-section-header {
    flex-wrap: wrap;
}

.gf-abonement-status-card > .fi-section-header > .fi-section-header-text-ctn {
    flex: 1 1 12rem;
}

.gf-section-copy {
    color: rgb(75 85 99);
    font-size: 0.875rem;
    line-height: 1.5rem;
}

.gf-integration-form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.5rem;
}

.gf-form-actions {
    display: flex;
    clear: both;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(229 231 235);
}

.gf-form-actions > * {
    flex: none;
}

.gf-log-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.gf-log-card {
    min-width: 0;
    padding: 1rem;
    background: rgb(249 250 251);
    border: 1px solid rgb(243 244 246);
    border-radius: 0.75rem;
}

.gf-log-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.gf-log-title {
    color: rgb(17 24 39);
    font-weight: 600;
}

.gf-log-meta {
    margin-top: 0.5rem;
    color: rgb(107 114 128);
    font-size: 0.875rem;
    line-height: 1.4rem;
}

.gf-log-message {
    margin-top: 0.75rem;
    overflow-wrap: anywhere;
    color: rgb(55 65 81);
    font-size: 0.875rem;
    line-height: 1.4rem;
}

.gf-log-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.gf-log-value-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.gf-log-value-row dt {
    color: rgb(107 114 128);
}

.gf-log-value-row dd {
    color: rgb(17 24 39);
    text-align: right;
}

.gf-error-panel {
    min-width: 0;
    margin-top: 1rem;
    padding: 1rem;
    color: rgb(185 28 28);
    background: rgb(254 242 242);
    border: 1px solid rgb(254 202 202);
    border-radius: 0.75rem;
}

.gf-error-panel h3 {
    font-weight: 600;
}

.gf-error-panel p {
    margin-top: 0.5rem;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.4rem;
}

.gf-placeholder-panel {
    min-width: 0;
    padding: 1.25rem;
    border: 1px dashed rgb(209 213 219);
    border-radius: 0.75rem;
}

@media (min-width: 48rem) {
    .gf-log-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .gf-integration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 96rem) {
    .gf-integration-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 39.999rem) {
    .gf-abonement-status-card > .fi-section-header > .fi-section-header-after-ctn {
        flex-basis: 100%;
    }

    .gf-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gf-form-actions .fi-btn {
        width: 100%;
        justify-content: center;
    }

    .gf-log-card-header,
    .gf-log-value-row {
        flex-direction: column;
    }

    .gf-log-value-row dd {
        text-align: left;
    }
}

.dark .gf-section-copy,
.dark .gf-log-meta,
.dark .gf-log-value-row dt {
    color: rgb(156 163 175);
}

.dark .gf-form-actions {
    border-color: rgb(255 255 255 / 0.1);
}

.dark .gf-log-card {
    background: rgb(255 255 255 / 0.05);
    border-color: rgb(255 255 255 / 0.08);
}

.dark .gf-log-title,
.dark .gf-log-value-row dd {
    color: white;
}

.dark .gf-log-message {
    color: rgb(229 231 235);
}

.dark .gf-error-panel {
    color: rgb(252 165 165);
    background: rgb(239 68 68 / 0.1);
    border-color: rgb(239 68 68 / 0.3);
}

.dark .gf-placeholder-panel {
    border-color: rgb(255 255 255 / 0.2);
}

.gf-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gf-dashboard-stats {
    display: grid;
    gap: 1rem;
}

.gf-dashboard-stat {
    display: block;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    background: white;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: border-color var(--gf-motion-base) var(--gf-motion-ease), box-shadow var(--gf-motion-base) var(--gf-motion-ease), transform var(--gf-motion-base) var(--gf-motion-ease);
}

a.gf-dashboard-stat:hover {
    border-color: rgb(251 146 60 / 0.7);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
    transform: translateY(-2px);
}

.gf-dashboard-stat-header,
.gf-dashboard-integration-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.gf-dashboard-stat-label {
    color: rgb(107 114 128);
    font-size: 0.875rem;
    font-weight: 600;
}

.gf-dashboard-stat-value {
    margin-top: 0.5rem;
    color: rgb(17 24 39);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
}

.gf-dashboard-stat-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: none;
    place-items: center;
    border-radius: 0.75rem;
}

.gf-dashboard-stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.gf-dashboard-stat-icon-primary { color: rgb(234 88 12); background: rgb(255 247 237); }
.gf-dashboard-stat-icon-warning { color: rgb(202 138 4); background: rgb(254 252 232); }
.gf-dashboard-stat-icon-success { color: rgb(22 163 74); background: rgb(240 253 244); }
.gf-dashboard-stat-icon-neutral { color: rgb(75 85 99); background: rgb(243 244 246); }

.gf-dashboard-stat-link,
.gf-dashboard-stat-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.gf-dashboard-stat-link { color: rgb(234 88 12); }
.gf-dashboard-stat-caption { color: rgb(107 114 128); }

.gf-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gf-dashboard-columns,
.gf-dashboard-integrations {
    display: grid;
    gap: 1.5rem;
}

.gf-dashboard-integrations { gap: 1rem; }

.gf-dashboard-list-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgb(243 244 246);
}

.gf-dashboard-list-row:first-child { padding-top: 0; }
.gf-dashboard-list-row:last-child { padding-bottom: 0; border-bottom: 0; }

.gf-dashboard-session-time {
    width: 4rem;
    flex: none;
    text-align: center;
}

.gf-dashboard-session-hour,
.gf-dashboard-list-title {
    color: rgb(17 24 39);
    font-weight: 600;
}

.gf-dashboard-session-hour { font-size: 1.125rem; }
.gf-dashboard-session-date,
.gf-dashboard-list-date { color: rgb(107 114 128); font-size: 0.75rem; }

.gf-dashboard-list-main {
    min-width: 0;
    flex: 1;
}

.gf-dashboard-list-title,
.gf-dashboard-list-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gf-dashboard-list-meta,
.gf-dashboard-integration p {
    color: rgb(107 114 128);
    font-size: 0.875rem;
}

.gf-dashboard-list-side {
    flex: none;
    text-align: right;
}

.gf-dashboard-list-date { margin-top: 0.25rem; }

.gf-dashboard-empty {
    padding: 1.25rem;
    color: rgb(107 114 128);
    font-size: 0.875rem;
    background: rgb(249 250 251);
    border-radius: 0.75rem;
}

.gf-dashboard-integration {
    padding: 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
}

.gf-dashboard-integration h3 {
    color: rgb(17 24 39);
    font-weight: 600;
}

.gf-dashboard-integration p { margin-top: 0.5rem; }

@media (min-width: 40rem) {
    .gf-dashboard-stats,
    .gf-dashboard-integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 80rem) {
    .gf-dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gf-dashboard-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dark .gf-dashboard-stat { background: rgb(17 24 39); border-color: rgb(255 255 255 / 0.1); }
.dark .gf-dashboard-stat-value,
.dark .gf-dashboard-session-hour,
.dark .gf-dashboard-list-title,
.dark .gf-dashboard-integration h3 { color: white; }
.dark .gf-dashboard-stat-label,
.dark .gf-dashboard-stat-caption,
.dark .gf-dashboard-session-date,
.dark .gf-dashboard-list-date,
.dark .gf-dashboard-list-meta,
.dark .gf-dashboard-integration p { color: rgb(156 163 175); }
.dark .gf-dashboard-empty { color: rgb(156 163 175); background: rgb(255 255 255 / 0.05); }
.dark .gf-dashboard-list-row,
.dark .gf-dashboard-integration { border-color: rgb(255 255 255 / 0.1); }

/* Controls should feel responsive without making routine CMS work slower. */
.fi-btn,
.fi-icon-btn,
.fi-link,
.fi-tabs-item,
.fi-sidebar-item-btn {
    transition-duration: var(--gf-motion-fast);
    transition-property: background-color, border-color, box-shadow, color, opacity, transform;
    transition-timing-function: var(--gf-motion-ease);
}

.fi-fo-repeater-item,
.fi-section,
.fi-ta-record,
.fi-ta-row {
    transition-duration: var(--gf-motion-base);
    transition-property: border-color, box-shadow, transform;
    transition-timing-function: var(--gf-motion-ease);
}

@media (hover: hover) and (pointer: fine) {
    .fi-btn:not(:disabled):not(.fi-disabled):hover,
    .fi-icon-btn:not(:disabled):not(.fi-disabled):hover {
        transform: translateY(-1px);
    }

    .fi-tabs-item:hover {
        transform: translateY(-1px);
    }

    .fi-sidebar-item-btn:hover {
        transform: translateX(3px);
    }

    .fi-fo-repeater-item:hover {
        transform: translateY(-1px);
    }
}

.fi-btn:not(:disabled):not(.fi-disabled):active,
.fi-icon-btn:not(:disabled):not(.fi-disabled):active,
.fi-tabs-item:active {
    transform: translateY(0) scale(0.975);
    transition-duration: 80ms;
}

.fi-sc-tabs-tab.fi-active {
    animation: gf-tab-enter var(--gf-motion-base) var(--gf-motion-ease) both;
}

/* The tab entrance animation creates a stacking context. Raise only the tab
   that currently owns an open Select dropdown so later form actions cannot
   paint over its options panel. */
.fi-sc-tabs-tab.fi-active:has(.fi-select-input-btn[aria-expanded='true']) {
    position: relative;
    z-index: 30;
}

.fi-sc-tabs.fi-contained:has(.fi-select-input-btn[aria-expanded='true']) {
    overflow: visible;
}

.fi-select-input-ctn:has(> .fi-select-input-btn[aria-expanded='true']) {
    z-index: 40;
}

.fi-fo-repeater-item:not(.fi-collapsed) > .fi-fo-repeater-item-content {
    animation: gf-card-enter var(--gf-motion-slow) var(--gf-motion-ease) both;
    transform-origin: top center;
}

.fi-fo-repeater-item-header-collapsible-actions,
.fi-fo-repeater-item-header-collapse-action,
.fi-fo-repeater-item-header-expand-action {
    transition-duration: var(--gf-motion-base);
    transition-timing-function: var(--gf-motion-ease);
}

/* The club switcher is the main context control, so it should read as a card,
   not as a narrow generic Filament dropdown. */
.fi-sidebar .fi-tenant-menu-trigger {
    min-height: 3.5rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    background: rgb(249 250 251);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
}

.fi-sidebar .fi-tenant-menu-trigger:hover,
.fi-sidebar .fi-tenant-menu-trigger[aria-expanded='true'] {
    border-color: rgb(251 146 60 / 0.55);
    background: rgb(255 247 237);
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
}

.fi-sidebar .fi-tenant-menu-trigger .fi-tenant-avatar {
    width: 2.25rem;
    height: 2.25rem;
}

.fi-sidebar .fi-tenant-menu-trigger-current-tenant-label {
    color: rgb(107 114 128);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1rem;
    text-transform: uppercase;
}

.fi-sidebar .fi-tenant-menu-trigger-tenant-name {
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35rem;
}

.fi-sidebar .fi-tenant-menu-trigger > .fi-icon {
    display: none;
}

.fi-sidebar .fi-tenant-menu > .fi-dropdown-panel {
    width: 18rem !important;
    min-width: 18rem !important;
    max-width: 18rem !important;
    padding: 0.375rem;
    overflow-x: hidden;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.14), 0 3px 10px rgb(15 23 42 / 0.06);
    transform-origin: top center;
}

.fi-sidebar .fi-tenant-menu > .fi-dropdown-panel[style*='display: block'] {
    animation: gf-menu-enter var(--gf-motion-base) var(--gf-motion-ease) both;
}

.fi-sidebar .fi-tenant-menu .fi-dropdown-list {
    gap: 0.1875rem;
    padding: 0.125rem;
}

.fi-sidebar .fi-tenant-menu .fi-input-wrp {
    margin: 0.25rem 0.25rem 0.5rem;
    border-radius: 0.75rem;
    background: rgb(249 250 251);
    box-shadow: inset 0 0 0 1px rgb(229 231 235);
}

.fi-sidebar .fi-tenant-menu .fi-dropdown-list-item {
    position: relative;
    min-height: 3.25rem;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 550;
    transition: color var(--gf-motion-fast) var(--gf-motion-ease),
        background-color var(--gf-motion-fast) var(--gf-motion-ease);
}

.fi-sidebar .fi-tenant-menu .fi-dropdown-list-item::after {
    content: none;
    display: none;
}

.fi-sidebar .fi-tenant-menu .fi-dropdown-list-item:hover {
    background: linear-gradient(90deg, rgb(255 247 237), rgb(255 251 245));
    color: rgb(17 24 39);
}

.fi-sidebar .fi-tenant-menu .fi-dropdown-list-item-image {
    width: 2rem;
    height: 2rem;
    flex: none;
    box-shadow: 0 0 0 3px rgb(249 250 251);
}

@keyframes gf-tab-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Technical information page */
.gf-tech-page,
.gf-tech-comparison {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gf-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
}

.gf-tech-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.875rem;
    background: linear-gradient(145deg, rgb(255 255 255), rgb(249 250 251));
}

.gf-tech-label,
.gf-tech-note,
.gf-tech-before-after span,
.gf-tech-disclaimer {
    color: rgb(107 114 128);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.gf-tech-value {
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
    color: rgb(17 24 39);
    font-size: 1.075rem;
    font-weight: 700;
}

.gf-tech-note {
    margin-top: 0.5rem;
}

.gf-tech-comparison-row {
    padding: 1.125rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    background: rgb(249 250 251);
}

.gf-tech-comparison-heading,
.gf-tech-before-after,
.gf-tech-quality {
    display: grid;
    gap: 0.875rem;
}

.gf-tech-comparison-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.gf-tech-comparison-heading h3 {
    color: rgb(17 24 39);
    font-size: 0.95rem;
    font-weight: 700;
}

.gf-tech-before-after {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.875rem;
}

.gf-tech-before-after > div {
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: rgb(255 255 255);
}

.gf-tech-before-after > div:last-child {
    border-left: 3px solid rgb(249 115 22);
}

.gf-tech-before-after p {
    margin-top: 0.25rem;
    color: rgb(31 41 55);
    font-size: 0.875rem;
    line-height: 1.55;
}

.gf-tech-quality {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gf-tech-quality-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 0.875rem;
    background: rgb(255 247 237);
}

.gf-tech-quality-card strong {
    color: rgb(234 88 12);
    font-size: 1.5rem;
}

.gf-tech-quality-card span {
    color: rgb(55 65 81);
    font-size: 0.875rem;
}

.gf-tech-disclaimer {
    margin-top: 1rem;
}

.gf-update-summary,
.gf-update-list,
.gf-update-versions {
    display: grid;
    gap: 0.875rem;
}

.gf-update-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gf-update-summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: rgb(249 250 251);
}

.gf-update-summary strong {
    color: rgb(17 24 39);
    font-size: 1.375rem;
}

.gf-update-summary span,
.gf-update-checked,
.gf-update-row p,
.gf-update-versions span,
.gf-update-empty p {
    color: rgb(107 114 128);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.gf-update-checked {
    margin-top: 0.75rem;
}

.gf-update-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.gf-update-row {
    padding: 1rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.875rem;
    background: rgb(255 255 255);
}

.gf-update-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gf-update-heading h3 {
    color: rgb(17 24 39);
    font-size: 0.95rem;
    font-weight: 700;
}

.gf-update-versions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.875rem;
}

.gf-update-versions > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gf-update-versions strong {
    overflow-wrap: anywhere;
    color: rgb(31 41 55);
    font-size: 0.875rem;
}

.gf-update-row p {
    margin-top: 0.75rem;
}

.gf-update-row a {
    display: inline-flex;
    margin-top: 0.65rem;
    color: rgb(234 88 12);
    font-size: 0.8125rem;
    font-weight: 600;
}

.gf-update-empty {
    padding: 1rem;
    border: 1px dashed rgb(209 213 219);
    border-radius: 0.875rem;
    background: rgb(249 250 251);
}

.gf-update-empty strong {
    color: rgb(31 41 55);
}

.gf-update-empty p {
    margin-top: 0.35rem;
}

@media (max-width: 1100px) {
    .gf-tech-grid,
    .gf-tech-quality,
    .gf-update-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gf-tech-grid,
    .gf-tech-quality,
    .gf-tech-before-after,
    .gf-tech-comparison-heading,
    .gf-update-summary,
    .gf-update-list,
    .gf-update-versions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@keyframes gf-card-enter {
    from {
        opacity: 0;
        transform: translateY(-4px) scaleY(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes gf-menu-enter {
    from {
        opacity: 0;
        transform: translateY(-0.35rem) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fi-btn,
    .fi-icon-btn,
    .fi-link,
    .fi-tabs-item,
    .fi-sidebar-item-btn,
    .fi-fo-repeater-item,
    .fi-section,
    .fi-ta-record,
    .fi-ta-row,
    .fi-sidebar .fi-tenant-menu > .fi-dropdown-panel[style*='display: block'],
    .fi-sc-tabs-tab.fi-active,
    .fi-fo-repeater-item:not(.fi-collapsed) > .fi-fo-repeater-item-content {
        animation: none !important;
        transform: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keep the editing workspace compact without shrinking the navigation targets. */
.fi-sidebar-nav {
    padding-block: 1rem;
    gap: 1rem;
}

.fi-sidebar-nav-groups {
    gap: 1.25rem;
}

.gf-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 0.75rem;
    background: rgb(255 255 255);
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    box-shadow: 0 -4px 16px rgb(15 23 42 / 0.06);
}

.dark .gf-form-actions {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}
