:root {
  --bg: #f7f8f2;
  --surface: #fffdf8;
  --surface-2: #ffffff;
  --text: #173438;
  --muted: #6f7f65;
  --line: #e2dfd3;
  --rose: #9f1238;
  --rose-dark: #7f0f2d;
  --sage: #8a9a72;
  --gold: #d58c13;
  --warning: #805b00;
  --warning-bg: #fff1cc;
  --shadow: 0 18px 50px rgba(23, 52, 56, 0.12);
}

body[data-theme="dark"] {
  --bg: #050505;
  --surface: #101312;
  --surface-2: #171b19;
  --text: #f8fff4;
  --muted: #b8c5a7;
  --line: #2c332c;
  --rose: #b91342;
  --rose-dark: #f0f4e8;
  --sage: #9bad82;
  --gold: #e2a135;
  --warning-bg: #4d3a15;
  --warning: #ffd980;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(138, 154, 114, 0.2), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(159, 18, 56, 0.1), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.login-screen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
  align-items: center;
}

.login-brand,
.login-card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(145deg, #8c5949, #ead8cf);
}

.login-brand img,
.sidebar-logo,
.brand-image {
  display: block;
  max-width: 100%;
  border-radius: 20px;
  object-fit: contain;
  background: white;
}

.login-brand img {
  width: min(420px, 100%);
}

body[data-theme="dark"] .login-brand {
  background: linear-gradient(145deg, #050505, #352927);
}

body[data-theme="dark"] .login-brand img,
body[data-theme="dark"] .sidebar-logo,
body[data-theme="dark"] .public-hero img,
body[data-theme="dark"] .client-hero img {
  background: #050505;
}

.login-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.login-stack {
  display: grid;
  gap: 14px;
}

.compact-card h2 {
  font-size: 1.6rem;
}

.eyebrow {
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1;
}

h3 {
  font-size: 1.15rem;
}

p,
span,
label,
.hint,
.empty {
  color: var(--muted);
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(159, 18, 56, 0.14);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.primary,
.secondary,
.actions button,
.sidebar nav button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 900;
}

.primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: white;
}

.primary:hover {
  filter: brightness(0.96);
}

a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.print-only {
  display: none;
}

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

.essence-report th,
.essence-report td {
  border: 1px solid #d9d0c8;
  padding: 8px;
  text-align: left;
  font-size: 12px;
}

