:root {
  --background: #f5f7f5;
  --foreground: #17211f;
  --card: #ffffff;
  --surface-soft: #f2f7f5;
  --muted: #ece8df;
  --muted-text: #68716f;
  --border: #ddd6ca;
  --primary: #0f766e;
  --primary-dark: #0b4f49;
  --accent: #dff3ee;
  --ink: #0c1917;
  --panel: #f9fbfa;
  --amber: #b45309;
  --rose: #be185d;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.08);
  --shadow-strong: 0 24px 70px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(97, 217, 197, 0.24), transparent 28%),
    radial-gradient(circle at 95% 0%, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(135deg, #fbfbf8 0%, var(--background) 48%, #edf7f4 100%);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}

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

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

button {
  cursor: pointer;
}

[data-lucide] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 2.35;
}

.shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e4e9e7;
  background: rgba(255, 255, 255, 0.94);
  color: var(--foreground);
  padding: 8px 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(23, 33, 31, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 156px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #61d9c5;
  color: #062a27;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.sidebar-note p {
  color: var(--muted-text);
}

.side-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  margin-top: 0;
  overflow-x: auto;
}

.nav-item {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 5px;
  min-width: 72px;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7c3aed;
  text-align: center;
  padding: 7px 9px;
  font-size: 0.7rem;
  font-weight: 750;
}

.nav-item.is-active,
.nav-item:hover {
  background: #f3e8ff;
  color: #6d28d9;
}

.logout-link {
  margin-top: 0;
  border: 1px solid #eadcff;
}

.sidebar-note {
  display: none;
  margin-top: 30px;
  border: 1px solid #2b403b;
  border-radius: 8px;
  background: #213330;
  padding: 16px;
}

.sidebar-note p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.sidebar-company {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(230px, 24vw);
  min-width: 174px;
  margin-top: 0;
  border: 1px solid #e1e8e5;
  border-radius: 8px;
  background: #fbfefd;
  padding: 7px 9px;
}

.sidebar-company > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: #61d9c5;
  color: #062a27;
  font-weight: 900;
}

.sidebar-company strong,
.sidebar-company small,
.company-choice-brand strong,
.company-choice-brand small {
  display: block;
}

.sidebar-company small {
  color: var(--muted-text);
}

.sidebar-company div {
  min-width: 0;
}

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

.workspace {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 249, 0.9);
  padding: 14px 28px;
  backdrop-filter: blur(12px);
}

.company-context {
  display: none;
  margin-top: 4px;
  color: var(--muted-text);
  font-size: 0.86rem;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #99d8ca;
  border-radius: 999px;
  background: #e7f8f4;
  color: #0b4f49;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
}

.date-controls,
.actions,
.filters,
.card-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logout-button {
  display: none;
}

.date-controls input,
.filters input,
.filters select,
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--foreground);
  padding: 9px 11px;
}

.date-controls input:focus,
.filters input:focus,
.filters select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: #99d8ca;
  box-shadow: 0 0 0 3px rgba(153, 216, 202, 0.24);
  outline: none;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.secondary,
.icon-button {
  border-color: var(--border);
  background: #fff;
  color: var(--foreground);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  padding: 0;
}

.button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.tabs {
  padding: 22px 28px 28px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

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

.agenda-workbench {
  display: grid;
  gap: 14px;
}

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

.agenda-board-card {
  overflow: hidden;
  border: 1px solid #b9d7d1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-strong);
}

.agenda-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #cce3dd;
  background:
    linear-gradient(135deg, rgba(231, 248, 244, 0.95), rgba(255, 255, 255, 0.95));
  padding: 10px 12px;
}

.agenda-titlebar strong,
.agenda-titlebar small {
  display: block;
}

.agenda-titlebar small {
  color: var(--muted-text);
  font-size: 0.78rem;
}

.agenda-board-body {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 560px;
}

.calendar-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  border-right: 1px solid #d8e6e1;
  background:
    linear-gradient(180deg, #fbfefd, #f3f8f6);
  padding: 16px;
}

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

.calendar-panel-head span {
  color: var(--muted-text);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-panel-head strong {
  margin-top: 2px;
  text-transform: capitalize;
}

.mini-calendar {
  display: grid;
  gap: 8px;
}

.mini-weekdays,
.mini-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mini-weekdays {
  color: var(--muted-text);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.mini-days {
  gap: 3px;
}

.mini-day {
  position: relative;
  display: grid;
  min-width: 0;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #2f413d;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0;
}

.mini-day:hover {
  background: #e7f8f4;
}

.mini-day.is-muted {
  color: #a6b2ae;
}

.mini-day.is-today {
  outline: 1px solid #99d8ca;
}

.mini-day.is-selected {
  background: var(--primary);
  color: #fff;
}

.mini-day.has-events::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2563eb;
  content: "";
}

.mini-day.is-selected.has-events::after {
  background: #fff;
}

.calendar-legend {
  display: grid;
  gap: 9px;
  border-top: 1px solid #e3ece8;
  padding-top: 14px;
  color: #3f5651;
  font-size: 0.82rem;
  font-weight: 750;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #60a5fa;
}

.legend-dot.confirmed {
  background: #0f766e;
}

.legend-dot.done {
  background: #22c55e;
}

.legend-dot.ia {
  background: #8b5cf6;
}

.schedule-stage {
  min-width: 0;
}

.agenda-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.8rem;
}

.agenda-mini span {
  border: 1px solid #c9d8ec;
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
  box-shadow: 0 8px 18px rgba(23, 33, 31, 0.04);
}

.agenda-mini span:nth-child(1) {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.agenda-mini span:nth-child(2) {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.agenda-mini span:nth-child(3) {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.agenda-mini span:nth-child(4) {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.schedule-scroll {
  max-height: calc(100vh - 230px);
  min-height: 520px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(245, 252, 250, 0.92), rgba(236, 251, 247, 0.85));
}

.schedule-grid {
  --row-height: 28px;
  position: relative;
  display: grid;
  min-width: calc(74px + (var(--pro-count) * 230px));
  grid-template-columns: 74px repeat(var(--pro-count), minmax(230px, 1fr));
  grid-template-rows: 70px auto;
}

.schedule-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  border-right: 1px solid #9fb7d7;
  border-bottom: 1px solid #9fb7d7;
  background: #f8fbfa;
  color: #244541;
  font-size: 0.8rem;
  font-weight: 800;
}

.schedule-prof-header {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-right: 1px solid #9fb7d7;
  border-bottom: 1px solid #9fb7d7;
  border-top: 4px solid var(--pro-color);
  background: #fbfefd;
  color: #244541;
  padding: 10px;
}

.schedule-prof-header strong {
  display: block;
  overflow: hidden;
  color: var(--pro-color);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-prof-header small {
  display: block;
  overflow: hidden;
  color: var(--muted-text);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pro-color) 16%, #fff);
  color: var(--pro-color);
  font-size: 0.82rem;
  font-weight: 950;
}

.schedule-time-column {
  position: sticky;
  left: 0;
  z-index: 5;
  grid-column: 1;
  grid-row: 2;
  background: #fbfefd;
}

.time-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--row-height);
  border-right: 1px solid #9fb7d7;
  border-bottom: 1px solid #c2e6df;
  color: #244541;
  font-size: 0.72rem;
  font-weight: 700;
}

.schedule-lane {
  position: relative;
  grid-row: 2;
  min-height: calc(var(--row-count) * var(--row-height));
  border-right: 1px solid #9fb7d7;
  background: #ecfbf7;
}

.schedule-cells {
  display: grid;
  min-height: calc(var(--row-count) * var(--row-height));
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(var(--row-count), var(--row-height));
}

.slot-cell {
  width: 100%;
  height: var(--row-height);
  border: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(148, 190, 184, 0.36);
  border-radius: 0;
  background: rgba(250, 255, 253, 0.74);
  padding: 0;
}

.slot-cell.alt-row {
  background: rgba(242, 250, 247, 0.82);
}

.slot-cell.hour-start {
  border-top: 2px solid #85b5ad;
}

.slot-cell:hover,
.slot-cell:focus-visible {
  outline: none;
  background: #d2f7ec;
}

.schedule-appointment {
  position: absolute;
  top: calc((var(--start-index) * var(--row-height)) + 2px);
  right: 8px;
  left: 8px;
  z-index: 6;
  display: grid;
  min-height: 22px;
  height: calc((var(--span) * var(--row-height)) - 4px);
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pro-color) 32%, #dbe7e3);
  border-left: 5px solid var(--pro-color);
  border-radius: 7px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pro-color) 18%, #fff), #fff 72%);
  box-shadow: 0 12px 24px rgba(23, 33, 31, 0.12);
}

.schedule-appointment.cancelled,
.schedule-appointment.no_show {
  opacity: 0.64;
}

.schedule-appointment.done {
  background: #eefdf5;
}

.schedule-appointment-content {
  min-width: 0;
  padding: 6px 8px;
}

.schedule-appointment strong,
.schedule-appointment small,
.schedule-appointment span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-appointment strong {
  color: #17211f;
  font-size: 0.78rem;
}

.schedule-appointment small {
  color: #506070;
  font-size: 0.68rem;
}

.schedule-appointment span {
  margin-top: 2px;
  color: #3f5651;
  font-size: 0.64rem;
  font-weight: 800;
}

.schedule-actions {
  display: grid;
  align-content: center;
  gap: 2px;
  border-left: 1px solid #b7c9e6;
  background: #f7faff;
  padding: 3px;
}

.schedule-actions button {
  width: 22px;
  height: 18px;
  border: 1px solid #c7d5eb;
  border-radius: 4px;
  background: #fff;
  color: #1f2f52;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.now-marker {
  position: absolute;
  top: calc(70px + (var(--now-index) * var(--row-height)));
  right: 0;
  left: 74px;
  z-index: 9;
  height: 0;
  border-top: 2px solid #ef4444;
  pointer-events: none;
}

.now-marker span {
  position: absolute;
  top: -12px;
  left: 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 7px;
}

.mobile-agenda-list {
  display: none;
}

.mobile-agenda-summary,
.mobile-timeline,
.mobile-pro-strip {
  display: grid;
  gap: 12px;
}

.mobile-focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border-left: 5px solid var(--pro-color, #61d9c5);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #102a27);
  color: #fff;
  box-shadow: 0 18px 42px rgba(10, 46, 41, 0.22);
  padding: 14px;
}

.mobile-focus-card.is-empty {
  border-left-color: #61d9c5;
  background: linear-gradient(135deg, #17211f, #28403b);
}

.mobile-focus-card div {
  min-width: 0;
}

.mobile-focus-label,
.mobile-focus-card strong,
.mobile-focus-card small {
  display: block;
}

.mobile-focus-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-focus-card strong {
  overflow: hidden;
  margin-top: 4px;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-focus-card small {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-focus-card button,
.mobile-focus-state {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 900;
  padding: 0 12px;
}

.mobile-focus-state {
  display: inline-grid;
  align-items: center;
}

.mobile-section-head {
  display: none;
}

.mobile-pro-card,
.mobile-appointment-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.08);
}

.mobile-pro-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mobile-pro-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-free-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-free-slots button {
  min-height: 42px;
  border: 1px solid #b9d7d1;
  border-radius: 8px;
  background: #e7f8f4;
  color: var(--primary-dark);
  font-weight: 900;
}

.mobile-free-slots small {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--muted-text);
  font-weight: 750;
}

.mobile-appointment-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  overflow: hidden;
  border-left: 5px solid var(--pro-color);
  box-shadow: 0 16px 36px rgba(23, 33, 31, 0.1);
}

.mobile-appointment-time {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  background: #f3faf8;
  padding: 12px 8px;
}

.mobile-appointment-time strong,
.mobile-appointment-time small {
  display: block;
}

.mobile-appointment-time strong {
  font-size: 1rem;
}

.mobile-appointment-time small,
.mobile-appointment-body small {
  color: var(--muted-text);
}

.mobile-appointment-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.mobile-appointment-title,
.mobile-appointment-meta,
.mobile-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-appointment-title {
  justify-content: space-between;
}

.mobile-appointment-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-appointment-meta {
  flex-wrap: wrap;
}

.mobile-appointment-meta span {
  border-radius: 999px;
  background: #f2f7f5;
  color: #3f5651;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
}

.mobile-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-card-actions button {
  min-height: 38px;
  border: 1px solid #d5e6df;
  border-radius: 8px;
  background: #fff;
  color: #244541;
  font-weight: 800;
}

.mobile-card-actions button:nth-child(2) {
  border-color: #99d8ca;
  background: #e7f8f4;
  color: var(--primary-dark);
}

.agenda-footer-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.schedule-empty {
  margin: 16px;
}

.agenda-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.ai-grid,
.report-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.catalog-grid {
  grid-template-columns: 360px minmax(0, 1fr);
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card.compact {
  box-shadow: none;
}

.card-toolbar {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

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

.professional-column {
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfaf7;
}

.professional-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.professional-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
}

.professional-name strong,
.professional-name small {
  display: block;
}

.professional-name small,
.appointment-time,
.muted {
  color: var(--muted-text);
}

.appointment-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.appointment-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

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

.appointment-top strong,
.appointment-top small {
  display: block;
}

.status {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
}

.status.confirmed {
  border-color: #99d8ca;
  background: #e7f8f4;
  color: #0b4f49;
}

.status.done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.status.cancelled,
.status.no_show {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.appointment-meta,
.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.appointment-actions button {
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  font-size: 0.82rem;
}

.empty {
  display: grid;
  min-height: 130px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted-text);
}

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

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-head small,
.metric-head strong {
  display: block;
}

.metric-head strong {
  margin-top: 6px;
  font-size: 1.6rem;
}

.metric-icon,
.round-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 900;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  text-align: center;
}

.mini-grid div {
  border-radius: 8px;
  background: var(--muted);
  padding: 9px;
}

.mini-grid strong,
.mini-grid span {
  display: block;
}

.mini-grid span {
  color: var(--muted-text);
  font-size: 0.78rem;
}

.conversation-list,
.report-list,
.catalog-list {
  display: grid;
  gap: 12px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

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

.list-row strong,
.list-row small {
  display: block;
}

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

.section-title p {
  margin-bottom: 0;
  color: var(--muted-text);
}

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

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

.form textarea {
  min-height: 88px;
  resize: vertical;
}

.ai-reply {
  margin-top: 18px;
  border: 1px solid #99d8ca;
  border-radius: 8px;
  background: #e7f8f4;
  color: #083b36;
  padding: 14px;
  line-height: 1.55;
}

.rule-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-text);
  line-height: 1.8;
}

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

.metric-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted-text);
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.55rem;
}

.channel-grid,
.catalog-panels {
  display: grid;
  gap: 12px;
}

.channel-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.channel-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

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

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--muted);
  color: var(--primary-dark);
  font-weight: 900;
}

.modal {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.modal-card {
  padding: 22px;
}

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

.modal-head p {
  margin-bottom: 0;
  color: var(--muted-text);
}

.close-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--muted);
  font-size: 1.4rem;
}

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

.wide {
  grid-column: 1 / -1;
}

.alert {
  margin: 18px 28px 0;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  padding: 12px 14px;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 40%),
    var(--background);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  display: grid;
  width: min(420px, 100%);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
}

.login-card h1 {
  margin-bottom: 0;
}

.login-card p {
  margin-bottom: 4px;
  color: var(--muted-text);
  line-height: 1.5;
}

.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.login-card input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
}

.login-alert {
  margin: 0;
}

.auth-flow-page {
  min-height: 100vh;
}

.company-choice-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(15, 118, 110, 0.15), transparent 30%),
    linear-gradient(135deg, #f7f6f2 0%, #ecf6f3 100%);
}

.company-choice-shell {
  display: grid;
  width: min(1120px, 100%);
  min-height: 100vh;
  align-content: start;
  gap: 26px;
  margin: 0 auto;
  padding: 28px;
}

.company-choice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.company-choice-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-choice-brand small {
  color: var(--muted-text);
}

.company-choice-hero {
  display: grid;
  max-width: 720px;
  gap: 10px;
}

.company-choice-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.company-choice-hero p {
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.55;
}

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

.company-option-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: left;
}

.company-option-card:hover,
.company-option-card:focus-within {
  border-color: #99d8ca;
}

