:root {
  color-scheme: light;
  --ink: #0b2029;
  --ink-2: #17333d;
  --muted: #667780;
  --paper: #ffffff;
  --canvas: #f7f8f4;
  --tint: #edf5ef;
  --line: #dfe7e2;
  --yellow: #f4c430;
  --yellow-hover: #ffda55;
  --green: #12805c;
  --green-soft: #d9f1e6;
  --navy: #071923;
  --shadow: 0 24px 70px rgba(4, 28, 37, 0.12);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

.p-0 {
  padding: 0 !important;
}

.p-relative {
  position: relative !important;
}

.mt-14 {
  margin-top: 14px !important;
}

.app-page :is(h1, h2, h3, legend),
.metric-card > strong,
.welcome-card h2,
.commerce-price strong,
.platform-plan-card__price strong {
  font-family: "Apolo Comfortaa", "Apolo Montserrat", sans-serif;
}
a.active svg,
a.active i {
  color: #ff8f3c;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 800;
}
.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: 0.25s ease;
}
.site-header.is-scrolled {
  height: 70px;
  background: rgba(7, 25, 35, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.site-header .brand,
.brand--light {
  color: #fff;
}
.brand strong {
  color: var(--yellow);
}
.brand__mark {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: end;
  justify-content: center;
  gap: 2px;
  transform: skew(-15deg);
}
.brand__mark i {
  display: block;
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--yellow);
}
.brand__mark i:nth-child(1) {
  height: 15px;
}
.brand__mark i:nth-child(2) {
  height: 26px;
}
.brand__mark i:nth-child(3) {
  height: 20px;
}
.brand__mark--small {
  width: 18px;
  height: 18px;
  gap: 1px;
}
.brand__mark--small i {
  width: 4px;
}
.brand__mark--small i:nth-child(1) {
  height: 9px;
}
.brand__mark--small i:nth-child(2) {
  height: 16px;
}
.brand__mark--small i:nth-child(3) {
  height: 12px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
  margin-left: auto;
}
.site-nav a {
  color: #c5d0d4;
  font-size: 13px;
  font-weight: 650;
  transition: 0.2s;
}
.site-nav a:hover {
  color: #fff;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.text-link {
  font-size: 13px;
  font-weight: 750;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border: 1px solid var(--yellow);
  border-radius: 7px;
  color: #10232b;
  background: var(--yellow);
  box-shadow: 0 7px 24px rgba(244, 196, 48, 0.15);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
}
.button--small {
  min-height: 40px;
  padding: 0 17px;
  font-size: 12px;
}
.button--ghost {
  color: #f4f7f6;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
.button--dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.button--dark:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}
.button--outline {
  color: var(--ink);
  background: #fff;
  border-color: #b8c6c0;
  box-shadow: none;
}
.button--outline:hover {
  border-color: var(--ink);
  background: #fff;
}
.button--full {
  width: 100%;
}
.play {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 9px;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 150px 0 92px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 196, 48, 0.35),
    transparent
  );
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero__glow--one {
  width: 560px;
  height: 560px;
  top: -270px;
  right: 5%;
  background: radial-gradient(circle, rgba(23, 119, 93, 0.25), transparent 70%);
}
.hero__glow--two {
  width: 680px;
  height: 680px;
  left: -390px;
  bottom: -420px;
  background: radial-gradient(
    circle,
    rgba(244, 196, 48, 0.09),
    transparent 65%
  );
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 7vw, 94px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--yellow);
}
.hero .eyebrow > span {
  width: 22px;
  height: 1px;
  background: var(--yellow);
}
.hero h1,
.section-heading h2,
.contact h2,
.auth-preview h1 {
  margin: 20px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
}
.hero h1 {
  max-width: 620px;
  font-size: clamp(48px, 5.2vw, 75px);
}
.hero h1 em,
.section-heading h2 em,
.contact h2 em {
  color: var(--yellow);
  font-weight: inherit;
}
.hero__lead {
  max-width: 555px;
  margin: 0;
  color: #aebdc2;
  font-size: 17px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #94a9b0;
  font-size: 12px;
}
.hero__assurances span {
  color: var(--yellow);
  font-weight: 900;
}

.dashboard-preview {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: #eef2f0;
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.38);
  color: var(--ink);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}
.dashboard-preview__top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 16px;
  border-bottom: 1px solid #d9e0dc;
  background: #fff;
  border-radius: 11px 11px 0 0;
}
.preview-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
}
.preview-search {
  width: 42%;
  height: 15px;
  margin-left: auto;
  border-radius: 20px;
  background: #edf1ef;
}
.preview-avatar {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 7px;
  font-weight: 800;
}
.dashboard-preview__body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 48px 1fr;
}
.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-right: 1px solid #dce3df;
  background: #fff;
  border-radius: 0 0 0 11px;
}
.preview-sidebar span {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #d7dedb;
}
.preview-sidebar .active {
  background: var(--yellow);
}
.preview-main {
  min-width: 0;
  padding: 25px;
}
.preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.preview-heading div {
  display: grid;
  gap: 5px;
}
.preview-heading small {
  color: #7b8b91;
  font-size: 7px;
}
.preview-heading strong {
  font-family: Georgia, serif;
  font-size: 18px;
}
.preview-heading > span {
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--yellow);
  font-size: 7px;
  font-weight: 900;
}
.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 14px;
}
.preview-stats article {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 14px 12px;
  border: 1px solid #dce3df;
  border-radius: 6px;
  background: #fff;
}
.preview-stats small {
  padding-left: 13px;
  color: #718187;
  font-size: 7px;
}
.preview-stats strong {
  font-size: 21px;
}
.preview-stats b {
  position: absolute;
  right: 10px;
  bottom: 13px;
  color: var(--green);
  font-size: 7px;
}
.dot {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 17px;
  left: 13px;
  border-radius: 50%;
}
.dot--green {
  background: #30a46c;
}
.dot--blue {
  background: #3c8bd9;
}
.dot--orange {
  background: #ef9f27;
}
.preview-chart {
  padding: 16px 17px 12px;
  border: 1px solid #dce3df;
  border-radius: 6px;
  background: #fff;
}
.preview-chart__title {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.preview-chart__title span {
  display: grid;
  gap: 3px;
}
.preview-chart__title strong {
  font-size: 9px;
}
.preview-chart__title small {
  color: #849197;
  font-size: 6px;
}
.preview-chart__title > b {
  color: #6c7e84;
  font-size: 6px;
}
.chart-area {
  position: relative;
  height: 175px;
  margin-top: 8px;
  overflow: hidden;
}
.chart-line {
  position: absolute;
  z-index: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: #e7ecea;
}
.line-1 {
  top: 22%;
}
.line-2 {
  top: 50%;
}
.line-3 {
  top: 78%;
}
.chart-area svg {
  position: absolute;
  z-index: 1;
  inset: 4px 0 20px;
  width: 100%;
  height: calc(100% - 24px);
}
.chart-labels {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #93a0a4;
  font-size: 5px;
}
.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}
.floating-card--class {
  left: -34px;
  bottom: 38px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
}
.floating-card--class > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 11px;
}
.floating-card--class div {
  display: grid;
  gap: 3px;
}
.floating-card small {
  color: #7c8d92;
  font-size: 6px;
}
.floating-card strong {
  font-size: 8px;
}
.floating-card--growth {
  top: 92px;
  right: -24px;
  display: grid;
  gap: 3px;
  min-width: 95px;
  padding: 12px;
}
.floating-card--growth strong {
  font-size: 16px;
}
.floating-card--growth span {
  position: absolute;
  top: 17px;
  right: 12px;
  color: var(--green);
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.proof-strip__inner {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.proof-strip p {
  margin: 0;
  color: #819096;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proof-strip__inner div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(20px, 4vw, 50px);
}
.proof-strip span {
  color: #809098;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.section {
  padding: 112px 0;
}
.section--tint {
  background: var(--tint);
}
.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}
.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.section-heading h2 {
  margin: 18px 0;
  font-size: clamp(40px, 4.6vw, 61px);
}
.section-heading h2 em {
  color: var(--green);
}
.section-heading p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.section-heading--center p {
  margin-inline: auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  min-height: 255px;
  padding: 33px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(11, 32, 41, 0.08);
}
.feature-card--wide {
  grid-column: span 2;
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.feature-card--dark {
  color: #fff;
  border: 0;
  background: var(--ink);
}
.feature-card > small,
.feature-card > div > small {
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.feature-card--dark > div > small {
  color: var(--yellow);
}
.feature-card h3 {
  max-width: 430px;
  margin: 12px 0 10px;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.feature-card p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.feature-card--dark p {
  color: #a9b7bb;
}
.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 18px;
}
.feature-card--wide > .feature-icon {
  position: absolute;
  top: 30px;
  left: 33px;
  color: var(--ink);
  background: var(--yellow);
}
.feature-card--wide > div:first-of-type {
  padding-top: 55px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}
.mini-metrics span {
  display: grid;
  gap: 6px;
  padding: 24px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.mini-metrics span:last-child {
  border: 0;
}
.mini-metrics small {
  color: #91a4aa !important;
  font-size: 8px !important;
  letter-spacing: 0 !important;
}
.mini-metrics strong {
  color: #fff;
  font-size: 28px;
}
.mini-metrics i {
  color: var(--yellow);
  font-size: 8px;
  font-style: normal;
}
.avatar-row {
  display: flex;
  margin-top: 28px;
}
.avatar-row span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-right: -7px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.avatar-row span:nth-child(2) {
  background: #d69232;
}
.avatar-row span:nth-child(3) {
  background: #4174ad;
}
.avatar-row span:last-child {
  color: var(--ink);
  background: var(--yellow);
}
.schedule-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 11px;
  border-radius: 7px;
  background: var(--canvas);
  font-size: 10px;
}
.schedule-line span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.schedule-line em {
  color: var(--muted);
  font-style: normal;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 42px;
  right: 16%;
  left: 16%;
  height: 1px;
  background: #cbdad1;
}
.steps li {
  position: relative;
  text-align: center;
}
.steps li > span {
  position: absolute;
  top: 0;
  left: calc(50% + 34px);
  color: #94aaa0;
  font-family: Georgia, serif;
  font-size: 11px;
}
.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0 auto 25px;
  place-items: center;
  border: 1px solid #c4d5ca;
  border-radius: 50%;
  color: var(--green);
  background: var(--tint);
  font-size: 27px;
}
.steps h3 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.steps p {
  max-width: 280px;
  margin: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.center-action {
  margin-top: 50px;
  text-align: center;
}
.audience {
  background: var(--ink);
}
.audience__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}
.audience__copy h2 {
  margin: 20px 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(40px, 4.5vw, 59px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.audience__copy h2 em {
  color: var(--yellow);
  font-weight: inherit;
}
.audience__copy p {
  color: #9fb0b6;
  font-size: 15px;
  line-height: 1.75;
}
.inline-link {
  display: inline-flex;
  gap: 14px;
  margin-top: 26px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}
.audience__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.audience__cards article {
  display: flex;
  gap: 18px;
  min-height: 145px;
  align-items: flex-start;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.audience__cards article > span {
  display: grid;
  flex: 0 0 39px;
  height: 39px;
  place-items: center;
  border-radius: 7px;
  color: var(--yellow);
  background: rgba(244, 196, 48, 0.1);
}
.audience__cards h3 {
  margin: 3px 0 8px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.audience__cards p {
  margin: 0;
  color: #8fa2a9;
  font-size: 12px;
  line-height: 1.55;
}

.plans {
  background: var(--canvas);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 18px;
}
.plan-card {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.plan-card--featured {
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}
.plan-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  padding: 6px 14px;
  transform: translateX(-50%);
  border-radius: 20px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.plan-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.plan-card h3 {
  margin: 14px 0 6px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.plan-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.price {
  display: flex;
  height: 100px;
  align-items: center;
  margin: 18px 0 12px;
}
.price sup {
  align-self: flex-start;
  margin-top: 27px;
  color: var(--muted);
  font-size: 12px;
}
.price strong {
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.price span {
  align-self: end;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 11px;
}
.plan-card .button {
  width: 100%;
}
.plan-card ul {
  display: grid;
  gap: 13px;
  margin: 27px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: #4d626b;
  font-size: 12px;
}
.plan-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--green);
  font-weight: 900;
}
.plans__note {
  margin: 30px auto 0;
  color: #86949a;
  font-size: 11px;
  text-align: center;
}
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 9vw, 120px);
}
.faq__items {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  cursor: pointer;
  list-style: none;
  font-family: Georgia, serif;
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary span {
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 23px;
  transition: transform 0.2s;
}
.faq details[open] summary span {
  transform: rotate(45deg);
}
.faq details p {
  margin: -5px 45px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact {
  padding: 105px 0;
  color: #fff;
  background: var(--navy);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(50px, 9vw, 110px);
}
.eyebrow--light {
  color: var(--yellow);
}
.contact h2 {
  font-size: clamp(41px, 4.6vw, 62px);
}
.contact__copy > p {
  color: #9eb0b6;
  font-size: 15px;
  line-height: 1.7;
}
.contact__promise {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}
.contact__promise > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
}
.contact__promise div {
  display: grid;
  gap: 4px;
}
.contact__promise strong {
  font-size: 12px;
}
.contact__promise small {
  color: #849aa2;
  font-size: 10px;
}
.contact-card {
  padding: clamp(25px, 4vw, 42px);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.28);
}
.contact-card form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-card label {
  display: grid;
  gap: 7px;
  color: #344b54;
  font-size: 11px;
  font-weight: 800;
}
.contact-card label > span {
  color: #91a0a6;
  font-weight: 500;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid #d9e2de;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fafbf9;
  font-size: 13px;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.contact-card input {
  height: 46px;
  padding: 0 13px;
}
.contact-card textarea {
  min-height: 105px;
  padding: 12px 13px;
  resize: vertical;
}
.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 128, 92, 0.1);
}
.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: #a5b0b3;
}
.form-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.privacy-note {
  color: #98a4a8;
  font-size: 9px;
  text-align: center;
  line-height: 1.5;
}
.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.alert--success {
  color: #116044;
  background: #dff4e9;
}
.alert--error {
  color: #8b2d2d;
  background: #fde7e7;
}
.site-footer {
  padding: 48px 0 25px;
  color: #fff;
  background: #041218;
}
.site-footer__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 35px;
}
.site-footer__top p {
  margin: 14px 0 0;
  color: #758b94;
  font-size: 11px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  color: #9dafb5;
  font-size: 11px;
}
.site-footer nav a:hover {
  color: var(--yellow);
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #637780;
  font-size: 9px;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle at 50% -20%, #e5f2e9, var(--canvas) 55%);
  text-align: center;
}
.error-page strong {
  color: var(--green);
  font-size: 72px;
}
.error-page h1 {
  font-family: Georgia, serif;
  font-size: 36px;
}
.error-page p {
  color: var(--muted);
}
.error-page a {
  display: inline-block;
  margin-top: 24px;
  color: var(--green);
  font-weight: 800;
}

.auth-page {
  min-height: 100vh;
  background: var(--canvas);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(600px, 1.2fr);
}
.auth-brand-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(35px, 5vw, 68px);
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.auth-brand-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -330px;
  top: 12%;
  border: 1px solid rgba(244, 196, 48, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(244, 196, 48, 0.025),
    0 0 0 140px rgba(244, 196, 48, 0.02);
}
.auth-brand-panel > * {
  position: relative;
  z-index: 1;
}
.auth-brand-panel h2 {
  margin: 22px 0;
  font-family: Georgia, serif;
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}
.auth-brand-panel h2 em {
  color: var(--yellow);
  font-weight: 500;
}
.auth-brand-panel p {
  max-width: 490px;
  color: #9fb0b6;
  line-height: 1.7;
}
.auth-brand-panel > small {
  color: #58707a;
  font-size: 10px;
}
.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 55px clamp(28px, 6vw, 90px);
}
.auth-form-wrap {
  width: min(720px, 100%);
}
.auth-heading {
  margin-bottom: 30px;
}
.auth-heading--center {
  text-align: center;
}
.auth-heading h1,
.onboarding-heading h1,
.checkpoint-main h1 {
  margin: 15px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.auth-heading p,
.onboarding-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.auth-heading strong {
  color: var(--ink);
}
.auth-form {
  display: grid;
  gap: 18px;
}
.auth-form label,
.onboarding-form label {
  display: grid;
  gap: 8px;
  color: #344b54;
  font-size: 11px;
  font-weight: 800;
}
.auth-form label > span,
.onboarding-form label > span {
  color: #91a0a6;
  font-weight: 500;
}
.auth-form input:not([type="checkbox"]),
.onboarding-form input,
.onboarding-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d5dfda;
  border-radius: 7px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.auth-form input:focus,
.onboarding-form input:focus,
.onboarding-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 128, 92, 0.1);
}
.form-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.form-between > a,
.auth-switch a,
.check-label a {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.check-label {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px !important;
  font-weight: 600 !important;
  line-height: 1.55;
}
.check-label input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--green);
}
.check-label--terms {
  padding: 4px 0;
}
.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.auth-notice {
  display: block;
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  color: #7d5b00;
  background: #fff3c5;
  font-size: 11px;
  text-align: center;
}
.selected-plan--form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 15px;
}
.selected-plan--form span {
  color: var(--muted);
}
.selected-plan--form strong {
  margin-right: auto;
}
.selected-plan--form a {
  color: var(--green);
  font-weight: 800;
}
.auth-symbol {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 25px;
}
.dev-mail {
  margin: 25px 0;
  padding: 18px;
  border: 1px dashed #d6aa24;
  border-radius: 8px;
  background: #fff9df;
}
.dev-mail > strong {
  color: #735a0c;
  font-size: 12px;
}
.dev-mail p {
  margin: 7px 0 14px;
  color: #756a46;
  font-size: 11px;
  line-height: 1.55;
}

