:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --ink: #101828;
  --muted: #667085;
  --line: #d8e0ec;
  --primary: #1668f2;
  --primary-dark: #0d47b7;
  --teal: #0f9f9a;
  --navy: #061a3f;
  --accent: #d6a128;
  --warning: #c2410c;
  --danger: #b42318;
  --success: #067647;
  --brand-yellow: #ffd223;
  --brand-yellow-hover: #f6bf12;
  --brand-yellow-light-theme: #8a6200;
  --brand-blue: #061a3f;
  --app-background: var(--page);
  --surface-primary: var(--surface);
  --surface-secondary: var(--surface-soft);
  --surface-elevated: #ffffff;
  --text-primary: var(--ink);
  --text-secondary: #344054;
  --text-muted: var(--muted);
  --border-default: var(--line);
  --border-active: var(--brand-yellow-light-theme);
  --button-primary-background: var(--brand-yellow);
  --button-primary-text: var(--brand-blue);
  --focus-ring: rgba(255, 210, 35, 0.36);
  --info: #0ea5e9;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(22, 104, 242, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(15, 159, 154, 0.08), transparent 32%),
    linear-gradient(25deg, rgba(214, 161, 40, 0.08), transparent 28%),
    var(--page);
}

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

button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

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

.password-field input {
  padding-right: 112px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  transform: translateY(-50%);
  border: 1px solid rgba(22, 104, 242, 0.18);
  background: #f8fbff;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.password-toggle:hover {
  background: var(--surface-soft);
}

textarea {
  min-height: 330px;
  resize: vertical;
  padding: 16px;
  border-color: rgba(22, 104, 242, 0.35);
  background: #fbfdff;
  box-shadow: inset 0 0 0 1px rgba(22, 104, 242, 0.04);
  line-height: 1.58;
}

textarea:focus {
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell.is-checking-session .auth-form,
.login-shell.is-checking-session .auth-switch,
.login-shell.is-checking-session #forgot-password-button,
.login-shell.is-checking-session .login-reassurance,
.login-shell.is-session-retry .auth-form,
.login-shell.is-session-retry .auth-switch,
.login-shell.is-session-retry #forgot-password-button,
.login-shell.is-session-retry .login-reassurance {
  display: none;
}

.login-panel {
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-lockup,
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-frame {
  width: 190px;
  min-width: 190px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.brand-logo-frame.icon-only {
  width: 72px;
  min-width: 72px;
  height: 72px;
}

.brand-logo-frame.compact {
  width: 170px;
  min-width: 170px;
  height: 52px;
}

.brand-logo-frame.compact.icon-only {
  width: 82px;
  min-width: 82px;
  height: 82px;
  border-radius: 50%;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.brand-logo-frame.logo-missing {
  width: 48px;
  min-width: 48px;
  background: transparent;
}

.brand-logo-frame.logo-missing .brand-logo {
  display: none;
}

.brand-logo-frame.logo-missing .brand-fallback {
  display: grid;
}

.brand-lockup h1,
.topbar h2,
.panel h3,
.section-heading h3 {
  margin: 0;
  line-height: 1.1;
}

.brand-lockup h1 {
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  letter-spacing: 0;
}

.login-brand-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.login-brand-name {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.login-tagline {
  max-width: 360px;
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: clamp(1rem, 3.4vw, 1.16rem);
  font-weight: 850;
  line-height: 1.35;
}

.login-subtitle {
  max-width: 390px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.5;
}

.login-reassurance {
  margin: -2px 0 0;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.login-language-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.login-language-switch button {
  min-height: auto;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.login-language-switch button.is-active {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.auth-form-heading {
  display: grid;
  gap: 6px;
  padding: 4px 0 2px;
}

.auth-form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-form-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.auth-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.auth-tab.is-active {
  border-color: rgba(22, 104, 242, 0.35);
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.form-message,
.auth-note {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid rgba(22, 104, 242, 0.2);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.45;
}

.form-message.is-error {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff7f5;
  color: var(--danger);
}

.form-message.is-success {
  border-color: rgba(6, 118, 71, 0.22);
  background: #ecfdf3;
  color: var(--success);
}

.session-loading {
  position: relative;
  padding-left: 40px;
}

.session-loading::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(22, 104, 242, 0.25);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.session-retry-button {
  width: 100%;
  margin: 0 0 18px;
}

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

.auth-note {
  display: grid;
  gap: 10px;
}

.auth-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.auth-switch {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.45;
}

.auth-switch .link-action {
  display: inline;
  justify-self: auto;
  margin-left: 4px;
}

.link-action {
  min-height: auto;
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 850;
}

.link-action:hover {
  text-decoration: underline;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-action {
  background: var(--primary);
  color: #fff;
}

.primary-action:hover {
  background: var(--primary-dark);
}

.primary-action:disabled,
.secondary-action:disabled,
.ghost-action:disabled,
.link-action:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.primary-action.is-disabled:not(:disabled),
.secondary-action.is-disabled:not(:disabled),
.ghost-action.is-disabled:not(:disabled),
.status-pill.is-disabled:not(:disabled) {
  cursor: not-allowed;
  opacity: 0.72;
  filter: saturate(0.72);
}

.primary-action.is-loading {
  background: var(--primary-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-action:hover {
  border-color: rgba(22, 104, 242, 0.45);
  color: var(--primary-dark);
}

.ghost-action {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.ghost-action:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.sidebar-footer {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 0.82rem;
  font-weight: 800;
}

.sidebar-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.muted-action {
  background: #667085;
}

.muted-action:hover {
  background: #475467;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand-row {
  align-items: start;
  flex-direction: column;
  gap: 10px;
}

.brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 1.34rem;
  line-height: 1;
}

.brand-copy span {
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav-item {
  width: 100%;
  justify-content: start;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(22, 104, 242, 0.18);
  background: linear-gradient(135deg, rgba(22, 104, 242, 0.12), rgba(15, 159, 154, 0.08));
  color: var(--primary-dark);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.topbar-business-name {
  max-width: min(54vw, 560px);
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-status-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  min-height: 44px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(22, 104, 242, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.plan-status-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.plan-status-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-status-copy strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 940;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-status-widget .compact-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.plan-status-widget.is-trial {
  border-color: rgba(22, 104, 242, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.92));
}

.plan-status-widget.is-warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.94));
}

.plan-status-widget.is-expired {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.94));
}

.plan-status-widget.is-paid,
.plan-status-widget.is-internal {
  border-color: rgba(16, 185, 129, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.92));
}

.topbar-install-button {
  min-height: 38px;
  padding-inline: 13px;
  border-color: rgba(15, 159, 154, 0.24);
  color: #087772;
  font-size: 0.82rem;
  white-space: nowrap;
}

.topbar-install-button:hover {
  border-color: rgba(15, 159, 154, 0.4);
  color: #075f5b;
}

.reviews-toolbar {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.reviews-demo-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.45;
}

.status-pill,
.review-status,
.sentiment-pill,
.critical-badge,
.business-pill,
.risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
}

.google-connect-button {
  border: 1px solid rgba(22, 104, 242, 0.22);
  background: #fff;
  color: var(--primary-dark);
}

.google-connect-button.is-connected {
  background: #ecfdf3;
  color: var(--success);
}

.google-status-panel,
.google-location-panel,
.unanswered-recovery-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(22, 104, 242, 0.18);
  border-radius: var(--radius);
  background: #fbfdff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.google-status-panel h3,
.google-location-panel h3,
.unanswered-recovery-panel h3 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.google-status-panel p,
.google-location-panel p,
.unanswered-recovery-panel p,
.google-status-panel small {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.google-status-panel small {
  display: block;
  margin-top: 10px;
  font-size: 0.84rem;
}

.google-location-actions {
  min-width: min(100%, 360px);
  display: grid;
  gap: 12px;
}

.google-location-actions select {
  min-width: 280px;
}

.unanswered-recovery-panel {
  border-color: rgba(194, 65, 12, 0.2);
  background: #fffaf7;
}

.critical-badge {
  background: #fff1eb;
  color: var(--warning);
}

.critical-badge.crisis {
  background: #fee4e2;
  color: var(--danger);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.dashboard-copy {
  max-width: 920px;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}

.install-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 104, 242, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.045);
}

.trial-panel,
.trial-lock,
.settings-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.045);
}

.trial-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(6, 118, 71, 0.22);
  background: #f6fffb;
}

.trial-panel div {
  display: grid;
  gap: 3px;
}

.trial-panel strong,
.trial-lock h3 {
  color: var(--navy);
}

.trial-panel span,
.trial-lock p {
  color: var(--muted);
  font-weight: 750;
}

.trial-value-panel,
.profile-checkup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(6, 118, 71, 0.2);
  border-radius: var(--radius);
  background: #f7fffb;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.045);
}

.trial-value-panel h3,
.profile-checkup-panel h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.trial-value-panel p,
.profile-checkup-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.52;
}

.trial-value-panel #trial-value-detail {
  margin-top: 8px;
}

.trial-progress-track {
  position: relative;
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
}

.trial-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-gold), var(--teal), var(--primary));
  transition: width 260ms ease;
}

.trial-quota-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  min-width: min(100%, 390px);
}

.trial-quota-grid span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(6, 118, 71, 0.16);
  border-radius: var(--radius);
  background: #fff;
}

.trial-quota-grid strong {
  color: var(--success);
  font-size: 1.65rem;
  line-height: 1;
}

.trial-quota-grid small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.25;
}

.trial-progress-summary {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trial-progress-summary span,
.trial-daily-message {
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.trial-progress-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
}

.trial-progress-summary span strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.trial-daily-message {
  grid-column: 1 / -1;
  margin-top: 2px !important;
  padding: 10px 12px;
  border-radius: 14px;
}

.trial-next-step {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 16px;
  background: rgba(250, 204, 21, 0.12);
}

.trial-next-step strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.trial-next-step span,
.trial-next-step small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.42;
}

.trial-next-step small {
  font-size: 0.82rem;
}

.positive-automation-tip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(14, 165, 233, 0.08));
}

.positive-automation-tip strong {
  color: var(--navy);
}

.positive-automation-tip p {
  margin-top: 4px;
}

.positive-automation-tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.trial-analyze-button {
  justify-self: start;
}

.trial-analyze-button.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.trial-cta-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trial-cta-button,
.trial-analyze-button {
  min-height: 40px;
}

.trial-review-badge {
  white-space: nowrap;
}

.trial-review-note {
  margin-top: 8px !important;
  font-size: 0.88rem;
}

.trial-reminder-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(250, 204, 21, 0.18), transparent 34%),
    linear-gradient(135deg, #fffbeb, #ffffff 58%, #f8fffb);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
}

.trial-reminder-panel.is-hidden {
  display: none !important;
}

.trial-reminder-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.trial-reminder-copy h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.trial-reminder-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.52;
}

.trial-reminder-actions,
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.trial-reminder-actions {
  flex: 0 0 auto;
}

