/* The Share sheet (asg-share.js, docs/SHARING.md). It sits on <body>, outside the hubs' dark-mode inversion, so it
   carries its own light and dark tokens. A popover that grows out of its trigger on desktop, a bottom sheet on phones;
   the material is a near-solid card (solid with Reduce Transparency), hairline edges, one accent: Messages blue on
   what sends a message, ink on everything else that commits. Presses answer at once (in on the press, back on a
   spring); Reduce Motion keeps the opacity changes only. */
@font-face {
  font-family: "ASG Outfit";
  src: url("/fonts/asg-outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
.asgsh-root {
  --sh-ink: #111;
  --sh-canvas: rgba(255, 255, 255, 0.94);
  --sh-solid: #fff;
  --sh-card: #fff;
  --sh-muted: rgba(17, 17, 17, 0.6);
  --sh-faint: rgba(17, 17, 17, 0.42);
  --sh-line: rgba(17, 17, 17, 0.09);
  --sh-wash: rgba(17, 17, 17, 0.05);
  --sh-wash-2: rgba(17, 17, 17, 0.09);
  --sh-accent: #0b6cf0;
  --sh-accent-press: #0a5fd4;
  --sh-accent-ink: #0a62da;
  --sh-accent-wash: rgba(11, 108, 240, 0.11);
  --sh-ok: #15803d;
  --sh-err: #b42318;
  --sh-shadow: 0 24px 70px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.06);
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  pointer-events: none;
  font: 400 15px/1.4 "ASG Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sh-ink);
  -webkit-font-smoothing: antialiased;
}
html[data-asg-theme="dark"] .asgsh-root,
html[data-asg-theme="dark"] .asgsh-dd {
  --sh-ink: #f2f1ee;
  --sh-canvas: rgba(30, 30, 29, 0.94);
  --sh-solid: #1e1e1d;
  --sh-card: #262625;
  --sh-muted: rgba(242, 241, 238, 0.64);
  --sh-faint: rgba(242, 241, 238, 0.45);
  --sh-line: rgba(255, 255, 255, 0.1);
  --sh-wash: rgba(242, 241, 238, 0.07);
  --sh-wash-2: rgba(242, 241, 238, 0.12);
  --sh-accent: #1f7bff;
  --sh-accent-press: #3a8bff;
  --sh-accent-ink: #84bbff;
  --sh-accent-wash: rgba(132, 187, 255, 0.16);
  --sh-ok: #6ee7a0;
  --sh-err: #ff8a80;
  --sh-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.3);
}
.asgsh-root *,
.asgsh-dd * {
  box-sizing: border-box;
}
/* :where keeps this at one class, so each control's own color wins. */
.asgsh-root :where(button, input, textarea) {
  font-family: inherit;
  color: inherit;
}
.asgsh-root [hidden],
.asgsh-dd [hidden] {
  display: none !important;
}
.asgsh-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.32);
  opacity: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
/* A popover anchored to its trigger keeps the page in view; a centered one and a phone sheet dim it. */
.asgsh-root:not(.is-phone):not(.is-centered) .asgsh-scrim {
  display: none;
}
.asgsh {
  position: fixed;
  width: min(404px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  padding: 14px;
  background: var(--sh-canvas);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--sh-line);
  border-radius: 22px;
  box-shadow: var(--sh-shadow);
  outline: none;
  will-change: transform, opacity;
}
.asgsh-root.is-phone .asgsh {
  left: 0 !important;
  right: 0;
  bottom: 0;
  top: auto !important;
  width: auto;
  max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px));
  border-radius: 22px 22px 0 0;
  border-bottom: 0;
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.asgsh-grab {
  display: none;
}
.asgsh-root.is-phone .asgsh-grab {
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: var(--sh-wash-2);
  margin: 4px auto 10px;
  touch-action: none;
}
.asgsh-root.is-phone .asgsh-head {
  touch-action: none;
}
.asgsh-pages {
  position: relative;
  overflow: hidden;
  margin: -4px;
  padding: 4px;
}
.asgsh-page.is-leaving {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  pointer-events: none;
}

