:root {
  --bg: #f4eadf;
  --paper: rgba(255, 249, 241, 0.88);
  --paper-strong: #fffaf1;
  --ink: #26211b;
  --muted: #6f6457;
  --line: rgba(80, 57, 29, 0.14);
  --accent: #bd5f2d;
  --accent-deep: #9c4521;
  --accent-soft: rgba(189, 95, 45, 0.14);
  --leaf: #476b4a;
  --gold: #d79d3e;
  --shadow: 0 24px 80px rgba(88, 52, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 191, 88, 0.2), transparent 28%),
    linear-gradient(180deg, #f7ecdf 0%, #f2e5d7 48%, #efe2d2 100%);
  color: var(--ink);
  overflow-x: hidden;
  padding-bottom: 5.4rem;
}

button,
input,
textarea {
  font: inherit;
}

.bg-orb {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.44;
  z-index: 0;
}

.bg-orb-left {
  background: rgba(214, 155, 52, 0.18);
  top: -10rem;
  left: -8rem;
}

.bg-orb-right {
  background: rgba(109, 156, 108, 0.12);
  right: -10rem;
  bottom: 8rem;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.app-shell {
  width: min(460px, calc(100% - 1rem));
  max-width: 100%;
  margin-bottom: 2rem;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(38, 33, 27, 0.24);
  backdrop-filter: blur(6px);
}

.auth-screen[hidden] {
  display: none !important;
}

.auth-card {
  position: relative;
  width: min(420px, 100%);
  padding: 1.5rem;
}

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.auth-title {
  font-family: "Noto Serif SC", serif;
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.15;
}

.auth-text {
  margin: 0.8rem 0 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.auth-form {
  display: none;
  gap: 0.8rem;
}

.auth-form.active {
  display: grid;
}

.auth-form input {
  min-height: 3.2rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(112, 78, 43, 0.14);
  background: rgba(255, 252, 246, 0.95);
}

.auth-message {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  color: var(--accent-deep);
}

.hero {
  padding: 1rem 0 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  padding-top: 0.2rem;
}

.install-banner {
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
}

.install-banner[hidden] {
  display: none !important;
}

.install-banner-card {
  padding: 1rem 1rem 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
}

.install-banner-text {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.install-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.65rem;
  align-items: center;
}

.home-install-hint {
  position: fixed;
  left: 50%;
  width: min(90vw, 420px);
  right: auto;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(255, 249, 241, 0.98);
  border: 1px solid rgba(112, 78, 43, 0.12);
  box-shadow: 0 20px 44px rgba(28, 20, 14, 0.18);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}

.home-install-hint[hidden] {
  display: none !important;
}

.home-install-hint-content,
.home-install-hint__copy {
  min-width: 0;
  width: 100%;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
}

.home-install-hint__title {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
  font-size: 1.02rem;
  font-weight: 700;
}

.home-install-hint-text,
.home-install-hint__intro {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.38;
  font-size: 0.9rem;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}

.home-install-hint-steps,
.home-install-hint__steps {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.2rem;
  width: 100%;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
}

.home-install-hint__step-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
  font-size: 0.92rem;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}

.home-install-hint__emoji {
  font-size: 1rem;
}

.home-install-hint__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: flex-end;
  width: 100%;
  justify-content: flex-end;
  transform: none;
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  margin-top: 0.05rem;
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(112, 78, 43, 0.12);
  box-shadow: 0 10px 24px rgba(88, 52, 17, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-copy {
  min-width: 0;
}

.topbar-title {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.topbar-status {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-my-button {
  flex-shrink: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(189, 95, 45, 0.08);
  color: var(--accent-deep);
}

.topbar-my-button.active {
  background: rgba(189, 95, 45, 0.14);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1,
.hero h2,
.hero h3,
.view h2,
.view h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  margin: 0;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.1rem);
  max-width: 10ch;
}

.hero-title-name,
.hero-title-question {
  display: inline;
}

.hero-text {
  margin: 0.9rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-direction: column;
  margin: 1.2rem 0 1rem;
}

.primary-button,
.secondary-button,
.nav-chip,
.quick-chip {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.primary-button,
.secondary-button {
  min-height: 3.25rem;
  padding: 0.95rem 1.35rem;
  font-weight: 600;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #d68046 100%);
  color: #fff8f1;
  box-shadow: 0 14px 32px rgba(189, 95, 45, 0.28);
}

.secondary-button {
  background: rgba(255, 250, 241, 0.66);
  color: var(--ink);
  border: 1px solid rgba(133, 98, 58, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.nav-chip:hover,
.quick-chip:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.nav-chip:active,
.tabbar-item:active,
.upload-button:active {
  transform: scale(0.985);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.92;
}

.primary-button.is-loading {
  background: linear-gradient(135deg, #c7733f 0%, #df9257 100%);
  box-shadow: 0 10px 24px rgba(189, 95, 45, 0.22);
}

.hero-points {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  color: var(--muted);
}

.hero-points li {
  padding: 0.55rem 0.9rem;
  background: rgba(255, 251, 244, 0.76);
  border: 1px solid rgba(100, 72, 43, 0.1);
  border-radius: 999px;
}

.card {
  background: var(--paper);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(112, 78, 43, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-panel-note {
  margin: -0.2rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.panel-topline,
.room-badges,
.snapshot-header,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.live-pill,
.capacity-pill,
.ghost-pill {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
}

.live-pill {
  background: rgba(77, 111, 80, 0.12);
  color: var(--leaf);
}

.capacity-pill,
.ghost-pill {
  background: rgba(255, 250, 241, 0.85);
  color: var(--muted);
  border: 1px solid rgba(133, 98, 58, 0.12);
}

.participant-stack,
.room-list,
.relationship-list,
.next-up-list,
.affinity-grid,
.status-stream,
.log-list,
.feed-list,
.topic-list {
  display: grid;
  gap: 0.9rem;
}

.starter-stack-compact {
  gap: 0.5rem;
}

.starter-activity-row {
  min-height: 2.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.38rem;
  overflow: hidden;
}

.starter-activity-name,
.starter-activity-dish,
.starter-activity-divider {
  white-space: nowrap;
}

.starter-activity-name {
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.starter-activity-divider {
  color: rgba(111, 100, 87, 0.7);
  flex-shrink: 0;
}

.starter-activity-dish {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.starter-empty {
  margin: 0;
  min-height: 2.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.72);
  border: 1px dashed rgba(112, 78, 43, 0.18);
  color: var(--muted);
  line-height: 1.45;
}

.person-card,
.status-card,
.log-card,
.affinity-card-item,
.relationship-item,
.next-up-item,
.snapshot-item {
  background: rgba(255, 252, 246, 0.76);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(215, 157, 62, 0.9), rgba(189, 95, 45, 0.82));
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.26);
}

.person-card strong,
.relationship-item strong,
.next-up-item strong,
.affinity-card-item strong,
.status-card strong,
.log-card strong {
  display: block;
}

.person-card p,
.mini-note,
.metric-label,
.prompt-footer,
.tone-note p,
.affinity-card-item p,
.log-card p,
.relationship-item p,
.next-up-item p,
.status-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.countdown-block {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 245, 233, 0.78));
  border-radius: 24px;
  padding: 1rem 1.2rem;
}

.countdown {
  margin-top: 0.35rem;
  font-size: clamp(1.3rem, 6vw, 2rem);
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.05em;
}

.nav-strip {
  display: none;
}

.nav-chip {
  padding: 0.8rem 1.1rem;
  background: rgba(255, 250, 241, 0.7);
  color: var(--muted);
  border: 1px solid rgba(112, 78, 43, 0.12);
}

.nav-chip.active {
  background: var(--accent);
  color: #fff8f1;
  box-shadow: 0 12px 24px rgba(189, 95, 45, 0.24);
}

.view {
  display: none;
  animation: rise 320ms ease;
  padding-bottom: 1.35rem;
}

.view.active {
  display: block;
}

.bottom-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 0.9rem));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.55rem;
  border-radius: 24px;
  background: rgba(255, 249, 241, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(112, 78, 43, 0.12);
  box-shadow: 0 18px 40px rgba(88, 52, 17, 0.14);
  z-index: 20;
}

.bottom-tabbar.show-admin {
  grid-template-columns: repeat(4, 1fr);
}

.admin-tab {
  display: none !important;
}

.bottom-tabbar.show-admin .admin-tab {
  display: grid !important;
}

.tabbar-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 3.5rem;
  border-radius: 18px;
  display: grid;
  gap: 0.2rem;
  place-items: center;
  font-size: 0.82rem;
  cursor: pointer;
}

.tabbar-item.active {
  background: rgba(189, 95, 45, 0.12);
  color: var(--accent-deep);
  font-weight: 600;
}

.tabbar-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.grid-two,
.grid-three,
.grid-room,
.feed-layout,
.profile-layout {
  display: grid;
  gap: 0.8rem;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-room {
  grid-template-columns: 1.15fr 0.85fr;
}

.feed-layout {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.profile-layout {
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

.home-latest-card,
.home-action-card,
.home-match-card {
  padding: 1rem;
  margin-bottom: 0.6rem;
}

.home-latest-subtext {
  margin-top: 0.22rem;
}

.home-subtitle,
.home-match-note {
  margin: 0.72rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-record-button {
  width: 100%;
  margin-top: 0.8rem;
}

.home-update-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.78rem;
  align-items: center;
  padding: 0.72rem;
}

.home-update-empty {
  grid-template-columns: 1fr;
}

.home-update-media {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 219, 153, 0.38), transparent 36%),
    rgba(255, 252, 246, 0.96);
}

.home-update-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-update-media-empty {
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.35rem;
}

.home-update-body {
  min-width: 0;
}

.home-update-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-update-name {
  font-size: 0.96rem;
  line-height: 1.2;
}

.home-update-time {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.home-update-headline,
.home-update-dishes {
  margin: 0.22rem 0 0;
}

.home-update-headline {
  color: var(--ink);
  line-height: 1.45;
}

.home-update-dishes {
  display: grid;
  gap: 0.38rem;
}

.home-update-dish-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.home-update-dish-name {
  min-width: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-match-card.reveal-pulse {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(189, 95, 45, 0.14);
  border-color: rgba(189, 95, 45, 0.26);
}

.intro-card,
.prompt-card,
.room-card,
.side-panel,
.relationship-card,
.affinity-card,
.flow-card,
.log-feature,
.kitchen-profile-card {
  padding: 1.3rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.kitchen-profile-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.profile-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff8f1;
  font-weight: 700;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--accent) 0%, #d68046 100%);
  box-shadow: 0 14px 32px rgba(189, 95, 45, 0.24);
}

.profile-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footprint-favorites {
  margin-top: 1rem;
}

.footprint-chip-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.footprint-chip {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footprint-favorite-line,
.footprint-empty {
  margin: 0.72rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.compact-head {
  margin-bottom: 1rem;
}

.my-head {
  align-items: flex-start;
  gap: 0.8rem;
}

.my-logout-button {
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(112, 78, 43, 0.06);
}

.timeline-list {
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-day {
  font-size: 0.88rem;
  color: var(--accent-deep);
  font-weight: 600;
}

.timeline-body strong {
  display: block;
}

.timeline-body p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline-actions {
  margin-top: 0.55rem;
}

#dish-name {
  font-size: 1.05rem;
  width: 100%;
  min-height: 6.2rem;
  resize: vertical;
}

.previewable-image {
  cursor: zoom-in;
}

.timeline-thumb {
  margin-top: 0.6rem;
}

.timeline-thumb img {
  display: block;
  width: min(100%, 132px);
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.82);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-lightbox__image {
  display: block;
  max-width: min(92vw, 900px);
  max-height: 86vh;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body.lightbox-open {
  overflow: hidden;
}

.metric-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 251, 244, 0.8);
  border: 1px solid var(--line);
}

.soft-list {
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.9;
}

.flow-card {
  min-height: 180px;
}

.room-scene {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.voice-stage {
  min-height: 320px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 214, 132, 0.45), transparent 24%),
    linear-gradient(180deg, rgba(236, 160, 76, 0.12), rgba(91, 123, 88, 0.14));
  border: 1px solid rgba(112, 78, 43, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.stage-ring {
  position: absolute;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(189, 95, 45, 0.22);
  border-radius: 999px;
  animation: pulse 3.2s ease-in-out infinite;
}

.stage-center {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.stage-center span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.stage-center strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1.4rem;
}

.status-card {
  padding: 0.9rem 1rem;
}

.composer {
  margin-top: 1rem;
}

.composer label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
  margin-top: 1rem;
}

.composer-row {
  display: flex;
  gap: 0.7rem;
}

.composer input,
.composer textarea,
.composer-row input {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(112, 78, 43, 0.14);
  background: rgba(255, 252, 246, 0.9);
  color: var(--ink);
}

.composer-row input {
  flex: 1;
  min-width: 0;
}

.composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 7rem;
}

.quick-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.quick-chip {
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.8);
  border: 1px solid rgba(112, 78, 43, 0.12);
}

.active-chip {
  background: var(--accent);
  color: #fff8f1;
  box-shadow: 0 12px 24px rgba(189, 95, 45, 0.18);
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.snapshot-box {
  padding: 1rem;
  background: rgba(255, 252, 246, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.ghost-link {
  background: none;
  border: 0;
  color: var(--accent-deep);
  cursor: pointer;
  font-weight: 600;
}

.snapshot-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.snapshot-item {
  padding: 0.8rem;
}

.snapshot-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.snapshot-badge {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.tone-note {
  padding: 1rem;
  background: rgba(71, 107, 74, 0.08);
  border-radius: 24px;
}

.log-feature {
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(246, 234, 215, 0.9)),
    var(--paper);
}

.log-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.log-card,
.relationship-item,
.next-up-item,
.affinity-card-item {
  padding: 1rem;
}

.log-tags,
.affinity-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.tag {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(71, 107, 74, 0.08);
  color: var(--leaf);
  font-size: 0.82rem;
}

.affinity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed-column,
.feed-side {
  display: grid;
  gap: 1rem;
}

.inspiration-stream {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.stream-head h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  margin: 0;
  line-height: 1.1;
}

.inspiration-block {
  display: grid;
  gap: 0.55rem;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.inspiration-block.reveal-pulse {
  transform: translateY(-2px);
}

.inspiration-block.reveal-pulse .match-group-card,
.inspiration-block.reveal-pulse .match-empty-card {
  box-shadow: 0 16px 30px rgba(189, 95, 45, 0.14);
  border-color: rgba(189, 95, 45, 0.26);
}

.inspiration-subhead {
  margin-bottom: -0.1rem;
}

.inspiration-subhead h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.02rem;
  line-height: 1.2;
}

.stream-count-head {
  justify-content: flex-end;
}

.community-feed-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.78rem;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 6.1rem;
  transform: translateX(-50%) translateY(16px);
  width: min(420px, calc(100% - 1.2rem));
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(38, 33, 27, 0.92);
  color: #fffaf1;
  line-height: 1.45;
  font-size: 0.92rem;
  box-shadow: 0 18px 40px rgba(28, 20, 14, 0.22);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 45;
}

.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast[data-tone="success"] {
  background: rgba(71, 107, 74, 0.95);
}

.app-toast[data-tone="accent"] {
  background: rgba(156, 69, 33, 0.96);
}

.app-toast[data-tone="warning"] {
  background: rgba(119, 73, 31, 0.96);
}

.community-feed-empty {
  grid-template-columns: 1fr;
}

.community-feed-media {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 219, 153, 0.38), transparent 36%),
    rgba(255, 252, 246, 0.96);
}

.community-feed-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-feed-media-empty {
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

.community-feed-body {
  min-width: 0;
}

.community-feed-actions {
  margin-top: 0.55rem;
}

.community-feed-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.community-feed-meta {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.community-feed-dish {
  margin: 0.28rem 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.08rem;
  line-height: 1.18;
}

.community-feed-subline {
  margin-top: 0.45rem;
}

.community-feed-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cuisine-badge {
  margin-top: 0.42rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(189, 95, 45, 0.18);
  background: rgba(189, 95, 45, 0.08);
  color: var(--accent-deep);
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}

.cuisine-badge:hover {
  transform: translateY(-1px);
}

.discovery-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
}

.discovery-modal[hidden] {
  display: none !important;
}

.discovery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 18, 12, 0.52);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.discovery-modal__card {
  width: min(420px, 100%);
  padding: 1rem 1rem 1.05rem;
}

.discovery-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.discovery-modal__body {
  margin-top: 0.6rem;
}

.discovery-modal__list {
  display: grid;
  gap: 0.65rem;
}

.discovery-modal__section + .discovery-modal__section {
  margin-top: 0.78rem;
}

.discovery-modal__section-label {
  margin: 0 0 0.3rem;
  color: var(--accent-deep);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.discovery-modal__summary {
  margin: 0;
  color: var(--ink);
  line-height: 1.58;
}

.discovery-modal__item {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.84);
  border: 1px solid var(--line);
}

.discovery-modal__dish {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1rem;
}

.discovery-modal__label,
.discovery-modal__story,
.discovery-modal__feedback {
  margin: 0.35rem 0 0;
  line-height: 1.55;
}

.discovery-modal__label {
  color: var(--accent-deep);
  font-size: 0.88rem;
}

.discovery-modal__story,
.discovery-modal__feedback {
  color: var(--muted);
  font-size: 0.9rem;
}

.discovery-modal__feedback {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(112, 78, 43, 0.1);
}

body.modal-open {
  overflow: hidden;
}

.hot-dishes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.section-subtext {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hot-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.72rem 0.84rem;
}

.hot-dish-empty {
  min-height: 0;
}

.hot-rank-main {
  min-width: 0;
}

.hot-rank-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hot-rank-title-row strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.98rem;
  line-height: 1.2;
}

.hot-rank-users {
  margin: 0.32rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.84rem;
}

.hot-rank-actions,
.new-dish-actions,
.match-detail-actions {
  margin-top: 0.55rem;
}

.new-dishes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.new-dish-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.72rem 0.8rem;
}

.new-dish-empty {
  grid-template-columns: 1fr;
}

.new-dish-thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 219, 153, 0.38), transparent 36%),
    rgba(255, 252, 246, 0.96);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  font-size: 1.05rem;
}