.notification-card.is-trial-reminder {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(250, 204, 21, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.96);
}

.trial-lock {
  display: grid;
  gap: 16px;
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff7f5;
}

.trial-lock h3,
.trial-lock p {
  margin: 0;
}

.pricing-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.install-panel div {
  display: grid;
  gap: 3px;
}

.install-panel strong {
  color: var(--navy);
}

.install-panel span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.install-panel.is-installed #install-button {
  display: none;
}

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

.metric-card,
.panel,
.review-card,
.activity-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.045);
}

.metric-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 18px;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--teal));
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(22, 104, 242, 0.08);
}

.metric-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1;
}

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

.review-status.warning {
  background: #fff7ed;
  color: var(--warning);
}

.review-card.is-suspicious {
  border-color: rgba(194, 65, 12, 0.22);
}

.suspicious-note {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(194, 65, 12, 0.18);
  border-radius: var(--radius);
  background: #fffaf7;
}

.dashboard-grid,
.generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.chart-panel,
.automation-panel {
  min-height: 260px;
}

.star-distribution-chart {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.star-bar-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.star-bar-row strong {
  color: var(--navy);
  text-align: right;
}

.star-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fa;
}

.star-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.review-trend-chart {
  min-height: 136px;
  display: grid;
  grid-template-columns: repeat(7, minmax(18px, 1fr));
  align-items: end;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(22, 104, 242, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}

.trend-column {
  position: relative;
  min-height: 110px;
  display: grid;
  align-items: end;
}

.trend-column span {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 3px 3px;
}

.trend-review {
  background: linear-gradient(180deg, var(--primary), #84b6ff);
}

.trend-reply {
  position: absolute;
  right: 18%;
  bottom: 0;
  width: 32% !important;
  background: linear-gradient(180deg, var(--teal), #7adbd5);
  opacity: 0.92;
}

.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-review {
  background: var(--primary);
}

.legend-reply {
  background: var(--teal);
}

.automation-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  border-color: rgba(15, 159, 154, 0.22);
  background:
    linear-gradient(145deg, rgba(15, 159, 154, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.95);
}

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

.automation-summary div {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(15, 159, 154, 0.16);
  border-radius: var(--radius);
  background: #fff;
}

.automation-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.automation-summary strong {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.18;
}

.profile-checkup-panel {
  border-color: rgba(22, 104, 242, 0.18);
  background: #fbfdff;
}

.profile-score-ring {
  --profile-score: 72%;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--primary) var(--profile-score), #e4eaf5 0);
}

.profile-score-ring span {
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 950;
}

.profile-checkup-copy {
  min-width: 0;
}

.suggestion-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.suggestion-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 780;
  line-height: 1.42;
}

.suggestion-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.profile-checkup-warning {
  margin-top: 12px !important;
  padding: 11px 12px;
  border-left: 4px solid var(--warning);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--navy) !important;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-header,
.section-heading,
.response-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  margin-bottom: 14px;
}

.compact-list,
.review-list,
.activity-list {
  display: grid;
  gap: 12px;
}

.compact-item {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

#critical-list .compact-item.is-clickable {
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

#critical-list .compact-item.is-clickable:hover {
  background: #fbfdff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.07);
  transform: translateY(-1px);
}

#critical-list .compact-item.is-clickable:focus-visible {
  outline: 3px solid rgba(22, 104, 242, 0.25);
  outline-offset: 2px;
}

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

.compact-item strong,
.review-card strong,
.activity-item strong {
  overflow-wrap: anywhere;
}

.compact-item p,
.review-text,
.selected-review p,
.activity-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.segment {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segment.is-active {
  background: var(--primary);
  color: #fff;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.review-card:hover {
  border-color: rgba(22, 104, 242, 0.24);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.07);
  transform: translateY(-1px);
}

.review-card-actions .secondary-action {
  border-color: rgba(22, 104, 242, 0.22);
  color: var(--primary-dark);
}

.review-card.is-selected {
  border-color: rgba(22, 104, 242, 0.72);
  box-shadow: 0 0 0 3px rgba(22, 104, 242, 0.13);
}

.review-card.is-critical {
  border-color: rgba(194, 65, 12, 0.35);
}

.review-meta,
.review-card-actions,
.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rating {
  color: #9a4a14;
  font-weight: 900;
}

.negative {
  background: #fff1eb;
  color: var(--warning);
}

.positive {
  background: #ecfdf3;
  color: var(--success);
}

.neutral {
  background: #f2f4f7;
  color: #475467;
}

.pending,
.draft {
  background: #eef4ff;
  color: var(--primary-dark);
}

.answered,
.copied {
  background: #f2f4f7;
  color: #475467;
}

.published {
  background: #ecfdf3;
  color: var(--success);
}

.selected-review {
  display: grid;
  gap: 12px;
}

.risk-analysis-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.risk-analysis-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.risk-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.risk-level {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.risk-level.low {
  background: #ecfdf3;
  color: var(--success);
}

.risk-level.medium {
  background: #fffaeb;
  color: #b54708;
}

.risk-level.high {
  background: #fee4e2;
  color: var(--danger);
}

.risk-badge {
  background: #f2f4f7;
  color: #475467;
}

.risk-badge.warning {
  background: #fff1eb;
  color: var(--warning);
}

.risk-badge.danger {
  background: #fee4e2;
  color: var(--danger);
}

.risk-badge.success {
  background: #ecfdf3;
  color: var(--success);
}

.risk-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reputation-alert {
  margin: 0;
  padding: 12px;
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  background: #fff7f5;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.45;
}

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

.response-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.response-editor {
  color: var(--ink);
}

.editor-help {
  margin: -6px 0 0;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
}

.notification-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.notification-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.045);
}

.notification-card strong {
  color: var(--navy);
}

.notification-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pricing-vat-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.billing-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.045);
}

.billing-card strong,
.billing-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.billing-card span,
.billing-card small,
.billing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 740;
  line-height: 1.45;
}

.billing-cycle-control {
  width: fit-content;
  display: inline-flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.billing-cycle-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.billing-cycle-button[data-billing-cycle="annual"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.billing-cycle-label {
  line-height: 1;
}

.billing-cycle-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--brand-blue);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.12);
  white-space: nowrap;
}

.billing-cycle-button.is-active {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-hover));
  color: var(--brand-blue);
}

.billing-cycle-button.is-active .billing-cycle-badge {
  background: #fff4a8;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.2), 0 4px 10px rgba(11, 31, 58, 0.12);
}

.pricing-annual-note {
  margin: 10px 0 0;
  color: var(--brand-yellow-light-theme);
  font-size: 0.88rem;
  font-weight: 850;
}

.plan-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plan-card.is-highlighted {
  border-color: rgba(22, 104, 242, 0.35);
  box-shadow: 0 10px 28px rgba(22, 104, 242, 0.08);
}

.plan-card.is-custom {
  grid-column: 1 / -1;
  border-color: rgba(214, 161, 40, 0.24);
  background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.plan-card h4,
.plan-card p {
  margin: 0;
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-card h4 {
  color: var(--navy);
  font-size: 1.18rem;
}

.plan-price {
  color: var(--primary-dark);
  font-size: 1.45rem;
  font-weight: 950;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
}

.paddle-info-card,
.billing-legal-card,
.company-info-card {
  margin-top: 16px;
}

.billing-legal-links,
.company-contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-legal-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-link-action,
.billing-contact-link {
  min-height: 42px;
  text-decoration: none;
}

.billing-contact-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.billing-contact-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.billing-contact-link strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.compact-heading {
  margin-bottom: 0;
}

.plan-card li::before {
  content: "• ";
  color: var(--primary);
  font-weight: 950;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
}

.settings-panel {
  max-width: 980px;
  margin-top: 16px;
}

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

.account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}

.optional-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.full-width {
  grid-column: 1 / -1;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 26, 63, 0.38);
}

.modal-panel {
  display: grid;
  gap: 18px;
  width: min(100%, 520px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel h3,
.modal-panel p {
  margin: 0;
}

.modal-panel p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.google-debug {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.trust-modal-panel {
  width: min(100%, 760px);
  max-height: min(86vh, 760px);
  overflow: auto;
}

.trust-modal-content {
  display: grid;
  gap: 16px;
}

.trust-modal-section {
  display: grid;
  gap: 8px;
}

.trust-modal-section h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.trust-modal-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.trust-modal-section li {
  color: var(--muted);
  font-weight: 730;
  line-height: 1.45;
}

.admin-content {
  display: grid;
  gap: 18px;
}

.admin-panel {
  overflow: hidden;
}

.admin-search-panel {
  display: grid;
  gap: 12px;
}

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

.admin-invite-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-invite-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

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

.admin-users-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-user-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  align-items: start;
}

.admin-user-main > div,
.admin-user-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-user-main strong,
.admin-user-main span {
  overflow-wrap: anywhere;
}

.admin-detail-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.06), transparent 42%),
    #fbfdff;
}

