    .hf-wrapper,
    .hf-wrapper * {
      box-sizing: border-box;
    }

    .hf-wrapper {
      --hf-bg: #f4f6f8;
      --hf-card: #ffffff;
      --hf-text: #1f2937;
      --hf-muted: #6b7280;
      --hf-border: #d1d5db;
      --hf-blue: #2563eb;
      --hf-blue-dark: #1d4ed8;
      --hf-red: #dc2626;
      --hf-red-dark: #b91c1c;
      --hf-green: #047857;
      --hf-code-bg: #0f172a;
      --hf-code-text: #e5e7eb;

      font-family: Arial, sans-serif;
      background: var(--hf-bg);
      color: var(--hf-text);
      padding: 30px 16px;
    }

    .hf-container {
      max-width: 1280px;
      margin: 0 auto;
    }

    .hf-title {
      margin: 0 0 10px;
      font-size: 32px;
      line-height: 1.2;
    }

    .hf-lead {
      max-width: 880px;
      margin: 0 0 22px;
      color: var(--hf-muted);
      line-height: 1.6;
    }

    .hf-panel {
      background: var(--hf-card);
      border: 1px solid #e5e7eb;
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 18px;
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    }

    .hf-options {
      display: grid;
      grid-template-columns: repeat(5, minmax(160px, 1fr));
      gap: 12px;
      align-items: end;
      margin-bottom: 14px;
    }

    .hf-field label {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
      font-weight: 700;
      color: #374151;
    }

    .hf-field select,
    .hf-field input[type="number"] {
      width: 100%;
      min-height: 40px;
      padding: 8px 10px;
      border: 1px solid var(--hf-border);
      border-radius: 8px;
      background: #fff;
      color: #111827;
      font-size: 14px;
    }

    .hf-checkboxes {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin: 2px 0 14px;
      font-size: 14px;
      color: #374151;
    }

    .hf-checkboxes label {
      display: inline-flex;
      gap: 7px;
      align-items: center;
      cursor: pointer;
    }

    .hf-toolbar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .hf-btn {
      border: 0;
      padding: 11px 18px;
      border-radius: 9px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 700;
      background: var(--hf-blue);
      color: #fff;
      transition: background 0.18s ease, transform 0.18s ease;
    }

    .hf-btn:hover {
      background: var(--hf-blue-dark);
      transform: translateY(-1px);
    }

    .hf-btn-secondary {
      background: #374151;
    }

    .hf-btn-secondary:hover {
      background: #111827;
    }

    .hf-btn-danger {
      background: var(--hf-red);
    }

    .hf-btn-danger:hover {
      background: var(--hf-red-dark);
    }

    .hf-btn-light {
      background: #e5e7eb;
      color: #111827;
    }

    .hf-btn-light:hover {
      background: #d1d5db;
    }

    .hf-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

    .hf-box {
      background: var(--hf-card);
      border-radius: 14px;
      padding: 14px;
      border: 1px solid #e5e7eb;
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
      min-width: 0;
    }

    .hf-box-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .hf-box-title {
      margin: 0;
      font-size: 18px;
      line-height: 1.3;
    }

    .hf-counter {
      font-size: 12px;
      color: var(--hf-muted);
      white-space: nowrap;
    }

    .hf-textarea,
    .hf-highlight {
      width: 100%;
      min-height: 520px;
      padding: 14px;
      border: 1px solid var(--hf-border);
      border-radius: 10px;
      font-family: Consolas, Monaco, "Courier New", monospace;
      font-size: 14px;
      line-height: 1.55;
      background: var(--hf-code-bg);
      color: var(--hf-code-text);
      tab-size: 2;
      overflow: auto;
    }

    .hf-textarea {
      resize: vertical;
      outline: none;
      white-space: pre;
    }

    .hf-textarea:focus {
      border-color: var(--hf-blue);
    }

    .hf-highlight {
      margin: 0;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .hf-status {
      margin-top: 14px;
      min-height: 22px;
      font-size: 14px;
      font-weight: 700;
    }

    .hf-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 10px;
    }

    .hf-tab {
      border: 1px solid #d1d5db;
      background: #fff;
      color: #111827;
      padding: 7px 11px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
    }

    .hf-tab.hf-tab-active {
      background: var(--hf-blue);
      border-color: var(--hf-blue);
      color: #fff;
    }

    .hf-hidden {
      display: none !important;
    }

    .hf-token-comment { color: #94a3b8; }
    .hf-token-doctype { color: #c084fc; }
    .hf-token-tag { color: #60a5fa; }
    .hf-token-tagname { color: #38bdf8; }
    .hf-token-attr { color: #fbbf24; }
    .hf-token-value { color: #86efac; }
    .hf-token-text { color: #e5e7eb; }
    .hf-token-bracket { color: #93c5fd; }
    .hf-token-js { color: #fef3c7; }
    .hf-token-css { color: #fbcfe8; }

    @media (max-width: 980px) {
      .hf-options {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
      }

      .hf-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 560px) {
      .hf-wrapper {
        padding: 22px 10px;
      }

      .hf-title {
        font-size: 26px;
      }

      .hf-options {
        grid-template-columns: 1fr;
      }

      .hf-btn {
        width: 100%;
      }
    }