.onboarding-page {
  min-height: 100vh;
  padding-bottom: 70px;
  background: var(--canvas);
}
.onboarding-header,
.checkpoint-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(25px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.onboarding-header__brand {
  display: inline-flex;
  align-items: center;
}
.onboarding-header__logo {
  display: block;
  width: 200px;
  height: auto;
}
.onboarding-header > div {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.onboarding-header form,
.checkpoint-header form {
  margin: 0;
}
.onboarding-header button {
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.onboarding-shell {
  width: min(790px, calc(100% - 30px));
  margin: 35px auto 0;
}
.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 35px;
}
.onboarding-progress span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbd6d1;
  border-radius: 50%;
  color: #84938d;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}
.onboarding-progress span:first-child,
.onboarding-progress span.active {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}
.onboarding-progress i {
  width: 65px;
  height: 1px;
  background: #cbd6d1;
}
.onboarding-heading {
  margin-bottom: 30px;
  text-align: center;
}
.onboarding-form {
  display: grid;
  gap: 22px;
  padding: clamp(25px, 5vw, 45px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 55px rgba(11, 32, 41, 0.07);
}
.onboarding-form fieldset {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.onboarding-form legend {
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: 20px;
}
.onboarding-form select {
  appearance: none;
  background: #fff linear-gradient(45deg, transparent 50%, #63767d 50%)
    calc(100% - 16px) 21px/5px 5px no-repeat;
}

.checkpoint-page {
  min-height: 100vh;
  background: var(--canvas);
}
.checkpoint-main {
  width: min(950px, calc(100% - 30px));
  margin: 0 auto;
  padding: 100px 0;
  text-align: center;
}
.checkpoint-main > p {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 35px;
  text-align: left;
}
.checkpoint-grid article {
  display: grid;
  gap: 9px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.checkpoint-grid article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}
.checkpoint-grid small {
  color: var(--muted);
  line-height: 1.5;
}

.legal-page {
  min-height: 100vh;
  background: var(--canvas);
}
.legal-page header {
  height: 74px;
  display: flex;
  align-items: center;
  padding: 0 max(25px, calc((100vw - 900px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.legal-page main {
  width: min(900px, calc(100% - 30px));
  margin: 0 auto;
  padding: 70px 0 100px;
}
.legal-page h1 {
  margin: 18px 0 35px;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 65px);
  font-weight: 500;
}
.legal-page h2 {
  margin: 35px 0 10px;
  font-family: Georgia, serif;
  font-weight: 500;
}
.legal-page p {
  color: #50646c;
  line-height: 1.8;
}
.legal-note {
  margin: 40px 0 25px;
  padding: 15px;
  border-left: 3px solid var(--yellow);
  background: #fff8dc;
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 70px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #0b232e;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: grid;
  }
  .site-nav a {
    padding: 8px;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .site-header__actions .text-link {
    display: none;
  }
  .hero {
    padding-top: 135px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__content {
    text-align: center;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__assurances {
    justify-content: center;
  }
  .dashboard-preview {
    width: min(720px, 92%);
    margin: 20px auto 0;
    transform: none;
  }
  .proof-strip__inner {
    padding-block: 25px;
    flex-direction: column;
    justify-content: center;
  }
  .proof-strip__inner div {
    justify-content: center;
  }
  .audience__grid,
  .contact__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .audience__copy {
    max-width: 650px;
  }
  .contact__copy {
    max-width: 650px;
  }
  .faq .section-heading {
    margin-bottom: 0;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    min-height: auto;
    padding: 28px;
  }
  .auth-brand-panel > div,
  .auth-brand-panel > small {
    display: none;
  }
  .auth-form-panel {
    min-height: calc(100vh - 86px);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .site-header__actions .button {
    display: none;
  }
  .site-header {
    height: 70px;
  }
  .hero {
    min-height: auto;
    padding: 120px 0 75px;
  }
  .hero h1 {
    font-size: clamp(43px, 13vw, 60px);
  }
  .hero__lead {
    font-size: 15px;
  }
  .hero__actions {
    display: grid;
  }
  .hero__assurances {
    gap: 10px 16px;
  }
  .dashboard-preview {
    width: 100%;
  }
  .dashboard-preview__body {
    min-height: 290px;
    grid-template-columns: 35px 1fr;
  }
  .preview-main {
    padding: 15px;
  }
  .preview-stats {
    gap: 5px;
  }
  .preview-stats article {
    padding: 9px;
  }
  .preview-stats small {
    padding: 0;
  }
  .preview-stats .dot,
  .preview-stats b {
    display: none;
  }
  .preview-stats strong {
    font-size: 15px;
  }
  .chart-area {
    height: 100px;
  }
  .floating-card {
    display: none;
  }
  .section {
    padding: 78px 0;
  }
  .section-heading {
    margin-bottom: 38px;
  }
  .section-heading h2 {
    font-size: clamp(38px, 11vw, 52px);
  }
  .feature-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .feature-card--wide > div:first-of-type {
    padding-top: 50px;
  }
  .plan-card--featured {
    transform: none;
    margin-top: 10px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .steps::before {
    display: none;
  }
  .audience__cards {
    grid-template-columns: 1fr;
  }
  .audience__cards article {
    min-height: 115px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
  }
  .site-footer nav {
    gap: 18px;
  }
  .auth-form-panel {
    padding: 42px 18px;
  }
  .auth-heading h1,
  .onboarding-heading h1,
  .checkpoint-main h1 {
    font-size: 40px;
  }
  .auth-form .form-row,
  .onboarding-form .form-row {
    grid-template-columns: 1fr;
  }
  .form-between {
    align-items: flex-start;
    flex-direction: column;
  }
  .checkpoint-grid {
    grid-template-columns: 1fr;
  }
  .onboarding-header > div > span {
    display: none;
  }
  .checkpoint-header {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.selected-plan--form {
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
}

/* Authenticated application shell */
.app-page {
  min-height: 100vh;
  color: #183039;
  background: #f3f5f2;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
}
.app-sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: 255px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #071923;
  box-shadow: 8px 0 30px rgba(4, 18, 24, 0.08);
}
.app-sidebar__brand {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.app-sidebar__brand button {
  display: none;
  border: 0;
  color: #9eb0b6;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.company-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 15px 15px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.company-switch > span {
  display: grid;
  flex: 0 0 37px;
  height: 37px;
  place-items: center;
  border-radius: 7px;
  color: #10242c;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
}
.company-switch div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.company-switch small {
  color: #6f8790;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.13em;
}
.company-switch strong {
  overflow: hidden;
  color: #e8efec;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 15px;
  overflow-y: auto;
}
.app-avatar.app-avatar--soft {
  color: #fff;
  background: #ff6800;
}
.app-nav > small {
  margin: 19px 10px 7px;
  color: #58717b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.app-nav a,
.app-nav__disabled {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  border-radius: 6px;
  color: #91a6ae;
  font-size: 11px;
  font-weight: 700;
}
.app-nav a > span,
.app-nav__disabled > i {
  width: 19px;
  color: #718991;
  font-size: 16px;
  font-style: normal;
  text-align: center;
}
.app-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.app-nav a.active {
  color: #132932;
  background: var(--yellow);
}
.app-nav a.active > span {
  color: #132932;
}
.app-nav__disabled {
  opacity: 0.55;
}
.app-nav__disabled b {
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 10px;
  color: #77909a;
  background: rgba(255, 255, 255, 0.07);
  font-size: 7px;
}
.app-sidebar__footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.app-sidebar__footer > a {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-sidebar__footer div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.app-sidebar__footer strong,
.app-sidebar__footer small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-sidebar__footer strong {
  color: #dce6e3;
  font-size: 10px;
}
.app-sidebar__footer small {
  color: #617982;
  font-size: 8px;
  text-transform: capitalize;
}
.app-sidebar__footer form {
  margin: 0;
}
.app-sidebar__footer button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  color: #7e949c;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.app-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 9px;
  font-weight: 900;
}
.app-avatar--soft {
  color: var(--green);
  background: var(--green-soft);
}
.app-content {
  min-width: 0;
  grid-column: 2;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.app-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 42px);
  border-bottom: 1px solid #dce4df;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}
.app-menu-toggle {
  display: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}
.app-topbar__trail {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.app-topbar__trail span {
  color: #91a0a5;
}
.app-topbar__trail b {
  color: #c2ccc8;
}
.app-topbar__trail strong {
  color: #435860;
}
.app-topbar__actions {
  display: flex;
  align-items: center;
}
.app-main {
  width: 100%;
  max-width: 1480px;
  flex: 1;
  margin: 0 auto;
  padding: 36px clamp(20px, 3vw, 42px) 60px;
}
.app-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.app-page-heading h1 {
  margin: 9px 0 3px;
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 43px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.app-page-heading p {
  margin: 0;
  color: #72848b;
  font-size: 12px;
}
.app-page-heading time {
  padding: 7px 10px;
  border: 1px solid #dbe4df;
  border-radius: 6px;
  color: #718288;
  background: #fff;
  font-size: 9px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 3vw, 42px);
  border-top: 1px solid #dce4df;
  color: #90a09f;
  background: #fff;
  font-size: 8px;
}
.app-overlay {
  display: none;
}
.welcome-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 18px;
  padding: 30px 34px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(120deg, #0c2b35, #0a2029);
}
.welcome-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -115px;
  border: 1px solid rgba(244, 196, 48, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(244, 196, 48, 0.035),
    0 0 0 90px rgba(244, 196, 48, 0.025);
}
.welcome-card > * {
  position: relative;
  z-index: 1;
}
.welcome-card > div:first-child > span {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
}
.welcome-card h2 {
  margin: 7px 0;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 500;
}
.welcome-card p {
  max-width: 670px;
  margin: 0;
  color: #9eb0b6;
  font-size: 11px;
  line-height: 1.65;
}
.welcome-card__meta {
  min-width: 160px;
  display: grid;
  gap: 4px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.welcome-card__meta small {
  color: #6f8992;
  font-size: 7px;
  letter-spacing: 0.13em;
}
.welcome-card__meta strong {
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 20px;
}
.welcome-card__meta span {
  color: #90a5ac;
  font-size: 9px;
  text-transform: capitalize;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  position: relative;
  min-width: 0;
  padding: 21px;
  border: 1px solid #dce4df;
  border-radius: 9px;
  background: #fff;
}
.metric-card__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  color: #62777f;
  background: #eef2ef;
}
.metric-card__icon--green {
  color: var(--green);
  background: var(--green-soft);
}
.metric-card__icon--blue {
  color: #3171a5;
  background: #e0eef9;
}
.metric-card__icon--yellow {
  color: #846400;
  background: #fff2c6;
}
.metric-card > small {
  color: #839399;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.metric-card > strong {
  display: block;
  margin: 11px 0 6px;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
}
.metric-card p {
  margin: 0;
  color: #94a1a5;
  font-size: 9px;
}
.app-grid {
  display: grid;
  gap: 18px;
}
.app-grid--main {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  margin-bottom: 18px;
}
.app-panel {
  border: 1px solid #dce4df;
  border-radius: 9px;
  background: #fff;
}
.app-panel > header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid #e5ebe7;
}
.app-panel > header h2 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.panel-kicker {
  color: var(--green);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.panel-badge {
  padding: 5px 8px;
  border-radius: 15px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 7px;
  font-weight: 800;
}
.panel-badge--muted {
  color: #738389;
  background: #edf1ef;
}
.app-panel > header a {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.people-list > div {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid #edf1ef;
}
.people-list > div:last-child {
  border: 0;
}
.people-list p {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  margin: 0;
}
.people-list strong {
  font-size: 10px;
}
.people-list small {
  overflow: hidden;
  color: #87969b;
  font-size: 8px;
  text-overflow: ellipsis;
}
.people-list em {
  padding: 5px 7px;
  border-radius: 12px;
  color: #5f737a;
  background: #f0f3f1;
  font-size: 7px;
  font-style: normal;
}
.empty-state {
  display: grid;
  place-items: center;
  padding: 50px 20px;
  text-align: center;
}
.empty-state > span {
  font-size: 26px;
}
.empty-state strong {
  margin: 10px 0 5px;
  font-size: 11px;
}
.empty-state p {
  margin: 0;
  color: #87969b;
  font-size: 9px;
}
.company-summary dl {
  margin: 0;
  padding: 8px 22px;
}
.company-summary dl > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ef;
}
.company-summary dl > div:last-child {
  border: 0;
}
.company-summary dt {
  color: #8a999e;
  font-size: 8px;
}
.company-summary dd {
  overflow: hidden;
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #2aa675;
}
.future-metrics > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.future-metrics article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-right: 1px solid #e8edea;
}
.future-metrics article:last-child {
  border: 0;
}
.future-metrics article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  color: #78898f;
  background: #eef2ef;
}
.future-metrics p {
  flex: 1;
  display: grid;
  gap: 4px;
  margin: 0;
}
.future-metrics strong {
  font-size: 10px;
}
.future-metrics small {
  color: #91a0a5;
  font-size: 8px;
}
.future-metrics em {
  color: #a7b3b0;
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: normal;
}
.profile-hero,
.company-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px 27px;
  border: 1px solid #dce4df;
  border-radius: 9px;
  background: #fff;
}
.profile-avatar,
.company-profile-head > span {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 12px;
  color: #10262e;
  background: var(--yellow);
  font-family: Georgia, serif;
  font-size: 21px;
}
.profile-hero > div,
.company-profile-head > div {
  flex: 1;
}
.profile-hero h2,
.company-profile-head h2 {
  margin: 0 0 5px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.profile-hero p,
.company-profile-head p {
  margin: 0;
  color: #809096;
  font-size: 9px;
}
.profile-hero > div > div {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.profile-hero > div > div span {
  padding: 4px 7px;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 7px;
  text-transform: capitalize;
}
.profile-hero > strong {
  color: var(--green);
  font-size: 9px;
}
.company-profile-head > div:last-child {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  padding: 10px 15px;
  border-radius: 7px;
  background: var(--green-soft);
}
.company-profile-head > div:last-child small {
  color: #628178;
  font-size: 7px;
}
.company-profile-head > div:last-child strong {
  color: var(--green);
  font-size: 13px;
}
.form-panel > header {
  margin-bottom: 0;
}
.app-form {
  display: grid;
  gap: 18px;
  padding: 25px 22px;
}
.app-form label {
  display: grid;
  gap: 7px;
  color: #40565e;
  font-size: 9px;
  font-weight: 800;
  position: relative;
}
.form-row label > small {
  position: absolute;
  bottom: -1rem;
  left: 0;
}

.app-form label > span {
  color: #93a0a4;
  font-weight: 500;
}
.app-form input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #d6dfdb;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fafbf9;
  font-size: 11px;
}
.app-form input:disabled {
  color: #89979c;
  background: #f0f3f1;
}
.app-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 128, 92, 0.09);
}
.app-form label > small {
  color: #96a2a6;
  font-size: 7px;
  font-weight: 500;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.system-error-page {
  min-height: 100vh;
  color: #34373d;
  background: #f1f5f7;
  font-family: "Montserrat", sans-serif;
}
.system-error-page header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #dde5e9;
  background: #fff;
}
.system-error-brand {
  display: inline-flex;
  align-items: center;
}
.system-error-brand img {
  display: block;
  width: min(210px, 56vw);
  height: auto;
}
.system-error-page main {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 35px 20px;
  text-align: center;
}
.system-error-code {
  color: rgba(255, 104, 0, 0.12);
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(100px, 20vw, 190px);
  font-weight: 700;
  line-height: 0.75;
}
.system-error-page .eyebrow {
  color: #ff6800;
}
.system-error-page h1 {
  margin: 17px 0 10px;
  color: #34373d;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(36px, 6vw, 55px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.system-error-page p {
  max-width: 500px;
  margin: 0 0 27px;
  color: #707d89;
  line-height: 1.7;
}
.system-error-page .button {
  min-width: 210px;
  color: #fff;
  background: #ff6800;
  border-color: #ff6800;
  font-family: "Comfortaa", sans-serif;
  box-shadow: 0 12px 26px rgba(255, 104, 0, 0.2);
}
.system-error-page .button:hover {
  background: #e95f00;
  border-color: #e95f00;
}

/* User management */
.dev-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid #b9dfd0;
  border-radius: 9px;
  background: #eaf7f1;
}
.dev-invitation strong {
  color: #126b50;
  font-size: 11px;
}
.dev-invitation p {
  margin: 4px 0 0;
  color: #638178;
  font-size: 9px;
}
.dev-invitation .button {
  flex: 0 0 auto;
}
.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.users-toolbar form {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}
.users-toolbar select,
.search-field {
  height: 42px;
  border: 1px solid #d7e0dc;
  border-radius: 6px;
  color: #425960;
  background: #fff;
  font-size: 9px;
}
.users-toolbar select {
  min-width: 145px;
  padding: 0 29px 0 11px;
}
.search-field {
  min-width: 220px;
  max-width: 340px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}
.search-field span {
  color: #8b999e;
  font-size: 17px;
}
.search-field input {
  min-width: 12px;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}
.users-toolbar form > a {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.users-panel {
  overflow: hidden;
}
.users-table {
  min-height: 68px;
  display: grid;
  grid-template-columns:
    minmax(230px, 1.7fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr)
    minmax(105px, 0.8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid #e9eeeb;
}
.users-table:last-child {
  border-bottom: 0;
}
.users-table--head {
  min-height: 43px;
  color: #8a989d;
  background: #f8faf8;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.user-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.user-cell p {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: 0;
}
.user-cell strong,
.user-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-cell strong {
  font-size: 10px;
}
.user-cell small,
.last-access {
  color: #89979c;
  font-size: 8px;
}
.role-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.role-chip--owner {
  color: #765b00;
  background: #fff1bd;
}
.role-chip--admin {
  color: #245d89;
  background: #dfeef9;
}
.role-chip--instructor {
  color: #6c458d;
  background: #eee3f7;
}
.role-chip--student,
.role-chip--none {
  color: #52666d;
  background: #edf1ef;
}
.status-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-chip--active {
  color: #137656;
  background: #dcf2e8;
}
.status-chip--inactive {
  color: #7b898e;
  background: #edf1ef;
}
.status-chip--invited {
  color: #8b6800;
  background: #fff2c6;
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}
.user-actions form {
  margin: 0;
}
.user-actions a,
.user-actions button {
  padding: 0;
  border: 0;
  color: #356b59;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.user-actions a:hover,
.user-actions button:hover {
  text-decoration: underline;
}
.user-actions .danger-link {
  color: #ae4949;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.pagination a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d8e1dd;
  border-radius: 6px;
  color: #60747b;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}
.pagination a.active {
  color: #10272f;
  border-color: var(--yellow);
  background: var(--yellow);
}
.form-back {
  margin: -7px 0 16px;
}
.form-back a {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.app-form fieldset {
  min-width: 0;
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #e5ebe7;
}
.app-form legend {
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: 18px;
}
.app-form select {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #d6dfdb;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fafbf9;
  font-size: 11px;
}
.app-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 128, 92, 0.09);
}
.role-explanation,
.invite-explanation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 7px;
  background: #f1f5f2;
}
.role-explanation > span,
.invite-explanation > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}
.role-explanation p,
.invite-explanation p {
  display: grid;
  gap: 3px;
  margin: 0;
}
.role-explanation strong,
.invite-explanation strong {
  font-size: 9px;
}
.role-explanation small,
.invite-explanation small {
  color: #819096;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.5;
}
.invite-explanation {
  background: #fff8df;
}
.invite-explanation > span {
  color: #765b00;
  background: #ffecaa;
}
.invitation-recipient {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}
.invitation-recipient > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
}
.invitation-recipient div {
  display: grid;
  gap: 4px;
}
.invitation-recipient strong {
  font-size: 11px;
}
.invitation-recipient small {
  color: #819096;
  font-size: 9px;
}

@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-grid--main {
    grid-template-columns: 1fr;
  }
  .users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .users-toolbar > .button {
    align-self: flex-start;
  }
  .users-table {
    grid-template-columns:
      minmax(210px, 1.5fr) repeat(3, minmax(100px, 0.7fr))
      minmax(170px, 1fr);
  }
}
@media (max-width: 820px) {
  .app-shell {
    display: block;
  }
  .app-sidebar {
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .app-shell.sidebar-open .app-sidebar {
    transform: none;
  }
  .app-sidebar__brand button {
    display: block;
  }
  .app-overlay {
    position: fixed;
    z-index: 55;
    inset: 0;
    background: rgba(3, 15, 20, 0.6);
  }
  .app-shell.sidebar-open .app-overlay {
    display: block;
  }
  .menu-locked {
    overflow: hidden;
  }
  .app-content {
    min-height: 100vh;
  }
  .app-menu-toggle {
    display: block;
  }
  .app-topbar__trail {
    margin-right: auto;
    margin-left: 12px;
  }
  .app-topbar__trail span,
  .app-topbar__trail b {
    display: none;
  }
  .welcome-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .welcome-card__meta {
    min-width: 200px;
  }
  .future-metrics > div {
    grid-template-columns: 1fr;
  }
  .future-metrics article {
    border-right: 0;
    border-bottom: 1px solid #e8edea;
  }
}

/* Phase 13.6 — botões, máscaras e formulários em largura integral */
.form-panel,
.user-form-panel,
.class-form-panel {
  width: 100%;
  max-width: none;
}

.app-form {
  width: 100%;
  max-width: none;
}

.form-row--single {
  grid-template-columns: minmax(0, 1fr);
}

.button {
  min-width: 190px;
  min-height: 43px;
  height: 43px;
  gap: 0;
  padding: 0 20px;
}

.button--small {
  min-width: auto;
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
}

.button--full {
  width: 100%;
}

.button--with-icon,
.button--icon-only {
  padding: 0;
}

.button__content {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
}

.button__icon {
  display: grid;
  height: 100%;
  place-items: center;
  /* border-right: 1px solid currentColor; */
  background: rgba(0, 0, 0, 0.07);
}

.button__icon .app-icon,
.user-actions .button__icon .app-icon {
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  align-self: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.button__label {
  padding: 0 16px;
  white-space: nowrap;
}

.button--small.button--with-icon .button__content {
  grid-template-columns: 36px minmax(0, 1fr);
}

.button--small .button__icon .app-icon {
  width: 14px;
  height: 14px;
}

.button--small .button__label {
  padding: 0 12px;
}

.button--icon-only {
  width: 46px;
  min-width: 46px;
}

.button--small.button--icon-only {
  width: 36px;
  min-width: 36px;
}

.button--icon-only .button__content,
.button__content--icon-only {
  grid-template-columns: 1fr;
}

.button--icon-only .button__icon {
  border-right: 0;
  background: transparent;
}

.app-page .button--outline .button__icon {
  background: #fff0e5;
}

.app-page .button--info .button__icon,
.app-page .button--warning .button__icon,
.app-page .button--confirm .button__icon {
  background: rgba(0, 0, 0, 0.08);
}

/* Compatibilidade para controles ainda sem o componente segmentado. */
.button > .app-icon:first-child {
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  align-self: auto;
  margin: 0 9px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.action-button {
  min-height: 30px;
  overflow: hidden;
  padding: 0;
}

.action-button .button__content {
  grid-template-columns: 29px auto;
}

.action-button .button__icon {
  /* border-right: 1px solid currentColor; */
  background: rgba(80, 165, 241, 0.08);
}

.action-button .button__icon .app-icon {
  width: 13px;
  height: 13px;
}

.action-button .button__label {
  padding: 0 9px;
}

.user-actions button.action-button .button__icon {
  background: rgba(52, 195, 143, 0.08);
}

.user-actions .danger-link.action-button .button__icon {
  background: rgba(217, 83, 79, 0.07);
}

.input-group {
  display: grid;
  min-height: 46px;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8e0e5;
  border-radius: 7px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.app-form label > .input-group {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.input-group__prefix {
  display: grid;
  min-width: 52px;
  place-items: center;
  padding: 0 13px;
  border-right: 1px solid #d8e0e5;
  color: #5c6573;
  background: #f3f5f7;
  font-size: 13px;
  font-weight: 800;
}

.app-form .input-group input {
  height: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-form .input-group input:focus {
  box-shadow: none;
}

.input-group:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

[data-cep-feedback] {
  display: block;
  min-height: 18px;
  margin-top: 5px;
}

[data-cep-feedback][data-state="loading"] {
  color: #378bd1;
}
[data-cep-feedback][data-state="success"] {
  color: #2f8f6b;
}
[data-cep-feedback][data-state="error"] {
  color: #c23d3d;
}

.welcome-panel[data-step="2"] {
  position: relative;
}

.cep-lookup-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(241, 245, 247, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cep-lookup-overlay[hidden] {
  display: none !important;
}

.cep-lookup-overlay__content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 104, 0, 0.18);
  border-radius: 12px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.14);
  font-weight: 800;
}

.cep-lookup-overlay__content i {
  color: #ff6800;
  font-size: 20px;
}

@media (max-width: 540px) {
  .onboarding-header__logo {
    width: 165px;
  }
  .button:not(.button--icon-only) {
    width: 100%;
    min-width: 0;
  }
}

/* Fase 16.1 — Central de ajuda */
.support-toolbar form {
  flex: 1 1 760px;
}

.support-toolbar .search-field {
  min-width: 260px;
}

.support-ticket-summary,
.support-thread,
.support-reply,
.support-closed {
  margin-bottom: 20px;
}

.support-ticket-summary > header,
.support-thread > header,
.support-reply > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid #e5eaed;
}

.support-ticket-summary h2,
.support-thread h2,
.support-reply h2 {
  margin: 4px 0 0;
}

.support-ticket-summary header p {
  margin: 7px 0 0;
  color: #768296;
}

.support-ticket-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.support-ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 20px 26px;
}

.support-ticket-meta div {
  padding: 0 22px;
  border-left: 1px solid #e8edef;
}

.support-ticket-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.support-ticket-meta dt {
  margin-bottom: 6px;
  color: #8793a4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-ticket-meta dd {
  margin: 0;
  font-weight: 700;
}

.support-thread__messages {
  display: grid;
  gap: 16px;
  padding: 24px 26px;
}

.support-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.support-message > div {
  max-width: 82%;
  padding: 15px 17px;
  border: 1px solid #e3e9ec;
  border-radius: 4px 16px 16px;
  background: #f7f9fa;
}

.support-message--mine {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.support-message--mine .app-avatar {
  grid-column: 2;
}

.support-message--mine > div {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  border-color: #ffd3b5;
  border-radius: 16px 4px 16px 16px;
  background: #fff5ed;
}

.support-message header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.support-message time {
  color: #8993a2;
  font-size: 11px;
  white-space: nowrap;
}

.support-message p {
  margin: 0;
  line-height: 1.65;
}

.support-reply .form-actions,
.support-status-action {
  justify-content: flex-end;
}

.support-status-action {
  display: flex;
  margin-top: -4px;
}

.support-closed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
}

.support-closed p {
  margin: 5px 0 0;
  color: #768296;
}

.support-status--open,
.support-status--in_progress {
  color: #1269a8;
  background: #e9f4fc;
}

.support-status--waiting_user,
.support-priority--high,
.support-priority--urgent {
  color: #9a5900;
  background: #fff0c3;
}

.support-status--resolved,
.support-status--closed {
  color: #137254;
  background: #ddf5eb;
}

.support-priority--low,
.support-priority--normal {
  color: #596579;
  background: #edf1f4;
}

@media (max-width: 760px) {
  .support-ticket-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .support-ticket-meta div {
    padding: 0;
    border-left: 0;
  }
  .support-ticket-summary > header,
  .support-thread > header,
  .support-reply > header,
  .support-closed {
    align-items: flex-start;
    flex-direction: column;
  }
  .support-message > div {
    max-width: 100%;
  }
}

/* Phase 15.3 — revisão de interface e modais */
.auth-page {
  --green: #ff6500;
  --green-soft: #fff0e6;
  --yellow: #ff6500;
  --canvas: #f2f5f7;
  background: #f2f5f7;
  font-family: "Comfortaa", "Montserrat", Arial, sans-serif;
}
.auth-brand-panel {
  background: #2b3348;
}
.auth-brand-panel::before {
  border-color: rgba(255, 101, 0, 0.18);
  box-shadow:
    0 0 0 70px rgba(255, 101, 0, 0.035),
    0 0 0 140px rgba(255, 101, 0, 0.025);
}
.auth-brand-panel h2,
.auth-heading h1 {
  font-family: "Comfortaa", "Montserrat", Arial, sans-serif;
  letter-spacing: -0.04em;
}
.auth-brand-panel h2 em {
  color: #ff8a3d;
}
.auth-logo {
  display: inline-flex;
  width: min(200px, 60%);
}
.auth-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.auth-form input:not([type="checkbox"]),
.auth-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d4dde2;
  border-radius: 7px;
  outline: 0;
  color: #2b3348;
  background: #fff;
  font: inherit;
  font-size: 13px;
}
.auth-form input:focus,
.auth-form select:focus {
  border-color: #ff6500;
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.12);
}
.auth-page .button:not(.button--outline) {
  border-color: #ff6500;
  background: #ff6500;
}
.auth-page .button:not(.button--outline):hover {
  border-color: #e85c00;
  background: #e85c00;
}
.auth-page .form-between > a,
.auth-page .auth-switch a,
.auth-page .check-label a {
  color: #ff6500;
}
.auth-page .check-label input {
  accent-color: #ff6500;
}
.auth-plan-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.auth-plan-link {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  color: #ff6500;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.app-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.app-modal::backdrop {
  background: rgba(21, 31, 44, 0.62);
  backdrop-filter: blur(2px);
}
.app-modal__surface {
  overflow: auto;
  max-height: calc(100vh - 32px);
  padding: 24px;
  border-radius: 12px;
  background: #f5f7f8;
  box-shadow: 0 24px 70px rgba(20, 30, 45, 0.28);
}
.app-modal__surface > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.app-modal__surface > header h2 {
  margin: 4px 0 0;
}
.app-modal--narrow {
  width: min(620px, calc(100vw - 32px));
}
.app-modal--legal {
  width: min(760px, calc(100vw - 32px));
}
.confirmation-modal {
  width: min(520px, calc(100vw - 32px));
}
.confirmation-modal__surface {
  padding: 26px;
  background: #fff;
}
.confirmation-modal__surface > header {
  margin-bottom: 14px;
}
.confirmation-modal__surface > header h2 {
  font-family: "Comfortaa", sans-serif;
  font-size: 24px;
}
.confirmation-modal__message {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.confirmation-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.confirmation-modal__actions .button {
  min-width: 128px;
}
@media (max-width: 540px) {
  .confirmation-modal__surface {
    padding: 22px 18px;
  }
  .confirmation-modal__actions {
    flex-direction: column-reverse;
  }
}
.legal-modal-content {
  color: #53636f;
  line-height: 1.7;
}
.legal-modal-content h2 {
  margin: 22px 0 5px;
  color: #2b3348;
  font-size: 16px;
}
.register-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.register-plan-grid article {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e3e8eb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(42, 48, 66, 0.08);
}
.register-plan-grid h3 {
  margin: 9px 0;
  color: #ff6500;
  font-size: 24px;
}
.register-plan-grid h3 small {
  color: #89939c;
  font-size: 10px;
}
.register-plan-grid p {
  min-height: 62px;
  color: #677681;
  font-size: 12px;
  line-height: 1.6;
}
.register-plan-grid ul {
  flex: 1;
  margin: 0 0 18px;
  padding-left: 18px;
  color: #2b3348;
  font-size: 12px;
  line-height: 1.9;
}

.platform-plan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 18px 0;
}
.platform-summary__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 26px;
  margin: 0;
  text-align: right;
}
.platform-summary__facts div {
  display: grid;
  gap: 5px;
}
.platform-summary__facts dt {
  color: #8ca0aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.platform-summary__facts dd {
  margin: 0;
  color: #ff6500;
  font-size: 19px;
  font-weight: 800;
}

.user-actions a.action-button,
.user-actions button.action-button {
  min-height: 36px;
  padding: 0;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  appearance: none;
}
.user-actions .action-button .button__content {
  min-height: 34px;
}

@media (max-width: 760px) {
  .register-plan-grid {
    grid-template-columns: 1fr;
  }
  .platform-summary__facts {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .auth-plan-picker {
    grid-template-columns: 1fr;
  }
  .auth-plan-link {
    justify-self: start;
  }
}

/* Parametrização */
.parameter-tabs {
  margin-bottom: 16px;
}

.parameter-panel > header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.parameter-panel > header h2 {
  margin: 3px 0 0;
}

.parameter-panel > header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.parameter-form > footer {
  display: flex;
  justify-content: flex-end;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.parameter-table th:nth-child(1) {
  width: 34%;
}

.parameter-table th:nth-child(2) {
  width: 25%;
}

.parameter-table td {
  vertical-align: middle;
}

.parameter-table td > strong {
  color: var(--ink);
  font-size: 12px;
}

.parameter-table :is(input, select) {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #d6dfdb;
  border-radius: 7px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.parameter-table :is(input, select):focus {
  border-color: var(--green);
  box-shadow: var(--focus-ring);
}

.parameter-value {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.parameter-value span {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  .parameter-table th:nth-child(1),
  .parameter-table th:nth-child(2) {
    width: auto;
  }
}
@media (max-width: 560px) {
  .app-main {
    padding-top: 24px;
  }
  .app-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero,
  .company-profile-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .profile-hero > strong,
  .company-profile-head > div:last-child {
    margin-left: 82px;
  }
  .app-form .form-row {
    grid-template-columns: 1fr;
  }
  .app-footer {
    flex-direction: column;
  }
  .people-list em {
    display: none;
  }
}

@media (max-width: 820px) {
  .users-toolbar form {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .users-table--head {
    display: none;
  }
  .users-table {
    grid-template-columns: 1fr 1fr;
    gap: 11px 18px;
    padding: 18px 20px;
  }
  .user-cell {
    grid-column: 1 / -1;
  }
  .users-table > span[data-label] {
    display: grid;
    gap: 5px;
  }
  .users-table > span[data-label]::before {
    content: attr(data-label);
    color: #96a3a7;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .user-actions {
    grid-column: 1 / -1;
    padding-top: 5px;
  }
}
@media (max-width: 560px) {
  .dev-invitation {
    align-items: flex-start;
    flex-direction: column;
  }
  .users-toolbar form {
    align-items: stretch;
    flex-direction: column;
  }
  .users-toolbar select,
  .search-field {
    width: 100%;
    max-width: none;
  }
  .users-toolbar form > .button {
    width: 100%;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-actions .button {
    width: 100%;
  }
}

/* Units and courts */
.structure-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #fff;
}
.structure-tabs a {
  padding: 9px 17px;
  border-radius: 5px;
  color: #718188;
  font-size: 9px;
  font-weight: 800;
}
.structure-tabs a.active {
  color: #fff;
  background: var(--ink);
}
.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.structure-empty {
  grid-column: 1 / -1;
}
.structure-card {
  min-width: 0;
  overflow: hidden;
}
.structure-card > header {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7ece9;
}
.structure-card > header > div {
  min-width: 0;
  flex: 1;
}
.structure-card h2 {
  overflow: hidden;
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.structure-card__icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 8px;
  color: #765b00;
  background: #fff0b8;
  font-size: 18px;
}
.structure-card__icon--court {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  color: #245d89;
  background: #dfeef9;
}
.structure-card__body {
  min-height: 145px;
  padding: 17px 18px;
}
.structure-address {
  min-height: 38px;
  margin: 0;
  color: #546970;
  font-size: 9px;
  line-height: 1.55;
}
.structure-address small {
  display: block;
  color: #93a0a4;
  font-size: 7px;
}
.structure-card dl {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
}
.structure-card dl > div {
  min-width: 75px;
  padding: 9px;
  border-radius: 6px;
  background: #f2f5f3;
}
.structure-card dt {
  color: #89989d;
  font-size: 7px;
}
.structure-card dd {
  margin: 3px 0 0;
  font-family: Georgia, serif;
  font-size: 17px;
}
.structure-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 13px 0 0;
  color: #89979c;
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.structure-card > footer {
  min-height: 46px;
  padding: 12px 18px;
  border-top: 1px solid #e7ece9;
  background: #fafbf9;
}
.button--disabled {
  color: #51666d;
  border-color: #d9e0dd;
  background: #e9eeeb;
  box-shadow: none;
}
.courts-table {
  grid-template-columns:
    minmax(190px, 1.25fr) minmax(150px, 1fr) minmax(100px, 0.65fr)
    minmax(170px, 1.2fr) minmax(180px, 1fr);
}
.structure-unit-link {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.structure-description-cell {
  overflow: hidden;
  color: #7d8d92;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-form textarea {
  width: 100%;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid #d6dfdb;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fafbf9;
  font-size: 11px;
  line-height: 1.5;
}
.app-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 128, 92, 0.09);
}
.form-row--address {
  grid-template-columns: minmax(130px, 0.6fr) minmax(90px, 0.35fr) minmax(
      220px,
      1.3fr
    );
}

@media (max-width: 1100px) {
  .structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .courts-table {
    grid-template-columns:
      minmax(180px, 1.2fr) minmax(130px, 1fr) minmax(90px, 0.6fr)
      minmax(150px, 1fr) minmax(160px, 1fr);
  }
}
@media (max-width: 820px) {
  .structure-grid {
    grid-template-columns: 1fr;
  }
  .courts-table {
    grid-template-columns: 1fr 1fr;
  }
  .structure-description-cell {
    white-space: normal;
  }
  .form-row--address {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .structure-tabs {
    display: flex;
  }
  .structure-tabs a {
    flex: 1;
    text-align: center;
  }
  .structure-card__body {
    min-height: auto;
  }
}

/* Classes, recurring schedules and enrollments */
.classes-table {
  grid-template-columns:
    minmax(190px, 1.3fr) minmax(150px, 1fr) minmax(85px, 0.55fr)
    minmax(105px, 0.7fr) minmax(90px, 0.6fr) minmax(230px, 1.35fr);
  min-height: 36px !important;
}
.classes-table > span[data-label] {
  font-size: 8px;
}
.classes-table > span[data-label] small {
  display: block;
  margin-top: 3px;
  color: #94a0a4;
  font-size: 7px;
}
.class-card__icon {
  color: #6c458d;
  background: #eee3f7;
}
.class-location {
  font-size: 9px;
}
.capacity-count {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}
.schedule-count {
  color: var(--green);
  font-size: 11px;
}
.class-form-panel {
  max-width: 1080px;
}
.schedule-help {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 7px;
  background: #eef5f2;
}
.schedule-help > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}
.schedule-help p {
  display: grid;
  gap: 3px;
  margin: 0;
}
.schedule-help strong {
  font-size: 9px;
}
.schedule-help small {
  color: #7d8e92;
  font-size: 8px;
  font-weight: 500;
}
.schedule-list {
  display: grid;
  gap: 9px;
}
.schedule-row {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.2fr) repeat(2, minmax(115px, 0.7fr))
    minmax(145px, 0.9fr) 34px;
  align-items: end;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e0e7e3;
  border-radius: 7px;
  background: #fafbf9;
}
.schedule-remove {
  width: 34px;
  height: 45px;
  border: 1px solid #e4cdcd;
  border-radius: 6px;
  color: #ae4949;
  background: #fff4f4;
  font-size: 18px;
  cursor: pointer;
}
.schedule-add {
  justify-self: start;
}
.class-roster-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid #dce4df;
  border-radius: 9px;
  background: #fff;
}
.class-roster-summary > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.class-roster-summary p {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: 0;
}
.class-roster-summary p strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}
.class-roster-summary p small {
  color: #819096;
  font-size: 8px;
}
.class-roster-summary > div:last-child {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  text-align: right;
}
.class-roster-summary > div:last-child small {
  color: #8c999d;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.class-roster-summary > div:last-child strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.roster-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin: 1rem 0;
}
.roster-list article {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e9eeeb;
}
.roster-list article:last-child {
  border-bottom: 0;
}
.roster-list p {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  margin: 0;
}
.roster-list p strong {
  font-size: 10px;
}
.roster-list p small {
  overflow: hidden;
  color: #87969b;
  font-size: 8px;
  text-overflow: ellipsis;
}
.roster-list form {
  margin: 0;
}
.roster-list button {
  padding: 0;
  border: 0;
  color: #ae4949;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.roster-enroll {
  padding: 22px;
}
.compact-empty {
  padding-block: 38px;
}

@media (max-width: 1150px) {
  .classes-table {
    grid-template-columns:
      minmax(180px, 1.2fr) minmax(130px, 0.9fr)
      75px 90px 85px minmax(185px, 1.1fr);
  }
}
@media (max-width: 900px) {
  .classes-table--head {
    display: none;
  }
  .classes-table {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px 18px;
    padding: 18px 20px;
  }
  .classes-table .user-cell,
  .classes-table .user-actions {
    grid-column: 1 / -1;
  }
  .classes-table > span[data-label] {
    display: grid;
    gap: 4px;
  }
  .classes-table > span[data-label]::before {
    content: attr(data-label);
    color: #96a3a7;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .roster-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .schedule-row {
    grid-template-columns: 1fr 1fr;
  }
  .schedule-row label:first-child,
  .schedule-row label:nth-child(4) {
    grid-column: span 2;
  }
  .schedule-remove {
    grid-column: 2;
    justify-self: end;
  }
}

/* Fase 15.1 — integração financeira dos alunos */
.inline-panel-action {
  align-items: center;
  border-top: 1px solid var(--app-border, #e3e9ec);
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
}
.inline-panel-action p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}
.inline-panel-action small {
  color: var(--app-muted, #75828a);
}
.form-notice--warning {
  background: #fff8e5;
  border: 1px solid #f4d98a;
  border-radius: 0.75rem;
  color: #735600;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}
.form-notice--warning p {
  margin: 0.25rem 0 0;
}
.invoice-status--paid {
  background: #dcf8e9;
  color: #087443;
}
.invoice-status--overdue,
.invoice-status--failed,
.invoice-status--chargeback {
  background: #fee7e7;
  color: #b32929;
}
.invoice-status--pending,
.invoice-status--processing {
  background: #fff0c2;
  color: #765900;
}
.invoice-status--cancelled,
.invoice-status--refunded {
  background: #edf1f3;
  color: #5c6970;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
@media (max-width: 760px) {
  .inline-panel-action {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
  }
}
@media (max-width: 560px) {
  .class-roster-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .class-roster-summary > div:last-child {
    text-align: left;
  }
  .schedule-row {
    grid-template-columns: 1fr;
  }
  .schedule-row label:first-child,
  .schedule-row label:nth-child(4),
  .schedule-remove {
    grid-column: auto;
  }
  .schedule-remove {
    justify-self: stretch;
    width: 100%;
  }
}

/* Class agenda */
.agenda-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.agenda-toolbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.agenda-toolbar strong {
  min-width: 160px;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  text-align: center;
}
.agenda-toolbar form {
  margin: 0;
}
.agenda-generator {
  margin-bottom: 16px;
}
.agenda-generator > header {
  min-height: 60px;
}
.agenda-generator form {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px 20px;
}
.agenda-generator label {
  display: grid;
  gap: 5px;
  color: #5a6d73;
  font-size: 8px;
  font-weight: 800;
}
.agenda-generator input {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d6dfdb;
  border-radius: 6px;
  background: #fafbf9;
  font-size: 9px;
}
.agenda-generator form > small {
  max-width: 320px;
  margin-left: auto;
  color: #88979c;
  font-size: 8px;
  line-height: 1.5;
}
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: 16px;
}
.agenda-calendar {
  overflow: hidden;
  padding: 14px;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays span {
  padding: 8px;
  color: #8b999e;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
}
.calendar-grid {
  overflow: hidden;
  border-top: 1px solid #e3e9e6;
  border-left: 1px solid #e3e9e6;
  border-radius: 7px;
}
.calendar-day {
  min-width: 0;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-right: 1px solid #e3e9e6;
  border-bottom: 1px solid #e3e9e6;
  background: #fff;
}
.calendar-day:hover {
  background: #f8faf8;
}
.calendar-day.selected {
  box-shadow: inset 0 0 0 2px var(--green);
}
.calendar-day.today > b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #10262e;
  background: var(--yellow);
}
.calendar-day > b {
  width: 24px;
  color: #536970;
  font-size: 9px;
}
.calendar-day--blank {
  background: #f4f6f4;
}
.calendar-event {
  overflow: hidden;
  padding: 4px 5px;
  border-left: 2px solid #6f7e83;
  border-radius: 3px;
  color: #53666d;
  background: #edf1ef;
  font-size: 6px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event--open {
  color: #126b50;
  border-color: #16815f;
  background: #ddf2e9;
}
.calendar-event--closed {
  color: #53666d;
  border-color: #7c8a8e;
}
.calendar-event--cancelled {
  color: #9b4b4b;
  border-color: #bd6666;
  background: #f9e7e7;
  text-decoration: line-through;
}
.calendar-day > small {
  color: #8e9a9e;
  font-size: 6px;
}
.agenda-day {
  min-width: 0;
  overflow: hidden;
}
.agenda-event-list > a {
  min-height: 73px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 17px;
  border-bottom: 1px solid #e9eeeb;
}
.agenda-event-list > a:last-child {
  border: 0;
}
.agenda-event-list > a:hover {
  background: #fafbf9;
}
.agenda-event-list time {
  flex: 0 0 39px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 15px;
}
.agenda-event-list time small {
  display: block;
  margin-top: 2px;
  color: #95a1a5;
  font-family: Inter, sans-serif;
  font-size: 7px;
}
.agenda-event-list p {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
  margin: 0;
}
.agenda-event-list p strong,
.agenda-event-list p small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agenda-event-list p strong {
  font-size: 9px;
}
.agenda-event-list p small {
  color: #849399;
  font-size: 7px;
}
.occurrence-status--scheduled {
  color: #765b00;
  background: #fff1bd;
}
.occurrence-status--open {
  color: #137656;
  background: #dcf2e8;
}
.occurrence-status--closed {
  color: #63747a;
  background: #e9eeeb;
}
.occurrence-status--cancelled {
  color: #a44848;
  background: #f8e3e3;
}
.form-row--three {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}
.occurrence-hero {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #dce4df;
  border-radius: 9px;
  background: #fff;
}
.occurrence-hero > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.agenda-card__icon {
  color: #245d89;
  background: #dfeef9;
}
.occurrence-hero p {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: 0;
}
.occurrence-hero p strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
.occurrence-hero p small {
  color: #819096;
  font-size: 8px;
}
.occurrence-hero dl {
  display: flex;
  gap: 20px;
  margin: 0;
}
.occurrence-hero dl > div {
  display: grid;
  gap: 4px;
}
.occurrence-hero dt {
  color: #8d999e;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.occurrence-hero dd {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
}
.occurrence-actions {
  display: flex;
  gap: 7px;
}
.occurrence-actions form {
  margin: 0;
}
.occurrence-actions .user-actions {
  padding: 1rem;
}
.occurrence-note {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
  background: #fff9e4;
}
.occurrence-note strong {
  font-size: 8px;
}
.occurrence-note p {
  margin: 4px 0 0;
  color: #687b81;
  font-size: 9px;
}
.occurrence-participants article {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  border-bottom: 1px solid #e9eeeb;
}
.occurrence-participants article:last-child {
  border: 0;
}
.occurrence-participants p {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  margin: 0;
}
.occurrence-participants p strong {
  font-size: 10px;
}
.occurrence-participants p small {
  overflow: hidden;
  color: #87969b;
  font-size: 7px;
  text-overflow: ellipsis;
}
.occurrence-participants form {
  margin: 0;
}
.occurrence-participants select {
  height: 31px;
  padding: 0 7px;
  border: 1px solid #d6dfdb;
  border-radius: 5px;
  background: #fff;
  font-size: 8px;
}
.occurrence-participants button {
  padding: 0;
  border: 0;
  color: #ae4949;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.attendance-chip {
  padding: 5px 7px;
  border-radius: 12px;
  color: #607279;
  background: #edf1ef;
  font-size: 7px;
}

@media (max-width: 1100px) {
  .agenda-layout {
    grid-template-columns: 1fr;
  }
  .occurrence-hero {
    grid-template-columns: 1fr auto;
  }
  .occurrence-hero dl {
    grid-column: 1 / -1;
  }
  .occurrence-actions {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 760px) {
  .agenda-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .agenda-toolbar > div:last-child {
    flex-wrap: wrap;
  }
  .agenda-generator form {
    align-items: stretch;
    flex-direction: column;
  }
  .agenda-generator form > small {
    max-width: none;
    margin: 0;
  }
  .calendar-day {
    min-height: 76px;
    padding: 5px;
  }
  .calendar-event {
    max-width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: transparent;
    background: #76868b;
  }
  .calendar-event--open {
    background: #16815f;
  }
  .calendar-event--cancelled {
    background: #bd6666;
  }
  .form-row--three {
    grid-template-columns: 1fr;
  }
  .occurrence-hero {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
  .occurrence-hero dl {
    width: 100%;
    flex-wrap: wrap;
  }
  .occurrence-actions {
    flex-wrap: wrap;
  }
  .occurrence-participants article {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .occurrence-participants p {
    min-width: calc(100% - 50px);
  }
}
.permission-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.permission-intro > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.permission-intro p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}
.permission-intro small {
  color: var(--muted);
}
.permission-role-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  flex-wrap: wrap;
}
.permission-role-tabs a {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.permission-role-tabs a.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.permission-form__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.permission-form__header h2 {
  margin: 0.15rem 0 0;
}
.permission-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.permission-group {
  padding: 0;
  overflow: hidden;
}
.permission-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.permission-group h3 {
  margin: 0.15rem 0 0;
}
.permission-group > header > span {
  color: var(--muted);
  font-size: 0.8rem;
}
.permission-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.permission-option:last-child {
  border-bottom: 0;
}
.permission-option:hover {
  background: #f8fbfc;
}
.permission-option input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--green);
}
.permission-option > span {
  display: grid;
  gap: 0.2rem;
}
.permission-option small {
  color: var(--muted);
}
.permission-option code {
  color: var(--green);
  font-size: 0.72rem;
}
.permission-option em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  background: #eef4f5;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
}
.permission-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.permission-form > footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.app-nav__hint {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
}
@media (max-width: 800px) {
  .permission-groups {
    grid-template-columns: 1fr;
  }
  .permission-form__header,
  .permission-form > footer,
  .permission-intro {
    align-items: stretch;
    flex-direction: column;
  }
  .permission-option {
    grid-template-columns: auto 1fr;
  }
  .permission-option em {
    grid-column: 2;
  }
}

/* Commercial plans and member subscriptions */
.commerce-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.commerce-empty {
  grid-column: 1/-1;
}
.commerce-plan-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.commerce-plan-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}
.commerce-plan-card h2 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
.commerce-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 18px 20px 10px;
}
.commerce-price strong {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.commerce-price small,
.commerce-plan-card > p {
  color: var(--muted);
}
.commerce-plan-card > p {
  min-height: 42px;
  margin: 0;
  padding: 0 20px;
  font-size: 9px;
  line-height: 1.55;
}
.commerce-plan-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: auto 0 0;
  padding: 18px 20px;
}
.commerce-plan-card dl div {
  display: grid;
  gap: 4px;
}
.commerce-plan-card dt {
  color: #89979c;
  font-size: 7px;
  font-weight: 900;
}
.commerce-plan-card dd {
  margin: 0;
  font-size: 8px;
}
.commerce-plan-card footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.snapshot-note {
  padding: 14px 16px;
  border-left: 3px solid var(--yellow);
  border-radius: 5px;
  background: #fff9e2;
}
.snapshot-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.commerce-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.commerce-actions form {
  margin: 0;
}
.subscription-table {
  grid-template-columns: 1.4fr 1fr 0.65fr 1fr 0.65fr 0.55fr;
}
.subscription-table > span {
  display: grid;
  gap: 3px;
}
.subscription-table small {
  color: #87969b;
  font-size: 7px;
}
.subscription-table > a {
  font-size: 8px;
  font-weight: 800;
}
.subscription-status--pending {
  color: #765b00;
  background: #fff1bd;
}
.subscription-status--active {
  color: #137656;
  background: #dcf2e8;
}
.subscription-status--suspended {
  color: #8b5a10;
  background: #fff0d7;
}
.subscription-status--cancelled {
  color: #a44848;
  background: #f8e3e3;
}
.subscription-status--expired,
.subscription-status--completed {
  color: #63747a;
  background: #e9eeeb;
}
.subscription-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.5fr;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.subscription-hero > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.subscription-hero p {
  display: grid;
  gap: 3px;
  margin: 0;
}
.subscription-hero p strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}
.subscription-hero p small {
  color: var(--muted);
  font-size: 8px;
}
.subscription-hero dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.subscription-hero dl div {
  display: grid;
  gap: 5px;
}
.subscription-hero dt {
  color: #8d999e;
  font-size: 6px;
  font-weight: 900;
}
.subscription-hero dd {
  margin: 0;
  font-size: 8px;
  font-weight: 800;
}
.subscription-hero dd > span,
.subscription-hero dd > small {
  display: block;
}
.subscription-hero dd > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 500;
  line-height: 1.45;
}
.subscription-detail-page {
  display: grid;
  gap: 20px;
}
.subscription-detail-page > .subscription-hero,
.subscription-detail-page > .subscription-actions {
  margin-bottom: 0;
}
.subscription-actions {
  margin-bottom: 16px;
}
.subscription-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.subscription-actions form {
  margin: 0;
}
.subscription-actions > div > .danger-button {
  margin-left: auto;
}
.cancel-subscription {
  display: flex;
  gap: 7px;
  margin-left: auto !important;
}
.cancel-subscription input {
  min-width: 240px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d8dfdc;
  border-radius: 5px;
}
.danger-button {
  border: 1px solid #c85b5b;
  border-radius: 5px;
  color: #a94444;
  background: #fff;
  cursor: pointer;
}
.account-details dd > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.subscription-history > div {
  padding: 4px 20px 16px;
}
.subscription-history article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #e9eeeb;
}
.subscription-history article:last-child {
  border: 0;
}
.subscription-history article > span {
  width: 10px;
  height: 10px;
  border: 3px solid #cde6db;
  border-radius: 50%;
  background: var(--green);
}
.subscription-history p {
  display: grid;
  gap: 3px;
  margin: 0;
}
.subscription-history p strong {
  font-size: 9px;
}
.subscription-history p small,
.subscription-history em {
  color: var(--muted);
  font-size: 7px;
}
.subscription-history em {
  font-style: normal;
}
@media (max-width: 1000px) {
  .commerce-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subscription-hero {
    grid-template-columns: 1fr;
  }
  .subscription-hero dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subscription-table {
    grid-template-columns: 1fr 1fr 0.7fr;
  }
  .subscription-table--head {
    display: none;
  }
  .subscription-table > * {
    display: grid;
  }
  .subscription-table > *:nth-child(n + 4) {
    margin-top: 7px;
  }
}
@media (max-width: 650px) {
  .subscription-actions > div > .danger-button {
    margin-left: 0;
  }
  .commerce-plan-grid {
    grid-template-columns: 1fr;
  }
  .subscription-hero dl {
    grid-template-columns: 1fr 1fr;
  }
  .commerce-actions,
  .cancel-subscription {
    align-items: stretch;
    flex-direction: column;
  }
  .cancel-subscription {
    width: 100%;
    margin-left: 0 !important;
  }
  .cancel-subscription input {
    min-width: 0;
    width: 100%;
  }
  .subscription-table {
    grid-template-columns: 1fr;
  }
  .subscription-history article {
    grid-template-columns: auto 1fr;
  }
  .subscription-history em {
    grid-column: 2;
  }
}

/* SaaS platform subscription */
.platform-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
  padding: 25px 28px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(120deg, #0c2b35, #0a2029);
}
.platform-summary h2 {
  margin: 6px 0;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}
.platform-summary p {
  margin: 0;
  color: #9eb0b6;
  font-size: 9px;
}
.platform-summary__price {
  display: grid;
  gap: 5px;
  text-align: right;
}
.platform-summary__price small {
  color: #718b94;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.platform-summary__price strong {
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}
.platform-summary__price i {
  justify-self: end;
}
.status-chip--cancelled {
  color: #a44848;
  background: #f8e3e3;
}
.status-chip--suspended {
  color: #8b5a10;
  background: #fff0d7;
}
.platform-usage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.platform-usage article {
  padding: 17px 18px;
}
.platform-usage small {
  color: #839399;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.platform-usage strong {
  display: block;
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
.platform-usage strong span {
  color: #8c999e;
  font-family: inherit;
  font-size: 12px;
}
.platform-usage article > div {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eeeb;
}
.platform-usage article > div i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--green);
}
.platform-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.platform-plan-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}
.platform-plan-card--current {
  border-color: #58a88d;
  box-shadow: 0 0 0 2px rgba(18, 128, 92, 0.08);
}
.platform-plan-card > p {
  min-height: 40px;
  margin: 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
.platform-plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 17px 20px;
}
.platform-plan-card__price strong {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}
.platform-plan-card__price small {
  color: var(--muted);
  font-size: 8px;
}
.platform-plan-card > ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}
.platform-plan-card > ul li {
  font-size: 8px;
}
.platform-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.platform-features span {
  padding: 5px 7px;
  border-radius: 12px;
  color: #356b59;
  background: #edf6f2;
  font-size: 7px;
}
.platform-features span.is-unavailable {
  color: #8e989f;
  background: #f1f3f4;
}
.platform-plan-card > form {
  margin: auto 0 0;
  padding: 0 20px 20px;
}
.platform-plan-card > form .button {
  width: 100%;
}
.platform-cancel {
  margin-bottom: 16px;
}
.platform-cancel > p {
  margin: 0;
  padding: 16px 20px 0;
  color: var(--muted);
  font-size: 9px;
}
.platform-cancel > form {
  display: flex;
  gap: 8px;
  padding: 14px 20px 20px;
}
.platform-cancel input {
  min-width: 260px;
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8dfdc;
  border-radius: 5px;
}
.platform-cancel button {
  padding: 0 15px;
}
.platform-history > div {
  padding: 4px 20px 16px;
}
.platform-history article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e9eeeb;
}
.platform-history article:last-child {
  border: 0;
}
.platform-history article > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #765b00;
  background: #fff1bd;
  font-size: 9px;
}
.platform-history p {
  display: grid;
  gap: 3px;
  margin: 0;
}
.platform-history p strong {
  font-size: 9px;
}
.platform-history p small,
.platform-history time {
  color: var(--muted);
  font-size: 7px;
}
@media (max-width: 950px) {
  .platform-usage {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform-plan-grid {
    grid-template-columns: 1fr;
  }
  .platform-plan-card > p {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .platform-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .platform-summary__price {
    text-align: left;
  }
  .platform-summary__price i {
    justify-self: start;
  }
  .platform-usage {
    grid-template-columns: 1fr 1fr;
  }
  .platform-cancel > form {
    flex-direction: column;
  }
  .platform-cancel input {
    min-width: 0;
  }
  .platform-history article {
    grid-template-columns: auto 1fr;
  }
  .platform-history time {
    grid-column: 2;
  }
}

/* Platform billing without webhooks */
.billing-panel {
  margin-bottom: 16px;
  overflow: hidden;
}
.billing-status--not_applicable {
  color: #63747a;
  background: #e9eeeb;
}
.billing-status--pending {
  color: #765b00;
  background: #fff1bd;
}
.billing-status--trial {
  color: #9a4b00;
  background: #fff0e5;
}
.billing-status--complimentary {
  color: #4d4a9e;
  background: #eeecff;
}
.billing-status--current {
  color: #137656;
  background: #dcf2e8;
}
.billing-status--grace {
  color: #8b5a10;
  background: #fff0d7;
}
.billing-status--past_due,
.billing-status--cancelled {
  color: #a44848;
  background: #f8e3e3;
}
.billing-overview {
  display: grid;
  grid-template-columns: 180px 180px minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}
.billing-overview > div {
  display: grid;
  gap: 4px;
}
.billing-overview small {
  color: #8a989d;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.billing-overview strong {
  font-size: 9px;
}
.billing-overview p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}
.billing-warning {
  padding: 11px 20px;
  color: #765b00;
  background: #fff8df;
  font-size: 8px;
  margin-bottom: 1rem;
}
.billing-invoices article {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) 0.55fr 0.75fr 0.55fr minmax(
      150px,
      0.8fr
    );
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 20px;
  border-bottom: 1px solid #e9eeeb;
}
.billing-invoices article:last-child {
  border-bottom: 0;
}
.billing-invoices article > div:first-child {
  display: grid;
  gap: 3px;
}
.billing-invoices article > div:first-child small {
  color: #8b999e;
  font-size: 6px;
  font-weight: 900;
}
.billing-invoices article > div:first-child strong {
  font-size: 10px;
}
.billing-invoices article > div:first-child span,
.billing-invoices article > span {
  color: var(--muted);
  font-size: 7px;
}
.billing-invoices article > strong {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}
.invoice-status--pending,
.invoice-status--processing {
  color: #765b00;
  background: #fff1bd;
}
.invoice-status--paid {
  color: #137656;
  background: #dcf2e8;
}
.invoice-status--failed,
.invoice-status--overdue,
.invoice-status--refund_pending,
.invoice-status--refunded,
.invoice-status--chargeback {
  color: #a44848;
  background: #f8e3e3;
}
.invoice-status--cancelled {
  color: #63747a;
  background: #e9eeeb;
}
.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.billing-actions form {
  margin: 0;
}
.billing-actions button {
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.billing-actions button:hover {
  text-decoration: underline;
}
@media (max-width: 850px) {
  .billing-overview {
    grid-template-columns: 1fr 1fr;
  }
  .billing-overview p {
    grid-column: 1/-1;
  }
  .billing-invoices article {
    grid-template-columns: 1fr 1fr;
  }
  .billing-invoices article > div:first-child,
  .billing-actions {
    grid-column: 1/-1;
  }
}
@media (max-width: 520px) {
  .billing-overview {
    grid-template-columns: 1fr;
  }
  .billing-overview p {
    grid-column: auto;
  }
  .billing-invoices article {
    grid-template-columns: 1fr;
  }
  .billing-invoices article > div:first-child,
  .billing-actions {
    grid-column: auto;
  }
}

/* Phase 13.1 — visual system and component normalization */
.app-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  overflow: visible;
  vertical-align: -0.18em;
}

.app-page {
  --component-radius: 10px;
  --component-shadow: 0 8px 28px rgba(7, 25, 35, 0.055);
  --focus-ring: 0 0 0 3px rgba(18, 128, 92, 0.18);
  color: #183039;
  background: #f4f6f4;
  font-size: 14px;
}

.app-page button:disabled,
.app-page input:disabled,
.app-page select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.app-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}
.app-sidebar {
  width: 268px;
  background: linear-gradient(180deg, #071923 0%, #0a222c 100%);
}
.app-sidebar__brand {
  height: 72px;
  padding: 0 22px;
}
.app-sidebar__brand .brand {
  font-size: 17px;
}
.app-sidebar__brand button {
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
}
.app-sidebar__brand button .app-icon {
  width: 20px;
  height: 20px;
}
.company-switch {
  margin: 18px 14px 7px;
  padding: 12px;
  border-radius: 10px;
}
.company-switch > span {
  flex-basis: 40px;
  height: 40px;
  border-radius: 9px;
  font-size: 12px;
}
.company-switch small {
  font-size: 9px;
}
.company-switch strong {
  font-size: 12px;
}
.app-nav {
  gap: 3px;
  padding: 8px 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.app-nav > small {
  margin: 17px 11px 6px;
  color: #78909a;
  font-size: 9px;
  line-height: 1;
}
.app-nav a {
  position: relative;
  min-height: 42px;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
}
.app-nav a > span {
  width: 21px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.app-nav a > span .app-icon {
  width: 19px;
  height: 19px;
}
.app-nav a.active {
  box-shadow: 0 6px 18px rgba(244, 196, 48, 0.14);
}
.app-nav a.active::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  right: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.app-sidebar__footer {
  padding: 13px 14px;
}
.app-sidebar__footer strong {
  font-size: 11px;
}
.app-sidebar__footer small {
  font-size: 9px;
}
.app-sidebar__footer button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
}
.app-sidebar__footer button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.app-sidebar__footer button .app-icon {
  width: 18px;
  height: 18px;
}

.app-topbar {
  height: 72px;
  padding-inline: clamp(22px, 3vw, 46px);
}
.app-menu-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
}
.app-menu-toggle:hover {
  background: #eef3f0;
}
.app-menu-toggle .app-icon {
  width: 22px;
  height: 22px;
}
.app-topbar__trail {
  font-size: 12px;
}
.app-topbar__trail strong {
  font-weight: 750;
}
.app-topbar__actions .app-avatar {
  box-shadow: 0 0 0 3px #e4f1eb;
}
.app-main {
  max-width: 1500px;
  padding: 34px clamp(22px, 3vw, 46px) 64px;
}
.app-page-heading {
  margin-bottom: 24px;
}
.app-page-heading h1 {
  margin: 7px 0 5px;
  font-size: clamp(30px, 3.2vw, 40px);
}
.app-page-heading p {
  font-size: 13px;
  line-height: 1.55;
}
.app-page-heading time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 11px;
}
.app-page-heading time .app-icon {
  width: 15px;
  height: 15px;
}
.app-footer {
  padding: 18px clamp(22px, 3vw, 46px);
  font-size: 10px;
}