.admin-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-detail-header strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.admin-trial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.admin-mini-stat {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-mini-stat.is-emphasis {
  border-color: rgba(214, 161, 40, 0.32);
  background: rgba(255, 247, 219, 0.72);
}

.admin-mini-stat strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-trial-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-column-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-notes-field textarea {
  min-height: 76px;
  resize: vertical;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-action {
  border-color: rgba(180, 35, 24, 0.22);
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(460px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(22, 104, 242, 0.25);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .automation-panel {
    grid-column: 1 / -1;
  }

  .notification-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-row {
    gap: 10px;
  }

  .brand-row .brand-logo-frame.compact.icon-only {
    width: 58px;
    min-width: 58px;
    height: 58px;
  }

  .brand-copy {
    min-width: 0;
    gap: 3px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy span {
    max-width: min(68vw, 520px);
    font-size: 0.8rem;
  }

  .nav-list {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 6px;
  }

  .nav-item {
    min-height: 34px;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
    font-size: 0.82rem;
  }

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

  .sidebar-link {
    min-height: 24px;
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-footer .ghost-action {
    grid-column: 1 / -1;
    min-height: 32px;
    font-size: 0.8rem;
  }

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

  .automation-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .login-shell,
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .app-shell {
    min-height: 100dvh;
  }

  .sidebar {
    gap: 8px;
    padding: 10px 12px;
  }

  .workspace {
    padding: 12px;
  }

  .login-panel {
    padding: 22px;
  }

  .brand-lockup,
  .topbar,
  .panel-header,
  .section-heading,
  .response-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-logo-frame {
    width: min(210px, 100%);
  }

  .brand-logo-frame.icon-only,
  .brand-logo-frame.compact.icon-only {
    width: 64px;
    min-width: 64px;
    height: 64px;
  }

  .brand-row .brand-logo-frame.compact.icon-only {
    width: 72px;
    min-width: 72px;
    height: 72px;
  }

  .login-language-switch {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    max-width: calc(100vw - 96px);
    font-size: 0.74rem;
  }

  .nav-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    width: auto;
    min-height: 32px;
    flex: 0 0 auto;
    padding: 0 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

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

  .sidebar-link {
    min-height: 22px;
    font-size: 0.68rem;
  }

  .sidebar-footer .ghost-action {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

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

  .topbar h2 {
    font-size: 1.45rem;
  }

  .topbar-actions,
  .button-row,
  .install-panel,
  .google-status-panel,
  .google-location-panel,
  .unanswered-recovery-panel,
  .trial-value-panel,
  .trial-reminder-panel,
  .profile-checkup-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trial-quota-grid,
  .automation-summary,
  .pricing-plans-grid,
  .billing-summary-grid,
  .billing-legal-links,
  .company-contact-links,
  .trust-link-grid,
  .admin-invite-form,
  .admin-search-form,
  .admin-user-main,
  .admin-user-controls,
  .admin-trial-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .positive-automation-tip {
    align-items: stretch;
    flex-direction: column;
  }

  .positive-automation-tip-actions {
    justify-content: flex-start;
  }

  .trial-reminder-copy {
    display: grid;
    gap: 10px;
  }

  .trial-reminder-actions {
    justify-content: flex-start;
  }

  .trial-reminder-actions button {
    width: 100%;
  }

  .trial-cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .trial-cta-row button {
    width: 100%;
  }

  .billing-cycle-control {
    max-width: 100%;
  }

  .billing-cycle-button {
    padding: 6px 11px;
  }

  .billing-cycle-button[data-billing-cycle="annual"] {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
  }

  .billing-cycle-badge {
    min-height: 18px;
    padding: 0 7px;
    font-size: 0.66rem;
  }

  .admin-invite-actions,
  .admin-search-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .profile-score-ring {
    width: 104px;
    height: 104px;
  }

  .google-location-actions select {
    min-width: 0;
  }

  .status-pill {
    justify-content: center;
  }

  .nav-list,
  .metric-grid,
  .dashboard-insights-grid,
  .dashboard-grid,
  .generator-layout,
  .settings-grid,
  .review-card,
  .activity-item {
    grid-template-columns: 1fr;
  }

  .automation-panel {
    grid-column: auto;
  }

  .response-toolbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .response-toolbar button {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .segmented-control {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .segment {
    flex: 0 0 auto;
  }

  .review-card-actions {
    justify-content: stretch;
  }

  .review-card-actions button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav-item {
    min-height: 30px;
    padding: 0 7px;
    font-size: 0.69rem;
  }
}

/* StarRev360 visual polish - CSS only */
:root {
  --surface-glass: rgba(255, 255, 255, 0.82);
  --gold-soft: rgba(214, 161, 40, 0.16);
  --teal-soft: rgba(15, 159, 154, 0.12);
  --blue-soft: rgba(22, 104, 242, 0.12);
}

body {
  background:
    linear-gradient(120deg, rgba(22, 104, 242, 0.11), transparent 36%),
    linear-gradient(300deg, rgba(15, 159, 154, 0.09), transparent 34%),
    linear-gradient(20deg, rgba(214, 161, 40, 0.08), transparent 30%),
    #f4f7fb;
}

.sidebar {
  border-right-color: rgba(16, 24, 40, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9)),
    var(--surface);
  box-shadow: 10px 0 30px rgba(16, 24, 40, 0.04);
}

.brand-row {
  padding: 8px;
  border: 1px solid rgba(22, 104, 242, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.nav-list {
  gap: 7px;
}

.nav-item {
  min-height: 38px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.nav-item:hover {
  transform: translateX(1px);
}

.nav-item.is-active {
  border-color: rgba(22, 104, 242, 0.24);
  box-shadow: inset 3px 0 0 var(--primary);
}

.workspace {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 260px);
}

.topbar {
  padding: 16px;
  border: 1px solid rgba(22, 104, 242, 0.1);
  border-radius: var(--radius);
  background: var(--surface-glass);
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.055);
  backdrop-filter: blur(10px);
}

.dashboard-copy {
  padding: 14px 16px;
  border: 1px solid rgba(22, 104, 242, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.trial-panel,
.install-panel,
.google-status-panel,
.google-location-panel,
.unanswered-recovery-panel,
.profile-checkup-panel,
.trial-value-panel,
.panel,
.settings-panel,
.trial-lock,
.metric-card,
.review-card,
.activity-item {
  border-color: rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.metric-card {
  min-height: 116px;
  padding: 18px 18px 16px;
  border-color: rgba(22, 104, 242, 0.1);
}

.metric-card:nth-child(1)::before,
.metric-card:nth-child(4)::before {
  background: linear-gradient(180deg, var(--primary), #74a8ff);
}

.metric-card:nth-child(2)::before,
.metric-card:nth-child(5)::before {
  background: linear-gradient(180deg, var(--teal), #72d4cf);
}

.metric-card:nth-child(3)::before {
  background: linear-gradient(180deg, var(--warning), #f6a05f);
}

.metric-card:nth-child(6)::before {
  background: linear-gradient(180deg, var(--accent), #f2cf77);
}

.metric-card span {
  text-transform: none;
  letter-spacing: 0;
}

.metric-card strong {
  color: var(--navy);
  letter-spacing: 0;
}

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

.status-pill,
.review-status,
.sentiment-pill,
.critical-badge,
.business-pill,
.risk-badge {
  min-height: 28px;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: none;
  letter-spacing: 0;
}

.google-connect-button,
.secondary-action {
  border-color: rgba(22, 104, 242, 0.16);
}

.primary-action {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 22px rgba(22, 104, 242, 0.18);
}

.primary-action:hover {
  filter: brightness(0.98);
}

.secondary-action:hover {
  background: #f8fbff;
}

.segmented-control {
  gap: 4px;
  padding: 4px;
  border-color: rgba(22, 104, 242, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.segment {
  min-height: 34px;
  border-radius: 6px;
}

.segment.is-active {
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.review-card {
  border-left: 4px solid rgba(22, 104, 242, 0.18);
}

.review-card.is-critical {
  border-left-color: var(--warning);
}

.review-card.is-selected {
  border-left-color: var(--primary);
}

.review-text,
.selected-review p,
.activity-item p,
.compact-item p {
  color: #475467;
}

.response-panel textarea,
#response-text {
  min-height: 300px;
  border-color: rgba(22, 104, 242, 0.18);
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow:
    inset 0 0 0 1px rgba(22, 104, 242, 0.035),
    0 10px 24px rgba(16, 24, 40, 0.035);
}

.response-toolbar {
  gap: 8px;
}

.response-toolbar .secondary-action,
.response-toolbar .primary-action {
  min-height: 36px;
  border-radius: 999px;
}

.risk-analysis-card,
.selected-review {
  border-color: rgba(22, 104, 242, 0.1);
}

.profile-score-ring {
  box-shadow: 0 12px 28px rgba(22, 104, 242, 0.12);
}

.profile-checkup-warning,
.suspicious-note {
  border-left-width: 3px;
}

@media (max-width: 1020px) {
  .sidebar {
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.055);
  }

  .brand-row {
    padding: 6px;
  }

  .nav-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    width: auto;
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 10px;
    white-space: nowrap;
  }

  .nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--primary);
  }
}

@media (max-width: 760px) {
  .topbar,
  .dashboard-copy,
  .trial-panel,
  .install-panel,
  .google-status-panel,
  .google-location-panel,
  .unanswered-recovery-panel,
  .profile-checkup-panel,
  .trial-value-panel,
  .panel,
  .settings-panel,
  .trial-lock,
  .review-card,
  .activity-item {
    padding: 14px;
  }

  .brand-row {
    align-items: center;
  }

  .brand-row .brand-logo-frame.compact.icon-only {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .metric-card {
    min-height: 96px;
  }

  .metric-card strong {
    font-size: 2rem;
  }

  .review-card {
    border-left-width: 3px;
  }

  .review-card:hover {
    transform: none;
  }

  .response-toolbar {
    flex-wrap: nowrap;
  }
}

/* StarRev360 premium refinement - CSS only */
:root {
  --surface-raised: #ffffff;
  --surface-tint: #f8fbff;
  --border-soft: rgba(16, 24, 40, 0.075);
  --shadow-soft: 0 12px 30px rgba(16, 24, 40, 0.055);
  --shadow-hover: 0 18px 42px rgba(16, 24, 40, 0.085);
  --accent-line: linear-gradient(90deg, var(--primary), var(--teal), var(--accent));
}

.login-panel,
.modal-panel,
.settings-grid,
.settings-panel,
.trial-panel,
.install-panel,
.google-status-panel,
.google-location-panel,
.unanswered-recovery-panel,
.profile-checkup-panel,
.trial-value-panel,
.panel,
.trial-lock,
.metric-card,
.review-card,
.activity-item,
.plan-card,
.admin-user-card {
  border-color: var(--border-soft);
  background: var(--surface-raised);
}

.login-panel,
.modal-panel {
  box-shadow: 0 24px 58px rgba(16, 24, 40, 0.1);
}

.login-panel {
  position: relative;
  overflow: hidden;
}

.login-panel::before,
.panel::before,
.settings-panel::before,
.trial-panel::before,
.google-status-panel::before,
.review-card::before,
.plan-card.is-highlighted::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent-line);
  opacity: 0.78;
}

.panel,
.settings-panel,
.trial-panel,
.google-status-panel,
.google-location-panel,
.unanswered-recovery-panel,
.review-card,
.plan-card {
  position: relative;
  overflow: hidden;
}

.panel-header,
.section-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.055);
}

.panel-header h3,
.section-heading h3,
.risk-analysis-card h4,
.profile-checkup-copy h3,
.google-status-panel h3,
.google-location-panel h3,
.unanswered-recovery-panel h3 {
  color: var(--navy);
  font-weight: 920;
}

.topbar h2 {
  color: var(--navy);
  font-weight: 940;
}

.topbar p,
.dashboard-copy p,
.panel-header p,
.section-heading p {
  color: #5b6678;
}

.brand-row {
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.035);
}

.brand-copy strong {
  color: #071b44;
}

.brand-logo-frame {
  border: 1px solid rgba(214, 161, 40, 0.14);
  box-shadow: 0 10px 24px rgba(214, 161, 40, 0.08);
}

.nav-item {
  align-items: center;
  color: #5d6879;
}

.nav-item:hover {
  background: linear-gradient(135deg, rgba(22, 104, 242, 0.1), rgba(15, 159, 154, 0.075));
}

.nav-item.is-active {
  color: var(--primary-dark);
  background:
    linear-gradient(135deg, rgba(22, 104, 242, 0.14), rgba(15, 159, 154, 0.08)),
    #ffffff;
}

.metric-card {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.metric-card:hover {
  border-color: rgba(22, 104, 242, 0.18);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.metric-card::after {
  width: 88px;
  height: 88px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.72) 0 38%, transparent 39%),
    rgba(22, 104, 242, 0.08);
}

.metric-card span {
  color: #647084;
  font-size: 0.82rem;
}

.metric-card strong {
  font-weight: 960;
}

.dashboard-grid .panel,
.dashboard-insights-grid .panel,
.profile-checkup-panel,
.automation-panel {
  box-shadow: var(--shadow-soft);
}

.review-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.96));
}

.review-card:hover {
  box-shadow: var(--shadow-hover);
}

.review-card strong {
  color: #18253b;
  font-weight: 900;
}

.review-text {
  font-size: 0.96rem;
}

.review-card-actions .secondary-action,
.review-card-actions .primary-action {
  min-height: 38px;
  padding-inline: 14px;
}

.status-pill,
.review-status,
.sentiment-pill,
.critical-badge,
.business-pill,
.risk-badge {
  background: #f6f9ff;
  color: #516070;
  font-weight: 890;
}

.critical-badge,
.risk-badge.danger,
.review-status.warning,
.negative {
  background: #fff4ed;
  color: #b54708;
}

.positive,
.published,
.google-connect-button.is-connected {
  background: #edfcf3;
  color: #067647;
}

.pending,
.draft,
.business-pill,
.sentiment-pill {
  background: #eff6ff;
  color: var(--primary-dark);
}

.button-row button,
.topbar-actions button,
.response-toolbar button,
.settings-actions button,
.admin-actions button {
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.055);
}

.secondary-action,
.google-connect-button,
.muted-action {
  background: #ffffff;
}

.secondary-action:hover,
.google-connect-button:hover {
  border-color: rgba(22, 104, 242, 0.28);
  box-shadow: 0 12px 24px rgba(22, 104, 242, 0.09);
}

input,
select,
textarea {
  border-color: rgba(16, 24, 40, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(22, 104, 242, 0.24);
}

.response-panel textarea,
#response-text {
  font-size: 0.98rem;
}

.selected-review,
.risk-analysis-card {
  background:
    linear-gradient(180deg, #ffffff, var(--surface-tint));
}

.profile-score-ring {
  border: 1px solid rgba(22, 104, 242, 0.08);
}

.star-bar-track,
.review-trend-chart {
  background: #eef4fb;
}

.pricing-plans-grid .plan-card {
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.045);
}

.plan-card.is-highlighted {
  box-shadow: 0 16px 36px rgba(22, 104, 242, 0.1);
}

.plan-price {
  color: #114eb8;
}

.toast {
  border-color: rgba(22, 104, 242, 0.18);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
}

@media (max-width: 1020px) {
  .sidebar {
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  }

  .sidebar-footer {
    border-top-color: rgba(16, 24, 40, 0.055);
  }

  .nav-list {
    padding-bottom: 6px;
  }

  .nav-item:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(22, 104, 242, 0.08), transparent 260px),
      #f5f8fc;
  }

  .workspace {
    padding: 12px;
  }

  .topbar {
    margin-bottom: 14px;
    padding: 13px;
  }

  .topbar h2 {
    font-size: 1.55rem;
  }

  .topbar-business-name {
    max-width: 100%;
    white-space: normal;
  }

  .topbar-actions,
  .button-row,
  .reviews-toolbar {
    gap: 7px;
  }

  .plan-status-widget {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    padding: 8px 9px 8px 11px;
  }

  .plan-status-copy {
    flex: 1;
  }

  .plan-status-widget .compact-action {
    min-width: max-content;
  }

  .reviews-toolbar {
    justify-items: stretch;
  }

  .dashboard-copy {
    margin-bottom: 12px;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-card:hover {
    transform: none;
  }

  .panel-header,
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .review-card {
    gap: 12px;
  }

  .review-card-actions .secondary-action,
  .review-card-actions .primary-action {
    min-height: 36px;
  }

  .sidebar-footer {
    gap: 6px;
  }

  .sidebar-link {
    min-height: 26px;
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .workspace {
    padding: 10px;
  }

  .topbar h2 {
    font-size: 1.42rem;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .metric-card strong {
    font-size: 1.82rem;
  }

  .response-toolbar .secondary-action,
  .response-toolbar .primary-action {
    min-height: 33px;
    padding-inline: 10px;
  }
}

/* StarRev360 visual finishing pass - CSS only */
:root {
  --blue-halo: rgba(22, 104, 242, 0.07);
  --teal-halo: rgba(15, 159, 154, 0.07);
  --gold-halo: rgba(214, 161, 40, 0.1);
}

.login-shell {
  background:
    linear-gradient(140deg, rgba(22, 104, 242, 0.08), transparent 34%),
    linear-gradient(320deg, rgba(214, 161, 40, 0.08), transparent 28%);
}

.login-brand-name {
  color: #061a3f;
  font-weight: 960;
}

.login-tagline {
  color: #24446f;
  font-weight: 820;
}

.login-subtitle,
.auth-form-heading p {
  color: #5d6879;
}

.auth-form {
  gap: 15px;
}

.auth-form input,
.auth-form select {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.primary-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-action {
  color: var(--primary-dark);
}

.topbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.88)),
    radial-gradient(circle at 96% 0, var(--gold-halo), transparent 34%);
}

.dashboard-copy {
  border-left: 3px solid rgba(22, 104, 242, 0.38);
}

.google-status-panel,
.google-location-panel,
.unanswered-recovery-panel,
.trial-panel,
.install-panel {
  background:
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.metric-grid {
  align-items: stretch;
}

.metric-card {
  background:
    radial-gradient(circle at 100% 0, var(--blue-halo), transparent 40%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.metric-card:nth-child(2),
.metric-card:nth-child(5) {
  background:
    radial-gradient(circle at 100% 0, var(--teal-halo), transparent 40%),
    linear-gradient(180deg, #ffffff, #fbfffe);
}

.metric-card:nth-child(3),
.metric-card:nth-child(6) {
  background:
    radial-gradient(circle at 100% 0, var(--gold-halo), transparent 42%),
    linear-gradient(180deg, #ffffff, #fffdf8);
}

.panel,
.settings-panel,
.review-card,
.activity-item,
.plan-card,
.admin-user-card {
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.045);
}

.compact-item {
  border-top-color: rgba(16, 24, 40, 0.065);
}

.compact-item strong,
.activity-item strong {
  color: #18253b;
}

.review-card.is-critical {
  background:
    radial-gradient(circle at 100% 0, rgba(194, 65, 12, 0.07), transparent 42%),
    linear-gradient(180deg, #ffffff, #fffaf7);
}

.review-card.is-selected {
  background:
    radial-gradient(circle at 100% 0, rgba(22, 104, 242, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.review-meta,
.activity-meta {
  row-gap: 7px;
}

.response-panel {
  gap: 14px;
}

.response-toolbar {
  padding: 3px 0 6px;
}

.response-toolbar button {
  border: 1px solid rgba(22, 104, 242, 0.12);
}

.selected-review {
  padding: 14px;
  border: 1px solid rgba(22, 104, 242, 0.1);
  border-radius: var(--radius);
}

.risk-analysis-card {
  border-left: 3px solid rgba(214, 161, 40, 0.6);
}

.pricing-vat-note,
.field-help,
.optional-label {
  color: #6a7485;
}

.sidebar-link,
.field-help {
  line-height: 1.38;
}

.toast.is-visible {
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .app-shell {
    background: transparent;
  }

  .sidebar {
    gap: 12px;
  }

  .brand-copy span {
    max-width: min(280px, 48vw);
  }

  .nav-item {
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
  }

  .sidebar-footer {
    padding-top: 8px;
  }
}

@media (max-width: 760px) {
  .login-shell {
    padding: 14px;
  }

  .login-panel {
    padding: 22px;
  }

  .login-brand-copy {
    gap: 6px;
  }

  .login-brand-name {
    font-size: 1.72rem;
  }

  .login-tagline {
    font-size: 0.95rem;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions button,
  .button-row button {
    min-height: 36px;
  }

  .google-status-panel,
  .google-location-panel,
  .unanswered-recovery-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel,
  .settings-panel,
  .review-card,
  .activity-item,
  .plan-card,
  .admin-user-card {
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
  }

  .selected-review {
    padding: 12px;
  }
}

@media (max-width: 420px) {
  .login-panel {
    padding: 20px;
  }

  .login-brand-name {
    font-size: 1.55rem;
  }

  .status-pill,
  .review-status,
  .sentiment-pill,
  .critical-badge,
  .business-pill,
  .risk-badge {
    min-height: 26px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }
}

/* StarRev360 final visual balance - CSS only */
html {
  background: #f5f8fc;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.workspace {
  isolation: isolate;
}

.topbar,
.dashboard-copy,
.panel,
.settings-panel,
.trial-panel,
.install-panel,
.google-status-panel,
.google-location-panel,
.unanswered-recovery-panel,
.profile-checkup-panel,
.trial-value-panel,
.metric-card,
.review-card,
.activity-item,
.plan-card,
.selected-review,
.risk-analysis-card {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -1px;
}

.topbar,
.dashboard-copy {
  backdrop-filter: blur(12px);
}

.brand-copy strong,
.topbar h2,
.panel-header h3,
.section-heading h3 {
  letter-spacing: 0;
}

.primary-action,
.secondary-action,
.google-connect-button,
.ghost-action,
.nav-item,
.segment {
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.primary-action:active,
.secondary-action:active,
.google-connect-button:active,
.ghost-action:active,
.segment:active {
  transform: translateY(1px);
}

.nav-item:active {
  transform: translateX(1px);
}

.review-card-actions,
.button-row,
.topbar-actions,
.settings-actions,
.admin-invite-actions,
.admin-search-actions,
.admin-actions {
  row-gap: 8px;
}

.panel p,
.settings-panel p,
.review-text,
.selected-review p,
.activity-item p,
.compact-item p {
  max-width: 76ch;
}

.review-card.is-suspicious {
  background:
    radial-gradient(circle at 100% 0, rgba(194, 65, 12, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #fffaf7);
}

.suspicious-note,
.profile-checkup-warning {
  box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.04);
}

.activity-item {
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.plan-card {
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.plan-card.is-highlighted {
  background:
    radial-gradient(circle at 100% 0, rgba(22, 104, 242, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.modal-backdrop {
  backdrop-filter: blur(4px);
}

.modal-panel {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: -1px;
}

@media (max-width: 1020px) {
  .nav-list {
    scrollbar-color: rgba(22, 104, 242, 0.28) transparent;
  }

  .nav-item {
    min-width: max-content;
  }

  .sidebar-footer .ghost-action {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .app-shell {
    min-height: 100dvh;
  }

  .brand-logo-frame.compact {
    width: 132px;
    min-width: 132px;
    height: 42px;
  }

  .brand-copy span {
    max-width: 58vw;
  }

  .nav-list {
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .nav-item {
    min-height: 32px;
    padding-inline: 9px;
  }

  .panel p,
  .settings-panel p,
  .review-text,
  .selected-review p,
  .activity-item p,
  .compact-item p {
    max-width: none;
  }

  .response-panel textarea,
  #response-text {
    min-height: 250px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 420px) {
  .brand-logo-frame.compact {
    width: 118px;
    min-width: 118px;
    height: 38px;
  }

  .nav-item {
    min-height: 30px;
    padding-inline: 8px;
  }

  .review-card,
  .selected-review,
  .risk-analysis-card {
    padding: 12px;
  }
}

/* Dashboard reputation charts - lightweight HTML/CSS only */
.dashboard-overview {
  margin-top: 16px;
}

.dashboard-overview-heading {
  margin: 0 0 12px;
}

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

.chart-panel,
.reputation-health-panel,
.automation-panel {
  min-height: 250px;
}

.dashboard-empty-state {
  min-height: 132px;
  display: grid;
  place-items: center;
  margin: 16px 0 0;
  padding: 18px;
  border: 1px dashed rgba(22, 104, 242, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #647084;
  font-weight: 780;
  line-height: 1.45;
  text-align: center;
}

.dashboard-demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 104, 242, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.dashboard-demo-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.4;
}

.dashboard-demo-caption,
.reputation-health-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.45;
}

.reputation-health-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(22, 104, 242, 0.07), transparent 38%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.reputation-health-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fa;
}

.reputation-health-meter span {
  --health-score: 0%;
  display: block;
  width: var(--health-score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--primary), var(--accent));
}

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

.reputation-health-list div {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(22, 104, 242, 0.1);
  border-radius: var(--radius);
  background: #fff;
}

.reputation-health-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.reputation-health-list strong {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .dashboard-overview {
    margin-top: 12px;
  }

  .dashboard-insights-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chart-panel,
  .reputation-health-panel,
  .automation-panel {
    min-height: auto;
  }

  .dashboard-empty-state {
    min-height: 96px;
    margin-top: 12px;
    padding: 14px;
  }

  .reputation-health-list {
    grid-template-columns: 1fr;
  }
}

/* Simplified dashboard navigation and operating center */
.nav-list .nav-item:not([data-view="dashboard"]):not([data-view="settings"]):not([data-view="admin"]) {
  display: none;
}

#dashboard-view {
  display: flex;
  flex-direction: column;
}

#dashboard-view .dashboard-copy,
#dashboard-view #install-panel,
#dashboard-view #trial-value-panel,
#dashboard-view #profile-checkup-panel,
#dashboard-view .dashboard-grid,
#dashboard-view .pricing-panel,
#dashboard-view .chart-panel[aria-labelledby="trend-chart-title"] {
  display: none !important;
}

#dashboard-view #account-lock-panel {
  order: 0;
}

#dashboard-view .metric-grid {
  order: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0;
}

#dashboard-view #dashboard-demo-note {
  order: 2;
}

#dashboard-view .dashboard-overview {
  order: 4;
}

#dashboard-view #google-status-panel {
  order: 5;
}

#dashboard-view #google-location-panel {
  order: 6;
}

#dashboard-view #unanswered-recovery-panel {
  order: 7;
}

.dashboard-action-strip {
  order: 3;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dashboard-action-strip button {
  min-height: 38px;
}

.dashboard-kpi-card {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 104, 242, 0.24);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.085);
}

.dashboard-kpi-card:focus-visible {
  outline: 3px solid rgba(22, 104, 242, 0.25);
  outline-offset: 2px;
}

#dashboard-view #google-status-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
}

#dashboard-view #google-status-panel h3 {
  font-size: 1.05rem;
}

#dashboard-view #google-status-panel p,
#dashboard-view #google-status-panel small {
  font-size: 0.86rem;
}

.admin-footer-link {
  display: none !important;
}

.sidebar .brand-row {
  align-items: flex-start;
  flex-direction: column;
  position: relative;
  padding-right: 58px;
}

.sidebar .brand-logo-frame.compact.icon-only {
  width: 82px;
  min-width: 82px;
  height: 82px;
  border-radius: 50%;
}

.sidebar .brand-logo {
  object-fit: contain;
}

.logout-icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 999px;
  background: #fff7f7;
  color: #b42318;
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(180, 35, 24, 0.08);
}

.logout-icon-button:hover {
  border-color: rgba(220, 38, 38, 0.34);
  background: #fff1f1;
  color: #991b1b;
}

.pwa-update-button {
  position: absolute;
  top: 10px;
  right: 56px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(15, 159, 154, 0.24);
  border-radius: 999px;
  background: #ecfeff;
  color: #087772;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 159, 154, 0.08);
}

.pwa-update-button:hover {
  border-color: rgba(15, 159, 154, 0.42);
  background: #dffafa;
  color: #075f5b;
}

.pwa-update-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

#install-modal-copy {
  white-space: pre-line;
}

@media (max-width: 760px) {
  .sidebar .brand-logo-frame.compact.icon-only {
    width: 76px;
    min-width: 76px;
    height: 76px;
  }

  .logout-icon-button {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  .pwa-update-button {
    top: 8px;
    right: 50px;
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.7rem;
  }
}

.settings-billing-panel {
  margin-top: 16px;
}

.settings-billing-panel #trial-panel {
  min-height: auto;
  margin-top: 14px;
  padding: 14px;
  box-shadow: none;
  border-color: rgba(22, 104, 242, 0.14);
}

.settings-billing-panel #trial-panel div {
  display: grid;
  gap: 4px;
}

.settings-billing-panel #trial-panel strong {
  font-size: 1rem;
}

.settings-billing-panel #trial-panel span {
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  #dashboard-view .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #dashboard-view .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #dashboard-view #google-status-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  #dashboard-view .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Blocco 5.1 Septies: PWA visibility + chart/card dark-mode polish */
.star-bar-row {
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  gap: 12px;
}

.star-bar-row span,
.star-bar-row strong {
  font-variant-numeric: tabular-nums;
}

.star-bar-row span {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 850;
}

.star-bar-row strong {
  min-width: 2ch;
  text-align: right;
}

.star-bar-track {
  height: 12px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  background: #e8eef7;
}

.star-bar-track i {
  background: linear-gradient(90deg, #d6a128, #0f9f9a);
}

@media (max-width: 420px) {
  .star-bar-row {
    grid-template-columns: 46px minmax(0, 1fr) 30px;
    gap: 9px;
  }

  .star-bar-row span {
    font-size: 0.78rem;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #0f172a;
    color: #e5edf8;
  }

  .app-shell {
    background:
      radial-gradient(circle at 18% 0, rgba(14, 165, 233, 0.11), transparent 30%),
      linear-gradient(180deg, #0f172a, #111827);
  }

  .sidebar,
  .topbar,
  .dashboard-copy,
  .metric-card,
  .panel,
  .settings-panel,
  .trial-panel,
  .install-panel,
  .google-status-panel,
  .google-location-panel,
  .unanswered-recovery-panel,
  .profile-checkup-panel,
  .trial-value-panel,
  .review-card,
  .activity-item,
  .plan-card,
  .selected-review,
  .brand-row,
  .plan-status-widget {
    border-color: rgba(148, 163, 184, 0.2);
    background:
      linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  }

  .chart-panel,
  .reputation-health-panel,
  .automation-panel {
    border-color: rgba(148, 163, 184, 0.22);
    background:
      radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.1), transparent 36%),
      linear-gradient(180deg, #1e293b, #111827);
  }

  .metric-card,
  .metric-card:nth-child(2),
  .metric-card:nth-child(3),
  .metric-card:nth-child(5),
  .metric-card:nth-child(6) {
    background:
      radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.08), transparent 42%),
      linear-gradient(180deg, #1e293b, #111827);
  }

  .topbar h2,
  .panel h3,
  .section-heading h3,
  .brand-copy strong,
  .metric-card strong,
  .star-bar-row strong,
  .plan-status-copy strong,
  .install-panel strong,
  .trial-panel strong,
  .trial-lock h3 {
    color: #f8fafc;
  }

  .topbar p,
  .topbar-business-name,
  .panel p,
  .settings-panel p,
  .metric-card span,
  .star-bar-row span,
  .dashboard-demo-caption,
  .dashboard-empty-state,
  .review-text,
  .muted-text,
  .chart-legend,
  .install-panel span,
  .trial-panel span,
  .trial-lock p,
  .plan-status-copy span,
  .brand-copy span {
    color: #cbd5e1;
  }

  .eyebrow {
    color: #f1c45b;
  }

  .star-distribution-chart {
    gap: 14px;
  }

  .star-bar-track,
  .review-trend-chart {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.82);
  }

  .star-bar-track i {
    background: linear-gradient(90deg, #c99a2e, #22b8ad);
    box-shadow: 0 0 12px rgba(34, 184, 173, 0.12);
  }

  .trend-review {
    background: linear-gradient(180deg, #38bdf8, #0f766e);
  }

  .trend-reply {
    background: rgba(241, 196, 91, 0.72);
  }

  .chart-legend i {
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.08);
  }

  .dashboard-empty-state {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.68);
  }

  .secondary-action,
  .topbar-install-button,
  .google-connect-button {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.72);
    color: #dbeafe;
  }

  .secondary-action:hover,
  .topbar-install-button:hover,
  .google-connect-button:hover {
    border-color: rgba(14, 165, 233, 0.46);
    background: rgba(30, 41, 59, 0.96);
    color: #f8fafc;
  }
}

