/* ==========================================================================
   IcingVault — Front-end App Shell Styles
   ========================================================================== */

/* ── 1. CSS Custom Properties ─────────────────────────────────────────────── */
:root {
    --iv-color-primary:       #7c5cbf;
    --iv-color-primary-dark:  #6344a8;
    --iv-color-primary-light: #ede8f8;
    --iv-color-secondary:     #e8a0c0;
    --iv-color-accent:        #f5c2d8;

    --iv-color-success:       #22c55e;
    --iv-color-success-bg:    #f0fdf4;
    --iv-color-warning:       #f59e0b;
    --iv-color-warning-bg:    #fffbeb;
    --iv-color-danger:        #ef4444;
    --iv-color-danger-bg:     #fef2f2;
    --iv-color-info:          #3b82f6;
    --iv-color-info-bg:       #eff6ff;

    --iv-color-text:          #1e1e2e;
    --iv-color-text-muted:    #6b7280;
    --iv-color-text-light:    #9ca3af;
    --iv-color-border:        #e5e7eb;
    --iv-color-border-dark:   #d1d5db;
    --iv-color-bg:            #f8f7fc;
    --iv-color-bg-white:      #ffffff;
    --iv-color-bg-hover:      #f3f4f6;

    --iv-topbar-height:       60px;
    --iv-nav-width:           240px;
    --iv-nav-width-collapsed: 64px;
    --iv-header-height:       84px;
    --iv-navbar-height:       48px;
    --iv-shell-height:        132px; /* header + navbar */

    --iv-radius-sm:  4px;
    --iv-radius:     8px;
    --iv-radius-lg:  12px;
    --iv-radius-xl:  16px;
    --iv-radius-full: 9999px;

    --iv-shadow-sm:  0 1px 2px rgba(0,0,0,.05);
    --iv-shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --iv-shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --iv-shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);

    --iv-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --iv-font-mono: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;

    --iv-transition: 150ms ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.iv-app-body {
    font-family: var(--iv-font-sans);
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--iv-color-text);
    background: var(--iv-color-bg);
    overflow-x: hidden;
}

a {
    color: var(--iv-color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── 3. App Shell Layout ──────────────────────────────────────────────────── */

/* Wrapper */
.iv-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Header bar (white, logo left + user menu right) ── */
.iv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--iv-header-height);
    background: var(--iv-color-bg-white);
    border-bottom: 1px solid var(--iv-color-border);
    display: flex;
    align-items: center;
    z-index: 200;
    box-shadow: var(--iv-shadow-sm);
}

.iv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1.75rem;
}

.iv-header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.iv-header-brand:hover { text-decoration: none; }

/* SweetTube partner logo — left side */
.iv-header-partner {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.iv-header-partner:hover {
    opacity: .85;
    text-decoration: none;
}

.iv-header-partner-logo {
    height: 66px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Vertical divider between partner logo and plugin name */
.iv-header-brand-divider {
    display: block;
    width: 1px;
    height: 60px;
    background: var(--iv-color-border-dark);
    flex-shrink: 0;
}

/* Plugin name + tagline + version — right of divider */
.iv-header-name {
    display: flex;
    flex-direction: column;
    gap: .0625rem;
    line-height: 1.25;
}

.iv-header-plugin-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--iv-color-text);
    letter-spacing: -.025em;
    line-height: 1.1;
}

.iv-header-tagline {
    font-size: .875rem;
    font-weight: 400;
    color: var(--iv-color-text-muted);
}

.iv-header-version {
    font-size: .75rem;
    font-weight: 400;
    color: var(--iv-color-text-light);
    letter-spacing: .01em;
}

/* Hide old standalone plugin icon (no longer used in header) */
.iv-header-logo {
    display: none;
}

.iv-header-right {
    display: flex;
    align-items: center;
    gap: .875rem;
}

/* "Howdy, Name" label inside user button */
.iv-header-howdy {
    font-size: .875rem;
    color: var(--iv-color-text-muted);
    white-space: nowrap;
}

.iv-header-howdy strong {
    color: var(--iv-color-text);
    font-weight: 600;
}

/* ── Purple navbar (full-width, sits below header) ── */
.iv-navbar {
    position: fixed;
    top: var(--iv-header-height);
    left: 0;
    right: 0;
    height: var(--iv-navbar-height);
    background: var(--iv-color-primary);
    z-index: 190;
    box-shadow: 0 2px 8px rgba(124, 92, 191, .3);
}

.iv-navbar-inner {
    display: flex;
    align-items: stretch;
    height: 100%;
    padding: 0 1.25rem;
    gap: .125rem;
    max-width: 1400px;
    margin: 0 auto;
}

.iv-navbar-link {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    padding: 0 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color var(--iv-transition), border-color var(--iv-transition), background var(--iv-transition);
    white-space: nowrap;
}

.iv-navbar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
    border-bottom-color: rgba(255, 255, 255, .4);
}

.iv-navbar-active {
    color: #fff !important;
    font-weight: 700;
    border-bottom-color: #fff !important;
    background: rgba(255, 255, 255, .12);
}

.iv-navbar-icon {
    font-size: 1rem;
    line-height: 1;
}

/* User menu */
.iv-user-menu {
    position: relative;
}

.iv-user-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .75rem;
    background: none;
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-full);
    cursor: pointer;
    font-size: .875rem;
    color: var(--iv-color-text);
    transition: background var(--iv-transition), border-color var(--iv-transition);
}

.iv-user-btn:hover {
    background: var(--iv-color-bg-hover);
    border-color: var(--iv-color-border-dark);
}

.iv-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--iv-radius-full);
    background: var(--iv-color-primary-light);
    color: var(--iv-color-primary);
    font-weight: 700;
    font-size: .8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iv-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iv-user-caret {
    font-size: .625rem;
    color: var(--iv-color-text-muted);
    transition: transform var(--iv-transition);
}

.iv-user-menu.open .iv-user-caret {
    transform: rotate(180deg);
}

.iv-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    box-shadow: var(--iv-shadow-lg);
    overflow: hidden;
    z-index: 300;
}

.iv-user-menu.open .iv-user-dropdown {
    display: block;
}

.iv-user-dropdown-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--iv-color-border);
    background: var(--iv-color-bg);
}

.iv-user-dropdown-name {
    font-weight: 600;
    font-size: .9375rem;
    color: var(--iv-color-text);
}

.iv-user-dropdown-email {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
}

