    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #ffffff;
      --bg-secondary: #f7f6f3;
      --bg-danger: #fff4f0;
      --bg-warning: #fffbf0;
      --bg-success: #f4faf0;
      --text-primary: #1a1a1a;
      --text-secondary: #4a4a4a;
      --text-tertiary: #888888;
      --text-danger: #b03a1a;
      --text-warning: #7a5200;
      --text-success: #2a5c1a;
      --accent: #c0440a;
      --accent-light: #fff0eb;
      --border: rgba(0,0,0,0.10);
      --border-secondary: rgba(0,0,0,0.18);
      --border-danger: rgba(176,58,26,0.35);
      --border-warning: rgba(122,82,0,0.30);
      --border-success: rgba(42,92,26,0.30);
      --border-accent: rgba(192,68,10,0.40);
      --radius-md: 4px;
      --radius-lg: 6px;
      --font: Georgia, 'Times New Roman', serif;
      --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    body {
      font-family: var(--font-ui);
      background: var(--bg);
      color: var(--text-primary);
      min-height: 100vh;
      font-size: 16px;
      line-height: 1.7;
    }

    .container { max-width: 700px; margin: 0 auto; }

    .subtitle {
      font-family: var(--font-ui);
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.65;
      margin-bottom: 2rem;
      border-left: 3px solid var(--accent);
      padding-left: 14px;
      border-radius: 0;
    }

    .section-label {
      font-family: var(--font-ui);
      font-size: 11px;
      font-weight: 600;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    textarea {
      width: 100%;
      min-height: 130px;
      font-family: var(--font-ui);
      font-size: 14px;
      line-height: 1.65;
      color: var(--text-primary);
      background: var(--bg);
      border: 1px solid var(--border-secondary);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      resize: vertical;
      outline: none;
      transition: border-color 0.15s;
    }
    textarea:focus { border-color: var(--accent); }
    textarea::placeholder { color: var(--text-tertiary); font-size: 13px; }

    .btn-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

    button {
      font-family: var(--font-ui);
      font-size: 13px;
      font-weight: 500;
      padding: 8px 18px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-secondary);
      background: transparent;
      color: var(--text-primary);
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    button:hover { background: var(--bg-secondary); }
    button:active { transform: scale(0.98); }
    button.primary {
      background: var(--accent);
      color: #ffffff;
      border-color: var(--accent);
      font-weight: 600;
    }
    button.primary:hover { background: #a33a08; border-color: #a33a08; }

    .divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

    .score-row { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 1.25rem; }
    .score-block { flex: 1; }
    .score-number {
      font-family: var(--font);
      font-size: 52px;
      font-weight: normal;
      line-height: 1;
      margin-bottom: 6px;
    }
    .score-verdict { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

    .meter-track {
      height: 6px;
      background: var(--bg-secondary);
      border-radius: 3px;
      overflow: hidden;
      border: 1px solid var(--border);
      margin-bottom: 6px;
    }
    .meter-fill { height: 100%; border-radius: 3px; transition: width 0.7s cubic-bezier(.4,0,.2,1); }
    .meter-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-tertiary); font-family: var(--font-ui); }

    .flags-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
      gap: 6px;
      margin-top: 1rem;
    }

    .flag-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 10px 12px;
    }
    .flag-card.hit {
      border-color: var(--border-danger);
      background: var(--bg-danger);
      border-left: 3px solid var(--accent);
    }
    .flag-name {
      font-family: var(--font-ui);
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 3px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .flag-card.hit .flag-name { color: var(--text-danger); }
    .flag-phrase {
      font-size: 12px;
      color: var(--text-tertiary);
      font-style: italic;
      font-family: var(--font);
    }
    .flag-card.hit .flag-phrase { color: var(--text-danger); opacity: 0.80; }

    .found-badge {
      display: inline-block;
      font-family: var(--font-ui);
      font-size: 11px;
      font-weight: 600;
      padding: 1px 8px;
      border-radius: 2px;
      margin-left: 6px;
      background: var(--accent-light);
      color: var(--accent);
      border: 1px solid var(--border-accent);
    }

    .preview-box {
      font-family: var(--font-ui);
      font-size: 13px;
      line-height: 1.75;
      color: var(--text-secondary);
      background: var(--bg-secondary);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      max-height: 150px;
      overflow-y: auto;
      word-break: break-word;
      border: 1px solid var(--border);
    }

    .highlight {
      background: #ffe0d0;
      color: #8a2a08;
      border-radius: 2px;
      padding: 0 2px;
    }

    .verdict-box {
      border-left: 3px solid var(--border-secondary);
      padding: 12px 16px;
      margin-top: 1.5rem;
      border-radius: 0;
    }
    .verdict-box p {
      font-size: 14px;
      line-height: 1.7;
      font-family: var(--font-ui);
    }

    .action-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.25rem; }

    .powered {
      margin-top: 3rem;
      font-family: var(--font-ui);
      font-size: 12px;
      color: var(--text-tertiary);
      text-align: center;
      border-top: 1px solid var(--border);
      padding-top: 1.5rem;
    }
    .powered a { color: var(--text-tertiary); text-decoration: underline; }

    #results { display: none; }

    .url-row {
      display: flex;
      gap: 8px;
      margin-bottom: 1.5rem;
      align-items: stretch;
      flex-wrap: wrap;
    }
    .url-input {
      flex: 1;
      min-width: 200px;
      font-family: var(--font-ui);
      font-size: 13px;
      color: var(--text-primary);
      background: var(--bg);
      border: 1px solid var(--border-secondary);
      border-radius: var(--radius-md);
      padding: 8px 12px;
      outline: none;
      transition: border-color 0.15s;
    }
    .url-input:focus { border-color: var(--accent); }
    .url-input::placeholder { color: var(--text-tertiary); }

    .fetch-btn {
      white-space: nowrap;
      padding: 8px 18px;
      font-size: 13px;
      font-weight: 600;
      font-family: var(--font-ui);
      border-radius: var(--radius-md);
      border: 1px solid var(--accent);
      background: var(--accent);
      color: #fff;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    .fetch-btn:hover { background: #a33a08; border-color: #a33a08; }
    .fetch-btn:active { transform: scale(0.98); }
    .fetch-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

    .url-status {
      font-family: var(--font-ui);
      font-size: 12px;
      margin-bottom: 1rem;
      padding: 8px 12px;
      border-radius: var(--radius-md);
      display: none;
    }
    .url-status.loading {
      display: block;
      background: var(--bg-secondary);
      color: var(--text-tertiary);
      border: 1px solid var(--border);
    }
    .url-status.success {
      display: block;
      background: var(--bg-success);
      color: var(--text-success);
      border: 1px solid var(--border-success);
    }
    .url-status.error {
      display: block;
      background: var(--bg-danger);
      color: var(--text-danger);
      border: 1px solid var(--border-danger);
    }
    .or-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 1.25rem 0;
      font-family: var(--font-ui);
      font-size: 11px;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .or-divider::before, .or-divider::after {
      content: '';
      flex: 1;
      border-top: 1px solid var(--border);
    }