.welcome-card {
  margin-bottom: 20px;
  padding: 30px 32px;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(7, 25, 35, 0.11);
}
.welcome-card > div:first-child > span {
  font-size: 12px;
}
.welcome-card h2 {
  font-size: clamp(24px, 2.7vw, 32px);
}
.welcome-card p {
  font-size: 13px;
}
.welcome-card__meta {
  border-radius: 10px;
}
.welcome-card__meta small {
  font-size: 9px;
}
.welcome-card__meta span {
  font-size: 11px;
}

.metric-grid {
  gap: 16px;
  margin-bottom: 20px;
}
.metric-card {
  min-height: 142px;
  padding: 22px;
  border-radius: var(--component-radius);
  box-shadow: var(--component-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 32px rgba(7, 25, 35, 0.08);
}
.metric-card__icon {
  width: 38px;
  height: 38px;
  top: 20px;
  right: 20px;
  border-radius: 9px;
}
.metric-card__icon .app-icon {
  width: 20px;
  height: 20px;
}
.metric-card > small {
  font-size: 9px;
}
.metric-card > strong {
  margin: 13px 0 7px;
  font-size: 35px;
}
.metric-card p {
  font-size: 11px;
}

.app-grid {
  gap: 20px;
}
.app-grid--main {
  margin-bottom: 20px;
}
.app-panel {
  border-color: #dce5e0;
  border-radius: var(--component-radius);
  box-shadow: var(--component-shadow);
}
.app-panel > header {
  min-height: 76px;
  padding: 18px 22px;
}
.app-panel > header h2 {
  margin-top: 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.015em;
}
.panel-kicker {
  font-size: 9px;
}
.panel-badge {
  padding: 6px 9px;
  font-size: 10px;
}
.app-panel > header a,
.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.panel-link .app-icon {
  width: 15px;
  height: 15px;
}
.people-list > div {
  min-height: 70px;
}
.people-list strong {
  font-size: 13px;
}
.people-list small {
  font-size: 11px;
}
.people-list em {
  padding: 6px 9px;
  font-size: 10px;
}
.empty-state {
  padding: 48px 22px;
}
.empty-state > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 24px;
}
.empty-state > span .app-icon {
  width: 25px;
  height: 25px;
}
.empty-state strong {
  margin: 13px 0 6px;
  font-size: 13px;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.55;
}
.company-summary dt {
  font-size: 11px;
}
.company-summary dd {
  font-size: 12px;
}
.future-metrics article {
  min-height: 86px;
}
.future-metrics article > span {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.future-metrics article > span .app-icon {
  width: 20px;
  height: 20px;
}
.future-metrics strong {
  font-size: 12px;
}
.future-metrics small {
  font-size: 11px;
}

.button {
  border-radius: 8px;
}
.button .app-icon {
  width: 17px;
  height: 17px;
}
.button--small .app-icon {
  width: 15px;
  height: 15px;
}
.alert {
  font-size: 12px;
  line-height: 1.5;
}
.search-field {
  min-width: 240px;
  min-height: 44px;
}
.search-field > span {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  font-size: 0;
}
.search-field > span::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}
.search-field > span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.8px;
  right: 0;
  bottom: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}
