/* Artdigg — Stories: tray (Feed), viewer, composer, add sheet.
   The viewer is always dark (content first), the tray follows the theme. */

/* ---------- Feed column ---------- */

.feed { max-width: 640px; margin: 0 auto; }
.feed__stories { padding: 12px 0 8px; border-bottom: var(--hairline) solid var(--color-line); }

@media (min-width: 1024px) {
  .feed__stories { padding: 8px 0 16px; }
}

/* ---------- Tray ---------- */

.stories { position: relative; }
.stories__list {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.stories__list::-webkit-scrollbar { display: none; }

.story-tile { position: relative; flex: none; scroll-snap-align: start; }
.story-tile__btn {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-radius: var(--radius-md);
  color: var(--color-ink);
}

.story-ring {
  --ring: 72px;
  position: relative;
  width: var(--ring);
  height: var(--ring);
  border-radius: var(--radius-full);
  padding: 2.5px;
  display: block;
}
.story-gap {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2.5px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
}
.story-avatar { width: 100%; height: 100%; font-size: 20px; }

/* New = brand ring; seen = quiet hairline ring; empty (your tile) = no ring */
.story-tile.is-new  .story-ring { background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); }
.story-tile.is-seen .story-ring { padding: 1.5px; background: var(--color-line-strong); }
.story-tile.is-seen .story-gap  { padding: 3.5px; }
.story-tile.is-muted { opacity: .45; }

/* Your tile without a story: dimmed avatar + plus, like the design */
.story-add-overlay {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: rgba(15, 15, 18, 0.38);
  color: #FFFFFF;
}
.story-add-overlay svg { width: 22px; height: 22px; }

/* Your tile with a story: small add button */
.story-plus {
  position: absolute;
  top: 56px;
  left: 56px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-ink);
  color: var(--color-bg);
  box-shadow: 0 0 0 2.5px var(--color-bg);
}
.story-plus svg { width: 10px; height: 10px; }