.new-dish-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-dish-body {
  min-width: 0;
}

.new-dish-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.55rem;
}

.new-dish-head strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.98rem;
  line-height: 1.2;
}

.new-dish-meta,
.new-dish-note {
  margin: 0.28rem 0 0;
  color: var(--muted);
}

.new-dish-meta {
  font-size: 0.78rem;
  line-height: 1.35;
}

.new-dish-note {
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-post-card {
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.quick-post-card[hidden] {
  display: none !important;
}

body.guest-mode #quick-post {
  display: none;
}

body.guest-mode .profile-layout,
body.guest-mode .grid-two,
body.guest-mode .affinity-card,
body.guest-mode [data-view="my"] .section-head {
  display: none;
}

.quick-post-form {
  display: grid;
  gap: 0.8rem;
}

.photo-upload-box {
  display: grid;
  gap: 0.7rem;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(112, 78, 43, 0.26);
  background: rgba(255, 252, 246, 0.82);
  color: var(--accent-deep);
  font-weight: 600;
  cursor: pointer;
}

.photo-preview {
  min-height: 170px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 219, 153, 0.3), transparent 30%),
    rgba(255, 252, 246, 0.95);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.photo-preview.empty {
  font-size: 0.95rem;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.match-group {
  display: grid;
  gap: 0.8rem;
}

.match-empty-card {
  padding: 0.95rem 1rem;
  min-height: 0;
}

.match-group-card {
  padding: 0.9rem 0.95rem 0.85rem;
  overflow: hidden;
}

.match-group-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.match-summary-line {
  margin: 0.3rem 0 0;
}

.match-user-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.match-user-pill,
.match-user-more {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.match-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.match-thumb-row img,
.match-detail-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.match-details {
  margin-top: 0.65rem;
}

.match-details summary {
  cursor: pointer;
  color: var(--accent-deep);
  font-weight: 600;
}

.match-detail-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.match-detail-item {
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid var(--line);
}

.match-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.match-detail-dish {
  margin: 0.35rem 0 0.5rem;
  font-weight: 600;
}

.match-detail-thumb {
  margin-bottom: 0.55rem;
}

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(112, 78, 43, 0.16);
  background: rgba(255, 252, 246, 0.88);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.like-button:hover {
  background: rgba(255, 245, 236, 0.98);
  color: var(--accent-deep);
}

.like-button:active {
  transform: scale(0.97);
}

.like-button.is-liked {
  background: rgba(189, 95, 45, 0.12);
  border-color: rgba(189, 95, 45, 0.24);
  color: var(--accent-deep);
}

.like-button.is-loading {
  opacity: 0.78;
}

.like-button.is-disabled,
.like-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.like-button--compact {
  min-height: 1.8rem;
  padding: 0.34rem 0.62rem;
  font-size: 0.78rem;
}

.match-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.match-group-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.group-count {
  color: var(--accent-deep);
  font-weight: 600;
}

.feed-card {
  padding: 1.2rem;
  overflow: hidden;
}

.feed-topline,
.feed-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.feed-photo {
  margin: 1rem 0 0.9rem;
  width: 100%;
  max-width: 100%;
  min-height: 140px;
  max-height: 220px;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 219, 153, 0.46), transparent 28%),
    linear-gradient(135deg, rgba(189, 95, 45, 0.16), rgba(71, 107, 74, 0.14));
  font-family: "Noto Serif SC", serif;
  font-size: 1.35rem;
}