.search-field > span .app-icon {
  width: 17px;
  height: 17px;
}
.search-field input {
  font-size: 12px;
}
.users-toolbar select,
.search-field {
  height: 44px;
  border-radius: 8px;
  font-size: 12px;
}
.users-toolbar form > a {
  font-size: 11px;
}
.users-panel {
  border-radius: var(--component-radius);
}
.users-table {
  min-height: 72px;
}
.users-table--head {
  min-height: 46px;
  font-size: 9px;
}
.user-cell strong {
  font-size: 12px;
}
.user-cell small,
.last-access {
  font-size: 10px;
}
.role-chip,
.status-chip {
  padding: 6px 9px;
  font-size: 10px;
}
.user-actions {
  gap: 11px;
}
.user-actions a,
.user-actions button {
  font-size: 11px;
}

.form-back a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.form-back a .app-icon {
  width: 15px;
  height: 15px;
}
.app-form {
  gap: 22px;
  padding: 26px 24px;
}
.app-form label {
  gap: 8px;
  font-size: 12px;
}
.app-form label > span,
.app-form label > small {
  font-size: 10px;
}
.app-form :is(input, select, textarea) {
  min-height: 46px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.app-form textarea {
  min-height: 110px;
  padding: 12px 13px;
  resize: vertical;
}
.app-form :is(input, select, textarea):focus {
  border-color: var(--green);
  box-shadow: var(--focus-ring);
}
.app-form legend {
  font-family: inherit;
  font-size: 16px;
  font-weight: 760;
}
.document-field {
  display: grid;
  align-content: start;
  gap: 8px;
}
.document-field__title {
  color: #40565e;
  font-size: 12px;
  font-weight: 800;
}
.document-field__title small {
  color: #93a0a4;
  font-size: 10px;
  font-weight: 500;
}
.document-type-options {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 22px;
}
.app-form .document-type-options label,
.onboarding-form .document-type-options label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.app-form .document-type-options input,
.onboarding-form .document-type-options input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--orange);
}
.document-input-label {
  margin-top: 1px;
}
.role-explanation strong,
.invite-explanation strong {
  font-size: 12px;
}
.role-explanation small,
.invite-explanation small {
  font-size: 11px;
}

