:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #243a34;
  background: #f5f6f2;
  font-size: 14px;
  --green: #235b48;
  --muted: #78857e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  transition: background 0.15s;
}
button {
  cursor: pointer;
  border: 1px solid #dce2da;
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  color: inherit;
}
button:hover {
  background: #e8eee7;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.danger {
  color: #a04332;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
}
input,
textarea,
select {
  width: 100%;
  padding: 11px;
  border: 1px solid #d7ded5;
  border-radius: 7px;
  background: #fff;
  color: inherit;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #183e32;
  color: #d4e3d8;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 48px;
}
.brand span {
  color: #bce092;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  border: 0;
  background: transparent;
  text-align: left;
  color: #c8d9cf;
  padding: 13px;
}
.nav button.active,
.nav button:hover {
  background: #305344;
  color: white;
}
.side-bottom {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.7;
}
.main {
  min-width: 0;
  padding: 0 42px 45px;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e6dd;
  margin-bottom: 34px;
  gap: 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #7b8a7c;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.heading p {
  margin: 8px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.stat,
.card {
  background: white;
  border: 1px solid #e1e6dc;
  border-radius: 12px;
  padding: 23px;
}
.stat strong {
  display: block;
  font-size: 30px;
  margin: 12px 0 6px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card h2 {
  margin-top: 0;
}
.card .actions {
  margin-top: 20px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 9px;
  background: #eaf2e2;
  color: #3d6c38;
  font-size: 11px;
  font-weight: 600;
}
.badge.gray {
  background: #eff1ed;
  color: #758174;
}
.badge.warn {
  background: #fff0d8;
  color: #886122;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.progress {
  height: 5px;
  background: #edf0e8;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}
.progress i {
  display: block;
  background: #83a66a;
  height: 100%;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #dce3d7;
  padding-bottom: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tabs button {
  background: none;
  border: 0;
}
.tabs button.active {
  background: #e3eadc;
  color: #235b48;
}
.banner {
  padding: 13px 17px;
  background: #f4eacb;
  border: 1px solid #e8d9a4;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #715c26;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid #edf0e8;
  vertical-align: top;
}
th {
  color: #7c877d;
  font-weight: 500;
}
td code {
  font-size: 10px;
  word-break: break-all;
}
.empty {
  padding: 35px 15px;
  color: #7a867c;
  text-align: center;
}
.login {
  max-width: 440px;
  margin: 10vh auto;
  padding: 35px;
}
.login .brand {
  color: #234d3c;
  margin-bottom: 25px;
}
.login button {
  width: 100%;
  margin-top: 20px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  min-height: 330px;
}
.notice {
  font-size: 12px;
  padding: 12px;
  background: #f0f3ec;
  border-radius: 8px;
  line-height: 1.6;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #173c30;
  color: white;
  border-radius: 10px;
  display: none;
  z-index: 10000;
  max-width: 90vw;
}
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
}
.checks input {
  width: auto;
}
.bar {
  height: 8px;
  background: #84a36c;
  border-radius: 5px;
  min-width: 2px;
}
.file-image {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
}
.space {
  margin-top: 20px;
}
.chart-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 15px;
  align-items: center;
  margin: 15px 0;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .main {
    padding: 0 22px 30px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 20px;
  }
  .brand {
    margin: 0 0 15px;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
  }
  .nav button {
    padding: 8px;
  }
  .side-bottom {
    display: none;
  }
  .main {
    padding: 0 16px 25px;
  }
  .topbar {
    height: 65px;
    margin-bottom: 22px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    gap: 10px;
  }
  .stat,
  .card {
    padding: 17px;
  }
  h1 {
    font-size: 27px;
  }
  .login {
    margin: 30px 15px;
  }
}

.permission-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 14px;
}
.checks .permission-check label {
  margin-right: 0;
}
.permission-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 17px;
}
.permission-summary {
  white-space: nowrap;
  color: var(--green);
  background: #f0f5ed;
}
.permission-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: 80dvh;
  overflow: auto;
  border: 1px solid #dce3d7;
  border-radius: 14px;
  padding: 24px;
  color: inherit;
  box-shadow: 0 20px 80px #10291f40;
}
.permission-dialog::backdrop {
  background: #132d2580;
}
.permission-dialog h2 {
  margin: 0;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 150px;
}
.permission-close {
  flex-shrink: 0;
}
.permission-details {
  margin: 20px 0 0;
}
.permission-details > div {
  padding: 15px 0;
  border-top: 1px solid #e5eadd;
}
.permission-details dt {
  font-weight: 650;
  font-size: 14px;
}
.permission-details dd {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #66746a;
}
.business-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.business-quick strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
}
.business-quick span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.badge.trial {
  background: #e9e6f5;
  color: #60508f;
}
.attention {
  color: #935b2c;
  font-size: 12px;
}
.alignment-warning {
  border-color: #e7c5ab;
  background: #fff0e5;
}
.check-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0;
}
.check-inline input {
  width: auto;
}
.field-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  border: 1px solid #dce3d7;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
}
.field-options {
  grid-column: 1/-1;
}
.field-row button {
  align-self: center;
}
.feature-tabs {
  margin-top: 22px;
}
.submission-details {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 3fr;
  gap: 12px;
}
.submission-details dt {
  font-weight: 600;
}
.submission-details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preserve-space {
  white-space: pre-wrap;
}
.feature-tabs button {
  white-space: nowrap;
}
@media (max-width: 650px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .submission-details {
    grid-template-columns: 1fr;
  }
  .submission-details dd {
    margin-bottom: 12px;
  }
}
.catalogue-tools {
  margin-bottom: 18px;
}
.catalogue-tools input {
  flex: 2;
  min-width: 180px;
  width: auto;
}
.catalogue-tools select {
  flex: 1;
  min-width: 180px;
  width: auto;
}
.field-options[hidden],
.feature-catalogue-card[hidden] {
  display: none !important;
}

