:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #262626;
  --mute: #737373;
  --line: #dbdbdb;
  --accent: #c13584;
  --accent-press: #d62976;
  --void: #fafafa;
  --rose: #c13584;
  --rose-soft: #e091b0;
  --sheet-find-min: min(72dvh, calc(var(--vvh, 100vh) - 12px));
  --sheet-find-max: min(86dvh, calc(var(--vvh, 100vh) - 12px));
  --sheet-find-min-wide: min(32dvh, calc(var(--vvh, 100vh) - 48px));
  --sheet-find-max-wide: min(80dvh, calc(var(--vvh, 100vh) - 48px));
  --sheet-action-min-wide: min(32dvh, calc(var(--vvh, 100vh) - 48px));
  --sheet-action-width: min(520px, 100%);
  --apply-ring: 5px;
}
* {
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
img, svg, video {
  -webkit-user-drag: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
html, body {
  width: 100%;
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  touch-action: pan-x pan-y;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
}
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blobs[hidden] {
  display: none !important;
}
.blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.42;
  animation: blob-float 22s ease-in-out infinite;
}
.blobs span:nth-child(1) {
  width: 58vw;
  height: 58vw;
  left: -18vw;
  top: -12vh;
  background: #feda75;
}
.blobs span:nth-child(2) {
  width: 52vw;
  height: 52vw;
  right: -16vw;
  top: 8vh;
  background: #d62976;
  animation-delay: -7s;
}
.blobs span:nth-child(3) {
  width: 48vw;
  height: 48vw;
  left: 12vw;
  bottom: -18vh;
  background: #962fbf;
  animation-delay: -13s;
}
.blobs span:nth-child(4) {
  width: 40vw;
  height: 40vw;
  right: 6vw;
  bottom: 4vh;
  background: #4f5bd5;
  animation-delay: -3s;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 8%) scale(1.08); }
}
.hall {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 48px;
}
.hall.with-feed {
  min-height: auto;
  justify-content: flex-start;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(8px + env(safe-area-inset-bottom, 0px));
}
.home-head {
  position: relative;
  width: min(720px, 100%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-head[hidden] {
  display: none !important;
}
.stage-bg {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 280px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.stage-bg[hidden] {
  display: none !important;
}
.hall.is-invite {
  min-height: 100vh;
  justify-content: center;
}
.hall.is-invite .home-head,
.hall.is-invite .local-cabs,
.hall.is-invite #album,
.hall.is-invite .tag-board,
.hall.is-invite .stage-bg {
  display: none !important;
}
.invite-panel {
  width: min(420px, 92vw);
  margin: 4px auto 0;
  text-align: center;
}
.invite-panel[hidden],
.invite-panel form[hidden],
.invite-panel div[hidden],
.invite-hey[hidden],
.invite-safari[hidden],
.invite-go[hidden] {
  display: none !important;
}
.invite-hey {
  margin: 22px 0 0;
  font-size: clamp(18px, 5.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.invite-safari {
  margin: 20px 0 0;
  font-size: 16px;
  color: var(--mute);
}
.invite-panel form {
  margin-top: 22px;
  text-align: left;
}
button.invite-go {
  margin: 28px auto 0;
  width: min(280px, 100%);
  border-radius: 999px;
  background: var(--rose);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.apple-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.apple-row input,
.apple-row textarea {
  flex: 1;
  min-width: 0;
  margin: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
  background-clip: padding-box;
}
.apple-row textarea {
  min-height: 88px;
  height: auto;
  padding: 10px 14px;
  resize: none;
  line-height: 1.4;
}
button.apple-next {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button.apple-next svg {
  width: 36px;
  height: 36px;
  display: block;
}
button.apple-next circle {
  fill: currentColor;
}
button.apple-next path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.invite-wait {
  margin-top: 28px;
  color: var(--rose);
}
.thinking-five {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 22px;
  margin: 0 0 14px;
}
.thinking-five[hidden] {
  display: none !important;
}
.thinking-five span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  animation: think-five 1.2s ease-in-out infinite;
}
.thinking-five span:nth-child(2) { animation-delay: 0.12s; }
.thinking-five span:nth-child(3) { animation-delay: 0.24s; }
.thinking-five span:nth-child(4) { animation-delay: 0.36s; }
.thinking-five span:nth-child(5) { animation-delay: 0.48s; }
@keyframes think-five {
  0%, 80%, 100% { opacity: 0.22; transform: scale(0.72); }
  40% { opacity: 1; transform: scale(1); }
}
.invite-wait-bar {
  height: 18px;
  width: 100%;
}
.invite-wait-bar .rose-bar-svg {
  width: 100%;
  height: 18px;
  display: block;
}
.home-install {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    var(--bg) 22%,
    rgba(250, 250, 250, 0.92) 33%,
    rgba(250, 250, 250, 0.35) 48%,
    rgba(250, 250, 250, 0) 66%
  );
  text-align: center;
}
.home-install[hidden] {
  display: none !important;
}
.home-install p {
  margin: 0 0 8px;
  font-size: clamp(18px, 5.4vw, 22px);
  font-weight: 600;
  color: var(--ink);
}
.home-install .invite-go {
  margin-top: 18px;
}
@media (prefers-reduced-motion: reduce) {
  .thinking-five span { animation: none; }
}
#album {
  width: min(720px, 100%);
}
.feed {
  width: min(720px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #efe8ea;
  overflow: hidden;
  color: transparent;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none;
}
.tile.tile-add {
  background: #f7f7f7;
  color: var(--mute);
  box-shadow: none;
  border: 2px dashed #c8c8c8;
}
.tile[data-work="1"] {
  pointer-events: none;
  touch-action: none;
}
.tile[data-work="1"] .tile-plus {
  flex-direction: column;
  gap: 8px;
}
.tile[data-work="1"] .hp-text,
.tile[data-work="1"] .hp-alt {
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tile .tile-plus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.tile .tile-plus svg {
  width: 36px;
  height: 36px;
  color: #8e8e8e;
}
.tile-ep {
  position: absolute;
  z-index: 2;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  min-width: 1.35em;
  padding: 3px 7px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile:link,
.tile:visited,
.tile:hover,
.tile:active {
  color: transparent;
  text-decoration: none;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.tile img.is-on {
  opacity: 1;
}
.tile-heart {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #d62976;
  filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.33));
}
.tile-heart svg {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
}
.rail-heart.is-on {
  color: #d62976;
}
.rail-heart.is-on .ins-face svg,
.rail-heart.is-on .ins-face path {
  fill: currentColor;
  stroke: none;
}
.tile-shield,
.cab-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.01);
  -webkit-touch-callout: none !important;
  -webkit-user-select: none;
}
.tile.is-video::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.tile.is-pick::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(214, 41, 118, 0.28);
  z-index: 1;
  pointer-events: none;
}
.tile.is-pick::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d62976 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M6.5 12.5l3.2 3.3 8-8.4'/></svg>") center / 16px 16px no-repeat;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
}
.tile.is-video.is-pick::after {
  border: 0;
  width: 22px;
  height: 22px;
  right: 8px;
  bottom: 8px;
  top: auto;
  filter: none;
}
.trash-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 8px;
  padding: 4px 0 8px;
}
.trash-bar button.nav-back {
  margin: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 40px;
}
.feed-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--mute);
  padding: 24px;
}
.hall.with-feed:not(.is-invite):not(.is-booting):has(.feed-empty.is-offline) {
  min-height: 100vh;
}
#album:has(.feed-empty.is-offline) {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.feed:has(.feed-empty.is-offline) {
  flex: 1;
  align-content: center;
  margin-top: 0;
}
.hall.is-invite .status {
  margin: 22px 0 0;
  font-size: clamp(18px, 5.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.profile {
  width: min(420px, 100%);
  text-align: center;
}
.rose-two {
  width: 148px;
  height: 148px;
  margin: 0 auto 28px;
  color: var(--rose);
}
.rose-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.profile h1,
.profile h1.brand {
  margin: 0;
  font-family: Unbounded, "Segoe UI", sans-serif;
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--rose);
  white-space: nowrap;
}
.hall.with-feed:not(.is-invite):not(.is-booting) .rose-two,
.hall.with-feed:not(.is-invite):not(.is-booting) h1.brand {
  display: none !important;
}
.hall.with-feed.is-booting {
  min-height: 100vh;
  justify-content: center;
  padding: 40px 20px 48px;
}
.hall.with-feed.is-booting .home-head,
.hall.with-feed.is-booting .local-cabs,
.hall.with-feed.is-booting #album,
.hall.with-feed.is-booting .tag-board,
.hall.with-feed.is-booting .stage-bg {
  display: none !important;
}
.hall.with-feed.is-booting .rose-two,
.hall.with-feed.is-booting h1.brand {
  display: block !important;
}
.hall.with-feed.is-booting .profile {
  width: auto;
}
.hall.with-feed.is-booting .status {
  margin: 22px 0 0;
  min-height: 1.5em;
  font-size: clamp(18px, 5.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hall.with-feed:not(.is-invite):not(.is-booting) .profile {
  width: min(720px, 100%);
}
.hall.with-feed:not(.is-invite):not(.is-booting) .status {
  margin: 0 0 8px;
  min-height: 0;
}
.hall.with-feed:not(.is-invite):not(.is-booting) .status:empty {
  display: none;
}
.local-cabs.solo .grid {
  grid-template-columns: 1fr;
  justify-items: center;
}
.local-cabs.solo .cab-hud {
  width: min(720px, 100%);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.local-cabs.solo .cab-wrap {
  width: min(148px, 42vw);
  flex: 0 0 auto;
  margin-inline: auto;
}
.status {
  margin: 22px 0 0;
  min-height: 1.5em;
  font-size: 15px;
  color: var(--mute);
}
.local-cabs {
  width: min(720px, 100%);
  margin: 8px auto 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  align-items: start;
}
.feed-month {
  grid-column: 1 / -1;
  margin: 18px 0 6px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.feed-month:first-child { margin-top: 0; }
.feed-sentinel {
  width: min(720px, 100%);
  height: 48px;
  margin: 0 auto;
}
.feed-hint {
  margin: 8px 0 4px;
  padding: 16px 8px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.06em;
}
.cab {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  width: 100%;
  cursor: pointer;
  touch-action: manipulation;
}
.cab-wrap {
  position: relative;
  width: min(148px, 42vw);
  overflow: visible;
}
.cab-hud {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto 8px;
}
.home-head,
.cab-hud,
.tag-board,
.feed,
.profile {
  position: relative;
  z-index: 1;
}
.hp-label {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  min-height: 22px;
}
.hp-text {
  flex: 0 0 auto;
  white-space: nowrap;
}
.hp-alt {
  position: relative;
  display: inline-grid;
  min-width: 3.5em;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}
.hp-alt[hidden] {
  display: none !important;
}
.hp-alt > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}
.hp-alt-count {
  opacity: 0;
}
.hp-alt.count-only .hp-alt-pct {
  opacity: 0;
}
.hp-alt.count-only .hp-alt-count {
  opacity: 1;
}
.hp-alt.has-two .hp-alt-pct {
  animation: hp-alt-pct 5.6s ease-in-out infinite;
}
.hp-alt.has-two .hp-alt-count {
  animation: hp-alt-count 5.6s ease-in-out infinite;
}
@keyframes hp-alt-pct {
  0%, 38%, 100% { opacity: 1; }
  50%, 88% { opacity: 0; }
}
@keyframes hp-alt-count {
  0%, 38%, 100% { opacity: 0; }
  50%, 88% { opacity: 1; }
}
.hp-check .ios-check svg {
  width: 18px;
  height: 18px;
}
.hp-think {
  height: 14px;
  margin: 0;
  gap: 5px;
}
.hp-think span {
  width: 6px;
  height: 6px;
}
.hp.is-run .hp-fill {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 48%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(180deg, #e85aa0 0%, var(--rose) 62%, #a3266b 100%);
  background-size: 220% 100%, 100% 100%;
  animation: hp-sheen 1.1s linear infinite;
}
.hp[data-kind="tag"].is-run .hp-fill {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 48%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(180deg, #f0c078 0%, #e0a04a 62%, #c4842e 100%);
}
@keyframes hp-sheen {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
.hp-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
  border-radius: 999px;
  background: #f3d6e4;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120, 40, 70, 0.12);
}
.hp-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, #e85aa0 0%, var(--rose) 62%, #a3266b 100%);
  transition: width 0.45s ease;
}
.hp[data-kind="tag"] .hp-track {
  background: #f6e2c9;
}
.hp[data-kind="tag"] .hp-fill {
  background: linear-gradient(180deg, #f0c078 0%, #e0a04a 62%, #c4842e 100%);
}
.hp-num {
  display: none;
}
.cab-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
}
.cab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--rose-soft);
}
.cab-cover.is-run .cab-ring {
  box-shadow: none;
  background: conic-gradient(
    from 210deg,
    #feda75 0deg,
    #fa7e1e 70deg,
    #d62976 140deg,
    #962fbf 210deg,
    #4f5bd5 280deg,
    #feda75 360deg
  );
  animation: ins-spin 2.8s linear infinite;
}
.cab-face {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--bg);
  overflow: hidden;
  z-index: 1;
}
.cab-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.cab-empty-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #efefef;
  font-size: 22px;
  font-weight: 600;
  color: var(--mute);
}
.cab-empty-name[hidden] {
  display: none !important;
}
.ins-icon {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 40px;
  overflow: hidden;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ins-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #c8c8c8;
  pointer-events: none;
}
.ins-icon.is-live .ins-ring,
.ins-icon.is-run .ins-ring,
.photo-rail .ins-icon .ins-ring {
  box-shadow: none;
  background: conic-gradient(
    from 210deg,
    #feda75 0deg,
    #fa7e1e 70deg,
    #d62976 140deg,
    #962fbf 210deg,
    #4f5bd5 280deg,
    #feda75 360deg
  );
}
.ins-icon.is-run .ins-ring {
  animation: ins-spin 2.4s linear infinite;
}
.ins-icon.is-run,
.settings-entry.is-run {
  pointer-events: none;
  cursor: default;
}
.rail-trash {
  touch-action: manipulation;
}
.photo-rail {
  position: fixed;
  right: max(8px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 100010;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.photo-rail[hidden] {
  display: none !important;
}
.photo-rail .ins-icon {
  pointer-events: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}
.ins-icon[hidden] {
  display: none !important;
}
.ins-face {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}
.ins-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
@keyframes ins-spin {
  to { transform: rotate(360deg); }
}
.cab-liquid {
  display: none !important;
}
.cab-liquid-legacy {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.cab-liquid[hidden] {
  display: none !important;
}
.cab-wave {
  position: absolute;
  width: 200%;
  height: 200%;
  left: -50%;
  top: calc(100% - var(--fill, 0%));
  border-radius: 42%;
  transition: top 0.55s ease;
}
.cab-wave-back {
  background: rgba(214, 41, 118, 0.38);
  animation: cab-wave-spin 11s linear infinite;
}
.cab-wave-front {
  background: rgba(193, 53, 132, 0.52);
  animation: cab-wave-spin 7s linear infinite reverse;
}
.cab-liquid.is-local .cab-wave-back {
  background: rgba(240, 192, 120, 0.42);
}
.cab-liquid.is-local .cab-wave-front {
  background: rgba(224, 160, 74, 0.56);
}
@keyframes cab-wave-spin {
  to { transform: rotate(360deg); }
}
.cab-cover > .thinking-five {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  height: 18px;
  margin: 0;
  gap: 7px;
  pointer-events: none;
}
.cab-cover > .thinking-five span {
  width: 8px;
  height: 8px;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.85));
}
.reader-name { margin: 8px 0 0; font-weight: 600; }
.hall.has-backdrop .reader-name.is-on-dark {
  color: #fff;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(0, 0, 0, 0.45);
}
.hall.has-backdrop .reader-name.is-on-light {
  color: var(--ink);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 12px rgba(255, 255, 255, 0.7);
}
.cab-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.cab-caption[hidden] {
  display: none !important;
}
.cab-caption .hp-text {
  white-space: nowrap;
}
.rose-bar-svg {
  display: block;
  width: 100%;
  height: 14px;
  overflow: visible;
}
.ios-check svg {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}
.album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.album-head h2 { margin: 0; }
.album-settings {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 8;
  flex: 0 0 34px;
}
.album-settings[hidden],
.settings-menu[hidden] {
  display: none !important;
}
.settings-catch {
  position: fixed;
  inset: 0;
  z-index: 100039;
  background: transparent;
}
.settings-catch[hidden] {
  display: none !important;
}
html.settings-open #feed {
  pointer-events: none;
}
.album-settings .settings-toggle {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.22));
}
.album-settings .settings-toggle svg {
  width: 16px;
  height: 16px;
}
.settings-menu {
  position: fixed;
  z-index: 100040;
  width: 220px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}