.iv-user-dropdown a,
.iv-user-dropdown button {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .625rem 1rem;
    font-size: .875rem;
    color: var(--iv-color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background var(--iv-transition);
}

.iv-user-dropdown a:hover,
.iv-user-dropdown button:hover {
    background: var(--iv-color-bg-hover);
    text-decoration: none;
}

.iv-user-dropdown .iv-dropdown-danger {
    color: var(--iv-color-danger);
    border-top: 1px solid var(--iv-color-border);
}

/* Body layout (legacy, kept for compatibility) */
.iv-body {
    display: flex;
    flex-direction: column;
}

/* ── 4. Sidebar (hidden — layout uses top navbar instead) ─────────────────── */
.iv-sidebar { display: none; }
.iv-nav { display: none; }

/* Main content area */
.iv-main {
    flex: 1;
    margin-left: 0;
    padding-top: calc(var(--iv-shell-height) + 1.75rem);
    padding-bottom: 2.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    min-width: 0;
}

/* ── 5. Auth Layout ───────────────────────────────────────────────────────── */
body.iv-auth-body {
    background: var(--iv-color-bg);
    font-family: var(--iv-font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.iv-auth-wrap {
    width: 100%;
    max-width: 420px;
}

.iv-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--iv-color-primary);
    margin-bottom: 1.75rem;
    text-decoration: none;
}

.iv-auth-logo:hover { text-decoration: none; }

.iv-auth-card {
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-xl);
    padding: 2rem;
    box-shadow: var(--iv-shadow-md);
}

.iv-auth-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--iv-color-text);
    margin-bottom: .25rem;
}

.iv-auth-desc {
    color: var(--iv-color-text-muted);
    font-size: .9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.iv-auth-footer-text {
    text-align: center;
    color: var(--iv-color-text-muted);
    font-size: .875rem;
    margin-top: 1.25rem;
}

/* Resend verification email block (shown under the error on login / verify-email pages) */
.iv-resend-block {
    margin-top: 1rem;
    padding: .875rem 1rem;
    background: var(--iv-color-bg-subtle, #f8f5ff);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-md);
    text-align: center;
}

.iv-resend-text {
    font-size: .875rem;
    color: var(--iv-color-text-muted);
    margin-bottom: .625rem;
}

.iv-resend-form {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    align-items: center;
}

.iv-resend-form .iv-form-group {
    width: 100%;
    margin-bottom: 0;
}

/* ── 5b. Tier Badges (in header) ─────────────────────────────────────────── */
.iv-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .625rem;
    border-radius: var(--iv-radius-full);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.iv-tier-pro {
    background: linear-gradient(135deg, var(--iv-color-primary-light), #e5d9f8);
    color: var(--iv-color-primary-dark);
    border: 1px solid #d4c4f0;
}

.iv-tier-free {
    background: var(--iv-color-bg);
    color: var(--iv-color-text-muted);
    border: 1px solid var(--iv-color-border);
}

/* "Upgrade to Pro" link in header */
a.iv-tier-upgrade {
    background: linear-gradient(135deg, #7c5cbf, #9b7dd4);
    color: #fff !important;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--iv-transition), transform var(--iv-transition);
}

a.iv-tier-upgrade:hover {
    opacity: .9;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── 5c. App Footer ───────────────────────────────────────────────────────── */
.iv-footer {
    background: var(--iv-color-bg-white);
    border-top: 1px solid var(--iv-color-border);
    padding: .875rem 2rem;
    margin-top: auto;
}

.iv-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
    max-width: 1400px;
    margin: 0 auto;
}

.iv-footer-links {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.iv-footer-sep {
    color: var(--iv-color-border);
    user-select: none;
}

.iv-footer-copy a,
.iv-footer-links a {
    color: var(--iv-color-text-muted);
    text-decoration: none;
    transition: color .15s;
}

.iv-footer-copy a:hover,
.iv-footer-links a:hover {
    color: var(--iv-color-primary);
    text-decoration: none;
}

/* ── 5d. Container ────────────────────────────────────────────────────────── */
.iv-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ── 6. Alerts ────────────────────────────────────────────────────────────── */
.iv-alert {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .875rem 1rem;
    border-radius: var(--iv-radius);
    font-size: .9375rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.iv-alert-success {
    background: var(--iv-color-success-bg);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.iv-alert-error {
    background: var(--iv-color-danger-bg);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.iv-alert-warning {
    background: var(--iv-color-warning-bg);
    border: 1px solid #fde68a;
    color: #92400e;
}

.iv-alert-info {
    background: var(--iv-color-info-bg);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.iv-alert-dismissible {
    position: relative;
    padding-right: 2.5rem;
}

.iv-alert-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .5;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    color: inherit;
}

.iv-alert-close:hover { opacity: 1; }

/* ── 7. Cards ─────────────────────────────────────────────────────────────── */
.iv-card {
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    box-shadow: var(--iv-shadow-sm);
    overflow: hidden;
}

.iv-card-mt {
    margin-top: 1.25rem;
}

.iv-card-danger {
    border-color: #fecaca;
}

.iv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--iv-color-border);
    flex-wrap: wrap;
}

.iv-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--iv-color-text);
    margin: 0;
}

.iv-card-subtitle {
    font-size: .875rem;
    color: var(--iv-color-text-muted);
    margin: .125rem 0 0;
}

.iv-card-count {
    font-size: .875rem;
    color: var(--iv-color-text-muted);
}

.iv-card-body {
    padding: 1.25rem;
}

.iv-card-body-flush {
    padding: 0;
}

.iv-card-divider {
    border: none;
    border-top: 1px solid var(--iv-color-border);
    margin: 1.25rem 0;
}

.iv-card-desc {
    color: var(--iv-color-text-muted);
    font-size: .9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ── 8. Page Header ───────────────────────────────────────────────────────── */
.iv-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.iv-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--iv-color-text);
    margin: 0;
}

.iv-page-subtitle {
    font-size: .9375rem;
    color: var(--iv-color-text-muted);
    margin: .25rem 0 0;
}

/* ── 9. Stats Grid ────────────────────────────────────────────────────────── */
.iv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.iv-stats-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.iv-stat-card {
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    box-shadow: var(--iv-shadow-sm);
    position: relative;
}

.iv-stat-card-sm {
    padding: 1rem;
}

.iv-stat-card-pro {
    background: linear-gradient(135deg, #fdf4ff, var(--iv-color-primary-light));
    border-color: #d8b4fe;
}

.iv-stat-card-free {
    background: var(--iv-color-bg);
}

.iv-stat-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.iv-stat-body {
    flex: 1;
}

.iv-stat-value {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--iv-color-text);
    line-height: 1.1;
}

.iv-stat-label {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
    margin-top: .25rem;
}

.iv-stat-meta {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
}

.iv-stat-link {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--iv-color-primary);
}

/* ── 10. Usage Bar ────────────────────────────────────────────────────────── */
.iv-usage-bar-wrap {
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.iv-usage-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    color: var(--iv-color-text-muted);
    margin-bottom: .5rem;
}

.iv-usage-bar {
    height: 8px;
    background: var(--iv-color-border);
    border-radius: var(--iv-radius-full);
    overflow: hidden;
}

.iv-usage-bar-fill {
    height: 100%;
    background: var(--iv-color-primary);
    border-radius: var(--iv-radius-full);
    transition: width .5s ease;
}

.iv-usage-bar-warn  { background: var(--iv-color-warning); }
.iv-usage-bar-danger { background: var(--iv-color-danger); }

.iv-usage-warning {
    font-size: .875rem;
    color: var(--iv-color-danger);
    margin-top: .5rem;
}

/* ── 11. Tables ───────────────────────────────────────────────────────────── */
.iv-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.iv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}

.iv-table th,
.iv-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--iv-color-border);
    vertical-align: middle;
}

