/* ================================================================
   CRYSTAL PREMIUM — Glassmorphism Light Design System
   Planet Nine Sales Management System v1.8
   ================================================================ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    --accent:        #6366f1;
    --accent-sec:    #4f46e5;
    --accent-light:  #eef2ff;
    --accent-glow:   rgba(99,102,241,0.15);
    --success:       #10b981;
    --warn:          #f59e0b;
    --danger:        #ef4444;
    --text-primary:  #0f172a;
    --text-muted:    #64748b;
    --surface:       rgba(255,255,255,0.88);
    --border:        rgba(226,232,240,0.8);
    --border-focus:  rgba(99,102,241,0.35);
    --radius-card:   20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(99,102,241,0.05);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(99,102,241,0.06);
    --shadow-lg:     0 8px 30px rgba(0,0,0,0.08), 0 24px 60px rgba(99,102,241,0.07);
    --shadow-glow:   0 0 0 3px rgba(99,102,241,0.15);
    --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast: 150ms;
    --duration-mid:  250ms;
    --duration-slow: 400ms;
}

/* ── Base ────────────────────────────────────────────────────── */
body {
    font-family: 'Rubik', 'Plus Jakarta Sans', sans-serif;
    background: #f4f6fb;
    background-image:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(238,242,255,0.9) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 88% 20%, rgba(237,233,254,0.7) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 50% 95%, rgba(224,242,254,0.6) 0%, transparent 60%),
        linear-gradient(160deg, #f0f4ff 0%, #ede9fe10 40%, #f0f8ff 70%, #f5f0ff20 100%);
    color: #0f172a;
    min-height: 100vh;
}

body.mesh-bg {
    background: #f4f6fb;
    background-image:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(238,242,255,0.9) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 88% 20%, rgba(237,233,254,0.7) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 50% 95%, rgba(224,242,254,0.6) 0%, transparent 60%);
    animation: none;
}

.orb-container {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}

h1, h2, h3, h4, .display-font { font-family: 'Plus Jakarta Sans', 'Outfit', 'Rubik', sans-serif; font-weight: 800; }
.font-mono { font-family: 'JetBrains Mono', monospace !important; letter-spacing: -0.03em; }

/* ── Orbs — Soft pastel ──────────────────────────────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    animation: orbFloat ease-in-out infinite;
    will-change: transform;
}
.orb-1 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(199,210,254,0.55) 0%, transparent 70%);
    animation-duration: 22s;
}
.orb-2 {
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(221,214,254,0.45) 0%, transparent 70%);
    animation-duration: 28s;
    animation-delay: -10s;
}
.orb-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(186,230,253,0.4) 0%, transparent 70%);
    animation-duration: 24s;
    animation-delay: -16s;
}

/* ── Glass Card — Premium ────────────────────────────────────── */
.glass-card {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255,255,255,0.95);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 1px 3px rgba(0,0,0,0.04),
        0 4px 16px rgba(99,102,241,0.06),
        0 20px 48px rgba(99,102,241,0.04);
    transition: box-shadow var(--duration-mid) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.glass-card:hover {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 2px 4px rgba(0,0,0,0.05),
        0 8px 24px rgba(99,102,241,0.09),
        0 28px 64px rgba(99,102,241,0.06);
}
.dashboard-gradient {
    background: rgba(255,255,255,0.90) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
}

/* Gradient border shimmer on hover */
.glass-card.gradient-border { position: relative; }
.glass-card.gradient-border::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(167,139,250,0.3), rgba(96,165,250,0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-mid) ease;
}
.glass-card.gradient-border:hover::before { opacity: 1; }

/* ── Seamless Input ─────────────────────────────────────────── */
.seamless-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 10px;
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
    width: 100%;
    box-shadow: none;
    color: #0f172a;
}
.seamless-input:hover:not(:read-only) {
    background: rgba(248,250,252,0.9);
    border-color: #e2e8f0;
}
.seamless-input:focus:not(:read-only) {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 0 12px rgba(99,102,241,0.06);
}
.seamless-input:read-only { color: #64748b; font-weight: 600; cursor: default; }

/* Section-colored focus glow variants */
.seamless-input.focus-bom:focus:not(:read-only) {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 0 12px rgba(99,102,241,0.08);
}
.seamless-input.focus-efforts:focus:not(:read-only) {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15), 0 0 12px rgba(16,185,129,0.08);
}
.seamless-input.focus-travels:focus:not(:read-only) {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15), 0 0 12px rgba(6,182,212,0.08);
}
.seamless-input.focus-subs:focus:not(:read-only) {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15), 0 0 12px rgba(249,115,22,0.08);
}
.table-container .seamless-input { padding: 4px 6px; }