/* Blocco 5.1 Octies: compact app header on mobile/tablet */
.logout-icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.logout-icon-button:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.2);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .sidebar {
    gap: 8px;
    padding: 10px 12px;
  }

  .sidebar .brand-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto 36px;
    align-items: center;
    gap: 8px;
    min-height: auto;
    padding: 7px 8px;
  }

  .sidebar .brand-logo-frame.compact.icon-only {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    max-width: 100%;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .logout-icon-button {
    position: static;
    width: 34px;
    height: 34px;
    justify-self: end;
    font-size: 0;
    box-shadow: 0 8px 16px rgba(180, 35, 24, 0.07);
  }

  .pwa-update-button {
    position: static;
    min-height: 31px;
    justify-self: end;
    padding: 0 8px;
    font-size: 0.68rem;
    box-shadow: 0 8px 16px rgba(15, 159, 154, 0.07);
  }

  .logout-icon-button svg {
    width: 17px;
    height: 17px;
  }

  .nav-list {
    gap: 4px;
    padding-bottom: 2px;
  }

  .nav-item {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .sidebar-footer {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 9px;
    margin-bottom: 10px;
    padding: 10px;
  }

  .topbar .eyebrow {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  .topbar h2 {
    font-size: 1.28rem;
  }

  .topbar-business-name {
    margin-top: 2px;
    font-size: 0.76rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .plan-status-widget {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 7px 8px;
    border-radius: 14px;
  }

  .plan-status-copy span {
    font-size: 0.68rem;
  }

  .plan-status-copy strong {
    font-size: 0.76rem;
  }

  .plan-status-widget .compact-action {
    min-height: 29px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .topbar-actions > button {
    min-height: 34px;
    justify-content: center;
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .google-connect-button {
    min-height: 34px;
  }

  .metric-grid {
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .sidebar {
    padding: 8px 10px;
  }

  .sidebar .brand-row {
    grid-template-columns: 48px minmax(0, 1fr) auto 32px;
    padding: 6px 7px;
  }

  .sidebar .brand-logo-frame.compact.icon-only {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-copy span {
    font-size: 0.68rem;
  }

  .logout-icon-button {
    width: 31px;
    height: 31px;
  }

  .pwa-update-button {
    min-height: 29px;
    padding: 0 7px;
    font-size: 0.64rem;
  }

  .logout-icon-button svg {
    width: 16px;
    height: 16px;
  }

  .nav-item {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .topbar {
    padding: 9px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .topbar-actions > button {
    min-height: 32px;
    font-size: 0.71rem;
  }
}

/* Blocco 5.1 Nonies: cleaner operational header and app theme preference */
.topbar > div > .eyebrow,
.topbar-business-name {
  display: none !important;
}

.topbar {
  align-items: flex-start;
  padding: 14px 16px;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(1.48rem, 2.4vw, 2.12rem);
  line-height: 1.08;
}

.app-preferences-panel .settings-grid {
  align-items: start;
}

#theme-select-note {
  margin: 0;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #0f172a;
  color: #e5edf8;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 0, rgba(14, 165, 233, 0.11), transparent 30%),
    linear-gradient(180deg, #0f172a, #111827);
}

html[data-theme="dark"] .app-shell {
  background:
    radial-gradient(circle at 18% 0, rgba(14, 165, 233, 0.11), transparent 30%),
    linear-gradient(180deg, #0f172a, #111827);
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .dashboard-copy,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .trial-panel,
html[data-theme="dark"] .install-panel,
html[data-theme="dark"] .google-status-panel,
html[data-theme="dark"] .google-location-panel,
html[data-theme="dark"] .unanswered-recovery-panel,
html[data-theme="dark"] .profile-checkup-panel,
html[data-theme="dark"] .trial-value-panel,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .activity-item,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .admin-detail-card,
html[data-theme="dark"] .selected-review,
html[data-theme="dark"] .brand-row,
html[data-theme="dark"] .plan-status-widget {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .chart-panel,
html[data-theme="dark"] .reputation-health-panel,
html[data-theme="dark"] .automation-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.1), transparent 36%),
    linear-gradient(180deg, #1e293b, #111827);
}

html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .metric-card:nth-child(2),
html[data-theme="dark"] .metric-card:nth-child(3),
html[data-theme="dark"] .metric-card:nth-child(5),
html[data-theme="dark"] .metric-card:nth-child(6) {
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.08), transparent 42%),
    linear-gradient(180deg, #1e293b, #111827);
}

html[data-theme="dark"] .plan-status-widget.is-trial,
html[data-theme="dark"] .plan-status-widget.is-warning,
html[data-theme="dark"] .plan-status-widget.is-expired,
html[data-theme="dark"] .plan-status-widget.is-paid,
html[data-theme="dark"] .plan-status-widget.is-internal {
  background:
    radial-gradient(circle at 0 0, rgba(241, 196, 91, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
}

html[data-theme="dark"] .topbar h2,
html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .section-heading h3,
html[data-theme="dark"] .brand-copy strong,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .star-bar-row strong,
html[data-theme="dark"] .plan-status-copy strong,
html[data-theme="dark"] .install-panel strong,
html[data-theme="dark"] .trial-panel strong,
html[data-theme="dark"] .trial-lock h3,
html[data-theme="dark"] .admin-detail-header strong,
html[data-theme="dark"] .admin-mini-stat strong,
html[data-theme="dark"] label {
  color: #f8fafc;
}

html[data-theme="dark"] .topbar p,
html[data-theme="dark"] .panel p,
html[data-theme="dark"] .settings-panel p,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .star-bar-row span,
html[data-theme="dark"] .dashboard-demo-caption,
html[data-theme="dark"] .dashboard-empty-state,
html[data-theme="dark"] .review-text,
html[data-theme="dark"] .muted-text,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .optional-label,
html[data-theme="dark"] .chart-legend,
html[data-theme="dark"] .install-panel span,
html[data-theme="dark"] .trial-panel span,
html[data-theme="dark"] .trial-lock p,
html[data-theme="dark"] .admin-trial-help,
html[data-theme="dark"] .plan-status-copy span,
html[data-theme="dark"] .brand-copy span {
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-mini-stat {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.58);
}

html[data-theme="dark"] .admin-mini-stat.is-emphasis {
  border-color: rgba(241, 196, 91, 0.34);
  background: rgba(113, 63, 18, 0.18);
}

html[data-theme="dark"] .eyebrow {
  color: #f1c45b;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: rgba(148, 163, 184, 0.28);
  background: #0f172a;
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .star-distribution-chart {
  gap: 14px;
}

html[data-theme="dark"] .star-bar-track,
html[data-theme="dark"] .review-trend-chart {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"] .star-bar-track i {
  background: linear-gradient(90deg, #c99a2e, #22b8ad);
  box-shadow: 0 0 12px rgba(34, 184, 173, 0.12);
}

html[data-theme="dark"] .dashboard-empty-state {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.68);
}

html[data-theme="dark"] .secondary-action,
html[data-theme="dark"] .topbar-install-button,
html[data-theme="dark"] .google-connect-button {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
}

html[data-theme="dark"] .secondary-action:hover,
html[data-theme="dark"] .topbar-install-button:hover,
html[data-theme="dark"] .google-connect-button:hover {
  border-color: rgba(14, 165, 233, 0.46);
  background: rgba(30, 41, 59, 0.96);
  color: #f8fafc;
}

html[data-theme="dark"] .logout-icon-button {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

html[data-theme="dark"] .pwa-update-button {
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(15, 118, 110, 0.22);
  color: #ccfbf1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .pwa-update-button:hover {
  border-color: rgba(45, 212, 191, 0.48);
  background: rgba(20, 184, 166, 0.24);
  color: #f0fdfa;
}

html[data-theme="light"],
html[data-theme="light"] body {
  color: var(--ink);
}

html[data-theme="light"] body {
  background:
    linear-gradient(135deg, rgba(22, 104, 242, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(15, 159, 154, 0.08), transparent 32%),
    linear-gradient(25deg, rgba(214, 161, 40, 0.08), transparent 28%),
    var(--page);
}

html[data-theme="light"] .app-shell {
  background: transparent;
}

html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar,
html[data-theme="light"] .dashboard-copy,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .settings-panel,
html[data-theme="light"] .trial-panel,
html[data-theme="light"] .install-panel,
html[data-theme="light"] .google-status-panel,
html[data-theme="light"] .google-location-panel,
html[data-theme="light"] .unanswered-recovery-panel,
html[data-theme="light"] .profile-checkup-panel,
html[data-theme="light"] .trial-value-panel,
html[data-theme="light"] .review-card,
html[data-theme="light"] .activity-item,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .selected-review,
html[data-theme="light"] .brand-row {
  border-color: rgba(16, 24, 40, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 255, 0.9));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .plan-status-widget {
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

html[data-theme="light"] .plan-status-widget.is-trial {
  border-color: rgba(22, 104, 242, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.92));
}

html[data-theme="light"] .plan-status-widget.is-warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.94));
}

html[data-theme="light"] .plan-status-widget.is-expired {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.94));
}

html[data-theme="light"] .plan-status-widget.is-paid,
html[data-theme="light"] .plan-status-widget.is-internal {
  border-color: rgba(16, 185, 129, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.92));
}

html[data-theme="light"] .metric-card {
  background:
    radial-gradient(circle at 100% 0, rgba(22, 104, 242, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

html[data-theme="light"] .metric-card:nth-child(2),
html[data-theme="light"] .metric-card:nth-child(5) {
  background:
    radial-gradient(circle at 100% 0, rgba(15, 159, 154, 0.09), transparent 40%),
    linear-gradient(180deg, #ffffff, #f7fffd);
}

html[data-theme="light"] .metric-card:nth-child(3),
html[data-theme="light"] .metric-card:nth-child(6) {
  background:
    radial-gradient(circle at 100% 0, rgba(214, 161, 40, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff, #fffaf0);
}

html[data-theme="light"] .topbar h2,
html[data-theme="light"] .panel h3,
html[data-theme="light"] .section-heading h3,
html[data-theme="light"] .brand-copy strong,
html[data-theme="light"] .metric-card strong,
html[data-theme="light"] .star-bar-row strong,
html[data-theme="light"] .plan-status-copy strong,
html[data-theme="light"] label {
  color: var(--navy);
}

html[data-theme="light"] .panel p,
html[data-theme="light"] .settings-panel p,
html[data-theme="light"] .metric-card span,
html[data-theme="light"] .star-bar-row span,
html[data-theme="light"] .dashboard-demo-caption,
html[data-theme="light"] .dashboard-empty-state,
html[data-theme="light"] .review-text,
html[data-theme="light"] .muted-text,
html[data-theme="light"] .field-help,
html[data-theme="light"] .optional-label,
html[data-theme="light"] .chart-legend,
html[data-theme="light"] .install-panel span,
html[data-theme="light"] .trial-panel span,
html[data-theme="light"] .trial-lock p,
html[data-theme="light"] .plan-status-copy span,
html[data-theme="light"] .brand-copy span {
  color: var(--muted);
}

html[data-theme="light"] .eyebrow {
  color: var(--primary-dark);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  border-color: rgba(16, 24, 40, 0.12);
  background: #ffffff;
  color: var(--ink);
}

html[data-theme="light"] .chart-panel,
html[data-theme="light"] .reputation-health-panel,
html[data-theme="light"] .automation-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(22, 104, 242, 0.06), transparent 42%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

html[data-theme="light"] .star-bar-track,
html[data-theme="light"] .review-trend-chart {
  border-color: rgba(15, 23, 42, 0.04);
  background: #e8eef7;
}

html[data-theme="light"] .star-bar-track i {
  background: linear-gradient(90deg, #d6a128, #0f9f9a);
}

html[data-theme="light"] .dashboard-empty-state {
  background: rgba(248, 252, 255, 0.86);
}

@media (max-width: 760px) {
  .topbar {
    padding: 8px 10px;
  }

  .topbar h2 {
    font-size: 1.2rem;
  }
}

/* Blocco 5.1 Decies: remove overly bright inner surfaces in dark mode */
html[data-theme="dark"] .dashboard-demo-note {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.88));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .dashboard-demo-note p {
  color: #cbd5e1;
}

html[data-theme="dark"] .dashboard-demo-note .review-status,
html[data-theme="dark"] .review-status.draft,
html[data-theme="dark"] .review-status.answered,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .sentiment-pill,
html[data-theme="dark"] .business-pill {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(14, 165, 233, 0.12);
  color: #dbeafe;
}

html[data-theme="dark"] .review-status.warning,
html[data-theme="dark"] .critical-badge,
html[data-theme="dark"] .risk-badge.danger,
html[data-theme="dark"] .negative {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(154, 52, 18, 0.22);
  color: #fed7aa;
}

html[data-theme="dark"] .reputation-health-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
}

html[data-theme="dark"] .reputation-health-meter {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.58);
}

html[data-theme="dark"] .reputation-health-list div,
html[data-theme="dark"] .automation-summary div {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .reputation-health-list span,
html[data-theme="dark"] .automation-summary span {
  color: #b6c4d6;
}

html[data-theme="dark"] .reputation-health-list strong,
html[data-theme="dark"] .automation-summary strong {
  color: #f8fafc;
}

html[data-theme="dark"] .automation-panel {
  border-color: rgba(45, 212, 191, 0.2);
  background:
    radial-gradient(circle at 0 0, rgba(15, 159, 154, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
}

html[data-theme="dark"] .automation-panel .secondary-action {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(15, 23, 42, 0.76);
  color: #ccfbf1;
}

html[data-theme="dark"] .automation-panel .secondary-action:hover {
  border-color: rgba(45, 212, 191, 0.46);
  background: rgba(19, 78, 74, 0.42);
  color: #f0fdfa;
}

html[data-theme="dark"] .plan-status-widget {
  border-color: rgba(45, 212, 191, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(45, 212, 191, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.62));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .plan-status-widget.is-trial,
html[data-theme="dark"] .plan-status-widget.is-warning,
html[data-theme="dark"] .plan-status-widget.is-expired,
html[data-theme="dark"] .plan-status-widget.is-paid,
html[data-theme="dark"] .plan-status-widget.is-internal {
  border-color: rgba(45, 212, 191, 0.26);
  background:
    radial-gradient(circle at 0 0, rgba(45, 212, 191, 0.13), transparent 40%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.66));
}

html[data-theme="dark"] .plan-status-widget.is-expired {
  border-color: rgba(248, 113, 113, 0.3);
  background:
    radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.66));
}

html[data-theme="dark"] .plan-status-widget.is-warning {
  border-color: rgba(251, 191, 36, 0.3);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.66));
}

html[data-theme="dark"] .plan-status-widget .compact-action {
  border-color: rgba(45, 212, 191, 0.26);
  background: rgba(15, 23, 42, 0.78);
  color: #ccfbf1;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .auth-form select {
  border-color: rgba(148, 163, 184, 0.26);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72));
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] input:hover,
html[data-theme="dark"] select:hover,
html[data-theme="dark"] textarea:hover {
  border-color: rgba(56, 189, 248, 0.34);
}

html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] textarea:focus-visible {
  outline-color: rgba(56, 189, 248, 0.32);
  border-color: rgba(56, 189, 248, 0.48);
}

html[data-theme="dark"] select option {
  background: #0f172a;
  color: #f8fafc;
}

html[data-theme="dark"] .selected-review,
html[data-theme="dark"] .risk-analysis-card {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.52));
}

html[data-theme="dark"] .profile-checkup-panel,
html[data-theme="dark"] .trial-value-panel,
html[data-theme="dark"] #dashboard-view #google-status-panel {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
}

html[data-theme="dark"] .trial-progress-summary span,
html[data-theme="dark"] .trial-daily-message {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(14, 165, 233, 0.14);
  color: #e0f2fe;
}

html[data-theme="dark"] .trial-progress-track {
  background: rgba(125, 211, 252, 0.14);
}

html[data-theme="dark"] .trial-progress-summary span strong {
  color: var(--brand-gold);
}

html[data-theme="dark"] .trial-next-step {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.1);
}

html[data-theme="dark"] .trial-next-step strong {
  color: var(--brand-gold);
}

html[data-theme="dark"] .trial-next-step span,
html[data-theme="dark"] .trial-next-step small {
  color: #e2e8f0;
}

html[data-theme="dark"] .trial-reminder-panel,
html[data-theme="dark"] .notification-card.is-trial-reminder {
  border-color: rgba(250, 204, 21, 0.34);
  background:
    radial-gradient(circle at 100% 0, rgba(250, 204, 21, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .trial-reminder-copy h3 {
  color: var(--brand-gold);
}

html[data-theme="dark"] .trial-reminder-copy p,
html[data-theme="dark"] .notification-card.is-trial-reminder p {
  color: #e2e8f0;
}

html[data-theme="dark"] .positive-automation-tip {
  border-color: rgba(250, 204, 21, 0.4);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(20, 184, 166, 0.1));
}

html[data-theme="dark"] .positive-automation-tip strong {
  color: var(--brand-gold);
}

html[data-theme="dark"] .dashboard-empty-state {
  color: #cbd5e1;
}

/* Blocco 5.1 Quindecies: readable editable response editor in every theme */
#response-text {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: #0f172a;
  caret-color: var(--primary);
}

#response-text::placeholder {
  color: #64748b;
}

#response-text:focus {
  border-color: rgba(22, 104, 242, 0.52);
  background: #ffffff;
  color: #0f172a;
  box-shadow:
    inset 0 0 0 1px rgba(22, 104, 242, 0.08),
    0 0 0 3px rgba(22, 104, 242, 0.12);
}

#response-text::selection {
  background: rgba(22, 104, 242, 0.22);
  color: #061a3f;
}

#response-text:disabled,
#response-text[readonly] {
  background: #eef4ff;
  color: #475467;
  opacity: 1;
}

html[data-theme="dark"] #response-text {
  border-color: rgba(125, 211, 252, 0.45);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.08), transparent 34%),
    linear-gradient(180deg, #0f172a, #020617);
  color: #f8fafc;
  caret-color: #7dd3fc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] #response-text::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] #response-text:hover {
  border-color: rgba(125, 211, 252, 0.58);
}

