:root {
  --bg: #fbf7f2;
  --bg-deep: #eee2d3;
  --surface: rgba(255, 252, 248, 0.94);
  --surface-strong: rgba(255, 255, 253, 0.98);
  --surface-warm: rgba(246, 239, 231, 0.96);
  --text: #1b1816;
  --muted: #7c7169;
  --line: rgba(104, 87, 74, 0.12);
  --shadow: 0 20px 44px rgba(47, 36, 30, 0.1);
  --accent: #121010;
  --accent-soft: #f1e3cc;
  --accent-deep: #8f714a;
  --green: #5d7a6e;
  --green-soft: rgba(120, 151, 137, 0.18);
  --blue: #7f8799;
  --blue-soft: rgba(143, 151, 170, 0.18);
  --gold: #c7a46d;
  --danger: #c45872;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(232, 218, 205, 0.6), transparent 34%),
    radial-gradient(circle at top right, rgba(247, 240, 232, 0.9), transparent 28%),
    linear-gradient(180deg, #fffdfb 0%, var(--bg) 52%, #f3ece4 100%);
  font-family: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.noscript-banner {
  padding: 14px 18px;
  text-align: center;
  background: #fff3d1;
  color: #6d531a;
}

.background-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}

.orb-a {
  top: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(214, 196, 181, 0.28);
}

.orb-b {
  right: -60px;
  bottom: 120px;
  width: 180px;
  height: 180px;
  background: rgba(239, 229, 217, 0.34);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 20px 16px calc(120px + env(safe-area-inset-bottom));
}

.app-shell[data-active-view]:not([data-active-view="menu"]) .hero,
.app-shell[data-active-view]:not([data-active-view="menu"]) .stats-grid {
  display: none;
}

.app-shell[data-active-view]:not([data-active-view="menu"]) .views {
  margin-top: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 253, 250, 0.99), rgba(247, 240, 233, 0.95)),
    var(--surface);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(199, 164, 109, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-copy,
.hero-spotlight {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.panel-title-row h2,
.modal-head h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  line-height: 1.12;
}

.hero h1 {
  font-size: 2.1rem;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-spotlight {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 235, 0.98)),
    var(--surface-strong);
  border: 1px solid rgba(143, 113, 74, 0.14);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.spotlight-grid h2 {
  font-size: 1.45rem;
}

.spotlight-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.spotlight-aside {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.dish-emoji {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(143, 113, 74, 0.08);
  font-size: 1.6rem;
}

.identity-panel {
  margin-top: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.99), rgba(247, 240, 233, 0.96)),
    var(--surface);
}

#view-account .identity-panel {
  margin-top: 0;
}

.dish-emoji.large {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: 2rem;
}

.dish-media {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(143, 113, 74, 0.08);
}

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

.dish-media.large {
  width: 72px;
  height: 72px;
  border-radius: 24px;
}

.spotlight-meta,
.meta-row,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill,
.category-tag,
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(184, 167, 149, 0.16);
  font-size: 0.86rem;
}

.stats-grid,
.summary-grid,
.rank-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.stat-card,
.summary-card,
.rank-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card strong,
.summary-card strong,
.rank-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.stat-card span,
.summary-card span,
.rank-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.views {
  margin-top: 16px;
}

.view {
  display: none;
  animation: view-fade 180ms ease;
}

.view.active {
  display: block;
}

.section-panel,
.footer-note {
  padding: 20px;
}