/* ── Icons, buttons, press ── */
.asgsh-ic {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
}
.asgsh-ic svg {
  width: 100%;
  height: 100%;
}
.asgsh-root button,
.asgsh-dd button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  transition:
    transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
    background-color 160ms cubic-bezier(0.2, 0, 0, 1),
    opacity 160ms ease,
    box-shadow 160ms ease;
}
.asgsh-root button:disabled {
  cursor: default;
  opacity: 0.45;
}
.asgsh-press button:not(:disabled):active {
  transform: scale(0.96);
  transition-duration: 90ms;
  transition-timing-function: ease-out;
}
.asgsh-root :is(button, input, textarea, iframe):focus-visible,
.asgsh-dd button:focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: 2px;
}
.asgsh-x,
.asgsh-back {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sh-wash);
  color: var(--sh-ink);
}
.asgsh-x .asgsh-ic,
.asgsh-back .asgsh-ic {
  width: 16px;
  height: 16px;
}
.asgsh-x svg,
.asgsh-back svg {
  stroke-width: 2.3;
}
.asgsh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--sh-line);
  border-radius: 999px;
  background: var(--sh-card);
  font-size: 14.5px;
  font-weight: 650;
}
.asgsh-btn.is-primary {
  background: var(--sh-ink);
  color: var(--sh-solid);
  border-color: transparent;
}
html[data-asg-theme="dark"] .asgsh-btn.is-primary {
  color: #111;
}
.asgsh-link {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 650;
  color: var(--sh-accent-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .asgsh-x:hover,
  .asgsh-back:hover {
    background: var(--sh-wash-2);
  }
  .asgsh-btn:not(.is-primary):not(:disabled):hover {
    background: var(--sh-wash);
  }
  .asgsh-link:hover {
    text-decoration-color: currentColor;
  }
}

/* ── Head: what is being shared ── */
.asgsh-head,
.asgsh-mailhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 12px;
}
.asgsh-headpic {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
}
.asgsh-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sh-wash);
  box-shadow: inset 0 0 0 1px var(--sh-line);
}
.asgsh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.asgsh-headpic.is-stack .asgsh-thumb {
  position: absolute;
  inset: 0;
  box-shadow: 0 0 0 2px var(--sh-solid), 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translate(calc(var(--i, 0) * -4px), calc(var(--i, 0) * -3px)) rotate(calc(var(--i, 0) * -5deg));
}
.asgsh-count {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sh-ink);
  color: var(--sh-solid);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--sh-solid);
}
html[data-asg-theme="dark"] .asgsh-count {
  color: #111;
}
.asgsh-tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  width: 100%;
  height: 100%;
  color: var(--t, #57534e);
  background: color-mix(in srgb, var(--t, #57534e) 13%, transparent);
}
.asgsh-tile .asgsh-ic {
  width: 22px;
  height: 22px;
}
.asgsh-tile b {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.asgsh-headwords {
  flex: 1;
  min-width: 0;
}
.asgsh-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.012em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.asgsh-sub {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--sh-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asgsh.is-loading .asgsh-title {
  color: var(--sh-faint);
}

/* ── Who: search and faces ── */
.asgsh-to {
  border-top: 1px solid var(--sh-line);
  padding-top: 12px;
}
.asgsh-find {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 12px;
  border-radius: 12px;
  background: var(--sh-wash);
  color: var(--sh-muted);
}
.asgsh-find input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font-size: 15px;
  outline: none;
  color: var(--sh-ink);
}
.asgsh-find input::-webkit-search-cancel-button {
  display: none;
}
.asgsh-find input::placeholder,
.asgsh-field::placeholder,
.asgsh-chipin::placeholder,
.asgsh-minput::placeholder {
  color: var(--sh-faint);
}
.asgsh-find:focus-within {
  box-shadow: 0 0 0 2px var(--sh-accent);
}
.asgsh-find input:focus-visible {
  outline: none;
}
.asgsh-find-x {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--sh-wash-2);
  padding: 0;
}
.asgsh-find-x .asgsh-ic {
  width: 13px;
  height: 13px;
}
.asgsh-faces {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 12px 2px 6px;
  margin: 0 -2px;
  min-height: 98px;
}
.asgsh-faces::-webkit-scrollbar {
  display: none;
}
.asgsh-faces > .asgsh-skel,
.asgsh-faces > [class*="skel"] {
  flex: 1;
}
.asgsh-face {
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 70px;
  padding: 4px 2px;
  border: 0;
  border-radius: 14px;
  background: none;
}
.asgsh-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sh-wash-2);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--sh-ink);
  transition: box-shadow 160ms ease;
}
.asgsh-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.asgsh-avatar > .asgsh-ic {
  width: 22px;
  height: 22px;
}
.asgsh-face-name {
  width: 100%;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sh-ink);
}
.asgsh-pick {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sh-accent);
  color: #fff;
  box-shadow: 0 0 0 2px var(--sh-solid);
  opacity: 0;
  transform: scale(0.4);
  transition:
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 140ms ease;
}
.asgsh-pick .asgsh-ic {
  width: 12px;
  height: 12px;
}
.asgsh-pick svg {
  stroke-width: 3;
}
.asgsh-face.is-on .asgsh-avatar {
  box-shadow:
    0 0 0 2.5px var(--sh-solid),
    0 0 0 4.5px var(--sh-accent);
}
.asgsh-face.is-on .asgsh-pick {
  opacity: 1;
  transform: none;
}
.asgsh-face.is-on .asgsh-face-name {
  color: var(--sh-accent-ink);
  font-weight: 650;
}
@media (hover: hover) and (pointer: fine) {
  .asgsh-face:hover .asgsh-avatar {
    box-shadow: 0 0 0 3px var(--sh-wash-2);
  }
  .asgsh-face.is-on:hover .asgsh-avatar {
    box-shadow:
      0 0 0 2.5px var(--sh-solid),
      0 0 0 4.5px var(--sh-accent);
  }
}
.asgsh-quiet {
  margin: 6px 4px;
  font-size: 14px;
  color: var(--sh-muted);
}