.company-card-topline,
.company-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.company-logo-box {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #e7f8f4;
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.company-access-tag,
.company-card-info span {
  border: 1px solid #d5e6df;
  border-radius: 999px;
  background: #f6fbf9;
  color: #3f5651;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 9px;
}

.company-option-card > strong {
  font-size: 1.25rem;
}

.company-option-card > small {
  color: var(--muted-text);
}

.company-access-button {
  min-height: 42px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .agenda-grid,
  .ai-grid,
  .report-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .professional-grid,
  .catalog-panels,
  .metrics,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.app-page {
    background:
      linear-gradient(180deg, #0f766e 0, #0f766e 92px, #f2f6f4 92px, #f2f6f4 100%);
    font-size: 14px;
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
  .shell {
    display: block;
    min-height: 100dvh;
  }
  .app-page .sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    min-height: 0;
    border-top: 1px solid #2b403b;
    background: rgba(14, 30, 27, 0.98);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 40px rgba(15, 33, 31, 0.18);
  }
  .app-page .brand,
  .app-page .sidebar-company,
  .app-page .sidebar-note,
  .app-page .logout-link {
    display: none;
  }
  .app-page .side-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 0;
  }
  .app-page .nav-item {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    justify-content: center;
    min-height: 52px;
    border-radius: 8px;
    padding: 5px 4px;
    text-align: center;
    color: rgba(248, 250, 249, 0.82);
    font-size: 0.68rem;
    line-height: 1.15;
  }
  .app-page .nav-item.is-active,
  .app-page .nav-item:hover {
    background: #213330;
    color: #fff;
  }
  .app-page .nav-item [data-lucide] {
    width: 18px;
    height: 18px;
  }
  .topbar {
    display: grid;
    gap: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 20px 20px;
    background:
      radial-gradient(circle at 88% 0%, rgba(97, 217, 197, 0.26), transparent 32%),
      linear-gradient(135deg, #102a27 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(12, 47, 43, 0.22);
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: 9px;
  }
  .topbar > div:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 8px;
    min-width: 0;
  }
  .topbar h1 {
    grid-column: 1 / -1;
    font-size: 1.18rem;
    line-height: 1.05;
  }
  .agenda-toolbar,
  .card-toolbar,
  .filters,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .topbar .pill {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    color: #eafffb;
    font-size: 0.66rem;
    padding: 2px 7px;
  }
  .company-context {
    display: block;
    overflow: hidden;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .date-controls {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px 34px 32px;
    gap: 5px;
    width: 100%;
  }
  .topbar-logout-button {
    display: inline-flex;
    min-width: 0;
  }
  .topbar-logout-button {
    grid-column: 4 / 6;
  }
  #prevDay {
    grid-column: 1;
  }
  #agendaDate {
    grid-column: 2;
  }
  #nextDay {
    grid-column: 3;
  }
  #todayButton {
    grid-column: 4;
  }
  #refreshButton {
    grid-column: 5;
  }
  .date-controls .button,
  .date-controls .icon-button {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    width: 100%;
    min-height: 30px;
    font-size: 0.68rem;
    padding: 0 6px;
  }
  .date-controls input {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.92);
    color: #17211f;
    min-height: 30px;
    padding: 4px 5px;
    text-align: center;
    font-size: 0.72rem;
  }
  .date-controls [data-lucide] {
    width: 14px;
    height: 14px;
  }
  .topbar-logout-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #todayButton span {
    display: none;
  }
  .tabs,
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .tabs {
    padding-top: 14px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .agenda-workbench {
    gap: 10px;
  }
  .agenda-toolbar {
    gap: 8px;
    border: 1px solid rgba(221, 214, 202, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(23, 33, 31, 0.08);
    padding: 10px;
  }
  .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }
  .actions .button,
  .filters input,
  .filters select {
    min-height: 38px;
    font-size: 0.86rem;
    padding: 0 10px;
  }
  .actions .button {
    box-shadow: none;
  }
  .professional-grid,
  .catalog-panels,
  .metrics,
  .channel-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .schedule-scroll {
    display: none;
  }
  .agenda-board-body {
    display: block;
    min-height: 0;
  }
  .calendar-panel {
    display: none;
  }
  .schedule-stage {
    min-width: 0;
  }
  .mobile-agenda-list {
    display: grid;
    gap: 12px;
    padding: 10px 10px calc(86px + env(safe-area-inset-bottom));
  }
  .mobile-agenda-summary,
  .mobile-timeline {
    gap: 10px;
  }
  .mobile-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-section-head strong,
  .mobile-section-head small {
    display: block;
  }
  .mobile-section-head strong {
    color: #17211f;
    font-size: 0.92rem;
  }
  .mobile-section-head small {
    color: var(--muted-text);
    font-size: 0.78rem;
    font-weight: 800;
  }
  .mobile-pro-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-right: -10px;
    margin-left: -10px;
    padding: 0 10px 4px;
    scroll-snap-type: x proximity;
  }
  .mobile-pro-card {
    min-width: 148px;
    gap: 8px;
    padding: 10px;
    scroll-snap-align: start;
  }
  .mobile-pro-card > div:first-child {
    min-width: 0;
  }
  .mobile-pro-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-free-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-free-slots button {
    min-height: 34px;
    font-size: 0.86rem;
  }
  .agenda-mini {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 6px;
    width: 100%;
    font-size: 0.72rem;
  }
  .agenda-mini span {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 4px 3px;
    text-align: center;
  }
  .agenda-board-card {
    border-color: #d5e6df;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(23, 33, 31, 0.09);
  }
  .agenda-titlebar {
    display: grid;
    gap: 8px;
    padding: 10px;
  }
  .agenda-titlebar > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .agenda-titlebar strong {
    font-size: 0.92rem;
  }
  .agenda-titlebar small {
    font-size: 0.76rem;
  }
  .agenda-footer-panels {
    display: none;
  }
  .mobile-appointment-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .mobile-appointment-time {
    padding: 10px 6px;
  }
  .mobile-appointment-body {
    gap: 7px;
    padding: 10px;
  }
  .mobile-card-actions {
    gap: 6px;
  }
  .mobile-card-actions button {
    min-height: 34px;
    font-size: 0.74rem;
    padding: 0 4px;
  }
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: min(100dvh, 760px);
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
    margin: auto 0 0;
  }
  .modal-card {
    max-height: 100dvh;
    overflow: auto;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .modal-head,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 12px;
  }
  .modal-actions .button {
    min-height: 46px;
  }
  .company-choice-shell {
    min-height: 100dvh;
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .company-choice-topbar {
    align-items: flex-start;
  }
  .company-choice-hero h1 {
    font-size: 2rem;
  }
  .company-choice-grid {
    grid-template-columns: 1fr;
  }
  .company-option-card {
    min-height: 176px;
  }
}

@media (max-width: 760px) and (min-width: 560px) {
  .topbar {
    grid-template-columns: minmax(164px, 0.58fr) minmax(0, 1.42fr);
    align-items: end;
    column-gap: 12px;
  }
  .date-controls {
    grid-template-columns: 32px minmax(124px, 1fr) 32px 34px 32px;
  }
  .topbar h1 {
    font-size: 1.08rem;
  }
  .topbar .pill {
    width: max-content;
  }
}

@media (max-width: 380px) {
  .topbar-logout-button span {
    display: none;
  }
  .date-controls {
    grid-template-columns: 30px minmax(0, 1fr) 30px 32px 30px;
  }
}

/* K7 2026 refresh: desktop shell, palette, and agenda density. */
:root {
  --background: #f4f7f9;
  --foreground: #14211f;
  --card: #ffffff;
  --surface-soft: #eef4f7;
  --muted: #eaf0f4;
  --muted-text: #65737a;
  --border: #d9e1e7;
  --primary: #0d9488;
  --primary-dark: #0f5f59;
  --accent: #eee9ff;
  --ink: #14211f;
  --panel: #f8fbfc;
  --amber: #f59e0b;
  --rose: #db2777;
  --blue: #2563eb;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  --shadow-strong: 0 18px 54px rgba(15, 23, 42, 0.12);
}

body {
  background:
    radial-gradient(circle at 12% -18%, rgba(13, 148, 136, 0.14), transparent 30%),
    linear-gradient(180deg, #fbfdfe 0%, var(--background) 38%, #eef4f7 100%);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-mark,
.sidebar-company > span,
.company-logo-box {
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-foreground, #f7fffd);
}

.button,
.icon-button,
.company-access-button {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.16);
}

.button.secondary,
.icon-button {
  border-color: var(--border);
  background: #fff;
  color: var(--foreground);
  box-shadow: none;
}

.pill,
.badge {
  border-color: #a7e2d9;
  background: #e7faf7;
  color: #0f5f59;
}

.card,
.modal,
.login-card,
.company-option-card,
.agenda-board-card,
.metric-card,
.professional-column,
.appointment-card,
.channel-card,
.sidebar-company,
.mobile-pro-card,
.mobile-appointment-card {
  border-radius: 12px;
}

@media (min-width: 761px) {
  .shell {
    min-height: 100vh;
  }

  .sidebar {
    min-height: 72px;
    grid-template-columns: minmax(188px, auto) minmax(248px, auto) minmax(0, 1fr);
    gap: 18px;
    border-bottom-color: rgba(217, 225, 231, 0.9);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 22px;
    backdrop-filter: blur(18px);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.18);
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .side-nav {
    grid-column: 3;
    justify-self: center;
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(217, 225, 231, 0.8);
    border-radius: 14px;
    background: rgba(234, 240, 244, 0.86);
    padding: 4px;
  }

  .nav-item {
    display: inline-flex;
    min-width: 0;
    min-height: 38px;
    grid-auto-flow: column;
    grid-template-columns: auto auto;
    gap: 8px;
    border-radius: 10px;
    color: #64727a;
    padding: 0 13px;
    font-size: 0.82rem;
    font-weight: 760;
  }

  .nav-item.is-active,
  .nav-item:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .logout-link {
    border: 0;
  }

  .sidebar-company {
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
    width: 248px;
    border-color: rgba(217, 225, 231, 0.95);
    background: #fff;
    padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .sidebar-company > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .workspace {
    background: transparent;
  }

  .topbar {
    border-bottom: 0;
    background: transparent;
    padding: 24px 30px 18px;
  }

  .topbar h1 {
    font-size: clamp(2rem, 3.1vw, 3.2rem);
    line-height: 1;
  }

  .date-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .date-controls input {
    width: 174px;
  }

  .tabs {
    padding: 0 30px 34px;
  }

  .agenda-workbench {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    grid-template-areas:
      "toolbar board"
      "footer board";
    align-items: start;
    gap: 18px;
  }

  .agenda-toolbar {
    position: sticky;
    top: 90px;
    z-index: 12;
    grid-area: toolbar;
    display: grid;
    gap: 12px;
    align-items: stretch;
    justify-content: stretch;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    padding: 14px;
  }

  .actions,
  .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .actions .button,
  .filters input,
  .filters select {
    width: 100%;
  }

  .filters input,
  .filters select,
  .date-controls input,
  .form input,
  .form select,
  .form textarea {
    border-color: #d7e2e8;
    background: #fff;
  }

  .agenda-board-card {
    grid-area: board;
    border-color: rgba(217, 225, 231, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-strong);
  }

  .agenda-titlebar {
    border-bottom-color: var(--border);
    background: #fff;
    padding: 16px 18px;
  }

  .agenda-titlebar strong {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .agenda-mini {
    gap: 10px;
  }

  .agenda-mini span {
    min-width: 82px;
    border-radius: 10px;
    padding: 7px 10px;
    text-align: center;
    box-shadow: none;
  }

  .agenda-board-body {
    display: block;
    min-height: 0;
  }

  .calendar-panel {
    display: none;
  }

  .schedule-stage {
    width: 100%;
  }

  .schedule-scroll {
    max-height: calc(100vh - 252px);
    min-height: 640px;
    background: linear-gradient(180deg, #f7fbfc, #eef9f7);
  }

  .schedule-grid {
    --row-height: 31px;
    min-width: calc(72px + (var(--pro-count) * 248px));
    grid-template-columns: 72px repeat(var(--pro-count), minmax(248px, 1fr));
  }

  .schedule-corner,
  .schedule-time-column {
    background: #f8fbfc;
  }

  .schedule-prof-header {
    min-height: 76px;
    border-top-width: 0;
    background: #fff;
    padding: 12px 14px;
  }

  .schedule-prof-header::before {
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: var(--pro-color);
    content: "";
  }

  .schedule-avatar {
    border-radius: 12px;
  }

  .schedule-lane {
    background: #f0faf8;
  }

  .slot-cell {
    background: rgba(255, 255, 255, 0.62);
  }

  .slot-cell.alt-row {
    background: rgba(246, 251, 250, 0.86);
  }

  .slot-cell.hour-start {
    border-top-color: #9fcfc7;
  }

  .schedule-appointment {
    right: 10px;
    left: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pro-color) 14%, #fff), #fff 72%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  }

  .schedule-actions {
    background: rgba(255, 255, 255, 0.78);
  }

  .schedule-actions button {
    border-color: #d1dde6;
    border-radius: 6px;
  }

  .agenda-footer-panels {
    grid-area: footer;
    display: grid;
  }

  .agenda-footer-panels .card {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
  }

  .ai-grid,
  .report-grid,
  .catalog-grid {
    gap: 18px;
  }

  .metrics {
    gap: 16px;
  }

  .metric-card,
  .card {
    border-color: var(--border);
    box-shadow: var(--shadow);
  }
}

@media (min-width: 761px) and (max-width: 1240px) {
  .agenda-workbench {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toolbar"
      "board"
      "footer";
  }

  .agenda-toolbar {
    position: static;
  }

  .actions,
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.settings-menu {
  position: relative;
}

.settings-menu summary {
  list-style: none;
}

.settings-menu summary::-webkit-details-marker {
  display: none;
}

.settings-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #5f6e75;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.settings-button:hover,
.settings-menu[open] .settings-button {
  border-color: #a7e2d9;
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.13);
}

.settings-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  min-width: 172px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  padding: 8px;
}

.settings-popover a,
.settings-popover .settings-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-weight: 760;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
}

.settings-popover .settings-menu-item {
  white-space: nowrap;
}

.settings-popover .settings-menu-item.is-danger {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-radius: 0;
  color: #b42318;
  padding-top: 4px;
}

.settings-popover .settings-menu-item.is-danger:hover {
  background: #fff1f0;
  color: #912018;
}

.settings-popover a {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 9px 9px;
  padding-top: 4px;
}

.settings-popover a:hover,
.settings-popover .settings-menu-item:hover {
  background: var(--muted);
  color: var(--primary);
}

@media (min-width: 761px) {
  .sidebar {
    grid-template-columns: minmax(248px, auto) minmax(0, 1fr) auto;
  }

  .sidebar-company {
    grid-column: 1;
  }

  .sidebar-actions {
    grid-column: 3;
    justify-self: end;
  }

  .side-nav {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .app-page .sidebar-actions {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    right: 12px;
    z-index: 45;
    display: flex;
  }

  .app-page .settings-button {
    width: 38px;
    height: 38px;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: none;
  }

  .app-page .settings-popover {
    top: calc(100% + 8px);
    right: 0;
  }
}

.catalog-page {
  display: grid;
  gap: 18px;
}

.catalog-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(217, 225, 231, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 16px;
}

.catalog-page-head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.catalog-page-metrics,
.catalog-quick-actions,
.catalog-card-head,
.catalog-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-page-metrics {
  flex-wrap: wrap;
  color: var(--muted-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.catalog-page-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce8e5;
  border-radius: 999px;
  background: #f5faf8;
  padding: 5px 10px;
}

.catalog-page-metrics strong {
  color: var(--primary);
}

.catalog-quick-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalog-panels {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  align-items: start;
}

.catalog-list-card {
  display: flex;
  min-width: 0;
  min-height: min(68vh, 720px);
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.catalog-card-head {
  justify-content: space-between;
  border-bottom: 1px solid #dfe8e6;
  background: linear-gradient(180deg, #fff, #f8fbfb);
  padding: 14px 16px;
}

.catalog-card-title {
  min-width: 0;
}

.catalog-card-title .round-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.catalog-card-title h2,
.catalog-card-title small {
  display: block;
  margin: 0;
}

.catalog-card-title h2 {
  font-size: 1rem;
}

.catalog-card-title small {
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-list {
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid #dfe8e6;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfb 100%);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.catalog-row:hover {
  border-color: #a7e2d9;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.catalog-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-row-main > div {
  min-width: 0;
}

.catalog-row-main strong {
  display: block;
  overflow: hidden;
  color: var(--foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.catalog-meta span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #dfe8e6;
  border-radius: 999px;
  background: #f2f7f5;
  color: #5f6e75;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.1;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-edit-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  border-color: #d7e3e0;
  color: var(--primary);
}

.catalog-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 180px;
  border: 1px dashed #cbdad7;
  border-radius: 12px;
  background: #f8fbfb;
  color: var(--muted-text);
  text-align: center;
  padding: 18px;
}

.catalog-empty strong {
  color: var(--foreground);
}

.catalog-modal {
  width: min(720px, calc(100vw - 28px));
}

.catalog-modal .modal-card {
  padding: 22px;
}

.catalog-modal .modal-head {
  border-bottom: 1px solid #dfe8e6;
  padding-bottom: 14px;
  margin-bottom: 2px;
}

.catalog-modal .modal-head h2 {
  margin: 8px 0 0;
}

.catalog-form-grid {
  align-items: start;
}

.catalog-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #e0ebe8;
  border-radius: 12px;
  background: #f8fbfb;
  padding: 12px;
}

.catalog-fields[hidden] {
  display: none;
}

.field-wide {
  grid-column: 1 / -1;
}

.catalog-fields textarea {
  min-height: 96px;
}

#catalogColor {
  min-height: 42px;
  padding: 4px;
}

.catalog-actions {
  display: flex;
}

@media (max-width: 1180px) {
  .catalog-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-quick-actions {
    justify-content: flex-start;
  }

  .catalog-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-page-head,
  .catalog-list-card {
    border-radius: 12px;
  }

  .catalog-quick-actions,
  .catalog-quick-actions .button {
    width: 100%;
  }

  .catalog-panels,
  .catalog-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-list-card {
    min-height: auto;
  }

  .catalog-row {
    align-items: flex-start;
  }

  .catalog-meta span {
    white-space: normal;
  }
}

@media (max-width: 1240px) {
  .topbar > div:first-child,
  .agenda-toolbar,
  .agenda-footer-panels {
    display: none !important;
  }

  .topbar {
    justify-content: flex-start;
  }

  .date-controls {
    margin-left: 0;
  }

  .agenda-workbench {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "board" !important;
  }

  .agenda-board-card {
    grid-area: board;
  }
}

.agenda-workbench {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "board" !important;
}

.agenda-board-card {
  grid-area: board;
}

.topbar {
  justify-content: flex-start;
}

.date-controls {
  margin-left: 0;
}

.app-page:not([data-active-tab="agenda"]) .topbar {
  display: none;
}

.appointment-modal {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: 16px;
  overflow: hidden;
}

.appointment-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.appointment-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 60;
  background: #edf4f3;
  color: #29413f;
}

.appointment-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dce8e5;
  background: #fff;
  color: #132321;
  padding: 17px 60px 16px 20px;
}

.appointment-kicker,
.summary-label {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  background: #e8f7f4;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 850;
  padding: 4px 9px;
}

.appointment-hero h2 {
  margin: 5px 0 2px;
  font-size: 1.48rem;
  line-height: 1.08;
}

.appointment-hero p {
  max-width: 560px;
  margin: 0;
  color: #667875;
  font-size: 0.84rem;
}

.appointment-total {
  min-width: 145px;
  border: 1px solid #cfe7e1;
  border-radius: 10px;
  background: #f2fbf9;
  padding: 9px 11px;
  text-align: right;
}

.appointment-total small,
.appointment-total strong {
  display: block;
}

.appointment-total small {
  color: #60736f;
  font-size: 0.7rem;
  font-weight: 800;
}

.appointment-total strong {
  margin-top: 2px;
  color: #0f766e;
  font-size: 1.12rem;
}

.appointment-layout {
  display: flex;
  flex-direction: column;
  background: #f4f8f7;
}

.appointment-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  padding: 14px 14px 10px;
}

.appointment-section {
  position: relative;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  background: #fff;
  padding: 11px;
}

.appointment-section:has(.appointment-combo.is-open) {
  z-index: 40;
}

.appointment-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.appointment-section-title > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 7px;
  background: #e7faf7;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.appointment-section-title strong,
.appointment-section-title small {
  display: block;
}

.appointment-section-title small {
  color: var(--muted-text);
  font-size: 0.7rem;
  font-weight: 760;
}

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

.appointment-field-grid label,
.appointment-combo-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  font-size: 0.77rem;
  font-weight: 820;
}

.appointment-field-label {
  display: block;
}

.appointment-field-grid input,
.appointment-field-grid select,
.appointment-field-grid textarea {
  min-height: 39px;
  border-color: #d6e3df;
  background: #fbfefd;
  padding: 8px 10px;
}

.appointment-field-grid input:focus,
.appointment-field-grid select:focus,
.appointment-field-grid textarea:focus {
  border-color: #6bd5c2;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.13);
}

.appointment-note {
  grid-column: 1 / -1;
}

.appointment-note textarea {
  min-height: 58px;
}

.appointment-section-details .appointment-field-grid {
  grid-template-columns: 125px minmax(0, 1fr);
  align-items: end;
}

.appointment-section-details .appointment-note {
  grid-column: auto;
}

.appointment-time-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.appointment-time-presets button {
  min-height: 31px;
  border: 1px solid #cae3dd;
  border-radius: 8px;
  background: #f8fffd;
  color: #0f5f59;
  font-size: 0.76rem;
  font-weight: 850;
}

.appointment-time-presets button:hover,
.appointment-time-presets button.is-selected {
  border-color: #0d9488;
  background: #e7faf7;
}

.appointment-time-presets button.is-selected {
  box-shadow: inset 0 0 0 1px #0d9488;
  color: #0a625b;
}

.appointment-combo {
  position: relative;
  display: block;
  min-width: 0;
}

.appointment-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.appointment-combo-trigger {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  grid-template-columns: 31px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6e3df;
  border-radius: 9px;
  background: #fbfefd;
  color: #172724;
  padding: 6px 8px;
  text-align: left;
}

.appointment-combo-trigger:hover {
  border-color: #94cfc3;
  background: #fff;
}

.appointment-combo-trigger:focus-visible,
.appointment-combo.is-open .appointment-combo-trigger {
  border-color: #39ae9f;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
  outline: none;
}

.appointment-combo-icon,
.appointment-option-icon,
.appointment-option-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 8px;
  background: #e7f7f4;
  color: #0f766e;
}