/* ── Tooltips ───────────────────────────────────────────────── */
.tooltip {
    visibility: hidden; opacity: 0;
    transition: opacity 0.15s ease, top 0.15s ease;
    position: absolute; top: 110%; left: 50%; transform: translateX(-50%);
    background: #1e293b; color: white;
    padding: 6px 12px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
    white-space: nowrap; z-index: 100; pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.1);
}
.has-tooltip:hover .tooltip { visibility: visible; opacity: 1; top: 130%; }
.tooltip::after {
    content: ''; position: absolute; bottom: 100%; left: 50%; margin-left: -4px;
    border-width: 4px; border-style: solid;
    border-color: transparent transparent #1e293b transparent;
}
.hover-popover { visibility: hidden; opacity: 0; transition: visibility 0s 0.4s, opacity 0.3s ease 0.4s; }
.group:hover .hover-popover, .hover-popover:hover { visibility: visible; opacity: 1; transition: visibility 0s 0s, opacity 0.2s ease 0s; }

/* ── Tables — Premium ───────────────────────────────────────── */
.table-container table th {
    text-align: start; font-weight: 700;
    color: #94a3b8;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;
    background: linear-gradient(180deg, #f8fafc 0%, #f4f6fb 100%);
    white-space: nowrap;
}
.table-container table td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(241,245,249,0.8);
    vertical-align: middle; text-align: start;
    transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.table-container tr:hover td {
    background-color: rgba(238,242,255,0.7);
}
.table-container tr:hover td:first-child {
    border-inline-start: 2px solid #6366f1;
}
.table-container tr:hover td:not(:first-child) {
    border-inline-start: none;
}
/* Alternating row tints per category */
.table-container.cat-tint-bom     tr:nth-child(even) td { background-color: rgba(99,102,241,0.018); }
.table-container.cat-tint-efforts tr:nth-child(even) td { background-color: rgba(16,185,129,0.018); }
.table-container.cat-tint-travels tr:nth-child(even) td { background-color: rgba(6,182,212,0.018); }
.table-container.cat-tint-subs    tr:nth-child(even) td { background-color: rgba(249,115,22,0.018); }

table th {
    text-align: start; font-weight: 700; color: #64748b;
    padding-bottom: 12px; border-bottom: 2px solid #f1f5f9;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
table td {
    padding: 8px 4px; border-bottom: 1px solid #f1f5f9;
    vertical-align: middle; text-align: start;
}
.text-center th, .text-center td { text-align: center !important; }
.text-end th, .text-end td { text-align: end !important; }
tr:hover td { background-color: rgba(238,242,255,0.5); }

/* ── Drag & Drop ────────────────────────────────────────────── */
.drag-handle { cursor: grab; opacity: 0.3; transition: opacity 0.2s; }
tr:hover .drag-handle { opacity: 0.8; }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost {
    opacity: 0.45;
    background: rgba(238,242,255,0.8) !important;
    border: 2px dashed rgba(99,102,241,0.35) !important;
    border-radius: 8px;
}

/* ── Toggle Switch ──────────────────────────────────────────── */
.toggle-checkbox:checked { inset-inline-end: 0; border-color: #10b981; }
.toggle-checkbox:checked + .toggle-label { background-color: #10b981; }

/* ── Scrollbar — Premium ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 8px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.38); }

/* ── Select ─────────────────────────────────────────────────── */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px !important;
    cursor: pointer;
}

/* ── Toasts — Premium ───────────────────────────────────────── */
#toast-container {
    position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast-msg {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px) saturate(180%);
    padding: 14px 18px; border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05), 0 1px 0 rgba(255,255,255,0.9) inset;
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 14px;
    transform: translateY(16px) scale(0.96); opacity: 0;
    transition: all 0.35s var(--ease-spring);
    border: 1px solid rgba(226,232,240,0.9);
    position: relative; overflow: hidden;
}
.toast-msg.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-msg::after {
    content: '';
    position: absolute; bottom: 0; inset-inline-start: 0;
    height: 2px; width: 100%;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform linear;
}
.toast-msg.show::after { transform: scaleX(0); transition-duration: 3s; }
[dir="rtl"] .toast-msg::after { transform-origin: right; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(25px, -18px) scale(1.04); }
    66%       { transform: translate(-18px, 12px) scale(0.97); }
}
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmerPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}
@keyframes meshGradient {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.animate-fadeIn  { animation: fadeInUp 0.5s var(--ease-spring) both; }
.animate-slideIn { animation: slideIn 0.4s var(--ease-spring) both; }

/* Stagger entrance for children */
.stagger-children > * { animation: fadeInUp 0.5s var(--ease-spring) both; }
.stagger-children > *:nth-child(1) { animation-delay: 0.00s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.07s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.14s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.21s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.28s; }

/* ── Icon Badge System ──────────────────────────────────────── */
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; flex-shrink: 0;
}
.icon-badge-sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-badge-md { width: 40px; height: 40px; border-radius: 12px; }
.icon-badge-lg { width: 52px; height: 52px; border-radius: 16px; }