/* ── Note and Send ── */
.asgsh-compose {
  display: grid;
  gap: 8px;
  padding: 4px 0 10px;
}
.asgsh-field,
.asgsh-minput {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--sh-wash);
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--sh-ink);
  outline: none;
  resize: none;
}
.asgsh-field:focus,
.asgsh-minput:focus {
  border-color: var(--sh-accent);
  box-shadow: 0 0 0 3px var(--sh-accent-wash);
}
.asgsh-noterow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.asgsh-note {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
}
.asgsh-send {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 58%;
  min-height: 42px;
  padding: 0 16px 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--sh-accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(11, 108, 240, 0.28);
}
.asgsh-send > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asgsh-send svg {
  stroke-width: 2.6;
}
.asgsh-send:disabled {
  background: var(--sh-wash-2);
  color: var(--sh-muted);
  box-shadow: none;
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .asgsh-send:not(:disabled):hover {
    background: var(--sh-accent-press);
  }
}
.asgsh-done {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}
.asgsh-sent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--sh-ok);
}
.asgsh-sent .asgsh-ic {
  width: 20px;
  height: 20px;
}
.asgsh-sent svg {
  stroke-width: 2.6;
}
.asgsh-done-acts,
.asgsh-mailacts {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── Status line ── */
.asgsh-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  background: color-mix(in srgb, var(--sh-err) 9%, transparent);
  color: var(--sh-err);
}
.asgsh-status[data-tone="ok"] {
  background: color-mix(in srgb, var(--sh-ok) 10%, transparent);
  color: var(--sh-ok);
}
.asgsh-status[data-tone="info"] {
  background: var(--sh-wash);
  color: var(--sh-muted);
}
.asgsh-status .asgsh-link {
  color: inherit;
  text-decoration-color: currentColor;
}

/* ── Rows: Email, Download, Copy link, Open ── */
.asgsh-rows {
  display: grid;
  border-top: 1px solid var(--sh-line);
  padding-top: 6px;
}
.asgsh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  font-size: 15px;
  font-weight: 550;
}
.asgsh-row > .asgsh-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--sh-wash);
}
.asgsh-row.is-done > .asgsh-ic {
  background: color-mix(in srgb, var(--sh-ok) 14%, transparent);
  color: var(--sh-ok);
}
.asgsh-press .asgsh-row:not(:disabled):active {
  transform: none;
  background: var(--sh-wash);
}
@media (hover: hover) and (pointer: fine) {
  .asgsh-row:not(:disabled):hover {
    background: var(--sh-wash);
  }
}