.appointment-combo-icon svg,
.appointment-option-icon svg {
  width: 16px;
  height: 16px;
}

.appointment-professional-icon,
.appointment-option-avatar {
  background: color-mix(in srgb, var(--option-color, #0d9488) 13%, white);
  color: var(--option-color, #0d9488);
  font-size: 0.83rem;
  font-weight: 900;
}

.appointment-combo-copy,
.appointment-option-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.appointment-combo-copy strong,
.appointment-combo-copy small,
.appointment-option-copy strong,
.appointment-option-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-combo-copy strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.appointment-combo-copy small,
.appointment-option-copy small {
  color: #70807d;
  font-size: 0.68rem;
  font-weight: 700;
}

.appointment-combo-chevron {
  width: 17px;
  height: 17px;
  color: #758682;
  transition: transform 160ms ease;
}

.appointment-combo.is-open .appointment-combo-chevron {
  transform: rotate(180deg);
}

.appointment-combo-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 70;
  display: grid;
  width: max(100%, 300px);
  max-height: min(276px, 45vh);
  gap: 3px;
  overflow-y: auto;
  border: 1px solid #cfdedb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(28, 51, 48, 0.18);
  padding: 5px;
}

.appointment-combo-menu[hidden] {
  display: none;
}

.appointment-combo-field:last-child .appointment-combo-menu {
  right: 0;
  left: auto;
}

.appointment-combo-option {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #172724;
  padding: 7px;
  text-align: left;
}

.appointment-combo-option:hover,
.appointment-combo-option:focus-visible {
  border-color: #cde7e1;
  background: #f3fbf9;
  outline: none;
}

.appointment-combo-option.is-selected {
  border-color: #a9dbd0;
  background: #edf9f6;
}

.appointment-option-copy strong {
  font-size: 0.79rem;
}

.appointment-option-price {
  color: #0f5f59;
  font-size: 0.73rem;
  font-weight: 900;
  white-space: nowrap;
}

.appointment-option-check {
  width: 16px;
  height: 16px;
  color: transparent;
}

.appointment-combo-option.is-selected .appointment-option-check {
  color: #0d9488;
}

.appointment-summary {
  display: grid;
  grid-template-columns: 42px minmax(150px, 1fr) repeat(3, minmax(92px, auto));
  align-items: center;
  gap: 8px;
  margin: 0 14px 12px;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
}

.appointment-summary .summary-label {
  display: none;
}

.summary-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: 9px;
  background: #e7faf7;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 950;
}

.appointment-summary > strong {
  align-self: end;
  grid-column: 2;
  grid-row: 1;
  font-size: 0.86rem;
  line-height: 1.1;
}

.appointment-summary > small {
  align-self: start;
  grid-column: 2;
  grid-row: 2;
  color: var(--muted-text);
  font-size: 0.7rem;
  font-weight: 760;
}

.summary-list {
  display: contents;
}

.summary-list span {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 6px;
  border-radius: 8px;
  background: #f4f8f7;
  padding: 6px 8px;
  font-size: 0.72rem;
}

.summary-list [data-lucide],
.summary-tip [data-lucide] {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.summary-tip {
  display: none;
}

.appointment-modal .appointment-actions {
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #dce8e5;
  background: #fff;
  padding: 11px 14px;
  margin: 0;
}

.appointment-modal .appointment-actions .button {
  min-height: 40px;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  padding-inline: 15px;
}

.appointment-modal .appointment-actions .button.secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--foreground);
}

@media (max-width: 820px) {
  .appointment-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .appointment-hero {
    padding-left: 16px;
  }

  .appointment-main {
    gap: 8px;
    padding: 10px;
  }

  .appointment-section {
    padding: 9px;
  }

  .appointment-summary {
    grid-template-columns: 38px minmax(120px, 1fr) repeat(3, minmax(76px, auto));
    margin: 0 10px 10px;
  }
}

@media (max-width: 640px) {
  .appointment-modal {
    width: 100vw;
    max-width: 100vw;
    height: min(100dvh, 860px);
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
    margin: auto 0 0;
  }

  .appointment-card {
    max-height: 100dvh;
    overflow: auto;
  }

  .appointment-hero {
    gap: 10px;
    padding: 14px 52px 13px 14px;
  }

  .appointment-hero h2 {
    font-size: 1.22rem;
  }

  .appointment-hero p {
    font-size: 0.75rem;
  }

  .appointment-total {
    min-width: 118px;
    padding: 7px 9px;
  }

  .appointment-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 9px;
  }

  .appointment-section-service .appointment-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .appointment-combo-menu {
    width: 100%;
  }

  .appointment-combo-field:last-child .appointment-combo-menu {
    right: auto;
    left: 0;
  }

  .appointment-summary {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 8px;
  }

  .summary-list {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .appointment-time-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .appointment-modal .appointment-actions {
    position: sticky;
    bottom: 0;
    z-index: 80;
    flex-direction: row;
    align-items: center;
    padding: 9px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .appointment-modal .appointment-actions .button:last-child {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .appointment-hero p {
    display: none;
  }

  .appointment-field-grid {
    gap: 6px;
  }

  .appointment-section-client .appointment-field-grid,
  .appointment-section-details .appointment-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-list span {
    justify-content: center;
    padding-inline: 4px;
  }
}

/* K7 login: salon-focused split experience. */
.login-page {
  min-height: 100dvh;
  background: #edf2f3;
}

.login-page .login-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 32px;
}

.login-frame {
  display: grid;
  width: min(1180px, 100%);
  min-height: 650px;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  overflow: hidden;
  border: 1px solid #d9e2e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 74px rgba(29, 52, 55, 0.16);
}

.login-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #142a28;
  color: #fff;
}

.login-visual > img,
.login-visual-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.login-visual > img {
  object-fit: cover;
  object-position: 61% center;
}

.login-visual-shade {
  background:
    linear-gradient(90deg, rgba(8, 27, 25, 0.91) 0%, rgba(8, 27, 25, 0.58) 46%, rgba(8, 27, 25, 0.08) 78%),
    linear-gradient(0deg, rgba(8, 22, 21, 0.84) 0%, transparent 58%);
}

.login-visual-brand,
.login-visual-copy {
  position: absolute;
  z-index: 2;
  left: 30px;
}

.login-visual-brand {
  top: 28px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: #0d9488;
  box-shadow: 0 12px 30px rgba(4, 29, 27, 0.25);
  font-size: 1.02rem;
  font-weight: 950;
}

.login-visual-brand > span:last-child,
.login-visual-brand strong,
.login-visual-brand small {
  display: block;
}

.login-visual-brand strong {
  font-size: 0.96rem;
}

.login-visual-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 650;
}

.login-visual-copy {
  right: 32px;
  bottom: 36px;
  max-width: 490px;
}

.login-visual-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #90eadb;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.login-visual-kicker svg {
  width: 16px;
  height: 16px;
}

.login-visual-copy h1 {
  margin: 16px 0 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 750;
}