.feed-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
}

.feed-note {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.comment-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.comment-item {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid var(--line);
  color: var(--muted);
}

.invite-script {
  min-height: 100%;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.82;
  }
}

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

.learning-shell {
  padding-top: 1.2rem;
}

.learning-hero,
.learning-panel {
  padding: 1rem;
}

.learning-hero h1 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.15;
}

.learning-hero-note,
.learning-message,
.learning-empty,
.learning-dictionary-story {
  color: var(--muted);
  line-height: 1.55;
}

.learning-back-link {
  display: inline-flex;
  margin-top: 0.8rem;
}

.learning-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.learning-unknown-list,
.learning-dictionary-grid {
  display: grid;
  gap: 0.65rem;
}

.learning-unknown-item,
.learning-dictionary-item {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  border-radius: 18px;
  padding: 0.8rem 0.88rem;
  text-align: left;
  color: var(--ink);
}

.learning-unknown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.learning-unknown-dish,
.learning-dictionary-head strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1rem;
}

.learning-unknown-count,
.learning-dictionary-label {
  color: var(--accent-deep);
  font-size: 0.86rem;
}

.learning-dictionary-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.learning-dictionary-story {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.learning-form {
  display: grid;
  gap: 0.68rem;
}

.learning-label {
  font-size: 0.86rem;
  color: var(--accent-deep);
}

.learning-form input,
.learning-form select,
.learning-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(112, 78, 43, 0.14);
  background: rgba(255, 252, 246, 0.95);
  color: var(--ink);
}

