/* studio_clear.css — owner 2026-09-28: the clear (×) of every search / lookup
   field on the preview layer. Paired with assets/js/studio/studio_clear.js,
   which tags the fields (.st-clr), reserves their right padding once, and
   handles the tap (44×44 target) + Escape. The × is the input's own
   background glyph — no element is added. !important on the four background
   properties because several fields carry id-level `background` shorthands. */
body.hts-studio.hts-studio input.st-clr::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
body.hts-studio.hts-studio input.st-clr:not(:placeholder-shown) {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%228%22%20fill%3D%22%238a8f98%22/%3E%3Cpath%20d%3D%22M5.2%205.2l5.6%205.6M10.8%205.2l-5.6%205.6%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
}
body.hts-studio.hts-studio input.st-clr.st-clr-hot:not(:placeholder-shown) { cursor: pointer; }
:root[data-theme="dark"] body.hts-studio.hts-studio input.st-clr:not(:placeholder-shown) {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%228%22%20fill%3D%22%239aa1ab%22/%3E%3Cpath%20d%3D%22M5.2%205.2l5.6%205.6M10.8%205.2l-5.6%205.6%22%20stroke%3D%22%2315181d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E") !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.hts-studio.hts-studio input.st-clr:not(:placeholder-shown) {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%228%22%20fill%3D%22%239aa1ab%22/%3E%3Cpath%20d%3D%22M5.2%205.2l5.6%205.6M10.8%205.2l-5.6%205.6%22%20stroke%3D%22%2315181d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E") !important;
  }
}