.login-visual-headline {
  display: block;
  max-width: 460px;
  font-size: 3.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.login-visual-copy > p {
  max-width: 430px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.login-benefits {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}

.login-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 780;
}

.login-benefits svg {
  width: 17px;
  height: 17px;
  color: #78ddcd;
}

.login-access {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  background: #fff;
  padding: 56px;
}

.login-page .login-card {
  display: grid;
  width: min(390px, 100%);
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.login-eyebrow {
  width: max-content;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.login-page .login-card h2 {
  margin: 9px 0 8px;
  color: #172724;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.login-page .login-card > p {
  margin: 0 0 27px;
  color: #6a7976;
  font-size: 0.88rem;
  line-height: 1.5;
}

.login-page .login-card > label {
  display: block;
  margin: 0 0 6px;
  color: #263936;
  font-size: 0.78rem;
  font-weight: 820;
}

.login-page .login-card > label:not(:first-of-type) {
  margin-top: 15px;
}

.login-input-wrap {
  display: grid;
  min-width: 0;
  min-height: 49px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #cedbd9;
  border-radius: 8px;
  background: #fbfdfd;
  padding: 0 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-input-wrap:focus-within {
  border-color: #3ab5a6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.login-input-wrap > svg {
  width: 18px;
  height: 18px;
  color: #67807c;
}

.login-page .login-card .login-input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172724;
  outline: none;
  padding: 0;
}

.login-page .login-card .login-input-wrap input::placeholder {
  color: #9aa7a5;
}

.login-password-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #637874;
  padding: 0;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  background: #edf7f5;
  color: #0f766e;
  outline: none;
}

.login-password-toggle svg {
  width: 18px;
  height: 18px;
}

.login-security {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 18px;
  color: #687a76;
  font-size: 0.72rem;
  font-weight: 680;
}

.login-security svg {
  width: 15px;
  height: 15px;
  color: #0d9488;
}

.login-page .login-submit {
  width: 100%;
  min-height: 50px;
  justify-content: space-between;
  border-radius: 8px;
  box-shadow: 0 13px 28px rgba(13, 148, 136, 0.22);
  padding-inline: 18px;
}

.login-page .login-submit:hover {
  box-shadow: 0 16px 34px rgba(13, 148, 136, 0.28);
}

.login-page .login-submit svg {
  width: 18px;
  height: 18px;
}

.login-page .login-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.login-page .login-alert svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.login-access-footer {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  color: #8a9895;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.login-back {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  margin: 0 0 19px;
  color: #5f7470;
  font-size: 0.76rem;
  font-weight: 780;
  text-decoration: none;
}

.login-back:hover,
.login-back:focus-visible {
  color: #0f766e;
  outline: none;
}

.login-back svg {
  width: 16px;
  height: 16px;
}

.login-page .login-card-email .login-submit {
  margin-top: 18px;
}

.login-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #8a9996;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  background: #dfe8e7;
  content: "";
}

.login-google-shell,
.login-google-button {
  width: 100%;
  min-height: 44px;
}

.login-google-button {
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 7px;
  transition: opacity 160ms ease;
}

.login-google-button.is-busy {
  opacity: 0.58;
  pointer-events: none;
}

.login-google-button > div,
.login-google-button iframe {
  max-width: 100%;
}

.login-google-placeholder {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #cfdad8;
  border-radius: 7px;
  background: #fff;
  color: #33413f;
  font-size: 0.84rem;
  font-weight: 720;
}

.login-google-placeholder strong {
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

.login-page .login-google-alert {
  margin: 12px 0 0;
}

.login-page .login-google-alert[hidden] {
  display: none !important;
}

.login-account-hint {
  margin: 15px 0 0 !important;
  color: #748480 !important;
  font-size: 0.72rem !important;
  text-align: center;
}

.login-identity {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin: -7px 0 18px;
  border: 1px solid #d8e5e2;
  border-radius: 8px;
  background: #f3f9f8;
  color: #38524e;
  padding: 9px 11px;
}

.login-identity.is-google {
  border-color: #d7e3f4;
  background: #f7faff;
}

.login-identity svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #0d9488;
}

.login-identity.is-google svg {
  color: #4285f4;
}

.login-identity span {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-register-grid {
  display: grid;
  gap: 13px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field > label {
  color: #263936;
  font-size: 0.76rem;
  font-weight: 820;
}

.login-page .login-card-register,
.login-page .login-card-google_register {
  width: min(420px, 100%);
}

.login-page .login-card-register > p,
.login-page .login-card-google_register > p {
  margin-bottom: 20px;
}

.login-page .login-card-register .login-security,
.login-page .login-card-google_register .login-security {
  margin-bottom: 15px;
}

.login-step-register .login-frame,
.login-step-register .login-visual,
.login-step-google_register .login-frame,
.login-step-google_register .login-visual {
  min-height: 710px;
}

@media (max-width: 980px) {
  .login-frame {
    grid-template-columns: minmax(0, 0.96fr) minmax(390px, 1.04fr);
  }

  .login-access {
    padding: 40px;
  }

  .login-visual-headline {
    font-size: 2.65rem;
  }
}

@media (max-width: 760px) {
  .login-page .login-shell {
    place-items: start center;
    padding: 14px;
  }

  .login-frame {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .login-visual {
    min-height: 290px;
  }

  .login-visual > img {
    object-position: 68% center;
  }

  .login-visual-brand {
    top: 20px;
    left: 22px;
  }

  .login-visual-copy {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .login-visual-copy h1 {
    margin-top: 12px;
  }

  .login-visual-headline {
    font-size: 2.15rem;
  }

  .login-visual-copy > p {
    max-width: 360px;
    margin-top: 10px;
    font-size: 0.8rem;
  }

  .login-benefits {
    gap: 15px;
    margin-top: 14px;
  }

  .login-access {
    min-height: 490px;
    padding: 36px 24px 48px;
  }

  .login-step-register .login-frame,
  .login-step-register .login-visual,
  .login-step-google_register .login-frame,
  .login-step-google_register .login-visual {
    min-height: 0;
  }

  .login-step-register .login-access,
  .login-step-google_register .login-access {
    min-height: 0;
    padding-bottom: 58px;
  }
}

@media (max-width: 480px) {
  .login-page .login-shell {
    padding: 0;
  }

  .login-frame {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .login-visual {
    min-height: 240px;
  }

  .login-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .login-visual-brand {
    top: 16px;
    left: 18px;
  }

  .login-visual-copy {
    right: 18px;
    bottom: 17px;
    left: 18px;
  }

  .login-visual-copy h1,
  .login-visual-copy > p {
    display: none;
  }

  .login-visual-headline {
    margin-top: 11px;
    font-size: 1.8rem;
  }

  .login-benefits {
    gap: 13px;
    margin-top: 14px;
  }

  .login-benefits span {
    font-size: 0.68rem;
  }

  .login-benefits svg {
    width: 15px;
    height: 15px;
  }

  .login-access {
    min-height: 520px;
    align-items: start;
    padding: 31px 20px 46px;
  }

  .login-step-register .login-visual,
  .login-step-google_register .login-visual {
    min-height: 176px;
  }

  .login-step-register .login-visual-copy,
  .login-step-google_register .login-visual-copy {
    display: none;
  }

  .login-step-register .login-access,
  .login-step-google_register .login-access {
    padding-top: 26px;
  }

  .login-page .login-card h2 {
    font-size: 1.7rem;
  }

  .login-page .login-card > p {
    margin-bottom: 23px;
  }
}

/* K7 company selector: PDV-inspired operational catalog. */
.company-choice-page {
  min-height: 100dvh;
  background: #f2f5f7;
}

.company-choice-page .company-choice-shell {
  display: grid;
  width: min(1480px, 100%);
  min-height: 100dvh;
  align-content: start;
  gap: 24px;
  margin: 0 auto;
  padding: 18px 22px 40px;
}

.company-choice-page .company-choice-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #263b39;
  color: #f8fffd;
  box-shadow: 0 14px 32px rgba(28, 47, 45, 0.14);
  padding: 10px 12px;
}

.company-choice-page .company-choice-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.company-choice-page .company-choice-brand .brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #0d9488;
  color: #fff;
  box-shadow: none;
}

.company-choice-page .company-choice-brand strong,
.company-choice-page .company-choice-brand small {
  display: block;
}

.company-choice-page .company-choice-brand strong {
  font-size: 0.92rem;
}

.company-choice-page .company-choice-brand small {
  margin-top: 2px;
  color: rgba(248, 255, 253, 0.66);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.company-choice-account,
.company-user-chip {
  display: flex;
  align-items: center;
}

.company-choice-account {
  gap: 8px;
}

.company-user-chip {
  min-height: 42px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
}

.company-user-chip svg {
  width: 17px;
  height: 17px;
  color: #75ddcc;
}

.company-logout {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #314744;
}

.company-logout:hover,
.company-logout:focus-visible {
  background: #e9f7f4;
  color: #0f766e;
  outline: none;
}

.company-logout svg {
  width: 18px;
  height: 18px;
}

.company-choice-page .company-choice-hero {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 5px 0;
}

.company-choice-intro {
  max-width: 760px;
}

.company-choice-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #a61b5b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-choice-page .company-choice-hero h1 {
  margin: 0;
  color: #182725;
  font-size: 2.7rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.company-choice-page .company-choice-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #647470;
  font-size: 0.91rem;
  line-height: 1.5;
}

.company-choice-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.company-search {
  display: grid;
  width: min(390px, 38vw);
  min-height: 46px;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #d6e0e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 52, 55, 0.06);
  padding: 0 11px;
}

.company-search:focus-within {
  border-color: #46b7aa;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.11);
}

.company-search > svg {
  width: 18px;
  height: 18px;
  color: #71827f;
}

.company-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #1a2c29;
  font-size: 0.8rem;
  outline: none;
  padding: 0;
}

.company-search input::placeholder {
  color: #99a5a3;
}

.company-search-clear {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #edf4f3;
  color: #526763;
  padding: 0;
}

.company-search-clear[hidden] {
  display: none;
}

.company-search-clear svg {
  width: 15px;
  height: 15px;
}

.company-count {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6e0e2;
  border-radius: 8px;
  background: #fff;
  color: #344945;
  box-shadow: 0 8px 22px rgba(31, 52, 55, 0.06);
  padding: 0 13px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.company-count svg {
  width: 17px;
  height: 17px;
  color: #0d9488;
}

.company-count strong {
  font-size: 0.82rem;
}

.company-choice-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -7px 5px 0;
}

.company-choice-alert svg {
  width: 17px;
  height: 17px;
}

.company-choice-page .company-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.company-choice-page .company-option-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #d8e1e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(31, 52, 55, 0.07);
  padding: 11px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.company-choice-page .company-option-card:hover,
.company-choice-page .company-option-card:focus-within {
  border-color: #8acfc5;
  box-shadow: 0 17px 36px rgba(31, 52, 55, 0.12);
  transform: translateY(-2px);
}

.company-choice-page .company-option-card[hidden] {
  display: none;
}

.company-choice-page .company-card-topline {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.company-card-topline h2 {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #1a2a28;
  font-size: 0.91rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-choice-page .company-access-tag {
  flex: 0 0 auto;
  border: 1px solid #cfe5e0;
  border-radius: 999px;
  background: #eff9f7;
  color: #176e67;
  font-size: 0.62rem;
  font-weight: 850;
  padding: 4px 7px;
}

.company-card-visual {
  position: relative;
  display: grid;
  min-height: 196px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce5e5;
  border-radius: 8px;
  background: #f2f7f6;
}

.company-choice-page .company-logo-box {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 0;
  border-radius: 22px;
  background: #0d9488;
  color: #fff;
  box-shadow: 0 18px 34px rgba(13, 148, 136, 0.2);
  font-size: 2rem;
  font-weight: 950;
}

.company-logo-image {
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(39, 53, 51, 0.12);
}

.company-availability {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #cfe2de;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #38605a;
  font-size: 0.6rem;
  font-weight: 850;
  padding: 4px 7px;
}

.company-availability svg {
  width: 13px;
  height: 13px;
  color: #0d9488;
}

.company-card-body {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 2px 1px 0;
}

.company-card-body > strong {
  min-width: 0;
  overflow: hidden;
  color: #687773;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-choice-page .company-card-info {
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 6px;
}

.company-choice-page .company-card-info span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #425854;
  font-size: 0.69rem;
  font-weight: 750;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-card-info svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #6a928c;
}

.company-choice-page .company-access-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #0d9488;
  border-radius: 8px;
  background: #0d9488;
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.16);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0 13px;
}

.company-access-button:hover,
.company-access-button:focus-visible {
  background: #0f766e;
  outline: none;
}

.company-access-button svg {
  width: 16px;
  height: 16px;
}

.company-empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #cbd8d8;
  border-radius: 8px;
  background: #fff;
  color: #697a76;
  text-align: center;
  padding: 28px;
}

.company-empty-state[hidden] {
  display: none;
}

.company-empty-state svg {
  width: 30px;
  height: 30px;
  color: #0d9488;
}

.company-empty-state strong {
  color: #263a36;
}

.company-empty-state span {
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .company-choice-page .company-choice-hero {
    display: grid;
    align-items: start;
    gap: 20px;
  }

  .company-choice-tools {
    width: 100%;
  }

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

@media (max-width: 620px) {
  .company-choice-page .company-choice-shell {
    gap: 18px;
    padding: 10px 10px 28px;
  }

  .company-choice-page .company-choice-topbar {
    min-height: 62px;
    padding: 8px;
  }

  .company-user-chip {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }

  .company-user-chip span {
    display: none;
  }

  .company-logout {
    width: 40px;
    height: 40px;
  }

  .company-choice-page .company-choice-hero {
    padding: 8px 4px 0;
  }

  .company-choice-page .company-choice-hero h1 {
    font-size: 2rem;
  }

  .company-choice-page .company-choice-hero p {
    font-size: 0.82rem;
  }

  .company-choice-tools {
    align-items: stretch;
  }

  .company-search {
    width: 100%;
  }

  .company-count {
    justify-content: center;
    padding-inline: 11px;
  }

  .company-count > span:last-child {
    display: none;
  }

  .company-choice-page .company-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-card-visual {
    min-height: 176px;
  }

  .company-choice-page .company-logo-box {
    width: 92px;
    height: 92px;
    border-radius: 20px;
    font-size: 1.75rem;
  }
}

@media (max-width: 390px) {
  .company-choice-page .company-choice-brand small {
    display: none;
  }

  .company-choice-page .company-choice-hero h1 {
    font-size: 1.78rem;
  }

  .company-choice-tools {
    gap: 6px;
  }

  .company-count {
    min-width: 46px;
    gap: 4px;
    padding-inline: 8px;
  }
}

/* W8 data import */
.settings-popover {
  min-width: 236px;
}

.settings-popover [data-lucide] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.w8-import-modal {
  width: min(800px, calc(100vw - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  overflow: hidden;
}

.w8-import-card {
  display: grid;
  max-height: min(860px, calc(100dvh - 28px));
  gap: 16px;
  overflow: auto;
  padding: 0;
}

.w8-import-head {
  position: sticky;
  top: 0;
  z-index: 4;
  align-items: center;
  border-bottom: 1px solid #dce8e5;
  background: #fff;
  padding: 20px 22px 16px;
}

.w8-import-head h2 {
  margin: 7px 0 2px;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.w8-import-head p {
  font-size: 0.82rem;
}

.w8-import-card > :not(.w8-import-head, .w8-import-actions) {
  margin-inline: 22px;
}

.w8-destination {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid #cfe5e1;
  border-radius: 8px;
  background: #f4fbfa;
  padding: 11px 12px;
}

.w8-destination-icon,
.w8-file-picker-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 8px;
  background: #dff7f3;
  color: var(--primary-dark);
}

.w8-destination-icon [data-lucide],
.w8-file-picker-icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.w8-destination > div,
.w8-file-picker-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.w8-destination small,
.w8-file-picker-copy small,
.w8-preview-head small,
.w8-import-progress small {
  color: var(--muted-text);
  font-size: 0.72rem;
  font-weight: 650;
}

.w8-destination strong,
.w8-file-picker-copy strong {
  overflow: hidden;
  font-size: 0.91rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w8-destination-tag {
  margin-left: auto;
  border: 1px solid #9cddd4;
  border-radius: 999px;
  background: #e9faf7;
  color: #0b6b63;
  padding: 5px 8px;
  font-size: 0.67rem;
  font-weight: 850;
  white-space: nowrap;
}

.w8-file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-height: 72px;
  border: 1px dashed #9dbfba;
  border-radius: 8px;
  background: #fff;
  color: var(--foreground);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.w8-file-picker:hover,
.w8-file-picker:focus-visible {
  border-color: var(--primary);
  background: #fbfefd;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  outline: 0;
}

.w8-file-picker.has-file {
  border-style: solid;
  border-color: #83d4c8;
  background: #f7fcfb;
}

.w8-file-picker-action {
  display: inline-flex;
  min-height: 38px;
  margin-left: auto;
  pointer-events: none;
  white-space: nowrap;
}

.w8-file-picker-action [data-lucide] {
  width: 17px;
  height: 17px;
}

.w8-import-message,
.w8-import-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
}

.w8-import-message {
  background: #f1f5f9;
  color: #52616a;
}

.w8-import-message.is-error {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.w8-import-message.is-success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #08604f;
}

.w8-import-message.is-warning {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.w8-import-message [data-lucide],
.w8-import-note [data-lucide] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

.w8-import-preview {
  display: grid;
  gap: 14px;
}

.w8-import-preview[hidden] {
  display: none;
}

.w8-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.w8-preview-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.w8-preview-label {
  color: var(--primary-dark);
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.w8-preview-head strong {
  overflow: hidden;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w8-file-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #e9faf7;
  color: #0b6b63;
  padding: 6px 9px;
  font-size: 0.69rem;
  font-weight: 850;
  white-space: nowrap;
}

.w8-file-ok [data-lucide] {
  width: 15px;
  height: 15px;
}

.w8-preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.w8-preview-metrics > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  background: #fff;
  padding: 11px 12px;
}

.w8-preview-metrics strong {
  color: #0f766e;
  font-size: 1.13rem;
}

.w8-preview-metrics > span:nth-child(2) strong {
  color: #2563eb;
}

.w8-preview-metrics > span:nth-child(3) strong {
  color: #a16207;
}

.w8-preview-metrics > span:nth-child(4) strong {
  color: #be185d;
}

.w8-preview-metrics small {
  overflow: hidden;
  color: var(--muted-text);
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
}

.w8-import-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  padding: 0;
}

.w8-import-options legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  font-size: 0.76rem;
  font-weight: 850;
}

.w8-import-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.w8-import-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.w8-import-options label > span {
  display: grid;
  min-height: 76px;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.w8-import-options label > span > [data-lucide] {
  width: 18px;
  height: 18px;
  grid-row: 1 / span 2;
  color: #718089;
}

.w8-import-options label strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
}

.w8-import-options label small {
  overflow: hidden;
  color: var(--muted-text);
  font-size: 0.64rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w8-import-options input:checked + span {
  border-color: #78cfc3;
  background: #f2fbf9;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.14);
}

.w8-import-options input:checked + span > [data-lucide] {
  color: var(--primary);
}

.w8-import-options input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.w8-import-note {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #75530a;
}

.w8-import-progress {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #bfe1dc;
  border-radius: 8px;
  background: #f5fbfa;
  padding: 11px 12px;
}

.w8-import-progress[hidden] {
  display: none;
}

.w8-import-progress > div {
  display: grid;
  gap: 2px;
}

.w8-progress-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 3px solid #b9e7e0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: w8-spin 700ms linear infinite;
}

@keyframes w8-spin {
  to { transform: rotate(360deg); }
}

.w8-last-import {
  border-left: 3px solid #60a5fa;
  background: #eff6ff;
  color: #1e4f82;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 0.72rem;
  font-weight: 700;
}

.w8-import-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #dce8e5;
  background: #fff;
  padding: 13px 22px 16px;
}

.w8-import-actions .button {
  min-height: 42px;
}

.w8-import-actions .button[type="submit"] {
  min-width: 184px;
}

@media (max-width: 760px) {
  .app-page .sidebar {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .app-page .side-nav {
    grid-column: 1;
  }

  .app-page .sidebar-actions {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    z-index: 45;
  }

  .app-page .settings-popover {
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
  }
}

@media (max-width: 700px) {
  .w8-import-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }

  .w8-import-card {
    max-height: 100dvh;
    gap: 12px;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .w8-import-head {
    align-items: flex-start;
    flex-direction: row;
    padding: 16px 16px 13px;
  }

  .w8-import-head > div {
    min-width: 0;
    flex: 1;
  }

  .w8-import-card > :not(.w8-import-head, .w8-import-actions) {
    margin-inline: 14px;
  }

  .w8-file-picker-action {
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 0;
  }

  .w8-file-picker-action [data-lucide] {
    margin: 0;
  }

  .w8-preview-metrics,
  .w8-import-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .w8-preview-head {
    align-items: flex-start;
  }

  .w8-file-ok {
    font-size: 0;
  }

  .w8-file-ok [data-lucide] {
    width: 18px;
    height: 18px;
  }

  .w8-import-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.1);
    padding: 11px 14px max(13px, env(safe-area-inset-bottom));
  }

  .w8-import-actions .button {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .w8-destination-tag {
    display: none;
  }

  .w8-file-picker-copy small {
    max-width: 190px;
  }
}

.company-clear-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(880px, calc(100dvh - 28px));
  overflow: hidden;
}

.company-clear-card {
  display: grid;
  max-height: min(880px, calc(100dvh - 28px));
  gap: 0;
  overflow: auto;
  padding: 0;
}

.company-clear-head {
  position: sticky;
  top: 0;
  z-index: 4;
  align-items: center;
  border-bottom: 1px solid #e4e7ec;
  background: #fff;
  padding: 20px 22px 16px;
}

.company-clear-head h2 {
  margin: 8px 0 2px;
  font-size: 1.32rem;
  letter-spacing: 0;
}

.company-clear-head p {
  color: var(--muted-text);
  font-size: 0.82rem;
}

.danger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff1f2;
  color: #b42318;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.danger-badge [data-lucide] {
  width: 14px;
  height: 14px;
}