.iv-table th {
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--iv-color-text-muted);
    background: var(--iv-color-bg);
    white-space: nowrap;
}

.iv-table tbody tr:last-child td {
    border-bottom: none;
}

.iv-table tbody tr:hover td {
    background: var(--iv-color-bg);
}

.iv-table tfoot th,
.iv-tr-total th,
.iv-tr-total td {
    font-weight: 700;
    background: var(--iv-color-bg);
    border-top: 2px solid var(--iv-color-border-dark);
}

.iv-th-actions { width: 1%; white-space: nowrap; }
.iv-th-num     { text-align: right; }
.iv-td-actions { white-space: nowrap; }
.iv-td-num     { text-align: right; }
.iv-td-date    { white-space: nowrap; color: var(--iv-color-text-muted); font-size: .875rem; }
.iv-td-name    { font-weight: 500; }
.iv-td-name a  { color: var(--iv-color-text); text-decoration: none; }
.iv-td-name a:hover { color: var(--iv-color-primary); text-decoration: underline; }

.iv-action-link {
    font-size: .875rem;
    color: var(--iv-color-primary);
    font-weight: 500;
    margin-left: .75rem;
}

.iv-action-link:first-child { margin-left: 0; }

.iv-sku {
    display: inline-block;
    margin-left: .5rem;
    font-size: .8rem;
    color: var(--iv-color-text-muted);
    font-family: var(--iv-font-mono);
    background: var(--iv-color-bg);
    padding: 0 .375rem;
    border-radius: var(--iv-radius-sm);
    border: 1px solid var(--iv-color-border);
}

/* ── 12. Pagination ───────────────────────────────────────────────────────── */
.iv-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .875rem 1.25rem;
    border-top: 1px solid var(--iv-color-border);
    flex-wrap: wrap;
}

.iv-pagination-info {
    font-size: .875rem;
    color: var(--iv-color-text-muted);
}

.iv-pagination-pages {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
}

.iv-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 .625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 500;
    color: var(--iv-color-text-muted);
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--iv-transition), border-color var(--iv-transition), color var(--iv-transition);
}

.iv-page-btn:hover {
    background: var(--iv-color-bg-hover);
    border-color: var(--iv-color-border-dark);
    color: var(--iv-color-text);
    text-decoration: none;
}

.iv-page-btn.iv-page-current,
.iv-page-btn[aria-current="page"] {
    background: var(--iv-color-primary);
    border-color: var(--iv-color-primary);
    color: #fff;
    pointer-events: none;
}

.iv-page-btn.iv-page-disabled,
.iv-page-btn[disabled] {
    opacity: .4;
    pointer-events: none;
}

/* ── 13. Buttons ──────────────────────────────────────────────────────────── */
.iv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    padding: .5625rem 1.125rem;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--iv-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--iv-transition), border-color var(--iv-transition),
                color var(--iv-transition), box-shadow var(--iv-transition);
    font-family: var(--iv-font-sans);
}

.iv-btn:hover { text-decoration: none; }

.iv-btn:focus-visible {
    outline: 2px solid var(--iv-color-primary);
    outline-offset: 2px;
}

.iv-btn-full { width: 100%; }

/* Primary */
.iv-btn-primary {
    background: var(--iv-color-primary);
    color: #fff;
}
.iv-btn-primary:hover {
    background: var(--iv-color-primary-dark);
    color: #fff;
}

/* Secondary */
.iv-btn-secondary {
    background: var(--iv-color-bg);
    color: var(--iv-color-text);
    border-color: var(--iv-color-border-dark);
}
.iv-btn-secondary:hover {
    background: var(--iv-color-bg-hover);
    color: var(--iv-color-text);
}

/* Ghost */
.iv-btn-ghost {
    background: transparent;
    color: var(--iv-color-text-muted);
    border-color: var(--iv-color-border);
}
.iv-btn-ghost:hover {
    background: var(--iv-color-bg-hover);
    color: var(--iv-color-text);
}

/* Danger */
.iv-btn-danger {
    background: var(--iv-color-danger);
    color: #fff;
}
.iv-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

/* Sizes */
.iv-btn-sm {
    padding: .375rem .75rem;
    font-size: .875rem;
}

.iv-btn-xs {
    padding: .25rem .5rem;
    font-size: .8125rem;
}

/* ── 14. Forms ────────────────────────────────────────────────────────────── */
.iv-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.iv-form-group {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    margin-bottom: 1.125rem;
}

.iv-form-group:last-child { margin-bottom: 0; }

.iv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.iv-form-divider {
    border: none;
    border-top: 1px solid var(--iv-color-border);
    margin: 1.25rem 0;
}

.iv-form-section-title {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--iv-color-text);
    margin-bottom: 1rem;
}

.iv-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--iv-color-text);
}

.iv-required > .iv-label::after {
    content: ' *';
    color: var(--iv-color-danger);
}

.iv-input,
.iv-select,
.iv-textarea {
    width: 100%;
    padding: .5625rem .875rem;
    font-size: .9375rem;
    font-family: var(--iv-font-sans);
    color: var(--iv-color-text);
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border-dark);
    border-radius: var(--iv-radius);
    transition: border-color var(--iv-transition), box-shadow var(--iv-transition);
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.5;
}

.iv-input:focus,
.iv-select:focus,
.iv-textarea:focus {
    outline: none;
    border-color: var(--iv-color-primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, .15);
}

.iv-input::placeholder,
.iv-textarea::placeholder {
    color: var(--iv-color-text-light);
}

.iv-input-emoji {
    font-size: 1.25rem;
    width: 80px;
}

.iv-input-mono {
    font-family: var(--iv-font-mono);
    letter-spacing: .05em;
}

