:root {
  --ink: #251812;
  --muted: #8a7365;
  --soft: #fff7ef;
  --paper: #fffaf4;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(147, 82, 34, 0.16);
  --orange: #ff7a1a;
  --orange-2: #ffb15c;
  --deep-orange: #c94c12;
  --red: #dc3d24;
  --black: #201512;
  --gold: #e3a326;
  --shadow: 0 22px 65px rgba(101, 52, 16, 0.16);
  --glow: 0 18px 60px rgba(255, 122, 26, 0.28);
}

@media (max-width: 760px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

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

  .insight-panel {
    min-height: auto;
    padding: 13px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: var(--mobile-shadow);
  }

  .section-title h2 {
    font-size: 16px;
  }

  .rank-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .rank-row i {
    display: none;
  }

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

  .advanced-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 -12px;
    padding: 8px 12px;
    background: rgba(255, 247, 239, 0.72);
  }

  .advanced-filters label {
    display: grid;
    gap: 5px;
  }

  .advanced-filters select {
    min-width: 0;
    width: 100%;
    min-height: 36px;
    font-size: 12px;
    font-weight: 900;
  }

  .review-tags,
  .reply-preview {
    font-size: 12px;
  }

  .reply-preview {
    -webkit-line-clamp: 2;
  }

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

  .note-editor textarea {
    min-height: 86px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 177, 92, 0.36), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 122, 26, 0.22), transparent 30%),
    linear-gradient(145deg, #fffdf9 0%, #fff1df 47%, #fffaf4 100%);
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.mobile-store-trigger,
.mobile-store-modal,
.review-person,
.review-rating,
.reply-hint {
  display: none;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.beam {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.5;
  animation: drift 12s ease-in-out infinite alternate;
}

.beam-a {
  left: -18vw;
  top: -20vw;
  background: rgba(255, 122, 26, 0.34);
}

.beam-b {
  right: -20vw;
  bottom: -22vw;
  background: rgba(255, 183, 105, 0.42);
  animation-delay: -4s;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 264px minmax(620px, 1fr) 374px;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(132%);
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  box-shadow: var(--glow);
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.store-nav {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 9px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(147, 82, 34, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.store-nav::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.36);
  margin-right: 10px;
}

.store-nav span {
  flex: 1;
  line-height: 1.28;
  font-weight: 700;
}

.store-nav:hover,
.store-nav.active {
  transform: translateX(3px);
  border-color: rgba(255, 122, 26, 0.32);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(137, 72, 23, 0.12);
}

.store-nav.active::before {
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.13);
}

.store-nav strong {
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 12px;
  text-align: center;
}

.store-nav[data-store="all"] {
  min-height: 48px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.workspace {
  padding: 30px;
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  animation: rise 520ms ease both;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--deep-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h2 {
  font-size: 22px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sync-status {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 280px;
  max-width: 330px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sync-status strong,
.sync-status span {
  display: block;
}

.sync-status strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-status span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  max-height: 36px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sync-status.sync-ok {
  border-color: rgba(39, 167, 111, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.sync-status.sync-failed {
  border-color: rgba(220, 61, 36, 0.28);
  background: rgba(255, 239, 233, 0.82);
}

.sync-status.sync-failed .pulse {
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(220, 61, 36, 0.12);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27a76f;
  box-shadow: 0 0 0 7px rgba(39, 167, 111, 0.14);
  animation: pulse 1.8s ease infinite;
}

.ghost-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 122, 26, 0.32);
  border-radius: 8px;
  color: var(--deep-orange);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.top-button-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sync-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.12);
}

.sync-button.loading .button-dot {
  animation: pulse 1s ease-in-out infinite;
}

.ghost-button:hover,
.user-pill:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.user-pill {
  max-width: 190px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 122, 26, 0.26);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-lane {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  animation: rise 640ms 80ms ease both;
}

.hero-copy,
.response-meter {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 239, 0.58)),
    rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 20px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 24px solid rgba(255, 122, 26, 0.12);
  border-left-color: rgba(255, 122, 26, 0.35);
  animation: rotate 8s linear infinite;
}

.hero-copy p,
.response-meter span {
  color: var(--muted);
  font-size: 13px;
}

.hero-copy strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0;
  font-size: clamp(22px, 3vw, 34px);
}

.hero-copy span {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.response-meter {
  display: grid;
  align-content: center;
  gap: 12px;
}

.meter-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
}

.meter-track i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: var(--glow);
  transition: width 420ms ease;
}

.response-meter strong {
  font-size: 34px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric:nth-child(2) {
  animation-delay: 60ms;
}

.metric:nth-child(3) {
  animation-delay: 120ms;
}

.metric:nth-child(4) {
  animation-delay: 180ms;
}

.metric:hover,
.store-card:hover,
.review-panel:hover {
  transform: translateY(-2px);
}

.metric.clickable {
  cursor: pointer;
}

.metric.clickable:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.55);
  outline-offset: 3px;
}