.footer-note {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.data-panel {
  margin-top: 16px;
}

.data-pills {
  margin-top: 16px;
}

.cloud-stack {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(181, 124, 151, 0.2);
}

.cloud-form {
  margin-top: 14px;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-title-row h2 {
  font-size: 1.45rem;
}

.helper-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(184, 167, 149, 0.16);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#cloudAnonKey,
#cloudRoomToken {
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(199, 164, 109, 0.38);
  box-shadow: 0 0 0 4px rgba(199, 164, 109, 0.12);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.span-2 {
  grid-column: span 2;
}

.photo-preview {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(143, 113, 74, 0.18);
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-preview-empty {
  padding: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  padding: 10px 14px;
  border: 1px solid rgba(184, 167, 149, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  transition: all 180ms ease;
}

.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(18, 16, 16, 0.22);
}

.account-switcher {
  margin-top: 14px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-chip-emoji {
  font-size: 1rem;
}

.account-chip-role {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  font-size: 0.78rem;
}

.card-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.card-list.compact {
  margin-top: 0;
}

.dish-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(248, 242, 236, 0.98)),
    var(--surface-strong);
  border: 1px solid rgba(184, 167, 149, 0.14);
  box-shadow: var(--shadow);
}

.dish-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, rgba(18, 16, 16, 0.92), rgba(199, 164, 109, 0.92));
}

.dish-photo-banner {
  margin: -18px -18px 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.6);
}

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

.account-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 235, 0.97)),
    var(--surface-strong);
  border: 1px solid rgba(184, 167, 149, 0.16);
  box-shadow: var(--shadow);
}

.account-card.active {
  border-color: rgba(143, 113, 74, 0.24);
  box-shadow: 0 22px 48px rgba(18, 16, 16, 0.1);
}

.account-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(245, 238, 230, 0.9);
  border: 1px solid rgba(143, 113, 74, 0.16);
  font-size: 0.86rem;
}

.account-tag-compact {
  padding: 5px 9px;
  font-size: 0.8rem;
}

.account-tag-emoji {
  font-size: 0.95rem;
}

.account-tag-role {
  color: var(--muted);
  font-size: 0.78rem;
}

.dish-card[data-category-theme="meat"] {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(246, 237, 238, 0.98)),
    var(--surface-strong);
}

.dish-card[data-category-theme="meat"]::before {
  background: linear-gradient(90deg, #121010, #d8b5bf);
}

[data-category-theme="meat"] .category-tag {
  background: rgba(246, 236, 238, 0.94);
  border-color: rgba(190, 156, 165, 0.2);
}

[data-category-theme="meat"] .dish-emoji,
[data-category-theme="meat"] .dish-media {
  background: rgba(248, 240, 242, 0.96);
}

.dish-card[data-category-theme="veg"] {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(241, 246, 242, 0.97)),
    var(--surface-strong);
}

.dish-card[data-category-theme="veg"]::before {
  background: linear-gradient(90deg, #52645b, #b9c9bf);
}

[data-category-theme="veg"] .category-tag {
  background: rgba(237, 244, 239, 0.92);
  border-color: rgba(116, 138, 127, 0.18);
}

[data-category-theme="veg"] .dish-emoji,
[data-category-theme="veg"] .dish-media {
  background: rgba(241, 247, 243, 0.94);
}

.dish-card[data-category-theme="soup"] {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(241, 243, 248, 0.97)),
    var(--surface-strong);
}

.dish-card[data-category-theme="soup"]::before {
  background: linear-gradient(90deg, #62687b, #c2c7d6);
}

[data-category-theme="soup"] .category-tag {
  background: rgba(239, 241, 246, 0.94);
  border-color: rgba(124, 132, 151, 0.18);
}

[data-category-theme="soup"] .dish-emoji,
[data-category-theme="soup"] .dish-media {
  background: rgba(243, 244, 248, 0.96);
}

.dish-card[data-category-theme="staple"] {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 232, 0.98)),
    var(--surface-strong);
}

.dish-card[data-category-theme="staple"]::before {
  background: linear-gradient(90deg, #8f714a, #ddc393);
}

[data-category-theme="staple"] .category-tag {
  background: rgba(247, 241, 230, 0.94);
  border-color: rgba(199, 164, 109, 0.2);
}

[data-category-theme="staple"] .dish-emoji,
[data-category-theme="staple"] .dish-media {
  background: rgba(250, 245, 238, 0.96);
}

.card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.card-main h3 {
  margin: 6px 0 8px;
  font-size: 1.18rem;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.meta-row {
  margin-top: 14px;
}

.card-section {
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 30px rgba(18, 16, 16, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.btn:hover,
.chip:hover,
.tab-btn:hover,
.star-btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.chip:active,
.tab-btn:active,
.star-btn:active {
  transform: translateY(0);
}

.btn.secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 236, 228, 0.98));
  box-shadow: 0 10px 24px rgba(47, 36, 30, 0.08);
}

.btn.ghost {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 113, 74, 0.14);
  box-shadow: none;
}

