/* Lume Beauty 10.0 — interface consolidada */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

svg {
  flex: 0 0 auto;
}

.workspace {
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.brand {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px;
}

.brand > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand strong {
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 11px;
  background: var(--brand);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 26%, transparent);
}

.logo-mark i {
  position: absolute;
  width: 11px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 80% 15% 80% 15%;
  transform: rotate(36deg);
}

.logo-mark i:first-child {
  left: 7px;
  top: 6px;
}

.logo-mark i:last-child {
  right: 6px;
  bottom: 5px;
  transform: rotate(216deg);
  opacity: .8;
}

.logo-mark.compact {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  transform: scale(.9);
}

.logo-mark.compact i {
  transform: scale(.8) rotate(36deg);
  transform-origin: center;
}

.logo-mark.compact i:last-child {
  transform: scale(.8) rotate(216deg);
}

.logo-mark.light {
  background: rgba(255,255,255,.16);
  box-shadow: none;
}

.main-nav {
  flex: 1;
  overflow: auto;
  margin-top: 22px;
  scrollbar-width: thin;
}

.nav-group {
  display: grid;
  gap: 3px;
  margin-bottom: 17px;
}

.nav-label {
  padding: 0 11px 6px;
  color: #9aa59f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.main-nav a, .nav-settings {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 590;
  transition: .18s ease;
}

.main-nav a:hover, .nav-settings:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.main-nav a.active, .nav-settings.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
}

.main-nav a small {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 7px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  font-size: 12px;
  text-align: center;
}

.account-card {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 5px 0;
}

.account-card > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-card strong {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.unit-selector > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.unit-selector b {
  margin-left: auto;
  color: var(--muted);
}

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

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}

.icon-button:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.notify {
  position: relative;
}

.notify i {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: #e96060;
}

.menu-button, .mobile-only {
  display: none;
}

.primary-button:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.secondary-button:hover {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  color: var(--brand);
}

.date-label, .eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.metric-icon.green, .insight-icon.green {
  color: #34815e;
  background: #e8f5ed;
}

.metric-icon.violet, .insight-icon.violet {
  color: #7259c8;
  background: #f0ecfb;
}

.metric-icon.orange {
  color: #b2643d;
  background: #faeee5;
}

.metric-icon.blue {
  color: #3b6fb3;
  background: #e9f0fa;
}

.metric-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.trend.positive {
  color: #438364;
}

.team-panel.wide {
  grid-column: 1;
}

.next-step-card {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  align-content: start;
}

.appointment-list {
  margin-top: 13px;
}

.appointment-row:last-child {
  border: 0;
}

.appointment-row time {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.event-line {
  width: 4px;
  height: 31px;
  border-radius: 4px;
}

.tone-1 {
  background-color: #6db8a4 !important;
}

.tone-2 {
  background-color: #eba07d !important;
}

.tone-3 {
  background-color: #9c85d9 !important;
}

.tone-4 {
  background-color: #79a6d9 !important;
}

.tone-5 {
  background-color: #d2af68 !important;
}

.appointment-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.appointment-copy strong {
  font-size: 13px;
}

.appointment-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status, .tag {
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  color: #42695a;
  background: #eaf4ef;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status.live {
  color: #a14f35;
  background: #f9ece6;
}

.tag.active {
  color: #3f7c5f;
  background: #e9f5ee;
}

.live-dot {
  padding: 4px 7px;
  border-radius: 8px;
  color: #39795a;
  background: #e7f5ed;
  font-size: 11px;
  font-weight: 750;
}

.insight-row:last-child {
  border: 0;
}

.insight-row .insight-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
}

.insight-row div {
  display: flex;
  flex-direction: column;
}

.insight-row strong {
  font-size: 12.5px;
}

.insight-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.insight-row > b {
  color: var(--muted);
}

.ranking-row {
  display: grid;
  grid-template-columns: 25px 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
  border: 0;
}

.rank {
  color: #a6b0aa;
  font-size: 12px;
  font-weight: 800;
}

.ranking-row > span:nth-child(3), .ranking-value {
  display: flex;
  flex-direction: column;
}

.ranking-row strong {
  font-size: 12.5px;
}

.ranking-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.ranking-value {
  text-align: right;
}

.spark-orb {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #7b67c7);
}

.next-step-card h2 {
  margin: 6px 0 7px;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}

.next-step-card p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.agenda-board {
  overflow: hidden;
}

.agenda-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}

.date-navigation, .agenda-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.date-navigation > a:not(.today-button) {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}

