    *{box-sizing:border-box;margin:0;padding:0}
    html{scroll-behavior:smooth;overflow-x:hidden}
    body{font-family:'Noto Sans','Manrope',Calibri,sans-serif;background:#F6F1E8;color:#1e293b;min-height:100vh;-webkit-font-smoothing:antialiased;overflow-x:hidden}
    a{text-decoration:none;color:inherit}
    button,input,select{font:inherit}

    /* ────────────────── BRAND TOKENS ────────────────── */
    :root{
      --brand:#dc3220; --brand2:#e8522a;
      --teal:#0ea8a2; --teal2:#2dd4bf;
      --navy:#0f172a; --navy2:#131c2e;
    }

    /* ────────────────── TOPBAR ────────────────── */
    .topbar{
      background:var(--navy);
      border-bottom:1px solid #1e293b;
      padding:0 32px;height:60px;
      display:flex;align-items:center;justify-content:space-between;gap:16px;
      position:sticky;top:0;z-index:200;
    }
    .topbar-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
    .topbar-brand img{height:32px;width:auto;display:block}
    .topbar-actions{display:flex;align-items:center;gap:8px}
    .topbar-btn{
      display:inline-flex;align-items:center;gap:6px;
      padding:7px 16px;border-radius:8px;
      font-size:.82rem;font-weight:700;
      border:1.5px solid rgba(255,255,255,.16);background:transparent;color:#d1d5db;
      cursor:pointer;transition:all .18s ease;white-space:nowrap;
    }
    .topbar-btn:hover{border-color:rgba(255,255,255,.4);color:#fff;background:rgba(255,255,255,.06)}
    .topbar-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
    .topbar-btn.danger{color:#ff8a72;border-color:rgba(220,50,32,.35);background:rgba(220,50,32,.08)}
    .topbar-btn.danger:hover{background:rgba(220,50,32,.16);border-color:rgba(220,50,32,.6);color:#fff}

    /* ────────────────── WELCOME BANNER ────────────────── */
    .welcome-banner{
      background:
        radial-gradient(560px 220px at 12% 20%, rgba(220,50,32,.22), transparent 70%),
        radial-gradient(480px 220px at 95% 100%, rgba(14,168,162,.16), transparent 70%),
        linear-gradient(120deg, #0b1220 0%, var(--navy2) 55%, #0b1118 100%);
      padding:34px 32px;
      border-bottom:1px solid rgba(220,50,32,.25);
    }
    .welcome-inner{
      max-width:1280px;margin:0 auto;
      display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
    }
    .welcome-eyebrow{
      font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
      color:var(--teal2);margin-bottom:6px;
    }
    .welcome-name{
      font-family:'Manrope',sans-serif;
      font-size:1.7rem;font-weight:800;color:#fff;letter-spacing:-.01em;margin-bottom:6px;
    }
    .welcome-sub{font-size:.9rem;color:rgba(255,255,255,.55);max-width:460px}
    .welcome-cta{
      display:inline-flex;align-items:center;gap:8px;flex-shrink:0;
      padding:12px 22px;border-radius:12px;
      font-size:.85rem;font-weight:800;color:#fff;white-space:nowrap;
      background:linear-gradient(90deg,var(--brand),var(--brand2));
      box-shadow:0 8px 24px rgba(220,50,32,.35);
      transition:transform .2s,box-shadow .2s;
    }
    .welcome-cta:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(220,50,32,.5)}
    .welcome-cta svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
    @media(max-width:640px){
      .welcome-banner{padding:26px 18px}
      .welcome-name{font-size:1.4rem}
      .welcome-cta{width:100%;justify-content:center}
    }

    /* ────────────────── LAYOUT ────────────────── */
    .dash-layout{
      max-width:1280px;margin:0 auto;
      display:grid;
      grid-template-columns:264px 1fr;
      gap:28px;
      padding:28px 28px 64px;
      align-items:start;
    }

    /* ────────────────── SIDEBAR ────────────────── */
    .dash-sidebar{display:flex;flex-direction:column;gap:16px;position:sticky;top:88px}

    .profile-card{
      background:#ffffff;
      border:1px solid #e2e8f0;
      border-top:3px solid var(--brand);
      border-radius:18px;
      padding:28px 22px 22px;
      text-align:center;
      box-shadow:0 1px 3px rgba(0,0,0,.04);
    }
    .user-avatar{
      width:64px;height:64px;border-radius:50%;
      background:linear-gradient(135deg,var(--brand),var(--brand2));
      display:flex;align-items:center;justify-content:center;
      font-size:1.5rem;font-weight:800;color:#fff;
      margin:0 auto 14px;
      box-shadow:0 0 0 4px rgba(220,50,32,.15),0 4px 12px rgba(220,50,32,.3);
      flex-shrink:0;
    }
    .user-greeting{
      font-size:1rem;font-weight:800;color:#0f172a;
      margin-bottom:5px;letter-spacing:-.01em;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    }
    .user-phone{
      font-size:.78rem;color:#94a3b8;font-weight:500;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:18px;
    }
    .profile-stats{
      display:grid;grid-template-columns:repeat(3,1fr);
      gap:1px;border-radius:12px;overflow:hidden;
      background:#e2e8f0;border:1px solid #e2e8f0;
    }
    .pstat{
      background:#f8fafc;padding:10px 6px;text-align:center;
    }
    .pstat-num{font-size:1.1rem;font-weight:800;color:var(--teal);line-height:1;display:block;margin-bottom:3px}
    .pstat-label{font-size:.62rem;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.06em}

    .sidebar-nav{
      background:#ffffff;
      border:1px solid #e2e8f0;
      border-radius:18px;
      overflow:hidden;
      box-shadow:0 1px 3px rgba(0,0,0,.04);
    }
    .sidebar-nav-head{
      padding:12px 18px;
      font-size:.68rem;font-weight:800;color:#94a3b8;letter-spacing:.1em;text-transform:uppercase;
      border-bottom:1px solid #f1f5f9;
    }
    .sidebar-nav a{
      display:flex;align-items:center;gap:12px;
      padding:12px 18px;font-size:.88rem;font-weight:700;color:#475569;
      border-bottom:1px solid #f1f5f9;
      transition:background .15s,color .15s,border-left .15s;
      border-left:3px solid transparent;
    }
    .sidebar-nav a:last-child{border-bottom:none}
    .sidebar-nav a:hover{background:#fdf4f2;color:var(--brand);border-left-color:var(--brand)}
    .sidebar-nav a svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
    .sidebar-nav-badge{
      margin-left:auto;font-size:.66rem;font-weight:800;
      padding:2px 8px;border-radius:999px;
      background:rgba(220,50,32,.1);color:var(--brand);
      border:1px solid rgba(220,50,32,.2);
    }

    /* ────────────────── MAIN CONTENT ────────────────── */
    .dash-main{display:flex;flex-direction:column;gap:20px}

    /* Page-level status */
    #status{
      font-size:.85rem;font-weight:600;color:#64748b;
      padding:4px 0;min-height:20px;text-align:center;
    }

    /* ────────────────── CARDS ────────────────── */
    .dash-card{
      background:#ffffff;
      border:1px solid #e2e8f0;
      border-radius:18px;
      overflow:hidden;
      box-shadow:0 1px 4px rgba(0,0,0,.04);
    }
    .card-head{
      display:flex;align-items:center;justify-content:space-between;gap:12px;
      padding:18px 22px;
      border-bottom:1px solid #f1f5f9;
    }
    .card-head-left{display:flex;align-items:center;gap:12px}
    .card-icon{
      width:36px;height:36px;border-radius:10px;
      background:rgba(220,50,32,.09);border:1px solid rgba(220,50,32,.2);
      display:flex;align-items:center;justify-content:center;flex-shrink:0;
    }
    .card-icon svg{width:17px;height:17px;stroke:var(--brand);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .card-head-text h2{font-size:.95rem;font-weight:800;color:#0f172a;margin-bottom:2px}
    .card-head-text p{font-size:.75rem;color:#94a3b8}
    .card-badge{
      font-size:.68rem;font-weight:800;letter-spacing:.06em;
      padding:4px 12px;border-radius:999px;
      background:rgba(220,50,32,.09);border:1px solid rgba(220,50,32,.2);
      color:var(--brand);text-transform:uppercase;white-space:nowrap;flex-shrink:0;
    }
    .card-body{padding:20px 22px}

    /* ────────────────── ORDER TABLE ────────────────── */
    .order-table-wrap{overflow-x:auto;margin:0 -22px;padding:0 22px}
    .order-table{width:100%;border-collapse:collapse;min-width:540px}
    .order-table th{
      text-align:left;padding:10px 14px;
      font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
      color:#94a3b8;border-bottom:2px solid #f1f5f9;white-space:nowrap;
    }
    .order-table td{
      padding:14px 14px;border-bottom:1px solid #f8fafc;
      font-size:.875rem;vertical-align:middle;
    }
    .order-table tbody tr:last-child td{border-bottom:none}
    .order-table tbody tr:hover td{background:#fafbfc}
    .order-id{font-weight:700;color:#0f172a;font-size:.82rem;font-family:monospace}
    .order-date{color:#94a3b8;font-size:.8rem;white-space:nowrap}
    .order-amount{font-weight:800;color:#0f172a}
    .status-badge{
      display:inline-flex;align-items:center;gap:5px;
      padding:4px 10px;border-radius:999px;
      font-size:.7rem;font-weight:800;letter-spacing:.04em;white-space:nowrap;
    }
    .status-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
    .status-placed{background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe}
    .status-processing{background:#fffbeb;color:#d97706;border:1px solid #fde68a}
    .status-shipped{background:#f0fdf9;color:#0ea8a2;border:1px solid #99f6e4}
    .status-delivered{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}
    .track-btn{
      display:inline-flex;align-items:center;gap:5px;
      padding:6px 13px;border-radius:8px;
      font-size:.75rem;font-weight:700;
      border:1.5px solid #e2e8f0;background:#f8fafc;color:#475569;
      cursor:pointer;transition:all .18s ease;white-space:nowrap;
    }
    .track-btn:hover{border-color:var(--teal);background:rgba(14,168,162,.07);color:var(--teal)}
    .track-btn svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

    /* ────────────────── TRACKING TIMELINE ────────────────── */
    .tracking-select{
      width:100%;padding:11px 16px;border-radius:10px;
      border:1.5px solid #e2e8f0;background:#f8fafc;color:#1e293b;
      font-size:.875rem;font-weight:600;margin-bottom:22px;
      cursor:pointer;transition:border-color .2s;
      -webkit-appearance:none;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'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat:no-repeat;background-position:right 14px center;padding-right:38px;
    }
    .tracking-select:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(14,168,162,.12);background-color:#fff}
    .tracking-order-label{
      font-size:.78rem;font-weight:700;color:#64748b;
      padding:8px 12px 18px;display:block;
    }
    .tracking-order-label strong{color:#0f172a}
    .timeline{position:relative;padding-left:28px}
    .timeline::before{
      content:"";position:absolute;left:7px;top:8px;bottom:8px;
      width:2px;background:linear-gradient(180deg,var(--teal) 0%,rgba(14,168,162,.15) 100%);
      border-radius:2px;
    }
    .timeline-item{position:relative;padding:0 0 22px 18px}
    .timeline-item:last-child{padding-bottom:0}
    .timeline-dot{
      position:absolute;left:-21px;top:4px;
      width:14px;height:14px;border-radius:50%;
      background:var(--teal);border:2.5px solid #fff;
      box-shadow:0 0 0 2px rgba(14,168,162,.3);
    }
    .timeline-dot.pending{background:#cbd5e1;box-shadow:0 0 0 2px rgba(203,213,225,.5)}
    .timeline-label{font-size:.875rem;font-weight:700;color:#0f172a;margin-bottom:3px}
    .timeline-time{font-size:.75rem;color:#94a3b8}
    .timeline-note{
      font-size:.8rem;color:#475569;margin-top:6px;
      padding:8px 12px;background:#f8fafc;border-radius:8px;border-left:2px solid #e2e8f0;
    }

    /* ────────────────── DESIGN CARDS ────────────────── */
    .design-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
    .design-card{
      border:1.5px solid #e2e8f0;border-radius:14px;overflow:hidden;
      transition:all .2s ease;background:#fff;
    }
    .design-card:hover{border-color:var(--brand);box-shadow:0 4px 16px rgba(220,50,32,.12);transform:translateY(-2px)}
    .design-thumb{width:100%;height:140px;object-fit:cover;background:#f1f5f9;display:block}
    .design-thumb-placeholder{
      width:100%;height:140px;
      background:linear-gradient(135deg,rgba(220,50,32,.07),rgba(14,168,162,.05));
      display:flex;align-items:center;justify-content:center;
    }
    .design-thumb-placeholder svg{width:36px;height:36px;stroke:var(--brand);opacity:.4;fill:none;stroke-width:1.5}
    .design-info{padding:13px 14px}
    .design-name{font-size:.875rem;font-weight:700;color:#0f172a;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .design-meta{font-size:.7rem;color:#94a3b8;font-weight:600;letter-spacing:.04em;margin-bottom:10px;text-transform:uppercase}
    .design-actions{display:flex;gap:6px}
    .btn-resume{
      display:inline-flex;align-items:center;gap:5px;
      padding:7px 14px;border-radius:8px;font-size:.78rem;font-weight:700;
      background:linear-gradient(90deg,var(--brand),var(--brand2));color:#fff;
      border:none;cursor:pointer;transition:all .2s ease;flex:1;justify-content:center;
    }
    .btn-resume:hover{box-shadow:0 4px 12px rgba(220,50,32,.35);transform:translateY(-1px)}

    /* ────────────────── WISHLIST CARDS ────────────────── */
    .wish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
    .wish-card{border:1.5px solid #e2e8f0;border-radius:14px;overflow:hidden;transition:all .2s ease;background:#fff}
    .wish-card:hover{border-color:#c026d3;box-shadow:0 4px 16px rgba(192,38,211,.1);transform:translateY(-2px)}
    .wish-thumb{width:100%;height:130px;object-fit:cover;background:#fdf4ff;display:block}
    .wish-thumb-placeholder{
      width:100%;height:130px;
      background:linear-gradient(135deg,rgba(192,38,211,.06),rgba(139,92,246,.04));
      display:flex;align-items:center;justify-content:center;
    }
    .wish-thumb-placeholder svg{width:32px;height:32px;stroke:#c026d3;opacity:.35;fill:none;stroke-width:1.5}
    .wish-info{padding:13px 14px}
    .wish-name{font-size:.875rem;font-weight:700;color:#0f172a;margin-bottom:3px}
    .wish-type{font-size:.68rem;font-weight:800;color:#c026d3;letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px}
    .wish-actions{display:flex;gap:6px}
    .btn-open{
      display:inline-flex;align-items:center;gap:5px;
      padding:7px 12px;border-radius:8px;font-size:.78rem;font-weight:700;
      background:#c026d3;color:#fff;
      border:none;cursor:pointer;flex:1;justify-content:center;transition:all .2s;
    }
    .btn-open:hover{background:#a21caf;box-shadow:0 4px 12px rgba(192,38,211,.3)}
    .btn-remove{
      padding:7px 10px;border-radius:8px;font-size:.78rem;font-weight:700;
      background:transparent;color:#ef4444;
      border:1.5px solid rgba(239,68,68,.2);cursor:pointer;transition:all .18s;
    }
    .btn-remove:hover{background:rgba(239,68,68,.07);border-color:rgba(239,68,68,.4)}

    /* ────────────────── EMPTY STATES ────────────────── */
    .empty-state{padding:44px 20px;text-align:center}
    .empty-icon{
      width:60px;height:60px;border-radius:50%;
      background:rgba(220,50,32,.07);border:1.5px dashed rgba(220,50,32,.25);
      display:flex;align-items:center;justify-content:center;
      margin:0 auto 16px;
    }
    .empty-icon svg{width:26px;height:26px;stroke:var(--brand);fill:none;stroke-width:1.6;opacity:.7}
    .empty-state h3{font-size:.95rem;font-weight:800;color:#0f172a;margin-bottom:6px}
    .empty-state p{font-size:.83rem;color:#94a3b8;margin-bottom:18px;line-height:1.55;max-width:320px;margin-left:auto;margin-right:auto}
    .btn-primary{
      display:inline-flex;align-items:center;gap:7px;
      padding:10px 24px;border-radius:10px;
      background:linear-gradient(90deg,var(--brand),var(--brand2));
      color:#fff;font-size:.82rem;font-weight:800;
      border:none;cursor:pointer;
      box-shadow:0 4px 14px rgba(220,50,32,.32);transition:all .2s ease;
    }
    .btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(220,50,32,.42)}

    /* ────────────────── VENDOR REGISTRATION ────────────────── */
    .vendor-form{display:flex;flex-direction:column;gap:14px;max-width:420px}
    .vendor-field label{display:block;font-size:.78rem;font-weight:700;color:#475569;margin-bottom:6px}
    .vendor-field input{
      width:100%;padding:10px 14px;border-radius:10px;
      border:1.5px solid #e2e8f0;background:#f8fafc;color:#1e293b;font-size:.875rem;
      transition:border-color .2s;
    }
    .vendor-field input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(14,168,162,.12);background-color:#fff}
    .vendor-field input:disabled{color:#94a3b8;cursor:not-allowed}
    .vendor-field-hint{font-size:.72rem;color:#94a3b8;margin-top:4px}
    .vendor-note{
      border-radius:12px;padding:16px 18px;font-size:.85rem;line-height:1.55;
    }
    .vendor-note.pending{background:#fffbeb;border:1.5px solid #fde68a;color:#92400e}
    .vendor-note.approved{background:#f0fdf4;border:1.5px solid #bbf7d0;color:#166534}
    .vendor-note.rejected{background:#fef2f2;border:1.5px solid #fecaca;color:#991b1b}
    .vendor-note strong{display:block;font-size:.9rem;margin-bottom:4px}

    /* ────────────────── FOOTER ────────────────── */
    .dash-footer{
      max-width:1280px;margin:0 auto;
      padding:20px 28px;
      display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
      border-top:1px solid #e2e8f0;
      font-size:.78rem;color:#94a3b8;
    }
    .dash-footer a{color:var(--brand);font-weight:700}
    .dash-footer a:hover{text-decoration:underline}

    /* ────────────────── STAGE BADGES (ops orders) ────────────────── */
    .stage-badge{
      display:inline-flex;align-items:center;gap:5px;
      padding:5px 12px;border-radius:999px;
      font-size:.7rem;font-weight:800;letter-spacing:.03em;white-space:nowrap;
      background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06);
    }
    .stage-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
    .stage-design{color:#1565c0}
    .stage-printing{color:#00838f}
    .stage-inprogress{color:var(--brand)}
    .stage-installation{color:#2e7d32}
    .stage-completed{color:#616161}
    .stage-pending{color:#6a1b9a}
    .stage-default{color:#455a64}

    /* ────────────────── ORDER CARDS (ops orders) ────────────────── */
    .order-card-list{display:flex;flex-direction:column;gap:16px}
    .order-card{border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;background:#fff}
    .order-card-head{
      display:flex;align-items:center;justify-content:space-between;gap:10px;
      padding:14px 18px;background:#f8fafc;border-bottom:1px solid #f1f5f9;flex-wrap:wrap;
    }
    .order-card-title{display:flex;align-items:center;gap:10px;font-weight:800;color:#0f172a;font-size:.9rem}
    .order-card-icon{
      width:32px;height:32px;border-radius:50%;
      background:rgba(220,50,32,.1);display:flex;align-items:center;justify-content:center;flex-shrink:0;
    }
    .order-card-icon svg{width:15px;height:15px;stroke:var(--brand);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .order-card-body{padding:16px 18px}
    .order-requirement{font-size:.85rem;color:#475569;line-height:1.5;margin-bottom:14px}
    .order-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
    .order-stat{border-radius:12px;padding:10px 14px}
    .order-stat.quoted{background:rgba(220,50,32,.07)}
    .order-stat.paid{background:rgba(30,142,90,.09)}
    .order-stat-label{display:flex;align-items:center;gap:5px;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin-bottom:3px}
    .order-stat.quoted .order-stat-label{color:var(--brand)}
    .order-stat.paid .order-stat-label{color:#1e8e5a}
    .order-stat-amount{font-size:1.05rem;font-weight:800;color:#0f172a}
    .order-card-date{display:flex;align-items:center;gap:6px;font-size:.78rem;color:#94a3b8;margin-bottom:6px}
    .order-card-date svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .boards-toggle{
      display:flex;align-items:center;justify-content:space-between;
      padding:8px 4px;cursor:pointer;border-radius:8px;margin-top:8px;
    }
    .boards-toggle:hover{background:#f8fafc}
    .boards-toggle-label{display:flex;align-items:center;gap:6px;font-size:.8rem;font-weight:700;color:#64748b}
    .boards-toggle svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#94a3b8}
    .boards-toggle .chev{transition:transform .18s}
    .boards-toggle.expanded .chev{transform:rotate(180deg)}
    .boards-list{display:none;flex-direction:column;gap:8px;margin-top:8px}
    .boards-list.expanded{display:flex}
    .board-row{
      display:flex;align-items:center;gap:12px;
      background:#f8fafc;border-radius:12px;padding:10px 12px;
    }
    .board-row-icon{
      width:30px;height:30px;border-radius:8px;background:rgba(220,50,32,.1);
      display:flex;align-items:center;justify-content:center;flex-shrink:0;
    }
    .board-row-icon svg{width:14px;height:14px;stroke:var(--brand);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .board-row-name{font-size:.82rem;font-weight:700;color:#1e293b}
    .board-row-size{font-size:.74rem;color:#94a3b8}
    .board-stage-row{
      display:flex;align-items:center;justify-content:space-between;
      margin-left:42px;padding:5px 10px;background:#f1f5f9;border-radius:8px;font-size:.74rem;color:#64748b;
    }
    .board-stage-view-btn{
      border:1px solid rgba(220,50,32,.35);background:transparent;color:var(--brand);
      font-size:.7rem;font-weight:700;border-radius:6px;padding:3px 8px;cursor:pointer;
    }
    .board-stage-view-btn:hover{background:rgba(220,50,32,.08)}

    /* ────────────────── PHOTO LIGHTBOX ────────────────── */
    .lightbox-overlay{
      position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:1000;
      display:none;align-items:center;justify-content:center;flex-direction:column;padding:24px;
    }
    .lightbox-overlay.open{display:flex}
    .lightbox-top{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:900px;margin-bottom:14px}
    .lightbox-title{color:#fff;font-size:.9rem;font-weight:700}
    .lightbox-close{background:none;border:none;color:#fff;font-size:1.4rem;cursor:pointer;line-height:1}
    .lightbox-img-wrap{position:relative;width:100%;max-width:900px;flex:1;display:flex;align-items:center;justify-content:center;min-height:0}
    .lightbox-img-wrap img{max-width:100%;max-height:70vh;object-fit:contain;border-radius:8px}
    .lightbox-nav{
      position:absolute;top:50%;transform:translateY(-50%);
      background:rgba(255,255,255,.12);border:none;color:#fff;
      width:40px;height:40px;border-radius:50%;font-size:1.2rem;cursor:pointer;
    }
    .lightbox-nav:hover{background:rgba(255,255,255,.24)}
    .lightbox-nav.prev{left:0}
    .lightbox-nav.next{right:0}
    .lightbox-count{color:rgba(255,255,255,.6);font-size:.78rem;margin-top:12px}

    /* ────────────────── DEFECT MONITOR ────────────────── */
    .defect-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}
    .defect-summary-tile{
      border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:12px;
    }
    .defect-summary-tile.devices{background:rgba(14,168,162,.08)}
    .defect-summary-tile.active{background:rgba(30,142,90,.09)}
    .defect-summary-icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
    .defect-summary-tile.devices .defect-summary-icon{background:rgba(14,168,162,.18)}
    .defect-summary-tile.active .defect-summary-icon{background:rgba(30,142,90,.18)}
    .defect-summary-icon svg{width:18px;height:18px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .defect-summary-tile.devices svg{stroke:var(--teal)}
    .defect-summary-tile.active svg{stroke:#1e8e5a}
    .defect-summary-num{font-size:1.3rem;font-weight:800;color:#0f172a;line-height:1}
    .defect-summary-label{font-size:.72rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}

    .defect-refresh-badge{
      font-size:.7rem;font-weight:700;color:#94a3b8;
      background:#f1f5f9;padding:4px 10px;border-radius:999px;
    }
    .defect-header-actions{display:flex;align-items:center;gap:8px}

    .defect-info-note{
      border-radius:12px;padding:14px 16px;background:rgba(14,168,162,.06);
      border:1px solid rgba(14,168,162,.2);font-size:.82rem;color:#0f766e;line-height:1.5;margin-bottom:16px;
    }

    .device-card-list{display:flex;flex-direction:column;gap:14px}
    .device-card{border:1px solid #e2e8f0;border-radius:16px;padding:16px;background:#fff;cursor:pointer;transition:border-color .18s,box-shadow .18s}
    .device-card:hover{border-color:var(--teal);box-shadow:0 4px 14px rgba(14,168,162,.12)}
    .device-card.active{border-color:rgba(30,142,90,.35)}
    .device-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
    .device-card-who{display:flex;align-items:center;gap:10px}
    .device-avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
    .device-avatar.active{background:rgba(30,142,90,.16)}
    .device-avatar.offline{background:#f1f5f9}
    .device-avatar svg{width:18px;height:18px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .device-avatar.active svg{stroke:#1e8e5a}
    .device-avatar.offline svg{stroke:#94a3b8}
    .device-name{font-size:.86rem;font-weight:700;color:#0f172a}
    .device-order{font-size:.72rem;color:#94a3b8}
    .device-status-pill{
      display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;
      font-size:.68rem;font-weight:800;letter-spacing:.04em;
    }
    .device-status-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
    .device-status-pill.active{background:rgba(30,142,90,.12);color:#1e8e5a}
    .device-status-pill.offline{background:#f1f5f9;color:#94a3b8}
    .device-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
    .device-chip{font-size:.7rem;font-weight:700;padding:4px 9px;border-radius:8px}
    .device-chip.board{background:rgba(37,99,235,.1);color:#2563eb}
    .device-chip.fw{background:rgba(249,115,22,.12);color:#c2410c}
    .device-location{display:flex;align-items:center;gap:5px;font-size:.78rem;color:#94a3b8;margin-bottom:10px}
    .device-location svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .device-relay-row{
      display:flex;align-items:center;justify-content:space-between;
      padding:9px 12px;border-radius:10px;margin-bottom:10px;background:#f8fafc;
    }
    .device-relay-row.on{background:rgba(22,163,74,.09)}
    .device-relay-label{display:flex;align-items:center;gap:7px;font-size:.78rem;font-weight:700;color:#64748b}
    .device-relay-row.on .device-relay-label{color:#16a34a}
    .device-relay-label svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

    .relay-switch{position:relative;display:inline-block;width:42px;height:24px;flex-shrink:0}
    .relay-switch input{opacity:0;width:0;height:0}
    .relay-switch-track{
      position:absolute;inset:0;background:#cbd5e1;border-radius:999px;cursor:pointer;transition:background .2s;
    }
    .relay-switch-track::before{
      content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;
      background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.3);
    }
    .relay-switch input:checked + .relay-switch-track{background:#16a34a}
    .relay-switch input:checked + .relay-switch-track::before{transform:translateX(18px)}
    .relay-switch input:disabled + .relay-switch-track{opacity:.6;cursor:not-allowed}

    .device-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
    .device-metric{border-radius:10px;padding:9px 6px;text-align:center}
    .device-metric.voltage{background:rgba(37,99,235,.08)}
    .device-metric.current{background:rgba(192,38,211,.08)}
    .device-metric.power{background:rgba(14,168,162,.08)}
    .device-metric-label{font-size:.64rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;margin-bottom:2px}
    .device-metric.voltage .device-metric-label{color:#2563eb}
    .device-metric.current .device-metric-label{color:#c026d3}
    .device-metric.power .device-metric-label{color:var(--teal)}
    .device-metric-value{font-size:.92rem;font-weight:800;color:#0f172a}
    .device-metric-value span{font-size:.68rem;font-weight:600;color:#94a3b8;margin-left:2px}
    .device-footer{display:flex;align-items:center;gap:5px;font-size:.72rem;color:#94a3b8}
    .device-footer svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

    /* ────────────────── MODAL (device detail) ────────────────── */
    .modal-overlay{
      position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:900;
      display:none;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto;
    }
    .modal-overlay.open{display:flex}
    .modal-panel{
      background:#fff;border-radius:20px;max-width:560px;width:100%;padding:0;
      box-shadow:0 24px 60px rgba(0,0,0,.25);
    }
    .modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #f1f5f9}
    .modal-head h3{font-size:1.05rem;font-weight:800;color:#0f172a;margin-bottom:2px}
    .modal-head p{font-size:.78rem;color:#94a3b8}
    .modal-close{background:#f1f5f9;border:none;width:32px;height:32px;border-radius:50%;font-size:1.1rem;cursor:pointer;color:#64748b;flex-shrink:0}
    .modal-close:hover{background:#e2e8f0}
    .modal-body{padding:20px 22px;display:flex;flex-direction:column;gap:16px;max-height:75vh;overflow-y:auto}
    .modal-readings{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
    .modal-reading{border-radius:12px;padding:12px 8px;text-align:center;border:1px solid}
    .modal-reading.voltage{background:rgba(37,99,235,.06);border-color:rgba(37,99,235,.25)}
    .modal-reading.current{background:rgba(192,38,211,.06);border-color:rgba(192,38,211,.25)}
    .modal-reading.power{background:rgba(14,168,162,.06);border-color:rgba(14,168,162,.25)}
    .modal-reading-label{font-size:.7rem;font-weight:700;margin-bottom:2px}
    .modal-reading.voltage .modal-reading-label{color:#2563eb}
    .modal-reading.current .modal-reading-label{color:#c026d3}
    .modal-reading.power .modal-reading-label{color:var(--teal)}
    .modal-reading-value{font-size:1.1rem;font-weight:800;color:#0f172a}
    .modal-info-card{background:#f8fafc;border-radius:12px;padding:14px}
    .modal-info-card h4{font-size:.82rem;font-weight:800;color:#0f172a;margin-bottom:8px}
    .modal-info-row{display:flex;gap:10px;font-size:.8rem;margin-bottom:4px}
    .modal-info-row .k{color:#94a3b8;min-width:70px;flex-shrink:0}
    .modal-info-row .v{color:#334155;font-weight:600}
    .baseline-card{border-radius:12px;padding:14px;border:1px solid #e2e8f0}
    .baseline-card.locked{background:rgba(30,142,90,.06);border-color:rgba(30,142,90,.25)}
    .baseline-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
    .baseline-metric{background:rgba(0,0,0,.03);border-radius:8px;padding:8px 4px;text-align:center}
    .baseline-metric-label{font-size:.66rem;font-weight:700;color:#64748b}
    .baseline-metric-value{font-size:.78rem;font-weight:800;color:#0f172a}
    .chart-card{border:1px solid #e2e8f0;border-radius:12px;padding:12px}
    .chart-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
    .chart-card-head .title{font-size:.82rem;font-weight:800;color:#0f172a}
    .chart-card-head .now{font-size:.72rem;font-weight:700;padding:3px 9px;border-radius:8px}
    .chart-card canvas{width:100%;height:120px;display:block}

    /* ────────────────── RESPONSIVE ────────────────── */
    @media(max-width:1024px){
      .dash-layout{grid-template-columns:220px 1fr;gap:20px;padding:20px}
      .dash-sidebar{position:static}
    }
    @media(max-width:768px){
      .topbar{padding:0 14px;height:52px}
      .topbar-actions{gap:6px}
      .topbar-brand img{height:26px}
      /* Icon-only on mobile — the text-button's 7px/16px padding was meant for
         icon+label side by side; kept as-is with the label hidden it left a
         lopsided, oversized chip around just the icon. Square it up instead. */
      .topbar-btn{padding:9px;border-radius:9px;line-height:0}
      .topbar-btn span{display:none}
      .topbar-btn svg{width:16px;height:16px}
      .dash-layout{grid-template-columns:1fr;padding:16px 14px 56px}
      .dash-sidebar{position:static}
      /* .profile-stats' 3-column grid has no width constraint of its own —
         left inline in the same flex row as the avatar+name on a narrow
         phone, its natural content width pushed the whole card (and the
         page along with it) wider than the viewport, which is what forced
         mobile Chrome to render the entire site zoomed out until pinched
         back in. Wrapping it onto its own full-width row below the
         avatar+name fixes that regardless of how wide its content gets. */
      .profile-card{display:flex;flex-wrap:wrap;align-items:center;gap:14px;text-align:left;padding:18px}
      .user-avatar{width:52px;height:52px;font-size:1.25rem;margin:0;flex-shrink:0}
      .profile-card-info{flex:1;min-width:0}
      .profile-stats{flex-basis:100%;grid-template-columns:repeat(3,1fr)}
      .sidebar-nav{display:none}
      .design-grid,.wish-grid{grid-template-columns:repeat(2,1fr)}
      .order-table th:nth-child(3),.order-table td:nth-child(3){display:none}
      .order-stats,.device-metrics{grid-template-columns:repeat(3,1fr)}
      .order-stats{grid-template-columns:repeat(2,1fr)}
      .defect-summary{grid-template-columns:1fr 1fr}
      .modal-readings{grid-template-columns:repeat(3,1fr)}
    }
    @media(max-width:480px){
      .design-grid,.wish-grid{grid-template-columns:1fr}
      .device-metrics,.modal-readings,.baseline-metrics{grid-template-columns:1fr 1fr 1fr}
    }
/* Active nav item (multi-page profile) */
.sidebar-nav a.active{background:#fdf4f2;color:var(--brand);border-left-color:var(--brand)}
.sidebar-nav a.active svg{stroke:var(--brand)}
/* Overview landing: section grid of link cards */
.overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.ov-card{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;transition:border-color .18s,box-shadow .18s,transform .18s}
.ov-card:hover{border-color:var(--brand);box-shadow:0 6px 18px rgba(220,50,32,.1);transform:translateY(-2px)}
.ov-card-icon{width:44px;height:44px;border-radius:12px;background:rgba(220,50,32,.09);border:1px solid rgba(220,50,32,.2);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ov-card-icon svg{width:20px;height:20px;stroke:var(--brand);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ov-card-text h3{font-size:.92rem;font-weight:800;color:#0f172a;margin-bottom:2px}
.ov-card-text p{font-size:.75rem;color:#94a3b8}
.ov-card-badge{margin-left:auto;font-size:.72rem;font-weight:800;padding:3px 10px;border-radius:999px;background:rgba(220,50,32,.1);color:var(--brand);border:1px solid rgba(220,50,32,.2)}
/* Top "Back to Home" link in the welcome banner (replaces the old footer one) */
.welcome-back{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;color:rgba(255,255,255,.72);margin-bottom:12px;transition:color .15s}
.welcome-back:hover{color:#fff}
.welcome-back svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* ── Enhanced profile card (dashboard sidebar) ── */
.pcard-badge{display:inline-block;margin-top:8px;font-size:.66rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:rgba(14,168,162,.1);color:#0f766e;border:1px solid rgba(14,168,162,.25)}
.coins-mini{display:flex;align-items:center;gap:10px;margin-top:16px;padding:10px 12px;border-radius:12px;background:linear-gradient(120deg,#fff7e6,#fdeccd);border:1px solid #f5d99a;color:#3a2600;transition:border-color .15s}
.coins-mini:hover{border-color:#e0a93a}
.coins-mini-ic{font-size:1.1rem;flex-shrink:0}
.coins-mini-txt{display:flex;flex-direction:column;line-height:1.2;font-size:.8rem;font-weight:700}
.coins-mini-txt small{font-weight:600;font-size:.68rem;color:#8a6d1f}
.coins-mini-chev{margin-left:auto;color:#b8860b;font-size:1.1rem;font-weight:700}
.pcard-completion{margin-top:16px;text-align:left}
.pcard-completion-top{display:flex;justify-content:space-between;font-size:.72rem;font-weight:700;color:#64748b;margin-bottom:6px}
.pcard-completion-top span:last-child{color:var(--brand)}
.pcard-completion-bar{height:7px;border-radius:999px;background:#eef1f5;overflow:hidden}
.pcard-completion-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#22c55e,#16a34a);transition:width .4s ease}
.pcard-viewprofile{display:inline-block;margin-top:8px;font-size:.75rem;font-weight:700;color:var(--brand)}
.pcard-viewprofile:hover{text-decoration:underline}
.profile-card .profile-stats{margin-top:16px}
