 body {
    font-family: Arial, sans-serif;
    padding: 10px;
    background: #f5f7fb;
  }
  textarea{
    width:100%;
    min-height:80px;
    padding:10px;
    border-radius:8px;
    border:1px solid #d6dde6;
    box-sizing:border-box;
    resize:vertical;
  }
  #previewWrapper {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  pre, .rendered {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    flex: 1 1 40%;
    max-width:320px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    user-select: text;
    border-radius: 6px;
    box-sizing: border-box;
  }
  .rendered {
    font-family: Arial, sans-serif;
  }
  .controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  button {
    padding: 8px 10px;
    border: none;
    background: #0f62fe;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
  }
  button:hover {
    background: #0b4dcc;
  }
  #installBtn {
    margin-left: auto;
    display: none;
  }
  h2 {
    margin-bottom: 5px;
  }

  /* Responsive for small screens */
  @media (max-width: 600px) {
    #previewWrapper {
      flex-direction: column;
    }
    pre, .rendered {
      flex: 1 1 100%;
      max-height: 200px;  /* reduce height a bit for mobile */
    }
    button {
      flex: 1 1 100%;
      font-size: 16px;
      padding: 12px 0;
    }
    .controls {
      flex-direction: column;
      gap: 12px;
    }
  }