.story-name {
  width: 100%;
  padding: 0 2px;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  color: var(--nav-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.story-tile.is-new .story-name,
.story-tile--own .story-name { color: var(--color-ink); }

.stories__arrow {
  position: absolute;
  top: 30px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: none;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: var(--shadow-float);
}
.stories__arrow svg { width: 14px; height: 14px; }
.stories__arrow--prev { left: 4px; }
.stories__arrow--next { right: 4px; }

@media (min-width: 1024px) and (hover: hover) {
  .stories__arrow:not([hidden]) { display: grid; opacity: 0; transition: opacity .15s ease; }
  .stories:hover .stories__arrow:not([hidden]) { opacity: 1; }
  .story-tile__btn:hover .story-ring { transform: scale(1.03); }
  .story-ring { transition: transform .15s ease; }
}
.story-tile__btn:active .story-ring { transform: scale(.96); }

/* ---------- Story slide (shared) ---------- */

.sp {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #FFFFFF;
  container-type: inline-size;
}
.sp--light { color: #17171C; }
.sp p { margin: 0; }

.sp--gig, .sp--statement, .sp--setlist, .sp--note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9cqw;
  gap: 3cqw;
}
.sp__kicker {
  font-size: 4cqw;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
}
.sp__title { font-size: 12cqw; font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; }
.sp__meta { font-size: 5cqw; display: flex; flex-wrap: wrap; gap: 2.5cqw; opacity: .9; }
.sp__meta span { opacity: .5; }
.sp__foot {
  align-self: flex-start;
  margin-top: 6cqw !important;
  padding: 2.4cqw 4cqw;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 3.8cqw;
  font-weight: 700;
}
.sp__sub { font-size: 5.5cqw; opacity: .8; }
.sp--statement .sp__title { font-size: 10cqw; }
.sp--note .sp__title { font-size: 7.5cqw; font-weight: 700; line-height: 1.2; }
.sp__list { margin: 2cqw 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 3.2cqw; }
.sp__list li { counter-increment: s; font-size: 6.5cqw; font-weight: 700; display: flex; gap: 4cqw; align-items: baseline; }
.sp__list li::before { content: counter(s, decimal-leading-zero); font-size: 3.6cqw; opacity: .5; font-weight: 400; }

.sp--media { background: #000; }
.sp__blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(28px) brightness(.55); }
.sp__img, .sp__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.story-text {
  position: absolute;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 84cqw;
  padding: 1.5cqw 3cqw;
  font-size: 7.5cqw;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.story-text--dark { color: #17171C; text-shadow: none; }
.story-text[hidden] { display: none; }
.story-text--edit {
  min-width: 30cqw;
  outline: none;
  cursor: move;
  -webkit-user-select: text;
  user-select: text;
  border-radius: 2cqw;
  touch-action: none;
}
.story-text--edit:focus { cursor: text; background: rgba(0, 0, 0, 0.12); }
.story-text--edit:empty::before { content: attr(data-placeholder); opacity: .55; }

/* ---------- Viewer ---------- */

.sv {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity .18s ease;
  -webkit-user-select: none;
  user-select: none;
}
.sv.is-open { opacity: 1; }
.sv.is-closing { opacity: 0; }
.sv__backdrop { position: absolute; inset: 0; background: #0B0B0E; opacity: var(--sv-fade, 1); }
body.has-overlay { overflow: hidden; }

.sv__card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  touch-action: none;
  container-type: inline-size;
  transition: transform .2s ease;
}
.sv.is-open .sv__card { animation: sv-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes sv-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

.sv__stage { position: absolute; inset: 0; }
.sv__stage.is-switching { animation: sv-switch .22s ease; }
@keyframes sv-switch { from { opacity: .3; } to { opacity: 1; } }

.sv__chrome {
  position: absolute;
  inset: 0 0 auto 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 24px;
  background: linear-gradient(rgba(0, 0, 0, 0.42), transparent);
  transition: opacity .15s ease;
  pointer-events: none;
}
.sv__chrome > * { pointer-events: auto; }
.sv.is-holding .sv__chrome,
.sv.is-holding .sv__foot { opacity: 0; }

.sv__bars { display: flex; gap: 3px; }
.sv__bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); overflow: hidden; }
.sv__bar i { display: block; height: 100%; background: #FFFFFF; transform-origin: left; transform: scaleX(0); }

.sv__head { display: flex; align-items: center; gap: 10px; padding: 10px 0 0 4px; }
.sv__avatar { width: 32px; height: 32px; font-size: 12px; }
.sv__avatar.avatar--initials { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.sv__who { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.sv__name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv__time { font-size: 13px; opacity: .7; white-space: nowrap; }
.sv__tools { display: flex; align-items: center; }
.sv__tool {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: #FFFFFF;
}
.sv__tool svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }

.sv__foot {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
  transition: opacity .15s ease;
}
.sv__reply { display: flex; align-items: center; gap: 4px; }
.sv__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-full);
  background: transparent;
  color: #FFFFFF;
  font-size: var(--fs-field);
  outline: none;
}
.sv__input::placeholder { color: rgba(255, 255, 255, 0.75); }
.sv__input:focus { border-color: #FFFFFF; background: rgba(0, 0, 0, 0.25); }
.sv__icon { width: 44px; height: 44px; display: grid; place-items: center; color: #FFFFFF; }
.sv__icon svg { width: 24px; height: 24px; }
.sv__heart-on { display: none; color: #FF3B5C; }
.sv__icon.is-liked .sv__heart-on { display: block; }
.sv__icon.is-liked .sv__heart-off { display: none; }
.sv__icon.is-popping svg { animation: sv-pop .35s ease; }
@keyframes sv-pop { 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.sv__activity { display: inline-flex; align-items: center; gap: 8px; padding: 10px 6px; font-size: 13px; opacity: .9; }
.sv__activity svg { width: 18px; height: 18px; }

/* Options sheet inside the card */
.sv__sheet {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.45);
  animation: sv-switch .15s ease;
}
.sv__sheet[hidden] { display: none; }
.sv__sheet-panel {
  width: 100%;
  margin: 8px;
  margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  padding: 6px;
  border-radius: 16px;
  background: #1D1D22;
  display: flex;
  flex-direction: column;
}
.sv__sheet-title { margin: 10px 12px 6px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.sv__sheet-btn {
  height: 48px;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 15px;
}
.sv__sheet-btn + .sv__sheet-btn { box-shadow: 0 -0.5px 0 rgba(255, 255, 255, 0.1); border-radius: 0 0 12px 12px; }
.sv__sheet-btn--danger { color: #FF6B5E; font-weight: 700; }

/* Desktop chrome around the card */
.sv__close, .sv__nav { display: none; }

@media (min-width: 768px) {
  .sv__card {
    width: auto;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-width: calc(100vw - 160px);
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    flex: none;
  }
  .sv__tool--close { display: none; }
  .sv__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    color: #FFFFFF;
  }
  .sv__close svg { width: 24px; height: 24px; }
  .sv__nav {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    color: #17171C;
    flex: none;
  }
  .sv__nav svg { width: 16px; height: 16px; }
  .sv__sheet { align-items: center; }
  .sv__sheet-panel { margin: 0 24px; }
}

@media (hover: hover) {
  .sv__tool:hover, .sv__close:hover { background: rgba(255, 255, 255, 0.12); }
  .sv__nav:hover { background: #FFFFFF; }
  .sv__sheet-btn:hover { background: rgba(255, 255, 255, 0.06); }
}

/* ---------- Composer ---------- */

.sc__head {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 8px 24px;
  background: linear-gradient(rgba(0, 0, 0, 0.35), transparent);
}
.sc__spacer { flex: 1; }
.sc__aa { font-size: 17px; font-weight: 900; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.sc__foot {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}
.sc__avatar { width: 32px; height: 32px; font-size: 12px; }
.sc__avatar.avatar--initials { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.sc__as { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 17px; }
.sc__as span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc__as small { font-size: 12px; opacity: .7; }
.sc__post {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  color: #17171C;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.sc__post:disabled { opacity: .45; cursor: default; }

/* ---------- Add sheet ---------- */

.story-sheet {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 10, 14, 0);
  transition: background-color .2s ease;
}
.story-sheet.is-open { background: rgba(10, 10, 14, 0.4); }
.story-sheet__panel {
  width: 100%;
  max-width: 420px;
  margin: 8px;
  margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  padding: 8px 0;
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-float);
  transform: translateY(16px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.story-sheet.is-open .story-sheet__panel { transform: none; opacity: 1; }
.story-sheet__title { margin: 8px 16px 6px; font-size: 13px; font-weight: 700; color: var(--color-ink-muted); }
.story-sheet__opt { border-radius: 0; }
.story-sheet__cancel {
  width: calc(100% - 16px);
  height: 44px;
  margin: 8px 8px 0;
  border-radius: var(--radius-md);
  background: var(--color-field);
  color: var(--color-ink);
  font-weight: 700;
}
@media (min-width: 768px) {
  .story-sheet { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sv, .sv__card, .story-sheet, .story-sheet__panel { transition: none; animation: none; }
}

/* Your empty tile with initials: show only the plus */
.story-tile--own.is-empty .avatar--initials { color: transparent; }

/* Full screen (browser bars hidden): the viewer owns the whole display */
.sv:fullscreen, .wv:fullscreen { width: 100vw; height: 100vh; }
.sv:fullscreen .sv__backdrop { opacity: 1; }
.sv::backdrop, .wv::backdrop { background: #000; }

/* Author = one link to the profile (avatar + name), like Instagram */
.sv__author { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; margin: -6px 0 -6px -6px; padding: 6px; border-radius: 12px; }
.sv__author[data-act] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sv__author[data-act]:active { opacity: .7; }
.sv__author[data-act]:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 0; }
.sv__author .sv__who { flex: 0 1 auto; }
.sv__card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.sv__card input { -webkit-user-select: text; user-select: text; }

/* ---------- Instagram-size circles ----------
   Phone: ~86 px ring on a 92 px column (as in Instagram's tray); desktop a little smaller. */
.story-tile { --tile: 92px; --ring-size: 86px; }
.story-tile__btn { width: var(--tile); gap: 5px; padding: 4px 0 2px; }
.story-ring { --ring: var(--ring-size); padding: 3px; }
.story-gap { padding: 3px; position: relative; z-index: 1; }
.story-avatar { font-size: 24px; }
.story-tile.is-seen .story-ring { padding: 1.5px; }
.story-tile.is-seen .story-gap { padding: 4.5px; }
.stories__list { gap: 3px; padding: 0 10px; }
.story-name { font-size: 12.5px; line-height: 16px; -webkit-line-clamp: 1; }
.stories__arrow { top: calc(4px + var(--ring-size, 86px) / 2 - 14px); }
@media (min-width: 1024px) {
  .story-tile { --tile: 84px; --ring-size: 76px; }
  .story-avatar { font-size: 21px; }
  .stories__arrow { top: 28px; }
}

/* Your circle: the photo stays bright, a "+" sits on its edge (no dimming), with or without a story */
.story-add-overlay { display: none; }
.story-plus {
  top: calc(4px + var(--ring-size) - 26px);
  left: calc((var(--tile) - var(--ring-size)) / 2 + var(--ring-size) - 26px);
  width: 28px; height: 28px;
  box-shadow: 0 0 0 3px var(--color-bg);
  transition: transform .15s ease;
}
.story-plus svg { width: 13px; height: 13px; }
.story-plus:active { transform: scale(.9); }

/* ---------- A story you just posted ---------- */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 360deg; }

.st-fly { position: fixed; z-index: 160; pointer-events: none; overflow: hidden; border-radius: 18px; transform-origin: 50% 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); will-change: transform, clip-path; }
.st-fly__slide { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }

/* while it flies: the circle waits, slightly drawn in */
.story-tile.is-arriving .story-ring { background: transparent; }
.story-tile.is-arriving .story-avatar { transform: scale(.92); transition: transform .3s ease; }
.story-tile.is-arriving .story-plus { transform: scale(0); }

/* on landing: the ring draws itself around, the circle pops, a soft glow rings out */
.story-tile.is-just-posted .story-ring { background: transparent; animation: st-pop .55s cubic-bezier(.34, 1.56, .64, 1) .62s both; }
.story-tile.is-just-posted .story-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--brand-to), var(--brand-from), #FFD27A, var(--brand-from), var(--brand-to));
  -webkit-mask: conic-gradient(from -90deg, #000 var(--sweep), transparent 0);
          mask: conic-gradient(from -90deg, #000 var(--sweep), transparent 0);
  animation: st-sweep .75s cubic-bezier(.65, 0, .35, 1) both;
}
.story-tile.is-just-posted .story-ring::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
  animation: st-glow 1.1s ease-out .6s both;
}
.story-tile.is-just-posted .story-avatar { animation: st-settle .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.story-tile.is-just-posted .story-plus { animation: st-plus .45s cubic-bezier(.34, 1.56, .64, 1) .95s both; }
.story-tile.is-just-posted .story-name { animation: st-name .5s ease .7s both; }

@keyframes st-sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes st-pop { 0% { transform: scale(1); } 45% { transform: scale(1.09); } 100% { transform: scale(1); } }
@keyframes st-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 91, 93, .55), 0 0 0 0 rgba(255, 154, 107, .35); }
  100% { box-shadow: 0 0 0 14px rgba(255, 91, 93, 0), 0 0 0 26px rgba(255, 154, 107, 0); }
}
@keyframes st-settle { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes st-plus { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes st-name { 0% { opacity: .2; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .story-tile.is-just-posted .story-ring, .story-tile.is-just-posted .story-ring::before, .story-tile.is-just-posted .story-ring::after,
  .story-tile.is-just-posted .story-avatar, .story-tile.is-just-posted .story-plus, .story-tile.is-just-posted .story-name { animation: none; }
  .story-tile.is-just-posted .story-ring { background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); }
}

/* Your circle without a story fills the whole ring (Instagram), and "+" sits ON the photo's edge, over it */
.story-tile.is-empty .story-ring, .story-tile.is-empty .story-gap { padding: 0; background: none; }
.story-plus {
  top: calc(4px + var(--ring-size) * .81 - 14px);
  left: calc((var(--tile) - var(--ring-size)) / 2 + var(--ring-size) * .81 - 14px);
  z-index: 2;
}

/* A story on someone's avatar anywhere in the app (stories.js rings): brand ring = new, quiet line = seen; tap opens it */
.has-story { outline: 2.5px solid var(--brand-from); outline-offset: 2px; cursor: pointer; transition: outline-color .2s ease, outline-offset .15s ease; }
.has-story.is-story-seen { outline-width: 1.5px; outline-color: var(--color-line-strong); }
@media (hover: hover) { .has-story:hover { outline-offset: 3px; } }
.has-story:focus-visible { outline-color: var(--color-ink); }
.pf__heroAv { display: inline-grid; place-items: center; text-align: center; line-height: 1; letter-spacing: 0; font-weight: 700; vertical-align: middle; width: .9em; height: .9em; min-width: 44px; min-height: 44px; margin: 0 .3em .12em 0; font-size: 14px; }

/* ---------- Istaknuto (highlights) under the bio — Instagram's row ---------- */
.hlr { margin: 4px 0 6px; }
@media (min-width: 640px) { .hlr { margin: 14px 0 10px; } }
.hlr__list { display: flex; gap: 14px; margin: 0; padding: 4px 16px 6px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.hlr__list::-webkit-scrollbar { display: none; }
.hlr__item { flex: none; scroll-snap-align: start; }
.hlr__btn { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--color-ink); cursor: pointer; border-radius: var(--radius-md); -webkit-touch-callout: none; user-select: none; }
.hlr__ring { width: 64px; height: 64px; padding: 3px; border-radius: var(--radius-full); box-shadow: 0 0 0 1px var(--color-line-strong); transition: transform .15s ease, box-shadow .2s ease; }
.hlr__cover { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; background: var(--color-field); color: var(--color-ink-muted); }
.hlr__cover > img, .hlr__cover > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hlr__cover .icon { width: 20px; height: 20px; }
.hlr__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; }
.hlr__item--new .hlr__ring { box-shadow: 0 0 0 1px var(--color-line-strong), 0 0 14px -4px var(--color-accent); }
.hlr__item--new .hlr__cover { background: transparent; color: var(--color-ink); }
.hlr__item--new .hlr__name { color: var(--color-ink-muted); }
.hlr__item.is-empty { opacity: .5; }
@media (hover: hover) { .hlr__btn:hover .hlr__ring { transform: scale(1.04); box-shadow: 0 0 0 1px var(--color-accent), 0 0 16px -4px var(--color-accent); } }
.hlr__btn:focus-visible { outline: none; }
.hlr__btn:focus-visible .hlr__ring { box-shadow: 0 0 0 2px var(--color-accent); }
@media (min-width: 640px) { .hlr__list { gap: 22px; margin: -8px -14px; padding: 12px 14px 10px; scroll-padding-inline: 14px; } .hlr__btn { width: 84px; } .hlr__ring { width: 77px; height: 77px; } }

/* text stories as small squares */
.hl-txt { display: grid; place-items: center; width: 100%; height: 100%; padding: 6px; font-size: 9px; line-height: 11px; font-weight: 700; text-align: center; color: #fff; background: linear-gradient(135deg, var(--brand-from, #5B5BD6), var(--brand-to, #FF5B5D)); overflow: hidden; word-break: break-word; }

/* Editor sheet */
.hl-namef { margin: 4px 0 16px; }
.hl-pickhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hl-pickhead b { font-size: 15px; }
.hl-pickhead small { color: var(--color-accent-text); font-weight: 700; font-size: 13px; }
.hl-hint { margin: 4px 0 12px; font-size: 13px; line-height: 18px; color: var(--color-ink-muted); }
.hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .hl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hl-cell { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; max-width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--color-field); cursor: pointer; }
.hl-cell > img, .hl-cell > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-cell .hl-txt { font-size: 12px; line-height: 15px; }
.hl-cell__d { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .38); backdrop-filter: blur(6px); }
.hl-cell__n { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .18); }
.hl-cell.is-on { box-shadow: 0 0 0 2px var(--color-accent), 0 0 18px -6px var(--color-accent); }
.hl-cell.is-on > img, .hl-cell.is-on > video, .hl-cell.is-on .hl-txt { opacity: .78; }
.hl-cell.is-on .hl-cell__n { background: var(--color-accent); box-shadow: none; }
.hl-cell__c { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--color-on-accent); background: var(--color-accent); white-space: nowrap; }
.hl-more { display: block; margin: 14px auto 0; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--color-field); color: var(--color-ink); font: inherit; font-weight: 700; cursor: pointer; }
.dsheet__foot.hl-foot { grid-template-columns: 1fr; }
.dsheet__foot.hl-foot:has(.hl-del) { grid-template-columns: auto 1fr; }
.hl-more[hidden] { display: none; }
.hl-foot .hl-del { width: 48px; padding: 0; color: var(--color-danger); background: var(--color-field); }
.hl-foot .hl-del svg { width: 18px; height: 18px; }
.hl-foot [data-save]:disabled { opacity: .45; cursor: default; }
.hl-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 8px; text-align: center; }
.hl-empty > .icon { width: 34px; height: 34px; color: var(--color-accent-text); }
.hl-empty h3 { margin: 4px 0 0; font-size: 17px; text-wrap: balance; }
.hl-empty p { margin: 0 0 8px; max-width: 34ch; font-size: 14px; line-height: 20px; color: var(--color-ink-muted); }
.hl-empty .hl-post { width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding-inline: 22px; }
.hl-post svg { width: 16px; height: 16px; flex: none; }
