:root {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
  color: #ececec;
  background: #181818;
  --muted: #adadad;
  --line: #3b3b3b;
  --accent: #79c69d;
}
aside {
  overflow-y: auto;
  padding-top: 22px;
}
.workspace {
  margin: 22px 0 16px;
}
.nav {
  padding: 11px 12px;
  margin-bottom: 3px;
}
.nav span[data-i18n] {
  font-size: 12px;
  min-width: 0;
}
.desktop-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 18px;
}
.desktop-controls #business-selector {
  max-width: none;
  width: 100%;
}
.desktop-controls .local-pill {
  align-self: flex-start;
}
.preferences {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.preferences select {
  width: 105px;
  padding: 8px;
  font-size: 11px;
}
.preferences button {
  flex: 1;
  padding: 8px;
  font-size: 11px;
}
.content {
  padding-top: 30px;
}
.sidebar-bottom {
  padding-top: 15px;
}
.sidebar-bottom p {
  line-height: 1.6;
}
.language-label {
  font-size: 11px;
  margin: 12px 0 7px;
}
.eyebrow {
  display: none;
}
html[data-theme="dark"] aside,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] dialog,
html[data-theme="dark"] .owner-error {
  background: #242424;
  color: #ececec;
}
html[data-theme="dark"] .brand,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .empty strong {
  color: #ececec;
}
html[data-theme="dark"] .table th {
  background: #2a2a2a;
  color: #bababa;
}
html[data-theme="dark"] .table td {
  border-color: var(--line);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .search {
  background: #1c1c1c;
  color: #ececec;
  border-color: #484848;
}
html[data-theme="dark"] label,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .stat-top,
html[data-theme="dark"] .stat-foot,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .side-card p,
html[data-theme="dark"] .role-hint,
html[data-theme="dark"] .side-line,
html[data-theme="dark"] .version {
  color: #b2b2b2;
}
html[data-theme="dark"] .secondary,
html[data-theme="dark"] .row-actions button {
  background: #303030;
  border-color: #484848;
  color: #dcdcdc;
}
html[data-theme="dark"] .primary,
html[data-theme="dark"] .period-buttons .selected {
  background: #287c53;
  color: white;
}
html[data-theme="dark"] .nav {
  color: #c0c0c0;
}
html[data-theme="dark"] .nav.active,
html[data-theme="dark"] .workspace-icon,
html[data-theme="dark"] .integration-icon {
  background: #375043;
  color: #cdffe6;
}
html[data-theme="dark"] .nav:hover {
  background: #303030;
}
html[data-theme="dark"] .mono,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .tip {
  background: #2b3c34;
  color: #c4c4c4;
  border-color: #4a6155;
}
html[data-theme="dark"] .local-pill,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .status-active {
  background: #193b30;
  color: #ade4c6;
}
html[data-theme="dark"] .badge.cancelled,
html[data-theme="dark"] .badge.no_show,
html[data-theme="dark"] .status-blocked,
html[data-theme="dark"] .danger {
  background: #462a31;
  color: #ffc0b7;
}
html[data-theme="dark"] .badge.completed,
html[data-theme="dark"] .status-trial {
  background: #385044;
  color: #cccccc;
}
html[data-theme="dark"] .readonly-banner {
  background: #3a3021;
  color: #f3d298;
}
html[data-theme="dark"] .chart-axis {
  fill: #bababa;
}
html[data-theme="dark"] .chart-grid {
  stroke: #393939;
}
html[data-theme="dark"] .chart-baseline {
  stroke: #9f9f9f;
}
@media (max-height: 850px) {
  aside {
    padding-top: 16px;
  }
  .brand {
    font-size: 28px;
  }
  .workspace {
    margin: 16px 0;
  }
  .nav {
    padding: 8px 12px;
  }
  .sidebar-bottom .version {
    display: none;
  }
}
.calendar-field {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.calendar-field input {
  min-width: 0;
  flex: 1;
}
.calendar-field > button {
  padding: 9px 11px;
  flex: none;
}
.calendar-popup {
  position: fixed;
  width: 334px;
  z-index: 9999;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 48px #0004;
  color: #303030;
}
.calendar-toolbar,
.calendar-time,
.calendar-footer {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.calendar-toolbar select {
  padding: 7px;
  width: 130px;
}
.calendar-toolbar input {
  padding: 7px;
  width: 76px;
}
.calendar-popup button {
  padding: 7px 10px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}
.calendar-grid span {
  text-align: center;
  font-size: 11px;
  padding: 7px 0;
  color: var(--muted);
}
.calendar-grid button {
  padding: 8px 0;
}
.calendar-grid .selected {
  background: #287c53;
  color: white;
}
.calendar-time select {
  width: 62px;
  padding: 7px;
}
.calendar-footer {
  justify-content: space-between;
  margin: 0;
}
html[data-theme="dark"] .calendar-popup {
  background: #242424;
  color: #ececec;
}

html[data-theme="dark"] .brand-icon {
  background: #23794f;
  color: #fff;
}
