  :root {
    --surface: var(--mgh-grey-7);
    --border:  var(--mgh-grey-6);
    --accent:  var(--mgh-red);
    --accent2: var(--mgh-orange);
    --text:   black;
    --muted:   var(--mgh-grey);
    --danger:  var(--mgh-red);
    --radius:  0px;
  }


/* ── Search box ── */
  .search-wrap {
    position: relative;
    margin-bottom: 12px;
  }
  .search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
  }
  #searchInput {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  #searchInput:focus {
    border-color: var(--accent);
    /* box-shadow: 0 0 0 3px rgba(232,200,74,0.08); */
  }
  #searchInput::placeholder { color: var(--muted); }

  /* clear button */
  #clearBtn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    display: none;
    line-height: 1;
    font-size: 1.2rem;
    transition: color 0.1s;
  }
  #clearBtn:hover { color: var(--text); }
  #clearBtn.visible { display: block; }

  /* ── Status / count ── */
  .status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin-bottom: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
  }
  #statusMsg { color: var(--muted); }
  #statusMsg.err { color: var(--danger); }
  #resultMeta { color: var(--muted); }
  #resultMeta span { color: var(--accent); }

  /* ── Results ── */
  #results { display: flex; flex-direction: column; gap: 12px; }

  .result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s, background 0.15s;
    animation: fadeIn 0.18s ease both;
  }
  .result-card:hover {
    border-color: var(--accent);
    background: var(--mgh-grey-6);
    color: var(--mgh-grey-7);
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: none; }
  }

  .result-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .result-url {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent2);
    letter-spacing: 0.02em;
    flex-shrink: 0;
    margin-left: auto;
  }
  .result-desc {
    font-size: 1.4rem;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.5;
  }
  .result-snippet {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.4rem;
    color: #787670;
    line-height: 1.6;
    border-left: 2px solid var(--border);
    padding-left: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .result-snippet mark {
    background: transparent;
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
  }

  .options-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    /*! font-family: 'IBM Plex Mono', monospace; */
    font-size: 1.2rem;
  }

  .options-row input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
  }
  
  .empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
  }
  
  .search-head {
  margin-inline: var(--fol-margin);
  margin-top: 3em;
  margin-bottom: 4em;
  }

  /* spinner */
  .spinner {
    display: inline-block;
    width: 12px; height: 12px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }