* {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      background: #f1f5f9;
      font-family: system-ui, 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
      margin: 0;
      padding: 20px 12px 32px 12px;
      color: #0f172a;
    }

    /* Hauptcontainer */
    .app-container {
      max-width: 700px;
      margin: 0 auto;
    }

    /* Karten & Glanz */
    .card {
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(0px);
      border-radius: 32px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.03), 0 2px 6px rgba(0,0,0,0.05);
      padding: 20px 18px;
      margin-bottom: 20px;
      transition: all 0.2s ease;
      border: 1px solid #eef2ff;
    }

    /* Header / Steuerung */
    .top-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }
    .prompt-select-area {
      flex: 2;
      min-width: 160px;
    }
    select {
      width: 100%;
      padding: 14px 16px;
      border-radius: 44px;
      border: 1px solid #cbd5e1;
      background: white;
      font-size: 1rem;
      font-weight: 500;
      color: #0f172a;
      cursor: pointer;
      transition: 0.2s;
      appearance: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
      background-repeat: no-repeat;
      background-position: right 16px center;
    }
    button, .btn-icon {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      padding: 12px 18px;
      border-radius: 44px;
      font-weight: 600;
      font-size: 0.9rem;
      color: #1e293b;
      transition: all 0.2s;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 1px 1px rgba(0,0,0,0.02);
    }
    button:active { transform: scale(0.97); background: #f8fafc; }
    .btn-primary {
      background: #4f46e5;
      border-color: #4f46e5;
      color: white;
      box-shadow: 0 4px 8px rgba(79,70,229,0.2);
    }
    .btn-primary:active { background: #4338ca; }
    .btn-outline {
      background: transparent;
      border-color: #cbd5e1;
    }
    .btn-danger {
      background: #fff1f0;
      border-color: #fecaca;
      color: #b91c1c;
    }
    .btn-danger:active { background: #fee2e2; }
    .name-edit-row {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin: 16px 0 8px 0;
    }
    .prompt-name-input {
      flex: 2;
      padding: 12px 16px;
      border-radius: 60px;
      border: 1px solid #cbd5e1;
      font-size: 1rem;
      font-weight: 500;
      background: #fefce8;
    }
    .block-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin: 20px 0 12px;
    }
    .block-item {
      background: #ffffff;
      border-radius: 28px;
      border: 1px solid #eef2ff;
      padding: 8px 12px 8px 16px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.03);
      transition: all 0.1s;
      cursor: grab;
    }
    .block-item:active { cursor: grabbing; }
    .block-drag-handle {
      font-size: 1.4rem;
      cursor: grab;
      color: #94a3b8;
      user-select: none;
      padding-top: 8px;
    }
    .block-content {
      flex: 1;
      font-size: 1rem;
      line-height: 1.45;
      padding: 8px 0;
      min-height: 48px;
      word-break: break-word;
    }
    [contenteditable="true"] {
      outline: none;
      background: #fafcff;
      border-radius: 20px;
      padding: 4px 8px;
      transition: background 0.1s;
    }
    [contenteditable="true"]:focus {
      background: #fff9e8;
      box-shadow: 0 0 0 2px #c7d2fe;
    }
    .block-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .icon-btn {
      background: none;
      border: none;
      font-size: 1.3rem;
      cursor: pointer;
      padding: 6px;
      border-radius: 40px;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: 0.1s;
      color: #475569;
    }
    .icon-btn:active { background: #eef2ff; transform: scale(0.94);}
    .add-block-btn {
      margin: 16px 0 12px;
      width: 100%;
      background: #f1f5f9;
      border: 1px dashed #94a3b8;
      border-radius: 60px;
      padding: 12px;
      font-weight: 500;
    }
    .full-prompt-copy {
      width: 100%;
      margin-top: 8px;
    }
    hr {
      margin: 16px 0;
      border: none;
      border-top: 1px solid #e2e8f0;
    }
    .toast-msg {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      background: #0f172ad9;
      backdrop-filter: blur(12px);
      color: white;
      padding: 10px 20px;
      border-radius: 60px;
      font-size: 0.85rem;
      z-index: 1000;
      pointer-events: none;
      transition: opacity 0.2s;
      font-weight: 500;
    }
    @media (max-width: 540px) {
      body { padding: 14px 10px 24px 10px; }
      .card { padding: 16px; }
      .block-item { flex-wrap: wrap; }
      .block-actions { margin-left: auto; }
      .top-bar { flex-direction: column; align-items: stretch; }
    }
    .drag-over { border: 2px dashed #4f46e5; background: #f5f3ff; }
    .button-group {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }