/* TradingSpaces share pop-up */
.share-dialog {
  width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  margin: auto; padding: 22px 22px 18px;
  background: #050806; color: #e8eae5;
  border: 1px solid rgba(92, 207, 42, 0.45); border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 60px rgba(92, 207, 42, 0.12);
  font: 400 0.95rem/1.45 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.share-dialog::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(3px); }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.share-head h2 { margin: 0; font: 900 1.6rem/1 "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; letter-spacing: 0.01em; text-transform: uppercase; color: #e8eae5; }
.share-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #9fa69b; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.share-x:hover { color: #5ccf2a; border-color: #5ccf2a; }
.share-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; background: #0b110d; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; }
.share-seg button { padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #9fa69b; font: 600 0.875rem/1 inherit; font-family: inherit; cursor: pointer; }
.share-seg button.on { background: #5ccf2a; color: #030504; }
.share-stage { display: flex; justify-content: center; margin: 0 0 14px; }
.share-img { display: block; height: auto; border-radius: 12px; border: 1px solid rgba(92, 207, 42, 0.3); background: #000; }
.share-img.square { width: 230px; max-width: 100%; }
.share-img.story { width: auto; max-width: 100%; max-height: 300px; }
.share-dialog textarea { display: block; width: 100%; box-sizing: border-box; min-height: 64px; resize: none; margin: 0 0 12px; padding: 10px 12px; background: #0b110d; color: #e8eae5; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; font: inherit; font-size: 0.9rem; line-height: 1.45; }
.share-dialog textarea:focus { outline: none; border-color: #5ccf2a; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-dialog .btn { width: 100%; padding: 0.8em 0.6em; font-size: 0.875rem; border-radius: 8px; white-space: nowrap; background: #0b110d; border: 1px solid rgba(92, 207, 42, 0.35); color: #e8eae5; }
.share-dialog .btn:hover { border-color: #5ccf2a; background: rgba(92, 207, 42, 0.12); }
.share-dialog .btn--solid { background: #5ccf2a; border-color: #5ccf2a; color: #030504; }
.share-dialog .btn--solid:hover { background: #7be048; }
.share-native { margin-bottom: 8px; }
.share-native[hidden], .share-dialog [hidden] { display: none; }
.share-fine { margin: 12px 0 0; font-size: 0.78rem; line-height: 1.45; color: #8d9489; }
.share-offscreen { position: fixed; left: -9999px; opacity: 0; }
@media (max-width: 420px) { .share-dialog { padding: 18px 16px 14px; } }
.share-x:focus { outline: none; }
.share-tabs { grid-template-columns: repeat(4, 1fr); }
.share-three { grid-template-columns: repeat(3, 1fr); }
.share-tabs button { padding: 9px 4px; font-size: 0.8rem; }
.share-img.wide { width: 100%; max-width: 100%; }
.share-seg[hidden] { display: none; }
@media (max-width: 420px) { .share-grid { grid-template-columns: 1fr 1fr; } }
