@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/montserrat-400.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/montserrat-500.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/montserrat-600.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/montserrat-700.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/montserrat-800.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/montserrat-900.ttf") format("truetype");
}

:root {
  --ink: #012a2f;
  --muted: #64777a;
  --accent: #ffd405;
  --dark: #012a2f;
  --line: #dfe6e7;
  --paper: #f5f7f7;
  --white: #fff;
  --radius: 18px;
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bd9b00;
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.6px;
  line-height: 1.15;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
.muted,
.subtle {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 25px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  min-height: 42px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #06464d;
}
.btn.lime {
  background: var(--accent);
  color: var(--dark);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.secondary:hover {
  background: #f0f4f4;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
}
.btn.danger {
  background: #fbe9e5;
  color: #a34935;
}
.btn.compact {
  padding: 8px 11px;
  min-height: 34px;
  font-size: 12px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.icon-btn:hover {
  background: #e7eeee;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.brand-logo {
  display: block;
  width: 188px;
  height: auto;
  padding: 13px 15px;
  background: #fff;
  border-radius: 3px;
}
.brand-mark { display: none; }
.brand small {
  font-size: 9px;
  letter-spacing: 2.2px;
  font-weight: 500;
  color: #b2c9cc;
  padding-left: 2px;
}
.sidebar {
  position: fixed;
  width: 244px;
  inset: 0 auto 0 0;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 34px 23px;
  z-index: 5;
}
.sidebar .brand {
  margin-bottom: 43px;
}
.sidebar .eyebrow {
  color: #98b5b8;
  padding-left: 12px;
  margin: 30px 0 12px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  margin: 4px 0;
  border-radius: 9px;
  font-size: 13px;
  color: #b2c9cc;
}
.navlink.active {
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
}
.navlink:hover:not(.active) {
  background: #123e44;
  color: white;
}
.navlink .icon {
  width: 18px;
  height: 18px;
}
.side-bottom {
  margin-top: auto;
}
.side-note {
  border: 1px solid #31555a;
  border-radius: 12px;
  padding: 16px;
  font-size: 11px;
  color: #b2c9cc;
  line-height: 1.6;
  margin-bottom: 22px;
}
.side-note strong {
  display: block;
  color: #eef4f4;
  margin-bottom: 5px;
  font-size: 12px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff3b2;
  color: #012a2f;
  width: 36px;
  height: 36px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.account > div {
  min-width: 0;
  flex: 1;
}
.account strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account small {
  display: block;
  color: #a1bfc3;
  margin-top: 5px;
  font-size: 10px;
}
.account button {
  color: #bdd0d2;
}
.main {
  margin-left: 244px;
  padding: 0 46px 50px;
  max-width: 1800px;
}
.topbar {
  height: 89px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  margin-bottom: 38px;
  gap: 12px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tiny-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  background: #edf2f2;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 20px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #527a70;
  display: inline-block;
}
.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-title .eyebrow {
  color: #577679;
  margin-bottom: 11px;
}
.page-title p {
  font-size: 13px;
  margin-top: 10px;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 23px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.panel-head h2 {
  font-size: 16px;
}
.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #e6dec7;
  background: #faf7ed;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #766943;
}
.banner > .icon {
  color: #aa914e;
}
.banner strong {
  color: #62502b;
}
.banner .spacer {
  flex: 1;
}
.banner a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.stat {
  padding: 22px 23px;
  position: relative;
}
.stat:first-child {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.stat .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 5px;
}
.stat .top .icon {
  width: 17px;
  height: 17px;
  opacity: 0.55;
}
.stat .number {
  font-size: 39px;
  letter-spacing: -1.8px;
  margin: 20px 0 12px;
  font-weight: 600;
  line-height: 1;
}
.stat .caption {
  font-size: 10px;
  color: var(--muted);
}
.stat:first-child .caption {
  color: #a8c4c7;
}
.stat:first-child .number {
  color: var(--accent);
}
.middle-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.chart {
  height: 172px;
  padding: 4px 25px 0;
  display: flex;
  align-items: stretch;
  position: relative;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  z-index: 1;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding: 9px 25px 22px;
}
.legend {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #ffd405;
}
.funnel {
  padding: 0 25px 24px;
  display: grid;
  gap: 17px;
}
.funnel-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 7px;
}
.bar {
  height: 5px;
  border-radius: 4px;
  background: #edf2f2;
  overflow: hidden;
}
.bar svg {
  width: 100%;
  height: 5px;
  display: block;
}
.filters {
  display: flex;
  gap: 10px;
  padding: 0 25px 21px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 320px;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 17px;
  height: 17px;
  color: #748b8e;
}
.search input {
  padding-left: 39px;
}
input,
select,
textarea {
  background: white;
  color: var(--ink);
  border: 1px solid #d6e0e1;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 13px;
  width: 100%;
  min-height: 41px;
}
input::placeholder,
textarea::placeholder {
  color: #809194;
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
select {
  cursor: pointer;
  padding-right: 30px;
  width: auto;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field {
  margin-bottom: 19px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 7px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #667d80;
  font-weight: 600;
  background: #f6f8f8;
  padding: 13px 25px;
  white-space: nowrap;
}
td {
  padding: 17px 25px;
  border-top: 1px solid #eaf0f0;
  white-space: nowrap;
}
.person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.person strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.person .avatar {
  background: #edf2f2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 20px;
  background: #edf2f2;
  color: #5b7376;
  white-space: nowrap;
}
.badge.won {
  background: #e1f1e9;
  color: #286247;
}
.badge.followup {
  background: #e8f0f5;
  color: #4c768a;
}
.badge.human {
  background: #fbf0d7;
  color: #a17c2a;
}
.badge.lost,
.badge.stopped {
  background: #f7e8e3;
  color: #a36656;
}
.badge.initial {
  background: #eeecf6;
  color: #7f709a;
}
.empty {
  padding: 43px 20px 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.empty-icon {
  width: 54px;
  height: 54px;
  background: #fff6c8;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #776600;
  margin-bottom: 17px;
}
.empty h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  max-width: 400px;
  color: var(--muted);
}
.empty .btn {
  margin-top: 18px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 25px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
  font-size: 10px;
  color: #708589;
  gap: 10px;
}
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.club-card {
  padding: 26px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 245px;
}
.club-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #012a2f0a;
}
.club-card .club-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 27px;
}
.club-symbol {
  background: #fff3ad;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.club-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.club-card p {
  font-size: 12px;
  color: var(--muted);
}
.club-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 26px;
  font-size: 11px;
}
.club-new {
  border: 1px dashed #c6d4d6;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
  min-height: 245px;
  border-radius: 18px;
  font-size: 13px;
}
.hero-strip {
  background: #fff3ad;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  border-radius: 16px;
  margin-bottom: 31px;
}
.hero-strip h2 {
  font-size: 21px;
}
.hero-strip p {
  color: #596b66;
  font-size: 12px;
  margin-top: 6px;
}
.hero-number {
  font-size: 54px;
  letter-spacing: -3px;
  color: #012a2f;
  line-height: 1;
}
.tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 27px;
}
.tabs a {
  font-size: 12px;
  padding: 0 0 15px;
  color: var(--muted);
}
.tabs a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}
.form-panel {
  padding: 27px;
}
.form-panel h2 {
  margin-bottom: 9px;
  font-size: 17px;
}
.form-panel > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 27px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.step {
  display: flex;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.step:last-child {
  border: 0;
}
.step > span {
  width: 25px;
  height: 25px;
  background: #fff3ad;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.step p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.member-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.member-tools select {
  font-size: 11px;
  padding: 7px;
  min-height: 32px;
}
.audit {
  padding: 0 25px 22px;
}
.audit-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.audit-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: start;
}
.transcript {
  padding: 27px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 350px;
}
.bubble {
  max-width: 85%;
  align-self: flex-start;
}
.bubble.assistant {
  align-self: flex-end;
}
.bubble small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 0 5px 7px;
}
.bubble.assistant small {
  text-align: right;
}
.bubble p {
  background: #edf3f3;
  border-radius: 3px 14px 14px;
  padding: 14px 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.bubble.assistant p {
  background: #fff4b9;
  border-radius: 14px 3px 14px 14px;
}
.bubble footer {
  font-size: 9px;
  color: var(--muted);
  margin: 7px 5px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-row span:first-child {
  color: var(--muted);
}
.info-row:last-child {
  border: 0;
}
.notice {
  padding: 14px;
  border-radius: 9px;
  background: #edf2f2;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--dark);
  padding: 54px 60px;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story .brand {
  position: relative;
  z-index: 1;
}
.login-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
  padding: 65px 0;
  max-width: 470px;
}
.login-copy .eyebrow {
  color: #ffd405;
  margin-bottom: 24px;
}
.login-copy h1 {
  font-size: clamp(48px, 5.8vw, 88px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.07;
}
.login-copy h1 em {
  font-style: normal;
  color: var(--accent);
}
.login-copy p {
  color: #adc9cc;
  font-size: 14px;
  max-width: 330px;
  margin-top: 26px;
}
.login-foot {
  font-size: 10px;
  letter-spacing: 1px;
  color: #99b8bd;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form > div {
  width: 100%;
  max-width: 340px;
}
.login-form h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 15px 0;
}
.login-form p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 31px;
}
.login-form .btn {
  width: 100%;
  margin-top: 7px;
}
.login-form .login-help {
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  margin-top: 25px;
  color: #64777a;
}
.form-error {
  color: #a24e3a;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.boot span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 29px;
  width: calc(100% - 32px);
  max-width: 490px;
  box-shadow: 0 25px 100px #012a2f30;
  color: var(--ink);
  max-height: 90dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #012a2f66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dialog-head h2 {
  font-size: 22px;
}
dialog > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 25px;
}
.invite-link {
  font-size: 11px;
  line-height: 1.6;
  min-height: 90px;
  resize: none;
}
.toast-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
#toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #012a2f;
  color: #fff;
  font-size: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px #012a2f20;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 100;
  max-width: 90vw;
}
#toast.toast-visible {
  transform: translate(-50%, 0) !important;
}
.mobile-brand {
  display: none;
}
.skeleton {
  padding: 70px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.text-link {
  color: #065d66;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.refresh-time {
  font-size: 10px;
  color: var(--muted);
}
.mini-label {
  font-size: 10px;
  color: var(--muted);
}
@media (min-width: 1550px) {
  .main {
    padding-left: 65px;
    padding-right: 65px;
  }
  .stat {
    padding: 28px;
  }
  .chart {
    height: 205px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding: 28px 17px;
  }
  .main {
    margin-left: 210px;
    padding: 0 28px 40px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat .number {
    font-size: 33px;
  }
  .clubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr 270px;
  }
  .login-story {
    padding: 40px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 76px;
    padding: 27px 15px;
  }
  .sidebar .brand {
    font-size: 0;
    justify-content: center;
  }
  .sidebar .brand-logo { display: none; }
  .sidebar .brand-mark { display: block; width: 42px; height: 42px; }
  .sidebar .brand small,
  .navlink span,
  .sidebar .eyebrow,
  .side-note,
  .account > div,
  .account > .avatar {
    display: none;
  }
  .navlink {
    justify-content: center;
    padding: 13px;
  }
  .account {
    justify-content: center;
  }
  .main {
    margin-left: 76px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .middle-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .login-copy h1 {
    font-size: 60px;
  }
  .login-story {
    padding: 35px;
  }
  .login-form {
    padding: 35px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 64px;
    padding: 4px 10px;
    flex-direction: row;
    justify-content: space-around;
    border-radius: 15px 15px 0 0;
  }
  .sidebar .brand,
  .sidebar .eyebrow,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
  }
  .navlink {
    margin: 0;
    padding: 11px 15px;
    flex-direction: column;
    gap: 5px;
    border-radius: 9px;
  }
  .navlink span {
    display: block;
    font-size: 8px;
  }
  .navlink .icon {
    height: 16px;
    width: 16px;
  }
  .main {
    margin-left: 0;
    padding: 0 18px 92px;
  }
  .topbar {
    height: 69px;
    margin-bottom: 25px;
  }
  .topbar-right .tiny-pill {
    display: none;
  }
  .page-title {
    flex-wrap: wrap;
    gap: 17px;
    margin-bottom: 22px;
  }
  .page-title .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-title p {
    font-size: 12px;
  }
  .banner {
    font-size: 11px;
    padding: 13px;
    align-items: flex-start;
  }
  .banner .spacer,
  .banner > a {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat .top {
    font-size: 10px;
  }
  .stat .number {
    font-size: 33px;
    margin: 17px 0 10px;
  }
  .stat .caption {
    font-size: 9px;
  }
  .middle-grid {
    gap: 16px;
  }
  .panel-head {
    padding: 20px;
  }
  .filters {
    padding: 0 20px 17px;
    flex-wrap: wrap;
  }
  .search {
    max-width: none;
    min-width: 160px;
  }
  .filters select {
    max-width: 100%;
  }
  .clubs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .hero-strip {
    padding: 21px;
  }
  .hero-strip h2 {
    font-size: 18px;
  }
  .hero-number {
    font-size: 44px;
  }
  .club-card,
  .club-new {
    min-height: 220px;
  }
  .footer {
    font-size: 9px;
  }
  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-panel {
    padding: 22px;
  }
  .tabs {
    gap: 22px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 27px;
    min-height: 290px;
  }
  .login-copy {
    padding: 36px 0 12px;
    margin: 0;
  }
  .login-copy .eyebrow,
  .login-copy p,
  .login-foot {
    display: none;
  }
  .login-copy h1 {
    font-size: 48px;
    letter-spacing: 0;
    max-width: 320px;
  }
  .login-form {
    padding: 38px 27px 60px;
    align-items: start;
  }
  .login-form > div {
    max-width: 400px;
  }
  .bubble {
    max-width: 93%;
  }
  .transcript {
    padding: 20px;
  }
  .table-footer {
    padding: 13px 18px;
  }
  .mobile-brand { display: block; width: 28px; height: 28px; flex-shrink: 0; }
  .topbar .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .refresh-time {
    display: none;
  }
  .btn {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.audit-panel {
  margin-top: 24px;
}
.form-panel > .actions {
  margin-top: 20px;
}

.badge .dot {
  background: currentColor;
}

/* Display face used by Fitness UP; interface text stays in Montserrat. */
h1,
.login-form h2,
.hero-strip h2 {
  font-family: "modesto-condensed", "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 { font-size: 48px; }
.login-form h2 { font-size: 38px; }
.hero-strip h2 { font-size: 30px; }
.login-form .btn { background: var(--accent); color: var(--dark); }
.login-form .btn:hover,
.btn.lime:hover { background: #edc500; }
.login-story .brand-logo { width: 220px; padding: 15px 18px; }
.stat .number { font-variant-numeric: tabular-nums; }
.tabs a.active { border-bottom-color: var(--accent); }
.boot { flex-direction: column; gap: 18px; }
.boot img { width: 180px; height: auto; }
.boot span { margin: 0; }
@media (max-width: 1200px) and (min-width: 951px) {
  .sidebar .brand-logo { width: 176px; }
}
@media (max-width: 600px) {
  h1 { font-size: 38px; }
  .hero-strip h2 { font-size: 25px; }
  .login-story .brand-logo { width: 188px; }
  .login-form h2 { font-size: 34px; }
}

/* Portrait joins the human and digital halves at the centre of the login. */
.brand-logo,
.login-story .brand-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: brightness(0) invert(1);
}
.login {
  position: relative;
  isolation: isolate;
  background: linear-gradient(90deg, var(--dark) 50%, var(--paper) 50%);
  overflow: hidden;
}
.login-story { background: transparent; z-index: 2; padding: 44px; }
.login-story .brand-logo { width: 190px; }
.login-copy { max-width: 280px; margin: auto 0; padding: 90px 0 60px; }
.login-copy .eyebrow { max-width: 230px; line-height: 1.8; font-size: 9px; }
.login-copy h1 { font-size: clamp(42px, 4vw, 66px); line-height: 1.04; white-space: nowrap; }
.login-copy p { max-width: 230px; font-size: 12px; }
.login-portrait {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
  width: min(64vw, 760px);
  height: 114%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.login-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;

}
.login-form {
  position: relative;
  z-index: 2;
  padding: 50px 40px 50px clamp(165px, 24vw, 350px);
  justify-content: flex-end;
}
.login-form > div { max-width: 360px; }
.login-form h2 { font-size: 34px; }
@media (min-width: 1550px) {
  .login-story { padding: 56px 64px; }
  .login-copy { max-width: 340px; }
  .login-form { padding-right: clamp(60px, 6vw, 140px); }
}
@media (min-width: 1101px) and (max-width: 1150px) {
  .login-story { padding: 32px; }
  .login-copy { max-width: 220px; }
  .login-copy h1 { font-size: 40px; }
  .login-copy p { max-width: 200px; }
  .login-form { padding-right: 28px; padding-left: 24vw; }
  .login-form h2 { font-size: 29px; }
  .login-form .btn { white-space: normal; }
}
@media (max-width: 1100px) {
  .login { display: block; background: var(--paper); }
  .login-story {
    height: 410px;
    min-height: 0;
    padding: 26px;
    background: linear-gradient(90deg, var(--dark) 50%, var(--paper) 50%);
    z-index: 0;
  }
  .login-story .brand { z-index: 3; }
  .login-story .brand-logo { width: 145px; }
  .login-story .brand small { font-size: 7px; }
  .login-portrait { top: 72px; bottom: auto; height: 338px; width: 340px; overflow: hidden; }
  .login-portrait img { height: auto; width: 268px; flex-shrink: 0; align-self: flex-start; }
  .login-copy { display: none; }
  .login-copy h1 { font-size: 30px; max-width: 170px; text-shadow: 0 2px 20px #012a2f; }
  .login-copy .eyebrow, .login-copy p, .login-foot { display: none; }
  .login-form { padding: 28px 27px 48px; justify-content: center; }
  .login-form > div { max-width: 420px; }
  .login-form h2 { font-size: 34px; }
}

/* Club-scoped chat simulator, deliberately separate from commercial conversations. */
.simulator-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 28px; align-items: start; }
.simulator-phone { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; min-width: 0; }
.simulator-header { padding: 20px 24px; display: flex; align-items: center; gap: 12px; background: var(--dark); color: white; }
.simulator-header strong { display: block; font-size: 14px; }
.simulator-header small { display: block; margin-top: 5px; font-size: 11px; color: #b2c9cc; }
.simulator-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--dark); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.simulator-test { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.simulator-messages { height: 400px; overflow-y: auto; background: #edf2ef; padding: 24px; display: flex; flex-direction: column; gap: 17px; overscroll-behavior: contain; }
.simulator-bubble { max-width: 88%; background: white; align-self: flex-start; border-radius: 2px 13px 13px; padding: 13px 16px 9px; box-shadow: 0 1px 2px #012a2f0a; }
.simulator-bubble.outgoing { background: #dff0d7; align-self: flex-end; border-radius: 13px 2px 13px 13px; }
.simulator-bubble small { font-size: 10px; font-weight: 600; color: #427064; }
.simulator-bubble p { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; }
.simulator-bubble time { display: block; text-align: right; font-size: 9px; color: var(--muted); margin-top: 6px; }
.simulator-empty { text-align: center; margin: auto; max-width: 280px; }
.simulator-empty > span { font-size: 28px; display: block; margin-bottom: 20px; }
.simulator-empty h2 { font-size: 19px; line-height: 1.4; }
.simulator-empty p { margin-top: 14px; color: var(--muted); font-size: 12px; }
.simulator-start { padding: 22px; }
.simulator-start select { width: 100%; }
.simulator-compose { display: flex; padding: 16px; gap: 10px; align-items: flex-end; }
.simulator-compose textarea { min-height: 65px; max-height: 150px; font-size: 12px; }
.simulator-compose .btn { flex-shrink: 0; }
.simulator-ended { padding: 20px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.simulator-error { color: #a24e3a; font-size: 12px; padding: 0 20px 15px; line-height: 1.6; }
.simulator-error:empty { display: none; }
.simulator-retry { margin: 0 20px 20px; }
.simulator-typing { color: var(--muted); font-size: 11px; padding: 12px; }
.simulator-details h2 { margin-top: 15px; line-height: 1.5; }
.simulator-details .simulator-help { font-size: 11px; margin: 16px 0 0; }
.simulator-context { margin-top: 20px; }
.simulator-context details { font-size: 12px; line-height: 1.6; }
.simulator-context summary { cursor: pointer; font-weight: 600; }
.simulator-context details p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .simulator-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .sidebar .navlink { padding: 11px 8px; }
  .simulator-header { padding: 17px; }
  .simulator-messages { padding: 17px; height: 380px; }
  .simulator-compose { padding: 12px; gap: 8px; }
  .simulator-compose .btn { padding: 12px; }
  .simulator-start { padding: 18px; }
}
@media (max-width: 600px) {
  .simulator-messages:has(.simulator-empty) { height: 230px; }
}