.date-navigation div {
  min-width: 165px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.date-navigation small {
  color: var(--muted);
  font-size: 11px;
}

.date-navigation strong {
  margin-top: 2px;
  font-size: 13px;
}

.today-button {
  padding: 7px 9px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.agenda-actions input[type=date] {
  height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
}

.agenda-actions form {
  display: flex;
  gap: 6px;
}

.agenda-summary, .summary-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.agenda-summary span, .summary-strip span {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.agenda-summary span:last-child, .summary-strip span:last-child {
  border: 0;
}

.agenda-summary small, .summary-strip small {
  color: var(--muted);
  font-size: 11px;
}

.agenda-summary strong, .summary-strip strong {
  margin-top: 4px;
  font-size: 14px;
}

.timeline {
  padding: 10px 19px 20px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 13px minmax(0,1fr);
  gap: 9px;
  min-height: 84px;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 65px;
  top: 28px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}

.timeline-item time {
  padding-top: 22px;
  font-size: 13px;
  font-weight: 750;
}

.timeline-dot {
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-top: 23px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px,1.2fr) minmax(150px,1fr) minmax(100px,.7fr) auto 28px;
  align-items: center;
  gap: 13px;
  margin: 7px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.timeline-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.timeline-main div, .timeline-service, .timeline-professional {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.timeline-card strong {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-card small {
  color: var(--muted);
  font-size: 11px;
}

.timeline-service span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.table-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.table-search button {
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.client-cell > span:last-child {
  display: flex;
  flex-direction: column;
}

.client-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #38574c;
  background: #deece7;
  font-size: 12px;
  font-weight: 800;
}

.avatar.tone-2 {
  color: #755044;
}

.avatar.tone-3 {
  color: #5a4a85;
}

.avatar.large {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 12px;
}

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

.empty-state > span:first-child {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 17px;
  color: var(--brand);
  background: var(--brand-soft);
}

.empty-state strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

.empty-state p {
  max-width: 390px;
  margin: 7px 0 15px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.empty-state.compact {
  min-height: 205px;
}

.empty-state.compact > span:first-child {
  width: 44px;
  height: 44px;
}

.section-toolbar {
  padding: 0 0 14px;
}

.section-toolbar > div {
  display: flex;
  flex-direction: column;
}

.section-toolbar strong {
  font-size: 13.5px;
}

.section-toolbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 11px;
}

.professional-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.professional-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 5px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.professional-metrics span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.professional-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.professional-metrics strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 13px;
  text-overflow: ellipsis;
}

.progress {
  height: 5px;
  margin: 2px 0 14px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-2);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.professional-card > .secondary-button {
  width: 100%;
}

.module-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 11px;
  margin-bottom: 11px;
}

.compact-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
}

.compact-stat > div {
  display: flex;
  flex-direction: column;
}

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

.compact-stat strong {
  margin: 3px 0;
  font-size: 15px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(310px,.8fr);
  gap: 12px;
}

.settings-card, .brand-preview {
  padding: 21px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

.section-title h2 {
  margin: 0 0 3px;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 500;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.settings-card > label, .modal form > label, .install-card > label, .form-grid label, .login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.modal textarea {
  padding-top: 10px;
  resize: vertical;
}

.settings-card input:focus, .modal input:focus, .modal select:focus, .modal textarea:focus, .install-card input:focus, .login-form input:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.color-control {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
}

.color-control input[type=color] {
  padding: 3px;
  cursor: pointer;
}

.brand-options {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
  margin-top: 17px;
}

.brand-options span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.brand-options svg {
  color: #419064;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.brand-preview > .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.preview-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--canvas);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.preview-top strong {
  flex: 1;
  font-size: 12px;
}

.preview-body {
  padding: 24px 18px;
}

.preview-body > small {
  color: var(--muted);
  font-size: 11px;
}

.preview-body h3 {
  margin: 5px 0 15px;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 500;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  margin-bottom: 15px;
}

.preview-stats i {
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-button {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.tenant-info {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.tenant-info span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tenant-info small {
  color: var(--muted);
  font-size: 11px;
}

.tenant-info strong {
  font-size: 12px;
}

.module-hero {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 23px;
  background: linear-gradient(130deg, var(--surface), var(--brand-soft));
}

.module-orb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: var(--brand);
}

.module-hero h2 {
  margin: 5px 0 5px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}

.module-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.phase-badge {
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 9px;
  color: var(--brand);
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 11px;
  margin: 11px 0;
}

.feature-card {
  padding: 17px;
}

.feature-card > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.feature-card strong {
  display: block;
  margin: 11px 0 6px;
  font-size: 13px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.readiness-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
  padding: 22px;
}

.readiness-card h2 {
  margin: 5px 0 6px;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

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

.readiness-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
}

.readiness-list span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.readiness-list svg {
  color: #419064;
}

.modal::backdrop {
  background: rgba(8,16,12,.62);
  backdrop-filter: blur(5px);
}

.modal select {
  appearance: auto;
}

.form-grid {
  display: grid;
  gap: 9px;
}

.form-grid.two {
  grid-template-columns: repeat(2,1fr);
}

.form-grid.three {
  grid-template-columns: repeat(3,1fr);
}

.modal label small {
  font-size: 11px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.input-suffix {
  position: relative;
}

.input-suffix span {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--muted);
}

.empty-modal {
  padding-top: 20px;
}

.empty-modal strong {
  font-family: Georgia, serif;
  font-size: 16px;
}

.empty-modal p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.toast > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #4c9b70;
}

.toast.error {
  border-color: #efd7cf;
  color: #743c31;
}

.toast.error > span {
  background: #d06753;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

.login-page {
  min-height: 100vh;
  background: #f5f7f5;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(450px, 1.1fr);
}

.login-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px clamp(40px,6vw,90px);
  color: #fff;
  background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.13), transparent 32%), linear-gradient(145deg, #3a1012, #a80e13 55%, #ff1111);
}

.login-story::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: 8%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 42% 58% 65% 35%;
  transform: rotate(30deg);
}

.login-brand {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, serif;
  font-size: 18px;
}

.story-copy {
  z-index: 1;
  max-width: 430px;
}

.eyebrow.light {
  color: #ffe0e0;
}

.story-copy h1 {
  margin: 13px 0 15px;
  font-family: Georgia, serif;
  font-size: clamp(38px,5vw,62px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.04em;
}

.story-copy p {
  max-width: 370px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.65;
}

.story-card {
  z-index: 1;
  width: min(320px,100%);
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(15px);
}

.story-card > span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.story-card strong {
  margin: 5px 0 11px;
  font-size: 14px;
}

.story-card > div {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255,255,255,.15);
}

.story-card i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffd4d4;
}

.story-card small {
  margin-top: 8px;
  color: rgba(255,255,255,.6);
  font-size: 11.5px;
}

.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 35px;
}

.login-form {
  width: min(380px,100%);
}

.login-form h2 {
  margin: 10px 0 7px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.03em;
}

.login-form > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.login-form label {
  position: relative;
  margin: 15px 0;
}

.label-row {
  position: absolute;
  right: 0;
  top: 0;
}

.label-row a {
  color: var(--brand);
  font-size: 11px;
}

.login-form input {
  height: 44px;
}

.login-submit {
  width: 100%;
  min-height: 45px;
  margin-top: 10px;
}

.login-help {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.login-mobile-logo {
  display: none;
}

.alert {
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #d8e8df;
  border-radius: 11px;
  color: #39644f;
  background: #edf7f1;
  font-size: 12.5px;
  line-height: 1.5;
}

.alert.error {
  border-color: #f0d7cf;
  color: #834737;
  background: #fff3ef;
}

.alert ul {
  margin: 5px 0 0;
  padding-left: 17px;
}

.install-page {
  min-height: 100vh;
  background: linear-gradient(140deg, #eef4f0, #f8f5f0);
}

.install-shell {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
  padding: 31px 0 55px;
}

.install-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 31px;
}

.install-brand div {
  display: flex;
  flex-direction: column;
}

.install-brand strong {
  font-family: Georgia, serif;
  font-size: 17px;
}

.install-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.install-intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 35px;
  margin-bottom: 24px;
}

.install-intro h1 {
  max-width: 620px;
  margin: 9px 0 8px;
  font-family: Georgia, serif;
  font-size: clamp(28px,4vw,43px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.035em;
}

.install-intro p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.install-intro ol {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-intro li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #98a49e;
  font-size: 11px;
}

.install-intro li span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid #d7dfda;
  border-radius: 7px;
  background: #fff;
}

.install-intro li.active {
  color: var(--brand);
  font-weight: 750;
}

.install-intro li.active span {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 13px;
}

.install-card {
  padding: 22px;
  border: 1px solid #dde6e0;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 17px 50px rgba(31,59,45,.07);
}

.install-card .section-title {
  align-items: flex-start;
}

.install-card input {
  color: #17231f;
  background: #fff;
}

.install-card label small {
  color: var(--muted);
  font-size: 11px;
}

.check-row {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px !important;
  padding: 11px;
  border: 1px solid #e1e8e4;
  border-radius: 11px;
  background: #f8faf9;
}

.check-row input {
  width: 16px;
  min-height: 16px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.check-row span {
  display: flex;
  flex-direction: column;
}

.check-row strong {
  color: #17231f;
  font-size: 12px;
}

.check-row small {
  margin-top: 3px;
}

.install-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid #dce5df;
  border-radius: 15px;
  background: rgba(255,255,255,.65);
}

.install-submit > span {
  display: flex;
  flex-direction: column;
}

.install-submit strong {
  font-size: 12px;
}

.install-submit small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.install-submit .primary-button {
  min-height: 42px;
}

.install-complete {
  width: min(560px,100%);
  margin: 10vh auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 45px;
  text-align: center;
}

.success-orb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 19px;
  color: #fff;
  background: var(--brand);
  font-size: 22px;
}

.install-complete h1 {
  margin: 9px 0;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.install-complete p {
  max-width: 400px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.config-output {
  width: 100%;
  min-height: 230px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 11px/1.5 monospace;
}

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

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
  padding: 19px 21px;
}

.command-header > div:first-child {
  display: grid;
  gap: 4px;
}

.command-header a {
  width: max-content;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.command-header h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.command-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.command-head-actions, .inline-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr);
  gap: 11px;
}

.command-items, .command-summary {
  padding: 20px;
}

.command-item-list {
  margin-top: 15px;
}