.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
}
.workspace-heading h2 {
  margin: 0.35rem 0;
}
.workspace-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #e8eee6;
  border: 1px solid #d9e2d5;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.workspace-summary > div {
  padding: 1.2rem 1.5rem;
  border-right: 1px solid #d9e2d5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.workspace-summary strong {
  font-size: 1.8rem;
  color: #235b4c;
}
.workspace-summary span {
  font-size: 0.85rem;
  color: #52675f;
}
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.workspace-module {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 3px solid #437d69;
}
.workspace-module h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}
.workspace-count {
  margin: 0.5rem 0 1rem;
  color: #566c62;
}
.workspace-count strong {
  font-size: 1.65rem;
  color: #244d41;
}
.workspace-preview {
  flex: 1;
  overflow-wrap: anywhere;
}
.workspace-preview-row {
  padding: 0.85rem 0;
  border-top: 1px solid #edf0e9;
}
.workspace-preview-row > span {
  display: block;
  color: #7b8981;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}
.workspace-preview-row p {
  margin: 0.45rem 0;
  font-size: 0.9rem;
}
.workspace-module-actions {
  padding-top: 1rem;
  margin-top: auto;
}
.workspace-unread {
  font-size: 0.8rem;
  font-weight: 600;
  color: #235b4c;
}
.workspace-paused summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
}
.workspace-paused .workspace-module {
  border-top-color: #b9c0b6;
}
@media (max-width: 700px) {
  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .workspace-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-summary > div {
    padding: 1rem;
  }
  .workspace-summary strong {
    font-size: 1.45rem;
  }
}

