:root {
  font-family: "DM Sans", sans-serif;
  color: #202723;
  background: #f9faf9;
  font-synthesis: none;
  --green: #176b4c;
  --lime: #d9f291;
  --ink: #16231c;
  --blue: #315d75;
  --copper: #9b6a3d;
  --border: #e1e6e2;
  --muted: #6a746d;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  background:
    linear-gradient(
      180deg,
      rgba(247, 249, 246, 0.96),
      rgba(244, 247, 248, 0.96)
    ),
    radial-gradient(
      circle at top right,
      rgba(49, 93, 117, 0.16),
      transparent 34%
    );
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 11px 19px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:hover:not(:disabled),
.button:hover {
  filter: brightness(0.94);
}

svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #87b5f5;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
.wordmark {
  font-family: Manrope, sans-serif;
}

p {
  line-height: 1.7;
}

h2 {
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
}

small {
  font-size: 12px;
}

.primary {
  background: var(--green);
  color: white;
}

.dark {
  background: #202e26;
  color: white;
}

.secondary {
  background: white;
  border-color: var(--border);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.overline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.wordmark {
  font-size: 23px;
  font-weight: 800;
  white-space: nowrap;
}

.wordmark-dot {
  color: #68a569;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6%;
  border-bottom: 1px solid rgba(225, 230, 226, 0.86);
  background: rgba(255, 255, 255, 0.96);
}

.public-nav nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.quiet-link {
  font-size: 14px;
  font-weight: 600;
}

.public-nav nav a {
  color: #536057;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

.public-nav nav a.active,
.public-nav nav a:hover {
  color: var(--ink);
  border-color: var(--green);
}

.hero {
  position: relative;
  min-height: 620px;
  height: calc(100vh - 165px);
  max-height: 850px;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 29, 21, 0.9),
    rgba(12, 29, 21, 0.6) 45%,
    rgba(12, 29, 21, 0.07)
  );
}

.hero-copy {
  position: relative;
  padding: 55px 8%;
  max-width: 900px;
}

.hero-copy .overline {
  color: var(--lime);
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 20px;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 54px;
  line-height: 1.15;
  font-weight: 500;
  max-width: 780px;
}

.hero-copy > p:not(.overline) {
  max-width: 610px;
  font-size: 17px;
  color: #e1e6e2;
  margin-top: 25px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 32px;
}

.hero .primary {
  background: var(--lime);
  color: #203b2d;
}

.hero-secondary {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-caption {
  position: absolute;
  bottom: 24px;
  left: 8%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #e0e5df;
}

.intro-band {
  padding: 65px 8% 40px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr;
  align-items: start;
  gap: 36px;
  background: white;
}

.intro-band h2 {
  font-size: 34px;
  line-height: 1.25;
}

.intro-band > p:last-child {
  color: var(--muted);
  font-size: 15px;
}

.feature-grid {
  padding: 20px 8% 75px;
  background: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.feature-grid article {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  position: relative;
}

.feature-grid article > svg {
  color: var(--green);
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
}

.feature-grid h3 {
  margin-bottom: 12px;
}

.feature-grid p {
  color: var(--muted);
  font-size: 14px;
}

.feature-number {
  position: absolute;
  right: 0;
  color: #a4ada5;
  font-size: 12px;
}

.process {
  padding: 75px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  background: #eef2ed;
}

.proof-grid {
  padding: 72px 8%;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  background: #1b282f;
  color: white;
}

.proof-grid .overline {
  color: var(--lime);
}

.proof-grid h2 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.proof-grid p {
  color: #d3dedd;
  font-size: 14px;
}

.proof-grid article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.proof-grid article svg {
  color: #d9f291;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
}

.proof-grid article h3 {
  margin-bottom: 10px;
}

.pricing-band {
  padding: 58px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #f7f4ed;
  border-top: 1px solid #ded2bd;
}

.pricing-band h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.pricing-band p:not(.overline) {
  color: #5e675f;
  max-width: 760px;
}

.process h2 {
  font-size: 36px;
  margin-bottom: 30px;
  line-height: 1.3;
}

.process ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process li {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #d2dcd0;
  padding: 22px 0;
}

.process li:first-child {
  padding-top: 0;
}

.process li > span {
  color: var(--green);
  font-size: 12px;
  padding-top: 4px;
}

.process li p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.story-split {
  padding: 78px 8%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 70px;
  background: #fbfcfb;
  border-top: 1px solid var(--border);
}

.story-split h2 {
  font-size: 38px;
  line-height: 1.24;
  max-width: 540px;
}

.story-split p {
  color: var(--muted);
  margin: 22px 0 28px;
  max-width: 580px;
}

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

.story-panel > span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
}

.story-panel h3 {
  font-size: 20px;
}

.story-panel p {
  margin: 0 0 16px;
  font-size: 14px;
}

.public-page-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 6%;
  padding: 66px 8%;
  background: white;
}

.public-page-hero img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  border-radius: 6px;
}

.public-page-hero h1 {
  font-size: 48px;
  line-height: 1.18;
  margin-bottom: 22px;
}

.public-page-hero p:not(.overline) {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 30px;
}

.public-detail-grid {
  padding: 58px 8% 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  background: #f0f4f1;
}

.public-detail-grid article {
  border-top: 1px solid #cbd8ce;
  padding-top: 24px;
}

.public-detail-grid span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
}

.public-detail-grid h2 {
  margin: 16px 0 12px;
  font-size: 20px;
}

.public-detail-grid p {
  color: var(--muted);
  font-size: 14px;
}

.public-cta {
  padding: 72px 8%;
  background: var(--ink);
  color: white;
}

.public-cta .overline {
  color: var(--lime);
}

.public-cta h2 {
  max-width: 700px;
  font-size: 36px;
  line-height: 1.28;
  margin-bottom: 28px;
}

footer {
  padding: 35px 8%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: white;
}

footer p,
footer > a:last-child {
  font-size: 13px;
  color: var(--muted);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 44% 56%;
}

.auth-visual {
  background:
    linear-gradient(0deg, rgba(14, 36, 24, 0.88), rgba(14, 36, 24, 0.35)),
    url("/hero-office.jpg") center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 11%;
}

.auth-visual h1 {
  font-size: 43px;
  font-weight: 500;
  line-height: 1.3;
}

.auth-visual .overline {
  color: var(--lime);
}

.auth-visual p:not(.overline) {
  margin-top: 24px;
  color: #d7e1d9;
  max-width: 340px;
}

.auth-visual > span {
  font-size: 10px;
  color: #c6d5ca;
}

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 42px 11%;
  background: white;
}

.back-link {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-form-wrap {
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 50px 0;
}

.auth-form-wrap h2 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.auth-form-wrap form {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}
.auth-recovery-link {
  justify-self: end;
  margin-top: -8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.reset-code-preview {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c9d7cc;
  border-radius: 5px;
  background: #f3f7f1;
}
.reset-code-preview span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}
.reset-code-preview strong {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  color: var(--ink);
}
.auth-form-wrap form[hidden] {
  display: none;
}

.external-auth {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.external-auth[hidden],
.google-link-option[hidden] {
  display: none;
}

.external-auth-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.google-sign-in {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  min-height: 48px;
  border: 1px solid #d4ddd6;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.google-sign-in:hover,
.google-sign-in:focus-visible {
  border-color: var(--green);
  outline-offset: 3px;
}

.google-sign-in-mark {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.google-link-option {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #d4ddd6;
  border-radius: 8px;
  margin-top: 24px;
}

.google-link-option > p {
  color: var(--muted);
  font-size: 13px;
}

.google-link-option .button {
  justify-self: start;
}

.auth-switch {
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
}

.auth-switch a {
  font-weight: 700;
  color: var(--green);
  margin-left: 5px;
}

.auth-footer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

label {
  display: grid;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d4ddd6;
  background: white;
  border-radius: 5px;
  padding: 12px;
  color: #24332a;
  min-height: 46px;
}

input::placeholder {
  color: #9ca59f;
  font-size: 13px;
}

.input-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.form-message {
  font-size: 13px;
  color: var(--green);
  min-height: 20px;
}

.local-code {
  margin-top: 22px;
  border: 1px solid #c9d7cc;
  background: #f3f7f1;
  border-radius: 6px;
  padding: 14px 16px;
}

.local-code span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}

.local-code strong {
  font-family: Manrope, sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--ink);
}

.error-text {
  color: #b13e3e;
}

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

.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 30px 20px 20px;
  border-right: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.sidebar .wordmark {
  padding: 0 12px;
  font-size: 22px;
}

.org-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.org-avatar,
.account-avatar {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e9eee7;
  color: var(--green);
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.org-control select {
  border: 0;
  padding: 8px 0;
  font-size: 12px;
  min-height: 32px;
}

.nav-label {
  font-size: 9px;
  font-weight: 700;
  color: #929d94;
  margin: 30px 12px 12px;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 5px;
  font-size: 13px;
  color: #66736a;
}

.sidebar nav a.active {
  background: #edf4eb;
  color: #246339;
  font-weight: 700;
}

.sidebar nav a:hover {
  background: #f2f5f1;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 25px 12px 0;
}

.sidebar-bottom p {
  font-size: 12px;
  color: #8b958e;
  margin-bottom: 20px;
}

.text-button {
  background: transparent;
  color: var(--muted);
  min-height: 30px;
  padding: 4px 0;
  font-size: 12px;
}

.sidebar-help {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem;
  border: 1px solid #d7e3da;
  border-radius: 7px;
  background: #f2f7f3;
  color: #24583c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-help:hover {
  background: #e7f0e9;
  border-color: #adc8b5;
}

.sidebar-help svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.workspace-main {
  min-width: 0;
}

.workspace-top {
  height: 76px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: white;
  font-size: 12px;
  color: var(--muted);
}

.divider {
  padding: 0 14px;
  color: #bac3bc;
}

.workspace-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subscription-pill {
  border: 1px solid #d6dfd7;
  background: #f4f7f2;
  color: #516056;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
}

.subscription-pill.active {
  color: #1f6b41;
  background: #e4f2e6;
  border-color: #c2dec6;
}

.top-sign-out {
  min-height: 34px;
  padding: 6px 10px;
  border-color: #d8e0da;
  background: white;
  color: #536057;
  font-size: 12px;
}

.workspace-content {
  max-width: 1450px;
  margin: auto;
  padding: 40px 42px 70px;
}

.billing-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 26px;
  border: 1px solid #ded2bd;
  background: #fbf7ef;
  border-radius: 6px;
}

.billing-banner svg {
  color: var(--copper);
}

.billing-banner p {
  color: var(--muted);
  font-size: 12px;
}

.billing-banner .button {
  margin-left: auto;
  white-space: nowrap;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.page-heading h1 {
  font-size: 29px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-heading .overline {
  margin-bottom: 9px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  margin-bottom: 30px;
}

.metrics-grid article {
  padding: 24px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.metrics-grid article:last-child {
  border: 0;
}

.metrics-grid article > p {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.metrics-grid strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}

.metrics-grid strong small {
  font-weight: 400;
  color: var(--muted);
}

.metrics-grid article > span {
  font-size: 11px;
  color: var(--muted);
}

.dashboard-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  border: 1px solid #d8dfd8;
  background:
    linear-gradient(120deg, #ffffff, #f3f7f1),
    linear-gradient(90deg, rgba(23, 107, 76, 0.08), transparent);
  border-radius: 6px;
  padding: 26px;
  margin-bottom: 24px;
}

.dashboard-guide h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.dashboard-guide p {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-guide ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-guide li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe7df;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
}

.dashboard-guide li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: #edf3e7;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-guide li.done > span {
  background: #176b4c;
  color: white;
}

.dashboard-guide h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.dashboard-guide .inline-link {
  margin-top: 6px;
}

.series-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.series-picker button {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 5px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  text-align: left;
}

.series-picker button.active {
  border-color: #94b99b;
  background: #edf4eb;
}

.series-picker span,
.series-picker small {
  color: var(--muted);
  font-size: 11px;
}

.series-picker strong {
  font-size: 14px;
}

.trend-section {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-heading h2 {
  font-size: 17px;
}

.section-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.empty-state {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 25px;
}

.empty-state > svg {
  width: 35px;
  height: 35px;
  color: #8eac91;
  margin-bottom: 20px;
}

.empty-state h3 {
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.overview-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding-top: 30px;
}

.overview-bottom > div + div {
  border-left: 1px solid var(--border);
  padding-left: 35px;
}

dl {
  margin: 0;
}

dl > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px 0;
  color: var(--muted);
}

dd {
  margin: 0;
  color: #28382c;
  font-weight: 600;
}

.verified {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: var(--green);
  margin-top: 20px;
}

.evidence-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #edf3e7;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 13px;
}

.notice p {
  color: var(--muted);
  font-size: 12px;
}

.notice .button {
  margin-left: auto;
}

.setup-progress {
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: #9da79f;
  margin-bottom: 35px;
}

.setup-progress .complete,
.setup-progress .current {
  color: var(--green);
}

.setup-progress span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-layout,
.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
  gap: 55px;
}

.business-form,
.upload-form {
  display: grid;
  gap: 22px;
  align-content: start;
}

.business-form h2,
.upload-form h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.context-note {
  border-left: 1px solid var(--border);
  padding-left: 30px;
  align-self: start;
}

.context-note > svg {
  color: var(--green);
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
}

.context-note h3 {
  font-size: 17px;
  margin-bottom: 15px;
}

.context-note h4 {
  font-size: 12px;
}

.context-note p {
  font-size: 13px;
  color: var(--muted);
}

.context-note hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 25px 0;
}

.inline-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  border: 1px dashed #a8bbae;
  background: #f1f5ef;
  border-radius: 5px;
  cursor: pointer;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.dropzone > svg {
  height: 32px;
  width: 32px;
  color: var(--green);
  margin-bottom: 12px;
}

.dropzone strong {
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 14px;
}

.dropzone span,
.dropzone small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone:focus-within,
.dropzone.dragging {
  outline: 3px solid #87b5f5;
}

.upload-form > button {
  justify-self: start;
}

.table-section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 25px;
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
}