.structure-card h2,
.commerce-plan-card h2,
.subscription-hero p strong,
.platform-summary h2,
.platform-plan-card__price strong,
.platform-usage strong,
.billing-invoices article > strong {
  font-family: inherit;
}
.structure-card__body,
.structure-card__body p,
.structure-card__body dt,
.structure-card__body dd,
.commerce-plan-card > p,
.commerce-plan-card dt,
.commerce-plan-card dd,
.subscription-hero p small,
.subscription-hero dt,
.subscription-hero dd,
.platform-summary p,
.platform-summary__price small,
.platform-plan-card > p,
.platform-plan-card > ul li,
.platform-features span,
.platform-cancel > p,
.platform-history p small,
.platform-history time,
.billing-overview small,
.billing-overview strong,
.billing-overview p,
.billing-warning,
.billing-invoices article > div:first-child small,
.billing-invoices article > div:first-child strong,
.billing-invoices article > div:first-child span,
.billing-invoices article > span,
.billing-actions button {
  font-size: max(10px, 1em);
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }
  .app-sidebar {
    width: min(300px, 88vw);
  }
  .app-menu-toggle {
    display: grid;
  }
}
@media (max-width: 560px) {
  .app-main {
    padding-inline: 16px;
  }
  .app-topbar {
    padding-inline: 15px;
  }
  .welcome-card {
    padding: 24px 21px;
  }
  .metric-card {
    min-height: 128px;
  }
}

