/* ============================================================
   小院 · family space
   ============================================================ */

.bottom-nav-5 {
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding-right: 8px;
  padding-left: 8px;
}

.bottom-nav-6 .nav-item {
  padding-right: 4px;
  padding-left: 4px;
  font-size: 9px;
}

.avatar-admin {
  color: #6b4a1e;
  background: #fbf1dd;
}

.avatar-member {
  color: var(--green-deep);
  background: var(--green-soft);
}

.avatar-ai {
  color: #6a4b8f;
  background: #f0eafa;
}

.avatar-with-emoji {
  font-size: 18px;
}

.avatar-lg.avatar-with-emoji {
  font-size: 26px;
}

.avatar-xl.avatar-with-emoji {
  font-size: 34px;
}

.ai-top-btn {
  color: #6a4b8f;
  background: #f6f1fc;
  border-color: #e8def5;
}

.xy-sample {
  position: relative;
  margin-top: 26px;
  padding: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}

.xy-sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xy-sample-avatars {
  display: flex;
}

.xy-sample-avatars .avatar {
  margin-right: -7px;
}

.xy-sample-title {
  margin-top: 13px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.xy-sample-photo {
  position: relative;
  overflow: hidden;
  height: 126px;
  margin-top: 11px;
  background: linear-gradient(180deg, #f4c9a5 0%, #e8a982 46%, #b5c9a9 47%, #8eae87 100%);
  border-radius: 16px;
}

.xy-sample-sun {
  position: absolute;
  top: 22px;
  right: 34px;
  width: 28px;
  height: 28px;
  background: #fff2cf;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 242, 207, 0.8);
}

.xy-sample-hill {
  position: absolute;
  bottom: -24px;
  width: 210px;
  height: 92px;
  background: #789a72;
  border-radius: 50%;
}

.xy-sample-hill.one {
  left: -50px;
  transform: rotate(8deg);
}

.xy-sample-hill.two {
  right: -60px;
  bottom: -36px;
  background: #678b63;
  transform: rotate(-10deg);
}

.xy-sample-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  color: #fffdf9;
  background: rgba(31, 42, 36, 0.38);
  border-radius: 999px;
  font-size: 10px;
}

.xy-sample-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
  color: var(--ink-3);
  font-size: 11px;
}

.xy-sample-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.xy-sample-ai {
  margin-left: auto;
  color: #6a4b8f;
}

.ai-card {
  padding: 17px;
  background:
    radial-gradient(110% 150% at 100% 0%, rgba(155, 124, 198, 0.13) 0%, transparent 60%),
    linear-gradient(145deg, #fbf8ff 0%, #f4edf9 100%);
  border: 1px solid #e9def2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ai-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.ai-orb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #6a4b8f;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid #e8def5;
  border-radius: 14px;
  flex: none;
  box-shadow: 0 4px 14px rgba(106, 75, 143, 0.08);
}

.ai-orb.large {
  width: 52px;
  height: 52px;
  border-radius: 18px;
}

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

.ai-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 750;
}

.ai-card-text {
  margin-top: 3px;
  color: #6f647b;
  font-size: 11px;
  line-height: 1.5;
}

.ai-open-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #6a4b8f;
  background: transparent;
  border: 0;
  border-radius: 10px;
  flex: none;
}

.ai-quick {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ai-quick::-webkit-scrollbar {
  display: none;
}

.ai-quick .chip-btn {
  flex: none;
  background: rgba(255, 253, 249, 0.7);
  border-color: #e4d8ef;
  color: #6f5a84;
}

.composer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 13px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.composer-placeholder {
  flex: 1;
  color: var(--ink-3);
  font-size: 12px;
}

.composer-icons {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
}

.next-event {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  background: var(--green-soft);
  border: 1px solid #d5e5d9;
  border-radius: var(--radius-md);
}

.next-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--green-deep);
  background: rgba(255, 253, 249, 0.72);
  border-radius: 14px;
  flex: none;
  line-height: 1.15;
}

.next-event-date strong {
  font-size: 15px;
}

.next-event-date span {
  margin-top: 2px;
  color: #678373;
  font-size: 9px;
}

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

.next-event-title {
  display: block;
  font-size: 13px;
  font-weight: 750;
}

