:root {
  --bg: #f6f6f7;
  --ink: #171816;
  --muted: #8e8e93;
  --lime: #a3d80d;
  --chip: #f1f1f3;
  --line: rgb(0 0 0 / 6%);
  --shadow: 0 10px 28px rgb(22 22 22 / 6%);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
* {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img { max-width: 100%; -webkit-user-drag: none; }
button, .card, .hit, .saved { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #171816; outline-offset: 3px; }
.noscript { padding: 24px; font-family: sans-serif; }

.app-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}
.screen-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: inherit;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.post-frame video,
.viewer-slide video { pointer-events: none; }
.screen-scroll::-webkit-scrollbar { display: none; }
.screen.detail,
.screen.detail .screen-scroll { background: #fff; }
.is-sheet .screen,
.is-sheet .screen-scroll { overflow: hidden; }

.lists-top,
.detail-head,
.screen > .screen-title {
  position: relative;
  flex: none;
  z-index: 6;
}
.lists-top,
.screen > .screen-title { background: var(--bg); }
.detail-head { background: #fff; }
.lists-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-right: 8px;
}
.lists-top .screen-title { flex: 1; padding-right: 0; }
.lists-top .icon-hit { margin-bottom: 6px; }
.screen-title {
  margin: 0;
  padding: calc(12px + env(safe-area-inset-top)) 20px 8px;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 40px;
  font-optical-sizing: auto;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.filters {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  background: var(--bg);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip.is-on { background: var(--lime); color: #fff; }

.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 16px 20px;
}
.card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 4%);
  border-radius: 26px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.card-open { display: block; width: 100%; text-align: left; }
.card-open:active { transform: scale(0.985); }
.cover { position: relative; display: block; background: #e4e4e8; }
.cover > img, .cover > video, .cover.fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; pointer-events: none; }
.cover > video { opacity: 0; }
.cover.fallback { background: var(--c, #ff0026); }
.card-copy, .card-head { display: flex; }
.card-copy { flex-direction: column; padding: 14px 16px 0; }
.card-head { align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title {
  min-width: 0;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 36px;
  font-optical-sizing: auto;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
}
.card-head span { flex: none; padding-top: 4px; color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.3; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; padding: 0 16px 16px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e6e6ea;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #171816;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.dl:active, .btn:active, .auth:active, .next:active { transform: scale(0.98); }

.avatars { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; }
.avatars span, .avatar {
  position: relative;
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgb(0 0 0 / 18%);
}
.avatar-photo { padding: 0; background: #ececef; }
.avatar > img,
.avatars img,
.avatar > .face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
.avatars span:nth-child(1) { z-index: 3; }
.avatars span:nth-child(2) { z-index: 2; margin-top: -10px; }
.avatars span:nth-child(3) { z-index: 1; margin-top: -10px; }

.trail {
  height: 52px;
  border: 1px dashed #d0d0d4;
  border-radius: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.detail-top {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 6px) 8px 0;
  background: #fff;
}
.detail-head { background: #fff; }
.detail-tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 44px;
  height: 44px;
}
.detail-tools .add-link { transition: opacity 0.22s ease, transform 0.22s ease; }
.screen.detail.is-editing .detail-tools .add-link {
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
}
.edit-tools {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(calc(-50% + 10px));
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.screen.detail.is-editing.has-selection .edit-tools {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}
.move-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: #f3f3f5;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.move-btn:active, .title-edit:active { transform: scale(0.96); }
.detail-nav { position: relative; width: 44px; height: 44px; }
.detail-nav .icon-hit { position: absolute; inset: 0; transition: opacity 0.2s ease; }
.nav-close { opacity: 0; pointer-events: none; }
.screen.detail.is-editing .nav-back { opacity: 0; pointer-events: none; }
.screen.detail.is-editing .nav-close { opacity: 1; pointer-events: auto; }
.list-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 2px 16px 14px 20px;
}
.title-field { position: relative; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.list-title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 56px;
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.07em;
}
.title-edit {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 8px;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.title-edit .edit-glyph,
.title-edit .done-glyph { display: grid; }
.title-edit .done-glyph { display: none; }
.title-edit[aria-pressed="true"] { background: #171816; color: #fff; }
.title-edit[aria-pressed="true"] .edit-glyph { display: none; }
.title-edit[aria-pressed="true"] .done-glyph { display: grid; }
.screen.detail.is-editing .title-edit { display: none; }
.text-field { position: relative; }
.field-edit {
  position: relative;
  z-index: 3;
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgb(22 22 22 / 16%);
}
.screen.detail.is-editing .field-edit { display: grid; }
.title-field { display: flex; align-items: flex-start; gap: 14px; }
.title-field .field-edit { flex: none; margin-top: 10px; }
.field-anchor { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; }
.lede-wrap .field-edit,
.tag-wrap .field-edit { flex: none; margin-top: 0; }
.field-input {
  width: auto;
  min-width: 1.5ch;
  max-width: calc(100% - 46px);
  flex: 0 1 auto;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0 2px;
  field-sizing: content;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.field-input:focus,
.field-input:focus-visible {
  outline: 2px solid #171816;
  outline-offset: 4px;
}
.title-field .field-input {
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.07em;
}
.lede-wrap .field-input,
.tag-wrap .field-input {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  resize: none;
}
.icon-hit { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.lede-wrap { display: flex; justify-content: flex-start; margin: 8px 16px 8px 20px; }
.tag-wrap { display: flex; justify-content: flex-start; margin: 0 16px 16px 20px; }
.lede-wrap.text-field,
.tag-wrap.text-field { position: static; }
.field-anchor { position: relative; max-width: 100%; }
.lede-wrap .lede-detail { margin: 0; }
.lede-detail {
  margin: 8px 24px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}
.tag-line {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
.lede-wrap.is-empty,
.tag-wrap.is-empty { display: none; }
.screen.detail.is-editing .lede-wrap.is-empty,
.screen.detail.is-editing .tag-wrap.is-empty { display: flex; }
.text-field.is-empty .field-text { color: #b0b0b5; }
.posts { display: flex; flex-direction: column; gap: 16px; padding: 8px 16px 16px; }
.post {
  overflow: hidden;
  scroll-margin-top: 8px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 4%);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transition: opacity 0.34s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), margin-top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-frame { position: relative; background: #e4e4e8; }
.post-open { display: block; width: 100%; text-align: left; touch-action: pan-y; }
.post-open:active { transform: scale(0.992); }
.post-frame .post-open img,
.post-frame .post-open video,
.post-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e4e4e8;
}
.post-fallback {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(70% 80% at 100% 0%, rgb(255 255 255 / 32%), transparent 50%),
    linear-gradient(145deg, var(--c, #3e63dd), #171816 78%);
}
button:disabled { opacity: 0.55; }
.post-frame .avatar { position: absolute; top: 10px; left: 10px; z-index: 2; width: 32px; height: 32px; }
.mini-dl, .media-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(23 24 22 / 82%);
  color: #fff;
}
.mini-dl {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pick-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(23 24 22 / 28%);
  box-shadow: 0 1px 6px rgb(0 0 0 / 24%);
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease, border-color 0.18s ease;
}
.pick-dot[aria-pressed="true"] {
  background: #171816;
  border-color: #171816;
}
.pick-dot[aria-pressed="true"]::after {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}
.screen.detail.is-editing .mini-dl {
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
}
.screen.detail.is-editing .pick-dot {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.screen.detail.is-editing .post.is-picked .post-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(23 24 22 / 16%);
  pointer-events: none;
}
.mini-dl[aria-busy="true"] { opacity: 1; }
.mini-dl[aria-busy="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 32%);
  border-top-color: #fff;
  border-right-color: #fff;
  animation: spin 0.7s linear infinite;
  pointer-events: none;
}
.media-controls {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.media-controls[hidden] { display: none; }
.post-copy { display: flex; flex-direction: column; padding: 14px 16px 16px; }
.post-copy-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.post-copy strong { min-width: 0; overflow-wrap: anywhere; font-size: 16px; letter-spacing: -0.02em; }
.post-copy button { flex: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.post-note {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease, margin 0.32s ease;
}
.post-note.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.post-note > div { overflow: hidden; min-height: 0; }
.note-body { display: flex; align-items: flex-start; gap: 8px; }
.post-note p { flex: 1; margin: 0; color: #3a3a3c; font-size: 15px; line-height: 1.45; }
.copy-note {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: -6px -6px -6px 0;
  color: var(--muted);
}
.screen.detail.is-editing .copy-note { display: none; }
.fallback-copy { position: relative; z-index: 1; }
.fallback-copy strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.fallback-copy em { display: block; margin-top: 4px; font-size: 13px; font-style: normal; opacity: 0.85; }
.viewer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0c0c;
}
.viewer-close {
  position: absolute;
  z-index: 2;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  color: #fff;
}
.viewer-stage {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}
.viewer-track {
  display: flex;
  height: 100%;
  transform: translateX(calc(var(--i) * -100%));
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.viewer-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.viewer-slide img, .viewer-slide video { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.viewer-stage .media-controls { bottom: calc(env(safe-area-inset-bottom) + 64px); left: 16px; }
.viewer-count {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.quiet { margin: 28px 0 12px; text-align: center; }
.screen.detail .screen-scroll.is-void {
  display: flex;
  flex-direction: column;
}
.void-gap { flex: 1 1 0; min-height: 0; }
.screen.detail .screen-scroll.is-void .empty {
  flex: none;
  padding: 0 28px;
}
.screen.detail .screen-scroll.is-void .quiet { margin: 0 0 28px; }
.quiet button { color: var(--muted); font-size: 14px; font-weight: 600; }
.quiet button + button { margin-left: 18px; }

.detail-dock {
  display: grid;
  flex: none;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  transition: grid-template-rows 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.detail-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  min-height: 0;
  margin-top: auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.24s ease;
}
.detail-dock > .detail-bar { margin-top: 0; }
.screen.detail.is-editing + .detail-dock { grid-template-rows: minmax(0, 0fr); }
.screen.detail.is-editing + .detail-dock > .detail-bar {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.detail-bar .icon-btn { width: 52px; height: 52px; }
.detail-bar .dl { flex: 1; height: 52px; font-size: 16px; }
.detail-bar.is-solo { justify-content: center; }
.detail-bar.is-solo .dl { flex: none; min-width: 210px; }

.tabbar {
  display: grid;
  flex: none;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: calc(env(safe-area-inset-bottom) + 4px);
}
.tabbar button { display: grid; place-items: center; height: 52px; color: #b0b0b5; }
.tabbar button[aria-current="page"] { color: var(--ink); }

.search {
  width: calc(100% - 32px);
  height: 48px;
  margin: 8px 16px 12px;
  padding: 0 16px 0 42px;
  border: 0;
  border-radius: 14px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") 14px 50% no-repeat;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
  font-size: 16px;
}
.hero-actions, .profile-actions { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 16px; }
.group-label {
  margin: 10px 20px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hit, .saved {
  display: flex;
  width: calc(100% - 32px);
  margin: 0 16px 8px;
  padding: 12px 14px;
  text-align: left;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 4%);
  cursor: pointer;
}
.hit { flex-direction: column; align-items: flex-start; gap: 2px; }
.hit b, .saved b { display: block; color: var(--ink); font-size: 16px; letter-spacing: -0.02em; }
.hit span, .saved span { color: var(--muted); font-size: 13px; }
.saved-list { display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 20px; }
.saved {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
}
.saved img, .saved video, .saved .ph { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.saved .ph { display: grid; place-items: center; color: #fff; font-weight: 700; }

.profile-head { display: flex; flex-direction: column; gap: 6px; padding: calc(18px + env(safe-area-inset-top)) 20px 8px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #171816;
  color: var(--lime);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.profile-head h1 { margin: 8px 0 0; font-size: 34px; letter-spacing: -0.045em; }
.profile-head p, .profile-note { margin: 0; color: var(--muted); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
}
.stats div { padding: 18px 8px; text-align: center; }
.stats div + div { border-left: 1px solid #f0f0f2; }
.stats strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.stats span { color: var(--muted); font-size: 13px; }
.profile-note { margin: 0 24px 16px; font-size: 14px; line-height: 1.45; text-align: center; }
.row-btn { height: 48px; border-radius: 14px; background: #fff; font-size: 15px; font-weight: 600; }
.row-btn.danger { color: #a33b32; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 28px;
  text-align: center;
}
.empty h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.empty p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.empty .btn { max-width: 260px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}
.btn.primary { background: #171816; color: #fff; }
.btn.ghost { background: #f3f3f5; color: var(--ink); }
.hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.hint.center { margin-top: 4px; text-align: center; }

.backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  background: rgb(0 0 0 / 32%);
  animation: fade 0.2s ease;
}
.panel {
  width: 100%;
  max-height: min(92dvh, 100%);
  padding: 8px 18px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  animation: rise 0.46s cubic-bezier(0.16, 0.84, 0.28, 1);
}
.backdrop.is-still,
.panel.is-still { animation: none; }
.recent-summary.is-in { animation: summary-in 0.42s cubic-bezier(0.16, 0.84, 0.28, 1); }
.handle { width: 36px; height: 4px; margin: 6px auto 12px; border-radius: 99px; background: #e1e1e4; }
.panel h2 { margin: 4px 0 12px; font-size: 22px; letter-spacing: -0.03em; }
.share-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 4px 0 16px;
}
.share-head h2 { flex: none; margin: 0; }
.share-head .sheet-list {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel h2.display {
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.recent-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 8px 0 18px;
}
.recent-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f3f5;
  color: #171816;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.recent-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: #171816;
}
.recent-count b {
  display: inline-block;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.recent-count.is-in b,
.recent-pills.is-in {
  animation: count-in 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.recent-count span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.purge-count { margin: 2px 0 22px; }
.dest-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.dest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  background: #f3f3f5;
  text-align: left;
}
.dest-row:active { transform: scale(0.985); }
.dest-row span {
  min-width: 0;
  overflow: hidden;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dest-row em { flex: none; color: var(--muted); font-size: 13px; font-style: normal; font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 14px; }
.sheet-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.panel .upload-field { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: #6b6b70; font-size: 13px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #f3f3f5;
  padding: 14px 16px;
  font-size: 16px;
}
.field input { height: 52px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder, .search::placeholder { color: #b0b0b5; }
.color-row { display: flex; align-items: center; gap: 12px; }
.swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--swatch, #ff0026);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
}
.swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch, #171816); }
.swatch.spectrum {
  background: conic-gradient(#ff0026, #e66e2f, #ffe14a, #3ddc57, #00b9ff, #7a5cff, #ff0026);
}
.swatch.spectrum input {
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list:empty { display: none; }
.tag-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f3f5;
  color: #171816;
  font-size: 14px;
  font-weight: 600;
}
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f2f4;
  font-size: 13px;
  font-weight: 700;
}
.pick.caps span { letter-spacing: 0.04em; text-transform: uppercase; }
.pick input:checked + span { background: var(--lime); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid #171816; outline-offset: 2px; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; min-width: 0; }
.link-row button {
  flex: none;
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: #171816;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.file-btn { position: relative; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f3f5;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-error { min-height: 1.2em; margin: 0; color: #c2413a; font-size: 13px; font-weight: 600; }
.in-list { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.sheet-list {
  margin: 0 0 16px;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.sheet-note { margin: 8px 0; color: #3a3a3c; font-size: 15px; line-height: 1.45; }
.url-box {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f3f5;
  color: #3a3a3c;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.sheet-preview { display: grid; gap: 8px; margin-bottom: 8px; }
.sheet-preview img, .sheet-preview video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: #e4e4e8; }
.media-slot {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e4e4e8;
}
.sheet-preview .media-slot {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}
.sheet-preview .media-slot img,
.sheet-preview .media-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
}
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.text-danger { padding: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; width: auto; }
a.btn { text-decoration: none; }

.privacy { padding: 8px 20px calc(32px + var(--sab, env(safe-area-inset-bottom, 0px))); }
.privacy h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.045em;
}
.privacy h2 { margin: 22px 0 8px; font-size: 17px; letter-spacing: -0.02em; }
.privacy p { margin: 0 0 10px; color: #3a3a3c; font-size: 16px; line-height: 1.45; }
.offline {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: #f6f6f7;
  text-align: center;
}
.offline h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.offline p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.offline .btn { width: auto; min-width: 160px; margin-top: 18px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #171816;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  animation: toast-in 0.2s ease;
}

.ob {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ob-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.38s ease;
}
.ob-bg.is-on { opacity: 1; }
.sheet {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  max-height: calc(100% - var(--sat, env(safe-area-inset-top, 0px)) - 16px);
  margin-top: auto;
  padding: 36px 28px calc(18px + var(--sab, env(safe-area-inset-bottom, 0px)));
  overflow: hidden;
  background: #fff;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -12px 40px rgb(0 0 0 / 6%);
}
.sheet-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.sheet-body.is-auth { justify-content: flex-start; }
.sheet.is-login { padding-top: 60px; }
.sheet h1.ob-brand {
  margin: 0 0 52px;
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 84px;
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-align: center;
}
.ob-brand .mark::after { bottom: -0.1em; }
.sheet h1 {
  margin: 0;
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
}
.sheet h1 .line { display: block; }
.mark { position: relative; display: inline-block; }
.mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.02em;
  left: 0;
  height: 0.16em;
  border-radius: 999px;
  background: var(--lime);
  transform: scaleX(0) rotate(-1.5deg);
  transform-origin: left center;
}
.mark.is-drawn::after {
  transform: scaleX(1) rotate(-1.5deg);
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tw { opacity: 0; }
.tw.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ob-bg { transition: none; }
  .tw { opacity: 1; }
  .mark::after { transform: scaleX(1) rotate(-1.5deg); }
}
.lede {
  max-width: 30ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}
.sheet-foot {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  flex: none;
  align-items: center;
  padding-top: 18px;
}
.dots { display: flex; gap: 2px; align-items: center; justify-content: center; }
.dots button { display: grid; place-items: center; width: 18px; height: 18px; background: transparent; }
.dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d4d4d8; }
.dots button.is-on::after { width: 8px; height: 8px; background: #171816; }
.ob-back, .next, .ob-slot {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
}
.ob-back { justify-self: start; background: #f3f3f5; color: #171816; }
.ob-back.is-off { visibility: hidden; }
.next { justify-self: end; background: #171816; color: #fff; }
.auth-stack { display: flex; flex-direction: column; gap: 12px; }
.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
}
.auth.google { border: 1.5px solid #e4e4e7; background: #fff; color: #171816; }
.auth.apple { background: #111; color: #fff; }

.upload-field { margin: 0 16px; }
.upload-field input {
  height: 52px;
  border: 1.5px solid #171816;
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
}
.upload-stage .upload-actions,
.upload-stage .tasks-panel {
  display: grid;
  transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}
.upload-stage .upload-actions { grid-template-rows: 0fr; opacity: 0; }
.upload-stage .tasks-panel { grid-template-rows: 1fr; opacity: 1; }
.upload-stage.is-pasted .upload-actions { grid-template-rows: 1fr; opacity: 1; }
.upload-stage.is-pasted .tasks-panel { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.upload-stage .clip { overflow: hidden; min-height: 0; }
.upload-actions .clip { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 0; }
.screen[data-route="subir"] { display: flex; flex-direction: column; }
.upload-stage { display: flex; flex-direction: column; min-height: 0; }
.upload-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 0;
}
.upload-hint { margin: 0 28px; text-align: center; font-size: 16px; line-height: 1.4; }
.tasks-empty { margin: 14px 20px 0; }
.tasks-title { margin: 16px 20px 8px; }
.chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip.plus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  background: transparent;
  border: 1px dashed #d0d0d4;
}
.chip.plus svg { width: 16px; height: 16px; }
.tasks { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 20px; }
.task {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border-radius: 16px;
}
button.task { cursor: pointer; }
button.task:active { transform: scale(0.99); }
.task b { display: block; overflow-wrap: anywhere; font-size: 15px; letter-spacing: -0.02em; }
.task-copy span { color: var(--muted); font-size: 13px; }
.task-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #d0d0d4;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.task.is-queued .task-mark, .task.is-downloading .task-mark {
  border-color: #a3d80d;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.task.is-ready .task-mark { border-color: #171816; background: #171816; color: #fff; }
.task.is-error { grid-template-columns: 28px minmax(0, 1fr) auto; }
.task.is-error .task-mark { border-color: #c2413a; color: #c2413a; }
.task-retry {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f3f5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.task-retry:active { transform: scale(0.97); }
.status-pill {
  position: absolute;
  left: 16px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e6e6ea;
  color: #171816;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 8px 20px rgb(22 22 22 / 8%);
  animation: toast-in 0.22s ease;
}
.status-pill.is-bad { color: #c2413a; }
.status-dots { display: inline-flex; gap: 4px; align-items: center; }
.status-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00b9ff;
  animation: status-dot 0.9s ease-in-out infinite;
}
.status-dots i:nth-child(1) { background: #ff0026; }
.status-dots i:nth-child(2) { background: #e66e2f; }
.status-dots i:nth-child(3) { background: #00b9ff; }
.status-dots i:nth-child(2) { animation-delay: 0.15s; }
.status-dots i:nth-child(3) { animation-delay: 0.3s; }
.account-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 4px 16px 18px;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
}
.account-photo {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #171816;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.account-photo img, .account-photo .face { width: 100%; height: 100%; object-fit: cover; }
.account-card strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.account-card span { color: var(--muted); font-size: 14px; }

.cover.is-pending::before,
.cover.is-missing::before,
.post-frame.is-pending::before,
.post-frame.is-missing::before,
.viewer-slide.is-pending::before,
.viewer-slide.is-missing::before,
.media-slot.is-pending::before,
.media-slot.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #e4e4e8;
  pointer-events: none;
}
.cover.is-pending,
.post-frame.is-pending,
.viewer-slide.is-pending,
.media-slot.is-pending { overflow: hidden; }
.cover.is-pending .avatars,
.post-frame.is-pending .avatar { z-index: 3; }
.cover.is-pending::after,
.post-frame.is-pending::after,
.viewer-slide.is-pending::after,
.media-slot.is-pending::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 72%), transparent);
  transform: translateX(-140%);
  animation: media-sheen 1.15s ease-in-out infinite;
  pointer-events: none;
}
@keyframes media-sheen { to { transform: translateX(380%); } }
@keyframes count-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } }
@keyframes status-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise {
  from { transform: translateY(42px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes summary-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in { from { transform: translateX(-50%) translateY(6px); opacity: 0; } }

@media (min-width: 840px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }
  body { background: #dedee3; }
  .app-shell {
    position: relative;
    inset: auto;
    width: 390px;
    height: min(844px, 100dvh);
    margin: max(12px, calc((100dvh - 844px) / 2)) auto;
    border-radius: 32px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 18%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