.customer-tabs {
  display: none;
}
.business-shell .sidebar .brand {
  font-size: 1.35rem;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.business-shell .sidebar {
  overflow-y: auto;
}
.business-shell .nav {
  min-height: 0;
}
.business-tools summary {
  cursor: pointer;
  color: #bdcfc3;
  font-size: 0.8rem;
  padding: 1rem 0.7rem 0.5rem;
}
.business-tools button {
  font-size: 0.85rem;
  padding: 9px 12px;
}
.business-tools {
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 0.5rem;
}
.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  min-height: 23px;
  border-radius: 20px;
  background: #dcebc9;
  color: #214a36;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 6px;
  margin-left: 5px;
}
.inbox-shortcut {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.inbox-shortcut > span:first-child {
  font-size: 1.3rem;
}
.notification-status {
  font-size: 0.8rem;
}
.traffic-board {
  background: #173f34;
  color: #f4f8ed;
  padding: 1.6rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.traffic-board h2 {
  font-size: 1.6rem;
  margin: 0.4rem 0;
}
.traffic-board p,
.traffic-board .eyebrow {
  color: #c4d7c9;
}
.traffic-board .heading {
  margin-bottom: 1rem;
  gap: 1rem;
}
.traffic-board button {
  color: #173f34;
}
.traffic-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2rem;
}
.traffic-numbers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.traffic-numbers > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.traffic-numbers strong {
  font-size: 2rem;
  line-height: 1.2;
}
.traffic-numbers span {
  color: #c4d7c9;
  font-size: 0.85rem;
}
.traffic-bars {
  height: 210px;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.traffic-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #c4d7c9;
}
.traffic-track {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: #204b3e;
  border-radius: 5px;
  overflow: hidden;
}
.traffic-track > div {
  width: 100%;
  background: #c8e8a3;
  min-height: 2px;
  border-radius: 5px;
}
.traffic-value {
  color: #fff;
}
.traffic-caption {
  font-size: 0.75rem;
  margin-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .traffic-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .traffic-numbers {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .traffic-numbers strong {
    font-size: 1.5rem;
  }
  .traffic-numbers span {
    font-size: 0.7rem;
  }
  .traffic-bars {
    gap: 4px;
    height: 160px;
  }
  .traffic-board {
    padding: 1rem;
  }
  .traffic-board .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar > .row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .notification-status {
    display: none;
  }
}
@media (max-width: 650px) {
  .business-shell .sidebar .side-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
  }
  .business-shell .side-bottom p,
  .business-shell .side-bottom > .badge {
    display: none;
  }
  .business-shell .business-tools {
    width: 100%;
    max-height: 240px;
  }
  .business-shell .nav > .eyebrow {
    width: 100%;
    margin-top: 0.7rem;
  }
  .business-shell .sidebar .brand {
    margin-bottom: 1rem;
  }
}
.sidebar .side-bottom button {
  color: #235b48;
}
.ai-admin-status:not(:empty) {
  padding: 1rem;
  border: 1px solid #c7d8bf;
  background: #e8eee6;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.ai-assignment-list {
  max-height: 300px;
  overflow: auto;
  margin: 1rem 0;
}
.ai-assignment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid #e6ebe2;
  padding: 0.5rem;
}
.ai-assignment-row .check-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ai-assignment-row input[type="checkbox"] {
  width: auto;
}
.ai-connection h3 {
  overflow-wrap: anywhere;
}
.library-reference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid #e0e5dc;
  padding: 10px 0;
}
@media (max-width: 650px) {
  .library-reference-row {
    grid-template-columns: 1fr;
  }
  .library-reference-row label {
    margin: 0;
  }
}
.module-requirement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.requirement-chip {
  padding: 5px 9px;
  border-radius: 20px;
  background: #eff3eb;
  border: 1px solid #d9e3d2;
  font-size: 0.75rem;
  color: #3c5d48;
  line-height: 1.4;
}
.requirement-chip:hover {
  background: #dfead6;
}
.requirement-chip:focus-visible {
  outline: 2px solid #235b48;
  outline-offset: 2px;
}
.traffic-board .requirement-chip {
  background: #e3eddb;
  color: #214a36;
}
.module-requirements-dialog {
  width: min(780px, calc(100vw - 32px));
  overflow-wrap: anywhere;
}
.module-requirements-dialog dl {
  margin-bottom: 0;
}
.requirement-resource-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.requirement-resource-summary > div {
  background: #edf3e8;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.requirement-resource-summary strong {
  font-size: 1.2rem;
  color: #235b48;
}
.requirement-resource-summary span {
  font-size: 0.8rem;
  color: #62725e;
}
.requirement-resource-summary meter {
  width: 100%;
  height: 12px;
}
.source-data-section p {
  white-space: pre-wrap;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.source-data-section {
  border-top: 1px solid #dce3d7;
  margin-top: 1rem;
  padding-top: 0.5rem;
}
.usage-cards meter {
  display: block;
  width: 100%;
  height: 14px;
  margin: 16px 0;
}
.usage-number {
  display: block;
  font-size: 1.6rem;
  color: #235b48;
  margin: 12px 0;
}
.usage-cards .card {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-usage-countdown] {
  white-space: nowrap;
}
.billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2rem;
  background: #173f34;
  color: #f4f8ed;
  padding: 2rem;
  border-radius: 16px;
  margin: 1rem 0 1.4rem;
}
.billing-hero h2 {
  font-size: 2.2rem;
  margin: 0.65rem 0;
  overflow-wrap: anywhere;
}
.billing-hero .muted,
.billing-hero .eyebrow {
  color: #c4d7c9;
}
.billing-renewal {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.renewal-ring {
  width: 105px;
  height: 105px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(#c8e8a3 var(--renewal-progress), #315d4d 0);
  display: grid;
  place-items: center;
}
.renewal-ring > span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #173f34;
  font-weight: 700;
}
.billing-summary .card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.billing-summary .usage-number {
  font-size: 1.65rem;
}
#billing-recharge {
  scroll-margin-top: 20px;
}
#billing-panel meter {
  width: 100%;
}
.billing-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.billing-setting-row button {
  margin-bottom: 6px;
}
@media (max-width: 750px) {
  .billing-hero {
    grid-template-columns: 1fr;
    padding: 1.3rem;
  }
  .billing-hero h2 {
    font-size: 1.8rem;
  }
  .billing-setting-row {
    grid-template-columns: 1fr 1fr;
  }
  .billing-setting-row button {
    grid-column: 1/-1;
  }
  .billing-renewal {
    gap: 1rem;
  }
}

