  /* Repopulated values appear grey until the user edits them */
  input.splash-prefilled { color: rgba(0,0,0,0.45); }

  /* Placeholder color hardening (matches your Webflow Placeholder state) */
  input::placeholder, textarea::placeholder { color: #9aa3ad; opacity: 1; }
  input, textarea { opacity: 1; } /* prevent any accidental inherited opacity */

  /* =========================
     iOS "scroll settling" hardening
  ========================== */
  html, body { overflow-anchor: none; overscroll-behavior-y: none; }
  form, .subcat-form-wrap, .splash-form-wrap, .genre-form, .subcategory-inner, .ios-form-fix { overflow-anchor: none; }
  html:focus-within { scroll-behavior: auto; }

  /* =========================
     Design-level safety net for iOS keyboard + bottom UI
  ========================== */
  @media (max-width: 479px){
    .ios-form-fix { padding-bottom: 140px; }
  }

  /* ===== Open buttons: MATCH Webflow .back-button (base + hover) ===== */
  .di-action-pill{
    border: 1px solid #e5dcc6;
    background: #f2e9d8;
    border-radius: 20px;
    padding: 7px 14px;
    cursor: pointer;

    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #222;

    min-width: 64px;
    text-align: center;

    transition: box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 120ms ease;
  }
  .di-action-pill:hover{
    background: #ffffff;
    border-color: #d5c8af;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    transform: translateY(-1px);
  }

  /* ===== Top 5 spacing: add a small vertical gap between rows ===== */
  #userList{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* ===== Global Splash spacing + alignment ===== */
  #globalList ul{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #globalList li{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .di-g-left{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .di-g-rank{
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0,0,0,.08);
  }

  .di-g-name{
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: inherit;
    line-height: inherit;
  }

  .di-g-right{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .di-g-count{
    width: 18px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,.45);
    padding: 0;
    background: none;
  }

  @media (max-width: 479px){
    .di-g-name{ max-width: 190px; }
  }

  /* ===== Open dialog ===== */
  .di-open-sheet{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
  }
  .di-open-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
  }
  .di-open-panel{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(520px, calc(100% - 28px));
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 16px;
  }
  .di-open-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:4px 2px 10px;
  }
  .di-open-title{
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: rgba(0,0,0,.82);
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  .di-open-x{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: rgba(0,0,0,.68);
    cursor: pointer;
  }
  .di-open-body{
    display:flex;
    flex-direction:column;
    gap: 10px;
    padding: 6px 2px 2px;
  }
  .di-open-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding: 10px 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
  }
  .di-open-row .lbl{
    font-size: 14px;
    color: rgba(0,0,0,.78);
    font-weight: 600;
  }

  /* Ensure header + X can receive clicks */
  .di-open-head,
  .di-open-head *{ pointer-events: auto; }
  .di-open-head .di-open-x{ cursor: pointer; }

  /* ===== MusicBrainz Predict Dropdown ===== */
  .splash-suggest {
    position: absolute;
    z-index: 9999;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
    display: none;
    margin-top: 6px;
  }
  .splash-suggest[data-open="1"] { display: block; }

  .splash-suggest .row {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.25;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .splash-suggest .row:last-child { border-bottom: none; }
  .splash-suggest .row:hover,
  .splash-suggest .row[data-active="1"] { background: rgba(0,0,0,.04); }
  .splash-suggest .title { font-weight: 600; }
  .splash-suggest .meta  { opacity: .65; font-size: 12px; margin-top: 2px; }
