.owner-stories {
  margin: 12px 0;
}
.owner-stories > header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.owner-stories h2 {
  font-size: 18px;
  margin: 0;
}
.story-circles {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding: 8px 0;
}
.story-circle {
  min-width: 76px;
  max-width: 90px;
  background: none;
  border: 0;
  padding: 0;
  color: #f4f4fa;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.story-circle > span {
  border: 2px solid #393940;
  background: #1c1c21;
  border-radius: 50%;
  padding: 3px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 20px;
  overflow: hidden;
}
.story-circle.unseen > span {
  border-color: #ff681e;
}
.story-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.story-circle small {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 12px;
}
.story-viewer {
  padding: 0;
  background: #000;
  color: #fff;
  border: 1px solid #393940;
  border-radius: 14px;
  overflow: hidden;
  width: min(420px, calc(100vw - 16px));
  height: min(746px, calc(100dvh - 16px));
  max-height: calc(100dvh - 16px);
}
.story-viewer::backdrop {
  background: #000d;
}
.story-viewer-content {
  height: 100%;
  position: relative;
  background: #101014;
  display: flex;
  flex-direction: column;
}
.story-progress {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}
.story-progress progress {
  width: 0;
  flex: 1;
  height: 3px;
  border: 0;
  background: #ffffff50;
  border-radius: 3px;
}
.story-progress progress::-webkit-progress-bar {
  background: #ffffff50;
  border-radius: 3px;
}
.story-progress progress::-webkit-progress-value {
  background: white;
  border-radius: 3px;
}
.story-progress progress::-moz-progress-bar {
  background: white;
}
.story-viewer header {
  position: absolute;
  z-index: 3;
  left: 8px;
  right: 8px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 4px #000;
}
.story-viewer header > div {
  display: flex;
  gap: 2px;
}
.story-viewer button {
  min-height: 44px;
  min-width: 44px;
}
.story-viewer header button,
.story-next,
.story-previous {
  border: 0;
  background: #0005;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
  font-size: 18px;
}
.story-viewer header strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
}
.story-frame {
  height: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}
.story-frame > img,
.story-frame > video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.story-next,
.story-previous {
  position: absolute;
  z-index: 2;
  top: 40%;
  height: 88px;
}
.story-previous {
  left: 0;
}
.story-next {
  right: 0;
}
.story-viewer footer {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
  display: grid;
  gap: 8px;
  text-shadow: 0 1px 5px #000;
  margin: 0;
  padding: 0;
  background: transparent;
}
.story-caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  max-height: 160px;
  overflow: auto;
  font-size: 15px;
}
.story-viewer .story-action {
  padding: 8px 16px;
  border-radius: 10px;
  border: 0;
  background: #ff681e;
  color: #000;
  font-weight: 600;
  min-height: 44px;
}
.story-view-error {
  color: #ff9993;
  margin: 0;
  font-size: 13px;
}
.story-view-error:empty {
  display: none;
}
.story-feed-error:empty {
  display: none;
}
@media (max-width: 500px) {
  .story-viewer {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }
  .story-circle > span {
    width: 54px;
    height: 54px;
  }
  .story-circles {
    gap: 8px;
  }
}
