:root {
  --bg: #f7f9fb;
  --panel: #ffffff;
  --ink: #191c1e;
  --muted: #464555;
  --line: #e2e8f0;
  --outline: #777587;
  --outline-variant: #c7c4d8;
  --green: #059669;
  --green-dark: #047857;
  --coral: #ba1a1a;
  --gold: #f59e0b;
  --blue: #3525cd;
  --sky: #006591;
  --soft-green: #ecfdf5;
  --soft-coral: #fff1f2;
  --soft-blue: #eef2ff;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 6px rgba(15, 23, 42, 0.02);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body:not([data-role="superadmin"]):not([data-role="company_admin"]) [data-admin-only] {
  display: none !important;
}

body:not([data-role="company_admin"]) [data-company-admin-only] {
  display: none !important;
}

body:not([data-role="superadmin"]) [data-superadmin-only] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}


button {
  cursor: pointer;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

[data-icon]::before {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: currentColor;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

[data-icon="dashboard"]::before { content: "D"; }
[data-icon="business"]::before { content: "E"; }
[data-icon="platform"]::before { content: "P"; }
[data-icon="profile"]::before { content: "U"; }
[data-icon="star"]::before { content: "*"; }
[data-icon="link"]::before { content: "G"; }
[data-icon="login"]::before { content: ">"; }
[data-icon="logout"]::before { content: "<"; }
[data-icon="save"]::before { content: "+"; }
[data-icon="sync"]::before { content: "R"; }
[data-icon="reset"]::before { content: "0"; }
[data-icon="clean"]::before { content: "X"; }
[data-icon="pending"]::before { content: "!"; }
[data-icon="check"]::before { content: "OK"; font-size: 8px; }
[data-icon="ai"]::before { content: "AI"; font-size: 9px; }
[data-icon="auto"]::before { content: "A"; }
[data-icon="download"]::before { content: "v"; }
[data-icon="copy"]::before { content: "C"; }
[data-icon="pause"]::before { content: "II"; font-size: 8px; }
[data-icon="play"]::before { content: ">"; }
[data-icon="stars"]::before { display: none; }

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

.sidebar {
  background: #f2f4f6;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 26px;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p {
  margin: 0;
}

.brand h1 {
  font-size: 22px;
  color: var(--blue);
  font-weight: 900;
}

.brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.4;
}

.control-block {
  display: grid;
  gap: 9px;
}

.control-block.compact {
  margin-top: auto;
}

.control-block label,
.toggle-row,
.label-row,
.reply-header,
.search-wrap label {
  font-size: 13px;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar input,
.sidebar select {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

.sidebar code {
  color: var(--blue);
  font-size: 11px;
}

.auth-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.google-connect {
  display: grid;
  gap: 9px;
}

.tenant-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.account-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.account-connect span,
.account-connect strong {
  display: block;
}

.account-connect span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-connect strong {
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.view-switch button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  padding: 10px;
}

.view-switch button.active {
  background: var(--blue);
  color: #ffffff;
}

.client-nav {
  display: grid;
  gap: 8px;
}

.client-nav button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 900;
  padding: 11px 12px;
  text-align: left;
}

.client-nav button.active {
  background: var(--soft-blue);
  color: var(--blue);
  border-color: #c3c0ff;
}

.google-button {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #20292b;
  font-weight: 900;
  padding: 12px 16px;
}

.google-button:disabled,
.secondary-button:disabled,
.publish-button:disabled,
.approve-button:disabled,
.reply-actions button:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: #eef2f7 !important;
  color: #64748b !important;
  border-color: #dbe3ee !important;
  box-shadow: none !important;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
}

.status-pill.online {
  background: #d9f3e8;
  color: #0b5d57;
}

.status-pill.offline {
  background: #f7e4df;
  color: #9d3022;
}

.hint {
  color: #cbd5d8;
  font-size: 12px;
  margin: 0;
  line-height: 1.45;
}

.automation-block {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f9faf8;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.workspace {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.setup-guide {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  gap: 18px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.setup-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.setup-copy h3,
.setup-copy p,
.setup-step p {
  margin: 0;
}

.setup-copy h3 {
  font-size: 22px;
  line-height: 1.15;
}

.setup-copy p,
.setup-step p {
  color: var(--muted);
  line-height: 1.45;
}

.setup-flow {
  display: grid;
  gap: 10px;
}

.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfaf7;
}

.primary-step {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.setup-step > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-weight: 900;
  flex: 0 0 28px;
}

.setup-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.setup-step a,
.setup-step button {
  align-self: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 12px;
  text-decoration: none;
}

.setup-step code {
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: 12px;
}

.step-detail {
  min-width: 0;
}

.mini-steps {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.42;
}

.mini-steps li::marker {
  color: var(--green-dark);
  font-weight: 900;
}

.mini-steps b {
  color: var(--ink);
}

.step-note {
  margin-top: 8px;
  font-size: 12px;
}

.origin-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.origin-box code {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.origin-box button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 9px;
}

.setup-help {
  display: grid;
  gap: 6px;
  border: 1px solid #ead1ca;
  border-radius: 8px;
  background: #fff7f4;
  padding: 12px;
}

.setup-help strong {
  color: var(--coral);
}

.setup-help p,
.setup-help span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-help span {
  font-size: 12px;
  font-weight: 800;
}

.topbar,
.toolbar,
.insights {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
}

.topbar h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(94px, 1fr));
  gap: 10px;
}

.summary-strip button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
  cursor: pointer;
  text-align: left;
}

.summary-strip strong,
.summary-strip span {
  display: block;
}

.summary-strip strong {
  font-size: 24px;
}

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

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

.saas-strip div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px 14px;
}

.saas-strip span,
.saas-strip strong {
  display: block;
}

.saas-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.saas-strip strong {
  margin-top: 4px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.role-notice {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 12px 14px;
  font-weight: 700;
}

.backoffice-panel,
.platform-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.backoffice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.backoffice-head h3,
.backoffice-head p {
  margin: 0;
}

.backoffice-head h3 {
  font-size: 22px;
}

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

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

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

.platform-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.platform-grid span,
.platform-grid strong {
  display: block;
}

.platform-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-grid strong {
  margin-top: 8px;
  font-size: 28px;
}

.backoffice-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.backoffice-grid span,
.backoffice-grid strong,
.backoffice-grid small {
  display: block;
}

.backoffice-grid span,
.backoffice-grid small {
  color: var(--muted);
}

.backoffice-grid span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.backoffice-grid strong {
  margin-top: 8px;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.backoffice-grid small {
  margin-top: 5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.backoffice-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.backoffice-form label[for="billingNotes"] {
  grid-column: 1 / -1;
}

.backoffice-form label span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.backoffice-form input,
.backoffice-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  padding: 12px;
}

.backoffice-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.client-table-wrap {
  overflow-x: auto;
}

.table-scroll {
  overflow-x: auto;
}

.client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.client-table th[data-location-sort] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.client-table tbody tr[data-open-location-ranking] {
  cursor: pointer;
}

.client-table th,
.client-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
}

.client-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-action {
  padding: 8px 10px;
}

.billing-notice {
  margin: 0;
  border: 1px solid #eed3a4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8e8;
  color: #6f5200;
  padding: 12px 14px;
  font-weight: 800;
}

.client-dashboard {
  display: grid;
  gap: 16px;
}

.pending-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
}

.pending-bar span,
.pending-bar strong {
  display: block;
}

.pending-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pending-bar strong {
  margin-top: 4px;
  font-size: 20px;
}

.dashboard-head,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-head h3,
.dashboard-head p,
.panel-title span,
.panel-title strong {
  margin: 0;
}

.dashboard-head h3 {
  font-size: 22px;
}

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

.task-grid article,
.rating-chart-panel,
.keyword-chart-panel,
.task-list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.task-grid span,
.task-grid strong,
.task-grid small,
.panel-title span,
.panel-title strong {
  display: block;
}

.task-grid span,
.task-grid small,
.panel-title span {
  color: var(--muted);
}

.task-grid span,
.panel-title span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-grid strong {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.task-grid small {
  margin-top: 7px;
  font-weight: 700;
}

.dashboard-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 12px;
  align-items: stretch;
}

.rating-chart-panel,
.keyword-chart-panel,
.task-list-panel {
  display: grid;
  gap: 12px;
}

.rating-chart-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-track {
  fill: #ece7dc;
}

.chart-bar {
  fill: var(--green);
}

.chart-label,
.chart-value {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.keyword-track {
  fill: none;
  stroke: #ece7dc;
  stroke-width: 24;
}

.keyword-segment {
  fill: none;
  stroke-width: 24;
  transform: rotate(-90deg);
  transform-origin: 110px 110px;
}

.donut-total {
  fill: var(--ink);
  font-size: 30px;
  font-weight: 900;
  text-anchor: middle;
}

.donut-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
}

.keyword-legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.keyword-legend li span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
}

.keyword-legend strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.client-profile,
.google-guide-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-head h3,
.profile-head p,
.profile-address p {
  margin: 0;
}

.profile-head h3 {
  font-size: 22px;
}

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

.profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.profile-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  padding: 11px 12px;
}

.profile-form input:disabled {
  background: #f1f5f9;
  color: #64748b;
}