.iv-select {
    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='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.iv-textarea {
    resize: vertical;
    min-height: 80px;
}

.iv-input-wrap {
    position: relative;
}

.iv-input-wrap .iv-input {
    padding-right: 2.75rem;
}

.iv-toggle-pw {
    position: absolute;
    right: .625rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: .5;
    padding: 0;
    line-height: 1;
}

.iv-toggle-pw:hover { opacity: .8; }

.iv-field-hint {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
}

.iv-field-hint.iv-text-warning { color: var(--iv-color-warning); }
.iv-field-hint.iv-text-danger  { color: var(--iv-color-danger); }

.iv-inline-form { display: inline; }

/* Checkbox */
.iv-checkbox-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.iv-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--iv-color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.iv-checkbox-label {
    font-size: .9375rem;
    color: var(--iv-color-text);
    cursor: pointer;
}

/* Search bar */
.iv-search-bar {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.iv-search-bar .iv-form-group {
    margin-bottom: 0;
}

.iv-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.iv-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iv-color-text-muted);
    font-style: normal;
    pointer-events: none;
}

.iv-search-input-wrap .iv-input {
    padding-left: 2.25rem;
}

/* ── Equipment Filter Bar ────────────────────────────────────────────────── */
.iv-filter-bar {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-wrap: wrap;
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--iv-shadow-sm);
}

.iv-search-wrap {
    position: relative;
    flex: 1 1 240px;
    min-width: 200px;
}

.iv-search-wrap .iv-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-size: .9375rem;
    pointer-events: none;
    color: var(--iv-color-text-muted);
    line-height: 1;
}

.iv-search-input {
    width: 100%;
    padding: .5rem .875rem .5rem 2.25rem;
    font-size: .875rem;
    font-family: var(--iv-font-sans);
    color: var(--iv-color-text);
    background: var(--iv-color-bg);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius);
    transition: border-color var(--iv-transition), box-shadow var(--iv-transition);
}

.iv-search-input:focus {
    outline: none;
    border-color: var(--iv-color-primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, .15);
    background: var(--iv-color-bg-white);
}

.iv-search-input::placeholder {
    color: var(--iv-color-text-light);
}

.iv-filter-bar .iv-select {
    flex: 0 1 180px;
    min-width: 140px;
    font-size: .875rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: var(--iv-color-bg);
}

.iv-filter-bar .iv-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: .875rem;
}

/* ── Equipment Page Header Actions ───────────────────────────────────────── */
.iv-page-header-actions {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-wrap: wrap;
}

/* ── View Toggle ─────────────────────────────────────────────────────────── */
.iv-view-toggle {
    display: flex;
    align-items: center;
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius);
    overflow: hidden;
    background: var(--iv-color-bg-white);
}

.iv-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--iv-color-text-muted);
    background: transparent;
    border: none;
    text-decoration: none;
    transition: background var(--iv-transition), color var(--iv-transition);
    cursor: pointer;
}

.iv-view-btn:hover {
    background: var(--iv-color-bg);
    color: var(--iv-color-text);
    text-decoration: none;
}

.iv-view-btn-active {
    background: var(--iv-color-primary-light);
    color: var(--iv-color-primary);
}

.iv-view-btn + .iv-view-btn {
    border-left: 1px solid var(--iv-color-border);
}

/* ── Equipment Grid / Card View ──────────────────────────────────────────── */
.iv-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.iv-eq-card {
    position: relative;
    background: var(--iv-color-bg-white);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    box-shadow: var(--iv-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--iv-transition), border-color var(--iv-transition);
    overflow: hidden;
}

.iv-eq-card:hover {
    box-shadow: var(--iv-shadow-md);
    border-color: var(--iv-color-border-dark);
}

/* Checkbox in top-left corner */
.iv-eq-card-check {
    position: absolute;
    top: .625rem;
    left: .625rem;
    z-index: 2;
    line-height: 1;
    cursor: pointer;
}

.iv-eq-card-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--iv-color-primary);
    cursor: pointer;
}

/* Image area */
.iv-eq-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--iv-color-bg);
    overflow: hidden;
    border-bottom: 1px solid var(--iv-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.iv-eq-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iv-eq-card-placeholder {
    font-size: 2.5rem;
    line-height: 1;
    opacity: .35;
    user-select: none;
}

/* Card body */
.iv-eq-card-body {
    padding: .875rem 1rem .5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3125rem;
}

.iv-eq-card-title {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--iv-color-text);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iv-eq-card-title:hover {
    color: var(--iv-color-primary);
    text-decoration: underline;
}

.iv-eq-card-meta {
    display: flex;
    align-items: center;
    gap: .375rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.iv-eq-card-cat {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
    background: var(--iv-color-bg);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-sm);
    padding: .125rem .5rem;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iv-eq-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .5rem;
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
}

.iv-eq-card-price {
    font-weight: 600;
    color: var(--iv-color-text);
}

/* Card actions bar */
.iv-eq-card-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1rem;
    border-top: 1px solid var(--iv-color-border);
    background: var(--iv-color-bg);
}

.iv-eq-card-actions .iv-action-link {
    font-size: .8125rem;
}