.secondary,
.actions button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.system-shell {
  display: grid;
  grid-template-columns: 1fr;
  width: min(1320px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px;
  gap: 14px;
}

.sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar-logo {
  width: 120px;
}

.sidebar strong {
  display: block;
}

.sidebar span {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
}

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

.sidebar nav button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.sidebar nav button.active {
  background: var(--text);
  color: var(--surface);
}

.content {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.grid {
  display: grid;
  gap: 14px;
}

.panel {
  padding: 18px;
}

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

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

.item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.item strong {
  display: block;
  color: var(--text);
}

.item span {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
}

.item.warning,
.alert {
  border-color: rgba(128, 91, 0, 0.38);
  background: var(--warning-bg);
  color: var(--warning);
}

.alert {
  padding: 14px;
  border-radius: 16px;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.stats div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats strong {
  font-size: 1.25rem;
}

.benefits {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.club-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.club-nav button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-weight: 900;
}

.club-nav button.active {
  background: var(--text);
  color: var(--surface);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.member-card {
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 232, 0.5), transparent 12rem),
    linear-gradient(145deg, #5b332b, #b96f72);
  color: white;
  box-shadow: var(--shadow);
}

.member-card span,
.member-card p {
  color: rgba(255, 255, 255, 0.82);
}

.member-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.member-card.large {
  min-height: 300px;
}

.qr {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-top: 10px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #fff 8px, transparent 8px) 0 0 / 18px 18px,
    linear-gradient(#fff 8px, transparent 8px) 0 0 / 18px 18px,
    #2a1714;
  color: #2a1714;
  font-size: 0.72rem;
  font-weight: 900;
}

.client-portal {
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.public-area {
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.public-hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(247, 248, 242, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.public-hero img {
  width: 92px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid rgba(138, 154, 114, 0.28);
  border-radius: 50%;
  background: white;
}

.public-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.public-tabs button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
}

.public-tabs button.active {
  background: var(--sage);
  color: white;
}

.lgpd-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(138, 154, 114, 0.32);
  border-radius: 16px;
  background: rgba(138, 154, 114, 0.12);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  padding: 18px 10px 74px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.public-footer strong {
  color: var(--rose-dark);
}

.pix-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--rose);
  border-radius: 18px;
  background: var(--surface-2);
}

.pix-card strong {
  font-size: 1.35rem;
  color: var(--text);
  word-break: break-word;
}

.pix-qr {
  width: 220px;
  height: 220px;
  justify-self: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.pix-qr-local {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
}

.pix-qr-local span {
  border-radius: 2px;
  background: #fff;
}

.pix-qr-local span.on {
  background: #111;
}

.pix-copy {
  min-height: 86px;
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-all;
}

.payment-link {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--text);
  color: var(--surface);
  text-align: center;
  font-weight: 900;
  text-decoration: none;
}

.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 900;
  text-decoration: none;
}

.muted-card {
  opacity: 0.82;
}

.readonly-info {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.price-line strong {
  font-size: 1.35rem;
}

.club-price-grid {
  display: grid;
  gap: 10px;
}

.club-price-grid .price-line {
  align-items: flex-start;
}

.club-price-grid .price-line div {
  display: grid;
  gap: 4px;
}

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

.balance-sheet div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.balance-sheet span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.balance-sheet strong {
  color: var(--text);
  font-size: 1.2rem;
}

.finance-subheader {
  margin-top: 28px;
}

.finance-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.finance-row {
  display: grid;
  grid-template-columns: 90px repeat(5, minmax(120px, 1fr));
  min-width: 760px;
  border-bottom: 1px solid var(--line);
}

.finance-row:last-child {
  border-bottom: 0;
}

.finance-row span {
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.essence-club-table .finance-row {
  grid-template-columns: 90px repeat(3, minmax(150px, 1fr));
  min-width: 620px;
}

.finance-head span {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
}

.accountant-report {
  min-height: 260px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  white-space: pre;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-buttons button {
  width: auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.store-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.store-card img,
.store-placeholder {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface);
}

.store-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.store-card b {
  color: var(--text);
  font-size: 1.25rem;
}

.anamnesis-form fieldset {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.anamnesis-form legend {
  padding: 0 8px;
  color: var(--rose-dark);
  font-weight: 900;
}

.signature-pad {
  width: 100%;
  height: 180px;
  border: 1px dashed var(--rose);
  border-radius: 16px;
  background: var(--surface-2);
  touch-action: none;
}

.smart-summary {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.smart-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.smart-summary span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.smart-summary strong {
  line-height: 1.45;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.timeline article {
  position: relative;
  padding: 12px 12px 12px 18px;
  border-left: 4px solid var(--rose);
  border-radius: 12px;
  background: var(--surface-2);
}

.timeline span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
}

.breakable {
  overflow-wrap: anywhere;
}

.feature-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-group {
  align-content: start;
}

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.status-pill {
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.status-pill.pronto {
  background: rgba(102, 116, 90, 0.15);
  color: var(--sage);
}

.status-pill.parcial {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-pill.pendente {
  background: rgba(159, 18, 56, 0.12);
  color: var(--rose-dark);
}

.anamnesis-public .panel {
  width: min(920px, 100%);
  margin: 0 auto;
}

.success-panel {
  text-align: center;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.module-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.module-toggle input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.module-toggle span {
  display: grid;
  gap: 4px;
}

.module-toggle small {
  color: var(--muted);
  line-height: 1.35;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.choice-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.choice-card:has(input:checked) {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(159, 18, 56, 0.1);
}

.choice-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.choice-card span {
  display: grid;
  gap: 3px;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.3;
}

.compact-grid {
  align-items: end;
}

.consumption-preview {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 35px rgba(18, 140, 126, 0.32);
  font-size: 0;
  text-decoration: none;
}

.whatsapp-float::before {
  content: "";
  width: 31px;
  height: 31px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.04 4C9.42 4 4.04 9.29 4.04 15.8c0 2.08.56 4.11 1.62 5.9L4 28l6.48-1.65A12.2 12.2 0 0 0 16.04 27C22.66 27 28 21.7 28 15.2 28 9.3 22.66 4 16.04 4Zm0 20.98c-1.78 0-3.52-.47-5.04-1.36l-.36-.21-3.85.98.99-3.68-.24-.38a9.24 9.24 0 0 1-1.44-4.93c0-5.39 4.46-9.78 9.94-9.78 5.49 0 9.95 4.39 9.95 9.78 0 5.4-4.46 9.58-9.95 9.58Zm5.46-7.18c-.3-.15-1.76-.86-2.03-.96-.27-.1-.47-.15-.67.15-.2.3-.77.96-.95 1.16-.17.2-.35.22-.65.07-.3-.15-1.27-.46-2.42-1.48-.9-.79-1.5-1.77-1.67-2.07-.18-.3-.02-.46.13-.61.14-.14.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.08-.15-.67-1.58-.92-2.16-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.8.37-.27.3-1.04 1-1.04 2.43 0 1.43 1.07 2.82 1.22 3.02.15.2 2.1 3.15 5.1 4.42.71.3 1.27.49 1.7.63.72.22 1.37.19 1.88.11.57-.08 1.76-.7 2-1.38.25-.68.25-1.26.18-1.38-.08-.13-.28-.2-.58-.35Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.pix-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--warning-bg);
  color: var(--warning);
}

.pix-timer span,
.pix-timer strong {
  color: var(--warning);
}

.calendar-panel {
  overflow-x: auto;
}

.calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.calendar-toolbar label {
  min-width: 170px;
}

.calendar-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.segmented button {
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: var(--text);
  color: var(--surface);
}

.calendar-board {
  display: grid;
  grid-template-columns: 86px repeat(var(--columns), minmax(170px, 1fr));
  min-width: 680px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.calendar-cell {
  min-height: 70px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.calendar-head {
  min-height: 48px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
}

.calendar-time {
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.calendar-slot.busy {
  background: color-mix(in srgb, var(--pro-color) 16%, var(--surface));
  border-left: 5px solid var(--pro-color);
}

.calendar-slot.blocked {
  background: var(--warning-bg);
  border-left: 5px solid var(--warning);
}

.calendar-slot strong,
.calendar-slot span {
  display: block;
}

.calendar-slot strong {
  color: var(--text);
}

.calendar-slot .free {
  color: var(--muted);
  font-size: 0.88rem;
}

.calendar-week-board {
  display: grid;
  grid-template-columns: 86px repeat(7, minmax(150px, 1fr));
  min-width: 920px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.calendar-month-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 820px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.calendar-month-day {
  min-height: 130px;
}

.muted-day {
  opacity: 0.46;
}

.calendar-chip {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--pro-color) 45%, var(--line));
  border-left: 5px solid var(--pro-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--pro-color) 12%, var(--surface));
  color: var(--text);
  text-align: left;
  cursor: grab;
}

.calendar-chip span {
  color: var(--muted);
  font-size: 0.8rem;
}

.block-chip,
.more-chip {
  display: block;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 800;
}

.pro-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--pro-color);
}

.checkbox-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.club-form-logo,
.club-preview-logo {
  display: block;
  max-width: 180px;
  max-height: 120px;
  border-radius: 18px;
  background: white;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.club-form-logo {
  max-width: 220px;
  margin-bottom: 4px;
}

.client-hero {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.client-hero img {
  width: 86px;
  border-radius: 18px;
  background: white;
}

.client-hero .secondary {
  grid-column: 1 / -1;
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: none;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.show {
  display: block;
}

.flor-chat {
  display: grid;
  gap: 16px;
}

.flor-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.flor-status span {
  color: var(--muted);
}

.flor-conversation {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.flor-message {
  max-width: 88%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flor-message.user {
  justify-self: end;
  background: var(--soft);
}

.flor-message p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}

.flor-compose {
  display: grid;
  gap: 10px;
}

.flor-compose textarea {
  min-height: 92px;
}

.gamification-panel {
  display: grid;
  gap: 18px;
}

.gamification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gamification-head h3,
.gamification-head p {
  margin: 0;
}

.gamification-head strong {
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  padding: 10px 14px;
  white-space: nowrap;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.mini-game,
.reward-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-game span,
.reward-card span,
.reward-card small {
  color: var(--muted);
}

@media print {
  body * {
    visibility: hidden;
  }

  .print-only,
  .print-only * {
    visibility: visible;
  }

  .print-only {
    display: block;
    position: absolute;
    inset: 0;
    padding: 24px;
    background: white;
    color: #1f1a17;
  }

  .system-shell,
  .content {
    display: block;
  }
}

@media (min-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr 1fr;
    padding: 28px;
  }

  .login-card {
    padding: 30px;
  }

  .system-shell {
    grid-template-columns: 260px 1fr;
    padding: 18px;
  }

  .sidebar {
    position: sticky;
    top: 18px;
    min-height: calc(100vh - 36px);
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  }

  .item {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

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

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

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

  .client-portal {
    padding: 28px;
  }

  .public-area {
    padding: 28px;
  }

  .client-hero {
    grid-template-columns: 110px 1fr auto;
  }

  .client-hero img {
    width: 110px;
  }

  .client-hero .secondary {
    grid-column: auto;
  }

  .public-hero {
    grid-template-columns: 124px 1fr;
    padding: 22px;
  }

  .public-hero img {
    width: 124px;
  }
}