.company-clear-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px;
  border: 1px solid #d7e4e2;
  border-radius: 8px;
  background: #f7fbfa;
  padding: 16px;
}

.company-clear-loading[hidden],
.company-clear-content[hidden],
.company-clear-confirmation[hidden],
.company-clear-result[hidden],
.company-clear-actions .button[hidden] {
  display: none;
}

.company-clear-loading > div {
  display: grid;
  gap: 2px;
}

.company-clear-loading small {
  color: var(--muted-text);
  font-size: 0.75rem;
}

.company-clear-content {
  display: grid;
  gap: 16px;
  padding: 18px 22px 20px;
}

.company-clear-target {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid #e4e7ec;
  padding: 0 0 15px;
}

.company-clear-target > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: #edf4f3;
  color: #14665f;
}

.company-clear-target > span [data-lucide] {
  width: 20px;
  height: 20px;
}

.company-clear-target > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.company-clear-target small {
  color: var(--muted-text);
  font-size: 0.7rem;
  font-weight: 700;
}

.company-clear-target strong {
  overflow: hidden;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-clear-target em {
  border: 1px solid #d5dcdf;
  border-radius: 999px;
  color: #65747b;
  padding: 5px 8px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.company-clear-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-left: 3px solid #d92d20;
  border-radius: 6px;
  background: #fff5f4;
  color: #7a271a;
  padding: 12px 14px;
}

.company-clear-warning > [data-lucide] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.company-clear-warning div {
  display: grid;
  gap: 3px;
}

.company-clear-warning strong {
  font-size: 0.83rem;
}

.company-clear-warning p {
  color: #8f3b30;
  font-size: 0.75rem;
  line-height: 1.45;
}

.company-clear-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid #e4e7ec;
}

.company-clear-metrics > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 7px;
  padding: 13px 10px;
}

.company-clear-metrics > span + span {
  border-left: 1px solid #e4e7ec;
}

.company-clear-metrics [data-lucide] {
  width: 18px;
  height: 18px;
  grid-row: 1 / span 2;
  color: #9f3a30;
}

.company-clear-metrics strong {
  font-size: 1rem;
}

.company-clear-metrics small {
  overflow: hidden;
  color: var(--muted-text);
  font-size: 0.67rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.company-clear-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.company-clear-scope section {
  min-width: 0;
}

.company-clear-scope h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #8f2920;
  font-size: 0.76rem;
}

.company-clear-scope h3 [data-lucide] {
  width: 16px;
  height: 16px;
}

.company-clear-scope .is-preserved h3 {
  color: #08776c;
}

.company-clear-scope ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-clear-scope li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  border-bottom: 1px solid #edf0f2;
  color: #52616a;
  font-size: 0.72rem;
  font-weight: 680;
}

.company-clear-scope li strong {
  flex: 0 0 auto;
  color: #9f3a30;
  font-size: 0.7rem;
}

.company-clear-scope .is-preserved li strong {
  color: #08776c;
}

.company-clear-confirmation {
  display: grid;
  gap: 9px;
  border: 1px solid #f1b9b4;
  border-radius: 8px;
  background: #fffafa;
  padding: 14px;
}

.company-clear-confirmation > label:first-child {
  font-size: 0.75rem;
  font-weight: 800;
}

.company-clear-confirmation code {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 5px;
  background: #fee4e2;
  color: #9f241b;
  padding: 5px 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
}

.company-clear-confirmation > input {
  width: 100%;
  min-height: 42px;
  border-color: #e6aaa5;
  background: #fff;
  font-weight: 750;
}

.company-clear-confirmation > input:focus {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.company-clear-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #6e3832;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.company-clear-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  accent-color: #b42318;
}

.company-clear-result {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-radius: 8px;
  padding: 13px 14px;
}

.company-clear-result > [data-lucide],
.company-clear-result > .w8-progress-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.company-clear-result > div {
  display: grid;
  gap: 3px;
}

.company-clear-result strong {
  font-size: 0.82rem;
}

.company-clear-result p {
  font-size: 0.73rem;
  line-height: 1.45;
}

.company-clear-result code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.company-clear-result.is-progress {
  border: 1px solid #cddbd9;
  background: #f5faf9;
  color: #315d59;
}

.company-clear-result.is-error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f241b;
}

.company-clear-result.is-success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #08604f;
}

.company-clear-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #e4e7ec;
  background: #fff;
  padding: 13px 22px 16px;
}

.danger-button {
  min-width: 184px;
  background: #b42318;
  color: #fff;
  box-shadow: 0 9px 20px rgba(180, 35, 24, 0.16);
}

.danger-button:hover:not(:disabled) {
  background: #912018;
}

.danger-button:disabled {
  background: #e6b7b2;
  color: #fff;
  box-shadow: none;
}

@media (max-width: 700px) {
  .company-clear-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }

  .company-clear-card {
    max-height: 100dvh;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .company-clear-head {
    align-items: flex-start;
    flex-direction: row;
    padding: 16px 16px 13px;
  }

  .company-clear-head > div {
    min-width: 0;
    flex: 1;
  }

  .company-clear-loading {
    margin: 16px;
  }

  .company-clear-content {
    gap: 14px;
    padding: 15px 16px 18px;
  }

  .company-clear-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-clear-metrics > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #e4e7ec;
  }

  .company-clear-metrics > span:nth-child(4) {
    border-top: 1px solid #e4e7ec;
  }

  .company-clear-scope {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .company-clear-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.1);
    padding: 11px 14px max(13px, env(safe-area-inset-bottom));
  }

  .company-clear-actions .button {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 430px) {
  .company-clear-target em {
    display: none;
  }

  .company-clear-actions .button {
    padding-inline: 12px;
    font-size: 0.76rem;
  }
}

/* K7 Salon Suite: operational shell and executive dashboard. */
.app-page {
  --background: #f4f2ed;
  --foreground: #22231f;
  --card: #ffffff;
  --surface-soft: #f8f6f1;
  --muted: #eeeae1;
  --muted-text: #77766f;
  --border: #e4dfd5;
  --primary: #c69a50;
  --primary-dark: #96702f;
  --accent: #f4ead6;
  --ink: #191917;
  --panel: #fbfaf7;
  --shadow: 0 8px 24px rgba(42, 37, 28, 0.06);
  --shadow-strong: 0 14px 38px rgba(42, 37, 28, 0.09);
  background: #f4f2ed;
  color: var(--foreground);
  letter-spacing: 0;
}

.app-page h1,
.app-page h2,
.app-page h3,
.app-page p,
.app-page button,
.app-page input,
.app-page select,
.app-page textarea {
  letter-spacing: 0;
}

.app-page .shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}

.app-page .sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: 224px;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border: 0;
  border-right: 1px solid #2e2d29;
  background: #191917;
  color: #f7f3ea;
  padding: 20px 14px 16px;
  box-shadow: none;
  backdrop-filter: none;
}

.app-page .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 8px 18px;
}

.app-page .sidebar-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #d4ad6b;
  border-radius: 6px;
  background: #c69a50;
  color: #171612;
  font-size: 0.92rem;
  font-weight: 950;
}

.app-page .sidebar-brand strong,
.app-page .sidebar-brand small {
  display: block;
}

.app-page .sidebar-brand strong {
  color: #fff;
  font-size: 1rem;
}

.app-page .sidebar-brand small {
  margin-top: 2px;
  color: #aaa79f;
  font-size: 0.69rem;
}

.app-page .sidebar-company {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  border: 1px solid #393833;
  border-radius: 7px;
  background: #23221f;
  color: #f8f4ea;
  padding: 9px;
  box-shadow: none;
}

.app-page .sidebar-company:hover {
  border-color: #746344;
  background: #292823;
}

.app-page .sidebar-company > span {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 6px;
  background: #c69a50;
  color: #181713;
  font-size: 0.8rem;
}

.app-page .sidebar-company strong {
  color: #f8f6f0;
  font-size: 0.78rem;
}

.app-page .sidebar-company small {
  margin-top: 2px;
  color: #99968e;
  font-size: 0.64rem;
}

.app-page .sidebar-company > svg {
  width: 15px;
  height: 15px;
  color: #8f8c84;
}

.app-page .side-nav {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.app-page .side-nav-label {
  display: block;
  color: #77746c;
  padding: 0 10px 7px;
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-page .nav-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #aaa79f;
  padding: 0 11px;
  font-size: 0.77rem;
  font-weight: 720;
  text-align: left;
  box-shadow: none;
}

.app-page .nav-item svg {
  width: 18px;
  height: 18px;
  color: #8f8b82;
}

.app-page .nav-item:hover {
  border-color: #393730;
  background: #24231f;
  color: #f0ebe1;
  box-shadow: none;
}

.app-page .nav-item.is-active {
  border-color: #5d4b2d;
  background: #2b271f;
  color: #e3c58e;
  box-shadow: inset 2px 0 #c69a50;
}

.app-page .nav-item.is-active svg {
  color: #d9ad62;
}

.app-page .sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: auto 0 12px;
  border: 1px solid #37352f;
  border-radius: 7px;
  background: #21201d;
  color: #ece5d8;
  padding: 11px;
}

.app-page .sidebar-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 6px;
  background: #332c20;
  color: #d9ad62;
}

.app-page .sidebar-note svg {
  width: 14px;
  height: 14px;
}

.app-page .sidebar-note strong {
  display: block;
  font-size: 0.69rem;
}

.app-page .sidebar-note p {
  margin: 3px 0 0;
  color: #8f8c84;
  font-size: 0.61rem;
  line-height: 1.4;
}

.app-page .sidebar-actions {
  display: block;
  width: 100%;
}

.app-page .settings-menu,
.app-page .settings-button {
  width: 100%;
}

.app-page .settings-button {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #aaa79f;
  padding: 0 11px;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 720;
}

.app-page .settings-button:hover,
.app-page .settings-menu[open] .settings-button {
  border-color: #393730;
  background: #24231f;
  color: #e7c783;
  box-shadow: none;
}

.app-page .settings-popover {
  top: auto;
  right: auto;
  bottom: 0;
  left: calc(100% + 10px);
  min-width: 240px;
  border-color: #ddd6ca;
  border-radius: 8px;
  background: #fff;
  color: #25251f;
  box-shadow: 0 18px 48px rgba(22, 20, 16, 0.18);
}

.app-page .workspace {
  min-width: 0;
  background: #f4f2ed;
}

.app-page .topbar {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 28px 30px 10px;
  backdrop-filter: none;
}

.app-page:not([data-active-tab="agenda"]) .topbar {
  display: none;
}

.app-page .topbar-heading,
.app-page .page-heading > div:first-child {
  min-width: 0;
}

.app-page .topbar-heading h1,
.app-page .page-heading h1,
.app-page .catalog-page-head h1 {
  margin: 2px 0 5px;
  color: #20211d;
  font-size: 1.72rem;
  line-height: 1.12;
}

.app-page .topbar-heading p,
.app-page .page-heading p,
.app-page .catalog-page-head p {
  margin: 0;
  color: #76756e;
  font-size: 0.79rem;
}

.app-page .page-eyebrow {
  display: block;
  color: #9a7130;
  font-size: 0.63rem;
  font-weight: 850;
  text-transform: uppercase;
}

.app-page .topbar-tools,
.app-page .page-heading,
.app-page .page-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-page .topbar-tools {
  width: 100%;
  justify-content: space-between;
}

.app-page .page-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}

.app-page .button,
.app-page .icon-button {
  min-height: 39px;
  border-color: #b98c43;
  border-radius: 6px;
  background: #c69a50;
  color: #1b1915;
  padding-inline: 14px;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 800;
}

.app-page .button:hover,
.app-page .icon-button:hover {
  border-color: #a77c38;
  background: #d2a75f;
  box-shadow: 0 7px 16px rgba(141, 102, 42, 0.13);
  transform: translateY(-1px);
}

.app-page .button.secondary,
.app-page .icon-button {
  border-color: #ded8cd;
  background: #fff;
  color: #34342f;
  box-shadow: none;
}

.app-page .button.secondary:hover,
.app-page .icon-button:hover {
  border-color: #cdbb9b;
  background: #fbf7ee;
  color: #6f5226;
}

.app-page .icon-button {
  width: 39px;
  padding: 0;
}

.app-page .date-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.app-page .date-controls input {
  width: 150px;
  min-height: 39px;
  border-color: #ded8cd;
  border-radius: 6px;
  background: #fff;
  color: #292923;
  font-size: 0.76rem;
  font-weight: 720;
}

.app-page .date-controls input:focus,
.app-page .filters input:focus,
.app-page .filters select:focus,
.app-page .form input:focus,
.app-page .form select:focus,
.app-page .form textarea:focus {
  border-color: #c69a50;
  box-shadow: 0 0 0 3px rgba(198, 154, 80, 0.14);
}

.app-page .tabs {
  padding: 26px 30px 36px;
}

.app-page[data-active-tab="agenda"] .tabs {
  padding-top: 8px;
}

.app-page .alert {
  margin: 12px 30px 0;
  border-radius: 6px;
}

.app-page .dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.app-page .dashboard-metric {
  display: flex;
  min-height: 126px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 17px;
  box-shadow: var(--shadow);
}

.app-page .dashboard-metric > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.app-page .dashboard-metric span,
.app-page .dashboard-metric small {
  color: #7b7971;
  font-size: 0.68rem;
}

.app-page .dashboard-metric strong {
  color: #25251f;
  font-size: 1.35rem;
  line-height: 1.15;
}

.app-page .dashboard-metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
}

.app-page .dashboard-metric-icon svg {
  width: 17px;
  height: 17px;
}

.app-page .dashboard-metric.is-gold .dashboard-metric-icon {
  background: #f4ead6;
  color: #9a7130;
}