html[data-theme="dark"] #response-text:focus {
  border-color: rgba(125, 211, 252, 0.72);
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(180deg, #0f172a, #020617);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(56, 189, 248, 0.18);
}

html[data-theme="dark"] #response-text::selection {
  background: rgba(56, 189, 248, 0.34);
  color: #f8fafc;
}

html[data-theme="dark"] #response-text:disabled,
html[data-theme="dark"] #response-text[readonly] {
  border-color: rgba(148, 163, 184, 0.24);
  background: #111827;
  color: #cbd5e1;
  opacity: 1;
}

html[data-theme="light"] #response-text {
  border-color: rgba(22, 104, 242, 0.18);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: #0f172a;
}

/* Emergency specificity guard for mobile/PWA cached form styling. */
.response-editor textarea#response-text,
.response-panel textarea#response-text {
  background: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a;
}

.response-editor textarea#response-text::placeholder,
.response-panel textarea#response-text::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b;
}

html[data-theme="dark"] .response-editor textarea#response-text,
html[data-theme="dark"] .response-panel textarea#response-text {
  border-color: rgba(125, 211, 252, 0.52) !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
}

html[data-theme="dark"] .response-editor textarea#response-text::placeholder,
html[data-theme="dark"] .response-panel textarea#response-text::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8;
}