.source-download-message {
  min-height: 20px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.source-download-message.error-text { color: #9a3026; }

.source-file-cell { min-width: 180px; }
.source-file-cell span { white-space: normal; overflow-wrap: anywhere; }
#upload-history td small { display: block; margin-top: 4px; color: var(--muted); }
.source-actions-cell { position: sticky; right: 0; background: #fff; }
th.source-actions-cell { background: #edf1ed; }
.source-file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.source-download-button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--green);
}
.source-download-button svg { width: 18px; height: 18px; }
.source-download-button:hover:not(:disabled) { background: #edf5ef; border-color: #a1b8aa; }
.source-download-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
  text-align: left;
}

th {
  background: #edf1ed;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 16px;
}

td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--border);
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}

td > svg {
  color: var(--muted);
  margin-right: 6px;
}

.status {
  font-size: 10px;
  color: #856226;
  background: #f5edd9;
  padding: 5px 8px;
  border-radius: 3px;
}

.status.success {
  color: #2d6841;
  background: #e5f0e3;
}

.small-empty {
  padding: 35px 0;
  color: var(--muted);
  font-size: 13px;
}

.validation {
  margin-top: 35px;
  padding: 28px 0;
  border-top: 2px solid #abc5a3;
}

.validation > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.validation-summary {
  display: flex;
  gap: 35px;
  margin: 20px 0;
  padding: 20px;
  background: #edf3e7;
  font-size: 12px;
  color: var(--muted);
}

.validation-summary strong {
  display: block;
  color: #24472f;
  margin-top: 6px;
  font-size: 17px;
}

.validation form {
  margin-top: 24px;
}

.validation-errors {
  color: #a83939;
  background: #fbefed;
  padding: 20px 35px;
  font-size: 13px;
  line-height: 1.7;
}

.evidence-preview {
  border: 1px solid #d8e3d9;
  background: #f7faf6;
  padding: 18px 20px;
  margin: 20px 0;
}

.evidence-preview h3,
.profile-summary h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.evidence-preview ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.evidence-preview li {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.evidence-preview strong {
  color: var(--green);
  font-size: 10px;
}

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

.profile-summary > div {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.profile-summary p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  padding: 8px 0;
  color: var(--muted);
}

.profile-summary strong {
  color: #233029;
}

.bar-chart {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 25px 15px 10px;
  min-height: 260px;
  align-items: end;
}

.bar-column {
  min-width: 85px;
  flex: 1;
  text-align: center;
  font-size: 11px;
}

.bar-column > span {
  font-size: 10px;
  color: var(--muted);
}

.bar-track {
  height: 160px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  margin: 12px 0;
}

.bar-track.negative {
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.bar {
  width: 50%;
  max-width: 80px;
  background: #488466;
  border-radius: 3px 3px 0 0;
}

.bar-track.negative .bar {
  background: #b54747;
  border-radius: 0 0 3px 3px;
}

.line-chart {
  position: relative;
  min-height: 315px;
  background:
    linear-gradient(180deg, #ffffff, #f7faf6),
    repeating-linear-gradient(0deg, transparent, transparent 55px, #edf2ee 56px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 18px 58px;
  overflow: hidden;
}

.line-chart svg {
  width: 100%;
  height: 230px;
  display: block;
}

.line-area {
  fill: rgba(23, 107, 76, 0.12);
}

.line-path {
  fill: none;
  stroke: #176b4c;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.line-chart circle {
  fill: #f7f4ed;
  stroke: #176b4c;
  stroke-width: 3;
}

.line-points {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 42px;
}

.line-points > div {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  min-width: 82px;
  font-size: 11px;
}

.line-points strong,
.line-points span {
  display: block;
}

.line-points span {
  color: var(--muted);
  margin-top: 3px;
}

.series-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

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

.series-grid article {
  border: 1px solid var(--border);
  background: white;
  padding: 18px;
  border-radius: 6px;
}

.series-grid p,
.series-grid span {
  color: var(--muted);
  font-size: 12px;
}

.series-grid h3 {
  margin: 8px 0 12px;
  font-size: 16px;
}

.series-grid strong {
  display: block;
  color: var(--green);
  margin-bottom: 8px;
}

.reports-list {
  display: grid;
  gap: 24px;
}

.report-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 24px;
}

.report-card-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.report-card-head h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.report-badge {
  align-self: start;
  border: 1px solid #cbd9cd;
  background: #edf4eb;
  color: var(--green);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.analyst-brief {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  background: #fbfaf7;
}

.analyst-brief h3 {
  max-width: 760px;
  margin: 4px 0 10px;
  font-size: 26px;
  line-height: 1.16;
}

.analyst-brief p {
  max-width: 840px;
  color: var(--muted);
  line-height: 1.62;
}

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

.brief-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--border);
  background: #fff;
}

.brief-grid h4,
.brief-actions h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
}

.brief-grid p {
  margin: 0;
  font-size: 13px;
}

.brief-actions {
  padding: 18px;
  border-left: 3px solid var(--green);
  background: #fff;
}

.brief-actions ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.brief-actions li + li {
  margin-top: 8px;
}

.brief-note {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

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

.business-reading {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #d9e2d9;
  background: #f8faf7;
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
}

.business-reading h3 {
  font-size: 16px;
}

.business-reading > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.business-reading article {
  border-left: 3px solid #8cad86;
  background: white;
  padding: 12px 14px;
}

.business-reading span {
  display: block;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 8px;
}

.business-reading strong {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}

.business-reading p,
.business-reading small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.business-reading small {
  display: block;
  margin-top: 9px;
}

.billing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.billing-plan {
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 26px;
}

.billing-plan h2 {
  margin-bottom: 16px;
}

.billing-plan > strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 36px;
  margin-bottom: 12px;
}

.billing-plan > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.muted-plan {
  background: #f7f9f8;
}

.report-columns h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.evidence-item {
  border-top: 1px solid var(--border);
  padding: 13px 0;
}

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

.evidence-item strong {
  font-size: 13px;
}

.evidence-item span {
  color: var(--green);
  font-size: 12px;
  margin-top: 5px;
}

.evidence-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.source-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  border: 1px solid #dbe3dd;
  padding: 6px 8px;
  border-radius: 4px;
}

.error-page,
.loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  text-align: center;
  padding: 30px;
}

.error-page h1 {
  font-size: 25px;
}

.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 (min-width: 1600px) {
  .hero-copy {
    padding-left: 12%;
  }

  .hero-caption {
    left: 12%;
  }
}