.learning-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.learning-form-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .hero,
  .grid-two,
  .grid-room,
  .grid-three,
  .feed-layout,
  .profile-layout,
  .metric-row,
  .profile-stats,
  .affinity-grid,
  .log-list {
    grid-template-columns: 1fr;
  }

  .room-scene {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 0.75rem;
  }

  .panel-topline,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell,
  .app-shell {
    width: min(100% - 0.75rem, 460px);
    max-width: 100%;
  }

  .app-shell {
    margin-bottom: 1.55rem;
  }

  .hero {
    padding: 0.45rem 0 0.8rem;
    gap: 0.9rem;
  }

  .install-banner {
    margin-top: 0.3rem;
    margin-bottom: 0.2rem;
  }

  .install-banner-card {
    padding: 0.88rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .install-banner-text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .install-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-install-hint {
    bottom: calc(80px + env(safe-area-inset-bottom));
    padding: 0.72rem 0.8rem;
    gap: 0.62rem;
    align-items: flex-start;
    width: min(88vw, 420px);
  }

  .home-install-hint__title {
    font-size: 0.98rem;
  }

  .home-install-hint__intro {
    font-size: 0.86rem;
    line-height: 1.34;
  }

  .home-install-hint__steps {
    gap: 0.16rem;
  }

  .home-install-hint__step-text {
    font-size: 0.88rem;
  }

  .home-install-hint__actions {
    justify-content: flex-end;
  }

  .discovery-modal__card {
    padding: 0.92rem;
  }

  .discovery-modal__dish {
    font-size: 0.96rem;
  }

  .discovery-modal__label,
  .discovery-modal__story,
  .discovery-modal__feedback {
    font-size: 0.86rem;
  }

  .timeline-item {
    grid-template-columns: 72px 1fr;
    gap: 0.72rem;
  }

  .timeline-thumb img {
    width: min(100%, 110px);
    height: 82px;
  }

  .eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .card {
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.15rem);
    max-width: none;
    line-height: 1.02;
  }

  .hero-title-name,
  .hero-title-question {
    display: block;
  }

  .hero-title-name {
    margin-bottom: 0.18rem;
  }

  .hero-text {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

.hero-panel {
    padding: 1rem;
    gap: 0.65rem;
  }

  .hero-actions {
    margin: 0.9rem 0 0.7rem;
    gap: 0.65rem;
  }

  .hero-points {
    margin-top: 0.9rem;
    gap: 0.4rem;
  }

  .hero-points li {
    padding: 0.48rem 0.75rem;
    font-size: 0.9rem;
  }

  .hero-panel h2 {
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .hero-panel-note {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .starter-stack-compact {
    gap: 0.42rem;
  }

  .starter-activity-row,
  .starter-empty {
    min-height: 2.45rem;
    padding: 0.62rem 0.78rem;
    border-radius: 16px;
  }

  .hero-actions,
  .composer-row {
    flex-direction: column;
  }

  .feed-topline,
  .feed-actions {
    align-items: flex-start;
  }

  .feed-card,
  .feed-photo,
  .photo-preview {
    max-width: 100%;
  }

  .match-group-card {
    padding: 0.8rem 0.82rem 0.78rem;
  }

  .hot-rank-row {
    padding: 0.66rem 0.72rem;
  }

  .community-feed-card {
    grid-template-columns: 72px 1fr;
    gap: 0.68rem;
    padding: 0.68rem;
  }

  .home-update-card {
    grid-template-columns: 64px 1fr;
    gap: 0.66rem;
    padding: 0.66rem;
  }

  .home-update-media {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .home-update-name {
    font-size: 0.92rem;
  }

  .home-update-time,
  .home-update-dishes {
    font-size: 0.78rem;
  }

  .like-button {
    min-height: 1.85rem;
    padding: 0.36rem 0.62rem;
    font-size: 0.78rem;
  }

  .like-button--compact {
    min-height: 1.7rem;
    padding: 0.28rem 0.56rem;
    font-size: 0.74rem;
  }

  .app-toast {
    bottom: 5.7rem;
    padding: 0.82rem 0.92rem;
    font-size: 0.88rem;
  }

  .inspiration-stream {
    padding: 0.82rem;
    gap: 0.85rem;
  }

  .stream-head h2 {
    font-size: 1.28rem;
  }

  .section-subtext {
    margin-top: 0.12rem;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .new-dish-card {
    grid-template-columns: 48px 1fr;
    gap: 0.62rem;
    padding: 0.62rem 0.68rem;
  }

  .new-dish-thumb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .new-dish-head strong {
    font-size: 0.9rem;
  }

  .new-dish-meta,
  .new-dish-note {
    font-size: 0.79rem;
  }

  .hot-dishes-list,
  .new-dishes-list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .inspiration-subhead h3 {
    font-size: 0.98rem;
  }

  .community-feed-media {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .community-feed-dish {
    font-size: 0.98rem;
  }

  .community-feed-meta {
    font-size: 0.72rem;
  }

  .community-feed-note {
    margin-top: 0.42rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hot-rank-title-row strong {
    font-size: 0.95rem;
  }

  .hot-rank-users {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .match-group-summary h3 {
    font-size: 1rem;
  }

  .match-user-list {
    margin-top: 0.6rem;
    gap: 0.4rem;
  }

  .match-user-pill,
  .match-user-more {
    padding: 0.3rem 0.58rem;
    font-size: 0.79rem;
  }

  .match-details {
    margin-top: 0.6rem;
  }

  .match-detail-item {
    padding: 0.68rem;
  }

  .match-thumb-row img,
  .match-detail-thumb img {
    height: 58px;
  }

  .learning-hero,
  .learning-panel {
    padding: 0.86rem;
  }

  .learning-hero h1 {
    font-size: 1.58rem;
  }

  .learning-unknown-item,
  .learning-dictionary-item {
    padding: 0.72rem 0.76rem;
  }

}

/* Admin panel */
.admin-users-card {
  padding: 0;
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-users-table th,
.admin-users-table td {
  padding: 0.62rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border, #e8e0d8);
  white-space: nowrap;
}

.admin-users-table th {
  background: var(--color-surface-raised, #f6f1eb);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-text-secondary, #8a7a6a);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-users-table tr:last-child td {
  border-bottom: none;
}

.admin-users-table tr:hover td {
  background: var(--color-surface-hover, #f9f5f0);
}

.admin-loading {
  text-align: center;
  color: var(--color-text-secondary, #8a7a6a);
  padding: 1.5rem;
  margin: 0;
}
