
.ch .chip--save[hidden] { display: none; } 
.ch .chip--save { margin-left: auto; align-self: center; flex: none; border: 2px solid var(--rose); color: var(--rose-ink-2); font-weight: 700; }
.ch .chip--save:hover { border-color: var(--rose-ink); color: var(--rose-deep); }
.ch .chip--save.is-saved { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.ch .chip--save svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .ch .chip--save { margin-left: 0; align-self: flex-start; } }
.m-rb[data-m-save] { color: var(--rose-ink-2); font-weight: 700; }
.m-rb[data-m-save].is-saved { color: var(--ink); font-weight: 600; }
.m-rb[data-m-save] span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.ss-card { display: none; }
@media (max-width: 760px) {
  .ss-card { display: grid; gap: var(--s2); margin: var(--s3) 0; padding: var(--s4); border: 1px solid var(--rose); border-radius: var(--card-r);
    background: var(--rose-tint); color: var(--ink); font: 400 var(--t14)/1.45 var(--sans); grid-column: 1 / -1; }
  .ss-card__t { margin: 0; font-weight: 700; font-size: var(--t16); }
  .ss-card__d { margin: 0; color: var(--ink-2); }
  .ss-card .btn { justify-self: start; }
}


html.ss-open { overflow: hidden; }
dialog.ss { z-index: 1090; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit; overflow: visible; }
dialog.ss:not([open]) { display: none; }
dialog.ss::backdrop { background: transparent; }
.ss__scrim { position: fixed; inset: 0; background: rgba(20,22,26,.42); }
.ss__box { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; overscroll-behavior: contain; background: var(--paper);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0; padding: var(--s2) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-float);
  color: var(--ink); font: 400 var(--t16)/1.5 var(--sans); }
@media (min-width: 761px) {
  .ss__box { left: 50%; right: auto; bottom: auto; top: 72px; width: 480px; max-height: calc(100vh - 112px); transform: translateX(-50%);
    border-radius: 16px; padding: var(--s6) 28px 28px; }
  .ss__grab { display: none; }
}
.ss__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-hover); margin: 0 auto var(--s3); }
.ss__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.ss__h { margin: 0; font: 400 var(--t28)/1.15 var(--serif); color: var(--ink); }
.ss__h:focus { outline: none; }
.ss__x { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-2); font: 500 var(--t14)/1 var(--sans); cursor: pointer; }
.ss__sub, .ss__small, .ss__note { margin: var(--s1) 0 0; font-size: var(--t14); color: var(--mute); }
.ss__g { margin: var(--s5) 0 var(--s2); font: 600 var(--t14)/1.3 var(--sans); color: var(--ink); }
.ss__chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ss__chips + .ss__row, .ss__row + .ss__chips { margin-top: var(--s2); }
.ss__row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.ss__f { display: grid; gap: 2px; min-width: 0; flex: 1 1 140px; font-size: var(--t12); color: var(--ink-2); }
.ss__f select, .ss__in { height: 44px; min-width: 0; max-width: 100%; padding: 0 10px; border: 1px solid var(--edge); border-radius: var(--r-ctl); background: var(--surface);
  color: var(--ink); font: 400 var(--t16)/1 var(--sans); }
.ss__f select:focus-visible, .ss__in:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.ss__add { display: inline-flex; gap: var(--s2); min-width: 0; max-width: 100%; }
.ss__in { flex: 1 1 160px; }
.ss__bl { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 2px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.ss__bl label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 var(--s3); font-size: var(--t14); cursor: pointer; }
.ss__bl input { width: 18px; height: 18px; accent-color: var(--ink); }
.ss__sw { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; font-size: var(--t14); color: var(--ink); }
.ss__tog { position: relative; width: 52px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; flex: none; }
.ss__tog::before { content: ""; position: absolute; left: 4px; top: 10px; width: 44px; height: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--edge); box-sizing: border-box; }
.ss__tog::after { content: ""; position: absolute; left: 8px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--edge); transition: transform .15s var(--ease-ch); }
.ss__tog[aria-checked="true"]::before { background: var(--ink); border-color: var(--ink); }
.ss__tog[aria-checked="true"]::after { transform: translateX(20px); background: #fff; }
.ss__tog:disabled { opacity: .5; cursor: default; }
.ss__tog:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ss__off { margin: 0 0 var(--s2); padding: 10px var(--s3); border-radius: var(--r); background: var(--warn-wash); color: var(--warn); font-size: var(--t14); }
.ss__msg { margin: var(--s4) 0 0; color: var(--late); font-size: var(--t14); }
.ss__go { margin: var(--s5) 0 0; }
.ss__del { margin: var(--s3) 0 0; }
.ss__del .link { min-height: 44px; border: 0; background: none; color: var(--ink-2); text-decoration: underline; font: 400 var(--t14)/1 var(--sans); cursor: pointer; padding: 0; }
@media (prefers-reduced-motion: reduce) { .ss__tog::after { transition: none; } }


.mc .mc__h3 { margin: var(--s4) 0 var(--s2); font: 600 var(--t14)/1.3 var(--sans); color: var(--ink); }
.mc .mc__h3:first-child { margin-top: 0; }
.mc .searches__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.mc .searches__n { flex: none; font: 600 var(--t12)/1.3 var(--sans); color: var(--rose-ink-2); }
.mc .searches--saved li { border-color: var(--rose-line); }
.mc .searches--saved .searches__r + .searches__r { justify-content: flex-start; gap: var(--s4); }