.app-page .dashboard-metric.is-green .dashboard-metric-icon {
  background: #e3f2e8;
  color: #277149;
}

.app-page .dashboard-metric.is-blue .dashboard-metric-icon {
  background: #e6eef9;
  color: #35669a;
}

.app-page .dashboard-metric.is-rose .dashboard-metric-icon {
  background: #f7e7e5;
  color: #9c544e;
}

.app-page .dashboard-main-grid,
.app-page .dashboard-secondary-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.app-page .dashboard-main-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.8fr);
}

.app-page .dashboard-secondary-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.app-page .dashboard-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 17px;
  box-shadow: var(--shadow);
}

.app-page .dashboard-panel-head {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.app-page .dashboard-panel-head span {
  display: block;
  color: #96938b;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
}

.app-page .dashboard-panel-head h2 {
  margin: 3px 0 0;
  color: #272721;
  font-size: 0.94rem;
}

.app-page .dashboard-panel-tag,
.app-page .dashboard-count {
  display: inline-flex !important;
  min-height: 27px;
  align-items: center;
  gap: 5px;
  border: 1px solid #e7dcc7;
  border-radius: 999px;
  background: #fbf6ec;
  color: #8a6428 !important;
  padding: 0 9px;
  font-size: 0.61rem !important;
  text-transform: none !important;
}

.app-page .dashboard-panel-tag svg {
  width: 13px;
  height: 13px;
}

.app-page .dashboard-trend {
  min-height: 238px;
}

.app-page .dashboard-trend-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.app-page .dashboard-trend-summary > div {
  display: grid;
  gap: 2px;
}

.app-page .dashboard-trend-summary strong {
  font-size: 1.22rem;
}

.app-page .dashboard-trend-summary small,
.app-page .dashboard-trend-summary > span {
  color: #85827a;
  font-size: 0.65rem;
}

.app-page .dashboard-trend-summary > span {
  border: 1px solid #e8e3d9;
  border-radius: 999px;
  background: #faf9f6;
  padding: 5px 9px;
}

.app-page .dashboard-trend-bars {
  display: grid;
  height: 164px;
  grid-template-columns: repeat(7, minmax(24px, 1fr));
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid #e7e2d9;
}

.app-page .dashboard-trend-day {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) 21px 16px;
  justify-items: center;
  gap: 1px;
}

.app-page .dashboard-trend-track {
  position: relative;
  width: min(34px, 70%);
  height: 100%;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: #f1eee8;
}

.app-page .dashboard-trend-track span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--trend-height);
  border-radius: 5px 5px 0 0;
  background: #b99558;
  transition: height 0.25s ease;
}

.app-page .dashboard-trend-day.is-current .dashboard-trend-track span {
  background: #24231f;
}

.app-page .dashboard-trend-day strong,
.app-page .dashboard-trend-day small {
  color: #77756e;
  font-size: 0.61rem;
  font-weight: 750;
  text-transform: capitalize;
}

.app-page .dashboard-trend-day small {
  color: #aaa69e;
  font-size: 0.56rem;
}

.app-page .dashboard-appointments,
.app-page .dashboard-team,
.app-page .dashboard-services {
  display: grid;
}

.app-page .dashboard-appointment-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #eeeae2;
  padding: 10px 0;
}

.app-page .dashboard-appointment-row:last-child,
.app-page .dashboard-team-row:last-child,
.app-page .dashboard-service-row:last-child {
  border-bottom: 0;
}

.app-page .dashboard-appointment-row time,
.app-page .dashboard-appointment-row > div,
.app-page .dashboard-team-row > div,
.app-page .dashboard-service-row > div {
  min-width: 0;
}

.app-page .dashboard-appointment-row time strong,
.app-page .dashboard-appointment-row time small,
.app-page .dashboard-appointment-row > div strong,
.app-page .dashboard-appointment-row > div small {
  display: block;
}

.app-page .dashboard-appointment-row time strong {
  font-size: 0.72rem;
}

.app-page .dashboard-appointment-row time small,
.app-page .dashboard-appointment-row > div small {
  overflow: hidden;
  color: #85827a;
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .dashboard-appointment-row > div strong {
  overflow: hidden;
  color: #31312b;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .dashboard-person {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--person-color) 16%, #fff);
  color: var(--person-color);
  font-size: 0.68rem;
  font-weight: 850;
}

.app-page .dashboard-appointment-row .status {
  min-width: 0;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.54rem;
}

.app-page .dashboard-team-row,
.app-page .dashboard-service-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #eeeae2;
  padding: 10px 0;
}

.app-page .dashboard-team-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.app-page .dashboard-service-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.app-page .dashboard-service-row > span {
  color: #b28c50;
  font-size: 0.62rem;
  font-weight: 850;
}

.app-page .dashboard-row-copy {
  display: grid;
  gap: 7px;
}

.app-page .dashboard-row-copy > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.app-page .dashboard-row-copy strong,
.app-page .dashboard-row-copy small,
.app-page .dashboard-row-value strong,
.app-page .dashboard-row-value small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .dashboard-row-copy strong,
.app-page .dashboard-row-value strong,
.app-page .dashboard-service-row > strong {
  color: #34342e;
  font-size: 0.7rem;
}

.app-page .dashboard-row-copy small,
.app-page .dashboard-row-value small {
  color: #929087;
  font-size: 0.59rem;
}

.app-page .dashboard-row-value {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.app-page .dashboard-progress {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeae2;
}

.app-page .dashboard-progress i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: #c69a50;
}

.app-page .dashboard-empty {
  display: grid;
  min-height: 190px;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: #8d8980;
  text-align: center;
}

.app-page .dashboard-empty.compact {
  min-height: 132px;
}

.app-page .dashboard-empty svg {
  width: 24px;
  height: 24px;
  color: #b79257;
}

.app-page .dashboard-empty strong {
  color: #4a4942;
  font-size: 0.75rem;
}

.app-page .dashboard-empty small {
  font-size: 0.64rem;
}

.app-page .card,
.app-page .metric-card,
.app-page .channel-card,
.app-page .catalog-list-card,
.app-page .agenda-board-card {
  border-color: var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.app-page .card {
  padding: 18px;
}

.app-page .card h2 {
  color: #2d2d27;
  font-size: 0.91rem;
}

.app-page .agenda-workbench {
  display: grid;
  grid-template-areas: "board";
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.app-page .agenda-board-card {
  grid-area: board;
  overflow: hidden;
}

.app-page .agenda-titlebar {
  min-height: 59px;
  border-bottom-color: #e5dfd5;
  background: #fff;
  padding: 12px 16px;
}

.app-page .agenda-titlebar > div:first-child strong {
  color: #2c2c27;
  font-size: 0.8rem;
}

.app-page .agenda-titlebar > div:first-child small {
  color: #8b8980;
  font-size: 0.65rem;
}

.app-page .agenda-mini {
  gap: 6px;
}

.app-page .agenda-mini span {
  min-width: 68px;
  border: 1px solid #e7e1d7;
  border-radius: 6px;
  background: #faf9f6;
  color: #716e66;
  padding: 6px 8px;
  font-size: 0.61rem;
  text-align: center;
  box-shadow: none;
}

.app-page .agenda-mini span:first-child {
  border-color: #ead6b6;
  background: #fbf4e8;
  color: #865f24;
}

.app-page .agenda-mini strong {
  color: inherit;
}

.app-page .agenda-board-body {
  display: block;
  min-height: 0;
}

.app-page .calendar-panel {
  display: none;
}

.app-page .schedule-scroll {
  max-height: calc(100vh - 208px);
  min-height: 660px;
  background: #fbfaf7;
}

.app-page .schedule-grid {
  --row-height: 31px;
  min-width: calc(70px + (var(--pro-count) * 232px));
  grid-template-columns: 70px repeat(var(--pro-count), minmax(232px, 1fr));
}

.app-page .schedule-corner,
.app-page .schedule-time-column {
  background: #f8f6f1;
}

.app-page .schedule-corner,
.app-page .schedule-prof-header {
  border-bottom-color: #ddd7cd;
}

.app-page .schedule-prof-header {
  min-height: 72px;
  border-top: 0;
  background: #fff;
  padding: 11px 13px;
}

.app-page .schedule-prof-header::before {
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--pro-color);
  content: "";
}

.app-page .schedule-avatar {
  border-radius: 50%;
}

.app-page .schedule-prof-header strong {
  color: #36352f;
  font-size: 0.72rem;
}

.app-page .schedule-prof-header small {
  color: #8f8c84;
  font-size: 0.59rem;
}

.app-page .schedule-time-label {
  color: #77746d;
  font-size: 0.6rem;
}

.app-page .schedule-lane {
  background: #fbfaf7;
}

.app-page .slot-cell,
.app-page .slot-cell.alt-row {
  border-color: #ece8e0;
  background: #fff;
}

.app-page .slot-cell.alt-row {
  background: #fcfbf8;
}

.app-page .slot-cell:hover {
  background: #fbf3e4;
}

.app-page .slot-cell.hour-start {
  border-top-color: #d8cdbb;
}

.app-page .schedule-appointment {
  right: 7px;
  left: 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--pro-color) 10%, #fff);
  box-shadow: 0 7px 18px rgba(42, 37, 28, 0.11);
}

.app-page .schedule-appointment strong {
  color: #2c2c27;
}

.app-page .schedule-appointment small {
  color: #716f68;
}

.app-page .schedule-actions {
  border-left-color: color-mix(in srgb, var(--pro-color) 28%, #e4dfd5);
  background: rgba(255, 255, 255, 0.84);
}

.app-page .schedule-actions button {
  border-color: #ddd6ca;
  border-radius: 5px;
  background: #fff;
  color: #3e3d37;
}

.app-page .status {
  border-width: 1px;
}

.app-page .filters input,
.app-page .filters select,
.app-page .form input,
.app-page .form select,
.app-page .form textarea {
  border-color: #ded8cd;
  border-radius: 6px;
  background: #fff;
  color: #2d2d27;
}

.app-page .ai-grid,
.app-page .report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-page .ai-grid .card,
.app-page .report-grid .card {
  min-height: 280px;
}

.app-page .section-title {
  align-items: center;
}

.app-page .round-icon,
.app-page .catalog-card-title .round-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  background: #f4ead6;
  color: #8f672a;
}

.app-page .round-icon svg {
  width: 16px;
  height: 16px;
}

.app-page .connection-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  border: 1px solid #e3dcd0;
  border-radius: 999px;
  background: #f7f3eb;
  color: #655a49;
  padding: 0 10px;
  font-size: 0.66rem;
  font-weight: 750;
}

.app-page .connection-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #9d8d72;
}

.app-page .connection-status[data-status="connected"] {
  border-color: #cfe7d7;
  background: #f0f8f2;
  color: #31744b;
}

.app-page .connection-status[data-status="connected"] i {
  background: #3a9c62;
}

.app-page .connection-status[data-status="qr"],
.app-page .connection-status[data-status="connecting"],
.app-page .connection-status[data-status="starting"] {
  border-color: #ead9b8;
  background: #fcf4e4;
  color: #77551f;
}

.app-page .connection-status[data-status="qr"] i,
.app-page .connection-status[data-status="connecting"] i,
.app-page .connection-status[data-status="starting"] i {
  background: #a97729;
}

.app-page .connection-status[data-status="error"],
.app-page .connection-status[data-status="offline"],
.app-page .connection-status[data-status="unavailable"] {
  border-color: #e9d0c9;
  background: #fcf1ed;
  color: #84382e;
}

.app-page .connection-status[data-status="error"] i,
.app-page .connection-status[data-status="offline"] i,
.app-page .connection-status[data-status="unavailable"] i {
  background: #a94f40;
}

.app-page .ai-grid {
  align-items: start;
}

.app-page .ai-grid .whatsapp-card {
  min-height: 0;
}

.app-page .whatsapp-description {
  margin: 0;
  color: #5e584d;
}

.app-page .whatsapp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.app-page .whatsapp-pairing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e4dbcc;
  border-radius: 7px;
  background: #fbf8f2;
}

.app-page .whatsapp-pairing[hidden],
.app-page .whatsapp-actions .button[hidden] {
  display: none;
}

.app-page .whatsapp-pairing img {
  display: block;
  width: min(100%, 224px);
  height: auto;
  aspect-ratio: 1;
}

.app-page .whatsapp-pairing > div {
  flex: 1 1 180px;
}

.app-page .whatsapp-pairing h3 {
  margin: 0 0 8px;
}

.app-page .whatsapp-pairing ol {
  margin: 0;
  padding-inline-start: 20px;
  line-height: 1.5;
}

.app-page .whatsapp-pairing li + li {
  margin-top: 6px;
}

.app-page .whatsapp-error {
  margin: 12px 0 0;
  color: #84382e;
}

.app-page .whatsapp-conversation-row {
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 12px;
  border: 1px solid #e4dbcc;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.app-page .whatsapp-conversation-row:last-child {
  border-bottom: 1px solid #e4dbcc;
  padding-bottom: 10px;
}

.app-page .whatsapp-conversation-row:hover {
  border-color: #b99054;
  background: #fbf8f2;
}

.app-page .whatsapp-conversation-row:focus-visible,
.app-page .whatsapp-transcript-scroll:focus-visible {
  outline: 2px solid #996823;
  outline-offset: 2px;
}

.app-page .whatsapp-conversation-copy {
  flex: 1 1 180px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-page .whatsapp-conversation-copy time {
  display: block;
  margin-top: 4px;
  color: #665c4f;
  font-size: 0.72rem;
}

.app-page #whatsappConversationListActions[hidden] {
  display: none;
}

.app-page .whatsapp-conversations [data-conversation-status="handoff"] {
  background: #fcf1de;
  color: #77551f;
}

.app-page .whatsapp-conversations [data-conversation-status="booked"] {
  background: #f0f8f2;
  color: #31744b;
}

.app-page .whatsapp-transcript {
  width: min(46rem, calc(100% - 24px));
  height: min(42rem, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
}

.app-page .whatsapp-transcript-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.app-page .whatsapp-transcript-header,
.app-page .whatsapp-transcript-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px clamp(12px, 3vw, 20px);
}

.app-page .whatsapp-transcript-header {
  border-bottom: 1px solid #e4dbcc;
}

.app-page .whatsapp-transcript-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.app-page .whatsapp-transcript-header p {
  margin: 4px 0 0;
  color: #665c4f;
  overflow-wrap: anywhere;
}

.app-page .whatsapp-transcript-header .icon-button {
  flex-shrink: 0;
}

.app-page .whatsapp-transcript-footer {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid #e4dbcc;
}

.app-page .whatsapp-transcript-footer .whatsapp-error {
  flex: 1 1 200px;
  margin: 0;
}

.app-page .whatsapp-transcript-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 14px clamp(12px, 3vw, 20px);
  background: #f8f5ef;
}

.app-page .whatsapp-transcript-scroll:focus-visible {
  outline-offset: -2px;
}

.app-page .whatsapp-transcript-older,
.app-page .whatsapp-transcript-empty {
  margin: 0 0 12px;
  text-align: center;
}

.app-page .whatsapp-transcript-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-page .whatsapp-transcript-message {
  max-width: min(90%, 36rem);
  align-self: flex-start;
  border: 1px solid #e4dbcc;
  border-radius: 8px;
  background: #fff;
  color: #2d2d27;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}

.app-page .whatsapp-transcript-message[data-direction="outbound"] {
  align-self: flex-end;
  border-color: #d1e4d4;
  background: #edf6ee;
}

.app-page .whatsapp-transcript-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 0.75rem;
}

.app-page .whatsapp-transcript-meta time {
  color: #5e584d;
}

.app-page .whatsapp-transcript-media {
  display: inline-block;
  margin-top: 4px;
  color: #65532d;
  font-weight: 650;
}

.app-page .whatsapp-transcript-message p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.app-page .whatsapp-simulation {
  margin-top: 14px;
}

.app-page .whatsapp-simulation summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 750;
}

.app-page .whatsapp-simulation p {
  margin: 12px 0;
}

.app-page .whatsapp-simulation .form {
  max-width: 620px;
}

.app-page .ai-reply {
  border-color: #e3d7c2;
  border-radius: 7px;
  background: #fcf8ef;
  color: #56472f;
}

.app-page .rule-list li::marker {
  color: #b98c43;
}

.app-page .metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.app-page .metric-card {
  min-height: 112px;
  padding: 16px;
}

.app-page .metric-card span,
.app-page .metric-card small {
  color: #7d7a72;
}

