    :root { --primary: #059669; --primary-dark: #047857; --accent: #06b6d4; }
    [v-cloak] { display: none !important; }
    * { box-sizing: border-box; }
    body {
      font-family: "Manrope", "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      margin: 0;
      background:
        radial-gradient(ellipse at 20% 0%, rgba(5,150,105,0.03), transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(6,182,212,0.03), transparent 50%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    }

    /* ===== Sidebar: mobile-first ===== */
    /* Mobile/tablet: overlay drawer */
    .sidebar-backdrop {
      display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
      z-index: 99; backdrop-filter: blur(2px);
      opacity: 0; transition: opacity 0.3s;
    }
    .sidebar-backdrop.visible { display: block; opacity: 1; }
    .sidebar {
      position: fixed; left: 0; top: 0; bottom: 0;
      width: 268px;
      background: linear-gradient(180deg, #0a0f1e 0%, #0f1729 40%, #111a2e 100%);
      color: white;
      z-index: 100;
      overflow-y: auto; overflow-x: hidden;
      box-shadow: 4px 0 32px rgba(10,15,30,0.15);
      transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
      transform: translateX(-100%); /* hidden by default */
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
    .sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; }
    .sidebar-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(135deg, #34d399, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: flex; align-items: center; gap: 8px; }
    .sidebar-logo img { height: 28px; width: auto; max-width: 140px; object-fit: contain; flex-shrink: 0; }
    .sidebar-logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sidebar-close { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 18px; }
    .sidebar-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
    .nav-menu { padding: 8px; }
    .nav-group-label { padding: 16px 16px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(148,163,184,0.45); }
    .nav-item { margin-bottom: 2px; padding: 10px 14px; cursor: pointer; transition: all 0.2s cubic-bezier(0.4,0,0.2,1); display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; border-radius: 10px; color: rgba(226,232,240,0.65); }
    .nav-item:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
    .nav-item.active { background: linear-gradient(135deg, #059669, #047857); color: #fff; box-shadow: 0 4px 16px rgba(5,150,105,0.3); }
    .nav-item .mdi { font-size: 19px; opacity: 0.65; transition: opacity 0.2s; flex-shrink: 0; width: 22px; text-align: center; }
    .nav-item:hover .mdi { opacity: 0.9; }
    .nav-item.active .mdi { opacity: 1; color: #fff; }
    .nav-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

    /* Desktop (>=1025px): persistent sidebar, no backdrop */
    @media (min-width: 1025px) {
      .sidebar { transform: none; }
      .sidebar.closed { transform: translateX(-100%); }
      .sidebar-backdrop { display: none !important; }
      .main-content { margin-left: 268px; min-height: 100vh; transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1); }
      .main-content.sidebar-closed { margin-left: 0; }
    }

    /* Mobile/tablet (<=1024px): overlay drawer */
    @media (max-width: 1024px) {
      .sidebar { width: 240px; }
      .main-content { margin-left: 0; min-height: 100vh; }
      .hamburger-btn { display: flex; }
    }

    /* Top bar responsive */
    @media (max-width: 768px) {
      .top-bar { padding: 0 14px; height: 56px; gap: 10px; }
      .top-bar-left .page-kicker { display: none; }
      .top-bar-left .page-title { font-size: 14px; }
      .top-bar-btn .btn-text { display: none; }
      .top-bar-btn { padding: 6px 10px; }
      .top-bar-divider { height: 22px; }
      .user-trigger { padding: 5px 10px 5px 6px; gap: 8px; }
      .user-avatar { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
      .top-bar-right { gap: 6px; }
      .content-area { padding: 16px; }
    }
    @media (max-width: 480px) {
      .top-bar { padding: 0 10px; height: 52px; }
      .top-bar-left .page-title { font-size: 13px; }
      .top-bar-divider { display: none; }
      .user-info-text { display: none; }
      .content-area { padding: 12px; }
    }

    /* Dashboard responsive grids */
    @media (max-width: 900px) {
      .grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
      .grid-cols-3 { grid-template-columns: repeat(2, 1fr) !important; }
      .grid-cols-2 { grid-template-columns: 1fr !important; }
    }
    @media (max-width: 520px) {
      .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr !important; }
    }

    /* Hamburger button in top bar */
    .hamburger-btn { display: flex; width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 1px solid rgba(148,163,184,0.12); color: #475569; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 20px; }
    .hamburger-btn:hover { background: rgba(5,150,105,0.06); color: #059669; border-color: rgba(5,150,105,0.15); }

    /* Top Bar */
    .top-bar {
      background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(248,250,251,0.95) 100%);
      padding: 0 28px;
      height: 64px;
      backdrop-filter: blur(24px) saturate(1.8);
      -webkit-backdrop-filter: blur(24px) saturate(1.8);
      border-bottom: 1px solid rgba(148,163,184,0.08);
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
      display: flex; align-items: center; gap: 16px;
      position: sticky; top: 0; z-index: 50;
    }
    .top-bar-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
    .top-bar-left .page-title { font-size: 16px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-bar-left .page-kicker { font-size: 10px; color: #059669; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 6px; }
    .top-bar-left .page-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #059669, #06b6d4); display: inline-block; }
    .top-bar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
    .top-bar-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 16px; border-radius: 10px;
      font-size: 12px; font-weight: 600;
      color: #64748b; background: rgba(241,245,249,0.6);
      border: 1px solid rgba(148,163,184,0.1);
      cursor: pointer; transition: all 0.2s;
      text-decoration: none; white-space: nowrap;
    }
    .top-bar-btn:hover { background: rgba(5,150,105,0.06); color: #059669; border-color: rgba(5,150,105,0.15); transform: translateY(-1px); }
    .top-bar-btn .mdi { font-size: 16px; }
    .top-bar-divider { width: 1px; height: 28px; background: rgba(148,163,184,0.12); flex-shrink: 0; }
    .user-dropdown { position: relative; }
    .user-trigger {
      display: flex; align-items: center; gap: 12px;
      padding: 6px 14px 6px 8px; border-radius: 14px;
      cursor: pointer; transition: all 0.2s;
      border: 1px solid rgba(148,163,184,0.08);
      background: rgba(241,245,249,0.4);
    }
    .user-trigger:hover { background: rgba(5,150,105,0.04); border-color: rgba(5,150,105,0.12); box-shadow: 0 2px 8px rgba(5,150,105,0.06); }
    .user-avatar {
      width: 36px; height: 36px; border-radius: 12px;
      background: linear-gradient(135deg, #059669, #06b6d4);
      display: flex; align-items: center; justify-content: center;
      color: white; font-size: 15px; font-weight: 700;
      box-shadow: 0 2px 8px rgba(5,150,105,0.2);
    }
    .user-info-text { line-height: 1.3; }
    .user-name { font-size: 13px; font-weight: 700; color: #0f172a; }
    .user-role { font-size: 10px; color: #059669; font-weight: 600; background: rgba(5,150,105,0.06); padding: 1px 6px; border-radius: 4px; display: inline-block; margin-top: 1px; }
    .dropdown-menu {
      position: absolute; right: 0; top: calc(100% + 10px);
      background: white; border-radius: 16px;
      border: 1px solid rgba(148,163,184,0.08);
      box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.06);
      min-width: 200px; padding: 8px;
      z-index: 200;
      animation: dropIn 0.18s cubic-bezier(0.22,1,0.36,1);
    }
    @keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
    .dropdown-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 14px; border-radius: 10px;
      font-size: 13px; font-weight: 600; color: #475569;
      cursor: pointer; transition: all 0.15s;
    }
    .dropdown-item:hover { background: rgba(5,150,105,0.06); color: #059669; }
    .dropdown-item.danger { color: #ef4444; }
    .dropdown-item.danger:hover { background: rgba(239,68,68,0.06); }
    .dropdown-item .mdi { font-size: 18px; }
    .dropdown-divider { height: 1px; background: rgba(148,163,184,0.08); margin: 4px 8px; }
    .content-area { padding: 24px; }

    /* Stat Cards */
    .stat-card {
      background: white;
      border-radius: 16px;
      padding: 20px;
      border: 1px solid rgba(148,163,184,0.06);
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
      transition: all 0.2s;
      position: relative;
      overflow: hidden;
    }
    .stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
    .stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
    .stat-icon.green { background: rgba(5,150,105,0.08); color: #059669; }
    .stat-icon.blue { background: rgba(59,130,246,0.08); color: #3b82f6; }
    .stat-icon.purple { background: rgba(139,92,246,0.08); color: #8b5cf6; }
    .stat-icon.amber { background: rgba(245,158,11,0.08); color: #f59e0b; }
    .stat-icon.red { background: rgba(239,68,68,0.08); color: #ef4444; }
    .stat-icon.cyan { background: rgba(6,182,212,0.08); color: #0891b2; }
    .stat-value { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; line-height: 1.2; }
    .stat-label { font-size: 12px; color: #94a3b8; font-weight: 600; }
    .stat-change { font-size: 11px; font-weight: 600; margin-top: 4px; }
    .stat-change.up { color: #059669; }
    .stat-change.down { color: #ef4444; }

    .quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .quick-action {
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      padding: 16px 12px; border-radius: 14px; cursor: pointer;
      background: white; border: 1px solid rgba(148,163,184,0.06);
      transition: all 0.2s; text-align: center;
    }
    .quick-action:hover { background: rgba(5,150,105,0.04); border-color: rgba(5,150,105,0.15); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
    .quick-action .qa-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
    .quick-action .qa-label { font-size: 12px; font-weight: 600; color: #475569; }

    .alert-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(148,163,184,0.06); }
    .alert-item:last-child { border-bottom: none; }
    .alert-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
    .alert-dot.red { background: #ef4444; }
    .alert-dot.amber { background: #f59e0b; }
    .stat-card::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, #059669, #06b6d4);
      opacity: 0;
      transition: opacity 0.3s;
    }
    .stat-card:hover::before { opacity: 1; }

    /* Data Table */
    .data-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
    }
    .data-table th {
      background: #f8fafb;
      padding: 14px 18px;
      text-align: left;
      font-weight: 700;
      font-size: 11px;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      border-bottom: 1px solid rgba(148,163,184,0.1);
    }
    .data-table td {
      padding: 14px 18px;
      border-bottom: 1px solid rgba(241,245,249,0.8);
      font-size: 14px;
      transition: background 0.15s;
    }
    .data-table tr:hover td { background: rgba(5,150,105,0.02); }
    .data-table tr:last-child td { border-bottom: none; }

    /* Buttons */
    .btn-primary {
      background: linear-gradient(135deg, #059669, #047857);
      color: white;
      padding: 10px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
      border: none;
      box-shadow: 0 4px 12px rgba(5,150,105,0.2);
      font-family: inherit;
    }
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(5,150,105,0.28); }
    .btn-secondary {
      background: #f1f5f9;
      color: #475569;
      padding: 10px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      border: 1px solid rgba(148,163,184,0.12);
      font-family: inherit;
    }
    .btn-secondary:hover { background: #e2e8f0; }
    .btn-danger {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      color: white;
      padding: 10px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
      border: none;
      box-shadow: 0 4px 12px rgba(239,68,68,0.2);
      font-family: inherit;
    }
    .btn-danger:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(239,68,68,0.28); }

    /* Form Inputs */
    .form-input {
      width: 100%;
      padding: 11px 16px;
      border: 1.5px solid rgba(148,163,184,0.18);
      border-radius: 12px;
      font-size: 14px;
      transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
      background: #f8fafb;
      font-family: inherit;
    }
    .form-input:focus {
      outline: none;
      border-color: #059669;
      background: #fff;
      box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
    }
    .form-input::placeholder { color: #cbd5e1; }

    /* Modal */
    .modal-mask {
      position: fixed; inset: 0;
      background: rgba(15,23,42,0.45);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 200;
      display: flex; align-items: center; justify-content: center;
      animation: maskFade 0.25s ease;
    }
    @keyframes maskFade { from { opacity: 0; } to { opacity: 1; } }
    .modal-body {
      background: white;
      border-radius: 24px;
      max-width: 800px;
      width: 95%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 28px;
      border: 1px solid rgba(148,163,184,0.08);
      box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
      animation: modalUp 0.3s cubic-bezier(0.22,1,0.36,1);
    }
    @keyframes modalUp { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

    /* Status Tags */
    .status-tag { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
    .status-success { background: rgba(5,150,105,0.08); color: #059669; }
    .status-warning { background: rgba(245,158,11,0.08); color: #d97706; }
    .status-error { background: rgba(239,68,68,0.08); color: #dc2626; }
    .status-info { background: rgba(6,182,212,0.08); color: #0891b2; }

    /* Status Badge */
    .status-badge { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; display: inline-block; }
    .status-active { background: rgba(5,150,105,0.08); color: #059669; }
    .status-inactive { background: rgba(239,68,68,0.08); color: #dc2626; }
    .status-pending { background: rgba(245,158,11,0.1); color: #d97706; }
    .status-confirmed { background: rgba(59,130,246,0.1); color: #3b82f6; }
    .status-receiving { background: rgba(139,92,246,0.1); color: #8b5cf6; }
    .status-completed { background: rgba(5,150,105,0.1); color: #059669; }
    .status-cancelled { background: rgba(107,114,128,0.1); color: #6b7280; }

    /* Chart Container */
    .chart-container {
      background: white;
      border-radius: 22px;
      padding: 24px;
      border: 1px solid rgba(148,163,184,0.08);
      box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.04);
      height: 320px;
    }

    /* Pagination */
    .pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(148,163,184,0.08); }
    .pagination-info { font-size: 13px; color: #64748b; }
    .pagination-info strong { color: #0f172a; font-weight: 700; }
    .pagination-pages { display: flex; gap: 4px; align-items: center; }
    .page-btn {
      min-width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      border: 1.5px solid rgba(148,163,184,0.12);
      border-radius: 10px;
      cursor: pointer;
      background: white;
      font-weight: 600;
      font-size: 13px;
      transition: all 0.2s;
      font-family: inherit;
      padding: 0 10px;
    }
    .page-btn:hover { background: #f8fafb; border-color: rgba(148,163,184,0.25); }
    .page-btn.active {
      background: linear-gradient(135deg, #059669, #047857);
      color: white;
      border-color: transparent;
      box-shadow: 0 4px 12px rgba(5,150,105,0.2);
    }
    .page-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
    .page-ellipsis { color: #94a3b8; font-size: 14px; padding: 0 4px; }

    /* Custom scrollbar */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.2); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.35); }

    ::selection { background: rgba(5,150,105,0.15); color: #047857; }

    /* Category Page */
    /* ===== Category Management (two-column) ===== */
    .cat-expand-btn { width: 24px; height: 24px; border-radius: 6px; border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 16px; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); padding: 0; }
    .cat-expand-btn:hover { background: #f1f5f9; color: #475569; }
    .cat-expand-btn.expanded { transform: rotate(90deg); }
    .cat-parent-tr { background: #fff; }
    .cat-child-tr { background: #f8fafb; }
    .cat-child-tr td { border-top: 1px solid rgba(148,163,184,0.06); }
    .cat-img-thumb { width: 28px; height: 28px; border-radius: 6px; overflow: hidden; flex-shrink: 0; display: inline-flex; vertical-align: middle; }
    .cat-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .cat-img-thumb-sm { width: 22px; height: 22px; border-radius: 4px; }
    .cat-emoji-thumb { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; display: inline-block; vertical-align: middle; }
    .cat-emoji-thumb-sm { font-size: 14px; width: 22px; }
    .action-btn { width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #94a3b8; font-size: 16px; transition: all 0.15s; }
    .action-btn:hover { background: #f1f5f9; color: #475569; }
    .action-btn-danger:hover { background: rgba(239,68,68,0.08); color: #ef4444; }

    /* Category Image Upload in Modal */
    .category-image-upload {
      display: flex; align-items: center; gap: 14px; margin-top: 4px;
    }
    .category-image-preview {
      width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
      border: 1.5px solid rgba(148,163,184,0.18); flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      background: #f8fafb;
    }
    .category-image-preview img { width: 100%; height: 100%; object-fit: cover; }
    .category-image-preview .mdi { font-size: 24px; color: #cbd5e1; }

    /* Custom Toast */
    .toast-container {
      position: fixed; top: 24px; right: 24px; z-index: 9999;
      display: flex; flex-direction: column; gap: 10px;
    }
    .toast {
      background: white; border-radius: 16px; padding: 16px 20px;
      display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: 420px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
      border: 1px solid rgba(148,163,184,0.1);
      animation: toastIn 0.35s cubic-bezier(0.22,1,0.36,1);
      transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    .toast.toast-out {
      opacity: 0; transform: translateX(100px);
    }
    @keyframes toastIn {
      from { opacity: 0; transform: translateX(100px) scale(0.95); }
      to { opacity: 1; transform: translateX(0) scale(1); }
    }
    .toast-icon {
      width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 20px;
    }
    .toast-success .toast-icon { background: rgba(5,150,105,0.1); color: #059669; }
    .toast-error .toast-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
    .toast-warning .toast-icon { background: rgba(245,158,11,0.1); color: #d97706; }
    .toast-info .toast-icon { background: rgba(6,182,212,0.1); color: #0891b2; }
    .toast-content { flex: 1; min-width: 0; }
    .toast-title { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 2px; }
    .toast-message { font-size: 13px; color: #64748b; line-height: 1.4; }
    .toast-close {
      width: 28px; height: 28px; border-radius: 8px; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      background: transparent; color: #94a3b8; font-size: 16px;
      transition: all 0.2s; flex-shrink: 0;
    }
    .toast-close:hover { background: #f1f5f9; color: #64748b; }

    /* Custom Confirm Dialog */
    .confirm-mask {
      position: fixed; inset: 0;
      background: rgba(15,23,42,0.45);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 10000;
      display: flex; align-items: center; justify-content: center;
      animation: maskFade 0.2s ease;
    }
    .confirm-dialog {
      background: white; border-radius: 24px; padding: 28px;
      max-width: 420px; width: 90%;
      box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
      animation: modalUp 0.3s cubic-bezier(0.22,1,0.36,1);
    }
    .confirm-icon {
      width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
      display: flex; align-items: center; justify-content: center; font-size: 26px;
    }
    .confirm-warning .confirm-icon { background: rgba(245,158,11,0.1); color: #d97706; }
    .confirm-danger .confirm-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
    .confirm-info .confirm-icon { background: rgba(6,182,212,0.1); color: #0891b2; }
    .confirm-title { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 8px; letter-spacing: -0.02em; }
    .confirm-message { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 24px; }
    .confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
    .confirm-actions .btn-primary,
    .confirm-actions .btn-secondary,
    .confirm-actions .btn-danger { padding: 10px 24px; font-size: 14px; }

    /* User Edit Modal */
    .user-edit-header {
      display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
    }
    .user-avatar {
      width: 56px; height: 56px; border-radius: 16px;
      background: linear-gradient(135deg, #059669, #06b6d4);
      display: flex; align-items: center; justify-content: center;
      color: white; font-size: 22px; font-weight: 800;
    }

    /* Settings Sub-menus */
    .settings-section {
      background: white;
      border-radius: 16px;
      border: 1px solid rgba(148,163,184,0.08);
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
      margin-bottom: 16px;
      overflow: hidden;
    }
    .settings-section-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 24px;
      cursor: pointer;
      transition: background 0.15s;
      user-select: none;
    }
    .settings-section-header:hover { background: rgba(5,150,105,0.02); }
    .settings-section-header .section-title {
      display: flex; align-items: center; gap: 12px;
      font-size: 15px; font-weight: 700; color: #0f172a;
    }
    .settings-section-header .section-icon {
      width: 36px; height: 36px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px;
    }
    .settings-section-header .section-badge {
      font-size: 11px; font-weight: 600; padding: 2px 8px;
      border-radius: 6px; margin-left: 8px;
    }
    .settings-section-header .collapse-arrow {
      font-size: 20px; color: #94a3b8;
      transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    }
    .settings-section-header .collapse-arrow.expanded {
      transform: rotate(180deg);
    }
    .settings-section-body {
      padding: 0 24px 24px;
      border-top: 1px solid rgba(148,163,184,0.06);
    }

    /* ===== 客服对话气泡 ===== */
    .conv-chat-box {
      max-height: 400px;
      overflow-y: auto;
      background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
      border-radius: 12px;
      padding: 16px 12px;
      margin-bottom: 12px;
    }
    .conv-chat-box::-webkit-scrollbar { width: 4px; }
    .conv-chat-box::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); border-radius: 4px; }
    .conv-date-divider {
      text-align: center;
      margin: 12px 0 8px;
      position: relative;
    }
    .conv-date-divider::before {
      content: "";
      position: absolute;
      left: 0; right: 0; top: 50%;
      border-top: 1px solid rgba(148,163,184,0.15);
    }
    .conv-date-divider span, .conv-date-divider {
      position: relative;
      display: inline-block;
      background: #f1f5f9;
      padding: 0 12px;
      font-size: 11px;
      color: #94a3b8;
      font-weight: 600;
    }
    .conv-row {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
      align-items: flex-start;
    }
    .conv-row.is-admin {
      flex-direction: row-reverse;
    }
    .conv-avatar {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 18px;
    }
    .avatar-admin {
      background: linear-gradient(135deg, #059669, #047857);
      color: #fff;
    }
    .avatar-user {
      background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
      color: #6366f1;
    }
    .conv-bubble-wrap {
      max-width: 75%;
      min-width: 0;
    }
    .conv-bubble {
      padding: 10px 14px;
      border-radius: 14px;
      line-height: 1.55;
      font-size: 13.5px;
      word-break: break-word;
      position: relative;
    }
    .bubble-admin {
      background: linear-gradient(135deg, #059669, #047857);
      color: #fff;
      border-bottom-right-radius: 4px;
    }
    .bubble-user {
      background: #fff;
      color: #0f172a;
      border: 1px solid rgba(148,163,184,0.12);
      border-bottom-left-radius: 4px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .conv-time {
      font-size: 11px;
      color: #94a3b8;
      margin-top: 4px;
      padding: 0 2px;
    }
    .conv-row.is-admin .conv-time {
      text-align: right;
    }
    .conv-input-bar {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .conv-input {
      flex: 1;
      height: 40px;
      padding: 0 14px;
      border: 1px solid rgba(148,163,184,0.2);
      border-radius: 10px;
      font-size: 13.5px;
      outline: none;
      transition: all 0.2s;
      background: #fff;
    }
    .conv-input:focus {
      border-color: #059669;
      box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
    }
    .conv-send-btn {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(135deg, #059669, #047857);
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .conv-send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(5,150,105,0.3); }
    .conv-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

    /* Quill Editor Custom Styles */
    .ql-toolbar.ql-snow {
      border: 1px solid #e2e8f0 !important;
      border-radius: 8px 8px 0 0 !important;
      background: #f8fafc;
      padding: 6px 8px !important;
    }
    .ql-container.ql-snow {
      border: 1px solid #e2e8f0 !important;
      border-top: none !important;
      border-radius: 0 0 8px 8px !important;
      font-family: "Noto Sans SC", sans-serif !important;
      font-size: 14px;
      min-height: 180px;
    }
    .ql-editor {
      min-height: 180px;
      line-height: 1.8;
      color: #334155;
    }
    .ql-editor p { margin-bottom: 8px; }
    .ql-editor h2 { font-size: 18px; font-weight: 700; color: #0f172a; margin: 16px 0 8px; }
    .ql-editor h3 { font-size: 16px; font-weight: 600; color: #1e293b; margin: 12px 0 6px; }
    /* News drag-drop upload zones */
    .news-cover-dropzone:hover, .news-cover-dropzone.drag-active,
    .news-carousel-dropzone:hover, .news-carousel-dropzone.drag-active,
    .recruit-banner-dropzone:hover, .recruit-banner-dropzone.drag-active {
      border-color: #059669 !important; background: rgba(5,150,105,0.04); box-shadow: 0 0 0 3px rgba(5,150,105,0.08);
    }
    .ql-snow .ql-stroke { stroke: #64748b; }
    .ql-snow .ql-fill { fill: #64748b; }
    .ql-snow .ql-picker-label { color: #64748b; }
    .ql-snow .ql-active .ql-stroke { stroke: #059669; }
    .ql-snow .ql-active .ql-fill { fill: #059669; }
    .ql-snow .ql-active { color: #059669; }

/* 多页后台：挂载前加载占位 */
.page-loading { padding: 96px 16px; text-align: center; color: #94a3b8; font-size: 14px; }

/* 品牌物料链接沿用侧边栏样式 */
a.nav-item { text-decoration: none; color: inherit; }