.command-item {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto 34px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.command-item:last-child {
  border-bottom: 0;
}

.command-item > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

.command-item small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-kind {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.item-kind.product {
  color: #9b633f;
  background: #f8eee5;
}

.danger-button {
  color: #b25948;
}

.summary-line, .summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.summary-line strong {
  color: var(--ink);
}

.summary-line.discount strong {
  color: #b35d4d;
}

.discount-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 7px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.discount-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.discount-form input {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
}

.summary-total {
  margin-bottom: 13px;
  border-bottom: 0;
  color: var(--ink);
}

.summary-total span {
  font-family: Georgia, serif;
  font-size: 15px;
}

.summary-total strong {
  font-size: 20px;
}

.full-button {
  width: 100%;
}

.automation-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.automation-note svg {
  color: var(--brand);
}

.payment-list {
  display: grid;
  gap: 8px;
  padding-top: 9px;
}

.payment-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.payment-list .secondary-button {
  margin-top: 7px;
}

.compact-button {
  min-height: 30px;
  padding: 0 10px;
}

.table-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.inventory-stats, .finance-stats {
  grid-template-columns: repeat(4,1fr);
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(270px,.6fr);
  gap: 11px;
}

.movement-panel {
  padding: 19px;
}

.movement-list {
  margin-top: 13px;
}

.movement-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.movement-list > div:last-child {
  border-bottom: 0;
}

.movement-list > div > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.movement-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.movement-list b {
  color: var(--ink);
  font-size: 11.5px;
  white-space: nowrap;
}

.movement-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.movement-arrow.in {
  color: #3e8963;
  background: #e8f5ed;
}

.movement-arrow.out {
  color: #b35d4d;
  background: #faece8;
}

.empty-mini {
  padding: 30px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.tag.danger {
  color: #a14f3c;
  background: #faece7;
}

.finance-flow {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.finance-flow span {
  display: flex;
  flex-direction: column;
}

.finance-flow small {
  color: var(--muted);
  font-size: 11px;
}

.finance-flow strong {
  margin-top: 4px;
  font-size: 12px;
}

.finance-flow i {
  height: 1px;
  background: var(--line);
}

.positive, .money-value.receita {
  color: #3e8963 !important;
}

.negative, .money-value.despesa {
  color: #b35d4d !important;
}

.source-chip {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 11px;
}

.automation-preview {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 9px;
  margin: 13px 0 4px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 11px;
  background: var(--brand-soft);
}

.automation-preview > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--surface);
}

.automation-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.automation-preview strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
}

.automation-preview.success {
  border-color: #cfe6d8;
  background: #edf8f1;
}

.form-caption {
  display: block;
  margin: 15px 0 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 7px;
  padding: 13px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.checkout-total span {
  font-size: 12px;
}

.checkout-total strong {
  font-size: 17px;
}

.payment-row {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 8px;
}

.payment-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 5px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}

.payment-balance {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.payment-balance strong {
  color: #3e8963;
  font-size: 13.5px;
}

.payment-balance strong.negative {
  color: #b35d4d;
}

.mobile-nav, .sidebar-scrim {
  display: none;
}

@media (max-width: 1150px) {
  .metrics-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .inventory-stats, .finance-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .global-search {
    width: min(300px,29vw);
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 250px;
  }

  .sidebar {
    transform: translateX(-101%);
    transition: transform .24s ease;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 25px 0 70px rgba(0,0,0,.25);
  }

  .workspace {
    width: 100%;
    margin-left: 0;
  }

  .menu-button, .mobile-only {
    display: inline-grid;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    border: 0;
    background: rgba(8,15,12,.48);
    backdrop-filter: blur(2px);
  }

  .sidebar-scrim.show {
    display: block;
  }

  .global-search {
    flex: 1;
    width: auto;
  }

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

  .team-panel.wide, .next-step-card {
    grid-column: 1;
    grid-row: auto;
  }

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

  .timeline-card {
    grid-template-columns: minmax(150px,1.2fr) minmax(130px,1fr) auto 28px;
  }

  .timeline-professional {
    display: none;
  }

  .command-layout, .inventory-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .workspace {
    padding-bottom: 77px;
  }

  .topbar {
    height: 62px;
    padding: 0 13px;
    gap: 8px;
  }

  .unit-selector {
    min-width: 0;
    flex: 1;
  }

  .unit-selector small, .unit-dot, .unit-selector b {
    display: none;
  }

  .global-search, .desktop-only, .topbar .notify {
    display: none;
  }

  .page-content {
    padding: 23px 13px 35px;
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }

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

  .page-heading p {
    max-width: 270px;
    line-height: 1.45;
  }

  .heading-action {
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 0;
  }

  .metrics-grid {
    gap: 8px;
  }

  .metric-card {
    min-height: 126px;
    align-items: flex-start;
    flex-direction: column;
    padding: 13px;
  }

  .metric-card strong {
    font-size: 17px;
  }

  .dashboard-grid {
    gap: 8px;
    margin-top: 8px;
  }

  .dashboard-grid > .panel {
    padding: 15px;
  }

  .appointment-row {
    grid-template-columns: 35px 4px minmax(0,1fr) 27px;
  }

  .appointment-row .status {
    display: none;
  }

  .agenda-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .date-navigation div {
    flex: 1;
    min-width: 0;
  }

  .agenda-actions {
    justify-content: space-between;
  }

  .agenda-summary, .summary-strip {
    grid-template-columns: repeat(2,1fr);
  }

  .agenda-summary span:nth-child(2), .summary-strip span:nth-child(2) {
    border-right: 0;
  }

  .agenda-summary span:nth-child(-n/**/+2), .summary-strip span:nth-child(-n/**/+2) {
    border-bottom: 1px solid var(--line);
  }

  .timeline {
    padding: 8px 11px 16px;
  }

  .timeline-item {
    grid-template-columns: 39px 10px minmax(0,1fr);
    gap: 7px;
  }

  .timeline-item::after {
    left: 50px !important;
  }

  .timeline-card {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .timeline-service, .timeline-professional, .timeline-card > .status {
    display: none;
  }

  .table-toolbar, .section-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-search {
    width: 100%;
  }

  .section-toolbar .primary-button, .table-toolbar .primary-button {
    width: 100%;
  }

  .team-grid, .module-stats, .feature-grid {
    grid-template-columns: 1fr;
  }

  .readiness-card {
    grid-template-columns: 1fr;
  }

  .readiness-list {
    grid-template-columns: 1fr;
  }

  .module-hero {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }

  .module-orb {
    width: 46px;
    height: 46px;
  }

  .phase-badge {
    grid-column: 1 / -1;
    width: max-content;
  }

  .brand-options {
    grid-template-columns: 1fr;
  }

  .form-grid.three, .form-grid.two {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    position: fixed;
    z-index: 32;
    left: 9px;
    right: 9px;
    bottom: 9px;
    height: 59px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 18px 50px rgba(13,31,22,.18);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a, .mobile-nav button {
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 11px;
  }

  .mobile-nav a.active {
    color: var(--brand);
  }

  .mobile-nav .mobile-add {
    width: 43px;
    height: 43px;
    justify-self: center;
    margin-top: -27px;
    border-radius: 14px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 32%, transparent);
  }

  .toast {
    left: 13px;
    right: 13px;
    bottom: 80px;
    justify-content: center;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    display: none;
  }

  .login-form-wrap {
    padding: 26px;
  }

  .login-mobile-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 38px;
    font-family: Georgia, serif;
    font-size: 16px;
  }

  .install-shell {
    width: min(100% - 22px, 1050px);
    padding-top: 18px;
  }

  .install-brand {
    margin-bottom: 22px;
  }

  .install-intro {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .install-intro ol {
    justify-content: flex-start;
  }

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

  .install-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .install-submit .primary-button {
    width: 100%;
  }

  .command-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .command-items, .command-summary {
    padding: 15px;
  }

  .command-item {
    grid-template-columns: 34px minmax(0,1fr) auto;
  }

  .command-item form {
    grid-column: 3;
  }

  .inline-actions {
    width: 100%;
  }

  .inline-actions > * {
    flex: 1;
  }

  .inventory-stats, .finance-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .finance-flow {
    grid-template-columns: 1fr 1fr;
  }

  .finance-flow i {
    display: none;
  }

  .finance-flow span:last-child {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .payment-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.schedule-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 11px 0 2px;
  padding: 9px;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
}

.schedule-chip > span {
  display: flex;
  flex-direction: column;
}

.schedule-chip strong {
  font-size: 11.5px;
}

.schedule-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.professional-actions {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  margin-top: 11px;
}

.professional-actions > * {
  width: 100%;
  padding-inline: 8px;
}

.schedule-form-head, .schedule-day {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 84px;
  align-items: center;
  gap: 8px;
}

.schedule-form-head {
  padding: 5px 7px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.schedule-form-days {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.schedule-day {
  min-width: 570px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.schedule-day:last-child {
  border-bottom: 0;
}

.schedule-day > div {
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  align-items: center;
  gap: 3px;
}

.schedule-day > div span {
  color: var(--muted);
  text-align: center;
}

.schedule-day input[type="time"], .schedule-day select {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11.5px;
}

.schedule-day-toggle {
  display: grid !important;
  grid-template-columns: 29px 1fr;
  align-items: center;
  gap: 7px !important;
  margin: 0 !important;
  cursor: pointer;
}

.schedule-day-toggle input {
  position: absolute;
  opacity: 0;
}

.schedule-day-toggle i, .switch-control i {
  position: relative;
  width: 29px;
  height: 17px;
  border-radius: 15px;
  background: #cbd5cf;
  transition: .18s ease;
}

.schedule-day-toggle i::after, .switch-control i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: .18s ease;
}

.schedule-day-toggle input:checked + i, .switch-control input:checked + i {
  background: var(--brand);
}

.schedule-day-toggle input:checked + i::after, .switch-control input:checked + i::after {
  transform: translateX(12px);
}

.schedule-day-toggle strong {
  color: var(--ink);
  font-size: 12px;
}

.automation-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 23px;
  background: radial-gradient(circle at 78% 10%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 35%), var(--surface);
}

.automation-hero > div {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  column-gap: 14px;
}

.automation-hero-icon {
  grid-row: 1 / 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #7e6ba0);
}

.automation-hero h2 {
  margin: 5px 0 4px;
  font-family: Georgia,serif;
  font-size: 21px;
  font-weight: 500;
}

.automation-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.automation-stats {
  grid-template-columns: repeat(3,1fr);
  margin-top: 11px;
}

.automation-template-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 11px;
  margin-top: 11px;
}

.automation-template {
  padding: 18px;
}

.automation-template-head {
  display: grid;
  grid-template-columns: 35px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.automation-template-head > div {
  display: flex;
  flex-direction: column;
}

.automation-template-head small {
  color: var(--muted);
  font-size: 11px;
}

.automation-template-head h3 {
  margin: 3px 0 0;
  font-family: Georgia,serif;
  font-size: 14px;
  font-weight: 500;
}

.automation-template textarea {
  min-height: 112px;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}

.automation-template > button {
  width: 100%;
  margin-top: 10px;
}

.switch-control {
  display: grid !important;
  grid-template-columns: 29px auto;
  align-items: center;
  gap: 5px !important;
  margin: 0 !important;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
}

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

.template-variables {
  min-height: 25px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.automation-queue {
  margin-top: 11px;
}

.automation-queue .table-toolbar h2 {
  margin: 4px 0 0;
  font-family: Georgia,serif;
  font-size: 18px;
  font-weight: 500;
}

.message-queue-list {
  padding: 0 18px 10px;
}

.message-queue-item {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 115px;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.message-queue-item:last-child {
  border-bottom: 0;
}

.message-type {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.message-type.reminder {
  color: #a06a39;
  background: #fbf0e4;
}

.message-type.followup {
  color: #80629b;
  background: #f1eaf7;
}

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

.message-main > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.message-main strong {
  font-size: 12.5px;
}

.message-main p {
  overflow: hidden;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.message-main > small {
  color: var(--muted);
  font-size: 11px;
}

.message-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.message-action small {
  color: var(--muted);
  font-size: 11px;
}

.whatsapp-button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #1f9d62;
  font-size: 11.5px;
  font-weight: 750;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 15px;
}

.report-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.report-toolbar select {
  min-width: 165px;
  height: 35px;
  min-height: 35px;
}

.report-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-toolbar > div > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.report-stats {
  grid-template-columns: repeat(4,1fr);
  margin-top: 11px;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(270px,.45fr);
  gap: 11px;
  margin-top: 11px;
}

.report-grid.lower {
  grid-template-columns: minmax(300px,.7fr) minmax(0,1.3fr);
}

.revenue-chart, .report-quality, .ranking-panel, .payment-report {
  padding: 19px;
}

.revenue-chart .panel-heading > strong {
  color: var(--brand);
  font-size: 12px;
}

.bar-chart {
  height: 205px;
  display: flex;
  align-items: end;
  gap: 5px;
  padding-top: 20px;
}

.bar-chart > div {
  min-width: 8px;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.bar-chart > div > span {
  width: 100%;
  height: calc(100% - 18px);
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.bar-chart i {
  width: min(18px,70%);
  display: block;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, color-mix(in srgb,var(--brand) 75%,#fff), var(--brand));
}

.bar-chart small {
  color: var(--muted);
  font-size: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.report-quality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.report-quality .panel-heading {
  grid-column: 1 / -1;
}

.quality-ring {
  --ring: calc(var(--value) * 3.6deg);
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at center,var(--surface) 62%,transparent 63%), conic-gradient(var(--brand) var(--ring),var(--line) 0);
}

.quality-ring strong {
  font-size: 19px;
}

.quality-ring small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.quality-list {
  display: grid;
  gap: 9px;
}

.quality-list span {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.quality-list strong {
  color: var(--ink);
}

.quality-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.green-dot {
  background: var(--brand);
}

.orange-dot {
  background: #d59851;
}

.red-dot {
  background: #ce6d5d;
}

.ranking-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.ranking-list > div {
  display: grid;
  grid-template-columns: 23px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
}

.ranking-list > div > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 750;
}

.ranking-list > div > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 7px;
}

.ranking-list strong {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list i {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.ranking-list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.ranking-list small {
  color: var(--muted);
  font-size: 10.5px;
}

.ranking-list > div > b {
  font-size: 11.5px;
  white-space: nowrap;
}

.payment-report {
  margin-top: 11px;
}

.payment-report-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
  margin-top: 13px;
}

.payment-report-grid > span {
  position: relative;
  display: grid;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.payment-report-grid small {
  color: var(--muted);
  font-size: 11px;
}

.payment-report-grid strong {
  margin: 5px 0 8px;
  font-size: 13.5px;
}

.payment-report-grid i {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.payment-report-grid i b {
  display: block;
  height: 100%;
  background: var(--brand);
}

.payment-report-grid em {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
}

.booking-slot-section {
  margin-top: 17px;
}

.booking-slot-section > span {
  display: block;
  margin-bottom: 8px;
  color: #5e6e65;
  font-size: 11.5px;
  font-weight: 650;
}

.booking-slot-picker {
  min-height: 55px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 11px;
  border: 1px solid #e0e8e3;
  border-radius: 12px;
  background: #fafcfb;
}

.booking-slot-picker > p {
  width: 100%;
  margin: 0;
  color: #728078;
  font-size: 11.5px;
  text-align: center;
}

.booking-slot-picker > p.loading {
  color: var(--brand);
}

.booking-slot {
  cursor: pointer;
}

.booking-slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-slot span {
  min-width: 58px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5df;
  border-radius: 9px;
  color: #4e5e55;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: .16s ease;
}

.booking-slot span:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.booking-slot input:checked + span {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 15px color-mix(in srgb,var(--brand) 25%,transparent);
}

@media (max-width: 1050px) {
  .automation-template-grid {
    grid-template-columns: 1fr;
  }

  .report-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .report-grid, .report-grid.lower {
    grid-template-columns: 1fr;
  }

  .payment-report-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 680px) {
  .professional-actions {
    grid-template-columns: 1fr;
  }

  .schedule-form-head {
    display: none;
  }

  .schedule-form-days {
    border: 0;
    overflow: visible;
  }

  .schedule-day {
    min-width: 0;
    grid-template-columns: 1fr;
    margin-bottom: 8px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }

  .schedule-day-toggle {
    margin-bottom: 4px !important;
  }

  .schedule-day > div::before {
    content: "Jornada";
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 10.5px;
  }

  .schedule-day > div:nth-child(3)::before {
    content: "Intervalo";
  }

  .automation-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-hero form, .automation-hero button {
    width: 100%;
  }

  .automation-stats {
    grid-template-columns: 1fr;
  }

  .message-queue-list {
    padding: 0 13px 8px;
  }

  .message-queue-item {
    grid-template-columns: 32px minmax(0,1fr);
  }

  .message-action {
    grid-column: 2;
    align-items: flex-start;
  }

  .message-action form, .message-action button {
    width: 100%;
  }

  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-toolbar form, .report-toolbar select {
    width: 100%;
  }

  .report-toolbar > div {
    justify-content: space-between;
  }

  .report-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .report-quality {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .report-quality .panel-heading {
    grid-column: 1;
  }

  .quality-list {
    width: 100%;
  }

  .payment-report-grid {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    overflow-x: auto;
  }

  .bar-chart > div {
    min-width: 14px;
  }
}

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

.subscription-stats, .loyalty-stats {
  grid-template-columns: repeat(4,1fr);
}

.package-showcase {
  margin-top: 13px;
}

.package-showcase > .section-toolbar {
  margin-bottom: 11px;
}

.package-showcase .section-toolbar h2 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

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

.package-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 19px;
}

.package-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.package-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.package-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.package-title small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.package-title h3 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}

.package-title > strong {
  color: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}

.package-card > p {
  min-height: 28px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.package-services {
  position: relative;
  z-index: 1;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.5;
}

.subscription-layout, .loyalty-layout {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(280px,.6fr);
  gap: 11px;
  margin-top: 11px;
}

.subscription-use-list > div {
  grid-template-columns: 30px minmax(0,1fr) auto;
}

.credit-progress {
  width: 90px;
  height: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.credit-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #9c8bc4);
}

.package-service-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px;
  gap: 8px;
}

.package-service-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 5px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}

.modal-wide {
  width: min(650px,calc(100% - 24px));
}

.loyalty-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px;
  background: radial-gradient(circle at 78% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 34%), var(--surface);
}

.loyalty-hero > div {
  display: grid;
  grid-template-columns: 45px minmax(0,1fr);
  column-gap: 14px;
}

.loyalty-orb {
  grid-row: 1 / 5;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #8b6fa8);
}

.loyalty-hero h2 {
  margin: 5px 0 4px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

.loyalty-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.loyalty-stats {
  margin-top: 11px;
}

.loyalty-balance {
  color: var(--brand);
}

.loyalty-transaction-list {
  margin-top: 13px;
}

.loyalty-transaction-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.loyalty-transaction-list > div:last-child {
  border-bottom: 0;
}

.loyalty-transaction-list > div > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.loyalty-transaction-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loyalty-transaction-list small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loyalty-transaction-list b {
  font-size: 11.5px;
  white-space: nowrap;
}

.booking-settings {
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(420px,1.2fr);
  gap: 35px;
  margin-top: 12px;
  padding: 23px;
}

.booking-settings-copy {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
}

.booking-settings-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
}

.booking-settings h2 {
  margin: 5px 0;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}

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

.booking-settings form {
  min-width: 0;
}

.booking-slug-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.booking-slug-input span {
  padding-left: 10px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.booking-slug-input input {
  min-width: 100px;
  border: 0;
  padding-left: 1px;
}

.booking-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.booking-link code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding: 9px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-page {
  min-height: 100vh;
  background: radial-gradient(circle at 14% 5%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 30%), linear-gradient(145deg, #f0f5f2, #faf7f2);
  color: #17231f;
}

.booking-shell {
  width: min(1040px,calc(100% - 34px));
  margin: 0 auto;
  padding: 28px 0 45px;
}

.booking-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 45px;
}

.booking-brand > div {
  display: flex;
  flex-direction: column;
}

.booking-brand strong {
  font-family: Georgia, serif;
  font-size: 17px;
}

.booking-brand small {
  margin-top: 2px;
  color: #728078;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.booking-secure {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5a6a61;
  font-size: 11px;
}

.booking-intro {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(270px,.6fr);
  align-items: end;
  gap: 45px;
  margin-bottom: 28px;
}

.booking-intro h1 {
  margin: 9px 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(35px,5.3vw,58px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.04em;
}

.booking-intro > div > p {
  max-width: 540px;
  margin: 0;
  color: #728078;
  font-size: 13.5px;
  line-height: 1.65;
}

.booking-intro aside {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 15px;
  border: 1px solid #dae5de;
  border-radius: 15px;
  background: rgba(255,255,255,.68);
}

.booking-intro aside > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 11%, #fff);
}

.booking-intro aside div {
  display: flex;
  flex-direction: column;
}

.booking-intro aside small {
  color: #728078;
  font-size: 11px;
}

.booking-intro aside strong {
  margin-top: 3px;
  font-size: 13px;
}

.booking-intro aside p {
  margin: 4px 0 0;
  color: #728078;
  font-size: 11px;
}

.booking-alert {
  margin-bottom: 13px;
  padding: 13px 15px;
}

.booking-form {
  display: grid;
  gap: 12px;
}

.booking-step {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-color: #dde7e1;
  box-shadow: 0 17px 55px rgba(30,60,45,.06);
}

.booking-step-number {
  position: absolute;
  right: 21px;
  top: 17px;
  color: color-mix(in srgb, var(--brand) 23%, #d3ddd7);
  font-family: Georgia, serif;
  font-size: 30px;
}

.booking-step-heading {
  margin-bottom: 18px;
}

.booking-step-heading h2 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.booking-service-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.booking-service {
  cursor: pointer;
}

.booking-service > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-service > span {
  display: flex;
  flex-direction: column;
  min-height: 84px;
  padding: 14px;
  border: 1px solid #e0e8e3;
  border-radius: 13px;
  background: #fafcfb;
  transition: .18s ease;
}

.booking-service > span:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, #e0e8e3);
  transform: translateY(-1px);
}

.booking-service input:checked + span {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.booking-service small {
  color: var(--brand);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.booking-service strong {
  margin: 5px 0;
  font-size: 13.5px;
}

.booking-service em {
  margin-top: auto;
  color: #728078;
  font-size: 11.5px;
  font-style: normal;
}

.booking-step label {
  color: #5e6e65;
}

.booking-step input, .booking-step select, .booking-step textarea {
  color: #17231f;
  background: #fff;
}

.booking-hint {
  margin: 8px 0 0;
  color: #728078;
  font-size: 11px;
}

.booking-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e0e8e3;
}

.booking-submit > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #728078;
  font-size: 11px;
}

.booking-submit > span svg {
  color: var(--brand);
}

.booking-result {
  width: min(620px,100%);
  margin: 9vh auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 45px;
  text-align: center;
}

.booking-result-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 19px;
  color: #fff;
  background: var(--brand);
  font-size: 25px;
}

.booking-result h1 {
  margin: 9px 0;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}

.booking-result > p {
  max-width: 450px;
  margin: 0 0 20px;
  color: #728078;
  font-size: 13px;
  line-height: 1.6;
}

.confirmation-card {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin: 4px 0 21px;
  padding: 14px;
  border-radius: 13px;
  background: #f5f8f6;
}

.confirmation-card span {
  display: flex;
  flex-direction: column;
  padding: 0 9px;
  border-right: 1px solid #dde6e0;
}

.confirmation-card span:last-child {
  border-right: 0;
}

.confirmation-card small {
  color: #728078;
  font-size: 11px;
}

.confirmation-card strong {
  margin-top: 4px;
  font-size: 12px;
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 27px;
  color: #728078;
}

.booking-footer p {
  font-size: 11px;
}

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

  .subscription-stats, .loyalty-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .subscription-layout, .loyalty-layout {
    grid-template-columns: 1fr;
  }

  .booking-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .subscription-stats, .loyalty-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .loyalty-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .loyalty-hero .primary-button {
    width: 100%;
  }

  .package-service-row {
    grid-template-columns: minmax(0,1fr) 82px;
  }

  .booking-settings {
    gap: 20px;
    padding: 17px;
  }

  .booking-slug-input {
    display: block;
    padding-top: 8px;
  }

  .booking-slug-input input {
    width: 100%;
  }

  .booking-link {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .booking-link code {
    width: 100%;
    flex-basis: 100%;
  }

  .booking-shell {
    width: min(100% - 22px,1040px);
    padding-top: 18px;
  }

  .booking-brand {
    margin-bottom: 30px;
  }

  .booking-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .booking-intro h1 {
    font-size: 37px;
  }

  .booking-service-grid {
    grid-template-columns: 1fr;
  }

  .booking-step {
    padding: 19px 15px;
  }

  .booking-step-number {
    right: 14px;
    top: 12px;
  }

  .booking-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-submit .primary-button {
    width: 100%;
  }

  .booking-result {
    margin-top: 6vh;
    padding: 29px 18px;
  }

  .confirmation-card {
    grid-template-columns: 1fr;
  }

  .confirmation-card span {
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid #dde6e0;
  }

  .confirmation-card span:last-child {
    border-bottom: 0;
  }
}

.sidebar .brand small, .sidebar .nav-label, .sidebar .account-card small {
  color: rgba(232, 243, 237, .58);
}

.sidebar .account-card strong {
  color: #fff;
  font-size: 13.5px;
}

.sidebar .account-card .icon-button {
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
}

.sidebar .account-card .icon-button:hover {
  color: #fff;
  background: rgba(255,255,255,.11);
}

.unit-selector:hover {
  background: var(--surface-2);
}

.global-search:focus-within {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, var(--line)), 0 0 0 3px var(--brand-soft);
}

.primary-button, .secondary-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 720;
  transition: .18s ease;
}

.metrics-grid, .dashboard-grid, .team-grid {
  gap: 14px;
}

.metric-card {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -44px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: .45;
}

.metric-icon, .insight-icon {
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.metric-card small {
  color: var(--muted);
  font-size: 11.5px;
}

.metric-card strong {
  margin: 5px 0 2px;
  font-size: 22px;
  letter-spacing: -.03em;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  gap: 11px;
  margin-top: 14px;
}

.dashboard-grid > .panel {
  padding: 22px;
}

.panel-heading h2 {
  margin: 5px 0 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 650;
}

.eyebrow, .date-label {
  letter-spacing: .12em;
}

.pulse-panel .insight-row:first-of-type {
  margin-top: 15px;
}

.insight-row {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 7px;
  border-bottom: 1px solid var(--line);
  min-height: 58px;
  border-radius: 11px;
  transition: background .18s ease, transform .18s ease;
}

.insight-row:hover {
  background: var(--surface-2);
  transform: translateX(2px);
}

.appointment-row {
  display: grid;
  grid-template-columns: 39px 4px minmax(0,1fr) auto 28px;
  align-items: center;
  gap: 9px;
  min-height: 63px;
  border-bottom: 1px solid var(--line);
}

.appointment-row:hover {
  background: linear-gradient(90deg, transparent, var(--surface-2), transparent);
}

.table-panel {
  overflow: hidden;
  border-radius: 21px;
}

.table-toolbar, .section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.table-search {
  width: min(390px, 60%);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-2);
}

.data-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  transition: background .16s ease;
}

.data-table tbody tr:hover td {
  background: var(--surface-2);
}

.data-table td strong {
  color: var(--ink);
  font-size: 13px;
}

.professional-card {
  padding: 20px;
  border-radius: 19px;
}

.professional-card:hover {
  transform: translateY(-2px);
}

.professional-card h2 {
  margin: 15px 0 4px;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

.professional-card > p {
  min-height: 28px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12.5px;
}

.settings-card, .brand-preview, .command-items, .command-summary, .movement-panel {
  padding: 23px;
}

.settings-card input, .modal input, .modal select, .modal textarea, .install-card input, .login-form input {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--surface-2);
}

.modal {
  width: min(480px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 23px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 34px 110px rgba(4,18,11,.3);
}

.modal-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 23px 17px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.modal-heading h2 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.modal form, .empty-modal {
  padding: 5px 21px 20px;
  padding-inline: 23px;
  padding-bottom: 23px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid #d6e7de;
  border-radius: 15px;
  color: #264238;
  background: #fff;
  box-shadow: 0 20px 55px rgba(9,28,19,.2);
  font-size: 13px;
  animation: toast-in .25s ease;
}

.app-shell.dark .sidebar {
  background: linear-gradient(175deg, color-mix(in srgb, var(--brand) 16%, #101914), #090e0c);
}

@media (max-width: 900px) {
  .topbar {
    top: 9px;
    margin: 9px 12px 0;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 58px;
    margin: 8px 9px 0;
    padding: 0 10px;
    border-radius: 15px;
  }

  .page-content {
    padding: 30px 13px 35px;
  }

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

  .metrics-grid, .dashboard-grid, .team-grid {
    gap: 9px;
  }

  .metric-card {
    min-height: 122px;
    padding: 15px;
  }

  .panel:hover, .metric-card:hover, .professional-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .metric-card, .professional-card, .insight-row, .unit-selector, .global-search {
    transition: none !important;
  }
}

:root {
  --brand: #ff1111;
  --brand-strong: color-mix(in srgb, var(--brand) 82%, #2b0f14);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #181b21;
  --muted: #6e7480;
  --line: #e6e8ed;
  --shadow: 0 10px 30px rgba(20, 24, 32, .055);
  --sidebar: 248px;
  --radius: 16px;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.app-shell {
  min-height: 100vh;
  background: var(--canvas);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px;
  border-right: 0;
  background: #17191d;
  color: #fff;
  box-shadow: 8px 0 28px rgba(17, 20, 26, .08);
}

.sidebar .brand {
  height: 52px;
  padding: 0 8px;
}

.sidebar .logo-mark {
  border: 1px solid rgba(255,255,255,.18);
  background: var(--brand);
  box-shadow: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border-color: rgba(255,255,255,.2);
}

.sidebar .logo-mark i {
  width: 13px;
  height: 20px;
}

.sidebar .brand strong {
  color: #fff;
  font-size: 17px;
  font-family: inherit;
  font-weight: 750;
}

.sidebar .brand small {
  margin-top: 4px;
  color: #8e949e;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
}

.sidebar .main-nav {
  margin-top: 27px;
}

.sidebar .nav-group {
  gap: 5px;
  margin-bottom: 21px;
}

.sidebar .nav-label {
  padding-inline: 13px;
  font-size: 10.5px;
  padding: 0 12px 6px;
  color: #737984;
  letter-spacing: .13em;
}

.sidebar .main-nav a, .sidebar .nav-settings {
  min-height: 42px;
  padding-inline: 13px;
  border: 0;
  border-radius: 10px;
  color: #aeb3bc;
  font-size: 13px;
  padding: 0 12px;
  font-weight: 560;
}

.sidebar .main-nav a svg, .sidebar .nav-settings svg {
  opacity: .9;
}

.sidebar .main-nav a:hover, .sidebar .nav-settings:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.sidebar .main-nav a.active, .sidebar .nav-settings.active {
  border-color: rgba(255,255,255,.1);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 22%, transparent);
}

.sidebar .main-nav a.active::before {
  content: "";
  position: absolute;
  left: -20px;
  width: 4px;
  height: 25px;
  border-radius: 0 4px 4px 0;
  background: #79c8ba;
  display: none;
}

.sidebar .main-nav a {
  position: relative;
}

.sidebar .main-nav a small {
  color: #d8e5df;
  background: rgba(255,255,255,.08);
  min-width: 23px;
  padding: 3px 6px;
}

.sidebar-bottom {
  display: grid;
  gap: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  border-color: rgba(255,255,255,.08);
}

.sidebar .account-card {
  padding: 9px 7px;
  border: 0;
  border-radius: 15px;
  background: transparent;
}

.topbar {
  position: sticky;
  z-index: 28;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.unit-selector {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  border-radius: 0;
  transition: background .18s ease;
}

.unit-selector small {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.unit-selector strong {
  margin-top: 2px;
  font-size: 13px;
}

.unit-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #55b987;
  box-shadow: 0 0 0 5px #e5f4ed;
}

.global-search {
  width: min(620px, 48vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: none;
  transition: box-shadow .18s ease, background .18s ease;
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.global-search kbd {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
}

.topbar .icon-button {
  border-color: transparent;
  background: var(--surface);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.topbar .primary-button {
  min-height: 47px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 13.5px;
  box-shadow: 0 11px 24px color-mix(in srgb, var(--brand) 25%, transparent);
}

.page-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 32px 34px 56px;
  padding-top: 39px;
}

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

.date-label {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.page-heading h1 {
  margin: 6px 0 4px;
  font-family: inherit;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.035em;
  margin-top: 8px;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.panel, .metric-card {
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel:hover, .metric-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: none;
}

.reference-metrics {
  gap: 15px;
}

.reference-metrics .metric-card {
  min-height: 130px;
  gap: 14px;
  padding: 22px;
  border-radius: 21px;
}

.reference-metrics .metric-card::after {
  display: none;
}

.reference-metrics .metric-icon {
  width: 47px;
  height: 47px;
  border-radius: 14px;
}

.reference-metrics .metric-card small {
  font-size: 12.5px;
}

.reference-metrics .metric-card strong {
  margin: 7px 0 5px;
  font-size: 21px;
}

.reference-metrics .trend {
  font-size: 11.5px;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0,1.62fr) minmax(360px,1fr);
  gap: 17px;
  margin-top: 17px;
}

.reference-panel {
  min-height: 420px;
  padding: 27px 25px;
}

.reference-panel .panel-heading {
  align-items: center;
}

.reference-panel .panel-heading h2 {
  margin-top: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 540;
}

.reference-panel .eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.text-button {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.reference-appointments {
  margin-top: 23px;
}

.reference-appointments .appointment-row {
  grid-template-columns: 48px 5px minmax(0,1fr) auto 25px;
  min-height: 71px;
  padding-inline: 0;
}

.reference-appointments .appointment-row time {
  font-size: 13px;
}

.reference-appointments .event-line {
  width: 4px;
  height: 38px;
}

.reference-appointments .appointment-copy strong {
  font-size: 13.5px;
}

.reference-appointments .appointment-copy small {
  margin-top: 5px;
  font-size: 11.5px;
}

.reference-appointments .status {
  padding: 6px 9px;
  border-radius: 9px;
}

.row-menu {
  border: 0;
  color: #78847e;
  background: transparent;
  font-weight: 800;
}

.weekly-revenue .period-chip {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.weekly-total {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 19px;
}

.weekly-total strong {
  font-size: 23px;
  letter-spacing: -.035em;
}

.weekly-total span {
  color: #359466;
  font-size: 11.5px;
  font-weight: 700;
}

.weekly-chart {
  height: 215px;
  display: grid;
  grid-template-columns: repeat(7,1fr);
  align-items: end;
  gap: 11px;
  margin-top: 23px;
  padding: 17px 4px 0;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 61px, var(--line) 62px, transparent 63px);
}

.weekly-bar {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 18px;
  align-items: end;
  gap: 5px;
}

.weekly-bar > span {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
}

.weekly-bar i {
  width: min(31px,78%);
  min-height: 7px;
  display: block;
  border-radius: 9px 9px 3px 3px;
  background: #e4ece8;
}

.weekly-bar.current i {
  background: var(--brand);
}

.weekly-bar small {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 17px;
  margin-top: 17px;
}

.dashboard-secondary-grid > .panel {
  min-height: 245px;
  padding: 23px;
}

.dashboard-secondary-grid .team-panel {
  grid-column: auto;
}

.dashboard-secondary-grid .next-step-card {
  grid-column: auto;
  grid-row: auto;
}

.table-panel, .professional-card, .settings-card, .brand-preview, .agenda-board, .command-header, .command-items, .command-summary {
  border-radius: 21px;
}

.table-toolbar {
  min-height: 72px;
}

.data-table th {
  padding: 12px 16px;
  color: var(--muted);
  background: #f5f7f5;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--brand) 23%, transparent);
  border-color: var(--brand);
}

.app-shell.dark {
  --canvas: #101216;
  --surface: #191c22;
  --surface-2: #15181d;
  --ink: #f4f5f7;
  --muted: #a6abb4;
  --line: #2b2f37;
  --shadow: 0 14px 34px rgba(0,0,0,.22);
  color-scheme: dark;
}

.app-shell.dark .topbar {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.app-shell.dark .global-search, .app-shell.dark .topbar .icon-button, .app-shell.dark .weekly-revenue .period-chip {
  background: var(--surface-2);
}

@media (max-width: 1150px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-secondary-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .dashboard-secondary-grid .next-step-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .topbar {
    top: 0;
    margin: 0;
    padding-inline: 18px;
  }

  .page-content {
    padding-inline: 24px;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 65px;
    margin: 0;
    padding: 0 11px;
    border-radius: 0;
  }

  .page-content {
    padding: 30px 13px 38px;
  }

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

  .reference-metrics {
    grid-template-columns: repeat(2,1fr);
    gap: 9px;
  }

  .reference-metrics .metric-card {
    min-height: 132px;
    padding: 15px;
  }

  .reference-metrics .metric-icon {
    width: 40px;
    height: 40px;
  }

  .reference-metrics .metric-card strong {
    font-size: 17px;
  }

  .dashboard-main-grid, .dashboard-secondary-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 9px;
  }

  .dashboard-secondary-grid .next-step-card {
    grid-column: auto;
  }

  .reference-panel {
    min-height: 0;
    padding: 19px 15px;
  }

  .weekly-chart {
    height: 190px;
    gap: 5px;
  }

  .reference-appointments .appointment-row {
    grid-template-columns: 40px 4px minmax(0,1fr) 22px;
  }

  .reference-appointments .status {
    display: none;
  }
}


:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 2px;
}

.panel::before, .metric-card::after {
  pointer-events: none;
}

/* Responsividade consolidada */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-101%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .workspace {
    width: 100%;
    margin-left: 0;
  }

  .menu-button,
  .mobile-only {
    display: inline-grid;
  }

  .topbar {
    padding-inline: 18px;
  }

  .page-content {
    padding-inline: 22px;
  }
}

@media (max-width: 680px) {
  .workspace {
    padding-bottom: 76px;
  }

  .topbar {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }

  .global-search,
  .desktop-only,
  .topbar .notify {
    display: none;
  }

  .unit-selector {
    min-width: 0;
    flex: 1;
  }

  .unit-selector small,
  .unit-dot {
    display: none;
  }

  .unit-selector strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-content {
    padding: 26px 13px 36px;
  }

  .page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
  }

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

  .page-heading p {
    max-width: 280px;
    font-size: 12.5px;
  }

  .heading-action {
    width: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 0;
  }

  .heading-action svg {
    width: 19px;
    height: 19px;
  }

  .reference-metrics,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .reference-metrics .metric-card,
  .metric-card {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }

  .dashboard-main-grid,
  .dashboard-secondary-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .reference-panel {
    min-height: 0;
    padding: 18px 15px;
  }

  .reference-appointments .appointment-row,
  .appointment-row {
    grid-template-columns: 42px 4px minmax(0, 1fr) 24px;
  }

  .reference-appointments .status,
  .appointment-row .status {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }
}

@media (max-width: 390px) {
  .reference-metrics,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .reference-metrics .metric-card,
  .metric-card {
    min-height: 108px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
  }

  .metric-card > div {
    align-self: center;
  }
}

/* Contraste consistente no modo escuro */
.app-shell.dark .sidebar {
  background: #111317;
}

.app-shell.dark .workspace :where(h1, h2, h3, h4),
.app-shell.dark .workspace :where(.metric-card, .panel, .page-heading) strong {
  color: var(--ink);
}

.app-shell.dark .workspace :where(.primary-button, .status, .tag, .trend.positive) {
  color: inherit;
}

.app-shell.dark .workspace .primary-button {
  color: #fff;
}

/* Conta, acessos e permissões — versão 10 */
.account-overview {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(360px, 1.4fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
}

.account-identity,
.table-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar-large {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 17px;
  font-size: 16px;
}

.account-identity h2 {
  margin: 3px 0 4px;
  font-size: 18px;
}

.account-identity p,
.access-panel .table-toolbar p,
.permission-guide p,
.access-limited p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.account-facts span {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--canvas));
}

.account-facts small,
.account-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-facts small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.account-facts strong {
  font-size: 12px;
}

.access-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.access-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
}

.access-metric > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 12px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

.access-metric small,
.access-metric strong {
  display: block;
}

.access-metric small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.access-metric strong {
  margin-top: 3px;
  font-size: 22px;
}

.access-panel,
.permission-guide,
.access-limited {
  margin-top: 12px;
}

.access-panel .table-toolbar {
  align-items: center;
}

.access-panel .table-toolbar h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.access-panel .inline-actions {
  flex-wrap: nowrap;
}

.access-table th:last-child,
.access-table td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.table-person .avatar {
  flex: 0 0 auto;
}

.table-person > span:last-child {
  min-width: 0;
}

.table-person strong,
.table-person small {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-person small,
.muted-value {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.role-badge,
.access-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.role-badge {
  color: var(--ink);
  background: var(--soft);
}

.role-owner {
  color: color-mix(in srgb, var(--brand) 75%, #441111);
  background: color-mix(in srgb, var(--brand) 11%, var(--surface));
}

.role-manager {
  color: #315f80;
  background: #edf6fc;
}

.role-receptionist {
  color: #6d5730;
  background: #fbf5e9;
}

.role-professional {
  color: #4d6654;
  background: #eef6f0;
}

.access-status.active {
  color: #3e7552;
  background: #edf7f0;
}

.access-status.inactive {
  color: #7b6262;
  background: #f5eeee;
}

.access-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.permission-guide {
  padding: 20px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.permission-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 92%, var(--canvas));
}

.permission-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.access-limited {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.access-limited > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 14px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

.access-limited h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.modal-split-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.modal-split-actions > div {
  display: flex;
  gap: 8px;
}

.app-shell.dark .role-manager {
  color: #a9d5f2;
  background: #1c3040;
}

.app-shell.dark .role-receptionist {
  color: #e8d09e;
  background: #3a3020;
}

.app-shell.dark .role-professional,
.app-shell.dark .access-status.active {
  color: #acd5b9;
  background: #203529;
}

.app-shell.dark .access-status.inactive {
  color: #d4b3b3;
  background: #382727;
}

@media (max-width: 1100px) {
  .account-overview {
    grid-template-columns: 1fr auto;
  }

  .account-facts {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .access-metrics,
  .permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-overview > .secondary-button {
    width: 100%;
  }

  .account-facts {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

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

  .access-panel .table-toolbar,
  .access-panel .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .access-panel .inline-actions,
  .access-panel .table-search,
  .access-panel .primary-button {
    width: 100%;
  }

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

  .modal-split-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 440px) {
  .access-metrics,
  .permission-grid {
    grid-template-columns: 1fr;
  }
}

/* Lume Beauty 11.0 — agenda operacional */
.agenda-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.agenda-week-day {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 76px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
  background: var(--surface-2);
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.agenda-week-day:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  transform: translateY(-1px);
}

.agenda-week-day small {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.agenda-week-day strong {
  color: var(--ink);
  font-size: 18px;
}

.agenda-week-day span {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-week-day i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e87946;
  box-shadow: 0 0 0 3px rgba(232, 121, 70, .12);
}

.agenda-week-day.today:not(.active) {
  border-color: var(--line);
}

.agenda-week-day.active {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 10%, transparent);
}

.agenda-week-day.active strong {
  color: var(--brand);
}

.agenda-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.agenda-filters label {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.agenda-filters label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.agenda-filters select {
  height: 36px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
}

.clear-filter {
  margin: 0 0 9px auto;
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
}

.timeline-card {
  grid-template-columns: minmax(150px, 1.15fr) minmax(145px, 1fr) minmax(110px, .72fr) auto auto;
}

.timeline-professional span {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-manage {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.appointment-manage:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.status.waiting {
  color: #8a6719;
  background: #fff5d9;
}

.status.confirmed {
  color: #316b55;
  background: #e9f5ef;
}

.status.completed {
  color: #3a608d;
  background: #eaf1fa;
}

.status.cancelled {
  color: #8a5550;
  background: #f8ecea;
}

.status.missed {
  color: #755b8a;
  background: #f2ebf7;
}

.appointment-status-cancelled .timeline-card,
.appointment-status-missed .timeline-card {
  opacity: .72;
}

.appointment-detail-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.appointment-detail-hero > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.appointment-detail-hero strong,
.appointment-detail-hero small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-detail-hero strong {
  color: var(--ink);
  font-size: 13px;
}

.appointment-detail-hero small {
  color: var(--muted);
  font-size: 11px;
}

.appointment-note {
  margin-top: 11px;
  padding: 11px 12px;
  border-left: 3px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
}

.appointment-note.danger {
  border-left-color: #c96b5e;
}

.appointment-note small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.appointment-note p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.appointment-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.appointment-primary-action {
  margin-top: 11px;
}

.appointment-primary-action .primary-button {
  width: 100%;
}

.appointment-command-link {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}

.appointment-command-link > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

.appointment-command-link p {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.appointment-command-link strong {
  font-size: 12px;
}

.appointment-command-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.appointment-command-link b {
  color: var(--muted);
  font-size: 20px;
}

.appointment-cancel-box {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.appointment-cancel-box summary {
  color: #a35449;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.appointment-cancel-box form {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 10px;
}

.appointment-cancel-box .danger-button {
  min-height: 40px;
  white-space: nowrap;
}

.appointment-final-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #416e5c;
  background: #edf6f1;
}

.appointment-final-state p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.appointment-final-state strong {
  font-size: 12px;
}

.appointment-final-state small {
  font-size: 10.5px;
  opacity: .8;
}

.app-shell.dark .agenda-week-day.active,
.app-shell.dark .appointment-command-link > span {
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
}

.app-shell.dark .status.waiting {
  color: #f2cd73;
  background: rgba(177, 129, 24, .2);
}

.app-shell.dark .status.confirmed,
.app-shell.dark .appointment-final-state {
  color: #8fd0ae;
  background: rgba(44, 125, 87, .2);
}

.app-shell.dark .status.completed {
  color: #99bde7;
  background: rgba(58, 96, 141, .24);
}

.app-shell.dark .status.cancelled {
  color: #df9d94;
  background: rgba(138, 85, 80, .22);
}

.app-shell.dark .status.missed {
  color: #c4a2dc;
  background: rgba(117, 91, 138, .24);
}

@media (max-width: 1050px) {
  .timeline-card {
    grid-template-columns: minmax(150px, 1.2fr) minmax(130px, 1fr) auto auto;
  }

  .timeline-professional {
    display: none;
  }
}

@media (max-width: 760px) {
  .agenda-week {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    padding: 11px;
  }

  .agenda-week-day {
    min-height: 67px;
  }

  .agenda-filters {
    align-items: stretch;
    flex-direction: column;
    padding: 11px;
  }

  .agenda-filters label {
    min-width: 0;
  }

  .clear-filter {
    margin: 2px 0 0;
    text-align: center;
  }

  .timeline-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .appointment-manage {
    width: 34px;
    padding: 0;
  }

  .appointment-manage span {
    display: none;
  }

  .appointment-cancel-box form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .appointment-detail-hero {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .appointment-detail-hero > .status {
    grid-column: 1 / -1;
    margin-left: 49px;
  }

  .appointment-contact-actions {
    flex-direction: column;
  }

  .appointment-contact-actions .secondary-button {
    width: 100%;
  }
}