.metric.clickable:active {
  transform: translateY(0);
}

.metric::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -26px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.12);
}

.metric.hot {
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.98), rgba(255, 178, 94, 0.86));
  color: #fff;
  box-shadow: var(--glow);
}

.metric.hot span,
.metric.hot em {
  color: rgba(255, 255, 255, 0.86);
}

.metric.warning {
  border-color: rgba(230, 57, 70, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 237, 230, 0.86)),
    rgba(255, 255, 255, 0.78);
}

.metric.warning strong {
  color: var(--red);
}

.metric span,
.metric em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.metric strong {
  display: block;
  margin: 11px 0 8px;
  font-size: 40px;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.insight-panel {
  align-self: start;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(126%);
  box-shadow: 0 18px 40px rgba(109, 61, 24, 0.08);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.section-title h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.ranking-list,
.issue-list,
.alert-list {
  display: grid;
  gap: 8px;
}

.alert-panel {
  max-height: 520px;
  overflow: hidden;
}

.alert-list {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.alert-list::-webkit-scrollbar {
  width: 4px;
}

.alert-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.32);
}

.rank-row,
.issue-row,
.alert-row {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(147, 82, 34, 0.12);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.rank-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.rank-row strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: 12px;
}

.rank-row span,
.rank-row em,
.rank-row i {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em,
.rank-row i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-row i {
  color: var(--deep-orange);
  font-weight: 800;
}

.issue-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.issue-row span,
.issue-row strong {
  position: relative;
  z-index: 1;
}

.issue-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 122, 26, 0.1));
}

.trend-panel {
  display: grid;
  gap: 14px;
}

.trend-stats,
.platform-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.trend-stats div,
.platform-split span {
  padding: 10px;
  border: 1px solid rgba(147, 82, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.72);
}

.trend-stats span,
.platform-split span {
  color: var(--muted);
  font-size: 12px;
}

.trend-stats strong,
.platform-split strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.mini-trend {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  min-height: 78px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.64);
}

.mini-trend i {
  display: block;
  min-height: 10px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 122, 26, 0.22));
}

.alert-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.alert-row span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--deep-orange);
  background: rgba(255, 122, 26, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.alert-row.high span {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--deep-orange));
}

.alert-row.medium span {
  color: #3a2710;
  background: #ffd45a;
}

.alert-row strong {
  font-size: 14px;
}

.alert-row em,
.empty-insight {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.store-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.store-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-card::before {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  width: var(--heat, 34%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 122, 26, 0.1));
  opacity: 0.44;
  transition: width 260ms ease;
}

.store-card.active {
  border-color: rgba(255, 122, 26, 0.58);
  box-shadow: var(--glow);
}

.store-card button {
  position: relative;
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.store-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.mini-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-stats span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.1);
  color: var(--muted);
  font-size: 12px;
}

.review-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px) saturate(128%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(36vw, 340px);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: 0;
}

.channel-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.advanced-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.46);
}

.advanced-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.advanced-filters label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.period-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 18px 0;
  flex-wrap: wrap;
}

.period-bar > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.channel-tabs button,
.period-bar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.channel-tabs button:hover,
.period-bar button:hover {
  transform: translateY(-1px);
}

.channel-tabs button.active,
.period-bar button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  box-shadow: var(--glow);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.date-range label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 250, 244, 0.78);
}

