.analytics-privacy-link {
  position: fixed;
  bottom: max(7px, env(safe-area-inset-bottom));
  left: 10px;
  z-index: 45;
  background: #fffe;
  border: 1px solid #d6dfd1;
  border-radius: 7px;
  color: #21573f;
  padding: 4px 8px;
  font-size: 10px;
  min-height: 26px;
  cursor: pointer;
}
.analytics-consent-dialog {
  box-sizing: border-box;
  width: min(460px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border: 1px solid #d8e1d0;
  border-radius: 20px;
  padding: 26px;
  color: #174b3c;
  background: #fff;
  font-family: inherit;
  box-shadow: 0 24px 90px #07392b30;
}
.analytics-consent-dialog::backdrop {
  background: #153f3277;
  backdrop-filter: blur(4px);
}
.analytics-consent-dialog h2 {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 24px 14px 0;
}
.analytics-consent-dialog p {
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}
.analytics-consent-dialog a {
  color: #17513e;
  font-size: 12px;
}
.analytics-consent-dialog button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  font: inherit;
  font-size: 13px;
  border: 1px solid #bdccba;
  color: #174b3c;
  background: #fff;
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
}
.analytics-consent-dialog [data-close] {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  border: 0;
  background: #f2f5ef;
}
.analytics-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 10px;
}
.analytics-consent-actions [data-allow] {
  background: #07513f;
  color: #fff;
  border-color: #07513f;
}
.analytics-consent-dialog [data-erase] {
  border: 0;
  padding: 6px 0;
  font-size: 11px;
  min-height: 30px;
  text-decoration: underline;
}
.analytics-consent-dialog button:disabled {
  opacity: 0.5;
  cursor: default;
}
.analytics-eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #a87c2e;
}
.analytics-shell {
  color: #174b3c;
  min-width: 0;
}
.analytics-shell * {
  box-sizing: border-box;
}
.analytics-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
}
.analytics-heading h1 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 8px 0;
}
.analytics-heading p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 650px;
  color: #647563;
  margin: 8px 0;
}
.analytics-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}
.analytics-shell button,
.analytics-shell input,
.analytics-shell select {
  font: inherit;
  font-size: 13px;
  min-height: 40px;
  border: 1px solid #ccd8c5;
  border-radius: 8px;
  padding: 8px 12px;
  color: #174b3c;
  background: #fff;
}
.analytics-shell button {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.analytics-shell button.active,
.analytics-shell button.primary {
  background: #07523f;
  color: #fff;
  border-color: #07523f;
}
.analytics-shell button:disabled {
  opacity: 0.45;
  cursor: default;
}
.analytics-filter {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.analytics-filter label {
  font-size: 11px;
  display: grid;
  gap: 5px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.analytics-metric {
  padding: 18px;
  border: 1px solid #dde5d7;
  background: #fff;
  border-radius: 14px;
  min-width: 0;
}
.analytics-metric small {
  font-size: 12px;
  color: #667b63;
  display: block;
}
.analytics-metric strong {
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 700;
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.analytics-panel {
  background: #fff;
  border: 1px solid #dce5d5;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  min-width: 0;
}
.analytics-panel h2 {
  font-size: 20px;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}
.analytics-panel p,
.analytics-note {
  font-size: 12px;
  line-height: 1.5;
  color: #64735e;
}
.analytics-table-wrap {
  overflow: auto;
  max-width: 100%;
}
.analytics-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.analytics-table th {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #718265;
  white-space: nowrap;
}
.analytics-table th,
.analytics-table td {
  padding: 12px 9px;
  border-bottom: 1px solid #e7ecdf;
  vertical-align: top;
}
.analytics-table td {
  max-width: 300px;
  overflow-wrap: anywhere;
}
.analytics-table td small {
  display: block;
  font-size: 10px;
  color: #6c7e65;
  margin-top: 4px;
}
.analytics-pill {
  display: inline-block;
  border-radius: 20px;
  background: #eef3e8;
  color: #315d45;
  padding: 4px 8px;
  font-size: 10px;
  margin: 2px;
}
.analytics-opportunities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.analytics-opportunity {
  padding: 16px;
  border: 1px solid #dce4d3;
  border-radius: 14px;
  background: #fff;
}
.analytics-opportunity img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f7ef;
}
.analytics-opportunity h3 {
  font-size: 19px;
  margin: 12px 0 8px;
}
.analytics-opportunity p {
  font-size: 12px;
  line-height: 1.5;
}
.analytics-opportunity footer {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.analytics-bars {
  display: grid;
  gap: 7px;
}
.analytics-bar {
  display: grid;
  grid-template-columns: 100px minmax(30px, 1fr) 90px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.analytics-bar > span:nth-child(2) {
  height: 14px;
  background: #edf2e7;
  border-radius: 4px;
  overflow: hidden;
}
.analytics-bar i {
  display: block;
  height: 100%;
  background: #24735a;
  border-radius: 4px;
  min-width: 2px;
}
.analytics-timeline {
  padding-left: 18px;
  border-left: 2px solid #d7e2ce;
  margin-left: 7px;
}
.analytics-timeline article {
  position: relative;
  padding: 0 0 22px 12px;
}
.analytics-timeline article::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ba8b31;
  left: -24px;
  top: 5px;
}
.analytics-timeline time {
  font-size: 10px;
  color: #758469;
}
.analytics-timeline strong {
  display: block;
  font-size: 14px;
  margin: 5px 0;
}
.analytics-timeline p {
  margin: 4px 0;
}
.analytics-status {
  font-size: 12px;
  color: #6c7d64;
  min-height: 18px;
}
.analytics-settings-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.analytics-settings-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.analytics-alert {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eddf;
  font-size: 12px;
}
.analytics-alert::before {
  content: '◇';
  color: #ac8130;
}
.shop-search-form {
  display: flex;
  gap: 9px;
  margin: 20px 0;
  max-width: 650px;
}
.shop-search-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid #b9ccb8;
  border-radius: 9px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #174b3c;
  background: #fff;
}
.shop-search-form button {
  background: #07513f;
  color: #fff;
  border: 1px solid #07513f;
  border-radius: 9px;
  font: inherit;
  padding: 10px 18px;
  cursor: pointer;
  min-height: 44px;
}
.shop-search-status {
  font-size: 13px;
  color: #6a7e65;
}
.shop-product-button {
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  width: 100%;
  text-align: left;
  color: inherit !important;
  font: inherit;
  cursor: pointer;
}
.shop-product-button h2 {
  font-size: 19px !important;
  line-height: 1.25;
}
.shop-product-detail {
  max-width: 650px;
}
.shop-product-detail img {
  max-height: 230px;
  width: 100%;
  object-fit: contain;
}
.analytics-recommendations h2 {
  font-size: 21px;
}
.analytics-view-button {
  width: 100%;
  text-align: center !important;
  justify-content: center !important;
}
.analytics-help {
  font-size: 11px;
  color: #7a856e;
}
@media (max-width: 650px) {
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .analytics-metric {
    padding: 13px;
  }
  .analytics-heading {
    display: block;
  }
  .analytics-tabs {
    gap: 5px;
  }
  .analytics-tabs button {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 9px;
  }
  .analytics-panel {
    padding: 14px;
  }
  .analytics-filter {
    gap: 7px;
  }
  .analytics-filter input {
    width: 135px;
  }
  .analytics-table th,
  .analytics-table td {
    padding: 10px 7px;
  }
  .analytics-bar {
    grid-template-columns: 78px minmax(20px, 1fr) 70px;
    gap: 6px;
    font-size: 10px;
  }
  .shop-search-form button {
    padding: 10px 12px;
  }
  .analytics-consent-dialog {
    padding: 22px;
  }
  .analytics-consent-dialog h2 {
    font-size: 22px;
  }
}
.analytics-shell .analytics-heading {
  padding: 0;
  border: 0;
  margin: 0 0 22px;
}
.analytics-shell .analytics-bar {
  display: grid;
  text-align: left;
}
.analytics-shell .analytics-metric {
  display: block;
  text-align: left;
}
.analytics-bar meter {
  width: 100%;
  height: 14px;
  accent-color: #24735a;
}
.analytics-bar meter::-webkit-meter-bar {
  background: #edf2e7;
  border: 0;
}
.analytics-bar meter::-webkit-meter-optimum-value {
  background: #24735a;
}

.analytics-shell .analytics-heading {
  height: auto !important;
  min-height: 0;
  position: static;
  display: flex;
  align-items: flex-start;
  white-space: normal;
  background: transparent;
  line-height: normal;
  padding: 0;
  border: 0;
  margin: 0 0 22px;
}
.analytics-heading p {
  max-width: 70ch;
}
.analytics-overview-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.analytics-bars {
  max-height: 240px;
  overflow: auto;
}
.analytics-table-wrap {
  max-height: 420px;
  overflow: auto;
}
.analytics-panel summary {
  cursor: pointer;
  font-weight: 700;
}
@media (max-width: 700px) {
  .analytics-overview-columns {
    grid-template-columns: 1fr;
  }
  .analytics-shell .analytics-heading {
    gap: 12px;
  }
  .analytics-heading h1 {
    font-size: 26px;
  }
  .analytics-heading p {
    font-size: 14px;
  }
}
/* Experience notice: a quiet, non-blocking surface, separate from account controls. */
.analytics-experience-notice {
  position: fixed;
  inset: auto 24px 24px auto;
  z-index: 90;
  box-sizing: border-box;
  width: min(410px, calc(100% - 32px));
  padding: 22px 24px;
  border: 1px solid #d8e1d0;
  border-radius: 18px;
  background: #fffefb;
  color: #174b3c;
  box-shadow: 0 12px 40px #123f3020;
  font-family: inherit;
  text-align: left;
}
.analytics-experience-notice h2 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 36px 10px 0;
  color: #174b3c;
}
.analytics-experience-notice p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: #50695d;
}
.analytics-experience-notice p:empty {
  display: none;
}
.analytics-experience-notice > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.analytics-experience-notice button,
.analytics-account-privacy button {
  font: inherit;
  font-size: 14px;
  border: 1px solid #bdccba;
  border-radius: 9px;
  padding: 10px 16px;
  background: #fff;
  color: #174b3c;
  cursor: pointer;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.analytics-experience-notice [data-close] {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #496454;
}
.analytics-experience-notice a,
.analytics-experience-notice a:visited,
.analytics-account-privacy a,
.analytics-account-privacy a:visited {
  font-size: 13px;
  color: #174b3c;
  text-underline-offset: 4px;
}
.analytics-account-privacy {
  padding: 22px;
  margin: 20px 0;
  background: #fff;
  border: 1px solid #d8e1d0;
  border-radius: 16px;
  color: #174b3c;
  text-align: left;
}
.analytics-account-privacy h2 {
  font-size: 23px;
  margin: 0 0 12px;
}
.analytics-account-privacy p {
  font-size: 14px;
  line-height: 1.6;
}
.analytics-account-privacy label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.analytics-account-privacy input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #17513e;
}
.analytics-account-privacy > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.analytics-account-privacy [data-save] {
  background: #17513e;
  color: white;
  border-color: #17513e;
}
.analytics-account-privacy button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.analytics-privacy-settings-dialog .analytics-account-privacy {
  border: 0;
  padding: 12px 0 0;
  margin: 0;
}
.analytics-privacy-settings-dialog {
  width: min(460px, calc(100% - 28px));
}
@media (max-width: 600px) {
  .analytics-experience-notice {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 20px;
  }
  .analytics-account-privacy {
    padding: 18px;
  }
}