.app-page .metric-card strong {
  color: #282822;
  font-size: 1.25rem;
}

.app-page .report-list .list-row,
.app-page .catalog-list .list-row {
  border-color: #eeeae2;
}

.app-page .badge,
.app-page .pill {
  border-color: #e3d4bc;
  background: #faf3e6;
  color: #805c25;
}

.app-page .channel-grid {
  gap: 10px;
}

.app-page .channel-card {
  border-color: #e8e2d8;
  background: #faf9f6;
  box-shadow: none;
}

.app-page .catalog-page {
  gap: 16px;
}

.app-page .catalog-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.app-page .catalog-page-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.app-page .catalog-page-metrics span {
  min-height: 27px;
  border: 1px solid #e1dbd1;
  border-radius: 999px;
  background: #fff;
  color: #7b7971;
  padding: 5px 9px;
  font-size: 0.63rem;
}

.app-page .catalog-page-metrics strong {
  color: #7f5b24;
}

.app-page .catalog-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.app-page .catalog-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-page .catalog-list-card {
  min-width: 0;
  padding: 0;
}

.app-page .catalog-card-head {
  min-height: 66px;
  border-bottom: 1px solid #eae5dc;
  padding: 13px 14px;
}

.app-page .catalog-card-title {
  gap: 9px;
}

.app-page .catalog-card-title h2 {
  color: #30302a;
  font-size: 0.8rem;
}

.app-page .catalog-card-title small {
  color: #918e85;
  font-size: 0.61rem;
}

.app-page .catalog-list {
  max-height: calc(100vh - 260px);
  min-height: 360px;
  gap: 0;
  overflow-y: auto;
  padding: 4px 12px 12px;
}

.app-page .catalog-row {
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid #eeeae2;
  border-radius: 0;
  background: transparent;
  padding: 11px 2px;
  box-shadow: none;
}

.app-page .catalog-row:last-child {
  border-bottom: 0;
}

.app-page .catalog-row:hover {
  border-color: #e7ddcc;
  background: #fcf8ef;
  transform: none;
}

.app-page .catalog-row-main .avatar {
  border-radius: 50%;
}

.app-page .catalog-row-main strong {
  color: #34342e;
  font-size: 0.73rem;
}

.app-page .catalog-meta span {
  border-color: #e5e0d7;
  background: #f8f7f4;
  color: #77756d;
}

.app-page .catalog-edit-button {
  border-color: #ded8cd;
  border-radius: 6px;
  background: #fff;
  color: #80602e;
}

.app-page .catalog-edit-button:hover {
  border-color: #c8ac7e;
  background: #fbf3e4;
}

.app-page .catalog-modal .modal-card,
.app-page .modal-card {
  border-radius: 8px;
}

.app-page .catalog-modal .modal-head {
  border-bottom-color: #e6e0d6;
  background: #fbfaf7;
}

.app-page .catalog-fields,
.app-page .appointment-section {
  border-color: #e5e0d6;
  border-radius: 8px;
  background: #fff;
}

.app-page .appointment-modal {
  background: rgba(20, 19, 16, 0.64);
}

.app-page .appointment-card {
  border-color: #d7d0c4;
  border-radius: 8px;
  background: #f6f4ef;
  box-shadow: 0 30px 85px rgba(20, 18, 14, 0.28);
}

.app-page .appointment-hero {
  border-bottom-color: #37342d;
  background: #1d1d1a;
  color: #fff;
}

.app-page .appointment-kicker {
  color: #d6ad68;
}

.app-page .appointment-hero p {
  color: #aaa69d;
}

.app-page .appointment-total {
  border-color: #514735;
  border-radius: 7px;
  background: #292720;
}

.app-page .appointment-total small {
  color: #aaa59b;
}

.app-page .appointment-total strong {
  color: #e0ba78;
}

.app-page .appointment-close {
  border-color: #47443d;
  background: #2b2a26;
  color: #f0ece3;
}

.app-page .appointment-main {
  gap: 10px;
}

.app-page .appointment-section-title > span {
  border-radius: 6px;
  background: #f1e5cf;
  color: #815d26;
}

.app-page .appointment-section-title strong {
  color: #34332d;
}

.app-page .appointment-section-title small,
.app-page .appointment-combo-copy small,
.app-page .appointment-option-copy small {
  color: #858179;
}

.app-page .appointment-combo-trigger {
  border-color: #ded8cd;
  border-radius: 6px;
  background: #fff;
}

.app-page .appointment-combo-trigger:hover,
.app-page .appointment-combo-trigger:focus-visible,
.app-page .appointment-combo.is-open .appointment-combo-trigger {
  border-color: #c69a50;
  box-shadow: 0 0 0 3px rgba(198, 154, 80, 0.13);
}

.app-page .appointment-combo-icon,
.app-page .appointment-option-icon,
.app-page .appointment-option-avatar {
  border-radius: 6px;
  background: #f4ead6;
  color: #8c662b;
}

.app-page .appointment-combo-menu {
  border-color: #d9d1c3;
  border-radius: 7px;
  box-shadow: 0 16px 38px rgba(31, 27, 20, 0.16);
}

.app-page .appointment-combo-option {
  border-radius: 5px;
}

.app-page .appointment-combo-option:hover,
.app-page .appointment-combo-option:focus-visible,
.app-page .appointment-combo-option.is-selected {
  background: #fbf3e4;
}

.app-page .appointment-combo-option.is-selected {
  color: #77551f;
}

.app-page .appointment-time-presets button {
  border-color: #ddd6ca;
  border-radius: 6px;
  background: #fff;
  color: #5e574b;
}

.app-page .appointment-time-presets button:hover,
.app-page .appointment-time-presets button.is-selected {
  border-color: #bf9450;
  background: #f8edda;
  color: #77551f;
}

.app-page .appointment-summary {
  border-color: #3d3931;
  border-radius: 8px;
  background: #22211e;
  color: #f4efe5;
}

.app-page .appointment-summary .summary-label,
.app-page .appointment-summary > small {
  color: #aaa69d;
}

.app-page .appointment-summary > strong {
  color: #dfb66e;
}

.app-page .appointment-modal .appointment-actions {
  border-top-color: #e2dcd1;
  background: #fff;
}

.app-page .danger-button,
.app-page .danger-button:hover:not(:disabled) {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

@media (max-width: 1240px) {
  .app-page .shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .app-page .sidebar {
    width: 204px;
  }

  .app-page .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page .dashboard-metric {
    min-height: 112px;
  }

  .app-page .dashboard-main-grid,
  .app-page .dashboard-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-page .catalog-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) and (min-width: 761px) {
  .app-page .shell {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .app-page .sidebar {
    width: 178px;
    padding-inline: 10px;
  }

  .app-page .sidebar-brand,
  .app-page .sidebar-company {
    padding-inline: 7px;
  }

  .app-page .sidebar-company {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .app-page .sidebar-company > svg {
    display: none;
  }

  .app-page .tabs,
  .app-page .topbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .app-page .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-page .topbar-tools {
    width: 100%;
    justify-content: space-between;
  }

  .app-page .metrics,
  .app-page .catalog-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-page {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    background: #f4f2ed;
  }

  .app-page .shell {
    display: block;
    min-height: 100vh;
  }

  .app-page .sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
    gap: 3px;
    border: 0;
    border-top: 1px solid #34332e;
    background: #191917;
    padding: 5px 6px env(safe-area-inset-bottom);
    box-shadow: 0 -10px 28px rgba(25, 24, 20, 0.14);
  }

  .app-page .sidebar-brand,
  .app-page .sidebar-company,
  .app-page .sidebar-note,
  .app-page .side-nav-label {
    display: none;
  }

  .app-page .side-nav {
    display: grid;
    grid-column: 1;
    width: 100%;
    height: 54px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
  }

  .app-page .nav-item {
    display: grid;
    min-width: 0;
    min-height: 54px;
    grid-template-rows: 20px 15px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    border: 0;
    border-radius: 6px;
    padding: 2px 1px;
    color: #95928a;
    font-size: 0.55rem;
    line-height: 1;
    text-align: center;
  }

  .app-page .nav-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-page .nav-item svg {
    width: 19px;
    height: 19px;
  }

  .app-page .nav-item.is-active {
    border: 0;
    background: #332d23;
    box-shadow: inset 0 2px #c69a50;
  }

  .app-page .sidebar-actions {
    position: static;
    top: auto;
    right: auto;
    display: block;
    grid-column: 2;
    width: 44px;
  }

  .app-page .settings-menu,
  .app-page .settings-button {
    width: 44px;
  }

  .app-page .settings-button {
    display: grid;
    height: 54px;
    place-items: center;
    border-color: transparent;
    background: transparent;
    padding: 0;
  }

  .app-page .settings-button span {
    display: none;
  }

  .app-page .settings-popover {
    top: auto;
    right: 0;
    bottom: calc(100% + 9px);
    left: auto;
    width: min(260px, calc(100vw - 16px));
    min-width: 0;
  }

  .app-page .workspace {
    width: 100%;
    background: #f4f2ed;
  }

  .app-page .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #e2dcd1;
    background: #fff;
    padding: 15px 12px 13px;
  }

  .app-page .topbar-heading h1,
  .app-page .page-heading h1,
  .app-page .catalog-page-head h1 {
    margin-bottom: 3px;
    font-size: 1.32rem;
  }

  .app-page .topbar-heading p {
    display: none;
  }

  .app-page .topbar-tools {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .app-page .date-controls {
    display: grid;
    width: 100%;
    grid-template-columns: 34px minmax(114px, 1fr) 34px auto 34px;
    gap: 5px;
  }

  .app-page .date-controls input {
    width: 100%;
    min-width: 0;
  }

  .app-page .date-controls .button {
    padding-inline: 10px;
  }

  .app-page .date-controls .icon-button,
  .app-page .topbar .icon-button {
    width: 34px;
    min-height: 38px;
  }

  .app-page .agenda-new-button {
    width: 100%;
  }

  .app-page .tabs,
  .app-page[data-active-tab="agenda"] .tabs {
    padding: 17px 12px 24px;
  }

  .app-page .alert {
    margin: 10px 12px 0;
  }

  .app-page .page-heading,
  .app-page .catalog-page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 15px;
  }

  .app-page .page-heading-actions,
  .app-page .catalog-quick-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page .page-heading-actions .button,
  .app-page .catalog-quick-actions .button {
    width: 100%;
    padding-inline: 8px;
  }

  .app-page .compact-heading {
    flex-direction: row;
    align-items: center;
  }

  .app-page .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .app-page .dashboard-metric {
    min-height: 112px;
    gap: 7px;
    padding: 13px;
  }

  .app-page .dashboard-metric strong {
    overflow-wrap: anywhere;
    font-size: 1.08rem;
  }

  .app-page .dashboard-metric-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .app-page .dashboard-main-grid,
  .app-page .dashboard-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }

  .app-page .dashboard-panel {
    padding: 14px;
  }

  .app-page .dashboard-trend {
    min-height: 210px;
  }

  .app-page .dashboard-trend-bars {
    height: 140px;
    gap: 6px;
  }

  .app-page .dashboard-appointment-row {
    grid-template-columns: 41px 30px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .app-page .dashboard-person {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .app-page .agenda-titlebar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
  }

  .app-page .agenda-mini {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-page .agenda-mini span {
    min-width: 0;
    padding-inline: 4px;
  }

  .app-page .schedule-scroll {
    display: none;
  }

  .app-page .mobile-agenda-list {
    display: grid;
    background: #fbfaf7;
    padding: 10px;
  }

  .app-page .mobile-pro-card,
  .app-page .mobile-appointment-card {
    border-color: #e1dbd0;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(42, 37, 28, 0.06);
  }

  .app-page .mobile-focus-card,
  .app-page .mobile-focus-card.is-empty {
    border-left-color: var(--pro-color, #c69a50);
    border-radius: 7px;
    background: #22211e;
    color: #f8f4eb;
    box-shadow: 0 10px 24px rgba(29, 27, 22, 0.14);
  }

  .app-page .mobile-focus-label {
    color: #dfb971;
  }

  .app-page .mobile-focus-card small {
    color: #c1bcb2;
  }

  .app-page .mobile-focus-card button,
  .app-page .mobile-focus-state {
    border-color: #b88a42;
    border-radius: 6px;
    background: #c69a50;
    color: #1b1915;
  }

  .app-page .mobile-section-head strong {
    color: #34332d;
  }

  .app-page .mobile-section-head small {
    color: #8a877f;
  }

  .app-page .mobile-free-slots button {
    border-color: #dec9a6;
    border-radius: 6px;
    background: #fbf3e4;
    color: #77551f;
  }

  .app-page .mobile-card-actions button {
    border-color: #ddd6ca;
    border-radius: 5px;
    background: #fff;
    color: #594b36;
  }

  .app-page .metrics,
  .app-page .catalog-panels,
  .app-page .ai-grid,
  .app-page .report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-page .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-page .metric-card {
    min-height: 104px;
  }

  .app-page .catalog-page-head {
    padding: 0;
  }

  .app-page .catalog-list {
    max-height: none;
    min-height: 0;
  }

  .app-page .catalog-list-card {
    min-height: 0;
  }

  .app-page .appointment-card {
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 430px) {
  .app-page .nav-item {
    font-size: 0.51rem;
  }

  .app-page .dashboard-metric {
    padding: 11px;
  }

  .app-page .dashboard-metric-icon {
    display: none;
  }

  .app-page .dashboard-appointment-row {
    grid-template-columns: 39px 28px minmax(0, 1fr);
  }

  .app-page .dashboard-appointment-row .status {
    display: none;
  }

  .app-page .dashboard-trend-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-page .compact-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-page .catalog-page-metrics {
    gap: 5px;
  }
}

@media (max-width: 360px) {
  .app-page .agenda-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page .agenda-mini span {
    min-height: 40px;
    white-space: normal;
  }
}

/* Keep access and company selection in the same K7 visual language. */
.login-page {
  background: #efede8;
}

.login-frame {
  border-color: #ddd6ca;
  background: #fff;
  box-shadow: 0 28px 74px rgba(37, 31, 22, 0.16);
}

.login-visual {
  background: #1d1c19;
}

.login-visual-shade {
  background: rgba(16, 15, 13, 0.52);
  box-shadow: inset 240px 0 220px rgba(14, 13, 11, 0.45), inset 0 -260px 220px rgba(14, 13, 11, 0.65);
}

.login-logo {
  border-color: rgba(239, 207, 153, 0.48);
  border-radius: 8px;
  background: #c69a50;
  color: #1a1814;
  box-shadow: 0 12px 30px rgba(18, 16, 12, 0.26);
}

.login-visual-kicker,
.login-benefits svg {
  color: #e2bd7c;
}

.login-access {
  background: #fff;
}

.login-eyebrow,
.login-back:hover,
.login-back:focus-visible {
  color: #926a2c;
}

.login-page .login-card h2 {
  color: #25251f;
}

.login-page .login-card > p,
.login-account-hint,
.login-security {
  color: #77756e !important;
}

.login-input-wrap {
  border-color: #ded8cd;
  background: #fbfaf7;
}

.login-input-wrap:focus-within {
  border-color: #c69a50;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(198, 154, 80, 0.13);
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  background: #f8efdf;
  color: #8d6528;
}

.login-security svg,
.login-identity svg {
  color: #a67a34;
}

.login-page .login-submit {
  border-color: #b98c43;
  background: #c69a50;
  color: #1b1915;
  box-shadow: 0 13px 28px rgba(154, 111, 43, 0.19);
}

.login-page .login-submit:hover {
  border-color: #a77c38;
  background: #d1a55c;
  box-shadow: 0 16px 34px rgba(154, 111, 43, 0.24);
}

.login-identity {
  border-color: #e4dac8;
  background: #fbf6ec;
  color: #5e503c;
}

.login-divider::before,
.login-divider::after {
  background: #e5dfd5;
}

.company-choice-page {
  background: #f2f0eb;
  color: #25251f;
}

.company-choice-page .company-choice-topbar {
  border-color: #37352f;
  background: #1d1d1a;
  color: #f8f4ea;
  box-shadow: 0 14px 32px rgba(33, 29, 22, 0.14);
}

.company-choice-page .company-choice-brand .brand-mark {
  border-color: #dbb97f;
  background: #c69a50;
  color: #1a1814;
}

.company-user-chip {
  border-color: #403e37;
  background: #292824;
}

.company-user-chip svg {
  color: #dbb46f;
}

.company-logout {
  border-color: #4a463d;
  background: #2a2925;
  color: #dfd8ca;
}

.company-logout:hover,
.company-logout:focus-visible {
  background: #3a3327;
  color: #e1bb79;
}

.company-choice-eyebrow {
  color: #946b2d;
}

.company-choice-page .company-choice-hero h1 {
  color: #25251f;
}

.company-choice-page .company-choice-hero p {
  color: #74726b;
}

.company-search,
.company-count,
.company-choice-page .company-option-card {
  border-color: #dfd8cd;
  box-shadow: 0 8px 22px rgba(42, 37, 28, 0.06);
}

.company-search:focus-within {
  border-color: #c69a50;
  box-shadow: 0 0 0 4px rgba(198, 154, 80, 0.12);
}

.company-count svg,
.company-empty-state svg,
.company-availability svg {
  color: #9c7130;
}

.company-choice-page .company-option-card:hover,
.company-choice-page .company-option-card:focus-within {
  border-color: #c7a66f;
  box-shadow: 0 17px 36px rgba(42, 37, 28, 0.11);
}

.company-choice-page .company-logo-box {
  border-radius: 8px;
  background: #c69a50;
  color: #1a1814;
  box-shadow: 0 18px 34px rgba(154, 111, 43, 0.18);
}

.company-card-visual {
  border-color: #e3ddd2;
  background: #f7f4ee;
}

.company-choice-page .company-access-tag,
.company-availability {
  border-color: #e5d6bd;
  background: #fbf5e9;
  color: #805d27;
}

.company-choice-page .company-access-button {
  border-color: #b98c43;
  background: #c69a50;
  color: #1b1915;
  box-shadow: 0 10px 20px rgba(154, 111, 43, 0.16);
}

.company-access-button:hover,
.company-access-button:focus-visible {
  background: #d0a45b;
  color: #191713;
}

/* Core salon operations: cash, finance and commissions. */
.app-page .ops-page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.app-page .ops-heading {
  margin-bottom: 20px;
}

.app-page .ops-heading h1 {
  margin-bottom: 5px;
}

.app-page .ops-period,
.app-page .ops-count,
.app-page .ops-hint {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid #ded8cd;
  border-radius: 6px;
  background: #fff;
  color: #615f58;
  padding: 0 11px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.app-page .ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.app-page .ops-metric {
  display: flex;
  min-width: 0;
  min-height: 116px;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e0dbd1;
  border-radius: 8px;
  background: #fff;
  padding: 17px;
  box-shadow: 0 8px 22px rgba(42, 37, 28, 0.055);
}

.app-page .ops-metric-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 7px;
  background: #e8f5f2;
  color: #16786e;
}

.app-page .ops-metric-icon svg {
  width: 18px;
  height: 18px;
}

.app-page .ops-metric.is-blue .ops-metric-icon {
  background: #eaf1fb;
  color: #35689f;
}

.app-page .ops-metric.is-amber .ops-metric-icon {
  background: #f8f0df;
  color: #9a6a20;
}

.app-page .ops-metric.is-rose .ops-metric-icon {
  background: #f9e9eb;
  color: #a94f5a;
}

.app-page .ops-metric > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.app-page .ops-metric small {
  color: #747169;
  font-size: 0.7rem;
  font-weight: 760;
}

.app-page .ops-metric strong {
  color: #22221f;
  overflow-wrap: anywhere;
  font-size: 1.32rem;
  line-height: 1.1;
}

.app-page .ops-metric > div > span {
  color: #8a877f;
  font-size: 0.66rem;
}

.app-page .ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  align-items: start;
  gap: 14px;
}

.app-page .ops-finance-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.35fr);
}

.app-page .ops-stack {
  display: grid;
  gap: 14px;
}

.app-page .ops-panel {
  min-width: 0;
  border: 1px solid #e0dbd1;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(42, 37, 28, 0.05);
}

.app-page .ops-panel-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid #eeeae3;
}

