
        :root {
            /* PrimeHarvest Brand Colors */
            --green-dark: #1B4332;
            --green-primary: #2D6A4F;
            --green-mid: #40916C;
            --green-light: #52B788;
            --green-pale: #74C69D;
            --green-accent: #95D5B2;
            --gray-dark: #495057;
            --gray-mid: #6C757D;
            
            /* UI Colors */
            --bg-dark: #F5FAF6;
            --bg-card: #FFFFFF;
            --bg-hover: #F7FBF8;
            --bg: var(--green-primary);
            --border: #DDEAE2;
            --text: #0F1F16;
            --text-muted: #5E7366;
            
            /* Status Colors */
            --success: #52B788;
            --warning: #F9C74F;
            --danger: #1B4332;
            --info:   #40916C;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-dark);
            color: var(--text);
            min-height: 100vh;
        }
        
        /* Layout */
        .app { display: flex; min-height: 100vh; }
        
        .sidebar {
            width: 260px;
            background: var(--bg);
            border-right: 1px solid var(--border);
            padding: 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
        }
        
        .logo {
            padding: 24px 20px;
            border-bottom: 1px solid var(--border);
            background: var(--green-dark);
            display: flex;
            align-items: center;
            gap: 14px;
        }
        
        .logo-icon {
            width: 48px;
            height: 48px;
            background: #ffffff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(45, 106, 79, 0.4);
            overflow: hidden;
        }
        
        .logo-icon svg {
            width: 28px;
            height: 28px;
            fill: white;
        }
        
        .logo-icon img {
            width: 66%;
            height: 66%;
            object-fit: contain;
            object-position: center;
            margin: 0;
            display: block;
        }
        
        .logo-text {
            display: flex;
            flex-direction: column;
        }
        
        .logo-text .brand {
            font-size: 18px;
            font-weight: 700;
            line-height: 1.2;
        }
        
        .logo-text .brand .prime { color: var(--green-dark); color: #fff; }
        .logo-text .brand .harvest { color: var(--green-light); }
        
        .logo-text .tagline {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--text-muted);
            margin-top: 2px;
        }
        
        .logo-text .version {
            font-size: 8px;
            color: var(--text-muted);
            margin-top: 2px;
            opacity: 0.8;
        }
        
        .nav-section {
            padding: 20px 0;
        }
        
        .nav-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-muted);
            padding: 0 20px;
            margin-bottom: 10px;
        }
        
        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid transparent;
            margin: 2px 0;
        }
        
        .nav-item:hover { 
            background: var(--bg-hover); 
            color: var(--text); 
        }
        
        .nav-item.active { 
            background: rgba(82, 183, 136, 0.1);
            color: var(--green-light); 
            border-left-color: var(--green-light);
        }
        
        .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
        
        .main {
            flex: 1;
            margin-left: 260px;
            padding: 30px;
            background: var(--bg-dark);
        }
        
        /* Header */
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }
        
        .page-header h2 {
            font-size: 28px;
            font-weight: 600;
            color: var(--text);
        }
        
        .page-header .subtitle {
            color: var(--text-muted);
            font-size: 14px;
            margin-top: 4px;
        }
        
        .page-header .date {
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
        }
        
        /* Cards */
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
        }
        
        .card-title {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .card-title::before {
            content: '';
            width: 4px;
            height: 16px;
            background: var(--green-light);
            border-radius: 2px;
        }
        
        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            position: relative;
            overflow: hidden;
        }
        
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--bg);
        }
        
        .stat-card .label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }
        
        .stat-card .value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 36px;
            font-weight: 700;
            color: var(--green-light);
        }
        
        .stat-card .value.warning { color: var(--warning); }
        .stat-card .value.info { color: var(--info); }
        
        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, opacity 0.18s ease;
            position: relative;
            overflow: hidden;
            user-select: none;
            white-space: nowrap;
        }

        /* Press sink */
        .btn:active:not(:disabled) {
            transform: translateY(1px) scale(0.98);
        }

        /* Ripple */
        .btn .btn-ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.28);
            transform: scale(0);
            animation: btnRipple 0.5s linear;
            pointer-events: none;
        }
        @keyframes btnRipple {
            to { transform: scale(4); opacity: 0; }
        }

        /* Success flash state */
        .btn.btn--success-flash {
            background: var(--green-mid) !important;
            color: white !important;
            box-shadow: 0 4px 16px rgba(64,145,108,0.4) !important;
            transform: scale(1.02);
        }
        .btn.btn--success-flash::after {
            content: ' ✓';
        }

        /* Loading state */
        .btn.btn--loading {
            opacity: 0.75;
            cursor: not-allowed;
            pointer-events: none;
        }
        .btn.btn--loading .btn-label { visibility: hidden; }
        .btn.btn--loading::before {
            content: '';
            position: absolute;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255,255,255,0.4);
            border-top-color: white;
            border-radius: 50%;
            animation: btnSpin 0.65s linear infinite;
        }
        @keyframes btnSpin {
            to { transform: rotate(360deg); }
        }

        .btn-primary {
            background: var(--green-primary);
            color: white;
            box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
        }
        .btn-primary:hover:not(:disabled):not(.btn--loading) {
            background: var(--green-mid);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(45, 106, 79, 0.38);
        }

        .btn-secondary {
            background: var(--bg-hover);
            color: var(--text);
            border: 1px solid var(--border);
        }
        .btn-secondary:hover:not(:disabled):not(.btn--loading) {
            border-color: var(--green-light);
            color: var(--green-light);
        }
        .btn-secondary .btn-ripple { background: rgba(82,183,136,0.18); }

        .btn-danger {
            background: var(--danger);
            color: white;
        }
        .btn-danger:hover:not(:disabled):not(.btn--loading) {
            filter: brightness(1.1);
            transform: translateY(-1px);
        }

        .btn-success {
            background: var(--success);
            color: white;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
        }
        .btn-sm.btn--loading::before {
            width: 11px;
            height: 11px;
        }
        
        /* Forms */
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg-dark);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-size: 14px;
            font-family: inherit;
            transition: border-color 0.2s;
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--green-light);
            box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
        }
        
        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        
        /* Tables */
        .table-container {
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            padding: 14px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }
        
        th {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            font-weight: 600;
            background: var(--bg-hover);
        }
        
        th:first-child { border-radius: 8px 0 0 0; }
        th:last-child { border-radius: 0 8px 0 0; }
        
        td { font-size: 14px; }
        
        tr:hover td { background: rgba(82, 183, 136, 0.05); }
        
        .mono {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
        }
        
        /* Badges */
        .badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .badge-green  { background: rgba(45,106,79,0.14);  color: #2D6A4F; }
        .badge-yellow { background: rgba(82,183,136,0.18); color: #40916C; }
        .badge-red    { background: rgba(27,67,50,0.20);   color: #1B4332; }
        .badge-blue   { background: rgba(64,145,108,0.16); color: #2D6A4F; }
        .badge-orange { background: rgba(45,106,79,0.12);  color: #40916C; }
        
        /* Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.85);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }
        
        .modal-overlay.active { display: flex; }
        
        .modal {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 30px;
            max-width: 900px;
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }
        
        .modal-header h3 {
            font-size: 20px;
            color: var(--text);
        }
        
        .modal-close {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 24px;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-close:hover {
            background: var(--bg-hover);
            color: var(--text);
        }
        
        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
        }
        
        /* Page Sections */
        .section { display: none; }
        .section.active { display: block; }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }
        
        /* Quick Actions */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 30px;
        }
        
        .quick-action {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }
        
        .quick-action:hover {
            border-color: var(--green-light);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(82, 183, 136, 0.15);
        }
        
        .quick-action svg {
            width: 36px;
            height: 36px;
            color: var(--green-light);
            margin-bottom: 12px;
        }
        
        .quick-action h4 {
            font-size: 15px;
            margin-bottom: 4px;
            color: var(--text);
        }
        
        .quick-action p {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        @keyframes tickerScroll {
            0%   { transform: translateX(0); }
            100% { transform: translateX(-100%); }
        }

        /* ── Dashboard bubble system ──────────────────────────────────── */
        .dash-canvas {
            position: relative;
            min-height: 900px;
            width: 100%;
            box-sizing: border-box;
        }
        .dash-bubble {
            position: absolute;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
            min-width: 180px;
            min-height: 100px;
            display: flex;
            flex-direction: column;
            transition: box-shadow 0.15s;
            z-index: 1;
        }
        .dash-bubble.is-dragging {
            box-shadow: 0 12px 36px rgba(0,0,0,0.18);
            opacity: 0.96;
        }
        .dash-bubble-handle {
            cursor: grab;
            flex-shrink: 0;
            user-select: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 9px 13px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-hover);
        }
        .dash-bubble-handle:active { cursor: grabbing; }
        .dbh-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
        }
        .dbh-label .dbh-dot {
            display: inline-block;
            width: 6px; height: 6px;
            border-radius: 50%;
            background: #28c840;
            margin-left: 6px;
            vertical-align: middle;
        }
        .dash-bubble-body {
            flex: 1;
            overflow: auto;
            padding: 14px;
            min-height: 0;
        }
        .dash-bubble-body.np { padding: 0; }
        .dash-resize-grip {
            position: absolute;
            bottom: 0; right: 0;
            width: 18px; height: 18px;
            cursor: se-resize;
            z-index: 2;
        }
        .dash-resize-grip::before,
        .dash-resize-grip::after {
            content: '';
            position: absolute;
            background: var(--text-muted);
            border-radius: 1px;
            opacity: 0.35;
            transition: opacity 0.15s;
        }
        .dash-bubble:hover .dash-resize-grip::before,
        .dash-bubble:hover .dash-resize-grip::after { opacity: 0.65; }
        .dash-resize-grip::before { right: 3px; bottom: 7px; width: 9px; height: 1.5px; }
        .dash-resize-grip::after  { right: 3px; bottom: 3px; width: 13px; height: 1.5px; }

        /* graph bubble header overrides */
        .dash-graph-handle {
            background: var(--green-dark);
            padding: 9px 14px;
            cursor: grab;
            flex-shrink: 0;
            user-select: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: none;
        }
        .dash-graph-handle:active { cursor: grabbing; }
        .dash-graph-dots { display: flex; gap: 6px; align-items: center; }
        .dash-graph-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }

        /* stats & actions inside bubbles */
        .dash-stats-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .dash-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
        .dash-stat-tile {
            background: var(--bg-hover);
            border-radius: 9px;
            padding: 11px 13px;
            border-left: 3px solid var(--green-light);
        }
        .dash-stat-tile.info { border-left-color: var(--info); }
        .dash-stat-tile.warn { border-left-color: var(--warning); }
        .ds-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--text-muted);
            margin-bottom: 3px;
        }
        .ds-val {
            font-family: 'JetBrains Mono', monospace;
            font-size: 26px;
            font-weight: 700;
            color: var(--green-light);
            line-height: 1;
        }
        .dash-stat-tile.info .ds-val { color: var(--info); }
        .dash-stat-tile.warn .ds-val { color: var(--warning); }
        .dash-action-tile {
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 10px 12px;
            background: var(--bg-hover);
            border-radius: 9px;
            cursor: pointer;
            border: 1px solid var(--border);
            transition: border-color 0.15s, background 0.15s;
        }
        .dash-action-tile:hover { border-color: var(--green-light); background: #f0faf4; }
        .dash-action-tile svg { width: 17px; height: 17px; color: var(--green-light); flex-shrink: 0; }
        .da-title { font-size: 12px; font-weight: 600; }
        .da-sub   { font-size: 10px; color: var(--text-muted); }

        /* Search */
        .search-bar {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
        }
        
        .search-bar input {
            flex: 1;
            padding: 12px 16px;
            background: var(--bg-dark);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-size: 14px;
        }
        
        .search-bar input:focus {
            outline: none;
            border-color: var(--green-light);
        }
        
        .search-bar select {
            padding: 12px 16px;
            background: var(--bg-dark);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-size: 14px;
            min-width: 150px;
        }
        
        /* Activity List */
        .activity-list {
            max-height: 400px;
            overflow-y: auto;
        }
        
        .activity-item {
            display: flex;
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
        }
        
        .activity-item:last-child { border-bottom: none; }
        
        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .activity-icon.receive { background: rgba(82, 183, 136, 0.2); color: var(--success); }
        .activity-icon.ship { background: rgba(76, 201, 240, 0.2); color: var(--info); }
        .activity-icon.move { background: rgba(82,183,136,0.18); color: #40916C; }
        .activity-icon.adjust { background: rgba(249, 199, 79, 0.2); color: var(--warning); }
        
        .activity-content { flex: 1; }
        .activity-content h4 { font-size: 14px; margin-bottom: 4px; color: var(--text); }
        .activity-content p { font-size: 12px; color: var(--text-muted); }
        .activity-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
        
        /* Print Styles */
        @media print {
            .sidebar, .no-print { display: none !important; }
            .main { margin-left: 0; }
            body { background: white; color: black; }
            .card { border: 1px solid #ccc; }
        }
        
        /* Grid layout helper */
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        @media (max-width: 1024px) {
            .grid-2 { grid-template-columns: 1fr; }
        }


/* Apple-style welcome transition */
body.ph-post-login-hold .app,
body.ph-post-login-hold .mob-menu-btn,
body.ph-post-login-hold .sidebar-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
body.ph-splash-active .login-overlay,
body.ph-welcome-active .login-overlay,
body.ph-login-transition .login-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
body.ph-welcome-active {
    overflow: hidden;
}
body.ph-welcome-active .app,
body.ph-welcome-active .mob-menu-btn,
body.ph-welcome-active .sidebar-overlay {
    pointer-events: none;
}

body.ph-welcome-active .app,
body.ph-login-transition .app {
    opacity: 0 !important;
    visibility: hidden !important;
}
.ph-welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .42s ease, visibility 0s linear .42s;
}
.ph-welcome-screen.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .42s ease;
}
.ph-welcome-screen.is-exiting {
    opacity: 0;
    pointer-events: none;
}
.ph-welcome-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(116, 198, 157, 0.28), transparent 36%),
        radial-gradient(circle at 50% 85%, rgba(82, 183, 136, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(248, 252, 249, 0.98) 0%, rgba(233, 244, 236, 0.98) 100%);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.ph-welcome-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: min(92vw, 960px);
    transform: translateY(18px) scale(.985);
    opacity: .94;
    transition: transform .72s cubic-bezier(.22,1,.36,1), opacity .42s ease;
}
.ph-welcome-screen.is-visible .ph-welcome-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.ph-welcome-screen.is-exiting .ph-welcome-card {
    transform: translateY(-10px) scale(1.008);
    opacity: 0;
}
.ph-welcome-logo-shell {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(45, 106, 79, 0.22);
}
.ph-welcome-kicker {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--green-primary);
    opacity: .84;
}
.ph-welcome-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(36px, 5.8vw, 74px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -.045em;
    color: var(--green-dark);
    text-shadow: 0 12px 34px rgba(27, 67, 50, 0.10);
}
@media (max-width: 640px) {
    .ph-welcome-card {
        gap: 14px;
    }
    .ph-welcome-logo-shell {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }
    .ph-welcome-kicker {
        font-size: 11px;
        letter-spacing: .18em;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#ph-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.ph-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 6px 28px rgba(0,0,0,0.22);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .24s ease, transform .24s ease;
    max-width: 320px;
    min-width: 200px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}
.ph-toast--visible {
    opacity: 1;
    transform: translateX(0);
}
.ph-toast-icon {
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
}
.ph-toast-text { flex: 1; }
.ph-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.35);
    animation: toastBar 2.8s linear forwards;
}
@keyframes toastBar {
    from { width: 100%; }
    to   { width: 0%; }
}
.ph-toast--success { background: var(--green-primary); }
.ph-toast--error   { background: #c0392b; }
.ph-toast--info    { background: var(--green-mid); }
@media (max-width: 480px) {
    #ph-toast-container { bottom: 16px; right: 16px; left: 16px; }
    .ph-toast { max-width: 100%; }
}
