.nexo-development-status { padding: .625rem 1rem; text-align: center; font-size: .8125rem; color: #7c2d12; background: #fff7ed; }
.dark .nexo-development-status { color: #fed7aa; background: #431407; }
.nexo-introduction { max-width: 68ch; margin-bottom: .75rem; }
.nexo-secondary { max-width: 68ch; color: #52525b; line-height: 1.6; }
.dark .nexo-secondary { color: #d4d4d8; }
.nexo-shortcuts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.nexo-settings-form { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
.nexo-settings-form > button { justify-self: start; }
.nexo-settings-navigation { flex-shrink: 0; padding: .75rem 1rem; border-top: 1px solid #e4e4e7; }
.dark .nexo-settings-navigation { border-color: #3f3f46; }

.fi-body .fi-sidebar-item-icon {
    inline-size: 1.125rem;
    block-size: 1.125rem;
    flex-shrink: 0;
}

.fi-body .fi-sidebar-item-btn { min-block-size: 2.5rem; }

@media (pointer: coarse) {
    .fi-body .fi-sidebar-item-btn { min-block-size: 2.75rem; }
}

.nexo-brand-lockup { display: flex; align-items: center; gap: .75rem; max-width: 100%; height: 100%; }
.nexo-brand-logo { display: block; width: 6.25rem; min-width: 0; height: auto; max-height: 100%; object-fit: contain; }
.nexo-brand-separator { flex: 0 0 1px; height: 1.75rem; background: #d4d4d8; }
.dark .nexo-brand-separator { background: #52525b; }
.nexo-brand-credit { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: .25rem; font-size: .6875rem; font-weight: 400; line-height: 1; letter-spacing: normal; }
.nexo-brand-credit-text { white-space: nowrap; }
.nexo-brand-credit img { display: block; width: 6.875rem; height: auto; }
.fi-topbar .nexo-brand-credit { flex-direction: row; align-items: center; gap: .5rem; }

.fi-body :is(.fi-btn, .fi-icon-btn, .fi-sidebar-item-btn, .fi-topbar-item-btn, .fi-tabs-item, .fi-pagination-item-btn, .fi-dropdown-list-item, .fi-input-wrp, .fi-checkbox-input, .fi-toggle) {
    transition-property: background-color, color, border-color, box-shadow, opacity, transform;
    transition-duration: 140ms;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.fi-body :is(.fi-btn, .fi-icon-btn):not(.fi-disabled):not([disabled]):not([aria-disabled="true"]):active {
    transform: scale(.985);
}

@media (hover: hover) {
    .fi-body :is(.fi-ta-row.fi-clickable, .fi-ta-record.fi-clickable) {
        transition: background-color 120ms ease-out;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fi-body :is(.fi-btn, .fi-icon-btn, .fi-sidebar-item-btn, .fi-topbar-item-btn, .fi-tabs-item, .fi-pagination-item-btn, .fi-dropdown-list-item, .fi-input-wrp, .fi-checkbox-input, .fi-toggle, .fi-ta-row.fi-clickable, .fi-ta-record.fi-clickable) { transition: none; }
    .fi-body :is(.fi-btn, .fi-icon-btn):not(.fi-disabled):not([disabled]):not([aria-disabled="true"]):active { transform: none; }
}

.fi-body .fi-no {
    inset: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.fi-body .fi-no .fi-no-notification:not(.fi-inline) {
    max-width: 28rem;
    background: #1b1b2f;
    box-shadow: 0 8px 24px rgb(0 0 0 / .2);
    transition-property: opacity, translate, scale;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.fi-body .fi-no .fi-no-notification-main { min-width: 0; }
.fi-body .fi-no .fi-no-notification-title { color: #fff; }
.fi-body .fi-no .fi-no-notification-body { color: #e4e4e7; }
.fi-body .fi-no .fi-no-notification-close-btn { color: #e4e4e7; }
.fi-body .fi-no .fi-no-notification-close-btn:is(:hover, :focus-visible) { background: rgb(255 255 255 / .1); }

.fi-body .fi-no.fi-align-center.fi-vertical-align-end .fi-no-notification.fi-transition-enter-start { translate: 0 .75rem; }
.fi-body .fi-no .fi-no-notification:not(.fi-inline).fi-transition-leave-end { scale: 1; translate: 0 .5rem; }

@media (prefers-reduced-motion: reduce) {
    .fi-body .fi-no .fi-no-notification:not(.fi-inline) { transition: none; }
    .fi-body .fi-no.fi-align-center.fi-vertical-align-end .fi-no-notification:is(.fi-transition-enter-start, .fi-transition-leave-end) { translate: none; scale: none; }
}

/* Livewire owns navigation, history and support/reduced-motion fallback. */
@keyframes nexo-navigation-leave {
    to { opacity: 0; transform: translateY(-2px); }
}
@keyframes nexo-navigation-enter {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
html::view-transition-group(livewire-navigate) { animation: none; }
html::view-transition-old(livewire-navigate),
html::view-transition-new(livewire-navigate) { height: 100%; object-fit: none; object-position: left top; mix-blend-mode: normal; }
html::view-transition-old(livewire-navigate) { animation: nexo-navigation-leave 150ms ease-out both; }
html::view-transition-new(livewire-navigate) { animation: nexo-navigation-enter 200ms cubic-bezier(.16, 1, .3, 1) both; }

.fi-body .fi-main-sidebar,
.fi-body .fi-main-ctn,
.fi-body .fi-dropdown-panel,
.fi-body .fi-modal .fi-modal-window:is(.fi-transition-enter, .fi-transition-leave) {
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

/* Contextual actions keep their full names inside the native, viewport-aware menu. */
.fi-body .nexo-action-menu .fi-dropdown-panel {
    width: min(22rem, calc(100vw - 2rem)) !important;
    max-width: min(22rem, calc(100vw - 2rem)) !important;
}
.fi-body .nexo-action-menu .fi-dropdown-list-item { min-block-size: 2.5rem; white-space: normal; }
.fi-body .nexo-action-menu .fi-dropdown-list-item-label {
    min-inline-size: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.4;
}
.fi-body .nexo-action-menu .fi-dropdown-list-item > .fi-icon { flex-shrink: 0; }
@media (max-width: 640px) {
    .fi-body .nexo-action-menu .fi-dropdown-panel {
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        max-width: calc(100vw - 2rem) !important;
    }
}
@media (pointer: coarse) {
    .fi-body .nexo-action-menu .fi-dropdown-list-item { min-block-size: 2.75rem; }
}
/* Alpine applies overlay timing inline; this scoped rule keeps the native transition. */
.fi-body :is(.fi-modal-close-overlay, .fi-sidebar-close-overlay) { transition-duration: 200ms !important; }

@media (prefers-reduced-motion: reduce) {
    html::view-transition-group(livewire-navigate),
    html::view-transition-old(livewire-navigate),
    html::view-transition-new(livewire-navigate) { animation: none; }
    .fi-body :is(.fi-main-sidebar, .fi-main-ctn, .fi-sidebar-item-label, .fi-sidebar-item-badge-ctn, .fi-dropdown-panel, .fi-modal-window, .fi-modal-close-overlay, .fi-sidebar-close-overlay),
    .fi-body .fi-toggle > div,
    .fi-body .fi-toggle > div > div { transition: none !important; }
}

@keyframes nexo-repeater-item-enter {
    from { opacity: .92; translate: 0 2px; }
    to { opacity: 1; translate: 0 0; }
}
.fi-body .fi-fo-repeater-items > .fi-fo-repeater-item {
    animation: nexo-repeater-item-enter 180ms cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
    .fi-body .fi-fo-repeater-items > .fi-fo-repeater-item { animation: none; }
}

/* Account and project workspaces: generous rhythm, readable clickable cards. */
.fi-body .fi-page { gap: 2rem; }
.fi-body .fi-header-heading { line-height: 1.2; text-wrap: balance; }
.fi-body .fi-tabs { gap: .5rem; padding: .75rem; }
.fi-body .fi-sc-tabs-content { padding: 1.5rem; }
.fi-body .fi-ta-content-grid { gap: 1.25rem; padding: 1.25rem; }
.fi-body .fi-ta-content-grid .fi-ta-record { align-items: stretch; border: 1px solid #e2e2e8; border-radius: 14px; box-shadow: none; }
.fi-body .fi-ta-content-grid .fi-ta-record-content-ctn { padding: 0; gap: 0; }
.fi-body .fi-ta-content-grid .fi-ta-record-content { padding: 1.25rem; }
.dark .fi-ta-content-grid .fi-ta-record { border-color: #343443; }
.nexo-hub-intro { margin-block-end: .25rem; color: #626271; font-size: 1rem; line-height: 1.6; }
.nexo-billing-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1.25rem; }
.nexo-billing-heading h3 { margin: 0; color: var(--nx-ink, #272932); font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.nexo-payment-details { padding-block: 1rem; border-block-start: 1px solid var(--nx-line, #dcdfdf); color: var(--nx-ink, #272932); }
.nexo-payment-details > summary { inline-size: fit-content; min-block-size: 44px; padding-block: .625rem; cursor: pointer; font-size: .875rem; font-weight: 500; }
.nexo-payment-details > summary:focus-visible { outline: 2px solid var(--nx-focus, #062960); outline-offset: 3px; }
.nexo-payment-details-content { display: grid; gap: 1.5rem; padding-block-start: 1rem; }
.nexo-billing-amounts { display: grid; gap: 1rem; margin-block: 1.25rem; font-variant-numeric: tabular-nums; }
.nexo-billing-amounts dt { color: var(--nx-muted, #606570); font-size: .8125rem; line-height: 1.5; }
.nexo-billing-amounts dd { margin: .375rem 0 0; color: var(--nx-ink, #272932); font-size: 1.125rem; line-height: 1.4; }
.nexo-project-grid, .nexo-destination-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; width: 100%; }
.nexo-project-card, .nexo-destination-card { display: flex; flex-direction: column; min-inline-size: 0; padding: 1.75rem; border: 1px solid #e2e2e8; border-radius: 14px; background: #fff; color: #1b1b2f; text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease; }
.nexo-project-card:hover, .nexo-destination-card:hover { border-color: #a7a7b4; background: #fafafa; transform: translateY(-2px); }
.nexo-project-card:focus-visible, .nexo-destination-card:focus-visible { outline: 2px solid #062960; outline-offset: 4px; }
.nexo-project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1.5rem; }
.nexo-destination-icon { inline-size: 1.25rem; block-size: 1.25rem; flex-shrink: 0; }
.nexo-project-card h3, .nexo-destination-card h2 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.nexo-project-card p, .nexo-destination-card p { margin-block: .75rem 1.5rem; color: #626271; font-size: .875rem; line-height: 1.5; }
.nexo-destination-card > .nexo-destination-icon { margin-block-end: 1.5rem; }
.nexo-project-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block-start: auto; padding-block-start: 1.25rem; border-top: 1px solid #eeeeF2; font-size: .8125rem; }
.nexo-card-arrow { inline-size: 1rem; block-size: 1rem; flex-shrink: 0; }
.nexo-project-state { display: inline-flex; align-items: center; align-self: flex-start; inline-size: fit-content; max-inline-size: 100%; padding: .3rem .65rem; border-radius: 6px; background: #f0f0f4; color: #555564; font-size: .75rem; line-height: 1.3; font-weight: 500; white-space: normal; }
.nexo-project-state[data-state="active"] { background: #e9f5ed; color: #23583a; }
.nexo-project-state[data-state="planned"] { background: #fff0e7; color: #994022; }
.nexo-project-state[data-state="completed"] { background: #eeeef4; color: #51516a; }
.nexo-payment-pending { color: #92550a; }
.nexo-empty-copy { padding-block: 1.5rem; color: #626271; }
.dark .nexo-project-card, .dark .nexo-destination-card { background: #1b1b25; color: #f5f5fa; border-color: #363643; }
.dark .nexo-project-card:hover, .dark .nexo-destination-card:hover { background: #23232e; border-color: #797989; }
.dark .nexo-hub-intro, .dark .nexo-project-card p, .dark .nexo-destination-card p, .dark .nexo-empty-copy { color: #b8b8c7; }
.dark .nexo-project-card-footer { border-color: #383843; }
.dark .nexo-project-state { background: #333340; color: #d0d0de; }
.dark .nexo-project-state[data-state="active"] { background: #243d30; color: #a5dfb8; }
.dark .nexo-project-state[data-state="planned"] { background: #4a3024; color: #f3bc9c; }
.dark .nexo-payment-pending { color: #f0bf77; }
@media (max-width: 639px) {
    .fi-body .fi-page { gap: 1.5rem; }
    .fi-body .fi-sc-tabs-content { padding: 1rem; }
    .fi-body .fi-ta-content-grid { gap: 1rem; padding: 1rem; }
    .nexo-project-card, .nexo-destination-card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .nexo-project-card, .nexo-destination-card { transition: none; }
    .nexo-project-card:hover, .nexo-destination-card:hover { transform: none; }
}

ul.nexo-project-grid { margin: 0; padding: 0; list-style: none; }
.nexo-project-grid > li { min-inline-size: 0; }
.nexo-project-grid > li > .nexo-project-card { block-size: 100%; }
.nexo-workspace-actions { margin-block-end: 1.5rem; }
.nexo-document-card h3 { font-size: 1rem; }
.nexo-document-card .nexo-project-card-footer { margin-block-start: 1.5rem; }

