/* Estrutura compartilhada das áreas pública, operacional e administrativa. */
:root {
  --surface: #fffdfb;
  --paper: #f7f3ef;
  --ink: #34272b;
  --muted: #6c5c62;
  --rose: #98445e;
  --deep: #743149;
  --line: #e6dbd7;
  --wash: #f6eae6;
  --rail: #fffaf4;
  --rail-text: #442f37;
  --rail-soft: #715862;
  --rail-active: #f4e1e5;
  --elevation: 0 3px 15px rgba(67, 42, 49, .045);
}
body[data-segment-theme="ink"] {
  --surface: #202329;
  --wash: #2c3038;
  --rail: #1b1e23;
  --rail-text: #f5f6f8;
  --rail-soft: #c0c6d0;
  --rail-active: #424854;
  --elevation: 0 3px 15px rgba(0, 0, 0, .15);
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 12px;
  padding: 10px 16px;
  background: var(--surface);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}
.site-header { background: var(--surface); border-color: var(--line); }
.nav-shell { min-height: 70px; }
body:has(:is(.workspace, .employee-shell)) .site-header .brand-logo { width: clamp(112px, 13vw, 156px); }
body:has(.workspace) :is(.nav-shell, .footer-inner) { max-width: 1480px; }
.container:has(.workspace) { max-width: 1480px; }
.workspace { gap: clamp(18px, 2.2vw, 36px); }
.workspace-main .intro, .employee-head, .setup-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.workspace-main .intro { margin: 0 0 20px; }
.workspace-main .intro h1, .employee-head h1, .setup-heading h1 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.12;
  margin: 6px 0;
}
.intro .wave { display: none; }
.overview-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.workspace-main :is(.card, .dash-panel, .dash-metric, .service-stat),
body :is(.setup-card, .employee-services-card, .booking-panel, .booking-result, .whatsapp-ready-page) {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--elevation);
}
.workspace-main :is(.dash-panel, .dash-metric), .setup-card { background: var(--surface); }
.dash-metrics { margin: 18px 0; }
.dash-metric strong, .service-stat strong, .dash-upcoming-time, td { font-variant-numeric: tabular-nums; }
.dash-metric:first-child { background: var(--wash); border-color: var(--rose); }
.dash-panel-heading h2, .dash-secondary h2 { font-size: clamp(22px, 2vw, 29px); }
.dash-upcoming { align-items: center; }
.dash-upcoming-time { border-inline-end: 1px solid var(--line); padding-inline-end: 12px; }
.dash-empty, .service-empty { color: var(--muted); }
.workspace-main :is(.table-scroll, .billing-history) { min-width: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll th { background: var(--wash); color: var(--ink); }
.table-scroll td { border-color: var(--line); }
.billing-grid > .billing-history { grid-column: 1 / -1; width: 100%; }
.billing-history .table-scroll { width: 100%; }
.wa-workspace-grid { display: grid; gap: 18px; align-items: start; }
.wa-workspace-grid > .wa-connect-card { min-width: 0; max-width: none; margin: 0; }
.wa-history-card h2, .wa-connection-head { margin-top: 0; }
.wa-history-card .wa-log-list { max-height: 26rem; overflow: auto; padding: 2px; }
.wa-history-card .wa-log-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
}
.wa-log-heading { overflow-wrap: anywhere; }
.wa-log-error-detail { flex-basis: 100%; }
.wa-history-card [data-wa-empty] { padding: 16px; border-radius: 10px; background: var(--wash); }
@media (min-width: 1180px) {
  .wa-workspace-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
}
.agenda-workspace .agenda-primary-controls {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.agenda-date-nav, .agenda-visual { border-color: var(--line); }
.employee-menu { width: fit-content; max-width: 100%; }
.auth-layout { border: 1px solid var(--line); box-shadow: var(--elevation); }
body:not([data-segment-theme="ink"]) .auth-aside {
  background: linear-gradient(150deg, #54343e, #844758);
}
body:not([data-segment-theme="ink"]) .auth-aside :is(.eyebrow, h2, em, p, .auth-checks span) { color: #fff3ed; }
body:not([data-segment-theme="ink"]) .auth-aside .aside-flower { color: #f4b9c3; opacity: .16; }
.home-hero-art {
  isolation: isolate;
  border-radius: 26px;
  background: radial-gradient(ellipse at 80% 12%, #f9eae0, transparent 62%), #ecdad8;
  overflow: hidden;
}
.home-hero-art .preview-window { width: min(448px, 91%); }
.home-hero-art .preview-head { background: #54343e; color: #fff5f0; }
.home-hero-art .preview-example { background: #f9e9e2; color: #653647; }
.feature-card { border-color: var(--line); box-shadow: var(--elevation); }
.booking-page .booking-cover, .tenant-profile, .booking-result { border-radius: 18px; }
.booking-page .booking-panel { border-color: var(--line); }
.booking-page .booking-choice:focus-visible { outline-offset: -3px; }
body :is(.service-dialog, .prof-dialog, .agenda-modal, .billing-profile-dialog, .employee-booking-dialog) {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
dialog::backdrop { background-color: rgba(41, 26, 33, .56); }
@media (min-width: 761px) {
  .workspace { grid-template-columns: clamp(198px, 18vw, 244px) minmax(0, 1fr); }
  body .workspace-sidebar {
    position: sticky;
    top: 16px;
    min-height: 0;
    padding: 14px 10px;
    background: var(--rail);
    border-color: var(--line);
    border-radius: 18px;
  }
  body .workspace-sidebar :is(.eyebrow, .sidebar-section-label, .workspace-identity small) { color: var(--rail-soft); }
  body .workspace-sidebar .workspace-identity {
    margin: 8px 0 10px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rail-active);
    border-radius: 0;
    padding: 4px 0 10px;
    overflow-wrap: anywhere;
  }
  body .workspace-sidebar .workspace-identity strong, body .workspace-sidebar .sidebar-link { color: var(--rail-text); }
  body .workspace-sidebar .sidebar-section-label { margin: 10px 0 6px; }
  body .workspace-sidebar .sidebar-link {
    min-height: 38px;
    padding: 7px 11px;
    margin-bottom: 2px;
    line-height: 1.35;
    border-radius: 8px;
  }
  body .workspace-sidebar a.sidebar-link:not(.muted):is(:hover, :focus-visible),
  body .workspace-sidebar a.sidebar-link.active { color: var(--rail-text); background: var(--rail-active); }
  body .workspace-sidebar .sidebar-link.active { box-shadow: inset 3px 0 var(--rose); }
  body .workspace-sidebar .sidebar-link.muted { color: var(--rail-soft); }
  body .workspace-sidebar a:focus-visible { outline-color: var(--rail-soft); }
}
@media (max-width: 760px) {
  .workspace-main .intro { gap: 10px; padding-bottom: 14px; }
  .overview-actions :is(.pill, .tag) { margin: 0; }
  .workspace .admin-sidebar {
    display: flex !important;
    position: static;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
    min-height: 0;
    margin: 0 0 16px;
    background: var(--surface);
  }
  .admin-sidebar > :is(.eyebrow, .workspace-identity, .sidebar-section-label, .muted) { display: none; }
  .workspace .admin-sidebar a.sidebar-link {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
    padding: 6px;
    margin: 0;
    font-size: 12px;
  }
  .admin-sidebar a.sidebar-link > span { display: none; }
  .wa-workspace-grid { gap: 14px; }
  .home-hero-art { padding: 18px 0; }
  .workspace-main :is(.billing-grid, .dash-panels, .dash-secondary) { grid-template-columns: minmax(0, 1fr); }
  .container :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="color"]) { font-size: 16px; }
}

.employee-menu {
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.employee-menu a { border-color: transparent; border-radius: 9px; }
.booking-page .booking-steps { background: var(--surface); padding: 5px; border: 1px solid var(--line); border-radius: 15px; }
.booking-page .booking-step { border-radius: 10px; }
.booking-page .booking-step.is-current { box-shadow: inset 0 -3px var(--rose); }
.service-workspace .intro .service-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (min-width: 761px) {
  .service-workspace .intro { flex-wrap: wrap; }
  .service-workspace .intro .service-toolbar-actions { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  .service-workspace .intro .service-toolbar-actions { width: 100%; }
  .service-workspace .intro .service-toolbar-actions button { flex: 1 1 130px; min-height: 44px; }
}

/* Em janelas baixas, o menu acompanha a rolagem natural da página. */
@media (min-width: 761px) and (max-height: 660px) {
  body .workspace-sidebar { position: static; }
}

.menu-icon {
  width: 19px;
  height: 19px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.dash-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--rose);
  border-radius: 16px;
  background: var(--surface);
}
.dash-next h2 { margin: 6px 0; font-size: clamp(24px, 3vw, 36px); overflow-wrap: anywhere; }
.dash-next p { margin: 0; color: var(--muted); }
.dash-next .pill { flex-shrink: 0; }
.dash-secondary { grid-template-columns: minmax(0, 1fr); }
.booking-cover, .tenant-profile { border-top: 4px solid var(--brand-accent, var(--rose)); }
.booking-brand-logo { display: block; width: auto; max-width: 150px; height: 48px; object-fit: contain; margin-bottom: 10px; }
.booking-page .booking-service-choice small:first-of-type { font-size: 14px; color: var(--ink); }
body .container dialog {
  max-inline-size: calc(100% - 24px);
  max-block-size: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 16px 56px #20121c38;
}
body .container dialog::backdrop { background: rgb(38 25 32 / 58%); }
body .container :is(.pill,.button-outline,.service-ghost,.booking-back,.employee-booking-cancel) {
  min-height: 42px;
  border-radius: 10px;
  line-height: 1.35;
}
body .container :is(.service-dialog-close,.prof-dialog-close,.agenda-modal-close,.employee-booking-close,.confirmation-drawer-close,.agenda-popover-close) {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
body .container :is(input:not([type]),input:is([type=text],[type=tel],[type=email],[type=password],[type=url],[type=number],[type=time],[type=date],[type=search]),select,textarea) {
  min-inline-size: 0;
  max-inline-size: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  background-color: var(--surface);
  color: var(--ink);
  font-family: inherit;
}
body .container :is(input[type=checkbox],input[type=radio]) { accent-color: var(--rose); }
body .container :is(input,select,textarea,button,a):focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}
body .container :is(input,select,textarea):user-invalid { border-color: #b23952; }
body .container :is(input,select,textarea,button):disabled { cursor: not-allowed; }
@media (max-width: 600px) {
  .dash-next { align-items: stretch; flex-direction: column; }
  body .container :is(.pill,.button-outline,.service-ghost,.booking-back) { min-height: 44px; }
}
@media (max-width: 760px) {
  .workspace-more-panel .menu-icon { vertical-align: middle; margin-inline-end: 5px; }
  .workspace-bottom-nav > :is(a,button) .menu-icon { width: 20px; height: 20px; }
}

.dashboard-section { min-width: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.dashboard-stats-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); column-gap: 24px; }
.dashboard-section h2, .subscription-sheet h2, .billing-ledger h2 {
  color: var(--ink);
  font: 650 17px/1.35 'DM Sans', Arial, sans-serif;
  letter-spacing: -.015em;
  margin: 0 0 8px;
}
.dashboard-section p, .billing-ledger p { margin: 0; color: var(--muted); }
.dashboard-public-link {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.dashboard-public-link a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.subscription-sheet {
  border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow-wrap: anywhere;
}
.subscription-sheet > section { padding: 18px clamp(16px, 3vw, 26px); margin: 0; }
.subscription-sheet > section + section { border-top: 1px solid var(--line); }
.subscription-sheet p { margin: 0; }
.billing-summary-head, .subscription-sheet .billing-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
}
.billing-summary-head { margin-bottom: 12px; }
.billing-summary-head h2 { margin: 0; font-size: 21px; }
.billing-summary-head .billing-amount { font: 650 23px/1.35 'DM Sans', Arial, sans-serif; color: var(--ink); }
.billing-summary-head .billing-amount small { font-size: 14px; color: var(--muted); }
.billing-facts, .billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
.billing-facts .success { padding: 4px 10px; font-size: 13px; }
.billing-plan-summary > .billing-actions { margin-top: 12px; }
.billing-actions form { margin: 0; }
.subscription-sheet .billing-line > div:first-child { flex: 1 1 270px; }
.subscription-sheet .billing-profile-summary { background: transparent; border-radius: 0; box-shadow: none; border-inline: 0; border-bottom: 0; }
.subscription-sheet .billing-line p { color: var(--muted); font-size: 14px; }
.billing-ledger { margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--line); }
.billing-ledger .table-scroll { margin-top: 10px; }
@media (max-width: 650px) {
  .subscription-sheet .billing-line { align-items: flex-start; flex-direction: column; }
  .subscription-sheet .billing-line > div:first-child { flex: auto; }
}

.daily-view, .account-view { container-type: inline-size; }
.daily-view .intro, .account-view .intro { border: 0; }
.trial-note { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.day-layout, .account-grid { display: grid; gap: 16px; align-items: start; }
.day-layout { grid-template-columns: minmax(0, 1.8fr) minmax(185px, 1fr); align-items: stretch; margin-bottom: 22px; }
.day-agenda, .day-summary, .account-tools {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.day-agenda { display: flex; align-items: flex-start; gap: 20px; padding: clamp(18px, 3cqw, 32px); }
.date-stamp { flex: 0 0 65px; text-align: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.date-stamp span { display:block; color: var(--deep); background: var(--wash); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 5px; }
.date-stamp b { display: block; color: var(--ink); padding: 7px; font: 500 30px/1.2 Georgia, serif; }
.day-copy { min-width: 0; }
.day-copy h2 { font-size: clamp(23px, 3.4cqw, 36px); margin: 5px 0; overflow-wrap: anywhere; }
.day-copy p { margin: 0 0 14px; color: var(--muted); }
.day-summary { padding: 20px 24px; background: var(--wash); }
.day-summary h2, .account-tools h2, .daily-view .dashboard-section h2 {
  font: 650 17px/1.35 'DM Sans', Arial, sans-serif; margin: 0 0 10px; letter-spacing: -.015em;
}
.day-summary > strong { font-size: 36px; line-height: 1.2; margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
.day-summary > span, .day-summary summary { color: var(--muted); font-size: 13px; }
.day-summary details { margin-top: 10px; }
.day-summary summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.day-summary dl { margin: 8px 0 0; }
.day-summary dl div { display: flex; justify-content: space-between; font-size: 13px; }
.daily-view .dash-rank-row { display:flex; gap:12px; align-items:center; }
.daily-view .dash-rank-row :is(b,small) { margin-left: auto; }
.team-monogram { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; color:var(--deep); background:var(--wash); }
.daily-view .dashboard-stats-lists { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.daily-view .dashboard-stats-lists .dashboard-section { border: 0; }
.dashboard-public-link { justify-content:flex-start; align-items:center; margin-top:16px; gap: 12px 24px; }
.dashboard-public-link small { display:block; color:var(--muted); overflow-wrap:anywhere; }
.account-grid { grid-template-columns: minmax(0,.92fr) minmax(0,1.25fr); }
.account-plan { background: #4d323d; color: #fff7ef; border-radius: 18px; padding: clamp(20px,3cqw,32px); }
.account-price h2 { color: inherit; font: 600 17px/1.35 'DM Sans', Arial, sans-serif; margin: 0 0 12px; }
.account-amount { color: inherit; font: 500 clamp(28px,4.4cqw,46px)/1.15 Georgia, serif; }
.account-amount small { font: 400 14px/1.3 'DM Sans', Arial, sans-serif; }
.account-facts { display: grid; justify-items: start; gap: 9px; margin: 18px 0; }
.account-plan p { margin: 0; font-size: 14px; }
.account-plan .success { background: #624651; color: white; border-color:#8c6b79; padding: 5px 10px; }
.account-plan .status-label { background: #f4dfde; color:#583341; }
.account-plan .billing-actions { border-top:1px solid #896977; padding-top:14px; }
.account-plan .billing-actions p { flex-basis:100%; }
.account-plan .billing-actions .button-outline { background: transparent; color: #fff7ef; border-color: #ac8b96; }
.account-plan .billing-actions .pill { background:#f6e3df; color:#4d323d; }
.account-tools > section { padding: clamp(18px,2.6cqw,28px); }
.account-tools p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.account-tools .account-payer { border-top:1px solid var(--line); }
.account-view .billing-ledger { margin-top: 20px; }
body[data-segment-theme=ink] .account-plan { background:#2b3039; }
body[data-segment-theme=ink] .account-plan .success { background:#393f49; }
@container (max-width: 650px) {
  .day-layout,.account-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .day-agenda { gap:13px; }
  .day-summary { padding:14px 18px; }
  .day-summary > strong { font-size:28px; }
}
.account-grid { align-items: stretch; }
.account-tools { display: grid; grid-template-rows: auto 1fr; }

.segment-picker { min-inline-size: 0; margin: 12px 0; padding: 0; border: 0; }
.segment-picker legend { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.segment-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,175px),1fr)); gap: 7px; }
body .container .segment-picker label {
 display:flex; align-items:center; gap:8px; padding:8px; margin:0;
 border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); cursor:pointer;
 min-height:44px; font:500 13px/1.35 'DM Sans',Arial,sans-serif;
}
body .container .segment-picker label:has(:checked) { border-color:var(--rose); background:var(--wash); }
body .container .segment-picker input[type=checkbox] { width:16px; height:16px; min-height:0; padding:0; margin:0; flex:none; }
.segment-picker img { border-radius:6px; flex:none; }
.segment-picker summary { cursor:pointer; color:var(--deep); padding:10px 0; font-weight:600; }

.employee-bottom-nav { display: none; }
@media (max-width: 760px) {
  body:has(.employee-bottom-nav) :is(.site-header nav, .employee-head .employee-booking-open, .employee-menu) { display: none; }
  body:has(.employee-bottom-nav) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .employee-bottom-nav {
    position: fixed;
    z-index: 90;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -4px 18px rgb(50 30 40 / 8%);
  }
  .employee-bottom-nav form { display: grid; margin: 0; }
  .employee-bottom-nav :is(a,button) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font: 600 12px/1.15 'DM Sans', Arial, sans-serif;
    text-align: center;
  }
  .employee-bottom-nav [aria-current=page] { background: var(--wash); color: var(--deep); }
  .employee-bottom-nav button:disabled { opacity: .55; }
  .employee-bottom-nav :focus-visible { outline-offset: -2px; }
}

.staff-specialty { border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; overflow: hidden; }
body .container .staff-specialty > label { border: 0; border-radius: 0; }
.staff-procedures:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: 5px; padding: 8px; }
body .container .staff-procedures label { align-items:flex-start; padding:8px; font-size:12px; }
.staff-procedures small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.staff-unclassified h3 { font-size:15px; margin:12px 0 0; }
.professionals-workspace .prof-list .staff-card {
 --staff-color: var(--rose);
 border-inline-start: 5px solid var(--staff-color);
 background: var(--surface);
 background: linear-gradient(135deg,color-mix(in srgb,var(--staff-color) 8%,var(--surface)),var(--surface) 70%);
}
.staff-card .prof-avatar { outline: 2px solid var(--staff-color); outline-offset: 2px; }
.professionals-workspace .staff-card .service-item-actions { justify-content:flex-start; }

.diary-total-short { display:none; }
@media (max-width:760px) {
  .employee-diary { gap:12px; margin-top:16px; }
  .employee-diary .employee-head { padding-bottom:10px; }
  .employee-diary-help, .employee-diary .employee-head .eyebrow, .diary-total-full { display:none; }
  .diary-total-short { display:inline; }
  .employee-diary .employee-stats {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
    align-items:stretch;
    padding:8px 0;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
  }
  .employee-diary .employee-stat {
    display:flex;
    flex-direction:column-reverse;
    align-items:center;
    justify-content:center;
    gap:2px;
    min-width:0;
    padding:0 2px;
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
    text-align:center;
  }
  .employee-diary .employee-stat + .employee-stat { border-inline-start:1px solid var(--line); }
  .employee-diary .employee-stat strong { font-size:20px; line-height:1.1; font-variant-numeric:tabular-nums; }
  .employee-diary .employee-stat small { font-size:.72rem; line-height:1.3; overflow-wrap:anywhere; }
  .employee-diary .employee-date-nav { padding:10px; gap:6px; }
  .employee-diary :is(.employee-day,.employee-arrow) { min-height:50px; }
  .employee-diary .employee-day strong { font-size:18px; }
}

.admin-period-table td { vertical-align: top; }
.admin-period-table td small { display:block; color:var(--muted); }
.period-controls { min-width:9rem; }
.period-controls summary { cursor:pointer; color:var(--deep); font-weight:650; }
.period-controls[open] { width: min(16rem, 76vw); }
.period-controls p { margin:8px 0; color:var(--muted); white-space:normal; }
.period-controls form { display:grid; gap:8px; margin:12px 0 0; }
.period-controls label { display:grid; gap:3px; }
@media (max-width:760px) {
 .admin-period-table .table-scroll table,.admin-period-table tbody,.admin-period-table tr { display:block; width:100%; min-width:0; }
 .admin-period-table thead { display:none; }
 .admin-period-table tbody tr { padding:12px; border-bottom:1px solid var(--line); }
 .admin-period-table td { display:block; border:0; white-space:normal; padding:4px; }
 .admin-period-table td[data-label]::before { content:attr(data-label) " · "; color:var(--muted); }
 .period-controls[open] { width:100%; }
}

.agenda-drop-slot.agenda-slot-past { background: color-mix(in srgb,var(--muted) 9%,transparent); cursor:not-allowed; }

.commercial-grid,.commercial-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;margin:1rem 0;align-items:start}
.commercial .card{padding:clamp(1rem,3vw,2rem);min-width:0}.commercial .card h2{margin-top:0}
.commercial form,.commercial form label,.commercial-search label{display:grid;gap:.5rem}
.commercial form{gap:1rem}.commercial form button{justify-self:start}
.commercial-nav,.commercial-search{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin:1rem 0}
.commercial-search{align-items:end}.commercial-search input,.commercial-search select{max-width:100%}
.commercial-stats>div{display:grid;gap:.4rem;padding:1rem;background:var(--surface,#fff);border-radius:12px}
.commercial-stats strong{font-size:1.5rem}.finance-row,.receipt{display:flex;gap:.7rem;align-items:center;justify-content:space-between;padding:.6rem 0}
.finance-row span{min-width:4rem}.finance-row meter{flex:1;min-width:1rem;height:1rem;accent-color:#973959}
.finance-row meter::-webkit-meter-optimum-value{background:#973959}.finance-row meter::-moz-meter-bar{background:#973959}

.subscriber-counts a{display:grid;gap:.4rem;background:#fff;border:1px solid #eadbdc;border-radius:12px;padding:.9rem;color:inherit;text-decoration:none}
.subscriber-counts a:hover,.subscriber-counts a:focus-visible{border-color:#99435e}
.report-filter{background:#fff;padding:1rem;border-radius:14px;border:1px solid #eadbdc}.report-filter summary{cursor:pointer}.report-filter input,.report-filter select{max-width:100%}
.commercial .card+.card{margin-top:1rem}

/* Painéis de operação do Super Admin */
.admin-desk {--desk-border:#e4deda;--desk-ink:#302733;--desk-accent:#873c58;--desk-muted:#6a6268;align-items:start}
.admin-desk .workspace-main{min-width:0;color:var(--desk-ink);font-size:14px;line-height:1.5}
.admin-desk .workspace-main .intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:0;border:0}
.admin-desk .workspace-main .intro h1{font:500 clamp(32px,3.5vw,48px)/1.07 'Playfair Display',Georgia,serif;letter-spacing:-.045em;margin:0 0 5px}
.admin-desk .intro p,.admin-desk .section-note{font-size:14px;color:var(--desk-muted);margin:0}
.admin-desk .workspace-main h2{font:650 18px/1.25 'DM Sans',Arial,sans-serif;letter-spacing:-.035em;margin:0 0 14px}
.admin-desk :is(.card,.directory-sheet){background:#fff;border:1px solid var(--desk-border);border-radius:16px;box-shadow:0 3px 10px #38232d05}
.admin-desk .workspace-main .card{padding:clamp(16px,2vw,24px);margin:0}
.admin-desk .commercial-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:14px;margin:14px 0;align-items:stretch}
.admin-desk .commercial>.card+.card{margin-top:14px}
.admin-desk .report-period{display:inline-block;margin:0 0 12px;color:var(--desk-muted);font-size:13px;font-variant-numeric:tabular-nums}
.admin-desk .commercial-stats{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:0;background:white;border:1px solid var(--desk-border);border-radius:16px;overflow:hidden;margin:0}
.admin-desk .commercial-stats>:is(div,a){display:flex;flex-direction:column;justify-content:center;gap:5px;padding:14px 16px;min-width:0;border:0;border-radius:0;background:transparent}
.admin-desk .commercial-stats>:is(div,a)+:is(div,a){border-left:1px solid var(--desk-border)}
.admin-desk .commercial-stats small{font-size:12px;line-height:1.35;color:var(--desk-muted)}
.admin-desk .commercial-stats strong{font:650 clamp(19px,2vw,28px)/1.15 'DM Sans',Arial,sans-serif;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.admin-desk .ledger-totals{grid-template-columns:1.4fr 1.2fr .8fr 1fr 1fr}
.admin-desk .ledger-totals .total-primary{background:#553544;color:white}
.admin-desk .total-primary small{color:#fae6ee}.admin-desk .total-primary strong{color:white}
.admin-desk .ledger-totals small~small{font-size:11px}
.admin-desk .subscriber-counts{margin:0 0 20px}
.admin-desk .subscriber-counts a{position:relative;padding-left:20px}
.admin-desk .subscriber-counts a::before{content:"";width:3px;height:28px;border-radius:2px;background:#798b79;position:absolute;left:7px;bottom:15px}
.admin-desk .subscriber-counts .metric-trial7::before{background:#ab8046}.admin-desk .subscriber-counts .metric-paid7::before{background:#ad6883}.admin-desk .subscriber-counts .metric-expired::before{background:#897d89}
.admin-desk .subscriber-counts a:is(:hover,[aria-current]){background:#f6eaf0}
.directory-sheet{padding:18px 0 0;overflow:hidden}.directory-caption,.directory-sheet>.commercial-search,.directory-sheet>.commercial-nav{margin:0;padding:0 18px 14px}
.admin-desk .directory-caption{display:flex;align-items:center;gap:10px}.admin-desk .directory-caption h2{margin:0}.directory-caption span{color:var(--desk-muted);font-size:13px}
.admin-desk :is(input,select){font-size:14px;min-height:40px;padding:8px 10px;border:1px solid #cfc5ca;border-radius:8px;background:#fff}
.admin-desk .commercial-search label{min-width:0;font-size:12px;font-weight:600;color:var(--desk-muted)}
.admin-desk .directory-sheet .commercial-search label:first-child{flex:1}
.admin-desk :is(.pill,.button-outline){min-height:40px;padding:9px 14px;box-shadow:none;font-size:14px}
.admin-desk .table-scroll{margin:0}.admin-desk table{width:100%;border-collapse:collapse}.admin-desk .table-scroll th{background:#f7f4f3;font-size:12px;text-transform:none;letter-spacing:0;color:#64575e;padding:10px}
.admin-desk .table-scroll td{font-size:13px;line-height:1.45;padding:13px 10px;vertical-align:middle}.admin-desk td a{color:var(--desk-accent);font-weight:650}
.admin-desk td small{font-size:12px;color:var(--desk-muted)}.admin-desk td details summary{color:var(--desk-accent);font-weight:600;cursor:pointer}
.admin-desk .directory-sheet>.commercial-nav{padding:12px 18px;border-top:1px solid var(--desk-border);justify-content:end;font-size:12px;color:var(--desk-muted)}
.state-pill{display:inline-block;border-radius:20px;background:#f0ecef;color:#625560;padding:3px 9px;font-size:12px;font-weight:650;white-space:nowrap}
.state-active,.state-paid{background:#e6f2ed;color:#326348}.state-pending,.state-trial{background:#faf0d9;color:#78591d}.state-expired,.state-failed,.state-suspended{background:#f7e7e8;color:#8b3c48}
.filter-drawer{position:relative}.filter-drawer>summary{display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #cfc5ca;background:white;border-radius:9px;cursor:pointer;font-weight:600}.filter-drawer>summary::after{content:'▾';color:var(--desk-muted)}
.admin-desk .filter-drawer>.report-filter{position:absolute;z-index:3;right:0;top:calc(100% + 6px);width:min(520px,80vw);padding:15px;background:white;box-shadow:0 10px 30px #32233024;border:1px solid var(--desk-border)}
.admin-desk .report-filter .commercial-search{margin:0}.admin-desk .report-filter label{flex:1 1 130px}
.admin-desk .revenue-plot{margin:16px 0 6px}.revenue-plot svg{display:block;width:100%;height:124px}.revenue-plot line{stroke:#e9e3e5;stroke-dasharray:3 4}.revenue-plot rect{fill:#985677}.revenue-plot figcaption{display:flex;justify-content:space-between;color:var(--desk-muted);font-size:11px}
.plot-values summary{font-size:12px;color:var(--desk-accent);cursor:pointer}.quiet-empty{padding:30px 0;color:var(--desk-muted)}
.admin-desk .finance-row{flex-wrap:wrap;display:grid;grid-template-columns:1fr auto;gap:4px;margin-top:10px}.admin-desk .finance-row meter{order:3;grid-column:1/-1;width:100%;height:9px}.admin-desk .finance-row strong{font-size:14px}
@media(max-width:950px){.admin-desk .ledger-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-desk .ledger-totals>div:nth-child(n+4){border-top:1px solid var(--desk-border)}}
@media(max-width:700px){
 .admin-desk .workspace-main .intro{align-items:flex-start;flex-wrap:wrap;gap:8px}
 .admin-desk .commercial-grid{grid-template-columns:minmax(0,1fr)}
 .admin-desk .commercial-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-desk .commercial-stats>:is(a,div){padding:10px 12px}.admin-desk .subscriber-counts a{padding-left:18px}
 .admin-desk .commercial-stats>:nth-child(n+3){border-top:1px solid var(--desk-border)}
 .admin-desk .ledger-totals .total-primary{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}
 .admin-desk .ledger-totals .total-primary small:last-child{flex-basis:100%}
 .admin-desk .filter-drawer{width:100%}.admin-desk .filter-drawer>summary{width:fit-content}
 .admin-desk .filter-drawer>.report-filter{position:static;width:100%;margin-top:5px;box-shadow:none}
 .admin-desk .directory-sheet>.commercial-search{gap:8px}.admin-desk .directory-sheet .commercial-search label:first-child{flex-basis:100%}
 .admin-desk .directory-sheet :is(table,tbody){display:block;min-width:0;width:100%}.admin-desk .directory-sheet thead{display:none}
 .admin-desk .directory-sheet tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;padding:14px 16px;border-top:1px solid var(--desk-border)}
 .admin-desk .directory-sheet td{display:block;min-width:0;overflow-wrap:anywhere;border:0;padding:0;white-space:normal}
 .admin-desk .directory-sheet td[data-label]::before{content:attr(data-label);display:block;color:var(--desk-muted);font-size:11px}
 .admin-desk .directory-sheet td:first-child,.admin-desk .directory-sheet td:last-child{grid-column:1/-1}
}

/* Super Admin: perfis, plano e acompanhamento */
.hub{--plum:#522a40;--mist:#fbf5f6;--stroke:#e4d8da;--subtle:#675865;min-width:0}
.hub-hero{isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:22px;border-radius:20px;padding:clamp(20px,3vw,34px);color:white;background:radial-gradient(ellipse at 92% 0%,#95546b 0,transparent 58%),linear-gradient(115deg,#402636,#69394e);margin-bottom:18px}
.hub-hero::before,.hub-hero::after{content:"";position:absolute;z-index:-1;width:310px;height:310px;border-radius:50%;border:1px solid #ffffff24;right:4%;top:-160px;pointer-events:none}.hub-hero::after{right:8%;top:-190px}
.hub-kicker{font-size:12px;font-weight:650;color:#ffdeeb}.hub .hub-hero h1{font:500 clamp(29px,3.2vw,47px)/1.1 'Playfair Display',Georgia,serif;letter-spacing:-.045em;margin:6px 0;color:white;overflow-wrap:anywhere}.hub-hero p{margin:0;color:#f7e9ed;font-size:14px;overflow-wrap:anywhere}
.hero-price{flex:none;display:grid;gap:3px;border-left:1px solid #ffffff50;padding-left:22px;font-variant-numeric:tabular-nums}.hero-price strong{font-size:24px;color:white}.hero-price small{color:#faeaf1}.hero-status{font-weight:700}
.hub-panel{background:#fff;border:1px solid var(--stroke);border-radius:16px;padding:clamp(16px,2vw,24px);min-width:0}.hub-panel p{color:var(--subtle);line-height:1.55}.hub .hub-panel h2{margin:0 0 10px}.hub-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hub-heading a{margin-bottom:10px}
.hub-icon{display:inline-grid;place-items:center;width:40px;height:40px;background:#f7ebef;border-radius:13px;font-size:21px;margin-bottom:10px}
.plan-board,.profile-board{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:16px;align-items:start}.profile-board{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}.profile-column{display:grid;gap:14px;min-width:0}
.hub-badge{border:1px solid var(--stroke);border-radius:20px;padding:4px 10px;color:var(--plum);font-size:12px}.hub .promo-ticket{display:grid;gap:5px;padding:16px 18px;background:var(--mist);border:1px solid #e6cfd9;border-radius:12px}.promo-ticket>strong,.hub-amount{font-size:26px;line-height:1.25;letter-spacing:-.035em;color:var(--plum)}.hub-amount small{font-size:12px;color:var(--subtle)}.impact{display:flex;gap:8px 16px;flex-wrap:wrap;padding:8px 0;border-block:1px dashed #d8bfc9;margin:4px 0}.impact b{color:var(--plum)}
.hub-back{display:inline-block;margin-bottom:10px}.hub-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.hub-facts{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:12px 0 18px}.hub-facts dt,.hub-facts dd{padding:7px 0;margin:0;border-bottom:1px solid #f1ecee}.hub-facts dd{text-align:right;font-weight:650;overflow-wrap:anywhere}.usage-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.usage-trio>div{display:grid;gap:3px;background:var(--mist);padding:10px;border-radius:9px}.usage-trio strong{font-size:22px}.usage-trio small{line-height:1.3}.usage-trio+p{margin:9px 0 0}
.hub-panel summary{cursor:pointer;font-weight:650;color:var(--plum)}.note-editor{background:var(--mist);border-radius:10px;padding:10px 14px;margin:12px 0}.note-editor form{padding-top:10px}.note-editor textarea{width:100%;resize:vertical;padding:10px;border-radius:8px;border:1px solid #cdbec4;background:white;font:inherit}
.event-list{list-style:none;padding:0;margin:16px 0 0}.event-list li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;position:relative;padding-bottom:16px}.event-list li:not(:last-child)::before{content:"";position:absolute;left:16px;top:30px;bottom:0;width:1px;background:var(--stroke)}.event-mark{display:grid;align-items:center;justify-content:center;align-self:start;height:32px;border-radius:50%;background:var(--mist)}.event-list article{display:grid;gap:2px}.event-list small{font-size:11px;color:var(--subtle)}.event-list p{margin:0}.note-body{white-space:pre-wrap;overflow-wrap:anywhere}
.attention-panel{margin:16px 0}.attention-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--stroke)}.attention-row .hub-icon{margin:0;flex-shrink:0}.attention-row div{flex:1;min-width:0;overflow-wrap:anywhere}.attention-row small{display:block;color:var(--subtle)}
@media(max-width:760px){.plan-board,.profile-board{grid-template-columns:minmax(0,1fr)}.hub-hero{flex-wrap:wrap;gap:14px}.hero-price{border:0;border-top:1px solid #ffffff45;padding:9px 0 0;width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hero-price strong{font-size:18px}.attention-row{flex-wrap:wrap}.attention-row a{font-size:12px}.hub-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.term-menu{position:relative}.term-menu summary{cursor:pointer}.term-options{position:absolute;z-index:2;top:calc(100% + 6px);left:0;width:min(285px,78vw);background:white;padding:15px;border:1px solid var(--stroke);border-radius:12px;box-shadow:0 10px 28px #42213721}.term-options form+form{border-top:1px solid var(--stroke);margin-top:12px;padding-top:12px}