button.settings-entry {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
button.settings-entry:active {
  background: #f2f2f7;
}
.settings-entry .ins-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  pointer-events: none;
}
.settings-entry .ins-icon svg {
  width: 14px;
  height: 14px;
}
.settings-entry svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.trash-open .album-settings,
.trash-open .tag-board,
.trash-open .photo-rail {
  display: none !important;
}
.pswp-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pswp-video video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}
.pswp-media-wait {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--rose);
}
.pswp-media-wait[hidden] {
  display: none !important;
}
.pswp .pswp-media-wait .rose-two {
  display: block !important;
  width: 128px;
  height: 128px;
  margin: 0 0 18px;
}
.pswp-media-wait-msg {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
form { background: var(--card); color: var(--ink); padding: 28px; border-radius: 12px; }
label { display: block; margin: 16px 0 6px; font-size: 16px; }
input {
  width: 100%; font-size: 18px; padding: 12px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
}
button, .btn {
  margin-top: 20px; width: 100%; font-size: 18px; padding: 14px; border: 0;
  border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer;
  display: block; text-align: center; text-decoration: none;
}
.back,
button.back {
  display: inline-block;
  margin: 12px 0 16px;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.err { color: #ed4956; }
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
.album-bar.wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.album-bar .nav-back {
  margin: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}
.album-bar[hidden],
.back[hidden],
.local-cabs[hidden],
.tag-board[hidden] {
  display: none !important;
}
.tag-board {
  width: 100%;
  margin: 4px auto 0;
  text-align: left;
}
html.has-rail .tag-board {
  padding-right: calc(64px + env(safe-area-inset-right, 0px));
}
.mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.mode-btn {
  margin: 0;
  width: auto;
  font-family: Unbounded, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
}
.mode-find svg {
  width: 14px;
  height: 14px;
  display: block;
}
.mode-btn.is-on {
  color: #fff;
  box-shadow: none;
  background: linear-gradient(120deg, #fa7e1e 0%, #d62976 48%, #962fbf 100%);
}
button.tag-apply {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0 0 12px;
  padding: var(--apply-ring);
  border: 0;
  border-radius: 999px;
  background-color: #d62976;
  background-image: conic-gradient(
    from 210deg,
    #feda75 0deg,
    #fa7e1e 70deg,
    #d62976 140deg,
    #962fbf 210deg,
    #4f5bd5 280deg,
    #feda75 360deg
  );
  overflow: hidden;
  cursor: pointer;
  color: #fff;
}
button.tag-apply[hidden] {
  display: none !important;
}
button.tag-apply::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 200vw;
  height: 200vw;
  border-radius: 0;
  background: conic-gradient(
    from 0deg,
    #feda75 0deg,
    #fa7e1e 70deg,
    #d62976 140deg,
    #962fbf 210deg,
    #4f5bd5 280deg,
    #feda75 360deg
  );
  animation: tag-apply-spin 2.4s linear infinite;
  pointer-events: none;
}
@keyframes tag-apply-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.tag-apply-face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d62976;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tag-apply-face svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: #fff;
}
.batch-tag-sheet > .tag-picker-form {
  margin: 0 0 12px;
}
.batch-tag-sheet.is-folder {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.batch-tag-sheet.is-folder.is-folder-name > .folder-find-ask {
  display: none !important;
}
.batch-tag-sheet.is-folder > .tag-apply {
  flex: 0 0 auto;
  margin-bottom: 0;
  touch-action: manipulation;
}
.batch-tag-sheet.is-folder > .tag-apply:disabled {
  opacity: 0.45;
}
.folder-find-ask .tag-search-input {
  text-align: left;
  color: var(--mute);
  font-weight: 400;
}
.tag-picker {
  margin: 0 0 14px;
}
.tag-picker.no-search .tag-picker-form {
  display: none;
}
.tag-picker.no-search .tag-picker-suggest {
  display: none;
}
.tag-picker-chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 9px;
}
.tag-picker-chosen[hidden] {
  display: none !important;
}
.tag-picker-form,
form.tag-picker-form {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}
.tag-picker-form .tag-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.tag-picker-form .tag-search-input:focus {
  border-color: #d62976;
  outline: 2px solid rgba(214, 41, 118, 0.16);
  outline-offset: 1px;
}
.tag-picker-form button[type="submit"]:not(.tag-submit):not(.tag-apply) {
  flex: 0 0 auto;
  width: auto;
  min-width: 66px;
  height: 40px;
  margin: 0;
  padding: 8px 16px;
}
button.tag-submit {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
}
button.tag-submit:disabled {
  opacity: 1;
  cursor: default;
}
button.tag-submit:disabled svg {
  overflow: visible;
}
button.tag-submit:disabled circle {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
  r: 16.5;
}
button.tag-submit:disabled path {
  stroke: #c4c4c4;
}
button.mode-pick {
  margin-left: auto;
}
button.mode-pick[hidden] {
  display: none !important;
}
.tag-picker-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag-picker-suggest .tag-chip {
  touch-action: pan-y;
}
.tag-suggest-title {
  width: 100%;
  margin: 0 0 2px;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.tag-search-input::-webkit-search-decoration,
.tag-search-input::-webkit-search-cancel-button,
.tag-search-input::-webkit-contacts-auto-fill-button,
.tag-search-input::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  height: 0;
}
.tag-group { margin: 0 0 12px; }
button.tag-chip {
  margin: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.tag-board button.tag-head,
.tag-board button.tag-chip,
.batch-tag-sheet button.tag-chip,
.list-tag-sheet button.tag-chip,
.list-tag-sheet button.tag-head {
  margin: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.tag-board button.tag-head,
.list-tag-sheet button.tag-head {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.tag-board button.tag-chip.is-on,
.batch-tag-sheet button.tag-chip.is-on,
.list-tag-sheet button.tag-chip.is-on {
  background: linear-gradient(120deg, #fa7e1e 0%, #d62976 48%, #962fbf 100%);
  border-color: transparent;
  color: #fff;
}
.tag-board button.tag-chip.is-picked,
.batch-tag-sheet button.tag-chip.is-picked,
.list-tag-sheet button.tag-chip.is-picked {
  background: #fff4f7;
  border-color: var(--rose-soft);
  color: var(--rose);
}
.pswp-tag-sheet .tag-chip.is-lock {
  cursor: default;
  opacity: 0.88;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.list-tag-sheet .tag-row {
  margin: 0 0 16px;
}
.pswp-face-layer {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
  --face-z: 1;
}
.pswp-face-layer.is-off {
  display: none !important;
}
.pswp-face-layer,
.pswp-face-cube,
.pswp-face {
  display: none !important;
}
.pswp-face-cube {
  position: absolute;
  top: 64px;
  left: 16px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
}
.pswp-face-cube[hidden] {
  display: none !important;
}
.pswp-face-cube-name {
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fa7e1e 0%, #d62976 48%, #962fbf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pswp-face-cube input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pswp-face-cube-sw {
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.36);
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pswp-face-cube-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}
.pswp-face-cube input:checked + .pswp-face-cube-sw {
  background: linear-gradient(120deg, #fa7e1e 0%, #d62976 48%, #962fbf 100%);
}
.pswp-face-cube input:checked + .pswp-face-cube-sw::after {
  transform: translateX(20px);
}
.pswp-face {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  box-sizing: border-box;
  border: 0;
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
  overflow: visible;
  white-space: nowrap;
}
.pswp-face.is-on span {
  box-shadow: 0 0 0 2px #fff;
}
.pswp-face span {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, #fa7e1e 0%, #d62976 48%, #962fbf 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pswp-tag-sheet .tag-chip.is-on {
  background: linear-gradient(120deg, #fa7e1e 0%, #d62976 48%, #962fbf 100%);
  border-color: transparent;
}
.tag-chip-wrap {
  position: relative;
  display: inline-flex;
}
.pswp-tag-sheet .tag-chip-wrap .tag-chip,
.tag-chip-wrap .tag-chip {
  margin: 0;
}
.ins-x {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  margin: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ins-x[hidden] {
  display: none !important;
}
.pswp-face > .ins-x {
  top: -8px;
  right: -8px;
}
.pswp-tag-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: #fff;
  pointer-events: none;
}
.pswp-tag-card {
  width: 100%;
  padding: 28px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(20, 16, 18, 0) 0%, rgba(20, 16, 18, 0.82) 28%, rgba(20, 16, 18, 0.94) 100%);
  pointer-events: auto;
}
.pswp-tag-sheet.is-searching .pswp-tag-row {
  display: none;
}
.pswp-tag-sheet.is-video .pswp-tag-card {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.pswp-tag-sheet[hidden] {
  display: none !important;
}
.pswp-tag-title {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}
.pswp-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.pswp-tag-sheet .tag-chip,
.pswp-tag-add {
  margin: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.pswp-tag-add {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.pswp-tag-add.tag-picker-form .tag-search-input {
  flex: 1 1 auto;
  margin: 0;
  width: auto;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.pswp-tag-add.tag-picker-form .tag-search-input:focus {
  border-color: rgba(255, 255, 255, 0.72);
  outline-color: rgba(255, 255, 255, 0.18);
}
.pswp-tag-add .tag-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.pswp-tag-add button:not(.tag-submit) {
  margin: 0;
  width: auto;
  flex: 0 0 auto;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
}
.pswp-tag-suggest {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pswp-tag-sheet:not(.is-searching) .pswp-tag-suggest,
.pswp-tag-suggest:empty {
  display: none !important;
}
.pswp-tag-suggest button {
  margin: 0;
  width: auto;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  cursor: pointer;
}
.pswp-tag-suggest .tag-suggest-title {
  color: rgba(255, 255, 255, 0.72);
}
.pswp-tag-sheet.is-searching .pswp-tag-card {
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100% - 16px);
  margin: 8px 12px;
  overflow-y: auto;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
  -webkit-overflow-scrolling: touch;
}
.pswp-tag-sheet.is-searching .pswp-tag-suggest {
  order: 2;
  margin-top: 0;
  margin-bottom: 8px;
}
.pswp-tag-sheet.is-searching .pswp-tag-add {
  order: 3;
  flex: 0 0 auto;
}
.pswp-tag-sheet.is-searching .pswp-tag-title,
.pswp-tag-sheet.is-searching .tag-suggest-title {
  color: var(--mute);
}
.pswp-tag-sheet.is-searching .tag-chip,
.pswp-tag-sheet.is-searching .pswp-tag-suggest button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.pswp-tag-sheet.is-searching .pswp-tag-add.tag-picker-form .tag-search-input {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.pswp-tag-sheet.is-searching .pswp-tag-add .tag-search-input::placeholder {
  color: var(--mute);
}
/* A fixed shell follows the visible viewport; only the white card moves, never
   the PhotoSwipe slide underneath it. */
.kb-up .pswp-tag-sheet {
  position: fixed;
  top: var(--vv-top, 0px);
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--vvh, 100vh);
  pointer-events: auto;
  overflow: visible;
  padding: 0;
  background: transparent;
}
.kb-up .pswp-face-cube,
.kb-up .photo-rail {
  display: none !important;
}
.kb-up .blobs {
  display: none;
}
.list-tag-sheet .tag-picker {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.list-tag-sheet .tag-picker-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.list-tag-sheet .tag-picker-suggest {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  align-content: flex-start;
}
.list-tag-sheet .tag-picker-form {
  order: 3;
  flex: 0 0 auto;
}
.tag-modal-open,
.tag-modal-open body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
  overscroll-behavior: none;
}
.kb-up .hall.is-invite {
  justify-content: flex-start;
  min-height: 0;
  height: calc(100vh - var(--kb, 0px));
  max-height: calc(100vh - var(--kb, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
}
.kb-up .hall.is-invite .rose-two {
  display: none;
}
.tag-chip-wrap.is-ghost {
  opacity: 0.5;
}
.batch-tag-mask {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  touch-action: none;
  overscroll-behavior: none;
}
.batch-tag-mask[hidden] {
  display: none !important;
}
.batch-tag-sheet {
  width: var(--sheet-action-width);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
  -webkit-overflow-scrolling: touch;
}
.batch-tag-sheet.is-wait {
  text-align: center;
}
.wait-pct {
  margin: 8px 0 4px;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.batch-tag-sheet.is-wait .thinking-five {
  margin: 12px 0 4px;
}
.kb-up .batch-tag-mask {
  top: var(--vv-top, 0px);
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--vvh, 100vh);
  padding: 8px 12px;
}
.kb-up .batch-tag-sheet {
  max-height: calc(100% - 16px);
}
.batch-tag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.batch-tag-head p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.retag-choice-sheet > .ask-skip.retag-cover-all {
  margin: 0 0 14px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
}
.retag-choice-sheet > .tag-apply {
  margin: 0;
}
.retag-confirm-mask {
  z-index: 200001;
}
button.batch-tag-close {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #f2f2f7;
  color: transparent;
  font-size: 0;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}
button.batch-tag-close::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
.list-tag-mask {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.list-tag-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: var(--sheet-find-min);
  max-height: var(--sheet-find-max);
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
}
.list-tag-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.list-tag-sheet .batch-tag-head {
  flex: 0 0 auto;
}
.batch-tag-sheet .ask-skip {
  margin: 0;
  padding: 4px 0;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 600px) {
  .batch-tag-mask {
    align-items: center;
    padding: 24px 20px;
  }
  .list-tag-mask {
    align-items: center;
    padding: 24px 20px;
  }
  .list-tag-sheet {
    width: min(720px, 100%);
    min-height: var(--sheet-find-min-wide);
    max-height: var(--sheet-find-max-wide);
    border-radius: 22px;
    padding: 18px 20px 20px;
  }
  .batch-tag-sheet:not(.list-tag-sheet) {
    min-height: var(--sheet-action-min-wide);
    display: flex;
    flex-direction: column;
  }
  .batch-tag-sheet:not(.list-tag-sheet) .tag-apply {
    margin-top: auto;
  }
}
@media (min-width: 600px) and (pointer: coarse) {
  .list-tag-sheet {
    width: min(740px, calc(100% - 48px));
  }
  .list-tag-sheet button.tag-chip {
    font-size: 14px;
    padding: 8px 14px;
  }
}
@media (min-width: 1100px) {
  .list-tag-sheet {
    width: min(760px, 100%);
    min-height: var(--sheet-find-min-wide);
    max-height: var(--sheet-find-max-wide);
  }
}
.kb-up .list-tag-mask {
  align-items: stretch;
  padding: 0;
}
.kb-up .list-tag-sheet {
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  border-radius: 22px 22px 0 0;
}
.tile.is-gone {
  display: none !important;
}
.work-note {
  position: fixed;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(20, 16, 18, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}
.work-note[hidden] {
  display: none !important;
}
.work-spin {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: work-spin 0.7s linear infinite;
}
.work-note.is-done .work-spin {
  display: none;
}
.ask-mask {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
}
.ask-mask[hidden] {
  display: none !important;
}
.ask-card {
  width: min(300px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 16px;
  color: #1c1c1e;
}
.ask-card p {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}
.ask-skip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 15px;
}
.ask-skip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ask-sw {
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.36);
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ask-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}
.ask-skip input:checked + .ask-sw {
  background: #34c759;
}
.ask-skip input:checked + .ask-sw::after {
  transform: translateX(20px);
}
.ask-actions {
  display: flex;
  gap: 8px;
}
.ask-actions:has(> .tag-apply:not([hidden])) {
  flex-direction: column;
}
.ask-actions:has(> .tag-apply:not([hidden])) button:not(.tag-apply) {
  flex: 0 0 44px;
  width: 100%;
}
.ask-actions button:not(.tag-apply) {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}
.ask-no {
  background: #f2f2f7;
  color: #1c1c1e;
}
.ask-yes {
  background: linear-gradient(120deg, #fa7e1e 0%, #d62976 48%, #962fbf 100%);
  color: #fff;
}
.ask-actions .tag-apply {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  height: 52px;
  border-radius: 999px;
}
@keyframes work-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 560px) {
  .local-cabs.solo .cab-hud {
    width: 100%;
    gap: 0;
  }
  .local-cabs.solo .cab-wrap {
    width: min(132px, 38vw);
  }
  .hp-track { height: 14px; }
  .hp-label { font-size: 12px; }
  .ins-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .album-settings {
    right: 8px;
    bottom: 6px;
  }
  .album-settings .settings-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .photo-rail .ins-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  html.has-rail .tag-board {
    padding-right: 0;
  }
  .mode-bar {
    flex-wrap: nowrap;
  }
  .mode-btn { font-size: 10px; padding: 7px 12px; }
}
@media (min-width: 600px) and (pointer: coarse) {
  html.has-rail .tag-board {
    padding-right: calc(88px + env(safe-area-inset-right, 0px));
  }
  .photo-rail {
    gap: 18px;
  }
  .photo-rail .ins-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .photo-rail .ins-face {
    inset: 4px;
  }
  .photo-rail .ins-icon svg {
    width: 25px;
    height: 25px;
  }
  .album-settings .settings-toggle {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }
  .album-settings .settings-toggle svg {
    width: 18px;
    height: 18px;
  }
  .tile-heart svg {
    width: 32px;
    height: 32px;
  }
}
@media (min-width: 768px) {
  .home-head, .cab-hud, .tag-board, .feed { width: min(720px, 100%); }
  .cab-wrap { width: 160px; }
  .album-settings {
    right: 12px;
    bottom: 10px;
  }
}
@media (min-width: 1100px) {
  .local-cabs.solo .cab-wrap { width: 176px; }
  .hp-track { height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cab-cover.is-run .cab-ring,
  .ins-icon.is-run .ins-ring,
  button.tag-apply::before,
  .cab-wave {
    animation: none;
  }
  .thinking-five span,
  .hp.is-run .hp-fill,
  .hp-alt.has-two > span,
  button.mode-pick {
    animation: none;
  }
  .hp-alt.has-two .hp-alt-count {
    display: none;
  }
  .blobs span {
    animation: none;
  }
}
.pswp.is-chrome-off .pswp__counter,
.pswp.is-chrome-off .pswp__button--zoom,
.pswp.is-chrome-off .pswp__button--arrow,
.pswp.is-chrome-off .pswp__preloader,
.pswp.is-chrome-off .pswp-face-cube,
.pswp.is-chrome-off .pswp-tag-sheet,
.pswp.is-chrome-off .pswp-tag-card,
.pswp.is-chrome-off .pswp-face-layer {
  opacity: 0 !important;
  pointer-events: none !important;
}
.pswp.is-ui-off .pswp-tag-sheet,
.pswp.is-ui-off .pswp-tag-card,
html.is-ui-off .photo-rail {
  opacity: 0;
  pointer-events: none;
}
html.is-ui-off .photo-rail .ins-icon {
  pointer-events: none;
}
.pswp,
.pswp__img,
.pswp__item,
.pswp__zoom-wrap,
.pswp__content {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none;
}
/* An upload runs for minutes over the tunnel and the status line at the top of the
   page is gone the moment the album scrolls, so the run reports from down here. */
.up-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 100015;
  width: min(420px, calc(100vw - 24px));
  padding: 12px 16px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.up-bar[hidden] {
  display: none !important;
}
.up-bar .hp-meter[hidden] {
  display: none;
}
.up-status .hp-label {
  margin-bottom: 8px;
}
.up-status .hp-meter {
  width: 100%;
}
.up-sub {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mute);
}
.up-sub:empty {
  display: none;
}