/*
 * Flow Design System
 * Applied to AFV Auto Pages & AFV Simple Portal
 */
:root {
    --flow-font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --flow-primary: #5A41F4;
    --flow-primary-dark: #3b27c0;
    --flow-secondary: #E10B6F;
    --flow-neutral-900: #0F0B2B;
    --flow-neutral-800: #261451;
    --flow-neutral-600: rgba(38, 20, 81, 0.7);
    --flow-neutral-400: rgba(38, 20, 81, 0.45);
    --flow-border: rgba(38, 20, 81, 0.08);
    --flow-border-strong: rgba(38, 20, 81, 0.16);
    --flow-bg: #EBEBFB;
    --flow-bg-soft: #F7F7FF;
    --flow-surface: #FFFFFF;
    --flow-surface-muted: #F5F4FF;
    --flow-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --flow-shadow-elevated: 0 12px 30px rgba(90, 65, 244, 0.25);
    --flow-radius-sm: 12px;
    --flow-radius-md: 16px;
    --flow-radius-lg: 24px;
    --flow-spacing: 24px;
    --flow-transition: all 0.3s ease-in-out;
    --flow-gradient: linear-gradient(135deg, #5A41F4 0%, #E10B6F 100%);
}

@media (max-width: 768px) {
    :root {
        --flow-spacing: 20px;
    }
}

body {
    font-family: var(--flow-font-family);
    background: var(--flow-bg);
    color: var(--flow-neutral-800);
}

.flow-shell {
    background: var(--flow-bg);
    min-height: 100vh;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .flow-shell {
        padding: 20px;
    }
}

.flow-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    border-radius: var(--flow-radius-md);
    background: var(--flow-surface);
    box-shadow: var(--flow-shadow);
    border: 1px solid var(--flow-border);
}

.flow-brand {
    display: flex;
    gap: 16px;
    align-items: center;
}

.flow-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--flow-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.flow-brand-text h1 {
    font-size: 22px;
    margin: 0;
    color: var(--flow-neutral-800);
}

.flow-brand-text p {
    margin: 2px 0 0;
    color: var(--flow-neutral-600);
    font-size: 14px;
}

.flow-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px;
    color: var(--flow-neutral-600);
    margin: 0;
}

.flow-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--flow-bg-soft);
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid var(--flow-border);
}

.flow-search input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    width: 200px;
}

.flow-search input:focus {
    outline: none;
}

.flow-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid var(--flow-border);
    background: var(--flow-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--flow-transition);
}

.flow-icon-btn:hover {
    border-color: var(--flow-primary);
    color: var(--flow-primary);
}

.flow-icon-btn[data-flow-badge]:after {
    content: attr(data-flow-badge);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -14px;
    right: -10px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--flow-secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.flow-icon-btn[data-flow-badge='0']:after {
    display: none;
}

.flow-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid var(--flow-border);
}

.flow-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 2px solid var(--flow-bg);
}

.flow-avatar span {
    display: block;
    font-size: 13px;
    color: var(--flow-neutral-600);
}

.flow-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

@media (max-width: 1100px) {
    .flow-layout {
        grid-template-columns: 1fr;
    }

    .flow-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 280px;
        z-index: 40;
        transition: var(--flow-transition);
    }

    .flow-sidebar.is-open {
        left: 0;
    }
}

.flow-sidebar {
    background: var(--flow-neutral-800);
    border-radius: var(--flow-radius-md);
    padding: 32px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--flow-shadow);
}

.flow-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--flow-radius-sm);
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--flow-transition);
}

.flow-sidebar-link i {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
}

.flow-sidebar-link:hover {
    background: #ffffff !important;
    color: #2d1c8f !important;
}

.flow-sidebar-link:hover i {
    color: #2d1c8f !important;
}

.flow-sidebar-link.is-active {
    background: #fff !important;
    color: #2d1c8f !important;
    box-shadow: var(--flow-shadow);
}

.flow-sidebar-link.is-active i {
    color: #2d1c8f !important;
}

.flow-sidebar-link.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.flow-sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-sidebar-item.has-children > .flow-sidebar-link {
    justify-content: space-between;
}

.flow-sidebar-subnav {
    list-style: none;
    padding-left: 32px;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-sidebar-link-child {
    background: transparent;
    font-size: 13px;
    padding: 8px 10px;
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--flow-radius-sm);
    transition: var(--flow-transition);
    opacity: 0.85;
}

.flow-sidebar-link-child i {
    color: #ffffff !important;
}

.flow-sidebar-link-child:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    opacity: 1;
}

