:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #172026;
  --muted: #64717d;
  --line: #dde5eb;
  --accent: #126a5b;
  --accent-strong: #0b4b40;
  --warning: #8a5a00;
  --priority-high-bg: #fff1c7;
  --priority-high-border: #ebcf78;
  --priority-high-text: #7b4b00;
  --priority-medium-bg: #e8f4ef;
  --priority-medium-border: #b8d9ce;
  --priority-medium-text: #0b4b40;
  --priority-low-bg: #edf3f8;
  --priority-low-border: #c8d7e3;
  --priority-low-text: #375266;
  --shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(239, 246, 241, 0.9), rgba(247, 244, 238, 0.98)),
    #f7f4ee;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

p {
  color: var(--muted);
  margin-top: 6px;
}

.hidden {
  display: none !important;
}

.demo-shell {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  min-width: 0;
  padding-bottom: clamp(34px, 5vw, 68px);
}

.demo-intro {
  position: relative;
  min-width: 0;
  min-height: 500px;
  padding: clamp(96px, 8vw, 116px) clamp(18px, 5vw, 72px) clamp(30px, 4vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 22% 0%, rgba(214, 168, 79, 0.14), transparent 32%),
    linear-gradient(135deg, #24594e 0%, #2f665d 58%, #4a7780 100%);
  border-bottom: 1px solid rgba(32, 61, 52, 0.14);
  box-shadow: 0 18px 44px rgba(23, 33, 31, 0.08);
  overflow: hidden;
}

.demo-intro::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 118px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(32, 61, 52, 0), rgba(32, 61, 52, 0.08));
}

.demo-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 16px;
  color: #f1c96d;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-intro h1 {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 92px;
  align-items: flex-end;
  max-width: 1080px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.7rem, 4.5vw, 3.95rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: none;
}

.demo-intro p:not(.demo-kicker) {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  font-weight: 720;
  line-height: 1.58;
  text-shadow: none;
}

.demo-intro-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.demo-intro-actions .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.demo-intro-actions .button.primary {
  border-color: #f4c95d;
  color: #1e1707;
  background: #f4c95d;
  box-shadow: 0 12px 24px rgba(11, 75, 64, 0.16);
}

.demo-intro-actions .button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.demo-intro p.demo-context-note {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.45;
}

.app-demo-frame {
  min-width: 0;
  margin-inline: clamp(18px, 5vw, 72px);
  border: 1px solid rgba(32, 61, 52, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8fafb, #eef3f2),
    #f5f7f8;
  box-shadow:
    0 34px 80px rgba(23, 33, 31, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  overflow: hidden;
}

.demo-view-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(32, 61, 52, 0.14);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.05);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 clamp(18px, 5vw, 72px) -14px;
  padding: 12px;
}

.demo-view-toolbar-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.demo-view-toolbar-label strong {
  color: var(--accent-strong);
  font-size: 0.92rem;
  line-height: 1.2;
}

.demo-view-toolbar-label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.demo-view-segmented {
  background: rgba(247, 244, 238, 0.82);
  border: 1px solid rgba(32, 61, 52, 0.16);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
}

.demo-view-segmented button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 13px;
}

.demo-view-segmented button.is-active {
  background: #f4c95d;
  box-shadow: 0 5px 12px rgba(143, 104, 50, 0.16);
  color: #1e1707;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 780px;
}

.module-phone-stage {
  display: none;
  justify-items: center;
  min-height: 780px;
  padding: clamp(22px, 5vw, 44px);
}

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

.module-phone-metrics div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 252, 252, 0.98) 100%);
  border: 1px solid rgba(215, 222, 226, 0.96);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.07), 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  isolation: isolate;
  min-height: 68px;
  min-width: 0;
  overflow: hidden;
  padding: 11px 9px 10px;
  position: relative;
}

.module-phone-metrics div::before {
  background: linear-gradient(135deg, rgba(18, 106, 91, 0.18), rgba(240, 178, 83, 0.13));
  border-radius: 999px;
  content: "";
  height: 52px;
  position: absolute;
  right: -24px;
  top: -24px;
  width: 52px;
  z-index: -1;
}

.module-phone-metrics div::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 6px;
  opacity: 0.25;
  position: absolute;
  right: 9px;
  top: 10px;
  width: 6px;
}

.module-phone-metrics span {
  color: var(--forest);
  display: block;
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  padding-right: 8px;
}