.profile-wide-field {
  grid-column: 1 / -1;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-status {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.form-status.online {
  color: var(--green);
}

.form-status.offline {
  color: var(--coral);
}

.password-panel {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 18px;
}

.session-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.session-security-row strong {
  color: var(--ink);
  font-size: 14px;
}

.session-security-row p {
  max-width: 560px;
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

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

@media (max-width: 620px) {
  .session-security-row,
  .session-security-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .session-security-actions .secondary-button {
    justify-content: center;
    width: 100%;
  }
}

.profile-grid article,
.profile-address {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.profile-grid span,
.profile-grid strong,
.profile-address span {
  display: block;
}

.profile-grid span,
.profile-address span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-grid strong {
  margin-top: 8px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.profile-address p {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

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

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

.connection-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.connection-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.connection-card h4 {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.15;
}

.connection-card > p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.connection-help {
  display: grid;
  gap: 10px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.connection-help strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.connection-help ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.connection-fields {
  display: grid;
  gap: 10px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.connection-field {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.connection-field small {
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.connection-field input,
.connection-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 650;
  padding: 9px 11px;
}

.connection-field input:focus,
.connection-field select:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(53, 37, 205, 0.1);
}

.connection-next-step {
  min-height: 20px;
  margin: -2px 0 0;
  color: #526171;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.connection-next-step::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 1px;
  border-radius: 50%;
  background: #2b59d1;
  content: "";
}

.connection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.connection-links a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 11px;
  text-decoration: none;
}

.connection-links a:hover {
  border-color: rgba(53, 37, 205, 0.28);
  background: #eef2ff;
}

.oauth-origin-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.oauth-origin-box span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oauth-origin-box code {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oauth-origin-box .secondary-button {
  min-height: 34px;
  padding: 8px 10px;
}

.channel-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--blue);
}

.channel-icon::before {
  margin: 0 !important;
}

.tripadvisor-icon {
  background: #ecfdf5;
  color: var(--green);
}

.sync-schedule-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.sync-schedule-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sync-schedule-heading h4,
.sync-schedule-heading p {
  margin: 0;
}

.sync-schedule-heading h4 {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.2;
}

.sync-schedule-heading > div > p:last-child {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 13px;
}

.sync-schedule-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(130px, 1fr) minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.sync-schedule-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.sync-schedule-form select {
  min-height: 42px;
  border: 1px solid var(--outline-variant);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
}

.sync-schedule-form .primary-button {
  min-height: 42px;
  white-space: nowrap;
}

.sync-schedule-list {
  display: grid;
  gap: 8px;
}

.sync-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e8edf4;
  padding-top: 12px;
}

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

.sync-schedule-row strong {
  color: #0f172a;
  font-size: 13px;
}

.sync-schedule-row span,
.sync-schedule-empty {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.sync-schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-schedule-actions .icon-button {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

@media (max-width: 760px) {
  .sync-schedule-heading,
  .sync-schedule-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sync-schedule-form {
    grid-template-columns: 1fr;
  }

  .sync-schedule-form .primary-button {
    width: 100%;
  }
}

.connection-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 800;
}

.task-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.task-list li {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.launch-checklist {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.launch-checklist h3,
.launch-checklist p,
.launch-checklist ul {
  margin: 0;
}

.launch-checklist h3 {
  font-size: 20px;
}

.launch-checklist ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

.launch-checklist li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.launch-checklist li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--coral);
}

.launch-checklist li.done {
  color: var(--green-dark);
  background: var(--soft-green);
}

.launch-checklist li.done::before {
  background: var(--green);
}

.onboarding-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.onboarding-actions button {
  min-height: 38px;
  border: 1px solid #cfd8e8;
  border-radius: 8px;
  color: var(--blue);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.onboarding-actions button:hover,
.onboarding-actions button:focus-visible {
  border-color: var(--blue);
  background: #f4f3ff;
  outline: 0;
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  flex-wrap: wrap;
}

.review-health-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.review-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-health-head h3,
.review-health-head p {
  margin: 0;
}

.review-health-head h3 {
  font-size: 18px;
}

.review-health-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.review-health-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.review-health-item:not(:disabled) {
  cursor: pointer;
}

.review-health-item:not(:disabled):hover,
.review-health-item:not(:disabled):focus-visible {
  border-color: var(--primary);
  background: #f7f7ff;
  outline: 0;
}

.review-health-item.attention {
  border-color: #fecaca;
  background: #fff8f7;
}

.review-health-item.theme {
  background: #f8fafc;
}

.review-health-item span,
.review-health-item strong,
.review-health-item small {
  display: block;
}

.review-health-item span,
.review-health-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.review-health-item strong {
  overflow: hidden;
  margin: 4px 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-filter-selects {
  display: flex;
  flex: 1 1 480px;
  flex-wrap: wrap;
  gap: 8px;
}

.review-filter-selects label {
  display: grid;
  flex: 1 1 142px;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.search-wrap {
  flex: 1 1 260px;
  display: grid;
  gap: 6px;
}

.search-wrap input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.review-filter-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 300px;
  gap: 10px;
}

.review-filter-summary {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.review-filter-clear {
  min-height: 40px;
  padding: 9px 12px;
  white-space: nowrap;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(6, 44px);
  gap: 4px;
  background: #ece8df;
  border-radius: 8px;
  padding: 4px;
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.segmented button.active {
  background: #fff;
  box-shadow: 0 1px 7px rgba(31, 35, 37, 0.13);
}

.insights {
  align-items: stretch;
}

.distribution {
  flex: 1;
  display: grid;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.activity-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.activity-head h3,
.activity-head p,
.audit-list {
  margin: 0;
}

.activity-head h3 {
  font-size: 20px;
}

.audit-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.audit-list li {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(160px, 0.9fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 10px 12px;
}

.audit-list strong {
  font-size: 13px;
}

.audit-list span,
.audit-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.audit-list span {
  font-size: 12px;
  font-weight: 800;
}

.audit-list small {
  font-size: 12px;
}

.audit-list .audit-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-weight: 800;
}

.bar-row {
  display: grid;
  grid-template-columns: 34px minmax(90px, 1fr) 32px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 9px;
  background: #edeae2;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green);
}

.quick-actions {
  display: grid;
  gap: 10px;
  width: min(280px, 100%);
}

.review-bulk-actions {
  display: grid;
  align-content: start;
  gap: 8px;
  width: min(280px, 100%);
}

.review-bulk-actions .quick-actions {
  width: 100%;
}

.bulk-action-status {
  min-height: 18px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.bulk-action-status.is-success {
  color: #0f766e;
}

.bulk-action-status.is-error {
  color: #b45309;
}

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
}

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

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

.sidebar .secondary-button {
  background: #ffffff;
  color: #334155;
  border-color: #dbe3ee;
  box-shadow: none;
  justify-content: flex-start;
  min-height: 42px;
}

.sidebar .secondary-button:hover {
  background: #eef2ff;
  color: var(--blue);
  border-color: rgba(53, 37, 205, 0.28);
}

.icon-button {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.review-main {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--green-dark);
  font-weight: 900;
}

.review-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

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

.review-head h3,
.review-head p,
.comment {
  margin: 0;
}

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

.review-head p,
.comment,
.empty-state {
  color: var(--muted);
}

.comment {
  line-height: 1.55;
}

.stars {
  white-space: nowrap;
  color: var(--gold);
  font-weight: 900;
}

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

.tag {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.tag.alert {
  background: var(--soft-coral);
  color: var(--coral);
}

.reply-panel {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reply-actions {
  display: flex;
  gap: 7px;
}

.reply-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.publish-button {
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 11px 14px;
}

.approve-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
  padding: 11px 14px;
}

.publish-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  line-height: 1.45;
}

.empty-state {
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
}

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

  .sidebar {
    position: static;
  }

  .topbar,
  .insights,
  .activity-head,
  .setup-guide,
  .launch-checklist {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-guide,
  .launch-checklist {
    grid-template-columns: 1fr;
  }

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

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

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

  .donut-wrap {
    grid-template-columns: 1fr;
  }

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

  .summary-strip {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .quick-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .reply-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 620px) {
  .workspace,
  .sidebar {
    padding: 20px;
  }

  .summary-strip,
  .saas-strip,
  .task-grid,
  .dashboard-visuals,
  .profile-grid,
  .platform-grid,
  .quick-actions,
  .setup-step {
    grid-template-columns: 1fr;
  }

  .pending-bar,
  .profile-head {
    align-items: stretch;
    flex-direction: column;
  }

  .backoffice-head {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .launch-checklist ul {
    grid-template-columns: 1fr;
  }

  .review-main,
  .review-head {
    flex-direction: column;
  }

  .audit-list li {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Modern SaaS visual refresh */
.google-button,
.primary-button {
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(53, 37, 205, 0.18);
}

.secondary-button,
.approve-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.status-pill {
  border: 1px solid transparent;
  font-weight: 900;
}

.status-pill.online {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}


.workspace {
  background: var(--bg);
}

.topbar,
.saas-strip div,
.summary-strip button,
.task-grid article,
.rating-chart-panel,
.keyword-chart-panel,
.task-list-panel,
.client-profile,
.google-guide-panel,
.backoffice-panel,
.platform-panel,
.launch-checklist,
.activity-panel,
.review-card,
.toolbar,
.insights {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.topbar {
  padding: 20px 24px;
}

.topbar h2 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow,
.task-grid span,
.platform-grid span,
.backoffice-grid span,
.profile-grid span,
.panel-title span,
.saas-strip span,
.summary-strip span {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.summary-strip strong,
.task-grid strong,
.platform-grid strong {
  color: var(--ink);
}

.pending-bar {
  border-left-color: var(--blue);
  box-shadow: var(--shadow);
}



.review-card {
  padding: 18px;
}

.tag {
  border: 1px solid rgba(5, 150, 105, 0.18);
}

.tag.alert {
  border-color: rgba(186, 26, 26, 0.2);
}

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

/* ZIP design alignment */
:root {
  --sidebar: #f2f4f6;
  --topbar: #ffffff;
  --text-soft: #64748b;
  --card-radius: 12px;
}

.app-shell {
  display: block;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 16px;
  gap: 20px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}

.brand {
  gap: 12px;
  padding: 0 4px 6px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(53, 37, 205, 0.22);
  font-size: 20px;
}

.brand h1 {
  color: #111827;
  font-size: 18px;
  letter-spacing: 0;
}

.brand p {
  color: var(--text-soft);
  font-size: 12px;
}

.control-block,
.auth-block,
.tenant-block,
.automation-block {
  border-radius: var(--card-radius);
}

.auth-block,
.tenant-block,
.automation-block {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: none;
}

.sidebar input,
.sidebar select {
  min-width: 0;
  font-size: 14px;
}

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

.auth-actions #logoutButton {
  justify-content: center;
  padding: 0;
  font-size: 0;
}

.auth-actions #logoutButton::before {
  margin: 0;
  font-size: 11px;
}

.account-connect {
  grid-template-columns: 1fr;
}

.account-connect .google-button {
  width: 100%;
  justify-content: center;
}

.session-profile {
  display: none;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.session-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.session-profile strong,
.session-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-profile strong {
  font-size: 13px;
}

.session-profile small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

body[data-signed-in="true"] .session-profile {
  display: grid;
}

body[data-signed-in="true"] .auth-block label[for="loginEmail"],
body[data-signed-in="true"] .auth-block label[for="loginPassword"],
body[data-signed-in="true"] #loginEmail,
body[data-signed-in="true"] #loginPassword,
body[data-signed-in="true"] #loginButton {
  display: none;
}

body[data-signed-in="true"] .auth-actions {
  grid-template-columns: 1fr;
}

body[data-signed-in="true"] .auth-actions #logoutButton {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  font-size: 13px;
}

body[data-signed-in="false"] .account-connect {
  display: none !important;
}

body[data-signed-in="false"] #logoutButton {
  display: none !important;
}

body[data-signed-in="false"] .auth-actions {
  grid-template-columns: 1fr;
}

body[data-signed-in="false"] .sidebar > .control-block:not(.auth-block) {
  display: none !important;
}

/* Focused access screen adapted from the Stitch desktop and mobile references. */
body[data-signed-in="false"] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100dvh;
  background: #f7f9fb;
}

body[data-signed-in="false"] .app-shell {
  display: block;
  min-height: 0;
}

body[data-signed-in="false"] .sidebar {
  position: relative;
  width: min(100%, 560px);
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  padding: 72px 24px 32px;
  background: transparent;
  border: 0;
}


body[data-signed-in="false"] .brand {
  flex-direction: column;
  gap: 10px;
  margin: 0 0 36px;
  text-align: center;
}

body[data-signed-in="false"] .brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #4f46e5;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
  font-size: 30px;
}

body[data-signed-in="false"] .brand h1 {
  color: #191c1e;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}

body[data-signed-in="false"] .brand p {
  max-width: 360px;
  margin: 0 auto;
  color: #464555;
  font-size: 16px;
  line-height: 1.5;
}

body[data-signed-in="false"] .auth-block {
  display: block;
  padding: 38px 40px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.035);
}

body[data-signed-in="false"] .auth-block > .label-row,
body[data-signed-in="false"] .auth-block > .session-profile,
body[data-signed-in="false"] .auth-block > .account-connect,
body[data-signed-in="false"] .auth-block > .auth-actions {
  display: none !important;
}

.guest-auth-header {
  margin-bottom: 28px;
}

.guest-auth-header h2,
.guest-auth-header p {
  margin: 0;
}

.guest-auth-header h2 {
  color: #191c1e;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.guest-auth-header p {
  margin-top: 6px;
  color: #5d5a70;
  font-size: 14px;
}

.guest-login-form {
  display: grid;
  gap: 18px;
}

.guest-login-field,
.guest-password-row {
  display: grid;
  gap: 8px;
}

.guest-login-field > span,
.guest-password-row label {
  color: #464555;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guest-password-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: -10px;
}

.guest-input-wrap {
  position: relative;
}

.guest-input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  color: #191c1e;
  background: #ffffff;
  border: 1px solid #c7c4d8;
  border-radius: 10px;
  font-size: 16px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guest-input-wrap input::placeholder {
  color: #777587;
}

.guest-input-wrap input:focus {
  border-color: #3525cd;
  box-shadow: 0 0 0 3px rgba(53, 37, 205, 0.12);
}

.guest-input-wrap input[aria-invalid="true"] {
  border-color: #c2413a;
  box-shadow: 0 0 0 3px rgba(194, 65, 58, 0.12);
}

.guest-password-wrap input {
  padding-right: 92px;
}

.guest-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  min-height: 32px;
  padding: 0 8px;
  transform: translateY(-50%);
  color: #3525cd;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.guest-password-toggle:hover,
.guest-password-toggle:focus-visible {
  background: #eef2ff;
  outline: 0;
}

.remember-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #464555;
  font-size: 14px;
}

.remember-login input {
  width: 18px;
  height: 18px;
  accent-color: #3525cd;
}

.auth-link {
  width: fit-content;
  min-height: auto;
  padding: 0;
  color: #3525cd;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(53, 37, 205, 0.28);
  text-underline-offset: 4px;
}

.auth-link:hover {
  color: #2518bd;
}

.auth-link:focus-visible {
  color: #2518bd;
  outline: 3px solid #3525cd;
  outline-offset: 3px;
}

body[data-signed-in="false"] #loginButton {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  border-radius: 10px;
  background: #3525cd;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

body[data-signed-in="false"] #loginButton:hover {
  background: #2518bd;
}

.guest-auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 26px 0;
}

.guest-auth-divider::before {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: #d9d9e5;
  content: "";
}

.guest-auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  color: #686678;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guest-google-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  color: #191c1e;
  background: #ffffff;
  border: 1px solid #c7c4d8;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.guest-google-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #4285f4;
  font-size: 13px;
  font-weight: 800;
}

.guest-google-button:hover,
.guest-google-button:focus-visible {
  background: #f7f9fb;
  border-color: #3525cd;
  outline: 0;
}

.guest-auth-feedback {
  min-height: 0;
  margin: 16px 0 0;
  color: #464555;
  font-size: 13px;
  line-height: 1.45;
}

.guest-auth-feedback:empty {
  display: none;
}

.guest-auth-feedback.is-error {
  color: #ba1a1a;
}

.guest-access-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: #5a6275;
  font-size: 13px;
  line-height: 1.45;
}

.guest-access-note [data-icon] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--blue);
}

body[data-signed-in="false"] #loginButton[data-loading="true"] {
  cursor: progress;
}

body[data-signed-in="false"] #loginButton[data-loading="true"]::after {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: login-button-spin 720ms linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.guest-presentation-link {
  display: block;
  margin-top: 16px;
  color: #3525cd;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.guest-presentation-link:hover,
.guest-presentation-link:focus-visible {
  color: #2518bd;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guest-footer {
  display: none;
}

body[data-signed-in="false"] .guest-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 48px;
  color: #5d5a70;
  font-size: 13px;
}

.guest-footer > div,
.guest-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-footer > div strong {
  color: #464555;
}

.guest-footer > div span::before {
  display: inline-block;
  width: 1px;
  height: 16px;
  margin-right: 12px;
  vertical-align: -3px;
  background: #c7c4d8;
  content: "";
}

.guest-footer p {
  margin: 0;
  text-align: center;
}

.guest-footer button,
.guest-footer a {
  padding: 0;
  color: #3525cd;
  background: transparent;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(53, 37, 205, 0.28);
  text-underline-offset: 4px;
}

.guest-footer a {
  text-decoration-color: rgba(53, 37, 205, 0.28);
}

.guest-footer nav {
  justify-content: flex-end;
}

body[data-signed-in="true"] .guest-auth-header,
body[data-signed-in="true"] .guest-login-form,
body[data-signed-in="true"] .guest-auth-divider,
body[data-signed-in="true"] .guest-google-button,
body[data-signed-in="true"] .guest-auth-feedback,
body[data-signed-in="true"] .guest-presentation-link,
body[data-signed-in="true"] .guest-footer {
  display: none !important;
}

@media (max-width: 720px) {
  .platform-delivery-card,
  .platform-legal-card {
    padding: 20px;
  }

  .platform-delivery-head,
  .platform-legal-head,
  .platform-delivery-actions,
  .platform-legal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-delivery-grid {
    grid-template-columns: 1fr;
  }

  .platform-legal-form {
    grid-template-columns: 1fr;
  }

  .platform-legal-wide {
    grid-column: auto;
  }

  .platform-delivery-actions > div,
  .platform-legal-actions > div {
    justify-content: flex-start;
  }
}

/* Kora visual refresh: a calmer operational workspace with consistent hierarchy. */
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e8f0;
  --outline-variant: #d6dbe7;
  --blue: #5146d9;
  --green: #0b8f68;
  --green-dark: #087553;
  --coral: #c2414b;
  --gold: #d99008;
  --soft-blue: #f0efff;
  --soft-green: #eaf8f2;
  --soft-coral: #fff1f2;
  --shadow: 0 1px 2px rgba(24, 35, 58, 0.03), 0 10px 24px rgba(24, 35, 58, 0.035);
  --card-radius: 8px;
}















body[data-signed-in="true"] .client-nav button [data-icon]::before,
body[data-signed-in="true"] .client-nav button::before,
body[data-signed-in="true"] .view-switch button::before {
  opacity: 0.86;
}













































































/* Access screen shares the same compact, intentional language. */
body[data-signed-in="false"] {
  background: #f7f8fc;
}













@media (max-width: 1100px) {
  body[data-signed-in="true"] .workspace {
    padding-right: 24px;
    padding-left: 24px;
  }

  body[data-signed-in="true"] .topbar {
    margin-right: -24px;
    margin-left: -24px;
    padding-right: 24px;
    padding-left: 24px;
  }

  body[data-signed-in="true"] .operational-strip,
  body[data-signed-in="true"] .client-dashboard .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body[data-signed-in="true"] .sidebar {
    padding: 14px 16px 6px;
    background: #fbfcff;
  }

  body[data-signed-in="true"] .brand h1 {
    font-size: 20px;
  }

  body[data-signed-in="true"] .workspace {
    padding: 16px 16px calc(var(--mobile-bottom-nav) + 24px);
  }

  body[data-signed-in="true"] .topbar {
    margin: 0 -16px 16px;
    padding: 12px 16px;
    background: #ffffff;
  }

  body[data-signed-in="true"] .topbar-search {
    width: calc(100vw - 32px);
    min-height: 44px;
  }

  body[data-signed-in="true"] .page-heading {
    padding-top: 8px;
  }

  body[data-signed-in="true"] .client-dashboard-hero {
    align-items: stretch;
  }

  body[data-signed-in="true"] .client-dashboard-hero h3 {
    font-size: 24px;
  }

  body[data-signed-in="true"] .dashboard-hero-actions {
    justify-content: flex-start;
  }

  body[data-signed-in="true"] .operational-strip,
  body[data-signed-in="true"] .client-dashboard .task-grid {
    gap: 10px;
  }

  body[data-signed-in="true"] .operational-strip article,
  body[data-signed-in="true"] .client-dashboard .metric-card {
    min-height: 126px;
    padding: 16px;
  }

  body[data-signed-in="true"] .metric-card {
    padding-top: 48px !important;
  }

  body[data-signed-in="true"] .rating-evolution-panel,
  body[data-signed-in="true"] .star-distribution-panel,
  body[data-signed-in="true"] .client-profile,
  body[data-signed-in="true"] .google-guide-panel,
  body[data-signed-in="true"] .support-center,
  body[data-signed-in="true"] .backoffice-panel,
  body[data-signed-in="true"] .platform-panel {
    padding: 18px;
    border-radius: 8px !important;
  }

  body[data-signed-in="false"] .sidebar {
    padding: 42px 20px 28px;
  }

  body[data-signed-in="false"] .auth-block {
    padding: 26px 22px 28px;
  }
}

.hint,
.toggle-row {
  color: var(--muted);
}

.view-switch {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.client-nav {
  gap: 4px;
}

.view-switch button,
.client-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.client-nav button {
  display: flex;
  align-items: center;
}

.view-switch button:hover,
.client-nav button:hover {
  background: #e8edf3;
  color: #111827;
}

.view-switch button.active,
.client-nav button.active {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid rgba(53, 37, 205, 0.14);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

[data-icon]::before {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 11px;
}

.google-button,
.primary-button {
  min-height: 40px;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(53, 37, 205, 0.16);
}

.secondary-button,
.approve-button {
  min-height: 40px;
  border-radius: 10px;
  background: #ffffff;
}

.workspace {
  margin-left: 280px;
  min-height: 100vh;
  padding: 0 32px 42px;
  gap: 24px;
  background: var(--bg);
}

.workspace > section,
.workspace > p {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  margin: 0 -32px;
  padding: 12px 32px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.topbar-search {
  width: min(520px, 52vw);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 14px;
}

.topbar-search span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e5e7eb;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.topbar-search input {
  width: 100%;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

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

.topbar-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  color: inherit;
  padding-left: 12px;
  cursor: pointer;
  text-align: left;
}

.user-chip:hover strong {
  color: var(--blue);
}

.avatar-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.user-chip strong,
.user-chip small {
  display: block;
  white-space: nowrap;
}

.user-chip strong {
  font-size: 13px;
}

.user-chip small {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.95fr);
  gap: 24px;
  align-items: end;
  margin-top: 30px;
}

.page-heading h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.summary-strip {
  gap: 16px;
}

.summary-strip button,
.saas-strip div,
.task-grid article,
.rating-chart-panel,
.keyword-chart-panel,
.task-list-panel,
.client-profile,
.google-guide-panel,
.backoffice-panel,
.platform-panel,
.launch-checklist,
.activity-panel,
.review-card,
.toolbar,
.insights {
  border-radius: var(--card-radius);
  border-color: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.summary-strip button {
  position: relative;
  min-height: 92px;
  padding: 18px 18px 16px 56px;
}

.summary-strip button::before,
.task-grid article::before {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.summary-strip button:nth-child(1)::before { content: "*"; }
.summary-strip button:nth-child(2)::before { content: "R"; }
.summary-strip button:nth-child(3)::before { content: "!"; }
.summary-strip button:nth-child(4)::before { content: "AI"; font-size: 10px; }

.summary-strip strong {
  font-size: 28px;
  line-height: 1;
}

.summary-strip span,
.saas-strip span,
.task-grid span,
.panel-title span,
.profile-grid span,
.platform-grid span,
.backoffice-grid span {
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.saas-strip {
  gap: 16px;
}

.saas-strip div {
  padding: 16px 18px;
}

.pending-bar {
  border: 1px solid rgba(53, 37, 205, 0.16);
  border-left: 4px solid var(--blue);
  border-radius: var(--card-radius);
  background: linear-gradient(90deg, #ffffff 0%, #f8f7ff 100%);
}

.dashboard-head,
.backoffice-head,
.activity-head,
.profile-head {
  margin-top: 6px;
}

.task-grid {
  gap: 16px;
}

.task-grid article {
  position: relative;
  min-height: 132px;
  padding: 52px 18px 18px;
}

.task-grid article:nth-child(1)::before { content: "+"; }
.task-grid article:nth-child(2)::before { content: "!"; }
.task-grid article:nth-child(3)::before { content: "C"; background: #fff1f2; color: var(--coral); }
.task-grid article:nth-child(4)::before { content: "OK"; font-size: 9px; background: #ecfdf5; color: var(--green); }

.task-grid strong,
.platform-grid strong,
.backoffice-grid strong {
  font-size: 30px;
  line-height: 1.1;
}

.dashboard-visuals {
  gap: 16px;
}

.rating-chart-panel,
.keyword-chart-panel,
.task-list-panel,
.platform-panel,
.backoffice-panel,
.google-guide-panel,
.client-profile,
.activity-panel {
  padding: 22px;
}

.panel-title strong {
  color: #0f172a;
  font-size: 18px;
}

.chart-bar {
  fill: var(--blue);
}

.chart-label {
  fill: var(--text-soft);
}

.keyword-segment {
  stroke-linecap: round;
}

.review-card {
  border-radius: var(--card-radius);
  padding: 20px;
}

.tag {
  border-radius: 999px;
}

.notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--app-surface, #ffffff);
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-filter button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.status-filter button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.review-detail-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.review-detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.detail-shell {
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 18px 22px;
  backdrop-filter: blur(10px);
}

.detail-header h2,
.detail-header p {
  margin: 0;
}

.detail-header h2 {
  font-size: 26px;
  line-height: 1.1;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 18px;
  padding: 22px;
}

.detail-review-card,
.ai-editor-panel,
.ai-context-panel section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-review-card {
  grid-column: 1;
  padding: 22px;
}

.review-translation-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.review-translation-tools label,
.ai-editor-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-translation-tools select,
.ai-editor-controls select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0 8px;
}

.review-translation-panel {
  margin-top: 12px;
  border: 1px solid #cfd8e8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.review-translation-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.review-translation-panel span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.review-translation-panel small {
  color: var(--muted);
  font-size: 11px;
}

.review-translation-panel p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ai-editor-panel {
  grid-column: 1;
  overflow: hidden;
}

.ai-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--blue);
  color: #ffffff;
  padding: 14px 18px;
}

.ai-editor-head span,
.ai-editor-head strong {
  display: block;
}

.ai-editor-head span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-editor-head strong {
  margin-top: 3px;
  font-size: 13px;
}

.ai-editor-head .secondary-button {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ai-editor-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-editor-controls label {
  color: rgba(255, 255, 255, 0.82);
}

.ai-editor-controls select {
  max-width: 172px;
  border-color: rgba(255, 255, 255, 0.3);
}

#detailReply {
  min-height: 190px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  padding: 20px;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 6px;
}

.ai-editor-panel .publish-status {
  min-height: 24px;
  padding: 0 18px 16px;
}

.ai-context-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: 18px;
}

.ai-context-panel section {
  padding: 18px;
}

.confidence-score {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 14px 0 18px;
}

.confidence-score strong {
  color: var(--blue);
  font-size: 44px;
  line-height: 0.9;
}

.confidence-score span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.confidence-bars {
  display: grid;
  gap: 8px;
}

.confidence-bars label {
  display: flex;
  justify-content: space-between;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.confidence-bars div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.confidence-bars div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.confidence-bars div:first-of-type span {
  background: var(--green);
}

.detail-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.detail-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.detail-timeline li {
  position: relative;
}

.detail-timeline li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--line);
}

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

.detail-timeline strong {
  font-size: 13px;
}

.detail-timeline span,
.ai-tip p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.ai-tip {
  background: #eef2ff !important;
  border-color: #d9ddff !important;
}

.ai-tip strong {
  color: var(--blue);
}

.contact-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.contact-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.contact-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 11px 12px;
}

.contact-form input[readonly] {
  background: #f8fafc;
}

.contact-wide {
  grid-column: 1 / -1;
}

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

.two-factor-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.two-factor-recovery {
  display: grid;
  gap: 10px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px;
  background: #fffbeb;
}

.two-factor-recovery strong {
  color: #92400e;
}

.two-factor-recovery p {
  margin: 0;
  color: #92400e;
  font-size: 13px;
  line-height: 1.45;
}

.two-factor-recovery textarea {
  min-height: 112px;
  resize: vertical;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: #78350f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.active-sessions-list {
  display: grid;
  gap: 0;
  max-height: min(56vh, 420px);
  overflow: auto;
}

.active-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
  background: #ffffff;
}

.active-session-item.is-current {
  border-left: 3px solid var(--green);
  background: #f0fdf4;
}

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

.active-session-item strong {
  color: var(--ink);
  font-size: 14px;
}

.active-session-item span {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
}

@media (max-width: 620px) {
  .active-session-item {
    align-items: stretch;
    flex-direction: column;
  }

  .active-session-item .secondary-button {
    justify-content: center;
    width: 100%;
  }
}

.two-factor-secret-row {
  display: flex;
  gap: 10px;
}

.two-factor-secret-row input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.inline-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

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

.danger-button {
  border-color: #fecaca;
  color: #b91c1c;
}

.danger-button:hover:not(:disabled) {
  border-color: #fca5a5;
  background: #fff1f2;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  background: #f8fafc;
}

.notification-dialog {
  width: min(680px, calc(100vw - 32px));
}

.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  background: #f8fafc;
}

.notification-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 720;
}