@media (max-width: 1050px) {
  .public-nav {
    padding: 0 5%;
  }

  .public-nav nav,
  .public-nav .nav-actions {
    gap: 20px;
  }

  .hero h2 {
    font-size: 46px;
  }

  .hero-copy {
    padding: 45px 6%;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .intro-band {
    grid-template-columns: 1fr 2fr;
  }

  .intro-band > p:last-child {
    grid-column: 2;
  }

  .workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .sidebar {
    padding: 25px 12px;
  }

  .workspace-content {
    padding: 30px 25px;
  }

  .workspace-top {
    padding: 0 25px;
  }

  .form-layout,
  .data-layout {
    gap: 25px;
    grid-template-columns: 1fr;
  }

  .context-note {
    display: none;
  }

  .metrics-grid article {
    padding: 18px;
  }

  .metrics-grid strong {
    font-size: 24px;
  }

  .auth-visual h1 {
    font-size: 34px;
  }

  .auth-main {
    padding: 32px 8%;
  }
}

@media (max-width: 820px) {
  .public-nav {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    gap: 10px 15px;
    padding-block: 14px;
  }

  .public-nav nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    font-size: 12px;
  }

  .public-nav .wordmark {
    font-size: 20px;
  }

  .public-nav .nav-actions {
    gap: 15px;
  }

  .nav-actions .button {
    padding: 9px 12px;
    min-height: 40px;
    font-size: 12px;
  }

  .nav-actions .quiet-link {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 650px;
    height: calc(100svh - 150px);
    max-height: 850px;
  }

  .hero h2 {
    font-size: 40px;
  }

  .hero-copy {
    padding: 30px 7% 65px;
  }

  .hero-copy > p:not(.overline) {
    font-size: 15px;
  }

  .hero-shade {
    background: rgba(12, 29, 21, 0.66);
  }

  .hero-caption {
    left: 7%;
    right: 7%;
    font-size: 8px;
  }

  .hero-caption span:last-child {
    display: none;
  }

  .hero-actions {
    gap: 22px;
    margin-top: 28px;
  }

  .intro-band {
    padding: 40px 7% 25px;
    display: block;
  }

  .intro-band h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding: 10px 7% 40px;
    gap: 28px;
  }

  .feature-grid article {
    padding-left: 48px;
  }

  .feature-grid article > svg {
    position: absolute;
    left: 0;
    top: 25px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 45px 7%;
  }

  .proof-grid,
  .pricing-band,
  .billing-layout,
  .dashboard-guide,
  .business-reading {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .pricing-band {
    display: grid;
    padding: 45px 7%;
  }

  .process h2 {
    font-size: 30px;
  }

  .story-split,
  .public-page-hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .story-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 28px 0 0;
  }

  .public-detail-grid,
  .brief-grid,
  .report-columns,
  .series-grid,
  .series-picker,
  .dashboard-guide ol,
  .business-reading > div:last-child {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  footer {
    flex-wrap: wrap;
    padding: 30px 7%;
  }

  footer p {
    width: 100%;
    order: 3;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-main {
    min-height: 100svh;
    padding: 30px 7%;
  }

  .auth-form-wrap {
    padding: 55px 0;
  }

  .workspace {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    display: block;
    padding: 18px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar .wordmark {
    padding: 0;
    font-size: 20px;
  }

  .org-control {
    margin-top: 16px;
    max-width: 300px;
    border: 0;
    padding: 0;
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(68px, 1fr));
    gap: 4px;
    margin-top: 15px;
    overflow: auto;
  }

  .sidebar nav a {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 12px 2px;
    font-size: 10px;
    gap: 6px;
    white-space: nowrap;
    border-radius: 0;
  }

  .sidebar nav svg {
    width: 15px;
    height: 15px;
  }

  .nav-label,
  .sidebar-bottom p {
    display: none;
  }

  .sidebar-bottom {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 0;
  }

  .sidebar-bottom button {
    font-size: 11px;
  }

  .workspace-top {
    height: 52px;
    padding: 0 20px;
    font-size: 11px;
  }

  .workspace-content {
    padding: 27px 20px 45px;
  }

  .page-heading {
    align-items: start;
    gap: 16px;
    flex-wrap: wrap;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .page-heading .button {
    min-height: 38px;
    font-size: 12px;
  }

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

  .metrics-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }

  .metrics-grid strong {
    font-size: 28px;
    margin: 10px 0;
  }

  .overview-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .overview-bottom > div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 25px 0 0;
  }

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

  .setup-progress {
    gap: 20px;
    font-size: 11px;
  }

  .validation-summary {
    flex-wrap: wrap;
    gap: 20px;
  }

  .notice {
    flex-wrap: wrap;
  }

  .notice .button {
    margin-left: 0;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .section-heading h2 {
    font-size: 16px;
  }

  .bar-chart {
    gap: 10px;
  }

  .billing-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .billing-banner .button {
    margin-left: 0;
  }

  .subscription-pill {
    display: none;
  }

  .top-sign-out {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .auth-form-wrap h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Collapsible workspace sidebar */

.workspace {
  transition: grid-template-columns 220ms ease;
}

.workspace.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.sidebar-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #657169;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.sidebar-toggle:hover:not(:disabled) {
  background: #f2f5f1;
  border-color: #c9d4cb;
  color: var(--green);
  filter: none;
}

.sidebar-toggle svg {
  width: 17px;
  height: 17px;
}

.sidebar-compact-brand {
  display: none;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.sidebar-compact-brand span {
  color: #68a569;
}

.workspace-main {
  width: 100%;
}

.workspace-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.workspace.sidebar-collapsed .sidebar {
  padding-left: 10px;
  padding-right: 10px;
}

.workspace.sidebar-collapsed .sidebar-header {
  flex-direction: column;
  gap: 14px;
}

.workspace.sidebar-collapsed .sidebar .wordmark {
  display: none;
}

.workspace.sidebar-collapsed .sidebar-compact-brand {
  display: block;
}

.workspace.sidebar-collapsed .sidebar-toggle {
  width: 38px;
}

.workspace.sidebar-collapsed .org-control {
  justify-content: center;
  padding: 12px 0;
}

.workspace.sidebar-collapsed .org-control select {
  display: none;
}

.workspace.sidebar-collapsed .org-avatar {
  width: 38px;
  height: 38px;
}

.workspace.sidebar-collapsed .nav-label {
  display: none;
}

.workspace.sidebar-collapsed .sidebar nav {
  margin-top: 24px;
}

.workspace.sidebar-collapsed .sidebar nav a {
  position: relative;
  justify-content: center;
  gap: 0;
  width: 48px;
  min-height: 46px;
  margin-inline: auto;
  padding: 0;
  border-radius: 7px;
}

.workspace.sidebar-collapsed .sidebar nav a span {
  display: none;
}

.workspace.sidebar-collapsed .sidebar nav a svg {
  width: 19px;
  height: 19px;
}

.workspace.sidebar-collapsed .sidebar nav a.active {
  background: #edf4eb;
}

.workspace.sidebar-collapsed .sidebar-bottom {
  display: grid;
  justify-items: center;
  padding-left: 0;
  padding-right: 0;
}

.workspace.sidebar-collapsed .sidebar-bottom p {
  display: none;
}

.workspace.sidebar-collapsed .sidebar-help {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
}

.workspace.sidebar-collapsed .sidebar-help span {
  display: none;
}

.workspace.sidebar-collapsed .sidebar-help svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 700px) {
  .sidebar-header {
    display: block;
    min-height: 0;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-compact-brand {
    display: none !important;
  }

  .workspace.sidebar-collapsed {
    display: block;
  }

  .workspace.sidebar-collapsed .sidebar {
    padding: 18px 16px 0;
  }

  .workspace.sidebar-collapsed .sidebar-header {
    display: block;
  }

  .workspace.sidebar-collapsed .sidebar .wordmark {
    display: inline-block;
  }

  .workspace.sidebar-collapsed .org-control {
    justify-content: flex-start;
    padding: 0;
  }

  .workspace.sidebar-collapsed .org-control select {
    display: block;
  }

  .workspace.sidebar-collapsed .org-avatar {
    width: 32px;
    height: 32px;
  }

  .workspace.sidebar-collapsed .nav-label {
    display: none;
  }

  .workspace.sidebar-collapsed .sidebar nav {
    margin-top: 15px;
  }

  .workspace.sidebar-collapsed .sidebar nav a {
    width: auto;
    min-height: initial;
    margin: 0;
    padding: 12px 2px;
  }

  .workspace.sidebar-collapsed .sidebar nav a span {
    display: inline;
  }

  .workspace.sidebar-collapsed .sidebar nav a svg {
    width: 15px;
    height: 15px;
  }

  .workspace.sidebar-collapsed .sidebar-bottom {
    display: block;
    padding: 0;
  }

  .workspace.sidebar-collapsed .sidebar-help {
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 30px;
    padding: 4px 0;
  }

  .workspace.sidebar-collapsed .sidebar-help span {
    display: inline;
  }
}

/* Production overview dashboard */

.overview-v2 {
  display: grid;
  gap: 24px;
}

.overview-v2-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 4px 0 8px;
}

.overview-v2-hero > div:first-child {
  min-width: 0;
  max-width: 900px;
}

.overview-v2-hero h1 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}

.overview-v2-summary {
  max-width: 850px;
  color: #5f6c64;
  font-size: 15px;
  line-height: 1.7;
}

.overview-v2-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.overview-v2-account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.overview-v2-account-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #b13e3e;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.overview-v2-account-links svg {
  width: 16px;
  height: 16px;
}

.overview-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(30, 52, 40, 0.045);
}

.overview-v2-stat {
  position: relative;
  min-width: 0;
  padding: 22px 22px 20px;
  border-right: 1px solid var(--border);
}

.overview-v2-stat:last-child {
  border-right: 0;
}

.overview-v2-stat.primary-stat {
  background: linear-gradient(145deg, #173a2c, #205d43);
  color: white;
}

.overview-v2-stat > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #748078;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.overview-v2-stat.primary-stat > div {
  color: #cce0d5;
}

.overview-v2-stat > div svg {
  width: 18px;
  height: 18px;
  color: #7a9b84;
}

.overview-v2-stat.primary-stat > div svg {
  color: var(--lime);
}

.overview-v2-stat > strong {
  display: block;
  margin: 18px 0 8px;
  font-family: Manrope, sans-serif;
  font-size: 31px;
  line-height: 1.08;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.overview-v2-stat.primary-stat > strong {
  color: white;
}

.overview-v2-stat > strong.positive {
  color: #1f7a4d;
}

.overview-v2-stat > strong.negative {
  color: #a64040;
}

.overview-v2-stat > small {
  display: block;
  color: #7a857e;
  font-size: 11px;
  line-height: 1.45;
}

.overview-v2-stat.primary-stat > small {
  color: #d5e3db;
}

.overview-v2-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.overview-v2-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.overview-v2-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(30, 52, 40, 0.035);
}

.overview-v2-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.overview-v2-panel-head h2 {
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}