/* Phase 13.1 — split topbar, contextual metrics and operational shortcuts */
.app-topbar {
  position: sticky;
  z-index: 42;
  top: 0;
  height: 66px;
  border-bottom: 1px solid #e5e9ec;
  background: rgba(255, 255, 255, 0.97);
}
.app-topbar__workspace {
  margin-right: auto;
  color: #89969e;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-topbar__actions {
  gap: 14px;
}
.app-topbar__notification {
  width: 38px;
  height: 38px;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid #e3e8eb;
  border-radius: 10px;
  color: #6d7d85;
  background: #fff;
  cursor: pointer;
}
.app-topbar__notification:hover {
  color: var(--green);
  border-color: #c8dbd3;
  background: #f4f9f6;
}
.app-topbar__notification .app-icon {
  width: 18px;
  height: 18px;
}
.app-topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-topbar__user > span:last-child {
  display: grid;
  gap: 2px;
}
.app-topbar__user strong {
  color: #334750;
  font-size: 12px;
}
.app-topbar__user small {
  color: #87969d;
  font-size: 9px;
  text-transform: capitalize;
}
.app-contextbar {
  position: sticky;
  z-index: 41;
  top: 66px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0px clamp(22px, 3vw, 46px) !important;
  border-bottom: 1px solid #dfe5e8;
  background: rgba(255, 255, 255, 0.98);
}
.app-contextbar p {
  margin: 5px 0 0;
  color: #87959c;
  font-size: 11px;
}
.app-contextbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #75858d;
  font-size: 11px;
  white-space: nowrap;
}
.app-contextbar nav a {
  color: var(--green);
}
.app-contextbar nav span {
  color: #bcc5c9;
}
.app-contextbar nav strong {
  font-weight: 600;
}
.app-main {
  padding-top: 26px;
}

.contextual-metrics {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.contextual-metrics .metric-card {
  min-height: 128px;
}
.metric-card__icon--orange {
  color: #c95f21;
  background: #fff0e5;
}
.metric-card__icon--red {
  color: #bd4a51;
  background: #fbe8e9;
}
.metric-card__icon--purple {
  color: #6e5fb5;
  background: #eeeafd;
}
.metric-card__icon--neutral {
  color: #5d717a;
  background: #edf1f3;
}

.dashboard-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  gap: 20px;
  margin-bottom: 20px;
}
.quick-actions,
.public-link-card {
  padding: 24px;
}
.app-panel > .dashboard-card-heading {
  min-height: 0;
  display: block;
  margin-bottom: 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7ecee;
}
.dashboard-card-heading h2 {
  margin: 0 0 5px;
  color: #273c45;
  font-size: 19px;
}
.dashboard-card-heading p {
  margin: 0;
  color: #84939a;
  font-size: 11px;
}
.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.quick-action {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #e0e6e9;
  border-radius: 9px;
  color: #30454e;
  background: #f8fafb;
  font-size: 12px;
  font-weight: 780;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.quick-action:hover {
  transform: translateY(-1px);
  color: var(--green);
  border-color: #bcd8cd;
  background: #f2f8f5;
}
.quick-action > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
}
.quick-action .app-icon {
  width: 18px;
  height: 18px;
}
.quick-actions__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 19px;
  border: 1px dashed #d9e1e4;
  border-radius: 9px;
  color: #819097;
  background: #f9fbfb;
  font-size: 11px;
  text-align: center;
}
.public-link-card {
  display: flex;
  flex-direction: column;
}
.public-link-card__status {
  width: fit-content;
  margin-bottom: 15px;
  padding: 5px 9px;
  border-radius: 20px;
  color: #775e0c;
  background: #fff0bd;
  font-size: 9px;
  font-weight: 850;
}
.public-link-card__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 8px;
  margin-top: auto;
}
.public-link-card__control input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  outline: 0;
  color: #43565e;
  background: #f8fafb;
  font-size: 11px;
}
.public-link-card__control button,
.public-link-card__control a {
  width: 42px;
  height: 42px;
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
}
.public-link-card__control :is(button, a):hover {
  background: #0b6c4c;
}
.public-link-card__control .app-icon {
  width: 18px;
  height: 18px;
}
.public-link-card__feedback {
  min-height: 16px;
  margin: 7px 0 0;
  color: var(--green);
  font-size: 9px;
}