.notification-filters {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.notification-filter {
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 7px 10px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
}

.notification-filter:last-child {
  border-right: 0;
}

.notification-filter:hover,
.notification-filter:focus-visible {
  background: #f3f4ff;
  color: var(--blue);
  outline: 0;
}

.notification-filter.active {
  background: var(--blue);
  color: #ffffff;
}

.notification-list {
  display: grid;
  gap: 0;
  max-height: min(60vh, 540px);
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 16px 22px;
  background: #ffffff;
}

.notification-item.critical {
  border-left-color: var(--coral);
}

.notification-item.is-read {
  background: #f8fafc;
  opacity: 0.68;
}

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

.notification-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.notification-copy span,
.notification-copy small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.notification-copy span {
  font-size: 13px;
}

.notification-copy small {
  font-size: 12px;
  font-weight: 800;
}

.notification-empty {
  padding: 28px 22px;
  color: var(--text-soft);
  font-weight: 800;
  text-align: center;
}

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

@media (max-width: 620px) {
  .notification-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.settings-panel {
  display: grid;
  gap: 18px;
}

.settings-hero,
.settings-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.settings-hero h3,
.settings-hero p {
  margin: 0;
}

.settings-hero h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.1;
}

.settings-hero span:not(.status-pill) {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
}

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

.settings-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 20px;
}