/* ── 15. Condition Badges ─────────────────────────────────────────────────── */
.iv-badge {
    display: inline-flex;
    align-items: center;
    padding: .1875rem .625rem;
    border-radius: var(--iv-radius-full);
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.iv-badge-pro {
    background: var(--iv-color-primary-light);
    color: var(--iv-color-primary);
}

.iv-badge-free {
    background: var(--iv-color-bg);
    color: var(--iv-color-text-muted);
    border: 1px solid var(--iv-color-border);
}

.iv-condition-new       { background: #ecfdf5; color: #065f46; }
.iv-condition-excellent { background: #eff6ff; color: #1e40af; }
.iv-condition-good      { background: #f0fdf4; color: #166534; }
.iv-condition-fair      { background: #fffbeb; color: #92400e; }
.iv-condition-poor      { background: #fef2f2; color: #991b1b; }
.iv-condition-unknown   { background: #f3f4f6; color: #4b5563; }

/* ── 16. Two-column Layout ────────────────────────────────────────────────── */
.iv-two-col-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.iv-col-main    { min-width: 0; }
.iv-col-sidebar { min-width: 0; }

/* ── 17. Sections ─────────────────────────────────────────────────────────── */
.iv-section {
    margin-top: 1.5rem;
}

.iv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .875rem;
}

.iv-section-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--iv-color-text);
    margin: 0;
}

.iv-link-sm {
    font-size: .875rem;
    color: var(--iv-color-primary);
    font-weight: 500;
}

/* ── 18. Empty States ─────────────────────────────────────────────────────── */
.iv-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    gap: .75rem;
}

.iv-empty-state-sm {
    padding: 2.5rem 1.5rem;
}

.iv-empty-icon {
    font-size: 3rem;
    line-height: 1;
    opacity: .5;
}

.iv-empty-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--iv-color-text);
    margin: 0;
}

.iv-empty-desc {
    color: var(--iv-color-text-muted);
    font-size: .9375rem;
    margin: 0;
    max-width: 320px;
}

/* ── 19. Category Tree ────────────────────────────────────────────────────── */
.iv-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iv-cat-children {
    padding-left: 1.5rem;
    border-left: 2px solid var(--iv-color-border);
    margin-left: 1.25rem;
}

.iv-cat-item {
    border-bottom: 1px solid var(--iv-color-border);
}

.iv-cat-item:last-child > .iv-cat-row {
    border-bottom: none;
}

.iv-cat-item-active > .iv-cat-row {
    background: var(--iv-color-primary-light);
}

.iv-cat-row {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem 1.25rem;
    transition: background var(--iv-transition);
}

.iv-cat-row:hover {
    background: var(--iv-color-bg-hover);
}

.iv-cat-indent {
    color: var(--iv-color-text-light);
    font-size: .875rem;
    margin-right: .125rem;
}

.iv-cat-icon  { font-size: 1.125rem; }
.iv-cat-icon-sm { font-size: .875rem; }

.iv-cat-name {
    flex: 1;
    font-weight: 500;
    color: var(--iv-color-text);
    font-size: .9375rem;
}

.iv-cat-count {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
}

.iv-cat-edit-link {
    font-size: .875rem;
    color: var(--iv-color-primary);
    font-weight: 500;
    text-decoration: none;
    padding: .125rem .5rem;
    border-radius: var(--iv-radius-sm);
    transition: background var(--iv-transition);
}

.iv-cat-edit-link:hover,
.iv-cat-edit-link.iv-active {
    background: var(--iv-color-primary);
    color: #fff;
    text-decoration: none;
}

/* ── 20. Condition Selector (Radio Group) ─────────────────────────────────── */
.iv-condition-selector {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.iv-condition-opt {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .75rem;
    border: 2px solid var(--iv-color-border);
    border-radius: var(--iv-radius-full);
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
    transition: border-color var(--iv-transition), background var(--iv-transition);
}

.iv-condition-opt input[type="radio"] {
    display: none;
}

.iv-condition-opt:has(input:checked),
.iv-condition-opt.checked {
    border-color: var(--iv-color-primary);
    background: var(--iv-color-primary-light);
    color: var(--iv-color-primary);
}

/* ── 21. Image Upload Zone ────────────────────────────────────────────────── */
.iv-image-zone {
    border: 2px dashed var(--iv-color-border-dark);
    border-radius: var(--iv-radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--iv-transition), background var(--iv-transition);
}

.iv-image-zone:hover,
.iv-image-zone.dragover {
    border-color: var(--iv-color-primary);
    background: var(--iv-color-primary-light);
}

.iv-image-zone-icon  { font-size: 2rem; opacity: .5; }
.iv-image-zone-label { font-size: .9375rem; color: var(--iv-color-text-muted); margin: .5rem 0 .25rem; }
.iv-image-zone-hint  { font-size: .8125rem; color: var(--iv-color-text-light); }

.iv-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .75rem;
    margin-top: .875rem;
}

.iv-image-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--iv-radius);
    overflow: hidden;
    border: 1px solid var(--iv-color-border);
    background: var(--iv-color-bg);
}

.iv-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iv-image-thumb-remove {
    position: absolute;
    top: .25rem;
    right: .25rem;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: var(--iv-radius-full);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .75rem;
    line-height: 1;
    opacity: 0;
    transition: opacity var(--iv-transition);
}

.iv-image-thumb:hover .iv-image-thumb-remove {
    opacity: 1;
}

/* ── 22. Tabs ─────────────────────────────────────────────────────────────── */
.iv-tabs {
    margin-bottom: 1.25rem;
}

.iv-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--iv-color-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.iv-tab-nav::-webkit-scrollbar { display: none; }

.iv-tab {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .625rem 1.125rem;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--iv-color-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color var(--iv-transition), border-color var(--iv-transition);
}

.iv-tab:hover {
    color: var(--iv-color-text);
    text-decoration: none;
}

.iv-tab-active {
    color: var(--iv-color-primary);
    border-bottom-color: var(--iv-color-primary);
    font-weight: 600;
}