.overview-v2-panel-head > div > p:not(.overline) {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.overview-v2-panel-head > svg {
  width: 23px;
  height: 23px;
  color: #779182;
}

.overview-v2-period-count {
  flex-shrink: 0;
  padding: 6px 9px;
  border: 1px solid #d8e3db;
  border-radius: 999px;
  background: #f4f8f4;
  color: #5d6d62;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.overview-v2-metric-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.overview-v2-metric-tabs button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #dce4de;
  border-radius: 999px;
  background: #fafcfb;
  color: #647068;
  font-size: 11px;
  font-weight: 600;
}

.overview-v2-metric-tabs button:hover:not(:disabled) {
  filter: none;
  background: #f2f6f2;
  border-color: #c6d6ca;
}

.overview-v2-metric-tabs button.active {
  background: #eaf3eb;
  border-color: #9fbea6;
  color: #1f6540;
}

.overview-trend-chart {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 10px 8px 62px;
  border: 1px solid #e1e7e2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f8faf8),
    repeating-linear-gradient(0deg, transparent, transparent 52px, #edf2ee 53px);
}

.overview-trend-chart svg {
  display: block;
  width: 100%;
  height: 235px;
  overflow: visible;
}

.overview-trend-area {
  fill: rgba(23, 107, 76, 0.1);
}

.overview-trend-line {
  fill: none;
  stroke: #176b4c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-trend-chart circle {
  fill: white;
  stroke: #176b4c;
  stroke-width: 3;
}

.overview-trend-labels {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  align-items: end;
}

.overview-trend-labels > div {
  text-align: center;
  min-width: 0;
}

.overview-trend-labels span,
.overview-trend-labels strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-trend-labels span {
  color: #87928b;
  font-size: 10px;
}

.overview-trend-labels strong {
  margin-top: 4px;
  color: #35463b;
  font-size: 11px;
}

.overview-v2-empty {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.overview-v2-empty > svg {
  width: 34px;
  height: 34px;
  color: #88a08e;
  margin-bottom: 16px;
}

.overview-v2-empty h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.overview-v2-empty p {
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
}

.overview-v2-reading {
  background: linear-gradient(160deg, #fbfcfb, #f2f6f2);
}

.overview-v2-reading-copy {
  color: #536159;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.overview-v2-findings {
  display: grid;
  gap: 10px;
}

.overview-v2-finding {
  position: relative;
  padding: 14px 15px 14px 17px;
  border: 1px solid #dfe6e0;
  border-left: 3px solid #7d9a83;
  border-radius: 6px;
  background: white;
}

.overview-v2-finding.opportunity {
  border-left-color: #4b8b68;
}

.overview-v2-finding.signal {
  border-left-color: #527b91;
}

.overview-v2-finding.risk {
  border-left-color: #b06b56;
}

.overview-v2-finding.focus {
  border-left-color: #9b6a3d;
}

.overview-v2-finding > span {
  display: block;
  margin-bottom: 7px;
  color: #6f7c73;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.overview-v2-finding > strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.overview-v2-finding > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.overview-v2-no-findings {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px dashed #ced9d0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.overview-v2-no-findings svg {
  width: 19px;
  height: 19px;
  color: #5c8767;
  margin-top: 1px;
}

.overview-v2-no-findings p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.overview-v2-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.overview-v2-context > div {
  display: block;
  padding: 13px 0;
  border-top: 1px solid #edf0ed;
}

.overview-v2-context > div:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.overview-v2-context dt {
  margin-bottom: 4px;
  color: #87918a;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.overview-v2-context dd {
  margin: 0;
  color: #2b3a30;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.overview-v2-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.overview-v2-health > div {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid #e3e8e4;
  border-radius: 7px;
  background: #f9fbf9;
  text-align: center;
}

.overview-v2-health strong {
  display: block;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.overview-v2-health span {
  display: block;
  margin-top: 5px;
  color: #7d8880;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1200px) {
  .overview-v2-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-v2-stat:nth-child(2) {
    border-right: 0;
  }

  .overview-v2-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .overview-v2-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-v2-reading {
    display: block;
  }
}

@media (max-width: 820px) {
  .overview-v2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-v2-actions {
    justify-content: flex-start;
  }

  .overview-v2-bottom {
    grid-template-columns: 1fr;
  }

  .overview-v2-context {
    grid-template-columns: 1fr;
  }

  .overview-v2-context > div:nth-child(2) {
    border-top: 1px solid #edf0ed;
    padding-top: 13px;
  }

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

@media (max-width: 700px) {
  .overview-v2 {
    gap: 16px;
  }

  .overview-v2-hero {
    padding-top: 2px;
    gap: 18px;
  }

  .overview-v2-hero h1 {
    font-size: 29px;
  }

  .overview-v2-summary {
    font-size: 13px;
  }

  .overview-v2-actions {
    width: 100%;
  }

  .overview-v2-actions .button {
    flex: 1;
    min-width: 0;
  }

  .overview-v2-stats {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .overview-v2-stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px;
  }

  .overview-v2-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .overview-v2-stat:last-child {
    border-bottom: 0;
  }

  .overview-v2-stat > strong {
    font-size: 27px;
    margin: 12px 0 6px;
  }

  .overview-v2-panel {
    padding: 18px;
    border-radius: 8px;
  }

  .overview-v2-panel-head {
    gap: 12px;
    margin-bottom: 16px;
  }

  .overview-v2-panel-head h2 {
    font-size: 18px;
  }

  .overview-trend-chart {
    min-height: 280px;
    padding-bottom: 56px;
  }

  .overview-trend-chart svg {
    height: 205px;
  }

  .overview-trend-labels {
    overflow-x: auto;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  }

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

@media (max-width: 430px) {
  .overview-v2-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .overview-v2-health {
    grid-template-columns: 1fr 1fr;
  }

  .overview-trend-labels strong {
    font-size: 10px;
  }
}

/* ==========================================================
   PRODUCTION BILLING WORKSPACE
   ========================================================== */

.billing-v2 {
  display: grid;
  gap: 24px;
}

.billing-v2-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #f8faf7 0%, #ffffff 64%);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(24, 42, 31, 0.035);
}

.billing-v2-hero > div {
  min-width: 0;
  max-width: 820px;
}

.billing-v2-hero h1 {
  margin: 4px 0 10px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.billing-v2-hero > div > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.billing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.billing-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa39d;
}

.billing-status.active {
  border-color: #bcd9c4;
  background: #edf7ef;
  color: #1f6b41;
}

.billing-status.active > span {
  background: #3f8a5b;
}

.billing-status.trial {
  border-color: #cfd9e8;
  background: #f3f6fb;
  color: #45627f;
}

.billing-status.trial > span {
  background: #5d7d9d;
}

.billing-status.pending,
.billing-status.warning {
  border-color: #e7d4a7;
  background: #fff9eb;
  color: #8a651d;
}

.billing-status.pending > span,
.billing-status.warning > span {
  background: #c6962f;
}

.billing-status.danger {
  border-color: #e6c1bd;
  background: #fff3f1;
  color: #9a3d35;
}

.billing-status.danger > span {
  background: #b34c42;
}

.billing-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.billing-plan-card,
.billing-summary-card,
.billing-history-card,
.billing-test-panel {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(24, 42, 31, 0.04);
}

.billing-plan-card {
  padding: 30px;
}

.billing-plan-top,
.billing-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.billing-plan-top h2,
.billing-card-heading h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.3;
}

.billing-plan-chip {
  border: 1px solid #d7e0d7;
  background: #f7faf6;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.billing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 24px 0 12px;
}

.billing-price-row strong {
  font-family: Manrope, sans-serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.billing-price-row span {
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.billing-plan-description {
  max-width: 700px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.billing-feature-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.billing-feature-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.billing-feature-row > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #f2f7f1;
  color: var(--green);
}

.billing-feature-row svg {
  width: 15px;
  height: 15px;
}

.billing-feature-row p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.billing-plan-actions {
  display: grid;
  gap: 13px;
}

.billing-primary-action {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.billing-secondary-action {
  width: 100%;
  justify-content: center;
  min-height: 42px;
}

.billing-active-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #c8dfcd;
  background: #f2f8f3;
  border-radius: 8px;
  color: #1f6b41;
}

.billing-active-confirmation svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.billing-active-confirmation strong,
.billing-active-confirmation span {
  display: block;
}

.billing-active-confirmation strong {
  font-size: 13px;
  margin-bottom: 3px;
}

.billing-active-confirmation span {
  font-size: 12px;
  color: #55705e;
}

.billing-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.billing-security-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--green);
}

.billing-side-stack {
  display: grid;
  gap: 24px;
}

.billing-summary-card {
  padding: 24px;
  min-width: 0;
}

.billing-card-heading > svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.billing-status-description {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.billing-summary-list {
  display: grid;
  margin: 0;
}

.billing-summary-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.billing-summary-list dt {
  color: var(--muted);
  font-size: 12px;
}

.billing-summary-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.billing-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.billing-usage-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  background: #fafbf9;
  border-radius: 8px;
}

.billing-usage-item span,
.billing-usage-item small {
  display: block;
  color: var(--muted);
}

.billing-usage-item span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.billing-usage-item strong {
  display: block;
  margin: 7px 0 5px;
  font-family: Manrope, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.billing-usage-item small {
  font-size: 10px;
  line-height: 1.35;
}

.billing-history-card {
  padding: 26px;
}

.billing-empty-history {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 20px;
  border: 1px dashed #ccd7ce;
  background: #fafbf9;
  border-radius: 8px;
}

.billing-empty-history > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #7c8b80;
}

.billing-empty-history strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.billing-empty-history p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.billing-history-error {
  border-color: #e3c4c0;
  background: #fdf7f6;
}

.billing-history-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.billing-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.billing-history-table th,
.billing-history-table td {
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.billing-history-table th {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.billing-history-table .billing-payment-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.billing-history-table th:last-child {
  text-align: right;
}

.billing-payment-reference {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
}

.billing-payment-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e4f2e6;
  color: #1f6b41;
  font-size: 11px;
  font-weight: 700;
}

.billing-test-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: #fffaf0;
  border-color: #ead9b3;
}

.billing-test-panel strong {
  display: block;
  margin: 3px 0 4px;
  font-size: 13px;
}

.billing-test-panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.billing-page-message {
  min-height: 18px;
  margin: 0;
}

/* Billing confirmation modal */

.billing-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
}

.billing-dialog::backdrop {
  background: rgba(13, 24, 18, 0.58);
  backdrop-filter: blur(3px);
}

.billing-dialog-card {
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(13, 24, 18, 0.28);
}

.billing-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.billing-dialog-head h2 {
  margin-top: 4px;
  font-size: 23px;
  line-height: 1.28;
}

.billing-dialog-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
}

.billing-dialog-close:hover:not(:disabled) {
  background: #f5f7f4;
  color: var(--ink);
  filter: none;
}

.billing-dialog-close svg {
  width: 17px;
  height: 17px;
}

.billing-dialog-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
  padding: 18px;
  border-radius: 9px;
  background: #f4f8f3;
  border: 1px solid #d6e2d7;
}

.billing-dialog-plan span,
.billing-dialog-plan strong {
  display: block;
}

.billing-dialog-plan span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.billing-dialog-plan strong {
  font-family: Manrope, sans-serif;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.billing-dialog-plan > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--green);
}

.billing-dialog-features {
  display: grid;
  gap: 10px;
}

.billing-dialog-features > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.billing-dialog-features svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--green);
}

