
    .counter-tool-body {
      font-family: Arial, sans-serif;
      max-width: 700px;
      margin: 0 auto;
      margin-top: 50px;
      background-color: #f0f2f5;
      user-select: none; /* Generally for the tool body */
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      overflow-x: hidden;
    }
    #appTitle { color: #333; text-align: center; }
    .container {
      background-color: white; padding: 20px; border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: relative;
    }
    .ct-button { /* Renamed for Counter Tool */
      padding: 10px 15px; background-color: #007bff; color: white;
      border: none; border-radius: 4px; cursor: pointer; min-width: 120px;
      text-align: center; vertical-align: middle; display: inline-block;
      margin-top: 15px;
    }
    .ct-button:hover:not(:disabled) { background-color: #0056b3; }
    .ct-button:disabled { background-color: #cccccc; cursor: not-allowed; }

    #textInputLabel {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }
    #textInput {
      width: 100%;
      min-height: 200px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
      font-family: inherit; /* Use body font or specify */
      font-size: 1em;
      resize: vertical;
      margin-bottom: 20px;
      user-select: text; /* Allow text selection in textarea */
      -webkit-user-select: text;
      -moz-user-select: text;
      -ms-user-select: text;
    }

    #statsContainer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 4px;
        background-color: #f9f9f9;
    }
    .stat-item {
        background-color: #fff;
        padding: 12px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        text-align: center;
    }
    .stat-item .stat-label {
        display: block;
        font-size: 0.9em;
        color: #555;
        margin-bottom: 5px;
    }
    .stat-item .stat-value {
        font-size: 1.4em;
        font-weight: bold;
        color: #007bff;
    }

    #status { margin-top: 15px; text-align: center; color: #666; min-height: 20px; }

    @media (max-width: 600px) {
        #statsContainer {
            grid-template-columns: 1fr; /* Single column on smaller screens */
        }
    }