.flow-sidebar-link-child:hover i {
    color: #ffffff;
}

.flow-sidebar-link-child.is-active {
    background: #ffffff !important;
    color: #2d1c8f !important;
}

.flow-sidebar-link-child.is-active i {
    color: #2d1c8f !important;
}

.flow-sidebar-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.flow-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.flow-card {
    background: var(--flow-surface);
    border-radius: var(--flow-radius-md);
    border: 1px solid var(--flow-border);
    padding: 28px;
    box-shadow: var(--flow-shadow);
}

.flow-card.flow-gradient {
    background: var(--flow-gradient);
    color: #fff;
}

.flow-btn {
    border: none;
    border-radius: var(--flow-radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--flow-transition);
    text-decoration: none;
}

.flow-btn-primary {
    background: var(--flow-gradient);
    color: #fff;
    box-shadow: var(--flow-shadow-elevated);
}

.flow-btn-primary:hover {
    transform: translateY(-2px);
}

.flow-btn-outline {
    border: 1px solid var(--flow-primary);
    background: transparent;
    color: var(--flow-primary);
}

.flow-btn-outline:hover {
    background: rgba(90, 65, 244, 0.08);
}

.flow-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(90, 65, 244, 0.08);
    color: var(--flow-primary);
    font-size: 12px;
    font-weight: 600;
}

.flow-alert {
    padding: 16px 20px;
    border-radius: var(--flow-radius-sm);
    border-left: 4px solid;
    background: rgba(244, 67, 54, 0.08);
    color: #b91c1c;
}

.flow-alert.success {
    border-color: #21B191;
    background: rgba(33, 177, 145, 0.1);
    color: #066e58;
}

.flow-alert.warning {
    border-color: #E29A20;
    background: rgba(226, 154, 32, 0.12);
    color: #8a5800;
}

.flow-grid {
    display: grid;
    gap: 20px;
}

.flow-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flow-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-metric-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--flow-neutral-600);
    letter-spacing: 0.3px;
}

.flow-metric-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--flow-neutral-800);
}

.flow-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.flow-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.flow-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--flow-neutral-800);
}

.flow-input,
.flow-select,
.flow-textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--flow-border);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--flow-transition);
    background: #fff;
}

.flow-input:focus,
.flow-select:focus,
.flow-textarea:focus {
    outline: none;
    border-color: var(--flow-primary);
    box-shadow: 0 0 0 3px rgba(90, 65, 244, 0.15);
}

.flow-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 768px) {
    .flow-form-actions {
        flex-direction: column;
    }
    .flow-search {
        display: none;
    }
}

.flow-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: center;
}

@media (max-width: 992px) {
    .flow-hero {
        grid-template-columns: 1fr;
    }
}

.flow-hero-panel {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--flow-radius-md);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.flow-status-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flow-status-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flow-progress {
    background: rgba(90, 65, 244, 0.1);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.flow-progress span {
    display: block;
    height: 100%;
    background: var(--flow-gradient);
}

/* Alerts compatibility */
.afvsp-alert {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--flow-radius-sm);
    border: 1px solid var(--flow-border);
    background: rgba(90, 65, 244, 0.05);
    color: var(--flow-neutral-800);
}

.afvsp-alert.success {
    border-color: rgba(33, 177, 145, 0.3);
    background: rgba(33, 177, 145, 0.08);
    color: #0f6e56;
}

.afvsp-alert.error {
    border-color: rgba(225, 11, 111, 0.3);
    background: rgba(225, 11, 111, 0.1);
    color: #b30754;
}