html[data-theme="dark"] .response-editor textarea#response-text:focus,
html[data-theme="dark"] .response-panel textarea#response-text:focus {
  border-color: rgba(125, 211, 252, 0.76) !important;
  background: #020617 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
}

/* Audit UI globale: token StarRev360 e contrasto brand coerente. */
html[data-theme="light"] {
  --app-background: #f5f7fb;
  --surface-primary: #ffffff;
  --surface-secondary: #f8fbff;
  --surface-elevated: #ffffff;
  --text-primary: #101828;
  --text-secondary: #344054;
  --text-muted: #667085;
  --border-default: #d8e0ec;
  --border-active: var(--brand-yellow-light-theme);
  --button-primary-background: var(--brand-yellow);
  --button-primary-text: var(--brand-blue);
  --focus-ring: rgba(255, 210, 35, 0.42);
}

html[data-theme="dark"] {
  --app-background: #0f172a;
  --surface-primary: #111827;
  --surface-secondary: #1e293b;
  --surface-elevated: #243244;
  --text-primary: #f8fafc;
  --text-secondary: #dbe4f0;
  --text-muted: #cbd5e1;
  --border-default: rgba(148, 163, 184, 0.24);
  --border-active: var(--brand-yellow);
  --button-primary-background: var(--brand-yellow);
  --button-primary-text: var(--brand-blue);
  --focus-ring: rgba(255, 210, 35, 0.44);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline-color: var(--focus-ring);
}

