.stem-site .stem-favorite-button[hidden], .stem-favorites [hidden] { display: none !important; }
.stem-header-actions { flex-shrink: 0; }
.stem-favorites-total { position: absolute; right: -7px; top: 0; min-width: 10px; font-size: 10px; line-height: 1.85; text-align: center; font-variant-numeric: tabular-nums; }
.stem-site .stem-favorite-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid #d6dfe4; border-radius: 0; background: white; color: var(--stem-ink, #203746); box-shadow: none; font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; }
.stem-favorite-button svg { flex-shrink: 0; }
.stem-site .stem-favorite-button[aria-pressed="true"] svg { fill: #56758a; stroke: #56758a; }
.stem-site .stem-favorite-button:hover { background: #edf1f3; color: var(--stem-ink, #203746); }
.stem-favorite-button:focus-visible { outline: 2px solid #315c75; outline-offset: 3px; }
.stem-site .stem-favorite-button:disabled { opacity: .58; cursor: wait; }
.stem-site .stem-favorite-button:disabled:hover { background: white; }
.stem-card { position: relative; }
.stem-site .stem-card .stem-favorite-button { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; padding: 10px; border: 0; background: rgba(255, 255, 255, .94); }
.stem-card .stem-favorite-button span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.stem-favorites { padding-bottom: 84px; }
.stem-favorites-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 26px 0 18px; }
.stem-favorites-heading h1 { font-size: 30px; margin: 0 0 12px; }
.stem-favorites-heading p { font-size: 12px; line-height: 1.8; margin: 0; color: #5c6b74; }
.stem-favorites-count { flex-shrink: 0; }
.stem-favorites-description { font-size: 11px; color: #5c6b74; margin: 0 0 40px; }
.stem-favorites-description a { display: inline-block; margin-left: 1em; color: #315c75; text-decoration: underline; text-underline-offset: 3px; }
.stem-favorites-item { min-width: 0; }
.stem-favorites-empty { padding: 56px 20px; }
.stem-favorites-empty:focus-visible { outline: 2px solid #315c75; outline-offset: 4px; }
.stem-favorites-notice { position: fixed; z-index: 10000; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: max-content; max-width: min(420px, calc(100vw - 40px)); margin: 0; padding: 14px 18px; border: 1px solid #cbd7df; background: white; box-shadow: 0 4px 20px rgba(20, 39, 53, .1); color: #203746; font-family: inherit; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; pointer-events: auto; }
.stem-favorites-notice[hidden], .stem-favorites-notice [hidden] { display: none !important; }
.stem-favorites-notice p { margin: 0; }
.stem-site .stem-favorites-view { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #315c75; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.stem-site .stem-favorites-view:hover { color: #203746; }
.stem-favorites-notice .stem-favorites-retry { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 9px; padding: 8px 16px; border: 1px solid #56758a; border-radius: 0; background: #fff; color: #203746; font: inherit; cursor: pointer; }
.stem-favorites-retry:focus-visible { outline: 2px solid #315c75; outline-offset: 3px; }
.stem-favorites-retry:disabled { opacity: .58; cursor: wait; }
@media (max-width: 600px) {
  .stem-site .stem-card .stem-favorite-button { top: 5px; right: 5px; }
  .stem-favorites-heading { align-items: flex-start; gap: 15px; }
  .stem-favorites-heading h1 { font-size: 25px; }
  .stem-favorites-heading p { font-size: 11px; }
  .stem-favorites-description { margin-bottom: 28px; }
  .stem-favorites-description a { margin: 8px 0 0; }
}
@media (max-width: 360px) {
  .stem-header-inner { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .stem-header .stem-logo img { width: 110px; }
  .stem-header-actions { gap: 10px; }
}