.settings-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.settings-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--blue);
}

.settings-card strong,
.settings-card small {
  display: block;
}

.settings-card strong {
  color: #0f172a;
  font-size: 17px;
}

.settings-card small,
.settings-card label > span,
#helpTopicText {
  color: var(--text-soft);
  font-size: 13px;
}

.settings-card label {
  display: grid;
  gap: 8px;
}

.settings-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 11px 12px;
}

.theme-swatch-grid,
.help-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-swatch-grid button {
  width: 46px;
  height: 46px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 4px #ffffff, 0 6px 18px rgba(15, 23, 42, 0.12);
}

.theme-swatch-grid button.active {
  border-color: var(--blue);
}

.help-link-grid button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  padding: 9px 12px;
}

.help-link-grid button:hover {
  border-color: rgba(53, 37, 205, 0.24);
  color: var(--blue);
}

body[data-help-tips="false"] .connection-steps,
body[data-help-tips="false"] .hint {
  display: none !important;
}

body[data-onboarding-hints="false"] .launch-checklist {
  display: none !important;
}

.tags {
  align-items: center;
}

.tag,
.tag.alert {
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1;
}

.publish-button:disabled,
.primary-button:disabled {
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
  opacity: 1;
}

body[data-app-view="client"][data-client-page="dashboard"] .page-heading,
body[data-app-view="client"][data-client-page="dashboard"] .saas-strip,
body[data-app-view="client"][data-client-page="dashboard"] #roleNotice {
  display: none !important;
}

body[data-app-view="client"][data-client-page="dashboard"] .client-dashboard {
  margin-top: 28px;
}

.client-dashboard {
  gap: 24px;
}

.client-dashboard-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.client-dashboard-hero h3,
.client-dashboard-hero p {
  margin: 0;
}

.client-dashboard-hero h3 {
  margin-top: 8px;
  color: #334155;
  font-size: 18px;
}

.client-dashboard-hero span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-weight: 700;
}

.dashboard-range {
  min-width: 130px;
}

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

.dashboard-hero-actions .secondary-button {
  min-height: 40px;
  white-space: nowrap;
}

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

.operational-strip article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}

.operational-strip span,
.operational-strip strong,
.operational-strip small {
  display: block;
}

.operational-strip span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.operational-strip strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.1;
}

.operational-strip small {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.operational-strip .health-ok {
  color: var(--green);
}

.operational-strip .health-warn {
  color: #b45309;
}

.client-dashboard .task-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.client-dashboard .metric-card {
  min-height: 150px;
  padding: 54px 24px 20px;
  border-radius: 12px;
}

.metric-card::after {
  position: absolute;
  right: 18px;
  top: 18px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
}

.metric-rating::after { content: "+0.2%"; }
.metric-total::after { content: "+12%"; }
.metric-new::after { content: "New"; }
.metric-pending::after {
  content: "Urgent";
  background: #fff1f2;
  color: var(--coral);
}

.metric-card small {
  color: var(--green);
}

.metric-card strong {
  display: flex !important;
  align-items: baseline;
  gap: 5px;
}

.metric-rating::before {
  content: "*" !important;
}

.metric-total::before {
  content: "R" !important;
}

.metric-new::before {
  content: "N" !important;
  background: #ecfdf5 !important;
  color: var(--green) !important;
}

.metric-pending::before {
  content: "!" !important;
  background: #fff1f2 !important;
  color: var(--coral) !important;
}

.metric-rating > small:last-child {
  display: none;
}

.metric-pending small {
  color: var(--coral);
}

.metric-star {
  display: inline !important;
  color: var(--gold) !important;
  font-size: 20px !important;
}

.dashboard-visuals {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.62fr);
  gap: 24px;
  align-items: stretch;
}

.rating-evolution-panel,
.star-distribution-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.rating-evolution-panel .panel-title {
  align-items: start;
}

.chart-legend {
  display: flex;
  gap: 14px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

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

.chart-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
}

.chart-legend span + span::before {
  background: #c8c3f8;
}

#evolutionChart {
  width: 100%;
  min-height: 260px;
  display: block;
}

.evolution-axis {
  stroke: #eef2f7;
  stroke-width: 2;
}

.evolution-shadow {
  fill: #d9d5f7;
}

.evolution-primary {
  fill: var(--blue);
}

.evolution-label {
  fill: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.star-distribution-panel svg {
  min-height: 210px;
}

.star-distribution-panel .chart-bar {
  fill: #10b981;
}

.star-distribution-panel .chart-track {
  fill: #f0f1f3;
}

.distribution-quote {
  margin: 4px 0 0;
  color: #8a93a3;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.pending-tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #475569;
  font-weight: 900;
}

.pending-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) auto;
  gap: 24px;
}

.client-dashboard .pending-bar,
.attention-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 12px;
  padding: 18px 20px;
}

.client-dashboard .pending-bar {
  border: 1px solid #d9ddff;
  border-left: 0;
  background: #f6f5ff;
}

.attention-card {
  border: 1px solid #ffd5d5;
  background: #fff5f5;
}

.attention-card span,
.attention-card strong,
.attention-card small,
.pending-bar small {
  display: block;
}

.attention-card span,
.pending-bar span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.attention-card strong {
  color: var(--coral);
}

.attention-card small,
.pending-bar small {
  margin-top: 3px;
  color: var(--text-soft);
  font-weight: 700;
}

.task-arrow,
.task-add {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(53, 37, 205, 0.18);
}

.task-arrow {
  background: transparent;
  color: var(--blue);
  box-shadow: none;
}

.compact-task-list {
  margin-top: -8px;
}

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

.dashboard-review-queue,
.dashboard-keywords,
.action-plan-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.dashboard-queue {
  display: grid;
  gap: 12px;
}

.queue-item,
.queue-empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}

.queue-item.urgent {
  border-color: #ffd5d5;
  background: #fff8f8;
}

.queue-item.ready {
  border-color: #d9ddff;
  background: #f8f7ff;
}

.queue-item strong,
.queue-item span,
.queue-item p,
.queue-empty strong,
.queue-empty span {
  display: block;
  margin: 0;
}

.queue-item strong {
  color: #0f172a;
  font-size: 14px;
}

.queue-item span,
.queue-empty span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.queue-item p {
  margin-top: 5px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.queue-item button,
.dashboard-review-queue .secondary-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 900;
  padding: 10px 12px;
}

.queue-empty {
  grid-template-columns: minmax(0, 1fr);
  background: #f8fafc;
}

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

.action-plan-item {
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid #e5eaf2;
  border-left: 3px solid #94a3b8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 15px;
}

.action-plan-item.priority-urgent {
  border-color: #fecaca;
  border-left-color: #dc2626;
  background: #fff8f8;
}

.action-plan-item.priority-high {
  border-color: #fed7aa;
  border-left-color: #ea580c;
  background: #fffaf5;
}

.action-plan-item.priority-opportunity {
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  background: #f8fbff;
}

.action-plan-item-head,
.action-plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-plan-item-head > span:last-child {
  color: #64748b;
  font-size: 12px;
}

.action-priority {
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.priority-urgent .action-priority {
  background: #fee2e2;
  color: #b91c1c;
}

.priority-high .action-priority {
  background: #ffedd5;
  color: #c2410c;
}

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

.action-plan-item h4 {
  color: #0f172a;
  font-size: 15px;
}

.action-plan-item p {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.action-plan-footer {
  align-items: flex-end;
  border-top: 1px solid #e8edf4;
  margin-top: 3px;
  padding-top: 11px;
}

.action-plan-footer > span {
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.action-plan-footer .secondary-button {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}

.action-plan-empty {
  margin: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  line-height: 1.5;
  padding: 18px;
  text-align: center;
}

.ai-insights-summary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-accent-soft);
  padding: 14px 16px;
}

.ai-insights-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-insights-summary-head strong {
  color: var(--app-ink);
  font-size: 14px;
}

.ai-insights-summary-text {
  margin: 0;
  color: var(--app-ink);
  line-height: 1.5;
}

.ai-insights-summary-meta {
  color: var(--app-muted);
  font-size: 12px;
}

.dashboard-keywords {
  display: grid;
}

/* Superadmin dashboard */
body[data-app-view="platform"] .page-heading,
body[data-app-view="platform"] .saas-strip,
body[data-app-view="platform"] #roleNotice {
  display: none !important;
}

body[data-app-view="platform"] .platform-panel {
  margin-top: 42px;
}

body[data-app-view="admin"] .summary-strip {
  display: none !important;
}

body[data-app-view="client"][data-client-page="profile"] .summary-strip,
body[data-app-view="client"][data-client-page="profile"] .saas-strip,
body[data-app-view="client"][data-client-page="profile"] #roleNotice,
body[data-app-view="client"][data-client-page="google"] .summary-strip,
body[data-app-view="client"][data-client-page="google"] .saas-strip,
body[data-app-view="client"][data-client-page="google"] #roleNotice,
body[data-app-view="client"][data-client-page="support"] .summary-strip,
body[data-app-view="client"][data-client-page="support"] .saas-strip,
body[data-app-view="client"][data-client-page="support"] #roleNotice,
body[data-app-view="client"][data-client-page="settings"] .summary-strip,
body[data-app-view="client"][data-client-page="settings"] .saas-strip,
body[data-app-view="client"][data-client-page="settings"] #roleNotice {
  display: none !important;
}

body[data-app-view="settings"] .summary-strip,
body[data-app-view="settings"] .saas-strip,
body[data-app-view="settings"] #roleNotice {
  display: none !important;
}

body[data-app-view="settings"] .settings-panel {
  margin-top: 28px;
}

.platform-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 28px;
}

.support-center,
.platform-support-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.support-center {
  max-width: 1100px;
  margin-top: 28px;
}

.platform-support-card {
  margin-top: 2px;
}

.support-center-head,
.support-ticket-head,
.support-reply-actions,
.support-ticket-state,
.support-ticket-labels,
.support-admin-controls {
  display: flex;
  align-items: center;
}

.support-center-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.support-center-head h3 {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 23px;
}