.button {
  min-height: 44px;
  gap: 22px;
}
.button--small {
  min-height: 38px;
}
.search-field {
  color: #64777f;
  background: #fff;
}
.search-field > span::before,
.search-field > span::after {
  display: none;
}
.search-field > span .app-icon {
  display: block;
}
.app-form :is(input, select, textarea),
.users-toolbar select {
  border-color: #dbe2e5;
  background-color: #fff;
}
.app-form :is(input, select, textarea)::placeholder,
.search-field input::placeholder {
  color: #a0abb0;
}
.form-actions .button {
  min-width: 150px;
}
.user-actions a,
.user-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.user-actions .app-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 980px) {
  .dashboard-tools {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .app-topbar__workspace {
    margin-left: 10px;
  }
  .app-contextbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .app-contextbar nav {
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .app-topbar__workspace,
  .app-topbar__notification,
  .app-topbar__user > span:last-child {
    display: none;
  }
  .app-topbar__actions {
    margin-left: auto;
  }
  .app-contextbar {
    min-height: 78px;
    padding-inline: 16px;
  }
  .app-contextbar p {
    display: none;
  }
  .quick-actions__grid {
    grid-template-columns: 1fr;
  }
  .public-link-card__control {
    grid-template-columns: minmax(0, 1fr) 42px;
  }
  .public-link-card__control a {
    display: none;
  }
}

/* Phase 13.1 — identidade visual herdada do ApoloSport clássico */
@font-face {
  font-family: "Apolo Montserrat";
  src: url("../fonts/montserrat.ttf") format("truetype");
  font-display: optional;
}
@font-face {
  font-family: "Apolo Comfortaa";
  src: url("../fonts/comfortaa.ttf") format("truetype");
  font-display: optional;
}

.app-page {
  --green: #ff6800;
  --green-soft: #fff0e5;
  --yellow: #ff6800;
  --yellow-hover: #e95f00;
  --ink: #34373d;
  --muted: #74788d;
  --line: #e3e8ec;
  --focus-ring: 0 0 0 3px rgba(255, 104, 0, 0.16);
  --component-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.075);
  color: #34373d;
  background: #f1f5f7;
  font-family: "Apolo Montserrat", Arial, sans-serif;
}

/* Primeiro acesso alinhado à identidade visual do painel. */
.onboarding-page {
  --green: #ff6800;
  --green-soft: #fff0e5;
  --yellow: #ff6800;
  --yellow-hover: #e95f00;
  --ink: #34373d;
  --muted: #74788d;
  --line: #e3e8ec;
  color: var(--ink);
  background: #f1f5f7;
  font-family: "Apolo Montserrat", Arial, sans-serif;
}
.onboarding-page .brand,
.onboarding-page .onboarding-heading h1,
.onboarding-page .onboarding-form legend,
.onboarding-page .welcome-step,
.onboarding-page .button {
  font-family: "Apolo Comfortaa", "Apolo Montserrat", Arial, sans-serif;
}
.onboarding-page .brand {
  color: #34373d;
  letter-spacing: 0;
}
.onboarding-page .brand strong,
.onboarding-page .brand__mark i,
.onboarding-page .onboarding-header button {
  color: #ff6800;
}
.onboarding-page .brand__mark i {
  background: #ff6800;
}
.onboarding-page .onboarding-header {
  border-color: #e3e8ec;
  box-shadow: 0 2px 8px rgba(18, 38, 63, 0.06);
}
.onboarding-page .onboarding-heading h1 {
  color: #34373d;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.onboarding-page .onboarding-heading p {
  color: #74788d;
}
.onboarding-page .onboarding-form {
  border-color: #e3e8ec;
  box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.075);
}
.onboarding-page .onboarding-form legend {
  color: #34373d;
  font-weight: 700;
}
.onboarding-page .onboarding-form label,
.onboarding-page .document-field__title {
  color: #495057;
}
.onboarding-page .onboarding-form input,
.onboarding-page .onboarding-form select {
  border-color: #d4dde2;
  color: #34373d;
  font-family: "Apolo Montserrat", Arial, sans-serif;
}
.onboarding-page .onboarding-form input:focus,
.onboarding-page .onboarding-form select:focus {
  border-color: #ff6800;
  box-shadow: 0 0 0 3px rgba(255, 104, 0, 0.14);
}
.onboarding-page .onboarding-form input:disabled {
  color: #596579;
  background: #f3f5f7;
}
.onboarding-page input[type="radio"],
.onboarding-page input[type="checkbox"] {
  accent-color: #ff6800;
}
.onboarding-page .button:not(.button--outline) {
  border-color: #ff6800;
  color: #fff;
  background: #ff6800;
}
.onboarding-page .button:not(.button--outline):hover {
  border-color: #e95f00;
  background: #e95f00;
}
.onboarding-page .button--outline {
  border-color: #ff6800;
  color: #ff6800;
  background: #fff;
}

.app-shell {
  transition: grid-template-columns 0.22s ease;
}
.app-sidebar {
  background: #2a3042;
  box-shadow: 0 1px 6px rgba(18, 38, 63, 0.2);
  transition:
    width 0.22s ease,
    transform 0.25s ease;
}
.app-sidebar__brand {
  border-color: rgba(255, 255, 255, 0.07);
}
.app-sidebar__logo {
  min-width: 0;
  display: flex;
  align-items: center;
}
.app-sidebar__logo-full {
  width: 188px;
  max-height: 48px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.app-sidebar__logo-compact {
  width: 43px;
  height: 43px;
  display: none;
  object-fit: contain;
}
.company-switch {
  background: rgba(255, 255, 255, 0.045);
}
.company-switch > span,
.app-avatar {
  background: #ff6800;
}
.app-nav > small {
  color: #6f7891;
}
.app-nav a {
  color: #a6b0cf;
}
.app-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}
.app-nav a.active {
  color: #ff8f3c;
  background: rgba(255, 104, 0, 0.09);
  box-shadow: none;
}
.app-nav a.active::after {
  background: #ff8f3c;
}

.app-topbar {
  box-shadow: 0 1px 2px rgba(56, 65, 74, 0.06);
  backdrop-filter: none;
}
.app-menu-toggle {
  display: grid;
  color: #545a6d;
}
.app-menu-toggle:hover {
  color: #ff6800;
  background: #fff3ea;
}
.app-topbar__actions {
  margin-left: auto;
}
.app-topbar__actions .app-avatar {
  box-shadow: 0 0 0 3px #fff0e5;
}
.app-contextbar {
  min-height: 50px;
  padding-block: 12px;
  border-bottom-color: #e3e8ec;
  box-shadow: 0 1px 2px rgba(56, 65, 74, 0.15);
}
.app-contextbar h1 {
  color: #34373d;
  font-size: clamp(12px, 1.5vw, 14px);
  text-transform: uppercase;
  font-weight: 800;
}
.app-contextbar nav {
  color: #74788d;
  font-size: 12px;
}
.app-contextbar nav a {
  color: #ff6800;
}
.app-main {
  background: #f1f5f7;
}

.app-panel,
.metric-card,
.welcome-card,
.users-panel,
.structure-card,
.commerce-plan-card,
.platform-plan-card,
.subscription-hero {
  border-color: transparent;
  box-shadow: var(--component-shadow);
}
.metric-card,
.contextual-metrics .metric-card {
  min-height: 112px;
  padding: 20px 22px;
}
.metric-card:hover {
  box-shadow: 0 1rem 2rem rgba(18, 38, 63, 0.1);
}
.metric-card > small {
  color: #657184;
}
.metric-card > strong {
  margin: 12px 0 0;
  color: #34373d;
  font-size: 31px;
}
.metric-card[data-metric-key^="plan-"] > strong {
  max-width: calc(100% - 42px);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 700;
  line-height: 1.35;
}
.metric-card__icon,
.metric-card__icon--green,
.metric-card__icon--blue,
.metric-card__icon--yellow,
.metric-card__icon--orange,
.metric-card__icon--purple,
.metric-card__icon--neutral {
  color: #ff6800;
  background: #fff0e5;
}
.metric-card__icon--red {
  color: #bd4a51;
  background: #fbe8e9;
}
.app-panel > header h2,
.dashboard-card-heading h2 {
  color: #34373d;
}
.panel-kicker {
  color: #ff6800;
}
.status-dot {
  background: #34c38f;
}

.app-page .button:not(.button--outline):not(.button--ghost):not(.button--dark) {
  color: #fff;
  border-color: #ff6800;
  background: #ff6800;
  box-shadow: 0 5px 14px rgba(255, 104, 0, 0.18);
}
.app-page
  .button:not(.button--outline):not(.button--ghost):not(.button--dark):hover {
  border-color: #e95f00;
  background: #e95f00;
}
.app-page .button--outline {
  color: #ff6800;
  border-color: #ff6800;
  background: #fff;
}
.app-page .button--outline:hover {
  color: #fff;
  border-color: #ff6800;
  background: #ff6800;
}
.app-page .button--outline:hover svg {
  color: #ff6800;
}
.app-page .button--dark {
  color: #fff;
  border-color: #2a3042;
  background: #2a3042;
}
.app-form :is(input, select, textarea):focus,
.public-link-card__control input:focus,
.search-field:focus-within {
  border-color: #ff8f3c;
  box-shadow: var(--focus-ring);
}
.quick-action > span,
.public-link-card__control button,
.public-link-card__control a {
  background: #ff6800;
}
.quick-action:hover {
  color: #ff6800;
  border-color: #ffbd8c;
  background: #fff8f3;
}
.public-link-card__control :is(button, a):hover {
  background: #e95f00;
}
.public-link-card__status {
  color: #b94b00;
  background: #fff0e5;
}
.public-link-card__feedback {
  color: #ff6800;
}
.app-footer {
  color: #74788d;
}