.primary-action {
  border: 1px solid var(--button-primary-background);
  background: linear-gradient(135deg, var(--button-primary-background), var(--brand-yellow-hover));
  color: var(--button-primary-text);
  box-shadow: 0 12px 24px rgba(138, 98, 0, 0.18);
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: var(--brand-yellow-hover);
  background: linear-gradient(135deg, #ffe16a, var(--brand-yellow-hover));
  color: var(--button-primary-text);
}

.primary-action.is-loading,
.primary-action:disabled {
  background: linear-gradient(135deg, #f4c84d, #d9a60d);
  color: rgba(6, 26, 63, 0.76);
}

.secondary-action,
.ghost-action {
  border-color: var(--border-default);
  background: var(--surface-primary);
  color: var(--text-primary);
}

.secondary-action:hover,
.ghost-action:hover {
  border-color: var(--border-active);
  background: var(--surface-secondary);
  color: var(--brand-blue);
}

.link-action,
.eyebrow,
.section-heading h3,
.risk-analysis-card h4,
.plan-card h4,
.plan-price,
.nav-item.is-active,
.segment.is-active {
  color: var(--brand-yellow-light-theme);
}

.nav-item.is-active {
  border-color: rgba(255, 210, 35, 0.42);
  box-shadow: inset 3px 0 0 var(--brand-yellow);
}

.segment.is-active {
  border-color: var(--brand-yellow);
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-hover));
  color: var(--brand-blue);
}

.status-pill.google-connect-button,
.topbar-install-button {
  border-color: rgba(138, 98, 0, 0.22);
  background: rgba(255, 210, 35, 0.12);
  color: var(--brand-blue);
}

.status-pill.google-connect-button:hover,
.topbar-install-button:hover {
  border-color: rgba(138, 98, 0, 0.42);
  background: rgba(255, 210, 35, 0.2);
  color: var(--brand-blue);
}

#publish-button.primary-action {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-hover));
  color: var(--brand-blue);
}

#copy-button.secondary-action {
  border-color: var(--border-default);
  background: var(--surface-primary);
  color: var(--text-primary);
}

html[data-theme="dark"] .link-action,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-heading h3,
html[data-theme="dark"] .risk-analysis-card h4,
html[data-theme="dark"] .plan-card h4,
html[data-theme="dark"] .plan-price,
html[data-theme="dark"] .nav-item.is-active,
html[data-theme="dark"] .segment.is-active {
  color: var(--brand-yellow);
}