.support-center-head p:not(.eyebrow) {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.support-access-hint,
.support-readonly-note {
  margin: 8px 0 0;
  color: #8a5b12;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.support-access-hint::before,
.support-readonly-note::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 1px;
  border-radius: 50%;
  background: #d9910b;
  content: "";
}

.support-summary-strip {
  display: grid;
  grid-template-columns: 130px 130px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.support-summary-strip article {
  display: grid;
  align-content: center;
  min-height: 82px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 16px;
}

.support-summary-strip strong {
  color: #3127d0;
  font-size: 25px;
  line-height: 1;
}

.support-summary-strip article span {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-summary-strip .connection-status {
  align-self: center;
  justify-self: start;
}

.support-filter-bar,
.platform-support-actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.support-filter-bar {
  padding: 2px 0;
}

.platform-support-actions {
  justify-content: flex-end;
}

.platform-support-filter-bar {
  flex: 1 1 540px;
  justify-content: flex-end;
}

.support-filter-control {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.support-filter-search {
  min-width: min(100%, 220px);
  flex: 1 1 240px;
}

.support-filter-control input,
.support-filter-control select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 11px;
}

.support-filter-search input {
  width: 100%;
}

.support-filter-clear {
  min-height: 40px;
  padding: 9px 12px;
}

.support-filter-summary {
  flex: 1 1 170px;
  min-width: 0;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.platform-support-card > .support-filter-summary {
  margin-top: -6px;
}

.support-ticket-list {
  display: grid;
  gap: 14px;
}

.support-ticket {
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 18px;
}

.support-ticket-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.support-ticket-labels {
  flex-wrap: wrap;
  gap: 8px;
}

.support-ticket-company,
.support-category,
.priority-tag {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 6px 8px;
}

.support-ticket-company {
  background: #eef2ff;
  color: #3730a3;
}

.support-category {
  background: #f1f5f9;
  color: #475569;
}

.priority-tag {
  background: #f1f5f9;
  color: #475569;
}

.priority-tag.high {
  background: #fff7ed;
  color: #c2410c;
}

.priority-tag.urgent {
  background: #fff1f2;
  color: #be123c;
}

.support-ticket h4 {
  margin: 9px 0 4px;
  color: #0f172a;
  font-size: 16px;
}

.support-ticket-head small,
.support-message small {
  color: #64748b;
  font-size: 12px;
}

.support-ticket-state {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.support-thread {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.support-message {
  max-width: min(760px, 94%);
  border-radius: 8px;
  padding: 11px 13px;
}

.support-message.from-company {
  background: #f8fafc;
  border: 1px solid #e5eaf2;
}

.support-message.from-support {
  justify-self: end;
  background: #f0edff;
  border: 1px solid #ddd6fe;
}

.support-message span {
  color: #4338ca;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-message p {
  margin: 5px 0 7px;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.support-reply {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid #edf1f6;
  padding-top: 16px;
}

.support-reply textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
}

.support-reply-actions {
  justify-content: space-between;
  gap: 10px;
}

.support-admin-controls {
  flex-wrap: wrap;
  gap: 8px;
}

.support-admin-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.support-admin-controls select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  padding: 6px 8px;
}

.support-empty {
  margin: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  line-height: 1.5;
  padding: 22px;
  text-align: center;
}

.superadmin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.superadmin-hero h3,
.superadmin-hero p {
  margin: 0;
}

.superadmin-hero h3 {
  color: #0f172a;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
}

.superadmin-hero p {
  margin-top: 10px;
  color: #475569;
  font-size: 17px;
}

.superadmin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.platform-panel .platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.launch-readiness-card {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.launch-readiness-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.launch-readiness-head .eyebrow,
.launch-readiness-head h3,
.launch-readiness-head p {
  margin: 0;
}

.launch-readiness-head .eyebrow {
  color: var(--blue);
}

.launch-readiness-head h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 21px;
}

.launch-readiness-head p:last-child {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
}

.readiness-progress-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(220px, 1.3fr);
  align-items: center;
  gap: 24px;
  border-top: 1px solid #e8edf4;
  border-bottom: 1px solid #e8edf4;
  padding: 15px 0;
}

.readiness-progress-copy {
  display: grid;
  gap: 3px;
}

.readiness-progress-copy strong {
  color: #0f172a;
  font-size: 14px;
}

.readiness-progress-copy span {
  color: #64748b;
  font-size: 12px;
}

.readiness-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.readiness-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #20b486;
  transition: width 180ms ease;
}

.readiness-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.readiness-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border-top: 1px solid #edf1f6;
  padding: 13px 0;
}

.readiness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e56f49;
  margin-top: 5px;
}

.readiness-item.ready .readiness-dot {
  background: #20b486;
}

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

.readiness-item strong {
  color: #0f172a;
  font-size: 13px;
}

.readiness-item div > span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.readiness-item small {
  color: #b45309;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.readiness-item.ready small {
  color: #047857;
}

.readiness-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.platform-runtime-card {
  display: grid;
  gap: 14px;
}

.platform-runtime-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 2px 0;
}

.platform-runtime-head .eyebrow,
.platform-runtime-head h3,
.platform-runtime-head p {
  margin: 0;
}

.platform-runtime-head .eyebrow {
  color: var(--blue);
}

.platform-runtime-head h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 21px;
}

.platform-runtime-head p:last-child {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
}

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

.runtime-status-item {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.runtime-status-item::before {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  content: "";
}

.runtime-status-item.ready::before {
  background: #20b486;
}

.runtime-status-item.attention::before {
  background: #e56f49;
}

.runtime-status-item > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.runtime-status-item strong {
  max-width: calc(100% - 18px);
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-status-item small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.platform-delivery-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.platform-delivery-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.platform-delivery-head .eyebrow,
.platform-delivery-head h3,
.platform-delivery-head p {
  margin: 0;
}

.platform-delivery-head .eyebrow {
  color: var(--blue);
}

.platform-delivery-head h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 21px;
}

.platform-delivery-head p:last-child {
  max-width: 720px;
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

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

.delivery-status-item {
  display: grid;
  min-height: 126px;
  align-content: start;
  gap: 8px;
  border: 1px solid #e0e7f0;
  border-radius: 10px;
  background: #f9fbfe;
  padding: 17px;
}

.delivery-status-item > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.delivery-status-item strong {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.delivery-status-item small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.platform-delivery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #e8edf4;
  padding-top: 18px;
}

.platform-delivery-actions p {
  max-width: 620px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.platform-delivery-actions > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.platform-delivery-actions a {
  color: #3525cd;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.platform-delivery-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.delivery-test-note {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.platform-legal-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.platform-legal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.platform-legal-head .eyebrow,
.platform-legal-head h3,
.platform-legal-head p {
  margin: 0;
}

.platform-legal-head .eyebrow {
  color: var(--blue);
}

.platform-legal-head h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 21px;
}

.platform-legal-head p:last-child {
  max-width: 690px;
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
}

.legal-status {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.legal-status.pending {
  color: #a04b0d;
  background: #fff4e5;
}

.legal-status.ready {
  color: #047857;
  background: #e6f8f0;
}

.platform-legal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.platform-legal-form label {
  display: grid;
  gap: 7px;
}

.platform-legal-form label > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.platform-legal-form input,
.platform-legal-form textarea {
  width: 100%;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
}

.platform-legal-form input {
  min-height: 42px;
  padding: 0 12px;
}

.platform-legal-form textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.platform-legal-form input:focus,
.platform-legal-form textarea:focus {
  outline: 2px solid rgba(51, 40, 212, 0.16);
  border-color: #5147dc;
}

.platform-legal-wide {
  grid-column: 1 / -1;
}

.platform-legal-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #e8edf4;
  padding-top: 18px;
}

.platform-legal-actions p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.platform-legal-actions > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.platform-legal-actions a {
  color: #3525cd;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.platform-legal-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.platform-metric {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: var(--shadow);
  padding: 104px 28px 26px !important;
}

.platform-metric::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0edff;
}

.company-metric::before { content: "▦"; color: var(--blue); font-size: 28px; font-weight: 900; }
.revenue-metric::before { content: "$"; color: var(--sky); font-size: 30px; font-weight: 900; background: #eaf8ff; }
.ai-metric::before { content: "AI"; color: var(--green); font-size: 18px; font-weight: 900; background: #e9f5f1; }

.platform-metric::after {
  position: absolute;
  right: 28px;
  top: 34px;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.company-metric::after { content: "+12%"; }
.revenue-metric::after { content: "+8.4%"; }
.ai-metric::after { content: "Estable"; color: #ea580c; }

.platform-metric span {
  color: #1f2340;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.platform-metric strong {
  margin-top: 12px;
  color: #0f172a;
  font-size: 42px;
  line-height: 1;
}

.platform-metric small {
  display: block;
  margin-top: 14px;
  color: #64748b;
  font-size: 15px;
}

.usage-track {
  height: 8px;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 999px;
  background: #e5e7eb;
}

.usage-track span {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.superadmin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.62fr);
  gap: 28px;
}

.platform-activity-card,
.system-status-card,
.platform-company-table,
.platform-operations-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.platform-activity-card {
  min-height: 430px;
  padding: 28px;
}

.platform-activity-card .panel-title {
  align-items: center;
}

.platform-activity-card .panel-title strong {
  color: #0f172a;
  font-size: 26px;
}

#platformActivityChart {
  width: 100%;
  min-height: 310px;
  margin-top: 18px;
}

.platform-activity-axis {
  stroke: #eef2f7;
  stroke-width: 2;
}

.platform-activity-primary {
  fill: var(--blue);
}

.platform-activity-secondary {
  fill: #39b8fd;
  opacity: 0.25;
}

.platform-activity-label {
  fill: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.system-status-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
}

.system-status-card .eyebrow {
  color: #64748b;
  font-size: 15px;
}

.system-service {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f8fafc;
  color: inherit;
  padding: 18px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.system-service:hover {
  border-color: rgba(53, 37, 205, 0.22);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.system-service:disabled {
  cursor: default;
  opacity: 0.62;
}

.system-service:disabled:hover {
  border-color: transparent;
  background: #f8fafc;
  box-shadow: none;
  transform: none;
}

.system-service:focus-visible {
  outline: 3px solid rgba(53, 37, 205, 0.18);
  outline-offset: 2px;
}

.system-service > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
}

.system-service strong {
  color: #0f172a;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-service small {
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.support-ticket-highlight {
  animation: support-ticket-focus 2.4s ease-out;
}

@keyframes support-ticket-focus {
  0%, 45% { box-shadow: 0 0 0 3px rgba(53, 37, 205, 0.26); }
  100% { box-shadow: none; }
}

.uptime-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 22px;
  color: #64748b;
}

.platform-operations-card {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px 28px;
}

.platform-operations-card .table-toolbar {
  align-items: center;
  margin: 0;
}

.platform-operations-card .table-toolbar h3,
.platform-operations-card .table-toolbar p {
  margin: 0;
}

.platform-operations-card .table-toolbar h3 {
  color: #0f172a;
  font-size: 20px;
}

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

.operation-summary {
  display: grid;
  gap: 3px;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 14px;
}

.operation-summary strong {
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
}

.operation-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.operation-summary.online { border-color: #b7ead8; background: #f0fdf7; }
.operation-summary.processing { border-color: #c8d6fb; background: #f5f7ff; }
.operation-summary.attention { border-color: #fecaca; background: #fff7f7; }

.operations-list {
  display: grid;
  gap: 8px;
}

.operation-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #e8edf4;
  padding-top: 12px;
}

.operation-provider {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.operation-provider.tripadvisor {
  background: #ecfdf5;
  color: #047857;
}

.operation-content {
  min-width: 0;
}

.operation-content strong,
.operation-content span,
.operation-content small {
  display: block;
}

.operation-content strong {
  color: #0f172a;
  font-size: 13px;
}

.operation-content span {
  overflow: hidden;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-content small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

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

.operation-actions .secondary-button {
  min-height: 34px;
  padding: 7px 10px;
}

.operations-empty {
  margin: 0;
  border-top: 1px solid #e8edf4;
  color: #64748b;
  font-size: 13px;
  padding-top: 14px;
}

@media (max-width: 760px) {
  .launch-readiness-card {
    padding: 18px;
  }

  .launch-readiness-head,
  .readiness-progress-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

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

  .platform-operations-card {
    margin-top: 18px;
    padding: 18px;
  }

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

  .operation-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .operation-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

.uptime-row strong {
  color: #0f172a;
}

.platform-company-table {
  overflow: hidden;
}

.table-toolbar,
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
}

.table-toolbar h3 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
}

.table-toolbar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  padding: 10px 14px;
}

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

.table-search {
  position: relative;
  min-width: min(100%, 230px);
}

.table-search::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 14px;
  height: 14px;
  border: 2px solid #64748b;
  border-radius: 999px;
  pointer-events: none;
  transform: translateY(-58%);
}

.table-search::after {
  content: "";
  position: absolute;
  top: calc(50% + 5px);
  left: 26px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #64748b;
  pointer-events: none;
  transform: rotate(45deg);
}

.table-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  padding: 10px 12px 10px 39px;
}

.table-search input::placeholder {
  color: #94a3b8;
  font-weight: 650;
}

.client-table-empty td {
  color: #64748b;
  font-weight: 700;
  padding: 28px !important;
  text-align: center !important;
}

.platform-company-table .client-table th,
.platform-company-table .client-table td {
  padding: 18px 28px;
}

.company-cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.company-cell > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--blue);
  font-weight: 900;
}

.company-cell strong,
.company-cell small {
  display: block;
}

.company-cell strong {
  color: #0f172a;
  font-size: 16px;
}

.company-cell small {
  margin-top: 4px;
  color: #64748b;
}

.plan-badge {
  display: inline-flex;
  min-width: 94px;
  justify-content: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.plan-badge.agency {
  background: #ede9fe;
  color: var(--blue);
}

.plan-badge.starter {
  background: #e5e7eb;
  color: #475569;
}

.plan-badge.demo {
  background: #fff7ed;
  color: #c2410c;
}

.stripe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.stripe-actions .primary-button,
.stripe-actions .secondary-button {
  min-height: 40px;
  justify-content: center;
  padding: 10px 12px;
}

body[data-role="company_admin"] .stripe-actions {
  grid-template-columns: minmax(0, 1fr);
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 900;
}

.table-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.table-status.active {
  color: var(--green);
}

.table-status.warning {
  color: #f59e0b;
}

.platform-company-table .table-action {
  min-width: 132px;
  padding: 12px 14px;
}

.table-footer {
  border-top: 1px solid var(--line);
  color: #64748b;
}

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

.pagination-mini button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
}

.pagination-mini button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

@media (max-width: 900px) {
  .platform-company-table .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .table-filters,
  .table-search {
    width: 100%;
  }

  .table-filters select {
    flex: 1 1 160px;
  }
}

/* Design system pass from DESIGN.md */
button,
input,
select,
textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, transform 120ms ease;
}

button:active {
  transform: translateY(1px);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(53, 37, 205, 0.1);
}

.google-button,
.primary-button,
.secondary-button,
.approve-button,
.publish-button,
.table-action {
  border-radius: 12px;
  font-weight: 700;
}

.google-button:hover,
.primary-button:hover,
.publish-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(53, 37, 205, 0.2);
}

.secondary-button:hover,
.approve-button:hover,
.table-action:hover,
.topbar-icon:hover {
  border-color: var(--outline-variant);
  background: #f8fafc;
}

.status-pill,
.tag,
.plan-badge,
.table-status,
.metric-card::after,
.platform-metric::after {
  border-radius: 999px;
}

.status-pill.online,
.table-status.active,
.tag:not(.alert) {
  color: var(--green);
}

.tag:not(.alert) {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.18);
}

