/* Save and Share on the story's date line (js/story-tools.js), and Dislike in black */

/* The old share row under the story: its links now open from the Share button */
.kh-story > .share-bar { display: none; }

/* Date on the left, Save · Share · comments on the right */
.story-date.st-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.st-tools { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.st-tools .fb-jump { margin-left: 0; min-height: 38px; padding: 0 14px; font-size: 14px; }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 1px solid #d9d6de; border-radius: 999px;
  background: var(--card, #fff); color: var(--ink, #121212); cursor: pointer;
}
.st-btn svg { width: 18px; height: 18px; }
.st-btn:hover { border-color: var(--ink, #121212); }
.st-btn:focus-visible, .st-item:focus-visible, .st-panel button:focus-visible { outline: 2px solid var(--accent, #7e22ce); outline-offset: 2px; }
.st-save[aria-pressed="true"] { color: var(--accent, #7e22ce); border-color: var(--accent, #7e22ce); }
.st-save[aria-pressed="true"] svg { fill: currentColor; }

/* Share menu */
.st-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 210px; padding: 6px;
  background: var(--card, #fff); border: 1px solid #e4e1e8; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(18, 18, 18, .16);
}
.st-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink, #121212); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer;
}
.st-item:hover { background: #f3f0f7; }
.st-item svg { width: 20px; height: 20px; flex: none; }
.st-item.is-wa svg { color: #25d366; }
.st-item.is-fb svg { color: #1877f2; }
.st-item.is-tg svg { color: #229ed9; }

/* Toast */
.st-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: #121212; color: #fff; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}
.st-toast.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.st-toast-link { padding: 0; border: 0; background: none; color: #d8b4fe; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* Saved list */
.st-panel-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 16px; background: rgba(18, 18, 18, .45); }
.st-panel { width: 100%; max-width: 520px; max-height: calc(100vh - 96px); overflow: auto; padding: 18px; border-radius: 16px; background: var(--card, #fff); }
.st-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.st-panel-head h2 { margin: 0; font-size: 20px; }
.st-panel-close, .st-remove { display: inline-flex; padding: 6px; border: 0; border-radius: 999px; background: none; color: var(--faint, #85828b); cursor: pointer; }
.st-panel-close:hover, .st-remove:hover { background: #f3f0f7; color: var(--ink, #121212); }
.st-panel-close svg, .st-remove svg { width: 20px; height: 20px; }
.st-list { margin: 0; padding: 0; list-style: none; }
.st-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eeebf1; }
.st-list li:last-child { border-bottom: 0; }
.st-list img { width: 72px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; }
.st-list a { flex: 1; color: var(--ink, #121212); font-weight: 600; line-height: 1.4; text-decoration: none; }
.st-list a:hover { color: var(--accent, #7e22ce); }
.st-empty { color: var(--faint, #85828b); }
.st-panel-note { margin: 10px 0 0; color: var(--faint, #85828b); font-size: 13px; }

@media (max-width: 720px) {
  .st-btn { width: 36px; height: 36px; }
  .st-tools .fb-jump { min-height: 36px; }
}

/* Dislike in black: the story's reaction, the comments' reactions and their count bubbles */
.fb-react.is-dislike svg { color: #121212 !important; }
.fb-react.is-dislike:hover:not(:disabled) { border-color: #121212 !important; }
.fb-react.is-dislike[aria-pressed="true"] { border-color: #121212 !important; background-color: rgba(18, 18, 18, .08) !important; color: #121212 !important; }
.fb-like.is-dislike, .fb-like.is-dislike svg { color: #121212 !important; }
.fb-bub.is-dislike { background-color: #121212 !important; }