/* ── Category Colors — Premium ──────────────────────────────── */
.cat-bom     { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); color: #4f46e5; box-shadow: 0 2px 8px rgba(99,102,241,0.15); }
.cat-efforts { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #059669; box-shadow: 0 2px 8px rgba(16,185,129,0.15); }
.cat-travels { background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); color: #0891b2; box-shadow: 0 2px 8px rgba(6,182,212,0.15); }
.cat-subs    { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%); color: #c2410c; box-shadow: 0 2px 8px rgba(249,115,22,0.15); }
.cat-risk    { background: linear-gradient(135deg, #fefce8 0%, #fde68a 100%); color: #92400e; box-shadow: 0 2px 8px rgba(245,158,11,0.15); }

/* ── Section Badge — Premium ────────────────────────────────── */
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 12px;
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    position: relative; z-index: 1;
}
.section-badge::before {
    content: ''; position: absolute; inset: -3px;
    border-radius: inherit;
    background: inherit;
    filter: blur(12px); opacity: 0.25;
    z-index: -1; pointer-events: none;
}

/* ── Metric Card — Premium ──────────────────────────────────── */
.metric-card {
    transition: transform var(--duration-mid) var(--ease-spring), box-shadow var(--duration-mid) var(--ease-out);
    position: relative; overflow: hidden;
}
.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(99,102,241,0.1) !important;
}

/* Primary metric — Target Price */
.metric-card-primary {
    border: 1.5px solid rgba(99,102,241,0.25) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%) !important;
    box-shadow: 0 4px 16px rgba(99,102,241,0.1), 0 1px 4px rgba(0,0,0,0.04) !important;
}
.metric-card-primary::before {
    content: ''; position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: 0; height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 3px 3px 0 0;
}
.metric-card-primary:hover {
    box-shadow: 0 20px 48px rgba(99,102,241,0.14), 0 4px 16px rgba(0,0,0,0.05) !important;
    transform: translateY(-5px);
}

/* 3D tilt integration */
.metric-card.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ── Hero Illustration Float ────────────────────────────────── */
.hero-illustration { animation: float 6s ease-in-out infinite; }

