/* Shared operational kit. Auth intentionally keeps its independent presentation. */
body:has(:is(#clienteView, #adminView):not(.hidden)) {
  background: var(--kz-bg) !important;
  color: var(--kz-text) !important;
  font-family: var(--kz-font-body);
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) {
  color: var(--kz-text);
  --panel: var(--kz-surface);
  --text: var(--kz-text);
  --line: var(--kz-border);
  --muted: var(--kz-muted);
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(button, input, select, textarea) { font: inherit; letter-spacing: 0; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) button {
  min-height: var(--kz-control-height);
  border-radius: var(--kz-radius-md) !important;
  box-shadow: none !important;
  white-space: normal;
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) button::after { box-shadow: none !important; }
.kz-wizard-progress, .kz-wizard-previous, .kz-wizard-next { display: none; }
/* Empty search results must not shorten the page and move the focused field. */
body #clientConfig > .form-layout { min-height: 100vh; min-height: 100svh; overflow-anchor: none; align-content: start; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) button:not(:where(.secondary, .danger, .warning, [data-client-tab], [data-admin-tab], [role="switch"], .client-conversation-item, .client-contact-item, .quick-action, .quick-mini-action)) {
  background: var(--kz-accent) !important;
  color: var(--kz-accent-ink) !important;
}
body:not(:has(#loginView:not(.hidden))) #clienteView :is(.catalog-sales-kpi, .mobile-section-tabs button, .payments-segmented button, .catalog-view-switch button, .agenda-workspace-tabs button, .agenda-view-switch button) {
  background: var(--kz-surface) !important; color: var(--kz-text) !important; border-color: var(--kz-border) !important;
}
body:not(:has(#loginView:not(.hidden))) #clienteView :is(.mobile-section-tabs button.active, .payments-segmented button.active, .catalog-view-switch button.is-active, .agenda-workspace-tabs button.is-active, .agenda-view-switch button.is-active) {
  background: var(--kz-accent-soft) !important; color: var(--kz-accent) !important; border-color: var(--kz-accent) !important;
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) button.secondary, .kz-secondary {
  background: var(--kz-surface) !important;
  color: var(--kz-text) !important;
  border: 1px solid var(--kz-border) !important;
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--kz-accent); outline-offset: 3px; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) {
  min-height: var(--kz-control-height);
  background: var(--kz-surface) !important;
  border-color: var(--kz-border) !important;
  color: var(--kz-text) !important;
  border-radius: var(--kz-radius-sm) !important;
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(.panel, .command-card, .form-section, .catalog-sales-kpi, .metric, .client-card, .payments-card) {
  background: var(--kz-surface) !important;
  color: var(--kz-text) !important;
  border-color: var(--kz-border) !important;
  border-radius: var(--kz-radius-md) !important;
  box-shadow: none !important;
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) > .panel { border: 0 !important; background: transparent !important; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(.section-head, .form-section-head, .subsection-head) { gap: 16px; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(h2, h3, strong) { color: var(--kz-text); letter-spacing: 0 !important; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) .section-head h2 { font: 600 24px/1.3 var(--kz-font-heading); }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(.section-head, .form-section-head, .subsection-head) p { color: var(--kz-muted) !important; font-size: 14px; line-height: 1.5; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(.section-kicker, .eyebrow) { color: var(--kz-muted) !important; font-size: 11px; letter-spacing: 0 !important; text-transform: uppercase; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(.status, .badge, .client-list-item-meta) {
  border-radius: 4px !important; font-size: 12px; line-height: 1.5; font-weight: 500; box-shadow: none !important;
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(.checkbox-line, .feature-toggle-card, .catalog-active-check, .catalog-file-button) {
  color: var(--kz-text) !important; background: var(--kz-surface) !important; border-color: var(--kz-border) !important; border-radius: 8px !important;
}
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(.checkbox-line, .feature-toggle-card) :is(span, strong) { color: var(--kz-text) !important; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) input[type="checkbox"] { accent-color: var(--kz-accent); }
.kz-appointment-advanced { margin: 16px 0; border-top: 1px solid var(--kz-border); }
.kz-appointment-advanced summary { padding: 14px 0; cursor: pointer; color: var(--kz-muted); }
.kz-wizard-content > .kz-wizard-step { display: contents; }
.kz-wizard-content > .kz-wizard-step > .agenda-form-grid { display: contents; }
.feature-sheet-trigger { width: 100%; justify-content: center; margin: 0 0 12px; }
.feature-sheet-trigger:disabled { opacity: .48; cursor: not-allowed; }
.kz-sheet[data-config-feature-sheet] { display: grid !important; gap: 14px; }
.kz-sheet[data-config-feature-sheet] > :not(.kz-sheet-head) { margin: 0 !important; }
.admin-priority-section { margin-bottom: 24px; }
.admin-priority-section h3 { margin: 0 0 12px; font-size: 18px; }
.admin-priority-list { display: grid; gap: 8px; }
.admin-priority-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px !important; text-align: left; }
.admin-priority-item small { color: var(--kz-muted); }
.admin-metrics-details, .admin-create-key { margin: 0 0 24px; border: 1px solid var(--kz-border); border-radius: 8px; background: var(--kz-surface); }
.admin-metrics-details > summary, .admin-create-key > summary { padding: 14px 16px; cursor: pointer; font-weight: 600; color: var(--kz-text); }
.admin-metrics-details > .grid, .admin-create-key > form, .admin-create-key > .notice { margin: 0; padding: 0 16px 16px; }
.admin-create-key > form { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.kz-sheet-backdrop { position: fixed; inset: 0; z-index: 4100; background: rgb(0 0 0 / 52%); }
.kz-sheet {
  position: fixed !important; z-index: 4101; inset: auto 0 0 !important;
  width: min(640px, 100%) !important; margin: 0 auto !important;
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 20px calc(20px + var(--kz-safe-bottom)) !important;
  background: var(--kz-surface) !important; color: var(--kz-text) !important;
  border: 1px solid var(--kz-border) !important; border-radius: 8px 8px 0 0 !important;
  box-shadow: 0 -12px 48px var(--kz-shadow) !important;
}
.kz-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.kz-sheet-head h3 { margin: 0; font: 600 18px/1.4 var(--kz-font-body); }
.kz-sheet-head button { min-width: 44px; }
body.kz-overlay-open { overflow: hidden; }
.kz-card { padding: 16px; border: 1px solid var(--kz-border); background: var(--kz-surface); border-radius: 8px; }
.kz-muted { color: var(--kz-muted); }
.client-priority-section { margin: 24px 0; }
.client-priority-section h3 { font-size: 18px; margin: 0 0 12px; }
.client-priority-list { display: grid; gap: 0; }
.client-priority-item { display: grid; text-align: left; gap: 5px; padding: 16px !important; border-radius: 0 !important; border-left: 3px solid var(--kz-accent) !important; }
.client-priority-item strong { font-size: 15px; }
.client-priority-item small { color: var(--kz-muted); font-size: 13px; }
.client-metric-details { padding: 8px 0; border-bottom: 1px solid var(--kz-border); }
.client-metric-details summary { min-height: 44px; padding: 12px 0; color: var(--kz-muted); cursor: pointer; font-size: 14px; }
body:not(:has(#loginView:not(.hidden))) #clienteView #commandKpiStrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px; background: transparent !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView #clientDashboardMetricsSlot { border: 0 !important; padding: 0 !important; background: transparent !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView #clientDashboardMetrics { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-conversation-item :is(.client-list-item-top small, .client-list-item-meta) { display: block !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView #clientDashboardMetrics :is(strong, span, small) { color: var(--kz-text) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView #clientDashboardMetrics :is(span, small) { color: var(--kz-muted) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-command-kpis .catalog-sales-kpi { background: var(--kz-surface) !important; border-color: var(--kz-border) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-command-kpis .catalog-sales-kpi :is(strong, span, small) { color: var(--kz-text) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-command-kpis .catalog-sales-kpi :is(span, small) { color: var(--kz-muted) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-dashboard-metrics-slot { background: transparent !important; border: 0 !important; padding: 0 !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-activity-card { background: transparent !important; border: 0; padding: 0; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-severe-alert-card {
  background: var(--kz-surface) !important; color: var(--kz-text) !important;
  border-color: var(--kz-border) !important; box-shadow: inset 3px 0 0 var(--kz-danger) !important;
}
body:not(:has(#loginView:not(.hidden))) #clienteView .client-severe-alert-card p,
body:not(:has(#loginView:not(.hidden))) #clienteView .severe-alert-modal-body p { color: var(--kz-muted) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .severe-alert-responsibility {
  background: var(--kz-elevated) !important; color: var(--kz-text) !important;
  border-color: var(--kz-border) !important; box-shadow: inset 3px 0 0 var(--kz-danger) !important;
}
body:not(:has(#loginView:not(.hidden))) #clienteView .client-severe-alert-card button {
  background: var(--kz-elevated) !important; color: var(--kz-text) !important; border-color: var(--kz-border) !important;
}
/* Inbox uses one compact row per person and a dedicated reading surface. */
body:not(:has(#loginView:not(.hidden))) #clienteView button.client-conversation-item {
  display: grid !important; grid-template-columns: 40px minmax(0, 1fr); gap: 12px;
  padding: 14px 4px !important; border: 0 !important; border-bottom: 1px solid var(--kz-border) !important;
  background: transparent !important; text-align: left; border-radius: 0 !important;
}
body:not(:has(#loginView:not(.hidden))) #clienteView .client-conversation-item::before, body:not(:has(#loginView:not(.hidden))) #clienteView .client-list-status-dot { display: none !important; }
.client-list-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--kz-elevated); color: var(--kz-muted); font-size: 14px; font-weight: 600; }
.client-list-item-copy { display: grid; min-width: 0; gap: 4px; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-list-item-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-list-item-top strong { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-list-item-top small { flex: none; font-size: 11px; color: var(--kz-muted) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-list-item-summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--kz-muted) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-conversation-item .client-list-item-meta { justify-self: start; padding: 1px 5px; color: var(--kz-muted) !important; background: var(--kz-elevated) !important; border: 0 !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-conversation-item[data-status="aguardando"] .client-list-item-meta { color: var(--kz-warning) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-conversation-item.active { background: var(--kz-accent-soft) !important; }
#clienteView .client-conversation-row { position: relative; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-conversation-row .client-conversation-item { padding-right: 88px !important; }
#clienteView .client-conversation-delete {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  min-width: 68px; min-height: 36px; padding: 0 8px !important;
  border-color: transparent !important; background: transparent !important;
  color: var(--kz-danger, #b8443d) !important; box-shadow: none !important;
  font-size: 12px;
}
#clienteView .client-conversation-delete:hover,
#clienteView .client-conversation-delete:focus-visible {
  border-color: color-mix(in srgb, var(--kz-danger, #b8443d) 40%, var(--kz-border)) !important;
  background: color-mix(in srgb, var(--kz-danger, #b8443d) 10%, transparent) !important;
}
body:not(:has(#loginView:not(.hidden))) #clienteView .client-thread-message { background: var(--kz-elevated) !important; color: var(--kz-text) !important; border: 1px solid var(--kz-border) !important; border-radius: 8px !important; box-shadow: none !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-thread-message.out { background: var(--kz-accent-soft) !important; border-color: color-mix(in srgb, var(--kz-accent) 28%, var(--kz-border)) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-thread-message.human { background: var(--kz-surface) !important; border-left: 3px solid var(--kz-muted) !important; }
body:not(:has(#loginView:not(.hidden))) #clienteView .client-thread-message span { color: var(--kz-muted) !important; font-size: 11px; }
.client-thread-actions { display: grid; gap: 8px; padding: 12px 0 0; border-top: 1px solid var(--kz-border); }
.client-thread-actions button { width: 100%; }
.client-thread-head > div { min-width: 0; }
.client-thread-head h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-conversation-delete-modal { width: min(460px, calc(100vw - 32px)); }
.client-conversation-delete-modal .help { margin: 0; }
body #kaioInstructorFloatingBtn {
  position: fixed !important; inset: auto 24px 24px auto !important; z-index: 2300;
  display: block; width: auto !important; height: 44px !important; min-height: 44px;
  max-width: calc(100vw - 32px); padding: 0 14px !important;
  border: 1px solid var(--kz-border) !important; border-radius: 8px !important;
  background: var(--kz-surface) !important; color: var(--kz-text) !important;
  box-shadow: 0 4px 18px var(--kz-soft-shadow) !important;
  writing-mode: horizontal-tb !important; transform: none !important; font: 500 13px var(--kz-font-body);
}
body #kaioInstructorFloatingBtn.hidden { display: none !important; }
body #kaioFloatingMenu { position: fixed; inset: auto 24px 78px auto !important; z-index: 2301; width: min(300px, calc(100vw - 32px)); border-radius: 8px !important; background: var(--kz-surface) !important; border-color: var(--kz-border) !important; }
body #kaioFloatingMenu button { min-height: 44px; background: var(--kz-surface) !important; color: var(--kz-text) !important; border-color: var(--kz-border) !important; }
body #kaioInstructorDock { background: var(--kz-surface) !important; color: var(--kz-text) !important; border-color: var(--kz-border) !important; border-radius: 8px !important; }
body:has(.modal-backdrop:not(.hidden)) #kaioInstructorFloatingBtn { visibility: hidden; }
body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) [hidden] { display: none !important; }
body #clientMoreSheet { border-radius: 8px !important; background: var(--kz-surface) !important; border-color: var(--kz-border) !important; color: var(--kz-text); }
body #clientMoreSheet :is(strong, h3) { color: var(--kz-text) !important; }
body #clientMoreSheet span { color: var(--kz-muted) !important; }
@media (max-width: 760px) {
  body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) { font-size: 15px; line-height: 1.5; }
  body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) .section-head h2 { font-size: 22px; }
  body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) .section-head { margin-bottom: 20px; }
  body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) :is(input, select, textarea) { font-size: 16px; }
  body:not(:has(#loginView:not(.hidden))) :is(#clienteView, #adminView) summary { min-height: 44px; padding: 12px; }
  #clienteView > .panel { padding: 0 !important; }
  body:has(#clientConversations:not(.hidden).mobile-detail-open) { overflow: hidden; }
  body #clientConversations.mobile-detail-open .client-thread-card {
    position: fixed !important; inset: 0 !important; z-index: 2200; width: 100%; height: 100dvh;
    display: grid !important; grid-template-rows: auto minmax(0, 1fr) auto;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  }
  body #clientConversations.mobile-detail-open .client-thread-head {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    border-bottom: 1px solid var(--kz-border); margin: 0;
  }
  body #clientConversations .client-mobile-back { width: 44px; min-width: 44px; padding: 0 !important; font-size: 22px; }
  body #clientConversations.mobile-detail-open #conversationSelectedSummary { display: none; }
  body #clientConversations.mobile-detail-open #conversationThread {
    height: auto !important; max-height: none !important; min-height: 0 !important; margin: 0 !important;
    border: 0 !important; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--kz-bg) !important;
  }
  body #clientConversations.mobile-detail-open .client-thread-actions { margin: 0; padding: 12px 16px calc(12px + var(--kz-safe-bottom)); background: var(--kz-surface); }
  body #clientConversations.mobile-detail-open .client-thread-actions button { position: static !important; margin: 0 !important; width: 100% !important; }
  body #deleteConversationModal .client-conversation-delete-modal { width: min(calc(100% - 24px), 460px); max-height: calc(100dvh - 24px); overflow-y: auto; }
  body:has(#clientConversations:not(.hidden).mobile-detail-open) #clienteView > nav { visibility: hidden; }
  .kz-sheet.client-workspace-toolbar { display: grid !important; grid-template-columns: 1fr !important; gap: 16px; }
  body #kaioInstructorFloatingBtn { right: 16px !important; bottom: calc(var(--kz-nav-height) + var(--kz-safe-bottom) + 12px) !important; }
  body #kaioFloatingMenu { right: 16px !important; bottom: calc(var(--kz-nav-height) + var(--kz-safe-bottom) + 64px) !important; }
  /* Reserve separate rows for saving and contextual help above mobile navigation. */
  body #clientConfig .form-savebar {
    position: fixed; left: 16px; right: 16px;
    bottom: calc(var(--kz-nav-height) + var(--kz-safe-bottom) + 64px);
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    width: auto; margin: 0; padding: 6px; border-radius: 8px;
  }
  body #clientConfig .form-savebar > button[type="submit"] { width: 100%; min-height: 44px; }
  body #clientConfig .form-savebar #configStatus {
    position: static; min-width: 0; max-width: 100%; margin: 0; text-align: left;
  }
  body:has(#clientConfig:not(.hidden)) #kaioFloatingMenu { bottom: calc(var(--kz-nav-height) + var(--kz-safe-bottom) + 136px) !important; transform: none; }
  body:has(#kaioInstructorDock:not(.hidden), #kaioFloatingMenu:not(.hidden)) #clientConfig .form-savebar { visibility: hidden; }
  body #clienteView.mobile-tab-transition > #clientConfig { animation: none; }
  body #clientConfig:focus-within .config-search-bar { overflow-anchor: none; }
  body #configSearchHint { min-height: 4.5em; }
  body:has(#clientConversations:not(.hidden).mobile-detail-open) #kaioInstructorFloatingBtn { top: calc(12px + env(safe-area-inset-top, 0px)) !important; bottom: auto !important; width: 44px !important; padding: 0 !important; font-size: 0; }
  body:has(#clientConversations:not(.hidden).mobile-detail-open) #kaioInstructorFloatingBtn::after { content: 'K'; font: 600 16px var(--kz-font-body); }
  body:has(#clientConversations:not(.hidden).mobile-detail-open) .client-thread-head { padding-right: 72px !important; }
  body:has(#clientConversations:not(.hidden).mobile-detail-open) #kaioFloatingMenu { top: calc(66px + env(safe-area-inset-top, 0px)) !important; bottom: auto !important; }
  body #kaioInstructorDock:not(.hidden) { position: fixed !important; inset: 8px 8px calc(var(--kz-nav-height) + var(--kz-safe-bottom) + 8px) !important; width: auto !important; height: auto !important; max-height: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav.client-main-nav {
    position: fixed !important; inset: auto 0 0 !important; z-index: 2100; margin: 0 !important;
    width: 100% !important; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--kz-nav-height) + var(--kz-safe-bottom)) !important; padding: 4px 4px calc(4px + var(--kz-safe-bottom)) !important;
    border: 0 !important; border-top: 1px solid var(--kz-border) !important; border-radius: 0 !important; background: var(--kz-surface) !important;
  }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav [data-mobile-primary] { display: flex !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav [data-mobile-more] { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav [data-client-tab="dashboard"] { order: 0; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav [data-client-tab="conversas"] { order: 1; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav [data-client-tab="pedidos"] { order: 2; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav [data-client-tab="pagamentos"] { order: 3; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav #clientMoreNavBtn { order: 4; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav button { min-width: 0 !important; padding: 4px 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; gap: 4px; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav button.active { background: var(--kz-accent-soft) !important; color: var(--kz-accent) !important; box-shadow: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav .nav-label { font-size: 11px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav .nav-step { width: 24px !important; height: 24px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav .module-access-state { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView { padding-bottom: calc(var(--kz-nav-height) + var(--kz-safe-bottom) + 84px); }
  body #clientMoreSheet { bottom: calc(var(--kz-nav-height) + var(--kz-safe-bottom) + 8px); }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav .nav-label { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav button::after { content: attr(data-short-label); font: 500 11px/16px var(--kz-font-body); }
  body:not(:has(#loginView:not(.hidden))) #clienteView > nav button::after { position: static !important; display: block !important; width: auto !important; height: auto !important; opacity: 1 !important; transform: none !important; background: transparent !important; border: 0 !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView #commandKpiStrip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView #commandKpiStrip .catalog-sales-kpi { min-height: 92px; padding: 12px !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView #clientDashboardMetrics { grid-template-columns: 1fr; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .client-command-secondary-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; overflow: visible !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard {
    display: flex; flex-direction: column; width: 100%; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px);
    padding: 16px; overflow: hidden !important;
  }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .modal-header { flex: none; margin-bottom: 0; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .modal-header .modal-actions { padding: 0; margin: 0; border: 0; background: transparent !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard-progress { display: block; flex: none; padding: 12px 0; border-bottom: 1px solid var(--kz-border); font-size: 13px; color: var(--kz-muted); }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard :is(.kz-wizard-previous, .kz-wizard-next) { display: block; flex: 1; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .kz-wizard-next[hidden] { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .kz-wizard-save-hidden { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .kz-wizard-step:not([data-ux-step-active="true"]) { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .kz-wizard-step { background: transparent !important; padding: 20px 0 !important; border: 0 !important; margin: 0 !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .kz-wizard-step > :not(.form-section-head):not(.hidden) { display: block !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .mobile-collapse-toggle { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard :is(.catalog-form-grid, .kz-wizard-content) { display: block !important; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .catalog-form-main { display: contents; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard > .modal-actions { flex: none; display: flex; flex-wrap: wrap; margin-top: 0; padding-bottom: calc(12px + var(--kz-safe-bottom)); }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard > .modal-actions > [type="submit"] { flex: 1; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .catalog-photo-preview { height: 220px; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .modal-header { flex-wrap: wrap; gap: 8px; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .modal-header > div:first-child { flex: 1; min-width: 160px; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .modal-header h2 { font-size: 18px !important; line-height: 1.4; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .modal-header > .modal-actions { flex-basis: 100%; justify-content: flex-start; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .form-section-number { display: none; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .catalog-photo-field { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .catalog-photo-field:not([data-ux-step-active="true"]) { display: none !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .catalog-photo-field > * { width: 100% !important; max-width: none !important; grid-column: 1 !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard :is(.catalog-active-check, .compact-checkbox, .compact-feature) { display: flex !important; align-items: center; gap: 12px; min-height: 44px; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard :is(.catalog-active-check, .compact-checkbox, .compact-feature) input[type="checkbox"] { width: 20px !important; flex: 0 0 20px; margin: 0; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .kz-wizard-content > .kz-wizard-step > .agenda-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .kz-wizard .kz-wizard-content > .kz-wizard-step > .kz-appointment-advanced { display: block; }
  body:not(:has(#loginView:not(.hidden))) #clienteView :is(.client-orders-kpis, .client-reports-kpis) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView :is(.client-orders-kpis, .client-reports-kpis) > * { min-height: 84px; padding: 12px !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView #clientReports .mobile-section-tabs { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; }
  body:not(:has(#loginView:not(.hidden))) #clienteView #clientReports .mobile-section-tabs button { width: 100%; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .client-contact-item { border: 0 !important; border-bottom: 1px solid var(--kz-border) !important; border-radius: 0 !important; background: transparent !important; }
  body:not(:has(#loginView:not(.hidden))) #clienteView .client-account-summary > * { border: 0 !important; border-bottom: 1px solid var(--kz-border) !important; border-radius: 0 !important; background: transparent !important; padding: 12px 0 !important; }
  body:not(:has(#loginView:not(.hidden))) #adminView #adminDashboard > .grid,
  body:not(:has(#loginView:not(.hidden))) #adminView .admin-metrics-details > .grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  body:not(:has(#loginView:not(.hidden))) #adminView .admin-metrics-details .metric { min-height: 86px; padding: 12px !important; }
  body:not(:has(#loginView:not(.hidden))) #adminView .admin-priority-item { align-items: flex-start; flex-direction: column; gap: 4px; }
  body:not(:has(#loginView:not(.hidden))) #adminView .client-card { padding: 14px !important; }
  body:not(:has(#loginView:not(.hidden))) #adminView .key-toolbar { display: grid !important; grid-template-columns: 1fr; }
}