.module-phone-metrics small {
  color: #5c6b67;
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.15;
  margin-top: 7px;
  text-transform: uppercase;
}

.module-phone-metrics .is-hot { color: #c65535; }
.module-phone-metrics .is-money { color: #126a5b; }
.module-phone-metrics .is-clock { color: #8d5a19; }
.module-phone-metrics .is-calm { color: #245f9f; }
.module-phone-metrics .is-hot::before { background: linear-gradient(135deg, rgba(198, 85, 53, 0.18), rgba(240, 178, 83, 0.18)); }
.module-phone-metrics .is-money::before { background: linear-gradient(135deg, rgba(18, 106, 91, 0.18), rgba(56, 142, 99, 0.14)); }
.module-phone-metrics .is-clock::before { background: linear-gradient(135deg, rgba(141, 90, 25, 0.16), rgba(240, 178, 83, 0.16)); }
.module-phone-metrics .is-calm::before { background: linear-gradient(135deg, rgba(36, 95, 159, 0.16), rgba(18, 106, 91, 0.12)); }
.module-phone-metrics .is-hot span { color: #b5482d; }
.module-phone-metrics .is-money span { color: #126a5b; }
.module-phone-metrics .is-clock span { color: #7b4b13; }
.module-phone-metrics .is-calm span { color: #245f9f; }

.app-demo-frame.is-mobile-preview .app-shell {
  display: grid;
}

.app-demo-frame.is-mobile-preview {
  background:
    linear-gradient(180deg, #f8fafb, #eef3f2),
    #f5f7f8;
  border: 1px solid rgba(32, 61, 52, 0.18);
  box-shadow:
    0 34px 80px rgba(23, 33, 31, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  overflow: hidden;
}

.app-demo-frame.is-mobile-preview .module-phone-stage {
  display: none;
}

.module-phone-device {
  background:
    linear-gradient(145deg, #24342f, #070b0a 62%),
    #111;
  border: 1px solid rgba(15, 24, 22, 0.22);
  border-radius: 34px;
  box-shadow:
    0 28px 80px rgba(20, 36, 31, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: clamp(620px, 78vh, 760px);
  min-width: 0;
  padding: 11px;
  width: min(100%, 430px);
}

.module-phone-device .phone-top {
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: space-between;
  padding: 7px 18px 9px;
}

.module-phone-screen {
  background:
    linear-gradient(180deg, #f8faf5, #eef4ee 54%, #f7f4ee),
    #fff;
  border-radius: 26px;
  color: var(--ink);
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
}

.module-phone-header,
.phone-review-feed-section {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(32, 61, 52, 0.12);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.04);
}

.module-phone-header {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.module-phone-header img {
  height: 30px;
  width: 30px;
}

.module-phone-header strong,
.module-phone-header span {
  display: block;
}

.module-phone-header strong {
  color: var(--accent-strong);
  line-height: 1;
}

.module-phone-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  margin-top: 4px;
}

.phone-review-home,
.phone-review-detail {
  display: grid;
  min-height: 0;
  overflow: auto;
}

.phone-review-home[hidden],
.phone-review-detail[hidden] {
  display: none;
}

.phone-review-feed-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.phone-panel-title-row {
  display: grid;
  gap: 3px;
}

.phone-panel-title-row strong {
  color: var(--accent-strong);
  font-size: 0.8rem;
  line-height: 1.15;
}

.phone-panel-title-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.28;
}

.phone-review-list {
  align-content: start;
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.phone-review-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 252, 253, 0.99) 100%);
  border: 1px solid rgba(215, 222, 226, 0.96);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.06), 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  cursor: pointer;
  display: grid;
  gap: 8px;
  isolation: isolate;
  overflow: hidden;
  padding: 12px;
  position: relative;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.phone-review-card::before {
  background: linear-gradient(180deg, rgba(18, 106, 91, 0.7), rgba(29, 182, 161, 0.7) 62%, rgba(244, 201, 93, 0.76));
  border-radius: 8px 0 0 8px;
  bottom: -1px;
  content: "";
  left: -1px;
  opacity: 0;
  position: absolute;
  top: -1px;
  transition: opacity 160ms ease;
  width: 4px;
}

.phone-review-card::after {
  background: linear-gradient(135deg, rgba(18, 106, 91, 0.1), rgba(240, 178, 83, 0.08));
  border-radius: 999px;
  content: "";
  height: 58px;
  position: absolute;
  right: -30px;
  top: -34px;
  width: 58px;
  z-index: -1;
}

.phone-review-card.is-selected,
.phone-review-card:hover,
.phone-review-card:focus-visible {
  border-color: rgba(18, 106, 91, 0.34);
  box-shadow: 0 14px 26px rgba(23, 33, 31, 0.11), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  outline: none;
  transform: translateY(-1px);
}

.phone-review-card.is-selected::before,
.phone-review-card:hover::before,
.phone-review-card:focus-visible::before {
  opacity: 1;
}

.phone-review-card.is-risk {
  background:
    linear-gradient(90deg, rgba(255, 247, 244, 0.98) 0%, rgba(255, 255, 255, 0.99) 58%, rgba(250, 252, 253, 0.99) 100%);
  border-color: #efc0b6;
}

.phone-review-card.is-risk::before {
  background: linear-gradient(180deg, #c65535, #f0b253);
  opacity: 1;
}

.phone-review-card strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.phone-review-card p,
.phone-detail-review {
  color: #40515d;
  font-size: 0.82rem;
  line-height: 1.42;
  margin: 0;
}

.phone-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.phone-review-meta span,
.phone-detail-facts div {
  background: #eef3f4;
  border: 1px solid #dce5e8;
  border-radius: 999px;
  color: #40515d;
  font-size: 0.7rem;
  font-weight: 850;
  padding: 3px 7px;
}

.phone-review-cta {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.phone-review-detail {
  align-content: start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 61, 52, 0.12);
  border-radius: 8px;
  gap: 10px;
  padding: 12px;
}

.phone-detail-back {
  align-self: start;
  background: #e8f4ef;
  border: 1px solid #b8d9ce;
  border-radius: 999px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 10px;
}

.phone-review-detail h3 {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.15;
  margin: 0;
}

.phone-detail-facts {
  display: grid;
  gap: 6px;
}

.phone-detail-facts div {
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.phone-detail-facts small {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.phone-detail-facts strong {
  color: var(--ink);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.phone-detail-section {
  background: #f7f9fa;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  position: relative;
}

.phone-detail-section.is-primary {
  background: #fff8e8;
  border-color: #efd18b;
}

.phone-detail-section strong {
  color: #66727d;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.phone-detail-section p {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0;
}

.phone-detail-section-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 30px;
}

.phone-detail-section.is-copyable .phone-detail-section-header {
  padding-right: 30px;
}

.phone-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.phone-detail-actions button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
  min-height: 32px;
  padding: 6px 9px;
}

.sidebar {
  align-self: start;
  background: #101820;
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 780px;
  padding: 20px;
  position: sticky;
  top: 0;
}

.app-shell .brand,
.mobile-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 44px;
}

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

.app-shell .brand span {
  color: #aeb9c4;
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.business-switcher {
  color: #c8d2dc;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.business-switcher select,
input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item,
.mobile-menu-item {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  text-align: left;
  text-decoration: none;
}

.nav-item {
  background: transparent;
  color: #c8d2dc;
  padding: 10px 12px;
}

.nav-item:hover {
  background: #1d2a35;
  color: #fff;
}

.nav-item-primary {
  background: rgba(223, 244, 236, 0.08);
  color: #f4fbf8;
  font-weight: 760;
  padding-left: 26px;
  position: relative;
}

.nav-item-primary::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 18px;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
}

.nav-item-secondary {
  color: #aeb9c4;
  margin-left: 14px;
  padding-left: 12px;
  position: relative;
  width: calc(100% - 14px);
}

.nav-item-secondary::before {
  background: rgba(174, 185, 196, 0.24);
  border-radius: 999px;
  content: "";
  height: 18px;
  left: -7px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
}

.nav-item-primary + .nav-item-secondary {
  margin-top: 8px;
}

.nav-item.active {
  background: #dff4ec;
  color: var(--accent-strong);
  font-weight: 850;
}

.nav-count,
.mobile-menu-count {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  margin-left: 8px;
  min-height: 22px;
  min-width: 24px;
  padding: 2px 7px;
}

.nav-count,
.mobile-menu-count {
  background: var(--accent);
  color: #fff;
}

.content {
  min-width: 0;
  padding: 24px;
}

.mobile-appbar {
  display: none;
}

.filter-row,
.review-toolbar,
.compact-review-filters,
.bulk-read-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.primary-button,
.secondary-button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  min-height: 38px;
  padding: 8px 12px;
}

.secondary-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.icon-button {
  background: #fff;
  border-color: var(--line);
  padding: 0;
  width: 38px;
}

.view,
.card,
.review-metrics div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.view {
  box-shadow: var(--shadow);
  padding: 16px;
}

.review-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  margin-bottom: 18px;
}

.review-metrics div {
  --metric-accent: #126a5b;
  --metric-glow: rgba(18, 106, 91, 0.16);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 252, 251, 0.98) 100%);
  border-color: rgba(206, 218, 215, 0.98);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: center;
  min-height: 86px;
  overflow: hidden;
  padding: 15px 16px;
  position: relative;
  text-align: center;
}

.review-metrics div::before {
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.92) 0 8px, transparent 9px),
    radial-gradient(circle at center, var(--metric-glow) 0%, transparent 68%);
  content: "";
  height: 86px;
  opacity: 0.9;
  position: absolute;
  right: -34px;
  top: -38px;
  width: 116px;
  z-index: 0;
}

.review-metrics div::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 52%);
  border-radius: inherit;
  content: "";
  inset: 1px;
  opacity: 0.55;
  position: absolute;
  z-index: 0;
}

.review-metrics span {
  color: var(--ink);
  display: block;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.review-metrics small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.035em;
  margin-top: 9px;
  max-width: 100%;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.metric-card.is-hot { --metric-accent: #c65535; --metric-glow: rgba(198, 85, 53, 0.16); color: #c65535; }
.metric-card.is-money { --metric-accent: #126a5b; --metric-glow: rgba(18, 106, 91, 0.16); color: #126a5b; }
.metric-card.is-clock { --metric-accent: #8d5a19; --metric-glow: rgba(141, 90, 25, 0.14); color: #8d5a19; }
.metric-card.is-calm { --metric-accent: #245f9f; --metric-glow: rgba(36, 95, 159, 0.14); color: #245f9f; }
.metric-card.is-hot span { color: #b5482d; }
.metric-card.is-money span { color: #126a5b; }
.metric-card.is-clock span { color: #7b4b13; }
.metric-card.is-calm span { color: #245f9f; }

.feed-filter-bar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  margin: -2px 0 16px;
  padding: 0 0 18px;
  position: relative;
}

.compact-review-filters {
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  position: relative;
}

.filter-menu-button,
.selected-filter-chip,
.filter-chip,
.status-pill,
.priority-pill,
.action-kind-badge,
.date-time-pill,
.contact-pill,
.amount-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  white-space: nowrap;
}

.filter-menu-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 18px rgba(18, 106, 91, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px 6px 14px;
}

.filter-menu-button strong {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-height: 20px;
  min-width: 22px;
  padding: 2px 6px;
}

.selected-review-filters {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.selected-review-filters::-webkit-scrollbar {
  display: none;
}

.selected-filter-chip {
  background: #e4f6f0;
  border: 1px solid #b9dfd4;
  box-shadow: 0 0 0 2px rgba(18, 106, 91, 0.08);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
}

.selected-filter-chip span {
  color: #628074;
  font-size: 10px;
  text-transform: uppercase;
}

.filter-chip {
  background: #fff;
  border: 1px solid var(--line);
  color: #40515d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  min-height: 38px;
  padding: 6px 14px;
}

.filter-chip.active {
  background: #e4f6f0;
  border-color: #b9dfd4;
  box-shadow: 0 0 0 2px rgba(18, 106, 91, 0.08);
  color: var(--accent-strong);
}

.clear-filter-chip {
  background: #f6f8f9;
  color: var(--muted);
}

.review-popover {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.16);
  padding: 12px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 20;
}

.review-filter-panel {
  left: 0;
  max-width: min(620px, calc(100vw - 48px));
  width: max-content;
}

.review-popover-header,
.review-filter-groups,
.chip-group {
  align-items: center;
  display: flex;
}

.review-popover-header {
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-filter-groups {
  flex-wrap: wrap;
  gap: 8px;
}

.chip-group {
  flex-wrap: wrap;
  gap: 4px;
}

.chip-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-right: 2px;
}

.bulk-read-actions {
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
}

.read-tools-button {
  min-height: 34px;
}

.review-status-button {
  background: #e4f6f0;
  border-color: #b9dfd4;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(18, 106, 91, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
}

.kebab-menu-button {
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
  color: #40515d;
  font-size: 20px;
  justify-content: center;
  line-height: 1;
  min-width: 36px;
  padding: 6px 9px;
}

.feed-search-button {
  border-radius: 999px;
  font-size: 14px;
  justify-content: center;
  min-width: 36px;
  padding: 6px 9px;
}

.payment-layout {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 0.78fr);
  min-width: 0;
}

.demo-table-panel {
  background: #fff;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 54, 64, 0.08);
  min-width: 0;
  overflow: hidden;
}

.demo-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #8fa5ae #edf4f6;
  scrollbar-width: thin;
}

.demo-table-scroll::-webkit-scrollbar {
  height: 12px;
}

.demo-table-scroll::-webkit-scrollbar-track {
  background: #edf4f6;
}

.demo-table-scroll::-webkit-scrollbar-thumb {
  background: #8fa5ae;
  border: 2px solid #edf4f6;
  border-radius: 999px;
}

.demo-data-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.demo-data-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  border-right: 1px solid #d4e0e5;
  border-bottom: 1px solid #c8d7dd;
  padding: 10px;
  color: #506572;
  background: #f3f7f9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-data-table td {
  border-right: 1px solid #e1eaee;
  border-bottom: 1px solid #dce7eb;
  padding: 10px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.34;
  vertical-align: middle;
}

.demo-data-table th:last-child,
.demo-data-table td:last-child {
  border-right: 0;
}

.demo-table-row {
  cursor: pointer;
  background: #fff;
}

.demo-table-row.is-unread,
.demo-table-row.is-priority {
  background:
    linear-gradient(90deg, rgba(18, 106, 91, 0.1) 0, rgba(18, 106, 91, 0.045) 230px, rgba(255, 255, 255, 0.98) 620px),
    #f8fdfb;
}

.demo-table-row.is-risk {
  background:
    linear-gradient(90deg, rgba(198, 85, 53, 0.1) 0, rgba(198, 85, 53, 0.04) 230px, rgba(255, 255, 255, 0.98) 620px),
    #fffafa;
}

.demo-table-row.is-selected,
.demo-table-row:hover,
.demo-table-row:focus-visible {
  background: #f3fbf8;
  outline: none;
}

.demo-table-row.is-selected td:first-child,
.demo-table-row:hover td:first-child,
.demo-table-row:focus-visible td:first-child {
  box-shadow: inset 4px 0 0 var(--accent);
}

.demo-table-row.is-resolved {
  background: #f8fafb;
}

.demo-table-row.is-resolved .demo-table-title,
.demo-table-row.is-resolved .demo-table-secondary {
  color: #7a8790;
}

.demo-table-title {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.demo-table-secondary {
  display: block;
  margin-top: 3px;
  color: #61707a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.demo-table-value {
  color: var(--accent-strong);
  font-weight: 950;
}

.demo-data-table .priority-pill,
.demo-data-table .status-pill,
.demo-data-table .action-kind-badge,
.demo-data-table .date-time-pill {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 10.5px;
  line-height: 1.18;
  white-space: normal;
}

.demo-data-table .date-time-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.demo-data-table .resolve-button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}

.cards,
.payment-list {
  display: grid;
  gap: 10px;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 252, 253, 0.99) 100%);
  border-color: rgba(215, 222, 226, 0.96);
  box-shadow: 0 12px 26px rgba(23, 32, 38, 0.07), 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  display: grid;
  gap: 10px;
  padding: 16px;
  position: relative;
}

.payment-card {
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.payment-card::before {
  background:
    linear-gradient(180deg, rgba(18, 106, 91, 0.74) 0%, rgba(29, 182, 161, 0.74) 62%, rgba(244, 201, 93, 0.78) 100%);
  border-radius: 8px 0 0 8px;
  bottom: -1px;
  content: "";
  left: -1px;
  opacity: 0;
  position: absolute;
  top: -1px;
  transition: opacity 160ms ease;
  width: 4px;
}

.payment-card::after {
  background:
    radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(18, 106, 91, 0.13), rgba(240, 178, 83, 0.1));
  border-radius: 999px;
  content: "";
  height: 96px;
  position: absolute;
  right: -48px;
  top: -58px;
  width: 96px;
  z-index: -1;
}

.payment-card:hover,
.payment-card:focus-visible,
.payment-card.is-selected {
  border-color: #bfcbd1;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  outline: none;
  transform: translateY(-1px);
}

.payment-card:hover::before,
.payment-card:focus-visible::before,
.payment-card.is-selected::before {
  opacity: 1;
}

.payment-card.is-selected {
  border-color: rgba(18, 106, 91, 0.35);
  box-shadow: 0 18px 38px rgba(18, 106, 91, 0.13), 0 0 0 3px rgba(18, 106, 91, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.payment-card.is-unread {
  background:
    linear-gradient(90deg, rgba(223, 248, 242, 0.94) 0%, rgba(250, 252, 253, 0.98) 42%, #fff 100%);
  border-color: #9fd3c5;
  box-shadow: 0 12px 28px rgba(18, 106, 91, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  position: relative;
}

.payment-card.is-unread::before {
  background:
    linear-gradient(180deg, var(--accent) 0%, #1db6a1 62%, var(--gold) 100%);
  opacity: 1;
}

.payment-card-top {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.payment-card-heading {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.payment-card-heading h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.14;
  margin: 0;
  overflow-wrap: anywhere;
}

.card-key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-key-facts span {
  align-items: baseline;
  background:
    linear-gradient(180deg, rgba(247, 250, 248, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(214, 227, 220, 0.96);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
  display: inline-flex;
  flex: 1 1 190px;
  gap: 7px;
  min-height: 34px;
  min-width: 0;
  padding: 6px 10px;
}

.card-key-facts small {
  color: #64717d;
  font-size: 11px;
  font-weight: 850;
}

.card-key-facts strong {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 950;
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-card-pill-row,
.payment-card-status {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.payment-card-pill-row {
  flex-wrap: wrap;
}

.payment-card-status {
  justify-content: flex-end;
  white-space: nowrap;
}

.card-header-row,
.payment-title-row,
.payment-source-row,
.payment-bottom-row,
.card-meta-actions,
.action-buttons {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.card-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.card-title-block {
  min-width: 0;
}

.payment-title-row {
  flex-wrap: wrap;
}

.payment-title-row strong {
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.payment-source-row {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  margin-top: 7px;
}

.payment-preview {
  color: #26343d;
  font-size: 16px;
  line-height: 1.42;
  margin: 8px 0 0;
}

.payment-bottom-row {
  justify-content: space-between;
}

.payment-source-inline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
}

.card-meta-actions {
  justify-content: flex-end;
}

.status-pill,
.priority-pill,
.action-kind-badge,
.date-time-pill,
.contact-pill,
.amount-pill {
  font-size: 12px;
  font-weight: 850;
  gap: 5px;
  min-height: 24px;
  padding: 3px 9px;
}

.status-pill {
  background: #eef3f4;
  color: #40515d;
}

.date-time-pill {
  background: #f2f6f7;
  border: 1px solid #dce5e8;
  color: #40515d;
  font-size: 13px;
  min-height: 34px;
  padding-inline: 12px;
}

.contact-pill {
  background: #e8f4ef;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  min-height: 32px;
  padding-inline: 13px;
}

.amount-pill {
  background: #eef3f4;
  color: #40515d;
  font-size: 13px;
  font-weight: 900;
  min-height: 32px;
  padding-inline: 13px;
}

.payment-card-pill-row .priority-pill {
  font-size: 13px;
  min-height: 32px;
  padding-inline: 14px;
}

.priority-pill {
  border: 1px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-high {
  background: var(--priority-high-bg);
  border-color: var(--priority-high-border);
  color: var(--priority-high-text);
}

.priority-critical {
  background: var(--priority-high-bg);
  border-color: var(--priority-high-border);
  color: var(--priority-high-text);
}

.priority-medium {
  background: var(--priority-medium-bg);
  border-color: var(--priority-medium-border);
  color: var(--priority-medium-text);
}

.priority-low {
  background: var(--priority-low-bg);
  border-color: var(--priority-low-border);
  color: var(--priority-low-text);
}

.action-detail-grid .priority-fact,
.phone-detail-facts .priority-fact {
  border-color: currentColor;
}

.action-detail-grid .priority-fact small,
.action-detail-grid .priority-fact strong,
.phone-detail-facts .priority-fact small,
.phone-detail-facts .priority-fact strong {
  color: inherit;
}

.action-detail-grid .priority-fact small,
.phone-detail-facts .priority-fact small {
  opacity: 0.78;
}

.action-kind-badge {
  background: #f4f1ff;
  border: 1px solid #d5cbf5;
  color: #4e3c89;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
}

.compact-card-button {
  align-items: center;
  background: linear-gradient(135deg, #0d7b6b, #18a178 52%, #f4c95d);
  border: 1px solid rgba(13, 123, 107, 0.36);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(13, 123, 107, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px 4px 6px;
  white-space: nowrap;
}

.compact-card-button span {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  height: 19px;
  justify-content: center;
  width: 19px;
}

.payment-detail-panel {
  align-content: start;
  align-self: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  min-height: 100%;
  min-width: 0;
  overflow: visible;
  padding: 16px;
  position: static;
}

.back-review-button {
  align-items: center;
  background: #e8f4ef;
  border: 1px solid #b8d9ce;
  border-radius: 999px;
  color: var(--accent-strong);
  cursor: pointer;
  display: none;
  font-weight: 850;
  gap: 6px;
  justify-self: start;
  margin-bottom: 2px;
  min-height: 32px;
  padding: 5px 10px;
}

.detail-header {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.detail-header h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-top: 7px;
}

.detail-header strong {
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

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

.action-detail-grid div,
.action-detail-section {
  background: #f7f9fa;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  padding: 14px 16px;
}

.action-detail-grid small,
.action-detail-section small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.action-detail-grid strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.action-detail-section {
  display: grid;
  gap: 12px;
}

.action-detail-section.is-primary {
  background: #fff8e8;
  border-color: #efd18b;
}

.action-detail-section p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.draft-reply {
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
  position: relative;
}

.draft-reply-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 30px;
  padding-right: 32px;
}

.draft-reply small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.draft-reply p {
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

.copy-draft-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #50615d;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 8px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 30px;
}

.phone-copy-draft-button {
  right: 10px;
  top: 10px;
}

.copy-draft-button span {
  height: 18px;
  position: relative;
  width: 18px;
}

.copy-draft-button span::before,
.copy-draft-button span::after {
  border: 1.8px solid currentColor;
  border-radius: 3px;
  display: block;
  height: 12px;
  position: absolute;
  width: 10px;
}

.copy-draft-button span::before {
  content: "";
  left: 3px;
  top: 1px;
}

.copy-draft-button span::after {
  background: transparent;
  content: "";
  left: 0;
  top: 5px;
}

.copy-draft-button:hover,
.copy-draft-button:focus-visible {
  background: rgba(18, 106, 91, 0.08);
  border-color: transparent;
  color: var(--accent-strong);
}

.copy-draft-button:focus-visible {
  outline: 2px solid rgba(18, 106, 91, 0.18);
  outline-offset: 2px;
}

.copy-draft-button.is-copied {
  background: transparent;
  border-color: transparent;
  color: var(--accent-strong);
}

.copy-draft-button.is-copied span {
  border: 0;
  height: 15px;
  transform: rotate(45deg) translate(-1px, -2px);
  width: 8px;
}

.copy-draft-button.is-copied span::before,
.copy-draft-button.is-copied span::after {
  background: transparent;
  border-color: currentColor;
  border-radius: 0;
  border-style: solid;
  border-width: 0 2px 2px 0;
  height: 14px;
  left: 0;
  top: 0;
  width: 7px;
}

.copy-draft-button.is-copied span::after {
  display: none;
}

.action-buttons {
  flex-wrap: wrap;
}

.action-buttons .secondary-button {
  min-height: 36px;
}

.empty-action-state {
  align-content: start;
  background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
  gap: 8px;
  justify-items: start;
  min-height: 0;
  padding: 18px;
}

.module-placeholder {
  display: grid;
  gap: 14px;
}

.placeholder-header {
  display: grid;
  gap: 6px;
}

.placeholder-header .action-kind-badge {
  justify-self: start;
}

.placeholder-header h2 {
  font-size: 22px;
  line-height: 1.2;
}

.placeholder-card {
  gap: 8px;
}

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

.placeholder-card p {
  line-height: 1.45;
}

.mobile-menu {
  background: #101820;
  border: 1px solid rgba(200, 210, 220, 0.18);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(16, 24, 32, 0.25);
  color: #f8fbff;
  display: grid;
  gap: 10px;
  padding: 12px;
  position: absolute;
  right: 14px;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 28px));
  z-index: 40;
}

.mobile-menu-label {
  color: #aeb9c4;
  font-size: 12px;
  font-weight: 850;
  padding: 3px 4px;
  text-transform: uppercase;
}

.mobile-menu-nav,
.mobile-menu-footer {
  display: grid;
  gap: 6px;
}

.mobile-menu-footer {
  border-top: 1px solid rgba(200, 210, 220, 0.18);
  padding-top: 8px;
}

.mobile-menu-item {
  background: rgba(255, 255, 255, 0.04);
  color: #c8d2dc;
  min-height: 38px;
  padding: 9px 10px;
}

.mobile-menu-item.active,
.mobile-menu-item:hover {
  background: #dff4ec;
  color: var(--accent-strong);
  font-weight: 850;
}

@media (max-width: 1040px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-detail-panel {
    max-height: none;
    position: static;
  }
}

@media (max-width: 760px) {
  .demo-view-toolbar {
    display: none;
  }

  .demo-shell {
    gap: 18px;
    padding-bottom: 28px;
  }

  .demo-intro {
    min-height: clamp(500px, 68svh, 560px);
    padding: 96px 16px 30px;
  }

  .demo-kicker {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .demo-intro h1 {
    display: block;
    min-height: 0;
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 10vw, 2.9rem);
    line-height: 1.04;
  }

  .demo-intro p:not(.demo-kicker) {
    font-size: 1rem;
    line-height: 1.5;
  }

  .app-demo-frame {
    background:
      linear-gradient(180deg, #f8fafb, #eef3f2),
      #f5f7f8;
    border: 1px solid rgba(32, 61, 52, 0.18);
    box-shadow:
      0 22px 50px rgba(23, 33, 31, 0.14),
      0 1px 0 rgba(255, 255, 255, 0.72) inset;
    margin-inline: 12px;
    overflow: hidden;
  }

  .app-shell {
    display: block;
    min-height: 0;
  }

  .module-phone-stage {
    display: none;
    min-height: 0;
    padding: 0;
  }

  .module-phone-device {
    height: calc(100vh - 24px);
    max-height: 760px;
  }

  .sidebar {
    display: none;
  }

  .mobile-appbar {
    align-items: center;
    background: #101820;
    color: #f8fbff;
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .mobile-controls {
    align-items: center;
    display: flex;
    gap: 8px;
  }

  .mobile-appbar .icon-button {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 210, 220, 0.22);
    color: #f8fbff;
  }

  .content {
    padding: 16px;
  }

  .view {
    border-radius: 8px;
    box-shadow: none;
    padding: 12px;
  }

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

  .review-metrics div {
    min-height: 58px;
    padding: 9px 8px;
  }

  .review-metrics div::before {
    height: 58px;
    right: -46px;
    top: -34px;
    width: 88px;
  }

  .review-metrics span {
    font-size: 22px;
  }

  .review-metrics small {
    font-size: 9px;
    letter-spacing: 0.025em;
    line-height: 1.15;
    margin-top: 6px;
  }

  .feed-filter-bar {
    align-items: flex-start;
    gap: 10px;
  }

  .compact-review-filters {
    min-width: 0;
  }

  .selected-review-filters {
    max-width: calc(100vw - 158px);
  }

  .clear-filter-chip {
    display: none;
  }

  .payment-layout {
    display: block;
  }

  .payment-detail-panel {
    display: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .payments-view.is-detail-open .payment-list,
  .payments-view.is-detail-open .demo-table-panel,
  .payments-view.is-detail-open .payment-metrics,
  .payments-view.is-detail-open .feed-filter-bar {
    display: none;
  }

  .payments-view.is-detail-open .payment-detail-panel {
    display: grid;
  }

  .back-review-button {
    display: inline-flex;
  }

  .card {
    padding: 13px;
  }

  .payment-card-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-card-status {
    justify-content: flex-start;
  }

  .payment-card-heading h3 {
    font-size: 18px;
  }

  .card-header-row,
  .detail-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-meta-actions,
  .detail-header strong {
    justify-content: flex-start;
  }

  .payment-bottom-row {
    align-items: flex-start;
    display: grid;
    gap: 10px;
  }

  .action-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .module-phone-device {
    border-radius: 28px;
    padding: 8px;
  }

  .module-phone-screen {
    border-radius: 22px;
    padding: 13px;
  }
}

@media (max-width: 560px) {
  .module-phone-device {
    width: min(100%, calc(100vw - 56px), 340px);
  }
}
