:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #202c37;
  --muted: #7b8591;
  --line: #e9edf0;
  --accent: #246f61;
  --soft: #edf5f2;
  --sidebar: #fff;
  --shadow: 0 10px 40px #172d3910;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:not(.button):not(.toggle) {
  background: none;
  border: 0;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
input,
select,
textarea {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #dce2e6;
  border-radius: 8px;
  padding: 11px 12px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid #246f6120;
}
input[type="number"] {
  width: 100%;
}
textarea {
  min-height: 110px;
  resize: vertical;
  width: 100%;
}
.button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.button:hover {
  filter: brightness(0.95);
}
.button.secondary {
  background: var(--surface);
  border-color: #dce3e2;
  color: var(--ink);
}
.button.small {
  padding: 10px 15px;
}
.wordmark {
  font-family: Manrope, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -2.3px;
  color: var(--ink);
  display: inline-block;
}
.wordmark span {
  font: 9px sans-serif;
  letter-spacing: 0;
  vertical-align: top;
  display: inline-block;
  margin: 10px 0 0 4px;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 14px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a947b;
  margin-right: 7px;
}
.pill {
  padding: 6px 9px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.micro {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.text-link {
  font-size: 13px;
  font-weight: 600;
}
.text-button {
  font-size: 12px !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
  padding: 6px 0 !important;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--soft);
  color: var(--accent);
  border: 1px solid #d1e6df;
  border-radius: 8px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.6;
}
.notice button {
  font-size: 20px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
label {
  font-size: 12px;
  font-weight: 550;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
label small {
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
pre {
  overflow: auto;
  max-height: 400px;
  white-space: pre-wrap;
  font-size: 11px;
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-nav {
  padding: 24px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.public-nav > div {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 12px;
}
.marketing {
  background: #fbfcfb;
}
.hero {
  text-align: center;
  padding: 88px 24px 66px;
  background: radial-gradient(ellipse at 50% 80%, #e7f2eb70, transparent 65%);
}
.hero h1 {
  font-size: clamp(56px, 6.6vw, 90px);
  line-height: 1.08;
  letter-spacing: -5px;
  font-weight: 650;
  margin-bottom: 24px;
}
.hero h1 span {
  color: #647f73;
}
.hero p {
  font-size: 16px;
  line-height: 1.85;
  color: #7b8580;
}
.hero-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  margin: 30px 0 20px;
}
.product-window {
  margin: 0 auto 80px;
  max-width: 1120px;
  border: 1px solid #e1e7e2;
  box-shadow: 0 25px 90px #283c3210;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  background: var(--surface);
}
.window-sidebar {
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  position: relative;
}
.window-sidebar > .wordmark {
  margin-bottom: 32px;
}
.window-sidebar small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}
.window-sidebar > div:not(.wordmark) {
  padding: 12px 14px;
  font-size: 11px;
  color: #7c8781;
  margin-bottom: 4px;
}
.window-selected {
  background: var(--soft);
  border-radius: 6px;
  color: var(--accent) !important;
  font-weight: 600;
}
.window-note {
  margin-top: 50px;
  font-size: 9px !important;
  line-height: 1.7;
}
.window-main {
  padding: 40px;
  background: #f7f9f8;
}
.window-main h2 {
  font-size: 25px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.window-main > .muted {
  font-size: 12px;
}
.sample-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 20px;
}
.sample-metrics > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
}
.sample-metrics small {
  font-size: 11px;
  color: var(--muted);
}
.sample-metrics h3 {
  font-size: 17px;
  margin: 16px 0 20px;
  line-height: 1.5;
}
.sample-chart {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
}
.sample-chart small {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.sample-chart h3 {
  margin: 14px 0;
  font-size: 20px;
}
.sample-chart p {
  font-size: 11px;
  color: var(--muted);
}
.bars {
  display: flex;
  gap: 10px;
  align-items: end;
}
.bars i {
  width: 13px;
  background: #99bcac;
  border-radius: 3px 3px 0 0;
}
.bars i:nth-child(3n) {
  background: #2c7462;
}
.value-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding: 20px 24px 90px;
}
.icon-box {
  background: #ecf3ef;
  color: var(--accent);
  padding: 12px;
  border-radius: 10px;
  display: inline-flex;
  margin-bottom: 22px;
}
.value-grid h3 {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.value-grid p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.pricing {
  text-align: center;
  padding: 75px 5%;
  background: #f0f4f1;
}
.pricing h2 {
  font-size: 38px;
  letter-spacing: -1.7px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 40px auto 25px;
  text-align: left;
}
.plan-grid article {
  background: white;
  padding: 32px;
  border: 1px solid #e0e7e2;
  border-radius: 12px;
}
.plan-grid article.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 35px #246f6110;
}
.plan-grid h3 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.plan-grid h3 small {
  font:
    12px "DM Sans",
    sans-serif;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-grid article > p {
  font-size: 12px;
  color: var(--muted);
}
.plan-grid ul {
  list-style: none;
  padding: 0;
  font-size: 11px;
  line-height: 1.7;
  margin: 25px 0;
  min-height: 105px;
}
.plan-grid li {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.plan-grid li svg {
  flex-shrink: 0;
  color: var(--accent);
}
.plan-grid .button {
  width: 100%;
}
.marketing footer {
  padding: 32px 6%;
  font-size: 11px;
  color: var(--muted);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
  background: white;
}
.auth-shell aside {
  background: #e8f0e9;
  padding: 45px 13%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-shell h1 {
  font-size: 50px;
  line-height: 1.25;
  letter-spacing: -2px;
}
.auth-shell aside p {
  color: #718276;
  line-height: 1.8;
}
.auth-shell aside small {
  color: #718276;
  font-size: 11px;
}
.auth-shell > section {
  padding: 40px 12%;
}
.back {
  font-size: 12px;
  color: var(--muted);
}
.auth-card {
  max-width: 400px;
  margin: 65px auto;
}
.auth-card h2 {
  font-size: 28px;
  letter-spacing: -1px;
}
.auth-card > p {
  font-size: 13px;
}
.auth-card form {
  margin: 25px 0;
}
.auth-card .micro a {
  color: var(--accent);
}
.loading {
  padding: 15vh 10%;
  text-align: center;
}
.workspace {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 27px 19px 0;
  display: flex;
  flex-direction: column;
}
.sidebar > .wordmark {
  padding-left: 11px;
  margin-bottom: 34px;
}
.agency-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 32px;
}
.agency-avatar {
  border-radius: 6px;
  background: #e9edea;
  color: #647768;
  font-weight: 700;
  padding: 9px;
  font-size: 12px;
}
.agency-switch select {
  border: 0;
  padding: 0;
  width: 130px;
  appearance: none;
  font-weight: 600;
  font-size: 11px;
  background: none;
}
.agency-switch svg {
  color: var(--muted);
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #a0a7ad;
  padding-left: 14px;
  margin-bottom: 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #7b8590 !important;
}
.sidebar nav button.active {
  background: var(--soft) !important;
  color: var(--accent) !important;
  font-weight: 650;
}
.nav-count {
  margin-left: auto;
  font-size: 9px;
  background: #e7eded;
  padding: 3px 5px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.workspace-status {
  font-size: 10px;
  color: #78827d;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
}
.workspace-status small {
  display: block;
  margin: 7px 0 0 14px;
  font-size: 9px;
  color: #a0a7ad;
}
.user-block {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.user-avatar {
  height: 31px;
  width: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eae7df;
  color: #877c62;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-block strong {
  font-size: 11px;
}
.user-block small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.user-block button {
  margin-left: auto;
}
.main-shell {
  margin-left: 238px;
  width: calc(100% - 238px);
}
.topbar {
  height: 73px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: var(--surface);
  font-size: 11px;
}
.crumb {
  margin: 0 15px;
  color: #bec4c9;
}
.top-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.date-text {
  font-size: 10px;
  color: var(--muted);
}
.small-avatar {
  height: 28px;
  width: 28px;
  font-size: 10px;
}
.workspace-main {
  max-width: 1600px;
  padding: 38px 36px 0;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.page-heading h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1.1px;
  margin-bottom: 10px;
}
.page-heading p {
  font-size: 12px;
  margin: 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading-actions > select {
  font-size: 11px;
  padding: 10px 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.metric > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #75808b;
}
.metric > div svg {
  color: #b1b8bc;
}
.metric h2 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 21px 0 15px;
}
.metric small {
  font-size: 9px;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.overview-grid .panel {
  margin-bottom: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  gap: 15px;
}
.panel-heading h3 {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
}
.panel-heading h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
}
.panel-heading p {
  font-size: 10px;
  margin: 8px 0 0;
}
.panel-heading > svg {
  color: var(--muted);
}
.panel-foot {
  font-size: 9px;
  color: var(--muted);
  padding: 15px 24px;
  border-top: 1px solid var(--line);
}
.mix-chart {
  min-height: 210px;
  padding: 22px 24px 30px;
  max-height: 350px;
  overflow: auto;
}
.mix-chart > div {
  margin-bottom: 20px;
}
.mix-chart > div > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 9px;
}
.bar-track {
  height: 6px;
  border-radius: 6px;
  background: #e9f0ec;
  overflow: hidden;
}
.bar-track i {
  display: block;
  background: #699984;
  height: 100%;
  border-radius: 6px;
}
.chart-empty {
  position: relative;
  height: 235px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.chart-empty p {
  font-size: 12px;
  color: var(--muted);
  z-index: 1;
  margin-bottom: 7px;
}
.chart-empty button {
  z-index: 1;
}
.chart-grid {
  position: absolute;
  inset: 10px 24px 24px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 44px,
    var(--line) 45px
  );
}
.goal {
  padding: 20px 24px;
}
.goal > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 12px;
}
.goal small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}
.quick-note {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  background: #f7f9f7;
  border-top: 1px solid var(--line);
  margin-top: auto;
  color: var(--accent);
}
.quick-note svg {
  flex-shrink: 0;
}
.quick-note strong {
  font-size: 10px;
}
.quick-note p {
  font-size: 9px;
  color: #89958d;
  line-height: 1.7;
  margin: 6px 0 0;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}
.empty > svg {
  margin-bottom: 14px;
  color: #a2b5aa;
}
.empty h3 {
  font-size: 14px;
  color: var(--ink);
  font-weight: 550;
}
.empty p {
  font-size: 11px;
}
.empty.compact {
  padding: 22px 20px;
}
.empty.compact .button {
  font-size: 10px;
  padding: 9px 12px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  font-weight: 550;
  color: #8d969e;
  background: #fafbfc;
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tr:last-child td {
  border-bottom: 0;
}
td select {
  padding: 6px 9px;
  font-size: 10px;
}
.status {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.4px;
  border-radius: 4px;
  padding: 5px 7px;
  color: #8a8067;
  background: #f6f2e8;
}
.status.confirmed,
.status.earned,
.status.paid {
  color: #347f65;
  background: #eaf4ee;
}
.status.cancelled,
.status.reversed {
  color: #a56868;
  background: #f8ecec;
}
.status.recorded,
.status.estimated {
  color: #67869a;
  background: #eef4f8;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.search input {
  border: 0;
  font-size: 11px;
  padding: 5px;
  width: 240px;
}
.toggle {
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid #e0e6e2;
  background: var(--surface);
  font-size: 10px;
  color: var(--muted);
}
.toggle.on {
  background: var(--soft);
  border-color: #d5e7dd;
  color: var(--accent);
}
.studio {
  text-align: center;
  padding: 50px 30px;
}
.studio > svg {
  color: var(--accent);
  margin-bottom: 20px;
}
.studio h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
.studio > p {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.template-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.template-grid h3 {
  font-size: 13px;
  margin: 20px 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-grid .panel {
  margin: 0;
}
.settings-panel {
  padding: 28px;
}
.settings-panel h2 {
  text-transform: capitalize;
}
.settings-panel p {
  font-size: 12px;
  line-height: 1.8;
}
.wide {
  grid-column: 1/-1;
}
.app-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: #a0a8ae;
  font-size: 9px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #142c3860;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}
.modal {
  background: var(--surface);
  border-radius: 14px;
  width: 620px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 30px 100px #0003;
}
.modal > .panel-heading {
  padding: 0 0 24px;
}
.modal > .panel-heading button {
  font-size: 24px;
}
.modal form > .button {
  margin-top: 8px;
}
.quote > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.secret {
  display: block;
  overflow-wrap: anywhere;
  padding: 15px;
  background: var(--soft);
  margin: 10px 0;
}
.dark {
  --bg: #15201f;
  --surface: #1c2827;
  --sidebar: #192423;
  --ink: #e1e8e5;
  --muted: #92a09b;
  --line: #2e3c37;
  --accent: #83bfa7;
  --soft: #293f35;
}
.dark .button {
  color: #14291f;
}
.dark th,
.dark .quick-note {
  background: #1b2b25;
}
.dark .button.secondary {
  color: var(--ink);
}
.dark input,
.dark select,
.dark textarea {
  border-color: #42534b;
}
@media (min-width: 1450px) {
  .workspace-main {
    padding-top: 45px;
  }
  .metric {
    padding: 27px;
  }
  .metric h2 {
    font-size: 37px;
  }
  .chart-empty {
    height: 290px;
  }
  .sidebar {
    width: 252px;
  }
  .main-shell {
    margin-left: 252px;
    width: calc(100% - 252px);
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-shell {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .workspace-main {
    padding: 25px 22px 0;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric h2 {
    font-size: 25px;
  }
  .metric small {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .heading-actions {
    gap: 6px;
  }
  .page-heading {
    align-items: start;
  }
  .overview-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .product-window {
    margin-left: 25px;
    margin-right: 25px;
  }
  .window-main {
    padding: 25px;
  }
  .bars {
    gap: 6px;
  }
  .sample-metrics > div {
    padding: 14px;
  }
  .public-nav {
    padding-left: 5%;
    padding-right: 5%;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 76px;
    padding: 24px 12px;
  }
  .sidebar > .wordmark {
    font-size: 23px;
    padding: 0;
  }
  .sidebar .wordmark span,
  .agency-switch,
  .nav-label,
  .sidebar-bottom,
  .sidebar nav button span {
    display: none;
  }
  .sidebar nav button {
    font-size: 0;
    padding: 13px 16px;
    gap: 0;
  }
  .sidebar nav button svg {
    min-width: 18px;
  }
  .main-shell {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 22px;
  }
  .page-heading {
    flex-direction: column;
    gap: 20px;
  }
  .product-window {
    grid-template-columns: 150px 1fr;
  }
  .window-sidebar {
    padding: 18px 10px;
  }
  .window-sidebar > div:not(.wordmark) {
    padding: 10px 7px;
  }
  .sample-metrics {
    grid-template-columns: 1fr;
  }
  .sample-metrics > div:nth-child(n + 2) {
    display: none;
  }
  .sample-chart {
    flex-direction: column;
    align-items: start;
  }
  .bars {
    height: 110px;
    align-self: end;
  }
  .value-grid {
    gap: 25px;
  }
  .plan-grid {
    gap: 12px;
  }
  .plan-grid article {
    padding: 22px 18px;
  }
  .plan-grid .button {
    font-size: 11px;
  }
  .public-nav > div {
    gap: 18px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-shell aside {
    display: none;
  }
  .auth-shell > section {
    padding: 35px 10%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .marketing footer {
    gap: 25px;
  }
  .marketing footer span:last-child {
    display: none;
  }
}
@media (max-width: 550px) {
  .public-nav > div > a:not(.button) {
    display: none;
  }
  .hero {
    padding-top: 64px;
  }
  .hero h1 {
    letter-spacing: -3px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .button {
    font-size: 11px;
  }
  .product-window {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
  }
  .window-sidebar {
    display: none;
  }
  .window-main {
    padding: 23px;
  }
  .sample-metrics {
    margin-top: 20px;
  }
  .sample-chart {
    flex-direction: row;
    gap: 10px;
  }
  .bars {
    gap: 4px;
  }
  .bars i {
    width: 6px;
  }
  .sample-chart h3 {
    font-size: 16px;
  }
  .sample-chart p {
    font-size: 9px;
  }
  .value-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    padding-bottom: 45px;
    gap: 20px;
  }
  .value-grid article {
    padding: 0 12px;
  }
  .plan-grid ul {
    min-height: 0;
  }
  .pricing h2 {
    font-size: 30px;
  }
  .sidebar {
    width: 56px;
    padding: 22px 5px;
  }
  .sidebar > .wordmark {
    font-size: 21px;
    text-align: center;
  }
  .sidebar nav button {
    padding: 13px 14px;
  }
  .main-shell {
    margin-left: 56px;
    width: calc(100% - 56px);
  }
  .workspace-main {
    padding: 24px 14px 0;
  }
  .topbar {
    padding: 0 14px;
    height: 61px;
  }
  .date-text {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .metric {
    padding: 16px 12px;
  }
  .metric > div {
    font-size: 10px;
  }
  .metric h2 {
    font-size: 25px;
  }
  .metric small {
    line-height: 1.6;
    display: block;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-heading h3 {
    font-size: 12px;
  }
  .panel-heading .heading-actions {
    flex-direction: column;
  }
  .search input {
    width: 130px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    padding: 22px;
    max-height: 95vh;
  }
  .modal h2 {
    font-size: 18px;
  }
  .app-footer span:last-child {
    display: none;
  }
  .heading-actions .button {
    font-size: 11px;
    padding: 11px;
  }
  .heading-actions > select {
    font-size: 10px;
  }
  .hero .micro {
    font-size: 9px;
  }
  .marketing footer {
    font-size: 9px;
  }
  .settings-panel .heading-actions {
    flex-wrap: wrap;
  }
}

/* Full product identity across all wordmark placements. */
.wordmark .brand-name {
  font: inherit;
  display: block;
  line-height: 1;
}
.wordmark .brand-descriptor {
  display: block;
  font-family: inherit;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 2.4px;
  margin-top: 5px;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 850px) {
  .sidebar .wordmark .brand-descriptor {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
}

/* Plan choices must fit narrow settings panels at desktop and mobile widths. */
.settings-panel .heading-actions { flex-wrap: wrap; }

.integration-stack { display: grid; gap: 24px; min-width: 0; }
.integration-record { padding: 16px 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.integration-secret { display:block; overflow-wrap:anywhere; padding:16px; background:#f1f5f4; color:#172d25; }
.integration-stack .heading-actions { flex-wrap:wrap; }
.integration-stack code { overflow-wrap:anywhere; }

.launch-banner{padding:14px 24px;text-align:center;background:#eaf2ef;color:#214c40;font-size:13px;line-height:1.5}.launch-status{max-width:850px;margin:70px auto;padding:40px 24px;text-align:center}.launch-status p{line-height:1.7;color:#52616b;margin:24px 0}