.iv-tab-locked {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.iv-tab-lock { font-size: .75rem; }

.iv-tab-danger { color: var(--iv-color-danger); }
.iv-tab-danger:hover { color: #dc2626; text-decoration: none; }
.iv-tab-danger.iv-tab-active { border-bottom-color: var(--iv-color-danger); }

.iv-tab-panel {
    animation: iv-fadein .15s ease;
}

@keyframes iv-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 23. Bar Charts ───────────────────────────────────────────────────────── */
.iv-bar-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 80px;
}

.iv-bar-fill {
    height: 8px;
    background: var(--iv-color-primary);
    border-radius: var(--iv-radius-full);
    flex-shrink: 0;
    transition: width .4s ease;
}

.iv-bar-new       { background: #10b981; }
.iv-bar-excellent { background: #3b82f6; }
.iv-bar-good      { background: #22c55e; }
.iv-bar-fair      { background: #f59e0b; }
.iv-bar-poor      { background: #ef4444; }

.iv-bar-wrap span {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
    white-space: nowrap;
}

/* Condition list (summary sidebar) */
.iv-condition-list {
    list-style: none;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.iv-condition-row {
    display: grid;
    grid-template-columns: 90px 1fr 30px 40px;
    align-items: center;
    gap: .625rem;
}

.iv-condition-bar-wrap { min-width: 0; }

.iv-condition-count {
    font-weight: 600;
    font-size: .875rem;
    text-align: right;
}

.iv-condition-pct {
    font-size: .8125rem;
    color: var(--iv-color-text-muted);
    text-align: right;
}

/* ── 24. Definition List ──────────────────────────────────────────────────── */
.iv-definition-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.iv-dl-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .625rem 0;
    border-bottom: 1px solid var(--iv-color-border);
    font-size: .9375rem;
}

.iv-dl-row:last-child { border-bottom: none; }

.iv-dl-row dt { color: var(--iv-color-text-muted); }
.iv-dl-row dd { font-weight: 600; color: var(--iv-color-text); text-align: right; }

.iv-dl-row-danger dt,
.iv-dl-row-danger dd { color: var(--iv-color-danger); }

/* ── 25. Pro Gate / Pro Banner ────────────────────────────────────────────── */
.iv-pro-gate {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .875rem;
}

.iv-pro-gate-icon  { font-size: 3rem; }
.iv-pro-gate-title { font-size: 1.25rem; font-weight: 700; color: var(--iv-color-text); }
.iv-pro-gate-desc  { color: var(--iv-color-text-muted); max-width: 340px; font-size: .9375rem; }

.iv-pro-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--iv-color-primary-light);
    border: 1px solid #c4b5fd;
    border-radius: var(--iv-radius-lg);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.iv-pro-banner-icon { font-size: 1.5rem; flex-shrink: 0; }

.iv-pro-banner-text {
    flex: 1;
    min-width: 0;
}

.iv-pro-banner-text strong {
    display: block;
    font-weight: 700;
    font-size: .9375rem;
    color: var(--iv-color-primary);
}

.iv-pro-banner-text span {
    font-size: .875rem;
    color: var(--iv-color-primary);
    opacity: .85;
}

/* ── 26. Upgrade CTA ──────────────────────────────────────────────────────── */
.iv-upgrade-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--iv-color-primary-light), #f5f0ff);
    border: 1px solid #c4b5fd;
    border-radius: var(--iv-radius-lg);
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.iv-upgrade-cta-inline {
    margin-top: 0;
}

.iv-upgrade-cta-icon { font-size: 2rem; flex-shrink: 0; }

.iv-upgrade-cta-text {
    flex: 1;
    min-width: 0;
}

.iv-upgrade-cta-text strong {
    display: block;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--iv-color-primary);
}

.iv-upgrade-cta-text span {
    font-size: .875rem;
    color: var(--iv-color-text-muted);
}

/* ── 27. Settings Layout ──────────────────────────────────────────────────── */
.iv-settings-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

.iv-settings-main    { min-width: 0; }
.iv-settings-sidebar { min-width: 0; }

.iv-settings-narrow {
    max-width: 560px;
}

/* License active state */
.iv-license-active {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
}

.iv-license-icon { font-size: 2rem; flex-shrink: 0; }

.iv-license-status { font-size: .9375rem; color: var(--iv-color-text); margin-bottom: .25rem; }

.iv-license-key {
    font-size: .875rem;
    color: var(--iv-color-text-muted);
    display: flex;
    gap: .5rem;
    align-items: center;
}

.iv-license-key code {
    font-family: var(--iv-font-mono);
    background: var(--iv-color-bg);
    border: 1px solid var(--iv-color-border);
    border-radius: var(--iv-radius-sm);
    padding: .125rem .375rem;
    font-size: .875rem;
}

/* Feature list */
.iv-feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .375rem;
}

.iv-feature-list li {
    font-size: .9375rem;
    color: var(--iv-color-text);
}

/* ── 28. Import/Export ────────────────────────────────────────────────────── */
.iv-drop-zone {
    border: 2px dashed var(--iv-color-border-dark);
    border-radius: var(--iv-radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--iv-transition), background var(--iv-transition);
    margin-bottom: 1.125rem;
}

.iv-drop-zone:hover,
.iv-drop-zone.dragover {
    border-color: var(--iv-color-primary);
    background: var(--iv-color-primary-light);
}

.iv-drop-zone-icon  { font-size: 2rem; opacity: .5; display: block; margin-bottom: .5rem; }
.iv-drop-zone-label { font-size: .9375rem; color: var(--iv-color-text-muted); display: block; }
.iv-drop-zone-hint  { font-size: .8125rem; color: var(--iv-color-text-light); display: block; margin-top: .25rem; }

.iv-import-result {
    padding: 1rem 1.25rem;
    border-radius: var(--iv-radius);
    margin-bottom: 1.25rem;
    font-size: .9375rem;
}

.iv-import-result-success { background: var(--iv-color-success-bg); border: 1px solid #bbf7d0; color: #166534; }
.iv-import-result-error   { background: var(--iv-color-danger-bg); border: 1px solid #fecaca; color: #991b1b; }

.iv-import-errors {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: .5rem;
    font-size: .875rem;
}

/* ── 29. Notification Toast ───────────────────────────────────────────────── */
#iv-toast-wrap {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    pointer-events: none;
}

.iv-toast {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .875rem 1.25rem;
    border-radius: var(--iv-radius-lg);
    box-shadow: var(--iv-shadow-lg);
    font-size: .9375rem;
    min-width: 260px;
    max-width: 380px;
    pointer-events: auto;
    animation: iv-toast-in .25s ease;
}

@keyframes iv-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.iv-toast-success {
    background: #166534;
    color: #fff;
}

.iv-toast-error {
    background: #991b1b;
    color: #fff;
}

.iv-toast-info {
    background: var(--iv-color-text);
    color: #fff;
}

/* ── 30. Utility Classes ──────────────────────────────────────────────────── */
.iv-text-muted   { color: var(--iv-color-text-muted); }
.iv-text-danger  { color: var(--iv-color-danger); }
.iv-text-success { color: var(--iv-color-success); }
.iv-text-warning { color: var(--iv-color-warning); }
.iv-text-primary { color: var(--iv-color-primary); }

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

/* ── 31. Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --iv-nav-width: 200px;
    }

    .iv-two-col-layout,
    .iv-settings-layout {
        grid-template-columns: 1fr;
    }

    .iv-stats-grid-5 {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .iv-header-inner {
        padding: 0 1rem;
    }

    .iv-navbar-inner {
        padding: 0 .5rem;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .iv-navbar-inner::-webkit-scrollbar { display: none; }

    .iv-navbar-link {
        padding: 0 .625rem;
        font-size: .8125rem;
    }

    .iv-navbar-icon { display: none; }

    .iv-header-howdy { display: none; }

    .iv-tier-badge { display: none; }

    .iv-main {
        padding-top: calc(var(--iv-shell-height) + 1rem);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .iv-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .iv-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .iv-form-row {
        grid-template-columns: 1fr;
    }

    .iv-settings-narrow {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .iv-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .iv-tab {
        padding: .5rem .75rem;
        font-size: .875rem;
    }

    .iv-auth-card {
        padding: 1.5rem 1.25rem;
    }
}

/* =========================================================
   TAX REPORT STYLES
   ========================================================= */

.iv-tax-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.iv-tax-controls .iv-form-group {
    margin-bottom: 0;
}

.iv-tax-method-hint {
    font-size: .8125rem;
    color: var(--iv-text-muted);
    margin-top: .25rem;
    max-width: 36rem;
}

/* Summary banner */
.iv-tax-summary-banner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    border-radius: var(--iv-radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.iv-tax-summary-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .75;
    margin-bottom: .25rem;
}

.iv-tax-deductible {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}

.iv-tax-summary-meta {
    font-size: .875rem;
    opacity: .85;
}

.iv-tax-summary-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-end;
}

/* Category breakdown bar */
.iv-tax-bar-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.iv-bar-tax {
    flex: 1;
    height: .5rem;
    background: var(--iv-border);
    border-radius: 99px;
    overflow: hidden;
}

.iv-bar-tax-fill {
    height: 100%;
    background: var(--iv-primary);
    border-radius: 99px;
    transition: width .3s ease;
}

/* Deductible amount cell */
.iv-deductible-amount {
    font-weight: 700;
    color: var(--iv-success, #16a34a);
    font-variant-numeric: tabular-nums;
}

/* Depreciation bar */
.iv-bar-dep {
    background: var(--iv-warning, #d97706);
}

/* Fully-depreciated row */
.iv-row-muted td,
.iv-row-muted a {
    opacity: .55;
}

/* Muted badge (e.g. "Fully Depreciated") */
.iv-badge-muted {
    background: var(--iv-border);
    color: var(--iv-color-text-light);
    border-radius: 99px;
    padding: .1em .55em;
    font-weight: 500;
}

/* Depreciation table — constrain width so it always fits */
.iv-dep-table {
    table-layout: fixed;
    width: 100%;
}
.iv-dep-table th:first-child,
.iv-dep-table td:first-child {
    width: auto;          /* Equipment column takes remaining space */
    min-width: 0;
}
/* Original Cost, Depreciated, Current Value */
.iv-dep-table th:nth-child(2),
.iv-dep-table td:nth-child(2),
.iv-dep-table th:nth-child(3),
.iv-dep-table td:nth-child(3),
.iv-dep-table th:nth-child(4),
.iv-dep-table td:nth-child(4) {
    width: 11%;
    white-space: nowrap;
}
/* % Left — wider to fit bar + number */
.iv-dep-table th:nth-child(5),
.iv-dep-table td:nth-child(5) {
    width: 18%;
}
/* Shrink the bar itself inside the dep table */
.iv-dep-table .iv-bar-wrap {
    min-width: 0;
    gap: .375rem;
}
.iv-dep-table .iv-bar-fill {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

/* Secondary detail line under equipment name */
.iv-dep-meta {
    display: block !important;
    font-size: .73rem;
    color: var(--iv-color-text-muted, #6b7280);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: .15rem;
    font-weight: 400;
}
/* Ensure the name link stays inline so meta wraps below */
.iv-dep-table .iv-td-name a {
    display: inline;
}

/* Current Value — make it stand out clearly */
.iv-dep-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--iv-primary, #7c3aed);
}

/* Disclaimer */
.iv-tax-disclaimer {
    margin-top: 1.5rem;
    padding: .875rem 1rem;
    border-left: 4px solid var(--iv-warning, #f59e0b);
    background: var(--iv-bg-subtle, #fffbeb);
    border-radius: 0 var(--iv-radius) var(--iv-radius) 0;
    font-size: .8125rem;
    color: var(--iv-text-muted);
    line-height: 1.6;
}

/* Print-only header (hidden on screen) */
.iv-print-only {
    display: none;
}

/* =========================================================
   PRINT / SAVE AS PDF
   ========================================================= */

@media print {

    /* Hide everything except the report content */
    .iv-header,
    .iv-navbar,
    .iv-footer,
    .iv-tabs,
    .iv-no-print {
        display: none !important;
    }

    /* Show print-only elements */
    .iv-print-only {
        display: block !important;
    }

    body,
    .iv-app,
    .iv-main,
    .iv-container {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .iv-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    /* Summary banner — invert to grayscale for print */
    .iv-tax-summary-banner {
        background: #1e3a5f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        page-break-inside: avoid;
    }

    /* Keep bar fills visible */
    .iv-bar-tax-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th, td {
        border: 1px solid #ccc !important;
        padding: .35rem .5rem !important;
        font-size: .8rem !important;
    }

    thead {
        background: #f3f4f6 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    .iv-deductible-amount {
        color: #000 !important;
    }

    /* Page setup */
    @page {
        margin: 1.5cm;
        size: A4 landscape;
    }
}

/* ── Plan & License tab ────────────────────────────────────────────────────── */

.iv-plan-header-pro,
.iv-plan-header-free {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.iv-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 999px;
    width: fit-content;
}

.iv-plan-badge-pro {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.iv-plan-badge-free {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.iv-plan-tagline {
    font-size: .85rem;
    color: var(--iv-color-text-light);
    margin: 0;
}

.iv-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .9rem;
}

.iv-feature-locked {
    color: var(--iv-color-text-light);
}

.iv-usage-bar-wrap {
    margin-bottom: 1.25rem;
}

.iv-usage-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--iv-color-text-light);
    margin-bottom: .35rem;
}

.iv-usage-bar-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.iv-usage-bar-fill {
    height: 100%;
    background: var(--iv-color-primary);
    border-radius: 999px;
    transition: width .4s ease;
}

.iv-usage-bar-fill-warn  { background: #f59e0b; }
.iv-usage-bar-fill-danger { background: var(--iv-color-danger); }

.iv-upgrade-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.iv-btn-upgrade {
    font-size: .95rem;
    padding: .65rem 1.5rem;
}

.iv-upgrade-price {
    font-size: .78rem;
    color: var(--iv-color-text-light);
    margin: 0;
}

.iv-license-form {}

.iv-license-input-row {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.iv-input-mono {
    font-family: monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    flex: 1;
}

.iv-license-msg {
    margin-top: .6rem;
    padding: .5rem .75rem;
    border-radius: var(--iv-radius);
    font-size: .85rem;
}

.iv-license-msg-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.iv-license-msg-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.iv-license-masked {
    display: inline-block;
    background: #f3f4f6;
    padding: .25rem .6rem;
    border-radius: 4px;
    font-size: .9rem;
    letter-spacing: .08em;
}

.iv-mt { margin-top: 1rem; }

/* Upgrade nudge banner on equipment list */
.iv-upgrade-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--iv-radius);
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: .88rem;
    color: #92400e;
    flex-wrap: wrap;
}

.iv-upgrade-nudge a {
    color: var(--iv-color-primary);
    font-weight: 600;
    white-space: nowrap;
}

.iv-upgrade-nudge-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Upgrade wall (reports page) */
.iv-upgrade-wall {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 480px;
    margin: 3rem auto;
}

.iv-upgrade-wall-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.iv-upgrade-wall h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--iv-color-text);
}

.iv-upgrade-wall p {
    color: var(--iv-color-text-light);
    margin-bottom: 1.5rem;
    font-size: .93rem;
    line-height: 1.6;
}

/* Disabled button state for limit-reached "Add Equipment" */
.iv-btn-disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

/* ── Pricing plan cards (Settings → Plan & License) ─────────────────── */
.iv-pricing-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.iv-pricing-card {
    border: 1.5px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    background: var(--iv-color-surface);
}

.iv-pricing-card-featured {
    border-color: var(--iv-color-primary);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 0 0 2px rgba(109,40,217,.12);
}

.iv-pricing-badge {
    position: absolute;
    top: -.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--iv-color-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .2rem .65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.iv-pricing-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--iv-color-text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.iv-pricing-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--iv-color-text);
    line-height: 1;
}

.iv-pricing-number {
    font-size: 2rem;
}

.iv-pricing-period {
    font-size: .9rem;
    font-weight: 500;
    color: var(--iv-color-text-light);
    margin-left: .1rem;
}

.iv-pricing-desc {
    font-size: .78rem;
    color: var(--iv-color-text-light);
    margin: 0;
    flex: 1;
}

.iv-btn-upgrade-plan {
    width: 100%;
    text-align: center;
    margin-top: .25rem;
    font-size: .875rem;
}

.iv-upgrade-footnote {
    font-size: .75rem;
    color: var(--iv-color-text-light);
    margin: .75rem 0 0;
    text-align: center;
}

@media (max-width: 480px) {
    .iv-pricing-plans {
        grid-template-columns: 1fr;
    }
}

/* ── Plan comparison layout (Settings → Plan & License) ─────────────── */
.iv-plan-comparison-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.iv-plan-compare-card {
    border: 1.5px solid var(--iv-color-border);
    border-radius: var(--iv-radius-lg);
    background: var(--iv-color-surface);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.iv-plan-compare-card-pro {
    border-color: var(--iv-color-primary);
    background: linear-gradient(160deg, #faf8ff 0%, #f0ebff 100%);
}

.iv-plan-compare-card-current {
    box-shadow: 0 0 0 3px rgba(109,40,217,.18);
}

/* Top badge */
.iv-plan-compare-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .22rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}

.iv-plan-compare-badge-current {
    background: var(--iv-color-border);
    color: var(--iv-color-text-light);
}

.iv-plan-compare-badge-pro {
    background: var(--iv-color-primary);
    color: #fff;
}

.iv-plan-compare-badge-upgrade {
    background: #f59e0b;
    color: #fff;
}

/* Header section */
.iv-plan-compare-header {
    padding: 1.75rem 1.25rem 1rem;
    border-bottom: 1px solid var(--iv-color-border);
    text-align: center;
}

.iv-plan-compare-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--iv-color-text-light);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .35rem;
}

.iv-plan-compare-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--iv-color-text);
    line-height: 1.1;
}

.iv-plan-compare-price-pro {
    color: var(--iv-color-primary);
}

.iv-plan-price-from {
    font-size: .75rem;
    font-weight: 500;
    color: var(--iv-color-text-light);
    display: block;
    margin-bottom: -.2rem;
}

.iv-plan-compare-period {
    font-size: .85rem;
    font-weight: 500;
    color: var(--iv-color-text-light);
}

.iv-plan-compare-tagline {
    font-size: .8rem;
    color: var(--iv-color-text-light);
    margin: .5rem 0 0;
}

/* Body section */
.iv-plan-compare-body {
    padding: 1.25rem;
    flex: 1;
}

.iv-mb { margin-bottom: 1rem; }

/* Active license display inside pro card */
.iv-license-active-wrap {
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: rgba(109,40,217,.07);
    border: 1px solid rgba(109,40,217,.2);
    border-radius: var(--iv-radius);
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.iv-license-active-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--iv-color-primary);
}