.app-page .ops-panel-head > div {
  min-width: 0;
}

.app-page .ops-panel-head span:first-child {
  display: block;
  margin-bottom: 3px;
  color: #9a7133;
  font-size: 0.61rem;
  font-weight: 820;
  text-transform: uppercase;
}

.app-page .ops-panel-head h2 {
  margin: 0;
  color: #25251f;
  font-size: 1rem;
}

.app-page .ops-panel-head .ops-count,
.app-page .ops-panel-head .ops-hint,
.app-page .ops-panel-head .ops-legend {
  margin: 0;
  color: #6f6c64;
  text-transform: none;
}

.app-page .ops-list {
  display: grid;
  gap: 8px;
}

.app-page .ops-row {
  display: grid;
  min-width: 0;
  min-height: 68px;
  grid-template-columns: 48px 38px minmax(140px, 1fr) minmax(100px, auto) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e7e2d9;
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
}

.app-page .ops-row.is-settled {
  background: #fafaf8;
}

.app-page .ops-time {
  color: #34332f;
  font-size: 0.78rem;
  font-weight: 850;
}

.app-page .ops-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--ops-color) 14%, white);
  color: var(--ops-color);
  font-size: 0.76rem;
  font-weight: 900;
}

.app-page .ops-row-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-page .ops-row-main strong,
.app-page .ops-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .ops-row-main strong {
  color: #2b2b26;
  font-size: 0.79rem;
}

.app-page .ops-row-main small,
.app-page .ops-row-value small {
  color: #85827a;
  font-size: 0.65rem;
}

.app-page .ops-row-value {
  display: grid;
  gap: 2px;
  text-align: right;
}

.app-page .ops-row-value strong {
  color: #2f2e29;
  font-size: 0.77rem;
  white-space: nowrap;
}

.app-page .ops-row-action {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 11px;
  font-size: 0.68rem;
}

.app-page .ops-row-action svg {
  width: 14px;
  height: 14px;
}

.app-page .ops-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #cae6dd;
  border-radius: 6px;
  background: #edf8f4;
  color: #227566;
  padding: 0 8px;
  font-size: 0.63rem;
  font-weight: 820;
  white-space: nowrap;
}

.app-page .ops-status svg {
  width: 13px;
  height: 13px;
}

.app-page .ops-payment-mix {
  display: grid;
  gap: 13px;
}

.app-page .ops-mix-row {
  display: grid;
  gap: 5px;
}

.app-page .ops-mix-row > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #56544e;
  font-size: 0.7rem;
}

.app-page .ops-mix-row small {
  color: #8b887f;
  font-size: 0.61rem;
}

.app-page .ops-progress {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #eeeae3;
}

.app-page .ops-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #27887c;
}

.app-page .ops-list-compact {
  gap: 0;
}

.app-page .ops-mini-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eeeae3;
  padding: 9px 0;
}

.app-page .ops-mini-row:last-child {
  border-bottom: 0;
}

.app-page .ops-mini-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #e8f5f2;
  color: #19766c;
}

.app-page .ops-mini-icon svg {
  width: 14px;
  height: 14px;
}

.app-page .ops-mini-icon.is-overdue {
  background: #f9e8e9;
  color: #a74652;
}

.app-page .ops-mini-row > div,
.app-page .ops-mini-row > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.app-page .ops-mini-row > span:last-child {
  text-align: right;
}

.app-page .ops-mini-row strong {
  overflow: hidden;
  color: #393832;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .ops-mini-row small {
  overflow: hidden;
  color: #8a877f;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .ops-flow-panel {
  min-height: 322px;
}

.app-page .ops-legend {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem !important;
  white-space: nowrap;
}

.app-page .ops-legend i {
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 2px;
  background: #2d8b7e;
}

.app-page .ops-legend i.is-expense {
  background: #c75c67;
}

.app-page .ops-flow {
  display: grid;
  height: 218px;
  grid-template-columns: repeat(14, minmax(10px, 1fr));
  align-items: end;
  gap: 5px;
  border-bottom: 1px solid #dfdad0;
  padding-top: 10px;
}

.app-page .ops-flow-day {
  display: grid;
  height: 100%;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) 20px;
  align-items: end;
  gap: 5px;
}

.app-page .ops-flow-bars {
  display: flex;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.app-page .ops-flow-bars i {
  width: min(9px, 42%);
  min-height: 0;
  border-radius: 3px 3px 0 0;
  background: #2d8b7e;
}

.app-page .ops-flow-bars i.is-expense {
  background: #c75c67;
}

.app-page .ops-flow-day small {
  color: #8c8981;
  font-size: 0.55rem;
  text-align: center;
}

.app-page .ops-expense-row {
  grid-template-columns: 32px minmax(140px, 1fr) minmax(92px, auto) auto;
}

.app-page .ops-recent-panel {
  margin-top: 14px;
}

.app-page .ops-commission-row {
  grid-template-columns: 38px minmax(160px, 1fr) minmax(320px, 0.9fr) auto;
}

.app-page .ops-commission-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 7px;
}

.app-page .ops-commission-values span {
  display: grid;
  gap: 2px;
  border-left: 1px solid #e8e3da;
  padding-left: 9px;
}

.app-page .ops-commission-values small {
  color: #8a877f;
  font-size: 0.58rem;
}

.app-page .ops-commission-values strong {
  color: #36352f;
  font-size: 0.7rem;
  white-space: nowrap;
}

.app-page .ops-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #85827a;
  text-align: center;
}

.app-page .ops-empty.is-compact {
  min-height: 70px;
}

.app-page .ops-empty svg {
  width: 24px;
  height: 24px;
  color: #b29a72;
}

.app-page .ops-empty strong {
  color: #55534d;
  font-size: 0.77rem;
}

.app-page .ops-empty span {
  font-size: 0.66rem;
}

.app-page .ops-modal-card {
  width: min(560px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 8px;
  padding: 22px;
}

.app-page .ops-modal-head p {
  margin: 5px 0 0;
  color: #7c7971;
  font-size: 0.72rem;
}

.app-page .ops-modal-head {
  position: relative;
  display: block;
  padding-right: 46px;
}

.app-page .ops-modal-head .close-button {
  position: absolute;
  top: 0;
  right: 0;
}

.app-page .ops-checkout-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 16px 0;
  border: 1px solid #e2ddd4;
  border-radius: 7px;
  background: #faf8f3;
  padding: 12px;
}

.app-page .ops-summary-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #e6f3f0;
  color: #19766c;
}

.app-page .ops-summary-icon svg {
  width: 18px;
  height: 18px;
}

.app-page .ops-checkout-summary > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.app-page .ops-checkout-summary strong {
  color: #30302b;
  font-size: 0.8rem;
}

.app-page .ops-checkout-summary > strong:last-child {
  font-size: 0.9rem;
  white-space: nowrap;
}

.app-page .ops-checkout-summary small {
  overflow: hidden;
  color: #817e76;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .ops-form-grid {
  gap: 11px;
}

.app-page .ops-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  border-top: 1px solid #e6e1d8;
  padding: 14px 2px 0;
  color: #68665f;
  font-size: 0.75rem;
  font-weight: 720;
}

.app-page .ops-total-line strong {
  color: #1c7469;
  font-size: 1.04rem;
}

.app-page .w8-preview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .app-page .ops-layout,
  .app-page .ops-finance-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-page .ops-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page .ops-commission-row {
    grid-template-columns: 38px minmax(150px, 1fr) minmax(285px, 0.9fr);
  }

  .app-page .ops-commission-row > .ops-row-action,
  .app-page .ops-commission-row > .ops-status {
    grid-column: 2 / -1;
    justify-self: end;
  }
}

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

  .app-page .ops-row {
    grid-template-columns: 44px 34px minmax(120px, 1fr) auto;
  }

  .app-page .ops-row > .ops-row-action,
  .app-page .ops-row > .ops-status {
    grid-column: 3 / -1;
    justify-self: end;
  }

  .app-page .ops-expense-row {
    grid-template-columns: 32px minmax(120px, 1fr) auto;
  }

  .app-page .ops-expense-row > .ops-row-action,
  .app-page .ops-expense-row > .ops-status {
    grid-column: 2 / -1;
  }

  .app-page .w8-preview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-page .side-nav {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: minmax(46px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .app-page .side-nav::-webkit-scrollbar {
    display: none;
  }

  .app-page .ops-heading .button {
    width: 100%;
  }

  .app-page .ops-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-page .ops-panel {
    padding: 14px;
  }

  .app-page .ops-row,
  .app-page .ops-expense-row,
  .app-page .ops-commission-row {
    min-height: 0;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .app-page .ops-row > .ops-time {
    grid-column: 1;
    grid-row: 1;
  }

  .app-page .ops-row > .ops-avatar {
    display: none;
  }

  .app-page .ops-row-main {
    grid-column: 2 / -1;
  }

  .app-page .ops-row-value {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  .app-page .ops-row > .ops-row-action,
  .app-page .ops-row > .ops-status {
    grid-column: 3;
    grid-row: 2;
  }

  .app-page .ops-expense-row > .ops-mini-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .app-page .ops-expense-row .ops-row-main {
    grid-column: 2 / -1;
  }

  .app-page .ops-commission-row .ops-row-main {
    grid-column: 1 / -1;
  }

  .app-page .ops-commission-values {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-page .ops-commission-row > .ops-row-action,
  .app-page .ops-commission-row > .ops-status {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  }

  .app-page .ops-hint {
    display: none;
  }

  .app-page .ops-modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 17px;
  }
}

@media (max-width: 480px) {
  .app-page .ops-metrics {
    gap: 8px;
  }

  .app-page .ops-metric {
    min-height: 108px;
    gap: 8px;
    padding: 12px;
  }

  .app-page .ops-metric-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .app-page .ops-metric strong {
    font-size: 1rem;
  }

  .app-page .ops-panel-head {
    align-items: flex-start;
  }

  .app-page .ops-count,
  .app-page .ops-period {
    min-height: 28px;
    padding-inline: 8px;
    font-size: 0.62rem;
  }

  .app-page .ops-flow {
    gap: 2px;
  }

  .app-page .ops-flow-day:nth-child(even) small {
    visibility: hidden;
  }

  .app-page .ops-checkout-summary {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .app-page .ops-checkout-summary > strong:last-child {
    grid-column: 2;
  }

  .app-page .w8-preview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app-page .checkout-modal {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  background: var(--card);
}

.app-page .checkout-form {
  width: 100%;
  max-height: none;
  gap: 18px;
  overflow: visible;
  padding: 24px;
}

.app-page .checkout-form .ops-modal-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}

.app-page .checkout-form .ops-modal-head h2 {
  margin: 6px 0 0;
  font-size: 1.25rem;
}

.app-page .checkout-form .ops-modal-head p {
  margin: 5px 0 0;
  font-size: 0.84rem;
}

.app-page .checkout-form .ops-modal-head .close-button {
  position: static;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.app-page .checkout-form .ops-checkout-summary {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  margin: 0;
}

.app-page .checkout-form .ops-checkout-summary > strong:last-child {
  grid-column: auto;
}

.app-page .checkout-form .ops-checkout-summary small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.app-page .checkout-form .ops-form-grid {
  gap: 14px;
}

.app-page .checkout-form .ops-form-grid > label {
  min-width: 0;
}

.app-page .checkout-form .ops-form-grid :is(input, select) {
  min-width: 0;
  height: 44px;
}

.app-page .checkout-select {
  position: relative;
  display: block;
  min-width: 0;
}

.app-page .checkout-select select {
  appearance: none;
  padding-right: 36px;
}

.app-page .checkout-select svg {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted-text);
  pointer-events: none;
  transform: translateY(-50%);
}

.app-page .checkout-form textarea {
  min-width: 0;
  min-height: 90px;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.app-page .checkout-footer {
  display: grid;
  gap: 14px;
}

.app-page .checkout-footer .ops-total-line {
  margin-top: 0;
  padding-inline: 0;
  font-size: 0.84rem;
}

.app-page .checkout-footer .ops-total-line strong {
  font-size: 1.15rem;
}

.app-page .checkout-footer .modal-actions {
  position: static;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 0;
}

.app-page .checkout-footer .button {
  min-height: 44px;
  text-align: center;
}

@media (max-width: 480px) {
  .app-page .checkout-modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .app-page .checkout-form {
    gap: 16px;
    padding: 17px;
  }

  .app-page .checkout-form .ops-form-grid {
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .app-page .checkout-form .ops-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-page .checkout-footer .modal-actions {
    flex-direction: column;
  }
}
