
    * { margin: 0; padding: 0; box-sizing: border-box; }
    :root { --primary: #3b82f6; --secondary: #1d4ed8; --on-primary: #ffffff; }
    body { 
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
      background: #f5f5f5;
      min-height: 100vh;
    }
    
    .header {
      background: white;
      padding: 16px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #eee;
    }
    .header h1 { font-size: 18px; color: #333; }
    .header-left { display: flex; align-items: center; gap: 10px; }
    .header-logo { height: 32px; object-fit: contain; }
    .header a { color: var(--primary); text-decoration: none; font-size: 14px; }
    
    .toolbar {
      background: white;
      padding: 12px 16px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .toolbar select, .toolbar button {
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 14px;
    }
    .toolbar button {
      background: var(--primary);
      color: var(--on-primary);
      border: none;
    }
    .toolbar button.secondary {
      background: white;
      color: #333;
      border: 1px solid #ddd;
    }
    
    .list { 
      padding: 16px; 
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }
    
    .badge-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      width: 220px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      position: relative;
      border: 2px solid var(--primary);
    }
    .badge-card input[type="checkbox"] {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 24px;
      height: 24px;
    }
    
    .badge-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    
    .badge-name { 
      font-size: 24px; 
      font-weight: 700; 
      color: #1f2937; 
      margin-bottom: 8px;
    }
    .badge-code { 
      font-size: 28px; 
      color: var(--primary); 
      font-weight: 900; 
      letter-spacing: 4px;
    }
    .badge-type { 
      display: inline-block;
      background: var(--primary);
      color: var(--on-primary);
      padding: 8px 20px;
      border-radius: 20px;
      font-size: 16px;
      font-weight: 600;
      margin-top: 12px;
    }
    
    .actions {
      position: fixed;
      bottom: 20px;
      right: 20px;
      display: flex;
      gap: 10px;
    }
    .actions button {
      padding: 12px 20px;
      border-radius: 8px;
      font-size: 14px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .actions .btn-print { background: #22c55e; color: white; border: none; }
    .actions .btn-select { background: white; color: #333; border: 1px solid #ddd; }
    
    .empty {
      text-align: center;
      padding: 60px 20px;
      color: #999;
    }

    @media (max-width: 480px) {
      .header { padding: 14px 16px; }
      .header h1 { font-size: 16px; }
      .toolbar select, .toolbar button { flex: 1 1 100%; font-size: 16px; }
      .list { padding: 12px; gap: 12px; }
      .badge-card { width: 100%; }
      .actions { left: 12px; right: 12px; bottom: 12px; }
      .actions button { flex: 1; font-size: 15px; }
    }
    
    @media print {
      .header, .toolbar, .actions, .badge-card input { display: none; }
      body { background: white; padding: 10px; }
      .list { padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
      .badge-card { 
        break-inside: avoid; 
        display: inline-block;
        width: 260px;
        height: 160px;
        margin: 6px;
        border: 3px solid var(--primary);
        border-radius: 12px;
        page-break-inside: avoid;
        vertical-align: top;
        padding: 20px;
      }
      .badge-card .badge-name { font-size: 28px; }
      .badge-card .badge-code { font-size: 32px; }
      .badge-card .badge-type { font-size: 18px; }
    }
  