.status-pill.offline {
  background: #fff7ed;
  color: #b45309;
  border-color: #fed7aa;
}

.tag.alert {
  background: rgba(186, 26, 26, 0.1);
  color: var(--coral);
  border-color: rgba(186, 26, 26, 0.2);
}

.stars,
.metric-star {
  color: var(--gold) !important;
}

.client-table {
  border-collapse: separate;
  border-spacing: 0;
}

.client-table thead th {
  background: #f8fafc;
  color: #64748b;
  letter-spacing: 0.05em;
}

.client-table tbody tr:hover {
  background: #fbfdff;
}

.topbar-search,
.sidebar input,
.sidebar select,
.backoffice-form textarea,
textarea,
.toolbar input,
.toolbar select {
  border-color: var(--line);
}

.panel-title {
  padding-bottom: 10px;
}

.rating-evolution-panel .panel-title,
.platform-activity-card .panel-title,
.dashboard-review-queue .panel-title,
.dashboard-keywords .panel-title,
.star-distribution-panel .panel-title {
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.client-nav button.active,
.view-switch button.active {
  box-shadow: inset 3px 0 0 var(--blue), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.client-nav button:focus-visible,
.view-switch button:focus-visible,
.topbar-icon:focus-visible,
.reply-actions button:focus-visible,
.task-arrow:focus-visible,
.task-add:focus-visible {
  outline: 3px solid rgba(53, 37, 205, 0.18);
  outline-offset: 2px;
}

.empty-state,
.queue-empty {
  color: var(--text-soft);
}

/* Typography refinement */
h1,
h2,
h3,
h4,
strong {
  letter-spacing: 0;
}

.brand h1,
.page-heading h2,
.superadmin-hero h3,
.client-dashboard-hero h3,
.backoffice-head h3,
.profile-head h3,
.dashboard-head h3,
.table-toolbar h3 {
  font-weight: 760;
}

.page-heading h2,
.superadmin-hero h3 {
  line-height: 1.08;
}

.eyebrow,
.summary-strip span,
.saas-strip span,
.task-grid span,
.platform-grid span,
.backoffice-grid span,
.panel-title span,
.operational-strip span,
.platform-metric span,
.company-profile-card span,
.backoffice-section-title span,
.invoice-summary span,
.backoffice-side span,
.client-table th {
  font-weight: 760 !important;
  letter-spacing: 0.055em;
}

.sidebar label,
.control-block label,
.backoffice-form label,
.search-wrap label {
  color: #0f172a;
  font-size: 13px;
  font-weight: 720;
}

.sidebar input,
.sidebar select,
.topbar-search input,
textarea,
select,
input {
  font-weight: 450;
}

.google-button,
.primary-button,
.secondary-button,
.approve-button,
.publish-button,
.table-action,
.client-nav button,
.view-switch button {
  font-weight: 720;
}

.summary-strip strong,
.task-grid strong,
.platform-grid strong,
.metric-card strong,
.platform-metric strong,
.confidence-score strong,
.company-profile-card strong {
  font-weight: 760;
}

.summary-strip strong,
.metric-card strong {
  font-variant-numeric: tabular-nums;
}

.task-grid small,
.operational-strip small,
.pending-bar small,
.attention-card small,
.queue-item span,
.company-profile-card small,
.backoffice-side p,
.profile-address p,
.hint {
  font-weight: 500;
}

.review-head h3,
.queue-item strong,
.company-cell strong,
.invoice-summary strong,
.backoffice-side strong {
  font-weight: 720;
}

.comment,
.review-copy,
.profile-address p,
.backoffice-side p,
.setup-copy p,
.setup-step p {
  line-height: 1.58;
}

.client-table {
  font-size: 14px;
}

.client-table td {
  color: #263241;
  font-weight: 500;
}

.client-table th {
  font-size: 11px;
}

.status-pill,
.tag,
.plan-badge,
.system-service small {
  font-weight: 760;
}

/* Company backoffice refinement */
body[data-app-view="admin"] .backoffice-panel {
  margin-top: 12px;
}

.backoffice-panel {
  border-radius: 16px;
  padding: 28px;
}

.backoffice-head {
  align-items: start;
}

.backoffice-head span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-weight: 700;
}

.company-profile-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(90deg, #ffffff 0%, #f8f7ff 100%);
  padding: 18px;
}

.company-avatar-large {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.company-profile-card span,
.company-profile-card strong,
.company-profile-card small {
  display: block;
}

.company-profile-card span,
.backoffice-section-title span,
.invoice-summary span,
.backoffice-side span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-profile-card strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 24px;
}

.company-profile-card small {
  margin-top: 4px;
  color: #475569;
  font-weight: 800;
}

.company-status-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.backoffice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
}

.backoffice-main,
.backoffice-side section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.backoffice-main {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.backoffice-section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.backoffice-section-title strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 20px;
}

.backoffice-section-title small {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 900;
  padding: 7px 10px;
}

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

.invoice-summary article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
}

.invoice-summary strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.invoice-actions .primary-button,
.invoice-actions .secondary-button {
  min-height: 42px;
}

.invoice-history {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 18px;
}

.invoice-history header,
.invoice-history-item,
.invoice-history-actions {
  display: flex;
  align-items: center;
}

.invoice-history header {
  justify-content: space-between;
  gap: 16px;
}

.invoice-history header span,
.invoice-history header strong,
.invoice-history header small {
  display: block;
}

.invoice-history header span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-history header strong {
  color: var(--text);
  margin-top: 3px;
}

.invoice-history header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.invoice-history-list {
  display: grid;
  gap: 8px;
}

.invoice-history-item {
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 11px 12px;
}

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

.invoice-history-item strong {
  color: var(--text);
  font-size: 13px;
}

.invoice-history-item > div > span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.invoice-history-actions {
  flex-shrink: 0;
  gap: 10px;
}