.date-range label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.date-range input {
  width: 132px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.date-range i {
  width: 14px;
  height: 1px;
  background: rgba(147, 82, 34, 0.32);
}

.date-range button {
  min-height: 34px;
  padding: 0 12px;
}

.review-table {
  display: grid;
}

.review-row {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(220px, 1.45fr) minmax(150px, 0.75fr) 72px 88px 94px;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
  animation: rowIn 240ms ease both;
}

.review-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.review-row:hover,
.review-row.active {
  background: rgba(255, 122, 26, 0.08);
  transform: translateX(3px);
}

.review-row.active::before {
  background: var(--orange);
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(45, 25, 13, 0.36);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.review-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.review-modal-card {
  position: relative;
  width: min(760px, 94vw);
  max-height: min(72vh, 680px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 232, 0.88)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 34px 90px rgba(68, 33, 10, 0.32);
  animation: modalIn 180ms ease both;
}

.review-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.review-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 44px;
}

.review-modal-head strong {
  font-size: 18px;
}

.review-modal-card h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

.review-modal-card p {
  padding: 18px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.85;
}

.review-modal-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-modal-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 122, 26, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.modal-analysis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-analysis span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--deep-orange);
  background: rgba(255, 122, 26, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.reply-compose-card {
  width: min(680px, 94vw);
}

.reply-compose-card .reply-target,
.reply-compose-card .reply-compose-note {
  padding: 0;
  border-left: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.reply-existing {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(239, 106, 25, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.reply-existing strong {
  color: var(--deep-orange);
  font-size: 13px;
}

.reply-existing span {
  color: var(--ink);
  line-height: 1.7;
}

.reply-compose-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.reply-compose-label textarea {
  width: 100%;
  min-height: 148px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.9);
  font: inherit;
  line-height: 1.7;
}

.reply-compose-label textarea:focus {
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.reply-compose-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.review-row:last-child {
  border-bottom: 0;
}

.channel {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.channel.meituan {
  background: linear-gradient(135deg, #ffd45a, #f3a514);
  color: #3a2710;
}

.channel.douyin {
  background: linear-gradient(135deg, #26201d, #4b2a1d);
}

.review-main strong,
.review-main span,
.review-main small,
.muted-cell strong,
.muted-cell span {
  display: block;
}

.review-main span,
.review-main small,
.muted-cell span,
.score,
.time {
  color: var(--muted);
  font-size: 13px;
}

.review-main {
  display: grid;
  gap: 5px;
}

.review-main strong {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.review-content {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.review-tags {
  color: var(--deep-orange);
  font-weight: 800;
}

.reply-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.severity-badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--deep-orange);
  background: rgba(255, 122, 26, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.severity-badge.high {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--deep-orange));
}

.severity-badge.medium {
  color: #3a2710;
  background: #ffd45a;
}

.status {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--deep-orange);
  font-size: 12px;
  font-weight: 800;
}

.status.risk {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--deep-orange));
}

.status.pending {
  color: #fff;
  background: linear-gradient(135deg, #7c5a2a, var(--orange));
}

.detail-drawer {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.72);
  backdrop-filter: blur(24px) saturate(130%);
  overflow-y: auto;
}

.empty-detail {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  color: var(--muted);
  text-align: center;
}

.empty-detail strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
}

.detail-card {
  display: grid;
  gap: 18px;
  animation: drawerIn 260ms ease both;
}

.detail-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-head h2 {
  margin-top: 10px;
  line-height: 1.25;
}

.close-detail {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.quote {
  padding: 16px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
}

.detail-item strong {
  margin-top: 6px;
}

.ai-analysis-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.88), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
}

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

.analysis-grid div {
  padding: 10px;
  border: 1px solid rgba(147, 82, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.analysis-grid span,
.suggested-reply span,
.note-editor span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.analysis-grid strong {
  display: block;
  margin-top: 5px;
}

.keyword-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.keyword-pills span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--deep-orange);
  background: rgba(255, 122, 26, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.suggested-reply {
  display: grid;
  gap: 7px;
}

.suggested-reply p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: #4c3425;
  background: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.note-editor {
  display: grid;
  gap: 8px;
}

.note-editor textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  line-height: 1.55;
}

.note-editor textarea:focus {
  border-color: rgba(255, 122, 26, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.timeline {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.13);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--deep-orange));
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--deep-orange);
  background: rgba(255, 255, 255, 0.8);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 122, 26, 0.22), transparent 34%),
    rgba(54, 29, 13, 0.32);
  backdrop-filter: blur(18px);
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 90px rgba(83, 39, 12, 0.24);
  animation: drawerIn 260ms ease both;
}

.auth-card label,
.auth-card label span {
  display: grid;
  gap: 7px;
}

.auth-card label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.86);
  outline: 0;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: rgba(255, 122, 26, 0.52);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.auth-card textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

.auth-card small {
  color: var(--muted);
  line-height: 1.6;
}

.account-card {
  position: relative;
}

.account-card .close-detail {
  position: absolute;
  right: 16px;
  top: 16px;
}

.account-list {
  display: grid;
  gap: 8px;
  max-height: 160px;
  overflow: auto;
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 239, 0.72);
}

.account-row span {
  color: var(--muted);
}

.account-hint,
.import-guide {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 247, 239, 0.72);
  font-size: 13px;
}

.import-guide span,
.import-guide strong {
  display: block;
}