/* ── Email ── */
.asgsh-mailhead .asgsh-title {
  flex: 1;
  text-align: center;
}
.asgsh-mailform {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--sh-line);
  padding-top: 10px;
}
.asgsh-mrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asgsh-mlabel {
  flex: none;
  width: 58px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sh-muted);
}
.asgsh-minput {
  flex: 1;
  min-width: 0;
}
.asgsh-chips {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--sh-wash);
  cursor: text;
}
.asgsh-chips:focus-within {
  border-color: var(--sh-accent);
  box-shadow: 0 0 0 3px var(--sh-accent-wash);
}
.asgsh-chipin {
  flex: 1;
  min-width: 120px;
  height: 30px;
  border: 0;
  background: none;
  font-size: 15px;
  outline: none;
  padding: 0 6px;
}
.asgsh-chipin:focus-visible {
  outline: none;
}
.asgsh-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  height: 30px;
  padding: 0 2px 0 10px;
  border-radius: 999px;
  background: var(--sh-accent-wash);
  color: var(--sh-accent-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.asgsh-chip > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asgsh-chip.is-outside {
  background: var(--sh-wash-2);
  color: var(--sh-ink);
}
.asgsh-chip-x {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
}
.asgsh-chip-x .asgsh-ic {
  width: 12px;
  height: 12px;
}
.asgsh-mnote {
  min-height: 76px;
}
.asgsh-outside {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sh-muted);
}
.asgsh-from {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.asgsh-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--sh-line);
  border-radius: 14px;
  background: var(--sh-card);
  text-align: left;
}
.asgsh-radio.is-on {
  border-color: var(--sh-ink);
  box-shadow: inset 0 0 0 0.5px var(--sh-ink);
}
.asgsh-dot {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--sh-faint);
  transition: border-width 200ms cubic-bezier(0.32, 0.72, 0, 1), border-color 160ms ease;
}
.asgsh-radio.is-on .asgsh-dot {
  border: 5.5px solid var(--sh-ink);
}
.asgsh-radio-w {
  display: grid;
  min-width: 0;
}
.asgsh-radio-w strong {
  font-size: 14px;
  font-weight: 650;
}
.asgsh-radio-w small {
  font-size: 12.5px;
  color: var(--sh-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asgsh-connect {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 13.5px;
}
.asgsh-preview {
  display: grid;
  gap: 8px;
}
.asgsh-pmeta {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sh-muted);
}
.asgsh-pframe {
  width: 100%;
  height: 440px;
  border: 1px solid var(--sh-line);
  border-radius: 14px;
  background: #fff;
}

/* ── The teammates list under To ── */
.asgsh-dd {
  --sh-ink: #111;
  --sh-solid: #fff;
  --sh-muted: rgba(17, 17, 17, 0.6);
  --sh-line: rgba(17, 17, 17, 0.09);
  --sh-wash: rgba(17, 17, 17, 0.05);
  --sh-wash-2: rgba(17, 17, 17, 0.09);
  --sh-accent: #0b6cf0;
  position: fixed;
  z-index: 2147483660;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: var(--sh-solid);
  color: var(--sh-ink);
  border: 1px solid var(--sh-line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  font: 400 15px/1.4 "ASG Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transition:
    opacity 140ms ease,
    transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}
html[data-asg-theme="dark"] .asgsh-dd {
  --sh-solid: #262625;
}
.asgsh-dd.is-open {
  opacity: 1;
  transform: none;
}
.asgsh-dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  color: inherit;
  font: inherit;
}
.asgsh-dd-opt .asgsh-avatar {
  width: 30px;
  height: 30px;
  font-size: 11.5px;
}
.asgsh-dd-w {
  display: grid;
  min-width: 0;
}
.asgsh-dd-w strong {
  font-size: 14px;
  font-weight: 600;
}
.asgsh-dd-w small {
  font-size: 12.5px;
  color: var(--sh-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asgsh-dd-opt[aria-selected="true"],
.asgsh-dd-opt:active {
  background: var(--sh-wash-2);
}
@media (hover: hover) and (pointer: fine) {
  .asgsh-dd-opt:hover {
    background: var(--sh-wash);
  }
}
.asgsh-offscreen {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
}

/* ── Phones ── */
@media (max-width: 720px) {
  .asgsh-row {
    min-height: 52px;
  }
  .asgsh-from {
    grid-template-columns: 1fr;
  }
  .asgsh-pframe {
    height: 360px;
  }
  .asgsh-field,
  .asgsh-minput,
  .asgsh-chipin,
  .asgsh-find input {
    font-size: 16px;
  }
}

/* ── Preferences ── */
@media (prefers-reduced-motion: reduce) {
  .asgsh-root button,
  .asgsh-dd,
  .asgsh-pick,
  .asgsh-dot {
    transition: opacity 150ms linear, background-color 150ms linear !important;
  }
  .asgsh-press button:not(:disabled):active {
    transform: none;
    opacity: 0.62;
  }
  .asgsh-dd {
    transform: none;
  }
  .asgsh-pick {
    transform: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .asgsh {
    background: var(--sh-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .asgsh-root {
    --sh-muted: rgba(17, 17, 17, 0.85);
    --sh-line: rgba(17, 17, 17, 0.4);
  }
  html[data-asg-theme="dark"] .asgsh-root {
    --sh-muted: rgba(242, 241, 238, 0.88);
    --sh-line: rgba(255, 255, 255, 0.45);
  }
  .asgsh {
    background: var(--sh-solid);
    border-width: 1.5px;
  }
  .asgsh-field,
  .asgsh-minput,
  .asgsh-chips,
  .asgsh-find {
    box-shadow: inset 0 0 0 1px var(--sh-line);
  }
}
@media (forced-colors: active) {
  .asgsh,
  .asgsh-dd,
  .asgsh-btn,
  .asgsh-send,
  .asgsh-radio {
    border: 1px solid CanvasText;
  }
}