.billing-dialog-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.billing-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.billing-dialog-actions .primary,
.billing-dialog-actions .secondary {
  min-height: 42px;
}

/* Billing responsiveness */

@media (max-width: 1100px) {
  .billing-v2-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .billing-v2 {
    gap: 18px;
  }

  .billing-v2-hero {
    padding: 22px;
    flex-direction: column;
  }

  .billing-v2-hero h1 {
    font-size: 28px;
  }

  .billing-status {
    align-self: flex-start;
  }

  .billing-v2-grid {
    gap: 18px;
  }

  .billing-plan-card,
  .billing-summary-card,
  .billing-history-card {
    padding: 20px;
  }

  .billing-side-stack {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .billing-usage-grid {
    grid-template-columns: 1fr;
  }

  .billing-summary-list > div {
    align-items: flex-start;
  }

  .billing-test-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-test-panel .secondary {
    width: 100%;
    justify-content: center;
  }

  .billing-dialog-card {
    padding: 20px;
  }

  .billing-dialog-actions {
    flex-direction: column-reverse;
  }

  .billing-dialog-actions .primary,
  .billing-dialog-actions .secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .billing-v2-hero h1 {
    font-size: 25px;
  }

  .billing-plan-top {
    flex-direction: column;
  }

  .billing-price-row strong {
    font-size: 36px;
  }

  .billing-summary-list > div {
    display: grid;
    gap: 5px;
  }

  .billing-summary-list dd {
    text-align: left;
  }

  .billing-empty-history {
    align-items: flex-start;
  }

  .billing-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .billing-dialog-card {
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .billing-dialog-head h2 {
    font-size: 20px;
  }
}
/* ==========================================================
   BIZNORYX MOBILE WORKSPACE HARDENING — 2026-09
   Mobile-only. Desktop workspace behavior remains unchanged.
   ========================================================== */

@media (max-width: 700px) {
  /*
   * Six workspace destinations cannot fit safely in one
   * phone-width row. Use a deliberate 3 x 2 navigation grid.
   */
  .sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    width: 100%;
  }

  .sidebar nav a,
  .workspace.sidebar-collapsed .sidebar nav a {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    margin: 0;
    padding: 9px 6px;
    gap: 6px;

    justify-content: center;
    align-items: center;

    white-space: normal;
    text-align: center;
    line-height: 1.2;

    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;

    border-radius: 6px;
  }

  .sidebar nav a span,
  .workspace.sidebar-collapsed .sidebar nav a span {
    display: block;
    width: 100%;
    min-width: 0;

    white-space: normal;
    text-align: center;
    line-height: 1.2;

    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .sidebar nav a svg,
  .workspace.sidebar-collapsed .sidebar nav a svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
  }

  .sidebar nav a.active,
  .workspace.sidebar-collapsed .sidebar nav a.active {
    border-radius: 6px;
  }

  /*
   * Protect every workspace page from accidental horizontal
   * expansion by a wide card, table, chart or long value.
   */
  .workspace,
  .workspace-main,
  .workspace-content {
    min-width: 0;
    max-width: 100%;
  }

  .workspace-main,
  .workspace-content {
    overflow-x: clip;
  }

  /*
   * Allow reusable cards and grid children to actually shrink.
   * min-width:auto on grid/flex children is a common source of
   * mobile overflow.
   */
  .workspace-content section,
  .workspace-content article,
  .workspace-content > div {
    min-width: 0;
  }

  /*
   * Keep monetary and metric text readable instead of breaking
   * numbers into a vertical stack.
   */
  .metrics-grid strong,
  .overview-v2-stat > strong,
  .billing-plan > strong {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 380px) {
  /*
   * Small phones need slightly tighter navigation typography,
   * but still retain readable labels and touch targets.
   */
  .sidebar nav a,
  .workspace.sidebar-collapsed .sidebar nav a {
    min-height: 58px;
    padding-inline: 4px;
    font-size: 9.5px;
  }
}

.billing-nonrenewing-confirmation {
  border-color: #ead9b3;
  background: #fffaf0;
  color: #856315;
}
/* ==========================================================
   BIZNORYX MOBILE WORKSPACE NAVIGATION V2
   ========================================================== */

@media (max-width: 700px) {
  .workspace {
    display: block;
  }

  /*
 * Compact mobile workspace masthead.
 */
  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    padding: 14px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 45, 31, 0.035);
    z-index: 20;
  }

  .sidebar-header,
  .workspace.sidebar-collapsed .sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
  }

  .sidebar .wordmark,
  .workspace.sidebar-collapsed .sidebar .wordmark {
    display: inline-flex !important;
    padding: 0;
    font-size: 21px;
  }

  .sidebar-compact-brand {
    display: none !important;
  }

  /*
 * Real mobile menu toggle.
 */
  .sidebar-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid #d8e1da;
    border-radius: 8px;
    background: #f8faf8;
    color: #425249;
  }

  .sidebar-toggle:hover:not(:disabled) {
    background: #eef4ef;
    border-color: #bfd0c2;
    color: var(--green);
    filter: none;
  }

  .sidebar-toggle svg {
    width: 19px;
    height: 19px;
  }

  /*
 * Keep the selected business visible while the navigation
 * itself is minimized.
 */
  .org-control,
  .workspace.sidebar-collapsed .org-control {
    display: flex;
    justify-content: flex-start;
    max-width: none;
    margin-top: 11px;
    padding: 10px 0 0;
    border-top: 1px solid #edf1ed;
    border-bottom: 0;
  }

  .org-control select,
  .workspace.sidebar-collapsed .org-control select {
    display: block;
    min-height: 38px;
    padding: 7px 2px;
    background: transparent;
    font-size: 12px;
  }

  .org-avatar,
  .workspace.sidebar-collapsed .org-avatar {
    width: 34px;
    height: 34px;
  }

  /*
 * Collapsed mobile state.
 */
  .workspace .nav-label,
  .workspace .sidebar nav,
  .workspace .sidebar-bottom {
    display: none !important;
  }

  /*
 * Expanded workspace navigation.
 */
  .workspace.mobile-nav-open .nav-label {
    display: block !important;
    margin: 18px 2px 9px;
    color: #8a958d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .workspace.mobile-nav-open .sidebar nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 0;
    overflow: visible;
  }

  .workspace.mobile-nav-open .sidebar nav a,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    min-height: 72px;
    margin: 0;
    padding: 10px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #68736c;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .workspace.mobile-nav-open .sidebar nav a svg,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar nav a svg {
    width: 18px;
    height: 18px;
  }

  .workspace.mobile-nav-open .sidebar nav a span,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar nav a span {
    display: inline;
  }

  .workspace.mobile-nav-open .sidebar nav a:hover {
    border-color: #dce5de;
    background: #f7faf7;
  }

  .workspace.mobile-nav-open .sidebar nav a.active {
    border-color: #d5e2d7;
    background: #edf4eb;
    color: #215f3b;
    font-weight: 700;
  }

  /* Keep support inside the expanded mobile navigation. */
  .workspace.mobile-nav-open .sidebar-bottom,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar-bottom {
    display: grid !important;
    position: static;
    top: auto;
    right: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 0 2px;
    border-top: 1px solid #edf1ed;
  }

  .workspace.mobile-nav-open .sidebar-bottom p {
    display: none !important;
  }

  .workspace.mobile-nav-open .sidebar-help,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar-help {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: auto;
    min-height: 42px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #dce4de;
    border-radius: 7px;
    background: #fff;
    color: #58655d;
    font-size: 11px;
    font-weight: 600;
  }

  .workspace.mobile-nav-open .sidebar-help:hover {
    background: #edf5ee;
    border-color: #c5d7c8;
    color: var(--green);
  }

  .workspace.mobile-nav-open .sidebar-help span,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar-help span {
    display: inline;
  }

  .workspace.mobile-nav-open .sidebar-help svg {
    width: 16px;
    height: 16px;
  }

  /* Keep sign-out beside the profile on every screen size. */
  .workspace-top {
    height: 54px;
    padding: 0 16px;
  }

  .workspace-top > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
  }

  .workspace-top-actions {
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .workspace-top .top-sign-out {
    display: inline-flex;
  }

  .account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  /*
 * Ignore desktop sidebar-collapse persistence when rendered
 * at mobile width.
 */
  .workspace.sidebar-collapsed {
    display: block;
  }

  .workspace.sidebar-collapsed .sidebar {
    padding: 14px 16px 12px;
  }
}

@media (max-width: 360px) {
  .workspace.mobile-nav-open .sidebar-bottom {
    grid-template-columns: 1fr;
  }

  .workspace.mobile-nav-open .sidebar nav {
    gap: 5px;
  }
}

/* ==========================================================
   BIZNORYX ACCOUNT DATA ONBOARDING
   ========================================================== */

.policy-gate {
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(circle at 12% 15%, rgba(46, 91, 62, 0.08), transparent 31%),
    #f3f5f2;
}

.policy-gate-card {
  display: grid;
  grid-template-columns: minmax(245px, 310px) minmax(0, 1fr);
  width: min(1180px, 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dce3dd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(30, 48, 36, 0.09);
}

.policy-gate-rail {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #173c29;
  color: #f7faf7;
}

.policy-gate-rail .wordmark {
  align-self: flex-start;
  color: #fff;
}

.policy-gate-rail > div:nth-of-type(1) {
  margin: auto 0;
}

.policy-gate-rail .overline {
  color: #9fc7aa;
}

.policy-gate-rail h1 {
  max-width: 240px;
  margin: 12px 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.policy-gate-rail p {
  max-width: 250px;
  color: #c9d9ce;
  line-height: 1.65;
}

.policy-progress {
  display: grid;
  gap: 10px;
  margin: 28px 0 22px;
}

.policy-progress span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #8fa79a;
  font-size: 12px;
}

.policy-progress span.active {
  color: #fff;
}

.policy-progress strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 10px;
}