html[data-theme="dark"] .primary-action {
  border-color: var(--brand-yellow);
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-hover));
  color: var(--brand-blue);
  box-shadow: 0 14px 28px rgba(255, 210, 35, 0.16);
}

html[data-theme="dark"] .primary-action:hover,
html[data-theme="dark"] .primary-action:focus-visible {
  border-color: #ffe16a;
  background: linear-gradient(135deg, #ffe16a, var(--brand-yellow));
  color: var(--brand-blue);
}

html[data-theme="dark"] .secondary-action,
html[data-theme="dark"] .ghost-action,
html[data-theme="dark"] #copy-button.secondary-action {
  border-color: rgba(255, 210, 35, 0.28);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
}

html[data-theme="dark"] .secondary-action:hover,
html[data-theme="dark"] .ghost-action:hover,
html[data-theme="dark"] #copy-button.secondary-action:hover {
  border-color: rgba(255, 210, 35, 0.52);
  background: rgba(36, 50, 68, 0.96);
  color: var(--brand-yellow);
}

html[data-theme="dark"] .status-pill.google-connect-button,
html[data-theme="dark"] .topbar-install-button {
  border-color: rgba(255, 210, 35, 0.34);
  background: rgba(255, 210, 35, 0.12);
  color: var(--brand-yellow);
}

html[data-theme="dark"] .status-pill.google-connect-button:hover,
html[data-theme="dark"] .topbar-install-button:hover {
  border-color: rgba(255, 210, 35, 0.58);
  background: rgba(255, 210, 35, 0.18);
  color: #fff2a3;
}

html[data-theme="dark"] .segment.is-active {
  border-color: var(--brand-yellow);
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-hover));
  color: var(--brand-blue);
}

html[data-theme="dark"] .modal-panel,
html[data-theme="dark"] .trust-modal-panel {
  border-color: var(--border-default);
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-primary));
  color: var(--text-primary);
}

html[data-theme="dark"] .modal-panel p,
html[data-theme="dark"] .trust-modal-content {
  color: var(--text-secondary);
}

html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] textarea:focus-visible {
  border-color: rgba(255, 210, 35, 0.58);
  outline-color: var(--focus-ring);
}

html[data-theme="dark"] #response-text,
html[data-theme="dark"] .response-editor textarea#response-text,
html[data-theme="dark"] .response-panel textarea#response-text {
  border-color: rgba(255, 210, 35, 0.42) !important;
}

html[data-theme="dark"] #response-text:focus,
html[data-theme="dark"] .response-editor textarea#response-text:focus,
html[data-theme="dark"] .response-panel textarea#response-text:focus {
  border-color: rgba(255, 210, 35, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(255, 210, 35, 0.18);
}

html[data-theme="dark"] .plan-status-widget .compact-action,
html[data-theme="dark"] .automation-panel .secondary-action {
  border-color: rgba(255, 210, 35, 0.28);
  color: var(--brand-yellow);
}

.scroll-top-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(6, 26, 63, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-hover));
  color: var(--brand-blue);
  box-shadow: 0 16px 34px rgba(6, 26, 63, 0.22);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.scroll-top-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 20px 40px rgba(6, 26, 63, 0.26);
}

.scroll-top-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

html[data-theme="dark"] .scroll-top-button {
  border-color: rgba(255, 210, 35, 0.38);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 210, 35, 0.08);
}

@media (max-width: 760px) {
  .scroll-top-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 16px));
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-button {
    transition: none;
  }

  .scroll-top-button:hover {
    transform: none;
  }
}

/* Ultima correzione contrasto: Google waiting + nota demo recensioni. */
#dashboard-view #google-status-eyebrow,
#dashboard-view #google-status-note {
  color: var(--brand-yellow-light-theme);
  opacity: 1;
}

.reviews-demo-note,
#reviews-demo-text {
  color: var(--text-secondary);
  opacity: 1;
}

html[data-theme="dark"] #dashboard-view #google-status-eyebrow,
html[data-theme="dark"] #dashboard-view #google-status-note {
  color: var(--brand-yellow);
  opacity: 1;
  text-shadow: 0 1px 10px rgba(255, 210, 35, 0.16);
}

html[data-theme="dark"] .reviews-demo-note,
html[data-theme="dark"] #reviews-demo-text {
  color: #e2e8f0;
  opacity: 1;
}

/* Blocco 5.2: Piano e fatturazione in Impostazioni. */
html[data-theme="dark"] .billing-card,
html[data-theme="dark"] .billing-contact-link,
html[data-theme="dark"] .plan-card.is-custom {
  border-color: rgba(255, 210, 35, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 210, 35, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .billing-card strong,
html[data-theme="dark"] .billing-card h4,
html[data-theme="dark"] .billing-contact-link strong {
  color: #f8fafc;
}

html[data-theme="dark"] .billing-card span,
html[data-theme="dark"] .billing-card small,
html[data-theme="dark"] .billing-card p,
html[data-theme="dark"] .billing-contact-link span {
  color: #cbd5e1;
}

html[data-theme="dark"] .billing-cycle-control {
  border-color: rgba(255, 210, 35, 0.24);
  background: rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"] .billing-cycle-button {
  color: #e2e8f0;
}

html[data-theme="dark"] .billing-cycle-button.is-active {
  color: var(--brand-blue);
}

html[data-theme="dark"] .billing-cycle-badge {
  background: var(--brand-yellow);
  color: var(--brand-blue);
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.22), 0 8px 18px rgba(0, 0, 0, 0.22);
}

/* Blocco 7.0: polish premium UX/UI */
.first-steps-panel {
  margin-top: 12px;
  border-color: rgba(255, 210, 35, 0.24);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 210, 35, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.first-steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.first-step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(22, 104, 242, 0.12);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.82);
}

.first-step-item.is-current {
  border-color: rgba(255, 210, 35, 0.48);
  box-shadow: 0 10px 22px rgba(138, 98, 0, 0.1);
}

.first-step-item.is-done {
  border-color: rgba(22, 163, 74, 0.2);
  background: rgba(236, 253, 243, 0.72);
}

.first-step-number,
.premium-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--brand-blue);
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(138, 98, 0, 0.18);
}

.first-step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.first-step-title-row strong,
.premium-empty-state strong {
  color: var(--navy);
  line-height: 1.2;
}

.first-step-item p,
.premium-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 740;
  line-height: 1.45;
}

.first-step-item button {
  margin-top: 10px;
}

.first-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.first-step-actions button {
  margin-top: 0;
}

.first-steps-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(22, 104, 242, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.first-steps-summary strong {
  color: var(--navy);
}

.first-steps-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 740;
}

.first-steps-mini {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(236, 253, 243, 0.82);
}

.first-steps-mini-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.first-step-item.is-compact {
  padding: 9px 10px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.first-step-item.is-compact .first-step-number {
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
}

.premium-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(22, 104, 242, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.premium-loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 104, 242, 0.14);
  border-radius: var(--radius);
  background: rgba(248, 251, 255, 0.9);
  color: var(--muted);
  font-weight: 850;
}

.premium-loading-state::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(22, 104, 242, 0.18);
  border-top-color: var(--brand-yellow-light-theme);
  border-radius: 999px;
  animation: starrev360-spin 900ms linear infinite;
}

.premium-skeleton-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(22, 104, 242, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
}

.premium-skeleton-card span,
.premium-skeleton-card strong,
.premium-skeleton-card p {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef4ff, #f8fbff, #eef4ff);
  background-size: 220% 100%;
  animation: starrev360-shimmer 1500ms ease-in-out infinite;
}

.premium-skeleton-card strong {
  width: 62%;
  height: 18px;
}

.premium-skeleton-card p {
  width: 86%;
}

.support-panel {
  border-color: rgba(15, 159, 154, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(15, 159, 154, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff, #f7fffd);
}

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

.support-contact-link {
  min-height: 74px;
}

.support-guide {
  margin-top: 14px;
}

.support-guide-card {
  padding: 14px;
  border: 1px solid rgba(15, 159, 154, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.support-guide-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.support-guide-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 740;
}

.toast {
  border-left: 4px solid var(--primary);
}

.toast-success {
  border-color: rgba(22, 163, 74, 0.34);
  border-left-color: #16a34a;
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.38);
  border-left-color: var(--brand-yellow);
}

.toast-error {
  border-color: rgba(220, 38, 38, 0.34);
  border-left-color: #dc2626;
}

.toast-info {
  border-left-color: var(--primary);
}

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

@keyframes starrev360-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

html[data-theme="dark"] .first-steps-panel,
html[data-theme="dark"] .support-panel {
  border-color: rgba(255, 210, 35, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 210, 35, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
}

html[data-theme="dark"] .first-step-item,
html[data-theme="dark"] .premium-empty-state,
html[data-theme="dark"] .premium-loading-state,
html[data-theme="dark"] .premium-skeleton-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .first-step-item.is-current {
  border-color: rgba(255, 210, 35, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .first-step-item.is-done {
  border-color: rgba(45, 212, 191, 0.26);
  background: rgba(19, 78, 74, 0.24);
}

html[data-theme="dark"] .first-steps-summary,
html[data-theme="dark"] .support-guide-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.64);
}

html[data-theme="dark"] .first-steps-mini {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(19, 78, 74, 0.2);
}

html[data-theme="dark"] .first-step-title-row strong,
html[data-theme="dark"] .premium-empty-state strong,
html[data-theme="dark"] .first-steps-summary strong,
html[data-theme="dark"] .support-guide-card h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .first-step-item p,
html[data-theme="dark"] .premium-empty-state p,
html[data-theme="dark"] .premium-loading-state,
html[data-theme="dark"] .first-steps-summary p,
html[data-theme="dark"] .support-guide-card p {
  color: #cbd5e1;
}

html[data-theme="dark"] .premium-skeleton-card span,
html[data-theme="dark"] .premium-skeleton-card strong,
html[data-theme="dark"] .premium-skeleton-card p {
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.76), rgba(71, 85, 105, 0.76), rgba(51, 65, 85, 0.76));
  background-size: 220% 100%;
}

html[data-theme="dark"] .toast {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1180px) {
  .first-steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .first-steps-panel {
    margin-top: 10px;
  }

  .first-steps-list,
  .support-links {
    grid-template-columns: 1fr;
  }

  .first-step-item,
  .premium-empty-state {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .first-steps-summary,
  .first-steps-mini {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .first-steps-mini-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .first-step-item {
    padding: 10px;
  }

  .first-step-title-row {
    gap: 6px;
  }

  .first-step-actions {
    gap: 7px;
  }

  .first-step-actions button {
    min-height: 38px;
  }

  .premium-empty-state button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .first-step-title-row {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-loading-state::before,
  .premium-skeleton-card span,
  .premium-skeleton-card strong,
  .premium-skeleton-card p {
    animation: none;
  }
}