.invoice-history-status {
  border-radius: 999px;
  background: #e9eef6;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.invoice-history-status.sent { background: #e0f2fe; color: #075985; }
.invoice-history-status.paid { background: #d1fae5; color: #047857; }
.invoice-history-status.archived { background: #f1f5f9; color: #64748b; }
.invoice-history-status.void { background: #fee2e2; color: #b91c1c; }
.invoice-history-status.pending { background: #fef3c7; color: #92400e; }
.invoice-history-status.failed { background: #fee2e2; color: #991b1b; }

.invoice-history-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 14px;
}

@media (max-width: 620px) {
  .invoice-history-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-history-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.backoffice-panel .backoffice-form {
  gap: 12px;
}

.backoffice-panel .backoffice-form textarea {
  min-height: 118px;
  border-radius: 12px;
  background: #ffffff;
}

.company-management-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.company-data-export-status {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.company-data-export-status.is-success {
  color: #047857;
}

.company-data-export-status.is-error {
  color: #b42318;
}

.privacy-request-button {
  color: #b42318;
  border-color: #f3c6c2;
  background: #fffafa;
}

.privacy-request-button:hover:not(:disabled) {
  color: #8f1d16;
  border-color: #e7a39d;
  background: #fff4f2;
}

.privacy-dialog-note {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid #f2d1c8;
  border-left: 3px solid #d14d41;
  border-radius: 8px;
  background: #fff8f6;
  color: #7a2f29;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
}

.privacy-confirmation strong {
  color: #9d2b22;
}

.privacy-submit-button {
  background: #b42318;
}

.privacy-submit-button:hover:not(:disabled) {
  background: #8f1d16;
}

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

.company-limit-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
}

.company-limit-grid span,
.company-limit-grid strong,
.company-limit-grid small {
  display: block;
}

.company-limit-grid span,
.mini-management-list span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.company-limit-grid strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.company-limit-grid small {
  margin-top: 8px;
  color: #64748b;
  font-weight: 800;
}

.limit-usage-meter {
  height: 6px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 999px;
  background: #e8edf4;
}

.limit-usage-meter span {
  display: block;
  width: var(--usage, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 180ms ease, background-color 180ms ease;
}

.limit-usage-meter.is-warning span {
  background: #d97706;
}

.limit-usage-meter.is-limit span {
  background: #dc2626;
}

.company-capacity-status {
  margin: -4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.company-capacity-status.is-warning {
  color: #a16207;
}

.company-capacity-status.is-limit {
  color: #b42318;
}

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

.company-admin-columns > section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
}

.ai-style-editor,
.response-policy-editor,
.review-booster-editor {
  display: grid;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

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

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

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

.ai-style-editor label,
.response-policy-editor label,
.review-booster-editor label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.ai-style-editor input,
.ai-style-editor select,
.ai-style-editor textarea,
.response-policy-editor select,
.review-booster-editor input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 10px 12px;
}

.ai-style-editor textarea {
  min-height: 92px;
  resize: vertical;
}

.response-policy-note {
  margin: -2px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.review-booster-create,
.review-booster-preview {
  display: flex;
  align-items: end;
  gap: 10px;
}

.review-booster-create label {
  flex: 1;
}

.review-booster-preview input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--text-soft);
  font: inherit;
  padding: 10px 12px;
}

.review-booster-links article {
  align-items: center;
}

@media (max-width: 620px) {
  .review-booster-create,
  .review-booster-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .review-booster-create button,
  .review-booster-preview button {
    justify-content: center;
    width: 100%;
  }
}

.ai-style-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-management-list {
  display: grid;
  gap: 10px;
}

.mini-management-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.mini-management-list strong {
  color: #0f172a;
  font-size: 14px;
}

.mini-management-list article > div {
  min-width: 0;
}

.mini-management-list article > div strong,
.mini-management-list article > div span {
  display: block;
  overflow-wrap: anywhere;
}

.mini-management-list article > div span {
  margin-top: 4px;
  text-transform: none;
}

.icon-action {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
}

.icon-action.danger:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.icon-action[data-icon]::before {
  margin: 0;
}

.icon-action:not(.danger):hover {
  border-color: #c7d2fe;
  background: #f5f3ff;
  color: var(--blue);
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.member-role-select {
  min-height: 34px;
  max-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 28px 0 9px;
}

.management-empty,
.form-help {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.form-help {
  align-self: end;
  padding: 10px 0;
}

.auth-link {
  justify-self: start;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

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

body[data-signed-in="true"] .auth-link {
  display: none;
}

.access-dialog {
  width: min(620px, calc(100vw - 32px));
}

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

.access-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 14px;
  background: #eef2ff;
}

.access-preview[hidden] {
  display: none;
}

.access-preview > div,
.access-preview > input {
  grid-column: 1 / -1;
}

.access-preview strong,
.access-preview span,
.invitation-summary strong,
.invitation-summary span {
  display: block;
  text-transform: none;
}

.access-preview strong,
.invitation-summary strong {
  color: #0f172a;
  font-size: 14px;
}

.contact-form .access-preview span,
.contact-form .invitation-summary span {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.access-preview input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.invitation-summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

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

.password-pair[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .contact-form,
  .access-form,
  .password-pair {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-wrap: wrap;
  }

  .contact-actions button {
    flex: 1 1 180px;
  }

  .notification-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .notification-item .table-action {
    justify-self: start;
  }

  .support-center,
  .platform-support-card {
    padding: 18px;
  }

  .support-center-head,
  .support-ticket-head,
  .support-reply-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support-center-head .primary-button,
  .support-reply-actions > .primary-button,
  .support-reply-actions > .secondary-button {
    justify-content: center;
    width: 100%;
  }

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

  .support-summary-strip .connection-status {
    grid-column: 1 / -1;
  }

  .support-filter-bar,
  .platform-support-actions {
    align-items: stretch;
  }

  .support-filter-control,
  .support-filter-search,
  .support-filter-summary {
    flex: 1 1 100%;
  }

  .support-filter-clear,
  .platform-support-actions > .secondary-button {
    justify-content: center;
    width: 100%;
  }

  .support-ticket-state {
    justify-content: flex-start;
  }

  .support-admin-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .support-admin-controls label {
    justify-content: space-between;
  }

  .support-admin-controls select {
    flex: 1;
  }

  .support-admin-controls button {
    justify-content: center;
    width: 100%;
  }

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

  .dashboard-hero-actions {
    align-items: stretch;
    width: 100%;
  }

  .dashboard-hero-actions .secondary-button {
    flex: 1 1 160px;
    justify-content: center;
  }

  .action-plan-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .action-plan-footer .secondary-button {
    justify-content: center;
    width: 100%;
  }
}

.backoffice-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.backoffice-side section {
  padding: 18px;
}

.backoffice-side strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 17px;
}

.backoffice-side p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .backoffice-layout,
  .company-profile-card,
  .invoice-summary,
  .backoffice-form,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .company-status-stack {
    justify-items: start;
  }
}

table,
.client-table,
.audit-list {
  border-color: var(--line);
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
    max-height: none;
  }

  .workspace {
    margin-left: 0;
    padding: 0 20px 34px;
  }

  .topbar {
    margin: 0 -20px;
    padding: 12px 20px;
  }

  .page-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-search {
    width: 100%;
  }

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

  .operational-strip,
  .pending-task-grid,
  .company-limit-grid,
  .company-admin-columns,
  .ai-style-grid,
  .response-policy-grid,
  .review-booster-grid,
  .platform-panel .platform-grid,
  .runtime-status-grid,
  .superadmin-grid {
    grid-template-columns: 1fr;
  }

  .superadmin-hero,
  .platform-runtime-head,
  .table-toolbar,
  .company-management-panel .backoffice-head,
  .table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .management-head-actions {
    width: 100%;
  }

  .management-head-actions button {
    flex: 1 1 150px;
    justify-content: center;
  }

  .queue-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .queue-item button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .ai-editor-head,
  .review-translation-panel div {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-editor-controls {
    justify-content: flex-start;
  }

  .ai-context-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .user-chip {
    border-left: 0;
    padding-left: 0;
  }

  .summary-strip,
  .saas-strip {
    grid-template-columns: 1fr;
  }

  .client-dashboard .task-grid,
  .compact-task-list .task-list,
  .operational-strip {
    grid-template-columns: 1fr;
  }

  .page-heading h2 {
    font-size: 30px;
  }
}

/* UX pass: clearer logged-out state and denser client dashboard */
.workspace > section,
.workspace > p {
  max-width: 1440px;
  margin-left: 0;
  margin-right: 0;
}

.signed-out-panel {
  display: none;
}

body[data-signed-in="false"] .page-heading,
body[data-signed-in="false"] .topbar,
body[data-signed-in="false"] .saas-strip,
body[data-signed-in="false"] .client-dashboard,
body[data-signed-in="false"] .client-profile,
body[data-signed-in="false"] .google-guide-panel,
body[data-signed-in="false"] .toolbar,
body[data-signed-in="false"] .insights,
body[data-signed-in="false"] .settings-panel,
body[data-signed-in="false"] #reviewList,
body[data-signed-in="false"] #emptyState,
body[data-signed-in="false"] .role-notice,
body[data-signed-in="false"] .client-nav,
body[data-signed-in="false"] .view-switch,
body[data-signed-in="false"] .tenant-block,
body[data-signed-in="false"] .google-connect,
body[data-signed-in="false"] .settings-block {
  display: none !important;
}

body[data-signed-in="false"] .workspace {
  display: none;
}

.signed-out-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(53, 37, 205, 0.09), transparent 40%),
    linear-gradient(90deg, rgba(5, 150, 105, 0.06), transparent 58%),
    #ffffff;
  box-shadow: var(--shadow);
  padding: 42px;
}

.signed-out-mark {
  width: 76px;
  height: 76px;
  display: none;
  place-items: center;
  border-radius: 18px;
  background: var(--primary);
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(67, 56, 202, 0.25);
}

.signed-out-card h2,
.signed-out-card p {
  margin: 0;
}

.signed-out-card h2 {
  margin-top: 8px;
  color: #0f172a;
  font-size: clamp(36px, 3.2vw, 56px);
  line-height: 1.08;
  max-width: 980px;
}

.signed-out-card p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}

.signin-shortcuts {
  min-width: 240px;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.signin-shortcuts .primary-button {
  min-height: 46px;
  padding-inline: 18px;
}

.signin-shortcuts small {
  max-width: 270px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.trial-badge {
  justify-self: end;
  width: fit-content;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.onboarding-steps,
.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.onboarding-steps article,
.value-prop-grid article,
.platform-connect-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.onboarding-steps article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  min-height: 118px;
  padding: 22px;
}

.step-icon,
.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--blue);
}

.onboarding-steps strong,
.onboarding-steps p,
.value-prop-grid strong,
.value-prop-grid p,
.platform-connect-preview h3 {
  margin: 0;
}

.onboarding-steps strong {
  color: #0f172a;
  font-size: 17px;
}

.onboarding-steps p {
  grid-column: 2;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.platform-connect-preview {
  display: grid;
  grid-template-columns: minmax(360px, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
}

.platform-connect-preview h3 {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.15;
}

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

.platform-toggle-grid button {
  min-height: 132px;
  display: grid;
  justify-items: start;
  align-content: space-between;
  gap: 8px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  padding: 16px;
  text-align: left;
}

.platform-toggle-grid button[aria-pressed="true"] {
  border-color: rgba(5, 150, 105, 0.34);
  background: #f0fdf4;
}

.platform-toggle-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(53, 37, 205, 0.12);
}

.platform-toggle-grid strong {
  font-size: 13px;
  line-height: 1.15;
}

.platform-toggle-grid em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.platform-toggle-grid button[aria-pressed="true"] em {
  color: #047857;
}

.value-prop-grid article {
  min-height: 190px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
}

.value-prop-grid article:nth-child(2) .benefit-icon,
.value-prop-grid article:nth-child(5) .benefit-icon {
  background: #fff7ed;
  color: #c2410c;
}

.value-prop-grid article:nth-child(3) .benefit-icon,
.value-prop-grid article:nth-child(6) .benefit-icon {
  background: #ecfdf5;
  color: #047857;
}

.value-prop-grid strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.2;
}

.value-prop-grid p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

body[data-app-view="client"][data-client-page="dashboard"] .workspace {
  padding-right: 32px;
}

body[data-app-view="client"][data-client-page="dashboard"] .topbar {
  margin-right: -32px;
}

body[data-app-view="client"][data-client-page="dashboard"] .client-dashboard {
  max-width: none;
  gap: 16px;
  margin-top: 18px;
}

body[data-app-view="client"][data-client-page="dashboard"] .client-dashboard-hero {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

body[data-app-view="client"][data-client-page="dashboard"] .client-dashboard-hero h3 {
  margin-top: 4px;
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
}

body[data-app-view="client"][data-client-page="dashboard"] .client-dashboard-hero span {
  font-size: 13px;
}

body[data-app-view="client"][data-client-page="dashboard"] .operational-strip {
  gap: 12px;
}

body[data-app-view="client"][data-client-page="dashboard"] .operational-strip article {
  border-radius: 10px;
  padding: 14px 16px;
}

body[data-app-view="client"][data-client-page="dashboard"] .operational-strip strong {
  margin-top: 6px;
  font-size: 18px;
}

body[data-app-view="client"][data-client-page="dashboard"] .operational-strip small {
  margin-top: 5px;
  font-size: 11px;
}

body[data-app-view="client"][data-client-page="dashboard"] .task-grid {
  gap: 14px;
}

body[data-app-view="client"][data-client-page="dashboard"] .metric-card {
  min-height: 112px;
  border-radius: 10px;
  padding: 42px 16px 16px;
}

body[data-app-view="client"][data-client-page="dashboard"] .metric-card strong {
  font-size: 27px;
}

body[data-app-view="client"][data-client-page="dashboard"] .dashboard-visuals {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.58fr);
  gap: 16px;
}

body[data-app-view="client"][data-client-page="dashboard"] .rating-evolution-panel,
body[data-app-view="client"][data-client-page="dashboard"] .star-distribution-panel {
  border-radius: 12px;
  padding: 18px;
}

body[data-app-view="client"][data-client-page="dashboard"] #evolutionChart {
  min-height: 220px;
}

body[data-app-view="client"][data-client-page="dashboard"] .star-distribution-panel svg {
  min-height: 180px;
}

body[data-app-view="client"][data-client-page="dashboard"] .pending-tasks-head {
  margin-top: 0;
}

body[data-app-view="client"][data-client-page="dashboard"] .pending-task-grid {
  gap: 16px;
}

body[data-signed-in="true"] .auth-block {
  gap: 12px;
  padding: 14px;
}

body[data-signed-in="true"] .auth-actions #logoutButton {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  justify-content: center;
  border-color: #dbe3ee;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

body[data-signed-in="true"] .auth-actions #logoutButton::before {
  margin-right: 8px;
  font-size: 10px;
}

body[data-signed-in="true"] .account-connect {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

body[data-signed-in="true"] .account-connect strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 14px;
}

@media (max-width: 1500px) {
  body[data-signed-in="false"] .signed-out-panel {
    max-width: 1320px;
  }

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

@media (max-width: 900px) {
  .signed-out-card {
    grid-template-columns: 1fr;
  }

  .signin-shortcuts {
    justify-items: start;
  }

  .signin-shortcuts small {
    text-align: left;
  }

  body[data-app-view="client"][data-client-page="dashboard"] .dashboard-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body[data-signed-in="false"] .workspace {
    min-height: auto;
    padding: 24px 20px 42px;
  }

  .signed-out-card,
  .platform-connect-preview {
    grid-template-columns: 1fr;
  }

  .signin-shortcuts {
    justify-items: start;
  }

  .signin-shortcuts small {
    text-align: left;
  }

  .trial-badge {
    justify-self: start;
  }

  .onboarding-steps,
  .value-prop-grid {
    grid-template-columns: 1fr;
  }

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

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

  .settings-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .connection-card-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .connection-card-head .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .platform-toggle-grid {
    grid-template-columns: 1fr;
  }
}

/* Icon system: replaces letter placeholders with local SVG masks */
:root {
  --icon-dashboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  --icon-business: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l8-4v18'/%3E%3Cpath d='M19 21V11l-6-4'/%3E%3Cpath d='M9 9h1M9 13h1M9 17h1M16 13h1M16 17h1'/%3E%3C/svg%3E");
  --icon-platform: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='m3 12 9 5 9-5'/%3E%3Cpath d='m3 17 9 5 9-5'/%3E%3C/svg%3E");
  --icon-profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
  --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.7 1.1 6.6-5.8-3.1-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2.5Z'/%3E%3C/svg%3E");
  --icon-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1 0l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.1 0l-2 2A5 5 0 0 0 12 20l1.1-1.1'/%3E%3C/svg%3E");
  --icon-login: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='m10 17 5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E");
  --icon-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
  --icon-save: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E");
  --icon-sync: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2'/%3E%3Cpath d='M3 12A9 9 0 0 1 18.5 5.8'/%3E%3Cpath d='M18 2v4h4'/%3E%3Cpath d='M6 22v-4H2'/%3E%3C/svg%3E");
  --icon-reset: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 3v6h6'/%3E%3C/svg%3E");
  --icon-clean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='m19 6-1 15H6L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3C/svg%3E");
  --icon-pending: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='m10.3 3.9-8.4 14A2 2 0 0 0 3.6 21h16.8a2 2 0 0 0 1.7-3.1l-8.4-14a2 2 0 0 0-3.4 0Z'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E");
  --icon-ai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.6 4.4L18 9l-4.4 1.6L12 15l-1.6-4.4L6 9l4.4-1.6L12 3Z'/%3E%3Cpath d='M19 14l.8 2.2L22 17l-2.2.8L19 20l-.8-2.2L16 17l2.2-.8L19 14Z'/%3E%3C/svg%3E");
  --icon-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-13h-7l1-7Z'/%3E%3C/svg%3E");
  --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
  --icon-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E");
  --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  --icon-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
  --icon-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.6-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1A2 2 0 1 1 7.1 4l.1.1a1.7 1.7 0 0 0 1.9.3h.1a1.7 1.7 0 0 0 1-1.6V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.6h.1a1.7 1.7 0 0 0 1.9-.3l.1-.1A2 2 0 1 1 20 7.1l-.1.1a1.7 1.7 0 0 0-.3 1.9v.1a1.7 1.7 0 0 0 1.6 1h.1a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.8.8Z'/%3E%3C/svg%3E");
  --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --icon-message: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

[data-icon]::before,
.summary-strip button::before,
.task-grid article::before,
.metric-card::before,
.platform-metric::before {
  content: "" !important;
  display: inline-block !important;
  background: currentColor !important;
  -webkit-mask: var(--icon, var(--icon-dashboard)) center / 16px 16px no-repeat;
  mask: var(--icon, var(--icon-dashboard)) center / 16px 16px no-repeat;
}

[data-icon="dashboard"] { --icon: var(--icon-dashboard); }
[data-icon="business"] { --icon: var(--icon-business); }
[data-icon="platform"] { --icon: var(--icon-platform); }
[data-icon="profile"] { --icon: var(--icon-profile); }
[data-icon="star"],
[data-icon="stars"] { --icon: var(--icon-star); }
[data-icon="link"] { --icon: var(--icon-link); }
[data-icon="login"] { --icon: var(--icon-login); }
[data-icon="logout"] { --icon: var(--icon-logout); }
[data-icon="save"] { --icon: var(--icon-save); }
[data-icon="sync"] { --icon: var(--icon-sync); }
[data-icon="reset"] { --icon: var(--icon-reset); }
[data-icon="clean"] { --icon: var(--icon-clean); }
[data-icon="pending"] { --icon: var(--icon-pending); }
[data-icon="check"] { --icon: var(--icon-check); }
[data-icon="ai"] { --icon: var(--icon-ai); }
[data-icon="auto"] { --icon: var(--icon-auto); }
[data-icon="download"] { --icon: var(--icon-download); }
[data-icon="send"] { --icon: var(--icon-send); }
[data-icon="copy"] { --icon: var(--icon-copy); }
[data-icon="bell"] { --icon: var(--icon-bell); }
[data-icon="settings"] { --icon: var(--icon-settings); }
[data-icon="close"] { --icon: var(--icon-close); }
[data-icon="message"] { --icon: var(--icon-message); }

[data-icon]::before {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  border-radius: 0 !important;
}

.brand-mark[data-icon]::before,
.topbar-icon[data-icon]::before {
  margin: 0 !important;
}

.brand-mark[data-icon] {
  font-size: 0;
}

.brand-mark[data-icon]::before {
  width: 28px !important;
  height: 28px !important;
  background: #ffffff !important;
  -webkit-mask-size: 28px 28px;
  mask-size: 28px 28px;
}

.topbar-icon[data-icon] {
  font-size: 0;
}

.topbar-icon[data-icon]::before {
  width: 18px !important;
  height: 18px !important;
  background: #0f172a !important;
}

.topbar-search span {
  width: 18px;
  height: 18px;
  font-size: 0;
  background: #64748b;
  -webkit-mask: var(--icon-search) center / 18px 18px no-repeat;
  mask: var(--icon-search) center / 18px 18px no-repeat;
}

.metric-rating::before { --icon: var(--icon-star); }
.metric-total::before { --icon: var(--icon-dashboard); }
.metric-new::before { --icon: var(--icon-check); }
.metric-pending::before { --icon: var(--icon-pending); }
.company-metric::before { --icon: var(--icon-business); }
.revenue-metric::before { --icon: var(--icon-download); }
.ai-metric::before { --icon: var(--icon-ai); }

.summary-strip button:nth-child(1)::before { --icon: var(--icon-star); }
.summary-strip button:nth-child(2)::before { --icon: var(--icon-dashboard); }
.summary-strip button:nth-child(3)::before { --icon: var(--icon-pending); }
.summary-strip button:nth-child(4)::before { --icon: var(--icon-ai); }
.task-grid article:nth-child(1)::before { --icon: var(--icon-star); }
.task-grid article:nth-child(2)::before { --icon: var(--icon-dashboard); }
.task-grid article:nth-child(3)::before { --icon: var(--icon-check); }
.task-grid article:nth-child(4)::before { --icon: var(--icon-pending); }

.icon-button[data-icon] {
  display: inline-grid;
  place-items: center;
  font-size: 0;
}

.icon-button[data-icon]::before {
  margin: 0 !important;
  background: currentColor !important;
}

.summary-strip button {
  appearance: none;
  color: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.summary-strip button:hover {
  border-color: rgba(53, 37, 205, 0.32);
  box-shadow: 0 10px 24px rgba(53, 37, 205, 0.1);
  transform: translateY(-1px);
}

.summary-strip button:focus-visible {
  outline: 3px solid rgba(53, 37, 205, 0.22);
  outline-offset: 2px;
}

/* Production UX pass: prevent mobile overflow in admin/backoffice screens. */
@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .workspace,
  .page-heading,
  .saas-strip,
  .platform-panel,
  .backoffice-panel,
  .superadmin-hero,
  .platform-grid,
  .superadmin-grid,
  .client-table-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .workspace {
    padding-left: 16px;
    padding-right: 16px;
  }

  .superadmin-hero,
  .superadmin-actions {
    width: 100%;
  }

  .superadmin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .superadmin-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .superadmin-actions > *,
  .primary-button,
  .secondary-button,
  .google-button {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .platform-panel .platform-grid,
  .platform-grid,
  .runtime-status-grid,
  .superadmin-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .platform-metric,
  .platform-activity-card,
  .incidents-card,
  .client-table-wrap {
    min-width: 0;
    width: 100%;
  }

  .client-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile app shell inspired by the Stitch mobile reference. */
@media (max-width: 620px) {
  :root {
    --mobile-bottom-nav: 76px;
  }

  body[data-signed-in="true"] {
    background: #f7f9fb;
  }

  body[data-signed-in="true"] .app-shell {
    display: block;
    min-height: 100dvh;
  }

  body[data-signed-in="true"] .sidebar {
    position: static;
    width: 100%;
    min-height: 0;
    padding: 18px 18px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 196, 216, 0.75);
    background: #f7f9fb;
  }

  body[data-signed-in="true"] .sidebar > .control-block,
  body[data-signed-in="true"] .sidebar > .google-connect,
  body[data-signed-in="true"] .sidebar > .tenant-block,
  body[data-signed-in="true"] .sidebar > .automation-block {
    display: none !important;
  }

  body[data-signed-in="true"] .brand {
    margin: 0;
    align-items: center;
  }

  body[data-signed-in="true"] .brand h1 {
    color: #2417d8;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: 0;
  }

  body[data-signed-in="true"] .brand p {
    color: #6f6b80;
    font-size: 12px;
  }

  body[data-signed-in="true"] .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
  }

  body[data-signed-in="true"] .workspace {
    padding: 18px 16px calc(var(--mobile-bottom-nav) + 24px);
    background: #f7f9fb;
  }

  body[data-signed-in="true"] .topbar {
    display: grid;
    gap: 14px;
    margin: 0 -16px 18px;
    padding: 14px 16px;
    border-top: 1px solid rgba(199, 196, 216, 0.75);
    border-bottom: 1px solid rgba(199, 196, 216, 0.75);
    background: #f7f9fb;
  }

  body[data-signed-in="true"] .topbar-search {
    order: 2;
    justify-self: stretch;
    width: calc(100vw - 32px);
    max-width: none;
    min-width: 0;
    border-color: #c7c4d8;
    border-radius: 12px;
    background: #ffffff;
  }

  body[data-signed-in="true"] .topbar-actions {
    order: 1;
    justify-content: flex-end;
  }

  body[data-signed-in="true"] .user-chip {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-signed-in="true"] .page-heading {
    margin-bottom: 20px;
  }

  body[data-signed-in="true"][data-role="client"] .saas-strip,
  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .summary-strip {
    display: none !important;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .page-heading {
    margin-bottom: 14px;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .insights {
    display: none !important;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .toolbar {
    padding: 18px;
    border: 1px solid #c7c4d8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.02);
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .toolbar .segmented {
    display: none;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .status-filter {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 10px;
    margin: 14px -2px 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .status-filter::-webkit-scrollbar {
    display: none;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] .status-filter button {
    flex: 0 0 auto;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 18px;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] #sortSelect {
    display: none;
  }

  body[data-signed-in="true"][data-role="client"][data-client-page="reviews"] #roleNotice {
    margin: -4px 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #464555;
    font-size: 18px;
    line-height: 28px;
  }

  body[data-signed-in="true"] .page-heading .eyebrow {
    display: none;
  }

  body[data-signed-in="true"] .page-heading h2,
  body[data-signed-in="true"] .superadmin-hero h3,
  body[data-signed-in="true"] .client-dashboard-hero h3 {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: 0;
  }

  body[data-signed-in="true"] .summary-strip,
  body[data-signed-in="true"] .client-dashboard .task-grid,
  body[data-signed-in="true"] .operational-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body[data-signed-in="true"] .summary-strip button,
  body[data-signed-in="true"] .operational-strip article,
  body[data-signed-in="true"] .metric-card,
  body[data-signed-in="true"] .platform-metric,
  body[data-signed-in="true"] .rating-evolution-panel,
  body[data-signed-in="true"] .star-distribution-panel,
  body[data-signed-in="true"] .review-card,
  body[data-signed-in="true"] .backoffice-panel,
  body[data-signed-in="true"] .platform-activity-card,
  body[data-signed-in="true"] .incidents-card {
    border: 1px solid #c7c4d8 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.02) !important;
  }

  body[data-signed-in="true"] .summary-strip button {
    min-height: 126px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px;
  }

  body[data-signed-in="true"] .operational-strip article {
    min-height: 118px;
    padding: 18px;
  }

  body[data-signed-in="true"] .summary-strip strong,
  body[data-signed-in="true"] .metric-card strong,
  body[data-signed-in="true"] .platform-metric strong {
    font-size: 34px;
    line-height: 40px;
  }

  body[data-signed-in="true"] .client-dashboard-hero,
  body[data-signed-in="true"] .dashboard-head {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
  }

  body[data-signed-in="true"] .dashboard-visuals,
  body[data-signed-in="true"] .pending-task-grid,
  body[data-signed-in="true"] .superadmin-grid,
  body[data-signed-in="true"] .company-admin-columns {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-signed-in="true"] .review-list {
    gap: 18px;
  }

  body[data-signed-in="true"] .review-card {
    padding: 24px;
  }

  body[data-signed-in="true"] .review-card textarea {
    min-height: 132px;
    font-size: 16px;
    line-height: 24px;
  }

  body[data-signed-in="true"] .client-nav,
  body[data-signed-in="true"] .view-switch {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(199, 196, 216, 0.9);
    background: rgba(247, 249, 251, 0.96);
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
  }

  body[data-signed-in="true"][data-role="superadmin"] .client-nav,
  body[data-signed-in="true"][data-role="company_admin"] .client-nav {
    display: none !important;
  }

  body[data-signed-in="true"][data-role="client"] .view-switch {
    display: none !important;
  }

  body[data-signed-in="true"] .client-nav button,
  body[data-signed-in="true"] .view-switch button {
    display: grid;
    min-height: 58px;
    place-items: center;
    gap: 2px;
    padding: 8px 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #191c1e;
    font-size: 11px;
    line-height: 14px;
    text-align: center;
  }

  body[data-signed-in="true"] .client-nav button::before,
  body[data-signed-in="true"] .view-switch button::before {
    margin: 0 !important;
  }

  body[data-signed-in="true"] .client-nav button.active,
  body[data-signed-in="true"] .view-switch button.active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(53, 37, 205, 0.22);
  }

  body[data-signed-in="true"] .google-button,
  body[data-signed-in="true"] .primary-button {
    min-height: 48px;
    border-radius: 10px;
  }
}

@media (max-width: 620px) {
  body[data-signed-in="false"] {
    display: block;
    min-height: 100dvh;
  }

  body[data-signed-in="false"] .sidebar {
    width: 100%;
    margin: 0;
    padding: 0 18px 40px;
  }

  body[data-signed-in="false"] .brand {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 -18px 48px;
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid #c7c4d8;
  }

  body[data-signed-in="false"] .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    font-size: 22px;
  }

  body[data-signed-in="false"] .brand h1 {
    color: #3525cd;
    font-size: 28px;
    line-height: 34px;
  }

  body[data-signed-in="false"] .brand p {
    display: none;
  }

  body[data-signed-in="false"] .auth-block {
    padding: 30px 26px 34px;
    border-color: #c7c4d8;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(15, 23, 42, 0.03);
  }

  .guest-auth-header {
    margin-bottom: 30px;
    text-align: center;
  }

  .guest-auth-header h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .guest-auth-header p {
    margin: 10px auto 0;
    max-width: 290px;
    font-size: 16px;
    line-height: 24px;
  }

  .guest-login-form {
    gap: 16px;
  }

  .guest-login-field > span,
  .guest-password-row label {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
  }

  .guest-password-row {
    margin-bottom: -8px;
  }

  .guest-input-wrap input,
  body[data-signed-in="false"] #loginButton,
  .guest-google-button {
    min-height: 56px;
    font-size: 16px;
  }

  .remember-login {
    display: none;
  }

  .guest-auth-divider {
    margin: 28px 0;
  }

  body[data-signed-in="false"] .guest-footer {
    display: grid;
    gap: 16px;
    padding: 28px 24px 34px;
    border-top: 1px solid #c7c4d8;
    text-align: center;
  }

  .guest-footer > div,
  .guest-footer nav {
    justify-content: center;
  }

  .guest-footer p {
    order: -1;
    font-size: 13px;
    line-height: 20px;
  }

  .guest-footer > div {
    font-size: 12px;
  }

  .guest-footer nav {
    gap: 18px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .review-health-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .review-health-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-health-summary {
    grid-template-columns: 1fr;
  }

  .review-toolbar {
    align-items: stretch;
  }

  .review-toolbar > * {
    flex: 1 1 100%;
  }

  .review-filter-feedback {
    align-items: stretch;
    flex-direction: column;
  }

  .review-filter-clear {
    justify-content: center;
    width: 100%;
  }
}

.brand-mark.kora-brand-mark {
  background-color: #ffffff !important;
  background-image: url("assets/kora-mark.png") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
}

img.brand-mark.kora-brand-mark {
  display: block;
  object-fit: contain;
  background-image: none !important;
}

.invitation-legal-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.invitation-legal-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.invitation-legal-consent a {
  color: #3525cd;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.invitation-legal-version {
  margin-top: -8px !important;
}

@media (max-width: 720px) {
  .platform-delivery-card,
  .platform-legal-card {
    padding: 20px;
  }

  .platform-delivery-head,
  .platform-legal-head,
  .platform-delivery-actions,
  .platform-legal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-delivery-grid,
  .platform-legal-form {
    grid-template-columns: 1fr;
  }

  .platform-legal-wide {
    grid-column: auto;
  }

  .platform-delivery-actions > div,
  .platform-legal-actions > div {
    justify-content: flex-start;
  }
}