.policy-progress .active strong {
  border-color: #9fc7aa;
  background: #25573b;
}

.policy-sign-out {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9cbbf;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.policy-sign-out svg {
  width: 15px;
  height: 15px;
}

.policy-gate-main {
  padding: clamp(30px, 5vw, 70px);
}

.policy-step {
  width: min(790px, 100%);
  margin: 0 auto;
}

.policy-step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.policy-step-heading h2 {
  max-width: 650px;
  margin: 7px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.policy-version {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #dfe6e0;
  border-radius: 999px;
  background: #f7f9f7;
  color: #718078;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-lead {
  max-width: 760px;
  margin: 0 0 27px;
  color: #59665e;
  font-size: 14px;
  line-height: 1.7;
}

.policy-notice-grid {
  display: grid;
  gap: 8px;
}

.policy-notice-grid details {
  border: 1px solid #e0e6e1;
  border-radius: 10px;
  background: #fbfcfb;
}

.policy-notice-grid summary {
  padding: 15px 17px;
  color: #263a2d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.policy-notice-grid details > div {
  padding: 0 17px 16px;
  color: #5e6962;
  font-size: 12px;
  line-height: 1.7;
}

.policy-notice-grid details p {
  margin: 0 0 10px;
}

.policy-notice-grid details p:last-child {
  margin-bottom: 0;
}

.policy-checks {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.policy-checks label,
.policy-guide-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #e1e7e2;
  border-radius: 9px;
  background: #fff;
  color: #37453d;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.policy-checks input,
.policy-guide-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #27613e;
}

.policy-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf0ed;
}

.policy-actions > span {
  max-width: 390px;
  color: #7a867f;
  font-size: 10px;
  line-height: 1.55;
}

.policy-actions button {
  min-height: 44px;
}

.data-guide-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.data-guide-rules article {
  display: flex;
  gap: 13px;
  padding: 17px;
  border: 1px solid #e0e6e1;
  border-radius: 11px;
  background: #fbfcfb;
}

.data-guide-rules article > span {
  flex: 0 0 auto;
  color: #789181;
  font-size: 10px;
  font-weight: 800;
}

.data-guide-rules h3 {
  margin: 0 0 5px;
  color: #283a30;
  font-size: 13px;
}

.data-guide-rules p {
  margin: 0;
  color: #68736c;
  font-size: 11px;
  line-height: 1.55;
}

.series-example {
  padding: 19px;
  border: 1px solid #d6e2d8;
  border-radius: 12px;
  background: #f4f8f4;
}

.series-example-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.series-example-head h3 {
  margin: 3px 0 0;
  font-size: 19px;
}

.series-example-head > span {
  color: #4f6e5a;
  font-size: 10px;
  font-weight: 700;
}

.series-periods {
  display: grid;
  gap: 7px;
}

.series-periods > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dee8df;
  border-radius: 8px;
  background: #fff;
}

.series-periods strong {
  font-size: 11px;
}

.series-periods code {
  overflow: auto;
  color: #55645a;
  font-size: 10px;
  white-space: nowrap;
}

.series-separation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.series-separation > div {
  padding: 12px;
  border: 1px solid #e2e7e3;
  border-radius: 8px;
}

.series-separation strong,
.series-separation span {
  display: block;
}

.series-separation strong {
  color: #33453a;
  font-size: 11px;
}

.series-separation span {
  margin-top: 4px;
  color: #879188;
  font-size: 10px;
}

.production-upload-note {
  display: flex;
  gap: 12px;
  margin: 15px 0;
  padding: 14px 15px;
  border-left: 3px solid #44795a;
  background: #f7f9f7;
}

.production-upload-note > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #35694a;
}

.production-upload-note strong {
  display: block;
  color: #324339;
  font-size: 11px;
}

.production-upload-note p {
  margin: 4px 0 0;
  color: #67726b;
  font-size: 10px;
  line-height: 1.55;
}

.policy-guide-check {
  margin-top: 14px;
}