@media (min-width: 821px) {
  .app-shell.sidebar-collapsed {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .app-shell.sidebar-collapsed .app-sidebar {
    width: 82px;
  }
  .app-shell.sidebar-collapsed .app-sidebar__brand {
    justify-content: center;
    padding-inline: 12px;
  }
  .app-shell.sidebar-collapsed .app-sidebar__logo-full {
    display: none;
  }
  .app-shell.sidebar-collapsed .app-sidebar__logo-compact {
    display: block;
  }
  .app-shell.sidebar-collapsed .company-switch {
    justify-content: center;
    margin-inline: 10px;
    padding: 9px;
  }
  .app-shell.sidebar-collapsed .company-switch > div,
  .app-shell.sidebar-collapsed .app-nav > small,
  .app-shell.sidebar-collapsed .app-sidebar__footer > a > div {
    display: none;
  }
  .app-shell.sidebar-collapsed .company-switch > span {
    flex-basis: 40px;
  }
  .app-shell.sidebar-collapsed .app-nav {
    padding-inline: 12px;
  }
  .app-shell.sidebar-collapsed .app-nav a {
    min-width: 0;
    justify-content: center;
    padding-inline: 0;
    font-size: 0;
  }
  .app-shell.sidebar-collapsed .app-nav a > span {
    width: 24px;
  }
  .app-shell.sidebar-collapsed .app-nav a.active::after {
    right: 5px;
  }
  .app-shell.sidebar-collapsed .app-sidebar__footer {
    flex-direction: column;
    padding-inline: 10px;
  }
  .app-shell.sidebar-collapsed .app-sidebar__footer > a {
    flex: none;
  }
}

@media (max-width: 820px) {
  .app-contextbar {
    padding: 14px clamp(22px, 3vw, 46px) !important;
    min-height: 70px;
  }
  .app-sidebar__logo-full {
    width: 190px;
  }
}

/* Phase 13.2 — formulários, ações, conta e estrutura */
.button > .app-icon:first-child {
  box-sizing: content-box;
  padding-right: 9px;
  opacity: 0.9;
}
.app-page .button.button--confirm,
.app-form .form-actions button[type="submit"] {
  color: #fff;
  border-color: #34c38f;
  background: #34c38f;
  box-shadow: 0 5px 14px rgba(52, 195, 143, 0.2);
}
.app-page .button.button--confirm:hover,
.app-form .form-actions button[type="submit"]:hover {
  border-color: #2ca67a;
  background: #2ca67a;
}
.form-actions {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-actions {
  gap: 6px;
}
.user-actions form {
  display: inline-flex;
}
.user-actions a,
.user-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #cfd9d5;
  border-radius: 5px;
  color: #28765f;
  background: #fff;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.user-actions a:hover,
.user-actions button:hover {
  color: #fff;
  border-color: #34c38f;
  background: #34c38f;
  text-decoration: none;
}
.user-actions .app-icon {
  box-sizing: content-box;
  width: 13px;
  height: 13px;
  padding-right: 6px;
  border-right: 1px solid currentColor;
}
.user-actions .danger-link {
  color: #d9534f;
  border-color: #efc8c6;
}
.user-actions .danger-link:hover {
  color: #fff;
  border-color: #d9534f;
  background: #d9534f;
}

.choice-card {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  padding: 15px 16px;
  border: 1px solid #dbe2e5;
  border-radius: 8px;
  background: #f8fafb;
  cursor: pointer;
  align-items: center;
}
.choice-card input {
  width: 18px !important;
  min-height: 18px !important;
  margin-top: 2px;
  accent-color: #ff6800;
}

.choice-card input[type="checkbox"] {
  width: 1rem !important;
  min-height: 1rem !important;
  margin-top: 0;
  height: 1rem;
}
.choice-card > span {
  display: grid;
  gap: 4px;
}
.choice-card strong {
  color: #34373d;
  font-size: 12px;
}
.choice-card small {
  color: #74788d;
  font-size: 10px;
  line-height: 1.45;
}

.student-subscription[hidden],
.student-subscription [hidden] {
  display: none;
}
[data-password-fields] {
  transition: opacity 0.18s ease;
}
[data-password-fields].is-disabled {
  opacity: 0.5;
}
.role-explanation > span .app-icon {
  width: 18px;
  height: 18px;
}

.units-table {
  grid-template-columns:
    minmax(220px, 1.35fr) minmax(230px, 1.45fr) minmax(105px, 0.65fr)
    minmax(100px, 0.6fr) minmax(260px, 1.45fr);
}
.unit-address {
  display: grid;
  gap: 3px;
  color: #586a72;
  font-size: 10px;
}
.unit-address small,
.units-table > span > small {
  display: block;
  color: #929fa5;
  font-size: 8px;
}
.units-table .structure-card__icon .app-icon {
  width: 20px;
  height: 20px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.account-menu {
  overflow: hidden;
}
.account-menu > header {
  min-height: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 26px 20px 22px;
  text-align: center;
}
.account-menu > header .profile-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  font-size: 20px;
}
.account-menu > header strong {
  color: #34373d;
  font-size: 14px;
}
.account-menu > header small {
  margin-top: 4px;
  color: #74788d;
  font-size: 9px;
}
.account-menu nav {
  display: grid;
  border-top: 1px solid #e8ecef;
}
.account-menu nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f2;
  color: #4e5968;
  font-size: 11px;
  font-weight: 700;
}
.account-menu nav a:last-child {
  border-bottom: 0;
}
.account-menu nav a .app-icon {
  width: 18px;
  height: 18px;
}
.account-menu nav a:hover {
  color: #ff6800;
  background: #fff8f3;
}
.account-menu nav a.active {
  color: #ff6800;
  background: #fff0e5;
}
.account-content {
  min-width: 0;
}
.account-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-card > footer {
  display: flex;
  justify-content: flex-end;
  padding: 18px 22px;
  border-top: 1px solid #e8ecef;
}
.account-card > footer form {
  margin: 0;
}
.account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 8px 22px 22px;
}
.account-details > div {
  min-width: 0;
  padding: 16px 12px;
  border-bottom: 1px solid #edf0f2;
}
.account-details dt {
  margin-bottom: 7px;
  color: #8b96a3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-details dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #34373d;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .units-table {
    grid-template-columns:
      minmax(200px, 1.2fr) minmax(190px, 1.2fr)
      90px 95px minmax(220px, 1.3fr);
  }
}
@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-menu nav {
    grid-template-columns: repeat(4, 1fr);
  }
  .account-menu nav a {
    justify-content: center;
    padding: 10px;
    text-align: center;
  }
}
@media (max-width: 820px) {
  .units-table {
    grid-template-columns: 1fr 1fr;
  }
  .account-menu nav {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-actions .button {
    width: 100%;
  }
  .account-details {
    grid-template-columns: 1fr;
  }
  .account-card > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* Phase 13.3 — tabelas semânticas, abas locais e botões segmentados */
.table-panel {
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #cbd4d9 transparent;
  scrollbar-width: thin;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: #3f4d5a;
  background: #fff;
  font-size: 10px;
}

.table thead {
  background: #f3f5f7;
}

.table th {
  height: 46px;
  padding: 0 18px;
  color: #657184;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  height: 72px;
  padding: 11px 18px;
  border-top: 1px solid #e6eaed;
  vertical-align: middle;
}

.table tbody tr {
  transition: background 0.18s ease;
}

.table tbody tr:hover {
  background: #fbfcfd;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table td > strong {
  color: #34373d;
  font-size: 11px;
}

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

.table__primary > span:last-child,
.table__stack {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.table__primary strong,
.table__primary small,
.table__stack strong,
.table__stack small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table__primary strong,
.table__stack strong {
  color: #34373d;
  font-size: 10px;
}

.table__primary small,
.table__stack small {
  color: #8b97a2;
  font-size: 8px;
}

.table .empty-state {
  padding: 42px 22px;
}

.table--users {
  min-width: 930px;
}

.table--users th:nth-child(1),
.table--users td:nth-child(1) {
  width: 28%;
}

.table--users th:nth-child(2),
.table--users td:nth-child(2),
.table--users th:nth-child(3),
.table--users td:nth-child(3) {
  width: 13%;
}

.table--users th:nth-child(4),
.table--users td:nth-child(4) {
  width: 16%;
}

.table--users th:nth-child(5),
.table--users td:nth-child(5) {
  width: 30%;
}

.table--units {
  min-width: 1030px;
}

.table--units th:nth-child(1),
.table--units td:nth-child(1) {
  width: 24%;
}

.table--units th:nth-child(2),
.table--units td:nth-child(2) {
  width: 25%;
}

.table--units th:nth-child(3),
.table--units td:nth-child(3),
.table--units th:nth-child(4),
.table--units td:nth-child(4) {
  width: 11%;
}

.table--units th:nth-child(5),
.table--units td:nth-child(5) {
  width: 29%;
}

.table--courts {
  min-width: 980px;
}

.table--courts th:nth-child(1),
.table--courts td:nth-child(1) {
  width: 22%;
}

.table--courts th:nth-child(2),
.table--courts td:nth-child(2) {
  width: 18%;
}

.table--courts th:nth-child(3),
.table--courts td:nth-child(3) {
  width: 12%;
}

.table--courts th:nth-child(4),
.table--courts td:nth-child(4) {
  width: 20%;
}

.table--courts th:nth-child(5),
.table--courts td:nth-child(5) {
  width: 28%;
}

.table--classes {
  min-width: 1120px;
}

.table--classes th:nth-child(1),
.table--classes td:nth-child(1) {
  width: 21%;
}

.table--classes th:nth-child(2),
.table--classes td:nth-child(2) {
  width: 16%;
}

.table--classes th:nth-child(3),
.table--classes td:nth-child(3),
.table--classes th:nth-child(4),
.table--classes td:nth-child(4),
.table--classes th:nth-child(5),
.table--classes td:nth-child(5) {
  width: 10%;
}

.table--classes th:nth-child(6),
.table--classes td:nth-child(6) {
  width: 33%;
}

.table--subscriptions {
  min-width: 960px;
}

.table--subscriptions th:nth-child(1),
.table--subscriptions td:nth-child(1) {
  width: 26%;
}

.table--subscriptions th:nth-child(2),
.table--subscriptions td:nth-child(2) {
  width: 18%;
}

.table--subscriptions th:nth-child(3),
.table--subscriptions td:nth-child(3) {
  width: 12%;
}

.table--subscriptions th:nth-child(4),
.table--subscriptions td:nth-child(4) {
  width: 18%;
}

.table--subscriptions th:nth-child(5),
.table--subscriptions td:nth-child(5),
.table--subscriptions th:nth-child(6),
.table--subscriptions td:nth-child(6) {
  width: 13%;
}

.unit-address {
  line-height: 1.45;
}

.button {
  overflow: hidden;
  padding-left: 0;
}

.button > .app-icon:first-child {
  box-sizing: content-box;
  width: 17px;
  height: auto;
  align-self: stretch;
  margin: 0;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.07);
}

.button--small > .app-icon:first-child {
  width: 15px;
  padding-inline: 12px;
}

.app-page .button--outline > .app-icon:first-child {
  background: #fff0e5;
}

.app-page
  .button.button--info:not(.button--outline):not(.button--ghost):not(
    .button--dark
  ) {
  color: #fff;
  border-color: #50a5f1;
  background: #50a5f1;
  box-shadow: 0 8px 18px rgba(80, 165, 241, 0.2);
}

.app-page
  .button.button--info:not(.button--outline):not(.button--ghost):not(
    .button--dark
  ):hover {
  border-color: #3b94e3;
  background: #3b94e3;
}

.app-page
  .button.button--warning:not(.button--outline):not(.button--ghost):not(
    .button--dark
  ) {
  color: #fff;
  border-color: #f1b44c;
  background: #f1b44c;
  box-shadow: 0 8px 18px rgba(241, 180, 76, 0.22);
}

.app-page
  .button.button--warning:not(.button--outline):not(.button--ghost):not(
    .button--dark
  ):hover {
  border-color: #e6a735;
  background: #e6a735;
}

.app-page .button--info > .app-icon:first-child,
.app-page .button--warning > .app-icon:first-child,
.app-page .button--confirm > .app-icon:first-child {
  background: rgba(0, 0, 0, 0.08);
}

.user-actions {
  flex-wrap: nowrap;
}

.user-actions a,
.user-actions button {
  min-height: 30px;
  overflow: hidden;
  gap: 7px;
  padding: 0 8px 0 0;
}

.user-actions a {
  color: #378bd1;
  border-color: #b9d9f2;
}

.user-actions button {
  color: #2f8f6b;
  border-color: #b9dfd0;
}

.user-actions .app-icon {
  box-sizing: content-box;
  width: 13px;
  height: auto;
  align-self: stretch;
  margin: 0;
  padding: 0 7px;
  border-right: 1px solid currentColor;
  background: rgba(80, 165, 241, 0.08);
}

.user-actions button .app-icon {
  background: rgba(52, 195, 143, 0.08);
}

.user-actions .danger-link .app-icon {
  background: rgba(217, 83, 79, 0.07);
}

.user-actions a:hover {
  color: #fff;
  border-color: #50a5f1;
  background: #50a5f1;
}

.user-actions button:hover {
  color: #fff;
  border-color: #34c38f;
  background: #34c38f;
}

.user-actions .danger-link:hover {
  color: #fff;
  border-color: #d9534f;
  background: #d9534f;
}

.account-content {
  min-width: 0;
  display: grid;
}

.account-card {
  min-height: 420px;
  grid-area: 1 / 1;
}

.account-card[hidden] {
  display: none !important;
}

.account-card.form-panel {
  display: flex;
  flex-direction: column;
}

.account-card.form-panel .app-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.account-card.form-panel .form-actions {
  margin-top: auto;
}

.account-details {
  grid-auto-rows: minmax(78px, auto);
}

.account-menu nav a {
  cursor: pointer;
}

@media (max-width: 820px) {
  .table th,
  .table td {
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-card {
    min-height: auto;
  }
}

/* Phase 13.6 — precedência final dos componentes */
.form-panel,
.user-form-panel,
.class-form-panel,
.app-form {
  width: 100%;
  max-width: none;
}

.form-row--single {
  grid-template-columns: minmax(0, 1fr);
}

.button {
  min-width: 190px;
  min-height: 43px;
  height: 43px;
  gap: 0;
  padding: 0 20px;
}

.button--small {
  min-width: auto;
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
}

.button--full {
  width: 100%;
}
.button--with-icon,
.button--icon-only {
  padding: 0;
}

.button__content {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
}

.button__icon {
  display: grid;
  height: 100%;
  place-items: center;
  /* border-right: 1px solid currentColor; */
  background: rgba(0, 0, 0, 0.07);
}

.button__icon .app-icon,
.user-actions .button__icon .app-icon {
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  align-self: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.button__label {
  padding: 0 16px;
  white-space: nowrap;
}
.button--small.button--with-icon .button__content {
  grid-template-columns: 36px minmax(0, 1fr);
}
.button--small .button__icon .app-icon {
  width: 14px;
  height: 14px;
}
.button--small .button__label {
  padding: 0 12px;
}
.button--icon-only {
  width: 46px;
  min-width: 46px;
}
.button--small.button--icon-only {
  width: 36px;
  min-width: 36px;
}
.button--icon-only .button__content,
.button__content--icon-only {
  grid-template-columns: 1fr;
}
.button--icon-only .button__icon {
  border-right: 0;
  background: transparent;
}
.app-page .button--outline .button__icon {
  background: #fff0e5;
}
.app-page .button--info .button__icon,
.app-page .button--warning .button__icon,
.app-page .button--confirm .button__icon {
  background: rgba(0, 0, 0, 0.08);
}

.button > .app-icon:first-child {
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  align-self: auto;
  margin: 0 9px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.user-actions a.action-button,
.user-actions button.action-button {
  min-height: 30px;
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.action-button .button__content {
  grid-template-columns: 29px auto;
}
.action-button .button__icon {
  border-right: 1px solid currentColor;
  background: rgba(80, 165, 241, 0.08);
}
.action-button .button__icon .app-icon {
  width: 13px;
  height: 13px;
}
.action-button .button__label {
  padding: 0 9px;
}
.user-actions button.action-button .button__icon {
  background: rgba(52, 195, 143, 0.08);
}
.user-actions .danger-link.action-button .button__icon {
  background: rgba(217, 83, 79, 0.07);
}

.app-form label > .input-group {
  display: grid;
  min-height: 46px;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8e0e5;
  border-radius: 7px;
  color: inherit;
  background: #fff;
  font-size: inherit;
  font-weight: inherit;
}

.input-group__prefix {
  display: grid;
  min-width: 52px;
  place-items: center;
  padding: 0 13px;
  border-right: 1px solid #d8e0e5;
  color: #5c6573;
  background: #f3f5f7;
  font-size: 13px;
  font-weight: 800;
}

.app-form .input-group input,
.app-form .input-group input:focus {
  height: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-form label > .input-group:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-actions > .button {
  width: auto;
  min-width: max-content;
  flex: 0 0 160px;
}

@media (max-width: 540px) {
  .button:not(.button--icon-only) {
    width: 100%;
    min-width: 0;
  }
  .form-actions > .button {
    flex: 1 1 100%;
  }
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.32);
  outline-offset: 2px;
}

/* Parametrização — abas e gateway */
.student-subscription-page {
  display: grid;
  gap: 20px;
}

.student-subscription-page > .form-notice {
  margin: 0;
}

/* Rótulos opcionais permanecem na mesma linha do nome do campo. */
:is(.app-form, .auth-form, .onboarding-form)
  label:not(.check-label):not(.document-input-label):not(.gateway-skip):has(
    > span:not(.input-group):not(.field-hint):not(.field-label)
  ) {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
}

:is(.app-form, .auth-form, .onboarding-form)
  label:not(.check-label):not(.document-input-label):not(.gateway-skip):has(
    > span:not(.input-group):not(.field-hint):not(.field-label)
  )
  > span:not(.input-group):not(.field-hint):not(.field-label) {
  grid-row: 1;
  grid-column: 2;
  justify-self: start;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  color: #87949d;
}

:is(.app-form, .auth-form, .onboarding-form)
  label:not(.check-label):not(.document-input-label):not(.gateway-skip):has(
    > span:not(.input-group):not(.field-hint):not(.field-label)
  )
  > :is(input, select, textarea, .input-group, small) {
  grid-column: 1 / -1;
}

.parameter-tabs.structure-tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  border-color: #e0e7ea;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(18, 43, 55, 0.05);
  scrollbar-width: thin;
}

.parameter-tabs.structure-tabs a {
  display: grid;
  min-width: 150px;
  min-height: 54px;
  place-items: center;
  padding: 0 22px;
  border-right: 1px solid #e7ecef;
  border-radius: 0;
  color: #687780;
  background: #fff;
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.parameter-tabs.structure-tabs a:last-child {
  border-right: 0;
}

.parameter-tabs.structure-tabs a:hover {
  color: var(--orange);
  background: #fffaf6;
}

.parameter-tabs.structure-tabs a.active {
  color: var(--orange);
  background: #fffaf6;
  box-shadow: inset 0 -3px 0 var(--orange);
}

.parameter-panel {
  overflow: hidden;
  margin-bottom: 18px;
}

.parameter-panel > header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.parameter-panel > header > div {
  min-width: 0;
}

.parameter-panel > header .status-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.parameter-panel > .app-form {
  padding: 22px;
}

.parameter-panel .app-form fieldset {
  margin: 0;
}

.parameter-panel .form-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e8edef;
}

.parameter-panel svg {
  width: 1.5em;
  height: 100%;
  margin: 0 0 0 0.4rem;
}

.gateway-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gateway-panel .inline-panel-action {
  margin: 0 22px 22px;
}

.gateway-diagnostic .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gateway-diagnostic .form-actions {
  justify-content: flex-end;
}

.parameter-table {
  min-width: 780px;
}

@media (max-width: 920px) {
  .gateway-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .parameter-tabs.structure-tabs a {
    min-width: 130px;
    min-height: 50px;
    padding: 0 16px;
  }
  .parameter-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .gateway-fields,
  .gateway-diagnostic .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .gateway-panel .inline-panel-action {
    margin-right: 18px;
    margin-left: 18px;
  }
}

/* Phase 13.7 — notificações SweetAlert */
.swal2-container.swal2-top-end {
  padding: 12px;
  z-index: 3000;
}

.swal2-popup.apolo-toast {
  width: min(360px, calc(100vw - 24px));
  min-height: 104px;
  padding: 14px 16px 12px;
  border: 1px solid #e5e9ed;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(42, 48, 66, 0.24);
  color: #495057;
  font-family: "Montserrat", Arial, sans-serif;
}

.swal2-popup.apolo-toast .swal2-icon {
  margin: 0 14px 0 0;
}

.swal2-popup.apolo-toast .swal2-title {
  margin: 2px 0 8px;
  padding: 0;
  color: #495057;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.swal2-popup.apolo-toast .swal2-actions {
  width: 100%;
  margin: 0;
  grid-column: 2 / 4;
}

.swal2-popup.apolo-toast .apolo-toast__close {
  width: 100%;
  min-height: 28px;
  padding: 5px 12px;
  border: 0;
  border-radius: 3px;
  color: #74788d;
  background: #eff2f7;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.swal2-popup.apolo-toast .apolo-toast__close:hover,
.swal2-popup.apolo-toast .apolo-toast__close:focus-visible {
  color: #2a3042;
  background: #e5e9ef;
}

.swal2-popup.apolo-toast .apolo-toast__progress {
  height: 4px;
  background: #34c38f;
}

.swal2-popup.apolo-toast--error .apolo-toast__progress {
  background: #f46a6a;
}
.swal2-popup.apolo-toast--warning .apolo-toast__progress {
  background: #f1b44c;
}
.swal2-popup.apolo-toast--info .apolo-toast__progress {
  background: #50a5f1;
}

@media (max-width: 540px) {
  .swal2-container.swal2-top-end {
    align-items: flex-start;
    padding: 8px;
  }

  .swal2-popup.apolo-toast {
    width: calc(100vw - 16px);
  }
}