/* Inline pricing mini-cards inside pro column */
.iv-pricing-plans-inline {
    margin-top: 1.25rem;
}

/* Footer section */
.iv-plan-compare-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--iv-color-border);
    text-align: center;
}

.iv-plan-compare-current-label {
    font-size: .82rem;
    color: var(--iv-color-text-light);
    font-weight: 500;
}

.iv-plan-compare-current-label-pro {
    color: var(--iv-color-primary);
    font-weight: 600;
}

@media (max-width: 640px) {
    .iv-plan-comparison-wrap {
        grid-template-columns: 1fr;
    }
}

/* ── Notification bell ───────────────────────────────────────────────────── */
.iv-bell-wrap{position:relative;display:inline-flex;align-items:center}
.iv-bell-btn{background:none;border:none;cursor:pointer;padding:6px 8px;border-radius:8px;position:relative;font-size:18px;line-height:1;transition:background .15s}
.iv-bell-btn:hover{background:rgba(0,0,0,.07)}
.iv-bell-badge{position:absolute;top:2px;right:2px;background:#e53e3e;color:#fff;border-radius:999px;font-size:10px;font-weight:700;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;padding:0 3px;pointer-events:none}
.iv-bell-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:320px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.13);z-index:9999;overflow:hidden}
.iv-bell-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.iv-bell-header strong{font-size:13px;color:#1e293b}
.iv-bell-dismiss-all{background:none;border:none;cursor:pointer;font-size:12px;color:#64748b;padding:2px 6px;border-radius:4px;transition:background .15s}
.iv-bell-dismiss-all:hover{background:#f1f5f9;color:#334155}
.iv-bell-list{max-height:340px;overflow-y:auto}
.iv-bell-empty{text-align:center;color:#94a3b8;font-size:13px;padding:22px 14px;margin:0}
.iv-bell-item{padding:11px 14px;border-bottom:1px solid #f1f5f9;display:flex;gap:10px;align-items:flex-start;cursor:default;transition:background .12s}
.iv-bell-item:last-child{border-bottom:none}
.iv-bell-item:hover{background:#f8fafc}
.iv-bell-item-icon{font-size:20px;flex-shrink:0;line-height:1.3}
.iv-bell-item-body{flex:1;min-width:0}
.iv-bell-item-title{font-size:13px;font-weight:600;color:#1e293b;margin:0 0 2px}
.iv-bell-item-msg{font-size:12px;color:#475569;margin:0;line-height:1.5;word-break:break-word}
.iv-bell-item-date{font-size:11px;color:#94a3b8;margin-top:4px}
.iv-bell-item-dismiss{background:none;border:none;cursor:pointer;font-size:16px;color:#cbd5e1;padding:0 0 0 6px;flex-shrink:0;line-height:1;transition:color .15s}
.iv-bell-item-dismiss:hover{color:#64748b}