/* ── Status Badges — Premium ────────────────────────────────── */
.status-draft      { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1d4ed8; border: 1px solid rgba(37,99,235,0.18); }
.status-sent       { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #b45309; border: 1px solid rgba(180,83,9,0.18); }
.status-accepted   { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #166534; border: 1px solid rgba(22,101,52,0.18); }
.status-rejected   { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #991b1b; border: 1px solid rgba(153,27,27,0.18); }
.status-superseded { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #64748b; border: 1px solid rgba(100,116,139,0.2); }

/* ── Page Header ────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.page-header h1 {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-weight: 800; font-size: 1.75rem; color: #0f172a;
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 56px 24px; color: #94a3b8;
}
.empty-state .icon-badge { margin-bottom: 16px; }

/* ── Hero Section Pattern ───────────────────────────────────── */
.page-hero {
    border-radius: 20px; padding: 2rem 2.5rem;
    margin-bottom: 2rem; position: relative; overflow: hidden; border: none;
}
.page-hero .hero-orb { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }

/* ── Decorative Divider ─────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent);
    margin: 1.5rem 0; border: none;
}

/* ── Phase Cards — Premium ──────────────────────────────────── */
.phase-card {
    border-radius: 20px; overflow: visible;
    transition: box-shadow var(--duration-mid) var(--ease-out), transform var(--duration-mid) var(--ease-spring);
}
.phase-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 12px 32px rgba(99,102,241,0.08),
        0 24px 56px rgba(99,102,241,0.05);
}
.phase-card.card-reveal { animation: cardReveal 0.55s var(--ease-spring) both; }
.phase-card.phase-accent-bom     { border-top: 3px solid #6366f1 !important; }
.phase-card.phase-accent-efforts { border-top: 3px solid #10b981 !important; }
.phase-card.phase-accent-travels { border-top: 3px solid #06b6d4 !important; }
.phase-card.phase-accent-subs    { border-top: 3px solid #f97316 !important; }

/* ── Button Glow & Ripple ───────────────────────────────────── */
.btn-glow {
    position: relative; overflow: hidden;
    transition: all var(--duration-mid) var(--ease-out);
}
.btn-glow::before {
    content: ''; position: absolute; inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99,102,241,0.45), rgba(139,92,246,0.35));
    opacity: 0; transition: opacity var(--duration-mid) ease;
    z-index: -1; filter: blur(8px);
}
.btn-glow:hover::before { opacity: 1; }
.ripple { position: relative; overflow: hidden; }
.ripple::after {
    content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 10%, transparent 10.01%);
    transform: scale(10); opacity: 0;
    transition: transform 0.55s, opacity 0.8s; pointer-events: none;
}
.ripple:active::after { transform: scale(0); opacity: 0.4; transition: 0s; }

/* ── Premium Dark Hero ───────────────────────────────────────── */
._kpi-stat {
    text-align: center; padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.14);
    transition: all var(--duration-mid) var(--ease-spring);
}
._kpi-stat:hover {
    background: rgba(255,255,255,0.17);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}
._kpi-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem; font-weight: 700; color: #fff;
    letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 4px;
}
._kpi-lbl {
    font-size: 0.61rem; font-weight: 800;
    color: rgba(148,163,184,0.85);
    text-transform: uppercase; letter-spacing: 0.1em;
}

/* Status quick-filter pills */
._spill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: rgba(255,255,255,0.9);
    color: #64748b; cursor: pointer;
    transition: all 0.15s var(--ease-spring);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
._spill:hover {
    border-color: #6366f1; color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.12);
    transform: translateY(-1px);
}
._spill.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5; color: white;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
._spill-count {
    min-width: 17px; height: 15px; border-radius: 8px;
    background: rgba(0,0,0,0.12); color: inherit;
    font-size: 9px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
._spill:not(.active) ._spill-count { background: #f1f5f9; color: #94a3b8; }

/* Avatar initials */
._av {
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800; flex-shrink: 0; letter-spacing: 0;
}

/* GP% pill */
._gp-pill {
    display: inline-block; padding: 2px 7px; border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700; letter-spacing: -0.02em;
}

/* Status accent strip */
.proj-status-strip { padding: 0 !important; border-top: none !important; border-bottom: none !important; }

/* ── Dark Hero Base Pattern ─────────────────────────────────── */
.dark-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-radius: 20px; position: relative; overflow: hidden;
}
.dark-hero-grid {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background-image:
        linear-gradient(rgba(99,102,241,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.12) 1px, transparent 1px);
    background-size: 44px 44px;
}
.dark-hero-accent {
    position: absolute; top: 0;
    inset-inline-start: 0; inset-inline-end: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, #6366f1 30%, #818cf8 70%, transparent 100%);
}

/* ── Print ──────────────────────────────────────────────────── */
@media print { .no-print { display: none !important; } }

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