@media (max-width: 820px) {
  .policy-gate {
    padding: 0;
  }

  .policy-gate-card {
    display: block;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .policy-gate-rail {
    padding: 20px;
  }

  .policy-gate-rail > div:nth-of-type(1) {
    margin: 26px 0 18px;
  }

  .policy-gate-rail h1 {
    max-width: none;
    font-size: 27px;
  }

  .policy-gate-rail p {
    max-width: none;
  }

  .policy-progress {
    grid-template-columns: 1fr 1fr;
    margin: 10px 0 18px;
  }

  .policy-gate-main {
    padding: 28px 18px 40px;
  }

  .policy-step-heading {
    display: block;
  }

  .policy-version {
    display: inline-block;
    margin-top: 12px;
  }

  .data-guide-rules {
    grid-template-columns: 1fr;
  }

  .series-separation {
    grid-template-columns: 1fr;
  }

  .series-periods > div {
    grid-template-columns: 1fr;
  }

  .policy-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-actions button {
    width: 100%;
  }
}
/* Reviewed records use the workspace's existing type and colour tokens. */
.br-navigation{display:flex;flex-wrap:wrap;gap:1.25rem;margin:0 0 1.5rem;padding:.75rem 0;border-bottom:1px solid #dce3e9}
.br-navigation a{color:inherit;text-decoration:underline;text-underline-offset:5px}
.br-panel{padding:1.5rem 0;max-width:1100px}
.br-panel h2,.br-panel h3{margin-top:2rem}
.br-panel form{margin:1rem 0;max-width:900px}
.br-panel button{max-width:100%;white-space:normal}
.br-panel p,.br-panel h1,.br-panel h2,.br-panel h3{overflow-wrap:anywhere}
.br-form-grid>label{min-width:0}
.br-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.br-panel label{display:flex;flex-direction:column;gap:.4rem;margin:.7rem 0}
.br-panel input,.br-panel select{max-width:100%;min-width:0;padding:.65rem;border:1px solid #ccd6df;border-radius:5px;background:#fff;color:#172a3a}
.br-panel .br-check{display:flex;flex-direction:row;align-items:flex-start;gap:.6rem}
.br-panel .br-check > input[type="checkbox"]{flex:none;width:1rem;height:1rem;min-height:0;padding:0;margin:.125rem 0 0}
.br-table-scroll{overflow:auto;max-height:520px;border:1px solid #dce3e9;border-radius:5px;margin:1rem 0}
.br-table-scroll table{width:100%;border-collapse:collapse;font-size:.88rem}
.br-table-scroll th,.br-table-scroll td{padding:.8rem;text-align:left;vertical-align:top;border-bottom:1px solid #e3e9ee;overflow-wrap:anywhere}
.br-table-scroll th{background:#f3f6f8;position:sticky;top:0;z-index:1}
.br-table-scroll td small,.br-table-scroll td a{display:block;margin-top:.25rem}
.br-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem;margin:1.5rem 0}
.br-totals div{display:block;border-top:2px solid #1b536d;padding:.8rem 0;min-width:0}
.br-totals dt{font-size:.82rem;color:#526576}
.br-totals dd{width:auto;max-width:100%;margin:.5rem 0;text-align:left;font-size:1.1rem;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.br-note{color:#526576;line-height:1.65;font-size:.9rem}
.br-hash{font:12px/1.6 monospace;overflow-wrap:anywhere}
.br-panel [role="alert"]{color:#8b2924}
@media(max-width:640px){.br-form-grid{grid-template-columns:1fr}.br-panel{padding:1rem 0}.br-navigation{gap:.8rem;font-size:.9rem}.br-totals{grid-template-columns:1fr}}

.billing-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  margin-block: 1rem 1.5rem;
}

.billing-tier-grid article {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
}

.billing-tier-grid article.recommended-plan {
  border-width: 2px;
}

.billing-tier-grid h3,
.billing-tier-grid p {
  margin: 0;
}

.billing-tier-grid strong {
  font-size: 1.5rem;
}

.billing-tier-grid button {
  margin-top: 0.5rem;
}

/* Public landing page */
.landing-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: 8%;
  background: #edf2ed;
  border-bottom: 1px solid var(--border);
}

.landing-index a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.15rem 0.75rem 1.15rem 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-index a span {
  color: var(--ink);
}

.landing-index a:hover span,
.landing-index a:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.landing-section {
  padding: clamp(3.5rem, 7vw, 7rem) 8%;
  scroll-margin-top: 5rem;
}

.landing-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.landing-introduction {
  max-width: 44rem;
}

.landing-introduction h2 {
  margin: 0.6rem 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.12;
  text-wrap: balance;
}

.landing-introduction p:not(.overline) {
  max-width: 38rem;
  color: #526159;
  font-size: 1.05rem;
  line-height: 1.7;
}

.landing-introduction p + p {
  margin-top: 0.85rem;
}

.landing-import {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d2ded4;
  border-radius: 0.65rem;
  background: white;
  box-shadow: 0 12px 28px #203b2d0d;
}

.landing-import figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem;
  background: #e7efe6;
}

.landing-import figcaption strong {
  font-size: 1.25rem;
}

.landing-import ol {
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
}

.landing-import li,
.landing-rhythm-list article {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1.15rem;
}

.landing-import li + li {
  border-top: 1px solid var(--border);
}

.landing-import li > span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  padding-top: 0.2rem;
}

.landing-import h3,
.landing-rhythm-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.landing-import li p,
.landing-columns p {
  color: #526159;
  line-height: 1.6;
}

.landing-evidence {
  border-top: 1px solid var(--border);
  background: #fff;
}

.landing-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3.5rem);
  margin-top: 2.75rem;
}

.landing-columns article {
  padding-top: 1.4rem;
  border-top: 2px solid #c9dacd;
}

.landing-columns svg,
.landing-rhythm-list svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

.landing-columns svg {
  color: var(--green);
  margin-bottom: 1rem;
}

.landing-columns h3 {
  margin-bottom: 0.5rem;
}

/* Supporting photo also used on Solutions: Unsplash photo-1450101499163-c8848c66ca85. */
.landing-rhythm {
  background:
    linear-gradient(90deg, rgba(16, 40, 29, 0.82), rgba(16, 40, 29, 0.94)),
    url("/business-records.jpg") center / cover,
    #1d392d;
  color: #fff;
}

.landing-rhythm .overline,
.landing-rhythm-list svg {
  color: var(--lime);
}

.landing-rhythm .landing-introduction p:not(.overline),
.landing-rhythm-list article p:not(.overline) {
  color: #dce8df;
  line-height: 1.6;
}

.landing-rhythm-list article {
  border-top: 1px solid #51695b;
}

.landing-rhythm-list article .overline {
  margin-bottom: 0.35rem;
}

.landing-plans .billing-tier-grid {
  margin-block: 2rem 1.5rem;
}

.landing-plans .billing-tier-grid article {
  gap: 0.75rem;
  padding: 1.35rem;
  border-color: #ccd8cf;
  background: #fff;
}

.landing-plans .billing-tier-grid article.recommended-plan {
  border-color: var(--green);
}

.landing-next .button {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .landing-section {
    scroll-margin-top: 7.5rem;
  }

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

  .landing-index a {
    padding-block: 0.8rem;
  }

  .landing-split,
  .landing-columns {
    grid-template-columns: 1fr;
  }

  .landing-columns {
    margin-top: 2rem;
  }
}
/* BIZNORYX source-file deletion */
.source-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #e2baba;
  border-radius: 8px;
  background: #fff;
  color: #a12727;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.source-delete-button:hover {
  background: #fff2f2;
  border-color: #b13a3a;
}
.source-delete-button:focus-visible {
  outline: 3px solid #b13a3a;
  outline-offset: 2px;
}
.source-delete-button:disabled {
  opacity: .5;
  cursor: wait;
}


/* Personal account controls live outside business performance views. */
.account-avatar-link {
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.account-avatar-link:hover,
.account-avatar-link[aria-current="page"] {
  background: #dce9de;
  box-shadow: inset 0 0 0 1px #aac9b4;
}

.sidebar-account-link {
  margin-bottom: 9px;
  background: #fff;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.account-settings-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

.account-settings-card[hidden] {
  display: none;
}

.account-settings-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-settings-card-heading > svg {
  color: var(--green);
  width: 22px;
  height: 22px;
}

.account-settings-card-heading h2 {
  font-size: 18px;
}

.account-settings-card-heading .overline {
  margin: 0 0 4px;
}

.account-settings-card > p {
  color: var(--muted);
  font-size: 13px;
}

.account-settings-card .button {
  justify-self: start;
}

.account-settings-details {
  display: grid;
  gap: 15px;
  margin: 0;
}

.account-settings-details div {
  display: grid;
  gap: 4px;
}

.account-settings-details dt {
  font-size: 12px;
  color: var(--muted);
}

.account-settings-details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-settings-privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.account-settings-privacy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #9a3e3e;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}

.account-settings-privacy svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 780px) {
  .account-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-settings-card {
    padding: 20px;
  }
}

.account-settings-notice {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid #bcd5c1;
  border-radius: 6px;
  background: #f2f8f2;
  color: #215c3e;
  font-size: 13px;
}

.account-settings-notice-error {
  border-color: #e4c9c9;
  background: #fcf7f7;
  color: #8b3c3c;
}

/* ==================================================
   BIZNORYX EMERALD FOUNDATION V1

   Scope: Authenticated workspace and Overview.

   Principles:
   - Retain existing BIZNORYX branding
   - Improve typography and readability
   - Introduce restrained, premium surfaces
   - Preserve layouts, data, and functionality
   ================================================== */

.workspace {
  --emerald-border: #dfe8e1;
}

/* Workspace background: deliberately subtle */

.workspace-main {
  background:
    radial-gradient(
      560px 340px at 95% 0%,
      rgba(23, 107, 76, 0.065),
      transparent 75%
    ),
    linear-gradient(
      180deg,
      #f8faf8 0%,
      #f4f7f5 58%,
      #f8faf9 100%
    );
}

.workspace-top {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--emerald-border);
}

/* More readable workspace navigation */

.workspace .sidebar nav a {
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.workspace .sidebar nav a.active {
  background: #eaf3ed;
  color: #175b40;
  font-weight: 700;
}

.workspace .nav-label {
  font-size: 11px;
  color: #65766b;
  font-weight: 700;
  letter-spacing: 0.055em;
}

/* Editorial-style Overview introduction */

.workspace .overview-v2-hero {
  padding: clamp(20px, 2.3vw, 30px);
  border: 1px solid #d9e7dc;
  border-radius: 14px;
  background:
    radial-gradient(
      460px 240px at 100% 0%,
      rgba(23, 107, 76, 0.095),
      transparent 80%
    ),
    linear-gradient(
      120deg,
      #ffffff 0%,
      #f4faf5 100%
    );
}

.workspace .overview-v2-hero h1 {
  font-size: clamp(29px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.workspace .overview-v2-summary {
  color: #4e6355;
  font-size: 15px;
  line-height: 1.65;
}

/* Elevated but restrained financial panels */

.workspace .overview-v2-panel {
  border-color: #dce7df;
  border-radius: 12px;
  box-shadow:
    0 8px 28px rgba(17, 57, 37, 0.04);
}

.workspace .overview-v2-stat.primary-stat {
  background:
    linear-gradient(
      135deg,
      #163f2e 0%,
      #176b4c 100%
    );
}

/* Stronger numerical hierarchy */

.workspace .overview-v2-stat > strong {
  font-size: clamp(28px, 2.4vw, 34px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.workspace .overview-v2-stat > div {
  font-size: 12px;
}

.workspace .overview-v2-stat > small {
  font-size: 12px;
  line-height: 1.5;
}

.workspace .overview-v2-panel-head > div > p:not(.overline) {
  font-size: 13px;
}

.workspace .overview-v2-period-count {
  font-size: 11px;
}

/* Findings and financial context */

.workspace .overview-v2-finding > span {
  font-size: 11px;
  color: #566f5d;
}

.workspace .overview-v2-finding > p {
  font-size: 13px;
  line-height: 1.6;
}

.workspace .overview-v2-context dt,
.workspace .overview-v2-health span {
  font-size: 11px;
}

/* Preserve the existing responsive structure */

@media (max-width: 700px) {
  .workspace .overview-v2-hero {
    padding: 20px;
  }

  .workspace .overview-v2-summary {
    font-size: 14px;
  }

  .workspace.mobile-nav-open .sidebar nav a {
    font-size: 11px;
  }
}

/* Respect accessibility motion preferences */

@media (prefers-reduced-motion: reduce) {
  .workspace .sidebar nav a {
    transition: none;
  }
}

/* END BIZNORYX EMERALD FOUNDATION V1 */

/* =================================================
   BIZNORYX EMERALD OVERVIEW V2

   Scope: authenticated Overview only.

   Design priorities:
   1. Mobile financial information density
   2. Useful, compact empty states
   3. Consistent financial typography
   4. Restrained premium surfaces

   No changes to application calculations.
   ================================================= */

/* Financial performance labels */

/* Subtle financial-panel refinement */

.workspace .overview-v2-reading {
  background: linear-gradient(
    155deg,
    #ffffff 0%,
    #f3f8f4 100%
  );
}

.workspace .overview-v2-reading-copy {
  color: #4c6253;
  line-height: 1.65;
}

/* Reduce unnecessary space when trend history is absent.
   Populated charts remain unchanged. */

.workspace .overview-v2-empty {
  min-height: 205px;
  padding: 22px 20px;
}

.workspace .overview-v2-empty > svg {
  width: 29px;
  height: 29px;
  margin-bottom: 11px;
}

.workspace .overview-v2-empty h3 {
  margin-bottom: 7px;
}

.workspace .overview-v2-empty p {
  max-width: 410px;
  font-size: 13px;
  line-height: 1.6;
}

/* Make the next meaningful action easier to discover */

.workspace .overview-v2-empty .inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  margin-top: 17px;
  border: 1px solid #c5dccb;
  border-radius: 7px;
  background: #eff7f1;
  color: #176b4c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.workspace .overview-v2-empty .inline-link:hover {
  background: #e5f1e8;
  border-color: #9dc5aa;
}

/* Financial reading: clearer hierarchy without
   adding artificial or decorative business data */

.workspace .overview-v2-finding {
  border-radius: 7px;
  border-top-color: #e1eae3;
  border-right-color: #e1eae3;
  border-bottom-color: #e1eae3;
}

.workspace .overview-v2-no-findings {
  border-radius: 7px;
}

/* More balanced chart container */

.workspace .overview-trend-chart {
  border-color: #dfe8e1;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fbf9 100%
    );
}

/* -------------------------------------------------
   MOBILE METRIC GRID

   Four KPIs in two columns at supported widths.
   Narrow screens retain the safe single column.
   ------------------------------------------------- */

@media (min-width: 360px) and (max-width: 700px) {

  .workspace .overview-v2-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace .overview-v2-stat {
    min-width: 0;
    min-height: 140px;
    padding: 15px 13px;
    border-right: 0;
    border-bottom: 0;
  }

  .workspace .overview-v2-stat:nth-child(odd) {
    border-right: 1px solid #e1e8e2;
  }

  .workspace .overview-v2-stat:nth-child(-n + 2) {
    border-bottom: 1px solid #e1e8e2;
  }

  .workspace .overview-v2-stat > div {
    align-items: flex-start;
    gap: 5px;
    font-size: 10.5px;
    line-height: 1.45;
    letter-spacing: 0.025em;
  }

  .workspace .overview-v2-stat > div svg {
    width: 16px;
    height: 16px;
  }

  .workspace .overview-v2-stat > strong {
    margin: 15px 0 7px;
    font-size: clamp(22px, 5.6vw, 27px);
    line-height: 1.12;
  }

  .workspace .overview-v2-stat > small {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .workspace .overview-v2-empty {
    min-height: 185px;
    padding: 18px 10px 22px;
  }

  .workspace .overview-v2-empty p {
    font-size: 12.5px;
  }

}

/* Tiny screens preserve the original one-column KPIs */

@media (max-width: 359px) {
  .workspace .overview-v2-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .workspace .overview-v2-empty .inline-link {
    transition: none;
  }
}

/* END BIZNORYX EMERALD OVERVIEW V2 */

/* ==================================================
   BIZNORYX NAVIGATION V3B
   Existing sidebar and mobile menu behavior preserved.
   ================================================== */

@media screen and (min-width: 701px) {

  .workspace .sidebar nav a {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition:
      background-color 150ms ease,
      border-color 150ms ease,
      color 150ms ease;
  }

  .workspace .sidebar nav a.active {
    background: #eaf3ed;
    border-color: #d4e5d9;
    color: #155a3e;
  }

  .workspace .sidebar nav a:hover:not(.active) {
    background: #f3f8f4;
    color: #245a3b;
  }
}

.workspace .sidebar nav a:focus-visible,
.workspace .sidebar-help:focus-visible,
.workspace .sidebar-toggle:focus-visible {
  outline: 2px solid #28764f;
  outline-offset: 3px;
}

@media screen and (max-width: 700px) {

  .workspace.mobile-nav-open .sidebar nav a,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar nav a {
    font-size: 11px;
    line-height: 1.35;
  }

  .workspace.mobile-nav-open .nav-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace .sidebar nav a {
    transition: none;
  }
}

/* END BIZNORYX NAVIGATION V3B */

/* ==================================================
   BIZNORYX COMPACT DESKTOP RAIL V1
   Collapsed desktop sidebar only. Expanded and mobile
   navigation are intentionally unchanged.
   ================================================== */
@media screen and (min-width: 701px) {
  .workspace.sidebar-collapsed .sidebar {
    box-sizing: border-box;
    padding: 18px 10px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .workspace.sidebar-collapsed .sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 44px;
  }

  /* A narrow rail needs one clear control, not two stacked logos. */
  .workspace.sidebar-collapsed .sidebar-compact-brand {
    display: none;
  }

  .workspace.sidebar-collapsed .sidebar-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    border-color: #d6e3da;
    border-radius: 10px;
    background: #f8faf8;
  }

  .workspace.sidebar-collapsed .sidebar-toggle svg {
    width: 19px;
    height: 19px;
  }

  .workspace.sidebar-collapsed .org-control {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    margin: 10px 0 0;
    padding: 10px 0;
    border-top: 1px solid #e2eae4;
    border-bottom: 1px solid #e2eae4;
  }

  .workspace.sidebar-collapsed .org-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #edf3ee;
    color: #245e42;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  .workspace.sidebar-collapsed .sidebar nav {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 12px 0 0;
  }

  .workspace.sidebar-collapsed .sidebar nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
  }

  .workspace.sidebar-collapsed .sidebar nav a svg {
    width: 19px;
    height: 19px;
  }

  .workspace.sidebar-collapsed .sidebar nav a.active {
    background: #e8f3ec;
    color: #155a3e;
    border-color: #cfe2d5;
  }

  .workspace.sidebar-collapsed .sidebar-bottom {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: auto;
    padding: 10px 0 0;
    border-top: 1px solid #e2eae4;
  }

  /* Keep 44px accessible targets without drawing permanent boxed tiles. */
  .workspace.sidebar-collapsed .sidebar-help {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: #64786b;
    text-decoration: none;
  }

  .workspace.sidebar-collapsed .sidebar-help::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 8px;
    background: transparent;
    transition: background-color 150ms ease;
  }

  .workspace.sidebar-collapsed .sidebar-help:hover,
  .workspace.sidebar-collapsed .sidebar-help:focus-visible {
    background: transparent;
    border-color: transparent;
    color: #176b4c;
  }

  .workspace.sidebar-collapsed .sidebar-help:hover::before,
  .workspace.sidebar-collapsed .sidebar-help:focus-visible::before,
  .workspace.sidebar-collapsed .sidebar-help[aria-current="page"]::before {
    background: #eaf3ed;
  }

  .workspace.sidebar-collapsed .sidebar-help svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
  }
}
/* END BIZNORYX COMPACT DESKTOP RAIL V1 */

/* ==================================================
   BIZNORYX DESKTOP SIDEBAR PAGE SCROLL V1
   Let the sidebar move with the workspace document.
   Avoid pinning it to the viewport on long pages.
   ================================================== */
@media screen and (min-width: 701px) {
  .workspace .sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    align-self: stretch;
    overflow: visible;
  }

  /* The compact-rail V1 rule set an internal scrollport.
     Restore normal page scrolling for the collapsed rail too. */
  .workspace.sidebar-collapsed .sidebar {
    overflow: visible;
  }
}
/* END BIZNORYX DESKTOP SIDEBAR PAGE SCROLL V1 */
/* Optional product analytics: equal choices, separate from account consent. */
.analytics-preferences {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 20px;
  max-width: 620px;
  width: calc(100% - 40px);
  padding: 20px;
  border: 1px solid #b5c7bf;
  border-radius: 8px;
  background: #fff;
  color: #182b23;
  box-shadow: 0 4px 24px rgb(0 0 0 / 12%);
}
.analytics-preferences[hidden] { display: none; }
.analytics-preferences h2 { margin: 0 0 8px; font-size: 18px; }
.analytics-preferences p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.analytics-preferences-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.analytics-preferences-actions button { flex: 1 1 200px; min-height: 44px; }
.analytics-link { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.analytics-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }


/* Adult-only account creation: unobtrusive eligibility disclosure. */
.registration-adult-verification {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: #f7faf7;
}
.registration-age-heading {
  color: #176b4c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
  margin: 0 0 12px;
}
.registration-adult-verification label:not(.registration-age-confirm) { display: block; }
.registration-adult-verification input[type="date"] { width: 100%; max-width: 100%; }
.registration-age-confirm {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 12px;
  line-height: 1.55;
}
.registration-age-confirm input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px !important;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #176b4c;
}
.registration-adult-verification .input-help { margin: 6px 0 0; }