/* Profile */
.afvsp-profile {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.afv-portal-hero {
    background: var(--flow-gradient);
    color: #fff;
    border-radius: var(--flow-radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.afv-portal-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px;
    margin: 0;
    opacity: 0.85;
}

.afv-portal-hero h2 {
    margin: 0;
    font-size: 40px;
}

.afv-portal-hero-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.afv-portal-chip {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 12px;
    display: inline-flex;
    gap: 6px;
    font-size: 13px;
}

.afv-portal-card {
    border-radius: var(--flow-radius-md);
    border: 1px solid var(--flow-border);
    padding: 28px;
    background: var(--flow-surface);
}

.afvsp-section-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--flow-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.afvsp-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--flow-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Checklist */
.afvsp-journey-board {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.afvsp-checklist-header h2 {
    font-size: 32px;
    margin: 0;
}

.afv-section-card {
    padding: 24px;
    border-radius: var(--flow-radius-md);
    border: 1px solid var(--flow-border);
    background: var(--flow-surface);
}

.afv-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.afv-progress-bar {
    height: 18px;
    border-radius: 999px;
    background: rgba(90, 65, 244, 0.12);
    overflow: hidden;
}

.afv-progress-bar span {
    display: block;
    height: 100%;
    background: var(--flow-gradient);
}

.afvsp-phase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.afvsp-phase-card {
    border-radius: var(--flow-radius-md);
    border: 1px solid var(--flow-border);
    padding: 24px;
    background: var(--flow-surface);
}

.afvsp-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.afvsp-section-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.afvsp-section-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--flow-radius-sm);
    border: 1px solid var(--flow-border);
}

.afvsp-section-items li.completed {
    border-color: rgba(33, 177, 145, 0.4);
    background: rgba(33, 177, 145, 0.08);
}

/* Checklist Board */
.afvsp-checklist-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    background: var(--flow-primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    z-index: 50;
}

.afvsp-checklist-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.afvsp-checklist-brow {
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px;
    color: rgba(38, 20, 81, 0.7);
}

.afvsp-checklist-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--flow-neutral-800);
}

.afvsp-checklist-subtitle {
    margin: 0;
    color: var(--flow-neutral-600);
}

.afv-notification {
    padding: 18px 20px;
    border-radius: var(--flow-radius-sm);
    border-left: 4px solid;
    background: rgba(90, 65, 244, 0.08);
}

.afv-notification.success {
    border-color: #21B191;
    background: rgba(33, 177, 145, 0.12);
}

.afv-notification.error {
    border-color: #E10B6F;
    background: rgba(225, 11, 111, 0.1);
}

.afv-notification-title {
    margin: 0;
    font-weight: 600;
}

.afv-notification-message {
    margin: 0;
    color: var(--flow-neutral-800);
}

.afv-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.afv-progress-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--flow-neutral-600);
}

.afv-progress-count {
    font-size: 14px;
    color: var(--flow-neutral-800);
}

.afv-progress-bar {
    position: relative;
    border-radius: 999px;
}

.afv-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--flow-gradient);
    transition: width 0.4s ease;
}

.afv-progress-percentage {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.afvsp-phases-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.afv-phase-card {
    border-radius: var(--flow-radius-lg);
    border: 1px solid var(--flow-border);
    background: var(--flow-surface);
    padding: 28px;
    box-shadow: var(--flow-shadow);
}

.afv-phase-pin {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(90, 65, 244, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flow-primary);
    font-weight: 700;
}

.afv-phase-path {
    height: 2px;
    background: rgba(90, 65, 244, 0.1);
    margin: 16px 0;
}

.afv-phase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.afv-phase-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.afv-phase-number {
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(38, 20, 81, 0.6);
}

.afv-phase-title {
    font-size: 22px;
    margin: 0;
}

.afv-phase-progress-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(90, 65, 244, 0.12);
    color: var(--flow-primary);
    font-size: 12px;
    font-weight: 600;
}

.afv-phase-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--flow-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.afv-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.afv-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--flow-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.afv-section-title {
    margin: 0;
    font-size: 18px;
}

.afv-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.afv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--flow-radius-sm);
    border: 1px solid var(--flow-border);
}

.afv-item.is-checked {
    border-color: rgba(33, 177, 145, 0.5);
    background: rgba(33, 177, 145, 0.08);
}

.afv-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid var(--flow-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afv-checkbox::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: transparent;
}

.afv-item.is-checked .afv-checkbox {
    border-color: var(--flow-primary);
}

.afv-item.is-checked .afv-checkbox::after {
    background: var(--flow-gradient);
}

.afv-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.afv-label {
    font-weight: 600;
    color: var(--flow-neutral-800);
}

.afv-desc {
    color: var(--flow-neutral-600);
    font-size: 14px;
}

.afv-section-card {
    border-radius: var(--flow-radius-md);
    border: 1px solid var(--flow-border);
    padding: 20px;
    background: var(--flow-surface);
}

.afv-section-text {
    flex: 1;
}

.afv-section-subtitle,
.afv-section-hint {
    margin: 6px 0 0;
    color: var(--flow-neutral-600);
    font-size: 14px;
}

.afv-section-progress {
    font-size: 14px;
    color: var(--flow-neutral-600);
}

.afv-section-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--flow-neutral-600);
}

.afv-section-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(38, 20, 81, 0.08);
    font-size: 12px;
    font-weight: 600;
}

.afv-checkbox-chip {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
}