.next-event-desc {
  display: block;
  margin-top: 2px;
  color: #5f7b6a;
  font-size: 11px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.post-card-ai {
  background: linear-gradient(145deg, rgba(250, 247, 255, 0.9), rgba(255, 253, 249, 0.95));
  border-color: #e9def2;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.post-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.post-relation {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 500;
}

.post-time {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10px;
}

.post-menu {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.post-content {
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-content-detail {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
}

.photo-grid {
  display: grid;
  gap: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 15px;
}

.photo-grid-1 {
  grid-template-columns: 1fr;
}

.photo-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.photo-grid-3 {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.photo-grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.photo-grid-item {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  padding: 0;
  background: var(--bg-deep);
  border: 0;
}

.photo-grid-1 .photo-grid-item {
  max-height: 360px;
  aspect-ratio: 4 / 3;
}

.photo-grid-2 .photo-grid-item {
  aspect-ratio: 1;
}

.photo-grid-3 .photo-grid-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.photo-grid-3 .photo-grid-item:not(:first-child) {
  aspect-ratio: 1.25;
}

.photo-grid-4 .photo-grid-item {
  aspect-ratio: 1.12;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 28, 23, 0.45);
  font-size: 20px;
  font-weight: 700;
}

.post-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  padding: 5px 8px;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 0;
  border-radius: 999px;
  font-size: 10px;
}

.post-location span {
  color: #6b8878;
  font-size: 9px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 8px;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
}

.post-action.is-active {
  color: var(--coral);
}

.post-action-ai {
  margin-left: auto;
  color: #6a4b8f;
}

.post-comments {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding: 9px 10px;
  background: var(--paper-soft);
  border-radius: 12px;
}

.post-comment {
  display: flex;
  gap: 5px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
}

.post-comment strong {
  flex: none;
  color: var(--green-deep);
  font-weight: 650;
}

.post-more-comments {
  align-self: flex-start;
  padding: 2px 0;
  color: var(--green);
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 650;
}

.post-detail-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.comment-divider {
  margin-top: 6px;
  padding-top: 12px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

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

.comment-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.comment-text {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-time {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 9px;
}

.comment-delete {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: 8px;
  flex: none;
}

.comment-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.comment-composer .textarea {
  flex: 1;
  min-height: 44px;
  max-height: 100px;
  padding: 10px 11px;
  font-size: 13px;
}

.post-textarea {
  min-height: 130px;
  font-size: 15px;
}

.composer-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.composer-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-deep);
  border-radius: 11px;
}

.composer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #fff;
  background: rgba(20, 28, 23, 0.58);
  border: 0;
  border-radius: 50%;
}

.composer-tools {
  display: flex;
  gap: 7px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink-2);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
}

.chip-btn.is-active {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: transparent;
}

.screen-head-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.screen-head-row .screen-title {
  font-size: 26px;
}

.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.album-card {
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  background: var(--bg-deep);
}

.album-cover-empty {
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: linear-gradient(135deg, rgba(230, 239, 232, 0.9), rgba(251, 241, 221, 0.8));
}

.album-card-copy {
  padding: 10px 11px 12px;
}

.album-card-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-meta {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10px;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  overflow: hidden;
  border-radius: 14px;
}

.album-photo {
  padding: 0;
  aspect-ratio: 1;
  background: var(--bg-deep);
  border: 0;
}

.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-card {
  padding: 14px 12px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 9px;
  font-size: 15px;
}

.calendar-head .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 0 6px;
  color: var(--ink-3);
  font-size: 10px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 3px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 12px;
}

.calendar-day.is-outside {
  color: #c2c8c2;
}

.calendar-day.is-today .calendar-day-number {
  color: var(--green);
  font-weight: 800;
}

.calendar-day.is-selected {
  color: #fff;
  background: var(--green);
}

.calendar-day.is-selected .calendar-day-number {
  color: #fff;
}

.calendar-day-number {
  line-height: 1;
}