.overview-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin: 0 0 22px;
}
.overview-panels .card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.overview-panels h3 {
  margin: 12px 0;
}
.overview-panels p {
  margin: 8px 0;
}
.overview-panels button {
  margin-top: 12px;
}
.overview-billing {
  border-top: 3px solid #377d65;
}
.overview-attention {
  padding: 18px 22px;
  background: #fff2cf;
  border: 1px solid #ead58f;
  border-radius: 12px;
  margin-bottom: 20px;
}
.overview-attention h3 {
  margin-top: 0;
}
.overview-attention > div {
  margin: 10px 0;
}
.overview-attention button {
  margin-left: 8px;
}
.overview-site-link {
  margin: 10px 0;
}
/* Keep long business menus in flow instead of overlapping account controls. */
.sidebar {
  overflow-y: auto;
}
.sidebar > .nav,
.sidebar > .brand,
.sidebar > .side-bottom {
  flex-shrink: 0;
}
.business-shell .nav {
  min-height: auto;
}
.side-bottom {
  padding-top: 18px;
}

/* A business workspace with one clear destination per navigation row. */
.business-shell .sidebar {
  padding: 25px 16px;
  scrollbar-width: thin;
  scrollbar-color: #608373 #183e32;
}
.business-shell .brand {
  margin-bottom: 30px;
  padding: 0 8px;
}
.business-shell .nav {
  gap: 5px;
}
.business-shell .nav > .eyebrow {
  margin: 20px 12px 7px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #a2bba9;
}
.business-shell .nav > button {
  font-size: 13px;
  padding: 11px 12px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.business-tools {
  max-height: 320px;
  overflow: auto;
  border-top: 1px solid #ffffff1c;
  border-bottom: 1px solid #ffffff1c;
  margin: 13px 0 0;
  padding: 5px 0 10px;
  scrollbar-width: thin;
}
.business-tools summary {
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  color: #c8d9cf;
}
.business-tools button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 7px;
  margin: 3px 0;
  min-height: 38px;
}
.business-tools button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tool-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: #87ab89;
  border-radius: 50%;
}
.business-tools button.active .tool-dot {
  background: #d7edb8;
  box-shadow: 0 0 0 3px #d7edb81a;
}
.business-shell .nav-count {
  margin-left: auto;
  font-size: 11px;
  min-width: 21px;
  min-height: 21px;
}
.business-shell .side-bottom {
  border-top: 1px solid #ffffff1a;
  margin-top: 26px;
  padding: 18px 9px 0;
  overflow-wrap: anywhere;
}
.module-management > .heading {
  align-items: flex-start;
  margin: 6px 0 24px;
}
.module-management > .heading h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 20px 0 10px;
}
.module-management > .heading .badge {
  white-space: normal;
  max-width: 220px;
  text-align: center;
}
.module-management .feature-tabs {
  background: #eaf0e6;
  border: 1px solid #dce5d8;
  display: flex;
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.module-management .feature-tabs button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
}
.module-management .feature-tabs button.active {
  background: #fff;
  box-shadow: 0 2px 6px #183e3210;
  color: #205c47;
  font-weight: 600;
}
.module-inbox {
  background: white;
  border: 1px solid #dce4d6;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 22px #183e3204;
}
.module-inbox > .row:first-child h2 {
  font-size: 20px;
  margin: 0;
}
.module-inbox > .row:first-child p {
  font-size: 12px;
  margin: 7px 0 0;
}
.module-inbox > .row.space {
  background: #f6f8f3;
  padding: 0 16px 13px;
  border-radius: 9px;
  gap: 22px;
  align-items: center;
}
.module-inbox .empty {
  margin: 24px 0 0;
  padding: 45px 20px;
  min-height: 155px;
  border: 1px dashed #dae3d4;
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fbf7, #fff);
  color: #6c7b66;
  font-size: 14px;
}
.module-inbox .empty:before {
  content: "✉";
  display: block;
  font-size: 30px;
  color: #7c9975;
  margin-bottom: 12px;
}
.module-inbox .empty:after {
  content: "New activity will arrive here from your website.";
  display: block;
  font-size: 12px;
  margin-top: 7px;
  color: #87917f;
}
.analytics-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin: 8px 0 24px;
}
.analytics-heading h2 {
  font-size: 27px;
  letter-spacing: -0.5px;
  margin: 6px 0 9px;
}
.analytics-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
}
.analytics-heading p {
  font-size: 14px;
  margin: 0;
}
.analytics-controls {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.analytics-controls label {
  font-size: 11px;
  margin: 0;
  min-width: 145px;
}
.analytics-controls select {
  display: block;
  padding: 10px;
  margin-top: 5px;
  font-size: 13px;
}
.analytics-controls button {
  padding: 11px 13px;
  font-size: 12px;
}
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.analytics-kpis .card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
}
.analytics-kpis .card > span:not(.analytics-kpi-icon) {
  font-size: 12px;
  font-weight: 600;
  color: #64775d;
  padding-right: 22px;
}
.analytics-kpis strong {
  font-size: 35px;
  letter-spacing: -1.5px;
  line-height: 1.3;
  margin: 12px 0;
  color: #205a47;
  font-variant-numeric: tabular-nums;
}
.analytics-kpis small {
  font-size: 11px;
  line-height: 1.5;
  color: #83907a;
}
.analytics-kpi-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #557947;
  background: #edf3e7;
  border-radius: 9px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 19px;
}
.analytics-page h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.analytics-trend {
  margin-bottom: 20px;
  padding: 25px;
}
.analytics-trend .row > div > p {
  font-size: 12px;
  margin: 0;
}
.analytics-metrics {
  display: flex;
  background: #f0f4eb;
  border-radius: 8px;
  padding: 4px;
  gap: 3px;
  flex-wrap: wrap;
}
.analytics-metrics button {
  font-size: 11px;
  padding: 7px 11px;
  border: 0;
  background: transparent;
}
.analytics-metrics button.active {
  background: white;
  box-shadow: 0 1px 5px #183e3210;
  color: #245c48;
}
.analytics-chart {
  display: flex;
  gap: clamp(1px, 0.5vw, 7px);
  height: 225px;
  margin-top: 28px;
  border-bottom: 1px solid #e3e9dc;
  padding: 0 0 28px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 47px,
    #edf1e8 48px,
    transparent 49px
  );
}
.analytics-column {
  flex: 1;
  min-width: 0;
  position: relative;
}
.analytics-track {
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.analytics-track > span {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  background: linear-gradient(0deg, #83a875, #34735b);
}
.analytics-track > span.clicks {
  background: linear-gradient(0deg, #d3b675, #b68b38);
}
.analytics-track > span.completions {
  background: linear-gradient(0deg, #9eafcf, #5a789f);
}
.analytics-column:hover .analytics-track > span {
  filter: brightness(1.15);
}
.analytics-column > small {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  white-space: nowrap;
  color: #7d8b72;
  padding-top: 9px;
}
.analytics-column:first-child > small {
  left: 0;
  transform: none;
}
.analytics-column:last-child > small {
  left: auto;
  right: 0;
  transform: none;
}
.analytics-data {
  margin-top: 20px;
  font-size: 12px;
}
.analytics-data summary {
  cursor: pointer;
  color: #366b52;
  padding: 6px 0;
}
.analytics-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  margin-bottom: 20px;
}
.analytics-detail-grid > .card {
  min-width: 0;
  padding: 25px;
}
.analytics-detail-grid > .card > p {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 20px;
}
.analytics-ranking {
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: 440px;
  overflow: auto;
}
.analytics-ranking li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0e6;
}
.analytics-ranking li > div {
  flex: 1;
  min-width: 0;
}
.analytics-ranking strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.analytics-ranking b {
  font-size: 13px;
}
.analytics-ranking small {
  font-size: 9px;
  overflow-wrap: anywhere;
  color: #849177;
}
.analytics-rank {
  font-size: 10px;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #eef3e8;
  text-align: center;
  line-height: 22px;
  color: #6a805e;
}
.analytics-meter {
  height: 4px;
  background: #edf1e8;
  border-radius: 5px;
  margin: 8px 0 3px;
  overflow: hidden;
}
.analytics-meter span {
  display: block;
  height: 100%;
  background: #83a875;
  border-radius: 5px;
}
.analytics-modules {
  font-size: 12px;
}
.analytics-modules th {
  font-size: 10px;
  white-space: nowrap;
}
.analytics-modules td {
  padding: 14px 10px;
}
.analytics-modules td strong {
  font-size: 12px;
  font-weight: 500;
}
.analytics-success {
  display: inline-block;
  min-width: 23px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eaf2e2;
  color: #3f6934;
  text-align: center;
}
.analytics-empty {
  padding: 28px 12px;
  text-align: center;
  background: #f8faf5;
  border: 1px dashed #e0e7d9;
  border-radius: 10px;
  margin-top: 20px;
}
.analytics-empty > span {
  font-size: 30px;
  color: #88a078;
}
.analytics-empty h4 {
  font-size: 14px;
  margin: 12px 0 7px;
  color: #36542f;
}
.analytics-empty p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
  color: #7a8870;
}
.analytics-footnote {
  font-size: 11px !important;
  color: #839078 !important;
  border-top: 1px solid #e7ecdf;
  padding-top: 16px;
  margin-bottom: 0 !important;
}
.analytics-method {
  font-size: 12px;
  line-height: 1.8;
  color: #6d7f61;
}
.analytics-method summary {
  font-weight: 600;
  cursor: pointer;
  color: #365b2d;
}
.analytics-method code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.analytics-unlock {
  padding: 35px;
}
.analytics-unlock p {
  max-width: 560px;
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-heading {
    flex-direction: column;
  }
  .analytics-detail-grid {
    grid-template-columns: 1fr;
  }
  .analytics-trend > .row {
    gap: 18px;
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .business-shell .sidebar {
    padding: 18px 16px;
  }
  .business-shell .nav > button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .business-shell .nav > .eyebrow {
    margin-left: 8px;
  }
  .business-shell .business-tools {
    max-height: 230px;
  }
  .business-tools button {
    display: flex;
    width: 100%;
    font-size: 12px;
  }
  .business-shell .side-bottom {
    padding-top: 12px;
  }
  .module-inbox {
    padding: 16px;
  }
  .module-inbox > .row:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .module-inbox .actions {
    gap: 6px;
  }
  .module-inbox .actions button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .module-management > .heading {
    gap: 15px;
    flex-direction: column;
  }
  .module-management > .heading .badge {
    max-width: none;
  }
  .module-management .feature-tabs button {
    padding: 9px 14px;
  }
  .analytics-kpis {
    gap: 10px;
  }
  .analytics-kpis .card {
    padding: 16px;
  }
  .analytics-kpis strong {
    font-size: 30px;
  }
  .analytics-kpi-icon {
    right: 10px;
    top: 12px;
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
  .analytics-kpis small {
    font-size: 10px;
  }
  .analytics-kpis .card > span:not(.analytics-kpi-icon) {
    font-size: 11px;
  }
  .analytics-controls {
    width: 100%;
  }
  .analytics-controls label {
    flex: 1;
  }
  .analytics-heading h2 {
    font-size: 24px;
  }
  .analytics-trend,
  .analytics-detail-grid > .card {
    padding: 18px;
  }
  .analytics-metrics button {
    padding: 7px;
    font-size: 10px;
  }
  .analytics-chart {
    height: 190px;
    gap: 2px;
  }
  .analytics-column > small {
    font-size: 8px;
  }
  .analytics-data .table-wrap {
    max-height: 300px;
    overflow: auto;
  }
  .analytics-method {
    padding: 18px;
  }
  .analytics-modules {
    min-width: 470px;
  }
}

.analytics-reports {
  margin-top: 22px;
  padding: 26px;
  border-top: 3px solid #6e9560;
}
.analytics-reports > .row:first-child {
  gap: 20px;
  align-items: flex-start;
}
.analytics-reports h3 {
  font-size: 20px;
  margin: 7px 0;
}
.analytics-reports > .row > div > p {
  font-size: 13px;
  margin: 8px 0 0;
}
.report-brand-pill {
  background: #edf3e8;
  border: 1px solid #dce6d3;
  border-radius: 30px;
  padding: 8px 13px;
  white-space: nowrap;
  color: #345c2d;
  font-size: 12px;
  font-weight: 600;
}
.report-brand-pill > span {
  font-size: 10px;
  font-weight: 400;
  color: #839177;
}
.analytics-review-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 22px 0 15px;
  flex-wrap: wrap;
}
.analytics-review-controls label {
  flex: 1;
  min-width: 230px;
  font-size: 11px;
  margin: 0;
}
.analytics-review-controls select {
  margin-top: 6px;
  display: block;
  font-size: 12px;
}
.analytics-review-controls button {
  font-size: 12px;
  padding: 12px 14px;
  min-height: 43px;
}
.analytics-reports h4 {
  font-size: 15px;
  margin: 0;
}
.analytics-reports [data-report-status]:not(:empty) {
  background: #fff6db;
  border: 1px solid #e7dcb6;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
}
.report-history {
  max-height: 450px;
  margin-top: 15px;
  overflow: auto;
}
.report-history table {
  font-size: 12px;
  min-width: 650px;
}
.report-history td small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  color: #849078;
}
.report-history .actions {
  gap: 5px;
  flex-wrap: wrap;
}
.report-history .actions button {
  font-size: 11px;
  padding: 7px 10px;
}
.analytics-report-dialog {
  max-width: 850px;
}
.analytics-report-dialog > div:first-child {
  align-items: flex-start;
  gap: 20px;
}
.analytics-report-dialog h2 {
  font-size: 24px;
  margin-top: 7px;
}
.analytics-report-dialog h3 {
  font-size: 17px;
}
.analytics-report-dialog h2,
.analytics-report-dialog h3 {
  line-height: 1.4;
}
.analytics-report-dialog section {
  margin: 22px 0;
}
.analytics-report-dialog .review-summary {
  background: #edf4e7;
  border-left: 3px solid #739863;
  padding: 20px;
}
.analytics-report-dialog .review-summary h2 {
  font-size: 21px;
}
.analytics-report-dialog .review-summary p {
  font-size: 14px;
  line-height: 1.8;
}
.analytics-report-dialog .report-observation,
.analytics-report-dialog .report-recommendation {
  border: 1px solid #e0e7d8;
  padding: 20px;
  margin: 12px 0;
  border-radius: 9px;
}
.analytics-report-dialog p {
  font-size: 13px;
  line-height: 1.8;
}
.analytics-report-dialog .evidence {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.analytics-report-dialog .evidence span {
  font-size: 10px;
  background: #eef3e7;
  padding: 5px 9px;
  border-radius: 20px;
}
.analytics-report-dialog .report-caveats {
  background: #faf5e8;
  padding: 20px;
  font-size: 13px;
}
.analytics-report-dialog .report-disclaimer {
  font-size: 11px;
  color: #809070;
  border-top: 1px solid #e1e7d8;
  padding-top: 16px;
}
.analytics-review-confirm p {
  font-size: 14px;
  line-height: 1.8;
}
.analytics-review-confirm .primary {
  margin-top: 12px;
}
.analytics-report-dialog > .primary {
  margin-top: 15px;
}
@media (max-width: 650px) {
  .analytics-reports {
    padding: 18px;
  }
  .analytics-reports > .row:first-child {
    flex-direction: column;
  }
  .analytics-review-controls {
    align-items: stretch;
  }
  .analytics-review-controls label {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
  .analytics-review-controls button {
    font-size: 11px;
    flex: 1;
  }
  .analytics-controls button {
    font-size: 11px;
    padding: 10px;
  }
  .analytics-report-dialog h2 {
    font-size: 21px;
  }
  .analytics-report-dialog .report-observation,
  .analytics-report-dialog .report-recommendation {
    padding: 15px;
  }
}

.account-handover-dialog {
  max-width: 730px;
}
.account-handover-dialog h2 {
  font-size: 24px;
  margin: 8px 0;
}
.account-handover-dialog > .row {
  gap: 20px;
  align-items: flex-start;
}
.account-handover-dialog p {
  font-size: 13px;
  line-height: 1.8;
}
.account-handover-dialog .notice {
  font-size: 12px;
}
.account-handover-dialog select {
  display: block;
  margin-top: 7px;
  font-size: 13px;
}
.account-handover-dialog [data-handover-status]:not(:empty) {
  padding: 10px 12px;
  background: #fff5d7;
  border-radius: 6px;
}
.handover-addresses {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px 14px;
  background: #f0f5eb;
  padding: 18px;
  border-radius: 9px;
  font-size: 12px;
}
.handover-addresses > span {
  color: #7a8b6d;
}
.handover-addresses a {
  overflow-wrap: anywhere;
}
.handover-opt-in {
  background: #eef4e8;
  border: 1px solid #dce6d3;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.handover-opt-in input {
  width: auto;
}
.access-url-settings {
  margin-bottom: 28px;
  border-top: 3px solid #6d925e;
}
.access-url-settings h2 {
  font-size: 23px;
  margin: 7px 0;
}
.access-url-settings > p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 850px;
}
.access-url-settings .notice {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.access-url-settings form {
  max-width: 800px;
}
.access-url-settings input {
  margin-top: 7px;
  font-size: 14px;
}
@media (max-width: 650px) {
  .handover-addresses {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .handover-addresses a {
    margin-bottom: 9px;
  }
  .account-handover-dialog h2 {
    font-size: 20px;
  }
  .access-url-settings h2 {
    font-size: 20px;
  }
}

.sf-progress-spinner{display:inline-block;width:1em;height:1em;box-sizing:border-box;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-.15em;margin-right:.55em;animation:sf-progress-spin .8s linear infinite}
.sf-source-progress{padding:12px 14px;border-radius:10px;background:#eef3ea;color:#315746;font-size:.9rem;line-height:1.55;border-left:3px solid #548370}
@keyframes sf-progress-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.sf-progress-spinner{animation:none}}

/* Module bench: readable choices and persistent, actionable feedback. */
.molding-form {display:grid;gap:18px;margin-top:24px}
.molding-form > label {display:grid;gap:8px}
.molding-form > p {margin:0}
.molding-form textarea {min-height:120px}
.molding-form .actions {align-items:center;margin:0;gap:10px;flex-wrap:wrap}
.molding-modules {min-width:0;border:1px solid var(--border,#dce3d7);border-radius:12px;padding:16px}
.molding-modules legend {padding:0 8px;font-weight:600}
.molding-modules > p {margin-top:0}
.molding-module-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;max-height:280px;overflow:auto;padding:3px}
.molding-module-grid label {display:flex;align-items:center;gap:10px;min-height:46px;padding:10px;border:1px solid #e3e8df;border-radius:8px;cursor:pointer;font-weight:400;background:#fff}
.molding-module-grid label:has(input:checked) {background:#edf4e8;border-color:#7c9e87}
.molding-module-grid input[type=checkbox] {width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#245c48}
.molding-status {padding:20px;border:1px solid #cbded1;border-radius:12px;background:#f0f6f1;overflow-wrap:anywhere}
.molding-status--warning {background:#fffbef;border-color:#e7d8ad}
.molding-status-heading {display:flex;align-items:center;gap:10px;font-size:16px}
.molding-status p {margin:8px 0;line-height:1.6}
.molding-status details {font-size:12px;color:#657269;margin-top:12px}
.molding-status summary {cursor:pointer;margin-bottom:8px}
.molding-status .actions {flex-wrap:wrap;gap:8px}
.molding-error-reference {display:block;margin-top:14px;color:#657269;font-size:11px}
@media(max-width:600px){.molding-module-grid{grid-template-columns:1fr;max-height:260px}.molding-modules{padding:12px}.molding-form .actions button,.molding-status .actions button{min-height:44px}.molding-status{padding:16px}}
