/* Stories + HighLights module */
.profile-story-strip {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(15,23,42,.08);
}
.story-circle,
.highlight-circle,
.highlight-empty-launch,
.story-empty-launch,
.story-add-mini {
  appearance:none;
  border:0;
  background:transparent!important;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:#111827;
  font-weight:800;
}
.story-circle img,
.story-video-thumb {
  width:66px;
  height:66px;
  border-radius:999px;
  object-fit:cover;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#111827,#334155);
  color:#fff;
  border:3px solid #fff;
  outline:3px solid #ec4899;
  box-shadow:0 12px 30px rgba(236,72,153,.25);
}
.story-circle span:last-child,
.highlight-circle span:last-child,
.highlight-empty-launch span:last-child {
  font-size:12px;
  max-width:86px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.story-plus {
  width:66px;
  height:66px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  font-size:30px;
  border:3px solid #fff;
  outline:3px dashed rgba(236,72,153,.75);
  box-shadow:0 14px 30px rgba(15,23,42,.18);
}
.story-add-mini .story-plus { width:54px; height:54px; font-size:24px; }
.profile-left-sidebar-stack { display:flex; flex-direction:column; gap:16px; }
.profile-highlights-rail {
    overflow: hidden;
    /* border: 1px solid rgba(15, 23, 42, .08); */
    box-shadow: 0 20px 55px rgba(15, 23, 42, .12);
    /* background: linear-gradient(180deg, #fff 0%, #fdf2f8 100%);*/
}
.profile-highlights-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 16px 8px;
      display: none;
}
.profile-highlights-head h3 { margin:0; font-size:18px; }
.profile-highlights-head span { font-size:12px; color:#be185d; font-weight:900;/* text-transform:uppercase; letter-spacing:.05em;*/ }
.profile-highlights-list {
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:12px 16px 18px;
  max-height:70vh;
  overflow:auto;
}
.highlight-circle img,
.highlight-video-thumb,
.highlight-empty-launch .story-plus {
  width:104px;
  height:104px;
  border-radius:999px;
  object-fit:cover;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#0f172a,#7c3aed,#ec4899);
  color:#fff;
  border:4px solid #fff;
  outline:4px solid rgba(124,58,237,.55);
  box-shadow:0 18px 40px rgba(124,58,237,.25);
  margin:auto;
}
.highlight-circle { width:100%; padding:10px 0; border-radius:18px; }
.highlight-circle:hover { background:rgba(255,255,255,.7); }
.highlight-add-btn,
.story-primary-btn {
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:900;
  padding:11px 16px;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(17,24,39,.22);
}
.highlight-add-btn { margin:0 16px 16px; width:calc(100% - 32px); }
.highlight-empty-copy { color:#64748b; font-size:14px; }
.story-settings-card,
.story-manage-panel {
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 18px 48px rgba(15,23,42,.08);
}
.story-settings-head {
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.story-settings-head h2 { margin:0 0 6px; }
.story-settings-head p { margin:0; color:#64748b; }
.story-settings-form {
  display:grid;
  gap:12px;
  padding:16px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  margin-bottom:18px;
}
.story-settings-form-compact {
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:end;
}
.story-settings-toggle { display:flex; align-items:center; gap:10px; font-weight:800; }
.story-always-on-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.story-status-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
  border:1px solid rgba(16,185,129,.22);
}
.story-settings-form label {
  display:grid;
  gap:7px;
  color:#0f172a;
  font-weight:900;
}
.story-settings-form input[type="number"] {
  width:120px;
  border:1px solid rgba(15,23,42,.15);
  border-radius:12px;
  padding:10px 12px;
  font-weight:850;
}
.story-settings-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.story-settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.story-manage-panel {
  border-radius:22px;
  padding:16px;
  background:#f8fafc;
}
.story-manage-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.story-manage-head h3 { margin:0; }
.story-manage-panel p { color:#64748b; margin:8px 0 14px; }
.story-manage-list { display:grid; gap:10px; max-height:360px; overflow:auto; padding-right:4px; }
.story-manage-item {
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(15,23,42,.07);
}
.story-manage-thumb,
.story-manage-thumb img {
  width:52px;
  height:52px;
  border-radius:999px;
  object-fit:cover;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  overflow:hidden;
}
.story-manage-item strong,
.story-manage-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.story-manage-item small { color:#64748b; }
.story-manage-item button {
  border:0;
  border-radius:999px;
  padding:8px 11px;
  background:#fee2e2;
  color:#991b1b;
  font-weight:900;
  cursor:pointer;
}
.story-manage-empty { padding:18px; border-radius:16px;background:#fff; color:#64748b; border:1px solid rgba(15,23,42,.07); }
@media (max-width: 760px) {
  .story-settings-form-compact,
  .story-settings-grid {
    grid-template-columns:1fr;
  }
  .story-settings-actions .story-primary-btn {
    width:100%;
  }
  .story-manage-item {
    grid-template-columns:52px minmax(0,1fr);
  }
  .story-manage-item button {
    grid-column:1 / -1;
    justify-self:start;
  }
}
.story-composer-overlay,
.story-viewer-overlay {
  position:fixed;
  inset:0;
  z-index:5000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:0;
    background: rgb(248 250 252 / 14%);
  backdrop-filter:blur(14px);
}
.story-composer-overlay.is-open,
.story-viewer-overlay.is-open { display:flex; }
.story-composer-dialog {
  position:relative;
  width:min(760px,100%);
  max-height:calc(100dvh - 34px);
  overflow:auto;
  border-radius:28px;
  padding:20px;
  background:linear-gradient(135deg,#ffffff 0%,#fff7ed 40%,#fdf2f8 100%);
  box-shadow:0 35px 90px rgba(0,0,0,.35);
}
.story-composer-close,
.story-viewer-close {
  position:absolute;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:24px;
  cursor:pointer;
  z-index:4;
}
.story-composer-title { margin:0 54px 8px 0; font-size:26px; }
.story-composer-subtitle { margin:0 0 16px; color:#64748b; }
.story-source-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.story-source-tab {
  border:0;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  background:#e5e7eb;
  cursor:pointer;
}
.story-source-tab.is-active { background:#111827; color:#fff; }
.story-source-panel { display:none; }
.story-source-panel.is-active { display:block; }
.story-source-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:10px;
  max-height:280px;
  overflow:auto;
  padding:6px;
  background:rgba(255,255,255,.65);
  border-radius:18px;
}
.story-source-choice {
  border:3px solid transparent;
  border-radius:18px;
  padding:4px;
  background:#fff;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.story-source-choice.is-selected { border-color:#ec4899; }
.story-source-choice img,
.story-source-video {
  width:100%;
  aspect-ratio:1/1;
  border-radius:14px;
  object-fit:cover;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  font-size:26px;
}
.story-source-choice small { display:block; margin-top:5px; font-size:11px; color:#475569; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.story-upload-drop {
  border:2px dashed rgba(236,72,153,.55);
  border-radius:22px;
  padding:20px;
  background:#fff;
  text-align:center;
}
.story-upload-drop input { display:none; }
.story-upload-preview {
  min-height:170px;
  border-radius:20px;
  background:#f1f5f9;
  display:grid;
  place-items:center;
  overflow:hidden;
  margin-bottom:12px;
}
.story-upload-preview img,
.story-upload-preview video { width:100%; height:240px; object-fit:cover; }
.story-form-grid { display:grid; gap:12px; margin-top:14px; }
.story-form-grid textarea,
.story-form-grid input[type="date"] {
  width:100%;
  border:1px solid rgba(15,23,42,.14);
  border-radius:16px;
  padding:13px 14px;
  background:#fff;
  font:inherit;
}
.story-form-grid textarea { min-height:92px; resize:vertical; }
.highlight-date-wrap {
  display:grid;
  gap:7px;
}
.highlight-date-control {
  position:relative;
  display:grid;
  align-items:center;
}
.highlight-date-control input[type="date"] {
  min-height:52px;
  padding-right:116px;
  cursor:pointer;
  color-scheme:light;
}
.highlight-date-control input[type="date"]::-webkit-calendar-picker-indicator {
  position:absolute;
  top:0;
  right:0;
  width:112px;
  height:100%;
  opacity:0;
  cursor:pointer;
}
.highlight-date-trigger {
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  min-width:90px;
  min-height:36px;
  border:0;
  border-radius:13px;
  background:#111827;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,23,42,.18);
}
.highlight-date-hint {
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.story-error { color:#b91c1c; font-weight:900; min-height:20px; }
.story-progress { display:none; gap:8px; align-items:center; }
.story-progress.is-active { display:flex; }
.story-progress-track { flex:1; height:10px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.story-progress-fill { width:0; height:100%; background:linear-gradient(90deg,#ec4899,#7c3aed); }
.story-submit-row { display:flex; gap:10px; justify-content:flex-end; }
.story-viewer-dialog {
  position:relative;
  width:100vw;
  height:100dvh;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,380px);
  border-radius:0;
  overflow:hidden;
  background:#050816;
  color:#fff;
  box-shadow:0 40px 110px rgba(0,0,0,.5);
}
.story-media-stage { position:relative; display:grid; place-items:center; min-width:0; background:radial-gradient(circle at top,#1e293b,#020617); }
.story-media-stage img,
.story-media-stage video { width:100%; height:100%; object-fit:contain; max-height:100%; }
.story-top-message,
.highlight-bottom-message {
  position:absolute;
  left:18px;
  right:18px;
  z-index:2;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(10px);
  border-radius:18px;
  padding:12px 14px;
  font-weight:900;
  box-shadow:0 14px 30px rgba(0,0,0,.24);
}
.story-top-message { top:18px; }
.highlight-bottom-message { bottom:18px; display:grid; gap:8px; }
.highlight-marquee { overflow:hidden; white-space:nowrap; }
.highlight-marquee span { display:inline-block; min-width:100%; animation:storyMarquee 11s linear infinite; }
@keyframes storyMarquee { 0%{ transform:translateX(100%);} 100%{ transform:translateX(-100%);} }
.story-progress-dots {
  position:absolute;
  top:8px;
  left:18px;
  right:64px;
  display:flex;
  gap:6px;
  z-index:3;
}
.story-progress-dot { height:4px; flex:1; background:rgba(255,255,255,.3); border-radius:999px; overflow:hidden; }
.story-progress-dot.is-active::before { content:""; display:block; height:100%; background:#fff; animation:storyDot 8s linear forwards; }
@keyframes storyDot { from{ width:0; } to{ width:100%; } }
.story-nav-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  min-width:108px;
  height:48px;
  background:rgba(15,23,42,.76);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 16px;
  font-size:15px;
  font-weight:950;
  cursor:pointer;
  z-index:3;
  box-shadow:0 16px 38px rgba(0,0,0,.32);
  backdrop-filter:blur(10px);
}
.story-nav-arrow span {
  font-size:26px;
  line-height:1;
}
.story-nav-arrow b {
  font-size:13px;
  line-height:1;
}
.story-nav-arrow:hover {
  filter:brightness(1.06);
}
.story-nav-arrow:disabled {
  opacity:.38;
  cursor:default;
  pointer-events:none;
}
.story-nav-prev { left:18px; }
.story-nav-next { right:18px; }
.story-comments-panel {
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  background:#fff;
  color:#111827;
  min-width:0;
}
.story-comments-head { padding:18px; border-bottom:1px solid #e5e7eb; }
.story-comments-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.story-comments-title-copy {
  min-width:0;
}
.story-comments-head strong { display:block; font-size:18px; }
.story-comments-head small { color:#64748b; }
.story-comments-nav {
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
.story-comments-nav button {
  min-height:34px;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  color:#0f4ca7;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-weight:950;
  cursor:pointer;
}
.story-comments-nav button:hover {
  filter:brightness(1.06);
}
.story-comments-nav button:disabled {
  opacity:.38;
  cursor:default;
  pointer-events:none;
}
.story-comments-nav span {
  font-size:18px;
  line-height:1;
}
.story-comments-nav b {
  font-size:12px;
  line-height:1;
}
.story-engagement-panel {
  display:grid;
  gap:12px;
  padding:14px;
  border-bottom:1px solid #e5e7eb;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
}
.story-engagement-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.story-engagement-stats span {
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:9px 8px;
  background:#fff;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  text-align:center;
}
.story-engagement-stats strong {
  display:block;
  color:#0f172a;
  font-size:16px;
  line-height:1.1;
}
.story-reaction-row {
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:thin;
}
.story-reaction-btn {
  flex:0 0 auto;
  min-width:58px;
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#fff;
  color:#1e293b;
  padding:8px 9px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.story-reaction-btn span,
.story-reaction-btn small {
  display:block;
}
.story-reaction-btn span {
  max-width:68px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin:0 auto;
}
.story-reaction-btn small {
  margin-top:4px;
  color:#64748b;
  font-size:11px;
}
.story-reaction-btn.is-active {
  border-color:#60a5fa;
  background:#eff6ff;
  color:#0f4ca7;
}
.story-share-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9px;
}
.story-share-btn,
.story-views-link,
.story-load-more-btn,
.story-secondary-link {
  min-height:42px;
  border-radius:14px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}
.story-share-btn {
  border:0;
  background:#111827;
  color:#fff;
}
.story-share-btn.is-active {
  background:#eff6ff;
  color:#0f4ca7;
  border:1px solid #93c5fd;
}
.story-views-link.is-disabled {
  pointer-events:none;
  color:#64748b;
  background:#f8fafc;
}
.story-comments-list { overflow:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.story-comment-item { display:grid; grid-template-columns:38px minmax(0,1fr); gap:10px; align-items:start; }
.story-comment-item img { width:38px; height:38px; border-radius:999px; object-fit:cover; }
.story-comment-bubble { background:#f1f5f9; border-radius:16px; padding:9px 11px; }
.story-comment-bubble strong { display:block; font-size:13px; }
.story-comment-bubble span { font-size:14px; overflow-wrap:anywhere; }
.story-comment-form { display:flex; gap:8px; padding:14px; border-top:1px solid #e5e7eb; }
.story-comment-form input { flex:1; border:1px solid #cbd5e1; border-radius:999px; padding:11px 13px; }
.story-comment-form button { border:0; border-radius:999px; padding:0 16px; background:#111827; color:#fff; font-weight:900; cursor:pointer; }
@media (max-width: 980px) {
  .story-settings-grid { grid-template-columns:1fr; }
  .story-viewer-overlay { padding:0; }
  .story-viewer-dialog { width:100%; height:100dvh; border-radius:0; grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) 42dvh; }
  .story-comments-panel { min-height:0; }
  .story-nav-arrow { min-width:88px; height:42px; padding:0 12px; font-size:13px; }
  .story-nav-arrow span { font-size:22px; }
  .profile-highlights-list { flex-direction:row; overflow-x:auto; max-height:none; }
  .highlight-circle { width:120px; flex:0 0 120px; }
  .highlight-circle img,.highlight-video-thumb,.highlight-empty-launch .story-plus { width:88px; height:88px; }
  .story-share-card { grid-template-columns:1fr; }
  .story-share-media { min-height:360px; }
  .story-views-hero { grid-template-columns:78px minmax(0,1fr); }
  .story-views-hero > .story-secondary-link { grid-column:1 / -1; }
  .story-views-thumb { width:78px; height:78px; border-radius:14px; }
}
@media (max-width: 560px) {
  .story-composer-overlay { padding:0; }
  .story-composer-dialog { width:100%; height:100dvh; max-height:none; border-radius:0; }
  .story-source-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .profile-story-strip { overflow-x:auto; flex-wrap:nowrap; padding-bottom:8px; }
  .story-circle { flex:0 0 auto; }
  .story-page-shell,
  .story-views-shell { width:calc(100% - 20px); margin:14px auto 28px; }
  .story-share-body { padding:22px; }
  .story-share-body h1,
  .story-views-hero h1 { font-size:26px; }
  .story-engagement-stats { grid-template-columns:repeat(3,minmax(72px,1fr)); overflow-x:auto; }
  .story-comments-head { padding:12px; }
  .story-comments-title-row {
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .story-comments-nav {
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .story-comments-nav button { min-height:32px; min-width:0; padding:0 9px; }
  .story-nav-arrow { min-width:44px; width:44px; padding:0; }
  .story-nav-arrow b { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .story-viewer-row { grid-template-columns:44px minmax(0,1fr); }
  .story-viewer-row time { grid-column:2; }
}

/* Highlight rail sticky repair */
@media (min-width:981px){.profile-left-sidebar-stack{position:sticky!important;top:72px!important;max-height:calc(100dvh - 140px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:22px!important}.profile-highlights-rail{overflow:visible}.profile-highlights-list{max-height:none}}

/* Stories/HighLights now use the universal comment lightbox */
.story-universal-comments-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-universal-comment-copy {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
  line-height: 1.45;
  font-weight: 700;
}
.story-universal-comment-btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1877f2, #7c3aed);
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(24,119,242,.25);
}

.story-page-shell,
.story-views-shell {
  width:min(1100px, calc(100% - 32px));
  margin:28px auto 42px;
}
.story-share-card,
.story-views-hero {
  background:rgba(255,255,255,.95);
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(15,23,42,.12);
}
.story-share-card {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  overflow:hidden;
}
.story-share-media {
  min-height:520px;
  background:#020617;
  display:grid;
  place-items:center;
}
.story-share-media img,
.story-share-media video {
  width:100%;
  height:100%;
  object-fit:contain;
  max-height:720px;
}
.story-share-body {
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  color:#0f172a;
}
.story-share-kicker,
.story-views-hero > div > span {
  color:#2563eb;
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:0;
}
.story-share-body h1,
.story-views-hero h1 {
  margin:0;
  color:#0f172a;
  font-size:clamp(28px, 4vw, 46px);
  line-height:1.02;
  letter-spacing:0;
}
.story-share-body p,
.story-views-hero p {
  margin:0;
  color:#475569;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.story-share-stats {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.story-share-stats span {
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1e40af;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
}
.story-share-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.story-views-hero {
  display:grid;
  grid-template-columns:112px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:20px;
  margin-bottom:16px;
}
.story-views-thumb {
  width:112px;
  height:112px;
  border-radius:18px;
  overflow:hidden;
  background:#020617;
}
.story-views-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.story-viewer-list {
  display:grid;
  gap:10px;
}
.story-viewer-row,
.story-viewer-empty,
.story-page-empty {
  background:rgba(255,255,255,.95);
  border:1px solid rgba(148,163,184,.24);
  border-radius:16px;
  padding:12px;
  color:#0f172a;
  text-decoration:none;
}
.story-viewer-row {
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.story-viewer-row img {
  width:48px;
  height:48px;
  border-radius:999px;
  object-fit:cover;
}
.story-viewer-row strong,
.story-viewer-row span {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.story-viewer-row span,
.story-viewer-row time {
  color:#64748b;
  font-weight:800;
  font-size:13px;
}
.story-load-more-btn {
  width:100%;
  margin-top:14px;
}
.story-load-more-btn.hidden {
  display:none;
}


/* Profile bio/avatar/stories/highlights compact redesign */
.profile-bio-redesign-card{
  padding:18px!important;
  overflow:hidden;
}

.profile-bio-topline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
}

.profile-bio-identity{
  display:flex!important;
  align-items:flex-start!important;
  gap:16px!important;
  min-width:0;
}

.profile-bio-avatar-link{
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
}

.profile-bio-avatar{
  width:88px!important;
  height:88px!important;
  border-radius:26px!important;
  border:3px solid rgba(255,255,255,.95)!important;
  box-shadow:0 14px 34px rgba(15,23,42,.16)!important;
}

.profile-bio-avatar-btn{
  right:-10px!important;
  bottom:-7px!important;
  white-space:nowrap!important;
  padding:7px 11px!important;
  font-size:12px!important;
}

.profile-bio-summary{
  min-width:0;
  display:grid;
  gap:4px;
}

.profile-bio-summary h2{
  margin:0!important;
  font-size:24px!important;
  line-height:1.1!important;
}

.profile-bio-summary .profile-username{
  color:var(--muted,#64748b);
  font-weight:800;
}

.profile-bio-summary .profile-bio{
  margin:4px 0 0!important;
  max-width:100%;
  line-height:1.35;
  color:var(--text,#0f172a);
}

.profile-bio-stats{
  width:auto!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(86px,1fr));
  gap:8px!important;
  align-self:start;
}

.profile-bio-stats a{
  text-decoration:none!important;
  display:grid;
  gap:2px;
  justify-items:center;
  align-content:center;
  min-height:58px;
  padding:8px 10px;
  border-radius:16px;
  background:rgba(148,163,184,.12);
  border:1px solid rgba(148,163,184,.18);
  color:inherit!important;
}

.profile-bio-stats strong{
  font-size:18px;
  line-height:1;
}

.profile-bio-stats span{
  font-size:12px;
  color:var(--muted,#64748b);
  font-weight:800;
}

.profile-bio-stories-row{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(148,163,184,.2);
  width:100%;
}

.profile-bio-redesign-card .profile-story-strip{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border-top:0!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}

.profile-bio-redesign-card .story-circle,
.profile-bio-redesign-card .story-empty-launch,
.profile-bio-redesign-card .story-add-mini{
  flex:0 0 auto!important;
  min-width:82px;
  padding:8px 6px!important;
  border-radius:18px!important;
  background:rgba(248,250,252,.7)!important;
}

.profile-bio-redesign-card .story-circle img,
.profile-bio-redesign-card .story-video-thumb,
.profile-bio-redesign-card .story-plus{
  width:58px!important;
  height:58px!important;
}

.profile-bio-highlights-row{
  margin-top:12px!important;
  width:100%;
}

.profile-bio-redesign-card .profile-highlights-rail{
  box-shadow:none!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(248,250,252,.72))!important;
  padding:10px!important;
}

.profile-bio-redesign-card .profile-highlights-head{
  display:flex!important;
  padding:0 0 8px!important;
}

.profile-bio-redesign-card .profile-highlights-head h3{
  font-size:14px!important;
  margin:0!important;
}

.profile-bio-redesign-card .profile-highlights-head span{
  display:none!important;
}

.profile-bio-redesign-card .profile-highlights-list{
  display:flex!important;
  flex-direction:row!important;
  gap:12px!important;
  padding:0!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}

.profile-bio-redesign-card .highlight-circle,
.profile-bio-redesign-card .highlight-empty-launch{
  flex:0 0 auto!important;
  width:96px!important;
  padding:8px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.72)!important;
}

.profile-bio-redesign-card .highlight-circle img,
.profile-bio-redesign-card .highlight-video-thumb,
.profile-bio-redesign-card .highlight-empty-launch .story-plus{
  width:62px!important;
  height:62px!important;
  margin:0 auto!important;
}

.profile-bio-redesign-card .highlight-add-btn{
  margin:10px 0 0!important;
  width:auto!important;
  padding:9px 13px!important;
}

@media(max-width:1180px){
  .profile-bio-topline{
    grid-template-columns:1fr;
  }
  .profile-bio-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:680px){
  .profile-bio-redesign-card{
    padding:14px!important;
  }
  .profile-bio-identity{
    gap:12px!important;
  }
  .profile-bio-avatar{
    width:76px!important;
    height:76px!important;
    border-radius:22px!important;
  }
  .profile-bio-summary h2{
    font-size:20px!important;
  }
  .profile-bio-stats a{
    min-height:52px;
    padding:7px 6px;
  }
}

/* Profile Highlights compact add button repair: keep ADD+ without the oversized bar. */
body.profile-page .profile-story-surface-highlights .profile-highlights-rail-compact{
  width:100%!important;
  background:rgba(255,255,255,.86)!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:18px!important;
  box-shadow:0 14px 34px rgba(15,23,42,.08)!important;
  padding:10px 12px!important;
  overflow:hidden!important;
}
body.profile-page .profile-story-surface-highlights .profile-highlights-head{
  display:flex!important;
  padding:0 0 8px!important;
  margin:0!important;
}
body.profile-page .profile-story-surface-highlights .profile-highlights-head h3{
  font-size:14px!important;
  line-height:1.15!important;
}
body.profile-page .profile-story-surface-highlights .profile-highlights-head span{
  display:none!important;
}
body.profile-page .profile-story-surface-highlights .profile-highlights-list{
  display:flex!important;
  flex-direction:row!important;
  align-items:stretch!important;
  gap:10px!important;
  padding:0!important;
  margin:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
body.profile-page .profile-story-surface-highlights .highlight-circle,
body.profile-page .profile-story-surface-highlights .highlight-add-mini,
body.profile-page .profile-story-surface-highlights .highlight-empty-launch{
  flex:0 0 auto!important;
  min-width:112px!important;
  min-height:82px!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:none!important;
  padding:10px 12px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:2px!important;
  align-items:center!important;
  text-align:left!important;
  cursor:pointer!important;
}
body.profile-page .profile-story-surface-highlights .highlight-circle img,
body.profile-page .profile-story-surface-highlights .highlight-video-thumb,
body.profile-page .profile-story-surface-highlights .highlight-add-mini .story-plus,
body.profile-page .profile-story-surface-highlights .highlight-empty-launch .story-plus{
  grid-row:1 / 3!important;
  width:48px!important;
  height:48px!important;
  margin:0!important;
  border-radius:999px!important;
  border:3px solid #fff!important;
  outline:3px solid rgba(124,58,237,.45)!important;
  box-shadow:0 10px 22px rgba(124,58,237,.18)!important;
  font-size:22px!important;
}
body.profile-page .profile-story-surface-highlights .highlight-add-mini .story-plus,
body.profile-page .profile-story-surface-highlights .highlight-empty-launch .story-plus{
  background:#111827!important;
  color:#fff!important;
  outline-style:dashed!important;
}
body.profile-page .profile-story-surface-highlights .highlight-label,
body.profile-page .profile-story-surface-highlights .highlight-circle span:not(.story-plus),
body.profile-page .profile-story-surface-highlights .highlight-add-mini span:not(.story-plus),
body.profile-page .profile-story-surface-highlights .highlight-empty-launch span:not(.story-plus){
  max-width:120px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:13px!important;
  font-weight:900!important;
  color:#0f172a!important;
}
body.profile-page .profile-story-surface-highlights .highlight-meta{
  font-size:11px!important;
  color:#64748b!important;
  font-weight:800!important;
}

/* Profile center stack: keep owner story controls visible after app.css. */
body.profile-page .profile-bio-story-stack .profile-story-owner-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  z-index:5!important;
}
body.profile-page .profile-bio-story-stack .profile-story-tools-dropdown{
  position:relative!important;
  display:inline-block!important;
  z-index:6!important;
}
body.profile-page .profile-bio-story-stack .profile-story-tools-dropdown summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  width:36px!important;
  min-width:36px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#111827!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(15,23,42,.16)!important;
  font-size:0!important;
  font-weight:700!important;
  line-height:1!important;
  cursor:pointer!important;
  list-style:none!important;
  opacity:1!important;
  visibility:visible!important;
}
body.profile-page .profile-bio-story-stack .profile-story-tools-dropdown summary::-webkit-details-marker{
  display:none!important;
}
body.profile-page .profile-bio-story-stack .profile-story-tools-dropdown summary span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  border-radius:999px!important;
  background:transparent!important;
  color:inherit!important;
  font-size:20px!important;
  font-weight:800!important;
  letter-spacing:1px!important;
  line-height:1!important;
  transform:translateY(-2px);
}
body.profile-page .profile-bio-story-stack .profile-story-tools-menu{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  right:0!important;
  width:190px!important;
  display:grid!important;
  gap:6px!important;
  padding:8px!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 18px 44px rgba(15,23,42,.20)!important;
  z-index:20!important;
}
body.profile-page .profile-bio-story-stack .profile-story-tools-menu button{
  width:100%!important;
  min-height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border:0!important;
  border-radius:12px!important;
  padding:9px 11px!important;
  background:#f8fafc!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:900!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
body.profile-page .profile-bio-story-stack .profile-story-tools-menu button:hover{
  background:#e8f1ff!important;
}
body.profile-page .profile-bio-story-stack .profile-story-tools-menu button.is-danger{
  color:#b91c1c!important;
  background:#fff1f2!important;
}
body.profile-page .profile-bio-story-stack .story-empty-launch,
body.profile-page .profile-bio-story-stack .story-add-mini,
body.profile-page .profile-bio-story-stack .highlight-empty-launch,
body.profile-page .profile-bio-story-stack .highlight-add-mini{
  display:none!important;
}
body.profile-page.profile-story-delete-mode .profile-bio-story-stack [data-story-open]{
  position:relative!important;
  outline:3px solid rgba(220,38,38,.65)!important;
  outline-offset:3px!important;
  cursor:not-allowed!important;
}
body.profile-page.profile-story-delete-mode .profile-bio-story-stack [data-story-open]::after{
  content:"Delete";
  position:absolute;
  right:6px;
  top:6px;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  padding:4px 7px;
  font-size:11px;
  font-weight:950;
}
body.profile-page .profile-bio-story-stack > .profile-story-surface-highlights{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
}
body.profile-page .profile-bio-story-stack .profile-highlights-rail,
body.profile-page .profile-bio-story-stack .profile-highlights-rail-compact{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  padding:14px!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 14px 34px rgba(15,23,42,.08)!important;
  overflow:visible!important;
}
body.profile-page .profile-bio-story-stack .profile-highlights-head{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  min-height:42px!important;
  margin:0 0 10px!important;
  padding:0!important;
}
body.profile-page .profile-bio-story-stack .profile-highlights-head .profile-sidebar-head-actions{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  min-width:0!important;
}
body.profile-page .profile-bio-story-stack .profile-highlights-head > span{
  display:none!important;
}
body.profile-page .profile-bio-story-stack .profile-highlights-story-line{
  display:block!important;
  width:100%!important;
  margin:0 0 12px!important;
  padding:0 0 12px!important;
  border-bottom:1px solid rgba(148,163,184,.18)!important;
  overflow:visible!important;
}
body.profile-page .profile-bio-story-stack .profile-story-strip,
body.profile-page .profile-bio-story-stack .profile-highlights-list{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0!important;
  margin:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  opacity:1!important;
  visibility:visible!important;
  -webkit-overflow-scrolling:touch!important;
}
body.profile-page .profile-bio-story-stack .story-circle,
body.profile-page .profile-bio-story-stack .story-empty-launch,
body.profile-page .profile-bio-story-stack .story-add-mini,
body.profile-page .profile-bio-story-stack .highlight-circle,
body.profile-page .profile-bio-story-stack .highlight-add-mini,
body.profile-page .profile-bio-story-stack .highlight-empty-launch{
  flex:0 0 auto!important;
  width:112px!important;
  min-width:112px!important;
  min-height:88px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:9px!important;
  border:1px solid rgba(148,163,184,.24)!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:0 8px 20px rgba(15,23,42,.08)!important;
  text-align:center!important;
  position:static!important;
  right:auto!important;
  opacity:1!important;
  visibility:visible!important;
  cursor:pointer!important;
}
body.profile-page .profile-bio-story-stack .story-plus{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:48px!important;
  height:48px!important;
  border-radius:999px!important;
  background:#111827!important;
  color:#fff!important;
  font-size:24px!important;
  font-weight:950!important;
  line-height:1!important;
}

/* Mobile profile repair: bio details and stories/highlights should stack as their own rows. */
@media (max-width:980px){
  body.profile-page .profile-bio-story-stack{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-flow:row!important;
    gap:14px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body.profile-page .profile-bio-story-stack > .profile-bio-lines-card,
  body.profile-page .profile-bio-story-stack > .profile-story-surface-highlights{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
}
body.profile-page.is-mobile-shell .profile-bio-story-stack,
body.is-mobile-shell.profile-page .profile-bio-story-stack{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-auto-flow:row!important;
  gap:14px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
body.profile-page.is-mobile-shell .profile-bio-story-stack > .profile-bio-lines-card,
body.profile-page.is-mobile-shell .profile-bio-story-stack > .profile-story-surface-highlights,
body.is-mobile-shell.profile-page .profile-bio-story-stack > .profile-bio-lines-card,
body.is-mobile-shell.profile-page .profile-bio-story-stack > .profile-story-surface-highlights{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
}

/* Final profile story strip cleanup: keep the content, remove card chrome and duplicate add tiles. */
body.profile-page .profile-bio-story-stack .story-add-mini,
body.profile-page .profile-bio-story-stack .highlight-add-mini,
body.profile-page .profile-bio-story-stack .story-empty-launch,
body.profile-page .profile-bio-story-stack .highlight-empty-launch{
  display:none!important;
}
body.profile-page .profile-bio-story-stack > .profile-story-surface-highlights,
body.profile-page .profile-bio-story-stack .profile-highlights-rail,
body.profile-page .profile-bio-story-stack .profile-highlights-rail-compact,
body.profile-page .profile-bio-story-stack .profile-highlights-story-line,
body.profile-page .profile-bio-story-stack .profile-story-strip,
body.profile-page .profile-bio-story-stack .profile-highlights-list{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.profile-page .profile-bio-story-stack .profile-highlights-rail,
body.profile-page .profile-bio-story-stack .profile-highlights-rail-compact{
  padding:0!important;
}
body.profile-page .profile-bio-story-stack .profile-highlights-story-line{
  padding:0 0 10px!important;
}
body.profile-page .profile-bio-story-stack .story-circle,
body.profile-page .profile-bio-story-stack .highlight-circle{
  width:auto!important;
  min-width:86px!important;
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