.btn.ghost.danger-btn {
  color: var(--danger);
  border-color: rgba(196, 88, 114, 0.18);
}

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.button-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row {
  margin-top: 16px;
}

.btn:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

details {
  margin-top: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(178, 119, 147, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

summary {
  padding: 14px 16px;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid rgba(178, 119, 147, 0.12);
}

.details-body {
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
}

.details-body h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.details-body ul,
.details-body ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius-xl);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(181, 122, 149, 0.22);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.status-new {
  background: rgba(18, 16, 16, 0.06);
  color: var(--accent-deep);
  border-color: rgba(18, 16, 16, 0.1);
}

.status-accepted {
  background: var(--blue-soft);
  color: #534a81;
  border-color: rgba(125, 107, 177, 0.18);
}

.status-cooking {
  background: rgba(199, 164, 109, 0.16);
  color: #7d6038;
  border-color: rgba(199, 164, 109, 0.18);
}

.status-done {
  background: var(--green-soft);
  color: #2f6e5a;
  border-color: rgba(75, 141, 121, 0.18);
}

.progress-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.progress-step {
  position: relative;
  text-align: center;
  color: #a49588;
}

.progress-step::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: rgba(203, 191, 178, 0.36);
}

.progress-step:last-child::after {
  display: none;
}

.progress-step i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(241, 233, 224, 0.9);
  font-style: normal;
}

.progress-step strong {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.progress-step.active {
  color: var(--text);
}

.progress-step.active i {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.note-box,
.inline-review,
.modal-preview {
  margin-top: 14px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.6;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(184, 167, 149, 0.12);
}

.modal-preview-card {
  overflow: hidden;
  border-radius: inherit;
}

.modal-preview .dish-photo-banner {
  margin: -14px -14px 14px;
}

.modal-preview [data-category-theme="meat"] {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(246, 237, 238, 0.98));
}

.modal-preview [data-category-theme="veg"] {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 242, 0.98));
}

.modal-preview [data-category-theme="soup"] {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(241, 243, 248, 0.98));
}

.modal-preview [data-category-theme="staple"] {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(247, 241, 232, 0.98));
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(18, 16, 16, 0.2);
  backdrop-filter: blur(10px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 254, 252, 0.99), rgba(246, 240, 233, 0.98));
  border: 1px solid rgba(184, 167, 149, 0.16);
  box-shadow: 0 28px 50px rgba(18, 16, 16, 0.14);
}

.modal-head p {
  margin: 0 0 8px;
}

.modal-head h2 {
  font-size: 1.45rem;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 18px rgba(18, 16, 16, 0.08);
}

.rating-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.star-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 14px;
  color: #d0b9a2;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.2rem;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.star-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.tab-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: min(calc(100% - 24px), 480px);
  padding: 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(184, 167, 149, 0.16);
  border-radius: 24px;
  background: rgba(255, 251, 247, 0.94);
  box-shadow: 0 18px 40px rgba(18, 16, 16, 0.1);
  backdrop-filter: blur(22px);
}

.tab-btn {
  min-height: 52px;
  border: none;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  transition: all 180ms ease;
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 26px rgba(18, 16, 16, 0.2);
}

.tab-label {
  font-size: 0.94rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  z-index: 40;
  min-width: 180px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  color: #fff;
  text-align: center;
  background: rgba(24, 21, 20, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -12px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.micro-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.inline-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.panel-locked {
  position: relative;
}

.panel-locked::after {
  content: "当前账号只读";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(245, 238, 230, 0.96);
  border: 1px solid rgba(143, 113, 74, 0.14);
  font-size: 0.8rem;
  font-weight: 700;
}

.review-body {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

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

@keyframes view-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(199, 164, 109, 0.16);
}

@media (min-width: 420px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