/* Compact BIZNORYX workspace masthead, shared desktop and mobile. */
.workspace-top {
  height: 60px;
  min-height: 60px;
  padding: 0 26px;
  gap: 16px;
  background: #fff;
  position: relative;
  z-index: 22;
}
.workspace-top-context, .workspace-top-identity, .workspace-top-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}
.workspace-top-context { gap: 17px; flex: 1 1 auto; }
.workspace-top-brand {
  padding-right: 17px;
  border-right: 1px solid #e2eae3;
  color: #145c3f;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.03em;
}
.workspace-top-identity { gap: 12px; min-width: 0; }
.workspace-top-trail {
  color: #587064;
  font-size: 12px;
  white-space: nowrap;
}
.workspace-top-trail span { padding: 0 8px; color: #b6c7bc; }
.workspace-top-business {
  color: #172c21;
  font-size: 12px;
  font-weight: 750;
  max-width: 28ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-top-actions { gap: 15px; flex: 0 0 auto; }
.workspace-top .subscription-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: capitalize;
}
.workspace-status-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: #c58e36;
  border-radius: 50%;
}
.workspace-status-dot.is-active { background: #15964b; }
.workspace-account-menu { position: relative; }
.workspace-account-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 12px;
  padding: 4px 7px;
  border: 1px solid transparent;
  color: #496153;
}
.workspace-account-menu summary::-webkit-details-marker { display: none; }
.workspace-account-menu summary:hover,
.workspace-account-menu[open] summary { background: #f0f6f1; border-color: #d8e8db; }
.workspace-account-menu summary:focus-visible,
.workspace-mobile-toggle:focus-visible { outline: 3px solid #6fbf95; outline-offset: 2px; }
.workspace-account-menu summary > svg { width: 14px; height: 14px; }
.workspace-account-menu .account-avatar { width: 34px; height: 34px; border-radius: 50%; background: #dceee2; }
.workspace-account-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(250px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid #dce6dd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 52, 32, .13);
  z-index: 75;
}
.workspace-account-options a,
.workspace-account-options .top-sign-out {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 9px 11px;
  color: #264737;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.workspace-account-options a:hover,
.workspace-account-options .top-sign-out:hover {
  color: #125e3d;
  background: #f0f6f1;
}
.workspace-account-options svg { width: 17px; height: 17px; }
.workspace-account-options .top-sign-out {
  border-top: 1px solid #e5ede7;
  border-radius: 0 0 8px 8px;
  margin-top: 5px;
}
.workspace-mobile-toggle,
.workspace-mobile-subscription { display: none; }

@media (max-width: 1000px) and (min-width: 701px) {
  .workspace-top { padding: 0 18px; gap: 10px; }
  .workspace-top-brand { font-size: 12px; padding-right: 12px; }
  .workspace-top-context { gap: 12px; }
  .workspace-top-trail { display: none; }
  .workspace-top-business { max-width: 20ch; }
  .workspace-top-actions { gap: 8px; }
}

@media (max-width: 700px) {
  .workspace, .workspace.sidebar-collapsed {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
  }
  .workspace-main { display: contents; }
  .workspace-top {
    order: 0;
    width: 100%;
    height: 58px;
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid #e1e9e2;
    gap: 8px;
  }
  .workspace-top-brand, .workspace-top-trail,
  .workspace-top .subscription-pill { display: none; }
  .workspace-mobile-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #224c35;
    background: transparent;
    flex: 0 0 40px;
  }
  .workspace-mobile-toggle svg { width: 21px; height: 21px; }
  .workspace-top-context { gap: 10px; min-width: 0; }
  .workspace-top-identity { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
  .workspace-top-business { max-width: min(38vw, 230px); font-size: 13px; line-height: 1.2; }
  .workspace-mobile-subscription {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #356547;
    font-weight: 650;
    text-transform: capitalize;
  }
  .workspace-mobile-subscription .workspace-status-dot { width: 6px; height: 6px; flex-basis: 6px; }
  .workspace-top-actions { gap: 4px; }
  .workspace-account-menu summary { padding: 3px; gap: 0; min-height: 40px; }
  .workspace-account-menu summary > svg { display: none; }
  .workspace-account-menu .account-avatar { width: 34px; height: 34px; }
  .workspace .sidebar,
  .workspace.sidebar-collapsed .sidebar {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    border: 0;
    box-shadow: none;
    position: relative;
  }
  .workspace .sidebar-header,
  .workspace.sidebar-collapsed .sidebar-header,
  .workspace .org-control,
  .workspace.sidebar-collapsed .org-control { display: none !important; }
  .workspace.mobile-nav-open .sidebar,
  .workspace.mobile-nav-open.sidebar-collapsed .sidebar {
    padding: 10px 16px 16px !important;
    border-bottom: 1px solid #e1e9e2;
    box-shadow: 0 8px 25px rgba(19, 51, 31, .06);
  }
  .workspace.mobile-nav-open .org-control,
  .workspace.mobile-nav-open.sidebar-collapsed .org-control { display: flex !important; margin: 0 0 12px; }
  .workspace-content { order: 2; width: 100%; max-width: 100%; padding: 23px 16px 46px; }
}
@media (max-width: 360px) {
  .workspace-top { padding-inline: 8px; }
  .workspace-top-context { gap: 5px; }
  .workspace-top-business { max-width: 33vw; }
  .workspace-top-actions { gap: 2px; }
}
