/* Pubzone V2.1 — lisibilité et navigation de l'espace membre */

.member-app {
  min-height: 100dvh;
  background: #f5f7fb;
}

.member-head {
  box-shadow: 0 1px 0 rgba(17, 24, 44, .03);
}

.member-search,
.member-search input {
  font-size: 13px;
}

.member-search kbd {
  font-size: 11px;
}

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

.user-chip small {
  font-size: 11px;
}

.head-icon b {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.member-side {
  bottom: auto;
  height: calc(100dvh - 70px);
  min-height: 0;
  padding: 22px 15px max(22px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c9c4fa transparent;
}

.member-side::-webkit-scrollbar {
  width: 7px;
}

.member-side::-webkit-scrollbar-thumb {
  background: #c9c4fa;
  border-radius: 20px;
}

.member-side nav {
  flex: 0 0 auto;
}

.member-side nav > span {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 1.15px;
}

.member-side nav a {
  min-height: 46px;
  gap: 12px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.25;
}

.member-side nav a i {
  width: 20px;
  font-size: 16px;
}

.credit-box {
  flex: 0 0 auto;
  margin-top: 20px;
  margin-bottom: 4px;
  padding: 16px;
}

.credit-box > div:first-child,
.credit-box > strong small,
.credit-box > a {
  font-size: 12px;
}

.credit-box > strong {
  font-size: 25px;
}

.member-main {
  min-height: calc(100dvh - 156px);
  padding-bottom: 64px;
}

.dash-welcome > div > span,
.panel-title > div > span,
.form-panel-head > div > span,
.verify-head > div > span,
.exchange-proposal > div > span {
  font-size: 11px;
  letter-spacing: 1.35px;
}

.dash-welcome h1 {
  margin: 8px 0;
  font-size: clamp(30px, 2.2vw, 38px);
  letter-spacing: -1.2px;
}

.dash-welcome p {
  font-size: 15px;
  line-height: 1.55;
}

.domain-bar {
  min-height: 76px;
  padding: 16px 18px;
}

.domain-identity > i {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.domain-identity b {
  font-size: 16px;
}

.domain-identity span,
.domain-bar > a,
.domain-score > span,
.domain-score > em,
.domain-score > b small,
.data-quality span,
.data-quality b {
  font-size: 12px;
}

.domain-bar > a {
  padding: 10px 13px;
}

.domain-score > b {
  font-size: 26px;
}

.dash-metrics article,
.seo-summary-grid > article {
  min-height: 126px;
  padding: 19px;
}

.dash-metrics article span,
.seo-summary-grid article > div > span {
  font-size: 13px;
}

.dash-metrics article small,
.seo-summary-grid article > div > small {
  font-size: 11px;
  line-height: 1.4;
}

.dash-metrics article b,
.seo-summary-grid article > div > b {
  font-size: 27px;
}

.authority-card,
.health-card,
.opportunity-panel,
.data-panel,
.form-panel,
.verify-panel,
.exchange-proposal,
.messaging-layout,
.notification-list,
.search-console-card,
.impact-card,
.integration-card {
  border-radius: 18px;
  padding: 24px;
}

.panel-title h2 {
  margin-top: 6px;
  font-size: 21px;
}

.panel-title p,
.panel-title > a,
.authority-score p,
.health-card > p,
.history-empty p,
.performance-cta p {
  font-size: 13px;
  line-height: 1.55;
}

.authority-score span,
.status-pill,
.match-tag,
.theme-tag,
.connected-badge,
.hero-score-card > div:last-child > em {
  font-size: 11px;
}

.score-ring-v2 small {
  font-size: 11px !important;
}

.hero-score-card h2 {
  font-size: 19px;
}

.hero-score-card p {
  font-size: 12px;
  line-height: 1.45;
}

.period-tabs a {
  padding: 9px 11px;
  font-size: 12px;
}

.seo-history-chart span {
  font-size: 10px;
}

.history-empty b {
  font-size: 16px;
}

.gsc-metrics span,
.impact-list span,
.timeline-events span,
.timeline-events small,
.event-empty,
.performance-cta span {
  font-size: 12px;
  line-height: 1.45;
}

.gsc-metrics b {
  font-size: 23px;
}

.impact-list b,
.timeline-events b {
  font-size: 14px;
}

.impact-list > div,
.timeline-events > div {
  padding: 15px 0;
}

.integration-grid {
  gap: 22px;
  margin-top: 30px;
}

.integration-head {
  gap: 15px;
}

.integration-head > i {
  width: 52px;
  height: 52px;
  font-size: 23px;
}

.integration-head span {
  font-size: 11px;
  letter-spacing: .7px;
}

.integration-head h2 {
  margin-top: 5px;
  font-size: 23px;
}

.integration-head em {
  padding: 8px 10px;
  font-size: 11px;
}

.integration-card > p {
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.65;
}

.integration-card form label {
  margin-top: 17px;
  font-size: 14px;
}

.integration-card input,
.integration-card select {
  min-height: 50px;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}

.integration-card input:focus,
.integration-card select:focus {
  border-color: var(--purple);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(101, 87, 239, .12);
}

.integration-card label small {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
}

.integration-card .button {
  min-height: 52px;
  margin-top: 20px;
  font-size: 15px;
}

.integration-note,
.integration-empty {
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.integration-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ddd9ff;
  border-radius: 12px;
  background: #f7f6ff;
}

.integration-tip > i {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.integration-tip p {
  margin: 0;
}

.integration-tip b,
.integration-tip span {
  display: block;
}

.integration-tip b {
  font-size: 13px;
}

.integration-tip span {
  margin-top: 4px;
  color: #687387;
  font-size: 12px;
  line-height: 1.5;
}

.connected-row {
  gap: 13px;
  padding: 17px 0;
}

.connected-row b {
  font-size: 14px;
}

.connected-row span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.connected-row button {
  padding: 10px 12px;
  font-size: 12px;
}

.responsive-table {
  margin-top: 20px;
}

th,
td {
  padding: 15px 14px;
  font-size: 13px;
  line-height: 1.4;
}

th {
  font-size: 12px;
  white-space: nowrap;
}

.table-empty {
  padding: 44px 20px;
  font-size: 14px;
}

.form-panel-head p,
.verify-head p,
.site-form label > small,
.empty-onboarding p,
.empty-inline,
.filter-panel label,
.result-summary,
.exchange-proposal p,
.tabs a {
  font-size: 13px;
  line-height: 1.5;
}

.filter-panel input,
.filter-panel select,
.site-form input,
.site-form select,
.site-form textarea {
  min-height: 46px;
  font-size: 14px;
}

.opp-head b,
.sites-grid h2,
.market-card-grid h2,
.exchange-sites b,
.notification-list b {
  font-size: 14px;
}

.opp-head small,
.sites-grid article > a:not(.outline-button),
.market-card-grid article > a:not(.button),
.market-owner small,
.exchange-sites small,
.exchange-meta span,
.exchange-meta time,
.notification-list p,
.notification-list time {
  font-size: 12px;
  line-height: 1.4;
}

.opp-data span,
.site-metrics span,
.market-stats span,
.market-stats small {
  font-size: 11px;
}

.opp-data b,
.site-metrics b,
.market-stats b {
  font-size: 16px;
}

.outline-button,
.market-card-grid article > .button,
.exchange-actions button {
  font-size: 13px;
}

.member-footer {
  margin-left: 240px;
  padding: 28px 30px max(30px, env(safe-area-inset-bottom));
  border-top: 1px solid #e0e5ed;
  color: #6f7a8f;
  background: #fff;
}

.member-footer > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.member-footer b {
  color: var(--ink);
  font-size: 16px;
}

.member-footer span,
.member-footer a,
.member-footer small {
  font-size: 12px;
  line-height: 1.45;
}

.member-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-left: auto;
}

.member-footer a:hover {
  color: var(--purple);
}

.member-footer small {
  flex: 0 0 100%;
  color: #929aaa;
}

@media (max-width: 1050px) {
  .member-footer {
    margin-left: 205px;
    padding-inline: 20px;
  }
}

@media (max-width: 780px) {
  .member-main {
    min-height: auto;
    padding: 86px 14px 42px;
  }

  .dash-welcome h1 {
    font-size: 28px;
  }

  .dash-welcome p {
    font-size: 14px;
  }

  .domain-bar {
    min-height: auto;
  }

  .seo-summary-grid > article,
  .dash-metrics article {
    min-height: 118px;
  }

  .authority-card,
  .health-card,
  .opportunity-panel,
  .data-panel,
  .form-panel,
  .verify-panel,
  .exchange-proposal,
  .messaging-layout,
  .notification-list,
  .search-console-card,
  .impact-card,
  .integration-card {
    padding: 18px;
  }

  .integration-card input,
  .integration-card select {
    font-size: 16px;
  }

  .connected-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .connected-row form {
    width: 100%;
    margin-left: 43px;
  }

  .member-footer {
    margin-left: 0;
    padding: 24px 18px 102px;
  }

  .member-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-footer nav {
    margin: 8px 0 0;
  }

  .mobile-dock a {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-side {
    scroll-behavior: auto;
  }
}
