@font-face {
  font-family: "EatJoyLobster";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lobster-latin-400.woff2") format("woff2");
}

:root {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --text: #101010;
  --muted: #6c6c6c;
  --line: #e9e9e9;
  --line-strong: #111111;
  --primary: #ff9f45;
  --primary-invert: #ffffff;
  --danger: #9e1212;
  --chip: #f3f3f3;
  --chip-active: #111111;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --accent-cuisine: #ff6b4a;
  --accent-district: #23a6d5;
  --accent-scene: #7c5cff;
  --accent-price: #22a66b;
  --accent-community: #f2b705;
  --gold: #ff8a00;
  --gold-muted: #e5dccf;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
}

body {
  margin: 0;
  font-family: "Times New Roman", "KaiTi", "楷体", "STKaiti", "Kaiti SC", serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.bg-glow,
.cartoon-decor {
  display: none;
}

.app-shell {
  width: 393px;
  max-width: calc(100vw - 24px);
  height: 852px;
  max-height: calc(100vh - 24px);
  margin: 0 auto;
  background: var(--panel);
  border-radius: 28px;
  border: 0;
  box-shadow: var(--shadow-soft);
  padding: 14px 12px 88px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.app-shell::before {
  display: none;
}

.topbar {
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 6px 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 6;
}

.brand-block {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-wordmark {
  margin: 0;
  display: inline-block;
  font-family: "EatJoyLobster", "Brush Script MT", "Segoe Script", cursive;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.035em;
  padding: 0 4px 12px 0;
  margin-bottom: -8px;
  color: #d95536;
  background: linear-gradient(90deg, #d95536 0%, #d99b2b 25%, #78a95a 48%, #2f6f5e 68%, #4f78b8 82%, #9f3d5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 2px 0 rgba(255, 232, 190, 0.95)) drop-shadow(2px 4px 0 rgba(47, 111, 94, 0.13));
  transform: rotate(-2deg);
}

.brand-wordmark::after {
  content: none;
}

.brand-subtitle {
  margin: 0;
  display: inline-block;
  color: #222;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 600;
  font-family: "STXingkai", "华文行楷", "KaiTi", "楷体", "Brush Script MT", "Segoe Script", cursive;
  letter-spacing: 0;
  transform: skewX(-8deg) rotate(-1deg);
  border-bottom: 2px solid #111;
  padding: 0 2px 3px;
  white-space: nowrap;
}

.auth-box {
  display: none;
  gap: 8px;
  align-items: center;
  width: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

main {
  margin-top: 4px;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 5;
}

h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  color: #111;
}

.tabs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 4px;
  background: #fff;
  border: 0;
  border-radius: 24px;
  padding: 7px;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tab {
  flex: 1;
  border: 0;
  color: var(--text);
  background: #fff;
  border-radius: 16px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.tab.active {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.tab:hover,
.tab:focus-visible,
.tab.active:hover,
.tab.active:focus-visible {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.tab-icon {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: block;
  position: relative;
}

.tab-icon::before,
.tab-icon::after {
  content: "";
  position: absolute;
  background: #fff;
}

.tab-icon-restaurants {
  background: var(--accent-cuisine);
}

.tab-icon-restaurants::before {
  width: 4px;
  height: 13px;
  left: 7px;
  top: 5px;
  border-radius: 3px;
}

.tab-icon-restaurants::after {
  width: 8px;
  height: 8px;
  right: 5px;
  top: 5px;
  border-radius: 50%;
  box-shadow: 0 7px 0 -2px #fff;
}

.tab-icon-community {
  background: var(--accent-community);
}

.tab-icon-community::before {
  width: 13px;
  height: 9px;
  left: 5px;
  top: 6px;
  border-radius: 6px;
}

.tab-icon-community::after {
  width: 6px;
  height: 6px;
  left: 8px;
  top: 13px;
  transform: rotate(45deg);
}

.tab-icon-apply {
  background: var(--accent-scene);
}

.tab-icon-apply::before {
  width: 12px;
  height: 3px;
  left: 6px;
  top: 10px;
  border-radius: 3px;
}

.tab-icon-apply::after {
  width: 3px;
  height: 12px;
  left: 10px;
  top: 6px;
  border-radius: 3px;
}

.tab-icon-profile {
  background: var(--accent-district);
}

.tab-icon-profile::before {
  width: 7px;
  height: 7px;
  left: 8px;
  top: 5px;
  border-radius: 50%;
}

.tab-icon-profile::after {
  width: 13px;
  height: 7px;
  left: 5px;
  bottom: 4px;
  border-radius: 9px 9px 4px 4px;
}

.panel {
  display: none;
  border-radius: 0;
  border: 0;
  padding: 4px 2px 12px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
}

.panel.active {
  display: block;
}

.home-hero {
  position: relative;
  margin-bottom: 14px;
}

.home-hero img {
  width: 100%;
  height: 138px;
  border-radius: 16px;
  object-fit: cover;
  border: 0;
  display: block;
}

.home-hero-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.controls {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  padding-left: 38px;
  background: #f5f5f5;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #111;
  border-radius: 50%;
  transform: translateY(-54%);
  z-index: 1;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -4px;
  background: #111;
  border-radius: 2px;
  transform: rotate(45deg);
}

.filter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.filter-field {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #111;
}

.filter-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.filter-cuisine .filter-icon {
  background: var(--accent-cuisine);
}

.filter-district .filter-icon {
  background: var(--accent-district);
}

.filter-scene .filter-icon {
  background: var(--accent-scene);
}

.filter-price .filter-icon {
  background: var(--accent-price);
}

.tab-icon,
.filter-icon {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transform: none;
  clip-path: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -10px 18px rgba(0, 0, 0, 0.14),
    0 7px 15px rgba(0, 0, 0, 0.16);
}

.tab-icon::before,
.tab-icon::after,
.filter-icon::before,
.filter-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.tab-icon::before,
.filter-icon::before {
  transform: skewX(7deg);
}

.tab-icon::after,
.filter-icon::after {
  transform: skewX(7deg);
}

.tab-icon-restaurants,
.filter-cuisine .filter-icon {
  background: linear-gradient(135deg, #ff4d37 0%, #ff8b2c 58%, #ffd05a 100%);
  clip-path: none;
}

.tab-icon-restaurants::before,
.filter-cuisine .filter-icon::before {
  left: 6px;
  top: 8px;
  width: 15px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: transparent;
}

.tab-icon-restaurants::after,
.filter-cuisine .filter-icon::after {
  left: 9px;
  top: 5px;
  width: 9px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 4px 12px 0 -1px rgba(255, 255, 255, 0.86);
}

.tab-icon-community {
  background: linear-gradient(135deg, #ffbf26 0%, #ff7a1a 52%, #d84b36 100%);
  clip-path: none;
}

.tab-icon-community::before {
  left: 5px;
  top: 6px;
  width: 14px;
  height: 9px;
  border-radius: 5px 5px 5px 1px;
  background: #fff;
}

.tab-icon-community::after {
  right: 4px;
  bottom: 5px;
  width: 12px;
  height: 8px;
  border-radius: 1px 5px 5px 5px;
  background: rgba(255, 255, 255, 0.86);
}

.tab-icon-apply {
  background: linear-gradient(135deg, #7857ff 0%, #4b8dff 55%, #20c7b5 100%);
  clip-path: none;
}

.tab-icon-apply::before {
  left: 7px;
  top: 5px;
  width: 11px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 2px;
  background: transparent;
}

.tab-icon-apply::after {
  left: 10px;
  top: 12px;
  width: 9px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: transparent;
  transform: skewX(7deg) rotate(-45deg);
}

.tab-icon-profile {
  background: linear-gradient(135deg, #16b6df 0%, #2b7fd8 52%, #3156b6 100%);
  clip-path: none;
}

.tab-icon-profile::before {
  left: 8px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.tab-icon-profile::after {
  left: 5px;
  bottom: 4px;
  width: 15px;
  height: 8px;
  border-radius: 8px 8px 2px 2px;
  background: rgba(255, 255, 255, 0.9);
}

.filter-district .filter-icon {
  background: linear-gradient(135deg, #16b6df 0%, #2f81d6 54%, #3049a8 100%);
  clip-path: none;
}

.filter-district .filter-icon::before {
  left: 8px;
  top: 5px;
  width: 12px;
  height: 16px;
  border-radius: 8px 8px 8px 2px;
  background: #fff;
  transform: skewX(7deg) rotate(-45deg);
}

.filter-district .filter-icon::after {
  left: 12px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2f81d6;
}

.filter-scene .filter-icon {
  background: linear-gradient(135deg, #7c5cff 0%, #c650d8 54%, #ff5c8a 100%);
  clip-path: none;
}

.filter-scene .filter-icon::before {
  left: 7px;
  top: 7px;
  width: 15px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: transparent;
}

.filter-scene .filter-icon::after {
  left: 11px;
  top: 5px;
  width: 9px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: -4px 13px 0 -1px rgba(255, 255, 255, 0.8);
}

.filter-price .filter-icon {
  background: linear-gradient(135deg, #16b86f 0%, #25a984 48%, #087a68 100%);
  clip-path: none;
}

.filter-price .filter-icon::before {
  left: 7px;
  top: 7px;
  width: 15px;
  height: 12px;
  border-radius: 2px 7px 7px 2px;
  background: #fff;
}

.filter-price .filter-icon::after {
  right: 7px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #16b86f;
}

.tab-icon,
.filter-icon {
  color: #fff;
  display: grid;
  place-items: center;
}

.tab-icon::before,
.tab-icon::after,
.filter-icon::before,
.filter-icon::after {
  content: none;
}

.tab-icon svg,
.filter-icon svg {
  width: 68%;
  height: 68%;
  transform: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14));
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
}

.filter-field select {
  text-align: center;
  text-align-last: center;
  padding: 7px 4px;
  font-size: 12px;
  border-radius: 999px;
  background: #f6f6f6;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-chip {
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  padding: 6px 11px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
}

.tag-chip.active {
  background: var(--chip-active);
  color: #fff;
  border-color: var(--chip-active);
}

.tag-chip.clear-all {
  color: var(--danger);
  background: #fff1f1;
}

.tag-chip[data-filter-key="cuisine"] {
  background: rgba(255, 107, 74, 0.14);
  color: #9d2e18;
}

.tag-chip[data-filter-key="district"] {
  background: rgba(35, 166, 213, 0.14);
  color: #126d91;
}

.tag-chip[data-filter-key="scene"] {
  background: rgba(124, 92, 255, 0.14);
  color: #4c36b3;
}

.tag-chip[data-filter-key="price"] {
  background: rgba(34, 166, 107, 0.14);
  color: #147141;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 0;
  padding: 10px 12px;
  font-size: 14px;
  background: #f5f5f5;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #111;
}

.multi-dd {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #f5f5f5;
  overflow: hidden;
}

.multi-dd-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.multi-dd-summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}

.multi-dd-summary::-webkit-details-marker {
  display: none;
}

.multi-dd[open] .multi-dd-summary {
  border-bottom: 1px solid #e1e1e1;
}

.multi-dd-panel {
  max-height: 180px;
  overflow: auto;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

.multi-dd-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-height: 32px;
  padding: 4px 6px;
  border-radius: 8px;
  user-select: none;
}

.multi-dd-item:hover {
  background: #fff;
}

.multi-dd-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  accent-color: var(--primary);
}

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

.card {
  border: 0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.card-clickable {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card-clickable:hover {
  border-color: rgba(217, 85, 54, 0.42);
  box-shadow: 0 8px 18px rgba(112, 78, 49, 0.13);
  transform: translateY(-1px);
  cursor: pointer;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: #111;
}

.restaurant-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 2px 14px;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

.restaurant-card:last-child {
  border-bottom: 0;
}

.restaurant-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.2;
}

.restaurant-card-body {
  min-width: 0;
}

.food-cover {
  width: 100%;
  height: 106px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0;
  border: 0;
  background: #fff;
}

.food-cover.menu-mapped {
  object-fit: contain;
  padding: 4px;
}

.content-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 0;
  margin-top: 8px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.restaurant-brief {
  color: #1f1f1f;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.1;
}

.info-cuisine {
  background: rgba(255, 107, 74, 0.14);
  color: #8f2a16;
}

.info-district {
  background: rgba(35, 166, 213, 0.14);
  color: #126d91;
}

.small-muted {
  color: var(--muted);
  font-size: 13px;
}

.filter-status {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.rating-num {
  font-weight: 700;
  color: #8a4a1c;
}

.stars {
  display: inline-block;
  position: relative;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--gold-muted);
  white-space: nowrap;
  vertical-align: -0.08em;
}

.stars-base {
  color: var(--gold-muted);
}

.stars-fill {
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
}

.stars-l {
  font-size: 20px;
}

.stars-m {
  font-size: 16px;
}

.stars-s {
  font-size: 13px;
}

.star.full {
  color: var(--gold);
}

.star.empty {
  color: var(--gold-muted);
}

.star.half {
  background: linear-gradient(90deg, var(--gold) 50%, var(--gold-muted) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.restaurant-actions {
  gap: 6px;
  margin-top: 9px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  background: #f2f2f2;
  color: var(--text);
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-invert);
  border-color: var(--primary);
}

.btn.score {
  background: #d9281e;
  color: #fff;
  box-shadow: 0 6px 14px rgba(217, 40, 30, 0.24);
}

.btn.ghost {
  background: #f2f2f2;
  color: var(--text);
}

.btn.danger {
  background: #fff1f1;
  color: var(--danger);
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-size: 12px;
  border: 0;
}

.user-chip {
  cursor: default;
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: .2s ease;
  z-index: 80;
  max-width: min(88vw, 360px);
  pointer-events: none;
}

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

.auth-dialog {
  border: 0;
  border-radius: 14px;
  width: min(92vw, 360px);
  padding: 0;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}


.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.34);
}

.confirm-dialog {
  width: min(90vw, 340px);
}

.auth-dialog .confirm-dialog-form {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.confirm-dialog-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff1f1;
  color: var(--danger);
  border: 1px solid #f0caca;
  font-weight: 900;
}

.confirm-dialog h3 {
  margin: 0;
  font-size: 18px;
}

.confirm-dialog .small-muted {
  line-height: 1.55;
}

.confirm-dialog .btn.danger {
  background: var(--danger);
  color: #fff;
}

.auth-dialog form {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.error {
  color: var(--danger);
  min-height: 20px;
  font-size: 13px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.restaurant-dialog {
  border: 0;
  border-radius: 16px;
  width: min(92vw, 390px);
  padding: 0;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.restaurant-dialog::backdrop {
  background: rgba(0, 0, 0, 0.36);
}

.restaurant-dialog-content {
  padding: 14px;
  position: relative;
  background: var(--panel);
}

.restaurant-dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  background: #fffdf8;
}

.restaurant-dialog-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 0;
}

.restaurant-dialog-img.menu-mapped {
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.dialog-rating {
  margin: 8px 0 10px;
}

.rating-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.composer {
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 10px;
  background: #fbfbfa;
  margin: 10px 0;
  display: grid;
  gap: 8px;
}

.review-item {
  border: 0;
  border-radius: 12px;
  background: #f7f7f7;
  padding: 10px;
  margin-bottom: 8px;
}

.review-item.reply {
  margin-top: 8px;
  margin-left: 22px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 0;
  background: #fff;
}

.avatar.large {
  width: 64px;
  height: 64px;
}

.review-author {
  font-size: 13px;
  font-weight: 700;
}

.uid {
  font-size: 11px;
  color: var(--muted);
}

.review-time {
  font-size: 12px;
  color: var(--muted);
}

.review-content {
  margin: 8px 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.45;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-score {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px;
}

.text-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #111;
  cursor: pointer;
  font-size: 13px;
}

.text-btn.warn {
  color: var(--danger);
}

.avatar-block {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.profile-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin: 0 0 14px;
  border-radius: 16px;
  background: #fff1e4 !important;
  color: #2c2118 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 159, 69, 0.24) !important;
}

.profile-account h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.15;
}

.profile-account .small-muted {
  color: rgba(44, 33, 24, 0.68) !important;
}

.profile-account-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-account .btn.primary {
  background: var(--primary) !important;
  color: #fff !important;
}

.profile-account .btn.ghost {
  background: #fff !important;
  color: #2c2118 !important;
}

progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--primary);
}

.workbench,
.workbench-group {
  border: 0;
  border-radius: 12px;
  background: #f7f7f7;
}

.workbench {
  margin-top: 10px;
}

.workbench > summary,
.workbench-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.workbench > summary::-webkit-details-marker,
.workbench-group > summary::-webkit-details-marker {
  display: none;
}

.workbench > summary::after,
.workbench-group > summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}

.workbench-body {
  border-top: 1px solid #e1e1e1;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.community-subtabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
}

.tab-mini {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  background: #fffaf0;
  color: var(--text);
  cursor: pointer;
}

.tab-mini.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.switch-line input {
  width: auto;
  margin: 0;
}

.hidden-block {
  display: none;
  gap: 8px;
}

@media (max-width: 800px) {
  body {
    padding: 0;
  }

  .app-shell {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 10px 10px 84px;
  }

  .brand-wordmark {
    font-size: 42px;
  }

  .brand-block {
    gap: 10px;
  }

  .brand-subtitle {
    font-size: 14px;
    white-space: normal;
  }
}
/* Local image icons for the primary navigation and home filters. */
.tab.active,
.tab:hover,
.tab:focus-visible,
.tab.active:hover,
.tab.active:focus-visible {
  background: #eef0f2;
  color: #111;
  box-shadow: none;
}

.tab-icon,
.filter-icon {
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.tab-icon::before,
.tab-icon::after,
.filter-icon::before,
.filter-icon::after {
  content: none !important;
}

.tab-icon img,
.filter-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: saturate(0.94) contrast(0.98);
  opacity: 0.98;
}
.icon-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.like-glyph {
  display: inline-block;
  width: 15px;
  height: 15px;
  color: #333;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(1px);
}
.reply-fold {
  margin-top: 8px;
}

.reply-fold summary {
  cursor: pointer;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  padding: 5px 0;
}

.reply-fold summary::-webkit-details-marker {
  display: none;
}

.reply-fold .review-replies {
  margin-top: 4px;
}