.calendar-dots {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.calendar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.calendar-day.is-selected .calendar-dot {
  background: #fff;
}

.calendar-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  color: var(--ink-3);
  background: rgba(255, 253, 249, 0.55);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.event-color {
  width: 5px;
  height: 34px;
  background: var(--green);
  border-radius: 999px;
  flex: none;
}

.event-color.color-green,
.color-dot.color-green,
.status-dot.dot-green {
  background: var(--green);
}

.event-color.color-coral,
.color-dot.color-coral,
.status-dot.dot-coral {
  background: var(--coral);
}

.event-color.color-amber,
.color-dot.color-amber,
.status-dot.dot-amber {
  background: var(--amber);
}

.event-color.color-blue,
.color-dot.color-blue,
.status-dot.dot-blue {
  background: var(--blue);
}

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

.event-title {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-avatars {
  display: flex;
}

.event-avatars .avatar {
  margin-left: -6px;
}

.event-avatars .avatar:first-child {
  margin-left: 0;
}

.event-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.event-detail-head .event-color {
  height: 42px;
}

.event-detail-title {
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.event-detail-when {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 12px;
}

.detail-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12px;
}

.detail-note {
  padding: 12px;
  color: var(--ink-2);
  background: var(--paper-soft);
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.attendee-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attendee-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.attendee {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.attendee .pill {
  margin-left: auto;
}

.rsvp-row {
  display: flex;
  gap: 7px;
}

.rsvp-row .btn {
  flex: 1;
}

.color-row {
  display: flex;
  gap: 12px;
  padding: 3px 0;
}

.color-dot {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
}

.color-dot.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch-row.is-on .switch {
  background: var(--green);
}

.switch-row.is-on .switch::after {
  transform: translateX(16px);
}

.idea-ai-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  text-align: left;
  background: linear-gradient(145deg, #fbf8ff 0%, #f4edf9 100%);
  border: 1px solid #e9def2;
  border-radius: 16px;
}

.idea-ai-card div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.idea-ai-card strong {
  display: block;
  color: #5d4873;
  font-size: 12px;
}

.idea-ai-card span {
  display: block;
  margin-top: 2px;
  color: #7a6d86;
  font-size: 10px;
  line-height: 1.4;
}

.idea-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.idea-card {
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.idea-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.idea-menu {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.idea-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.idea-desc {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.idea-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 10px;
}

.idea-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 650;
}

.vote-btn.is-voted {
  color: #fff;
  background: var(--green);
}

.idea-actions .btn {
  margin-left: auto;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.member-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

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

.member-card-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
}

.member-card-meta {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10px;
}

.member-call {
  width: 36px;
  height: 36px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: transparent;
  box-shadow: none;
}

.member-call.is-now {
  color: #fff;
  background: var(--green);
}

.member-remove {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.emoji-choice {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
}

.emoji-choice.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.sheet-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sheet-list-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 9px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
}

.sheet-list-btn:hover {
  background: var(--paper-soft);
}

.sheet-list-btn.is-current {
  color: var(--green-deep);
  background: var(--green-soft);
}

.sheet-list-btn .icon {
  color: var(--ink-3);
}

.sheet-list-btn.is-current .icon {
  color: var(--green);
}

.sheet-list-btn span:nth-child(2) {
  flex: 1;
}

.ai-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-config-link {
  font-size: 11px;
}

.sheet-ai {
  height: min(88dvh, 760px);
  display: flex;
  flex-direction: column;
}

.sheet-ai .sheet-body {
  min-height: 0;
  flex: 1;
  gap: 10px;
}

.ai-chat {
  flex: 1;
  min-height: 220px;
  max-height: 48dvh;
  overflow-y: auto;
  padding: 6px 2px 10px;
  scroll-behavior: smooth;
}

.ai-intro {
  padding: 24px 18px;
  text-align: center;
}

.ai-intro .ai-orb {
  margin: 0 auto 10px;
}

.ai-intro h3 {
  font-size: 17px;
  font-weight: 760;
}

.ai-intro p {
  max-width: 280px;
  margin: 5px auto 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.ai-message {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 7px 0;
}

.ai-message.is-user {
  justify-content: flex-end;
}

.ai-mini-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #6a4b8f;
  background: #f0eafa;
  border-radius: 9px;
  flex: none;
}

.ai-bubble {
  max-width: 84%;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  font-size: 13px;
  line-height: 1.65;
}

.ai-bubble-user {
  color: #f9f5ea;
  background: var(--green);
  border-color: var(--green);
  border-radius: 15px 15px 4px 15px;
}

.ai-bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-bubble-meta {
  margin-top: 4px;
  color: #8a7a98;
  font-size: 9px;
}

.ai-typing {
  display: flex;
  gap: 4px;
  padding: 8px 0 4px 30px;
}

.ai-typing span {
  width: 5px;
  height: 5px;
  background: #b9a8c8;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.ai-quick-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.ai-quick-wrap::-webkit-scrollbar {
  display: none;
}

.ai-quick-sheet {
  margin-top: 0;
}

.ai-composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.ai-input {
  flex: 1;
  min-height: 44px;
  max-height: 100px;
  padding: 11px 12px;
  font-size: 13px;
}

.ai-send {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 13px;
}

.photo-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.photo-viewer-top {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.photo-viewer-close {
  position: static;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.photo-viewer img {
  max-width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  border-radius: 8px;
}

.photo-viewer-caption {
  max-width: 90%;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-align: center;
}

.photo-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
}

.photo-nav.prev {
  left: 14px;
}

.photo-nav.next {
  right: 14px;
}

@media (max-width: 360px) {
  .album-grid {
    gap: 8px;
  }

  .post-card {
    padding: 13px;
  }

  .ai-card {
    padding: 14px;
  }
}

.settings-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-title,
.settings-desc {
  display: block;
}

.member-card-meta,
.profile-meta {
  line-height: 1.45;
}

.album-detail-head {
  gap: 8px;
}

.album-detail-title {
  flex: 1;
  min-width: 0;
  font-size: 25px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-card .ai-quick {
  flex-wrap: wrap;
  overflow-x: visible;
}

button.text-link {
  padding: 0;
  background: none;
  border: 0;
}

.ai-typing[hidden] {
  display: none;
}

.ai-quick-sheet {
  flex-wrap: wrap;
  overflow-x: visible;
}

.status-dot.dot-neutral {
  background: var(--ink-3);
}

.toast-root {
  align-items: center;
}

.toast {
  width: fit-content;
  max-width: 100%;
}

.future-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.future-chip {
  padding: 6px 9px;
  color: var(--ink-2);
  background: var(--paper-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font-size: 10px;
}

.photo-viewer {
  background: rgba(10, 14, 11, 0.975);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bind-code {
  padding: 18px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 18px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-align: center;
}
