:root {
  --pink-page: #ffeaf2;
  --pink-page-deep: #ffdfe9;
  --pink-card: #fffafb;
  --pink-soft: #fff0f4;
  --pink-line: #f7dce5;
  --pink-muted: #bcaeb4;
  --pink-accent: #ff4f87;
  --pink-accent-dark: #f33d78;
  --ink: #181416;
  --ink-soft: #5e5559;
  --surface: #ffffff;
  --line: rgba(26, 19, 23, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--pink-page);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--pink-page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  padding: 0;
  color: inherit;
  touch-action: manipulation;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  width: 1px;
  height: 1px;
  position: fixed;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.app {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 16% 4%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 27%),
    linear-gradient(180deg, #ffeaf2 0%, #ffe7ef 180px, #ffeaf2 100%);
}

.pink-head {
  height: calc(164px + var(--safe-top));
  position: relative;
  overflow: hidden;
  padding-top: var(--safe-top);
  background:
    radial-gradient(circle at 50% 112%, rgba(255, 255, 255, 0.72) 0, rgba(255, 255, 255, 0) 39%),
    linear-gradient(180deg, #ffeaf2 0%, #ffe9f1 72%, #ffe9f2 100%);
}

.brand-line {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-glyph {
  width: 29px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #d30e24;
  box-shadow: 0 2px 7px rgba(177, 13, 34, 0.18);
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.main-header {
  height: 57px;
  padding: 0 17px;
  position: relative;
  display: flex;
  align-items: center;
}

.main-header h1 {
  width: 150px;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #161214;
  font-size: 20px;
  line-height: 28px;
  font-weight: 680;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.header-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 8px;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.header-icon:active {
  background: rgba(255, 255, 255, 0.36);
  transform: scale(0.94);
}

.back-icon {
  margin-left: -5px;
  color: #151114;
}

.header-star {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  margin-left: 4px;
  padding: 3px;
  color: #fff1a9;
  filter: drop-shadow(0 2px 2px rgba(206, 170, 48, 0.08));
  transform: rotate(7deg);
}

.header-star svg {
  fill: currentColor;
  stroke: rgba(229, 194, 64, 0.22);
  stroke-width: 1.1;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1px;
}

.header-actions .header-icon {
  width: 39px;
  height: 39px;
  padding: 8px;
}

.plus-icon {
  padding: 7px;
}

.plus-icon svg {
  stroke-width: 1.65;
}

.edit-icon {
  overflow: visible;
}

.heart-blob {
  width: 36px;
  height: 33px;
  position: absolute;
  top: 3px;
  left: 0;
  color: #ff9fbd;
  transform: rotate(-8deg);
  filter: drop-shadow(0 3px 5px rgba(238, 72, 119, 0.1));
}

.heart-blob svg {
  fill: currentColor;
  stroke: rgba(255, 138, 174, 0.4);
  stroke-width: 1.1;
}

.edit-icon .pencil {
  width: 27px;
  height: 27px;
  position: relative;
  z-index: 1;
  stroke-width: 1.85;
}

.decor-cloud {
  position: absolute;
  display: flex;
  align-items: flex-end;
  filter: blur(0.15px);
  opacity: 0.72;
}

.decor-cloud span {
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.cloud-left {
  left: 93px;
  bottom: 61px;
  transform: rotate(-4deg);
}

.cloud-left span:nth-child(1) {
  width: 26px;
  height: 21px;
  margin-right: -7px;
}

.cloud-left span:nth-child(2) {
  width: 36px;
  height: 31px;
}

.cloud-left span:nth-child(3) {
  width: 25px;
  height: 20px;
  margin-left: -8px;
}

.cloud-right {
  right: 23px;
  top: 14px;
  opacity: 0.25;
  transform: scale(0.55);
}

.cloud-right span:nth-child(1) {
  width: 28px;
  height: 22px;
  margin-right: -7px;
}

.cloud-right span:nth-child(2) {
  width: 38px;
  height: 32px;
}

.cloud-right span:nth-child(3) {
  width: 24px;
  height: 19px;
  margin-left: -8px;
}

.decor-planet {
  width: 37px;
  height: 28px;
  position: absolute;
  right: 23px;
  bottom: 31px;
  transform: rotate(-13deg);
  opacity: 0.58;
}

.planet-body {
  width: 19px;
  height: 19px;
  position: absolute;
  top: 4px;
  left: 9px;
  border-radius: 50%;
  background:
    linear-gradient(20deg, transparent 46%, rgba(255, 255, 255, 0.52) 48%, rgba(255, 255, 255, 0.52) 55%, transparent 57%),
    linear-gradient(150deg, #a4e7f4, #c8f1f8 53%, #8dbbd6);
  box-shadow: inset -3px -3px 4px rgba(86, 153, 181, 0.18);
}

.planet-ring {
  width: 37px;
  height: 12px;
  position: absolute;
  top: 7px;
  left: 0;
  border: 2px solid rgba(119, 191, 218, 0.7);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.decor-sparkles {
  position: absolute;
  right: 7px;
  bottom: 28px;
  color: #9fd6e8;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.55;
}

.decor-rocket {
  width: 26px;
  height: 26px;
  position: absolute;
  right: 61px;
  top: 79px;
  color: #201b1d;
  transform: rotate(3deg);
  opacity: 0.9;
}

.page-body {
  min-height: calc(100vh - 164px - var(--safe-top));
  min-height: calc(100dvh - 164px - var(--safe-top));
  margin-top: -1px;
  padding-bottom: calc(92px + var(--safe-bottom));
  position: relative;
}

.search-panel {
  height: 42px;
  margin: -1px 18px 11px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(235, 148, 177, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 16px rgba(165, 76, 108, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.search-panel > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #a9959d;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

.search-panel input::placeholder {
  color: #b7a7ad;
}

.search-panel input::-webkit-search-cancel-button {
  display: none;
}

.search-panel button {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 5px;
  border: 0;
  color: #a8999f;
  background: transparent;
}

.status-tabs {
  padding: 1px 0 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tabs::before,
.status-tabs::after {
  content: "";
  flex: 0 0 5px;
}

.status-tabs::after {
  flex-basis: 18px;
}

.status-pill {
  flex: 0 0 auto;
  min-width: 98px;
  height: 37px;
  padding: 0 17px;
  border: 1px solid rgba(255, 126, 162, 0.42);
  border-radius: 20px;
  color: #ef6591;
  background: rgba(255, 249, 251, 0.34);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.status-pill.is-active {
  color: #fff;
  border-color: var(--pink-accent);
  background: var(--pink-accent);
  box-shadow: 0 5px 13px rgba(255, 79, 135, 0.2);
}

.action-pill {
  min-width: 83px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.action-pill svg {
  width: 15px;
  height: 15px;
}

.collection-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.collection-card {
  overflow: hidden;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 12px 32px rgba(186, 84, 118, 0.075),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  animation: card-rise 360ms var(--ease) both;
}

.collection-open {
  width: 100%;
  padding: 23px 17px 18px;
  display: block;
  border: 0;
  text-align: center;
  background: transparent;
}

.collection-open:active {
  background: rgba(255, 245, 248, 0.68);
}

.collection-title,
.collection-count {
  display: block;
}

.collection-title {
  overflow: hidden;
  color: #181416;
  font-size: 21px;
  line-height: 28px;
  font-weight: 580;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.collection-count {
  margin-top: 3px;
  color: #a79da1;
  font-size: 13px;
  line-height: 18px;
  font-weight: 430;
}

.collection-count strong {
  color: #91858a;
  font-weight: 500;
}

.shelf-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 18px 12px;
}

.shelf-slot {
  min-width: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 10px;
  background: #faf7f8;
}

.shelf-slot::after {
  content: "";
  height: 8px;
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -8px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(250, 248, 248, 0.94), rgba(237, 230, 232, 0.44));
  box-shadow: 0 3px 5px rgba(155, 128, 139, 0.055);
}

.shelf-slot img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  object-fit: cover;
  background: #f8f4f5;
}

.shelf-slot.is-empty {
  background:
    linear-gradient(145deg, rgba(255, 236, 242, 0.8), rgba(248, 244, 245, 0.7));
}

.shelf-slot.is-empty::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f1b7ca;
  font-size: 18px;
  font-weight: 300;
}

.shelf-more {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: rgba(49, 39, 44, 0.58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-size: 18px;
  font-weight: 600;
}

.overview-empty {
  padding: 56px 24px 42px;
  text-align: center;
}

.empty-cabinet {
  width: 128px;
  height: 100px;
  margin: 0 auto 13px;
  position: relative;
}

.empty-cabinet > svg {
  width: 76px;
  height: 76px;
  position: absolute;
  z-index: 2;
  left: 26px;
  top: 5px;
  padding: 18px;
  border-radius: 23px;
  color: #dc8eaa;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 9px 23px rgba(184, 95, 125, 0.08);
}

.empty-cabinet span {
  width: 31px;
  height: 43px;
  position: absolute;
  top: 24px;
  border-radius: 9px;
  background: rgba(255, 205, 220, 0.72);
}

.empty-cabinet span:nth-child(1) {
  left: 4px;
  transform: rotate(-11deg);
}

.empty-cabinet span:nth-child(2) {
  right: 4px;
  transform: rotate(11deg);
  background: rgba(255, 227, 209, 0.64);
}

.empty-cabinet span:nth-child(3) {
  width: 28px;
  height: 27px;
  right: 16px;
  top: 64px;
  background: rgba(225, 235, 234, 0.72);
}

.overview-empty h2 {
  margin: 0;
  font-size: 19px;
  line-height: 27px;
  font-weight: 650;
}

.overview-empty p {
  max-width: 255px;
  margin: 7px auto 19px;
  color: #9e9297;
  font-size: 13px;
  line-height: 1.65;
}

.pink-main-button {
  height: 43px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #ff729c, #ff4b84);
  box-shadow: 0 8px 18px rgba(255, 79, 135, 0.2);
  font-size: 13px;
  font-weight: 600;
}

.pink-main-button svg {
  width: 17px;
  height: 17px;
}

.pink-main-button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.local-save-note {
  width: max-content;
  max-width: calc(100% - 36px);
  min-height: 31px;
  margin: 20px auto 0;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 16px;
  color: #ad9fa5;
  background: rgba(255, 255, 255, 0.34);
  font-size: 10px;
}

.lock-icon {
  width: 13px;
  height: 13px;
}

.note-separator {
  color: #d1c3c8;
}

.note-arrow {
  width: 12px;
  height: 12px;
}

.detail-view {
  padding-top: 2px;
}

.detail-heading {
  padding-left: 30px;
}

.detail-heading h2 {
  margin: 0;
  overflow: hidden;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-stats {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa0a4;
  font-size: 14px;
  line-height: 21px;
}

.detail-stats strong {
  color: #93878d;
  font-weight: 500;
}

.stat-dot {
  color: #c9bec2;
}

.detail-stats button {
  height: 23px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 0;
  color: #aaa0a4;
  background: transparent;
  font-size: 12px;
}

.detail-stats button svg {
  width: 15px;
  height: 15px;
}

.owner-row {
  margin: 13px 0 10px;
  padding-left: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.owner-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(85, 49, 61, 0.08);
}

.owner-name {
  color: #5b4f54;
  font-size: 14px;
  font-weight: 480;
}

.local-pill {
  height: 37px;
  margin-left: auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  color: #6e4d5a;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 10px rgba(171, 92, 119, 0.06);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.local-pill > svg {
  width: 14px;
  height: 14px;
}

.tiny-lock {
  width: 16px;
  height: 16px;
  color: #866c76;
}

.bubble-button {
  flex: 0 0 41px;
  width: 41px;
  height: 41px;
  margin-right: 16px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #1d171a;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 3px 10px rgba(171, 92, 119, 0.05);
}

.local-pill:active,
.bubble-button:active {
  transform: scale(0.96);
  background: #fff;
}

.detail-paper {
  min-height: calc(100vh - 314px - var(--safe-top));
  min-height: calc(100dvh - 314px - var(--safe-top));
  padding: 27px 17px 105px;
  border-radius: 27px 27px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -2px 22px rgba(171, 108, 129, 0.055);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px 14px;
}

.photo-card {
  min-width: 0;
  padding: 0;
  display: block;
  border: 0;
  text-align: left;
  background: transparent;
  animation: card-rise 330ms var(--ease) both;
}

.photo-card:active .photo-tile {
  transform: scale(0.97);
}

.photo-tile {
  width: 100%;
  aspect-ratio: 0.98;
  overflow: hidden;
  display: block;
  position: relative;
  border-radius: 15px;
  background: #f7f4f5;
  transition: transform 140ms ease;
}

.photo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #f7f4f5;
}

.photo-favorite {
  width: 23px;
  height: 23px;
  padding: 5px;
  position: absolute;
  top: 7px;
  right: 7px;
  border-radius: 50%;
  color: #fff;
  background: rgba(45, 38, 41, 0.34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.photo-favorite svg {
  fill: currentColor;
}

.photo-name {
  margin-top: 9px;
  overflow: hidden;
  display: block;
  color: #1c1719;
  font-size: 14px;
  line-height: 21px;
  font-weight: 530;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.photo-date {
  margin-top: 1px;
  display: block;
  color: #f56a94;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.detail-empty {
  padding: 54px 20px 80px;
  text-align: center;
}

.empty-mini-art {
  width: 104px;
  height: 86px;
  margin: 0 auto 11px;
  position: relative;
}

.empty-mini-art > svg {
  width: 58px;
  height: 58px;
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 5px;
  padding: 13px;
  border-radius: 18px;
  color: #da93ab;
  background: #fff5f8;
}

.empty-mini-art span {
  width: 25px;
  height: 34px;
  position: absolute;
  top: 23px;
  border-radius: 7px;
  background: #ffedf3;
}

.empty-mini-art span:nth-child(1) {
  left: 5px;
  transform: rotate(-10deg);
}

.empty-mini-art span:nth-child(2) {
  right: 5px;
  transform: rotate(10deg);
  background: #fff2e9;
}

.empty-mini-art span:nth-child(3) {
  width: 19px;
  height: 22px;
  right: 12px;
  top: 57px;
  background: #f1f6f3;
}

.detail-empty h3 {
  margin: 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 630;
}

.detail-empty p {
  margin: 6px auto 15px;
  color: #a79ba1;
  font-size: 12px;
  line-height: 1.6;
}

.outline-add-button {
  height: 37px;
  padding: 0 17px;
  border: 1px solid #ffacc1;
  border-radius: 19px;
  color: #f75687;
  background: #fff8fa;
  font-size: 12px;
  font-weight: 600;
}

.floating-add {
  z-index: 35;
  width: 59px;
  height: 59px;
  padding: 16px;
  position: fixed;
  right: max(23px, calc((100vw - 600px) / 2 + 23px));
  bottom: calc(24px + var(--safe-bottom));
  border: 5px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff83a8, #ff4b83);
  box-shadow:
    0 9px 23px rgba(255, 67, 126, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.38);
}

.floating-add:active {
  transform: scale(0.91);
}

.sheet-layer {
  z-index: 100;
  position: fixed;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.sheet-layer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  opacity: 0;
  background: rgba(31, 23, 27, 0.29);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity 230ms ease;
}

.sheet-layer.is-open .sheet-backdrop {
  opacity: 1;
}

.bottom-sheet {
  width: min(100%, 600px);
  max-height: calc(100vh - var(--safe-top) - 22px);
  max-height: calc(100dvh - var(--safe-top) - 22px);
  padding: 8px 18px calc(22px + var(--safe-bottom));
  position: absolute;
  left: 50%;
  bottom: 0;
  overflow-y: auto;
  border-radius: 27px 27px 0 0;
  background: #fffafb;
  box-shadow: 0 -18px 45px rgba(74, 36, 51, 0.12);
  transform: translate(-50%, 104%);
  transition: transform 330ms var(--ease);
  overscroll-behavior: contain;
}

.sheet-layer.is-open .bottom-sheet {
  transform: translate(-50%, 0);
}

.tall-sheet {
  min-height: 48dvh;
}

.sheet-handle {
  width: 39px;
  height: 4px;
  margin: 1px auto 17px;
  border-radius: 2px;
  background: #eadde1;
}

.sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sheet-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 28px;
  font-weight: 650;
}

.sheet-heading p {
  margin: 3px 0 0;
  color: #a6969d;
  font-size: 11px;
  line-height: 16px;
}

.circle-close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 9px;
  border: 0;
  border-radius: 50%;
  color: #8c7e84;
  background: #f7eef1;
}

.target-block {
  margin-top: 18px;
  padding: 13px;
  border-radius: 17px;
  background: #fff3f6;
}

.target-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7b6c72;
  font-size: 11px;
}

.target-label button {
  border: 0;
  color: #f45989;
  background: transparent;
  font-size: 11px;
  font-weight: 550;
}

.target-chips {
  margin-top: 10px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.target-chips::-webkit-scrollbar {
  display: none;
}

.target-chip {
  flex: 0 0 auto;
  height: 33px;
  padding: 0 13px;
  border: 1px solid #f7d5df;
  border-radius: 17px;
  color: #957f88;
  background: #fffafb;
  font-size: 11px;
  white-space: nowrap;
}

.target-chip.is-active {
  color: #fff;
  border-color: var(--pink-accent);
  background: var(--pink-accent);
}

.add-options {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #f7e8ec;
  border-radius: 18px;
  background: #fff;
}

.add-option {
  width: 100%;
  min-height: 73px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  text-align: left;
  background: #fff;
}

.add-option + .add-option {
  border-top: 1px solid #f8ecef;
}

.add-option:active {
  background: #fff7f9;
}

.option-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 14px;
}

.photo-option {
  color: #e26a86;
  background: #ffedf2;
}

.camera-option {
  color: #b68c54;
  background: #fff5e5;
}

.option-copy {
  flex: 1;
  min-width: 0;
}

.option-copy strong,
.option-copy small {
  display: block;
}

.option-copy strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 620;
}

.option-copy small {
  margin-top: 1px;
  color: #a8999f;
  font-size: 10px;
  line-height: 15px;
}

.row-chevron {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #cfc1c6;
}

.sheet-footnote {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #b09fa5;
  font-size: 10px;
}

.sheet-footnote svg {
  width: 14px;
  height: 14px;
}

.new-collection-form {
  height: 46px;
  margin-top: 19px;
  padding: 4px 4px 4px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f3dfe5;
  border-radius: 14px;
  background: #fff;
}

.new-collection-form input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.new-collection-form input::placeholder {
  color: #b7a7ad;
}

.new-collection-form button {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #ff5b8c;
  font-size: 11px;
  font-weight: 600;
}

.collection-manager-list {
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid #f7e8ec;
  border-radius: 17px;
  background: #fff;
}

.manager-row {
  min-height: 59px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manager-row + .manager-row {
  border-top: 1px solid #f9eef1;
}

.manager-color {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #e65c87;
  background: #fff0f4;
  font-size: 14px;
  font-weight: 600;
}

.manager-copy {
  flex: 1;
  min-width: 0;
}

.manager-copy strong,
.manager-copy small {
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.manager-copy strong {
  font-size: 13px;
  line-height: 19px;
  font-weight: 590;
}

.manager-copy small {
  color: #a99ca2;
  font-size: 9px;
  line-height: 14px;
}

.manager-action {
  width: 32px;
  height: 32px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  color: #ad9fa5;
  background: #faf4f6;
}

.manager-action.danger {
  color: #dd7d92;
}

.manager-action + .manager-action {
  margin-left: -3px;
}

.menu-list {
  margin-top: 19px;
  overflow: hidden;
  border: 1px solid #f7e8ec;
  border-radius: 18px;
  background: #fff;
}

.menu-row {
  width: 100%;
  min-height: 65px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  text-align: left;
  background: transparent;
}

button.menu-row:active {
  background: #fff7f9;
}

.menu-row + .menu-row {
  border-top: 1px solid #f9eef1;
}

.menu-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  color: #9d7b87;
  background: #fff1f5;
}

.menu-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.menu-row strong,
.menu-row small {
  display: block;
}

.menu-row strong {
  font-size: 13px;
  line-height: 19px;
  font-weight: 600;
}

.menu-row small {
  margin-top: 1px;
  color: #aa9da2;
  font-size: 9px;
  line-height: 14px;
}

.storage-badge {
  padding: 3px 7px;
  border-radius: 8px;
  color: #d94f7d;
  background: #fff0f4;
  font-size: 9px;
  font-weight: 600;
}

.viewer {
  z-index: 200;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: #f7f6f3;
  background: #0d0d0d;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms;
}

.viewer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.viewer-top {
  min-height: calc(62px + var(--safe-top));
  padding: calc(var(--safe-top) + 8px) 13px 8px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(13, 13, 13, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.viewer-button {
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  color: #f7f6f3;
  background: transparent;
}

.viewer-button:active {
  background: rgba(255, 255, 255, 0.1);
}

.viewer-heading {
  min-width: 0;
  text-align: center;
}

.viewer-heading strong,
.viewer-heading span {
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.viewer-heading strong {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.viewer-heading span {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  line-height: 13px;
}

.viewer-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.viewer-stage img {
  width: 100%;
  max-height: calc(100vh - 158px - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 158px - var(--safe-top) - var(--safe-bottom));
  display: block;
  object-fit: contain;
}

.viewer-actions {
  min-height: calc(75px + var(--safe-bottom));
  padding: 7px 18px calc(7px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: rgba(13, 13, 13, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.viewer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 9px;
  line-height: 13px;
}

.viewer-action > span:first-child {
  width: 24px;
  height: 24px;
}

.viewer-action.danger {
  color: #ff8d82;
}

.viewer-action.is-favorite {
  color: #ffadbe;
}

.viewer-action.is-favorite svg {
  fill: currentColor;
}

.progress-overlay {
  z-index: 250;
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(56, 34, 43, 0.22);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity 180ms ease, visibility 180ms;
}

.progress-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.progress-card {
  width: 196px;
  padding: 23px 18px 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 22px;
  background: rgba(255, 251, 252, 0.97);
  box-shadow: 0 22px 55px rgba(74, 36, 51, 0.18);
}

.progress-spinner {
  width: 29px;
  height: 29px;
  margin-bottom: 12px;
  border: 2.5px solid #ffd7e3;
  border-top-color: #ff5689;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.progress-card strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 620;
}

.progress-card small {
  margin-top: 3px;
  color: #aa9da2;
  font-size: 10px;
  line-height: 15px;
}

.confirm-dialog {
  width: min(calc(100% - 44px), 340px);
  padding: 23px 20px 15px;
  border: 0;
  border-radius: 21px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 60px rgba(46, 26, 35, 0.2);
  text-align: center;
}

.confirm-dialog::backdrop {
  background: rgba(34, 24, 29, 0.38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.dialog-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  padding: 10px;
  border-radius: 50%;
  color: #df6b81;
  background: #fff0f3;
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 17px;
  line-height: 23px;
}

.confirm-dialog p {
  margin: 6px auto 18px;
  color: #a09499;
  font-size: 11px;
  line-height: 1.65;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.dialog-actions button {
  height: 42px;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
}

.dialog-cancel {
  color: #7b6d73;
  background: #f8f2f4;
}

.dialog-confirm {
  color: #fff;
  background: #e9627e;
}

.toast {
  z-index: 300;
  max-width: calc(100% - 40px);
  padding: 10px 15px;
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  border-radius: 11px;
  color: #fff9fb;
  background: rgba(39, 29, 34, 0.94);
  box-shadow: 0 8px 30px rgba(65, 31, 45, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 601px) {
  body {
    background: #eadde2;
  }

  .app {
    box-shadow: 0 0 65px rgba(72, 41, 54, 0.09);
  }
}

@media (max-width: 365px) {
  .main-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .main-header h1 {
    font-size: 18px;
  }

  .header-actions {
    gap: 0;
  }

  .header-actions .header-icon {
    width: 36px;
    height: 36px;
  }

  .header-star {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
    margin-left: 1px;
  }

  .status-pill {
    min-width: 91px;
  }

  .collection-open {
    padding-left: 13px;
    padding-right: 13px;
  }

  .shelf-grid {
    gap: 16px 9px;
  }

  .detail-heading {
    padding-left: 22px;
  }

  .owner-row {
    padding-left: 13px;
    gap: 7px;
  }

  .local-pill {
    padding: 0 11px;
    font-size: 11px;
  }

  .bubble-button {
    margin-right: 11px;
  }

  .photo-grid {
    gap: 22px 10px;
  }

  .photo-name {
    font-size: 12px;
  }

  .photo-date {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