.afv-checkbox-ring {
    width: 20px;
    height: 20px;
}

.afv-checkbox-check {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: var(--flow-transition);
    color: #fff;
}

.afv-item.is-checked .afv-checkbox-check {
    opacity: 1;
}

.afv-empty-state {
    border: 1px dashed var(--flow-border);
    border-radius: var(--flow-radius-md);
    padding: 40px;
    text-align: center;
    background: var(--flow-bg-soft);
}

.afv-empty-state-title {
    margin: 12px 0 8px;
    font-size: 22px;
}

.afv-empty-state-message {
    margin: 0;
    color: var(--flow-neutral-600);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Shortcuts */
.afvsp-portal-shortcuts {
    border-radius: var(--flow-radius-md);
    border: 1px solid var(--flow-border);
    background: var(--flow-surface);
    padding: 24px;
}

.afv-portal-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.afv-portal-shortcut-card {
    border-radius: var(--flow-radius-sm);
    border: 1px solid var(--flow-border);
    background: var(--flow-bg-soft);
    padding: 20px;
    text-decoration: none;
    color: var(--flow-neutral-800);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--flow-transition);
}

.afv-portal-shortcut-card:hover {
    border-color: var(--flow-primary);
    box-shadow: var(--flow-shadow);
    transform: translateY(-2px);
}

.afv-portal-shortcut-icon {
    font-size: 28px;
}

.afvsp-case-card {
    background: var(--flow-surface);
}

.afvsp-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--flow-border);
}

.afvsp-info-row:last-child {
    border-bottom: none;
}

.afvsp-info-label {
    color: var(--flow-neutral-600);
    font-size: 14px;
    font-weight: 600;
}

.afvsp-info-value {
    font-weight: 700;
    color: var(--flow-neutral-800);
}

/* Upload */
.afvsp-upload {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.afvsp-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.afvsp-dropzone {
    border: 1px dashed var(--flow-border-strong);
    border-radius: var(--flow-radius-md);
    padding: 32px;
    text-align: center;
    background: var(--flow-bg-soft);
    transition: var(--flow-transition);
}

.afvsp-dropzone:hover {
    border-color: var(--flow-primary);
    background: rgba(90, 65, 244, 0.05);
}

.afvsp-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.afvsp-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--flow-radius-sm);
    border: 1px solid var(--flow-border);
}

.afvsp-recent-item span {
    font-size: 13px;
    color: var(--flow-neutral-600);
}

.afvsp-upload-empty {
    border: 1px dashed var(--flow-border);
    padding: 24px;
    border-radius: var(--flow-radius-md);
    text-align: center;
}

.afvsp-upload-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--flow-neutral-600);
}

.afvsp-upload-table-wrapper {
    border: 1px solid var(--flow-border);
    border-radius: var(--flow-radius-md);
    overflow-x: auto;
    background: var(--flow-surface);
}

.afv-portal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.afv-portal-table thead th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
    background: var(--flow-bg-soft);
    color: var(--flow-neutral-600);
    padding: 12px;
}

.afv-portal-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--flow-border);
}

.afvsp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.afvsp-badge-success {
    background: rgba(33, 177, 145, 0.15);
    color: #0f6e56;
}

.afvsp-badge-warning {
    background: rgba(225, 11, 111, 0.15);
    color: #b30754;
}

.afv-portal-link {
    color: var(--flow-primary);
    text-decoration: underline;
}

/* Accordions */
.flow-accordion {
    border-radius: var(--flow-radius-md);
    border: 1px solid var(--flow-border);
    background: var(--flow-surface);
}

.flow-accordion-item + .flow-accordion-item {
    border-top: 1px solid var(--flow-border);
}

.flow-accordion-button {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-accordion-panel {
    display: none;
    padding: 0 24px 18px;
}

.flow-accordion-item.is-open .flow-accordion-panel {
    display: block;
}

/* Tables */
.flow-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
}

.flow-table thead th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
    background: var(--flow-bg-soft);
    color: var(--flow-neutral-600);
    padding: 14px;
}

.flow-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--flow-border);
}

/* Utility */
.flow-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flow-sidebar-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .flow-sidebar-toggle {
        display: flex;
    }
}

/* Tooltip */
.flow-tooltip {
    position: absolute;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--flow-neutral-800);
    color: #fff;
    font-size: 12px;
    box-shadow: var(--flow-shadow);
    opacity: 0;
    transform: translate(-50%, -4px);
    pointer-events: none;
    transition: var(--flow-transition);
    z-index: 999;
}

.flow-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, -8px);
}