.import-guide strong {
  margin-top: 5px;
  color: var(--ink);
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.locked-detail .quote {
  border-left-color: var(--deep-orange);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

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

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

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

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(39, 167, 111, 0.14);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(39, 167, 111, 0.05);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(40px, 26px, 0) scale(1.08);
  }
}

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

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-drawer {
    position: fixed;
    right: 0;
    width: min(390px, 94vw);
    transform: translateX(calc(100% - 18px));
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
    z-index: 5;
  }

  .detail-drawer.open {
    transform: translateX(0);
  }

  .metrics,
  .store-strip,
  .hero-lane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body {
    background: #fff7ee;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    height: auto;
    padding: 10px 12px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 248, 239, 0.94);
    backdrop-filter: blur(18px) saturate(140%);
  }

  .brand {
    min-height: 54px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    margin-top: 2px;
    font-size: 11px;
  }

  .store-nav[data-store="all"] {
    min-height: 38px;
    margin-bottom: 8px;
  }

  .store-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(116px, 38vw);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .store-list .store-nav {
    min-height: 42px;
    scroll-snap-align: start;
  }

  .store-nav {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .store-nav span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .store-nav strong {
    min-width: 24px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .workspace {
    padding: 14px 12px 24px;
  }

  .topbar,
  .panel-heading,
  .actions,
  .top-actions,
  .top-button-group,
  .period-bar,
  .date-range {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 12px;
  }

  .topbar .eyebrow {
    font-size: 11px;
  }

  .topbar h1 {
    font-size: clamp(27px, 9vw, 38px);
    line-height: 1.05;
    max-width: 8em;
  }

  .top-actions {
    gap: 8px;
  }

  .sync-status {
    min-width: 0;
    padding: 10px 12px;
  }

  .sync-status strong {
    white-space: normal;
  }

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

  .top-button-group .user-pill {
    grid-column: 1 / -1;
  }

  .hero-lane {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .metric {
    min-height: 96px;
    padding: 13px;
  }

  .metric strong {
    font-size: 30px;
  }

  .store-strip {
    display: none;
  }

  .review-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .panel-heading {
    gap: 10px;
    padding: 4px 0 10px;
  }

  .panel-heading h2 {
    font-size: 20px;
  }

  .actions {
    gap: 8px;
  }

  .date-range {
    margin-left: 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
  }

  .date-range i {
    display: none;
  }

  .date-range input {
    width: 100%;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.86);
  }

  .filters select,
  .date-range input,
  .date-range button {
    min-height: 42px;
  }

  .channel-tabs,
  .period-bar {
    overflow-x: auto;
    padding: 10px 0;
    flex-direction: row;
  }

  .channel-tabs button,
  .period-bar button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .period-bar > span {
    flex: 0 0 auto;
    align-self: center;
  }

  .review-table {
    gap: 10px;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(255, 122, 26, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(79, 43, 17, 0.08);
  }

  .review-row::before {
    display: none;
  }

  .review-row:hover,
  .review-row.active {
    transform: none;
    background: rgba(255, 255, 255, 0.92);
  }

  .review-main {
    display: grid;
    gap: 5px;
  }

  .review-main strong {
    font-size: 17px;
  }

  .review-main span {
    display: -webkit-box;
    overflow: hidden;
    color: #5d3c22;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .muted-cell {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px dashed rgba(147, 82, 34, 0.18);
  }

  .muted-cell strong,
  .muted-cell span {
    min-width: 0;
  }

  .score,
  .time,
  .status,
  .channel {
    font-size: 12px;
  }

  .detail-drawer {
    position: fixed;
    inset: 0;
    z-index: 30;
    width: auto;
    height: 100dvh;
    padding: 14px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    border-left: 0;
    background: #fff8ef;
    transform: translateY(100%);
    transition: transform 220ms ease;
  }

  .detail-drawer.open {
    transform: translateY(0);
  }

  .empty-detail {
    display: none;
  }

  .detail-card {
    min-height: 100%;
    align-content: start;
    padding-bottom: 10px;
  }

  .detail-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -14px -14px 0;
    padding: 14px;
    background: rgba(255, 248, 239, 0.96);
    backdrop-filter: blur(18px);
  }

  .detail-head h2 {
    padding-right: 44px;
    font-size: 20px;
  }

  .close-detail {
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .quote {
    max-height: none;
    padding: 14px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.8;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .detail-item {
    padding: 10px;
  }

  .timeline {
    display: none;
  }

  .primary-action,
  .secondary-action {
    min-height: 48px;
  }

  .detail-card > .primary-action {
    margin-top: 4px;
  }

  .review-modal {
    display: none;
  }
}

@media (max-width: 760px) {
  .reply-compose-modal {
    display: grid;
    place-items: end center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .reply-compose-card {
    width: 100%;
    max-height: min(86dvh, 720px);
    padding: 18px;
    border-radius: 8px 8px 0 0;
  }

  .reply-compose-card h2 {
    font-size: 22px;
  }

  .reply-compose-card p {
    padding: 12px;
    font-size: 15px;
    line-height: 1.7;
  }

  .reply-compose-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-bg: #fff7ee;
    --mobile-card: rgba(255, 255, 255, 0.92);
    --mobile-ink: #2d190f;
    --mobile-muted: #8b7a6b;
    --mobile-accent: #ef6a19;
    --mobile-accent-deep: #d95210;
    --mobile-line: rgba(147, 82, 34, 0.14);
  }

  html {
    background: var(--mobile-bg);
  }

  body {
    color: var(--mobile-ink);
    background:
      linear-gradient(180deg, #fff1df 0, #fff9f2 230px, var(--mobile-bg) 520px),
      var(--mobile-bg);
  }

  .ambient {
    display: none;
  }

  .sidebar {
    padding: 10px 10px 9px;
    border-bottom: 0;
    background: rgba(245, 242, 235, 0.86);
    box-shadow: 0 10px 26px rgba(31, 33, 27, 0.08);
  }

  .brand {
    min-height: 50px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(239, 106, 25, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--orange), var(--deep-orange));
    box-shadow: none;
    font-size: 0;
  }

  .brand-mark::before {
    content: "德";
    color: #fff;
    font-size: 17px;
    font-weight: 900;
  }

  .brand strong {
    color: var(--mobile-ink);
    font-size: 16px;
  }

  .brand span {
    color: var(--mobile-muted);
  }

  .store-nav[data-store="all"] {
    display: none;
  }

  .store-list {
    grid-auto-columns: max-content;
    gap: 6px;
    margin: 0 -2px;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }

  .store-list::-webkit-scrollbar,
  .channel-tabs::-webkit-scrollbar,
  .period-bar::-webkit-scrollbar {
    display: none;
  }

  .store-nav {
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(239, 106, 25, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
  }

  .store-nav::before {
    display: none;
  }

  .store-nav:hover,
  .store-nav.active {
    transform: none;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  }

  .store-nav span {
    max-width: 88px;
    font-size: 12px;
  }

  .store-nav strong {
    min-width: 20px;
    color: inherit;
    background: rgba(255, 255, 255, 0.18);
  }

  .workspace {
    padding: 8px 10px 28px;
  }

  .topbar {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar > div:first-child {
    display: none;
  }

  .topbar .eyebrow {
    margin-bottom: 4px;
    color: var(--mobile-accent);
    font-size: 10px;
    letter-spacing: 0;
  }

  .topbar h1 {
    max-width: none;
    color: var(--mobile-ink);
    font-size: 21px;
    line-height: 1.18;
  }

  .sync-status {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: rgba(246, 248, 243, 0.88);
    box-shadow: none;
  }

  .sync-status .pulse {
    width: 9px;
    height: 9px;
    background: var(--orange);
    box-shadow: 0 0 0 5px rgba(239, 106, 25, 0.13);
  }

  .sync-status strong {
    color: var(--mobile-ink);
    font-size: 13px;
  }

  .sync-status span {
    color: var(--mobile-muted);
    font-size: 11px;
  }

  .top-button-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .top-button-group .user-pill {
    grid-column: auto;
  }

  .ghost-button,
  .user-pill {
    min-height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 12px;
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    gap: 6px;
    overflow-x: auto;
    margin: 0 -10px 8px;
    padding: 0 10px 2px;
    scrollbar-width: none;
  }

  .metrics::-webkit-scrollbar {
    display: none;
  }

  .metric {
    min-width: 78px;
    min-height: 72px;
    padding: 9px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: none;
  }

  .metric::after {
    display: none;
  }

  .metric span {
    color: var(--mobile-muted);
    font-size: 11px;
    line-height: 1.25;
  }

  .metric strong {
    margin-top: 5px;
    color: var(--mobile-ink);
    font-size: 24px;
    line-height: 1;
  }

  .metric em {
    margin-top: 3px;
    font-size: 10px;
  }

  .review-panel {
    padding-top: 2px;
  }

  .panel-heading {
    position: relative;
    top: auto;
    z-index: 9;
    margin: 0 -10px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(49, 53, 42, 0.08);
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(16px);
  }

  .panel-heading .eyebrow {
    color: var(--mobile-accent);
    letter-spacing: 0;
  }

  .panel-heading h2 {
    margin-top: 2px;
    color: var(--mobile-ink);
    font-size: 17px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 116px;
    gap: 6px;
  }

  .search-box {
    min-height: 40px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    box-shadow: none;
  }

  .search-box input {
    font-size: 14px;
  }

  .actions select {
    min-height: 40px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
  }

  .period-bar,
  .channel-tabs {
    margin: 0 -10px;
    padding: 6px 10px;
    gap: 6px;
    background: rgba(245, 242, 235, 0.72);
  }

  .period-bar > span {
    display: none;
  }

  .channel-tabs button,
  .period-bar button {
    min-height: 32px;
    border-color: rgba(239, 106, 25, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--mobile-muted);
    font-size: 12px;
    box-shadow: none;
  }

  .channel-tabs button.active,
  .period-bar button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  }

  .date-range {
    min-width: 252px;
    grid-template-columns: 1fr 1fr auto;
    display: grid;
    align-items: end;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
  }

  .date-range label span {
    font-size: 10px;
  }

  .date-range input {
    min-height: 34px;
    padding: 0;
    font-size: 12px;
  }

  .date-range button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 7px;
  }

  .review-table {
    gap: 9px;
    padding-top: 6px;
  }

  .review-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "channel status"
      "main main"
      "meta meta"
      "score time";
    gap: 8px 10px;
    padding: 13px;
    border: 1px solid rgba(49, 53, 42, 0.08);
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: 0 10px 26px rgba(49, 53, 42, 0.07);
  }

  .review-row.active {
    border-color: rgba(239, 106, 25, 0.28);
    background: #fff;
  }

  .review-row .channel {
    grid-area: channel;
  }

  .review-row .review-main {
    grid-area: main;
  }

  .review-row .muted-cell {
    grid-area: meta;
  }

  .review-row .score {
    grid-area: score;
  }

  .review-row .status {
    grid-area: status;
    justify-self: end;
  }

  .review-row .time {
    grid-area: time;
    justify-self: end;
  }

  .channel {
    border-radius: 999px;
    padding: 4px 8px;
  }

  .channel.meituan {
    background: #f2c85c;
    color: #332613;
  }

  .channel.douyin {
    background: #242620;
  }

  .review-main strong {
    color: var(--mobile-ink);
    font-size: 16px;
    line-height: 1.25;
  }

  .review-main span {
    color: #514f46;
    font-size: 14px;
  }

  .muted-cell {
    align-items: center;
    padding-top: 8px;
    color: var(--mobile-muted);
  }

  .muted-cell strong {
    color: var(--mobile-ink);
    font-size: 13px;
  }

  .muted-cell span {
    text-align: right;
    font-size: 12px;
  }

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

  .status {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(239, 106, 25, 0.12);
    color: var(--mobile-accent-deep);
  }

  .status.risk {
    background: linear-gradient(135deg, var(--red), var(--deep-orange));
  }

  .status.pending {
    background: linear-gradient(135deg, #9d7a48, var(--orange));
  }

  .detail-drawer {
    background: var(--mobile-bg);
  }

  .detail-card {
    gap: 12px;
  }

  .detail-head {
    border-bottom: 1px solid var(--mobile-line);
    background: rgba(245, 242, 235, 0.94);
  }

  .detail-head h2 {
    color: var(--mobile-ink);
    font-size: 19px;
  }

  .quote,
  .detail-item {
    border: 1px solid var(--mobile-line);
    background: var(--mobile-card);
    box-shadow: none;
  }

  .quote {
    border-left: 4px solid var(--orange);
  }

  .detail-card > .primary-action,
  .detail-card > .secondary-action {
    border-radius: 8px;
  }

  .detail-card > .primary-action {
    background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  }

  .load-more-reviews {
    min-height: 42px;
    border: 1px solid rgba(239, 106, 25, 0.18);
    border-radius: 8px;
    color: var(--mobile-accent-deep);
    background: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 900;
  }

  .review-row {
    animation: none;
  }
}

@media (max-width: 760px) {
  .ios-device *,
  .ios-device *::before,
  .ios-device *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }

  .ios-device .sidebar,
  .ios-device .sync-status,
  .ios-device .review-panel,
  .ios-device .panel-heading,
  .ios-device .detail-drawer,
  .ios-device .detail-head,
  .ios-device .auth-overlay,
  .ios-device .auth-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .ios-device .review-row,
  .ios-device .topbar,
  .ios-device .sidebar,
  .ios-device .metric,
  .ios-device .brand {
    box-shadow: none !important;
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-bg: #fff7ef;
    --mobile-card: rgba(255, 255, 255, 0.95);
    --mobile-card-soft: rgba(255, 250, 244, 0.88);
    --mobile-ink: #251812;
    --mobile-muted: #8b7464;
    --mobile-accent: #f26b16;
    --mobile-accent-deep: #c94c12;
    --mobile-line: rgba(147, 82, 34, 0.13);
    --mobile-shadow: 0 14px 36px rgba(101, 52, 16, 0.1);
  }

  html {
    scroll-padding-top: 132px;
  }

  body {
    background:
      linear-gradient(180deg, rgba(255, 237, 215, 0.96) 0, rgba(255, 250, 244, 0.98) 168px, var(--mobile-bg) 420px),
      var(--mobile-bg);
    -webkit-tap-highlight-color: transparent;
  }

  body::before {
    background-size: 28px 28px;
    opacity: 0.52;
    mask-image: linear-gradient(to bottom, #000 0, transparent 360px);
  }

  .sidebar {
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
    background: rgba(255, 247, 239, 0.96);
    border-bottom: 1px solid rgba(147, 82, 34, 0.08);
    box-shadow: 0 8px 28px rgba(101, 52, 16, 0.08);
  }

  .brand {
    min-height: 48px;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 122, 26, 0.13);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.82));
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand strong {
    max-width: 62vw;
    overflow: hidden;
    color: var(--mobile-ink);
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand span {
    color: var(--mobile-muted);
    font-size: 11px;
  }

  .store-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px 2px;
    scroll-snap-type: x proximity;
  }

  .store-nav {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px 0 12px;
    border: 1px solid rgba(147, 82, 34, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    scroll-snap-align: start;
  }

  .store-nav span {
    max-width: 94px;
    font-size: 12px;
    font-weight: 800;
  }

  .store-nav strong {
    min-width: 22px;
    padding: 3px 6px;
    border-radius: 999px;
    color: var(--mobile-accent-deep);
    background: rgba(255, 122, 26, 0.1);
  }

  .store-nav.active {
    background: linear-gradient(135deg, var(--orange), var(--deep-orange));
    box-shadow: 0 8px 22px rgba(201, 76, 18, 0.2);
  }

  .workspace {
    padding: 10px 12px calc(26px + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .top-actions {
    gap: 8px;
  }

  .sync-status {
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 239, 0.88));
    box-shadow: var(--mobile-shadow);
  }

  .sync-status strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sync-status span {
    line-height: 1.25;
  }

  .top-button-group {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .ghost-button,
  .user-pill {
    min-height: 40px;
    border: 1px solid rgba(147, 82, 34, 0.1);
    border-radius: 8px;
    color: var(--mobile-ink);
    background: rgba(255, 255, 255, 0.88);
  }

  .sync-button {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    margin: 0 0 10px;
    padding: 0;
  }

  .metric {
    min-width: 0;
    min-height: 86px;
    padding: 12px;
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 242, 0.84));
    box-shadow: var(--mobile-shadow);
  }

  .metric.hot {
    background: linear-gradient(135deg, var(--orange), #f6a347);
  }

  .metric:nth-child(2) {
    border-color: rgba(255, 122, 26, 0.2);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 222, 0.88));
  }

  .metric strong {
    margin: 7px 0 4px;
    font-size: 28px;
  }

  .metric span,
  .metric em {
    font-size: 11px;
  }

  .review-panel {
    padding: 0;
  }

  .panel-heading {
    margin: 0 -12px;
    padding: 11px 12px 10px;
    border: 1px solid rgba(147, 82, 34, 0.09);
    border-width: 1px 0;
    background: rgba(255, 247, 239, 0.94);
  }

  .panel-heading h2 {
    font-size: 18px;
    letter-spacing: 0;
  }

  .panel-heading .eyebrow {
    font-size: 11px;
    font-weight: 900;
  }

  .actions {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .search-box,
  .actions select {
    min-height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.93);
  }

  .period-bar,
  .channel-tabs {
    margin: 0 -12px;
    padding: 8px 12px;
    background: rgba(255, 247, 239, 0.74);
  }

  .channel-tabs button,
  .period-bar button {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
  }

  .date-range {
    min-width: 280px;
    border-radius: 8px;
    background: var(--mobile-card-soft);
  }

  .review-table {
    gap: 10px;
    padding-top: 10px;
  }

  .review-row {
    grid-template-columns: 1fr auto;
    gap: 9px 10px;
    padding: 13px 13px 12px;
    border: 1px solid rgba(147, 82, 34, 0.1);
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: var(--mobile-shadow);
  }

  .review-row.active {
    border-color: rgba(255, 122, 26, 0.34);
    box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.08), var(--mobile-shadow);
  }

  .review-main strong {
    font-size: 16px;
    letter-spacing: 0;
  }

  .review-main span {
    display: -webkit-box;
    overflow: hidden;
    color: #514235;
    line-height: 1.58;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .muted-cell {
    gap: 8px;
    padding: 8px 0 0;
    border-top: 1px dashed rgba(147, 82, 34, 0.16);
  }

  .muted-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .channel,
  .status {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
  }

  .score,
  .time {
    font-weight: 800;
  }

  .detail-drawer {
    inset: auto 0 0;
    height: min(92dvh, 720px);
    padding: 0 12px calc(14px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: var(--mobile-bg);
    box-shadow: 0 -18px 46px rgba(37, 24, 18, 0.16);
    visibility: hidden;
    pointer-events: none;
  }

  .detail-drawer.open {
    visibility: visible;
    pointer-events: auto;
  }

  .detail-drawer::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 9px auto 2px;
    border-radius: 999px;
    background: rgba(139, 116, 100, 0.34);
  }

  .detail-card {
    min-height: auto;
    padding-bottom: 8px;
  }

  .detail-head {
    margin: 0 -12px;
    padding: 12px 12px 10px;
    background: rgba(255, 247, 239, 0.96);
  }

  .detail-head h2 {
    padding-right: 48px;
    font-size: 18px;
    line-height: 1.28;
  }

  .quote {
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.75;
  }

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

  .primary-action,
  .secondary-action,
  .load-more-reviews {
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  .mobile-store-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin: 0 0 8px;
    padding: 0 12px;
    border: 1px solid rgba(147, 82, 34, 0.12);
    border-radius: 8px;
    color: var(--mobile-ink);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(101, 52, 16, 0.07);
  }

  .mobile-store-trigger span {
    overflow: hidden;
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-store-trigger span::after {
    content: "⌄";
    margin-left: 6px;
    color: var(--mobile-accent);
    font-size: 13px;
  }

  .mobile-store-trigger strong {
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--mobile-accent-deep);
    background: rgba(255, 122, 26, 0.11);
    font-size: 11px;
  }

  .store-list {
    display: none;
  }

  .mobile-store-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    background: #fff;
  }

  .mobile-store-modal.hidden {
    display: none;
  }

  .mobile-store-sheet {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    height: 100dvh;
    padding: calc(10px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
    color: #202020;
    background: #fff;
  }

  .mobile-store-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 46px;
    margin: 0 -4px 6px;
  }

  .mobile-store-head button {
    width: 38px;
    height: 38px;
    border: 0;
    color: #1f1f1f;
    background: transparent;
    font-size: 34px;
    line-height: 1;
  }

  .mobile-store-head strong {
    text-align: center;
    font-size: 18px;
  }

  .mobile-store-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    margin-bottom: 14px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f4f4f4;
    color: #9a9a9a;
  }

  .mobile-store-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
  }

  .mobile-store-body {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 0;
    margin: 0 -14px;
    overflow: hidden;
    border-top: 1px solid #f0f0f0;
  }

  .mobile-store-groups {
    display: grid;
    align-content: start;
    overflow-y: auto;
    background: #f6f6f6;
  }

  .mobile-store-groups button {
    position: relative;
    min-height: 58px;
    border: 0;
    border-radius: 0;
    color: #202020;
    background: transparent;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
    padding-left: 14px;
  }

  .mobile-store-groups button.active {
    background: #fff;
  }

  .mobile-store-groups button.active::after {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 4px;
    height: 22px;
    border-radius: 0 999px 999px 0;
    background: var(--mobile-accent);
  }

  .mobile-store-list {
    min-height: 0;
    overflow-y: auto;
    background: #fff;
  }

  .mobile-store-list button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 62px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid #f1f1f1;
    border-radius: 0;
    background: #fff;
    text-align: left;
  }

  .mobile-store-list span {
    overflow: hidden;
    color: #262626;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-store-list em {
    color: #999;
    font-size: 12px;
    font-style: normal;
  }

  .mobile-store-list i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    color: transparent;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-store-list button.active i {
    border-color: #ffca08;
    color: #222;
    background: #ffca08;
  }

  .mobile-store-confirm {
    min-height: 52px;
    margin-top: 12px;
    border: 0;
    border-radius: 8px;
    color: #2b2100;
    background: #ffca08;
    font-size: 17px;
    font-weight: 900;
  }

  .panel-heading {
    gap: 8px;
  }

  .actions {
    grid-template-columns: 1fr 104px;
  }

  .actions select {
    color: var(--mobile-accent-deep);
    font-weight: 900;
  }

  .period-bar,
  .channel-tabs {
    position: relative;
  }

  .period-bar button,
  .channel-tabs button {
    background: rgba(255, 255, 255, 0.86);
  }

  .period-bar button.active,
  .channel-tabs button.active {
    box-shadow: 0 8px 18px rgba(242, 107, 22, 0.18);
  }

  .review-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "channel person status"
      "rating rating rating"
      "main main main"
      "meta meta reply";
    padding: 14px;
  }

  .review-row .channel {
    grid-area: channel;
  }

  .review-person {
    grid-area: person;
    display: block;
    overflow: hidden;
    color: var(--mobile-ink);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .review-rating {
    grid-area: rating;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e4392f;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .review-rating em {
    color: var(--mobile-muted);
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0;
  }

  .review-row .review-main {
    grid-area: main;
  }

  .review-row .status {
    grid-area: status;
  }

  .review-row .muted-cell {
    grid-area: meta;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 3px;
  }

  .review-row .muted-cell span {
    display: none;
  }

  .review-row .score,
  .review-row .time {
    display: none;
  }

  .reply-hint {
    grid-area: reply;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    min-width: 54px;
    min-height: 30px;
    border: 1px solid rgba(147, 82, 34, 0.18);
    border-radius: 8px;
    color: var(--mobile-ink);
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 900;
  }
}

@media (max-width: 760px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

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

  .insight-panel {
    min-height: auto;
    padding: 13px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: var(--mobile-shadow);
  }

  .section-title h2 {
    font-size: 16px;
  }

  .rank-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .rank-row i {
    display: none;
  }

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

  .advanced-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 -12px;
    padding: 8px 12px;
    background: rgba(255, 247, 239, 0.72);
  }

  .advanced-filters label {
    display: grid;
    gap: 5px;
  }

  .advanced-filters select {
    min-width: 0;
    width: 100%;
    min-height: 36px;
    font-size: 12px;
    font-weight: 900;
  }

  .review-tags,
  .reply-preview {
    font-size: 12px;
  }

  .reply-preview {
    -webkit-line-clamp: 2;
  }

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

  .note-editor textarea {
    min-height: 86px;
  }
}
